Amarok Script: Gnome Multimedia Keys 2

, , , , , , , Yorum Yok »

These days I am really into Amarok and music. Maybe its because my continuing graduation project about digital filtering. I’m interested in and working on sound signals.

Today I had a question mark on my mind; why I couldn’t use my multimedia keys of my notebook on Amarok? By default I could use the multimedia keys with native gnome players such as totem, Rhythmbox and etc. Since I couldn’t find satisfying native media player on gnome, so I prefer Amarok.

After a goggling session i have found an Amarok Script in the kde-apps.org which is called Gnome Multimedia Keys 2. By installing it my blue leded multimedi keys work like a charm.

Kind Regards

Paylaş - Share :
  • Twitter
  • Facebook
  • LinkedIn
  • del.icio.us
  • Tumblr
  • Diigo
  • StumbleUpon
  • Technorati
  • Google Bookmarks
  • RSS

Last.fm Scrobbler Problem on Amarok / Ubuntu

, , , , , , , , 3 Yorum »

In fact i have started to hate Last.fm after blocking non-subscribed users out of US, UK and Germany to listen music on their system. I have searched similar sites to consider my music taste and give me same mixture of songs. I must confess that i couldn’t find one like Last.fm .

Around these thoughts first i tried some tricks to listen music on it but it was nothing but a failure. Then i have decided to use last.fm to determine mine music taste by scrobbling. So I could benefit from its recommendations. But there were a small problem, my favorite music player couldn’t scrobble my statistics…

I have been using Ubuntu and Amarok for a long long time. Amarok has Last.fm plugin for years that enables both listening and scrobbling. But this time after doing configuration Amarok couldn’t able to save my login information that ask everytime. As a programmer i guess by not having the login information Amarok couldn’t be able to call Web Service to scrobble songs which needs authentication…

Lets cut the long story short, since Amarok is native KDE application it wants to save the login information for Last.fm to KDE Wallet, but in Ubuntu, i don’t have KDE Wallet installed and i don’t wanna have. We should say Amarok to ignore wallet! If we do so Amarok will save data on plain text. It’s not safe at all but its not a big deal for me and for the majority i thing. To do this the file ~/.kde/share/config/amarokrc should be edited. To edit this file it should be opened by an editor, it could be gedit, nano, vi, vim, emacs, etc. whatever you want. In following command-line example i used vim.tiny which is one of the default editors in Ubuntu:
$ vim.tiny ~/.kde/share/config/amarokrc

In editor Service_LastFm section should be found which seems like:
[Service_LastFm]
fetchSimilar=false
ignoreWallet=no
scrobble=true
sessionKey=

The bold line “ignoreWallet=no” should be changed:
[Service_LastFm]
fetchSimilar=false
ignoreWallet=yes
scrobble=true
sessionKey=

After this changed made, Amarok should be restarted if it was open. Then you sould do your Last.Fm configurations from Settings. Then it will write login information to the file that was edited. Both username and password could be seen from that file. Better not to share that file after this configuration!

Kind Regards..

Paylaş - Share :
  • Twitter
  • Facebook
  • LinkedIn
  • del.icio.us
  • Tumblr
  • Diigo
  • StumbleUpon
  • Technorati
  • Google Bookmarks
  • RSS

Java Date Formatter

, , , , , , , Yorum Yok »

Her seferinde javada tarih(Date) objesini istediğim formatta yazıya(String) çevirmem gerektiğinde googleda aramaktan bıktım :) . Örnek kod aşşağıda:

I’ve got bored to googling everytime when I need to convert Date object to String in a format that I wanted :) . Example code is below:

SimpleDateFormat formatter= new SimpleDateFormat ("yyyy.MM.dd ww 'at' hh:mm:ss a zzz");
Date now = new Date();
System.out.println("for:" + formatter.format( now ));

Paylaş - Share :
  • Twitter
  • Facebook
  • LinkedIn
  • del.icio.us
  • Tumblr
  • Diigo
  • StumbleUpon
  • Technorati
  • Google Bookmarks
  • RSS

Bandwidth Exceeded :s

, , 1 Yorum »

Az evvel farkettim, hosting hesabımın band genişliği dolmuş da girişlerde hata verir olmuş. Boşta duran bandwidth hakkımı bari yönlendireyim de zaten pagerank’ı 0 olan sitemi kazara ziyaret edenler olursa göz zevklerini bozmayayım dedim. Gerçi az daha sabretseydik şubat ayıma giryoduk :D

Paylaş - Share :
  • Twitter
  • Facebook
  • LinkedIn
  • del.icio.us
  • Tumblr
  • Diigo
  • StumbleUpon
  • Technorati
  • Google Bookmarks
  • RSS

Türkçe WordPress locale.php

, , , , , , , 4 Yorum »

WordPress’in son versiyonu olan 2.9′un çıkmasıyla blog’umu en güncel hale getirdim. Ancak her seferinde olduğu gibi tarihlerin türkçeleşmesini sağlayan locale.php dosyasını yedeklemeyi unuttum.

Zamanın behrinde hazırını bulamayınca kendim oluşturmuştum bu dosyayı. CTF‘ye katılmak üzere gittiğim İstSec‘de şahsen tanıştığım TEAkolik Hamza hocamın WordPress’in Türkçe sürümü ile ilgili şu feed‘ini görünce kendi kendime bizim dosyayı çalacak bir yer bulduk diye sevindim. Tabi sevincim kursağımda kaldı :D . Zira arkadaşlar yönetim panelini dahi tercüme etmişlerdi ama bizim dosya halen orjinal halindeydi.

Fazla arama zahmetine katlanamayıp kolları sıvadım ve başladım dosyayı düzenlemeye. Aslında dosyayı düzenlemede birşey yok ama angaryası çok. Sonuç olarak dosyayı yine hazırladım ve aynı hatayı yineleme ihtimalime karşın birde online kopyasını oluşturdum. Eğer ihtiyacı olan olur ve link ölmüş olursa irtibata geçmekten çekinmeyiniz.

Haaa İstSec ve CTF’den bir iki söz etmekte fayda var. İş dolayısıyla seminerlere katılamadım ama Bilal’in yazdığı şu, bu ve o‘ya bakıldığında güzel bir resim ortaya çıkıyor. CTF’ye geldiğimizde ise karizmaya fazla zarar vermemek için sadece bir iki resim linki vermekle yetineceğim. :)

Paylaş - Share :
  • Twitter
  • Facebook
  • LinkedIn
  • del.icio.us
  • Tumblr
  • Diigo
  • StumbleUpon
  • Technorati
  • Google Bookmarks
  • RSS

Make Me Social

, Yorum Yok »

I have just installed make me social plug-in and its a trial blog post :) .

Paylaş - Share :
  • Twitter
  • Facebook
  • LinkedIn
  • del.icio.us
  • Tumblr
  • Diigo
  • StumbleUpon
  • Technorati
  • Google Bookmarks
  • RSS

İstSec ’09 Capture The Flag Yarışmasına Katılıyorum

, , , , , Yorum Yok »

Pazar günü, mesai arkadaşım Mutlu ile İstSec kapsamında yapılacak Capture The Flag(CTF) yarışmasına katılacağım. Umarım başarılı oluruz. :)

Paylaş - Share :
  • Twitter
  • Facebook
  • LinkedIn
  • del.icio.us
  • Tumblr
  • Diigo
  • StumbleUpon
  • Technorati
  • Google Bookmarks
  • RSS

MySQL “skip-networking”

, , , , , Yorum Yok »

MySQL’i senelerdir ama şöyle ama böyle kullanıyorum. Konfigürasyonuyla da işim düştükçe uğraşıyorum. Aynen dün olduğu gibi. Önceki gün işte kendi kurduğum bir makinada MySQL’e yazdığım bir web uygulamacığından JDBC’ile bağlanmak istediğimde aynı makinada bile bağlanmam mümkün olmadı. Sebebi ise Arch’ın repolarından gelen MySQL’in varsayılan kofigürasyonundaki “skip-networking” ifadesi. Lokal bağlantılar hariç bağlantıları kabul etmesi için bu ifadenin kalkması gerekiyor…

Paylaş - Share :
  • Twitter
  • Facebook
  • LinkedIn
  • del.icio.us
  • Tumblr
  • Diigo
  • StumbleUpon
  • Technorati
  • Google Bookmarks
  • RSS

Crontab Kullanımı

, , , Yorum Yok »

Kendime not olması ve unuttuğumda bakmak için yazıyorum.

Bugün lazım oldu, tabi akılda kalmıyor böyle şeyler. Crontab’ın konfigürasyon dosyasına girilen satırlar aşşağıdaki gibidir:
* * * * * komut

*’ların manası ise:

# field #   meaning        allowed values
# -------   ------------   --------------
#    1      minute         0-59
#    2      hour           0-23
#    3      day of month   1-31
#    4      month          1-12 (or names, see below)
#    5      day of week    0-7 (0 or 7 is Sun, or use names)

Mesela her 5 dakikada bir bir script çalıştırmak istersek:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/ismail/bin/getWanIP.sh

Crontab’ın konfigurasyon dosyasını düzenlemek için:
crontab -ekomutunu kullanabiliriz.

Paylaş - Share :
  • Twitter
  • Facebook
  • LinkedIn
  • del.icio.us
  • Tumblr
  • Diigo
  • StumbleUpon
  • Technorati
  • Google Bookmarks
  • RSS
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in