skysight-inc/HackerNews huggingface dataset:
Here's the canonical slide deck that kicked off the "CSS in JS" trend. https://speakerdeck.com/vjeux/react-css-in-js

The core idea isn't strictly to generate CSS from JavaScript per se, but to generate CSS in whatever code is generating your HTML. In React, that's JS, but if you're generating HTML server-side in PHP or Ruby, the argument calls for generating CSS in PHP or Ruby.

vjeux's talk identifies seven problems:

1) global namespace: CSS has a page-global namespace for classes

2) dependency management: if you forget to include CSS, but another module/component on the page includes the CSS you need, your code will seem to work, until they remove their dependency and your code will magically break

3) dead code elimination: you can't know whether a CSS rule can be removed unless/until you can prove that the HTML generator won't generate any HTML that matches its selector, which can be impossible in the general case

4) minification: you can't minify class names without coordinating with the HTML generator

5) sharing constants: "padding: 5px" has to be kept in sync with the HTML generator "buttonPadding = 5"

6) non-deterministic resolution: loading CSS files in a different order results in different rules with the same specificity winning ties

7) isolation: component clients can use CSS to style the internals of an element, making the HTML structure implicitly part of a component's API

vjeux calls for applying generated styles as inline styles with the "style" attribute, primarily because it's straightforward to implement. You may be able to get better performance by generating a <style> tag on the server side, or extracting a CSS file from the HTML generator instead.

Beware that if you're generating your HTML only in client-side JS, that can be bad for performance, and CSS-in-JS is likely to make that worse. At least run your JS on the server side, so you can send HTML + CSS to the client on first load.
Nitpick, can we say "the user's attention is the product" instead of "the user is the product". It is less descriptive and hyperbolic which reduces the speaker's credibility. It also minimizes the suffering of people that have (and unfortunately still are) sold as slaves (literal human products).
This doesn't matter, even if it were paid they'd still spy on you, because they can. The list of paid services that still do a ton of spying is neverending (Netflix, Uber, Spotify, I could list them all day).
Since there's no standard, presumably different people use different methods, or sometimes none at all. Beyond that, people could still make a mistake and put something in code that belongs in an env file.
Show HN: Caliper. Measure what matters for hiring in AI. At scale
IIRC, the way browsers interpret margins and widths on the <body> element isn't consistent; and they may not support overriding block properties on the <html> element at all. Or maybe they do now, but that certainly wasn't cross-browser-friendly until very recently.
I'm fine with the SF-86 once every 10 years. It's moving to DC Metro that's the deal-breaker.

