2011
05.13

Beberapa waktu yang lalu, saya mengalami sebuah keanehan pada project java saya. Saya menggunakan Spring 3.0.2, JPA 1 (denga implementasi Hibernate 3) dan database MySql.

Saya memiliki sebuah entity

@Entity
public class HandoverDoc implements IModel {
	private static final long serialVersionUID = -5756109522841752689L;
 
	@Id
	@GeneratedValue
	private Long id;
 
	@Basic(optional = false)
	private String key;
 
	public Long getId() {
		return id;
	}
 
	public void setId(Long id) {
		this.id = id;
	}
 
	public String getKey() {
		return key;
	}
 
	public void setKey(String key) {
		this.key = key;
	}
}

Di dalam entity di atas, saya memiliki property key
Dan ketika saya mendeploy dengan fasilitas auto generate ddl, ternyata entity di atas tidak tercreate tablenya. Berbeda kasus bila nama property key saya ubah menjadi key2

2011
04.02

Mindmap of Java EE 6 Technologies

Java EE 6 memiliki banyak spesifikasi di dalamnya. Salah satu cara untuk mempermudah pemahaman akan JEE 6 adalah dengan menggunakan mindmap.

Beberapa saat yang lalu, secara tidak sengaja saya mendapat link iniĀ http://www.fuin.org/files/jee-technologies.html. Di sana digambarkan tentang mapping JEE 6.

Semoga memberi kebaikan.

2011
02.09

SOFTWARE CRAFTMANSHIP

  1. PPP
  2. Clean Code
  3. Design Patterns
  4. Refactoring
  5. TDD + BDD
  6. DDD + CQRS
  7. Legacy Code
  8. DSL

CERTIFICATION

  1. SCWCD
  2. SCJWS

TECHNOLOGY

  1. Messaging
  2. SOA
  3. ESB
  4. BPM

WEBPRENEURSHIP

  1. eazyexam.com

OTHERS

  1. blackbeltfactory.com
  2. projecteuler.net
2011
02.07

My Next Desktop Application = Jetty + Vaadin + Mozilla Prism

No more Swing!!!

2011
02.05

Beberapa tahun yang lalu saya mengenal situs blackbeltfactory.com . Saya terkagum-kagum dengan situs ini. Selain karena UI nya yang menurut saya manis, juga karena konsep dan fitur web itu. Sering kali saya berusaha untuk mencari situs ini menggunakan teknologi apa, tapi ternyata tidak berhasil. Sampai akhirnya saya secara tidak sengaja membaca artikel ini.

Ternyata situs ini telah beberapa kali berganti framework (Struts 1+ JSP, Struts 2 + JSP, dan terkhir adalah vaadin). Ya, ternyata vaadin yang saat ini dipakai. Sudah lama saya tau framework vaadin, sayang saya belum pernah menggunakannya.

Semoga framework ini akan saya gunakan dalam my next project (or my next SaaS :d).

2011
01.07

Online business ideas are a dime a dozen. You can sell a lot of things on the web. You can sell bags, shoes, and apparel while the more absurd ideas run along the lines of celebrity hair and other crazy random things. After all, one man’s junk is another man’s treasure.

Silly products that you can sell online on eBay are one thing; creating sustainable online businesses are another. So what exactly do you look out for when it comes to online business ideas? Here are some tips that you may find helpful.

1. Keep an eye out for everyday problems you can solve.

By now, you should realize that the businesses that have been around for awhile are successful precisely because they are solving a problem for someone. Think very hard about this. What are the problems that you encounter while going to work or while making breakfast? Watch out for the times that you think to yourself, “Why can’t someone invent something that will help me with [insert problem]?” The ideas that come into your head might amaze you.

2. Check if the business idea can be done online.

There are pure online businesses and there are those traditional businesses that have websites and a traditional brick and mortar storefront. Businesses that have traditional storefronts usually realize that they can make twice as much if they set up an ecommerce store. And why not? The Internet has made it easier to reach clients from other states and all the way to China. The sky’s the limit. Stop putting borders around your business and start truly participating in the global economy.

