Search Results: "bod"

15 February 2006

Erich Schubert: Are there good starters guides?

Dear Lazyweb,
I recently noticed that some people e.g. don't know the "mailq" command, which is fairly standard for email servers to print the current mail queue. Which is an essential command if you want to debug your mailserver. So I was looking for a good tutorial to recommend on "running" an email server, and had a hard time finding one... there is a large list of online books, but as far as I can tell, they don't even teach such basic things such as mailq, do they (I of course only checked those I could read online). Nor could I find this information easily accessible on the Postfix homepage. But there are a couple of things you should know at least where to find. Including showing whats stuck in your mail queue, why, and how to remove these messages. I guess this applies to many many things. Everbody assumes the basics to be clear, and just talks about how to pick certain configuration options...

Edd Dumbill: XTech schedule coming soon

The selections for XTech are now almost complete. Over the weekend I drafted the schedule, which is under review right now by the programme committee. Every year I say how hard a job this is because of the high standard of the submissions, and every year it seems to get harder. This year I found it almost heartbreaking to have to exclude some talks. Number crunching To illustrate, here are some statistics about the proposals and their selection. We received 177 submissions. Each of these abstracts were peer reviewed by at least 4 or 5 reviewers, from a panel of nearly 90 reviewers. From the graded results I shortlisted 105 proposals. From that 105 I have had to fill 68 schedule slots, which meant about a third of the shortlisted proposals had to be excluded. Almost every single one of these would have been a great talk. They were so good, in fact, that I'm working on some ideas for adding to the schedule. Notifications to accepted speakers will be sent at the beginning of next week. Rejection notices will follow a little while later. We don't want to send these out until we're sure we've done everything we can to accommodate as many quality presentations as possible. I am enormously grateful to everyone who submitted a proposal. I can't wait to get the acceptance notices sent out so we can publish the schedule. I can however reveal some early news about pre-conference tutorials. We'll have day-long tutorials on: Ruby on Rails; XSLT 2.0, XPath 2.0 & XQuery; and a Web 2.0 tech bootcamp. Also there'll be half-day tutorials on microformats, and XForms & XHTML 2.0. Finally, it's worth noting that registration is now open. Also, if you work for somebody who would be interested in sponsoring the conference, do get in touch.

14 February 2006

Sergio Talens-Oliag: Shell Scripts Frontend Tool

Well, today I've started to upload things related to the CDDT code to Debian. My first upload is a simple package that has been splitted from the current CDDT runtime code, as it is useful by itself. I've called it SSFT, the initials of Shell Scripts Frontend Tool. It is a shell function library that includes functions to display messages and get data from the user; the functions use zenity, dialog or plain text to do their work, depending on the value of the SSFT_FRONTEND variable; the idea was inspired by the debconf frontends, but uses only shell code with standard utilities (with the exception of the optional zenity and dialog utilities and the use of gettext.sh from gettext to support L10N). I've tested the current code against a lot of Bourne Shell compatible shells, including posh (that one made me remove the use of the local built in and rename the variables to _l_ as a prefix), so it should work more or less OK on any modern Unix. I don't know if anybody but me will use the library, if anyone tries it and finds a bug please report it to the SSFT project or the BTS (well, that will need a little bit of waiting, but I suppose that no one will try the package until it gets into the archive).

13 February 2006

Kenshi Muto: HCL: bit thought

My pleasure, liw :-) And I'm very glad to see Roland and Daniel are inspired from my HCL and are trying to make more brilliant things. My hcl system is stored in my personal SVN. Anybody can see and take components from http://kmuto.jp/svn/hcl/trunk. Although I've extra time to develop at this time, I'd like to improve codes in the future, at least around updating existent data.

12 February 2006

Andres Seco Hernandez: Too much work may be no good


Sometimes i ask me about the sense of too much work, too many pending tasks and getting involved in more things i can do. Perhaps i am the type of people that can not say "no" when somebody ask me to do something.

