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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by azimuth0

  1. azimuth0

    Circular References in Ruby

    Just like that :) -- http://www.bitmuse.com/
  2. azimuth0

    STL replace

    well, I have an STL one-liner, but you probably aren't going to like it: replace_if(logger.begin(), logger.end(), compose2(logical_or<bool>(), bind2nd(equal_to<char>(), '\r'), bind2nd(equal_to<char>(), '\n')), ' '); --...
  3. azimuth0

    updating counter

    Try preceding your output with "\r" - on many systems it will cause the cursor to go back to the beginning of the line without making a line break. -- http://www.bitmuse.com/
  4. azimuth0

    displaying query results

    You've defined a function called getbatch, but you haven't actually called it. -- http://www.bitmuse.com/
  5. azimuth0

    C++ CGI

    You typically don't use CGI except when writing a web program. If you want to retrieve the output of the perl script, use the popen() function. It will allow you to access the output of the file with normal file operations: FILE *perl; char buf[1024]; int bytes; perl = popen("perl...
  6. azimuth0

    Ruby on Rail using Agile Web Dev. book

    Could you paste your database schema here? Enclose it in and for readability. - http://www.bitmuse.com/
  7. azimuth0

    Ruby on Rail using Agile Web Dev. book

    The YAML standard indicates that the tags and the date must be separated by a colon and a space ': '. In your password field, you only have a colon. Hope this helps. - http://www.bitmuse.com/
  8. azimuth0

    Problems connecting to a Win2k3 drive

    Don't use smbclient directly if you want to access a file share. Use mount -t smbfs. - http://www.bitmuse.com/
  9. azimuth0

    Delete Selection in Layer Underneath

    Click on the upper layer, and choose "Transparency > Alpha to selection" from the Layer menu. Then, click on the lower layer and select "Clear" from the Edit menu. That should do it for you. - http://www.bitmuse.com/
  10. azimuth0

    XFree86 using high CPU load

    This can happen when your system has run out of memory and starts using the swap space a lot. It's probably time to upgrade your RAM. - http://www.bitmuse.com/
  11. azimuth0

    Adding Time

    Please use and to type in code blocks. It makes reading it much nicer. localtime() takes an argument, which is a time expressed in seconds. So you can just add 45 minutes in seconds to the current time to get the answer you want: import time currenttime = time.time() print...
  12. azimuth0

    Robots using my contact forms!!!

    That's not been my experience. My blog has a comment form, and all it has for protection is a field and a sentence saying 'put the word elbow in this field'. It stopped every piece of comment spam dead. If it starts happening again, I'll just change the word. The trick is that the spammers...
  13. azimuth0

    Robots using my contact forms!!!

    They aren't just sending you spam. They're trying to exploit a common vulnerability in contact forms to send others spam using your form. Many times, simply detecting the exploit attempt and blocking it will be enough to halt the flow. Modify the code (or have someone else modify it) so that...
  14. azimuth0

    separating two websites at one IP address

    Honestly, I think you'll have to talk to your ISP about it. There aren't any slick undercover ways to have two domain names. Your ISP will likely be very cooperative with you, as it isn't really any big deal to them. - http://www.bitmuse.com/
  15. azimuth0

    separating two websites at one IP address

    Typically, your ISP must set it up in their apache configuration. If your ISP allows a cgi or PHP index page, you could write a script that would pick a different directory dependant on the request URI. - http://www.bitmuse.com/

Part and Inventory Search

Back
Top