Saturday, December 12, 2015

RFID to detect Corruption

This idea i would say is best suited for developing countries like India, where corruption is rampant. The idea is every government officers including Police should be given a RFID. They should wear this gadget when in duty. Now we will solve the traffic police corruption. Every citizen should posses a RFID reader embedded in their cell phones. Indian government should provide a app to help detect the identification of officers through this RFID reader. And also the app should record voice when they approach a RFID signal. Now the scenario. A man in a bike or car approaches a police officer. Automatically app will detect the police officers identity and record his voice and all the talks happening between police and public.This app will work offline as well. Just share this info with the government, when u get online. I want scientists to help record human voice without interference from road noice. This technology can be used with other government officers as well. You go to a taluk office, officer asks money or gives irresponsible reply. Record it without moving a finger. Automatically your cell phone will record his voice and identity when you go near an officer. Complaints like this with evidence will help government to arrest corrupt officers easily.

Saturday, September 19, 2015

Counterfeit Products Detector

I have a simple technique to detect counterfeit products.The Product may be a medicine, branded garments, or anything may be even a willow wood bat. First we have to associate a 15 digit Alpha Numeric character with every product. These 15 digit alpha numeric character needs to be unique for a company, One company need not verify whether it clashes with other company's code. Two different companies can have same code. This code will be hidden. Once you buy a product, you have to scratch this hidden code and sms it to the company's number. The company will send u reply with complete information about the product.With the name of the product, Price and manufacturing date and expiry date(in case of medicine) or size(in case of garments). If these details match, the product is original or else counterfeit.This alpha numeric code can be a QR code, in countries well connected through internet and a huge population uses smart phones. This QR code should also be hidden and it needs to be scratched to see it. You buy a product, pay money, get the bill and go home, then check whether it is original or counterfeit. If it is counterfeit, call the company and the company should give you money for helping it to find counterfeit products. Each company will have a phone number to sms. And QR code can be used to first detect the company 's link through some part of the code and then remaining code sends this Alpha Numeric Code to verify its authenticity. So all u have to do is scan QR code. It will send you all details of the product. If there are crores of a product for a single company like pharmaceutical companies. You can give different phone numbers to different products. In case a company has a few variety of products, but each variety is sold in huge numbers, then we can add product number in the details sent through sms. But definitely,all the product details should be sent along with the product number.

So, How are we going to tackle brute force attack. Some one sits with a cell phone and tries random number to a specific product say penicillin. He will get the details of the product and put those details in a counterfeit product. To avoid this we will allow only 5 wrong entries from a cell phone in a month. Above that it will be blocked. Another attack, take a used medicine and put those details in a counterfeit product. To avoid this, whenever somebody messages a code, only first time it will show as a genuine product. Next time somebody asks details with the same number, it will show "This product is already sold out. May be a counterfeit product". Every time a number asks with either wrong code or already used code, Customer care will contact the consumer and investigate the issue. We will record the code and the phone number combo every time for future purposes like big data.
QR code is just for convenience,  it will do the same thing, send sms to the company's number with the code. The convenience is you don't need to type the code or phone number. You scan and automatically it will send sms. It will not work on tablets. Only cell phones.

Suppose. say in the future, everybody has started using this Counterfeit Product Detector. Some bogus company issues its own CPD and if you scan CPD, it will go to their network and it will display information about a counterfeit product as a genuine one. To avoid that, If u scan the QR code, it will send 2 messages, first to regulator, who will send the company's name in the first SMS and then the second message will come from the company which will tell about its details. If you don't have smart phone , you have to send 2 sms one to regulator asking for company's name, then send the CPD Alpha numeric code to company's number.

Definitely in the future( 5 or 10 years), everybody is going to hold a smartphone. All they have to do is download the CPD app from the regulator, scan the QR code and remaining will be done automatically. There is one small feature, i thought of can be useful for CPD app. Suppose you mistakenly scan the CPD code you have already scanned from the same device, the app will store the CPD code u have already scanned using that device and will not send SMS and responds to the user that u have already scanned this device and shows its details. There are so many things like this you can do. I stop here and let everybody take this is as a seed idea and develop this plan.

Friday, August 28, 2015

Produce electricity from sea waves for fishermen

We can produce electricity from sea waves along coastal lines. They project may not necessarily produce megawatts of electricity, but it is enough to charge batteries to bring lights to fishermen's home and to use for running boats. The project can be done easily by engineering students and there is no need of investment from big companies either. 

Saturday, August 22, 2015

My Scores for Actresses

Aishwarya Rai

Comments : First Crush. First Kiss. Classic Beauty, Always 
going to get maximum marks from me.
My Marks : 90


Alia Bhatt

Comments : Looks Fine.
My Marks : 75

Amala Paul

