Anti Virus and Visual Studio
struct vs class
DotNetNuke and Stylesheets
My Dad has recently started subscribing to a portal site for his business and was asking about how to style the site correctly. After a cursory look I realised that the site was in fact a DotNetNuke portal. Fine I thought, just write a new skin and off we go. However, in their great wisdom the portal administrator had switched off any ability to add/change skins, so we’re left with the default skin. The problem is that the default skin is churning out a terrible mixture of structure and layout HTML making it almost impossible to style correctly. I’ve really struggled to make them understand why their portal is currently so terrible because of it. This company is one of those companies that give the IT industry a bad name. They pick up a product, which is free, and take money from unsuspecting customers but provide them with a rubbish result because they cannot either understand or be bothered to use the tool properly in the first place. I’m sending them a link to a What is CSS FAQ in the hope they can at least read about CSS.
Extension methods
Domain Specific Languages vs. UML
Visual Studio 2005 and Remote Desktop
Remote Debugging using Visual Studio 2003
- Install remote components (not full blown Visual Studio), found in the install root of VS. A bit annoying you have to install anything but the client was ok with this
- Add your interactive user into the remote servers "debug users" group (and possibly the administrators account or discover the permission necessary to access a running process)
- On the remote server run; msvcmon -tcpip -anyuser Note that you can specify the correct user but if you’re not too concerned about security then this is a simple short-cut. Also read what it says, it will stop listening after a period of time (15 mins by default)
- In Visual Studio open the process dialog and type in the name of the server
- Attach to the process and off you go
Apparently you can start the remote process off from Visual Studio too, but for some reason it wouldn’t let me specify the location. Since I was using Remote Desktop to control the program on the server it wasn’t a problem.
Wake Up On Lan
- You first need to discover the MAC address of the network card in question. To do this I ran a command window on the target machine and entered "IPCONFIG /ALL". Note down the address of the card, it’s not the IP address but a series of hex numbers normally "-" separated.
- Ensure the machine’s BIOS is configured to accept WOL. This usually requires rebooting your machine and going into the "setup" for the BIOS. Locate your network settings and ensure that WOL is enabled. Note that on some systems you can have conflicting settings. So Wake Up from Hibernation settings often conflict, see you BIOS/Motherboard settings for more details.
- Switch your machine off and run MC-WOL from another machine.
This should work, however there are a number of gotcha’s.
- Firewalls. I only use this via a LAN or VPN so I’ve not had this problem but for sensible reasons a firewall can get in the way of your call. This is good news since you don’t want people on the internet starting your machines up.
- "Soft" and "Hard" shutdowns. This was the first time I’d come across this concept. You can shut a machine down in two different ways. For example, pressing Shutdown in Windows produces a Soft shutdown and the machine can normally be woken up. Hold the power button and switching the machine off results in a Hard shutdown and it won’t wake up. This is annoying since the reason you want to wake a machine might be because someone’s turned it off or ’cause of power cut, et al.
- Operating System settings. The BIOS changes aren’t always enough. Sometimes you have to go into Hardware Manager, select the network card and look at its settings. My cards have "Use Magic Number" or "Enable WOL". As you see there doesn’t seem to be a standard so look for something that sounds like Wake Up…not great instructions but there you go.
Testing for Safari when you don’t have OSX
- Buy a Mac – nice if you afford it
- Use a screen shot service – pain to use if your site has any kind of dynamic changes, lets face it they’re a pain to use full stop
- Use another KDE based browser
Option 3 is the one I’m currently recommending. Safari is based upon the KDE browser engine, so why not use another browser that uses the same fundamental rendering engine, e.g. Konqueror. Well, the first problem is if you’re running Windows there currently isn’t a version for good ole’ Windows. The answer is turn to Linux, well sort of. My advice is to get hold of the VMWare player with a downloaded image of your favourite flavour of Linux, mine is Ubuntu (if only for the name). Install Konqueror and off you go, Safari like browsing without OSX. It’s not a 100% guarantee, but you’ll iron out the most obvious problems.