Java Socket handshaking: the simplest example
In an earlier post, I have discussed how to implement socket communication with python. I recently was asked to implement similar functions, but in Java. Here is how I did that. Create a new Java...
View ArticleAndroid EditText control: using old rectangle style
The latest android EditText looks like this (below left: But I was asked to use old-style rectangle style (above right) to replace the current one. Here is how it is done: Create a new xml file in...
View ArticleVisual Studio 2013 Preview: ISO download link
Microsoft Visual Studio Ultimate 2013 Preview – English DVD5 ISO image (SHA-1: 33C50825E0BC305BEEEDB08E793A610CCC03A7A3) Online Web Install Enjoy! Filed under: Programming Tagged: direct link,...
View ArticleC#: programmatically get and set non-unicode languages for windows OS
We know that we can use English version of Windows and at the same time to display non-unicode texts such as Chinese and Japanese etc. The procedures are as follows: Control Panel > Region >...
View ArticleC# Command Line Parser Library Example
Command Line Parser Library allows CLR applications to define a syntax for parsing command line arguments. It is very easy to incorporate this library into your C# project. To install Command Line...
View ArticleEmulating Android App for Nexus 10 devices
I had been developing an Android App recently. The app runs perfectly in my real device, Nexus4, Nexus 7 Android Virtual Devices (AVD), but to my surprise, the screen is blank (or black) when it was...
View ArticleGet the boundary of a mesh: the algorithm and C# implementation
Given a mesh, we might occasionally want to filter those internal vertices and keeps only the outline or silhouettes. But how to do that? The problem came to my mind several years ago, when the...
View ArticleText morphing: Rectangle to text
Filed under: Dotnet/C#, Programming Tagged: C#, mesh, morphing, OpenGL, rectangle to text, text
View ArticleInstall OSG for Android On Ubuntu 13.04: Step-by-Step tutorials
Installation of essential tools and packages Installation of open scene graph Build the 1st Android OSG Example Application Installation of essential tools and packages Install Java sudo...
View ArticleVisual Studio 2013 Ultimate ISO download and offline installation:...
Visual Studio 2003 was released, with quite a few exciting features. If you wish to get the offline iso installer, click below links (official iso from Microsoft) to download. However, even if you...
View ArticleUnity3D: where and how to set Android SDK path
When you run Unity3D android app, the first time you will be prompted to specify the Android SDK path, that is good. But later when you want to change this, where to find such an entry to fill? Go to...
View ArticleUnity3D webcam rendering: incorrect rotation and flip using WebCamTexture
When rendering webcam as textures, Unity3D ships with a useful WebCamTexture class, the typical use of this class is as follows: Create a GUITexture object: in unity menu: GameObject Create Other...
View ArticleUnity3D: put 3D objects above GUI surface
The default rendering results for GUI objects such as GUI textures, buttons, labels etc. are that they are overlaied above 3D views. To do the opposite, for instance, make 3D view overlaied upon...
View ArticleUnity3D: rotate 3D models around the center with mouse
In Unity3D, you can use mouse to rotate 3D models with trivial code: However when you run the above code, you might find that rotation center (pivot, or anchor point) is usually located at one of the...
View ArticleUnity3D: inspector control value changed event handling
Unity3D has offered very handy interface to expose variables so that users can edit them in inspector. Take a look at below snapshot: one can define some public fields, and these fields are immediately...
View ArticleVisual Studio 2013 Update 1: offline ISO download
This update is the latest in a cumulative series of feature additions and bug fixes for Visual Studio 2013. The offline ISO installer can be found from the below link (from official Microsoft web)...
View ArticleApache Felix: HelloAndroid
Apache Felix is a cool OSGi implementation, and has been widely used in Java applications. To use Felix in Android applications, embedding Felix into Android can help you harness the component based...
View ArticleUnity 3D: Automatic anchors for interactive cloth
In Unity 3D, if you wish to add interactive cloth in your scene, most probably you need bring in some anchor points, which instruct the cloth which site remains static and fixed. This is a tedious...
View ArticleBuilding OpenSceneGraph with Visual Studio 2013
Visual Studio 2013 has been out for a few months, and OpenSceneGraph also has their latest release up to version 3.3.1. It is now possible to build OpenScenegraph, inclusive of most widely used...
View ArticleApplication 0×00000007 error and troubleshooting
Recently I was asked to build a MFC application, and it worked on my development PC, but after packaging all the dlls, the application does not run, and an error with 0×00000007 pops up. I then opened...
View Article