Jump to content

baudolino

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by baudolino

  1. in case someone tries it, in #13, create /tmp/pdf_out as a directory. it works converting .txt , .ps or .jpg files, but not word or excel files. does converting word/excel works for you? do you know of a PPD that does this? isn't a PDF virtual printer suppose to convert anything printable? regards, baudo
  2. why don't you store the binary number in an unsigned integers? if n is an unsigned int, then the (k+1)-th bit (numbered from the right starting with 1) of n is given by the expression (n >> k) & 1 .
  3. assuming that you work with 5 bits unsigned integers, pipplo's idea does not identify 10000, because of the arithmetic overflow. another idea is to use the C constant UINT_MAX (which give the maximal unsigned integer value) like this n unsigned int; if ( (UINT_MAX - n) +1 == n) then UINT_MAX is defined in limits.h
  4. add the option -lm to the gcc command. look also at 14.3 in the C-faq linked below http://www.faqs.org/faqs/C-faq/faq/ baudo
  5. i installed 9.2 yesterday and alsamixer was not installed by default. here's an alsamixer-free solution to restore the sound: after installation /dev/dsp and /dev/mixer were 2 links whose targets were owned by root, were in the audio group, and had permissions rw-------. as root, i added my username to the audio group and changed the permissions of those 2 target files to rw-rw----. it worked like a charm. you might need to modify the volume using aumix or whatever, cause i heard that the volume is 0 by factory default. just to be clear, you need to change the permissions of the target files at which /dev/dsp and /dev/mixer point, not the permissions of the /dev/dsp or /dev/mixer. (Permissions of a link file are irrelevant, only the permissions of the target file matter.) btw, what exactly alsamixer does? baudo no longer sound deprived
  6. baudolino

    /1

    finally, after almost 1 year, i have an answer to my first question on this forum. :-) thanks to a recent post by scoopy, i found the answer listed on a mandrake webpage as the #1 Mandrake Worst-Of here is a link http://qa.mandrakesoft.com/twiki/bin/view/Main/BestOf baudo 9999 questions to go
  7. here're some links i perused. http://ciips.ee.uwa.edu.au/~morris/Year2/P...210/ds_ToC.html http://linux.wku.edu/~lamonml/algor/sort/sort.html get a good textbook. the standard one is here. http://www.amazon.com/exec/obidos/tg/detai...=glance&s=books baudo google is my friend
  8. I also stumbled upon this error recently trying to install lfs. You need to install glibc-static-devel. See also this link: http://lfs.learnbyexample.com/faq/#conflic...ing-gethostname Have fun with lfs. I know I did.
  9. set the shell to the full path of the mail reader you would like the new user to use. (you will need to add the full path of the mail reader to the list of shells /etc/shells)
  10. Not just sure I understand the problem, but here is a solution. Set the sgid bit for the top directory (chmod 2xyz, where xyz is the octal version of the current permissions). All the files created in the top directory (meaning any file in a directory in a directory in a .... in the top directory) will have the group id set to the group id of the top directory. baudolino sgid guru
  11. I want that, whenever pppd connects to the internet, a certain window applet (wmWeather) to be automatically executed (to appear on my screen). My script /etc/ppp/ip-up.local is executed (I checked this using the "touch /tmp/hello", which does what is suppose to do), but the applet does not appear on the screen. Here is the script: /etc/ppp/ip-up.local --------------------------[start] #!/bin/bash /usr/X11R6/bin/wmWeather -station KTTN touch /tmp/hello exit 0 --------------------------[end] Now, I know that /etc/ppp/ip-up (which calls /etc/ppp/ip-up.local): 1. runs as a root, 2. changes the PATH, 3. sets the standard input, output and error for all commands inside to /dev/null, but i don't see how any of these will explain why the line executing wmWeather in /etc/ppp/ip-up.local, which is for sure is executed, does not pop-up the applet on the screen. Leads that did not get me anywhere: 1. /etc/ppp/ip-up.local runs ok, when called from a command line. 2. I looked inside the source code of the applet, and all commands have complete paths (so a changed PATH shouldn't be a problem). 3. The following lines from man pppd regarding ip-up did not get me anywhere either. /etc/ppp/ip-up A program or script which is executed when the link is available for sending and receiving IP packets (that is, IPCP has come up). It is executed with the parameters interface-name tty-device speed local-IP-address remote-IP-address ipparam Any leads are gratefully appreciated. baudolino clueless as always
  12. nice. how did you make xterm transparent? I tried window.frame.*.opacity: 100, but it did not work. also, what are the left 5 applications on the bbbutton dock? waimea rocks
  13. after some search, google gave me 2 other choices. fancylogin and francine. eof
  14. Any login managers out there apart from kdm, gdm, and xdm? baudolino loginee
  15. check out the god/hot/buget boxes at http://arstechnica.com/guide/system/index.html baudolino
  16. Want to know how to pipe the two commands below. The first one writes the pid of the process mpg123, the second one kills it. $ps -C mpg123 -o pid= 2206 $kill -9 2206 Tried $ps -C mpg123 -o pid= |kill -9 without success. Thanks. baudolino
  17. cause 'tis the season to buy one. thank you. baudolino webcam starved
  18. Thanks for your help! I successfully updated the source database for my installation CDs. One more question. I was unable to find the manual page for gurpmi, autoirpm and rpmdrake. [baudolino]$ man rpmdrake No manual entry for rpmdrake [baudolino]$ "info rpmdrake"' sends me to the top directory of info. Please let me know where to find these manuals. baudolino
  19. I succeeded installing the rpm that I wanted by setting up a ftp media in urpmi and installing from there. It looks like I am unable to install from my own installation cds.
  20. Rpmdrake 9.0 accessed as KDE menu ---> Configuration --->Packaging --->Install Software. I got this error message "Installation failed, some files are missing. You may want to update your sources database." I tried (as root) urmpi.update -a . Same error. How do I update the source database?
  21. Here is a good reference on file permissions. baudolino permission Jedi
  22. The link below is a how-to on the use of the keyboard to move the mouse. http://www.mail-archive.com/linux%40hamlug...g/msg00498.html baudolino mouse free in 2003
  23. baudolino

    /1

    [baudolino]$ ls -l /1 -rw-r--r-- 1 root root 0 Oct 14 18:34 /1 /1 was installed automatically. What exactly it does? I erased it in the previous versions of Mandrake, without any noticeable consequence.
×
×
  • Create New...