skysight-inc/HackerNews huggingface dataset:
> [ ] is a command—basically another way to call the built-in test command.

Literally, '/usr/bin/[', which takes as an argument a final ']', but actually a different binary than '/usr/bin/test'. And is different from the bash builtin. Crazy shit.

vagrant@vagrant:~$ [ --version
-bash: [: missing `]'
vagrant@vagrant:~$ /usr/bin/[ --version
[ (GNU coreutils) 8.28
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Kevin Braunsdorf and Matthew Bradburn.
Can't remember the last time a "Why" question for email unsubscription wasn't optional.
If only it were big enough.
The problem is that for bash `true` is a function (or builtin) that returns 0, while for C (and thus most languages) any non-zero value (typically 1 for the builtins) is true. In c99 and later with stdbool.h, `true` is almost always defined as `#define true 1`.
I most resonated with the "Objects in a git object tree, graphed by ants."

This felt very real or close to real for me.
>So Iran has arrested an innocent person in order to shift public anger onto them,

Or they mistakenly arrested the wrong person to ensure the cameraman was not filming the missile at the command of an enemy nation. Arresting an innocent person is a necessary evil worldwide, convicting them would be forcing them to take the blame.
Code completion (not auto complete) was always meant for discovery and never to help save on typing, at least in textual environments. The idea of immediately showing you what some symbol can do without using the mouse is very powerful.
How Tesla's battery costs impact its gross margins
Neuro-Linguistic Programming is related to General Semantics, which was developed by Alfred Korzybski. General Semantics isn't bullshit like NLP is, but it does have some useful insights.

For example, General Semantics says that the map is not the territory, which isn't the most absolutely ground-breaking thing in the world but is helpful to keep in mind, whereas Neuro-Linguistic Programming might as well be "NLP: Language is Magic!" for all of the grandiose claims it makes about controlling people using crafted speech.

https://en.wikipedia.org/wiki/General_semantics

GS also came into the SF world:

> During the 1940s, 1950s, and 1960s, general semantics entered the idiom of science fiction. Notable examples include the works of A. E. van Vogt, The World of Null-A and its sequels. [48] General semantics appear also in Robert A. Heinlein's work, especially Gulf. [49] Bernard Wolfe drew on general semantics in his 1952 science fiction novel Limbo. [50] Frank Herbert's novels Dune[51] and Whipping Star [52] are also indebted to general semantics. The ideas of general semantics became a sufficiently important part of the shared intellectual toolkit of genre science fiction to merit parody by Damon Knight and others; they have since shown a tendency to reappear in the work of more recent writers such as Samuel R. Delany, Suzette Haden Elgin and Robert Anton Wilson. In 2008, John Wright extended van Vogt's Null-A series with Null-A Continuum. William Burroughs references Korzybski's time binding principle in his essay The Electronic Revolution, and elsewhere.
The models are all legally adults so why would the producers need their parent's full names?
I wasn't even talking about the hardware, that's a separate story. Apple's old hardware also looks and feels wonderful.
Maybe these women shouldn't be putting up their bodies for sale like that for other men to watch and exploit. Perhaps this is feminism at work.
The price wasn't my primary concern; I got the APU because I wanted a system that's as close to fully open as you can get. Any x86 machine with decent NICs should work, however.

The non-x86 alternatives I don't have much experience in save for an Ubiquiti EdgeRouter Lite, which works fine, but is a bit of a pain to operate because there's no syspatch support.

If you just want a secure router at a low price, OpenWRT on a well-supported platform probably gets closest to that; I have an old TP-Link router in the closet somewhere that's over 10 years old now and could still run the latest version of OpenWRT.
The speed of light sucks.
It will be very interesting to see how China will react to this. Will they use the Tesla investment in the country to "convince" Musk to disable the signal when the satellites are over China? Or will they simply make the satellite receivers illegal and not care about the few who use them anyways?
I agree! I am not that guy though, since I know enough C to understand I could never contribute anything useful to emacs :D
>people

Which "people"? This is a strawman.

>they get a pass because they’re on the correct side.

You know what, if you read an Addition Table, and memorize that 2+2=4, but you don't know how to reason it out from the base principals, field and ring theory, geometry, etc? Sure you get a pass. The experts have done the math many times, and you can trust them.

If you want to tell me 2+2=5 because you found an table from an Addition Denier online? Then yeah, you're going to be ridiculed.
Job 1 was government related and very slow pace

Job 2 was for more money

Job 3 was because I didn't like the company (ended up going back to Job 2 with a big raise after 6 months)

Job 4 (same company as Job 2) because I wanted to change industries and live abroad

Job 5 was because of pay and startup having a bad financial moment

Job 6 was for a better offer, same industry and similar role. Worth noting that job 6 had promised me a raise that never happened. Likely if it wasn't for feeling lied to I would still be there.

Job 7 is current job and really happy about everything ! Not even open to conversations with other companies. I could likely double my salary in a FAANG if it was what I wanted.
Here's a reliable/portable solution:

bool double_to_uint64 (double x, uint64_t *out)
{
double y = trunc(x);
if (y >= 0.0 && y < ldexp(1.0, 64)) {
*out = y;
return true;
} else {
return false;
}
}

If you need different rounding behavior, just change trunc() to round(), floor() or ceil(). Note that it is important that the result is produced by converting the rounded double (y) to an integer type, not the original value (x).

Explanation:

- we first round the value to an integer (but still a floating point value),

- we then check that this integer is in the valid range of the target integer type by comparing it with exact integer values (0 and 2^N),

- if the check passes, then converting this integer to the target integer type is safe, and if the check fails, then conversion is not possible.

Of course if you literally need to convert to "long" you have a problem because the width of "long" is not known, but that is a rather different concern. I argue types with unknown width like "long" should almost never be used anyway.

(based on my answer here: https://stackoverflow.com/questions/8905246/how-to-check-if-...)
Yep, since I moved to BC I was excited at all of the skiing options but it's just too pricey. Even the local resorts e.g. Cypress.
They were in Iran at the time, and I'm sure Iran would have tried them if allowed.
Are you using gRPC with Go bindings? There is work underway for rules_go in Bazel to expose generated types like your gRPC and Protobuf classes.

You can follow this issue for updates:
https://github.com/bazelbuild/rules_go/issues/512
That works from what I've observed at my company for jobs on a timetable < 6 months, or a shutdown/repair industrial type job.

Once you start getting into 5 phase, 2.5 year long projects it helps having a dedicated PM overseeing every detail and coordinating between the engineer/owners/superintendents.

Heaven forbid you get into a government contract where now you have 10x the paperwork/submittals and RFI's compared to a private job, which it really does help to have one person pretty much memorize the spec book and know where to find everything when needed.
I think there are 2 issues here, and it's making the conversation around it difficult.

First is the impact to "professional astronomers", and from what I've seen this group won't be impacted nearly as much as the other. This group has the ability to use satellite based telescopes, or has the tech already to be able to filter/post-process the images to remove satellites, planes, meteor showers, and any other stuff that might get in the way.

Then you have "amateur astronomers", this groups is likely to be impacted by starlink. This group doesn't have access to the digital filtering stuff that the "big guys" do, from what i've seen, most of the people in this group just use normal long-exposure setups and adding in a processing step would mean a pretty significant change to their process, and probably a lot of additional costs.

Even still, the impact to amateur astronomers seems limited to when the sats are in sunlight, which traditionally isn't a super popular time for stargazing (although I may be wildly wrong on this, as I've read that these sats are removing up to 1/3 of the normal viewing time for some astronomers, so don't take this as gospel), and I still think the impacts will be a lot less doom and gloom than some are saying, but I still hope that SpaceX can work with the astronomy community to see if there are solutions or mitigations that can help everyone out.
Ironically, Google Photos does this on iPhone.
On Lisp is an advanced text about Lisp macros, not recommended as an introduction (but highly recommended if you've written Common Lisp).

SICP is great but not really about Lisp.

I recommend Norvig's PAIP [1] or Graham's ANSI Common Lisp [2].

Another book that's often recommended is Practical Common Lisp but I think it's dated and hasn't aged well. It's also nowhere near as mind expanding as PAIP/Graham's books.

[1] https://github.com/norvig/paip-lisp

[2] PDFs can be found on Google

Clojure is not recommended as it is very different to Lisp.

Lisp code needs to be entirely rewritten before it will run on Clojure. That is not true for Common Lisp, Emacs Lisp and even Scheme.
Mainly electromagnetic spectrum allocations.
Try Google Photos.
Off topic, but this vulnerability was discovered by the NSA, right? Then you’re not really in the position to brand the vulnerability, or you come off as trying to take credit where credit isn’t due. (I mean, you have every right to make a website for it, but giving it a logo and say “Why even patch if it doesn’t have a logo?” as if it now has an official logo seems to be taking it a bit far.)

Please excuse me if I got the origin story wrong.

Edit: Also, from the website:

> Who’s behind this?

> Trail of Bits

That could certainly be (mis)interpreted as taking credit for the vulnerability.
That's all great, but it's not really enough. We're past the point of no return for global warming unless we remove carbon dioxide from the atmosphere.

How come Microsoft or Bill Gates don't invest in better CO2 scrubber technology that might make that feasible? Or do they and I just haven't heard of it?

Then again, maybe such a thing could become a "weather weapon".
Interestingly it‘s apparently Windows 10 (and corresponding server) only.
I do the same, you might find givewell.org interesting.
If you're building in a bog, you can maintain stability if you don't try to dig it out nearly as much as you would land. Also taking buoyancy into account.

> I've also read that the forward tilt many houses exhibit was intentional- to make it easier to hoist goods to the upper floors.

I always thought that was just Dutch people being Dutch and getting more floorspace without buying more land. Any of the skyhooks I've seen just extend out above the top floor. I suppose there's more risk of breaking windows if the load swings around as it goes straight up though.
Your Indie game dev team will fail
I feel like this is an obligatory reference: https://www.fastcompany.com/3035734/ikea-is-a-nonprofit-and-...
Is it running in a docker container? Can you copy the suspended state of that container?
Yes, it's even described in the book and used as a clever trick to suggest it's ancient wisdom.
This might be best done using triggers. I've had good experiences with the Hair Trigger gem for managing these in rails.
Yes eventually. At the moment, I'll be the only consumer of this API.
I used a technique very much like this in the past. Here are two potential gotchas using matviews with rails, both related to the inevitable reality that DDLs evolve over time:

- postgres supports concurrently refreshing the contents of existing materialized views but there's no built in way to change the structure of the matview concurrently. Which means any `ALTER MATERIALIZED VIEW` will result in all reads to the view blocking for potentially many minutes or longer, for views over nontrivial data. Adding a column to a table is a cheap and non-blocking migration, but allowing the new column to appear in matviews can require an outage or fancy transactional view name swapping that libraries like scenic don't support.

- a column that is included in a view of any kind cannot change in any way, even ways that are binary-compatible like VARCHAR->TEXT. This comes up surprisingly often and getting around it is annoying.
I rely on prettier (AST based JS+ formatter) in the same way. I intentionally add to little or too much space to get subtle feedback on if there is a syntax error in my (deeply nested) code.
It's a fallacy to think that higher priced items are higher quality: people fall for this all the time. Those high priced jeans and that 20$ fancy pizza might be made of equally bad stuff as a 5$ little ceasers, you won't know unless you investigate.

And, low quality isn't always bad. Even the cheapest t-shirt and jeans in the world can last years if not decades: I know because I have them. I don't need to switch to another product because of "low quality".

Maybe I'm just less susceptible, but I've never thought: "am I enjoying my veggies less because I'm doing it wrong?" due to a sign in the grocery store.

As for milk, people talk about the 100s of milk choices. I don't see that at all. I don't drink cows milk. I see there's only 2 types of soy milk to choose from. And both of them contain added calcium sulfate. I have to go to a specialty store just to get unadulterated soy milk.

And, I simply don't let ads tell me what's pleasurable and what's not.

Now, reminder advertising could theoretically work on me. If there was an ad reminding me to buy certain types of veggies (cucumbers, spinach, broccoli, etc) just as I was running out. But my tastes and interests are so far removed from the average person that 99.99% of the ads are for things I would simply never buy and thus they are ineffective (how often do you see ads on the TV for fresh veggies or fruits or beans? ~ I rarely if ever see one).

Almost Everything people know about dairy is false, I've been saying that for years. The list of lies goes on and on: "Great for your bones", "part of a balanced breakfast", "High in calcium" (it is but your body can't absorb most of it), "good for your health (it's actually strongly linked to prostate cancer)", "Vitamin-D" (vitamin-D isn't even a vitamin, it's a hormone your body can produce all on it's own with exposure to sunlight).

So all those messages from the dairy industry are falling on MY deaf ears. Ads don't tell you about their product (at least not honestly most of the time), they tell you more about the people buying the product.

And, on top of all that, for all the talk of ads being everywhere, i don't get many intrusive ads. I don't have cable or any other paid subscriptions. there's almost no billboards where i live. the books i read don't contain any. hackernews has very few ads, etc.

if advertisers knew anything about me at all, they'd avoid targetting me to save money on useless ad spend. lolz maybe that's why I don't get much ads.
Definitely Microsoft has got some low-hanging fruit. From what I've personally seen:

* Connector buses idle all of the time while waiting for passengers

* Certain cafeterias have gas ovens running 24/7 even if nothing is being cooked

* Dev boxes with huge Xeon chips being left on all night
Want Your Personal Data? Hand over More Please
My favorite

https://www.applearchive.org/1992-feed/whats-on-your-powerbo...
Astronomers do put a screen in front of the sensor to occlude pixels. This is to block the light of natural space objects that get troublesome.
Why Russian and Chinese Military Expenditure Is Much Higher Than Understood
(Manish here) Don't know much about Nebula. Feels quite inspired by Dgraph.
I'm not sure what happened with this submission, it seems to link to itself?

Here is the original submission link https://github.com/peer-base/js-delta-crdts
Show HN: Hip Hop Refactor – famous lyrics as code snippets
Sure! Sign up here: https://t.co/burXhyiuoK?amp=1
This article is talking about removing CO2 from the atmosphere, did you not read it before commenting?

> How come Microsoft or Bill Gates don't invest in better CO2 scrubber technology that might make that feasible? Or do they and I just haven't heard of it?

Bill Gates is doing just that: https://www.theguardian.com/environment/2018/feb/04/carbon-e...
Certainly - you can look at the source for the p5.js port here, which is basically a line-by-line port of the original processing3 simulation: https://github.com/oxling/p5js_ants

The other parts, the rasterization and vectorization, I haven't cleaned up to the point where the source isn't terribly embarrassing! One of the weird things about this project was the code became more of a means to an end than an artifact in itself, so it's littered with a lot of dead experiments, swear words, and so on.
I've love to let you have it, but I'm over 2,000 miles from Toronto.
If everyone does that, nobody is making the things you want to buy with that wealth pile. Not until we also get enough automation to also have UBI.
It's possible with a shutter. Not easy, but feasible.
As suggested by sister comment, consider the content of the well-cited review instead of being blinded by credentials.

>or perhaps the auto-bio is being too modest?

Human beings are perfectly capable of autodidactism.
Military Innovation and Defence Acquisition: Lessons from the F-35 Programme [pdf]
Very interesting! Also a great reminder that AI is just a program that solves a problem in a certain way that may not need the most talked-about techniques, like deep learning.
Correct me if I am wrong, but it seems like firefox (and maybe chrome) would never have this vulnerability as they use their own cryptography libraries for everything.
Ask HN: Payment gateway that accepts pharma / medical?
Glad to know my intuitive revulsion at how fake this type of corporate “charity” seems is borne out by the facts. Something always seems off.

Edit: It seems to me that it’s an amazingly potent form of evil to poison the well of charity so that there’s no air/light/goodwill left for those who would legitimately try to help the unfortunate.
> Thus any approvals would require having a particular condition to get a prescription (or an unethical doctor), and this aren't immediately useful.

That's not how any of this works (US specific to follow). FDA approval to market is a constraint on how the vendor markets a drug or device, not how a physician uses it. This is known as indications for use.

So if I sell a drug approved for blood pressure, I can never say it may improve longevity. If there are papers out there claiming good effects on longevity I as a vendor have to be very careful to never make a public claim about that.

However, if you as a physician have read the papers you can prescribe the drug for other uses based on your personal expertise. This is known as off-label (i.e. for a use not covered by the indications for use), and is very common. There are limits of course, but at the end of the day the limits are based on professional conduct/ malpractice - not the FDA. The FDA explicitly does not regulate the practice of medicine.

Note that this doesn't just apply to somewhat speculative uses. For example a significant amount of pediatric care is done off-label, because setting up the clinical trials for pediatric indications is a pain. This may only be a dose change, for example, but is very common.
Proper sleep, a complete diet, minimizing stress (I'm personally biased towards meditation), intermittent fasting, and vigorous cardiovascular exercise complemented by strength training will by far have the most impact in maximizing your natural lifespan.

You shouldn't look at doing anything else until you've at minimum mastered all of the listed items above. Nothing else will have as much outsized impact.
The test site doesn't specify whether we have to use a specific browser to test the vulnerability? I somehow doubt this affects all desktop browsers IE, Edge, Chrome and Firefox.

https://bad.whosecurve.com/
As long it kills environmentalists and vegans - I'm all in.
I think you're out of touch with pricing or have a very high bar for what you consider acceptable in a hotel. When I was in New York last month I paid $125 for a perfectly pleasant room with good online reviews (in the top 20% or so of NYC hotels on TripAdvisor). It was well located in Manhattan walking distance from most of what I wanted to do and I had no complaints.
Ok, you're right that it depends on what you count as a tree. An aspen "colony" is a living organism, and its "trees" visible aboveground are merely its stems. Such organisms may live as long as 1,000,000 years.
From the article

>Nearly 1 billion consumers currently use the Apple lightning port. Bearing that in mind, replacing a billion chargers in a short space of time would overload the electronic waste sector, defeating the motive of the directive in the first place.

So what we do is take the plunge anyway. Switch to a universal charger or USB type system. Take all the wasted chargers and then force the companies who created this problem in the first place to split the cost of going to the new system based on % of waste came from their brand.

Apple had 1 billion lightning cords thrown away vs say a proprietary charger for Motorola is 100 million. In that scenario Motorola would only be on the hook for slightly less than 10%. Do this with all companies and chargers.

The biggest offenders of people who created waste end up paying the most to fix the problem this way.

On another tangent, I remember when almost every iteration of a phone had a new type of charger it seemed.

You had the wide ones for Motorola, Nokia and whatever else you had, and they ALL were proprietary or you could buy those kits with 10 different adapters/voltage adjustments.

I feel we have come a long way with most devices using USB and there are some companies holding onto old practices (apple). I was surprised when the new Nintendo Switch actually charged off of USB and Nintendo didn't force you to have some proprietary charger.

I would completely love for there to be a universal standard when it comes to charging and stop more waste and everything could use USB.
In many parts of Eastern Europe, one or two generations ago, most households had a horse-drawn cart for the summer, and a horse-drawn sleigh for the winter. People would not have kept both, unless there was plenty of opportunity to use them (at least 3-4 full months a year). Fast forward today, nobody owns a sleigh anymore, there are zero days when there is enough snow for them, plenty of carts still going around.
Well, I still had to manually exclude the kernel every time I wanted to update other packages. It's a minor issue, but an annoying one.
Now all I can see is someone is being choked by a spaghetti of white wires.