Thursday, December 8, 2011

A lazy person's guide to staying active on several social networks at once

I am a keen adopter of new technologies and as a result I sign up for account on most new social networking related sites. People sometimes as me how I manage to find the time to keep all of these accounts active. However, the truth is I can't keep active on all of these different sites, but with clever management of the feeds between the different services it is possible to give the appearance of being active on all of them without actually logging into most of the sites in question regularly.

For, example the following diagram outlines some of the automated information flows that I have set up between the various social networks on which I am active:

  • While Facebook is most popular among young students, LinkedIn is a social network more popular with older professionals. There is a large overlap between the people registered on both sites, but if you want to maintain links with all of your friends, you really need an account on both services. Since people seem to spend more time keeping their status updated on Facebook or Twitter than LinkedIn, LinkedIn has a feature that you can enable to automatically import status updates from the other platforms. This has the benefit of making it seem like you are paying more attention to your LinkedIn profile than you really are, but you need to be careful because the social norms on LinkedIn are radically different from Facebook and what is seen as a really cool status update on Facebook, might seem highly inappropriate on LinkedIn.
  • I use Foursquare for sharing with my friends details of where in the world I happen to be located at any one time. I like Foursquare because it is most fun to use, but since only a sub-set of my friends are active users of Foursquare I have configured it to automatically share my activity on Facebook and Twitter. Although some of the non-users of FourSquare are puzzled to read the announcements that I have become mayor of some arbitrary place, I get more comments and feedback through these other platforms than I get on FourSquare itself.
  • I track my exercise using the MyTracks application on my Android phone. This is a really handy application which uses the GPS in my phone to keep track of how fast and far I have been running or cycling. The data collected by this application is truly amazing, but it is not really a very social application. So when I want to share my training data with friends I like to use the DailyMile site. This site can automatically share information with both Facebook and Twitter. Luckily a colleague from IBM has developed a really handy Android application called Tracks2Miles which automatically transfers data from MyTracks on to DailyMile (which in turn shares it on Facebook and Twitter - which in turn feeds LinkedIn).
  • Bit.ly is a popular URL shortening service. If you create an account on this service and associate your Twitter and Facebook credentials with your bit.ly account, then you can automatically share a status update to both services at the same time as shortening a long URL.
  • If you wish to interact with social networks inside IBM, security restrictions mean that web based tools can't help. However, BlueTwit sidebar is a Firefox extension that is available inside IBM. It is useful because it allows you to conveniently read and write status updates from several different social networks both inside and outside the IBM firewall from a single UI..It is available as a sidebar whenever you have Firefox open (which is most of the day for a lot of people).
  • In a similar vein, WildFire is an open source extension available for Lotus Notes that allows me to read and write social network updates to a large number of different social networks from a single UI. It is really handy for anyone who has the Lotus Notes client running all day long (most IBM employees fall into his category).
While these automated tools are really handy and save me a lot of effort, they do have one significant drawback. Although they give the impression that I am active on several sites, and alert human can easily detect the fact that I am not really engaged. For example, there is no way for an automated tool to read what someone else has written and leave them a thoughtful reply. Most social software experts advise that you should spend at least twice as much time reading as you do writing (in real-life nobody likes people who turn up at a party and talk incessantly without listening - this is what these tools make you look like online). In fact some people feel so strongly against automated tools like the ones I described here that they refer to them as "anti-social software"

This problem can be partially overcome by setting up email notifications (most social network platforms can be set up to periodically email you a summary of recent activity that might be of interest so that you can respond to some).

A service that I don't use much any more is ping.fm - but if you really want to automate your status updates this is the tool for you. It is capable of connecting a huge variety of social networking sites and it is even extensible so that if support for your favourite network is not yet enabled, you can add it yourself. A really neat feature of this platform is what they call vocabulary expansion, this allows you to put special tags into your status updates and have the system intelligently replace these tags with something different when propagating your status update each of the target platforms. However, this feature never really caught on since most social networkers are more interested in vocabulary contractions than expansion.

Tuesday, December 6, 2011

Is working from home a good idea?

One of the benefits of modern network technology is supposed to be the fact that "location doesn't matter" and "you can work from anywhere". While it is true that remote working is now very feasible for many occupations, I think that where you choose to do your work has a very significant effect upon your productivity.

