Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions

Submissions

comment 7y ago · link · parent

I work on exactly the same OS as production (ubuntu 18.04) and still need (not want) containers to do my job. One project uses ROS along with different detectors with incompatible dependencies. One takes forever to build from source, and it's way easier to ship around images by pulling from a repo than tranferring binaries and libs.

And even if I didn't have those constraints, I'd still use containers in production because it just makes testing and deployment so much less of a headache.

comment 7y ago · link · parent

I'm not confusing energy with intensity, but in a silly moment I got the word "photoionization" with photodissociation/photolysis. Yes, you need hard UV to actually eject an electron from its atom, but you need far far less energy to break bonds and damage DNA. Photosynthesis is all about redox driven by blue and red photons.

These are more than just bond rotations (with only slim exceptions, bond rotations have the same energy state) from photostimulation. You can flip cis/trans bonds (main mechanism of retinal), ring closing in vit D, and cause all kinds of increased free radical activity [1]. In particular, blue light interacting with certain chemophores, such as catechins, are relatively prone to photoactivation [2].

Ever seen polycarbonate that's been around blue LED light sources (not sunlight) for a very long time? It yellows. That's not "just adding heat", that's chemical bonds breaking.

Transparent just means the entirety of the body can be bathed in light.

[1] https://www.ncbi.nlm.nih.gov/pubmed/15797866

[2] https://www.ncbi.nlm.nih.gov/pubmed/29973539

comment 7y ago · link · parent

Blue (and any high energy light) is known to facilitate radical formation, redox and other electronic transitions, hence "ionizing radiation". It breaks chemical bonds. Fruit flies are small enough to be translucent to visible light. It is not unreasonable to think that blue photons wreak chemical havoc in the bodies of small bugs, not unlike x-rays in mammals.

comment 7y ago · link · parent

Gmail ignores anything past the + in username+foo@gmail.com. I wonder how much bobby-tables-esque havoc I can wreak with name+£€ϵ@gmail.com.

Edit: already found one. Leet is supposed to end with Compart › unicode “” U+2608 Thunderstorm Unicode Character.

Doesn't show up on my comment.

comment 7y ago · link · parent

I do not believe that is a good pattern. First, two devs probably should not be touching the same functionalities (if they are, they ought to be basically pair programming). So diffs should be orthgonal. If diffs are landing in the same branch, each dev should be using their own feature branch, and ideally PRing them back to the branch, but for small hacks, merge is fine.

Think fractally. The farther you get from master, the smaller and more atomic each commit should be.

If your merges are taking lots of coordination or failing to auto-merge, you probably have some poor engineering hygeine at play. Every time I've had merge fails, it's due to haste/sloppiness or a dev branch diverging too much from a mainline.

comment 7y ago · link · parent

Might be one of those genetic things, or conditioned response. I'm extremely sensitive to the oxidized oil note. But my partner doesn't really notice it until it's gag-inducing to me. E.g. I can't eat mixed nuts if they have been opened more than a few days (regardless of how well re-sealed)

comment 7y ago · link · parent

It's still too expensive vs the gained utility. Given a tradeoff of very expensive and finnicky hardware, vs offroad wheels, use animals, or just pay humans, the robot loses.

A big part of that cost is the drive train and transmission. You need low speed and tons of torque, so this usually means geardowns.

Not that the software NRE costs are trivial, but they can be amortized. But building even a single basic six axis arm with human comparable strength is gonna cost several grand.

comment 7y ago · link · parent

I get this, I really do. The whole "brain hacking so I can earn more profit for my boss" thing is something I'm acutely aware of. At the same time, ADHD makes adulting in general wicked hard. If I can get the job done more easily, or work more hours and earn more money, that gives me a better quality of life, that's a worthwhile tradeoff for me.

On the other hand, imagine a world where I don't have to make this tradeoff.

comment 7y ago · link · parent

Docker builds are crazy wasteful in terms of bandwidth and compute. Right now I'm struggling with a project that builds ITK on demand every heckin time.

I'm working through how to best integrate apt-cacher-ng, sccache, and a pip cacher. It costs me nothing to hit apt or pypi, but like, somebody is paying that bill. A little perspective goes a long way.

I wonder if I could do something to just proxy all requests and cache those on a whitelist and stick it on my CI network.

comment 7y ago · link · parent

