7/12/2008

Erlang: Lovin’ It

OK, I couldn’t resist. I pulled the Erlang book off the shelf this week and dove in. I needed a distraction from work, then the whole idea of writing concurrent programs caught my fancy, and I saw the syntax that made me go hmmm…  now I’m hooked.

First impression of “Programming Erlang” – it’s not for beginning programmers. Which I really like, but I can imagine that if you don’t have programming experience, you’d struggle. Also, it helps alot to know another functional language (like Lisp) when Joe starts talking about list comprehensions and anonymous functions. I would rate the book at the "advanced” level.

All that said, I’m loving the book and loving learning the language. It’s entertaining and gives me the excuse to use Emacs, which I don’t use often enough these days. :-) I’m using Luke Gorrie’s excellent Distel mode for Emacs.

I’m going to try to refrain from giving you a blow-by-blow of my Erlang experience until I get to concurrent programming. Then, all bets are off.  :-)

7/06/2008

Erlang in My Future

jaerlang I’ve been thinking about trying out Erlang for a couple of years. Last night, my wife and I were in the bookstore… alone… with time to look at books. I picked up “Programming Erlang”. Reading through the cover and some of the front matter drew me in. So, after some deliberation, I bought it.

I read through Chapter 2 last night. Boy, Erlang is unique. However, I think I’m going to enjoy it.

I’ve put it on the bookshelf for now. I have some other reading and techie stuff to knock out before I really dive in. But, I’m getting excited.

7/01/2008

EnterpriseBlend – My Enterprise 2.0 Blog

One of the things I’ve steadily grown more passionate about over the last 6 months or so is Enterprise 2.0.  I characterize it as the move of Web 2.0 technologies and ideas into business contexts.  The reason I’m so passionate about it is because I’m witnessing the technologies that I’ve been using in my private life move into the enterprise and make meaningful contributions.  In addition, these technologies and ideas usually challenge the status quo of business and it’s fascinating to watch businesses respond to this.

If you agree, or your just curious, please join me on EnterpriseBlend.  Hope to see you there!

6/06/2008

5/28/2008

Web 2.0 companies failing to produce cash

Financial Times has an article called Web 2.0 fails to produce cash. The article talks about how Web 2.0 companies have not produced alot of revenue despite changing the way that people interact on the Internet and introducing new capabilities.

I think it would be interesting if Web 2.0 had more commercial as Enterprise 2.0 than in the Internet at large. I think to the Internet community, it becomes just the normal course of interaction. However, within enterprises it seems to have the potential to dramatically change how we design and implement information systems.

Plus, I'd just like to be able to use these technologies on the job. :-)

5/26/2008

Vista Backup Leaves Me High and Dry

OK, guess what - when Vista Backup says it does not backup any program files, it turns out that means ASP and ASPX files as well.  I wish I had seen the comments on this post first.  But I didn't.  So, now it looks like I've lost some ASPX files for a charity project I was working on in my latest round of laptop shenanigans.  GRRRRRRR!!!!

Unlike the guy in the comments, it seems to have saved my CS files.  In fact, it saved the code behind files for the ASPX files, but not the ASPX files themselves.  GRRRRRR!!!!

I'm pretty hacked right now.

5/23/2008

Emacs Quit under Cygwin

I've never used Emacs under Cygwin. I've always installed the Windows version. However, today I'm in a hurry, EmacsW32 site is down, and I decided to use Cygwin. Unfortunately, some of the keys like C-x C-c (quit) are wonky. But Newbie, Emacs won't quit - gnu.emacs.help | Google Groups describes a simple modification to the Cygwin bash shell batch script that makes everything good to go.

5/21/2008

Application vs. OS Clustering

I recently had the opportunity to discuss computer clustering with a colleague of mine. I decided to post my take on things in case it might be helpful to others.

Computer clustering is a deep subject. There are many facets to how to cluster computers and/or applications together. Wikipedia has a nice article on clustering. I’m no expert, but I’m going to describe my simplistic view of hardware/OS level clustering vs. application clustering and how they fit together.

The ultimate computer cluster would be a group of computers working together to seamlessly provide services and appear as one computer. This cluster would make its services available to applications transparently. This means that an application written to run on a single computer, would see no difference in running on the cluster. In addition, it would get all the benefits of being on the cluster without impacting its operation at all – scalability, high availability, memory management, etc. To my knowledge, this type of cluster does not exist.

