HNHacker News
TopNewBestAskShowJobs

asab

77 karma · joined July 8, 2011

submissionscomments
asab··on Show HN: A spectrogram app in less than 100 lines of HTML and JavaScript
Fun idea, I'll consider adding an extra surprise..
asab··on Show HN: A spectrogram app in less than 100 lines of HTML and JavaScript
I really like this one! Haven't read the source yet. 1.77mb page size though - I think for mobile it can be better.
asab··on Show HN: A spectrogram app in less than 100 lines of HTML and JavaScript
You're on :)
asab··on Show HN: A spectrogram app in less than 100 lines of HTML and JavaScript
You may need to grant microphone access in Settings-->Safari on iOS as well. Or your version of iOS may be older.
asab··on Show HN: A spectrogram app in less than 100 lines of HTML and JavaScript
Sorry you're having trouble. Are you using iOS Safari? 3rd party browsers unfortunately aren't supported on iOS.
asab··on Show HN: A spectrogram app in less than 100 lines of HTML and JavaScript
Hi HN, creator here. Lately I've been enjoying learning about the Web Audio API and wanted to apply it. I wanted a quick debugging tool to inspect the sounds I was synthesizing and ended up creating this. It's vanilla JS, so just view source to check it out.

Things I've ended up enjoying with it:

- Hum, whistle, and sing my favorite tunes and compare the images

- Take it on a nature walk and look at bird calls

- Try to make sounds to draw a specific picture or shape

How it works:

On load, the app requests microphone access, and connects that audio stream to a WebAudio AnalyzerNode. The AnalyzerNode offers a fast fourier transform that is called repeatedly using requestAnimationFrame. For each frame, the entire contents of the canvas are shifted left by 1 virtual pixel, and the current fourier frequency bins are plotted in the rightmost column.

Limitations:

- There are 1024 frequency bins, compared to roughly 20,000 hertz hearing range, so the resolution is pretty good but not perfect as each dot represents a range of ~20 hertz.

- Unfortunately doesn't work in iOS Firefox or Chrome; Apple won't offer microphone access via getUserMedia to 3rd party browsers.

- It has a PWA manifest; Android users should be able to add to homescreen. iOS users still can't since getUserMedia is restricted in iOS PWAs

asab··on Penrose: Create diagrams by typing mathematical notation in plain text
Maybe not, but this can: http://ariasabeti.me/

(scroll down)

asab··on Ask HN: Is it worth taking a 25% paycut to join a startup?
A few years ago I made a similar choice to work for a startup. It didn't work out; I learned that it's probably not worth it unless for me unless I know and am comfortable with the founders, as well as believe in the mission. Less than that brings a lot of uncertainty, compared to a stable high salary I might otherwise earn.
asab··on Plastic Bag Found at the Bottom of World's Deepest Ocean Trench
How long did it take to sink to the bottom?
asab··on Facebook rolls out job posts to become the blue-collar LinkedIn
I'm curious how this Facebook VP knows what he knows:

“One in four people in the US have searched for or found a job using Facebook” writes Facebook’s VP of Local Alex Himel.

asab··on Developers who use spaces make more money than those who use tabs
A metalevel flame war on spaces vs tabs..
asab··on Ask HN: What “old” programming languages will you still be using in 2017?
'see bang'
asab··on Can a molecule that makes mice smarter heal a human brain?
I'll just leave this here: http://www.metafilter.com/98974/This-isnt-your-grandfathers-...

Although it's important to point out that he wasn't psycho, and his preferences don't seem directly shaped by the treatment..

asab··on Co-founder myth
Appears to exhibit selection bias - what if there is a disproportionately large number of single-founder companies, which fail at a much higher rate than those with 2 or more?

The numbers are interesting, but very misleading. It still doesn't answer whether it's statistically wise to invest in a single-founder company, or help a founder decide how many cofounders they should try to get onboard.

If the strongest conclusion possible here is "Hey there's still hope" then we didn't need all these charts for that sentiment.

asab··on I2P: Invisible Internet Protocol
Comparison to Tor: https://geti2p.net/en/comparison/tor
asab··on Crying
It's shown in the data
asab··on Nestlé Wants to Sell You Both Sugary Snacks and Diabetes Pills
WALL-E is set in a post-apocalyptic world where the last few survivors who escape to space become lazy and ignorant. When they return to Earth at the end of the movie, they finally realize how much they had lost, such as the ability to dance.

For such a magic pill to exist would be wonderful and I'd love to have that option, but WALL-E as an example undermines your argument...

asab··on Tinker with a Neural Network in Your Browser
Update: after playing with this for way too long, I've found that it can converge to a spiral with 3 or 2 or even just 1 node in the 2nd hidden layer.

The 1 node case is especially interesting, because when it converges the single node must learn the whole spiral pattern. Although with noise it can be less reliable with more jagged edges, as well as take longer to converge (also bumped the learning rate down), seeing the spiral encoded directly in the 2nd hidden layer is more interesting to me.

http://playground.tensorflow.org/#activation=tanh&batchSize=...

asab··on Tinker with a Neural Network in Your Browser
http://playground.tensorflow.org/#activation=tanh&batchSize=...
asab··on The FBI Director Puts Tape Over His Webcam
At 25:20 Comey cites "liberty and security" as American founding values, rather than "liberty and justice"
asab··on A free shipping mystery
I'm curious where these numbers come from - is it based on your experience, or how is the calculation done?
asab··on No Brainer
> The point, though, is that under the right conditions, brain damage may paradoxically result in brain enhancement.

Makes me think of one of my favorite stories: 'Understand' by Ted Chiang. In the story, brain-damaged people treated with an experimental drug gain superintelligence.

asab··on Software error releases up to 3,200 inmates early
This is why you should write tests.
asab··on Show HN: Interactive Penrose tiles
Thanks for the feedback. What in particular did you find difficult or non-obvious about it?
asab··on Show HN: Interactive Penrose tiles
This tiler uses an algorithm that recursively subdivides triangles according to certain rules. Moving the mouse lets you easily see each transformation from the previous. Try clicking anywhere on the page too.
asab··on Silicon Valley’s Economic Indicator: Caltrain Ridership
Why is WSJ comparing ridership stats to Nasdaq? Correlation is not causation and this is a stretch.
asab··on Why Infographics Are Terrible, in One Terrible Infographic
Does anyone know if a modern version of the "dizzyingly complex" world history infographic exists?
asab··on World record solar cell with 44.7% efficiency
My question too - I wonder how it would perform in normal sunlight.
asab··on World record solar cell with 44.7% efficiency
There aren't even error bars in the article's graphs
asab··on Google challenges U.S. gag order, citing First Amendment
I appreciate how the article frames it as a matter of Google preserving their own reputation, as opposed to principle, or it being "the right thing to do." They have been receiving information requests with gag orders attached for years, but are only fighting it now that the cat's out of the bag and they have something to lose. Until then, it seems that Google was fine with the situation as it stood.

I think it's an important distinction to make, and underlines how companies ultimately serve their own self interest before anything else; they're not acting nobly, and the ultimate responsibility lies with the individual.

← PreviousPage 2 of 3Next →