skysight-inc/HackerNews huggingface dataset:
Cry me a river. No one is forcing anyone to come to the US. I worked in China and Korea for over six years and employer-specific visas are standard operating procedure. Don't like it, simply go home. "Slavery" is such hyperbole. Slavery in America pays a hell of a lot more than 'freedom' in New Delhi.
Your second sentence is true. What I said is also true; Most prisoners have low impulse control and are stupid.
"reboot into a deadlock if not used for 8 hours"

Sounds like a bug to me!
How To Monitor Hard Drive Usage In Ubuntu Server Using Philesight
Thanks for the great feedback!

2. That feature is forthcoming
3. Thanks for pointing that out, I'll fix that.
4. It started that way, but then I realized the time limit wouldn't have much impact on when the bounty actually gets answered, because solution providers compete to answer as soon as possible. So in the interest of simplicity I decided to make it a week. I'll consider changing it back. In practice, most tasks have been solved well before the deadline.
Would be great for making streetview style imagery.
In the case of a DNS takedown, all it would take would be for The Pirate Bay to publish a browser extension that stores a few IP addresses and "drops in" whenever the user attempts to acces thepiratebay.se.
UIActivity Providers for iOS 6
10 questions about Surface
Thanks for outlining a lot of details here, but a full writeup would also be great.
You're right that users will ask the impossible, and accept the unacceptable, but I think that a good enough feedback mechanism could over-come this, and sites such as Stackoverflow have implemented feedback mechanisms that could work.

Eg. by allowing comments on answers, the glaring security hold in the ZIP-code form answer could be raised, addressed, and fixed.

Allow moderators to say 'this task is too big/the bounty is too small', while simultaneously limiting the maximum bounty to something small.

IMO, the 'right' solution is for libraries to be more easily broken in to pieces while simultaneously easier to use together so that just the form part of the 'big ZIP-code PHP library' could be used in this case, but barring that, this is a neat attempt at code-by-documentation, given that most of the problems I saw were easier than homework problems.
Perhaps. And that's why you have many TLDs. So .se and .org are gone, so it moves somewhere else, then it moves again.
Google throws open doors to its top-secret data center
(a) You have to find out what cloud provider

(b) You have to raid 2 cloud providers

(c) what if they have 4 backup cloud installs ready to go live? You take out the 2 there, and then 2 more in a different, unknown hosting company go live.
That's another problem - I'll help you for free because I'm nice and this is HN, but if I'm to consider money as a motivator, $5 (or a tip which must be assumed to be less) is downright offensive.

The problem is this PHP:

<?php echo @file_get_contents($_GET['url']);?>

It does nothing to validate the request, and will trivially proxy any request to not just any webpage in the world, but any file readable to your webserver.

What you want is something like:

<?php
$zip = $_GET['zip'];
if (preg_match("/^(^\d{5}$)|(^\d{5}-\d{4}$)$/", $zip)) {
echo @file_get_contents("http://www.webservicex.net/uszip.asmx/GetInfoByZIP?USZip=".$zip);
}
?>

Not tested, but that's the general idea.
Software bugs that became features afterwards
Hosting24.com
Creating Exchanges to Solve Problems: 5 Must Have Characteristics
Why does he let his schizophrenic son lives as a homeless man on the street?
Basically, the emotional side-effects of determination.[1] In the book Art of Funding a Startup[2] pg says "There are two things we care about: how determined people are and how smart they are"

[1] - http://www.paulgraham.com/startuplessons.html

[2] - http://www.amazon.com/Paul-Graham-Funding-Interview-ebook/dp...
Implementing it today would have the same issues: SQLite runs on more platforms than even LuaJIT; and even then I still don't see that a whole general purpose language, no matter how small or embeddable (mostly thinking of Lua here) would compete against SQLite's "be good at SQL-y computation" VM. The main argument for Lua is having humans write it; but the human interface to SQLite is supposed to SQL. I'm not sure I understand the benefit of compiling the SQL down to Lua so it can then be interpreted by the standard Lua implementation...
Hi Chris, looking forward to more details.
Do we need a planet at all? Seems like an easier option for being non-Earth dependant would be to develop vessels that are self sustaining and which perhaps mine asteroids and gas clouds to get what they need. The whole getting onto and off a planet just adds more complications than its worth.
SQLite is even recommended[1] (granted, by the authors) as a testbed for SQL extensions. While an entirely new query language would obviously be a lot more work, I don't see why it wouldn't be an equally good choice.

