Skip to main content

Posts

Visual Studio crashes when trying to adding/edit a macro

Some days ago I wanted to add a macro to my new installation of MS Visual Studio 2010 and I received the following error message: Cannot find one or more components. Please reinstall the application. The installation of Visual Studion seems corrupt. After some digging I found the solution and only needed to repair the installation, and not to do a complete re-installation. Follow the instructions at this site  if you experience the same problem. If the link is broken, this is what to do: Delete the following file: * On a 64-bit operating system: "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\Common7\IDE\1033\Microsoft.VSDesignerUI.dll" * On a 32-bit operating system: "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\1033\Microsoft.VSDesignerUI.dll" On the Add or Remove programs page, select Uninstall/Change Visual Studio 2010 and then click Next. Select Add or Remove features. Clear and then re-select any of the features in the list. This ...

Problem updating the Android SDK in Eclipse

When updating the Android SDK from the Android SDK Manager in Eclipse you may encounter an error with the following message: -= warning! =- A folder failed to be renamed or moved. On Windows this typically means that a program Is using that Folder (for example Windows Explorer or your anti-virus software.) Please momentarily deactivate your anti-virus software. Please also close any running programs that may be accessing the directory 'C:\opt\android-sdk-windows-1.5_r3\tools'. When ready, press YES to try again. Many forums suggests to disable the antivirus software and retry, but that didn't work for me. The solution turned out to be very simple. Close Eclipse, open a command prompt and navigate to the tools folder of your Android SDK, in my case C:\opt\android-sdk-windows-1.5_r3\tools. Then give the command: android update sdk The environment will now be updated.

How to update a database

Keeping a database's structure up to date can be a rather complicated task. If one is maintaining a web server then it's at first sight a simple task of updating the database when the server is updated. But what to do when the web server is the actual product delivered to customers? Another problem is perhaps more obvious, the product is an application that gets regular updates with bug fixes or new features. Read my full article at The Code Project .

A WPF book I recommended

I have just started to develop a new application together with my customer and we are going to use the Windows Presentation Framework (WPF) and .NET 4. Since this is new to me I needed some literature in the subject. One book I have used is WPF 4 Unleashed by Adam Nathan (ISBN 978-0-672-33119-0). I can very much recommend this book. The reader must be familiar with the .NET framework and C#; no time is spent in describing .NET or programming in general. Together with Google this book will help you when developing WPF applications.

Android development tips

Here are some tips for Android developers that, hopefully, will make your app's reviews in Android Market be more positive. The tips below are a compilation of tips found at Swedroid together with my own personal experience of Android development. Does the app work on all platforms? The app should be working on as many platforms as possible. Make sure that all screen sizes are supported and test them thoroughly. Obviously, you don't need to have 20 or so phones but at least create an Android Virtual Device (AVD) for each available screen size. Make use of the multiple APK support if needed. Test the app! Pretty basic maybe, but nevertheless important. Give the phone to a friend (preferably not a programmer) to test. Use unit testing in your Android project, see Android developers . Test the app with different screen sizes. Update the app often With bug fixes, then what about testing!? Update your app frequently, that will make your users feel that something is happeni...