skysight-inc/HackerNews huggingface dataset:
> The cycle-counts returned by cachegrind are repeatable, to 7 or 8 significant figures. ... I don't think perf is quite so repeatable

It can come close. I just tried, and for 'speedtest1' seemed to be getting 3 significant digits for the cycle counts, and 4 for the instruction count. You'd probably gain another one or two if you were to measure computation only and remove the printf() and other I/O statements. The underlying performance counters are pretty much cycle accurate.

> cg_annotate utility gives me a complete program listing showing me the cycle counts spent on each line of code... If perf provides such a tool, I am unaware of it.

Yes, that record/report combination I quoted above does just this, with insignificant runtime overhead. Unlike the total counts, this one is sampled, so you might get a little more variation. It's definitely good enough for quickly finding hotspots, and there are other (harder to use) tools that can use the precise "PEBS" events you need complete counts. These even allow you to do nifty things like track the number of times each branch statement is mispredicted.

> I'm measuring the performance on the "cachegrind virtual CPU" of a binary prepared using GCC and -Os because that combination gives repeatable measurements that are easy to map into specific lines of source code.

Absolutely, this is the right way to view cachegrind. My question would be whether it is the right generic CPU to be using, and whether optimizations made on it translate well to other modern CPUs. Many of them will, but I think you'd have faster turnaround time even better success with an approach that uses a real CPU and its performance counters.

> I'm finding cachegrind to be a better tool to help with implementing micro-optimizations.

Please realize I have the utmost respect for your work on SQLite. It's my most frequent answer when asked for an example of C code to study, learn from, and pattern after. I'm certain you will manage to optimize it with any tool you choose, but having spent many hours with GProf and cachegrind myself, I (will the zeal of a recent convert) think you'll be amazed with some of the things that are now possible with performance counters.
A little bit off-topic: Would it make sense to use something like this for GPG? It feels safer than fingerprint to me and it's definitely better than those smart card readers that with keypads.
What is the difference between plastc and Coin? And why would I use this over Apple pay?

Will retails at the mall accept these cards? Usually the bigger chains are picky about credit/debt cards.
In Sweden I can do this...you launch a desktop or phone app, tell it what limit you want on the card and when you want it to expire, and it gives you a number w/ CVC code that you can use instantly.
I always find stories like this troubling because 1) how much of it was actually driven by the parents? 2) what's going to happen when it's no longer a quirky action by a cute little girl?

Planet Money's podcast 567 covered an assertive, outgoing little girl who was making good money by buying lollipops at retail and going around selling them to adults at a markup. She acknowledges that it only works because she's adorable, and that her sales have dropped as she's gotten older.

Maybe this kid is really driven and will go on to great things, or maybe she'll end up burnt out and miserable because her primary value turns out to be her youth and novelty.
There's an enormous community of people who spend all their time worrying about the contents or behavior of Windows binaries. I've met some of them through my work, like malware analysts who deal with malware that's part of phishing attacks. The phishers will often prefer to create Windows-only attacks because Windows has such a commanding market share lead among most populations of phishing targets; in turn, that's what the people trying to defend against or mitigate those attacks will study. To folks in that sort of field, "binary" is virtually synonymous with "Windows binary"!

I guess also historically most of the tools for creating, modifying, and examining binaries for a given platform have been native to that platform, rather than cross tools. That's surely because most people (with the exception of embedded developers) do much more native development than cross development. I can get a small number of packages on my Linux machine that will deal with Windows executables in some relatively shallow way, but I have tons of programs already installed that do complicated and specific things to Linux ELF binaries even though I don't typically use those programs on a day-to-day basis.
I can reverse a linked list even in my dreams. But I was not able to finish the coding under the pressure and time constraint. I explain all the pointer manipulation etc and interviewer was satisfied (unless he was lying :) ).
Boats can travel faster than the wind because (ignoring surface resistance), they make their own 'wind' thanks to their speed. That wind combines with the true wind in generating the lift on sails even when the boat is travelling at wind speed or higher.

~~This can't happen if the boat is going straight downhill, because the apparent wind would be zero (as the boat is moving with the wind).~~
[ETA: that's not actually true in the general case. You can't have a sailboat move downwind faster than the wind, but if you have a gear mechanism and a turbine you can do it.]

But when tacking downhill, the movement of air around sails still generates lift.
For the jobid example, the stringify is necessary because the jobid returned by the server includes a # symbol. Try the code you suggested and you get the result: "Error: ContextExpansion Error: jobid is in incorrect format."
Nice job Brent
I also get rather high Openess and harmony scores, though I'm particularly amused that Hedonism is scored. How can I be 72% sympathetic and 47% coopoerative but not agreeable?

The IBM documentation doesn't really say anything about how these numbers are calculated
The Power of the Uniform: Eye-Opening Experiment Shows How Easily People Submit
That shows you how much I'm out of touch with the world. But I would have discarded the idea had I thought of it thinking that if you're reading this and have a working internet connection that you most likely have at least a little bit of money. I really need to be more inclusive with my thinking, thanks for pointing this out.
Portugal has MBnet, with a web interface and an Android app, as I recall. It works as advertised.
This is the most well-expressed comment I've read in a while.
I'm currently reading The Dispossessed by Ursula LeGuin and it's a very interesting contrast between a society of ownership and one of no ownership.
Facebook, Twitter also use gmail
This isn't working for me (just hangs on Loading..) using up to date Chrome on OSX. Anyone else having better luck?
Lego Movie, Kung Fu Panda, and What I Learned about Running a Great Company
You can reference check or see code in github. If nothing is reliable then just invite candidate and play Russian roulette :)
Show HN: My first App – TopWear
I'm excited to introduce my first app for the iOS and Android store.

My team and I have worked hard to get a viable product into the wild to see what traction it gains.
Be as brutal (or kind) as you may, I'm interested to hear all your comments.

https://play.google.com/store/apps/details?id=com.greenhooddev.topwear&hl=en

https://itunes.apple.com/us/app/topwear/id926254303?ls=1&mt=8
If you recognize the guy in the ad, he is the CEO of the ad company http://sandwichvideo.com/
Crocodile in the Yangtze: Focusing on the Right Customer Segment
You can tell that the CFAA got created during a period of moral panic about computer crimes (e.g. "a single hacker could take over our nuclear warheads and start WWIII" which is actually what the movie War Games (1983 Vs 1984 for the CFAA) is based upon).

The crimes are vague and the prison terms are absolutely bonkers. You can literally go hit someone over the head with a 2x4 and get less prison time than you could get for breaking into their iPhone.

The fact that a lot of courts are completely ignorant about technology in general and will eat up whatever junk a company tells them (e.g. "this XSS exploit cost us $50K in wages to repair!") is also a huge problem.
Microsoft and how I sent an email from the chinese government domain
(Ozgun from Citus Data here.)

I updated the Readme, and added a second link to the original vectorization paper. We found that most benefits came from simply switching to batch-processing; and that's why we referenced the more recent "vectorization vs LLVM" paper.

I'd say the original part of Can's work is that new ideas can be applied to PostgreSQL's robust and optimized executor, without touching any core logic. In that sense, it could also be relevant to this earlier thread on cstore: https://news.ycombinator.com/item?id=7524886
A few comments:

1. These guys have produced numerous videos for businesses that have gone viral and spread to millions of people. That's not to say that others can't do the same thing -- just that these guys have a history of success, which suggests that not possessing an "everyman" aesthetic may not be such a bad thing.

2. Most companies that use Sandwich for their videos are early stage startups looking for early adopters. Lots of early adopters work in tech and live in the Bay Area. So at this stage, making a video that would appeal to this niche of people makes perfect sense.
An example of where this excess bloat would be bad is in a microservice architecture. Django has a footprint so big that using it for microservices doesn't make sense, because at that point you may as well roll all the services into a single application. In that case, I think DRF is great. But if I'm building a microservice architecture, I want the API code for each service to be 100-200 lines, not 100-200 lines + Django.

