skysight-inc/HackerNews huggingface dataset:
I remember this and other tricks are implemented in Gaigen (a code generator for geometric algebra).

https://sourceforge.net/projects/g25/?source=directory

The XOR trick is close to slide 16 of
http://www.science.uva.nl/research/ias/ga/gaigen/files/20020...

...

How to compute the geometric product of
unit orthogonal basis blades (3/3)
If we represent each basis vector with a specific bit in
a binary number (e1 = 001b, e2 = 010b, e3 = 100b),
computing the geometric product of basis blades is
exactly the xor operation on binary numbers!

(e1^e2)(e2^e3) = e1^e3
011b xor 110b = 101b

We have to take care of the signs though:

- basis vectors have to be rearranged into a specific order before
they can annihilate each other (this rearranging causes a sign
change in the result). This can also be computed binary.
- signature of annihilated basis vectors can change the sign as
well.
Author here...Well, I started down the websockets path because of how awesome I found crystal to be. I wasn't intending to do this a few months ago, it just sort of took on a life of its own :)

The framework as I've written takes state into account; in fact it was/is a design goal. There are three types of server objects currently - WebObject, StaticBuffer and DynamicBuffer. A WebObject stays instantiated on the server even when no users on viewing it (at some point it will be garbage collected).

At any time, rendering that object will produce the exact representation as seen by someone who has viewed it and been updated with websockets. In fact, the card game is a good example of this. Start a game, draw a few cards, start another game, and then go back to the first. It'll be in the same state you left it in, complete with the events that occurred while you were gone. This was one of the top goals.

DynamicObjects are just arrays of WebObjects in a configurable buffer - think of a list of sports scores, where each item handles its own update.

StaticObjects are an array of simple strings of html (think of tail to view a log file).
That's something I'm also interested in for my next desktop computer. I've been holding off until Zen comes out to see how they compare with Intel's but I really feel like having this exact setup.

Guess, we'll have to wait until they come out to see how they behave.
Really? I've never read anything on medium approaching the depth and erudition of articles in the LRB, for example. Additionally, organizations like the LRB aren't just about the writing. The selection and editing is hugely important. There may be one or two fantastic articles buried amid the thousands of self-promotional, confessional, and ill-considered pieces of tripe that fill medium, but I don't have the time or the inclination to find them.
Brexit could deny UK access to EU-wide GPS project Galileo
Slashdot manages a balance of it. Why can't HN do the same?

That's essentially one of the reasons I don't post a whole lot here. The 'community guidelines' are a real trainwreck to anyone who has experience running a community. I ran BBSes, half of these 'guidelines' were proven unworkable decades ago.

But then again, engineers are rarely known for hindsight or historical perspective.
The Lego Way of Structuring Rails Code
You don't need to double-negate,

!a != !b

is sufficient.
almost commented the same thing earlier. i was surprised how manual adding multiplayer support was for redux/react.

the solution was still pretty simple, for my app: 1. middleware that sends all actions to a server 2. websocket client that dispatches actions when they receive them. this works, but doesn't actually reconcile or keep data on the server which isn't suitable for most applications.

anyway yeah, i was surprised there was no robust or standard library...
I looked at the Rust documentation's getting started page and it says:

> If you’re using more than one word in your filename, use an underscore: hello_world.rs rather than helloworld.rs.

Is the use of underscores a recommendation or a limitation?
"Being cold" does not have any particular caloric advantage until and unless you are cold enough to shiver. Shivering, as it happens, is a fantastic way to burn calories, and 15 minutes of shivering is equivalent to approximately an hour's worth of exercise.

http://www.livestrong.com/article/317620-how-many-calories-a...
"Reducing the number of available jobs" is a very reasonable statement. How much time do you spend gluing together ready made components? How different is the latest CRUD app you wrote from the first one you wrote? That's definitely something that could be automated, and it doesn't need "machine learning"... It needs investment in building new infrastructure, which almost nobody invests in because it's difficult to make money from that.

