skysight-inc/HackerNews huggingface dataset:
Another way to freak interviewers out is to calculate mod5 implement a nice circular linked list with 5 nodes, one node containing "Buzz" and the other four nodes containing null and call mod5(86) means you dance around the circular linked list 86 times and whatever string you stop on you output either Buzz 1/5 the time or null string/nothing 4/5 the time. This is hilarious if you run fizzbuzz from 0 to 100 but even funnier if you try 1000000 to 1000100

Also there's a pretty obvious conversion to recursion.

Either implementation can be even funnier if you memoize results in an array cache (so if you've already figured out the hard way that 999999mod3=0 then next time around when you check 1000000 you need not cycle all the way down to 0 for 1000000 because once you hit 999999 you already know from last time around how 999999 turned out. Bonus points for making your "cache" smaller, like implementing a LRU (or simpler) algorithm for the last several lookups rather than memoizing all one million results.

There's also a devilish way of (ab)using IEEE float arithmetic rounding errors which I forget at this moment.

If your language or a library attached to it handles arbitrary bases, there's a certain pattern to the last digit WRT multiples of 5 when expressing the number in base 5... so just to be a jerk you do the math for 3-mults in base 3, 5-mults in base 5, and your 0 to 100decimal counter in base 7 for the pure hell of it. OR amuse the interviewer because the base wasn't spec'd by running up to 100base7 (which is probably going to be a new ethernet standard soon enough).

Another fun form of rebellion is to implement an emulator for any machine language machine you can remember running simple BCD math. So here's a lame little Z80 emulator and a Z80 assembly routine to solve this using simple BCD math.

Deviant forms of trig obfuscation can be funny, essentially you rely on the trig libraries overflow behavior to dance 1/5 of the way around a unit circle each time, and when you're all done, if your angle is close enough to zero, I guess its divisible by 5. This is much funnier if you implement essentially a pentagon and then rotate it using quaternions

I think programmer brain puzzles are kind of dumb, when I was younger I would have just walked out of the room, but as I age the likelihood of a total smartass answer like above increases over time.
>I agree that squatters can be unreasonable or downright insane.

There use to be a company called songbirdnest.com that made something that could be described as an open-source version of iTunes(but they preferred it wasn't thought of that way). The person who owns songbird.com refused to sell. Apparently a very hansom offer was made too...

http://songbird.com/ site looks the same as it did back in 2008. Considering that the site doesn't look like anything that's generating revenue, I don't understand why that person refused to sell...
It's more about having memorized every map, including the locations of all enemies on the map. I wonder how well someone could do in a game where enemies were so predictably placed.
I originally titled it "FizzBuzz solved using only bit twiddling" but a moderator changed it.
They do show in the video the robot putting down steel beams for those lintels to be fair, so they have obviously planned for it.

Along the same lines I have been sketching designs for a robot to lay down 2-part foam, wire mesh and shotcrete, though I have been trying to work out if I can get it to climb its own wall, rather than needing a giant crane.
Most of the languages presented at the last Strange Loop don't appear to have WP pages, and, reading their descriptions, you can see why: they're more in the nature of academic experiments than notable programming languages. WP also doesn't have a page for every major experiment by every well-known CS researcher.
>By gaining a better understanding of how Facebook’s founder and CEO conceives of his own company’s role in the policy and ethical debates surrounding social networking [...]

Sure, knowing how the CEO thinks is a good judge to know where Facebook is going, but it's a bit odd to think that Zuckerberg doesn't take note of what the Board say.

Why aren't they logging what Sandberg, Thiel and Graham say/do?
+1 for:

What’s the hardest part about doing a startup so far? - "Figuring out what's most important."

How do you figure out what’s important? - "We mercilessly prioritize."
You can. In limiting countries you have a ridiculously low limit, and in further countries it's a bit higher. I was able to withdraw about €850 in Europe two weeks ago.
Perhaps I'm biased, but that hardly helps. Still far less readable than the C++ version which looks almost exactly how you would write out a math problem.
Hmm.

What I'm about to say probably sounds a lot like something that somebody who lacks impressive technical prowess (like myself, self-admittedly) would say, but I think that being a "hacker" is almost more of a mindset. Or, alternatively, there is a hacker mindset, and a lot of the folks here can identify with, and exhibit, that mindset. Specifically, the hacker mindset means that you're always curious, always learning, always improving, just like the poster who asked the question above.
There's a difference between a half-baked idea that is never even written down, and a more developed startup with a nice landing page, working product, and people interested in it. I wonder what the statistics are for the latter.
I posted a few examples above (Facebook has a 20), but Zynga actually isn't a good reference for a high number. It has a trailing four quarters sales to valuation ratio of 3 ($1b in sales, $3b in market cap). And despite Zynga's significant problems, they're sitting on $1.1b in cash stacked against that market value. If they're careful they can probably lose money for a decade and stick around.

Other surprisingly low examples: Groupon (3), and Angie's List (their stock crashed recently, but it's now a 4).
And virtually every source for the article is a pointer back to Nimrod's website. That's not going to work. Could you maybe find better sources?
This is Python 2, not Python 3.
Programmers have been doing this from more than half a century. Its called debugging.

Its basically to learn to localize the problem to a specific part in the code/system. Study the inputs and outputs to that system. Establish single responsibility to that part of the code. Now study the input and expected output from that part of the code. If they mismatch, correct the code and test it out for all possible values of the input.

Additionally automate it/check list it such that those mistakes are not made in the future.
Complaining about winter in the Great Salted North? Obviously not far enough north! That doesn't hold a candle to what 'we' see up in (Iceland|Greenland|Alaska|Yellowknife|Siberia). We can play this game all day long, or we could do something more constructive than 'brag' about how hard you have it.
Sputnik - open source RSS reader
Yes, comparison is flawed. Imagine Torvalds starting to work on git. Is he sailing to go somewhere? Certainly. Has he a full business plan with all the bs about customers? Certainly not. He sails because he is a sailor, and sailor are explorers too. (Not in real life, but in this comparison)
Couple months? You could maybe track it and predict a large impact zone, and evacuate if needed. No chance to move it; nobody has a rocket that can be ready in that timeframe, much less a vehicle to intercept and move the rock. And even if you could, it was such a small rock that it's probably cheaper to let it hit and replace everything on the ground. For launch alone: F9 is $54M, Proton $72M, and SLS $1.5B (should it ever exist). There's not much the Chelyabinsk could have hit that would cost as much as trying to stop it. Even pretty big rocks have to get lucky to cause much damage, as sparse as development is, but since you can't tell where exactly they will hit until quite late, it may be better to move any sufficiently large Earth-interceptor to avoid the possibility of an unlucky hit.
it takes a ton of work to package and upload a binary, and if you make it malicious it's right there in the dowwnload folder.

This is more like executing the current text of a web site (whatever that is) in a totally ephemeral way. That gives total plausible deniability to anyone who would serve you a particular version based on your IP, for example.... (or anything else). You're just not keeping the evidence.

I mean, you "could". But doing things this way, you're not...
Anything that grows infinitely is cancer.
Here is a python implementation. https://github.com/NSkelsey/algorithms/blob/master/select.py
Keep the following in mind..

HFT is not very profitable anymore.There are a fair number of companies in the field now.

HFT tends to be algorithmically simplistic.This is not because stupid people are working there but its very difficult to have algorithmic complexity and speed,and speed is more important.

It is very much a winner takes all game,profits are not evenly distributed,being fast is VERY important.

However good you are you are not a trader.You are a codemonkey. You will never be rewarded or compensated as a trader in most of these firms(some firms like Rentech are an exception to this,but rentech is not typical high frequency).

Your hourly rate will probably not be worth it. When you factor in variable compensation(ie bonus) which is not guaranteed and horrible working hours you would in most cases be better off with some boring bank java contract for compensation.
Now I feel old; last time i looked inside an iron all I found was a thermocouple, a cheap bulb and the heating element;)
> HN participants still continually demand profit be the most important metric.

