Author Archive

Yet another ViewStack control for Silverlight

Tuesday, December 15th, 2009

In one of my recent Silverlight projects I had to use a ViewStack control. There is few of these already available here and there but I thought it might be fun to build new one from scratch. As image speaks more than words here is the sample.

And here is the source code.
Hope this helps anyone.

Flex Builder 3 Linux Alpha 5 available on labs.adobe.com

Wednesday, November 25th, 2009

I’m sure everyone who’s interested in Flex Builder for Linux already knows that by following Twitter and Adobe JIRA. So what’s exactly happened? Today, just 5 days before Flex Builder alpha 4 was to expire Adobe released an alpha 5 update on labs.adobe.com which is going to expire in 401 days.
I have the gut feeling [...]

Printing data on multiple pages with Silverlight 4

Friday, November 20th, 2009

This week at PDC09 Microsoft unveiled latest Silverlight release – first beta of version 4. One of the new features is printing support. There is a great video introduction to printing published by Tim Heuer. It show the basics, after watching it my first question was how to print the data on multiple pages. Here [...]

Installing and connecting Apple Built-in iSight in Windows 7 x64 running under VMWare Fusion

Thursday, November 19th, 2009

It took me a while to figure out how to install Apple Built-in iSight driver so it could be used in Windows 7 x64 running inside VMWare Fusion. I have finally found a solution here.
Installing the drivers:

run cmd.exe as Administrator
D: (or whatever the drive letter of mounted CD is)
cd "Boot Camp\Drivers\Apple"
msiexec /i BootCamp64.msi

It will take [...]

I can now start using Safari, ClickToFlash FTW

Tuesday, October 6th, 2009

For a long time my "browser of choice" was Firefox because of fantastic Flashblock add-in. Today I found out that there is similar add-in for Safari called ClickToFlash. Here is a nice article describing what it can do and here is the link to a github project. Pefect!

ColdFusion compiler is broken

Tuesday, September 22nd, 2009

Following on a tweet from Sean Corfield, I couldn’t believe it is possible to create a function called if, else, while and so on as well as declare variable called var. Here is the code that may hurt your head:

<cffunction name="if">
<cfargument name="val1" />
<cfargument name="val2" />
<cfif val1 eq val2>
<cfreturn true />
</cfif>
<cfreturn false />
</cffunction>
<cffunction name="hello">
<cfset var var [...]

Greasemonkey script to remove unwanted results from Google

Tuesday, September 15th, 2009

For myself, for future reference:

// ==UserScript==
// @name Expert blocker
// @namespace my
// @description Eliminate Experts Exchange results from Google searches.
// @include http://*.google.com/search?*
// @include http://*.google.co.uk/search?*
// [...]

ColdFusion to Flex serializer needs better error messages

Wednesday, September 2nd, 2009

I’m using Flex with ColdFusion for a long time now but sometimes I really can’t stand these two products together. I’m sending nested CFCs through the remote object back to Flex so ColdFusion has to serialize them to the form that may be understood by Flex. But I’ve got an error, somewhere I have an [...]

Flex DateFormatter bug, missing January 1970 month name

Thursday, June 18th, 2009

Today, while working on a small piece of code I discovered something that appears to be a DateFormatter bug. I was using following DateFormatter:

private var formatter:DateFormatter = new DateFormatter();

formatter.formatString = "MMMM";

to display just the month names. I didn’t really care about the year when constructing new Date so I thought I would pick 1970. [...]

Flex DataGridColumn width set to the longest value of that column

Tuesday, June 16th, 2009

There was an interesting question on stackoverflow.com today. Some unnamed user asked:
Can we change the width of the datagrid column dynamically by clicking on the border of the column in order to display the complete string which is too long to be displayed and needs to be scrolled ? If so, How ?Also, how can [...]