Monday, June 27, 2011

junit-3.8.1.jar is used by
- slf4j-api-1.6.1.jar; and
- commons-pool-1.5.6.jar
- jcl-over-slf4j-1.6.1.jar

junit-4.4.jar is used by
- jgoodies-binding-2.0.6.jar
- miglayout-3.7.4.jar

slf4j-jdk14-1.6.1.jar is used by
jcl-over-slf4j-1.6.1.jar
log4j-over-slf4j-1.6.1.jar

todo :

1.
When sending sms, log it to database.
User can view the sent sms log.

2.
Modem setting such as :
- smsc number and etc.







948

Wednesday, June 22, 2011

Intellij IDEA Live Templates

iter Iteration according to Java SDK 1.5 style
inst Check object type with instanceof and downcast it
itco Iterate elements of java.util.Collection
itit Iterate elements of java.util.Iterator
itli Iterate elements of java.util.List
itve Iterate elements of java.util.List
iten Iterate elements of java.util.Enumeration
itar Iterate elements of array
ritar Iterate elements of array in reverse order
lst Fetch the last element of an array
toar Store elements of java.util.Collection into an array
mn Set lesser value to a variable
mx Set greater value to a variable
psf public static final
psvm main() method declaration
serr Print a string to System.err
sout Print a string to System.out
soutm Print current class and method names to System.out
soutv Print a value to System.out
thr throw new

Friday, June 17, 2011

try to use my cellphone as modem

important things :
java collection -> use map instead of list
google guava
apache common collection

ibatis
http://www.justingordon.org/2008/10/in-memory-dbs-for-tdd-h2-versus-hsqldb.html
It is relatively simple to switch between them. Mostly, it's a matter of switching the JDBC connection string.


http://www.encorewiki.org/display/encore/Open+Source+Databases+Comparison

http://stackoverflow.com/questions/2746201/which-is-better-h2-or-hsqldb
HSQLDB highly outperforms H2 in DDL operations as well as when starting/shutting down the instance, even for a small database.


http://3rdstage.blogspot.com/2009/03/comparion-of-hsqldb-h2-sqlite.html
http://database-management-systems.findthebest.com/compare/6-15-16/Apache-Derby-vs-HSQLDB-vs-H2


http://www.h2database.com/html/faq.html
running out of memory should be avoided. In older versions, OutOfMemory errors while using the database could corrupt a databases.



try ozeki in berghie's pc


tomorow:
create Common module
move common package to Common module



907

Wednesday, June 15, 2011

ozeki vs now
ozeki have more API support to java. both can send sms from java through http, but there is no java api in nowsms. ozeki has java api to send and receive sms through tcp.
http://www.ozekisms.com/index.php?owpn=584&infoe=java-sms-sdk-sms-over-tcp-ip
http://www.nowsms.com/discus/messages/1/24601.html

learn about jetty
http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty

The trial version of NowSMS has a 30 message per minute limitation.
http://www.nowsms.com/discus/messages/1/16578.html
Try enabling "SMS Access" = "GPRS" in the properties for the GSM modem in the "SMSC" list. 
P.S. - Keep in mind that you can also add additional modems to improve throughput.


SMSLib
1 sms per 3 seconds
19 sms / minute


947

Wednesday, June 8, 2011

Tuesday, June 7, 2011

About new sms notification :
if there are more than one sms then show the list of new smses

Tarif SMS
http://anasyusuf.com/tarif-sms-termurah-ke-semua-operator-2011-yang-mana

Spring in Action ( 2007 - 1933988134 )
read about hibernate from 5.4 (183) until (194)
684
158

Spring Recipes ~ A Problem-Solution Approach ( 2010 - 1430224991 )
639
647
654
656
-
541

---
836

Monday, June 6, 2011

Problem with JGoodies Binding
How to bind enum to JLabel ?