Businesses that are purely online are another story. These are the eBay shops, the information blogs running on affiliate income and advertising, as well as a number of online applications that offer their services on a subscription basis. Of course, there are many more that you can come up with. It’s the Internet – anything is possible. An example of this would be “The Million Dollar Homepage” where the founder auctioned off one million pixels of his homepage. Starting out with the price of a dollar per pixel, it became an internet phenomenon and was being sold for more than that. The highest price was to the tune of $38,100. It just goes to show that the Internet is a real game-changer for businesses.

3. Put up a site and analyze later!

The funny thing about online business ideas is that it costs more to do extensive planning than to just execute the idea. At the very least, get the business model down pat and start building the website. The World Wide Web is awesome because the feedback is almost instantaneous. Unlike the real world where market feedback comes back after a few months or so, the Internet can give you immediate feedback in the form of analytics, user comments, and sales among other things. So stop over analyzing things and just put it up. You’ll be glad you did!

source : http://ezinearticles.com/?3-Tips-For-Finding-Online-Business-Ideas&id=4756741

2011
01.05

Di salah satu project, saya menggunakan Spring+swing. Nah, ada kebutuhan non fungsional yang mengharuskan aplikasi saya untuk dapat membaca file properties melalui command prompt. File properties ini digunakan untuk melakukan setting terhadap koneksi database.

Berikut adalah konfigurasi di xml spring saya :

<bean id    = "placeholderConfig"
      class = "org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
      <property name="location"><value>file:${MyProperties.fileName}</value></property>
</bean>
 
<bean id                = "dataSource"
      class             = "org.apache.commons.dbcp.BasicDataSource"
      p:driverClassName = "com.mysql.jdbc.Driver"
      p:url             = "jdbc:mysql://${db.ip}/${db.name}?zeroDateTimeBehavior=convertToNull"
      p:username        = "${db.username}"
      p:password        = "${db.password}"/>

Note : Perhatikan value dari property location dari bean placeholderConfig adalah file:${MyProperties.fileName}.

Untuk menset properties MyProperties.fileName dari command prompt, tinggal tambahkan baris berikut saat menjalankan aplikasinya

-DMyProperties.fileName=c:\\configs.properties

Maka aplikasi saya akan membaca file properties di c:\configs.properties

Kemudian, isi file dari c:\configs.properties adalah

db.ip=localhost
db.name=mydb
db.username=root
db.password=root
2010
12.25

Catatan SCJP 1.5

Alhamdulillah, akhirnya catatan-catatan saya ketika saya akan mengambil SCJP beberapa tahun yang lalu, sempat juga saya upload. Semoga bisa membawa kebaikan.

http://catatan.desdrianton.net/scjp/

2010
12.25

Belajar menjadi pengusaha sama seperti belajar berenang. Hal yang terpenting adalah memiliki keberanian untuk memulai dan mengambil risiko.

“Jadi, yang penting turun dulu. Ambil risiko. Sama seperti belajar berenang. Terjun saja dulu, basah dulu, kedinginan dulu,”

referensi : http://www.portalhr.com/beritahr/pengembangan/1id1302.html

2010
12.10

Al Inshirah

1. Bukankah Kami telah melapangkan untukmu dadamu?
2. dan Kami telah menghilangkan daripadamu bebanmu,
3. yang memberatkan punggungmu?
4. Dan Kami tinggikan bagimu sebutan (nama)mu,
5. Karena sesungguhnya sesudah kesulitan itu ada kemudahan,
6. sesungguhnya sesudah kesulitan itu ada kemudahan.
7. Maka apabila kamu telah selesai (dari sesuatu urusan), kerjakanlah dengan sungguh-sungguh (urusan) yang lain,
8. dan hanya kepada Tuhanmulah hendaknya kamu berharap.

1. Bukankah Kami telah melapangkan untukmu dadamu?

2. dan Kami telah menghilangkan daripadamu bebanmu,

3. yang memberatkan punggungmu?

4. Dan Kami tinggikan bagimu sebutan (nama)mu,

5. Karena sesungguhnya sesudah kesulitan itu ada kemudahan,

6. sesungguhnya sesudah kesulitan itu ada kemudahan.

7. Maka apabila kamu telah selesai (dari sesuatu urusan), kerjakanlah dengan sungguh-sungguh (urusan) yang lain,

8. dan hanya kepada Tuhanmulah hendaknya kamu berharap.