blog.liangzan.net
First impressions of Leap Motion - Liang Zan - Blog
http://blog.liangzan.net/blog/2013/02/06/first-impressions-of-leap-motion
Liang Zan - Blog. First Impressions of Leap Motion. For those who don’t know what Leap Motion. Is, take a look at this youtube video. I got the Leap Motion hardware and SDK by participating in their developer program. I was the lucky few that was selected. They informed me through email. A few weeks later, the Leap motion device is mailed to me, free of charge. It came in a dull black cardbox box. Within the box lies the device, a cable, and a card bearing a message from the founders. They had a Javascri...
blog.liangzan.net
Breaker 101: the experience so far - Liang Zan - Blog
http://blog.liangzan.net/blog/2013/10/23/breaker-101-the-experience-so-far
Liang Zan - Blog. Breaker 101: The Experience So Far. Is a course conducted by Cody Brocious. It aims to teach you the basics to web security. I’ve always been curious about security. When the opportunity arose, I signed up without hesitation. It is not cheap though. But I thought the course would benefit me. It already did. The course can be hectic. Personally, I had to take one to two days off to catch up. Going through the coursework does not feel like work. It is fun! Every time I spot a vulnerabilit...
blog.liangzan.net
Customizing your Emacs Eshell prompt - Liang Zan - Blog
http://blog.liangzan.net/blog/2012/12/12/customizing-your-emacs-eshell-prompt
Liang Zan - Blog. Customizing Your Emacs Eshell Prompt. If you use the shell in Emacs and you are not already using eshell. Convert to eshell now! Eshell is the best terminal emulator available in Emacs. If you need convincing, please read this article from Mastering Emacs. To add colors we need to change the property of the text. We make use of the propertize. Function. The snippet below changes the string to be green. Showing the Git branch name. Git branch grep * sed -e s/ * /. Dont ask, just save.
blog.liangzan.net
Customizing the Mac to behave like Xmonad - Liang Zan - Blog
http://blog.liangzan.net/blog/2012/06/03/customizing-the-mac-to-behave-like-xmonad
Liang Zan - Blog. Customizing the Mac to Behave Like Xmonad. About 3 weeks ago, my Thinkpad died. It died of a fan error. Luckily, it caught me on Sunday when I didn’t have to work. I had to get a working computer ready by the next day so that work does not get disrupted. Faced with less than a day of time, the logical choice is to get a new computer. For computers, I only have eyes for Thinkpads and Macs. I wanted a Thinkpad. But the prices of Thinkpads in Singapore. Mac window management is a pain.
blog.liangzan.net
Liang Zan - Blog
http://blog.liangzan.net/blog/page/2
Liang Zan - Blog. Running a Security Disclosure Program. A few months ago, I started a security disclosure program for my employer. It is definitely beneficial for us. I’d like to share some of our experiences running a security disclosure program. Read on →. Breaker 101: The Experience So Far. Is a course conducted by Cody Brocious. It aims to teach you the basics to web security. Read on →. Three Tips for Managing Complexity in Node.js Projects. Read on →. The Library Shopping Checklist. Read on →.
blog.liangzan.net
The library shopping checklist - Liang Zan - Blog
http://blog.liangzan.net/blog/2013/07/13/the-library-shopping-checklist
Liang Zan - Blog. The Library Shopping Checklist. Library shopping is like second nature to developers. A library refers to packaged code like Ruby gems. Along the years, I do these evaluations unconsciously. I thought it’d be good to put this mental checklist down in writing. Does the library fulfil your requirements? Is the library maintained? Is the last commit recent? If the last commit is less than 6 months old, I would view it as recent. Are the issues fixed promptly? Will the library be maintained?
blog.liangzan.net
How to use exports in NodeJS - Liang Zan - Blog
http://blog.liangzan.net/blog/2012/06/04/how-to-use-exports-in-nodejs
Liang Zan - Blog. How to Use Exports in NodeJS. In any substantial project, it is necessary to separate your code in different files. Node.js implements the CommonJS API standard to load modules. From other files. Using exports. Can be a source of much confusion in Node.js. Let us explore how exports. Use Case 1: Exporting as an Object of functions. The most common use case is to export your functions using exports. For example, I have a script that wants to use functions from another Node.js file. The c...
blog.liangzan.net
Three tips for managing complexity in Node.js projects - Liang Zan - Blog
http://blog.liangzan.net/blog/2013/08/12/three-tips-for-managing-complexity-in-node-dot-js-projects
Liang Zan - Blog. Three Tips for Managing Complexity in Node.js Projects. After working on various Node.js projects, I want to share three simple tips which helps to reduce complexity. If you are building an Express. Project, ususally the framework does not tell you how to structure your application. You can put everything in one mega file, or you can(and should) extract different functionalities out. Worth applying. In general I like to separate the main parts of the app:. Third party vendor code. Makes...
blog.liangzan.net
Emacs vs Vim - Liang Zan - Blog
http://blog.liangzan.net/blog/2011/01/20/emacs-vs-vim
Liang Zan - Blog. Comparing the both of them is not fair. They have a different design philosophy. When we use Vim, the mindset is ‘I want to type in the shortest time, and in as few keystrokes possible’. When we use Emacs, the mindset is ‘I want to use Emacs for everything’. Placement of key bindings. The killer feature that made Emacs my primary editor is the window management. Emacs allows me to have multiple frames. All the frames have access to the same buffers. This allows me to switch ...How to us...
blog.liangzan.net
Running a security disclosure program - Liang Zan - Blog
http://blog.liangzan.net/blog/2014/03/25/running-a-security-disclosure-program
Liang Zan - Blog. Running a Security Disclosure Program. A few months ago, I started a security disclosure program for my employer. It is definitely beneficial for us. I’d like to share some of our experiences running a security disclosure program. What is a security disclosure program. Knew about our program and added us to their list. Of bounty programs. The security researchers come from all over the world. The quality of the reports varies widely. Through their reports we managed to uncov...During th...
SOCIAL ENGAGEMENT