skysight-inc/HackerNews huggingface dataset:
There are no bosses at Valve and they have a stack ranking system deciding how much money you make.

This means people there don't do unglamorous things like maintenance and stability fixes.

How to create an incentive for this kind of work is an interesting problem, and I don't know enough about Valve to know if they've solved it.

I will say that the alternative is more dysfunctional. Closed-allocation, corporate alternative: some number of people are staffed on the ugly, career-damaging maintenance projects. The good ones either find a way to play the politics and move, or they quit, the bad ones stay. The end result is that the maintenance work is done by incompetents who don't care. This is a big part of why most legacy code only gets worse over time: the maintenance work is given to people who don't have the clout to do anything else, not to people who care enough about the health of the project to do it well.
Yes, to you it is obvious, but not to the teacher. The teacher was her/himself the popular kid in school and cannot comprehend what shy even means. She/he doesn't see a bully and a kid who couldn't take it anymore, she/he sees a respectable well-adjusted upstanding kid well on her/his way to being a respectable well-adjusted successful adult and a psycho holding a chair.
What URL do you see that? We'll fix it right away. :)
You can't easily inline _virtual_ functions.

MSVC with PGO will do it, by inserting a guard on the vtable pointer and inlining the most common implementation. But you still take the possible cache miss of reading the vtable pointer, of course. And the other commonly used compilers (clang and gcc) don't do anything like this, even with PGO.
From the caption, it looks like the S3 was just being used as a compass. It's a strange state of affairs when, in what's effectively a war zone, it's easier to use the compass in your phone than a real physical compass!
Photo #20 impresses me as it can be used as a real gun controller real game play. I wonder if it is every going to be used. Seems scary
Not in Chrome for Android though.
One thing we can do is provide more and better societal support for families/parents. My older son was usually the smallest kid in class. He tended to attract bullies. In one case, I learned a little about the situation. The bully's parents were divorcing and he was apparently going through hell at home. Bullies are most likely a product of a negative social environment themselves and coping as best they can.

The other thing we can do is raise kids with respect and good boundaries from the start. Although my son attracted bullies, he did not suffer unduly. He knew how to cope effectively. I was molested and raped as a child. As a parent, I enforced a strong policy of respecting boundaries. That empowered him to take action early with bullies and not tolerate small offenses and the inevitable escalation. Bullying and molesting work much the same way: The predator starts small and escalates. The most effective measures stop it early. Most approaches fail because they do not identify the problem or try to address it until it has already gone too far.

I have previously written about the policy I had at home which empowered him to deal effectively with bullies: http://www.kidslikemine.com/2012/06/13/an-invisible-shield-h...
I think it's very finely done. I'm impressed by the quality of that animation and the voice is both great and touching in its tone.

I'd say part of the solution is explained in the animation itself: you don't have to feel this way if you're getting bullied.

Parents have a role to play. My parents always told me to not pay attention (I was the smallest kids in my class from 4 years old to 15 years old or so, so people would tease me all the time). And I didn't pay attention.

Then he talks in the animation about bearded girls: parents have to intervene here. I was a boy but when I started having a mustache, which looked silly in retrospect on the tiniest kid in the class, they offered me an electric razor. I hated that day the day it happened. But then I realized I had to shave.

Same for bearded girls: parents have to take her to do laser elimination of the beard. Common.

If parents have a fat kid, they should confiscate coke and sodas and force the kid to go exercice a bit. A daily run. Something. It was tennis and bycicling for me (not that I've ever been fat).

Sure bullying is lame. But acting like a victim is not ok.

I agree that fighting back is not always easy, but it's not always mandatory to physically fight back either. As someone else already commented here: if they insult you, you can fight back verbally (being smart makes it all too easy to be really mean in retaliation ; )

"Nobody can make you feel inferior without your consent".

We're all past the age of getting bullied and we can understand that nobody can make us feel inferior without our consent. Now we have to remember to raise our kids properly, so that they never become victims.
What did you learn about load testing and optimisation? Any tips, cribnotes?
The bully has a de facto monopoly because no higher power is willing to exercise theirs.
I would imagine that in an insurrection situation, disabling the camera network would be one of the first actions of a rebel army.
Sails - Realtime MVC Framework for Node.js
Things you should focus on
To add fire to this, you don't even need to cause actual hurt. When I snapped at bullys, my attack was largely ineffective in causing actual hurt to him. He easily blocked and dodged my rage infused punches and kicks until I had tired myself out. But it was overwhelmingly effective in stopping the bullying.
Yes. You should be familiar with the concepts. If you can't put together an answer to any of the interview questions then you will not get an offer.
Well, I don't agree with what seems to be the common definition of 'hacker' here. For me, hacking is the art (or vice) of making things do what they are not supposed (or allowed) to do. Plainly that.

Someone that builds a kick-ass revolutionary web application using Node.js is _not_ a hacker. He made a web site using a web site making tool. No rule bending anywhere.

Someone that builds a refrigerator for rural areas that works without electricity (as mentioned in another comment) is _not_ a hacker. He is an inventor. A genius. An engineer. Whatever, but _not_ a hacker.

Someone that takes a rotary telephone and manages to make it open keypad doors remotely (or whatever) is a hacker. A phone is not _designed_ to do that.

So answering your question, yes, for me, whoever bends the rules of machinery (even social or bureaucratic machinery) could be called a hacker.

But most definitely, 99% of people mentioned in this site should _not_ be called hackers.
2nd this. But sports do help with confidence and self-esteem too.
Haha.. good catch. Already have submitted a pull request with the fix for it.

Cheers!
Twitter users: A guide to the law
I think the conundrum here is those good at sports.

When I played hockey, I certainly wasn't popular with my team, especially when the bullies were on it, but I never got picked on much since I was a good player, and I could give much more than I ever got. I was always pretty quiet, so the bullies never knew what to expect of me.

However, being a house league team, there were several players who got bullied, and they were always the fat kids, who couldn't skate as fast, or stand up for themselves.

And I think it's the same relationship everywhere, and on the comments already made. Bullies never pick on kids bigger than them, or that are necessarily unpopular. However, they will sniff out weakness and pick on the weak, no matter where they happen to be.

I was however, always curious at the root of bullying, since even in my adult life, I see many people who still cluster around making themselves feel better by laughing at stupidity of others (just not to their face), and scare myself, since I've caught myself doing the same thing. Sure we're certainly more civil about it, but to me it seems to be rooted in the same base nature, as a mechanism they're using to try and feel empowered.
Nonetheless you do have at least some liability because if your server is compromised for long enough for one or more users to sign in, their details could be captured using modified Javascript and used to decrypt their private data. It does provide protection against hackers stealing the whole database in one shot though.
Support for JavaFX 2 in IntelliJ IDEA 12.1
Nice site! Could you please add more countries? Spain (ebay.es)?
We are talking about a criminal case, in the United States, in which the defendant was a US citizen. The USA is a first world country, and this is purely domestic matter for us; yes, it is a first world problem. If Americans stop paying attention to these things, our problems will rapidly change from "first world" to "tyranny."
Bug report: choosing US, UK or AUS from the country select dropdown causes the form to submit as if you'd typed in the country code as your search term.

This is a really killer piece of kit though. I'm very impressed. It's something I think many of us have idly imagined when struggling to determine a good starting price for a new eBay auction.
Here's a little PSA:

If you have:

* High blood pressure

* Depressive or angry episodes

* Wake up tired no matter how long you've slept

* Loud snoring

Take a sleep study. You may have obstructive sleep apnea.

I got it badly enough that sleeping for 14-15 hours daily did nothing for me. I didn't realise it at the time but I was on track to die, tired, at about 50.

Today I sleep with a little CPAP machine that keeps my throat open by pumping air into my mouth. It's changed my life enormously.
(Video) Setting up your Sprints
> To this day I don't understand the motivation of terrorizing other kids.

Really?

Look at the popular culture around you, comedy movies, youtube videos, blogs all about bullying people (fail blog and all fail culture), look at the front page of reddit etc.

I understand that if you don't personally connected but you can see that people enjoy other people's failures and misery.

This kind of popular culture and the internet makes it even worse.
Why not try priceonomics they're pretty good for that. With that said nice app!
I find it overreaching to conclude that every individual who is employed by the government in a law enforcement capacity chose their job out of a need to control other people. The world is not black and white and there are shades of gray. The police officers you despise hunt down the murderers, rapists, and child molesters that harm society, the soldiers fight against genocidal sociopaths like Adolf Hitler & Sadaam Hussein, and the congressmen you despise fight for things like universal healthcare. With regards to startups the primary motivation for most entrepreneurs, but not all, is to make money, not some noble goal of making the world a better place. Apple, Facebook, Twitter, Foursquare and the like do little or nothing to solve the world's most serious problems, they're just toys for upper middle class people with money and time to burn. Finally no reputable news source has reported on this story because everything is based on hearsay on what a "DOJ representative" allegedly said which fails to pass the credibility test for reputable news outfits such as the NY Times, Reuters, Washington Post, CNN, with reporting standards. Before you act on the word, consider the source.
Over the years I've seen a lot of disagreement between developers as to what "simple" means.
I can tell you why: the excellent marketing.
West Virginia auditor blasts Cisco, state for "oversized" router buy
Previously on HN: http://news.ycombinator.com/item?id=2940505
I also found that picture very interesting. The juxtaposition of technology is striking.

It is generous to call an improvised set of rocket tubes "targeted" and the small conventional explosive payloads of those rockets falls far below the bar for "mass destruction."

Technology is fundamentally neutral. Higher technology means better tools. Better tools are greater multipliers of people power. It's up the person to decide how to use the tools.

Sometimes we are responsible for death via technology transfer. America's support to the Afghan Mujaheddin against the Soviet Union is a great example. There's no question that Soviet helicopters blew up as a direct result of American-supplied stingers. That particular case was a clear action by the US, and in the end a very effective one (US clearly won that round of the Cold War).

The real tragedy here is that the Galaxy S3 is civilian technology. The tragedy is that part of the world conceived, designed, built and deployed that gadget to millions of people to make their lives better. Another part of the world has been thrown down to a lower level of civilization by a horrible war. They're not building the S3, they're not even using it to check their email at a coffee shop. They're bolting it onto a hobby shop of explosives to kill their fellow countrymen.

If there is a moral obligation here, it's a geopolitical one, not a technological one.
Notice the trend with the revolution photojournalism? Toyota pickup trucks. There's a reason my beat-up Tacoma pickup has the nickname 'Taco Jihad' - key ingredient to uprisings.
Kim Dotcom's Mega to expand into encrypted email
> We're all past the age of getting bullied and we can
>understand that nobody can make us feel inferior without
>our consent. Now we have to remember to raise our kids
>properly, so that they never become victims.

I don't think there is an age limit on being bullied. And while nobody can make us feel a certain way, they can certainly create an environment where it's an uphill struggle to remain positive.
The problem I have with lists of 'principles' like this, is that they usually carry the presumption that there are no exceptions to any one of them. IMO this is not a good way to introduce novice programmers to sound software architecture, and often leads to an unmaintainable mess of 'flexible, extensible, loosely-coupled code' that does not 'repeat itself' and 'encapsulates and abstracts away implementation details'. Especially in situations where a) none of these things actually matter, or b) most (or all) of them could have been realized with much less complexity.

