Search Results: "ag"

29 April 2008

Kartik Mistry: 2 Months, 1 Day


.. I have not seen my son. .. I have not done any shopping (other than some junk food and beer). .. I have not watch any movie in theater. .. I have not stop thinking about ‘BLR Sucks’.

Daniel Leidert: Sorry

I’m sorry for any inconvenience you had yesterday or today trying to access my web services. But I had to perform some long standing maintenance tasks. The service is now running again. If you still observe problems, please don’t hesitate to tell me.

Miriam Ruiz: MAGIC: More Active Girls In Computing

Ira Pramanick talks in her weblog about a mentorship program targeted towards middle and high school girls to foster in them a positive attitude towards computing. The program is called MAGIC, which stands for More Active Girls In Computing, and tries to address the issue of the low number of girls entering the computing and high tech world. As they say, it is a serious issue caused not by then lack of talent, but due to a bunch of discouraging factors that exist in our culture and society. Right now, women represent only about 28% of the technology workforce. I don’t know if a mentorship program dedicated to these girls would be enough to increase the number of women participating in the technology workforce, but it will probably help to improve the situation. It would be nice to import the project model into Spanish speaking countries if it’s successful. The Mentor Qualification Process is quite strange anyway. It might be that we europeans have cultural differences, but I find some of the questions there quite disturbing, like “Are you willing to be finger-printed and screened?”. I don’t exactly know what they might want such a sensitive data for.

Craig Sanders: poll: package my vhosting system for debian?

There was a discussion today on the LUV-main mailing list about apache virtual hosting. Someone suggested mod_vhost_alias which is OK for a simple solution, but pretty limited. IMO, there are much better ways of doing it. Specifically, generating config fragments for each virtual host. I wrote such a system years ago, and have always thought “I should package it up for debian”. There’s a moderate amount of work involved in doing so, and probably an even larger amount of support work afterwards. Worst of all, I’d have to write - or con someone else into writing - documentation for it (it’s easy enough to use that you can be SHOWN how to use it in 10 minutes, but that isn’t good enough for a distributed package). I guess the point of this blog post is to find out if there’s sufficient interest to make it worth the effort. Feel free to comment or email me about it. If anyone wants to look at the code, i can tar it up easily enough, and even write some simple/minimalist instructions. anyway, here’s (a slightly edited version of) what i posted to LUV-main: Preamble I looked into apache’s mod_vhost stuff years ago, but IMO it’s just too inflexible and limited to be of much use. It’s fine if ALL your vhosts are identical…but not if you need different settings on some or all of them. As soon as you need a custom setting for one vhost, you have to step outside mod_vhost_alias and roll-your-own anyway. which means you now have two different methods of configuring your vhosts. Instead, I’ve used my own vhosting system for years (long before mod_vhost), on dozens of servers…the largest of which had over 500 vhosts on it - the biggest problem was the enormous number of file handles the apache processes needed for log files. After tweaking the kernel file-max etc limits, it actually worked without problem but I always intended to rewrite that bit of it to use a log splitter daemon, perhaps vlogger or similar. Unfortunately, I a) left that job before I had time to implement it, and b) never did figure out a good way to handle the error logs because apache doesn’t prefix the vhost name to ErrorLog output like it does for CustomLog outout (best compromise was to just have one combined error log rather than one per vhost….most web programmers/website operators never look at the error logs anyway. Personally, I find it invaluable, most people don’t even seem to think of looking at it) Synopsis of Operation 1. Creating a new vhost is a 3-step operation:
  1. create a user (with adduser), optionally with a postgres or mysql account of the same name.
  2. edit /etc/virtuals/virtual-hosts.conf, copy/paste/edit one line
  3. run “make”
