skysight-inc/HackerNews huggingface dataset:
I almost never write classes in Python. That may be a result of the fact that I never use Python for anything other than system automation and data post processing; I don't use Python to build complicated systems. What I have made use of are named tuples:

3DPoint = collections.namedtuple('3DPoint', ['x', 'y', 'z'])
p1 = 3DPoint(3, 2, 4)
p2 = 3DPoint(10, 1, 10)

dist = math.sqrt((p2.x - p1.x)**2 +
(p2.y - p1.y)**2 +
(p2.z - p1.z)**2)

I don't mean to say that classes aren't useful in Python, just that I've gotten a lot done in the language just depending on hashes, lists, tuples, named tuples, functions, comprehensions and generators. I've never felt the need to define a a class - the closest I came, I realized I wanted a named tuple. It certainly would make sense in the above example to define "dist" as a member function of a 3DPoint class, but it's just not how I write code in Python.

Contrast this with C++, where I define classes all the time. I think the reason for this discrepancy is that if you want to do anything interesting in C++, you almost have to define a struct or a class; that's where most of the abstractions happen. In fact, if I want functional style code in C++, I have to define my functions as classes. I think that Python's native tuple types, first-class functions and comprehensions make the difference.
Google has gotten so bad. I'm now finding worthwhile results until the second or third page.

Here is my search process

If it is from ehow ignore

If it has my search term in the URL ignore

If it is from about.com ignore
That's not the whole point, even if it's in your cache it takes time to evaluate. Jquery and jqueryui together are taking 300ms in my chrome - blocking the page painting
> if I want functional style code in C++, I have to define my functions as classes

Much of the benefit of C++11 and Boost is in not having to write functor classes.
Letter from China: Apple, China, and the Truth
Jenkins IRC Plugin, by Paul Sandoz
Also useful: a comparison of languages, cookbook style: http://pleac.sourceforge.net/
I'm with you.

Create content & do minimum SEO.

Eventually, other sites will link to your content & Google will figure it out.
Dream Drop Distance Kingdom Hearts 3D sortie prévue en France
I've been using last.fm since it was audioscrobbler. I wrote one of the mac scrobblers years ago to upload my iPod plays. While it is fun to track my analytics, its user recommender is poor at best and the radio, I don't know, it just doesn't match my taste. I use it all the time to find popular songs by artists I've just discovered though. Great for evaluation.

Sharemyplaylist.com is basically what makes Spotify useful for me at all. I still can't talk to anyone, but at least I can have a playlist that sounds roughly like the songs belong together. I'll rarely discover new music on it.

For music discovery, I find http://hypem.com and mp3 blogs to be far more useful. Still no strong community, but at least I actually discover new interesting things.
This is wrong:

primes = [2, 3, 5, 7]

puts primes[0..3] # => [2, 3, 5]

It actually outputs [2, 3, 5, 7]. I believe the author meant to write:

puts primes[0...3] # => [2, 3, 5]

Had trouble finding an email on his blog page. Hopefully the author is reading here.
I just wrote to a bunch of addresses in the Frankfurt/DE area, asking for that kind of data. I hope i'll get more response than you did.
> Being convicted of a crime punishable under Australian law to 12 months or more in prison can disqualify a person from sitting in the Australian parliament for the duration of the sentence, even if that sentence is suspended.

That seems a bit odd considering Australia's history doesn't it?
I use ido and imenu to jump around, but this is for when you already know what's where and how it all fits together.

