Showing posts with label Microsoft. Show all posts
Showing posts with label Microsoft. Show all posts

Saturday, December 21, 2013

Shrtr

Note: to read the full technical breakdown on developing Shrtr for Windows Phone, see my code blog post.

I made several forays in the past into Windows Phone development. I actually like the platform, and the development tools. Having experienced iOS (XCode) and Android (Eclipse) development environments, Visual Studio looks like it's in a completely different league. I think Microsoft made some major marketing mistakes promoting the platform, but they're getting better, with a lot of community outreach, developers' resources, and hackathons.

Last year I got myself a Nokia Lumia 710, and started hacking in WP7. 5 minutes later, Microsoft announced WP8, along with the enraging tidbit that my brand new phone will not be supported (why? they claim hardware compatibility, I claim greed). I was pissed off, so off to eBay it went, and off to Android development I went.

A year later, I just had to try again, so I got the very well reviewed Lumia 620 (in blue), and looked for an incentive to develop anything. It came in the shape of an invite to a DVLUP hack day at Nokia HQ in Sunnyvale. I became aware of DVLUP, the Nokia developers community, at the AT&T summit I attended last year. This year, they promised a new Nokia 620 (yay! another one), to any developer who builds a WP app, and publishes it to the Windows Phone store within 2 weeks. The challenge was on!

I've already been toying with an app that uses URL shortening services, to allow you posting/sending/sharing manageable URLs (rather than the jumble of random characters URLs have become lately). Since my girlfriend is doing a lot of URL sharing as part of her marketing job, I validated the need, and set to work.

You can find all the nitty-gritty technical details, and dev challenges, in my code blog post, but suffice it to say, I had the app ready within a week. I had to wait another week, or so, for Microsoft to approve the app for the store. In the meantime, I got the domain www.Shrtr.us, and deployed the server side of the app. After successfully publishing the app, I had to wait for 2 more days for the DVLUP site to recognize the app, and attribute it to me. With the help of Paras from Nokia, I managed to accomplish the task in time, and the new Lumia is on its way to me!

I actually think I'll gift a 620 to my mom. She's been begging for a "smart phone" for a while. I believe Windows Phone is the best starter mobile OS - the UI can be turned to Hebrew (or any other language) completely, it has a very simple navigation paradigm - the tiles are big, readable, and self explanatory.  And frankly, you can't "break" anything in it. I'll try it, and report back on my mom's experiences.

Finally, due to the design decisions I took while developing the app, I ended up with the app logic on the server side, allowing me to develop an Android app (to be released later) and a Chrome extension, both using the same URL shortening services. You can download the WP app and the Chrome extension at www.Shrtr.us. Leave me some feedback and comments. Feel free to ask for your favorite shortening service, or feature. I can't promise I'll get all of them, but I'll try.

Final note: as can be plainly witnessed from bot the extension and the app's UI, I lack in the graphical design department. If anyone out there feels they can elevate the state of my UI (in either HTML/CSS or XAML), please let me know.

Download links

Sunday, April 24, 2011

The New Evil Empires

I've been an Apple technology fan for most of my adult life. My first computer was an Apple, I once took a summer job just because the office had a Mac in it, and I managed my university's multimedia lab, just so I can get the latest and greatest models and toys (oooh, a CD reader! Shiny!). The distinction is, I always liked the technology - not the company.

For a company that was started by 2 hackers in a garage, Apple did its best to distance itself from its origins. Everything is closed: their OS is not licensed, their devices can only be used in certain ways (the only reason I can't buy my parents an iPod is because I'll spend a lifetime to explain iTunes to them. Better to give them an off-the-shelf drag-music-into-it MP3 player), their SDKs carry an agreement license that requires an army of lawyers to decipher. Until this very day I hope I haven't signed away my first born to Steve Jobs when I joined the Apple Developers program. As for the real quality of their hardware - this deserves a separate post.

In short, Apple became Microsoft (or what Microsoft used to be). And last week, when the facts came out that Apple is collecting location data on everyone who uses an iDevice, Apple just became as evil as Google (remember the wifi tap fiasco?). I know, some people think this is not a big deal. Those people haven't yet used the free application that accesses that log file and draws all points on a map.

I was shocked to see every single place I visited and every trip I took mapped down with dates (can I at least use this for my expense reports in lieu of collecting a mountain of receipts?). I have nothing to hide, but still, why would anyone want to collect this data on me?

As in the Google case, Apple claimed it's a bug: they were supposed to keep just the last location (why?), and their algorithm just "forgot" to clean the history. And as in the Google case, I think the company means that the bug is the exposure and bad publicity they are receiving.

It has since came out that Google is also collecting location data on Android phones - and even transmits it back to HQ several times an hour. I wonder if there's a place for a class action, suing them for using my bandwidth without my permission. But this is just further proof that the equation Apple == Google holds.

At the time of this posting, there's still no way to stop the location tracking on either iDevice or Android phones. I assume it would come out with the next OS update (and let me hazard a guess: it will be buried deep in the settings screens, with the default turned to "on").

But Apple and Google are not alone. Even new start-ups play at being evil. Take for example one of my favorite products: Dropbox. I love this product and use it on a daily basis. One of the assurances they made, to entice people to trust them with their most secure data, was that the files are doubly encrypted: even Dropbox's developers cannot access their contents. Last week it came out that is not really the case. Not only are the files accessible, but have been shared with law enforcement agencies in the past. This means Dropbox's employees can access them - they are just told not to.

It is a known fact that a security chain is only as strong as it weakest link. If your company/bank/financial institute is maintaining unencrypted secure or personal data, all it takes for it to be abused is one disgruntled or underpaid employee. That's why we need double-blind encryption algorithms, access mechanisms and audit systems in place, and that's why banks vet their employees. With the new wave of start ups offering to maintain you most personal data, maybe we should demand encryption and employee vetting?

