Phil Hands: Linus' new T-Shirt
Nice to see the British Computer Society finally run Linus to ground after
7 years, so that they could pin the Ada Lovelace Medal on him, but I reckon
he looked even more pleased when he got a new T-Shirt:
Nice to see the British Computer Society finally run Linus to ground after
7 years, so that they could pin the Ada Lovelace Medal on him, but I reckon
he looked even more pleased when he got a new T-Shirt:
I came across John Wang's posting titled Database Abstraction - code vs infrastructure. In it, he talks about the problems many people face when migrating applications tied to a specific RDBMS to another one. He recommends:
One solution of modern programming is to move database abstraction from the code to the infrastructure using a ORM (Object-Relational Mapper) or Data Mapper. A ORM and Data Mapper abstracts the database for you so you no longer have to do tie db abstraction to each app. Not only does it let you code once for multiple databases it lets your users migrate their data from one database to another. This blog runs Typo which is based on Ruby on Rails and ActiveRecord. I've been contemplating migrating Typo from MySQL to PostgreSQL and I've been told that it would be as simple as exporting the data with YAML, updating the database.yml file and importing the data.Umh... Thing is, you often want to use your DB as way more than a data store - At least, when using Postgres, I do. There are many things that can be done inside the DB (such as guarding the programmer against his own mistakes by keeping sanity checks which often go beyond just referential integrity. Constraints and triggers. Oh, and of course, user-defined functions and views. Of course, most times you can go by without using several of such tools - but when they would come in handy, you can sorely miss them.
ActiveRecord is a data mapper and isn't as flexible as a full blown ORM but it gets the job done for the most part. For a full-blown ORM, I think of Perl's DBIx::Class which provides a full OO interface to the RDBMS allowing you to code just once for multiple DBs without limiting you when you want to use some esoteric database-specific SQLCurrently, I'm among the many that have jumped on the Rails bandwagon - And so far, I really like it. But yes, ActiveRecord -although great for some tasks- is way under what I'd like for many actions I've got used to making.
There are PHP frameworks out there like Symfony and Cake but do any of them have stand-alone ORMs? If so, could Drupal move to something like that and solve their maintainership problems once and for all? Drupal is part of the Go PHP5 effort so there should be no issue using PHP 5 OO. Something to think about for the Drupal folks if a PHP ORM is availableUmh... Even if there are some great ORMs in PHP... Choosing an ORM is something you do when you start a project. I doubt the Drupal people can now just decide to move over to using a ORM, as they potentially have hundreds or thousands of points where they have DB interaction. And although for most of them moving over to an ORM should even be automatizable, every ORM has some very special features which make it damn hard to craft several kinds of query.
On your clients you have to modify /etc/snmp/snmpd.conf:
#com2sec paranoid default public
com2sec readonly default public
exec .1.3.6.1.4.1.2021.8.3 aptupdate /usr/local/bin/nagios-check-apt-updates
Get the check script to the client:
# wget –no-check-certificate \
https://kosh.ganneff.de/ganneffutils/nagios/nagios-check-apt-updates \
-O /usr/local/bin/nagios-check-apt-updates
# chmod +x /usr/local/bin/nagios-check-apt-updates
Allow the snmp user to make use of apt-get:
# echo “snmp ALL=(ALL) NOPASSWD: /usr/bin/apt-get update” >> /etc/sudoers
# echo “snmp ALL=(ALL) NOPASSWD: /usr/bin/apt-get –simulate upgrade” >> /etc/sudoers
Restart the snmpd:
# /etc/init.d/snmpd restart
Restarting network management services: snmpd.
On the nagios monitoring system you have to run something like this:
# /usr/lib/nagios/plugins/check_snmp -H <client> -t30 \
-C public -o .1.3.6.1.4.1.2021.8.3.101.1 \
-r “No updates available”
SNMP CRITICAL - *”Security updates (1): libkrb53; “* iso.3.6.1.4.1.2021.8.3.101.1=”Security updates (1): libkrb53; ”
After upgrading the client you should get:
# /usr/lib/nagios/plugins/check_snmp -H <client> -t30 \
-C public -o .1.3.6.1.4.1.2021.8.3.101.1 \
-r “No updates available”
SNMP OK - “No updates available” iso.3.6.1.4.1.2021.8.3.101.1=”No updates available”
Debian, opensource, planet
Jim Grisanzio: “What I find interesting is that Matt uses the phrase ‘we’re getting Solaris versus Linux’ to point to an article titled ‘OpenSolaris will challenge Linux says Sun’ which is actually an abridged article from the more aptly titled ‘Sun: Coders key to Solaris’ rise’ published last week. I blogged about that original article because I loved the quote in there about the OpenSolaris Community. But the version that has people all worked up today is missing eight paragraphs of text from the original. Why? Read both of them and you’ll see the clear difference in tone. And why all the wild headline changes, too? Even if you read the version Matt points to you’d be hard pressed to find anything in the article to substantiate the headline. I mean, really, this is silly. Sun’s Ian Murdock and Marc Hamilton were talking about how the OpenSolaris community is growing, how the technology is improving, and some of the plans we are kicking around to improve things. That’s pretty much it. So, where’s the war here?”
Providing a lot of information in a bug report is useful. It helps the developer work out what's wrong. However, you should be careful not to reveal too much information as one submitter did to Gnome in their bug report. Have a look (if you're not in work) at the .xsession-errors at the end of their report to see what movies they were playing.
I want a way to take small, infrequent,
one-off card payments on my web sites.
Some of my customers much prefer to pay by
card and I'd be happy to do that, if
there's a decent card payment service.
Is there one? I've not found it yet.
What do I want? The main thing is not to
have a significant monthly fee.
I'd rather not be paying if I'm not
using the service, but
I'd probably stomach up to 5% transaction
fee for a good credit card handler.
The 8% fee listed by
Moneybookers
seems a little steep, but I might use it as
a last resort.
I'd prefer
no automatic "inactivity" account closure
if I don't use it for a couple of months.
Sometimes I take no card payments for a while,
then need to handle several at once.
I'd also prefer a cooperative or mutual,
but that seems unlikely in such a small field.
So far, I've only found two suitable
UK Card Payment Services -
Paypal
and
NoChex
- and I've used both,
but I've now got problems with both!
Paypal won't let me take my money out
to my business account.
To do that, I need to upgrade my account,
but Paypal do not list
LLP
as a valid type of business
and won't fix my bug reports by web,
email or telephone.
Last time I telephoned, after patiently
explaining to them what an LLP is,
I was told to put a different business type
on the form.
That scared me,
so I asked for email confirmation of the
instruction, which they said they'd send,
but it never arrived.
NoChex froze my account without warning,
due to inactivity.
I've sent in their reactivation forms
a few months ago and
had no reply. I've also filed a web ticket
today, but I've done that before.
They don't even list a telephone number any
more. That's a worrying sign in a bank.
So, both of these providers
suck
for the
above reasons and I still need a way to take
this month's card payments.
All the UK banks charge monthly fees,
don't they?
Are there European card services
which I should consider?
International?
(2007-09-07: 5 comments)
I did upload a updated version of eGroupware to my pool. You can grab it from http://ftp.cyconet.org/debian/archive/bpo/egroupware/1.4.001.dfsg-2.1~bpo40+1/ or via:
deb ftp://ftp.cyconet.org/debian etch-backports main non-free contrib For installing the rules analog backports.org applies. Have fun! backports, bpo, Debian, opensource, planet
alias svn-btc="svn-buildpackage --svn-builder='pdebuild --pbuilder cowbuilder --buildresult .. --auto-debsign --debsign-k zack@debian.org' --svn-lintian --svn-tag --svn-retag --svn-dont-clean"
whereas for the non-final build I use the usual:
alias svn-b="svn-buildpackage -rfakeroot -us -uc --svn-ignore --svn-lintian --svn-dont-clean"
The probably cryptic trailing letters are: 'b' for "build", 't'
for "tag", 'c' for cowbuilder.
Thanks to dancer for his tips
on this ... and of course for cowdancer!
Earlier this year I blogged about using the twitter bot for Remember the Milk. I still use it fairly well, even though the SMS messages from the RTM come late a bit. It's working for me in order to get a good chain going for the thesis proposal. There are a couple other bots that I'm using which are on twitter as well.
One potential issue with this style of page-table is with a very
large, very sparse address space (such as in a single
address-space operating system) there will be many intermediate
steps with possibly only a single translation at the end (i.e. lots of
single pages scattered all around your address-space).
Thus we can add a bit-field guard to each of the entries in
the page table (Liedtke,
1994) to help indicate only those paths through the tree which are
valid (similar to a Patricia
tree).
Translation first proceeds as usual; the top bits are used
as an index into the top level table. However, each entry now
contains extra information about further valid addresses. The guard
is masked against the next bits in the virtual address; if it matches
(e.g. in our example is 0x2) the next step can proceed directly to the
leaf node, bypassing the middle look-up. The entry can be marked as
either final (i.e. pointing to a leaf node) or intermediate, in which
case the process continues with the next level (which also has its own
guard, and so forth). Any entry that does not match the guard is
known to be false, and therefore a fault can be raised.
To examine this further, consider that we know that each page in
our 24-bit address space above is 4KiB, thanks to the 212 =
4KiB offset. Therefore each of the 16 possible values of the top four
bits selects 1MiB of the 224 = 16MiB address space;
e.g. 0x0 selects the first megabyte, 0x1 the second and so forth. The
second 4 bits selects a 64KiB region of this 1MiB, and the last 4 bits
selects a 4KiB region of this 64KiB region.
This scheme could work quite well if we were using only 16 pages
each separated by 1MiB. Each of these pages would only require an
entry in the top level with an appropriate guard which could then be
marked as final and point directly to a physical frame.
Once things become less sparse however, we need to start filling in
middle levels. If you have 2 pages within a 16MiB region, you need at
least one extra bit of address to tell them apart. If you have 3 or 4
pages, you need at least 2 bits to tell them apart, and so forth.
It would therefore be beneficial to have variable level sizes to
dynamically adapt and create the most efficient lookup possible given
the address space layout of a process. For example, if you knew your
process was only going map pages 0x123 (100100011) and 0x124
(100100100) a good option would be to make your top-level only two
entries (i.e. check the top bit) with a guard on the entry at index
0x1 of 00100. You then need a second level with 8 pointers to
differentiate the remaining 3 bits (each of these would be final and
hence point directly to a physical page).
The more pages you start mapping, the less bits you can discard
with the guard. If you follow this through to a guard of 0 bits you
end up with a linear page-table.
It has been shown (Elphinstone,
1999) that fixed level sizes with 16 entries tends to work well.
For a 32-bit address-space with 4KiB pages (e.g. 12 bits offset) this
leaves 20 bits to be mapped by the page-tables; with each level
mapping 24 bits this means a 5 level tree. The guard
values provide enough path-compression that the table is not
constantly walked. The disadvantage is that it may "over-allocate"
meaning more space is dedicated to page-tables than strictly
required.
Deciding where and when to split levels, what size indexes to put
at each level and updating all the guard values dynamically to make
the smallest, most efficient page-table would create a
variable-radix page-table (Szmajda
and Heiser, 2003).
In summary, a guarded page-table is more useful the more sparse
your address space is. A variable-radix guarded page-table is
complex, but could offer advantages for implementing variable
page-size support and thus having positive effects on TLB
coverage.
Spot-on profile of Rick Rubin and the future of music in this Sunday’s New York Times Magazine (probably already much blogged about):The kids all said that a) no one listens to the radio anymore, b) they mostly steal music, but they don’t consider it stealing, and c) they get most of their music from iTunes on their iPod. They told us that MySpace is over, it’s just not cool anymore; Facebook is still cool, but that might not last much longer; and the biggest thing in their life is word of mouth. That’s how they hear about music, bands, everything.That last point is key. If any new business model will thrive, it will be one that is built around the social graph. Technorati Tags: Social graph, Rick Rubin, Music, New York Times, Facebook, Myspace, iTunes
Two words: flawless execution.
I can enjoy almost any movie that is well constructed, regardless of genre, plot, etc..
It did help to sit pretty far back in the theater, though.
If the CIA were really as clever and technologically sophisticated as it appears in the Bourne movies, the United States wouldn’t have so many foreign policy disasters on its hands (egregious constitutional violations notwithstanding).
Technorati Tags: Bourne Ultimatum, Movies, Queasycam
Today, I ordered a dedicated server for some friends of mine and me. We will split it up into 5 Xen instance, quite similar to Steve s xen-hosting. Thanks for the idea! Our project is name serverama, since our hosts will be named after Futurama characters.I might blog about the setup here, if I think it s interesting for the general public. I can t wait to get my hands wet in a chaos of RAID, LVM, Xen and virtual network bridges...
This week has consisted of fighting registrars and doing a bit of
hacking on xen-shell, xen-tools, and the chronicle blog compiler.
CJ has done some good work
trying to get the code modularised, and I expect between the pair of us we
can make things neater and better generally.
I've also fixed a couple of bugs relating to the hard-wiring of device
names (/dev/sda, /dev/tty1, etc). These devices are replaced in newer
versions of Xen which wants to use /dev/xvc0 and /dev/xvd[a-z] instead.
There's nothing else happening at the moment; I'm just having a lot of fun laughing at our new kitten sliding around on our polished wooden floor!
Chronicle seems to be getting pretty popular which is ironic because
it was a quick hack to allow me to post blog entries on a couple of hosted
sites - which I've not yet done. Oops.
In other news I'm loving the Nintendo DS at the moment, Megan brought
me one back from America on her recent trip and I think a day hasn't
passed where one or both of us has played less than 30 minutes each.
I'm annoyed that Sim City DS only allows us to play with one city -
right now it is her turn, and I'll have to wait until she's finished
with her creation before I can have a go - because otherwise I'll wipe
her city out.. :(
I've found some time for quicklist, finally, to move the port on to a second pre-release. New additions include a Recent Files submenu and GtkHTML report engine but the Sort and Filter options are not complete and adding a new report is problematic.
Recommends: www-browser, dwww yelp
Next.