What about when you download some library from Github and want to quickly get an idea of how it all works?
Boycott Yahoo
I have had enough of the exploitation of the legal and patent systems. Yahoo is suing Facebook for violations of Yahoo's social networking patents (that statement is laughable on its own). We have redirected Millions from our R&D to deal with matters along these lines and it has prevented job creation and taken away from our products growth. Yahoo is simply committing extortion by being intellectually dishonest and it is killing innovation and serves no purpose other than greed. Yahoo did the same thing to Google and leveraged timing to procure themselves a healthy chunk of Google stock right before the IPO. I have been a customer of Yahoo for almost 12 years and as of today I will close my account and move all my Yahoo services to Google. Yes I know they are all big companies and all participate in such activities but Yahoo is the straw that broke this camel's back so it starts with them for me.
Ok, that's something I was unaware of. Makes me tempted to get a system setup to do a real test of it then. I had assumed that since the static libc is a copy of the object files going in that it would be able to do the LTO even at that stage. I don't think I want to play with getting my system built for doing LTO like that and risking instability on my main machine.
I would love to use other languages (static ones), but Python is so pragmatic AND still on an upward trend right now that it would be stupid for me not to use it.
Exactly what I was thinking. Probably not any more than it would cost the website owner, however much that is. Depending on how successful your competition is and how much money you have in the bank this could be a viable strategy.

And the implications of that make me shiver a little.

(Disclosure: I have no idea how much it would cost. But my hypothesis is that it would be the same as if the website owner had done it.)
Embedded "turn Pages" UX for pdfs?
I am trying to embed an ebook into a website I am working on and I wanted to have readers the "turning the page" experience that are in ibooks etc. Are there any hosted ebook platforms (pdfs) that allow the user to "turn the page"?
Lambdas buy us this in C++11 (which is awesome), but not so much with Boost alone. Boost can help if you are, say, applying the member function of a class to a bunch of objects; you don't have to write a speciality function object to express that. But if you're writing logic from scratch, and you want it to be a closure, it needs to be a function object.
The reason I'm excited about this that I won't need to wait for the carriers to update my UI. I imagine there will be a whole rage of interesting 3rd party interfaces I'll be able to browse and download.

Want and interface that's just command line. Somebody will make it.

What about an interface for Grandma that just has really big fonts in just a dialer, contacts and photo album.

I feel like I got burnt when I bought my 7" Samsung Tablet because Samsung is not supporting it anymore and it has some really clunky interfaces.

I would love to see and ecosystem where I have full and easy control to install and remove apps from my phone easily. Fingers crossed.
ehow should have been hit with the Panda update? Do you have a "block all example.com results" link on your Google results page? (You might have to visit the link and then hit back in your browser to get it to appear.)

Do you have any examples of search terms that don't return useful results until page two or three?
Yes, but many function objects can be constructed easily enough with Boost.Lambda and related libraries.
Patrick McKenzie's A/Bingo ported to Python for GAE
From the wikileak article linked below:

"Having Julian Assange elected to the Senate would give him some advantages, at the very least the embarrassment of the Australian government having to communicate to whatever authority in Sweden - or the USA as the case may be - about 'Senator Assange' or, if ensconced in Parliament, the embarrassment for Attorney General Nicola Roxon if ASIO was found to have tapped Julian Assange's parliamentary phone and internet connection."

Then it goes on about starting a wikileaks party and actually archiving some political change.
As far as i know he just parses the websites of the different public transportation services.

Some of the techies behind those sites were kind enough to provide him with a url parameter so they know where the spike in traffic comes from.

In addition, all he got is the non-live data. In the article the live data from every bus station is used.
Getting out more than you put in: an overly efficient LED
Startup Forum: What does it take to make it in Berkeley?
I've updated the article to reflect the reasons why I pointed at vtables, which, as you say, are very likely incorrect.

And no, the article does not say that Python was performing faster than the STL. In the first sentence in the "What I Built" section, "Using C, I wrote a handful of lines of C code that took a sorted sequence of 4-byte integers that represented a Twitter user's followers, and I intersected that sequence against thousands of other similar sequences for other Twitter users." I mention C twice, despite it being awful grammar. I wanted to make it clear up front that this wasn't a "Python vs. X" post.
I am all for continuing to clean up search.

I'd also like to note that for people creating content on the web, especially programming-type people who deal in logic and certainty, the SEO system resembles something like black magic. It's pretty clear that unless you understand SEO and apply it, you're never going to be seen no matter how good your content is. Now it appears that if you understand it too well that's also a bad thing.

The goal here is to let the users themselves inform the search engine as to what content is good -- hence the plus-ones, social search and all of that stuff. But all of this is still indirect evidence. Unless you could plug a computer inside the head of a person and watch their every thought, the only real data you have for input is server logs, click-throughs, and all kinds of other things that computers do, not people.

I just don't see this being solved any time soon. But I do see it getting so complex and unwieldy that it continues to frustrate searchers and content producers alike. Meanwhile the bad actors will continue to have a heyday.

Wish I could be more optimistic about it.
The autobiography The Periodic Table, by Primo Levi, see Chapter 12, Chromium. Recipes are perpetuated. Reasons forgotten!

Spoiler: The extract mangles the humour, but you get the idea.

http://www.philosophyblog.com.au/extract-from-the-periodic-t...
Miso Media on SharkTank (skip to 30:00 to view the awesome demo)
What sold me on ST2 was the Package Control (http://wbond.net/sublime_packages/package_control) and the fact it works on my Linux box and Macbook. Generally ST2, with Aquamacs + SLIME for Clojure and Common Lisp and vim on console because my fingers are hard-wired to it (I've been using it for almost a decade).
I switched from Vim to ST2 two days ago, and this was precisely why.

At the risk of repeating what you wrote above: strictly speaking, Sublime Text 2 doesn't do anything you couldn't do with Vim, either by installing multiple plugins or writing your own plugin.

The difference is that most of the plugins I installed in Vim are features which just work in ST2. I can't _believe_ I went this long without a robust "find in files" or a project system.

Also, in the ~10 or so years I've used Vim, I've _never_ learned its specialized scripting language. Every time I've tried, I've given up in frustration. You can use another language but you can never truly escape vimscript. ST2 plugins are written in Python.
"An app that sets up and updates Xcode and command line developer tools automatically."

As someone who just spent 2 days dealing with bugs specifically related to the Xcode 4.3.1 / iOS 5.1 release, PLEASE GOD NO. NO. GOD NO. I'll update Xcode manually and with as much advance warning as possible, thank you very much.
I think you're conflating two different issues. Poor UX for installing 3rd party software has been solved with things like Steam or the Mac App Store, for example.
In many ways Safari is better than Android stock, in particular in the HTML5 features supported.

But if you have ICS, Chrome for Android actually beats Safari.
No problem! It occurred to me that I've never really talked about the Napster architecture or algorithms publicly.

I once hacked up Transmission to re-prioritize based on network distance. It worked rather well when it discovered over the DHT. It is a lot easier when you only have to calculate distance between you and other networks. Storing the graph of distances between two arbitrary users is harder.

The code was part of the assets that were bought out of bankruptcy by Roxio (who renamed themselves Napster). I doubt it is being used for anything.
On the Future Terrors or when evolution should stop for a while and think
The reason is that a larger retina with a larger aperture is able to detect more photons because of its larger area.

This makes them more effective at seeing in the darkness of the deep ocean.

It's the same reason why cameras with full-size sensors are more light-sensitive and create higher quality images.
Cracking Open the Apple iPad 2012 (Wi-Fi + 4G Verizon)
That sounds like a marvelous future. Everyone who can justify throwing money at the problem can use paid search and everyone left in organic search can wish them all good riddance and get on with producing content.
Oy, Boost.Lambda. I tried, I really tried. I wrote this comment here on HN a year and a half ago:

I played with boost::lambda, and I found the resulting code less clear than a simple for loop. I also had difficulty gaining an intuition for what I could and could not do with it. Rather than constantly asking myself "Can I use boost::lambda here...? Will it look better or worse than the alternative?" I just decided to never use it.

While I prefer a functional style of coding, I recognized that it was silly to adhere to it if doing so made my code worse - C++'s support for what I wanted to do just wasn't there. If what I wanted to accomplish was several lines of code, I wrote a separate function or function object. If it was brief and I could not express it with combinations of existing functions, then I just wrote a for loop.
Good content is a key part of SEO
Polyglot Persistence Architecture at Socialize: Splunk for MapReduce & Big Data
Pure CSS Clickable Events Without :target
Don't you think the obvious solution is to build an algorythm that thinks like the human brain? I suspect Google isn't that far away from that riht now.
This is a quite realistic concern. There is a story going around from Germany were smaller online shops were the targets of link-blackmailing. If they refused to pay certain "fees" they were hit by massive amounts of destructive links, i.e. those with "sex", "viagra" or "porn" keywords. Some shops indeed refused to pay and promptly were loosing massive amounts of traffic/customers.
Here is the original story, unfortunately only in German:
http://www.golem.de/news/google-ranking-wie-ein-erpresser-ei...
I'm a Jetbrains convert too. Editing on a structural level rather than a purely textual level is so much more efficient and having really strong refactoring tools has changed the way I code. I just wish it was easier to edit single files outside a project.
I use IntelliJ for writing Clojure. Vim for terminal editing, and Textmate for everything else.
Yes, I do think this could be worked out - the packaging infrastructure we have today is really powerful and could be built upon. No reason to throw out the baby with the bathwater, I just wanted to illustrate some of the obvious drawbacks of the current "state of the art".

I really hope the ideas from the OP get some traction, Ingo makes some very good points which I haven't heard expressed so well before.
Disagree with "Decoupling" never used or "if used, they are pulling a fast one on you". It not only will help make his point of decreasing line-count, but more importantly, it is one of the main principles in achieving DRY-ness (both code-level and more importantly, architectural level DRY-ness). I'll even go further and say that if you're not thinking about it all the time, you're most likely doing it wrong.
But it's only for limited sized sets, 512 entries with the default configuration. Our sets were millions of entries.
OTTAWA VS TORONTO LIVE NATIONAL HOCKEY LEAGUE TODAY NIGHT
Enjoy National Hockey League match Between Ottawa vs Toronto match. Please do not miss the today’s great match between Ottawa vs Toronto. I hope you will get so much fun by watching this very exciting match between Toronto vs Ottawa live National Hockey League 2012 online streaming. Watch National Hockey League Ottawa vs Toronto live online on 17th march 2012. Toronto vs Ottawa match is the very exciting Match of the Hockey 2012 which will be kick off at March 2012.

Ottawa vs Toronto live National Hockey League on online

The National Hockey League is an unincorporated not-for-profit association which operates a major professional ice hockey league of 30 franchised member clubs, of which 7 are currently located in Canada and 23 in the United States. Headquartered in New York City, the NHL is widely considered to be the premier professional ice hockey league in the world, and one of the major professional sports leagues of the United States and Canada. The Stanley Cup, the oldest professional sports trophy in North America, is awarded annually to the league playoff champion at the end of each season.

Ottawa vs Toronto live National Hockey League 2012 (Click Here)

Toronto vs Ottawa
Date : March 17, 2012
Time: 23:00 (GMT)
National Hockey League 2012

Watch Ottawa vs Toronto National Hockey League 2012 live
The iTunes Music Store has been around since 2003. It has been three years since all DRM has been removed and files are 256kbit/s AAC.

Granted, this happened despite the music industry's efforts, it took a lot of pressure from Apple to get there. But still, I very much prefer the current situation over when Napster reigned. (Does noone remember the amount of garbage on Napster? The malware, the fake files, the low quality files? Not to speak of the terrible speeds -- many peers were still on dial-up...)

With iTunes, you can find new music easily, download high quality files, and get the album art and liner notes. Downloading and purchasing is fast and safe. You get to pay a fair price and know that the rights holders are being compensated.
Which does nothing to improve his situation in the U.S. The U.S. already does not have the jurisdiction to wiretap overseas; it must have local agencies do so (and many of them agree to do so, pursuant to INTERPOL agreements).

The wlcentral article is clearly written by someone who does not understand Parliamentary government (probably a fellow American). Members of parliament are selected by the parties (rather than being elected directly), but the parties must meet a minimum vote threshold to receive any seats.
Fortunately this is somewhat more than just a wicked problem, something that is going to keep life interesting for a few more years to come.
The Advantages of Pair Programming
That's a fantastic hack! I have just one question, how did you use stty to talk to the serial port with Lua? I have a LEGO Mindstorms set I want to program, and I flashed pbLua on it and am building a little framework to talk to it, but it's having trouble sending lots of text to the serial port (the brick freezes).

What I'm doing is similar to what you are (as far as I know, anyway, I'm pretty new to Lua), which is just opening and writing to the socket. I can get/send text, but I'm wondering if there's some other mysterious setting I need to change for it to work. Also, since this is serial over USB, I'm not sure if it's the same thing at all, actually...
I hope they'll be able to do it right. But, as soon as they change their algorithms, SEOs will reverse engineer them again and change the optimizations. There can be no definitive solutions, at least not with current technologies, because SEOs are very smart and very fast at adapting.

