skysight-inc/HackerNews huggingface dataset:
I find C++ much easier to read than Python. Here's how to reverse a string in C++:

string s = "string";

reverse(s.begin(), s.end());

And here's how to reverse a string in Python:

s = "string"

print s[::-1]

In my opinion, the C++ version is far easier to read and just makes more sense. Edit - This is just one small example, however, I find it holds true for the entire languages in general. Also, I do a lot of Python and C++ systems programming so I use both frequently and while I prefer C++, I think Python is the best scripting language available today.
Fun project!

I balked, however, at "deciphering web pages to do simple things like displaying the time". All of the prompt escape codes are on the bash man page. That's not a criticism, mind you[1] - just a pointer at the fact that as you develop as a command-line guru, you'll find much information is right there at your finger tips in man pages.

Best of luck in your studies!

[1] No, really. I spend all my life on the command line - it's second nature to me. On the other hand, I wouldn't have a clue where to begin to do a little web app like yours - which probably makes me an amusing old oddity on HN :)
This is the next part in the series. It is very interesting
to listen to what people attribute to their success.

http://www.npr.org/2012/10/30/163895118/paid-in-america-the-...
Building a pulley system would take some significant time and requires finding the necessary tools and resources. The bucket brigade is much simpler and immediately available.

Not nearly as much fun, though.
This is great that they are starting to look outside of the US for startups. However, in this batch there not one startup that bring some big innovation or that I look particularly forward to use...

I mean ICONFINDER?! Do they really needs to be incubate / raise money?

Tealet? A subscription based business on tea? Wow...

The list goes on...

really disappointed in this batch of 500 Startups.
Where is the @ character?? How am I going to make the classic prompt?

user@comp:Folder$
Niece and nephew are seven and nice respectively. I would like to encourage them to use the devices for something other than games. Having no children of my own I am not even sure where to begin when it comes to app selection.

Being children their interests do change often but helping them in their schooling, something that is self directed so when mom isn't around to encourage them the software itself is engaging enough to do so.

So I am up for recommendations. I am more than willing to load up apps for whichever tablet I give them and in fact would be much happier if I could deliver them experience out of the box.
I use Fastmail.fm for email and they're hosted at NYI, which seems to be fine. I wonder what their facilities are like?

http://www.nyistatus.com/
The elevator equipment is also in the basement, which is flooded with sea water and diesel fuel. Even if they had power, there's no running them until everything is cleaned up.[1]

[1] http://news.ycombinator.com/item?id=4720894
Really nice resource. I've been playing with CSS for years and still find myself scratching my head from time to time with some of the layout basics. Just went through the full tutorial and it's quick, lightweight, and covers exactly those issues that (I think) confuse a lot of folks.

Well done - and thank you!
No! Not by any means. But don't take them at their word. As with everything you read (or hear, or see . . .) you should question it. It should encourage you to investigate more of the subject at hand, to look up the references (no references is a bad sign). If nothing else, it can provide a valuable lesson in skepticism and the depth required to truly understand these fields; you didn't really think that such complex topics could be properly addressed in a twenty minute TED talk or a single non-reference book, did you? These things are teasers, meant to whet your appetite or let you know that there is a broader world out there.
Try the Fabric blog for some quality mixes:

http://www.fabriclondon.com/blog

Shameless plug:

http://www.fabriclondon.com/blog/view/audio-paul-louth-fabri...
You sure you knew the same guy? My working memory is crap, and, presumably, getting worse. ;)

I find that functional programming really cuts down on the amount of mental state I need to maintain. So while I'll have some API docs and another module or two open for reference, I don't need to worry about what that variable gets set to two pages above.

