Linux

Highlighting Nano

If you accessing to remote host and changing some configuration file or anything from console you have to be careful because any mistake can cause a big fault.So that i think when changing configuration file from console two color is not enough.That’s why lets make a colorful nano. First create a “.nanorc” file with

  1.  

then write into it

  1. span class=”st0″>"/usr/share/nano/tex.nanorc""/usr/share/nano/perl.nanorc""/usr/share/nano/python.nanorc""/usr/share/nano/html.nanorc""/usr/share/nano/ruby.nanorc""/usr/share/nano/nanorc.nanorc""/usr/share/nano/java.nanorc""/usr/share/nano/patch.nanorc""/usr/share/nano/man.nanorc""/usr/share/nano/c.nanorc""/usr/share/nano/sh.nanorc"

› Continue reading

Tags: , , , , ,

Thursday, May 14th, 2009 Linux, OS, Tips, Uncategorized Comments Off on Highlighting Nano

I Installed BETTER


› Continue reading

Tags: , ,

Saturday, May 9th, 2009 Fun, Linux, OS, Uncategorized Comments Off on I Installed BETTER

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

Ubuntu altinda mp3 kesmek {Cutting mp3 files over ubuntu}

Ubuntu aldinda mp3 kesmek,bicmek parcalamak istiyorsunuz.OK hadi yapalim 🙂

Ilk once gerekli programimizi yukluyoruz.

  1.  

daha sonra kesilecek mp3’un oldugu klasore gidiyoruz { tabiki konsolu kullanarak 🙂 }.Daha sonra kesmek istedigimiz duruma gore yani mp3u basindan veya sonundan kesme durumlarina gore kodumuzu yaziyoruz.Ornegin elimizdeki mp3’un 1 dakika 48 saniyeden sonraki kismi gerekiyorsa yazacagimiz kod ;

  1.  

bu kodun sonucunda yeni olusan mp3 dosyamiz {sliced.mp3} eski mp3umuzun 1 dakika 48 saniye sonradan baslayan versiyonu oluyor.Simdi de bu islemin tam tersini yapalim ve 1 dakika 48 saniyelik kismindan yeni bir mp3 yapalim.

  1.  

bu kodun anlami ise sifirinci saniyeden basla ve 1 dakika 48 saniye olunca bu kismi output1.mp3 adi altinda kaydet.Dikkat ederseniz ikinci kisim kac dakika devam edecegi degil tam kesilecegi zamanidir.Buna gore eger biz 1 dakika 48 saniyeden sonra baslayan ve bir dakika devam eden bir mp3 kesmek istiyorsak kodu soyle olmalidir.

Ubuntu aldinda mp3 kesmek,bicmek parcalamak istiyorsunuz.OK hadi yapalim 🙂

Ilk once gerekli programimizi yukluyoruz.

  1.  

daha sonra kesilecek mp3’un oldugu klasore gidiyoruz { tabiki konsolu kullanarak 🙂 }.Daha sonra kesmek istedigimiz duruma gore yani mp3u basindan veya sonundan kesme durumlarina gore kodumuzu yaziyoruz.Ornegin elimizdeki mp3’un 1 dakika 48 saniyeden sonraki kismi gerekiyorsa yazacagimiz kod ;

  1.  

bu kodun sonucunda yeni olusan mp3 dosyamiz {sliced.mp3} eski mp3umuzun 1 dakika 48 saniye sonradan baslayan versiyonu oluyor.Simdi de bu islemin tam tersini yapalim ve 1 dakika 48 saniyelik kismindan yeni bir mp3 yapalim.

  1.  

bu kodun anlami ise sifirinci saniyeden basla ve 1 dakika 48 saniye olunca bu kismi sliced2.mp3 adi altinda kaydet.Dikkat ederseniz ikinci kisim kac dakika devam edecegi degil tam kesilecegi zamanidir.Buna gore eger biz 1 dakika 48 saniyeden sonra baslayan ve bir dakika devam eden bir mp3 kesmek istiyorsak kodu soyle olmalidir.

  1.  

Bu yazim icinde benden bu kadar.Son olarak diger ozelliklerini kullanabilmek icin yazim kurallarini vermek istiyorum.

Usage: mp3cut [-o outputfile] [-T title] [-A artist] [-N album-name] [-t [hh:]mm:ss[+ms]-[hh:]mm:ss[+ms]] mp3 [-t …] mp3
-o output: Output file, default mp3file.out.mp3

Bu bilgiye direk mp3cut yazarak da ulasabilirsiniz.

Note : English parts will be appear soon.At least i hope 🙂

Tags: , , , , , , , ,

Friday, February 6th, 2009 Bash, Linux, OS, Programming, Tips Comments Off on Ubuntu altinda mp3 kesmek {Cutting mp3 files over ubuntu}