In step 2, hardly anything needs to be changed from one vhost to another - in the most common case, just the account’s login name, and the domain name. There are a number of different “flags” that can be set for each vhost in this file - ssl, cgi, mason, htdig, webcheck, aliases, group, samba, canonify (use mod_rewrite to redirect back to the site’s canonical name), and more. The Makefile runs perl scripts to generate the apache config fragment (and other config fragments - e.g. for htdig and samba), add/remove any IP addresses if needed (usually not, with name-based vhosts), set up the home directory structure, copy in any sample files (e.g. html forms and images for htdig), and reloads apache. It also checks in any changes to svn (or RCS. easily modified to use other revision control systems). On machines which are part of a load-balanced setup, it even ssh-es into other machines in the array, runs “svn update” and “make” to ensure that the vhost is operational on the other machines too. Finally, it concatenates all the active config fragments into one large file because apache reloads a LOT faster if it doesn’t have to load hundreds of little config files. 2. Removing a vhost is as simple as editing virtual-hosts.conf and commenting out or deleting the line, then running make again. virtual-hosts.conf The virtual-hosts.conf file is extremely useful. It gives me a single authoritative source of all the relevant details about EVERY vhost running on a machine. These details can be used by other scripts (e.g. cron jobs to run webalizer, analog, htdig indexing, webcheck, etc; cgi scripts to display a list of vhosts on the machine with clickable links, and more). This single config file makes the whole system easily extensible: write a new script to parse the config file, and loop through each entry, performing some relevant operation. e.g. run webalizer for every vhost, dumping the output under ~/public_html/LOGS/ (with optional .htaccess file to control access). Adding optional generation of samba shares for each vhost was quite easy. In theory, it wouldn’t be hard to put a GUI or web front-end on to it. Oddly enough, i’ve never bothered. And I’m not inclined to bother now (but wouldn’t object if anyone else did) Database? no, thanks I’ve occasionally thought about putting this config data into a database, but the benefits just aren’t anywhere near good enough to outweigh vi and all the benefits of text file configuration (especially comments!) Packaging? And, of course, one of these days, i should package it all up for debian. I’ve been saying that for years, and just haven’t got around to it. It wouldn’t take a huge amount of work to do so, there are only a few small things i need to do to automate the installation, things that i just do by hand in a few minutes when installing on a new box. Before packaging it, I also want to automate the adduser part of the process, as well as creation of postgres or mysql accounts. Most importantly, I ought to separate the code from the templates in the config fragment generator scripts, so that the local sysadmin can edit them without having to edit the scripts….OK, all up not a tiny job but not particularly big either….just big enough to be ignored on my TODO list for years. I’d definitely have to change the config file format from the current one-line (colon separated fields) to using a .ini style file. I’ve wanted to do that for a while but have inertially-resisted it so far because the one-line format is so convenient…unfortunately, I’ve added so many flags and features over the years that it’s seriously ugly - probably scary to someone who doesn’t know it already (i.e. anyone outside of the set of “me + a handful of other people”). I estimate this would take about a days worth of hacking I’d also take the opportunity to clean up some of the cruft :-) Essential Design Criteria BTW, one crucial design criteria for my system is that it should *NEVER* under any circumstances overwrite any hand-edited changes. This is implemented in a number of ways. First, it takes an md5sum of each vhost’s config fragment when it generates it. If/when the script is run again, it only re-generates the config fragment if the md5sum hasn’t changed. If it has changed, it generates the updated fragment as “.new” for manual merging if required. Secondly, when generating conf fragments it looks for specially named files in a directory for extra stuff to add before the <VirtualHost> line, between the <VirtualHost>…</VirtualHost> lines, and/or after the </VirtualHost> line. This is to provide another location to put custom changes for each vhost while still retaining the ability to have improvements/new features to the script automatically applied to existing vhosts. The reason for this is that I utterly loathe and despise allegedly “easy” configuration tools that blow away custom hand-edited changes. I hate them so much that this was THE major incentive for developing my own vhosting system. In Use I’ve been using my system for over 10 years now. It grew out of earlier bits and pieces, but the current incarnation has been working since 1999, with the occasional new feature or update (e.g. to add support for apache2 as well as apache1, and minor changes to adapt to changes in debian’s apache packaging). There are also a handful of ISPs and several small businesses around Australia running it because they’ve hired me to set up their web servers. Finally… My vhosting system isn’t a system for people who are scared of or dislike command-lines or text-file configs. It’s a system for people who love them, but want an easy way to automate a dull, repetitive task. Such automation is easy for CLI tools, and next to impossible for web/GUI tools. Syndicated from Craig Sanders' Errata: Miscellaneous Thoughts poll: package my vhosting system for debian?

