Diary of a ninja
A blog about Life, Code and Beating level 99 to brag to your mates...
Stopping Windows from updating dynamic DNS
Under certain conditions there are times when you have a machine in your domain that you don’t want to update its DNS A records. These are usually edge cases however the need is still there. I needed to do this recently, so as they say on Law and Order in a robotic Stephen Hawking voice - “These are their stories”
Manually testing SMTP mail issues via Telnet
So this may be a post that exists in a million places on the web if you know where to look, however it would appear that whenever i do this a colleague gets the idea that i am channelling black magic. How does one “debug” a mail server connection – this is as easy as 123.
Manually publishing Internet Explorer 6 for use with Windows XP Mode
For those of you kiddies loving you Windows 7 goodness you may have discovered that from a web development point of view having an Internet Explorer 6 installation without much hassle is a pretty cool thing. Although the fact that you have to launch Windows Xp mode up and can’t use it as a “native” application by launching it from within Windows 7 is a bit of a let down. Let’s fix that :)
Developer productivity is important - Reality or Myth?
Today i was reading a post by Rob Conery in which he discussed both his thoughts on developer productivity in relation to the creation of a new OS project (ASP MVP), and how he may have thought that in some instances hiding behind WebForms and not touching MVC was really just laziness or ignorance mistaken for productivity. Additionally i also read another post by Scott Bellware in which talks about a similar subject, in that developer productivity when viewed in isolation, is really a myth.
Are most everyday conversation’s all the same?
Today i was reading an article on the Sydney Morning Herald website by one of their travel bloggers. In it they asked the question “Have you noticed that backpackers tend to talk about the same things to world over?” and it got me thinking something that i used to think quite a bit: “Are most conversations that people have the same ones everyday?”. A lot of developers I've worked with definitely fit this statement.
Retrieve only the first record from a LEFT JOIN
Recently I was working on a project where I had to return a simple list of products, and if they had images associated with them, return information about only one along with the product. Times like these, a simple left join or inner join just doesn’t cut it if there are more than one image/record per product. When this happens there is almost always a simple solution, so let’s take a look.
C# reading an open text file in less than 10 lines
There are times when you want to read a text file that is in use – or as i have had many times, code you have recently execute hasn’t fully let go of the file when you go to read it – when you copy something to a directory and the AV scans it or any other times when you want a file’s contents but don't want to have to worry about locks.
Let there be Mo - Support Movember
It’s official kids, November, the month of the moustache, is going to be my month of the moustache as well. I am taking part in the fundraising event known as Movember (http://au.movember.com/) in which i will rejoice in the god given right of growing a porn star moustache. Movember is an international cause to raise money and awareness for Prostate Cancer and Male Depression. Time to get involved!
SubSonic, SQLite, Sonic.exe and 64bit, oh my!
Well this week i started work on my new development machine – a 64bit Windows 7 machine mmmm tasty. Everything has run perfectly smoothly until i hit one weird little issue. While attempting to generate a new data layer for a SQLite database using Subsonic i received nothing but errors – Another simple fix which I'll show you in this post.
Are software developers naturally weird?
I was recently read a blog post recently by Eric Spiegel, that made it to Slashdot where he asked the question: “Are software developers naturally weird?”. I think deep down everyone who works in IT is a bit weird, and i will repeat Eric’s remark: “Go on admit it”. Whether it is something tiny or their complete character, you can usually put your finger on something out of the ordinary. My REAL question is: Is everyone weird in some way once you get close to them?
Adding Windows Live Writer support to your Blog engine
If there is one blogging related tool that I've come across lately that i think has been a game changer it would have to be Windows Live Writer. However some people are using either a custom written blog engine (like me) or are using a blog engine that doesn’t support Live Writer. If that is the case i will show you a simple way to integrate Windows Live Writer support into you blog with WebServices and the MetaWebLog API.
Upgrading Umbraco from 3 to 4 – Not all smooth sailing
If you have ever had to setup or manage an Umbraco installation you will know both the pleasure and the occasional pain that it can bring. Umbraco is part of the growing list of “oober cool” up and coming Dot Net CMS that are getting attention in the “get it up quick” world of marketing driven sites in the market place (Ford Australia for example). I recently had to upgrade a clients installation from 3.0.5 to 4.0.2.1 and the story that follows will hopefully help someone in a similar position so that they can revel in the same relief that I do currently.
Forcing ASP.Net to use a Proxy to make requests
This is a quick one today. I was recently working with a web application that runs a spider to index content on a bunch of intranet sites. The client was a large company with a very security conscious IT team, that had locked down all intranet access from the web server server in question. Luckily Dot Net supports proxies in a loving fashion, and I'll show you how.
Running large MSSQL scripts & resulting memory errors
Today i was battling in the trenches while trying to fix a deployment issue on a foreign webhost with a support team that had a lead time of 3 days on a support ticket when i came across a very annoying issue. While trying to import a large MSSQL script (140mb) i was having a repeated dual to the death with the error “701 Insufficient Memory” and his evil twin (kind of like the white dreadlock guys in the Matrix) - “System.OutOfMemoryException” in SQL management studio. But never fear, there is a solution, and its really simple.
Random file, Zip and PDF tracking using jQuery & Google Analytics
I use Google Analytics a lot day to day to help my clients better understand their visitors. As Google Analytics is a remotely hosted statistics solution that uses JavaScript it doesn’t track files downloaded like a regular log file analyser would. So today we’re going to talk about how we can track those file downloads so that you can gain better metrics on documents hosted by your site.
Start of something new
I recently took Rob Conery of SubSonic fame’s advice and decided it was time to be a good Jedi and build my own blog engine – on a side note: If you haven’t jumped in and at the very least tried Subsonic well… “friendship over”, not much else i can say. Obviously if you want to write a blog engine, there is no better way than to create your own blog using it – So here goes!