I think there are two type of people from the point of view of creativity and contribution of contents , providers and consumers, servers and clients ;-). Some of my friends are only consumers, they do not want to provide anything of this type of things (documents, images, events, aplications, theathre, etc.), they even think that near people that is creating and contributing are going to be in trouble and are going to have a lot of work that will prevent to have time to dedicate it to they themselves. And perhaps they are right.

But somebody will have it to do.

Since i can remember, i have been in the side of the "servers". In the theater of the school, in the choir of the church, developing aplications, coordinating free network projects, etc.

And i know i have lost a lot of experiences in the side of the "clients". I am surprised of the amount of things that I am losing myself not being an Internet "consumer" or a theater "consumer" or a computer "consumer".

But somebody will have it to do.

Have a good day.

11 February 2006

Brett Parker: What's going on... we're now being scammed on ICQ too...

So, we've all had the e-mails promising us millions... and we all know they're a scam... it appears that now we have ICQ people trying to solicit money...
10:47 <@root> Message from unknown ICQ handle 204857947:
10:47 <@root> Hello, i have a problem, i have a rent debt for apartment where i 
              live, and i cant fix it. Im trying to find somebody who will 
              understand my situation and will agree to help me with money what i 
              need. Maybe you can help ?
(yes, I use bitlbee, yes this is a message from someone that I don't know, yes it just seemed weird to me...)

Wouter Verhelst: Bureaucracy.

I'm typing this blog entry on the train. Opposite of me is a gentleman of approximately 35 years old, who's got a paper lying on the table between us. That paper would seem to be approximately 20 pages thick, and is entitled...

Technical Specification

Sandbag With a header above that which tells me that it's from some government body to do with the "Civiele Bescherming", an agency which is mainly used when something happens in the country that could threaten the citizenship at large (natural disasters such as storms or flooding, large-scale electrical failure, water poisoning, etc). It's obvious why the civiele bescherming needs to have sandbags. It's quite funny to see how they need to write twenty-something pages on what a sandbag should look like. After all, it's just a bag filled with sand...

10 February 2006

Gerfried Fuchs: PHP mail() Considered Harmful

I know for myself that picking up unparsed userdata is teh evil. But we also all know that the usual webpage and mailer script coder isn't thinking. And to my knowledge the php mail() function is the only one that perverted to parse the headers additional to an explicit given recipient list for additional recipients. Yes, you read right. Often enough people use things like mail("myown@addre.ss", "subject", $body, "From: $_POST['name'] <$_POST['email']>") without thinking about it, because, there is this extra to field anyway. Right?
Wrong! SPAMers will come and send things like email="some@jo.ke\nBcc: my@sp.am, list@is.bigg.er, than@you.rs". People that put up such webmail scripts usually don't notice it anyway, they just delete the spam right ahead, not noticing that it was an abuse of their form. And the ISP has to deal with having to get the system out of the blacklists again.... At least none of the hosts on which customers are able to put up such scripts directly affect our own mail system, it's just the shared hosts they use... Still, deadly annoying. And then people are claiming that such misfeatures aren't a problem in PHP but in the coders? If it would at least be documented in the description of the function, but if one can claim it that it is it's at most just very vague hinted...

Amaya Rodrigo: On Health and Humor

I turned 30 recently. For the last five years I have felt my body change (sometimes in undesirable ways, ie. first wrinkles, gravity in full effect), and I have also neglected my health like I would live forever. I have not gone to the doctor since 2000. Haven't got my blood tested for that long, nothing at all. I felt well, so who cared?

I don't know why I went to the doctor last week. Maybe because I am not comfortable with playing this health lottery game anymore. He wanted blood tests and the results are a bit worrying. Everything is within the average ranges, but it is a bit fucked up to be a vegetarian and still have high cholesterol. I have lost from 10 to 15 Kg since last May, I do moderate activity most weekends (skating). I walk home from work (25 min, slow pace) most days. But this sheet of paper reads:

Cholesterol (HDL)...0,56 g/L [0,50 - 1,20 for women] -> This is good cholesterol, and it is low.
Cholesterol (LDL)...1,27 g/L [1,3 max]...............-> This is bad cholesterol, and it is high.
Triglycerides.......1,42 g/L [0,40-1,50].............-> Also high!
Iron..................35 g/L [40-150]................-> Ground for anemia?
Glucose..............0,91 g/L [0,65-1,10].............-> Ground for diabetes?

And no surprise: I have low iron levels. And high glucose. This means I (still) eat too much fat and sugar. I can hear jbailey whisper to me: "more green, more green!", which was what he told me when I showed my dish to him for advice, in the first vegetarian meal I had when I decided to "switch". I have not been eating enough green.

So, why is this happening? I thought I was drinking too much whole milk with my coffee, but there seems to be a much better and funnier explanation: 29 Common Reasons Why Your Vegetarian Diet Isn't Working. I love it :)

9 February 2006

Ian Murdock: Release early, release often is no panacea

Joel Spolsky: “Listen, I know that everybody is saying that the cool thing to do these days is Ship Early and Often, but when you ship half-baked ajax calendars that don’t do much and then get Scoble to go nuts about how great they are, well, you’re going to have a lot of people like me checking it out and realizing that, for example, no thought whatsoever has gone into printing, which is fine, it’s a 1.0 release, but you know what? I’m not going to look at 30 Boxes again — I’ve spent enough time evaluating it. G’bye. I’ve talked about this before — it’s the Marimba phenomenon — when you get premature publicity, lots of people check out your thing, and it’s not done yet, so now most of the people that tried your thing think it’s lame, and now you have two problems: your thing is lame and everybody knows it.” “Release early, release often” is a strategy that works because it allows for incremental improvement—you don’t have these “big bang” releases every few years where you try to anticipate what your users will want, because your users are telling you what they want every step of the way while the thing is coming together. That said, Joel makes some very good points, and companies following the “release early, release often” formula would do well to consider them. In short, for “release early, release often” not to backfire, its proponents need to do a better job differentiating between the users that want to actively participate in the development of a new product and the users that are simply looking to solve a problem, because that latter group is ultimately going to be disappointed if the thing isn’t fully baked.

8 February 2006

Wouter Verhelst: Heh

Last weekend, I posted something about my new waffle iron. That post contained two links, both of which had non-working URLs. It's quite... funny that they lived there for half a week with nobody noticing. Oh well. In any case, I found out in the mean time that the iron which was part of the old device does, indeed, fit on the new one. It required removing a lot of grease and other residu, but in the end I did get it off. First thing I did it once that had happened: put it in the dishwasher. No, you don't want the details on that one. Trust me. Yuck.

Andrew Pollock: [tech] Feed fixing finale

As I mentioned yesterday, I noted that Blosxom was misbehaving with RSS feeds where a flavour was used to customise the character set of the feed. Tonight I made time to look under the hood, and found:
      if ($content_type =~ m \Wxml$ )  
        # Escape <, >, and &, and to produce valid RSS
        my %escape = ('<'=>'&lt;', '>'=>'&gt;', '&'=>'&amp;', '"'=>'&quot;');  
        my $escape_re  = join ' ' => keys %escape;
        $title =~ s/($escape_re)/$escape $1 /g;
        $body =~ s/($escape_re)/$escape $1 /g;
       
Which I promptly changed to
      if ($content_type =~ m \Wxml(; charset=.*)?$ )  
        # Escape <, >, and &, and to produce valid RSS
        my %escape = ('<'=>'&lt;', '>'=>'&gt;', '&'=>'&amp;', '"'=>'&quot;');  
        my $escape_re  = join ' ' => keys %escape;
        $title =~ s/($escape_re)/$escape $1 /g;
        $body =~ s/($escape_re)/$escape $1 /g;
       
and now I can have my cake and eat it: UTF-8 encoded RSS feeds.

6 February 2006

Uwe Hermann: HOWTO: Encrypted USB thumb drives and (USB) hard disks using loop-AES

Yet another thing that has been on my TODO list for quite a while: encrypted USB thumb drives and/or encrypted external USB hard drives. I have finally tried this over the weekend using loop-AES. This is very useful for securing your USB thumb drive contents in case you lose it or it gets stolen. Also, I use an external USB hard drive for backups (previously unencrypted). This is encryped now, too. Here's a quick HOWTO:
  1. Get the loop-AES kernel patches, apply them, enable "AES encrypted loop device support" in "Device Drivers -> Block Devices -> Loopback device support", and recompile the kernel.
    I also enabled "loop encryption key scrubbing support" as it seems to promise higher security (can anybody confirm that?).
    If you're using the Debian kernel packages, apt-get install loop-aes-2.6-686 (or a similar package) should suffice.
  2. Get a loop-aes enabled losetup, mount etc.:
    apt-get install loop-aes-utils
  3. Securely delete the target partition: shred -n 1 -v /dev/sda3.
    Use -n 25 or higher if you want more security and have a few days time to wait for the thing to finish...
  4. Setup the loopback device: losetup -e aes256 -C 3 -S 'seed' /dev/loop0 /dev/sda3.
    Notes:
    • I used AES-256 as cipher, but others are possible.
    • The -C 3 means "run hashed password through 3000 iterations of AES-256 before using it for loop encryption. This consumes lots of CPU cycles at loop setup/mount time but not thereafter." (see losetup(8)). This is supposed to be more secure.
    • Using -S 'seed' (replace "seed" with a secret string like "g7sN4" or something) should make brute force attacks a bit harder. Don't forget the seed!
    • You'll be asked for a passphrase > 20 characters. Choose a good one. Don't forget it!
  5. Create the filesystem (I used ext3): mke2fs -j /dev/loop0
  6. Detach the loopback device: losetup -d /dev/loop0
  7. Add this to /etc/fstab:
    /dev/sda3 /mnt/crypted_sda3 ext3 noauto,loop=/dev/loop0,encryption=AES256,itercountk=3 0 0
  8. Mount the (now encrypted) partition by supplying the seed and entering the chosen password: mount -o pseed=seed /mnt/crypted_sda3
  9. Done. You can now copy stuff to /mnt/crypted_sda3 which will be encrypted automatically.
For a more detailed guide read the Encrypted-Root-Filesystem-HOWTO. A performance comparison of different ciphers is available, but in general I didn't notice too much of a slow-down because of the encryption...

Steve Kemp: When the man comes around

SCO
I spent the weekend finding discovering several new ways to hate SCO Unixware. Almost everything on these systems is a symlink. Even such files as /etc/passwd:
$ ls -l /etc/passwd
lrwxrwxrwx   1 root     root          38 Jan 27 13:44 /etc/passwd ->
 /var/opt/K/SCO/Unix/5.0.7Hw/etc/passwd
Needless to say if you manage to screw up these symbolic links then fixing it is painful. (At one point I resorted to using tar to archive a working system’s directories, then unpacking it over a broken installation.) So a busy weekend full of being in the office.
Debian
In happier news I played around with webcam stuff, after somebody posted a nice guide to using Motion. I now have a webcam upon my desk which records video when something moves in front of it, and otherwise does nothing. A few test movies seem to work nicely (no audio) and I shared one with a friend - although no feedback yet. (I need to make sure the codec is playable upon Windows ..) I also updated the polls upon the Debian Admin site, so they contain date information about when they were posted. Feel free to suggest a new poll topic! The final thing I did over the weekend was put the finishing touches towards a new release of xen-tools. This contains a minor fix for networking under Xen 3.0.1.

Benjamin Mako Hill: Memories From Winters Past

I don't think I ever blogged about the time I saw an ambulance being jump-started by another ambulance.
/copyrighteous/images/ambulance_jumpstart-small.png
I laughed at the time but the situation made me very uneasy. Nobody wants to see something they depend upon in crucial moments in such a pathetic state. In the future, I think they should do these sort of jump-starts indoors. Of course, it did answer one question. An ambulance's ambulance is, it turns out, just another ambulance.

5 February 2006

Andreas Metzler: exim4.conf for *.debian.org II

Following up on the previous entry I have now got a exim4.conf that has survived basic testing. I have checked exim4 -bt for all major routers and found and fixed a fair number of bugs in the initial version. Any further changes I would (like to) make would result in different behavior than the current exim v3 setup, so I am not wasting time on that until somebody from debian-admin says they want me to. Conservative suggestions include copying the "deny local_parts = funky characters" settings from the default configuration, disabling domain-literals (or at least accepting only incoming postmaster@[local.ip] instead of only outgoing), and perhaps recipient verification.

4 February 2006

Julien Blache: Upcoming update for the Digi AccelePort drivers

I got a mail this week asking for an update of the Digi AccelePort drivers packages for Debian, which I maintain out of Debian due to license restrictions on the firmware files (if somebody from Digi reads this post, please get in touch with me so we can fix this — you only need to explicitly grant permission for redistribution). It seems there’s a new (beta?) version out which builds on kernels >= 2.6.13. If you need to use the drivers on such a kernel, unpack dgap-source.tar.gz, do the changes to the code, and repack it. Then use module-assistant to build the modules as usual and it’ll work just fine. I’d happily provide the patch, but my development machine holding my spare AccelePort Xem died yesterday evening, and I can’t get it to work reliably for more than about 30 minutes. I’ll package the newest version of the drivers as soon as I’ll have a replacement for this machine, which should happen RSN. The packages can be found on http://debian.technologeek.org PS: planet readers, sorry for the flood, my last post was my first post since I upgraded to WP 2.0. It seems to be unavoidable, crappy blogging software.

3 February 2006

Sergio Talens-Oliag: Tired & Burn Out

I'm starting to be really tired, probably burn out, with my current work. I believe I'm doing a good work, but when it seems that the people in charge does not know what they want nor care about what is being done and the once supposed co-workers (now luckily transformed into customers) loose absolutely your respect after insulting your intelligence and, from my point of view, calumniate yourself directly (sending an e-mail) or indirectly (saying nothing about the message), things start to look bad. I understand that we don't live in Wonderland, but it is difficult for me to work on a complex technical project like the development and deployment of a distribution without a real management:
  • There are no written requirements. Well, that's untrue, there were some high level things, but nobody told me to use them as a base for anything and now that I've looked at some of them I believe that they can be used as a starting point, never as the final requirements.
  • We have deadlines, but for me they are only dates. Until very recently I've only had very high level ideas of what was expected, but there was no place to look into a written document and know which were the priorities. Luckily that is not my task, but it makes you angry to see a lot of people telling you that you should have known and making it look like all is under your responsibility, when it is not (or I would have asked for a much higher salary).
  • There is no real QA work being done, once the problem was that we didn't had the tools (IMHO a simple mailing list could have been enough for a while), but now that we have them nobody uses them until you force it.
Oh, well, I know I need a salary to eat and when you find one that looks is going to be the work, is sad to see that it is not; that is the second time it happens to me, the lack of interest on doing a good work of others, my real problem with sincerity (I usually say what I think, and people is not used to listen to it, I can be wrong, but at least I'm not going behind the back of anybody, as others do) and the climate it generates tells me that I have to move on, there's nothing to win and much to loose, at least on the personal side. I don't know how long I'll stay on my current work (I'm not going to leave without a replacement, I have a family), but I'm going to look at the job offers again and to send CV's out. Wish me luck. Ah, BTW, if someone has a decent offer for someone with experience in systems administration, programming in general or Debian development in particular please send me an email ... ;)

Remi Vanicat: Planet Debian

Now, my blog is syndicated into debian planet. Everybody will know that I haven’t much to say…

Lars Wirzenius: Rant: Secrets of Successful Programmers

The Seven Secrets of Successful Programmers article was on reddit today. I found it to be simplistic enough to be inane. Also not particularly good advice in all parts. For example, the article says that "[m]ost compilers will strip the comments from the executable program". Strictly speakig this is true: there is probably one or two compilers out there that retain comments in the binary code they put out. They're so rare, though, that it is quite utterly pointless to say anything about it. Anyone who needs to be told that comments don't impact performance or executable code size needs a course in basic programming, not secrets about being successful. "A good indication that you have got the level of comment right: could someone understand what your program does if all but the comments were removed?" I disagree with this: better advice would be "could someone understand the code if you remove all the comments?" It's the code that gets executed and so it is the code that should be used to communicate and not comments, except when code can't be made clear enough. For example: if you write a wrapper around malloc to check that it succeeds, a comment explaining why it is acceptable to just kill the application on failure would be good, and very hard to express with code. "In particular any code branch (an IF..THEN...ELSE construction) and any code repetition (a WHILE...END WHILE construction) should be indented so that it is easy to see where they start and end." Gee, that surely is a big secret that only successful programmers know about. "Expect the unexpected and deal with it. Before you open a file, make sure that the file is present." That's not a good way to deal with it. It's a race condition just waiting to blow in your face. The correct way is to attempt opening a file and then deal with an error if it failed. "Name your variables to aid readability. - - - The key is to be consistent and to be as informative as possible." Packing as much information as possible into a variable name can be a hindrance to readability. Too many people read advice like this given in well-meaning but misguided articles and then go on to name loop variables nElementIndex. The loop gets more readable if you name your loop variable just plain i. The loop variable is not significant enough to warrant all the attention from a reader that a long name requires. A short name in this context makes it much faster and easier to glance at the loop and see what it is doing. Obviously names with scopes longer than a (fairly short) loop need to be more descriptive. Here's my seven secrets of being a successful programmer.
  1. Learn to worship the goddess of simplicity. KISS a lot. This is much harder than it seems: it's more difficult to be simple and good than to be complicated and adequate. Simplicity starts with the specification of the program or system, and needs to permeate the design, and the implementation, at every step.
  2. Pick good tools, and learn them well. You need to know many tools, and know them well, or you'll waste time on doing unecessary things. Tools include software programs, books, algorithms, data structures, and mental models. Learn editors, programming languages, Unix command line tools, and so on. Learn at least three different paradigms for programming.
  3. Learn how to learn and keep on learning. New stuff is invented daily, and you need to keep up with it, or you'll end up as useless as a COBOL programmer doing a web shop.
  4. Develop debugging muscles. This is perhaps the hardest thing to learn, since no-body seems to be teaching it. You'll be spending most of your time doing it.
  5. Learn how to do testing well. Unit tests, test driven development, black-box testing, integration testing, regression testing, test automation, ... There's lots of ways of reducing the likelyhood that code escapes your hands with bugs still in it. It will inevitably happen, but if you know what you do, you can be better than most everyone else. The industry standard for commercial, proprietary code seems to be around 20 to 30 bugs per thousand lines of code; the Linux kernel has less than 1, and is known as a cesspool of bug-infested muck, so surely you can do better?
  6. Learn to write prose well. Then write a lot. If you can't write a README, a manual page, or the specification for your next work project, who's going to know about your great programming?
  7. Oh, you need to learn how to program well as well, and that isn't so easy either. Knowing how to program well merely isn't enough to be a successful programmer.

Next.

Previous.