79 karma · joined Sep 7, 2011 (15y ago) · 92 submissions
comment 10y ago · link · parent
comment 10y ago · link · parent
Edit: you happen to know if it has GPS or a step counter?
comment 10y ago · link · parent
awk 'function wl() {
rate=64000;
return (rate/160)*(0.87055^(int(rand()*10)))};
BEGIN {
srand();
wla=wl();
while(1) {
wlb=wla;
wla=wl();
if (wla==wlb)
{wla*=2;};
d=(rand()*10+5)*rate/4;
a=b=0; c=128;
ca=40/wla; cb=20/wlb;
de=rate/10; di=0;
for (i=0;i<d;i++) {
a++; b++; di++; c+=ca+cb;
if (a>wla)
{a=0; ca*=-1};
if (b>wlb)
{b=0; cb*=-1};
if (di>de)
{di=0; ca*=0.9; cb*=0.9};
printf("%c",c)};
c=int(c);
while(c!=128) {
c<128?c++:c--;
printf("%c",c)};};}' | sox -t raw -r 64k -c 1 -e unsigned -b 8 - -d
[1]: https://www.reddit.com/r/coding/comments/48zvn4/bash_one_lin...comment 12y ago · link · parent
comment 13y ago · link · parent
Just put in the music you want to hear, hit enter, and it'll add the best match to your playlist. Dead simple.
Disclaimer: I am in no way affilated with them, I just enjoy their service.
comment 14y ago · link · parent
comment 14y ago · link · parent
/edit: link to blog post: http://rsms.me/2012/10/07/mylang-tutorial1.html
comment 14y ago · link · parent
But that way I am also able to hit ESC and do a / for a search, like within vim, which I am much more used to than a search in emacs. I found that way combines the best of both worlds.
comment 14y ago · link · parent
> Why would I care about rewatchability? Speaking as a film buff; this is actually quite a good guide to the sort of movie it is (when combined with quality). If lots of people mark it good quality, but wouldn't watch it again, that implies that you have to be in the right mood for it.
If people mark rewatchability high, even if the quality rating varies, you know it is much more easy going film.
And so on. Combining data points is good :)
comment 14y ago · link · parent
Not necessarily. I am going to a lot of concerts (~3-4 per month), and I take pictures with my phone because of my horrible memory.
If stumble upon the photo a few months later, it triggers most of my memories and experiences, but without this sort of "evidence" I'd be totally lost on the details from that evening.
edit: And, after all, wasn't that kind of the original purpose for a photograph? To capture an awesome moment you want to memorize?
comment 14y ago · link · parent
The first couple of downloads (I don't know how many, maybe the first 100) of a track/album are usually free, and after that you pay for the music. So when you suddenly go all Lady Gaga as an Indie artist you get at least something out of it, but when nobody knows you the can have a free listen.
If the free downloads are out, you have to buy the music. Some artists have a steady price like 8-10$ per album or 3-4$ for an EP (which I find very reasonable and am totally willing to pay if it goes directly to the artist, and it mostly does!) and some let you choose the amount you want to pay for the music. And if that wasn't enough, if you have paid for the download, you get the audio files in almost every possible format existing.
Ah, bandcamp. Music distributing done right.
/edit:
Some more info: http://en.wikipedia.org/wiki/Bandcamp
- Pricing model: Set by artists
- Available audio formats are MP3, FLAC, AAA (aka .m4a), Vorbis and Apple Lossless and even more
- About 4 million songs online, including music from Sufjan Stevens, Amanda Palmer (Dresden Dolls) and Coer de Pirate, and game soundtracks from Minecraft, Machinarium and Plants vs Zombies
And last but not least: http://bandcamp.com/faq (yes, they do cover all questions who could possible arise)
(And no, I don't work for them. I just love them, as do many others: http://bandcamp.com/testimonials)
comment 14y ago · link · parent
> Of course it’s data! That’s what variables contain! That’s all they ever contain. It’s like if you were packing up your belongings in moving boxes, and on the side you labeled the box “matter.”
Nope, if he goes with that analogy that data contains data, the box should be labeled with box, imho.comment 14y ago · link · parent