On the other hand, automating all of programming is a pipe dream. If you could do that, you could also automate mathematics and by extension most of the sciences...
Just my 2c -- it is a potentially interesting article, but two things have to be fixed:

1. Compile C version with better optimization flags or ask an expert to tweak it for faster performance.

2. Include sample run on some known / meaningful data to test that software runs correctly (not only fast).

IMO rust doesn't have to be faster than C to make a valuable article. If it is as fast or almost as fast it is still a good data point.
As someone who's tried every diet and training regiment under the sun, and never (before or after) being outside of "normal" BMI and of varying levels of athletic (maxing out at 10 push-ups through 30 dead-hang pullups):

On your first point, yes. Most diets work, as long as they fit with your persona and schedule. Anything you feel comfortable with and can stick to. Just by "doing" a diet, you end up being a lot more conscious of what you put in yourself.

When someone asks me for advice, it's mostly the same:

* Write down everything you eat for two weeks, weigh yourself before and after. The initial point was to measure your actual TDEE, but people invaribaly end up eating less and losing weight during those two weeks because they don't want to write down "half a package of Ritz crackers" in their log.

* Take an honest before pic. When you think you've stopped progressing after a few weeks after the initial burst, being able to compare backwards is invaluable as a motivator.

> When you eat less, the body adapts by working more energy efficient. So you eat 10% less, meaning the body can use only 90% of the normal energy supply. It react by using only 85%, storing that extra 5% in case things get worse later on. So the body expects that later on, supply could drop to 70% or much less. Then those stored 5% are really useful.

This is however not anything I'm comfortable believing before I read it from reputable sources. From a strict weight standpoint, I've rarely seen anything that doesn't align to your TDEE mainly differing by your weight and muscle/body ratio, unless chemically induced.

There was a recent study on alcohol in this scenario, but even that mostly indicated the effects on hunger, not on energy expenditure: https://www.ncbi.nlm.nih.gov/pubmedhealth/behindtheheadlines...

While I'd say that the keto diet works, it's not very practical, when accounting for eating in restaurants, socially (other people cooking for you, you cooking for others), etc.

What is your goal? Just losing weight? Being healthier? Body recomposition?

What is your life today? Could you cut out something you indulge in now? Alcohol, snacks, sugar in your drinks? Would you be content in cutting those out?

Do you work out? Could you see yourself doing that a few times a week? What would you enjoy doing? Hard 7 minute work-outs daily? Fun climbing/swimming/rowing/hiking? Lifting in gyms?

TLDR; Whatever diet/routine works is whatever you can stick with. I hate running/endurance training, so HIIT and calisthenics is what I've had most fun with. Would love climbing if I didn't hate heights :)
Okay, that makes sense.

> Cost per passenger per mile is cheaper by rail than by road. It is just much more efficient.

Is this still true if one also considers the infrastructure investments that need to be made, both in terms construction and maintenance?
Essential tips for Firebase users
Oh great.

It's just a matter of time before it floods the Enrichment Center with deadly neurotoxin.
Absolutely. You can also ask about the name pronunciation, etc. This is Japanese small talk.
For this sort of thing, albeit only with a .NET backend, I've always used SignalR to handle these browser/server OS incompatibilities. It'll negotiate a common protocol, whether that be WebSockets, SSE, or falling back to long-polling.
Yes, with exceptions. One exception being the "foregone conclusion doctrine".
Now I know someone is browsing my Youtube history and posting to HN. Youtube really is the math teacher I never had.

Probability Models and Axioms https://www.youtube.com/watch?v=j9WZyLZCBzs

The Exponential Function https://www.youtube.com/watch?v=oo1ZZlvT2LQ&t=100s

Vector Space https://www.youtube.com/watch?v=ozwodzD5bJM&t=36s

Tree cutting fails: https://www.youtube.com/watch?v=JHZkR6UVegY
Have you ever paid for a print magazine that doesn't have ads? They are usually at least $10.