That may or may not be true, but nothing in my comment suggested this was the case. In fact, if you argued that the price-to-earnings ratio was the most meaningful metric for investment and trading decisions, my response would be the same: it can be very useful, but alone it can get you into a lot of trouble. Nobody experienced is investing/trading off of a P/E comparison that takes a fraction of a minute.

> Additionally, the medium price/sales ratio for the entire market has little to do with an ultra small subset of technology companies IPOing.

Trying to understand a subsection of the market without understanding the broader market is a recipe for disaster. This is especially true in today's market.

For clarity:

1. There are companies that deserve premium valuations. Some of these are tech companies.

2. The Fed is driving the market today, so valuation is very, very difficult.

3. Folks who believe there are publicly-traded companies that haven't been impacted by QE and that aren't vulnerable to major moves in either direction based on changes in monetary policy are going to be hammered.

> Just consider the BCG growth matrix for a few hours, think about how companies work, then come back and suggest a better metric than price/sales. If you come up with something smarter than that, I will be really, really impressed.

I don't completely ignore fundamentals but I trade primarily off technicals so I'm afraid I'm not going to impress you. That said, I would offer the observation that anyone who looks at trendlines has probably made a lot more money with far less effort over the past several years than folks who are obsessed with fundamentals.
If you and your team think you can do it better, do it yourself. If you don't have a team and haven't put much into your own idea, give them a call and see how you can help.
It would be interesting to see it running System 3. This machine is almost as old as the Windows 1.0 emulator we saw the other day, but System 7 is a much more recent version of the OS, IIRC, from the same period as Windows 3.
> The bigger point is that the way this country treats foreign nationals

