skysight-inc/HackerNews huggingface dataset:
Here is python code that I first used to solved to problem in the time allowed:

#!/usr/bin/env python

import sys
import math

count = int(sys.stdin.readline())
for i in xrange(0, count):
n = int(sys.stdin.readline())
ndiv5 = math.floor(n / 5.0)
if n >= 25:
ndiv5 += math.floor(n / 25.0)
if n >= 125:
ndiv5 += math.floor(n / 125.0)
if n >= 625:
ndiv5 += math.floor(n / 625.0)
if n >= 3125:
ndiv5 += math.floor(n / 3125.0)
if n >= 15625:
ndiv5 += math.floor(n / 15625.0)
if n >= 78125:
ndiv5 += math.floor(n / 78125.0)
if n >= 390625:
ndiv5 += math.floor(n / 390625.0)
if n >= 1953125:
ndiv5 += math.floor(n / 1953125.0)
if n >= 9765625:
ndiv5 += math.floor(n / 9765625.0)
if n >= 48828125:
ndiv5 += math.floor(n / 48828125.0)
if n >= 244140625:
ndiv5 += math.floor(n / 244140625.0)
print int(ndiv5)

And here is my optimized Common Lisp version:

(declaim (optimize (speed 3) (space 3) (safety 0)))
(declaim (inline floor))

(defun calc-trailing-zeros (n)
(declare (type (integer 0 1000000000) n))
(let ((ndiv5 (floor n 5)))
(declare (fixnum ndiv5))
(if (>= n 25)
(setq ndiv5 (+ ndiv5 (floor n 25)))
(return-from calc-trailing-zeros ndiv5))
(if (>= n 125)
(setq ndiv5 (+ ndiv5 (floor n 125)))
(return-from calc-trailing-zeros ndiv5))
(if (>= n 625)
(setq ndiv5 (+ ndiv5 (floor n 625)))
(return-from calc-trailing-zeros ndiv5))
(if (>= n 3125)
(setq ndiv5 (+ ndiv5 (floor n 3125)))
(return-from calc-trailing-zeros ndiv5))
(if (>= n 15625)
(setq ndiv5 (+ ndiv5 (floor n 15625)))
(return-from calc-trailing-zeros ndiv5))
(if (>= n 78125)
(setq ndiv5 (+ ndiv5 (floor n 78125)))
(return-from calc-trailing-zeros ndiv5))
(if (>= n 390625)
(setq ndiv5 (+ ndiv5 (floor n 390625)))
(return-from calc-trailing-zeros ndiv5))
(if (>= n 1953125)
(setq ndiv5 (+ ndiv5 (floor n 1953125)))
(return-from calc-trailing-zeros ndiv5))
(if (>= n 9765625)
(setq ndiv5 (+ ndiv5 (floor n 9765625)))
(return-from calc-trailing-zeros ndiv5))
(if (>= n 48828125)
(setq ndiv5 (+ ndiv5 (floor n 48828125)))
(return-from calc-trailing-zeros ndiv5))
(if (>= n 244140625)
(setq ndiv5 (+ ndiv5 (floor n 244140625)))
(return-from calc-trailing-zeros ndiv5))))

(let ((count (parse-integer (read-line))))
(declare (fixnum count))
(dotimes (n count)
(declare (fixnum n))
(let ((factn (parse-integer (read-line))))
(princ (calc-trailing-zeros factn)) (terpri))))

Notice the Python code doesn't even have the early returns that the Lisp code does. The Python code comes in at 5.42 seconds; the optimized Lisp version's best time was 3.39 seconds. I know the algorithm to solve the problem is probably not the most elegant, but it does get accepted. Any ideas on how to optimize the Lisp code further would be appreciated.
Comparison of Java PaaS (GAE, AMAZON, CloudBees)
Apparently "all" doesn't include "loading", because one of the things that aggravates me most about apps on my iPhone is spending 3-5 seconds looking at a splash screen just to access one bit of data.
No, he's not doing the work of dividing by seven. That would need memory of around the same size as your number of digits of your input number. His state machine only reads one digit at a time and only needs to store a less-than-one-digit state.

My regular expression is a joke on the usual divisibility rules.

