2,452 Topics
| |
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 … | |
Im trying to call another perl file from within a perl program. I have been told it's system("file.pl"); but this doesnt seem to work | |
Hi all, I'm sure this is a simple problem, but hopefully someone will be able to help. I'm trying to connect to mysql through perl, however when I use the command [CODE]use Mysql;[/CODE] it is giving me an error. I am assuming it is probably something to do with the … | |
I get some error while printing in text like this ¦Å instead of ρ etc..while parsing HTML file | |
Hi all, I am trying to make the script to find 3 amino acid at the position form the diffirent sequence into the same file data. in put 1: [CODE] Name posi 14067_contig01 18 14067_contig05 8 14067_contig03 26 ....................... [/CODE] in put 2: [CODE]>gi|354512101|gb|AGQQ01000001.1| Corynebacterium glutamicum ATCC 14067 Contig01, whole … | |
Hi, I have 2 large log files in .gz format file1.gz contains abcde 12345 23456 . . . . . . . . 09123 file2.gz contains abcde,1,2,3,4,5,6,7 09123,3,4,5,6,7,7,8 23456,9,6,5,4,3,2,1 .... ... ... ... I am basically looking for a script to open the file1 , read line by line and … | |
I am trying to do something like the following [CODE] my @type1_cols = qw(col1 col2 col3); my ($col1, $col2, $col3) = split (/:/,$string); ... foreach my $col (@type1_cols){ $hash->{$col} = ${$col}; # <---- this line is the issue. how do i do ${$col} } [/CODE] any help is much appreciated. | |
Hi, Some jobs got scheduled.let us take an example of 5 jobs. first 4 jobs got scheduled in one server(assume it as A).last jobs got scheduled in another server(assume it as B).so the requirement here is once the 4 jobs got completed in server A, then we need to connect … | |
. in just one cell of a table? I can do a global change on the page by redefining html 'a' element colors in a .css file andlinking it, but that changes the link colors everywhere, including those in the standard asp:Menu components. The contents of one cell on my … | |
Hi, I want to print the word that start with h(not case sensitive). i tried with below code but its printing only one charater 'H'. i dont understand the metacharaters and regular expressions much. i understood that $1 will have the first match and $2 will have second match and … | |
Hi everyone, Running: Windows 7 Professional (64 bit), MS Office 2010, IE 9.08.... since I bought the laptop in September and have made no software modifications at all. Having a really annoying problem. Have searched web and here. Whilst sismilar issues are out there, I can't find one the same … |
The End.