skysight-inc/HackerNews huggingface dataset:
Of course in the UK a 4kW system will rarely produce 4kW!
Is this really a thing? I've noticed in my life I've never had a real need for ADD/ADHD drugs to focus deep. Is it uncommon to be unable to do so?
The table-cell solution for vertically centering text is incorrect. You need to put that display:table-cell div inside a display:table div. It requires the parent in order to work properly.

Example: <div class="item"><div><p>Your text here</p></div></div>

.item {display:table;}
.item > div {display:table-cell;vertical-align:middle;}

I use this method on justindocanto.com to vertically center an unknown amount of text/elements inside a div that changes its size based on the size of the image that's inside it. Really nice technique when used correctly.
It's not permissible for any company. Really stupid that Google is engaged in this.
This is kind of a side issue, but I am committed to correcting these 'black or white' ideas of security.

The idea of 'security' should be represented as a spectrum, like white to black with grey in the middle. The ideas of perfect security or total insecurity— the white and black ends of the spectrum— only exist in our minds (Not in the real world.) Thats what you're talking about.

Don't focus on the extreme ideas- instead, think about the grey area of the spectrum with 'more security and more hassle' on one end, and 'less security and fewer hassles' on the other. Then you'll have a reasonable mental foundation to build your ideas on.
I know of a non-software industry company that for a brief time seriously considered implementing its own proprietary relational database engine. Thank god that project got killed.
> Internet is cheap in France mainly thanks to him.

And I'm pretty sure we have one of the best offers in the world for mobile plans thanks to him as well. I haven't seen a lot of places in the world where you can get pay on the go unlimited calls/texts/data for such low prices (10€/m)
I was introduced to McLuhan after I read Baudrillard's "America". Even though Baudrillard's written off as an obscurantist I still think the essay gives rich descriptions of the otherwise prosaic.

I mean, there's a part where he just talks about American deserts. He goes on to describe a gas station's lights always being on noting the temporariness of buildings like it.
That's not the point of sample projects like these. It's to showcase what's possible with the technology and allow developers to see how something can be implemented.

The developer was having fun with the technology and showing others how it could be done. Let's encourage this type of behavior.

"I created this to see what it's like to create an AngularJS 2.0 application. I've previously experimented creating a Hacker News clone with AngularJS 1 so this was fun to play with."
Tragic that in the same year we commemorate the centennial, we (New Zealand) and Australia are committing forces to Iraq at the behest of the current pseudo-imperial power, the United States.
Interesting but I believe security is a feeling. You either feel safe or you don't.

