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 SkipVought 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. bardley

    Puzzling word count after removing tags

    Or, if you want to do it as it comes in from the file, $wc = 0; while (<XMLFILE>) { chomp; s!\s*</?.+?/?>\s*!!g; if (/\w/) { # quick sanity check for any non-whitespace character @words = split /\s+/; $wc += scalar @words; } } Also, I could be wrong, but I'm...
  2. bardley

    Net::Address::Ethernet

    Well, according to the documentation for that module, get_address returns ff:ff:ff:ff:ff:ff (your mac) if called in scalar context or (ff, ff, ff, ff, ff, ff) if called in list context. If you try to print it and don't see anything, you may want to check your $sMethod variable to see what...
  3. bardley

    Flat File w/ delimiters - Quick Question

    one other thing i noticed, you're chomping after you separate your line! not sure where the space would come from though. if all else fails, you may just have to resort to a good old $field[3] =~ s/\s+$// Brad Gunsalus bardley90@hotmail.com
  4. bardley

    Flat File w/ delimiters - Quick Question

    That may depend more on the comparison function you are using. for example: "23 " == 23 returns true, and 18 <= " 0 " returns false. gt, ge, lt, le, eq, ne are the string comparators >, >=, <, <=, =, != are the corresponding numeric comparators, which will do their best to convert...
  5. bardley

    Question regarding the FOR loop

    well, you can do for (reverse(1..5)) { print "$_\n"; } but I wouldn't do it for huge numbers of iterations. That code actually creates the list (1, 2, 3, 4, 5), reverses it, then does the loop for each member of the list. Creating a long array is a bad idea; creating a long array and...
  6. bardley

    make div visible after submit and back button

    I would think the quick answer would be not to have the user hit the back button, but either provide a link back to the previous page or redirect them automatically. Either way, the form-handler page should be able to tell what div was visible by the input it gets (the radios), and it can pass...
  7. bardley

    force form to use get

    Acutally, if you're really dedicated to building a bookmark to this page with your filters already active, you could try creating a local html page on your machine that contains the appropriate form variables and posts to his page. Then to view the page, simply open that local page (you can...
  8. bardley

    a for loop problem

    if all you want to do is list a count, then you might try a query that does that for you. Something like: SELECT gall_sections.sec_id, count(*) as numalbs FROM gall_sections, gall_albums WHERE gall_sections.sec_id = gall_albums.sec_id GROUP BY gall_sections.sec_id Then you would just...
  9. bardley

    reboot?

    Is it possible/advisable to cause a linux system to reboot from inside a c++ program? Are there other (perhaps more stable) methods of doing this? Brad Gunsalus bardley90@hotmail.com
  10. bardley

    deleting lobs in 8i

    Hey all, I am not even remotely a DBA (this is a good thing, trust me), but I do end up "helping out" every once in a while. My understanding of redo logs tells me that when you perform any insert/update/delete, it keeps a log of whatever data is inserted/updated/deleted so you can restore...
  11. bardley

    what does a brother have to do for xml???

    Was trying to avoid that (being beta and all), but I guess it's a better fit than messing with the other stuff that I don't need. Thanks Brad Gunsalus bardley90@hotmail.com
  12. bardley

    what does a brother have to do for xml???

    All my code is hand-written in a text editor and I just need to have access to the xml-parsing classes. Apparently, even though the xml classes are listed in the J2SE documentation, the corresponding classes are not available just by installing J2SE. I saw on java.sun.com that they were...
  13. bardley

    using flyout menus with centered content

    Hey all. All the (simple) code I've seen for doing flyout (pulldown) menus uses an absolutely-positioned div section that displays when you mouseover, etc. But I have a slightly different situation. I have a page with centered content on which I'd like to use these cool menus. However, I...
  14. bardley

    onMouseOut transparent background

    Isn't it funny how 5 minutes after you make a post you keep playing with it and find the answer?? haha In case anyone is interested, the answer I found is: onMouseOut=&quot;this.style.background = false&quot; That seems to clear out any background you previously assigned to that cell. Brad...
  15. bardley

    onMouseOut transparent background

    Hey guys and gals. I have a table with a really cool background image. Each row is a menu button. I already have the cells highlight onMouseOver, but I need to know how to get the cell back to transparent onMouseOut. I'm familiar with the standard onMouseOut=&quot;this.style.backgroundColor...
  16. bardley

    Config Issue?

    Well, I guess it's not a big deal. I went ahead and built a client to consume the web service, and that works ok. The web service works fine. It just puzzles me that I can't see the response when I go to test it. No biggie. I'm not going to worry about it. Thanks Jason. Brad Gunsalus...
  17. bardley

    Config Issue?

    the entire class is: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Web; using System.Web.Services; namespace WebService3 { /// <summary> /// Summary description for Service1. /// </summary> public class...
  18. bardley

    Config Issue?

    I am trying to create a web service using Visual Studio .NET. So I create the default web service project, uncomment the &quot;hello world&quot; example, and compile. Then I go to http://localhost/WebService1/Service1.asmx in a browser. I get the cute little page that lists all the web...
  19. bardley

    submitting a form from another frame

    yeah, thanks pete, but your answer didn't help either. Brad Gunsalus bardley90@hotmail.com
  20. bardley

    submitting a form from another frame

    oops, left that out too. I was already doing that. Thanks, though. Any other ideas??? Brad Gunsalus bardley90@hotmail.com

Part and Inventory Search

Back
Top