skysight-inc/HackerNews huggingface dataset:
Ask HN: What is your preferred blogging technique?
Hi,
after a few months of using Wordpress I'm not entirely satisfied with the way I have to write/upload posts and images on my website.

Recently I've played a bit with Jekyll on my computer and it looks promising, except for the part where you need to use a third party server for comments.

What is your preferred blogging technique ?
BTW, In-Q-Tel guys, a CIA venture capital arm, have LinkedIn profiles.
Me too. I can't resist on voting up every article on the front page.
Steve Jobs Said He 'Finally Cracked' How To Make A Great Television
Do you think Apple could pull off the release of a Television Set?
The Last 20 Percent
Do you think Apple could pull off the release of a Television Set in the near future?
For context of readers, I note you are a FB engineer. Thanks for looking at this.

1. I'm not concerned about harm to users from this issue, I don't pretend to be. That should be Facebook's role.

2. This isn't a bug or a vulnerability, it's something you've actually coded - a feature. It doesn't 'accidentally' match up the number I've just entered with other people's phonebooks, you've programmed it to do that. Fine, that's a commercial choice made by Facebook (value of engaging new users vs concerns over publicising people's phonebooks) - but reporting it through those links would be nothing more than a complaint letter.
Skinceuticals Ce Ferulic Reviews
"SkinCeuticals CE FERULIC Unprecedented 8-fold Photoprotection - Highest on the Market Continuing to lead as industry innovator, SkinCeuticals CE FERULIC offers the highest antioxidant photoprotection on the market, delivering 8 times the skin’s natural antioxidant protection against damage caused by environmental exposure and oxidative stress. Scientific studies demonstrate that this incredible protection reduced the formation of sunburn cells by up to 96% in UV irradiated skin."
Motorola Droid Razr Smartphone ever
Yes, I still haven't published the pro website, in that article I introduce what it's about though. Anyway, thanks for the warning!
Why The Most Translation Agencies Suck?
Measuring the Value of EdTech
Nokia x2-00 keypad solution
Here is an early prototype back in 2006.

http://channel9.msdn.com/blogs/laurafoy/a-peek-inside-micros...
I wish I could upvote this 100 times. It summarizes my impression very well. And - if Yuri earned his money honestly like e. g. pg or the Google guys - it would by easy for Yuri to publish a blog post outlining the details.
30" @ 2560x1600 translates to 101 ppi [1]. Apple's Thunderbolt Display is 27" @ 2560x1440 (109 ppi) and costs the same. A 24" screen @ 1560x1600 would be 126 ppi, the same pixel density as the screen of a 13" MacBook Air. [2]

All of those are a far cry from Toshiba's prototype (495 ppi) or the screen Apple uses in its iPhone and iPod touch (330 ppi).

[1] http://members.ping.de/~sven/dpi.html

[2] http://en.wikipedia.org/wiki/List_of_displays_by_pixel_densi....
Which VPN Providers Really Take Anonymity Seriously?
Watch Dexter Season 6 Episode 4 A Horse of a Different Color Online
http://seriestve.blogspot.com/p/watch-dexter-season-6-episode-4-horse.html
But the "poor guy" won't be able to afford most of these wonders of technology because he has been obviated by market efficiencies...
The armed forces of Egypt declined to put down the revolt, which they very easily could have. The revolt in Libya would have failed if not for outside help from the West. And these are two countries with militaries that have pretty much never won a war against other countries. Libya even lost to Chadians with machine guns mounted to Toyota trucks not so long ago.

If you look at successful revolts in history, usually either the deposed leaders were soft-hearted and let things get out of control (French revolution, Russian revolution), there were powerful factions favoring the revolt (American revolution), or there was outside help (American revolution again, various resistance movements in WWII). I can't think of any revolts that succeeded against sufficiently ruthless rulers without foreign intervention.

Look into the history of the Boer War, the Jacquerie, the US Civil War, or the Roman treatment of excessively rebellious tribes (the Bar Kokhba revolt would be a good place to start).

Getting people to pull the trigger might be a problem in some homogenous country like Finland, but here in the US, the teabaggers hate the occupiers and vice versa, and it would not be hard to get them to pull the trigger on each other. Even if it was, it would be easy to bring in foreign mercenaries who don't particularly care about either group. And if that was too hard to manage, by hypothesis we're talking about a world in which robots are capable of doing so much work that most people can't find jobs. Presumably these robots would make passable soldiers/security guards.

None of this means that the rich and powerful would necessarily have the inclination to brutally put down a revolt. The certainly don't now. I hope they never do. But they could if they wanted to.
Evolutionary knob-twiddling and networking
Sounds great but looking at the source code of Flask is rather intemimdating at the moment

Something like this is perfect, https://github.com/husio/async-webapp---gevent--psycopg2--fl...

I have no idea of knowing if the code is following good practices or just mashed together. In java and .net there are lots of established design patterns to guide you. in python... nothing i can see, in fact design patterns seem discouraged (warning bells go off, but how can so many be wrong)
/whitehat is not a "complaint letter". It goes directly to the security team oncall, whose job is to keep users safe even if it means killing things written by other engineers at Facebook that had unintended consequences.

(edit: removed snark)
One thing that saddens me in education is the death of Long Division. I took a couple math-ed courses in college and I was shocked when I learned that most it's not being taught in most schools. It's "too hard" and it's "useless", some say, so it's being taken out of the curriculum.

Bullshit it's useless. Multiplication tables are memorized lookup tables. That's "rote" but important, but it's not when math starts to become interesting. Long multiplication and division are the first time people have to use an algorithm for a problem too difficult to do in any other way. And yes, it needs to be done by hand and if it takes a few months for the average student to get it right, fine. It's important. Not the actual skill of dividing 83914 by 203, but the process of carrying out a mechanical algorithm by hand.

Should computers be a part of education? Absolutely. Should programming be taught in school? Yes. Should we abandon the process of running algorithms by hand, as a mechanism for understanding rule-based computation at an early age? No.

Interesting fact: early computers (in the 1940s) were not competitive with human "computers"-- savants whose jobs were to do arithmetical calculations. They were actually slower. What made mechanical computers such a win was that they could keep going and remain reliable, whereas human computers would start making mistakes after 8 hours.

If you've gone through the humiliating process of trying to calculate a 6-by-6 determinant by hand and getting it wrong, you understand this, and you know why the rigor offered by mechanical computation is so important. If you haven't, it probably doesn't make sense to you.
Chat Logs w/ Owner of LC and FH
I suppose it's worth noting that your gay friend had to add your phone number to his secret account, which is a privacy snafu on his part. After all, if he was trying to hide his sexual orientation from you, why would he enter your contact details into that account?

We also have to take some responsibility for our security and privacy.
Flight Radar - Live air traffic
Patrick, you will recall, left his JP job once he could; and I remember him describing the salaryman job as painful hard work, in line with this article.
مشاهدة مباراة الاهلي والجونة بث مباشر اون لاين
Quicksilver Roars (new features, Lion support)
I did not know HN blocked legit content. Can you give me an example?
It's not hard to believe, once you stop committing 'base rate neglect'. I'll quote what I previously wrote on that exact topic http://www.gwern.net/The%20Melancholy%20of%20Subculture%20So... :

> There has long been a curious lacking of Japanese contributions in software technology. Japan has a highly educated population a good fraction of the US population (127m vs 300m), considerable indigenous R&D capability, long involvement in computing hardware, etc. Hence, if all were equal, one would expect something like a third of all major software packages written by Japanese or Internet services developed by Japanese, and so on. Instead, one notices almost a complete absence of such Japanese contributions. In software, the only major contribution I know of is the Ruby programming language; I am continually struck by the almost complete absence of FLOSS in doujinshi media & the survival and massive popularity of closed-source software. (Touhou Project games remain always closed-source; Westerners would never tolerate a powerful animation tool like MikuMikuDance being only freeware, and would insist on it being opened if only to make bug-fixing and extensions easier. It’s interesting to note that the only visual novel I have ever heard of being under a CC license (albeit a highly restricted CC-BY-NC-ND one) is the Western Katawa Shoujo. Of the 5 major visual novel engines - infrastructure that cries out for open source licensing - only 2 are so licensed.)
Seriously, for the number -123, the array [3, 2, 1] has the least significant digit in position zero?

[edit] Ah ha, printed arrays have position zero on the left. I thought it was on the right.
Report: Apple's iPad Dominance Fades
I actually gave up my MS degree, and saved quit a bit time to learn sth useful.

3 years after that, I want to say, it was a nice decision. I do not need a degree anyway.
Code: https://github.com/antirez/lamernews
Nodejitsu's blog is the example I was referring too.

Edit: submissions will silently be hidden. Following the link below brings me to a blank page. Also nothing on the new tab.
Sure it is. But nobody did.
From John Siracusa's excellent OS X Lion review [1]:

"Resolution independence has been "coming soon to Mac OS X" since 2005. The dream of drawing the same interface elements at the same visible size but with more pixels was so close in 2007 that we could taste it. Then Snow Leopard arrived and the Mac's interface scalability features actually regressed. Depressing.

Meanwhile, Mac OS X's sibling operating system waltzed right into a high-resolution UI on its very first try. iOS's secret? Don't try to support arbitrary scale factors, just support one: double resolution. A 50x50-pixel square on a non-retina iPhone screen is exactly the same size as a 100x100-pixel square on a retina display. Graphics that have not been updated for the higher resolution are simply drawn with four-pixel squares in place of each low-resolution pixel. All dimensions are nice, even, integer multiples of each other. This is a perfect fit for physical screens which, of course, have an integer number of pixels. Fractional measurements necessarily require ugly compromises.

Lion has taken the hint from its younger brother. Arbitrary scalability is gone. In its place is a single check box to enable "HiDPI" display modes. (This option is still hidden away in the Quartz Debug application, so it's clearly not an end-user feature. But unlike all previous incarnations of resolution independence, this one actually works.)

After enabling HiDPI, new display modes will become available. In the screenshot above, the 720x450 mode is half native screen dimensions, and the 640x400 mode is half the (non-native) 1280x800 setting. After selecting a HiDPI mode, everything is drawn with twice as many pixels as its non-HiDPI equivalent. Here's a screenshot featuring TextEdit, our usual interface scalability workhorse.

It looks pretty good, right? The only flaws are the bitmap graphics that haven't been updated for HiDPI (look closely at the black triangles in the ruler). Unfortunately, there are a lot of these throughout the operating system and its bundled applications. But unlike in all years past, the framework is finally there for third-party developers and Apple itself to finally get their applications ready for a world in which 300-dpi desktop and laptop displays are more than just expensive curiosities."

[1] http://arstechnica.com/apple/reviews/2011/07/mac-os-x-10-7.a...
Give Django a try, it's quite well-written. I actually enjoyed reading its source and learnt a lot from it!

I'm not sure where you got the idea that design patterns are discouraged. In all languages patterns are often better than homemade solutions. Python is no exception.
Exactly. It's timely to discuss where the line is drawn in sharing user data. Trickling here and there amounts to what can be summed up as gaping holes.

As time went by, it seems that Facebook left behind their mantra of exclusivity and private social circles. They are vigorously facilitating the opposite when you see 'features' like this.
I thought this was a pretty poor article.

For one, there's debate over what actually drove up the price of wheat (http://www.economist.com/node/16432870?subjectid=2512631&...). The author glosses over or fails to acknowledge some of the major counterpoints.

He also seems to have a pretty superficial understanding of futures markets. For example, there's nothing inherently "hysterical" about contango (future prices higher than current prices). It's a perfectly natural state for many commodities (browse some prices on http://www.cmegroup.com). He also paints a pretty rosy picture of the history of futures markets, but people have complained about speculators causing wild price swings since the beginning, long before index funds came on the scene. And there's nothing new about the way index funds maintain their long positions. Speculators have always had the option of rolling their contracts forward.

Index funds have opened up investment opportunities for a lot of people. Imagine if you had to buy and maintain a server for every app you wanted to put on the web (this is like buying a futures contract directly). Now compare that to a VPS/shared server (this is like buying an index fund). Not a perfect analogy but pretty fitting.

Speaking generally, if people are investing foolishly (i.e. mispricing something) well then they're investing foolishly. This can happen in any market. They'll either adapt or get weeded out. What's the alternative? Does Big Brother or anyone else know what the "correct" price of something is at any point in time?
That's fine, let's not get pedantic here. If you want to put your non-database-backed stuff lib/ and the ActiveRecord bits in app/models, fine. If you want to shove them all in app/models, that's good too.

There's really no argument for or against; either way the code should be documented with tests and a README.
Looks very similar to www.surfsgood.com which I think also suffers from the problem that Surfers don't really want to share this information.
I thought HIV was the virus and AIDS was the condition, the article repeatedly says "AIDS virus"– am I mistaken?
Integrating Spine & Rails using a JSON Ajax API and scaffolding
From a user experience point of view it depends on your audiences needs.

for example if you have a holding page then a call to action to register your interest and the reason why you would do so are the priority.

for a generic landing page for your new users you need to think of origin

if from a google search then there is something the page that interests them, find out the search term and if in line with your businesses goals/product then make this information clear and leading into your product.

if its from recommendation i.e. 'hey steve visit x' then you want your landing page to explain what you do as clearly as possible, then a call to action for their most requested event e.g. how much does it cost, where do i register
Larger arrows. My #1 feature wish. Why do I have 10 points just for signing up?
> Just as many Japanese car manufacturers have their own go to parts makers, these parts makers might have their own go to parts makers ("magouke" or grand children outsourcing).

I've worked for a "great-grandchild" outsourcer. Megacorp A outsourced to B, which hired C, which hired my company. I actually worked at A's offices so personally it was a good experience for me, though my salary was crap -- around my 2 year anniversary I talked to a recruiter, who kindly informed me that sanitation workers in the US earned about the same as me.

Once I went to Europe for a business trip. Though A's employees had all their expenses paid, my own contract with my company didn't predict that clients would ask grunts like me to go on international business trips, so they only paid a fixed daily allowance in yen (for meals and the like). To make it worse, the euro was really high against the yen, so my allowance amounted to 7 euros or so. After 2 weeks in Europe I was in the red. It was still a good experience though, and I always boast about it in job interviews in Japan.
But people adjust to new stuff, so it doesn't contribute much to their happiness. But psychological things like lack of economic security,haviong time to be with yur kids and friends, being treated as shit at you're job, and you're relative wealth and status are what matter to humans.

Things like security, power, status and time(freedom) were always at the core of what it meant to be rich.

But do are new technological societies offer more of those things ? i'm not sure.
He didn't... Most likely his phone did it for him.
Show HN: Tubalr.com, taking advantage of all the great music content on YouTube.
www.tubalr.com - any feedback and suggestions are greatly appreciated.

code: https://github.com/cjstewart88/Tubalr
I love the idea of prohibiting public corporations, but as the author says, that will never happen. If people could still negotiate to buy part of companies, but not have the rapid buy/sell cycles made very easy, then that probably would stabilize things and put more emphasis on long term productivity.

The elite do have a balancing act here: their children and grandchildren need to live in this world so they must somehow balance their greed with maintaining the world in some sort of livable state.

One thing the author left out: we need to rid ourselves of the "religion of constant growth" and concentrate more on the basic quality of life and sustainability. I met for the first time a good friend's adult children last night and we all enjoyed a good but simple meal in my friend's home - "the best things in life are free" may be a cliche, but it is still true.
HackerNews is (mostly) Open Source as well: http://arclanguage.org/item?id=4718

It's just written in some crazy esoteric language by some nutjob. :)
This is way premature optimization, and it's based on a lot of assumptions. Did you know that, on CPython, your integer increment creates a new object each time (outside of the range -5 to 255 or so, IIRC)? Now, xrange might do its own increment, so let's call it even on object creation.

If either xrange or list comprehensions are implemented in C instead of Python, do you still think your version will run quicker? What do you think the likelihood of either or both of these being the case is on your Python implementation? How many name lookups and function calls do you think each version does? Do you think you should find out before writing longer and more complicated code to attempt to out-perform it?

On my machine, your implementation performed ~3 times slower than the naive idiomatic "[0 for _ in xrange(100)]" and closer to 4 times slower when I bumped the list size up to 20000. And your version was ~32 times slower than "[0] * 100" and around 60 times slower when I bumped the list size up to 20000.

So please, don't optimize without measuring and instead just write idiomatic code the first time.

The code, for reference:

def mk_list_1(size):
ls = []
cnt = 0

while cnt <= size:
ls.append(0)
cnt += 1

return ls

def mk_list_2(size):
return [0 for i in xrange(size)]

def mk_list_3(size):
return [0] * size

from timeit import timeit
args = {
"number":1000000,
"setup":"from __main__ import mk_list_1, mk_list_2, mk_list_3"
}
print "Executing %i runs:" % args["number"]
print "mk_list_1 took %i s" % timeit('mk_list_1(100)', **args)
print "mk_list_2 took %i s" % timeit('mk_list_2(100)', **args)
print "mk_list_3 took %i s" % timeit('mk_list_3(100)', **args)

Output on my machine:

Executing 1000000 runs:
mk_list_1 took 32 s
mk_list_2 took 10 s
mk_list_3 took 1 s
1. What do you do if you wish to hide a query from the HTTP access log? Normally I would use POST rather than GET, but if I wish to make my API restful I have to ensure that POST is for create, and GET is for read.

2. Does PUT data also not appear in the HTTP access log?

3. What do you gain from doing everything this way? There are a lot of developers that won't have any idea what all of these HTTP request codes and methods actually are.
What the hell is spirit? Why is man swept by relativism? Do you mean moral relativism?

I studied Plato in school and I thought he didn't pass the laugh test. Nietzsche is the least BS philosopher I known so far.

Your comments sound profound but lack substance.
I have no idea what my calorie intake is, but I eat lots of fresh fruit, vegetables and meat, and I spend $200/ week. So, I'm curious what one's diet looks like when spending $20/ week. I'm not sure what else one could eat other than Ramen on that budget, and then I question the nutritional value of those calories. Just curious if you could give a better idea of what such a diet consists of?
This must be some kind of joke right? The trolling of the year?
Discrete Windows 7 Workstation for the Living Room
With POST you're creating a resource within the resource identified by the Request-URI. The server is responsible for
creating a URI for the new resource you created.

POST /forum/http/

- creates a new post into the HTTP forum

POST /photogalleries/cats/

- uploads a new photo into the cats photo gallery

With PUT the client knows the resource's URI. The client uses it to create or
update the resource. The easiest why to visualize this is to think of a
filesystem

PUT /forum/http/post-vs-put

- upserts a post identified by "post-vs-put" into the HTTP forum

PUT /photogalleries/cats/smelly-cat

- upserts a photo identified by "smelly-cat" into the cat's photo gallery.
Outside USA it is very common that the users add or remove the national TLD by mistake. They type something like info@gmail.com.ar or info@hotmail.com.ar. And it is worse with Yahoo! because both info@yahoo.com and info@yahoo.com.ar are possible, but only one of them is the real one.
Impenetrable? Not for long. Malware is becoming a problem for Mac OS X.
Reading to the end I see that they gave him an exemption from the regulation/law? Right? So what's the issue?
One thing that occurred to me after posting is that now that the average life expectancy is much longer today than when some of these guys started. When Ford started his company at 40, the average life expectancy was 49.
> If FaceTime and iMessage were available on Android

This is about as likely as them licensing iOS to other handset makers. There's little to nothing for Apple in such a move.
While I understand Jobs' anger, I also can't help but remember how the Mouse was "stolen" from Xerox and other such tales in Apple's history. It comes across as "it's okay when I do it but not when Google does."
Very cool, good job. Clickable http://www.tubalr.com
showHN: Free Feedback widget for websites by Feedbacker
plz have a look and suggest ways to improve it.
If you're on a mobile device, it redirects you to the home page of their mobile site.

This link to ABC should work http://abcnews.go.com/m/story?id=14795854
doodlin' http://wonderfl.net/c/zzQD