Home
George Aristy
Cancel

Editting zip files with Vim...

WoahScreenie:<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody><tr><t...

Vim - End of line characters!

There are some dtds created with XmlSpy that are used by the system at work and for some reason they have mac style line endings (I really hope this isn’t XmlSpy’s doing…). Found the following link...

JFreeChart: PiePlot.getSectionPaint()

I am starting to consider replacing the JFreeChart API with some other one in future projects - gotta start looking for it.Anyway, today’s annoyance with this tool happens to be the fact that chart...

JDBC and Oracle: setNULL

I was surprised (and disappointed) by this behaviour (using Sun JVM 1.4 with Oracle DB 10g):String sql = “select count(distinct seq_no) from tmp_table where time_stamp = to_date(‘29/09/2010 07:00:0...

VIM - Code Completion

It’s been a while!Anyway, this post’s catalyst occurred this morning during my first day of a Java course I’m attending (an attempt at keeping my teeth sharp). As is custom, use of an IDE is not su...

The Tao of Programming

The master programmer moves fromprogram to program without fear.No change in management can harmhim. He will not be fired, evenif the project is cancelled.Whyis this? He is filled with Tao.The novi...

Java String.split() and the | (pipe) character

I came across this issue today and someone else already blogged about it: http://hoskinator.blogspot.com/2006/11/trouble-using-pipe-with-stringsplit.html. Some of the comments are really good!The p...

Vim Tip of the Day

Copying lines containing search hits (source):1.- Clear a register (eg ‘a’): qaq2.- Append all matching lines to that register: g/pattern/y A3.- Copy contents of register a to clipboard (register ‘...

Some Windows magic

Script to get number of lines in a file:REM %1 is the file name to be parsed, passed at command line<blockquote>@set count=0for /f %%a in (%1) do (@set /a count+=1)@echo %count%</blockquot...

Vim column mode

Today I found myself in the need of Vim’s column mode (using regex for what I wanted to do would have been hard).I googled real quick but the first few hits weren’t of much use/very clear and and s...