So yeah, there are efficiency gains from DRF, I agree. But (in my opinion), the gains are far less in architectures with separate applications all using DRF. In that case, something like Flask makes more sense to me, purely for the benefit of debugging, logic clarity, and independence.

I recommend a great talk by Kenneth Reitz on exactly this topic. [1] (He's given a variation on it multiple times -- just search youtube.)

[1] https://m.youtube.com/watch?v=U2frH932U1g
> In other words, they contribute labor to the economy, but largely freeload when it comes to any government-provided benefits.

What government-provided benefits? Surely our largest two entitlements are social security and medicare, right? Illegal immigrants don't qualify for either of those. Importantly, many businesses use fake SSN's when hiring illegals, so often times they actually are paying FICA taxes -- with 0 hope to collect.

Public schools? Schools are largely funded via property taxes and sales taxes, both of which illegal immigrants pay at rates probably greater than the average American pays.

Income tax? They are some of the lowest paid people in the country, if they were suddenly legal, they'd likely be owed income taxes via the EITC or other mechanisms.

Emergency Care? Indigent care is expensive, but some state-level medicare programs are allowing illegal immigrants to actually pay for their care.

The entire 'freeload' argument is easily dismantled if you consider the actual facts for more than a few seconds.
There are reasons - separation of concerns, for one.

Having a single point of failure for your identity, access to all of your accounts and finances, and the locks on your car doors and home is a bad idea. Making that somehow mandatory is even worse. Because you wouldn't be putting them on the phone, you would be putting them in the cloud, and the companies running the servers and building the apps that monetize your locking and unlocking and spending and self-identifying activities will not be putting security first because they never do.

I don't want my legal identity and physical security to depend entirely on cloud-driven Android apps, a contract and a working battery, thank you.
Dallas Ebola Patient Thomas Eric Duncan Has Died
:) your experience was worse than me :)
Who does number 2(Feds) work for? :)
It was published in the July 2009 print issue of MacTech. I interviewed him in April.
Why is airbnb activity being regulated more like hotels, than like, ya know, BnBs?
All Aboard L’Armand-Barbès
Having one primary source of revenue vs having more than one is not the same thing as having a monopoly vs not having one. A monopoly is about the number of serious competitors you have, not the number of revenue steams you support or innovations you create.

To wit: there are companies with only one product without monopolies (e.g. pretty much every startup ever), and companies that constantly invent new products and do have monopolies (e.g. pharmaceutical companies).
What sounds unethical to me is incredibly one sided abusive contracts that are incredibly difficult to cancel, even with agreed upon terms.

It sounds perfectly ethical to me. "I don't want to pay for goods and services I don't want to receive anymore". This is an idea that has been tested many many times in US case law, and therefore sounds perfectly legal as well.
> more powerful for users

Only if they never experienced the freedom of a proper OS.
Some of these services definitely draw from the area of Natural Language Processing [1] and Semantic Analysis [2]

[1] http://en.wikipedia.org/wiki/Natural_language_processing

[2] http://en.wikipedia.org/wiki/Semantic_analysis_(machine_lear...
Even AC72s are fastest a ways off true because of how far forward it drags your apparent angle.
It seems like you don't allow someone to get their organization's feed unless they are an admin for that organization. Is that correct? All I can get are my personal repos.
In my (limited) experience bay area startup attach way too much value to bullshit interview tests like these. I'm a proficient developer, I know a lot of practical stuff about programming (setting up a solid architecture, design patterns, scalability, etc.), I have proven many times that I can build, launch and market products from A to Z, but I forgot most of the theoretical stuff I learned back at school, simply because I never have to use it. For example, I failed misserably at writing a recursive function, simply because I never need it and it's usually considered bad practice.

It's nice if you know all the theory, but you really don't need that for 95% of the programming jobs.