By the way, you can find your own divisibility rules. They are actually easy to find and prove, if you know a bit about cyclic groups / calculating with modulo. E.g. the rule for divisibility by F in hexadecimal is the same as the one for 9 in decimal.

Divisibility by 11 or 101 or 1001, or 9, 99, 999 is also really simple.
This article is in dire need of editing. It's too long, and the metaphor is too stretched (and dated) and the author goes off on a tangent to rag on Apple when that's really not core to the subject.
Given the programming constraints associated with GPGPUs, I'm betting it's real CPUs.
Lessons I’ve learned from running a startup
Why the downvote? It's a known fact that the government there is purposely slowing down access to Google properties.
This seems less speaking "for" hackers and more "about" hackers. The distinction matters.
Nice. No up/down voting yet?
Users Blamed for Bad Search Results
Yeah, that works fine, you just have to drag it into the area that gets highlighted for dropping.
This is no different from password authentication, Kerberos host authentication, or SSH public key authentication, SSL authentication. If an attacker gets access to your secret or private key, your security is compromised until you revoke that credential.
There’s nothing Dropbox can to do fix this on the client side, because an attacker can just run a modified version of the software. In order for Dropbox to “fix” this on the server, they’d have to do source address verification, which would break pretty much everyone except people who have static IP addresses. Even then, IP addresses can still be spoofed given a sufficiently sophisticated attacker.
The only thing Dropbox could do is to break every device’s authentication whenever a user changes their password. That might be a good idea, or it might just discourage people from changing their passwords.
I'd have linked directly to the article only, but the Wikipedia page includes discussion and further references.
Having "stripclub" in the title of your talk is pretty unprofessional.

To their credit, though, 3/10 of the speakers at LessConf are women. http://lessconf.lesseverything.com/ That's a better ratio than at most tech events.

I think they're more guilty of being flippant than deliberately sexist.
Just as a data point, I think it sounds like a feminine hygiene or household cleaning product.
Couple more thoughts:

1. The first thing a user does should not be to register. I should at least be able to see how many tax preparers are in my area and their profiles before registering. Do the preparers have a linkedin or yelp page with endorsements? Is there someone in my FB network that has used this person or liked their services? Nothing compels me to enroll.

2. I think the key to all this is helping tax preparers find new customers by leveraging their existing customer base. Tax prep is a word of mouth business and your goal should be to digitize the word of mouth to maximize reach of potential new customers. For example, make it easy for customers to endorse tax preparers by "liking" their sanetax profile,etc.

Your sales pitch needs to be: "By using SaneTax, you can leverage your existing customer's social network to find new customers." or something like that.
I wanted to keep the original title. I worked with the startup but I did not write the article nor was I one of the founders.
Microsoft lost its way once Gates left. He was the visionary that started the company, and Ballmer was just a businessman. They need a visionary to lead, and from what I've read they need to do away with the internal turf wars. I know I've read a lot of blog posts from insiders saying that great ideas get smothered by other divisions all the time when they feel "threatened" by them.
Know When To Shut Up
It's useful to mention that you're overstating when you do it (like you did in this post) so that people don't fall into the trap of believing that what you're saying is actually the status quo.
How does the conclusion that theft and property damage do not violate individuals get even one thumb up?
"everyone thinks they can run on 4 hours a night"

Quite astute. If you are actually a runner and want to improve, you'll realize that good sleep is critical to performance gains.
Has Google been putting out really cool stuff consistently over the last few years or is it just because I'm constantly on HN that I see this stuff?

Anyway, I'm really starting to like Google again.
How to handle your account being shut down by AdMob
Is Detroit dead?
Business Card Magnet Printing Services at UPrinting.com
printing business card magnet online, you need to find out which company offers convenient printing services and assistance. UPrinting is a reliable and professional printing partner.
Looks like a bug -- will fix. I'm detecting and calling them in this case, but I'm not rendering it. Not sure why I'm throwing it out yet.

Update: looks like SG doesn't have any info on those concerts, with info defined as average price.
It's not nice when people get hurt or offended. And I think it's possible to create a world where that never happens if we agree to ban artists like Allan and Steve and anyone who tries to do anything different.

Meanwhile, the Less guys have created a wonderful event through which I have made great, wholesome friendships, with nice guys and nice girls—people who like to smile and not take themselves too seriously and just want to learn and create great things.

