Posts about tips
JAVA JScrollPane change scrollbar width or height

It's actually pretty simple. Just do something like this, adjusting to the horizontal scrollbar and/or the height that you want:

yourScrollPcane.getVerticalScrollBar().setPreferredSize(new Dimension(85, Integer.MAX_VALUE));

Miner Wars 2081 saved games directory/folder

The files live in this folder (at least on Windows 7 and possibly 8):

C:\Users\void\AppData\Roaming\MinerWars\Saves

If you use the standalone client, the files will be inside PUBLIC. If you are using STEAM, then they will be under STEAM. This way...

Date and time in ruby

Time.now will give you the current date (and time), like so:

Time.now 2012-11-22 22:35:01 +0000

You can also request all the date parts individually:

Time.now.hour 22 Time.now.min 35 Time.now.sec 01 Time.now.day 22 Time.now.month 11...

Update server not available (error- 12) on OSX

Here's the definitive fix for this annoying-as-hell problem:

1. Run the following on the command line: sudo...