2,452 Topics
![]() | |
Hey everybody, New to the java scene and having major issues, it would be appreciated if someone could have a look at my coding and see where i'm going wrong. I have a few 1. When i press the 'start new game' button the random number resets but not the … | |
Here's my current code: /[\w\s]+/ I'm trying to make the following characters match: [CODE] Q W E R T Y U I O P A S D F G H J K L Z X C V B N M q w e r t y u i o p … | |
Hi, I have a file like this, separeted by tabs: Code Info source start end GB01672 rpsblast_to_CDD protein_match GB01672 rpsblast_to_CDD match_part 296 988 GB01673 rpsblast_to_CDD protein_match GB01673 rpsblast_to_CDD match_part 3803 4147 GB01673 rpsblast_to_CDD match_part 1314 1907 GB01673 rpsblast_to_CDD match_part 3516 3932 GB01673 rpsblast_to_CDD match_part 3335 3463 GB01674 rpsblast_to_CDD protein_match GB01674 … | |
I need to create a dynamic HTML form using PHP. I am only considering the following fields : Text, Text box, Radio, Check Box, Drop down. I am thinking of the creating the following database design. Field ID | Field Type | --- Other Attributes, such as length and others … | |
Hi, I need a perl function that will check the following in a file, modify if only the first two columns match , and if not found in the file, insert the values. The file is like below **lookup.txt** InstanceName1::DomainName1::Server1 InstanceName1::DomainName2::Server2 InstanceName2::DomainName3::Server3 InstanceName2::DomainName4::Server3 ... ... The perl function needs to … | |
hi, I prepare for an application to explore network switches for an entreprise,and I want to use the script method with perl,that's why I want to ask is it the right choice to use perl script to explore the nearest switches of the switch target that I specified and thnaks | |
![]() | http://localhost/cgi-bin/mb.cgi apache is working on my mac but when i run this script http://localhost/cgi-bin/mb.cgi then i press submit button it was suppose to open a perl script to save the information on a file but it this me this following error: 500 internet server error. Please Guys help...i need to … |
> can someone please send me a perl script to find solution of following problem:- input a random **DNA sequence** , cut the DNA sequence randomly into three** fragmented sequence** ,from these fragmented sequence** retrace the DNA sequence** back . for eg. input string=AGCTAACCTTCAG fragments= TAACC,AGCT,TCAG,CCTT We want to retrace … | |
Hello, Can you please help me in following scenario in Perl scripting? I want to correlate two text files to get output. CONSIDER TWO CHEMICAL REACTION:- (1) A+E+C--->F+H+L (2) A+B--->G+I INPUT_FILE1.TXT #REACTANT #REACTION NO. A 1 E 1 C 1 A 2 B 2 INPUT_FILE2.TXT #PRODUCT #REACTION NO. F 1 … | |
Hi, I've got a problem to average lines which have same name. For exemple: > Strawberries 10 15 14 20 Pineapples 14 17 2 18 Apples 4 12 24 18 Strawberries 20 12 13 24 I would like to average values by fruit name. So, for pineapples, that easy, it's … | |
hi i write this code in perl i dont know why that not work... sub Again { $dirtoget= $_[0]; if(opendir(DH, $dirtoget)) { @thefiles = readdir(DH); closedir(DH); if(@thefiles) { foreach $f (@thefiles) { next if ($f eq "." or $f eq ".."); print "$f\n"; if(-d "$dirtoget/$f") { Again("$_[0]/$f"); } } } … | |
Well I have a 2D array matrix file like [CODE] 0.5 0.8 0.9 0.10 1.0 0.5 0.75 0.6 2.5 6.0 0.5 0.53 3.0 2.75 0.9 0.5 I want to read this file as csv and edit the file such as when the values are above (> 1) i want to … | |
I know this is a simple question but i am having a problem with an IF statement: [CODE] START: #START GOTO command **CODE REMOVED TO SAVE SPACE** print "Continue? (lower case only) \n"; $choice = <>; if($choice eq "y" || $choice eq "yes") { goto CONTINUE; } else { goto … | |
Hi All, I have written a program to input a decimal string and convert it to character string. Below is my program: /*this program converts the decimal representation of an input string to character representation*/ #include<math.h> #include<stdio.h> #include<stdlib.h> char int2str(int n); int main() { int dec[100]={0},i,j,decindex,ndec=0,nchar; char character[100]={'\0'}; printf("Enter the … | |
Hey guys, So I'm trying to make a website in php. I'm just wondering, when I click on a link is there any way for the text of the link to be put into a variable. Basically the user will select the name of a database(which is a hyperlink to … | |
I have a button created as follows: ~~~ HWND License; HBITMAP MainButtons; Case WM_CREATE: License = CreateWindowEx(WS_EX_TRANSPARENT, L"Button", L"License", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_BITMAP, 26, 77, 75, 23, hwnd, (HMENU)ID_LICENSE, hInst, 0); MainButtons = (HBITMAP)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_MAINBUTTONS), IMAGE_BITMAP, 0, 0, LR_SHARED); SendMessage(License, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)MainButtons); break; ~~~ … | |
I have wikimedia tags in a text file. I need to get rid of these tags from starting to ending even when nesting. I'm using Perl. I'm facing a difficulty in nested tags. I'll give two examples of these tags that I could not to remove. Example 1: {{ text … | |
I need to allow users to upload an image via form. I based my script upon a template that someon ein my company had used in the past, but the upload part is not working. Can anyone see anything that might be causing the problem? Is it the file upload … | |
Im looking to put a loop into a program i have created but right now it only runs on a static IP hardcoded in the program. I would like it to loop through a list of IP addresses from a CSV file and loop until all IP have been used. … | |
Hi, I would like to parse the following line and store all the values into an array. The values are separated by commas. I am unsure of how to do this without having a super long parsing string(i.e if(/.*/). At first, I was thinking of some type of loop, but … | |
Hi, I have 2 sets of multiple sequence files of DNA sequences. Examples of set 1 are as follows: Seq1.txt contains: ATACAGGATCAGATG Seq2.txt contains: ATACCGGATCAGATG Seq3.txt contains: ATACAGGGTCAGATG Examples of set 2 are as follows: Seq1.txt contains: >seq1 ATACAGGATCAGATG >seq2 Seq2.txt contains: ATACCGGATCAGATG >seq3 Seq3.txt contains: ATACAGGGTCAGATG I want one/two … | |
I have created one search functionality using cfcollection, cfindex and cfsearch. Here the data are retrived from three tables. But when I perform any search operation then only it able to search those data that are in last table only. Please put forward your suggestion. | |
My Captacha module uses lines like this, to vary colors. my @l_colors = qw(#338833 #33AAAA #AA33AA #AA3333 #3333AA); My error log gets cluttered with: FCaptcha.pm: Possible attempt to put comments in qw() list at FCaptcha.pm line 21., Quotes don't work, neither does \#. Any thoughts what I can do to … | |
Hey all, I have built a Perl script for parsing XML in an email message attachmen. Essentially the script works when there is one email message in the inbox but breaks when there are 2+. The "unblessed reference" error is on the line that uses XMLin. I am not sure … | |
Hi, I have a file which contains some lines of text. What I want to do is after the first two lines, insert a new sentence. So if the original file looks something like this: Sachin Ganguly Dravid Laxman Sehwag after the insertion, I want it to look like this: … | |
Hi, I tried to make a script but I need some help from you guys.. ıt will be like a fixing.. The output which ı had from my script and my script were sent as an attachment. 1)Can i get that output as left aligned? 2)Besides can you guys make … | |
So I got a new server, and the incantation appears wrong. So I typed the command which perl- and got: /usr/bin/which: no perl- in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/sergio/bin) This can't be right. Can someone help me? Please? Thanks | |
Hi, I try to use a specific word in my file to put it as a folder name. This word vary in my file so, I think about use regular expressions to define it. my $file=$ARGV[0]; my $word=~/DOT\d+/; my $line=""; open(file, $file); while( $line = <file>){ if ( $line =~ … | |
my $num = 1; cal($num); print "$newnum\n"; sub cal{ my $num = shift; my $newnum = $num + 1; return $newnum; } is it possible to take variable $newnum and use its value outside of the sub cal. At the moment if i try and print the variable $newnum outside … | |
Hello, I am building a website using a standard form and perl script that we commonly use, but this one has a special request and I don't know how to handle it because I have very little knowledge of Perl, other than what is in the standard script I have … | |
Hi, I have a text file which has some lines, I may append others periodically, so I want a code that trails it (say at an interval of 5 seconds). When it sees that for 5 consecutive intervals no new line has been appended, the code decides to exit. Here's … | |
hi guys! i'm trying to build a wireless sensor network which should be able to detect and track bluetooth devices inside a room,thus it should have an interface(map layout) showing the tracking!!this will involve the use of triangulation methods in finding the target location. i would just like to ask … | |
Hi there I am working on a template for a new website and the homepage looks fine in every browser except IE (all versions). I believe it has something to do with the line of code below as this shows up at the top of the page: <!--[if lt IE]> … | |
So first off, I love this forum. Am more of a user than an answerer since I am only at that level, but this place has saved me so many times, and I hope it can do it once more. Am using old Perl code that uses Sendmail. Sadly since … | |
Hi, I have a similar requirement. We have a huge csv file (2GB odd) that has to be loaded into our database. We're concerned with only two fields here say col1 and col2 (of the 32 fields) before loading into the database we need to check if there is a … | |
Hello Perl Guru's I am playing with two text files using perl but i have been end up after a one day effort and got nothing there fore i have decided to post some thing here for help well here are some details that what actually i want to do … | |
Guys can anybody help me, I'm trying to fetch records from my database and use those records as links, my codes work but the first two records are not converted into a hyperlink, why it happened? what is wrong in my codes? [CODE] <?php $username = $_SESSION['username']; $query = "SELECT … ![]() | |
I try to match 01010 with /010/ but there is one return ([B]010[/B]10) for this match. There are actually two match (010-is common-10) in that string with regex. I used /010/g but againit returns just one match. Is it possible to match this regex twice with such string? | |
I try to have a regex that has at least constraint in a string like "a string has at least two 'a' in it" and possibly "a string has at most three 'a'". Do you have any suggestion how to do it? Thanks for any answer? | |
Using Office 2010 on Windows 7 Pro. On a spreadsheet, I am putting hyperlinks on names that will open another spreadsheet. If I sort the spreadsheet, the hyperlinks will no longer work. Is there a way to keep them so that they will work after a sort. Thanks. | |
I have this piece of code that has a jquery mobile button. When the button is clicked, a search box appears. The problem is that where the code is now, the input box is shown using regular HTML, and does not have the nice, sleek, rounded formatting. If I move … | |
Hi! I'm working on a Perl code since two weeks without found anything so, I'm asking for your help. I have two files: The first is like this: [CODE] 141374_at AttA 141559_at sec5 141691_at spz 141930_at imd [/CODE] These datas were selected before according to a criteria. And the second … | |
This is a code which sorts arrays. I use clock_t to determine the processing time for my code. However, it always stacks with the time taken from before. It looks like it's just adding the results. [code] int main(int argc, char *argv[]) {unsigned long n;//size of array -- long for … | |
Hi all, I have one problem. I have two value ($gia and $name1) and now I want to do it become one value to run in the next step.Ex: [CODE] $gia =12 $name = Tai $gia =$gia.$name out put : 12Tai[/CODE] But I hope the data will sepera two colums … | |
Hello everyone, assuming i want to write some values into my database of choice i found two ways to do this. [CODE] my $sql = "INSERT INTO table (foo, bar, foobar) VALUES (?, ?, ?)"; my $sth = $dbh->prepare($sql); foreach(sort keys %hash) { $sth->execute($_, $hash{$_}, $some_other_value); } [/CODE] as opposed … | |
I can't figure out while the table rows and columns are not display as intended. I have tried everything I could but no solution yet. I'm new to PHP/Mysql. What I actually wanted to see as the output is something like this: [ICODE][B]$days_of_week_rows['week_day'][/B] $period_rows['period'] $class_rows['class'] $time_rows['time'] $period_rows['period'] $class_rows['class'] $time_rows['time'] $period_rows['period'] … | |
Why doesn't my program accept "quit" when I input it? #include<iostream> #include<fstream> #include<string> #include <cassert> using namespace std; int main() { ifstream file; char filename[20]; char infile[20]; int count=-1; for(;;) { cout<<"Enter the file name that you want to open or write 'quit' to exit: "; cin>>filename; if(filename == "quit") … | |
I have developed an application that loaded many images in a listview using ImageList in c# .net framework 4. The images are also compressed. When many many images are loaded and compressed then it takes a long time. So I call the method in backgroundworker. In the backgroundworker I had … | |
I have 2 perl files. 1st file is my main program and the 2nd is a small sub which I call by using system("file.pl"); I would like to reuse a stored value/s in variables from the main program and use them in the external file. How is this possible? | |
Hello, So I've got trouble with a program I'm working on. The program is supposed to register studends and teachers to a register, and when I close it, I want to save all data with DataInputStream/DataOutputStream. So when I open the program, I want to see what I've registered. It's … |
The End.