Welcome to Blogs @ Andrew QuHome & Search
Plane Spotters Web Page - Demo Using DITA Publishing Standards
In this post, I am trying something new with DITA (Darwin Information Typing Architecture) standards. This simplistically illustrates one way of publishing web pages using DITA. The project consists an Eclipse plugin for UI, a web server for web services, content management, DITA-OT for web page publishing.
Routines, Channels and Multi-Threading in GO Language
With Android Nougat released recently, the build system used is switching from Make to Ninja. To generate Ninja files, Android uses Blue Print files that are basically GO programs. While studying GO language, I noticed its multi-threading model is facinating. In this post, I will try to discribe this model.
Arduino - Programming an MCU (Atmeg328p)
Once we have developed and tested a project, we need to copy the code onto a new MCU to be used on a breadboard separate from the Arduino Board. This exercise describes one way of downloading the program onto a new MCU.
Learning Arduino - Making a Clock
In this exercise, I am going to make a clock, displaying hours and minutes: HH:MM. The clock will also have set time functionality using a switch.
Start Learning Arduino - More Experiments
More Arduino exercises: Using a potentiometer to control the brightness of LED.
Start Learning Arduino
I have always wanted to learn MCU (Micro Controller Unit) development, but always feared that it's too hard. Recently, I have heard about Arduino project and did a bit online reading. It appears that with an Arduino board and IDE, things are much easier now. I finally gathered enough courage to start. I will record my experiences as I progress.
Thick Plate Bending Rectangular Element with Shear Deformation
This blog describes the formulation and implementaton of a rectangular plate bending element for thick plates.
Bicubic Surface Interpolation
This blog describes a formulation of the bicubic interpolation method. The bicubic method aims to produce a best fit surface over a 2D area when the function values are known only at a set of discrete points. Application to image processing is also demonstrated.
Excel VBA Dynamic Charting
I this blog, I try to draw some Excel charts dynamically using VBA macros
Excel VBA Dynamic Charts
In this blog, I am going to create a bar chart using vba in an Excel sheet.
Using Excel Worksheet as a Database
An Excel worksheet table can be used as a database. SQL queries can be performed on the table with normal query commands. The advantage of using excel as a data source: a) All data and table views contained in one excel file. b) No separate database is required. c) This will save database management cost.
Removing Hidded Devices on PC
How to remove hidden devices on a PC ? You do this by using Device Manager. But this cane be tideous if you have hundreds of hidden devices. In this blog, I will use Windows WDK to write a console program to accomplish the job.
Learning Django - Part 2
Django is a web framework using Python programming language. Using Django and an appropriate web server, you can build and host websites. This post is Part 2 of my learning Django project.
Learning Django
Django is a web framework using Python programming language. Using Django and an appropriate web server, you can build and host websites. In this post, I will record the steps as I learn.
Geometric Properties of an Elliptical Tube
In the analysis of elliptical tube secstions, we need to divide the tube section into a number of segments. The forces acted over the segment are then distributed onto the nearest finite element nodes.
Android OpenGL Texture and Animation
In this post, I will continue with the previou post to demonstrate Android OpenGL texturing and animation. If you have not followed my previous post, you should do so before continuing.
Android OpenGL Graphics Start Application
In this post, I will write a simple Android application to do Open GL graphics programming using Android GLES2.0. The development is done using Android studio. Therefore, if you have not installed Android Stuio yet, please do so by following the previous post.
Starting with Android Studio
With the recent release of Android Studio (out of beta), it is time to switch Android application development from Eclipse IDE to Android Studio. I am trying it out first and the procedures are not as straight forward as I would expect. Therefore, in this blog, I will detail the installation procedures to avoid some pitfalls for whoever reading this post.
jQuery Ajax Upload File into ASP.NET without FileUploadControl
A simple way to upload file into ASP.NET server is to use FileUploadControl. However, this is not very flexible. You may not have multiple upload controls. In this article, we will use the more flexible jQury/Ajax upload method on client side and ASP.NET HttpHandler on the serverside.
GNU Make Random Number and String Length Using Python
In GNU make, there appears no built-in function to return a random number, nor a function to return the length of a string. This utility gives ways to do both using Python.
Sharing Clipboard between Windows and Ubuntu (Linux) Using Python
This python program will allow the sharing of clipboard (cut/paste) between 2 work station running Windows and Linux.
C# Program to Alert IP Change of Broadband Router
C# Program that monitors router IP address and sends email alert if IP changes.
C# Local Function
C# local functions can be used in a method locally to repeat operations. It can access all variables defined in the parent method.
Introducing Speciality Base Plate Dsign Program
Dr Li Anchor Profi is an engineering design software specifically designed for column base plate design.
Android ADB Protocols
Describes Android ADB protocols with programming details.
Stiffness Matrix Formulation
Describes stiffness matrix formulation for the analysis of plate bending.
Triangular Element for Plate Bending - Part 2
Describes strain and stress calculation for a simple triangular element for thin plate bending.
Triangular Element for Plate Bending - Part 1
Describes the implementation details of a simple triangular element for thin plate bending
Area Coordinates
Area coordinate is used in the formulation of 2D triangular elements for Finite Element Analysis. This is often used in plane stress and plate bending analysis.
Expensive Christmas Tree
A real Christmas tree made from a cut off pine tree top with details of how to construct the supporting legs.
VC++ How to Allow Only One Copy of a Program to Run Using Mutex
On occasions, we want only one copy of a program to run at a time. Here we show one of the ways to solve the problem using mutex.
How to Check If a Point Is In a Rectanle or not
Shows an algorithm that checks if a point is inside a rectangle or not. The rectangle can be in any orientation.
Water Melon or Marrow ?
Pictures of a vegitable that looks like water melon but tastes like marrow.
How to Fix "Multiply Defined Functions" when Mixing C/C++ and MFC Static Libraries
At times, you want to have your MFC application in a single EXE file. Then you need to link MFC libraries statically. Visual Studio will give link errors in this case if you are also linking some C/C++ libraries. This post details the work around to fix the problem.
Structural Calculation
Structural calculations for beam, column and foundation of a house extension.
Android Fastboot Protocol
Fastboot is a protocol to flash Android devices. This post describes the main features of the protocol and implementation details.
Structural Design of a House Extension
One of my friend is extending the house. I am doing the structural design work and at last put my knowledge as a structural engineer into use. This post lists a selection of the design output.
Approximate an Arc by Line Segments
Given an arc with known center, start and end point, get a series of line segments to approximate the arc.
New Asynchronous Programming Model(async and await) in VS2012
Visual Studio 2012 introduces a new model for asynchronous programming. This blog uses a simple example to show the workings of the new model.
Funny Marrows
Pictures of funny marrows from the alotment.
Pictures from Shanghai
Pictures of Shanghai sky-scrapes, Shanghai snack food and "bottle beggers"
"Crisis" in Chinese
Thoughts on the word "crisis" in Chinese that literally means "Risk and Opportunity"
Runway Protection Surfaces for a German Airport
Show images of runway protection surfaces for a German airport.
Parsing XML File in Python
A brief introduction to XML. Then shows how to parse XML file in Python.
Freezing Leafy Vegetables
Vegetables are best eaten fresh. However, often when in season, there are too much to finish. This blog shows how to freeze leafy vegetables.
Python Plugin for Visuial Studio 2010
Introduces the Python Plugin for Visual Studio 2010
Making a Fish Tank Food Trap
Often, when you feed the fish, the fish food flakes float around on the top of the tank and can get into the pump. Here is a quick way to make a trap to contain the flakes.
Basics of UEFI and Secure Boot
This blog aims to give a concise introduction to the basics of UEFI and Windows support for UEFI.
Integrating Mercurial Source Control into Visual Studio
Shows how to integrate Hg Mercurial source control tool to Visual Studio
Extending Garden Shears
Easily extending garden shears with uPVC pipes so that it can reach further.
Setting HTML 5 Canvas Transformation Matrix
Shows how to set the HTML5 canvas transformation matrix directly to increase performance.
Common Tasks for Tortoise Hg Mercurial Tool
Documents some common tasks of TortoiseHg for source control.
Setting up Hg Mercurial Simple Server
Shows how to install Hg Mercurial source control tool. Set it up to serve a single repository. The repository can then be accessed remotely.
©Andrew Qu, 2012. All rights reserved. Code snippets may be used "AS IS" without any kind of warranty. DIY tips may be followed at your own risk.