[1]: https://www.sqlite.org/whentouse.html
It's like robin hood taking from the rich and giving to the poor, his motives are pure, depending on how you look at it, and robin hood can continue this as long as the governing body who wants him dead is inept at catching him. The pirate bay, like robin hood, cannot live forever. SOME of us will only be stronger than ALL of us for brief moments in history. The only way TPB is to survive is for it to make good on its invisibility promise and make both the users and and distributors invisible to those who want it dead. There needs to be a creative mechanism to render the service invisible to those who disagree with its existence, and to render it visible to those who crave data.

It won't matter that TPB is distributed, clouded, encrypted, PTP, or whatever. When the governments are successful in getting SOPA, ACTA or whatever through congress, the ISP's and companies like Google and Apple are going to be made responsible for cooking into their devices preventions for unauthorized copying and unauthorized distribution of 3d schematics for weapons that pass through their ISP's or their hardware. As elite as TPB thinks they are, a few elite hackers can't fight an army of mediocre hackers.

An important factor in TPB living forever is preserving its image in the hearts and minds of ALL hackers everywhere, worldwide, collectively we can outsmart those who wish to catch us, a small group of us will eventually be defeated, as all robin hoods must be. We have to have the hackers on the ground floor who wish TPB to live forever inside Google, Comcast, Apple, HP, MPAA, RIAA, and everywhere else. The battle for control what you can think, what you can do inside the comfort of your own mind is under attack. The battle begins here, with the ownership of what can take place in your computer. Soon these computers will be our minds, and the governments will rule over the thoughts that take place inside them. We will wake up as directive following slaves on the land our fathers conquered. We have to have a 10 and a 50 year plan.
A database of errors detected by PVS-Studio is available on viva64 website
Collection of errors can be used by you for the research, writing papers, studying typical programming errors and so on.
Agreed - I've wished for just such a service in the past and can totally see myself trying this out. I see it as a means to an end when you're punching above your weight, programmatically speaking.

I think a higher minimum with a 50% charitable guarantee might work better. $20 is probably enough to keep quality high (on the supply side) and definitely enough to attract skilled coders.
Also, if you're looking for a longer-term commitment but want to get out of it, their Reserved Instances can now be bought and sold. Great for if your plans change and you want to recoup some of your costs.

http://aws.amazon.com/ec2/reserved-instances/marketplace/
Indian Law Minister to Arvind Kejriwal:"ink can also be replaced with blood"
> but I think that a good enough feedback mechanism could over-come this, and sites such as Stackoverflow have implemented feedback mechanisms that could work

But people are on SO out of a desire to help other people, and SO specifically encourages general problems - so saying "that's not possible" is the right answer to the syllables problem instead of some messy thrown together code that doesn't actually work.

By introducing the financial reward system, this goes out the window. I get nothing out of commenting on bounties, explaining why answers are wrong or requests impossible because I'm not contributing to a community of being helpful to future people running into a problem.

> IMO, the 'right' solution is for libraries to be more easily broken in to pieces while simultaneously easier to use together

Sounds good, but that's not how software development works. The cognitive skills required to break down a problem into such pieces is significantly higher that those required to write code that performs the task.
Show HN: let the group choose the best time for the meeting
Thanks for the explanation, no offense intended. My point was that there's a mechanism (imperfect though it may be) to help catch flawed solutions.

