During learn and experience

Creating mobile web application using GWT without any third party library


Recently, i am working on a small project for producing a mobile web application using GWT. I have read lots of advises and subjects about this, there are several third party library (like mgwt, SmartGWT.mobile and ...) which can do this but for right to left considerations i would like to use pure GWT. After several days i find some useful tips:
  • Use MVP pattern for building Device-specific UIs.
  • Use formfactor property in Deferred binding or FormFactor module to select best UI for client device (tablets, phones and ..).
  • Use DockLayoutPanel as much as possible for better layouting.
  • Capture and respond to device orientation changes using ResizeHandlers.
  • Use GWT's Client Bundle to batch resource fetches for increase responsiveness.
  • Use Code Splitting to grab only the code you need to minimize startup time.
  • Use Application Cache (HTML5 feature) for Loading resources like HTML, CSS, and JS from disk.
  • Use HTML5 local storage feature for working without connection and reading/writing data into local database.
You can get this pdf and also see this link to see several useful tips, there is also a good chapter in this book about building mobile application using GWT.

Have a nice time.
۱۸ آذر ۹۱ ، ۲۲:۳۵ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

Focusing ...

I have decided to focus on some of important parts of my life and i do not want to know anything that i like in detail. Although this was a hard decision but i think it will help me to achieve better thing in my life.
۱۹ آبان ۹۱ ، ۱۳:۳۶ ۱ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

Install Kubuntu 12.04 on Sony VAIO Z Series VPC-Z213GX

Hi all,

I installed Kubuntu 12.04 on my Sony VAIO Z Series VPC-Z213GX without any problem. Almost everything works fine:
  • Bluetooth
  • Wifi
  • Blu-ray drive
  • Function keys 
  • Keyboard Backlight
  • Web cam (using Kopete)
  • ...
Although i can not use finger print module yet but its performance is great in Kubuntu.

have a nice time.
۰۴ شهریور ۹۱ ، ۲۳:۲۱ ۵ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

Ctrl + F4 doesn't close current tab on Firefox in KDE

Hi all,

This is a common problem for KDE newcomers. This is because of default value in KDE Global Keyboard Shortcuts. By default "Ctrl + F4" keyboard shortcut assign to "Switch to Desktop 4" action in KDE Global Keyboard Shortcuts and then if you have 4 virtual desktop (or more) in your KDE desktop, "Ctrl + F4" bring you to 4th desktop and if not it does not do anything !
To solve this problem (if it is a real problem for you like me), you have to assign another keyboard shortcut to "Switch to Desktop 4" action:
  1. Open KDE Global Keyboard Shortcuts program.
  2. From KDE component combo box select "KWin".
  3. In the search text box type "switch to desktop".
  4. Finally, in the search result lest, reassign another keyboard shortcut to "Switch to Desktop 4" action.
have a nice time.

۲۳ مرداد ۹۱ ، ۲۲:۳۴ ۲ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

KDE Plasma and Applications 4.9 is very stable

Hi all,
I have installed several Linux distributions based on KDE on my machines, but i always had problem with KDE bugs (and also the ugly window which want to report the bug :-D).
I upgraded my Kubuntu 12.04 to KDE Plasma and Applications 4.9. It is one of the best KDE i have ever seen. I have not seen any bug yet and its performance is better that past.
Congratulation to KDE team for this fantastic release.

have a nice time.
۲۰ مرداد ۹۱ ، ۱۶:۴۱ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

How to download NetBeans plugins manually !

Hi,

Sometimes you want to download NetBeans plugins from outside of NetBeans IDE for example for offline installation. for this purpose :
  1. From menu, go to Tools -> Plugins.
  2. In the last tab (setting), you will see a update centers list (on left side) e.g. "Certified Plugins"
  3. You have to know your desire plugin is located in which update center.
  4. select that update center from list (e.g. Certified Plugins) and then from right side click on the "Edit" button.
  5. from the shown dialogue, copy text in URL text box (do not copy last part of URL, in this case "catalog.xml.gz", only copy the address of  xxx.gz file e.g. "http://updates.netbeans.org/netbeans/updates/7.2/uc/final/certified")
  6. Now you can paste the URL in your browser and find your plugin in folders.