For some reason, I've started receiving a few magazines at my house that I never asked for: Popular Science, Wired, and Cosmopolitan. They show up for six months, then stop coming. A year later they start again.
Show HN: Ultimate Collection of 180 Free Background Gradients
One wouldn't, generally, at least in the astrophysics domain. The kinds of guarantees Rust makes don't add anything.
Πόσες φορές μπορεί να εκσπερματώσει ένας άνδρας; – escorts| athens escorts
I'm not sure. For example, imagine a whistleblower uncovers government illicit activity - instead of deporting illegal immigrants, ICE gives them fake IDs and passports and moves them to a new area to restart their life. Considering the polarization around enforcing immigration limits, that kind of whistleblowing might be seen as a negative thing by a lot of people.

You could probably draw similar stories around any other currently illegal but largely accepted activity - e.g. imagine a whistleblower uncovering that a police department doesn't charge people with possession of marijuana.

It seems to me that whether you consider a particular whistleblower a "positive" depends on your political stance on the illicit activity they were uncovering.
Losing weight, especially fat does wonders for insulin sensitivity, though.

The low carb group lost 6.2 kg of fat. That is a lot. I do wonder what happens if you look at insulin sensitivity when weight and fat mass remains mostly neutral. I do not know if there are studies done on that (in humans). I will have a look around.
What an awful headline. "AI learns to compete in competitive situations" should be the precis.

Basically, it learned that it didn't need to fight until there was resource scarcity in a simulation.
The graphics are nice, but I think you can polish the writing.

1. It took me probably 30 seconds to understand that the text blocks on the start page are summaries of what's in every chapter. Try to read this without knowing that this website is an online book:

> The purpose of HTML, CSS, and JavaScript, the difference between frameworks and languages, and finding your way around a basic website project with Atom.

This doesn't make any sense if you don't know that it describes a chapter in a book.

2. Simplify sentences. Cut adjectives. Shorten. It reads academic. Examples:

> Our goal is to make it as easy as possible for complete beginners to become professional web developers, so if you’ve never written a line of HTML or CSS, but you’re contemplating a career shift, grab a cup of coffee, take a seat, and let’s get to work.

This is a single sentence. It's hard to understand. Your readers aren't all native Americans. This could be turned into:

-> This guide helps you to become a professional web developer, even if you've never written a single line of HTML or CSS.

> They’re very closely related, but they’re also designed for very specific tasks. Understanding how they interact will go a long way towards becoming a web developer.

Ctrl + F "very": Too often.

A good editor might reduce the text by 25-50%. My secret tip is the Material Design Writing guide [1]. It shows how to write for apps. With apps, the user needs to get a task done as fast and efficient as possible. Write that way.

[1] https://material.io/guidelines/style/writing.html
Mercurial still doesn't have Python 3.x support. I imagine that's an extra encouragement for the Python devs to switch away from it.
Yes, but m is zero anyway.
It's encrypted with FileVault, so #1 is satisifed. I suspect #2 is as well (I'm guessing using FV leaves "tracks" on the computer?).

Also, compelling them to decrypt doesn't necessarily mean compelling them to hand over the key.
No it won't in much the same way non American's can get access to GPS. Equally ignores how UK paid for this system already and whilst production aspects may be a part of this, it does get down to contract law and with that, business as usual.

With that the title is clickbait incarnate.
It can't be controlled for if there is no variation in the population. At that point it becomes a fixed effect--a population-specific intercept, as it were--and the only way to net that out would be through a difference-in-difference type study.
Hello everyone!

Our team proudly presents WebGradients.
It's an ultimate gradients collection. The project contains both Sketch/PSD for designers and CSS3 for developers (hosted on Github).

Interesting facts about WebGradients:

1) It's the only all-in-one gradients solution for all types of design works (web-design, graphic design, web-development)

2) The project took 83.2 hours of design work, 47.4 hours of coding

3) The UI was recreated by itmeo team from scratch for 3 times

4) It's blowing ProductHunt at the moment

Let me know if you have any questions or suggestions.
Honest question to logicians:

Is there any proof that it [automating programming, mathematics, scientific method] is or isn't possible? Is there a way to prove or disprove it mathematically?
That's a benefit. If I buy a coffee I know what I'm getting.

If I download a $2 app I might get lucky and use it right away in which case it might be a great value. Or it might require 30 minutes of setup and experimentation in which case it has already cost me more than the coffee.
Random Roundup #2 – The internet's best things this week
Short answer, I don't know. I don't know that they'll disappear, they are just so efficient.

That said, lattice is completely event-driven. The #on_event and #emit_event methods act as entry and exit points. As long as I can have string come and go between the server and client, HTTP2 would be fine.

This seems like a pretty good article covering it

https://www.infoq.com/articles/websocket-and-http2-coexist
US-CERT publishes alerts on vulnerabilities affecting common software. Several RSS feeds available. They also have weekly vulnerability summaries for a wide range of software.

https://www.us-cert.gov/ncas
I'm sure the area where US laws apply can be discussed to greater lengths, but they're not applicable outside of the (geographical) US, regardless if you're a citizen or not.
Even if the subject of the action is an US citizen. (except for the taxation of non-resident citizens, which is a whole can of worms I'm sure)

This is for better or worse.

Extra-judicial killings happen a lot. In the case of self-defense for example. "Cop thought the suspect had a gun" is a mistake that happens often, but it can be legitimate as well.
HTML, CSS and JavaScript are not hard.

What's hard is being able to teach any single person them – that requires many sorts of people skills. The irony is that for people with the right mindset, learning the 3 of them, or programming in general is one of the easiest thing they could do.
Blake the onshore/offshore programmer
Of course it's just a recommendation. Why would you think otherwise? To Rust, module name is just a bunch of characters, it doesn't recognize words anyhow.
Show HN: Transactional emails with Javascript and restdb.io codehooks
no. i'm not going to let you equate the complexities of withdrawing military assets from an active conflict with NOT signing a piece of paper.
Cows can live that long but after production drops (about 4 years) they will be sold off for beef. Not breeding cows would definitely help.

https://en.wikipedia.org/wiki/Dairy_cattle lists a few sources for the 4 years figure.
That part is open source too: https://github.com/yeriomin/token-dispenser

That said, if you're sketched out by it, don't use it on a Google account with any data on it. Just make a new empty account for apk downloading.
The little air hole is almost always too small to allow smooth drinking. A quick poke with the tip of a ball point pen is perfect. Engineering is hereby PROVED INVALID.
When I look at the generated code that multiple of the compilers (gcc,clang,icc) generate

mov eax, edi
mov edi, esi
mov esi, eax

I would intuitively use the `xchg` instruction that x86-32/x86-64 provides instead. Is there a specific reason why the compiler(s) decide to generate the mentioned code instead?
When I checked probably around 6 months ago, SignalR seemed to have no real story for ASP.NET Core and it also depended on jquery on the frontend, which I found to be simply ridiculous.
Mini Disc or cassette seemed better because there were a case around the support that was making harder to damage it. If for some reason, a cassette was broken, it was still possible to move the tape to another case (tricky but not impossible, nice little hacks needed).

People got too fascinated by the shinny colorful reflection of CDs.
I'm like you - I end up on Medium because of shared link.

If Medium were to go away, I suspect those links would just lead to a different site. What value does Medium add?
I was thinking the same thing when I read this quote:

> For instance, a common source of error is the access to invalid memory regions, which produces random execution behaviors and affects the scientific interpretation of the results.

Such errors are astronomically more likely to cause crashes than silent errors in calculations.
How are physical numbers different from virtual numbers? What would be the advantage of using a physical number? Why do they cost 120 times as much as a virtual number? How is this better than using Twilio?

(Virtual number is $5 a month and physical number is $20 a day)
Kerbal Space Program-Inspired Rocket Puzzle Written in JavaScript and WebGL
Show HN: CSS shapes patterns
I think aggressive is a better (more descriptive, narrower) word than compete here.

Two racers are competing to see who runs faster, but if one pulls out a laser gun and shoots the other, that's aggressive.
Thanks, I did the search using only 'Stockfighter' and I got no results.
I wonder how Deepmind will simulate game theory as it advances
Things you should do before medium introduces the payment model
You have to take overflow into account. In most cases, that would make the algorithm not very useful compared to just doing the swap with a third variable.
Are there guides similar to Material Design that you would recommend to an app developer? Looking for Dos and Don'ts. Appreciate any help in this direction!
That last vid made my day, expecting nodes and splitting algorhytms. You clever you! :)
Highway costs less per lane than a single line of rail but considering most highways are 3 lanes either side the cost factor starts to become favourable to railway lines.
Yes, you are completely right. It should have been titled "Realtime-first development with Websockets".
That link contradicts that?

