<?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>Konstantinos Polychronis</title>
	<atom:link href="http://www.kospol.gr/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kospol.gr</link>
	<description>Κωνσταντίνος Πολυχρόνης</description>
	<lastBuildDate>Tue, 15 May 2012 09:02:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Android Development Course @ coLab!</title>
		<link>http://www.kospol.gr/848/android-development-course-colab/</link>
		<comments>http://www.kospol.gr/848/android-development-course-colab/#comments</comments>
		<pubDate>Fri, 11 May 2012 18:17:36 +0000</pubDate>
		<dc:creator>Konstantinos Polychronis</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.kospol.gr/?p=848</guid>
		<description><![CDATA[Hello there! In collaboration with coLab, we organized a Android Development Course! You can check for details here. Get your ticket now, there are some discounted “Early Bird“ tickets available! coLab in collaboration with PinApps.com, AndroidGreece.gr, GreekAndroidApps.gr and AllinOneTraining.grpresents “Android Development 101″ a four week intensive training course offering the skills necessary for professional development of Android applications. Android  is [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://colabworkspace.com/wp-content/uploads/2012/05/cat.gif" alt="" /></p>
<p>Hello there!<br />
In collaboration with coLab, we organized a Android Development Course!</p>
<p>You can check for details <a href="http://colabworkspace.com/android-application-development/">here</a>.</p>
<p>Get your ticket now, there are some discounted “Early Bird“ tickets available!</p>
<blockquote><p>coLab in collaboration with <strong><a href="http://www.pinapps.com/">PinApps.com</a>,<br />
<a href="http://www.androidgreece.gr/">AndroidGreece.gr</a>, <a href="http://www.greekandroidapps.gr/">GreekAndroidApps.gr</a> </strong>and<strong> <a href="http://www.allinonetraining.gr/">AllinOneTraining.gr</a></strong>presents “Android Development 101″ a four week intensive training course offering the skills necessary for professional development of Android applications.</p>
<p>Android  is the leading platform for smartphone and tablet products around the world.  This  course introduces you to development for the Android OS, allowing you to create applications that can run on millions on mobile devices.</p>
<p>This course begins on June 4 and will comprise 2 x 3hr sessions per week for 4 weeks. Participants will have access to online material and video content as well as written notes and practical exercises.</p>
<p><strong>Seats are limited so get your tickets now.</strong></p>
<p><strong>There are discounted “Early Bird“ tickets available.</strong></p>
<p>All attendees get a free copy of “<strong>Programming Android, Java Programming for the New Generation of Mobile Devices</strong>, By Zigurd Mednieks, Laird Dornin, G. Blake Meike, Masumi Nakamura as well as a disount coupon for all O’Reilly books.</p>
<p><strong>Course Objectives</strong></p>
<p>Upon completion of this course based on a real development sample project, students will be able to:</p>
<ul>
<li>Professionally use software development process in Android applications.</li>
<li>Professionally use APIs in Android SDK to develop applications.</li>
<li>Understanding about Mobile programming on other platforms (Windows Mobile, iPhone, Blackberry).</li>
<li>Understand about concept of a Design Pattern and how to apply it in Android application</li>
<li>Achieve essential soft skills for workplace: communication skill, presentation skill, work etiquette.</li>
</ul>
<div></div>
<p><strong>Prerequisite</strong></p>
<ul>
<li>Already have programming experience in any language or Java development experience is preferable.</li>
</ul>
<div></div>
<p><strong>Training methodolody</strong></p>
<ul>
<li>Each training session is a combination of lectures and hands-on lab exercises to provide the optimum learning experience.</li>
<li>A development sample project is assigned from the start of training course.</li>
<li>Trainees are provided necessary soft skill courses for professional working .</li>
<li>Actively trainees are required to investigate, refer to the references, documents before class.</li>
</ul>
<div></div>
<div><strong>Course outline</strong></div>
<p><strong>1. Basic software engineering</strong></p>
<ul>
<li>Requirement</li>
<li>Design using UML: High Level Design, Detail Design, Test Plan &amp; Test Cases.</li>
<li>Implementation: Prepare for Implementation, Coding &amp; Unit Test, Integrate &amp; Integration Test.</li>
<li>Testing: Testing Process, Testing Phases, Blackbox Testing Techniques Overview.</li>
</ul>
<p><strong>2. Android Application Development</strong></p>
<ul>
<li>Android Overview ( platform architecture, versions, installation guide, …) and create application, application storage.</li>
<li>Android activity (Activity, Passing Data Between Views).</li>
<li>Android UI (Layout, Control, Intent, Event Listeners, Menu, List View, List Adapter).</li>
<li>Call Web Service &amp; data operation with SQLite database.</li>
<li>Using Thread in Android, Data Storage.</li>
<li>Map and Location Based Services, Market Store.</li>
<li>Design Pattern.</li>
<li>Overview about Mobile programming on other platforms (Windows Mobile, iPhone, Blackberry).</li>
</ul>
<p><strong>3. Soft skills</strong></p>
<ul>
<li>Communication skill, Presentation skill, Interview skill, Work etiquette.</li>
</ul>
<p><strong>4. Project assignment</strong></p>
<ul>
<li>Group discussion &amp; Project report.</li>
</ul>
<div>
<div>
<p><strong><a href="http://www.linkedin.com/in/konstantinospolychronis"><img title="konstantinos polychronis" src="http://colabworkspace.com/wp-content/uploads/2012/05/polychronis.jpg" alt="konstantinos polychronis" width="140" height="140" /></a>About the Trainer</strong>: <strong>Konstantinos Polychronis</strong><br />
[<a href="http://www.linkedin.com/in/konstantinospolychronis" target="_blank">LinkedIn Profile</a>]<br />
<em>Founder &amp; Chief Software Engineer at <a href="http://pinapps.com/" target="_blank">PinApps.com</a><br />
Head of Mobile at <a href="http://bugsense.com/" target="_blank">BugSense.com</a></em></p>
<p>Konstantinos is a graduate of the Network Systems and Data Communications of TEI of Messolonghi, department of Nafpaktos. With a long history in development, Konstantinos started programming in QBasic, Visual Basic, mIRC Scripting and then occupied himself with Windows Mobile development on his first PDA. His first professional contact with<br />
mobile device programming was at Intracom, while his first contact with Android was in 2007 for his diploma project. Konstantinos founded the Greek Android Community (AndroidGreece.gr) and built his first Android applications while was working at ByteMobile as Android software engineer.</p>
<p>Konstantinos also worked at BeeTech and ADDs and by the end of 2010, had his own mobile software development company <a href="http://colabworkspace.com/android-application-development/www.PinApps.com">PinApps.com</a> which he still runs now. Since the summer of 2011 he as also joined BugSense, a real time bug tracking service startup.</p>
<p>Konstantinos has presented at conferences and meetings such as DroidCon 2011(London), the 12th Infocom Conference,<br />
Athens Digital Week ’09 &amp; ’10, Fosscomm ’09 &amp; ’10 and has been applications judge at HTC’s Greek Android Developers challenge and has appeared in various media and websites with regard to his expertise.</p>
</div>
</div>
</blockquote>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.kospol.gr%2F848%2Fandroid-development-course-colab%2F&amp;linkname=Android%20Development%20Course%20%40%20coLab%21" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.kospol.gr%2F848%2Fandroid-development-course-colab%2F&amp;linkname=Android%20Development%20Course%20%40%20coLab%21" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.kospol.gr%2F848%2Fandroid-development-course-colab%2F&amp;linkname=Android%20Development%20Course%20%40%20coLab%21" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_button_friendfeed" href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fwww.kospol.gr%2F848%2Fandroid-development-course-colab%2F&amp;linkname=Android%20Development%20Course%20%40%20coLab%21" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F848%2Fandroid-development-course-colab%2F&amp;linkname=Android%20Development%20Course%20%40%20coLab%21" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_blogger_post" href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.kospol.gr%2F848%2Fandroid-development-course-colab%2F&amp;linkname=Android%20Development%20Course%20%40%20coLab%21" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a><a class="a2a_button_google_reader" href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.kospol.gr%2F848%2Fandroid-development-course-colab%2F&amp;linkname=Android%20Development%20Course%20%40%20coLab%21" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F848%2Fandroid-development-course-colab%2F&amp;linkname=Android%20Development%20Course%20%40%20coLab%21" title="Hotmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.kospol.gr%2F848%2Fandroid-development-course-colab%2F&amp;linkname=Android%20Development%20Course%20%40%20coLab%21" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kospol.gr%2F848%2Fandroid-development-course-colab%2F&amp;title=Android%20Development%20Course%20%40%20coLab%21" id="wpa2a_2"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kospol.gr/848/android-development-course-colab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It never gets easier&#8230;</title>
		<link>http://www.kospol.gr/834/it-never-gets-easier/</link>
		<comments>http://www.kospol.gr/834/it-never-gets-easier/#comments</comments>
		<pubDate>Sun, 08 Apr 2012 19:10:36 +0000</pubDate>
		<dc:creator>Konstantinos Polychronis</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Quotes]]></category>

		<guid isPermaLink="false">http://www.kospol.gr/?p=834</guid>
		<description><![CDATA[It never gets easier&#8230; You just get better.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kospol.gr/wp-content/uploads/2012/04/It-Never-Gets-Easier.-You-Just-Get-Better.jpg"><img src="http://www.kospol.gr/wp-content/uploads/2012/04/It-Never-Gets-Easier.-You-Just-Get-Better.jpg" alt="" title="It-Never-Gets-Easier.-You-Just-Get-Better" width="500" height="299" class="aligncenter size-full wp-image-835" /></a></p>
<p>It never gets easier&#8230; You just get better.</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.kospol.gr%2F834%2Fit-never-gets-easier%2F&amp;linkname=It%20never%20gets%20easier%E2%80%A6" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.kospol.gr%2F834%2Fit-never-gets-easier%2F&amp;linkname=It%20never%20gets%20easier%E2%80%A6" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.kospol.gr%2F834%2Fit-never-gets-easier%2F&amp;linkname=It%20never%20gets%20easier%E2%80%A6" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_button_friendfeed" href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fwww.kospol.gr%2F834%2Fit-never-gets-easier%2F&amp;linkname=It%20never%20gets%20easier%E2%80%A6" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F834%2Fit-never-gets-easier%2F&amp;linkname=It%20never%20gets%20easier%E2%80%A6" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_blogger_post" href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.kospol.gr%2F834%2Fit-never-gets-easier%2F&amp;linkname=It%20never%20gets%20easier%E2%80%A6" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a><a class="a2a_button_google_reader" href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.kospol.gr%2F834%2Fit-never-gets-easier%2F&amp;linkname=It%20never%20gets%20easier%E2%80%A6" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F834%2Fit-never-gets-easier%2F&amp;linkname=It%20never%20gets%20easier%E2%80%A6" title="Hotmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.kospol.gr%2F834%2Fit-never-gets-easier%2F&amp;linkname=It%20never%20gets%20easier%E2%80%A6" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kospol.gr%2F834%2Fit-never-gets-easier%2F&amp;title=It%20never%20gets%20easier%E2%80%A6" id="wpa2a_4"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kospol.gr/834/it-never-gets-easier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stacktrace or GTFO</title>
		<link>http://www.kospol.gr/830/stacktrace-or-gtfo/</link>
		<comments>http://www.kospol.gr/830/stacktrace-or-gtfo/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 22:35:34 +0000</pubDate>
		<dc:creator>Konstantinos Polychronis</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Quotes]]></category>

		<guid isPermaLink="false">http://www.kospol.gr/?p=830</guid>
		<description><![CDATA[lol]]></description>
			<content:encoded><![CDATA[<p><img src="http://i.imgur.com/jacoj.jpg" alt="" /></p>
<p>lol</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.kospol.gr%2F830%2Fstacktrace-or-gtfo%2F&amp;linkname=Stacktrace%20or%20GTFO" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.kospol.gr%2F830%2Fstacktrace-or-gtfo%2F&amp;linkname=Stacktrace%20or%20GTFO" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.kospol.gr%2F830%2Fstacktrace-or-gtfo%2F&amp;linkname=Stacktrace%20or%20GTFO" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_button_friendfeed" href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fwww.kospol.gr%2F830%2Fstacktrace-or-gtfo%2F&amp;linkname=Stacktrace%20or%20GTFO" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F830%2Fstacktrace-or-gtfo%2F&amp;linkname=Stacktrace%20or%20GTFO" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_blogger_post" href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.kospol.gr%2F830%2Fstacktrace-or-gtfo%2F&amp;linkname=Stacktrace%20or%20GTFO" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a><a class="a2a_button_google_reader" href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.kospol.gr%2F830%2Fstacktrace-or-gtfo%2F&amp;linkname=Stacktrace%20or%20GTFO" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F830%2Fstacktrace-or-gtfo%2F&amp;linkname=Stacktrace%20or%20GTFO" title="Hotmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.kospol.gr%2F830%2Fstacktrace-or-gtfo%2F&amp;linkname=Stacktrace%20or%20GTFO" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kospol.gr%2F830%2Fstacktrace-or-gtfo%2F&amp;title=Stacktrace%20or%20GTFO" id="wpa2a_6"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kospol.gr/830/stacktrace-or-gtfo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy the content of an input stream to an output stream</title>
		<link>http://www.kospol.gr/818/copy-the-content-of-an-input-stream-to-an-output-stream/</link>
		<comments>http://www.kospol.gr/818/copy-the-content-of-an-input-stream-to-an-output-stream/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 21:49:05 +0000</pubDate>
		<dc:creator>Konstantinos Polychronis</dc:creator>
				<category><![CDATA[Android Code Tips]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[InputStream]]></category>
		<category><![CDATA[OutputStream]]></category>

		<guid isPermaLink="false">http://www.kospol.gr/?p=818</guid>
		<description><![CDATA[How to copy the content of an input stream to an output stream]]></description>
			<content:encoded><![CDATA[<p>How to copy the content of an input stream to an output stream</p>
<pre class="brush: java; title: ; wrap-lines: false; notranslate">
/**
* Copy the content of the input stream into the output stream, using a temporary
* byte array buffer whose size is defined by {@link #IO_BUFFER_SIZE}.
*
* @param in The input stream to copy from.
* @param out The output stream to copy to.
*
* @throws IOException If any error occurs during the copy.
*/
private static final int IO_BUFFER_SIZE = 4 * 1024;

private static void copy(InputStream in, OutputStream out) throws IOException {
   byte[] b = new byte[IO_BUFFER_SIZE];
   int read;
   while ((read = in.read(b)) != -1) {
      out.write(b, 0, read);
   }
}
</pre>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.kospol.gr%2F818%2Fcopy-the-content-of-an-input-stream-to-an-output-stream%2F&amp;linkname=Copy%20the%20content%20of%20an%20input%20stream%20to%20an%20output%20stream" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.kospol.gr%2F818%2Fcopy-the-content-of-an-input-stream-to-an-output-stream%2F&amp;linkname=Copy%20the%20content%20of%20an%20input%20stream%20to%20an%20output%20stream" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.kospol.gr%2F818%2Fcopy-the-content-of-an-input-stream-to-an-output-stream%2F&amp;linkname=Copy%20the%20content%20of%20an%20input%20stream%20to%20an%20output%20stream" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_button_friendfeed" href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fwww.kospol.gr%2F818%2Fcopy-the-content-of-an-input-stream-to-an-output-stream%2F&amp;linkname=Copy%20the%20content%20of%20an%20input%20stream%20to%20an%20output%20stream" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F818%2Fcopy-the-content-of-an-input-stream-to-an-output-stream%2F&amp;linkname=Copy%20the%20content%20of%20an%20input%20stream%20to%20an%20output%20stream" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_blogger_post" href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.kospol.gr%2F818%2Fcopy-the-content-of-an-input-stream-to-an-output-stream%2F&amp;linkname=Copy%20the%20content%20of%20an%20input%20stream%20to%20an%20output%20stream" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a><a class="a2a_button_google_reader" href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.kospol.gr%2F818%2Fcopy-the-content-of-an-input-stream-to-an-output-stream%2F&amp;linkname=Copy%20the%20content%20of%20an%20input%20stream%20to%20an%20output%20stream" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F818%2Fcopy-the-content-of-an-input-stream-to-an-output-stream%2F&amp;linkname=Copy%20the%20content%20of%20an%20input%20stream%20to%20an%20output%20stream" title="Hotmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.kospol.gr%2F818%2Fcopy-the-content-of-an-input-stream-to-an-output-stream%2F&amp;linkname=Copy%20the%20content%20of%20an%20input%20stream%20to%20an%20output%20stream" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kospol.gr%2F818%2Fcopy-the-content-of-an-input-stream-to-an-output-stream%2F&amp;title=Copy%20the%20content%20of%20an%20input%20stream%20to%20an%20output%20stream" id="wpa2a_8"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kospol.gr/818/copy-the-content-of-an-input-stream-to-an-output-stream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Closing streams like a boss</title>
		<link>http://www.kospol.gr/815/closing-streams-like-a-boss/</link>
		<comments>http://www.kospol.gr/815/closing-streams-like-a-boss/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 21:48:47 +0000</pubDate>
		<dc:creator>Konstantinos Polychronis</dc:creator>
				<category><![CDATA[Android Code Tips]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[InputStream]]></category>
		<category><![CDATA[OutputStream]]></category>

		<guid isPermaLink="false">http://www.kospol.gr/?p=815</guid>
		<description><![CDATA[This is one of my favorite tips and I also consider it a good practice. How to close any java input or output Stream.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.theadvocateweblog.com/wp-content/uploads/2012/01/swimming-like-a-boss.jpg" alt="" /></p>
<p>This is one of my favorite tips and I also consider it a good practice.<br />
How to close any java <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/io/InputStream.html">input</a> or <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/io/OutputStream.html">output</a> Stream.</p>
<pre class="brush: java; title: ; wrap-lines: false; notranslate">
/**
* Closes the specified stream.
*
* @param stream The stream to close.
*/
private static void closeStream(Closeable stream) {
if (stream != null) {
   try {
      stream.close();
   } catch (IOException e) {
   Log.e(&quot;IO&quot;, &quot;Could not close stream&quot;, e);
}
}
</pre>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.kospol.gr%2F815%2Fclosing-streams-like-a-boss%2F&amp;linkname=Closing%20streams%20like%20a%20boss" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.kospol.gr%2F815%2Fclosing-streams-like-a-boss%2F&amp;linkname=Closing%20streams%20like%20a%20boss" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.kospol.gr%2F815%2Fclosing-streams-like-a-boss%2F&amp;linkname=Closing%20streams%20like%20a%20boss" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_button_friendfeed" href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fwww.kospol.gr%2F815%2Fclosing-streams-like-a-boss%2F&amp;linkname=Closing%20streams%20like%20a%20boss" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F815%2Fclosing-streams-like-a-boss%2F&amp;linkname=Closing%20streams%20like%20a%20boss" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_blogger_post" href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.kospol.gr%2F815%2Fclosing-streams-like-a-boss%2F&amp;linkname=Closing%20streams%20like%20a%20boss" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a><a class="a2a_button_google_reader" href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.kospol.gr%2F815%2Fclosing-streams-like-a-boss%2F&amp;linkname=Closing%20streams%20like%20a%20boss" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F815%2Fclosing-streams-like-a-boss%2F&amp;linkname=Closing%20streams%20like%20a%20boss" title="Hotmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.kospol.gr%2F815%2Fclosing-streams-like-a-boss%2F&amp;linkname=Closing%20streams%20like%20a%20boss" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kospol.gr%2F815%2Fclosing-streams-like-a-boss%2F&amp;title=Closing%20streams%20like%20a%20boss" id="wpa2a_10"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kospol.gr/815/closing-streams-like-a-boss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Good things come to those who &#8230;</title>
		<link>http://www.kospol.gr/812/good-things-come-to-those-who/</link>
		<comments>http://www.kospol.gr/812/good-things-come-to-those-who/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 19:53:20 +0000</pubDate>
		<dc:creator>Konstantinos Polychronis</dc:creator>
				<category><![CDATA[Quotes]]></category>

		<guid isPermaLink="false">http://www.kospol.gr/?p=812</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><img src="http://29.media.tumblr.com/tumblr_m0jefyHoyj1qkegsbo1_500.jpg" alt="" /></p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.kospol.gr%2F812%2Fgood-things-come-to-those-who%2F&amp;linkname=Good%20things%20come%20to%20those%20who%20%E2%80%A6" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.kospol.gr%2F812%2Fgood-things-come-to-those-who%2F&amp;linkname=Good%20things%20come%20to%20those%20who%20%E2%80%A6" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.kospol.gr%2F812%2Fgood-things-come-to-those-who%2F&amp;linkname=Good%20things%20come%20to%20those%20who%20%E2%80%A6" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_button_friendfeed" href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fwww.kospol.gr%2F812%2Fgood-things-come-to-those-who%2F&amp;linkname=Good%20things%20come%20to%20those%20who%20%E2%80%A6" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F812%2Fgood-things-come-to-those-who%2F&amp;linkname=Good%20things%20come%20to%20those%20who%20%E2%80%A6" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_blogger_post" href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.kospol.gr%2F812%2Fgood-things-come-to-those-who%2F&amp;linkname=Good%20things%20come%20to%20those%20who%20%E2%80%A6" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a><a class="a2a_button_google_reader" href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.kospol.gr%2F812%2Fgood-things-come-to-those-who%2F&amp;linkname=Good%20things%20come%20to%20those%20who%20%E2%80%A6" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F812%2Fgood-things-come-to-those-who%2F&amp;linkname=Good%20things%20come%20to%20those%20who%20%E2%80%A6" title="Hotmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.kospol.gr%2F812%2Fgood-things-come-to-those-who%2F&amp;linkname=Good%20things%20come%20to%20those%20who%20%E2%80%A6" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kospol.gr%2F812%2Fgood-things-come-to-those-who%2F&amp;title=Good%20things%20come%20to%20those%20who%20%E2%80%A6" id="wpa2a_12"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kospol.gr/812/good-things-come-to-those-who/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Choose one</title>
		<link>http://www.kospol.gr/810/choose-one/</link>
		<comments>http://www.kospol.gr/810/choose-one/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 11:37:12 +0000</pubDate>
		<dc:creator>Konstantinos Polychronis</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Quotes]]></category>

		<guid isPermaLink="false">http://www.kospol.gr/?p=810</guid>
		<description><![CDATA[The price of being a sheep is boredom. The price of being a wolf is loneliness. Choose one or the other with great care.]]></description>
			<content:encoded><![CDATA[<blockquote><p>The price of being a sheep is boredom.<br />
The price of being a wolf is loneliness.<br />
Choose one or the other with great care.</p></blockquote>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.kospol.gr%2F810%2Fchoose-one%2F&amp;linkname=Choose%20one" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.kospol.gr%2F810%2Fchoose-one%2F&amp;linkname=Choose%20one" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.kospol.gr%2F810%2Fchoose-one%2F&amp;linkname=Choose%20one" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_button_friendfeed" href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fwww.kospol.gr%2F810%2Fchoose-one%2F&amp;linkname=Choose%20one" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F810%2Fchoose-one%2F&amp;linkname=Choose%20one" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_blogger_post" href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.kospol.gr%2F810%2Fchoose-one%2F&amp;linkname=Choose%20one" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a><a class="a2a_button_google_reader" href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.kospol.gr%2F810%2Fchoose-one%2F&amp;linkname=Choose%20one" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F810%2Fchoose-one%2F&amp;linkname=Choose%20one" title="Hotmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.kospol.gr%2F810%2Fchoose-one%2F&amp;linkname=Choose%20one" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kospol.gr%2F810%2Fchoose-one%2F&amp;title=Choose%20one" id="wpa2a_14"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kospol.gr/810/choose-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Old skills &#8211; Old love</title>
		<link>http://www.kospol.gr/805/old-skills-old-love/</link>
		<comments>http://www.kospol.gr/805/old-skills-old-love/#comments</comments>
		<pubDate>Sun, 04 Mar 2012 11:32:34 +0000</pubDate>
		<dc:creator>Konstantinos Polychronis</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://www.kospol.gr/?p=805</guid>
		<description><![CDATA[You never know when you will need your old skills ;)]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.kospol.gr/wp-content/uploads/2012/03/IMG_20120304_124526.jpg"><img src="http://www.kospol.gr/wp-content/uploads/2012/03/IMG_20120304_124526-1024x768.jpg" alt="" title="IMG_20120304_124526" width="585" height="438" class="aligncenter size-large wp-image-806" /></a></p>
<p>You never know when you will need your old skills ;)</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.kospol.gr%2F805%2Fold-skills-old-love%2F&amp;linkname=Old%20skills%20%E2%80%93%20Old%20love" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.kospol.gr%2F805%2Fold-skills-old-love%2F&amp;linkname=Old%20skills%20%E2%80%93%20Old%20love" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.kospol.gr%2F805%2Fold-skills-old-love%2F&amp;linkname=Old%20skills%20%E2%80%93%20Old%20love" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_button_friendfeed" href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fwww.kospol.gr%2F805%2Fold-skills-old-love%2F&amp;linkname=Old%20skills%20%E2%80%93%20Old%20love" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F805%2Fold-skills-old-love%2F&amp;linkname=Old%20skills%20%E2%80%93%20Old%20love" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_blogger_post" href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.kospol.gr%2F805%2Fold-skills-old-love%2F&amp;linkname=Old%20skills%20%E2%80%93%20Old%20love" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a><a class="a2a_button_google_reader" href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.kospol.gr%2F805%2Fold-skills-old-love%2F&amp;linkname=Old%20skills%20%E2%80%93%20Old%20love" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F805%2Fold-skills-old-love%2F&amp;linkname=Old%20skills%20%E2%80%93%20Old%20love" title="Hotmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.kospol.gr%2F805%2Fold-skills-old-love%2F&amp;linkname=Old%20skills%20%E2%80%93%20Old%20love" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kospol.gr%2F805%2Fold-skills-old-love%2F&amp;title=Old%20skills%20%E2%80%93%20Old%20love" id="wpa2a_16"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kospol.gr/805/old-skills-old-love/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ignore fields at Elastic Search</title>
		<link>http://www.kospol.gr/798/ignore-fields-at-elastic-search/</link>
		<comments>http://www.kospol.gr/798/ignore-fields-at-elastic-search/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 20:42:52 +0000</pubDate>
		<dc:creator>Konstantinos Polychronis</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[elastic search]]></category>
		<category><![CDATA[play framework]]></category>

		<guid isPermaLink="false">http://www.kospol.gr/?p=798</guid>
		<description><![CDATA[While I was developing with the Play framework and Elastic Search, I faced a really annoying problem. In my model I had a Date field. It seems that Elastic Search could not convert it to a valid format of it&#8217;s own and I got the following exception: Since I didn&#8217;t want to search the Date [...]]]></description>
			<content:encoded><![CDATA[<p>While <a href="http://www.kospol.gr/793/elastic-search/" target="_blank">I was developing</a> with the <a href="http://www.playframework.org/" target="_blank">Play framework</a> and <a href="http://www.elasticsearch.org/" target="_blank">Elastic Search</a>, I faced a really annoying problem.</p>
<p>In my model I had a <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/sql/Date.html" target="_blank">Date</a> field. It seems that Elastic Search could not convert it to a valid format of it&#8217;s own and I got the following exception:</p>
<pre class="brush: plain; title: ; notranslate">
org.elasticsearch.index.mapper.MapperParsingException: Failed to parse [added]
	at org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:309)
	at org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:569)
	at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:441)
	at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:567)
	at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:491)
	at org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:289)
	at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:185)
	at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:428)
	at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:341)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: org.elasticsearch.index.mapper.MapperParsingException: failed to parse date field, tried both date format [dateOptionalTime], and timestamp number
	at org.elasticsearch.index.mapper.core.DateFieldMapper.parseStringValue(DateFieldMapper.java:343)
	at org.elasticsearch.index.mapper.core.DateFieldMapper.parseCreateField(DateFieldMapper.java:280)
	at org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:296)
	... 11 more
Caused by: java.lang.IllegalArgumentException: Invalid format: &quot;2012-03-01 00:00:00.0&quot; is malformed at &quot; 00:00:00.0&quot;
	at org.elasticsearch.common.joda.time.format.DateTimeFormatter.parseMillis(DateTimeFormatter.java:644)
	at org.elasticsearch.index.mapper.core.DateFieldMapper.parseStringValue(DateFieldMapper.java:338)
	... 13 more
</pre>
<p>Since I didn&#8217;t want to search the Date field with Elastic Search at the first place, I found out I could set elastic search to ignore that field and since I&#8217;m only interested in searching the &#8220;name&#8221; and the &#8220;description&#8221; fields, I could add the <strong>@ElasticSearchIgnore</strong> annotation at all the other fields.</p>
<p>Now Elastic Search doesn&#8217;t bother to parse the Date field nor the others. To be honest, I didn&#8217;t found a solution for the Date conversion, but, hey, it works this way ;)</p>
<p>One feature I would like to see (I didn&#8217;t found out anything) is to be able to explicitly tell only which fields I want to be searched and exclude all the others. </p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.kospol.gr%2F798%2Fignore-fields-at-elastic-search%2F&amp;linkname=Ignore%20fields%20at%20Elastic%20Search" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.kospol.gr%2F798%2Fignore-fields-at-elastic-search%2F&amp;linkname=Ignore%20fields%20at%20Elastic%20Search" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.kospol.gr%2F798%2Fignore-fields-at-elastic-search%2F&amp;linkname=Ignore%20fields%20at%20Elastic%20Search" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_button_friendfeed" href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fwww.kospol.gr%2F798%2Fignore-fields-at-elastic-search%2F&amp;linkname=Ignore%20fields%20at%20Elastic%20Search" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F798%2Fignore-fields-at-elastic-search%2F&amp;linkname=Ignore%20fields%20at%20Elastic%20Search" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_blogger_post" href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.kospol.gr%2F798%2Fignore-fields-at-elastic-search%2F&amp;linkname=Ignore%20fields%20at%20Elastic%20Search" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a><a class="a2a_button_google_reader" href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.kospol.gr%2F798%2Fignore-fields-at-elastic-search%2F&amp;linkname=Ignore%20fields%20at%20Elastic%20Search" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F798%2Fignore-fields-at-elastic-search%2F&amp;linkname=Ignore%20fields%20at%20Elastic%20Search" title="Hotmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.kospol.gr%2F798%2Fignore-fields-at-elastic-search%2F&amp;linkname=Ignore%20fields%20at%20Elastic%20Search" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kospol.gr%2F798%2Fignore-fields-at-elastic-search%2F&amp;title=Ignore%20fields%20at%20Elastic%20Search" id="wpa2a_18"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kospol.gr/798/ignore-fields-at-elastic-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>elastic search!</title>
		<link>http://www.kospol.gr/793/elastic-search/</link>
		<comments>http://www.kospol.gr/793/elastic-search/#comments</comments>
		<pubDate>Wed, 29 Feb 2012 18:41:10 +0000</pubDate>
		<dc:creator>Konstantinos Polychronis</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[boolquerybuilder]]></category>
		<category><![CDATA[elastic search]]></category>
		<category><![CDATA[fuzzyquery]]></category>
		<category><![CDATA[play framework]]></category>

		<guid isPermaLink="false">http://www.kospol.gr/?p=793</guid>
		<description><![CDATA[If you don&#8217;t know what elastic search is, you should read about it immediately. Almost everything you are developing or may develop contains a search section. As the creator of elastic search are declairing at the project&#8217;s first page: So, we build a web site or an application and want to add search to it, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.ossramblings.com/files/images/elasticsearch.png" alt="" /></p>
<p>If you don&#8217;t know what <a href="http://www.elasticsearch.org/">elastic search</a> is, you should read about it immediately.<br />
Almost everything you are developing or may develop contains a search section.</p>
<p>As the creator of elastic search are declairing at the project&#8217;s first page:</p>
<blockquote><p>So, we build a web site or an application and want to add search to it, and then it hits us: getting search working is hard. We want our search solution to be fast, we want a painless setup and a completely free search schema, we want to be able to index data simply using JSON over HTTP, we want our search server to be always available, we want to be able to start with one machine and scale to hundreds, we want real-time search, we want simple multi-tenancy, and we want a solution that is built for the cloud.</p></blockquote>
<p>I use elastic search for the GreekAndroidApps project, I&#8217;m developing it with the <a href="http://www.playframework.org/">play framework</a> and it cames handy with a play module ready to use.</p>
<p>One feature I really love (among the others) is the fuzzy search.<br />
This line does a fuzzy search on the &#8220;title&#8221; or the &#8220;description&#8221; fields.</p>
<pre class="brush: plain; title: ; notranslate">
BoolQueryBuilder qb1 = boolQuery().should(fuzzyQuery(&quot;title&quot;, searchString)).should(fuzzyQuery(&quot;description&quot;, searchString));
</pre>
<p>So, goodbye &#8220;select * from item where content like &#8216;%term%&#8217;&#8221; queries!!!</p>
<p><a class="a2a_button_facebook" href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fwww.kospol.gr%2F793%2Felastic-search%2F&amp;linkname=elastic%20search%21" title="Facebook" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a><a class="a2a_button_google_bookmarks" href="http://www.addtoany.com/add_to/google_bookmarks?linkurl=http%3A%2F%2Fwww.kospol.gr%2F793%2Felastic-search%2F&amp;linkname=elastic%20search%21" title="Google Bookmarks" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/google.png" width="16" height="16" alt="Google Bookmarks"/></a><a class="a2a_button_twitter" href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fwww.kospol.gr%2F793%2Felastic-search%2F&amp;linkname=elastic%20search%21" title="Twitter" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a><a class="a2a_button_friendfeed" href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fwww.kospol.gr%2F793%2Felastic-search%2F&amp;linkname=elastic%20search%21" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a><a class="a2a_button_google_gmail" href="http://www.addtoany.com/add_to/google_gmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F793%2Felastic-search%2F&amp;linkname=elastic%20search%21" title="Google Gmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/gmail.png" width="16" height="16" alt="Google Gmail"/></a><a class="a2a_button_blogger_post" href="http://www.addtoany.com/add_to/blogger_post?linkurl=http%3A%2F%2Fwww.kospol.gr%2F793%2Felastic-search%2F&amp;linkname=elastic%20search%21" title="Blogger Post" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/blogger.png" width="16" height="16" alt="Blogger Post"/></a><a class="a2a_button_google_reader" href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fwww.kospol.gr%2F793%2Felastic-search%2F&amp;linkname=elastic%20search%21" title="Google Reader" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a><a class="a2a_button_hotmail" href="http://www.addtoany.com/add_to/hotmail?linkurl=http%3A%2F%2Fwww.kospol.gr%2F793%2Felastic-search%2F&amp;linkname=elastic%20search%21" title="Hotmail" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/live.png" width="16" height="16" alt="Hotmail"/></a><a class="a2a_button_wordpress" href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.kospol.gr%2F793%2Felastic-search%2F&amp;linkname=elastic%20search%21" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kospol.gr%2F793%2Felastic-search%2F&amp;title=elastic%20search%21" id="wpa2a_20"><img src="http://www.kospol.gr/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kospol.gr/793/elastic-search/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

