tpot (at) frungy . org
|
Tue, 20 May 2008The Missing Motivational Poster Inspired by ECLM 2008: The Missing Rant. posted at: 12:29 | path: /humour | permanent link to this entryFri, 02 May 2008Here's a recipe I've developed for building a RPM in SCons with out too much mucking around. My big issue with RPM is the whole /usr/src/redhat thing which is silly from a permissions point of view, and also prevent multiple users on the same machine from building at the same time.
I like the use of pre and post actions here to create the directory structure expected by RPM and the cleanup of it afterwards. Running scons -c will delete all the generated RPM files as well as the tar file of sources. Oh yeah, installing and using ccache is absolutely essential for debugging RPM files. posted at: 12:58 | path: /software/scons | permanent link to this entryMon, 14 Apr 2008Because All the Cool Kids are Doing It $ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}'|sort -rn|head
68 ls
51 cd
35 ssh
34 svn
33 git
25 less
25 ./bbc
19 rm
14 mv
14 erlc
I think running ls is the command line equivalent of saying
umm when you need something to fill an awkward silence.
posted at: 08:14 | path: | permanent link to this entrySun, 06 Jan 2008Getting Started with smbpython After many false starts, Samba is starting to acquire some client-side scripting support. The language being used is Python, although Swig is being used to generate bindings. At a later stage perhaps other scripting languages might be supported. At the moment the Python bindings are in their infancy, but it's still possible to do some useful things. To start hacking on the Samba Python bindings check out a copy of the source from Subversion and build as per usual: Now these commands will build a complete Samba environment including the Python bindings. For the moment we will be working directly out of the build directory and not bother installing libraries, executables, etc. The only tweak we need to do is to set LD_LIBRARY_PATH to point at the shared libraries we have just built and then run a Python executable with all the Samba goodies compiled in:$ svn co svn://svn.samba.org/samba/branches/SAMBA_4_0 [...stuff...] $ cd SAMBA_4_0/source $ ./autogen.sh && ./configure.developer && make [...more stuff...] What can we do from here? I'm hoping to write some more entries about some of the existing Python bindings, starting with tdb and ldb.$ export LD_LIBRARY_PATH=`pwd`/bin/shared $ bin/smbpython Python 2.5.1 (r251:54863, Oct 5 2007, 13:38:40) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Thanks to Jelmer Vernooij for taking my bits and pieces of decrepit Swig bindings and turning it into something useful. posted at: 21:30 | path: /software/samba | permanent link to this entrySun, 30 Sep 2007
Tue, 08 May 2007Here's a SCons builder for the Ragel State Machine Compiler, based on the one for SWIG included in the SCons distribution.
posted at: 22:59 | path: /software/scons | permanent link to this entryWed, 02 May 2007How to patch and rebuild a RPM package Here's a nice tutorial on how to make a patch to a program distributed as a SRPM file. I would also recommend installing ccache and maybe distcc as finding and fixing bugs in a RPM build usually involves compiling the same source files over and over again. posted at: 13:51 | path: /software | permanent link to this entryMon, 26 Mar 2007The Geekiest Place to Hang Out The Provably-Secure Mutual Authentication and Key Establishment Protocols Lounge. posted at: 20:41 | path: /humour | permanent link to this entryMon, 12 Feb 2007
Fri, 05 Jan 2007Another Stevey Blog Rant About Emacs Here. It's quite long and complicated. I wish I had time to write that much stuff about Emacs. Anyway, some choice quotes about whether you should learn Emacs Lisp: "First, recognize that Emacs Lisp isn't going anywhere. Emacs is not going to magically become programmable in Python or Ruby or JavaScript or Perl overnight ... [Emacs Lisp] will never be obsolete knowledge. You might as well start learning it now, and reap the benefits now." On Lisp syntax: "If you do it enough, eventually you'll enjoy programming in Emacs-Lisp, no matter how much you hate it initially ... you'll initially dislike Emacs-Lisp's syntax; it's virtually guaranteed. Fortunately, it doesn't really have much in the way of syntax; almost everything follows the exact same s-expression form. So you should get past the syntax pretty quickly, and in a few weeks you'll start liking it just fine.Kind of reminds me of people who dislike using tabs as syntax when writing Python code for the first time. I'm poking around with Ruby at the moment and having to put end everywhere is actually pretty annoying. I've done some bits and pieces of Emacs Lisp programming over the years and it is quite seductive, for lack of a better word. I think that's the nature of functional programming though once you really get in to it. posted at: 12:06 | path: /software/emacs | permanent link to this entry | ||||||||||||||||