Search Results: "pa"

6 March 2011

Gintautas Miliauskas: Trip to Bay Area coming to an end

My trip to the Bay Area is coming to the end. It has been surprisingly productive. Here's some things I have done in the nearly two weeks I have been here:

While I am getting a little travel-weary, I know I will be sad leaving this place.



    Thorsten Glaser: mksh gains recursive parser for command substitutions $( )

    mksh-current has just gained an experimental recursive parser for command substitutions, fixing RedHat BZ#496791 and decades-old complaints about the pdksh codebase, compared to AT&T ksh93. (GNU bash could also do the example, but not some other things mksh(1) parses fine now.)

    This means that things like the following work now.

    	# POSIX, should  always  work
    	echo $(case 1 in (1) echo yes;; (2) echo no;; esac)
    	# POSIX optional, works now in mksh, works in GNU bash
    	echo $(case 1 in 1) echo yes;; 2) echo no;; esac)
    	# GNU bash seems to choke on comments ending with backslash
    	# a comment with " ' \
    	x=$(
    	echo yes
    	# a comment with " ' \
    	)
    	# No non-recursive COMSUB parser can pass all of the above
    	# tests and these below at the same time (some extensions)
    	echo $(typeset -i10 x=16#20; echo $x)
    	echo $(typeset -Uui16 x=16#$(id -u)
    	) .
    	echo $(c=1; d=1
    	typeset -Uui16 a=36#foo; c=2
    	typeset -Uui16 b=36 #foo; d=2
    	echo $a $b $c $d)
    	# the  #  is especially tricky, that s why the above cases
     

    Next on my TODO is the complete rewrite of the read built-in command, as well as its documentation. I think that the (reduced) goals for mksh R40 will have been met by then, except porting to LynxOS and MPE, but we re working on it, and re-testing Syllable and Plan 9). Of course, a release implies testing on a lot of the supposedly supported platforms, so it won t be out immediately . Though, associative arrays have been removed from the R40 goals, so that I can at least get a new release out. Note that Debian and OpenSuSE Buildservice users have been provided with somewhat well-tested mksh-current snapshots for a while already, and Gentoo users can use the live ebuild ; there s always compiling from source too

    5 March 2011

    John Goerzen: Visiting Purdue

    Terah went to college at Purdue University, and always enjoyed basketball games there. I ve not been much of a sports fan, but have enjoyed watching Purdue games with her on TV. Terah has been wanting to see a game in person for awhile, so a couple of weeks ago, we went. It was a really fun weekend! When we planed the trip, we had no idea that the Purdue-Ohio State game was going to be such a big one. We walked over from the Union Club Hotel where we were staying on the Purdue campus. People were streaming towards Mackey Arena from all directions. Once inside, it was already loud and buzzing people cheering, the band playing. I ve never experienced anything quite so loud. The game started out badly for Purdue; they were down a few points up front. The entire game was a close one, and the crowd sometimes got so loud that nothing else could be heard not even the band or the announcer. When it became clear at the end that Purdue won the game, the people behind me and apparently 12,000 others began screaming at the top of their lungs. My hearing did eventually return to normal. So did my throat, which had gotten rather sore from from cheering myself. This was our first road trip since I got my amateur radio license. I had a lot of fun visiting with people as we drove. I talked to a retired railroad engineer that used to take an amateur radio with him in his locomotive. As he went through a certain town where he had friends he liked to talk with on the radio, he d get their attention by blowing CQ in Morse code with the train s whistle. Some people in Kansas City had us laughing as we passed through. In Missouri, I talked with some farmers and a World War II vet. In Champaign, IL, I visited with a retired Unix systems administrator that had spent decades working with Unix operating systems. Our hotel was connected to the Purdue Memorial Union, a large and historic building. Besides having some ice cream at the Sweet Shop one evening, we also spent a bit of time exploring it. I noticed that the Purdue Amateur Radio Club was having a testing session in there. We walked past once it was underway, and one of the students was not very busy. I introduced myself and asked if we could see their shack. It was neat to see all the equipment some of it quite old in the room that they must have been using for decades. Terah, of course, had ideas for visiting a number of her favorite places while we were there. We visited Arni s and Bruno s, both pizza places. Bruno s happens to be a Swiss pizza place, so much to my surprise, I had Wienerschnitzel there, which was excellent. We ate a (week late) Valentine s dinner at Bistro 501. On our way back, we also chatted with various people on the radio, though not quite as much. We got helpful suggestions for which route to take, and stopped at the excellent Bobby D s Merchant St. BBQ in Emporia, KS for supper. The boys had also enjoyed their weekend with grandparents, but were glad to see us back. They were particularly interested to see a lot of train videos from Youtube with me the next day.

    Amaya Rodrigo: Indignez vous (II)

    Spend millions visiting space TWICE, take Amazon referal money from non profit... priceless!

    Take Amazon referal money from non profit... priceless!

    From skitterman.wordpress.com/2011/03/02/business-oppor<wbr></wbr><wbr></wbr>tunity-in-ubuntu/#comment-364:
    Mark, with his wealth, could have set up any model of organisation. He chose a for-profit one. As such, the conflict of loyalty necessarily must become ever more pronounced as that profit is sought.
    Thanks to a former friend for pointing me to these two people who could express this better than me.

    Mike Hommey: More graphs for the Debian Bug Tracking System

    I have been maintaining Debian Bug Tracking System graphs for a few years, now, though not very actively. They initially were available on people.debian.org/~glandium/bts/, but there have been some recent changes. A while ago, I started experimenting with brand new graphs on merkel.debian.org/~glandium/bts/, and when merkel was announced to be dying a few months ago, I got in touch with the QA team to know what to do with them, and it was decided we d put them on qa.debian.org. I unfortunately didn t follow up much on this and only recently actually worked on the migration, which took place 2 weeks ago. The result is that the graphs have officially moved to qa.debian.org/data/bts/graphs/, and links on the Package Tracking System have been updated accordingly. There is now also an additional graph tracking all open bugs in the BTS, across all packages: Today, I added a new feature, allowing to consolidate data for multiple arbitrary packages in a single graph. Such graphs can be generated with the following URL scheme (please don t over-abuse of it):
    http://qa.debian.org/data/bts/graphs/multi/name0,name1,name2,etc.png
    As an example, here is a graph for all the bugs on the packages I (co-)maintain:
    http://qa.debian.org/data/bts/graphs/multi/dehydra,diggler,iceape,iceweasel,libxml2,libxslt,livehttpheaders,mozilla-dom-inspector,nspr,nss,pyxpcom,venkman,vmfs-tools,webkit,xulrunner,zfs-fuse.png
    And here are the bugs affecting Mozilla-related packages:
    http://qa.debian.org/data/bts/graphs/multi/iceape,icedove,iceowl,iceweasel,nspr,nss,xulrunner.png
    I guess the next step is to allow per-maintainer consolidation through URLs such as
    http://qa.debian.org/data/bts/graphs/by-maint/address.png
    Update: per-maintainer consolidation has been added. (Hidden message here: please help triaging these bugs)

    Lars Wirzenius: DPL nomination period for 2011

    The nominations for Debian Project Leader elections for 2011 are open. As always, I'm tempted to nominate myself, but after thinking about it, I again conclude that I shouldn't. If I did nominate myself, there's a couple of things I'd like to push for. The DPL position is inherently a political one, which is why nothing in the list above is technical. On the other hand, I want to concentrate my Debian time on doing stuff that is fun, and right now that means writing code. I want to write code for Debian.

    4 March 2011

    Jo Shields: Protip: parallel-installing Mono versions in an APT-happy way

    If you ve ever gotten tired of waiting for a new Mono release to appear, and taken matters into your own hands by compiling your own copy of Mono, you ve likely faced the problem of missing libraries. That s weird, it says it can t find gtk-sharp, but I have that package! This happens because every version of Mono on your system has what s called a Global Assembly Cache a location where all system-wide assemblies lives. So when you run an app like Tomboy, it loads its libraries such as GTK# from the GAC belonging to the Mono runtime being used. Ordinarily, this is in /usr/lib/mono/gac on a Debian/Ubuntu system. When you have your parallel Mono, it doesn t share a GAC as a result, libraries in your main distro GAC are not available in your DIY GAC, as they were never registered in there. Typically, the advice is to either start compiling every lib you need into a non-standard place too however, here s a better idea. Why not make Apt take care of not only your system s GAC but additional GACs too? We actually have structures in place to handle this, so it s not as hard as you think (merely relatively unknown). This guide does NOT take startup scripts into account it s your problem to ensure you re using the correct mono command to run your copy of MonoDevelop or Tomboy or whatever. You should probably learn about update-alternatives and $PATH for this. Oh, and this guide will BREAK HORRIBLY if you try to uninstall system mono completely. Don t try it. Setup step 1: preparation Don t install parallel Mono into /usr/local. I don t care what happens to you if you do. Use some random folder in /opt, usually a per-build prefix like /opt/mono-2.10 Setup step 2: duplicating existing magic Open a terminal, and copy /usr/share/cli-common/runtimes.d/mono to a new filename, e.g. /usr/share/cli-common/runtimes.d/mono-2.10 Setup step 3: tweak duplicate magic Open your copied file in an editor, and change the name value on line 27ish (e.g. from Mono\n to Mono (parallel 2.10 install)\n ). Then change the two places in the file, on lines 64ish and 120ish, from /usr/bin/gacutil to /opt/mono-2.8.2/bin/gacutil or equivalent. Setup step 4: apply magic to existing packages Run /usr/share/cli-common/gac-install mono-2.10 (or whatever filename you picked for your runtimes.d entry) as root. This will instantiate your parallel GAC(s). From now on, every GAC library you install or uninstall will happen to every single runtime in runtimes.d. To go back to how things were before, with only a single Mono runtime: Uninstall step 1: empty out parallel GAC Run /usr/share/cli-common/gac-remove mono-2.10 (or whatever filename you picked for your runtimes.d entry) as root. This will remove all packaged entried from your parallel GAC(s). Uninstall step 2: remove magic Delete your file from runtimes.d

    Dirk Eddelbuettel: RcppArmadillo 0.2.14 and 0.2.15

    A few days ago Conrad Sanderson released version 1.1.6 of his Armadillo templated C++ library for linear algebra. Accordingly, I made a new release 0.2.14 of RcppArmadillo, our Rcpp-based integration into R which included a few local fixes. However, while I updated SVN at the R-Forge project I didn't update the final tarball so Armadillo 1.1.6 wasn't in it. That is corrected in the 0.2.15 upload which is now on CRAN and its mirrors. The short NEWS file extract for both releases follows, also containing Conrad's entry for 1.1.6. A few minor tweaks were added but no user-visible changes:
    0.2.15  2011-03-04
        o   Upgraded to Armadillo Version 1.1.6    Baby Carpet Shark 
             * fixed size matrices and vectors can use auxiliary (external) memory
             * .in_range() can use span() arguments
             * subfields can use span() arguments
    0.2.14  2011-03-02
        o   Support Run-Time Type Information (RTTI) on matrices by setting the
            state variable vec_state in Row and Col instantiation, with thanks to
            Conrad Sanderson for the hint
        o   fastLm code simplified further by instantiating the Armadillo matrix
            and vector directly from the SEXP coming from R
        o   inst/doc/Makefile now respects $R_HOME environment variable
    
    And courtesy of CRANberries, here are the diffs to.2.14
     ChangeLog                                                   14 -
     DESCRIPTION                                                  8 
     inst/NEWS                                                   10 
     inst/doc/RcppArmadillo-unitTests.pdf                     binary
     inst/doc/unitTests-results/RcppArmadillo-unitTests.html     10 
     inst/doc/unitTests-results/RcppArmadillo-unitTests.txt      39 +-
     inst/include/armadillo_bits/Col_meat.hpp                    51 +++
     inst/include/armadillo_bits/Col_proto.hpp                    3 
     inst/include/armadillo_bits/Cube_meat.hpp                   52 +++
     inst/include/armadillo_bits/Cube_proto.hpp                   7 
     inst/include/armadillo_bits/Mat_meat.hpp                    51 +++
     inst/include/armadillo_bits/Mat_proto.hpp                   12 
     inst/include/armadillo_bits/Row_meat.hpp                    51 +++
     inst/include/armadillo_bits/Row_proto.hpp                    3 
     inst/include/armadillo_bits/arma_version.hpp                 6 
     inst/include/armadillo_bits/config.hpp                       9 
     inst/include/armadillo_bits/field_meat.hpp                 220 ++++++++++++++--
     inst/include/armadillo_bits/field_proto.hpp                 20 +
     inst/unitTests/runit.RcppArmadillo.R                        16 +
     19 files changed, 521 insertions(+), 61 deletions(-)
    
    and to the previous release 0.2.13, respectivel
     ChangeLog                                                   14 ++++++
     DESCRIPTION                                                  6 +-
     inst/NEWS                                                   11 +++++
     inst/doc/Makefile                                           15 +++++--
     inst/doc/RcppArmadillo-unitTests.pdf                     binary
     inst/doc/unitTests-results/RcppArmadillo-unitTests.html     18 ++++----
     inst/doc/unitTests-results/RcppArmadillo-unitTests.txt      34 ++++++++--------
     inst/include/RcppArmadillo/Col_meat.h                       24 ++++++-----
     inst/include/RcppArmadillo/Row_meat.h                       19 ++++----
     src/fastLm.cpp                                              15 ++-----
     10 files changed, 94 insertions(+), 62 deletions(-)
    
    More information is on the RcppArmadillo page. Questions, comments etc should go to the rcpp-devel mailing list off the R-Forge page.

    David Paleino: Optional argument with \newcommand in LaTeX

    In LaTeX, it seems like you can't define a command with a really optional argument, using \newcommand. You can make commands with arguments having a default value though. Now, I found myself in need of having such a functionality. I had to google a while, but finally found it, so I'm posting it here, both to share knowledge and to remember it in future :) Suppose you want to do something like \mycmd foo and \mycmd foo bla , doing different things (in my case, I needed to add the second argument enclosed by parenthesis in the TOC and other places, but only if it was present) Here's the code:
    \def\mycmd#1 \def\tempa #1 \futurelet\next\mycmd@i % Save first argument
    \def\mycmd@i \ifx\next\bgroup\expandafter\mycmd@ii\else\expandafter\mycmd@end\fi %Check brace
    \def\mycmd@ii#1 ... %Two args
    \def\mycmd@end ... %Single args
    
    In the last two lines of the code, use \tempa for your first argument, and #1 for your second optional argument. If you need spaces there (maybe as part of some text), be sure to escape them with a backslash \. I think it's expandable for additional arguments, but I haven't tried, and I don't feel like getting my hands dirty with TeX yet ;)

    Wouter Verhelst: Dear lazyweb,

    I'm a complete font n00b. How does one install Type1 fonts as part of a Debian package in such a way that: PMW, which I'm packaging for Debian, includes Type1 postscript fonts that it absolutely cannot live without; and while it's possible to create a .ps file from pmw that includes those fonts, by default it does not, so it's generally useful to put those fonts somewhere that ghostscript can find them. Only I know squat about how ghostscript finds fonts, and just adding a symlink /usr/share/fonts/type1/gsfonts/pmw -> ../../../pmw/psfonts (as was suggested to me on IRC) does not seem to do the trick. Thanks,

    Michal &#268;iha&#345;: Fun with MinGW64 and ODBC

    The test suite for recently added ODBC support in Gammu was consistently failing on Win64 platform (all others were just fine). It took me some time to figure out why. The reason is SQLLEN type, which is in some sort special, that generated code for it is broken. All started with pretty much standard retrieving value from ODBC result:
    SQLLEN size;
    SQLRETURN ret;
    /* Figure out string length */
    ret = SQLGetData(res->odbc, 1, SQL_C_CHAR, NULL, 0, &size);
    if (!SQL_SUCCEEDED(ret))  
        return NULL;
     
    /* Did not we get NULL? */
    if (size == SQL_NULL_DATA)  
        return NULL;
     
    /* Allocate buffer for string */
    out = reallocate(out, size + 1);
    
    The first problem was comparing of size against SQL_NULL_DATA. It simply always failed even if size did contain -1 (what is actually value of SQL_NULL_DATA). Yesterday, I've come out with typecasting magic that worked fine for this case. However what I've missed is that even reallocate is failing with this parameter. No matter what the size would be, it would return NULL. Typecasting again did help here. Hey, should not be compiler clever enough to typecast this for me? It turns out that in case of MinGW64 it is not. Anybody has suggestion why? At the end I ended up with pretty ugly duplicating of the variable just to avoid mixing it up in future changes (as would happen with typecasting everywhere). I'd really like to know why my assumptions are wrong in this case.

    Filed under: English Gammu 0 comments Flattr this!

    Craig Small: Apache and incomplete redirection messages

    As part of moving my site around, I needed a bunch of redirects so that http://enc.com.au/docs/linuxload.html now becomes http://enc.com.au/2010/07/manually_calculating_process_times/ because its now controlled by WordPress. so I used the RedirectPermanent feature of mod_alias to do it with lines like:
    RedirectPermanent /docs/linuxload.html /2010/07/manually_calculating_process_times/
    So you come in on /docs/linuxload.html and redirect to the blog entry, simple really! It actually works, kinda, but the log files fill with things like:
    [Fri Mar 04 14:40:17 2011] [warn] [client 172.16.242.1] incomplete redirection target of '/2010/07/manually_calculating_process_times/' for URI '/docs/linuxload.html' modified to 'http://enc.com.au/2010/07/manually_calculating_process_times/
    What is going on? Why won t Apache just be quiet and be happy? The reason is in the Redirect Directive documentation on the 2.0 mod_alias page:
    Also, URL-path must be a fully qualified URL, not a relative path, even when used with .htaccess files or inside of <directory> sections.
    But I m running Apache 2.2 and the 2.2 mod_alias page says:
    The new URL should be an absolute URL beginning with a scheme and hostname, but a URL-path beginning with a slash may also be used, in which case the scheme and hostname of the current server will be added.
    That s it, you two choices: Changing the above config snippet to use absolute paths fixed it.
    RedirectPermanent /docs/linuxload.html http://enc.com.au/2010/07/manually_calculating_process_times/

    Cyril Brulebois: Debian XSF News #7

    Time for a seventh Debian XSF News issue!

    3 March 2011

    Adrian von Bidder: Btrfs data deduplication

    Apparently, it's coming. Haven't tested these patches, though (and why yet another btrfs-foo command rather than something integrated with the btrfs command?), but together with my hacked up dirvish (added support to create btrfs snapshots instead of hardlinked trees) this will save me a couple of gigabytes for all those backups of various servers (which I pretty much keep at the same releases.) The discussion on the btrfs mailing list got quite heated on the online vs. offline dedup issue (and also very silly IMO since nobody said online dedup shouldn't be supported. It's just not written yet...); What nobody mentioned was: how much memory is the hash index of an online dedup daemon going to consume, and how much CPU cache will it burn? This would be my main concern since my NAS only has 512M memory, and also needs to do NAT, VPN and DNS (yes, I'm a home user. I'd like to get the public IP off the NAS, but I'll have to buy some box to do this first...)

    Russ Allbery: Personal Debian archive updated

    This probably won't affect many people, but I wanted to note it here just in case. I've now finished the (long-delayed) work of updating my personal archive for the squeeze release. There is now a new wheezy distribution and squeeze is now treated as stable. lenny has become oldstable. For my future reference and for anyone else for whom it might be helpful, the changes required in reprepro:
    1. Update the distributions config file to add the wheezy distribution with a suite of testing and a pull policy of everything. Change the suite of squeeze to stable and the pull policy to arch-all. (These are pull policies defined elsewhere in my configuration that do what they say.) Change the suite of lenny to oldstable.
    2. Update the incoming config file to map the suites to new release code names.
    3. Pull all packages from sid into the new wheezy distribution:
          env GNUPGHOME=/srv/debian/keyring reprepro -b /srv/debian pull
    4. Update the archive symlinks:
          reprepro -b /srv/debian --delete createsymlinks
          reprepro -b /srv/debian createsymlinks
      
    That's all there was to it. Easier than I was expecting it to be.

    Thorsten Glaser: (Free)BSD vs. Linux

    Warning: this is a rant against BSD (specifically FreeBSD , but don t let me get started on DragonFly, who think it s wise to drop all shells except ash from the base system and rely on pkgsrc yay let s compile a dozen packages just to get a shell with tab completion, not to mention boxen with no network access for the task although others seem to go into that direction too ; you know, there s BSD, and then there s FreeBSD ) don t like, don t read. If you want to change something in the BSD world, you gotta fork your own BSD no other way around the thickheads. Ok, back then, I ran into a particularily thick one, but others tend to not be much better. Users share the thickness. If you want to change something in the GNU/Linux world, just make a package, have someone upload it, prod (or pay, Hanno got a Radler) people to do it, or just upload it yourself. At the BSD booth at FOSDEM, despite me bringing the Windows Mobile 6 Professional devive, strictly for Geocaching mind you, Macintosh boxen had a share of more than 50% I didn t manage to tip the scale. At the Debian booth, almost everyone had a I want to buy a new laptop some day, but it just keeps on working and doesn t break pre-Lenovo IBM laptop. No hyping of Google either. (Last year s CLT saw BSD people advocating pro-Schily the guy with the broken encoding in his name shockingly.) Honestly, tcsh, FreeBSD people? Sorry. While I agree that there is merit on having the same script and interactive shell, as someone has pointed out (copy-paste examples into the command line), there s those zsh users who use mksh or GNU bash for scripting. Or just POSIX shell. And that s with an interactive shell which can be used for scripting. On the other hand, the C shell (both csh and tcsh) cannot. And what s with pretending the accent gravis is non-combining, called backtick (such a thing does not exist); and advocating it? Sorry, if your csh/tcsh doesn t handle the POSIX $( ) you should just drop it. (By the way, there is a convention that example command lines are prefixed with % for csh and $ for sh (or # but we write $ sudo instead, these days). Use it. Or leave it. If you have examples that substitute another process output, be specific.) It s funny to see how one person tries to defuse my arguments against csh by telling me it s just an interactive shell , while the other argues that people copy-paste between them, to which that was my response. Read the thread! And please, get your facts right. I would prefer that the standard shell be at least Bourne-compatible. You don t want Bourne ( ^ instead of for pipes), you want POSIX. That GNU bash is called the Bourne-Again Shell in one of their usual semi-bad puns doesn t help the global perception of such things any. Also, the root shell and /bin/sh are disjunct. (Plus, why change the root shell, use sudo(8), plain and simple.) ObNote: in jupp (should I package that for Debian, btw? rather upload, packages are ready ) the key is used as pr fix for Ctrl-X ( X) or to directly enter numerical (decimal, octal, sedecimal/hexadecadic) ASCII, 8-bit or Unicode codepoints. Yay!
    And even the FSF has seen the light; for a few releases already, GCC uses ' ' instead of ' for quoting in messages, even without locales. Great job there! (LC_MESSAGES=en_GB.UTF-8 usually works, too, though.) ObDisclaimer: I have an (yes, Google ) Alert on the word mksh , so I know when it s being discussed. This obviously includes certain fora. Also, I m a shell implementer and bound to know a certain amount of details. Plus, mksh s build script runs with pretty much any Bourne/POSIX/Z Shell which has functions and not too many bugs. I wrote it. Go figure. No lowly trolling. FWIW, mksh(1) has the cat(1) builtin both because Android has no cat(1), and as speed hack. Almost all other shells have worse speed hacks, like a printf(1) builtin. And recently, builtins have become direct-callable, so this actually reduces the overall system footprint. (Its inclusion also provides for some other possibilities, internally.) And as two final side notes, if you haven t seen this: determine which shell we are run under (CVS) and I still offer a prompt conversion service (send me any GNU bash or oksh $PS1 and I ll send that to you in mksh(1) syntax optionally with adjustments/improvements, like cwd uses only up to 1/3 of screen width).

    Kumar Appaiah: A new book on shell scripting

    Over the next month or so, I've decided to read an interesting book which covers one of my favourite topics, shell scripting. The book is Linux Shell Scripting Cookbook. It has been quite a while since I have actually read a book on a programming topic (other than K&R or the like), but I guess it does feel "complete" to gain knowledge from a book and feel as though we have gained at least some mastery over the topic!Updates on this will follow.

    Russell Coker: How Not to Park a Mercedes

    Why is that Mercedes blocking so much of the road through the station car park?It s because it s the second car in a 1 car parking spot!Here s a front view.These were taken in the Coburg Station car park on Wednesday. The car park was about half empty, so the alternative to blocking part of the road and blocking in someone who was legally parked was to just park about 10 meters further away from the station.Some people just shouldn t be driving.

    Michal &#268;iha&#345;: Gammu has ODBC support

    One of features for Gammu SMSD which was for quite a long time in my head was ODBC support. With unified SQL backend we have right now it should be pretty easy to add support for it so I gave it a try. It really did not take to long and the ODBC driver is committed to git and will be part of next release. The great benefit of this is that we get native database support on Windows without need to linking against database libraries, which is always painful. The ODBC driver behaves like any other SQL based driver for SMSD, so if you are familiar with it, the configuration won't surprise you:
    [smsd]
    service = sql
    driver = odbc
    host = dsn_of_your_database
    user = username
    password = password
    
    All important information about the driver should be available in the manual.

    Filed under: English Gammu 0 comments Flattr this!

    Kai Wasserb ch: Extending Chronicle

    This little blog is created/compiled with Chronicle, coded by Steve Kemp, and one of the cool features is that you can specify a command run before/after your blog gets compiled from the input files. This presents us with one problem and a lot of opportunities. First to the problem: the singular "a command" (from the manual page) might not be enough. Maybe you want to run more than one command. This can be achieved by creating a directory for the commands you want to run before the compilation and one for the commands you want to run after the chronicle run. Then you create a small shell script one directory above and call that from chronicle, the script for the post-run might look like:
    #!/bin/sh
    set -e
    WORKDIR=" dirname $ 0  /post"
    find $ WORKDIR  -name "*.sh" -exec " " ";"
    
    This script makes the assumption, that the scripts to run have a .sh suffix and are in a subdirectory named "post". But you can surely adapt this to your needs. Now to one of the oppurtunities this offers: you can now, for example, create static pages, which share the general visual appearance with your blog entries but don't show up in the tags or archive system. I'm using this to generate an imprint for this blog. The script to generate the imprint looks like:
    #!/bin/sh
    set -e
    OUTPUT_PATH= grep output $ HOME /.chroniclerc   cut -d= -f2   tr -d [:blank:] 
    sed -ne'/<\?xml version/,/blosxomFirstDayDiv/  /blosxomFirstDayDiv/b;p ' \
            $ OUTPUT_PATH /index.html > $ HOME /tmp/imprint.html
    cat  dirname $ 0  /imprint.data >> $ HOME /tmp/imprint.html
    echo -e "\n" >> $ HOME /tmp/imprint.html
    sed -ne'/imprint_match/,$p' $ OUTPUT_PATH /index.html >> $ HOME /tmp/imprint.html
    mv $ HOME /tmp/imprint.html $ OUTPUT_PATH /imprint.html
    
    There are again some assumptions made here, which you'd need to adopt to your setup: Now you have a very powerful system to modify/extend your chronicle-generated blog. I hope you enjoy it as much as I do! A little P.S.: you might want to use version 4.5, as 4.4 had a nasty encoding bug.

    Next.

    Previous.