It's true that there are lots of things that we cannot control, regardless of money or power, but when we have more options we certanly have more control over our own lives and those around us. Money is a very effective way of increasing our options in life but there are other ways too, like having more knowledge or developing a skill, more meaningful relationships.
Wow CSS is unfriendly, you really realise how poor it is once you learn other layout systems (android's XML and iOS auto layout, etc).

Wish there was another standard that could co-exist side by side on the web, something simple enough to be implemented reliably by the browser vendors.
It's all coming around. React taught the value in using a virtual DOM for isomorphic rendering. Ember is adopting it with Fastboot, and I'm sure Angular will end up doing something similar.
Ask HN: How does an italian declare oDesk earnings?
After losing the n-th job here in Italy, 8 months ago I decided to give a try to the oDesk platform by working as a remote freelancer. Things are going well and I want the remote working to be my day job, but the problem is: how do I declare my earnings and pay taxes on it? Or better: who do I write my invoices to? I talked to the oDesk support and they told me they won't accept any invoice from me as they aren't my end Client and my Clients told me they won't accept any invoice from my as oDesk already invoices them.

I talked to (and paid) several accountants here in Italy and none of them seemed to be competent enough to handle this situation.

Any advice? Thanks
This is interesting, when I opened the link I thoguht to myself "this might be a nice and faster way to browse HN" ... but wow, this thing I slow. Not just slow, but the back button isn't working as well. Or maybe it is, but it loads the whole content again when you click back?
Perhaps you could call that 'technical bankruptcy', as in, "we're declaring technical bankruptcy and writing an entirely new version".
Making six $3k deposits in a row isn't a crime. Doing so to avoid the reporting limits, is.

It might turn out that because of some quirk of law that intentionally getting around donation restrictions isn't illegal (which is presumably should be, just like the banking regulations...) but even if so it's still pretty clearly an end-run around the intent of the law and that's a pretty scummy thing to do.

Especially because I think it's pretty easy to see the easily coercive nature of this. After all, donations are publicly visible... I wouldn't expect to be fired for not, but I would expect not to be promoted unless I did.
My mother was homeless for 6 months due to mental illness and an inability to access services (such as they where) so trust me when I tell you this is a truly heartfelt fuck you.
I'm a big fan of how Circa does it - https://medium.com/circa/the-right-way-to-ask-users-to-revie...
You guys love the most obvious studies.

Did you know you need sleep for your brain to function? How about food? Wow exercise too?

What planet are you people from.
It's often hard to tell where the hard problems are being solved in high-level tools like this.

tl;dr: CLI program wrapping PhantomJS, which is based on QtWebkit.
Ask HN: Software engineering specializations
I often hear(from some relative) about a software engineer who travels the world working as a consultant for big companies. When I hear that I ask them which tasks or job the engineer performs but they never remember.

I'd like to know if the fellow HN folks have some stories or personal experiences about something similar. It'd be nice to know which technologies/specializations could enable an engineer to have this kind of lifestyle.
Show HN: Start Writing Web Custom Elements
I'm not an Angular user(Ember here), but in time all of the major frameworks will allow for serverside rendering. The React model works very well, and most projects are taking a lot of ideas from it. Ember will have fastboot in a couple of months to match the same idea, and it won't even require any custom code- it'll be little more than 'drop in, run server', and you're good for life.

I expect a lot of other frameworks take a similar approach not long from now.
I feel like this is one good example of big changes coming to the world and traditionally established big business in the next 5-10-25 years. Hilariously, many of the following big business have "guaranteed profits" from the Government, which is also going to have to change.

If you're in the business of making electricity by burning stuff, or you sell oil, or cable TV, or internet, or 50 other good examples, you had better start reinventing your business now.

Those business make very rich people richer, so they're going to fight it tooth and nail, which is a shame when they could be putting that effort into reinvention.
You may be on to something. It's almost as if different people enjoy different things.
Do you mind describing your routine? I've tried getting into jogging but, like the above commenter, I find it extremely boring.
Ruby version with multiple competing populations:

https://github.com/rickhull/conway_deathmatch

See also the elixir branch.
I didn't see any reason why these differences might not be genetic: genes cause changes in the brain which cause changes in academic achievement which cause socio-economic status.

It would be interesting to see studies that isolated the effects of genes and environment.
> Wish there was another standard that could co-exist side by side on the web, something simple enough to be implemented reliably by the browser vendors.

That standard exists. It's called flexbox. It was designed to solve exactly this problem (among many others), and does.

That said, as I never tire of mentioning, vertical centering was a part of the design of CSS 2.1. The technique is called "absolute centering". See CSS 2.1 10.6.4 [1]: "If both 'margin-top' and 'margin-bottom' are 'auto', solve the equation under the extra constraint that the two margins get equal values."

[1]: http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-hei...
It would be interesting to compare this to the Silk Road model: the Tor black-markets are more robust against surveillance (LE pulls countless cell records every year) and more systematic about feedback (every order) but the delivery mechanism is much slower (mail is never faster than overnight and international orders take weeks or months) and it's unclear whether it's more or less secure (individual vendors can be profiled and their packages intercepted reliably; on the other hand, driving around is pretty darn insecure).
BBC Micro Model B User Guide

Absolutely amazing as a 10 year old who'd just got his first computer. I soaked it all in, and in return it gave me a career.

PDF: http://bbc.nvg.org/doc/BBCUserGuide-1.00.pdf

Info: http://www.retro-kit.co.uk/page.cfm/content/BBC-Microcompute...
There is a difference between being a scapegoat and being at fault. Churchill was the former with respect to Gallipoli; his actual plan was simply not followed.
Flexbox solves this problem but it's still a bit unwieldy and verbose.
I actually think I'm using the wrong word. I don't think he was a psychologist, because he mostly talked about drugs I could take.
Laravel – The Right Way
This is why css is fundamentally broken. Centering should be a feature in itself. I shouldn't be manipulating other attributes to achieve centering.
+1 for Dokuwiki
I agree. If I were a utility, I would be working hard to figure out how to be a storage broker, because if homeowners figure out storage without the utility, the utility will eventually be left with nothing other than large industrial consumers (which might be a decent business, but probably less than half the size of the utility's current market).
Bubble might not be the right word.

If the polluter pays principle is enforced it will definitely lower the valuation of the fossil fuel industry, and perhaps this has some collective phase transition behavior.

The classic bubble though is exponential and autocatalytic and tends to involve an unreasonable excursion in the price/earnings ratio.

Another factor is that "the next thing" will certainly involve some fossil fuel businesses who (1) recognize the need for the next thing and (2) have expertise in technology that is part of the new thing but is used in the old thing. Some examples are solar energy investment by oil companies such as bp, the fact that geothermal exploitation involves the same drilling tech as oil and gas or oil services companies such as Kerr McGee that got caught up in the 1970s "nuclear bubble"
Your Coding workflow as a teaching tool
I think that a home battery product from Tesla might help with some of these worries. If the rumors are true, Tesla want to take their existing car battery technology and turn it into a wall mountable product. This would allow homeowners to generate their own electricity during the day and use it at night. I'm not saying that people will completely drop off of the grid (though I'm sure some will) but it might be a way for the utility companies to manage peak demand. There is possibly even a good small business idea in building software to handle this type of thing.
For me exercise is never boring because I don't do boring exercises. Jogging for example -- just kill me instead, holy christ is that boring.

Soccer, Basketball, Climbing, Sprinting, and Biking (to the liquer store for example) -- now that's exercise I can get into!
At least from what I've seen in the Costco stores in Australia, it's because a Costco 'express lane' would need a cutoff of about 30 items to make it useful. People go to regular supermarkets if they need something quickly, and they go to Costco do to their weekly/monthly shopping.
Verbose? Compared to the other solutions it's a godsend, just use the CSS-tricks guide for it and you'll have nearly zero problems. I absolutely love it and pretty much refuse to use anything else for layout in CSS now.
The "Ecole normal superieur" of the Ulm Street takes only 11 students in CS. So yes, in comparison, 42 accepts anyone.
It is a feature of CSS 2.1. See my reply to chubs above. CSS 2.1 10.6.4 requires that "margin: auto" on both sides of an absolutely-positioned element mean "vertically center it".
Which is why you use something like AutoPrefixer to automagically generate the needed browser prefixes and such, makes it a whole lot easier.
Well, if you want file `X` then you can ensure you find the minimal set of files to produce `X` from your given rules using Horn-SAT by adding `and X` to the Horn Formula representation of the build rules. Pretty neat!
There are places where tl;dr implies a lack of focused attention. On HN, it often implies "I couldn't get the basic idea quickly enough to be sure this is worth focusing my attention on; can someone summarize for me so I can make a better-informed decision?"
I'd rather ignore this and just concentrate on the confirmation bias provided by the conclusion. In other news, I'm pretty sure I have ADHD.

No seriously. Having been diagnosed with ADHD years ago, I found the conclusion fantastic and confirming, and then parent's point stress inducing. I'm hoping I'm at least 51% ADHD.
Seems to be serving a broken page...

<div class="bodyContainer">
<hacker-news></hacker-news>
</div>
Then that needs to change. Carbon footprint is more important than some utility's profits.
The word you want is probably psychiatrist.

Some things, it turns out, are best addressed chemically.
So I timed the compile step and it gets quite long at one second for 10,000 facts, about a 1/10th of a second per 1000 entries. I wasn't expecting my first attempt at a database to be able to handle 100,000 facts or to be able to compare with SQL, but I did think GCC would be a little bit faster than that. Interestingly, when I created arbitrary relations between the data and queried them, the queries themselves executed in 5ms no matter how large the data set. I think I might convert nebula back into a graph-based logic programming language and try to make a triple-store without a compile step.
This should also have an option for 'what browsers do you need to support' and just provide flexbox output instead if you don't need to support legacy IE.
To be honest, I don't see how you could possibly do fractional reserve with Bitcoin. By definition fractional reserve is lending more currency than you have. Banks can do this because they are allowed to create the money that they lend. So if I am allowed a 10:1 ratio of lending and reserve, as long as I maintain $1 in my reserve, I'm allowed to lend $10. Those $10 are poofed into existence when the loan is created, though.

As another person mentioned, I think you are confusing lending with reserve banking. A bank (or any entity) is allowed to lend as much money as they want to someone if they are actually lending money that they have. That's not fractional reserve. Fractional reserve creates money. The fraction limits how much money you are allowed to create.

You can't do that with Bitcoin by design. Of course, you can lend money (that you have) with Bitcoin. There is currently no automated way to record that the transaction was a loan as opposed to a payment, but that's true of all currencies. In fact Bitcoin had some plans to implement contracts in the protocol, but I don't think anyone has done it yet.

If I am to opine slightly, I think that Bitcoin's lack of ability to do fractional reserve is probably a mistake. I think it relegates it to a payment method as opposed to a viable currency. The problem with Bitcoin as a currency is the lack of availability. Although it often doesn't look like it, I think the purpose of a currency is to get resources into the hands of people who need resources, but don't have it. With Bitcoin, the currency is a limited resource and those that have it have no particular reason to spread it around. With a more traditional currency, the money supply can grow to match demand. The banks which create the currency have an incentive to loan money because the money that they are loaning is springing into existence at that time -- they aren't loaning their own money. The only thing the banks need to worry about is that on average, the growth produced by the loan is greater than the interest charged. Having a fluid money supply like this allows people who do not have money to get it and reduces inefficiencies (i.e. people being idle because they don't have the resources to produce something).

Having said all that, I have no idea how you could implement fractional reserve in a distributed system and have any protection for horrible abuses. Until that problem is solved, I can't really see a way for this kind of currency to act as a true currency (as opposed to a payment method). If I remember correctly, there was a review of Bitcoin by a prominent economist a few years ago that pointed out this problem.
I volunteer at a free diner to feed the homeless. It puts knots in my stomach to see someone intentionally freeload while other suffer with addiction, health problems, mental disease, childhood abuse/trauma... These people didn't choose this life.

If you can afford a $70 phone bill every month and post on reddit, you likely also could probably flip burgers. In that case, you're not homeless: you're lazy and a sleeze.
That's kind of a waste for something like the HackerNews site. It's just dog-simple HTML. There are a handful of vanilla JS functions to run the voting buttons (at least that I can see). It seems like a use-case that would be perfect for server-side templating like Razor.
Flexbox can be a bit low level, but with it you can build abstractions (eg. classes or preprocessor mixins) for common use cases, which I think is preferable to having only a high-level tool which can't cover all use cases.
That looks like an awesome technique. Thanks for the share!
>> RTFM is the motto of the school.

That sounds like theory, probably closer to RTFSO (read the fucking Stack Overflow)
I'm surprised he didn't mention Santa Monica's downtown. In the 80s it was generally considered seedy & filled with blight. The now-famous Santa Monica Pier was in disrepair. 3rd Street wasn't really a thing, nor was Santa Monica Place, Casa del Mar and so on.

Today the area is hot enough that it commands rents comparable to SF & Manhattan. The median rent for the area is $3,200 and one bedrooms in newer construction (w/o an ocean view!) can go for $5k.
Last Male White Rhino Is Under Guard in Kenya
It is worth keeping in mind that the download stats which determine popularity [0, 1] should consumed with care. They represent HTTP requests which hit the server to download a particular apk file. Thus, things such as web crawlers can trigger downloads, which result in incrementing the download count.

Having said this, they definitely seem to be useful as a general rule of thumb about how apps are more popular, _relative to other apps_.

[0] - https://gitlab.com/fdroid/fdroiddata/blob/master/stats/total...

[1] - https://gitlab.com/fdroid/fdroiddata/blob/master/stats/total...
I am so unbelievably stoked about your efforts, SnaKeZ! Thanks so so so much! Definitely keep conversation open with the f-droid devs!
Would this technique work to center, say, an <img> tag with undeclared dimensions inside of a div? Or do you have to jump through hoops?
Should Mutual Funds Be Illegal?
The repeated animation for each content is very annoying. Would be better to have a single spinner for the whole page.
Hacker News loads in milliseconds, why does this take over 10 seconds to even start showing comments?

It's not so much a showcase as a reason to ever never use this in any product, it's obviously unsuitable for displaying even the most simple, static data without taking forever and making FireFox stutter. It's not an isolated situation with this either, other websites like this perform terribly even thought they are written in the hippest language with the most popular libraries on the market.
Warning: your site produces the following (I use Sophos)

High Risk Website Blocked

Location: http://www.yoursemi.com/

Access has been blocked as the threat Mal/HTMLGen-A has been found on this website.

Return to the page you were previously viewing.

Please click here to submit this site for reassessment by SophosLabs.

Reassessment request link: https://secure2.sophos.com/en-us/threat-center/reassessment-...
Well, it seems to be loading data in via websockets. Compared to server-side rendering of cached data, that's not going to be performant.
I'm not sure why i would use this over the already-existing phantomjs command line API (http://phantomjs.org/api/command-line.html), especially as it adds Ruby to the mix...also quite suspicious of the seemingly-unrelated plug for a company in the repo readme.
An 'isomorphic' approach would really help with that first page load time. Here's one I built with isomorphic React: http://hackernewsmobile.com/

(source: https://github.com/jsdf/hacker-news-mobile)
FYI: The angular team is working on server side rendering: https://docs.google.com/document/d/1q6g9UlmEZDXgrkY88AJZ6MUr...
I agree. Server side rendering is not currently available for Angular 2.0 but it is in the queue: https://docs.google.com/document/d/1q6g9UlmEZDXgrkY88AJZ6MUr...
I am planning to get a probiotic anyways, wouldn't mind trying out the one that was used in the study.

This will be one instance where I would not mind an affiliate link ;-)
This is not a critique to the author, but for me, who just did classic webdev (server side templated html), this was very surprising.

I am not that into webdev, but shouldn't a page like HN be fast TODAY, as it has very basic functionality (CRUD)? I mean if this is slow, how can I expect acceptable performance from involved applications?
author here, Are you still seeing that? Can you open an issue with further details please?
Please enlighten those of us outside South Africa. What, exactly, is xenophobia? There is nothing in the "About" or FAQ" pages to tell me what this is all about.

There seems to be a world of hidden meaning here.
Jumping the Paywall: How to freely share research without being arrested
I've heard that android's XML layout is terrible (from an android developer) and that iOS auto layout is borderline magic (from an iOS developer).

Personally, I don't find css to be that bad at all, but I work in it at least a little everyday so it might just be stockholm syndrome.
Really crazy, they even have different error messages for dropbox and mega.
That's the body before any javascript runs.

Did you really open a link about an angularjs project, with javascript disabled, just to be able to say it's broken?
Just remember IE10 only supports the 2010 flexbox spec (you can't inline-flex, need -ms-prefix etc.)
"It was a beautiful plan on paper!"

-- every terrible manager ever.
Alternately, version. Either way it's clobbering
Something I have in my todo list is to use the new angular router (https://github.com/angular/router/) however it doesn't appear to be currently available for angular 2. See issue https://github.com/angular/router/issues/233.