I have modified our Leeds Met Headingley webcam: the ftp upload now happens every 5 seconds, and the web page with the camera image is refreshed automatically also every 5 seconds. I want to try if the server can handle the increased load. Seems ok so far.
The reason: on Saturday, 10.May, 10:00 GMT, there will be the Carnegie Great Student Run. As it happens, the web cam is directly looking at the Start/Finish. It would be a pity if the web cam would only "stream" once per minute, as it did before...
The camera image is now more "live". For someone who has included the webcam code in their web site, the update will happen automatically, as the loaded IFRAME code will handle the refresh within the loaded document.
One note of caution: on one computer, have only ONE page with the live image open. The IFRAME uses a cookie that stores the name of the image - so that it can be deleted after being shown. If two of windows are open, they will store the cookie information in the same cookie - and naturally the image of one web page will be deleted by the other.
I am working on a tracking system which would use mobile phones carried by some of the runners to "live" track their position on the web. Seems to work ok so far, but I have not yet tested the system under "stress". The web site where some of the runners wil be shown is here: creativetech.inn.leedsmet.ac.uk/_StudentRun. The positions are currently just simulated. I will post news and updates here in this blog as the system becomes more mature.
In this blog I would like to describe some of the things I see while travelling through the world...
Showing posts with label software. Show all posts
Showing posts with label software. Show all posts
Wednesday, April 30, 2008
Monday, April 28, 2008
About Reading and Writing
On Monday, a Professorial Parlay was held at Leeds Met. It had been a while since the last parlay was sometime in summer 2007. The topic of this evening was well suited to the current Leeds Met Festival of Reading and Writing: what we read and write. Everybody was supposed to bring a book and tell what we think about it.
I admit that I almost had forgotten about this parlay, because of lots of work activities. So I did not bring anything, but I still was curious about what the others were reading.
When the turn was at me to talk about reading / writing, I admitted that I was not reading a book, but that instead I am currently in the process of reading mostly articles, e.g. in the Times Higher Education Magazine which provides an excellent overview about news in the education sector and is actually almost an essential reading for any academic. When it came to writing, I mentioned two things: that I write a blog (well, not very active actually, as the long inactive breaks show...), and - that I write software. This is a completely underappreciated creative activity: to be a software author. And I do not mean to be a programmer: those are people who translate specifications into software code. But my role is differently: often I do not have a specification to begin with, and the software project often takes only shape when it evolves over time. It is important for the software author to keep in mind so many things: usability, functionality, the user experience. In designing the software, variables are introduced which take the role of characters in a novel: they experience change, their values get transformed, and they influence others. Writing a software is like writing a novel, with a storyline in mind (which then results in a user experience). I think nobody has looked yet at software development with this view in mind... I believe that software development is a true art.
When the discussion came about the topic if books are still important, my viewpoint was that this depends on the discipline. In some cases books are relevant, as their impact does not rapidly change. But in information technology, books are often already outdated when they are in print. Things change rapidly, and the current technology state of the art can hardly be described in books as it evolves constantly. Much more appropriately than a book (textbook) would be a online repository which can constantly be updated. A great example is in my opinion the PHP reference. It reads like a book, has excellent descriptions, references, examples, and allows user's comments and tips. This is the future of textbooks in the information technology area - my shelves are full with printed books which I do not use anymore, because they contain obsolete information.
When talking about reading, I could have mentioned that I did read a lot 20-30 years ago... and that especially the books by the Swiss author Max Frisch had quite an impact on myself. I still recall the fascination of the diary-like novel "Homo Faber".
When talking about writing, I could have of course mentioned that I am writing currently a novel... which takes place in the 4th century AD which is in my opinion one of the most relevant times in history. But since that is a personal activity, I decided not to bring it into the professional limelight.
I also could have talked about "writing music", as I do have many ideas and plans for this... but due to a lack of concrete composition projects, I too decided to pass on this. So I probably left there the impression that I am a true technocrat who just likes to write software... :)
I admit that I almost had forgotten about this parlay, because of lots of work activities. So I did not bring anything, but I still was curious about what the others were reading.
When the turn was at me to talk about reading / writing, I admitted that I was not reading a book, but that instead I am currently in the process of reading mostly articles, e.g. in the Times Higher Education Magazine which provides an excellent overview about news in the education sector and is actually almost an essential reading for any academic. When it came to writing, I mentioned two things: that I write a blog (well, not very active actually, as the long inactive breaks show...), and - that I write software. This is a completely underappreciated creative activity: to be a software author. And I do not mean to be a programmer: those are people who translate specifications into software code. But my role is differently: often I do not have a specification to begin with, and the software project often takes only shape when it evolves over time. It is important for the software author to keep in mind so many things: usability, functionality, the user experience. In designing the software, variables are introduced which take the role of characters in a novel: they experience change, their values get transformed, and they influence others. Writing a software is like writing a novel, with a storyline in mind (which then results in a user experience). I think nobody has looked yet at software development with this view in mind... I believe that software development is a true art.
When the discussion came about the topic if books are still important, my viewpoint was that this depends on the discipline. In some cases books are relevant, as their impact does not rapidly change. But in information technology, books are often already outdated when they are in print. Things change rapidly, and the current technology state of the art can hardly be described in books as it evolves constantly. Much more appropriately than a book (textbook) would be a online repository which can constantly be updated. A great example is in my opinion the PHP reference. It reads like a book, has excellent descriptions, references, examples, and allows user's comments and tips. This is the future of textbooks in the information technology area - my shelves are full with printed books which I do not use anymore, because they contain obsolete information.
When talking about reading, I could have mentioned that I did read a lot 20-30 years ago... and that especially the books by the Swiss author Max Frisch had quite an impact on myself. I still recall the fascination of the diary-like novel "Homo Faber".
When talking about writing, I could have of course mentioned that I am writing currently a novel... which takes place in the 4th century AD which is in my opinion one of the most relevant times in history. But since that is a personal activity, I decided not to bring it into the professional limelight.
I also could have talked about "writing music", as I do have many ideas and plans for this... but due to a lack of concrete composition projects, I too decided to pass on this. So I probably left there the impression that I am a true technocrat who just likes to write software... :)
Wednesday, April 09, 2008
New Webcam Software
Until now I had run our webcam through two pieces of software: the Easycam software would connect to the USB webcam and display the stream on the monitor. Every 60 seconds it would write a JPG file onto the disc drive. In parallel, my own ftp client software would FTP this file every 60 seconds to the web server. For some strange reason, Easycam did not work, nor did any other webcam software that I had tried: each of them got stuck at the ftp-ing the file out. Some firewall problem... I have no idea.
But now I have combined the image capture with the ftp upload into one piece of software. It runs since Monday afternoon satisfactory. One can recognise if the image is from Easycam or from my own capture: Easycam puts a time stamp onto the image, while my software just shows the plain image without any overlay. I used my old knowledge of VideoForWindows to write a quick capture routine, with preview. The software is not yet easy to use, but I intend to modify it so that I can give it away as freeware. But before I can release the code, I need to "clean" it - is a mess as usual.
But now I have combined the image capture with the ftp upload into one piece of software. It runs since Monday afternoon satisfactory. One can recognise if the image is from Easycam or from my own capture: Easycam puts a time stamp onto the image, while my software just shows the plain image without any overlay. I used my old knowledge of VideoForWindows to write a quick capture routine, with preview. The software is not yet easy to use, but I intend to modify it so that I can give it away as freeware. But before I can release the code, I need to "clean" it - is a mess as usual.
Tuesday, June 05, 2007
Software for Geo-Tagging
The past few weeks I have stopped uploading pictures to Flickr, because I wanted to geo-tag them before the upload. The tools on Flick for Geotagging are a bit lame: the map takes forever to load, and the whole interaction process seems to be very slow.
Therefore, I have written a software for geo-tagging JPEG pictures: the web page with a download link is on my personal site. You are very welcome to download it and test it. It requires you to install the .NET framework. The software uses Google Maps to do the Geo-Tagging. It also allows to edit a number of other tags.
One feature which I have not seen anywere yet is the possibility to indicate the object location, in addition to the camera location. A triangle, overlaid onto the map, indicates the viewing angle and coverage of the image.
There are plenty of things that can be added into the software: integration of Google Earth / Microsoft Virtual Earth for 3D interaction, and reading of GPS log files for more or less automatic geo-tagging. If I have time, I will work on these topics.
Therefore, I have written a software for geo-tagging JPEG pictures: the web page with a download link is on my personal site. You are very welcome to download it and test it. It requires you to install the .NET framework. The software uses Google Maps to do the Geo-Tagging. It also allows to edit a number of other tags.
One feature which I have not seen anywere yet is the possibility to indicate the object location, in addition to the camera location. A triangle, overlaid onto the map, indicates the viewing angle and coverage of the image.
There are plenty of things that can be added into the software: integration of Google Earth / Microsoft Virtual Earth for 3D interaction, and reading of GPS log files for more or less automatic geo-tagging. If I have time, I will work on these topics.
Wednesday, May 30, 2007
C#, .NET, Visual Studio 2005 Express
Last year I taught as a tutor in Alan Crispin's courses "Computer-Based Applications" and "Computer-Based Graphics", which were my first introduction to C#. All these years before I had used C / C++ for all my software development activities: starting in 1990 with the conversion of road tracking software from Pascal to C, then developing new components with ANSI C for a transputer-based cluster. In 1996 I switched to Microsoft's Visual Studio and familiarized myself with C++ and the Microsoft Foundation Classes (MFC). Quite a useful API for programming under Windows - I enjoyed creating ActiveX controls, and wrote a set of classes which allowed me to quickly develop software projects. I stayed up to date with updates for the Visual Studio (VS), but when the Visual Studio .NET came out in 2002, with a further update in 2003, I was not very impressed. Code development seemed much slower and more cumbersome in the .NET version, and I remained faithful to the old Visual Studio 6.0 and its latest service pack #6.
Here at Leeds Met we have site licenses for VS.NET 2003, and due to the requirements for the course I had to make the switch. But then, new versions came out, and Microsoft offered on their website Visual Studio 2005 Express editions, free of charge. After I had installed the Visual Studio Express for C# and also the .NET Framework. The latter one comes in varios versions: 1.0, 1.1, 2.0, 3.0. In order to stay compatible, I installed them all, starting with the oldest version. There are also service packs available - which I installed too.
Working with Visual Studio Express is actually very nice: the IDE supports many tasks, provides quick help. Variable names are automatically completed, methods / properties of classes can be completed automatically. Since I did not know much of the internals of C# and the .NET framework, I often used the built-in help, accessing MSDN either locally or online.
The .NET framework is quite powerful. A really big step forward over MFC. When writing with MFC, I had to write a lot of code to get a simple task done. With .NET, often just a few lines do the trick.
I am now in the process of rewriting most of my previous work / classes / modules into C# and .NET. I think that this framework will stay around for a while - its potential has probably not yet been exploited to its fullest by the software developer community. Excellent classes, with lots of encapsulated functionality. In most cases I just need a small fraction of that functionality - but it is good to know that it is there.
And interesting is that the whole software development kit is free. No need yet for me to purchase a full version of Visual Studio - the Express edition works just fine. Maybe I will eventually find a weak point, but currently I will stay with that platform. Many thanks to MS for making this software available!
Big applause to Microsoft also for their support of XML - this is going to have a big impact in the Open Source community.
My current software development project: a tool for Geo-Tagging JPG images.
Here at Leeds Met we have site licenses for VS.NET 2003, and due to the requirements for the course I had to make the switch. But then, new versions came out, and Microsoft offered on their website Visual Studio 2005 Express editions, free of charge. After I had installed the Visual Studio Express for C# and also the .NET Framework. The latter one comes in varios versions: 1.0, 1.1, 2.0, 3.0. In order to stay compatible, I installed them all, starting with the oldest version. There are also service packs available - which I installed too.
Working with Visual Studio Express is actually very nice: the IDE supports many tasks, provides quick help. Variable names are automatically completed, methods / properties of classes can be completed automatically. Since I did not know much of the internals of C# and the .NET framework, I often used the built-in help, accessing MSDN either locally or online.
The .NET framework is quite powerful. A really big step forward over MFC. When writing with MFC, I had to write a lot of code to get a simple task done. With .NET, often just a few lines do the trick.
I am now in the process of rewriting most of my previous work / classes / modules into C# and .NET. I think that this framework will stay around for a while - its potential has probably not yet been exploited to its fullest by the software developer community. Excellent classes, with lots of encapsulated functionality. In most cases I just need a small fraction of that functionality - but it is good to know that it is there.
And interesting is that the whole software development kit is free. No need yet for me to purchase a full version of Visual Studio - the Express edition works just fine. Maybe I will eventually find a weak point, but currently I will stay with that platform. Many thanks to MS for making this software available!
Big applause to Microsoft also for their support of XML - this is going to have a big impact in the Open Source community.
My current software development project: a tool for Geo-Tagging JPG images.
Subscribe to:
Posts (Atom)