Better HN
topnewbestaskshowjobs
Log inSign up

TJSomething

812 karma · joined Oct 10, 2013 (13y ago) · 304 submissions

Submissions

comment 5y ago · link · parent

In traditional Java, you're probably using Jackson for your JSON. You can achieve those sorts of results by specifying the classes and type tags in annotations on an abstract Either class to use Jackson's polymorphic serialization feature.

comment 5y ago · link · parent

I personally don't have the cash to buy more than one and I feel like a lot of the point of cryptocurrency is that individuals don't have to trust a financial institution.

comment 5y ago · link · parent

As someone who runs a small anime convention, there's a long tail of anime conventions that just barely sit in the black, unable to pay much to anyone. Those only really exist as passion projects.

comment 5y ago · link · parent

I was trying to get something from Nim to build like this, but I probably need to understand linking a bit better.

comment 5y ago · link · parent

I messed with the source of this and I came up with an entirely local dithering algorithm based on the van der Corput sequence.

https://tjsomething.neocities.org/ditherpunk-demo/

comment 5y ago · link · parent

If we're being pedantic, that's not a letter. It's a mora. Also, we don't know the correct Japanese spelling of Satoshi Nakamoto, because there like 8 common first names pronounced Satoshi (哲, 悟, 敏, 智, 聡, 慧, 訓, and 諭) and he never wrote his name in Japanese.

comment 6y ago · link · parent

I'm not sure if it always works on all APIs or browsers, but you can wrap and replace DOM API objects with logging proxies.

Additionally, you can set breakpoints on event handlers and Chromium has deobfuscation built in. You can usually tell approximately what's going on by stepping through the code and watching the variables in local scope.

comment 6y ago · link · parent

Because running a large enough study is expensive and it's cost-effective to perform a smaller study to determine an approximate size of the effect. Then, you can design the next study to have enough power to distinguish the expected effect size from the null hypothesis.

Additionally, these results could be aggregated with comparable results to yield a stronger result.

comment 6y ago · link · parent

When you have separate backend and frontend teams, Conway's Law starts to rear its ugly head. GraphQL can help smooth over some of that organizational friction and maybe keep the frontend team from making N+1 requests because they gotta get this feature out by the end of the sprint and backend's busy with its stuff. They tell themselves, "It'll be fine. It's performs acceptably on my machine with my company internet connection."

comment 6y ago · link · parent

Dang. I actually like how customizable Jira's workflows are. What else is good at customizable Scrum-like workflows with custom fields?

comment 6y ago · link · parent

The article specifically states that they're going to keep Moment-Timezone up to date. Which is important, because the timezone database has changed approximately 4 times a year for the last 5 years (https://mm.icann.org/pipermail/tz-announce/).

comment 6y ago · link · parent

From a global warming perspective, plastic bags are generally better for the environment because they are extremely light, therefore use less gas to ship. However, plastic bags often end up in nature, where plastic particles end up in animals and plants.

comment 6y ago · link · parent

While true, there is a reason that the GLSL standard includes builtin data types for matnxm for all n,m in {2, 3, 4}. The single most common matrix operations in computer graphics are related to linear transforms on color spaces and geometry. Both of those max out at transforms on 4D vectors, for RGBA and 3D projective geometry.

comment 6y ago · link · parent

I think a Gopherhole is to the Gopher protocol as a website is to HTTP.

comment 6y ago · link · parent

I like providing some context that prompts the model for a list if I think I might need a few candidates. "We discovered a series of journals by several authors in the cabin. The authors' names were:" worked pretty well.

comment 6y ago · link · parent

All non-random decisions are made against models of the world. Some of those models are more detailed than others. All detailed models are made by people who care a lot and have interests at stake. It's not possible to make decisions outside the context of a narrative.

comment 6y ago · link · parent

"State of the art" doesn't really indicate age. It just means that there's nothing better. I'd be interested in learning about anything that's better than containers.

