Saturday, May 30, 2009

Brooks St Pizza Tracker

Dominos almost got it right with their pizza tracker but theres a few things they left out.



Oh also, if your wondering, Step Zero is get drunk.

Friday, May 29, 2009

Jay burns Paul

Today paul almost made something cool but he failed, its alright though because its paul so we're used to it. MLIA

Thursday, May 14, 2009

How much longer?

Quite possibly the best app I have ever written.
Your day in terms of a blue progress bar...

Get it here: 10 seconds to go

What's your favorite beer pong song?


Brooks St. is making a beer pong playlist and we would like your opinion. So far this is what we have. The widget here is dynamically updated when changes are made.

Btw, Grooveshark rocks. If you haven't heard of it, check it out. It's a free online streaming music app that beats out Pandora big time. It's not limited to random radio station play of artists like Pandora is due to copyright issues. You can search and play specific songs for artists, albums, create and share playlists, build a favorites library, view your friends library, make widgets like this one, etc.

The Volcano Taco Is Back!


In small towns around America, children are waking up today with the thought of one thing on their mind, the volcano taco. That's right, today May 14th, marks the epic return of what some would call the perfect taco. How is it hard not to resist with its red crunchy outer shell, perfectly layered inner ingredients, topped it's the special "lava" sauce. The volcano taco sports a nutritional punch with 8 grams of protein, 240 calories, 17 grams of fat, and only 14 grams of carbohydrates per serving.

How many volcano tacos are you pledging to eat today?

Tuesday, May 12, 2009

Help! I moved my app from II6 to II7 and its broke!

Set the Application Pool from Integrated to Classic Pipeline mode. Took me an effin day to figure this out. You're welcome.

Friday, May 8, 2009

Software Development = Epic Fail

Through the years I have seen a few different development life cycles stuff like really ad-hoc frameworks to strict SCRUMS to hybrid Waterfall techniques. Ive seen many good projects fail and some bad ones devolve into catastrophies, but some things are constant.

These are some of my observations about each part...

In the beginning everybody is really excited about a fresh new project. Using that motivation a ton of documentation will be made. There will be a clear roadmap, requirements docs etc. but only for 25% of the actual end product. Some of the documentation will be stored on a company knowledgebase, most will be in peoples 'My Documents' folder and the remainder will be in printed version only and seriously out of date within 2 weeks.

Once the documentation has been completely somewhat written engineers will casually start coding ignoring almost all of the documentation and making numerous exceptions to the accepted designed framework and just generally doing what they want.

When a workable version of the product is ready, QA will rip it to shreds belittling the developers. They will quickly drill through any eye-candy the developers have put in and expose the complete and utter lack of functionality.

At the "halfway" mark developers sometimes wake up and start actually wiring up the buttons they added in the first part. They wont stay past 5 but they may not take a full 2 hours for lunch.

This is where I come in. Usually I would start to develop a kit and actually install the product. Its at this point I realize no one knows anything about how the product actually works. The fact that it exists will usually baffle me and I will spend several days reverting virtual machines trying to find the exact balance of Windows components and 3rd party software to install to get the app working.

About 3/4s of the way we enter the bickering stage. QA and Development will fight constantly in this phase. Engineers will be annoyed that QA "isnt using the software correctly" and QA well be slighted because devs "cant repro" implying QA dropped acid that day.

About 2 weeks out from the release date people start feeling the urgency. At this point the build process will inexplicably break causing the entire process to shut down for at least a week. QA will have little confidence in the product. The CTO or Engineering lead will freak out and get the date bumped. This could repeat for a while...

Eventually enough concessions will be made and functionality deferred to a future versions that the current version will be "ready." This is important because everyone has been looking forward to this date and eagerly awaiting the new release. If by eagerly awaiting you mean won't look at for two weeks.

Thursday, May 7, 2009

Whoever did this should be shot!

Why make it look like this? How is this better? I hate change for the sake of change.


Please tell me theres a way to unbeautify this tool...

Wednesday, May 6, 2009

Brooksie Lifetime Achievement Award

Lifetime Achievement Award Nomination: Will Smith

I'd like to formally nominate Will Smith for a Brooksie Lifetime Achievement Award.


