Author: Sumit Gupta

  • PDF Creation: wkhtmltopdf

    In past I post about how good wkhtmltopdf is. I have used it for few of my projects. Really it is the cheapest [as it is open source and free] and powerful solution. But it is not the reason I love it. I love this because it is the Easiest solution available. Most of PDF…

  • WhatsApp Messaging from Web

    If you need to send WhatsApp message to your friend from Web, you need to find unofficial API as WhatsApp till date do not provide them, and do not allow bulk messaging as well. But in one of my project, I need to send message on whatsapp, for those who subscribe on website to recieve…

  • How to Programmatically Add Multi Language Post in WordPress and WPML

    I recently need to create wordpress post programmatically. It is so easy with wp_insert_post. However, the twist is how to add it using WPML for multi language support. WPML is nice plugin, but I didn’t find straight forward answer to it. Than I found a nice article from Ionuț Staicu, that does what I need. And…

  • Javascript Base64 Encode, Decode for UTF-8/unicode string

    Complete article that works for me : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Base64_encoding_and_decoding  Part where we encode from unicode/utf-8 is function utf8_to_b64( str ) { return window.btoa(unescape(encodeURIComponent( str ))); } function b64_to_utf8( str ) { return decodeURIComponent(escape(window.atob( str ))); } // Usage: utf8_to_b64(‘✓ à la mode’); // “4pyTIMOgIGxhIG1vZGU=” b64_to_utf8(‘4pyTIMOgIGxhIG1vZGU=’); // “✓ à la mode”  This is one of most used thing…

  • C#: Code to load Object from Database

    It is often when managing old project that do not use ORM coding, we need to load object from database. In such scenarios it is quite boring to code all 30-40 property to load from DB. So, I wrote this simple code which does it quite well for me, the only catch is you need…

  • Experiment goes wrong

    My blog was recently been taken out. I was experimenting on my Azure server that host the blog and accidently leave a unsecure port open on my server. Result, server was over used by hacker and Azure close me down. That is really nice of them that they did close me, because otherwise I might…

  • Installing Redmine 2.3.3 on Ubuntu 13

    Okay, today I install Redmine on Azure hosted Ubuntu 13.04. The steps are easy once I get it done after 2 days of working and finding what is right to do. So, let us start on installation, but a little history first. I see that Bitnami has put quite a few Redmine VM Images on…