{“There is an error in XML document (2, 2).”}

An extremely undescriptive error message took hours of my valuable time. Of course, we are talking about XmlSerializer trying to parse an XML file. What actually happened was that an inherited piece of code caught and ignored this error, while I’ve configured my Visual Studio to break on System exceptions, so it appeared to be a cause of another error!

Continue reading

Posted in Software Development | Tagged , , | 1 Comment

Git – how to remove remote branch

Seemingly obvious action got me more than once.
git push origin :branchname
is the way to go.

Of course, I’ve expected something like:
git branch -d origin/branchname
but it wouldn’t work.

Posted in Software Development, Tools | Tagged | Leave a comment

Redmine Email Notifications on Ubuntu 10.04 Server

Redmine is so cool  issue tracker, that I’ve had to give it a shot.

Unfortunately, even on ubuntu server, where apt-get is supposed to make life easy, it’s by no means trivial to setup.

I’d like to give a suggestion on how to make email notifications work.

Continue reading

Posted in Infrastructure, Project Management, Tools | Tagged , | Leave a comment

Dangerous Help

This tool is running with elevated privileges. Navigating to the help content in this situation might constitute a security risk. Run the tool without elevated privileges to reach the help content.

Dangerous Help

Continue reading

Posted in Fun, Tools | Tagged , | Leave a comment

How to turn on IIS logging in Windows 7?

OK, this was not intuitive at all. I can quickly find page like this: http://technet.microsoft.com/en-us/library/cc754631(v=ws.10).aspx

And there is nothing linked to it that would give me an idea why I can’t find Logging feature in the place I’m supposed to activate it.

However, “feature” was the keyword. Great puzzle, Microsoft!

You need to go to “Turn Windows features on or off”, then navigate to Internet “Information Services/World Wide Web Services/Health and Diagnostics” and finally you can turn any logging you wish.

No, that’s not all. A good old computer restart had to be done as well.

Posted in Infrastructure | Tagged , , | Leave a comment

NHibernate “Could not find the dialect in the configuration” “Could not compile the mapping document”

These are the show-stoppers for me for quite a while. I was using the example from the book trying to replace App.config (in my case Web.config) with hibernate.cfg.xml so I can have different configuration in a test project, but these two guys kept showing up.

The “dialect thing” actually tells us that hibernate.cfg.xml has not been processed at all, and it probably also made interpretation of the mapping file impossible as well.

Continue reading

Posted in Software Development, Tools | Tagged , , | 3 Comments

Gedit adding newline at the end of file

Recently I’ve been checking out PHP sources of a friend’s web application. I’ve decided to use Gedit, as we needed a quick solution and eclipse was not in place (yet). We’ve managed to setup file permissions and database pretty fast and finally – we got the application working, but no script-generated images were showing.

Interesting enough – downloaded image files appeared to have normal sizes (and different ones, too), but browser couldn’t display them. Neither could any of  imaging software available.

Continue reading

Posted in Free Software, Software Development | Tagged , , , , | 1 Comment

Simple Web Business

As a person coming from technical background, I’m always tempted to fantasize about exciting technical solutions on the web that make big commercial wins. Most people around me do. Of course, there is a number of web & IT businesses that started in a garage (sounds familiar, huh?) and reached sky heights, but most of the mortals should probably go for something much simpler.

Continue reading

Posted in Business | Leave a comment

Pushing Virtualization to the Limits

We have a Windows Server 2008 r2 with Hyper-V on a true server hardware and dozens of VMs on it. I’ve setup an Ubuntu x64 machine on my computer and wanted to consolidate by moving it to the server. Export/import went fine, but it booted into a black screen with a cursor in upper left corner.

Continue reading

Posted in Hardware, Infrastructure | Tagged , , | 1 Comment

Team Foundation Server 2010 Setup

Don’t try this at home, OK?

I wanted to try out less than Basic TFS setup. I only wanted source control part to start with. I took the following:

  • Existing AD Domain
  • Domain user on local machine with VS 2010 ready
  • Remote virtual Windows Server 2008 R2 created by merging Hyper-V template
  • TFS 2010 Installation Disc

First step was installation, and there is not much to say about it – just use minimum set of features, but then comes the hard part – configuration.

Continue reading

Posted in Infrastructure, Software Development, Tools | Tagged , | 1 Comment