Jul 16 2010

Debug IIS Macro for Visual Studio

Published by gringod under General

This is a little macro that you can use in Visual Studio to make it easy to attach to the w3wp processes that are spawned by IIS:

Public Sub AttachToWebServer()
   Dim process As EnvDTE.Process
   For Each process In DTE.Debugger.LocalProcesses
       System.Diagnostics.Debug.Print(process.Name)
       If (Path.GetFileName(process.Name).ToLower() = "w3wp.exe") Then
           process.Attach()
       End If
   Next
End Sub

I should point out that in Windows 7 and Windows Server 2008 you will need to run Visual Studio as Administrator, or disable UAC.

No responses yet

May 14 2010

Plastic Recycling In Guernsey

Published by gringod under Guernsey News

For recycling purposes,  plastics are divided into 7 different categories that are numbered 1 to 7.  In Guernsey at present, we are only recycling categories, Nos. 1, 2 & 6.
Inclusion of the wrong kind of plastic into the recycling bins, can lead to the whole batch becoming contaminated and refused in the market place.
How to recognise plastics Nos. 1 & 2.
The number 1 or 2 is embossed or printed within the recycling triangle usually on the underside of the item. (see below for more details).  Any other number in the triangle means it is not currently recycled here and must not be put into the recycling bins.
Sometimes the plastic category is identified by the letters only; PET, PETE or RPET for No. 1;    or HDPE or PE for No. 2.
A recycling symbol on its own without any indication that it is a 1 or 2, cannot currently be recycled in Guernsey.
Examples of Plastic No.1.
Also known by the letters PET; PETE (short for PolyEthylenTerephthalate) or RPET.(Recycled PET)
Plastic drink bottles are almost all No. 1. (PET; PETE; RPET)
Because of its recyclabilty and value, manufacturers are increasing the use of this type of plastic so you can now find many other containers are No. 1.
Examples include Rachel’s yogurt pots (but none of the other yogurt ranges) to Guernsey Herb packets, to the plastic insert in some chocolates, mince pies, and biscuits.  Even the protective plastic covering on some non-food packets, such as batteries, gardening accessories etc can sometimes be No. 1.
Supermarkets are increasing their use of No. 1 for some food items….. remember to wash before recycling.  Sometimes the lid and base of a 2 part punnet, such as used for strawberries, can be different plastics with only one half  being No. 1.  Some food trays can be Plastic No.1 such as used by the Cook Shop in the Lower Pollet.
The only way to know for sure is to check your packaging, particularly on the base, to look for the recycling triangle with the correct number or appropriate lettering.
No. 1 (PET; PETE; RPET) is the highest grade of plastic and achieves the best price at the market place. If it becomes contaminated with less valuable plastics the whole load can be rejected.
Examples of Plastic No.2.
Also known as HDPE or PE  ( short for High Density PolyEthylene)
These are generally the type of bottles or containers used for cleaning products.  Shampoos, conditioners, suncreams, liquid soaps, weed-killer, detergents, silicone sealant tubes, roll-on deodorants etc.
Again, the symbol is usually on the base of the container and will be a 2 within a triangle and / or the letters HDPE or simply PE.
Always look for the correct symbol.  No symbol….. no recycling.  If in doubt, leave it out!
Examples of Plastic No. 6.
Also known as PS ( short for PolyStyrene packaging).
These are the clean, often large, (white) pieces of packaging that surround your new television, washing machine etc.  Take to Chouet recycling point or Longue Hougue Recycling Facility.
Beware of imitations – not all packaging that looks like polystyrene is polystyrene.
Polystyrene food trays and cups contain a plastic coating and should not be put in the recycling bins.
Plastic bags.
Take to Checkers.
The C.I. Co-op in Grande Marche, St Martin accepts transparent polythene bags.
Best of all, avoid accepting plastic bags whenever possible.
Hansa sells OnyaWeigh reusable gauze bags for weighing veg. etc.
In addition………
Commercial quantities of other plastics such as polythene or seed trays can also be recycled locally.  For further information contact Mayside Recycling: 247599.

