skysight-inc/HackerNews huggingface dataset:
I've worked on many different codebases. CSS and script tags add to the mess something awful. For cleaning CSS I take an existing site open with developer console and click through every HTML element in the tree looking for alignments offsets, centering madness before flexbox, font size and color corrections are all stripped away. These settings belong in the top level body or global part of the CSS. I flatten out the HTML and CSS alike so all my elements are at most 4 levels deep.

This is a process that takes about 1 day per product page. It's a horrible pain to clean up a site but the payoff is easier maintenance in the future and hopefully some acknowledgement that the page loads better. This skill can easily be trained in to developers. I hope this reminds everyone that computing is a skill that must be practiced.

It isn't normal to use tables for layout these days, just like it is no longer normal to use JavaScript for centering elements vertically. This is fixed with flexbox. Please learn and use it!
I have started using and evangelizing styled-components in our react projects. Hard to explain, but it just feels like it is the right way to do CSS. Having everything to do with the view for a component in one file works well for the way I work.
https://news.ycombinator.com/item?id=15218630
> I might be wrong, but I think that they haven't posted any actual text because the document(s) got leaked.

You're wrong, but it's an easy mistake to make: the leak concerns the ongoing diplomatic discussions between the nations voting on the proposal:

> According to a new leak, a number of EU Member States share our serious concerns about the proposal for mass surveillance and censorship of uploads to the internet in Europe, included in the European Commission’s proposal for a new copyright Directive. Those Member States seem unwilling to build a censorship machine forcing EU countries to adopt Google’s current practices. They highlight that such practices should not be implemented without making sure of the consequences for fundamental rights and for the rule of law. The leaked document contains a list of questions posed to the internal legal service of the Council of the EU, signed by six EU Member States: Belgium, the Czech Republic, Finland, Hungary, Ireland and the Netherlands.

The proposed directive itself is, as with all such proposals, open and available for everyone in every official EU language:

http://ec.europa.eu/transparency/regdoc/rep/1/2016/EN/1-2016...
We still have no idea how or why people would melt the rock walls of fortresses to create "vitrified" forts:

https://en.wikipedia.org/wiki/Vitrified_fort
> A cool idea here that an engineer on my team implemented recently is using a webpack loader to convert our SASS variables into javascript variables so they can be shared with your styled components.

What I do is set my variables in a YAML file and inject those into both my JS and CSS files at build time.
That's cause this video is from 2010. Yes, this is SEVEN YEARS old proposed technology. Read the comments - this didn't go anywhere. Even with the creepy model.
Bundlephobia: The fear of installing a large npm package
The BSD license predates the GPLv1.
What Your App's Crash Rate Can Tell You
Why is this a bad thing?
Creating solutions with separate projects for entities, data access- ASP.NET MVC
The reason in many cases they accept fines instead of jail time is because it is very hard to pin the actions of large corporations on any one person.

What is one specific law that one of these executives broke? I have yet to see anyone specify what law they broke.

Just like the Wells Fargo CEO, bad incentives are not illegal. He didn't personally break any laws or illegally sign anyone up for an account without their knowledge. He may have even known that a bunch of their accounts were fake, but there is no evidence he had any knowledge of specific accounts.
What? It's very easy to be DRY in js by copying properties from style modules into the objects containing the styles of a particular component.
I wasn't really speaking about the touch-ID feature per-se, but the lack of physical feedback from the pressure sensitive home button, as you can last find on the iPhone 6/6S. My uncle had all the trouble in the world to use it. For such an expensive device, this is just not acceptable.
While I appreciate your freedom to post your disagreement, it does not make my comment or perception of HN any less valid. My question was, where does proper STEM discourse happen these days? Surely everyone didn't fade into the ether in silence, so where is everyone? It is not unrealistic or asking too much to ask that comments are on topic and not of a comedic nature. I'm not whining here, I love comedy, I'm genuinely asking because I need someone to point me in the right direction of where I should excuse myself to.
Minor correction - I think the chimp divergence was longer ago - Wikipedia: While "original divergence" between populations may have occurred as early as 13 million years ago (Miocene), hybridization may have been ongoing until as recent as 4 million years ago
No mention of a cell phone pushing over the bar of what constitutes a felony in terms of dollar amount. I'm in no way for raising this limit further, but I also don't think stealing a cellphone should be a felony.

Older articles, but they cover what I'm talking about:
https://www.bostonglobe.com/metro/2016/03/09/why-stealing-ip...

