Java: My FileFilter implementation

This is my javax.swing.filechooser.FileFilter implementation (for the JFileChooser):

FileFilter fileFilter = new FileFilter()
{
	@Override
	public boolean accept(File file)
	{
		return file.getAbsolutePath().endsWith(".xml") || file.isDirectory();
	}

	@Override
	public String getDescription()
	{
		return "xml settings files";
	}
};

It accepts .xml files, but allows browsing through directories

Windows Live Messenger 9 Beta

Yesterday I tried Windows Live Messenger 9 Beta.

Works pretty well, fast, nice interface (not to childish), and the ability to sign in with the same accounts onto multiple computers.

But there is an issue with the custom emoticons.

They get preserved on upgrade (luckily, they did it right this time), but they don’t display if you use them, not in the chat window itself, and not in the text input box.

Messenger 8

Messenger 9

Let’s hope they fix this in the future release :)

Flash Player 10 and WordPress file upload.

Since Adobe released Flash 10 I am unable to upload files with the Flash uploader, it seems they changed the API in order to make it more ‘secure’.

They do not allow any openfiledialogs to be opened without explicit click from the user.

This breaks a lot of usability.

I don’t know why they would break something like that, because the user still has to select a file and click ‘Open’. Because of some stupid user they break it for all users.

More info about this (unresolved, and propbably never resolvable) issue.

Windows Live Mesh: How to install on a non-US computer.

(Disclaimer: this tutorial is written for Windows XP, I don’t know if it’ll work for Vista.)

As you might know, Microsoft has released a Tech Preview of Live Mesh a while ago. To get the installer from www.mesh.com you MUST have a .NET passport with an address in the USA. And to install it your regional options must be set to English, and the country must be set to USA.

After this double click the installer, and it should launch, and minimize to the system tray. After a few moments the installation is complete (it notifies you of this).

Now click Sign In in the Notification Window:

click

When it asks for your credentials be sure to use one with an address in the USA (the one you used to download the installation).

user

On the next Window just click ‘Add device’ to add your computer:

computer

Next Up: go to ‘My Computer’ and double click ‘Live Mesh Folders’, and there create a new folder and choose the location.

That’s it! Repeat these steps on another computer to keep them sync.

You can also go to www.mesh.com to browse your folders, works pretty wel :)

Good luck.

Microsoft Tech·Ed EMEA 2008 – Developer (2)

I would like to clarify a previous post of mine.

As stated there I will be attending Microsoft Tech·Ed EMEA 2008 – Developer in Barcelona the 10th until the 14th of November this year.

There is so much to tell about this, it will be a week PACKED with programming, no silly lessons like school, but information on a decent level.

I already made my agenda for the week (it can change though), in order for them to know how many places they must reserve for each seminar.

I mainly chose WPF and Silverlight, and User Interface. Because that is what I like, the interaction between the program and the user.

Databinding and LINQ is also very interesting, and I will be attending a seminar about that subject.

More information will follow.

Browser plugins and 64-bit browsers.

As yesterday Flash 10 launched, and today Silverlight 2 was released, a lot of people on the internet seem to be angy at Adobe / Microsoft for not releasing a 64-bit version of their plugins.

Well, it’s YOUR choice to run a 64-bit browser, on your stupid OS! (yes I’m pointing to you, Linux users…). You don’t hear Vista 64-bit users complaining Flash does not work under the 64-bit edition of Internet Explorer, no, they just use the 32-bit version, without flaming a 32 page topic on the internet.

You don’t hear them complaining that they have to download 53 32-bit libraries just to get a 32-bit version of Firefox up and running. Well guess what, it’s not the problem of Firefox, it’s the problem of your stupid designed OS!

And I am pissed off reading this every time they release an update.

If you don’t like it, go to the store and buy a Vista 64-bit edition.

Linux users have to be pleased there even IS a version of Silverlight (Moonlight) and Flash for them, because Microsoft has no financial gain in this, it just costs them money. What is the financial gain of writing an app for Linux? None, these lame asses are used to get anything for free (which is stupid, because if they buy a computer WITH Vista it’s actually cheaper than one with Ubuntu).

Stay away from Linux, it’s dirty, unplanned, and hacked…

Use a real OS.

SQL Server 2008 Express Edition + Visual Studio 2008 x64 User instance problems.

As described in this connect article there is an issue with the integration of SQL Server 2008 Express Edition ans Visual Studio 2008 if you are running on an x64 system (the OS itself! Not runing 32-bit Vista on a Core 2 Duo) (although some report this bug on a 32-bit OS).

This issue is currently unresolved, but you still can open the database in the server explorer if (and only if) you modify the connection string NOT to use a User Instance.

You can do this by rightclicking the database in the server explorer, modify connection and set ‘User Instance’ to ‘False’ (last item)

User Instances are not allowed anymore since SQL Server 2008, as described here.

In order to make it work as it should be you can either install a 32bit SQL Server 2008 Express (which I do) or do as described here.

Update: Back to SQL Server 2005 Express Edition, all the rest fails as described.

SQL Server Management Studio Express 2005 Security Error (29506)

Should you ever want to install SQL Server Management Studio Express 2005 you MUST run it as Administrator.

When you try to install it on Vista (by double clicking the .exe) it extracts the files to a temp folder.

Then it launches the setup, asking you some questions. After that UAC asks you to gain Administrative access.

No problem so far, but at the end the installer notifies you of error number 29506, it cannot modify the security properties.

Solution is described here, run the installer as Administrator from cmd.

Future of this blog

I will be writing in English, because it reaches a much greater community.

Older posts will not be translated, but all the new one’s will be in English.

As for the blog itself, it probably will be merged with a blog from a good friend of mine, but I can’t go into that at the moment.