And finally, the last straw in this privacy and security infringement month: the Epsilon hack. It turns out many companies that I trust with my email (I'm talking to you Hilton and Best Buy) actually give it away to 3rd party companies to manage their marketing campaigns. And at the beginning of the month, that company was hacked big time (take a look at the list of companies affected). This prompted a torrent of emails from these companies warning their users not to trust any further emails from these companies, because they might be phishing scams (the irony is not lost).

The bottom line of this post is not "Trust no one" - that way leads to paranoia (although every fact I've seen so far suggests a bit of paranoia is justified when it comes to companies). No, I think what we should take away from all those stories is this:
comfort x security = k

In other words, to get more comfort (free services, immediate access) we have to give away some of our security and vice versa.

This still doesn't justify spying on your clients - that is pure evil.

Update 4/29/11:
A few days ago, people started talking about an outage on Sony's PlayStation Network. Sony at first claimed it was technical difficulties. As days passed, they were forced to admit their network was hacked. As I'm writing this update, the first credit card numbers of PSN users are being sold on hacker sites. Way to go with maintaining your network and encrypting your data, Sony. I sincerely hope some IT managers are performing Harikiri as I write this. Jerks.

Wednesday, November 18, 2009

IE9 on the Horizon

Today at PDC Microsoft "introduced" IE9. The word is in quotes, because there's no real version out there. In fact, the development teams have started working on it only 3 weeks ago, and there's only an internal work build.

This comes a bit over a year after the release of IE8 - a much shorter release period compared to the one between 7 and 8 - and definitely shorter than the 6 years between 6 and 7. What prompted this speedy development cycle? It could be Microsoft's new dedication to internet technologies, or the rapid release cycles of Firefox and Chrome.

But my guess is that the reason is this:
For almost a year now, sites like BetaNews have been running browser performance comparison tests. You see that tiny purple line at the bottom? That's IE8, performing at an abysmal 1.75 x IE7 (or 75% faster), compared to Google Chrome, at over 15x IE7. (To read about the test itself, read this).

What's even worse for Microsoft are graphs like this:
This shows that all browsers perform better on XP than on Windows Vista (no surprise) and Windows 7 (bad surprise). The good news is that this time, Microsoft is not going to discuss the disturbing results in endless committees, but instead started developing the next gen IE. According to Paul Thurrott, a beta version of IE9 is expected at March '10, with a release following in October. As for me, I'm knee-deep in Google Chrome extension development. Fun.

Sunday, November 1, 2009

Chicago, Twice

It’s been a busy 3 weeks for this poor traveler. This post will be a bit on the longish side, as I’ll try to cram travel, tech and personal experiences one on top of the other, so please bear with me. If I were less lazy, I would have posted more regularly, but pushing yourself to write, even if it’s your hobby, tends to get harder when you’re on the road.

Yes, I’m back on the road, after a month’s hiatus. To some degree I missed it. After 5 straight years on planes, trains and automobiles, I get bored to death working from home. But there’s nothing like some winter air-travel in the US to cure me from my airport addiction.

After looking at the first draft of this post, I decided to break it into several headings, to make some sense of the mess:

1. Montreal – backup your files!
I love Montreal. You can find it floating around my blog time and again. It’s one of the 4 cities I frequent the most on the planet (the others are NYC, London and Tel Aviv). It has some of the best restaurants I ever ate in, and has an overall look of a European city.

My customer in Montreal needed some software upgrades, network and devices tuning, and a backup solution. I cannot stress enough the importance of backups in this digital age. A simple thing like a hard disk failure can cause you to lose all your documents, presentations and large digital photo collection you’ve been taking all over the planet for the last 10 years. Setting up a backup device, with a daily/incremental backup task is quite easy, painless and extremely cheap (compared to the damage and grief of not backing up).

But what if your office burns down, or your house broken into and the thieves carry out every thing that has an AC cable?
To combat this, you need online backup. Not only would you still retain digital copies that have multiple backups of their own – but those will also be accessible everywhere, from every computer. I’ve been utilizing several such apps and services successfully for years now, so it was easy to set my customer up with an account with one of the leading backup services (I won’t mention its name yet – I might try to become an official reseller for that service).

2. Chicago – first time
On my way to Montreal, I connected at Chicago's O’hare airport. The airline I flew with overbooked the flight to Montreal – and guess what? Everyone who bought a ticket showed up. For an hour and a half they asked for volunteers to stay a night in Chicago, for the ridiculous compensation of a $250 certificate. Needless to say, there were no takers.

5 minutes before boarding, the attendant called out 5 names, mine included, and “volunteered” us to stay. No explanations or apologies. The compensation that was offered now was a $150 certificate, or a check for $100. A few other stupid things occurred after this, but suffice it to say I got stuck in Chicago for a night, had to leave the airport, return to it the next day (don’t you just love clearing security?) and missed my morning meeting with my customer.

By now you’re wondering why am I omitting all the relevant details and most importantly, the name of the airline. rest assured, I haven’t gotten soft: I sent the airline an email complaint 3 weeks ago, and a real snail-mail letter last Sunday. I’ll give them another week to respond/apologize. After that, they will be the deserving recipient of a Customer Rant post. Is there anyone in the audience skilled enough to help me mount a consumer campaign a-la United Breaks Guitars?

3. Hockey – the real prime-time sport
I lucked out and my visit to Montreal coincided with the first week of hockey season. I got to watch the Montreal Canadiens play (and sadly, lose) their 2 opening home games. I was seating at the best seats in the Bell Centre (thanks George!) and even met the Canadian Prime Minister Harper, who came to cheer his team (the Ottawa Senators).

I decided to embrace hockey as my favorite sport in this hemisphere, as it is the most dynamic and as closest to football (real football, not the American version) as you can get.

So I went to watch my local team with a friend (hola Diego!). We lucked out and the SJ Sharks (see that big shark head in the image? that's where the players emerge from at the beginning of the game), beat the Columbus Blue Jackets 6-3. I am now considering adopting them as “my” team. I wonder who I’ll cheer for when the Canadiens come to play here?

A funny thing that occurred during this game: after the Sharks' Dan Heatley scored a penalty goal, thousands of people (I'm not exaggerating here) started throwing their hats and caps into the rink. The maintenance people worked for several long minutes to clear all the hats of the ice, as more and more were thrown in. Our bench neighbor explained this is a tradition whenever a player scores a hat-trick (3 goals in one game). I tried capturing some of the action, but my Blackberry's camera is quite limited.

4. Zendcon – visit to the far side
Last year in October, I attended PDC, the Microsoft developers conference. This year, I decided to check how the “other side” lives. I followed up my visit to StackOverflow DevDay by visiting Zendcon – the PHP conference sponsored by Zend. I attended several announcements and sessions and enjoyed several lectures about how to run open-source, multi-contributor projects (hint: ego management). It was most informative and convinced me that I have still a lot to learn (and thanks to Eldad for the invite!).

5. Chicago – second time
My next customer visit took me to Chicago again. I got a chance to get stuck in O’hare again (although for a much shorter time). It was the first time I used Windows 7 and XP Mode to teach a class, and I’m very impressed – I decided to carry out all my future training sessions from XP Mode.

This also gave me a chance to catch up with old friends, and try Deep Dish Pizza – the local dish. Hint try one slice – that’s more than enough (and thanks to Ariel for introducing me to Ginno’s).

6. Yotta – it’s not a car
You’ve all must have heard about Gigabyte – a storage capacity size standing for a 1000 Megabytes (which is a million bytes). You have also heard of Terabyte – a 1000 Gigabyte, and maybe even of Exabyte (a 1000 Terabyte), and Petabyte (a 1000 Exabyte). But today was the first time I ever heard of Zetabyte (a 1000 Petabyte) and Yottabyte (a 1000 Zetabyte). Yes, there exists a storage unit that stands for 1,000,000,000,000,000GB (or 10^24 byte). Where, you may ask? According to this TechCrunch article, the amount of data the NSA intends to hold and analyze will be measured in Yottabytes by 2015. Scary.

7. Windows 7 – because they ran out of good OS names
I’ve been using Windows 7 for over a year now. I got the RTM version at the end of August, but the final drivers for my Thinkpad came out on the official release date, 10/22. Other than a couple of driver related issues (mostly the display driver), everything is peachy. I recommend it to everyone, although if you’re using Vista SP2, it’s very hard to find a compelling feature that will get you to update. I'll probably dedicate a future post to my Windows 7 experiences.

Other than that, I’ve been using Visual Studio 2010 beta 2 and I’m very impressed with the debugging and analysis features.

8. SSD – back in a flash
My next upgrade is a Solid State Drive (SSD) so I can get the maximum out of 7. Strangely, right now the SSD stock is in a flux, prompting many online sellers (notoriously Newegg) to hike prices for no good reason (i.e., an Intel X-25M 80GB drive, MSRP $225, will cost you about $400 on Newegg, and is out of stock on Amazon).

I think I’ll just wait for the stock to replenish before pursuing this further, and will of course report in a future post, once I get it.

Tuesday, September 8, 2009

Programming in the Holy Land

My visit in Israel is drawing to a close. The only reason I haven’t been updating my blog lately, is that I was having too much fun doing other things :)

For the last month I’ve been meeting friends, ex-colleagues and potential customers at an average rate of 2 meetings a day. There are several cafés around my apartment where waiters now recognize me by name :)

