<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Feby Artandi</title>
	<atom:link href="http://febyartandi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://febyartandi.wordpress.com</link>
	<description>Just Share</description>
	<lastBuildDate>Wed, 30 Nov 2011 15:20:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='febyartandi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/779476f5cac52896f285fb4667d2bce9?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Feby Artandi</title>
		<link>http://febyartandi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://febyartandi.wordpress.com/osd.xml" title="Feby Artandi" />
	<atom:link rel='hub' href='http://febyartandi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ROR Application for solved MARS ROVER PROBLEM</title>
		<link>http://febyartandi.wordpress.com/2011/11/30/ror-application-for-solved-mars-rover-problem/</link>
		<comments>http://febyartandi.wordpress.com/2011/11/30/ror-application-for-solved-mars-rover-problem/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 15:17:35 +0000</pubDate>
		<dc:creator>febyartandi</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://febyartandi.wordpress.com/?p=116</guid>
		<description><![CDATA[Download the app here: https://github.com/febyartandi/mars-rover-ruby-with-webview MARS HOVER PROBLEM =================================== A squad of robotic rovers are to be landed by NASA on a plateau on Mars. This plateau, which is curiously rectangular, must be navigated by the rovers so that their on-board cameras can get a complete view of the surrounding terrain to send back to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=116&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Download the app here:<br />
<strong>https://github.com/febyartandi/mars-rover-ruby-with-webview</strong></p>
<p><strong>MARS HOVER PROBLEM</strong><br />
===================================</p>
<p>A squad of robotic rovers are to be landed by NASA on a plateau on Mars. This plateau, which is curiously rectangular, must be navigated by the rovers so that their on-board cameras can get a complete view of the surrounding terrain to send back to Earth.</p>
<p>A rover&#8217;s position and location is represented by a combination of x and y co-ordinates and a letter representing one of the four cardinal compass points. The plateau is divided up into a grid to simplify navigation. An example position might be 0, 0, N, which means the rover is in the bottom left corner and facing North.</p>
<p>In order to control a rover, NASA sends a simple string of letters. The possible letters are &#8216;L&#8217;, &#8216;R&#8217; and &#8216;M&#8217;. &#8216;L&#8217; and &#8216;R&#8217; makes the rover spin 90 degrees left or right respectively, without moving from its current spot. &#8216;M&#8217; means move forward one grid point, and maintain the same heading.</p>
<p>Assume that the square directly North from (x, y) is (x, y+1).</p>
<p>INPUT:<br />
The first line of input is the upper-right coordinates of the plateau, the lower-left coordinates are assumed to be 0,0.</p>
<p>The rest of the input is information pertaining to the rovers that have been deployed. Each rover has two lines of input. The first line gives the rover&#8217;s position, and the second line is a series of instructions telling the rover how to explore the plateau.</p>
<p>The position is made up of two integers and a letter separated by spaces, corresponding to the x and y co-ordinates and the rover&#8217;s orientation.</p>
<p>Each rover will be finished sequentially, which means that the second rover won&#8217;t start to move until the first one has finished moving.</p>
<p>OUTPUT<br />
The output for each rover should be its final co-ordinates and heading.</p>
<p>INPUT AND OUTPUT</p>
<p>Test Input:<br />
5 5<br />
1 2 N<br />
LMLMLMLMM<br />
3 3 E<br />
MMRMMRMRRM</p>
<p>Expected Output:<br />
1 3 N<br />
5 1 E</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/febyartandi.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/febyartandi.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/febyartandi.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/febyartandi.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/febyartandi.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/febyartandi.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/febyartandi.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/febyartandi.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/febyartandi.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/febyartandi.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/febyartandi.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/febyartandi.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/febyartandi.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/febyartandi.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=116&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://febyartandi.wordpress.com/2011/11/30/ror-application-for-solved-mars-rover-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1bf23df7ffb558335580f41df1b6e8a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">febyartandi</media:title>
		</media:content>
	</item>
		<item>
		<title>Error Twitter Api search &#8211; Sorry, your query is too complex. Please reduce complexity and try again.</title>
		<link>http://febyartandi.wordpress.com/2010/05/21/error-twitter-api-search-sorry-your-query-is-too-complex-please-reduce-complexity-and-try-again/</link>
		<comments>http://febyartandi.wordpress.com/2010/05/21/error-twitter-api-search-sorry-your-query-is-too-complex-please-reduce-complexity-and-try-again/#comments</comments>
		<pubDate>Fri, 21 May 2010 12:46:44 +0000</pubDate>
		<dc:creator>febyartandi</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://febyartandi.wordpress.com/?p=110</guid>
		<description><![CDATA[Hi, Today I am found some interesting case in twitter api search using geocode params. When I call: http://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C200km it&#8217;s returned &#8230;. Sorry, your query is too complex. Please reduce complexity and try again. &#8230;. Strange,.because This call working some days ago. And I spend some minutes and found that we can&#8217;t request more than [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=110&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Today I am found some interesting case in twitter api search using geocode params.<br />
When I call:</p>
<div style="background-color:black;padding:8px;">
<p>http://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C200km</p>
<p>it&#8217;s returned<br />
 &#8230;.<br />
   Sorry, your query is too complex. Please reduce complexity and try again.<br />
 &#8230;.
</p></div>
<p>Strange,.because This call working some days ago.<br />
And I spend some minutes and found that we can&#8217;t request more than 160km<br />
This the working call:</p>
<div style="background-color:black;padding:8px;">
<p>http://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C160km</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/febyartandi.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/febyartandi.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/febyartandi.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/febyartandi.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/febyartandi.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/febyartandi.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/febyartandi.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/febyartandi.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/febyartandi.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/febyartandi.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/febyartandi.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/febyartandi.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/febyartandi.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/febyartandi.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=110&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://febyartandi.wordpress.com/2010/05/21/error-twitter-api-search-sorry-your-query-is-too-complex-please-reduce-complexity-and-try-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1bf23df7ffb558335580f41df1b6e8a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">febyartandi</media:title>
		</media:content>
	</item>
		<item>
		<title>Delete all .svn files in one directory</title>
		<link>http://febyartandi.wordpress.com/2010/02/10/delete-all-svn-files-from-one-directory/</link>
		<comments>http://febyartandi.wordpress.com/2010/02/10/delete-all-svn-files-from-one-directory/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 09:55:20 +0000</pubDate>
		<dc:creator>febyartandi</dc:creator>
				<category><![CDATA[Linux - Ubuntu]]></category>
		<category><![CDATA[Operating System]]></category>

		<guid isPermaLink="false">http://febyartandi.wordpress.com/?p=100</guid>
		<description><![CDATA[Hi, This is linux command to delete/clean .svn files from one directory. This usually used if you have one folder in old project and want to copy-paste into new project or new svn repository. This the command in terminal: find . -name &#8220;.svn&#8221; -exec rm -rf {} \; Hope this help<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=100&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>This is linux command to delete/clean .svn files from one directory. This usually used if you have one folder in old project and want to copy-paste into new project or new svn repository.</p>
<p>This the command in terminal:</p>
<div style="background-color:black;color:white;padding:8px;">find . -name &#8220;.svn&#8221; -exec rm -rf {} \;</div>
<p>Hope this help <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/febyartandi.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/febyartandi.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/febyartandi.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/febyartandi.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/febyartandi.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/febyartandi.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/febyartandi.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/febyartandi.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/febyartandi.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/febyartandi.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/febyartandi.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/febyartandi.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/febyartandi.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/febyartandi.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=100&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://febyartandi.wordpress.com/2010/02/10/delete-all-svn-files-from-one-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1bf23df7ffb558335580f41df1b6e8a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">febyartandi</media:title>
		</media:content>
	</item>
		<item>
		<title>Sample of rails application &#8211; basic user system ( signup, login, edit profile etc )</title>
		<link>http://febyartandi.wordpress.com/2010/02/09/sample-of-basic-user-system-rails-application-signup-login-edit-profile-etc/</link>
		<comments>http://febyartandi.wordpress.com/2010/02/09/sample-of-basic-user-system-rails-application-signup-login-edit-profile-etc/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 05:18:23 +0000</pubDate>
		<dc:creator>febyartandi</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://febyartandi.wordpress.com/?p=94</guid>
		<description><![CDATA[Hi, If you need a sample rails application or maybe you&#8217;re starting a new fresh project, you doesnt need create it from a zero. You can use and edit my scratch application. This application includes - signup - login - activation ( via email ) - forgot password ( send to email ) - edit [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=94&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>If you need a sample rails application or maybe you&#8217;re starting a new fresh project, you doesnt need create it from a zero. You can use and edit my scratch application. This application includes<br />
- signup<br />
- login<br />
- activation ( via email )<br />
- forgot password ( send to email )<br />
- edit profile<br />
- create member area<br />
- simple layout for front end and member ( include basic css )<br />
- script to feeds table countries</p>
<p>To run application,  Please Follow this steps:</p>
<p>Checkout app</p>
<div style="background-color:black;color:white;padding:8px;">
<p>git clone git@github.com:febyartandi/rails_2_scratch_app.git</p>
<p>or</p>
<p>svn co http://railsusersystem.unfuddle.com/svn/railsusersystem_rus<br />
Username: guest<br />
password: N2hJQN</p>
</div>
<p>Change configuration</p>
<div style="background-color:black;color:white;padding:8px;">- change configuration for database myql in config/database.yml with yours</p>
<p>- change google account for sending email in config/application.yml <br />
  smtp_user_name: yourgmailaccount <br />
  smtp_password: yourgmailpassword </p>
<p>- rake db:create &amp;&amp; rake db:migrate <br />
- rake migration:populate <br />
- ruby script/server
</div>
<p>Hope this help people  !!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/febyartandi.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/febyartandi.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/febyartandi.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/febyartandi.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/febyartandi.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/febyartandi.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/febyartandi.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/febyartandi.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/febyartandi.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/febyartandi.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/febyartandi.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/febyartandi.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/febyartandi.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/febyartandi.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=94&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://febyartandi.wordpress.com/2010/02/09/sample-of-basic-user-system-rails-application-signup-login-edit-profile-etc/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1bf23df7ffb558335580f41df1b6e8a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">febyartandi</media:title>
		</media:content>
	</item>
		<item>
		<title>How to use linkedin api &#8211; invite people by email in ruby on rails</title>
		<link>http://febyartandi.wordpress.com/2010/01/24/how-to-use-linkedin-api-invite-people-by-email-in-ruby-on-rails/</link>
		<comments>http://febyartandi.wordpress.com/2010/01/24/how-to-use-linkedin-api-invite-people-by-email-in-ruby-on-rails/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 15:23:44 +0000</pubDate>
		<dc:creator>febyartandi</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://febyartandi.wordpress.com/?p=80</guid>
		<description><![CDATA[Hi guys, This is quick tutorial about linkedin api &#8211; invitation by people email to join your linkedin network. We will use linkedinapi rails plugin ( Created by Dimas Priyanto and Me base on oauth rails plugin ) checkout plugin svn co http://linkedinapi.unfuddle.com/svn/linkedinapi_linkedinapi/ and copy to vendor/plugins username: guest, password: password run ruby script/console initialize your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=80&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi guys,</p>
<p>This is quick tutorial about linkedin api &#8211; invitation by people email to join your linkedin network.</p>
<p>We will use linkedinapi rails plugin ( Created by Dimas Priyanto and Me base on oauth rails plugin )</p>
<ul>
<li>checkout plugin
<div style="background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
svn co http://linkedinapi.unfuddle.com/svn/linkedinapi_linkedinapi/ and copy to vendor/plugins <br />
username: guest, password: password
</div>
</li>
<li> run ruby script/console</li>
</ul>
<ul>
<li>initialize your linkedin api key and secret key</li>
</ul>
<div style="background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
&gt;&gt; linkedin_api_key = &#8221; YOUR LINKEDIN API KEY&#8221;</p>
<p>&gt;&gt; secret_key = &#8220;YOUR LINKEDIN API SECRET&#8221;
</p></div>
<ul>
<li> setting your callback</li>
</ul>
<div style="background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
&gt;&gt; callback_url = &#8216;http://localhost:3000/linkedin_callback&#8217;
</div>
<ul>
<li>create oauth object</li>
</ul>
<div style="background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
&gt;&gt; oauth = LinkedIn::Oauth.new(linkedin_api_key, linkedin_secret)
</div>
<ul>
<li>request authorize url</li>
</ul>
<div style="background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
&gt;&gt; oauth.request_token.authorize_url</p>
<p>=&gt; &#8220;https://api.linkedin.com/uas/oauth/authorize?oauth_token=53bc5779-75fb-4a82-915c-a33dba1dddf2&#8243;
</p></div>
<p>Open the link in your browser  as redirection url for user to do authorization process,<br />
if user authorize it we will get params[:oauth_verifier] in our &#8220;callback_url&#8221;,<br />
use it to authorize from request</p>
<p>for example:</p>
<div style="background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
<p>http://localhost:3000/linkedin_callback?oauth_token=94145e28-2d4d-4d55-856d-c5e791334e09&#038;oauth_verifier=00883</p>
<p>&gt;&gt; oauth_verifier = &#8220;00883&#8243;
</p></div>
<ul>
<li>authorize using oauth verifier and token</li>
</ul>
<div style="background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
&gt;&gt; oauth.authorize_from_request(oauth.request_token.token, oauth.request_token.secret, oauth_verifier)
</div>
<ul>
<li>create linkedin api object</li>
</ul>
<div style="background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
&gt;&gt; linkedin = LinkedIn::Base.new(oauth)
</div>
<ul>
<li>show your linkedin profile</li>
</ul>
<div style="background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
&gt;&gt; linkedin.profile<br />
&#8220;&lt;?xml version=\&#8221;1.0\&#8221; encoding=\&#8221;UTF-8\&#8221; standalone=\&#8221;yes\&#8221;?&gt;\n&lt;person&gt;\n  &lt;first-name&gt;Feby&lt;/first-name&gt;\n  &lt;last-name&gt;Artandi&lt;/last-name&gt;\n  &lt;headline&gt;Ruby on rails programmer&lt;/headline&gt;\n  &lt;site-standard-profile-request&gt;\n    &lt;url&gt;http://www.linkedin.com/profile?viewProfile=&amp;amp;key=30011332&amp;amp;authToken=nM0a&amp;amp;authType=name&amp;amp;trk=api*a101208*&lt;/url&gt;\n  &lt;/site-standard-profile-request&gt;\n&lt;/person&gt;\n&#8221;<br />
&#8220;AAAAAA&#8221;<br />
=&gt; &#8220;&lt;?xml version=\&#8221;1.0\&#8221; encoding=\&#8221;UTF-8\&#8221; standalone=\&#8221;yes\&#8221;?&gt;\n&lt;person&gt;\n  &lt;first-name&gt;Feby&lt;/first-name&gt;\n  &lt;last-name&gt;Artandi&lt;/last-name&gt;\n  &lt;headline&gt;Ruby on rails programmer&lt;/headline&gt;\n  &lt;site-standard-profile-request&gt;\n    &lt;url&gt;http://www.linkedin.com/profile?viewProfile=&amp;amp;key=30011332&amp;amp;authToken=nM0a&amp;amp;authType=name&amp;amp;trk=api*a101208*&lt;/url&gt;\n  &lt;/site-standard-profile-request&gt;\n&lt;/person&gt;\n&#8221;
</div>
<ul>
<li>invite people by email, first name and last name</li>
</ul>
<div style="background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
linkedin.invite_by_email(&#8220;feby@kiranatama.com&#8221;, &#8220;Feby&#8221;, &#8220;Artandi&#8221;)
</div>
<p>That&#8217;s it, enjoy ! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/febyartandi.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/febyartandi.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/febyartandi.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/febyartandi.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/febyartandi.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/febyartandi.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/febyartandi.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/febyartandi.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/febyartandi.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/febyartandi.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/febyartandi.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/febyartandi.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/febyartandi.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/febyartandi.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=80&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://febyartandi.wordpress.com/2010/01/24/how-to-use-linkedin-api-invite-people-by-email-in-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1bf23df7ffb558335580f41df1b6e8a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">febyartandi</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple code to test twitter oauth with ruby on rails via web browser</title>
		<link>http://febyartandi.wordpress.com/2010/01/14/simple-code-to-test-twitter-oauth-with-ruby-on-rails-via-web-browser/</link>
		<comments>http://febyartandi.wordpress.com/2010/01/14/simple-code-to-test-twitter-oauth-with-ruby-on-rails-via-web-browser/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 11:40:41 +0000</pubDate>
		<dc:creator>febyartandi</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://febyartandi.wordpress.com/?p=62</guid>
		<description><![CDATA[Hi, This is tutorial about implement twitter oauth in Ruby on Rails application using twitter_oauth gem. You can see installation from http://github.com/moomerman/twitter_oauth/. The gem author show how to implement the oauth call in command prompt. Now I&#8217;ll show you how to use the gem via web browser and save access key into database. 1. Create [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=62&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="font-size:12px;">
Hi,</p>
<p>This is tutorial about implement twitter oauth in Ruby on Rails application using twitter_oauth gem.</p>
<p>You can see installation from http://github.com/moomerman/twitter_oauth/. The gem author show how to implement the oauth call in command prompt.</p>
<p>Now I&#8217;ll show you how to use the gem via web browser and save access key into database.</p>
<p>1. Create rails application ( if it&#8217;s your 1st rails project you should google about ruby on rails app )</p>
<p>2. Implement the restful authentication plugin ( see http://github.com/technoweenie/restful-authentication ) until you have user system.</p>
<p>3. Install the twitter_oauth gem http://github.com/moomerman/twitter_oauth/</p>
<p>4. Create migration</p>
<div style="font-size:12px;width:470px;overflow:auto;background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
<pre>
class CreateTwitterAccounts &lt; ActiveRecord::Migration

  def self.up
    create_table :twitter_accounts do |t|
      t.integer :user_id
      t.string :token
      t.string :secret
      t.timestamps
    end
  end

  def self.down
    drop_table :twitter_accounts
  end
end

5. Edit user model, add this line

  has_one  :twitter_account, :dependent =&gt; :destroy

  def has_twitter_oauth?
    self.twitter_account and self.twitter_account.token and self.twitter_account.secret
  end

  def create_or_update_twitter_account_with_oauth_token(token, secret)
    twitter_account = self.twitter_account ? self.twitter_account : TwitterAccount.new(:user_id =&gt; self.id)
    twitter_account.token = token
    twitter_account.secret = secret
    twitter_account.save!
  end

6. Create and edit Model twitter_account ( ruby script/generate model twitter_account )
   Add this line: 

   belongs_to :user

7. Create try controller ( ruby script/generate controller try )
</pre>
</div>
<div style="font-size:12px;width:470px;overflow:auto;background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
<pre>
8 Edit try controller and copy-paste this:

   # require the gem twitter_oauth
   require 'twitter_oauth'
   # need user logged in
   before_filter :login_required

   #initialize your twitter key and secret ( you can get from here http://apiwiki.twitter.com/ )
   TWITTER_KEY = '83evR5lsb0E1gmvn0FXacQ'
   TWIITER_SECRET = 'REuY5OAS6EFXrC4KYCKYLX68qVBmx4lJshTZehIfI2M'

   # The url to back when user has authorize your app
   TWITTER_CALLBACK_URL = 'http://localhost:3000/try/callback'

    #index method
    # this method check if user has authorize your app
    # if no it'll show they link to authorize your app in their twitter account
    def index
      if !current_user.has_twitter_oauth?
        @T_OAUTH = TwitterOAuth::Client.new( :consumer_key =&gt; TWITTER_KEY, :consumer_secret =&gt; TWIITER_SECRET )
        @T_REQUEST_TOKEN = @T_OAUTH.request_token <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> auth_callback =&gt; TWITTER_CALLBACK_URL
        @T_TOKEN = @T_REQUEST_TOKEN.token
        @T_SECRET = @T_REQUEST_TOKEN.secret
        @link = @T_REQUEST_TOKEN.authorize_url
        session['token' ] = @T_TOKEN
        session['secret'] = @T_SECRET
     end
  end

  # Method callback
  # this method will call after user authorize your app in twitter website
  # this method will authorize oauth token and verifier send from twitter and if success key and secret will stored in database
  def callback
    @T_OAUTH = TwitterOAuth::Client.new(:consumer_key =&gt; TWITTER_KEY, :consumer_secret =&gt; TWIITER_SECRET )
    @oauth_verifier = params[:oauth_verifier]
    access_token = @T_OAUTH.authorize(session['token'], session['secret'], <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> auth_verifier =&gt; @oauth_verifier)
    if (@result = @T_OAUTH.authorized?)
      current_user.create_or_update_twitter_account_with_oauth_token(access_token.token, access_token.secret)
      session['token'] = nil
      session['secret'] = nil
      flash[:notice] = "Authorize complete"
    else
      flash[:notice] = "Authorize failed"
    end

    rescue
      flash[:notice] = "Authorize failed"
  end

  # method update status
  # this method is for sent tweet to your twitter
  def update_status
    if current_user.has_twitter_oauth?
      @T_OAUTH = TwitterOAuth::Client.new( :consumer_key =&gt; TWITTER_KEY,
      :consumer_secret =&gt; TWIITER_SECRET, :token =&gt; current_user.twitter_account.token,
      :secret =&gt; current_user.twitter_account.secret )

      if @T_OAUTH.authorized? and @T_OAUTH.update(params[:status])
        flash[:notice] = "Your tweet has been sent"
      else
        flash[:notice] = "Sorry ! Your tweet failed to sent, try later !"
      end
    else
      flash[:notice] = "You dont have twitter account with oauth token, please authorize myapp in your twitter !"
    end

   redirect_to :action =&gt; 'index' 

 end
</pre>
</div>
<div style="font-size:12px;width:470px;overflow:auto;background-color:black;color:white;margin:5px 0 5px 10px;padding:8px;">
<pre>
9. Add file index.html.erb in app/views/try
    Copy - paste

    Test Twitter API

     &lt;% if @link %&gt;
        You have not authorize my app into your twitter 

       &lt;%= link_to "Click here to authorize myapp.me", @link %&gt;
     &lt;% else %&gt;
        Try to update your status 

        &lt;% form_tag "/try/update_status", :method =&gt; "post" do %&gt;
          &lt;%= text_field_tag "status" %&gt;
          &lt;%= submit_tag "Update" %&gt;
        &lt;% end %&gt;
      &lt;% end %&gt;

10. Add file callback.html.erb in app/views/try
   copy - paste

   &lt;%= flash[:notice] %&gt;

   &lt;%= link_to "Click here", "/try" %&gt; to back
</pre>
</div>
<p>That&#8217;s it, hope it can help you..<br />
Please let me know if you find any error or problem when implement the codes.
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/febyartandi.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/febyartandi.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/febyartandi.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/febyartandi.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/febyartandi.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/febyartandi.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/febyartandi.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/febyartandi.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/febyartandi.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/febyartandi.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/febyartandi.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/febyartandi.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/febyartandi.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/febyartandi.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=62&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://febyartandi.wordpress.com/2010/01/14/simple-code-to-test-twitter-oauth-with-ruby-on-rails-via-web-browser/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1bf23df7ffb558335580f41df1b6e8a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">febyartandi</media:title>
		</media:content>
	</item>
		<item>
		<title>Give comments to one paragraph / block in ruby</title>
		<link>http://febyartandi.wordpress.com/2009/08/18/give-comments-to-one-paragraph-block-in-ruby/</link>
		<comments>http://febyartandi.wordpress.com/2009/08/18/give-comments-to-one-paragraph-block-in-ruby/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 04:33:17 +0000</pubDate>
		<dc:creator>febyartandi</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://febyartandi.wordpress.com/?p=60</guid>
		<description><![CDATA[=begin -- comment begin ( make sure this is in the most left row /  indentation = 0 ) def hallo render :text =&#62; "hello word" end =end -- comment end ( make sure this is in the most left row /  indentation = 0 )<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=60&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div style="background-color:black;color:white;overflow:auto;width:400px;margin:5px 0 5px 10px;padding:8px;">
<pre>
=begin -- comment begin ( make sure this is in the most left row /  indentation = 0 )

  def hallo
    render :text =&gt; "hello word"
  end

=end -- comment end ( make sure this is in the most left row /  indentation = 0 )
</pre>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/febyartandi.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/febyartandi.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/febyartandi.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/febyartandi.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/febyartandi.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/febyartandi.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/febyartandi.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/febyartandi.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/febyartandi.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/febyartandi.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/febyartandi.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/febyartandi.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/febyartandi.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/febyartandi.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=60&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://febyartandi.wordpress.com/2009/08/18/give-comments-to-one-paragraph-block-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1bf23df7ffb558335580f41df1b6e8a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">febyartandi</media:title>
		</media:content>
	</item>
		<item>
		<title>NameError in MainController#index  uninitialized constant ApplicationController</title>
		<link>http://febyartandi.wordpress.com/2009/08/02/nameerror-in-maincontrollerindex-uninitialized-constant-applicationcontroller/</link>
		<comments>http://febyartandi.wordpress.com/2009/08/02/nameerror-in-maincontrollerindex-uninitialized-constant-applicationcontroller/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 13:10:54 +0000</pubDate>
		<dc:creator>febyartandi</dc:creator>
				<category><![CDATA[Bug and Error Fixing]]></category>

		<guid isPermaLink="false">http://febyartandi.wordpress.com/?p=57</guid>
		<description><![CDATA[I&#8217;ve this problem when run my &#8220;old&#8221; rails application. After some minutes trace, I found the problem is &#8220;name&#8221; for application controller file. In my old application, the name is &#8220;application.rb&#8220;, and when I renamed it with &#8220;application_controller.rb&#8220;,  it&#8217;s working !! Hope this help peoples.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=57&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve this problem when run my &#8220;old&#8221; rails application.</p>
<p>After some minutes trace, I found the problem is &#8220;name&#8221; for application controller file.</p>
<p>In my old application, the name is &#8220;<strong>application.rb</strong>&#8220;,</p>
<p>and when I renamed it with <strong>&#8220;application_controller.rb</strong>&#8220;,  it&#8217;s working !!</p>
<p>Hope this help peoples.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/febyartandi.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/febyartandi.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/febyartandi.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/febyartandi.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/febyartandi.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/febyartandi.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/febyartandi.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/febyartandi.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/febyartandi.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/febyartandi.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/febyartandi.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/febyartandi.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/febyartandi.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/febyartandi.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=57&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://febyartandi.wordpress.com/2009/08/02/nameerror-in-maincontrollerindex-uninitialized-constant-applicationcontroller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1bf23df7ffb558335580f41df1b6e8a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">febyartandi</media:title>
		</media:content>
	</item>
		<item>
		<title>Ajax pagination &#8211; RoR and will paginate</title>
		<link>http://febyartandi.wordpress.com/2009/05/11/ajax-pagination-ror-and-will-paginate/</link>
		<comments>http://febyartandi.wordpress.com/2009/05/11/ajax-pagination-ror-and-will-paginate/#comments</comments>
		<pubDate>Mon, 11 May 2009 06:40:42 +0000</pubDate>
		<dc:creator>febyartandi</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://febyartandi.wordpress.com/?p=51</guid>
		<description><![CDATA[Some peoples talked about ajax pagination in RoR and give solutions with jquery, override class RemoteLinkRenderer etc. All solutions is &#8220;to high class&#8221; for me, I need a &#8220;stupid&#8221; solution with only will-paginate and prototype . After some hours experiments, I&#8217;ve made the solution for create ajax pagination with only will-paginate and rjs. See demo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=51&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some peoples talked about ajax pagination in RoR and give solutions with jquery, override<span style="color:#000000;font-family:tahoma,sans-serif;"> class RemoteLinkRenderer etc. All solutions is &#8220;to high class&#8221; for me, I need a &#8220;stupid&#8221; solution with only will-paginate and prototype <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</span></p>
<p><span style="color:#000000;font-family:tahoma,sans-serif;">After some hours experiments, I&#8217;ve made the solution for create ajax pagination with only will-paginate and rjs.</span></p>
<p><span style="color:#000000;font-family:tahoma,sans-serif;">See demo :</span><a href="http://ajax-pagination.herokugarden.com/users" target="_blank"> http://ajax-pagination.herokugarden.com/users</a></p>
<p><strong>The codes:</strong></p>
<p>- Run ruby script/generate scaffold users first_name:string last_name:string address:string phone:string</p>
<p><strong>modify:</strong></p>
<p>- users_controller.rb</p>
<p>def index<br />
find_users<br />
end</p>
<p>def list_called_by_ajaxs<br />
if request.xhr?<br />
find_users<br />
respond_to do |format|<br />
format.js do<br />
render :update do |page|<br />
page.replace_html(&#8216;list&#8217;, :partial =&gt; &#8216;users/list&#8217;)<br />
end<br />
end<br />
end<br />
end<br />
end</p>
<p>private</p>
<p>def find_users<br />
@users_per_page = 5<br />
@users = User.all.paginate(:per_page =&gt; @users_per_page, :page =&gt; params[:page])<br />
end</p>
<p>- <strong>modify users/index.html.erb</strong>&lt;%= javascript_include_tag :defaults %&gt;<br />
&lt;h1&gt;Listing users&lt;/h1&gt;</p>
<p>&lt;%= render :partial =&gt; &#8216;list&#8217;%&gt;<br />
&lt;div id=&#8221;loader-bottom&#8221; style=&#8221;display:none;s&#8221;&gt;&lt;p&gt;Loading..&lt;br /&gt;&lt;/div&gt;</p>
<p>- <strong>add users/_list.html.erb</strong></p>
<p>&lt;div id=&#8221;list&#8221;&gt;<br />
&lt;%= render :partial =&gt; &#8216;pagination&#8217; %&gt;<br />
&lt;table border=&#8221;2&#8243;&gt;<br />
&lt;tr&gt;<br />
&lt;th&gt;First name&lt;/th&gt;<br />
&lt;th&gt;Last name&lt;/th&gt;<br />
&lt;th&gt;Address&lt;/th&gt;<br />
&lt;th&gt;Phone&lt;/th&gt;<br />
&lt;/tr&gt;</p>
<p>&lt;% @users.each do |user| %&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;%=h user.first_name %&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;%=h user.last_name %&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;%=h user.address %&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;%=h user.phone %&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;%= link_to &#8216;Show&#8217;, user %&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;%= link_to &#8216;Edit&#8217;, edit_user_path(user) %&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;%= link_to &#8216;Destroy&#8217;, user, :confirm =&gt; &#8216;Are you sure?&#8217;, :method =&gt; :delete %&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;% end %&gt;<br />
&lt;/table&gt;</p>
<p>&lt;br /&gt;</p>
<p>&lt;%= link_to &#8216;New user&#8217;, new_user_path %&gt;</p>
<p>&lt;/div&gt;</p>
<p><strong>- add users/_pagination.html.erb</strong></p>
<p>&lt;%- if @users.total_entries &lt;= @users_per_page-%&gt;<br />
&lt;%- pages = 1 %&gt;<br />
&lt;%- else -%&gt;<br />
&lt;%- pages = (@users.total_entries / @users_per_page) + 1%&gt;<br />
&lt;%- end -%&gt;<br />
&lt;%- if pages &gt; 1-%&gt;<br />
&lt;div id =&#8221;pagination&#8221; class=&#8221;pagination&#8221; style=&#8221;margin:0 5px 0 5px;padding: 0&#8243;&gt;<br />
&lt;%- current = params[:page].nil? ? 1 : params[:page].to_i -%&gt;<br />
&lt;span class=&#8221;current&#8221;&gt; Page: &lt;/span&gt;<br />
&lt;%- for i in 1..pages -%&gt;<br />
&lt;%- if (i == current ) -%&gt;<br />
&lt;span class=&#8221;current&#8221;&gt;&lt;%= i %&gt;&lt;/span&gt;<br />
&lt;%- else -%&gt;<br />
&lt;%= link_to_remote i, {<br />
:url =&gt; (list_called_by_ajax_users_path(:page =&gt; i)),<br />
:method =&gt; :get,<br />
:loading =&gt; &#8220;$(&#8216;list&#8217;).hide();$(&#8216;loader-bottom&#8217;).show()&#8221;,<br />
:complete =&gt;  &#8220;$(&#8216;list&#8217;).show();$(&#8216;loader-bottom&#8217;).hide()&#8221;} %&gt;<br />
&lt;%- end -%&gt;<br />
&lt;%- end -%&gt;<br />
&lt;/div&gt;</p>
<p>&lt;%- end -%&gt;</p>
<p><strong>modify &#8220;config/routes.rb&#8221;</strong></p>
<p>add this line: map.resources :users, :collection =&gt; {:list_called_by_ajax =&gt; :get}</p>
<p>Hope this stupid solutions help peoples <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/febyartandi.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/febyartandi.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/febyartandi.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/febyartandi.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/febyartandi.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/febyartandi.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/febyartandi.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/febyartandi.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/febyartandi.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/febyartandi.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/febyartandi.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/febyartandi.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/febyartandi.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/febyartandi.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=51&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://febyartandi.wordpress.com/2009/05/11/ajax-pagination-ror-and-will-paginate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1bf23df7ffb558335580f41df1b6e8a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">febyartandi</media:title>
		</media:content>
	</item>
		<item>
		<title>HTML Tutorial &#8211; Part 1</title>
		<link>http://febyartandi.wordpress.com/2009/02/20/html-tutorial-part-1/</link>
		<comments>http://febyartandi.wordpress.com/2009/02/20/html-tutorial-part-1/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 01:13:42 +0000</pubDate>
		<dc:creator>febyartandi</dc:creator>
				<category><![CDATA[HTML Tutorial]]></category>

		<guid isPermaLink="false">http://febyartandi.wordpress.com/?p=16</guid>
		<description><![CDATA[1.1 What is HTML ? HTML, an initialism of HyperText Markup Language, is the    predominant markup language for Web pages. See http://en.wikipedia.org/wiki/HTML for details. 1.2 How to create HTML file ? Open your text editor ( notepad, gedit, textmate, editplus, etc ) Create new file Save file with .html, for example : index.html ( don&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=16&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>1.1 What is HTML ?</strong></p>
<p><strong> HTML</strong>, an initialism of <strong>HyperText Markup Language</strong>, is the    predominant markup language for Web pages.</p>
<p>See <a href="http://en.wikipedia.org/wiki/HTML">http://en.wikipedia.org/wiki/HTML</a> for details.</p>
<p><strong>1.2 How to create HTML file ?</strong></p>
<ul>
<li>Open your text editor ( notepad, gedit, textmate, editplus, etc )</li>
<li>Create new file</li>
<li>Save file with .html, for example : index.html ( don&#8217;t forget to to choose option &#8220;save as type&#8221; : &#8220;all files&#8221;</li>
<li>press save or ok</li>
</ul>
<p><strong>1.3 Basic format of html document</strong></p>
<p>open your html file and type ( or just copy -paste ):</p>
<pre style="font-size:12px;">
&lt;HTML&gt;
  &lt;HEAD&gt;
    &lt;TITLE&gt;This text will show as the bar title in browser &lt;/TITLE&gt;
  &lt;/HEAD&gt;
  &lt;BODY&gt;
    This is the body, put your text, picture, etc here.
  &lt;/BODY&gt;
&lt;/HTML&gt;
</pre>
<p>Save your file and run it in the browser ( double click in your html file or right click &#8211; open with &#8211; Firefox.</p>
<p><strong>1.4 Change the background color</strong></p>
<p>you can change your page color with modify the tag  &lt;body&gt;.</p>
<p>example:</p>
<pre style="font-size:12px;">
&lt;HTML&gt;
  &lt;HEAD&gt;
    &lt;TITLE&gt;This text will show as the bar title in browser &lt;/TITLE&gt;
  &lt;/HEAD&gt;
  &lt;BODY bgcolor="red" &gt;
    This is the body, put your text, picture, etc here.
  &lt;/BODY&gt;
&lt;/HTML&gt;
</pre>
<p><strong>1.5 Show picture</strong></p>
<p>In HTML, images are defined with the &lt;img&gt; tag. To display an image on a page, you need to use the src attribute. Src stands for &#8220;source&#8221;. The value of the src attribute is the URL of the image you want to display on your page.</p>
<p>example ( put this command inside of html body ):</p>
<p>&lt;img src= &#8220;my_image.jpg&#8221;&gt;</p>
<p>note: Change &#8220;my_image.jpg&#8221; with your own image url.</p>
<p><strong>1.6 Text Modification (1)</strong></p>
<p>examples:</p>
<pre style="font-size:12px;">
&lt;HTML&gt;
  &lt;HEAD&gt;
    &lt;TITLE&gt;This text will show as the bar title in browser &lt;/TITLE&gt;
  &lt;/HEAD&gt;
  &lt;BODY bgcolor="red" &gt;

    &lt;b&gt; Bold text &lt;/b&gt;

    &lt;i&gt; italic text &lt;/i&gt;

    &lt;strong&gt; strong text &lt;/strong&gt;

    &lt;small&gt; small text &lt;/small&gt;

    &lt;big&gt; big text &lt;/big&gt;

    &lt;sub&gt; sub-script &lt;/sub&gt;

    &lt;sup&gt; sper-script &lt;/sup&gt;

    &lt;del&gt; Wrong Text &lt;/del&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;
</pre>
<p><strong>1.7 Text Modification (2)</strong></p>
<p><strong>change the font size</strong> ( put this command inside html body ):</p>
<ul></ul>
<p>&lt;font size=&#8221;20&#8243;&gt; Font size 20 &lt;/font&gt; </p>
<p><strong>create marquee text</strong></p>
<ul></ul>
<p>&lt;marquee&gt; This is marquee text &lt;/marquee&gt;</p>
<p><strong>1.8 Create A links</strong></p>
<p>Links are defined with &lt;a href=&#8221;target_url&#8221;&gt;<br />
example:<br />
&lt;a href=&#8221;http://www.google.com&#8221;&gt; Google.com&lt;/a&gt;</p>
<p>Link to open target utr in new window<br />
&lt;a href=&#8221;http://www.google.com&#8221; target=&#8221;_blank&#8221;&gt; Google.com&lt;/a&gt;</p>
<p><strong>1.9 Create a List</strong><br />
<strong></strong></p>
<p><strong>-Unordered list </strong></p>
<p>An unordered listis a list of items. It starts with the &lt;ul&gt; tag.<br />
Each list item starts with the &lt;li&gt; tag.<br />
example:<br />
&lt;ul&gt;<br />
&lt;li&gt; Jazz &lt;/li&gt;<br />
&lt;li&gt; Rock &lt;/li&gt;<br />
&lt;li&gt; Blues&lt;/li&gt;</p>
<p>&lt;/ul&gt;</p>
<p><strong>-Ordered list </strong><br />
An Ordered listis a list of sorted items. It starts with the &lt;ol&gt; tag.<br />
Each list item starts with the &lt;li&gt; tag.<br />
example:<br />
&lt;ol type=&#8221;a&#8221; start=&#8221;1&#8243;&gt;<br />
&lt;li&gt; Jazz &lt;/li&gt;<br />
&lt;li&gt; Rock &lt;/li&gt;<br />
&lt;li&gt; Blues&lt;/li&gt;<br />
&lt;/ol&gt;<br />
note: you can change type with &#8220;1&#8243; for numeric and &#8220;i&#8221; for romanian.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/febyartandi.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/febyartandi.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/febyartandi.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/febyartandi.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/febyartandi.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/febyartandi.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/febyartandi.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/febyartandi.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/febyartandi.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/febyartandi.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/febyartandi.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/febyartandi.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/febyartandi.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/febyartandi.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=febyartandi.wordpress.com&amp;blog=6526652&amp;post=16&amp;subd=febyartandi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://febyartandi.wordpress.com/2009/02/20/html-tutorial-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1bf23df7ffb558335580f41df1b6e8a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">febyartandi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
