Tutorials

Check out the latest tutorials here!

Reflection Proofing the Java Singleton Pattern when using Lazy Loading

Nov 11
08

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.

By Vishal Chougule Read More

Fun with the Unix/Linux find command!

Nov 11
05

This article lists some of the more useful ways of utilizing the find command.

These commands will work on most Linux distributions, and have been tested on recent versions of Ubuntu and SUSE.

By Abdullah Chougle Read More

Configuration Settings and Shortcuts for Unity Desktop in Ubuntu 11.10 (Oneiric Ocelot) - Efficiency Boosters

Oct 11
27

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.

By Naweed Chougle Read More

How to enable Java in Chrome and Firefox on Ubuntu

Oct 11
15

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.

By Abdullah Chougle Read More

Attacking a Weird Java Error: java.lang.ClassFormatError: Invalid pc in line number table

Oct 11
12

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.

By Vishal Chougule Read More

A Quick Tutorial to Set Up an NFS Server on Windows

Oct 11
01

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.

By Abdullah Chougle Read More

Automatic Login For SSH/SFTP on Ubuntu

Sep 11
25

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.

By Abdullah Chougle Read More

How to Delete a Directory in Linux

Sep 11
18

To delete or remove a directory in Linux, use the “-r” flag to the “rm” command. “r” stands for recursive.

rm -r <directory_name>

By Abdullah Chougle Read More

How to Install an Older Version of Java in Ubuntu 11.04

Sep 11
18

Steps to help you install any version of Java in Ubuntu.

By Abdullah Chougle Read More

How to install the Pronet Wifi Adapter on Ubuntu

Jul 11
24

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.

By Abdullah Chougle Read More

Pages

Subscribe to RSS - Tutorials