Not only is he a great hip hop artist, producing many well known hits, his work on "Fresh Prince of Bel Air" can only be characterized as ground-breaking. I don't think anyone would disagree, its not officially summer until you hear Will Smith's "Summertime"




Take into account his great success in movies, with many blockbusters including: Independence Day and Bad Boys and
you've got a great career worthy of a Brooksie.

And he's not just limited to comedy or action, his ability to cross into the drama genre further illustrates his worthiness for this prestigious award.

If you were to list all his works we'd be here all day so I'll just sum this nomination up with a video...

The Green Monstrosity

The newest edition to the Brooks St Angles. We really needed a green bike in our gang. Still not sure why Ed needs 2 bikes and the basement is already packed in the wintertime but whatever.

Tuesday, May 5, 2009

Steak Churrasco

(1:32:59 PM) ch00ch|: hm what to get for lunch
(1:33:05 PM) ch00ch|: its raining, so i aint goin far
(1:51:57 PM) JaygerJ: human flesh?
(1:59:34 PM) sal: i got stop and shop sushi
(2:00:05 PM) JaygerJ: classy
(2:07:02 PM) ch00ch|: well
(2:07:04 PM) ch00ch|: i failed miserably
(2:07:10 PM) sal: how?
(2:07:12 PM) ch00ch|: tried one of those churrascos from au bon pain
(2:07:17 PM) ch00ch|: the steak one
(2:07:22 PM) ch00ch|: and i go to the guy, ask him to make it
(2:07:28 PM) ch00ch|: he doesnt speak english, points me to the warmer
(2:07:35 PM) ch00ch|: its 2 pm so i know anything in that warmer has been there since at least noon
(2:07:39 PM) ch00ch|: so i say, can you make me a fresh one
(2:07:44 PM) ch00ch|: he says no you take the one from the warmer
(2:07:54 PM) ch00ch|: i sit there for a minute, thinking about going with the turkey club that i always get
(2:08:00 PM) ch00ch|: but i was feeling like something different, so i grab it
(2:08:09 PM) ch00ch|: its a tortilla wrap, with 99.9% white rice
(2:08:14 PM) ch00ch|: 3 tiny pieces of steak
(2:08:20 PM) ch00ch|: and like 4 veggies
(2:08:23 PM) ch00ch|: theres nothing in it
(2:08:27 PM) ch00ch|: it couldnt possibly be more bland
(2:08:36 PM) ch00ch|: for $6.17!
(2:08:40 PM) sal: review it
(2:09:05 PM) ch00ch|: i just did

Determing a File Encoding in VB

Ever have to open a file in VBS and its all messed up. The file may be in UTF8 or Unicode.
The is especially annoying for SQL files so I did this:

'**************************************************
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile("C:\UnknownFile.SQL")
'Set this to false so it opens as ascii
Set objTextStream = objFile.OpenAsTextStream(1,False)
'Grab the first line

strTemp = objTextStream.ReadLine

If InStr(strTemp,"") > 0 Then
'UTF8 = depends on the content
'I stripped out the wacky characters and was OK

MsgBox("File is UTF8")
ElseIf InStr(strTemp,"ÿþ/") > 0 Then
'Unicode = just open the file again with
'Set objTextStream = objFile.OpenAsTextStream(1,True)

MsgBox("File is Unicode")
Else
'File is normal
MsgBox("File is ANSI")
End If

'**************************************************

Monday, May 4, 2009

MSBuild VMWare VI Revert Machine

For nightly deploys I thought it would be best to revert our VM testing machine which is hosted on a VirtualInfrastructure server (can be ESX), but it proved to be kind of a bitch. Heres what I did to get it to work:

1. Install PowerShell (http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx)

