Author Archives: josh

aaa

Disable rogue domain computers with Powershell

Ever find out that there’s employee’s insist on adding computer to your company’s domain? Hate having to manually check every once in a while for new machines? Fret no more! Here’s a simple script that will simply disable the computer accounts!

#
# disable unauthorized computers
#

## Create the AD object for looping through.
$root = New-Object DirectoryServices.DirectoryEntry “LDAP://CN=Computers,DC=domain,DC=com”

$selector = [...]

My intertubes are clogged!

Last week I decided to rid myself of paid television and save myself about $90/mo. For the first day it worked fine, but now my internet has been down since Thursday. I’d like to think that normally I wouldn’t be as frustrated with them as I am, but after talking with them via chat and [...]

Twitter Weekly Updates for 2009-06-24

Magical Sign Adventure http://bit.ly/H1WOV #
RT @5thWall: RT @kylefox: Interesting post about "Color and Reality" http://bit.ly/4m15I #
Gonna look at bikes tomorrow at Rick's Cycling! http://rickscycling.com/ Assuming a I wake up in time! #
#workout Yay! My arms aren't so sore anymore! #
Writing documentation is painful, but it can be very rewarding! #
Learned about msbuild and more about [...]

Time filter: C# Project files

Here’s a clightly cleaned up and better version of my time filter project thing, businesshours.zip. Archive contains code, build batch file, and binary.
Some changes this round:

Takes into account timezones.
No longer is missing a day in it’s calculations.
Debugging command line argument to track the inner workings.

Should I feel like it:

Code cleanup
Delete unused variables
Useful comments

Time filtering: PHP version

As mentioned before, I originally wrote my time filter in PHP but converted it to C# for speed. So here it is for posterity and reference.
class nonWorkRanges {
public $parse;
public $start;
public $end;

/*
this::start and this::end stucture

day = 1…31
month = 1…12 (xx = reoccurring)
year = YYYY (xxxx = reoccurring)
weekday = 0…6 (sunday…saturday, if this is set we ignore [...]

Time filtering for helpdesks

One of the goals this year is to have an average response time of 15 minutes for all helpdesk tickets, but we have one problem, no way to track or know if we’re getting closer.
During my initial research, the only thing I could find was code that couldn’t be customized through configuration files so it [...]

Another notch in the belt

One more trip around the sun completed! So what’s happened this time around?

Earned my blue, purple, and purple trim belts in TKD.
Found a girlfriend.*
Proposed to aformentioned girlfriend.*
Moved out and on my own.
Started twittering.
Began my own SourceForge projcet.
Other amazing things I can’t recall!

*Highlight

New design? More like upgrade!

Last Thursday I upgraded the software for my site and it broke everything. So now I’m in the process of getting things back to the way they were…maybe. Katrina’s talked about wanting to do a design or background for my site so it may have some influence on what I do.
In the mean time, enjoy [...]

Twitter Weekly Updates for 2009-06-15

Going offline for a few days. Goodbye Intertubes! #
Back to the drawing board. *sigh* #
Dairy Days FTW! #
RT @parenteau: RT @riotpixel: Brilliant & detailed shadow art. Created by British artists Tim Noble & Sue Webster http://tr.im/o9R9 #
Yeah, don't ever do this with PHP…unless your server is very high-end http://pastebin.com/m9a5b1dd #
Purple Trim FTW! #
THE DARTH SIDE: [...]

Twitter Weekly Updates for 2009-06-06

6 MINUTES UNTIL THE WEEKEND! #
8 MINUTES UNTIL THE WEEKEND! #
RT @shaycarl: Do you want more Subscribers on You Tube? Then you HAVE to check this out! http://bit.ly/gkNnw #
Project Natal, Probably the most awesome Xbox peripheral to date. http://bit.ly/O6imW #
hmm, have a login script compile an exe and run it? it may have some [...]