Except that the notable feature of this case is that it is not about the way that this country treats foreign nationals.
Correct slopes and various other things to meet code are a lot harder than joints.
Requiring that posts stay on topic isn't censorship. Terms of Service are Terms of Service. There are lots and lots of other Apple/Mac/iPhone forums around the web.
Is your startup really so pathetic that $30/yr is relevant?
Finally someone figured it out. It would be nice if they provided a solution as well.
The same goes for Ivy League applicants...a thrown-together application with poorly-written essays and low test scores and grades would not have as good a chance as a well-crafted application with solid essays, great grades and scores.
Cept put men on the moon, build an expansive national system of roads and tracks and bridges and tunnels, develop technologies like the internet, atomic energy, and others.

Why did I reply to this.
I don't think this statistical coincidence implies anything meaningful, other than that both are hard to do.
You can keep a single free Dyno "awake" by hitting it with a request at least once per hour. If you use New Relic the built in availability monitoring will do the trick and otherwise Scheduler should work. For more info:

https://devcenter.heroku.com/articles/dynos#dyno-idling
Or, since we have enough cores, run both in two parallel threads, keeping the original list read-only.
Capitalism is itself based on constant growth. There is a fundamental misunderstanding with this article (and most of our society) and that is the conflation of capitalism and a free market. A truly free market is not necessarily capitalist, and actually capitalism doesn't lead to free markets. This confusion is messing up everyone's thoughts. What we like is the free market, the natural bottom-up interactions that help determine prices and such. Free markets have nice features.

Capitalism is about profit and growth and the instant you think it isn't going to fail, everyone might as well speculate like crazy (why not? if it isn't going to fail…). The only way for capitalism to work is for everyone to realize that it is inherently unstable and likely to fail. And that realization is true also.

We can still advocate for market freedom without advocating capitalism.
Some might consider your model of malevolence in human affairs to be oversimplified.
Because editors are great recording tools but very bad thinking tools.