Maybe avoiding that kind of unnecessary detail makes one's unconscious better able to work on the program too. Still learning about this: http://joeyh.name/blog/entry/on_not_coding_late/
Inside the Titan Supercomputer: 299K AMD x86 Cores and 18.6K Nvidia  GPUs
Nowhere as much fun, but the brigade probably has more of a sense of camaraderie involved so it might balance.
No more cube fun, Buckyballs are are done.
Isn't it as simple as these French newspapers adding a robots.txt file to their servers?
I am a little surprised by this - both Sony and Dell have had credible 1920x1080 options at 15" for several years (admittedly I prefer x1200, which has also been available) - both have also had 1920 13" options for at least a year.
Interesting. I've been using $PIPESTATUS at the start of my prompt for a while now.
There seems to be something of a problem with hellbanning here, in the last few months. I've actually turned showdead on because comment death -- at least in the middle of the page -- no longer seems a reasonable predictor of comment quality.
The state of the art is the amazing `lens` package https://github.com/ekmett/lens/wiki/Overview . See this example, https://github.com/ekmett/lens/blob/master/examples/Pong.hs
Apparently the important bits of the elevator are also underwater.
Unfortunately, physics dictates this setup. To get to a top floor generator (which is generally necessary for ventilation), you have to pump from the bottom. For most buildings, that means from the basement, where the fuel tanks are placed for other obvious reasons. (Consider if one started leaking, would you want it dripping down to all of the floors below it?)

These data centers are well designed, but it's impossible to cover every disaster scenario.

It's easy for you to sit here after the fact and snipe at them. If you really think you can do better, go start designing them yourself. If you succeed, you'll do quite well for yourself.
Awesome! Payment processing is probably one of our biggest headaches, and this just gave us enough of a reason to try you guys out. Excited to try it out.
What happens to the pages? I input text, click on publish and the text boxes are cleared.
What Twitter Bootstrap Really Is
colanderman: I'm almost certain that the resulting vector files will be much smaller, because the algorithm substitutes subtle and complex color variations with much simpler color gradients that are only approximately similar and therefore have much less actual information content.

PS. Note that the resulting vector files are not just smaller, but the drawing elements contained in them are by definition resolution-independent, so all curves, diagonal lines, and gradients will render beautifully and without artifacts at all image sizes.

PPS. Also, note that music notation has no color gradients.
Matias Duarte Talks Tablet UI, Lack of SD Card Slots in Nexus Devices
Congrats.

I missed your first show HN so I'm going to give it a go now.
placeguitar is up :)
How much does it cost to rent a helicopter in NYC?
Retina iPad starts at 509 EUR (660.22 USD). So the N7 has a much bigger cost markup even before accounting for the missing Play voucher.
That's conspiracy theory logic. The tax issue has been bothering multiple governments, and many non-European media companies have problems with the news aggregation. Google is a very large entity, just because it is challenged on two different fronts does not mean that there's a coordinated assault.
I have absolutely no problem at all with people starting a business and making money. Good for them.

I am just saying the flaws in the business model as I've experienced it. Agencies could add value via insurance, holiday cover etc, but the ones I've experienced never do.
Where did I say I advocated standardized testing? I simply want a metric. It doesn't have to be standardized, it can be personalized. However, eventually I would like to see us gather some useful information from it. Think of my metric as performing an experiment. We'll try many different methods for the same curriculum, gather the results of those methods (what were the most common goals, what were the most commonly completed goals, what were the most commonly failed goals, etc.). Do you see my point now?
Content should be separeted from presentation: css class names and ids, which are HTML attributes, should not be named after what types of content they mark, not how it should look like.

What the author is describing is like a shorthand for style attributes.
Depends how advanced and fancy they wanted to get it, there's probably enough bits of random hardware in a data centre to improvise something.

It'd be more a 'thereifixedit.com' solution than something you'd use on a daily basis, but it could (possibly) work.
NOOOOOO!

Well the last time I bought a new laptop was 2007. I figured there had to still be some Thinkpads Ts with 4:3 screens (given that they're used by people who are in touch with the realities of traveling and all), but alas I see that's one more thing Lenovo has crapped up. Yet another reason to keep this IBM-branded T60 going as long as possible (despite the periodic keyboard swaps).

How do those spacers on the sides of keyboards not just scream waste needing optimization? I guess that 7% area savings for LCD manufacturers overrides common sense. Well okay, I see the writing on the wall - time to learn to use ed(1).
Better name!
Fusion Drive is just a fancy name for CoreStorage joining two independent disks with specific parameters.

Those specific parameters can be replicated using CoreStorage to join two independent disks. How, then, is that not Fusion Drive?
To reply to mjwalshe ... who from the looks of it is hellbanned:

> Submesible pumps or rig a block and tackle out of a window and haul jerry cans up that way safer thna carying open buckets by hand.

Diesel fuel can only be ignited by a high power flame (such as from a propane torch), and will not simply ignite due to sparks. Diesel fuel is amazingly safe to handle, much like fryer grease is safe to handle.
How Udacity is built on Google App Engine (part two)
Can someone explain how this is different than L2ARC with ZFS?
Or you could use the "reversed" built-in function:

s = "string"
reversed(s)

It also has the plus of creating a generator, saving memory from a new array allocation.
That's python 2 syntax.
Gatekeeper is a Good Thing. It has a reputation for being about restricting apps you can run on your Mac, which is unfair. I leave Gatekeeper enabled: if I try and run an app that isn't code-signed, all I need to do is right click and click "open" and accept the warning.

As others have said, ML is solid. All consumer features can be safely ignored: don't like iCloud documents? Turn it off and use your Mac as you always have. Under the hood, ML is as good as the Mac has ever been.
Shouldn't it be possible to make the fuel pump and it's power supply a closed, water proof system? Such that the fuel tank could be flooded and the pump would still run?
Wow, thanks. Looking for a bookmark in a tree was a pain, but now it's much better.
Actually, how to reverse a string in Python is just "s[::-1]" -- you omitted the printing from the C++ version.

In terms of readability, they both beg the question - is the reversed string ever actually held in memory at some point or can it occur lazily via latent reverse iteration?

I mean is the alleged readability of either language really answering any important questions?
Yes, it was eg. on Asus Finland's Facebook page.
How Memory Works: Things Most People Get Wrong
If anyone in the UK is after one, eBuyer are currently doing a pretty nice deal; 32GB Nexus 7 for £200 (RRP of the 16GB I think): http://www.ebuyer.com/398430-asus-google-nexus-7-32gb-tablet...
Netflix announces another open source library: Governator
I think it might be better if you could insert text in directly in prompt instead of having the slew of special characters that you had to drag in, and that ran out.

It would also be good to have a way to colour specific parts of it different colours.
If an article mentions Gladwell several times, and someone asks if the article made anyone think of Gladwell, it's a pretty good guess that they didn't get to that part of it before commenting.
As someone who designs these sorts of things for a living, there are a host of problems with having diesel fuel on the room. For one thing, fire codes limit the amount of diesel fuel you can store on the roof (for obvious reasons). For another thing, the trucks that carry in the diesel fuel to refill the tanks are located on the street. One way or another you're going to have to pump fuel from the street up to the roof, which is going to leave the pumps that do so susceptible to flooding.
I know the C-style casts are bad (although this is more of a C++-style-C-style cast. (unsigned) would have been the C-cast. But still bad). But in this situation it should be safe and for use in an example more readable.

btw. Please fix either the size of your code or the margins of your blog. You use only half the screen width but I still have to scroll sideways in the code listing.
This is massively mixing presentation with content. I know that doesn't matter to some (many?) people but I wonder if a compromise could be found with building up classes with SASS mixins that keeps your markup clean but gets some of the maintainability benefits of this approach?

Also - let's have the debate about the practical drawbacks people are likely to discover when they use lots of presentational classes in their markup.
Awesome dedication, but it makes me wonder why geo-redundancy isn't in place for companies the size of these.
If you're really worried you can disable it in System Preferences, but the latest Intel processors have new "active idle" states specifically for this kind of thing.
I picked one up last weekend and it's surprisingly quick, at least whilst playing with things like WebGL and three.js.
Great post outlining the history/journey of you guys. Must read for sure!
Is there an advantage of 17th floor vs. say 3rd?
I agree with most of your premises but not your conclusion. I would just say a couple of things:

1) Microsoft is intentionally blurring the line between tablets and PCs. Usage patterns will be different between one extreme -- something like the surface -- and the other extreme -- a tower PC / monitor combo. But between those extremes there's a lot of middle ground; convertible tablets, laptops with touch screens, all-in-one desktops with touch screens. I don't think it's so easy to say that most people will fall into a traditional desktop usage pattern because a lot of those people won't be using a traditional desktop computer.

