Just because you're doing a lot more, doesn't mean you're getting a lot more done!

Block Facebook Event Invitiations from Friends

Posted in   Social Media

I'm not what you would call a serious Facebook user, I don't use it every day, probably once or twice a week but mainly to see what friends have been up to rather than to post anything. I have a few friends on Facebook that quite regularly spam me with event invitations that are and never will be of interest to me but I guess for most it is easier to say "send to everyone" than to actually take the time to select friends you actually might think the event is relevant to. I don't necessarily want to remove these friends however I don't want to to keep receiving their spammy event invitations and it's not immediately obvious how to do this on an individual basis so here is how you do it: Login to your Facebook account. From the "<em>Account</em>" menu item in the top left,…

Read this post

Register ASP.Net on IIS in Windows 7

Posted in   Development ,   .Net ,   Windows 7

In IIS on Windows 7 it appears that the 'old fashioned' method of using ASP.NET IIS Registration Tool (Aspnet_regiis.exe) is no longer the correct method to update the script maps. Instead the Windows feature should be enabled via the control panel by following the steps below: Open the Control Panel Select "Programs" Select "Turn Windows Features on or off" Locate the following node: <strong>Internet Information Services</strong> &gt; <strong>World Wide Web Services</strong> &gt; <strong>Application Development Features</strong> Tick the box for <strong>ASP.NET</strong> and confirm.…

Read this post

Most projects I work on need a list of countries at some point so I put together a snippet of SQL that I could reuse to create and populate a countries table in the database with all countries as given in ISO 3166-1. After recently writing a utility class to populate list controls with world currencies according to ISO 4217 it got me wondering if I could also do the same for countries using only the .Net Framework. And so I came up with the following utility class to do the job. [code lang="csharp"] /// &lt;summary&gt; /// Populates the list control with countries as given by ISO 4217. /// &lt;/summary&gt; /// &lt;param name=&quot;ctrl&quot;&gt;The list control to populate.&lt;/param&gt;…

Read this post

Ever needed to know which ASP.Net worker process (w3wp.exe) belongs to an App Pool? Well I did recently when I needed to attach to it for debugging and there was no obvious way to find out which process related to each app pool. A little bit of research led me to discover AppCmd.exe. I wrote a small batch file which will list them all for you and include the process id. Simply copy the following into a blank text file and save with a .bat extension and you can run it whenever you need to, alternatively just run the command through a standard command prompt. [code]cd %systemroot%system32inetsrv appcmd list wps pause[/code] You should end up with a line like the following for each worker process on your machine: [code]WP &quot;5528&quot; (applicationPool:DefaultAppPool)[/code]…

Read this post

I recently had a client who had some issues delivering mail from their site so I went to look at the SMTP logs only to find that there were none there (I am embarrassed to say). I notice that I had configured the logs to be written to a custom directory on a separate drive from the operating system and thought that may have been the issue however it turns out that there are some steps that needs to be taken in order for SMTP logging to work on Windows Server 2008. It's odd enough that you need to use the legacy IIS 6 management console to administer your SMTP Server but there is also no obvious steps when setting up your server that indicate the requirements for SMTP logging. To get logging working you need to install the ODBC Logging module by following these steps: On…

Read this post

Umbraco DatePicker - Unknown server tag

Posted in   Umbraco

I have recently needed to use the Umbraco datePicker control in a usercontrol I was creating however I kept getting presented with an "Unknown server tag 'umbraco:datePicker" exception. After some digging around in the Umbraco Source it is confusingly not in the assembly I would have expected but it was in fact located in the cms.dll and not controls.dll. As a couple of other Umbracians posted this query a day or so after I found the solution I thought I would post it up for the benefit of others. Simply include the following in your usercontrol: &lt;%@ Register TagPrefix="umbraco" Namespace="umbraco.controls" Assembly="cms" %&gt; and then use it as follows: [code lang="csharp"]&lt;umbraco:datePicker ID=&quot;datePicker1&quot; runat=&quot;server&quot; ShowTime=&quot;true&quot;&gt;&lt;/umbraco:datePicker&gt;[/code] I hope this is of help to others and can be refactored asap to avoid any further confusion.…

Read this post

I was recently working in a clients office where they have very little IT Support and they had a new member of staff on board without a PC. The person that setup the IT infrastructure at the beginning had left a hard drive with an image and a CD to copy the image to any new machine that was added to the network. Sounds simple so I said I would help out. It took some time but eventually the image copied across and I disconnected the slave drive and booted the machine. I joined the machine to the SBS2003 domain and got a warning about another machine on the network with the same name(oops, the image had been built with a machine name currently in use!). Next thing I know is that the user of the first machine using this name can no longer login to the network and now…

Read this post