I went to an event tonight entitled "Designing and Evaluating Mobile Applications for New Social Experiences" which was presented by Dr. Lynne Baillie.
It was a last minute decision to attend (i never knew about it) but i was glad i went as some of the ideas presented touched on many of the things i have been thinking about and working on for some time now (in fact i created my first WAP site way back in 1998!).
Much of what she discussed reminded me of some of the concepts on nexet generation technologies discussed in Howard Rheingold's Smart Mobs. It was however, exciting to see it actually working (or at least the results of it).
Lot's of cool stuff i'll be following up on.
Tuesday, May 29, 2007
Clyde Property
I know a number of you from around Glasgow have emailed me in the past so you may be interested in my latest issue.
Clyde Property Letting. Yep, we left our house after 3 and a half years (when Xavier was brought up) and they are now hoping we are happy to pay for the cleaning of the whole house, despite us putting a lot of work in to ensure it was clean.
As an example, they want us to pay for the cleaning of arguably the leakiest windows in the West End and a 5 year old smoke stained CREAM couch. There are a number of other issues i wish i had the time to go into, but let's see how this goes....
Sunday, May 27, 2007
Glasgow Science Centre
Had a great (and very long) day at the Glasgow Science Centre today with my wife and kids.
We were lucky enough to see the bridges being raised for the boats to pass as well.
Took a lot of pics, but three best are below.
Xavier's "floating head" ....

Xavi in the cockroach house (actually a photo of a video screen capturing Xavier watching the cockroaches in another part of the building)

A boat on the Clyde, the Science Centre behind, BBC Scotland headquarters on the left and the IMax behind the Science Centre...
We were lucky enough to see the bridges being raised for the boats to pass as well.
Took a lot of pics, but three best are below.
Xavier's "floating head" ....
Xavi in the cockroach house (actually a photo of a video screen capturing Xavier watching the cockroaches in another part of the building)
A boat on the Clyde, the Science Centre behind, BBC Scotland headquarters on the left and the IMax behind the Science Centre...
Saturday, May 26, 2007
Ben Lomond Summit!
Well, after my last attempt a year or so back, we finally got to Ben Lomond. I tweeted the summit.
We even managed to get caught in a freak snowstorm which nearly froze my hands off - managed to forget my gloves for the first time ever.
Here are some pics, with more on flickr. You can now see where i was on a map ...


We even managed to get caught in a freak snowstorm which nearly froze my hands off - managed to forget my gloves for the first time ever.
Here are some pics, with more on flickr. You can now see where i was on a map ...
Tuesday, May 22, 2007
WS Enumerations in ASMX
String little error i have run into when using enumerations from an ASMX.
Just in case you don't know, enumerations aren't automatically serialized when you use the XmlInclude attribute on your web service classes. Hence you can create a method called someything like "GetMyEnum" which return it. You don't ever actually have to call this method, but having it there forces .Net into serializing the enumeration for you and including it in any web service proxy definitions.
Now, we also know you can add the [Flags] attribute to any enumeration to allow you to perform bitwise calculations on the enumeration without created properties to store each setting. In most cases you simply apply the [Flags] attribute and that's all you need to do.
However, I found an issue here (anyone else?). On the actual enumeration definition, the integer value start from zero; on the web service proxy generated enumeration, it starts from 1 ! In other words:
On the server ...
[Flags]
public enum MyEnum
{
myfirst, //set to 0
mysecond, //set to 1
mythird, //set to 2
myfourth //set to 4
}
In the WS proxy ...
[Flags]
public enum MyEnum
{
myfirst, //set to 1
mysecond, //set to 2
mythird, //set to 4
myfourth //set to 8
}
The result is that your bitwise calculations that are sent from the client to the server are screwed up. The fix is irritating, but simple. Simply modify your original enumeration definition and start from 1 rather than 0.
Just in case you don't know, enumerations aren't automatically serialized when you use the XmlInclude attribute on your web service classes. Hence you can create a method called someything like "GetMyEnum" which return it. You don't ever actually have to call this method, but having it there forces .Net into serializing the enumeration for you and including it in any web service proxy definitions.
Now, we also know you can add the [Flags] attribute to any enumeration to allow you to perform bitwise calculations on the enumeration without created properties to store each setting. In most cases you simply apply the [Flags] attribute and that's all you need to do.
However, I found an issue here (anyone else?). On the actual enumeration definition, the integer value start from zero; on the web service proxy generated enumeration, it starts from 1 ! In other words:
On the server ...
[Flags]
public enum MyEnum
{
myfirst, //set to 0
mysecond, //set to 1
mythird, //set to 2
myfourth //set to 4
}
In the WS proxy ...
[Flags]
public enum MyEnum
{
myfirst, //set to 1
mysecond, //set to 2
mythird, //set to 4
myfourth //set to 8
}
The result is that your bitwise calculations that are sent from the client to the server are screwed up. The fix is irritating, but simple. Simply modify your original enumeration definition and start from 1 rather than 0.
Subscribe to:
Posts (Atom)