Skip to content
jansipke.nl

jansipke.nl

Photography, programming, puzzles and more…

Menu

Java

Serialize and deserialize a list of polymorphic objects with GSON

GSON is a great Java library for serializing and deserializing objects to and from JSON strings. When you have a list of polymorphic objects you want to serialize and deserialize, things get a bit more difficult. You have to tell

jansipke 2015-08-152021-09-12 Programming 8 Comments Read more

Getting metrics from the Java Virtual Machine (JVM)

Sometimes it is useful to see what the Java Virtual Machine (JVM) is doing when it is running your program. In this blog we will see how to get metrics about memory, buffers, threads and the garbage collection (gc) process

jansipke 2014-02-042021-09-12 Programming No Comments Read more

WebSocket tutorial with Java server (Jetty) and JavaScript client

WebSocket is a web technology providing full-duplex communications channels over a single TCP connection. WebSocket is designed to be implemented in web browsers and web servers, but it can be used by any client or server application. In this tutorial

jansipke 2013-09-192021-09-12 Programming 22 Comments Read more

Running dynamic Java code

Using a Java library called Javassist it is possible to create class files on the fly and use them in the same program that created them. Sounds funky, and it is… First download the jar file from the JBoss download

jansipke 2013-04-222021-09-12 Programming No Comments Read more

Creating a Java WebStart (JNLP) application

Java WebStart, also called Java Network Launching Protocol (JNLP), allows you to launch Java applications directly from the internet using a webbrowser. In this article we will create a simple application and all configuration files necessary to launch it through

jansipke 2012-10-152021-09-12 Programming No Comments Read more

Model View Controller (MVC) with JSP and JSTL

In this article we will create a small web application that uses the Model View Controller (MVC) pattern with Java Server Pages (JSP) and JSP Standard Template Library (JSTL). A container like Tomcat is needed to run this combination. Thanks

jansipke 2010-07-202021-09-12 Programming 14 Comments Read more

Changing CPU and memory settings on XenServer VMs

You can change the CPU and memory settings of XenServer virtual machines using the API. XenServer allows you to set the priority of the virtual machine CPU (called weight), set a limit on the amount of CPU the virtual machine

jansipke 2010-06-082021-09-12 Cloud Computing, Programming 10 Comments Read more

Installing Sun JDK 6 on Ubuntu 10.04

The Sun JDK can be installed on Ubuntu by adding a repository and installing with apt-get. The following works with the latest versions of both at the time of writing: Sun JDK 6 update 20 Ubuntu 10.04 sudo add-apt-repository “deb

jansipke 2010-05-272021-09-12 Programming 8 Comments Read more

Getting CPU, memory, disk and network metrics from XenServer

In a previous article we looked at getting CPU and memory metrics from XenServer. As noted in that article, as of version 5.5 of XenServer, the preferred way of getting virtual machine metrics is through HTTP calls to get RRD

jansipke 2010-05-082021-09-12 Cloud Computing, Programming 5 Comments Read more

Getting XenServer VM metrics in Java

XenServer is a product of Citrix that can run virtual machines on a set of physical hosts called a pool. There is an API that allows you to create programs that interact with the XenServer pool. There are some function

jansipke 2010-03-032021-09-12 Cloud Computing, Programming 3 Comments Read more
  • « Previous




You can contact me at jansipke at gmail.com

  • Artificial Intelligence
  • Cloud Computing
  • Energy
  • Hardware
  • Networking
  • Papers
  • Photography
  • Programming
  • Puzzles
  • Robotics
  • Security
  • Storage
Copyright © 2023 jansipke.nl. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.