Skip to main content

Posts

Changing development environment

Due to a couple of reasons, but mainly because my computer has been reinstalled, I had to setup a new development environment for my LegLogger web application. My choice was to either continue using myeclipse , or to install a plain eclipse. My choice fell on plain eclipse because it’s free and I don’t get too many functions I won’t use. The setup of my different Android projects was no problem but the web application were more troublesome.   I realized that creating a web application with myeclipse (as I did some years ago when I first created the LegLogger web) is very easy and the environment do have some nice features that are missing from the plain eclipse. However, and this is the main problem I think, you don’t get the full control of which jar packages are needed and used by the application. Sure, it’s nice to click “Use Hibernate” and everything just works, but then you don’t know which packages are required for Hibernate to work.   So I had to spend a coupl...

REST

I have just started to look at REST and how to use it in future projects. The list below are just some of the sites I have visited and found interesting: Building Web Services the REST Way How-to: REST Web services demystified

Windows touch command

If you like the unix command touch and want to to something similar in Windows, i.e. change the time stamp of a file, then there is not built-in command for that. Instead use the copy command like this: copy /b foo.txt +,, If you really want a touch command, then place it in a batch file called touch...

Show tooltip on disabled control

By default are tooltips not showing on disabled controls, but sometimes you want to inform the user about why the control is disabled. Simple add ToolTipService.ShowOnDisabled="true" to the control and the tooltip will always be visible. Example: <Button Content="Example" ToolTipService.ShowOnDisabled="True" /> See more at Microsoft MSDN .

File organization of a WPF project

A few months ago I started with a new project at work. The goal is to create a design tool for warehouses and the application will be running on the Windows platform. After the design choice landed on WPF I started to think about the project’s file structure. This is my first Windows application that is not build on Windows Forms but on WPF. The design tool is not that big of an application, so I think my tips in this article will suit small to medium sized applications well. First of all, how should the application be organized on the highest level? Does the application consist of only one executable file, or one executable file and several assemblies (e.g. DLL files)? For instance, the design tool has an output functionality that formats the warehouse data to a specific protocol and then uploads it to an embedded computer. The output functionality could well be located in a separate project (i.e. an assembly) that is referenced in the main application’s project. How should the m...