Configure Android Terminal Emulator to Use Color Coded file types

The default Android Terminal Emulator is not configured to use color coded file type system. I am going to show how to configure Terminal Emulator to use the right settings to show color coded files. So let's begin.

Basic requirements:

  • Android Phone
  • Android Terminal Emulator
  • Busybox installed

Step 1

 Open Terminal Emulator

Step 2 

Go to preferences

Step 3

Scroll to the bottom and select Command line

Step 4

Type the following code and click OK :
/system/xbin/sh -u

Step 5 

Next select Initial Command from preferences and type the following code and click OK:
export PATH=/system/xbin:$PATH

Step 6 

Congrats! It's working!

 

Falling Crystals the Game: Update

This is another game of mine created just in a few minutes.
It is a rather simple and boring game. I made it just in few minutes just for fun.

Rules: Simply avoid the crystals to fall or go off the screen by clicking on them.

Here's the link to play the game: Falling Crystals

 What's new: 
  • Improved physics
  • Added music
  • Added scores

Music used in this game can be found here and is under the licence CC-BY-SA 3.0

Compiling and Running C++ Program using GNU C/C++ Compiler

I'm using Ubuntu and GNU C/C++ compiler to compile and run c++ programs. So this how we compile c++ program in Linux.

https://gcc.gnu.org/

Compiling C++ program using GNU C/C++ comiler


Let's create a file called helloworld.cpp using a text editor such as vi or emacs and write your program (I made a simple hello world program here).

 
#include 

int main()
{
  std::cout << "Hello, World!" << std::endl;
  
  return 0;
}
 

Compiling this program using GNU C/C++ comiler

(Assuming we are in the same directory as the cpp source file) Syntax for compiling:
 
g++ name_of_source_file.cpp -o name_of_output_file
 

Assuming the name of the file is helloworld.cpp, in the terminal we write:
 
g++ helloworld.cpp -o helloworld
 

Note: To show warnings and errors while compiling, we use -Wall option.
 
g++ -Wall helloworld.cpp -o helloworld
 

This will create an executable file called helloworld and to run/execute this file follow the steps below.

Running/Executing C++ program

(Assuming we are in the same directory as the executable) Syntax for executing:
 
./name_of_executable_file
 

In our case the executable file name is "helloworld", therefore we write:
 
./helloworld
 
That's it!
Happy Programming :)

Learning C++





After learning the basics of JavaScript I am thinking of learning C++. So I'll start learning C++ as soon as I can. And also, C++ is in my course book so It will be a fun and good learning experience.

C++ was developed by Bjarne Stroustrup of AT&T Bell Laboratories in the early 1980's, and is based on the C language. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. Also it is very fast.

My first step will be to choose some books on C++ and start learning from them.
I'll be updating my progress through blog posts and twitter. So stayed tuned and Happy Programming :D

Follow me on twitter to get my updates: @RaviiKmr