Huy Minh Ha

Software development, Tech and other stuff



Mon 09 January 2017

Git branching strategy

Posted by Ha.Minh in Programming   

Branching strategy is an important part of using git correctly. Without a proper branching strategy, even with a few people in the project, you will create a mess in no time. Below is a simple branching strategy that can be applied to various situation. It is also available on github ...

Read more...




Sun 02 October 2016

Generate one-time password from the command line

Posted by Ha.Minh in Programming   

One-time password is pretty common these days for any type of account that offers two-factor authentication. We can use an app to generate OTP but it would be troublesome if we lost the app or the phone. Fortunately there's a simple way to generate OTP programmatically using libraries such ...

Read more...


Sun 25 September 2016

Maple.js Deconstructed

Posted by Ha.Minh in Programming   

Maple.js is a simple event-based multiplayer framework using Node.js

Deconstruction

  • Maple provides a base class for Client and Server. Your specific game code should inherit these base classes.
  • The supported functionality includes:
    • Connect/Disconnect
    • Ping server
    • Handle arbitrary message
    • Sync client server update tick on every frame
  • The ...

Read more...


Sun 25 September 2016

Osmus Deconstructed

Posted by Ha.Minh in Programming   

Osmus is a tech demo of a HTML5 multiplayer game inspired by Osmos.

Deconstruction

  • Osmus uses node.js for the server and HTML5 Canvas with Javascript on the client side. The simulation code is shared between client and server.
  • Regarding network, Osmus uses socket.io. Socket.io is quite stable ...

Read more...


Sun 11 September 2016

Autoformat C# code from command line

Posted by Ha.Minh in Programming   

We all need a tool to format code automatically according to project's convention. Using an IDE like Visual Studio, Xamarin or MonoDevelop, we can format code easily. However, it's not always convenient to fireup the IDE just for formatting some code, and also having a tool on the ...

Read more...


Thu 01 January 2015

A netcat cheatsheet

Posted by Ha.Minh in Programming   

Netcat or nc is a networking utility for debugging and investigating the network. This utility can be used for creating TCP/UDP connections and investigating them. The biggest use of this utility is in the scripts where we need to deal with TCP/UDP sockets. In this article we will learn about the netcat command by some practical examples.

Read more...