If you're lucky enough to be able to get hold of a copy, the Visual Studio 2011 beta is available now.
Filled with great new features including a lot of stuff aimed at building metro style applications, Visual Studio 2011 carries on a long tradition of programming IDE excellence.
Metro style applications, originally only available as a scripting solution is now a full fledged C# or Visual Basic programming target so your applications can indeed contain all that you might expect from compiled managed code.
A simulator will be included for testing of Metro apps that are targeting phones or tablets as well as touch screen PC's, great if your development kit doesn't actually include a touch screen (I must fix that!)
You can do remote debugging. This is so useful if you need to debug the exact experience as it appears on the target device. I've used a version of this on my Gadgeteer but I'm looking forward to debugging live on my phone.
Microsoft are also really pushing the store. Create and manage your Windows store developer account and publish applications to the store. Windows Phone is sadly lagging behind iPhone and Android in terms of application availability so Microsoft obviously have a strong desire to make this process as easy as possible, unlike Apple who seem to want to get in the way of the process as much as possible.
Visual Studio 2011 also places great emphasis on code quality. This is an area which has almost never been used in the past except where consultants like me get called in to find out why a long running project is dying. With Visual Studio 2011 you get those tools built in and integrated into your build process from day 1.
I'm greatly looking forward to the final release. Lets get this beta over with Microsoft!!
Insightful, profound, generous, witty, genius; all words that might be used somewhere in this blog.
Sunday, April 15, 2012
Visual Studio 2011 beta
Labels:
C#,
code quality.,
Debugging,
profiling,
VB .Net,
Visual C#,
Visual Studio,
Visual Studio 2011
Saturday, April 14, 2012
Mmmmmm PIE!
| Twenty three pounds sterling, that’s about twenty eight Euros or about thirty five Dollars, gets you a Raspberry Pi computer. In the 1980's when the price of an eight bit microprocessor had dropped to a level low enough to allow their inclusion in commercially available systems, machines like the Commodore 64, Sinclair or Timex Spectrum and many others blazed the trail into the eager palms of kids whose parents were told earnestly that "I can do my homework on it" but in reality they were used to run games until the early hours of the morning. |
These machines all came with some version of BASIC which it's true to say, was used to gain an appreciation of programming and indeed, many kids laboriously copied games from magazine listings, thereby gaining some small appreciation of programming.
| Then came the era of the poke; A "poke" was a way to change the
code of a game such that it operated differently, giving you extra lives or
super powers. Pokes were sometimes aimed at data, changing game parameters but
the more sophisticated ones involved programming a sort of "cardiac
bypass" into a game to re-purpose the original code. These were
effectively sophisticated attacks on the code and were often used to overcome
copy protection such as the famous LensLok which was a fiendish optical image
obfuscator that decoded dots on screen into a readable code that you had to
type in. If you didn't have the LensLok device, the program wouldn't run. To
circumvent that one had to remove the whole LensLok code and replace it with
something that looked as though it was working correctly. No small task. |
The ethos of the time was to find out as much as possible about the machine itself. Books with complete ROM diasassemblies, books with pokes for every game written and a healthy magazine offering blurred the line between programmers and gamers because if you were the latter you sooner or later needed the skills of the former,
I followed a similar route into programming, starting with BASIC on a machine with a 1K memory The ZX81. Because of memory restrictions I discovered assembly language programming. It truly is amazing what you can squeeze into 897 bytes of free memory if you get right down to the level of the microprocessor. Necessity really was the mother of invention then.
Slowly however, as computers became “user friendly” many of the kids who had cut their teeth battling with these small systems grew up to become engineers and programmers, myself among them. The computers became appliances that worked when they were turned on, the user became a consumer of software that was created by huge corporations in black-art cube-farms and the knowledge of bare-knuckle programming fell into myth and legend.
As an employer of programmers and having been responsible for many an interview, I have noted that the available pool of really good programmers, the ones with a natural and intuitive understanding of the art of programming are more difficult to find as time goes on. The courses of computer science change little and for me, a computer science degree these days tells me that the recipient qualifies for little more than total re-education in an environment that they’ve never seen, notably, the real world of programming. A personal habit is to ask the normal interview questions and then, at the end of the interview, ask, “So, what projects do you have going at home right now?” If the response is “I grow interesting vegetables! Would you like to see some pictures?” or “I make replica Faberge Eggs!” then it’s extremely unlikely I’ll hire them. If on the other hand, even if the interview went abysmally, they tell me “I’m currently rebuilding my 32 Playstation compute cluster because I want to be able to run epigenomic predictions for my greenhouse plants in which I grow tomatoes that are entirely tended by a robot hydroponics system and pruned by lasers which bye the way also kill all the pests by shooting them out of the sky MWWHAHAHAHA!!!” then I usually can’t get a contract in front of them fast enough. Those really are interesting vegetables!
So, Raspberry Pi was created by, amongst others, the same chap who used the aforementioned fiendish LensLock on his wonderful game Elite to encourage kids to mess with the internals of their computer again in a way that impassions them and encourages this generation to leave the readymade toys in the bedroom and go out and build some stuff on their own. If we carry on without that, we’ll have absolutely no-one but the computer science graduates to rely on.
Friday, April 13, 2012
Apple Trojan Complacency
For so long Apple have crowed that their systems are not susceptible to viruses but this is clearly not the case. It has just been that until now, their hardware was too low on the radar of the cyber criminal to draw attention.
Now I see an even greater risk. The Apple community are and always have been users of a system that proports to be easy, simple and safe. They are unused to being presented with clever malware that looks like genuine high quality trustworthy product. From here on in, the Apple user will be even more vulnerable to attack because of built-in complacency.
Now I see an even greater risk. The Apple community are and always have been users of a system that proports to be easy, simple and safe. They are unused to being presented with clever malware that looks like genuine high quality trustworthy product. From here on in, the Apple user will be even more vulnerable to attack because of built-in complacency.
Thursday, April 12, 2012
SPOT
Smart Personal Objects Technology much hyped a few years back (Wow! almost a decade!) with its inclusion in smart watches etc has clung on to existence in the .Net Micro Framework and is once again coming into prominence with the rising interest in do-it-yourself hardware.
SPOT contains a number of useful APIs aimed at standardising applications, events, timers, images, fonts and a host of other things.
Extensions to SPOT now available in the just released .Net Micro Framework version 4.2 provide layers for hardware devices and give access to facilities such as communications systems like USB and other serial standards. It provides simple access to file systems on SD cards or USB flash drives and enables the use of small displays and touch screens to name but a small part of what it is capable of.
SPOT contains a number of useful APIs aimed at standardising applications, events, timers, images, fonts and a host of other things.
Extensions to SPOT now available in the just released .Net Micro Framework version 4.2 provide layers for hardware devices and give access to facilities such as communications systems like USB and other serial standards. It provides simple access to file systems on SD cards or USB flash drives and enables the use of small displays and touch screens to name but a small part of what it is capable of.
| Like so many good ideas, SPOT was in advance of the capabilities of the hardware of the time, giving a sort of utopian view that couldn't be realised and which was, sadly, vilified by the press and to some extent, the community itself. Now however, with the arrival of open-source hardware like Arduino and Gadgeteer, SPOT is becoming a front line choice for hobbyists and professionals alike. If you're even remotely interested in the maker ethos or have a hankering to create a smart doorbell or a super-smart "talkie toaster" then SPOT will make that task easier. |
Wednesday, April 11, 2012
Visual Studio Stopped Working
This really is getting tiresome. VS 2010 dies lots when doing solution wide search and replace.
Where's the solution then?
Where's the solution then?
First experience Macbook Air as a Windows Development device
I had a little Phillips laptop for several years. It was light and had reasonable battery life. It had a dual core with four gigabytes of memory and a reasonably sized hard-disk and I took it everywhere with me.
A while ago I gave the little laptop away to my son and decided to get a new one. Well, I ummed and ahhed for a long time about what to do. Whether to get a really small one or a powerful beast. I also seriously began to consider whether to go for something like a Lenovo or to get an Apple laptop and re-program it with Windows. It was tough.
My professional life has changed drastically in the last year because I made a concious decision not to continue in the same big finance corporate world I had become used to for nearly a decade. I really wanted to go back to electronics, embedded systems, small interconnected and mobile gizmos; to return to my career roots if you will.
My interest in mobile phone programming has enabled me to touch on iPhone, Android and Windows Phone. I have also taken up Arduino, PIC, Atmel and Gadgeteer programming as well as starting to do electronic and PCB design again. Apple only allows development for their hardware to be done on a Mac. I accepted this and bought a Mac Mini a couple of years ago but I can do most everything else with a PC.
I have however become impressed with Apple hardware. My iPhone and iPad are constant companions and the iPad delayed my desire to buy a laptop for more than six months because I really didn't need one when I had the iPad around. So, i bit the bullet, or should that be the apple?, and bought a Macbook Air. When it arrived, rather than setting it up in dual boot mode I decided to run a Windows 7 install in a virtual machine and retained the OSX-Lion on the real machine. In the last week I've had a chance to test it out and I'm pleasantly surprised that it all works fine.
I have VirtualBox running a Windows 7 install, Visual Studio on that. Then I have XCode on OSX but most importantly, Mono, MonoToch, MonoDroid and all the tools that let me write code in C# on non MS platforms with the framework APIs I am used to. I can even write on Visual Studio and copy directly to Mono and test on another platform.
A while ago I gave the little laptop away to my son and decided to get a new one. Well, I ummed and ahhed for a long time about what to do. Whether to get a really small one or a powerful beast. I also seriously began to consider whether to go for something like a Lenovo or to get an Apple laptop and re-program it with Windows. It was tough.
My professional life has changed drastically in the last year because I made a concious decision not to continue in the same big finance corporate world I had become used to for nearly a decade. I really wanted to go back to electronics, embedded systems, small interconnected and mobile gizmos; to return to my career roots if you will.
My interest in mobile phone programming has enabled me to touch on iPhone, Android and Windows Phone. I have also taken up Arduino, PIC, Atmel and Gadgeteer programming as well as starting to do electronic and PCB design again. Apple only allows development for their hardware to be done on a Mac. I accepted this and bought a Mac Mini a couple of years ago but I can do most everything else with a PC.
I have however become impressed with Apple hardware. My iPhone and iPad are constant companions and the iPad delayed my desire to buy a laptop for more than six months because I really didn't need one when I had the iPad around. So, i bit the bullet, or should that be the apple?, and bought a Macbook Air. When it arrived, rather than setting it up in dual boot mode I decided to run a Windows 7 install in a virtual machine and retained the OSX-Lion on the real machine. In the last week I've had a chance to test it out and I'm pleasantly surprised that it all works fine.
I have VirtualBox running a Windows 7 install, Visual Studio on that. Then I have XCode on OSX but most importantly, Mono, MonoToch, MonoDroid and all the tools that let me write code in C# on non MS platforms with the framework APIs I am used to. I can even write on Visual Studio and copy directly to Mono and test on another platform.
Utter insanity!
http://www.scientificamerican.com/article.cfm?id=tennessee-law-will-allow-teachers-to-challenge-climate-science
The American constitution, so enshrined in the mumbo-jumbo of American politico-religious interpretation has once again failed to separate church and state by allowing a teacher to forward a personal opinion of their interpretation of the universe rather than adhering strictly to scientifically established guidelines.
In Tenessee, one can stand in front of a class of children who are there to learn and tell them that the great purple octopus Mubaa Boobaa that lives in the sky with his horde of one-legged hampsters pushes the clouds around and if you don't make him happy by reciting his scriptures and standing on one leg for three hours a day in honor of his hampsters he will send a tornado to blow away your house. You won't even get prosecuted or fired for it!
My hopes for western civilization dwindle daily.
The American constitution, so enshrined in the mumbo-jumbo of American politico-religious interpretation has once again failed to separate church and state by allowing a teacher to forward a personal opinion of their interpretation of the universe rather than adhering strictly to scientifically established guidelines.
In Tenessee, one can stand in front of a class of children who are there to learn and tell them that the great purple octopus Mubaa Boobaa that lives in the sky with his horde of one-legged hampsters pushes the clouds around and if you don't make him happy by reciting his scriptures and standing on one leg for three hours a day in honor of his hampsters he will send a tornado to blow away your house. You won't even get prosecuted or fired for it!
My hopes for western civilization dwindle daily.
C# Growing fast
For years, and indeed, even now, Java has been top of the heap when it comes to number of lines of code produced world wide. C# however has been catching up and is now snapping at the heels of the well established languages according to the TIOBE index.
C#'s original mandate, according to Anders Hjelsberg, was to make a simple and well structured language without the complications of C++'s multiple inheritance nightmare. Those of you that remember or perhaps still use C++ will know the pain of ATL and all that jazz. Now if you tell me you understand it then ok. If on the other hand you say that you like it I'll be inclined to question your sanity.
For me, it makes the most obscurely unreadable incomprehensible code that ever was written outside of an obfuscation contest.
As you may know from this blog, C# is now a prime language, not only on Windows platforms but also, through the auspices of the Novell / Mono / Xamarin effort a language available to developers of iPhone and Android platforms. It's also a great choice for stand-alone embedded systems with the .Net Micro Framework enabling C# on Gadgeteer and other platforms.
I'd love to see C# neck and neck with Java as a language choice and who knows, maybe one day, it will topple that venerable and, lets face it, equally managed language from the top of the index.
C#'s original mandate, according to Anders Hjelsberg, was to make a simple and well structured language without the complications of C++'s multiple inheritance nightmare. Those of you that remember or perhaps still use C++ will know the pain of ATL and all that jazz. Now if you tell me you understand it then ok. If on the other hand you say that you like it I'll be inclined to question your sanity.
For me, it makes the most obscurely unreadable incomprehensible code that ever was written outside of an obfuscation contest.
As you may know from this blog, C# is now a prime language, not only on Windows platforms but also, through the auspices of the Novell / Mono / Xamarin effort a language available to developers of iPhone and Android platforms. It's also a great choice for stand-alone embedded systems with the .Net Micro Framework enabling C# on Gadgeteer and other platforms.
I'd love to see C# neck and neck with Java as a language choice and who knows, maybe one day, it will topple that venerable and, lets face it, equally managed language from the top of the index.
Holy Flying Monkeys!
Took delivery of a couple of items from GHI-Electronics today and in the box was this little fellow.
He has elasticated twangy arms and can be propelled at great speed into the outer atmosphere, (well, across the shed really)
Thank you GHI!
He has elasticated twangy arms and can be propelled at great speed into the outer atmosphere, (well, across the shed really)
Thank you GHI!
Thursday, April 05, 2012
Quantum computer built inside a diamond
Despite the hope we have for vast computing power, I think that quantum computing is still a long long way out there toward the horizon. For quantum computing to be considered mainstream its no good to have success in the lab. It needs to be in your pocket on your phone.
I make a bet with myself that a practical commercial quantum computing solution for the masses is more than ten years away.
Here's hoping I'm wrong.
Quantum computer built inside a diamond
I make a bet with myself that a practical commercial quantum computing solution for the masses is more than ten years away.
Here's hoping I'm wrong.
Quantum computer built inside a diamond
No renewal...
I got notification the other day that my MVP status hasn't been renewed. This would have been year nine. Well, I suppose really that my community contributions have dropped off this last year, due in no small part to the need to spend vast amounts of time on family matters instead of answering posts in the various fora that MS deems important. I used to derive vast pleasure from my MVP status but recently, all I really looked forward to was the free MSDN subscription that came along with it.
I'm hoping that my children's personal problems can be drawn to a close in the next few months so I can have the spare time to post on technical topics again.
Still, don't hesitate to mail me requests or questions as before.
I'm hoping that my children's personal problems can be drawn to a close in the next few months so I can have the spare time to post on technical topics again.
Still, don't hesitate to mail me requests or questions as before.
Monday, March 26, 2012
On the bleeding edge of embedded app development
Its been along time since I found myself literally flying the edge of the envelope while developing applications. My work days for the week so far, and I include the entire weekend, have been in the pursuit of answers to problems in developing for NETMF 4.2 on a Fez Cerb40 system.
This great little machine boasts memory and IO to spare, it has UARTS and SPI connections, USB and general purpose IO and comes in a 40 in DIL package the same size as an old Zilog Z-80 processor.
It runs the .Net micro framework and can do a bunch of sophisticated stuff. The ARM processor is fast and competent and is going to spend its life inside an "object" that is smaller than an old-fashioned Nokia phone and will connect to a webservice once a day for however long its Lithium Polymer battery lasts and do cool stuff.
I feel like I'm back in the 1980's when developing was a challenge that included counting the number of bytes left in the system and wondering where you could squeeze a table of 90 values in. I feel like my skills as a software architect who feels quite happy with a massive database and a credit-derivative trading system are wholly inadequate to the challenge of making a colour LCD screen 2 inches across convey meaningful information to my user, although, i'll have a bloody good go!
Twenty five years ago I worked to create peripherals for Sinclair Spectrum home computers and various stand-alone gizmos with Z-80 and 8051 style processors. I find that in the intervening years. everything has got smaller, faster and more complicated inasmuch as I never had an IP stack to deal with but its all just the same!
I can tie a couple of transistors to a processor and drive a motor and I can drive a couple of hundred LEDs to make a cool light display. At the end of the day though, my success depends on my ability to take absolutely brand-new technology and adapt it so that anyone, from my six year old son to my eighty year old dad can look at it, understand it and use it to enhance their lives.
Ups and downs can be a good thing if you like roller-coasters!
This great little machine boasts memory and IO to spare, it has UARTS and SPI connections, USB and general purpose IO and comes in a 40 in DIL package the same size as an old Zilog Z-80 processor.
It runs the .Net micro framework and can do a bunch of sophisticated stuff. The ARM processor is fast and competent and is going to spend its life inside an "object" that is smaller than an old-fashioned Nokia phone and will connect to a webservice once a day for however long its Lithium Polymer battery lasts and do cool stuff.
I feel like I'm back in the 1980's when developing was a challenge that included counting the number of bytes left in the system and wondering where you could squeeze a table of 90 values in. I feel like my skills as a software architect who feels quite happy with a massive database and a credit-derivative trading system are wholly inadequate to the challenge of making a colour LCD screen 2 inches across convey meaningful information to my user, although, i'll have a bloody good go!
Twenty five years ago I worked to create peripherals for Sinclair Spectrum home computers and various stand-alone gizmos with Z-80 and 8051 style processors. I find that in the intervening years. everything has got smaller, faster and more complicated inasmuch as I never had an IP stack to deal with but its all just the same!
I can tie a couple of transistors to a processor and drive a motor and I can drive a couple of hundred LEDs to make a cool light display. At the end of the day though, my success depends on my ability to take absolutely brand-new technology and adapt it so that anyone, from my six year old son to my eighty year old dad can look at it, understand it and use it to enhance their lives.
Ups and downs can be a good thing if you like roller-coasters!
Monday, March 19, 2012
Macbook and Keynote Presenter
What a job trying to connect these two.
Not really the fault of either the mac or the presenter remote running on my iPhone but a direct result of the hotel's really annoying wireless network policy.
The network logs out as soon as you stop using the browser so you have to log back in again. The information is never retained so if the phone goes to sleep after a few minutes the link between remote and mac is lost.
Sadly I don't see a way to use the remote via bluetooth. This seems to work if the presentation is running on an ipad but not on the mac.
In the end I discovered that I can create a wireless network on the mac, log into it with the phone, link the remote with keynote and (phew) it all works.
Not really the fault of either the mac or the presenter remote running on my iPhone but a direct result of the hotel's really annoying wireless network policy.
The network logs out as soon as you stop using the browser so you have to log back in again. The information is never retained so if the phone goes to sleep after a few minutes the link between remote and mac is lost.
Sadly I don't see a way to use the remote via bluetooth. This seems to work if the presentation is running on an ipad but not on the mac.
In the end I discovered that I can create a wireless network on the mac, log into it with the phone, link the remote with keynote and (phew) it all works.
SoftwarePassion
If you want to check out the tweets from the SoftwarePassion conference where I will be speaking in the first slot tomorrow morning check out the hash tag #spse2012
This is a great little conference. Many speakers here from all over the world and the audience here really are getting their money's worth.
I just took in a great session by Nate Schutta and there is a session by Roy Osherove in a moment.
Scandinavian tech seems to be alive and kicking..
This is a great little conference. Many speakers here from all over the world and the audience here really are getting their money's worth.
I just took in a great session by Nate Schutta and there is a session by Roy Osherove in a moment.
Scandinavian tech seems to be alive and kicking..
Friday, March 16, 2012
Electronics!
Even though I talk most about Software my true love and career training was, and is, in the fusion of electronics and code that can produce a tangible thing that fulfils a function.
Several months ago I made a decision to return to the career That started my professional life, turning down lucrative software contracts and studying up on the latest developments in electronic componentry. I was pleasantly surprised to find that aside from speed and size, not a whole lot has changed and I was able to readapt my thinking to the latest digital electronic systems with no problems.
A chance visit with friends that I had worked with for several years opened a door for me onto a project creating the hardware and software for a large and rather beautiful architects model designed to show off the client's smart grid technologies. Last week, our model was seen by many at the MIPIM 2012 property development conference in Cannes France.
The model featured buildings illuminated by hundreds of RGB LEDs showing sequences of visual effects which illustrate how energy is generated, transferred, controlled and stored in a futurists dream town. The final client, Bouygues Immobilier, a prominent French company, actually build whole towns with these capabilities. I think it true to say that the final rendition was one of a kind at the show and I admit that even though the design was mine the job was very much a team effort from some great folks with whom I worked.
The whole project was controlled by a single Gadgeteer embedded system which read the sequence data from a USB key and played it back on all the lights. In addition to the model itself, the system communicated via http to a server that showed content on four iPads that were available to viewers and that provided further explanation of the model.
As the construction was going along I took a few photos.
Bouygues Immobilier: Client
Sensorit: Design and development
Archi Mini: Physical design and construction
Bouygues eLab: electronic hardware construction and installation
Symetrix: Content design and iPad client/server system.
Daraize Technologies: Software and hardware design, preliminary hardware construction and prototyping.
Thanks To: Dick Lantim, Fabrizio Musolino, Guillaume Lectez, Antoine Surmont, Jeremy Powell, Charles Powell.
Several months ago I made a decision to return to the career That started my professional life, turning down lucrative software contracts and studying up on the latest developments in electronic componentry. I was pleasantly surprised to find that aside from speed and size, not a whole lot has changed and I was able to readapt my thinking to the latest digital electronic systems with no problems.
A chance visit with friends that I had worked with for several years opened a door for me onto a project creating the hardware and software for a large and rather beautiful architects model designed to show off the client's smart grid technologies. Last week, our model was seen by many at the MIPIM 2012 property development conference in Cannes France.
The model featured buildings illuminated by hundreds of RGB LEDs showing sequences of visual effects which illustrate how energy is generated, transferred, controlled and stored in a futurists dream town. The final client, Bouygues Immobilier, a prominent French company, actually build whole towns with these capabilities. I think it true to say that the final rendition was one of a kind at the show and I admit that even though the design was mine the job was very much a team effort from some great folks with whom I worked.
The whole project was controlled by a single Gadgeteer embedded system which read the sequence data from a USB key and played it back on all the lights. In addition to the model itself, the system communicated via http to a server that showed content on four iPads that were available to viewers and that provided further explanation of the model.
As the construction was going along I took a few photos.
The initial layout
Just some of the wiring
The Gadgeteer and Fabrizio, the chap responsible for media design.
Intermediate construction phase with the "road" test program running.
Final form, installed at MIPIM in Cannes on the Bouygues stand.
NEW
Video.
This video was intended for my six year old son who asked why I had spent so much time away and when I would be coming home. The voiceover is simplistic for that reason.
Bouygues Immobilier: Client
Sensorit: Design and development
Archi Mini: Physical design and construction
Bouygues eLab: electronic hardware construction and installation
Symetrix: Content design and iPad client/server system.
Daraize Technologies: Software and hardware design, preliminary hardware construction and prototyping.
Thanks To: Dick Lantim, Fabrizio Musolino, Guillaume Lectez, Antoine Surmont, Jeremy Powell, Charles Powell.
Saturday, March 10, 2012
Mac trash won't empty?
I've had a trash can on my Mac that refused to empty for about a year. The reason being that a folder in the trash refused to disappear no matter what I did.
I followed all the Mac guides for what to do when this happens, none of them worked.
In the end I plugged the disk, my media store, into my Windows PC, ran Checkdisk; to no avail, then tried to manually delete the files.
It turns out that the Mac is happy to put nested directories with ridiculously long file names onto a Fat32 format disk thereby violating the MAX_PATH rules and rendering portions of the disk forever undeletable.
In the end I had to laboriously rename directories from 2345523000802340980980232452352398098123423 to "s" and eventually managed to arrive at a final directory name I could actually delete.
So. When your Mac file system seems screwed, fix it with a PC!
I followed all the Mac guides for what to do when this happens, none of them worked.
In the end I plugged the disk, my media store, into my Windows PC, ran Checkdisk; to no avail, then tried to manually delete the files.
It turns out that the Mac is happy to put nested directories with ridiculously long file names onto a Fat32 format disk thereby violating the MAX_PATH rules and rendering portions of the disk forever undeletable.
In the end I had to laboriously rename directories from 2345523000802340980980232452352398098123423 to "s" and eventually managed to arrive at a final directory name I could actually delete.
So. When your Mac file system seems screwed, fix it with a PC!
Friday, February 24, 2012
How many Gadgeteers did you blow up today?
I managed (seemingly) to kill two of them.
In both cases, I had tried to upload code which just didn't get there so I hit the reset button on the Spider to get it to load.
The first time this happened I had just changed a hardware extension that I was working on and, although I had actually hit the reset, I associated the problem with the hardware.
The symptoms were that the screen came up with the usual boot-up blah blah and then seemed to "melt" in a computerised form of tunnel vision to what ended up as a "Gray screen of death"
Te upload attempt, and indeed, all subsequent ones failed. I put my hand up fairly quickly and told my client I had killed an expensive chunk of hardware and he smiled and gave me another.
Later I did something pretty similar, couldn't upload, hit the reset.... Gray screen of death.. AARRGGHH
Bob was not a happy chap.
Gadgeteer number three was working still and I took the other ones with me to see a friend who works at MS Paris. One of his guests said "Oh yeah, that happens all the time, just erase it, stick on a bootloader and update the firmware"
Well, we did this and ended up with three happy healthy FEZ Spider units again.
The reason that this seems to happen is that under certain circumstances, that seem to be more often than one would like, the programming voltage for the EEPROM is hit and a few bytes or even bits of firmware memory can be written over. This results more often than not in a total system lockup.
The moral of the story is that if your Gadgeteer seems to be fried, don't make a keyfob out of it or chuck it in the bin until after erasing and uploading a new bootloader / firmware package has failed.
Happy hacking!!
In both cases, I had tried to upload code which just didn't get there so I hit the reset button on the Spider to get it to load.
The first time this happened I had just changed a hardware extension that I was working on and, although I had actually hit the reset, I associated the problem with the hardware.
The symptoms were that the screen came up with the usual boot-up blah blah and then seemed to "melt" in a computerised form of tunnel vision to what ended up as a "Gray screen of death"
Te upload attempt, and indeed, all subsequent ones failed. I put my hand up fairly quickly and told my client I had killed an expensive chunk of hardware and he smiled and gave me another.
Later I did something pretty similar, couldn't upload, hit the reset.... Gray screen of death.. AARRGGHH
Bob was not a happy chap.
Gadgeteer number three was working still and I took the other ones with me to see a friend who works at MS Paris. One of his guests said "Oh yeah, that happens all the time, just erase it, stick on a bootloader and update the firmware"
Well, we did this and ended up with three happy healthy FEZ Spider units again.
The reason that this seems to happen is that under certain circumstances, that seem to be more often than one would like, the programming voltage for the EEPROM is hit and a few bytes or even bits of firmware memory can be written over. This results more often than not in a total system lockup.
The moral of the story is that if your Gadgeteer seems to be fried, don't make a keyfob out of it or chuck it in the bin until after erasing and uploading a new bootloader / firmware package has failed.
Happy hacking!!
Thursday, February 16, 2012
Safari STINKS!
Trying to use Safari on my Macbook Air is nigh on impossible. It keeps on "crashing" inasmuch as it gets half way through loading a page and just stops what its doing.
I can't be bothered to troubleshoot it so now my main browser is Chrome.
I can't be bothered to troubleshoot it so now my main browser is Chrome.
Monday, February 13, 2012
Follow me...
My blog and my web site get a lot of hits every day. I can see them on the statistics. The problem is that I'm never sure whether the page has been read or just hit by some bot. Now I know that a certain number of people do read the blog and whether you do so on a regular basis or just visit it via my web site or find it by accident is a question I'd like to answer.
I have thought of a number between 0 and 200. Follow my blog and the n'th follower who coincides with that number will recieve a $20 iTunes gift certificate from me. I'll announce the winner as soon as the magic number is reached.
I have thought of a number between 0 and 200. Follow my blog and the n'th follower who coincides with that number will recieve a $20 iTunes gift certificate from me. I'll announce the winner as soon as the magic number is reached.
Gadgeteer PWM
Pulse width modulation is a digital "trick" to fool analogue devices into thinking that a certain level of voltage is present on an otherwise digital IO pin.
Essentially, the system has a frequency, we'll say 100 hertz for argument's sake, and if the output pin remains high for the entire 100th of a second, that can be considered as the maximum output of the pin.
If however it remains high for only 50% of the time and is low the rest of the time than we can consider that the output is at 50% power.
Changing the pulse width within the 100th of a second time slice enables us to create varying levels of power and even synthesize waveforms if we so desire.
PWM on the gadgeteer is ridiculously simple. There are a number of ports that are PWM enabled. For example, the FEZ Spider has PWM on socket number 8 amongst others.
To set-up PWM on any PWM enabled pin we simply need to declare the PWM controller like so:
private PWMOutput pwm = null;
Then in "ProgramStarted" get the PWMOutput controller:
pwm = this.extender.SetupPWMOutput(Gadgeteer.Socket.Pin.Nine);
Then, to set the power of the pulses:
pwm.Set(x,p);
where X is the overall base frequency of the PWM signal and p is the value 0-100 of the percentage of power to set.
The video below shows Pulse Width Modulation in action on my oscilloscope.
I wired some LEDS up to the Gadgeteer and they changed brightness like so:
Essentially, the system has a frequency, we'll say 100 hertz for argument's sake, and if the output pin remains high for the entire 100th of a second, that can be considered as the maximum output of the pin.
If however it remains high for only 50% of the time and is low the rest of the time than we can consider that the output is at 50% power.
Changing the pulse width within the 100th of a second time slice enables us to create varying levels of power and even synthesize waveforms if we so desire.
PWM on the gadgeteer is ridiculously simple. There are a number of ports that are PWM enabled. For example, the FEZ Spider has PWM on socket number 8 amongst others.
To set-up PWM on any PWM enabled pin we simply need to declare the PWM controller like so:
private PWMOutput pwm = null;
Then in "ProgramStarted" get the PWMOutput controller:
pwm = this.extender.SetupPWMOutput(Gadgeteer.Socket.Pin.Nine);
Then, to set the power of the pulses:
pwm.Set(x,p);
where X is the overall base frequency of the PWM signal and p is the value 0-100 of the percentage of power to set.
The video below shows Pulse Width Modulation in action on my oscilloscope.
I wired some LEDS up to the Gadgeteer and they changed brightness like so:
Tuesday, February 07, 2012
UsbHost.USBDriveConnected
Had a little problem with the Gadgeteer yesterday. I was using the UsbHost to read files from a pendrive and after copying files to the drive, verifying that the files were present and plugging it into the Gadgeteer I discovered that the event which is supposed to fire (USBDriveConnected) never did!
After a lot of head scratching I discovered that the pendrive was formatted in NTFS. The UsbHost software only recognises FAT format drives so be sure to get that bit right when you transfer files to your gadgeteer.
After a lot of head scratching I discovered that the pendrive was formatted in NTFS. The UsbHost software only recognises FAT format drives so be sure to get that bit right when you transfer files to your gadgeteer.
Monday, February 06, 2012
Gadgeteer
Simple, brilliant, works... When you can find any information at-all. I can't find a single example of how to use the usbHost.USBDriveConnected event which doesn't seem to fire anyway.
Hey Microsoft. The documentation could do with looking at!!
Hey Microsoft. The documentation could do with looking at!!
Software Passion 2012 in Göteborg Sweden
Come along to the Software Passion Summit in Göteborg Sweden on 19th and 20th of March 2012. I'll be speaking on Tuesday the 20th.
You can get a 10% discount by booking through this link and using the promo code "BOB" when you book.
See you there!
You can get a 10% discount by booking through this link and using the promo code "BOB" when you book.
See you there!
Thursday, February 02, 2012
I am the proud owner of a Macbook Air
Its sooo thin!!! I'm just installing Windows 7 and Visual Studio in a VirtualBox VM ready for Techdays Paris next week.
I'm rather hoping that putting the apple devtools, mono, monotouch and monodroid as well as VS and WP7 SDKs wont overload it.
- Posted using BlogPress from my iPhone
I'm rather hoping that putting the apple devtools, mono, monotouch and monodroid as well as VS and WP7 SDKs wont overload it.
- Posted using BlogPress from my iPhone
Thursday, January 19, 2012
Kodak, a case of the Xerox's
When Bill Gates was a young programmer he worked for Steve Jobs and Apple. This was when Apple had begun work on the Macintosh and the first commercially available GUI.
Apple didn't however invent the Windows, Icons, Mouse and Pointer WIMP system. Xerox did at their PARC facility in Palo Alto where a young Steve Jobs was mooching around seeing what the big boys were doing.
The truth was that the bosses at Xerox didn't think much of WIMPS and thought it was a stupid gimmick. Certainly no good for real computers so they basically let Jobs walk out with the ideas for free. Later, after Microsoft had developed Windows 1.0 Jobs let fly at Gates, accusing him of robbing ideas from Apple whereupon the shrewd Gates replied along the lines of: "We both went into our neighbor's house to rob him. You got the television and I got the stereo"
Kodak were one of the first companies to develop digital imaging. The bosses of the company however were confident in the fact that film emulsions would always be higher resolutions and richer color than digital sensors could produce. Oh how wrong they were and how much that lack of foresight cost them.
There must be a moral to this story somewhere. Perhaps it is that no boss should ever let go of his options when it comes to an interesting but seemingly unpromising technology.
Apple didn't however invent the Windows, Icons, Mouse and Pointer WIMP system. Xerox did at their PARC facility in Palo Alto where a young Steve Jobs was mooching around seeing what the big boys were doing.
The truth was that the bosses at Xerox didn't think much of WIMPS and thought it was a stupid gimmick. Certainly no good for real computers so they basically let Jobs walk out with the ideas for free. Later, after Microsoft had developed Windows 1.0 Jobs let fly at Gates, accusing him of robbing ideas from Apple whereupon the shrewd Gates replied along the lines of: "We both went into our neighbor's house to rob him. You got the television and I got the stereo"
Kodak were one of the first companies to develop digital imaging. The bosses of the company however were confident in the fact that film emulsions would always be higher resolutions and richer color than digital sensors could produce. Oh how wrong they were and how much that lack of foresight cost them.
There must be a moral to this story somewhere. Perhaps it is that no boss should ever let go of his options when it comes to an interesting but seemingly unpromising technology.
ASP.NET button mouseover image change in javascript
The story so far: I wanted to do something very simple. I have a web-site that needs multi language capabilities so, I store all my site text in a database and pull it out using the country code of the client browser. This means for example that I could have a button with "About" in English and "A Propos" in French. I also wanted a mouseover effect for my buttons to provide a little bit of visual feedback so I created button background slices with appropriate blank backgrounds with the intention of updating the button text in the manner mentioned above.
Well. An ASP.Net image button does the mouseover just fine but not the text. It can't have text. With a little bit of cajoling one can make the ASP.net Button control have a background so that one can indeed update the text. The problem was that there seems to be no way in the world to make the mouseover behaviour work with the Button control. Not using Framework 4.0 anyways.
Microsoft recently modified the way attribute encoding is done in Framework 4.0. This means that if you if you put something like:
onmouseover="alert('boo!')
The 4.0 framework however encodes this as:
onmouseover="alert('boo!')"
I have no clue why but if you start the web project as framework 4.0 and use javascript inline, the server falls over at the encoded apostrophes. If however you switch to framework 3.5 and then back to 4.0 again, something magic happens and the javascript sees the ' as an apostrophe.
In order to make my ASP.Net Button control with image background mouseover behaviour work correctly, here's what I did:
#1 Switch the project to framework 3.5 then back to Framework 4.0
#2 Declare your button:
<asp:Button ID="AboutButton"
Style="background-image:url('images/aboutoff1.jpg'); text-align:left; background-color:Transparent; cursor:hand; background-repeat:no-repeat; background-position:left; font-family:Verdana, Sans-Serif; font-size:28pt; font-weight:bolder;"
Runat="server"
Height="53px"
BorderStyle="None"
Text="About"
Width="352px"
#3 declare your mouseover behaviour in javascript
onmouseover="document.getElementById('ctl00_AboutButton').style.backgroundImage='url(images/aboutover.jpg)';"
onmouseout="document.getElementById('ctl00_AboutButton').style.backgroundImage='url(images/aboutoff.jpg)';"/>
Summary
Traditionally, asp.net controls have been a bit closed but relatively easy to coerce. A bit of wc3 compliant Javascript helps out enormously when the ASP control of choice needs a tweak. Ok, one could roll up one's sleeves and write an ASP.net custom control and render the HTML yourself with no problem but it so much easier to mix and match ASP and javascript.
Well. An ASP.Net image button does the mouseover just fine but not the text. It can't have text. With a little bit of cajoling one can make the ASP.net Button control have a background so that one can indeed update the text. The problem was that there seems to be no way in the world to make the mouseover behaviour work with the Button control. Not using Framework 4.0 anyways.
Microsoft recently modified the way attribute encoding is done in Framework 4.0. This means that if you if you put something like:
onmouseover="alert('boo!')
The 4.0 framework however encodes this as:
onmouseover="alert('boo!')"
I have no clue why but if you start the web project as framework 4.0 and use javascript inline, the server falls over at the encoded apostrophes. If however you switch to framework 3.5 and then back to 4.0 again, something magic happens and the javascript sees the ' as an apostrophe.
In order to make my ASP.Net Button control with image background mouseover behaviour work correctly, here's what I did:
#1 Switch the project to framework 3.5 then back to Framework 4.0
#2 Declare your button:
<asp:Button ID="AboutButton"
Style="background-image:url('images/aboutoff1.jpg'); text-align:left; background-color:Transparent; cursor:hand; background-repeat:no-repeat; background-position:left; font-family:Verdana, Sans-Serif; font-size:28pt; font-weight:bolder;"
Runat="server"
Height="53px"
BorderStyle="None"
Text="About"
Width="352px"
#3 declare your mouseover behaviour in javascript
onmouseover="document.getElementById('ctl00_AboutButton').style.backgroundImage='url(images/aboutover.jpg)';"
onmouseout="document.getElementById('ctl00_AboutButton').style.backgroundImage='url(images/aboutoff.jpg)';"/>
Summary
Traditionally, asp.net controls have been a bit closed but relatively easy to coerce. A bit of wc3 compliant Javascript helps out enormously when the ASP control of choice needs a tweak. Ok, one could roll up one's sleeves and write an ASP.net custom control and render the HTML yourself with no problem but it so much easier to mix and match ASP and javascript.
Sunday, January 15, 2012
Star Trek X-Prize
Well, it had to happen. Strangely I was just expounding the possibilities of such a device to my wife, Chrissy, just a few days ago. Qualcom and the X-Prize organisation have put up a ten-million dollar prize for the team who succeeds in creating a "Medical Tricorder" similar to the type used by Doctor Leonard McCoy in the original Star Trek series.
The device should weigh no more than 2.2 kilos so bulkier than that of the good doctor, should be able to scan and analyse a patients vital signs and to diagnose fifteen conditions over a short period of use.
My own view is that this sort of device is well within reach without a vast amount of research. Given that modern smartphones sport multi-processor CPU's, huge memory, internet connectivity and are already packed with peripherals I see no problem in adding to the range of peripherals available and getting the prize.
I would begin with a normal smartphone architecture, add an infra-red camera, an ultrasound that could do scanning using the accelerometers for position referencing. I would interface in an add-on wrist sphygmomanometer (blood pressure doohickey) via a bluetooth connection, similarly a blood-oxygen clip to go on an earlobe. A super sensitive microphone and a nice DSP for listening to lungs and heartbeat with decent frequency analysis software for listening to heart valve noises, gas analysis and a set of really good macro lenses for looking into eyes that could even double as a microscope.
Imagine all that in a SIRI style relationship with a back-end system capable of doing differential diagnosis based on the experiences of a nice fat medical database and you're done!
Hey, somebody give me a job running the team and I'll snag the prize for you!
(Seriously!)
The device should weigh no more than 2.2 kilos so bulkier than that of the good doctor, should be able to scan and analyse a patients vital signs and to diagnose fifteen conditions over a short period of use.
My own view is that this sort of device is well within reach without a vast amount of research. Given that modern smartphones sport multi-processor CPU's, huge memory, internet connectivity and are already packed with peripherals I see no problem in adding to the range of peripherals available and getting the prize.
I would begin with a normal smartphone architecture, add an infra-red camera, an ultrasound that could do scanning using the accelerometers for position referencing. I would interface in an add-on wrist sphygmomanometer (blood pressure doohickey) via a bluetooth connection, similarly a blood-oxygen clip to go on an earlobe. A super sensitive microphone and a nice DSP for listening to lungs and heartbeat with decent frequency analysis software for listening to heart valve noises, gas analysis and a set of really good macro lenses for looking into eyes that could even double as a microscope.
Imagine all that in a SIRI style relationship with a back-end system capable of doing differential diagnosis based on the experiences of a nice fat medical database and you're done!
Hey, somebody give me a job running the team and I'll snag the prize for you!
(Seriously!)
Saturday, January 14, 2012
Virtual Box VM portability
I am researching possibilities for my new portable development setup that I will be installing on my new laptop. Experience has shown me that weight and battery life are more important than processor power for laptops I use in demos and presentations so I have ordered a Macbook Air 13" system.
I will be leaving OSX intact on the machine and probably dual-booting Windows 7 too but as an experiment I looked into the issues of using virtual machines copied between the two OS's by copying my Windows 8 Developer Preview VM from the PC to my recently upgraded Mac Mini to see if Virtual Box could indeed run a straight copy on both systems.
I can happily report that it does, however there is a small problem of keyboard interaction inasmuch as the VirtualBox VM running on the Mac doesen't seem to be getting the same scan codes from the keyboard via the Mac as it does via the PC. The VM on the Mac will not respond to the Start key for example and so it can be problematic switching applications in Metro on the Mac based VM.
I'll continue to do more on this as time goes on but if you have any experience in theese matters please feel free to comment here or to send me a friend request on the facebook link seen on this page where we can discuss your experiences in more detail.
I will be leaving OSX intact on the machine and probably dual-booting Windows 7 too but as an experiment I looked into the issues of using virtual machines copied between the two OS's by copying my Windows 8 Developer Preview VM from the PC to my recently upgraded Mac Mini to see if Virtual Box could indeed run a straight copy on both systems.
I can happily report that it does, however there is a small problem of keyboard interaction inasmuch as the VirtualBox VM running on the Mac doesen't seem to be getting the same scan codes from the keyboard via the Mac as it does via the PC. The VM on the Mac will not respond to the Start key for example and so it can be problematic switching applications in Metro on the Mac based VM.
I'll continue to do more on this as time goes on but if you have any experience in theese matters please feel free to comment here or to send me a friend request on the facebook link seen on this page where we can discuss your experiences in more detail.
Thursday, January 12, 2012
The shame of Apollo
There are ten billion earth-like planets in our galaxy and we haven't even got a moon-base! The US have dropped the ball by doing ultra-safe ultra-expensive space exploration and have lost thirty years of initiative that we could have had to safeguard and enrich our species.
Friday, January 06, 2012
Code Year
This is a great idea. Shame its just JavaScript though. This is something I've thought necessary for a long time. Perhaps something more generic would be a useful thing to do as well.
I've been following the progress of the RaspberryPi foundation as you probably know. The UK government was roundly chastised by Sergey Brin for failing to ensure that high school students had programming skills. I've been desperately trying to convince my son to program rather than play games all weekend and I am utterly convinced by the argument of "Program or be programmed"
I might follow it just to see.
I've been following the progress of the RaspberryPi foundation as you probably know. The UK government was roundly chastised by Sergey Brin for failing to ensure that high school students had programming skills. I've been desperately trying to convince my son to program rather than play games all weekend and I am utterly convinced by the argument of "Program or be programmed"
I might follow it just to see.
Wednesday, January 04, 2012
Its all just ones and zeros
Visual studio 2010 running on Octogig editing an Android app using MonoDroid.
A second instance of Visual Studio editing an Arduino project
A virtual machine running Windows 8 and a new Metro sample in development
MonoDevelop running on the Mac doing the iPhone version of the aforementioned Android App
I never got diversity like this working in a bank!
A second instance of Visual Studio editing an Arduino project
A virtual machine running Windows 8 and a new Metro sample in development
MonoDevelop running on the Mac doing the iPhone version of the aforementioned Android App
I never got diversity like this working in a bank!
Tuesday, January 03, 2012
Welcome to 2012! Granular Programming.
First of all, I wish a happy and prosperous new year to all readers. Here's hoping that 2012 will be far less "interesting" than 2011 was. I guess we can only hope?
So, today's topic is "granular programming" which is a term that does exist at the moment but which I believe is the term that is underused in the context of modern software architectures. For some time now, I have been using a technique which I like to call granular programming in which metadata and declarative programming techniques allow the construction of a working architecture from objects that may not seem to be related to one another at first.
A prime example of this is something that you may be aware of may not use in your day to day work simply because it's built into the .net framework, and has been since day one and that functions very well on its own, most of the time with no intervention whatsoever from you. I'm speaking of the type converter system that in .net enables conversion of some binary value such as integers or floats to a string of characters suitable for editing in a TextBox and back again from a string of characters to a binary value. Types in .net are often associated with the type converter specifically designed for them at a very low level. Often, in the framework code itself, the association of a type converter with some low level type has been made in advance by Microsoft.
When a type converter is needed by the system it will be loaded, used and then discarded automatically in response to a specific need. In code, we can specify which typeconverter is required using the attribute designed for that purpose. In WPF, we can specify a static, or dynamic, resource in XAML creates an instance of our "helper class" which is then used by the rest of the code. A great example of this in WPF would be a value converter.
This type of "on-demand" instantiation of helper classes is something that I use in my own code more and more. One interesting aspect of this principle if that its possible to create applications that can be reconfigured and extended without recompiling the application itself.
I will come back to this subject in the near future up in the meantime, if you have any ideas or comments about this subject please feel free to voice them here.
So, today's topic is "granular programming" which is a term that does exist at the moment but which I believe is the term that is underused in the context of modern software architectures. For some time now, I have been using a technique which I like to call granular programming in which metadata and declarative programming techniques allow the construction of a working architecture from objects that may not seem to be related to one another at first.
A prime example of this is something that you may be aware of may not use in your day to day work simply because it's built into the .net framework, and has been since day one and that functions very well on its own, most of the time with no intervention whatsoever from you. I'm speaking of the type converter system that in .net enables conversion of some binary value such as integers or floats to a string of characters suitable for editing in a TextBox and back again from a string of characters to a binary value. Types in .net are often associated with the type converter specifically designed for them at a very low level. Often, in the framework code itself, the association of a type converter with some low level type has been made in advance by Microsoft.
When a type converter is needed by the system it will be loaded, used and then discarded automatically in response to a specific need. In code, we can specify which typeconverter is required using the attribute designed for that purpose. In WPF, we can specify a static, or dynamic, resource in XAML creates an instance of our "helper class" which is then used by the rest of the code. A great example of this in WPF would be a value converter.
This type of "on-demand" instantiation of helper classes is something that I use in my own code more and more. One interesting aspect of this principle if that its possible to create applications that can be reconfigured and extended without recompiling the application itself.
I will come back to this subject in the near future up in the meantime, if you have any ideas or comments about this subject please feel free to voice them here.
Tuesday, December 27, 2011
Idiotic Eureka Moment!
I listen to Frank Skinner's podcasts on Absolute Radio in which he often speaks of the "Idiotic Eureka Moment" which is when you realise something, usually years later, that should have been obvious from the start.
I recently bought a WHITE iphone 4S. DUH!! What took me so long to realise??
I recently bought a WHITE iphone 4S. DUH!! What took me so long to realise??
Monday, December 26, 2011
Raspberry PI for Christmas?
I've mentioned this before on my blog but you still may not be aware of it. Created in response to a need for university applicants with higher information technology skills than were being seen at induction times, this credit card sized computer is designed to allow young people to both understand and program a simple Computer System at school or at home. This tiny machine has input output, a high resolution HDMI graphics chip, memory and USB connections and, wait for it, and an intended retail price of only $25!
Never, since the days of the ZX 81, has mass market computing been so accessible and so cheap. Designed in the town of Cambridge where the famous ZX 80, ZX81 and ZX Spectrum computers came from, this machine has been designed by someone who, like me, began their career programming for these classic devices.
The Raspberry Pi computer currently runs the linux operating system and use as an ARM processor of the same type as those found in mobile phones. With either 128 or 256 MB of RAM this might be considered small as a Computer System but, contrary to what you may think, linux runs very well on such a small machine and is even capable of full high resolution DVD playback with sound.
For me, the important factor is not what software can be run on the machine but that the system is specifically targeted to educating people who need programming skills. For this reason, I think that Microsoft should seriously think about providing a Windows operating system capable of running on this device because my experience has been that programmers who enter the workplace having learned their craft on every cheap (read free) development system that the colleges and universities invariably use these days have to re-learn a significant portion of their skills before becoing useful to their employers. Most industries use Microsoft operating systems and development tools so it would serve Microsoft well to ensure that the much needed new generations of developers have a solid understanding of those technologies too.
http://www.raspberrypi.org
Never, since the days of the ZX 81, has mass market computing been so accessible and so cheap. Designed in the town of Cambridge where the famous ZX 80, ZX81 and ZX Spectrum computers came from, this machine has been designed by someone who, like me, began their career programming for these classic devices.
The Raspberry Pi computer currently runs the linux operating system and use as an ARM processor of the same type as those found in mobile phones. With either 128 or 256 MB of RAM this might be considered small as a Computer System but, contrary to what you may think, linux runs very well on such a small machine and is even capable of full high resolution DVD playback with sound.
For me, the important factor is not what software can be run on the machine but that the system is specifically targeted to educating people who need programming skills. For this reason, I think that Microsoft should seriously think about providing a Windows operating system capable of running on this device because my experience has been that programmers who enter the workplace having learned their craft on every cheap (read free) development system that the colleges and universities invariably use these days have to re-learn a significant portion of their skills before becoing useful to their employers. Most industries use Microsoft operating systems and development tools so it would serve Microsoft well to ensure that the much needed new generations of developers have a solid understanding of those technologies too.
http://www.raspberrypi.org
Thursday, December 22, 2011
AI class. Done and dusted
Overall the AI class has been a great experience for me. I have learned so many concepts that I had never even imagined and my take on problem solving has been forever altered. The logic of ones and zeros that I've always worked with in my professional career has been transformed into a logic which suggests that the logical course is clearly the one with the maximum probable likelihood of success. This in itself is a more Spock-like analysis and, for me, the closer we can get to Star Trek the better things will be for everyone.
Clearly academia in a vacuum is a sad and lonely thing. It doesn't matter how clever a principle is or how wonderful a solution is, if the smartie pants that came up with the idea cannot communicate that effectively to the people that have to do the work then the process is a waste of time. Books of knowledge that gather dust because they are too esoteric to read may as well be burned.
Sebastian Thrun has a gift for teaching that enthuses and inspires his audience and has made the AI class experiment a phenomenal success. Many thousands of people today have seen a new way of doing things that will open up this relatively closed science to even more hobbyists than before. Remember that it was the hobbyists that sparked the computer revolution of the 1970's and 1980's.
Searching for AI related information on the web, the name of Peter Norvig comes up time after time and now, thanks to this course, thousands who would otherwise be ignorant of his taste in wacky shirts will be able to understand and use that knowledge in their own experiments.
I sincerely hope that this sort of course becomes mainstream and that not only should courses on high-tech and esoteric subjects like AI become available but that every university in the world should provide such fantastic teaching to everyone in every subject.
Until now, academia has been a closed and elitist environment with standards for entry that were drastically limited by the physical resources of the organisation. Now a course with 150000 applicants is possible and even if only 10% finish, that means 1500 heads full of new ideas for the betterment of mankind.
My congratulations and thanks go to Sebastian Thrun, Peter Norvig and the rest of the Stanford team for this wonderful opportunity.
Clearly academia in a vacuum is a sad and lonely thing. It doesn't matter how clever a principle is or how wonderful a solution is, if the smartie pants that came up with the idea cannot communicate that effectively to the people that have to do the work then the process is a waste of time. Books of knowledge that gather dust because they are too esoteric to read may as well be burned.
Sebastian Thrun has a gift for teaching that enthuses and inspires his audience and has made the AI class experiment a phenomenal success. Many thousands of people today have seen a new way of doing things that will open up this relatively closed science to even more hobbyists than before. Remember that it was the hobbyists that sparked the computer revolution of the 1970's and 1980's.
Searching for AI related information on the web, the name of Peter Norvig comes up time after time and now, thanks to this course, thousands who would otherwise be ignorant of his taste in wacky shirts will be able to understand and use that knowledge in their own experiments.
I sincerely hope that this sort of course becomes mainstream and that not only should courses on high-tech and esoteric subjects like AI become available but that every university in the world should provide such fantastic teaching to everyone in every subject.
Until now, academia has been a closed and elitist environment with standards for entry that were drastically limited by the physical resources of the organisation. Now a course with 150000 applicants is possible and even if only 10% finish, that means 1500 heads full of new ideas for the betterment of mankind.
My congratulations and thanks go to Sebastian Thrun, Peter Norvig and the rest of the Stanford team for this wonderful opportunity.
Wednesday, December 21, 2011
AI-class extra credit programming
Well, what a letdown those answers were.
I solved the rot-n one by sucking up an English word dictionary and seeing if the four longest words were in there. Ok, not particularly AI I suppose.
I could have got the strip question by doing it manually but I wanted to at least try to solve it using programming. In the end the effort seemed too great so I let it pass me by and waited to see what the gurus came up with.
Prof Norvig utterly sidestepped the programming with statements like "you can probably get a good result with letter trigrams or some such" Dude. Put your money where your mouth is an SOLVE THE DAMMNED PROBLEM instead of doing more professorial hand waving.
Not impressed.
I solved the rot-n one by sucking up an English word dictionary and seeing if the four longest words were in there. Ok, not particularly AI I suppose.
I could have got the strip question by doing it manually but I wanted to at least try to solve it using programming. In the end the effort seemed too great so I let it pass me by and waited to see what the gurus came up with.
Prof Norvig utterly sidestepped the programming with statements like "you can probably get a good result with letter trigrams or some such" Dude. Put your money where your mouth is an SOLVE THE DAMMNED PROBLEM instead of doing more professorial hand waving.
Not impressed.
Tuesday, December 20, 2011
Kicking myself AI Class final
Lousy score of 55%, not because I got a lot wrong but because I didn't check all the right answers available. This is to say for example that in the propositional logic question all my answers were correct, I just didn't check all the available right ones. Same with the resource one.
The fact that my electricity was out and I had to rewrite the house to run on three phase generator power didn't help my concentration.
Still, I really enjoyed the class. I feel that I learned a lot and that I now have a new perspective on problem solving that I never had before. I'll be doing the machine learning class in February so I guess I'll have a better perspective for that too.
The fact that my electricity was out and I had to rewrite the house to run on three phase generator power didn't help my concentration.
Still, I really enjoyed the class. I feel that I learned a lot and that I now have a new perspective on problem solving that I never had before. I'll be doing the machine learning class in February so I guess I'll have a better perspective for that too.
Friday, December 16, 2011
Generator power.
Because I live on an old farm, all the electricity supply for the house is three phase. A while back I bought an SDMO 20 KVA generator "for emergencies" and its been sat in my garage unused for a year.
When I bought it I had plans to wire it in but things happened and in the end it never got done. Last night 100 mph winds destroyed the infrastructure here and so I've been running aroung trying to get the generator connected and running all day.
At last, 9:00 pm and the thing is rumbling away like a good un in the garage and I have 50 meters of three phase cable tied to the house's main box.
I've wasted an entire day of my AI class final exam.
If I believed in a god or karma I might think someone was trying to tell me to stay away from AI.
When I bought it I had plans to wire it in but things happened and in the end it never got done. Last night 100 mph winds destroyed the infrastructure here and so I've been running aroung trying to get the generator connected and running all day.
At last, 9:00 pm and the thing is rumbling away like a good un in the garage and I have 50 meters of three phase cable tied to the house's main box.
I've wasted an entire day of my AI class final exam.
If I believed in a god or karma I might think someone was trying to tell me to stay away from AI.
Ai-Class aarrgghh
Hurricane winds all night. No power and no DSL.
Damn damn DAMN!!!!!
- Posted using BlogPress from my iPhone
Damn damn DAMN!!!!!
- Posted using BlogPress from my iPhone
Thursday, December 15, 2011
AI class final exam
Well, I guess I'm not the world's best student and its been a long time since I sat down and tried to behave like one. I have just completed the AI class lectures, except the optional natural language processing question which I am about to tinker with, and my average for correct answers in the lectures is 57%. I seem to have fared better in the homework with an average over my best six assignments of just over 76%. Not fantastic I know but I feel I could have done better, especially because for many of the assignments my computer was not working correctly so I did math by hand instead of using a machine.
I must admit to be looking forward with some apprehension to the final exam which begins tomorrow. I'm also interested to know at the end of the day how many of the original 130,000 enrollees managed to get this far on the course and, of course, where I sit in the rankings of those who actually pass the finish post.
If you found my blog as your expecting to come here and find all of the answers to the AI-class final exam then you're out of luck. Before you leave though remember to have a sense of humour.
I must admit to be looking forward with some apprehension to the final exam which begins tomorrow. I'm also interested to know at the end of the day how many of the original 130,000 enrollees managed to get this far on the course and, of course, where I sit in the rankings of those who actually pass the finish post.
If you found my blog as your expecting to come here and find all of the answers to the AI-class final exam then you're out of luck. Before you leave though remember to have a sense of humour.
Monday, December 12, 2011
Windows Metro linear navigation model
Being a software developer I'm used to hierarchical structures. Understanding where a file is in a hierarchical structure of directories or moving or copying whole directory trees from one place to another is something I do every day. However, I have come to realise that a large percentage of people do not have this hierarchical concept in their heads at all when they use their computers. My wife, for example, has absolutely no clue that her pictures are stored somewhere within the C:\users\chrissy\... directory because she accesses them from a shortcut in the start menu.
Remembering a hierarchy requires a certain mindset and an intimate familiarity with the terrain of the storage system in which the hierarchy is contained. I am quite happy with the internal structure of my disk drive and, because I use certain rules and regulations of my own, I am able to find a file within that structure very easily and quickly. I'm also sure however, that someone unfamiliar with my machine would find it very difficult indeed to find a specific file. Similarly, I find it difficult to find files on machines that have been set up by another people.
There seems to be then, a very nice analogy which can be drawn between users of Computer Systems and users of street maps in unfamiliar towns. Someone who has lived in the town all of their lives and knows all the back streets and alleyways can probably get from A to B quickly and efficiently whereas someone from out of town might struggle to navigate anywhere off of the high street.
Underground railway metro maps including those iconic maps of London, Paris, New York, and Barcelona to name but a few are shining examples of concise simplicity which are designed to make entire cities less daunting and more accessible to the millions who are unfamiliar with their hierarchical structures. Windows 8 Metro has exactly the same design goal as those maps.
In the same way that the metro line is linear and as well defined stops along the way, an application designed for windows metro must have the same well defined structure. One should always begin in a familiar place, being able to move along the line easily, and be able to move back to stations that you have already passed simply by going back in the other direction. There are, of course, a few examples where this principle should not be upheld religiously, in particular the example of credit card payments should never allow the user to navigate back through the pages where information is entered once a transaction has been registered. This is a rule which many web sites ignore to their detriment, possibly because the web style back button is inadequate for changing the rules of going back in such a sensible but non intuitive manner.
Metro is a "Design language" more than it is a set of APIs or software libraries. There is a great deal about Metro that is not expressed at all in the software but which is implied in the design guidelines. Metro can be considered as a start menu on steroids but with a fair dose of Valium thrown in to calm things down a bit. Think calm, think concise, think Metro.
Remembering a hierarchy requires a certain mindset and an intimate familiarity with the terrain of the storage system in which the hierarchy is contained. I am quite happy with the internal structure of my disk drive and, because I use certain rules and regulations of my own, I am able to find a file within that structure very easily and quickly. I'm also sure however, that someone unfamiliar with my machine would find it very difficult indeed to find a specific file. Similarly, I find it difficult to find files on machines that have been set up by another people.
There seems to be then, a very nice analogy which can be drawn between users of Computer Systems and users of street maps in unfamiliar towns. Someone who has lived in the town all of their lives and knows all the back streets and alleyways can probably get from A to B quickly and efficiently whereas someone from out of town might struggle to navigate anywhere off of the high street.
Underground railway metro maps including those iconic maps of London, Paris, New York, and Barcelona to name but a few are shining examples of concise simplicity which are designed to make entire cities less daunting and more accessible to the millions who are unfamiliar with their hierarchical structures. Windows 8 Metro has exactly the same design goal as those maps.
In the same way that the metro line is linear and as well defined stops along the way, an application designed for windows metro must have the same well defined structure. One should always begin in a familiar place, being able to move along the line easily, and be able to move back to stations that you have already passed simply by going back in the other direction. There are, of course, a few examples where this principle should not be upheld religiously, in particular the example of credit card payments should never allow the user to navigate back through the pages where information is entered once a transaction has been registered. This is a rule which many web sites ignore to their detriment, possibly because the web style back button is inadequate for changing the rules of going back in such a sensible but non intuitive manner.
Metro is a "Design language" more than it is a set of APIs or software libraries. There is a great deal about Metro that is not expressed at all in the software but which is implied in the design guidelines. Metro can be considered as a start menu on steroids but with a fair dose of Valium thrown in to calm things down a bit. Think calm, think concise, think Metro.
Saturday, December 10, 2011
Winzip loses my vote...
Many years ago, and probably because I was involved with shareware at that time, I registered as a user of WinZip and make donations to support the software. Later, or WinZip became a little more commercial and because I liked to see their success or a continued as a user and bought upgrades to the software. Unfortunately, since being bought out by the Corel Corp. WinZip's "fantastic upgrade offers" have become far too frequent and insistent.
It has been some while since I last upgraded the software because I don't use it anymore preferring now to use 7Zip or the compression software built into windows. I'm very glad that the original creators of WinZip managed to sell the company and so, from the point of view of my original desire to donate to them, I feel that they've done well. However, today I went through the process of unsubscribing from all future WinZip promotions because I feel as though I've lost all allegiance with the product.
It has been some while since I last upgraded the software because I don't use it anymore preferring now to use 7Zip or the compression software built into windows. I'm very glad that the original creators of WinZip managed to sell the company and so, from the point of view of my original desire to donate to them, I feel that they've done well. However, today I went through the process of unsubscribing from all future WinZip promotions because I feel as though I've lost all allegiance with the product.
Friday, December 09, 2011
Convert IOS apps to WP7
Microsoft is very much aware of Apple's Jupiter like gravity in the smartphone market. Trying to compete with such a platform is an extremely difficult proposition and so it stands to reason that everything that makes it easier to produce their applications on Windows Phone 7 will go a long way to narrowing the gap.
Microsoft has recently announced at all which will enable existing IOS developers to transfer their apple iPhone and iPad applications to the Windows Phone 7 platform. You can find details of this by following this link.
I would really like to see an extension of this that would allow you to transfer your iPad application to Metro.
Microsoft has recently announced at all which will enable existing IOS developers to transfer their apple iPhone and iPad applications to the Windows Phone 7 platform. You can find details of this by following this link.
I would really like to see an extension of this that would allow you to transfer your iPad application to Metro.
Thursday, December 08, 2011
AI class Homework 8
For the first time in this class, I have resorted to writing software to assist me in the completion of a homework task. Interestingly, this was something I would have done normally, but unfortunately a machine failure early in the class made me do things in a much more hands-on manner.
This is not to say that I have completely given up writing software. Indeed, much of what I have learned has been incorporated into a project upon which I am working which is specifically designed to make the construction of databound formulae far easier.
Unfortunately, my system is not nearly finished enough to enable me to use it on a day to day basis but I'm hoping there in the fullness of time the code which comes from my experience during this class will become available to a wider public.
As you know, I am passionately keen on the principles of databinding and so I am trying to build a system that uses these principles at a fundamental level to provide a very competent product which will be available shortly.
With only a couple of weeks left I am very much aware that the homework assignments available begin to count more and more towards the final score. Hopefully, I can dedicate as much time as possible to ensuring that I complete these last few homework tasks to the best of my abilities.
Its funny, I don't think I have been inspired about any single subject so much for many years. It's a testament to the skill of the Stanford team who have made his first foray into mass education on a scale never before seen on earth possible.
This is not to say that I have completely given up writing software. Indeed, much of what I have learned has been incorporated into a project upon which I am working which is specifically designed to make the construction of databound formulae far easier.
Unfortunately, my system is not nearly finished enough to enable me to use it on a day to day basis but I'm hoping there in the fullness of time the code which comes from my experience during this class will become available to a wider public.
As you know, I am passionately keen on the principles of databinding and so I am trying to build a system that uses these principles at a fundamental level to provide a very competent product which will be available shortly.
With only a couple of weeks left I am very much aware that the homework assignments available begin to count more and more towards the final score. Hopefully, I can dedicate as much time as possible to ensuring that I complete these last few homework tasks to the best of my abilities.
Its funny, I don't think I have been inspired about any single subject so much for many years. It's a testament to the skill of the Stanford team who have made his first foray into mass education on a scale never before seen on earth possible.
Calm down dear.
A short time ago, Mary Jo Foley kicked off another tempest in a teacup by disclosing that Silverlight was dead and soon to be replaced by HTML 5. This shock-horror revelation followed an interview with Microsoft's Bob Muglia an apparently revealed a massive shift in Microsoft strategy that would render Silverlight and WPF useless.
Recently, questions have been raised regarding Windows 8 and in particular the Metro system which, in beta versions, required portions of the application code to be written in HTML 5. This was, it seems, nothing more than a temporary situation and in later versions of the SDK metro code can indeed be expressed in c#, visual basic and other .net languages.
I think it's important to understand that Metro is not Windows 8. Metro is intended to be a portable subset of the Windows platform which is capable of running on other hardware than PCs. On a desktop system, Metro is seen as an explorer like application that handles notifications from applications running on the system and which displays these notifications in the form of tiles. Underneath, a Metro application uses a dll that contains a subset of the Windows architecture and which is necessarily restricted. It is also true to say, that when required, it is still possible to create applications that rely upon the full gamut of the windows architecture.
Windows 8 and Metro is very much a classic case of "horses for courses" and choice of the application architecture will very much depend upon the experience you desire for your users. Despite the fact that Windows 8 seems to default to a Metro style interface I believe that this is nothing more than a showcase for the new application style which, in the production version, should certainly be an option.
Historically, it has been difficult to create kiosk style applications in Windows and this has been a problem for providers who wanted a far more controlled environment than is provided by the standard windows operating system. Now, with the advent of Metro, simple, engaging, dedicated applications are easy to create and, rest assured, that these applications will be portable to other devices and platforms. If however you still require the rich and complex environment of Windows then you can be equally assured that Windows 8 provides you with no barriers.
Recently, questions have been raised regarding Windows 8 and in particular the Metro system which, in beta versions, required portions of the application code to be written in HTML 5. This was, it seems, nothing more than a temporary situation and in later versions of the SDK metro code can indeed be expressed in c#, visual basic and other .net languages.
I think it's important to understand that Metro is not Windows 8. Metro is intended to be a portable subset of the Windows platform which is capable of running on other hardware than PCs. On a desktop system, Metro is seen as an explorer like application that handles notifications from applications running on the system and which displays these notifications in the form of tiles. Underneath, a Metro application uses a dll that contains a subset of the Windows architecture and which is necessarily restricted. It is also true to say, that when required, it is still possible to create applications that rely upon the full gamut of the windows architecture.
Windows 8 and Metro is very much a classic case of "horses for courses" and choice of the application architecture will very much depend upon the experience you desire for your users. Despite the fact that Windows 8 seems to default to a Metro style interface I believe that this is nothing more than a showcase for the new application style which, in the production version, should certainly be an option.
Historically, it has been difficult to create kiosk style applications in Windows and this has been a problem for providers who wanted a far more controlled environment than is provided by the standard windows operating system. Now, with the advent of Metro, simple, engaging, dedicated applications are easy to create and, rest assured, that these applications will be portable to other devices and platforms. If however you still require the rich and complex environment of Windows then you can be equally assured that Windows 8 provides you with no barriers.
How will Windows 8 fare in a business environment?
Having worked for very many years in corporate environments I know that the adoption of a new operating system is fraught with problems. Corporate paranoia and risk aversion dictates that the rule of "if it ain't broke don't fix it" applies, sometimes for many generations of operating system. Sadly, Windows 8 will be no different and despite Microsoft's desire to get the operating system in front of corporate customers it is very unlikely that many of them will consider it for some years to come. This is a shame, because windows 8, despite the perceptions of these corporate paranoiacs, is very much the same operating system underneath as previous versions. The most radical change being the introduction of the metro system which is little more than a supplementary windows explorer designed to provide a far more kiosk like environment to users.
Interestingly, in many ways this could be an advantage to corporate customers because reducing the possibilities for users to step outside of the bounds of the application is something that many IT departments would very much enjoy.
Applications written for the metro environment would be easily transportable to tablet PC Systems which are becoming more popular in corporate environment nowadays and would provide a more consistent experience from desktop to portable platforms.
Unfortunately, Microsoft's reputation for creating version one problems whenever they introduce a new operating system is legendary. Personally, I don't believe that this reputation is justified because I am an early adopter but one has to remember that the users in a corporate environment may very well be five years behind the times. This means that there is a disconnect between what Microsoft desires to support and what the customer requires them to support.
I strongly believe that the if Microsoft concentrated more on absolute reliability and provided certified versions of its operating systems to corporate customers that profitability would rise because it is the corporate customers after all who have all the money to spend. The predicted reduction in PC sales for home use will surely eat away at Microsoft's profitability as more and more home users turn to Computer Systems that do not require desktop machines. As the Chinese say, we are living in interesting times.
Interestingly, in many ways this could be an advantage to corporate customers because reducing the possibilities for users to step outside of the bounds of the application is something that many IT departments would very much enjoy.
Applications written for the metro environment would be easily transportable to tablet PC Systems which are becoming more popular in corporate environment nowadays and would provide a more consistent experience from desktop to portable platforms.
Unfortunately, Microsoft's reputation for creating version one problems whenever they introduce a new operating system is legendary. Personally, I don't believe that this reputation is justified because I am an early adopter but one has to remember that the users in a corporate environment may very well be five years behind the times. This means that there is a disconnect between what Microsoft desires to support and what the customer requires them to support.
I strongly believe that the if Microsoft concentrated more on absolute reliability and provided certified versions of its operating systems to corporate customers that profitability would rise because it is the corporate customers after all who have all the money to spend. The predicted reduction in PC sales for home use will surely eat away at Microsoft's profitability as more and more home users turn to Computer Systems that do not require desktop machines. As the Chinese say, we are living in interesting times.
Facebook!
Hi everyone, please feel free to click on my Facebook badge at the bottom of this page. I answer all friend requests positively and I am dedicating time every day for discussions in that forum.
Hope to see you there!
Hope to see you there!
Wednesday, December 07, 2011
Tuesday, December 06, 2011
Anne Maynes might have better luck than me...
Anne Maynes of the Gartner Group said in the SOA conference earlier this month that software architecture must change to embrace the plethora of platforms and form factors that are emerging.
This is a subject very close to my own interests and after working for many years in a major European bank where I sang the same song for about six years and only found deaf ears I feel at once pleased that the idea is becoming mainstream enough for Gartner to be shouting about it and depressed that I was not able to convince people that such a thing was needed.
Interestingly, I am making great effort at the moment to create some mobile phone applications which present their own special challenges. I am not the worlds expert on the different API sets afforded by Windows Phone 7, iPhone and Android but I feel very confident creating applications in C#. A technique that I have been developing over the last couple of years relies on a modified form of MVVM in which the application interacts with a strongly defined and bidirectional presentation layer. This application component is then capable of being bound in an abstract way to the various data-binding or equivalent mechanisms present in the diverse UI systems provided by the different platforms.
I have proven to myself at least that creating an application that has no UI whatsoever is a viable model and that the UI systems can be added on afterwards such that the application can be made compatible with any platform. I have tested this system and it works fine for WinForms, WPF, iPhone, Android and Windows Phone 7 as well as ASP.Net and Mac. Interestingly I develop in Visual Studio 2010 to validate the application and then transfer the code to Mono for the platforms which do not natively support C#.
This is a subject very close to my own interests and after working for many years in a major European bank where I sang the same song for about six years and only found deaf ears I feel at once pleased that the idea is becoming mainstream enough for Gartner to be shouting about it and depressed that I was not able to convince people that such a thing was needed.
Interestingly, I am making great effort at the moment to create some mobile phone applications which present their own special challenges. I am not the worlds expert on the different API sets afforded by Windows Phone 7, iPhone and Android but I feel very confident creating applications in C#. A technique that I have been developing over the last couple of years relies on a modified form of MVVM in which the application interacts with a strongly defined and bidirectional presentation layer. This application component is then capable of being bound in an abstract way to the various data-binding or equivalent mechanisms present in the diverse UI systems provided by the different platforms.
I have proven to myself at least that creating an application that has no UI whatsoever is a viable model and that the UI systems can be added on afterwards such that the application can be made compatible with any platform. I have tested this system and it works fine for WinForms, WPF, iPhone, Android and Windows Phone 7 as well as ASP.Net and Mac. Interestingly I develop in Visual Studio 2010 to validate the application and then transfer the code to Mono for the platforms which do not natively support C#.
Metro would work on a toaster
Metro applications are necessarily fuss free. The motto of the Metro app is "Fierce reduction of unnecessary elements."
Whatever the platform upon which the application runs, the idea is to deliver all the necessary information and no more. A little of this philosophy was seen in recent versions of Windows Media Centre in which a the strongly linear navigation model coupled with sparse graphics and screens which are dedicated to one simple purpose are found. This has two important effects. Firstly there is a lower compute cost for the UI. Secondly, the display size doesn't matter. This is good for televisions because on the Media Centre you are probably looking at the screen from across the room and good for set-top boxes that run embedded Windows but have little available extra processor power for generating blurred drop-shadows or halo effects.
Windows 7 has been demonstrated to be running natively on ARM chips and what better low-power platform for consumer devices than the ubiquitous ARM core? Refrigerators, dvd players and yes, even toasters will soon be equipped with a graphical user interface that doesn't rely on a crummy bespoke LCD display panel and a processor as competent at that in your cellphone.
So, the paradigm of large-screen-far-away can also be used on small-screen-close-to with equally useful effect. A clean interface delivering just as much as you need with no more frills and nothing unnecessary is the ideal one for these applications and Metro fits that bill down to a tee.
Whatever the platform upon which the application runs, the idea is to deliver all the necessary information and no more. A little of this philosophy was seen in recent versions of Windows Media Centre in which a the strongly linear navigation model coupled with sparse graphics and screens which are dedicated to one simple purpose are found. This has two important effects. Firstly there is a lower compute cost for the UI. Secondly, the display size doesn't matter. This is good for televisions because on the Media Centre you are probably looking at the screen from across the room and good for set-top boxes that run embedded Windows but have little available extra processor power for generating blurred drop-shadows or halo effects.
Windows 7 has been demonstrated to be running natively on ARM chips and what better low-power platform for consumer devices than the ubiquitous ARM core? Refrigerators, dvd players and yes, even toasters will soon be equipped with a graphical user interface that doesn't rely on a crummy bespoke LCD display panel and a processor as competent at that in your cellphone.
So, the paradigm of large-screen-far-away can also be used on small-screen-close-to with equally useful effect. A clean interface delivering just as much as you need with no more frills and nothing unnecessary is the ideal one for these applications and Metro fits that bill down to a tee.
Befriend me on Facebook for closer contact.
My professional facebook profile is open to anyone interested in my articles, code or for such assistance as I give to people who mail me with requests. I figure that answering on Facebook might help more than just the person to whom I might reply directly.
My site and this blog have a facebook badge. Please feel free to use it.
My site and this blog have a facebook badge. Please feel free to use it.
How long will Samsung support Windows Phone 7?
Phone maker Samsung has been rumoured to be planning a move away from the Windows Phone 7 platform in 2012.
I have an Omnia 7 phone which I recently upgraded to Mango and its a really nice machine. The OLED screen is so much crisper than the iPhone 4's LCD screen and the brightness is amazing being easily readable in sunlight.
As a mill for the Windows Phone 7 platform the Samsung is great with nice processing power and nice sensors. It seems odd that Samsung's war with Apple wouldn't make them more keen to give Apple competition from Microsoft. As I say, this is a rumor for the moment but only time will tell. Personally I would like to see what Nokia have to offer for the WP7 platform in the near future. Sadly no one as offered me a Nokia phone to try out yet (BIG HINT!!)
I have an Omnia 7 phone which I recently upgraded to Mango and its a really nice machine. The OLED screen is so much crisper than the iPhone 4's LCD screen and the brightness is amazing being easily readable in sunlight.
As a mill for the Windows Phone 7 platform the Samsung is great with nice processing power and nice sensors. It seems odd that Samsung's war with Apple wouldn't make them more keen to give Apple competition from Microsoft. As I say, this is a rumor for the moment but only time will tell. Personally I would like to see what Nokia have to offer for the WP7 platform in the near future. Sadly no one as offered me a Nokia phone to try out yet (BIG HINT!!)
Saturday, December 03, 2011
AI-Class Praise
Sebastian Thrun is an absolutely brilliant teacher. So much enjoying his classes.
Wednesday, November 30, 2011
AI Class DOS attack Homework 6
It seems that some student has decided that rather than concentrate on the homework they would simply run a DOS attack on the site to give them time to complete the task.
Now that's what I call dedication.
Now that's what I call dedication.
Friday, November 25, 2011
Siri and AI
Being
involved with the AI class and being a career programmer I am very well aware
that the machinery behind Siri is nothing but a computer system. However, when
one interacts with the computer system using a voice interface that understands
so well as Siri does, one is almost obliged to be polite. I found myself
automatically saying please or thank-you in the same way as I would if a human
being were performing a service on my behalf. Interestingly Siri responds with
things like "I'm just doing my job" or "I exist to serve
you."
I meet a
lot of people in my work and I have to interact with folks from many cultures.
Some have different rules for what is polite, what is considered as necessary
and what is completely wasteful of the effort of speaking. English children of
my generation were taught that "manners maketh man" and were most
often brought up with the idea that one should go through the motions of being
polite even if you loathed the person with whom you were dealing so the habit
of being polite for me has extended to a machine intelligence that seems to be
more than it really is.
I spent a
while watching a presentation given by Dr Sebastian Thrun who teaches part of
the AI class. In the presentation he showed off the Google driverless car and
was explaining some of the aspects of the AI system. The car stopped several
times for people who had crossed late at a pedestrian crossing and on a couple
of occasions, the person gave a little thank-you wave to the car. Obviously the
car didn't care but this begs the question of whether it should or not.
Reinforcement
learning in AI could very well take notice of the user’s approval as a cue for
better understanding the intent of the user or the people with which it
interacts. It seems obvious to me that this would work out well but when faced
with someone who was mentally ill, aberrant or just plain obtuse a machine
system that takes cues from its users could potentially become very weird
indeed.
Isaac Asimov invented three clear
and precise laws of robotics which many people make the mistake of considering
for real robotic systems. They are at first glance precise and unambiguous with
seemingly no nuances but we should also remember that Asimov's genius was
creating such a set of strong rules with the express intention of finding ways
in which the robots in his stories could misinterpret them. I believe that as
machine intelligence becomes more competent and more capable of interacting
with the human race, the auditing systems that will be needed to ensure that
the system doesn't become twisted will be more difficult to create than the intelligent agents themselves.
Omnia 7 Vs iPhone 4S
I dusted off the Omnia 7 yesterday and did a full update to Mango including firmware and OS. When I went to bed last night the Omnia had just come off charge and was 100% full. Apart from showing my wife how lovely the OLED display was, I didn't use the Omnia at-all. It wasn't downloading mail or browsing the net.
During the same period I used my iPhone 4S from a full charge which it got at about 11:30 last night. It got my mail several times during the night, I used Siri to text my son and read his replies, I looked up flights to Malmo for a conference and generally messed about with it.
This morning the Omnia is at 76% charge and the iPhone at 92%. Samsung have some work to do. The battery for the Omnia is too small. The omnia is physically larger than the iPhone and should have more space for a larger battery but it seems to fail the test in a straight comparison.
During the same period I used my iPhone 4S from a full charge which it got at about 11:30 last night. It got my mail several times during the night, I used Siri to text my son and read his replies, I looked up flights to Malmo for a conference and generally messed about with it.
This morning the Omnia is at 76% charge and the iPhone at 92%. Samsung have some work to do. The battery for the Omnia is too small. The omnia is physically larger than the iPhone and should have more space for a larger battery but it seems to fail the test in a straight comparison.
Thursday, November 24, 2011
Windows Phone 7 debugging on the device...
A few moments ago I posted on this blog that I had updated to Mango and that I needed to get the phone registered for development.
Well, That process took all of twenty seconds. I created an Hello World app from a panorama template and uploaded it to the phone where it is working just fine and all in the space of a few minutes.
Contrast that with my initial experience of putting an application on the Apple iPhone some while ago and the difference is clear.
I find myself in a strange situation. I really like Apple products. I also really like Microsoft products and I don't suppose I have a net bias for one or the other (ha ha pardon the pun) but that experience tells me that when one works with Microsoft developer tools, the process of getting the job done is secondary to the process of deciding what you want to do. This is almost the opposite with Apple development where the walled garden approach extends to the heavily fortified and guarded potting shed that stands in the corner of the garden.
I might just be tempted to ressurrect Trakkus now that I have all three platforms to develop upon.
Well, That process took all of twenty seconds. I created an Hello World app from a panorama template and uploaded it to the phone where it is working just fine and all in the space of a few minutes.
Contrast that with my initial experience of putting an application on the Apple iPhone some while ago and the difference is clear.
I find myself in a strange situation. I really like Apple products. I also really like Microsoft products and I don't suppose I have a net bias for one or the other (ha ha pardon the pun) but that experience tells me that when one works with Microsoft developer tools, the process of getting the job done is secondary to the process of deciding what you want to do. This is almost the opposite with Apple development where the walled garden approach extends to the heavily fortified and guarded potting shed that stands in the corner of the garden.
I might just be tempted to ressurrect Trakkus now that I have all three platforms to develop upon.
Windows Phone 7.5
Well, what a rigmarole. I tried to apply a firmware update and bricked my Samsung Omnia 7 phone. Luckily the machine has a crash recovery mode and I managed to find a procedure and all the files for unbricking the poor thing. I will admit though that for a moment I was feeling a bit upset at having trashed my phone. Anyway, all's well that ends well and now I have WP7.5 build on the machine.
The next step is to recognise the phone as my development device and start cranking some Mango code for this puppy.
The next step is to recognise the phone as my development device and start cranking some Mango code for this puppy.
Tuesday, November 22, 2011
Siri
So funny. Siri understands "Make it so" as confirmation of a task.
- Posted using BlogPress from my iPhone
- Posted using BlogPress from my iPhone
AI class midterm
Just got my scores for the AI class midterm exam. Well. I'm not pleased with myself because I feel that I put in a lot of effort for a 59% score on the exam. I attempted all of the questions but I missed out on some stuff that I feel I should have been able to get right.
I didn't realise when I started out that I would become so invested in the class but the work put in by the professors and particularly the attitude of Sebastian Thrun whose cheery and encouraging videos show that he is teaching a subject for which he has enormous passion. That makes for a great teacher.
I suppose that I have suffered from the bad luck of having my PC go totally haywire in the last week and being forced to spend a couple of days rebuilding and reinstalling all my stuff again. Still, I blame no one but myself for my mediochre score.
Bob Powell must do better.....
I didn't realise when I started out that I would become so invested in the class but the work put in by the professors and particularly the attitude of Sebastian Thrun whose cheery and encouraging videos show that he is teaching a subject for which he has enormous passion. That makes for a great teacher.
I suppose that I have suffered from the bad luck of having my PC go totally haywire in the last week and being forced to spend a couple of days rebuilding and reinstalling all my stuff again. Still, I blame no one but myself for my mediochre score.
Bob Powell must do better.....
Friday, November 18, 2011
My bad...
The home button on my wife's iPhone 4 died recently leaving her much loved companion a useless cripple. I thought I would be clever and replace the button as I had successfully disassembled and reassembled my iPhone 3G to replace a battery and an earphone socket and replaced a broken back glass on her one.
I ordered the button from some dude on eBay and set to work with my big magnifying glass light and my tinest screwdrivers. After carefully following the instructions and laying all the components out in order of disassembly I finally put the home button in, rebuilt the phone and...
The blasted screen looks like all the ink has run. I'm guessing I screwed up the connections to the oled panel somehow but it has faded colours, lines and bits missing BUMMER!!
I had to go buy an iPhone 4S but I'm cagey, I restored Chrissy's backup to my own iPhone 4 which is only a couple of weeks old and I'm keeping the 4S for "important development work" ;-)
I ordered the button from some dude on eBay and set to work with my big magnifying glass light and my tinest screwdrivers. After carefully following the instructions and laying all the components out in order of disassembly I finally put the home button in, rebuilt the phone and...
The blasted screen looks like all the ink has run. I'm guessing I screwed up the connections to the oled panel somehow but it has faded colours, lines and bits missing BUMMER!!
I had to go buy an iPhone 4S but I'm cagey, I restored Chrissy's backup to my own iPhone 4 which is only a couple of weeks old and I'm keeping the 4S for "important development work" ;-)
BUSTED! Speed of light gets a ticket!
http://www.bbc.co.uk/news/science-environment-15791236
Ok, so maybe still not dramatic? Maybe wrong? Maybe someone's huge cock-up like they didn't take account of the rotation of the earth or some dumb thing but this story is set to run and run.
Don't you just love science?
Ok, so maybe still not dramatic? Maybe wrong? Maybe someone's huge cock-up like they didn't take account of the rotation of the earth or some dumb thing but this story is set to run and run.
Don't you just love science?
Thursday, November 17, 2011
Octogig up and running
So my new PC is up and running and currently installing Windows 8 Developer preview in a virtual machine. The VM has a couple of processors and 2 gigs of RAM dedicated to it as the real motherboard board has hardware virtualization and I can't see any difference between running Win8 in a VM as opposed to directly on a machine.
I had a moment of panic when my old hard-disk wouldn't unlock with the Bitlocker encryption key but I discovered that they don't like working over USB very much so I slapped it on a spare SATA cable and now the old disk from Quadratic is a spare drive on Octogig.
I'm really peeved because all this faffing about made me miss out a question on the AI class homework 5. The I was unable to complete the questions. Ah well, Stuff happens...
I had a moment of panic when my old hard-disk wouldn't unlock with the Bitlocker encryption key but I discovered that they don't like working over USB very much so I slapped it on a spare SATA cable and now the old disk from Quadratic is a spare drive on Octogig.
I'm really peeved because all this faffing about made me miss out a question on the AI class homework 5. The I was unable to complete the questions. Ah well, Stuff happens...
Big ugly stupid box
but four cores, 8 gigs and hardware virtualization. Ahh well, I suppose one takes the rough with the smooth, as the bishop said, watching the actress smear the pineapple liberally with butter.
Wednesday, November 16, 2011
Saying goodbye to QUADRATIC
My original quad core PC...
Subscribe to:
Posts (Atom)



