RSS

Monthly Archives: December 2010

Happy New Year 2011

I wish all my Friends and their Families and my Relatives and my Well-Wishers a very happy and enjoying New Year..
May all your unfulfilled and desired wishes be completed in the coming year..
Happy New Year 2011…..
Have a successful year ahead..!!!

Advertisements
 
1 Comment

Posted by on December 31, 2010 in Imagine, Launch

 

Tags: ,

Wish you a Merry Christmas!

We wish you a Merry Christmas;
We wish you a Merry Christmas;
We wish you a Merry Christmas and a Happy New Year.

 
1 Comment

Posted by on December 24, 2010 in Imagine

 

Tags:

Custom Google Search

Google Custom Search service provide customized search for web on your site or blog.

1. We can add site’s links to get fast and relevant search results
2. We can make money with AdSense for Search
3. We can invite friends and community to contribute
4. We can include one or more websites, or specific webpages
5. We can host the search box and results on your own website
6. We can customize the look and feel of the results to match your site

http://www.google.com/cse/

We can make topic / site specific search on google see below

Magento Search Engine

We can integrate custom google search with our site search, we have to add below to our site…

<script type=”text/javascript”>

window.onload = function()
{

jQuery(“.gsc-input”).focus(); ¬†// google search input box

jQuery(“.gsc-input”).val(‘<?php echo isset($_REQUEST[‘q’])?$_REQUEST[‘q’]:”; ?>’); // auto fill site’s search keyword to custome search

jQuery(“.gsc-search-button”).click(); // trigger submit event

}

</script>

Waves are my inspiration, not because they rise and fall, but each time they fall They Rise Again… ūüôā

 
 

Tags: , , , , , ,

Image Map in FBML

Facebook FBML application does not support hotspots in an image map using dreamweaver.

<div style="position: relative;">
<!-- Hot Spots - Image Map -->
<div id="svnlabs1" style="background: none repeat scroll 0% 0% transparent; cursor: pointer; outline: medium none; text-align: center; vertical-align: middle; position: absolute; top: 72px; left: 460px; z-index: 99; padding: 10px;"></div>
<div id="svnlabs2" style="background: none repeat scroll 0% 0% transparent; cursor: pointer; outline: medium none; text-align: center; vertical-align: middle; position: absolute; top: 11px; left: 635px; z-index: 99; padding: 10px;"></div>
<div id="svnlabs3" style="background: none repeat scroll 0% 0% transparent; cursor: pointer; outline: medium none; text-align: center; vertical-align: middle; position: absolute; top: 170px; left: 632px; z-index: 99; padding: 10px;"></div>
<div id="svnlabs4" style="background: none repeat scroll 0% 0% transparent; cursor: pointer; outline: medium none; text-align: center; vertical-align: middle; position: absolute; top: 78px; left: 887px; z-index: 99; padding: 10px;"></div>
<!-- Main Image -->
<img src="http://blog.svnlabs.com/wp-content/uploads/2009/06/svnlabs.jpg" border="0" alt="" align="absbottom" /></div>

We can use above code to map image using DIV elements on main image.
It is quite useful to insert hotspots on Images in FBML ūüėČ

Maturity is not when we start speaking BIG things But..Actually it is, When we start understanding small things.

 

Tags: , , , ,

Amazon E-Commerce Service or ECS

Amazon’s ECS is very good service for accessing Amazon’s product database. We can register to this web service quickly, It provides a free access key to access Amazon Store.

Amazon have rich set of web services ūüôā Web Services are used to access DATA over cross¬†platform environments.

Using ECS-driven websites and applications, we can earn commissions by advertising items for sale by Amazon.

Amazon E-Commerce Service can be used to get the information from amazon such as product name, images, availability, ratings, description, specifications, similar products, and more.

We can use PHP to consume web service using PEAR, REST, SOAP and XML etc.

Try: https://github.com/Exeu/Amazon-ECS-PHP-Library

There is one thing which gives radiance to everything. It is the idea of something around the corner.

 

Tags: , , ,

Recursive Replace in Files Folders

Hello Friends,
Some time we want to change branding of web based softwares. Open source web based software have GNU License. We can modify the code and launch versions.
We can use PERL (Perl is a highly capable, feature-rich programming language with over 22 years of development.)
Here are some basic steps to Recursive Replace Rename Files, Variables, Folder Name etc.
Let you have a project in folder "/root/svnlabs"
To replace search string in all filename and foldernames recursively

# chmod a+x ./RecursiveRegexpRename.pl

# perl RecursiveRegexpRename.pl -m g 'search_text' 'replace_text'

# chmod a+x ./SearchAndReplaceInMultipleFiles.pl

# perl SearchAndReplaceInMultipleFiles.pl -m g 'Search' 'Replace'

# grep -iRl 'Search' /root/svnlabs  (Now search in your project)

If you would hit the mark, you must aim a little above it ūüėČ
 
1 Comment

Posted by on December 11, 2010 in CentOS, Linux, php, Tips, Tricks, Web Services

 

Tags: , , , , , , ,

Google Ads PHP Class

Google AdSense: AdSense is an ad serving application run by Google Inc. Website owners can enroll in this program to enable text, image, and video advertisements on their websites. These advertisements are administered by Google and generate revenue on either a per-clickor per-impression basis.

