skysight-inc/HackerNews huggingface dataset:
His handlebars had started slipping. Not badly, he said, just a little when you shoved hard on them. I warned him not to use his adjustable wrench on the tightening nuts. It was likely to damage the chrome and start small rust spots. He agreed to use my metric sockets and box-ends.

When he brought his motorcycle over I got my wrenches out but then noticed that no amount of tightening would stop the slippage, because the ends of the collars were pinched shut.

"You’re going to have to shim those out," I said.

"What’s shim?"

"It’s a thin, flat strip of metal. You just slip it around the handlebar under the collar there and it will open up the collar to where you can tighten it again. You use shims like that to make adjustments in all kinds of machines."

"Oh," he said. He was getting interested. "Good. Where do you buy them?"

"I’ve got some right here," I said gleefully, holding up a can of beer in my hand.

He didn’t understand for a moment. Then he said, "What, the can?"

"Sure," I said, "best shim stock in the world."

I thought this was pretty clever myself. Save him a trip to God knows where to get shim stock. Save him time. Save him money.

But to my surprise he didn’t see the cleverness of this at all. In fact he got noticeably haughty about the whole thing. Pretty soon he was dodging and filling with all kinds of excuses and, before I realized what his real attitude was, we had decided not to fix the handlebars after all.

As far as I know those handlebars are still loose. And I believe now that he was actually offended at the time. I had had the nerve to propose repair of his new eighteen-hundred dollar BMW, the pride of a half-century of German mechanical finesse, with a piece of old beer can!

Ach, du lieber!

Since then we have had very few conversations about motorcycle maintenance. None, now that I think of it.
You push it any further and suddenly you are angry, without knowing why. I should say, to explain this, that beer-can aluminum is soft and sticky, as metals go. Perfect for the application. Aluminum doesn’t oxidize in wet weather...or, more precisely, it always has a thin layer of oxide that prevents any further oxidation. Also perfect.

In other words, any true German mechanic, with a half-century of mechanical finesse behind him, would have concluded that this particular solution to this particular technical problem was perfect.

For a while I thought what I should have done was sneak over to the workbench, cut a shim from the beer can, remove the printing and then come back and tell him we were in luck, it was the last one I had, specially imported from Germany. That would have done it. A special shim from the private stock of Baron Alfred Krupp, who had to sell it at a great sacrifice.

Then he would have gone gaga over it.

-- Robert Pirsig
Zen and the Art of Motorcycle Maintenance
I'm a short while away from releasing a game made in C++/DirectX for Windows 8 (using the DirectXTK helpers and obvious APIs like XAudio2) - i.e. mostly 'from scratch,' more or less.

And I have to say - yeah, you definitely learn a lot from that kind of project, not least because you have to constantly bear the rather large technical overhead. And that learning certainly feels great. =)

However, I also have to say this: while the sheer power of the 'raw' C++/DirectX combo is enormous in terms of what games you could potentially make, the fact that even basic ideas take a comparatively long time to prototype is something that I think acts as a substantial disadvantage when it comes to the actual business side of things.

I think a lot of really interesting, innovative ideas for game mechanics (or game atmosphere or feedback or other critical and somewhat subjective aspects of game development) don't require the full horsepower (performance or flexibility-wise) of the raw C++/(DirectX || whatever) approach. A few basic ideas (which you don't have to realise from scratch) can combine to give unexpected results, some of which could be really interesting. Maybe it's like spanning a 2D vector space with a linear combination of just two different vectors.

(This might link in nicely with what Daniel Cook means by 'finite infinity' in his talk on game design [1].)

Just something to think about. =)

[1]: http://www.youtube.com/watch?v=f7DFuXDN29M&list=PL1A42B4...
Working link:

https://gist.github.com/tyre/5561992
Hm, I see your point.

But I still think that accessing the data of other windows to draw a transparent background is a great deal of complexity for a terminal emulator -- AFAICT it means the terminal emulator has to be innately aware of the innards of the graphics system it's drawing to.
Great post and analysis. I've been guilty of the delete/submit trick in rare cases where I believe the story is of interest to HN ;)

