Jump to content

Steve Scrimpshire

OTW
  • Posts

    3587
  • Joined

  • Last visited

Everything posted by Steve Scrimpshire

  1. Not possible as far as I know.
  2. After running startx to get into KDE, run mcc and go to Boot then click "Enable autologin and select...blahblah" Choose "Launch the graphical environment when the system starts" and "No, I don't want to autologin"
  3. As far as k9copy, I have no idea (mine crashes too). As far as dvdshrink, what is the output of ls -l /dev/dvd ? (dvdshrink only operates in console mode for me....is there a commandline option for a graphical interface?)
  4. I'm not completely sure, but I think there might be some error in the code or maybe they are not listing the right dependencies. I get the same error as you, but usbvision-0.9.8.2 compiles fine. I cannot test it for you, because I don't have a usbvision device.
  5. ianw: on my system, /bin/sh is just a symlink to /bin/bash: < omar ~ > ls -l /bin/sh lrwxrwxrwx 1 root root 4 Jul 17 21:33 /bin/sh -> bash*
  6. Without using top, I prefer the first answer. These are much faster ways. Also, if you know the name of the program, you can: killall <<programname>> Which will kill all running instances of programname if you are root.
  7. You can, of course, tell more from the df -a command, comparing it to this.
  8. What is the output of df -a once you get logged in?
  9. You need php-devel installed. urpmi php-devel Tip: Anytime a source's .configure or make complains about missing a pkg, it probably really needs the -devel pkg of whatever pkg or the lib(whatever)-devel pkg.
  10. I noticed and would like to emphasize that you did not say 'quick and easy'
  11. RVDowning (and iphitus): It is the hardware manufacturers' fault that there is poor hardware support in Linux. Period. They provide their drivers for Windows because they can keep the code secret. The software that may be specialied for your uses is not there because there is not enough demand for it. Linux can't fix that....having more Linux users that refuse to buy hardware or software unless it runs on Linux is the key. And for all this mumbojumbo that keeps getting spouted about Mandriva being dated (iphitus :P) is that Mandriva tries to be the stable distro. As fast as software gets updated in the OSS world, Mandriva's stable product becomes 'dated' quickly. If you'd rather have the fancy shiny new developmental software/drivers, go for another distro....but stop complaining that Mandriva doesn't do something they have never done and openly say they won't. You want to see 'dated'? Install Debian 'stable'....sheesh....
  12. You can remove it in MCC software mgmt or at the commandline as root: < root ~> urpmq --list-media And then do urpmi.removemedia <<name of media that it is says your dvd is>> OT, kinda: Every time someone mentions how great apt is compared to urpmi, I'm going to defend urpmi. Ever since I started using Linux at Mandrake 8.1, which was 4(?) years ago, I have done every upgrade through just changing my mirrors and doing urpmi --auto --auto-select and only once did I have any trouble and that was due to naming-convention changes (even going from 2.4 kernels to 2.6 kernels and from dev to udev didn't phase it) and was easily corrected. I've tried Debian-esque distros (Knoppix and Kanotix HD installs with sources changed to straight debian repos) several times and always came back to Mandr(ake|iva) because apt always made me wanna tear my hair out: "Package webmin has no installation candidates" WHAT?! My sources.list file has 14.734 million lines in it with various repos, what do you mean "Package webmin has no installation candidates"???????
  13. Back in the old days of the TI-99/4A and the Commodore 16, there were simple ways to play the sounds of certain notes....something like play(440,2 sec) (I know that is not exact). Maybe it was in Basic. Have we lost these simple ways completely? All I can find are these complex scripts to write midi files or translate text to midi.
  14. I'm going to have to take this up with developers, apparently. All that int(colour,16) does is turn it back into a base10 integer, which I already had in an intermediate step. I still don't understand how I can pass 0x5a like this: midi.note_on(channel=0, note=0x5a) but not like this: notes=0x5a midi.note_on(channel=0, note=notes) That makes no sense.
  15. I changed it to iphitus' way without adding the 0x manually, but it still tells me it is not an integer. If I try to do int(whatever), it tells me "0x5a is an invalid literal for int" If, I put note=0x5a directly in the code, there is no error.
  16. I downloaded this midi pkg for python from here and I'm trying to implement it. I'm looping through a long binary string, converting it to hex in pieces and taking two hex digits, placing "0x" in front of them like the pkg wants and trying to pass them to the midi pkg: if len(colour) is 4: midi.update_time(x) # debug print colour midi.note_on(channel=0, note=colour) x+=10 print x print colour="0x" I get this error: < omar ~/midi > ./rabmidi.py 10000 0x5a Traceback (most recent call last): File "./rabmidi.py", line 75, in ? evaluate_colours() File "./rabmidi.py", line 62, in evaluate_colours midi.note_on(channel=0, note=colour) File "/home/omar/midi/MidiOutFile.py", line 47, in note_on slc = fromBytes([NOTE_ON + channel, note, velocity]) File "/home/omar/midi/DataTypeConverters.py", line 143, in fromBytes return pack('%sB' % len(value), *value) struct.error: required argument is not an integer I'm assuming that it is not recognizing colour as a variable and passing its value in ths instance: midi.note_on(channel=0, note=colour) I've tried note=colour[:] and seceral other things I cannot recall. How can I get my script to pass the value through the variable?
  17. Thanks for the great info. That part of the script takes four digits and translates them to hex. Then I am grouping those into groups of 6 hex numbers that represent colo(u)rs. I've been conversing with iphitus and Tuxiscool on #musb in IRC. iphitus translated my script into Python, which runs much much faster and efficiently. Tux also translated my script into Java, which is a little slower than iphitus' Python script but also great. I need to work with Tux a little more because there's some miscommunication on how the binary and hex files should be written.
  18. Ok, so I have this obsession with the Fibonacci sequence, so I was doing some testing. I wrote a bash script that is supposed to extend the Fibonacci rabbit sequence past 2000 digits. The method I am trying to use is this one: http://www.mcs.surrey.ac.uk/Personal/R.Kno...rab.html#infseq Here is my script: #!/bin/bash #newfibo.sh fibo=10; for ((a=1; a <= 1000000; a++)) # Double parentheses, and "LIMIT" with no "$". do # echo ${fibo:a:1} if [[ ${fibo:a:1} = "0" ]] then fibo="$fibo""1" fi if [[ ${fibo:a:1} = "1" ]] then fibo="$fibo""10" fi echo "$fibo" > newertest.fibo sleep .005s done In theory this would extend the rabbit sequence well past 1,000,000 digits, but it is very CPU-intensive and I got tired of waiting and stopped it at 776100 digits. Then I have a script that breaks the sequence down into groups of four and translates each group of four into a hexadecimal number and I group 6 hexadecimal numbers together to get a color: #!/bin/bash #string.sh fibo=$(cat newertest.fibo); let limit=$1-4 let count=0 strange=0 i=0 rm -f filec while [[ "$strange" -lt "$limit" ]] # Double parentheses, and "LIMIT" with no "$". do test=${fibo:strange:4} distance=$(bc -l <<TEST obase=16; ibase=2; $test TEST ) if [[ $i -ne "6" ]] then newdistance="$newdistance""$distance" i=$i+1 else echo "$newdistance" >> filec i=0 newdistance="" let count=count+1 fi let "strange += 4" done echo $count" I pass the limit to the script as the number of digits like this: ./string.sh 776100 One thing I noticed is that the output of string.sh is only 27717 lines, when theoretically, it should be 32337: 776100/24=32337 So, somewhere, I lost 110,892 digits. Is there something wrong with my code? Is there a limitation to the variable size I don't know about?
  19. This is all one line: urpmi.addmedia main rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2006.0/i586/media/main with media_info/synthesis.hdlist.cz <<hit enter>> This is all one line: urpmi.addmedia contrib rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2006.0/i586/media/contrib with media_info/synthesis.hdlist.cz <<hit enter>> This is all one line: urpmi.addmedia plf-free rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/free/2006.0/i586 with synthesis.hdlist.cz <<hit enter>> This is all one line: urpmi.addmedia plf-nonfree rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/non-free/2006.0/i586 with synthesis.hdlist.cz <<hit enter>> This is all one line: urpmi.addmedia --update updates rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/updates/2006.0/main_updates/ with media_info/synthesis.hdlist.cz <<hit enter>> You can copy and paste these into the console, by right-click drag to select the text and then click in the console to select the area where you want to paste and middle-click there.
  20. I always install All-In-One Gestures and use a gesture to close a tab. Easier for me.
  21. There is no option to do so that I saw, but as it is doing its thing, you see it "Adding menu item....blahblah..." John, for what its worth, the images from my city, USA are at least a year old. I noticed immediately that there is a vacant lot (where they had torn down a gas station) which had stood empty for at least a year and there is now a Guthrie's chicken finger restaurant there that has been there for a year. With more investigation, I could probably pinpoint a more exact age. Pity that the software requires an active internet connection...it would be awesome to use the 'directions to...' feature on my laptop while delivering pizza. Nice to have a map with landmarks and landscape visible with more accurate road placement. Just as well, though, because it has to use software acceleration on my crappy Trident Blade3D on the laptop and running it drives my CPU temp through the roof. Hmmmmm....wonder if I could just print out several sheets and use them as my map.
  22. How did you get it to work? For speed, try from a console as root: iwconfig wlan0 rate 54M
  23. Go to kcontrol -> Accessibility -> Keyboard shortcuts and click the 'command shortcuts' tab You will find under Multimedia -> graphics -> ksnapshot that it calls the key 'Print' Either select a different one or 'None'.
  24. I'm not exactly sure how you plan on reading all the emails you need to read just by searching for one keyword. Grep will just output the one line that contains the keyword unless you specifically tell it to show X number of lines before and/or after and how will you know how many lines you need? If you want to read every file under the directory recursively, maybe you could do something like: find ./ -name "*" -type f -exec sh -c 'less ${0}' {} \;
×
×
  • Create New...