28 April 2008

Joerg Jaspert: Irssi - join multiple channels, output in one channel

Something pretty helpful in irssi is the capability to get output from multiple channels into one window. While thats totally insane for normal channels, it is really nice if you have a split channel situation like Some people might like to read the stuff in two windows, I don't. Irssi to the rescue. Join #something-admin like you always do and then type /wjoin #something-nagios. Or, if you love to type more (or for some reason do not have the wjoin alias defined), type /join -window #something-nagios Net effect: You have one window that contains two channels. You can switch between them using Ctrl-X. Stuff said in the currently not selected channel will be shown as coming from <nick:#otherchannel> foo. Comments: 3

Joey Hess: quotes and reflections

The Bandwidth of Code:
Hell is Other People's Code is, perhaps, another way of saying that code is a terrible way to communicate with other human beings. Foreign code inspires a mixture of apprehension, anger and anxiety precisely because the bandwidth capacity of written code is so horrifying small. Enormous amounts of context, nuance, philosophy, history -- in short, knowledge -- is lost forever each time we try to translate our ideas and desires into program code. And this tremendous loss of knowledge looks to be unavoidable.
Since even Knuth has given up on literate programming as a general solution to this kind of problem, let me throw another possibility out there: Version control. It's not perfect, but you can get into someone's head by reading their mistakes and false tries in their version control history. This is why rebasing is bad. But also why it appeals to so many developers, who have no desire to let you inside their head. Steve Yegge Steve is very quotable. From Xemacs is dead, Long live Xemacs:
XEmacs should drop out of the race At this point it's becoming painful to watch. GNU Emacs is getting all the superdelegates. That warmonger VIM is sitting back and laughing at us. But XEmacs just won't quit!
And has some deep insights into the mind of an emacs user. From the Pinocchio Problem:
Viewed from a radical, yet possibly defensible perspective, a reboot is a murder.
And some things that ring true (or at least provide another excuse for not learning haskell properly). Also from the Pinocchio Problem:
There's nothing wrong with static type systems. You just have to realize that when you use them, you're building hardware, not software.
Best of all they're in these enormous long blog-rants of chapter length that discuss a topic in depth, then go out the other side. Great fun, even if you disagree with him. sad end SFGate reports:
Reiser is guilty of first-degree murder, the jury has found. He killed Nina with premeditation and deliberation and now faces 25 years to life in prison. Pressed to elaborate, Du Bois said, "I'm sure he negatively impressed the jurors."
Hans also mostly negatively impressed me the one time I met him (and the one time I emailed him). And the whole business of hiring Russian programmers to slave away at a filesystem with your name on it has always struck me as shady and disenfranchising. But, after reading Rick's excellent summaries of every day of the trial, I still have no idea if Reiser killed his wife, and indeed no clue if she's dead at all, or instead back in Russia with the children.

David Pashley: User Administration under PostgreSQL 8.3

A while ago I published an article on PostgreSQL user administration. Typically, things have changed since I wrote that article. I thought I'd detail a couple of the differences since I wrote that guide. The major difference is that you now have roles rather than users and you use the CREATE ROLE command to create them instead of CREATE USER, although the latter command still works. The command line options for the createuser command have changed as a result too. Before superuser and the ability to create new users were the same thing. Now you can give a role permissions to create new roles without giving them superuser powers. The options are now -s for superuser and -S for not superuser, -d to allow them to create databases and -D to disallow database creation and -r to allow the new role to create other roles and -R to prevent them. for a standard user you probably want somethig like:
createuser -S -D -R -P user
The -P makes createuser ask you for a password for the new role. You can find out more information about the new role system in PostgreSQL in the user management and CREATE ROLE reference sections of the manual.
Read Comments (1)

