Posts Tagged ‘.Net’

Useful colour picker utility

Friday, October 23rd, 2009

Often when working on your latest Windows or web app you’ll come across a situation that involves identifying the colour of a button, icon or some other control in your application.  This process often involves taking a screen shot of your app, loading it in to Photoshop and using the eye dropper tool to identify your colour.  This is long winded and frankly boring.

We’ve made this process much easier using a neat little .Net system tray application we’ve created.  The app runs in your system tray, you click and hold your mouse on its icon, drag over the top of the colour you wish to grab, and then let go to copy the hexadecimal code of your selected colour to your clipboard.  It couldn’t be easier.

Atlas Colour Picker Screenshot

Atlas Colour Picker Screenshot

We’ve created a video showing the colour picker in action, here’s the source code if you want to see how it works and/or modify it and here’s the executable if you just want to use it.

Support for RGB colours would be a nice feature to add, as would support for Windows 7 as this isn’t supported due to the new style system tray.  If you do make any changes to the code send it on to us and we’ll make it available via this blog post acknowledging your work individually of course.

Love the Atlas Team.

P.S. We’ve also created a neat Flash WordPress plug in to assist you in modifying your themes via the administration panel that we’ll upload in the coming weeks so keep your eyes peeled for that if you use WordPress.

Making your .Net HTTP module for URL rewriting work in IIS

Wednesday, July 15th, 2009

For an application that is currently under wraps we needed to implement URL rewriting. We did this using a technique that involves the use of HTTP modules and is detailed on this site http://www.knowlegezone.com/documents/89/Simple-AspNet-Url-Rewriting-Tutorial-Http-Modules/

When we attempted to upload the HTTP module for some reason it simply wouldn’t fire and therefore our URL rewriting didn’t work.

After some furious Googling we came across the solution to this problem. Here’s the steps we took:

- Load up IIS management console
- Load properties for the affected site
- Open the Home Directory tab
- Click the application configuration button
- Click the Insert button and enter a path to the file that we wish to process requests. In this case the file is c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll
- Untick the option to check that file exists
- Click OK on all of the screens and close out of the management console

Your URLs will now be rendered accordingly using your HTTP module. Not simple but at least you know how!


Bookmark and Share