Tim

Footprints in the snow of a warped mind

October, 2006

Where to find me

Flickr Icon  Twitter Icon  Linked In Icon  FaceBook Icon  Windows Live Alerts Butterfly  RSS 2.0 

FreeAgent Small Business Online Accounting
Business Protection by Crisis Cover

Tag Cloud

AJAX (4) Analysis (3) ASP (6) ASP.Net (59) Error Reporting (4) Web Service (2) WSDL (1) Atlas (2) Azure (1) Born In The Barn (1) Business (89) Business Start-up Advice (32) Client (17) Expanding Your Business (23) Recruitment (1) C# (22) Canoeing (4) Canoe Racing (5) Cheshire Ring Race (5) Racing (2) Training (4) CIMA (1) Cisco (1) 7970G (1) CMS (1) Code Management (1) Cohorts (4) Commerce4Umbraco (1) Content (1) Content Management (1) Content Management System (1) CSS (4) dasBlog (5) DDD (2) DDDSW (1) Design (11) Icons (1) Development (26) Domain Names (1) eCommerce (12) Employment (2) General (39) Christmas (6) Fun and Games (11) Internet (22) Random (46) RX-8 (8) Git (1) Google (1) Google AdWords (1) Google Analytics (1) Hacking (1) Helpful Script (3) Home Cinema (2) Hosting (2) HTML (3) IIS (11) iPhone (1) JavaScript (5) jQuery (2) Marketing (6) Email (1) Multipack (1) MVC (1) Networking (3) Nintendo (1) Nuget (1) OS Commerce (1) Payment (1) Photography (1) PHP (1) Plugin (1) PowerShell (3) Presentation (1) Press Release (1) Productivity (3) Random Thought (1) Script (2) Security (2) SEO (6) Server Maintenance (7) Server Management (12) Social Media (2) Social Networking (3) Experiment (1) Software (11) Office (5) Visual Studio (14) Windows (5) Vista (1) Source Control (1) SQL (9) SQL Server (19) Statistics (2) Stored Procedure (1) Sublime Text 2 (1) SVN (1) TeaCommerce (1) Testing (2) The Cloud (1) The Site Doctor (136) Turnover Challenge (1) Twitter (3) uCommerce (13) Umbraco (31) 2009 (1) 2011 (1) Useful Script (2) Virtual Machine (1) Web Development (71) WebDD (33) Wii (1) Windows Azure (1) XSLT (1)

Blog Archive

Search

<May 2013>
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

Recent Comments

Blog Archive

Various Links

Google+

Blogs I Read

[Feed] Google Blog
Official Google Webmaster Central Blog
[Feed] Matt Cutts
Gadgets, Google, and SEO
[Feed] Ol' Deano's Blog
My mate Dean's blog on my space, equally as random as mine but not off on as much of a tangent!
[Feed] Sam's Blog
Sam is one of my younger brothers studying Product Design and Manufacture at Loughborough, this is his blog :) Enjoy!

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

newtelligence dasBlog 2.2.8279.16125

Send mail to the author(s) Email Me (Tim Gaunt)

© 2013 Tim Gaunt.

Sign In

# Monday, October 30, 2006

Tendering – Who, What, When and How?

Monday, October 30, 2006 5:50:52 PM (GMT Standard Time, UTC+00:00)
The tendering process can be a daunting when you know what you’re doing, but what about if you don’t know what you’re doing? I’ve tried to summarise the process for those of you who haven’t gone through it before have also covered some of the finer points. This is in follow-up to my last article about How to price your work.
 

Don't forget to follow me on Twitter.

Tendering – Who, What, When and How?
Useful Links:  #  digg it!  del.icio.us  Technorati  email it!  Post CommentsComments [0]  Trackback LinkTrackback
CategoriesTags: Business
# Sunday, October 29, 2006

Jehovah witnesses

Sunday, October 29, 2006 1:26:17 PM (GMT Standard Time, UTC+00:00)

Having lived in Cornwall for most of my life I had never encountered a Jehovah witness before and before moving up to Birmingham I think I’d only had 2 encounters –both in someone else’s flat so we invited them in for a chat (the usual studenty type malarkey where you grill them on anything that comes into your mind).

Anyways, after moving to Birmingham it was a good 2 years before I would get to meet another and being somewhat tired after work I just told them to go away. Then today we had another pair come around, I’m not particularly religious but push come to shove I’d class myself as a Quaker (yeah yeah save me the oat’s jokes) but it got me thinking, why do they do it? Why do they go around knocking on people’s doors just to be told to P off? Are the free tea and biscuits and grillings from bored/drunk/high students REALLY worth it? Seriously though, WHAT is the point?

 

Don't forget to follow me on Twitter.

