The singleton design pattern in Java is one that I found over the years to be both tricky and interesting. There are many ways in which this pattern can be broken – this article talks about reflection based attacks.
Preventing this line of attack is easy when your singleton is initialized at class-load time – but what if there's a need for lazy initialization? This write-up explains how to reflection-proof your Java singleton in such situations.
When I upgraded from Ubuntu 11.04 (Natty Narwhal) to 11.10 (Oneiric Ocelot), I had mixed reactions, not least due to the occasionally problematic graphical user interface. I was more familiar with the classic desktop, which was available as an out of the box option in 11.04.
Here's a short tutorial I wrote on getting Java enabled on Ubuntu browsers. I'd faced this issue a few days ago, and hope that this article serves as a quick and helpful guide.
While working on the Oracle Application Framework, my Application module's class file was behaving in a strange manner, throwing a java.lang.ClassFormatError. Read on to find out what I did to fix it.
A few days ago, I needed to share a large folder present on a Windows server to access it from my local Ubuntu workstation. I initially used Samba, but my build script refused to recognize paths present in that share.
The solution was to use an NFS share - but this required a special setup on Windows. Even after a lot of searching on Google, I couldn’t easily find a guide that talked about how to get started with an NFS server on Windows quickly. Most articles I came across were only detailing information on NFS security, or some obscure command line options for tweaking NFS options - which shouldn’t be required when all you want is a simple share within your local, protected network.
This article details what you need to do to get your NFS server up and running quickly on your Windows machine.
There are just three simple steps needed to automate your SSH/SFTP logins to remote Unix/Unix-like servers from your Ubuntu/Linux distribution, or an emulator on Windows like Cygwin.
I bought the Pronet Wireless USB adapter at a local store, after hearing about its good performance. However, it does not come with Linux drivers supplied, so I had to figure out how to install it on my Ubuntu 11.04 box myself.
Update: The steps below apply to versions of Ubuntu prior to the latest 11.10. On Ubuntu 11.10, the adapter was detected automatically when plugged in.
Recent Comments