I think a standard API would be great. "Here's the things the ecu should be willing to expose": basically all the usual EC2 reader registers, as read only.

Here's a standard climate control API, which doesn't touch the ecu stack.

And here's some mixins/ flexible RPCs so vendors can add custom functionality.

Alas, this limits vendor lock in, so that's precisely why I think it's unlikely to happen.

comment 7y ago · link · parent

This is purely sloppy. Dealt with a similar issue on a UAV project. We elected to check for a gps time (which fails if, e.g. indoors), and fall back to os system time, with a note in the logs. It can't do anything mission critical without gps anyway, so this only even shows up in dev/debug settings.

comment 7y ago · link · parent

The question title implies he's parsing XHTML text.

> XHTML is an XML-based HTML. It serves the same function as HTML, but with the same rules as XML documents.

https://stackoverflow.com/q/1429065

comment 7y ago · link · parent

See, this is kinda what I mean. Maybe you can detect tags with regex, but maybe you shouldn't, given the widespread but subtle differences in regex engines.

Perhaps the entire approach of "why are you trying to parse X?" Needs to be traced and re-evaluated.

comment 7y ago · link · parent

This is a bit out of my wheelhouse, but this feels wrong, or at least naively capable. Like it feels like this sort of reasoning leads to the kind of bugs (depending on what you use the result of the rexex for) that allow for code injection, a la the Equifax hack.

Maybe another HN poster can back me up, or explain why in fact Zalgo is mistaken and CargoCode is correct.

Either way, this sort of complexity is one reason I avoid XML like the plague and keep HTML at arm's length.

comment 7y ago · link · parent

I found it extremely helpful. The sheer emphasis of the reply made me very curious why the idea of using regex on xml is so bonkers.

- I will never forget that regex can't parse XHTML

- the reason being, regex is insufficiently powerful

- when I first saw this post, I knew little about regex under the hood, this sent me down a wiki hole of FSMs, pushdown automata and turing machines

- this misconception is apparently common enough to be madness-inducing to those that know better

- use a hecking xml parser instead

It almost reminds me of a Bill Nye sketch. Teaching through a bit of non-sequitur and absurdism.

comment 7y ago · link · parent

I think this is likely it. In my opinion, it reminds me of autoencoders. Having to compress the information means understanding the content enough to discard unnecessary bits.

I can roughly keep up in real time with speaking on the keyboard. Even though speaking is a bit faster than my max rate around 90 wpm, by dropping filler words and gaps I can mostly avoid summarizing and quote verbatim. When transposing at full speed like that, I feel like a conduit at times, very little sticks deeply in memory.

Contrast with writing notes, where I'll only write down things I find particularly important. Most of the time I'm just trying to actively listen.

Purely anecdotally, I feel like when I am typing and summarizing to the same compression ratio as writing, my retention with typing is better, because I can do it without looking, it's faster, and I can tune back in to the speaker.

On the other other hand, with a laptop open, I'm much more likely to get distracted with emails/tasks.

Bottom line, I think we need to study more axes of this problem, if only because it gives neat insights into cognition.

comment 7y ago · link · parent

The only thing I know of approved for deliberate human inhalation are things like inhaler and nebulizer based drugs. Those are usually carried in a fluorcarbon (HFA-134a aka 1,1,1,2-tetrafluoroethylene in Ventolin inhaler, which just evaporates) or saline in the case of nebulizers.

Theatrical fog causes "irritation of mucous membranes such as the eyes and the respiratory tract associated with extended peak exposure to theatrical fog. " Another study "also found long-term exposure to smoke and fog was associated with both short-term and long-term respiratory problems such as chest tightness and wheezing".

Cigarettes are terrible, but vaping ain't vitamins.

https://en.wikipedia.org/wiki/Fog_machine#Adverse_health_eff...

comment 7y ago · link · parent

I've breathed fire with MCT oil (the storebought stuff that is basically liquid coconut oil). It's somewhat irritating, and I imagine if deliberately inhaled chronically it would cause harm.

C8 is really fascinating because, I reckon, it's too short to set off the inflammation cascade directly, so it would be up to macrophages to alert the body "hey this doesn't belong". However you still have the usual risk from hydrophobic product in the lung.

Personally, I would use vegetable glycerine and nothing else if you can at all avoid it. PG is a bit more irritating than VG, but any short polyol is going to be diffused away into the mucous much more easily than hydrophobic products.

