For smart Primates & ROBOTS (oh and ALIENS ).

Thursday, March 12, 2015

Web page screen capture as image









Web page screen capture as image















Download Web Page Screen Capture as Image









Share:

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
Share:

reCAPTCHA

Google has improvement it's captcha and introduced new reCAPTCHA


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/siteverify

Post variable are: secret, response, remoteip
where secret is the your Secret Key
response is recaptcha
remoteip 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
  }
}
Share:

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=&quot;Blogger&quot;;
var r_place_t=&quot;Galaxy Code&quot;;
var Attribution1=document.getElementById(&quot;Attribution1&quot;);
var Attribution1_html=Attribution1.innerHTML;
var regex = new RegExp( &#39;(&#39; + r_place_s + &#39;)&#39;, &#39;gi&#39; );
Attribution1.innerHTML=Attribution1_html.replace( regex, r_place_t );
}
Share:

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.



BAR AND QR CODE READER IN ANDROID
















Download it from here
BAR AND QR CODE READER IN ANDROID
Share:

Tuesday, February 24, 2015

YOU TUBE VIDEO UPLOADER

YouTube Video Uploader.
Coming soon.....


Share:

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"
Share:

Thursday, February 19, 2015

Increase Voice of audio and video

Coming next
Share:

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
Share:

Monday, February 16, 2015

Better way to fill select box in php

Problem:

Better way to fill select box in php

Solution:

Use Heredoc as below example

Example:

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>




Share:

Ads Inside Post

Powered by Blogger.

Archive