I love IDEA’s Live Templates, and I often find myself using java.util.BitSet. The BitSet javadoc describes a neat way of iterating through the 1 bits, and I do this often enough that it warranted a custom Live Template. Now all I need to do is hit itbs<TAB> to have this code automagically appear. The template looks like this: for(int $INDEX$ = $BS$.nextSetBit(0); [...]
Archive for August, 2005
An IDEA Live Template for iterating through a BitSet
# 2005-08-30 22:10:48 -0400 | General / Java | 1 CommentToday at the virtual water cooler
# 2005-08-18 16:57:29 -0400 | General / Java | No Commentsspuddy: O…M…G… the download for IBM/Rational RAD 6.0 (based on eclipse) is 1.4GB bph: what the fucking fuck spuddy: I think it includes websphere or some thing bph: it would wanna have some kick ass easter eggs at that size. like a MMOG or something
And I just hope we don’t forget…
# 2005-08-05 23:03:33 -0400 | General | 2 CommentsThey that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.