skysight-inc/HackerNews huggingface dataset:
Or go back to C and learn that recursion is not really used like that. If you know the limits beforehand, use "for". If you don't know how deep the processing will go, use recursion.

If you must code a loop without using "for" it means you're doing a homework ;)
But both Apple and Microsoft appear to be making moves to lock down the desktop too. In many cases I prefer native apps too but I don't like Apple or MS telling me what I can and can't install on my computer.
He abstracted this loop:

for i in xrange(100):
statement

into:

exec "statement" * 100

The 'no exec' alternatives propose something not as generic since they can only print something a number of times.
Or just playing, like I was ;)
That's actually a great point. Even after reading those notes I still wouldn't have thought of applying the power law to my thinking about Facebook (I don't think Facebook will prove anything special long term but it's always useful to be critical in your thinking and consider multiple points of view).

As an aside, those notes are an incredible way of thinking about the world differently. I've gotten a lot out of it.
The Big Bang Theory:The Complete Seasons 1-5 DVD Box Set
A sitcom that shows what happens when hyperintelligent roommates/physicists Sheldon and Leonard meet Penny
the UK parliament basically does this already:

here's an example of an act that's been modified:
http://www.legislation.gov.uk/ukpga/Geo3/41/79?timeline=true

and an example of a bill going through parliament:
http://services.parliament.uk/bills/2012-13/financeno4/docum...
@piccsydaniel, may you release that framwork so other can reuse it with their theme and data
@piccsydaniel, may you release that framework so others can reuse it with their theme and data
Bankruptcy advice on how to fill bankruptcy forms
You're right, Python isn't beautifully minimal. But the Scheme version is boring ;)

Rather than asking the interview candidate to use recursion for a problem that shouldn't be solved using recursion (unless in a language where recursion is the idiomatic iteration method), it would be better to ask about a problem that is best solved using recursion rather than printing "Hello world" -- perhaps something from Project Euler (http://projecteuler.net/).
Looking for French developer Partner
Hi all,

Olivier and Julien are working on the development of an innovative website project to help French real estate market to become more transparent for the consumers. We have the operational, management and financial competence. But as a website project, we need a solid tecnical associate to manage the creation, design, integration, and back and middle office websites activities. We are looking for a person with at least 5 years developping experience(strong back office experience, a sound knowledge of algorithm) a basic knowledge of real estate is a plus.
(33% each, by being equal, we will go further.)
Contact : olivier.maitre@free.fr
The most cursory glance at that pitch, and one fact shone out:

Cost to acquire customer: $0.55

Long term customer value: 5-7x of "cost to acquire".

Either my English comprehension is declining with age, or someone just shot themselves in the foot.

They list revenue of $2750 - 3850 for 1,000 customers.

That's ATROCIOUS. Groupon-land.

If that's the state of quality of companies, no wonder the whole market is crumbling.
Total Commander 8.0 released
Gripped on Climbing: How Safe is Rock Climbing
I think the really critical difference is that Apple and Microsoft can't tell me what "apps" I may or may not run on the web but they do demand this privilege on their mobile devices and seem to be making moves towards insisting on it on the desktop too.
On the contrary, wouldn't OP's solution be an example of more generalized implementation of multiplication? I can see that it is similar to (X * 2) where X defines behavior of __mul__.

Yes, there is chance that arbitrary objects can provide different semantics for __mul__. It would be true for any language.
If you're using the odometer as a fuel gauge, surely volume becomes irrelevant for judging your range (excluding the tuning purposes)?
e.g.
My tank lasts 200 miles => I've gone 100 miles => I can go another 100 (top) before refilling.
> This is a specific case of the * operator, which is overloaded

It is not operator overloading in the strictest sense, but more of duck typing. In Python (and Ruby), operators are syntactic sugar for method calls on the first operand.

Operator overloading on the contrary suggests a function add(a, b) that reacts differently through polymorphism (i.e according to the types of its arguments).

The distinction is important as overloading and polymorphism simply do not exist in Ruby and Python, only overriding.
if it is a power law in the sense that a few companies return a lot, whilst most return a little, how does that make the mean irrelevant?

