Showing posts with label Operating System. Show all posts
Showing posts with label Operating System. Show all posts

Friday, September 26, 2014

Android Library Project and its usage

"Android Library projects contain shareable Android source code and resources that you can reference in Android projects. This is useful when you have common code that you want to reuse. Library projects cannot be installed onto a device, however, they are pulled into the .apk file at build time." 

When creating a new Android project you can mark a project as ‘Library’ project. This will create a project that can be shared/used in multiple projects. You cannot run/install the library project stand alone instead you have to reuse it in Android project.

How to mark a project as library:


Create a new Android project that will use the library project. Library project can be added as reference as follows:
  • Android Project > Properties > Android (left option) > Library (bottom right pane) > Add

  
                       

Click ‘Apply’ > ‘OK’

  • To use the library class activities in android project, 'import' the library references where ever you are using library files.
  • To launch the library activity you should have that activity listed in your Android project 'AndroidManifest.xml'.
  • Don’t make files (Layouts, Classes, XML’s) with the same name in main and library projects. This can cause problems at run time. What I have noticed is that if you have same name layouts in both projects the library layout got overridden and parent layout will be used.


rizzz86

Saturday, May 12, 2012

Installing DBDesigner 4 on Ubuntu

The only way I found to install DBDesigner 4 on Ubuntu is as follows:
  • Download the *.rpm file of DBDesigner.
  • Download the library package and extract it using:
tar xzvf kylixlibs3-borqt-3.0-2.tar.gz
  • After extracting it do the following:
sudo cp kylixlibs3-borqt/libborqt-6.9.0-qt2.3.so /lib/libborqt-6.9-qt2.3.so

Now your DBDesigner will be working, the executable file DBDesigner4 can be found at /opt/DBDesigner.

Found the solution on the following link.

rizzz86

Saturday, May 5, 2012

Installing Adobe Flash Plugin on Ubuntu

Installing Adobe Flash Plugin on latest versions of Ubuntu (11 +) is straight forward and can easily be done by directly search and install from Ubuntu Software Center.

The problem comes when you are using the old versions of Ubuntu. Yesterday I have to install Ubuntu 9.10 on my system and got the problem of installing flash player plugin. After some searching I found the solution that requires enabling of repositories. Step by step solution is as follows:

  • Go to "System > Administration > Software Sources" from the menu.
  • Click "Other Software" tab and check the two options that represents the repositories. Selecting those repositories allows Ubuntu to download other softwares that includes adobe flash plugin as well.
  • Go to  "System > Administration > Synaptic Package Manager" and search for 'adobe flash plugin'. It will give the package to install, you just need to select that package and click the 'Apply' button on the top.

Now you can run flash videos/games on your system.

rizzz86

Sunday, October 30, 2011

Manually Install Erlang on Linux

Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance.

Applications that are built on Erlang also required Erlang's runtime for execution. Last week I got a chance to work on a Message Broker 'RabbitMQ' (will discuss it in other post) which is built on Erlang. So to get RabbitMQ Server installed on my machine I have to setup Erlang first. This post contains the steps for installing RabbitMQ Server manually on Linux machine. Following are the steps:

Get the Erlang package that you need to install
  • In my case I have otp_src_R14B02.tar.gz
Unzip the package:
  • tar xvzf otp_src_R14B02.tar.gz
Go to folder:
  • cd otp_src_R14B02/
Following files may be required to install on your OS before running the configuration file:

If it gives gcc compiler error then install gcc compiler with following command:
  • sudo yum install gcc gcc-c++ autoconf automake
  • sudo yum install make
  • sudo yum install ncurses-devel
For Ubuntu following command will be used:
  • sudo apt-get install build-essential
  • sudo apt-get install libncurses5 libncurses5-dev
Run cofigure File
  • ./configure
After running the configuration file, run the make command on same folder:
  • make
And in the and execute following command:
  • sudo make install
This will install Erlang on Linux and it can be tested using following command:
  • erl
It will show following lines:

Erlang R14B02 (erts-5.8.3) [source] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.3  (abort with ^G)
1>

rizzz86

Saturday, September 4, 2010

Open Transport Tycoon Deluxe (TTD)

TTD is one of my most favorite games that I have played and when I saw the 'Open' with it, I was really excited to install it on my Ubuntu OS.

The installation of Open TTD is difficult and you need to be a bit keera of shell scripting to do this job. I have followed all the steps on this link and managed to install OTTD successfully. After completing installation and launching the game I was really amazed by watching the same TTD main screen as what I was playing on my 'Windows OS' four years back.


The game is upgraded now and contains four different types of maps with each map containing different industries, disasters, vehicles etc. Maps are also really interesting with environment like a Desert area map, Snow area map, Toyland area map and a default one as well. I have some getty images of the game that are as follows:


All TTD lovers do enjoy this on your Linux OS.

rizzz86

Monday, April 5, 2010

Share Folder Between Ubuntu (host) and WinXP (guest) on Virtual Box

Following steps helps me to successfully share folders between host and guest:

  • On VBox (Windows) add a shared folder from Devices > Shared Folders. Write the folder name here as well.
  • Now in guest (WinXP), use the "Add Network Place Wizard" in Windows. Follow the wizard and look for you shared folder, add it and you're done.

rizzz86