2,977 Topics
![]() | |
I'm looking for sample code (AJAX, ASP, JAVA) that allows web users to input questions from a form and when submitted it calls a document (Word, PDF, HTML) and inputs the users answers in the appropriate location of the document and allows them to print the document. Is this possible … | |
Hello, I have a script to read remote file. The script goes as follows, [code=Perl] #!C:\Perl\bin\perl.exe $remote= '\\\remotehost\remotedir\remotefile.jml'; open(fp, $remote) or die ("could not open the file"); print while(<fp>); close(fp);[/code] This script runs fine on my windows machine. But the same script when I run in UNIX, after changing the … | |
;) Hi guys.... I am a beginner at Perl, and i have some problemes I wanna solve!! I hope u can help me. the exercise is: Make a program that counts the number of positive and negative numbers in a column. Also count the zeroes in the column, if there … | |
Hey everyone, I'm using the php function [URL="http://us2.php.net/nl2br"][COLOR="Blue"]nl2br[/COLOR][COLOR="SeaGreen"]()[/COLOR][/URL] to display some characters on a page from a textarea. I'm storing the text into the database exactly as it is entered, and then only using the [URL="http://us2.php.net/nl2br"][COLOR="blue"]nl2br[/COLOR][COLOR="seagreen"]()[/COLOR][/URL] when displaying it on a page. Should I do it the other way around? … | |
Does any of you know how to get the pathname of the perl script that is being executed? Say it is located in [inlinecode]/home/wolfpack/perl/[/inlinecode] I run it from [inlinecode]/home/wolfpack[/inlinecode] by giving the absolute path name like, [inlinecode]/home/wolfpack/perl/scriptname [arguments][/inlinecode] I want to get the path [inlinecode]/home/wolfpack/perl[/inlinecode] so that I can use … | |
When someone logs out of our site, I want the previous page to not be accessible (or any of the other pages.) So far, when a user clicks the logout button on our site, I do the following: 1) I write to a file 2) erase the session cookie 3) … | |
hi, Could any one please tell me How to disable a hyperlink or a textbox or a command button which is in page 2 from page 1? Suppose i have an admin page and a userpage.I have a details page which holds add,delete,view and search links or buttons or textboxes. … | |
Hello. Random hyperlinks have been appearing in some of my Excel spreadsheets. I've run virus scans, spyware scans (including AVG AntiSpyware) and they've come out clean. I've also cleaned my registry with Eusing Free Registry Cleaner. Here is my Hijack this log. Please let me know if you see any … | |
Is there a standard way to make constants defined using the [inlinecode]use constant[/inlinecode] pragma available to all of the packages that are use'd from an executed file? Or even better, to make the constants defined in a package available to other packages that use that package? It seems like anything … | |
I just don't know what to do to end the damn loops!?! [code] #!/usr/bin/perl -w use strict; print "Welcome to Techno-Bank 3000.\n"; print "Enter command => "; my $input = <STDIN>; chomp $input; my ($command, $user, $amount) = split / /, $input; my %accounts = ( $user => $amount ); … | |
I have executed a unix command whose output has a number of columns separated by whitespaces.How to extract a column from it and put it into an array using Perl. | |
Alot of (mainly linux/perl/etc) documentation, websites and comments use this quoting style: [code] Type `hello' to invoke `system shutdown'. [/code] Is there any particular reason to start the quoted block with a backtick (`) and end with a single quote (') ? This isn't really a support question, I'm just … | |
Hello everyone. I'm still working on that forum system I mentioned a bit ago (perlBB). Hopefully it'll be ready for Christmas :p . However, I ran into a strange problem while I was re-writing parts the two functions below. [code=perl]sub enter_post { my(@field, $input, $offset1, $offset2, $n, $name, $field_length, $flag_guest, … | |
[COLOR=black]I am total novice, but I must solve this problem very quick and need help. Problem:I’ve been given a file 1 2 15 1 3 16 2 3 20 and so on…First two values of the input file represents graph nodes and the third one is distance between them. I … | |
Hi friends, I am using Perl Tk for a GUI application. It uses a telnet part wherin I need to login to a unix machine, execute a command and process the result. The code is as follows : my $result = $t->cmd(("grep - $filename.txt~ | wc -l | awk '{print … | |
Hi Guys! I've attached here the screenshot i've made for my friends program. I need to properly understand these offsets so i could know the right unlock code from the combination of the username and challenge string produced by typing the username. Thanks! Need to know how! please help me! … | |
Hi all, I need to set some values on web page using perl. but the web page is created in jsp. for setting the values i need to click on a gif image which has got HREF to one javascript api. i need to invoke this from perl for setting … | |
Hello everyone. Is it allowed to have a "use" statement inside an eval that is compiled separately to the enclosing program (i.e. eval EXPR, not eval BLOCK). The reason I want to do this is, I have modules of code that I don't want to be compiled every time my … | |
I was wondering whether anyone else has experienced this. When a script I am working on got above a certain size, the line numbers quoted in the compile and run time error messages started to be inaccurate. The line numbers now seem to always be before where the error actually … ![]() | |
here is the asp code: [Response.Redirect("[URL]http://www.yahoo.com[/URL]")] what i am trying to do is loop through my database and send variables through a querystring to the same target address. but if my code redirects to the target url it will stop at the first record before it gets to the next. … | |
I am quite new to Perl, and have not had much luck finding a cause for some seemingly-strange behavior of a Perl script I am playing around with. I am running Perl 5.8.6 on OS X 10.4.8. I have done some perusing, but I'm not quite sure how to describe … | |
Hi Everyone, I'm in a strange place in the beginning of 2007. I have to change careers from what I've been doing which was PHP, PERL, Javascript, mySQL systems on Linux for the Internet to doing ASP.NET, C#, etc. Its what everyone wants where I'm from and after working with … | |
Is anyone familiar with lisp programming? If so can you please respond back. I have a program due and it deals with lisp type checking! I would really appreciate it. ;) | |
Hi, im running this website,,,worked so hard on it for about 5 months straight. i got it finally up and runnin, and the first 3 months went smooth. all of a sudden my MySQL DB drops...every table inside...just GONE. my site went down and error messages were received throughout my … | |
I have a problem with php and checkbox. Can someone help me with it? I want to be able to compute values of a checkbox that is when the checkboxes are checked using php. example <input type="checkbox" name="course" value="¢30 /> JAVA <input type="checkbox" name="course" value="¢100 /> C <input type="checkbox" name="course" … | |
Hello everyone. I decided to try out XAMPP ( [url]http://www.apachefriends.org/en/xampp[/url] ), which contains a pre configured distribution of Apache 2.2.3. My intention is to use it for some local testing of a web application that uses Perl scripts. I got Apache running easily enough and it runs the sample Perl … | |
![]() | I've been looking for the anwer for almost 2 days now, odds are I'm looking in the wrong place but I can't find it. Is there a script I can write to get perl to print a command to the command line and then "press enter" to execute it? |
So How do you format phone numbers and things like that in C#? In perl it would be a pretty simple regular expression to format 4445556666 into (444)-555-6666 but I haven't easily found how to do that with C# in Visual Studio 2005 yet. Learning is fun. :confused: | |
Howdy, My normal programming haunt is CBoard, but it is down at the moment and so I decided I should sign up here and check this place out since I have heard good things about Daniweb. I took the servey thing from above and it is pasted below. Name: Christopher … | |
I wrote a code in C# which contains a datagrid which is having a hyperlink and we want when we click on this hyperlink it will redirect to another page and select all the selected messages. How can i do this? | |
I'm a software developer who's making the career move from PHP, PERL, Javascript web stuff to doing the .NET stuff. I ran across DaniWeb on Google a couple of days ago. I'll probably be here for a loooooooong time. | |
I'm pretty new to C# programming and .NET programming however I have a great deal of experience with database & programming in the world of Unix,PHP,Perl, Javascript. I've been learning C# database programming with a WROX book but it doesn't tell you everything and unfortunately I need a little hand … | |
Hello everyone. I'm working on getting threads of replies to work in my forum system. I'm using this function: [code=perl] sub read_fields { my($offset1, $offset2, $offset3, $offset4, $this_offset, $result, $n, $dbase, $data, @field_name, @name_length, $num_fields, $m, $check, $check2, $primary_key, $action, @passed_array); ($offset1, $offset2, $result, $dbase, $num_fields, $m, $action, $primary_key, @passed_array) … | |
I lurked a long time, then finally registered a couple of months ago; then I lurked some more. But the time has come ... [B] HI! [/B]My name's Ken and I've been surgically attached to one or another computer since around 1979 when I bought my Bran' Spankin' New [B]Commodore-64[/B] … | |
![]() | I'm Trying to write a program that will automatically open a .exe file enter a piece of text in a specific textbok and then exectute itself. I'm new to perl and can't seem to find any of the answers in my books or online. I'm running Perl through the windows … ![]() |
First,, nice to meet you all and thank you.. I have a machine I built 2 years ago.. It runs fine until stressed, such as, trying to load software, or, play a game..The PC just shuts off..... I get a message saying overheat but I'm positive this is not happening.. … | |
There are so many spoof programs promoting the 'best marketing strategies' that it has become more of a joke than a real help. Many things we read about make out that one person can reasonably learn what is needed to achieve success and profits on the Internet. How many have … | |
:eek: I wrote a script which access my mails from outlook.But it suddenly pop's up a box which asks for allowing the access to the mails. I want to suppress that pop up window.How can I do it? Its very urgent please provide the reply urgently! Thanks in Advance. | |
Hello everyone. I was just wondering if it is OK to do this: [code=perl] if ($beer == $wine) {# Some code} elsif ($beer == $vodka) {} else {die("Oh dear! Neither condition satisfied!")} [/code] i.e. have an empty block attached to an if, elsif or else. It might sound like an … | |
I want to parse this expression PFolder=Personal Folders&SFolder=Inbox&Message=3 and want to extract Personal Folders from PFolder,Inbox from SFolder and 3 from Message,so that i can further use this things "Personal Folders,Inbox and 3"in the program. How can I do it? | |
Hello everyone. I always run Perl scripts on a web server with [code] #!/usr/bin/perl -T [/code] at the top (i.e. taint mode on). I try to do the same when testing scripts on my local machine and this often works fine. But somtimes (when running from the command line) I … | |
I am having a problem getting my "break" to work correctly in this program. Can anyone help me see what I am doing wrong? This is my program: [code]import string import math class Student: def __init__(self, name, hours, qpoints): self.name = name self.hours = float(hours) self.qpoints = float(qpoints) def getName(self): … | |
hello :cheesy: Im Carl, im a 25 yr old sys admin for a hosting company. I develop in PHP and BASH. I can't do much perl tbh :sad: Found the site via a search term I did in google. I mostly use Linux, I know enough Windows to help out. … | |
![]() | Hi everyone! My name's Robbie and I'm a senior COSC student and I should be graduating in May. I'm 21 yrs old and live in Bel Air, MD I currently work for LMI government consulting and will be doing some .NET development soon. Personally, I'm a big fan of java, … |
Hi all, I had developed an Ip scanner with perl and inline c++. The forum was really useful for me..So thought I will share it with you. [URL="http://www.sourceforge.net/projects/computeip"][COLOR=#0000ff]www.sourceforge.net/projects/computeip[/COLOR][/URL] [COLOR=#0000ff][/COLOR] thanks, karthika. | |
Hi guys, This issue is driving me crazy. I have an assembled unit and the CD-ROM just wont load anything. Everytime i load a CD/DVD it says the following error consistently CDStart.Exe - Application Error The application failed to initialize properly (0xc0000006). THe CDdrive is HL-DT-ST CD-RW GCE-8481B and i … | |
I m new to perl and i have to develop such webserice which can use the perl script via html so that the source of the perl file cannot be displayed only the output is displayed. | |
Hello everyone. I've been working on a web application (written in Perl) called perlBB for about 11 weeks ( [url]http://sourceforge.net/projects/perlbb[/url] ). I'm getting close to finishing an early version. However, suitable testing methods have become a bit of an "issue" for me on this project. So far I've been testing … | |
[b]Microsoft's Monopoly[/b] At this time, Microsoft owns an operating system monopoly with its line of Windows operating systems. UNIX, however, is an alternate OS mainly used by ... er, computer geeks. It's been out for many years and features a small kernel with all programs built around the kernel. This … | |
The End.