skysight-inc/HackerNews huggingface dataset:
I never understood the claim that smart switches on LED lightbulbs will conserve energy. The duty cycle of the average light bulb is fairly low; I would guess they are switched on for <10% of the time, on average.

If so, adding a ‘smart switch’ that uses 0.5W to a lighting fixture that has a 10W LED light bulb increases its average power usage by about 50%. You must be fairly sloppy to make that a gain, compared to a manually operated switch.
I don't like giving you a vague answer to this but math is truly vast so it depends a lot on what you're doing. Tell me more and I could give you more suggestions.

In my particular case, I started with Linear Algebra and that led me to some Applied Geometry and now I'm reading some (basic) things about Topology as well. I've also read a lot about Category Theory, in part thanks to HN as it keeps surfacing here often.
Judge grants Amazon bid to pause Microsoft's Pentagon contract work
Not wrong for you. Wrong for the world. There exists other people.
well after a few years I ended up transferring to a local state school that accepts ~60% of applicants (iow, a very different world). I didn't like my state school very much either, but honestly the cs program was a good but more rigorous than the "elite" college I had originally gotten into.

ultimately this stuff doesn't matter as much as you might think. the state school I went to turned out to have good relationships with lots of software companies in the area. I ended up getting an internship that lead to a pretty good gig straight after graduation.
That is more about architecture actually.

Ideally Web/UI component has two sets of styles:
So called "primordial" or "base" - the one that defines layout of sub-components and parts and that is essential for component operation.

And another set is about decoration - colors, fonts, sizes.

For example in Sciter (https://sciter.com) component is defined by so called style sets:

@set nullable-input-base {
:root { flow:horizontal; }
:root > input { display:block; width:*; }
:root > button.clear { display:block; }
}

// concrete nullable-input styling:
// derives from nullable-input-base
@set nullable-input < nullable-input-base {
:root { background-color: var(inputback) }
:root > button.clear {
width:2em;
background: url(x-cross.svg) 50% 50% no-repeat;
}
}

And in script:

class NullableInput : Reactor.Component {
const styleset = ["nullable-input", url("widgets.css") ];

function render() {
return <widget.nullable-input>
<input|text />
<button.clear />
</widget>;
}

}

This way you can redefine nullable-input in the way you want without putting any styles into code.
no, they don't. anyone who took more than 30s to read further than the headlines would see that this is an example of a set of checks for users of TAILS and points out that extremists often use this. its pretty obvious they don't consider linux journal in its own a sign of extremism.

these would be refined to be more useful and then used together to check for TAILS_terms in a user's emails and they are also accessing TAILS_websites and then in conjunction with other flags to find POIs.
How Unity demo dissolving reality into pixels was made
Virus in the product key? That's something incredible.
>I absolutely understand what you're saying. But part of me feels an obligation to be informed to hold those in power accountable.

So, how does that work out for you?
I finished the survey and clicked "get my personal results" - email is required to receive the results, but you can "Join" without providing an email.
You seem like you have a bee in your bonnet. Have you spent or worked much in Ireland? You seem to be an expert on both our use of our national second language and what working in the country is like. Or are you you just firing randomly on HN today because you aren't willing to engage with the other points that I made? (I agreed about companies coming to Ireland for tax but staying for other reasons remember)
>>Citation Needed (Everyone Thought) [0][1][2]

Oracle certainly thought Amazon was the front runner, unfairly so, to the point that they began a lawsuit prior to all this current mess.

>>Citation Needed (Trump Got involved) [3][4]

When the President expresses a desire to "screw" over a potential vendor, that's getting involved.

[0] https://apnews.com/3f36de42be3d45b7bee0d2c5febd2557

[1] https://www.bizjournals.com/sanjose/news/2019/04/11/oracle-p...

[2] https://www.businessinsider.com/heres-why-amazon-is-heavily-...

[3]https://www.cnbc.com/2019/12/09/amazon-blames-trump-for-losi...

[4] https://www.fiercetelecom.com/telecom/trump-mulls-stepping-i...
I'm a self-diagnosed completionist and I hate the infinite scroll so much that I developed a mental habit that helps me work around it. When I visit a site with infinite scroll (e.g. YouTube or new Reddit) I immediately scroll down until the first loading spinner (e.g. by pressing the End key). At this point I stop and go back up processing the items in reverse order. This might sound silly, but it gives me a sense of completion and a natural exit point once I get back to the beginning.
> The DoJ alleges that Huawei and a number of its affiliates used confidential agreements with American companies over the past two decades to access the trade secrets of those companies, only to then misappropriate that intellectual property and use it to fund Huawei’s business.

These American companies thought they could build their products for a fraction of the price in China and increase margins. They didn't stop to consider that by teaching China how to build their products they were creating a new low-cost competitor. And they've since lost their manufacturing ability. Oops.

It's hard to feel too sorry for these companies. It's not exactly a secret that this is how China operates and has operated for a very long time.
>there's no good way to recreate the space described in the article without keeping most people out.

I have to disagree. You don't have to keep them out, you just have to provide an option to mark and filter them.

Then, it's possible to see the full spectrum of comments and interact with everybody. However, if discussions become too big, the filters can be used to remove the noise.

Creating such a system will be brutally eye-opening for some people but it will inevitably come. The minimum viable product will be the Chinese social graph. If China plays its cards right, they have the tool to overcome Eternal September.
I lived in the West Midlands... Let's just say CS/IT knowledge is severely lacking. On the other hand, if you're fine with a rather low wage (but more than enough to live comfortably) and being treated as unimportant all the time, there's plenty of work around.
Would you rather have hundreds of billions of dollars going into the military-industrial complex than going to healthcare and education? You didn't bring up any concerns about how Trump would pay for his military budget. Bernie has already laid out his plan for an extreme wealth tax, which would raise $4 trillion over the next decade, more than enough to pay for his proposals (and wouldn't raise taxes on anyone with a net worth of less than $32M)
Am I the only one surprised for seeing them mention Discord instead of IRC?
I can see that. Although I admit I don't especially associate Oklahoma with Navajo and other Native American art to the degree I do New Mexico and Arizona in particular.
Well since you're drawing out my personal politics: I agree, personally. I'm also among a population his team have indicated are unwelcome, but I'm trying to give some amount of respect to the justice system even if I feel he doesn't.

Now with that aside, please keep the absolutist politics off of Hackernews. It's the last good sanctuary we have from what the rest of the internet has devolved into. There are plenty of people drawn into the administration's orbit who still have good ideas about product development which I'd like to learn.
Right? It's so cool!
A valid point. But I think that occasional (perhaps regularly scheduled) and mindful checks of select, thoughtful news sources that aren't overly focused on driving engagement with clickbait topics, article titles, etc allows you to stay sufficiently informed without succumbing to the stress-storm that is most news media. Think big picture, often long-form reporting vs. a heavy reliance on "breaking news", opinion pieces, and lifestyle-focused content.

(Some sources I like: PBS Newshour, ProPublica, the Economist, the Financial Times, the New York Review of Books.)
It's also the only US state flag to contain neither the colors blue nor white.

I've always had a tremendous fondness for the flag, in part because of the cultural homage included by the Zia sun symbol, and as you mentioned: It's instantly recognizable, easy to replicate by hand, and has a stark beauty not unlike the deserts in this state.
Problem is these days the news tends to be more narrative than plain news.

Even things that weren’t typically political or politicized these days they are.
why not a gitea or gitlab instance running on a few pi's or something? Why pay anything at all?
Yesod[1]. In part, that's because Haskell in general is really easy to read. The type-system provides a lot of information about what's going on or what can go on at any given point in the code.

I've read both parts of Rails and Yesod. The problem with Rails is that a lot of the code is dynamically generated. The lack of static type information means I have to investigate in run-time with binding.pry to see what kind of data is flowing through a function at any given moment. Rails also employs a lot of magic that results in weird, inconsistent corner cases.

My methodology for Rails is to find a method involved in what I'm investigating and insert binding.pry statements where-ever I'd be curious about what kind of data is flowing or effects are happening. Then do the action that I'm investigating, check the context where I put the binding.pry statement, and insert more such statements. Rinse and repeat.

My methodology for Yesod is to go to the documentation pages like this one[2], and click around the hyperlinks to functions and types. That's normally enough to know how the data is flowing and being affected. If I need to look further, I'd hit the source link and read it. The type information always provides enough info that I don't need to try to investigate in run-time.

[1] https://www.yesodweb.com/

[2] https://www.stackage.org/haddock/lts-14.25/yesod-core-1.6.17...
Pretty sure parent comment is irony.