Just as an example, I really hate principles like 'program to interface, not implementation'. More often than not, you are not writing 'extensible frameworks' or 'reusable classes', so hiding each.and.every.class behind an interface serves no purpose. I get really depressed browsing the typical Java or C# code written by all the architecture astronauts around me that are obeying some variant of the '10 object oriented design principles' and thinking they need to make ISomething for every Something constructed by a AbstractSomethingFactory they can dream of, even though it's completely obvious only one kind Something will ever exist.

TL;DR: there's almost as much risk creating crappy code blindly following what is commonly sold as 'OO design principles' as there is in hacking up everything with complete disregard of sound design and architecture.

I think this should come pretty close to what your parent poster was trying to say. I also think many developers working in languages that aren't strictly OO would agree.
I like the term "biohacker" that someone here introduced me to. It fits with what I do to deal with my genetic disorder without drugs.

I tried the term "social engineering" to mean the same thing for social stuff. Turns out that means "con artist," which was not what I meant. I still don't know how to talk about that. Madonna comes to mind as someone who knows something about social hacking. She carried a tape around for weeks before running into the right person to give it to. She says she basically "begged" for the role of Evita, sending a videotape and eight page letter.
You sound like this guy:

http://www.mensjournal.com/magazine/arab-spring-break-201209...
Is it fair to hypothesize that a high proportion of people working in tech today were bullied and abused as children? Yet here we are today, as a community, still bullying, intimidating and harassing women who try to join our field. Something to think about as we recall the hurts that seared and traumatized us not so many years ago.
hence what I was saying - how effective is the war on drugs?

Epic failure.
I've always worked with OO, not FP. I dislike IoC for the same reasons. Also it's anti-KISS and debilitates encapsulation.

The worst effect of this kind of doing things is the image of programming that it shows to beginners. Programming well has nothing to do with that, really.
Obviously the solution is to cut off an appendage and count the growth rings.
Australia isn't that badly off - at least the governments have to do accrual accounting. Most countries don't, because it's too much work.

As a consequence, when most countries release their budgets, expenses can be hidden for the next guy to reveal. And lazy assets don't burn a whole in spending. Imagine if the US government had to admit how much it was "spending" on rent (taking up land which could otherwise be used by the private sector). A $20,000 router isn't an "investment", it's a burn of $4,000 a year over the 5 years it's in use.

The reason accrual accounting is used in large companies is, when ownership and management is separated, you need to ensure the managers give an accurate picture of what they have spent.
When Apple's Engraving Service Goes Wrong
Complexity and reliability. If the batteries die on your xbox control mid-Halo, it's just annoying. If the batteries die on your remote machine gun with the enemy literally at the gates, it's life and death.

I don't think there's much need for wireless inside the tank in any case. Maybe for a remote placement turret without a vehicle mount it would be more useful.
Suggestion: You should be able to exclude certain data items from the calculation, then recalculate (check box for exclude next to the raw data item or something). I just did a search for "fender aerodyne bass guitar" and the lowest price that came up was $249.99, though that turned out to be only the neck of a bass "2007 Fender Aerodyne JAZZ BASS NECK Tuners Bass Guitar Black Headstock".
They're probably worried that whatever weapons are donated will eventually be used agains them. Fair point considering the number of religious nut jobs currently on the side of the good guys.
This is bad advice.

Kids don't start out strong, they aren't magically born with all the skills they need to be an adult. And we understand this, which is why we have different norms for children than for adults. When someone has grown into adulthood they may finally have their shit together and they may have acquired enough self-confidence to be able to handle bullying. But kids are not that way. And though we should try to guide kids towards becoming more mature along the way to adulthood we should not expect and especially not require that they have the maturity of an adult just in order to live day to day.

Telling people not to become victims is often not helpful. It's good to be more self-reliant and self-assured. But that does in no way diminish the damage done by the perpetrators or their culpability for that damage.
How to Self Publish with Guy Kawasaki
No. I'm sure your intentions are fine, but this is not good advice.

