skysight-inc/HackerNews huggingface dataset:
I've mostly seen graph theory algos in 'algorithm encyclopedias' aimed at ~300-level undergrads. But the best, cheapest place to start is probably Wikipedia. As you probably know, the most important result in graph theory (for coders!) is <http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm>. It takes a while to understand, but if you don't give up, you will get it. And learning it will give you all the exposure you need (reading list, etc) to comprehend graph theory more completely. Or at least, the parts that interest you.

I love graph theory too!
I'm guessing location refers to US zip codes. I'm living outside of the US, is there anyway to specify decimal lat long coordinates?
The Art of Surveillance
MySQL, No caching.
Looks like everyone's tuckered out. A full day of WWDC and PRISM and the Bitcoin story only has 4 comments after 2 hours. Get some rest, guys! ;)
Alternative name: Legacy code roulette :-). Not working with enough legacy code in your day job? Is your code lacking all those hacks that codebases accumulate only after having changed hands between tens of developers? Is your codebase documented too well? Use Legacy code roulette!
Like a rainbow farted all over my phone
If not for the specific nature of the second sentence, I would be intrigued that someone had gone through the trouble of writing a cursing troll-bot for HN. But since no Turing-test-passing bot would use such language, I just feel bad for the IRL friends of this miserable human troll.
You can turn the .git directory in a simple "shortcut"

To explain it briefly:

mv .git ../git-repo
echo "gitdir: ../git-repo" > .git
Has Apple legitimately killed any apps or companies announced at WWDC like this article suggests?
Some major military contractors (Raytheon I think is one, BAH another maybe) were looking to hire security experts to find vulnerabilities. There is a robust black market for 0days and I can't imagine the govt. isn't interested in playing. Especially after the cyber-terror war drum has been beating for a while and Chinese hackers scaring everyone's grandmas (most likely articles seeded by PR agencies in preparation for a major contract award to a military industrial contractor).
A damn good career. I hope he stays around, he inspires people everywhere.
Ditching Google Services for ownCloud on the Pi
What phone do you use, sir?
Why would you assume a local company is any more secure?
Having lived in both I see it this way:

(1) In China, if you do something the government doesn't like, they'll jail you for that. The reason for jailing is transparent, regardless of whether that reason is just and respects human rights.

(2) In the US, they will more or less follow due process, bending it as far as they can without getting a case thrown out for technical reasons. If they can't charge you with a crime for those actions you performed that they are unhappy about, they will find other charges that are more likely to stick no matter how unrelated. They will then use those charges to coerce you into a plea bargain.

When you have this much information on people, you can be jailed whenever someone doesn't like your actions, because they can find something that will stick or at least ruin your reputation and/or finances.

tl;dr; China has a perverse system. The US has a system that can be perverted.

“Show me the man and I’ll find you the crime.”
- Lavrentiy Beria, head of Joseph Stalin's secret police
Interesting hack:
"Casley styled himself His Majesty Prince Leonard I of Hutt to take advantage of the British Treason Act 1495; that a self-proclaimed monarch could not be guilty of any offence against the rightful ruler, and that anyone who interfered with that monarch's duties could be charged with treason"
Apple ][ and ][+ Shift-key modification
Hello, any1 in Singapore? :)
they can't even catch internal leaks
TotalFinder and to a lesser extent TotalSpaces have unlikely futures.

http://www.binaryage.com
I don't think the carrier would recognize the phone if you changed its IMEI
Doesn't Yahoo power the weather app, making that point meaningless?

