Sunday, June 9, 2019

Cell phone pinned to car dashboard

If you don't want to buy or temporarily don't have a cell phone mount or cradle to fasten to the dashboard of your car, you can use a rubber band to pin the cell phone to the dashboard. Spread it so that it catches on the tabs of the two center A/C vents (the tabs that allow you to direct the air flow). Then slide your cell phone under the rubber band. If the distance between the two vent tabs is too big for the rubber band, link multiple rubber bands together. Or if there are two radio knobs (e.g. one for volume the other for tuning), see if the rubber band can be spread to catch on these knobs.

Sunday, May 21, 2017

Single-person response speed training for martial arts

Martial arts require quick action, both in attack and defense. While one can train his speed of attack alone, it is almost impossible to train for speed of defense by himself. Two (or more) people have to work together. In sports, agility drill improves the athlete's change of body position and direction of running. But its emphasis is on the change of the body, not on the speed of response, which precedes the body movement and is more critical in any type of martial arts (boxing, Kung-fu, Taekwondo, etc.).

Although two-people training is needed for this training, it is not always convenient to arrange for two people and it inevitably causes injury. Just for the purpose of improving response speed, one-person training has its advantage, except that there is lack of such equipment. A possible design is a machine with a flat front plate. Multiple holes are open on the front. From each hole, a rod made of rubber can quickly pop out. The trainee stands close to the machine and has to quickly respond to the protruding rod by either turning his body to avoid it, or catching it with his hand.

Shopper's guide at store entrance

Unless you go to a store where sales people wait to assist you, a shopper's guide, either a paper map or a computer, may be helpful to guide you to the exact isle and shelf. This is particularly useful for a big store and the products are inherently complicated for selection, such as Home Depot, where there is always a shortage of salesmen and you often hear "Customer assistance is needed at ..." on the speakers. A simple computer that only informs of the isle and shelf for a type of products is helpful, but can be further improved. A sophiscated software program should be able to take voice in addition to keyboard input and answer questions as much as it can, not just "Where do I find air conditioner filters?", but also "Do you carry Pfister faucet side sprayer model 951‑026U?", or even "Does SKU LK1CS fit American Standard model ...?" No software is a replacement for a human. But such programs, which software programmers can develop with relative ease, can solve the problem of not enough in-store employees and, in limited cases, help customers with better accuracy and higher efficiency than humans.

Sunday, October 2, 2016

Optimal age for profession

James Gosling, the creator of the Java programming language, wrote on Facebook that "In the time between Sun and LRI I’d get lines like 'We normally don’t hire people your age, but in your case we might make an exception'". Even a world-class computer programmer is not immune from implicit age discrimination during a job interview. (Or should we call it natural selection in a modern society?) For a long time, I've been thinking of the optimal ages for various professions. They are not necessarily the same as the actual mean ages of the workers in their respective occupations, even though for lack of data, the latter can be substituted as an approximation. For example, the 2015 Labor Department statistics shows that "computer and mathematical occupations" have a mean age of 40.8, and "architecture and engineering occupations" 43.6. But as we all know, IT professionals are much less popular after age 40, or even earlier, while most engineers continue to enjoy their seniority well into 50, simply because the engineering technology is not evolving as fast as computer technology and accumulated personal experience matters.

"Optimal" is in the eyes of the beholder. As a result, no objective measurement may be constructed. Instead, a survey among a large number of employers is needed. As of today, I know of no such data available. But I can imagine that athletes take the youngest extreme, doctors probably take the other, and IT professionals are not too far away from athletes. Each category can be further divided. Shooting athletes don't have to be as young as runners. Database administration is a job well sought after by ageing programmers, for job security as well as a better pay. In China, traditional Chinese doctors (TCM practitioners) will undoubtedly be sitting at the oldest extreme of this age-popularity axis, surpassing non-TCM doctors (called xīyī in Chinese). In all countries, old glass blowers are dearly loved grandpas, who would kindly reject the job offer for a happy retirement life, at least before the time 3-D printing catches up with human glass blowing.

Software or Web site for ancient character recognition

As of today, there is no software that can recognize ancient characters, such as ancient Chinese characters in seal script or oracle bone script, ancient Egyptian hieroglyphs, Maya script, etc. These characters or scripts will not be encoded by Unicode, and so will remain as images. A human has to read and interpret them. This takes years of practice and is error-prone. Since OCR (optical character recognition) or even facial recognition has become commonplace, ancient character recognition can be made available without too much modification of existing technology. Once that's done, a Web site can be set up for the convenience of scholars and hobbyists alike.

Associated with this technology, the software that can recognize ancient characters can be extended to generate "Levenshtein distance"-like metric or index. There is at least one use case with this metric. The scholars studying ancient Chinese characters know that before Qin Shi Huang (literally, first emperor of Qin) united China, the writing styles of the same character differed in different states. The researchers judge the similarity of the styles and group the states accordingly. But this human judgement is inevitably arbitrary and varies from person to person. Software-assisted similarity judgement will be a great step toward standardization. Levenshtein distance works on words composed of letters. But the concept can be extended to glyphs if a computer scientist can cooperate in this research.

Monday, September 19, 2016

Web site to collect dominant opinions of a specific language group on a specific incident

Suppose you want to know how most of Germans, Russians, Japanese, Spanish-speaking people, English-speaking people respond to a specific major world incident, such as Russian hackers' break-in of WADA (World Anti-Doping Agency) database. You can guess that many Americans condemn the hacking while Russians cry for hypocrisy. To confirm that, the traditional method is to conduct a poll or survey. But that is time-consuming, somewhat intrusive, and not very efficient. Alternatively, you can go to major Web sites such as, to check (mostly) American readers' comments below this particular news, and do the same on major Russian news media Web sites, and then on the Web sites mostly visited by Germans, Japanese, for opinions of other nationals. If the news on those Web sites has gathered enough readers' comments and the comments can be like'd by other readers, you can simply read the top comment or comments to know the popular opinion of the specific nationals. No method is perfect. But this approach is fast and easy. One single person can do this job within a matter of ten minutes, if he has a good reading capabilty of different languages.

As stated, this process is manual and probably tedious. Fortunately, it is not technically difficult to have it automated. Someone can build one single Web site where the reader can search for the news reports of the same incident on Web sites of different languages. Then the reader can check the most like'ed comments posted by people speaking those languages. This Web site should automatically translate, by way of Google Translate or any online translation engine, the entered keywords and submit them to representative Web sites, such as,,, etc. In addition, the Web site should also gather such information from Facebook, where major news medias frequently provide news feeds and readers post comments that by default are already sorted by number of like's.

There are shortcomings in this opinion gathering method and the automation Web site. Although sampling bias is not unique to any specific polling method, it may be particularly evident in this passive sampling. But more importantly, while machine translation as of 2017 can do a good job with well written articles, it struggles with casual writing with spelling or grammatical errors, which a human can easily tolerate. Readers' comments on social networks have so many such errors that a human translator may have to step in to decipher what the passages exactly mean. If necessary, a group of volunteers from different countries have to work on such a Web site. Lastly, the people speaking a specific language are not necessarily of a specific nationality. But that's a minor point.

Remotely controlled gun to protect premise

Among many ways to prevent burglary, one has not been implemented: remotely controlled gun. The remote control is equipped with a surveillance camera and the gun trigger is pulled through necessary solenoid mechanical-electrical mechanisms. Although no company makes this product at this time, all technology involved in this combination of surveillance with a remotely controlled gun is available.

Cell phone pinned to car dashboard

If you don't want to buy or temporarily don't have a cell phone mount or cradle to fasten to the dashboard of your car, you can use ...