Piotr Gabryjeluk blog

Fortunka Dnia

1222799436|%e %B %Y

Właśnie wymyśliłem tekst, który mógłby przyświecać każdemu w czasie jego codziennej twórczej pracy:

Dobre pomysły są najlepsze.

Dobre? Na miarę ludowych przysłów?

PS: szalenie zapracowane dni się szykują. Jutro odbieramy jakieś dyplomy albo generalnie wyrazy wyróżnienia za nasz zespołówkowy zeszłoakademickoroczny projekt platformy dyskusyjnej Aurochs.

Comments: 1, Rating: 0

Będziemy Mieli Swojego Barcampa

1222704116|%e %B %Y

Po uczestnictwie w Poznańskim Barcampie wskrzesiliśmy swoje plany dotyczące zorganizowania spotkania branży IT w Toruniu.

Wydaje się, że teraz jest nawet bardziej odpowiednia pora niż ostatnio (czyli tak z rok temu), gdyż mamy troszkę bardziej korzystną sytuację w toruńskim ogródku. Dobrzy informatycy są poszukiwani przez większość firm, więc firmy chętniej się zaprezentują, co zapewnia ciekawy początek serii (miejmy nadzieję) takich spotkań.

Głównym celem imprezy jest oczywiście integracja środowiska i zdobycie w nim rozeznania.

Spotkanie planowane jest na ostatnią sobotę października (25 października 2008). Najbardziej prawdopodobnym miejscem odbycia się Gotyk.IT (kodowa nazwa spotkania) jest Piwnica pod Aniołem (w samym centrum Torunia — pod pomnikiem Kopernika w budynku Ratusza).

Formuła oczywiście bardzo luźna z możliwością zaprezentowania swojej firmy/osoby. W planie kilka prezentacji.

Już teraz zapraszam, zarówno do uczestnictwa, jak i do pomocy.

UPDATE: A oto zdjęcie ekipy Wikidota organizującej imprezę z cyklu Grill IT:

flickr:2864774835

Comments: 1, Rating: 0

Śmiejący Się Stworek

1222640951|%e %B %Y

Zabawkowy Tickle Me Elmo

… właśnie Cię wyśmiał!

Comments: 1, Rating: 0

Hacking pympd and Last.fm

1222468561|%e %B %Y

Hello again,

My girlfriend was very unhappy with me not having my played songs submitted to Last.fm social music revolution portal.

That was because used to use Music Player Daemon and its various clients. Most of the clients don't implement the AudioScrobbler protocol, but as a matter of fact this is not needed, because there can be a separate MPD client meant just to submit the info to last.fm, running in parallel to one actually playing music.

I used to use scmpc for this reason, but since I bought my new laptop and migrated to Ubuntu I quit it — because the application was not in their repo.

Today I decided to find some short python-based implementation of audioscrobbler and enrich one of MPD clients with the Last.fm integration. I found pympd really good — nice looking, having plugin architecture, clean and simple. So I decided it to be my new favorite MPD client. Then I quick-hacked some random plugin and created a new one including almost 100% source from python-scrobbler project. The plugin:

  • sends "now playing" info to Last.fm on each track-change and loading of plugin
  • sends "song played" info to Last.fm on track-change and plugin unload event if song was listened at least to the half of its total length and is longer than 30 seconds.

Now the Last.fm user and password are hardcoded, but I hope to create a quick-and-dirty configuration window for it.

I had some problems with time convertion. The python-scrobbler sources suggest using datetime.utcnow() method while actually using datetime.now() is giving the right results.

You can check my Last.fm records:

  • July — submitted by scmpc from Gentoo — the old computer
  • first records in October — submitted with MY PLUGIN
  • two hours gap — before fixing UTC issue, the songs were submitted as played two hours earlier (timezone difference)

So it seems working!

It's a pretty cool Python day today.

Comments: 4, Rating: 0

page 1 of 512345next »

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License