Lior Kaplan: Why does Ubuntu puts Firefox transalation in gnome s language pack ? (2)


A day after presenting the question, seems like a user got a problem I didn’t thought of. He didn’t like Firefox 3 and decided to install Firefox 2 instead. The problem is that he now has Firefox 2 and the translation for Firefox 3 (from the GNOME package). Same problem occurs with the Hebrew interface… The solution is to manually delete the Firefox 3 files, and than install the mozilla-firefox-locale-he-il package. Don’t forget that this should be done on every update of the language-pack-gnome-he-base package (or any other language than Hebrew)! So who’s in favor of splitting the Firefox 3 translation to another package ?

Neil Williams: estron developments

I've got most of the build system / packaging stuff done for estron now. There's a basic Yelp manual pending completion of the Estron GNOME application, there are some refreshed screenshots, updated the website CSS and added an icon, updated Glade files using Gtk stock items for the buttons.

http://estron.alioth.debian.org/

It's grown into yet more packages from the one source:

ii estron 0.7.0-1 data-centric development interpreter for GNOME
ii estron-doc 0.7.0-1 data-centric development interpreter (help files)
ii estron-gnome 0.7.0-1 data-centric development environment for GNOME
ii libestron-dbg 0.7.0-1 estron debugging library
ii libestron-dbi-driver 0.7.0-1 DBI driver for estron
ii libestron-dev 0.7.0-1 estron development interface
ii libestron-doc 0.7.0-1 libestron development documentation
ii libestron-odbc-driver 0.7.0-1 ODBC driver for estron
ii libestron-pg-driver 0.7.0-1 PostgreSQL driver for estron
ii libestron0 0.7.0-1 data-centric interface support library

Only the docs are of any particular size - the interpreter is tiny. (estron-gnome is simply an estron file and companion glade file, run by the estron interpreter so it's Architecture: all like all estron applications.)

Lots to do still - upgrading the Gtk code, adding new features to the interpreter to fully support the development environment and finally putting some details into the user manual (estron-doc) - but at least the package builds easily and cleanly. Once I have a working estron-gnome setup, I'll put the POT file out for translation too (around 120 messages so far).

There isn't any need for debconf and things, this will use existing database configuration tools like mergeant - that needs work too because current estron example files have hardcoded database connection strings.

Gunnar Wolf: Closed numbers are cool

I like them. And if there is such a thing, I hope they carry good luck with them - Not that I believe in good luck, but anyway - Yesterday was a very good day, in quite many fronts. And it's nice to make a nice, closed leap on so many bases:
>> puts [was,am].map  age  [98,111,100,120].map  s  sprintf "%# s.chr ", age .join(', ') 
11111, 37, 31, 1f
100000, 40, 32, 20
And just for coolness sake: It gets even better when looking at coincidence with my father - at least for the next couple of months:
>>puts [f_was, f_is].map  age  [98,111,100,120].map  s  sprintf "%# s.chr ", age .join(', ') 
111111, 77, 63, 3f
1000000, 100, 64, 40
So, in most useful systems, we are both in a very nice and closed number. Sadly, I can no longer say that five bits should be enough for anybody.

Stefano Zacchiroli: pts testing transitions

PTS bit of the day: show testing transitions Tiny teeny PTS bit of the day: the PTS now provides information about testing transitions. If your package is part of an ongoing transition its uploads to unstable will be blocked by DAK. The PTS informs you about that and points to extra information and upload alternatives. At the time of writing a couple of examples are: aubio and dballe. Though now that we have such powerful tools, Debian will be so fast at completing the python2.5 transition that you won't have time to see the new PTS messages ;-)

Holger Levsen: working firewire kernels for sid updated

Just a quick note: I've updated my sid kernel repository (the one which the only change of enabling the old firewire stack along with the new one) to 2.6.24-6, the old instructions still apply.

Unfortunatly my pegasos2 died after building that package in march, so from now on I will only provide packages for amd64 and i386. But you can use my sources and trivially rebuild them :-)

