2,452 Topics
![]() | |
Hello!! I have to design a program which can read the following file: [CODE]k1082 SciTegic08250908273D 30 32 0 0 0 0 999 V2000 0.3230 -0.6380 -0.7700 C 0 0 1.1810 -1.2460 -1.7340 C 0 0 2.5950 -1.1640 -1.6010 C 0 0 3.1670 -0.4730 -0.5020 C 0 0 2.2620 0.0980 0.4020 … | |
Hi all, Im doing my myspace profile and im using submit buttons in a form and the form action as the url for the page that the user gets taken to, however my external links dont work, and i also want them to be opened in a new window. How … | |
Hello, I am new to perl and I would like to parse a csv file in perl. The current code I have opens a file and prints new output to the terminal. I'm wondering how to write to print this information into the file instead of to the terminal. I … | |
PERL Tutor Marked Assignemt 10 Section 2 - Part B You are to write a Perl program that analyses text files to obtain statistics on their content. The program should operate as follows: 1) When run, the program should check if an argument has been provided. If not, the program … | |
Hi, I am trying to get a perl script that a contractor created for me but I am having some issues with it. I am NOT a perl programmer and I know just enough about it to be dangerous. I am more of a PHP/CSS guy. Anyway, the purpose of … | |
Am embarrassed to ask this but RegEx is really my kryptonite. I have a RegEx line that extracts just numbers from a string. However, I need to tell it that I only want the numbers that come BEFORE a specific set of characters, let's say SDCSDC. Any numbers after that … | |
Hi, I have a site which i added mod write to the url. Some of the pages are not opening correctly. For example, the WHIWH login, should open a user & pass field in the page. You can see it is not opening it. [url]http://www.whiwh.com/login/[/url] Also a page like this … | |
I am trying to minimize the form to system tray. I have written a piece of code. But the only problem i am facing is that when i try to restore the window from system tray. Win Form appears in taskbar but has lost focused means it doesnt appear on … | |
Hi, My code requires to send an email to list of people that satisfy certain conditions. This email will in turn have a hyperlink to open another email,with subject and body pre populated. When I try creating this hyperlink, i want the code to be hidden ie. i want to … | |
Here is my code: package Apache2::AuthGetUser; #authenticates users based on bool value from a asmx webservice use SOAP::Lite; use Data::Dumper; use strict; use warnings; use Apache2::Access(); use Apache2::RequestRec(); use Apache2::Const ':common'; use Apache2::Log; sub handler { my $r = shift; my ($status, $password) = $r->get_basic_auth_pw; return $status unless $status == … | |
Hi, I want to get the ip address of the clients who is accessing my web pages. I have the following information. [code] IP Address. . . . . . . . . . . . : 192.168.3.219 Subnet Mask . . . . . . . . . . … | |
I'm attempting to write a script that logs into a web site, navigates through some links, stores some data to a text file, and logs out. I was able to log on with ease, using WWW::Mechanize. However I'm having trouble navigating through the actual website, because instead of just a … | |
Hello again. I was trying to login to my web server protected with basic auth, and after i understood that it would be nice to automatically detect the realm so now i want to know on how to do so. Thanks in advance. | |
hi how can i translate these amino acids sequence into its triplet codes. this line is not working. [CODE]$aa =~ tr/arndceqghilkmfpstwyv/ala, arg, asn, asp, cys, glu, gln, gly, his, ile, leu, lys, met, phe, pro, ser, the, trp, tyr, val/;[/CODE] is there any delimiter to separate that three letter codes. | |
Hi, I have files in a folder. When I list those files in my PHP site, all the hyperlinks shows full path of the file on status bar of the browser. e.g When mouse over hyperlink, it shows "..../personalFolder/hello.doc" How can i solve this problem? I think this is a … | |
i am editing someone else's code that creates a tracking log for a website. It is written in perl but the file is report.mas and there is another file that has to be altered too report.mas.obj for the file to work.. I am very confused what type of code this … | |
Hi, I have following line in my Perl code--> system("start my.exe myfile.ext") == 0 or die "error ($?) : $!"; Q1: How do I close my.exe? Q2: If I give myfile.ex1 instead of myfile.ext, myfile fails to open. However, the error code returned by Perl is still 0. Normally (when … | |
how do you add a hyperlinkcolumn column in a gridview dynamically at runtime? if you can't add one, how do you modify its properties at runtime? i can't seem to figure out a way to do this. | |
I am creating a small test application in which i am trying to fetch the all the hyperlink's details(Anchor Text and url) on the web page. What i have done till now is that i create webbrowser component loaded the page and fetch all <a> tags. I also know that … | |
Hi I have problem to get data from tag (eg: <TEXT></TEXT>). For example the string is like this: [CODE]$string = "<TEXT> Some text </TEXT>"; if($string =~ /<(TEXT)>\s*(.*)\s*<\/\1>/g) { $result = $2; print $result, "\n"; }[/CODE] It works fine, but if the string is like this: [CODE]$string = "<TEXT> Some text … | |
![]() | Hi, i need a help to do program.i need to read multiple files and need to print out result in to new file.I had stored my datas in mycomputer/programs(G:)/CNV/(inside this i have 4 folder and each folder consits of number of datas...) plz give me perl script to do this ![]() |
Hello , I have an issue of running a perl script in shell. Basically, im very new to programming. So, i dont understand how to pass an argument. The program basically reads a file which has to be invoked in Shell. [CODE] perl pgm.pl reg1.pdb[/CODE] So, in the above line, … | |
Hello all. I have a small problem, the next code finds the neden content, but it doenst print it: [CODE]$string = "#324423asdd asd 'BecamePosters' "; if($string =~ m/'[a-zA-Z]{1,40}'/) { print "ok!\n"; print $1; } else { print "not ok!\n"; }[/CODE] It only prints "ok!\n" but nothing more. Also triyed m/'*'/ … | |
So I decided to learn Perl yesterday, and I'm writing a Perl script to try and parse HTML files (not using regexps for the actual parsing). Anyway; I have this subroutine to iterate over each argument in @ARGV and, if one of them is an existing file, return it's filename … | |
I've got a simple PHP page with a list of events that are taking place at certain times on certain days, and this is my code: [CODE] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORD"); //select which database you want to edit mysql_select_db("events"); … | |
I have form1(frmGate) and form2 (frmEdit) form1 minimizes when form2 is open and restores when form2 is closed however I use this to open form2 [CODE]private void btnEdit_Click(object sender, EventArgs e) { //checks to see if the form is open if (editor == null || editor.IsDisposed == true) { editor … | |
![]() | Hello All, I am desperate for help. I have spent the last 2 days staring at this code and not getting anywhere (please see attached project files). The project requires a number sequence to be output as a text file. Starting number is input by user (number is in sequence … ![]() |
Hello, I am trying to send e-mail using Perl and Net::SMTP::SSL. However, I receive errors when running this script (example from documentation): [code=perl] #!/usr/bin/perl -w use Net::SMTP::SSL; sub send_mail { my $to = $_[0]; my $subject = $_[1]; my $body = $_[2]; my $from = 'me@gmail.com'; my $password = 'MySuperSecretPassword'; … | |
Hi all, I am new to perl I want to compare two files File 1 is having protein names like Biotin-[acetyl-CoA-carboxylase] ligase Acetyl-/propionyl-coenzyme A carboxylase alpha chain Acetyl-CoA carboxylase, carboxyl transferase, beta subunit biotin carboxylase-like protein CYCLOPROPANE-FATTY-ACYL-PHOSPHOLIPID SYNTHASE 1 CYCLOPROPANE-FATTY-ACYL-PHOSPHOLIPID SYNTHASE 2 mycolic acid synthase long-chain-fatty-acid-CoA ligase 3-oxoacyl-[acyl-carrier-protein] synthase I … | |
[code=php] <?php include 'config.php'; include 'opendb.php'; $result = mysql_query("SELECT * FROM 888db ORDER BY id") or die(mysql_error()); echo "<table border='0'>"; echo "<div id='bodyframe'>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row … | |
Hello, I'm a newbie here and also to Perl... Have a big task of finding the lines of the form from a file ATOM 1 N LYS A 257 -5.036 -29.330 -27.709 1.0041.51 N ATOM 2 CA LYS A 257 -3.873 -29.331 -26.757 1.00 41.55 C . . . ....n … | |
I have just transferred a site over to a new server. The perl scripts were working just fine on the old server and now it seems to be having issues and outputting the header content to the screen. When I fill out a login form that gets send to the … | |
hey can any1 pls tl me hw to work on cgi pgms on windows..m new to ds language,facin a prob durin connectin perl prog throu browser...hw to do dat | |
![]() | Hello everyone! I'm making some rollover buttons in flash, and I could use some help. I have this button that has text on it e.g home, contact and stuff like that, and I would like to make this text an hyperlink. I couldn't find a tutorial for this :( . … |
Hello, I need to compare arrays in perl. Now the arrays are arrays of strings. The strings are similar to the following pattern: user:user@machinename.domain.com There are 4 machines. M1 M2 M3 M4 There are 4 arrays and each with a bunch of users. some users appear on multiple machines. I … | |
i have a table ive refreshed my data many times restarted everything. even changed stylesheet names and put the table in a class with the css for the class being width:500px; now the code i have is<table cellspacing="0" cellpadding="0" style="width:500px" width="500"> it doesnt work. i took out both widths, then … | |
Hi ! My script don't understand file name with "interval", help me with it problem !!!! [CODE] use Cwd; $dir = cwd(); $vardas=$dir; while($vardas=~/(.*\/)+(.*)/){ $vardas="$2_source"; } $newfile = "$dir/$vardas.tex"; FILE: foreach $file (<@ARGV>) { if ($file eq $newfile) {next FILE}; if (-e "$dir/$vardas.tex"){ print "File exist\n";} else{ print "Rename: "."$file\n"; … | |
This is a bare-bones search and replace script that uses perls in-place editor and the File::Find module to get the job done quickly. It will search in all sub directories of the start directory and find and replace the text you specify in the type of file you specify. Keep … | |
Hi, I have a sentences like this: I have words like this: Example 1: [code] $string="control"; @arr= qw(Our data suggests that shape and growth control are unequally affected,The growth of tissue is control,The observed regulation is due to elevated levels in the blood,The sugar levels are in control and there … | |
Is it possible to apply XSLT on XML output from a Perl CGI script? I.e. I have a registration form, when submitted it makes an Ajax request, building a query string from the form inputs. The request is made to a Perl CGI script. This script can be called two … | |
/*This is an assignment for school. The main is part of the assignment. The program will work sometimes, sometimes it will not count the longest word if it is at the end of a sentence.*/ #include<iostream> using std::cout; using std::cin; // Prototype for the longest_word function that you need to … | |
| |
I have two different parts to my program. My FundRaising.java is my problem. I'm having problems with my print statements. Why are the correct numbers not showing up? I keep getting 0. System.out.println (booster1); System.out.println (booster2); I ask the question to get the numbers and I keep on getting 0 … | |
Hi guys, Ok, so I'm using the code below to display the fields from a table on my webpage. I used some code to paginate the results as there's a lot of records, however I can't seem to get it working properly, and I'm going crazy trying to work out … | |
Hello all, I have the bluej source code in eclipse, and it compiles fine, but when I try to run it BlueJ starts fine, and then pops up an error window that says that bluej couldn't create a VM. My installed BlueJ has never given me this error before, so … | |
Hi All, So I use Net::POP3 to look into my email server. What I wanted to know is if there is any module that allows me to MODIFY the email messages? Sure between Mail:: and Net::POP3 I can forward them, delete them, etc. But would love to be able to … | |
My company is retiring an online document warehousing application that stored lots of text data. The application stored the data in a folder hierarchy that looked just like a Windows folder tree. I'm trying to replicate that hierarchy on a UNIX file system, but the tools provided with the application … | |
Hi , use Sort::External; $output = '1.txt'; open(FILE, $output); my $sortex = Sort::External->new( mem_threshold => 1024**2 * 1024 ); while (<FILE>) { $sortex->feed($_); # tried to change it to ~$_ but did not work !!!!! } use Fcntl; $sortex->finish( outfile => 'desc_1.txt', # comes in ascending order !! flags => … | |
Hi, I am new to coldfusion. I installed CF7 in multiserver configuration. I created two instances on same box and created a cluster. I can browse to the two instances seperately and thru the cluster. I am having an issue. When I access instances directly the site is working fine, … | |
Hello, I am new to this community as well as Visual Basic. My class was assigned a project that is to use Panning and Zooming of a Image. However the code the teacher supplied us zooms to the Upper Left corner of the image instead of the Center of the … |
The End.