As I am working in an app which needs keys to be stored in Redis and index data in Solr, due to redis eviction policy, sometimes keys gets evicted, but index in solar remains same, which result in confusing local behavior for me.To clear local redis cache copy, I do it from redis-cli$ redis-cli127.0.0.1:6379> FLUSHDBOK127.0.0.1:6379> FLUSHALLOK127.0.0.1:6379> exitTo remove solr indexes, I use curl:$ curl http://localhost:8982/solr/update?commit=true -d '*:*'
Angular (and some other JS frameworks) implements two-way data binding. With two way data binding, the view is automatically updated when the model (or data) changes and vice-versa. Although, we can consider it the framework’s job, it is interesting to know how this works under the hood. So let’s ...
My father in law once lived in same building where Picassowas born, near the Plaza de la Merced in Málaga, Spain. In Ruby and many other languages, you write private methods to implement internal logic you don’t want
Managing URLs in Adwords can be quite a daunting task. A mid-sized online shop can have thousands of URLs for items it is selling, larger shops like Amazon may have millions of URLs on their website. While setting up ads in Google Adwords each ad needs to point to a URL, of-course the URL should b ...
In my previous article Step 1 – R Authentication for Twitter, we got to know how to pull tweets from the tweeter. In Step 2, we will look how to do sentiment analysis on the pulled tweeter. We can do this on two ways 1. Write our won code to do Sentiment Analysis. 2. Using Sentiment package […]
Most of us are using so many apps on mobile and spending plenty of time using those apps. Well, even I am not exception but excess of technology sometime ruins. I would like to narrate one incident where I used Google Maps and screamed after using it.I visited Dehradun, Uttrakhund from Gurgaon recently and chose Google Maps to show me the route. It showed me two ways and advised me to go via shortest route which I followed. After reaching half way, I found that road was damaged so badly that I was not able to proceed. After collecting information from villagers nearby, I got to know that this path was always like that. One of the villagers advised me not to go further on that path as for cars its not possible to cross. He advised me to take alternate route which was going through the villages. Thanks to Indian people who are so kind and helpful.Although that road was raw and some patches were there yet it was better then the path Google Maps proposed. By somehow, I could reach Dehradun crossing so many villages. Generally it takes 5 hours to reach Dehradun but that day it took 9.5 hours to reach to destination. I conveyed my thanks to GOD and villagers who helped me to reach there.To conclude, I am in complete agreement that using technology to some extent surely helps but using it in excess ruins.This is what I have written to Google: " I have used Google Maps (India) to get the way to Dehradun, Uttrakhund from Gurgaon. It showed me 2 ways and advised me to go from shortest path which I followed. After going half way I found that the road is so damaged that I can not proceed. So I would like to suggest that if Google could provide feedback popup for that route where a person can give some rating or comments would be really great. It would help you to choose the best way to go."Share you incidence and help people to make life better.