Also, how does this make these companies "losers"? Competition is good for business, and the businesses that are in place and have current user bases will win out if they have better (or even on-par) products.
The details matter if you want to discuss whether what is happening now is appropriate or not. In fact, it's precisely half of what is required. The other half is an opinion on what ought to happen. Can we finally move the discussion toward what policies ought to be in place? If we skip over that discussion in our rage, the whole activity will have been for naught.
Location data is run through Google's geocoding API to return latitude/longitude. If you include something that uniquely identifies your location, it should work fine.
To be fair, it's a legitimate argument that "doing something about shootings" should be preferred to "doing something about terrorism" if they are likely to have a similar (proportional) effect and similar costs (in resources or liberty). It's still a few steps to get from there to "therefore we should ban guns", but he's not overtly saying that anyway.
Don't forget bandwidth costs. I could get about 100mbps to an external server. At $0.12/GB, 100mbps * 35 minutes = 25GB = $3. Most clicks won't cost you this much, but you should definitely keep an eye on this. Maybe set a bandwidth cap somehow.

Also, I noticed a public key in ~/.ssh/authorized_keys. Is that intentional or just part of how EC2 APIs work?

Other than that, great job. I would definitely use this service.
That's a great point, and I think it'd be especially useful to people with dumb phones who otherwise wouldn't have access to weather info on the go. Figured I'd start it here and then see if I can market it to those crowds.
I think that it is a bad idea because these measurements are not duodecimal by accident.

They are quantities and notions that we use every day, extremely frequently, and the mathematical properties of duodecimal bases versus decimal are useful in this context. I think this is why these things kinda evolve towards different bases.
Algorithms in Java, Part 5:Graph Algorithms - Robert Sedgewick
the focus on snowden is good, it shows how they cannot even catch an internal leak
Yeah, exactly. No where near where I live is even close to accepting Bitcoin. I'm in the south on the east coast.
and we could not catch this traitor with those 80 billions
http://www.ommageo.com/ - Takes 4 seconds
http://www.ommageo.com/js/function1.php?lati=&longi=&page=&k... - takes 10+ seconds

First request shouldn't take more than 300-400 ms.

and 2nd request shouldn't take more than 1-2 seconds.

Figure out why it takes that long. Use server side caching.
Any experts firmware / low level OS hackers can chime in? I imagine this would be Windows focused, then I guess all bets are off. MS would surely cooperate.

Now what about an Open Source OS. NSA and DoD loves them some RHEL (Redhat Enterprise Linux). Would they pay RHEL enough to produce binaries that have backdoors in them? Yeah, CentOS compiles the sources and that's cool. But most organizations buy RHEL for support.

Well I would say they would be very stupid to do that as if it ever comes out it will immediately destroy their product.

Now, just like PRISM will most likely damage US companies using or offering cloud services, any revelation of an exploit that _could_ have been developed with cooperation form manufacturer would destroy that company's business.
The switch to Bing may have some negative impact on google, but I doubt Apple's alternatives will take any toll on google maps or docs.
Cool. Maybe I'll go back and re-read it. I'm pretty sure I actually did read it back then, but I'm drawing a blank on the story.

That reminds me, I started For Whom The Bell Tolls in 12th grade and never got around to finishing it. I guess I need to revisit that as well, at some point.
Put them in deployment-specific configuration files.
As a Canadian I'm curious where I can search this information.
Fortunately, it can be fixed just by changing your passwords, which you should do from time to time anyway.
Sony PS4 launch livestream
There is all this talk about how he made a mistake going to Hong Kong because Hong Kong actually has a strong extradition treaty with the United States (although ultimately, mainland China can veto anything if it chooses to do so). Snowden did not make a mistake going to Hong Kong, he was exceptionally clever because most likely he knows more about NSA spying than just the domestic spying that he revealed. He probably knows details of international spying and how the U.S. manages to snoop on countries through technological means. By sitting in Hong Kong he is signaling that he could easily defect to the Chinese and reveal real damage to National Security or perhaps the U.S. will cut a deal with him to let him go home without much jail time. Also, at a time when the U.S. has been admonishing the Chinese for spying, this would be a propaganda gold mine for the Chinese as well as an intelligence windfall if he were to defect to their country. The U.S. would be seething if this were to happen but the Chinese know that the Americans are so tied up with business deals with China that they would not or could not do much to damage relations between the two countries. Snowden could have went to Iceland first but his trump card is sensitive security information that U.S. real adversaries would like to have. Iceland could not use that information.
The only plan is to send weather texts. If the costs of hosting become a burden, I might add a donation feature to the site. But I definitely don't plan on renting/selling/sharing/etc any of this info.
Ask HN: How do you populate a DB to demo your MVC project?
So, you need to demo (or QA) a version of your Django / Rails project. You run the test suite; all is good. You promote to your candidate branch and deploy on your staging server.

