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 strongm 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: *

  1. m4trix

    find function question

    excellent, thx hoinz - I tried that too, but I put the ! right next to the -name and it didn't work. off by a space!
  2. m4trix

    find function question

    How do you exclude a file from a find? for example, I want to find all files in a directory except for the file "xxxx" (if it exists)
  3. m4trix

    prevent accidental closure of a window

    billyray or jontymc, mind giving an example of how I could do that?
  4. m4trix

    prevent accidental closure of a window

    lol BillyRay, that was my arguement too. Jonty, that was also an option- saving data 'on the fly'. I'm not sure what the best method to do this would be though. Perhaps I could add a mysql table to contain temporary data, and every time a form field is unfocused it saves the data. Then if...
  5. m4trix

    prevent accidental closure of a window

    hmm.. I think it is too. Most users will be on macs, using either safari or mac IE (which is garbage and likely wont support it either)
  6. m4trix

    prevent accidental closure of a window

    I'm wondering what the best way to prevent users from accidentally closing the current window, or even navigating away from the page. The page in question is a data entry page, and since people tend to accidentally close windows, I want to add a script to pop up a confirmation box or something...
  7. m4trix

    shift array, element deleted but then comes back! huh?

    I'm hoping someone can explain why an array with one element, when 'shifted' in a subroutine continues to contain one element once the subroutine finishes. Consider the following: use Data::Dumper; @arrayone = [10, [1, 2, 3]]; @arraytwo = (); $number = 10; print "OUTSIDE...
  8. m4trix

    arg! somewhat complicated mixed datastructures!

    excellent. thanks a lot guys
  9. m4trix

    arg! somewhat complicated mixed datastructures!

    I'm sure this is simple, but I can't seem to align my thoughts right. I have a file that I'm reading into an array with a series of values. For the sake of arguement we'll say there's three numbers, then any number of other numbers. I want to store the first three numbers separately, and then...
  10. m4trix

    "Modification of a read-only value" Error. Why?

    if I have this code (using on a mysql database): while (my $row = $sth->fetchrow_arrayref) { foreach (@$row) { $_ = "NULL" unless defined } my (@end) = splice(@$row, -2); print join (", ",@$row)." - ".join(", ",@end)."\n"; } it will print the first row as it should, then it gives a...
  11. m4trix

    help forming a query! :)

    EDIT: oops, bit off, here we go: "SELECT DISTINCT `staffid` FROM `staff` WHERE NOT EXISTS (SELECT * FROM `users` WHERE users.`staffid` = staff.`staffid`) AND `has_user` = '1';
  12. m4trix

    help forming a query! :)

    I found a solution... It required upgrading my mysql DB from 4.0 to 4.1 - but here it is: "SELECT staffid FROM staff s WHERE NOT EXISTS (SELECT u.staffid FROM users u WHERE u.staffid = s.staffid) AND s.has_user='1'" brilliant
  13. m4trix

    help forming a query! :)

    Ok, here's the set-up. I have two tables, for simplicty, we'll say users and staff the important fields are users.userid users.staffid and staff.staffid staff.has_user (enum('0','1')) All users must have an associated staff id (hence the users.staffid) but not all staff needs an associated...
  14. m4trix

    MSN client in perl

    oh, PS - I mean MSN Messenger client... I'm simply looking for a way to change my nickname through a perl script instead of through the messenger interface... No real reason why.. just something to do
  15. m4trix

    MSN client in perl

    Anyone seen/have a working version of one? I found a couple modules, but they don't work. I think they may be outdated, but I'm not sure.
  16. m4trix

    complicated array sorting

    P.S. If anyone can think of a better way of writing that OR MORE IMPORTANTLY, a better "smoothing" algorithm, please post it, even if it's just an idea. As it is, that works well, but it has flaws. For example, if there is an even number of columns, the middle column (widthwise)...
  17. m4trix

    complicated array sorting

    I think my explanation confused you, or you left something out. Thanks for the try though. I ended up figuring out one way of doing it. It may not be terribly efficient, but it will serve for my purposes. I'll post it in case anyone is curious. Regarding the naming scheme - the purpose of...
  18. m4trix

    complicated array sorting

    This isn't as hard as I think it is - but I'm just not thinking right at the moment. Ok, I'm having trouble describing what I need. so I'll give you an example. Sorry if it's hard to understand. say I have an array of numbers: (15,5,25,10,20) the percentage of each number can be represented...
  19. m4trix

    cgi scripts and caching (and also location redirects)

    yeah I know. I've talked to him about it, he agrees, but both of us are too lazy to go comparing settings between the two machines :P I'm sure we'll figure it out. Thanks for your help
  20. m4trix

    cgi scripts and caching (and also location redirects)

    Paul, 1) he is actually clicking the "back" button in the browser. I don't know if it matters, but it's a mac running MacOS 9.1 I believe, and IE 5.5 (mac version obviously). But I've tried it on other macs with the same setup and it works fine. It must be settings he has made to his...

Part and Inventory Search

Back
Top