Wordpress - dbglory.wordpress.com - DBGLORY 4 YOU
General Information:
Latest News:
Compressing Mysqldump Output 26 Aug 2013 | 02:13 pm
The result of mysqldump is a flat text file containing the sql commands used to restore the mysql databases/tables that were dumped. Normally the result of mysqldump is compressed (in regular backups)...
mysqldump mysql 5.6 problem solved 26 Aug 2013 | 01:52 pm
If you have recently upgraded your MySQL version to 5.6, your mysqldump command will probably throw the following error: mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an e...
Back-up and restore the database between two AWS EC2 instances 26 Aug 2013 | 01:50 pm
Hi all, I must say there are couple of blogs and websites which have already done this, I mean to say the they must have explained the process of creating mysql dumps and restoring it back whenever th...
AngularJS and scope.$apply 20 Aug 2013 | 04:08 am
If you’ve written a non-trivial amount of code in AngularJS, you may have come across the $scope.$apply() method. On the surface, it may seem like just a method you call to get your bindings to update...
Node.JS Singleton structure 16 Aug 2013 | 02:17 am
I was searching using a singleton to create a kind of garbage class which allow me to create a multi room chat easily by manually connecting socket into room (with socket.io). Here is a basic singleto...
MongoDB singleton connection in NodeJs 14 Aug 2013 | 04:42 am
In this post, I want to share a piece of useful source code to make a singleton connection in NodeJs. By using this piece of code, you will have always one connection in your NodeJs application, so it...
This, bind, that in the callback of javascript, node.js 13 Aug 2013 | 03:34 am
If you want to pass the current object to the callback function in any operation (read file, connect database…) There are three main ways to deal with this in callbacks: 1. Create a normal variable, a...
Node.js Module – exports vs module.exports 11 Aug 2013 | 02:39 am
What is the difference between exports and module.exports in Node.js? You must be familiar with the exports object in Node.js modules, using which you create functions in your modules like this (assum...
Writing for node and the browser 9 Aug 2013 | 04:02 am
Modules that can be used both on the server and the client-side are a useful way to reuse code. This is one way of writing a module that will work well with both systems, while allowing you to write c...
JavaScript Module Pattern: In-Depth 31 Jul 2013 | 10:43 pm
The module pattern is a common JavaScript coding pattern. It’s generally well understood, but there are a number of advanced uses that have not gotten a lot of attention. In this article, I’ll review ...