Microsoft Songsmith makes a song from your vocals

N.
Creative Commons License photo: ValetheKid

Ever fancied writing a song but could never play an instrument?

Microsoft Research have released a programme called Songsmith. Songsmith records you singing into a computer microphone and automatically generates a musical melody to accompany it.

This is how Microsoft are marketing it:

Ever sing in the car? Maybe in the shower? You know who you are. Admit it, you like to sing, and you like music. Ever thought of writing your own music? Most people never get a chance to try… but we want to give everyone a piece of the songwriting experience, so we’ve developed Songsmith, an application that lets you create a complete song just by singing!

It’s a 98MB download. The free trial is fully-functional and lasts for six hours of use (measured as 6 hours whilst the program is running and active; not minimised). After that, it’s either 29 dollars or 29 euros to buy it.

What a cool programme!

Via Long Zheng.

The Facebook User 2.1billion Bug

We all remember the Y2K bug back in the millennium when the clocks changed from ’99 to ’00. The Y2K bug (although it never did really materialise) resulted from computer programmers storing years as two-digit numbers. 99 was the biggest possible value, and after that, the year reset itself to 00.

Bitscuits
Creative Commons License photo: barnoid

A similar bug is the Year 2038 bug. In computing, times are often stored as the number of seconds which have passed since midnight on the 1st January 1970. This allows time to be stored as a single integer in computers. At the moment, times tend to be stored as 32-bit integers. For signed 32-bit integers, only values between −2,147,483,648 to +2,147,483,647 can be stored. Hence, computers with 32-bit times cannot store any date more than 2,147,483,647 seconds after 1st January 1970. That occurs on Tuesday, 19 January 2038. We’ve still got 29 years to prepare for that eventuality, but we’re going to see a bit of a taste of the 32-bit integer bug with Facebook soon.

Facebook user IDs are often stored as 32-bit integers – thats a problem when there are more than 2.1 billion users on Facebook. In a message to Facebook Application developers, Facebook wrote on their platform status page:

With the addition of features like internationalization and Facebook Connect, we have seen a significant increase in user growth and engagement. As a result of this growth, we’ll start to issue uids greater than 2^32 in a few months. We wanted to remind developers that uids should be stored using 64-bit integers, as documented at http://wiki.developers.facebook.com/index.php/User_id. Since all current uids passed to applications are less than 2^32, developers may have inferred a 32-bit uid format. We are making this announcement so that any such developers have time to migrate code and databases before the first 64-bit uid is sent to applications.

Partytunnel
Creative Commons License photo: cosmonautirussi

Essentially, we’re being warned that users who sign up to Facebook after the date which Facebook hits 2.1 billion could find themselves running into issues accessing sites and applications which integrate with Facebook. I’m not sure how close to 2.1 billion Facebook are – one of my friends who signed up a month or two ago had a user ID of 1.64 billion. I’m not sure how quickly Facebook is gaining users and when they’ll hit 2.1 billion but Facebook have told us developers that we need to upgrade our applications now to ensure that they work for everybody.

My User ID is in the range of 710 million which is still larger than 84% of my friends; indicating I was a bit late to Facebook. I don’t know of anybody with a user ID smaller than 500 million. I wonder if small Facebook IDs will become one of those future status symbols.

BBC announce 11th Doctor – Matt Smith [updated]


The BBC announced today that the 11th Doctor will be British Actor Matt Smith. He will replace David Tennant who will leave Doctor Who after four special episodes in 2009.

Wikipedia:

Smith did not go to Drama school but was a former member of the National Youth Theatre. His performance in The Master and Margarita secured him an agent leading on to his first professional performance in Fresh Kills opposite Christian Slater [3]. Further roles came as he appeared in On the Shore of the Wide World before then moving on with co-stars Thomas Morrison and Steven Webb to Alan Bennet‘s History Boys.

After History Boys he moved into television appearing in the BBC adaptations of The Ruby In The Smoke and The Shadow in the North alongside Billie Piper, then as Danny Foster in the BBC TV series Party Animals.

In January 2009, his casting was announced as the Eleventh Doctor in the long running BBC science fiction series Doctor Who, taking over from David Tennant in 2010.

It’s interesting to see what he has worked with Doctor Who alumni Billie Piper several times in the past.

From the BBC press release:

Matt Smith said of his new role “I’m just so excited about the journey that is in front of me. It’s a wonderful privilege and challenge that I hope I will thrive on. I feel proud and honoured to have been given this opportunity to join a team of people that has worked so tirelessly to make the show so thrilling.

“David Tennant has made the role his own, brilliantly with grace, talent and persistent dedication. I hope to learn from the standards set by him. The challenge for me is to do justice to the show’s illustrious past, my predecessors and most importantly to those who watch it. I really cannot wait.”

See his IMDB profile.

See the BBC press release.

Happy New Year!

happy new year 2008
Creative Commons License photo: mugley

So just to wish all of you a very happy new year and a big thank you for sticking with the blog over the last year. It’s been a very exciting year to be a blogger. 2008 was the year of the iPhone 3G and smartphones, the Facebook redesign, innovative new sites to obtain and listen to music, the US presidential election, the Beijing Olympics, the Large Hadron Collider… But it was also the year where we all felt the effects of a global recession and the credit crunch. With the dawn of the new year, it’s unlikely that we’ll see anything changing straight away – the first big change will probably be the inauguration of President Obama on January 20.

So let me go out on a limb and make a few predictions of what 2009 might be like…

  • I don’t think we’ll have much more action on climate change. Obviously the global recession means that governments don’t want to implement policies which could further harm the economy on the short term. But a new president in the US does offer a glimmer of hope. But given most scientists and governments now agree on the urgency for action, we could see some moves towards environmentally-friendly policies. I would like to be proved wrong on this prediction!
  • MySpace is gonna die out. Sorry, but MySpace is already on it’s last legs. Meanwhile, OpenSocial has made no inroads. Facebook will dominate social networking in 2009. Get used to it.
  • Internet services on the mobile phone are going to be a lot more popular. Smartphones make the internet much easier to use and I think the combination of the “social web” with mobile phones is a killer. 3G comes of age.
  • More people will buy netbooks. Netbooks are awesome and given so many things now live on the web, there really is no reason for many people to lug round heavy laptops with huge amounts of processing power. Meanwhile, laptops will make further roads into replacing desktops.
  • Better weather. Not a hard prediction to fulfill as 2008 was terrible…
  • We’ll see some light at the end of the tunnel for the global recession. I know economic analysts say the recession is likely to last through the whole of 2009 but I’m optimistic: I hope we’ll get over the worst of it in the first quarter of the year.
  • We’ll get some data in from CERN but nothing particularly exciting.
  • Google Docs & Spreadsheets won’t take off. It’s still nowhere near a viable replacement for Microsoft Office. And given the huge discounts Microsoft now sells Office at, it’s unlikely to get displaced by any free alternative either.
  • Dandelion Fireworks-PHOTO 183-The halfway mark
    Creative Commons License photo: aussiegall

    It’ll be a good year for Google Chrome which will gain in market share. Firefox will still be unrivaled as the best browser though, and some of the stuff going on at Mozilla is very, very exciting. Mozilla is one place to watch over the next year.

  • Twitter – I still don’t understand it, or see why people like it so much, but it’ll go from strength to strength. Maybe get gobbled up.
  • Microsoft Windows 7 info will be largely ignored and derided. The fact is, all of the exciting development work now happens on the web platform. Microsoft’s future is in consumer applications such as Office, Surface and so on.
  • Gordon Brown calls an election to take advantage of positive public perception of his economic policies. Fingers crossed!

All the best for 2009 and I hope you will continue to read the blog in the new year!

Free MP3 Download Albums from Amazon.co.uk


Merry Christmas everybody! Just to share with you a fantastic freebie, Amazon.co.uk are offering every customer a free MP3 album download on Christmas Day and Boxing Day 2008. Go to the Amazon MP3 Store to get your festive freebie.

These are good big name albums from artists such as The Killers, Leona Lewis, Guns N’ Roses and The Ting Tings.

My album choices from the free albums (what I’m currently listening to):

Unfortunately my musical recommendations are slightly biased from the fact I have seen all the listed bands perform live! So do have a full look down the list of albums available.