I was recently at a conference and I noticed that during the lunch break many delegates chose to use the free time to catch up on the work they were missing by reading emails, checking voicemail, returning calls etc.. They were all a long way from their normal place of work so it is good that they could get some work done. However, they did not simply choose any location in which to do their work, instead there was a frantic search for suitable locations i.e. a quiet alcove where they had some peace and quiet as well as a place to sit and maybe even a place to rest their laptop.

What this means is that where you are located on a global scale doesn't matter. For example, you can easily do most jobs from New York City, but it would not be a good idea to base yourself in the middle of Times Square if your job requires some peace and quiet. Likewise you could probably do most jobs from a location in a remote wilderness location in African so long as you had power and in Internet connection, but you would probably need to move to a shady location ensure there was not too much glare on the screen.

IBM is quite liberal in terms of allowing employees to work from home if they want. In general the consensus seems to be that senior people can work productively even when remote from their colleagues, but junior employees benefit significantly from working in a team where they can learn from more experienced engineers. In some IBM labs in the USA, there are so many people working from home that people are beginning to complain that there is little point in being in the office since there is nobody else there to interact with, and the company has launched a "back to the lab" initiative to counteract the problem (which I guess is similar to the problem of city centres becoming empty shells when all businesses move to malls in the suburbs).

The factors influencing your decision about whether to work from home or not would include:
  • How far your home is from your normal workplace? I am luck enough to need only 20 minutes to cycle to work each morning, but many people live over 100km from work so they naturally don't want to make that journey if they can avoid it.
  • What is your home environment like? Some people are lucky enough to have a well furnished office space at home, but others might live in cramped accommodation shared with other people and hence working from home might not be feasible for them.
I am the only person from the team I am currently working with who is based in Ireland, so all of our team meetings are virtual meetings. However, I still find it useful to go into the office most days, becuase I know if I spent too long at home I would begin to suffer from severe cabin fever. It is great that companies allow people to work from home, but this does not mean that everyone could/should work from home on a regular basis.

Sunday, December 4, 2011

Does the clock on my microwave consume more power than the heating element??

According to this article in the Economist "a typical microwave oven consumes more electricity powering its digital clock than it does heating food". This seems very surprising to me so I decided to test if it is really true by using the individual appliance monitor that I bought from Current Cost Ltd. to monitor the electrical power consumed by my own microwave oven at home.

When not cooking food, my microwave consumes 2 watts of power to power the LED clock. This is actually higher than the 1 watt estimate used in the article and would represent a daily usage of about 0.05 Kilowatt-hours. When actively cooking food it uses about 430 watts, I was surprised how low this was since the microwave was sold as an 800 watt unit and seems to be capable of heating food as fast as expected by receipts written for an 800 watt model.

The total daily power consumed by the microwave naturally depends upon how much it is used. However, my figures were that the normal usage amounted to about 0.15-0.20 Kilowatt-hours per day. This means that for my microwave, the allegation in the article is not true. However, it is surprising to me that the LED clock is consuming 25-30% of the power of the heating element. Because of this information, I would like to plug out my microwave while not in use. Unfortunately the socket where the microwave gets plugged in is buried behind a press and it is not very easy to get access to so I will have to do some re-wiring before this is feasible.

Friday, December 2, 2011

Phone chargers are not all the same


When I initially tested the electricity consumption of my phone charger when plugged in but not actively charging, I was pleasantly surprised to see that no electricity was consumed. Since I was running that test with the current cost meter which could only measure to an accuracy of 1 watt, I decided to repeat the test with my new more accurate meter and also I compared three different phone chargers. The three chargers I tested are shown in the picture on the right.
  • On the far right is the charger which came with my phone (a Samsung Galaxy II).
  • In the middle is a charger that came with my first ever Android phone. I bought the phone from a clone maker in China via eBay because Android phones were not offically available in Ireland. The phone was truly dreadful, but the charger was really cute looking so I hung on to it.
  • On the left is a charger which was part of a multi-device charger set I bought in Lidl.
