Hi,
I have a task to convert CET time (e.g.18:00 CET) to local time depending on the timezone provided(e.g.Europe/Vienna, US/Eastern etc). The conversion should also take into consideration the day light saving.
The input will be hh:mm e.g.18:00 and the ouput should be in the similar format. I...
Hi,
I have a database name having a '-' character in it. I am using mysql V 5.1 on Windows and I am unable to drop the database. Any suggestions on how to drop DB..
--------------------------------------------------------------------------
I never set a goal because u never know whats going...
Hi,
I was studying a code which has following tag in header
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
and the right click on that page was dsiabled. I wanted to enable it. After trying for some time i commented the above line and the right starts working. Can anyone...
Hi All,
I have a file of following format.
2008/09/02 00:30:10 INFO> Feature.pm:181 - Processing Response for 01234 Feature FEAT_10 status A msg
2008/09/02 00:30:10 DEBUG> Feature.pm:182 - Feat Seq 582269
2008/09/02 00:30:11 INFO> Feature.pm:191 - Response FEAT_ERR_005
--
2008/09/02 00:30:11...
Hi,
I just want to confirm if the LIMIT clause is applicable to UPDATE/INSERT query as well.
I have to update certain data (10000 rows) but to be on the safer side i have to do it first on 10 records.
so my query will be like
UPDATE <tablename> SET <KEY> = '<VALUE>' LIMIT 10 ;
again what 10...
Hi,
How do i delete a pattern matched line and line previous to that line?
Thanks in advance
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
Hi,
Is there any way to know how much time a process, with say PID 123, has taken to complete after it gets completed. i.e.ps -ef does not show up the process.
--------------------------------------------------------------------------
I never set a goal because u never know whats going to...
Hi,
I have a module which has "used" strict in it. Then in my perl file i use that module, but should it also include strict pragma in my perl file automatically?(it is not)
Why is it so? Below is the sample code
#test.pm
package test;
use strict;
sub new {
my($self) = {};
bless $self...
Hi,
Can someone give me information about control M on solaris (what exactly it is? how it works? etc..). Also how is it different from cron job?
TIA
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
Hi,
I have come across a command in a perl script which i am not able to understand.
The command is as below
qq|ssh -p $p $u\@$f abc xyz $v \| grep $UCbs|;
Note:abc and xyz is actually something else.
At first look, it seems that its trying to connect some host via ssh but what is abc and...
Hi,
How can i move files between specific dates ?
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
Hi,
Is it good practice to use & to call a subroutine ?
Your thoughts please.
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
Hi,
I want to check a perl program against a cetain checklist.
The checklist can be
1) if a perl script has 'use strict' in it.
2) There are no variables with the same name defined twice in the script.
3) To check if the loop condition is proper. i.e.incrementing operator and limit operator...
Hi,
How can i view processes that run on system on particular day ( say 29 DEC 2006 ) with the time duration they were active?
Thanks
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
Hi,
I want to extract lines following matching pattern in a file with the matching line.
grep, sed will obviously give me only matching line and not lines following them.
Example
This is line1 - user1
This is line2 - user2
This is line3 - user3
I want two lines follwing line which contain...
Hi,
I am trying to make http request to another server and read a web page from inside perl.
Here is the code i am using
my $url = "http://www.<somesite>.com" ;
use LWP::Simple;
my $content = get $url;
die "Couldn't get $url" unless defined $content;
print $content ;
I am not able to get the...
Hi,
I am issuing find command as
find $path -type f -print
Now i want to filter out certain file names using some regex with the above command, but i am not getting exact syntax.
find $path -type f -print | grep 'abc*xyz'
# not working...
Hi,
How do i filter out permission deny messages, while using find command, and display only matching records on screen?
Thanks
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
Hi,
As strict pragma is recommended and should be included in perl file, i am wondering if 'use warnings' is as recommended as strict.
Your opinion ?
--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
Hi,
I want to determine mime file type of files like .doc, .pdf, .rtf etc.
Now i can't go on with the extension as some extensions are wrong.
e.g. doc file having extension .rtf etc.
I guess 'file' command does that but its not giving me correct output.
Can anyone tell me how to use the command...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.