Thursday, March 12, 2015
TORCH IN ANDROID
If Torch in your mobile is not existing then download this Android App and you will get torch in your android mobile.
DOWNLOAD TORCH IN ANDROID HERE
reCAPTCHA
Google has improvement it's captcha and introduced new reCAPTCHA
Follow below steps to implement reCAPTCHA:
1- Sign up google reCAPTCHA site:
http://www.google.com/recaptcha/intro/index.html
2- Register your site domain. after thar it will give you "site key" and "secret key"
1- Paste this line in your web page.
![]() | |
| reCAPTCHA |
Follow below steps to implement reCAPTCHA:
1- Sign up google reCAPTCHA site:
http://www.google.com/recaptcha/intro/index.html
2- Register your site domain. after thar it will give you "site key" and "secret key"
ON CLIENT SITE:
1- Paste this line in your web page.<script src='https://www.google.com/recaptcha/api.js'></script>2- Paste the <div> tag as same in reCaptcha site:<div class="g-recaptcha" data-sitekey="YOUR-SITE-KEY"></div>
ON SERVER SITE:
1- Send three variable as POST method to url https://www.google.com/recaptcha/api/siteverifyPost variable are: secret, response, remoteipwhere secret is the your Secret Keyresponse is recaptcharemoteip is your remote ip address//CHECK reCAPTCHA in PHP code$g_r_r=$POST['g-recaptcha-response'];if(!empty($g_r_r) && strlen($g_r_r)>0) { $gurl="https://www.google.com/recaptcha/api/siteverify"; $scrt='YOUR-SECRET KEY'; $my_ip=$_SERVER['REMOTE_ADDR'];
$url=$gurl."?secret=".$scrt."&response=".$g_r_r."&remoteip=".$my_ip; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $url); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_TIMEOUT, 30);
curl_setopt($c, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16"); $c_data = curl_exec($c); curl_close($c); $res= json_decode($c_data , true); if($res['success']>=1) { //IMPLEMENT HERE LOGIN LOGIC OR ANY OTHER LOGIC } }Wednesday, March 11, 2015
HOW TO REMOVE BLOGGER WORD IN BLOG
Problem:
If you have a blog in blogger. then you can see "blogger" word at the bottom of page or any where in the blog. if you don't need this then how can you remove this?Solution:
You just need copy and past listed below code at the end of blog.Example:
<script type='text/javascript'>function r_p() {
var r_place_s="Blogger";
var r_place_t="Galaxy Code";
var Attribution1=document.getElementById("Attribution1");
var Attribution1_html=Attribution1.innerHTML;
var regex = new RegExp( '(' + r_place_s + ')', 'gi' );
Attribution1.innerHTML=Attribution1_html.replace( regex, r_place_t );
}
BAR AND QR CODE READER IN ANDROID
Bar and QR code reader/scanner in android
This android app will read Bar code and QR code. It is based on zxing, so after install it download zxing. it will automatically detect zxing in you mobile. if not found then ask you about to download automatically.
Download it from here
BAR AND QR CODE READER IN ANDROID
This android app will read Bar code and QR code. It is based on zxing, so after install it download zxing. it will automatically detect zxing in you mobile. if not found then ask you about to download automatically.
![]() |
| BAR AND QR CODE READER IN ANDROID |
Download it from here
BAR AND QR CODE READER IN ANDROID
Tuesday, February 24, 2015
Youtube upload error while upload video occurred in Google.GData.Client.dll
Problem:
While working with Google.GData.YouTube Api to upload video from your computer system to own youtube account you can get the error as below:"An unhandled exception of type 'Google.GData.Client.GDataRequestException' occurred in Google.GData.Client.dll"
"Additional information: Execution of request failed: https://uploads.gdata.youtube.com/feeds/api/users/default/uploads"
Thursday, February 19, 2015
Tuesday, February 17, 2015
Video Cutter
Problem:
How to cut any part from video?Solution:
Download this my Video Cutter windows 64 bit application.![]() |
| Video Cutter |
To run this you need to download Microsoft dot-net framework 4.5
Download Video Cutter
Monday, February 16, 2015
Better way to fill select box in php
Problem:
Better way to fill select box in phpSolution:
Use Heredoc as below exampleExample:
Assuming that $rs_list is the query result.<?php
$list_trans="";
foreach ($rs_list->result() as $row_list) {
$nm= $row_list->nm;
$id=$row_list->id;
$list_trans.= <<<ABC
<option value="$id">$nm</option>
ABC;
}
?>
<select name="transporter_id">
<?php echo $list_trans;?>
</select>














