TimCS.Co.Uk
This site covers areas of Linux, PC Basics and Delphi programming .I hope that this site and the information becomes a valuable resource to anyone who visits.

 
  • Latest Content
Useful Code Snippets
Wednesday, 03 March 2010
Most of these code snippets will require knowledge programming in Delphi such as creating variables and/or functions.This code snippet shows how the drives and their types can be listed in a TCheckListBox component :Code: var     Drive: Char;     DriveLetter: String[4];begin          Checklistbox1.Items.Clear;         for Drive := 'A' to 'Z'... Read more...
A basic explaination of conditions
Wednesday, 16 December 2009
The If..Then..Else Statement This compares values and then from the result allows further code to be executed or if the first statement is not true then it can move to the else statement and run the code after that. for example: if value1 = value2 then label1.caption := 'they are the same' else label1.caption := 'they are not the same'; So if [value1] and [value2] are the same then the labels caption states that [they are the same]. However if they are not the same the else statement... Read more...
Useful Linux commands
Saturday, 28 November 2009
Question(s) Answer(s) How can I find the most recently file created and copy it in Linux or Unix ls -1t <filename/wildcard > | cp `head -n1` <destination> How can I show the top 10 largest areas from where I currently am. du -x -k | sort -nr | head -10 How do I list just directories from where I am in either Unix or Linux? ls -ail | grep drw How do I get a list of groups that a user belongs to groups <username> How do I get a list of users connected to samba? samba -b or samba... Read more...
Linux scripting hints and tips
Wednesday, 03 June 2009
Q. How do I create a file with the current date as its name A. First type : now=`date +%d%m%y' and then use this as the filename by referring to it in the code as $now. So if it needed to be displayed to screen echo $now would work. Or if zipping up a file either zip $now or pkzip $now . Basically now is a variable and can be then used like any Linux/Unix variable by referring to it with a $ infront of the name. Q. I would like to create a menu for users to choose options. A. To do this use... Read more...
Which version of Windows am I running
Sunday, 03 January 2010
Introduction When using a PC , it is surprising how easy it is not to know what version of Windows it uses. This may ,to some people, sound silly but the majority of users are not so clued up, or have never needed to know.   This begs the question why would I want to know anyway? . Well comes the time when your PC may start causing problems and on contacting THE support company they will tend ask "what version of Windows are you running". Also,  there are those software boxes that tell you... Read more...
Useful keypresses in Ms Windows 2000/XP
Wednesday, 30 December 2009
Useful kepresses in Ms Windows 2000/XP This table will list useful key presses in Ms Windows 2000/XP. Some of these key presses will work in earlier versions of Ms Windows as well. N.B : The + symbol in the table below means to hold down the first key and then to tap the second key mentioned. So for example : SHIFT + 3 means to hold down the SHIFT key and tap the 3 key once and release the SHIFT key afterwards. *** WARNING *** Please note some key presses listed could cause applications... Read more...

Powered by Joomla!. Valid XHTML and CSS. Credits go to Gareth Flowers for his help with this site. Any queries please contact the webmaster