User Profile

Collapse

Profile Sidebar

Collapse
mohanprasadgutta
mohanprasadgutta
Last Activity: May 24 '10, 05:16 PM
Joined: Dec 10 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mohanprasadgutta
    started a topic How to hard wrap a text in iframe

    How to hard wrap a text in iframe

    Hi,

    I am trying to wrap text in an iframe, but unable to do that.

    here is my html and css code for that.

    main_page.html

    Code:
    <html>
    <table>
    <tr>
    <td>
    <iframe src="message.html">
    it looks like your browser dont understand iframes
    </iframe>
    </td>
    </tr>
    </table>
    ...
    See more | Go to post

  • mohanprasadgutta
    replied to regx for time
    in Perl
    time regex

    Hi,

    are you trying achieve below regex?

    Code:
    /^[0-2][0-3]:[0-5][0-9]:[0-5][0-9]$/
    Best Regards,
    Mohan
    See more | Go to post

    Leave a comment:


  • mohanprasadgutta
    replied to Preserving Array Values Positions
    in Perl
    re: Preserving Array Values Positions

    Hi,

    Please try this code.

    Code:
    use strict;
    my (@list1, @list2, @new_list2);
    # read from flat files
    # assume @list1 is from list1.txt
    open (LIST1, "list1.txt");
    @list1 = <LIST1>;
    close(LIST1);
    
    # assume @list2 is from list2.txt
    open (LIST2, "list2.xt");
    @list2 = <LIST2>;
    ...
    See more | Go to post

    Leave a comment:


  • mohanprasadgutta
    replied to what does it do undef $/;
    in Perl
    re: what does it do undef $/;

    Hi,

    $/ is the input record seperator.
    By default its newline. if you set it to undef no record seperator is matched. usually people used to do

    Code:
    undef $/;
    to read everything to the end of current file.

    Below code will read all the sample.txt into a scalar
    Code:
    open(FILE, "</tmp/sample.txt");
    undef $/;
    my $content
    ...
    See more | Go to post

    Leave a comment:


  • mohanprasadgutta
    replied to vi editor error
    hi,
    i found out the reason..
    my disk is almost full.
    so vim is unable to create swap file/temp file
    freed the disk space to some extent.... so problem solved.
    Best Regards,
    Mohan
    See more | Go to post

    Leave a comment:


  • mohanprasadgutta
    started a topic vi editor error

    vi editor error

    Hi everybody,

    i am getting the following error when tried to open a file.
    Code:
    ##### Error start
    E297: Write error in swap file
    "import.pl" 681L, 23883C
    Error detected while processing /usr/share/vim/vim70/ftplugin/perl.vim:
    line   49:
    E483: Cannot get temp file name
    Press ENTER or type command to continue
    
    #### Error end
    After pressing enter file is getting opened but...
    See more | Go to post
    Last edited by pbmods; Feb 12 '09, 03:28 AM. Reason: Added CODE tags.

  • mohanprasadgutta
    started a topic upgrading to perl 5.10 from 5.8.8 in RHEL5
    in Perl

    upgrading to perl 5.10 from 5.8.8 in RHEL5

    Hello,

    Currently i am having perl 5.8.8 on my RHEL5 by default.

    I want to upgrade it to either 5.8.9 or 5.10.0

    I have downloaded both the tar files corresponding to versions 5.8.9 and 5.10.0

    I have untarred the tar ball corresponding to 5.10.0 i am trying to install it using ./Configure -d

    After completing the command, i am trying to verify the perl version using perl...
    See more | Go to post

  • mohanprasadgutta
    replied to HTTP file download
    in Perl
    Hello,
    As i am getting 401 error, i tried to understand the reason behind this error.
    i found it will come if we don't have access to the particular links

    [HTML]<a href="http://en.wikipedia.or g/wiki/HTTP_401"> 401 error </a>[/HTML]

    So later i modified my code so that it will send authentication details as well.
    and when i requested my administrator he was telling i am having...
    See more | Go to post
    Last edited by mohanprasadgutta; Nov 11 '08, 06:18 AM. Reason: html tags are missing

    Leave a comment:


  • mohanprasadgutta
    replied to HTTP file download
    in Perl
    Hello Kevin,
    Thank you very for your response.
    From this discussion i got to know nothing wrong in the code i have written.
    The only problem is may be due to firewall or proxy server.
    I will discuss this thing further with that server administrator....
    See more | Go to post

    Leave a comment:


  • mohanprasadgutta
    replied to HTTP file download
    in Perl
    the server is a microsoft biztalk server.
    So i am not sure about whether any firewall behind it.
    As it is a corporate machine i believe definitely there will be firewall.
    If a firewall is available does it block such type of requests.
    I dont have much knowledge on firewalls working.
    thanks in advance.
    See more | Go to post

    Leave a comment:


  • mohanprasadgutta
    replied to HTTP file download
    in Perl
    hello Kevin,
    Document is available at the same url.
    when i use the same url in browser it is asking me to save or open it through file download alert message box....
    See more | Go to post

    Leave a comment:


  • mohanprasadgutta
    started a topic HTTP file download
    in Perl

    HTTP file download

    Hello,
    I have written this code to make a file local before start working on it.
    But when i execute it is not copying the file to local. I am getting 401 error.
    could you please let me know whats wrong with this code.
    thaks in advance.

    Code:
    #!/usr/bin/perl -w
    use LWP::Simple;
    
    my $filename = "http://sample.com/secure/sample.xls";
    
    MakeFileLocal($filename);
    ...
    See more | Go to post

  • mohanprasadgutta
    started a topic dereferenceing a string to a constant name
    in Perl

    dereferenceing a string to a constant name

    hello everyone,
    i have to write a program which will take a command line arguement which is nothing but a constant name. in the program i am trying to print out the value corresponding to the constant name provided.
    i am aware of converting a string to a variable name as follows.
    [code=perl]
    my $name = "mohan";
    my $var = "name";
    my $new = $$name;
    print "your name is : "...
    See more | Go to post

  • mohanprasadgutta
    started a topic getting color of a cell in VB

    getting color of a cell in VB

    Hello everybody,
    I am facing problem in read color of a cell.
    problem description is as follows.
    for a particular cell by default colorindex = 35 is provided.
    but that cell is conditional formatted cell.
    The color of the cell will change based on the condition.
    later color of the cell is changed to color red (colorindex = 3)
    my intension is to read that cell color.
    when i tried to read that...
    See more | Go to post

  • mohanprasadgutta
    replied to Usage of Perlcc
    in Perl
    You can make use of perl2exe utility to convert a perl script to an executable.
    Below link will be helpful for you.
    http://www.indigostar. com/perl2exe.htm
    See more | Go to post

    Leave a comment:


  • Adding resource name to a work package in ms project

    hello,

    I am trying to add a new resource name to a ms project task.
    but the newly added resource name is reflecting for all the mpp file.
    If i want to make it appear only for that particular work package(task) how can i achieve that?

    Thanks in Advance.

    Regards,
    Mohan.
    See more | Go to post

  • mohanprasadgutta
    started a topic MS Project task name cell color
    in Perl

    MS Project task name cell color

    Hello,
    I am facing problem when trying to update a MS project task name cell color. here is my code.
    [CODE=perl]
    Win32::OLE->FreeUnusedLibr aries ();
    Win32::OLE->Initialize(Win 32::OLE::COINIT _MULTITHREADED) ;
    my $app;
    my $project;
    eval{
    $app = Win32::OLE->new('MSProject .Application') or print "Couldn't
    + open project '$MSPfilename'\ n";
    $app->{'DisplayAlert s'}...
    See more | Go to post

  • mohanprasadgutta
    replied to Capturing text printed on console
    in Perl
    Hi kevin,
    Thanks for your reply.
    I am working in windows machine where i dont have permissions to install any modules.
    As i observed Expect.pm is not present in ActivePerl core distribution.
    here my concern is to capture the output printed by that external program (for example .. "You do not have sufficient privileges..").
    But as i observed is that with Expect module we can spawn a child and control it...
    See more | Go to post

    Leave a comment:


  • mohanprasadgutta
    started a topic Capturing text printed on console
    in Perl

    Capturing text printed on console

    Hello,
    I want to capture the text being printed on console.
    problem description is as follows.
    I am calling called.pl program from caller.pl program using backticks.
    in called.pl program i am giving an external command to be executed in backticks.
    that external application will through a message to the console if any arguements are missing for that command.
    for example if we are not sending username and...
    See more | Go to post

  • you can use either system function call or keep the unix command you want to execute between backticks.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...