August
28

Geocoding (finding latitude/longitude for street addresses), Geotagging (tagging media with latitude/longitude coordinates), and Geolocation (finding latitude/longitude of computer with IP X-Forwarded-For). There are some options to install on linux environment:

# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
# gunzip GeoLiteCity.dat.gz
# sudo mkdir -v /usr/share/GeoIP
# sudo mv -v GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat

Install geoip with php5
# sudo apt-get install php5-geoip (ubuntu)

# sudo yum install php5-geoip (centOS)

# sudo pecl install geoip (with PECL)

In Windows environment we have to add extension “php_geoip.dll” with PHP

Download extension from here : http://blog.svnlabs.com/php-5.2.1_geoip-w32.zip

Copy “php_geoip.dll” to xampp “php/ext” .. add a line in php.ini
“extension=php_geoip.dll” and restart xampp

This extension will work on development system using Windows, Apache 2.2.3 and PHP 5.2.10.
We can
check “geoip” with phpinfo() module is loaded.

<?php
$record
= geoip_record_by_name('www.svnlabs.com');
if (
$record) {
print_r($record);
}
?>

Array
(
    [country_code] => US
    [region] => CA
    [city] => Marina...
    [postal_code] =>
    [latitude] => 23.9776792798
    [longitude] => -128.435796741
    [dma_code] => 867
    [area_code] => 400
)

<?php
$result = geoip_record_by_name('78.aaa.yyy.xxx');
var_dump($result);
?>

There is alternative PHP version of the GeoIP API from MaxMind,
but this solution is quite slow on servers. MaxMind uses MaxMind database to display geo locations.
August
21

Have you checked my previous article on cronjobs…

http://blog.svnlabs.com/tag/crontab-command-line/

To run cronjob per second you have to execute crontab/cronjob per minute and then have to run task in cron file per second using PHP function time_sleep_until().

<?php

$start = microtime(true);

for($ii=0;$ii<60;$ii++)
{

//……………………….

/// here is the tasks which need to run per second…

//……………………….

time_sleep_until($start + $ii + 1);
} // end for

if (!function_exists(’time_sleep_until’))
{
function time_sleep_until($future)
{
if ($future < time())
{
trigger_error(”Time in past”, E_USER_WARNING);
return false;
}

usleep(($future – microtime(1))*1000000);
return true;
}
}

?>

August
19

I think everyone know about google language translation

We can use http://www.wibiya.com/ to translate webpage/blog content in worlds very known languages

Add the free Google Translate gadget to instantly translate your webpage or blog into other languages: English, Afrikaans, Albanian, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, Estonian, Filipino, Finnish, French, Galician, Georgian, German, Greek, Haitian Creole, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Irish, Italian, Japanese, Korean, Latvian, Lithuanian, Macedonian, Malay, Maltese, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swahili, Swedish, Thai, Turkish, Ukrainian, Urdu, Vietnamese, Welsh, Yiddish….

Other translation tools
http://babelfish.yahoo.com/
http://www.microsofttranslator.com/
http://www.systran.co.uk/

August
14

Wish you a Happy Independence Day
Salute TIRANGA

I M PROUD TO BE AN INDIAN
HAM HOGE KAMYAB HAM HOGE KAMYAB EK DIN MAN ME HE VISVAS PURA HE VISVAS HAM HOGE KAMYAB EK DIN

SAARE JAHAN SE ACCHA… HINDUSTAN HAMAR

HAPPY INDEPENDENCE DAY

happy independence day all my friends

JAI HIND

August
8

Have you checked my previous article on CakePHP…

http://blog.svnlabs.com/2009/11/cakephp-in-svnlabs/

Yii (Yes, it is) — a high-performance component-based PHP framework best for developing large-scale Web applications. Yii have features, including MVC, DAO/ActiveRecord, I18N/L10N, caching, jQuery-based AJAX support, authentication and role-based access control, scaffolding, input validation, widgets, events, theming, Web services, and so on. Written in strict OOP, Yii is easy to use and is extremely flexible and extensible.

YII Features:

- Magic overloading functions
- Lazy loading
- Authentication / Validation
- Widgets (sharing extensions)
- Yii console
- High-performance
- Templates
- MVC Push-Pull
- RBAC
- Test Case (PHPUnit, Selenium)
- EAccelerator
- jQuery
- Zend support

I am currently reviewing YII in comparison with CakePHP … Keep in touch :)

July
2

a2zVideoAPI Wordpress Plugin: http://blog.svnlabs.com/a2zVideoAPI.zip

http://wordpress.org/extend/plugins/a2zvideoapi/

