Monday, November 5, 2012

The new format for the Irish Times

The new and old format Irish Times
When I read about the proposed new format for the Irish Times I was worried that they mean that they were switching to become a tabloid.  However, the change in page size is so small that I wonder why they even bothered. The page is exactly the same height as before and less than an inch narrowed (the picture on the right shows today's Irish Times pictured in front of an edition from last week for comparison).

On the other hand, the changes they made to the way the articles are laid out on the page are quite substantial and look great so I must say I am reassured that my beloved newspaper has not been ruined.

The easy way to configure VNC service on your Linux server

While looking at the access statistics of this blog I noticed that one of the most popular posts is an article I wrote a while ago about how to configure the VNC service on your Linux server. While these instructions continue to work, both RedHat and SUSE have released updates in the meantime which make these instructions partly obsolete.

In REHEL6+ and SLES12+ the configuration screens that come with the operating system include an option to configure what they call remote desktop access. The way the VNC service is configured is slightly different on each Linux variant, but since the  configuration screens allow you to configure the VNC service with a simple point and click UI, you probably don't need to worry about the detail of what happens under the covers.

Of course the instructions I wrote still work so if you followed them and your server is working as desired, there is no need to change. However, it is probably easier and better to use the configuration screens built into the operating system if you have not yet started to configure it. Likewise, if are using an older version of RedHat/SUSE or are using a Linux variant which has not yet integrated VNC configuration into its utilities then feel free to continue using my script.

Friday, November 2, 2012

Have social networking services become one of the vital services which need to be maintained through natural disasters

Luckily I was nowhere near the path of the destructive storm Sandy. However, I have many relatives and work collagues who were in the danger zone so I was anxiously looking at various news sources to find out what was happening. One factor I noticed was that people seemed to update their social network straight away even when they didn't have many essential services such as elctric power, and heating.

I suppose that this is not surprising since social networks are a very efficient way of getting out the message to as many concerned relatives and friends. It is also a testament to the resilience of some of the infrastructure. Since the people involved didn't have electric power they typically sent the update via their smartphone - the cell phone network is inherently quite resilient since if individual cell towers are out of action your cell phone will automatically connect to any other available cell tower that is still working. In addition the social networking sites typically use a range of servers around the world with automatic fail-over when any individual data centre is off line. This meant that the service could be resilient even when an entire region is knocked off the network.

I think that authorities will have to consider social networks as a key part of their disaster recovery plans.

Thursday, October 25, 2012

My role in adding Sentiment Analysis capability to IBM's Smarter Cities offerings

Earlier this year I announced that I was changing jobs again to incubation team leader. In this role I am supposed to lead innovative projects to introduce experimental new features in our products. The nature of these innovations means that there is bound to be some risk of failure, but I am delighted to be able to say that the first project to develop a city sentiment dashboard was an even bigger success than expected. In order to ensure were meeting real customer needs, we developed it in conjunction with a large European City who gave us very specific requirements. The end result was so well received that this week the software was formally upgraded from a customised solution into a fully supported IBM product.

Our solution uses Cognos Consumer Insight (CCI) to analyse sentiment being expressed about the themes that the city is interested in. CCI provides really excellent analysis capabilities, but the user interface can be daunting for non-experts to use.  Hence, the software we developed pulls the key information into a single easy to understand dashboard that is part of the Intelligent Operations Centre (IOC). Our dashboard was released in the form of an update to the IOC. Customers will typically deploy this software as part of a Smarter Cities project. If you are interested you should get in touch with your IBM sales representative or if you don't have an existing relationship with IBM leave a comment here and I will arrange for someone to get in touch.

Since IOC has many features, the information about the new sentiment analysis feature is buried deep on the product page. The screenshot below shows the dashboard we developed. I deliberately blurred the text in the screenshot because I don't think that I am at liberty to reveal what city we were working with or what topics they wanted to track. However, I think you can get a feel for how we managed to squeeze all of the sentiment data onto a single easy to understand screen:
  • On the left there is a hierarchical list of the themes that the customer specified that they are interested in tracking sentiment about. For each theme there is a thumbs up or thumbs up icon to give a quick indication of whether we found more positive or negative expressions of sentiment about the theme in question.
  • If you click on a theme, we will display details about the sentiment we discovered for this theme. We have pie charts showing the overall distribution of sentiment observed as well as a more detailed breakdown of the sentiment for each type of site (e.g. we might have observed radically different sentiment in newspapers, blogs and twitter).
  • On the bottom we have a trend chart showing how the sentiment statistics varied over time and finally on the right hand side we show you a few samples of positive and negative snippets that we found. Clicking on these snippets will bring you directly to the original source of the sentiment so you can read the snippet in context.



It is amazing what can be achieved by a small agile team in 6 months. Hopefully we will be equally successful with our next projects (which have not yet been decided).

Thursday, October 4, 2012

Hackday X is coming and I registered my project

Time flies by and it is now just over a week until the IBM company wide Hackday that Ginni Romety announced earlier in the year. This morning I met with some of my colleagues in the IBM Dublin lab and decided on what we would be doing locally to promote participation in the Hackday and ensure it is a fun day for everyone.

Since this is an IBM internal event, I can't reveal too many details of the project on my public blog. However, I will say that it relates to my earlier post about using automation to make it easy to keep active on several social networks and it extends the idea by allowing information to flow through the company firewall.

I think that this project idea fits well with the theme of this Hackday which is transforming IBM into a more social business. Any reader who works in IBM will be able to read more about the project on the Hackday site and hopefully there will be a working prototype ready next week.

Sunday, September 23, 2012

Playing podcasts of music through a Bluetooth Headset on Android

I like to listen to many podcasts on my Android phone. When running or on my bike I tend to listen through headphones. However, it feels strange to plug in headphones while driving in my car. I bought a lead which allows me to connect my phone to the sound system in my car via a cable plugged into the headphone socket on my phone.

This arrangement worked reasonably well until recently when the cable connection started to get loose and crackly. Rather than buy a replacement cable I thought it should be easier to use the Bluetooth hands-free unit to connect  my phone to the car's sound system, but I searched in vain to find a system setting on my phone which would allow me to direct the Bluetooth connection.

After a bit of searching on Google, I found the BTmono application which adds this simple feature. This application is very simple, but effective. When the application is running audio which is normally directed to the headphones (e.g. music or podcasts) is instead sent to the connected Bluetooth device. This means that I can now listen to my podcasts in the car via the sound system or even use a Bluetooth   headset to entertain me while running.

I think this is a clear example of why the Android open model is better than the close system run by Apple for their iPhones. I am guessing that this application would probably not have been allowed into the Apple AppStore.

Friday, September 14, 2012

Is it safe to listen with headphones while cycling?

One of the hotly debated issues about cycling is whether or not it is safe to cycle while listening to something through headphones. I can certainly understand the view that it is important to be able to hear what is happening around you as you cycle. I personally like to use the time I spend on my bike to catch up on podcast episodes and/or music. However, I would like to do so safely.

I tried using the Around Sound application which is a cool application fro Android devices which measures the ambient sound and automatically pauses your music/podcast whenever the ambient noise exceeds a threshold. The intended use of this application is when you might be listening to music while working in a quiet office environment, but when your colleague comes up behind and asks you a question you would like your music player to temporarily pause to allow you to hear him/her. However, I found that I could not find a suitable volume threshold setting that worked well while cycling. Instead I use a low-tech solution of only attaching one of the earphones while leaving the other ear free for listening to traffic. In order to protect my ears from any potential long-term damage from earphone use I constantly switch ears.

Research shows that the biggest factor in determining the risk of using a mobile phone while driving is the content of the conversation. Apparently you are at much less risk of crashing while having an idle gossip with the phone held to your ear than if you were conducting a stressful interview through a hands free device. Using a similar logic I choose to make sure I am not overly concerned if I actually hear all of the items I listen to while cycling (e.g. I listen to a general chat about the news of the day rather than trying to take an on-line course which would require me to pay close attention - therefore if the traffic situation requires my close concentration, I am not worried about missing part of what is said on  the podcast.

Tuesday, September 11, 2012

Triathlon Report

Glynn-O'Donovan Triathlon Team 
As you may have noticed, I have been doing a lot of talking recently about my triathlon preparation. The big day finally arrived on Sunday and I was quite nervous when I got up, especially when I looked out over the lake and saw that there was a strong wind blowing and hence the lake was quite rough. My worries only increased when the rain started to fall shortly afterwards. However, I had committed myself to completing the triathlon in such a public way that I couldn't back out and so I proceeded to the start point.

Luckily the weather began to improve as the day went on and when I saw the under-age competitors (starting with the under 8 event) I began to gain in confidence. When the rest of the family team arrived along with a vocal group of supporters I even began to change my focus from competing the event towards achieving a good time. The wind also died down and the lake was quite calm.

When the swim started I hung back near the back of the group to avoid getting crowded. Unfortunately many of the swimmers at the back were doing breaststroke rather than crawl and hence were taking up more room and it seemed to be equally crowded. At one stage I decided to put my head down and swim hard, when I lifted my head to look around a canoe based marshal was shouting at me "turn right you are off course". Although this detour added to the distance I had to swim, it was probably a good move overall since I was then separated from the crowd and able to swim in peace from then on.

When I got out from the swim I got a big cheer from my extended family and so my spirits were lifted. I struggled getting out of my wet suit, but when I got on my bike I saw that it was only 24 minutes from the start so I was ahead of my schedule. I cycled steadily and I managed to complete the cycle leg in slightly over 40 minutes. I almost got a penalty as I  went through the second transition because I thought I was allowed unclip my helmet  immediately after dismounting - luckily the marshal knew that it was an honest mistake and so he let me off with a warning.

The began to fall towards the end of the cycle, but this didn't really interfere with my progress because it was only light and helped keep me cool. I struggled on the running phase, but just concentrated on keeping moving rather than trying to keep a fast pace. The full results are now available on-line and I have been credited with a time of one hour 35 minutes and 4 seconds which seems a respectable time for a beginner.

Overall I was delighted to have taken part and even began to discuss about possibly coming back again next year. My father told me that he ran his first marathon when he was about the same age as I am now. I think staying active has worked out well for him and I would be very happy if I am as healthy as him in the decades ahead.

Wednesday, September 5, 2012

Triathlon Plan

It is now just under 4 days to go to the triathlon, so I am taking the advice that I should stop training to ensure I am fully rested on the day. I have never done a triathlon before so it is hard for me to judge what would be a reasonable time goal, but I am going to aim for 1:50 minutes in total. I am allocating my time as follows:
  • Swimming 750m in 30 minutes: In the gym I normally complete my 750 meter swim under 25 minutes (in fact often below 20 minutes), but I think that 30 minutes will be a challenging goal for swimming in a lake.
  • Cycling 20 km in 50 minutes: Based upon my training times, I think that this should be quite achievable. In fact this is where I will try to get ahead of schedule if possible.
  • Running 5km in 30 minutes: I normally aim to complete a 10km fun run slightly below the hour mark. In theory I should be capable of doing a faster pace over 5km, but the fact that this will be the last leg of the triathlon will mean that it will be quite tough to even reach this pace.

I used to think that when people spoke about their Triathlon nutrition plan they were wondering what they should eat before and after the Triathlon, but it seems that it is also important for me to plan what I should eat and drink during the race itself. My current plan is:
  • I will have porridge for breakfast the morning of the Triathlon since the slow release of energy from the Oats tends to keep me going. I will also indulge myself with a few espressos to top up my caffeine level.
  • I will have a bottle of plan water attached to my bike for consumption during the cycle. I also plan to have two power bars stored in the pocket of my cycling jersey so that I can consume as much of them as I feel able for during the cycle. During training I found that it was almost impossible to open the wrappers while cycling at pace, so I will have the wrappers partly removed before I start.
  • I don't think that I will need to eat any more during the running plase, but I will store a bottle of GatorAde in the transition area to bring woith me for the run. I think I might needs a more sugary drink at that stage of the event, I had experimented with the idea of bringing along Lucozade tablets and adding them to my water bottle, but again this is messay when I am getting tired so the bottle of GatorAde is plrobably more feasible.
  • After the race I think I will replenish my fluids with Guinness the national drink especially while watching Galway beat Kilkenny for the second time this year in the All Ireland Hurling championship.
P.S. I found out why I was accidentally posting supersonic swimming times to DailyMile. I use the Tracks2Miles application and I had set my default distance units to be Km because this makes sense for running and cycling. When I entered details about a practice swim I would enter 750 in the distance field and then click on the drop down selection box to change my distance units to meters. What I didn't realise was that the application was trying to be helpful by automatically converting the distance I entered into 750000 meters (I didn't notice this  because I wasn't paying full attention, but also because the application automatically advanced focus to the comments field and hence the distance field was no longer visible).

Saturday, September 1, 2012

Triathlon Training Update

Some of the equipment I need to bring
when going for a swim in the Gym
I was pleasantly surprised by the amount of positive reaction I got when I announced that I was going to complete a triathlon to celebrate my passing the half century mark. Lots  of people have been giving be advice and encouragement. The triathlon I signed up for is now only a week away so I thought it might be nice to share an update on how my preparations are progressing.

I am amazed at how much equipment is needed to complete a triathlon. I know that not all of the equipment I purchased is absolutely essential, but I want to ensure that I don't fail due to lack of the proper gear. In any case it is part of the fun to get kitted out like a professional athlete. One of my main worries is that I will forget to bring along some of my new gear on the day of the event. I have been told that bringing along a bulging kit bag is a sure sign of a rookie - the experienced athletes will bring along just a few essential items.
  • Initially I was most worried about the swimming. I still think this will be my weakest link of the 3 events, but I have now swam the distance several times and I am confident that I will be able to complete the swim even if my time is not too fast.
  • Since cycling is my normal mode of commuting I am confident of my abilities on this event. Since I started triathlon preparation, I switched from my normal commuting bike to my racer so that I become comfortable with it. Unless I am running late for work, I typically divert through some of the back roads of county Meath on the way to work each morning so that I can get a real training cycle in. 
  • The main area that I still need to work on is my running. I have been neglecting this a little since I thought 5km is not a very long distance, but I suspect that it will seem a lot tougher when I go straight from swimming and cycling into my run.
I didn't realize when I entered the race that it would be on the same day as Galway's first appearance in the All-Ireland Hurling final in 20 years. However, the organizers have kindly arranged a big screen at the event so that all athletes will be able to watch the match as soon as they complete their event. I suppose this will provide additional motivation not to do a slow time and miss seeing the match.