Personally, I don't condone smut. But a conference which will offend nobody in some small way is a sterile, dull thing. O'Reilly do these well.
No, postdocs are not faculty. They may be classified as staff, as fellows, or even as students [1-2], but they aren't members of faculty senates.

[1] http://sciencecareers.sciencemag.org/career_magazine/previou...
[2] http://sciencecareers.sciencemag.org/career_magazine/previou...
I'd hope you could do better than the platypus.
I can see why tax professionals could be threatened/worried by this.

Effectively someone like myself living in a state with a high Cost of living can outsource to someone in say, IL (who may have CA tax knowledge but now lives elswhere) who would charge much less than the CA-based local accountant.

It's also a killer business plan for the marketplace vendor (ie, SaneTax). Who would have known that Amazon could have become such a giant by selling books online?
No, we're the lambs. One of the wolves is a giant multinational company, the other owns tanks and can control Internet peering.

On behalf of the rest of you lambs, I'd like to thank people who commit crimes to make points about freedom online for picking this fight. I'm sure we'll do just fine in it.
Kind of like an abusive spouse I guess, eh? Alright.
العاب فلاش
العاب فلاش ديليس هو موقع العاب Games اون لاين يحتوي على العاب فلاش جديدة , العاب بنات العاب طبخ العاب سيارات ألعاب فلاش مجانية
Sam says it's generated by http://jashkenas.github.com/docco/ here: http://news.ycombinator.com/item?id=2420535
Is anybody aware of a similar service for finding (traffic) lawyers? Searching for such is unpleasant (especially in a different locality).

Edit: I've now signed up to the service, as I've procrastinated equally with my taxes, however- I still don't know what to do. I appreciate the goal is to match taxed/preparer, but I'm not sure what forms are appropriate, which makes uploading them difficult.

I see there is a progress indicator to communicate how far along the preparer is with the submitted paperwork, maybe a similar guide for what to submit, and what might be missing? (Also possibly augmented by the preparer if the site doesn't want to become a guide?)
I ended up with some of those once. What's annoying is that if they spent half as long making a sharp blade as they did making the packaging look real, I wouldn't even care that it's a fake.
What was the mobile industry two decades ago (in 1991)? I'm pretty sure that the mobile industry has converged heavily on ~3 major platforms. I remember many closed, underdeveloped mobile platforms in the 90's.

This whole article seems uninformed.
Important News About the Kermit Project
My experience is the exact opposite.

When writing C, I have to spend time thinking about the syntax and memory management.

Although I have spent much less time using Python, when writing Python I am only thinking about the problem domain and algorithms.
In recent years, the Vatican (especially the science part) and the Catholic Church are increasingly looking like two separate entities.
Not so rare.
I think we're talking past each other here. I thought we were talking about embedding secrets in machines. If you want a button in the Dropbox UI that tells it to freak out when your IP changes, that's fine; I think there's a good reason Gmail doesn't default that way though.
There was a time this would be enough.
And the Vatican is an authority on how "hackers see their online exploits" because... why?
I'd recommend looking at how ServiceMagic does it.
They choose and list 3 professionals (which are chosen by area, which adds an artificial funnel to a natural one).
If I want more, I can request more, but often 3 is just right to compare prices/rates and professional knowledge/fit.

I would strongly recommend this approach if you aren't already doing it (have yet to sign up).
Avoiding Arbitrary Code Execution with nginx and php-fastcgi
AT&T, Verizon Required by FCC to Share Networks for Mobile-Data Traffic
Invite please, signed up for one; my twitter is bbhoss.
Could it be possible that Pandora has access to the IP address for the device when you initially connect to the service? It wouldn't be a specific geo location, but even "Northern California" would be beneficial for advertisers I would think?
The 2001 earthquake in Gujarat lasted for more than 2 minutes and killed around 20,000 people. The quake struck early in the morning during India's Republic day celebrations. The authorities said that the long duration caused more damage http://en.wikipedia.org/wiki/2001_Gujarat_earthquake
Just what this thread needed, more FUD.
I tend to agree on this. However, I'm curious how some hardware specific stuff will be abstracted. Will html5 support sensors, cams, mics, et cetera? Currently, only the GPS sensor is supported. I have not yet seen any proposed features heading into this direction.
Thanks! Sent you an invite.
>I am not against what Anon is arguing for in this case, but what they are doing is highly questionable and crosses the line. This is no longer civil disobedience but something more akin to mobster tactics.

It's unfortunate that more conventional forms of civil obedience have been rendered ineffective in dealing with corporations who, by lobbying government and dominating popular media, have overcome the traditional checks and balances of a healthy civil society.
China seeks alternatives to 9 million burials a year
I think I'm a distributed computing fanboy. I'd like to pull a few EC2 (or GPU) instances and see how quick brute forcing different encryption/hashing would take, how big of a prime number one could compute in a few hours, do the same pi/e/eulers, or let some genetic algorithms generate a huge wad of data. No idea why or to what ends, just seems like a cool thing to do with spare time.
The problem w this article: The killer app for any computing platform from the dawn of time has been games -- now try making a full featured video game with HTML5. I'm sure you can do something, but to really tap the potential of the platform you have to native.
Boosting brain matter by learning like a child.
Neither is Tom. ;-)
Funny, "alien GUI" is how I was going to describe Xcode.

