Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,495 karma · joined Feb 1, 2017 (9y ago) · 2,551 submissions

Submissions

comment 5y ago · link · parent

Right. This is great if you are still learning the ropes. However the title is best practices. Using uid 1000 and using rw file mounts exposes your main user to potential exploits. Often 1000 is in the docker group for convenience.

That allows an attacker to potentially append some nasty code outside the container and get password-less sudo. Unlikely? Very. But security is all about layers.

I've seen full-fat Ubuntu containers with uid 1000 which is in docker group on the host and ~ mounted to run some python flask app, in production.

comment 5y ago · link · parent

What drug-use angle are they pushing? The pill logo is actually pretty typical of generic 15mg amphetamine/dexamphetamine salts, a common ADHD prescription, and nothing about the tagline strikes me as drug-adjacent. "Powerful keep-awake utility"? It does what it says on the tin.

comment 5y ago · link · parent

Tell that to Cocaine Energy Drink.

https://www.caffeineinformer.com/cocaine-energy-drink-is-bac...

comment 5y ago · link · parent

Wow, this whole thread has prompted me to get off mobile and onto a keyboard, because I have many thoughts on this matter. I have ADHD, delayed phase sleep disorder, a dual BS in chemistry and psychology, I have studied addiction and drug reform, and even worked on synthesizing phenethylamine derivatives. I have many thoughts.

First, methamphetamine is not amphetamine. Meth belongs to the broad class of molecules properly known as "substituted amphetamines" or "phenethylamines." No one in-the-know refers to meth as "amphetamine" by itself, though some do broadly refer to assorted substituted amphetamines as "amphetamines" but this is pretty sloppy and if you want to refer to the class and "substituted amphetamines" is a mouthful, just use "phenethylamine" (PEA).

The name, of course, one of the most clever elisions in chemistry, Alpha-Methyl-PHenyl-ETthylAMINE, refers to the methyl group alpha to (the 1st substituent on the carbon backbone) the amine. This makes PEAs structural analogs of dopamine (DA, aka 3,4-OH-PEA) and norepinephrine (NE, aka 3,4,β-OH-PEA), and their the ability to modulate DA/NE receptors is what gives PEAs their general stimulating properties.

Meth-amphetamine has a methyl group on the amine. This seemingly small structural change makes a big difference pharmacologically. Methylation of amines makes drugs more fat-soluble, which makes them better at penetrating the blood-brain barrier and cellular membranes, while inhibiting its breakdown and clearance. This makes METH harder hitting, better at receptor binding, faster acting, and with far stronger effects than AMPH. Modelling addiction is tricky, but we can loosely approximate how strongly habit-forming a drug can be by multiplying the blood plasma curve by an exponential decay. The faster and higher a drug peaks, the more likely it will be addicting.

