CSS Syntax

This item was filled under [ CSS ]

Syntax
selector { propery: value; }
Example:

body {
font-size: 12px;
color: #333;
margin: 0;
padding: 0;
}

External style sheet
<link rel=”stylesheet” type=”text/css” href=”style.css” />
Internal style sheet
<style type=”text/css”>
selector {property: value;}
</style>
Example:

body {
margin:0;
padding:0;
background-color:#dbdbdb;
}
* {
font-family:Verdana, Arial, Helvetica, sans-serif;
}
a img {
border: 0;
}

Inline style
<tag style=”property: value”>

Continue reading...

Unix / Linux Commands

This item was filled under [ Linux ]

File Commands

ls
directory listing

ls -al
formatted listing with hidden files

cd dir
change directory to dir

cd
change to home

pwd
show current directory

mkdir dir
create a directory dir

rm file
delete file

rm -r dir
delete directory dir

rm -f file
force remove file

rm -rf dir
force remove directory dir

cp file1 file2
copy file1 to file2

cp -r dir1 dir2
copy dir1 to dir2; create dir2 if it doesn’t exist

mv file1 file2
rename or [...]

Continue reading...

Optimize MySQL

This item was filled under [ MySQL ]

When MySQL uses indexes
Using >, >=, =, <, <=, IF NULL and BETWEEN on a key.
SELECT * FROM `table_name` WHERE `key_part1` = 1 AND `key_part2` > 5;
SELECT * FROM `table_name` WHERE `key_part1` IS NULL;
When you use a LIKE that doesn’t start with a wildcard.
SELECT * FROM `table_name` WHERE `key_part1` LIKE ‘jani%’
Retrieving rows from [...]

Continue reading...

King Julien ringtone

This item was filled under [ Funny ]

Something funny

Continue reading...

Wordpress extra stuff

This item was filled under [ Wordpress ]

Here are some very usefull informations for those who use Wordpress as CMS
Wordpress extra stuff

/%postname%/
Custom permalinks

<?php include(TEMPLATEPATH . ‘/x’) ?>
Inlude any file (replace “x” with filename)

<?php the_search_query(); ?>
Value for search form

<?php _e(‘Message’); ?>
prints out message

<?php wp_register(); ?>
Displays the registration link

<?php wp_loginout(); ?>
Displays the login/logout link (only for registered users)

<?php <!–next page–> ?>
Divides the content into [...]

Continue reading...

Tagged with: [ , , , , , ]
Page 3 of 7«12345»...Last »
Update me when site is updated