Share

(Not Just) The Million Tracks Counter

2 Sep 2007, 00:08

So you think you'll reach million tracks? Well, I thought so before I counted when I will make it. You can find it out too, it's easy - Get out your calculators!
-Maynard James Keenan


OK, you don't have to. There are now tools which can do it for you. Idea comes from "People who believe that they can beat a MILLION plays before life beats them" group forum, and there is now one tool by OnDistantShores (at http://lastfmstats.livefrombmore.com/million.php), and one by me (at http://lfm.site11.com/).
I am going to add more features and I would also like to hear some suggestions by you. But first of all, let's take a look at what we already have.

Under the hood
The main idea may be weird, but can be also simply done:
Take the number of tracks remaining to (e.g.) million and divide it by average tracks per day.
Too big number? Divide it by 365 (take care of leap days, if you wish).
Still big number? Listen to more music. :-P

Whole magic. 90% of other code do some quite useless stuff then. That include some libraries like ADOdb Date Library for working with dates after year 2038. At first I didn't notice this limit since it was removed in PHP 5.1.0. But now it should work virtually by the year 3000. (Anyone complaining about Y3K compliance?)
And there is some minimal javascript using AJS library which I found to be really simple (Read: I don't need to spend weekend with 'Quick reference guide'.) and lightweight. (Read: It has only twice more features I need.)

That's it - glued all together with some bad-ass object-oriented hacking... ;-)

What's next?
The next thing will be badges. But how they should look like? 'XXX tracks in XX years' is neat, but you have surely plenty of better ideas...
And yes, I am going to give out the source code once I reach million tracks maybe yet this year.

Any ideas? Bugs? Money? Now it's your turn!

And sorry for my English, if it's not too late to apologize...

Comments

  • jellevc

    Haha great tool man! Your English is fine. :)

    2 Sep 2007, 08:47
  • Vinnie_NL

    thanks! really well done. I don't know if I should join the People who believe that they can beat a MILLION plays before life beats them-group. I need to reach the age of 96 for that :)

    2 Sep 2007, 13:06
  • macriti

    glad you solved out that date library problem.. waiting for badges now:)

    2 Sep 2007, 21:31
  • georgethe23rd

    Your counter's great! Thanks

    4 Sep 2007, 19:47
  • teddybeermaniac

    With average 40 tracks a day, teddybeermaniac will reach 1,000,000 tracks on 13rd of January 2075. He will be 84 years old.

    5 Sep 2007, 19:14
  • whitey25

    Nice going on the million tracks count, I do love it also very fun :D.

    7 Sep 2007, 15:22
  • syntax_error

    lytron: Thanks for ideas. Badges can be more personal (I don't think there is need for mentioning username in badge); I have currently two drafts - one is mentioned in journal, another will be something like [i]XXX tracks to YYY[/i]. Calendar? I wonder how it would look like... I will think about that. Ranking charts would be nice, maybe my next goal after badges. But first I need to finaly write caching layer or my hoster will kill me. (Yeah, there's no caching now and I know it sucks.) Also, thank you all for your reactions, I'm glad you like this toy.

    7 Sep 2007, 16:41
  • humanabattoir

    With average 34 tracks a day, humanabattoir will reach 1,000,000 tracks on 15th of May 2087. He will be 96 years old Whoa. I'll be long dead =P

    8 Sep 2007, 02:39
  • macriti

    [i]With average 103 tracks a day, macriti will reach 1,000,000 tracks on [b]3rd (4th, 11th)[/b] of November 2032. He will be 45 years old.[/i] Yes this gave me 3 results) sorry for using it several times, i know, no cash yet:) I think its related with including today and this week.. both included: 3rd of November 2032 today NOT included: 4th of November 2032 NEITHER today NOR this week included: 11th of November 2032 but I like new look) nice idea also about calendar, lytron.. the first XX members which will reach million plays, with their ages or reach dates on the calendar.. we can put it instead of those stupid pics on the group's main page) and finally about badges.. I'm on side of: 1)Million plays(tracks/scrobbles)? Only at the age of XX (XXX for someones:)) 2)XYZABC.. days till 1,000,000 plays(tracks/scrobbles) 3)The 1,000,000th track on 3rd of November 2032. ...

    8 Sep 2007, 18:18
  • syntax_error

    ad macriti: I don't mind if anybody will use it few times, it will generate huge traffic anyway. My hoster didn't complain yet, but I am afraid of it. Those variable results are quite cache related too. But I found it's not a bug, it's feature... ^^ Since I am using always up-to-date profile information, even a little more tracks you listen to can change the final date a lot. And it's caused also by floating values precision. It's kind of a weather prediction: the less time is remining to final date, the more exact result you get. And even a few seconds or tracks can make big change...

    8 Sep 2007, 21:29
  • Anrky

    Excellent work!

    9 Sep 2007, 03:44
  • Zowayix

    Somehow, I doubt I'm actually going to reach 1 million plays in less than one month.

    12 Sep 2007, 08:44
  • lampgirl

    love this counter...clearly i'm never gonna make it but i'll die with music

    12 Sep 2007, 11:07
  • Chives42

    With average 6806 tracks a day, Chives42 will reach 1,000,000 tracks on 9th of February 2008. He will be 15 years old. dude...

    15 Sep 2007, 17:48
  • syntax_error

    Chives42: Yeah, there are more users reporting some unbelievably high number of average tracks per day. But Last.fm itself reports the same number (hold you mouse for a while on 'Tracks played' in your profile). So, it's a Last.fm bug or some users just simply listen to too much music (or cheating someway). Of course, the longer you are using Last.fm, the more accurate numbers you get.

    15 Sep 2007, 20:18
  • gammafar

    Awesome.

    16 Sep 2007, 19:13
  • yomcat

    Those large numbers seem to be from brand new members. That haven't be around for a day. So tracks per day is like a division by 0, and gets funky results...

    18 Sep 2007, 02:29
  • Rakazishi

    yeah i like it ^^

    20 Sep 2007, 18:00
  • spacepasta

    I loves it!

    30 Sep 2007, 10:12
  • EreKaiser

    I Wonder what might be mine MILLIONTH track :D haha I'm 75 years old when I reach that.. I propably listen to bethoven or something :D

    9 Oct 2007, 12:13
  • syntax_error

    ad furious_cheese: Alright, it's my mistake - reseted profiles aren't supported still yet. I am sorry, I don't have time to fix it now (and won't have in the next few weeks), but there will be more features to come...

    16 Oct 2007, 20:34
  • TypeJack

    With average 5 tracks a day, emmaliketotally will reach 10,000,000 tracks on 9th of October 7471. He/she will be 5480 years old. Well, nothing is impossible... Or isn't?

    21 Oct 2007, 10:05
  • the_amek

    With average 34 tracks a day, the_amek will reach 1,000,000 tracks on 31st of January 2088. He will be 105 years old. Kua, to abych přestal chlastat a hulit, nebo se toho nedožiju. :-) Dobrá vychytávka!

    26 Oct 2007, 13:05
  • 0k0k0

    i'll reach 99,999,999 tracks on 8th of March 4580. i will be 2680 years old. lol stats.

    29 Nov 2007, 06:41
  • megadethnatic

    Maybe an error: The script says my nick isn't found. :/

    23 Jan 2008, 21:20
See all 54 comments
Leave a comment. Log in to Last.fm or sign up (it’s free).