Archive for April, 2009

5 Useful MySQL Functions And Control Flows

This item was filled under [ MySQL ]

1: IF()
If statements have been a life saver on many occasions. They are invaluable for checking a value then returning another value different from the one stored in the table.
sql Code:

SELECT
IF(myColumn1 = 1, ‘Yes’, ‘No’) AS myIfColumn
FROM
myTable

Result: If myColumn1 equals 1 then Yes else No.
2: ELT()
Similar to an if else statement. The ELT takes the [...]

Continue reading...

Tagged with: [ , , , ]

UNIX Variables

This item was filled under [ Linux ]

Variables are a way of passing information from the shell to programs when you run them. Programs look “in the environment” for particular variables and if they are found will use the values stored. Some are set by the system, others by you, yet others by [...]

Continue reading...

Tagged with: [ , ]

Compiling UNIX software packages

This item was filled under [ Linux ]

We have many public domain and commercial software packages installed on our systems, which are available to all users. However, students are allowed to download and install small software packages in their own home directory, software usually only useful to them personally.
There are a number of [...]

Continue reading...

Tagged with: [ , , , ]

Other useful UNIX commands

This item was filled under [ Linux ]

quota
All students are allocated a certain amount of disk space on the file system for their personal files, usually about 100Mb. If you go over your quota, you are given 7 days to remove excess files.
To check your current quota and how much of it you have used, type
% quota -v
df
The df [...]

Continue reading...

Tagged with: [ ]

File system security (access rights)

This item was filled under [ Linux, MySQL ]

In your unixstuff directory, type
% ls -l (l for long listing!)
You will see that you now get lots of details about the contents of your directory, similar to the example below.

Each file (and directory) has associated access rights, which may be found by typing ls -l. Also, ls -lg [...]

Continue reading...

Tagged with: [ , , , ]
Page 1 of 3123»
Update me when site is updated