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 strongm 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: *

  1. tchatzi

    Apache Slow

    the fast load after the first load is probably your browser cache. as for the slow part of the first response, is probably your php code not written having speed as a primary goal, or your apache server serves both your slow php code along with any other scripts like css/js and the images of...
  2. tchatzi

    Converting windows server based apache from multi ip based virtual to multi name based virtual

    something like the following maybe? unless you mean something else <VirtualHost 192.168.0.1:80> ServerAdmin webmaster@example1.com DocumentRoot /var/www/example1.com ServerName www.example1.com </VirtualHost> <VirtualHost 192.168.0.2:80> ServerAdmin webmaster@example2.com DocumentRoot...
  3. tchatzi

    Displaying £ signs

    it looks like you should check your server's locale and regenerate it with locale-gen maybe to something like en_US.UTF-8 or the equivalent for GB but the UTF-8 one. Then you should restart your web and db servers. all these of course if you have ssh access on your server. Perl internal does...
  4. tchatzi

    SharePoint/NTLM authentication using Perl, 401 Unauthorized, Credentials for 'Domain\User' failed

    if you still have a problem with it please share some more light, as for example the script with which you are trying to connect ``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI
  5. tchatzi

    creating object

    why would wanna do that? ``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI
  6. tchatzi

    read files form directory

    yea Kevin is right about windows path in single quotes...I just copied the line from lillyth code..the point was not the path really, but to show the use of File::Find. there are many ways of getting a list of the files in the dir.. if all the files that you need are in that one directory, you...
  7. tchatzi

    perl basics

    you are right you have to use lib and point it to the directory where the TCO.pm sits if by debugging you mean check your code before you run it, then the answer is the following perl -wc myscript.pl this will give any syntax or logical errors in your script if there are any. ``The wise...
  8. tchatzi

    Perl Split question - multiple search terms in one variable/pattern?

    you said do you mean something like the following? $line = 'before[within]after'; $split= '\[|\]'; @values = split(/$split/,$line1); foreach $val (@values) { print "$val\n"; }; this will give before within after ``The wise man doesn't give the right answers, he poses the right...
  9. tchatzi

    How to move a dialog box to a specific pixel address

    is it Tk or Win32 modules that you use to create your windows and dialog boxes? ``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI
  10. tchatzi

    checking mouse events on desktop

    I think you should have a look at Win32 modules at cpan... also you might get somewhere with this X11 GUI one. What you are trying to achieve is not so promising though... Good Luck ``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI
  11. tchatzi

    using map to create an array

    ...will do the job... $string = qq["(PDH-CSV 4.0)","\\pps01\Process(Idle)\ID Process","\\pps01\Process(System)\ID Process"]; @columns = map { /\((.*?)\)/; $1 } split ',', $string; if you mean something else..then please be more specific with samples and examples ``The wise man doesn't...
  12. tchatzi

    read files form directory

    maybe my request was not clear enough...anyway... in order to do a in depth directory search for files you can use use strict; use File::Find; my $dir = 'C:\Documents and Settings\Usr1\Desktop\L\textFiles\'; find(\&do_what_ever_I_want, $dir); # do_what_ever_I_want will run for every file in...
  13. tchatzi

    using map to create an array

    sorry mate...I didn't know you wanted it in one line.. there you go $string = qq["08/26/2008","0.000000","4.000000","332.000000"]; @columns = map { s/^"//; $_ } map { s/"$//; $_ } split ',', $string; ``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI
  14. tchatzi

    read files form directory

    could you post a sample of a file before you run the script and also the result file that you want to get.. this way we might be able to be of more help ``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI
  15. tchatzi

    using map to create an array

    there are two ways of doing this.. no map needed 1. use strict; use Text::CSV; my $csv = Text::CSV->new (); my $string = qq["08/26/2008","0.000000","4.000000","332.000000"]; my $status = $csv->parse($string); my @columns = $csv->fields(); foreach ( @columns ) { print "$_\n"; } the result...
  16. tchatzi

    frames and java dropdown menu problems

    It would be much easier for us to help you if we had some code to work on. Posting your up to date code would be better for us to understand what exactly you are trying to do. ``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI
  17. tchatzi

    Perl equivalent to substr()?

    perl has indeed a function like that and it is the following substr(string, startpoint, count) no joking...it is the same as the one in php...:) ``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI
  18. tchatzi

    Run subroutine in background on Windows

    what do you mean by "got stuck somwhere in the middle"? do you mean die?...or if it takes too long because for example a file that it supposed to read is huge? as I see it you have to make two processes...one to do the job and the other to count the time....when the time reach the limit, kill...
  19. tchatzi

    Error installing Apache::Cookie via CPAN

    download libapreq-1.33 from libapreq-1.33 on CPAN unpack it, cd in the directory and run the folowing % APXS=/path/to/apache/bin/apxs % export APXS % perl Makefile.PL % make % make test % make install if you still get errors then post the whole error msgs in [code][ /code] tags ``The wise...
  20. tchatzi

    Determine height on runtime

    what exactly do you mean by "the scrollbar truncates the text of the table" ? ``The wise man doesn't give the right answers, he poses the right questions.'' TIMTOWTDI

Part and Inventory Search

Back
Top