Better HN
topnewbestaskshowjobs
Log inSign up

kortex

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

Submissions

comment 8y ago · link · parent

This brings me maniacal joy :D. One time, I had to make the opposite functionality: a streaming module was eating all errors inside a while True loop. This was making debugging really aggravating. So I made a DieWithHonor exception that caused the program to call process.kill() on its own PID >:D

comment 8y ago · link · parent

"The moving average is the most common filter in DSP, mainly because it is the easiest digital filter to understand and use. In spite of its simplicity, the moving average filter is optimal for a common task: reducing random noise while retaining a sharp step response. This makes it the premier filter for time domain encoded signals. However, the moving average is the worst filter for frequency domain encoded signals, with little ability to separate one band of frequencies from another."

It definitely depends on your domain, but moving average/median can be extremely effective. (Or terrible, if mis-applied).

http://www.analog.com/media/en/technical-documentation/dsp-b...

comment 8y ago · link · parent

I'm wearing over-ear monitors and the rumble is very slightly unsettling in an uncanny way. And that's with all the highpass of the recording. Real life has all that sub 20 Hz that most mics can't pick up. I can see how this could easily drive someone bonkers

comment 8y ago · link · parent

That got me thinking: what if the hum is a two-part process? First, infrasound/near-DC pressure fluctuation triggers the tensor tympani reflex. Then, in susceptible individuals, the tensor muscle twitches, spasms, or otherwise locks up.

Alternatively, it could be a resonance mode between infrasound stimuli and tension/relaxation of the tensor tympani. Eg. Pressure pulse -> TT reflex -> neural reflex drops as sound is blocked by TT -> repeat.

Total speculation, but this would explain the person-dependent experience, as well as the inefficacy of earplugs, sound dampening, etc.

comment 8y ago · link · parent

> visualize yourself as a homeless in your late 40s, abandoned by your wife and kids, no longer recognized/avoided by your friends, destitute, in bad health.

However true this might be, I think this is bad advice for someone with OP'S mental architecture. That sort of thinking only reinforces anxiety (the unhelpful kind, not the fire-under-butt kind), loss of locus of control, and imposter syndrome feelings.

Otherwise good advice.

comment 8y ago · link · parent

That sounds like a great way to overfit. I do not know exactly when it was, as it was in a lot of ways a "boiling frog" process, but from ~2010-2015 I felt the shift from "user" to "product", fully at the expense of enjoyment and user experience.

comment 8y ago · link · parent

Chemists still use thin-layer chromatography, a technique 100 years old, day-in-and-out, in every lab in the world, even when HPLC and NMR exist. Why? It's cheap, fast, and works well enough.

comment 8y ago · link · parent

I would imagine going from a 10-node to 100-node system is more overall complicated than going from 32 to 64. Sure the instructions change, but that should basically be all abstracted away by the toolchain. However job management, allocation, data logistics, queues, cache invalidation, bottlenecks, etc, are all key issues that compound non-linearly with scale.

comment 8y ago · link · parent

Engineering teams rarely trifle over price of parts when reliability and confidence are greater concern. Sure, the neo2 is cheaper, and the rock64 is more powerful, but I haven't heard of either. What is the probability of encountering a weird not-before-seen bug on these platforms, vs Pi? Now what's the cost of dealing with that bug, including the risk-cost of having to scrap the entire platform because it's unscalable? It's probably at least $20x750 = $15k.

Pi has at least 10x more community eyes crawling over the whole system than the next three combined. You can't put a price tag on that.

comment 8y ago · link · parent

Take your wrapping function from t1 to t2, at a frequency ƒ (signal) != Fs (sampling freq), then take the limit as t1/t2 goes to -∞/+∞. As your window gets longer, more cycles of the oscillation "cancel out", moving the center of mass towards 0+0i. This means the peak around ƒ narrows and raises. At ∞, ƒ becomes infinitely narrow and high (Dirac delta * ).

This is also why peaks on an fft are gaussian (finite window), and get sharper as the fft window is increased.

* for cosine, technically there is a peak at -ƒ too. this is because a real cosine signal is ambiguous whether it is "moving forward or backwards in time". Hence it has a peak at +/-ƒ. A complex exponetial (helix through time) has chirality due to the real and imag components, so it has a single peak at ƒ. And if you take a +ƒ (lefthanded) and -ƒ helix (righthanded) and add them, the complex part cancels out, leaving only a real "up and down" wave.

comment 8y ago · link · parent

Organize. Go through backlogs. Read reports. Learn what engineers are up to. Meditate. People whose jobs are the non-programmatic glue in a company and thrive on human interaction would benefit a lot from stepping out of their domain in any number of ways, or destressing, sorting through their mind, etc.

comment 8y ago · link · parent

Irrespective of ego depletion hypothesis, dopamine is still one of the primary modulators of motivation, risk, decision, and impulse. Absolute levels of dopamine, ratios of various subtypes (D1 vs D2 vs ...), and differential activation, in the NA, VTA, and substantia nigra affect everything from the ADHD kid wiggling in his seat, to the gambling addict.

Unfortunately, things like dopaminergic drugs are a blunt instrument, and it's not as simple as "add adderall, get productivity".

The role of dopamine in risk taking https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4038955/

Dopaminergic Modulation of Risk-Based Decision Making https://www.nature.com/articles/npp2008121

Procrastination and Dopamine Receptor Density https://www.psychologytoday.com/blog/intrinsic-motivation-an...

comment 8y ago · link · parent

This is exactly it. I don't write 100% functional code, but when given a possibility of implementing functionality using state vs pure function, I aim for the pure function whenever possible.

comment 8y ago · link · parent