2) When you're dealing with a user base the size of Windows, even a small percentage of users using the Windows Store still adds up to a lot of people in absolute numbers; competitive with what the other tablet platforms will have.
My impression was "oh that's what buffer is for". I trust open source software a lot more than closed source. Also their landing page explain what it is better than Buffer.
Injured worker's father sues Foxconn
Firefox has tag auto-complete as well.
Google isn't the one using it to demonstrate their work as a developer ;-)
Totally. Wall Street doesn't understand Apple like us HNers do.

EDIT: this was sarcasm.
Maybe the most powerful post I've ever read on recurring revenue businesses --- This post is a guest post on my site, and I took extensive notes for myself! Learned an amazing amount---nice!
I would have thought Tropical Storm Allison in 2001 was the teaching moment for the data center business, when all the underground infrastructure of downtown Houston was completely flooded. Apparently planners had not realized that critical backup power systems (or research animals, or symphony archives, or ...) shouldn't be below the level of potential flooding. Houston is 25 miles from the Gulf, so this wasn't a storm surge, just a huge steady rain event. I guess the lesson will be repeated until building management learns.

http://en.wikipedia.org/wiki/Tropical_Storm_Allison
> This is such a liberating setup.

Yeah, it's "liberating" until you develop chronic back and shoulder pain later in life.
So happy for these guys! Wade and his team are a great bunch who have a passion for helping business owners streamline their processes. Excited to see them continue to grow.
That's where the generator is.
The point is, as a developer myself I feel their pain, sometimes shit just hits the fan. As a user, not only is their service amazing, it is integral in running my little startup. I'm not saying monetary compensation is the only way to say thank you, but I think it would be nice if others like me got to say thank you in a slightly more substantial way, for the guys going the beyond the extra mile. There are services that I pay for which were down and they didn't even bother. More like buying a friend who helps you move some lunch.

I'm all for donating to red cross and other charitable organizations, but that doesn't mean you can't show anyone else appreciation just because there are others with needs in the world. Give to both, hopefully more to the charitable organizations and a little less for token gifts.
You don't speak for braintree.
>Ideally everything should remain the same size no matter what the resolution, and the DPI should just grow upwards. This is how it works on platforms like the iPad.

No that's not how it works on the iPad. Apple would not have increased the number of pixels by a factor of exactly 4 in one iPad update if the software gave them the freedom to choose any display resolution.
s/his/he is/
> Can't the newspapers just ask Google to remove their content if they don't want it being used for free?

They want to have their cake and eat it too. They want to remain on the index for visibility and ad revenue, but they also want google to pay for the privilege.
What a relic! website copyright 2001
> I read about someone on an ancient tiny netbook on dialup who is probably way more productive than I am.

And you're not him. It doesn't matter how productive he is on "an ancient tiny netbook on dialup", it matters how productive you would be on it.

Getting a faster laptop or fiber is a simple matter of weighing the costs against the benefits for you. If it increases your productivity enough to outweigh the costs, then you should get it.
Who keeps 17 stories of rope in a data center? Do you know how much 17 stories of rope weighs?
Why is JDK sourcecode designed like this?
"it's an unavoidable issue. For it to be useful, you're going to give up something, and if it's not to Google, it's to someone else."

