yine, yeni, yeniden CD DVD problemleri…

December 13, 2006

Bilgisayarınızdaki en sorunlu alet CD/DVD okuyucu değilse,
bu cihazı pek fazla kullanmadığınızı düşünürüm.

CD/DVD diskler, ne kadar özen gösterirseniz gösterin
hatalı yazılabilir, okunurken çizilip işe yaramaz hale gelebilir.
CD/DVD cihazları ise birkaç sene içerisinde ömrünü doldurur.

Şimdiye kadar kaybettiğim veri miktarı, doğru okuduklarıma yakındır.
Bunların çoğunu ben yazmamış olsamda sonuç değişmiyor.
Bu medya tipine güvenmiyorum.

Peki neden kullanılıyor CD/DVD…
Çünki artık tarih olmuş floppy ler kadar bile güvenilir olmayan bu optik medya,
maalesef günümüzün en ucuz veri depolama alternatifi.

smart-card, USB flash disk, harici harddisk gibi seçeneklerin,
depolama maliyetinin ucuzlayacağı,
hızlı ve ucuz internet bağlantısı sayesinde
veriyi kargo paketleri ile iletmek zorunda kalmayacağımız
günleri hayal ediyorum.


C/C++ development under Windows using Eclipse.

December 12, 2006

If you are searching a free and quality IDE for C/C++ development,
you may look at eclipse. ( specially if you are a java programmer too … )

check up-to-date versions of software before download.
i keep version numbers for simplicity.

  • first of all, eclipse needs Java Runtime Environment (JRE) installed.
    if you want to develop java applications too, install only JDK
    http://java.sun.com/javase/downloads/index.jsp

  • JDK downloaders, put java excutables on your path,
    ( forexample C:\Sun\SDK\jdk\bin in my machine. )

  • smallest size eclipse is Platform Runtime Binary
    this does not include plug-ins to develop anything ,
    we will download plug-ins later.
    http://download.eclipse.org/eclipse/downloads/drops/R-3.2.1-200609210945/

  • install mingw ( gcc for windows ).
    download and run MinGW-5.0.2.exe
    it will download and install everything needed,
    since mingw can compile java, objective C, etc..
    no need to check anything else than you needed ( gcc and g++ ).
    http://mingw.org/download.shtml

  • put mingw executables on your path.
    ( forexample C:\MinGW\bin in my machine )

  • download and install MSYS-1.0.11-2004.04.30-1
    Snapshot, bottom of page http://mingw.org/download.shtml
    it will ask your mingw installation path ( C:\MinGW in my machine )

  • put MSYS excutables on your path.
    ( forexample C:\msys\1.0\bin in my machine )

  • same page, download gdb-6.3-2 for debugging C/C++ programs.
    by default it will install inside mingW directory, so no need to add it in path.
    otherwise put bin directory in your path.

  • to install eclipse CDT ( C development Tools )

    • run eclipse,
    • click menu item Help/Software Updates/Find and Install

    • select search for new features to install

    • click on new remote site and add url http://download.eclipse.org/tools/cdt/releases/callisto

    • after some monotonous steps you will see features available
      select only “Eclipse C/C++ Development Tools”

hint : eclipse managed C/C++ projects means
eclipse will manage the makefile.
Otherwise we need to write and update a makefile.

after this point you need to learn about eclipse.( look at the help menu ).
some of people dont like eclipse
only becos they didnt spend time to learn about it.

additional info :
http://www-128.ibm.com/developerworks/opensource/library/os-ecc/


killing, suspending, resuming windows executable in command line

December 12, 2006

I needed to stop windows applications from command line
or from a .bat file …
but there is not any utility (maybe i dont know )
similar linux kill command shipped with Windows.

beyondlogic give a free utility process.exe,
just put it somewhere in your path.
(forexample c:\windows\system32 )
http://www.beyondlogic.org/consulting/processutil/processutil.htm


webmin , CentOS , sendmail , “user unknown” error

December 11, 2006

I created a linux user via webmin in CentOS.
username was webAdmin ( which includes a capital ).
i couldnt able to send e-mails to the user.

here is the reason
http://www.cyberciti.biz/faq/linux-usernames-with-capital-letters-not-working/

i changed webAdmin to webadmin, now everything is OK.
here they talk about another solution using the “u” flag in sendmail.cf for sendmail :
http://archives.neohapsis.com/archives/postfix/2000-11/0017.html
i didnt test it, i had better keep them all non-capitals anymore. :)


simplifying manual control of windows services

December 9, 2006

We may start some services only when we needed.
I have mysql and apache installed as services in my windows machine.
for simplfying to start and to stop.

1-) i set their startup type as “manual” in services window.
2-) i put 2 of .bat files in my desktop

lamp-start.bat dosyası :

net start “Apache2.2″
net start “MySQL”

and

lamp-stop.bat dosyası :

net stop “Apache2.2″
net stop “MySQL”

now its simple to start and stop group of services.
their name may be different in your machine.
look up them in “control panel/administrative tools/services ,
double click and check “display name”…

also its important
if you want to start or stop services which depend each other
be careful about the order, both in start and stop.

this method is specialy usefull for vmware services ( it has 5 services)
in my machine.

—————————————————————-
Bazı servislerin kullanılacağı zaman başlatılması gerekli.
bunları “manual” olarak ayarlayabiliriz.
başlatılması ve durdurulmalarını .bat dosyaları aracılığı ile kolaylaştırabiliriz.

Örneğin, Apache web server ve mySQL veri tabanı ,
makinemde servis olarak kurulu.
Sadece ihtiyaç duyduğumda çalıştırmak için
1-)servisleri manula olarak ayarladım.
2-)iki .bat dosyasını masaüstüne ekledim.

lamp-start.bat dosyası :

net start “Apache2.2″
net start “MySQL”

lamp-stop.bat dosyası :

net stop “Apache2.2″
net stop “MySQL”

servislerin isimleri sizin makinanızda farklı olabilir.
bu işlemi yaparken servisler arasında bağımlılık var ise,
başlatma ve durdurma sırasına dikkat etmek gerekiyor.


cheapest VPS hosting providers i could found , you may add your suggestions below..

December 6, 2006

Web Hosting seçeneklerini değerlendiriyorum.

Hosting firmalarının karmakarışık hale getirdikleri
anlamsız sınırlamalar ( mesala host edilen add-on sitelerin
kendileri tarafından kayıt edilmiş olması zorunluluğu )
ve gizli bedeller içeren “seçenekler” ile boğuşmadan,
gerçek bir serveri yönetmeyi öğrenmek istiyorum.

Bu koşullar altında , VPS (Virtual Private Server) seçeneği,
oldukça cazip bir seçenek olarak ortaya çıkıyor.

Fiyat benim için çok önemli bir kriter,
bu nedenle aşağıdaki linkler bana diğerlerinden cazip geldi.

rimuhosting
eapps
vpsland
vpslink
rapidvps
adiungo
slicehost
veggiehost
amkh (there is not guarantied memory or CPU amount information )
hosteurope.de( seems best specifications, but only in deutch :( )
bodhost
eukhost


bir blog başlangıcı…

December 5, 2006

Bugün tesadüfen WordPress blog yazılımı ile tanıştım.

Bundan sonra ilgimi çeken, değerli bulduğum şeyleri,
bu alanda paylaşmaya gayret edeceğim.