Silver Medal vs Gold Medal in Rio 2016

Small comparison of rewards chart #SINDHU @ #RIO #OLYMPICS 2016 and #THANGAVEL @ RIO #PARALYMPICS 2016.

silver-vs-gold

Don’t know whether Varun and other metal winning athletes got anything

  • Gold Medal- Mariyappan Thangavelu for High Jump T42
  • Gold Medal- Devendra Jhajharia for Javelin Throw F46
  • Silver Medal – Deepa Malik for Shot Put F53
  • Bronze Medal – Varun Singh Bhati for High Jump T42

Thangavelu Mariyappan and Varun Singh Bhati on Rio 2016 Paralympics

Advertisements

How do farmers take revenge

Here is how a framer may take revenge.

It has been may years since we got freedom, but we still use the same procedures and rules in the agricultural sector that were created by British. In truth the British created a system/procedures to waived off the loans and taxes of farmers during drought, flood, etc. In this way British were good peoples compared to present day politicians.

Its nothing personal, purely business, because

What You Ask Is What You Get – WYAIWYG

You asked for beautiful looking vegetables, as a business it their duty to server the customer as they wish, because

Customer is always correct and you are the customer

Checkout the Here is the complete debate a 50 min video.

Note: This case is applicable to almost any country

Today foods equals poison

In this thought provoking talk, Dr.G.Sivaraman explains how the daily food is harmful for health and the politics in food industry. He insists on the consumption of millet based food for better health.

As per Islam, the Muslims are advised to eat less.

Nothing is worse than a person who fills his stomach. It should be enough for the son of Adam to have a few bites to satisfy his hunger. If he wishes more, it should be: one-third for his food, one-third for his liquids, and one-third for his breath. — Prophet Muhammad (PBUH)

How to Minify CSS using simple bash commands

Minify CSS or JS file is very important task in Web development for optimized performance. In theory the term magnification or compression in the context of CSS/JS means removing all unnecessary characters, such as spaces, new lines, comments without affecting the functionality of the source code.

If you goggle out, there are plenty of tools and scripts that will help you in accomplishing this task, but most of time these tools depend on heavy weight language for framework (Java, npm, etc..). I don’t want to install and setup those heavy weight stuffs to accomplish simple task.

Here is the script I have came up with

cat input_file.css | \
sed -r ':a; s%(.*)/\*.*\*/%\1%; ta; /\/\*/ !b; N; ba' \
| tr -d '\t' | tr -d ' ' | tr -d '\n' | tr -s ' ' ' ' > output_file.min.css

Explanation: What does the commands do

  • sed command removes the block css comments
  • tr -d ‘\t’ – Removes tab
  • tr -d ‘ ‘ – Removes spaces
  • tr -d ‘\n’ – Removes new line
  • tr -s ‘ ‘ ‘ ‘ – Removes multiple spaces

I have tested the command on bootstrap source, I got almost near to the size of bootstrap.min.css

cat bootstrap.css | \
sed -r ':a; s%(.*)/\*.*\*/%\1%; ta; /\/\*/ !b; N; ba' \
| tr -d '\t' | tr -d ' ' | tr -d '\n' | tr -s ' ' ' ' > bootstrap.mohamed.min.css

Also the commands ran pretty fast,

real 0m0.054s
user 0m0.054s
sys 0m0.013s

Here is the file size comparison

$ ls -l
-rw-r--r-- 1 mohamed mohamed 146082 Nov 24 2015 bootstrap.css
-rw-r--r-- 1 mohamed mohamed 121260 Nov 24 2015 bootstrap.min.css
-rw-rw-r-- 1 mohamed mohamed 121149 Jul 19 20:22 bootstrap.mohamed.min.css

I am happy with this script, hence sharing in a hope that it will be help full to some one..

How to center a div on a page vertically and horizontally

I often need to do center a div, here is a css code on how to center a div inside a div or body

CSS

.box {
width: 100px;
height: 100px;
background-color: red;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}

HTML

<body>
<div class="box">centered content</div>
</body>

Reference: stackoverflow.com

Tony Blair – I am Just Sorry For Iraq War

#TonyBlair – Sorry, I Accept Full Responsibility For #IraqWar,

In the after math of release of Chilcot report Tony Blair says

Sorry, I Accept Full Responsibility For Iraq War

If Saddam Hussein (Former President of Iraq) still ruled Iraq, these would not have happens.

Continue reading “Tony Blair – I am Just Sorry For Iraq War”

Why India wants to ban Dr Zakir Naik [Part 2]

#SupportZakirNaik , In the last article Why India wants to ban Dr Zakir Naik, I listed some false claims on Dr Zakir Naik by Indian Media’s. In this article I will list down the articles and links that exposes the lies and false rumors spread by Indian Media’s .

– BBC: Bangladesh home minister suggests Israel behind spate of killings – bbc.com
– Bangladesh paper denies report used by Indian media to demand ban on preacher  – scroll.in
– The Daily Star protests Dr Naik’s claims – thedailystar.net
– Zakir Naik, scholar of Islam, never preached extremism: Maulana Abdul Khaliq Madrasi, Vice-rector, Darul Uloom Deoband – abplive.in

Zakir Naik is an Islamic scholar delivering the message of Islam since last 10-15 years. We may have our ideological differences with Naik but we don’t think he ever preached extremism, – said Maulana Abdul Khaliq Madrasi, vice-rector, Darul Uloom Deoband.

I you know any other source, kindly write it on comment, I will try to add it in the post if God will’s.

Why India wants to ban Dr Zakir Naik

Why India wants to ban Dr #ZakirNaik

Dr Zakir Naik

Here I will list some of the points listed by India media houses as the reason to ban Dr Zakir Naik.

Zakir Naik supports ISIS

Continue reading “Why India wants to ban Dr Zakir Naik”

Racism western style 

#Racism #western / #US style. #BlackLifeMatters

Today we have all these tools like mobile phone, social network. Imagine those day’s when there is nothing of sort, how many lives would have been killed like this.

Luxury comes at the cost by killing your ambitions and dreams, Don’t let that Happen to You.