Huddled Masses
You can do more than breathe for free...
Browse: Home / Solutions

Solutions

2008 Scripting Games – Solution for Beginner’s Event 8 (and 7)

By Joel 'Jaykul' Bennett on 29-Feb-2008

This continues my series of solution posts for the 2008 Scripting Games with my solution for the Beginner’s Event 7 and Beginner’s Event 8. I’m wrapping them together because beginner’s event 7 was just a debugging exercise so I just pasted the solution at the bottom1. Event 8 was the age old “Higher or Lower” [...]

Posted in Huddled | Tagged 2008 Scripting Games, PowerShell, Scripting, Solutions

2008 Scripting Games – Solution for Beginner’s Event 6

By Joel 'Jaykul' Bennett on 29-Feb-2008

This continues my series of solution posts for the 2008 Scripting Games with my solution for the Beginner’s Event 6. This was actually the script that got me started solving the beginner scripts — someone asked about it in the first couple days of the scripting games, and it got me interested. The challenge was [...]

Posted in Huddled | Tagged 2008 Scripting Games, PowerShell, Scripting, Solutions | 1 Response

2008 Scripting Games – Solution for Beginner’s Event 5

By Joel 'Jaykul' Bennett on 29-Feb-2008

This continues my series of solution posts for the 2008 Scripting Games with my solution for the Beginner Event 5 which was a simple test of your ability to accept command-line parameters and play with dates. The only real trick was that you were required to calculate the number of months and days two different [...]

Posted in Huddled | Tagged 2008 Scripting Games, PowerShell, Scripting, Solutions

2008 Scripting Games – Solution for Advanced Event 6

By Joel 'Jaykul' Bennett on 28-Feb-2008

This continues my series of solution posts for the 2008 Scripting Games with my solution for the Advanced Event 6. This was an interesting challenge because it’s a basic algorithms test … Mow, the scripting guy came up with some interesting brute-force solutions … but nearly everyone else just implemented the Sieve of Eratosthenes, since [...]

Posted in Huddled | Tagged 2008 Scripting Games, PowerShell, Scripting, Solutions

2008 Scripting Games – Solution for Advanced Event 5

By Joel 'Jaykul' Bennett on 28-Feb-2008

This continues my series of solution posts for the 2008 Scripting Games with my solution for the Advanced Event 5 which was a joke of a challenge — basically you have to run an arbitrary set of password “strength” rules over a string. The rules are not very complete, and result in such vagaries as [...]

Posted in Huddled | Tagged 2008 Scripting Games, PowerShell, Scripting, Solutions

2008 Scripting Games – Solution for Advanced Event 4

By Joel 'Jaykul' Bennett on 26-Feb-2008

This continues my series of solution posts for the 2008 Scripting Games with my solution for the Advanced Event 4 which was about drawing a “graphical” calendar in the console. Basically, this is a simple task, and the only complication was the requirement to allow passing in the month. There are solutions from the Scripting [...]

Posted in Huddled | Tagged 2008 Scripting Games, Calendar, PowerShell, Scripting, Solutions

2008 Scripting Games – Solution for Advanced Event 3

By Joel 'Jaykul' Bennett on 25-Feb-2008

This continues my series of solution posts for the 2008 Scripting Games with my solution for the Advanced Event 3 which was about counting votes in an instant run-off election. The idea was to take a CSV file with lines representing “ballots” such that each ballot should be a list of four candidates in order [...]

Posted in Huddled | Tagged 2008 Scripting Games, PowerShell, Scripting, Solutions

2008 Scripting Games – Solution for Advanced Event 2

By Joel 'Jaykul' Bennett on 24-Feb-2008

This continues my series of solution posts for the 2008 Scripting Games with my solution for the Advanced Event 2 which was about scoring a skating contest. The idea was to take a CSV file with skater names and scores (7 per skater), and calculate the average (leaving off the highest and lowest) score for [...]

Posted in Huddled | Tagged 2008 Scripting Games, PowerShell, Scripting, Solutions | 1 Response

2008 Scripting Games – Solutions for Beginner Events 3 and 4

By Joel 'Jaykul' Bennett on 23-Feb-2008

In my ongoing chronicle of solutions to the 2008 scripting games events … the task in beginner’s event 3 was to copy the first line of each text file in a folder into a new text file. This task is so trivial in PowerShell that my solution is the same as the Scripting Guy’s: get-content [...]

Posted in Huddled | Tagged 2008 Scripting Games, PowerShell, Scripting, Solutions

2008 Scripting Games – Solutions for Advanced Event 1

By Joel 'Jaykul' Bennett on 20-Feb-2008

Right up front I should apologize to anyone who’s not a PowerShell user, because it’s just become clear to me that for the rest of the scripting games, I’m going to be posting my solutions to most, if not all, of the puzzles. I thought for sure that I wouldn’t have any reason to post [...]

Posted in Huddled | Tagged 2008 Scripting Games, PowerShell, Scripting, Solutions | 2 Responses

Next »

Lijit Search

Tags

.Net .Net 2008 Scripting Games Automation Bugs Design Development Funny Gadgets GeoShell GUI Huddled Masses Internet licensing Microsoft Modules My Software News Personal PInvoke Pipeline Politics PoshCode PoshConsole PowerBoots PowerShell PowerShell Functions PowerTips Rants Recommender Repository Scripting ShowUI Software Solutions Textile Tips User Group UserInterface WalkThrough WebHosting Windows 7 WordPress WPF Xml

About Huddled Masses

This is web site is dedicated to the musings of Joel Bennett (aka Jaykul) about technology, software, software development, the web, and the world.

Any resemblance of the views expressed and the views of my employer, my terminal, or the view out my window are purely coincidental. The resemblance between them and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader.

P.S.: I occasionally link to things I think are great. When I do, I occasionally find a "referral code" so I can make a little cash. I promise that I don't link to anything just because of that cash (I wouldn't cross the street for the amount of cash those links bring in, never mind write a whole blog post) ... but I do not promise that things I link to will stay great as time passes, nor that you will agree with me about their greatness!

Archives

  • January 2012
  • October 2011
  • August 2011
  • July 2011
  • June 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010
  • August 2010

Copyright © 2012 Joel Bennett.

Powered by WordPress and Hybrid.