Tuesday, January 6, 2015

Left Menu implementation in GWT showcase site

http://stackoverflow.com/questions/9888759/widget-used-in-gwt-showcase-left-menu

Install GIT on Linux Ubuntu

sudo apt-get update 
sudo apt-get install git

git config --global user.name "Your Name" 
git config --global user.email "youremail@domain.com"
Check:
git config --list

Where .gitconfig is located:
~/.gitconfig

Monday, January 5, 2015

Create GXT 3 project example

Here is the way you could create GXT 3 project.
You would use Maven Archetype with a little workaround of pom.xml and code.

Form CLI execute:

mvn archetype:generate    -DarchetypeGroupId=org.codehaus.mojo    -DarchetypeArtifactId=gwt-maven-plugin    -DarchetypeVersion=2.7.0

Then:

mvn gwt:verify
mvn gwt:run

At this point you will be able to run pure GWT demo.

Now is the GXT time:

In root html file add following line as the first stylesheet
<link rel="stylesheet" type="text/css" href="MyModule/reset.css">

Remove the table for the Web Application Starter project. We don’t need it for this guide.

Add the line below to the *.gwt.xml
<inherits name="com.sencha.gxt.ui.GXT" />
And remove the following line from the same file:
<inherits name="com.google.gwt.user.theme.standard.Standard" />
Inside of the main root class that implements EntryPoint leave only this:
public void onModuleLoad() {
    BasicTabExample tabs = new BasicTabExample();
    RootPanel.get().add(tabs);
}


Create in the same package of the root class this class:

How to install Apache Tomcat Server on Ubuntu

Here is the simplest way to install Tomcat 7 on Linux Ubuntu 14.04
Execute these commands from terminal

sudo apt-get update
sudo apt-get install tomcat7


Try run:
sudo /usr/share/tomcat7/bin/startup.sh 

If you've got an error do this:
sudo dpkg-reconfigure tomcat7

Can't run Tomcat from Intellij Idea?
cd /usr/share/tomcat7 
ln -s /etc/tomcat7 conf 
chmod -R 655 /etc/tomcat7/

Thursday, December 11, 2014

your current network has a .local domain which is not recommended and incompatible with the avahi

http://askubuntu.com/questions/339702/network-service-discovery-disabled-what-does-this-mean-for-me

It looks like avahi-daemon is started when the network connection is established (/etc/network/if-up.d/avahi-daemon). This notification is informing you that mDNS (Avahi) has been disabled. It's only used for a small number of applications that only work on the local network, it won't adversely affect your internet connection or DNS.
The most well known use for mDNS is sharing music with Rhythmbox (or iTunes) over your LAN. It's an Apple technology, but it's largely been ignored in favour of uPNP or DLNA.
To disable it, you must edit the file /etc/default/avahi-daemon as root:

sudo -i
gedit /etc/default/avahi-daemon
and add this line (or change it if already exists to):
AVAHI_DAEMON_DETECT_LOCAL=0 
 
Source: http://ubuntuforums.org/showthread.php?t=1632952