the mean of a power law of this form is more skewed by the few companies returning a lot than it is by the majority. assuming that more than 50% of the companies return a little, the median would be irrelevant, but the mean is very sensitive to outliers.
Presenting The Worst Thing On The Internet: The Nokia Lumia Rap
News is only free because the newspapers got into a war for eyeballs on the Internet. It is only now after they've had their businesses decimated that they realize that free content wasn't such a wise move on their part. There certainly isn't anything about free news that makes it a competitive advantage. If anything, it actually hurts them economically because they're giving away their product for nothing. No one sane runs a business on driving an increase in traffic.
I'm not sure this will reflect well on Haskell that this is the most natural way I can think to write it. But I can pretty much guarantee replicateM_[0] is the most generalizable idiom in this whole comments section.

replicateM_ 100 $ print "Hello World!"

It's pretty to me, damnit.

-----

[0] http://hackage.haskell.org/packages/archive/base/latest/doc/...
Escort in Cyprus
Escorts in Cyprus are unlike other escorts in the sense that they are very passionate about the services they provide.
Magento Sporting Goods
sequence_ $ take 100 $ repeat $ putStrLn "Hello, World"

alternatively,

mapM_ putStrLn $ take 100 $ repeat "Hello, World"
Perl version:

perl -e 'print "Hello world\n" x 100;'
John Maynard Keynes said that.
[see above]
> Or go back to C and learn that recursion is not really used like that.

It's not used like that in C, it's definitely used like that in Erlang.
How often you stop for gas is surely better covered by a "range" measurement for the car? Maybe it's different in the states, but all the cars I've ever been in show your remaining fuel as a fraction of a tank. In that case, volume of fuel is completely irrelevant, so MPG vs liters/100km has not place.
e.g.
My tank takes me 400 miles => I have half a tank left => I can go another 200 miles
...is exactly equivalent to...
My tank takes me 600 km => I have half a tank left => I can go another 300 km

(For the purposes of this post, 1 mile = 1500m. If the size of a gallon changes with locale, why not a mile? :-p )
Fake AV scammer actions, step by step
Oh, didn't know about `replicateM_`. Not sure I like it much though, seems... redundant.
Physical gold purchases don't need to be declared in many places. Which means 0 tax, plus the fact that the government doesn't know you even have it, were they to introduce any kind of legislation.

These charts usually include dividends. When they don't they are very crappy. In many international stocks dividend is too substantial to be possibly missed.
Stock Tips, Free Stock Tips, Stock Trading Tips India
MaryFi – Turn your computer into a Wifi Hotspot
Christmas charity for Kids
Learn ways to Be An Elf and volunteer and how the wonderful USPS Operation Letters to Santa program works.Letters to Santa program to make more underprivileged children smile on Christmas and to inspire people with the real spirit of Christmas.
The monitor view that they're occasionally showing displays a reticle over Dragon. Or it's supposed to, but the reticle is a bit off (Kuipers spent some time talking to houston about it).

It reminds me of the adventures that Pettit had with camera calibration yesterday, I wonder if there's a connection?

Anyway, listening to Pettit talk through the camera calibration yesterday made me think that there's a lot of room for improved UX in the software they use.
Two issues:

1. FB doesn't behave like the sample mean

2. FB doesn't behave like the sample