I felt really crushed after I failed the test and forgot all that basic knowledge, but in the end it doesn't even matter.
IDA is great, but for day-to-day work, especially if you're casual, Hopper is a really strong contender, and it's (amazingly) even cheaper than IDA. Hopper also was designed from the get-go to have a first-class Python interface, and it includes a workable decompiler.
Squarespace vs. WordPress – The Full Comparison
Yes, but I believe it really only applies to actual employees (W-2 employees in the US), not contractors. If your contract ends or is cancelled and you can't find anything else, Unemployment Insurance isn't going to help you.
Weev: “Women in tech”, doxing, Kathy Sierra, and the koolaid
For companies like Twitter, being based in the US seems to have become something of a liability. There's Google, Apple, et al attempting to quell international concerns with promises of better encryption... I wouldn't be surprised if one of them just up and moves their operation overseas. After all, some of the up-and-coming open-source competition is a decentralized, globally distributed organization and not under the thumb of any nation state per se. They have the luxury, I think, of cherry picking the best privacy and security policies, and can open the kimono on their source code to prove it.
Dear gods, please eliminate any ability to pay with my phone! Cards are fragile enough. I don't want to lose access to all of my money if I accidentally drop my phone the wrong way.

EDIT: Not to mention my ID and keys! I'm honestly not sure I could think of a worse idea.
Go still has no good IDE support, no interactive debugger. I don't know why people prefer Go over the alternative like Scala+Akka.
U.S. Ebola patient dies
A take on Samsung's profit decline
Very neat. I was able to confirm and visualize my intuition on how sailboats work.

It reminds me of a car parking simulator [1] I made a while ago.

[1] https://dl.dropboxusercontent.com/u/8554242/dmitri/projects/...
Relentlessly Resourceful (2009)
I'm super glad that Professor Moerner is getting credit where credit is due. Having taken his intro seminar and interned in his lab my freshmen year, I can attest he's a really great teacher as well.

On a side note, I hope this added recognition will pump more money into his lab's equipment. Despite being a physical chemistry lab, their computers were painfully slow and outdated.
I'm heading up a project that will add a layer of text-based help to online courses (thats the short description...). I would love to explore the Watson APIs more. Aside from diving into the samples here, do you have other suggestions for learning more?
What is the definition of a Seed Round or an A Round?
>'If anything, this article just shows how lazy Americans can be, when Americans can't be bothered to eat meat or fish with bones, but of course that's just an anecdote.'

Labeling Americans as a group and particularly certain subsets within as lazy is just as credible and, I'd wager, often done for many of the same reasons as labeling immigrants freeloaders.
No, the lift isn't constant. As your speed increases, assuming you're not going dead downwind (very slow) so does your apparent wind speed.

http://en.wikipedia.org/wiki/Sailing_faster_than_the_wind
Probably not, my guess is that this will actually be a Visa card.

Most Visa and MC cards are branded as such but are actually backed by some other institution, like Bank of America or Chase.
Strongly agree. But I'll lose my commit privileges if I remove it... worth it? Maybe :P
For what IDA does, it's incredibly inexpensive, so much so that it's distorted the market for reverse engineering tools. Consider that people who use IDA on a day-to-day basis have $250/hr+ bill rates, and if they use IDA, they rely on it. Meanwhile, the set of people who use IDA on a day-to-day basis is very small relative to the whole industry.

I'm not saying you should buy IDA, just that I think IDA is severely mispriced.
This is an amazing news. Congrats, Peter and the rest of the Segment Team. Also, kudos on the Open Source work.
It's unlikely they'd let you license it for hobby work; last I heard they're very restrictive about who they're willing to license it to in order to prevent pirate copies leaking.
Do Underwriters Hate Financial Projections?
GestureKit SDK: Cross platform, easy and opened source gestures. Shoot!
Hey everyone,

We created gestureKit to take the pain out of working with gestures. We have cross-platform support and you can store your gestures on the cloud distributing them to any app via online editor and non-intrusive overlay plugins.

We’ve created guides to make it really easy to get started. We’re passionate about gestures and making them easy to work with for developers. Check out what we’ve done so far and if you have any questions or comments, shoot.

