






<?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>Leonidas blog</title>
	<atom:link href="http://blog.patouchas.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.patouchas.net</link>
	<description>what? whatever....</description>
	<lastBuildDate>Wed, 11 Jan 2012 08:08:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Hibernate Mapping with Annotations</title>
		<link>http://blog.patouchas.net/technology/java/hibernate-mapping-with-annotations/</link>
		<comments>http://blog.patouchas.net/technology/java/hibernate-mapping-with-annotations/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 10:39:22 +0000</pubDate>
		<dc:creator>Leonidas</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[annotations]]></category>
		<category><![CDATA[hibernate]]></category>

		<guid isPermaLink="false">http://blog.patouchas.net/?p=356</guid>
		<description><![CDATA[
			
				
			
In the previous post we used the .hbm.xml to map our POJO with the DB table. There is another way we can do that, that does not involve any .xml file. Everything will be done in our POJO, so no extra files needed. That kind of implementation requires at least Java 5, hibernate 3.2.0 core [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
<p>			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F"></p>
<p>				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;source=morpheous83&amp;style=compact" height="61" width="50" /></p>
<p>			</a></p></div>
<p>In the <a href="http://blog.patouchas.net/technology/hibernate-dao-java-tutorial/">previous post</a> we used the .hbm.xml to map our POJO with the DB table. There is another way we can do that, that does not involve any .xml file. Everything will be done in our POJO, so no extra files needed. That kind of implementation requires at least Java 5, hibernate 3.2.0 core and above and it is based on <em>Annotations</em>. We will use annotations to map our POJO.</p>
<p>The <em>Persons.java</em> class we used in the previous example (and was automatically generated by NetBeans) looked like this:</p>
<pre>
package gr.persons.entities;

import java.math.BigDecimal;
import java.util.Date;

public class Person  implements java.io.Serializable {

     private BigDecimal id;
     private String name;
     private String surname;
     private Date birthdate;
     private String sex;

    public Person() {
    }

    public Person(BigDecimal id) {
        this.id = id;
    }
    public Person(BigDecimal id, String name, String surname, Date birthdate, String sex) {
       this.id = id;
       this.name = name;
       this.surname = surname;
       this.birthdate = birthdate;
       this.sex = sex;
    }

    public BigDecimal getId() {
        return this.id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return this.surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public Date getBirthdate() {
        return this.birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

}
</pre>
<p>And we mapped id through the <em>Persons.hbm.xml</em>.</p>
<p>For the annotated solution we will have to alter a little bit the Persons.java:</p>
<pre>
package gr.persons.entities;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "PERSON", schema = "YOUR_SCHEMA")
public class Person implements java.io.Serializable {

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    private BigDecimal id;

    @Column(name = "NAME", length = 50)
    private String name;

    @Column(name = "SURNAME", length = 50)
    private String surname;

    @Temporal(TemporalType.DATE)
    @Column(name = "BIRTHDATE", length = 7)
    private Date birthdate;

    @Column(name = "SEX", length =10)
    private String sex;

    public Person() {
    }

    public Person(BigDecimal id) {
        this.id = id;
    }

    public Person(BigDecimal id, String name, String surname, Date birthdate, String sex) {
        this.id = id;
        this.name = name;
        this.surname = surname;
        this.birthdate = birthdate;
        this.sex = sex;
    }

    public BigDecimal getId() {
        return this.id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return this.surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public Date getBirthdate() {
        return this.birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
</pre>
<p>The implementation is pretty straight forward. With the annotation <em>@Entity</em> we defined that the <em>Persons.java</em> is an entity that represents the persistent object. With  <em>@Table</em> we defined that the our <em>Persons.java</em> class is mapped with the table <em>PERSONS</em> in the schema <em>YOUR_SCHEMA</em>. We also defined the <em>Primary Key</em> that is the <em>id</em> using the <em>@Id</em> annotation. Finally we used the <em>@Column</em> annotation to map our DB columns.</p>
<p>Now in order for our changes to work we have to change our hibernate.cfg.xml. Instead of mapping the resource of Person.hbm.xml we will now map the class Persons.java:</p>
<p>Before:</p>
<pre>
&lt;mapping resource=&quot;gr/persons/entities/Person.hbm.xml&quot;/&gt;
</pre>
<p>After:</p>
<pre>
&lt;mapping class=&quot;gr.persons.entities.Person&quot;/&gt;
</pre>
<p>An other thing we must note is that in our HibernateUtil.java class we create our Session Factory based on AnnotationConfiguration. </p>
<pre>
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
</pre>
<p>This is needed for annotations to work. If we use Configuration, it will not work.</p>
<p>P.S Special thanks to <a href="http://saperduper.org">SaperDuper </a>that motivated me to write the annotated version of the previous tutorial <img src='http://blog.patouchas.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;layout=standard&amp;show-faces=true&amp;width=350&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:350px; height:60px;"></iframe></div><!-- PHP 5.x --><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;linkname=Hibernate%20Mapping%20with%20Annotations" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;linkname=Hibernate%20Mapping%20with%20Annotations" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;linkname=Hibernate%20Mapping%20with%20Annotations" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;linkname=Hibernate%20Mapping%20with%20Annotations" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;linkname=Hibernate%20Mapping%20with%20Annotations" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;linkname=Hibernate%20Mapping%20with%20Annotations" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;linkname=Hibernate%20Mapping%20with%20Annotations" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;linkname=Hibernate%20Mapping%20with%20Annotations" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;linkname=Hibernate%20Mapping%20with%20Annotations" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fjava%2Fhibernate-mapping-with-annotations%2F&amp;linkname=Hibernate%20Mapping%20with%20Annotations">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://blog.patouchas.net/technology/java/hibernate-mapping-with-annotations/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hibernate &#8211; DAO &#8211; Java Tutorial</title>
		<link>http://blog.patouchas.net/technology/hibernate-dao-java-tutorial/</link>
		<comments>http://blog.patouchas.net/technology/hibernate-dao-java-tutorial/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 06:50:00 +0000</pubDate>
		<dc:creator>Leonidas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[dao]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[persistence]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.patouchas.net/?p=320</guid>
		<description><![CDATA[
			
				
			
This tutorial will show how to use Database Access Objects using Hibernate in your java application.
To begin with we should create a table with a primary key. For this example we will create a table named Person with columns: ID, NAME, SURNAME, BIRTHDATE, SEX.We will use as PK the ID filed.
We will create a new [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
<p>			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F"></p>
<p>				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;source=morpheous83&amp;style=compact" height="61" width="50" /></p>
<p>			</a></p></div>
<p>This tutorial will show how to use Database Access Objects using Hibernate in your java application.</p>
<p>To begin with we should create a table with a primary key. For this example we will create a table named <em>Person</em> with columns: <em>ID, NAME, SURNAME, BIRTHDATE, SEX</em>.We will use as PK the <em>ID</em> filed.</p>
<p>We will create a new java project named <em>Persons </em>in NetBeans and add in libraries the appropriate library according to the DB that we will use. In my case, that I use an oracle DB it is the ojdbc driver. Also change the main package to <em>gr.persons</em></p>
<ul>
<li><strong>Hibernate Configuration</strong></li>
</ul>
<p>NetBeans is really helpful when it comes to generating the hibernate configuration file and also the entities from the DB. Select your project and go to<em> New &#8211; Hibernate – Hibernate Configuration Wizard</em>. After you select your select your DB connection your<em>hibernate.cfg.xml</em> will be generated. Open the generated file and add this line under the last property:</p>
<pre>
[...]
    &lt;!-- Enable Hibernate&#039;s automatic session context management --&gt;
    &lt;property name=&quot;current_session_context_class&quot;&gt;thread&lt;/property&gt;</pre>
<p>Your <em>hibernate.cfg.xml</em> should now look like this:</p>
<pre>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE hibernate-configuration PUBLIC &quot;-//Hibernate/Hibernate Configuration DTD 3.0//EN&quot; &quot;http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd&quot;&gt;
&lt;hibernate-configuration&gt;
  &lt;session-factory&gt;
    &lt;property name=&quot;hibernate.dialect&quot;&gt;org.hibernate.dialect.OracleDialect&lt;/property&gt;
    &lt;property name=&quot;hibernate.connection.driver_class&quot;&gt;oracle.jdbc.OracleDriver&lt;/property&gt;
    &lt;property name=&quot;hibernate.connection.url&quot;&gt;jdbc:oracle:thin:@171.0.0.0:1522:SID&lt;/property&gt;
    &lt;property name=&quot;hibernate.connection.username&quot;&gt;YOUR_SCHEMA&lt;/property&gt;
    &lt;property name=&quot;hibernate.connection.password&quot;&gt;YOUR_SCHEMA&lt;/property&gt;
    &lt;!-- Enable Hibernate&#039;s automatic session context management --&gt;
    &lt;property name=&quot;current_session_context_class&quot;&gt;thread&lt;/property&gt;
  &lt;/session-factory&gt;
&lt;/hibernate-configuration&gt;
</pre>
<p><small>* note here that YOUR_SCHEMA and the <em>hibernate.connection.url </em>will be according to your DB connection.</small></p>
<p>By the way, leave your <em>hibernate.cfg.xml</em> in the default package. It’s not the best practice, but for now leave it there.</p>
<p>Now in order to generate our POJO and map it with the DB we should first create a <em>reveng.xml</em> file. Again select your project and choose <em>New &#8211;  Hibernate &#8211; Hibernate Reverse Engineering Wizard</em>. The wizard will connect to the DB based on the configurations in the <em>hibernate.cfg.xml</em> and it will prompt you to choose the wanted table(s). In our case we will choose the table Person.<br />
<small>*Note here, that if a table does not have a PK then we will not be able to generate the pojos and map it.</small></p>
<p>Now we are ready to generate our POJO and its mapping. Once again, select your project and go to <em>New &#8211; Hibernate – Hibernate Mapping Files and POJOs from Database</em>. Put them in a package <em>gr.persons.entities</em>.</p>
<p>Now in that package you will see a  <em>Person.java</em> and also a <em>Person.hbm.xml</em> file. You have your object and it’s mapping accordingly. Moreover, if you go to <em>hibernate.cfg.xml</em> you will see that now it has also a mapping resource that points to the <em>Person.hbm.xml</em> file (line 12):</p>
<pre>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE hibernate-configuration PUBLIC &quot;-//Hibernate/Hibernate Configuration DTD 3.0//EN&quot; &quot;http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd&quot;&gt;
&lt;hibernate-configuration&gt;
  &lt;session-factory&gt;
    &lt;property name=&quot;hibernate.dialect&quot;&gt;org.hibernate.dialect.OracleDialect&lt;/property&gt;
    &lt;property name=&quot;hibernate.connection.driver_class&quot;&gt;oracle.jdbc.OracleDriver&lt;/property&gt;
    &lt;property name=&quot;hibernate.connection.url&quot;&gt;jdbc:oracle:thin:@171.0.0.0:1522:SID&lt;/property&gt;
    &lt;property name=&quot;hibernate.connection.username&quot;&gt;YOUR_SCHEMA&lt;/property&gt;
    &lt;property name=&quot;hibernate.connection.password&quot;&gt;YOUR_SCHEMA&lt;/property&gt;
    &lt;!-- Enable Hibernate&#039;s automatic session context management --&gt;
    &lt;property name=&quot;current_session_context_class&quot;&gt;thread&lt;/property&gt;
    &lt;mapping resource=&quot;gr/persons/entities/Person.hbm.xml&quot;/&gt;
  &lt;/session-factory&gt;
&lt;/hibernate-configuration&gt;
</pre>
<p>By the above steps we have configured Hibernate and we have finished with the configurations for our connection and mapping with the DB.</p>
<p>Hibernate is using <em>SessionFactory </em>to manage <em>Sessions</em>. These objects are quite heavy when it comes to resources and we have to be careful on how we use them in our application. That is why we will create a very common class, the <em>HibernateUtil </em>class that will manage our session. We can create a HibernateUtil class from NetBeans directly but we will create our own which will contain some more goodies.</p>
<p>HibernateUtil class</p>
<pre>
package gr.persons.utils;

import org.hibernate.Session;
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.SessionFactory;

/**
*
* @author leonidas
*/
public class HibernateUtil {

private static final SessionFactory sessionFactory;

static {
try {
// Create the SessionFactory from standard (hibernate.cfg.xml)
// config file.
sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();
} catch (Throwable ex) {
// Log the exception.
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}

public static SessionFactory getSessionFactory() {
return sessionFactory;
}

public static Session beginTransaction() {
Session hibernateSession = HibernateUtil.getSession();
hibernateSession.beginTransaction();
return hibernateSession;
}

public static void commitTransaction() {
HibernateUtil.getSession().getTransaction().commit();
}

public static void rollbackTransaction() {
HibernateUtil.getSession().getTransaction().rollback();
}

public static void closeSession() {
HibernateUtil.getSession().close();
}

public static Session getSession() {
Session hibernateSession = sessionFactory.getCurrentSession();
return hibernateSession;
}
}
</pre>
<p>As you can see from the HibernateUtil class, we have the Session, opening, committing and rolling back a transaction. We will use numerous times this methods in our application.</p>
<p>Now we are ready to use hibernate.</p>
<ul>
<li><strong>Database Access Objects (DAO)</strong></li>
</ul>
<p>It is not necessery to create DAO&#8217;s (Database Access Objects) in order to use hibernate from now on. However, it is better to seperate the implementation of the persisten framwork and the database layer from the rest of our application. It makes our application more flexible and better stuctured. </p>
<p>A good practice is to create a generic DAO that will be used from all of our specific DAO’s since some operations are common among all DAO’s. Our generic DAO will implement methods like save, merge, delete, findAll, findByID, findMany and findOne.</p>
<p>GenericDAO interface</p>
<pre>
package gr.persons.dao;

/**
 *
 * @author leonidas
 */
import java.io.*;
import java.math.BigDecimal;
import java.util.*;
import org.hibernate.Query;

public interface GenericDAO&lt;T, ID extends Serializable&gt; {

    public void save(T entity);

    public void merge(T entity);

    public void delete(T entity);

    public List&lt;T&gt; findMany(Query query);

    public T findOne(Query query);

    public List findAll(Class clazz);

    public T findByID(Class clazz, BigDecimal id);
}
</pre>
<p>GenericDAOImpl abstract class</p>
<pre>
package gr.persons.dao;

import gr.persons.utils.HibernateUtil;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;

/**
 *
 * @author leonidas
 */
public abstract class GenericDAOImpl&lt;T, ID extends Serializable&gt; implements GenericDAO&lt;T, ID&gt; {

    protected Session getSession() {
        return HibernateUtil.getSession();
    }

    public void save(T entity) {
        Session hibernateSession = this.getSession();
        hibernateSession.saveOrUpdate(entity);
    }

    public void merge(T entity) {
        Session hibernateSession = this.getSession();
        hibernateSession.merge(entity);
    }

    public void delete(T entity) {
        Session hibernateSession = this.getSession();
        hibernateSession.delete(entity);
    }

    public List&lt;T&gt; findMany(Query query) {
        List&lt;T&gt; t;
        t = (List&lt;T&gt;) query.list();
        return t;
    }

    public T findOne(Query query) {
        T t;
        t = (T) query.uniqueResult();
        return t;
    }

    public T findByID(Class clazz, BigDecimal id) {
        Session hibernateSession = this.getSession();
        T t = null;
        t = (T) hibernateSession.get(clazz, id);
        return t;
    }

    public List findAll(Class clazz) {
        Session hibernateSession = this.getSession();
        List T = null;
        Query query = hibernateSession.createQuery(&quot;from &quot; + clazz.getName());
        T = query.list();
        return T;
    }
}
</pre>
<p>In our application we have only the <em>Person </em>class, so we will create the interface <em>PersonDAO </em>that will <strong>extend </strong>the <em>GenericDAO </em>and the class <em>PersonDAOImpl </em>that will <strong>extend </strong>the GenericDAOImpl and <strong>implement </strong>the PersonDAO. This is a common practice. For each and every DAO that we will create we will follow the same steps.</p>
<p>PersonDAO inteface</p>
<pre>
package gr.persons.dao;

import gr.persons.entities.Person;
import java.math.BigDecimal;

/**
 *
 * @author leonidas
 */
public interface PersonDAO extends GenericDAO&lt;Person, BigDecimal&gt; {
}
</pre>
<p>PersonDAOImpl class</p>
<pre>
package gr.persons.dao;

import gr.persons.entities.Person;
import gr.persons.utils.HibernateUtil;
import java.math.BigDecimal;
import org.hibernate.Query;

/**
 *
 * @author leonidas
 */
public class PersonDAOImpl extends GenericDAOImpl&lt;Person, BigDecimal&gt; implements PersonDAO {
}
</pre>
<p>In a way, someone could say that we are now ready. We can call the ProductDAO and start loading, saving objects e.t.c<br />
For example:</p>
<pre>
PersonDAO personDAO = new PersonDAOImpl();
[...]
personDAO.findByID(null, BigDecimal.valueOf(1));
[...]
personDAO.save(person);
[...]
personDAO.findAll(Person.class);
[...]
personDAO.findOne(query);
</pre>
<p>Well&#8230; yes, this is functional of course but we are almost there!</p>
<p>First of all, we might want to find a person by its name and surname. This can be done by using the GenericDAO’s <em>findOne(query)</em> method. We could write in our program:</p>
<pre>
[...]
Person person = null;
String name = "John";
String surname = "Doe";
String sql = "SELECT p FROM Person p WHERE p.name = :name AND p.surname = :surname";
HibernateUtil.beginTransaction();
Query query = HibernateUtil.getSession().createQuery(sql).setParameter("name", name).setParameter("surname", surname);
person = findOne(query);
HibernateUtil.commitTransaction();
[...]
</pre>
<p><small>*Note that in the highlighted lines, we used the HibernateUtil to begin our transaction and also to commit our transaction.</small></p>
<p>This will do the job but it is better to create a segmentation in our code. Why not implement it inside our <em>PersonDAO</em>? This is what we will do, this is why we created the DAO&#8217;s at the fist place. We will change the <em>PersonDAO </em>and <em>PersonDAOImpl </em>like this:</p>
<p>PersonDAO</p>
<pre>
package gr.persons.dao;

import gr.persons.entities.Person;
import java.math.BigDecimal;

/**
 *
 * @author leonidas
 */
public interface PersonDAO extends GenericDAO&lt;Person, BigDecimal&gt; {

    public Person findByName(String name, String surname);
}
</pre>
<p>PersonDAOImpl</p>
<pre>
package gr.persons.dao;

import gr.persons.entities.Person;
import gr.persons.utils.HibernateUtil;
import java.math.BigDecimal;
import org.hibernate.Query;

/**
 *
 * @author leonidas
 */
public class PersonDAOImpl extends GenericDAOImpl&lt;Person, BigDecimal&gt; implements PersonDAO {

    public Person findByName(String name, String surname) {
        Person person = null;
        String sql = &quot;SELECT p FROM Person p WHERE p.name = :name AND p.surname = :surname&quot;;
        Query query = HibernateUtil.getSession().createQuery(sql).setParameter(&quot;name&quot;, name).setParameter(&quot;surname&quot;, surname);
        person = findOne(query);
        return person;
    }
}
</pre>
<p>Now <em>PersonDAO </em>except the methods that inherits from <em>GenericDAO </em>it is also providing the <em>findByName </em>method.</p>
<p>We are now one step before finishing with the DAO design. Actually, we finished with the DAO design, we will no just use them.</p>
<p>Now we will create the classes that will manage our programs business logic. As you have noticed, our DAO’s do not have any transactions inside. That is crucial. We should never add transactions to our DAO’s since we should leave that logic outside of them. Let’s say for example that we might want to deal as one transaction the deletion of one object the update of an other one and the query for a third one.  If we had transactions inside the save, delete and find methods of our DAO’s then we could not accomplish that.</p>
<p>That is why we will create a class that will manage our business logic and will talk with our DAO’s when it needs to interact with the DB. We will call them managers, <em>PersonManager.class</em>. <em>PersonManager</em> will implement our business logic and when they need to interact with the persistence it will call the <em>PersonDAO</em>. In our case, the <em>PersonManager </em>will not implement elaborate business, just the basics.</p>
<p>PersonManager interface</p>
<pre>
package gr.persons.session;

import gr.persons.entities.Person;
import java.math.BigDecimal;
import java.util.List;

/**
 *
 * @author leonidas
 */
public interface PersonManager {

    public Person findByPersonName(String name, String surname);

    public List&lt;Person&gt; loadAllPersons();

    public void saveNewPerson(Person person);

    public Person findPersonById(BigDecimal id);

    public void deletePerson(Person person);
}
</pre>
<p>PersonManagerImpl class</p>
<pre>
package gr.persons.session;

import gr.persons.dao.PersonDAOImpl;
import gr.persons.entities.Person;
import gr.persons.utils.HibernateUtil;
import gr.persons.dao.PersonDAO;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.NonUniqueResultException;
import org.hibernate.HibernateException;

/**
 *
 * @author leonidas
 */
public class PersonManagerImpl implements PersonManager {

    private PersonDAO personDAO = new PersonDAOImpl();

    public Person findByPersonName(String name, String surname) {
        Person person = null;
        try {
            HibernateUtil.beginTransaction();
            person = personDAO.findByName(name, surname);
            HibernateUtil.commitTransaction();
        } catch (NonUniqueResultException ex) {
            System.out.println(&quot;Handle your error here&quot;);
            System.out.println(&quot;Query returned more than one results.&quot;);
        } catch (HibernateException ex) {
            System.out.println(&quot;Handle your error here&quot;);
        }
        return person;
    }

    public List&lt;Person&gt; loadAllPersons() {
        List&lt;Person&gt; allPersons = new ArrayList&lt;Person&gt;();
        try {
            HibernateUtil.beginTransaction();
            allPersons = personDAO.findAll(Person.class);
            HibernateUtil.commitTransaction();
        } catch (HibernateException ex) {
            System.out.println(&quot;Handle your error here&quot;);
        }
        return allPersons;
    }

    public void saveNewPerson(Person person) {
        try {
            HibernateUtil.beginTransaction();
            personDAO.save(person);
            HibernateUtil.commitTransaction();
        } catch (HibernateException ex) {
            System.out.println(&quot;Handle your error here&quot;);
            HibernateUtil.rollbackTransaction();
        }
    }

    public Person findPersonById(BigDecimal id) {
        Person person = null;
        try {
            HibernateUtil.beginTransaction();
            person = (Person) personDAO.findByID(Person.class, id);
            HibernateUtil.commitTransaction();
        } catch (HibernateException ex) {
            System.out.println(&quot;Handle your error here&quot;);
        }
        return person;
    }

    public void deletePerson(Person person) {
        try {
            HibernateUtil.beginTransaction();
            personDAO.delete(person);
            HibernateUtil.commitTransaction();
        } catch (HibernateException ex) {
            System.out.println(&quot;Handle your error here&quot;);
            HibernateUtil.rollbackTransaction();
        }
    }
}
</pre>
<p>This was it. We are now 100% ready to continue with the rest of our application.</p>
<p>To sum up, we have our generic DAO’s that implement methods that are common among all DAO’s. We have our specific DAO’s that are extending the generic DAO’s and also adding their own methods and finally we have the managers that enclose the business logic of our application.</p>
<p>Now, we can call from our main class the manager and execute whatever we want:</p>
<pre>
PersonManager personManager = new PersonManagerImpl();

Person wanted = personManager.findByPersonName("Steven", "Seagal");

Person chuck = new Person(BigDecimal.valueOf(5), "Chuck", "Norris",new Date(), "Male");

personManager.saveNewPerson(chuck);

List allPersons = personManager.loadAllPersons();
</pre>
<p>You can find the full NetBeans project <a href="http://blog.patouchas.net/wp-content/uploads/2011/07/Persons.rar">here</a>. Note that you will have to change the schema in the hibernate.reveng.xml (match-schema=&#8221;BSCS_TEST&#8221;),  Person.hbm.xml (schema=&#8221;YOUR_SCHEMA&#8221;). Also, you should change the hibernate.cfg.xml according to your DB connection.</p>
<p>P.S The ID of the Person is type of BigDecimal. This is due to oracle&#8217;s Number variable. In your example it my be, int or long or whatever!</p>
<p>EDIT:<br />
If you want to map your POJO with annotations and not the .hbm.xml file take a look at <a href="http://blog.patouchas.net/technology/java/hibernate-mapping-with-annotations/">this post</a>.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;layout=standard&amp;show-faces=true&amp;width=350&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:350px; height:60px;"></iframe></div><!-- PHP 5.x --><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;linkname=Hibernate%20%26%238211%3B%20DAO%20%26%238211%3B%20Java%20Tutorial" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;linkname=Hibernate%20%26%238211%3B%20DAO%20%26%238211%3B%20Java%20Tutorial" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;linkname=Hibernate%20%26%238211%3B%20DAO%20%26%238211%3B%20Java%20Tutorial" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;linkname=Hibernate%20%26%238211%3B%20DAO%20%26%238211%3B%20Java%20Tutorial" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;linkname=Hibernate%20%26%238211%3B%20DAO%20%26%238211%3B%20Java%20Tutorial" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;linkname=Hibernate%20%26%238211%3B%20DAO%20%26%238211%3B%20Java%20Tutorial" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;linkname=Hibernate%20%26%238211%3B%20DAO%20%26%238211%3B%20Java%20Tutorial" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;linkname=Hibernate%20%26%238211%3B%20DAO%20%26%238211%3B%20Java%20Tutorial" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;linkname=Hibernate%20%26%238211%3B%20DAO%20%26%238211%3B%20Java%20Tutorial" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fhibernate-dao-java-tutorial%2F&amp;linkname=Hibernate%20%26%238211%3B%20DAO%20%26%238211%3B%20Java%20Tutorial">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://blog.patouchas.net/technology/hibernate-dao-java-tutorial/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>New Year, new toys</title>
		<link>http://blog.patouchas.net/personal/new-year-new-toys/</link>
		<comments>http://blog.patouchas.net/personal/new-year-new-toys/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 16:44:37 +0000</pubDate>
		<dc:creator>Leonidas</dc:creator>
				<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.patouchas.net/?p=310</guid>
		<description><![CDATA[
			
				
			
2011 came with two new toys for me.
First, a new lens for my precious Nikon D80. The Nikon 24mm f/2.8. I wanted for a while now a wide prime lens. They are ideal for street and indoors photography and their small size make them extremely portable. I was between the Nikon 28mm f/2.8 and the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
<p>			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F"></p>
<p>				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;source=morpheous83&amp;style=compact" height="61" width="50" /></p>
<p>			</a></p></div>
<p>2011 came with two new toys for me.</p>
<p style="text-align: justify;"><a href="http://blog.patouchas.net/wp-content/uploads/2011/01/24mmLens.png" rel="lightbox[310]" title="24mmLens"><img class="alignleft size-thumbnail wp-image-311" style="float: left; margin-right: 10px;" title="24mmLens" src="http://blog.patouchas.net/wp-content/uploads/2011/01/24mmLens-150x150.png" alt="" width="150" height="150" /></a>First, a new lens for my precious Nikon D80. The <a href="http://www.google.com/url?sa=t&amp;source=web&amp;cd=9&amp;sqi=2&amp;ved=0CFQQFjAI&amp;url=http%3A%2F%2Fwww.nikonusa.com%2FNikon-Products%2FProduct%2FCamera-Lenses%2F1919%2FAF-NIKKOR-24mm-f%25252F2.8D.html&amp;ei=4VcfTfnBBYKg8QPou42sBQ&amp;usg=AFQjCNFoTcakX5zwQNnsyXAT8bK8wgKRCw&amp;sig2=pIXPbG-tKjnKncxS21bryA">Nikon 24mm f/2.8</a>. I wanted for a while now a wide prime lens. They are ideal for street and indoors photography and their small size make them extremely portable. I was between the Nikon 28mm f/2.8 and the one I finally bought. The reviews for the latter were excellent (in contrast to the ones about the 28mm) and I managed to find it refurbished in a <em>I-have-to-buy-this-now</em> price. I haven&#8217;t tested it properly yet, so I can&#8217;t really provide any kind of feedback regarding its quality. I like the feeling of a prime lens though. They drive you towards more creative paths and make you think your frame a little bit more before you shoot. I love my Nikon 50mm f/1.8 also but it is too narrow for anything else than portraits in my humble opinion (especially for a DX camera). One more thing that is a plus for prime lenses is that they produce better quality photos than any zoom lens at their specific focal length (of course we are talking about lenses in the same quality / price category). Ideally, in the future I will acquire a zoom 70-300mm or a prime 105mm lens (i haven&#8217;t decide yet) to complete my lens arsenal!</p>
<p style="text-align: justify;"><a href="http://blog.patouchas.net/wp-content/uploads/2011/01/belkin.png" rel="lightbox[310]" title="belkin"><img class="alignleft size-thumbnail wp-image-313" style="float: left; margin-right: 10px;" title="belkin" src="http://blog.patouchas.net/wp-content/uploads/2011/01/belkin-115x150.png" alt="" width="115" height="150" /></a>Secondly, an exceptional <a href="http://bit.ly/fqsGAp">Belkin Bluetooth Music Receiver</a>! I didn&#8217;t even imagine that there were gadgets like this one out there! With this thing you can connect your iPhone with your speakers, home cinema system e.t.c through bluetooth and play your music wireless! Given the fact that I have all the music I would like to hear in my iPhone it is great to be able to hear on the fly my library through my sound system in the living room! A perfect gift, thanks guys!</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;layout=standard&amp;show-faces=true&amp;width=350&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:350px; height:60px;"></iframe></div><!-- PHP 5.x --><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;linkname=New%20Year%2C%20new%20toys" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;linkname=New%20Year%2C%20new%20toys" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;linkname=New%20Year%2C%20new%20toys" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;linkname=New%20Year%2C%20new%20toys" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;linkname=New%20Year%2C%20new%20toys" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;linkname=New%20Year%2C%20new%20toys" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;linkname=New%20Year%2C%20new%20toys" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;linkname=New%20Year%2C%20new%20toys" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;linkname=New%20Year%2C%20new%20toys" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fpersonal%2Fnew-year-new-toys%2F&amp;linkname=New%20Year%2C%20new%20toys">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://blog.patouchas.net/personal/new-year-new-toys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ιστοριες ΙΚΑ V.1</title>
		<link>http://blog.patouchas.net/greece/public-sector/%ce%b9%cf%83%cf%84%ce%bf%cf%81%ce%b9%ce%b5%cf%82-%ce%b9%ce%ba%ce%b1-v-1/</link>
		<comments>http://blog.patouchas.net/greece/public-sector/%ce%b9%cf%83%cf%84%ce%bf%cf%81%ce%b9%ce%b5%cf%82-%ce%b9%ce%ba%ce%b1-v-1/#comments</comments>
		<pubDate>Mon, 27 Dec 2010 16:18:04 +0000</pubDate>
		<dc:creator>Leonidas</dc:creator>
				<category><![CDATA[Public Sector]]></category>
		<category><![CDATA[ικα δημοσιο ελλαδα]]></category>

		<guid isPermaLink="false">http://blog.patouchas.net/?p=304</guid>
		<description><![CDATA[
			
				
			
Κλεινεις ραντεβού στο Ι.Κ.Α 40 μέρες μετα το αρχικό τηλεφώνημα στο κεντρο και αισθάνεσαι ευτυχισμένος. Φτάνει η μέρα που έχεις το ραντεβού και αφού συμβουλευτεις τον κατάλογο με τις απεργιακές κινητοποιήσεις της ημέρας και αισθανθεις σαν να επιασες 6αρι στο Λοττο αφού τυχαίνει να μην απεργούν οι γιατροί σήμερα πας τρισευτυχισμενος στον γιατρό!
-Καλησπερα, ενα χαρτί [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
<p>			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F"></p>
<p>				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;source=morpheous83&amp;style=compact" height="61" width="50" /></p>
<p>			</a></p></div>
<p style="text-align: justify;">Κλεινεις ραντεβού στο Ι.Κ.Α 40 μέρες μετα το αρχικό τηλεφώνημα στο κεντρο και αισθάνεσαι ευτυχισμένος. Φτάνει η μέρα που έχεις το ραντεβού και αφού συμβουλευτεις τον κατάλογο με τις απεργιακές κινητοποιήσεις της ημέρας και αισθανθεις σαν να επιασες 6αρι στο Λοττο αφού τυχαίνει να μην απεργούν οι γιατροί σήμερα πας τρισευτυχισμενος στον γιατρό!</p>
<blockquote><p style="text-align: justify;">-Καλησπερα, ενα χαρτί για κολυμβητήριο θα ήθελα.</p>
<p style="text-align: justify;">-Α, δεν βγάζουμε εδώ τέτοια, πρέπει να πατε στα δημοτικά ιατρεία, πρωινές ώρες.</p>
</blockquote>
<p>  Τι έγινε ρε παιδιά;</p>
<p style="text-align: justify;">Αναρωτιέμαι με το 16% του μισθού μας τι ιδιωτική ιατρική περίθαλψη θα είχαμε;  </p>
<p style="text-align: justify;">Υ.Γ πρώτο post από το wordpress iPhone app. So an so&#8230;.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;layout=standard&amp;show-faces=true&amp;width=350&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:350px; height:60px;"></iframe></div><!-- PHP 5.x --><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;linkname=%CE%99%CF%83%CF%84%CE%BF%CF%81%CE%B9%CE%B5%CF%82%20%CE%99%CE%9A%CE%91%20V.1" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;linkname=%CE%99%CF%83%CF%84%CE%BF%CF%81%CE%B9%CE%B5%CF%82%20%CE%99%CE%9A%CE%91%20V.1" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;linkname=%CE%99%CF%83%CF%84%CE%BF%CF%81%CE%B9%CE%B5%CF%82%20%CE%99%CE%9A%CE%91%20V.1" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;linkname=%CE%99%CF%83%CF%84%CE%BF%CF%81%CE%B9%CE%B5%CF%82%20%CE%99%CE%9A%CE%91%20V.1" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;linkname=%CE%99%CF%83%CF%84%CE%BF%CF%81%CE%B9%CE%B5%CF%82%20%CE%99%CE%9A%CE%91%20V.1" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;linkname=%CE%99%CF%83%CF%84%CE%BF%CF%81%CE%B9%CE%B5%CF%82%20%CE%99%CE%9A%CE%91%20V.1" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;linkname=%CE%99%CF%83%CF%84%CE%BF%CF%81%CE%B9%CE%B5%CF%82%20%CE%99%CE%9A%CE%91%20V.1" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;linkname=%CE%99%CF%83%CF%84%CE%BF%CF%81%CE%B9%CE%B5%CF%82%20%CE%99%CE%9A%CE%91%20V.1" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;linkname=%CE%99%CF%83%CF%84%CE%BF%CF%81%CE%B9%CE%B5%CF%82%20%CE%99%CE%9A%CE%91%20V.1" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fgreece%2Fpublic-sector%2F%25ce%25b9%25cf%2583%25cf%2584%25ce%25bf%25cf%2581%25ce%25b9%25ce%25b5%25cf%2582-%25ce%25b9%25ce%25ba%25ce%25b1-v-1%2F&amp;linkname=%CE%99%CF%83%CF%84%CE%BF%CF%81%CE%B9%CE%B5%CF%82%20%CE%99%CE%9A%CE%91%20V.1">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://blog.patouchas.net/greece/public-sector/%ce%b9%cf%83%cf%84%ce%bf%cf%81%ce%b9%ce%b5%cf%82-%ce%b9%ce%ba%ce%b1-v-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SendtoDropbox</title>
		<link>http://blog.patouchas.net/technology/sendtodropbox/</link>
		<comments>http://blog.patouchas.net/technology/sendtodropbox/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 10:37:41 +0000</pubDate>
		<dc:creator>Leonidas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[applestore]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[restrictions]]></category>
		<category><![CDATA[sandbox]]></category>
		<category><![CDATA[sendtodropbox]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://blog.patouchas.net/?p=297</guid>
		<description><![CDATA[
			
				
			
Dropbox is a great service and Dropbox iPhone app is a cool but inadequate application. The reason behind its inadequacy is Apple’s restrictions for all Applestore apps. All apps are sandboxed and can not use the iOS’s file system and its contents. Thus, from your dropbox iPhone app you can only upload photos or videos. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
<p>			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F"></p>
<p>				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;source=morpheous83&amp;style=compact" height="61" width="50" /></p>
<p>			</a></p></div>
<p style="text-align: justify;"><a href="http://www.dropbox.com/">Dropbox </a>is a great service and Dropbox iPhone app is a cool but inadequate application. The reason behind its inadequacy is Apple’s restrictions for all Applestore apps. All apps are <a href="http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/RuntimeEnvironment/RuntimeEnvironment.html#//apple_ref/doc/uid/TP40007072-CH2-SW3">sandboxed </a>and can not use the iOS’s file system and its contents. Thus, from your dropbox iPhone app you can only upload photos or videos. One more lucking feature of dropbox app is that you can not edit any of your files. If you have a jailbroken iPhone through you can easily edit your stuff with iFile but there is no option for uploading them to your dropbox. That’s kind of crappy if you ask me.</p>
<p style="text-align: justify;">To overcome this issue we can use the <a href="http://sendtodropbox.com/">sendtodropbox</a> service. Sendtodropbox creates a unique email address that pushes all the mails that receive to your dropbox. So you can simply email whatever file you want (through iFile) and in a few minutes it will be in your dropbox. By default the files are saved to Attachments / filename but it also has  some (limited) options you can choose from.</p>
<p style="text-align: justify;">I am using it a couple of days now and it “just works”. That’s enough for me!</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;layout=standard&amp;show-faces=true&amp;width=350&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:350px; height:60px;"></iframe></div><!-- PHP 5.x --><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;linkname=SendtoDropbox" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;linkname=SendtoDropbox" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;linkname=SendtoDropbox" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;linkname=SendtoDropbox" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;linkname=SendtoDropbox" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;linkname=SendtoDropbox" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;linkname=SendtoDropbox" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;linkname=SendtoDropbox" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;linkname=SendtoDropbox" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fsendtodropbox%2F&amp;linkname=SendtoDropbox">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://blog.patouchas.net/technology/sendtodropbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passwords Security and LastPass</title>
		<link>http://blog.patouchas.net/technology/passwords-security-and-lastpass/</link>
		<comments>http://blog.patouchas.net/technology/passwords-security-and-lastpass/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 20:01:44 +0000</pubDate>
		<dc:creator>Leonidas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[lastpass]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[two-factor]]></category>

		<guid isPermaLink="false">http://blog.patouchas.net/?p=257</guid>
		<description><![CDATA[
			
				
			
To remember usernames and passwords for the online services we use can be an extremely tedious procedure. What most people do (among them also me) is to have at least three passwords that start from the strongest, followed by the ok but not that safe one and finish with the “123456” one. We tend to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
<p>			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F"></p>
<p>				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;source=morpheous83&amp;style=compact" height="61" width="50" /></p>
<p>			</a></p></div>
<p style="text-align: justify;"><a href="http://blog.patouchas.net/wp-content/uploads/2010/11/lock.jpg" rel="lightbox[257]" title="Computer Security"><img class="alignleft size-medium wp-image-258" style="padding-right: 10px;" title="Computer Security" src="http://blog.patouchas.net/wp-content/uploads/2010/11/lock-300x199.jpg" alt="" width="300" height="199" /></a>To remember usernames and passwords for the online services we use can be an extremely tedious procedure. What most people do (among them also me) is to have at least three passwords that start from the strongest, followed by the ok but not that safe one and finish with the “123456” one. We tend to put our strong one to the most important websites like our email, facebook, online bank accounts and we distribute the other two among sites, forums, services that we do not use that often. Well, to start with, this is totally wrong. By doing this if someone finds out our main password then it has access to the most important piece of our online life.</p>
<p style="text-align: justify;">Having in mind that, most of us create multiple alternatives of our strong password based on a simple algorithm that can easily be remembered. So far so good. Having multiple passwords for our most important services and on top of that two more passwords for the less important, we can sleep safe at nights.</p>
<p style="text-align: justify;">What happens though, when we decide to change passwords? <span id="more-257"></span>The average user must change his passwords somewhere between six and twelve months. Not only it is kind of hard to recreate all these passwords but also most of the times it is impossible to remember all the sites, forums, services we have singed up and need to apply our changes. This leads to having accounts that will have a two or three version old password and in our next login attempt we will have to guess if we have changed it to the newest or not and so on.</p>
<p style="text-align: justify;">One solution would be to write down all our credentials per website and update them when we want to change our passwords. That sounds like a good solution but for me keeping our passwords not encrypted and to one place is exactly just like having one password. Especially if you keep that file to an online host service like you personal web server or a web storage service. If someone grants access there will have everything.</p>
<p style="text-align: justify;">Considering that absolute security is an ideal notion that we will never see in practice, I would like to bring to the table the password management systems. Systems like RoboForm, 1Password, AnyPassword, Sticky Password, Password Agent etc etc. I intentionally left out <a href="http://lastpass.com/">LastPass</a> which is the one I would like to talk about.</p>
<p style="text-align: justify;">To begin with, a short description about LastPass for all of you who have no idea about password management systems. LastPass is a hosted password security system that will host all your passwords on the cloud and you would only need a master password and its browser plug-in to access all your accounts.</p>
<p style="text-align: justify;">The first objection someone will have is about providing a service on the cloud all his passwords. LastPass does not save your actual passwords. It saves an encrypted key based on your password and also the encryption happens on the client side and not on the server side.</p>
<p style="text-align: justify;">Moreover, someone could wonder about the difference between having one master password and saving your passwords in a file? If someone obtains either of them then he has full access to everything. Well, this is where the  good stuff start! LastPass supports a <a title="Two-factor authentication" href="http://en.wikipedia.org/wiki/Two-factor_authentication">two-factor authentication</a>. What does that mean? In order to access your account you need your master password but also a token. After you activate the two-factor auth you have some options regarding the token (like a usb) but I personally prefer the <a href="http://helpdesk.lastpass.com/security-options/grid-multifactor-authentication/">Grid</a>. The Grid is like a crossword puzzle and after you successfully login with your master password the system will ask you to fill some random letters from the Grid in order for login to complete. Two-factor authentication raises the security standards and provides us with extra safety.</p>
<p style="text-align: justify;">In addition to that, if for any reason you do not want to use your master password you can simply use the <a href="http://helpdesk.lastpass.com/security-options/one-time-passwords/">One Time Password</a> feature of LastPass. You can create as many one time passwords you want and carry them with you to a usb stick or something. So, if you go to a net cafe or any not trusted computer you can use your one time password plus the Grid authentication to access your LastPass account. By doing that you raise your security level to the maximum!</p>
<p style="text-align: justify;">Finally, LastPass does what you would expect from a standard password management system. It can generate secure passwords, auto-logins you where you want, has secure notes and you can do all these from a nice browser extension (safari, firefox, chrome, IE) to any platform you use.</p>
<p style="text-align: justify;">Those were the key features of LastPass, regarding security and the reason they make it a great tool for us to use. If you believe that LastPass fulfills your personal security standards then give it a try.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;layout=standard&amp;show-faces=true&amp;width=350&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:350px; height:60px;"></iframe></div><!-- PHP 5.x --><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;linkname=Passwords%20Security%20and%20LastPass" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;linkname=Passwords%20Security%20and%20LastPass" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;linkname=Passwords%20Security%20and%20LastPass" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;linkname=Passwords%20Security%20and%20LastPass" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;linkname=Passwords%20Security%20and%20LastPass" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;linkname=Passwords%20Security%20and%20LastPass" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;linkname=Passwords%20Security%20and%20LastPass" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;linkname=Passwords%20Security%20and%20LastPass" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;linkname=Passwords%20Security%20and%20LastPass" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fpasswords-security-and-lastpass%2F&amp;linkname=Passwords%20Security%20and%20LastPass">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://blog.patouchas.net/technology/passwords-security-and-lastpass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Think before you login. Firesheep.</title>
		<link>http://blog.patouchas.net/technology/think-before-you-login-firesheep/</link>
		<comments>http://blog.patouchas.net/technology/think-before-you-login-firesheep/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 19:00:47 +0000</pubDate>
		<dc:creator>Leonidas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[firesheep]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[sidejacking]]></category>

		<guid isPermaLink="false">http://blog.patouchas.net/?p=252</guid>
		<description><![CDATA[
			
				
			
While I was preparing a post about secure passwords and password management systems I run into this:

Well, we all knew it is possible, we all knew it is not that difficult but seeing it in action it is socking, to say the least! I installed it and tested it and of course it does what [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
<p>			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F"></p>
<p>				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;source=morpheous83&amp;style=compact" height="61" width="50" /></p>
<p>			</a></p></div>
<p>While I was preparing a post about secure passwords and password management systems I run into this:</p>
<p><object width="400" height="320"><param name="movie" value="http://www.youtube.com/v/eUyrMVkRTlI?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/eUyrMVkRTlI?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="320"></embed></object></p>
<p>Well, we all knew it is possible, we all knew it is not that difficult but seeing it in action it is socking, to say the least! I installed it and tested it and of course it does what it says. So from now on think twice what sites you are going to visit through an open Wi-Fi! </p>
<p><a href="http://codebutler.com/firesheep">Firesheep</a></p>
<p><a href="http://www.nerdtechnews.gr/2010/11/login-firesheep.html">via</a></p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;layout=standard&amp;show-faces=true&amp;width=350&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:350px; height:60px;"></iframe></div><!-- PHP 5.x --><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;linkname=Think%20before%20you%20login.%20Firesheep." title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;linkname=Think%20before%20you%20login.%20Firesheep." title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;linkname=Think%20before%20you%20login.%20Firesheep." title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;linkname=Think%20before%20you%20login.%20Firesheep." title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;linkname=Think%20before%20you%20login.%20Firesheep." title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;linkname=Think%20before%20you%20login.%20Firesheep." title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;linkname=Think%20before%20you%20login.%20Firesheep." title="Digg" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;linkname=Think%20before%20you%20login.%20Firesheep." title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;linkname=Think%20before%20you%20login.%20Firesheep." title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fthink-before-you-login-firesheep%2F&amp;linkname=Think%20before%20you%20login.%20Firesheep.">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://blog.patouchas.net/technology/think-before-you-login-firesheep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shredder Widget</title>
		<link>http://blog.patouchas.net/technology/shredder-widget/</link>
		<comments>http://blog.patouchas.net/technology/shredder-widget/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 20:24:27 +0000</pubDate>
		<dc:creator>Leonidas</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.patouchas.net/?p=244</guid>
		<description><![CDATA[
			
				
			

Every now and then we all want to delete once and for all some private files. Solutions for permanent deleting files are a lot. If you are not in Interpol or FBI&#8217;s black lists then just deleting files by sending them to the trash and empty it, is what you are used to do. This [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
<p>			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F"></p>
<p>				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;source=morpheous83&amp;style=compact" height="61" width="50" /></p>
<p>			</a></p></div>
<p><img class="alignleft size-full wp-image-245" style="padding-right: 10px;" title="shredder" src="http://blog.patouchas.net/wp-content/uploads/2010/09/shredder.jpg" alt="" width="174" height="147" /></p>
<p style="text-align: justify;">Every now and then we all want to delete once and for all some private files. Solutions for permanent deleting files are a lot. If you are not in Interpol or FBI&#8217;s black lists then just deleting files by sending them to the trash and empty it, is what you are used to do. This  will prevent (non-geeks) people to lay their eyes on your files. But if you could be a little bit more safe and do it with style why not give it a try?! <a href="http://www.apple.com/downloads/dashboard/business/shredder.html">Shredder Widget</a> does that for you! With three safety levels your dashboard widget promises you stylish and permanent<sup>*</sup> file deletions!</p>
<p>*<small>I wouldn&#8217;t put my money on that, it sure adds extra protection though.</small></p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;layout=standard&amp;show-faces=true&amp;width=350&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:350px; height:60px;"></iframe></div><!-- PHP 5.x --><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;linkname=Shredder%20Widget" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;linkname=Shredder%20Widget" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;linkname=Shredder%20Widget" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;linkname=Shredder%20Widget" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;linkname=Shredder%20Widget" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;linkname=Shredder%20Widget" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;linkname=Shredder%20Widget" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;linkname=Shredder%20Widget" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;linkname=Shredder%20Widget" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fshredder-widget%2F&amp;linkname=Shredder%20Widget">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://blog.patouchas.net/technology/shredder-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS4 and Battery Problems</title>
		<link>http://blog.patouchas.net/technology/ios4-and-battery-problems/</link>
		<comments>http://blog.patouchas.net/technology/ios4-and-battery-problems/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 16:25:46 +0000</pubDate>
		<dc:creator>Leonidas</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[drain]]></category>
		<category><![CDATA[jailbreak]]></category>
		<category><![CDATA[multitasking]]></category>

		<guid isPermaLink="false">http://blog.patouchas.net/?p=232</guid>
		<description><![CDATA[
			
				
			
iPhone 3Gs owners have been caught to be complaining about battery drain issues after they upgraded their precious iPhone&#8217;s to iOS4. I don&#8217;t blame them because after a week or so with Apple&#8217;s new operating system I might say that a slight problem indeed occurs but through a few steps it could be easily alleviated.
To [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
<p>			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F"></p>
<p>				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;source=morpheous83&amp;style=compact" height="61" width="50" /></p>
<p>			</a></p></div>
<p><a href="http://www.flickr.com/photos/morpheous1983/4901217257/"><img class="alignleft size-full wp-image-234" style="padding-right: 10px;" title="iphonesmall" src="http://blog.patouchas.net/wp-content/uploads/2010/08/iphonesmall.jpg" alt="" width="240" height="139" /></a>iPhone 3Gs owners have been caught to be complaining about battery drain issues after they upgraded their precious iPhone&#8217;s to iOS4. I don&#8217;t blame them because after a week or so with Apple&#8217;s new operating system I might say that a slight problem indeed occurs but through a few steps it could be easily alleviated.</p>
<p>To begin with, Apple&#8217;s <em>&#8220;pioneer and innovating&#8221;</em> multitasking system (multitasking that&#8217;s not actually multitasking but it&#8217;s something like a pseudo-multitasking trying to impersonate multitasking) is indeed a great upgrade and I sure love to download totally legal stuff from Installous while I am listening to streaming radio and browsing to the web but that kind of usage isn&#8217;t battery friendly at all. Especially,  if you tend to neglect closing applications that you were using previously and do not need anymore. I thought that iOS4 would be a little bit smarter and close some inactive apps after a while but it seems that it doesn&#8217;t!</p>
<p>So, what are the steps we need to follow to prevent us from the perpetual quest of feeding our iPhone&#8217;s with energy?</p>
<p>The answer is to <a title="Jailbreakme.com" href="http://www.jailbreakme.com/">Jailbreak you iPhone</a> and download sbsettings. By this mean you can monitor fast and with ease whichever applications are actually running at any time (cos iOS4 multitasking bar is showing both running and previously opened apps and that&#8217;s kind of confusing and not helpful at all). From sbsettings you can turn off any apps that are running and you do<br />
not want to use them any more. Some apps that are opened while you are doing something else are in &#8216;freeze&#8217; mode. That means that iOS4 had saved its state and will restore it when you reopen them while in the meantime the are inactive. You might think that that is ok and since the app is inactive it might not affect your battery.<br />
Well guess what? You are wrong, cos  iOS4 in order to <em>&#8220;freeze&#8221;</em> any app it has to use some of your limited RAM to store stuff. <span style="text-decoration: line-through;">More RAM in use more battery needed and so on</span> (well apparently this is a false statement!). Also, use the very handy <em>&#8220;Free Up Memory&#8221;</em> from sbsettings that does a great job!</p>
<p>One more thing I have noticed is that iOS4 more often drains battery faster than it should even if you have closed all the apps (phone and mail stay always on btw). I enjoy the goodies of iOS4 combined with jailbreak from the first day it sat on my iPhone so I don&#8217;t have non-jailbrake experience of the iOS4. Thus, I can&#8217;t really tell if this problem is iOS4&#8217;s or is caused byJailbreak. What I do know is that the solution is quite simple. If you notice that kind of behavior then just respring (from sbsettings again) your iPhone and in the 99% of the times the problem will be solved. If not, then just reboot.</p>
<p>To sum up, just try to close any app you exit when there is no reason for that app to operate under multitasking. Moreover, look every now an then sbsettings&#8217; processes tab for any unwanted running apps and also try to respring it once or twice per day. Finally, free some memory through sbsettings. That does the job for me and I am pretty sure it will do it for you to.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;layout=standard&amp;show-faces=true&amp;width=350&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:350px; height:60px;"></iframe></div><!-- PHP 5.x --><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;linkname=iOS4%20and%20Battery%20Problems" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;linkname=iOS4%20and%20Battery%20Problems" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;linkname=iOS4%20and%20Battery%20Problems" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;linkname=iOS4%20and%20Battery%20Problems" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;linkname=iOS4%20and%20Battery%20Problems" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;linkname=iOS4%20and%20Battery%20Problems" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;linkname=iOS4%20and%20Battery%20Problems" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;linkname=iOS4%20and%20Battery%20Problems" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;linkname=iOS4%20and%20Battery%20Problems" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.patouchas.net%2Ftechnology%2Fios4-and-battery-problems%2F&amp;linkname=iOS4%20and%20Battery%20Problems">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://blog.patouchas.net/technology/ios4-and-battery-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Opt Out</title>
		<link>http://blog.patouchas.net/web/social-networking/facebook-opt-out/</link>
		<comments>http://blog.patouchas.net/web/social-networking/facebook-opt-out/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 18:54:33 +0000</pubDate>
		<dc:creator>Leonidas</dc:creator>
				<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[opt out]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[settings]]></category>

		<guid isPermaLink="false">http://blog.patouchas.net/?p=226</guid>
		<description><![CDATA[
			
				
			
Ok this will be a fast one. I&#8217;m guessing most of you have heard about the new facebook&#8217;s privacy (and not only) changes. Facebook will more or less try to connect socially the hole web through its platform. Neat? Not really. Any way, that&#8217;s not the point. The thing is that once again our personal [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
<p>			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F"></p>
<p>				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;source=morpheous83&amp;style=compact" height="61" width="50" /></p>
<p>			</a></p></div>
<p style="text-align: justify;">Ok this will be a fast one. I&#8217;m guessing most of you have heard about the new facebook&#8217;s privacy (and not only) changes. Facebook will more or less try to connect socially the hole web through its platform. Neat? Not really. Any way, that&#8217;s not the point. The thing is that once again our personal data (that of course we chose to put in Facebook so that makes us more or less co-resposible) will be shared through the web without our will. Ha, it seems there is a way we can avoid that from happening!</p>
<p style="text-align: justify;">If you are a privacy freak like me then probably you won&#8217;t need to do anything since as I found out in my Facebook&#8217;s profile privacy settings page everything that has to be unchecked already was! For everyone else do the following:</p>
<ol style="text-align: justify;">
<li>go <a href="http://www.facebook.com/settings/?tab=privacy&amp;section=applications">here</a> and click edit setting. Then uncheck the check box!</li>
<li>then go <a href="http://www.facebook.com/settings/?tab=privacy&amp;section=applications&amp;field=friends_share">here</a> and uncheck everything.</li>
<li>and finaly go to <a href="http://www.facebook.com/apps/application.php?id=139475280761">pandora</a>, <a href="http://www.facebook.com/apps/application.php?id=97534753161">yelps</a> and <a href="http://www.facebook.com/docs">docs</a> application page and block them (click block on the top left of the page under the apps badge).</li>
</ol>
<p style="text-align: justify;">Thats it. Now you are free like a bird!</p>
<p style="text-align: justify;">P.S I&#8217;m guessing that more apps like pandora, yelps and docs, that we will have to manually block them in order to avoid using our data, will come&#8230; so keep your eyes open.</p>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;layout=standard&amp;show-faces=true&amp;width=350&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:350px; height:60px;"></iframe></div><!-- PHP 5.x --><a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;linkname=Facebook%20Opt%20Out" title="Twitter" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;linkname=Facebook%20Opt%20Out" title="Google Reader" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;linkname=Facebook%20Opt%20Out" title="Delicious" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;linkname=Facebook%20Opt%20Out" title="Facebook" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/friendfeed?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;linkname=Facebook%20Opt%20Out" title="FriendFeed" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/friendfeed.png" width="16" height="16" alt="FriendFeed"/></a> <a href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;linkname=Facebook%20Opt%20Out" title="Reddit" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a> <a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;linkname=Facebook%20Opt%20Out" title="Digg" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/linkedin?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;linkname=Facebook%20Opt%20Out" title="LinkedIn" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/linkedin.png" width="16" height="16" alt="LinkedIn"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;linkname=Facebook%20Opt%20Out" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://blog.patouchas.net/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fblog.patouchas.net%2Fweb%2Fsocial-networking%2Ffacebook-opt-out%2F&amp;linkname=Facebook%20Opt%20Out">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://blog.patouchas.net/web/social-networking/facebook-opt-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