27 April 2008

Joerg Jaspert: Movable Type

As I wrote some time ago, I did consider switching to a new blog software, the OpenSource Edition of MovableType. I’ve actually done that some 6 weeks ago and must say - it is one browser based application I am actually happy with for myself. (Good god, I must be really ill). I know that about all the things that changed in my blog, compared to my old blosxom based version, are actually doable with blosxom too. For some reasons I just never got around to doing it. Anyways, some things I still remember that changed: What it not has is the ability to use a version control system for your posts. Of course not, its a web based editor which stores its data in a database. Oh well, lets stop here, basically - I just like it. :) Comments: 0

Joerg Jaspert: ByeBye britney, no more testing

Guess I got your attention with that title? :) Anyways, britney is no longer. And with her testing died too. Ok, not really, but todays work was hand over all of testing and put it where it should have been for years - in the hands of the release team. For those not following the “inner” workings of stuff: As the above is surely not nice, especially as Anthony (and as such the one in ftpmaster who really fully knew britney) left the ftpmaster group, all of the code managing testing now lives with the release team. They now just prepare a file in a special format and then tell us (via a ssh trigger) to read that in. Which simply sets testing to the new state. This new way of doing things has multiple advantages: The above action did need surprisingly few code changes in dak. It basically was Comments: 8

Lior Kaplan: Why does Ubuntu puts Firefox transalation in gnome s language pack ?


The other day, Tomer from Mozilla Israel contacted me to update me that the Israeli Ubuntu community changes the Firefox translation and doesn’t contribute the changes back. We sorted out the translation process with the Ubuntu people who were very open for comments. After that, Tomer mentioned he sees the changed translation in Hardy. I searched for the mozilla-firefox-locale-he-il with the right version, but it seems that package is still for Firefox 2. I checked the firefox-3.0 package itself to make sure the translations aren’t there, and indeed it only contains the en_US locale. Tomer told me he still sees the Hebrew translation but “dpkg -l grep firefox” doesn’t give up any other related packages. Tomer started to search his file system for the missing files, and I started to check out packages’ contents trough packages.ubuntu.com (well, I don’t run Ubuntu…). The files were found, and it seems they are part of the language-pack-gnome-he-base package. This sound very odd to me:
  1. Why link between GNOME and Firefox? (and while doing so, leaving out Tunderbird)
  2. What about people running Kubuntu? They probably won’t have GNOME installed.
  3. The package description says that it doesn’t include the Mozilla translations:
    Please note that you should install language-support-he to get full support for this language (spell checkers, OpenOffice and Mozilla locale packages, etc.).
  4. This change creates an broken upgrade path so it doesn’t support people upgrading from Firefox 2 to Firefox 3 in Ubuntu keeping their locale, as the firefox locale package doesn’t get updated, and doesn’t pull the new package.
  5. These packages were introduced about 1 week before the Hardy release. I would expect such a change be done in an earlier stage of the release…
I thought about starting to report bugs about a few of these issues, but it would be better to first hear what other people think about this.

MJ Ray: Computer things that puzzle me today