BTW, the winning solution doesn't appear to have the security flaw you pointed out.
Hundreds of proxys already exist - for people in countries where the domain is blocked (UK, NL...)
I hate the idea of "full disclosure." I, instead, love what this author has done. You found a bug, you're posting about it. Great. Any decent, respectable, commercial enterprise should have somebody watching sites like this, looking for posts like these. They shouldn't rely on somebody taking time away from themselves or their projects and write up a bug report. No.
Project Kotlin and Milestone 3 Webinar Recording
Show HN: iPhone app to track conversations on Twitter
Hey!

We have a web service which tracks Twitter conversations - http://www.conweets.com

We've very recently launched an iPhone app for the same. Its a minimalistic app with only a few basic features. We're working on more features for the next update.

So, I'd like to show you the app, here is the link - http://itunes.apple.com/in/app/conweets/id564864571?ls=1&mt=8
Many enterprises will stick to expensive paid solutions because if anything goes wrong they need to be able to sue someone.
"major release" != "major version number"

Besides, Apple's major OS releases are executed like a major version number bump regardless of how others outside the company do things. These bumps include deprecation markers and warnings for APIs with planned retirement. There's no technical reason to remove deprecated APIs (keeping them around forever) to support older apps.
1/10 of the speed of light is still pretty fast. Helios[1], the probe that holds the speed record from all our spacecrafts travaled at 252 792km/h. That's still less than one 1/400 of the 1/10 of the speed of light.

1. http://en.wikipedia.org/wiki/Helios_probes
Delay Initialization with jQuery Delegation
And then they will move exclusively to TOR. And then TOR will be outlawed and anybody using it will be sentenced to 20 years in prison.
GoPro HERO3 BE - Smaller, Lighter and 2X More Powerful (video)
To avoid speculating irresponsibly myself, I'll link to someone else's irresponsible speculation: http://www.webcitation.org/query?id=1298667420478086
To add some detail to your claim: Some clients use UDP and write the IP address into the body of the message.

https://blog.torproject.org/blog/bittorrent-over-tor-isnt-go...
This is not a "viewer of Github repositories". We apply algorithms on source code we collect every day and calculate a score that determines whether an open source project needs contributors or not. So, what we add is scoring and what we remove is 'noise' of powerful open source projects. Contrihub is a web service built in 48 hours and currently there are several inconsistencies, far more serious than hyperlinks. By the end of the competition we will work on improving and extending in functionality. Anyway, we thank you for the disapproval, we are glad receiving your feedback.
Also they don't get any useful data as all data on cloud providers is encrypted. So providers won't even know they are hosting piratebay.
"When I was young, I found out that the big toe always ends up making a hole in the sock," he once said. "So I stopped wearing socks."

