One framework to rule us all…

What to do when “permission from TrustedInstaller” is required

Seeing people confronted with this far too often, thought of leaving a quick tip on this matter. TrustedInstaller is the built-in user account which Windows uses to install updates and Windows App. So when trying to rename, open or delete certain files or folders, if they are owned by TrustedInstaller, no one else has access. One particular scenario in which you might be confronted with the prompt “You need permission to perform  this action. You require permission to make changes to this folder.”,  is when deleting certain folders in Program Files, or when updating to Windows 8.1 and wanting to (more…)

Read more

Windows Store App: Ways to send parameters when navigating between ViewModels

This is a quick reference for those starting on Windows Store Application development. If you are using Caliburn.Micro (if not, you probably should), you’re certain to require passing data between ViewModels/Screens. I’ll expose two ways you can go for to achieve this. Assuming you have a local reference/dependency for Caliburn’s INavigationService, first approach is to call the NavigateToViewModel method (the example is in the context of a ICommand.Execute()-type call):

The method accepts one parameter, and that’s where you should send your data. In the destination ViewModel, on the other hand, in order to access the data, you need to (more…)

Read more

VS2012 XMTransposeMatrix memory alignment error

Working on a simple 3D engine I occasionally stumbled upon an invalid access exception on a XMMATRIX transpose operation while invoking rendering in dirty state shapes in my scene. At first I thought it was something on my side, and rolled back some code to sort things out. But I realized the issue persisted. I ended up reducing the scope scope of the problem to the the XMTransposeMatrix call. Here’s an extract of the DirectXMatrix library code where the error is being raised:

SSE needs data to be aligned on 16 bytes boundary, not 16 bits, that’s why the shifting is taking place there. (more…)

Read more

You do not have permissions to create a new team project – Here’s why

There is a good chance you stumble into this error message in VS 2010, while accessing a TFS 2012 instance. If you do, you should use the Visual Studio Team Explorer 2012 (included in all Visual Studio editions or may be separately downloaded) to create a team project on a TFS 2012 server. If you use VS 2010, you will get an error about not having permission. The error message is very misleading, because it’s not a problem with your permissions.

Read more

Remove SQL Server database from single-user mode

Just another friendly tip that I believe can be useful to many. When setting up a local testing environment I installed TFS 2012 with database files placed on a redundant raid array. To do this, I ran a small script to make the required changes to TFS databases file paths, but when I took them online I their names had “Single User” next to them, and the icon changed as well. This happened to me once, so I thought of immortalizing the “fix”. i say “fix” because this is actually a fail safe from the engine. This happens because SQL (more…)

Read more

Using the .NET 4 Task class in WPF

Here’s a quick example on how to implement an asynchronous call in WPF using the System.Threading.Tasks.Task class. Keep in mind that underneath, the call will still end up in a thread pool, as opposed to a ThreadPool approach.

The trick is to use TaskScheduler.FromCurrentSynchronizationContext() to make sure we can work in the UI Thread. ContinueWith sets up a follow-up call to do some final work and that’s it.

Read more

Guide to building a Home Theater PC – Part III

On the previous article we’ve set up the basic settings for the OS and set up MediaPortal as media frontend solution for our HTPC. This time around I’ll cover all the tools required for the perfect movie and tv show download automation. The downloader: SabNZBd SABnzbd is an Open Source Binary Newsreader, incredibly easy to use, and works practically everywhere. It makes Usenet as simple and streamlined as possible by automating everything. All you have to do is add an .nzb. SABnzbd takes over from there, where it will be automatically downloaded, verified, repaired, extracted and filed away with zero human interaction. (more…)

Read more

Guide to building a Home Theater PC – Part II

After going into a detailed Home Theater PC assembly, it’s now time to delve into the most important aspect of the HTPC experience: the software. You can have the biggest rig on earth, but if you’re still on DOS, it doesn’t do much to you. So this second part of my guide will cover all the essentials to get you up and running in style with the best free/open source software available. Starting with the OS, since I’ll be covering a windows HTPC solution, I recommend using Windows 7. Either version will be ok, since we won’t need any specific (more…)

Read more

How to fix Onkyo SR875 display malfunctioning

It’s been 9 months since my last post. Guess wedding preparations and side projects took more than their share of my free time. It’s hopefully all about to change now, since I now bear the wedding ring and it’s time to go back to the roots! Just before going on honeymoon my Onkyo SR875 AV Receiver’s display ceased to work. Other than not seeing the usual info on the screen, the receiver worked fine. Of course this little big issue got me worried since the warranty period is over and I would need to take it to the nearest servicing (more…)

Read more

Tip: Problems debugging the .Net Framework

I’ve recently developed a major infrastructure that deals with serialization/de-serialization of complex application documents. One of the main challenges I had, was handling document files from another application. Although both source and consumer application share a common business library, there were also app-specific types serialized along with everything else. So to be able to correctly interpret the data being serialized and be able to act on every step, I had to inevitably delve into the framework 4.0 source code, mainly the ObjectManager. The problem: It came to my understanding that there are a number of issues developers face when setting (more…)

Read more