2,977 Topics
![]() | |
how do i script a php echo for info stored in mysql so it is rendered as a hyperlink to its website? here is the script i am trying to edit: [B][COLOR="Red"]highlighted in red[/COLOR][/B] is what i need to change for the echo to href. [code]<table> <?php if($this->team->t_official_website){?> <tr> <td … | |
Hi all. Am using amavis for email scanning but got stuck somewhere in the configuration file. I want to add some custom code to populate an array from a postgresql database. (Amavis and its conf are written in Perl) Below is part of the configuration file which i want to … | |
Hi there folks! Please could anyone tell me how I can disable the underline of a hyperlink button server control of datagrid and similar controls ? I had used the following css code on the ItemStyle-CssClass which works for traditional hyperlinks to no avail. Thanks for the help:) [CODE] .tablecellhyperlinks … | |
Could someone please help me figure out how to sort files in a directory by date? There are a lot of files to sort, thousands. All I want to do is sort by date last modified or accessed and then print that array. Thanks, Derek ![]() | |
Hello everyone, I've been having a problem parsing through a .bin file. Ideally, I want the script to read the .bin file, find the first word in it, write down word 1 somewhere else, and continue on throughout the file, word by word. I've tried similar things such as open … | |
[CODE]$dgs = new IO::Socket::INET(LocalPort => $lisport, Proto => 'udp') or die "Socket: $!\n";[/CODE] I have a perl script that I want to run on tomato firmware router using the current shell scripting that it supports How would I do the above in shell? In perl you have to use IO:Socket. | |
I'm having a dumb moment here... I am trying to search out strings and match user input with what's stored in database. I'm using [code]if($data =~ $user_input){then do something;}[/code] It's important to note that all the "$data" strings are all numbers. So for example, user puts in "1" and it … ![]() | |
![]() | Hey, I'm looking to gather a list of all selected files in a windows explorer window. I.E. Say I have the My Documents Folder open, and select 5 files out of say 20 in the folder, I would like to replace whatever is in the clipboard with those five entries. … ![]() |
Can this be done in Python?.. which is done in perl. [CODE=perl]open(TEST,">test.txt"); *STDOUT = *TEST; print "print somting..."; print "print somting..."; *STDOUT = *FHSAVE;[/CODE]All the print statement between the lines "*STDOUT = *FHSAVE;" will be written in to test.txt. Is there any way to do this in python. Thanks. | |
Alright let me lay out what im trying to do im just starting php and i really dont got a great handle on DB's either so any help would be wonderful. Curently i was useing an html form to have people inpout data (name,age, type of stuff) via radio buttons … | |
Hi all, I am creating an Windows Application. I have two buttons. I have written the following code snippet. [code] frmRb obj = new frmrb(); private void btnPd_Click(object sender, EventArgs e) { btnCancel.Enabled = true; obj.btnRtn.Enabled = true; } private void btnCancel_Click(object sender, EventArgs e) { this.Close(); obj.BringToFront(); obj.Focus(); } … | |
hi, there, i want to use .gif button and use in the hyperlink. i am not able to move to another page by clicking it. the code is as below: [CODE]<asp:HyperLink ID="HyperLink1" runat="server"><img alt="" longdesc="file:///C:/Documents and Settings/user/My Documents/Visual Studio 2008/WebSites/WebSite9/Images/line.gif" src="Images/line.gif" style="width: 1273px; height: 6px" /></asp:HyperLink>[/CODE] | |
I am having a text file contaning the following: "int Function1 (int arg1, "0|1", char * arg2); int Function2 (int arg1, " ", char * prt1); ..." I need to open this file, split the each word and store it as global variable. I did this in Perl but now … | |
Hi, i wrote the socket script in python, Here both server and client running in under same machine. operating system is ubuntu 8.10 desktop version. [B]tcp server[/B] [CODE] 1 #!/usr/bin/env python 2 3 import socket 4 import sys 5 6 server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) 7 server_socket.bind(("", 5000)) 8 server_socket.listen(5) 9 while … | |
Ok i have not started programming at all but wanted some answers first is pearl the easiest programming language ?? also if it is what is a god book to learn it from. If it is not then what is one of the easier languages to learn ??? | |
Hi, In my website i am planning to do portfolio things in that i gave fade in fade for all images this is working with same size of image.But i have images like this sizes 500/300, 300/150 like if i give this images into portfolio that time if one image … | |
Hi I am new to perl programming, and have hit a bit of a snag. I have been editing the ghettoshutdown script for my own devices. What it does so far is shutdown or suspend all virtual machines on a host (using vmware for virtualization), but it does not shut … | |
Hello all I am creating a site for user registration to a class. As classes are added and removed, I have a dynamic table that updates to list the available dates. [code=php] $result = mysql_query("SELECT date, time, type FROM class"); while($row = mysql_fetch_array($result)){ printf("<tr>"); printf("<td><a href = 'registration.html'>%s</a></td> <td>%s</td> <td>%s</td>", … | |
import csv file = open('signin.csv',"rb") reader = csv.reader(file) rownum = 0 for row in reader: if rownum == 0: header = row else: colnum = 0 for col in row: print '%-8s: %s' %s(header[colnum],col) colnum += 1 rownum += 1 file.close() Hi could any one help me out, i am … | |
Ok, I am about to pull all my hair out. I have written many many perl scripts and have done it all pretty much. All of a sudden, I have hit a real problem, and I DON'T know why! I am doing a very simple array declaration by reading a … | |
Hello, I'm fairly new to PERL and this is my first post - so be kind. I'm working through a book called Beginning PERL for Bioinformatics, and one of the exercises asks to "Write a program to read a file, and then print its lines in reverse order, the last … | |
Hello all, I have been working with Linux a lot and i find myself installing a lot of linux distros, but with no way to test them..... So i crafted a script in Perl to quickly create a lot of files on the Hard Disk and delete them. The script … | |
Wonder if anyone knows what's going on here... I have a page which is generated via Perl that prints a number of data entries in a series of table rows. Each <tr> is assigned a unique id through perl, and when user mouseovers on each individual <tr>, the javascript is … | |
Hi everybody, I want to compare 2 tables contents. My tables are: Table1 ------------------ ID || Value ------------------ 1 || forum_list1 2 || Message_list1 3 || Search1 4 || Search5 5 || Search11 6 || Log_out 7 || LOG Table2 -------------------------------------------- ID || Value1 || Value2 --------------------------------------------- 1 || rd_forum_list1_no … | |
How to print the duplicates in a text file. Also the line number where the duplicate text has been found needs to be printed. pls help KZ | |
I have defined a variable in bash [code]$ MYDATESTAMP="2009-06-25 21:57:18"[/code] I would like to pass this to perl to perform a simple date conversion. If I enter the date manually it works. [code]$ perl -MDate::Parse -le'print str2time("2009-06-25 21:57:18");' $ 1245992238[/code] My attempts to pass the variable MYDATESTAMP into this command … | |
open(FILE, "<", "numb.txt" ) || die "Unable to open numb.txt <$!>\n"; while ( <FILE> ) { chomp; $fileHash{$_} = $i++; } close(FILE); open(FILE, "<", "num.txt" ) || die "Unable to open num.txt<$!>\n"; while( <FILE> ) { chomp; if( exists $fileHash{$_} ) { } else { print "$_\n"; } } close(FILE); … ![]() | |
Hello. I am new and hope to find an answer to my query. I run a classified database and have been doing so for quite a few years, I recently upgraded the Plesk CP on my server and suddenly a problem appeared with the way the DB is returning the … | |
My new website is aligned properly in all browsers except Explorer. Can anyone help? Link: [url]http://www.altartist.com[/url] Thank you!! | |
Hello All! Thank you very much for viewing this thread. My problem is I am trying to pass a number value between classes/thread of the same java project in eclipse. I have a java project of 9 classes with three threads. The Display Class/Thread needs to accept a value coming … | |
hi guys can you help me with my problem.. i have a problem on my computer everytime i turn on it.. its automatically shutdown.. i dont know what part of my pc are not function properly.. i already change my power supply and my hardisk but nothing happen.. guys can … | |
Hello all, Can you help me please; I have a directory GENERAL, into this directory created many subdirectories. I want to create a Perl script, that can create *.tar or *.gz files all this directories individually. Is it possible? Thanks in advance. | |
Hi PHP community. I have a PHP script on Linux (CentOS 5.2) which produces a "failed to open stream: No such file or directory" which I am out of ideas on how to solve. I am on the verge of reverting to Perl. The line generating the code is: [icode]$fh2 … | |
Hello guys, I m trying to run a simple php code. I have Apache Tomcat/6.0.18 running. I dont know if it is php enabld or not. i've created a hello.php file: [ICODE] <html> <body> <p>This is going to be ignored.</p> <?php echo 'While this is going to be parsed.'; ?> … | |
I am attempting to read and process a very large .csv (~75 Mb). I have been able to load the file into a string, but when I begin processing the string I run into problems. I am looking for memory management advice on these sorts of operations. String.Split() - OutOfMemoryException, … | |
I am writing a program in which the user enters a number between 1 and 3 (3 meaning that he/she would like to quit) and I am using a switch function within a do-while loop. I am trying to get the program to end the loop when the user enters … | |
Hi, I want to edit post, i made some days back. i could not see any edit link there in the thread. Kindly help me out this. Moderators, Please let me know the answer of above question, or delete all my posts from the forum. Please do it as soon … | |
I am an undergraduate Student, from Computer Science and engineering department I can construct a crawler in Perl, for one particular web-site to fetch the useful information, in my case the - Job Ads at that company's webpage. Now, I want to construct some crawler that is generalized for say … | |
/transcript_id="XM_760437.1" FT /db_xref="GI:71031776" FT /db_xref="GeneID:3502673" [B][U]FT CDS complement(join(18028..18116,19351..20668)) FT /locus_tag="TP01_0004" FT /note="go_function: nutrient reservoir activity [goid FT 0045735]"[/U][/B] FT /codon_start=1 FT /protein_id="XP_765531.1" Hi all, I need a code that reads the whole segment as a string in per. I need to select only the highlighted area and copy it to … | |
![]() | Greetings, I'm not a very advanced programmer at all. I found a piece of code that helps me out a lot at [url]http://www.codelifter.com/main/javas...lideshow2.html[/url]. It allows an image to crossfade into another, into another, etc. I'd like to be able to crossfade an image, with a text caption underneath it, to … |
I have been working on an assignment for a while now and I have had many problems making the program work from the information and help supplied by my course. The program I need to make is one that analyses text files to obtain statistics on their content. The following … | |
Hi Gurus I wanted to learn perl and I need to know how can I install perl, c compiler etc. I have two Pcs with me one runs on Windows NT and other with Windows Vista. Could some one suggest me step by step guide including the softwares to be … | |
I shut down my pc like normal last night and then this morning when i turn it on, it goes to the normal blue hp screen and then it just goes to a black screen and does nothing, it doesnt go to my desktop like it should. im not sure … ![]() | |
Hi! I split lines on tabs (fields). I would like Perl to print first filed in parenthesis. My script is the following: open (INP, "input.txt") or die "Can't open input: $!\n"; open (OUT, ">>output.txt") or die "Can't open output: $!\n"; while ($line = <INP>) { chomp ($line); @field = split … | |
Hey guys, How I will come to know my perl script for copying files (generally very big sized file 1000 gb ) between two server successed or interupted ? How I will get the error status of the scp commmand I used for copying file ? Thanks in advance | |
Without using some new language like Perl, how would one be able to access a web-page, given specific session information? And also, which C/C++ libraries are good for doing this kind of job? If this is at all a weird question, I'll explain. I'd like to be able to write … | |
Hi, I have a my script here-- [code] print "The Perl Script does the User health check and system health check...\n"; print "---------------------------------------------------------------------\n"; # use strict; my($OS); $OS = $^O; # need to test @ARGV before GetOptions shifts it if (@ARGV == 0) { print "\nNo options provided, using defaults … | |
This is a very general question. If I want to learn how to access or use a data feed straigt from a system which would normally provide a data dump in the form of an excel file, what should I learn. I basically have no idea where to start learning … | |
hi, is there a way that i can take my div to the bottom center of my page? i tried diff attempts but none worked. any suggestion? thanks. below is my last attmep: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> … | |
Hello all, If I have the following code fragment: /* comment bla bla */ ....code... With a regular expression, how do I get/extract the comment inside this multi line comment block. With the comment characters? And how do I get all the multi line comment from in the entire file? … |
The End.