Thursday, March 21, 2013

Fedora 18 Spherical Cow



I've recently installed Fedora 18 as a server in text mode only ; After a few days I wanted the gnome desktop ;
only two commands for that :
yum groupinstall gnome-desktop
startx &

Not having a powerful videocard in this server , I've switched to gnome fallback mode aka gnome-2-like graphical mode :

System Settings > System Info -> Fallback Mode


http://www.dedoimedo.com/computers/gnome-3-fallback.html

Wednesday, December 12, 2012

JAVA_HOME on Linux Bash



How to Set JAVA_HOME / PATH variables Under Linux Bash Profile


If the command echo $JAVA_HOME returns no result , 
it means that JAVA has no HOME and could not work properly
in Palo OLAP Server with embedded Tomcat .

The following command shows the path to java executable on Linux : 
# which java
WHICH command result on Ubuntu , Mint :
/usr/bin/java

after EXPORT command : 
export JAVA_HOME=/usr/bin/java
if we check again , JAVA has a HOME
# echo $JAVA_HOME
 /usr/bin/java

if I'm running again the script setclasspath.sh from 
/opt/jedox/ps/tomcat/bin
the result is :
The BASEDIR environment variable is not defined

This environment variable is needed to run this program

Tomcat & catalina issues

The error message says you have to set the environment variable BASEDIR.
Set it to the Tomcat installation directory, for example:


export BASEDIR=/usr/local/tomcat



echo $BASEDIR
/usr/local/tomcat


Monday, June 18, 2012

Fedora 17 groupinstall GNOME

http://www.server-world.info/en/note?os=Fedora_17&p=x



Desktop Environment is not neccessary for Server usage, 
but if  required one can install it with two commands : 


[root@dlp ~]#  yum -y groupinstall "X Window System" 
[root@dlp ~]# yum -y groupinstall "GNOME Desktop Environment" 


Input a command like below after finishing installation of new packages.
[root@dlp ~]# startx


Thursday, May 10, 2012

SPICE oVirt




oVirt platform enables you to create virtual machines that perform the same functions as physical
machines. Using a standard Web browser, users can run virtual machines that behave like physical
desktops. Multiple levels of permissions allow users with different roles to manage virtual machines to
meet the requirements of the enterprise.

The SPICE protocol allows the virtual machine to connect to the host with physical PC-like graphics
performance. It supplies video at more than 30 frames per second, bi-directional audio (for soft-
phones/IP phones), bi-directional video (for video telephony/video conferencing) and USB redirection
from the client’s USB port into the virtual machine. SPICE also supports connection to multiple
monitors with a single virtual machine.


Fedora 16 - install 64-bit Flash Player 11



Adobe finally released their native 64-bit flash plugin ... 


Fedora 16 (64-bit) how to
yum install http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm

yum install flash-plugin.x86_64

Enjoy 64-bit flash in Fedora 16 


Friday, April 13, 2012

Eclipse SUBVERSION MKACTIVITY Commit FAILED



So, I've been trying to get Ecplise to work with the SVN trunk, but I keep on getting errors : 


Some of selected resources were not committed.
svn: Commit failed (details follow):
svn: MKACTIVITY of '/svn/!svn/act/211517ad-3601-0010-bf2a-d36de0e8e97a': 405 Method Not Allowed (http://jtelmon.googlecode.com)
svn: MKACTIVITY request failed on '/svn/!svn/act/211517ad-3601-0010-bf2a-d36de0e8e97a'




I figured out what the problem was. It turned out that I was not 
grabbing the svn from https, just the http. Either I missed the "s" 
key when typing it in or what, I don't know. But, it is all fixed now. 





I had on the label HTTPS but on the URL there was only HTTP : 







SQLite plugin for Eclipse



How to browse an Android SQLite Database from Eclipse Kepler

http://www.youtube.com/watch?feature=player_embedded&v=sAvlV0uw5zc

CellObject SQLite Browser : 
http://www.questoid.com/Download.aspx

Questoid website is down and the jar can be downloaded from : 
http://www.java2s.com/Code/Jar/c/com.questoid.htm
http://www.java2s.com/Code/JarDownload/com.questoid/com.questoid.sqlitebrowser_1.2.0.jar.zip

Requirements and how to use CellObject SQLite & XML Browser at
 http://cellobject.net/Tools/CellObjectSQLiteXMLBrowser.aspx

Java Sources at Google Code :
http://code.google.com/p/cellobject/source/browse/

-----------------------------------
How To Install:

Inside the downloaded .zip/.tar file there's a .jar file named net.cellobject.sqlitexmlbrowser_1.2.0.jar. 
Just copy this jar file into the "plugins" folder of your eclipse installation directory, then restart your eclipse.
That's it.








I needed to create an SQLite database for an Android application I was working on. I wanted to browse the database of my application from within Eclipse, instead of pulling it out and browsing with another application.
If you just want to do a little bit of debugging, see if your tables get created the way you want and similar things, there is a very nice plugin for Eclipse that might fit you:
  • Download  the CellObject SQLite & XML Browser plugin.
  • Unzip it
  • Put the .jar file you just extracted inside your eclipse plugin folder (/plugins)
  • restart Eclipse.
  • Start your emulator or plugin in the device on which you installed the application you want to test
  • Open the DDMS perspective in Eclipse (Window —> open perspective —> other —>DDMS)
  • Select your application database (you find it under data/data/[yourapplicationpackage]/databases)
  • Now click on the icon of CellObject browser on the upper right, it will open the CellObject SQLite Browser View.
Instead of Opening DDMS, we can open the CellObject SQLite & XML browser in our Java perspective itself by opening it from Windows--> Show View --> Other --> Other --> CellObject SQLite Browser...

adb shell
sqlite3 /data/data/com.app.name/databases/DatabaseName.db
adb pull /data/data/com.app.name/databases/DatabaseName.db .
sqlite3 DatabaseName.db



Other solution : 
http://www.mysamplecode.com/2011/06/android-emulator-sqlite-database.html
http://sourceforge.net/projects/sqlitebrowser/
http://sqlitebrowser.sourceforge.net/images/slackware9.jpg
http://sourceforge.net/p/sqlitebrowser/svn/73/tree/trunk/src/