About gobolinux
I can suspend my laptop and it restarts happily enough in X, but playing video results in a strange green square. I've found that starting and killing another X server (like X :1, wait for the grey mesh and then zap it) fixes the problem and I can switch back to my original :0 X and play video again. I wonder if these notes on X suspend and video BIOS by Matthew Garrett explain it.
About debian
Why on earth did someone change the .changes format so swiftly and why does a change that breaks a common upload process (build in a VM, sign on a stable system) only warrant a -devel-announce paragraph under the headline Misc Development News (#6)? "Small news" - my foot!

Francois Marier: Disabling the GMail spam filter and handling it yourself using SpamAssassin

I've been using GMail ever since they decided to allow users to download their mail using POP. I was happy reading my email as usual in mutt. The only problem was that I had to log onto the website once in a while to clear out my spam folder and fish out the false positives.

However, as the amount of spam I receive daily started growing exponentially (in part thanks to my involvement in Debian), I became more and more dissatisfied with this solution. I had to login several times a day just to keep the levels of spam down to a manageable level. I tried emailing the GMail support team a few times without success.

The solution came just as I was looking at switching to a different email provider: IMAP access.

Using fetchmail, I can now download my received and sent mail using POP and then download (and purge) the contents of my spam folder. Here are the relevant lines of my ~/.fetchmailrc:
poll pop.gmail.com protocol pop3 user "fmarier@gmail.com" is "francois" password "" fetchall ssl
poll imap.gmail.com protocol imap user "fmarier@gmail.com" is "francois" password "" folder "[Gmail]/Spam" fetchall ssl
I can then run all of my mail through my own SpamAssassin filter (to which I added these excellent custom rules) and sort my mail in one of three folders:
This is done using procmail with the following bit in my ~/.procmailrc:
# Use spamassassin to check for spam
# (only check messages 400kB so that it doesn't choke) :0fw:/etc/mail/spamc.lock
* 409600
/usr/bin/spamc

# Throw away messages with a score of > 12.0
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*
/dev/null

:0:
* ^X-Spam-Status: Yes
/home/francois/mail/spam

Kai Hendry: New Wordpress maintainer

Drawing domestic bliss Since my DAM rejection earlier this year I’ve been trying to cut down on Debian work. Unsurprisingly (and perhaps surprisingly to some) I fealt a bit emotionally drained and demotivated from defending myself and working with debian security. Lately I have been working with new maintainer Andrea De Iacovo and I am very pleased with his work on Wordpress. Wordpress takes most of my time, like the beautiful day of Saturday yesterday. :) Unfortunately Andrea has had problems finding a sponsor, though a Wordpress security release expedited matters and got Nico Golde’s upload powers into action. :) So if you’re a DD and you use Wordpress, please help out Andrea. Before I get unsubscribed from Debian Planet, I thought I should pimp my: Both based on ikiwiki. ;) Anyway, I am still around of course. Met some great people in the Debian community and sadly some pretty pedantic unfriendly ones too. Final suggestion for DDs: Revoke your GPG keys more often and go to less key signing parties. :P

Jose Luis Rivas Contreras: Now libtorrent works in NSLU2!

I hope someone will upload it to experimental by the moment and see how works, in the meanwhile you can find it here. Goes to experimental because is the unstable branch of libtorrent/rtorrent.Want the debs? Then do:
$ dget http://debian.ghostbar.ath.cx/libtorrent/0.12.1-1/libtorrent_0.12.1-1.dsc
$ dpkg-source -x libtorrent_0.12.1-1.dsc
$ cd libtorrent-0.12.1; dpkg-buildpackage -rfakeroot
You'll end with two debs, enjoy them :)

Julien Danjou: Extending pango markup attributes

I'm currently facing a problem I just can't solve, involving pango and GMarkup's glib API. I currently use pango markup in awesome, but I'd like to extend it to support more attributes. Pango markup uses GMarkup API to parse the formatted string. The problem is that there's no way to extend what is parsed, and if a tag is unknown in the pango parser, it will just fail. I've tried to implement my own parser with GMarkup, but When I encounter a tag I don't know but that pango does, I just can't pass it to the pango parser function for this tag, since this pango function is private. There was a try to extends the markup parser 2 years ago, but the patch was crappy since it exposed the private elements of pango markup parsing, which is the bad way to solve this. So for now, I've no idea how to do this. I was first using the bad parsing method with string.h's functions which I for now reverted, because I do not really like that.

Next.

Previous.