Comments : Attractive Face
My Marks : 78

Anushka Sharma

Comments : Face suits her attitude, Wont say beautiful. 
But definitely trendy.
My Marks : 80

Deepika Padukone

Comments : Charming with nice adha.
My Marks : 78

Genelia

Comments : Girl Next Door
My Marks : 75

Hansika Motwani

Comments : Bubbly and Beautiful
My Marks: 80

Ileana

Comments : Looks like a model.
My Marks : 75

Kajal Aggarwal

Comments : Does not suit my definition of beauty
My Marks : 65

Kangana Ranaut

Comments : Cute Little Girl
My Marks : 75

Kareena Kapoor

Comments : Does not suit my definition of beauty
My Marks : 65

Katrina Kaif

Comment : My Dream Girl
My Marks : 88

Keerthi Suresh

Comment : Looked beautiful, from the first time
i saw her
My Marks : 80

Nayantara

Comment : Pretty Face
My Marks : 78

Parineeti Chopra

Comments : Looks Fine
My Marks : 75

Priyanka Chopra

Comments : Stylish
My Marks : 83

Samantha

Comments : My Favourite Girl, looks 
awesome in certain angles.
My Marks : 83

Shradha Kapoor

Comments : Looks really beautiful, 
despite being daughter of a celebrity
My Marks : 85

Shriya Saran

Comments : Good Curves
My Marks: 75

Shruthi Hasan

Comments: Will never agree with anyone 
that says she is not beautiful.
My Marks : 78

Sonakshi Sinha

Comments : Looks OK. Maybe acts well
My Marks : 78

Sonam Kapoor

Comments: To be honest, Got lucky 
being daughter of a celebrity.
My Marks : 70

Tamannah Bhatia

Comments : Good looking
My Marks : 78

Trisha

Comments : Looks awesome, when dressed up well. 
One of my favorites
My Marks : 80

Vidya Balan

Comments : Looks like a beautiful aunty.
My Marks : 80

Yami Gautam

Comments : Fair and Lovely
My Marks: 80



Note : Marks given, based purely on beauty and comments given within my knowledge of English.

Monday, July 20, 2015

New Feature for Google Maps - Iam Here - Share my location

So basically how "I am here" works is it pin points your location to whoever is interested in your location. There are certain features which can be added to Maps like Parental control, Deliver Here, Meet Me here.

Parental Control

Suppose u want to know where your children are. You can use the new parental control feature of maps which will pin point the location of your children. You have to be enable this feature in your children's Cell phone. The username will be the cell phone number and you can set the password. Once enabled this feature will help you trace all the locations your child or teenager have been to. This history of locations will be recorded using the cell phone GPS. Suppose your child is lost, you can use this feature to pinpoint their location

Deliver Here

This is a very new idea, which will bring changes to how logistics operate in an under developed or developing country. So the idea is you will create a token which will be a ten digit alpha numeric number, which will pin point the location u want your items to be delivered. With " I am Here" Feature you can create token for the location you are there at that point of location. You send this token to whoever concerned entitled to deliver your product.

Meet Me Here

This feature helps to share your current location to somebody else. You create the token( for current location  or some other location) and send it to someone you wanna meet or to a group of people who would like to join for a party or so.

Map Address

I will call this 10 character token,a Map Address. I hope in future all the PIN codes are replaced by this Map Address. We can add this Map Address in all documents asking for address. I hope in future every place has a Map Address. In developed countries, it may be easy to locate a place with physical address. But in other countries where there are no proper roads or boards guiding us to the location, this Map address is going to be a game changer. A postman or courier boy or anybody with a cell phone and GPS will be able to locate any place very very easily. This method is going to bring more people to Google Maps.

Generate Map Address

Map address can be generated only by going to the specific location and use your GPS and Google Maps. Once generated the Address will be assigned to you for a life time. The source of Map address is you. You have to mention that address in all forms, documents, in Aadhar Card, or whatever card in which your country records your address. Its you who will mention that Map address in postal letters, in Amazon ( for delivery of goods) or whoever needs your Physical address.

Sunday, April 19, 2015

Correction for NString.h header file in Thinking in C++ Volume 2 - Chapter 6 - Generic Algorithms

I was reading this book by Bruce Eckel and found a small correction that needs to be done in NString.h header file in Chapter 6 - Generic Algorithms.

NString is a kind of string object that keeps track of the order in which that particular object originally appeared, using a static map (static vp words) that maps NStrings to counters(int thisOccurence). thisOccurence field indicates the order in which this NString was discovered. Lets get into the issue. The original code is like this.