have a nice time.
۱۴ مرداد ۹۱ ، ۰۸:۴۰ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

Generate WSDL file and Web Service Client with jaxws-maven-plugin

Hi,

In this post i want to describe:
  1. how to generate a WSDL file from the JAX-WS annotated class using jaxws-maven-plugin (jaxws:wsgen)
  2. how to generate the Java client class files from the generated WSDL file using jaxws-maven-plugin (jaxws:wsimport)
     
Firstly you have to generate your WSDL file from JAX-WS annotated class (class that annotated with @WebService), for this purpose you can use jaxws-maven-plugin, this maven plugin has a goal with name "wsgen", you can configure your maven project so that generate WSDL file during build process:

    

.
.
.

org.jvnet.jax-ws-commons
jaxws-maven-plugin
2.2


SimpleWS

wsgen


com.saeed.NewWebService
true
UTF-8
true
true




TestWS

wsgen


com.saeed.TestWebService
true
UTF-8
true
true







org.glassfish.extras
glassfish-embedded-all
3.1.1



com.sun.xml.ws
jaxws-tools
2.2.5







Note that you have to repeat "execution" tag for each jax-ws class with different id. The WSDL file will generate in "target/generated-sources/wsdl" directory (you can see other configuration tag from this).

Then you have to use generated WSDL file to generate Java client class files . for this purpose you can use "wsimport" goal :

    


org.codehaus.mojo
jaxws-maven-plugin
1.10



wsimport



../saeed-web/target/generated-sources/wsdl


NewWebService.wsdl

http://saeed-linux:8080/saeed-web/NewWebService?wsdl

wsimport-generate-NewWebService
generate-sources




javax.xml
webservices-api
1.4



${project.build.directory}/generated-sources/jaxws-wsimport
false
true
true






com.sun.xml.ws
webservices-rt
1.4
provided


junit
junit
3.8.1
test



Now you can use codes which are generated into "sourceDestDir" to call web service method in your client application.

have a nice time.
۱۰ مرداد ۹۱ ، ۱۲:۳۲ ۱ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

How to change window manager to OpenBox in Linux Mint 13 Mate

OpenBox is a light , stable and fast X window manager for X desktop environments.  and also it is default window manager for LXDE desktop environment. if you want to change Linux Mint 13 Mate window manager to OpenBox follow these steps:

  1. Install "openbox" package from package manager.
  2. In a terminal type "mateconf-editor"
  3. In configuration editor tree go to "/desktop/mate/session/required_components/windowmanager" and replace "marco" with "openbox".
  4. Open Startup Applications from mint menu, and add a new startup program "OpenBox" with command "openbox --replace".
  5. now restart your machine.
  6. in your first login you may face a session error dialogue, click on the "ok" button in the dialogue and then in the login page change your session to "mate"
  7. after login you can go to the "Openbox Configuration Manager" program for further configuration.
now you have OpenBox window manager with Mate desktop environment.

have a nice time.
۰۶ مرداد ۹۱ ، ۱۴:۰۴ ۳ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

Sample chat application using NIO

Hi,
Programming with NIO API is very hard and complicate than traditional blocking IO (streams) in java.  I found a good sample in the web that easily demonstrate java NIO features using a chat application.

ChatterClient
ChatterServer

have a nice time.
۰۲ مرداد ۹۱ ، ۱۳:۵۹ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

My first Erlang module !

Hi,

I have started to learn Erlang programming language but now i am trying to write program in functional manner and it is my first program in a functional approach (in whole my life). This program calculate sum of a list items.


-module(saeed).
-export([total/1]).

total([]) -> 0;
total([Item|Tail]) -> Item + total(Tail).


have a nice time.
۱۷ تیر ۹۱ ، ۲۱:۲۸ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

Install Linux Mint 13 mate edition on Eee PC T101MT

Hi,

I installed Linux Mint 13 mate edition on my Eee PC T101MT and now the result is fantastic , because touch screen functionality works prefect and i can use touch screen in Linux.


have a nice time.

 
۱۵ خرداد ۹۱ ، ۱۲:۴۳ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

Coming back

Hi everybody,

I come back to my old home in the web (from here). I will write here.

