skysight-inc/HackerNews huggingface dataset:
Ask HN: How do you structure your Node.js[/Express] applications?
In the world of rails there is a clear approach on all aspects of the application. In Node.js this is missing.

Over the time I noticed that many developers have very different structural approaches.
Is there a best practice? I couldn't find it so far.

Eg. I do have functions i use in frontend and backend. And use the same templating lang (jade) in both. But i usually have no idea how to structure the directories (and make it up as we go along)

What are your best practices?

- Directory structure
- Modules
- Template structures
- Code
- etc

Thanks for your input.
Live Map of Internet outages (stable at 4.000 per hour)
If you're the author of that site... You should get someone who's really good at editing English to polish up the language. There are some obvious, little mistakes. For example, "some bonus" should be "a bonus" or "a (bigger) bonus" or something like that.

Maybe I'm the only one who actually cares about this kind of thing, but to me, little mistakes make something look unprofessional, or make me assume I'm dealing with a person who can only write code and doesn't have a broader perspective on things.
The use of FISA "warrants" (misnomer, really) is highly questionable as is, especially when they're just rubber-stamped anyway, but if we can prove that most of the time they don't even bother to use those "warrants", then we can at least take steps to sue them over it and try to declare it unconstitutional, and hopefully get Congress to not only repeal many of the current laws allowing them to do with this their secret interpretations of those laws, but also create other laws that put a lot of restrictions and oversight in place.
really really wish this wasn't on fridays
Data Recovery for iPhone-Restore 12 File Formats on iOS device.
Data recovery for iphone-Save iPhone Files from the Dead, including SMS, Contacts, Photos,Videos, Notes, Reminders and More.
What surprices me the most is that Windows 8 is so darn expensive. The vanilla version costs $120, that is the biggest hurdle for my family to upgrade.
You mean CSEC.. CSIS is these guys, still not good.

https://www.youtube.com/watch?v=dszXCHbvJYY&hd=1
They admitted that they copied Infininum's website specifically- http://kintek.com.au/blog/getting-egg-on-your-face/
I don't see how you could think the PAA and FAA have similar language. The PAA was a pretty ugly bill, and significantly loosened both FISA and USSID 18 restrictions against collection on US persons. Whereas the FAA actually reinstated FISA order requirements and closed the third-party carrier loophole. So, the FAA was an unambiguous win for privacy over the then-expiring PAA, and more importantly it was an improvement over the pre PAA version of FISA.

Before the FAA passed, there were no requirements or oversight governing collection of non US persons communicating over a US carrier. And in fact, existing legal precedent does not treat the carrier as party to the communication, so collection under those circumstances was likely legal. That's exactly the loophole the previous administration exploited to compel third-party compliance in foreign intelligence collection without oversight.
Technology has a way of also bringing balance when needed.

For example, yes, it makes spying on normal people easier, however it also makes it possible to communicate in real-time with virtually unbreakable encryption, something which was not possible to do only 70 years ago. It also makes it possible to keep whatever files you want secret. My laptop's hard-drive is encrypted for example, without too much of a performance penalty. And consider that for anonymity on the Internet, you also have proxies and nascent projects like Tor.

And yes, normal / uneducated people are not using technology to its fullest. But that's only because they aren't aware of imminent threats to their privacy, to their way of life. Educate them and I can assure you a significant percentage will start using encryption whenever possible. Also, make it the default, make it convenient and they'll use it - and yes, we are the ones that should be doing that, because it's our job to make life easier and safer for normal people.

It's not technology you should fear. But rather those in power that can make anything they don't like illegal. And mark my words - projects such as Tor / Bitcoin will be illegal at some point, the only questions being "when?" and "for how long?"
If something interesting comes out of it will certainly appear here.
What about other programs that save there that are only tangentially documents. I'm thinking of things like saved game files which can often be upwards of 500MB and depending on the size of SkyDrive could fill it up quickly leading to documents not syncing. Or if some files (such as saved games) don't transfer that sounds like a recipe for user confusion.
You can just as easily program something like this with Django. One criticism that you may encounter with Django is that it's not as extensible or have as robust of a community. In terms of plugins, you'll need distinguish between django specific plugins and just general python plugins.