Hardware and OS level clustering allows multiple computers to work together for a purpose, but the computers generally don’t appear to applications as 1 big computer. When the OS makes this possible, special programming is usually required to make an application take advantage of the clustered OS services. Most of the time, OS clusters are geared toward providing high-availability (HA) for fault tolerance rather than seamless scalability of applications running on the cluster (HPC – high performance computing). Windows 2003 server clustering and SQL Server clusters are examples of clusters that are geared toward HA rather than HPC.

Grid computing has ushered in a new set of technologies and patterns for trying to achieve the ultimate computing cluster. Grid computing does a good job of providing HA and HPC for applications running on the grid. The standards specify a pretty flexible environment with scheduling and accounting facilities that make management of applications much easier. Grid computing tries to make computing resources a commodity that can just be doled out as needed to run applications. However, for applications to take full advantage of grid computing, they still must incorporate special programming. This may change in the future as advances in grid frameworks and operating systems emerge. Examples of grid computing is the Amazon EC2 for computing and Amazon S3 storage grid.

Application level clustering is when an application is designed so that its components can be distributed across multiple machines and the application can identify and manage those components to cluster itself. This usually involves distributing components with specific capabilities to nodes in a server farm and having some controller components that identify the worker components, monitor their availability, and delegate incoming requests. (These are sometimes called dispatchers.) Applications that cluster themselves don’t need an underlying hardware/OS clustering solution since they take care of their own clustering services. Further, there’s no need to have computers in the cluster be homogeneous since the cluster is not dependent upon synchronization at the machine or OS level. Application clusters can provide HA as well as HPC. Examples of application clusters are Oracle RAC and FAST ESP.

Again, this is Tom’s view of clustering and probably contains errors and omissions. My simple mind summarizes and simplifies things it takes in. So, you should do your own research if you seek the ultimate in accuracy and reliability of this information! :-)

5/20/2008

Tweets Available

I resisted using Twitter for years. However, I've lately decided that I need to understand it. So, I created a Twitter account and started playing. Like many others, I'm becoming addicted.

I've made my tweets (Twitter speak for messages) available on this blog. If you visit the web site, you'll see them in the far right column.

I stopped short of using LoutTwitter to create a daily tweet summary post in this blog. It looks very cool, but I'm not sure all of my HUGE (haha) cares about my micro-blogging.

5/14/2008

PortableApps Saves My Bacon

I have been a fan of PortableApps for a couple of years. It's a really neat concept - package useful applictions in a small, self-contained format so that they can easily be run from a USB stick or drive. This way, you can take your apps with you as you move from computer to computer. Over the last week however, I've been using PortableApps in a different manner.

Lately I've been having numerous computer problems. I've been resisting reloading the operating system because I just did that a month ago. But the operating system didn't care - it just continued to degrade. First it was its distaste for USB hard drives, then came my mouse, finally (its pièce de résistance) it would just stop responding soon after I logged in. This rendered me completely unproductive at the client site.

Fortunately I was able to boot to Windows PE (pre-installation environment with very little features and services - like safe mode only safer and more padded - like an asylum). I jammed my PortableApps USB stick in a USB slot. The menu did not work, however you can navigate to the exe's in a command line and launch them. This allowed me to use Firefox, 7-Zip, and OpenOffice to maintain some productivity while I worked to fix my system. Brilliant!

In short, as part of your personal disaster recovery strategy I recommend that you create a PortableApps device. It can help you keep working on some level until you can get your system restored to working order.

4/24/2008

Outlook 2007 Slow To Open Messages With Attachments

I recently had to reload my Vista machine and this weekend I installed SP1 for Office 2007. This week I've noticed that Outlook 2007 was very slow to open messages that had attachments. After much digging on the Internet, I finally saw a comment from someone that mentioned turning off Attachment Preview to speed up Outlook. So, I went to

Tools -> Trust Center -> Attachment Handling

and turned off attachment preview. This solved my problem!

Thank you Lazy Web!