Thanks for the MySql dump and the Python code. Any way you can provide the parsing code as well?
shoot me an email.
Yes, I also noticed that when it comes to the really interesting things, it's almost always either C or C++. Operating systems, DBMS'es, interpreters, game engines, browsers and lots of other stuff. Projects like webkit, v8, unreal engine are all frighteningly large pieces of high-quality performance-critical software written in C++. I think it really deserves more credit.
Bitcoin inventor, Satoshi Nakamoto's identity revealed?
I don't really understand your post. You criticized D for having more features than C++, and Go for having fewer.
It's hard to understand even after reading about it :) .

http://en.wikipedia.org/wiki/Monty_Hall_problem

And I did take probability classes (and passed :) ).
You're free to argue that. But the fact that it is, and behaves correctly as a subclass of int, does not make Python be weakly typed. In fact, rather the opposite.
Main Website: http://elevatr.com/

TC Article: http://techcrunch.com/2013/05/10/elevatr-is-a-mobile-first-t...

I'm glad I stumbled upon this as it solves a problem I never even thought about fixing. My ideas are currently all over the place.. in Evernote, Notes.app, random text/markdown files and random bits of paper all over the office..

Gotta say I love the UI and I like how it forces me to think about the big questions - I've realised that by answering some of these questions early on I can filter out the ideas that probably won't work out.

My first thought was "This would be a great way to mine and steal ideas" so I went to check your privacy policy but unfortunately it's currently returning a 500 error.

Support for other devices / a web app would be a great addition too!
Is it just me or does it seem like half this article is missing? Maybe I'm just having a stupid day.
that website doesn't appear to have been updated for redistricting that took affect at the beginning of this year.

edit: house.gov has their own search that is just as simple and seems accurate.
I don't quite get his message, it contains things which I see as contradictions.

He uses "Square" as an example of doing it right. I have no idea what square is, but quoting the article:

> Square processes payments. They don't handle group payments, they won't auto pay your bills, and they have no presence online to compete with PayPal.

A payment service that doesn't handle all the use cases of payment? Isn't this exactly what he's saying you shouldn't do? Yet he quotes it as an example of doing things right?

I don't get it.
I haven't looked at D in a while, but I recall it having two competing standard libraries.

I'm pinning all my hopes and dreams on Rust, but as a frequent (ab)user of Boost.Coroutine and gevent I certainly wouldn't mind if Go gained a bit more traction.
Considering the expected audience for this book, isn't the $75 sticker price some form of racketeering?
I would try to maximize the delta(PSNR) per frame, as a first cut. There are also good perceptual difference metrics. I don't know what algorithm to use. Maybe just the absolute difference on each pixel. Or, you could think of groups of colors to enhance if you're willing to grow the size of the image.
Hit me up manglav: 1855zenmail@gmail.com
I meant under W3 there are more than one option for cache storage. http://i.imgur.com/OjbyvF2.png and APC is faster than memcached in a single server environment http://stackoverflow.com/questions/1794342/memcache-vs-apc-f....
I assume that most people using php most likely already have apc installed (or they really should).
Wake me up when there's a 3rd edition of The C Programming Language.
fossil (http://www.fossil-scm.org) together with pagedown (https://chiselapp.com/user/zot/repository/fossil-pagedown) would seem to fit this use case rather well. You can manage wiki data either in .wiki files or using the browser-based bare bones editor.
I'm unclear what you mean by foreground/background stuff. I'm looking at the manpage for bash 4.2, and I don't see any short-hand for the color escape codes in prompts.
Email 1855zenmail@gmail.com if you'd like.
This comes up a lot - if you use Chrome there's an extension I use to help with that: https://chrome.google.com/webstore/detail/select-it/fdhjbnho...
According to the manpage, ignorespace doesn't treat multi-line commands very nicely.
Agree. This is a poor article
There's also https://www.nearlyfreespeech.net/ which offers static site hosting for $0.01 per mb/month
Because HN == Reddit now.
Girl in title -> upvotes
https://gist.github.com/tyre/5561992
Exactly. I'm a (web) developer, mainly working with dynamic scripting languages, and honestly for my "play" at home, C/C++ is what I'm forced to use to do interesting things.

Although, I will say that Vala plus GTK+ is amazing for desktop development on Linux, especially with elementary OS's Granite library. The thing is, it's really just a nice language on top of C plus GObject as a transpiler!

I do wish that some other languages were as nice to use as various scripting languages, but with the performance and pure utility of C/C++. Maybe one day.
I thought that was kinda the point. Get it out of your head so you can continue focusing on your current project.
Now You Can Fork U.S. Government Policy … On GitHub
Square nails their use case of "allowing people to pay in person with a credit card." That's Square's problem. They aren't focused on being the generic omnipresent payment processor, just making physical transactions possible without cash or checks.

Edit: I do agree that the author really sould have made the problem statement more clear.
Ask HN: Any game programmers out there who learned to code after age 25?
Game programming is like voodoo to me. I get the feeling you need to have started game programming at a young age to understand and make a career out of it. That or at least go to a good college that teaches it. I can self-learn web development, but I'm not sure I could self-learn game programming.
http://www.reddit.com/search?q=how+to+talk+to+girls

This is sad.
I had a really hard time parsing your comment. Anyway, writing narrowly-scoped CSS speeds up development a lot. If you're fighting the specificity war, or have coupled your HTML and CSS too much (I don't at all), your front-end code will degrade over time to the point of being incomprehensible (in my experience). Your marginalizing of CSS-related work says to me that you haven't had to maintain large web apps, where CSS quality is that important.
Erm, APC can be used as a memory store, too.

