<?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>Lacrimas Blog</title>
	<atom:link href="http://lacrimastudio.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lacrimastudio.com</link>
	<description>Keep your mind away...</description>
	<lastBuildDate>Wed, 07 Dec 2011 16:23:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Time to execute PHP</title>
		<link>http://lacrimastudio.com/2011/12/time-to-execute-php/</link>
		<comments>http://lacrimastudio.com/2011/12/time-to-execute-php/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 16:17:59 +0000</pubDate>
		<dc:creator>Lacrimas</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[execute]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://lacrimastudio.com/?p=29</guid>
		<description><![CDATA[Hello, today we will talk how to measure executing time of PHP code. First of all we need to understand what is this. Time to execute is End Seconds - Start seconds. Lets catch start time: now we gonna catch start, end time and calculate them. On base of this script you can test your [...]]]></description>
			<content:encoded><![CDATA[<p>Hello, today we will talk how to measure executing time of PHP code.<br />
First of all we need to understand what is this. Time to execute is End Seconds - Start seconds.<br />
Lets catch start time:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
function getTime() {
  $a = explode (' ',microtime());
  return(double) $a[0] + $a[1];
}
?&gt;</pre>
<p>now we gonna catch start, end time and calculate them.</p>
<pre class="brush: php; title: ; notranslate">function CalcTime($stime,$ftime){
  echo &quot;Time to execute: &quot;.number_format(($ftime - $stime),2).&quot; sec.&quot;;
}
$startTime = getTime();
//Do something here...
$endTime = getTime();
CalcTime($startTime,$endTime);</pre>
<p>On base of this script you can test your script and choose the best way to program something.</p>
]]></content:encoded>
			<wfw:commentRss>http://lacrimastudio.com/2011/12/time-to-execute-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking proxy list in bash</title>
		<link>http://lacrimastudio.com/2011/06/checking-proxy-list-in-bash/</link>
		<comments>http://lacrimastudio.com/2011/06/checking-proxy-list-in-bash/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 18:43:17 +0000</pubDate>
		<dc:creator>Lacrimas</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[proxylist]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://lacrimastudio.com/?p=26</guid>
		<description><![CDATA[Hello again! Now i will tell you how to check proxy list with bash script and curl. First of all we need to make some page somewhere with content "proxyok" (you can use some free hosting for example), and you should have some proxy list file where every proxy is on a new row and [...]]]></description>
			<content:encoded><![CDATA[<p>Hello again!<br />
Now i will tell you how to check proxy list with bash script and curl.<br />
First of all we need to make some page somewhere with content "proxyok" (you can use some free hosting for example), and you should have some proxy list file where every proxy is on a new row and format is host:port.</p>
<p>Now lets begin.</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
x=0
while [ $x -lt $(cat proxylist.txt | wc -l) ]
do
  let x=x+1
  PROXY=`head -n $x proxylist.txt | tail -n 1`
  echo &quot;Checking proxy $PROXY, number $x&quot;
  CONTENT=`curl &quot;http://www.testurl.com/page.html&quot; --proxy &quot;$PROXY&quot; --silent --compressed --progress-bar`
  if [ &quot;$CONTENT&quot; == &quot;proxyok&quot; ]
  then
    echo &quot;proxy is ok!&quot;
    echo $PROXY &gt;&gt; activeproxy.txt
  else
    echo &quot;proxy is DOWN!&quot;
  fi
done
</pre>
<p>Now change "http://www.testurl.com/page.html" with your URL and proxylist.txt to your proxy list.</p>
]]></content:encoded>
			<wfw:commentRss>http://lacrimastudio.com/2011/06/checking-proxy-list-in-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix commands</title>
		<link>http://lacrimastudio.com/2011/06/unix-commands/</link>
		<comments>http://lacrimastudio.com/2011/06/unix-commands/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 17:34:19 +0000</pubDate>
		<dc:creator>Lacrimas</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[toolbox]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://lacrimastudio.com/?p=22</guid>
		<description><![CDATA[Here we can found some explanations of Unix commands and some Bash examples: http://cb.vu/unixtoolbox.xhtml]]></description>
			<content:encoded><![CDATA[<p>Here we can found some explanations of Unix commands and some Bash examples: <a href="http://cb.vu/unixtoolbox.xhtml">http://cb.vu/unixtoolbox.xhtml</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lacrimastudio.com/2011/06/unix-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Checking for Internet connection on Android</title>
		<link>http://lacrimastudio.com/2011/05/checking-for-internet-connection-on-android/</link>
		<comments>http://lacrimastudio.com/2011/05/checking-for-internet-connection-on-android/#comments</comments>
		<pubDate>Tue, 31 May 2011 10:13:14 +0000</pubDate>
		<dc:creator>Lacrimas</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://lacrimastudio.com/?p=15</guid>
		<description><![CDATA[Here is simple example for internet connection check on Android devices:]]></description>
			<content:encoded><![CDATA[<p>Here is simple example for internet connection check on Android devices:</p>
<pre class="brush: java; title: ; notranslate">
	private boolean checkInternetConnection() {
		ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
		// test for connection
		if (cm.getActiveNetworkInfo() != null
				&amp;&amp; cm.getActiveNetworkInfo().isAvailable()
				&amp;&amp; cm.getActiveNetworkInfo().isConnected()) {
			return true;
		} else {
			return false;
		}
	}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://lacrimastudio.com/2011/05/checking-for-internet-connection-on-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Manufacturer on Android Device</title>
		<link>http://lacrimastudio.com/2011/05/getting-manufacturer-on-android-device/</link>
		<comments>http://lacrimastudio.com/2011/05/getting-manufacturer-on-android-device/#comments</comments>
		<pubDate>Tue, 31 May 2011 08:44:25 +0000</pubDate>
		<dc:creator>Lacrimas</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[android 1.5]]></category>
		<category><![CDATA[manufacturer]]></category>

		<guid isPermaLink="false">http://lacrimastudio.com/?p=9</guid>
		<description><![CDATA[It was hard to investigate the problem with version 1.5 and Build Manufacturer, and here is the solution: Now we will catch Exception without Unexpected Error in Runtime.]]></description>
			<content:encoded><![CDATA[<p>It was hard to investigate the problem with version 1.5 and Build Manufacturer, and here is the solution:</p>
<pre class="brush: java; title: ; notranslate">	public String GetManufacturer(){
		try {
			return android.os.Build.class.getField(&quot;MANUFACTURER&quot;).get(null).toString();
		} catch (Exception e) {
			return &quot;undefined&quot;;
		}
	}</pre>
<p>Now we will catch Exception without Unexpected Error in Runtime.</p>
]]></content:encoded>
			<wfw:commentRss>http://lacrimastudio.com/2011/05/getting-manufacturer-on-android-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lua For IntelliJ IDEA</title>
		<link>http://lacrimastudio.com/2011/05/lua-for-intellij-idea/</link>
		<comments>http://lacrimastudio.com/2011/05/lua-for-intellij-idea/#comments</comments>
		<pubDate>Tue, 31 May 2011 08:26:37 +0000</pubDate>
		<dc:creator>Lacrimas</dc:creator>
				<category><![CDATA[IDE]]></category>
		<category><![CDATA[lua]]></category>
		<category><![CDATA[IDEA]]></category>
		<category><![CDATA[IntelliJ]]></category>
		<category><![CDATA[sylvanaar]]></category>

		<guid isPermaLink="false">http://lacrimastudio.com/?p=5</guid>
		<description><![CDATA[Here is very interesting API for IntelliJ IDEA which supports Lua. You can found it on: https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Home Special thanks to Sylvanaar.]]></description>
			<content:encoded><![CDATA[<p>Here is very interesting API for IntelliJ IDEA which supports Lua.</p>
<p><img class="alignnone" title="Lua for IntelliJ IDEA" src="https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/idlua001.jpg" alt="Lua for IntelliJ IDEA" width="361" height="254" /></p>
<p>You can found it on: <a href="https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Home">https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Home</a></p>
<p>Special thanks to Sylvanaar.</p>
]]></content:encoded>
			<wfw:commentRss>http://lacrimastudio.com/2011/05/lua-for-intellij-idea/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

