<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="0.92">
<channel>
	<title>Ryan Byrd's Tech Ramblings</title>
	<link>http://www.ryanbyrd.net/techramble</link>
	<description>The Second Best Blog in Utah</description>
	<lastBuildDate>Mon, 06 Oct 2008 15:45:41 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Weighted Round Robin</title>
		<description>Here's a quick example of weighted round robin in php. 
[php]
//weighted round robin

define("START_WEIGHT", 1);
class printer
{
  private $name;
  private $weight;
  private $normalizedWeight;
  public function printer($name,$weight=START_WEIGHT)
  {
    $this->name=$name;
    $this->weight=$weight;
  }
  public function getName() { return $this->name; }
  public ...</description>
		<link>http://www.ryanbyrd.net/techramble/2008/10/06/weighted-round-robin/</link>
			</item>
	<item>
		<title>Movie Tech</title>
		<description>Recently I helped direct and produce a biographical documentary. Here's the equipment list I used:

	Canon XHA1 video camera
	Camera tripod
	Boom pole
	Directional mic with windscreen (dead cat)
	XLR cables
	MiniDV tapes
	Macbook Pro w/ iMovie and iDVD
	Dell Laptop with photoshop
	Epson flatbed scanner
	Radio Shack 3 channel audio mixer
	Sennheiser condenser microphone with stand (for narration)
	External 1TB drive
	Mediawiki
	Royalty ...</description>
		<link>http://www.ryanbyrd.net/techramble/2008/09/07/movie-tech/</link>
			</item>
	<item>
		<title>even more Utah tech interview questions</title>
		<description>I had a friend send me a list of these questions today. some are repeats from previous posts but there are several new ones. Enjoy!

Logic Problems
a) 8 Steel balls, 1 heavier than all the rest. Use a Balance Scale to determine the heaviest ball in the shortest number of tries.
b) ...</description>
		<link>http://www.ryanbyrd.net/techramble/2008/09/03/even-more-utah-tech-interview-questions/</link>
			</item>
	<item>
		<title>Are You Chromed Up?</title>
		<description>Google just released their new browser, Chrome. You can read all about it, comic-style, on Google Books. 
I just downloaded it. I'll let you know how it goes </description>
		<link>http://www.ryanbyrd.net/techramble/2008/09/02/are-you-chromed-up/</link>
			</item>
	<item>
		<title>Tech interview question of the day</title>
		<description>it's not as difficult as it first looks:

Given two water faucets, one hot and one cold, and one bucket. The hot water fills the empty bucket in eight minutes. The cold water fills the bucket in seven minutes. Then I make a hole in the bucket such that the full ...</description>
		<link>http://www.ryanbyrd.net/techramble/2008/06/16/tech-interview-question-of-the-day/</link>
			</item>
	<item>
		<title>reversing a string, the algorithms</title>
		<description>reversing a string is a classic tech interview question. of course you're not allowed to call any built-in reverse() function. A solution might look like, in my pseudocode:

someString = new string("732432424");
char temp;
int end=someString.length()-1;

for (int x=0;x&#60;end;x++)
{
	temp=someString[end];
	someString[x]=someString[end];
	someString[end]=temp;
	end--;	
}

but sometimes the interviewer asks you to reverse the string in place, without using other memory, ...</description>
		<link>http://www.ryanbyrd.net/techramble/2008/04/03/reversing-a-string-the-algorithms/</link>
			</item>
	<item>
		<title>Recent IM Chat&#8211; Helping a friend get a basic webserver up and running</title>
		<description>ME: did you install xampp?
ME: and, in the xampp control panel, did you start apache?
ME: and, in a browser, did you go to http://localhost
ME: and, once, there, did you see a xampp welcome message?
SOMEGUY: yes, yes and yes
ME: when you go to http://www.whatismyip.com what does it say for your ip ...</description>
		<link>http://www.ryanbyrd.net/techramble/2008/01/17/recent-im-chat-helping-a-friend-get-a-basic-webserver-up-and-running/</link>
			</item>
	<item>
		<title>two interesting PHP items for the day</title>
		<description>1. http://www.php.net/manual/en/control-structures.alternative-syntax.php shows an alternative syntax for loops:

    foreach($list as $item)
    {
        echo $item;
    } 

can be done as:

    foreach($list as $item):
        echo $item;
 ...</description>
		<link>http://www.ryanbyrd.net/techramble/2007/11/21/two-interesting-php-items-for-the-day/</link>
			</item>
	<item>
		<title>linux shell script to monitor running program</title>
		<description>this script checks to see if a program is running and starts it if it is not. if a certain time has passed the script will kill the running program
[bash]
#!/bin/bash

#location of script to monitor
PROGRAM='myscript.php'
COUNTER=0

#!/bin/bash

date2stamp () {
    date --utc --date "$1" +%s
}

# convert a date into a UNIX ...</description>
		<link>http://www.ryanbyrd.net/techramble/2007/11/01/linux-shell-script-to-monitor-running-program/</link>
			</item>
	<item>
		<title>latin1 to utf8 character set conversion for MySQL</title>
		<description>We recently upgraded from MySQL 4 to MySQL 5 and we noticed strange characters in some of the varchar and text fields. 

step 1: dump out the contents of the bad field in hex
mysql> select hex(myfieldname) from mytablename where myid='something';

step 2: run a php program to print out the chars ...</description>
		<link>http://www.ryanbyrd.net/techramble/2007/10/31/latin1-to-utf8-character-set-conversion-for-mysql/</link>
			</item>
</channel>
</rss>
