skysight-inc/HackerNews huggingface dataset:
Yes, a for loop is ridiculous for a string copy; K&R do it like so:

while (*t++ = *f++)
;

The pointless comparison to 0 is removed, and the semi-colon is required to terminate the statement. Of course, the point about this version is, once you understand it, it's trivial to recognise. Parsing the 'full' version, especially as formatted in the article, takes a lot longer because it's not familiar and contains more parts to read, any of which could deviate from what might be expected. The other positive is much more code is visible at once.
Ask HN: Biological Bitcoin?
I'm wondering what a biological implementation of Bitcoin would/could look like. Like a chemical process that takes time to produce a rare molecule which can be encoded with transaction data.

Is this possible? How would this work?
You're forgetting the opportunity cost to buy other things.

In 1997, Yahoo turned down the offer to acquire Google for $1,000,000.

That was not a good call. I wonder how many other missed opportunities those $3.8B had.
retardness of Android phone manufacturers (especially Samsung) gives them an excellent chance to gain a significant market share

Are you serious? Samsung has a huge market share- more than every other Android manufacturer. And you're saying they are "retarded"?
Current skimmers need a horizontal swipe to read. This device requires the user to insert the card in the wrong orientation for the skimmer. The device holds onto the magnetic strip end of the card while it rotates, so it's not possible to skim after the device has performed the rotation. It's not clear how difficult or easy it is to make a skimmer that reads a card that is swiped vertically, though.
Examples: "Lamp", "Desk", "Monitor", "Headphones", "Mouse" ... Internets, Googles, Yahoos, Twitters ... WTF are these things asked just about everyone ever

You can't name your product "Google Friend List Where People Can Exist In Multiple Lists At The Same Time," just as much as "anti-people-in-ivory-towers-who-think-they-can-unilaterally-do-whatever-they-want" (from your future comment) makes not sense.
"Shazam this" graphics feature regularly on telly ads in Ireland and the UK the past while.
Background and a picture: http://www.foxnews.com/us/2013/05/12/can-own-piece-history-f...
Are they personal attacks? Absolutely.

Are they a bad idea? No doubt.

Are they illegal in some jurisdictions? Possibly.

But they definitely aren't a hate crime - they are simply an internet mob action on their victim du jour. None of the attacks on Adria Richards were done because she was a woman. They were done because of the choice she made in needlessly tweeting and publicly shaming the jokers sitting near her, and triggering a social media firestorm. A man in the same situation would have been attacked just as vehemently - indeed, many men have been the victims of internet mob action.
That's my plan. I had head that it was a pain if I had UEFI. Any idea on how much of a pain? I just haven't gotten around to it yet.
The problem with MS is that their whole business has been about propping up either Windows or Office. Both are in jeopardy now and Microsoft is panicking, trying to save these products without the reference frame of what they really are, other than the two businesses that every other Microsoft enterprise is designed to uphold. Even the Xbox exists simply as a way to underscore the foothold of DirectX and keep Windows PCs the primary platform for 3D simulation.

Look at Windows 8. MS saw the tablet market explode and started to panic, aware that this may replace a lot of Windows PCs that would otherwise be sold to casual users. So they decided to integrate tablet stuff into Windows, so that Windows gets on devices that have this desirable form factor for casual users, and then they get the added bonus that the programs that work on their PCs will work just fine on their tablets and vice-versa.

This is actually a somewhat compelling proposition, the issue is that the implementation was horrific. Microsoft, in their attempt to continue universal dominance, failed to realize that people still on normal form factors, including the business market, would not take kindly to a full-screen, huge tile start menu, which is impossible to actually replace with something real, only a bunch of rough hacks to try and get back to a normal-type start menu. That's an interface for a casual device, not a serious business device, but MS has pushed it onto everything.

Microsoft needs to come to terms, and it can continue and adapt to market conditions. They may have to give up a little bit of ground in the short-term, but they at least won't stamp themselves out of existence. OS X is a consumer-centric OS. Android and iOS are consumer-centric OSes designed for entertainment and/or casual use devices. Windows is still the undisputed king in user-facing business systems. They should really not be revolting their business users by forcing them to learn certain mouse gestures in certain menus to find a shutdown option, or blanking out their screens with humongous, disruptive context switches every time someone wants to open a program. This is much, much worse than the iOSification of OS X that some have bemoaned, for instance; while there is an iOS-like menu, it hasn't replace Spotlight or Finder, and you can use your Mac without that intrusion if you choose. Even Apple recognizes that the interfaces are not directly and universally applicable to the different devices.

If MS recognizes that they need to focus on enterprise and conservatively integrate reasonable niceties from consumer-facing systems, they have a future. If not, they'll continue to flail about trying to be all things to all people, unwilling to accept that the tech landscape has changed and Windows may not be the universal thing anymore, and kill themselves.

