Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1 wunderground.com codes missing leading slash sometimes

closed
David Slipp
None
5
2004-02-18
2003-09-03
No

Short note: This is probably the first patch I've
submitted for anything on any platform in 5 years.
It's just so easy to cvs-checkout a MacOSX project
from sf, and bring it up in project builder (blam!), I
decided to troubleshoot the overnight crash problem,
and figured out a problem with wunderground.com in
the process. A cvs diff -c, and here's your patch. I
hope you can apply it. I love MacOSX (and objective-C
:-)

Hacky hack to add a leading slash to a
wunderground.com 'code' when it doesn't exist. Also
added a touch of debugging code to tell what url is
being loaded. The right way to do this (probably) is to
fix the 'code ' when it's obtained originally, but this
fixes it so the URL is correct regardless.

Let me know if you have questions, or if I didn't
generate this diff properly.

Krishna Sethuraman

Discussion

  • debugging info for getting data from webiste

     
    Attachments
  • prepend slash if missing in wunderground 'code'

     
    Attachments
  • Rich Martin
    Rich Martin
    2003-09-23

    Logged In: YES
    user_id=198463

    Thanks for submitting some code, Krishna. Good catch on the
    leading slash bug. I coded the fix slightly differently, but
    our next version won't have THAT bug anymore. Help us find
    more! And thanks again.

     
  • David Slipp
    David Slipp
    2004-02-18

    • assigned_to: nobody --> dslipp
    • status: open --> closed