Showing posts with label tocode. Show all posts
Showing posts with label tocode. Show all posts

Wednesday, March 5, 2008

Motherboard information

These commands will print detailed specifications of my mobo in linux:
dmidecode
lshw
lspci
lshal
lsusb
dmesg


enouf in ##linux just suggested:
if you want something pretty you can print, do as root; lshw -html > ~/lshw-output.html then go view it, print it ;-)


I entered the command but the output won't parse in the blogspot filter. I'll try a real converter later. Maybe I'll e-mail Brainyron.

Special thanks goes out to enouf!

Monday, February 25, 2008

PHP

Today I was chatting with my friend Brainyron over MSN and we talked about writing my first PHP script. See, in 2005 Ron prescribed for me the SAMS PHP 5 in 24 hours. In summer 2006 I copied out examples but none of them made any sense. And now that I am taking first year C# at Trent University, PHP is making a little more sense. So I asked him to give me an assignment. I'm going to create a "hit counter"

pseudo code1:
count the number of hits the website received


pseudo code2:
every time someone visits the site, PHP will one to the last number it showed, and then save that so it can recall it later


pseudo code3:
it needs to open a text file
then read it
read the number out of there
add one
display that number
save it back to the file


And then we realized that I had no idea what was going on, so we agreed that i need to start copying out examples from SAMS PHP again; except this time, when i don't understand the explanations, i'll ask him questions. Ron gave me his other e-mail address. I suppose I could ask these questions also in the php freaks forums.

edit: For when I eventually get around to creating this script, use this guide to echo the date: http://ca3.php.net/date

Tuesday, January 15, 2008

"etksm"

I want to code an application similar to the gnome-system monitor which is based on EFL rather than Gnome libraries. This system monitor will be called etksm which stands for ETK System Monitor. etksm will consume no processor resources when idle similar to the Windows Task Manager (unlike its ugly gnome counterpart which consumes 5-15% CPU usage when just sitting idly). There will be a tab which prints detailed information about the PC’s hardware specifications, similar to the way in CPUz for win32 prints all hardware information, including fan speeds. One day I will have the ability to code this application.