Jehovah witnesses
Useful Links:  #  digg it!  del.icio.us  Technorati  email it!  Post CommentsComments [2]  Trackback LinkTrackback
CategoriesTags: Random
# Wednesday, October 25, 2006

Seeing Orange

Wednesday, October 25, 2006 6:04:41 PM (GMT Daylight Time, UTC+01:00)

I don’t know about you but I had always thought Orange were the mutt’s nuts when it came to service so after a few years on other networks we decided to give them another try as their tariffs weren’t much more expensive than the competition.

All was great, we signed up and were told that we’d get a load of cash back because we’d signed up a number of phones etc but when it sounds too good to be true it probably is, we’re now coming to the end of our 12month contract and we’re still chasing the credit we’re owed which leaves me wondering whether I want to remain with Orange at the end of the term.

It’s not like we’ve not tried chasing them, I call both the Orange store representative we have AND the customer service centre every month when I get the bill, I’ve also popped in a few times with all the signed paperwork. I don’t think I’d mind sitting on hold for an hour at a go to get through to a representative if I knew that at the end of the call I’d get somewhere but alas we’re still waiting…

Surfing around Google I see I’m not the only one, then I stumbled across this petition which, oddly enough, is run by one of our newer clients. So if you’re also having issues with Orange’s Customer Service go sign it and lets sort this out!

 

Don't forget to follow me on Twitter.

Seeing Orange
Useful Links:  #  digg it!  del.icio.us  Technorati  email it!  Post CommentsComments [1]  Trackback LinkTrackback
CategoriesTags: Random
# Friday, October 20, 2006

Sony does it again

Friday, October 20, 2006 4:54:40 PM (GMT Daylight Time, UTC+01:00)

I was a fan of the last Bravia advert partly because it featured José González but also because I was left wondering whether it was a computer render or really happened (aparently they really did it) but the new Sony Bravia advert is incredible, ok there are a few computer GFX effects in there to remove peoeple etc but oh my word...

The new Sony Bravia advert: www.bravia-advert.com/paint/thead/full/
 

Don't forget to follow me on Twitter.

Sony does it again
Useful Links:  #  digg it!  del.icio.us  Technorati  email it!  Post CommentsComments [0]  Trackback LinkTrackback
CategoriesTags: Random
# Thursday, October 12, 2006

Gazumped

Thursday, October 12, 2006 5:09:01 PM (GMT Daylight Time, UTC+01:00)

As some of you know, we’re selling our lovely house 68 Campbell St (www.68campbellst.co.uk). The house has served us well in the past as there’s an office at the rear of the property that we can run the business from and plenty of room for all my CD’s and Stacey’s shoes.

We’ve also found our next place and all was progressing fine until the other day (now a couple of weeks ago) we were called and told that the buyers had pulled out just before the point of exchange. Obviously they’re perfectly at right to do so but man it’s got my back up. We’ve done all the surveys on the next house, sorted all the legal mumbojumbo and were ready to complete within a week, that left us nearly at square one.

A couple of weeks have now passed and luckily we’re in a position to keep this place to rent it out and still buy the next house which is great news, but if you’re out there reading this, you’re really lost out on a lovely house and I just don’t believe the excuse “It’s an old property” –well der!

I feel sorry for anyone else out there who has been gazumped, I hope it all worked out for you in the end.

 

Don't forget to follow me on Twitter.

Gazumped
Useful Links:  #  digg it!  del.icio.us  Technorati  email it!  Post CommentsComments [0]  Trackback LinkTrackback
CategoriesTags: General
# Tuesday, October 10, 2006

Blogging and competition

Tuesday, October 10, 2006 9:44:53 AM (GMT Daylight Time, UTC+01:00)

One of the reasons I started this blog was because I felt I often came across nuggets of information that someone else out there may find useful in some small way and that I should share the information where possible. I also wanted a place to store all those little gems that I’m forever forgetting. That and I am forever asked similar questions that I think the “masses” (all three of you) would like to hear about.

For quite some time I’ve been writing sets of articles that I was hoping to raise the profile of The Site Doctor with but as with many things in atm it seems they’ve been slow in getting finished. I have however been collating the various snippets together and collaborating with a number of sources and nearly every time I speak to a new “source” I get asked the same question “why would you want to write about this stuff –it just increases your competition”.

That never fails to make me chuckle to myself (not at you mind), I say why not? No offence but if we’re that unconfident in our knowledge that a few articles about common (and often simple) issues people run into that will suddenly make my competition take over then so be it, but personally I like to feel I’ve got enough knowledge to share and not feel threatened –perhaps the wrong tack to take but hey!

I also feel that by sharing the information with other people (not just developers, there’s stuff here for everyone) that in my own small way I’m making the web a better place –even if I’m not personally writing the code something here may have influenced you –even if it’s just answering a simple question you’ve been tearing your hair out over such as “Do pineapples grow on bushes” –yes they do, you can see photographic proof here.

