Problem:
Some time you want to generate dynamic button or any other control which have a click event or any other event. in that event you are replacing that's function arguments with a string value and integer value. The string value which you want to replace must be covered with double quotes "...".
See the Listed below the example:
var tr='<input...
Thursday, January 22, 2015
Tuesday, January 20, 2015
mpdf watermark image is front of text problem
Problem:
Some time working with watermark in MPDF you can see that watermark will show in front of texts or images in the PDF document, So how put the watermark image back side of texts or images in the PDF document.
Solution:
To overcome this problem use watermarkImgBehind property to true
Example:
$mpdf->watermarkImgBehind = tru...
Sunday, January 18, 2015
android.os.NetworkOnMainThreadException
Problem:
The runtime this error
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AnroidBlockGuardPolicy.onNetwork(StrictMode.java
is the common error when working with online activity work in android.
how to remove it?
Solution:
You need to put below lines to solve this:
StrictMode.ThreadPolicy thpolicy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(thpolicy);
Example:
Use...
unable to start activity ComponentInfo MainActivity java.lang.NullPointer Exception
Problem:
While working with Android you can face the error
Fatal Exception:java.lang.RuntimeException:unable to start activity ComponentInfo
MainActivity : java.lang.NullPointer Exception
So how to overcome this run time error in android?
Solution:
This type of error is occurs when you trying to access android control Button or
EditText before...
Thursday, January 15, 2015
TypeError e is undefined in jquery json
Problem:
jQuery is good JavaScript library. It provide lot of facilities,one of famous facility is it's Ajax. but some time you can get a error message "TypeError e is undefined" or "TypeError: e is undefined" in jQuery Ajax error "TypeError: e is undefined" specially when working with Ajax and JSON.
Normally it occurs when you trying to access a...
Get current right time in php
Problem:
Some times when you print current date using $mydatetime=date("Y-m-d H:i:s"); or print current time using echo $mytime = date("H:i:s"); in php then you will wonder that it will show wrong date time to you. so how you will show correct current date time in php?
Solution:
PHP will not set by default your current timezone, so that's...
Thursday, January 08, 2015
Paragraph overlapping problem in itextsharp

Problem:
If you are working with itextSharp in Dot net winform C# or VB.net then you are very familiar with Paragraph. if Paragraph font size is big then the Paragraph text will overlap as below example image.
Paragraph overlapping problem in itextsharp
So ...
Wednesday, January 07, 2015
Fatal error: Class PHPExcel_Reader_excel2007 not found in IOFactory.php
Problem:
While working with PHPExcel you can get the following error:
Fatal error: Class 'PHPExcel_Reader_excel2007' not found in IOFactory.php
Solution:
The main reason is you are using "excel2007" or "excel5"
You need to use "Excel2007" or "Excel5" instead of "excel2007" or "excel5"
Please not that difference between "e" and "E".
Example:
Use...
ajax in jquery
The simple way to use ajax in jquery is below:
$.ajax({
type: 'GET', async: false, cache: false, timeout:5000, url: 'ajax_util.php?'+new Date().getTime(),
data: { f_for: 'get_topic_by_lesson_id',lesson_id:1},
dataType: 'json',
...
Post data using curl
Problem:
How to post data using curl in php?
Solution:
You need to use POST method in curl.
Example:
$str_to_post = "login=mylogin&pass=mypass";
$crl = curl_init('http://localhost/mysite/dologin');
curl_setopt($crl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($crl, CURLOPT_POSTFIELDS,$str_to_post );
curl_setopt($crl, CURLOPT_RETURNTRANSFER,...
Sunday, January 04, 2015
itextSharp.text.pdf.badpasswordException PdfReader not opened with owner password
Problem:
If you are using iTestShap in Dot net application and generating PDF with owner passward. After that you are trying to open that password protected in again in Dot net code then you may face the error or exception of itextSharp.text.pdf.badpasswordException PdfReader not opened with owner password.
Solution:
This is because you are not...
Friday, January 02, 2015
KeyLogger

Problem:
Some time you want to tack the person keyboard that what keys are stroking on that keyboard?
Solution:
I have developed a application, so by this application you can achieve your target.
You can track user keyboard keys by this Key Logger Application. This...