As an aside, the first over-optimization that I would target if I were google are keyword-based domain names. Keywords in the domain name are given WAY too much weight; how often do you find that the top three results for the search "XXXX YYY ZZZZZ" to be very shallow but keywords-rich websites with the domain names www.XXXXYYYZZZZZ.com, www.XXXXYYYZZZZZ.org, www.XXXXYYYZZZZZ.net?
Bitcoin War: The First Real Threat to Bitcoin?
Very useful also through Haxe JS extern. Wish for more media control but that will probably come in the near future.
With the work we were performing, the 2x improvement may not have been necessary, but it was useful. We could run everything on 1 box and keep up with roughly 30-50% system utilization continuously. Had we used the STL version, we would have needed another machine, and may not have been able to use mmaps to share data between cores.
Well, that depends on how much a particular investor invested and I think there's no limit on how much investor should a start up have. You can still be considered a start up no matter what but I guess this would lead to an overfunded startup considering the investors' head count and the amount that they will be investing.
I'm not certain if this is an inappropriate place to ask, but what is everyone's favorite remote pair programming setup?
That's why I opted for 'auspices'. It's far worse to detain a head of state or member of a parliament than a designated representative.

While Assange will never be part of the government, it puts considerable pressure on the Australian government to do so if he is elected. Letting the opposition languish in prison is a major faux pas if you claim to be democratic.
I think he didn't mean that it's never used, just that it's never actually said in the real world.