Without such aggressive Metro integration, no one would have had any gripes with Windows 8. MS should quickly repent and issue Windows 9 with Metro as an optional extension and a classic explorer.exe shell as the default, because that's what business users need and expect.
I think you have comprehensively proved that yours is bigger.
This reminds me of 'Gödel's Second Incompleteness Theorem Explained in Words of One Syllable'

https://news.ycombinator.com/item?id=4197284
> By now it should be clear that "government" as a tool to social engineer a perfect world, isn't working.

Perfect is unattainable, but engineering a better world seems to be working over the long term (though "engineering" might be overstating the process) however chaotic and back-and-forth things are over any short time scale, and government seems to be a pretty darned important tool in that process.
The Up-Goer Five Text Editor is a pretty great resource with similar constraints: "Can you describe a topic using only the thousand most common English words?"

The results in their Hall of Fame are fascinating. It's inspired by the xkcd linked elsewhere in this thread.

http://splasho.com/upgoer5/halloffame.php
Yes, but then Google and Apple didn't gain hundreds of millions of new users every year with completely different operating systems than Microsoft's.

Also "record financial record" thing can be very misleading for a company. It's not a predictor of success for the next few years. Competitiveness in the current environment is.

RIM fell for the same fallacy for years. RIM actually had a "record quarter" in 2009, and they were still growing into 2010. The problem is they only tried to change when things started getting worse - around late 2010 or early 2011.

They really should've started changing course in 2007, or 2008 at most, after the iPhone came out. But they didn't. Because they also thought their financials are improving, "so they might be doing something right". But all they needed to do to see if they are or aren't doing something right is look if their phones are competitive with the iPhone (and later the Android phones). And they clearly weren't.

Microsoft's biggest problem, as with all companies getting disrupted, is that the new disruptive technology arrives at a significantly lower price. Sure you can buy Windows machines for $300-$400 bucks, but the are nowhere near as good as the Android/iOS ones in terms of performance and what you get for the money in terms of hardware. And the price point is only getting lower.
Age restricted as inappropriate by UK filters, presumably because it contains "four letter words". Great one O2. Nothing like restricting access by our kids to educational material.
Is Microsoft's stack easier and cheaper to replace than Apple's? Or Google's? I reckon you could easily move a company off both of those....

Considering the number of companies who apparently can't/won't move off XP (or even IE6) or Windows 7, it looks as though the Microsoft stack is quite deeply embedded in businesses. As was IBM's, and IBM is still a $100 billion (annual turnover) business about 15 years after it became irrelevant.
> Technology can never solve social problems.

It certainly can facilitate solutions to social problems.
I think this design might work better if the pivoting part were moved internal to the ATM. It'd avoid vandalism, and maintain the benefit of the sliding behavior occurring along a path inaccessible to the skimmer. The obvious downside to such a design is that you'd need to replace all of your ATMs which is why, I'm assuming, this design included the pivot mechanism on the outside.
Not exactly discreet, anyone wearing the dorky glasses will be automatically labeled dork, and when they start winking at things they want to photograph it will just be super creepy.
Art or invasion of privacy? Rights in the modern age
First Yii 2.0 Public Preview
I think I've adequately described the situation I'm referring to and the reason I feel violence is justified in that situation. Somehow you're ignoring all that. If you're in a bathroom, you're inherently close quarters, there's generally only one exit, there is an implied expectation of privacy, and witnesses are not plentiful. It's pretty obvious when looking has potential to turn to touching. That line exists right around the distance that touching is possible. If I can land a solid punch on someone's nose without taking a step, they're too close.

I'm trying to figure out what your agenda is; if you're trying to lead me into a trap. Are you trying to catch me saying that I don't hold the same standard to women? Because your "at a concert or on a train or in a bar" example misses the whole "nude" and "expectations of privacy" part of this story, not to mention the "trapped in a room with one exit and no witnesses".

Would I cross the room to punch someone? No. Would I use force to get them away from me? Well, isn't there a whole industry built up around women's self defense courses? I'm not answering your question because I don't feel comfortable with your intentions. I think you know the answer, I just don't know what you're trying to get me to say.
I am (sadly?) not in charge of those high-end decisions, though I think we're pretty tied into Oracle Hyperion.
CPU/RAM/battery stats chart bar for tmux
Ask HN: Code to edit displayed files based on password entered?
Have you seen a good library for editing displayed files on your hard drive based on what password you entered?

So if I entered "password1", I get my normal files. If I get "password2", I see limited files, or special files, or a different user's files.
How to save your app from app store rejection
For those interested in more about the algorithm, one of the guys who created Shazam released a whitepaper on it. http://www.ee.columbia.edu/~dpwe/papers/Wang03-shazam.pdf
Yes - I'm.