And even if I were okay with both things, I'd rather fill out the SF-86 to get a real clearance, and work for one of the military-industrial-congressional complex "Beltway Baron" companies for higher pay, more job openings, and no 4-year term limit.
A Powerpoint presentation outlining technical details including the 60 or so Google features removed/or changed. https://onedrive.live.com/view.aspx?resid=40AD2A59FD334E8C!4... (enable speaker notes for aditional details)
Bloody hell, I've been trying to find for this for ages. I knew there was _something_ I'd read that gave a great step by step overview that I knew at the time would be helpful whilst teach beginners, but I couldn't remember what it was called or who wrote it, and it's nearly impossible to search for when the details of it were sketchy ("step by step web design tutorial"??). Just want to say thank you for writing this (and thank you to OP for posting the link)
The problem isn't capacity. It's voltage. Old batteries are sometimes no longer able to provide adequate voltage at peak loads, leading to phones turning off when running on low battery (but before it's actually empty enough for it to turn off in normal circumstances). Until now I've assumed that this generally affects all li-ion batteries over time, but I'm honestly not sure why this issue hasn't cropped up in the Android camp in the same way. Maybe the only reason it became such a big deal was how Apple decided to fix the problem (silently throttling performance).
I wrote a tool that scans all the new commits to our Org for passwords/secrets.

Webhook > AWS API Gateway > Lambda

The Lambda uses the new(ish) Layers feature so it can use Git. I then use the truffleHog[0] library to scan for entropy/regexes inside the commit.

If something is detected, it posts to an SNS topic, which is currently subscribed to by another Lambda that posts an alert to my team and the Security team's Slack channel.

It then calls the GitHub API to make the repo private to limit the exposure.

[0] - https://github.com/dxa4481/truffleHog
The power supply on my TV died after about 5 years, but since it was an external brick it was trivial to cut the connector off and toss it on an old Dell laptop power supply (the TV wanted 20v, the Dell supply gave 19.5v, but it seems to work fine). I see now that official replacement power supplies are also available on Amazon for $16 if you don't want to hack together a replacement.
Sadly, I don't. This breaks a few sites terribly, as I end up with random characters instead of whatever the "awesome" icon was supposed to be. Usually it's obvious enough from context what the icon should have been, and it just looks ugly.
even worse.
In my opinion em would be more predictable. With the current configuration, users of this package would only be able to adjust the font size by setting font-size on the html element, but not on the body element or any container elements of the main element, or even the main element itself. That is pretty confusing to me, I think it is a pretty typical expectation that making the font size of a container bigger or smaller should always make everything inside proportionately bigger or smaller.
I read dentists. ..
Not on my version of Google. But for me it started showing this as top result:

https://duckduckgo.com/?q=%22the+java+way%22+paste...
No information is available for this page.
Learn why

I tested this on different browsers and IPs. Seems like it indexed the link from this thread, but can't display it because of DDG's robots.txt settings or something like that.

Bizarre.
They cancelled Google Health before. Used to be a favorite of mine.

https://techcrunch.com/2011/06/24/google-shuts-down-medical-...
If whatsapp could grow by asking users for one dollar, couldn't the same be achieved in the search engine space ? A dollar a month or a year to get my private bubble search ? Or are the costs to run a search engine too high and the ad industry is necessary to keep it afloat ?
Are you suggesting your phone recorded you and your coworkers and then suggested ads based on that?

Maybe I'm not paranoid enough, but I find that.. improbable? Not out of the question, I guess, but still pretty improbable.

Maybe you could run some experiments and try and disprove the null hypothesis?
Freedom of expression.
They did exist before the internet. But could they reach the masses for so little out of pocket? Could they reach as many so easily?

Edit: To a degree, yes. Infomercials were wildly successful. But were there other ways?
I use youtube for one esports channel, ever - I want the live streams when the events are on live. They can't figure this out. It never ever pops up when its live, I have to manually search for it. I wish I knew why exactly that was - either they know what I want to watch, but that I don't watch other things so they recommend other things in the hopes that I become a more regular user, or they flat out have no idea how to profile people except expressed interests from outside sources (which I think is the most likely option). It seems incredibly uncanny one moment and then dumb as a rock the next.
Yep. Notice how everyone immediately recognizes the insidious, long-term dangers when Walmart forces suppliers to sell at barely above production costs: it forces them to cut costs in hard-to-see ways, produce shoddy versions for Walmart, be less likely to bring products on the market to begin with, etc etc etc.

But when governments do it to pharmaceuticals, that's totally harmless and has zero downsides beyond reducing some rich guy's mega-profits somewhere.
Your website is the first I've heard of "Information Foraging" as a field of study. Absolutely fascinating. Any recommendations on where I might dive into the topic?
Agreed. Many startups just need time to get going. Not all startups can achieve 8% weekly growth rates in the first 2 years.
Does Libre Office allow for simultaneous collaborative editing by multiple users and seamless passing of current version by passing a URL around? Does it require correct set up and maintenance of a Linux installation (which has gotten a lot simpler in the past 20-odd-years, but still requires more than its fair share of technical expertise), or can it be used by anyone with a web browser, regardless of operating system or installed software configuration (save, of course, the web browser)?

If not, it's definitely an option but I'd generally anticipate it'll lose out in userbase to the alternative that has those features.
Structuring iOS Code for A/B Testing
This might help: https://blg.com/en/News-And-Publications/Publication_4539
> I suspect the problem is that most customers just don't care.

IMO the reason is they (perfectly rationally) realised after spending several million building an authorised bank that APIs are a pure downside scenario for them, i.e. intermediation risk. Why spend so much money to stand up a de novo bank and let everyone else capture the value? 99% of the value is top of stack. This is why no market in the world has provided 1st party banking APIs for retail products. It's taken regulators to do so in Europe and the results of that (predictably) fell short of what everybody had hoped. No criticism of Monzo for this. Based on their incentives this was the rational course of action.
Diamonds in Botswana, Copper in Chile, farmable land in the US, etc.

The point is that Norway has managed it's natural advantages to the benefit all of their citizens compared to other countries whose resources primarily enrich individual companies/owners.
I don't get why this wasn't done for the Edge V1 rather than making a whole new browser. I felt like this was the clear choice back then.
How would you fit 50-70 characters on 375px wide lines?
What’s so good about DDG? I’ve used it a few times but i still don’t get the appeal to it
It would require it being built into the IC itself, and no ICs except ones intelligence agencies have access to are going to offer this feature, because it has no other real purpose than evading NLJDs
Sans is overused. Please do not use (or carefully consider before using) sans fonts for long blocks of text you expect people to read.[1]

[1] https://www.youtube.com/watch?v=soYKFWqVVzg#t=34m53s

"I disagree, I like sans [for long prose] better" comments miss the point; this is not an anecdata competition, it's about how many people prefer each one (and also it would be worth considering how strongly they hold that preference, since mildly pissing off even a slight majority of your readers/customers is better than really pissing off a smaller percentage). Even if you're skeptical of the studies Mayer looked at, Google (literata) and Amazon (bookerly) seem to be in the serif camp. Do you think Amazon made a mistake, too?
It needs to be directly available without an email signup.
On the other hand, the Internet makes so many people aware of scams so there is less chance of any particular target falling for it. Of course, some people get so over sensitized to scams that they filter out all legitimate items to thinking it may be a scam.
> 1,750-square-foot, three-bedroom

Who the hell thinks having a 1750sqft home inside a city is “being middle class”
I am pretty sure regulators in Europe do not use the same drug approval process that was used in the 1960s. For example:

>...The Mutual Recognition Agreement (MRA) between FDA and European Union allows drug inspectors to rely upon information from drug inspections conducted within each other’s borders.

https://www.fda.gov/internationalprograms/agreements/ucm5987...

Approving new drugs without adequate testing will cost lives, being over cautious can also cost lives though. An example of that was the FDA refusing to allow beta-blockers:

>...For example, consider FDA’s incredibly long delay in
approving beta-blockers to reduce the risk of second heart
attacks. By the mid-1970s this had been documented in clinical
trials, and a number of beta-blockers were approved for this
use in Europe. But in the U.S., FDA imposed a moratorium on
beta-blocker approvals due to the drugs’ carcinogenicity in
animals. ... Finally, in 1981 FDA approved the first such drug, boasting
that it might save up to 17,000 lives per year. That meant, of
course, that as many as 100,000 people may have died waiting
for FDA to act —an explosive point, but one that very few
journalists pursued

http://www.jpands.org/vol15no4/kazman.pdf
Thanks! This is great info; I appreciate it.
It's more plausible that someone who was on the same WiFi (or at the same location) was searching for Roadhouse.
IP Fragmentation Is Broken
Japanese space agency developing autonomous machines to build lunar base
That's a pretty disgusting video description...
One of the things I hate most about electrolytic caps is the failure mode that drips corrosive liquid over your PCB. Not only does it fail, it makes sure to take the rest of the board with it.
Well I, like everybody, use the internet which mostly runs on Linux. But that wasn’t my point. Open Source probably hasn’t made things any worse, but the ideological battle was waged at the wrong end, resulting in a hollow victory.

Tell some open source advocate from 2001 or so that most people do most of their computing on Linux in 2019, and I think they’ll picture something quite different to what we have in Android and the cloud.
sometimes people use .env files, and then share them with other developers using a publicly accessible paste service like gist (I'm not kidding)
That was one of the rather unexploited features of the Amazon Fire Phone, which I loved for that very reason. Unfortunately, it didn't see much use, but you could take pictures that could capture depth (created by rotation) and it was so cool.
> But these huge costs of, say, video calls, are borne by the families of the incarcerated, who, like the prisoners that they're supporting, skew poor.

Video-only options are inhumane, but the family gets screwed either way.

Prisons are built way out in the country and not easily accessible. These same poor families can end up commuting for four hours, burning through a tank of gas and hours of their time just to see a loved one for 30 minutes.

It takes its toll on them and eventually they stop coming to see you anyway. Video should have solved that problem as an alternative but of course, human nature being what it is...
Check with SVB or Lighter Capital?
Question related to this:

I'm applying to jobs in data science (straight outta grad school), and I'm not really sure how to market myself. The problem I keep running up against is that data science is such a broad term that it's hard for me to express how I can provide value to a company without speaking in empty generalities. From my reading of job postings, it seems as though what's called "data science" at one company is "software engineer" at another and "machine learning developer" at a third. How do working data scientists view their role within a company, especially how do their differentiate their purpose from the tools they use?
> After about the hundredth machine, I never wanted to seat a processor again. This was back when processors had hundreds of fragile pins too!

They still have hundreds of fragile pins. I just bent a few on an AMD Ryzen 7 that got popped out of its socket due to too weak a socket clamp while removing the fan.

You know the saying - ‘The future is already here, it’s just unevenly distributed.’ Turns out, it applies to the past, too.
Getting Started with Angular PWAs – Part 1
I doubt it. Firefox has had a few privacy scandals of their own, but as long as they are marginally better than Google, they'll keep having a fervent user base.
Here is also a Nature paper about using synchronization phenomena in coupled solid state spintronic nano-oscillators to achieve vowel recognition:

https://www.nature.com/articles/s41586-018-0632-y

Arxiv PDF:
https://arxiv.org/ftp/arxiv/papers/1711/1711.02704.pdf
The second type usually uses a BTL (buy to let) mortgage, which can be interest-only and feasible where an occupier's mortgage wouldn't be. The UK government has successfully made these considerably less appealing, such as cutting tax relief on BTL mortgage payments. The housing was released into the better parts of the housing market.
1) WhatsApp didn't make too much revenue out of those 1 dollars. Most people never paid.

2) If you're willing to pay a dollar per month for search then you are much more valuable to advertisers than most people, so 1 dollar won't be enough.
They record searches. They do not offer personalized ads that track users interest and sell ads.

