To get all dates in given month and year, we need to know how many days in that given month and year.
to do that we are going to use PHP's date() and mktime() functions.
Syntax :
date(format,timestamp)
mktime(hour,minute,second,month,day,year,is_dst);
Function:
the following function will return dates in array format for given month and year in Y-m-d format.
This file contains bidirectional Unicode text that may be...
Tuesday, 24 June 2014
Monday, 16 June 2014
(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));
$( "a.see_more_link" ).on( "click", function(e) {
e.preventDefault();
alert('hi');
});
Post by சுபா ஆனந்தி...
Saturday, 14 June 2014
வெற்றியை நோக்கி பற !
பறக்க முடியாவிட்டால் ஓடு !
ஓட முடியாவிட்டால் நட !
நடக்கவும் முடியாவிட்டால் ஊர்ந்து செல்.
ஆனால், எப்படியாவது நகர்ந்து கொண்டே இரு.
English Version:
Fly to Victory!
If you can't fly, then run !
If you can't run, then Walk !
If you are unable to walk, then Crawl.
But, Somehow, Keep Moving......
Friday, 13 June 2014
Thursday, 12 June 2014
Wednesday, 11 June 2014
In this post we are going to see how to compare two array elements? and do something, when the element is matched.
This below prototype method will do that trick.
Array.prototype.diff = function(arr2) {
this.sort();
arr2.sort();
for(var i = 0; i < this.length; i += 1) {
if(arr2.indexOf( this[i] ) > -1){
arr2.splice(arr2.indexOf( this[i] ), 1);
}
}
};
from the above code, first we are sorting both arrays. Then, We searching for index of same element...
Wednesday, 4 June 2014

Problem
This issue is arise with only RSS feed not in ATOM feed.
Example
I'm going to show my blogger blog feed as an example in this post.
RSS Feed
This below URL is my blog post feed URL which will return my RSS feed data of posts.
http://cj-ramki.blogspot.in/feeds/posts/default?alt=rss
It creates the JSON data empty blog author name and noreply@blogger.com(author name). I just...
Tuesday, 3 June 2014
To get referrer url, we are going to use $_SERVER variable called HTTP_REFERER.
In some cases we need to check, this page redirected from where? To fill up that "where" we should use $_SERVER[HTTP_REFERER].
NOTE:
If users use a bookmark or directly visit your site by manually typing in the URL, HTTP_REFERER will be empty.
If the users are posting to your page programatically (CURL) then they're not obliged to set the HTTP_REFERER as well.
So,...
To get current full url in php, we can use php's $_SERVER variables.
We are going to use
$_SERVER[REQUEST_SCHEME] - It will print which type scheme (ex.http)
$_SERVER[HTTP_HOST] - Server host name
$_SERVER[REQUEST_URI] - current URI
So, We can combine those three like below,
$URL = $_SERVER[REQUEST_SCHEME].'://'.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI];
Simply echo it like this echo $_URL; to test it.
Have...
Monday, 2 June 2014
Sunday, 1 June 2014
NR Narayana Murthy, who steps down as Infosys chairman on August 20, is a
role model for not just what he achieved but also how he did it. Here
are 30 lessons from Murthy, one for each year he spent at company.
1-Seize Your Gandhi Moment
Murthy, a self
proclaimed socialist in the mid '70s was jailed for 72 hours in
Bulgaria. The experience taught him that entrepreneurship and job
creation is the way to alleviate poverty.
2-You might fail, but get started
Learn
from mistakes and move on....
Subscribe to:
Posts (Atom)