const char *lines[] = "Line 1n", "Line 2n", NULL ;In this case we have a problem, because if we just replace the strings by _(”string”), it won’t directly work. Remember that _ is a macro for the function gettext. In C, it just won’t let us call it from the constructor, because the string should have to be assigned statically. In C++ it will let us, but the resulting program will happen to call gettext() on them before our initialization in main(), and thus it will simply not work. I’ve made available an example on how those situations could be handled both in C and C++.

Zonbu and its skins — high-powered dressing for a low-power device Price-wise, you can get the Zonbu for as little as $99 if you commit to two years' subscription to the network storage. Understanding the open source ethos, Zonbu also offer the box without any tether for $250. As with the Mac mini, supplying the keyboard, mouse and monitor is up to you. Preloaded with an office suite, email, IM, web browser, multimedia player, games and Skype, Zonbu is aimed at being a general computing appliance. You can't install anything else on it, but then again, that way you can't break it easily either. It sounds the sort of thing I'd be happy leaving with non-technical family and friends. Storage with Amazon S3 Low-power solid state devices are nothing new of course, there are a variety available, and things such as the NSLU2 have been in production for some years. The novel thing about the Zonbu however is in how it manages its storage. The Zonbu has 4GB of compact flash storage on board, which it uses as a cache for Amazon's S3 storage network. All your files get encrypted and sent to S3, and are retrieved when you need them. One really neat consequence of this is that you can get at your data via the web any time you want. Secondly, it gives me some sense of security for my data. I don't know if Zonbu will give me the 'keys' to my data on S3, but it wouldn't be hard for them to provide an easy way to migrate out. Either way, S3 is a place I'd trust with my data. Why Zonbu is important Windows, and to some extent, Mac OS X, are becoming the needy children of computing, always tugging on your arm and asking you something. In contrast, Zonbu looks like a great step towards "appliance computing". Its features are more like those you'd expect from your phone or cable TV provider:
#!/bin/bash #created by arnieboy foo= gksudo -u root -k -m "enter your password for gedit root access" /bin/echo "Do you have root access?" sudo gedit $NAUTILUS_SCRIPT_SELECTED_URISappears to be an attempt to ensure that the user has sudo rights. This
if ps -U root -u root u grep "dpkg" grep -v grep;
then
killall -9 dpkgMay well leave the system in an inconsistent and unbootable state, andfunction reloadnautilus
killall -9 nautilus
Not actually used anywhere, but could potentially lose usersudo ln -s /usr/lib/libesd.so.0 /usr/lib/libesd.so.1is really not
ln -s /tmp/.esd-1000 /tmp/.esdlooks like it'll only ever work for
sudo sed -i "s/^vboxusers\(.*\):$/vboxusers\1:$AXUSER/" /etc/group- assumes that the system isn't using some sort of user directory
One thing that I wanted to do with the new host was track bandwidth usage upon a per-guest basis. This should be possible with something like vnstat - however solutions counting traffic by interface name are not a good mesh with Xen - since by default a guest will have an interface with a name like 'vif20.0' - and no means of mapping that to a specific guest. Each of my guests has been allocated three IPs which are defined like this in the Xen configuration file:vif = [ 'ip=1.2.3.4 1.2.3.5 1.2.3.6' ]This works prefectly. This also works:vif = [ 'ip=1.2.3.4,vifname=foo 1.2.3.5 1.2.3.6' ]Unfortunately anything else I've tried to give each IP a static interface name fails. I've seen reports of this online but no solutions. Given a configuration file like this the Xen guest doesn't receive any traffic upon the second + third address:vif = [ 'ip=1.2.3.4,vifname=foo1', 'ip=1.2.3.5,vifname=foo2', 'ip=1.2.3.6,vifname=foo3' ]Any suggestions welcome.
apt-get build-dep glibc apt-get source glibc cd glibc-2.6 debian/rules unpack cd build-tree/glibc-2.6 wget http://tinyurl.com/3xzm3o patch -p0 <glibc-only-lookup-ipv6-if-it-makes-sense-debian.patch cd - dch --newversion 2.6-5+v6 "Apply IPv6 Resolver Sanity" fakeroot debian/rules binaryWait a few hours for it to build... Install... And then confirm that this only does 'AAAA' lookups if (when) you actually have a global or site scoped IPv6 address. When you only have a loopback or link local IPv6 address then you should only see 'A' record lookups. Step 3: profit! Whoops! I forgot the fun bit: please update the bug report :-) What the patch does In my opinion this is quite an elegant solution from Tolleff. He has picked a single characteristic of the IPv6 interfaces to further refine whether the IPv6 configuration of some interface is actually usable. With IPv6 it is much more common to have multiple addresses assigned to a single interface. Interfaces are automatically configured with a link-local address which is not globally routable, and the loopback interface is also configured with the IPv6 equivalent of 127.0.0.1 (which is "::1"). To get a usable IPv6 setup you will also end up with a more widely usable address. In most cases this will be a global address, meaning that it is (in theory) globally routable from other people who also have global addresses, or you could have a "site" address, which is the IPv6 equivalent of RFC1918 addressing. The patch considers that for the purposes of name resolution, it will be pointless to do AAAA lookups unless you have an address of the second kind. This means that people behind broken DNS won't be impacted unless the try and set up IPv6, and people who don't try and set up IPv6 won't get the 'hesitation' while their system attempts to resolve each address in IPv6 space first. It will also mean that when people start to enable IPv6 around them, their setup will continue to work correctly.
# restriction class for use with polw (DEFER_ACTION)
smtpd_restriction_classes = greylist
greylist = check_policy_service inet:127.0.0.1:60000
To call postgrey for $REJECTLEVEL <= score <= $DEFER_LEVEL you need to make use of the restriction class “greylist” and let $DEFER_STRING match all defer strings, to get them all greylisted:
# echo “\$DEFER_STRING = ‘NOT’;” >> /etc/policyd-weight.conf
# echo “\$DEFER_ACTION = ‘rc:greylist’;” >> /etc/policyd-weight.conf
# /etc/init.d/postgrey restart
Also you may have a look into The DNSBL countries.nerd.dk. This might be a way to score connections comming from well known spamming countries. But keep in mind, that there may also legitim mails comming from those! ;)
planet, policyd weight, Postfix, spam
Next.