Web 2.0

Vladville Wordpress: Teaching Wordpress some Facebook Tricks

When you do professional development for living the complexity of what you have created can get to you. On such days its best to get outside, away from computers.. but if you live in Florida and outside looks like a scene from Coming Global Superstorm: The Day After Tomorrow you look for the stupidest project you can possibly work on, that nobody can hold you accountable for.

For me, that project is Vladville. Lately I’ve been spending a lot of time on Facebook playing the game “Which of my high school friends aren’t dead”  and I’ve sort of fallen in love with the AJAX implementation of Facebook status update. It’s just very slick, very easy to use and effortless. So, in yet another effort involving sinking an enormous amount of talent and time into the toilet of productivity, I’ve implemented the same process for Vladville. And I’ve done one better, I’ve tracked the changes and I will be writing a post on how to do this yourself, in an effort to familiarize you with some Wordpress internals.

Hey, if you’re going to lose, lose big. Right?

Step 1: Include jQuery

If you look at my blog, on the upper right hand side there is a box that says “Whats on Vlad’s Mind” and until today that was a hardcoded block of HTML in my Wordpress theme. There are a few steps here.

First step is to actually download, include and enable jQuery and jQuery inline edit plugins. These are simple Javascript libraries that enable pretty AJAX client side effects to work.

Second step is to actually alter the wp_users table that Wordpress uses to store user data and add an extra database field for status. This will hold our current status. I’ve gone an extra step to create another database table to hold the archive of status changes so they can be syndicated through other services. Lose really big. If you’ve done this properly the little tooltip will show up over the container that contains your current status text.

Wpfb-step1

Step 2: Enable Inline Edit

In order to make updates effortless, I’m relying on jQuery Inline Edit plugin as well as Wordpress authentication. It checks if I am logged into this session, if I am, double clicking on the container described above will update the container with the div contents in an editable textarea that I can change on the fly.

Wpfb-step2

Step 3: Change text, Update

More than meets the eye here, thats for sure, but simple enough – type in new text and hit update.

Wpfb-step3

Step 4: AJAX Update

After clicking Update Status button the browser uses AJAX (well, AJAH) to make the call to the backend and update my status. This takes and validates the input, sanitizes it and updates my account in the wp_users table with the new status. It sends that sanitized text back and…  

Wpfb-step4

Step 5: New Content Inline

The new content is passed back to the browser that updates the original container with the new update. Each further load of the page includes the status field from my account.

Wpfb-step5

Additional Steps: No stop loss..

I’ve taken a few more extra steps that I intend to expand upon in the detailed writeup, one of the major ones being an explanation of why I’m tying in my status via users table and why I’ve made a separate tracking table.

In a nutshell, the status tracking table is used as a logging table that I can also use to syndicate my status. You can take a look at an XML feed here that shows you last five status updates. This is cool because you can export that data and reuse it elsewhere, such as Facebook. Instead of logging in and updating my status there I can just use the RSS syndication  to send my content from Vladville up the stream to Facebook. Or more importantly, SharePoint.

The wp_users part is pretty interesting. Right now I am only checking if $user_id == 1, meaning I just want to enable inline edits if I am the one logged in. Everyone else gets a plain text looking thing. However, lets say I wanted to create a little shoutboard. What if instead of comments I also gave my visitors the ability to update their own status or write something on my board? Same principle, tie the update to the user_id of the currently authenticated user and then update the status field on the backend in the database for everyone else to see, logged in or not.

That, in a nutshell, is the power of Web 2.0, syndicated content and AJAX. It’s also a heck of a way to learn how others write code (Wordpress internals) and at the same time experiment a little for a fun Saturday evening.

And hey, chicks dig it.

Riff-Raff, and you don't Stop.

I said riff-raff and…

Vladville: 18 blog comments. Andy’s Blog: 10 comments. Susan’s blog: 4 comments. Four other blog posts on the topic elsewhere. I don’t need to tell you how much email today’s post generated from friends, fellow entrepreneurs and random bystanders.

I’m going to let you in on a big secret, that I think most the audience gets: Sometimes saying controversial things gets people talking. For more, it starts a thinking process. Who am I, where do I fit, how do I go from here to there. Over the past year we’ve seen an incredible growth in the number of SMB blogs and IT folks who are getting into blogging.

