<?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/"
	>

<channel>
	<title>web meditation</title>
	<atom:link href="http://oleg40a.in.ua/feed" rel="self" type="application/rss+xml" />
	<link>http://oleg40a.in.ua</link>
	<description>beautiful inside</description>
	<lastBuildDate>Sun, 12 Feb 2012 15:26:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hibernate mode in Windows 7</title>
		<link>http://oleg40a.in.ua/2012/01/hibernate-mode-in-windows-7.html</link>
		<comments>http://oleg40a.in.ua/2012/01/hibernate-mode-in-windows-7.html#comments</comments>
		<pubDate>Wed, 18 Jan 2012 07:51:24 +0000</pubDate>
		<dc:creator>Oleg Soroka</dc:creator>
				<category><![CDATA[Новости]]></category>

		<guid isPermaLink="false">http://oleg40a.in.ua/?p=310</guid>
		<description><![CDATA[To turn on hibernate mode in Windows 7, use command powercfg /h on]]></description>
			<content:encoded><![CDATA[<p>To turn on hibernate mode in Windows 7, use command</p>
<p><code>powercfg /h on</code></p>
]]></content:encoded>
			<wfw:commentRss>http://oleg40a.in.ua/2012/01/hibernate-mode-in-windows-7.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP proxy for cross-domain ajax</title>
		<link>http://oleg40a.in.ua/2011/12/php-proxy-for-cross-domain-ajax.html</link>
		<comments>http://oleg40a.in.ua/2011/12/php-proxy-for-cross-domain-ajax.html#comments</comments>
		<pubDate>Tue, 27 Dec 2011 20:57:57 +0000</pubDate>
		<dc:creator>Oleg Soroka</dc:creator>
				<category><![CDATA[Hints]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://oleg40a.in.ua/?p=299</guid>
		<description><![CDATA[Some time ago I&#8217;ve been faced with issue when i should been send REST requests from javascript to another domain. It was connected with REST API of some web service. I&#8217;ve been forced to use PHP proxy. And I want to share my proxy.php Features sends POST request sends GET request sends DELETE request returns [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I&#8217;ve been faced with issue when i should been send REST requests from javascript to another domain. It was connected with REST API of some web service.</p>
<p>I&#8217;ve been forced to use PHP proxy. And I want to share my proxy.php</p>
<p>Features</p>
<ul>
<li>sends POST request</li>
<li>sends GET request</li>
<li>sends DELETE request</li>
<li>returns statys from page header</li>
</ul>
<p>Using</p>
<pre class="brush: xml; title: ; notranslate">
proxy.php?type={GET|DELETE}&amp;url={website_url}
proxy.php?type=POST&amp;url={website_url}&amp;data={data}
</pre>
<p><span id="more-299"></span></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$type = 'GET';
$url = '';
$data = '';

if (isset($_GET['type'])) {
	$type = $_GET['type'];
}

if (isset($_GET['url'])) {
	$url = $_GET['url'];
}

if (isset($_GET['url'])) {
	$data = $_GET['data'];
}

switch ($type) {
    case 'GET':
        GETRequest($url);
        break;
    case 'POST':
        POSTRequest($url, $data);
        break;
    case 'DELETE':
        DELETERequest($url);
        break;
}

function GETRequest($url) {
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	// curl_setopt($ch, CURLOPT_HEADER, false); FIXME
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	$result = curl_exec($ch);
	$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
	header(&quot;HTTP/1.0 $status&quot;);
	curl_close($ch);
	echo $result;	

//	$content = @file_get_contents($url);
//	echo $content;
}

function POSTRequest($url, $data) {
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_POST, strlen($data));
	curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	$result = curl_exec($ch);
	$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
	header(&quot;HTTP/1.0 $status&quot;);
	curl_close ($ch);
	echo $result;
}

function DELETEequest($url) {
	$ch = curl_init();
	curl_setopt ($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_CUSTOMREQUEST, &quot;DELETE&quot;);
	$result = curl_exec($ch);
	curl_close ($ch);
	echo $result;
}
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oleg40a.in.ua/2011/12/php-proxy-for-cross-domain-ajax.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HMAC-SHA1 on javascript</title>
		<link>http://oleg40a.in.ua/2011/12/hmac-sha1-on-javascript.html</link>
		<comments>http://oleg40a.in.ua/2011/12/hmac-sha1-on-javascript.html#comments</comments>
		<pubDate>Mon, 26 Dec 2011 11:15:00 +0000</pubDate>
		<dc:creator>Oleg Soroka</dc:creator>
				<category><![CDATA[Hints]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://oleg40a.in.ua/?p=297</guid>
		<description><![CDATA[If you need implement of HMAC-SHA1 on javascript, use crypto-js lib.]]></description>
			<content:encoded><![CDATA[<p>If you need implement of <a href="http://ru.wikipedia.org/wiki/HMAC">HMAC-SHA1</a> on javascript, use <a href="http://code.google.com/p/crypto-js/#HMAC-SHA1">crypto-js</a> lib.</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://crypto-js.googlecode.com/files/2.3.0-crypto-sha1-hmac.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

var hmac = Crypto.HMAC(Crypto.SHA1, &quot;Message&quot;, &quot;Secret Passphrase&quot;);

var hmacBytes = Crypto.HMAC(Crypto.SHA1, &quot;Message&quot;, &quot;Secret Passphrase&quot;, { asBytes: true });
var hmacString = Crypto.HMAC(Crypto.SHA1, &quot;Message&quot;, &quot;Secret Passphrase&quot;, { asString: true });

&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oleg40a.in.ua/2011/12/hmac-sha1-on-javascript.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get UNIX timestamp on Javascript</title>
		<link>http://oleg40a.in.ua/2011/12/how-to-get-unix-timestamp-on-javascript.html</link>
		<comments>http://oleg40a.in.ua/2011/12/how-to-get-unix-timestamp-on-javascript.html#comments</comments>
		<pubDate>Mon, 26 Dec 2011 10:38:19 +0000</pubDate>
		<dc:creator>Oleg Soroka</dc:creator>
				<category><![CDATA[Hints]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://oleg40a.in.ua/?p=294</guid>
		<description><![CDATA[You can check it through http://www.unixtimestamp.com/ service.]]></description>
			<content:encoded><![CDATA[<pre class="brush: jscript; title: ; notranslate">
var ts = Math.round((new Date()).getTime() / 1000);
console.log(ts);
</pre>
<p>You can check it through http://www.unixtimestamp.com/ service.</p>
]]></content:encoded>
			<wfw:commentRss>http://oleg40a.in.ua/2011/12/how-to-get-unix-timestamp-on-javascript.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Edit file in TextMate with F4 in muCommander on mac</title>
		<link>http://oleg40a.in.ua/2011/12/edit-file-in-textmate-with-f4-in-mucommander-on-mac.html</link>
		<comments>http://oleg40a.in.ua/2011/12/edit-file-in-textmate-with-f4-in-mucommander-on-mac.html#comments</comments>
		<pubDate>Sun, 25 Dec 2011 22:33:10 +0000</pubDate>
		<dc:creator>Oleg Soroka</dc:creator>
				<category><![CDATA[Hints]]></category>

		<guid isPermaLink="false">http://oleg40a.in.ua/?p=281</guid>
		<description><![CDATA[If you want to edit file in muCommander with F4 on mac, you should 1. create link to TextMate ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate 2. go to /Users/{user_name}/Library/Preferences/muCommander/commands.xml 3. and edit or create file There ara some commands that can be useful fo you &#8212; http://trac.mucommander.com/wiki/CommandsXml]]></description>
			<content:encoded><![CDATA[<p>If you want to edit file in muCommander with F4 on mac, you should</p>
<p>1. create link to TextMate</p>
<p><code>ln -s /Applications/TextMate.app/Contents/Resources/mate ~/bin/mate</code></p>
<p>2. go to </p>
<p><code>/Users/{user_name}/Library/Preferences/muCommander/commands.xml</code></p>
<p>3. and edit or create file</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;commands&gt;
    &lt;command alias=&quot;edit&quot; type=&quot;system&quot; value=&quot;mate $f&quot;/&gt;
&lt;/commands&gt;
</pre>
<p>There ara some commands that can be useful fo you &#8212; <a href="http://trac.mucommander.com/wiki/CommandsXml">http://trac.mucommander.com/wiki/CommandsXml</a></p>
]]></content:encoded>
			<wfw:commentRss>http://oleg40a.in.ua/2011/12/edit-file-in-textmate-with-f4-in-mucommander-on-mac.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android: ImageView пересекающий границы родительского слоя</title>
		<link>http://oleg40a.in.ua/2011/03/android-imageview-peresekayushhij-granicy-roditelskogo-sloya.html</link>
		<comments>http://oleg40a.in.ua/2011/03/android-imageview-peresekayushhij-granicy-roditelskogo-sloya.html#comments</comments>
		<pubDate>Tue, 01 Mar 2011 19:32:16 +0000</pubDate>
		<dc:creator>Oleg Soroka</dc:creator>
				<category><![CDATA[Новости]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[imageView]]></category>
		<category><![CDATA[scaleType]]></category>

		<guid isPermaLink="false">http://oleg40a.in.ua/?p=184</guid>
		<description><![CDATA[Столкнулся с проблемой, когда мое изображение ImageView находящееся визуально у правого края дисплея внезапно исказилось, стало выглядеть не так, как я ожидал. Оказалось, что его правый край пересекает правую границу родительского контейнера. В таком случае, отрисовка изображения происходит с учетом установленного ScaleType (Options for scaling the bounds of an image to the bounds of this [...]]]></description>
			<content:encoded><![CDATA[<p>Столкнулся с проблемой, когда мое изображение <code>ImageView</code> находящееся визуально у правого края дисплея внезапно исказилось, стало выглядеть не так, как я ожидал. Оказалось, что его правый край пересекает правую границу родительского контейнера. В таком случае, отрисовка изображения происходит с учетом установленного <code><a href="http://developer.android.com/reference/android/widget/ImageView.ScaleType.html">ScaleType</a></code> (<em>Options for scaling the bounds of an image to the bounds of this view</em>).<span id="more-184"></span></p>
<p>Изображение в левом верхнем углу контейнера. Нормальная отрисовка.</p>
<p><a href="http://oleg40a.in.ua/wp-content/uploads/2011/03/scaleType1.jpg"><img class="alignnone size-medium wp-image-185" title="scaleType1" src="http://oleg40a.in.ua/wp-content/uploads/2011/03/scaleType1-223x300.jpg" alt="" width="223" height="300" /></a></p>
<p><a href="http://oleg40a.in.ua/wp-content/uploads/2011/03/scaleType1.jpg"></a></p>
<p>Изображение, сдвинутое таким образом, чтобы его правый край пересекал границу контейнера и поведение отрисовки по-умолчанию.</p>
<p><a href="http://oleg40a.in.ua/wp-content/uploads/2011/03/scaleType3.jpg"><img title="scaleType3" src="http://oleg40a.in.ua/wp-content/uploads/2011/03/scaleType3-223x300.jpg" alt="" width="223" height="300" /></a></p>
<p><a href="http://oleg40a.in.ua/wp-content/uploads/2011/03/scaleType3.jpg"></a></p>
<p><code>ScaleType</code> установленный в значение <code>MATRIX</code> (желаемое поведение).</p>
<p><a href="http://oleg40a.in.ua/wp-content/uploads/2011/03/scaleType2.jpg"><img class="alignnone size-medium wp-image-186" title="scaleType2" src="http://oleg40a.in.ua/wp-content/uploads/2011/03/scaleType2-223x300.jpg" alt="" width="223" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://oleg40a.in.ua/2011/03/android-imageview-peresekayushhij-granicy-roditelskogo-sloya.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android: Sprite (frame by frame) animation running from onCreate method</title>
		<link>http://oleg40a.in.ua/2011/02/android-sprite-frame-by-frame-animation-running-from-oncreate-method.html</link>
		<comments>http://oleg40a.in.ua/2011/02/android-sprite-frame-by-frame-animation-running-from-oncreate-method.html#comments</comments>
		<pubDate>Wed, 23 Feb 2011 11:19:00 +0000</pubDate>
		<dc:creator>Oleg Soroka</dc:creator>
				<category><![CDATA[Новости]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[animation]]></category>

		<guid isPermaLink="false">http://oleg40a.in.ua/?p=160</guid>
		<description><![CDATA[Возможно, вы сталкивались с проблемой, когда анимация не запускается сразу при запуске приложения (когда мы пытаемся вызвать ее из метода onCreate текущей Activity). Решением проблемы является запуск анимации в отельном потоке. Создаем File → New → Android Project в Eclipse. В папку drawable кладем кадры анимации. В папке anim создаем xml файл анимации walking_hero.xml Не забудьте [...]]]></description>
			<content:encoded><![CDATA[<p>Возможно, вы сталкивались с проблемой, когда анимация не запускается сразу при запуске приложения (когда мы пытаемся вызвать ее из метода <code>onCreate</code> текущей <code>Activity</code>).</p>
<p>Решением проблемы является запуск анимации в отельном потоке.<span id="more-160"></span></p>
<p>Создаем File → New → Android Project в Eclipse.</p>
<ul>
<li>В папку <code>drawable</code> кладем кадры анимации.</li>
<li>В папке <code>anim</code> создаем xml файл анимации <code>walking_hero.xml</code></li>
</ul>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;animation-list xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    android:oneshot=&quot;false&quot;&gt;

    &lt;item android:drawable=&quot;@drawable/hero1&quot; android:duration=&quot;300&quot; /&gt;
    &lt;item android:drawable=&quot;@drawable/hero2&quot; android:duration=&quot;300&quot; /&gt;
    &lt;item android:drawable=&quot;@drawable/hero3&quot; android:duration=&quot;300&quot; /&gt;
    &lt;item android:drawable=&quot;@drawable/hero4&quot; android:duration=&quot;300&quot; /&gt;
    &lt;item android:drawable=&quot;@drawable/hero5&quot; android:duration=&quot;300&quot; /&gt;
    &lt;item android:drawable=&quot;@drawable/hero6&quot; android:duration=&quot;300&quot; /&gt;
    &lt;item android:drawable=&quot;@drawable/hero7&quot; android:duration=&quot;300&quot; /&gt;
    &lt;item android:drawable=&quot;@drawable/hero8&quot; android:duration=&quot;300&quot; /&gt;
    &lt;item android:drawable=&quot;@drawable/hero9&quot; android:duration=&quot;300&quot; /&gt;

&lt;/animation-list&gt;
</pre>
<p>Не забудьте установить параметр <code>android:oneshot</code> в <code>false</code> для непрерывного повторения цикла смены изображений.</p>
<p>Содержимое <code>layout\main.xml</code></p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    android:orientation=&quot;vertical&quot;
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;fill_parent&quot;
    &gt;
    &lt;ImageView android:layout_height=&quot;100dip&quot; android:layout_width=&quot;49dip&quot; android:layout_marginLeft=&quot;135dip&quot; android:layout_marginTop=&quot;150dip&quot; android:src=&quot;@anim/walking_hero&quot; android:id=&quot;@+id/imageHero&quot;&gt;&lt;/ImageView&gt;
&lt;/LinearLayout&gt;
</pre>
<p>Затем, для запуска анимации из метода <code>onCreate</code> извлекаем по идентификатору объект изображения</p>
<p><code>ImageView imageHero = (ImageView)findViewById(R.id.imageHero);</code></p>
<p>получаем объект анимации с помощью метода <code>getDrawable()</code>, а затем с помощью метода <code><a href="http://developer.android.com/reference/android/view/View.html#post(java.lang.Runnable)">post</a></code> объекта изображения добавляем в очередь сообщений вызов отдельного потока, который запускает показ анимации.</p>
<p>Класс <code>MyAnimation</code></p>
<pre class="brush: java; title: ; notranslate">
package com.test;

import android.app.Activity;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.widget.ImageView;

public class MyAnimation extends Activity {
	AnimationDrawable walkingAnimation;

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        ImageView imageHero = (ImageView)findViewById(R.id.imageHero);
        walkingAnimation = (AnimationDrawable)imageHero.getDrawable();
	imageHero.post(new Runner());
    }

    class Runner implements Runnable {
        public void run() {
        	walkingAnimation.start();
        }
    }
}
</pre>
<p><a href="http://oleg40a.in.ua/wp-content/uploads/2011/02/walking-hero.png"><img src="http://oleg40a.in.ua/wp-content/uploads/2011/02/walking-hero-203x300.png" alt="" title="walking-hero" width="203" height="300" class="alignnone size-medium wp-image-179" /></a></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/wq1UGy3wB5U?hl=ru&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/wq1UGy3wB5U?hl=ru&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>Исходный код приложения — <a href="http://oleg40a.in.ua/wp-content/uploads/2011/02/MyAnimation.zip">MyAnimation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://oleg40a.in.ua/2011/02/android-sprite-frame-by-frame-animation-running-from-oncreate-method.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android fullscreen layout</title>
		<link>http://oleg40a.in.ua/2011/02/android-fullscreen-layout.html</link>
		<comments>http://oleg40a.in.ua/2011/02/android-fullscreen-layout.html#comments</comments>
		<pubDate>Tue, 22 Feb 2011 12:25:30 +0000</pubDate>
		<dc:creator>Oleg Soroka</dc:creator>
				<category><![CDATA[Новости]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://oleg40a.in.ua/?p=154</guid>
		<description><![CDATA[Add flag WindowManager.LayoutParams.FLAG_FULLSCREEN to android.view.Window. or use]]></description>
			<content:encoded><![CDATA[<p>Add flag <code>WindowManager.LayoutParams.FLAG_FULLSCREEN</code> to <code>android.view.Window</code>.<span id="more-154"></span></p>
<pre class="brush: java; title: ; notranslate">
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);

	requestWindowFeature(Window.FEATURE_NO_TITLE);
	getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
			WindowManager.LayoutParams.FLAG_FULLSCREEN);

	setContentView(R.layout.main);
}
</pre>
<p>or use </p>
<pre class="brush: xml; title: ; notranslate">
&lt;activity ... android:theme=&quot;@android:style/Theme.NoTitleBar.Fullscreen&quot;&gt;&lt;/activity&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oleg40a.in.ua/2011/02/android-fullscreen-layout.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Android proj from existing source</title>
		<link>http://oleg40a.in.ua/2011/02/creating-android-proj-from-existing-resource.html</link>
		<comments>http://oleg40a.in.ua/2011/02/creating-android-proj-from-existing-resource.html#comments</comments>
		<pubDate>Tue, 22 Feb 2011 10:49:43 +0000</pubDate>
		<dc:creator>Oleg Soroka</dc:creator>
				<category><![CDATA[Новости]]></category>
		<category><![CDATA[adnroid]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://oleg40a.in.ua/?p=147</guid>
		<description><![CDATA[If you faced with &#8220;Invalid project description&#8221; error when trying to crete project from existing source, you should create new folder in your workspace directory put your existing project into created folder create new Android proj from existing source once more.]]></description>
			<content:encoded><![CDATA[<p>If you faced with &#8220;Invalid project description&#8221; error when trying to crete project from existing source, you should</p>
<ul>
<li>create new folder in your workspace directory</li>
<li>put your existing project into created folder</li>
<li>create new Android proj from existing source once more.</li>
</ul>
<p><span id="more-147"></span><a href="http://oleg40a.in.ua/wp-content/uploads/2011/02/Invalid-project-description.png"><img class="alignnone size-full wp-image-148" title="Invalid project description" src="http://oleg40a.in.ua/wp-content/uploads/2011/02/Invalid-project-description.png" alt="" width="300" height="183" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://oleg40a.in.ua/2011/02/creating-android-proj-from-existing-resource.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple way to get Twitter entries with AJAX</title>
		<link>http://oleg40a.in.ua/2011/02/simple-way-to-get-twitter-entries-with-ajax.html</link>
		<comments>http://oleg40a.in.ua/2011/02/simple-way-to-get-twitter-entries-with-ajax.html#comments</comments>
		<pubDate>Sat, 19 Feb 2011 12:11:14 +0000</pubDate>
		<dc:creator>Oleg Soroka</dc:creator>
				<category><![CDATA[Новости]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://oleg40a.in.ua/?p=130</guid>
		<description><![CDATA[There is simple way to get Twitter entries in JSON format with AJAX in few minutes. You should just get JSON data with following URL http://twitter.com/status/user_timeline/YOUR_ACCOUNT_NAME.json?count=5&#038;callback=? Where count parameter sets amount of retrieving entries.]]></description>
			<content:encoded><![CDATA[<p>There is simple way to get Twitter entries in JSON format with AJAX in few minutes.<span id="more-130"></span></p>
<p>You should just get JSON data with following URL</p>
<p><code>http://twitter.com/status/user_timeline/YOUR_ACCOUNT_NAME.json?count=5&#038;callback=?</code></p>
<p>Where <code>count</code> parameter sets amount of retrieving entries.</p>
<pre class="brush: jscript; title: ; notranslate">
function loadTwits() {
	$.ajax({
		type: &quot;GET&quot;,
		dataType: 'json',
		url: &quot;http://twitter.com/status/user_timeline/flogrimm.json?&quot;
		+ &quot;count=5&amp;callback=?&quot;,
		success: function(msg) {
			$(msg).each(function(i, v) {
				$('#twitter').append('&lt;li&gt;' + v.text + '&lt;/li&gt;');
			});
		}
	});
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oleg40a.in.ua/2011/02/simple-way-to-get-twitter-entries-with-ajax.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