METH's lipophilicity also means it tends to cause DA to leak into places it shouldn't, resulting in unwanted chemical side-reactions which can damage neurons and glia, making it more toxic than AMPH. (this is a huuuge oversimplification; there are reams of studies on the mechanism of METH toxicity, and yes the literature uses METH as the abbreviation, I'm not being dramatic by all-capsing it)

Together, this makes METH much more dangerous than AMPH, and hence why AMPH and prodrugs such as Vyvanse (lysine-dexamphetamine) are commonly prescribed for ADHD, sleep disorders and eating disorders, while METH (under the name Desoxyn) is much more obscure medicinally (but still used! In fact another comment in this post mentions it).

Both are DEA Schedule II. Scheduling has basically no correlation to actual addictive potential or harm in any way. Psilocybin is SchI, has virtually no risk of addiction or overdose, Zolpidem is SchIV but is notoriously prone to abuse, and tobacco isn't even scheduled but is exceptionally addictive, causes easily >$100B in costs in USA alone. Yeah, the DEA schedule is kinda useless IMHO, but I digress.

AMPH can be abused and sold on the street, but that's true of literally any drug that humans find interesting to consume, including weak PEAs like bupropion, and OTC drugs like diphenhydramine and dextromethorphan.

Bottom line is - amphetamine is safe and effective when used as prescribed for improving focus and wakefulness. Lumping it in with METH or other street drugs is chemically imprecise, and does a disservice to those struggling with executive disorders. Apple makes it seem like just the name Amphetamine implies inappropriate drug consumption, which adds to the stigma those who benefit from amphetamine treatment already experience.

Thanks for coming to my TEDHN talk.

comment 5y ago · link · parent

Exactly. If you were to describe objectively to someone the properties of alcohol or tobacco without saying the name, people would be clamoring to crack down on the "epidemic" claiming thousands of lives and costing billions.

comment 5y ago · link · parent

Yes, really. That methyl group makes a big difference. It increases potency, toxicity, absorption rate and overall addictiveness, hence why amph is commonly prescribed, while meth (desoxyn) is reserved for severe narcolepsy.

comment 5y ago · link · parent

Not really, it's pretty confusing and when I worked at a medicinal chemist working on substituted phenethylamines, no one referred to molecules aside from amphetamine proper as "amphetamine".

comment 5y ago · link · parent

My first thought was, "it sure would be neat to work for BD".

Even though I'm pretty sure engineers have been driven to tears trying to get a robot to do the mashed potato. Worth it.

Nerd lust: confirmed.

comment 5y ago · link · parent

I found that comment kind of odd, since the real king of sauce absorption is spaghetti rigati - spaghetti with ridges.

Bucatini has good sauce absorption but imho its claim to fame is its thickness, mouthfeel, and rigidity, which the author hilariously and accurately refers to as "sentient". It has a mind of its own.

There are two similar noodle shapes, pici and Strozzapreti (literally "priest stranglers") but they are even harder to find.

comment 5y ago · link · parent

Bubble foam insulation is the way to go in deserts. This is where you pump a soap water foam in between gaps of greenhouse plastic. When you want to block light/heat, fill that wall with foam. Drain to allow radiation.

Water can be recuperated with an enthalpy wheel.

comment 5y ago · link · parent

That's 16 kWh per GB. About $2-4, or a around ten years of cloud storage. But this data lasts forever. And the energy costs will certainly drop.

comment 5y ago · link · parent

Flux is a wild idea. I kinda love it - everyone gets the same "vote budget" but they can spend it only on issues that matter to them. But I can also see this going sideways in so many ways. Namely I can see single issue voters setting up "chaff" minutia bills to accrue vote credits in order to strategically dominate their issue.

But it would break the deadlock we have now in the USA so that's worth experimenting with.

comment 5y ago · link · parent

I really liked it as an occasional meal replacement, for much of the reasons above. But then they switched from rice to soy or pea protein. I have a peanut allergy. While I can eat soy/peas by themselves, the hydrolyzed proteins give me hives. Otherwise I'd still be eating it.

The taste/quality/mouthfeel definitely went up since v1.

comment 5y ago · link · parent

> It doesn't seem like a language that you can just dip your toes in, you need to go deep to see the benefits.

It really is. Hence why I list it as living up to the hype, you really have to buy in to it to "get" the hype.

There needs to be a corpus of different skill levels of Rust programs to study, not just intro snippets.

comment 5y ago · link · parent

Having someone you can ask questions to is huuuge. I have a friend who knows it pretty well and that was supremely helpful to get through some initial stumbling blocks and confusions.

I use Clion which is also super helpful in letting me inspect, autocomplete, and lint code before compiling.

The main rust-lang.org is quite good, but beyond that nothing in particular stands out. But lots of one-off blog posts on specific topics help get through certain blocks, eg how to write traits/impls.

comment 5y ago · link · parent

Type hints in python. Structured programming in general.

Rust. It took me a long time to get remotely comfortable, but once it starts to click, it's awesome how the structure guides your development. Worth the investment, but don't expect to be able to grok it immediately.

comment 5y ago · link · parent

I disagree. The questions are worded in a way that leads the reader to think the second question is about the first question's second clause. The issue here is people not reading carefully - if the blog is reporting the poll correctly.

There is no reference to the actual poll, so it's not clear what the actual structure of the poll is.

comment 5y ago · link · parent

Maybe I am misunderstanding how the system works but I don't actually want that kind of Excel-like eager behavior like 90% of the time. Sure it's neat for simple computations but some cells take hours to run in my workflow.

Give me an indicator that a cell is stale but I don't want eager execution on all the time.

comment 5y ago · link · parent

Just use python libraries, wrappers,gRPC, or thrift.

comment 5y ago · link · parent

This is both a pain (state gets confusing) but this statefulness also a huge boon when rapid prototyping. You don't need to rerun calculations to tweak a single variable. Sometimes the data preprocessing can be really expensive.

It does take a certain discipline to make reproducible notebooks. I like to always end the day with a "restart and run all" if possible.

comment 5y ago · link · parent

That doesn't absolve BBC of spreading misinformation, which is what they are doing. It takes near zero effort to make a dubious claim on a blog. If BBC then writes, "kortex claimed to have hacked the NSA", that's accurate, I did make a wild claim. It's also misinformation if that headline is published without any investigation as to if that claim has any weight beyond internet rambling.

"You can't put anything on the internet that isn't true"

"Where'd you read that?"

"Internet"

comment 5y ago · link · parent

So what? There's plenty of dubious blogs claiming all manner of things. The actual accomplishment isn't noteworthy (they wrote a scraper). If it were encryption-breaking, it would indeed be noteworthy, and thus worthy of fact-checking or at least waiting for Signal's rebuttal of "lolwut, no, that's nonsense".

"Accuracy" is moot here: BBC's headline is misinformation.

comment 5y ago · link · parent

Shameless plug: I've been working on this utility to facilitate sharding keys/passwords so you can set up your own password recovery schemes:

https://github.com/xkortex/passcrux

It's more horcrux-y than TFA in that you need N of M shards to reconstruct. TFA isn't really a horcrux, since there's a 100% dependency on each part of the full password.

Canon doesn't specify how many horcruxes he needs to be reanimated, but we know there is some redundancy due to the loss of the diary.

comment 5y ago · link · parent

I was thinking currying, as it is both spice-themed and analogous to function currying in that you take your base password, curry it with the secret to get the submitted password.

comment 5y ago · link · parent

Never worked with Nix, though it looks interesting.

comment 5y ago · link · parent

Nope, just two or three. Most lives in ~/ao (easy to type on dvorak), some is in ~/rd (random), some is in ~/tmp. I don't really work on enough variety of projects to deal with collisions.

comment 5y ago · link · parent

I don't think GOPATH is poorly thought out at all. Dependency-environment-locating is a PITA. Off the top of my head, I can't think of a single package management system that doesn't use universal installs, FOO_PATH or "giant local dump per project".

Universal:

- apt, yum, brew

Team PATH:

- GOPATH

- CMAKE_PREFIX_PATH

- PYTHONPATH (which Conda, virtualenv, etc modify)

- CARGO_HOME

Team redundant local blob:

- Node

- pipenv

Rust is probably the least-half-assed (most full-assed?) model, with both a sane user-wide default for cache (~/.local/cargo), a way to edit that default, and project location flexibility.

But I actually love the Go notation that I've opted to organize most of my code around the ~/namespace/src/domain/repo scheme. I never lose track of where a folder is :)

comment 5y ago · link · parent

Right, it seems the first step is analogous - breaking down the lignin with base and sulfite. But instead of impregnation with resin, the wood is squished and heated to re-form the crosslinking bonds.

comment 5y ago · link · parent

> Also not eating for 4 hours before you sleep and after you wake up

Wait, does that count as IF? I mean yeah, I guess it is called break-fast, but does sleep time count as fasting time? Somehow in my mind it felt like it would "pause" the clock.

comment 5y ago · link · parent

A libary for generating code for not just quaternions, not just dual quats, but arbitrary Clifford algebras? Be still, my beating heart!

I love geometric numbers. I wish they were introduced earlier in school, I would've actually enjoyed linear algebra class.

1
646566
86