Since this was mostly a work visit, I’m actually spent a large chunk of my time programming and communicating. Other than the challenge of communicating with customers who are 7 or 10 hours behind (boy, the shoe is really on the other foot for me), I also ran into several development challenges that reminded me of my early startup, 14-hours-a-day, days. Here are 3 basic development truisms that I learned the hard way before, and I’m relearning again:

  1. Your chances of making errors after 2am are close to 100% – I had a call with a Californian customer at midnight Israel time, and just had to finish his class before going to sleep.

    From 1am to 1:52am I wrote and tested a class. At 1:53am I accidentally deleted the class, by pasting the contents of another file into the class file. At 1:54am I uploaded the faulty class to the server, found out it was faulty and spent 5 minutes realizing I just erased all copies of my last 2 hours’ work in a second.

    The time from 2:01am to 2:05am was spent cursing in every language I know (and believe me, I know a couple of bad words in quite a few languages).

    At 2:10am I arrived at the conclusion that this was a sleep deprivation mistake. But did I go to sleep it off? Noooooo. I spent the next couple of hours re-writing and re-testing the class from scratch (even made it better the second time around). I just can’t go to sleep with an open problem – but those were 2 hours of my life I could have saved had I let the problem wait till morning.

  2. An extra pair of eyes for 5 minutes saves 5 hours - when you code alone you might make tiny errors/omissions that are immediately obvious to someone else on first sight, but which you may fail to see even after checking your code a 100 times. I spent a few hours looking for an issue (see #3 for description), but as soon as I discussed my frustration with another developer, 5 minutes into the conversation he already put me on the right road to the solution. I guess everyone needs a sounding board once in a while.

  3. There is such a thing as “too thorough” – this section is directed at the idiot developer who decided Ajax calls should be cached in IE8. [Feel free to skip the nxt paragraph if you're not interested in the nitty-gritty].
    Explanation: Ajax (Asynchronous JavaScript And Xml) is a web programming technique that allows getting data from the web server to a web browser without refreshing the entire page. It’s meant to allow developers to update parts of the page dynamically, without requiring the user to refresh his browser (think of stock tickers, or news headlines that change constantly, while you watch). I emphasized the word “dynamically”, because it contradicts the word “cache”.

    While caching pages, images, scripts and style sheets on the client side improve performance and make sense, caching dynamic requests makes no sense at all. And every browser maker in the world knows this – but Microsoft. IE8 caches Ajax calls - meaning that if you call the same URL over an over again, every call past the first will return the same data – regardless of the fact the data has changed at the server.
    I just couldn’t understand why I’m getting the same data when another open IE tab displayed different data from my server.
    The person who assisted me (thanks Dror!) pointed me to this trick. Basically, you add a random number at the end of the URL, thus “cheating” IE8 to think it’s different than last call, and going to the server to get the results rather than the cache. Upon further research, I discovered that since I’m using jQuery’s $.ajax() function to make my ajax calls, I can simply pass it a parameter {cache: false} and get rid of caching in IE8. What I later found out is that all this parameter does is add a random number at the end of the URL behind the scenes… :)

    Oh well, guess we’ll have to cheat IE8 until IE9 comes out.

Finally, I wanted to report that less than a year after reporting on the early beta of Windows 7, I finally installed the RTM version and it’s up and running nicely on my T400 (in fact, I’m using it now to post this). Even the virtualization features work nicely – albeit slower than VMWare. So on the OS front, hooray to Microsoft!

My only beef is with the lazy engineers at Lenovo who apparently didn’t have enough time to develop all the necessary drivers, despite having access to a version of Windows 7 for more than a year…

Friday, April 24, 2009

Windows 7 RC and New Virtualization Features

Microsoft today confirmed that the RC build of Windows 7 (aka build 7100) will be released to MSDN subscribers on April 29th and to the rest of the world on May 5th. So you could wait like the rest of us, or grab a torrent - someone already leaked it.

I've been using consecutive builds of the beta successfully on 2 machines now, and I truly believe 7 is going to be what Vista was supposed to. The slew of new features and GUI tweaks I started using make it a bit inconvenient when I return to my production OS.

Also today, Microsoft announced a new feature that will allow people (and developers) who are still attached to XP to migrate easily. It was formerly known as Virtual XP (VXP), but Microsoft renamed it XPM - XP Mode.

Essentially, this is a virtual window running Windows XP, inside Windows 7 - without the need to install VPC or VMWare. The virtualization functionality is part of the OS. The feature will be released as an add-on to the system, and will be free for the business, premium professional and ultimate versions of 7. Bear in mind, you'd still need an XP license to use it - just like with every other virtualization software. You can read more about the feature in Paul Thurrott's blog, and see some screenshots as well.

It remains to be seen if other operating systems could be installed in XPM. Oh, who am I kidding - 5 seconds after it's out, someone will hack it to run Mac OS X smile.

And while on the subject of virtualization: last week Microsoft officially released MED-V, their desktop virtualization solution (based on a product by Kidaro, an Israeli start-up they acquired). While I recommend reading more about it, essentially it allows running separate applications in a virtual environment (not a full machine). This allows for compatibility and manageability of applications in enterprise environment.

Example: if you're using IE8, but all your corporate software can only run on IE6 (and the two browsers cannot be installed side-by-side), you could install IE6 into a virtual MED-V environment (perhaps running an older OS) and have the 2 browsers up and running at the same time.

With all those virtualization features integrated into the current and next generations of the operating system, I have to wonder what does VMWare plan to do? Perhaps concentrate on Linux or Mac OS? Will virtualization become OEM technology like VNC and web remoting? Interesting times ahead...

Tuesday, April 14, 2009

Mini 2

I missed the whole netbook revolution. I already owned a full-fledged laptop, and I couldn’t understand why would people pay $300 for an underpowered, space-limited, hardware-crippled machine, when they can get a full laptop for around $500.

But then I read a post about installing OS X Leopard on a Dell Mini 9 and I became intrigued. After reading some more, I found that many people treat their netbooks as platforms for experiments and expansion. I had some spare money, so I decided to get me a Dell Mini and hack at it.

The title of this post comes from the fact that I already own one Mini – a Mac Mini I got 2 years ago.

Hardware

I read a bit (I recommend the MyDellMini forums – so much good information and so many helpful people) and decided to go with a white Dell Mini 9, with:

  • 8.9” screen at 1024 x 600 (wide but short)
  • Onboard Intel graphics card
  • Intel Atom N270 1.6GHz CPU
  • 1GB of RAM
  • 32GB Solid State Disk
  • 1.3M camera
  • Ubuntu 8.04 OS.

All in all, around $350, before sales tax and Arnold’s “green” tax ($8 on any screen bigger than 8” – damn, missed it by 0.9” smile). I skipped the 2GB and Bluetooth options, as a manual upgrade is quite easy and cheaper – more on that later. in hindsight, I could have given up the 1.3M cam and gone with the 0.3, and probably taken the 512MB memory option – that would have saved a couple of $$$. In the SSD department, it seems like Dell’s margin is smaller, as these disks are still not much cheaper to get on your own.

The machine is quite light (2.4 lbs == 1.1Kg), but sturdy. The form factor allows me to use it on airplanes, without fearing the person in front of me will lower his seat and crush my screen (as happened to my poor T42 sad). The keyboard is better than other netbooks’, but some of the keys are weirdly placed – not fun for touch typists.

It has an extremely bright LED screen, that lends itself well to viewing videos in full screen mode. It has 3 USB 2 ports, a VGA port and a multi-card reader - which makes it easier to extend storage. It offers wireless-G card and Ethernet (which, let’s admit, rarely gets used on a laptop) in the connectivity department.

The 4-cell battery lasts ~3 hours (less if you use full brightness, volume and disk usage). I can easily take this netbook with me anywhere. It’s great for casual browsing, emailing and a couple of small games.

OS

My machine came with Ubuntu 8.04 installed. I formatted the HD, but I still retain a recovery disc and can download a newer version for free if I ever intend to return to it. From the few hours I spent playing with it: it’s usable, but not enough bells and whistles for my taste.

The first thing I did was test Ray Ozzie’s promise that Windows 7 runs well on a netbook. I slapped the latest build I could find of the 7 beta (it was 7057 at the time, I since upgraded to 7068). The installation was remarkably easy – much easier than all the online guides described (i.e. this or this).

Here’s the list of steps I took to install Windows 7 on my Dell Mini:

  1. Start by formatting a USB drive to FAT32. The key here is to do this on a Vista machine (which I have installed on my main laptop), or on another 7 installation. This promises that the USB drive will be bootable. Copy the contents of the ISO DVD to the formatted drive (easiest way I know is to open the ISO using WinRar and just drag the files out)
  2. Go into the BIOS settings (hold the ’0’ key while the machine is booting) and enable “USB BIOS legacy support” under the “Advanced” tab. This will allow you to boot from your USB drive. Don’t forget to come back here after the OS is installed and disable the option, or else you may suffer crashes on hibernation or sleep.
  3. Connect your USB to your machine. On the next reboot, hold the ‘2’ key and select to boot from the USB drive.
  4. Install the system. Be sure to remove the USB drive when the installer reboots the machine.
  5. [optional step] After 7 is up and running, install the drivers. While most standard Dell drivers would work, look at this list to get a better fit for some components. You can stick with Window’s recommendations, but may lose some functionality (like touchpad functions)
  6. [optional step] Run these tweaks to improve the SSD’s performance. As a rule, an SSD is amazingly fast on read operations, but much slower on write. And defragmenting it too often may damage it.

And there you go, a perfect Windows 7 installation (click any image to see a bigger version):

It runs quite smoothly and leaves about half a gig free to run after the OS is up – just like Ray promised. It takes 25-40 minutes to install/re-install the OS. Upgrading 7 to a newer version works just as smoothly, but surprisingly takes a bit longer. The added benefit is that you do not need to re-install drivers or applications, as the installer is smart enough to upgrade just the right files.

The OS itself runs quite well, with Aero and Glass on. It chokes from time to time due to SSD write operations. I may turn off the paging file and see if that solves that problem. Here’s an image of the computer’s performance, driven down by the lackluster onboard graphics, and slow CPU:

And so, despite purchasing the machine to be used specifically as the cheapest Mac available, I’m still running Windows 7. I can’t wait for that OS to come out – it’s amazing.

Accessories

I bought the following accessories to make my life easier:

  1. Neoprene sleeve to protect the laptop from scratches: $4.50

  2. Bluetooth dongle to allow me to use my BT mouse: $2.52
  3. 16GB SDHC card – I got the A-Data card for $27 and I manage all my multimedia files from it.

Hacks

I was surprised to hear Dell allows you to upgrade your machine and still keep your warranty (limited to memory and SSD). They actually published the service manual, explaining how to upgrade or change the bits and pieces.

I got a 2GB DDR2 SO-DIMM (200 pins) for $18 (you could probably get it for $10 today), followed the easy instructions and doubled my memory in 5 minutes.

For $15 I got an Intel 4965 AGN wi-fi card off eBay, and upgraded my Mini to wireless-N (expect a future post discussing upgrading my router to wireless-N).

I hope to add a GPS to the main body in the future – I’m currently reviewing several hacks.

Final thoughts

Overall, I highly recommend the Dell Mini. It’s versatile, extensible, and useful. I love the form factor and the set of features. I use it on flights and whenever I don’t feel like schlepping my T400. It might be slow for some applications and definitely doesn’t deal well with complex 3D graphics, but this is not its purpose. For light writing, browsing, emailing and development (I installed Visual C# express on it) – it’s great. And the price is right.

Monday, January 26, 2009

IE 8 RC1 is Out

Microsoft just released the first Release Candidate of IE 8. Aside from some bug fixes, performance improvements and compatability enhancements, the new version offers a new service that allows you to subscribe to a list of sites that are known to not support IE 8 well. For those sites, IE 8 will automatically switch to comaptabilitymode (esentially using IE 7 rendering engine) without bothering you to switch manually.

You can download the version of IE 8 for your OS here, and read a review of the full list of changes on Paul Thurrott's blog.

One interesting note: for some reason, this version of IE 8 will not work in Windows 7 Beta. Microsoft acknowleged this situation, but did not explain it. If you're using 7 right now (meaning you're using beta 2 of IE 8 that came pre-installed), you'll have to wait for the final release (although I assume it will be pushed on you regardless of your wishes).

One final note: this post was writte on IE 8 RC1. It is much faster, but the text cursor misses the actual text - it's either one space behind or ahead the character I'm typing. I wonder if this is a bug, a feature, or incompatabilty with the Blogger site...

Friday, January 2, 2009

Test Your Web Site

For web developers who need to test their site in different versions of IE, Microsoft now provides virtual machines that contain several versions of IE (IE 6, 7, 8b2 on XP SP3, IE 7 on Vista).

The VMs were built for Microsoft's Virtual PC (free download), but can also be used in VMWare Workstation (a conversion takes place when you first open the .vmc file). The OS license in the VM runs out in April '09. Until then, use the VMs to test your site, or to surf safely, from a self-contained environment.

Monday, December 29, 2008

Microsoft Product Code Tracker

I've been following Mary Jo Foley's Inside Microsoft blog (and earlier, her column), for years now. She has enough sources in Redmond, and enough knowledge about Microsoft, to call some of their moves well in advance.

Last month at PDC, I was overwhelmed by the number of technologies, products, frameworks, initiatives, etc. that were announced. Mary Jo's latest column attempts to put some order to the mess, by including a Code Tracker document, spelling out the code names, meaning and projected release date of each technology:
Can't keep Midori straight from MinSafe? Unsure how Red Dog, Cosmos and Zurich fit in Microsoft's cloud OS picture?

Tracking Microsoft's myriad codenames is an (almost) full-time occupation. And Mary Jo Foley knows that better than anyone, as she spends many of her waking hours tracking down the latest names in the hopes of being able to better keep tabs on what's coming next from the Redmondians.
Here's a link to the helpful PDF file (I copied it to my SkyDrive, just to save you the need to register to ZDNet to get it).

Thursday, December 18, 2008

Back to Basics

Like many computer enthusiasts, I started my programming career learning BASIC. I was 11 and my community center offered "programming lessons". I was into electronics at the time, and was well on my way to complete my first radio, when I peeked into the adjacent class one day, and saw a device that had more buttons than the device I was tinkering with.
It was love at first sight.

The first computer I learned to program on was an 8-bit, 32Kb RAM BBC model B. The language was BASIC. My first program was the BASIC version of the quintessential "Hello World" program:
10 PRINT "HELLO"
20 GOTO 10
The program filled the screen with endless lines of text (at least until you hit the "break" button) and my heart with joy.

Fast forward 2 years. My parents get me my first computer, an Apple IIc. All their friends advise against it - they claim it's too much to spend on a toy. I spend years taking AppleSoft BASIC to the limits, breaking some of its rules along the way (if you've ever developed in AppleSoft, I'm sure you're familiar with the peek and poke commands), before graduating to PASCAL. The Apple also introduced me to the mouse (well before a PC had one) and the concept of a mobile computer (while not truly a laptop - it lacked a battery - the IIc had a small, foldable screen, and a laptop factor).

