Search Results: "mak"

10 December 2007

Lior Kaplan: Load Balancing Jboss with Apache and mod_jk

Apache’s mod_jk has nice load balancing features. They work quite well for me with Jboss. The basic configuration is to install Jboss on several machines and have an Apache to load balance them. But while the load balancing is good, the Apache machine becomes a single point of failure. I was asked how to overcome that. The main principle I want keep is the “keep it simple, stupid” principle. Doing a round robin DNS between two machines is nice, but doesn’t really provides real the load balancing (as it always does 50/50). It also doesn’t check for the the load before it does the balancing. Other options like using mod_backhand and mod_proxy_balancer all leave me with the same single point of failure problem. That’s why I prefer to use an active/passive cluster to make sure Apache can move to another server in case of a failure. The IP address the users get is a virtual (or floating) IP, which can “jump” between the cluster nodes. There are several ways to create that cluster, but that’s probably for another more general post. I’ll be happy to hear other opinions…

Steve Kemp: don't go breaking my heart

If you're interested in working upon your CV/Resume, as Otavio Salvador was recently, then I'd highly recommend the xml-resume-library. It allows you to write your address, previous jobs, and skills as XML then generate PDF, HTML, and plain text format documents via a simple Makefile. It won't help with clueless agencies that mandate the use of Microsoft Word Documents for submission, so they can butcher your submission and "earn" their fee(s), but otherwise it rocks.

Steve Kemp: to let the insects in

My migration to mercurial is now complete. I've completed the last step, which was the migration of all the $foo-commits mailing lists. It is at times like this that I remember two things: Right now I'm using ecartis for my mailing lists, primarily because it isn't mailman. (Long story). For making archives of mbox files I'm using hypermail. The latter I intend to change as soon as I can find something else to use. It isn't attractive, but it is in the Debian archive and seems reliable. Since I was changing things around already I've centralised the list-archive making, and started using the haschanged tool to avoid rebuilding the archives i there are no new posts. That works nicely.

Steve Kemp: We are the champions my friend

My tool to query apache logfiles via SQL seems suprisingly popular. Just as a recap the process goes like this: Now it is possible to save and load the SQLite database, so that you don't need to reparse the apache logs each time, that gives a nice speed increase for non-changing files. By tonight I'll have aliases working for queries so you can bookmark them:
alias refers SELECT distinct(referer) FROM logs
Then in the future the 'refers' command will be available and will run the named query. Neat. Now that I'm comfortable with SQL queries it just seems so natural, easy, and right to query logfiles this way. I guess that makes me strange.

Steve Kemp: You're making me live

Is there an existing system which will allow me to query Apache logfiles via an SQL string? (Without importing into a database first). I've found the perl library SQL::YASL - but that has a couple of omissions which mean it isn't ideal for my task: Still it did allow me to write a simple shell which works nicely for simple cases:
SQL>LOAD /home/skx/hg/engaging/logs/access.log;
SQL>select path,size from requests where size > 10000;
path size 
/css/default.css 13813 
/js/prototype.js 71261 
/js/effects.js 37872 
/js/dragdrop.js 30645 
/js/controls.js 28980 
/js/slider.js 10403 
/view/messages 15447 
/view/messages 15447 
/recent/messages 25378 
It does mandate the use of a "WHERE" clause, but that was easily fixed with "WHERE 1=1". If I could just have support for count I could do near realtime interesting things... Then again maybe I should just log directly and not worry about it. I certainly don't want to create my own SQL engine .. it just seems that Perl doesn't have a suitable library already made which is a bit of a shocker!

Steve Kemp: Open your eyes, look up to the skies and see