For example, for Twitter - you'll encounter that there isn't necessarily a one-size-fits-all Twitter plugin that's specific to Django. Instead, you might need an authentication plugin which will store relevant Twitter information (id, token) and then use a Python Twitter plugin to do the kind of neat stuff the author has accomplished.

I prefer Django because it's more explicit and there is less magic. This is also good for beginners because it's easier for you to track down where things might be going wrong for you. Django might not have the best community-support (no railscast equivalent).
that looks pretty good.

not sure if i overlooked it in the notes or not, but i have a couple questions.

you mentioned copyright at the end. what sort of license are you releasing it under?

Does it support nested creation of objects? ( ie if you ask for an instance of class 'FOO' and FOO has a DI or 'BAR' will BAR be first created and then injected into FOO)
Ask HN - I just left my job today and I'm really confused. Need urgent advice
I submitted a thread yesterday asking for advice regarding my relationship with the project manager on my (ex)team [1].

Today after speaking with him again, he showed very little willingness to discuss anything, and simply cut me off and repeated the same accusations he made yesterday. I decided that there was no longer any reason for me to stay, so I gave notice by the end of the day.

He asked me when I wanted to leave, and I said today as I had already spoken to the only other dev on my team and committed and pushed all my code along with documentation I wanted to leave for the other dev. He threatened (implied) that "people" would be pissed if I didn't come in tomorrow, so I agreed to go tomorrow for knowledge transfer.

However, 3 hours ago, he removed all access from my Basecamp, Bitbucket, and Trello accounts. I know because I checked the company GMail to make sure he didn't suddenly send an email telling me I didn't need to go. Just now, I tried to check company email again, but it was disabled. My impression is that at the very least, my email should not be disabled until I am completely "gone". I'm not sure if this is standard practice, but now I am not sure if I should still be showing up tomorrow. I feel like I will arrive with my key disabled after 1 hour and 20 minutes of commute.

Any advice/suggestions would be much appreciated. It is 11:46PM here in Vancouver so I really don't know what I am supposed to do.

[1] https://news.ycombinator.com/item?id=5942912
Hour One. Make it Count.
I'm not surprised at all, I'm just tired and depressed by it.
I use Drupal. As others have mentioned, these have their downsides but on the upside, it's got a decent developer community and integrates well with the app itself. (usehuman.com)
Uninstall Microsoft Office Enterprise 2007
Thanks, that's certainly useful context. It's a shame the link is a bare PDF, without that background.
SSL/TLS Deployment Best Practices [pdf]
Did you read yesterday's post linked in the article [1]?

WHO PAYS FOR: Pandora AM/FM
Songwriting/Publishing YES YES
Performance YES NO

And those performance royalties Pandora pays are 13 times songwriting/publishing! Not to mention your royalties are capped at 1.5% of revenue. You are paying less than 1/10 what Pandora pays for each listener hearing an artist's song. Please enlighten us if this is incorrect or how this is fair?

[1] http://theunderstatement.com/post/53867665082/pandora-pays-f...
To expand, this SDK mostly only builds a few DLLs which allow mods to override various parts of the game logic. It doesn't include the source for the main hl2.exe, for example.

This is how all mods have been built for Valve games dating back to the original Half-Life.
Nelson Mandela Dies Age 94
Other problems I've noticed with the new google maps:

(1) performance really sucks on linux/firefox

(2) text renders incorrectly on linux/firefox to the point where much of it is barely readable

(3) they've futzed around with the UI in an apparent attempt to get rid of the "layers" concept, but this has negative effects (in particular this makes "transit mode", a temporary mode that turns off as soon you do anything else; in the old maps it's a setting that persists), and in general seems more confusing than the old way

