How to learn your linux release
Written by admin on May 18, 2009 67 viewsTo 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 [...]
My C++ Homework
Written by admin on May 18, 2009 86 viewsHere 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 [...]
How to convert nrg to iso
Written by admin on May 11, 2009 49 viewsTo convert nrg files to iso files, you should install nrg2iso
sudo apt-get install nrg2iso
Usage:
nrg2iso a.nrg a.iso
How to add shared folder Virtualbox
Written by admin on April 30, 2009 235 viewsi 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. [...]
Dbus Error Solution
Written by admin on April 2, 2009 108 viewsAfter 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.
SSH Shell Commands
Written by admin on March 26, 2009 348 viewsI 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 [...]
Php Get Security
Written by admin on March 23, 2009 118 viewsIt 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 [...]
Some Changes..
Written by admin on March 22, 2009 1,321 viewsI 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 [...]
Some tips for Pardus
Written by admin on March 11, 2009 130 viewsThere 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 [...]
Posted in Linux | No Comments »
Adding two array
Written by admin on February 4, 2009 411 viewsTo 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