http://www.pewtrusts.org/en/research-and-analysis/issue-brie...
Correction: the late, keenly missed Aaron Swartz
pick a niche within a large, popular category. For example, travel is a huge category. How do you differentiate yourself? Dive deep within a niche. Example could be targeting travelers looking for deals in first-class flights. Research the hell out of this niche, do a lot of things that don't scale, find awesome deals and build an email list alerting your audience to these deals, etc, etc...
Until you have a catastrophic health issue like say total kidney failure at 18 which happed to some one I know or you need a transplant I dread to think what my recent kidney transplant would costs in the USA as opposed to the UK
People want to live in dense regions because they want to have good restaurants and good public services and things to do on the weekend outside of their homes, other than hunting and fishing.

So this:

> And on Friday afternoon or evening, they get out of the city as fast as possible, until Sunday evening.

This isn't universal. Not even close.

Plus, you can't ignore the political aspect: Someone with progressive politics will be happier in a city than the country, at least in America, and that's been true a very long time.
Man Receives World’s First 3D Printed Tibia Replacement
Hmmm, I'm not aware of that change to the constitution.
It's only for 120 days but, e.g. this is from one of Chase's cards: What's covered: "Eligible personal property that has been damaged, stolen, or involuntary and accidental parting with property within 120 days from the date of purchase"

This is in addition to a year of additional warranty protection and various other purchase protections.
> and some alternative kleptocratic dictatorship of any other failing state

Are you serious? The only alternative to mega Churches is "kleptocratic dictatorship of any other failing state". There are many countries who have done much better without the mega Churches leading their progress (India, China, Japan, X, Y, Z).
I've been in decent companies that I just feel like shit in because of what my skills were contributing to.

The most notable was a couple years I spent working under a pharma giant, I've never felt so disgusted with myself in my life. Coming up with new ways to get money from your customers, I mean patients, for the same or lesser service did not sit right with me.

So for me, it's largely about the work/company. How can you not care about what you contribute to day-to-day, yet feel entitled to be upset at CEO's and politicians who do bad things "for the money"?

I think everyone from migrant workers to a fortune 500 CEO has a moral obligation to not write off injustices they are contributing to because of their mortgage or whatever money-centric excuse they use. At the same time, live your life the way you want. You just aren't any better than the bank lobbyists/Comcast CEO/insert evil company leader here, they all have the same excuse as you...money. You are your actions, not your words or thoughts.
I think a lot of "great man" thinking is really motivational - people want to believe they can make a dent in this massive universe of ours. If we always said "well, progress happens, regardless of what you specifically do", that is pretty depressing and may actually lead to fewer people trying to push things forward. just a thought -
We have had the same problems with HTML and browsers, and you can apply the same solutions.
Dead serious.
Could you not do so anonymously?
I am not a lawyer, but my understanding is different. The MIT license doesn't mention patents and only mentions copyright in relation to preserving the notice about who owns it. When granting permissions it focuses on specifying the expected end result rather than getting caught up in details.

The MIT license says plainly that you have the right to use the software without restriction. To me, a layman, it would seem contradictory and unfair if the author later claimed that they held previously unmentioned patents that restricted your use of the software.
I like the fact that this is a simple, easily measurable metric that can give you a very good idea of the quality of your application. In fact, I'm now trying to think of what simple metrics I can use to track the quality for the application I'm currently working on (a web application).
Scaling Event Sourcing for Netflix Downloads, Episode 1
Flipboard’s Mike McCue on the last startup he’ll ever do
I figured this to be some rinky-dink setup with some teensy pocket solar panel. I mean, $200? Hell, a decent 100W panel will cost you that much.

100W panels are $94 now? Holy crap, if we used more power boondocking I’d cover the roof of the camper with them. But we don’t use the power we make now, with a propane-powered refrigerator and LED lighting. And that’s the problem with solar, it can power the little stuff, like LED lights or a small invertor, and 100W panels are almost overkill. But get to something like a fridge or A/C for even a small camper, and one will need multiple panels and a big set of batteries.

Nice setup, and I wish them well with their turnkey solution.
Agreed. To take the author's metaphor a step further:

the reason the screwdriver was broken is because we're trying to use it as a hammer. So replacing it with an actual hammer makes sense. And the thing is, we still have a fully functional screwdriver at our disposal (for global styles, e.g.).
Trust, but automate
Mercedes-Benz will electrify its entire car lineup by 2022
> Native is overkill and suboptimal though some people claim otherwise. You lose standard functionality like Copy, Partial Text Selection, Web Search (Selection), Share (text selection) with Whatsapp, Messenger, Copy Link etc. All of which come free with a Browser view.

Whoa, no. One of the points of having native is to /have/ standard functionality. Native copy/paste, native sharing, etc. All those things have to be implemented and hooked up to by the browser or JS library, otherwise.

