skysight-inc/HackerNews huggingface dataset:
Pascal (and specifically Borland's Turbo Pascal) is what started my transition from spaghetti code BASIC to something at least vaguely structured. All (mostly) self-taught -- my high school didn't have any kind of programming classes -- but Pascal encouraged a structure much more than BASIC did, and helped me to realize the importance.
Typography: How does one assess the mood of a typeface?
Thinking outside the box with java
Micromax – A116 Canvas HD Quad Core Phone
Newly discovered comet has a real chance of impacting Mars in Oct 2014
Why Are Old Technologies So Hard To Kill? Nassim Taleb Has A Theory
Petrarca directed just two episodes of GoT. The showrunner for GoT is David Benioff.
obvious troll is obvious
JPEG artifacts are separate from the definition of a pixel, yes, but not to the extent you propose. The artifacts are specifically a result of pixels becoming corrupted during the compress-decompress cycle, and feature most prominently where the source function has discontinuities. Treating a pixel as a point sample of a smooth function removes our ability to consider such things.

Quantization is a form of lossy compression, which is why it adds noise. Monty certainly spoke of that, and of randomization as a recourse in the face of systematic error.

I wasn't thinking about resampling, no, but it certainly fits the topic. Could you expand on how the ideal resampler explains why standard resamplers are occasionally poor, and whether this can be affected by treating the sample as filtered?
Yes, I agree with that name, libraries usually start as modules and some extra work is required to convert a module to a library.

Also, a library can be thought of as a collection of modules.
Here is the post explaining the challenge http://zeroturnaround.com/fun/magical-java-puzzle-pat-the-un...
Music piracy 'down' as revenues rise for first time since 1999
Half the weight is not always a good thing. Good for fuel efficiency, but anyone that has ever passed a semi truck in the opposite direction while driving a small car has probably felt the force of it push against your car. Heavy winds can also make it somewhat difficult to drive as well.

There's other safety concerns, but those have already been mentioned.
You won't be able to prevent Javascript aim bots. The best you can do is server side detection of aim-bot-like behaviour, but this will always be a losing battle (better aim bots) and you may punish good players.
> "C lacks good memory management"

C lets you manage memory without possibly inefficient or even broken magical black box automated processes or garbage collectors. Maybe what the author meant to say was "C lacks easy memory management."
So, in other words, instead of pioneering the digital age of music they spent the better portion of last 14 years fighting it.

However, kudos to the consumer for forcing such a monolithic industry into changing for the better.
Am I the only one who thinks that mind maps are great to organize ideas but extremely poor at expressing them?

If I do a mind map I always find myself understanding myself and I use them a lot for personal ideas. But trying to express them using mind maps is like giving someone an uncooked meal.
Avoiding its complexity does not mean avoiding it.
E.g. you could avoid template metaprogramming due to its complexity whilst keeping to simpler areas of the language.

C++ is a large, multi-paradigm language. It gives you choices and one is free to abuse those choices. But having more options gives you more power to express.

I think with modern C++ style, boost and C++11 its "difficult-to-work-with" reputation is massively overstated. It is possible to write succinct code with good design and get massive performance benefits.
Hopefully too many won't have a pep-peeve about "C objects". :)
Oh god, have work to do. Must resist urge to waste entire afternoon..

One thing that always seems to be missing from these web games is support for gamepads for that authentic console experience however.
I often convert python code to C++ and you'd be surprised how often the difference in loc is not that much.

I agree, especially with C++11 and (besides Boost) Qt. It's often the header/code separation that makes things a bit tedious, having to keep function and method signatures in-sync. Of course, if you are template-land that is not that much of a problem.
Anyone seen pg on here answering "Ask PG" type of questions lately? I had asked a rather basic one last month that received 16 or 17 votes but he never came by. I don't think I've seen him answering any of the "Ask PG" things lately. I hope he comes through and works through some of these though - I enjoy hearing from him.
Instead of prefixing everything with {{ STATIC_URL }} in your templates, use the template tag {% static 'foo/bar/img' %} which will allow you to do asset time-stamping/versioning,

https://docs.djangoproject.com/en/dev/howto/static-files/#wi...

Edit: forgot to link to the versioning part in the docs: https://docs.djangoproject.com/en/dev/ref/contrib/staticfile...

Edit edit: ADMIN_MEDIA_PREFIX is also depreciated from 1.4 onwards: https://docs.djangoproject.com/en/1.4/releases/1.4/#django-c...
Also can get pre-built CentOS, Ubuntu and Debian packages here:

https://www.erlang-solutions.com/downloads/download-erlang-o...

(Courtesy of Erlang Solutions).

Readme of all the changes:

http://erlang.org/download/otp_src_R16B.readme
Go seems like it would have been perfect here, but of course, the language wasn't even a glimmer in Robert Griesemer, Rob Pike, and Ken Thompson's collective eye yet.
> If everyone took TorrentFreak's position on piracy, Game of Thrones would make no money no matter how popular it was. If nobody pirated, Game of Thrones would be less popular. So it sits nicely at the current position.

In Rainbows.
I noticed long ago that it is a very rare musician who knows only one instrument. A musician will almost always have one instrument at which he/she is much more proficient, but your violinist probably plays the piano, and your flutist might be passable at the violin. Much the same seems to be true of persons who are good at a foreign language (immigrants up against necessity perhaps excepted).

Learning Python, Ruby, or Javascript in a certain timeframe may be impossible to achieve. But quite likely you will find yourself at 30 knowing two of them reasonably well, and several other languages also. I don't think that Java is going away soon.
This is how we get there. HTML5 is pretty fresh and it's games like this that let us understand it's capabilities and to improve upon them. I mean, this is a mini MMO implemented in HTML5. That's a pretty big step forward from Pacman in HTML5 already.
SEO effects of ::before & ::after psuedo-elements
That is awesome! I'll definitely absolutely butcher that code once I get some spare time :D
Ask HN: Where to find potential Enterprise Customers? 
I'm looking at minigo and elasticsales as ways to prospect for new Enterprise customers to get involved in validating my startup, early (in design, using lean principles).

Do any of you have other ideas to reach potential Enterprise customers?
He could start by actually displaying an understanding of how video compression works, maybe.
Ironically, the guy who closed this issue owns this project:

https://code.google.com/p/sentimentally/

"sentimentally is a tool that determines sentiment of your emails. Once determined, it helps you gauge your relationships with co-workers, customers, friends, or other individuals based on the tone of your conversations with these people."
let me know if im missing something, but where do they mention specific programming languages? I don't seem to see any reference to it. Furthermore, Objective C is taught like the others--for example, CodeSchool has an entire section on iOS app development and an Objective C tutorial to go along with it...
So treading on the car in bare feet is definitely a no-no, but that doesn't particularly support the stronger than steel claim.
You will still fail to prevent cheaters using an approach like this one. Even a game that is only distributed as a binary but with no or few checks on the server for cheating will be compromised very fast. It only takes one person to figure out how to do it and then release a proof of concept.

It is, in fact, not a bigger problem if the code is readily readable. Someone with the technical chops to read the source code and figure out weaknesses that can be exploited for cheating wouldn't be stumped by a binary blob for very long. My usual approach when trying to figure out "cheats" for most such things is to bypass the client altogether and analyse the network traffic to figure out the underlying protocol. Then come up with a client that reproduces those(simple replay attacks at first to see what works and what doesn't) and as my understanding of what does what evolves make it more sophisticated and flexible.