"even mild cold that doesn't cause you to shiver starts to burn through those brown fat stores, jumpstarting your caloric burn rate."

Famously, Inuit team drivers for Arctic expeditions would eat all the butter out of the food supplies first.
The main spillway was open last night, carrying 100,000 cu ft/s of water (comparable to Niagara Falls). I guess it is still open, but I only spent a minute trying to find a current source.

They had reduced the main spillway flow prior to water starting to flow out the emergency spillway, but they increased it after that happened.

edit: it seems that the water level is below the emergency spillway now, but the main spillway is still open, probably at least partly out of concern about coming rain.
What TfL Learned from Tracking Your Phone on the London Underground
Quantum Theory by Starlight
For now.

Laptops are a declining market, and they have circa 10% of it. Phones sales are only growing slowly, and they have a declining share of that market. iPad sales are dropping precipitously. iPods will eventually stop being a product at all. Competition is advancing; their once-innovative products now have pretty close matches, even as the price gap widens.

To maintain their position, I think they're going to need to find a new product category, one where they can leap out ahead as they did with all those other products. The watch was a fine accessory, but not a major category. They've never done particularly well in the TV space. There's no other immediately obvious market for them to jump into.

Can they do that? We'll see, but the last time they succeeded was with the tablet computer, and that was with Jobs at the helm. So I'd call their future... precarious.
> Compile C version with better optimization flags or ask an expert to tweak it for faster performance.

Part of the point they are trying to make is that you don't need to be an expert to reap performance benefits in certain languages. They explicitly state that they did not do things that C experts would know how to do. This is pretty reasonable in the context of astrophysics. The whole idea of the thing is that if there is a language that allows you to write faster code than C without having to "ask an expert to tweak it", you will be more productive using that language.

That said, your point 2 is entirely valid; the paper fails to demonstrate pretty much all of its claims, and it never makes a case for needing Rust's safe dynamic memory allocation features in a program that doesn't use dynamic allocation at all.

For whatever it's worth, the astrophysicists I most recently talked to wrote their simulations in Python (with SciPy or similar) or even something called IDL: https://en.wikipedia.org/wiki/IDL_(programming_language) and they also tend to have mad Bash skills for glueing different data-processing programs together.
"But, honestly what Youtube are you using? Despite the glut of kid-oriented content on the site, I see almost none of it."

Try being a geologist or gemologist and using Youtube. 95% of searches turn up this crap show called Stephen Universe.
This is somewhat overblown, there was a lot of talk about this as it became clear Trump was about to be elected.

Yes Trump is stirring the pot a bit maybe to play Russia against China. Maybe it's to get Europe to spend a little more on NATO so the US doesn't fund the vast majority of that alliance and he can cut some spending there. Whatever the mind set is, not much has changed.

The US and all of its allies are still allies.

Does anyone really think that if some "real" US interests are messed with that the United States won't fuck somebody up? I mean it's just a few years ago we went to war, why all of a sudden are we weak?

Edit: just to clarify "real" interests e.g. a NATO ally is hit, Israel is hit, Japan is hit, South Korea is hit... any US base or military vehicles, etc...
Some of that is weird placeholders for the debugger, for inserting hook instructions or whatnot?
Leaving a VHS in the hands of a child would've yielded similar results, with records most likely the same.
SEO ranking factors 2017