The results of my testing were that the chargers on the left and right truly consumed no power when not actively charging the phone. At least they consumed less than 0.05 watts since the measuring device reported the power consumption rounded to 0.1 watts. Unfortunately the charger in the middle (the cute looking one) consumed about 0.5 watts when plugged in but not charging. This is not going to cost much money (roughly 5 cent per month if left plugged in permanently) but since I have better charges available, perhaps I should consign this charger to its most appropriate use as an ornament.

All of the tests were done with the same phone. Obviously it has logic to stop drawing power once the battery is fully charged, I can't be sure that other phones would have the same feature. Therefore as the saying goes "your mileage may vary".

Wednesday, November 30, 2011

Are the weather forecasts in Ireland really as bad as people complain?

The weather in Ireland is notoriously changeable. As a result of this the common perceptions is that the professional weather forecasters often fail to accurately predict the weather even a few days into the future. However, it is hard to find definitive data about how accurate or not the weather forecasts are.

A quick search of the Internet will reveal several sites giving confident predictions for what the weather will be in the future and/or listing what the weather was at various dates in the past. However, very few of them reveal what their past predictions were and so it is difficult to find an objective measure for how much confidence you should place in a particular forecast.

I thought this would make a very interesting project for the BT Young Scientist competition for my daughter and a few of her friends. Unfortunately the judges did not agree and they rejected their entry into the competition. However, in anticipation of their project being accepted, I created a simple batch job that fetched weather forecasts from three different Internet sites each day and saved them in files for later analysis. Since the data was being collected anyway, I thought it would be a shame not to do anything with it and so I decided to a short bit of analysis which I write up here. If you don't want to bother reading all of the blog post the short summary is that the forecasts are indeed not very accurate.

When choosing the sites to use I was more influenced by how easy the data was to collect than by whether or not the source was authoritative. For example, the Met Éireann are the official forecasting service of the Irish Government, but their forecasts are deliberately translated from numerical predictions into a forecast that humans can easily understand e.g. "rain will spread from the west and become heavy by nightfall". It is very hard to do any statistical analysis on forecasts like that, so I deliberately chose three services which provided numerical forecasts in a format that was easy to parse:
  1. The Yahoo weather service is widely used. By fetching the contents of this URL each day I was able to retrieve an XML file with details of current weather conditions in Dublin, Ireland as well as their forecast for the weather the next 2 days.
  2. Weather.com is the weather service provided by the well known Weather channel and it provides weather data and predictions for all parts of the globe. By fetching this URL I got an XML file with their current weather data for Dublin as well as a prediction for the next 4 days.
  3. WeatherOnline is not quite so well known a weather prediction site, but they make their data very easy to retrieve. By fetching this URL, I was able to get a CSV formatted file with current weather conditions in Dublin and a forecast for the next 5 days.
I have collected about 2 months worth of data at this stage. Initially I decided to analyse the accuracy of the WeatherOnline data for the practical reason that it was easier to transform CSV files into spreadsheets than to transform XML files.

The first thing I looked at was rainfall predictions. The following chart shows the predicted rainfall (on the Y-Axis in millimetres) plotted against the actual observed rainfall (on the X-Axis). If the forecast was perfect all the dots would be on a straight line with a 45 degree slope. I don't think that anyone would expect the forecast to be perfect, but I must admit that I was personally surprised at how poor this forecast is. I calculated the correlation coefficient between  the forecast and actual data and it came out at 0.28 - the general rule of thumb would be to interpret such a low correlation figure as "there may be some small association between the figures". If I looked at the prediction from 5 days before rather than the prediction from the day before the correlation coefficient goes down to 0.07 - this is normally interpreted to mean that there is no association between the prediction and actual values.
Rainfall Prediction v Actual (mm)

The next parameter I looked at was temperature. The following chart show the actual temperature plotted against the predicted temperature from the day before and from 5 days before.

I think you would agree that the temperature predictions seem to be a little better than the rain predictions and this next chart shows the predicted temperature readings from the day before (in degrees Celsius on the Y-Axis)  plotted against the actual temperature on the X-Axis. This is not the straight 45 degree line we would hope for, but at least there is some association between the two. Indeed the correlation coefficient is 0.33 which is jut high enough to indicate that there is a medium strength correlation.
Predicted Temp v Actual Temp
However, the team at WeatherOnline should not be too proud of this result because the temperature in Ireland does not swing very much from day to day so it should be easy to predict. The average error in their temperature prediction was 2.66 degrees.  I am sure that they use a very sophisticated prediction methodology, but if instead they simply predicted that the temperature tomorrow will be the same as today, their average error would only increase to 2.76 degrees.

