taner senyurt

Ubuntu Volume Wheel Problem [ Fix ]

I have a toshiba u305-s5077 laptop.It had a problem with volume wheel like when i tried to use volume wheel it makes the volume iteratively maximize or minimize(And it has no end).While it is happening i cant write anything or i cant click something.That’s why i had to restart X screen with CTRL+ALT+BACKSPACE.

I search the internet and i found a solution for it.
At first if it won’t work if you don’t want to kill X screen at least you can use this;
Change your status to text mode via using CTRL+ALT+ {F1-F2-F3-F4-F5-F6}.Then turn back X Screen with ALT+F7.

Lets make it works:
Firstly lets create a backup if it wont work or if something goes wrong we can handle it.
› Continue reading

Tags: , , , , , , , , , ,

Sunday, March 29th, 2009 C & C++, Linux, OS, Programming, Tips, Uncategorized 2 Comments

Google Android

Lets develop mobile applications with using google android SDK.

Firstly we have to download Eclipse (at least i download it 😛 ).From Eclipse.Org

after that extract it some where and open Eclipse 3.4 Ganymede

  1. Start Eclipse, then select Help > Software Updates….
  2. In the dialog that appears, click the Available Software tab.
  3. Click Add Site…
  4. Enter this as the Location:
    https://dl-ssl.google.com/android/eclipse/
    Alternatively, you can use http in the Location URL, if you are having trouble with https (https is preferred for security reasons).
    http://dl-ssl.google.com/android/eclipse/
    Click OK.
  5. Back in the Available Software view, you should see the plugin. Select the checkbox next to Developer Tools and click Install…
  6. On the subsequent Install window, “Android Developer Tools”, and “Android Editors” should both be checked. The Android Editors feature is optional, but recommended. If you choose to install it, you need the WST plugin mentioned earlier in this page. Click Next.
  7. Accept the license agreement and click Finish.
  8. Restart Eclipse.

After all these operations lets add our SDK.Download sdk from here

Extract your sdk somewhere and add your sdk’s path with clicking Window->Preferences-Android

then with using browse select your sdk location. That’s it.Lets watch how its simple to write code for mobile phones.
› Continue reading

Tags: , , , , , ,

Thursday, March 5th, 2009 Java, Programming Comments Off on Google Android

Encoding mysql dump file while importing from console

If you are working with big databases we can not import dumb file from phpmyadmin or something like that.That’s why we have to know how to import dump file over console.

  1.  

Sometimes, specially if our applications uses other languages than English, we have to define which encoding type we gonna use. In that cases we can select the default encoding just like this:{at least it worked for Turkish}

  1.  

Tags: , , , , , , , ,

Monday, March 2nd, 2009 Bash, Linux, OS, Programming, Tips, Uncategorized 2 Comments

Flv’den mp3 elde eden bash programi {Converting flv to mp3}

Bash yani kabuk programlamayla alakali basit bir ornek .Bu program basitce icinde oldugu klasordeki butun flv dosyalarini mp3 yapmaya calisiyor.Kodu aciklarsak ilk satir foreach dongumuz butun .flv ile biten dosyalari al her birini $f in icine atip toplam sayisi kadar dondur anlaminda do dan sonra her donus icin yapacagi islemi yazmisiz.Her donuste o donusteki $f degiskeninin icindeki muzigi 128kb audio bitrate kalitesinde mp3’e ceviriyor ve her bir dosya mp3’e cevrildikten sonra konsola echo kisminda yazan yaziyi basar.Assagidaki yazan kodumuzu converter.sh olarak kaydediyoruz.Ve konsoldan

bash converter.sh

ya da

sh converter.sh

deyip programimizi calistiriyoruz.Islem tamam.

  1. span class=”st0″>"$f dosyasi $f.mp3 adi altinda kaydoldu…"

Tags: , , , , , , , ,

Thursday, February 5th, 2009 Bash, Linux, OS, Programming, Tips Comments Off on Flv’den mp3 elde eden bash programi {Converting flv to mp3}

Video Sitelerinden İçerik İndirmek ve Videolardan Ses Almak

Kim demis ubuntu(Linux) kullanmak zor diye.Az bucuk bilgi ve arastirmayla ubuntu altinda yapamayacaginiz cok az sey var.Mesela cok sevdiginiz bir klibi yada guzel bir videoyu youtube,dailymotion ve bunlar gibi bir video izleme sitesinde buldunuz ve indirmek istiyorsunuz.Windows’ta  olsa ne yapardiniz?Hemen bir tane video indirme programi arar ve bunun freeware olmasini umit ederdiniz ya da fellik fellik googleda bu islemi sizin yerinize yapacak bir site arardiniz.Peki ama bunu ubuntu altinda nasil yapabiliriz acaba?

Ilk olarak indirecegim videoyu online olarak izleyelim .Ne indirecegimizi bilelim dimi 🙂 Daha sonra tek yapmaniz gereken terminali acip

  1.  

Buradaki “cp”-copy-kopyala , “-R”-recursively-tekrarli bir sekilde{birden cok dosya varsa diye} ,”/tmp/”-source-kaynak adress,”Flash*”-filenames starts with Flash-Flash ile baslayan dosyalarin tumu, “/home/turshu/Desktop”-destination-kaydedilecek yer.Kisaca bu kodun yaptigi is sadece /tmp deki Flash ile baslayan dosyalari alip benim masaustume atmak.

Peki bu indirdigimiz videonun icinden sesini mp3 olarak cikarmak istersek ne yapacagiz ?

Ilk olarak sistemimizde ffmpeg yuklumu onu konrol etmeliyiz,konsola ffmpeg yazarak sistemimize yuklu olup olmadigini anlayabiliriz ,sistemimizde yuklu degilse command not found gibi bir hata dondurur.Yuklemek icin yapacagimiz tek sey ;

  1.  

kurulduktan sonra konsoldan icinden mp3 elde edecegimiz video dosyasinin klasorune girip

  1.  

bu komutumuzla standart degerlerde ( 64k/s ) FlashgUFL2Z dosyasi icindeki sesi output.mp3 dosyasina kaydettik.Eger ses dosyamizin kalitesine karar vermek istiyorsak kodumuza -ab ile audio bitrate ini belirliyebiliriz.Ornegin ;

  1.  

Bu islem size her ne kadar 128k ses kalitesi sunacak olsada videonun icindeki ses kalitesinden daha fazlasiniz vermiyecektir.Bundan dolayi cevirme islemini yapmadan

  1.  

diyerek icindeki sesin kalitesini ogrenebiliriz.Eger videonun icindeki ses kalitesi 96k ise ve siz 128 yap demisseniz bile sesin kalitesi olandan daha fazla artamayacagindan 128k ses kalitesinde gorunur ama yine 96k lik bir sese sahip oluruz :D.

Tags: , , , , , , ,

Wednesday, February 4th, 2009 Bash, Linux, OS, Programming, Tips Comments Off on Video Sitelerinden İçerik İndirmek ve Videolardan Ses Almak