Saturday, December 12, 2015
RFID to detect Corruption
Saturday, September 19, 2015
Counterfeit Products Detector
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
Saturday, August 22, 2015
My Scores for Actresses
Monday, July 20, 2015
New Feature for Google Maps - Iam Here - Share my location
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
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
// 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
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
The operator== function is supposed to help the psi( pair
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.

























