Android – Easily Debuggable Layout XML files

Hello Folks,
Everyday, New android apps come up with beautiful designs. All these screens are baked with the help of xml tags. Developers use dummy values in their TextView while they create their layouts with android:text field of TextView. But we cannot leave these dummy text values while we release the final app. Because, It creates a risk of unintentionally showing the dummy data to the user.
I have recently seen a small, But an useful piece of tip in the Android Studio series of videos in google developer youtube channel.

So,
Add –

xmlns:tools="http://schemas.android.com/tools"

to your root layout and then add the dummy text content to any TextView like this,

   <Textview
     ...
     ...
     tools:text="My Dummy Text"
     />

this dummy text will be shown inside the textview only when you open the layout in android studio to help you out. It will not be shown in the compiled app. Hope this simple tip saves some time in debugging and modifying layouts.

Reference : https://www.youtube.com/watch?v=K2dodTXARqc

Thanks,
Balachandar KM

How to Change System ( Localhost ) name in Ubuntu 11.04 ?

Hi Guys,

Just want to share this small tip as it may help someone around the world. You just need to edit two files to change it.

      Step 1 : Open /etc/hostname with root permission . You can use gedit to open -> “sudo gedit /etc/hostname”

Change the system name to the name you prefer.

      Step 2 : Open /etc/hosts with root permission . You can use gedit to open -> “sudo gedit /etc/hosts”

Again change the system name to the name you prefer.

      Step 3 : Restart your system to apply the changes.

This applies to the most of the Linux distributions. Your suggestions/comments are invited.

Regards,

Balachandar KM

How to successfully organize a F/OSS meet

Hi guys,
I(We) organized a 3 day F/OSS awareness program in my college during the open house exhibition – 2010.I really learnt a lot from this program.You can learn and demostrate a technical stall in ease.Thats what i did last time and that seems so cool for me.But organizing is really a hectic job and that needs lot of patience and tiredless hardwork.
Rule 1:
Gather atleast more than 10 volunteers ( Who really want to work with you,not for the namesake ) for each technical and non-technical
Rule 2:
Sit down with the group,think and note down all the needs and problems.Make a plan for the entire function with time schedule.
Rule 3:
Get the official support from a higher authority ( In college you can take the help of an professor ) who can control the students.
Rule 4:
Distribute the work to the RESPONSIBLE guys who will do it in the specified time.
Rule 5:
Check all the works twice whether they are working as per the schedule or not.
To make the stalls interesting,

1. Keep some old computers – with low RAM & HDD requirements – and install
good distros like Ubuntu etc. to show people that they can install even on
old PCs.
2. To show them how to install a linux distro in a PC (including dual
booting) – step by step (if possible in printed format)
3. Show them open office – 3.1 – instead of Office
4. Show them how to use yahoo messenger (gYachi),google talk (pidgin) and Skype – in FOSS
software.
5. Also show them various linux distributions (mainly for teachers, tutors,etc)
6. To show them the full connectivity incl. webcam (I use 9.10 – it works
just out of the box in my laptop)
7. Show them wifi (through a OLD laptop)
8. Printed sheet – having a lot of contacts, numbers, names, – who they can
call for assistance (we can later make them as volunteers who will help
other people, after using FOSS).
9. Keep around 20 to 30 OLD PCs with FOSS software – for anyone to test, and
use internet etc.

I am really expecting your feedback on this post to make a good set of rules for the beginners to build a successful foss demo stall 😉

-with regards,

Balachandar.K.M

STEPS TO GET STARTED WITH NITROGEN

Hi guys,
Have you ever tried to create web applications.Here is one more powerful framework called as “nitrogen” to create powerful web applications.It uses erlang.Here is the “How to” tutorial for the “Hello World App” in Nitrogen.This tutorial is the result of my three dedicated hours with @navatux.Hope i ll get you more on this.

STEPS TO GET START WITH NITROGEN :
STEP 1:
1. Install Erlang
For fedora : yum install erlang
For Ubuntu : apt-get install erlang

STEP 2:
1.Download and extract Nitrogen
2.In ~/.bash_profile file add the $ERL_LIBS variable as follow :
3.export $ERL_LIBS=/path-to-the-directory-contains-nitrogen(Preferably use /usr/local/lib/erlang/modules for an organized structure)

STEP 3:
1.Run make inside nitrogen directory

STEP 4:
1.Create a symbolic link to the executable nitrogen file which is located inside nitrogen/support/
2.ln -s $ERL_LIBS/nitrogen/support/nitrogen /usr/local/bin/nitrogen

STEP 5:
1.Create your first nitrogen project like this
2.”nitrogen create pro_name” (Without quotes)

STEP 6:
1.Thats it you have created the base for your web app using nitrogen.Now run the start.sh file generated inside your web app to start your web app.

STEP 7:
1.Point your web browser to http://localhost:8000 to see your application in action

–With regards,
Balachandar.K.M and Navaneethan.R

How to setup Demo Stalls?

Hi guys,
These days almost all coleges are conducting various exhibitions and students are supposed to put demo stalls.But students should really follow the guide lines given below before making any demo stalls.
I made these instructions just by my experience.Anyone having conflicts with me can post their comments here.
I want you to add more guidelines via the comments.If it is best i will add it.
#———————————————————————-
Executing Hello world programs is enough to give a start up.But
Clearly state the following things,
1.What is that?
2.Why we need that?
3.How it came to existance?
4.How to competes with its competitors ?
5.Basics ( syntax etc.)
6.What are all the tools available.
7.real time scenarios and your simple codes.
8.Make a good deal of resource materials,website links,ebooks to
give to the viewers if they are interested.

#———————————————————————–

cheers..

Balachandar.

தமிழ் மொழியில் தட்டச்சு செய்ய வேண்டுமா!!!!

வணக்கம் நண்பர்களே,
    இந்த முகவரியை பின்பற்றுங்கள்  மிகவும் எளிதாக தமிழ் மொழியில் தட்டச்சு
செய்யலாம் .
                    கூகிள் தமிழ் மொழி பெயர்ப்பான்
                                         நன்றி,
                                                      என்றும் அன்புடன்,
                                                              பாலசந்தர்.கொ.ம.