At high school, I dabbled a little in GW-BASIC and MS-BASIC - but the magic was gone. It was time to move on to C.

Years later, a surprise revisit: Visual BASIC. It was the best and easiest way to get into internet programming. With easy-to-design clients, VBScript on the server side, ADO to simplify data access... Until today I use VB 6 to slap together fast mockups that are actually functional.

My language of choice now is C#. Yes, VB.Net is there, but it's not the same anymore. Fully object oriented, and the use of goto is frowned upon (although if you ever developed a compiler, you realize it still has its moments). And then, just the other day, I got a link to a new Microsoft project called Small Basic.

The idea behind the project is to create a language and IDE that would introduce a new generation of kids (and kids at heart) to the joy of programming (and pay attention to the fact I'm not saying "developing": development is work, programming is fun). It's easy and simplified on one hand, actually borrowing turtle graphics from LOGO. On the other hand, it provides a deep set of features, such as multimedia capabilities, graphics, access to Flickr, and other innovative packages.

Most of all, I like the IDE. It's simple, clean, and with the best text completion implementation I've ever seen:
Above you can see my Small BASIC "Hello World", and the text completion "wheel" in action.
The IDE depends on .Net Framework 3.5 and the download is 4MB (in this day and age of bloatware, a miracle in itself). You can find it here. Currently it's at version 0.2.

I really hope that this tool will introduce a new generation to the wonders of programming. As for me, I'm falling in love again...

Wednesday, December 3, 2008

Vista SP2 Beta Available

Microsoft just announced that the beta for SP2 for Vista and Windows 2008 will become available to MSDN subscribers on Thursday (they call it CPP = Customer Preview Program).

The installer will include the SP for both operating systems, as well as all previous updates since SP1.

Amongst the new features you can find:
  • Better Wi-Fi connectivity (as well as a new Wi-Fi connection wizard called WCN = Windows Connect Now)
  • Support for non-Intel CPUs (Like the 64bit VIA)
  • Support for Bluetooth 2.1 (including BT stereo etc.)
  • Support for a new file system called exFAT (sounds like a diet plan to me smile) for Flash memory devices
  • Hyper-V support for better virtualization
  • An improved installer that can remove software and restore the macine to pre-SP2 state
Read this for a full list, including download sizes and installation instructions. Noticeably missing are any promisses of performance iimprovements. For that you'd have to wait for Windows 7, I guess wink.

Microsoft would like everyone to install and test the beta as soon as possible, and start sending them feedback. Rumor has it that the proposed release date is April '09.

Sunday, November 30, 2008

The Search for the Laptop Continues

As you may remember, I'm still searching for the ultimate laptop. I've been scouring reviews web sites (e.g., NotebookReview.com) reading about several possible options (Sony Vaio Z series looks amazing, and so does the new Samsung Q series). I ran across 2 documents (put out by Microsoft, no less) that advise on getting a laptop that's right for you.

The first is called Laptop Selector, outlining all the features and attributes laptops have nowadays, and which are important in making your decision. The second is simply titled "10 questions to ask when buying a computer", detailing the purchasing process and the questions you should ask the seller before committing to a deal.

Bear in mind that there might be a Microsoft angle in the first document (i.e., stirring you to buy a Windows supporting laptop), but it does contain quite a good review of the laptop-purchasing decision-making process.

I've uploaded both documents to my SkyDrive to ensure they remain available (don't know what a SkyDrive is? Read this).

