Typo plugins for "recent comments" and "related posts"
I have been using Typo for 3 months and I am enjoying it so far. So after 3 months, I want to dynamize my blog. An easy way is to show the recent comments in the sidebar. Fortunately there is a nice plugin to do that: recent_comments_sidebar. To install it, if you have Rails 2.1 or above, simply run:
script/plugin install git://github.com/fdv/recent_comments_sidebar.gitIf you have Rails 2.0.2, get the code from github and copy it to your plugin folder.
Posted in Ruby on Rails | no comments |
Radar chart example with OFC2
Following up from yesterday’s example of a scatter line chart. Here is an example of a radar chart. The purpose is double. the first one is to test OFC2 plugin update (let’s say it now: it works !), the second one is to make an example. As Charlie pointed it out, I am leaving the php code to show that if you need further information on OFC2 rails plugin API you actually only need to go to OFC’s original website. For instance, the code from this example is taken here. Notice there are 2 other examples of radar charts here. Let me know in the comments if you have translated to Ruby one of them.
Posted in Ruby on Rails | 10 comments |
Scatter line chart example with OFC2
Yesterday, I needed a scatter line chart for my project. I saw that my current version of OFC did not do it. However, I saw that a new version that has the feature had come out : OFC version 2 Gamera. Looking at pullmonkey’s blog, there was nothing new so I was afraid the update was not made yet. Another look, this time directly on github and good news Charlie had updated OFC2 plugin. To be precise, last commit says “open flash chart gamera not tested yet, but available for those that want to try it out”. So let’s try out the part that interests me: the scatter line chart. I am directly translating this example from Teethgrinder just like I had done for another OFC example.
Posted in Ruby on Rails | 4 comments |
LEND to the rich, GIVE to the poor (not the opposite)
We are in the eye of a stock market cyclone. How did we get there ? One humoristic explanation of the subprime crisis can be found here. Another way to say it is that the financial world completely inverted the roles by lending a lot of money (I am not speaking about microcredit) to the weaker classes and by speculating on them instead of lending money to strong companies.
When I was a child, I was always surprised when hearing the proverb “people lend to the rich”. As many, I was surprised because the first reaction is to think rich people do not need money, poor people do need it. So the logical thing seems indeed to lend to the poor. However, to lend is not to give. In fact, lending money is not only a time exchange. I transfer you this money now, you will transfer it back to me later. But it is even a sale. I am selling you this money for this price (interest rate). So some of our great financial engineers sold expensive products (home and loans) to people who could hardly afford them. Worst of all they speculated on these products, resulting in destroying the value of both the home and the loan. While they did that they GAVE money to the rich. Lehman Brother’s CEO made 500 million dollars in eight years and he was already rich before being CEO. More generally, the whole finance world created crazy wages.
At the same time, companies in the industry got troubles borrowing money and went on a harder pressure to make profits whatever it takes. One such extreme solution is offshoring. On the paper, it seems to generate profits, but globally it destroys value because it destroys the experience acquired by the workers, engineers and management teams (about everyone is impacted by offshoring). This experience is something totally concrete which has a high value. Unfortunately, this value might not be easy to fit in the math models our finance guys came up with.
So let’s summarize : the poor got a money they could never reimburse, companies did not get a money they could reimburse, the rich were given a real part of a money virtually created by speculation. These last ten years finance seemed to work with this motto in mind : Lend to the poor, give to the rich. Therefore, it looks like this remainder is not superfluous : LEND to the rich, GIVE to the poor (not the opposite). With this crisis, there will sadly be plenty of new poor people and there will be plenty of companies desperately needing credits.
Thus, now is the time to actually apply this advice. And finally, if you hear again the proverb “people lend to the rich”, just think back to the 2008 great crisis to remind you what it precisely means.
Posted in Controls | no comments |
home
about
archives