Now, do you:

* Load a bunch of fixtures?

* Use Factory Boy / Factory Girl (and if so, where is the code that makes it go?)?

* Grab data from your production DB (and if so, how?)?

* Create model instances manually as you go?

* Some other way?

It seems clear to me that fixtures are no longer the way. If the migration pace is anything but very slow, fixtures become the pain point of staging. Am I correct here?

My typical approach of late has been factory boy / girl, but this increases the amount of code to test and maintain quite substantially. Is there a better way?
Ahhh that's the event I couldn't think of. Yes the Aaron Swartz totally took over HN for a while.
I think the problem is that so much of this looks like other companies design language.

It's not bad, but I miss the iOS-ness. I thought this would have been a refinement and extension of their current style. A lot of their stuff is good. I don't think they needed such a massive overhaul.
Hmm, don't know the service you're referring to. Curious what you mean by "imaginative texts" though. Do they spice up the forecast language?
It didn't work but the design was more or less done.
Not likely. They have a nice little graphic on their website showing how much effort they put into the icons. Probably not going to change...
There is a pretty obscure feature in current and recent versions of iOS that I think is cooler: some brushed-metal appearing buttons, for example the one that appears to control the volume when you double-click the lock screen to bring up the music controller, subtly change their appearance as you tilt the phone, as if they are actually reflecting light. It probably remains subliminal for most users. I frankly find the parallax effect from the GIF in the linked article a little cheesy; it reminds me, strongly, of those cheap "3D" photographs with the plastic ridges on the surface.
>> The prisoners in the Panopticon could thus never know whether they were being surveilled, meaning that they have to, if they want to avoid running the risk of severe punishment, assume that they were being watched at all times.

That's what it feels like to me working in open cube areas.
I'm definitely not a fan of the new colors. Here are two screenshots I took of iOS 7 installed on my iPhone 5. The Apple app colors are too garish for me and white against gray is a bad combination for people with 50+ vision.

http://imgur.com/P8WxfcJ,Fec5RAH#1
I can't claim I'm the first, but it's the first I've seen, as I did extensive research before I wrote a line of code. Send a link if you have one. I'm interested. I think a lot of people are misunderstanding that I'm talking about procedural graphics though, not a video or simple animation.
You do not need to have belief systems; knowledge is more powerful. And conspiracy theory is a loaded term. Remove both from yourself to process information better.
Good Luck With That (counterintelligence)
This paper is excellent. Thanks for sharing.
Living with less
It's possible but from what I can tell, TotalFinder is much more feature-rich than the OSX tabbed finder.

I really hope it continues to be compatible and that BinaryAge continues development.
Innovation: DNA Fog by Applied DNA Sciences and SmokeCloak
I agree the details matter!

Each company would need to build an API for them, which would also need to be maintained. Imagine a dev updating some code and finding out he broke the build in the secret US govt. API? Ok that is a bit flippant, but the practicality of accessing the data is an issue, and would have involved lots of devs, managers etc which I would think increases the chances of leaks from with in each Internet company. There have been none, even now.

Just a thought.

Actually, hold that thought. Is it weird that no one is saying "I work at company x and I did or didn't see this".
It offers a solution to the problem indicated in the post. FireFox OS users can install apps without going through a store. The only thing that Mozilla will maintain control over are apps that use the phone portion of the device.
What was the chance of FFx browser winning the browser race, when more than 95% computers already had IE pre-installed?

With FFxOS, web designer and developers can leverage their web design & development skills. All system calls are exposed via javascript API (aka open Web APIs). See more details here (https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS)
I just saw the film this weekend and loved it. I'll be buying myself a copy of the book soon.
This has happened. I have a friend who has been visited at work and at home by the FBI for making a joke.
They aren't "losers" in the normal sense, but they will likely lose out on income going forward unless they add really unique features that make their version much better.
I can't recall a single application Microsoft banned from being run/sold for the Windows platform.

