Archive for May, 2009

Polymorphism (Overloading)

Polymorphism { Overloading } means simply, same methods makes different jobs in different objects.Like how ?
Let’s say we are writing java code and we are using JCheckBox ,JTextField and JButton components.When we try to use setText method for all of them the response suppose to be same,but checkbox writes the text near to checkbox icon ,textfield writes to text into itself and button object writes to text on the button.It shows us the polymorphism because same method worked different for different object.This property called polymorphism or overloading.
› Continue reading

Tags: , , ,

Tuesday, May 19th, 2009 C & C++, Java, Programming, Uncategorized 1 Comment

Nautilus ve Ssh Bağlantısı

Gnome kullanıyorsanız,nautilus file browserı öntanımlı olarak geliyor.Nautilus’un gayet başarılı bir özelliğinden bahsetmek istiyorum.Eğer uzaktaki bilgisayarlara bağlanıyorsanız bu özelliği bilmeniz çok işinize yarayacaktır.Çünkü uzaktaki bilgisayarla dosya işlemleri yaparken kullanacağınız komutları bu işlemi bilerek kolayca kendi bilgisayarınızdaki dosyalar gibi değiştirebilir,yeni dosyalar yaratabilir ve ya bulunan dosyaları silebilirsiniz ya da kolayca kendi bilgisayarınıza kopyalayabilir isterseniz tut sürükle bırak ile karşı bilgisayara dosyalarınızı atabilirsiniz.Nasıl mı yapacağız ?File browserımızı(nautilus) açıyoruz.Daha sonra Back(geri) tuşunun tam altındaki defter simgesine tıklayıp adres yazma kısmını aktif hale getiriyoruz.Daha sonra oraya

  1.  

› Continue reading

Tags: , , ,

Tuesday, May 19th, 2009 Fun, Life, Linux, OS, Tips, Uncategorized Comments Off on Nautilus ve Ssh Bağlantısı

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

Difference between C++ Class and C struct

C struct and C++ class structure is similar but by the default they have a difference in data hiding.
In struct doesn’t provide data hiding by default but class provides data hiding by default.
And the other difference is, class provides us to polymorphism and inheritance features.
We said class structure data hiding is coming default but what it means?
It means when we have a struct it is public by default so we can access our struct model wherever are we

  1.  

By myCar i can access my model,horsePower or producer because it works like public variable but same structure with class
like › Continue reading

Tags: , , , , , , , ,

Thursday, May 14th, 2009 C & C++, Programming Comments Off on Difference between C++ Class and C struct

Gcc 4.3 and Header issues

I’m using gcc 4.3.3 version and nowadays i’m trying to write hybrid file transfer system with c++ on Linux.The problem is i used to use some function in c or c++ like strcmp() with including string library but now when i try to compile I’m getting some error like
error: ‘strcmp’ was not declared in this scope
Simple example code
In gcc 4.1 version i can compile this code without any error or warning

  1. #include <string>
  2. #include <iostream>
  3. "gccHeaderIssue","gccHeaderIssue""kelimeler ayni"

› Continue reading

Tags: , , , , , , ,

Wednesday, May 13th, 2009 C & C++, Linux, Programming, Uncategorized 1 Comment