Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Nutthick
  • Content: Threads
  • Order by date
  1. Nutthick

    Trouble passing an array to a module

    I'm trying to pass a couple of vars and an array to a perl module, but I can't seem to get the syntax correct. The module has the following code my ($new_name) = $_[0]; my ($new_desc) = $_[1]; my (@new_time) = $_[2]; print FILES "$new_name\n"; print FILES "$new_desc\n"; foreach my($tempTime)...
  2. Nutthick

    Perl Error, can anyone explain what this means?

    I'm getting an error in my Apache log whenever I call specific a script. The script uses the following notation to fire off a bash script; qx[SomeBashScript]; the error that keeps appearing is as follows file mcoputils.cc: line 238 (static std::string Arts::MCOPUtils::mcopDirectory())...
  3. Nutthick

    Pass checkbox array to a function

    I have a checkbox array that I need to pass to a function, but I'm having problems. My html for the array is as follows: <input name="chkRpt[]" type="checkbox" id="rptTue" value="2" /> <input name="chkRpt[]" type="checkbox" id="rptWed" value="3" /> <input name="chkRpt[]" type="checkbox"...
  4. Nutthick

    Perl Module not getting called

    I'm trying to place a subroutine in a perl module and although I have the syntax correct (nothing in the error log) the routine doesn't seem to be getting called. The key items from the main script are as follows; use filelog; update_log2("Filename", "Name"); obviously the call is within the...
  5. Nutthick

    I need to get MCookie, but I don't know which one

    I'm trying to get Mega Uploader to work, but I need MCookie installed. I've had a look on CPAN for modules called cookie, but there are loads of them. Does anyone know which one I should be using? A link to the Mega Uploader site is below http://www.raditha.com/megaupload/faq.php with the...
  6. Nutthick

    Getting the full path from a html form input

    I have a form to allow the user to get a file path, using <input name="myTrack" type="file" class="Upload" id="myTrack" size="75" /> Nothing special there. However, I need my javascript to be able to read the full path of the file, not just the filename that myTrack.value returns. Is there...
  7. Nutthick

    Modal Window Woes

    I'm struggling on this one. I have a modal window allowing the user to select a file top upload. When they click OK the file is uploaded, but I then need the modal window to close automatically, returning them back to the parent page. Is there a way to get perl to do this? I've tried putting...
  8. Nutthick

    How to run a javascript then trigger perl

    I have a web interface that uses javascript to create a modal window, allowing the user to enter new data. What I want to do is refresh the parent page with the newly added data, when the user clicks OK on the modal. The parent page is generated with perl, as it has to read the contents of a...
  9. Nutthick

    Why is this script hanging the webpage? it's short ;)

    I've survived with Perl so far, but I'm starting to stretch myself now, and my lack of knowledge is starting to let me down. I'm trying to produce a page that when the user clicks on a button, the script gets called, but the page doesn't change. Basically the script triggers an MP3 to play on...
  10. Nutthick

    Calling Linux Script from Perl

    I think this is probably a no-brainer for someone, but is it possible to call a linux script (*.sh) from Perl, and if so, how? Thanks
  11. Nutthick

    Play Sound Server Side

    Is there anyway to get perl to play a sound file on the server hosting the perl script. I'm looking at a cheap way to put together a PA system, and thought if the operator could http to the system, them click on a sound it would be a smal system. I'm just stuck on how to get it to play to...
  12. Nutthick

    Printing multiple copies on one page

    I have a piece of work that can fit 8 times onto a sheet of A4. The document size is defined as 60mm x 90mm. At the moment to fill a sheet of A4, I import it into Photoshop, flatten it and them copy it 8 times. Needless to say if I make a change I have to go through the whole process again...
  13. Nutthick

    Any problems with Pocket PC?

    I'm looking into switching over to sendmail, but was wondering if anyone has tried accessing it with a Pocket PC and Pocket Outlook. Pocket Outlook uses UIDL commands which have thrown my current server (Alt-N's MDaemon) a few times, locking up the account. Does anyone have any experiece or...
  14. Nutthick

    Reading from form, rock solid code now not working

    I've always used this code to read in data from my forms, but for some reason it's not working. The server is still fine and is working with other Perl scripts, it's just this one. Can anyone see what is wrong with it? #!/usr/bin/perl use CGI qw(:standard); print header(); # Read in the...
  15. Nutthick

    New Class file for each JFrame?

    I'm still finding my feet in Java and have com across a problem. I have written a class that checks data. Based on the data, one of two windows needs to popup for clarification. Do I need to create two more class files to allow me to show two different windows, or can they be coded into one...
  16. Nutthick

    Simple Layout Driving Me Nuts

    I'm trying to get this layout working, but I can't get the two 'Postcode' labels to align to the right. The wierd thing is I make a change to 'Postcode To' and it moves 'Postcode From' and vice versa. Simple mess up of names not that I can find? Can anyone tell me what I'm doing wrong? The...
  17. Nutthick

    Layout Managers

    I've been reading about layout managers and am still having trouble understanding the whole thing. I'm used to VB and giving an X/Y position plus a width and height. I understand (pretty much) why that isn't any good for cross platform use, but does anyone know of a good tutorial for the...
  18. Nutthick

    Can I write serial routines once for any platform?

    I'm still finding my feet in Java, but have a possible project requiring the use of a serial port. Speaking generally, would the routine I write to communicate with the serial port work across any OS (mainly Mac or PC) or is this just part of the Java hype, when actually there are OS quirks I...
  19. Nutthick

    VPN users can only open excel sheet as read only

    I have a shared folder containing a single excel sheet (there will be more). The sheet needs to be read only to everyone, but editable to certain users. I've set up the permissions to allow 'Everyone' to have 'Read & Execute', 'List Folder Contents' and 'Read' access and then specific users to...
  20. Nutthick

    Image Icons Not Found

    I'm trying to get icons to appear on my command buttons, but no matter where I put them on the HDD, they don't seem to appear. I though placing them in the same directories as the source must work but even nothing then. My code is as follows: import javax.swing.*; public class IconFrame...

Part and Inventory Search

Back
Top