07-29-08 20:49

“Come brother. Put on your colors. It’s time to go.”

There it was. The call to arms. Green on white. Argent, a bend dexter vert. Donning the garment, we became standard bearers. A battle was scheduled and warriors were needed.

The trek to the field was short. No time to reflect on the coming struggles. Warriors streamed in, solemn and somber. Those in red went one way, green and white the other. There was no animosity between them yet. No conflict before the battle and after one is declared the winner, there will be none again. Not only did the combatants show up to do their part, but so did spectators. Streaming into the area, sitting and waiting for the war to begin.

There the participants stood, opposing each other. The men moved restlessly, waiting for the signal to start. They knew it would come shortly, but it was still and eternity. Then a shrill blast from a whistle broke through the silent air. It had begun.

Hurleys swung, sliotar flew, men clashed, titans fell. A steady rain came with the opening whistle, turning the pitch to mud.

The spectators cheered at every point and hit. Applauding for these men, who battled for their pleasure. Then, as quickly as it started, another whistle was blown and it was all over. All the men went back to their respective sides and left the field. They had won. Spectators stood up and discussed the days events with their neighbors.

At the pub, pints were raised, songs were sung and all the warriors of today’s battle were brothers in arms.

Eventually they all stumbled home. Muddy grubby jerseys were stripped off and left on the floor. It would not be until next week that they would hear that call again.

“Come. Put on your colors. It’s time to go.”

Posted in Stories, Ideas/Creations | No Comments »

02-19-08 16:20

“Don’t you think that’s sadistic?”

“What?”

“Listening to Beethoven.”

“Why would that be sadistic?”

“You’re reading A Clockwork Orange at the same time!”

“Oh. The ninth. The glorious ninth. You imply that even though Alex is just a character, it’s like rubbing it in Your Humble Narrator’s litso, during the times when he was unable to slooshy dobby old Ludwig Van.”

“… You sure are queer as one.”

“A what? A clockwork orange? It’s subtle. I’m not concerned with motive or higher ethics. I am only concerned with pleasing myself.”

“A noble goal, Dr. Brodsky.”

Posted in Stories, Ideas/Creations | No Comments »

09-08-07 11:16

Horseshoes - A dart game for two players

This game is played much like a standard game of horseshoes, but rather than using horseshoes and stakes in the ground, the equipment is six darts and a dartboard.

Goal: Be the first player to score ten points without going over.

Gameplay: Points are scored by throwing your darts at various targets on a standard dartboard. Players alternate throws after every dart. Player 1 throws a dart, then player 2 throws a dart, then player 1 again. After six darts have been thrown (three by each player), the points are tallied for that round and the next round starts. The player who shot second in the previous round (and also last), shoots first in this round.

Scoring:
One point - Dark-colored field inside the treble ring
Two points - Outer bulls-eye
Three Points - Inner bulls-eye

Darts that miss the board completely, hit the border of the board, the double ring, the fields between the double and treble ring, the treble ring and darts that land in light-colored fields inside the treble ring all score zero points.

A player must tally more points than their opponent in order to score any points in a round. The number of points scored by this player is equal to the difference of the points tallied.

Winning the game:
The first player to score exactly ten points wins the game. If a players  score becomes higher than ten, that player is penalized. First the difference between their score and ten is found. That value is then subtracted from ten and that is their new score.

Example gameplay:
This game of Horse-shoes is between Jordan and Steve. They have decided that Steve will shoot first.
Round 1
Steve throws his first dart and it lands in a one point area (black field inside treble ring). Jordan then throws his first dart and hits a non-scoring field. Steve’s current tally is 1 and Jordan’s is 0. It’s Steve’s turn again. Steve throws his second dart and misses the board completely. Jordan does the same. The tally stays the same as 1-0. Steve’s third and final throw for this sound lands in another one point-field. Jordan’s throw also lands in a one-point field. The tally becomes 2 for Steve and 1 for Jordan and the round
is over. It’s now time to find the score for this round. Steve tallied more points this round, so he subtracts Jordan’s tally from his own, and the difference is added to Steves total score. In this case 2 - 1 = 1, so the
total score becomes Steve: 1, Jordan: 0.

Round 2
Since Jordan shot last in the previous round, he now shoots first. Jordan tosses his first dart and opens the round with an inner bulls-eye, tallying three. Steve throws his dart and tallies 1. They both tally zero for their next two shots. At the end, the tally for this round stands at 3 for Jordan and 1 for Steve. Jordan tallied higher and adds 2 to his total score (3-1=2). The game is now set at Steve: 1, Jordan: 2.