For recycling purposes,  plastics are divided into 7 different categories that are numbered 1 to 7.  In Guernsey at present, we are only recycling categories, Nos. 1, 2 & 6.

Inclusion of the wrong kind of plastic into the recycling bins, can lead to the whole batch becoming contaminated and refused in the market place.


How to recognise plastics Nos. 1 & 2

plastic-recycling-symbols-1-thplastic-recycling-symbols-2-th

The number 1 or 2 is embossed or printed within the recycling triangle usually on the underside of the item. (see below for more details). Any other number in the triangle means it is not currently recycled here and must not be put into the recycling bins.

Sometimes the plastic category is identified by the letters only; PET, PETE or RPET for No. 1;    or HDPE or PE for No. 2.

A recycling symbol on its own without any indication that it is a 1 or 2, cannot currently be recycled in Guernsey.


Examples of Plastic No.1.

plastic-recycling-symbols-1-thAlso known by the letters PET; PETE (short for PolyEthylenTerephthalate) or RPET.(Recycled PET)

Plastic drink bottles are almost all No. 1. (PET; PETE; RPET)

Because of its recyclabilty and value, manufacturers are increasing the use of this type of plastic so you can now find many other containers are No. 1.

Examples include Rachel’s yogurt pots (but none of the other yogurt ranges) to Guernsey Herb packets, to the plastic insert in some chocolates, mince pies, and biscuits.  Even the protective plastic covering on some non-food packets, such as batteries, gardening accessories etc can sometimes be No. 1.

Supermarkets are increasing their use of No. 1 for some food items….. remember to wash before recycling.  Sometimes the lid and base of a 2 part punnet, such as used for strawberries, can be different plastics with only one half  being No. 1.  Some food trays can be Plastic No.1 such as used by the Cook Shop in the Lower Pollet.

The only way to know for sure is to check your packaging, particularly on the base, to look for the recycling triangle with the correct number or appropriate lettering.

No. 1 (PET; PETE; RPET) is the highest grade of plastic and achieves the best price at the market place. If it becomes contaminated with less valuable plastics the whole load can be rejected.


Examples of Plastic No.2.

plastic-recycling-symbols-2-thAlso known as HDPE or PE ( short for High Density PolyEthylene)

These are generally the type of bottles or containers used for cleaning products.  Shampoos, conditioners, suncreams, liquid soaps, weed-killer, detergents, silicone sealant tubes, roll-on deodorants etc.

Again, the symbol is usually on the base of the container and will be a 2 within a triangle and / or the letters HDPE or simply PE.

Always look for the correct symbol.  No symbol → no recycling.  If in doubt, leave it out!


Examples of Plastic No. 6.

plastic-recycling-symbols-6-thAlso known as PS ( short for PolyStyrene packaging).

These are the clean, often large, (white) pieces of packaging that surround your new television, washing machine etc.  Take to Chouet recycling point or Longue Hougue Recycling Facility.

Beware of imitations – not all packaging that looks like polystyrene is polystyrene.

Polystyrene food trays and cups contain a plastic coating and should not be put in the recycling bins.


Plastic bags.

Take to Checkers.  The C.I. Co-op in Grande Marche, St Martin accepts transparent polythene bags.

Best of all, avoid accepting plastic bags whenever possible.

Hansa sells OnyaWeigh reusable gauze bags for weighing veg. etc.


In addition………

Commercial quantities of other plastics such as polythene or seed trays can also be recycled locally.  For further information contact Mayside Recycling: 247599.

One response so far

Nov 17 2009

WSPBuilder Project Migration Errors

Published by gringod under .NET, Programming

Today I tried migrating a Visual Studio WPSBuilder project from one machine to another.  The originating machine was 32bit Windows Server 2008 the destination machine was 32bit Windows Sever 2003 Standard.

To migrate the project I simply zipped the solution folder and copied it across to the destination machine, unzipped and opened in Visual Studio.