1 does not mean 2. In fact, without any statistics of dispersion (which the Kauffman paper doesn't provide) we cannot rule on 2 whatsoever.
The linked video has become private, but other copies are available:

http://www.youtube.com/watch?v=f6H7NkM21MY

http://www.youtube.com/watch?v=pFZB91a1qUw (short)
It's a tricky thing to outsource.
More than that, the key point of contention is the fact that several countries with a total population of billions of people (China, India, Indonesia, Pakistan, Brazil, and others) are going to transition into developed "first world" economies in the 21st century. Currently there is no known technology that would allow them to avoid heavy reliance on carbon based energy sources while that transformation occurs. It's easy to sit on our 1st world thrones and imagine that if only we drove our cars a bit less everything will be fine, in reality the issue is about holding back people who are living in poverty, who don't have access to modern medicine, who don't all have access to clean water, etc. It puts into perspective the putative hazards of global warming to weigh against the cost of holding half the population of Earth in poverty.
Framablog, a blog about free software, net neutrality and popularizy these philosophie just published a french translated version http://www.framablog.org/index.php/post/2012/05/24/salut-a-t...
Interesting idea.

Those with neither Apple devices nor a Facebook account can't try this out.

Edit: My tired mind didn't realize this at first - this service utilizes both photos and statuses of the same person. Facebook is one of the few services which brings together a person's photographs and status updates, and has a large stock of both. The next best supply would be...a mash-up of Twitter and Flikr?
Yes. HQ specifically.
肾虚
It's a pretty common pattern, I think it's worth its own word, at least as much as mapM:

mapM f xs = sequence (map f xs)
replicateM n x = sequence (replicate n x)

Another cool thing replicateM is equivalent to: for lists, it's the cartesian power (sequence is the cartesian product). ...this is actually the primary reason I'm aware of it.
> If a monopoly occurs because the majority of consumers are giving that product/service their money, then it must be deserving of it.

Why exactly? The argument works if you make it circular (they deserve it because they get it), but so what?

It's not like consumers always do whats best for them, especially in the long run. Even if if the consumer did what was best for him or herself, that might not be what's best for everyone.

Honestly, I don't get where this seemingly naive faith, that everything will just take care of it self, comes from. Personally I can't see any evidence of that.
Taking Care of Baby Boy Clothes
Think Complexity - Data Structure and Algorithms in Python [pdf]
Antivirus programs and CD burning are two good examples.

Microsoft built a big developer base in part by not totally screwing them over. But looking at iOS, maybe they shouldn't have bothered.
http://torrentz.eu/i

You have to dig not to find copyright-infringing links at the root of TORRENTZ.EU's index.

At yet the statistic on Google's summary page suggests that TORRENTZ.EU is primarily --- no, overwhelmingly --- a non-infringing site. And that is the reason the statistic is there: to put forward that argument.

We don't have to agree on the policy debate here, but let's at least call spades spades.
It's long past time since Visual Studio was the only game in town. Back when it was between VS6 and Borland C++ Builder, I was initially attracted by Builder's drag-and-drop UI construction - it seemed very odd at the time that "Visual" studio didn't offer that functionality. But Borland's descent into bug-ridden stagnation and my discovery of wxWidgets pushed me into the VC++ world for upwards of a decade.

But now with Eclipse reaching maturity (it's the main IDE at the banking multinational where I recently worked), I'm finding less and less justification to stick with Visual Studio when my MSDN subscription expires. Another very promising tool is Qt Creator: http://qt.nokia.com/products/developer-tools

This has less of the UI quirkiness of Eclipse, and the built-in documentation is great. Qt is now using Clang for code validation, but can be set to use Gcc or the Microsoft compiler. So given that I'm using Qt anyway for cross-platform UI, this may be the way forward.
I think it makes sense to have two apps for FB. One's for content creation, and optimized for that. The other's for when you're bored and killing time scanning through the stream. When I'm sitting somewhere and I see something I want to share, it makes sense to just use the app that's optimized for posting a photo
I'm the app's author. We are thinking about letting users create their profiles in the app. That would be "practice material" for users without Facebook accounts.
Another option would be using the address book on the phone.
I do think it matters a lot. If the Windows and Mac platforms are only accessible through App Stores then we, developers, will have to pay whatever royalty or percentage those companies see fit to charge. We may also lose the ability to publish software at all to those platforms if they so decide without much notice and maybe even without recourse.

Although we could pass the expense of the App Store or absorb the cost, I guess most software companies would go bankrupt if Microsoft or Apple cancelled their accounts.
Happiness This Very Second
So I moved my blog.mintek.com to mintek.com/blog after using HubSpot and switching to a custom wordpress install.

I can't tell you that all the advantage was from the url restructuring, but it had a marked impact. Having tried similar things on test sites, I do think it makes a difference.

And that is what SEO is about… testing assumptions because there is no definitive answer. Even Matt Cutts isn't going to tell you everything 100%.
I hate to be so cynical on Hacker News, but I think it has some bearing on the business opportunities, so here goes.

If Watergate happened today, (1) the New York Times would assign a reporter like Judith Miller to present the administration's viewpoint almost verbatim, (2) the Economist would rehash conventional DC wisdom from across the Atlantic while largely misunderstanding the context, (3) Stratfor would hyperventilate and try to panic us into buying expensive whitepapers full of worst-case geopolitical scenarios, (4) Mother Jones would write an amazingly depressing exposé that nobody can bear to read, (5) the Christian Science Monitor would try to do the right thing, but find itself hamstrung by limited personnel, and (6) two thousand local papers would plagiarize the same wildly inaccurate article off the AP wire. Oh, and for every reporter who tried to discover the truth, 10 would take a statement from each side and imply that the truth must be somewhere in the middle.

Seriously, I would pay real money for accurate news and competent analysis. I've tried, I really have. But the available options are just awful. Editors want to move product, reporters want to finish 500 words by 5pm, and readers want to confirm their worldviews.
The Link Auditors - Meetup to discuss Google Penguin Updates
good link, thanks
still closer to free than it is to a day's
worth of your bill rate

That's a really fucked up definition of "free", which gets repeated often by Windows developers, but it isn't anything more than a delusion. And btw, remember that not all of us live on Silicon Valley's fat salaries ;-)
Is 'Camera' Instagram v2.0 or Facebook's latest facepalm?
Appears to me that Koreans are fighting a lot in Retail space. Earlier, Tesco (Home+ in Korea) launched Virtual Grocery store which is a big hit. Now its competitor came up with this innovative idea. More innovations in pipeline ;)
No. Usually, when I create a password I'm asked to verify it in the next text field. When I visit the login page and enter the exact same characters, I expect it to work. I shouldn't have to guess at my own password because some clever developer's algorithm decides that I made a mistake.
900 million users are not their customers, they are the product. I'm sure that there are lots of people and companies that haven't been advertising themselves on facebook so far -- I'm not suggesting they should, it's just the market isn't really saturated.
Nasa TV has a hidden video stream for their iPad app (http://liveips.nasa.gov.edgesuite.net/msfc/Wifi.m3u8), works great on Safari as well. Post here: http://t.co/b9jSxeqI
And that relationship is useful how?
Actually, it's June 1996 to December 2005 [1]

[1] http://bear.warrington.ufl.edu/ritter/post_ipo_report_052220... (page 9, Panel C)
I've been forced into a Six Sigma committee at work. It's horrible.

We've spent the last half year basically establishing what we knew before the whole thing started. Documentation like that seems to be 100% bloat that is designed to make people feel like they're doing something to earn the upper management title.
Programmers are optimists
Serious high-performance and lock-free algorithms (by LMAX devs)
I think the scary thing is that these guys actually have the power to control the Internet, if the bill is approved.

While protesting is good, I hope there will also be a solution which takes away that power from them - so that anyone can put up a website without fear of being taken down (or of having RIAA knocking at his door for referring to a website which has link to some where else from where you can download a movie that no one else would anyway buy).
Will Pod2g release Absinthe today? YES 90%
There's only say 12-15 million active accounts. Even if you had all of them you're going to run out of attempts before you reliably brute force anything. Far more likely is Blizzard looks out for large scale distributed brute force attacks and locks users to their last handful of confirmed IPs.

That's in the realm of speculation admittedly. Look I'm largely defending Blizzard here but they aren't paragons of security. For one thing they could stop a lot of actual real world keyloggers by putting in a randomized screen pin entry. They never did that but they have been pretty aggressive on many other fronts. The fact that their passwords are case insensitive is something that might surprise many people, (and I was mildly shocked when it was pointed out to me years back because I had been dutifully capitalizing 2 characters in my p/w....) but it ends up not being of much consequence imho. Almost all hacks have been keylogger or social. There's one rumored (confirmed?) MITM attack against the authenticator. There's probably some people that used 123456 etc. but the option for a more secure password probably wasn't going to help those people, ymmv.
I wonder if you could hack it with a spotlight?
The 2D (virtual) shop you are referring to: http://www.telegraph.co.uk/technology/mobile-phones/8601147/...
And a black sheet to block sunlight
The Court is the VM
PL 2012 PlayOffs  MI vs CSK Post Match News 
IPL 2012 PlayOffs MI vs CSK Scorecard: Get Mumbai Indians vs Chennai Super Kings Live Scorecard with Toss, Man of the Match. IPL 2012 Eliminator Full Scoreboard of Mumbai Indians vs Chennai Super Kings
As an aside, I strongly dislike the term UX/User eXperience, it makes no sense to me. I could substitute 'UX' for 'design' above and all would be well in my world.

I might say that the operators of the 3 Mile Island nuclear reactor where having a fine "user experience" because the interface was telling them everything was OK...
What are the tiny objects that seemed to be criss-crossing all over the background of the blinking light (visible clearly in fullscreen) ? Other satellites?
> the Christian Science Monitor would try to do the right thing

As a non-American, I was a bit taken aback to see the Christian Science Monitor mentioned. Are they a news source? Do they have a history of "trying to do the right thing", as you put it?
This quote rings very true to me: “The next big thing is always beneath contempt.”

I was one of the people that wrote off Twitter as a useless fad that would never catch on. For a while I also told everyone who considered buying an iPad to just get a laptop instead of a toy.

Hindsight has proven me wrong before, and these days I give more thought to what a new "fad" could be, instead of letting out a derisive snort.
5 books to hack the music
Kozmo.Com was another good one (http://en.wikipedia.org/wiki/Kozmo.com).
a statue is a permanent installation right? how do they prevent one guy scanning it and sharing the URL(?) to everyone?

or just bookmark the url and open it again next day without scanning the statue again.
It will be an interesting challenge to write a program that can 'scan' the QR code at all time.
If like me you were too young to witness the madness that existed back in the .com bubble, an interesting documentary to watch is Startup.com. It's a fly on the wall flick that documents the rise and fall of Govworks.com. (1998 - 2001) from almost day 1. Although their fall seemed more attributable to poor management than being bitten by the bubble, it's a good watch. (There's some lessons to learn there about time spent wooing VC's vs. time spent growing the business). I saw it for the first time yesterday...

http://www.imdb.com/title/tt0256408/
http://en.wikipedia.org/wiki/Startup.com
That's cool, I had never heard of this.

How is the salt stored to make sure attackers won't just steal your salt anyway? Wikipedia says "the salt is stored along with the output of the one-way function" [1]. Does it means the server needs to store the salt for each user so it can authenticate the password?

[1] http://en.wikipedia.org/wiki/Salt_(cryptography)
It's not a matter of whether individuals have the power to do something about the inefficiency of suburban living - after all, you can choose to live/work/commute in any manner you wish. The problem is that the balance of incentives and subsidies strongly encourages people to choose suburban living instead of something more sustainable, healthy and fulfilling.
Patio Furniture USA | I Need Coupon - Coupon Codes, Promotion Codes, Discount
Tech-minded guys think of all these issues. It is a brilliant marketing idea! I would scan the QR code.
But people have the choice of wether to live in that country or not. And citizens have the means to elect a new government to change that law. Because people that live in Spain know that the default is opt-in (or at least have the opportunity to find out), they have made a choice to either allow, or not allow organ harvesting. So, yes, removing the organs of someone who has not consented is unethical, regardless of the locale.

Spain (and many other countries) decided that they would rather be opt-out, so by default you've consented. This is actually a great example of the power of defaults to affect an outcome. Because of this out-out, the number of donations increases significantly.

I'd be more interested to know what happens to foreigners. I suspect that they aren't treated as consenting, but I don't know.
That would be an interesting concept. Open source the entire news process so that everything is completely transparent (information gathering to fact checking to distribution process). Call it the gnnews.
Maybe they'd like for one guy to share the URL with everyone.
France has a similar, web-wrapped project:

http://legifrance.gouv.fr/

It started small and iteratively adds more and more features.

I always envisioned some access to this through something like git or Time Machine.
办真上网文凭
Yeah - I guess this is more of a customer attraction and branding scheme than foolproof.