Sunday, November 2, 2008

How to Add a Web Slice your Blog

One of the cool new features in IE8 is called Web Slices. It allows users to subscribe to a part (slice) of a web page, and get notified when it changes.

Think about the following scenario: suppose your only reason browse to CNN's homepage to get the Dow index. Rather than point you browser at the address, load te entire page every time (including countless images, flash files etc.) and hit F5 every couple of seconds, you mark the area of the page that interests you, the browser adds a live link to it in the links bar, it prompts you when the contents of the slice change and actually shows you the content.

So, on the last day of PDC I took a hands-on lab on Web Slices and found out they're extremely easy to implement - just 3 HTML tags needed. I planned to add one experimental slice to the Twitter area of my blog (lower left side on the home page).

The way a Web Slice manifests itself in IE8 is by showing a green frame and icon when you hover over the area where the slice is:


Clicking the green icon, adds a live bookmark to your toolbar, that shows the slice's content when pressed:
Another nice feature is a drop-down menu that shows you all subscribable content on a page, including slices and RSS feeds - so you don't have to hunt them down by hovering over the page:
So, here's what I thought I needed to do: go to the Twitter Page element, add 3 HTML tags and publish. Here's the HTML code of the Twitter element:
<div id="twitter_div">
<ul id="twitter_update_list"></ul>
<a id="twitter-link" style="display:block;text-align:right;"
href="http://twitter.com/TravelTechGuy">follow me on Twitter</a>
<script src="http://twitter.com/javascripts/blogger.js"
type="text/javascript"></script>
<script src="http://twitter.com/statuses/user_timeline
/TravelTechGuy.json?callback=twitterCallback2&count=5"
type="text/javascript"></script>
</div>
To make this into a Web Slice, you need to do the following:
  1. Surround this section with a <div> with a class="hslice"
  2. Add another element (a span or an h1 or h2) with class="entry-title" - to give the slice its name
  3. Surround the rest of the content with a <div> (or a <span>) with class="entry-content"
