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
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
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}
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.



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.



I tried to make CCTray work on mono once and i had to comment out a lot of stuff to get it kind of working (all the windows-isms had to go)… After i got it running there were still a bunch of problems, like a ghost window with no content behind the CCTray window, all the projects showing up 2 times and the tray icon also didn’t work as it should. After all i think writing a Gtk# client is a good idea. I hope you will publish the code soon so i can try it out in my GNOME environment. BTW, do you use CCTrayLib for that project?
regards,
Daniel
Just found out that you did publish the code already and that also answered my question about CCTrayLib. I’ll try it out and let you know how it work.
regards,
Daniel
After trying to setup eclipse to use the uni’s proxy settings eclipse set a password everytime a booted up. My own fault for not reading what I was doing but that not the point. Anyway a quick way to remove it is to remove the org.eclipse.equinox.security folder in the eclipse folder
$ rm -rf ~/.eclipse/org.eclipse.equinox.security/
![]() |
![]() |
For Galileo, it is also possible to delete it from within Eclipse.
Go to Window -> Preferences
General -> Security -> Secure Storage and click “delete”
Thanks for the help . it worked
Thanks, you’re great!
Thanks a lot . it worked
Thanks I got rid of it.
In Helios, after navigating to Secure Storage, select the Contents tab to get to the Delete button.
Thanks, it worked like a charm
Thank you for your good informations.
I did it!
Would probably do:
#!/bin/sh
# pdfwc.sh
# usage ./pdfwc.sh filename.pdf
#
pdftotext $1 – | wc -w
#__EOF__
instead.