13 karma · joined Jul 26, 2011 (15y ago) · 12 submissions
comment 14y ago · link · parent
"It’s as close to perfect as I’ve seen any Android smartphone get. But the Nexus 4 falls just short of perfection due to one major omission: It’s not compatible with any LTE networks... The lack of LTE connectivity will spoil the Nexus 4 for some. But if you don’t mind living without LTE — and you likely currently are, given AT&T and Sprint’s small LTE footprint, and the fact T-Mobile has yet to begin building its LTE network — then the Nexus 4 is a good buy."
comment 14y ago · link · parent
comment 14y ago · link · parent
I'm trying to wrap my head around what exactly this means for Barnes & Noble. Any insight would be appreciated!
comment 14y ago · link · parent
SpaceX, Boeing, GM, and Victoria Secret need revenue sources to create their 'non-virtual-reality' products, and marketing/advertising creates a revenue source. If they had a net loss from advertising they simply wouldn't do it.
comment 15y ago · link · parent
Technology: Node.js server running on Heroku, connected to a Redis database.
I would appreciate any suggestions, criticism, or improvements!
There are a couple other great apps that do something similar:
http://trns.fr - uses text messages instead of email / mobile bookmarks
http://AirLinkApp.com - one-time bookmarklet generation10.
Show HN: BrowseOn - continuous web browsing, from desktop to mobile (MVP)(browseonapp.com ↗)
3 points · by balbeit · 15y ago · 1 comment
comment 15y ago · link · parent
http://stackoverflow.com/questions/5084900/how-can-i-reserve...
comment 15y ago · link · parent
Another I found quite useful: instead of collections.defaultdict, you can use the dict's get() method to set a default value if the key doesn't exist. get() takes the key and a default value, and if the key doesn't exist it creates one with the default value provided.
a = {}
a['foo'] = a.get('foo',0) + 1
# a = {'foo':1}
a['foo'] = a.get('foo',0) + 1
# a = {'foo':2}
It can be very useful for incrementing keys in a dict, even if they did not exist previously.