//: C06:NString.h
// From "Thinking in C++, Volume 2", by Bruce Eckel & Chuck Allison.
// (c) 1995-2004 MindView, Inc. All Rights Reserved.
// See source code use permissions stated in the file 'License.txt',
// distributed with the code package available at www.MindView.net.
// A "numbered string" that keeps track of the
// number of occurrences of the word it contains.
#ifndef NSTRING_H
#define NSTRING_H
#include
#include
#include
#include
#include

typedef std::pair psi;

// Only compare on the first element
bool operator==(const psi& l, const psi& r) {
  return l.first == r.first;
}

class NString {
  std::string s;
  int thisOccurrence;
  // Keep track of the number of occurrences:
  typedef std::vector vp;
  typedef vp::iterator vpit;
  static vp words;
  void addString(const std::string& x) {
    psi p(x, 0);
    vpit it = std::find(words.begin(), words.end(), p);
    if(it != words.end())
      thisOccurrence = ++it->second;
    else {
      thisOccurrence = 0;
      words.push_back(p);
    }
  }
public:
  NString() : thisOccurrence(0) {}
  NString(const std::string& x) : s(x) { addString(x); }
  NString(const char* x) : s(x) { addString(x); }
  // Implicit operator= and copy-constructor are OK here.
  friend std::ostream& operator<<(
    std::ostream& os, const NString& ns) {
    return os << ns.s << " [" << ns.thisOccurrence << "]";
  }
  // Need this for sorting. Notice it only
  // compares strings, not occurrences:
  friend bool
  operator<(const NString& l, const NString& r) {
    return l.s < r.s;
  }
  friend
  bool operator==(const NString& l, const NString& r) {
    return l.s == r.s;
  }
  // For sorting with greater:
  friend bool
  operator>(const NString& l, const NString& r) {
    return l.s > r.s;
  }
  // To get at the string directly:
  operator const std::string&() const { return s; }
};

// Because NString::vp is a template and we are using the
// inclusion model, it must be defined in this header file:
NString::vp NString::words;
#endif // NSTRING_H ///:~

The plot here is every time a new NString is added,it first updates the member string s, and calls the function addString(). This function creates a pair of  (psi) and compares it with the words vector(which holds uniquely every string along with its number of occurences).If it does not find a match, it means the psi containing the first string element is occuring for the first time, so it updates the NString's thisOccurence with zero and pushes the word to static words vector.If it finds a match through find function, it increases the second element( holding the number of occurences ) of the iterator (which points to the match found). Thus incrementing the count of occurences of that particular string in the  vp words.

The operator== function is supposed to help the psi( pair ) in comparing the words( std::vector ) in the find function. The words should be compared with its first element the string . But it is not happening so. As a result, when second time a psi string comes, the particular count in static words is incremented to 1 from 0. Next time the same string comes, the psi p(x,0) is compared with words(x,1), but the match is not found , because comparison is done on pair as a whole. As a result duplicate p(x,0) is inserted. The problem here is the comparison of psi should be solely based on the first element ( the string).

My solution:

Add this Binay Predicate

struct FindEqual: public std::binary_function< psi, std::string, bool > 
{
bool operator () ( const psi &word, const std::string &pString ) const {
           return word.first ==pString ;
        }
};

And modify the find function this way

vpit it = std::find_if(words.begin(), words.end(),bind2nd(FindEqual(),p.first));

Here we are using Binary Predicate to compare only the first element of words with the first element of psi p

Friday, February 20, 2015

New ideas for Apple phones

I have developed new ideas for Apple iPhone. The viability or whether how it will do in market, I don't know. But I have an innovative idea for iPhones. The idea is to provide Doctor's iPhone, Engineer's iPhone, Women's iPhone, Children's iPhone and so on. Doctor's iPhone will have emergency kits like thermometer, blood sugar investigating device and so on. With the rise of nanotechnology, I hope even blood pressure, pulse finding device and much more complex kits will be provided in phones. Doctor's iPhone will have all the apps required for a doctor. The apps will update the doctors with latest technologies in medical field. And the apps can be provided at a discounted rate in Doctor's iPhone. Next is women's iPhone. The important aspect of women's iPhone will be giving security to woman. In case of emergency,there will be a panic button, which will tell the coordinates of location of the woman to police control room and will keep on tracking the device. To avoid false calls, the police will make a phone call, in case of failure to respond, the police can take action. The important idea behind this technology is the design if the button. It cannot be an ordinary button or a soft button. It should be a inwardly carved button, so that it will not be pressed while we normally use it, at the same time can be easily pressed in case of emergency. Also we can use all girly books, girly magazines, everything through app at a cheaper price. Next children's phone. Children's iPhone will have small toys like one which blows bubbles. There is no limit to the variety of games which can be put in I phones. The look of the phone should have a cartoon like mickey mouse phone, chotta bheem phone. These phones should be cheap. There is one app which is very important, the details of the family members phone numbers and the address of the child. This can be seen with a single button by anyone. Next is Engineer's iPhone, this is to target civil engineers, since I don't know anything about civil engineering I skip this I phone's details. May be these kind of iPhones succeed in the market.

