2,452 Topics
![]() | |
below is my oracle procedure [code] DECLARE TYPE r_cursor IS REF CURSOR; c_emp r_cursor; er PLAN_T%ROWTYPE; BEGIN OPEN c_emp FOR SELECT * FROM PLAN_T WHERE ROWNUM < 5; LOOP FETCH c_emp INTO er; EXIT WHEN c_emp%NOTFOUND; dbms_output.put_line(er.OBJ_ID || ' - ' || er.NAME); END LOOP; CLOSE c_emp; END; [/code] it … | |
Hello, I'm writing a MFC application to move a picture control when i press the "Next" button. (Please see attached screen-captures) There is a dialog box on which there are 2 picture controls. When I press the Next button, the left picture control should move on top of the right … | |
Hi, I am writing a perl script and need some in extracting some data. Basically it is a Log Analyzer and there are multiple log files from where the data comes. i am done with the grep part of the userID with this code- [Code] #!/usr/bin/perl -w open(VALUE, "< arcotwebfort_20May09_00_03_55.log"); … | |
Hi, I have a perl-cgi script (on apache server) that is running fine when one user runs it. The perl-cgi scripts runs batch files using system command and has some other rules. How do i make it run for many users? My basic knowledge tells me that I have to … | |
hii ppl... i want to open an excel file stored in c:\ drive. i have a link in JSP file. i want to open the excel file when a user clicks on link. the problem is while running the application on server, i m not able to open the any … | |
Hi, I am new to Perl and am trying to port an old version of checkstack.pl to run on windows, the code iam trying to port is [code=perl] # Usage: # objdump -d vmlinux | stackcheck.pl [arch] # # TODO : Port to all architectures (one regex per arch) # … | |
Dear people I have been trying to fetch some data from the web. For this I am using the LWP:: Simple module. The problem is that I have been trying to pass a value to the URL in get function. here is my code: use LWP:: Simple; $iq= 'all_proteins.data'; $id= … | |
print ( "fred" gt "harvey" ); what does this print. How can we compare strings. If it was single characters, we can base our comparisons using ASCII. | |
[CODE]Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data. The problem I have is the first record gets processed fine where … | |
Hi, I would like to know whether the Data parsing can be done by perl scripting by checking the specified the webpage and fetch the data from the page and load the same i nto the sql server table. In the sql server table, it checks for a value called … | |
hi, i am trying to write a script to generate a big number of users in perl.. it is actually my second time writting perl .. i used to write shell scripts before. my little script seems not working because "useradd" isn't found by the compiler. if anyone may point … | |
Hi everyone, I am using a mail function in my contactus form. But for some id it is sending infromation of contac us form but some time it is not sending like on my gmail id i am not getting mail. what is the reason behind this. I have tried … | |
I have to read a bin file in perl/tk. I have been able to read and open the file, but the read in file only has every other line from the original file. I am using following to open the file. my @contents; open(FILE,"example_data4.bin") or die"cant open file: $!"; @contents … | |
Hi, How to send email notification when particular tests fails. Any input is appreciated. Regards, rAnA | |
Hi, I am creating script to execute a command. for example my directory is /home/rana/script/ and then i want to execute ./abc.sh file from there i am using following command system("cd $output_directory") ; system("./abc.sh"); where my output directory is /home/rana/script/ but i am unable to execute ./abc.sh clean build-all file … | |
I am writing a counter that is created on the fly using GD::Image. I am running into a problem with setting a cookie to ensure that the same user is not counted more than once, as I wish to only count unique hits. The problem is setting the cookie. I … | |
Hi, I have a string like this: [code] $string="Lake City 84132, USA. FAU - Carrell, D T AU - Carrell DT FAU - Emery, B R AU - Emery BR"; [/code] I want to extract AU and only its contents. The output should be like this: [code] AU - Carrell … | |
Hello there, I am using the JTextPane in my Java Swing Application. How do I make it Handle Hypelinks. Like lets say the use enters [COLOR="Green"]\\some_foldername\some_subfolder_foldername\some_file.xls [/COLOR]or any other file type, It should Automatically, treat it as a hyperlink. Is it Possible to have such a functionlaity [B][U]JTextPane Hyperlink Functionality[/U][/B] … | |
![]() | I'm trying to append a string to an array value and it doesn't seem to be working. Can someone tell me what I'm doing wrong? The array values will be URLs with a trailing forward slash. [url]http://www.mywebsite.com/Details/product-type/New-York-293486/[/url] $values[10] .= '?cid=spontrue'; |
Hey, I have used the LWP:\:Simple module and saved the source of a website in a file. I am trying to extract all the data between the <head> tags and pass it to a variable to process. So far I can't seem to extract the data properly. Any suggestions? [code=Perl] … | |
I have a web page that prints information from a database based on the query string variables. Sometimes the page loads just fine and other times it gives the message "Use of uninitialized value" for every single one of my database variables. The times it gives this message seem to … | |
Hi I tried to use new branded “R-Driver III” USB 2.0 TO SATA IDE CABLE device with Laptop HD IDE and Desktop HD IDE (once at a time) but it did not show me the HD , although I checked Disk Management (each one at a time) I thought the … | |
I am in the process of learning perl to go along with web design. I am trying to learn perl, ajax, css, xhtml, and javascript. If anyone can help me out, please let me know. thanks | |
Hi, I am trying to run a Perl-CGI script through Tomcat Server and running into issues. The script runs fine through command prompt and also runs half through webpage. The problem comes when I try to access some files in directories located on some other server. I think tomcat security … | |
Does anyone know how to compare two sequences through an alignment with Perl ? Please help. | |
Hi - Major novice here. I'm trying to write a code that starts with a user defined number (lets say "N"), picks a random number between 1 and N (lets say "R"), pushes R onto an array, subtracts R from N, then picks the next random number from (N-R), pushes … | |
I have a simple program that I am having trouble debugging. It contains two different problems. 1. If I run a MessageBox in this program after the program is up and running, the program crashes. I have to call the Task Manager to shut down the program. 2. SetTimer will … | |
I have a simple program that I am having trouble debugging. It contains two different problems. 1. If I run a MessageBox in this program after the program is up and running, the program crashes. I have to call the Task Manager to shut down the program. 2. SetTimer will … | |
Hi, open(MYINPUTFILE, "<access.log"); while(<MYINPUTFILE>) { # Good practice to store $_ value because # subsequent operations may change it. my($line) = $_; # Good practice to always strip the trailing # newline from the line. chomp($line); my($time, $elapsed, $remotehost, $csp, $bytes, $method, $url, $user) = split(' ', $line); # Print … | |
Hi, I have a problem with a scrollbar, once in a while when I try scrolling up or down it jumps to the recent position of the scroll. You can see the problem on: [url]http://radiojazz.dk/udsendelser.aspx[/url] And then try to scroll abit and see that it jumps. Does anybody know how … | |
Hi All, I want to pass an id via querystring from a hyperlink in a datagrid. How can I do it? I wrote the following, but got an error "The server tag is not well formed" [code] <asp:HyperLink [B]NavigateUrl="~/users/matrix.aspx?Exercise=<%# DataBinder.Eval(Container.DataItem,"hid")%>"[/B] Text="Link" id = "lnkLink" runat="server"></asp:HyperLink> [/code] Please help! Thanks in … | |
[code=perl]#!/usr/bin/perl use warnings; use strict; push @INC, "C:/Perl/Modules"; print "What is current download directory? "; my $dir = <STDIN>; opendir DH, $dir or die "Can't open directory..."; my $parent = $_; while ($parent = readdir(DH)) { next if $parent eq "." or $parent eq ".."; if(-d $parent) { opendir DI, … | |
Hi, I am working on a assignment where I have results sheet which is in form of text file; I want text file content to be written in excel sheet; generally we manually copy and paste the results in excel sheet. Our existing excel sheet has 70(sub-sheets) e.g result of … | |
Hi all, I want to write a perl script which will parse a .cpp file to extract the member variables of a function and log them into a text file. Then I have to read this file using Tk and display the contents of the file. I have the perl … | |
Hi, Can somebody let me know how to check whether particular network drive is mapped or not e.g x:\\share1\share2? Regards, Rana | |
I need help writing a Perl script that check and validate the information entered by users into an HTML form. Once the information is correct you will add the information validated into a database. | |
Hello, I am trying to add hyperlink to my mysql query result. I have a table called EastLondon which consist of the following: [code] (restaurant_id INT UNSIGNED PRIMARY KEY, restaurant_name VARCHAR(20), phone_number VARCHAR(20), picture varchar(8), website varchar(40)); [/code] I extract all these info into a table using php. What I … | |
I'm having a problem with the substr function. I want it to be dynamic in a for loop as follows: [code="perl"] for ($i = substr $bin, $sub, 1 ; $sub < $len2 ; $sub++){ [/code] You can probably guess what this code is meant to do. I want to read … | |
Hi all, Just a noob with an easy question :). Given this DTD [code]<!ELEMENT multimedia_format (description, examples, references)> <!ATTLIST multimedia_format name CDATA #REQUIRED> <!ELEMENT description (p+)> <!ELEMENT p ((text|em|strong|abbr|quoted_text|citation)*)> <!ELEMENT text (#PCDATA)> <!ELEMENT em (#PCDATA)> <!ELEMENT strong (#PCDATA)> <!ELEMENT abbr (#PCDATA)> <!ATTLIST abbr fulltext CDATA #REQUIRED> <!ELEMENT quoted_text (#PCDATA)> <!ATTLIST … | |
Hi everyone, working on a class project where we spider some patents from the USPTO (Patent office) and eventually map out our findings. Our teacher provided a script and expected us to hardwire directly to a modem, not a router. That is asking a lot since I need to provide … | |
I am having trouble running some test code using SOAP::Lite for perl. The code (listed below) simply hits a prime number generator that is freely available that I found through xmethods.net. It should be relatively simple test code, the only complication being the internal proxy server, but that seems to … | |
I need to add elements in the middle of a user created array. The closest I found was splice, but from what I read it can only replace. example of what I want to do it take list monkey marble oreo sandle monkey marble smile phone oreo sandle | |
I'am trying to build a website and I want to make some things auto mated. I only know html nothing else. A freind of mine make a site similer to what I'am doing but used perl. I want to know more and I can't tlak to this guy anymore. | |
Hello, I have this code of converting hexadecimal value to decimal but getting a warning at compilation. I'm starting to learn Perl and this one really makes me - almost - crazy! :) --- [code=perl] #!/usr/bin/perl use strict; use warnings; my $decVal; print "Please enter a hexadecimal value to be … | |
Hi there what i'm trying to do is: return a car manufacturer from a MySQL database and have the text returned a hyperlink to the car manufacturer website. The below just returns the manufacturer without a hyperlink: [B]$row['manufacturer'][/B] Would i make a row in the database called 'carmakeurl', store the … | |
Alright. This is a pretty simple program. The program simply reads a simulated DRM (basically an encrypted plain text file) file that was encrypted using RC4. It then reads a plain text file that contains the exact same plain text that the DRM file would decrypt too. (This is assuming, … | |
basically i want to be able to display an image from a mySQL database using PHP. I heard about this BLOB binary stuff & decided it was too complicated. How would i store a url so that i could access and display it directly in PHP. For example, would i … | |
Hi I am trying to ftp files from a windows server to a unix machine. When I login with the required credentials into the windows server , I want to make sure that the login directory is the correct one else I should change directory before initiating the ftp process. … | |
Hello all i am in ned of help with getting a cgi script to output to a flat file with out the use of a cron job whis is what ive ben using as such perl /[path to cgi file]/vfx.cgi > /[path to plx folder]/vfx.txt can i add a line … | |
Hi, I am using prefunction attribute of autocomplete. The javascript gets executed at the time of page load. But the requirement is to get executed just before displaying the values retrieved from ajax autocomplete. Plz reply.. |
The End.