comment 6y ago · link · parent

They aren't saints, but McDonald's has several different salads and they're pretty healthy if you don't use dressing.

comment 6y ago · link · parent

The resolutions on those are way higher than what Signal is doing. It's not surprising that a neural network can give a decent guess at what a face can look like. Faces don't have that much entropy. But you can blur them out if you get it down to like 4x4 pixels.

Anyway, if you want scarier panopticon stuff, you should look into gait recognition, which is way harder to censor.

comment 6y ago · link · parent

The primary risk factors of economic recessions take years. Most cancers take years to kill people. The effect of unemployment on suicide peaks at around 2.5 years of unemployment [0]. I think that we're going to have an economic downturn with repercussions that will last long after a SARS-CoV-2 vaccine exists. I also think the ends currently justify the means, but that's just a gut feeling I've got.

[0] Milner, Allison et al. “Long-term unemployment and suicide: a systematic review and meta-analysis.” PloS one vol. 8,1 (2013): e51333. doi:10.1371/journal.pone.0051333

comment 6y ago · link · parent

Zulu and Corretto are both distributions of OpenJDK.

comment 6y ago · link · parent

Additionally, many problems are can be converted to matrix operations, like graph algorithms.

Note that matrix multiplication takes O(n^2) time with a quantum computer, but O(n^2.807) time on a classical computer.

comment 6y ago · link · parent

Where did you get that number? The United Nations thinks that we're going to hit 8 billion by around 2023 and 9 billion by about 2037 [0].

[0] https://population.un.org/wpp/DataQuery/

comment 6y ago · link · parent

As a few other people and the page noted, it only works in Chrome. For Firefox, it fails when it tries to use chrome.storage. That doesn't even work in Chrome, as it's an API that can only be accessed by extensions. However, in Chrome, the chrome object is defined, so accessing chrome.storage just returns undefined instead of throwing.

It's kind of weird that it's using that when it could just use localStorage.

comment 6y ago · link · parent

It's mostly compliant as of a few months ago [0]. That document is actually out of date, because Apple added a discovery endpoint since then [1]. They also haven't implemented the userinfo endpoint, but the only claims they expose are openid, name, and email, so it's not that big of a deal to just ask for those in the id_token. And the client_secret_post thing isn't much of a problem either, since their custom JWT is a perfectly valid client secret that's compliant with the underlying OAuth 2.0 standard and it's explained in their discovery document.

[0] https://bitbucket.org/openid/connect/src/default/How-Sign-in...

[1] https://appleid.apple.com/.well-known/openid-configuration

comment 6y ago · link · parent

But Windows 7 was just Windows Vista with some relatively minor changes and it was fine.

The problem with the 737 MAX is that Boeing tried to make a plane with a completely different airframe and added a bunch of software to try to make it fly exactly like second generation 737s so that pilots didn't need to retrain. But the abstraction was leaky and it turns out that when you have a different airframe, you have to retrain your pilots.

That said, Boeing did some janky stuff to get this nonsense certified by the FAA and the whole design probably needs to be recertified, which will take years.

comment 6y ago · link · parent

It took me a couple reads, but do you mean "shell" (as in a shell company that does nothing but exist to protect or obscure the operations of another company) instead of "shill" (a person who markets for someone while hiding that they are associated with them)?

comment 6y ago · link · parent

Isn't working alone part of being self-taught?

My school tried to teach good habits. Many of the professors are out of touch with what good habits are though, so they usually teach to books of varying quality or practices specific to how they learned a few decades ago.

comment 6y ago · link · parent

It's not really a random walk in any way. Having designed artificial evolutionary systems, even if you screw up the implementation and the search space is really bumpy, it usually still makes progress, albeit very slowly.

comment 6y ago · link · parent

It's not 0.8 times size increase, it's a 0.008 times size increase, since the unit is percent. The latter seems pretty marginal to me.
1
678
11