Micah — Friday, September 28th, 2012 @ 11:03 pm
Filed under: General
So we’re in the car, and Hannah asks for the radio. Mom says, “We can sing: La, la, lala, la!” Dad cuts in with, “La, la, lala la la, la lalah la la lah!” Cue “Ah, come on!” from me, playing along.
Mom turns on the radio. It’s Sail. Final bridge to chorus. “La la la lalah, la la la lalah, oh…”
SeanK — Sunday, August 26th, 2012 @ 10:06 am
Filed under: Family,General
We had an awesome week out at Mayfield Lake. We managed to record some of the action and I used MovieMaker to put together a summary video. A good time was had by all and we plan on making this an annual event.
Nanna — Monday, July 30th, 2012 @ 10:28 pm
Filed under: General
Hey, it’s Hannah! I’m chillin’ at the comp right now ’cause I just finished my school for the day and all my chores.
Today’s been fun because I went to a group called Handmade Blessings at my grandma’s church today (something I’ve been doing for a while now.) and one lady brought an awesome lemony-cake-thing for a snack. I had, like, five slices. But it was kinda hard today because my arms are sore from tubing yesterday (see next paragraph) and the ladies always ask me to do stuff and carry things for them. As soon as I got there, there was a problem with the coffee machine (’cause something just had to go wrong ) and I had to pick it up and move stuff around. Then I had to look for the coffee grounds; and when I finally finished and brought it back to the crafting room, Helen tried to get coffee and nothing came out. I had left the stupid pump out. *facepalm* Then I helped Marlis carry some stuff into the attic and Julie needed help with the birdhouses. Now my arms are even more sore. *heavy sigh*
Now to explain why my arms are sore. Hehehehe!! Yesterday we took the boat out on Lake Sammamish and hooked the inner tube up to it. I was the first one on, by popular vote. As I sat there, floating away from the boat, I began to doubt whether or not this was going to be any fun. Then mom sped up… ’nuff said. My mom is VICIOUS when she drives the boat. She has this whiplash technique that is very painful but so much fun!!! She turns a hard right and you go flying off the left side of the boat, then she turns left and you whip the other way and gain so much speed that by the time you’re on the right side, the inner tube starts flipping and sends you crashing into the water. Sorry no one got any pics.
Ahhhhh, I spent thrity minutes scratching my head over this before a a coworker pointed out an easy solution my problem. Since most of my time was spent searching the web for a possible solution without finding any, I decided to post this entry in hopes that a search engine or two might pick it up and help someone else who doesn’t have awesome coworkers walk past their office on a regular basis.
I just used Visual Studio 2010 to create an ATL project and added an object to it and added a method to the object. This is all the stuff you see on stage at every PDC. CodeProject has a tutorial very similar to what I did. Anyway I write a quick 2 line test.js file that uses ActiveXObject to create it and call the method and I get the following error (0x800A01AD).
test.js(1, 1) Microsoft JScript runtime error: Automation server can’t create object
So what did I do wrong. Turns out, nothing except trying to run the test.js file from a 64 bit command console. All I had to do to get it working the way I expected was launch the 32 bit command console (commonly found at C:\Windows\SysWOW64\cmd.exe) and run it from there.
As Mr. Crockford is removing JSLint‘s support for WSH siting other community improvements, I thought I would post one such improvement. To create s WSH version of JSLint follow these easy steps:
1. Paste the following code into Notepad or your favorite editor and save as wsh.js.
(function () {
var i, j, e, filename, file, source, fso = new ActiveXObject("Scripting.FileSystemObject");
if (WScript.Arguments.length > 0) {
for (i = 0; i < WScript.Arguments.length; i += 1) {
filename = WScript.Arguments(i);
if (fso.FileExists(filename)) {
file = fso.OpenTextFile(filename, 1, false, -2);
source = file.ReadAll()
.replace(/\r\n/g, '\n')
.replace(/\r/g, '\n')
.split('\n');
if (!JSLINT(source, {})) {
for(j = 0; j < JSLINT.errors.length; j += 1) {
e = JSLINT.errors[j];
if (e && e.line) {
WScript.StdErr.WriteLine(filename + '(' + e.line + ') : ' + e.reason);
}
}
WScript.Quit(1);
} else {
WScript.StdOut.WriteLine(filename);
WScript.Quit(0);
}
} else {
WScript.StdErr.WriteLine(filename + ' : File Not Found');
}
}
} else {
WScript.StdOut.WriteLine('jslint - Windows Scripting front end for JSLint');
WScript.StdOut.WriteLine('Usage: jslint filename [filename] ...');
}
}());
Update: The code above includes a fix suggested by Marina Schiff on the jslint Yahoo group after Mr. Crockford removed a similar workaround from jslint.
2. Download the latest version of fulljslint.js from Mr. Crockford's GITHUB.
3. Concatenate the two files into one file named jslint.js (You can do this any way you want but the following DOS command will work if you run it from the directory that contains both files)
copy fulljslint.js+wsh.js jslint.js
4. To ease typing, paste the following command into jslint.cmd
@cscript "C:\PATH TO YOUR TOOLS DIRECTORY\jslint.js" //Nologo %*
Now to check foobar.js just run the following command
jslint foobar.js
Since I am an avid Source Insight user, I hooked the above up to a "compile" (F5) key and use si's output parser to quickly take me to the lines containing lint.
Nanna — Wednesday, October 6th, 2010 @ 3:01 pm
Filed under: General
As Fall gracefully leaves, the beautiful Winter stalks out quietly. She gently covers buildings and cars with a thin, pure layer of frost. The winds blow colder and the animals scurry to their shelters to sleep through it. Winter leans over and touches the waters, freezing the top of every river and stream and brook. However, she frowns at the oceans, for their wildness she cannot tame. She sends the clouds to cover the sky and scatters snowflakes o’er the lands below. She stacks the snow either inches or feet high and covers the ground. She watches as the young children play in her creation and she witnesses the older ones gazing in awe at the magnificence of her work. She sends gails and winds to shake the trees and send the children inside before she makes her most favorite thing of all. Blizzards. The winds pickup speed. The ice on the roads and the hail in the air make it difficult to see anything. But Winter sees. She smiles and laughs at her creation. Some days she let the wind loose and it whipps around trees and buildings. But most days everything is peaceful and lovely. She’ll continue her work till Spring arrives and begs her to leave. Occasionally Winter can bride Spring into letting her stay longer but not in this scenario. Winter’s tears freeze in the snow as she melts away slowly, not to see her beautiful work for a long while.