Having your source code fully available to any would-be attacker will force you to not make the mistake of hoping that nobody figures out how things work to be able to attack you. It forces you to pay attention to server-side checks to enforce the constraints of your game(what? that guy just changed his position in a way that's way too fast? not possible!).
I'm just bad at service, I tried being a contractor and then an independent consultant and it was a disaster.

I work for products, I need a team with the skills I don't have, I need to make mistakes and correct them on the way to a product that sells. I need smart people doing stuff I didn't know where possible that quick, I like to cut the red-tape and corp. foolishness for them, I like to bring candidates in the middle of the team and check if they fit or not, I like to say "sorry" to a customer after someone makes a mistake that wrongs them. I like going on skype a 3AM after a pagerduty alert and seeing we're 2 or 3 on the incident. And I like the fight against clutter and complexity inside growing companies.
Funny you mention "black box automated process" because, what do you think malloc is?

There are two ways of allocating memory directly from the kernel (IIRC), brk and mmap.

There's some management malloc does, and if it's good or not depends on you application.

For example, size, number and behaviour of your allocations. Depending on your situation you may want to do your own memory management.
Here's a challenge: try to find a piece of pascal code that looks "impressive".

Even the most complex object pascal code using pointers and closures and generics all together looks boring and easy to parse for anyone who has done some code.

This might sound awesome (and it is), but this is also a huge turn off for new comers, lots of people think delphi/object pascal is like visual basic ...
I've been fancying building a game with Go + JS. I only have 2 problems:

1: I can't think of a game
2: Most JS libraries/frameworks drive me nuts.

However there are quite a few decent looking JS game frameworks about. Are there any recommendations?
You know it is possible for somebody to be have a sordid and questionable history whilst also being well informed and correct on some matter. Not saying he necessarily is on this, but it IS possible.

Whether carbohydrates can drive obesity in certain people is a hot area of discussion, so I would not discount somebody for bringing it up. I think this is a natural reaction to the fact that fat has been vilified as making people fat for decades and it turned out to not be 100% true, so now people take an extremely skeptical look at the advice of eating an abundance of carbohydrate.
I write code in a number of languages, and I have to say Object-Pascal (which is the language the IDE known as Delphi uses) is a joy.

Check out Lazarus too, the Delphi like IDE for Free Pascal: http://www.lazarus.freepascal.org/

<snarky comment>
Too bad most programs weren't written in Delphi instead of C/C++, or we could've avoided all those pesky string based buffer overflow exploits since Object-Pascal doesn't allocate strings on the stack!
</snarky comment>

But more seriously, that means no "smashing the stack for fun and profit" in Object-Pascal, and that's a good thing.

I picked up learning Delphi about 8 years ago when it was supposed to be "dead" then, and since then it has been my secret weapon. I still use C once in a while, but I am so much more productive in Delphi and the Free Pascal.
One language I regret the demise of.
Agreed, I spend a large portion of my day in the Windows environment. It's a nice change when I get to work in a Linux environment. With that being said, Windows as a non .NET developer platform has come a long way.

I rarely have any issues finding Python libraries that don't work on Windows. PHP Development has become much easier on Windows that it has been in the past. One of my personal glaring exceptions is having a working memcached extension for PHP on Windows.
For anyone interested in another great way of looking into this field, take a look at Aluffi's Algebra Chapter 0[1].

[1] http://www.mimuw.edu.pl/~jarekw/pdf/Algebra0TextboookAluffi....
Boolean Algebra and the I Ching (Yijing)
The ancient Chinese text splits the world into binary concepts, allowing us to perform XOR functions on them to reveal complex relationships.
Hacking VC's using Moneyball principles
Can everything be data driven?
I don't think you are interpreting that correctly. Python is never pushed as "fast". That is exactly how I would use it. Python wherever I could and C++ (or whatever) when performance is crucial.
Executive Pay Votes May Be Harming Shareholders
Depression is largely an episodic thing (dysthymia, though it's sometimes called "chronic depression", is actually a distinct issue). Many people do indeed go through one or more episodes in their lives, and this is not necessarily a problem. But like all mental faculties, it can get out of control, and then the problem becomes serious.

I'd say that going through a depressive episode actually is a barrier to doing a startup. The reason is simple: getting a startup off the ground requires almost all-consuming motivation, but one of the most common symptoms of depression is impaired motivation. In other words, depression hits right at the heart of what makes startups workable, and while this is not necessarily insurmountable, calling it suboptimal is an understatement. The wise thing to do would be to get it back under control, and then start the business when you're in a better state to see it through.
Regarding your first sentence: Those instructions don't merge anything. All they do is swap the order of two accounts that someone is using multilogin with.

Regarding your second: Citation needed. There's this persistent rumor that if you make a G+ account with a fake-sounding name, Google will lock you out of your GMail and erase all your Google Docs, but as far as I've seen, those rumors have never checked out.
I did some research and couldn't validate what was said in the article. That was the main reasons for submitting - to get feedback from HN. Some people I know seemed to be believing this very firmly, and was changing their diets.
Thanks
Giveaway: JavaScript from the Ground Up
MongoHQ is awesome, and their control panel is hands down the best of the MongoDB PaaS, but their pricing is cost prohibitively expensive.

For example, you can get a 2 core, 2GB memory, 20GB of SSD backed storage from DigitalOcean for $20 a month. So, buying three VM's from Digital Ocean for a replica set is a total of $60 a month. Essentially the same thing at MongoHQ is $500 a month.

I completely understand that you pay more for using a PaaS, but that much more?
LeapMotion ships May 13th
Hacking your Startup Federal taxes
Facebook Nudges Users to Catalog the Real World
Probably because of memory usage and garbage collection and the fact that java needs to be installed on most systems whereas C++ needs no dependencies

Well, GCC (as in the compiler collection) has had a ahead-of-time compiler for ages:

http://gcc.gnu.org/java/

There is also work in the LLVM camp on AOT Java compilation:

http://vmkit.llvm.org/

Atleast i wouldn't sleep well if i know that the heart of the internet was running Java :P

Well lucky you, only many other vital body parts are running on the JVM via Java, JRuby, and increasingly Scala ;).
A Plan to Give Mobile Data Bills a Makeover
I work at Douban, in Beijing, and I have the impression this post is only superficially spot on. Many Chinese developers are very much into open source, and have all the skills and dedication to participate fully in this movement.

Obviously they are coming later than most developed countries, and many geeks cannot afford to spend a couple of years on personal projects that are not guaranteed to yield enough game or revenue, but it is growing and promising, especially in mobile and hardware.
Keep blaming that victim. As for me, I moved off GAE over a year ago and now I wear as many short skirts as I want without the fear of someone telling me I deserve to be raped by Google.
Adding Real-Time To A RESTful Rails App
4 Productivity Tools That Work With Your Gmail Inbox
Power shifts at MWC: Samsung rises, Apple absent, Google hidden, Microsoft...
In Wall St. Tax, a Simple Idea but Unintended Consequences
For similar benchmark fallacies (and straight up scams) discussed previously, see "A web video company that is most likely a hoax" -

http://news.ycombinator.com/item?id=3211630

http://seekingalpha.com/article/316946-raystream-remains-und...
PeaZip is written in FreePascal + Lazarus: http://peazip.sourceforge.net/

Or, just check their screenshot gallery:
http://wiki.freepascal.org/Lazarus_Application_Gallery
The Occulus Rift will be the savior of wearable computing. Not Google Glass.
An Idea Is A Pointer To An N-Dimensional Array
Apparently not, if 4.3 million pirated copies isn't hurting their bottom line.
1.4 is work in progress

https://github.com/django-nonrel/django-1.4
Plastic body panels over a metal tube frame are nothing new, and doing them with a 3D printer is just a gimmick.

TVR made cars with tubular frames and fiberglass bodies for decades. And these were full on cars, not 3 wheeled toys.
Interesting point. I hadn't considered that the sounds of the waves would converge at higher frequencies.
I note that this title could be written in a different way.

"Suffering from depression? Would you like to be? Try a startup!"

I joke -- a bit.

I've been at this startup thing for a few years, and who knows how much longer I'll be at this until I'm happy with it. Probably never.

The more I do this, the more I begin to think 1) that being somewhat insane can help you in a startup, and 2) the people I really want to listen to and learn from are the guys who tried for 20 years. Somebody like Zuck who hit the lottery really has very little of import to share with me. I'm average Joe Startup Guy. It's a different world for us.