Jordan and Steve play some more until the scores are set at 9 for Jordan and 8 for Steve. Steve is up first. Steve misses. Jordan shoots and hits the inner bulls-eye. His tally is 3. Steve and Jordan miss their next two shots. At the end of the round, Jordan has tallied 3 and Steve, 0. Jordan then adds 3 to his total, bring him to a score of 12. This is over 10, so he subtracts 10 from 12 (12-10=2) and then subtracts that from 10 (10-2=8). Jordan’s score is now 8 and they are tied. In the next round, Steve tallies 4 with an inner bulls-eye and a black field and Jordan tallies 2 with an outer bulls-eye. Steve tallied higher, does the required calculation (4-2=2), adds 2 to his total, bringing him to 10 and wins the game.

Posted in Recreation, Ideas/Creations | No Comments »

09-08-07 11:11

Handgrenades

Handgrenades is a game played like Horseshoes, but with more rules that increase difficulty. The only differences lie in how various throws are scored.

Goal: See the rules of Horseshoes.

Gameplay: See the rules of Horseshoes.

Scoring: Darts that land on a dark field inside the treble ring will tally 1 point.
Darts that land in the outer bullseye tally 2 points.
Darts that land in the inner bullseye tally 3 points.
Darts that land in the double ring and in any field between the double and treble ring tally -1 point.
Darts that land outside the double ring, but still on the board tally -2 points.
Darts that land in a light field inside the treble ring, in the treble ring or strike the surface of the board but do not stick all tally 0.
Darts that that strike another surface that is not the dartboard tallies -3
points.

A player’s score cannot fall below zero.

The way to score a round is as follows:
1. Find the player’s negative tally. If they threw a mixture of negative  and positive tallying darts, then their positive darts must first be used to offset the negative.
2. If a player has positive points after offsetting all of their negative tally, that player then uses their left over positive points to then offset the opposing players positive points.
3. If a player, after offsetting both their own negative tally and the opponnets positive tally (found after the opponent has offset their own negative tally) has anymore positive points, that player then add that positive tally to their total score.

Winning the game: Same as in Horseshoes.

Posted in Recreation, Ideas/Creations | No Comments »

08-21-07 13:11

Spinning the flint with his thumb shot sparks onto the wick. What was just cold metal a few seconds ago
was now a column of dancing yellow-orange flame. He brought it towards his mouth and to the waiting tobacco. A deep drag on the cigarette brought a heat to his lungs and a greatly anticipated relief to his brain. He exhaled, blowing the out the smoke in a fast moving stream. It was then he noticed how windy it was here. The smoke had hardly left his mouth before the wind took it and threw it back at him.

He looked around himself and saw there were a lot of hills about and many trees. Being that it was autumn, all the trees were losing their leaves. The wind blew red, yellow, orange leaves every which way. The rider could see where various residents had attempted to corral the leaves into neat piles and show off their neatly trimmed lawn. The wind would have none of that though. If the wind wanted a Pollock on the ground, that’s what it got. From his vantage point at the top of the hill, he could look down and see the town below him. It was small, but a lot of the houses were large and it was obvious that this town was the place to live for the wealthy who worked in the city nearby. Given a cursory examination, the town didn’t stand out much from any of the other ones he had been through recently. Everyplace had its restaurants and shops and schools. This one was no different in that regard. The rider then saw something that made the town start to stand out in his mind. It was on top of one of the hills nearby. A single wind turbine, reaching to the sky. Why there was only one and not an entire farm of them was odd, but without an immediate clue as to the reason, he pushed it out of his mind.

Finding there was nothing left to get out of the cigarette, he tossed it to the road and ground it with his boot. It was time to get off this hill and start his search. The man he was looking for had eluded him thus far, but he was almost positive he was located in this town. There was no place else for him to be. It was a great place to hide and he appreciated the skill of his quarry. The hunt was about to end though. He felt it.

Kicking the starter on his motorcycle, the bike roared to life and he started his ride down the hill into town. As he passed it, he took one last gaze at the solitary turbine on the hill.

Posted in Stories, Ideas/Creations | 1 Comment »

08-20-07 10:50

A while ago I was talking to a friend and she asked me if I knew how make it so she could type in Japanese. She had a penpal in Japan and wanted to write to him. I didn’t know off the top of my head so I did a quick Google search and told her what I found. She didn’t feel comfortable screwing around with settings on the family’s shared computer, so we looked around for a web based solution. All we could find was a simple website that would let you type in katakana and hiragana but not get the kanji she wanted. Only writing in hiragana makes you come off as unintelligent, not to mention using kanji really cuts down on the space used. We couldn’t find any other solutions than that, so she came up with a half analogue, half digital temporary solution.

I thought to myself, I could make an acceptable solution. A simple Web-based Japanese Keyboard (WebJaK). In general, it would work like this: User goes to a website and sees a keyboard and a text box. They can either click on the keys on their keyboard, or type on their own. The keyboard would have hiragana on it (or katakana if they held down shift) and they could type and the results would show up in the text box. This is no different than the website that was found earlier, except mine would have an extra functionality. One that would make it work more like a real keyboard setup. That thing was hiragana to kanji lookup. As you typed in words, the script would look to see if those characters corresponded to any readings of kanji and then give you the option of making a replacement.

I would need a few things though. First, a tutorial on how to get keyboard events in JavaScript. Second, a Japanese dictionary that contained hiragana to kanji lookups that would give me Unicode back. Third, a picture of a standard Japanese keyboard that would give me a reference to use when making the user interface.

Parts one and three were easy enough, Google helped again. Part two was a little trickier. I remembered one site that I’ve used before that was an online dictionary (see it here) and I looked back at it again and saw that it had a link to the dictionary it uses. It’s in XML format, but I figured I could easily parse out the tags for the hiragana <=> kanji pairs. Sure, that would be simple enough, until I looked at the file. It’s about 30MB. The number of lines was close to two million (1,806,833). Each line wasn’t a single entry though. Each entry didn’t have kanji attached to it, and each entry used about ten to fifteen lines to save all the data. I wanted to know how many kanji elements there were. How could I do that though? It’s probably not the most efficient way, but I went into the file with Vim and started attacking it with lines that looked like this - :s/someRegularExpression/d (search the file for lines that matched that regexp and then delete it). Soon, I was down to just kanji, and the results were around 10,000 lines.

That was the end of my development. That 10,000 entries is just too much. Sure, I can put them all into a database, but the lookups are going to kill performance.  A web based script just can’t deal with that many of them. This is probably why there are only kanji lookups on full programs. Does anybody have any suggestions?

Posted in Programming, Ideas/Creations | No Comments »

08-16-07 08:37

“INSTANT NEON GARDEN”, the box had said. ‘Instant neon garden?’, she thought. She had no idea what that meant and there were no photos on the box to show her what was in there. It was sealed shut with those large staples that required the jaws of life to remove, so she couldn’t even consider sneaking a peak at it in the store.

Checking every side of the box, she found very little information. Just a repetition of, in a variety of languages, ‘Instant neon garden - Easy set up. Be the talk of the town, impress your friends!’

There was only one left on the shelf, so it must be a popular item she thought. Hefting it into her cart next to a bulk package of forty rolls of 2-ply thousand sheet toilet paper and a container of Kool-aid mix that could turn your entire swimming pool into a purple grape lagoon, she headed for the checkout. The boy at the register dutifully scanned her items, one by one. Watching her total go up and up, she realized she never looked for a price for her new garden. She thought she could just say she didn’t want it when it was scanned if it was too much. When the boy got to it, he aimed the barcode reader gun at the box and got nothing. Frowning, he pulled the trigger again. And again. Finally after hitting the gun against his palm a few times, the box scanned. She was relieved to see that it finally worked and that it was only $10.99. How these wholesale club stores got their prices so low would never cease to amaze her.

During the drive home she was, if anything, anxious. What did it look like? Would it really make her the talk of the town. She pulled into her driveway and took a deep breath. ‘Relax’, she told herself, ‘you’re getting too worked up over this. Wait until it’s nearly dark until you set it up’. It wouldn’t get dark for another few hours, but it would be a good exercise in patience. She placed the box near the backdoor and tried to find something to do for the next two hours.

She soon learned that patience wasn’t her strong suit. She would continually pace back and forth past the box, checking on it every five minutes, to make sure it was still there. She tried washing the dishes, but when she was drying one, she glanced at the clock and attempted to place the plate next to the sink at the same time. The results were less than optimal. Soon she found herself vacuuming the same piece of rug over and over in front of the clock.

It was finally time. The moment of truth was about the arrive. She brought the box outside and set it on the table. She didn’t want to break anything inside, so she first tried to delicately open the box. When the staples and corrugated cardboard resisted that, she went inside and came back with a box cutter. The cardboard fell to the wayside and the contents of the box were revealed.

She pulled them out, one by one and set them up around the yard. She plugged them all into the surge protector that came with her garden and set that near the outlet on the outside of her house that she never used. It was the moment of truth.

When the plug hit the outlet, the results were breathtaking. It was like Las Vegas had upped and moved to her tiny backyard. Begonias, hydrangeas, crocuses. Peony and dahlia on opposite sides of the yard pushed their light towards each other, each trying to out do the other. The instant neon garden was the beacon at the end of Daisy’s dock for her Gatsby.

…to not be continued…

Posted in Stories, Ideas/Creations | 6 Comments »