During learn and experience

۶ مطلب در مرداد ۱۳۹۱ ثبت شده است

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.
۰۲ مرداد ۹۱ ، ۱۳:۵۹ ۰ نظر موافقین ۰ مخالفین ۰
سعید زرین فام