Showing posts from December, 2016

Data Encoding: A Guide to UTF-8 for PHP and MySQL

As a MySQL or PHP developer, once you step beyond the comfortable confines of English-only character sets, you quickly find yourself entangled in the wonderfully wacky world of UTF-8. A Quick UTF-8 Primer
Unicode is a widely-used computing industry standard that defines a comprehensive mapping of unique numeric code values to the characters in most of today's written character sets to aid with system interoperability and data interchange.

UTF-8 is a variable-width encoding that can represent every character in the Unicode character set. It was designed for backward compatibility with ASCII and to avoid the complications of endianness and byte order marks in UTF-16 and UTF-32. UTF-8 has become the dominant character encoding for the World Wide Web, accounting for more than half of all Web pages.

UTF-8 encodes each character using one to four bytes. The first 128 characters of Unicode correspond one-to-one with ASCII, making valid ASCII text also valid UTF-8-encoded text. It is for…


Best library is select.pdf compared to itextsharp.

Install the package through nuget. but still it will left one file 'Select.Html.dep' which is required for converting html string to pdf. Download it manually from below link. Extract zip file and copy the Select.Html.dep to your bin directory.

How to fix: Conversion failure. Could not find ‘Select.Html.dep’

Code to convert inner html inside panel to PDF is as follows: Imports SelectPdf Imports System.IO
Private Sub btnPrint_Click(sender As Object, e As EventArgs) Handles btnPrint.Click         Dim sw As New StringBuilder()         Dim tw As New StringWriter(sw)         Dim hw As New HtmlTextWriter(tw)         pnlPrint.RenderControl(hw)         Dim html = sw.ToString()         ' instantiate a html to pdf converter object         Dim converter As New HtmlToPdf()
        ' set converter options         Dim pdf_page_size As String = "A4"         Dim pageSize As …

Cyber Defamation Case for Google Map Review in India

Cyber Defamation Case for Google Maps Review in India
This post is for public interest and help for all local guides there that giving review in Google Map can lead you to legal trouble. Following is a case study for all of you. So be cautious and have all the facts before writing a review on Google Map. Anyone with vested interest can sue you legally for your review.
I am level 6 local guide since 2011 with 1000s of reviews all across India and 1000s of pictures having millions of view on Google Maps. Few month ago i gave a review to one location called Arya Vihar Ashram. Most of the facts were true to my knowledge and got from their website, Locals and position of Ashram on Map. Here is link
One day i recieved a legal notice from Ashram through my employer. I was shocked as i gave review in my personal capacity from my personal id then why notice served to my employers door. So please see the detailed notice sent to me with CEO of Google, and my rep…