Saturday, November 29, 2008

Booting LInux from external HDD on Eee Pc

Sometimes, it's necessary to be able to boot from external HDD on Laptop eg: Asus Eee Pc 701 or other brands. Most laptops today have more than enough capacity if you just want to browse the Internet, write documents, listen to audios and anything else.
But occassionaly, sometimes we want a little more. The smallest laptop eg the EeePC has at least 4GB, a capacity that was enough to strip down Linux, eg: Fedora.
But if we do so, it will reduce the hard disk capacity. and that's a little bit irritating. As a tricks, you can install Linux Fedora on an external drive instead, and use your fedora from the HDD. With Linux, that's an easy thing.

If you want to know how to install fedora as usual, you may find it here.

For this tutorial, i use:

These are the steps:

  1. Prepare the Fedora DVD.
  2. Connect external HDD and external DVD reader to Eee Pc
  3. Boot from the Fedora 10 DVD.
  4. Click thorugh the setting until you see fedora
  5. You should customize the partition table. Your partition setup should look like this:

sda - Eee Pc internal memory

[directory] - [file system] - [size]

/boot - ext3 - 4GB [min 100MB]

sdb - external HDD

[directory] - [file system] - [size]

/ - ext3 - 10GB

/home - ext3 - [allocate as large as you want]

swap - swap - 1GB

  1. You have to remember to force sda to be the primary partition.
  2. Continue with the installation 
  3. Okay, everything should be fine.

Thursday, November 27, 2008

NHibernate, Hibernate and Java

Hibernate is a library on java programming language. The function is as a framework top maps data bases on program's classes. So, the classes that will handles the CRUD (create, update and delete) functions and other transactional database functions.

While NHibernate is totally different with Hibernate. Prefix N shows that this platform was build and specifically designed for Microsoft's Net framework.

Although it's for Net framework, but this library is free and open source. The latest version of NHibernate while i write this post is 1.2, a version that already contains almost all features in Hibernate 3 for Java.

To know the details (eg how to use and utilize and also some tools to support NHibernate, just click these links:

http://www.nhibernate.org/
http://nhforge.org/

First time blogging using FLock

Although flock is already released some times ago. But today is my first try on it. Some of my initial impression about flock is:
  1. Superb WYSIWYG capabilities.
  2. Great Web 2.0 support.
  3. ALmost all well known social networks services are available from this.
  4. Free and open source.
  5. Light.
I recommend this software to be used daily by professionals or home bloggers.

Friday, October 17, 2008

Inserting Adsense on Drupa 6

From my experience on my other site that uses drupal. As you know, drupal has released it’s latest version (6) some months ago. And it offers many features.

But to tell you the truth, migrating a platform is a painful job. Just like what vista users’ face on their first attempt to use vista after using win xp, it’s also true for Drupal 5 users who migrate to drupal 6.

One of the important aspect is the adsense code insertion in Drupal 6. When i use drupal 5, there are many modules that let me insert adsense code easily. but now, most of it haven’t yet upgraded.

Then i use a block to insert adsense code. but it’s failed since html filtering changes the code automatically. But after browsing from some sources here and here. I finally managed to make adsense codes work for Drupal 6.

The answer is by changing the block’s option from HTML to PHP codes. Since I tried to insert Adsense code as a block within a Drupal 6 site (using html block), but it didn’t work. So, after searching for some answers, finally i found it in a thread on Drupal site.

One way of saving a block without the HTML filter being applied is to choose PHP Filter as input format. Then, my Adsense blocks work just fine.

Inserting Adsense on Drupa 6

From my experience on my other site that uses drupal. As you know, drupal has released it’s latest version (6) some months ago. And it offers many features.

But to tell you the truth, migrating a platform is a painful job. Just like what vista users’ face on their first attempt to use vista after using win xp, it’s also true for Drupal 5 users who migrate to drupal 6.

One of the important aspect is the adsense code insertion in Drupal 6. When i use drupal 5, there are many modules that let me insert adsense code easily. but now, most of it haven’t yet upgraded.

Then i use a block to insert adsense code. but it’s failed since html filtering changes the code automatically. But after browsing from some sources here and here. I finally managed to make adsense codes work for Drupal 6.

The answer is by changing the block’s option from HTML to PHP codes. Since I tried to insert Adsense code as a block within a Drupal 6 site (using html block), but it didn’t work. So, after searching for some answers, finally i found it in a thread on Drupal site.

One way of saving a block without the HTML filter being applied is to choose PHP Filter as input format. Then, my Adsense blocks work just fine.