The process to marshal or serialize an object to XML can differ greatly from language to language and implementation to implementation. Even within a single language, like Java, there are multiple ways to go about it. I happened to stumble upon this one the other day and thought it was pretty straight forward.
This example contains two classes XMLExample.java and Example.java. We will use the functions in XMLExample.java to convert Example.
Say you are travelling, or are at a neighbourhood coffee shop, using whatever unsecured WiFi network they make available. You could either:
trust that no one is sniffing your web traffic, capturing passwords, e-mails, IMs, etc. trust that no one is using more sophisticated methods to trick you into thinking that you are secure (i.e. man in the middle attack) route your Internet traffic through a secure tunnel to your home PC before going out onto the web, protecting you from everyone at your current location which would you choose?
I logged onto my desktop the other day, for the first time in a couple of weeks – I’ve been away travelling, and was surprised to notice that my PGP key was set to expire. Long story short I have generated a brand new key.
OpenPGP Key
Name: Tyler Burton
Key ID: 0x1CD3E3D8
Key Fingerprint: 96ED 6B13 10B1 69C1 8299 693C 2921 6D80 1CD3 E3D8
Keyserver: pgp.mit.edu
Key Algorithm: RSA
There has been quite a bit of activity on The Linux Experiment over the past little while. Check out the site here or quickly jump to the post that I wrote below.
Big distributions, little RAM 3 How do the ‘big time’ distributions handle on constrained hardware? Take a look.
How to install sun-java6-jdk and Netbeans in Ubuntu 11.10 A simple process to install the official SunOracle Java JDK and Netbeans IDE in the latest Ubuntu.
In case you somehow found your way here and haven’t already seen them over at The Linux Experiment, I have put up two new posts that deal with fixes for your linux desktop.
Two monitors. Different resolutions. One desktop. If you’ve ever wondered how to use two monitors with different resolutions as a single, unified, extended desktop I highly suggest you do a quick read of this post. I’ve covered how to avoid, and fix, the ‘dead space’ issue where application windows can get lost because of the difference is vertical resolutions.
So you want to do Android development but you hate Eclipse? Well fear not, there is another IDE that you can use to meet your mobile development needs. This is a quick guide, mostly for my reference later, on how to setup an Android development environment in Netbeans.
1. Download and install the Android SDK and Netbeans IDE like normal Pretty self-explanatory just grab the installers from here and here respectively.
A short post but I figured I would throw it up here before I lose my code. There are a couple of different ways that you can load jar’d code at runtime but here is a simple solution that I found to work very easily.
File myJar = new File("myJar.jar"); URL url = myJar.toURI().toURL(); Class<?>[] parameters = new Class[]{URL.class}; URLClassLoader sysLoader = (URLClassLoader)ClassLoader.getSystemClassLoader(); Class sysClass = URLClassLoader.class; try { Method method = sysClass.
For something to do I decided to see if I could create a very simple Java media player. After doing some research, and finding out that the Java Media Framework was no longer in development, I decided to settle on GStreamer to power my media player.
GStreamer for the uninitiated is a very powerful multimedia framework that offers both low-level pipeline building as well as high-level playback abstraction. What’s nice about GStreamer, besides being completely open source, is that it presents a unified API no matter what type of file it is playing.
With no real alternative to Xcode on non-Mac platforms there is a real lack of a genuine development environment for Objective-C. With projects like GNUstep picking up the Objective-C runtime portion of the equation I’ve decided to try my hand at filling the other gap by creating a very simple IDE strictly for Objective-C. My goals were simple: create a basic IDE written in Objective-C that provides syntax highlighting, one button program compilation, and (if I could get it to work) some form of auto-complete or a suggestion system.
The iOS platform, consisting of the iPhone and the iPad, has seen most of it’s success thanks to the plethora of applications (apps) available for download. It is without a doubt the platform’s strongest asset and one that, thanks to the continued success of apps like Angry Birds, seems likely to continue for some time. While a lot of time on these devices is spent listening to music, browsing the web, reading e-mails and, let’s face it, playing games I wanted to write up a quick post about some of the other apps that I use on a regular basis.