-
Recent Posts
- Mongod error | exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid
- Right way to break Django code for debugguing
- Where are python site packages located in MAC OSX Mountain Lion
- Get the number of documents in a MongoDB collection with unique/distinct values for a field
- A complete guide to Integrating MongoDB with Elastic Search
Recent Comments
iRead
- Smashing Magazine Quality design resources. SM network is a great way to find some good posts quickly.
- The Design Cubicle One of the best blog about logo design, branding and typography.
- WebDesigner depot
Archives
Categories
Meta
Category Archives: Coding
Mongod error | exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid
I got this error while trying to start mongodb on amazon ec2. Running this command in the terminal solved the problem. export LC_ALL=C I don’t have any idea about what it means at this time except that it sets the … Continue reading
Right way to break Django code for debugguing
Django traceback is a very helpful tool in Django development. It saves us from the boring tasking of writing print statements to track variables. Traceback doesn’t kick when there is no error. There may be no coding errors but there … Continue reading
Where are python site packages located in MAC OSX Mountain Lion
Python site packages are located at Library/Python/2.7/site-packages
Error whil creating super user in django1.4 on MAC
I got the following error while trying to create a super user from shell for django1.4. File “/Library/Python/2.7/site-packages/django/contrib/auth/management/__init__.py”, line 85, in get_system_username return getpass.getuser().decode(locale.getdefaultlocale()[1]) TypeError: decode() argument 1 must be string, not None This problem was rectified by running … Continue reading
Make command not found in Mac OSX
If you get a -bash: make: command not found error while trying to compile from source, you have to install xcode and then in xcode goto preferences->downloads and install xcode developer tools Download Xcode I’m not sure if you can … Continue reading
Subtracting two dimensional arrays in PHP
In the development a WordPress plugin I had to subtract two dimensional arrays. I tried array_diff() function, unfortunately it doesn’t seem to work for two dimensional arrays. Even if it worked, it wasn’t exactly the functionality I wanted. Be warned, … Continue reading