Search Results: "oku"

23 December 2009

Ingo Juergensmann: Digikams 100% view

I'm using digikam to organize my pictures I took with my D90 DSLR. I always got the impression that the View -> "Zoom to 100%" menu shows not the full sized image (100%). When using another picture viewing program like okular and choosing View 100% there, I get a "bigger" image. Proof is here:

100% view - Okular vs. Digikam


You can see okulars view on the left in the foreground. Digikams 100% view is in the background at the right. Both apps are showing the same JPEG picture. I don't know that Digikam is doing wrong there, but it's definitely not a 100% view that it shows. Time for a bug report, I guess...

UPDATE:
Oh well... wondering why all those people got the Copyright-Notice.png instead of the real picture, I finally discovered that I need to change the rewrite settings for the IPv4 vhost section as well. IPv6 users hadn't this kind of problem. So, better use IPv6 instead of IPv4, folks! ;-)

And thanks to sgran for pointing out <vhost 1.2.3.4 2001::1:2:3:4> syntax! ;-)

UPDATE 2:
The bug report is filed and registered as #562197.

UPDATE 3:
Problem solved! See bugreport.

2 December 2009

Biella Coleman: The Politics of Piracy and Spicing the Political Life

Reality needs fantasy to render it desirable, just as fantasy needs reality to make it believable. Stephen Duncombe
This fall I have been awash in a few obsessions including book piracy and spam. I recently got to talk about one of these obsessions when I was interviewed about book piracy by Nora Young for her weekly CBC radio and podcast show Spark. I mostly gave a lay of the land panorama with a nod toward some of the conditions, technological and social, that can help us grasp the contemporary explosion of book piracy and also raised some thoughts about what might change the future landscape. What I don t raise is whether a politics built around an explicit embrace of piracy is regressive, progressive, or something else but these ethical questions were posed in the comments left for the full interview. Some of the comments pointed to the pitfalls and shortcoming that can follow the terminology of piracy many of which I share. But what keeps me interested in the politics of piracy is how it can speak the language of spectacle, which can be a powerful tactic and technique for broadcasting a political message. Here I just paraphrasing and cribbing the work of Stephen Duncombe, who has argued, I think quite persuasively, that we cannot rely solely on reasoned debate for building political programs. Duncombe does not argue that we must toss out rationality and truth seeking (these are absolutely necessary) but notes how on their own or if not clothed in some other cloak, they may not be enough to convey and compel, especially in this day of total media saturation. Or to put a but more poetically by him Reality needs fantasy to render it desirable, just as fantasy needs reality to make it believable. Much (though not all) of contemporary digital piracy follows the logic of spectacle. It builds and conveys a fantastical drama of right and wrong, of new possibilities, of freedom from the noose of the law; it signals and speaks to the thrill and fun in twisting, even breaking, existing structures and constraints; and provides a window into another way of acting/behaving. In many cases what it provides is a commons (and I will be exploring it in depth in my class next semester on the commons) and many folks, I imagine, turn to piracy simply for the free stuff, and a number of them come out of the other side transformed into copy fighters willing to engage in a politics beyond sharing stuff and waving the pirate flag. For those of us who believe in greater access and different ways of imagining structures and strategies of re-compensation, piracy on its own is not certainly enough and I understand fully and even to some degree, share the skepticism many feel toward such language. But I am not quite ready to declare a politics of piracy as always politically bankrupt or necessarily backward. I guess what I embrace is a diverse political ecology. For some, the drama of spectacle and thrill of transgression are what turns their political mojo on; for others it is the cool and reasoned debate common to policy and reform; for others, they want to focus on building alternatives as we see with Free Software or radical tech collectives. For some, it is both the reasoned salt and the transgressive pepper that spices their political world. And I would rather have more spice than less, especially in an era where the blandness of political apathy is that which is our most dangerous enemy. Related Links: Here is a wonderful animation by the NZ Book Council that captures what I love about books and renders its materiality wonderfully alive. On the Media has a episode on book publishing and Cory Doctorow has penned some thoughts about the future of book selling. If you want to keep abreast on the politics of liberating books, check out Free our Books. If you are more interested in the technical side of things, check out the book liberator project.

Biella Coleman: The Politics of Piracy and Spicing the Political Life

Reality needs fantasy to render it desirable, just as fantasy needs reality to make it believable. Stephen Duncombe
This fall I have been awash in a few obsessions including book piracy and spam. I recently got to talk about one of these obsessions when I was interviewed about book piracy by Nora Young for her weekly CBC radio and podcast show Spark. I mostly gave a lay of the land panorama with a nod toward some of the conditions, technological and social, that can help us grasp the contemporary explosion of book piracy and also raised some thoughts about what might change the future landscape. What I don t raise is whether a politics built around an explicit embrace of piracy is regressive, progressive, or something else but these ethical questions were posed in the comments left for the full interview. Some of the comments pointed to the pitfalls and shortcoming that can follow the terminology of piracy many of which I share. But what keeps me interested in the politics of piracy is how it can speak the language of spectacle, which can be a powerful tactic and technique for broadcasting a political message. Here I just paraphrasing and cribbing the work of Stephen Duncombe, who has argued, I think quite persuasively, that we cannot rely solely on reasoned debate for building political programs. Duncombe does not argue that we must toss out rationality and truth seeking (these are absolutely necessary) but notes how on their own or if not clothed in some other cloak, they may not be enough to convey and compel, especially in this day of total media saturation. Or to put a but more poetically by him Reality needs fantasy to render it desirable, just as fantasy needs reality to make it believable. Much (though not all) of contemporary digital piracy follows the logic of spectacle. It builds and conveys a fantastical drama of right and wrong, of new possibilities, of freedom from the noose of the law; it signals and speaks to the thrill and fun in twisting, even breaking, existing structures and constraints; and provides a window into another way of acting/behaving. In many cases what it provides is a commons (and I will be exploring it in depth in my class next semester on the commons) and many folks, I imagine, turn to piracy simply for the free stuff, and a number of them come out of the other side transformed into copy fighters willing to engage in a politics beyond sharing stuff and waving the pirate flag. For those of us who believe in greater access and different ways of imagining structures and strategies of re-compensation, piracy on its own is not certainly enough and I understand fully and even to some degree, share the skepticism many feel toward such language. But I am not quite ready to declare a politics of piracy as always politically bankrupt or necessarily backward. I guess what I embrace is a diverse political ecology. For some, the drama of spectacle and thrill of transgression are what turns their political mojo on; for others it is the cool and reasoned debate common to policy and reform; for others, they want to focus on building alternatives as we see with Free Software or radical tech collectives. For some, it is both the reasoned salt and the transgressive pepper that spices their political world. And I would rather have more spice than less, especially in an era where the blandness of political apathy is that which is our most dangerous enemy. Related Links: Here is a wonderful animation by the NZ Book Council that captures what I love about books and renders its materiality wonderfully alive. On the Media has a episode on book publishing and Cory Doctorow has penned some thoughts about the future of book selling. If you want to keep abreast on the politics of liberating books, check out Free our Books. If you are more interested in the technical side of things, check out the book liberator project.

25 November 2009

Erich Schubert: Google Wave rolling out?

When I got my Google Wave account, it took the invitation about a week to arrive. A few days ago, I got my first own invites, and invited some colleagues (in an attempt to actually find a use for Google Wave beyond "rich media live messaging"). Within a few minutes they were "in". Now I just got my second set of invites. So is Google Wave now getting ready for mass opening, rocketing user numbers?As you might have already guessed, I'm not convinced by Google Wave. It's technically interesting and well-done. The demos are all nice. It's just that the UI in the browser is a bit fragile and cumbersome, and the big question so far is:
What does Google Wave allow you to do that you couldn't do before?
To me, there has been little actual use so far. Wave can do everything, but isn't optimal in any of them: Yes, I'm aware that you should differentiate between the protocol and the ui. Still pretty much everything is currently designed for the web browser with full JavaScript and Flash capabilities.Of course this isn't the end yet, Google Wave will evolve. Maybe into something cool, maybe it will remain just a niche thing. Maybe some cool apps will just use Wave as protocol. But I figure, I'll mostly wait for these things to happen first before I become a frequent user of Wave.The biggest thing I see is the "spam" (this especially includes 'Quiz', Mafia Wars and similar Scamville type of 'apps' that surely will show up in no time, once Wave is open to the public). What will Wave provide to me to handle this flood of worthless information that I'm getting more and more?P.S. Please don't bother to ask for invitations to Wave.P.P.S. here's how to replace the odd scrollbars with the regular OS scrollbars with a really simple user style (CSS).

20 November 2009

Ingo Juergensmann: Squid v3.1 with IPv6 support in experimental

For about a month or so Squid v3.1 is now in experimental ready to use and ready for getting tested by a wider community base. So I installed it by changing my sources.lists deb-src line to experimental instead of unstable, apt-get update, apt-get build-dep squid3 and apt-get -b source squid3. Compilation went fine and flawlessly on unstable. On stable/lenny you'll need to install squid-langpack as well from unstable.
After installing the resulting *.deb files, there was no need to change or update the configuration for squid3: if a request/domain lookup results in an IPv6 address, squid3 will use it and gives precedence over the IPv4 address. If there's no IPv6 address for that requested domain, nothing changes from the old behaviour. So, when a page is requested by an IPv4 client, squid3 will contact the site via the IPv6 address if possible and deliver the page to the client via IPv4. This is the same (and naturally expected) behavior as in polipo, another IPv4/IPv6 capable proxy. Polipo is a small proxy with less functionality than squid3, but it has some issues from time to time that needs a restart of its service. Additionally I would prefer just one proxy running on my system. So, now I'm able to just use squid3 for all of my proxy tasks again.

Using a IPv4/IPv6 capable proxy is by the way a good method to increase IPv6 visibility, especially when you fear the (amazing small) workload to deploy IPv6 in your own network.

6 November 2009

Steve Kemp: What would you have me do, Stephen?