If the final version of this looks and runs as well as iDEA, it will do just fine, and will hopefully bring OSX/iOS dev back down to earth.
You mean there might be a future day where ;m not tortured by Adobe Acrobat begging me to stop my real work so I can do some meaningless update?
University Student Jailbreaks iPhone Units, Earns $50k a Year
Ask HN:Books/sites on analytics
I am interested in rolling my own (small) analytics product for the users of my application. I'd like users to see some basic data about who hits their profile pages, where they're coming from, etc. Are there any books or other literature that can give me a place to start, help me think about what kind of data would be useful, how to build a data model, etc.? Thanks.
The project sounds cool, but the perspective of the bottle icon is way, way off.
Would love an invite! stevenj134@gmail.com
Genetics may affect how much caffeine you crave
comparisons like are really quite trite.. the team I'm on makes heavy use of both technologies mentioned in the article and right now we have much better results with native code when it comes to mobile applications.. but it really depends on what you need to do

also I have to say viewing it as a competition is pretty ridiculous to me
Think small, start small – An interview with Stephen Ou
Review my startup: Similarity, online dating in the age of Facebook
Here it is: http://www.similarity.com/

I'm trying to build an online dating site that actually makes good use of the social graph. It uses some elements from traditional algorithmic matching systems to make a game of sorts out of setting up your friends. Or you can just use it for yourself.

Since we're all geeks here:

* Automatically builds a profile for you out of your FB info when you arrive.

* Matching is based on Likes. You can like and dislike more stuff.

* You get to play with the algorithm and get different results.

* You can limit match results to the friends-of-friends circle.

* You can pick a friend to match as, and see their match results - even if they aren't a Similarity user.

* You can suggest dates on your friends' walls, which posts a cute blurb about the things they have in common.

There's just one developer right now, me. I built it in about four months using Appengine, GWT, and a half-dozen opensource projects - some of which I published myself (http://objectify-appengine.googlecode.com/, http://batchfb.googlecode.com/). I pulled off the "coming soon" page a week ago so my friends can try it out, and now it's ready for public consumption (I hope!)

I'd love to hear your thoughts.
B&N opens up the Nook with Developer program
This is a tough question because your ideas fall into many industries and most of them sound interesting so all the answers you get will leave you back to square one... which to pick?!

I would suggest trying to narrow down your choices based on your strengths and weaknesses (and those of your co-founders if applicable) and which ones you believe in the most; which would you buy/use/subscribe to as a consumer? This should give you a short-list where you could then perform a SWOT analysis^^ on each to help you trim the short-list of ideas down further. Get it down to one idea you are passionate about! Bring that to HN for feedback and you'll definitely have a great start!

^^ You mentioned you have done countless hours of research for an idea... Sometimes 'searching' isn't enough. Put your energy into 'doing' instead. If you're technical, create a prototype and unleash it to some people in the industry you are targeting. If you aren't technical, go find your pilot customers you want to target this to and present them with some wireframes and your elevator pitch for the product. Both of these methods will ensure you only spend a few days max but you'll be able to receive invaluable feedback to determine if you need to adjust your idea or try another one completely.
"Native" software is not going to be killed by hosted web apps, as it still offers users one thing 3rd-party-hosted SaaS never will, full control of the data it generates and manipulates, an empowerment that hosted services are unable to match due to financial and political pressures.