Everything I do in public is meant to strike up some sort of a response or a conversation. Thats why it’s written in such a way. Want to be bored to death – go read the ownwebnow.com/blog corporate blog. Go ahead, I’ll wait three seconds for you to get bored to tears and come back to Vladville. To the blog written without a spell check, podcasts done over Skype and many videos where you’re left to wonder where the other hand is and why the camera is shaking so much??? (pause to let you consider that for a moment and.. there you go, eeeeewww)

The point is, it’s all about the conversation. It’s all about people putting up their thoughts and their responses for the public to see, enjoy and respond to. And whether you like it or not, agree with the points or not… guess what, you’re talking. It’s like a book written by hundreds of people. There you go folks, thats the big secret. Gotcha.

P.S. Every time someone gets offended by one of my posts they wonder how this is going to negatively reflect on my business. This is also why most corporations do not allow blogging or make people dance as far away from the company identification as possible – they fear that negative sentiments somehow reflect negatively on the brand – and in that they write dry and boring text that provokes no emotion and eventually gets no audience. And thats where the fail, because they don’t comprehend that Web 2.0 is about connectivity, exposure and the sense of communty – not a huge “we like you, give us money” sign surrounded by banners, dripping in unsincerity. That I think would be a bigger insult than anything I could ever come up with.

SMB Community Megafeed

This is something that Susan and I have been talking about for quite some time now, the constant growth of the bloggers in the SMB community. I’m fairly proud to see the number of you that have fired up blog sites as a result of my last bomb-post about how you can contribute to the community just by speaking your mind. Way to go. We are all voices of our respective companies, the customers we service, the partners we deal with and issues we have to solve on a daily basis. Making that voice heard, in a coherent and complete way tends to cause others to stop, take notice and help. So if you’ve taken that step.. thank you.

Now, how do you find out about all of these great blogs?

Well, you have to know the pope. Then you can try Google, Technorati, etc. Rinse, repeat on monthly basis.

For a while now Susan and I have been talking about organizing a central list of these blogs and then further mashing them into one large megafeed. The concept being that doing so for the particular market segment will allow us to be more connected and give those of you just starting somewhat of an equal footing with the people that have been doing it for a while and have a built in audience. Nothing new or earthshattering here, simply trying to push a little exposure around.

How can you help?

Glad you asked. Post your blog address as a comment to this blog. If you happen to have an OPML of SMB blogs you read please send them to me via email.

Pownce, Twitter: Real Life Reality Check

This is going to sound a little dark but here it goes anyhow… I’ve been on the road for a little while now and looked at my vladville.com account. God I’m popular. Not.

Not a day goes by that some loser I probably met for 3 seconds doesn’t ask to become my e-friend. Hey, are you on Facebook? Which address are you using for Groove? Does your Asterisk support anonymous calls, I want to dial direct to you via SIP? loser@loserville.org has added you to their buddy list. Block!

Sound familiar?

Ok… so here it goes… you know how you have like 3 friends in real life since you graduated from college? Maybe one that you can count on to help you move? Oh, I’m sure you were popular in college and you have 8,000 entries on your SIM card but your speed dial list consists of your family and a local pizza joint. Now here is the sad part – you are far less e-interesting. Far, far, far less. I’m beeing too nice here perhaps. Ok. Here it is: I’d rather play “punch the monkey” banner ad than read your personal profile on the cool-people-network-of-the-week.

Ok, so I am beeing too nice here but the point kind of remains: there is 0 value in this uberconnectivity. Why? Because nobody happens to be doing anything at all that is worth any particular attention. If they are, they are smart enough to realize they are the top 1% of the content producers and most are doing so for commercial purposes. So whats the point of getting into a pile of people that just stare at each other and do nothing? Exactly. Look at Twitter: What are you doing? The answer: Nothing interesting, to anyone, anywhere. This sites claim to fame is that it publishes commentary of idiots that are not insightful enough to say anything on other social networks such as Digg or del.icio.us.

Here is my professional evaluation of other social networks. LinkedIn: Unemployable and proud of it. Myspace: Sexual-Predator-In-Training. Facebook: Myspace with less epileptic shock (or: I’d like a teenager but keep it legal). Classmates: $20/mo to stalk your high school girlfriend. Twitter: Worthlessness, documented.

Both of my Web 2.0 go-to people are talking about this. Sarah is feeling the social networking fatigue. Robert wonders how he’ll keep up with social networks.

Web2.0point is that nobody cares, for the most part. There are numerous comments out there how 90% of digg stories gets submitted by maybe 2% of the user base. So what are all of these social networks good for? Satisfying curiosity at the peak of boredom. Let me illustrate. A few weeks ago I had the following conversation with Susanne, heavilly paraphrased:

Susanne: Loser XYZ just added me as his friend on Facebook.

Vlad: Hold on.

Vlad: How creepy would it be if I went through your friends list and added the hot chicks to my friends list?

Susanne: Um. Very.

And there you go. Web 2.0. You’ve got one person that you wouldn’t mind being stuck in the elevator with and 2,000 others that you’re kind of curious how drunk they got before they snapped their profile picture…. and then used it as their default profile pic, in a futile attempt to say: Look at me world, I am FUN!

No, hon, you’re not. As Chris Rock says, “Go get kidnapped or something.”

5 of 5 week starts tomorrow: 5 things I did to optimize time as a web 2.0 ceo

Lg-go-away-tshirtEvery time someone thanks me for all the blogging, podcasting, vlogging and that other stuff I actually do for living, they can’t hold back but ask: “I don’t know where you find time to do it all!”; Now as much as I try to bite my tongue and not say “Perhaps you should not have freeones as your home page”; I politely thank them and walk away. 

Honestly, most people just have no respect for their time. Karl Palachuk has spoken and written on many occasions about how every minute of his day has to be accountable. Howard Cunningham has a similar procedure that only applies to business.

Last year I made a committment to myself to spend less time working. I’ve been able to cut down my workdays from 20 hours a day to about 6 but unless you’re fluent in PHP and PowerShell it just doesn’t apply to you. I challenged myself to spend at least hour a day automating the tasks I was doing, even if that meant I couldn’t keep my ETA and SLAs alive. I figured that if I had the discipline to start gradually reducing the repetitive tasks from my life by the end of the month I’d have a lot more time on my hands and more time to do automation. So March was an interesting month to say the least.

Since Jan 1 I’ve done so many things that have virtually washed away hours of committment from my schedule. Most of these things can be done by anyone in any CxO-ish role. I’ve broken them down into categories:

  • Outlook 2007
  • Going Virtual
  • Google, Google, Google
  • Meetings, appointments and chats
  • Karl Palachuk(tm) & Erick Simpson(tm)

Over the next five days I intend to talk about these five things that helped me reduce the time committment and stress related to running a business. I hope everyone reading this blog would share their own tips on their blogs so we can circle-blog the entire effort and give people that are struggling with time management some indication to the light at the end of that tunnel (or that suite or that office or that starbucks you spend 90% of the daylight hours hunched over a laptop)

Just to make it interesting, the winner gets a free Think Geek shirt and a Shockey Monkey shirt. Behold the power of the free shirt!

Groove vs. ESET/Nod32

So all my friends have been playing with Groove for about a month and I never joined the party. Frankly, I never could get Groove to work. I had a few hours to kill today so I figured I’d finally get this thing fixed and having been over a month since I last tried to get it to work I figured I’d take a shortcut (ie: IM to sbradcpa: “Hey, whats with ‘can’t find provisioning server’ thing in Groove) from which point I was redirected to PSS Canada. Apparently Dana had the same problem and the PSS reference is important for two reasons: First, it took him 20 minutes to answer my IM, followed by “They don’t have Google search in America?” and “I have to go, but if you have a problem later I’ll help again, SRX07…”

So what made me so “special” – well, apparently my antivirus software wasn’t playing along. I couldn’t get my Groove on (I know, I know) because I have a 64bit Vista workstation with way too much RAM and I can’t get a decent A/V solution for that so I have to deal with the third world software makers (ESET).

Bottom line — ESET/NOD32 hates GROOVE.EXE. If you’ve got the combo and you’re getting the “Groove 2007: Unable to contact provisioning server” you need to add GROOVE.EXE to the IMON exception list. Details here..

It’s all in the Relay Server URL configuration (which Groove gets on it’s own, its not modifiable as are other parameters on your Advanced Network Settings). Because Groove is being intercepted by IMON you’re not getting to the relay server and are instead stuck with the grooveDNS://backwardscompatibility.groove.net – but add GROOVE.EXE to the exception list and voila, you’re set with a *relay.groove.microsoft.com relay server.

As for NOD32. Open up your Control Panel > IMON > Setup > Miscelaneous > Exclusion > Edit > Add > C:\Program Files (x86)\Microsoft Office\Office12\GROOVE.EXE

Firefox 2.0 Released

So the release of IE 7 didn’t really make much noise at all, at least not in the positive way among the IT community which is finding it crashing OWA, no Administrative templates and a slew of people trying to block it from autodeploying. Big step for Microsoft nonetheless.