Things which should exist, but don't yet:
Transparent SQL Cache
Imagine a proxy listening on 127.0.0.1:3306, receiving SQL Queries. Any query that was "SELECT .." could return the result from a local cache for the appropriate table. Any query of the form "UPDATE" or "INSERT" would flush all caches for the table. Should be near-trivial: Hash the incoming query & parameters via SHA1sum to get a unique key then store/lookup results in Memcached. Would it be useful? I think so, but of course it depends on the application and the effort involved.
"Global status"
A single site that would rebroadcast a posted (short) status message to facebook/twitter/your chat client/etc/etc. Hard part would be receiving comments from the sites it re-served to. Scraping statuses from facebook is hard, not sure about twitter.
This concludes my Friday wishlist. ObFilm: Master and Commander

31 October 2009

Stefano Zacchiroli: mail indexing for mutt

a tale of three tools: mairix, maildir-utils (mu), nmzmail I think/fear I'm getting into this Getting Things Done thingie. For weird reasons I'll explain later on, part of the GTD work flow I'm implementing requires quick lookup from Message-IDs to the corresponding mail, no matter in which mailbox (actually Maildir) I've stored it. Hence, I've looked for a mail indexing tool which is Mutt-compatible, handles Maildirs, and supports Message-ID queries. In Debian (where else should I look? g), I found three: mairix, nmzmail, maildir-utils (whose upstream name is actually "mu"). The first one I tried is mairix. Last upload in Debian was 2 years ago, it doesn't seem to be particularly buggy, and in popcon it has about 300 installations. The integration with mutt is good: searches can create a sort of virtual Maildir, whose files are symlink to the search results; with a couple of macros you can have Mutt easily open the result directory after query. The reason why I ditched mairix, is that it heavily suffer from the NIH syndrome. mairix is a self-contained executable with no external dependencies; that in principle being good, I found nowadays totally unreasonable to not use some third party full text search indexer, given that in the FOSS world we have several good ones. A good aspect of mairix, which is missing in the competitors, is the ability to index messages incrementally as they flow in, e.g. via procmail. Still, the problem of that is that it is difficult to pair that with the habit of moving messages across mailboxes. To that end, periodic re-indexing, or better batch index updates, offers a better work flow. Then I tried nmzmail, which claims at is killer feature the "better integration with Mutt" wrt competitors. Actually, this is false, it has the same level of integration of the other (virtual maildirs with macros) and it doesn't even offer a ready to use set of macros in the doc! (yeah, they're easy to write, but given that you claim you're so well integrated with Mutt ...). The reason why I ditched nmzmail is that I didn't particularly like its choice of (external at least) indexer: Namazu. The index it created was very big (something like 250 Mb for about 400 Mb of Maildirs). Also, I had a bad feeling that the indexing was somehow Japanese-specific (the project having support for that language) and I found no way to disable support for that, which I obviously do not need. Finally, I tried maildir-utils and I was finally happy. It is implemented on top of Sqlite3 (for mail metadata) and Xapian (for full-text indexing). There are some bugs, but Norbert, as the very reactive maintainer, have tackled down most of them now and I've been happy to help with various feedback. Integration with Mutt is granted by the following 2 macros:
    macro index <F8> "<shell-escape>rm -rf ~/.mu/results; mu-find -o l -l ~/.mu/results " "mu-find"
    macro index <F9> "<change-folder-readonly>~/.mu/results\n" "display mu-find results"

The first one query (you) for the search string, the second jumps to the results opening the virtual Maildir (which is useful, especially when you want to go back to the last query you did). I update the index every two hour with the following cron entry:
    31  */2 *  *   *     on_ac_power && mu-index -q

Beside a corner case bug which is close to solution, updating the index is very fast, usually a few seconds; index size is about 150 Mb. To conclude, my initial goal (message path lookup via Message-ID) is easily achieved as follows:
    $ mu-find -f P m:20091030112543.GA4230@usha.takhisis.invalid
    /home/zack/Maildir/INBOX/cur/1256902638_0.25702.usha,U=37563,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S

In addition to that, I've now gained all-maildirs full-text search from within Mutt :-) As a concluding remark, Enrico pointed me to Not much mail, but it seems to be (by authors' own admission) in early stage of development. Also, AFAIU it aims to be a MUA, whereas I'm perfectly fine with Mutt, I just need from time to time to integrate it with other components of my daily work flow.

7 October 2009

MJ Ray: Koha.org Desires Poll Results