If you have a (public) revision controlled ~/bin/, or bash/shell scripts I'd love to see them. Feel free to post links to your repositories as comments. I'm certain there are some great tools and utilities out there with I could be using. Right now the only external thing I'm using is Martin Krafft's pub script. I don't use it often, but it is very neat and handy when I do want it. (Something that I'd never have considered writing myself, which suggests there are many more gems I'm missing!) In other news my migration to mercurial is going extremely well. With only minimal downtime. Downtime for services really comes about because I have several websites which are powered entirely with a CVS checkout of remote repositories, so the process looks a little like this:

Simon Richter: IDL and automake

I'm thinking about hacking a wrapper around the compiler (or libtool) that handles compiling IDL files and linking against the proxy/stub code. Automake would have to be taught that when an IDL file is listed in the sources of a program or library, the compiler call needs to be replaced (thus doubling the number of variants again (to eight: C/C++, simple/libtool and with/without IDL), which adds a certain amount of complexity (but hey, we're talking about automake), and, more difficult, we'd have to handle source files that live outside the build tree (or make people use small IDL files that include the files that define the necessary interfaces -- but that is ugly).

Norbert Tretkowski: MySQL Community vs. Enterprise Edition

Last week I wrote about CVE-2007-5925, a vulnerability in MySQL 5.0.51 (current version of the MySQL Community Edition), which is fixed in 5.0.52 (current version of the MySQL Enterprise Edition, released on the same day as 5.0.51) and was known for more than three weeks when 5.0.51 got released. 5.0.51 is also affected by CVE-2007-6303 and CVE-2007-6304, both as well already fixed in 5.0.52. While preparing 5.0.51-1 (not yet uploaded to unstable) for Debian, I stumbled upon another problem.

The testsuite (which fails to run as root in 5.0.51 and earlier, also fixed in 5.0.52) fails during the mysqlcheck test. This bug is fixed in 5.0.52 as well, but it took me a while to find the problem in 5.0.51 and create a patch. I still need to find and fix the problem with 5.0.51 when running the testsuite as root.

Conclusion: Switching to the Enterprise Edition in Debian would make my life much easier, at least when comparing 5.0.51 and 5.0.52. I'll think about it...

Norbert Tretkowski: MySQL Community vs. Enterprise release

Last week I wrote about a known vulnerability in MySQL 5.0.51 (the current Community release), which is fixed in 5.0.52 (the current Enterprise release, which was released on the same day as 5.0.51) and was known for more than three weeks when 5.0.51 was released. While preparing 5.0.51-1 (not yet uploaded to unstable) for Debian, I stumbled upon another problem. The testsuite (which fails to run as root in 5.0.51 and earlier, also fixed in 5.0.52) failed during mysqlcheck test.

This bug is fixed in 5.0.52 as well, but it took me a while to find the problem in 5.0.51 and create a patch. I still need to find and fix the above mentioned problem when running the testsuite as root.

Conclusion: Switching to the Enterprise release in Debian would make my life much easier, at least when comparing 5.0.51 and 5.0.52. I'll think about it...

9 December 2007

Evan Prodromou: 18 Frimaire CCXVI