comment 7y ago · link · parent

If they are extracting from trim and other low-value parts of the plant, yeah that is a possibility. Myclobutanil has a boiling point around 200 C, THC around 155 C. They have similar hydrophobic nature. So any extraction process favoring THC will also likely partition myclo. If you are making concentrate from buds, this isn't an issue, as your ratio of active components to pesticide is going to be similar. However if you are extracting low-density plant matter, your ratio of myclo to actives will be higher.

However, the highest number I've seen reported was just shy of 1 ppm myclobutanil. Not great, but that's still pretty low.

https://www.thestranger.com/slog/2018/12/20/37272899/no-one-...

comment 7y ago · link · parent

Yes, sorry the wording was a bit ambiguous. MCT is almost entirely saturated. Any natural oils can be broken down into free fatty acids which have a pro-inflammatory effect when "not where they belong", i.e. in the interstitial space. However, unsaturated fats have the fun additional property that they can be "oxidized in a tightly regulated and specific manner to generate either potent pro-inflammatory or pro-resolving lipid mediators" [1]. So MCT oil is probably pro-inflammatory in the lungs, but vegetable oil even more so.

[1] https://www.frontiersin.org/articles/10.3389/fimmu.2014.0048...

comment 7y ago · link · parent

Search for "`chemical name` msds". You may need to look for the specific chemical name [1] rather than trade name. You should be able to find an occupational safety limit, lower exposure limit, or similarly worded section, which tells you how much (roughly) you can be safely (roughly) exposed to per unit time, usually 8 hour workday.

Anything that isn't air doesn't belong in your lungs. Period. Some things are less bad than others. However diffusers are unlikely to increase the concentration to harmful levels for healthy individuals. As an asthmatic though, I can definitely feel it when lots of diffusers are running.

[1] http://www.chemspider.com/

comment 7y ago · link · parent

Scientific wild-ass guess: Polyols (ethylene glycol, propylene glycol, glycerine) are very hydrophilic. It would be trivial to detect presence in oil concentrates - just shake with a known quantity of distilled water. The polyols will be pulled into the water layer and increase the volume. It's not quantitative but if you know the 'ol in question you can calibrate a curve and get within a few percent of actual with just graduated cylinders.

comment 7y ago · link · parent

I perform with and breath fire as a hobby. The single biggest risk to firebreathers isn't burns, but chemical pneumonitis, due to fuel inhalation (basically synthetic mineral oil with chain lengths 12-18). Took one look at that xray and thought, "yup, chemical pneumonitis" [1]. Also known as lipoid pneumonia.

In my research, one finding that stuck out [2] was that natural oils (triglycerides, saturated or unsaturated) are more pro-inflammatory than straight-chain mineral oils. MCT oil would absolutely cause acute inflammation and in severe cases, collapse of alveoli.

However, the long chains, longer than C14, have half-lives measured in months to years. The effects of these is harder to know, but excessive exposure causes essentially COPD.

Edit: oh look, here's an article specifically pointing out lipoid pneumonia [2]. I actually disagree with their thesis, that vegetable glycerine is causing the inflammation. I would bet it's more likely to be one of these thickeners, or a carrier agent for a flavor, causing the inflammation. I know people who go through over an ounce per day of VG solution that aren't getting chemical pneumonitis, but inhalation of sub-milliliter amounts of oils has sent friends of mine to the hospital.

Basically, if it's not air, it doesn't belong in your lungs. However, the degree and character of the damage done depends on the chemical composition.

Shorter molecules, molecules with more hydrophilic nature (alcohols, polyols, ketones, acids), biologically active molecules, are more acutely inflammatory, but usually the body can deal with them. Longer molecules, biologically inert ones, are less acutely reactive to the immune system, but can cause disruption of membranes and long term toxicity. Unsaturated fatty acids are especially bad because they can be oxidized directly into inflammatory signal chemicals. [4]

[1] https://en.wikipedia.org/wiki/Chemical_pneumonitis

[2] pdf - https://www.ajronline.org/doi/pdf/10.2214/AJR.09.3040

