Category Archives: Principle

SwiftData Swift 3 version

SwiftData is a toolkit / wrapper that is required required by cordova-geofence plugin, I need it to be compiled on Xcode 8.3, so need it to upgrade to swift 3 support. Please use the swift 3 branch when you need it too.

Unfortunately, Xcode 8.3 remove swift 2.3 support, so any project that is built on swift 2.3 will need to upgrade to swift 3.

The Git repository is at:

:-) Thank you

For those who want to get a analysis tools for dentist

Thank you for showing your interest of this gadget.

I didn’t notice that there so many demands on this gadget. Instead of sending request in the blog, please send me email. My email is at the bottom of my blog.


bing! site wide search plug-in for wordpress

It’s somehow a little bit useful to have bing search engine integrate to your website. I just create a plug-in for wordpress regarding this. This plug-in is designed to be a right panel widget. If you need, just download the ZIP file and upload to your wordpress plug-in, activate it, then you can arrange the widget on your right panel.

You can also define the title for this plug-in: you need to setup the search site, if you don’t, then will be the current site. Please note that “http://” is not needed as shown below:

On the right panel, you can see the bing site search widget is activated:

And when you type in the search bar with your keyword,  you will see the search result:

Simple and easy, just go to open source section:

ASP.NET MVC Whole Site 301 Permanent Redirect

For some reasons, we need to permanently redirect the whole website to another website. It would be much easier that you are the owner of the server. But most of time you just host your website on the server out there. It wouldn’t be a big problem that your hosting company will support you to do some simple 301 redirect or may you have enough privilege to do it yourself. Is it possible to redirect permanently the website to other website by programming a little bit?

Sure you can. With MVC routing facilities, you can define your customized redirect logic: CREATE AN EMPTY MVC PROJECT, MODIFY GLOBAL.ASPX.CS FILE ONLY ON THIS EXAMPLE:

First of all, define two objects which implemented IRouteHandler and IHttpHandler, you can feel free to define those two objects on Global.aspx.cs file:

//@Implements IRouteHandler
class RedirectRouteHandler : IRouteHandler
private string newUrl;
public RedirectRouteHandler(string newUrl) { this.newUrl = newUrl; }
public IHttpHandler GetHttpHandler(RequestContext requestContext)
return new RedirectHandler(newUrl);

//@object implements IHttpHandler
class RedirectHandler : IHttpHandler
private string newUrl;

public RedirectHandler(string newUrl) { this.newUrl = newUrl; }

public bool IsReusable { get { return true; } }

public void ProcessRequest(HttpContext httpContext)
httpContext.Response.Status = “301 Moved Permanently”;
httpContext.Response.StatusCode = 301;
httpContext.Response.AppendHeader(“Location”, newUrl);

Then add one line on RegisterRoutes(RouteCollection routes) method (in Global.aspx.cs):

routes.Add(new Route(“{*pathInfo}”, new RedirectRouteHandler(@””));

Now all request to the website will redirect to “” permanently. :)

An Experimental Html5 Drama

After reading through all useful articles about Html5 and CSS3, I try to create a new Html5 template for my blog. If you would like to see something new about html5 and css3, have a look at this article:
70 Must-Have CSS3 and HTML5 Tutorials and Resources

Koumei’s experimental page is available here:

Nothing much currently. I am quite interested in creating the gradient background and rounded corner.

This page will be kept updating.

Say Hello to on HelloVPS

Yesterday was condemned due to bring down the whole hosting server for harmful scripts, according to the server support. Not easy to contact them since they are in states. I am desperate to stay on their server without any secure. I would rather move to another server than to explain I am innocent. So I will move out from their server, I don’t like their service as well. How come they close down my website so suddenly without 1 day or 2 days notice?

Thanks to Howie from states who provides me a shelter at this moment. is homeless, desperate and depressed last night, but because of his kindly help that make me home again. Now let us say hello to again on HelloVPS (