One hopes they'll fix these problems before making the new maps the default, but ... the signs so far aren't very promising (the browser probs were around even in the old "webgl maps")...
> If anything - 5 days is incredibly good turn around.

Especially for a major holiday weekend when a lot of people go on vacation....
Do the consequences one suffers at the hands of another agent for performing an action affect the moral quality of that action?
Hi author here. Thanks for the feedback. Definitely get this corrected.
Go, they should have your final check waiting for you.
Right, but that is just hipster douchebags thinking it would be "edgy" to say that. One sniff of actual danger and they'll have Daddy come pick them up, or buy their way out with his credit card.
You could say the same about a lot of crimes. Prostitutes, hitmen, scammers, drug dealers, a lot of professions are inherently hurtful for the society. Heck, you could say the same about banking, insurances, real estate, utilities: a lot of people would be out of a job if theit companies were honest. Entire industries rely on some degree of scamming. And yet we still complain about dishonest banks, lack of competition, etc.

Stallman's views are pragmatic: some people would lose their job but that's the price to pay to get closer to an ideal society. That's not more extremist than socialism.
The GPL does not eliminate the right to sell the product.

http://www.gnu.org/philosophy/selling.html.en
The article doesn't say you need to accept yourself as you are. The advice is to be yourself and not compare to others. This is great advice and it's the reason I'm a happy person.

The self is a state that can only be observed instantaneously, so change is an expected phenomenon. The key to losing that weight is to forget about the fact that you want to lose the 15 lbs. Don't focus on the result, but instead on the journey that will get you there. Learn to enjoy a daily workout and healthy diet. Success is a mindset, not a destination.
Thanks for posting that. I'm quite impressed by what's in there, especially the bit of cleverness involved with the bilby.Do() syntax.
> soooo...

For some reason, it's not really been refreshing to see people paying more attention now. I thought maybe it was a holier than thou thing but hitting blogs where we were talking about it back then I see the same thing. People who were outraged then are doing what they were then - trying to read between the lines and figuring out how it really works while still being legally compliant. Try commenting on that, and you're called a sheeple and told how it's all un-constitutional, yada, yada.

I don't mind when my outlying beliefs become hip, but I do get annoyed when they jump the shark.
Just because everyone "knew" doesn't make this less useful to be released. Last month if you went on CNN and claimed that the NSA had free reign to access whatever they wanted, you'd be considered a conspiracy theorist. Now you are at least just considered to be aiding the terrorists. This type of thing is also useful for groups like the ACLU filing lawsuits because they need more proof than "everyone knows already"
If it wasn't illegal it wouldn't be fun, would it? It would just be a normal club with slightly unusual decor and weird acoustics.
You used to be able to run a startup disk/startup CD to reset the administrator account password on most home PCs, though. That probably won't work as well when the account's in 'the cloud'?
Just go. The PM asked you to come in, so it is on him. Disabling your email isn't out of line, as they want you to not receive any more official company email at this point
So are you saying that we should just accept everything as it is now? That way things will never change and probably only get worse.

There are however people that don't accept everything that's going on in the world and will fight for change. And they DO make change, ever heard about GNU/Linux?
Quantum memory breakthrough
I am wondering if mixing services might be illegal. As far as I know there are laws prohibiting attempts to conceal or obscure the source of money.

Since almost all methods of acquiring bitcoin lead back to a bank account, it would be trivial to trace anybody putting money into the mixing service and potentially prosecute them under anti-laundering laws.

Paying cash for bitcoin (i.e. localbitcoin) is not traceable in this manner, but if you have large amounts of untraceable cash then you have probably already successfully laundered money, and though bitcoin is a more convenient store of value it would not be the tool that enabled it.

So I agree, seems regulators should be fine with Bitcoin.
Most houses are designed with standard, well understood materials and well within industry standard tolerances, so there is no need to do any heavy duty load calculations at every step. 97% of the time plugging some numbers into the standard formulas is plenty enough for a sanity check. If you're doing something really weird you sit down in collaboration with your engineers.
They're stunt performers, the hoops they jump through are on fire! Or even paned with glass, that's really common. Sorry, couldn't resist.
This reminds me of some of the squat parties[1] that would happen in the UK (and particularly around London) in the 80s and 90s.

[1] http://en.wikipedia.org/wiki/Free_party#Squat_Party
Optics and Photonics Pioneer James Gordon Dies
Statelessness: The "Snowden Airport" has experience in this situation
Eclipse Kepler available for download
Redis (consistent hashing based) sharding made easy
"free rein". It's a metaphor about horses, not kingdoms (though I have heard that the one can be exchanged for the other).
End of an era of Social activism. A man with courage like LION, fought with great conviction to bring change in our global society!!! He becomes IMMORTAL!!! RIP
Having parts of a string perform operations on a container is not elegant, it's a crutch for the lack of availability of generic operations or something like LINQ. Many of Objective-C's interesting features have this problem that either they're too magical, have an odd syntax or are leaky abstractions due to the limitations of backward compatibility.
Thanks Thomas, good explanation. For clarification, I was looking for further reading, not disagreeing :)

This is very good data. Also kind of scary. I knew musicians had a hard time of it, but I've never seen the numbers crunched like that.

As a semi-relevant aside, my girlfriend works on Broadway and frequently tells me about the actors/actresses she meets. There are well-known stars who make between $10-20 thousand per contract (which may last about 6 months, commonly) despite having a leading role. I suppose it's similar to the music industry - only a privileged few ever make it to what an engineer would call "starting salary" and only a handful ever get rich (comparatively).

It's saddening that the arts are so monetarily difficult. I have a deep appreciation for music, theatre and film but the constituents really get shafted.
You can use the Integral class (when compiling, the instance gets converted to an extra dictionary argument, if you never use the instance the dictionary will be unreachable)

But Integer is really hard to avoid in general, for example the Show instance for Double depends on it.
I think what ComputerGuru is saying is that facebook should be liable for security vulnerabilities like the one discovered, not the hacker who discovered. (this is what I gathered from your comment)

I actually agree to an extent with ComputerGuru. The company deploying the code (facebook) is responsible for any exploits. We don't know if Facebook does consult a security team (given the bounty amounts, I'm sure they have one internally).

The real problem with code though is that bugs will ALWAYS exists. They can get even worse as more people have a hand in the package. I've encountered this alot on projects, where code snippets will either be redundant, over complicated, or (in this case is my guess) will conflict with other pattern checks.

To be honest, I'm actually surprise that we heard about this exploit. I'd almost imagine that most companies would be tempted to have the hacker sign an NDA in order to collect the bounty.
Sounds like a cool service!
C.I.A. Report Finds Concerns With Ties to New York Police
I didn't think it was controversial to claim that the PAA and FAA have similar language. Here's one section from both bills (Sec. 702 in the FAA and 105B in the PAA) authorizing warrantless surveillance:

http://thomas.loc.gov/cgi-bin/bdquery/z?d110:s.01927:
Notwithstanding any other law, the Director of National Intelligence and the Attorney General, may for periods of up to one year authorize the acquisition of foreign intelligence information concerning persons reasonably believed to be outside the United States...

http://thomas.loc.gov/cgi-bin/bdquery/z?d110:H.R.6304:
Notwithstanding any other provision of law... the Attorney General and the Director of National Intelligence may authorize jointly, for a period of up to 1 year from the effective date of the authorization, the targeting of persons reasonably believed to be located outside the United States...

I didn't say they were identical, just that they were similar. Though each does use the identical language about limits on targeting "persons reasonably believed to be located outside the United States" -- and we found out from last week's leaks how far that language can be stretched.
Extra Action "crashed" a wedding I was at once. Everybody ended up in the pool (there was a pool). It was awesome. They had to drain the pool the next day.

This one's a little too contrived and self-congratulatory for my tastes, though.
I remember well the first time that I heard the name of Nelson Mandela which was through the efforts of the South African Liberation Committee at Michigan State.