Thanks!
I vote for the following UI improvement: a clear indication of where the mast is---and sail pivoting around it. Bonus points for curved sail graphic ;)
Why would a landlord want to allow short term sub-lets?
A reason why - I'm told - it's easier to teach kids to sail than adults.

Kids don't question a counter-intuitive: just teach them 'point the boat close to the wind, do this to the sail, and go.'
I'm kind of disappointed that there isn't a version available for IDA 5.0. Yeah, I'm cheap.
VBrownBag VeeamOn Josh Atwell – Designing Past Day Zero
Hey, this looks cool but I don't want grant write permission to my public and private repos just to get a daily status update.
Is it possible to ask for read-only perm?
Dave Ramsey's system is a great starting point.

It's not the most efficient thing out there, but it's psychologically effective -- designed to make small steps that build on each other. You can often do things more efficiently, but the other side of that coin is that it's a lot less efficient if you get discouraged and stop working toward financial stability. So he has you take little steps -- control spending, create a buffer to prevent new debts from forming, pay off small debts, use the boost in cash flow from getting rid of each debt to pay more on the next, and eventually own your house, car, and some long-term investments. (I apologize if I've gotten things out of order or misrepresented anything in his system; it's been a while since I've looked at it.)
To summarize: the author considered both Rust and Go and chose Go because Rust wasn't done yet. After using Go for a while, he found he liked the usual suspects.

I think a compare/contrast of even a few features would have been nice.
Fair enough, but I feel I should clarify my comment.

I'm suggesting that if you feel the interview process is flawed even from the company's standpoint (i.e. not screening for the appropriate skills) your best approach might be to reverse engineer the interview (i.e. get better at answering the questions, instead of actually developing the [perhaps irrelevant] skills being screened for).

The Tardos book that I think you're referring to is a $100+, 850 page CS textbook with the goal of making you an expert on algorithm design. The book I suggested costs $30 at is focused on a specific goal of getting through the interview.

I'll grant, however, that there may be better resources for this (and I'd be very curious to hear what others think those are).
That is pretty much in line with what the CIA believes

https://www.cia.gov/library/publications/the-world-factbook/...
1) An actual startup, currently graduating from the TS Boulder. Talking with a bunch of banks to see who can get this thing into consumers hands fastest.

2) We'll work with ApplePay 100% (currently its the only way to get to the NFC chip on the iPhone)
Plus Americans love chicken wings.
The eInk display is one of the reasons that Plastc probably won't work on a credit card size. If you browse through the comment you'll see more details but it boils down to the circuitry to drive an eInk display is thicker than the space available.
You have no idea why they didn't hire you. It's probably a completely different reason, even if they said it was the linked list question.

If the interviewer likes a candidate, every minor error is forgiven. If the interviewer doesn't like the candidate, any minor mistake is a reason for "no hire".

Just move on. There are plenty of opportunities.
Yes, we have had guests throw parties, litter trash, throw bottles and cigarettes off the roof, and cause damage.
I'm puzzled. Surely MPs in Spain are supposed to represent a particular area in the country and defend the interests of their voters? I understand how that closed list system[1], which I was not familiar prior to find the correct Wikipedia article, is not awfully democratic. This could be alleviated by switching to an open list system like in Denmark, where a "personal vote" makes it possible to vote for individual candidates within a party, if you don't want the "party vote".

1: http://en.wikipedia.org/wiki/Closed_list
Allowing it to be an evictable offense should be sufficient.
Does this work with reward programs? Or is it's primary feature it's safety?
I'm really sorry about your experiences as an engineer in LA.
I also live in LA and as a sysadmin/network engineer my experiences have been completely different. There are some great companies in LA that do pay well, maybe not as high as in the bay area, but if you're a capable engineer you shouldn't have any problems getting a well paying stable engineering job.
Anyone who's interested in a more in-depth look should check out Fortune Cookie Chronicles. http://www.amazon.com/gp/product/0446698970 It really explains why the food at 99.9% of the "Szchewan" and "Peking" etc. places all tastes the same.