Let me give you example from the past.
Yahoo! Mail was the leading email provider before Gmail. And one of reasons of Gmail success is retardness of Yahoo!: they were actually actively working on making Yahoo! Email less useful (restricting IMAP support, restricting storage, adding more ads, etc.). The similar things Samsung is doing now.

The same could be said for MySpace. And Informix (their CEO actually went to jail).

In sort, past performance does not guarantee future result.
One month after being kicked off the App Store, AppGratis launches on Android
I work in embedded software, but I've always been a bit weak on the hardware side of things (I know quite a bit about hardware, but I always had to drag out an electrical engineer for problems they deemed trivial). I took the MITx Electronics and Circuits class, and so far it seems that I haven't found an employer who cares one bit. I hadn't put it on the resume/CV, but I have mentioned it in cover letters and such for employers that it seemed relevant.

I wouldn't let this point of pessimism stop you (it's not stopping me, I'm taking Machine Learning now). As others have indicated, this will probably let you pass job interviews others can't. But in my experience with regard to the job application process, it will likely be something they ignore, and I would try to get them to talk to you about it in another fashion (bring it up in the interview, cover letters, etc).

Note that this is from an US perspective, I know the ideals behind a CV and a resume are quite different so you may want local advice. However, if I were making a CV for an academic position in the US, I'd probably still leave it off.
To Developers Who First Use Bootstrap (Two)
Why not give someone an opportunity? It looks like you are getting people, but you don't think they are any good.
... or cruise missiles ready to launch straight from the container, if this Russian weapon-maker's video is to be believed:
http://www.youtube.com/watch?v=zIgvGpH2smY
The marker is scientific and important, the arbitrary cluster is socially determined. If you've got the gene defect for tay-sachs are you jewish? or do jews usually have it? What if you're black but you have that gene because of one ancestor? Being a Jew doesn't make you magically susceptible to this genetic disorder and being recognizably black does not make you immune from the disorder if you have the gene.
To be fair, I think many would be in support of the prime minister having to have sex with a pig on live TV episode.
>>>so for any external observer (client, manager, user, etc) there was no value added.

Wouldn't it be reflected in a drop-off of calls to Support/CS?
I don't know much about the mechanical implications of this, but why not move the sensor instead of the card? Put the card in longways first, halfway in. Motorized sensor moves across card to scan it. There wouldn't be enough room left over for a skimmer that would still allow the ATM to read it and even if there was a skimmer, it makes the skimmer that much more expensive, since it would have to have a motor too.

I assume it would just be prohibitively expensive.
The difference is Google is paying a lot of famous people a lot of money to wear Google glasses. That is not the sign of a company making an awesome innovative solution people want and have a use for.
I don't think anyone would seriously advocate using awk for complex projects these days, but the idea of keeping data really close to the OS/shell is a very powerful one.

Take Python, which is supposedly a "scripting" language, but requires relatively painful amounts of boilerplate to actually read from or write to pipes, etc. It doesn't force you to keep everything in Python, but it certainly nudges you that way. Without naming names, certain statically typed languages that are obsessed with safety are even worse in this regard.
> It seems most media outlets and popular blogs really have it in for Microsoft, and that must get to you after a while.

Journalists have been Apple fanbois for decades. Even when Apple was in the shitter, they were loyal. So it's no surprise that they're taking every chance they can now to gloat about Apple's success and Microsoft's (supposed) decline.
Plenty of people hate Microsoft so don't expect rationality....
I haven't had a chance to google for a source so take this as anecdotal but I vaguely remember reading an interview with the people behind it (when Shazam first launched in the UK) and in it they said they were ripping thousands of CDs a day/week (can't remember which) and running each track through their algo. Can't remember if they bought the CDs or had some deal in place with the record labels.
Peter Thiel invests in P2P currency exchange
Show HN: Post Anywhere is a Chrome extension to post to any social network
This seems pretty obvious. I can't imagine folks whose job it is to build these machines to not have hopped onto this idea. This raises the question what's the downside of these?
Definitely. This is one of the largest benefits of open source software to me.
Nice job.

I don't want to presume anything. Did you purposefully shorten the workout from that described in the ACSM article? It indicated 30 seconds on and 10 seconds off. (Your total duration variable should be 480--don't ask me how they added that up to "7 minutes"!) This has lead to some confusion in the comments here. And, although their intervals are somewhat arbitrary, and asserting this routine is "scientific" is debatable to begin with, it would be more accurate.

Again, great job.
Consider this: if I bump you (even unintentionally), by the strictest reading of the law, I committed assault and battery. That's obviously ridiculous, so we use our common sense to keep society functioning. We consider intent, and the likelihood that someone would feel genuinely threatened by someone else's actions.

