Category Archives: Topical

Includes posts on physics, philosophy, sciences, quantitative finance, economics, environment etc.

PinPoint

MySQL on Mac OSX Yosemite

If you use XAMPP for dev work on your Mac at home, and updated your OS to Yosemite, you may be temporarily distressed when you find that your MySQLd doesn’t start up. The fix is fairly simple.

Edit /Applications/XAMPP/xamppfiles/xampp. (You may have to use sudo to do this.)

Look for:

$XAMPP_ROOT/bin/mysql.server start > /dev/null &

And add unset DYLD_LIBRARY_PATH on top of it. It should look like:

unset DYLD_LIBRARY_PATH
$XAMPP_ROOT/bin/mysql.server start > /dev/null &

Restart MySQLd and you it should work.

MotherTeresa

Philanthropy of Mother Teresa and Other Spiritual Leaders

Philanthropy comes in two flavors. One is where you make a lot of money doing whatever it is that you do, and then spend a large part of it in directly helping other people. Bill Gates is a philanthropist of this kind. The second kind is where you collect money from a large number of people and put it to good use. Organizational charities do philanthropy of this kind. So do spiritual leaders, like the god men of India.

Continue reading

9409678513_156ecd1635_feynman

Richard Feynman — How Much Can We Know?

We open our eyes, we see the world, we discern patterns. We theorize, formalize; we use and rationality and mathematics to understand and describe everything. How much can we really know, though?

To illustrate what I mean, let me use an analogy. I wish I had the imagination to come up with it, but it was Richard Feynman who did. He was, by the way, quirky enough to compare physics with sex.

Continue reading

13904226857_427344e11a_Indian-Politics

Indian Politics – the Last Resort

In India, they say politics is the last resort of a scoundrel. And it does seem to hold true there; Indian politicians are, by and large, corrupt crooks and bullies.

A quick Google research shows that it was Dr. Samuel Johnson who said, “Patriotism is the last resort of the scoundrel.” I guess our colonial rulers modified to suit the Indian condition. In any case, Indians staying out of politics suited the colonial rulers just fine. What is sad is that the Indian politics still attracts mostly scoundrels even after almost seventy years of independence.

Continue reading

8031488298_d780f93a8a_fast-food

Robotic Takeover

Years ago, I read this fictional story by Marshall Brain called Manna. It talked about the robotic takeover of a fast food chain by an intelligent system.

Marshall Brain, as you may know, is the founder of HowStuffWorks.com and a well known speaker, teacher, writer etc. Although he wrote Manna as fiction, he was so certain that it was the way of our future that he actually patented the system he described (if memory serves). Of course, he was right. I just got this link from a friend about how fulfillment centers work — how do you get the same-day or next day delivery on all those mountains of things that you order from the Internet? Here is how. It is astonishing how similar this scenario is to what Marshall Brain described in Manna.

Continue reading

3142958497_5b6bdc95cb_for-whom-the-bell-tolls

Death and Grief

Some recent events have prompted me to revisit this uncomfortable topic — why do we grieve when someone dies?

Most religions tell us that the departed, if they were good in life, end up in a better place. So grieving doesn’t make sense. If the departed were bad, we wouldn’t grieve any way.

Even if you are not religious, and do not believe in an eternal soul, death cannot be a bad thing for the dead, for they feel nothing, because they do not exist, which is the definition of death.

Continue reading

1280px-FieldsMedalFront

Fields Medal – First Woman

Just read the news that Prof Maryam Mirzakhani won the prestigious Fields medal (the equivalent of Nobel prize in Mathematics). She is the first woman to ever win the prize. First of all, congratulations to her. Coming from an Iranian background, being a woman, I’m sure it must have been hard for her.

Women seem to have difficulties in quantitative fields — we see this everywhere. The general belief is that compared to men, women are more creative and intuitive, but less analytical. They take in the world as a whole. Theirs is a romantic understanding, concentrating on the immediate appearance and values of the objects around them. This mode of understanding is to be contrasted with the analytic, classical understanding of men, who seem to mentally divide things in smaller, manageable chunks and drill down to the underlying forms to come to grip with world around them. In giving this description, I’m trying to paraphrase what Richard Pirsig said in the opening chapters of Zen and the Art of Motorcycle Maintenance. The analytic mode of understanding lends itself better to quantitative fields like mathematics, and hence the paucity of brilliance among female mathematicians.

Stating the reason that way doesn’t really explain anything. We have to wonder where this gender difference comes from. Continue reading

267060150_e690307561_programming

Back to Blogging

As you may have noticed, I haven’t been writing much in the last couple of months. It was because of one of my regularly scheduled writer’s blocks. When I’m blocked, I usually find other things to do, and convince myself that they are really important and urgent. One such thing this time around was a revamping of my blog backend. The original design was dated, and it really needed an upgrade. Or so I told myself and worked on it for a few weeks. If you are reading this post, you can see the fruits of my labor. And I hope you like it.

Continue reading

14085902214_ce64468278_blogging

High Performance Blogs and Websites

Do you have a website or a blog and feel that it is getting bogged down with heavy traffic? First of all, congratulations — it is one of those problems that webmasters and bloggers would love to have. But how would you solve it? The first thing to do is to enable PHP acceleration, if your site/blog is PHP based. Although it should be straightforward (in theory), it might take a while to get it right. You know what they say — In theory, theory and practice are the same. In practice, they are not. Acceleration, however, is a low-hanging fruit, and will go a long way in solving your problems.

Once you have extracted all the mileage out of the accelerator solution, it is time to incorporate a Content Delivery Network or CDN. What a CDN does is to serve all your static files (images, style sheets, javascript files, and even cached blog pages) from a network of servers other than your own. These servers are strategically placed around the continent (and around the globe) so that your readers receive the content from a location geographically close to him. In addition to reducing the latency due to distance, CDN also helps you by reducing the load on your server.

Continue reading

5857823720_f4eb48c9a2_blackjack

Learn to Play Blackjack

Here is an online Blackjack game that will teach you how to play it. If you don’t know what to do, just ask the program! This post hopefully teaches you sound strategies in playing Blackjack. But you should know that even with the soundest of strategies, Blackjack is a losing game. The house always holds a small edge. The best any strategy can do for you is to increase your staying power — the time it takes you to lose your shirt.

Continue reading