Dropbox invite

June 25, 2013

Hi, just in case anyone’s looking for a link to download the popular cloud storage Dropbox: http://db.tt/ZUUg29p


The Three Investigators eBooks

February 4, 2013

Found several eBooks of my favourite childhood series: The Three Investigators by Robert Arthur.

Click on the following titles to download the EPUB format:

Have fun catching up on those childhood memories!


How to sync multiple Google calendars to iPhone

January 9, 2013

By default, Google only syncs the default main calendar to mobile devices. Syncing multiple Google calendars to an iPhone is possible but not intuitive.

In order to sync multiple Google calendars, two important settings must be done on your iPhone:

  1. The “Mail, Contacts, Calendars” account must be configured as an Microsoft Exchange account instead of the presumed Gmail account
  2. Once set up and synced for the first time, fire up your iPhone browser to this address: https://m.google.com/sync/settings/iconfig/ (don’t miss out the trailing slash in the address!). From there just follow the steps to select up to 25 Google calendars to be synced with your iPhone

Hope this helps!

Source: http://climbtothestars.org/archives/2011/11/02/sync-multiple-google-calendars-on-iphone-finally-figured-it-out/


Generic DAO

November 23, 2010

This is based on Generic Data Access Objects on Hibernate forums. I modified it for JPA.

import java.lang.reflect.ParameterizedType;
import javax.persistence.EntityManager;

public abstract class GenericDAOImpl {
private Class persistentClass;
protected EntityManager em;

@SuppressWarnings("unchecked")
public GenericDAOImpl(EntityManager emgr) {
this.persistentClass = (Class) ((ParameterizedType) getClass()
.getGenericSuperclass()).getActualTypeArguments()[0];
this.em = emgr;
}

public T findById(ID id) {
T entity = em.find(persistentClass, id);
return entity;
}

public void create(T entity) {
em.persist(entity);
}

public void update(T entity) {
em.merge(entity);
}

public void remove(T entity) {
em.remove(entity);
}
}

Source of info: http://community.jboss.org/wiki/GenericDataAccessObjects#The_DAO_interfaces


Making Vista faster

March 19, 2009

Some handy tips on improving Vista’s performance. Get rid of bloat.

http://www.techsupportalert.com/make-vista-run-faster.htm


Starting JavaDB for Sun Portal Server

November 20, 2008

Starting/stopping JavaDB:

/usr/jdk/entsys-j2se/bin/java -classpath /opt/SUNWjavadb/lib/derby.jar:/opt/SUNWjavadb/lib/derbytools.jar:/opt/SUNWjavadb/lib/derbynet.jar -Dderby.system.home=/var/opt/SUNWportal/derby org.apache.derby.drda.NetworkServerControl <start|shutdown>

The process will be connected to the terminal from which it was started. To leave it running in the background, use the nohup command.

References: http://docs.sun.com/app/docs/doc/819-5025/6n74td5jt?a=view


Adding new disk to Solaris 10 on VMWare

November 19, 2008

A wonderful and thorough guide on adding new disks to Solaris 10 on VMWare:

http://blogs.sun.com/harcey/entry/solaris_x86_vmware_adding_a


Follow

Get every new post delivered to your Inbox.