And that's all. Wrong!

Problem 1
As you can clearly see, this HTML invokes a JSON call, using JScript to the Twitter site to get content for the list. That means that if you subscribe to the slice as is, you'll get an empty page. For security reasons, a slice will not execute the code for you, to prevent a security attack known as XSS (Cross Site Scripting).

It took me awhile to realize that I have to serve the slice with the content already in it - so I actually had to serve the user another HTML page. Luckily, Microsoft prepared for such an eventuality, and you can define your content provider to be another HTML page, by including an invisible a element, with a rel="entry-content":

<a style="display:none;" href="http://www.travelingtechguy.com/forblog/twitter.html"
rel="entry-content"></a>


The user will never see the tag - it's there for IE's sake.

Problem 2
Since the page was disconnected, none of my pages design carried over, and the element looked like a simple bullet list. I had to dig through my Blogger template and copy some CSS over to that page (Blogger doesn't make it easy to copy its CSS, since it's full of macros and variables, that serve the GUI template editor). I finally was able to de-reference all variables and get a similar design.

Problem 3
The Web Slice is displayed in a square by IE8 - and you cannot control its dimensions. Think of trying to show your page in an iframe of a certain size that you don't control. This resulted in a cut list - you could only see 2 items instead of 5, and they were cut at the edges.