http://africanactivist.msu.edu/organization.php?name=Souther...

They succeeded in getting both the city of East Lansing as well as MSU to boycott companies doing business in South Africa.
The "No A-hole Rule" in startups
Shop top brands of shoes including Asics shoes,Toms shoes,Nike shoes
Buy Men's Shoes, Women's Shoes and Kid's Shoes of Asics, MBT, Nike, Toms etc. for everyday discount prices on vipcollectionshow.com! Everyday free shipping over $88.
Asics women's shoes
Asics women's shoes
This may well be true, but it's hard to reconcile with Hacker News's latest meme of "It shouldn't be about personalities, it should be about facts".
When your Instagram meets Excel, what will it be? 
When your Instagram meets Excel, what will it be?

Picaca is the most fun and easiest expense-tracking app that designed for users to track their personal expenses based on the pictures they take. Innovated to improve the traditional way of expense tracking, Picaca encourages users to transform their daily expenses into visual arts.

Snapping pictures, logging expenses, and sharing life all at the same time!

iOS download: https://itunes.apple.com/us/app/picaca-mian-fei-ban-ke-pai/id646688721?mt=8
Kasparov Will Not Return to Russia
Seriously. Why not make this on Tuesdays? Or any other day but Friday?
Some of it is client-side.

By that I mean, clients with budgets will opt for enterprise services. That's not necessarily fair, but humans like expensive stuff, especially when it's not their money.

The thing is, engineers who move into SaaS and try to tackle that middle ground tend to be shafted. This is why people like 'patio11 so often recommend aiming for the enterprisey folks - that's where you make a living.
Completely agree. Aside from the practical, everyday application of maps, being able to jump into streetview and see the house I grew up in, zoom out and jump to the other side of the planet and jump back into streetview to see the house I lived in whilst living in New Zealand is almost magical.
Transforming your daily expenses into visual arts
A few too many brass instruments and costumed performers to be totally compatible with my idea of an illegal rave, but the venue looks fun!
You should go and wrap things up. The day will be short, but if you can get the formalities out of the way, it'll make things smoother. Get your final check, and if you've vested any shares, ensure you have documentation that outlines what you hold. Then leave the place with a smile on your face and a genuinely good attitude; there's nothing in it for either you or them to have bad blood after you've gone.
It's clear that drugs are destroying people and communities. Take crack as an example. Do you really think making it freely available, or providing free soup kitchens and mecical aid, would alleviate the misery and destruction it causes to people and communities?

Sometimes people need to be protected against themselves, this is particularly true for the less educated (which tends to coincide with the underpriviledged), because they will seriously fuck up their lives (which in turn affects their dependants and communities) unless provided guidance and, yes, certain restrictions.
What is Figma? Google search turns up nothing.
Market research for manswr.com
The Oracle Translation Engine: Deciphering Earnings Call Doublespeak
What's so terrible about not being "awesome?"

How about just living a decent life? Being kind and helpful?

There's a kind of virtue ethics at work around these parts, and the primary virtue is "awesomeness." A sociologist or ethicist could write a whole thesis about this community.

It's not a universal idea. Some people have a primary virtue of "decency." Or even "humility." Taste those words for a moment...

"Comparing is as much of a disease as perfection. When we learn to be ourselves, be patient, and how to be comfortable in our own skin, then – and only then – will we achieve true happiness."

An ancient Zen poem says "For and against opposing each other -- this is the mind's disease." Of course, this site revolves around a highly competitive market. Ambition is its lifeblood...

I think that if you want to be happy, that's not going to come from success or ambition or striving. They seem more or less orthogonal.

An interesting question might be: What would you do if you were already happy and content? Think of it as like the question of what you would do if you already were financially independent. Call it emotional independence, maybe. Equanimity?
You should go in to collect your final check. Also, if they'd like to hire you for knowledge transfer, then have a consulting rate and arrangement that you'd be comfortable with in mind. Keep it professional.