Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: lcs01
  • Order by date
  1. lcs01

    How to turn on color syntax highlighting in vi or vim

    Thank you, Ghodmode, for your help. But I guess that I have to ask some dumb questions again. :( What is 'dpkg-query'? I googled it and got impression that it is a linux command? However, it does not look like a conventional unix/linux command to me. And I can not find it on my linux box using...
  2. lcs01

    How to turn on color syntax highlighting in vi or vim

    Thanks for your advice, mtodorov69. I have a root privilege so that I suppose I should be able to recompile it. However, is there an easy way to reset this env? I meant to set this one on in one of the system files? If so, how? Thanks gain.
  3. lcs01

    How to turn on color syntax highlighting in vi or vim

    I guess I showed some dumbness in my previous post. What a shame! I forgot how to print env's, but I recalled it: % printenv HOSTNAME=myhost TERM=xterm SHELL=/bin/bash HISTSIZE=1000 SSH_CLIENT=::ffff:###.###.###.### 42894 22 CVSROOT=:pserver:cvs:/home/cvs OLDPWD=/home/xxx/ SSH_TTY=/dev/pts/0...
  4. lcs01

    How to turn on color syntax highlighting in vi or vim

    Thank you, AdaHacker and mtodorov69, for your help. To AdaHacker, how can I tell if vim-runtime package is installed? Where to get this package? To mtodorov69, $ENV is not set at all. What value should it be? And here is the output of 'vim --version': % vim --version -bash: vim: command not...
  5. lcs01

    JS code created by CGI::Ajax behaves unexpectedly

    I wrote a small perl ajax code to do the following: A form has three input areas: first name, last name, & login ID. When a user enters first/last name and clicked the login ID area, a login ID will be automatically populated through perl ajax code. But it should also let a user to pick his/her...
  6. lcs01

    Trouble in using MIME::Lite

    I figured out what's wrong in my code. Wrong: Path => "$srceDir", Should be: Path => "$file", Thanks for reading it.
  7. lcs01

    Trouble in using MIME::Lite

    Experts, I wrote a small testing code to send email with an attachment using MIME::Lite. I can receive the email with the attachment. However, the size of the attachment is always ZERO bytes. The following is my code: use strict; use MIME::Lite; my $srceDir = './'; my $filename = $ARGV[0]...
  8. lcs01

    Could this be an improper implementation in CGI::Ajax

    I have been playing with CGI::Ajax these days. Lately, I noticed my code always caused an error: ... returning Bad Request status 400 Then I found out that the error was due to I named one of CGI variable names as 'fname', meaning 'First Name'. Unfortunately, this CGI variable name 'fname'...
  9. lcs01

    How to turn on color syntax highlighting in vi or vim

    I've been using Ubuntu over a year now. I always use vim to do the progaming work. I know vim has a feature with color syntax highlighting. But I don't know how to make it work. I did lots of research online and tried different things in my .vimrc and .gvimrc files. However, I just could not...
  10. lcs01

    questions about CGI::Perljax.pm

    I am learning ajax and perljax. I tried to install perljax in one my company's linux server but failed. Here is the error message: % make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/001_load....# Failed test...
  11. lcs01

    Please help in polishing my code

    Oh, I forgot one more thing... Thank you, Miller, for your advice. Actually, I always use meaningful names for all variables/subroutines at work. I am the only one in my group to strictly stick to this rule. :)
  12. lcs01

    Please help in polishing my code

    Thank you all for your help and reply! And special thanks go to brigmar and Miller!! To travs69: No, the order is less important as long as 'bbb' & 'aaa' are in order. To Kevin, No, it is not a homework. I wish I was still in school. :) Actually, I am working on an industry specific file...
  13. lcs01

    Please help in polishing my code

    Requirements: ============= There is an array containing unknown number of elements. Among these elements, one could be 'aaa' and the other 'bbb'. The rest elements are less significant. If this array does contain 'aaa' and/or 'bbb', a new new array '@r' will be created whose last element is...
  14. lcs01

    Again, how to calculate cpu time.

    Last October, I asked a question here about how to calculate cpu time a program consumes Thread 1294251 (http://www.tek-tips.com/viewthread.cfm?qid=1294251). With Kevin and Miller's help, I got that one solved. Thanks to Kevin and Miller! Now I am having a similar question. This time I am...
  15. lcs01

    Can not make string library 'replace()' work

    Sorry, I only read your code but not your explaination. I understand it now. Thank you again.
  16. lcs01

    Can not make string library 'replace()' work

    Thank you, monksnake! But why did '\s' not work? BTW, '\s' is more than just ' ', so it's better to work!
  17. lcs01

    Can not make string library 'replace()' work

    I can not believe why such a simpel js code would not work!! <html> <head> <script type="text/javascript">//<![CDATA[ function clean(str) { var regex = /\s*/; //var regex = /\s+/; var nstr = str.replace(regex, '^'); alert('str = #' + str + '#, nstr = #' + nstr + '#'); //...
  18. lcs01

    A page works with I, but not with Firefox.

    Thank you, Dan.
  19. lcs01

    A page works with I, but not with Firefox.

    One more question to follow: In Jeff's code, the form class does not define the position, but why is it centered?
  20. lcs01

    A page works with I, but not with Firefox.

    Thank you, Vragabond, for your explaination. With regard to my question #3, I guess I did not make myself clear. I was looking for some sites that have css alphabetical attribute reference. BTW, I just another one...

Part and Inventory Search

Back
Top