http://www.mysqlperformanceblog.com/2006/09/27/apc-or-memcac...
Things initially developed for a particular small group of people usually have the potential to affect non-targeted users. The dilemma here seems to be whether you want such group of people to give you financial incentives for building something.
Here's the aforementioned article, if anyone else is compelled to read it like I was

http://jeremykun.com/2011/06/26/teaching-mathematics-graph-t...
Would that be sufficient for a court of law, that merely the company ordering it is sufficient to incriminate them?
Prediksi Skor Bola Everton vs West Ham 
Prediksi Skor Everton vs West Ham 12 Mei 2013. Prediksi Sunderland vs Southampton. Prediksi Pertandingan Sunderland vs Southampton.

Pertandingan Liga Premier Engglish kali ini akan mempertemukan Everton sebagai tuan rumah dan lawan nya West Ham yang berlangsung pada hari Minggu tanggal 12/05/2013 di Goodison Park.
At least it's the sort of mountain peak where you can initialize user data types with {} and use closures like every other language in existence. It's a much better peak than it was three years ago.
I am currently doing a small performance intensive project in C++, and my take is that C++ has been a good fit for this.

But you have to consciously decide at the start what set of features that you will use. And no more. Because C++ has multiple usable subsets. Find one. Stay within one. Avoid confusion. (Particularly if, like me, you're not a C++ programmer and don't wish to become one. Then you can have a clearly defined boundary of what needs to be learned for the project.)
I seriously wonder about sample size and representativeness. What projects are they looking at in either group?
For a while bash autocomplete was around, but you had to know to source it from /etc, which seems dumb. Now this stuff is sourced automatically[1].

[1] And sometimes they use it as a 'cheat.' virtualenvwrapper (on Ubuntu, and I assume Debain) is dropped into /etc/bash_completion.d/ instead of somewhere in $PATH. Meaning that it's auto-sourced for bash users, but zsh users need to know where it is, and source it. It seems stupid to put it in the bash_completion directory. Sure it has some completion stuff in it, but the bulk (and purpose) of the file is to setup a bunch of wrapper shell functions. It's like they didn't have a formal place to put it so they just jammed it somewhere.
Considering we've been trending toward the megacorp world for quite some time now you're probably better off growing/farming your own food and not worrying about the rest. That or starting your own pharma company for ulcer medication and antidepressants.