Can the same be said for Apple?

That's the issue I'm referring to.
Yes he is. He's an apple blogger. He doesn't know virtualization from his own ass.

I once interviewed with a company that was letting users store data 'in the cloud'. They were promoting the the job as something to do with 'cloud computing'. I asked if they used AWS. He replied they had a few colocated servers.

I'm asking, from a spy point of view, if there's a difference between a virtualized server and a physical one, if in fact all they are doing is watching network traffic.
Of course, who says it is not? Java sucks allright, but is still a big player in the industry.
Dude, I really think you're in the wrong site, for a moment I thought I was reading a YouTube comment.
Playing with the beta right now and the control panel is by far my favorite feature. It does look kind of busy at first with so many actions available, but the layout is well done and its easy to find what you are looking for.
> Assuming the repo is private

Git is designed to facilitate sharing. Repos are a poor tool for managing secrets, especially intermixed with a general software project.

Use something else for secrets. Ideally you would generate the secret on the same server on which it will be used and not move it over the network (except for a one-off backup).
I've got to think this career move makes sense if he intends to continue leveraging his newfound star-power and momentum. He's got a great audience that's gonna keep tabs on him, so perhaps he wants to take on new challenges while the iron is still hot.
At this point, it's just a simple way to experiment with new ways to deliver an app instead of the usual web or mobile app context.

I've seen similar "morning update" apps that send you all sorts of information, but I'd rather stick to the "do one thing and do it well" ideal.

I think it'd be really cool if I could market this to areas where smart phone penetration isn't as strong. I'm imagining farmers or laborers in poorer areas would really benefit from a daily forecast, but might not have easy access to one. I just have to figure out how to get this in front of those people.
Yeah. iCloud.com is a joke. They are using a native-esque UI/UX in the web browser and it just doesn't work. Until something drastic changes at Apple, Google will forever have superior web services.
Apple is philosophically stupid when it comes to sharing. Apple seems to be stuck in a worldview where people want to share with their own devices. That is nice, and they may kill dropbox or 1password, but that philosophy does nothing to compete with Instagram or Google. Google Docs is miles away from being great, but at least they are working on the right problem.
LBJ Tapes: Nixon Sabotaged Vietnam Peace Talks
Rackspace Response to PRISM
Finished James Altucher's Choose Yourself over the weekend.

Currently working on The New Jim Crow: Mass Incarceration in the Age of Colorblindness
Don't forget E3, some of us play games too!
I'd say it's safe to say that Klayman is 'functionally insane.'

http://www.rightwingwatch.org/content/klayman-jews-behind-ga...

It's a very reasoned argument he makes, the one where Jews are to blame for gay marriage.

No. No, it's actually not. It's pretty crazy. It sucks that this is the first lawsuit.
How do you get that plea from "sometimes... the power is off"?
Back in the 90s I found I could get to /etc/passwd of a campus machine via anonymous ftp. I got all worried and I reported to the sysadmin, and they said anyone of the thousands of students who could log into the machine could read /etc/passwd anyway, and it was not a big deal because the passwords were in /etc/shadow and the anonymous ftp user could not read that file. This was back before ssh, and I think I expressed a concern about people knowing who had accounts on the machine, but you could tell if someone had an account via finger. Still seems like a bad idea to me. But if .git is from a public repo on github already I don't see the issue.
I think that the whole notion of "it's nice to know I could upgrade" is primarily a consequence of what's currently in the system. Consider the next upgrade.