Also, yes, "that makes the US bad".
Is there anywhere with an in-depth overview of what this does? Does it just fail DNS request and block known IPs? How are the lists maintained and updated? With TLS and it surely not mitm-ing connections, that's all it can do correct?
You can look at their voting record, or who they take money from. There a number of "non-news" websites that have this information.
A few weeks rest!? You certainly might need that, but it ain't burnout—and yes I'll gatekeep it, because burnout is a different degree. I genuinely hope it doesn't happen for you, and getting out while you're happy is probably a great way to mitigate, but it's risky. One of the things about burnout that is so deceiving, is that combination of feeling great about it and sacrificing so much personally or investing too much personally, then you get hit hard when your expectations stop aligning. Could be anything, like you thought based on your work that you were way more valued, then someone new comes in and fires you or changes direction and all of a sudden the last two years are tossed in the garbage. That 3 weeks you would have spent relaxing turns into 2 years spent figuring out wth you were thinking and what to do next.
But a build process ensures you can use imported dependencies internally AND use them with zero dependencies on your page (other than the JS component definition itself). Even if you don't have a build process and just use ES6 modules, the Web Component manages its own dependencies such that you don't have to worry about it (the only friction there being if folks use bare import modules). Whereas with React components, you'll always be dependent on a React runtime.
Both are scarce and easy to pass on.
I agree it is a nice perk. But I can't say it is anywhere close to "orders of magnitude" better. It was nice to not have to dig out a credit card for each purchase. But that is pretty minimal friction. And possibly welcome friction for those not on an unlimited budget.
Any lawyer that can pitch in? I don't think that this fits the spirit of the RICO laws.
Works in Firefox 73. To enable it add "browser.ssb.enabled" preference with boolean value of true. Restart Firefox and in "Page actions" (three dots in URL bar) new menu item "Launch Site Specific Browser" will appear.

Nice to see PWA support finally (though slowly) coming to Firefox.
Better than you might think looking at the title. (e.g. it has nothing to do with the "Intellectual Dark Web")
Yeah, I totally agree. I quit this past May except for the occasional half hour to hour news/comedy show every week or less. In over half a year, I haven't missed anything important. If something is truly important, it'll filter through and I will look it up specifically. If not, even if it is center stage and historical news, it's really irrelevant. It speaks wonders to the helplessness and hopelessness in this country, however. There is little any one of us can do to change anything. So I stopped trying and hoping and I am less depressed, less angry, and more into my own life and doing things that I enjoy. I'm still just as helpless as before. No change there. Also, one doesn't need to go cold turkey. Reading the news once a week or even once a month would be plenty. Few news stories move fast enough that they require daily or even weekly attention. None affect my life, really.
They used to cut coins in halfs, fourths, and maybe smaller to get lower denominations.
It's simple enough to enter in "Noneya Business, Inc" for the company field.
Have you seen how dank the memes are? Clearly if that's not proof of illicit activity of the most odious, I don't know what is.
Incredible! I have to give credit to the author for linking to their sources. The idea that Tor Hidden Services are failed technology is juxtaposed by the arguments put forward in this article. "Bad technology" from the authors viewpoint would be more accurate.

The premise and conclusion of this argument that Tor Hidden Services are a net negative and we should develop an alternative technology for anonymity is laughably naive. There is no way to preserve the good and block the bad without compromising the good(at a tech level).

It is a moot point even if there was. The cat is already out of the bag.
Perhaps, but there are usually people in positions of power that care and for better or worse probably have more influence than the general electorate.
Here's how I solve this problem: I subscribe to the Sunday print edition [0] of the Boston Globe [1]. It comes on Sunday and I read it over coffee.

There's no practical reason to be informed beyond what's in your city's Sunday print edition. Anything more than that is entertainment.

[0] It occurs to me that city dailies are so out of fashion that some of you might not understand why I recommend the Sunday edition. The Sunday edition is the largest edition of the week and repeats stories that appeared on other days. It also includes some features and sections that are not included on any other day. If you only get one day, you want Sunday.

[1] This could be any big-city paper (e.g. The Washington Post, The New York Times, The Boston Globe). It doesn't matter.
Not the severely underfunded West Midlands police.
ITT lots of people justifying using Facebook.
The problem of saving power with small household devices is similar to the problem with micro-transactions. The overhead of connecting devices into a smart system is far greater than the recovered cost in terms of both money and energy. A smart switch can easily run to $100 to purchase and install and $10 a year to run. So it needs to save you ~$20 a year to be worthwhile. For large appliances that are regularly used such as swimming pool pumps, air conditioners, scooter or car chargers then it can be worthwhile.

I'd like to see smart blinds and curtains become more popular as windows can act like a giant highly efficient solar panel heating your home up when the conditions are right. Sadly again the cost of setting up and maintaining such a system could be ~$100 a year so only certain buildings would actually see a return on investment.
in a lot of cases the low-cost competitors are not only lower cost but have more features and/or better performance. They side-step a lot of the planned obsolescence and intentional feature scarcity US companies have become so dependent on to avoid meaningful R&D. Its hard not to see a lot of them as sort of a Robin Hood.

On topic though, Most of the pot-banging from Washington is at the behest of AT&T and other US carrier/handset/chip companies who are rightly livid that Huawei made it to market with 5G before they had a chance to monopolize it.
Sometimes all a competitor needs is to impact competitor schedules to overtake market share.
> adding a ‘smart switch’ that uses 0.5W to a lighting fixture that has a 10W LED light bulb increases its average power usage by about 50%

