Monday, January 10, 2011

I’ll be speaking @ SPSEMEA

Live Online SharePoint Saturday EMEA is back on January 22nd, 2011. This is the second annual SPSEMEA and promises to be a huge event with over 30 sessions, 4 simultaneous Live Meeting Channels and a public text chat room open to participants and speakers.

Registration for SPSEMEA begins on January 11 and is free to the global SharePoint Community. There are over 30 SharePoint Evangelists, including 10 SharePoint MVPs, from around the world providing content you would normally only see at a paid SharePoint Conference. Tracks are set for SharePoint End Users and Business Managers on topics for "How We Did It: Real World Case Studies", "No Code/Assembly Solutions", "SharePoint Interface Branding", and "SharePoint for Business". The sessions will be recorded and made available two weeks after the event.

32PiecesOfFlairLast year was terrific and what I learned was invaluable.  This is a *free* event, so please sign up!  Look over the list of sessions and plan your day accordingly.  Of course, if you want to attend mine, I’d be very happy!  I’ll be showing off the series of blog posts that I put together: http://bit.ly/cPlFCE.  I’ll be adding some flair, not a full 32 pieces, but hopefully enough to get some HS’s!

I have to give thanks to all of the great people putting this event together.  Without them, this simply would not happen.

SPSEMEA Organizing Team

Mark Miller (@eusp), United States
Toni Frankola (@ToniFrankola), Croatia
Isaac Stith (@MrIsaac), United States
Ayman El-Hattab (@aymanelhattab), Egypt

Thanks guys!

I have changed my stars…

Throughout my career, I’ve been afforded some exceptional opportunities.  Most people believe you create your own opportunities, however, I believe you need a little bit of luck as well.  A classic example is right after graduating college, I became the Domain Admin for a $70 mil/yr. company Denier Electric.  Who else has done that?  For me it was luck and I’ve been fortunate enough to know it was luck. 

During my tenure at Denier Electric, I continued my education.  I quickly began studying for my MCSA, but right before I was to complete all of the MCSA tests, I installed Search Server Express 2008.  Seemed like a harmless product, who knew it would define my career today?  Instantly, I recognized there was more to this than meets the eye.  Initially, I figured all I had to do was stand it up and move on.  After reading through the documentation on the “Best Practices” for installation, I felt I had that onion peeled.  Off to the next project… NOT SO FAST!  “We need to have our new intranet do something more than search…  Let’s manage projects on our intranet.  Matt can figure it out and do it cheaply.”Just kidding  Little did they know, the extent of my HTML skills was copy and paste…  Up until that point, I really only wrote VBScripts and Batch files.  I guess that translates to Web Programmer, but I digress.  Never the one to turn down a challenge, I grabbed the bull by the horns. 

SharePoint doesn’t like being grabbed by the horns

Until you realize that, then you are going to be constantly at odds with the platform.  There are certain things that SharePoint likes and you simply must live with that.  Shortly after installing, I received my first training session on SharePoint.  SharePoint Experts has a great training course on none other than DVWP’s.  It was during that training that I was talked into using Twitter.  Ironically, Dustin Miller (the guy that talked me into using Twitter) doesn’t even tweet anymore…  Life is funny like that Rolling on the floor laughing.  After being armed with my newly found skills, I set out to build some applications that would benefit every department.  I began to realize, I needed to know more. 

Where do you learn SharePoint?

What made it difficult to learn initially, was the fact there are so many great sources for SharePoint.  I had to find the correct information given my level of knowledge.  EndUserSharepoint.com has been a phenomenal resource for my learning and continues to be the top spot for information.  Then Twitter started making sense.  I kept following blogs of authors that were in the same trenches as me.  Marc Anderson and Michael Greene have guided me the whole way.  Even with all of this guidance, I still needed more.  Enter stage right: USPJA.  This academy has provided me with all of the tools I could possibly ever need to learn SharePoint.  My understanding has skyrocketed since becoming a student within the academy.  If you are looking for world class training, look no further.  If that doesn’t convince you, keep reading…

What’s next for me?

KaizenFalling on my face many times, grabbing SharePoint by the horns, going out of my way to help end-users, 5000 tweets later, has led me to this very moment.  I’m extremely proud, honored, and humbled to announce; Juniper Strategy has extended me an offer to be on their team.  Initially, I’ll be doing a lot of front end development, “Middle Tier”, if you will.  Shortly thereafter, Mark Rackley will expand my VB knowledge into the realm of SharePoint. 

I know I’m definitely entering into the realm of unknown.  I’ve never coded for food before, so I’m very interested in grabbing the bull by the horns again.  I’ll continue to post interesting solutions I find along the way, so we can both continue to learn together.  So here’s a huge THANKS for everyone that has allowed me to grow through the years.  I found this song to be very fitting.  I hope you do too.

Monday, December 20, 2010

Remote Desktop not displaying Local Drives

This may have you stumped if you are a performance freak and like to tweak (disable) certain services that are OOTB with Windows.  You can categorize me within that column, if you like. Winking smile I typically disable the service called: Server on my workstation because in my eyes, it’s not necessary unless I’m serving something up.  That’s what servers are for eh?  Well in the case of Remote Desktop, you are serving up files if you want to connect to your local drives.  I ran into that issue earlier today and felt like passing it along.  Below is a picture of what local drives look like when logged into a server/PC via Remote Desktop.

TerminalServices

If you constantly tweak settings, it’s always good to keep documentation of what you are doing.  It just so happens that I do this often enough to remember that this was the setting at fault.  Hopefully, it’ll help you along the way…

Friday, December 17, 2010

Create an event receiver script within your ActiveScriptEventConsumer with PowerEvents

I’ve had the pleasure of meeting Trevor Sullivan when I convinced him he should learn all about SQL Server.  Not really, but we did chat it up on Twitter and decided to both go to Cleveland for an intro on SQL Server 2008 R2.  Little did I know what he was working on.  Quite simply one of the coolest projects I’ve used from Codeplex.  Trevor has created PowerEvents!  I’ll admit, some of it is way over my head at the moment.  It’s directly related to how much I really know about WMI, but I feel that’s about to change drastically.

I posted a tweet earlier about what I’ve created with PowerEvents.  Actually, I feel as if it would be a best practice for the ActiveScriptEventConsumer.  You can be the judge of that Winking smile.  Since it’s almost impossible to see what you’ve created as an Event Consumer, I’ve simply created only one: ActiveScriptEventConsumer.  That way I don’t have to worry about what has been added under the hood to WMI.  All I have to do is tweak the script that is fired when the event occurs.  So, I’ve built a basic script that looks for the arguments you have passed to it.  Based on these arguments, you can dynamically call different scripts or functions.  Pretty slick, eh?  Here’s a basic script that will email two different people based on what the WMI query results are.

Option Explicit
Const strFrom = "example@example.com"
Const strMailserver = "smtp.example.com"
Const strSchema = "http://schemas.microsoft.com/cdo/configuration/"
Dim objArgs, objEmail
Dim strProcessName, strSubject, strBody, strTo
'Get arguments from command line
set objArgs = WScript.Arguments
strProcessName = WScript.Arguments(0)
strSubject = WScript.Arguments(1)
strBody = Wscript.Arguments(2)
'Dynamically change the email recipient
'Or even change the function to be called
'Or call a completely different script: .bat, .vbs, .ps1
'Endless possibilities
If strProcessName = "NotePad.exe" Then
	strTo = "myboss@example.com"
ElseIf strProcessName = "Outlook.exe" Then
	strTo = "me@example.com"
End If
'Call to send email, but many different functions could be within this script and
'dynamically called based on arguments
Call SendEmail(strSubject, strBody)
'Function(s)
Sub SendEmail(Subject, Body)
	Set objEmail = CreateObject("CDO.Message")
	objEmail.From = strFrom
	objEmail.To = strTo
	objEmail.Subject = Subject
	objEmail.Textbody = Body
	objEmail.Configuration.Fields.Item _
	    (strSchema & "sendusing") = 2
	objEmail.Configuration.Fields.Item _
	    (strSchema & "smtpserver") = strMailserver
	objEmail.Configuration.Fields.Item _
	    (strSchema & "smtpserverport") = 25
	objEmail.Configuration.Fields.Update
	objEmail.Send
End Sub
'Clean up vars
set strProcessName = nothing
set strSubject = nothing
set strBody = nothing


 



I hope you find this useful.  I’m brand new to creating PowerEvents, but I do feel this is the best way to handle scripting based on events.  Feel free to post a comment if I’m an idiot Rolling on the floor laughingand there is a much easier way…

Saturday, December 4, 2010

Download pictures from HootSuite: Ow.ly

Maybe you have noticed, maybe you haven’t, but when you send pictures to this service, you cannot download them from their website.  Right click as much as you want, you’ll never get a Save Picture As option.  That’s a major flaw in my book.  I send pictures to the cloud not to lock them into a vault.  I send them because I’d like to share them!  These pictures are not yours HootSuite, they are mine and will always be mine!

What can you do about it?

Being the curious guy that I am, I noticed an embed link on the page.  Let’s look at this one for example: http://ow.ly/i/65gE.  Cracking open notepad, I pasted this link and saved the .txt file to a .htm.  Upon opening the newly created web page, I see my beautiful picture with all of it’s glorious pixels.  Well, it’s not that great of a photo, but the end result is gratifying.  Since I’m now viewing a web page with MY photo on it, that isn’t controlled by HootSuite, I’m able to right click the page and Save Picture As. Winking smile Ha ha, I win HootSuite…  When you save the photo, the file type is defaulted to a .gif.  Go ahead and save it as a .gif.  When I did this earlier, I tried opening my picture, but it didn’t display my photo…  Did HootSuite one-up me again?!?  Absolutely not!  Right click that .gif file and select edit.  This will open the picture up in MSPaint.  Then simply save this photo as a .jpeg or .jpg.  Congratulations, you now own your digital media…. again!

I OWN MY PHOTOS HOOTSUITE and it’s quite ridiculous that I have to resort to these tactics just to share my digital life.  What if my friends or family wanted to download that photo?  Give up the policy of what is yours is mine and what’s mine is mine.  It’s so not attractive.Steaming mad