<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Programming Ideas, Logics, Tips and Tricks</title>
	<atom:link href="http://www.sajithmr.me/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Sat, 07 Apr 2012 16:30:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Tooltip using CSS3 &#8211; HTML5 iPhone Website Part 3</title>
		<link>http://www.sajithmr.me/tooltip-using-css3-html5-iphone-website-part-3</link>
		<comments>http://www.sajithmr.me/tooltip-using-css3-html5-iphone-website-part-3#comments</comments>
		<pubDate>Sat, 07 Apr 2012 16:30:06 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1133</guid>
		<description><![CDATA[This post is part of series HTML5 iPhone Website How can we make a tool tip bubble using CSS3. A tool tip is a box and an arrow at the edge pointing something. We can create this using two divs or one div and a span, one in normal mode and the other rotate through [...]]]></description>
			<content:encoded><![CDATA[<p>This post is part of series HTML5 iPhone Website</p>
<p>How can we make a tool tip bubble using CSS3.</p>
<p>A tool tip is a box and an arrow at the edge pointing something. We can create this using two divs or one div and a span, one in normal mode and the other rotate through 90 degree or nearer.</p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/arch.jpg"><img class="alignnone size-full wp-image-1137" title="arch" src="http://www.sajithmr.me/wp-content/uploads/2012/04/arch.jpg" alt="html5 tool tip idea" width="295" height="206" /></a></p>
<p>Then, we make them rounded corners, borders, and by changing z-index, we move the smaller div behind the main div, then it will look like this:</p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/tool-tip.png"><img class="alignnone size-full wp-image-1138" title="tool-tip" src="http://www.sajithmr.me/wp-content/uploads/2012/04/tool-tip.png" alt="HTML5 tooltip" width="358" height="257" /></a></p>
<p>&nbsp;</p>
<p>Here is the CSS for the above tool tip</p>
<pre class="crayon-plain-tag"><code>.menutool {

position:absolute;right:10px; width: 180px;height: 61px; padding-top: 15px; padding-left: 22px; margin-top: 10px;;
background: #f0f0f0;

-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;

-webkit-box-shadow: 2px 2px 3px 1px #8c8c8c;
-moz-box-shadow: 2px 2px 3px 1px #8c8c8c;
box-shadow: 2px 2px 3px 1px #8c8c8c;

border: 1px solid #8a8a8a;

z-index: 1000;

display: none;

}

.menutool span {width: 15px; height: 15px; top: -9px ; position: absolute; right: 13px ;

-moz-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-webkit-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-o-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-ms-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);

border-top: 1px solid #8a8a8a;
border-left: 1px solid #8a8a8a;

background: #f0f0f0;

z-index: 999;

}</code></pre>
<p>Another example for tooltip bubble, (this is for bookmark tool tip for iPhone)</p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/Bookmark-bubble.png"><img class="alignnone size-full wp-image-1139" title="Bookmark-bubble" src="http://www.sajithmr.me/wp-content/uploads/2012/04/Bookmark-bubble.png" alt="iphone bookmark tool tip " width="344" height="441" /></a></p>
<p>Here is the CSS for the above image</p>
<pre class="crayon-plain-tag"><code>.bmpopup {

background: none repeat scroll 0 0 #F0F0F0;
border: 1px solid #8A8A8A;
border-radius: 8px 8px 8px 8px;
bottom: 13px;
box-shadow: 2px 2px 3px 1px #8C8C8C;
height: 60px;
left: 16%;
margin-top: 10px;
padding: 8px 12px;
position: fixed;
text-align: justify;
width: 180px;
z-index: 1000;
display:none;

}

.bmpopup span {width: 15px; height: 15px;&nbsp; bottom: -9px ; position: absolute; left: 49% ;

-moz-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-webkit-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-o-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
-ms-transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);
transform: scale(1) rotate(45deg) translate(0px, 0px) skew(0deg, 0deg);

border-right: 1px solid #8a8a8a;
border-bottom: 1px solid #8a8a8a;

background: #f0f0f0;

z-index: 999;

}</code></pre><p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/tooltip-using-css3-html5-iphone-website-part-3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[HTML5 iPhone Site Development]]></series:name>
	</item>
		<item>
		<title>CSS 3.0 Tools &#8211;  Don&#8217;t reinvent the wheel</title>
		<link>http://www.sajithmr.me/css-3-0-tools-dont-reinvent-the-wheel</link>
		<comments>http://www.sajithmr.me/css-3-0-tools-dont-reinvent-the-wheel#comments</comments>
		<pubDate>Fri, 06 Apr 2012 16:03:16 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1121</guid>
		<description><![CDATA[This article is part of  series, &#8220;HTML5 iPhone Website Development&#8221; During your CSS creation, whenever  you think you need a gradient or rounder corner or a rotation, we can use the advantage of CSS3. Don&#8217;t need to go to W3Schools or any CSS 3 documentation, that is old style Use online tools, example and the [...]]]></description>
			<content:encoded><![CDATA[<p>This article is part of  series, &#8220;HTML5 iPhone Website Development&#8221;</p>
<p>During your CSS creation, whenever  you think you need a gradient or rounder corner or a rotation, we can use the advantage of CSS3.</p>
<p>Don&#8217;t need to go to W3Schools or any CSS 3 documentation, that is old style <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<p>Use online tools, example and the one I mostly used: <a href="http://css3generator.com/">http://css3generator.com/</a></p>
<p>Here you can create css3 for most of the browsers support CSS3. In our case, we just need to take the web-kit part, as we are making this for iPhone. However, during your learning, better to copy full CSS, so that you can see the changes using your Firefox, I  know you will be using Firefox for development and html slicing with Firebug <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<p>So copy the full CSS from css3generator.com for the beginning. In the final stages of your development, you can remove unwanted css if you want this site in iPhone only.</p>
<p>Using this tool you can set</p>
<p>Border Radius, Box Shadow, Text Shadow, RGBA, Font-Face for custom fonts, Multiple Column divs, box sizing and resizing, Outlines, transitions, transformations, Selectors, Different Gradients etc.</p>
<p>Some output of these CSS3 looks like this:<br />
<strong><br />
Search box design (rounded corner and shadow) :</strong></p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/searchbox.png"><img class="alignnone size-full wp-image-1126" title="searchbox" src="http://www.sajithmr.me/wp-content/uploads/2012/04/searchbox.png" alt="" width="396" height="47" /></a></p>
<pre class="crayon-plain-tag"><code>.searchbox .searchtext{

border: none;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
-webkit-border-bottom-right-radius: 0px;
-webkit-border-top-right-radius: 0px;
-moz-box-shadow: inset 0 0 5px #999;
-webkit-box-shadow: inset 0 0 5px #999;
box-shadow: inset 0 0 5px #999;
border-right: 1px solid #aeaeac;

color: #7f7f7e;
font-size: 14px;
width: 84%;
float: left;
height: 25px;
padding: 2px 2px 2px 4px;
margin-left: 4px;
margin-top: 4px;

}</code></pre>
<p>Gradient Menu Background:</p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/menu-background.png"><img class="alignnone size-full wp-image-1127" title="menu-background" src="http://www.sajithmr.me/wp-content/uploads/2012/04/menu-background.png" alt="" width="369" height="52" /></a></p>
<pre class="crayon-plain-tag"><code>.menu-container ul li {
padding: 10px;
border-bottom: 1px solid #c6c6c6;
background: #e5e5e5; /* Old browsers */
background: -moz-linear-gradient(top, #e5e5e5 0%, #ffffff 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #e5e5e5 0%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #e5e5e5 0%,#ffffff 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #e5e5e5 0%,#ffffff 100%); /* IE10+ */
background: linear-gradient(top, #e5e5e5 0%,#ffffff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */

}</code></pre><p><p>Rounded shaped button:</p>
<p><a href="http://www.sajithmr.me/wp-content/uploads/2012/04/Round-button.png"><img class="alignnone size-full wp-image-1128" title="Round-button" src="http://www.sajithmr.me/wp-content/uploads/2012/04/Round-button.png" alt="" width="102" height="46" /></a></p>
<pre class="crayon-plain-tag"><code>a.green-button {

background: #00a943; /* Old browsers */
background: -moz-linear-gradient(top, #00a943 0%, #00a341 50%, #008d18 50%, #008d18 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00a943), color-stop(50%,#00a341), color-stop(50%,#008d18), color-stop(100%,#008d18)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #00a943 0%,#00a341 50%,#008d18 50%,#008d18 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #00a943 0%,#00a341 50%,#008d18 50%,#008d18 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #00a943 0%,#00a341 50%,#008d18 50%,#008d18 100%); /* IE10+ */
background: linear-gradient(top, #00a943 0%,#00a341 50%,#008d18 50%,#008d18 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00a943', endColorstr='#008d18',GradientType=0 ); /* IE6-9 */

border: 1px solid #848484;
border-radius: 5px 5px 5px 5px;
color: #FFFFFF;
display: block;
font-size: 16px;
font-weight: bold;
padding: 8px 15px 8px;
text-align: center;
text-decoration: none;
width: 84%;
margin: 20px 0px 20px 4%;
float: left;
}</code></pre><p><p>
<p>In the next post, we can see different designs like Facebook Button, Bubble tool tips, Loading indicators etc in CSS3 in 3-4 lines</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/css-3-0-tools-dont-reinvent-the-wheel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[HTML5 iPhone Site Development]]></series:name>
	</item>
		<item>
		<title>HTML5 iPhone site development &#8211; Part 1</title>
		<link>http://www.sajithmr.me/html5-iphone-site-development-part-1</link>
		<comments>http://www.sajithmr.me/html5-iphone-site-development-part-1#comments</comments>
		<pubDate>Thu, 05 Apr 2012 15:22:41 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1113</guid>
		<description><![CDATA[Started writing a series post after a long time for HTML5 iPhone Website Development. Read my previous Series here: Gmail Architecture Online Photoshop Basic Structure As usual start designing your website with iPhone layout in mind. Things to remember before you design 1) iPhone support HTML5 and CSS3 2) iPhone has two orientations. 3) iPhone [...]]]></description>
			<content:encoded><![CDATA[<p>Started writing a series post after a long time for HTML5 iPhone Website Development.</p>
<p>Read my previous Series here:</p>
<p><a title="Gmail Architecture" href="http://www.sajithmr.me/series/gmail-architecture">Gmail Architecture </a></p>
<p><a title="Online Photoshop" href="http://www.sajithmr.me/series/online-photoshop">Online Photoshop</a></p>
<h3>Basic Structure</h3>
<p>As usual start designing your website with iPhone layout in mind. Things to remember before you design</p>
<p>1) iPhone support HTML5 and CSS3</p>
<p>2) iPhone has two orientations.</p>
<p>3) iPhone has no built in Menu for browser (mobile safari)</p>
<p>4) iPhone has a footer navigation by default in Safari</p>
<p>Why these things are important before we design something in Photoshop ?</p>
<p>Because, since iPhone has CSS3 support which has a lot of design advantages like rounded corner, gradients, rotation, dual background etc, the design can make a design which is suitable for a HTML developer to slice. In normal website development, we achieve these effects using small or big images in repeated mode. Here in CSS3.0, it all done using 2-3 lines of plain text in CSS file.</p>
<p>Since iPhone has 2 orientation, it is up to the product designer to decide whether we want two layouts of just one. Because iPhone can use two different CSS files for different orientation. I will cover this in coming chapters.</p>
<p>The number of controls or button in mobile safari browser is less, and hence we need to provide custom menus in our designs for each navigation, say go to home page, or my galleries, terms page etc. Also every click is just taps, and there is no scope for hover events, which is used in good consideration in majority of the Desktop websites.</p>
<p>Since safari has a footer navigation already, we can avoid many back buttons in our designs. Also can think about tools like Bookmark is placed at bottom. So, if you want to show a tool tip to bookmark your site, you can locate that tool tip button on the footer. (In coming series I will show you how quickly we can create a tool tip bubble for bookmark just with css3.o)</p>
<h4>Special Tags</h4>
<p>Once the design is done, before we start slicing, need to check some special tags available for iPhone (I would say for many latest handsets)</p>
<p><strong>Doctype and HTML tag:</strong></p><pre class="crayon-plain-tag"><code>&lt;!DOCTYPE html&gt;
&lt;html xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;</code></pre>
<p><strong>Meta tags:</strong></p>
<pre class="crayon-plain-tag"><code>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;meta name=&quot;viewport&quot; content=&quot;width = device-width,minimum-scale=1.0,maximum-scale=1.0, user-scalable=no&quot; /&gt;
&lt;meta name=&quot;HandheldFriendly&quot; content=&quot;True&quot; /&gt;
&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot; /&gt;</code></pre><p><p>For iPhone, it is better to display a website in full width mode, without any zoom options, these meta tags simply does this.</p>
<p>The rest of the slicing, just follow typical div-css float model design (of course no table)</p>
<p>Continue like normal CSS slicing, and think about using CSS3.0 techniques whenever needed. All backgrounds, gradients, shadows, borders, round corners, rotations etc, use CSS3.0. In the next chapter, I will show you which are the tools we can use to create css3.0 for a particular design.  Don&#8217;t reinvent the wheel by learning all css3.0 techniques, Google is there for you <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<p>See you in next series post, &#8220;CSS3.0 tools &#8211; don&#8217;t reinvent the wheel&#8221;</p>
<p><strong>Tips:</strong></p>
<p>You can create custom bookmark icon using the following header, this is same like favicon for Desktop browsers:</p>
<pre class="crayon-plain-tag"><code>&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/images/apple-touch-icon.png&quot;/&gt;</code></pre></p>
<p>Thanks</p>
<p>Sajith</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/html5-iphone-site-development-part-1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<series:name><![CDATA[HTML5 iPhone Site Development]]></series:name>
	</item>
		<item>
		<title>HTML5 Audio: Browser Self Test</title>
		<link>http://www.sajithmr.me/html5-audio-browser-self-test</link>
		<comments>http://www.sajithmr.me/html5-audio-browser-self-test#comments</comments>
		<pubDate>Thu, 22 Mar 2012 21:15:26 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[andriod]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[detect]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1101</guid>
		<description><![CDATA[Created a small html5 page today to check which audio format your browser support in HTML5. It is using a Javascript code to detect browsers audio status dynamically and show the result. I also added 5 different audio format sample using html5 audio node, and using this you can test whether any particular format is [...]]]></description>
			<content:encoded><![CDATA[<p>Created a small html5 page today to check which audio format your browser support in HTML5.</p>
<p><a href="http://www.sajithmr.me/html5/audio/" target="_blank"><img class="alignnone size-full wp-image-1105" title="button" src="http://www.sajithmr.me/wp-content/uploads/2012/03/button.png" alt="" width="244" height="39" /></a></p>
<p>It is using a Javascript code to detect browsers audio status dynamically and show the result.</p>
<p>I also added 5 different audio format sample using html5 audio node, and using this you can test whether any particular format is playing or not</p>
<p>It works for both Desktop browsers and mobile browsers.</p>
<p>Here is the URL:</p>
<p><a title="Detech HTML5 audio property of browser" href="http://www.sajithmr.me/html5/audio/" target="_blank">http://www.sajithmr.me/html5/audio/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/html5-audio-browser-self-test/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook changes App profile page</title>
		<link>http://www.sajithmr.me/facebook-changes-app-profile-page</link>
		<comments>http://www.sajithmr.me/facebook-changes-app-profile-page#comments</comments>
		<pubDate>Mon, 23 Jan 2012 15:44:09 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1085</guid>
		<description><![CDATA[From February 2012 onwards, Facebook stops App profile pages. But you can still move all your page likes and users to new page (till Feb). The new Facebook app creation flow is really confusing. For developers, to add a app as a tab to another page, you  need to user the following URL: https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&#38;next=YOUR_URL next [...]]]></description>
			<content:encoded><![CDATA[<p>From February 2012 onwards, Facebook stops App profile pages. But you can still move all your page likes and users to new page (till Feb).</p>
<p>The new Facebook app creation flow is really confusing.</p>
<p>For developers, to add a app as a tab to another page, you  need to user the following URL:</p>
<p><a href="https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&amp;next=YOUR_URL">https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&amp;next=YOUR_URL</a></p>
<p>next parameter should be your canvas page url.</p>
<p>Here you can see an option to add this app to your page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/facebook-changes-app-profile-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Asterisk in Mac (including Lion)</title>
		<link>http://www.sajithmr.me/install-asterisk-in-mac-including-lion</link>
		<comments>http://www.sajithmr.me/install-asterisk-in-mac-including-lion#comments</comments>
		<pubDate>Mon, 09 Jan 2012 15:10:18 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1081</guid>
		<description><![CDATA[Mac port packages are available for Asterisk in mac As a first step, do a port update to get all new packages: port selfupdate Step 2: sudo port install asterisk [This is a long process, it will start installing many dependancy packages] Possible errors you can see: 1) Image error: /opt/local/bin/a2p is being used by [...]]]></description>
			<content:encoded><![CDATA[<p>Mac port packages are available for Asterisk in mac</p>
<p>As a first step, do a port update to get all new packages:</p>
<p>port selfupdate</p>
<p>Step 2:</p>
<p>sudo port install asterisk</p>
<p>[This is a long process, it will start installing many dependancy packages]</p>
<p>Possible errors you can see:</p>
<p>1) Image error: /opt/local/bin/a2p is being used by the active perl5.8 port.  Please deactivate this port first, or use &#8216;port -f activate perl5&#8242; to force the activation.</p>
<p>Solution: Check all perl version installed using the given command:</p>
<p>sudo port installed | grep perl</p>
<p>Uninstall old perl version will solve this problem.</p>
<p>eg: port uninstall perl5 @5.8.9_0</p>
<p>sudo port uninstall   perl5.8 @5.8.9_3</p>
<p>Also if you can run an update outdate package command, this will be alos helpful:</p>
<p>sudo port upgrade outdated</p>
<p>Continue again the command: sudo port install asterisk</p>
<p>2) Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details).</p>
<p>portaudio failed to install.</p>
<p>Solution: Download port audio files from portaudio website.  Replace the source files of portaudio local folded  (where the error is located) and Manually install it using the following commands</p>
<p>sudo /usr/bin/make -j2 -w all<br />
sudo /usr/bin/make install</p>
<p>After installation, link this portaudio with port installation using the following command:</p>
<p>port -f activate portaudio</p>
<p>Continue running this command: sudo port install asterisk</p>
<p>3) When installing Asterisk, you may get another error:</p>
<p>For a undefined variable: snmp/agent.c:830: error: ‘RONLY’ undeclared</p>
<p>Solution: Find the file snmp/agent.c and add #define RONLY 1</p>
<p>If Asterisk still fail to install, download the package file from asterisk website and install manually.</p>
<p>Before compiling this, edit makeopts file and update the line:</p>
<p>change &#8220;CONFIG_LDFLAGS=&#8221; to &#8220;CONFIG_LDFLAGS= /usr/lib/bundle1.o</p>
<p>Good luck</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/install-asterisk-in-mac-including-lion/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pass parameter to an iframe embedded Fan Page in Facebook</title>
		<link>http://www.sajithmr.me/pass-parameter-to-an-iframe-embedded-fan-page-in-facebook</link>
		<comments>http://www.sajithmr.me/pass-parameter-to-an-iframe-embedded-fan-page-in-facebook#comments</comments>
		<pubDate>Thu, 05 Jan 2012 14:28:33 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[php source code]]></category>
		<category><![CDATA[webworld]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1076</guid>
		<description><![CDATA[Those who use their on hosting inside an iframe  for Facebook Fan page, there is a mechanism to pass additional parameters to your iframe page if you need to create a deep URL. A normal Fan page of Facebook would like this: https://www.facebook.com/apps/application.php?id=xxxxxxxxxx&#038;sk=app_XXXXXX This Url will call your domain, say example.com inside the iframe to [...]]]></description>
			<content:encoded><![CDATA[<p>Those who use their on hosting inside an iframe  for Facebook Fan page, there is a mechanism to pass additional parameters to your iframe page if you need to create a deep URL.</p>
<p>A normal Fan page of Facebook would like this:</p>
<p>https://www.facebook.com/apps/application.php?id=xxxxxxxxxx&#038;sk=app_XXXXXX</p>
<p>This Url will call your domain, say example.com inside the iframe to load the page.</p>
<p>Each time the iframe is loaded, Facebook do a POST to this iframe URL with some data which we can use to identify the status of the user, eg, whether the user already liked this page, or any other parameter is passed through the fan page url.</p>
<p>Facebook keep app_data variable for developers to pass additional parameters to your iframe page.</p>
<p>eg: https://www.facebook.com/apps/application.php?id=xxxxxxxxxx&amp;sk=app_XXXXXX&amp;app_data=mydata</p>
<p>To retrieve this information, in PHP, use can use the following code:</p>
<p>&lt;?php</p>
<p>if(isset($_REQUEST["signed_request"]))<br />
{</p>
<p>$signed_request = $_REQUEST["signed_request"];<br />
// $_POST also work, but better with $_REQUEST</p>
<p>list($encoded_sig, $payload) = explode(&#8216;.&#8217;, $signed_request, 2);</p>
<p>$data = json_decode(base64_decode(strtr($payload, &#8216;-_&#8217;, &#8216;+/&#8217;)), true);</p>
<p>if(isset($data['app_data']))<br />
{<br />
$mydata = $data['app_data']; //here you can get the value you passed<br />
}<br />
}</p>
<p>?&gt;</p>
<p>Check my article <a title="Like to see content" href="http://www.sajithmr.me/facebook-like-to-see-the-content">here</a>  to see how you can get the &#8216;like&#8217; status using PHP</p>
<p>Courtesy: From various online sources</p>
<p>Thanks<br />
Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/pass-parameter-to-an-iframe-embedded-fan-page-in-facebook/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jRecorder 1.1 with Preview option is released</title>
		<link>http://www.sajithmr.me/jrecorder1-1-with-preview-option-is-released</link>
		<comments>http://www.sajithmr.me/jrecorder1-1-with-preview-option-is-released#comments</comments>
		<pubDate>Wed, 14 Dec 2011 17:39:44 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php source code]]></category>
		<category><![CDATA[webworld]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1071</guid>
		<description><![CDATA[Two months ago, I published a jQuery plugin to record audio from browser (without any Media server) called jRecorder I got many responses and requests to maintain the code with new enhancements and some bug fixes. Based on that, a new version (1.1) is released which has the capability to preview the recorded audio before [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://www.sajithmr.me/wp-content/uploads/2011/10/recorder.png" alt="" width="326" height="124" /></p>
<p>Two months ago, I published a jQuery plugin to record audio from browser (without any Media server) called <a title="jRecorder - jQuery Plugin" href="http://www.sajithmr.me/jrecorder-jquery" target="_blank">jRecorder</a></p>
<p>I got many responses and requests to maintain the code with new enhancements and some bug fixes.</p>
<p>Based on that, a new version (<a title="jRecorder with Preview" href="http://www.sajithmr.me/jrecorder/index.html" target="_blank">1.1</a>) is released which has the capability to preview the recorded audio before sending to the server.</p>
<p>See the example implementation and documentation <a title="jRecorder - jQuery Plugin" href="http://www.sajithmr.me/jrecorder/index.html" target="_blank">here</a>.</p>
<p>Also I made this source open and available for anybody to develop at: https://github.com/sythoos/jRecorder/</p>
<p>Thanks</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/jrecorder1-1-with-preview-option-is-released/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Started writing on Buzitweet</title>
		<link>http://www.sajithmr.me/started-writing-on-buzitweet</link>
		<comments>http://www.sajithmr.me/started-writing-on-buzitweet#comments</comments>
		<pubDate>Tue, 13 Dec 2011 18:50:12 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[External]]></category>
		<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[quick-tips]]></category>
		<category><![CDATA[webworld]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1067</guid>
		<description><![CDATA[Buzitweet is a blogging platform where anyone can register using a Facebook account and can post your articles. No matter what topic it is, it can be programming, videos, quotes, images, pictures or any thing. I use that platform for writing quick programming tips, and which I feel  really interesting. Here are my recent 4 [...]]]></description>
			<content:encoded><![CDATA[<p>Buzitweet is a blogging platform where anyone can register using a Facebook account and can post your articles. No matter what topic it is, it can be programming, videos, quotes, images, pictures or any thing.</p>
<p>I use that platform for writing quick programming tips, and which I feel  really interesting.</p>
<p>Here are my recent 4 posts:</p>
<p><a title="Upload File Using PhoneGap" href="http://buzitweet.com/upload-a-file-using-phonegap/" target="_blank">Upload File using PhoneGap</a></p>
<p>PhoneGap new version comes with upload/download file support in iPhone/Android and BlackBerry</p>
<p><a href="http://buzitweet.com/problem-phonegap-accessing-external-url-issue-in-ios-or-any-other-phone/" target="_blank">Problem in PhoneGap accessing external URL</a></p>
<p>Article on how to access a 3rd party website content using PhoneGap (Default setting does not allow this)</p>
<p><a href="http://buzitweet.com/change-browser-address-bar-using-javascript-without-page-reloading/" target="_blank">Change Browser Address Location using Javascript (w/o reloading)</a></p>
<p>Article on manipulating browser address bar without reloading the page. Do not work for IE</p>
<p><a href="http://buzitweet.com/problem-get-the-file-type-in-shellterminal-unix-independent-of-the-file-extension/" target="_blank">Get filetype from header without checking extension in Unix</a></p>
<p>Get the MIME type of a file without checking the extension of the file (Good way &#8211; Unix style)</p>
<p>&nbsp;</p>
<p>Thanks</p>
<p>Sajith</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/started-writing-on-buzitweet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook &#8211; Like to see the content</title>
		<link>http://www.sajithmr.me/facebook-like-to-see-the-content</link>
		<comments>http://www.sajithmr.me/facebook-like-to-see-the-content#comments</comments>
		<pubDate>Wed, 09 Nov 2011 21:29:20 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[php source code]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1059</guid>
		<description><![CDATA[Sometime in Facebook Pages, you can see the message / banner, we have offers for you, like us to see. Or Like us to unlock the content etc. These all are for getting more likes in their Facebook page and indeed, it is a very nice idea to spread your updates among many of your [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime in Facebook Pages, you can see the message / banner, we have offers for you, like us to see. Or Like us to unlock the content etc. These all are for getting more likes in their Facebook page and indeed, it is a very nice idea to spread your updates among many of your Facebook Fans. Usually people won&#8217;t do the dislike option to revert it back!</p>
<p>The question is how can we do this ?</p>
<p>The trick here is, you need to create a page using iframe as you usually create FB app. In that iframe, you have your custom page fragment hosted somewhere else showing some copies/contents/offer etc.</p>
<p>Each time when Facebook load your url inside the iframe, Facebook do a POST to your domain signed_request as the parameter. The rest of the part you have to handle with your server side scripting.</p>
<p>Here mine is PHP:</p>
<p>&lt;?php</p>
<p>$signed_request = $_REQUEST["signed_request"];<br />
// $_POST also work, but better with $_REQUEST</p>
<p>list($encoded_sig, $payload) = explode(&#8216;.&#8217;, $signed_request, 2);</p>
<p>$data = json_decode(base64_decode(strtr($payload, &#8216;-_&#8217;, &#8216;+/&#8217;)), true);</p>
<p>if (empty($data["page"]["liked"])) {</p>
<p>//write code here to show a non-liked situational contents<br />
echo &#8220;You haven&#8217;t liked us yet&#8221;;</p>
<p>}<br />
else {</p>
<p>//write code here to show contents for already liked people<br />
echo &#8220;Hello Fan, here are your offers.&#8221;;</p>
<p>}<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/facebook-like-to-see-the-content/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