I have only scratched the surface of this topic. If the girls' project had been accepted they would probably have done a much more extensive analysis. Areas that would be interesting to tackle would be:
  • Analysing the other factors of the prediction e.g. wind speed and direction, pressure etc.
  • Looking at different weather prediction services to see if some are better than others.
  • Looking at longer time scales. Because of the way I am collecting the data it is not possible to go back into the past and collect historical data, but if anyone knows of a data source showing old weather predictions I would love to analyse this.
  • Looking at similar prediction accuracy in other parts of the world. For example, the weather is an extremely popular topic of conversation among Irish people, but an Egyptian colleague assures me that Egyptian people rarely discuss weather among themselves. I guess a discussion of the weather among Egyptians would quickly become boring since most days are warm and dry. Presumably weather predictions in Egypt are probably more accurate than in Ireland (but maybe nobody bothers to read them).
If anyone wants to learn more about this you can download the raw data here.


Tuesday, November 29, 2011

Sleeping and still consumping electricity


I know that many people are worried about the amount of power being consumed by electronic devices which are in stand-by mode and not actually doing anything useful. For example this article from the Economist magazine suggests that devices on stand-by could be consuming either 5% or 10% of total domestic electric demand (depending upon what part of the article you believe). I recently found out about the One Watt initiative which aims to ensure that in future all devices will be legally obliged to consume a maximum of 1 watt each while on stand-by.

The current cost meter that I have installed in my home provides me with an indication of the lowest power consumption rate each day. This figure is normally around 140-150 watts. Presumably this rate is reached when all of the household is asleep and not actively using any of the many devices we have in the house. My total power consumption varies from day to day, but on a normal day this background usage level would account for roughly 20% of my total consumption.

Not all of the devices consuming power  could or should be switched off at night e.g. it would not be a good idea to unplug the fridge/freezer before going to bed each night. However, I am sure that we should be able to reduce this figure significantly.

In order to identify which devices are consuming power at night, I would need to take measurements of the consumption of the various devices left on at night. The amount of power that each device consumes would probably be quite small and so the current cost meter (which only measures to the nearest watt) is probably not accurate enough. So I bought a plug in energy monitor from Maplins. which was capable of monitoring to an accuracy of 0.1 watts.

My first impressions are that this is a great device and wonderful value for money. However, the device has two main drawbacks which make it difficult for me to use:
  1. The display has no back light and so it cannot be read unless I have a bright light shining on it. However, I can understand this since they don't want the device itself consuming too much power. And in any case, the use of a flash-light can overcome this problem.
  2. The digits on the display are so small that they are barely legible. The unit has a number of different modes. In each mode one measurement is displayed in large digits, a secondary measurement is displayed in smaller digits an unfortunately I can only guess what value us being displayed. It also uses an even smaller symbol to indicate what mode it is in an this sysmbol is so small that I have no hope of even guessing what it us. However, I have developed a little trick to work around this problem - the voltage reading will always be close to 240 and  it would be very bad luck if any other measurement gave a similar reading. If I cycle through the modes until I see a reading close to 240, then I can use the manual to see how many more times I have to switch through modes to get to the mode I want. It is a pity that a great device should be ruined by such a simple defect.
When I complete my measurements with this new device I hope to be able to report back here on which devices I was able to switch off and how much electricity I saved.

Friday, November 25, 2011

Microphone adjustment on the Thinkpad W510

As I blogged about before, my current work laptop is a Lenovo W510 which is a really great machine once you get it working, but the setup can be a little bit tricky. Because I work on Sametime and most of my collagues are remote from me, I spend most of my days in Sametime Audio/Video meetings. When I got the laptop initially one of the factors that impressed me was the quality of the built in microphone. In fact the quality of the built in microphone was so high that I no longer had to use a dedicated headset.

Unfortunately, after a few months people began to complain that they could not  hear me clearly. Initially I was able to solve this by simply turning up the microphone gain with the "sound preferences" application, but eventually people complained that they could no longer hear me even with the gain turned up to the maximum. I was so desperate to find a solution that I even tried using Windows on my laptop, but this didn't seem to behave any differently so I was convinced that the problem was a hardware one.

