Updates from March, 2009 Toggle Comment Threads | Keyboard Shortcuts

  • John 4:45 pm on March 28, 2009 Permalink | Reply
    Tags: ,   

    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
    
     
    • Jonas 3:50 am on July 30, 2009 Permalink | Reply

      Would probably do:
      #!/bin/sh
      # pdfwc.sh
      # usage ./pdfwc.sh filename.pdf
      #
      pdftotext $1 – | wc -w
      #__EOF__

      instead.

  • John 6:04 pm on March 25, 2009 Permalink | Reply
    Tags:   

    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}
    
     
    • korbsan 12:35 am on May 18, 2009 Permalink | Reply

      very helpful, thanks!

    • Nick 2:07 pm on April 18, 2010 Permalink | Reply

      Thank you. Isn’t it strange, though, that there are no default colored modes for any language?

  • John 4:01 am on March 24, 2009 Permalink | Reply
    Tags: , , , ,   

    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.



     
  • John 3:47 am on March 19, 2009 Permalink | Reply
    Tags: , , , , LaunchPad, ,   

    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

     
    • Daniel Hommel 7:59 pm on April 10, 2009 Permalink | Reply

      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

    • Daniel Hommel 8:03 pm on April 10, 2009 Permalink | Reply

      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

  • John 3:42 pm on March 18, 2009 Permalink | Reply
    Tags: eclipse   

    Removing Eclipse Secure Storage Password 

    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/


     
    • Sascha 1:51 pm on June 24, 2009 Permalink | Reply

      For Galileo, it is also possible to delete it from within Eclipse.

      Go to Window -> Preferences
      General -> Security -> Secure Storage and click “delete”

    • s 10:00 am on October 20, 2010 Permalink | Reply

      Thanks for the help . it worked

    • knut the stut 8:44 am on February 2, 2011 Permalink | Reply

      Thanks, you’re great!

    • Aymen 10:52 am on May 16, 2011 Permalink | Reply

      Thanks a lot . it worked :-)

    • Gunnar in Sweden 3:27 pm on July 19, 2011 Permalink | Reply

      Thanks I got rid of it.

    • joatmon 3:21 pm on September 30, 2011 Permalink | Reply

      In Helios, after navigating to Secure Storage, select the Contents tab to get to the Delete button.

    • Andrei Ismail 12:14 pm on November 15, 2011 Permalink | Reply

      Thanks, it worked like a charm :)

    • Hidetoshi Takeji 6:51 am on December 20, 2011 Permalink | Reply

      Thank you for your good informations.
      I did it! :D

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel