Powershell Rest Demo

  • Posted on: 20 October 2014
  • By: Nate Jones

Have you ever wondered if the number of siblings that a person has makes them more or less likely to be president? This is a demo I wrote to show usage of REST APIs from Powershell. This example uses the Invoke-RestMethod in order to call the Freebase API. First we search for all US Presidents. Then we retrieve the list of their siblings. The script displays the number of siblings that each president had and then prints the average number of siblings over all of them.


Simple Maze Example

  • Posted on: 16 October 2014
  • By: Nate Jones

Threw together a simple javascript maze game tonight to practice using the html5 canvas tag. You can check it out embedded below or at JSFiddle. The object of the game is to navigate the blue dot through the maze to the yellow X. Nothing happens when you win other than your deep sense of accomplishment :-).

Creating A Sortable Form Element

  • Posted on: 26 August 2014
  • By: Nate Jones

Many times it is useful to have a set of options in a form that can be sorted by the user in a drag and drop fashion. Whenever possible I like to use standard form elements to report data to the server. So one way I have found to provide a user with a sortable form element is by using javascript to update text form elements with the relative weights of the list.

Create A Random File Using Powershell

  • Posted on: 21 August 2014
  • By: Nate Jones

I recently needed to create a file for testing the upload capabilities on a website. The content of the file didn't matter, only the size. So I wrote this little powershell script to dump a random series of bytes to disk.

  1. #Create the array of the size you want
  2. $out = New-Object Byte[] 1024
  3. #Fill the array using a System.Random object
  4. (New-Object Random).NextBytes($out)
  5. #Write the array to a file with System.IO.File
  6. [IO.File]::WriteAllBytes('filename', $out)

The Hoss Foundation Launches A New Website

  • Posted on: 7 July 2011
  • By: Nate Jones

After weeks of development, we took the new Hoss Foundation website live last night! This site gives the Hoss Foundation far better multimedia capabilities and the ability to more quickly engage their supporters online. Check it out at http://hossfoundation.com

For those of you who don’t know...

The Hoss Foundation, founded by former NFL QB Jeff Hostetler and his wife Vicky, is a 501 (c) (3) non profit organization established to help meet the needs of children and/or families facing hardships due to traumatic injury, illness, or financial crisis.

Organizing Your Thoughts With Evernote

  • Posted on: 24 June 2011
  • By: Nate Jones

Sometimes I don't know where all the thoughts in my head go. For me the problem has never been having ideas, it's remembering the ideas. Even if I actually manage to write down an idea, bringing it to mind later when I need it can be less than certain. On top of that there is reference material to deal with. Even if I do manage to read the tons and tons of paper that passes over my desk, retaining that knowledge so that it's available, especially if it's not immediately useful, is difficult.