2,452 Topics
| |
Hi all, I am trying to make script to find the max value at the number that was decided by user. The data has two colum [fw] and [rw] and I hope I can find the max values of each colum. in put : [CODE] posi (not have in data) … | |
Hello, I have done my best in trying to find a way to be able to do the following... I have a text file (data.txt) that I would like to add some info at the beginning of the file (prepend I believe, not append). From what I have gathered, "append" … | |
[CODE=php] <?php include('variables/variables.php'); ?> <div id="header"> <?php include ('includes/db-zelf.php'); // define your database connection credentials mysql_connect( $db_host, $db_user, $db_password ) or die(mysql_error()); mysql_select_db( $db_database ) or die(mysql_error()); /* KUBAGES */ $Luchtvr = mysql_query("SELECT * FROM Luchtvrachtpalletten WHERE ID='1'") or die(mysql_error()); while($Luchtvra = mysql_fetch_array( $Luchtvr )) { $kuubid = $Luchtvra['ID']; $kuubvol … | |
This is a website I designed a few years ago. The CONTACT and EMAIL SUBSCRIBE forms used to work, and they are broken. When I click on the Submit button, I get a server error saying "The server encountered an internal error or misconfiguration and was unable to complete your … | |
Hi, I have just started learning PERL. below is the code i have written , i am expecting the same order that of array when i print the contents. but the output was [ICODE] 29 25 Michael 29 Walter 34 Donny 25 Sobzchak 30 [/ICODE] can some body please clarify … | |
hi team...I need help for connection sybase server emergency... i will start perl programming for our company software ourselves…I need dbi driver installation guide,installation setup file and etc. i m using dzsoft perl editor (5.8.7.3),and i have apache server 2.0.64 (win) i try to connect sybase server but i couldnt … | |
Hey! I have a problem with my Amilo Sa 3650 keyboard. A little tea (no sugar!) was spilt on it and I quickly mopped it up as it wasn't that much liquid. Shortly after, the keyboard keys went crazy (some keys acted like they were being pressed constantly), I waited … | |
Hi all, I am trying to separe my data DNA because it has a lot of name. It has about 43 litte file in one data. I made the small script to solve one name of data but I did not succes. The result was not enough. My script is … | |
How can I get an image to have it's own hyperlink that is inside of a clickable div? [CODE]<div id="clickable" onclick="window.open('http://www.daniweb.com');return false;"> <p>I love clickable images!</p> <a href="http://www.google.com"><img src="someimage.png" /></a> <p>too bad they don't click in a clickable div</p> </div>[/CODE] If I try the above then the DIV is always … | |
when I'm running the code everything works fine, it doesnt allow you enter the same name twice but if I shut it down and then start the code again it will let me add the same name again without throwing the error message. does anyone know I could change my … | |
Hi, a program requires one to enter a given number of strings, and for each string, the program has to output the number of permutations possible. We all know that if a string S of length l has a type of one letter, b type of another, c type of … | |
I have been trying unsuccessfully to calculate the "bearing" between 2 Universal Transverse Mercator points. Lets call them head and tail. head has points $XH = 756979.0 $YH = 7951269.2 (x,y) tail has point $XT = 765484.9 $YT = 7951229.6 (x,y) what I have been trying is as follows: (variables … | |
Hi all , I have some data with a lot of colums but I just want to put out some colums in the diffirent file. I find in forum that have the question [url]http://www.daniweb.com/software-development/perl/threads/377421[/url]. I used that to solve my problem but it is not seccesfull. I can put out … | |
I am trying to parse an html file. But unable to remove spaces using \s (matching character for whitespace) [CODE]use strict; use warnings; open(FILE,"<paragraph.txt")|| die "Can't open para.txt"; my @file = <FILE>; my $all = join("",@file); $all =~ s/\n/ /g; $all =~ s/\./\. /g; $all =~ s/\s\s*/ /g; open (FIL,">paraone.txt")||die … | |
Hi I have two files. One file contains all my interested uniprot id and second file contains uniprot ID with their corresponding family. My aim or I am trying to create new file. So from file1, I want compare all Id with file2's Id. If equal then they should print … | |
Hi ALL, Can any one suggest me on below requirements with less memory and cpu time. I have used below code and seems it is not efficient for huge files. fgrep -v -f file2 file1 >file3 This will output file3 containing all lines from file1 that are not in file2. … | |
How can i find the mac address of all computers and which loop i used for [CODE][B]#!/usr/bin/perl $file ="/etc/sysconfig/network-scripts/ifcfg-eth0"; open (MYFILE, "$file"); $file1 = <MYFILE>; while ($file1 ne "") { chomp ($file1); $file1 = <MYFILE>; for ($values = 0; $values < 5; $values++) { if ($file1 =~ /HWADDR/){ @values = … | |
Hello, when some submits this form its get send to my email. If the picture or attachment has a space in it ( ex: tom file.docx) the hyperlink gets messed up. I attach a picture of it below. Thank you so much! [CODE=php]<?php if(isset($_POST['email'])) { $email_to = "talent@itarep.com"; function died($error) … | |
Hi all, I am trying to make the script to sort the data at the max to min at the decided position. [CODE] in put : 10 0 20 0 24 0 26 0 34 0 39 0 49 0 55 0 56 0 65 0 65 0[/CODE] [CODE]I hope … | |
I'm using the printf function to display some textual information. It is possible that the string may contain different symbols such as $#%^&* somewhere within the text. I know that to handle the % that I need to use a %% to make the string evaluate correctly. for example: [CODE] … | |
I am trying do it the script to put out data after compare two file. I make the script to do that but the result was not enough. in put 1: [CODE]Num posi base 1 14183 ATC 2 26657 GGG 3 49403 GCA 4 57244 GCA 5 58068 GCT 6 … | |
Hi all, I am try to make the script to tranlate DNA to protein. I found the script in internet, and I tried to mix that script to make the result in the colums but I was not seccessful. Would you please show me solve this problems. For Ex: [CODE]I … | |
Please look into the code and help me ... [CODE] dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_no" dbInsert.Parameters.Item("mr_no").Value = 1 dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_date" dbInsert.Parameters.Item("mr_date").Value = DateTimePicker1.Value dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "item_code" dbInsert.Parameters.Item("item_code").Value = txtItemcode.Text dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "qty" dbInsert.Parameters.Item("qty").Value = txtQty.Text dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_status" dbInsert.Parameters.Item("mr_status").Value = "N" dbInsert.CommandText = "insert into mr_head values ('MBBK7490','2',DateTimePicker1.VALUE,txt_itemcode.text,txtQty.text,'N',NULL);" dbInsert.CommandType = CommandType.Text … | |
Hi, I am facing issue while connecting to sqlplus in perl script. Following is my perl script code. It didn't execute properly & it take too much time to run very short sql. #!/usr/bin/perl $sql_return = `sqlplus -s user/password << SQL_END set linesize 80 set pagesize 10 set heading off … | |
Hi, suppose I have a file named [B]first.txt[/B] from which I want to read. Suppose the text file looks like this: [quote] I like you. I feel your soul. [/quote] Now if I use this: [code] open cool, "< first.txt"; print <cool>; [/code] the entire file content is printed, but … | |
Hello, Could you please help me in following scenario in Perl scripting? I want to compare two text files & change the charter at the position. Output of this comparision in third file with flags C-CHANGE, N-SAME at the end of line. [CODE]IN PUT1: Posi 3 ATG 2 ACT 1 … | |
Hi everybody, I am the admin of a small website running IIS 6 and i just found out that it may be vulnerable.So i used this script to see if it takes my website down. [CODE]# IIS 6.0 ASP DoS PoC # usage: perl IISdos.pl <host> <asp page> use IO::Socket; … | |
I'm kind of a newb to javascript, so bear with me. I'm working on a site for a college javascript class, but I want to do a little bit more with my class site. I have a very simple slideshow set up( as a pop-up), but I want the images … | |
Hello, Can someone tell me the equivalent perl script/command for following unix command: sort -t"|" -k1,1 -T '/temp' input.txt > output.txt Here, I want mention different physical directory for temprary sort file storage. like - T in unix shell command. In other word, How to mention different workspace directory in … | |
Hi all. Can i open the web page through perl? I get URL as a result in my perl code. but, ofcourse, it is displayed in command prompt as i'm using windows. I need that web page to be displayed directly. can i do it? i hope somebody can help … |
The End.