Latest Posts

Design Java UI Like Visual Basic


One of the most frustrating and time-consuming tasks in Java is creating basic, ordinary UI.  As in, windows, buttons, scroll bars, text fields, etc.

This is in stark contrast to, say, Microsoft Visual Basic / Visual Studio, where you can just drag and drop elements onto a form, and what you see is what you get.  And when you double-click a button on your form, you get to the code which is executed when the button is clicked.  In Java, if you want anything other than just the basics, you're going to have to do a lot of typing.

That is, unless, you are using the WindowBuilder Engine and Eclipse.

 

MySQL Temporary Tables


If you have ever needed a routine which rebuilt a large database table every night, you've probably run into the following situation:  while the table is being rebuilt, whatever scripts which read from it will be broken, and you risk users of your system (or site) seeing the data when its still only half-populated.

For those MySQL gurus out there, you're probably screaming "use transactions!"  But, if you are using a MyISAM table instead of InnoDB, that isn't an option.

Symlinks in Windows 7, 8, 10, 11, etc...


Did you know you can create a symlink in Windows 7, 8,10, etc just like in Linux?  If you don't know what that is, imagine a directory somewhere which is actually displaying the contents of another directory, maybe on an entirely different hard drive.

The command needs to be run from the command line, and looks like this:

MKLINK [options] link target
Example:  MKLINK /J data "C:\Dropbox\MySQL Folder\data"

Pages