Plugin Name: a2zVideoAPI widget
Plugin URI: http://svnlabs.com/a2zvideoapi/
Description: a2zVideoAPI allows you to add a sidebar widget to show video from various sites including youtube, dailymotion, google, vimeo, metacafe, blip.tv, hulu, 5min, myspace, ehow, break, flickr etc.
Author: Sandeep Verma
Version: 0.7
Author URI: http://blog.svnlabs.com
Other: Curl must be on your server to use this plugin. This widget tested to latest version of wordpress.

Some API supported URL:
http://www.youtube.com/watch?v=mXMf9GOzzOA
http://www.dailymotion.com/video/x5z91e_lets-play-holi_music
http://video.google.com/videoplay?docid=-7577046582869136330&hl=en
http://www.vimeo.com/9573920
http://www.metacafe.com/watch/4230785/ghetto_star_weekly_randy_radermacher/
http://blip.tv/file/3272712?utm_source=featured_ep&utm_medium=featured_ep
http://www.hulu.com/watch/131066/saturday-night-live-we-are-the-world-cold-open
http://www.viddler.com/explore/coop/videos/54/
http://www.5min.com/Video/How-to-Organize-Your-Life-219728873
http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=51722257
http://vodpod.com/watch/2492783-reactos-install-screencast-tutorial
http://www.ehow.com/video_4983481_change-ip-address-windows-vista.html
http://www.break.com/usercontent/2009/4/How-to-Run-Linux-on-Windows-Ubuntu-699185.html
http://www.atom.com/funny_videos/sw_gangsta_rap_chronicles/
http://www.funnyordie.com/videos/4d47a07835/danny-mendlow-the-solution-to-racism-and-the-biggest-issue-in-the-world
http://www.flickr.com/photos/traceytilson/3033319841/

Installation:

1. Download a2zVideoAPI.zip
2. Extract and upload a2zVideoAPI.php to the plugins/ directory
3. Enable a2zVideoAPI Widget in the Plugin admin panel
4. Place a2zVideoAPI in the sidebar, and edit it to enter the Video URL

Other Links:
http://code.google.com/p/a2zvideoapi/
http://github.com/svnlabs

Download API: http://www.svnlabs.com/a2zvideoapi/a2zVideoAPI.zip
Download Plugin: http://blog.svnlabs.com/a2zVideoAPI.zip

Follow me:

Facebook: http://www.facebook.com/svnlabs
Twitter: http://www.twitter.com/svnlabs

Subscribe me:
Youtube: http://www.youtube.com/user/svnlabs
Feeds: http://blog.svnlabs.com/feed/

June
23
1100011111000001011000000011100111100001110100010100101000101101101011
1111000100110110100110010100111100101110110000101101100010111111011011
0001111001110001100110000000011000010101010010010001010110000101000010
1111101110000011010011010110011110111110100110100100010011010001010001
1100111001001000101100011011101101100111110110111010010010110010010001
0100111001000111101100001011010100010100011000110100010100010001101001
0010011011001110110101000000001000110100001101000011010000000100000000
1100110100111010000111100101010100111011111001101000111000111011100110
0000101110111011011101001000010010010101001001100010111111011000101111
0100010010000010101001010111100011000011010100010000001111001000011101
0100000100011010011110111110100000001001111001110111011001000001111001
0001000001110000101001101100010000010111100011010001100101110011000101
0001111111001011101111110000000111111111010101110100110001001001111110
1100001011110100101000011011111110010101011011100000000001001001000011
1000100001000110010010101110111001111010111011101101111000111110010101
1111100001100110101011110001111110111010001101010001011110111111100100
1111100011000101010111111000011110100010001101110010100100011101110000
1100111010101011010011010100110001111100111111000010110001100101100100
0101011101001010001111010011000010011010101111000000100011111101001001
0000111100010000000100110111010101111100000000010011110100000111010011
0010000000100011010111100011110100010001111110111101001101011100101101
1000110100100001001010110011111110001110101011110100100001000111001111
1000000011101111010001001000001100110011001011001110011110110101110011
0000010000011010000011010001011110101100001111010111110111001110101100
1101101101111111001010100101111000101011111010110111100011100100010101
0000010110100011111001100000101111100000110110001001010110111111000111
1001010101111101110001111011100111001111010100111100110011111100110111
1100000100000100000110001011111110111011000110101100111000000001001000
0000010111010000001001011011011001100110100110110000010001111111111100
1001011110110100001011010101111010111000111000110100100001011011101110

# gocr -­h //short man page
# gocr sample.jpg //best case
# gocr ­-m 130 sample.jpg //database

Some great tips coming soon…. ;)

« Previous Entries
Friends: Followers:
  • Todos

    September 2010
    M T W T F S S
    « Aug    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  
  • Archives

  • My Pages

  • What visitors are saying?

  • Way of thinking…

  • What is svnlabs doing…

  • Media Temple