2. Install VI Toolkit (http://www.vmware.com/sdk/vitk_win/index.html)

3. Copy Initialize-VIToolkitEnvironment.ps1 located in the VI Toolkits folder, to something like revert_machine.ps1 and put it in a common place, I put mine with the build scripts.

4. Add this garbage to the ps1 file:

connect-viserver restore -Protocol https -User USERNAME -Password "PASSWORD"
stop-vm VMNAME -confirm:$false

set-vm VMNAME -Snapshot (get-snapshot -vm VMNAME -name "IMAGE NAME") -confirm:$false
start-vm VMNAME -confirm:$false
sleep 90
exit

Only put -Protocol https if its https
Username is a user that has rights to revert
Password is their pass, needs quotes I think
VMNAME is the name of the Virtual Machine
IMAGE NAME is the name of the Snapshot to revert to, keep in mind that you should only have one snapshot with this name otherwise it returns a list or something and it all fails.

You can change the sleep or get rid of it, 90 seconds was about how long it took for the machine to start up and auto login plus a little padding.

5. Add this task to a target
<Exec Command='powershell.exe -psc "C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\vim.psc1" -c ". \".\revert_VMMACHINE.ps1\""' />

Just sub in the correct name and path of the ps1 file you created.

I'm sure theres a bunch of ways to do this but this was quick and it works. Only time I had problems was when i didnt specify the User and pass for connecting to the VI server and when I accidently made a snapshot with the same name. Other than that its worked fine. Enjoy.

Swine Flu = Bunch of BS

People need to slow their role about swine flu. Check it...

So far they think about 22 people have died from swine flu, big deal!
The actual flu kills over 30,000 people a year.

More people are killed by lightning than swine flu or Mexican flu or H1N1...

Not that it has anything to do with it but people are even killed during freak bowling accidents.

Point is your gonna die. Deal with it!

If not the swine flu then probably something even more painful.

Saturday, May 2, 2009

Dalai Lama Rocks Gillette

Im not gonna bother trying to relay what he said, since I couldn't possibly do it justice. If your interested you can read his works.

First thing we see pulling up is people tailgating in the parking lot. So you know its gonna be good. I figured there would be tons of monks and people like that but it was more like a rock concert or a sporting event.

Personally I got some nachos. People were up and about, texting on their phones. One lady fell asleep in front of us.

A lot of people left during Q&A to beat the traffic, which I felt was kind of rude. Other than that the speech was great, the Dalai Lama was very funny at times and they mananged to raise over 400k towards a Tibetan Heritage Center in Boston.

Obviously 1.5 hours was not enough to learn much about Buddhism or gain total enlightenment but at least I now know hes a Pat's fan.

GO PATS, FREE TIBET!!!

Friday, May 1, 2009

Increasing Productivity

Often times I am never asked, "Sal how can I be as productive as you on the computer?" If I was asked Id tell them:

1. Get more stinking monitors - If you are using less than 3 monitors you should upgrade, there is no limit but it does usually take time to get used to more monitors.

2. Dont use the mouse - If you can find a keyboard shortcut then use it, this will save you an eternity in moving your hand from the keyboard to the mouse

3. If you must use a mouse get something decent - it makes a huge difference, invest the 50+ dollars and youll be glad you did (my personal recommendation is the Logitech MX series 1000,1100)

4. Get a Macro Program - I use Winkey (http://www.pcworld.com/downloads/file/fid,5506-order,1-page,1-c,alldownloads/description.html)
Anything I do more than once I create a script and bind it to a key. Sure it takes time to write the scripts but youll end up saving time and trouble in the long run.

5. Turn off every notification - Outlook, AIM, anything, turn it off.

6. Get TimeLeft or some other desktop alarm system (http://www.timeleft.info/) I set a counter to 45 minutes. When the alarm goes off I take a break and check email IM etc.

7. Don't start a chatroom with your friends. Pretty self explanatory. Not many people would do it but its a complete waste of 99% of your day.

Set A Vdir property from VBS

Couldn't find a decent sample online for this functions so heres mine:

Set providerObj = GetObject("winmgmts://localhost/root/MicrosoftIISv2")

'Change Report Server to the VDIR your trying to manage
Set IIsWebVirtualDirObj = providerObj.get("IIsWebVirtualDirSetting='W3SVC/1/Root/ReportServer'")

'Set some properties here, notice the _
'Where the hell did that come from? Dunno but it works
' List of properties are here http://msdn.microsoft.com/en-us/library/ms525644.aspx
IIsWebVirtualDirObj.Properties_("AuthFlags").Value =1
IIsWebVirtualDirObj.Properties_("AnonymousUserName").Value= "Domain\User"
IIsWebVirtualDirObj.Properties_("AnonymousUserPass").Value = "Password"

'Put it!!!!!! Set it....
IIsWebVirtualDirObj.Put_()