That said, it'd be an interesting project, even if the metrics would be a complete nightmare; am I more pro- environmental regulation than I am pro- gun control? How do you rate Company X lobbying for Bill Y on a scale of Things I Don't Like?. I suppose you'd have to go down a machine learning path for individuals, maybe starting with presenting alternatives for whatever thing you're interested in spending money on, a la the plain English terms of service site that was set up a year or two ago (that I've lost the URL for[1]) and building a profile from there.

Realistically though, I think the whole exercise would just depress anyone who took it on.

[1]It was indeed http://tosdr.org/ - Thanks :) re-bookmarked!
Proposed law in North Carolina would block Tesla from selling cars in the state
That's my point - who's testing the mechanical characteristics of the retaining fasteners of the enclosure that the electronics load simulating is housed in? Is that part of any spec? Is it at all relevant to the success/failure of any of the space-rated or mission critical equipment?

Me, I'd _happily_ hot glue the cover on if it were more convenient to me at the time. I see this as mostly a workplace safety issue - the screw holding the cover on is _not_ "part of the test", it's mostly to keep accidental fingerpoking out.
To be honest, I don't believe that if someone provided a patch, it would be accepted. I also don't "expect people to become core maintainers in every project they want features to not be removed from".

But I also believe it is crazy to believe that simply using a piece of free software gives you any right to dictate the feature set of that software.

One, the freedoms granted by free software include the right to modify and redistribute code. If you want to re-add a feature, fork the code. If the community sides with you, you will become the de-facto upstream.

Two, just because a user is vocal doesn't mean his/her incentives align with those of the developer. If the developer is working in his/her own time, he might prioritize things that are important to him, like, say, porting the terminal emulator to Wayland, or keeping only features s/he cares about. Or, perhaps the developer is being influenced by an external body or benevolent dictator.

I also find your "users can make informed decisions before a feature is yanked from under them" comment confusing. Presumably a user could always downgrade the package, or use source control to build an older version, if the missing feature is indeed mission-critical. If this risk is really unacceptable, they can make an informed decision to not upgrade, or to purchase a support contract.

It seems to me that the developer's communication skills are reasonably adequate, so I don't object to continuing to use gnome-terminal. I assume that the people who approved them becoming a developer would feel that way too.
I write ANSI C for a living, and I still learn new tricks and insights from the second edition. In fact, many of the neatest ways we use C are things that we learned from references published the 1980s and early 1990s.
I like C++, I think I know it reasonably well, I've been programming in C++ full time for the last 10 years.

I never managed to warm up to Stroustrup's book. I've tried reading it a couple of times. It feels like a schlep. There are many great books on C++. Koenig and Moo, Josuttis, "Effective C++", they all convey the technical information and at the same time read like page turners. I only read fragments of "Thinking in C++" but I think it's in the same category, it reads great. Some of them will no doubt have new editions, updated for C++11. So, not that there's anything wrong with Stroustrup's book, but it just can't compete. Much as I'm looking forward to reading a book on C++11 the language--there already exists an excellent one on the standard library, which is the new edition of Josuttis--it will not be "The C++ Programming Language", 4th edition.
Redis doesn't actually provide much here. Use nginx caching directly. That gives you all the nginx cache handling goodies. Then, if its really necessary (probably not) you can put the cache directory into mem with TMPFS.
Not to mention- let's say you have a truck that does 200 miles on a charge, like the current Teslas. Then you put a 5,000lb boat behind it. What is the range now? How close is the water?
Well, that's still pretty vague.

It seems like what you did there is just reformulate the problem statement to make it look like a stand-alone problem instead of as a use case (or subset) of a large problem.
i m certain you can put in the contact condition that a specific person died the work. imagine if i was a musician talked with composing a song for a game. the client contact to Mr because of me . they won't be happy if they find out that i sub contract it out.
>a la the plain English terms of service site that was set up a year or two ago (that I've lost the URL for)

I believe you're referring to: http://tosdr.org/
No resentment here. If couldn't have afforded the ~$45K for the truck, and the few thousand dollars per year for gas and insurance, I wouldn't have bought it.

I don't get people. I don't own the truck for social signaling, I own it as a tool, just like my welding gear, my CNC mill, and my laser sintering 3D printer.
D doesn't have two competing libraries anymore. There's just one, Phobos.

Regarding Rust, Rust has lightweight green threads just like Go does. (Go's scheduler is currently more mature though.)
Who are you to second-guess what any particular person means when they use the word, "depressed?" Just curious.
Disclosure: I'm a new guy at Microsoft, not related to Kernel or Windows stuff.

So where does he back up the claim that NT kernel performance is, in fact, "behind other OS"?
"A little bit for everybody is a lot for nobody"
> Why? so they can argue will fellow core devs?

So they can be an active participant in the decision-making process. Right now, they're powerless -- like serfs or peasants.

> You need the background to be (semi) transparent, and the text to be fully opaque.

I will admit that I didn't notice this distinction before -- I found the transparency too visually distracting to leave it turned on. I'll admit I erred here.
People buy cars on emotion not rationality. It's the same reason someone wants 4 wheel drive even though they might only need it a few days per year.

Depending on the circumstances though, those couple days you need it might be absolutely crucial. It's very easy to think you'll need 4WD when you never will, and many people do, but frequency of use is only part of the equation.
300-400 miles in an urban environment? Surely that's 8 hours of driving right there - how does he find any time to work?
1/ google docs
2/ yes, shortcut on my homescreen to it
3/ nope, its always one tap away
4/ no, i check from desktop and phone several times a day
Some of this sounds like it really complicates the layout code, but I'm not sure I'm reading it right. Take, for example, a standard dialog template. If I have a large number of dialogs for editing user/products/whatever, all with the same basic `<div><label><span><input>` layout, it sounds like he's saying that I can't rely on the dialog template to format my labels, I have to apply the `dialog-label` class to every label in every dialog. Almost every tag in my doc will have a class attribute, since I can never rely on selectors to apply the right styling. In general, selectors are almost never used and classes do all the work.

Am I reading this right? Or are templates an exception? I need to re-read the template/component thing a few times to figure out exactly what nomenclature he's using here. But in general, I'm not sure I see the advantage of `.modal__form__item` vs. `.modal .form .item` except that the first is exponentially more verbose in the html.
> That said, it'd be an interesting project, even if the metrics would be a complete nightmare; am I more pro- environmental regulation than I am pro- gun control? How do you rate Company X lobbying for Bill Y on a scale of Things I Don't Like?. I suppose you'd have to go down a machine learning path for individuals, maybe starting with presenting alternatives for whatever thing you're interested in spending money on, a la the plain English terms of service site that was set up a year or two ago (that I've lost the URL for) and building a profile from there.

It is even more complicated than that.

What about some company that uses a Chinese factory that is known to employ workers under 18?

Evil[1] right?

Well sure, unless you dig in to the numbers and find out that the company mandates no under age workers in their portion of the factory.

[1] See discussion below, definitions of evil vary!
It bothers me that you think the opinion of the people in the original bug report is representative of all users.
I think you're talking about power density.
Really? How much do you think the US spends on its military presence in oil producing regions? Made up? I think not.
Interesting, thanks for the details
It looks like a Scientology pamphlet.
From what I've heard (unofficially) the source is typically watermarked to identify the sources of any leaks. He may have given himself away with the SHA-1.
To expand on what the other poster said: VALUE_ONE, VALUE_TWO and VALUE_THREE are ints. That is their type. In most cases, though, groups of constants have some conceptual type that is entirely separate from integers. It's nice to formalize that concept in our code with an actual type. That way, when we say a function accept that type, we can't also pass it a random integer. Or returns that type, we can't return a random integer.
The impression I had the last time I used this feature wasn't that it used RGBA -- if that was all that it was, then I'd expect you'd be able to set a transparent background with a gconf value or something.

What I recall was that it would somehow grab the bitmap of the area behind the window, and then draw that partially transparent as part of its own background. The way you could tell this was happening was to use a asymmetric image (like, a flower or some landscape photo) and notice the background "sticking" as you drag the terminal window around.