Shouldn't that be 5%, not 50%?
It seems like this kind of thing is much easier if one has a considered purpose and direction in life, that let one derive joy from making stepwise progress toward those: a vision, strategy, goals, tasks. We all have to choose what we love the most, and implement that in our daily decisions & acdtivities. Whether one is religious or not, I have written about this more, at a simple, I hope skimmable, site: http://lukecall.net/e-9223372036854588981.html .
This applies for all sites though, whereas you want it for specific ones like reddit
Excuse me, but you seem to be reading the news. By gosh, is that.. is that a printing press in your garage there?

Pardon but you'll need to come with us. We need to make sure you aren't publishing the _wrong_ sorts of things. Don't worry, I'm sure this will get sorted out just fine.
> prevent bit-rot

What I do is regularly copy my files forward onto newer media. I started this back in the 1970s, and it is the only reason I still have a copy of the FORTRAN-10 source code of Empire:

https://github.com/DigitalMars/Empire-for-PDP-10

All the other stuff I wrote at the time is lost because I stored it on a magtape, and the Caltech magtape drive had drifted so far out of spec the tapes could only be read on that machine which was lost.

I managed to preserve that by copying it over a serial line to a PDP-11 and storing it on a PDP-11 floppy. I later was able to save my 11 code by copying it over a much later serial line to an IBM PC, to put on 5.25 disks. As time went by, the files migrated to zip drives, then CD-ROMs, then a long sequence of hard drives (my older hard drives can't be read with modern IDE interfaces, even if the connector fits, I have no idea why).

I remember reading boxes of 5.25 floppies and burning them onto CD-ROMs, a long and tedious process. But now, nothing will read 5.25 floppies any more, but copying a year old hard drive to a new one is a simple process, especially since the new drives are usually much larger than the older ones.

Hence I have most of the stuff I worked on since the early 1980s. The old Zortech bulletin board stuff is gone, though, even though I still have the hard drive for it. Nothing can read that old drive. Not that there's anything particularly interesting on it, but I enjoyed running the BBS for many years.
Unfortunately I can't quit Facebook because it's the only way to know people from the other sex. I tried Tinder for a couple of months and it didn't work for me. My assumption is that people feel safer to interact with you if you have friends in common.
That's said, I don't use Facebook that often, if I start talking with someone and we enjoy each other company, I kindly ask if we can use WhatsApp and if so, I will stop using Facebook for a period of time.
If you can't afford to start paying after 2 years, it's time to give up or pivot. This is very generous of MS/GH to offer until you've got traction.
There is no evidence that he actually did this. People have speculated that he might have and he clearly doesn't like Bezos, but that is not proof.
I imagine that you could run a tab with your local grocer and settle up for full pennies later.
When I first read about SpaceX's plan to launch up to 42,000 satellites, I actually wondered if we'd end up with a night sky filled with artificial objects. Then I looked at the size of the earth: 197,000,000 square miles. Which is basically one satellite for 4,690 square miles. And that's at ground level. Add in more distance for low earth orbit height, and it becomes even bigger. The cubic space between two of these objects (which I'm not sure where to begin to calculate) must be pretty massive.

The sky is huge. And though it's probable that one thing will hit another up there, it doesn't seem very probable, even if something were to explode into a billion tiny bullet -like projectiles.
and paxos!
I have seen this one go by, which, from the perspective of someone who has been doing regex implementation for 14 years, more or less, is fairly amusing. It seems unfair, as someone aware of potential pitfalls of backtracking would presumably feel obligated to build a automata-based solution; someone aware also of the potential pitfalls of DFAs (failure to determinize quickly on some nasty patterns) might also feel obligated to build a Thompson or Glushkov NFA solution as well.

It's quite possible you might turn someone competent into a gibbering wreck (they are asking me to implement RE2 or Hyperscan in an hour!) :-)
What degree of practical responsibility does a person in Brazil have for something bad happening to someone in Sierra Leone?

Abstaining from frequent infotainment aka "news" does not equate to being ignorant of important things happening in the world, nor does it equate to abdicating responsibility for all the things you can practically influence.
This lawsuit is an effort to get hard evidence. This is just an injunction while they sort out how to go forward and what paperwork/depositions to grant Amazon.
We used to use those Kill-a-Watt probes at work to classify smart home device power draw.

Emphasis on "used to". They are not very accurate at all, and the sampling interval over which they take data on wall power draw is slow enough that you will miss important changes in current draw on your DUT. We have since switched over to expensive, calibrated Agilent power analyzers with better time resolution.

The post is well intentioned, but I challenge his data collection methods. His tools are not up to the task he has set himself to. It is not nearly as simple as the folks who sell Kill-a-Watt's would have you believe.
For some it seems Tom Scott's "Oversight" [0] can't come soon enough.

[0](https://www.youtube.com/watch?v=RIuf1V1FhpY)

Well worth taking ~2 minutes out of your day for if you havent't seen it.