Drupal 7 Tags Cleanup

Project · Nov 10, 2017 · Permalink · 1min read

One of the problems, user’s face is too-many similar tags. Since tags can be created by multiple people, there is a posiblity of two users, creating same tag, with a minor difference.

For example, informationTechnology, Information Technology, Information-Technology, information technology,… are all valid tags and mean the same. When a user wants to tag a content, they often gets confused with which tag to use.

This module, is created as a drush command, scans through such tags, identify which one to keep and deletes other tags. It also updates all content tagged with such similar tags to now tag to real one. For above example, Module would keep Information-Technology and delete all other tags.

Code is available as an open source module on github. All installation and usage instructions are mentioned there.

Project URL: https://github.com/bhar1red/drupal-7-tags-cleanup

Technology : Drupal

Interaction · Oct 26, 2017 · Permalink · 2min read

Prive is what we pay, value is what we get

I don’t usually get offended or irritated, but interactions like these, make me feel uncomfortable.

As you might already know, we are establishing a web-development firm and is currently looking for more projects. Met X, who is opening a new shop and called me to discuss his branding and development needs.

After a lengthy discussion on how we can improve his shop’s digital footprint.

X: So, how much would you charge?

Me: Well, I can’t say right away, need to analyze more, but for similar services, we are charging $***** for another client. (Wouldn’t reveal the price but it is in thousands)

X: Are you kidding? I can get it in Squarespace or Wix for less than a 100 bucks.

Me: well then, please go with it. (Stood up and started leaving.)

X: Wait! You still haven’t answered me for your price difference.

Me: I would like to remind a couple of things here

  • Web Development doesn’t mean just including a theme. It includes customization, SEO, SMO, Deployment/Hosting, Security, testing, content-entry, …
  • ‎Our discussion is not just development, but also branding and marketing which includes a lot more like the logo, lead generation strategies, content…

X: Well I can get them done for much cheaper prices on freelancer or fiverr. Looks like you are expecting way too profit margins.

Me: Imagine you have a medical problem. You can do your own research on the internet and use a house-therapy suggested by someone on Quora or go to a pharmacist, tell him your symptoms and let them give a generic medicine. But you would instead go to a doctor who does a thorough diagnosis, sometimes the problem is not what you thought it was, might refer you to a specialist if needed, treat as necessary, support you until you get healthy.

This is the same. It is your decision if you want to do your own diagnosis or consult a doctor but please don’t compare them.

X: Looks like you have got offended. All I am saying is you don’t have to spend or invest much, why charge …. money then?

Me: We do. We invest time, expertise and skills.

These kinds of interactions we all face every day, across multiple fields. As freelancers, recruiters, artists, photographers, models, copy-writers, mentors, … Thing is we don’t mind doing it for free for our friends or non-profit causes, but if you are adding value to your product/business, with our services, we do expect to get paid for the value we add.

Note · Oct 11, 2017 · Permalink · 1min read

There are always 3 sides to an argument. Your side, other side and the right side, which is usually in middle of the two sides.

Acquisition Gateway GSA

Project · Oct 11, 2017 · Permalink · 1min read

The Acquisition Gateway is your workspace for acquisition professionals and federal buyers to connect with resources, tools and each other to improve acquisition government-wide.

This website is built in Drupal 7 and AngularJS, in a progress decoupled architecture. Aside from regular updates and changes, I have enhanced search functionality, developed custom modules to remove duplicate taxonomy and to create organic groups based on taxonomy.

Project URL: https://hallways.cap.gsa.gov

Technologies Used : Drupal, Apache Solr, Github, Amazon AWS, AngularJS.

Interaction · Oct 9, 2017 · Permalink · 1min read

Me: So what is one change or action, that you think would make a difference in a person’s life?

X: (After a minute of thinking) Have you ever asked or being asked by others, questions like what do you do? what are you doing? what next? what for? …

Me: Yes. Almost all the time…

X: If a person asks those questions to him/her self, it would make all the difference.

Interaction · Sep 30, 2017 · Permalink · 1min read

Met this amazing person, Mr. X at a conference, who turned his side hustle into his career recently.

Me: Any tips on transitioning a hobby into business?

X: Yes. But first of all, know the difference between a hobby and side project.

Me: ??

X: Hobby is something you are passionate about and do it for yourself. Side project is something you are passionate about, but do it for community, people, the world. Side projects can be made into business, because you are contributing where as hobby is just meant to be a hobby.

Me: Still confusing, could you give an example.

X: Yes. If you collect currency, because you want to have huge collection of them, it’s an hobby. If you are passionate about educating people about various currencies, and started collecting them so you can demonstrate, that would be a side project which could be turned into a career.

Leadership Ft Dashavatar

Post · Sep 27, 2017 · Permalink · 6min read

There have been a lot of articles on leadership/ entrepreneurial skills these days. But you know, these qualities have been mentioned hundreds of years ago. In fact, the hidden goal of ‘Bhagavatam’ from Hindu mythology (Ten forms of Vishnu) might be to explain these qualities, in a filmy style, though. I would like to explain what each avatar is trying to portray and how they are relevant in today’s world.

1. Matshya: [Vision, Dream]

Depiction of Matshya Avatar

[A Fish that predicted huge storm coming through, warned the king to save life chain, guided their ship to a safe place]

Successful leaders are visionaries. They are able to foresee the problems and opportunities. They have a vision and guide people towards that vision. In this process, they might even change the world, forever.

“I have a dream…"-Martin Luther King Jr

We all witnessed how his vision, redefined history.

2. Kurma: [Patience, Hope]

Depiction of Kurma Avatar

[Turtle that gave hope to tired and ‘about to give away’ gods and demons to continue churning of ocean, till they get what they started it for]

One of the most important qualities for upcoming entrepreneurs – Patience. When working towards a great goal, the team has to go through a lot of difficulties. They face criticism, Results don’t turn as expected … The team can easily get discouraged and might give up. It’s leaders responsibility to inspire them, have patience, make the team believe in their dream.

Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time” – Thomas A. Edison

If Edison wouldn’t have tried 10000 times, we might still read under candle lights

3. Varaha: [Courage]

Depiction of Varaha Avatar

[A Wandering pig, that found earth hidden inside water. In spite of knowing a great risk ahead, it went alone and saved it]

A true leader has the confidence to stand alone, the courage to make through tough situations. Everyone has fear of obstacles, but in order to successfully accomplish a goal, a leader must have to overcome those fears, risk everything and go ahead.

“Do not come up, I will handle them,” – Major Sandeep Unnikrishnan, Martyr of 26 / 11 attacks.

These were Last words before saving hostages and his death

4. Narasimha: [Responsibility]

Depiction of Narasimha Avatar

[Lion-Headed human, that killed a Demon King Hiranyakashyap, who threatens to kill his own son for being a worshiper of Vishnu ]

A true entrepreneur is responsible for protecting his team during worse scenarios. He/she must give confidence to their team that they’ll stand by through good and bad times. They must take responsibility and do all they can to protect their team members.

“Pehle ye batao Sachin ki naam ki spelling galat kisne likhi? (First answer this: who wrote Sachin’s spelling wrong?)” – M.S. Dhoni

blasting on Bangladesh officials for writing Sachin’s name wrong. I know Dhoni is captain cool, but it’s nothing wrong, being aggressive especially when team’s reputation is at stake.

5. Vamana: [Simplify]

Depiction of Vamana Avatar

[A short saint, that compared the world in three simple things – Earth, Sky, People ]

‘Any one can make things hard and complex. It takes a touch of genius to make it simple’ – Albert Einstein.

Throughout history, every great leader/ businessman was successful because of his/her simple yet deep philosophies. People usually complicate tiniest things, leading to chaos. Leaders should always work hard to keep things simple.

“Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it’s worth it in the end because once you get there, you can move mountains.” – Steve Jobs

Simple design has been success mantra for Apple, since it’s origin.