Not to mention native controls, the native UI behaviour, etc which is otherwise mimicked.
maybe time to revoke Comodo's CA authority. Similar to what has happened before with Symantec (?).
Apple Watch with deep neural network detects atrial fibrillation with 97% accuracy
Seems reasonable considering all the ongoing raids on Colorado, Oregon, Washington, and Nevada governments.
But you can have capitalism without free trade, or even many rights at all. Liberal freedoms and rights tend to favor capitalism as an economic system, but not the other way around.
Same in the US; I had a friend who was estranged from her parents, and so they refused to sign a FAFSA form, which made her unable to qualify for pretty much all financial aid. The college president had to step in to have an exception made for her, since all need-based scholarships provided by that college (and most others) are based upon FAFSA.
The question was "at what company we're you the happiest" and you said "none"? You can be unhappy at ever but you would have still been happier at one over the other.
Could be a rationalization to cope with the trauma/horror of having killed someone, similar to "inappropriate" wartime or gallows humor; depersonalizing your victim is one way to avoid the full guilt of what you did and is a common psychological coping mechanism (that's not saying it's good...)
"There's nothing you can do that can't be done" - The Beatles
8 Ways to Prevent Your AdSense Account from Getting Banned
If you're interested in doing it anonymously, get in contact with @idlewords/the pinboard guy/maciej ceglowski. He's all in on journalism and privacy.
Governments could take down fb (and google) if they chose to. They'll fight back but the Chinese have demonstrated that it's possible given sufficient will. With fb having recently been targeting Kremlin propaganda at voting populations I wouldn't be entirely surprised if they didn't get canned in the name of national security.
What are your thoughts on using Clojure for more than 2 years?
Some of the folks renting cars here do that, rent out for a day and night shift. They're making good money doing so, making it so they charge enough so the actual driver can just squeek out a living. Still better than working a taxi they tell me.
مشاهدة مباراة الهلال والعين بث مباشر اليوم 11-09-2017: NewsA – الأخبار اليوم
> Say I want every anchor tag on my site to be the same color

But you don't. You have a popup calendar component and none of it's links are supposed to be colored at all.

The problem isn't that anyone is wrong here; it's that there are actually multiple things going on here and depending on where you felt the pain last is where your opinion might fall.

I use a lot of 3rd party components that have their own styling and attempting to affect that globally is disastrous for them.

But I'm also rolling out an entirely new style and layout for all our applications and I'm not changing the code -- it's almost entirely global CSS changes.

Sometimes it's hard to reconcile these two things.
One of the simplest known organisms, the worm C. Elegans, has a brain consisting of 302 neurons that we have mapped exactly. (The entire thing is 959 cells.) We still can't simulate it correctly.

A rat's brain is O(10^7) neurons, while a human brain is O(10^11) neurons, as compared to C. Elegans with O(10^2) neurons.

Which is to say, trying to simulate a rat brain while we know we can't simulate C. Elegans is like a prehistoric human claiming he can build an F1 racecar before he's invented the wheel.
First of all, Tome4/DND reference?

> Mocking out the dependencies of a piece of code allows you to test that code exhaustively (for every range of possible inputs) if you choose. Even when that's not practical (probably most of the time), it allows you to do your best. It gives you the hooks to simulate any range of behavior.

It lets you mock anything at all, which is not what you want to mock. You want to mock the service (and in a microservices architecture, its interplay with dependencies).

If you can encode those into a series of constant replies? Good, but you'd better be doing something like FSharp's type providers or Facebook/Marlow's Haxl where you capture real traffic off the wire, otherwise all you've done is inject more opinion and conjecture into your tests and confuse that with correctness.

Outside of a very small number of specific methodologies, I think our industry is at mostly a loss for how to test microservices.

> This absolutely will not scale, and it sounds downright frivolous.

It doesn't scale with junior engineers. But neither does unit testing, which is more of the same "I think these tests and we try them and pretend that's test coverage because this line of code was touched" which is demonstrably false.

In typescript, I try to do queue-based architectures with full docker stack simulation. People like to call these "integration" tests, but I consider them unit tests for impure code.

In a language that lets me do pure/impure effect separation even in a communal setting, I tend to use quickcheck for the pure parts and hand-test the impure parts if an environment exists. When I get to use Haxl, I used their caching features to preload responses and my code didn't even know it was being tested, which was great.

Also, in Haskell, I'll sometimes use MonadMock but only if I can grab raw source response from APIs (or of course I need to do something like fix time or random numbers).

But I really try not to waste my time in the futile tarpit that is unit testing anymore. It's sort of the pop quiz mentality applied to software engineering and all it does is provide false confidence that code is "tested" when the quality of the output still varies radically on the discipline of the developer.

When I _do_ go back to Ruby or untyped javascript, I do end up writing unit tests. But they're mostly to capture scope around components to ease refactoring and make requirements explicit; something every language should have.