Look at the top 7 languages used in industry: C/++/#, Java, JS, Python, and VB.NET.

They all more or less follow "C-like syntax".

In fact compare APL or J to any of the Tiobe 20, and you'll see they are wildly different in look and feel.

https://www.tiobe.com/tiobe-index//

comment 8y ago · link · parent

I disagree. Coming from python, my first foray into web frontend was a SPA for mobile. Both my coworkers convinced me to go right to react + redux (after some bumbling first with more "traditional" ajax). After a few weeks of utter bewilderment, I have to say I really enjoy this stack. Some say it's overkill, but the framework really helps me organize things into cognitive chunks, and makes debugging so much easier.

Ever had a class in school which you hated at the time because it felt super hard, but loved in hindsight because of how much you learned? same sort of vibe. Fight through the pain.

comment 8y ago · link · parent

For years, I maintained my own python tool for loading/saving CSVs from numpy formats. It was slow, buggy, constantly hitting edge cases. When `pd.read_csv()` and `.to_csv()` came onto the scene, it was like the clouds opened up and a chorus of angels sang. And then you have all the other `read` and `to` functions, it's glorious.

comment 8y ago · link · parent

So the solution is a better kitchen management experience / assistant / whathaveyou, not a dumb "smart" widget that fires off when you run out of oil.

comment 9y ago · link · parent

I mean if "literally" can mean "figuratively", why not?

comment 9y ago · link · parent

I have facebook locked-out on my phone. LastPass keeps it on only chrome desktop browsers with Newsfeed killer. I use uBlock (microBlock) to hide dumb residual elements, like Stories. Result is I can stay in touch with events and messages, without the toxic news feed.

Also, Reddit has a 20 minute timer on desktop. I use Adguard to block it on my phone, but I bounce between use and disuse like a junkie :p.

Initially it's hard as your brain screams for its old habits, but like all things, it adapts.

comment 9y ago · link · parent

This would work if ISPs with the pipes were forced to peer with other providers. Just like people have (some) choice to get their power from green generation, but it uses the same grid lines.

There's nothing stopping them from doing this now, but the fact of the matter is ISPs don't want competition.

comment 9y ago · link · parent

I'm trying to bring back "cats". It's gender neutral, and implies coolness to whom you are referring to. And we are coming up on the 20's again.

comment 9y ago · link · parent

My money is on chaos. You take all these powerful and/or power-hungry people, who all want their way, but they are also influenced by other movers and shakers to want certain outcomes, and soon it's one giant spaghetti strange attractor.

comment 9y ago · link · parent

I think it has something to do with the power of building hierarchical layers of abstraction, to make increasingly precise predictions about the world.

comment 9y ago · link · parent

There's still many opportunities to patent, they just aren't as "easy" as novel target drugs. E.g. MDMA is known to have some serotonergic toxicity at higher ends of the therapeutic window, so there are opportunities to patent a delivery system which controls the peak plasma concentration, or a co-drug to block some of that toxicity.

comment 9y ago · link · parent

I suspect it comes across as slightly naive to this audience. The comparison between ANNs/AI and the actual human brain comes up a lot in the general media, and this leads to lots of misconceptions about AI/ANNs/deep learning, and this makes (my opinion) people in both the fields of neuroscience and machine learning a bit salty.

Inescapably, much of the high level ideas in ANN-based machine learning ("connect a bunch of nodes", "integrate and fire", "convolutional neurons/ receptive field") are cribbed directly from neuroscience.

Spiking Neural Networks (see SpiNNaker) and Hierarchical Temporal Memory (see numenta/nupic) aim for more biological plausibility, directly.

*ANNs == artificial neural networks

comment 9y ago · link · parent

Glutamate is the primary "connection" neurotransmitter in the brain ("It is used by every major excitatory function in the vertebrate brain, accounting in total for well over 90% of the synaptic connections in the human brain."). DA and SER are far more sparse and unevenly distributed, concentrating in areas with heavy interconnectivity, such as the limbic system and hippocampus. These monoamines are thought to primarily serve in a modulatory role, affecting performance and stability of neural connections in general, in an on-line fashion.

By comparison, ANNs have many meta-parameters (parameters besides the actual weights), such as learning rate and momentum, affecting stability and performance. Being able to tune these on the fly would likely improve performance.

The "ANNs are not like the brain!" camp like to point out that the ANN is a mathematical model bearing (on one level) little similarity to the human brain, but I think this glosses over the fact that key features (e.g. layers of connections, CNNs) were directly biologically inspired, and we can still glean a lot by studying the best example in our world of a learning system.

comment 9y ago · link · parent

> It's things like that story that make me think humans are going to be in the loop for a long time still and that AI taking over the world is still a long ways away.

I've found that the world continues to turn contingent on tremendous amount of what I call "dark wisdom" - crucial pieces of knowledge not found in any server, spec sheet, or manual. Usually inside the noggin of one or a few people. It just seems like a consequence of maintaining complex systems. In order for AI to fully take over, it would have to control and account for every corner case of every system, from mining the ore, to fabbing chips, to replacing wires chewed by rodents.

comment 9y ago · link · parent

Look into Jupyter dashboard

comment 9y ago · link · parent

No, it's just saying that under scrutiny, it's not all that hard to differentiate "learned inattention " and bad habits from genuine ADHD.

comment 9y ago · link · parent

Thank you. It's such a toxic sentiment which seems to only originate from people with limited exposure to the condition. It makes my blood boil as well to hear/read things like "you might want to try behaviour change first". I want to be like, "what do you think I've been trying to do since the age of 8?"

Meds have been absolutely indispensable for at least starting to implement good habits, extended focus, etc. And it's still a huge struggle.

1
8182838485