You buy this thing in 2013. For bulk storage, you hook up a usb 3.0 raid array and a cheap usb dvd drive. A couple years later, you decide you need more fast storage, so you add on a 512GB / 4 TB thunderbolt fusion drive box (note: this product doesn't exist today). Next year, you upgrade the USB raid array to thunderbolt and decide you want an external cinema quality 4k / THX video converter, that also connects over thunderbolt.

Then in 2016, you conclude that the 24 core macbook pro is sufficient for your day to day, and hook up your bulk storage to that when you're home, but leave the cinema converter and the old usb raid array hooked up as your htpc.

Incidentally, to address your specific scenario, I'm pretty sure that an Apple TV costs less than your gt120 did.

In other words, you doubled down on the tail end of one way of doing things, and little of that will carry over to the new standards. It's the same situation many people were in with AGP graphics cards, IDE hard drives and ATX power supplies without the additional 12v connector.
Well, it went down 20% on the initial news a week ago.
Google Maps is still a better experience than iOS7 Maps so far - but I'll have to wait and see how much the Mavericks integration can hack away at that.
I'd rather see the Sagan in that context. 'Billions and Billions!'
OK, but...

- how much initial wizardry is required

- how often does it need to be updated, or tended to ... is it like a hackintosh where you need to muck around with it every month or so because something "breaks" ?
>> The prisoners in the Panopticon could thus never know whether they were being surveilled, meaning that they have to, if they want to avoid running the risk of severe punishment, assume that they were being watched at all times.

Yup good idea, I agree, only I'd break the synced data up into segments and spread the encrypted segments around 2 to 3 cloud providers. Wow, sometimes my brain amazes me and yours too in this case. Buy Product X - it's PRISM proof. :)
Yea that is pretty crappy.

In their defence though, the page works perfectly with JS disabled if you just want the info.
The Smartphone Wars
I trust the press in this country (U.S.) about as much as I do those covering the W.W.F.
The math might be easier, but the physics is much harder. How do you 3D-print a metal object? It's an easier bet to say that computing power will continue to increase than it is to say some magical high temperature sintering process will be made for home use.
Right. But the work of the CSIS is not that accessible. There isn't one blanket rule you can apply to "government".
You may have a point. I did say "in my opinion". ;)

I'm could be jaded from working on Windows apps too long. (I worked on Windows stuff from the 3.1 era through to Windows 2000.)
I think as long as Americans maintain a "zero tolerance" posture towards terrorism, this kind of security will always be justifiable, because the goal is zero events, versus accepting that some percentage "will happen."

Nuclear terrorism is example #1 of why "by any means necessary" is considered appropriate for surveillance. Since it's hard to argue this will "never" happen, well, it justifies a lot. Whether that is right or wrong, I still don't know.
"Nothing invasive is required."

Oh we'll just force them to program their machine differently is all so that anyone can free ride on the market they invested hundreds of millions to create. Sounds about as noninvasive as a mandatory trans-vaginal ultrasound.
What? What about the location of strategic military operations? Well "too bad" if a categorically transparent gov't inhibits the NSA's ability to process intelligence without alerting extremist groups. "Too bad" if a few thousand people die because you believe there should be no government secrets. Wait, I forgot that running a country is like playing Civilization...
How about a middle ground where information private to the government is allowed but there is no NSA or CIA, or at least no intelligence operations beyond keeping an eye on the military movements of other countries?

Honest question: What danger would that put us in? My instinct says a moderate amount, but I guess none of us know for sure, which makes it a little scary to imagine.
These are all minor complaints in comparison to the huge sigh of relief I am experiencing thanks to the removal of the faux-leather, faux-paper, etc. The skeuomorphic apps are the only apps I can't use (it's painful) and I've downloaded a dozen note taking apps just to try to find one that is designed well.

Skeuomorphism was cool back in 1987 when it was novel that VGA existed.

If it takes Apple until IOS 7.1 to fix some of the subtle gradient issues, so be it.
AT this point, Apple cutting out Google only makes Android more attractive to me.

I was willing to take the blow of losing a superior Google maps, but excising Google search entirely is way too much of a sacrifice for me to continue using apple products.
The UI was fairly complete in previous betas, but it was also largely the same as the last major version.

I don't think any of us know how the beta as it sits today is going to compare to the final release, but saying that it won't change because previous betas didn't change doesn't seem like a fair comparison.