My experience confirms this.
"The point is that the argument is totally specious. It's built upon the premise that only journalists are held to any standard of honesty or factual integrity. Can you cheat on your wife and say 'well to be fair, I'm not a journalist!'?"

Oh, come now. You're assuming something critical: that Daisey went into the project representing his work as factual. If he walked into WBEZ and said "hey Ira, this segment is a dramatization of what I encountered in China, but I'm not a journalist, and I don't know all the rules", and the staff ignored that statement, or neglected to fact-check completely, then Daisey has a legitimate defense.

Likewise, if I create a radio show that sounds like an NPR news program, but is actually a fictional simuation of an NPR news program, full of falsehoods and distortions of the truth, am I lying? Technically, yes. But I don't think anyone would hold me to an ethical standard that requires absolute truth in a work of art. And perhaps that's what was going on here (that's certainly Daisey's defense.)

As I said before, I doubt that this is true -- it certainly seems as if Daisey crossed an ethical line with all of his appearances on news programs and whatnot. But there's wiggle room here. There's room for someone else to be wrong.
"Using C, I wrote a handful of lines of C code that took a sorted sequence of 4-byte integers that represented a Twitter user's followers, and I intersected that sequence against thousands of other similar sequences for other Twitter users."

In this case, a custom C algorithm is very fast. I didn't implement the C++ version, but I theorized that the C++ version would be slower because I'd already implemented the C++ algorithm first, and it was slower than what I ended up with.

I've also updated the article to remove the vtable stuff.
I'm on Windows. I use Notepad++ virtually everyday. I only use Visual Studio for my C# projects, and other than that I do everything in Notepad++. Eclipse is for my only Java project.
Let me tell you, searching for typical tech support issues, ehow is always on the first page and the content is clearly spam- usually only tangentially related to the query.
try Googling exchange server specify IP adress- and try to find something useful.
Petty interesting article.