Depending on what you are hiding. If you want to hide that anyone searched for a term, no. If you want to hide that you searched for a term, yes.
Microsoft reveals all the Google things it removed in its Chromium Edge browser
Dreams Detoured: Struggle after the recession in Greater Cincinnati
Minecraft.

Ok admittedly, this was 10 years ago and 4chan was a much different place (as was the internet at large). I was younger and spent a lot of (read: too much) time on 4chan back then.

At the very beginning of Minecraft, before it was even a thing, Notch would post on /v/ about it almost daily - incorporating changes/suggestions/criticisms people would fling at him anonymously and randomly. No one thought it would be huge - it was just fun. And Notch was so receptive.

I can't help but think his current Alt-Right views may have been influenced by his exposure to 4chan, but in those days it wasn't as crazy as it is now.

I have a 4 year old daughter now who LOVES Minecraft. And personally, it's been valuable to me, and I am utterly convinced that had Minecraft not been developed in its earliest days on 4chan, it might not have gotten to where it is today.

*Small shoutout also to Katawa Shojo - also made with lots of input from 4chan, which turned out to be quite a compleling VN game.

What has 4chan done lately that is valuable? That I couldn't tell you.
No, you're not. The times are just circling back around to form over function again.

Since we keep revisiting this, you might say that you're ahead of the times.
> You can't have prisons run by for-profit companies