"Mineral oil (a mixture of inert, long-chain, saturated hydrocarbons obtained from petroleum) and vegetable-based oils tend to cause minimal to mild inflammatory reactions (Fig. 3). The intraalveolar oils can coalesce in the alveoli and become encapsulated by fibrous tissue, resulting in a nodule or mass (paraffinoma) (Fig. 4). Conversely, animal fats are hydrolyzed by lung lipases into free fatty acids that trigger a severe inflammatory reaction that manifests as focal edema and intraalveolar hemorrhage [5]. "

[3] html - https://casereports.bmj.com/content/2018/bcr-2018-224350

[4] https://www.frontiersin.org/articles/10.3389/fimmu.2014.0048...

"unsaturated fatty acids can be oxidized in a tightly regulated and specific manner to generate either potent pro-inflammatory or pro-resolving lipid mediators. "

comment 7y ago · link · parent

These alkyne (C≡C) bonds are indeed strained and unstable, but there is an energy barrier to jumping to alkane (C-C) or alkene (C=C). Otherwise, polyynes like Ichthyothereol [1] would not be stable.

Resonance is not possible with this configuration because the orbitals are not symmetric. Benzene is often drawn with alternating alkane and -ene bonds, ⌬. It's not obvious, but benzene is radially symmetric in its electronic configuration. Each carbon has p-orbitals pointing vertically from the disc, forming a cloud, rather than discrete pi bonds between neighbors, and the electrons can "skate around the ring".

The first bond between carbons is always sigma. In alkenes, there is one sigma bond, in -ynes, there are two pi's at 90 degrees to each other. I'm a bit fuzzy on my o-chem, but iirc there is an energy gap between this configuration and cumulene C=C=C, which makes spontaneous transition unlikely.

In this c18 cycloalkyne, the p-orbitals are further strained into a bent cross shape if looking toroidally. This makes for an even bigger difference in energy levels, which means it can't flip to alkene or even swap positions.

https://en.m.wikipedia.org/wiki/Ichthyothereol

comment 7y ago · link · parent

Sometimes musical tastes can be very specialized. When I am in overcaffeinated deep flow programming mode, nothing hits the spot light High-tech Minimal (see Boris Brejcha, Amelie Lens). It has a sparsity (c.f. Fullon) which is nice when I'm bordering on overstimulated, but still has a driving beat that gets in your bones.

comment 7y ago · link · parent

Hm, yeah it's definitely very unique. It's psytrance in the same way Juno Reactor is psytrance, as in it's the closest concrete label, but explores a space well outside the typical fare.

Texturally, reminds me almost of big beat/ breaks. Reminiscent of the Antigravity album by Zircon.

comment 7y ago · link · parent

Definitely keep it. I enjoy it when yt's autoplay random walks me onto older and more obscure music. While I've been listening to AP for years, this has happened with other groups.

I'm gonna have to go listen to Trust in Trance now, such a classic.

comment 7y ago · link · parent

It kind of amazes me that we cannot resolve arbitrary strings as TLD's. Yeah let the .com's and country codes get locked down by the regs, but there's an almost-nowhere-dense space of strings.

I guess the hard part is in resolving contention over particularly desirable strings.

comment 7y ago · link · parent

Google has been experimenting with tailsitters, which I think is a no-brainer.

Zipline is, imho, the real out of the box thinker. Catapault launch plus the snag line is Short takeoff, effectively-vertical landing, main downside is you need ground gear to land without damage. Main upside is weight savings for peak power (takeoff) is reduced, landing gear gone, and your engineering space is shrunk to solely the problem of steady state flight.

I foresee the paradigm of winged mothership for last-hundred-mile, plus n-rotor drones for air-to-land leg of delivery.

comment 7y ago · link · parent

Any insight as to why Matternet is using quads still? Just nearsightedness? Yeah, they might be a bit cheaper, but now they are grounded, that's never good for the bottom line.

Furthermore, safety critical systems are all about layers. Yeah redundant motors are good, parachute is nice, but what about passive measures?

Maybe drones should have stub wings which, in addition to lift boost, have deadman switches which cause one to spring 180° on power loss, forcing the hull to autorotate in the event the chute fails.

Ok, the gps dies, the motors fail, chute fails to deploy, and the wing ripped off, you are dropping at full speed. Well now the rapid descent causes a pressure differential (artificial eustacian tube, if you will) which trips some azide charge, inflating an airbag.

It's like they are putting in bare minimum of effort with the quad+parachute.

1
798081
85