<?php
/*
Normal Ad Unit:
728x90_as (Leaderboard)
468x60_as (Banner
)
234x60_as (Half Banner)
125x125_as (Button)
120x600_as (Skyscraper)
160x600_as (Wide Skyscraper)
180x150_as (Small Rectangle)
120x240_as (Vertical Banner)
200x200_as (Small Square)
250x250_as (Square)
300x250_as (Rectangle)
336x280_as (Large Rectangle)

Link Unit:
120x90_0ads_al (4 links)
120x90_0ads_al_s (5 links)
160x90_0ads_al (4 links)
160x90_0ads_al_s (5 links)
180x90_0ads_al (4 links)
180x90_0ads_al_s (5 links)
200x90_0ads_al (4 links)
200x90_0ads_al_s (5 links)
468x15_0ads_al (4 links)
468x15_0ads_al_s (5 links)
728x15_0ads_al (4 links)
728x15_0ads_al_s (5 links)

google_ad_client¬†=¬†“pub-XXXXXXXXXXXXXXXX”;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format¬†=¬†“300x250_as”;
google_ad_type¬†=¬†“text_image”;
google_alternate_ad_url¬†=¬†“http://www.svnlabs.com/&#8221;
google_ad_channel¬†=¬†“XXXXXXXXXX”;
google_color_border¬†=¬†“FFFFFF”;
google_color_bg¬†=¬†“FFFFFF”;
google_color_link¬†=¬†“0000FF”;
google_color_text¬†=¬†“000000”;
google_color_url¬†=¬†“005577”;

*/

//Fill in Google Adsense Publisher ID.
$google_ad_client = “pub-XXXXXXXXXXXXXXXX”;
//Select Google Adsense Format to display
$google_ad_format = “468x60_as”;
//Fill in Ad Channel ID if you have one. Leave it blank if do not have.
$google_ad_channel = “”;
//Select Ad Type
$google_ad_type = “text_image”;
//Ad Border Color
$google_color_border = “FFFFFF”;
//Ad Background Color
$google_color_bg = “FFFFFF”;
//Ad Link Color
$google_color_link = “0000FF”;
//Ad Text Color
$google_color_text = “000000”;
//Ad URL Color
$google_color_url = “005577”;

switch ($google_ad_format)
{
case
‘728x90_as’:
$google_ad_width = 728; $google_ad_height = 90;
break;
case
‘468x60_as’:
$google_ad_width = 468; $google_ad_height = 60;
break;
case
‘234x60_as’:
$google_ad_width = 234; $google_ad_height = 60;
break;
case
‘120x600_as’:
$google_ad_width = 120; $google_ad_height = 600;
break;
case
‘160x600_as’:
$google_ad_width = 160; $google_ad_height = 600;
break;
case
‘120x240_as’:
$google_ad_width = 120; $google_ad_height = 240;
break;
case
‘300x250_as’:
$google_ad_width = 300; $google_ad_height = 250;
break;
case
‘250x250_as’:
$google_ad_width = 250; $google_ad_height = 250;
break;
case
‘336x280_as’:
$google_ad_width = 336; $google_ad_height = 280;
break;
case
‘180x150_as’:
$google_ad_width = 180; $google_ad_height = 150;
break;
case
‘728x15_0ads_al’:
$google_ad_width = 728; $google_ad_height = 15;
break;
case
‘468x15_0ads_al’:
$google_ad_width = 468; $google_ad_height = 15;
break;
case
‘120x90_0ads_al’:
$google_ad_width = 120; $google_ad_height = 90;
break;
case
‘160x90_0ads_al’:
$google_ad_width = 160; $google_ad_height = 90;
break;
case
‘180x90_0ads_al’:
$google_ad_width = 180; $google_ad_height = 90;
break;
case
‘200x90_0ads_al’:
$google_ad_width = 200; $google_ad_height = 90;
break;
case
‘728x15_0ads_al_s’:
$google_ad_width = 728; $google_ad_height = 15;
break;
case
‘468x15_0ads_al_s’:
$google_ad_width = 468; $google_ad_height = 15;
break;
case
‘120x90_0ads_al_s’:
$google_ad_width = 120; $google_ad_height = 90;
break;
case
‘160x90_0ads_al_s’:
$google_ad_width = 160; $google_ad_height = 90;
break;
case
‘180x90_0ads_al_s’:
$google_ad_width = 180; $google_ad_height = 90;
break;
case
‘200x90_0ads_al_s’:
$google_ad_width = 200; $google_ad_height = 90;
break;
}

?>
<script¬†type=”text/javascript”><!–
google_ad_client¬†=¬†“<?php echo $google_ad_client; ?>“;
google_ad_width = <?php echo $google_ad_width; ?>;
google_ad_height = <?php echo $google_ad_height; ?>;
google_ad_format¬†=¬†“<?php echo $google_ad_format; ?>“;
google_ad_type¬†=¬†“<?php echo $google_ad_type; ?>“;
google_ad_channel¬†=¬†“<?php echo $google_ad_channel; ?>“;
google_color_border¬†=¬†“<?php echo $google_color_border; ?>“;
google_color_bg¬†=¬†“<?php echo $google_color_bg; ?>“;
google_color_link¬†=¬†“<?php echo $google_color_link; ?>“;
google_color_text¬†=¬†“<?php echo $google_color_text; ?>“;
google_color_url¬†=¬†“<?php echo $google_color_url; ?>“;
//–>
</script>
<script¬†type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”&gt;
</script>

Source: http://www.mydigitallife.info/2009/01/17/google-adsense-legacy-old-generation-code-reference-generate-and-get/

 
1 Comment

Posted by on December 5, 2010 in Open Source, php, Tricks

 

Tags: , , , , ,