I saw this cool video on Viral Video Pretty cool. Dan Bull seems to be critical about IP and I feel he has a point.
Getting Started with Trackbacks
Technology terms are fancy and Trackback is no exception. I’ve heard of Backtrack and trackback sounded like backtrack in reverse. Since I’ve started blogging and trackback is an important feature I thought of invistigating a little more on it and this is what I found. ( Read more )
1
comments
Migrating to WordPress
This is the first post after migrating my blog to WordPress. I used to use Blogspot earlier but since I moved my server. I thought of moving all my posts to my personal WordPress. Currently I have a couple of plugins that do a couple of tricks.
0
comments
Prototype to OO Javascript
Started reading Prototype and Scriptacolous. The first example was a bit hard to chew. I realised that to learn Prototype you need to know a little bit on Object Oriented Javascript. So I started my journey and this is what I found.
0
comments
MyTop is cool
I was reading High Perfomance Mysql and in that book they mention a tool called Mytop basically it is a top clone for Mysql. Instead of running show full processlist; repetedly on the mysql console just run mytop. Helps you quite a bit.
I had an installing it. I get the foll error
Can’t locate Term/ReadKey.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux
This is because it requires TermReadKey Perl Package. Just run
yum install perl-TermReadKey
and you are ready to go.
0
comments
Jasper Reports: Java Beans as DataSource for Subreports
Today I had a problem. I had a complex bean (Bean which contained other beans) which was being sent as JRBeanCollectionDataSource (JasperReports API version 2.0.2) to a Jasper Report.
This report had to have sub reports for the inner bean. I really could not find out how to pass the bean to the subreport from my main report.
Finally I cracked the nut.
What I did was set the DataSourceExpression in the Subreport element to
<datasourceexpression>
<!–[CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{taxBeanList})]]–\>
</datasourceexpression>
Where $F{taxBeanList} is a collection of Tax Beans.
In My subreport I do not have any datasource or queires. This sort of got it working.
I hope to add more to this post in future when I reread it and find some gaps.
0
comments
Outer Joins Vs Inner Joins
Today I looked into Outer Joins and Inner Joins. I have never used joins (Explicit) always relied on the Implicit joins created by the where clause.
In Outer Joins we have Right Outer Joins and Left Outer Joins and Full Outer Joins. What this basically means is that if there is as foll:
Left Outer Join:
All the records in the first table will be displayed even though there is no corresponding records in the second table.
Right Outer Join:
All the records in the second table will be displayed even though there is no corresponding record in the first table.
Full Outer join.
All the records of both the table will be displayed.
A Good example is given here.
Join (SQL) – Wikipedia, the free encyclopedia
0
comments
Change all Amounts to Big Decimal
Today I found out that all my currencies have to be BigDecimal. BigDecimal helps with rounding etc. Double has all sorts of quirks and cannot be relied on, especially when dividing by 3.
The downside is that there is a whole lot of legacy code that needs to be changed. Could use this as an excuse to rewriting the application.
0
comments
Java Security
I tried it out today. The details of Java Policy which controls what each program can and cannot do.
However there were a some grey areas which I thought I needed to jot down for further reference.
- It is best to put the policies in ${user.home}/.java.policy
- If 1 is not possible then the confusion lies as to where to put the policy
- You could put it in any file as long as you add it to the ${java.home}/lib/security/java.security file.
- The entry to be made is policy.url.3=file:/D:/JavaTest/mypolicy (windows)
- This works for applet viewer but not mozilla
- Java usually downloads the latest version of JRE and installs it. Mozilla uses the latest version so. For Mozilla it is not enough to change ${java.home}/lib/security/java.security file but the /lib/security/java.security of the latest version of JRE.
0
comments
Tricky CSS
Css can be pretty tricky. In this blog I will keep appending the quirks I notice in CSS.
:
When a Div is floated the div will cut across the containing div if the containing div is smaller than the floated div.
Fix:
Create another inner div at the end of the containing div and give the Css property clear:both. This will force the containing div to be bigger than the inner div’s.
0
comments