Updated 04/24/2008 2:26PM: WRONG!!! Turns out the problem was Symantec Antivirus. Don't know how to fix it, so for now I've disabled the email scanning. :-( Not happy.

4/03/2008

Django on Windows

I've been considering options for playing around with mashups. There's alot of options. However, since I'm back in the Python mindset (see earlier post), I'm going with Django. Further, to make this quick to hack on, I'm going for Django on Windows.

This article talks about "Installing Django on Windows in less than 5 minutes". It's great, and I love it. Thank you!!!!

Programming Collective Intelligence

I've started reading Programming Collective Intelligence, and I'm really enjoying it. It's a really well written book that gives you a good introduction to the emerging field of Collective Intelligence. Segaran does a great job of taking the theory and mathematics and applying them in practical ways to real world problems.

The examples in the book are written in Python. I'd love to have the time to play with rebuilding them in Smalltalk or Common Lisp. However, I barely have time to even read the book. So, it's back to Python for me for a while. (Just between you and me, it's making me giddy to get back to Python, Emacs, and the down and dirty hacking that I used to love.)

So, if you're interested in Web 2.0, the modern application of Artificial Intelligence techniques, or doing really cool things with Python then you should grab a copy of this book.

12/28/2007

OPML Parser on SqueakSource

Today is a big day for me. I finished off the first version of my OPML parser that I've been writing in Squeak. Not only that, I've published it to SqueakSource under the MIT license! The SqueakSource project is titled "OPML Parser" and the home page is here. If you would like to keep up to date on the project, the RSS feed is here.

Thank you to Claudio Acciaresi for your link to the Squeak Map page on using Monticello, SqueakSource, and SqueakMap. A little digging and link-following and I was in business in minutes.

If you find the parser useful, please let me know. If you look at the code and find odd Smalltalk syntax, violated conventions, or general improvements, please let me know. If you want to become a developer and help enhance the code base, please let me know!

Squeak rocks!

12/11/2007

Labels on my blog

I've recently started using labels on my blog posts. Hopefully this will give people the ability to filter what they are interested in. I've changed the layout of my blog to include a list of labels on the side bar. Thanks for making that easy, Blogger.

11/30/2007

Whisker browser with SVI

Ng Pheng Siong has a post on how to make the Smalltalk Whisker browser use SVI instead of the built in editor here. Loving this. Loving Smalltalk. I gotta' lotta' love, man.

11/27/2007

Smalltalk OPML Parser Progress

I was fortunately able to take over a week off for Thanksgiving. The break from work was just what I needed to clear my head. It also gave me an opportunity to do some more Squeak hacking.

I worked on the OPML parser I'm writing. I was able to use Chronos to parse the RFC 822 time format dictated in the OPML specification. I used Chronos to parse the RFC822 time into a DateTime and stored that in my OPMLHead class. Beautiful. Easy. Love it.

What's left? Not much. I need to add more tests. I've got two OPML sources that I'm testing against. I'm using an OPML example I found on the web and the OPML that lists my Google Reader subscriptions. I'm going to try to find some other OMPL test data and get a few more documents to test.

I've decided not to do any custom exception handling. This seems appropriate since the parser will be consumed as a component in other custom applications. So, I'm not going to wrap exceptions from Chronos in some kind of OPMLParser exception.

I'm planning to release the OPML parser as OSS and put it in SqueakSource. I'm not entirely sure how to do that or if I'm even doing my work "correctly", but we'll figure it out. You and me. Together. Love ya', Mr. Internet.

11/11/2007

Superbug blows up your defenses

It's news like this about these "superbug" type microbes that put me in a philosophical tail spin. It goes something like this - if superbug's are caused by microbes that have acquired an immunity to antibiotics (or antivirals), then should we be using the drugs? Do/did we know what we are doing by using them or are we just taking stabs in the dark to try and treat causes we don't understand? If so, then what else are we doing that we don't understand the long term effect of? We have plenty of hindsight about stupid things we (as humans) have done in the past. What will be the hindsight in 50 years about what we're doing now?

It's about this point where I start thinking about my happy place and fight the urge to put my thumb in my mouth.

11/10/2007

Innovative Ham Soda

My friend Thanh was complaining that there have been no innovations in candy for decades. He contends it's a pretty boring food group. He also says that the Asian companies lead the pack in candy innovation.

Well, Thanh, check out the ham soda story on CNN...

11/02/2007

Finally found a useful Vista widget

In my current role I have to interact with people around the world on a daily basis. I’m usually wondering what time it is in their particular area of the world. I was using a nifty world clock widget for the Yahoo widget engine. I’ve recently received a new laptop running Vista, and I’m trying to stay pure and avoid installing applications that I don’t absolutely need. So, I decided I would use Vista sidebar for my widgets. Today I found a great world time widget from WORLDTIMESERVER.COM. There’s also a 12-hour version of the widget, if you can’t handle the 24 hour dial.



Dallas