Wouter Verhelst: Going
This year I have decided to start a new photo challenge, Project 52 - To post one photo a week for the whole year.
I didn't give myself much time to get the first photo shot, so I looked around the house for something interesting. In the end I settled on using my Wife's Jelly bean dispenser.
So now I have started, only 51 more photos to go.
If you are starting a similar photo challenge, let me know. I'd like to follow along and get some fresh ideas, then steal them. ;-)
Update: Just noticed that comments weren't working, they are fixed now.
After finding that Sonim's software uses GPL licensed Gammu, the obvious step was to ask them for sources of the software. They quickly transferred their responsibility to company which made software for them - A&W (Anwsoft).
It took some iterations to explain them that I'm pretty sure that their software is based on Gammu and finally they gave up pointing to some external contributor for being guilty of this:
Due to the product was developed years ago, and the source code was bought from a SOHO programmer on the first beginning, so we didn t notice it included some open source code inside.The good thing in the same thing was that they were willing to cooperate:
We are willing to cooperate with you to follow GPL License and provide corresponding sources.As it turned out in upcoming communication, they didn't have (and still don't have) idea what GPL license contains and what they should publish. But that's story for the next post.
Filed under: English Gammu Gpl 0 comments Flattr this!
As some of my readers may now, I'm a regular user of public transport.
Even though I'm living in an area (far suburbs of Paris) where the use
of cars for nearly everything is common, I managed up to now to not
use my car for my daily commute.
I was using the public bus line of our town, that starts close from
our house and ends up at the local train station where I can commute
to U line of Paris transport system (then C line, then another bus
ride). You can compare this complicated 1h30 travel to the 35 minutes
drive I would have if I was using my car.
I *was*. I'll stop from tomorrow. The reason is simple: my U train
start hour is 6h57. The bus formerly started at 6h36, then reached the
train station at 6h51, which was a quite good commute. That made me
leave our house at about 6h25, considering a 10min walk from the house
to the bus stop. That's 32 minutes for....3 kilometers. Already needs
some motivation, right?
This changed today (with minimal notice). To catch the same train, I
should have a bus at 6h31, thus leave 5 minutes earlier, so *nearly 40
minutes before the train schedule*.
Considering that driving from our place to the train station is about
12 minutes, the deal is now made. I'll stop being the only non captive person
using the bus in our neighbourhood (all others are people who can't
use a car). So much for environment, etc.
This is an 'interesting' way to understand why it is so easy to
discourage proper use of public transport and minimize the impact on
environment. A small change can lead to such effects.
Of course, as you may expect, I won't stop there. Letters to the
(public-funded) bus company and people in charge of public transport
in our city (the bus line deficit is funded by the city), will follow
very soon.
Tehre are indeed many other reasons why people don't use our local
buses that much. One being that, even though there are 2 trains every
15 minutes leaving the station (U and N lines), both alternated with a
7.5 minutes interval....there is only one bus every 15 minutes....on
each bus line. Sometimes, even, you don't know why, there's a 23
minutes gap. Imagine waiting for your bus for more than 20 minutes at
night in winter...when you're about 2-3 kilometers away from your home...
Sure, that would need a lot of funding to have a really convenient
system. But how about spending the billions of euros spent in
super-highways, toll tunnels, etc., in public transport
infrastructure? Funding my local bus line to have 2 buses every 15
minutes at peak hours would cost about the price of 100m of a 3-lane
highway, for one year. Make the deal.
(All that will indeed reinforce my backup system : run from my house to
the train station, for 3km and 15 minutes...which involves another run
at the end of my train ride, for 4km and 20 minutes. That, however,
involves some "logistics" organization to be sure that I don't spend
the day working in my stinking running suit. That also means up to
56km run every week, which I can't always do, particularly if I plan a
race for the next week-end!)
Another side effect: I will have less time for Debian as my bus
commutes were used for hacking, while it will be much more difficult
when driving my car to the train station, isn't it?
So this is that misterious red type of produce known only to a certain US ex-vicepresident?
(seen at a Mexico City supermarket. Note that there was no label stating what the misterious thing was in Spanish)
root password:

