Archive

Posts Tagged ‘java’

VMDeployer 1.9 Released: More Stable and More User Friendly

October 18th, 2017 2 comments

After releasing 1.8, I became extremely busy with other projects. But I still use the software frequently, in other word, “eat my own dog food.” As result, I found a few bugs here and there and things to improve.

Today I couldn’t use the Web Client due to flash crash. After trying different ways to roll back, I could not get the workarounds work. Then I started to use the VMDeployer 1.8 for virtual machine management, and found it really helpful and fast too. That also reminded me to have a new release as soon as possible.

VMDeployer 1.8 Released: Full and Fast Datastore Browser Support

September 13th, 2017 4 comments

We released 1.7 before VMworld and then headed to Vegas for the conference. I gave a tech talk at the vBrownBag on the VMware APIs, especially the full vSphere REST APIs. We will release our vSphere REST APIs soon. Stay tuned. If you are interested in early access, please feel free to ping me.

VM Deployer 1.7 Released with GUI Enhancements: Best Tool to Import and Export Virtual Machines

August 23rd, 2017 2 comments

Here is another release of VM Deployer – version 1.7. It includes the following features and fixes, most of which are GUI related for greater convenience and elegance. I am pretty confident this tool is now the most intuitive and most convenient tool available now for deploying and exporting virtual machines, even though the initial design goal was to work around vSphere Web Client which cannot deploy our search engine product.

VM Deployer 1.6 Released: Pure Java Command Line And Better UI to Import and Export OVF

August 16th, 2017 2 comments

After 1.5 release last week, I have made a few more big enhancements as detailed below:

VM Deployer 1.5 Released: VM Power Management, Deletion, and Regular Expression

August 8th, 2017 2 comments

Since the first release of VMDeployer, we’ve seen so many downloads that we decided to invest more time even though it’s a free tool. The community support can be bigger motivation than anything else.

Here we have this 1.5 release which adds a few more features. Most of these features are there for users to have complete end-to-end user experiences. I will explain why under each item.

VMDeployer 1.4 Released: Light Weight GUI to Deploy and Backup Your VMs

August 1st, 2017 2 comments

When version 1.2 was released, I had almost finished the work on 1.3. Then, I got a few interesting ideas and quickly implemented them altogether. Instead of releasing 1.3, I’d pull things together for 1.4 release.

Here are a few highlights in this version 1.4:

Deploy OVA or OVF in Scalable and Automatic Way: Free VMDeployer 1.2 Released

July 20th, 2017 2 comments

The VMDeployer Java GUI application is a tool we created for our customers. We use it quite often thus see different requirements coming in and quickly implement them. Within 3 weeks, we now have yet another release and would like to share with the community. Please feel free to register and download it here.

Here are a few features and issues fixed in this 1.2 release:

Free Tiny GUI Tool to Deploy OVA or OVF to All Versions of VMware vSphere: VMDeployer 1.1 Released

June 30th, 2017 2 comments

With the release of version 1.0 of our free GUI tool to deploy virtual machines on all platforms, we’ve successfully solved the issue of deploying our search appliance using the vSphere Web Client. We have a few more happy new customers ever since.

However, it could not deploy the NSX manager because 1.0 does not support OVF properties. To be exact, the deployment goes through, but the deployed NSX Manager VM cannot power on due to the required OVF value is not set for the admin password.

Free Java GUI to Deploy VMs onto vSphere of All Versions – A Solid and Fast Alternative to vSphere Web Client and ovftool

May 8th, 2017 1 comment

Recently we got quite a few complaints about installing vSearch appliance OVA onto vSphere 6.5 using the vSphere Web Client. It does not work. As a quick workaround, we told customers to try the VMware ovftool command line. While it works mostly, we still got questions and issues on the usage. For one thing, it’s not always straight-forward and easy to get the parameters right.

Azure Service Management APIs: The Old APIs That Works

March 14th, 2016 3 comments

After the initial bad experience with the new Azure Resource Management APIs, I took a different approach – try the old Service Management APIs. While transitioning from old system to new system, the old one may still be the best for an unexpected long period of time. Like VMware vSphere Client, VMware has declared end of life many times, but it’s still the favorite for most customers, while the future Web Client remains “future” since 2011.

Amazon Web Service Java SDK Tutorial: List All Networks

March 8th, 2016 1 comment

In my previous posts, I showed samples on virtual machine creation, virtual machine instances listing, storage volume listing. This sample shows how to list all the networks that you have.

With the information about your networks, you can get all the private and public IP addresses.

To run the following sample, you can check out the previous post for the pom.xml file and how to get AWS credentials from AWS console.

f7e88818bd6668c78b7eeba6974a747c005

Amazon Web Service Java SDK Tutorial: List All Volumes

