News for hackers. Stuff that matters.
Re:Chrome 55 uses 30% less memory than 54 by niij on Saturday December 03, 2016 @03:21PM (#13097327)
They mentioned that weather.com crashed their website. Their website is always extremely slow for me as well. It's ridiculous how poorly designed their website can be for such a simple service.
Re:Chrome 55 uses 30% less memory than 54 by sillysaurus3 on Saturday December 03, 2016 @03:30PM (#13097370)
You can run `curl wttr.in` to get your local weather and 3-day forecast.

Or just go to http://wttr.in/

Re:Chrome 55 uses 30% less memory than 54 by kbenson on Saturday December 03, 2016 @04:34PM (#13097610)
Hmm. "Weather for City: Santa Rosa, Philippines"

That's the wrong Santa Rosa, in the wrong country. There's an interesting bug in there somewhere.

Re:Chrome 55 uses 30% less memory than 54 by SiVal on Saturday December 03, 2016 @05:24PM (#13097797)
TO THE DEVELOPER, FWIW: I'm also in California and it thinks I'm in the Philippines in a town with the same name as one a few miles from here. I assume you use IP to find town, country; throw away country; look up town in a list with country names in alphabetical order (Philippines < United States)

Note that even if you get the country right it won't be enough, because there is a "Springfield" in each of the 50 states. You'll have to get keep all of the location info you get from the IP lookup, not throw part of it away and attempt to recover it.

Re:Chrome 55 uses 30% less memory than 54 by crooked-v on Saturday December 03, 2016 @05:40PM (#13097848)
> Note that even if you get the country right it won't be enough, because there is a "Springfield" in each of the 50 states.

D'oh!

Re:Chrome 55 uses 30% less memory than 54 by SiVal on Saturday December 03, 2016 @08:40PM (#13098357)
Yes, and here's another d'oh: I learned long ago, years before The Simpson's show existed, that there was a Springfield in every state. The show's creators may have heard the same urban legend back in those days before we had that oracle called Google. But, for the first time in all these years, I just went off to check out this claim for myself, and I'm wrong. There is no Springfield, Utah, or Alaska, or North Carolina, for example, and I find no evidence there ever was one in Utah (I didn't check the others), so it's not something that WAS true when I was a kid but no longer is. I don't think it was ever true.

D'oh! (All these years.... How many other things do I "know" that aren't true...?)

Re:Chrome 55 uses 30% less memory than 54 by sillysaurus3 on Saturday December 03, 2016 @05:31PM (#13097815)
As a workaround, you can use your zip code instead. E.g. http://wttr.in/90401
Re:Chrome 55 uses 30% less memory than 54 by kuschku on Saturday December 03, 2016 @06:51PM (#13098068)
Doesn’t work with German ZIP codes: http://wttr.in/24107 or ISO ZIP codes: http://wttr.in/D-24107
Re:Chrome 55 uses 30% less memory than 54 by nkkollaw on Saturday December 03, 2016 @07:31PM (#13098195)
Why would it work with German zip codes? Zip codes are not universal...
Re:Chrome 55 uses 30% less memory than 54 by saghm on Saturday December 03, 2016 @08:10PM (#13098280)
Because there are people in Germany who want to get the weather?
Re:Chrome 55 uses 30% less memory than 54 by david-given on Sunday December 04, 2016 @05:09AM (#13099464)
There are countries which don't have zip codes.

Turns out that when I'm in the US, I can't use my credit card to order takeaway food online, because they universally require zip code validation, and neither the postcode for my Swiss credit card (8047) or my UK credit card (IV548JS) (both codes modified to protect the guilty) pass the very simple minded zip code validation.

...and Ireland only had them at all since 2015.

Re:Chrome 55 uses 30% less memory than 54 by swiley on Saturday December 03, 2016 @10:37PM (#13098672)
I think his point is that there would be collisions with every other country so it could only concivably work with one countries zip codes.
Re:Chrome 55 uses 30% less memory than 54 by ygra on Sunday December 04, 2016 @05:08AM (#13099461)
Well, the country prefix solves the collision problem, after which it's just a data problem.
Re:Chrome 55 uses 30% less memory than 54 by nkkollaw on Sunday December 04, 2016 @03:39AM (#13099300)
Thank you.
Re:Chrome 55 uses 30% less memory than 54 by Oletros on Sunday December 04, 2016 @02:27AM (#13099162)
Why would it work with USA zip codes? Zip codes are not universal...
Re:Chrome 55 uses 30% less memory than 54 by nkkollaw on Sunday December 04, 2016 @03:40AM (#13099301)
Because it's programmed for US zip codes.

So, you can't just enter any zip code in there. There would be clashes since zip codes aren't unique across countries.

Re:Chrome 55 uses 30% less memory than 54 by haar on Sunday December 04, 2016 @05:11AM (#13099468)
Just to be a pedant, that's not what was stated: "As a workaround, you can use your zip code instead.".

Your assumption is that zip code == "U.S zip code" which is a fair assumption if the site only supports the U.S. Other comments on the thread shows the site does support locations outside of the U.S. It is therefore also a fair assumption that it _might_ support similar functionality outside the U.S., kuschku simply tested said assumption and stated that it was incorrect so that other readers were aware.

Re:Chrome 55 uses 30% less memory than 54 by kuschku on Sunday December 04, 2016 @05:49AM (#13099536)
For that use case there's the ISO standard for ZIP codes, as used in paper mail:

Short Country prefix (same as on international car ID plates), then a minus, then the ZIP code.

So, for Germany, D-24107 would be one such code.

Yet, it doesn't handle that either.

Re:Chrome 55 uses 30% less memory than 54 by notatoad on Saturday December 03, 2016 @08:39PM (#13098354)
you can also use basic text search, which works internationally: http://wttr.in/santa%20rosa,%20ca
Re:Chrome 55 uses 30% less memory than 54 by abrowne on Saturday December 03, 2016 @05:48PM (#13097873)
I can confirm that it does correctly give me Minneapolis, MN, not Minneapolis, KS, which is what the MacOS Dashboard weather widget would display around 10.5 or so if you entered "Minneapolis".
Re:Chrome 55 uses 30% less memory than 54 by ChoGGi on Saturday December 03, 2016 @05:23PM (#13097794)
It accepts airport codes, so you can use the one for Sonoma County Airport (assuming it's close by enough).

http://wttr.in/sts

Re:Chrome 55 uses 30% less memory than 54 by QUFB on Saturday December 03, 2016 @07:28PM (#13098183)
I'm definitely not in Santa Clara, Cuba...
Re:Chrome 55 uses 30% less memory than 54 by scottmf on Saturday December 03, 2016 @05:04PM (#13097735)
> Get city by IP address

> Search weather for city

Re:Chrome 55 uses 30% less memory than 54 by esrauch on Sunday December 04, 2016 @05:15PM (#13102071)
I get the same thing: shows a city in a different country with the same name.
Re:Chrome 55 uses 30% less memory than 54 by Cyph0n on Saturday December 03, 2016 @04:07PM (#13097489)
Can we get the temperature in degC?
Re:Chrome 55 uses 30% less memory than 54 by mmozeiko on Saturday December 03, 2016 @04:11PM (#13097507)
Re:Chrome 55 uses 30% less memory than 54 by Cyph0n on Saturday December 03, 2016 @04:14PM (#13097525)
Awesome, thanks! It's hard being a metric user in the US :P
Re:Chrome 55 uses 30% less memory than 54 by majewsky on Monday December 05, 2016 @05:18AM (#13104512)
It seems to do region detection, though. `curl wttr.in/dresden` gives me celsius scale and km/h wind speeds.
Re:Chrome 55 uses 30% less memory than 54 by Cyph0n on Monday December 05, 2016 @06:14PM (#13110768)
Yes, but I'm located in the US, so I get Fahrenheit.
Re:Chrome 55 uses 30% less memory than 54 by vikrantvm on Saturday December 03, 2016 @06:19PM (#13097970)
This is great. Hope the dev fixes location detection! Weather from the terminal, woot
Re:Chrome 55 uses 30% less memory than 54 by Fiahil on Tuesday December 06, 2016 @06:08PM (#13119074)
As mentioned above, you can explicitly specify cities and locations in multiple ways. Chances are, it uses the GMap api (or similar), so you can input pretty much anything resembling a location description. Not sure there is something to fix :)
Re:Chrome 55 uses 30% less memory than 54 by majewsky on Monday December 05, 2016 @05:19AM (#13104514)
Location detection is notoriously hard. For example, my auto-detected location is 500 km off because of the corporate HTTP proxy.
Re:Chrome 55 uses 30% less memory than 54 by BatFastard on Saturday December 03, 2016 @03:36PM (#13097387)
Awesome! Kudos. Now if they could sneak in an animated weather map...
Re:Chrome 55 uses 30% less memory than 54 by niij on Saturday December 03, 2016 @04:43PM (#13097654)
Thanks for the helpful link!
Re:Chrome 55 uses 30% less memory than 54 by fsasieta on Saturday December 03, 2016 @03:36PM (#13097391)
you have changed my life
Re:Chrome 55 uses 30% less memory than 54 by kfrzcode on Saturday December 03, 2016 @03:36PM (#13097384)
I love this webservice. Nothing else to add, just my love.
Re:Chrome 55 uses 30% less memory than 54 by ausjke on Saturday December 03, 2016 @03:34PM (#13097380)
tried that, how handy!
Re:Chrome 55 uses 30% less memory than 54 by robertcorey on Saturday December 03, 2016 @07:19PM (#13098155)
neat, thanks for the tip.
Re:Chrome 55 uses 30% less memory than 54 by hackuser on Saturday December 03, 2016 @05:19PM (#13097778)
Try Weather Underground: Their graph is the most impressive, useful visualization of weather data around, IME. For example:

https://www.wunderground.com/cgi-bin/findweather/getForecast...

Note you can click the controls at the top right of the graph and add/remove elements. The graph is a bit heavy, but that may be necessary to generate the visualization.

Re:Chrome 55 uses 30% less memory than 54 by dattaway on Saturday December 03, 2016 @09:53PM (#13098573)
Weather Underground also has a lightweight telnet service. Telnet to rainmaker.wunderground.com and enjoy the super fast ascii text interface.
Re:Chrome 55 uses 30% less memory than 54 by BatFastard on Saturday December 03, 2016 @05:54PM (#13097893)
What I didn't realize was that weather underground is now owned by the weather channel :(
Re:Chrome 55 uses 30% less memory than 54 by bearcobra on Saturday December 03, 2016 @06:11PM (#13097945)
Technically it's owned by The Weather Company which in turn is owned by IBM. The TV channel is now a separate entity. I still find their forecasts to be more reliable and the user weather station data is great
Re:Chrome 55 uses 30% less memory than 54 by radicalbyte on Saturday December 03, 2016 @03:50PM (#13097434)
1. Install uMatrix. 2. Allow *.mapbox.com on weather.com 3. Enjoy a fast and useful site.

Same trick works for many sites, particularly old media (TV, newspapers, content spam etc).

Re:Chrome 55 uses 30% less memory than 54 by codegeek on Saturday December 03, 2016 @04:00PM (#13097467)
Also, there is https://weather.gov
Re:Chrome 55 uses 30% less memory than 54 by Cyph0n on Saturday December 03, 2016 @04:08PM (#13097494)
It does not seem to support TLS, so: http://weather.gov
Re:Chrome 55 uses 30% less memory than 54 by codehusker on Saturday December 03, 2016 @04:15PM (#13097527)
Heh, the cert includes their Zabbix instance, but not the bare domain.

https://www.weather.gov but mixed content

Re:Chrome 55 uses 30% less memory than 54 by Cyph0n on Saturday December 03, 2016 @04:19PM (#13097544)
My bad then, nice catch!
Re:Chrome 55 uses 30% less memory than 54 by abrowne on Saturday December 03, 2016 @05:56PM (#13097897)
Even better, weather.gov/ZIP e.g. http://weather.gov/55455
Re:Chrome 55 uses 30% less memory than 54 by oxide on Saturday December 03, 2016 @03:29PM (#13097365)
I use weather.gov instead for precisely this reason.
Re:Chrome 55 uses 30% less memory than 54 by wfunction on Saturday December 03, 2016 @03:32PM (#13097375)
It doesn't even have sunrise/sunset? Or am I just missing it? (I use Weather Underground.)
Re:Chrome 55 uses 30% less memory than 54 by ausjke on Saturday December 03, 2016 @03:32PM (#13097378)
weather.com uses drupal7 + apache2 + ubuntu + angularjs, not sure why it is that slow, I use weather.com once a while just fine though.
Re:Chrome 55 uses 30% less memory than 54 by true_religion on Saturday December 03, 2016 @04:10PM (#13097506)
It is only because of AngularJS + Ads.

This is a slow down caused by browser rendering/parsing/JS execution. I'm not sure what the server operating system would have to do with it.

Re:Chrome 55 uses 30% less memory than 54 by mschuster91 on Saturday December 03, 2016 @08:46PM (#13098375)
Drupal can be a real PITA to properly set up with caching. If you're running anything above 10 req/s your server is going to melt without. Oh, and it's always worth a try to swap the default search for Elasticsearch, Solr or any other external engine.

That AngularJS is a slow piece of ... is another part. I coded up a simple Twitter client using Cordova with Angular, scrapped and rebuilt it in jQuery with Cordova (was a test if one can actually build a backendless Twitter app). Such speed, many awesome.

I guess many of the "hipster" JS devs use the latest, max-spec macbook/iphone only and totally ignore the rest of ordinary PCs/average Android phone, or they wouldn't dare to touch Angular and friends even with a pole.

Source: operating a couple Drupal instances.

Re:Chrome 55 uses 30% less memory than 54 by ausjke on Saturday December 03, 2016 @09:27PM (#13098500)
Drupal 8 pretty much killed my love for drupal, I'm now switching to wordpress, though I miss drupal's book module in particular.