One can choose to give one's personal information to a company whose core business isn't to sell personal information to other companies. That excludes Google and Facebook.
[video] RabbitMQ Clustering on the RaspberryPi
How many other languages do you know? You sound like you know C++ really well and sort of know Python, and aren't clearly distinguishing between abstract readability (as ill-defined as that is) vs. how well you personally know the code you are reading. What's probably wrong with your Python reading is that you have to look up what the third parameter in the slice more than the slice parameter actually being confusing.
I was thinking this is the same thing as tampon until I saw tampon logo on the homepage and realized that tampon has changed the name. I didn't have much of an issue with the name but the change is sure for the good!
If you're using that kind of schema you won't be getting any of Postgres' advantages. Obviously it has a pretty good reliability reputation, but I'd be very cautious about switching to Postgres because you're going to be making a lot of work for yourself.

If you're worried about performance, benchmark it (or find someone who has). On the reliability side there are plenty of NoSQL options with better reputations than MongoDB. My first thought is neo4j, but I don't really know enough about your particular problem.
[video] "Surveillance Camera Man" an Uber Troll
This is an outstanding article profiling Peter G. Neumann. Highly recommended.
I use this, which allows a similar effect but is enabled for PIPESTATUS, and also does some good things for eterm and screen.

PIPESTATUS_REGEX="^ +$"

# check to see if any of the pipe statuses don't start with 0
# ${_CMD_PIPESTATUS[@]#0} results in null if they all do
_PIPESTATUS="
_CMD_PIPESTATUS=(\${PIPESTATUS[@]})
if [[ \"\${_CMD_PIPESTATUS[*]#0}\" && ! \"\${_CMD_PIPESTATUS[*]#0}\" =~ \$PIPESTATUS_REGEX ]]
then
_RES_STR=\" [\${_CMD_PIPESTATUS[*]}]\";
else
_RES_STR=''
fi"

export PROMPT_COMMAND="$_PIPESTATUS; $PROMPT_COMMAND"

if [[ $TERM = screen || $_TERM = screen ]]; then
_RESET_PROMPT="\[\033k\033\\\\\]"
else
_RESET_PROMPT=""
fi

if [ $TERM = "eterm-color" ]; then
# XXX: this is going to break things when you start
# use $INSIDE_EMACS to test whether we should use \u?
_ETERM_PROMPT="\[\033AnSiTu \u\012\033AnSiTc \w\012\033AnSiTh \H\012\]"
else
_ETERM_PROMPT=""
fi

export PS1="\n$_ETERM_PROMPT\[\033[32m\]\u@\h \[\033[33m\]\w\[\033[35m\]\$_RES_STR\[\033[0m\]\n${_RESET_PROMPT}\\$ "
unset _RESET_PROMPT
Is there really such a bandwagon?
Umm, did we read the same thing? It said in the robbery... his roommate was shot leading to blood on the walls and his apartment becoming a crime scene.

no electricity or heat was from having no money.
It has a runtime statically linked. All linking is static and std call interfaces are not exposed so you cannot expose libraries to other language bindings.
Here's an example: A co-worker looked at a function I wrote that converts a table to a tree, and he said to me, "I thought Python was supposed to be readable, but I have no idea what this is doing."

See for yourself: https://gist.github.com/3988350
I could never figure out how this Buffer thing works. Why is there a multiple time slots and why does it say Posting Schedule "every day"? Does this mean the app will send the same tweet repeatedly on the same time every day? Or how does the app choose which tweet to send at which time?

This may sound like a support question but given that you have cloned a service hence buffer is probably popular already, but I believe there is already a schedule feature in tweetdeck, so why should anyone use these services just to schedule a tweet?
The payoff of this article is even better than the headline hints at; I was expecting the kid to be involved in some interesting, but relatively peripheral way. The kid's idea was actually central, and the kid apparently did the bulk of the work, too. Really fun reading.