Tag Archives: JavaScript

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

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.

Posted in Applications & Tools | Also tagged , | 2 Responses

How to Wait for Promises in AngularJS

In one of my previous blogs – How to Cache Results from Asynchronous Calls in AngularJS, I mentioned a technique that downloads data from remote server via $http service as a promise. This is quite often used in Web application development, for example, you want to save configuration, user preference on remote server and download them on fly.

Posted in Software Development | Also tagged , | Leave a comment

How to Create Plugin Framework Using AngularJS

As I mentioned earlier, the AngularJS is an amazing JavaScript framework. It separates the model from view, and really makes programming in JavaScript pleasant. We actually use it in our recently released product DoubleCloud vSearch. I have personally used it for almost one year now and like it a lot even though I am not yet an expert.

Posted in Software Development | Also tagged , , | Leave a comment

How to Cache Results from Asynchronous Calls in AngularJS

Coming from many years of Java programming, I started to program a lot with JavaScript from a few months ago. Overall the programming fundamentals are the same except the some differences on the language syntax. These differences can be adapted over the time, not quite easily, but gradually easier with more practices.

These days I found myself typing double quote for Java string and single quote for JavaScript strings, even though the double quote works just fine with JavaScript. But keep that difference helps remind me that it’s Java or JavaScript.

Posted in Software Development, Uncategorized | Also tagged | Leave a comment

Setting Up Development Environement for HTML5 and JavaScript

While JavaScript getting more popular with HTML5 these days, it’s also getting more complicated with various libraries. It’s no longer an easy, if possible, job to manage the dependencies by hands.

As I started to play with JavaScript and HTML5, I have installed several tools for the development. If you’re intested in HTML5, the following steps and links may be helpful to you too.

Posted in Software Development | Also tagged | Leave a comment

Tricks and Tips on Paypal Integration

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.

Posted in Software Development | Also tagged , , , | 1 Response

Java 8 New Features: Nashorn JavaScript Engine

When JavaScript was created, it had not much to do with Java. It’s named as such maybe due to the popularity of Java language at that time. But over the years, JavaScript has gained its own popularity and dominated the client side of Web applications. There are even some work for JavaScript to extend its reach to the server side, for example, Node.js.

Posted in Software Development | Also tagged , , | Leave a comment

GUI Libraries for Angular Javascript Framework

Angular is a fantastic JavaScript framework that simplifies the MVC for Web applications. Like jQuery, it does not come with a library of GUI widgets and CSS themes – it just does what it’s supposed to do and does it well. If you are a developer, you would most likely need a GUI library to build a modern and interactive Web GUI. That is why I spent a bit time to research on this.

Posted in Software Development | Also tagged , , | 2 Responses

Angular JavaScript Framework: Interacting with Java Servlet Backend

In my last article, I introduced the Angular JavaScript framework with working samples. Among all these JavaScript frameworks, I think Angular is the first one that does it right (I can be wrong on this as my exposure of JavaScript is limited). If your project needs Web GUI for example vSphere Web Client plug-ins, it’s definitely a good choice to consider.

Posted in Software Development | Also tagged , , | 29 Responses

Angular JavaScript Framework: MVC Simplified in HTML5

At VMworld 2013, I bumped into my former colleagues at VMware who work on the new vSphere Web Client. Faster than I thought, the new vSphere Web Client started to support HTML5 partially with Angular JavaScript Framework. I haven’t looked into the details but that is something the community should be excited about.

Posted in Software Development, Virtualization | Also tagged , , | 3 Responses

Developing Web Application with JQuery and Java Servlet

It’s been a while since I touched Web application development in 2009. Before the VMworld 2009, I created a simple Web Application for the keynote that collected the names and email for a raffle to go back stage with the famous foreigner. That Web application was so simple that it’s built using Java Servlet with a static home page. It’s hosted with Terremark (part of Verizon now) Enterprise cloud.

Posted in Software Development | Also tagged , , | 7 Responses

Learning Google Web Toolkit

Google Web Toolkit is an interesting project. It’s basically an AJAX toolkit but presents itself as a Java toolkit. The idea is that you still write Java code as you would with Java AWT, SWING, and the GWT converts it to JavaScript code for you.

But why don’t write JavaScript code directly? Well, you may know Java better than JavaScript. More importantly, Java is a typed language and easier to develop a large system than JavaScript.

Using GWT for Java developers is mostly

Posted in Software Development | Also tagged , , , , | Leave a comment

Learning JavaScript + AJAX

It’s the second day of the four day training. A lot of things were covered:

  • Modern Web UI including progressive enhancement, accessibility, and design.
  • Applying Spring JS, an abstraction around other AJAX toolkit. The coverage includes AJAX events, client side validation, and rich widgets.
  • Working directly with Dojo Toolkit, including DOM scripting and Dojo widgets (Dijit).

The progressive enhancement is a great concept. The basic idea is to have your web pages start with plain HTML and then “decorates” them with richer L&F and more interaction on the fly. The key benefit is better compatibilities with different browsers which all support HTML but not necessarily JavaScript. When JavaScript is supported by the browser, the pages are enhanced by the embedded JavaScript; when not, the pages just render well as normal HTML.

Posted in Software Development | Also tagged , , | Leave a comment
  • NEED HELP?


    My company has created products like vSearch ("Super vCenter"), vijavaNG APIs, EAM APIs, ICE tool. We also help clients with virtualization and cloud computing on customized development, training. Should you, or someone you know, need these products and services, please feel free to contact me: steve __AT__ doublecloud.org.

    Me: Steve Jin, VMware vExpert who authored the VMware VI and vSphere SDK by Prentice Hall, and created the de factor open source vSphere Java API while working at VMware engineering. Companies like Cisco, EMC, NetApp, HP, Dell, VMware, are among the users of the API and other tools I developed for their products, internal IT orchestration, and test automation.