BT Home Hub 2.0 Privicy Invasion


2010-08-05 Digg! icurtain Delcious icurtain Technorati icurtain


If you are currently using BT as your ISP and you have the misfortune of using a BT Home Hub 2.0 do be aware that this device has a potential security flaw allowing BT to update/change firmware settings on it without your consent.

This gives BT the potential to track your internet usage from inside your own network, even seeing the network that passes inside of your own LAN.

If you have implicit trust in BT as a highly ethical company that never does anything wrong (infringing GPL, RIPA breaches) then you should carry on using you're Home Hub, if not.. be afraid...

source http://community.bt.com/t5/BB-in-Home/Why-have-BT-put-a-backdoor-in-the-8-1-H-J-firmware-that-allows/td-p/620


change linux process priority with nice and renice


2009-12-03 Digg! icurtain Delcious icurtain Technorati icurtain


Process priorities are set between 20 (lowest) and -19 (highest)

To launch a task with a priority of 5 try:
mike@mikebox:~$ sudo nice task 5

If you're laptop is overehating and kacpi_notify is stealing all your CPU power polling the CPU temperature you can use renice to change priority of a running process (pid 20) to priority 5
mike@mikebox:~$ sudo renice 5 -p 20

renice Usage:
renice [-n] priority [-p|--pid] pid [... pid]
renice [-n] priority -g|--pgrp pgrp [... pgrp]
renice [-n] priority -u|--user user [... user]
renice -h | --help
renice -v | --version


nice Usage: nice [OPTION] [COMMAND [ARG]...]
Run COMMAND with an adjusted niceness, which affects process scheduling.
With no COMMAND, print the current niceness. Nicenesses range from
-20 (most favourable scheduling) to 19 (least favourable).

-n, --adjustment=N add integer N to the niceness (default 10)
--help display this help and exit
--version output version information and exit


Ubuntu 9.10 screen flashing and keyboard unresponsive


2009-10-30 Digg! icurtain Delcious icurtain Technorati icurtain


If Ubuntu 9.10 boots up to a flashing screen and unresponsive keyboard chances are your xwindows configuration isn't working - you can check this by running /etc/init.d/gdm stop (you should have a nice non-flashing shell)

for some reason dpkg-reconfigure xserver-xorg didn't work for but simply deleting /etc/X11/xorg.conf did - all should be fine after a reboot


Ubuntu alsa-utils sound Issues


2009-10-22 Digg! icurtain Delcious icurtain Technorati icurtain


Alsa-Utils sound in Ubuntu 8+ is buggy as hell and always seems to die on me When the sound goes all crackly and

m@m:~$ /etc/init.d/alsa-utils restart

doesn't work; try

m@m:~$ /etc/init.d/alsa-utils reset

other params are:
{start [CARD]|stop [CARD]|restart [CARD]|reset [CARD]}


PHP Hash Maker - MD5, SHA1 etc


2009-08-22 Digg! icurtain Delcious icurtain Technorati icurtain


The Hash maker is a quick and easy way to either make hashes and use them directly or try to work out what your lost password was

I find it quite useful to be able to generate hashes for passwords directly for the purposes of resetting passwords directly in a database


dbPHP - Object Relational Mapping for PHP


2009-05-16 Digg! icurtain Delcious icurtain Technorati icurtain


banner


RSS Feed


2009-05-12 Digg! icurtain Delcious icurtain Technorati icurtain


icurtain rss feed

Information Evil? - Extending the Panopticon


2009-03-27 Digg! icurtain Delcious icurtain Technorati icurtain


Information Evil

Information Evil - Full Text


MySQL full indexed text search - just like a real database!!


2009-03-24 Digg! icurtain Delcious icurtain Technorati icurtain



PHP Colour Changing Background Algorithm


2009-03-24 Digg! icurtain Delcious icurtain Technorati icurtain


This returns the average colour of an image in PHP using GD libraries and then, assuming you ahve no sense of design, you could use this to set the background colour of a page. This code can be slotted directly into the ImageHandler class also on this site

  1.    public function getAverageColour(){ 
  2.       $colours = array('red'=>0,'green'=>0,'blue'=>0); 
  3.       $count = 0; 
  4.       $rgbstring = null; 
  5.        
  6.       for ($i=0;$iimage);$i++){ 
  7.          for ($j=0;$jimage);$j++){ 
  8.             $rgb = imagecolorat($this->image, $i, $j); 
  9.             $ici = imagecolorsforindex($this->image, $rgb); 
  10.             //print_r($ici); 
  11.             foreach($colours as $key => $value){ 
  12.                $colours[$key] = $colours[$key] + $ici[$key]; 
  13.             } 
  14.          $count++; 
  15.          } 
  16.       } 
  17.       foreach($colours as $key => $value){ 
  18.                $colours[$key] = dechex(intval($colours[$key] / $count)); 
  19.                $rgbstring = $rgbstring . sprintf("%02s", $colours[$key]); 
  20.             } 
  21.       return $rgbstring;    
  22.    }