However, when I came to build the SharePoint solution file using the Tools -> WPSBuilder -> Build WSP, I got the following error in the output window:
“Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection”

When Googling the the error message the only result was on the WSP Builder CodePlex site and was about 64bit versions of the Cablib.dll assembly.  As neither of my machines is 64bit I figured this wasn’t the issue.

I’m not sure exactly what was causing the problem but this was the solution:

  • Open the project folder in Explorer
    • Delete the bin folder
    • Delete the obj folder
    • Delete the wsp file in the project folder.
  • Re-open the project in Visual Studio
    • Compile the project
    • Build the WSP (Tools -> WPSBuilder -> Build WSP)

After this everything was back to normal.

6 responses so far

Nov 03 2009

HowTo: Find WiFi Passwords In Snow Leopard

Published by gringod under Technology

One of the neat features that I used frequently in MacOS X Leopard & Tiger was the ability to use the wifi connection tool to get the passwords for wifi networks that you have already connected to.  Being a consultant I am constantly hopping networks and using different devices (Laptop, iPhone, etc.), plus I also often get requests from family as to what their wifi passwords are.

This handy password re-call feature was removed from MacOS X Snow Leopard.  Once you entered a password in the wifi connection dialog box you couldn’t go back there to retrieve it.  This is probably a security measure, as it didn’t require the user to enter a password to get at the wifi password.

Well, I have just figured out how to get at them again.  All the wifi passwords are stored in your Keychain.  You can access the information using the Keychain Access application that is located in /Applications.

Wifi Keychain

You need to look in the System keychain, there you should find all the AirPort network passwords for all the wifi networks you have connected to.  Just double click on the one you want to see and click the “Show password” checkbox.  You will be prompted to enter your administrator password before being shown the wifi password in plain text.

Enjoy :-)

4 responses so far

Sep 23 2009

Local Food For Local People

Published by gringod under General

A Local Meal

A Local Meal

Every once in a while I manage to pull together a meal that astounds me.  I tweeted on Sunday with a picture of the meal in question.  What was really special about this meal was the sheer lack of food miles that went into it.

  • Razor clams
    • These were the heart of the meal and were freshly picked from the beach only a stones throw from my parents’ house.
    • They had a dressing of rocket – from my parents’ garden, garlic – from my parents’ garden and zest of lemon – bought but my parents’ do have a lemon tree!).
  • Mashed potatoes
    • Potatoes – from my parents’ garden.
    • Butter & milk – from the local dairy.
    • Chives – from my parents’ garden.
  • Carrots
    • Carrots – from my parents’ garden.
    • Cooked in olive oil – not local, and butter – from the local dairy.
    • Glazed with honey – from my parents’ bee hives.
  • Little Gem squash
    • Squash – from my parents’ garden.
    • Parmesan, salt & pepper – shop bought.

This was the first time I’ve been out collecting razor clams and didn’t really know what to expect but it was as easy as pie.  I’m not really a big shellfish person but the razor clams were really tasty.