Nothing really beats the flexibility of pencil and paper. You can draw boxes, doodles, graphs, heuristics, flow charts, mind maps etc. Basically you can do what you can think and conceive of, with your mind as your only limit.
Washington's didn't work for a few weeks after it was released. It also did things like send your password to you in plaintext.
Hey, thanks for supporting my point.
Funny thing is, as soon as I saw OP's solution I fired up IPython to do the same thing in Python. :)

Admittedly mine was not as elegant as I haven't thought of using izip with 3 iterables. Still, I don't think that lambda and islice is really needed... xrange(100) guarantees a finite number of iterations already.

from itertools import *
fizzer = cycle(['Fizz','',''])
buzzer = cycle(['Buzz','','','',''])
fizzbuzzer = izip(xrange(100), fizzer, buzzer)
for f in fizzbuzzer:
print f[1] + f[2] if f[1] or f[2] else f[0]

EDIT:
the output from your version does not look right. "Fizz" and "Buzz" are on the wrong index positions.
0
1
fizz
3
buzz
fizz
6
7
fizz
buzz
...
Correct. If you're running more than one dyno in an app, however, there are no 'timeouts'.

If you're trying to maximize your free dyno usage, however, you might want to use the 'heroku scheduler' addon, and have it ping your app once every 10 minutes to keep it 'awake'.
I more gray-bearded haskell wizard than I might have a better solution, but to me the direct haskell equivalent of python's [1,2,3]*4 is

concat $ replicate 4 [1,2,3]
They could, I'd think, do both. Censor of topic, yet confirm the issue and take steps to fix it.
Still, its pretty trivial. Slopes with your level, traps in the right spots. I admit there is knowledge required, but not as much skill.
On the topic of the utility of HFT my personal opinion of is it reduces spread costs but adds systemic fragility.
I actually doubt stock markets are socially utile,let alone HFT but that is an argument for another day.

The real trading problem when we look at access and information asymmetry is not HFT but dark pools.HFTs typically all compete for the same pie anyway.
Because XP was feature competitive and there wasn't much market pressure to do so, unlike OS7,8 from that era.

This is quickly becoming a OS war, but I think its uncontroversial to say that the few years before OSX showed us an Apple that couldn't compete and was selling products that were substandard and overpriced. 95-99 was pretty rough.
The guy playing, Cosmo, is also the creator of http://speedrunslive.com A website for streaming speedruns.
Million dollar question dude. Best way to find a good idea is to quietly examine problems you or people around you face, and come up with better solutions.
"Keep it simple"

Sounds easy. But it requires a person with deep understanding of software projects and with real political weight within the project to keep creeping requirements at bay.
I don't appreciate that you are jacking my ⌘-t
They all seem to be built on the same foundations, though the Transcend ones look to be the most popular. I've one sitting around but I haven't had a chance to do much with it except for confirming that the vulnerabilities exist.
Where is Obama files? In fact this seems like a good idea for a huge website for all high level political figures.
Should probably specify what countries you're targeting, as there's a pretty big difference between say, Cambodia and Japan.
You can use the same idea in quicksort while choosing the pivot (and make it O(n log n)) but you don't because it is expensive.

There is a very nice and simple probabilistic algorithm instead.
Right, because that cost is a bigger imposition on the family than dying. As my dad has had cancer twice and beat cancer twice so far, I am very thankful for those expensive cancer treatments. Keep them coming please.
python -c 'print "\n".join(w or str(i) for w, i in zip(10*[None, None, "Fizz", None, "Buzz", "Fizz", None, None, "Fizz", "Buzz", None, "Fizz", None, None, "FizzBuzz"], xrange(1, 101)))'
> Considering that the site doesn't look like anything that's generating revenue, I don't understand why that person refused to sell...

Maybe because unlike you, he's not an unquestioning whore to the almighty dollar. (I expected a small bird-feeder business before I clicked, but the point remains.)
He is only pissed because the NSA could not be bothered to bug his phone - but thought Angela Merkel worthy of attention as a "world leader".

