Home Home Archive Archive



MAR 23RD, 2008
MapLayers plugin for Rails

Update July 31, 2008 The current version is now hosted and documented on github. Getting Started Install the latest version of the plugin: ./script/plugin install http://www.sourcepole.ch/svn/plugins/map_layers/trunk Create a controller and a view ./script/generate controller Map index Initialization of the map Add the map viewer initialization to the index action in the controller: @map = MapLayers::Map.new("map") do |map, page| page << map.add_layer(MapLayers::GOOGLE) page << map.zoom_to_max_extent() end Add this to the head of your view: Read on


MAR 14TH, 2008
A graphical boot from BIOS to your Application

Intro This article describes how to configure your Linux system to display an nice graphical image from the BIOS until your application or the login manager appear. No text should appear on the screen during that time. The web is full with descriptions and tools that cover tiny parts of this process, however there seems to be no document that covers the whole path end to end. This document wants to do this and cover the whole stretch. Read on


MAR 7TH, 2008
Nginx kills large SVN commits

Lately, when committing large files with Subversion I had problems like this: \$ svn commit linux-2.6.24.2.tar.gz Adding (bin) linux-2.6.24.2.tar.gz Transmitting file data .svn: Commit failed (details follow): svn: PUT of '/svn/!svn/wrk/38f59907-4ccf-4e05-acf4-444499e715cc/embipc/branches/ipc/linux-image/linux-2.6.24.2.tar.gz': Could not send request body: connection was closed by server. () svn: Your commit message was left in a temporary file: svn: '/some/path/embipc/branches/ipc/linux-image/svn-commit.tmp' Apache’s Log was very quiet about the problem. All I could see that SVN would be deleting the uploaded file after abort (that’s what I think it was doing): Read on


NOV 21ST, 2007
Taxme 2006 auf Debian lenny (testing)

Damit Taxme 2006 funktioniert, musste ich Blackdown’s j2re1.4 installieren, man bekommt es hier. Einfach deb http://sunsite.cnlab-switch.ch/ftp/mirror/java-linux/debian testing non-free in /etc/apt/sources.list eintragen. Offenbar ist Taxme nicht kompatibel mit 1.5er oder 1.6er JRE’s. Damit die Hilfe im Taxme 2006 erscheint, musste ich: das Paket libxul0d installieren (welches /usr/lib/xulrunner/libgtkembedmoz.so enthält, welches Taxme benötigt) das folgende Startscript schreiben: #!/bin/sh # offenbar braucht SWT libgtkembedmoz, welches # TaxMe2006: z.B. in libxul0d in /usr/lib/xulrunner/ liegt # siehe http://www. Read on


SEP 24TH, 2007
A RingBuffer in Ruby

I needed a ring buffer in Ruby, and since a web search didn’t yield anything I did it myself. Here you go, use as you wish: Simple RingBuffer implementation ================================ see class RingBufferTest below for usage examples ================================================= class RingBuffer \< Array alias\_method :array\_push, :push alias\_method :array\_element, :[] def initialize( size ) @ring\_size = size super( size ) end def push( element ) if length == @ring\_size shift \# loose element end array\_push element end \# Access elements in the RingBuffer \# \# offset will be typically negative! Read on
← Older Blog Archives Newer →

    Recent Posts

  • How to configure unattended-upgrades of packages from third party deb package repos
  • Updating company-wide and your own hosts with apt-dater
  • Executing Tasks in docker-compose Containers From ansible
  • Creating a quick PDF report from a DuckDB query

    Archive

  • 2025 4
  • 2024 5
  • 2023 7
  • 2022 6
  • 2021 8
  • 2020 6
  • 2019 10
  • 2018 3
  • 2017 3
  • 2016 4
  • 2015 7
  • 2014 9
  • 2013 17
  • 2012 13
  • 2011 29
  • 2010 26
  • 2009 17
  • 2008 9
  • 2007 4
  • 2006 18
  • 2005 2
  • 2004 8
  • 2003 22
  • 2002 5
  • 2001 6

    Categories

  • geo 105
  • linux 74
  • postgis 2
  • programming 36
  • qgis 69
  • qgiscloud 14

Copyright © 2001-2025 Sourcepole AG