Another potentially quiet milestone this week will be the release of Firefox 2.0. If you’re in USA and happen to speak english you can download it right now.

As a friend of mine mentioned over the weekend:

I learned a long time ago to never install any software that ends in "0".

So test it, play with it, but be careful. Check out the release notes to see whats new with it.

Update: Indy from the comments links to the following bashing of people that damage Firefox by linking directly to the ftp site. I particularly enjoyed the comments in their blog post:

I think you should look at your internal practices rather than admonishing a community that adores you.

That said, would you like some cheese with your whine?

Nothing really to add to that..

1004 ft and landed it in the spikes

Not quite sure how to categorize this so I will share the words I shared with Microsoft PSS earlier tonight: 1004 ft bitches and landed it in the spikes!

1004feetbitches

Hail to the king, baby! Whats your score at Kitten Cannon?

Alright, so I went back to it (straight crack, just try it) and this time I bounced it 1,718 ft. Woooooooooooop!

1718ft

There is something magical about the mixed sounds of dynamite and meows.

Update: Vlad: “I really pick the WRONG things to be good at.” – I really ought to close the comments as this is really the one time I am fearing that Katie or other girlfriends may comment on here. Knowing the pattern the bottom will likely be marked by either Chris or Susanne.

Windows Live Writer Good and Bad

I'm a diehard BlogJet user and they will have to rip it out of my cold dead hands. Based on Tim's advice I did give Windows Live Writer a chance, as a matter of fact this post is written in it. Here is my take on it:

The Good

  • Open - Microsoft has really had to think differently while abandoning the msn.com mantra of "we know best" in the web 2.0 world. Live.com spaces, truthfully, still look like crap. They are the same boring, owned, old thinking that comes with MSN Messenger - we'll skin it for you but you just have to live with the layout we provide. Sorry, that does not live in the new world, people choose to write blogs to express themselves, why msn/live.com cannot grasp this concept is beyond me. However, that is where Live Writer departs, these folks get it. The software integrates with a bunch of platforms and actually inherits the look and feel from the blog template it publishes to. For example, I can preview the post in my blog. For someone that revises and resizes things as much as I do this is a godsend.
  • Expandable - Live Writer is not a stock editor and this gives it an edge over BlogJet. For example, there are two plugins that allow it to integrate things like Flickr and tagging seamlessly. Those plugins also come with full source code so you can see whats going on.
  • SDK - Really just a bonus to the above, they are giving us power to express ourselves and add more features to it. Good job.
  • Post Properties - Integrated in the interface are post properties - Are comments allowed? Are trackbacks allowed? You can answer those within the interface before you hit Publish. Way to go.

The Bad

The first time I saw the new "better" way Vista organizes things I just shook my head knowing that people will never be able to find the software they just installed. I was right, it took a while to locate Writer after the installation, I was trying to look for a group, for Live Writer. I found it eventually but could as easilly just have given up on it. Now imagine if this system were a production machine with close to a 100 different programs installed? Never would have found it. Live folks, please consider adding a folder for it.

This is not bad as much as it is anticipation of bad based on Microsoft's philosophy that more is less. JJ, please do all you can to resist the Microsoft Bloatware development model. The beauty of Writer is that its simple yet powerful. Please try to resist the temptation to pack the sidebar with every live.com service you can possibly integrate into the blog and the need to make this software reflect the look/feel of live.com. I think the beauty of this is it's simplicity.

Overall though, the positives far overweight the negatives for Live Writer and I give it two thumbs up.

Live Buzz

Lot’s of buzz on the web about the re-launch of live.com and many services going live this week including the much improved Messenger Live. Now this may still be koolade talking from TechEd but I am really impressed with what Live.com is bringing to the table when it comes to developers. Even though I play one on TV I have to admit that even a monkey slinging a banana at the keyboard could develop a mashup Ajax project driven by live.com’s content. We’ll be spending a lot more time in ASP.NET this quarter, I have definitely been sold on it. But keep an eye on live.com this week, lots of stuff seems to be going live there, especially when compared to betaland.

That, in case you were wondering, also played a part to the nuking of Google ads on here. First of all, I like it when a search engine query for Vlad Mazek actually points you to this site instead of suggesting a search for lead. Second and a little more personal reason was that nearly all the useful ads pointed directly to my competitors. When it couldn’t figure out my spelling mistakes it properly pointed you to a place where you can start your own blog – don’t let borderline illiteracy hold you back! At the end of the day there was no amount of money Google could bring in that would let me sleep at night for sending money to my competitors. Bitter? You bet.