Here are the results of the Koha Foundation Desires poll. More than 75% of respondants support the Koha foundation/association doing these things:- 1. ensure the ongoing shared governance of the project = 32 out of 35 = 91.43%
2. owning koha.org = 16 out of 18 = 88.89%
3. secure the Koha name = 31 out of 35 = 88.57%
4. Kaitiaki (guardianship) role = 29 out of 35 = 82.86%
5. be owner of the copyright = 27 out of 35 = 77.14% More than half want to see it do something about each of these six:- 6. user/developer conferences/user group meetings = 24 out of 35 = 68.57%
7. funding non sexy but highly necessary jobs such as revamping and optimising old code = 24 out of 35 = 68.57%
8. networking local associations (such as KUDOS, KohaLA) = 12 out of 18 = 66.67%
9. managed democratically by its member (Association more than Foundation) = 11 out of 18 = 61.11%
10. promote OSS solutions in libraries = 21 out of 35 = 60%
11. further development of features = 19 out of 35 = 54.29% Less than half want these five tasks:- 12. usability/ accessibilty studies = 16 out of 35 = 45.71%
13. opensearchportal for all koha installs = 12 out of 35 = 34.29%
14. translations/localisation = 10 out of 35 = 28.57%
15. provide open source solutions for all tasks a library does daily = 10 out of 35 = 28.57%
16. back up your library technically. Local company/volunteers would do the rest = 9 out of 35 = 25.71% Minority activities:- 17. selling an idea to libraries = 6 out of 35 = 17.14%
18. deployment/adoption in developing countries = 5 out of 35 = 14.29%
19. foster new businesses = 4 out of 35 = 11.43%
20. sure up old ones that might be in dire straits = 3 out of 35 = 8.57% You can see the names given by the voters and who voted for what in the Koha Foundation Desires poll online. I hope we ll see the other, wider survey response before the general meeting in a couple of hours. The agenda for it is on wiki.koha.org. If you re involved with koha, I hope to see you there!

1 October 2009

Gerfried Fuchs: Times Are Changing

Since I returned from this year's debconf quite a lot things have changed in my life. One thing I knew way before debconf already, I switched jobs. I was working for a pretty long time (and also through great times) for Silver Server, for well over 6 years. Let's see what I can do in and for my new job. I'm still only pretty short there yet and I being to understand what's going on (and what could need improvements in some workflows) but it's too early to see that more precisely. On a small side-note, the job change also required me to switch my mobile phone number because the old one was a company's number. I now have a private one that I don't fear of losing anymore. If you subtract the number 3933309527644 from my old one you have my new one. On the other hand you can always ask me for it in case you had my old one and wonder. ;) Besides my mobile phone number other smaller things have changed over time too. Most of you noticed that I'm neither using my @ist.org nor my @debian.org address anymore because they did carry the wrong nick. And given that everyone was switching their gnupg keys I did so too. Like before I again created separate keys for private usage and for Debian usage. I'm not really following the procedure of sending out signing requests to people who have signed my old key(s), personally I don't follow them myself so I don't expect others to do. They are though cross-signed with the old ones just to be on the save side to keep the WoT not losing connections. Also I finally got around to set up my own ejabberd server and did create my a new jabber ID that I also plan to keep. It is the same as my private mailaddress as you can see linked above in the key for private usage. ;) One of the reasons for the server is by the way also a testbed for the packaging of ejabberd which will get moved into team maintenance with the next upload which will be the next upstream version, 2.1. But the biggest and most important change in my life is that I will have to rethink my spare time spending quite a lot because there will be something demanding a lot of time starting in about march next year. An extremely fortunate change and almost as happy one even though it means that I won't be able to attend next year's debconf in NY, but I hope the people whom I told that I will be there aren't too disappointed by this announcement. Sorry! :)

John Goerzen: MoinMoin as a Personal Wiki, Zen To Done, And A Bit of Ikiwiki

Since I last evaluated and complained about wikis last year, I ve been using moinmoin for two sites: a public one and a personal one. The personal site has notes on various projects, and my task lists. I ve been starting out with the Zen To Done (ebook, PDF, paper) idea. It sounds great, by the way; a nice improvement on the better-known GTD. My To Do Page Anyhow, in MoinMoin, I have a ToDos page. At the top are links to pages with different tasks: personal, work, yard, etc. Below that, are the three big rocks (as ZTD calls them) for the day: three main goals for the day. I edit that section every day. The Calendar And below that, I use MoinMoin s excellent MonthCalendar macro. I have three calendars in a row: this month, next month, and last month. Each day on the calendar is a link to a wiki page; for instance, ToDos/Calendar/2009-10-01. The day has a red background if the wiki page exists, and white otherwise. So when I need to do something on or by a specific day, I click on the link, click my TaskTemplate, and create a simple wiki page. When I complete all the tasks for that day, I delete that day s wiki page (and can note what I did as the log message if I like). Very slick. The Task Lists My task pages are similar. They look like this:
= Personal =
<<NewPage(TaskTemplate,Create new task,@SELF)>> <<Navigation(children,1)>>
<<BR>>
So, my personal task page has a heading, then it has an input form with a text box and a button that says Create new task. Type something in and that becomes the name for a wiki page, and takes you do the editor to describe it. Below the button is a list of all the sub-pages under the Personal page, which represent the tasks. When a task is done, I delete the page and off the list it goes. I can move items from one list to another by renaming the page. It works very, very nicely. Collecting Part of both ZTD and GTD is that it must be very easy to get your thoughts down. The idea is that if you have to think, I ve got to remember this, then you ll be stressed and worried about the things you might be forgetting. I have a Collecting page, like the Personal or Work pages, that new items appear on when I m not editing my wiki. They get there by email. MoinMoin has a nice email system. I ve set up a secret email address. Mail sent there goes directly into MoinMoin. It does some checks on it, then looks at a combination of the From and Subject lines to decide what to do with it. If I name an existing page, it will append my message the the end. If it s a new page, it ll create it. I have it set up so that it takes the subject line as a page name to create/append to under ToDos/Collecting/$subject (by putting that as the name on the To line). So, on my computers, I have a newtodo script that invokes mail(1), asks for a subject, and optionally lets me supply a body. Quick and painless. Also, I ve added the address to my mobile phone s address book. That way I don t have to carry around pen and paper. Need to get down some thought ? No problem. Hit send email, pull the last address sent to, give it a subject and maybe a body. Very slick. Wiki Software As a way of updating my posts from last year: I ve been very happy with MoinMoin overall. It has some oddities, and the biggest one that concerns me is its attachment support. It doesn t let you specify a maximum upload size, and doesn t very well let you restrict attachment work to only certain people. But the biggest problem is that it doesn t track history on attachments. If a vandal deletes the attachment on a page, it s GONE. They expect to have that fixed in 2.0, coming out in approximately November, 2010. I also looked at Ikiwiki carefully over the past few days. Several things impressed me. First, everything can be in git. This makes for a very nice offline mode, better than Moin s offline sync. The comment module is nicer than anything in Moin, and the tagging system is as well. Ikiwiki truly could make a nice blog, and Moin just couldn t. It also puts backlinks at the bottom of each page automatically, a nice feature. And it s by Joey Hess, who writes very solid software. There are also some drawbacks. Chief on that list is that ikiwiki has no built-in history of a page feature. Click History and it expects to take you to gitweb or ViewVC or some such tool. That means that reverting a page requires either git access or cut and pasting. That s fine for me, but throwing newbies to gitweb suddenly might not be the most easy. Since ikiwiki is a (very smart) wiki compiler, its permission system is a lot less powerful than Moin s, and notably can t control read access to pages at all. If you need to do that, you d have to do it at the webserver level. It does have a calendar, but not one that works like Moin s does, though I could probably write one easily enough based on what s there. A few other minor nits: the email receiving feature is not as versatile as Moin s, you can t subscribe to get email notifications on certain pages (RSS feeds only, which would have to be manually tweaked later), and you can t easily modify the links at the top of each page or create personal bookmarks. Ikiwiki looks like an excellent tool, but just not quite the right fit for my needs right at the moment. I ve also started to look at DokuWiki a bit. I was initially scared off by all the plugins I d have to use, but it does look like a nice software. I also re-visited MediaWiki, and once again concluded that it is way too complicated for its own good. There are something like a dozen calendar plugins for it, some of which even are thought to work. The one that looked like the one I d use had a 7-step (2-page) installation process that involved manually running SQL commands and cutting and pasting some obscure HTML code with macros in it. No thanks.

15 September 2009

MJ Ray: Reminder: Meeting about a Koha Foundation

A quick reminder about the meeting about forming a Koha foundation in a few hours. The agenda and information links are on the wiki. I d really like to see everyone invoved in koha development there, or you could leave comments here for me to take to the meeting. Someone will link a summary and the transcript from the wiki after the meeting.

10 September 2009

MJ Ray: Meeting about forming a Koha Foundation, 15 September 2009

Following suggestions by some other koha developers and with an increasing amount of silence from long-time koha community supporters liblime, we ve called an IRC meeting next Tuesday. We re concerned that our community is currently not sustainable: the withdrawal of any vendor could seriously damage the project. Moving some of the core project resources to a foundation should ensure its continued stewardship. From my own point of view, our co-op internally tries to keep its TruckNumber high and we d like to use a foundation to make sure the Koha project TruckNumber stays high. There are several groups set up for the koha project and some that existed before: can any of them help to make Koha sustainable? Right now, I think TTLLP is the only Koha hoster which isn t a private for-profit corporation. That seems a bit scary for a 10-year-old project. It s time to fix this. The agenda and information links are on the wiki. Hope to see everyone invoved in koha development there!

3 September 2009

Andrew McMillan: Storing Secrets

Something that has been annoying me recently with my bank has been that their website tells me that they will never ask for my password over the phone. And then their call centre asks me for my password. Over the phone. Of course the call centre doesn't mean my website password - they mean the special 'ultra-secure 5ekr1t code phrase', but they don't have a good, universally understood word to use for that. Hopefully they'll work one out, but they appear to have got the message anyway. This got me to thinking about how these phrases are used, and how insecure they are in reality. After all when I store a website password I go to significant lengths to ensure that the same password is not represented by the same string of characters in my database. How vulnerable are our secrets in the databases of organisations we do business with?
<!--break--> Simple Password Storage Surprisingly often people do store passwords in databases in plain text, so that should their website get hacked someone would quite possibly be able to download the whole password database. Please feel free to name and shame these organisations in the comments below. My own pet hate in this regard is the 'Mailman' mailing list software: by default on 'mailman day' - the first day of each month - it sends me my password. In plain text. Of course many developers recognise this flaw, and work around it by using a one-way hash to obscure the password. Usually they choose md5 for their hashing algorithm though, and they often fail to use a 'salt' to randomise the plaintext prior to hashing. This means that even though a password might seem obscure like 'Supercalifragilisticexpialidocious!', and no doubt it will hash to something that seems obscure like 'a7290d426b6a1764af6fd7fba5db214e', but you can often find it straighforwardly by looking it up through one of the friendly reverse hash lookup websites. There's even a Digest::MD5::Reverse perl module on CPAN to interface to a bunch of these in a more automated way! Oh dear. One way to go beyond this is using a 1-way hashing algorithm, with a random salt included into the plaintext before the hashing, so that if (god forbid) two users had 'password' for their password I might see two rows in my database like:
davical=# select username, password from usr;
  username                       password                          
-------------+------------------------------------------------
 user1          SSHA qCctCH5dirYCf29uxJiE68LvmLRDdnBkbldiWlE=
 user2          SSHA y8yOzjoh9fSkVwLaXGoVtWdiIYxmU2FCb2dOZXc=
(2 rows)
When the user wants to log in I apply the same transformation to their incoming password (appending the same salt) and compare against my stored hash. If they match then it must be the same password they used previously. Storing passwords in this way secures them from casual, or even reasonably determined access, although naturally they can still be logged at the beginning and end of the communication - or even in the middle, if we didn't encrypt that bit! The PHP function I use to salt and hash the password is as follows:
/**
* Make a salted SHA1 string, given a string and (possibly) a salt.  PHP5 only (although it
* could be made to work on PHP4 (@see http://www.openldap.org/faq/data/cache/347.html). The
* algorithm used here is compatible with OpenLDAP so passwords generated through this
* function should be able to be migrated to OpenLDAP.
*
* If no salt is supplied we will generate a random one.
*
* @param string $instr The string to be salted and SHA1'd
* @param string $salt Some salt to sprinkle into the string to be SHA1'd so we don't
*                     get the same PW always hashing to the same value.
* @return string  SSHA  followed by a base64 encoded SHA1 of the salted string.
*/
function session_salted_sha1( $instr, $salt = "" )  
  if ( $salt == "" )  
    $salt = substr( base64_encode(sha1(rand(100000,9999999),true))), 2, 9);
   
  return ( sprintf(" SSHA %s", base64_encode(sha1($instr.$salt, true) . $salt)));
 
What about Secret Code Phrases? The problem with these secret code phrases, apart from all of the forgetability and guessability problems that have repeatedly been identified elsewhere, is that they are much less likely to be stored in a one-way hash. Are you going to ask your call-centre staff to type in the customer's secret code phrase? Didn't think so. And if you did it's going to add pronouncability issues to the whole mix. So this means that those organisations who have our secret code phrases in their database will, in all likelihood, have them stored directly as plain text, displaying them to the random call-centre staffer along with all of our other account details, and especially making them vulnerable to accidental disclosure. Disclosure of a sort that doesn't necessarily involve knowing they have been disclosed. Proliferation of Use These things provide the appearance of security - 'Security Theatre' as Bruce Schneier terms it - and because of that they're taken up in a kind of a cargo cult of security: "if the banks do it that way it must be a really good form of security". This makes the problem much worse, because now I have to remember a secret code phrases not only for banks, but for ISPs, phone companies, online auction websites, and so on. How many mother's maiden names, favourite teachers and friend's phone numbers do I have? I'm sure I'm at well up whatever curve it is that measures the number of passwords a person has, because five years ago I had so many I started to store them all in an encrypted database - protected by a yet another password, of course. Now in order to get my story straight I have to store my 'secret code phrases' in there too. If I didn't store my secret code phrases in that database, I'd obviously be re-using them everywhere, from a very small set - perhaps the same one that everyone around me overhears, every time I have to ring my bank to authorise another payment from my account. Because the proliferation of use is not just the breadth of wannabe thespians hoping to climb on the stage of this latest play, but the way they want to use it all the time, too. In fact the only conversation I've had recently with my bank where they didn't want it was when they rang me. Obviously I was the only person who could answer a phone in my house, right? It isn't just security theatre: I think we can see that this analogy belongs much deeper into the sub-genre of 'Security Farce'. Is there a solution? I don't have any easy answers - other than the ones to my security questions, of course - but some improvements are possible. Other banks have quizzed me about stuff like recent expenditure or credit card limits from time to time, but I've usually passed those tests by reading my last bank statement - or failed them by not having it to hand! I don't really think that the answers can lie in that direction because the information is only quite loosely tied to my identity. For some parts of the call-centre handling of secret code phrases there are changes that could make them more secure, but in the fairly short term these organisations need to find a different way to perform these out of band identity checks. For the actual storage of the code phrases it would be a marginal improvement if the database did not contain the actual phrase. Perhaps it could be encrypted with some application-known key, so that it can be unencrypted when it needs to be displayed, but never stored in the clear. Of course there's still the problem with that key... Verification of the secret code phrase could be done by someone not involved in the transaction, so that the call could be temporarily passed into a 'verification stream' where a different person performed the verification step without the context of the account details or enquiry. Though this sort of complexity seems unlikely with call centres seemingly being outsourced to the cheapest supplier. One thing does seem likely to become increasingly true: there is less and less private data in our lives, and every time we share one of these little nuggets with our bank, or our electricity company, or our on-line associates-we-call-friends, is one more chance that it escapes into the hands of the foaming-at-the-mouth-terrorist-cracker-communist-nazi-right-wing-religious-fruitcake hordes. The highest bar for personal verification which any of my banks currently sets for me is a random choice from a set of personally entered questions, with a set of personally entered answers, for which I have to enter two randomly selected characters using my mouse. That's not bad for safe verification, and I'd have to be really impressed with their security if that was stored in the database by a passphrase-protected encryption key. With that bank I don't know what they do over the phone - I assume they've concluded they can trust my logged on persona enough that I can do what I want online, consequently I haven't had to call them and share those secrets with everyone in earshot. Maybe paranoid freaks like me will go back to a chequebook and close down on-line access to their bank accounts entirely when they find themselves having to supply a skin scraping in order to authorise their next $500 payment. "Please insert your finger in the AccuYou(tm) BloodSucker(tm) to proceed with this payment" - well, I guess it might cut down my spending! In any case, biometrics need to be understood before they can be used effectively and appropriately - and remotely over the phone is probably not one of the ways that they can be trusted to work.

2 September 2009

MJ Ray: Koha meetings and case studies

It s been a fairly good month working with Koha for me. Our co-op installed Koha 3.0 for a few more libraries and had quite a few enquiries. This means our test servers still need upgrading to 3.0.3, which is disappointing, but current customers come first. The flip side of that is that I m probably going to take some heat during tonight s koha General IRC Meeting and we re facing a bit of a rush to get the direct-RFID control feature and the category of patrons editor tidied and submitted before the 3.2 feature-freeze on 6 September. The features are currently sat up on our infamous co-op 3.0 fork branch, but at least I m currently working with that during a server migration at one library. Also announced this week, the eIFL-FOSS ILS project case studies include several Koha libraries.

6 June 2009

John Goerzen: Buying a SoundBridge Radio

A day or two ago, I asked for suggestions for a tabletop MP3 player. I got lots of good ideas thanks! The two most common were the Roku SoundBridge Radio and the Nokia N800. I ve ordered the SoundBridgeRadio. I spent some time looking over its website, and it really impressed me for several reasons: The N800 is also a good suggestion. It has an FM tuner built-in, and of course is capable of streaming media files. I have an N810, and I just don t think a device this size would be capable of playing loudly enough for a kitchen. So I d have to get external speakers, and then we re into a mess of wires and stuff making it less portable to other rooms in the house. One person also suggested a Chumby. It sounds like an awesome gadget, but I couldn t find anything on their site that indicated that it could stream music from my own server. From the Internet or an iPod, yes, but not from my server. Thanks to everyone for your ideas. I ll post a review of the SoundBridge Radio when I get it.

31 May 2009

Ana Beatriz Guerrero Lopez: The freedom to choose

John, no need to be so alarmist, this is KDE, look at the options: Okular settings

John Goerzen: Free Software enforcing DRM?!

So I just recently switched to KDE 4 (still using it with xmonad, of course) and I just now ran into my first really big annoyance. I just downloaded a PDF, and tried to copy and paste a bit of text from it. I used the selection tool, and Okular (KDE s document viewer) offered to speak it to me, but said Copy forbidden by DRM. pdftotext was able to convert the entire file to text format in an instant. Why are people intentionally adding code to KDE to remove my freedom? This is crazy and nuts. Nobody should be doing this, least of all in Free Software!

25 May 2009

Michael Prokop: Boot an ISO via Grub2

With grub2 you can directly boot an (iso9660) ISO using its loopback option. This is great because it provides another nice rescue scenario - for example when using grml (the Debian based Linux Live-CD for sysadmins). You no longer need to extract kernel and initrd from the ISO to be able to boot it using the isofrom bootoption. All you need to do is put a plain grml ISO to your harddisk. I ve tested it with grml-small 2008.11 and grml-small 2009.05-rc1 using grub2 from Debian/unstable (1.96+20090317-1). In the following example the ISO file grml-small_2008.11.iso is available in directory grml on device /dev/sda1. You can boot it from the interactive grub shell using:
loopback loop (hd0,1)/grml/grml-small_2008.11.iso
linux    (loop)/boot/grmlsmall/linux26 isofrom=/dev/sda1/grml/grml-small_2008.11.iso boot=live quiet vga=791 noeject noprompt
initrd   (loop)/boot/grmlsmall/initrd.gz
boot
So if you are using grub2 already consider adding an entry like the following to your grub config (/boot/grub/grub.cfg):
menuentry "grml-rescue system from harddisk (ISO = grml-small_2008.11.iso)"  
  loopback loop (hd0,1)/grml/grml-small_2008.11.iso
  linux    (loop)/boot/grmlsmall/linux26 isofrom=/dev/sda1/grml/grml-small_2008.11.iso boot=live quiet vga=791 noeject noprompt
  initrd   (loop)/boot/grmlsmall/initrd.gz
 
This entry gives you the option to boot grml from your harddisk even if you don t have the possibility to boot via CD/USB/PXE/ . Tip: starting with grml 2009.05(-rc1) you can also use findiso=/path/to/grml.iso instead of isofrom=/dev/sdX/path/to/grml.iso. findiso is a dynamic version of isofrom as it looks for the specified ISO file on all disks where it usually looks for the .squashfs file (so you don t have to know the device name compared to isofrom= ). The above configuration using findiso is even easier to set up and would look like this:
menuentry "grml-rescue system from harddisk (ISO = grml-small_2008.11.iso)"  
  loopback loop (hd0,1)/grml/grml-small_2008.11.iso
  linux    (loop)/boot/grmlsmall/linux26 findiso=/grml/grml-small_2008.11.iso boot=live quiet vga=791 noeject noprompt
  initrd   (loop)/boot/grmlsmall/initrd.gz
 

10 May 2009

Marc 'Zugschlus' Haber: Pushing a packet back and forth between Linux subsystems

Linux policy routing is still incredibly painful if one wants to have more sophisticated routing than just take source and destination IP address for the routing decision . The mechanisms that have been in use seven years ago still work though, and I didn t find any possibility to do it any easier. In this article, I ll try to explain the old mechanisms and hope that somebody from lazyweb will comment and say it can be done so much easier . This is a translation of the Usenet article <gu48cs$rul$1@news1.tnib.de> in de.comp.os.unix.networking.misc in the hope that the english-speaking blogosphere can give additional insights. Given a Linux-based router with one internal network (int0), one perimeter network (per0) and two Internet connections (ext0, ext1) with one IP address each. We need to do source NAT to deliver Internet to the internal and perimeter networks. The internet connection on ext0 will be used for http and https, while all other traffic needs to go out on ext1. The perimeter network is reachable from the outside via destination NAT.
1: ext0:  mtu 1500 qdisc noqueue
    inet 10.81.221.145/29 brd 10.1.221.151 scope global ext0
2: ext1:  mtu 1500 qdisc noqueue
    inet 10.82.83.225/29 brd 10.82.83.231 scope global ext1
3: per0:  mtu 1500 qdisc noqueue
    inet 172.16.1.254/24 brd 172.16.1.255 scope global per0
4: int0:  mtu 1500 qdisc noqueue
    inet 192.168.8.254/24 brd 192.168.8.255 scope global int0
We have the following routing rules:
0:      from all lookup 255
10:     from all lookup main
32:     from all fwmark 0x12e lookup to_ext0
32:     from all fwmark 0x12f lookup to_ext1
32000:  from all lookup defaultroute
32000:  from all lookup defaultroute
32766:  from all lookup main
32767:  from all lookup default
Table main contains all rules for the directly connected networks, but no default route. Both to_ tables have one default route each, pointing to the respective ISP, and the table defaultroute has once more a default gateway pointing to ext1 s gateway. The PREROUTING chain of the mangle table has these rules:
iptables --protocol tcp --dport 80 --in-int int+ --set-mark 0x12e
iptables --protocol tcp --dport 443 --in-int int+ --set-mark 0x12e
iptables --in-int int+ --set-mark 0x12f
and the POSTROUTING chain of the nat table has these:
iptables --match mark --mark 0x12e --out-int ext0 --jump SNAT --to-source 10.81.221.145
iptables --match mark --mark 0x12f --out-int ext1 --jump SNAT --to-source 10.82.83.225
If now somebody from the internal network accesses a web server on the Internet. The outgoig packet will first be marked in the PREROUTING chain, then the routing rules will use the firewall mark to consult the correct routing table and pass the packet back to the packet filter, where the POSTROUTING chain will use the outgoing interface and the firewall mark to SNAT the packet to the correct source IP so that the answer will actually reach us. Has a less ugly way available way to do this become available in the last five years? Or is it still necessary to have the different parts of the networking subsystems play ping-pong with the packet? I particularly dislike that someone not familiar with policy routing will not see any default route in the routing table printed by route or ip route , which will probably be very confusing. Is there any possibility to interact with the routing code without firewall marks, maybe by directly setting a gateway from a firewall rule?

8 May 2009

Florian Ragwitz: MongoDB on CPAN

I've been doing some contracting work for 10gen recently. They have that rather cool open source document database called MongoDB and they wanted me to write a module to use that from Perl. I did that and the code is now available on CPAN and github. Writing that was fun, and I'm already looking forward to be able to use MongoDB as a backend for KiokuDB. I started writing code for that and put it on github, but isn't passing all the tests just yet. In related news, after finishing the MongoDB module, I'm available for other things again. So if you're looking for a Perl telecommuter, let me know.

Next.

Previous.