We cannot keep perpetuating this idea that you have to fit in. That right there is one of the most harmful memes in our Western society today.

If a kid wants to use the razor to shave, that's fine. If a kid has a problem with obesity, yes, support that kid and help that kid find a better, healthier path.

But not in order to avoid oppression. Because it's better for his or her health. For her, or his, self esteem.

A person close to me was severely bullied when she moved to a new school. She was the only person with dark skin in a school of white Northern Europeans, at a time when there were racists in parliament and a serial killer was murdering persons of color.

What do you figure she would do to fit in?

It's the bullies that has to change. The silent bystanders. Us. We must say "Wow, you have beautiful facial hair". We must embrace diversity.

Not eradicate it.
Well, I learnt Java's oop first and then C structs. So to me a C struct is just like a Java object, only with no methods in it. My poor TA couldn't get over it.
Ah thanks, I wasn't aware of that. Squatting was a bad example then, but in general if you have no criminal intent it would still be a civil offence.
Top 3 Strategies for growing an agency
AFAIK JPEGmini has much better psychovisual optimization than libjpeg, so I think their claim that they can compress JPEG better within limits of the format is fair.

The way you encode lossy formats makes a lot of difference. For example the same x264 encoder gives dramatically worse results when aiming for optimal PSNR rather than using its psychovisual optimizer:

• http://x264.nl/developers/Dark_Shikari/imagecoding/x264.png

• http://x264.nl/developers/Dark_Shikari/imagecoding/x264_psnr...

http://x264dev.multimedia.cx/archives/541
Of course, until you compare 1by1 pixel, you see no difference.

But when you do, yeah, I understand why size drops is that big.
Oh the memories. It's not very well written but most advices are sound if you're stuck in that very particular Java / C# hell.

The book "Effective Java" (from 2001) still has to one the "must read" for any Java programmer that didn't read it.

In it Joshua Bloch has always been very clear, from the start, about all the deeply ingrained ugly Java warts that Java had from the start (and still has). Like for example the complete and total utter impossibility to respect the equals() and hashcode() contracts in the face of inheritance.

Took a long time to set in but now quite some Java programmers are beginning to accept that having equals() and hashcode() at the top of an inheritable OO hierarchy may not have been the greatest thing since sliced bread.

The second book to read is Goets and al.'s "Java Concurrency in Practice" (one of the best looking programming book cover ever, which never hurts an incredibly high-quality content).

But the real lesson is that: Java is too complicated and has way too many warts to ever produce beautiful code. The JVM is not all bad but "Java the language" is really fugly.

Switch to a language that has a saner way to deal with concurrency (Say Clojure's STM or Go) and you can throw most of the pages in these books to the trash.
I prefer to think about these rules in terms of bets.

Adding e.g. a symbolic constant is a bet. You win if during the lifetime of the system, you discover that the constant must be changed, and the gain is the time saved by changing it quickly and with few errors. If you never have to change the constant, you lose the time spent on introducing the constant and the time spent on looking up the constant while reading the code.

Most of the rules here are long change (or whatever the financial people call betting on something), except for KISS.
Thank you for a being an encouraging voice on HN.
It's interesting that in the linked post Atwood cites, as earlier evidence you may be jumping the shark, your (alleged) hatred of Java, a language designed to prevent programmers from hurting themselves by sucking. A lot of accepted wisdom in software engineering comes down to "you must use childproof safety caps because some of you are that stupid".

Java, of course, is so careful to protect global namespace that all kinds of "patterns" for disguising global state as something else emerged (woohoo "Singletons"), resulting in tools to find them and force them to be further disguised.

Another interesting thing (recall PG's aphorism that any sufficiently complex project contains a half-assed implementation of Lisp) is that designing ridiculously complex declarative syntaxes ("data") isn't considered beyond the pale on many projects (or at least it's allowed to happen through carelessness), but creating a properly defined language is.