Go to advanced search

by micahcowan
Wed Jul 03, 2013 7:24 pm
Forum: Beginners
Topic: Creating a New Partition
Replies: 4
Views: 6072

Re: Creating a New Partition

It doesn't say fdisk is an invalid option (it's a command, not an option); it's complaining about the -1 (dash one), which isn't a legal option for fdisk. Did you want to list partitions? If so, the option is -l (dash ell). It's a bad idea to attempt to format a disk or repartition it while you're u...
by micahcowan
Wed Jul 03, 2013 9:01 am
Forum: General programming discussion
Topic: How to play a sound (music)? Not ogg or mp3 s!
Replies: 7
Views: 4795

Re: How to play a sound (music)? Not ogg or mp3 s!

http://askubuntu.com/questions/202355/how-to-play-a-fixed-frequency-sound-using-python In the example on this page, you'd need to "sudo apt-get install python-pyaudio". It gives a very, very simple program to generate a 1KHz tone for five seconds. You could perhaps turn it into a function to use for...
by micahcowan
Wed Jul 03, 2013 7:52 am
Forum: C/C++
Topic: Question on fork()
Replies: 7
Views: 2281

Re: Question on fork()

So are you saying that even memory allocated with malloc by parent and objects created with new are copied (-on-write) to child? I don't actually intend for the parent and child to share objects or memory, just thought I should know before calling a very powerful function. They don't. There is zero...

Go to advanced search