6. Parasurama: [Policies][Mentoring]

Depiction of Parasurama [A saint, who fought for justice and equality, well known for defining ethics, policies, also for coaching major fighters, like Karna, Bhishma, Drona, …]

No matter, how small or huge, a company’s success is based on how good it’s core principals policies are. A leader should take huge care, defining these policies as These policies are the backbone of any organization.

“ Law and order are the medicine of body politic and when body politic gets sick, medicine must be administered” – B.R. Ambedkar, architect of constitution of India

A great team starts with a great leader and coach, who sets expectations, maintains high standards. A lot of survey’s suggested that majority of companies succeeded due to right mentors they had.

“Whenever I am asked what is the missing link between a promising businessperson and a successful one, mentoring comes to mind.” Richard Branson, Virgin Group

7. Ram: [Delegate][Honesty]

Depiction of Ram Avatar [A Prince, famous for his journey to get back his kidnapped wife. Fought against fierce army of Lanka, with the help of a small army of monkeys]

Present day startup entrepreneurs/CEO must truly understand this.

“You can’t do everything”.

An effective leader should know, what’s a good idea is when they hear one and to give credit to the person with the idea. A great leader needs to be able to delegate work effectively. Best way to achieve it by giving members ownership of work, assigned to them.

A Leader needs to show humility and honesty to their team. Being honest removes the obstacles between him/herself and the team.

“Trust men and they will be true to you; treat them greatly, and they will show themselves great.” –Ralph Waldo Emerson

8. Krishna: [Fun][Emotions]

Depiction of Krishna [A prince, symbol of love and happiness]

Any team/people, including their leader, are humans first, whose ultimate goal is to be happy. Seizing the moment and bringing fun and creativity in the workplace are core strategies of the good leader. Real people are attracted to real people, not to monotonic and machine-minded ones. A leader should know about his team’s work and make sure that they were never overburdened.

Moreover, give people a little love, get it back multiplied by 100.

“Work without love is slavery” – Mother Teresa

9. Balarama/Buddha: [Self Realization]

Depiction of Buddha

There is a huge conflict on who next (Vishnu’s 9th avatar) is. Different scriptures suggest different one, Balarama or Buddha. Whoever it is, they suggest the same – Self Realization.

A true leader spends an adequate amount of time, evaluating him/herself. They must know their strengths and weaknesses. After all, how can someone organize a team when they themselves are not organized.

Also, leaders should put their ego’s aside and collaborate with others to achieve a common goal.

“We all need people who will give us feedback. That’s how we improve” – Bill Gates

10. Kalki: [Adapt] [Restart]

Depiction of Kalki

[Destroyer or Apocalypse, considered as end of world or beginning of new lifecycle ]

Every leader has to realize that everything comes to an end. Trying to stick to traditional methods, even after people getting bored, is insane(Gaddafi, for example). The world doesn’t like monopoly. After a certain time, every leader/entrepreneur must reinvent himself or accept that it’s time to step aside and give way to new ones.

“I came to this decision and when I came to it, I was very clear in my mind. it was time for the ‘next generation of the young Indian cricketers’ to take over.” – Rahul Dravid on announcing his retirement.

Everything comes to end. A good leader accepts it and lets others take their place.

All the above-mentioned qualities or avatars are based on my perspective. Not sure about facts though. I hope you enjoyed the article, feel free to provide feedback. Thank you.

This article is inspired from “Krishnam Vande Jagadguru” song by ‘Sirivennala Seetharama Shastry’.

Sources :



Interaction · Sep 25, 2017 · Permalink · 1min read

Interaction with stranger, X with a camera at a coffee shop

Me : you seem to be a great photographer.

X (with attitude) : You see my friend, There are no great photographers, just great photos.

Me : wow! that itself says how good photographer you are. Can I have look at your snaps?

X : huh well…It’s my friends camera. He’ll be coming in 5 min. And I’m not a photographer.

followed by silent smile, that turned into a huge laughter and Hi5