popularity-contest configuration:


d-i components from the CD-ROM:


convert cropped-snap.png -fill none -stroke black -draw \
"stroke-dasharray 10 10 path 'M 0,299 L 800,299'" dashed-cropped-snap.png
X/experimental + g-i = ?
Premises:
libxfont1-udeb, xserver-xorg-core-udeb,
xserver-xorg-input-evdev-udeb, xserver-xorg-video-fbdev-udeb
from experimental.localudebs/ in a d-i build tree.netboot-gtk image with: make rebuild_netboot-gtkupdate-manifest
command.]X/experimental + g-i = Win
Proof:
Comments:
udebs in
experimental, even by jumping directly from 1.7 to 1.9.
\o/;)
Just before Xmas, Conrad Sanderson released version 1.1.0 of
Armadillo, his templated C++ library
for linear algebra. Which I only noticed this week, so here comes version 0.2.11 of
RcppArmadillo, our
Rcpp-based
integration into R.
The only other change is the addition of an unexported function
SHLIB which can be used to compiled a single source file into a
loadable shared library file for R, while automagically find Rcpp and
RcppArmadillo headers and the Rcpp library.
The short NEWS file extract follows, also containing Conrad's entry for 1.1.0:
0.2.11 2011-01-06
o Upgraded to Armadillo Version 1.1.0 Climate Vandal
* Extended submatrix views, including access to elements whose
indices are specified in a separate vector
* Added handling of raw binary files by save/load functions
* Added cumsum()
* Added interpretation of matrices as triangular via
trimatu()/trimatl()
* Faster solve(), inv() via explicit handling of triangular matrices
* The stream for logging of errors and warnings can now be changed
o New unexported R function SHLIB, a small wrapper around R CMD SHLIB,
which can be used as Rscript -e "RcppArmadillo:::SHLIB('foo.cpp')"
And courtesy of
CRANberries, here is
the
diff to the previous release 0.2.10:
ChangeLog 17 DESCRIPTION 12 R/SHLIB.R only inst/NEWS 13 inst/doc/Makefile 5 inst/doc/RcppArmadillo-unitTests.pdf binary inst/doc/unitTests-results/RcppArmadillo-unitTests.html 16 inst/doc/unitTests-results/RcppArmadillo-unitTests.txt 34 inst/include/armadillo 9 inst/include/armadillo_bits/Col_meat.hpp 25 inst/include/armadillo_bits/Col_proto.hpp 5 inst/include/armadillo_bits/Cube_meat.hpp 54 + inst/include/armadillo_bits/Cube_proto.hpp 7 inst/include/armadillo_bits/Mat_meat.hpp 469 ++++++++++++ inst/include/armadillo_bits/Mat_proto.hpp 54 + inst/include/armadillo_bits/Proxy.hpp 63 + inst/include/armadillo_bits/Row_meat.hpp 25 inst/include/armadillo_bits/Row_proto.hpp 3 inst/include/armadillo_bits/arma_version.hpp 11 inst/include/armadillo_bits/auxlib_meat.hpp 102 ++ inst/include/armadillo_bits/auxlib_proto.hpp 13 inst/include/armadillo_bits/debug.hpp 101 +- inst/include/armadillo_bits/diskio_meat.hpp 280 +++++++ inst/include/armadillo_bits/diskio_proto.hpp 9 inst/include/armadillo_bits/field_meat.hpp 23 inst/include/armadillo_bits/field_proto.hpp 3 inst/include/armadillo_bits/fn_cumsum.hpp only inst/include/armadillo_bits/fn_dot.hpp 66 + inst/include/armadillo_bits/fn_elem.hpp only inst/include/armadillo_bits/fn_inv.hpp 27 inst/include/armadillo_bits/fn_max.hpp 17 inst/include/armadillo_bits/fn_mean.hpp 17 inst/include/armadillo_bits/fn_median.hpp 15 inst/include/armadillo_bits/fn_min.hpp 21 inst/include/armadillo_bits/fn_misc.hpp 604 ---------------- inst/include/armadillo_bits/fn_prod.hpp 15 inst/include/armadillo_bits/fn_solve.hpp 22 inst/include/armadillo_bits/fn_stddev.hpp 15 inst/include/armadillo_bits/fn_sum.hpp 25 inst/include/armadillo_bits/fn_trimat.hpp only inst/include/armadillo_bits/fn_var.hpp 15 inst/include/armadillo_bits/forward_proto.hpp 7 inst/include/armadillo_bits/glue_solve_meat.hpp 32 inst/include/armadillo_bits/glue_solve_proto.hpp 12 inst/include/armadillo_bits/lapack_proto.hpp 103 ++ inst/include/armadillo_bits/op_cumsum_meat.hpp only inst/include/armadillo_bits/op_cumsum_proto.hpp only inst/include/armadillo_bits/op_dot_meat.hpp 46 + inst/include/armadillo_bits/op_dot_proto.hpp 9 inst/include/armadillo_bits/op_find_meat.hpp 59 - inst/include/armadillo_bits/op_inv_meat.hpp 13 inst/include/armadillo_bits/op_inv_proto.hpp 14 inst/include/armadillo_bits/op_trimat_meat.hpp only inst/include/armadillo_bits/op_trimat_proto.hpp only inst/include/armadillo_bits/podarray_meat.hpp 7 inst/include/armadillo_bits/span.hpp 9 inst/include/armadillo_bits/subview_elem1_meat.hpp only inst/include/armadillo_bits/subview_elem1_proto.hpp only inst/include/armadillo_bits/subview_meat.hpp 321 ++++++-- inst/include/armadillo_bits/subview_proto.hpp 1 inst/include/armadillo_bits/typedef.hpp 4 inst/include/armadillo_bits/unwrap.hpp 135 +++ 62 files changed, 2155 insertions(+), 829 deletions(-)More information is on the RcppArmadillo page. Questions, comments etc should go to the rcpp-devel mailing list off the R-Forge page.
I use a lot of code in my lectures, in many different programming languages.
I use highlight to generate HTML (via
ikiwiki) for web pages.
For class presentations, I mostly use the beamer LaTeX class.
In order to simplify generating overlays, I wrote a perl script
hl-beamer.pl to preprocess source code.
An htmlification of the documention/man-page follows.
hl-beamer -s 4 -k encodeInner
Sample Input
// @( omit
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.Serializable;
import java.util.Scanner;
// @)
// @( encoderInner
private int findRun(int inRow, int startCol)
// @<
int value=bits[inRow][startCol];
int cursor=startCol;
// @>
// @<
while(cursor<columns &&
bits[inRow][cursor] == value)
//@<
cursor++;
//@>
// @>
// @<
return cursor-1;
// @>
// @)
BUGS AND LIMITATIONS
Currently overlaytype and section must consist of upper and
lower case letters and or underscores. This is basically pure sloth
on the part of the author.
Tabs are always expanded to spaces.
aptitude install psi-plus psi-plus-pluginsThen restart Psi and enjoy
Hardly anything ruins a glorious day of coding like fat-fingering the commit message late at night as you doze off, and then pushing it out for the world to see. To prevent that, I have equipped my Emacs configuration with a few little tools now.(require 'git-commit)The last line is handy if you have save-place on by default. When you make a new commit, it would then normally place the cursor where a previously edited commit message was finished, because to the save-place functionality, it looks as though it's the same file.
(add-hook 'git-commit-mode-hook 'turn-on-flyspell)
(add-hook 'git-commit-mode-hook (lambda () (toggle-save-place 0)))
I use Delicious from time to time to save bookmarks and search for stuff I can t remember where I found it. It was sad to read rumors that Yahoo! will shut it down, but that s not the point here now.In the last months I noticed some strange behavior with their site: when surfing a page of a bookmark, you see the total number of people who have bookmarked that particular link and that number started to jump from view to view. First loaded you see a total of 183 bookmarks, 10 minutes later it s 265 bookmarks, and then 183 again. What s going on there? I guess that is some inconsistency between their datacentres or something, but I m not sure (and I am sure that this should not happen!).Today I noticed another funny thing: bookmarks without an owner:
New feature for Debian CDs
We've had a wishlist bug
(#551951) open against
debian-cd for some time, asking for the creation of "isohybrid" CD
images for i386 and amd64. These are special in that as well as the
normal CD-based ISO9660 filesystem they also contain a valid-looking
DOS-style partition table. Thus, if you simply copy one of these
images raw to a USB stick a normal PC BIOS will boot the image
directly. This would be a neat feature, making it much easier for
people to use standard Debian installer images on their USB sticks
without having to
follow a lot
more instructions.
Support for this feature was added in syslinux/isolinux quite a
while back (thanks to H Peter Anvin and the other syslinux
contributors), but this depended on post-processing images with
the isohybrid program. Due to the special way that we
make our CD and DVD images to produce jigdo images as well, that
wouldn't work for us: the jigdo files would no longer match the ISO
files. Bugger...! Recently, along came more help in the form of Thomas
Schmitt (author of xorriso) and George Danchev, its Debian
maintainer. Recent versions of xorriso support creating isohybrid
images directly, which is very handy. We've worked together in the
last few months on porting my old JTE code (which creates our jigdo
images) from cdrkit to xorriso, and after a lot of testing and
debugging we now have things working fully. I've added a small amount
of code in debian-cd to use the new xorriso features, and for the last
couple of weeks all of the i386, amd64 and i386-amd64 multi-arch CDs
and DVDs have been built as hybrids.
It's been a delight working with Thomas and George - they're
enthusiastic, helpful and friendly. Thanks, guys!
What does this mean for end users?
Instead of having to specially prepare USB sticks for the
installer, you can now simply use dd to write the image
straight to the raw stick, e.g.:
# dd if=debian-testing-i386-netinst.iso of=/dev/sdXThe USB stick should now boot directly, showing exactly the same bootup screen as if you'd written the image directly to a CD. Yay! I'm expecting to be using this code from now on for new releases, i.e. d-i beta and RC releases and for Squeeze itself when we get there. I'm not planning on backporting this code into the Lenny branch of debian-cd as it's a lot of work and I don't want to destabilise things there. What's next? We need to clear up some of the maintenance around the code as it stands; I'm planning on moving libjte inside my existing jigit package, as that's a sensible place to put it. That will come after the Squeeze release, though. We need to finalise boot support for other architectures in xorriso; I added support for them into mkisofs/genisoimage a long time ago and we've already moved some of that into xorriso. Thomas and George have also been working hard to give me faster/better size estimation code, useful for making debian-cd run faster. Finally: I'd like to add support into xorriso for creating the nasty HFS hybrid images that are needed for booting Macs. The code that does this in cdrkit is probably some of the worst that I've ever worked with, and I'd like to get away from it. If only Apple hadn't stupidly built their proprietary platform around this shit and had used open standards instead. :-( Once we have these bits in xorriso, I'll be able to move production of all of the CDs across from genisoimage to xorriso. Very nearly there for being able to drop the last remnants of Schily-ware from the Debian archive...
I've now gotten around to deploying IPv6 for my personal site(s) and machines. So potentially people visiting this blog are using IPv6 right now!
The Debian Administration website has been IPv6-connected and aware for a year or two now, although over 98% of users continue to connect via by IPv4.
Handling IPv6 & KVM wasn't too difficult at least, although I've done the simplest possible thing I could do, route a /64 to each guest and don't worry too much about it.
(The host machine has a /64 allocation of its own, and we've been granted an /48 allocation so we're not liable to run out. Ever.)
ObQuote: "You're not seriously gonna believe this man, are you? Are you? HE ISN'T EVEN FROM 'ROUND HERE! " - Hot Fuzz
WordPress has many alternate built-in feeds: per category, per tag, per author, per search-keyword. But in some cases, you want feeds built with some more advanced logic. Let s look at the available options.
WordPress advanced built-in feeds
You can create feeds for unions or intersections of tags, you just have to use a URL like /tag/foo,bar/feed/ (all articles tagged with foo or bar) or /tag/foo+bar/feed/ (all articles tagged with foo and bar).
You can also have feeds excluding a category, although that requires you to know the category identifier (and hardcode it in the URL like this: /?feed=rss2&cat=-123 where 123 is the category id that you want to exclude).
But there s no simple way to have a feed that excludes articles with a given tag. The best solution found involves creating a custom feed. I ll show you a variation of this below.
Creating a custom feed
<?php include('wp-includes/feed-rss2.php'); ?>
/feed/myfeed/ (or /?feed=myfeed). It s a complete feed like the main one.<?php global $wp_query; $tag = get_term_by("slug", "foo", "post_tag"); $args = array_merge( $wp_query->query, array('tag__not_in' => array($tag->term_id)) ); query_posts($args); include('wp-includes/feed-rss2.php'); ?>
<?php global $wp_query; $excluded = array(); $args_excluded = array( 'numberposts' => -1, 'meta_key' => 'no_syndication', 'meta_value' => 1, 'post_type' => 'post', 'post_status' => 'published' ); foreach (get_posts($args_excluded) as $item) $excluded[] = $item->ID; $args = array_merge( $wp_query->query, array('post__not_in' => $excluded) ); query_posts($args); include('wp-includes/feed-rss2.php'); ?>
<?php function myfeed_add_footer($content) return $content . "<hr/>My footer here"; add_filter('the_content_feed', 'myfeed_add_footer'); include('wp-includes/feed-rss2.php'); ?>
One comment Liked this article? Click here. My blog is Flattr-enabled.
At work we run a pair of ISC DHCP servers running Debian Lenny in a
classical ISC DHCP failover setup which provide DHCP service to
several subnets, some only with static IPs (e.g. for printers) and
some with half static and half dynamic IPs.
Today I got a call from a user that her laptop doesn t get an IP
despite it s correctly registered in our MAC address database from
which we generate the group sections of the dhcpd.conf.
Everything looked fine, but every DHCPDISCOVER package got logged in
the syslog on both servers like this:
Jan 7 14:34:39 dhcp1 dhcpd: DHCPDISCOVER from 01:23:45:67:89:ab via eth2: peer holds all free leases Jan 7 14:34:39 dhcp2 dhcpd: DHCPDISCOVER from 01:23:45:67:89:ab via eth2: peer holds all free leasesSearching the web for this error message mostly results in mails which say If have this on one server but not the other, you soon run out of IP addresses , but none which mentions what happens if you got them on both sides. Following a coworker s idea of adding both servers to the search term, I found Debian bug #563449 (dhcp3-server: Incorrect peer holds all free leases log entries) which turned out as configuration error or at least unexpected configuration (machine was blocked from getting an IP on purpose) and misleading error messages. So I checked under which circumstances this computer would not get an IP despite it had a static IP configured:
host somehost
hardware ethernet 01:23:45:67:89:ab;
fixed-address 192.0.2.123;
That computer would not get an IP address in any subnet which has
different IP range and no dynamic IP addresses. And even if I comment
out the fixed-address setting, it wouldn t get an IP in any
static-IPs-only subnet either.
And *bingo*, that computer was plugged into the printer subnet which
has only static IPs, e.g. in the 198.51.100.x range.
So if you get the peer holds all free leases error message from
both your DHCP servers, chances are very high that the
mentioned MAC address should really not get an IP address on this
network (as it does :-). The error messages are just somewhat
misleading.
Hope, this saves someone some time. :-)
Similar as people are doing with a seperate package for grub, Debians extlinux package as of version 2:4.03+dfsg-5 (and if you want a graphical boot menu, you will need syslinux-themes-debian version 4-1 or newer; both uploaded to experimental) handles booting images through memdisk out of the box now.
After you have upgraded your packages, just do:
Update: After some more testing, EXTLINUX_MEMDISK defaults to true now.
Next.