He seems like a good hearted chap but he does let his mouth start running well before wiser heads are able to brief him on the facts (so to speak). In may ways his "off the cuff" honesty has been good for British politics but we have all got rather used to skipping his first statement on any subject - to await the inevitable reversal/adjustment.
The Syrian Electronic Army Hacked Obama’s Twitter Links And Campaign Emails
Vowel stripping is a feature that highly correlates with a tech target audience of a domain. So I'd prefer to see more vowel-stripped domains intended for tech crowd and regular word .com domains for general public.
What about human knowledge?
Quite a few people are trying to keep from giving away their music and movies for free, and are getting rather bad "press" for it.
Haha - I agree.
>> A truly free market is not necessarily capitalist

Can you elaborate?
It should be one hop out from someone actually suspected and under investigation, and then each individual hopped out to is briefly analyzed for innocuous vs suspicious communication. Then out once from those few individuals again.

"That would be too hard." Well, good. They aren't supposed to be figuring out how to spy on everyone. The Constitution made it hard by design, and it's only recent technology that allows them to do this mostly unnoticed.

Three hops out from anyone who looks cross-eyed is just a construction of convenience that looks reasonable to a sleepy or collaborating judge, and results in being "allowed" to spy on virtually everyone.
Calling it cosmetic was a gross oversimplification, sorry. Race may be a very differenting feature, but all the research on it is very controversial. That being said, what I mean is that there are only two options - if some racially related features are objectively superior, then we as a species actually should select towards those features; and if all racial features are equal in 'goodness', and then it is purely cosmetic and it doesn't matter which option people choose.

As for the second statement - Any 'improvements' that are sufficiently large to matter will probably be sufficiently large to detect; the problem is about how we treat "genetic inferiority" as such, not really about how it is detected - by looking at racial characteristics, blood samples, asking your parents or your next-gen-facebook-DNA-profile.

I feel that your points sum up, in essence, to 'this will lead to more inequality'. And yes, it will. Probably the only thing that can make it equal is to ensure that everybody can do that (although we can't ensure even that everybody can eat or not be a slave) - since we definitely can't ensure that nobody will do that.
It seems to me that tying "hacker" status to any one specific skill or bit of knowledge is antithetical to the whole concept.
We are funded by the Gates Foundation. We intend to become a commercial nonprofit and charge for lessons (a freemium model of 1,000 free lessons). We are a nonprofit as we'd like to develop a model of crowdsourced content creation. Being a nonprofit signals that this content isn't going towards making us rich. We are still working out this model, and in the EdTech space there are a couple of foundations that make this possible.
Interesting. I'd never looked into how BFs work before and this is a nice clear explaination.

One thing I don't quite get - as you're hashing into the same bit array for each of the hashes - you must get false positives from combinations of hashes. So say you chose a bad combination of hash algorithms where one key hashed into bits a and b using the two different hashes respectively. Maybe some other key might hash into b and a. With a totally suboptimal choice of hash algorithms you could end up with a 50% error rate. Or am I misunderstanding something?
Hey, hover.com offers .io domains as well; and I couldn't be happier with them. (not affiliated whatsoever)
The problem I have with this is that you're not developing against the target environment - you're developing against the closest thing you can make to your target environment, given your utilities.

The problems that I've run into in the past are typically subtle, but they're almost always show stoppers (either on the development side or the production side).

That said, my current environment is on a mac while my production is on EL6, but my next one will not be. The up front cost to get a DB and nginx running properly is just not worth the effort to do again.
I think you have to check what inflation means...
(Disclaimer: I'm just an amateur 3d printer and just hack with my printer and what I can get my hands on)

The thing that intrigues me about fiberous ceramics for deposition printing is that no printers currently take advantage of the (albeit tiny) tensile strength of the deposited filament.

For plastic printing, this isn't very useful, but potentially for this new construction compound you could effectively (or nearly so) bridge gaps with little droop or sag.

I do think from an engineering perspective that placing blanks underneath is the best bet, but on the order of a 20-hr print, I don't think its unreasonable to have someone walking around with the machine placing single layer "blanks" at each opening at each level.