Archive

Archive for the ‘Applications & Tools’ Category

Can Virtual Machines or Containers Be Social?

January 24th, 2017 2 comments

With social networks being popular these days, there is no doubt that we human beings are socially inter-connected. These social connections offer lots of insights about each person in the social networks. In some way, we’re all defined by our networks.

How about virtual world and cloud world? Can we visualize the inter-connections of the VMs, hosts, datastores, and networks?

No More Spread Sheet or Wiki Page: Better Way to Track IP Addresses

January 19th, 2017 4 comments

IP addresses are important resources and must be carefully managed to avoid duplicated IP issues, which are sometimes very hard to troubleshoot. I still remember that it took a few of us couple of days to root cause a failing new feature, which worked sometimes and did not other times. Because it’s a new feature, we mostly thought it was somehow our bug in code. It turned out not, but caused by the vCenter we were testing actually used a duplicated IP address.

PhantomJS: Convert Any Web Pages to PDF or PNG on Server Side

November 14th, 2016 2 comments

While developing a new feature for our vSearch product, I found the Javascript’s capability to screenshot a page is quite limited. As normal, the explanation is that it’s designed as such due to security reasons. No one wants a Javascript secretly capture a screenshot of what’s currently viewed. I personally don’t think it’s a good explanation why it’s not implemented as easily as it should have been. Similar, I think riskier, features like exchange clipboard content has been implemented.

VMworld 2016 and vSearch 3.0 Preview

August 16th, 2016 4 comments

The VMworld 2016 is coming in about two weeks. Although I’ve attended every single VMworld after 2007, it’s my first time as an exhibitor myself, to be exact, as a new innovator in the show. If you follow my blog and Twitter, you probably have know the company DoubleCloud that I had founded and the cool products/technologies we’ve been working on. This is the first year for us to promote our products in show. Please come to see our product demos, or simply stop by and say hi. Our booth is 841#4.

Install Squid as HTTP and HTTPS Proxy Server

July 28th, 2016 2 comments

While creating the vSearch 3.0, we needed a HTTP/HTTPS proxy server to test the new features like public cloud support. With a little search, I found the Squid server. It turned out to be pretty easy to install a new one and use it based on default settings.

Install
Like most of the software package on CentOS, Squid can be installed using the yum command line. Here is what’s needed to install and configure it.

Categories: Applications & Tools Tags: , , ,

How to Install Kubernetes to Run Docker on VMware vSphere

June 6th, 2016 1 comment

Installing Google Kubernetes does not require VMware vSphere or any other virtual machine hypervisor. However, doing that on a VM is very convenient, so it’s highly recommended especially for development and testing environment.

Regardless VM or physical machine, a Linux OS is a must. As always, I picked CentOS 7 which is a fork of RHEL. Once getting a CentOS installed, the rest is easy. If you have a CentOS template already, deploying a new one should be very fast.

Book Review: Docker Containers – Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic

April 30th, 2016 4 comments

After the virtualization buzz, the industry is actively looking for the next big thing. The container technology just came in at the right timing. Docker is the clear leader in the container technology, followed by CoreOS Rocket and RancherOS today.

Windows 10: WiFi Network Not Found After Hibernation

February 29th, 2016 1 comment

Windows 10 is definitely better than Windows 8 and 8.1 in terms of usability. I find myself using my labtop a lot more after upgrade from the factory installed 8.0. Compared with Windows 7, however, I don’t see much difference and that is why I haven’t taken advantage of the free upgrade from Microsoft on my desktop.

Amazon Web Services: How to Get Volume Snapshots Including Others’

February 18th, 2016 No comments

As I mentioned in my previous post, I started to play with Amazon Web Services, in particular its APIs. As part of the learning process, I tried to invoke different APIs to familiarize myself with their usages.

Most of the APIs worked as expected without much surprise until I called describeSnapshots() method to list all the volume snapshots under my account. Because I hadn’t created any snapshots, I did not expect to see any snapshot returned. But my code actually got me 10,933 volume snapshots.

How to Work Around Nginx Install Issue on CentOS

December 9th, 2015 1 comment