SO, to paraphrase your example: an average woman, who might lack the physical means to feel safe in the presence of someone who might be larger and looking at them in a sexual way, would be justified in feeling threatened.
We're[1] using reactive programming in our web framework to simplify UI programming. If you've done UI programming before you know it's all about event handlers. If you have multiple inputs and outputs, and a complicated graph of what inputs affect what outputs (either directly or indirectly) then it gets extremely messy to try to track all that with event handlers. Often you end up having one big function that takes all the inputs and updates all the outputs, and trigger that big function whenever any of the inputs change--but that's inefficient if not all of the outputs would have been affected by a particular input change. None of this is a problem with reactive programming (at least not the kind of RP practiced by reactor.js and our framework, as well as Meteor which is where we drew our inspiration from).

So for us the benefits boil down to 1) almost no UI event-handler boilerplate, 2) more robust because the relationships between these different components don't have to be declared separately and can't get out of sync, and 3) much easier to do partial recalculation.

See [2] for an example that is coded up in one "traditional" UI framework, one UI DSL, and one reactive UI framework. The relationships here are very simple but you can at least see how little boilerplate you need and how much more direct the relationships between the UI widgets are.

[1] http://rstudio.com/shiny, http://rstudio.github.io/shiny/tutorial
[2] http://www.r-statistics.com/2012/11/comparing-shiny-with-gwi...
What are you reading? Because it is pretty clearly not what I wrote. How is "I wish TDD advocates would stop equating unit testing with TDD" vitriol? Dismissing the only actual evidence because it doesn't fit your beliefs is not reasonable. TDD advocates are the one making claims. Nobody said TDD is harmful, just that it has no benefits and that TDD does not equal unit testing. As for not thinking the article author is cultish, try reading the first paragraph. It is literally "TDD is everything, all hail TDD, TDD solves all problems" and is all completely baseless.
When it was VisualAge, it seemed like a pretty good UI back in the day, and compared favorably to the Borland and Microsoft products in use then. So I think maybe IBM can be let off the hook some.
Give it a year or two, regular looking glasses will have these features too. Then the real problems begin, unless you want to start banning all glasses.
No, it's not common. Language drift happens through usage, though. I happen to like gender-neutral pronouns, because I like messing with linguistics and conlangs, so I use them in hopes that other people will use them, just like any other neologism.
Will definitely have to give this a try. I've been more than put off my the menagerie that is the mixpanel interface (course GA isn't any better).
The US is one of the most energy efficient economies in the world. The US consumes a lot of resources because it still produces so much of the world's GDP. And we're constantly inventing new resources and better ways to extract them-- we're moving towards being a net exporter in some energy categories, and we feed much of the world.
looks like modern day Frank Abagnale Jr. to me. Only thing is it has a lot of moving parts. I think more maintenance and power issues. Hope they work out the case when the machine fails in middle of operation. People will break this add on in that case.
Am I being pedantic? That really should be four letters or fewer.
You can. For java if you have a source directory, you New Project -> Java -> Create from existing source code. If there isn't an option for that in php, its because no body has written it, not because its not possible.
Sounds like something already covered by a operating system based upon username/passwords file permisions and use of groups. If user in group wibble then any file with read and write permisions allowed and in if in wobble group they can only read and if in neither, they wont even be allowed to see them.

Beyond that, find programs you can edit files and add a wrapper ontop to demand passwords. Once you have something you like then can expand. Can do it in shell/script easily enough, though depends upon exactly what you want.

No point in having one program that caters for your editing when another program outside those controls is just as accessable. So with that you won't want to to be rewritting edit programs.

Another option would be looking at source code control SCC systems, may be a handy repository that would enable the control (and more) you may want, also get version control ontop which raises the area overlooked - auditing. If somebody changes a file, you may want to know who later on and why.
So defensive!
Sorry guys, but I don't buy your defeatist arguments for one second. Sure using traditional tools, you may be right. However, all we have to do is look at the brain with its 100 trillion Connections (axioms) or a CPU with its billions of transistors to see that your logic is flawed. If it was not possible to design fault tolerant systems on large scale neither of these two examples could exist.

I don't claim to have the answers, but a few years ago, I had to help out some EE's write some testing software in
LabVIEW. The first thing that shocked me was the system was immune to bad data. Secondly, how elegantly it took advantage of our multiprocessing and multithreading hardware.

What I wish systems researchers would work on is concurrent, signal-based, synchronous languages. This is a winnable game, but we must swallow the red pill and change the rules of the game with new tools and fresh ideas.
They Only Remember The "No"
In this context it seems appropriate. During a conference or in a professional settings or in a church it wouldn't.

Appropriate is a relative term.
It was in fact the latter.

(I was inspired in part by Douglas Hofstadter, who did something similar on a smaller scale in "Le Ton Beau de Marot".)
Isn't the whole point of the "smart" that the card is difficult to replicate and must be present?