Re: C programming: Segmentation fault within malloc?
Have you tried to look at the value sizeof(struct node)? It might be too big. Otherwise, can you show us the backtrace in gdb. On [Thu, 26 Jul 2001 03:15:46 +0300], Shaul Karl [EMAIL PROTECTED] wrote: Breakpoint 2, insert_symbol (sym=0xbfffe25c) at symbols.c:197 197 if (!((node = (struct node *)malloc(sizeof(struct node))) (gdb) l 197 192 193 enum flag insert_symbol(struct symbol *sym) 194 { 195 struct node *node; 196 197 if (!((node = (struct node *)malloc(sizeof(struct node))) 198 (node-data = (struct symbol *)malloc(sizeof(struct symbol) { 199 fprintf(stderr, sym_tab_msg[MEMORY_ALLOCATION_FAILURE]); 200 return FALSE; 201 } (gdb) n Program received signal SIGSEGV, Segmentation fault. 0x400af19e in malloc () from /lib/libc.so.6 (gdb) How can it be? If malloc can not allocate memory it should return a NULL pointer. How can it Seg fault? [03:09:45 16]$ free total used free sharedbuffers cached Mem: 63584 60936 2648 31452 1344 20472 -/+ buffers/cache: 39120 24464 Swap: 116924 52580 64344 [03:09:49 16]$ Since all the memory is used and the machine is running for some time now, doesn't that precludes hardware problems? Obviously I am missing something. -- Shaul Karl [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Shao Zhang Tel: (02) 9209 4838 Software Engineer Fax: (02) 9209 4992 Redfern Broadband Networks (RBN)Mail: [EMAIL PROTECTED]
Re: avifile-player DivX
Hi, Carlos Laviola [EMAIL PROTECTED] wrote: You'll need some Win32 .DLL's, which are available at aviplay's page: http://divx.euro.ru. My impression is that libavifile includes this. I scanned thru manpages and /usr/share/libavifile/doc directory, there seems no README.Debian there to indicate this. But anyway, I downloaded the zip from the site, unzipped to /usr/local/lib/win32, now I am getting this instead: % WIN32_PATH=/usr/local/lib/win32 aviplay test.avi Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr 465.588 MHz Celeron (Mendocino) processor detected Xlib: extension RENDER missing on display :0.0. Stream 0: 73646976:32335649, 67 chunks Cache: Adding stream 0, 67 chunks Cache: Creating cache for file descriptor: 6 Successfully initialized stream 0 Chunk table size 67, format size 40 Successfully opened test.avi. 1 video streams, 0 audio streams Length 67 File test.avi successfully opened 1 streams WARNING: File does not contain audio streams IAviPlayer: FATAL: Failed to initialize decoder object No video will be available Cannot play this Regards, Shao. On 16-Mar-2001 Shao Zhang wrote: Hi, After reading some of discussions about the DivX, I decided to try it out. I apt-getted it(0.6.0), but it is not working as expected. The file I tried works with xanim. I am running the latest unstable. Here is what I am getting: [12:55|pts/[EMAIL PROTECTED] % aviplay test.avi libwin32.so.0: found 22 plugins libmpeg_audiodec.so.0: found 1 plugin libmp3lame_audioenc.so.0: found 1 plugin libaudiodec.so.0: found 4 plugins Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr 465.588 MHz Celeron (Mendocino) processor detected Xlib: extension RENDER missing on display :0.0. Stream 0: 73646976:32335649, 67 chunks Cache: Adding stream 0, 67 chunks Cache: Creating cache for file descriptor 6 Successfully initialized stream 0 Chunk table size 67, format size 40 Successfully opened test.avi. 1 video streams, 0 audio streams Length 67 File test.avi successfully opened 1 streams WARNING: File does not contain audio streams File test.sub not found File test.SUB not found Win32 loader: FATAL: Could not load library IAviPlayer: FATAL: Failed to initialize decoder object No video will be available Cannot play this Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Carlos Laviola - ICQ 55799523 pub 1024D/3516D372 2000-06-05 Carlos Laviola [EMAIL PROTECTED] Key fingerprint = 3BE1 6591 C78C 2AA4 31DD AEEF 6406 0227 3516 D372 -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
avifile-player DivX
Hi, After reading some of discussions about the DivX, I decided to try it out. I apt-getted it(0.6.0), but it is not working as expected. The file I tried works with xanim. I am running the latest unstable. Here is what I am getting: [12:55|pts/[EMAIL PROTECTED] % aviplay test.avi libwin32.so.0: found 22 plugins libmpeg_audiodec.so.0: found 1 plugin libmp3lame_audioenc.so.0: found 1 plugin libaudiodec.so.0: found 4 plugins Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr 465.588 MHz Celeron (Mendocino) processor detected Xlib: extension RENDER missing on display :0.0. Stream 0: 73646976:32335649, 67 chunks Cache: Adding stream 0, 67 chunks Cache: Creating cache for file descriptor 6 Successfully initialized stream 0 Chunk table size 67, format size 40 Successfully opened test.avi. 1 video streams, 0 audio streams Length 67 File test.avi successfully opened 1 streams WARNING: File does not contain audio streams File test.sub not found File test.SUB not found Win32 loader: FATAL: Could not load library IAviPlayer: FATAL: Failed to initialize decoder object No video will be available Cannot play this Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
[OT] CVSSearch: A new search tool for code
Hi, Sorry about the OT post. Since debian uses cvs internally, so this may benefit debian in the future if you find this tool useful. CVSSearch searches for code fragments using CVS comments. Specifically, it takes advantage of the fact that a CVS comment describes the lines of code involved in the commit and that this description will typically hold for many future versions. We would be really appreciated if you could take a short time to try out our demo at: http://www.cse.unsw.edu.au/~amichail/cvssearch/ and fill out the short survey so that we can improve our tool based on your suggestions. You can also just reply to me for any suggestions, improvements and your view of the tool. CVSSearch is developed by research staff and some students at the University of New South Wales, where the recent Australia Linux Conference was held. The tool will be released under GPL. Your feedback will be an invaluable source for us to improve this tool. Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: LaTeX and PDF-files
How about just using dvipdf if you don't need all those fancy pdf features? Shao. Thomas Halahan [EMAIL PROTECTED] wrote: Joerg, I use 2 ways 1) The ps route is good if you have lots of ps figures. pslatex filename.tex dvips filename -o ps2pdf filename.ps the pslatex embeds the fonts for you, it is like using \usepackage{times}. the ps2pdf results are better this way. you can then also use the psfrag package for example (which works with dvips). OR.. 2) only refer to your images without the extension. \includegraphics{filename} then convert all your images to pdf using the eps2pdf perl script (came with potato). eps2pdf *.ps now run pdflatex and your graphics will be included. Hope this helps. Tom On 13 11:12 am, Joerg Johannes wrote: To all pdflatex-users I tried to convert my .tex-files to pdf with the pdflatex-command. This works great for text-only documents. It seems that pdflatex cannot include pictures (they are ok., latex -- xdvi shows them...). Do I have to include them in a special format (I tried .bmp, .png, .ps as input; latex -- dvi makes it all, but pdflatex just leaves space...) How can I do this? thanks joerg -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: XFree 4.0.1 and xdm
Hi, This is a known bug and has already been reported. Shao. Sven Garbade [EMAIL PROTECTED] wrote: Hi all, I´ve succesfully installed Woody and XFree 4.0.1-8 last weekend. Only xdm shows a strange behavior. It starts nearly one minute after the system has bootet. It´s possiblke to login to a console, and suddenly xdm awakes. Any ideas? Regards, Sven -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
wine w2k
Hi, Can someone let me know if wine works with the applications installed on Windows 2000 using the NTFS file system? The documentation says I need to make the windows partition read/write, but I don't really want to make the NTFS partition writable because it is still a bit unstable in Linux. Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: Analog to digital converters for Linux
Hi, You should be able to find your card on this website: http://stm.lbl.gov/comedi/ Shao. Matthias M?ller [EMAIL PROTECTED] wrote: A german company offers a lot PCI-cards with differnet functionalaty. http://www.kolter.de/home_engl.htm good luck Matthias * Samuel Tardieu [EMAIL PROTECTED] [001125 12:41]: I'm looking for a PCI card with several analog input channels. This card must work with Linux, as I plan to use it in an embedded system. If anyone has an URL describing such a card, I'd be happy to receive it by *private* mail. Thanks in advance. Sam -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Matthias Müller Tel.:+49 30 449 80 68 Strelitzer Str. 17Mobile: +49 173 608 53 69 10115 Berlin Fax.:+49 30 47 37 82 36 -- e-Mail: [EMAIL PROTECTED] Map: http://www.stadtplandienst.de/query;ORT=b;PLZ=10115;STR=Strelitzer%20Str%2E;HNR=17;GR=2 -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: SSL in mozilla M18 and Netscape 6
Matthew Sackman [EMAIL PROTECTED] wrote: Dear all. Firstly apologies for posting an empty email... agh! - wrong key strokes! Without wishing to spark off another bitching match about netscape 6 vs mozilla M18, I would like some help regarding https. So far I've been using Netscape 4, and mainly without fault. I use squid on my box, and have netscape set up to use squid for all http. Under netscape 4, https works fine, bypassing squid. Whenever I try to use Netscape 6 or Mozilla M18, the https connection gets refused. Netscape 6 crashes, whilst Mozilla says `connection was refused when attempting to contact...'. In mozilla, go to debug-install psm from the menu and follow the instructions to install psm. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: Netscape 6.0
Phillip Deackes [EMAIL PROTECTED] wrote: On Sat, 18 Nov 2000 22:40:05 +0100 Philipp Schulte [EMAIL PROTECTED] wrote: What about beonex? I installed it yesterday on a friends system and it seems to work good. What is beonex? I just did a search on Google and Freshmeat and found nothing. Just another browser that uses the mozilla code base. It is similar to netscape6 but without the AOL crap in it. You can get it from: www.beonex.de. But I still think it is better to support mozilla. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: locale (gdk?)
Try edit the file /etc/locale.gen, uncomment the locales you want, and then run localegen as root. Shao. Johannes Zellner [EMAIL PROTECTED] wrote: Hello, yesterday I installed freeamp, which resulted in some other packages to be (re)installed. Now my (gdk) locale support seems to be broken. If I lauch a gtk-vim with LC_CTYPE=de_DE, I get Gdk-WARNING **: locale not supported by C library This worked formerly. What can I do ? -- Johannes -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: inserting one postscript file into another
Brian May [EMAIL PROTECTED] wrote: Rogerio == Rogerio Brito [EMAIL PROTECTED] writes: Rogerio On Nov 09 2000, Shao Zhang wrote: Could someone give me some hints? I looked the man page for psselect and psmerge and still cannot figure it out. Rogerio Theoretically, it would be possible if psmerge worked Rogerio correctly (I unfortunately haven't got it to work as I'd Rogerio like). Rogerio Anyway, to split the first file in two files with the Rogerio pages you'd like, you might try to use gv, select the Rogerio pages accordingly and then save them to different files. Rogerio Then after that, you'd have three files and you'd use Rogerio psmerge to glue them together. But, as I've stated Rogerio before, I couldn't get it to work. It works OK for me... Hi, Thanks for the script. Unfortunately, psmerge does not work for me. The two postscript files are very different. One is generated from a sgml document and the other one is from latex using the {report} class. Really, I just want to make this sgml document part of the appendix of the latex document. But I don't know how to convert sgml to latex, then include it, so I tried to merge the two PS files, but then I will loose all the pages numbers etc... Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
inserting one postscript file into another
Hi, I have 2 postscript files. One has pages 1-100 and the other one has pages 1-20. Now, I want to merge the two file so that page 1-80 is the first file, 80-100 is the second file and page 100-120 is the last 20 pages of the original first file. Could someone give me some hints? I looked the man page for psselect and psmerge and still cannot figure it out. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
enlightenment and licq
Hi, When using the dockapp from licq in Enlightenement, E creates a button for it, and there is no way for me to customize it. I just want to get a sticky/transparent flower on my desktop... Alt-click brings up the licq menu, not the E menu unfortunately... anyone know any work around? Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
xdm takes so long to start [was Re: New X Server crashes]
Me too! xdm on my machine(laptop) takes about 50 seconds to start. These are the last few lines in my xdm.log: (==) ATI(0): Backing store disabled (**) Mouse0: Protocol: PS/2 (**) Mouse0: Core Pointer (==) Mouse0: Buttons: 3 (II) Keyboard Keyboard0 handled by legacy driver (II) XINPUT: Adding extended input device Mouse0 (type: MOUSE) Could not init font path element /usr/X11R6/lib/X11/fonts/Type1, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo, removing from list! xdm error (pid 334): SetPerClientControls failed If no one knows why, then I am going to fire up a bug report against it. Regards, Shao. Erik Steffl [EMAIL PROTECTED] wrote: I have the same problem. what kind of DNS issues? I can ping localhost, jojda (which is my hostanme), 127.0.0.1 just fine... -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
enlightenment keybinding
Hi, I always have the impression that enlightenment is bloated and slow. After tried out one of the light theme, it actually uses less memory than sawfish(2MB only on my system with pager and iconbox) However, it seems to me that the keybinding is not as powerful as sawfish. Anyone know how I can bind a key to move the window to the (up, down, left, right) virtual screen? The key in e16keyedit Move window to area on left does not work for me. Thanks for any help in advance. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: Java 2 Runtime Environment
Put this in your sources.list: deb ftp://mirror.aarnet.edu.au/pub/java-linux/debian woody non-free You can replace the first part url with any mirros listed on blackdown.org Shao. Jay Kelly [EMAIL PROTECTED] wrote: Hello Guys, Im running apache and need to add Java 2 Runtime Environment v 1.2.2. Is there a debian package I can use via apt-get install ? any tips you can give me on installing it would be appreciated. Thank you -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: Which editor for programming?
Hi, Damon Muller [EMAIL PROTECTED] wrote: Disclaimer: I use emacs for heavy duty stuff (eg., my thesis in LaTeX), and Vim for everything else... Could you let us know how you live on both emacs and vim? Do you have to use the vi mode in emacs when using emacs? I tried out emacs before and cannot use it at all without the vi mode. Eg. C-d in vim scrolls page down but deletes lines in emacs... Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
sgml and latex
Hi, I have a computer software manual written in sgml using Docbook. Now, in one of my latex documents, I would like to include this sgml manual as an appendix of my latex document. But I don't know how to do it. I can only convert sgml to jadetex, but not latex, so I cannot just use latex's \include. Any ideas? Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: Mozilla M18 on potato (pentium100)
Hi, Pap Tibor [EMAIL PROTECTED] wrote: Another question: I would like to use java support with mozilla. I've got the sun java plugin 1.2.2 on a CD. Can I install this into mozilla? I don't want to download another plugin if it's not necessary. (My internet connection through modem is quite expensive and slow.) If you have the java 1.2 installed, you can simply link the javaplugin.so to your mozilla's plugins directory. I use the following script for automate the process of updating the nightly and setting up the plugins as well. #!/bin/sh #This scripts automates the mozilla installation process #Written by Shao Zhang [EMAIL PROTECTED] mozilla=mozilla-i686-pc-linux-gnu.tar.gz dir=`date --date=yesterday '+%Y-%m-%d'`-21-Mtrunk url=ftp://ftp.mozilla.org/pub/mozilla/nightly/$dir/$mozilla javaplugin=/usr/lib/j2re1.3/plugin/i386/javaplugin.so mozplugin=$HOME/package/plugins/javaplugin.so cd $HOME; rm -f $mozilla; wget $url; if [ -f $HOME/$mozilla ]; then rm -rf $HOME/package; tar zxvf $mozilla; ln -s $javaplugin $mozplugin; exit 0; fi exit 1; Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: vim + printing = wretched output
William Jensen [EMAIL PROTECTED] wrote: Bill Vim supports several options to munge tabs in various ways. One is expandtab, which will replace each TAB character with the number of spaces defined by tabstop. But this replaces the TAB, which may not be what some people want. See also softtabstop, which will simulate a tabstop setting without actually changing tabstop itself, using a combination of spaces and tabs to generate the indentation. For instance, if set softtabstop=4 is used (with tabstop=8), the first indent is 4 spaces, the second a tab, the third a tab and 4 spaces, etc. snip Bob, The softtabstop is exactly what I needed. I reset the tabstop to 8, set the softtabstop to 3 and edited a test file. When I less or more it it looks the same as it does when I'm editing the file. Thanks a ton for that hint. Even though it took me another hour or so to re-edit my file and fix those tabs it is well worth it because I just love vim. Again, thanks. Have you tried astyle to do this? shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Please help with some harddisk error
Hi, I am getting some harddisk errors on one of our production servers. We also have the same hardware for two other servers(web/proxy) running 2.0.36/hamm with no problems. Hardware: 4 x 9GB Fujisu Mylex Accelerate 250 Software: Kernel 2.2.16/with latest DAC960 comes with kernel(will try out 2.2.17) Current Potato Errors: hda: dma_intr: status=0x51 { DriveReady SeekComplete Error } hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=34431, sector=34368 end_request: I/O error, dev 03:01 (hda), sector 34368 hda: dma_intr: status=0x51 { DriveReady SeekComplete Error } hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=34431, sector=34368 end_request: I/O error, dev 03:01 (hda), sector 34368 hda: dma_intr: status=0x51 { DriveReady SeekComplete Error } hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=34431, sector=34368 end_request: I/O error, dev 03:01 (hda), sector 34368 hda: dma_intr: status=0x51 { DriveReady SeekComplete Error } hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=279631, sector=279568 end_request: I/O error, dev 03:01 (hda), sector 279568 We are gettting thounsands of these messages. However, the server still runs ok, but some files are damaged randomly. Thanks for any help in advance. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: lynx gone mad!
give w3m a go! It is far better than lynx IMHO. And it renders both frame/table nicely. apt-get install w3m w3m-ssl Shao. Richard E. Hawkins [EMAIL PROTECTED] wrote: Oh, the horror. I may not survive! lynx has gone *mad*. It's still using /etc/lynxcfg, at least for some things. My customizations (light background, launch new xterm with new lynx on a link by .) still work, but yesterday it stopped obeying the cookie-reject domains--while continuing to obey cookie accept. Today, it can't read my .lynx_bookmarks.html, instead telling me Unable to open bookmark file, use 'a' to save a link first [ok, I just solved that one. Today it wants lynx_bookmarks.html; until today, it worked with the . It's also reset my mode from expert to novice, and a couple of other defaults restored.] I haven't upgraded; it's the same version that was running fine on Tuesday. Is anyone else seeing this? [And what's it going to lose tomorrow??? :(] hawk -- Prof. Richard E. Hawkins, Esq. Smeal 178(814) 375-4700 [EMAIL PROTECTED] These opinions will not be those of Penn State until it pays my retainer. -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: [OT] Potato vs Realtek8029PCI NIC
Hi, sorry about the OT message. While on the topic of realtek8029, I have got a pcmcia 8029 ethernet card and it works perfectly under linux. But I can never get this card working under w2k :( Anyone have any ideas? Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: C programming
Hi, With your program, if you print out some values of x and y, you can see that y become very very small after a couple of iterations. When y is too small, the following statement become true: z = x+y, z == x because y is too small and is ignored due to the fact that you declared z as double. therefor, (z=x+y, zx) and (x+yx) are different looping conditions. if you declare z as long double z then it should give you the same result. Regards, Shao. Christophe TROESTLER [EMAIL PROTECTED] wrote: Hi the list, I apologize if that is a little bit off topic but I am a bit puzzled and I know there are experts on this list. I would like an explanation on why the two for below give different results. Thanks, ChriS -.¸¸.·´¯`·.¸¸.-.¸¸.·´¯`·.¸¸.-.¸¸.·´¯`·.¸¸.-.¸¸.·´¯`·.¸¸.-.¸¸.·´¯`·.¸¸.- #include stdio.h main() { double x, y, z; int t; for(x=.5, y=1./4., t=1; z= x + y, z x; y /=2, t++) ; printf(t=%i\n, t); for(x=.5, y=1./4., t=1; x+y x; y /=2, t++) ; printf(t=%i\n, t); } -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
find question
Hi, can somebody help me with this one? % find `pwd` \( -name *.log -o -name *.aux \) /home/shao/report/main.log /home/shao/report/main.aux /home/shao/report/title.aux /home/shao/report/abstract.aux % find `pwd` \( -name *.log -o -name *.aux \) -exec 'rm {}' ';' find: rm /home/shao/report/main.log: No such file or directory find: rm /home/shao/report/main.aux: No such file or directory find: rm /home/shao/report/title.aux: No such file or directory find: rm /home/shao/report/abstract.aux: No such file or directory Thanks for any help in advance. Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
help with file timestamp
Hi, I am having some problems here with timestamp. The system is hamm. # date Thu Jul 20 15:59:32 EST 2000 # date -u Thu Jul 20 05:59:34 UTC 2000 # touch /tmp/hello # ls -al /tmp/hello -rw-rw-r-- 1 root root 0 Jul 20 05:59 /tmp/hello As you can see /tmp/hello's timestamp is using UTC rather than EST. How do I make it using EST? Addtitional Info: # cat /etc/timezone Australia/Sydney /etc/init.d/hwclock.sh is using GMT=--localhost. Well, I don't think it really matters, coz I got a potato where GMT=--UTC and the time stamps are still using EST. Thanks for any help in advance. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: help with file timestamp
It is set to no. Besides, I have even tried this in /etc/init.d/hwclock.sh GMT=--localtime and it still does not work.. Thanks. Shao. Corey Popelier [EMAIL PROTECTED] wrote: Check the file /etc/default/rcS There is a line in there that says Set UTC to yes or no. Make sure this is set to no. Cheers, Corey J. Popelier http://members.dingoblue.net.au/~pancreas On Thu, 20 Jul 2000, Shao Zhang wrote: Hi, I am having some problems here with timestamp. The system is hamm. # date Thu Jul 20 15:59:32 EST 2000 # date -u Thu Jul 20 05:59:34 UTC 2000 # touch /tmp/hello # ls -al /tmp/hello -rw-rw-r-- 1 root root 0 Jul 20 05:59 /tmp/hello As you can see /tmp/hello's timestamp is using UTC rather than EST. How do I make it using EST? Addtitional Info: # cat /etc/timezone Australia/Sydney /etc/init.d/hwclock.sh is using GMT=--localhost. Well, I don't think it really matters, coz I got a potato where GMT=--UTC and the time stamps are still using EST. Thanks for any help in advance. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _ -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: help with file timestamp
Brian May [EMAIL PROTECTED] wrote: Corey == Corey Popelier [EMAIL PROTECTED] writes: Corey Check the file /etc/default/rcS There is a line in there Corey that says Set UTC to yes or no. Make sure this is set to Corey no. You are thinking of potato. IIRC It is different in slink. This is hamm... Correct. In Hamm, there is not UTC=yes, but there is GMT=-u, which is really the same thing. I have hard coded GMT=--localtime in /etc/init.d/hwclock.sh anyway, so it should not matter. Hi, I am having some problems here with timestamp. The system is hamm. Might be a kernel issue (seeing date is reporting the correct thing). What kernel version are you using? # uname -r 2.0.36 Do you have an /etc/localtime? Yes. Is this file required on hamm? (sorry I can't remember now). On mine it is: [632] [snoopy:bam] ~ ls -l /etc/localtime lrwxrwxrwx1 root root 39 May 5 12:16 /etc/localtime - /usr/share/zoneinfo/Australia/Melbourne However, I thought date didn't work properly without this. Mine looks like this: lrwxrwxrwx 1 root root36 Jul 20 05:01 /etc/localtime - /usr/share/zoneinfo/Australia/Sydney Shao Zhang - Running Debian 2.1 ___ _ _ Department of What?!!? Are you running hamm or slink? Sorry. That was referring to my personal computer, I am running woody now. The one I am talking about is our webserver. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
difference between running perl from command line and web
Hi, I am using the latest perl in potato. Can anyone help me with this problem? Thanks. Shao. From: [EMAIL PROTECTED] (Shao Zhang) Newsgroups: comp.lang.perl.misc Subject: difference between running perl from command line and web Reply-To: [EMAIL PROTECTED] User-Agent: slrn/0.9.6.2 (Linux) NNTP-Posting-Host: 203.63.219.44 Message-ID: [EMAIL PROTECTED] Date: 18 Jul 2000 14:18:22 +1000 X-Trace: 18 Jul 2000 14:18:22 +1000, 203.63.219.44 Lines: 24 Path: news!shao Xref: news comp.lang.perl.misc:319361 Hi, I am having some strange problems with perl. For example: $output = `echo name=value | lynx -post_data -dump www.blah.com/cgi-bin/blah.cgi`; Now, with earlier perl versions, this works from both command line and web(as an cgi program). However, recently, I upgraded to perl5.005 and now it only works from command line and not web anymore. Any ideas? Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
wired error when compiling 2.2.16
Hi, 2.2.16 compiles fine on my woody boxes, but having problems on a potato box. I have recently upgraded an old box from hamm-potato. But when I try to compile 2.2.16, after make menuconfig, it creates a symbolic link asm - asm-i386 in /usr/src/linux. I have checked the kernel source on my woody box, and this symbolic link should stay in /usr/src/linux/include. Due to this, the kernel will not compile, I manually moved it to /usr/src/linux/include and it seems working fine. Any ideas why this is happening? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
a central script to choose what daemons to start
Hi, Is there any script out there that will let me to choose what services to start by default? For instance, I would like to have apache installed on my laptop, but I don't want to start it everytime I boot up. Editing /etc/init.d/* won't help me much because then I will have to change it everytime I upgrade the package. The ppp's init script uses the file /etc/ppp/ppp-on-boot, to detect whether to start pppd at boot time, wouldn't it be great if we have a some kind of similar file, like /etc/default-daemon, which all the init scripts will check that file to determine whether to start or not? Thanks for any help in advance. Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
reiserfs for 2.2.16
Hi, Anyone tried out the reiserfs patch for kernel 2.2.16 yet? I used this patch linux-2.2.16-reiserfs-3.5.22-patch, and the utils for reiserfs does not compile, any ideas? sorry for the long unwrapped lines... thanks in advance. Shao. [EMAIL PROTECTED] /usr/src/linux/fs/reiserfs/utils# make mkdir -p bin set -e; for i in mkreiserfs dumpreiserfs fsck resize_reiserfs; do make -C $i ; done make[1]: Entering directory `/usr/src/linux/fs/reiserfs/utils/mkreiserfs' cc -Wall -c -O -I/usr/src/linux/fs/reiserfs/utils/include -I/usr/src/linux/fs/reiserfs/utils/../../../include/linux -I- mkreiserfs.c cc -Wall -c -O -I/usr/src/linux/fs/reiserfs/utils/include -I/usr/src/linux/fs/reiserfs/utils/../../../include/linux -I- ../lib/misc.c cc -Wall -c -O -I/usr/src/linux/fs/reiserfs/utils/include -I/usr/src/linux/fs/reiserfs/utils/../../../include/linux -I- /usr/src/linux/fs/reiserfs/utils/../version.c cc -Wall -c -O -I/usr/src/linux/fs/reiserfs/utils/include -I/usr/src/linux/fs/reiserfs/utils/../../../include/linux -I- ../lib/io.c cc -L/usr/src/linux/fs/reiserfs/utils/bin -o /usr/src/linux/fs/reiserfs/utils/bin/mkreiserfs mkreiserfs.o misc.o version.o io.o make[1]: Leaving directory `/usr/src/linux/fs/reiserfs/utils/mkreiserfs' make[1]: Entering directory `/usr/src/linux/fs/reiserfs/utils/dumpreiserfs' cc -Wall -c -O -I/usr/src/linux/fs/reiserfs/utils/include -I/usr/src/linux/fs/reiserfs/utils/../../../include/linux -I- dumpreiserfs.c dumpreiserfs.c: In function `pack_partition': dumpreiserfs.c:278: `uint32_t' undeclared (first use this function) dumpreiserfs.c:278: (Each undeclared identifier is reported only once dumpreiserfs.c:278: for each function it appears in.) dumpreiserfs.c:278: parse error before `blocknumber32' dumpreiserfs.c:279: `uint16_t' undeclared (first use this function) dumpreiserfs.c:291: `reclen16' undeclared (first use this function) dumpreiserfs.c:359: `data16' undeclared (first use this function) dumpreiserfs.c:419: `blocknumber32' undeclared (first use this function) make[1]: *** [dumpreiserfs.o] Error 1 make[1]: Leaving directory `/usr/src/linux/fs/reiserfs/utils/dumpreiserfs' make: *** [all] Error 2 -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
SGML beginners question
Hi, Recently, I have read a lot about SGML. It gives me the impression that it is very hard to learn and very very powerfull. However, I still don't have a clue that in what circumstances I should use SGML instead of others. Should I write a thesis report in SGML or LaTeX? Would it be idea for a general document that one would normally write in Word? Thanks for any help in advance. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
setting up ipmasq
Hi, I have recompiled my kerenel to have all the required modules for ipmasq. Then I apt-get installed ipmasq package. My impression is that things should work straight away... But I am getting network unreachable when trying to access internet from a box behind the firewall. I can ping the firewall with no problem. Here is the output from /usr/sbin/ipmasq -d, all settings are default. Can anyone suggest me how to debug the ipmasq package? Thanks in advance. Shao. The box I am trying to acess the internet is 192.168.1.2. Firewall(192.168.1.1) is running 2.2.16, the client is running 2.2.14. [20:34|pts/[EMAIL PROTECTED] % /usr/sbin/ipmasq -d Interfaces found: ppp0 129.94.241.56/255.255.255.255 eth0 192.168.1.1/255.255.255.0 /sbin/ipchains -P input DENY /sbin/ipchains -P output DENY /sbin/ipchains -P forward DENY /sbin/ipchains -F input /sbin/ipchains -F output /sbin/ipchains -F forward /sbin/ipchains -A input -j ACCEPT -i lo /sbin/ipchains -A input -j DENY -i !lo -s 127.0.0.1/255.0.0.0 -l /sbin/ipchains -A input -j ACCEPT -i eth0 -s 192.168.1.1/255.255.255.0 /sbin/ipchains -A input -j DENY -i ppp0 -s 192.168.1.1/255.255.255.0 -l /sbin/ipchains -A input -j ACCEPT -i ppp0 -d 129.94.241.56/32 /sbin/ipchains -A forward -j MASQ -i ppp0 -s 192.168.1.1/255.255.255.0 /sbin/ipchains -A output -j ACCEPT -i lo /sbin/ipchains -A output -j ACCEPT -i eth0 -d 192.168.1.1/255.255.255.0 /sbin/ipchains -A output -j ACCEPT -i eth0 -d 224.0.0.0/240.0.0.0 -p ! tcp /sbin/ipchains -A output -j DENY -i ppp0 -d 192.168.1.1/255.255.255.0 -l /sbin/ipchains -A output -j ACCEPT -i ppp0 -s 129.94.241.56/32 echo 1 /proc/sys/net/ipv4/ip_forward /sbin/ipchains -M -S 7200 10 160 /sbin/ipchains -A input -j DENY -s 0.0.0.0/0 -d 0.0.0.0/0 -l /sbin/ipchains -A output -j DENY -s 0.0.0.0/0 -d 0.0.0.0/0 -l /sbin/ipchains -A forward -j DENY -s 0.0.0.0/0 -d 0.0.0.0/0 -l -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
help with web security
Hi, I am setting up an automated registration system where the cgi scripts need to do the following: 1. add a new user to the system and write to passwd files 2. update dns, restart named 3. update httpd.conf, restart httpd 4. update qmail conf, restart qmail-{..} 5. many more... Now, to do all of this, surely I need root access. However, there is no way I can configure apache to run as root, and suEXEC won't help me much because it affectively runs that virtual webserver as root. So how do I achieve this while still enforce good security? One idea that I have is, let apache(cgi scripts) to write to a file with all the necessary information, and then have crontab to run the program as root to read this info and do all the update... Thanks for any help in advance. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
help with a simple C program
Hi, Could anyone explain to me why the following C program always fails? I mean the setsockopt always fails. Thanks for the help. Thanks for any help in advance. Regards, Shao. =cut here== #include stdio.h #include stdlib.h #include sys/socket.h #include sys/types.h int main(void) { int sd, error; const char f = 1; sd = socket(AF_INET, SOCK_DGRAM, 0); /* 0 for IP protocol */ error = setsockopt(sd, SOL_SOCKET, SO_BROADCAST, (char *) f, 1); if (error == -1) printf(setsockopt on %d failed!!\n, sd); close(sd); return 0; } -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
apache module question
Hi, Is there an apache module out there so that I can insert a little banner to all of the html pages that it serves? If there is not, could anyone tell me an alternative solution? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: Crash-URL
try this: HTML BODY a href=c:\nul\nul hello, please click me!! /a /BODY /HTML Regards, Shao. Sven Burgener [EMAIL PROTECTED] wrote: Hello I once saw a link on a page that caused windows to crash immediately when clicked on. It was stated on that very page that this would happen. So then I tried it and it worked! Unfortunately I lost the URL. :*( Anyone know of this? Perhaps it's something like NUL or so which supposedly is a reserved name under windows? TIA! Sven -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re[3]: Simple Text Editor with Synatx highlighting?
Hi, The worst case that I have seen in vim, is the multiline regexp with quotes in it. And it is even worse if I only want to match the beginning quote. See example below: $hello =~ s{ \hello world }{ hello }gex; Anyone have a solution for this? This really prevents me using this nice perl feature. Regards, Shao. Steve Lamb [EMAIL PROTECTED] wrote: Tuesday, May 23, 2000, 6:57:22 AM, Keith wrote: This leads to a question I've been interested in. I've noticed vim's Perl syntax highlighting to be, hmmm, not always what it should be. (As some have said, only perl can parse Perl). Any opinions on which editor has the *best* Perl syntax highlighting? Vim. I've not seen a problem with its highlighting that didn't also improve the readability of my code when I got in the habit of getting it to colorize right. The /only/ perl construct I know of that doesn't work is something like this: if ($foo =~ /bar\/blam/){ } Vim would see the \/, see a / and mess up the colorization right there. However, this fixes it: if ($foo =~ m/bar\/blam/){ } Adding the m works fine. To me, explicitly stating a match is no big deal for me. If course, I also use parens like a zealot but bouncing on the % key is so much fun. foreach $file (sort(keys(%files))){ } :) One downside of vim that I just remembered, be careful the need for slamming the ESC key. Windows likes to think it means shut this window NOW! and if you have the confirmation turned off you lose messages in your Windows email client. Normally I don't wack the ESC key unless I am doing code. See above. ;) -- Steve C. Lamb | I'm your priest, I'm your shrink, I'm your ICQ: 5107343 | main connection to the switchboard of souls. ---+- -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: encrypted perl scripts
Hi, I still think it is encrypted. You can tell that Joey's signature is proper perl code. But the one I posted is not. It uses Filter::decrypt to process it, which makes it very slow. I wish there is someway that I can get the original source back. Thanks. Shao. Matthew Dalton [EMAIL PROTECTED] wrote: Shao Zhang wrote: Hi, I have got a perl script that are encrypted. It looks like something like this: #!/usr/bin/perl use Filter::decrypt ; [EMAIL PROTECTED]@^C6oxOp=9p(35p+=8p:-^^7L^D-;?p=(^UE_Ap:-^^;^WE$^Y6R/^_!7L^F,= ^Q17?p=9^BoQL^\,1)^^67L^Q )^U(7^DKxOZFR/?^U^K^^9^B^Z^XpM^QEpWB\`E7!^E^H^S^EIR^E^F\fsoQL^Q)L^B,5$^D6R^U67^F 6fsoQfsE^E=^L^\^Kp^K^]^X5^VxOZF0 [EMAIL PROTECTED]@^M$^L^]^B#E^] That's not encrypted! Looks like a normal Perl script to me! Just take a look at Joey Hess' sig: #!/usr/bin/perl -nietianmsurwdkgohvf_l_pjbxcyzq --. --- - .--. . .-. .-.. y/-. //cd;for$^(split){for$b(1..80){$_=int($b/27).$b/9%3 .$b/3%3 .$b# by JH %3;/[12]0/||do{y/120/.-/d;$^eq$_print substr$^I,$c,1;$c++}}$c=0} # and RC The similarities are astounding! Matthew -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: Mutt configuration
Erik van der Meulen [EMAIL PROTECTED] wrote: Hi, I love Mutt as an e-mail client. A few things I have not been able to sort out yet. Any suggestions would be welcome. - I would like to have prober IMAP support. I use Mutt on a local machine, for remote access I use Netscape (IMAP) over LAN, and IMP (also IMAP) over Internet. I have not been able to get Mutt to do proper IMAP. Rumours about a new release with improved functionallity are circulating... in Mutt 1.12, IMAP works ok for me. Try the following: mailboxes = {your.imap.server}$HOME/mail/incoming If all of your mails are getting from the IMAP sever, then you can even: set folder = {your.imap.server} then you can do imap folder browsing as well. - I would like to be able to use a different name in the From: line than my linux account name. My account is 'erik', but I have an alias e.van.der.meulen. How do I get Mutt to default to the last? try(this is what I have): set realname = Shao Zhang my_hdr my_hdr From: $realname \[EMAIL PROTECTED] - Is there some way to set return receipts in Mutt? I thing I have been able to do this once, but cannot get it right again. try: my_hdr Return-Receipt-To: \[EMAIL PROTECTED] Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
encrypted perl scripts
Hi, I have got a perl script that are encrypted. It looks like something like this: #!/usr/bin/perl use Filter::decrypt ; [EMAIL PROTECTED]@^C6oxOp=9p(35p+=8p:-^^7L^D-;?p=(^UE_Ap:-^^;^WE$^Y6R/^_!7L^F,= ^Q17?p=9^BoQL^\,1)^^67L^Q )^U(7^DKxOZFR/?^U^K^^9^B^Z^XpM^QEpWB\`E7!^E^H^S^EIR^E^F\fsoQL^Q)L^B,5$^D6R^U67^F 6fsoQfsE^E=^L^\^Kp^K^]^X5^VxOZF0 [EMAIL PROTECTED]@^M$^L^]^B#E^] Now, I have two questions: 1. how did they do this? 2. Is there a *way* to get the original source back?? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Help with laptop's external display
Hi, I have a thinkpad 1400(2621) i series laptop. When I am in console mode, the external display works fine. However, when I am in X mode, the external display does not work at all. There are no output from the device at all. Could someone help me with this please? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
OT: Repair a harddisk partition
Hi, I have an old computer that has 800MB windoze partition and 400 MB linux partition. While my sister was using windows today, it crashed and damaged the partition information. In windoze, fdisk cannot detect any partiton table and claims the physical disk is 800MB. I tried to use a linux rescure disk, and it said unkown partition table during booting up. I still have some imprtant files on the windows partition. Is there anyway to get it back? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: mounting a NTFS partition at boot time
Alan Sobey [EMAIL PROTECTED] wrote: Yes. I am runing 2.2.14, and compiled NTFS as a module, I have no problem mounting it from command line. But putting it in fstab does not work. Could you post the line in fstab? Here are a couple of lines from my fstab: # file system mount point type options dump # pass /dev/hda3 / ext2 defaults,errors=remount-ro 0 1 /dev/hda5 /usr/localext2 defaults,errors=remount-ro 0 1 /dev/hda6 /home ext2 defaults,errors=remount-ro 0 1 /dev/hda1 /winntntfs defaults,errors=remount-ro 0 0 Check your man page for the options for ntfs - maybe your selected options aren't valid. Yes, I did check. NTFS is not there. But the manpage does mention that any file system listed in /proc/filesystems should be supported, which has got NTFS. Try mount /winnt from the console (i.e. let it try to read /etc/fstab, rather than typing in the full command manually) and hopefully errors will be reported to the console. % sudo mount /winnt mount: wrong fs type, bad option, bad superblock on /dev/hda1, or too many mounted file systems It seems to me it is still trying to mount it as an ext2 partition. Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
mounting a NTFS partition at boot time
Hi, I want to mount a NTFS partition at boot time automatically, so that I can simply use the truetype fonts installed on the NT partition. However, /etc/fstab does not seem to understand the option ntfs. So where should I put this mount command? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: mounting a NTFS partition at boot time
Viktor Rosenfeld [EMAIL PROTECTED] wrote: Shao Zhang wrote: Hi, I want to mount a NTFS partition at boot time automatically, so that I can simply use the truetype fonts installed on the NT partition. However, /etc/fstab does not seem to understand the option ntfs. So where should I put this mount command? Are you sure that you are running a 2.2 kernel or at least have the NTFS patch applied to the stock 2.0 kernel? NTFS support was included in 2.2. Yes. I am runing 2.2.14, and compiled NTFS as a module, I have no problem mounting it from command line. But putting it in fstab does not work. Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: mounting a NTFS partition at boot time
Viktor Rosenfeld [EMAIL PROTECTED] wrote: Shao Zhang wrote: Yes. I am runing 2.2.14, and compiled NTFS as a module, I have no problem mounting it from command line. But putting it in fstab does not work. Could you post the line in fstab? Here are a couple of lines from my fstab: # file system mount point type options dump # pass /dev/hda3 / ext2 defaults,errors=remount-ro 0 1 /dev/hda5 /usr/localext2 defaults,errors=remount-ro 0 1 /dev/hda6 /home ext2 defaults,errors=remount-ro 0 1 /dev/hda1 /winntntfs defaults,errors=remount-ro 0 0 Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
FontSet problem
Hi, When I run gv, I got the following warning message. I think I am missing some package, but I don't know what it is. [23:46|pts/[EMAIL PROTECTED] % gv ass1_report.ps Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: Web Browser
I am very surprised that no one mentioned about w3m on this thread. Personally, I think w3m works far more better than lynx. Shao. Dan Hutchinson [EMAIL PROTECTED] wrote: Does anyone know of a web browser that displays jpg and gif images? I like the speed of lynx and don't like netscape. I am looking for something as fast as lynx that allows frames, gif images, etc.. Dan ___ To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax, all in one place - sign up today at http://www.zdnetonebox.com -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
licq in unstable
Hi, Just wondering what happened to licq in unstable... apt can no longer install it... Shao -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: wget question
You cannot use wildcard in wget. Instead, you should say something like: wget -r -np ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386 Shao. Antonio Rodriguez [EMAIL PROTECTED] wrote: What is wrong with the following? Pasted next the output bash-2.01$ wget ftp://ftp.twoguys.org/pub/kde/stable/latest/distribution/deb/potato/i386/* --19:41:38-- ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/* = `.listing' Connecting to ftp.twoguys.org:21... connected! Logging in as anonymous ... Logged in! == TYPE I ... done. == CWD pub/kde/stable/latest/distribution/deb/potato/i386 ... done. == PORT ... done.== LIST ... done. .listing: Permission denied unlink: Permission denied No matches on pattern `*'. bash-2.01$ Thanks Antonio. -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: wget question
What version of wget are you using? Are you actually in the directory that is writable by the user? Mine is 1.5.3 and it works. See output below: [13:32|pts/[EMAIL PROTECTED] % wget -r -np ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/ --13:34:26-- ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/ = `ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing' Connecting to ftp.us.kde.org:21... connected! Logging in as anonymous ... Logged in! == TYPE I ... done. == CWD pub/kde/stable/latest/distribution/deb/potato/i386 ... done. == PORT ... done.== LIST ... done. 0K - . 13:34:36 (4.51 KB/s) - `ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing' saved [1844] Removed `ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing'. --13:34:36-- ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/Packages.gz = `ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/Packages.gz' == CWD not required. == PORT ... done.== RETR Packages.gz ... done. Length: 3,854 0K - ...[100%] 13:34:41 (928.00 B/s) - `ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/Packages.gz' saved [3854] --13:34:41-- ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/kdeadmin_1.1.2-19990906-1_i386.deb = `ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/kdeadmin_1.1.2-19990906-1_i386.deb' == CWD not required. == PORT ... done.== RETR kdeadmin_1.1.2-19990906-1_i386.deb ... done. Antonio Rodriguez [EMAIL PROTECTED] wrote: I just tried, didn't work. Next is the output: bash-2.01$ wget -r -np ftp://ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/ --20:17:23-- ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/ = `ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing' Connecting to ftp.us.kde.org:21... connected! Logging in as anonymous ... Logged in! == TYPE I ... done. == CWD pub/kde/stable/latest/distribution/deb/potato/i386 ... done. == PORT ... done.== LIST ... done. ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386: Permission deniedftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/.listing: No such file or directory unlink: No such file or directory --20:17:25-- ftp://ftp.us.kde.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/ = `ftp.us.kde.org/pub/kde/stable/latest/distribution/deb/potato/i386/index.html' Connecting to ftp.us.kde.org:21... connected! Logging in as anonymous ... Logged in! == TYPE I ... done. == CWD pub/kde/stable/latest/distribution/deb/potato/i386 ... done. == PORT ... done.== RETR ... No such file `'. FINISHED --20:17:27-- Downloaded: 0 bytes in 0 files bash-2.01$ Shao Zhang wrote: You cannot use wildcard in wget. Instead, you should say something like: wget -r -np ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386 Shao. Antonio Rodriguez [EMAIL PROTECTED] wrote: What is wrong with the following? Pasted next the output bash-2.01$ wget ftp://ftp.twoguys.org/pub/kde/stable/latest/distribution/deb/potato/i386/* --19:41:38-- ftp://ftp.twoguys.org:21/pub/kde/stable/latest/distribution/deb/potato/i386/* = `.listing' Connecting to ftp.twoguys.org:21... connected! Logging in as anonymous ... Logged in! == TYPE I ... done. == CWD pub/kde/stable/latest/distribution/deb/potato/i386 ... done. == PORT ... done.== LIST ... done. .listing: Permission denied unlink: Permission denied No matches on pattern `*'. bash-2.01$ Thanks Antonio. -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _ -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL
Re: Sony vaio
Try the linux-laptop page: http://www.cs.utexas.edu/users/kharker/linux-laptop/ Tim Ryder [EMAIL PROTECTED] wrote: Does anyone have any info on getting the sony cd51 pcmcia cd player to work with debian it installs itself at ide2=0x180,0x386 I am using the sony vaio n505ve tim ryder please cc me on this because i am not currently on the mailing list -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: URGENT: libwww-perl: automated form filling
I have the same problem here. I have posted to perl.misc and libwww mailinglist without any success. However, the answers are positive, and lots people mentioned to have a go on the module CGI.pm. Please have a look at the following form: https://registry.connect.com.au/cgi-bin/na_create.cgi It woule be great if I can use perl to automate it. Shao. Alberto Maurizi [EMAIL PROTECTED] wrote: Hi all, Debian people. I'm quite new to perl and, in particular to libwww-perl. I fell on it because I was looking for some API to write www clients to automatically fill forms. The problem I have is that I cannot get the same result from the server as I obtain using a web browser. What happens is that the result is the same document I use as HTTP::Request while, if I use a web browser, clicking the submit button I get a second document. Does anybody know/understand the problem? Where to find source of information/examples? Is there any better solution than libwww-perl? (note that the problem persists using lynx -post_data) Thanks in advance, Alberto Maurizi -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
[OT] C help plz..
Hi, If I have an unsigned long int, instead printing out its values in string using printf(%ld\n, my_var), I would like to print it out as a 4-byte binary data. Is there any easy way to do this in C. Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: [OT] C help plz..
But isn't %[Xx] just prints out as Hexdecimal? I just tried, and it prints out something like: 38c9616e which consumes 8 bytes in a file. Given that unsigned long is 32 bits, I want to use exactly 4 byte to represent it in order to save some space. Thanks. Shao. Matthew Dalton [EMAIL PROTECTED] wrote: Try using %X or %x instead of %ld Shao Zhang wrote: Hi, If I have an unsigned long int, instead printing out its values in string using printf(%ld\n, my_var), I would like to print it out as a 4-byte binary data. Is there any easy way to do this in C. Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _ -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: libbz2 question
Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote: On 07-Mar-2000 Shao Zhang wrote: Hi, It seems that libbz2 does not have a function that similar to fgets or gzgets. Does anyone know how to do it using the libbz2 functions? my understanding is that you do the file reading in your own code (or another libraries) and simply pass the input to libbz2. The headers and what not should explain it. You can also grab the bzip2 source, as it uses the lib to do its work. Hi, Thanks for the reply. But what I need is to get each line for a .bz2 file recursively. I have done this easily with the zlib1g library by using the function gzgets which is very similar to fgets. But in libbz2, the only file reading function is: bzRead(bzerror, bzFile, buf, 2048); where it reads 2048 bytes to buf regardless the newline character. And it would be too expensive to uncompress the whole file first and then start reading using standard libc functions. Thanks for the help in advance. Regards, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
what happened to the binary ldd in frozen
Hi, Just found that the ldd binary is missing from the ldso package. Does anyone know what happened to it?? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
libbz2 question
Hi, It seems that libbz2 does not have a function that similar to fgets or gzgets. Does anyone know how to do it using the libbz2 functions? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
check if the email address is valid
Hi, I need to write a program to check if a given email address is valid. I cannot simply send a message to the email address and waiting for a bounce. The only way I can think is to telnet to the mail server on port 25 and do a VFRY command. However, some mail servers are configured not to allow such command. Is there any other way to do this?? Thanks in advance. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: check if the email address is valid
Howard Mann [EMAIL PROTECTED] wrote: Shao Zhang wrote: Hi, I need to write a program to check if a given email address is valid. I cannot simply send a message to the email address and waiting for a bounce. The only way I can think is to telnet to the mail server on port 25 and do a VFRY command. However, some mail servers are configured not to allow such command. Is there any other way to do this?? Try the vrfy application, available as a .deb Hi, it seems that vrfy simplely calls VRFY after telneting to the mail server, and it still does not really check the validity. [14:31|pts/[EMAIL PROTECTED] % vrfy [EMAIL PROTECTED] send some mail, i'll try my best [14:31|pts/[EMAIL PROTECTED] % vrfy [EMAIL PROTECTED] VRFY not available Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: glibc package
Hi, Unforunately, this is not the case. In this case, libc *Pre* depends on deibanutils, and debianutils *Pre* depends on libc. I have already submitted a bug report against libc. This little bug will prevent apt to upgrade from slink to potato, becuase apt-get cannot resolve the predependency loop. Shao. David Z. Maze [EMAIL PROTECTED] wrote: Fred R [EMAIL PROTECTED] writes: Fred I'm trying to install the package to upgrade the glibc 2.1.3 on my Fred machine but I get a message that I need to install debinnutils first. So Fred I tried to install that package and it tells me the I need to upgrade my Fred libc to =2.1. So what do I do now? Which comes first chicken or egg? Yes. This will work fine if you put them both on the same command line, e.g. 'dpkg --install libc*.deb debianutils*.deb'. Note that lots of things might have explicit dependencies on the older version of libc6, and other things might not have declared dependencies but will break anyways with the newer libc; if you have the bandwidth and don't mind some potential brokenness, it might be worth upgrading to the frozen preparing-for-release potato distribution (if you're using APT, change stable to frozen in /etc/apt/sources.list). -- David Maze [EMAIL PROTECTED] http://donut.mit.edu/dmaze/ Theoretical politics is interesting. Politicking should be illegal. -- Abra Mitchell -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
gzip/bzip2 C library
Hi, Does anyone know where I can find the C libraries for gzip/bzip2, so that I can use it to read gziped files in a C program. Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: C++ question
Noah L. Meyerhans [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- On Tue, 15 Feb 2000, Shao Zhang wrote: Eg. if I compile with this: $ g++ -g -c misc.c misc.c: In function `char * cash(double, int, int)': misc.c:44: implicit declaration of function `int bracket(...)' misc.c:45: implicit declaration of function `int comma(...)' The output is exactly the same with the newest g++ version, and older g++. But the difference is that the older version will create a .o file and the new version will not. And I can only see an error message when they are compiled using make. Could you please post the relevant lines from your source? It was not included with your first post. Are 'bracket' and 'comma' functions that you have defined, or are they variables? Those two functions were declared in a another C file. And that C file is compiled with gcc. As soon as I found that, adding an extern C in the header file fixed the problem. So it is clear that the new version of g++ is much more restrictive, but I still prefer it will give me a clear error message so that I know there is something wrong... Also, why are you using g++? All this looks like C code, and your source file ends in a lowercase 'c'. The C++ compiler should handle it properly, of course, but I've seen (and can post, if you want) some examples of valid C code that won't compile in a C++ compiler. I don't know how g++/gcc handle situations like this, but it seems a bit suspicious to me. The code was originally written by someone else, and I had to modify it. It uses a whole bunch of libraries written in C. And I am too lazy to port it to C++. So I had to use both gcc and g++. But it is just a pain to keep the memory allocation consistent(new/delete, malloc/free). -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
w3m
Hi, I love everything about w3m. But I am just having one little problem. Is it possible to bind ABORT with the key ZZ?? How can I do that?? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
C++ question
Hi, I have posted this to comp.lang.c++, but hope someone here can help me as well. Thanks. = I have a c++ program that compiles fine with earlier version of g++, but it no longer compiles with the newsest release 2.95.2. Here is the relevant bit of code: typedef struct List { void**hd; /* first item */ void**cr; /* current item */ void**tl; /* last item */ void**mx; /* max item before growing is required */ int grow_size; } List; Some macros defined: #define fast_list_first(l) ((l l-hd)? *(l-cr = l-hd) : 0) #define fast_list_last(l) ((l l-hd)? *(l-cr = l-tl) : 0) And a Function like this: void lfree(List *l) { void *item; for (item=fast_list_first(l); item != NULL; item=fast_list_last(l)) ###-delete item; } When compiled with g++(2.95.2), it failed with this: [line 55 is the line marked with arrows above] % g++ -g -c misc.c misc.c: In function `void lfree(List *)': misc.c:55: warning: `void *' is not a pointer-to-object type It gives me the warning message, but no .o file is created, and if I put it in a makefile, it results: % make misc.o g++ -g -c misc.c misc.c: In function `void lfree(List *)': misc.c:55: warning: `void *' is not a pointer-to-object type make: *** [misc.o] Error 1 Thanks for any help in advance. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: C++ question
Bryan Scaringe [EMAIL PROTECTED] wrote: It is my understandng that in order for C++ to delete a dynamically-allocated object, that object need to have been created via new. That said, I'd like to see the code where you do the allocation. You are right. the memory allocation is done using calloc. Somthing like this: void**new_hd = (void**)calloc(1, (list_count(l) + l-grow_size) * sizeof(void*)); So I replaced delete with free, and g++ seems happy again. But it still fails with some of the warning messages. Eg. if I compile with this: $ g++ -g -c misc.c misc.c: In function `char * cash(double, int, int)': misc.c:44: implicit declaration of function `int bracket(...)' misc.c:45: implicit declaration of function `int comma(...)' The output is exactly the same with the newest g++ version, and older g++. But the difference is that the older version will create a .o file and the new version will not. And I can only see an error message when they are compiled using make. Shao. Also, you may need to type-cast the void pointer. The new compiler version may be more picky about that sort of thing (though if that's the case it should be a warning, not an error). The comp.lang.c++ people will peobably be more helpful though. If you do get a response, could you forward me a copy? thanks. Bryan On 15-Feb-2000 Shao Zhang wrote: Hi, I have posted this to comp.lang.c++, but hope someone here can help me as well. Thanks. = I have a c++ program that compiles fine with earlier version of g++, but it no longer compiles with the newsest release 2.95.2. Here is the relevant bit of code: typedef struct List { void**hd; /* first item */ void**cr; /* current item */ void**tl; /* last item */ void**mx; /* max item before growing is required */ int grow_size; } List; Some macros defined: #define fast_list_first(l) ((l l-hd)? *(l-cr = l-hd) : 0) #define fast_list_last(l) ((l l-hd)? *(l-cr = l-tl) : 0) And a Function like this: void lfree(List *l) { void *item; for (item=fast_list_first(l); item != NULL; item=fast_list_last(l)) ###-delete item; } When compiled with g++(2.95.2), it failed with this: [line 55 is the line marked with arrows above] % g++ -g -c misc.c misc.c: In function `void lfree(List *)': misc.c:55: warning: `void *' is not a pointer-to-object type It gives me the warning message, but no .o file is created, and if I put it in a makefile, it results: % make misc.o g++ -g -c misc.c misc.c: In function `void lfree(List *)': misc.c:55: warning: `void *' is not a pointer-to-object type make: *** [misc.o] Error 1 Thanks for any help in advance. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _ -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: Newbie's experience Installing Debian
Darrington, John [EMAIL PROTECTED] wrote: OK, so after 5 years of playing with slackware and Red Hat, I decide that my next OS will be Debian --- I've seen the web page, and like the philosophy and want to get started. The usenet reports that Debian is so difficult to install can't all be true can they? Unfortunately I've found they are. Good. You made the right move. I switched from redhat two years ago, and never regret. Not knowing much about Debian I look on the web site for advice. I find this: `It is recommended that first time installers buy the CD set as the installation is more straightforward. Many of the vendors sell the distribution for less than US$5 plus shipping (check their web page to see if they ship internationally). ' Fine I think US$5 == AUD8 plus let's say $10 for postage, I should be able to get going for $18. Well I don't want to wait weeks for a shipment from the US, so I phone my local software shop and ask them if they stock Debian 2.1 . Yes, they have a 2 CD set for $25. Great says I . I don't really mind paying an extra $7. The shop's got to make an honest profit, and I Hmm, that is a bit expensive. I spent $11.00 to get my first Debian Hamm 2.0 CD from LSL, but that was including the postage fee. Now in sydney, there is a shop called everythingLinux(www.everythinglinux.com.au), and I think you can get it for about $5.00. Choose Debian archive path. Please choose the path inside the CD-ROM where the Debian archive resides and the default appears to be /debian. I choose the default, not having any other information. Then comes: Pleae select the directory containing the file resc1440tecra.bin I agree this is something that debian should be improved. It is a bit confusing. But from memory, press ENTER should just do it. This stumps me. How the hell should I know where that is? Being a resourcefull character I back out of the menu wait until the CD is unmounted, and place it in another machine and search for this file. It's located at /debian/boot So back into the install procedure I go, enter /debian/boot at the appropriate place. It seems to be denying the existence of this file. --- but wait it's actually wanting the location of a file with a similar name drv1440tecra.bin. I don't know where that is? I see there is an option `list' which automatically detects it so I try that. Apparently it's not there. Back to my other machine, and do a find . Sure enough it's not there. What do I do now? I press F1 like the start up screen told me. nothing happens. I turn to the book. No hints. I spend the next 2 hours rebooting and trying every possible path though the menu. including mounting the CD manually and pointing the install process to the archives. It still wants this non-existent file. Once again, you should be able to just press ENTER. It's time to conclude that perhaps my hardware has some funny configuration which this CD doesn't support. So, I borrow a machine and try again. Exactly the same symptoms. Well, I don't think it is the hardware problem. Even if you have passed the above two steps, you will still have to face dselect, which a lot of people had trouble with it. So after 2 days and $65 I have not managed to get even a login prompt. For that price I could have got RedHat 6.1. It's quite a demoralising experience. Are these problems common in Debian installation or is it just me ?? Keep trying! You will eventually get there. Once you get your box up and running, you will never have to go thru this process again, the powerfull apt-get will fix up everything for you in the future. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: xfstt and xfs-xtt
Nathan E Norman [EMAIL PROTECTED] wrote: On Thu, 27 Jan 2000, Shao Zhang wrote: : Hi, :Can someone please explain the difference between the two?? xfstt is a hack; it runs on a different port than xfs. xfs-xtt is intended to replace xfs and serve up TrueType fonts as well as the standard X fonts. Then shouldn't xfs-xtt replace both xfs-tt and xfs rather than just xfs-tt?? -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
CPU question
Hi, I am going to set up a new server which will serve pretty much everything except www. At the moment, it has a P166, and the load avg is around about 5. The highest once reached to 22. In Australia here, the price of getting two P550 and one P700 is roughly the same. So should I get two slower CPUs, or one fast CPU. Which case will the server run faster/perform better? Thanks in advance. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: PHP3 + Mysql - connecting problems
Hi, I think you will need to load the library. try this in your php scripts: dl(mysql.so); And make sure you have these lines in your /etc/php3/cgi/php3.ini: extension_dir = /usr/lib/php3/cgi extension = mysql.so Shao. Jorge Sousa [EMAIL PROTECTED] wrote: Hi all, I have php3 installed and running, i also installed the php-mysql packages but whenever I try to access a php3 script with mysql functions the script will fail with the message: Fatal error: Call to unsupported or undefined function mysql_connect() in /home/www/projectoX/teste.php3 on line 11 sure i'm missing something, just don't know what? Any hints?? Thanks in advance Jorge Sousa -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
xfstt and xfs-xtt
Hi, Can someone please explain the difference between the two?? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: Batch rename files
A quick solution that pops out of my head, but it is pretty stupid, and certainly not the easiest: ls -1 rename; cat rename; group-1-member-01.txt group-1-member-02.txt group-2-member-01.txt vi rename; then do the following: :1,$s/\([a-z]*\)\(-[0-9]-\)\([a-z\-]*\)\([a-z0-9\.]*\)/\1\2\3\4 result\2\4/g :1,$s/^/mv /g exit out vi, and cat rename: mv group-1-member-01.txt result-1-01.txt mv group-1-member-02.txt result-1-02.txt mv group-2-member-01.txt result-2-01.txt chmod +x rename; ./rename Hope this helps. Shao. Arcady Genkin [EMAIL PROTECTED] wrote: What would be the easiest way to rename a bunch of files foo-[0-9]-bar-[0-9][0-9].txt into blah-[0-9]-[0-9][0-9].txt Note, that all of the files have identical portions `foo-', `-bar-', and `.txt' in the filenames. Different are two numerical parts. For example: , | group-1-member-01.txt | group-1-member-02.txt | ... | group-2-member-01.txt | ... ` The resulting files should have an identical portion `blah', and retain the original numerical parts. , | result-1-01.txt | result-1-02.txt | ... | result-2-01.txt | ... ` Thanks for any suggestions! -- Arcady Genkin http://www.thpoon.com Nostalgia isn't what it used to be. -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
bug of pppconfig or dpkg
Hi, Can anyone help me with this: virge:/home/s2193893# dpkg --purge pppconfig (Reading database ... 35444 files and directories currently installed.) Removing pppconfig ... dpkg (subprocess): unable to execute pre-removal script: Exec format error dpkg: error processing pppconfig (--purge): subprocess pre-removal script returned error exit status 2 Errors were encountered while processing: pppconfig virge:/home/s2193893# dpkg -l dpkg pppconfig Desired=Unknown/Install/Remove/Purge | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++--- ii dpkg 1.6.7Package maintenance system for Debian pi pppconfig2.0.3A text menu based utility for configuring ppp. And this one: I have raised a bug, but it has been a month now... virge:/home/s2193893# apt-get install ppp-pam Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: ppp-pam 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/74.0kB of archives. After unpacking 193kB will be used. (Reading database ... 35444 files and directories currently installed.) Unpacking ppp-pam (from .../ppp-pam_2.3.10-2_i386.deb) ... dpkg-divert: `diversion of /usr/sbin/pppd to /usr/sbin/pppd.nopam by ppp-pam' clashes with `diversion of /usr/sbin/pppd to /usr/sbin/pppd.ppp-pam by ppp-pam' dpkg: error processing /var/cache/apt/archives/ppp-pam_2.3.10-2_i386.deb (--unpack): subprocess pre-installation script returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/ppp-pam_2.3.10-2_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Thanks. Shao -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
automate multi form submission
Hi, I am setting up a system where I can automatically submit all the info to a FORM for registering a new domain name using perl scripts. I use the following in my perl script and it works with most of the forms: echo domain=hello.world.org.auaction=submit | lynx -dump -post_data aunic.telstra.net/cgi-bin/td.pl But this will fail when there needs multi part FORM submission which is happened when applying for .net.au domains, the form is available at: https://registry.connect.com.au/cgi-bin/na_create.cgi Can anyone please help me with automating the submission of this FROM?? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: About Exim : HELP ME !!!!!!
Why do you send the same emails three times?? Please consider that debian is a Non-profit organisation, and it costs them money! While I am willing to help, I cannot understand your question, and that is why I did not reply your first 2 emails. You said: Lorenzo Zampese [EMAIL PROTECTED] wrote: I am not able to send remote e-mails by 'Exim', but only locally. and then you said: When I send e-mails to internet, my exim's configuration seems to work fine, and then you said: but my addresses don't receive my e-mails at all. So is your problem receiving or sending?? When I run 'fetchmail' it says something like this : SMTP error, I can't relay mail for following addresses : paste a couple lines from fetchmail logs would be very usefull. Have you checked that exim is actually listening on port 25? telnet localhost 25 see if you can get anything... And what mda you are using to to deliver local mails? Procmail, or you simiply forward them to port 25? You might have a look at the FAQ for exim about the issues between procmail and exim. NOTE 1: my ISP's user name is different than my Linux's user name, so I need to use the exim's DB-rewrite feature, that I tested successfully with 'exim -brw address'. why do you need this? You should be able to use your ISP's smtp with no problem if you are dialing up from them -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
quick latex question
Hi, How do I do this in Latex: Foo bar that is, I want flushright the bar word. I tried \begin{flushright} and it starts a new pagraph. I also tried \raggedright and it gives error, coz I am using this within a \begin{list}. The error is: ! LaTeX Error: There's no line here to end. Thanks for the help. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: my font suddently become very ugly
Howard Mann [EMAIL PROTECTED] wrote: Shao Zhang wrote: Hi, A couple days ago, my font is just suddently become very ugly. I orginially thought it was the fvwm problem, then I found that all other window's manager have the same problem. I suggest you use True Type fonts utilizing the xfstt font server. Installing xfstt did not help at all. I have both xfs and xfstt running. [11:43|pts/[EMAIL PROTECTED] % xlsfonts| grep ttf |h -ttf-algerian-medium-r-normal-regular-0-0-0-0-p-0-iso8859-1 -ttf-arial black-medium-r-normal-regular-0-0-0-0-p-0-iso8859-1 -ttf-arial narrow-bold-i-normal-bold italic-0-0-0-0-p-0-iso8859-1 -ttf-arial narrow-bold-r-normal-bold-0-0-0-0-p-0-iso8859-1 -ttf-arial narrow-medium-i-normal-italic-0-0-0-0-p-0-iso8859-1 -ttf-arial narrow-medium-r-normal-regular-0-0-0-0-p-0-iso8859-1 -ttf-arial rounded mt bold-bold-r-normal-bold-0-0-0-0-p-0-iso8859-1 -ttf-arial-bold-i-normal-bold italic-0-0-0-0-p-0-iso8859-1 -ttf-arial-bold-r-normal-bold-0-0-0-0-p-0-iso8859-1 -ttf-arial-medium-i-normal-italic-0-0-0-0-p-0-iso8859-1 Here is the relevant entries in the /etc/X11/XFConfig file: FontPath unix/:7101 FontPath unix/:7100 FontPath /usr/X11R6/lib/X11/fonts/misc/ FontPath /usr/X11R6/lib/X11/fonts/100dpi/:unscaled FontPath /usr/X11R6/lib/X11/fonts/100dpi/ FontPath /usr/X11R6/lib/X11/fonts/Speedo/ FontPath /usr/X11R6/lib/X11/fonts/Type1/ FontPath /usr/X11R6/lib/X11/fonts/chinese/:unscaled FontPath /usr/X11R6/lib/X11/fonts/chinese/ Thanks. Shao -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
gimp-nonfree and image with transparent background
Hi, I have installed gimp-nonfree, but when I save an image, the gif extensions is still disabled. Am I missing anything? Also, could someone tell me how to save an image with transparent background? It would be great if I can use png and avoid using gif, but I don't really mind. Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
my font suddently become very ugly
Hi, A couple days ago, my font is just suddently become very ugly. I orginially thought it was the fvwm problem, then I found that all other window's manager have the same problem. when I say fonts, I mean the fonts that is used by the application, such as the alias displayed in licq, the menu bar, url displayed in netscape, font names displayed in tkfont and so on. If my description is too bad, you can have a look at the screenshot: http://linux.cia.com.au/uglyfont.jpg In my XF86Config, I have: FontPath /usr/X11R6/lib/X11/fonts/misc/ FontPath /usr/X11R6/lib/X11/fonts/100dpi/:unscaled FontPath /usr/X11R6/lib/X11/fonts/100dpi/ FontPath /usr/X11R6/lib/X11/fonts/Speedo/ FontPath /usr/X11R6/lib/X11/fonts/Type1/ In my /etc/X11/xfs/config: # paths to search for fonts catalogue = /usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/cyrillic/,/usr/lib/X11/f onts/Speedo/,/usr/lib/X11/fonts/Type1/,/usr/lib/X11/fonts/100dpi/:unscaled,/usr/ lib/X11/fonts/75dpi/:unscaled I have the following packages installed: [16:17|pts/[EMAIL PROTECTED] % dpkg -l 'xfonts*' Desired=Unknown/Install/Remove/Purge | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ NameVersionDescription +++-===-==- ii xfonts-100dpi 3.3.5-2100 dpi fonts for X pn xfonts-75dpinone (no description available) ii xfonts-base 3.3.5-2standard fonts for X ii xfonts-cjk 3.3.5-2basic Chinese, Japanese, and Korean fonts fo ii xfonts-cyrillic 3.3.5-2Cyrillic fonts for X ii xfonts-intl-chi 1.1-8 International fonts for X -- Chinese. ii xfonts-intl-chi 1.1-8 International fonts for X -- Chinese big. ii xfonts-pex 3.3.5-2fonts for minimal PEX support in X ii xfonts-scalable 3.3.5-2scalable fonts for X un xfonts75-dpinone (no description available) -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: modem RX rate is considerable slower than RX rate
aphro [EMAIL PROTECTED] wrote: the subject is a little misleading :) sorry... is the server you are testing from a local server? within your ISP's network? Neither. what speed do you connect at(see /var/log/messages) and what kind of file are you trying to transfer?(text? compressed? highly compressed?) and what mode?(ascii/binary) It connects at 33600. It is a binary file. and what client are you using?(ftp/ncftp/lftp/wxftp..etc) have you tried other sites? which ones? lftp. I have also tried to use ftp, the same resutls. lots of questions to ask before i can help more. give more information! I think it is the modem's problem. I have a US Robotics V90 modem, which I think the remote isp does not support it. In the chat script, if I use the initialise command ATZ, I am able to connect, but only at 33600. If I use the US Robotics V90's initialise command ATF, I am able to get the line speed 46600, but then failed to authentificate with the remote end. What does not make sense is that, the TX rate is so much slower than RX rate. Thanks. Shao. On Wed, 5 Jan 2000, Shao Zhang wrote: shao Hi, shao when I ftp to a server, if I use the get command, I can get shao around about 4K/s. But with the same server, if I use the put shao command, I only get about 600bytes/s. shao shao I have checked /etc/ppp/options, and tried to set both mtu and mru shao to 1500, but did not solve the problem. shao shao Thanks for the help. shao shao Shao. shao -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
modem RX rate is considerable slower than RX rate
Hi, when I ftp to a server, if I use the get command, I can get around about 4K/s. But with the same server, if I use the put command, I only get about 600bytes/s. I have checked /etc/ppp/options, and tried to set both mtu and mru to 1500, but did not solve the problem. Thanks for the help. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: modem TX rate is considerably slower than RX rate
Sorry, I meant to say TX in the subject. Shao Zhang [EMAIL PROTECTED] wrote: Hi, when I ftp to a server, if I use the get command, I can get around about 4K/s. But with the same server, if I use the put command, I only get about 600bytes/s. I have checked /etc/ppp/options, and tried to set both mtu and mru to 1500, but did not solve the problem. Thanks for the help. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: E commerce stuff for linux?
Hi, Please post us your minivend.cfg, catalog.cfg and the error messages, otherwise, we cannot guess your problem. Shao. Patrick Kirk [EMAIL PROTECTED] wrote: Help! I have run the minivend configuration over a dozen times and am still dying. Would you mind looking at www.wiredtraders.net? I reckon my problem is that I have no idea of where my cgi folders are or where they should be but if you can tell where I've gone wrong, please do let me know. Patrick -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
scan large files
Hi, How can I use 'find' together with other shell tools to scan the directory and print the filename if it is over a certain size. Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: scan large files
Paul J. Keenan [EMAIL PROTECTED] wrote: Shao Zhang wrote: Hi, How can I use 'find' together with other shell tools to scan the directory and print the filename if it is over a certain size. Thanks. Shao. The only other shell tool you need is man :) This will only find files with the exactly or rounded same size. It does not give me the option to specify to print out files OVER a certain size. Shao. From find(1) -size n[bckw] File uses n units of space. The units are 512-byte blocks by default or if `b' follows n, bytes if `c' follows n, kilobytes if `k' follows n, or 2-byte words if `w' follows n. The size does not count indirect blocks, but it does count blocks in sparse files that are not actually allocated. Hope this helps. -- Regards, Paul -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: The clock has gone crazy...
Manuel Arenaz Silva [EMAIL PROTECTED] wrote: The file /etc/adjtime has the following two lines: cambados:~# cat /etc/adjtime -115.758041 945099084 0.00 945097761 Is it important the fact that it has two lines? It depends. If you want your system clock(the time you see in linux) to be exactly the same as your hardware clock(The time kept in your computer), then no. YOu can just delete them. If you want those two times to be different. Then yes. Another question: What command do I have to use in order to set the clock up? To set your hardware clock: hwclock --set --date=the current time; Now, transfer your hardware clock to your system clock: hwclock --hctosys Now, you system clock should be the exactly the same as your hardware clock. To make sure the time consistent after reboot, rm /etc/adjtime Then you should be fine Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
cannot run pgps in a cgi script under apache
Hi, I have configured apache to run as root(Both User and Group). Now, I have a cgi perl script which calls pgps to sign a message. It works fine if I run it locally, but when I run it from the web, I got the following error from pgps: Cannot open configuration file pgp.cfg Cannot open secret keyring secring.skr Cannot open public keyring pubring.pkr Cannot find a private key for signing: [EMAIL PROTECTED] This is how I called pgps from the script: $output = `/usr/bin/pgps -at -f mutt.$$ -o mutt.header.out.$$ -z \my keys\ -u [EMAIL PROTECTED] 21`; I have tried to use SetEnv PGPPATH /root/.pgp with no luck. Do I have to use suEXEC from apache? I thought I configured apache to run as root for both User and Group, then all the cgi scripts will be run as root as well... Thanks for the help... Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: cannot run pgps in a cgi script under apache
Ethan Benson [EMAIL PROTECTED] wrote: On 17/12/99 Shao Zhang wrote: I have configured apache to run as root(Both User and Group). very bad I know. I have tried to use SetEnv PGPPATH /root/.pgp with no luck. sounds like environment problems, should that PGPPATH not be called PGPPATH=/whatever/.pgp/ ? maybe you should try setting a $HOME variable instead. pgp 5.0 was very buggy. have you tried using gpg instead? I got SetEnv from the apache doc. It did not specify a = sign. I will have a go with gpg. Do I have to use suEXEC from apache? I thought I configured apache to run as root for both User and Group, then all the cgi scripts will be run as root as well... don't run apache as root, you are asking/begging for your system to be cracked. I have no other choice. I need it to read the shadow passwd. It is only accessible within a private network and all traffic is SSL encrypted. So I guess it is pretty secure. Cheers, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: cannot run pgps in a cgi script under apache
Ethan Benson [EMAIL PROTECTED] wrote: On 17/12/99 Shao Zhang wrote: I have no other choice. I need it to read the shadow passwd. It is only accessible within a private network and all traffic is SSL encrypted. So I guess it is pretty secure. well reading shadow password files from apache is bad anyway (i assume for htaccess?) since it allows very fast and mostly it is not for htaccess. It is mainly used for setting up acounts which invovles writing as well. unstoppable password cracking efforts on your system password files, you might as well just unshadow the passwords since any additional protection offered by shadow passwords is completely undone by letting apache read them. True. But it is still only readable to root which means apache as well. Again, apache is sitting in our private network. A machine with good security should be that, given the root passwd of that machine, it is still uncrackable. Again, I know this is a security hole. But in this case, I really need it, and which is why apache src offers a configuration option to allow run as root. Cheers, Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: journaling filesystem
Jan Ludewig [EMAIL PROTECTED] wrote: hi, does anyone have experience with installing ReiserFS? (or any other journaling filesystems?) what i'd like to do is a) booting from a disk b) dd my / to a free partition c) reformat my root-partition with ReiserFS I don't think you can run ReiserFS as your root-partition from what I read. You can mount your /usr and /var to it, and create a small ext2 root partition for your kernel. Shao. -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: squid
Robert L. Harris [EMAIL PROTECTED] wrote: Ok, I've got the squid proxy server installed on a newly installed box. I presume I point my proxy entry for http to the server, but what port? The port num is specified in squid.conf, which is 3128 by default. You can change it by altering the value of http_port in squid.conf. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
running two webservers on the same machine
Hi, I would like to know if it is possible: to run two different web servers on the same physical machine binded to two different ip addresses, both of them using port 80 We have a specially situation where we need to run both zeus and apache. Thanks very much. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
help on zsh command completion
Hi, I put the following lines in my .zshrc hosts=(juggler.cse.unsw.edu.au shaoz.dhs.org haydn.cse.unsw.edu.au) ftphosts=(ftp.cse.unsw.edu.au ftp.shaoz.dhs.org ftp.au.kernel.org) compctl -k hosts telnet ssh compctl -k ftphosts lftp ftp But after typed telnet and press TAB, zsh auto completes the hosts from /etc/hosts. Can anyone help me on this please? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: pgp5?
Robert L. Harris [EMAIL PROTECTED] wrote: I had pgp-5 installed on my redhat box. I did an apt-get install pgp and it installed 2.6. I've seen this a few times. I know I can get the redhat package and alienate it, but is there a more proper way to do this? The pgp5i is available in potato. See below: shao$ apt-cache search pgp pgp-i - Public key encryption system (International version) pgp5i - Public key encryption system (International version) Therefore, if you want pgp5, you should do a pgp5i. But I would recommand gnupg. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: MySql and C
Hi, Raphaël Barbate [EMAIL PROTECTED] wrote: That's why I ask you if you could send me an example (.c), which connects to mysql and performs some queries. Here are some examples: // Extablish a tcp connection with the SQL database int connectSQL() { MYSQL *tmp; tmp = mysql_connect(sqlHandle, SQL_HOST, SQL_USER, SQL_PASS); if (tmp == NULL) return 0; // failed to establish connection with the SQL server return (!mysql_select_db(sqlHandle, SQL_DB)); } // below are for queries sprintf(query_string, INSERT INTO tran_request VALUES(\'%16s\', \'%20s\', \'%8s\', \'%1s\', \'%4s\', \'%20s\', \ \'%4s\', \'%12s\', SYSDATE()), \ TxnReference, login, ClientID, TransactionType, AccountNumber, \ CardData, CardExpiryDate, TotalAmount); query = mysql_query(sqlHandle, query_string); if (query) { error(query_string, NO_EXIT); error(Error when updating the database for transaction request, \ see above query string for deails, EXIT); } // using the fetched queries sqlResult = mysql_store_result(sqlHandle); sqlRow = mysql_fetch_row(sqlResult); mysql_free_result(sqlResult); if (*sqlRow == NULL) blah and so on Hope this helps... Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _
Re: ppp hangups...
Hi, I think it is just the remote isp is a bit misconfigured, or the link is extremely slow. Try modify lcp-echo-failure to a bigger number in /etc/ppp/options to prevent the drop of the link Shao. Jonathan Lupa [EMAIL PROTECTED] wrote: I've been getting dropped from my ISP unexpectedly from time to time and I'm not sure how to go about debugging it. There is nothing unusual in syslog or messages, but I noticed this in ppp.log. (kernel 2.2.12 pppd 2.3p5). Any debugging tips would be greatly appreciated! Dec 2 23:38:08 Sith pppd[22741]: sent [LCP EchoReq id=0xbf magic=0xd4cbdb59] Dec 2 23:38:38 Sith pppd[22741]: sent [LCP EchoReq id=0xc0 magic=0xd4cbdb59] Dec 2 23:39:08 Sith pppd[22741]: sent [LCP EchoReq id=0xc1 magic=0xd4cbdb59] Dec 2 23:39:38 Sith pppd[22741]: No response to 4 echo-requests Dec 2 23:39:38 Sith pppd[22741]: Serial link appears to be disconnected. Dec 2 23:39:38 Sith pppd[22741]: sent [LCP TermReq id=0x2 Peer not responding Dec 2 23:39:40 Sith pppd[22741]: Hangup (SIGHUP) Dec 2 23:39:40 Sith pppd[22741]: Modem hangup Dec 2 23:39:40 Sith pppd[22741]: Connection terminated. Dec 2 23:39:41 Sith pppd[22741]: Exit. Is it just because things are hairy on the ISP end? As soon as I dial back in, everything works fine again (and there is no apparent time interval for which this happens). I know about the lcp-echo options and will play around with them, but I'm hoping someone can tell me whats going on behind the curtain here. Thanks All! -Jonathan -- [EMAIL PROTECTED] GPG public key available from http://www.jamdata.net/~jjlupa/gpg.asc -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _ pgpBopuSkVW6d.pgp Description: PGP signature
compile with -lshadow
Hi, What package do I need in order to be able to compile with the option: -lshadow Thanks Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Department of Communications/ __| |_ __ _ ___ |_ / |_ __ _ _ _ __ _ University of New South Wales \__ \ ' \/ _` / _ \ / /| ' \/ _` | ' \/ _` | Sydney, Australia |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, | Email: [EMAIL PROTECTED] |___/ _