Archive for the 'programming' Category

Date and Time Functions in mysql

Sunday, February 10th, 2008

source:http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
Date and Time Functions
This section describes the functions that can be used to manipulate temporal values. See Section 9.3, “Date and Time Types”, for a description of the range of values [...]

imagecreatefromjpeg()

Sunday, February 10th, 2008

If you’re getting this error try checking if you got gd library installed. You can see it on phpinfo();
Fatal error: Call to undefined function: imagecreatefromjpeg()

changing scrollbar apperance using css

Friday, February 8th, 2008

BODY {SCROLLBAR-FACE-COLOR: #D4D0C8; SCROLLBAR-HIGHLIGHT-COLOR: #999; SCROLLBAR-SHADOW-COLOR: #999; SCROLLBAR-3DLIGHT-COLOR: #fff; SCROLLBAR-ARROW-COLOR: #000; SCROLLBAR-TRACK-COLOR: #E3E3E3; SCROLLBAR-DARKSHADOW-COLOR: #666; }

javascript: array_push

Thursday, February 7th, 2008

one way of doing array push in javascript is by adding 1 to the length of the array.
for(d = 0; d< arr.length; d++){
arr2[arr2.length++] = arr[d];
}

mysqldump

Wednesday, February 6th, 2008

Name
mysqldump - a database backup program
Synopsis

mysqldump [options] [db_name [tbl_name ...]]

Description
The mysqldump client is a backup program originally written by Igor Romanenko. It can be used to dump a database or a collection of databases for backup or for transferring the data to another SQL server (not necessarily a MySQL server). The dump contains SQL statements [...]

linux/ unix rm command

Tuesday, February 5th, 2008

Linux / Unix rm command

Quick links
About rm
Syntax
Examples
Related commands
Unix main page
About rm
Deletes [...]

tar command

Sunday, February 3rd, 2008

About tarCreate tape archives and add or extract files.
Syntax
tar c [ bBeEfFhiklnopPqvwX [ 0-7 ] ] [ block ] [ tarfile ] [ exclude-file ] {-I include-file | -C directory [...]