Archive | December, 2003

The Hidden Spreadsheet

Posted on 09 December 2003 by Demian Turner

Robert Cringely has a insightful artice that questions the ethics of reducing company expenditure by outsourcing to India.  The article also explores a management view of what an employee’s worth is within the organisation – good reading.  Thanks to Jeremy’s comments for the lead.

There is somewhere in almost every company a spreadsheet showing a cost-benefit analysis for every worker.  It all comes down to a single lifetime number that is the difference between the expected earnings to the corporation that are made possible by the direct labor of that employee, and the total cost of that employee to the company in current wages and future benefits.  Nobody admits the existence of this spreadsheet, which is probably illegal, but it is there.  And at some point, it indicates in many cases that a worker has reached a condition where they are likely to cost the company more in future benefits than they will earn the company through future labor.  At that moment, that employee becomes expendable.  Forget that the business situation could change, altering the numbers.  Forget that the employee, if he knew his job was in peril, might take action to improve his productivity.  Forget that the negative number could easily be the result of a management error or misstep, and have nothing to do with the employee’s effort.  Forget that the calculation could be just plain wrong.  No matter what happened to get the company and the worker to that place, it is in the interest of the company to get rid of the employee as soon as possible.

Comments (0)

How Robots Work

Posted on 08 December 2003 by Demian Turner

Quite an interesting read over at ongoing:

Every search-engine robot ever written uses essentially the same approach, and it’s a simple one:

  1. Select one of the URIs you know about.

  2. Do a GET on that URI.

  3. Decide whether you can index whatever you got back. If not, go to Step 1.

  4. Update the search-engine index with what you just fetched.

  5. Extract the hyperlinks from what you just fetched.

  6. Add the URIs from those hyperlinks to the list you know about.

  7. Go to Step 1.

[…] You can test all you want on your private network, but when you send your little software child off into the wilds of the Net, you can be sure that all sorts of weird stuff is going to start happening.

Comments (0)

Hex color array to RGB array

Posted on 02 December 2003 by Demian Turner

I’ve been doing some graphs and charts for a site I’m working on and used an array of hex color values to highlight the different bars of the graph.

Sadly, the pie-chart routines take the color values for pie-slices in RGB instead, so I knocked up this little loop to switch the colors to RGB on the fly.

// set up the colour array
$hex_colors = array('#0066B2',
 '#6CAAD9', '#B1D3EC', '#285577', 
'#4C7899','#2C83E7', '#7C94A5', 
'#B8C7D2','#D7E8F5', '#607C90');		
			
while (list($key,$val) = each($hex_colors)){
	$red = hexdec(substr($val, 1 , 2));
	$green = hexdec(substr($val, 3 , 2));
	$blue = hexdec(substr($val, 5 , 2));
	$rgb_colors[$key] = "$red,$green,$blue";
	}

Of course, this could be stuck in a function and passed the array of hex_colors too.

Comments (0)

Categories

Books

Demian Turner's currently-reading book recommendations, reviews, favorite quotes, book clubs, book trivia, book lists

Facebook