Anyways, that’s my 2p worth, if you don’t feel secure enough to share your findings that’s up to you!

 

Don't forget to follow me on Twitter.

Blogging and competition
Useful Links:  #  digg it!  del.icio.us  Technorati  email it!  Post CommentsComments [0]  Trackback LinkTrackback
CategoriesTags: Business | Random
# Monday, October 09, 2006

Stored Procedure to assign permissions

Monday, October 09, 2006 3:42:49 PM (GMT Daylight Time, UTC+01:00)

This is a useful stored procedure for assigning permissions to users quickly and easily. We tend to assign a new login to each application we develop, this way we limit the damage possible in the event of a username/password compromise.

/*--------------------------------------------------------------------------
Automatically assign the role permissions
--------------------------------------------------------------------------*/

USE DatabaseName
SET NOCOUNT ON

DECLARE @objName varchar(80)
DECLARE @objType char(2)
DECLARE @username varchar(100)
SET @username = 'UserNameToAssignPermissionsTo'

DECLARE grant_perms_on_sps CURSOR FOR
SELECT name, type
FROM SYSOBJECTS
WHERE
  (
    (type = 'P')
   OR
    (type = 'FN')
   OR
    (type = 'TF')
   OR
    (type = 'U')
   OR
    (type = 'V')
  )
 AND
  uid = 1
 AND
  status > -1
 AND
  LEFT(name, 3) <> 'dt_' --See Note 1

OPEN grant_perms_on_sps
FETCH NEXT FROM grant_perms_on_sps
INTO @objName, @objType

WHILE @@FETCH_STATUS = 0
BEGIN
  IF @objType = 'P' OR @objType = 'FN'
  BEGIN
    EXEC ('GRANT EXECUTE ON dbo.' + @objName + ' TO ' + @username)
    PRINT ('GRANTED EXECUTE ON dbo.' + @objName + ' TO ' + @username)
  END

  IF @objType = 'TF'
  BEGIN
    EXEC ('GRANT SELECT ON dbo.' + @objName + ' TO ' + @username)
    PRINT ('GRANTED SELECT ON dbo.' + @objName + ' TO ' + @username)
  END

  FETCH NEXT FROM grant_perms_on_sps
  INTO @objName, @objType
END

CLOSE grant_perms_on_sps
DEALLOCATE grant_perms_on_sps

GO
------------------------------------------------------------------------

Note 1: In addition, we tend to prefix our database objects with useful prefixes to group relevant tables, i.e. if we had login information stored in the database we may use “Login_” as the prefix, using this method with this Stored Procedure to assign permissions you can easily select the relevant objects. So you could alter the stored procedure a touch:

DECLARE @prefix varchar(100)
SET @prefix = 'PrefixToUse'

LEFT(name, LEN(@prefix)) = @prefix

 

Don't forget to follow me on Twitter.

I’m a bot! –According to Google Anyways

Monday, October 09, 2006 9:51:17 AM (GMT Daylight Time, UTC+01:00)

While fitting my new chipset cooler fan this morning I was checking out an error message on Google (which as it turns out I knew the answer to) and I was presented with a CAPTCHA image –I guess Google’s getting a lot of automated requests. This was using the built in Firefox search box but then I got it again on the PC using Google’s search box!

Google CAPTCHA

 

Don't forget to follow me on Twitter.

# Monday, October 02, 2006

String.Format and Input string was not in a correct format Error

Monday, October 02, 2006 6:26:29 PM (GMT Daylight Time, UTC+01:00)

I ran into (another) interesting error today when using String.Format1. I was getting the error message "Input string was not in a correct format.". In this instance I was calling the content from an XML file, the data was wrapped in CDATA tags so there shouldn't have been an issue with line breaks etc. On investigating the error further I found it was being caused because the content was a HTML page. More specifically, the String.Format error "Input string was not in a correct format." was being caused by the CSS declaration's curly braces.

To work around the method perceiving them as placeholders, simply replace each curly brace "{" with double braces "{{".

To replicate the error:

String.Format("<style type=\"text/css\">p{font-size: 1.2em;}</style><p>Your username is: {0}</p>", "UserName");

The fix in place:

String.Format("<style type=\"text/css\">p{{font-size: 1.2em;}}</style><p>Your username is: {0}</p>", "UserName");

1The String.Format method accepts a format string which can include place holders (designated by the curly braces {} and a number that refers to the location of the item that should appear in the list). A quick example of String.Format:

String.Format("This is some text the date is {0}.", DateTime.Today.ToShortDateString);

Would produce: "This is some text the date is 02/10/2006"

 

Don't forget to follow me on Twitter.