Search Results: "sto"

9 December 2006

Daniel Burrows: Hardware manufacturers to avoid: Samsung

[UPDATE 2: the problem is of the form "Daniel is an idiot". See this post for details. DRM is still evil, though.]

I recently assembled a little Mini-ITX system, mainly for use as a file server/desktop replacement/music server. However, it has a DVD drive, and it has a hardware MPEG2 decoder. So today, feeling a bit lazy, I decided to try displaying a DVD on the box instead of using the DVD player. This is when I discovered that my computer's new DVD drive is defective.

hdc: command error: status=0x51 DriveReady SeekComplete Error
hdc: command error: error=0x54 AbortedCommand LastFailedSense=0x0
5
ide: failed opcode was: unknown
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Read of scrambled sector without authentication -- (asc=0x6f, asc
q=0x03)
The failed "Read 10" packet command was:
"28 00 00 00 01 c0 00 00 02 00 00 00 00 00 00 00 "


Yes, you read that right.

So, I won't be buying any more Samsung hardware until they figure out that I am their customer, not the MPAA. I realize this is an utterly futile gesture, that Samsung won't even notice my lack of custom, that this will make not even a dent on the juggernaut of DRMed/TPMed/locked-down hardware/software systems that are coming in the future, and that the end result is that I quit using computers entirely and go raise chickens...but you know, right now I think I'm mad enough not to care.

PS: Even worse: based on some discussions I found online, I ran a quick check of the CD reading speed -- and it appears that the drive now refuses to read CDs any faster than 2-3X! This is absolutely the last dollar that Samsung is getting from me, and if the store's return policy allows it, this sucker is getting RMAed tomorrow.

[UPDATE: the store I bought the drive from in October has a 30-day return policy, so I'm stuck with the one I've got. Probably I won't bother with getting DVD functionality on my next optical drive, it's not worth the obnoxiousness.]

Russell Coker: Debian SE Linux policy bug

checkmodule -m -o local.mod local.te
semodule_package -o local.pp -m local.mod
semodule -u local.pp


Save the following policy as local.te and then run the above commands to make semodule work correctly and to also allow restorecon to access the console on boot.

module local 1.0;

require
class chr_file read write ;
class fd use;
type restorecon_t;
type tmpfs_t;
type initrc_t;
type semanage_t;
role system_r;
;

allow restorecon_t tmpfs_t:chr_file read write ;
allow semanage_t initrc_t:fd use;

8 December 2006

Russell Coker: SE Linux on Debian in 5 minutes

Following from my 5 minute OSDC talk yesterday on 5 security improvements needed in Linux distributions I gave a 5 minute talk on installing SE Linux on Debian etch. To display the notes I formatted them such that they were in 24 line pages and used less at a virtual console to display them. The ultra-light laptop I was using has only 64M of RAM which isn't enough for a modern X environment and I couldn't be bothered getting something like Familiar going on it.

After base install you install the policy and the selinux-basics package:

# apt-get install selinux-basics selinux-policy-refpolicy-targeted
The following extra packages will be installed:
checkpolicy libsemanage1 mime-support policycoreutils python python-minimal
python-selinux python-semanage python-support python2.4 python2.4-minimal
selinux-utils
Suggested packages:
python-doc python-tk python-profiler python2.4-doc logcheck syslog-summary
The following NEW packages will be installed:
checkpolicy libsemanage1 mime-support policycoreutils python python-minimal
python-selinux python-semanage python-support python2.4 python2.4-minimal
selinux-basics selinux-policy-refpolicy-targeted selinux-utils
0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 6362kB of archives.
After unpacking 41.5MB of additional disk space will be used.
Do you want to continue [Y/n]?

The package install process also configures the policy for the machine. The next step is to label the filesystems, this took 26 seconds on my Celeron 500MHz laptop with 20,000 files on an old IDE disk. The time is in proportion to number of files, often bottlenecked on CPU. A more common install might have 5* as many files with a 5* faster CPU so 30 seconds is probably common for labelling. See the following:

# fixfiles relabel

