skysight-inc/HackerNews huggingface dataset:
Nitpicking, but this statement doesn't work with large numbers (which xrange() is supposed to handle correctly):

self._len = int(ceil(float(stop - start) / step))

Python supports arbitrary-length integers; you can't just cast those to (fixed-length) floating point numbers without losing precision. It's better to use integer division here, for example:

self._len = (stop - start)//step + bool((stop - start)%step)

(A variant like (stop - start + step - 1)//step works only for positive numbers; I guess it could work if you put it in the earlier if-clause and put a corresponding assignment with +1 at the end in the other branch.)
The Xbox 360 was one of the worst user interfaces I've used in a long time.

They forced me to register an account and enter information in about 20 text fields using my xbox controller before I could do anything with the device. After being pissed at that, it started spinning up its fans and sounded like a small airport.

That was the point when I first thought about returning it to the store (which I later did).
I know that it has been a while since they released it, but the missing attention to detail was always one of Microsofts biggest Problems. They usually seemed to strive for "good enough" rather then perfection. I really hope they are able to change that with their new line of products.
This is actually a two part problem. oz captured half of it (maintaining hundred of connections in the NAT state table). It can also be caused by saturating your upstream bandwidth, which causes your devices send buffer to fill. When that buffer is full you end up with your packets waiting in the buffer (which is normally fifo). What makes this very noticeable most of the time is the ack part of the tcp connection getting stuck, there by forcing the remote server to wait to send you the next packet.

There are ways to mitigate that kind of thing. the simplest being keeping upstream bandwidth levels limited to slightly less than your upstream connection speed. Traffic prioritization schemes also exist letting you have some say in the buffer order ( always putting acks, icmp, and ssh first in line for instance ).
Keep in mind they've sold a lot of Xbox 360s and Kinects. Not sure how much profit they've made, but it shows MS can make commercially successful, desirable hardware.
You're getting pretty close to a laptop once you add the keyboard to the mix, and the killer product you then start competing with is the 11" MBA.

I'm voting MBA without hesitation, but everyone has different needs.
You are right. I said "a month" but I meant something more like "a period of 28 days" or "a month-long period." I'll think about how to word this more clearly.
Good point, since most pixels are taller than wide (it'd suck even more if they can't sub-pixel render in portrait mode, as it seems the more natural reading position).
With a launch site that looks like it was put together in a weekend by a 7th grader: http://www.microsoft.com/surface/

I'm being honest here; simplicity is one thing, but this isn't exactly competing.
A Global Perfect Storm
I like to use this for my redis setup...what about the data backups for the persistent data..do you manage that?..If yes..what is the frequency ? I think you should provide more data for database services..especially for redis about the memory, disk space & connections. I like to move from redistogo if comparable metrics are provided.
Reading about people advising businesses threw me off when skim-reading. Sorry!
My iPaq had a 1.8" HD sleeve, played mp3s, and browed the web (with a different wifi sleeve..). Plus it had a sunlight readable display.
It's not victim blaming per se. When a male has a problem, he is trained to keep it to himself. If he shares it with anyone, he is most likely told to suck it up and fix it. To live a male existence is to live without sympathy. It is little wonder that we have little sympathy for anybody else. When someone comes to us with a problem, we respond with the only advice we have ever been given - fix it.

When you are a male, every shortcoming, every bad situation is chalked up to your own personal inadequacy. There are no social forces to blame anything on.

Maybe it makes us stronger. Maybe it makes us dicks. Maybe a bit of both.
Why the downvotes? Maybe my tone was a little harsh but I think this is a legitimate concern.. :(
Great catch. If you want to submit a pull request on github you can get the credit -- github.com/dcrosta/xrange
EmbdSocial Wisp - Tweet your espresso machine.
Sadly this awesome kickstarter project might not get funded. Imagine something like this making it easy for makers and builders to connect social media services with hardware and internet of things.. Imagine being able to tweet to your house that you're coming home and it starts heating the water, making the espresso, etc.

Disclaimer: I'm not related to this project. Just a sad geek who wants to support awesome hardware stuff.
Does anyone know how this is implemented in Pypy?
I've always thought Apple was pretty clear in the direction they were headed when Jobs made his car and trucks analogy at All Things D. The iPad is meant for the 90% of current users as their main device. The PC is for the heavy lifting for those in fields such as audio, video and science. There may be a time where a tablet can meet these needs but I certainly don't think we're close yet.
BTW, michaelochurch, can you respond to this:
http://news.ycombinator.com/item?id=4044267
ah, thank you. Always been confused by this.
Huh -- CPython 2.x doesn't let you create an xrange with values past 263-1. CPython 3.x does.
Because "Their own hardware" is still just the same crap that all the other manufacturers would have come up with, (and did come up with) for Microsoft to put their badge on. It's not a technological leap forward nor does it drastically alter the user interface paradigm.

Worth seeing, Yes, but definitely not a top of the list worthy post.
Public services weren't leaving the streets dirty because they were lazy, they were leaving the streets dirty because they were rationing water due to drought...
For what it's worth: I'm not entirely convinced that Siri will ever work as advertised. I think the new car smell is gone and lately I've read nothing but complaints. Apple really needs to step it up. I expected more of the iOS 6 announcement, like a Siri API for third party apps and better communication between apps. That is what's needed to even come close to the 80s Knowledge Navigator idea. I mean, the dictation part is nice, but otherwise, I haven't found much use for Siri.
I didn't expect to learn much when I started reading this, but I was wrong. Excellent post. Thanks.
A few points:

- The only people I know that use and are excited by putting QR codes in are nerds and/or marketers. I think it serves to quench our thirst for something shiny that is a technological hack. Most people dont feel the same way though.

- The results are obfuscated, when you scan the code you dont know where it will take you, worse if there is no details around the code. Its like a shortened link.

- In Japan it is a utility which is useful. In the West it seems to be a shiny toy for marketers.

- Much like Flash, it is a transitional medium between print and digital. It will be interesting to see what comes out next.
I don't living in SV but I like reading about it. All I can really say is to follow the money.

In order to be Silicon Valley, the first thing a place like Moncton needs is money. Lots and lots of money. Silicon Valley got it's money because the US Government wanted lots of Cold War gadgets.

The second thing is someone in charge that is smart enough to spend that money correctly. Silicon Valley had Frederick Terman, who was very good at this.

The third thing you need is someone stupid. Well, not stupid in your area but somewhere else. Someone who is willing to give you everything you want on a silver platter for free because they think it's worthless. For example, in Silicon Valley, these "things" are smart geeks. Other cities didn't care enough to keep them so Silicon Valley took them one by one.
https://bitbucket.org/pypy/pypy/src/default/pypy/annotation/...
I made the move from Beijing 6 weeks ago and I absolutely love it here, except for the rents! I just biked the Golden Gate Bridge and I can barely put into words how exhilarating it was to be out in nature breathing clean air and bumping into random facebook and linkedin employees offering water and directions. People here are just so nice!
And OT, but you pointed out many problems at Google in your previous comments on HN. What would you suggest to the Google founders?
Sounds like Milo... But compete on.
My wife has a bad back, and even carrying a 13" laptop around for and extended time causes her a lot of pain. She would kill for a tablet with a keyboard that she could use for work while traveling (mostly, power point, word and a bit of Excel).

Now, if only her company (60k+ employees) would upgrade from XP...
About us | Balangan Wave
Is this page public? http://graph.facebook.com/estrela10 returns false.
http://www.amazon.com/Models-Behaving-Badly-Confusing-Illusi...

"A model...[is] really much more of a metaphor, an attempt to find an analogy between something you want to understand and something to really do understand, either heuristically or by a theory."

from http://www.econtalk.org/archives/2012/03/derman_on_theor.htm... - very good interview.
Archos killed the iPod. The iPod was one of the first times I distinctly recall thinking that actual fashion (like Vogue magazine) could trump pragmatics and technology in the tech sector.

A lot of people try to compete against Apple in design. Wrong. Apple isn't doing design, as much as they're doing fashion.
This is indeed a bug:

http://neoinvoice.local/invoice/list_items/1/asdf

Does cause an erroneous query. It should use a case statement to check against column names. CI will strip out any special characters though.
Actually, I've never heard the saying about a lawyer being his own client so I'm somewhat curious. Is it like a Jack Thompson (not sure I spelled the Thompson right) thing?
Performance is one thing, but to me it isn't the big one. I can even get over the crapfest that is HTML/CSS/Javascript if I really have to. The real problem with the web is that it doesn't work for anything serious. It's not really scriptable from the user-end and there are huge problems with data interchange.

On the web I can't grab all of my Facebook photos, zip them up and send them somewhere else unless I write a monstrous pile of hacky code and break Facebook's TOS, but on a real computer it's absolutely trivial.

If I want to slap together a disposable playlist of videos on Youtube I have no idea how. Maybe I have to log in? What if I want videos from a bunch of other websites?

And even watching individual videos is terrible on the web. I either get a crappy website-dependent flash player or a crappy browser player, seemingly having lost the freedom to embed the video-playing application I want. The best user experience for watching online videos seems to be

1. Start buffering the video.

2. Browse to /proc/`pgrep plugin-container`/fd on my hard-drive.

3. Open the video in the player of my choice.

That's insane, but I do it regularly.

When the web lets me grab a text stream or a video or some music and lets me do what I want with it then it'll be ready for serious use. Until then it's just the "iPad" of technologies, a playground instead of a set of LEGO.
Yeah, I didn't realize they existed. They were bought by Ebay a couple of years ago for $75 million, so I guess the idea was validated. Don't know if Ebay will dedicate enough time/energy to actually make it happen, so I still think there's an opportunity. Although they do have the corporate connections, which would help in gathering stores etc.
Reviewing an Internet Marketing Site
Win8 comes with built-in antivirus. But of course you can buy Norton or McAfee if you like. In which case you have bigger problems than your CPU cycles.
It's not uncommon for languages and libraries to assume that millis are the smallest resolution. Java is getting better, but is still pretty hit or miss. But if you're writing performance sensitive code you're definitely in micros and maybe in high nanos. There's a lot of those in a millisecond.
All projects which have been just open sourced are going to contain bugs. That is, until people like you find them and fix them and submit pull requests ;).

CI strips out all funky characters, so while it is possible to cause an erroneous query, I'm not seeing a security issue here.
You can also mitigate the NAT state table issue by limiting the amount of peers your torrent client connects too. Some clients allow you to set a global max, and others only allow a per-torrent max (e.g. rtorrent).
Sure, write on a generalized approach for deploying a Flask app with Fabric, virtualsenvs, and whatever else you use.
Social cam
so if i look at a video on social cam can the person who uploaded see that I was looking at his/her video. I don't have them as a friend.
The Anatomy of Tech Gadgets by Mads Peitersen
What language should a sysadmin learn?
"too limited for tablets."

mkay. I think the market disagrees with you a bit. And your strawman about being the "main machine" is contrary to Apple's goals. They would like nothing better than to sell you an iPhone, iPad and MacBook.
Yeah, it is unlikely that Ubuntu Unity will ever work properly on Linux.
Honestly I didn't know about a), so thanks for pointing out my mistake.

I just think keyboard cover is overrated in your argument. After all, it is peripheral, iPad can have one too, but that alone doesn't make a MBA killer. Low price + Unrestricted platform (open for all kinds of peripheral development) is the killer weapon. Oh, those USB ports are very nice.
This type of user engagement is what Sailthru, one of the fastest growing NYC startups, powers for several well known startups and larger companies - check the client list:https://www.sailthru.com/clients (Disclaimer: I work on product there). Our idea is to focus on user retention rather than user acquisition - and we help people do this by making their messages actually meaningful, and on the users' terms.

Part of this is triggers, which seems to be the focus of a lot of the discussion here, but an even bigger piece is personalization. The idea with personalization is to show the user content that is relevant to them. That involves a big analytics and prediction component in terms of figuring out their context, and their interests. We've seen some pretty crazy results in terms of jumps in engagement that emerge from personalizing emails to users, and also engaging users at the right points in time, in the right ways. This is relevant to the triggers conversation as well, in terms of being able to identify and personalize the triggers for each user. We haven't run explicit experiments on that aspect in terms of magnitude, but a trigger system in a vacuum won't give you the same type of power as a personalized/automated one.

Even things like personalizing WHEN you send an email to a user have a dramatic effect on open/click rates. One of our clients experienced a 10% increase in revenue (they were already making substantial revenue) by leveraging Horizon Send Time (Our product that sends an email to a user when they are most likely to open based on that users previous open habits).

The right combination of personalization to users, and appropriate event-based triggers, can really improve the perception of users (oh wow the content being sent to me is actually valuable!), and increase their happiness, and subsequently their life-time value.
Bottom line, they link you to content that you cant get without typing in some url into your phone. They are convenient when its relevant. Passing by a restaurant you might want to go to later, launch app with one hand, scan code, keep walking, review menu... They are links that transcend platforms, would you be just at apposed to a rfid tag that you just swipe your device over to connect? I think they are extremely useful when used correctly. They save time and they dissolve errors. They are essentially internet links removed from computers... when I hear the anti qr code arguments I think to my self, well are you against hyperlinks? Do you avoid clicking links that could give you additional information about something your interested in? Then whats your beef with a link on a movie poster or can of soup? They're here to stay until replaced by a nicer looking swifter alternative but the concept will never go away.
One thing about Jobs... he was good at saying, "XYZ is a bad idea" right up until the day he announces "we're doing XYZ and it will change the world".

Once Apple can get iOS working well on x86, they'll do the same.
This is cool. I know this isn't how they actually do it, but seeing it in a language I can understand (Python) and not in C is really pleasing.

You can do tons of examples, but until you figure out how the machine works inside, you'll be completely lost (you could get it with examples, but you won't necessarily know WHY you got it, so you'll be useless in helping other people learn).
A few minutes of dialog doesn't fit on any sort of plaque. It's interactive, personal, situational.

Also, I didn't say that a plaque-sized bite of text can't improve things. What I'm saying is that you won't necessarily get a work after reading one. Try it yourself. Take one of the IOCCC works and try writing a short paragraph that will explain it to the general-audience viewer.

And I didn't tell everybody to take an art history class. I told you to take one. Because then your arrogant, entitled-to-be-spoon-fed attitude might possibly be appropriate when you're actually paying somebody to educate you.

Modern art museums are not somehow legally obligated to make you happy. (Neither, for that matter, am I.) If you don't like the way museums are run, you have a problem. If you want to understand the art, you can go put in the time like everybody else did.
How to Integrate Sales And Marketing
Business owners often wonder why profits remain small or mediocre despite the large number of sales leads generated by their marketing campaigns. More often than not, this is the result of a lack of coordination and collaboration between sales and marketing teams.
Even 63-bit integers aren't (all) representable in IEEE double floating point values (that Python uses) which have a 53 bits mantissa.

For example, int(float(10¹⁸ - 1)) != 10¹⁸ - 1, but xrange(1, 10¹⁸) is perfectly valid (even in Python 2).

edit: how do I type two consecutive asterisks on Hacker News? Backslash doesn't seem to work as an escape character.
Very communicative English/what-have-you.
I can't comment on the N15, which is a low end router; however the more powerful ASUS routers are great, I have both a rt-n56u (now with my in-laws), and a rt-n66u, and they both work spiffingly.

Also, check out the reviews on smallnetbuilder etc, they have excellent ratings for these two routers, with the most high recommendations for both.

There's no need to rubbish the whole range of ASUS routers :)
R18+ video game rating passes Australian Senate
They have already announced that the hash function will be changed for Java 8 and you can enabled the change in the current version of Java 7 (u6).

http://mail.openjdk.java.net/pipermail/core-libs-dev/2012-Ma...
Thanks for the consideration, but I don't really use github, so you go ahead and take the credit yourself.
In other words, see the Verizon Droid ads that pushed android into being a major competitor to iOS..Android didn't do it all by themselves; Verizon put together commercials that evoked emotional responses that brought in the people who wanted the phone that was a robot.
You know what I like about thick apps? They scale like a boss. Add a user, add (at least) one CPU and a whole lotta RAM to the cluster, for free. I spend a lot of time looking at New Relic graphs thinking "why didn't we build this as a thick app"?

Then I remember the recurring web revenue model.

(My bet is on a convergence of web apps and thick apps, but I think it will be thick apps adding cloud-like functionality rather than HTML5+javascript.)
I use Siri constantly:

- change playlists when when I'm working out or biking

- set the alarm when I go to bed

- reminders (a lot)

- the weather

- looking up something on wikipedia and imdb

- and sending short sms messages

I'd say my use has grown over the last few weeks as I'm biking a lot more. There was an initial trust issue, and I still sometimes have this weird feeling of being on the spot when I'm dictating to Siri, but otherwise best "app" on the phone for me.
If I need to set up at a desk then I'll just pull out my laptop.

Then you're not in the target audience.

And if it's not a full stroke keyboard then I don't see it as being very comfortable to use.

Then you're not in the target audience.

I also dislike the 16:9 screen.

Then you're not in the target audience.

Remember when Apple went on about the "post-pc world"? This is that. And that is successful. People like it. They can watch a movie in its native aspect ratio at full screen, and also put this at a desk and type, wherever that desk may be.

I was in a meeting with a division of IBM this morning, and one of their engineers pulled out his iPad, propped it up on the folding cover, and proceeded to peck away on the virtual keyboard while taking notes. I asked him to look up specs and pricing for a bit of hardware. He looked at the iPad, then reached down to pull out his Thinkpad to look up the information.

Even if you don't accept that the general market will buy this, you have to admit that a full-featured desktop Windows x86 OS running smoothly on a 10" tablet with an integrated full laptop-style keyboard that also will keep you entertained watching 16:9 movies on the flight back is a pretty appealing concept.

I could see something like this replacing my corporate Thinkpad just for the sheer convenience of being able to pick it up and move it to someone else's desk while still working. With HDMI-out, I can drive a second monitor as well. That's pretty spectacular.
Sure, but they exist. Using them as an argument that the Surface is merely vaporware is a non-starter.
The Samsung Lindy M5650 Mobile Price In India
Samsung has launched New Samsung Lindy M5650U Touchscreen Mobile phone in India. This Phone are looking for a Combination of Style and features. The Samsung M5650 Lindy includes HSDPA 7.2Mbps and Wi-Fi connectivity. Samsung Lindy M5650U has a 2.8 inch Touchscreen display. The Samsung M5650 Lindy is equipped with 3 Megapixel Camera that gives Good Picture quality. Other Features of the handset include Bluetooth, stereo FM radio with RDS, 50MB internal memory. The mobile phone also comes with a Video Call Camera to enable video calling.
The fact that Instagram was a billion dollar idea proves that the money you earn from your startup doesn't necessarily measure the impact it has.

I know everyone wants to make a ton of money, but the more interesting question, for me, is this:

So now we're connecting people through the internet, what else can we use the internet for to change the world?

Education, Medicine, and Government are the three areas that are heating up right now around this question, but nobody's done it yet. And it's about to happen.
Worked for the Droid.
I agree that this is a huge opportunity and a fantastic idea; I thought of a similar concept a few months back and came to the same conclusions. It's one of the reasons I'm bullish on companies like Square and Groupon; they have the relationships with the mom and pop businesses that could actually turn something like this into reality. Not to say a startup couldn't do it, it would just take that much more effort to get to the level where they are already.
I currently use a NetGear FVS336G for load-balance and fail-over of two broadband connections (cable modem and FiOS).

http://www.netgear.com/business/products/security/wired-VPN-...

It's not as sexy as the FOSS solutions on this thread, but it has the advantage of working just by plugging in power and two Ethernet cables.