How to find Text inside files in subdirectories

December 10, 2010 2 comments

I have to note it somewhere because my brain is always trying to exclude it.
# find . -name  “*.java ” | xargs grep  geecon

Categories: Ubuntu Geek

Stripes Framework (IntelliJ IDEA 9.04) : Calculator Example as the new project

November 24, 2010 Leave a comment

Project is described on the Stripes main site  as the Beginner guide.  I’m using IntelliJ as my IDE for such applications. Here are steps how to avoid to common mistakes in web.xml setup.

What I have:

  1. IntelliJ IDEA 9.04
  2. Apache Tomcat 6.0.29
  3. Stripes 1.5.4

Create new project from scratch ( example “StripesExample” ).  You obtain project directory structure.  I’ll go from the top of this structure and add or change appropriate files inside. Before we start just do import of all Stripes and other necessary libraries for this example (commons-logging.jar, cos.jar, jstl.jar, log4j-1.2.15.jar, mail.jar,standard.jar, stripes.jar). Don’t forget  libraries are located in /WEB-INF/lib directory.

1. create new package inside “src” directory  (example: “examples.stripes“)
2. in this directory create new “” and copy the source code. Don’t forget to change package name !
3. time to configure *.properties files (,, . You can follow the manual. These files are located in “/WEB-INF/classes” directory
4. web.xml file configuration. It seems to be key to run the example properly.  If you have followed me  only do change in web.xml :

<display-name>Stripes Filter</display-name>

Now should be everything ready to deploy on Tomcat server directly from IDE…

Categories: JAVA, Ubuntu Geek

Google AppEngine and PlayFramework v1.1 the first experience

November 22, 2010 Leave a comment

This Blog post  is the brief  report how to easily deploy example GAE application “lists-with-gae“. I have spend couple of hours today playing with this cool new framework.   I decided to test Google AppEngine  deployment  of mine project as the last point today. This report will be focused only on the ”lists-with-gae” project.  This project is located in default gae plugin installation.  Check the GAE-version you want to install to you Play project.  I should point out I’m running under Ubuntu 10.04 !

# play install gae-1.1
# play install siena-1.3

Than you need to define your GAE plugin in the project in conf/application.conf

# Additional modules
# ~~~~~
# A module is another play! application. Add a line for each module you want
# to add to your application. Module paths are either absolutes or relative to
# the application root.

before you return back to your project directory you have to edit your .bashrc file.  Define variable GAE_SDK:

export GAE_PATH=~/eclipse_helios/plugins/

than you have to change permission to the file

#chmod +x  ~/eclipse_helios/plugins/

Note: It works perfectly. I have also tested to define unziped GAE directory directly but I received deployment errors! I recommend you to use Eclipse Plugin (Based on forum discussion)!

Now it’s time to run following command in the project “lists-with-gae” directory:
#play gae:deploy

I don’t know why you still receive in log this warning but …

21:12:08,197 WARN  ~ Google App Engine module
21:12:08,197 WARN  ~ ~~~~~~~~~~~~~~~~~~~~~~~
21:12:08,197 WARN  ~ No Google App Engine environment found. Setting up a development environement

… don’t worry,  everything gonna be deployed to your GAE project.   Edit war/WEB-INF/appengine-web.xml  and define your project before you run command above

<appengine-web-app xmlns=”″&gt;

And now check it out …. it works 🙂

Categories: JAVA, Ubuntu Geek

AGames: Toss it – great relax in public transport

August 15, 2010 Leave a comment

This game doesn’t need to have your brain “connected” to the rest of the body 🙂 It’s cool. Your mission is  only toss the crumpled paper to  the basket. Great idea and cool relax … your other task is to deal with the side wind.  This game is ready on the Android Market … and it has my recommendation to test: Great Android Game

Categories: Google Android

Ubuntu Upgrade: from 9.10 to 10.04 – Intel Graphic card issue

August 9, 2010 Leave a comment

During the upgrade procedure was removed xserver-xorg-video-intel . Upgraded system wasn’t able to start. Instead of login screen was displayed black screen … ( not blue screen of death, well known from Windows 😉

Just follow these steps to fix it:  Restart the system -> from Grub choose safe mode -> simple graphic mode -> then login into the system -> open synaptic package manager -> install xserver-xorg-video-intel

Then everything should work correctly again …

Categories: Ubuntu Geek

Missing Volume Button after upgrade to Ubuntu 10.04

August 9, 2010 Leave a comment

If you’ve just upgraded to 10.04 “Lucid Lynx” from ver. 9.10 and you found out the volume icon/button is missing in the system tray. Here is the way how to fix that issue.

System->Preferences->Startup Application Preferences – Add



Just open the terminal and run up #gnome-volume-control-applet

Categories: Ubuntu Geek

… PhD, Hudson-mobi, OpenGL : simply Android

July 21, 2010 Leave a comment

Last days I had no time for blogging… I’m really missing it!  I’ve been working on project for my PhD and PhD itself.  It’s pretty hard to stay focused when the weather outside is almost sunny 🙂 … I’m glad I have time go to the gym or biking.

During the mean time I’m glad for my participation on Hudson-mobi for android. I’ve changed layout, implement animations, workflow, class changes and I did couple of fixes inside the source code itself. Well, I don’t want to forget about app graphic design which I’ve done too.  I hope all users gonna be satisfied with look-and-feel design. It’s really excited to participate on this.  Everything gonna be published soon! Have a quick look now and here…

Yesterday I had just feeling I should open OpenGL SE implementation for Android.  Emulator is doing pretty good. 3D implementation is working pretty fast, no doubts here. Much more excited is hardware implementation on your device. (HTC Desire, Nexus One).   Here are only two images … from glass effect which is quite simple to implement using OpenGL tutorial … HERE .

Most special effects in OpenGL rely on some type of blending. Blending is used to combine the color of a given pixel that is about to be drawn with the pixel that is already on the screen. How the colors are combined is based on the alpha value of the colors, and/or the blending function that is being used. Most people think of Alpha as how opaque a material is. An alpha value of 0.0 would mean that the material is completely transparent. A value of 1.0 would be totally opaque.

import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
import android.content.Context;
import android.opengl.GLUtils;
Currently code is under progress to changed to Android 2.1 because the most of Android are powered by 2.1 … so maybe next blog I’ll add sample project 🙂
Categories: brief news, GeeCON