How to Use the Kill Command on Linux

What the Kill Command Does

Kill is a command that terminates unwanted processes in your system. The syntax for the kill command is very simple: you just type “kill” followed by the ID of the process you wish to terminate. But this, of course, leads us to the problem that we need to know the process ID first. To find out what it is, you will first have to use the ps command. “ps” is a command that gives you a snapshot of the processes in your system. And you can customize its output to Continuarea

.htaccess hacks

When developing sites

This lets google crawl the page, lets me access without a password, and lets my client access the page WITH a password. It also allows for XHTML and CSS validation! (

AuthName “Under Development”
AuthUserFile /web/
AuthType basic
Require valid-user
Order deny,allow
Deny from all
Allow from
Satisfy Any

Redirect Everyone Except IP address to alternate page

ErrorDocument 403
Order deny,allow Continuarea

Windows 7 startup folder

Switched from Windows XP to Windows 7 a while ago , however never needed this since now . I wanted to add a program to startup (usually i remove programs from there ) and the easiest was to do it is by placing a shortcut into startup folder ( the other one i know is to add a registry entry ).

Well , i knew where that folder was on Windows XP but on Windows 7 is no longer there . I have found it that in Windows 7 the location of your personal startup folder is:

%systemdrive%\users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

For all users, you will find the startup folder in:

%systemdrive%\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

Move wordpress network from subdomain to subfolders

A client of mine needed to convert a wordpress network from using subdomains to subfolders ( instead of * he wanted to have* , meaning that instead of he wanted ). Task seems really easy in the beginning (when you install network wordpress interface asks you how you want the network to work – subdomain or subfolders – and that`s it ).
But if you want to change that it`s not that simple since wordpress interface has no such option and you need to do it manually ).
Anyway , after some missed settings i have succeed converting it .
These is what you need to do in order to convert the wordpress network (multisite) from using subdomains to sub subfolders :


Change wordpress configuration file

  1. ftp login to server and edit wp-config.php . Change define(‘SUBDOMAIN_INSTALL’, true); to define(‘SUBDOMAIN_INSTALL’, false);

Change wordpress database

  1. login to phpmyadmin (if you are using cpanel there is a link to it under DATABASES group), select wordpress network databaseand perform the following:
    • select table blogs ( actually it is named wp_blogs if you didn`t change default Continuarea

MySQL – Copiaza o baza de date de pe un server pe altul direct din consola

In cele mai frecvente cazuri folosesc mysqldump pentru a obtine un backup al bazei de date pe care apoi il utilizez pentru a crea baze de date.
Desi este destul de buna ca solutie , in cazul in care pur si simplu dorim sa “clonam” o baza de date pe alt server evine putin incomod .

Solutia gasita este sa setez serverul MySQL pe care doresc sa pun baza de date sa accepte conexiuni de la sererul pe care se afla deja baza de date ( restrictii pe host/ip ) , si apoi sa execut urmatoarea comanda pe serverul pe care se afla deja baza de date: Continuarea

MySQL – Conversie toate tabelele la INNODB

Rezolvare rapida a problemei conversiei tuturor tabelelor la InnoDB . Pentru cazul in care sunt suficient de putine se poate rezolva usor din phpMyAdmin insa in cazul in care discutam de mai multe … jumatate de zi de click-uri in phpMyAdmin s-ar putea sa nu fie chiar asa atragator.

In consola tastatzi urmatorul rand (evident dupa ce anterior ati inlocuit <USER> , <PAROLA> SI <DATABASE>cu ceea ce aveti nevoie.

for t in `echo “show tables” | mysql -u<USER> -p<PAROLA> –batch –skip-column-names <DATABASE>`;
do mysql -u<USER> -p<PAROLA> <DATABASE> -e “ALTER TABLE \`$t\` ENGINE = InnoDB;”;