The plan for the next low spring tide is to go collecting razor clams at Grand Havre and, as the tide comes in, head up the beach to go raking for cockles.

    No responses yet

    Jun 02 2009

    Free WiFi – No Internet

    Published by gringod under General, Technology

    On my way to bell ringing practice last night I happen to pick up a screw (easy tiger!) in one of my car tyres.  So during my lunch today I took the car into my local Target Auto Parts store to get the puncture fixed.

    Whilst I was waiting I did what I normally do with my spare time and whipped out my trusty iPhone to catch up with Google Reader/Podcasts/Twitter/games.  I’m sure you can imagine my joy to find that there is a wifi access point at Target which is open to the public.  I’m sure you can also imagine my devastation to find that, once connected to the wifi network I couldn’t access the internet.

    I spent the next 20 minutes playing around with the iPhones wifi settings, MobileTerminal and Safari trying to access the wireless router to see if I could “fix” it.  Result:  FAIL!

    So here is a plea to all companies that require customers to sit around twiddling their thumbs waiting for you to get a job done:  please, Please, PLEASE, if you’re going to tempt us with an open wifi access point, please follow through and provide access to the internet.  It really doesn’t cost that much and we’ll be much happier to come back next time!

    One response so far

    Jun 01 2009

    Use Bing As Safari Search Provider

    Published by gringod under General

    I’m always looking for the next great thing when it comes to Search.  Google is great but I can’t help but feel it could be better.  Since attending a developer course for FAST ESP back in January I’ve been looking for a Search provider that does more for navigating results rather than just allowing you to page through X thousand results until you get bored and try other search terms.

    Microsoft may have hit the nail on the head with Bing.com.  Whilst I think the interface could do with a bit more thought, the features are spot on.

    Unfortunately Safari browser on MacOS is tied to Google.com as the search provider.  Change the search provider requires changing the source code of the application… or Glims – a nifty Safari plugin.

    Once Glims is downloaded and installed, open the Safari Preferences and under the Glims tab select “Search Engines”.

    GLims Search Providers

    You then need to add a new search engine with the following settings:

    Bing.com settings

    For the copy-paste folks out there, the url should be: http://www.bing.com/search?q=#query#

    You can drag-drop the Bing search engine to the top of the Glims search engines list.  Also, select Bing from the search engines drop-down in the search box of a Safari browser window.

    I’m not sure if this is required for it to work, but you may need to set your Bing.com region to being the U.S.A.: http://bit.ly/42kg8

    14 responses so far

    May 15 2009

    VisendoSMTPExtender Management Web Service

    Published by gringod under .NET, Programming, Software

    Background:

    For work, I’m using a Windows 2008 Server virtual machine for doing all my SharePoint and .Net development on.  As it has got all of the cool stuff I’m working on, it is also the machine that I use to demo what I can do to clients.  Recently I’ve had a bit of a serge in the number of clients wanting to see Nintex Workflow 2007 (NFW2007) for SharePoint.

    One of the cool features of NWF2007 is the whole Lazy Approval system, whereby users don’t have to go into SharePoint to approve to decline requests, they can just reply to the notification email with “approved”, “declined”, “ok”, “yes”, “no” or any other recognised word as the first line of the email.  In or to demonstrate this I need to setup and email system on my local machine.  The SMTP (sending) side of things is easy as it is built in to Windows 2008.  However, POP3 is a bit of a problem.  Previous version of IIS had a simple POP3 service but that has been dropped in IIS7.  The Microsoft way would be to install Exchange Server but that is a little too heavyweight for what I am trying to acheive.  Luckily a company called Visendo provides a free solution to plug the gap.  So now I can demo Nintex notification features.

    Another feature I also wanted to demonstrate was setting up Active Directory accounts and then using those new accounts.  Nintex has got actions that allow you to interact with Active Directory but to then do anything usefull with the account required modifying xml config files and restarting the Visendo service.  But Nintex can call web services, so I’ve created a web service that has an AddAccount and DeleteAccount methods to update the Visendo configuration and restart the service.

    Download:

    I’ve made the source code for this web service freely available should anyone else want to have this sort of functionality: VisendoSMTPService.  The code is written against .Net 3.5 and is provided “as is” with no sort of warranty and is most definitely NOT recommended for live systems.  The code is released under a BSD License.

    3 responses so far

    Apr 16 2009

    FAST Powers Globrix Property Search

    Published by gringod under General

    C5 Alliance LogoToday I’m attending an event being hosted by my employer C5 Alliance in Jersey.  We’ve got two respresentitive from FAST (a Microsoft Subsidiary) hosting a presentation and discussion session about FAST ESP, Microsofts vision for the future of FAST and helping users to navigate to the search results they are looking for.

    FAST LogoAs well as the general bumf about how FAST ESP works, they have also done a couple of demonstrations of clients they have worked with.  Two very interesting sites that demonstration the power of FAST ESP in helping users quick find what they are looking for are Getty and Globrix.

    FAST @ C5 Alliance

    Globrix was a surprise to me – although quite logical now that I know – as I have been using Gobrix for a while to look for a house to buy in Guernsey.  Everytime I go to Globrix I just start with a general search for “Guernsey”.  The result navigators down the left and the price graph across the top allow users to quickly refine the search results – it’s also AJAX enabled so the user doesn’t even leave the page to get the latest results.

    The Globrix paradigm deviates from the normal type of property search website, in which the users creates a fixed query and if they don’t find what they’re after they have to create a new search query.  Globrix allows the users to dynamically build their query usign contextual navigators, e.g. you might select an area to search in then refine the number of bedrooms and then refine the price.

    FAST also differs from Google.  The power of Google is in getting relevant information to the user in the first few results (how many people look more than 2 pages through the results?) but this fails the users when they don’t know what they’re looking for, it requires to keep try to guess more terms or different combinations of terms to try and find what they’re looking for.  FAST allows the users to enter very simple search terms and then gives the users options to refine the query based on the context of the results that have been returned from thier initial query.  But it doesn’t end there, as the user refines their query the context changes therefore the content refinement navigators change with the context.

    Other interesting nuggets that come out of the sessions was the ability to search audio and video.  The scenario brought to the table was about having to record all telephone conversations and have those readily accessible for future retreival.  The simple solution to this is to store the audio files in a known location.  When indexing that location run the audio through a speak-to-text conversion service and index the resulting text and associate the audio file location with the index.

    In terms of SharePoint integration of FAST, we got a very sneak preview of an exciting new webpart that should be making its way into Codeplex in the not too distant future.  I’m not sure if I can more than that as I was informed that this web part hasn’t been announced yet – watch this space for more information!

    No responses yet

    Apr 08 2009

    Getting Things Done By Location

    Published by gringod under General, Software, Technology

    For several years now I’ve been trying to find a way of keeping on top of everything that I need to get done.  To be honest, I didn’t think I had a problem until I read David Allens book “Getting Things Done” (GTD).  It was whilst reading that book that I realised that I spend most of my time worry about what I need to get done and what I might be forgetting to do and not enough time actually doing things.

    I’ve had several attempts at trying to follow the GTD methodology but so far they have all failed and I’ve reverted to just relying on the good ole grey matter to remember what I have got to do.  I’ve tried using software to help me – iGTD, Midnight Inbox, OmniFocus, Outlook, iCal, Google Calendar – but the problem with a lot of these is that they are either platform specific (I need my laptop with me) or are calendar based (a lot of what I need to remember is not date specific).

    Other attempts have been centered around a notebook that I try to remember to take with me.  This has inevitably resulted in my failing to remember to take my notebook with me and therefore forgetting to update it what I have it to hand again.

    I am now embarking on another attempt to follow the GTD methodology.  This time I’m resting my faith on a relatively new entry into the GTD software arena: TheHitList form a compay called Potion Factory.  A couple of nice features that I’m hoping are going to make this easier for me to get along with are:

    • iCal syncing (I have all my calendars synced – iCal, Google, Entourage, iPhone)
    • Repeating tasks (cleaning fish tank, mothly invoicing, etc.)
    • Timer (hopefully no more getting distracted!)
    • Future iPhone support (I may forget my notepad but I NEVER forget my iPhone!)

    As great as this software is shaping up there is one striking feature that I think this app – and all other GTD apps – really needs.  Task Locations!  So I’ll go out to run some errands, get home and realised there was some else I could have got done because I was in the area but didn’t because I didn;t think of it whilst I was there – if I had a map on my iPhone of tasks in my current location I could get more done in less time.

    TheHitList Task MapI’m not sure of how the iPhone app UI is going to look for TheHitList but I came up with a (very) rough Photoshop version of what the desktop app might look like.

    This example is showing the Today list selected and the map with the number of tasks for today on their locations.  If you  had general list selected it might show the tasks for today in red with tasks in the future fading through to grey for tasks without a specific date.  With this type of functionality you’d be easily able to see if you’re going to a location for a specific task whether or not there were other things in the area you could do at the same time.

    4 responses so far

    Next »