In all honesty, I'm not so sure I would discourage depressed people from startups. Freud thought that depressed people were just smarter than the rest of us -- they realized how truly the world sucks. So in some sense, they may be better equipped for startup life than other folks. Fighting depression is fighting depression. External stimulus has little to do with it. In fact, that's the definition of depression -- an internal state of being where you find most everything hopeless (or pointless). There are a lot of really rich, successful people who are depressed.

Suicidal people? Different thing entirely.
Bashing might be a bit harsh. Looks like the author is expressing legitimate concern about the proliferation of Python 2 over 3 and, let's face it, there are a lot of differences while 3 "is the future" as it says.

The percentages may or may not be simply a case of C++ verbosity, but without actually browsing the source, we shouldn't jump the gun on exactly what percentage of "heavy lifting" C++ is doing vs. Python.
A legitimate concern, but I wonder if it could be mitigated these days by some clever electronics sensing and compensating for this type of effect?
Talkbits voice chat app is Twitter for voice messages
http://download.cnet.com/8301-2007_4-57568712-12/talkbits-voice-chat-app-is-twitter-for-voice-messages/
Yes. Measure is the total length of the line. Whitespace adds to the length, so you have to count it.
While I used Redis and Socket.IO to add real-time to a Rails app, I'd be curious to hear what other people are using? Are people using commercial options for real-time?
It's very good. In fact, the open-source WMI Delphi Code Creator can generate the native WMI calls (and programs) for you in FreePascal, Delphi, C#, and Microsoft C++:

https://code.google.com/p/wmi-delphi-code-creator/
Would be so cool if you could go to your local shop and they could print you a new fender.

Though I guess those kinds of printers are really expensive and take days to complete a fender. So I guess for a long while you'll have to have a central location do all the printing. Which defeats the whole point really.
Facebook's Deal with Mobile Operators: Can It Take On Whatsapp, Viber, & Skype?
Turbulenz[1] looks very promising and their framework[2] seems to be quite advanced, well thought out with a really nice documentation.

[1] https://turbulenz.com/

[2] http://biz.turbulenz.com/developers
Worth looking if you like a close minded secretive attitude and living in the past. Profit from a technically bad & boring forum, report bugs in a home grown issue tracker which sucks and get example code through subversion.

The syntax of closures (they had to invent their own name, anonymous methods) is very long-winded. And generics? Only useable after several versions. Which leads to the most important point: quality is s*it (I'd suppose because they cannot tame the complexity any more).

Hello 'it works' likely won't get you far :-)

It's a pity, but the sooner they bankrupt the better. Something more focussed and contemporary might emerge or people invest and switch to FreePascal. Would love to have a native Pascal based ecosystem which would be innovative and friendly, like let's say, Xamarin!
That 'Welcome' popup keeps coming back after refresh, it's a bit annoying, for me at least... I closed it and selected to 'never show again', however it comes back. All I want to do is to look around without any tours... Just my 2 cents.
There is a python DNS server running on pypy that seems to get a pretty big speedup over CPython.

Here is the benchmark result:
http://speed.pypy.org/timeline/#/?exe=3,6,1,5&base=2+472...

0.002 for pypy VS 0.015 for CPython, which is 6.66 times faster.

So, for the last couple of years they have been wrong - since PyPy has shown pretty good performance in a DNS benchmark, so Python can have pretty good performance ;)
I would like to add that, speaking from personal experience, your mental state really slides downhill when you pass from just being uncomfortable to feeling trapped. You start thinking less of yourself, your interview performance goes down, and every failure to change your situation notches you down and actually makes your situation worse. Sometimes the only way to break that cycle is to say "Fuck it", quit, and do something on your own. At that point, any level of risk looks better than certainty because the certainty sucks so bad. That is the path I would have taken years ago, were I not stuck in Dallas. Would have been preferable to the 2+ years of hell I went through at my "safe" job until I finally found something else.
Everyday I use Asana for a client, and every minute I'm using it I'm wishing it was Trello
I agree that Go is a fantastic language for writing servers that need both CPU performance and responsively handle many connections.

That said, if you write the server in Node then you can share some of the logic between client and server without having to rewrite in another language. Examples where this comes handy in games:

- If the server runs the logic authoritatively, the client can run part of that logic locally to hide lag.

- If the logic runs on the client, the server can run part of that logic to catch impossible actions and detect cheating attempts.