You can get more other albums for £3 a piece – not bad at all. Definitely compares very favourably against iTunes price wise and the music is encoded at 256kbps without DRM which means you are free to listen to the music as you please. Given music can be quite a large expenditure for many young people, this could be a great way to beat the credit crunch.

Update: You’ll still need to provide credit and debit card information to Amazon. I believe Amazon will charge you for the album and then refund you.

Thanks to Richard for the tip :)

Evolving the Mona Lisa by natural selection

Fantastic experiment and write up by Roger Alsing. Using an evolutionary algorithm, Roger wrote a programme that would attempt to paint the Mona Lisa using 50 transparent polygons. The “fitness” of each permutation was tested by comparing it pixel by pixel to the actual Mona Lisa. Wonderful.

Richard Dawkin’s “The Blind Watchmaker” is a fantastic book to read if you’re interested in evolution. I read it fairly recently; he writes a computer programme to simulate evolution and the results are fantastic. Worth a read.

US Bank Bailout Now More Costly Than World War II

The New York Stock Exchange
Creative Commons License photo: epicharmus

In July, I wrote about what the implications of a hypothetical “economic war” where a country has it’s economy systematically attacked with the aim of causing damage to the country. Perhaps it sounds like a bit of a farfetched idea but I think the recent calculation carried out by an economist, showing that the US bank bailout has already cost more than the US involvement in World War 2, could perhaps add weight to the argument that it should be taken seriously.

Frequent CNBC commentator, Barry Ritholtz, writes on his blog:

If we add in the Citi bailout, the total cost now exceeds $4.6165 trillion dollars. People have a hard time conceptualizing very large numbers, so let’s give this some context. The current Credit Crisis bailout is now the largest outlay In American history.

Let’s take this in contrast (all figures are inflation adjusted):

  • Bank Bailout: $4.62trillion
  • War World 2: $3.6trillion
  • NASA: $0.85trillion
  • Iraq War: $0.60trillion
  • The New Deal: $0.5trillion

That’s just really scary.

Sterling Crashes – The effects on gap years and hedging

Money
Creative Commons License photo: Peter

I received an email from a friend yesterday. She is currently taking a year out and taking on some voluntary work to promote peace in the middle east. It’s such a fantastic thing to do in my opinion and I have a lot of respect for her for doing it!

However, it seems like even she can’t avoid the credit crunch which is impacting us all at home. I’ve written about the fall in the value of the Pound before on this blog. £1 would buy you $2.05 at the start of the year, now it would buy you about $1.50.

And that’s really, really bad news for anybody who has income denominated in Pounds and costs denominated in dollars. If the gap year cost $8,000 at the start of the year, that would have worked out around £4,000. That cost has now increased to over £5,300. That’s a huge shortfall in funding and now she thinks she might have to cut the gap year short which would be a real shame. My prediction is that we’ll see a bounce in the value of the British Pound soon but obviously the exchange rate is very volatile. That’s a big problem: the cost of everything (accommodation, food, etc.) in terms of your home currency can change dramatically from day to day.

The volatility of exchange rates poses extra risks both importers and exporters. Somebody (or some company) buying products in dollars and selling them in pounds will have seen their costs rise by 33% in just the past few months. That could easily make the difference between a healthy profit and a huge loss.

Reducing or hedging the risk


Creative Commons License photo: michale

So let’s set the scene. I’m an importer of widgets from the US. I import $1 million of widgets per month. The exchange rate is $2 to £1. So my imports cost me £500,000.

However, I believe the pound is overvalued. I reckon the UK is going to go into recession soon and the pound is going to be a lot weaker. I go to my bank manager and I ask him to guarantee an exchange rate for the next year. Obviously, my bank manager probably won’t guarantee me a rate of $2 per £1 for a whole year. The reason for that is simple: if the pound does indeed get weaker, he’ll lose out. A more realistic rate he might offer is $1.8 per £1. Providing the pound stays at the $2 level, my bank manager would have made a cut of $0.20 per £1; giving my bank a profit of $100,000.

