News for hackers. Stuff that matters.

BinaryBullet

Re:We memo all the things (2020) on Monday October 25, 2021 @10:28AM (#28988185)
I wonder if this is the plugin they are using:

https://github.com/steadicat/eslint-plugin-react-memo

Does anyone know of any other eslint plugins that help enforce this?

The best version I remember hearing about is a janitor pitching the idea of Flaming Hot Cheetos:

https://news.ycombinator.com/item?id=20227175

https://www.washingtonpost.com/news/morning-mix/wp/2018/02/2...

Re:Floating Point Visually Explained on Thursday September 28, 2017 @09:29PM (#15362102)
See also: An interactive floating point visualization: https://evanw.github.io/float-toy/
Re:Show HN: An open source resume builder which works offline on Friday September 01, 2017 @04:02PM (#15151948)
Good job. Very cool!
not meows, but here are some purrs: https://purrli.com/
Re:Material-UI on Friday June 09, 2017 @06:21PM (#14525045)
...and I'm excited to try out the new grid. I had been using https://github.com/rofrischmann/react-layout-components in most material-ui projects, but I'm glad they decided to add layout features.
Re:Material-UI on Friday June 09, 2017 @06:20PM (#14525037)
The docs site also just "feels" snappier to me in Firefox for some reason. I'm not sure if it's actually faster, but clicking around feels more responsive.
Re:Material-UI on Friday June 09, 2017 @06:06PM (#14524964)
The new material-ui@next (version 1.0) docs are here:

https://material-ui-1dab0.firebaseapp.com/

I had always wanted to do a webaudio port of:

http://www.cs.princeton.edu/~prc/SingingSynth.html

but never got around to it. This is great!

Re:MP3 for Image Compression (2006) on Monday April 17, 2017 @11:45PM (#14136297)
Thanks for the link! I hadn't heard of this before.
Re:MP3 for Image Compression (2006) on Monday April 17, 2017 @10:47PM (#14136126)
Not really related, but a while back I wrote a script to visualize/hear audio generation loss with different file formats:

https://github.com/skratchdot/audio-generation-loss/tree/mas...

So, mp3s add a bunch of silence to the beginning of the file, and ogg files start to "chirp". I never got around to putting this info in a consumable, easy to understand format though. The videos in these folders just continuously re-encode a source file w/ a given lossy format.

See also: https://en.wikipedia.org/wiki/Generation_loss

One of the cofounders of the Echonest (acquired by Spotify) created this back in 2004:

    "A Singular Christmas" was composed and rendered in 2004. It is the automatic statistical distillation of hundreds of Christmas songs; the 16-song answer to the question asked of a bank of computers: "What is Christmas Music, really?"

https://soundcloud.com/bwhitman/sets/a-singular-christmas
Re:VeraCrypt 1.18a released on Friday August 19, 2016 @09:03AM (#12319672)
There's a good interview on Youtube with the main author "FLOSS Weekly 340: VeraCrypt": https://www.youtube.com/watch?v=rgjsDS4ynq8
Re:Show HN: Deciso, a collaborative music player on Friday June 24, 2016 @11:57AM (#11970804)
Cool site. Keep up the good work!
This article is a good / easy to follow explanation of the karplus-strong algorithm.

Here's a nice web audio demo: https://chinpen.net/castro/ that uses this js lib: https://github.com/mrahtz/javascript-karplus-strong/

Re:Google's art machine just wrote its first song on Thursday June 02, 2016 @12:29AM (#11820374)
The Magenta Project source code is available under the TensorFlow Organization on Github: https://github.com/tensorflow/magenta
Re:Glitch: beyond the bytebeat on Wednesday May 25, 2016 @10:54AM (#11770190)
Thanks for sharing. I remember seeing 'glitch' posted a while back, and am glad to see they've updated it with a bunch of new features.

I wish `noscript` didn't recognize a bunch of the example links as "potential xss", but that's easy enough to fix (can't have it both ways). NOTE: the links aren't XSS, just look "codelike" for obvious reasons.

Will you post insight into the data you've collected? Obviously I don't care about IP addresses, etc, but it would be nice to know how many people have submitted data vs how many unique hashes have been collected for say the "Fingerprint using DynamicsCompressor", etc. I also haven't checked every page on the site, so the data might already be there (and I'm missing it)...
Well, I just created a small POC:

http://plnkr.co/edit/hKvPpEZQGCSkCNKly5Z3?p=preview

It would need to remember your choice so you don't get prompted everytime, but that's a small/easy change to make.

I don't know of any. I would think it would be fairly easy to create a userscript or extension to stub built-in APIs (maybe using something like testdouble.js or sinon.js to override the default global objects that you are trying to "disable"). I'm not sure what issues you'd run into on various pages if you did that though (so it'd probably need a lot of iteration- and fixing bug reports).

It might be a fun project to start though. I've been really enjoying testdouble's API (and have started using that for my unit tests).

Re:V8 Release 5.1 on Saturday April 23, 2016 @09:14AM (#11555409)
Thanks for the link. I didn't know about Orinoco, and I'm excited about WASM.

...and performance improvements are always good!

Re:Show HN: Puzzle Pretty Pictures on Tuesday April 19, 2016 @12:45PM (#11528217)
very cool!
I believe 'babel-root-import' works on windows (haven't tested myself). It's a lifesaver if you are already working w/ babel (which I am).

It really saves time when you forget what nesting level you are at, and are trying to get to some other folder. I can easily remember my absolute paths, but always forget the amount of "../../.." I need. It's also nice to be able to copy imports from your "src" folder to your "test" folder, and just have them work (which they do when using absolute paths).

This is an interesting take on that idea (using symlinks instead of transpiling).

Yeah... I just vaguely remember something like this popping up in the past. I guess it was a slightly different issue. Your suggestion would work, or at least only showing up in feeds until the collaboration has been accepted.

What's your /graphs/traffic page look like? Have a lot of people checked the page out?

https://github.com/719Ben/notice-me/graphs/traffic

You showed up in my feed as well (multiple times). I thought this was an issue that had been fixed in the past?
Re:Alert: NPM modules hijacked on Wednesday March 23, 2016 @01:27PM (#11346461)
NOTE: this only works for NPM 3's flat node_module structure
Re:Alert: NPM modules hijacked on Wednesday March 23, 2016 @01:09PM (#11346320)
In the root project folder (containing package.json and ./node_modules), you can run the following:

    comm -12 <(ls ./node_modules) <(curl https://gist.githubusercontent.com/azer/db27417ee84b5f34a6ea/raw/50ab7ef26dbde2d4ea52318a3590af78b2a21162/gistfile1.txt) 

It will output any of the modules that @azer unpublished yesterday (that are being used by your project).
Re:Thank you for ad blocking on Sunday March 20, 2016 @12:04AM (#11321747)
There's an inline style on a div that states:

    margin-left: 150px !important; margin-right: 150px !important;
Changing the `150px` to `10%` seems to make the site slightly responsive while looking about the same (on my macbook with a 1440px viewport):

    margin-left: 10% !important; margin-right: 10% !important;
Re:WebpackBin: Like Codepen, but Powered by Webpack on Wednesday March 09, 2016 @12:18PM (#11254198)
This is really cool. I've been using various tools for quick demos, but have really been looking forward to something that makes use of webpack and npm (in the browser).

Older »