I solved that by adding a scrollable div around the list (as you can see in the image above).

You can see the source of the page on my site.

So, it took longer than the 3 minutes I thought it would take - but now I know how to turn the rest of my elements to Web Slices. I know Microsoft has a list of sites that have already started implementing Web Slices and I hope more will take it up.

For the FireFox purists, rumors are that FF 3.1 will start support for Web Slices as well. In the meantime, enjoy my Twitter Slice and expect more in the future.

PS: showing HTML code in a post is such a hassle. You have to code the whole thing by hand (i.e. change every < to &lt;). Next time I'll just copy-paste an image of the code from my editor smile.

Thursday, October 30, 2008

PDC 08 - Day 4

Final day of the conference. My day actually started at 3am. One of the giveaways at the show was a bouncy rubber ball that emits shrill sounds while bouncing. Sadly, this specimen decided to start chirping at that odd hour. I was startled awake and it took me several minutes to locate the source of the noise. This thing has no 'off' button. I thought about hurling it out of my window, but 21st floor rooms' windows cannot be opened (although it does bring to mind an interesting question in physics: if you drop a bouncy ball from the 21st floor, how high does it jump back? surprised). Finally, I resorted to throwing it to a trashcan outside my room.

I attended 2 lectures today: one on RESTful web services (how to switch from SOAP and other heavy web services protocols to REST), and the other on extending Visual Studio.

The second lecture had some eye-opening samples on how VS can be extended - even in the current version. Several things we can do today:
  1. Download (or develop and upload) extensions from the Visual Studio Gallery.

  2. Build scripts and automation into VS, using DTE.

  3. Distribute applications that look like the VS UI, using VS Shell.
Then came the VS 10 samples. Since VS 10 is written entirely in WPF, it is extensible by nature:
  1. The Start Page can be configured and reprogrammed.

  2. Extensions can be developed and distributed by just copying assemblies around.

  3. You can even manipulate the way VS shows code, or comments - the sky's the limit.
Finally, I took a hands-on lab on WebSlices, a new IE8 feature. I liked it so much that I'm now at work on incorporating it into my blog (stay tuned).

I actually got to the airport ahead of schedule and managed to catch an earlier flight home. I just received an email from Microsoft informing me that all lectures and material have been uploaded to MicrosoftPDC.com - go check them out. I was also invited to next year's PDC (November 17th '09 - mark your calendars).

Final observations:
  1. Many people were blogging and twittering from the show. Some just typing, others snapping pictures or filming. All in all, I assume many people around the world got the news in near real-time. The internet is amazing.

  2. There were far less presenters this year (did I hear someone in the crowd say "recession"?). I couldn't understand the business models of some of the presenters - why put so much money in designing UI controls that Microsoft provides for free?

  3. Over the last 2 years, in Tech-Ed and in online education videos, developers and presenters used Windows XP and 2003 to demo. No more. This time ALL presenters used Vista (or 7) on their presentation machines. Guess Microsoft finally started forcing people to eat their own dog food (although one Microsoft developer I spoke to confessed that internally they are using proprietary bug tracking system and source control system, rather than using VSTS and SourceSafe, like they want us to).
That's all for this PDC. I'm now hard at play... I mean work at testing the new operating system, frameworks and demos. Software development is fun again... smile

PDC 08 - Day 3

Another day at the PDC. Today's keynote introduced some of the projects Microsoft Research Labs (read my review from awhile back). Some, like a new generation of Surface computer that can read hand gestures made above the table, and can project content on other surfaces - look nice, but not really practical yet. Others, like Mesh and Worldwide Telescope look more useful.

