| Ben 的个人资料Ben Coley's Blog日志列表留言簿 | 帮助 |
COMMENTS HERE
AllredDoug发表:
Ben, I like your space. You should keep it more up to date, but I imagine you're quite busy.
1 月 12 日
|
7月10日 My New LaptopThe Dell XPS M1330 ELF & The Imagine CupParis, the Eiffel Tower, the Reinne and the Louvre 6月23日 Sony Ericsson Xperia X1You may have read a while back that I upgraded from the HTC Touch to the HTC Touch Dual and was in mobile heaven - Windows Mobile Professional, but with a keypad and 3G! Forced to downgrade to my Samsung E900 after my departure from Microsoft UK, I set about finding a replacement Windows Mobile. Then I spotted this little gem... it appears to be manufactured by HTC but everything else about it is Sony, it oozes quality and style, and I simply must have one! Check out the Sony Ericsson Xperia X1. 6月19日 GeForce GTX 260/280
Fortunately, the good guys over at Tom's Hardware have put together a nice lengthy review for your pleasure, so I'll leave you with this: I'm still disappointed. 4月3日 Windows Mobile on the HTC Touch DualI finally managed to get my hands on the HTC Touch Dual the other day, and what a piece of kit! I previously had the HTC Touch, which I found to be a reasonable phone, apart from a few caveats - the phone seemed slow and slightly 'clunky' which made me want to avoid using it where possible; the touch screen was annoying for sending text messages, as you'll need to look at the screen when typing (which often requires the use of two hands). I also found browsing the Internet and downloading email to be far too slow, mainly because the Touch is limited to GPRS connectivity only.
So obviously, when I saw the Touch Dual, I thought that HTC had managed to fix everything wrong with the original Touch, and couldn't wait to get my hands on it for testing. It's specs are much higher than the original Touch, so it seems much more responsive to user input; one thing I've noted particularly is that when you tap the menu to view open programs, then select the 'Close All' option, the programs close more or less instantly; this took a few seconds on the original Touch. Upon closer inspection, I found the Touch Dual to be equipped with a 400Mhz processor, which handles Windows Mobile much more efficiently than the 200Mhz processor seen in the original Touch. The Dual also comes equipped with a slide-out keypad (not a QWERTY keyboard), which solved my problem with on-screen keyboard text messaging - I can now accurately type a message without even looking at the screen, which makes multitasking easy. One problem I identified early with the Dual was, when using the XT9 dictionary, pressing the number '2' key, which would usually produce the letter 'a', actually produced the letter 'c'. If you wanted to type the sentence "I have a phone", you'd likely end up with "I have c phone", which was incredibly annoying. After searching the web for a bit, I came across a fix for the phone on the MoDaCo website, aptly named the "MoDaCo Touch Dual 'c to a' fix", which managed to solve my issue! Perhaps the most key feature of the Touch Dual though, is the vast array of connectivity you get with it. Sure, HTC ran out of room in the device, so wisely decided to remove the WiFi module, in favour of adding support for 3G and HSDPA, and a front-facing camera for video calling. I agree with this move; after all, if you're in a place where you've got WiFi access, usually you'd have your laptop anyway - mobile Internet access is for when you're on the road, and no Internet connection is available. Data transfer over 3G is so pleasurable when compared to that of GPRS. I used to have to wait about 1 minute or so (which can seem to take forever) before my emails would start downloading after connecting using the Touch. With 3G on the Touch Dual, I have to wait about 10 seconds for the emails to finish downloading - fantastic! 10月29日 Inspiration Tour 006On Friday, we journeyed to Aberystwyth for the Inspiration Tour! The lecture hall was quite impressive, and the lecturer Sandy Spence kindly guided us into our parking space so we were able to get set up very quickly. It was a tiring day, as we were up at the crack of dawn to do the 4 hour drive to Wales, then followed it up by doing a 3 hour presentation to the students!
After a good meal and a long sleep, Ed and I went to the university again to do another talk, this time a 20 minute one to the prospective students on why Aberystwyth is a good place to study, and what kind of links the university has with Microsoft.
Both events went very smoothly, and we were home by Saturday afternoon so we got to spend some weekend time with our families!
Game City 2007Somehow during this week, Ed and I both found ourselves helping out at Game City in Nottingham! The event was very well put-together, and we got the chance to meet some really interesting people. The Free Play Lounge was a lot of fun, especially because I was the one handing out the tokens for the free drinks!
Ed and I both got to help Paul Foster video some cool stuff there - I'll post a link to that when it's been uploaded!
Inspiration Tour 005Finished Hull, and then off to Essex! We stopped over night in Essex as we drove from Hull to Essex in the same day! (So much driving, this week we'll be covering more than 1000 miles!) When we arrived at Essex, we struggled slightly to locate the lecture theatre that had been arranged due to the lecturer that we arranged it with being absent. That said, the MSP for Essex (Gavin Carpenter) was on hand to help us find the theatre and carry the gear, so once we'd located him, everything went swimmingly!
People seemed quite interested in XNA, and there were a lot of questions regarding Xbox 360 deployment, as well as an interest in Embedded technologies, where I was asked to demo application deployment to the HTC Touch that we had on display.
Gavin also went the extra mile, and had organised pizza and beer for the attendees, who seemed very happy to discover this arrangement!
Inspiration Tour 004This week, the Inspiration Tour went to Hull! We met Rob Miles around lunch time, and he took us to the lecture theatre we'd be presenting in. This theatre was very unusual, in that as well as being one of the larger venues, you also had to tilt your head right back to be able to see the people sitting on the back row - it was that steep!
The presentation went smoothly, although it was very cold in the theatre; I might even take a jumper next time I visit!
Rob snapped loads of good photos for us as well, which was difficult given the steepness of the theatre! You can visit the Rob Miles website for his opinion of the Inspiration Tour.
10月18日 Inspiration Tour 003This week, we took the Inspiration Tour to Bradford! The University lecture theatre we were supplied with was the most amazing yet, a 400-people seater with three projectors and a stack load of AV equipment!
The staff were very helpful in setting up (this can often be difficult because we're not able to accomodate for all the different university set-ups!) and we managed to get presenting very quickly! The crowd seemed pretty happy with the presentations and demos, and we got a few laughs at our XNA content!
A couple of people stopped by to ask more questions at the end of the show, which was cool as some of the questions were quite challenging to answer!
10月16日 DPE Q2 OffsiteJust got back from the offsite (currently staying in Leicester as I'm off to Bradford University for the Inspiration Tour tomorrow) and I have to say, I really enjoyed it! I met a load of people in DPE that I haven't come across before, and got to know others who I've seen around but not really spoken to! We got to make fun videos about what we thought DPE was, and I was lucky enough to end up in a group with a bunch of like-minded people who all shared similar views.
Of course, a Microsoft Offsite wouldn't be a proper offsite without drinks and socialising, which is coincidentally what we ended up doing on Monday night!
The food was great, accomodation was good, and finding the place was a relatively painless experience (I know how difficult this can be, as the Inspiration Tour has proved!) so all in all, a great couple of days away from the office! 10月11日 Inspiration Tour 002This week Staffordshire University got the Inspiration Tour treatment! The turn-out was fantastic, and the event went pretty well! Students there seemed interested in what we had to say, and we even managed to get a few laughs with my dreadful Xbox 360 game-playing!
It seemed that quite a number of the students present were Linux users, but something I will certainly take away from the event is that we managed to convert some people from Linux to Microsoft! If you are one of those people and you want your name credited on this blog (you lucky people!!) then let me know, or if you'd like to find out more, then leave me a comment!
A few people came to chat to us at the end as well, anyone who did this (or even if you didn't!) feel free to post comments or questions on this blog and I will get back to you!
[dodgy IT picture 002 coming soon!] 10月4日 Inspiration Tour 001Ed and I did the first Inspiration Tour visit to Manchester Metropolitan University yesterday! Despite the University projector failing, we managed to pull together our resources and run a lab-session type presentation, where we split the group up and showed them the technologies we would have demoed on the big-screen!
The students had lots of good questions for us, and we did our best to answer them, but if any of those students are reading this (or any other students for that matter) and they still have un-answered questions, comment this blog entry and I will reply!
9月26日 Check it out!If you're bored and fancy looking at getting into Microsoft technologies by competing against fellow students, then check out the Imagine Cup website for more information! Building 5 Opens!Yes that's right - Bulding 5 is finally open!!
World Teacher Day'World Teacher Day' is fast approaching (it happens to be on my 21st birthday, October 5th) so keep your eyes on our Academic Blog if you want to find out who my two favourite teachers of all time were!
9月13日 Perspiration TourI've been cleaning up the demos in the last couple of weeks for the Inspiration Tour (newly nicked-named the Pirspiration Tour!) with Ed. We now have many complete demos for Silverlight, Embedded and XNA. We also have a few other cool demos we're going to show off during the presentation to inspire students to adopt Microsoft technologies. Ed's scheduled a bunch of demo presentations where we'll be presenting our material to the DEs (Developer Evangelists) for approval, which should be fun!
We're just in the process of putting up the new Inspiration Tour site, which should hopefully give you an idea of what we're aiming for. 8月30日 Spiders on DrugsJust finishing writing my content for the Microsoft Imagine Cup Invitationals, and I got bored, decided to go on Youtube to look for some videos, decided I hate spiders so I'll look for a video of them (weird I know!) and found probably the most entertaining video I've seen to date: 8月26日 BusyyyAs you can see, I haven't blogged in a while, but I have more good excuses for this. Firstly, I've been very busy with work. Secondly, I've been very busy with home.
Our house still had a few missing things last week, so I made sure I went out to buy the washing up bowl, door mat, and various other house-hold items that we needed. Then I decided the house was a bit of a mess, so I set about cleaning it. All went swimmingly until the vacuum cleaner exploded (for no apparent reason) and upon closer inspection I discovered that it could not be mended, so I shot out to Argos to buy another one so I could finish the other half of the job I had started.
Then there was the work. After posting about Virtual Earth, I wanted to make it even more user friendly and useful, so I built a UI for it based on the Vista Control Panel. I also started adding features to it that would allow users to manipulate the data without having to open the database in Access, making it easier to administrate for the users. This of course added more development time, and I have bigger commitments, such as the Imagine Cup booklet and the Inspiration Tour, the latter of which is due by next Wednesday. Anyway, I managed to get most of the application working, I'm just adding the finishing touches and then I'll post some screenshots of what it looks like! I've been porting a game between XNA and Embedded this weekend so we can 'tell a story' with our presentations, hopefully this will make sense when I run it by Ed!
Just as a side note, it looks like September - October is going to be an awesome time for all us gamers, with games like Half-Life 2: Episode 2, Portal, GTA4, and of course, the third release of that well known first-person-shooter, known as 'Halo 3' all becoming available at the same time! Looks like Christmas '07 is going to be packed with epic battles, struggles against unknown alien forces, and violence on the streets of 'New York(?)' !!! 8月17日 I've Conquered Virtual Earth!!Sorry about not posting in a few days, there's not been much to report: just been quietly working away on Microsoft Inspiration Tour Demos. Still working on the XNA stuff, so stay tuned for that!
When I got to work the other day, I decided to have another stab at finishing the Virtual Earth maps, and somehow this time, I managed to do it! Firstly what I have is an Access Database, which has two tables: one for holding lists of all the universities, complete with postcodes and a unique identifier, the other table holds a list of all the MSPs, each with their own unique identifiers, and a foreign key field that points to the unique identifiers of the universities (so we know which MSPs are at which universities!). Okay, now all the database stuff is out the way, I can begin to explain.
Firstly, in Visual Studio (programming in C#), I have a website set up. With this website, comes Default.aspx, and Default.aspx.cs. Just in case you don't know, the .cs file is the C# code-behind file that is processed everytime a user accesses Default.aspx. So logically, in this file is where I do my database reading. I set up some Access objects, such as a connection, reader, and sql command, so that I could successfully query my database and return results. The SQL statement I used to access all of this data was something like:
Effectively, this selects all the universities and MSPs, and pairs them up so we know which belongs where. There was obviouisly a bit more to it than this (such as a solution if there were multiple MSPs at one university, or if there were no MSPs for a particular university), but I won't delve too far into that at this time.
Once all this selecting is over with, all the results are passed to a few arrays, which can then be accessed by the standard .aspx page for data output. Now to move on to the .aspx page.
The page has some Javascript on it, which imports the Virtual Earth .js file, and then creates a new VEMap object, and throws it on to the page in the form of a Div element. Then using Javascript functions, we can search for all the postcodes of the universities, and begin plotting them onto the map. Anyone spot a problem with this? The Javascript runs client-side, but all our arrays are stored server-side. So the next task consists of creating Javascript using server-side C#. Sounds simple, but it really wasn't. The code roughly looked similar to the below:
This code produces something along the lines of:
Once this was done however, the arrays from the C# code were visible to the Javascript, and so it could begin processing the data and loading it onto the Virtual Earth Map in the form of pushpins. Again, I hit another hurdle. This time, it was to do with Javascript. I am aware that Javascript is supposed to be a single-process language - basically, it's not meant to resume doing the first function until it's finished the second function that was called from the first. However, because the way we're talking to the Virtual Earth API involves setting up an event handler, Javascript treats this as a separate program (of sorts) and continues processing while it's processing the new event. This means that before the Virtual Earth Map has time to plot the first university, I'm already sending it the second, third, fourth... This was obviously a problem because it started plotting all the universities in the other universities places.
So I firstly thought, "Can't I create some kind of 'wait' event?". The simple answer to this question is "No". The reason for this is the browser thinks Javascript has crashed if it takes too long to process a command, so it stops the Javascript and crashes the whole browser, and also unfortunately uses up 100% of the CPU. So there had to be another solution. Then I found it - rather than calling the FindLocation function from a For loop (which would loop before the command had a chance to respond), I'd call the FindLocation function once with the first value, and then have it call itself with the next value once it had completed (this is known as recursing in the programmer space). Sure enough, this caused the Javascript to wait to find one university before proceeding to the next, and thus, a successful solution had been found!
Finally, I decided this web-program looked a bit Web 1.0 (as opposed to Web 2.0, which refers to the way a web-application ought to look, i.e. crisp, functional... vista-looking, if you will), so I started writing a bit of CSS (Cascading Style Sheets) to apply some nice graphical effects to the program. Such effects included a vista-looking progress bar that progresses as each university is added to the map; a vista-looking text alert that calculates how much time it will take to add all the data to the map; a dark grey alpha layer over the map with the white words "Loading" on it so that you can only just see what it's doing in the background; and finally, once the page has finished loading, a text-update showing how many universities and MSPs have been added to the map, a Windows Live logo, and an overview of the UK so that all university pushpins are visible.
The great thing about this web-application is that it's completely reusable; you could take the database I have, fill it in with different data (for a different country, or a different buildings instead of universities, or different people instead of MSPs...) and then run the application and let it find multiple areas to plot on the map... Another cool thing is that once the program has found all the areas, you can save them to a collections file, so you basically have a "cached version" of what you see before you; this is especially useful if you don't want to wait each time to load up all the data, or if you know you'll only be updating the map every so often, etc.
I will attach some photos once I get back to my Dell (it's at work at the moment).
If anyone would like all the source code I have for this application, feel free to contact me by leaving a comment, and I will zip and send it to you!
|
Random stuff related to me.
|
|||||||||||||||||||||||||||||||
Ben Coley's Blog |
|||||||||||||||||||||||||||||||||
|
|