Chris Messina wrote an interesting post on his blog about his OpenID Shitlist, Hitlist and Wishlist for 2008. (I'm going to briefly try to remember if using the word "shit" is cause for alarm on Planet Debian, and then I'm going to ignore the problem and move on.) I think it's a good post and it really identifies some of the key players that are helping and failing in the OpenID space. I got a shout-out for Wikitravel and for the MediaWiki OpenID extension, which yay for me. I think Chris was probably a little unfair about Wikimedia's lack of support. The site is moving very slowly towards a unified login for all its wikis, which is a really difficult task to make happen. OpenID is slated for installation some time after that, so it's going to be a while. But I hope that it will be useful for Wikipedians. My main impression from this blog post, however, is that OpenID's day in the sun might be over. That's not a bad thing -- usually the hard work gets done after the cameras are turned off. Zealots like myself tend to think that if only the world knew about our latest-greatest idea or technology, they'd fall right into line and adopt it immediately. But my experience has been that things work a lot slower than that, and I'd guess that OpenID is probably going to have a similar adoption curve. In thinking about opening up the Social Web, it's probably good to compare the opening of the Web Web in the mid-1990s. At the time, most Americans who were "online" were subscribed to a proprietary network like AOL, Compuserve, Delphi or MSN. (I'm not sure how things were in the rest of the world... Similar? Worse?) Many of these services either walled their users from the Internet entirely, or made it a one-way interaction. AOLers could read stuff from the rest of the Web, for example, but others couldn't see what AOL folks were doing. That system looked impenetrable; after all, AOL was paying millions of dollars to make great content and manage forums and the like, and why would they give that away to Internet leeches for free? But eventually it came apart because the Web became more interesting than the on-line services. (I personally think the watershed was the Ate my balls meme, but others might differ. I just kind of picture hundreds of thousands of AOLers calling up technical support asking to see the Mr. T pictures, and that's what finally broke things down.) Today, on-line service "walled gardens" are a negligible part of the on-line world -- those that still exist are more or less big ISPs. I think that the parallel with the Social Web is probably pretty apt. Today, Google, Facebook and Digg are reluctant to open up their identity silos to a distributed social Web. Their main asset today is their collection of identities and the relationships between them -- why give away the crown jewels? My guess is that it's not going to be until a mature, standardized and distributed Social Web exists outside the walls of the big social-networking players that we'll see them really willing to sit down at the table and come to the party. Of course, by that time, it'll be a moot point. But that just means there's a nice big fat market for somebody smart to take advantage of. tags:

Raphael Geissert: Updated: Homepage as a control field debian/control stats

Here are the updated stats about the usage of the Homepage field, comparing with those from my previous post

Using the same procedure as in my previous post (but this time with and without sort -u):

Our first number (# of package using the Homepage field in unstable/main/1386): 1028
Previous number: 335
Difference: 693
Without sort -u: 2441
Meaning: 2.37% of the packages have the same Homepage

Our second number (# of package using the pseudo-Homepage field in unstable/main/1386): 2400
Previous number: 2716
Difference: 316
Without sort -u: 3886
Meaning: 1.62% of the packages have the same pseudo-Homepage field

And the third number (# of source packages in main): 11950

So, if we make those number percentages:


That's a good progress :)
It would be nice if the stats provided by Zack included some percentages and a nice graphic :D

But let's do something different:
egrep -i "^[ \t]+(Website Home Webpage url link):" < Packages wc -l

Number of packages using something other than Homepage: 142
Using sort -u: 76
Meaning: 1.87% of the packages have the same non standard pseudo-field

Comparing this number with the total number of source packages in main:

Jeff Licquia: This Is Not An Oops.

Carver County, Minnesota, is in big trouble. (via buzz.mn)
Eric Mattson was not surprised that the small vacant lot he bought last year near the shores of Lake Waconia was increasing in value. What shocked him was the $189 million market value the Carver County assessor’s office came up with for the 55- by 80-foot lot, making it the most valuable property in Waconia and possibly the county.
Of the resulting $2.5 million tax windfall, about $900,000 had already been spent by the time Mattson got the bill and came in to complain. They’re now looking at spending cuts and new taxes to pay for the shortfall.
“This is not an ‘oops.’ This is a major error that affects an awful lot of people,” said Mark Lundgren, director of the Carver County division that oversees the assessor’s office.
So how could someone make such an egregious error?
Lundgren said the trouble began in August when a clerk went into Mattson’s file to change the designation of the property, at 233 Lake St. E., from homestead to non-homestead to reflect its change in status after its sale.
The clerk filled in the $18,900 proposed valuation, but then mistakenly hit the key to exit the program. The computer added four zeros to fill out the nine numerical spaces required by the software, thus indicating the value was $189,000,000.
So many thing come to mind, most of which are probably too snarky. But a few observations come to mind:

8 December 2007

Holger Levsen: awesome reading

When I was a kid, I often started to read a book and didn't do anything until I finished it. This is what I did yesterday until this morning again... :-) Nowadays I do this rarely, but if it's happens, I have a lot of fun in a fictional world.

Now that I finished the book I decided it's a good time to give awesome a try. And unlike the last time, which was last week in a plane, I now also have access to the documentation, which makes using it a lot easier :)

I think I like awesome already, after just five minutes. Even if there are three things I'm currently missing: runniny arbituary commands with F3, ssh with F4 and the cute cat on the awesome webpage. I think it's totally unawesome that it's gone!!!

And for those wondering what awesome is: it allows me to say "good-bye ion" :)

Adeodato Sim : mlocate, a better locate

Looking purely by chance at the front package of Freshmeat the other day, I discovered mlocate, a new implementation of locate whose main feature is that it reuses the existing updatedb database when creating a new one, which makes updatedb faster and less intensive on the hard drive. (I suppose it stores an mtime of each directory, and only re-reads directory contents if the filesystem is newer.) As with slocate, mlocate’s updatedb is meant to be run as root, and the created database is mode 0640 root:mlocate, with the locate binary being setgid mlocate then. After some discussion in debian-devel, it was decided that mlocate was suitable for Priority: standard, once findutils’ locate was split out to a separate pakcage. So, give it a go.

Raphael Geissert: DeBaBaReTools: finally something functional...

...but a lot of code still needs to be written.

Let's give a try to the last changes...

processIncoming
$ VERBOSE=1 processIncoming
processIncoming v0.1 started.
Processing /home/raphael/Deb/repository/pub/UploadQueue/php-timezonedb_2007.10-1_source.changes...
mv'ing "/home/raphael/Deb/repository/pub/UploadQueue/php-timezonedb_2007.10-1.diff.gz" to "/home/raphael/Deb/repository/incoming/accepted/"
mv'ing "/home/raphael/Deb/repository/pub/UploadQueue/php-timezonedb_2007.10-1.dsc" to "/home/raphael/Deb/repository/incoming/accepted/"
mv'ing "/home/raphael/Deb/repository/pub/UploadQueue/php-timezonedb_2007.10-1_source.changes" to "/home/raphael/Deb/repository/incoming/accepted/"
mv'ing "/home/raphael/Deb/repository/pub/UploadQueue/php-timezonedb_2007.10.orig.tar.gz" to "/home/raphael/Deb/repository/incoming/accepted/"
processIncoming v0.1 stopped.


needsBuild
$ VERBOSE=1 needsBuild
needsBuild v0.2 started.
Architectures: i386 amd64 all
Now processing /home/raphael/Deb/repository/incoming/accepted/php-timezonedb_2007.10-1_source.changes
Adding php-timezonedb to be built in i386 for the sid distribution
Adding php-timezonedb to be built in amd64 for the sid distribution
mv'ing "/home/raphael/Deb/repository/incoming/accepted/php-timezonedb_2007.10-1.dsc" to "/home/raphael/Deb/repository/incoming"
mv'ing "/home/raphael/Deb/repository/incoming/accepted/php-timezonedb_2007.10.orig.tar.gz" to "/home/raphael/Deb/repository/incoming"
mv'ing "/home/raphael/Deb/repository/incoming/accepted/php-timezonedb_2007.10-1.diff.gz" to "/home/raphael/Deb/repository/incoming"
mv'ing "/home/raphael/Deb/repository/incoming/accepted/php-timezonedb_2007.10-1_source.changes" to "/home/raphael/Deb/repository/incoming"
needsBuild v0.2 stopped.


wannaBuild
$ VERBOSE=1 wannaBuild
wannaBuild v0.1 started.
Fetching list of packages to be built for unstable
Fetching source package php-timezonedb v2007.10-1
Use of uninitialized value in string eq at /usr/bin/dget line 377.
cat: /home/raphael/Deb/repository/build/data/needsBuild.unstable: No such file or directory
Starting build backend...
Executing sudo pbuilder --update --basetgz /var/cache/pbuilder/unstable.tgz
Starting build process
Could not find /home/raphael/Deb/repository/build/php-timezonedbx10525/*.changes, build failed
Fetching list of packages to be built for testing
Fetching list of packages to be built for stable
Fetching list of packages to be built for oldstable
wannaBuild v0.1 stopped.

Yikes!
$ c=/home/raphael/Deb/repository/build/php-timezonedbx10525/*.changes; echo $c
/home/raphael/Deb/repository/build/php-timezonedbx10525/php-timezonedb_2007.10-1_i386.changes

wth?:
#!/bin/bash
#... some code
set +f
#... some code
CHANGES=$workingDir/*.changes
#
# Make sure we got something
#
if [ ! -f "$CHANGES" ]; then
Say "\t\tCould not find $CHANGES, build failed"
buildQueue "$ENTRY" "$buildingForArchs" "failed"
continue
fi

no globbing? :(
this works:
#!/bin/bash
#... some code
set +f
#... some code
CHANGES=$workingDir/*.changes
#
# Make sure we got something
#
if [ ! -f $CHANGES ]; then
Say "\t\tCould not find $CHANGES, build failed"
buildQueue "$ENTRY" "$buildingForArchs" "failed"
continue
fi

(note that $CHANGES is not between quotation marks in the functional piece of code)

but how can I get file globbing to make $CHANGES actually store the globbed path? :confused:

7 December 2007

Benjamin Mako Hill: New Antifeatures Article and FSF Members' Bulletin

The FSF's fall members bulletin is out. For it, I spent some time refining the blogpost I recently wrote on antifeatures into an article. I got a whole lot of feedback last time (Thanks!), most of which criticized my choice of examples. I've structured this version around different, and I hope less controversial, examples. Please read the new article and leave comments here, especially if you criticized the old one. The bulletin also includes two pieces introducing a campaign against software patents that the FSF plans to launch early next year and a discussion of the AGPL by Brett Smith. This bulletin hints at what I think are the big issues that the FSF plans to take on next year: software patents, web services, and creative new takes on the free software message that are designed to resonant beyond our historically very technical community of hackers. I'll write more on this in the next week or so. To support this mission, and to receive future copies of the bulletin directly, please consider becoming an associate member today during the FSF's year-end members drive.

Gunnar Wolf: Debian Developers fail Turing tests?

Ok, so two people replied to yesterday's post about triple negations - Dato (by email) and MadCoder. Both, said basically the same thing: false and && true are silly noops. And yes, knowing this, I added them. Why? Clarity... At least having them at the end of a test shows the statement is of conditional nature (and not just another obscure attempt to do $ DEITY -knows-what). They at least look cleaner than a one-line-squashed if block in a makefile. To me, at least ;-)But... If you noticed this post's title, it goes beyond this comment - One of the most benefical effects I noticed when I installed Jaws 0.7 (over 0.6, of course) is that I no longer had the swarms of spambots flooding me - I often had hundreds of comments a day, and nowadays I hardly get any spam. Now, I fail to see what is so strange in my blog's comment forms (it does not even have any obvious Javascript, although it does obfuscate a bit the source of the captcha image). And you are not the first Debian people to complain you cannot post comments to my site. Strangely, few non-Debian people have ever complained.And yes, the spam has stopped, almost completely.So, Debian guys: Are you human?

Julien Blache: pommed v1.13: MacBook3,1 backlight, video switch, bugfix

Pommed v1.13 is out and features a couple of new features and a bugfix for a potentially annoying bug. This release adds support for the MacBook3,1 LCD backlight; turns out the 965GM works pretty much the same way the previous versions did. Following my previous post on the subject, I’ve added the ability to run a script when the video switch button is pressed. The script is run by the frontend, so you need to have either gpomme or wmpomme running; see the documentation in the INSTALL file for details. Feedback on this feature and sample scripts for the different machines are welcome. In v1.11, I moved the beep code from gpomme to pommed, making pommed beep on volume change. Not everybody likes this, so you can now turn that off in the config file (beep = no in the audio section). And, last, the bugfix. Pommed could turn into a CPU hog under certain circumstances; this releases fixes that, and though most systems won’t trigger this bug, you should upgrade if you’re running 1.11 or 1.12.

Jan Wagner: Package updates and others

Since some weeks I’m really busy, private and at work. It’s going into the end of the year and everybody is in hurry. There seems also coming some changes for our family down the road in the future, but more maybe later. Additionally one months ago Santiago Ruano Rinc n did surprisingly turn up as my AM. We started fast, but I got stuck at P&P part 1 with the License comparisons, cause actually I’m so busy at work and with my family, that I can’t concentrate enough late at night, when trying to work on the papers. For example the graphviz license is completely overwhelming me. My hope in the last time was some bigger timeslots at the weekends, but they got smashed by my family and/or work issues. I hope Santiago is not getting annoyed by me and I can find hopefully some free time on holidays or in the first weeks next year. Anyways … Christian Perrier started a review and translation process of ipplans debconf templates by the debian-i18n contributors. The templates was in really bad conditions, most of it was copied over from gallery2 and I did know that they wasn’t so good. Thanks for all your work, when the process is over I’m proud to include your really nice work. Two other packages got updates. php-suhosin got new upstream release after months which fixes the broken perdir/.htaccess support. Unfortunatly I missed the release (cause there is no announcement list and there was no watch file) unless Raphael Geissert did leave a note. I integrated the new VCS and homepage stuff also and formorer did fix some minor issues. So we can hopefully upload now (when it arrives testing) the first package to backport.org and sleep little bit better, when using PHP on stable.
nagios-plugins also got updated. Since Seanius seems really busy (like allways), nobody did really took care of the package. In October it got two CVE which was solved via NMU by the testing-security team, also two new upstream releases where available. So I droped the obsolete patches, integrated new once, did make the new shiny lintian a bit more happy, some minor fixes and queued the package to Seanius. ;)
You can expect both packages on backport.org soon. My other (comaintained) packages will get updated to latest policy and VCS/homepage guidelines in the near future. Actually I’ve to prioritize what to do with the left time slots. :/

Brandon Holtsclaw: Baby Steps

Well the last few days I have updated many things in a lot of different areas, the most noticeable right away is I have updated my website theme, I’m still not 100% happy with it, link colors are a bit off and such but its “good enough” to go live, if your reading this via an RSS feed go check out my main page and drop me some feedback. ( if your really interested in the theme and want it for your own website you can grab it at http://www.imbrandon.com/misc/human_0.5.tar.gz
I’ve released it under GPLv2 , its not perfect but its exactly what I’m running as of this writing. ) The next thing is I changed ISP from Comcast Cable ( ugh ) to Yahoo! Branded AT&T 6M/768k DSL, not only is this faster and cheaper than my old connection, it has the nice side effect of giving me a flickr Pro account free* ( *included in the connection price somehow I’m sure ), that brings us to the next change … I’ve started using my flickr pro account and am loving it, with things like the fuse filesystem FlickrFS and kFlickr makes using flickr easy and painless. Along with that there is this awesome GPL wordpress plugin FAlbum that lets me integrate my Flickr sets into a photoalbum on wordpress very simply and looks great too. Visit my new web album here http://www.imbrandon.com/images/ ( I’ve uploaded just over 100 photos to get it started, I still need to tag and sort most of them ) And last but not least on top of my Ubuntu Core Developer Status, I’ve finally got in contact with a “full-time” sponsor for my contributions in Debian, this will make my application for NM alot smoother with an Advocate ( when I get around to filling out the NM form, LOL ), wish me luck.

Next.

Previous.