Saturday, January 31, 2015

Resolving Local in Ubuntu by fixing Avahi service

http://smallbusiness.chron.com/resolving-local-ubuntu-38861.html

Open for edit:
sudo gedit /etc/avahi/avahi-daemon.conf

Uncomment and change the value:
BEFORE
#domain-name=local

AFTER
domain-name=.alocal

If this did not fix the issue, add this line at the end of the file:
AVAHI_DAEMON_DETECT_LOCAL=0 

Save the changes and exit. 

What to do if Wi-Fi on Linux Ubuntu 14.04 does not work

In any case you will need to download two packages from the internet. How to do it if you still don't have the access? ))
 
Lets suppose that you have at least your mobile that is online. If so try to connect your mobile phone (in my case Samsung Galaxy SII) to Ubuntu by USB. Make sure Ubuntu could recognize your phone and let you see its internal folders. Thus, when you will be asked to download files by instruction given to you in the link below, download it first to your phone (e.g. into Download folder), then copy them to the Home directory of your Ubuntu.

So follow this instruction below:

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/