2,977 Topics

Member Avatar for
Member Avatar for abhishekagrawal

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 …

Member Avatar for Ankit_Parmar
0
130
Member Avatar for Wolxhound90

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 …

Member Avatar for Wolxhound90
0
228
Member Avatar for triumphost

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; ~~~ …

0
75
Member Avatar for algo_man

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 …

Member Avatar for 2teez
0
170
Member Avatar for marComm

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 …

0
94
Member Avatar for MCLASS80

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. …

Member Avatar for 2teez
0
336
Member Avatar for Niner710

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 …

Member Avatar for 2teez
0
173
Member Avatar for Josue198s

Vim in my Mac Terminal doesn't show line numbers,when i code in Perl,please guys how do i fix that?

Member Avatar for chris.stout
0
200
Member Avatar for perly

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 …

Member Avatar for perly
0
1K
Member Avatar for kanhucharan

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.

Member Avatar for fobos
0
40
Member Avatar for SergioQ

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 …

Member Avatar for rch1231
0
156
Member Avatar for rdhoggan

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 …

0
76
Member Avatar for phummon

Hi everyone, I’m Pete, moderately-experienced C++ user who is always looking for better ways to do things. Let me ask you guys about a problem I’ve scratching my head over lately. Suppose I’m writing a program designed to simulate a large company. I’m interested in tracking each company employee by …

Member Avatar for phummon
0
212
Member Avatar for Cupidvogel

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: …

Member Avatar for FelineHazard
0
170
Member Avatar for abulut

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 …

Member Avatar for d5e5
0
219
Member Avatar for SergioQ

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

Member Avatar for d5e5
0
84
Member Avatar for Perlie

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 =~ …

Member Avatar for Perlie
0
115
Member Avatar for MCLASS80

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 …

Member Avatar for d5e5
0
147
Member Avatar for marComm

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 …

Member Avatar for marComm
0
579
Member Avatar for Cupidvogel

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 …

Member Avatar for replic
0
131
Member Avatar for agieli

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 …

Member Avatar for Fiverivers
0
129
Member Avatar for saucy6969

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]> …

Member Avatar for saucy6969
0
227
Member Avatar for griffman99h

Hope my first post is relevant enough. I'm a newbie coder and this is as much a learning exercise as it is a favor for my girlfriend. She has test results from a device that outputs data to .csv in multiple (100+) files. the important data is the separate file …

Member Avatar for L7Sqr
0
308
Member Avatar for SergioQ

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 …

0
105
Member Avatar for fistfullofbeer

I am working on a personal project and am trying to figure out if Python 3 or PHP would work better. I prefer Python because I am trying to hone my skills at it and at the same time I really do like its syntax and ease to learn. I …

Member Avatar for TrustyTony
0
167
Member Avatar for naieev

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 …

Member Avatar for d5e5
0
135
Member Avatar for realoneomer

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 …

Member Avatar for naieev
0
467
Member Avatar for Ctechnology24

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 …

Member Avatar for diafol
0
137
Member Avatar for erogol

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?

Member Avatar for d5e5
0
172
Member Avatar for erogol

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?

Member Avatar for replic
0
84
Member Avatar for minuteman263

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.

0
67
Member Avatar for paldss

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 …

Member Avatar for peter_budo
0
121
Member Avatar for Perlie

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 …

Member Avatar for Perlie
0
167
Member Avatar for minxminx

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 …

Member Avatar for Labdabeta
0
627
Member Avatar for biojet

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 …

Member Avatar for biojet
0
425
Member Avatar for replic

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 …

Member Avatar for replic
0
1K
Member Avatar for sality63

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'] …

Member Avatar for sality63
0
177
Member Avatar for Sohvkhan

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") …

Member Avatar for Sohvkhan
0
142
Member Avatar for sah

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 …

Member Avatar for lolafuertes
0
465
Member Avatar for MCLASS80

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?

Member Avatar for d5e5
0
170
Member Avatar for Chario0z

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 …

Member Avatar for JamesCherrill
0
233
Member Avatar for MCLASS80

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

Member Avatar for MCLASS80
0
200
Member Avatar for niall_heavey

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 …

Member Avatar for d5e5
0
288
Member Avatar for PhoenixInsilico

I get some error while printing in text like this ¦Å instead of ρ etc..while parsing HTML file

Member Avatar for d5e5
0
87
Member Avatar for biojet

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 …

Member Avatar for biojet
0
312
Member Avatar for aravindj80

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 …

Member Avatar for histrungalot
0
184
Member Avatar for rlafrance

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.

Member Avatar for d5e5
0
76
Member Avatar for vasuv

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 …

0
94
Member Avatar for ABUMIN

. 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 …

Member Avatar for zobadof
0
198
Member Avatar for Gaiety

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 …

Member Avatar for Gaiety
0
152

The End.