Smart Home Network

The future of home appliances lies in devices being able to communicate with each other. One such idea is to make the commonly used cellphone as an universal remote. This way we can make a smart home network connected to a cellphone through WiFi. Instead of providing a remote separately each for appliances like TV, or an A/C, we can club together all the remotes and provide an app for each of the devices. The advantage of using this technique is huge. We can give parental control, ability to operate home appliances only with those particular devices configured. We can use this technique to operate even lights and fans, even cookers. We can even program our cookers to cook for a certain period in this temperature and cook for certain other period for some other temperature. This app will multiply the controls of devices in a huge way. To switch off all home appliances in one go, we can use a consolidated app. There are numerous advantages with this technology.

Next Big thing for Microsoft Office

I thought what could be the next best thing for Microsoft Office. Then I realized that, like PCs through which Microsoft made huge profits, there is another thing by which Microsoft can make huge profits, though the kit will not be costly. The kit is Exam writing kit, with office software. Before we go into the technology behind the kit, we will analyze why is it very much necessary and why it is unfair to students, if we don't use it. It is a common saying that if u have good hand writing skills, u r brilliant. That is not at all true. The fact is if u have good hand writing, u will get more unfair marks. Then u become pseudo brilliant. So we need to avoid that. Next, for the paper evaluator, it will be very easy to correct the papers, if the text is written through office instead of hand writing. Next if the student makes a mistake and wants to correct it, he has to make the paper illegible. Next thing is the speed at which, the student will be able to write increases manifold. Now, we will go into the technology. The Exam writing kit, will have a touch screen, keyboard and  a printer. And the software will be nothing other than office. You should be able to write with the keyboard and take a print with the printer. No soft copy will be generated. No provision to insert pen drive. No WiFi, no ways to transfer any soft copies. There should be only one way to communicate with the device, that too to upgrade the software. Only special technicians with a newly designed pin ( hardware ) with data storage ( upgrades ) should be able to communicate with the device, that too only by dismantling the device. When students want to write text, they can use the keyboard, when they wanna draw, they can use the touch screen to draw. The real test for Microsoft office, will be how they write maths exams very fast. Office has to be upgraded. After time allocated for writing the exam gets over, automatically the kit will exit and will print the papers. There can be some basic software for timing the exam and to print bar coded exam number in every sheet. This will avoid malpractices like exchanging papers. More technology can be added to this kit like in only one angle u should be able to view the screen, in other angles, u can see nothing, this will avoid copying or just put keyboard above the screen.

Thursday, February 19, 2015

Ways to avoid malpractices in board exams

There are two ways to avoid malpractices in board examinations. One is that We can install CCTV cameras in board examination centers to avoid copying, using bits. Cameras should be installed in center of the hall in the ceiling, so that camera gets full view. There should be a common control room in every district to monitor it. We should keep the footage for one year, in case we need to cross check any complaints we receive. Another way is for avoiding management to give bits to students. Instead of allocating one hall for a single school, we can club at least 4 school students from the same locality in a single hall. Every four consecutive seats, there should be four different school students. So, if management wants to give bits, it has to give bits to 16 halls instead of 4 halls, if the school's strength covers 4 halls. Also it will not be a secret, news will spread.

Monday, January 19, 2015

Pagutharivu

Thanthai periyar ethirthathu kadavulin peyaral nadathapatta samooga aneethagalayum athanal yerpata jaathi kodumaigalayum, yetra thazhvugalayum than. Atharku avar yetrukonda karuvi than pagutharivu. Kadavul illai endru moodathanamaga tharkam seivathu pagutharivu illai, avar irukindrara endru araindhu arivathe aagum. Kadavulai thedungal,kuselanuku kannan uthaviyathu pola, ungal vaazhvil avar etho oru vagayil, murkal niraintha pathayil nadakumbothu thunai nirpar. Hare Krishna. Hari bol.

Sunday, January 18, 2015

Existance of God

kadavul meethu naam asayadha nambikkai vaithirukum pozhudhu, avar nam vaazhkaiyil oru maatrathai yerpaduthugirar, porkalathil seivathariyathu kuzhambi nindra tharunathil arjunanuku thelivu thanthu matrathai yerpaduthiyathu pola. Athan moolame kadavul irupadhai nammal unara mudium. Oliyin vegathai kooda thanda mudiatha manithan seitha ariviyal karuvigalai kondu anda saraasarangalayum padaitha kadavulai parthal than nambuven endru kooruvathu abatham. Ithu arivalla ariveenam. There is no need to prove the existance of God scientifically. Its a belief. Thats why its called faith. Hare Krishna. Hari bol.