I raised a ticket with our local hardware support team to see if they could repair it. They reported that when they tested it the volume coming from the microphone was OK, but there was a lot of background hiss and so they replaced the microphone control board. Initially the microphone worked OK, but then it started to tun itself off again randomly after a reboot or a suspend/resume. Now that I was convinced that it was unlikely to be a hardware problem so I did a little bit more digging on the Internet.

Eventually I found a solution. It seems that although the "sound preferences" application treats the microphone as a single device, there are actually two different devices contained within it. The alsamixer application sees these two devices as "Capture" and "Analog Mic Boost" each with their separate settings (see picture). The sensitivity of the microphone is effectively a combination of both settings, but the "sound preferences" application only adjusts the level of the "capture" device. For some reason the "Analog Mic Boost" had been turned down to 0 and when I adjusted this back up I was then able to make myself heard at team meetings.

Thursday, November 24, 2011

An example of Foursquare's sense of fun

I blogged before about how FourSquare seems to have managed to inject the right amount of fun into their platform. Just today, I saw an example when I checked in this morning at a local coffee shop I got the following email from FourSquare. It is hard not to smile when you read this :-)



Congrats! Your recent check-in at Insomnia just unlocked the Fresh Brew badge, Level 2!

Look at you, Juan Valdez! That's a lot of coffee. Now that you've had your caffeine fix, get out there and conquer the day - one twitchy step at a time.


Nice! You've hit up 5 different coffee spots. 5 more new ones and you'll unlock Level 3! Foam moustache party!

Thursday, November 17, 2011

It is leaving your laptop in sleep mode that consumes energy, not whether or not it is plugged in

I blogged before about how leaving your laptop charger attached to your laptop can cause it to consume a small amount of electricity if the laptop is in sleep mode as distinct from being either switched off or in hibernate mode.

When I was thinking again about this I realised that this is probably caused by the fact that the laptop's battery needed to be constantly topped up. Therefore I decided to leave the laptop unplugged in sleep mode overnight. When I plugged in charger to the laptop the following morning it started to consume about 24 watts of energy until the battery was back to full power again and then it went back down to the 1-2 watts of trickle power again.

As a result I had not saved any power overall by leaving the charger unplugged overnight.

Tuesday, November 15, 2011

Laptop Chargers consume much more power than phone chargers

Previously I blogged about the power consumed by my phone charger and I concluded that it was nothing to get too worried about. However, laptops typically consume much more power than mobile phones and so it is to be expected that laptop chargers will consume significantly more power than phone chargers. Therefore I decided to do a similar measurement on the power consumed by my laptop charger.

The laptop I used for the test was a reasonably old Compaq and the charger is not the original one which came with it (the original died a few years ago). I leave my laptop charger almost constantly plugged into the electrical socket in the wall, but for the purposes of the test I connected it through the Individual Appliance Monitor as shown in the picture.
  1. I checked the power consumed by the laptop charger when there was no laptop attached and like the phone charger it was consuming 0 watts.
  2. I waited until the laptop battery was well drained and then I plugged it in. The charger immediately started to consume about 63/64 watts of power.
  3. I put the laptop into sleep mode, but the power consumption of the charger did not decrease (presumably because it was still busy charging the battery). After 2 hours the power consumption gradually decreased to 1/2 watts but not to 0. I assume that this is because the laptop is still consuming power in sleep mode. To eliminate all power consumption I would need to either unplug the laptop or else put it into hibernate mode.
  4. The charger consumed roughly 0.05 KWh to charge the battery fully. At current electricity prices in Ireland this would cost slightly less than a cent.
  5. When I woke the laptop from standby the consumption went back up to 24 watts. I assume this is because the charger is providing live power to run the laptop, but not needing to charge the battery.
Overall I think the lesson is that leaving the laptop charger plugged into the wall is does not waste electricity, but leaving the laptop plugged into it and in sleep mode does consume electricity. However, if you leave your laptop unplugged in sleep mode, you will still need to charge up the battery when you do plug it in later. To be really effecient on power you need to turn off your laptop completely or else put it into hibernate mode if you are not going to be using it for a long time.