10 golden rules of investing in stock markets

1. Avoid the herd mentality
1 Nov, 2016
The typical buyer's decision is usually heavily influenced by the actions of his acquaintances, neighbours or relatives. Thus, if everybody around is investing in a particular stock, the tendency for potential investors is to do the same. But this strategy is bound to backfire in the long run.

No need to say that you should always avoid having the herd mentality if you don't want to lose your hard-earned money in stock markets. The world's greatest investor Warren Buffett was surely not wrong when he said, "Be fearful when others are greedy, and be greedy when others are fearful!"

2. Take informed decision
18 Nov, 2016
Proper research should always be undertaken before investing in stocks. But that is rarely done. Investors generally go by the name of a company or the industry they belong to. This is, however, not the right way of putting one's money into the stock market.

3. Invest in business you understand
18 Nov, 2016

VI Editor basic usage

vi filename.txt

Press insert button to activate editing mode.To quit without saving :q!   and enterTo save file :wq!

Transfer files to Remote server using SCP commands

Pulling files from server to local machine 1. Cd /home/manoj/workingdir
2. scp -r username@
3. password :*******

-r Recursively copy entire directoriesTransfer file from local machine to server 1. Cd /home/manoj/workingdir

2. scp filename.php username@
3. password :*******

SQL Important queries

Fetch record in ASC or DESC order 

SELECT * FROM mytablename ORDER BY id DESC 

SELECT * FROM mytablename ORDER BY id ASC


How to fetch last 50 records from table


Update column fields using update commands 

UPDATE tablename SET devicemodel='Data what you want to replace' where devicemodel='HUAWEI G730-U00' 

Use Delete commands 

DELETE FROM Persons WHERE FirstName = 'Peter'

DeCompile .apk file on ubuntu 14.04

1. Download   Dex2jar from   and Extract it.

2. Go to Download path

./ /home/manoj/someApk.apkif .sh is not compilable that giver chomod a+x permission.3. It will generate .jar file.To open that .jar file we have to use JD-Gui. Just download it and Go to that path. and follow below command throught your terminal(ALT+CTR+T).Here's the process I went through: $ ./jd-gui ./jd-gui: error while loading shared libraries: cannot open shared object file: No such file or directory $ sudo apt-get install libgtk2.0-0:i386 $ ./jd-gui ./jd-gui: error while loading shared libraries: cannot open shared object file: No such file or directory $ sudo apt-get install libxxf86vm1:i386 $ ./jd-gui ./jd-gui: error while loading shared libraries: cannot open shared object file: No such file…

Ubuntu Refrences and Commands Hacks

Privileges sudo command – run command as root sudo -s – open a root shell sudo -s -u user – open a shell as user sudo -k – forget sudo passwords gksudo command – visual sudo dialog (GNOME) kdesudo command – visual sudo dialog (KDE) sudo visudo – edit /etc/sudoers gksudo nautilus – root file manager (GNOME) kdesudo konqueror – root file manager (KDE) passwd – change your password
Network ifconfig – show network information iwconfig – show wireless information sudo iwlist scan – scan for wireless networks sudo /etc/init.d/networking restart – reset network for manual configurations (file) /etc/network/interfaces – manual configuration ifup interface – bring interface online ifdown interface – disable interface


Dedicated Runtime Thread (ART vs Dalvik)

What is Dalvik?
Dalvik is the process virtual machine (VM) in Google's Android operating system. It is the software that runs the apps on Android devices. Dalvik is thus an integral part of Android, which is typically used on mobile devices such as mobile phones and tablet computers as well as more recently on embedded devices such as smart TVs and media streamers. Programs are commonly written in Java and compiled to bytecode. They are then converted from Java Virtual Machine-compatible .class files to Dalvik-compatible .dex (Dalvik Executable) files before installation on a device. The compact Dalvik Executable format is designed to be suitable for systems that are constrained in terms of memory and processor speed. Dalvik is open-source software.
Dalvik is named after an Icelandic city. (source)
Okay so what is ART?
ART is a project Google has been working on for reportedly for 2 years. The goal of ART was to produce a faster runtime that wouldn't suffer from the problems Da…