March 7th, 2016 3 comments

In my previous posts, I showed samples on how to create a new virtual machine instance, and how to list all the virtual machine instances you own. This sample shows how to list all the disk volumes that you have.

To run the following sample, you can check out the previous posts for the pom.xml file and how to get AWS credentials from AWS console.

package org.doublecloud.awssample;
 
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.PropertiesCredentials;
import com.amazonaws.services.ec2.AmazonEC2;
import com.amazonaws.services.ec2.AmazonEC2Client;
import com.amazonaws.services.ec2.model.DescribeVolumesResult;
import com.amazonaws.services.ec2.model.Volume;
 
public class AwsEc2ListVolumes
{
  public static void main(String[] args) throws Exception
  {
    AWSCredentials credentials = new PropertiesCredentials(AwsEc2ListVolumes.class.getResourceAsStream("/AwsCredentials.properties"));
    AmazonEC2 ec2 = new AmazonEC2Client(credentials);
 
    DescribeVolumesResult volReq = ec2.describeVolumes();
 
    int count = 1;
    for (Volume vol : volReq.getVolumes())
    {
      System.out.println("Volume " + count   + "\n Details: " + vol);
      count++;
    }
  }
}

The output will be something as follows:

Amazon Web Service Java SDK Tutorial: Create New Virtual Machine

March 2nd, 2016 No comments

In my previous post, I showed a sample on how to list virtual machine instances. While that is helpful, maybe even more so is to create a new virtual machine. Here comes another sample that creates new virtual machine instance using the Amazon Java SDK.

Amazon Web Service Java SDK Tutorial: Simplest Hello World

February 17th, 2016 2 comments

I looked at Amazon Web Services SDK a while back and started to work with it recently. While searching it the Internet, I got all the results on the first two pages on Google pointing back to Amazon, which is great. After reading these documents, however, I got headaches. Why? For one thing, they are pretty long and sometimes run over different Web pages. Do you want to read for an hour to get your first program running? Or you are like me who would like to get my first program like Hello World to run in 5 minutes or even shorter. We should then read more if we don’t understand some parts. If you have gone through the Amazon documents, you’d know it’s impossible.

Authenticating with LDAP Server in Enterprise Java Apps

August 30th, 2015 1 comment

Creating a new user with password is easy for application developers, but not so convenient for the users. Increasingly we have more passwords to remember than we should. It’s now a common practice to authenticate users with LDAP or ActiveDirectory. If a user changes her password in LDAP server, she doesn’t need to do anything in the app.

Categories: Applications & Tools Tags: ,

How to Print out Http Request Headers in Java Servlet

August 25th, 2015 1 comment

While developing a new project, I need to check a request header from client side AJAX call in Javascript. This is not a difficult problem at all, but I found it’s pretty helpful with the headers printed in the log file, especially while debugging. The following code snippet iterates through all the headers and add their values into the string buffer, and further into logger of the Servlet. Notice that the value of a header is not a primitive value, therefore the inner loop is needed to go over each element.

Categories: Software Development Tags: , ,

How to Pretty Print JSON with Gson and Jackson

May 20th, 2015 No comments

In my last article, I compared two leading JSON APIs in Java: Jackson and Gson. If you have tried the samples there, you may have noticed that the two samples print the JSON string into one line. While it’s pretty efficient for machine, it may not easy for human consumption when the Json string is long. Sometimes I have to copy a long Json string into an editor to find out what are there.

Categories: Software Development Tags: ,

Tricks and Tips on Paypal Integration

April 24th, 2015 1 comment

After releasing the DoubleClou ICE, I finally got some time to write what I had experienced with Paypal as a user and developer. Because the DoubleCloud ICE is productivity tool that sells within $100, I want people to buy it online quickly and easily. Given Paypal’s #1 position in online payment, I turned to Paypal without much thinking. After that I had gone through all the integration process from initial research to bring the site to production.

Gson vs Jackson: Which to Use for JSON in Java

March 27th, 2015 7 comments

There are many JSON libraries for Java. While it’s nice to have many options, it can also be frustrating to decide which one to use. If you do an online search, you will find many opinions and all these libraries are used somewhere. When in doubt, the best thing to do is: stop searching and start coding. It doesn’t take long to get the ultimate answer for you.

Categories: Uncategorized Tags: , , ,

Rotating Log Files with Logback

November 25th, 2014 1 comment

Just fixed an issue related to configuration of Logback recently. You may be wondering why the Logback is used given that it’s much less known than Log4j and Java Logging. Very good question. This page from Logback may provide you some insights. I haven’t tested the performance, but it’s said to be 10 times faster than others. There is also an independent version of comparison on StackOverflow. After browsing it, I didn’t have an impression that I have to use one over the other.

Categories: Software Development Tags: , ,