Aug. 13th, 2008

Litmus Tests

Mary-Sue litmus tests have their place, and while they should not be the be all and end all of character guides (after all, I come out the other side of the test being told I am an ubersue1), I find that they are a useful little thing to use to make sure I am not going off the rails. Well, I have faith that I can make a good character - it’s more fun to use on other peoples’ characters.

Anyway, I tried a test I hadn’t done before. Result was as expected, but the format was a bit different than what I was used to. Anyway, it spat out this result:

Delia Richards is only a little like you. She isn’t really very cool: she blends into crowds, she hangs out on the fringes at parties, and wearing shades after dark makes her run into things. There’s never been anything special about her that she could see; boy, is she in for a surprise. She’s got no emotional scars to speak of. And you’ve been sparing with the free handouts: whatever she gains, she’s worked for.

In general, you care deeply about Delia Richards, but you’re smart enough to let her stand on her own, without burdening her with your personal fantasies or propping her up with idealization and over-dramatization. Delia Richards is a healthy character with a promising career ahead of her.

My favourite bit is and wearing shades after dark makes her run into things. It’s funny coz it’s true!

  1. I had a hard life. Whatever. :P []

Originally published at Working Title. Please leave any comments there.

Jun. 30th, 2008

Quick Resource Thing

I use a number of tools when I write, and not just the basic word processor that is pretty much standard. Some for typing, and a whole lot for research. Here’s a few I use, and explanations how/why.

OpenOffice - OpenOffice is a free office suite that includes a word processor, a spreadsheet application and more.

The two programs I use are Writer and Calc. Writer’s is obvious - it is the word processor of the suite (it also converts .odt and .doc docs to .pdf format! :D) and I use Calc to keep track of word counts for each chapter. I use the SUM function to add up my total and show the percentage completed of each word count goal, and how many words I have left.

Google Earth - Since I have never been to Wyoming (or heck, any other part of the American - both North and South - continents) Google Earth provides a wonderful tool to check out the locations of stuff. And in a move that makes it far superior to ordinary maps, I can zoom in close, see buildings, hills/mountains, roads and all sorts of other neat tricks. A combination of Google Earth and Wikipedia helped me determine where Fictional Ordinary People Town Which Still Needs A Name is. :D

Del.icio.us - A social bookmarking site, del.icio.us allows me to sort out useful resources I find out there on the web and keep track of them. I have one specifically for Working Title, with subcategories for general resources and stuff that would relate to Ordinary People.

There’s a handy addon for Firefox which makes the process of adding things to your del.icio.us a whole lot easier and quicker! :D

Got any suggestions of other useful tools? Let me know!

Originally published at Working Title. Please leave any comments there.

Tags:

Jun. 12th, 2008

Word Counter Code

Because Steph asked, I will show you the code I used to make the word counters in the sidebar. There are many others out there, like the NaNo counter, but I prefer this one because it is cleaner to add to a sidebar or a webpage.

In a text editor, like Notepad or (my favourite) Notepad++, open up a new file, and call it progress.php. Copy the code below, paste it into progress.php, and save.

<?php

// DO NOT USE A HASH MARK "#" AS PART OF A HEX PARAMETER!
// progress = progress bar colour (hex)
// border = border colour (hex)
// background = fill colour (hex)
//
//
// This code is released into the public domain. Do with it what you will.
// Function to Convert hex to a useable decimal array

function hex2decarray($hex_value)

{ // Chop it up, hexdec it
 $dec_array = array(hexdec(substr($hex_value,0,2)),
              hexdec(substr($hex_value,2,2)),
              hexdec(substr($hex_value,4,2)));
 return $dec_array;
}

/* page output starts here */
// Let the browser know a GIF is coming

Header("Content-type: image/gif");
// Grab the progress numbers

$target = $_GET['target'];
$current = $_GET['current'];

// Grab the  hex colour codes - DO NOT USE A # in the parameter
$background = $_GET['background'];
$border = $_GET['border'];
$progress = $_GET['progress'];

// If we missed one, fill in the defaults
if (!$_GET['progress'])
$progress="2222DD";
if (!$_GET['border'])
$border = "000000";
if (!$_GET['background'])
$background="CCCCCC";

// If there isn’t a target number, this dodges a nasty divide-by-zero

if ($target==0)
{
  $current = 0;
 $target = 100;
}

// Percentages
$percent = (($current*100)/$target);

// If its over 100, write over the right-hand border
if ($percent > 100) $percent = 101;

// Width and height of the complete bar
if ($width == 0) $width = 102;
if ($height == 0) $height = 15;

// Calculate colour arrays
$bgc=hex2decarray($background);
$bc=hex2decarray($border);
$fc=hex2decarray($progress);

// Generate empty image
$image = ImageCreate($width,$height);

// Colours
$border = ImageColorAllocate($image,$bc[0],$bc[1],$bc[2]);
$back = ImageColorAllocate($image,$bgc[0],$bgc[1],$bgc[2]);
$fill = ImageColorAllocate($image,$fc[0],$fc[1],$fc[2]);

// Draw the border
ImageFilledRectangle($image,0,0,$width,$height,$border);

// Draw the background over that
ImageFilledRectangle($image,1,1,$width-2,$height-2,$back);
if ($percent > 0)

// Draw the progress bar over the background
ImageFilledRectangle($image,1,1,$percent,$height-2,$fill);

// Send the image to the browser
ImageGIF($image);

// Clean up
ImageDestroy($image);

?>

After you have saved it, upload progress.php to your webserver.

In the page where you want to show the counter, insert the following code:

<img src="http://LINKTOFOLDER/progress.php?current=#&target=100&progress=FFFFFF&background=000000&border=FF0000" />

Remember to change LINKTOFOLDER to the location your progress.php file actually is (http://disdainful-soul.net, for me), and # to whatever percent your progress is. If you don’t know how to calculate your progress, use this formula: (current/goal) x 100.

To change the colour scheme, change the first hex code (six digit number) for the progress, the second for background, and the last for the border.

And that is pretty much it. Enjoy! :)

Originally published at Working Title. Please leave any comments there.

Tags: