<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Kafol.NET</title>
		<description>Photography, programming and other cool stuff by Žan Kafol</description>
		<link>http://www.kafol.net</link>
		<lastBuildDate>Thu, 23 Feb 2012 02:23:01 +0100</lastBuildDate>
		<pubDate>Sun, 01 Aug 2010 20:00:00 +0200</pubDate>
		<atom:link href="http://www.kafol.net/rss.php" rel="self" type="application/rss+xml" />
		<item>
			<title><![CDATA[NETBIOS / Samba share does not accept username and password]]></title>
			<description><![CDATA[If your username and password gets rejected when logging in MS file share, try using the INT domain for login.<br /><br />example:<br /><br />username: INT\your_username<br />password: your_password<br /><br /><br /><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8709754195953818893-3754705828460151123?l=dev.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/4T</link>
			<guid isPermaLink="false">kafol.net:0d694fc69a93372640b3fad44b9ebe1dce77ce9c</guid>
			<pubDate>Wed, 22 Feb 2012 19:19:00 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Linux/Ubuntu :: pure-ftpd does not allow login to user with /usr/sbin/nologin shell]]></title>
			<description><![CDATA[<b>Expectations:</b><br />You have created a user with&nbsp;/usr/sbin/nologin shell (ftp-only user) in Linux/Ubuntu.<br />If you SSH to the box with this username and password it should not work.<br />If you FTP to the box with this username and password it should.<br /><br /><b>Symptoms:</b><br />Pure-ftpd does not permit login if the shell is set to /bin/false or&nbsp;/usr/sbin/nologin.<br />If you change the shell to /bin/bash it works.<br /><br /><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">Connected to localhost.</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">220-You are user number 2 of 50 allowed.</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">220-Local time is now 17:53. Server port: 21.</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">220-This is a private system - No anonymous login</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">220-IPv6 connections are also welcome on this server.</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">220 You will be disconnected after 15 minutes of inactivity.</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">Name (localhost:root): ftponly</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">331 User ftponly OK. Password required</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">Password:</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">530 Login authentication failed</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">Login failed.</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">Remote system type is UNIX.</span><br /><span style="font-family: 'Courier New', Courier, monospace; font-size: x-small;">Using binary mode to transfer files.</span><br /><div><br /></div><div><b>Solution:</b></div><div>You need to add the nologin or false shell to the file&nbsp;/etc/shells.</div><div><br /></div><div><div><span style="font-family: 'Courier New', Courier, monospace;">root@box:/# cat /etc/shells</span></div><div><span style="font-family: 'Courier New', Courier, monospace;"># /etc/shells: valid login shells</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/bin/csh</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/bin/sh</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/usr/bin/es</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/usr/bin/ksh</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/bin/ksh</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/usr/bin/rc</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/usr/bin/tcsh</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/bin/tcsh</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/usr/bin/esh</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/bin/dash</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/bin/bash</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/bin/rbash</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/usr/bin/screen</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/bin/false</span></div><div><span style="font-family: 'Courier New', Courier, monospace;">/usr/sbin/nologin</span></div></div><div><br /></div><br /><br /><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8709754195953818893-2778747956821358299?l=dev.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/4R</link>
			<guid isPermaLink="false">kafol.net:93fdfcff6e7bb8f17c674c1da78c72455b9acba8</guid>
			<pubDate>Tue, 21 Feb 2012 18:04:00 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[PHP :: sending SMS via najdi.si FREE SMS]]></title>
			<description><![CDATA[You need to make an account on https://id.najdi.si before you can use the code.<br/><br/>All info and description is in the code comments.<br/><br/>Enjoy!<br/><pre name="code" class="php">&lt;?php/*** Purpose: * Sending SMS via Najdi.si Free SMS** Description: * Script logs in using your username and password for https://id.najdi.si and then it sends an SMS to a mobile phone number. * There is a 160 character limit per message and daily limit of 40 sent messages.* The script tries to limit the number of requests to a page and tries to hold on to the session as long as possible. * The session cookie is stored in a /tmp/folder for later use, if the script restarts. * Once instantiated, object can be reused for sending a number of SMS messages. * If a new object is instantiated, it will prefer to use a stored session.** @version Date: 1. february 2012* @author Žan Kafol* @access public*/class sms {  public $username = 'your_username'; public $pass = '...';  public $cookie_jar = '/tmp/cookie.najdi.si';  private $error = '';  /* * Construct function * @param string $username * @param string $password */ function __construct($u = null, $p = null) {  if(!is_null($u)) {   $this-&gt;username = $u;  }    if(!is_null($p)) {   $this-&gt;pass = $p;  } }  /* * Sends SMS * @param string $number * @param string $message */ public function send($number,$message) {  $message = urlencode(substr(iconv('UTF-8', 'ASCII//TRANSLIT', $message), 0, 160));  $number = ltrim(preg_replace('/[^\d]/','',$number),'0');    @list($area,$num1,$num2) = explode(' ',preg_replace('/(\d{2})(\d{3})(\d{3})/','\1 \2 \3',$number));    $url = &quot;http://www.najdi.si/sms/smsController.jsp?sms_action=4&amp;sms_so_ac_={$area}&amp;sms_so_l_={$num1}%20{$num2}&amp;myContacts=&amp;sms_message_=$message&quot;;    $response = $this-&gt;response($this-&gt;req($url));    if($response === false) {   $this-&gt;login();   $response = $this-&gt;response($this-&gt;req($url));  }    return $response; }  /* * Returns last error as stdclass */ public function get_error() {  return $this-&gt;error; }  private function login() {  $this-&gt;req('http://www.najdi.si/auth/login.jsp?lg=0&amp;target_url=http%3A%2F%2Fwww.najdi.si%2Findex.jsp');    return $this-&gt;req(&quot;https://id.najdi.si/j_spring_security_check&quot;, array(   'j_username'     =&gt; $this-&gt;username,   'j_password'     =&gt; $this-&gt;pass,   '_spring_security_remember_me' =&gt; 'on'  )); }  private function response($r) {  $r = json_decode($r);    if($r-&gt;dialog == 3) {   $this-&gt;error = false;   return $r;  }    $this-&gt;error = $r;  return false; }  private function req($url, $post = false) {  $ack = curl_init();    curl_setopt($ack, CURLOPT_USERAGENT, &quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1&quot; );  curl_setopt($ack, CURLOPT_RETURNTRANSFER, true);  curl_setopt($ack, CURLOPT_FOLLOWLOCATION, true);  curl_setopt($ack, CURLOPT_URL, $url);  curl_setopt($ack, CURLOPT_COOKIEFILE, $this-&gt;cookie_jar);   curl_setopt($ack, CURLOPT_COOKIEJAR, $this-&gt;cookie_jar);     if($post) {   curl_setopt($ack, CURLOPT_POST, true);   curl_setopt($ack, CURLOPT_POSTFIELDS, http_build_query($post));  }    $dat = curl_exec($ack);  curl_close($ack);    return $dat; }}?&gt;</pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8709754195953818893-2987518278100101476?l=dev.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/4P</link>
			<guid isPermaLink="false">kafol.net:3442c4b48818fd3bdf5fb247344d6eb7413707c7</guid>
			<pubDate>Sat, 18 Feb 2012 23:46:00 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Rdečka]]></title>
			<description><![CDATA[<p><a href="http://fotkanadan.kafol.net/wp-content/uploads/2012/02/b20120212-_MG_4428.jpg" rel="lightbox[1475]"><img class="aligncenter size-medium wp-image-1485" title="b20120212-_MG_4428" src="http://fotkanadan.kafol.net/wp-content/uploads/2012/02/b20120212-_MG_4428-199x300.jpg" alt="" width="199" height="300" /></a></p>]]></description>
			<link>http://go.kafol.net/4N</link>
			<guid isPermaLink="false">kafol.net:b992f8f3f1bd48fbc9e10622d0bbaf864e7a6991</guid>
			<pubDate>Sun, 12 Feb 2012 23:20:23 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Ela, Rdečka in Kitty]]></title>
			<description><![CDATA[<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-Zp3rpzKCSv8/Tzg6cr3Gx_I/AAAAAAAADZM/X6QZjOiHW5w/s1600/a20120212-_MG_4377.jpg" imageanchor="1"><img border="0" height="400" src="http://3.bp.blogspot.com/-Zp3rpzKCSv8/Tzg6cr3Gx_I/AAAAAAAADZM/X6QZjOiHW5w/s400/a20120212-_MG_4377.jpg" width="266" /></a></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-vMQ8MQHCsB0/Tzg6c32vAOI/AAAAAAAADZc/RAKlfeEqZDA/s1600/b20120212-_MG_4428.jpg" imageanchor="1"><img border="0" height="400" src="http://1.bp.blogspot.com/-vMQ8MQHCsB0/Tzg6c32vAOI/AAAAAAAADZc/RAKlfeEqZDA/s400/b20120212-_MG_4428.jpg" width="266" /></a></div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-jc_PD3rOg2Y/Tzg6dMJ1v9I/AAAAAAAADZk/c3R1JbABhGc/s1600/c20120212-_MG_4402.jpg" imageanchor="1"><img border="0" height="400" src="http://4.bp.blogspot.com/-jc_PD3rOg2Y/Tzg6dMJ1v9I/AAAAAAAADZk/c3R1JbABhGc/s400/c20120212-_MG_4402.jpg" width="266" /></a></div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6476970605110436654-5376074746669343526?l=blog.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/4L</link>
			<guid isPermaLink="false">kafol.net:81c1027f42891f9dcab21e94d96710a87b285a38</guid>
			<pubDate>Sun, 12 Feb 2012 23:18:00 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Welcome to my Universe]]></title>
			<description><![CDATA[<p><a href="http://fotkanadan.kafol.net/wp-content/uploads/2011/12/20111228-_MG_3407.jpg" rel="lightbox[1470]"><img class="aligncenter size-medium wp-image-1472" title="20111228-_MG_3407" src="http://fotkanadan.kafol.net/wp-content/uploads/2011/12/20111228-_MG_3407-300x200.jpg" alt="" width="300" height="200" /></a></p>]]></description>
			<link>http://go.kafol.net/4E</link>
			<guid isPermaLink="false">kafol.net:f4356a00cf5d0610e2d2c294025ecce18a06d1cd</guid>
			<pubDate>Thu, 29 Dec 2011 01:19:17 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Y halo thar]]></title>
			<description><![CDATA[<p><a href="http://fotkanadan.kafol.net/wp-content/uploads/2011/12/20111223-_MG_3296.jpg" rel="lightbox[1464]"><img class="aligncenter size-medium wp-image-1466" title="20111223-_MG_3296" src="http://fotkanadan.kafol.net/wp-content/uploads/2011/12/20111223-_MG_3296-199x300.jpg" alt="" width="199" height="300" /></a></p>]]></description>
			<link>http://go.kafol.net/4C</link>
			<guid isPermaLink="false">kafol.net:208fed91830926c1a9448ad715221a4bc5463120</guid>
			<pubDate>Fri, 23 Dec 2011 22:30:47 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Bižuterija]]></title>
			<description><![CDATA[<p><a href="http://fotkanadan.kafol.net/wp-content/uploads/2011/12/pc030005.jpg" rel="lightbox[1456]"><img class="alignnone size-medium wp-image-1458" src="http://fotkanadan.kafol.net/wp-content/uploads/2011/12/pc030005-300x225.jpg" alt="" width="300" height="225" /></a></p>]]></description>
			<link>http://go.kafol.net/4y</link>
			<guid isPermaLink="false">kafol.net:74f95798b41f7550e7f252fac65a91d5c5afd5d0</guid>
			<pubDate>Sat, 03 Dec 2011 17:50:38 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Android :: wrong image / data in ListView rows]]></title>
			<description><![CDATA[<blockquote>Android's ListView reuses list items when they aren't need anymore. For this reason, you need to make sure all views that should change, will actually get changed.Your problem is that if you don't find a drawable for the current list item, you don't empty nor hide the ImageView. You should do thumb.setImageDrawable(null) in that case, or thumb.setVisibility(View.GONE).</blockquote>- From <a href="http://stackoverflow.com/questions/3889549/wrong-image-show-up-in-my-listview-rows">stackoverflow</a><br /><br />Example code:<br /><br /><br /><pre name="code" class="java"> @Override     public View getView(int pos, View v, ViewGroup parent) {      TimetableViewHolder timetableHolder;         if (v == null) {             LayoutInflater vi = ((Activity)context).getLayoutInflater();             v = vi.inflate(R.layout.timetable_item, parent, false);             timetableHolder = new TimetableViewHolder();             timetableHolder.rel = (TextView) v.findViewById(R.id.rel);             timetableHolder.time = (TextView) v.findViewById(R.id.time);             timetableHolder.icon = (ImageView) v.findViewById(R.id.icon);             v.setTag(timetableHolder);         } else {          timetableHolder = (TimetableViewHolder) v.getTag();          }         TimetableItem item = items.get(pos);         if(item != null) {          timetableHolder.rel.setText(item.rel);          timetableHolder.time.setText(item.time);          if(item.url.equals("ERROR")) {           timetableHolder.icon.setImageResource(android.R.drawable.ic_menu_close_clear_cancel);          } else if(item.url.equals("PRESTOP")) {           timetableHolder.icon.setImageResource(android.R.drawable.ic_menu_directions);          } else { // THIS IS IMPORTANT           timetableHolder.icon.setImageResource(android.R.drawable.ic_dialog_info);          }         }         return v;     }</pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8709754195953818893-5049910438671339755?l=dev.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/4w</link>
			<guid isPermaLink="false">kafol.net:802e0bc5a5a1aa1f58a8934aacc9b34eaa8f55d8</guid>
			<pubDate>Sat, 19 Nov 2011 21:29:00 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Android search dialog doesn't appear]]></title>
			<description><![CDATA[Have a problem?<br />The search dialog doesn't show up?<br /><br />I just thought you should know, I found this interesting comment on <a href="http://stackoverflow.com/questions/5926895/android-search-dialog-doesnt-appear">stackoverflow</a>:<br /><br /><blockquote class="tr_bq">oh my god. this is f*ing stupid. i had to use android:label="@string/xyz" instead of android:label="lol" and no single word about this in the documentation. unbelievable</blockquote><br />&nbsp;This is my manifest:<br /><br /><pre name="code" class="xml">&lt;activity android:name=".SearchableActivity" &gt; &lt;intent-filter &gt;  &lt;action android:name="android.intent.action.SEARCH" /&gt; &lt;/intent-filter&gt; &lt;meta-data  android:name="android.app.searchable"  android:resource="@xml/searchable" /&gt;&lt;/activity&gt;&lt;activity android:label="Preferred stations" android:name="PreferredStation" android:theme="@android:style/Theme.NoTitleBar" &gt; &lt;meta-data  android:name="android.app.default_searchable"  android:value=".SearchableActivity" /&gt;&lt;/activity&gt;</pre><br /><br /><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8709754195953818893-1838399559488340392?l=dev.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/4u</link>
			<guid isPermaLink="false">kafol.net:c31b85bf8677f04c34991d48ecad266b18be8610</guid>
			<pubDate>Sat, 19 Nov 2011 15:15:00 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Android :: google maps (MapView) hacks, tricks, workarounds]]></title>
			<description><![CDATA[MapView isn't very developer friendly now is it?<br /><br />Here are some hacks I've had to work with:<br /><br /><b><span class="Apple-style-span" style="font-size: large;">1) When tapping on the overlay, the app crashes if you're trying to display the dialog.</span></b><br /><b>Unable to add window -- token null is not for an application</b><br />Yes, this is due to context. Especially if you're trying to do this in a seperate thread or AsyncTask.<br />Turns out the context you need to pass to your dialog is mapView.getContext();<br /><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">AlertDialog.Builder dialog = new AlertDialog.Builder(mapView.getContext());</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8709754195953818893-4798673095544980058?l=dev.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/4s</link>
			<guid isPermaLink="false">kafol.net:dde32dba34f5c3b9a327b033f98d9bfa65c6dd00</guid>
			<pubDate>Sat, 19 Nov 2011 03:02:00 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Android :: google maps on double tap zoom in]]></title>
			<description><![CDATA[How hard is it to make a simple zoom in call on double tap in MapView in Android?<br /><br />Not very.<br /><br />How hard is it to get the information on how to do it?<br /><br />Very.<br /><br />Here's what you probably didn't know:<br />You need to extend the MapView and use this extended class in the Android XML layout file.<br />In the extended class you instantiate the gesture detector and set on double tap listener.<br />In the Map Activity you implement&nbsp;OnGestureListener and OnDoubleTapListener.<br /><br />Example:<pre name="code" class="xml">&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:gravity="center_horizontal" &gt;     &lt;net.kafol.vlaki.ExtMapView     xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/mapview"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:clickable="true"     android:enabled="true"     android:apiKey="" /&gt;&lt;/RelativeLayout&gt;</pre><pre name="code" class="java">package net.kafol.vlaki;import android.content.Context;import android.util.AttributeSet;import android.view.GestureDetector;import android.view.GestureDetector.OnDoubleTapListener;import android.view.MotionEvent;import android.view.GestureDetector.OnGestureListener;import com.google.android.maps.MapView;public class ExtMapView extends MapView { private Context context; private GestureDetector gestureDetector; public ExtMapView(Context c, AttributeSet attrs) {  super(c, attrs);  context = c;  gestureDetector = new GestureDetector((OnGestureListener) context);  gestureDetector.setOnDoubleTapListener((OnDoubleTapListener) context); } public boolean onTouchEvent(MotionEvent ev) {  if (this.gestureDetector.onTouchEvent(ev))   return true;  else   return super.onTouchEvent(ev); }}</pre><pre name="code" class="java">public class Map extends MapActivity implements OnGestureListener, OnDoubleTapListener {... @Override public boolean onDoubleTap(MotionEvent e) {  mapView.getController().zoomIn();  return true; }</pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8709754195953818893-3190910414974973796?l=dev.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/4q</link>
			<guid isPermaLink="false">kafol.net:fdaa855e3eba231fbcfc04a6b14e4da58b35ab11</guid>
			<pubDate>Fri, 18 Nov 2011 03:44:00 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Android : Checkbox ListView - (un) check all]]></title>
			<description><![CDATA[This recycling of views in android is preety insane. Pain to work with.<br /><br />So the problem is how to check all check boxes in a list view, if a list view only contains the visible items.<br /><br />Iterating through the adapter or array of holders was pretty unreliable, some checkboxes weren't affected.<br /><br />What I did was actually add an attribute to the data object and iterate through this object array (the same way it get's added in the adapter)-<br /><br />Here are some functions:<br /><pre name="code" class="java"> public void toggleCheck(Boolean val) {    for(Station s : stations.list) {   s.checked = val;   editor.putBoolean("PF_"+s.getID(), val);  }    for(int i=0 ; i < lv.getChildCount() ; i++) {   CheckBox cb = (CheckBox) lv.getChildAt(i).findViewById(R.id.cb);   cb.setChecked(val);  }  editor.apply(); }     private class StationCBViewHolder {        public CheckBox cb;        public Station s;    }  private class StationListAdapter extends ArrayAdapter<Station> {     private ArrayList<Station> items;     private Context context;          public StationListAdapter(Context context, int tvResId, ArrayList<Station> items) {         super(context, tvResId, items);         this.items = items;         this.context = context;     }     @Override     public View getView(int pos, View v, ViewGroup parent) {      final StationCBViewHolder holder;      final Station item = items.get(pos);               if (v == null) {             LayoutInflater vi = ((Activity)context).getLayoutInflater();             v = vi.inflate(R.layout.stationcheckboxitem, parent, false);                          holder = new StationCBViewHolder();             holder.cb = (CheckBox) v.findViewById(R.id.cb);             holder.s = item;                          item.checked = prefs.getBoolean("PF_"+item.getID(),true);                          //holder.cb.setTag(holder);             holder.cb.setTag(item);             holder.cb.setChecked(item.checked);             holder.cb.setOnCheckedChangeListener(new OnCheckedChangeListener() {     @Override     public void onCheckedChanged(CompoundButton v, boolean isChecked) {      Station s = (Station) v.getTag();      editor.putBoolean("PF_"+s.getID(), isChecked);      editor.apply();     }    });                                     v.setTag(holder);         } else {          holder = (StationCBViewHolder) v.getTag();          }         holder.cb.setText(item.toString());         holder.cb.setChecked(item.checked);         return v;     } }</pre><br /><br />Full code here:&nbsp;<a href="http://pastebin.com/8NMbHqRV">http://pastebin.com/8NMbHqRV</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8709754195953818893-6110542522611690973?l=dev.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/4o</link>
			<guid isPermaLink="false">kafol.net:82164231fa4f6b38970e4734d3fb90f92e02602a</guid>
			<pubDate>Fri, 18 Nov 2011 02:29:00 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Nanos | VR panorama]]></title>
			<description><![CDATA[VR panorama je <a href="http://go.kafol.net/4i">tukaj</a>.<br><br><iframe src="http://kafol.net/pano/nanos/" width="100%" height="300"></iframe> <br><br>Še nekaj fotk:<br><br><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-N7pitY9T7bM/TrxS7SgtMUI/AAAAAAAADYk/JX_tS6q5aCE/s1600/20111110-_MG_8833-Edit.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="122" src="http://2.bp.blogspot.com/-N7pitY9T7bM/TrxS7SgtMUI/AAAAAAAADYk/JX_tS6q5aCE/s320/20111110-_MG_8833-Edit.jpg" width="320" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-mZS0hwW9OVg/TrxS7gGnngI/AAAAAAAADYo/cPF-2jWIxE0/s1600/20111110-_MG_8837-Edit.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="160" src="http://3.bp.blogspot.com/-mZS0hwW9OVg/TrxS7gGnngI/AAAAAAAADYo/cPF-2jWIxE0/s320/20111110-_MG_8837-Edit.jpg" width="320" /></a></div><br /><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6476970605110436654-3213543704856286430?l=blog.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/4k</link>
			<guid isPermaLink="false">kafol.net:5c3a726eb3842eb7d45c4ee2fc681d5331268705</guid>
			<pubDate>Thu, 10 Nov 2011 23:40:00 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Pivška kotlina]]></title>
			<description><![CDATA[<p><a href="http://www.fotkanadan.si/wp-content/uploads/2011/11/02112011197.jpg" rel="lightbox[1448]"><img class="alignnone size-medium wp-image-1450" src="http://www.fotkanadan.si/wp-content/uploads/2011/11/02112011197-300x225.jpg" alt="" width="300" height="225" /></a></p>]]></description>
			<link>http://go.kafol.net/3U</link>
			<guid isPermaLink="false">kafol.net:c1760265f213c1516184913daf97a7524c4d1120</guid>
			<pubDate>Wed, 02 Nov 2011 17:40:31 +0100</pubDate>
		</item>
		<item>
			<title><![CDATA[Povsem po naključju]]></title>
			<description><![CDATA[<p><a href="http://www.fotkanadan.si/wp-content/uploads/2011/10/20111028-_MG_8747.jpg" rel="lightbox[1440]"><img class="aligncenter size-medium wp-image-1442" title="20111028-_MG_8747" src="http://www.fotkanadan.si/wp-content/uploads/2011/10/20111028-_MG_8747-200x300.jpg" alt="" width="200" height="300" /></a></p>]]></description>
			<link>http://go.kafol.net/3Q</link>
			<guid isPermaLink="false">kafol.net:13de50f1e9c249da50bd88fabc2526d8768a4c43</guid>
			<pubDate>Fri, 28 Oct 2011 21:33:16 +0200</pubDate>
		</item>
		<item>
			<title><![CDATA[Spirit]]></title>
			<description><![CDATA[<p><a href="http://www.fotkanadan.si/wp-content/uploads/2011/10/20111017-_MG_8629.jpg" rel="lightbox[1434]"><img class="aligncenter size-medium wp-image-1436" title="20111017-_MG_8629" src="http://www.fotkanadan.si/wp-content/uploads/2011/10/20111017-_MG_8629-300x199.jpg" alt="" width="300" height="199" /></a></p>]]></description>
			<link>http://go.kafol.net/3O</link>
			<guid isPermaLink="false">kafol.net:f0ed93b6f08391afe2f4f3276af859ac5e423446</guid>
			<pubDate>Mon, 17 Oct 2011 22:13:44 +0200</pubDate>
		</item>
		<item>
			<title><![CDATA[Jesenske impresije]]></title>
			<description><![CDATA[<p><a href="http://www.fotkanadan.si/wp-content/uploads/2011/10/IMG_2193_8.jpg" rel="lightbox[1420]"><img class="alignnone size-medium wp-image-1424" src="http://www.fotkanadan.si/wp-content/uploads/2011/10/IMG_2193_8-300x194.jpg" alt="" width="300" height="194" /></a></p>]]></description>
			<link>http://go.kafol.net/3M</link>
			<guid isPermaLink="false">kafol.net:b3ffbebcf6c24e73bd6edfe67d7db3f79027e590</guid>
			<pubDate>Tue, 11 Oct 2011 19:59:17 +0200</pubDate>
		</item>
		<item>
			<title><![CDATA[Sončni zahod]]></title>
			<description><![CDATA[<p><a href="http://www.fotkanadan.si/wp-content/uploads/2011/10/pa080064.jpg" rel="lightbox[1412]"><img class="alignnone size-medium wp-image-1414" src="http://www.fotkanadan.si/wp-content/uploads/2011/10/pa080064-300x225.jpg" alt="" width="300" height="225" /></a></p>]]></description>
			<link>http://go.kafol.net/3K</link>
			<guid isPermaLink="false">kafol.net:ac095423dd6db5ac176f6d51c0c2b714029b02ce</guid>
			<pubDate>Sat, 08 Oct 2011 20:07:35 +0200</pubDate>
		</item>
		<item>
			<title><![CDATA[London]]></title>
			<description><![CDATA[<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-JErPd4RJBYE/ToxkMVNEgoI/AAAAAAAADXk/hS-Y3ZY7wmk/s1600/20110929-_MG_7880.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/-JErPd4RJBYE/ToxkMVNEgoI/AAAAAAAADXk/hS-Y3ZY7wmk/s320/20110929-_MG_7880.jpg" width="213" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-QsofsvzEGsw/ToxkM2tOvAI/AAAAAAAADXo/igyHtpkpAa4/s1600/20110930-_MG_7983.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="http://3.bp.blogspot.com/-QsofsvzEGsw/ToxkM2tOvAI/AAAAAAAADXo/igyHtpkpAa4/s320/20110930-_MG_7983.jpg" width="320" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-a8uJbnh3Pio/ToxkNTNYGLI/AAAAAAAADXs/FvrZGPl9r08/s1600/20110930-_MG_8085.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="http://1.bp.blogspot.com/-a8uJbnh3Pio/ToxkNTNYGLI/AAAAAAAADXs/FvrZGPl9r08/s320/20110930-_MG_8085.jpg" width="320" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-_NP3ShH939U/ToxkNjS53GI/AAAAAAAADXw/kxczAPyUdl0/s1600/20110930-_MG_8101.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="http://1.bp.blogspot.com/-_NP3ShH939U/ToxkNjS53GI/AAAAAAAADXw/kxczAPyUdl0/s320/20110930-_MG_8101.jpg" width="320" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-h2WCd17LAMc/ToxkOaJJjuI/AAAAAAAADX0/9DzSpYhsiCM/s1600/20111001-_MG_8192.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="http://4.bp.blogspot.com/-h2WCd17LAMc/ToxkOaJJjuI/AAAAAAAADX0/9DzSpYhsiCM/s320/20111001-_MG_8192.jpg" width="320" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-gxjd4ZvX-MU/ToxkOjXP_lI/AAAAAAAADX4/GBK7SEw-TN0/s1600/20111001-_MG_8275.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="http://3.bp.blogspot.com/-gxjd4ZvX-MU/ToxkOjXP_lI/AAAAAAAADX4/GBK7SEw-TN0/s320/20111001-_MG_8275.jpg" width="320" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-3atIab5B7cg/ToxkPIIVIZI/AAAAAAAADX8/fh8gJSz8Gns/s1600/20111002-_MG_8412.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="http://1.bp.blogspot.com/-3atIab5B7cg/ToxkPIIVIZI/AAAAAAAADX8/fh8gJSz8Gns/s320/20111002-_MG_8412.jpg" width="320" /></a></div><br /><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6476970605110436654-8155649348199118856?l=blog.kafol.net' alt='' /></div>]]></description>
			<link>http://go.kafol.net/3C</link>
			<guid isPermaLink="false">kafol.net:5ab2242bf499122b03f4ddd582d958f831847a81</guid>
			<pubDate>Wed, 05 Oct 2011 16:07:00 +0200</pubDate>
		</item>
	</channel>
</rss>