I’m now paying £550,000 for my currency. That’s more than the £500,000 it would have cost me without the agreement, so essentially I’m paying £50,000 for the service of being able to “lock in” my exchange rate for a year. But because I believe the pound will fall in value, I don’t mind. If I could predicted a fall to $1.5 per £1, I would have known my costs would rise to £660,000. So I predict that agreeing a rate for my currency in advance would save me £110,000, in addition to giving a more stable cashflow.

What I’ve just described is an “exchange rate derivative” (or a future). The activity is known as hedging.

Hedge Funds

In amidst the credit crisis, hedging has a bad name and reputation. Imagine my company is publicly floated on the stock market at the price of £2 per share. However, a hedge fund believes that my company is overvalued or expects sales to be poor in the next quarter. The hedge fund makes an agreement with somebody (e.g. a bank) that it will sell shares in my company at the price of £1.80 in one years time. So my bank manager is sitting there and thinking: great! I’m getting a £2 share for the price of £1.80… a profit of 20p instantly! If shares in my company then fell to £1.50, the hedge fund makes a profit of 30p by offloading something worth £1.50 for £1.80.

2008-08-14-001
Creative Commons License photo: Alex // Berlin _ as+photography

But here is the moral issue. A hedge fund is making a profit out of the fact that my company is doing badly. In fact, the worse my profits are and the more people I have to make redundant, the more money the hedge fund will make. Isn’t this profiting from somebody elses misery?

I hope the similarities between the currency hedge and the company hedge are fairly obvious. Hedge funds make a profit out of the fact that my widget company performs badly. My widget company makes a profit out of the fact that the British economy is doing badly.

But whilst there may be a debate to be had over the morals of short selling, it isn’t in doubt that hedging can serve a positive purpose. My friend, who no longer has enough money to complete the gap year she had been planning for a long time, could have avoided being in the situation she is currently in by hedging the Pound. She would have had the knowledge that whatever happened to the British economy and the British Pound, her costs would always be the same. If the Pound fell, she would have made a profit. If the Pound later rose, she would have paid well over the odds for her gap year. But at least the cost of the gap year would be fully known and the risks from currency fluctuates eliminated.

Predicting the future popularity of a web page

Balloons in Trafalgar Square
Creative Commons License photo: wili_hybrid

New Scientist reports this week that a new tool developed at HP Labs could potentially predict the popularity of a web page in 30 days time. Essentially they say that by looking at the rate at which a web page picks up views in the first few days can predict the subsequent popularity of the page 90% of the time. It doesn’t seem too radical an idea – after all the pages which are more popular in the first few days are likely to get bookmarked more, linked to more, higher place on Google, etc.

The research focused around the sites Digg and YouTube so it would be interesting to see how it could be applied to other sites. You can download the paper online at arXiv.org.

On a similar note, I’ve found that I’ve been able to get some incredibly stunning useful information from the popularity of webpages on my site. For example, one of my posts about MSN Messenger downtime gets a lot of hits whenever MSN Messenger goes down. When the number of visitors for that page is significantly above normal, I know that MSN is actually down. If the number of visitors is normal, it’s typically just an issue with my connection or my local server. In fact, I’ve found this method much more reliable than using Microsoft’s own service status page for the Messenger service. Similarly, I found a huge spike in the number of visitors to my post on the possibility of VAT cuts straight after the recent pre-budget report. If only there was a way of exposing these statistics in a useful way!

UK cuts VAT to 15%

A Cookie Crumbles
Creative Commons License photo: CarbonNYC

Everybody who lives in the UK should read about the “exceptional” pre-budget report this year. There are some big tax changes which probably affect you. To sum it up, there is a new 45% band of income tax; VAT is falling to 15% for 13 months; excise duties on alcohol, tobacco and petrol are rising.

I wrote about the possibility of VAT cuts two weeks ago. Given VAT is falling from 17.5% to 15%, we should see a fall in the price of goods by 2% from Monday, assuming that the full VAT cut is passed on. In my previous article, I discussed whether retailers are likely to absorb the VAT cuts as extra profit, pass it on as-is or perhaps even cut prices by even more than 2%.

Worth keeping an eye on anyway and not making any big purchases of electronics or gadgets quite yet until we see how retailers are going to react.

For full details, see the government’s full pre-budget report, “Facing global challenges: Supporting people through difficult times”.