Saturday, October 11, 2008

I was working with a lot of images for a website today and I needed to quickly create thumbnails for each one. I did a quick Google search on PowerShell and creating thumbnails, but I gave up after about a minute… yeah, I probably got impatient, but oh well.

Anyway, here it is:

get-childitem *.jpg | foreach {
    $full = [System.Drawing.Image]::FromFile("$(resolve-path $_)");
    $thumb = $full.GetThumbnailImage(72, 72, $null, [intptr]::Zero);
    $thumb.Save("$(resolve-path $_).thumb.jpg" );
    $full.Dispose();
    $thumb.Dispose();
}

Obviously, you likely wouldn’t hardcode the height and width for the thumbnail, but would probably base it off of the original image (i.e. varying it off of whether the image was wide or tall). But, I didn’t need to. That’s up to you to figure out :-)

posted on Saturday, October 11, 2008 4:21:14 PM (Central Standard Time, UTC-06:00)  #    Comments [0]
 Tuesday, September 30, 2008

I promised the slides, notes and links from my Memphis .NET User Group talk, so here they are… and wow, they haven’t really changed much from when I gave the PowerShell talk to the FSDNUG group. So, I’ll just link to the zip of the presentation from that talk.

The primary slide that I added to my presentation was entirely related to a StackOverflow question entitled, “how do you use PowerShell.”

I felt that the talk went fairly well, but I did have to rush towards the end because I added an overview of some real scripts that I use, but I didn’t remove enough of my prior content… thus, the rush. :-)  No big deal, though. I did get the feeling that there were a few people who didn’t really feel that PowerShell applied to them, but hey, that’s fine. At least there weren’t any tomatoes!

I’ll be presenting one more time (as far as I know) this year at Harding University. I’m looking forward to it, too. I’ll be presenting for the Computing Seminar on October 9. The last time I spoke before Seminar was in 2003 when I talked about “Smart Client Software.” That was when it was for college credit! I’m planning on changing the talk up a little to direct it more towards CS students instead of professional developers. I imagine it will be a slightly different audience than the typical .NET User Group, too. We’ll see.

Back on the MNUG talk, thanks to Randy for driving and thanks to Colin for inviting me to speak. It was fun!

posted on Tuesday, September 30, 2008 7:13:41 AM (Central Standard Time, UTC-06:00)  #    Comments [0]
 Wednesday, September 24, 2008

Colin is risking it I say. How is he risking it you might ask? By asking me to speak to the Memphis .NET User Group!

I think he’s crazy, but whatever.

Randy Walker and I will be traveling to Memphis, TN tomorrow night where I’ll be presenting on PowerShell. Randy is coming out to meet with the founding members of the Northeast Arkansas .NET User Group, which is very cool. Regarding my presentation, it will likely be a similar presentation to what I gave to the FSDNUG group, but I’m hoping to have more script examples. I think I gave the Fort Smith group a good picture of PowerShell, but I don’t think I showed them nearly as many practical uses of PowerShell as I would have liked. I’ve got a folder of scripts now, some that I’ve written for myself and a few that we’re using at work, that I’ll be showing and walking through during the presentation.

If you’re in the area, come on out!

posted on Wednesday, September 24, 2008 12:42:45 PM (Central Standard Time, UTC-06:00)  #    Comments [0]
 Monday, September 08, 2008

Tonight, I presented on PowerShell to the Fort Smith .NET User Group. It was my first presentation/speech since college! Fortunately, it seems to have gone over well and I think I helped drive some interest in PowerShell. Here are my slides and other relevant links for any of those who attended.

PowerShell Homepage and Download

PowerShell Blog

PowerShell Community Extensions

PowerTab

Start-Demo script that I used to automate some of the demos

Many thanks to Chris Green for allowing me to use some of the content from the presentation that he shared at Tech Ed 2007 Australia. Thanks also to Ben Pearce for his great PowerShell cheat sheet. Final thanks to Michael Paladino for helping me with a run-through of my presentation ahead of time.

I've zipped up my PowerPoint presentation along with my demo.txt (to go along with the Start-Demo script), the source for my PipelineDemo program, and my custom ps1xml file. You can get the zip with the presentation contents here. The PowerPoint presentation has a lot of relevant links that I didn't explicitly post here.

I hope everyone enjoyed the talk! I enjoyed giving it!

Let me know if you have any comments on ways that I could improve.

posted on Monday, September 08, 2008 9:27:38 PM (Central Standard Time, UTC-06:00)  #    Comments [3]
 Friday, September 05, 2008

I didn’t expect to add a Speaking category to my blog just yet, but… well, here it is, my premiere Speaking post.

I’ll be presenting on PowerShell to the Fort Smith .NET User Group next Monday. The talk will be an introduction level talk, but I plan on covering quite a bit if time allows. My primary focus (goal) will be on how PowerShell can make us as developers be more productive, whether that is from script automation or just learning to more efficient by using our keyboards more.

If you’re in the area, drop by! You can even heckle me if you want!

I’m planning on posting the slides and examples after the presentation.

posted on Friday, September 05, 2008 3:24:33 PM (Central Standard Time, UTC-06:00)  #    Comments [2]
 Wednesday, August 27, 2008

Eating at Aya Sushi

I told you we had sushi while at DevLink! We're happy in this picture because we all had just had a great dinner :-) (that, and they told us to be goofy for the picture)

Don't expect me to link to MySpace too many times... I think is a first.

Technorati Tags:

posted on Wednesday, August 27, 2008 8:21:18 PM (Central Standard Time, UTC-06:00)  #    Comments [2]

Last weekend, I was fortunate enough to be able to participate in devLink 2008. Randy Walker, Michael Johnson and myself drove down on Thursday morning. This was my second time to attend and John Kellar has done an excellent job once again in putting this conference together. An addition to the conference this year was an Open Spaces format that was held alongside the more traditional, “eyes-front” presentations. Before I get to that, I want to share my experiences regarding the rest of the conference first.

“Eyes-Front”

The opening keynote speaker was a very good speaker. That was the good. The bad was that he was speaking on outsourcing. Let’s just say his relevancy score on my speaker survey was quite low. We’ll move on :-)

Colin Neller did a great job talking about styling and theming Silverlight content. I really appreciated his talk because he primarily used Expression Blend and, being the developer that I am, I am completely inept when it comes to Designer-oriented tools. He told us to expect to see the UI skills of a 3 year old, but you know, his 3 year old skills were better than my skills. Charlie Calvert showed up his talk, so we all spoke with him for a few minutes afterwards.

I also attended a talk by Jim Wooley on LINQ to XML. I had already spent some time with LINQ to XML, so I didn’t see a lot of completely new content, but I’ve got to give Jim props for his demos. It is hard to explain how nice the XML Literals support in VB.NET is until you can actually see it in action.

Joe Stagner presented the closing keynote. He basically talked about the direction that technology is taking, including an increased focus on parallelism (brought on by the advent of many-core over faster processors) as well as the direction that the web is taking. Regarding the web and startups, Joe brought up some points that I originally heard from Giles Bowkett’s presentation at GoRuCo (online, of course) about how the web is making the need for venture capital cease. On the way out the door, a group of us spoke with him a little and he told us that Scott Guthrie had just had his first kid, right in the middle of the release of .NET 3.5 SP1, which explains why he has been silent on his blog. :-) Good for him for taking some time off and congratulations!

I’ll spend the rest of my post talking about the more exciting part of the conference.

On Open Spaces

Being relatively sheltered under my .NET blanket, I hadn’t really been exposed to Open Spaces all that much, except for reading about the ALT.NET conferences in Austin and Seattle. I watched a few of the sessions that were posted online, but I didn’t really get a good feel for what was going on. Having experienced it now, I’m still not sure I can explain what happened, but it was a lot of fun.

The Open Spaces opened with an Opening Circle (open, open, open) where we were introduced to the format and the theme of “Good Enough.” We had a board with time slots and locations and those who were interested in a topic took a post-it note, wrote their topic down, announced their name and topic to the group, and then chose a timeslot. This process continued until the board was full and, after reorganizing or combining sessions, we broke off for lunch.

Open Spaces talks

The first session I attended was a conglomeration of three (or was it four?) topics into one that I’ll just entitle “Good Enough.” Yeah, like the theme. Steve Harman wanted to come at the topic from the idea of motivating people from being just “good enough” towards the goal of continual improvement. We talked about ways of motivating and building passion. I really liked the idea that Leon Gersing brought up where the only wrong answer to any question is “that’s the way we’ve always done it.”

Next, we spoke about Distributed Source Control (DVCS, DSCM, which one do choose?) like git, mercurial and bazaar. I was able to offer a little bit of insight because I’ve used git locally on my machine and offered a very tiny bit of information regarding msysgit, but I quickly got out of my league regarding DVCS knowledge. Unfortunately, most everyone at the talk was attending because they wanted more knowledge, so Michael Eaton pulled Jay Wren in on a conference call because he had been using bazaar successfully. I wouldn’t believe it if I were you, so here is a picture as proof :-)

Conference call with Jay

The next two talks all involved lots of D’s. The first was “What *DD is” and the second was “How ‘Should’ Changed my Life.” If you’ve been following development practices much, you’ll probably have an idea what the *DD is referring to. Basically, the one who posed the question wanted to know the difference between TDD (Test Driven Development), BDD (Behavior Driven Development), DDD (Domain Driven Design), and the rest of the DD’s out there. We spent a lot of time on pushing the benefits of using these practices as design tools, where testing was an additional benefit to simplified design. Regarding ‘Should,’ we spent time talking specifically about the naming side of BDD and how just changing the way you name things can make your development more in line with the business. After hearing Corey Haines talk about his experiences with BDD and Ruby, I think I need to write some Ruby code. I’m sold on the benefits that these practices provide, but it is hard trying to practice them when you’re the one guy on the team who is sold on the practice.

What is *DD?

All in all, the Open Spaces part of devLink was my favorite part of the conference. Alan Stevens organized the Open Spaces side of the conference and, to be completely honest, he did an amazing job. I’m sold on Open Spaces as a conference format now.

Steak and Sushi

Outside of the conference, I enjoyed getting to hang out with a bunch of new and old friends. A group of 7 of us went out on Friday night (after the Rock Band/Guitar Hero III contest) in an attempt to find good sushi. We found it and got our picture posted on MySpace! Saturday night was steak and ice cream, though not at the same time.

This devLink was even better than last year. I’m now following at least 10 to 15 more people on Twitter now. I’m going to have to make this a yearly thing :-)

NOTE - Thanks to Alan for sharing these photos! The rest of his photos are all at http://picasaweb.google.com/DotNetJesus/DevLink2008.

Technorati Tags:
posted on Wednesday, August 27, 2008 6:40:55 AM (Central Standard Time, UTC-06:00)  #    Comments [2]
 Wednesday, August 20, 2008

Last year, I attended DevLink. It was very well done and so, this year, I’m going again!

This time, though, I’m bringing a full contingent from the Northwest Arkansas region. Well, okay… maybe three people total isn’t a contingent. Certainly not enough to warrant getting a bus! However, I am still looking forward to heading to DevLink with Randy Walker and Michael Johnson.

If you’re going, look me up. See you there!

image

posted on Wednesday, August 20, 2008 8:13:32 PM (Central Standard Time, UTC-06:00)  #    Comments [0]