Realguess - realguess.net - realguess

Latest News:

Simon Sinek: How great leaders inspire action 20 Oct 2012 | 06:27 am

This is the #1 most watched TEDx talk so far. Just watch it!

Fix the memory leak in jsdom 2 Feb 2012 | 02:18 pm

When I was writing a crawler or scraper using Nodejs and jsdom module, I ran into an unexpected problem. I left the crawler running overnight, the next morning, when I shut it down, almost 2GB of memo...

How to find documents that have only specific key 12 Jan 2012 | 08:06 pm

Categories: Database The good thing about MongoDB is that you don't need to care about the structure or schema of the data, you can have one collection with two documents that having different keys....

Set VI auto indent and tab of two spaces 11 Jan 2012 | 12:49 pm

Categories: Technology autoindent tab Set VI to auto indenting and tabs with 2 spaces: Detail of each command: is a shorthand for: Do smart autoindenting when starting a new line. or Number o...

Avoid asynchronous pitfalls in nested loops 11 Jan 2012 | 05:26 am

Categories: Technology Nodejs JavaScript Nodejs enables JavaScript to be used on server side programming. It also enables asynchronous programming style. Here an example on how to avoid some pitfa...

How to find a document by using MongoDB ID 6 Jan 2012 | 05:48 pm

Categories: Technology Database MongoDB ObjectID When obtain the ID from request parameter: 4eec06b12dacbe7275000005, it is string, however, the format of _id is ObjectID. String and ObjectID are...

Add a system user 2 Jan 2012 | 09:28 am

Categories: Linux user Create a system user to run Nodejs application, similar to Apache HTTP server www-data system user account: --system indicates that this user is a system user (low user ID a...

2011 1 Jan 2012 | 07:00 pm

2011 in summary 118 is the number of articles published in this blog. # of tweets # of wall posts in Facebook # of posts in Google+ # of GitHub public repositories # of StackOverflow answers # ...

Embedded document find 26 Dec 2011 | 07:08 pm

Categories: Technology MongoDB find embedded document To reach inside an embedded document, use dot notation, but it must be quoted: Error without quote:

How to interpret the output of dpkg --list 30 Oct 2011 | 04:04 pm

Categories: Ubuntu dpkg To find out the status of a package (Nginx): The Debian package manager (dpkg) will print out: The first i means the desired state of the package - install. The second i m...

Recently parsed news:

Recent searches: