Hi all, I'm in the process of upgrading my Drupal installation - you will see various changes over the next while. This is by no means the final look of my site - its just a standin. Thanks for stopping by!
Professional freelance web designer in Vancouver and surrounding area, specializing in professional high-quality website, graphic design and systems development.
Pacific Simplicity is also home to my tech blog of sorts, aiming to assist and provide information easily to other Linux and webhackers out there. It contains articles on Linux, programming embedded systems, OpenWRT and of course Drupal . Check it out and don't forget to comment!
Hi all, I'm in the process of upgrading my Drupal installation - you will see various changes over the next while. This is by no means the final look of my site - its just a standin. Thanks for stopping by!
Battery life on my HP-envy is down right horrible in Linux - Fedora 16 by default results in only about two hours of operation before it shuts down (and is about 60c) when compared to the almost 5 hours of running time in Windows 7. Here are some tweaks to improve it to 5+ hrs with minor use and minimal wifi:
Install the following:
sudo yum install pm-utils tuned
sudo chkconfig tuned on
Install Jupiter and get it configured
The other day I was playing around and required a quick and dirty C program which could be used for arrays or bucketing - it divides a value by a specified number and creates groups or teams.
Here it is in both a for loop and a while loop.
#include /
#include /
If you have ever wanted to have colored printf statements for easier debugging - look no further
printf("%c[%d;%dmColor Me!%c[%dm\n",27,1,33,27,0);
Starting with the parameter - 27, this initiates the coloring. The rest of the parameters are (attribute);(fore color);(background color).
Text attributes
0 All attributes off
1 Bold on
4 Underscore (on monochrome display adapter only)
5 Blink on
7 Reverse video on
8 Concealed on
To install colorgcc on Fedora 16, do the following assuming perl is installed:
sudo yum install colorgcc -y
wget search.cpan.org/CPAN/authors/id/R/RR/RRA/Term-ANSIColor-3.01.tar.gz
tar-xzvf Term-ANSIColor-3.01.tar.gz
cd Term-ANSIColor-3.01/
perl Makefile.PL
make
sudo make test
sudo make install
Download the config file from here and move it to:
wget pacificsimplicity.ca/sites/default/files/uploads/colorgccrc.txt
mv colorgccrc.txt to ~/.colorgccrc