have a nice time.
۱۵ خرداد ۹۱ ، ۱۲:۱۱ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

My new weblog !

Hi
I can not post in this weblog easily because of i live in Iran and the blogger is filtered (block by government). 

have a nice time.
۱۸ شهریور ۹۰ ، ۱۲:۰۳ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

When is the end of the terrible days ?

When is the end of the terrible days ?
That day will come and I will be free.
...
۰۵ شهریور ۹۰ ، ۱۸:۳۵ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

I find my memory !

"Anki is a program which makes remembering things easy. Because it is a lot more efficient than traditional study methods, you can either greatly decrease your time spent studying, or greatly increase the amount you learn."

I love Anki. I use it a lot for remembering all things. It works like a flash card. I install it on my android phone and  Anki is with me everywhere.
Anki developers deliver it on diverse platform like :
  • Windows
  • Mac OS
  • Linux
  • iPhone
  • Android  
  • Web based application
You can tray it and enjoy it. 

have a nice time.
۰۲ شهریور ۹۰ ، ۱۷:۵۰ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

Programmer Competency Matrix

Programmer Competency Matrix

have a nice time.
۰۹ مرداد ۹۰ ، ۱۱:۳۲ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

مردن

ما هرگز فرصت نمی‌کنیم
تحمل از کوه وُ 
صبوری از آسمان بیاموزیم 
حالا سال‌هاست که دیگر ما 
شبیه خودمان هم از خوابِ نان و خستگی 
به خانه برنمی‌گردیم 
ما ملاحتِ یک تبسم بی‌دلیل را حتی 
از یادِ زندگی برده‌ایم 

کاری نمی‌شود کرد
کبوتر دور وُ 
کلمه تاریک وُ 
زندگی، عطرِ غلیظ کبریت سوخته‌ای است 
که دیگر برای این چراغِ بی‌چرا مُرده 
کاری نخواهد کرد 
حالا هی بی‌خودی بگو چرا خوابت نمی‌آید 
می‌گویم خوابم نمی‌آید 
نگاه می‌کنی 
ساعت پنج‌ونیم صبح سه‌شنبه است 
فقط سکوت، سوال، ماه 
پَرده، خستگی، ملال 
احساس می‌کنی از گفت‌وگوی بُریده‌ بُریده‌ی دیگران 
چیزِ روشنی دست‌گیرِ این شبِ شکسته نمی‌شود 

شناسنامه‌ام را ورق می‌زنم 
جویده‌جویده چیزی به یاد می‌آورم 
سال‌ها پیش 
مرا به دریا بردند 
گفتند همین‌جا 
رو به قبله‌ی گریه‌های بلندِ باد بنشین و 
ذره‌ذره و بی‌چرا بمیر 
و من مرده بودم 
او مرده بود 
و دیگر او 
هرگز به آن گهواره‌ی شکسته باز نیامد

.....................
سید علی صالحی
۲۶ خرداد ۹۰ ، ۲۳:۱۰ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

Install Ubuntu 10.10 desktop on Asus Eee PC 1015PEM

Hi

Thanks to Technology blog finally I install Ubuntu 10.10 desktop on my new Netbook but there are some tip that i want to say:
  • At the beginning of the installation checked this "tick this box to install the software for this functionality"


  •  After complete installation , wireless does not work , you must update your Ubuntu with update manager and then install the Broadcom STA wireless drivers with additional driver menu.
  • If you want to have more battery you can use power management tools like Jupiter

have a nice time.

۲۴ اسفند ۸۹ ، ۱۳:۵۴ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

Programming languages benchmark

As a software engineer , it is important to know , Which programming language is best (from several aspect).  This site give us very useful information about programming language. We can compare programming language with several benchmark algorithm.

have a nice time.
۲۰ اسفند ۸۹ ، ۱۵:۲۳ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام

i am frustrated ...

Hi guys

I am frustrated. In all the word , blogging is a most important thing for sharing knowledge and opinions but in my country (Iran) , the most popular blogging services (blogger & wordpress) are blocked (filtered) and people in Iran cant access to these services.

have a nice time.
۱۲ اسفند ۸۹ ، ۱۳:۴۰ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام