Wednesday, 6 February 2013

How to easily create the CSS and image for a CSS Sprite

CSS Sprite is a technique to reduce the number of requests the browser makes to the server by combining 'many' images into a single image. CSS is then used to display a portion of this large image to the user in place of the single image.

This is all well and good but for most people sticking together lots of images and working out the display co-ordinates won't be a whole lot of fun. Enter CSS Sprite Generator.
- http://spritegen.website-performance.org/

With this web site you upload a zip file containing all your images, it gives back a single image along with the requisite CSS to display. Resulting in a faster loading web site with minimal effort.

There are a few other sites that have the same functionality
- http://csssprites.com/
- http://cssspritegenerator.net/
- http://www.spritecow.com/

Tuesday, 4 December 2012

Determine a browser CSS3 capability and degrade gracefully using Modernizr


Support of HTML5 and CSS3 is improving all the time with the regular release of new browser versions. However this does make it difficult to keep up to date with what is supported by what.

The following two web sites provide similar functionality to help you determine what is fully or partially supported in what browser.

- http://html5please.com/
- http://caniuse.com/

Modernizr is described in wikipedia as

"Modernizr is a small JavaScript library that detects the availability of native implementations for next-generation Web Technologies"

From the Modernizr download page you can now select only the tests you are interested in, reducing the footprint of the Modernizr file.

I chose just the CSS3 opacity test which generated a 14kb custom Modernizr file to download - "modernizr.custom.80211.js"

The following CSS3 sets rounded corners and opacity on all img tags.

img {
opacity: 0.5;
border-radius: 5px;
}

The following JavaScript will use Modernizr to determine if the browser supports the CSS3 opacity tag, if not it will download JQuery and use JQuery opacity function.

Modernizr.load({
test: Modernizr.opacity,
nope: ['/Scripts/jquery-1.8.3.min.js'],
complete: function () {
if (!Modernizr.opacity) {
$("img").css("opacity", "0.3");
}
}
});


The following is a screenshot of the network tab in IE Developer tools using IE9 standards, we can see modernizr being downloaded and an image with rounded corners and opacity set.




The following is a screenshot of the network tab in IE Developer tools using IE8 standards, we can see JQuery being downloaded, the image still has opacity set but the corners are no longer round.



Tuesday, 24 January 2012

IE Proxy Settings shortcut

To set up a shortcut on the desktop to IE Connections Tab,
  • On the desktop, right click and select "New Shortcut" 
  • In "Type the location...." enter the following "C:\Windows\System32\control.exe Inetcpl.cpl,Connections,4" 
  • Give it a name. 
And thats it.

Wednesday, 19 October 2011

70-583- Designing and Developing Windows Azure Applications.

Yesterday I passed this exam - Exam 70-583 Designing and Developing Windows Azure Applications. More details here.

Friday, 14 October 2011

Visual Studio Remote Debugging - Reminder Checklist

Steps to implement remote debugging.
  1. You need to run msvsmon.exe on the remote pc
    1. Share this folder C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Remote Debugger
    2. Go to remote and navigate to shared folder
    3. copy Remote Debugger folder onto remote pc
    4. run the relevant 32 or 64 bit version of msvsmon.exe
    5. Not sure on the permissions required for this but I know it works if you are an Administrator on this machine.
  2. Double click msvsmon.exe on remote pc
    1. Go to Tools > Permissions and add the user that is logged onto the dev machine.
    2. Go to Tools > Options and copy the string that is in server name box - eg "DomainName\username@machinename"
  3. Start the web app to be debugged on the remote machine
  4. In Visual Studio on local machine - Debug > Attach to process
    1. Leave Transport as Default and in the Qualifier paste the server name copied in Step 2.2 above and click Refresh
    2. Select w3wp.exe to attach to
  5. Start debugging.

Sunday, 19 June 2011

Internal names of columns in SharePoint list

To find internal name of a column in a list you can use Visual Studio 2010 or SharePoint Manager 2010 (spm.codeplex.com) To get to Server Explorer CTRL W L and Select sharepoint connections and you can navigate down to the list in question. When running SharePoint Manager 2010 run as administrator and again you can navigate down to the list in question and determine the InternalName property of the column.

Wednesday, 27 April 2011

Exam 70-667: TS: Microsoft SharePoint 2010, Configuring

Today I passed the first half of the MCITP qualification, Exam 70-667: TS: Microsoft SharePoint 2010, Configuring

More details here.

Update 17 June 2011, I've now passed the other half of the MCITP qualification, Exam-70-668 PRO: Microsoft SharePoint 2010, Administrator.

I'm now MCITP SharePoint Administrator 2010.

More details here.

Thursday, 14 April 2011

I'm now MCPD Microsoft SharePoint 2010

Today I passed this exam - Exam 70-573 -Microsoft SharePoint 2010, Application Development. More details here.

Together with the 70-576 exam I passed last month, I'm now MCPD Microsoft SharePoint 2010.

Thursday, 17 March 2011

Exam 70-576 - Designing and Developing Microsoft SharePoint 2010 Applications

Today I passed this exam - Exam 70-576 - Designing and Developing Microsoft SharePoint 2010 Applications. More details here.

Monday, 28 February 2011

Friday, 4 February 2011

Windows Azure Training

I have just attended a 2-day partner training @ Saxons training centre in Sydney.
Instructor: Ryan CrawCour - Intergen NZ
@RyanCrawCour

The course was taken from presentations and labs within the Windows Azure Platform Training Kit. The kit includes a lot of Labs, Presentations, Videos and Demos. It also has a dependency checker to ensure local environment has all it needs to do Azure development.
The following powerpoint presentations were shown over the two days (they were 95% the same as the ones in the training kit)
  1. Windows Azure Platform
  2. Windows Azure Compute
  3. Windows Azure Storage
  4. Intro to SQL Azure
  5. Windows Azure App Fabric
  6. Storage Strategies
  7. High Performance Applications
  8. Advanced Web and Worker Roles and the Windows Azure VM Role
  9. Windows Azure connect
Links - mentioned during course

Two recommended blogs Azure management links Other sites/articles

Tuesday, 11 January 2011

JQuery Posts Updated to use JQuerify

Tuesday, 22 June 2010

Prince2 Foundation Exam Success

Last week I went on PRINCE2 training in Sydney, I found it pretty interesting all in all at the end of which I took the PRINCE2 foundation exam and passed.

Tuesday, 16 February 2010

C# - yield

The yield keyword was introduced with C# 2.0.

Here is some further reading;

Monday, 1 February 2010

Visual Studio 2008 Shortcuts

Following on from earlier post - Visual Studio Keyboard Shortcuts

CTRL W S - Solution Explorer
CTRL W L - Server Explorer
CTRL W E - Error Explorer
CTRL W X - Tool Box
CTRL W O - Output Window

CTRL D I - Immediate Window
CTRL D C - Call Stack
CTRL D W - Watch Window

CTRL E F - Format Selection
CTRL E \ - Delete white space
CTRL E S - View white space
CTRL E C - comment selection
CTRL E U - uncomment selection

CTRL U - To Lower
CTRL Shift U - To Upper

CTRL + \ D - Code Definition Window
CTRL + \ M - Team Explorer

CTRL ALT B - Breakpoints window
CTRL ALT ↓ - Files Open List

Firefox Add-Ons

  • Adblock Plus
  • CodeBurner for Firebug (Extends Firebug with reference material for HTML and CSS)
  • ColorZilla (Advanced Eyedropper, ColorPicker, Page Zoomer and other colorful goodies)
  • CoLT (Makes it easy to copy link text and locations)
  • Delicious Bookmarks
  • Dictionary Search
  • FiddlerHook
  • FireBug
  • FireFTP
  • LeechBlock
  • Shorten URL
  • Tab Preview
  • Web Developer
  • YSLow

Thursday, 24 December 2009

Useful Utility programs

A good place to start would be Scott Hanselman's 2009 Ultimate Developer and Power Users Tool List for Windows.

This is my list from 18 months ago - Utility Programs, Tools, Add-Ins plus other stuff.

Updated list.

  • Ninite - Pick from a big list of utility programs ninite will go get them all for you, install them and make sure the crapware toolbars and ebay links are not installed. Reviewed on HowToGeek.com.
  • Unlocker Assistant - When you try and delete something and you get the file locked message, the Unlocker Assistant will pop up, giving you the option to unlock the files and perform your delete. Download from here
  • DiffMerge -is an application to visually compare and merge files for Windows, Mac OS X and Unix. Download from here
    • If using DiffMerge with Subversion, the following settings can be used to 'Diff' and 'Merge'

      Diff Viewer
      C:\Program Files\SourceGear\DiffMerge\DiffMerge.exe /t1=%bname /t2=%yname %base %mine

      Merge
      C:\Program Files\SourceGear\DiffMerge\DiffMerge.exe /m /r=%merged /t1=%yname /t2=%bname /t3=%tname /c=%mname %mine %base %theirs
  • SqlScripter - simple, low-cost tool for quickly exporting data

  • Foxit - a pdf reader

  • Paint.Net - a free image and photo editing software for computers that run Windows
  • CCleaner - removes unused files from your system.
  • Driver Max - find updates for your drivers, also backup and restore them.
  • LinqPad - A great way to learn LINQ.
  • MWSnap - free screen capture software
  • Reflector - If you dont know about reflector, you probably dont need it.
  • DBAN - Boot and Nuke - DBAN will automatically and completely delete the contents of any hard disk that it can detect, which makes it an appropriate utility for bulk or emergency data destruction.

Some random HowToGeek Links

Tuesday, 15 December 2009

Certified Scrum Master

Last month I attended a certified Scrum Master course facilitated by Kane Mar

It was a two day course well run and enoyable, at the end of which after taking the Scrum Master exam I can now call myself a Certified Scrum Master. A bit of a grandiose title maybe but I feel the knowledge learnt was definetly worthwhile.