A developers review of lynda.com, and it’s Regular Expressions course

My employer is keen to provide training for it’s staff; that’s no easy thing to do for a global company with thousands of employees, particularly when over a thousand of them are technical staff – we’re a fussy bunch that are generally busy building stuff and don’t want manager types getting in the way of getting that done. Continue reading

Posted in Software development | Tagged , , , | 1 Comment

Tip: check %ERRORLEVEL% in your post build steps when using NUnit

If you’ve added NUnit into your post build steps in Visual Studio, make sure you check %ERRORLEVEL% after you’ve used it!

If your unit tests fail, you probably want your whole build to fail right? NUnit will help you here for sure, but Continue reading

Posted in Software development | Tagged , , , | Leave a comment

An easy way to set a newly created threads culture in .NET

When you create new threads in .NET, the threads culture & UI culture comes from the OS locale – not from the calling threads Continue reading

Posted in Software development | Tagged , , , | Leave a comment

Getting past the “Preparing SolidWorks for first use” message box

Sometimes, when I start SolidWorks, I get presented with this message box.

SolidWorks - preparing for first use

SolidWorks - preparing for first use

It’s not the first time that I’ve started SolidWorks, it’s just that SolidWorks thinks it needs to Continue reading

Posted in Software development | Tagged , , , | 15 Comments

Getting Inventor’s part orientation into a standard matrix

This snippet demonstrates how to use the Autodesk Inventor API to get the view rotation matrix for a part in Inventor as a standard matrix that you can then use with an OpenGL render context. Continue reading

Posted in Software development | Tagged , , , , , , | Leave a comment

Updating app.config files to use .NET v4 via XSLT

I recently needed to update the /configuration/startup/supportedRuntime element in app.config files of 3rd party applications to make them use .NET v4. Why? Because Continue reading

Posted in Software development | Tagged , , | 1 Comment

Setting a Tooltip on a UserControl’s child controls

Every noticed how the .NET WinForms ToolTip component only displays the tooltip you’ve set for UserControl’s when the mouse is over the controls background? This snippet shows you how to resolve that Continue reading

Posted in Software development | Tagged , , | Leave a comment

Formatting Bytes to KB, MB etc. in C#

This snippet will take the number of bytes as an argument, and return a formatted string for use in a UI. There’s a couple of interesting points: Continue reading

Posted in Software development | Tagged , , | 1 Comment

Compiler selection when working with Pro/TOOLKIT

As I’ve previously mentioned, when you’re developing an application with Pro/TOOLKIT for the Windows OS, you don’t have the luxury of selecting which language you’re going to develop your application in, you have to use Microsoft Visual C++. But which version of Visual C++ should we be using? Continue reading

Posted in Software development | Tagged , , , , , , | 2 Comments

Handy batch file tricks

I often find I need to write batch files, particularly to automate post build steps in Visual Studio. Here’s a bunch of tricks that I’m always forgetting. Continue reading

Posted in Miscellaneous, Software development | Tagged , , | Leave a comment