I've attended some sessions and pariticpated in a couple of hands on labs. And then I got an hour to play on a Surface, by myself. Throughout the conference, there were several Surface machines. But they were always surounded by people. Some were playing the Scavenger Hunt game, others using musical instruments, or sharing photos. While I can't immediately see private applications for it (and the price point is still high for the private sector), I do see some uses in the commercial sector - as a planning tool, or as a fun tool (it's already used in some casinos).
Oh yes, I actually got to see one crash. It runs Vista Business as its OS smile.

I believe touch interaction is the future. Windows 7 supports it out of the box, and for $1500 you can now buy a HP TouchSmart computer that contains a touchscreen, with Windows 7 drivers. Those HPs were used throughout the show for demos and hands-on labs. In fact, this is one of those "adult moments" where I have to convince myself that although this looks cool, i don't really need it smile.

Tuesday, October 28, 2008

PDC 08 - Day 2

Today I finally got what I came here for: the official announcement of Windows 7. It was presented by Steven Sinofsky, senior VP at Microsoft.

UI-wise, 7 looks like Vista, with some UI tweaks (I started writing them down, but found this post that does a nicer job, with pictures to boot - ah, cross-posting is fun smile).
I personally liked the following features:
  1. Toned down UAC
  2. Ability to create and mount a virtual disk from the operating system - and even boot from it!
    I'm sure VMWare are NOT thrilled about this particular feature
  3. "Libraries" allowing better collection and search of data across disks and computers
  4. Better device handling
  5. Much smaller footprint - it was booted off an EEE PC, 1Ghz CPU, 1Gb of RAM - and there was till half a Gb left


  6. "Homegroup" - Auto-discovery for network. 15 years after Windows 3.1 for Workgroups, Microsoft manages to get networks right
  7. Customizable shutdown button - to solve a major Vista annoyance
  8. You now control the popups in the taskbar from a central location
Touch features were less interesting to me - touch screens have been around for more than 10 years and other than some particular uses, they are not widespread.

As for timeline, we got the pre-beta today (on a nice 160Gb WD hard disk - along with tons of downloads, demos and virtual images). Beta 1 is coming at the beginning of 2009. RTM was not announced - this time Microsoft will work on ity until ready.

Sinofsky mentioned the bad rep that Vista received, including in competing commercials (I assume he meant Apple's "I'm a Mac - I'm a PC") and while everyone laughed, he looked visibly hurt. He claimed Microsoft has learned from the critisism and will provide a better product in 7 as a result. He called to developers to start developing 64-bit code.


I was disappointed to see they still have versions of the OS, similar to Vista ("Premium", "Ultimate" etc.). Still, I can't wait to get home and install it.

We then got a taste of VS 2010 and .Net 4.0. Many features, tying into Azure, WPF, Silverlight etc. The entire VStudio IDE is built in WPF and is therefore exstensible by the user (the demo showed how you can show comments as bubbles rather than text, and how a bug number in a comment turns to a link to the bug in the tracking system).

We then got a whiff of the new Office Web Applications. I was blown away. using WPF and Silverlight, you can now get an exact replica of all Office apps in your browser. What's more, several people can work on the same document at the same time (from desktops or the web and the content gets updated in real time.

Don Box than regaled the crowd with a quick smart session using the new .Net services to expose some of his computer's content to the web using Azure and other new techniques.

I attended some interesting sessions today - some too technical to discuss. But one new feature in 7, called "Troubleshooting packages" is worth waiting for. Common problems can be solved automatically, using a series of scripted tasks. The demo showed how a movie played without the sound. The sound trobleshoot package was double-clicked, and the script started the audio service (which was turned off on purpose) and un-muted the speakers. This opens a lot of opportunities.

Amongst the toys and swag we received from presenters, I like one the most. It's a device with an accelorometer, a light detector and several other features - all accessible through an SDK provided on a CD. I wonder what uses for it I'll come up with...

The day ended with a major Halloween party at Universal Studios. The park was closed to the public. Smoke machines worked overtime (it was impossible to see in some sections) and tens of actors dressed as monster, zombies and clowns with saws (whare is that from?) harassed the people. I'm not into horror films, but it was fun.

PDC 08 - Day 1

The surprise of the day came to me while listening to Ray Ozzie's keynote - the main thing Microsoft was announcing today is not Windows 7, Visual Studio 10, or even .Net 4. The "new big thing" from MS is "Windows Azure" - a new cloud web services platform (find a definition here).
Welcome to Google and Amazon land, Microsoft.

To differentiate themselves from the competitors offering (see Cloud vs. Cloud), MS is offering full .Net support for the new platform, including VStudio integration, SQL Services layer and other ways to tie you in. They promise a "reasonable price model" to be announce later (probably at 09).
We immediately got to register and play with the new platform (registering and trying it is open to the public, but expect some delays - I've already seen it crash several times, due to traffic). It's nice, but nothing I haven't seen before.

One of the demos they show is called Bluhoo - a mobile app utilizing bluetooth on mobile device to locate friends next to you and present them as likable creatures on the screen - now, how many of those have we seen in recent years, and how many survived? Don't people get the privacy ramifications of leaving my bluetooth open and discoverable at this day and age?

In contrast, the demo of the application built for the Ethiopian Education Ministry, utilizing geo-location seamlessly, made a lot of sense.

I've attended several "Cloud" sessions today. For some reason, they tended to be more demo than theory - which turned them into boring VStudio screencasts. Again, this was a bit of a letdown.

The exhibitions expo this year is much smaller than Tech-Ed standards (did anyone say "recession"?) and was less fun to attend.

My chief hope is that Day 2's keynote will start addressing the new platforms (at this stage, it looks like it will - Microsoft just started releasing Windows 7 videos on their site).

In the meantime, I found the ideal way to blog about a conference: I use twitter to post from my Blackberry (using TwittwrBerry) as things happen. I then go over my twitter stream later, collect my thoughts into a coherent article, and post to the blog. If you look at the lower left side of the screen, you can see my twitter posts. Follow me on twitter to get them in real time.

Monday, October 27, 2008

PDC 08 - Day 0

This week I'm in LA for the Microsoft Professional Developers Conference.
Unlike Tech-Ed, the annual conference, PDC is held only in years when Microsoft has significant announcements to make.

This year they will be announcing Windows 7, .Net FW 4, Visual Studio 10 and several cloud-computing related technologies.

The conference officially starts on Monday, with a keynote by Ray Ozzie - Microsoft's chief software architect - but several pre-sessions were held today. My colleague and I took the chance to participate in a Microsoft QA lab, allowing you to install your exisiting software on an alpha release of Windows 7.

It was an interesting experience. While our software outright failed to run on both 32 and 64 bit versions of W7, we did collect valuable information that will allow our engineers to address the situation.

UI-wise, the releases of W7 we've used look just like Vista, with some tiny GUI changes here and there. The kernel has changed, but not much more - from what we could see. Still, it's an early build and I hope that later builds will utilize some of the new features promised (like touchscreen support and better performance).

I'll attempt to report at least once a day on news as they come in. Hopefully not at 3am again smile (blame that on my jet lag from the UK trip I took last week).

Saturday, October 4, 2008

Red Ring of Death

While in Israel, I purchased a couple of games for my Xbox 360 on eBay. Wait a couple of months, and get that $60 game for $20 including shipping.

But when I got home, I had an unpleasant surprise: I turned my Xbox on and got the dreaded “Red Ring of Death”. RRoD is the codename for a general hardware failure, signaled by 3 flashing red rings on the front of the console. You might say it’s like a bluescreen on a PC (or a frozen rainbow cursor on a Mac), only worse: restarting the console doesn’t help.

RRoDs are common in early Xboxes, due to shoddy components and QA procedures used by Microsoft, the Xbox overheats, sometime frying some of those cheap components. Microsoft has since improved the quality of the product, but many of the older system are still failing.

Since my machine is at least 2 years old, I wasn’t that surprised – just disappointed. My warranty has run out, but I called the Xbox support line anyway (1-800-MYXBOX) and was delighted to find out that MS took responsibility and retroactively extended the warranty for Xboxes suffering from RRoD.

So, I sent my console to their support center (they pay for the shipment and the box) and have just received a different (new or refurbished, I can’t tell – but it’s not my original) console, an apology letter and a free Xbox Live month.

So now I’m happily fragging terrorists in Rainbow Six Vegas 2.
Thanks Microsoft! (for the great service, not for creating the problem in the first place smile)