Files in the /tmp directory may be labeled incorrectly, this command
can remove all files in /tmp. If you choose to remove files from /tmp,
a reboot will be required after completion.

Do you wish to clean out the /tmp directory [N]? y
Cleaning out /tmp
/sbin/setfiles: labeling files under /
matchpathcon_filespec_eval: hash table stats: 14599 elements, 14245/65536 buckets used, longest chain length 2
/sbin/setfiles: labeling files under /boot
matchpathcon_filespec_eval: hash table stats: 19 elements, 19/65536 buckets used, longest chain length 1
/sbin/setfiles: Done.

The next step is to edit /boot/grub/menu.list to enable SE Linux, auditing, and put it in enforcing mode:

title   Debian GNU/Linux, kernel 2.6.17-2-686
root (hd0,1)
kernel /vmlinuz-2.6.17-2-686 root=/dev/x selinux=1 audit=1 ro enforcing=1
initrd /initrd.img-2.6.17-2-686

Then reboot.

After rebooting view the context of your shell, note that the login shell will have a domain of unconfined_t when the targeted policy is used:
# id -Z
system_u:system_r:unconfined_t

Now let's view all processes that are confined:
# ps axZ  grep -v unconfined_t grep -v kernel_t grep -v initrc_t
LABEL PID TTY STAT TIME COMMAND
system_u:system_r:init_t 1 ? Ss 0:02 init [2]
system_u:system_r:udev_t 1999 ? S.s 0:01 udevd --daemon
system_u:system_r:syslogd_t 3306 ? Ss 0:00 /sbin/syslogd
system_u:system_r:klogd_t 3312 ? Ss 0:00 /sbin/klogd -x
system_u:system_r:apmd_t 3372 ? Ss 0:00 /usr/sbin/acpid -c /etc
system_u:system_r:gpm_t 3376 ? Ss 0:00 /usr/sbin/gpm -m /dev/i
system_u:system_r:crond_t 3402 ? Ss 0:00 /usr/sbin/cron
system_u:system_r:local_login_t 3423 tty1 Ss 0:00 /bin/login --
system_u:system_r:local_login_t 3424 tty2 Ss 0:00 /bin/login --
system_u:system_r:getty_t 3425 tty3 Ss+ 0:00 /sbin/getty 38400 tty3
system_u:system_r:getty_t 3426 tty4 Ss+ 0:00 /sbin/getty 38400 tty4
system_u:system_r:getty_t 3429 tty5 Ss+ 0:00 /sbin/getty 38400 tty5
system_u:system_r:getty_t 3430 tty6 Ss+ 0:00 /sbin/getty 38400 tty6
system_u:system_r:dhcpc_t 3672 ? S.s 0:00 dhclient3 -pf /var/run/
The initial install of policy inserts modules to match installed software, if you install new software then you need to add new modules with the semodule command:

# semodule -i /usr/share/selinux/refpolicy-targeted/apache.pp
security: 3 users, 7 roles, 824 types, 67 bools
security: 58 classes, 11813 rules
audit(1165532434.664:21): policy loaded auid=4294967295
# semodule -i /usr/share/selinux/refpolicy-targeted/bind.pp
security: 3 users, 7 roles, 836 types, 68 bools
security: 58 classes, 12240 rules
audit(1165532467.874:22): policy loaded auid=4294967295

Note that the security and audit messages come from the kernel via printk, it is displayed on console login but you need to view the system log if logged in via ssh or running an xterm. Now you have to relabel the files that are related to the new policy:

