How to learn your linux release

Written by admin on May 18, 2009  67 views

To learn your linux and kernel version ( release ) you can use /proc/version
Type it in console:
cat /proc/version
Linux version 2.6.18-92.el5
(brewbuilder@ls20-bc2-13.build.redhat.com)
(gcc version 4.1.2 20071124 (Red Hat 4.1.2-41))
#1 SMP Tue Apr 29 13:16:15 EDT 2008
In this output, you get to see the following information:

Exact version of the Linux kernel used in your OS: Linux version 2.6.18-92.el5
Name of [...]

Subscribe to my RSS feed

My C++ Homework

Written by admin on May 18, 2009  86 views

Here is the question, homework is containing the stack library ( written by me ), inheritance, nested if, constructor, destructor. You can see the sample. I had 2 hours to finish and send , so it is not a perfect code. (Even i would have time, i don’t think i can write perfect code [...]

Subscribe to my RSS feed

How to convert nrg to iso

Written by admin on May 11, 2009  49 views

To convert nrg files to iso files, you should install nrg2iso
sudo apt-get install nrg2iso
Usage:
nrg2iso a.nrg a.iso

Subscribe to my RSS feed

How to add shared folder Virtualbox

Written by admin on April 30, 2009  235 views

i am using windows to work with Photoshop, however transfering files is very difficult  without using shared folder.
to add shared folder to your virtualbox, run your virtual os.
1. Click install guest additions from devices
2. Click yes to download iso file.

3.Click link and download it to your desktop.

4. Devices -> Mount CD/DVD-ROM -> CD/DVD-ROM Image

5. [...]

Subscribe to my RSS feed

Dbus Error Solution

Written by admin on April 2, 2009  108 views

After i installed the kde4 package, pisi gave erro
“org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit.AuthenticationAgent was not provided by any .service files”
to solve you should resinstall policykit
“sudo pisi it PolicyKit-kde –reinstall”
After restart your computer.

Subscribe to my RSS feed

SSH Shell Commands

Written by admin on March 26, 2009  348 views

I moved my vps so i need some ssh commands, i found very usefull article for ssh command.
ls : list files/directories in a directory, comparable to dir in windows/dos.
ls -al : shows all files (including ones that start with a period), directories, and details attributes for each file.
cd : change directory · · cd /usr/local/apache [...]

Subscribe to my RSS feed

Php Get Security

Written by admin on March 23, 2009  118 views

It is very important to check your data that you take with $_GET before use.
You can use $_Get in some cases , in each case there are some different measures to be taken.
For example if you use sth like that

if(isset($_GET[ex]))

 

   include($_GET[ex]);

If you use this codes, bad users can include any page that they [...]

Subscribe to my RSS feed

Some Changes..

Written by admin on March 22, 2009  1,321 views

I noticed that i write maximum 3 entry in a month. I decided to change this situation so i made some changes. I want to write something everyday. I hope i can
Firstly,i installed new theme, and some new plugin. I changed some place of theme you can download and wiev from here but [...]

Subscribe to my RSS feed

Some tips for Pardus

Written by admin on March 11, 2009  130 views

There are some tips for Pardus ,
1. How to chane linux root password in Pardus
write su root to login as root
write your password
type sudo passwd
type new password
confirm new password
2. How to terminate , kill a program
press ctrl+alt+esc and click the program that you want to kill
3. How to install program
Open pisi from pardus menu, search [...]

Subscribe to my RSS feed

Adding two array

Written by admin on February 4, 2009  411 views

To add a array with a array, you can use array_combine(),but to use this function arrays size must be same.
for example:

$array1=array(1,4,5,6);

$array2=array(A,K,M,P);

$array3= array_combine($array1,$array2);

 

//array3 will be

$array3=

array(

[1]=>A,

[4]=>K,

[5]=>M,

[6]=>P,

)

for more information you can visit php.net/array_combine

Subscribe to my RSS feed