He was very bright in many ways, but wasn't perfect. For example he didn't care much for gender equality. Women could just stay in the kitchen as far as he was concerned.
Guess which shmuck just bought a pair of Hero2s. :(
I was thinking about this problem recently, primarily around a service for outsourcing the optimisation of functions (e.g. inner loops).

For this it would be useful to be able to define unit tests and set execution time limits.

Done well, this is a kind of part solution to problem 6 "Bring Back Moore's Law" of Paul Graham's Frighteningly Ambitious Startup Ideas: http://paulgraham.com/ambitious.html
Thanks, I fixed the bug.
How fast would a spaceship have to go to reach Alpha Centauri?
Seems to be very directed towards the humanities. For example,
"To me, the most serious count against Advanced Placement courses is that the AP curriculum leads to rigid stultification -- a kind of mindless genuflection to a prescribed plan of study that squelches creativity and free inquiry."
Which is perhaps appropriate when one is learning how to integrate or a certain kind of data structure.
> the PHP community is now officially so desperate for better metaprogramming capabilities that it is attempting to do so using code comments

This says it all ... and to be honest, from an ease point of view I like using annotations but as with most parts of PHP it's the implementation that sucks (or the lack of implementation)

Over 2 years ago a RFC has been filed for native php annotations and I must say that I like the idea of annotations being part of the actual language and not relying on Inflection on comments (wtf?) to attach metadata to classes, propeties or methods. Just too bad nobody can get their act together and get it implemented in the core. https://wiki.php.net/rfc/annotations
(Disclaimer: I'm partly working on Dart)

- Every Javascript program is a valid typescript program so typescript doesn't fix JS semantics (like variable hoisting and the only numeric type being floats). I think typescript is a good fit when you already have some big JS project and you want to get some type errors by loading a predefined signature for jquery or whatever library you're using. You basically get a linter + code completion for free on a pre-existing project. But if I have the choice between Javascript and any other language with saner semantics to start a new project, then I will for sure not chose Javascript.

- I don't think that Dart aims to "replace the entire JacaScript runtime in all browsers", even though the Ars Technica article says so. It's an alternative to Javascript, exactly like Ruby is an alternative to Python. Of course there's a difference between Js vs Dart and Python vs Ruby: every browser runs Js and only Js. That's why the story with Dart is: develop with the VM and Dartium, so that you can reload you application with F5, use the debugger, etc. and then deploy by compiling to Javascript.
What is web framework to use while developing in Go language? - Stack Overflow
I completely agree with you, but I would use something like this - http://pastebin.com/embed_iframe.php?i=U4Fmm0t6

I don't think that just an array quite make it as a real alternative but a definition builder called from a method seems more appropriate. Also I would seperate model definition from model repository.
Dang! I just bought my hero 2
Technology moves so fast that I now purchase with a "rental" attitude.. :(
And yet most of these expensive paid solutions have EULAs that strictly tell you that you're not going to get anything if you sue them anyway...
So we can expect Cloud Computing Regulations to be framed later this year?
I was thinking on going to SF after several offers, but if I am going to participate in making a country richer, after this kind of things, I will not do it on America.

(Of course I am sarcastic, but hope you get the point).
Just posted a bounty (https://bountify.co/G)- some thoughts:

-Looking up tags is painfully slow.
-I agree to the Terms & conditions - missed it the first time through, lost my CC info. Kind of annoying.
- Posting the bounty, from the time I clicked the Post Bounty button until the page refreshed, is also slow. Maybe a spinner at least next to the button so I know it's working?
This could be solved if annotations were supported syntax. This works well in other languages (e.g. decorators in Python and annotations in Java)
This is pure horse pucky.

First of all PHP isn't about elegance and I find it a teeth grinding experience when people complain about it not being so. PHP is about getting stuff done.

He doesn't offer one good valid technical reason why not to use comments for meta-programming PHP other than "it just feels wrong" and an "icky feeling" which is entirely subjective. "Reliance on Yet Another Library"? C'mon.

The fact that you can even parse out comments with the reflection API lends, to me, that meta-programming is a-ok.

Also, his alternatives are kind of weak. Here's an annotation:

/**
* @Column(type="string", length=32, unique=true, nullable=false)
*/
protected $username;

And here's his proposed alternative:

class User
{
public static $mapping = array(
'username' => array(
'type' => 'string',
'length' => 32,
'unique' => true,
'nullable' => function() {
// Some logic to determine value.
}
)
);
}

I'll take the first one because I have other shit I need to do.
Agreed. A comment is an explanation about some part of the program. Not the program itself. Its meant to be ignored by the computer. Putting logic in the comments is just downright stupid. Its one of those overly "clever" things "smart" people do to make their code be cutting edge. Nope. As good as Symfony is, my main issue comes down to design decisions as this one. Its just dumb. Having logic in comments its like putting beer in baby formula, just in case I run out of beer. Shit doesnt make sense.
Vim messing up indentation on your pasted code?
Yeah, if you're going to use Bittorrent over Tor, you have to assume that the Bittorrent client will leak everything it knows about you, and therefore work to make sure it knows nothing about you.

If you're using a Linux box, you can use iptables to force all TCP traffic through Tor, dropping everything else. Then make sure the box doesn't know it's "public" IP address, only it's NAT'ed one. Even if it does a call out to something like http://whatismyip.com/ in order to determine it's external IP address, it wont get the real one because that traffic will have been forced out through Tor.

See: https://trac.torproject.org/projects/tor/wiki/doc/Transparen...

Speed wise, Tor appears to be slow, but that is just latency. For throughput it's fine. Especially if you're connecting to lots of different hosts over lots of different Tor circuits, as happens with Bittorrent.

But yes, the Tor Project doesn't want you to be using Bittorrent over Tor.
Google Throws Open Doors to Its Top-Secret Data Center
You don't need a VM to compile something into Javascript but the VM buys you a fast edit/reload cycle and some tooling like a debugger. Also Dart can be used as server-side language and there the VM makes sense. It can also be used as an interpreted language just like Python and here it doesn't hurt if it's fast.

Even if _you_ don't put type annotations in your code, the IDE infers types (locally) and gives you useful warnings and code completion.
Hacker News Data Analysis
Google’s data centers: an inside look
It's gonna be hard to identify who is usung TOR, and doing so will require to take measures that will be against freedom, like controlling what people are installing on their computers.
Too bad their search feature is absolutely horrendous. Searching for a simple term like "The Matrix" doesn't return any results at all.
Clever Cloud Releases PaaS Cloud Service
How to live alone for the first time
The actual point of the article related to garbage collection is interesting, but the cobra analogy in the title just feels wrong. The cobra story (and there are many others like it) is about incentives, and how you have to be very careful when you want to change incentives, because there may be unintended loopholes.
Annotations are not required to use either of those libraries. Doctrine allows mapping information to be defined in XML or YAML files. For Symfony, the @Template annotation is not part of the core at all: it is part of the SensioFrameworkExtraBundle, which can be turned off easily.
The normal way to render a template is:

return $this->render("MyBundle:Controller:template.html.php", array(...));

That said, it would be easy enough to add the static variable-based mapping information to Doctrine as a metadata driver, and create a version of SensioFrameworkExtraBundle that does the same for its annotations.
After a Meal
Writing web applications in Python and Pyramid Web Framework
Are they building Sea Dragon?
I have not agreed with past "exams" but this one is/was interesting and I enjoyed it. Maybe because it is more relevant to general software engineering dealings. Dunno.
the official RFC for annotations is actually a little cleaner in syntax, easier to read and implemented in the language itself which is a way beter system than comment annotations. On a level I do agree that docblock comments are no place for annotations, it's the best we can have for now though, just until annotations become a native PHP feature.

Judging from the RCF and discussions on internals we still have a long way to go before we get annotations in PHP core.

http://marc.info/?r=1&w=2&q=b&l=php-internals...
https://wiki.php.net/rfc/annotations
Nice article, I absolutely agree!
This author does not know what they are talking about. I have taken three AP classes and all three have been very similar to their college equivalent.

If you are reading this and are still in High School I recommend taking as many AP classes as you can. It looks great on your transcript and you can either validate college classes or get the easy A.
while (true)
read("http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/");
> I get nothing out of commenting on bounties,

The system could easily pay a pittance for commenting, and then more for distinguished answer; and hell, a monetary penalty for poor answers/spam.

Also, correct me if I'm wrong, but it seemed like the accepted answer, along with its code, was freely available, so future people do get the benefit of your insight.

> The cognitive skills required to break down a problem into such pieces is significantly higher

...so why should they waste their valuable time doing both the documentation and implementation?
You missed the interesting bit. It's not that they're hosting on a cloud service that is interesting, it's how they've set up a completely transient hosting solution. Non of their cloud hosts know what they're hosting. There is no traceable connection between the IP number of www.thepiratebay.se and the cloud host. Any single cloud hosting service can kick them off their servers without it affecting the web site. If the connection between cloud host and load balancer is lost the cloud image encrypts itself and becomes useless.

Sure nothing they're doing is particularly novel, but if you're the sort of person who wants to host in the cloud, but needs to keep a website responding even when cloud hoster goes down (or decides to ban you), you should find something interesting about their setup.
Is stuffing the cracks in Windows the right thing in the end though?
I found this very ironic.

I see PHP Annotations as a hack for comments. That said, I found very ironic someone giving a rant of a hack in hacker news. Just saying.. :)