Prison officials and guards have financial incentive in keeping the imprisoning people business booming even when they work in public prisons.
None of that sounds like coincidence to me. Google detected activity on some topics around you (I'm guessing your coworkers searched Roadhouse, and I know Plex has Analytics), and decided you might be interested too.
It's not unjustified, and even if it was, a belief can still be true or false.

Again, I urge you to read about epistemological knowledge. Basic philosophy concept that will educate you.
> This is how it works: someone working at facebook is taking bribes in exchange for the blue mark, a middle man will take your money (anywhere between $1000 and $15000 dollars, depending on your stupidity) and the friend at fb will submit an application for you to be verified. Hopefully it will be approved.

This is interesting if true
Meteorologists Compare to Other Professions That Predict the Future
Unfortunately google is the only way to search old usenet archives from the web, since they bought out such archives. That search leaves much to be desired.

Only the relevance search has results for usenet posts, you can't order by date, and other then using date ranges, there's no way to only see usenet posts.

For example searching for "gamer" before 1/1/2000:

relevance https://groups.google.com/forum/#!search/%22gamer%22$20befor...

date https://groups.google.com/forum/#!search/%22gamer%22$20befor...
I'm definitely going to steal your website design (please don't sue me). But I don't like sans-serif fonts. What serif fonts do you recommend to use instead?
Somehow I feel better for my bad English pronunciation, because even when I purposely try, I am unable to make Siri, Alexa, Google Assistant, or Cortana listen to what I am actually asking them about. This morning, for example, I tried to search “How to make pickles?” and ended up with “owls, too, may tickle” :-|
This essay spends a bit of time trying to figure out whether we should discuss how "harmful" video games are vs. "how virtuous" they make us. The "opportunity cost" approach my parents had seems much more effective to me--"alright, you need to turn that off now. There are so many other interesting things you could be doing right now."
That may be your point, which is fine, but the original comment I was replying to was comparing the tax rate of Norway and Australia, and I was arguing this is not a sensible comparison in light of the much larger natural resource inheritance of Norway.
That's what you propose sounds like a really good idea. One concern though: it seems that many people (not all of them) who end up in prison are not really a good people. Maybe for some of them education, psychological help, etc. would indeed help, however there could be a certain and not negligible percentage of people who will not take advantage of those opportunities and prefer to be criminals. No private company would decide to risk its income for a potentially bad bet. Recidivism rates in the US are high - from 45 to 80 percent (depending on various factors). Even if this was cut to best of the World Swedish 40% recidivism rate, this still will not be economically viable.
I thought it also made the solder slightly more malleable, so a flex in the board would be less likely to crack the joint. I understand that the nVidia problems were due to using such a large BGA that the thermal expansion of the chip was enough to crack the lead-free soldier after a number of cycles. With the old leaded solder you could get away with it, but the new stuff wasn't properly lifecycle tested before being integrated into the production lines.
Quite honestly, most things that receivers call "push polls" are not push polls. They are honest attempts to figure out which lines of attack will resonate better with the public at large. So you try several different attacks on a relatively small sample, see what makes people respond most strongly, and then scale up the attacks with paid media, speeches etc. Yes, most of these will have to inform people of the bad stuff you are going to be attacking over, but that's because if the general public was widely aware of the attack, you wouldn't need to mention it- or at least not to pay pollsters to figure out if it is a good attack.

The hallmarks of a push poll are that it makes no attempt to gauge your response level, and that it tries to call far more people than a statistical survey would need to do. The most famous case, in recent US history, would have to be "John McCain's illegitimate Black baby" (https://www.vanityfair.com/news/2004/11/mccain200411)
The no tracking policy, and the large amount of built-in features (such as bang-searches). They also don't make life hard for Tor users with endless captcha (there's even an onion service for DDG).
Previous discussion with good advice here: https://news.ycombinator.com/item?id=17654487
Chromium-based Edge preview builds