Jun 28
I have installed Ubuntu 11.04 yesterday, it seems cool except being hard to personalize the GUI.
Using Text Mode Location Bar was disabled like the previous releases but i was able to enable it from preferences. Natty has no option for that. By knowing that in linux there is always an alternative way to solve such problems i have started search the solution for this and i have end up with the following command which permanently enables the text mode location bar for nautilus:
$ gconftool-2 --type=Boolean --set /apps/nautilus/preferences/always_use_location_entry true
The command changes /apps/nautilus/preferences/always_use_location_entry boolean parameter to be true where nautilus checks whether to always use the location bar in text mode. It’s also possible to switch location bar to text mode for the instance with the shortcut CTRL+L but when the directory changes it returns to its default.
I was uncomfortable with the default configuration but if somehow someone gets lock with text mode location bar and don’t like it to be so the parameter could be set to false with the following command:
$ gconftool-2 --type=Boolean --set /apps/nautilus/preferences/always_use_location_entry false
Feb 07
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
Feb 06
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..
Dec 12
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.
Nov 09
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…
Nov 09
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.
Nov 07
Linux kullanıyor ve Linux’a microsoft’un os’larından birinden geçtiyseniz Firefox kullanımında elinizin çokça alıştığı backspace tuÅŸunun sizi bir önceki sayfaya götürmediÄŸini göreceksiniz.
Bunu yapmak çok kolay! Firefox’ta adres çubuÄŸuna `about:config` yazıp ayar parametrelerini açıyoruz. Burada `browser.backspace_action` parametresini hızlı bir ÅŸekilde bulmak için arama çubuÄŸuna bu parametrenin adını yazıp, listede üzerine çift tıklıyoruz. Açılan diyalogdaki alanı “0″ olarak deÄŸiÅŸtiriyoruz ve “Tamam” butonuna basıyoruz.
Artık elimizin alıştığı üzere backspace ile geri gidebiliyoruz!
Aug 15
Kendi pc’mde django kurulu ve kullanılır bir halde iken ben ÅŸirket pc’me de django kurayım istedim. Kurulum problemsiz ÅŸekilde tamamlandı ancak server’ı çalıştırmak istediÄŸimde hata vermekteydi:
...
"/usr/lib/python2.6/site-packages/django/db/backends/mysql/base.py", line 13, in <module>
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb</module>
Aklıma bir anda djangoyu paket yöneticisinden kurmak geldi. Belki orda bu dependency’yi göz önünde bulundurmuÅŸlardır diye düşündüm (Belki Arch AUR’da olma ihtimali var). Fakat bu dependency zorunlu deÄŸil, keyfi. Hangi database’i seçtiÄŸine göre deÄŸiÅŸebilen bir ÅŸey. Dolayısıyla bunun göz önünde bulundurulmaması gayet normal.
Tabiki çalışan django, çalışmayandan iyidir diyerek hemen MySQLdb modülünü indirip kurmak için harekete geçtim. Hemen şurdan indiri verdim. Tar dosyasını açtım içine girdim ve buum :
# python setup.py build
# python setup.py install
Hiçte zor deÄŸil, öyle deÄŸil mi? Ondan sonra linux zor derler… Sonrasında django canavar gibi çalıştı…
Mutlu Son.
Jul 16
Bu bir “Arayı açtım, daha sık yazmam lazım!” yazısıdır:
HerÅŸey XMonad kurduÄŸum bilgisayarımda Matlab’ı çalıştıramamamla baÅŸladı. Aslında çalışıyordu ama içi tamamen gri bir pencere geliyordu. Ardından Netbeans ve Eclipse’i de düzgün bir ÅŸekilde kullanmayı beceremedim. Piskopata baÄŸladım. Hemen herÅŸeyi bilen bir bilgeye sormak aklıma geldi. Açtım alev saçan tilkiyi, yazdım düblü düblü düblü nokta gugıl nokta kom. Ben dedim, derdime derman ararım; o dedi, derdin sana derman. Ardından ekledi, “export AWT_TOOLKIT=MToolkit” komutunu çalıştıracan, ne dert kalacak ne tasa.
Civvent gugıl buldu derdime derman…
Son Yorumlar