Installing Niginx is very easy and straight forward with yum on CentOS. But I found it stopped to work last night. My installation script aborted with an error saying that it could not find libunwind package, which turns out no longer in the EPEL7 after a upgrade a couple of days ago.

Categories: Applications & Tools Tags: ,

VMware ovftool as Development Tool: Good and Bad Parts

October 30th, 2015 No comments

If you want to export a virtual appliance for internal deployment, it’s quite easy. The vSphere Web Client or ovftool command line can take care of this easily. But it’s a different story to build a virtual appliance based software product, which should not only make it work, but also include product information.

Here are some information I learned and decisions I made from packaging an OVF product recently. Hope it would be useful for you. You can also check another post on how to compact the virtual disk for smallest OVA or VMDK.

Big Data to Tomcat Behind Nginx

October 5th, 2015 2 comments

In a Web application I created, I need to upload some data to a Java Servlet for further processing. I wish JavaScript could be more powerful so that I can process everything in the front end, but I could not find a good JavaScript library for the job.

Everything works well until some big changes got in – it stopped working sometimes and the pattern is not quite consistent. Initially I thought it was because of long time processing at the server side.

How to Build Smaller and Faster Virtual Appliance

September 28th, 2015 No comments

While building a new server product of its own kind, we chose virtual appliance as the package. During the development phase, we configured thin disk to save space. But for our beta customers to try out, we decided to switch to thick disk for better performance as the product has to do lots of processing and heavy disk I/O. BTW, we still have a few slots for new beta customers with have large vSphere deployments. Please contact me if you are interested.

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: ,

CentOS 7 for Building Virtual Appliance

July 28th, 2015 1 comment

I started to play with CentOS 7 recently because I wanted to use it for one of my appliance products. Naturally, I installed the minimum version of the CentOS 7.0.

While it takes time, the installation process is pretty straight-forward like installing any other Linux on a virtual machine. What I did was to upload the .iso file to a datastore, then create a new virtual machine that uses the iso file as CD device. When it booted, the installation started. Although it’s minimal version, but the installer is actually GUI based. So it’s pretty intuitive.

How to Change Maven Offline Mode

June 30th, 2015 4 comments

Maven is a great tool when it works; otherwise it’s pretty hard to figure out what’s happening and how to fix problems. Instead of detailing steps to get something done, the Maven philosophy is to let developers to pick what they want. For the common use cases that fit in its convention, Maven is pretty easy. In general, Maven is easy to start, and hard to customize.

Categories: Applications & Tools Tags: ,

DoubleCloud ICE: the IDE for Managing Clouds

March 30th, 2015 6 comments

After almost one year of intensive development, I am happy to announce the first release of DoubleCloud ICE. It’s an integrated tool for cloud management, in particular VMware vSphere with which you can do a lot of interactions easily and quickly.

The idea was inspired by the IDEs. Once upon a time, we all used editors like vi, Emacs to write code, then compile, link, and debug them using command lines. As time evolved, the IDE came out so we can do all these tasks (actually more) nicely and efficiently in one application. The result? Better user experience and higher productivity.

Commonly Used Git Commands With Samples

January 27th, 2015 No comments

Git is a powerful version control system. One big differentiator from traditional version control systems is that it’s fully ditributed. In other words, there is no central repository and everyone can have a full clone of everything.

There are many articles and tutorials about GIT already. A while back, I also wrote a few articles on the Java APIs to the JGit implementation. This post is simply a collection of some commands that I use on daily basis. This is just for my quick reference or cheat sheet and nothing more. If you find it’s helpful, it’s great.

Categories: Applications & Tools Tags: ,

Vagrant for Software Development

December 2nd, 2014 1 comment

I came across Vagrant a while back at a bookstore. After browsing it, I didn’t get my hands dirty with it until recently. I started to play with it because one of my clients uses it in setting up development environment for convenience and consistency.

Harmful Big Data

October 17th, 2014 No comments

In one of my recent projects, I got into a “big data” issue. One of the open source components emits so many logs that it quickly fills a hard disk. After isolating problem, I found huge number of log entries by the “find” command in a single log file whose size exceeds 50G – too big data for most system to handle.

The following is an example log entry in the log file:

a06fe64be539425baf9e3a9182cb50da037

Categories: Applications & Tools Tags: ,