# restorecon -R -v /etc /usr/sbin /var/run /var/log
restorecon reset /etc/bind context system_u:object_r:etc_t->system_u:object_r:named_zone_t
restorecon reset /etc/bind/named.conf context system_u:object_r:etc_t->system_u:object_r:named_conf_t
[...]
restorecon reset /etc/apache2 context system_u:object_r:etc_t->system_u:object_r:httpd_config_t
restorecon reset /etc/apache2/httpd.conf context system_u:object_r:etc_runtime_t->system_u:object_r:httpd_config_t
[...]
restorecon reset /usr/sbin/named context system_u:object_r:sbin_t->system_u:object_r:named_exec_t
restorecon reset /usr/sbin/apache2 context system_u:object_r:sbin_t->system_u:object_r:httpd_exec_t
restorecon reset /usr/sbin/rndc context system_u:object_r:sbin_t->system_u:object_r:ndc_exec_t
restorecon reset /usr/sbin/named-checkconf context system_u:object_r:sbin_t->system_u:object_r:named_checkconf_exec_t
[...]
restorecon reset /var/run/bind context system_u:object_r:var_run_t->system_u:object_r:named_var_run_t
restorecon reset /var/run/bind/run context system_u:object_r:var_run_t->system_u:object_r:named_var_run_t
restorecon reset /var/run/bind/run/named.pid context system_u:object_r:initrc_var_run_t->system_u:object_r:named_var_run_t
restorecon reset /var/run/motd context system_u:object_r:initrc_var_run_t->system_u:object_r:var_run_t
restorecon reset /var/run/apache2 context system_u:object_r:var_run_t->system_u:object_r:httpd_var_run_t
restorecon reset /var/run/apache2/cgisock.3558 context system_u:object_r:var_run_t->system_u:object_r:httpd_var_run_t
restorecon reset /var/run/apache2.pid context system_u:object_r:initrc_var_run_t->system_u:object_r:httpd_var_run_t
restorecon reset /var/log/apache2 context system_u:object_r:var_log_t->system_u:object_r:httpd_log_t
restorecon reset /var/log/apache2/error.log context system_u:object_r:var_log_t->system_u:object_r:httpd_log_t
restorecon reset /var/log/apache2/access.log context system_u:object_r:var_log_t->system_u:object_r:httpd_log_t

The -v option to restorecon causes it to give verbose output concerning it's operations. Often you won't do it in real use, but it's good to illustrate the use.

Now you have to restart the daemons:

# killall -9 apache2
# /etc/init.d/apache2 start
Starting web server (apache2)....
# /etc/init.d/bind9 restart
Stopping domain name service...: bind.
Starting domain name service...: bind.

Apache and BIND now run in confined domains, see the following ps output:

system_u:system_r:httpd_t   3833 ?     Ss     0:00 /usr/sbin/apache2 -k start
system_u:system_r:httpd_t 3834 ? S 0:00 /usr/sbin/apache2 -k start
system_u:system_r:httpd_t 3839 ? Sl 0:00 /usr/sbin/apache2 -k start
system_u:system_r:httpd_t 3841 ? Sl 0:00 /usr/sbin/apache2 -k start
system_u:system_r:named_t 3917 ? Ssl 0:00 /usr/sbin/named -u bind

It's not particularly difficult. I covered the actual install of SE Linux in about 1.5 minutes. I had considered just ending my talk there on a note of "it's so easy I don't need 5 minutes to talk about it" but decided that it was best to cover something that you need to do once it's installed.

If you want to know more about SE Linux then ask on the mailing list (see http://www.nsa.gov/selinux for subscription details), or ask on #selinux on freenode.

Steve McIntyre: Is there nothing they won't stoop to?

In the UK, the Gowers review of Intellectual Property (sigh at the usual conflation) was released this week. Amongst a whole slew of other recommendations, he stated quite clearly that the term of current music copyright protection in the UK was already long enough, and extending it was not in the public interest: "Recommendation 3: The European Commission should retain the length of protection on sound recordings and performers' rights at 50 years." "Recommendation 4: Policy makers should adopt the principle that the term and scope of protection for IP rights should not be altered retrospectively." The review was published shortly after a slew of propaganda from various bodies in the UK representing the music industry, all essentially claiming "the sky is falling". Yesterday, there was even a full-page advertisement in the Financial Times signed by several thousand UK recording artists calling for "fair play for musicians". However, as Lessig points out, there's a small problem with that ad: at least some of the so-called signatories are dead, and have been for some time. I suppose by now we should be used to the fact that the large media corporations are corrupt and self-serving - that's hardly news any more. But this really takes the biscuit...

Biella Coleman: Small Claims Court and the Insurance-Industrial Complex

I prefer the study of the law over being personally embroiled with the law in the real world, but if indeed Blue Cross Blue Shield does not pony up the money to cover my recent mole surgeries, I think I am going to take them to small claims court, which I know nothing of, except that it is a cheap way to try to get something done when you are getting screwed by a large faceless organization or some facefull twit. So the basic story is that since I had a lapse in my insurance (thanks to good Old Rutgers University!!), when I decided that I should buy my own just in case, I fell into a “pre-existing” clause, which means basically the insurance company can make your life a living bureaucratic hell because they have to review and approve every single procedure or doctor visit for over a year. Super. So of course when I got my mole diagnosis (dysplastic) and then the surgeries (the total cost being almost 3500) they went for review, but of course Blue Cross is taking their sweet time… The derm office has called for me to get involved so I spent the morning talking to a Ms. Flood from Blue Cross/Blue Shield and she explained to me that all the documentation from the doctor’s office was only received November 1st and then they will take 60-90 days to review the case before making the decision. Now, the insurance coordinator at the dermatology office told me that Blue Cross told her that Blue Cross can take up to FIVE years (not months, Years) to make a decision which seems, well just like they type of thing they would do, but somewhat illegal, maybe, no???!!! Anyway, my plan is to wait those 90 days and then if they deny my coverage or keep flip flopping around saying they need more info, I think I am going to proceed to the small claims court option. Honestly I don’t know if this is a realistic option (though I hope my lawyer friends write back soon) and it is a pain in the neck but I refuse refuse refuse to let this go…. because well, my mole condition was not pre-existing! Sure I had them, but they were happy healthy moles… And I even had seen another dermatologist with my Blue Cross Blue Shield insurance about 6 months earlier and all was good!! Yes I am upset :-( Anyone else ever fought the insurance industrial complex along these lines? Or have used small claims courts? This makes me want to stay in Canada… forever.. but actually I am due back in NYC by August for a permanent job but more on that later.

Alexander Sack: noteworthy things from the firefox & linux front

mconnor (Mozilla Corp) and caillon (Red Hat) give hope that mozillas attitude finally starts to change (in the right direction): That’s all good news, but even better … “Red Hat and Novell are both going to commit some effort into maintaining the Firefox 1.5.0.x line past the current EOL date this spring” ... thank $GOD for that ;-)

Holger Levsen: A true story from the deep internet

I FOUND IT!!!

I FOUND THE FIREWIRE CARD! \o/

hehe

it was somewhere between the cray CPU boards ? :)

Evan Prodromou: 17 Frimaire CCXV

One problem with keeping your journal in the French Revolutionary Calendar is that you have to keep looking up what the date is. It is nice to know that there are functions for converting Julian dates to French Revolutionary dates in PHP. Also a nice link on that page to the strange and mellow http://bottoms-dream.de/ , which isn't anywhere near as pornographic as it sounds. tags:

Blinky Redux I had Blinky Hockey again tonight -- the first time in a month that I've gone. (Blinky is the pickup hockey team my friends Meg and Patti started. It's for people who don't play hockey so good but want to learn. Like me.) Last time we had it, I flew out to California at 6AM the next day for 2 weeks, so I missed two practices in between. And then last time I had everyone over for Thanksgiving dinner, and I fell asleep putting the baby down. Doh. So it was good to go out this time around. I've been going to our local hockey rink, Ar na Mont-Royal, for free skating from 4-5PM a couple of times per week since we got home, and I think I'm getting a little steadier on the ice. I still haven't got the whole stop-on-a-dime thing or skate-forwards-backwards-forwards thing, but I'm able to get around without going face down. Which is good. Tonight we did some more sophisticated drills and had a good scrimmage at the end of practice. I didn't score but I had an awesome shot. It would have been cool if it were a score. Anyways, I think I'm going to have to keep practicing on my own. Going to the Ar na is great, but maybe I should fill our parking lot out back with water, like this R ves de Glace site suggests. That'd be cool. tags:

Calendar wishlist So, I'm always trying to learn to use my calendar application, whatever's easiest and most available. I have a Treo 650 and Evolution, and they work OK, but they don't work great. I have a lot of things that I wish calendar programs had.
  • Project management integration. This is probably the biggest one for me. I can't believe that we have two different kinds of programs for planning the exact same information: what you're going to do with your time. On top of that it's remarkable that so few of project planner programs talk to calendars (or vice versa).
  • Hierarchical TODO lists. I'd like to break up tasks into sub-tasks that depend on each other.
  • Effort estimates. I'd like to be able to make notes about how long I think a task is going to take, and when I'll get it done.
  • Repeating TODOs. Probably the most egregiously un-ergonomic thing about modern calendaring programs. Almost everything I have to do in my life I have to do on a repeating schedule. I have to take out the recycling once a week before Wednesday morning. I have to pay rent before the 1st. I understand it's a tricky problem, but that doesn't mean I don't want a program to do it.
  • Open invitations. I'd like to be able to send open event invitations to mailing lists and have people RSVP automatically (if they want). All the systems I've used require that I know the email address of each invitee ahead of time. And they rarely work across calendaring systems.
  • Skipped TODOs. Sometimes I give myself a task todo and I just don't get around to doing it. I'd like to be able to mark a task as not done, but no longer important. I don't want to forget it forever, just remember that it never got done.
  • Logging. It'd be nice if there were more and nicer interfaces to say what I did with my day after it's done. When did I finish that module? When was the last time Niko came over for dinner? It would be nice if my calendar helped me remember the past as well as plan the future.
  • Sharing by default. I want to set up calendar sharing once, have my local and remote calendar synched transparently, and never worry about it again. CalDAV seems neat, but I have got no idea how to get it working.
  • More shared calendars. I like using shared calendars; I wish more organizations published them. I'd like it if Bell Canada published a calendar that told me when to pay my phone bill, and I'd like it if MSLUG published a calendar of their meetings. I'd like it if I could mark my phone bill as paid, and RSVP for an MSLUG meeting, through my calendar interface.
  • ACLs. Different people need to see different parts of my calendar. It'd be nice to have finer-grained control than "public" and "private".
tags:

Steve Kemp: Let me hear you speaking just for me

http://faces.debian.net. A couple of HTML::Template files and a directory of images will be transformed into a series of static pages via a simple Perl script. All images are “public” ones as used upon Debian Planet - ask me and I’ll remove you. If your name / homepage is missing then edit them yourselves in the LDAP database. Opt-in picture uploading will be added when I can get a procmail recipe which validates a GPG signature and saves a single attachment to a directory. Help? The layout is stolen from mentors.debian.net - and I will fix that with a unique style once I get a few hours spare. Volunteers for CSS-fu much appreciated.

7 December 2006

Roland Mas: Camsync is shaping up

Did I mention a few scripts I'm using to automagically download my digital pictures off the camera and into F-Spot? Yes, I think I did. I probably mentioned a large bunch of largely spaghetti shell-scripts, too. Fearsome. Well, fear no more! I've started a rewrite, a proper one, in Perl. With a configuration file and all. No camera models or file paths hardcoded. Probably faster, too, since I only fork a few gphoto2 processes in total (instead of one for each downloaded picture). Yes, gphoto2. I haven't reimplemented the mass-storage part yet since I mainly use my PTP camera these days. It may happen someday. I decided to call my beginning-of-a-program "Camsync". Then of course I found that this name was already taken for something similar. I'll contact the author of that something and see what happens. In the meantime, all you PTP-only camera owners may want to have a second look at sync-digicams — it's been updated.

Gunnar Wolf: SmbGate: Almost entirely not frustrating

I've been working a bit over a week on writing SmbGate, a simple and quite braindead Web app giving my users web access (read-only for now at least) their home shares in a Samba server from outside the Institute, which will be basically closed for vacations/moving to a new building for over a month. It went quite smoothly. Even using a quite ugly API (Filesys::SmbClient - It works, but in an ugly fashion), getting the basic app to work took me only two days, and I've been beautifying bits of it for around a week. I even got around to write a user manual, which -to my surprise and astonishement- has been followed by the users. Wow, I'm productive! I even think this can be useful to other people, so I'll put the code online soon - As soon as I get the workplace-specific things weeded out to a configuration file.
Of course, everything has its ups and downs. Yesterday, I found a bug. Today, a user reported the bug to me. And, of course, it seems to depend on MSIE's weirdness.
I really, really hate my users experiencing browser incompatibilities - That's why I installed W2k under qemu (which, when used with the non-free but downloable with no fee required kqemu kernel module is perfectly speed-comparable with the completely-non-free VMware - Go try qemu now!). I tested thoroughly the system from the guest W2k system to my development machine (which is, incidentally, the same physical box), and it worked perfectly. Of course, locally, I didn't care about setting it up in a SSL-protected area. For my users, of course, access to their files is SSL-protected. I tested the production system from Linux, using Firefox. Works like a charm.
So, why am I bitching? Because browsing the directories works correctly from MSIE, but downloading the files doesn't (it says, in such a Spanish that I don't really understand the error message, that the file does not exist or the site is unavailable). Of course, debugging a HTTP request over a SSL session is not feasible. I installed an instance of this system in my regular unencrypted HTTP server - But, surprise surprise, it now works fine under MSIE. Exactly the same URL, only with the https replaced by http
So... I am almost entirely non frustrated. I have hit a bug which does not like being debugged. Joy, joy. But, I promise, victory will be mine.

Biella Coleman: What we learn when we learn economics

At the University of Chicago, the Department of Economics was right across from my home-stomping ground, the Anthropology Department. Less than 30 seconds away, the world views and methodologies packaged for students were actually much much further apart not do to physical space but mind space. Though “there” (not physically the whole time) for 8 years and now gone for two, it only today, this morning before the sun has arisen, when I have had more concerte exposure to what econ undergraduate students get taught during an introductory course thanks to a very well-written article, What We Learn When We Learn Economics. The article’s author is clearly biased in certain respects but what is nice is that he demonstrates well that the articulation of a largely free-trade, market-heavy theory of economics made famous by a group of Chicagoans, which is given in the name of neutrality, is also, like any sort of model, not free entirely from bias and blinders. And whatever your take on free trade economics is, the article is quite well-written so take a dip!

Benjamin Mako Hill: Dev House Boston

I am excited to see that a number of local hackers have organized the first Dev House Boston for this coming Saturday. There are many projects I'm interested in but I might try to take the opportunity to work on my iRony Rockbox Installer because it's likely that there will be many people there with different types of iPods. If you're going, I look forward to seeing you there, although I might not show up until a little later in the afternoon.

Mario Iseli: Spam in my favourite Linux magazine

Hmmm, good morning. The “Linux Magazin” is more or less my favourite IT magazine. I like it with the following reasons: But today I was really unhappy, because there was an article which really was not neutral to the free software community. What about I’m writing? I talk from Microsoft which has a A4-page advertisement in this free software magazine and there’s written that Windows Servers are much more stable and due to this they are used in the “London stock exchange”. Sorry, is this fair? This magazine is about _FREE_ software and not only about IT-Advertisements… I’m interested how much they paied for this article. :-(

Jeff Bailey: News Roundup...

In the news:

* Gates approved as new defence head

How's that for frightening? But, no, it's not Bill Gates. =)

* Victoria's Secret catalogue no longer in pulp friction

At Opus a few years ago, there were some folks doing a letter writing campaign to get Victoria's Secret to stop using Caribou habitat wood in their catalogues. It seems that it's now been successful.

In other news, TD Meloche Monnex can't provide a definition of when we will be living in the new place in order for them to insure it. I've done the rounds with two people now to try and sort out whether they'd be willing to insure or not. They can't decide whether us living in the new place is when we're eating and sleeping there or when every last box has moved. They're pretty happy to tell me that it's a grey area. I hear that as a pretty clear "you're screwed if you need to make a claim". Next!

That said, I took some pictures of the place this evening while we were moving some boxes over. We're trying to make this place not look cluttered. Will post them soon.

Also, note to self: Stairs are slippery. Luckily I was near the bottom step when I discovered this. Walking is a bit sore, but still okay. *sigh*

6 December 2006

Mario Iseli: Planning my holidays, stop smoking and other projects

Hello :-) (first of all, there are new pictures of me)
I think it’s time for another blog, because I have at the moment many different projects. My prio 1 project is the new proxy server which I would like to install in the office (about 500 users) which should have complicated ACLs and SquidGuard for content filtering, a virus scanner would also be very nice. I plan to authenticate the users via winbind on Microsoft ActiveDirectory (I already blogged about it some months ago) and the embedded systems should have special rules which don’t require an authentication. I also had a look at dansguardian because the people from the AIO use this solution, but I don’t think that it’s possible to auth against AD with it and I have no experience with dansguardian. The next problem is with the downtime, I should not have any if possible. This means that I will copy the system of the old proxy into a VMWare-Machine in the intranet and NAT the public IP of the proxy to it when it’s ready. And in this time I can easily setup the new proxy on the physical proxy-machine. Then my next project is for the school - we have to write a management tool (including file-databases) for network devices such as switches or routers, I think this will be a quite funny task and 2 months are IMHO enough time. The cool thing is that we need something like that on my workplace so we will be able to use it. My program also will be licensed under a free license and maybe I will build a debian package if the upstream software is in a good shape. Then the next (maybe less important, but important for my health) project is finally stop smoking. I really didn’t think that this is so difficult because I’m not a “i need it every 2 hours”-smoker, I only need it in the evening when I come home to relax a bit and this is really quite difficult. Then my last (really hard ;-) ) project is planning my holidays, I didn’t use them since summer of this year and until next august I can have 5 weeks + the days from christmas until 3rd January, so my plan is the following: 15.12.2006 Last workday 26.12 - 30.12 23c3 in Berlin 31.12 - 1.12 Snowboarding in the mountains and sylvester party with friends Then in february 2007 I will go again snowboarding for a week somewhere And in june 2007 my last holidays for this year where I’d like to visit Debconf7 (depends if I get sponsoring for accomodation and food or not, you know… I’m still a student and edinburgh isn’t really cheap). I hope this will be my last article without the hackergotchi included, I’m not a graphics-guru so I asked in #debian.de some minutes ago and Markus Gloor made one for me, biggest thanks!

MJ Ray: Gowers Review

At first glance, the Gowers report could be very good, especially the EUCD (European Copyright Directive, also known as European-DMCA, or "that TPM/DRM crap") changes for 'orphan works' and the fence-sitting on punishment adjustments, but could also be bad with increased numbers of state copyright enforcers and increased use of the confused "IP" jargon (then again, UK Patent Office handles Copyright at the moment, which is confused anyway).
History
Discussion

Ross Burton: Managing an APT Repository via WebDAV

At work we've just bought online another server, so we have a true public/private server split. The private server is only accessible via secure methods, and the public server only has a few users to reduce the possibility of people brute-forcing their way in. However, the public server holds the APT repositories for debian.o-hand.com and maemo.o-hand.com. Before the split this was not a problem, after building the package dput was used with the scp method, and then mini-dinstall was run as the user to update the repository. Now that there are minimal accounts on the new server, we can't scp the packages to the server, or ssh in to run mini-dinstall. Running m-d in daemon mode solves the latter, but there is still the problem of getting the files on the server in the first place. Enter WebDAV. The public server already has a number of WebDAV shares (secure client shares, Subversion, and so on) so it was trivial to export the mini-dinstall incoming queues over WebDAV. With a custom init script to start mini-dinstall in daemon mode, anyone with the right permissions can upload files via WebDAV. One option here is to use Nautilus, but I like the safety of dput. A day of hacking, with lots of screaming at Python's urllib2, produced this patch to dput that adds HTTP uploading. I've been using it for a few days now and it seems to be working well, so hopefully it will be merged into Sid soon. NP: Xmas in Frisko, soma.fm

Adrian von Bidder: We Know Who Takes the Blame!

Sam Hocevar is wrong when he says:
Suppose for instance that you stopped contributing to Debian months ago [...] You are obviously not only directly responsible for Etch being late due to your lack of involvement, ...
“You” are not responsible for Etch being late. The Debian project has picked an official scapegoat for Etch being late and for everything else in Debian that just doesn't work how it should. So everybody can now relax: no Debian developer is personally responsible for anything. It's really convenient if some people group together and do something that other people don't like and then give it a name. You can blame the new thing for everything you don't want to do or don't like, without actually having to name the people behind it or thinking about constructive ways to improve matters. It's always “them”. Yes, I'm pissed by the attitude of some very vocal people. Dunc Tank is not an official Debian project, so I still fail to see how it's different from Canonical, Progeny, Credativ etc. hiring people. Dunc Tank even pays people to work directly on Debian, it doesn't pay them to do Debian-related work that might eventually benefit Debian, too. As a private employer, Dunc Tank is free to pick who to employ and who not to employ. Yes, Dunc Tank and some Debian project roles do overlap, but stuff like this can't be avoided, especially in time consuming volunteer projects doing stuff that can also be done for money. Debian is not a charity, but a project competing directly with commercial products, so its members shouldn't be surprised when the question of money comes up every now and then. (And just to make it clear: I'm not arguing against Sam, who blogged about a totally different topic. The part I quoted just got me started.)

Matthew Palmer: I Have Problems With REST

Not being one to stick with what I know, over the last few days I've been trying to put a RESTful sheen on a small app I'm toying with. It's quite simple -- there's really only one type of resource I need to deal with, and I've got a solid URI structure to refer to it all. So far, so good. I've read all the theoretical stuff about how URIs should be nouns, and the HTTP action should be the verb -- and I agree with the sentiment, at least for this system I'm writing[1]. I can even (I think) model all of that stuff using my framework of choice, the ever-hyped-but-good-despite-that Ruby on Rails. There's even fairly explicit support in Rails for a lot of what I want to do, with automatic Content-Type: and Accept: handling logic built-in. But this thing is, primarily, a web app, not a web service. I want the RESTful thing so I can interact with the app programmatically, but at the end of the day, I expect most interactions will be via the good ol' HTML. How, then, do I implement my HTML interface so that my user's browser does the right thing with my resources? My REST resource http://example.com/widgets/1337 will do the right thing if an appropriately-credentialled user issues a DELETE /widgets/1337 request, but how do I tell a browser to do that? The "traditional" way I've done that sort of thing, in Rails, is to encode the verb in the URL, like so: /widgets/delete/1337, but I completely agree with the idea that a GET request shouldn't modify data[2]. So I'm completely sold on the idea of not encoding actions into the URI itself. I'm also a DRY[3] kind of guy, and one of the things that has always slightly irritated me about web services is that, when you write them alongside a HTML-oriented webapp, you often have to duplicate logic (even if it's not very much) to get both versions working. Considering that both the webapp and the REST service are using URLs in pretty much the same fashion, it seems very wasteful to have to design two subtly different schemes to handle the two nearly-identical sets of requirements. So, having written this article without managing to figure the answer for myself, I invite comment (sent to mpalmer@hezmatt.org, and I'll summarise later). How do I tell a user's browser to issue a DELETE or PUT against a URL? Am I being overly idealistic to expect the two access methods to be somewhat comparable? Should I just give up and encode the action I want in my URL, or maybe the parameters to the POST request? Am I even completely misunderstanding REST, and trying to find answers in it that just aren't there?
1. I have some slight qualms about the idea that every possible interaction with any possible system could be modelled using an unlimited noun set and four verbs, but I'm happy to leave that debate alone for the moment, as I don't have anywhere near enough experience to speak intelligently, and I have more basic problems at the moment anyway. 2. I remember the common story of the website where the 'delete' hyperlinks are regular GET requests, and the first Google spidering of the website causes everything to be deleted, resulting in a very bare database. This is a result I'm keen to avoid. 3. Don't Repeat Yourself -- a phrase that should be tattooed on the inside of every developer's eyelids.

Next.

Previous.