Sorry for being so frank, but you seemed like you wanted a bigger discussion. I think the industry has collectively decided to freeze all interest in any technology conceived after 2007 and it bugs me.
Yeah right. This one is $150 million https://ikoyi-obalende.jiji.ng/land-and-plots-for-sale/land-...
Very well-put! In trying to solve one problem, we create tons more. So much more added complexity! The React stack is growing out of control with the flavor of the day changing daily per se!
Equifax and the National Security Threat of Offshoring
The Glass book Facts and fallacies of software engineering or another Glass book? :)
Sorting has long been known as something that can be bound with more comparison units. Batcher's sort, as an example, is far from a new algorithm. So, to that end, being able to sort a collection in lgN time is quite appealing.

What I take this paper as doing, is seeing how close we are to being able to take it for granted that you can sort large collections in lgN time, instead of NlgN time. My guess is we are a ways from there, but probably not as far as I think.
Aaron Fu Joins MEST from Nest
The issue with shipping server side CSS is solved in frameworks like styled components too.
OK, but how long did you receive patches after the purchase?

I'm talking mainly about phone support not whether it continues to function on a basic level or not.
I did mean the drone part, but now that you mention it ... all of it - regulation of cannabis should be like alcohol but even lighter IMHO
Hi, author of the post here. This quote isn't a reason to agree to the license.

Agreeing to the Facebook BSD+Patents license doesn't rest on the assumption that Facebook will continue a defensive stance on patents. It gives you rights or mostly preserves your rights if Facebook were to proactively claim patent infringement. From my reading:

1. The patent grant specifically gives you patent licenses for Facebook open source, so Facebook couldn't rightfully claim patent infringement for the licensed patents.

2. The grant also says if Facebook were to proactively sue you for infringing its patents, you'd keep its patent licenses even if you were to countersue.

(Disclaimer: I'm not a lawyer, nor is this legal advice.)
It's not only MailChimp that causes the "get your money's worth" type send an email every two weeks even if you don't need to style behavior - it's an impossibility to run a clean list these days and not get flagged as spam by the major ESPs if you don't do this.

Here's what I've found: Say you're generating a new list from user entered email addresses, supplied by users with a form on your website. After regex for validating the "shape" of addresses, and also making the user enter their email twice (which I'm finding doesn't actually help your correct email rate, all it does is reduce the number of signups), a full 6% of gmail addresses you receive will still be invalid, and an additional 3% will be trash ('asdfasdf@gmail.com'). For non-gmail domains it's more like 20% bounce, 20% go to yahoo/outlook/hotmail black holes w/o bouncing, and you end up with about 60% delivery of your double opt in mail, of which about half actually bother to dig out of spam and verify. Awful! If you then went on to send one email per year when you have some big important event that your users actually signed up to hear about, I have some bad news for you. 30% of those emails will bounce, and you'll get on all the spam lists immediately. So, how do you get your bounce rate down? Simple! Send a welcome email - 30% of those will bounce, as before, but then, for those that don't bounce, send another "how're you doing!" email once a week. Voila - after a month, your bounce rate is down to 6%, your users hate you because you send trash all the time, but hey, from google, microsoft, and veriozon's point of view you're a great member of the email community, look how low your bounce rate is getting to be!

If you run an email server, please do the right thing for your legitimate marketers and ignore bounce rate - the extra 5% traffic to your smtp server is not going to burn it down. If you think high bounce rates indicate someone trying some sort of dictionary attack, well, sure - but this should generate a bounce rate that is near 100% - if you set your cutoff somewhere reasonable, say 50%, then you stop forcing me to have to send 5 emails to every signup!
Search engine for devices and networks
"The imaging system can then stitch the patterns into a detailed 3-D image of your face to determine if you are indeed the owner of your smartphone before unlocking it."

So I pay an extra $300 to save me the trouble of putting my finger on the touchID sensor? That doesn't sound like a compelling value proposition to me.
The tone of the article is formulaic. [1] In the US, a church built its own state. In downtown Clearwater, Florida (today is probably not a good time to visit) a church has come to dominate the urban fabric of an existing city in more recent times. The states of Maryland, Pennsylvania, Massachusetts, and Rhode Island were founded as religious communities. San Francisco, San Deigo, San Jose, etc. in California. San Antonio in Texas. St. Louis in Missouri. The association between religious communities and city founding is quite common.

[1]: https://www.washingtonpost.com/news/global-opinions/wp/2017/...
It's extremely slow compared to the Java version though.
Mine is still on stock but maybe now is the time to learn how to flash and all. Would you recommend doing it also in terms of camera and stability or is it rather experimental for testing new Android features / proof of concept etc.?
5 Vuex Plugins for Your Next VueJS Project
Are we dumbing CSS-in-JS down just to attack it? CSS-in-JS doesnt mean you have to sacrifice visual consistency or DRY principles. you can still create a central system of CSS properties and import them to be used while being explicit and scoped about the stuff that is not shared. I feel like this is being debated more than its worth. As with everything, pick the right tool for the job.