That said, it is rather obvious that the use of software which offers the option to store its data exclusively on equipment owned by the user (software which may increasingly be based on HTML5 languages and frameworks as well), will certainly be much more limited as bandwidth becomes more available, simply thanks to the convenience of not having to manage storage.
"Graham Weston, the chairman of Rackspace, said that his company would use the new Open Compute servers in its own designs, and Zynga's chief technical officer said that his company would take a serious look at adding the new technology to its own cloud."
http://www.pcmag.com/article2/0,2817,2383257,00.asp
http://www.w3.org/TR/dap-api-reqs/

http://www.whatwg.org/specs/web-apps/current-work/multipage/...

https://labs.ericsson.com/developer-community/blog/beyond-ht...
Internet service costs you money, too. A cup of water from the tap is so incidental that it might as well be free. Bottled water is sold at obscene markups, and people buy it; I think it's a very apt illustration.
Please read the guidelines http://ycombinator.com/newsguidelines.html
How long until Sony personnel are excommunicated from the Church?
In the worst case scenario you should keep it around for refactoring. The support in Xcode is far behind the state-of-the-art, those features alone should pay to have this around.
Chino y Nacho |Mi niña bonita Video Musical HD
I like to remind my Christians friends (and those who aren't friends) the ideals of Free Software - of setting people free and allowing them to help each other by means of giving them the software along with the resources required to improve upon it and share the results is very Christian. As much as the values of proprietary software, of enslaving your users and imprisoning them in a dependency relationship easy to abuse are completely against those same Christian values.

It's fun to watch their heads explode.

More recently, I have enjoyed quoting the "we fight for the users" line from Tron. Mostly because we really do.
Oh, come on. There is no need for inflammatory crap like this. We all know web and native apps will both continue to be important. http://globalmoxie.com/blog/mobile-web-vs-native.shtml

HN is better than this. Flagged.
>I and a few others were of the opinion that the scientific community didn't build the equivalent of LinPack or scientific simulation packages on 'Google like' architectures because they didn't have access to such architectures rather they had "Beowulf" clusters [2] which had been built to be more like Supercomputers. It wasn't that such problems couldn't be worked on shared nothing architectures, it was just that nobody was making any real progress along those lines.

Whats is the difference between 'Google like' and Beowulf or other similar Linux clusters for scientific calculations? A Beowulf is just a software which clusters together a bunch of cheap computers connected by whatever Ethernet is currently available for normal money (of course you can throw more money if you have it). On the other side, people have no problem running physics or bioinformatics calculations onto hundreds of Amazon nodes.

>it would put a huge crimp in any supercomputer type system.

thats what Beowulf and the likes already did 10 years ago. It is one of the reasons why "supercomputers" (SMP nodes connected by extremely fast backplanes in big cabinets or as you said "lots of shared state and epic low latency bandwidth") had the low rate of survival into 21st century. Of course there is still Top500 supercomputers - big rooms with a lot of racks and, frequently, very expensive/fast networks. Yet, if your distributed program significantly depends on the speed of the interconnect, ie. it have significant message passing component, it usually wouldn't scale effectively, ie. it may scale, yet with quickly diminishing return, Amdahl law style, even with extremely low latency / expensive interconnect.
It reminds me of Fight Club a little.
But they are supposed to use the AC input when not running off the UPS. I wonder why that would be a good idea.
Thanks a lot for kind words. Well, we think that we are a great asset to tax professionals. They can use SaneTax as the CRM/support service and improve the customer satisfaction and get new customers.
Does this really bother anybody? I'd rather see relevant ads, not some vagina spray for grandmothers in Texas.
Use these service design tools to map complex experiences
Does HTML5 mean the end of the native app?
Or they're just using NativeClient as the sandboxing mechanism.
Why do apps from the same company look worse on Android than on iPhone?
I can't say I share your dissatisfaction wot the new XCode UI, initially I disliked it but now I have no idea how I ever lived without it.

Just give it a chance is all I'm saying.