Saturday, 28 March 2009

Get PDF Word Count In Linux

Quick easy way to get the word count of a pdf.


# pdfwc.sh
# usage ./pdfwc.sh filename.pdf
#
TMPFILE=___tmpfile.tmp
pdftotext $1 $TMPFILE
wc $TMPFILE -w
rm $TMPFILE

Wednesday, 25 March 2009

Latex Coloured Code Listings

Easy way to include code in your latex document and have the syntax coloured correctly


\usepackage{color}
\usepackage{listings}

\lstset{
tabsize=4,
language=matlab,
basicstyle=\scriptsize,
%upquote=true,
aboveskip={1.5\baselineskip},
columns=fixed,
showstringspaces=false,
extendedchars=true,
breaklines=true,
prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
frame=single,
showtabs=false,
showspaces=false,
showstringspaces=false,
identifierstyle=\ttfamily,
keywordstyle=\color[rgb]{0,0,1},
commentstyle=\color[rgb]{0.133,0.545,0.133},
stringstyle=\color[rgb]{0.627,0.126,0.941},
language=Java
}
\begin{document}
\lstinputlisting[title=\textbf{Source Code: filename.java}]{filename.java}
\end{document}

Monday, 23 March 2009

Cruise Control Tray For Linux Update

Basic functionality has been implemented with the ability to add project to monitor and receive notifications of the build as and when they occur. At the moment there is not the ability to delete a project that is being monitor this will be implemented next. There is also the ability to force a build of a project, however there is not the ability to abort the build, this will also been implemented in the next couple of days hopefully. Here are some more screen shots of what it currently looks like. The build notification have also been attached to the tray icon.




Wednesday, 18 March 2009

Cruise Control.NET Tray Tool on linux

I started looking at creating a port of the cctray tool for CruiseControl.NET but after looking at how it was implemented i decided that it might be easier, and more fun, to implement one myself using mono and GTK#. At the moment the application has the ability to display notification when a build event occurs and to display the list of projects that are being watched. The source code will be available on Launch Pad when I figure out how to use bzr.

https://code.launchpad.net/~john-yeticode/cctray-gtk/trunk

here are some screen shots of how it currently looks.





Cruise Control.NET home page