The (probable) importance of accurate Content-Types
As a result of the MSN search spider going crazy , Iam actually paying some attention to our web server logs for achange. This led to me looking up which URLs are responsible for thelargest amounts of bandwidth used.
To my surprise, the six largest bandwidth sources were some CD-ROMimages in ISO format that we happen to have lying around, the oldestone dating back to 2002. In the last week alone , there were eightrequests totaling 3.5 gigabytes of transfers. Who
Excluding buggy RPMs from a yum repository
We mirror the Fedora Core 4 updates area, and we use yum to installthings from it, and Red Hat recently released an extremely unsuitable(for us) update to xorg-x11 (as recounted in MoreFC4Problems ). So weneeded to take those buggy RPMs out of circulation and keep them out.
Fortunately this turns out to be pretty easy, because not all RPMs ina directory have to be in the repository metadata that yum uses. This let us continue to pull a full mirror from
What vendor updates are pending on your Linux system?
One of those routine system management tasks these days ischecking to make sure that I'm up to date on vendor security releasesand other updates. And when I'm not up to date, I generally want toknow what's out of date; being out of date on diff is one thing,being out of date on a kernel or glibc is quite another. (For astart, I probably want to test the kernel a bit more before pushing itinto our local update queue.)
Since
More Fedora Core 4 problems with X
Important update : the buggy RPMs have been superseded. See the end.
You may remember back to FC4FirstIrritations , where I talked aboutseveral X problems. Well, Red Hat managed to outdo itself recently, aswe discovered the hard way: their latest update to the xorg-x11 packages, 6.8.2-37.FC4.48.1 (released September 16th or so) nowcauses almost all of our workstations to explode.
Not literally exploded, but
Two Python import tricks
Here's an extreme example of import and namespace trickery, drawnfrom the standard Python ftplib module:
try: import SOCKS socket = SOCKS del SOCKS from socket import getfqdn socket.getfqdn = getfqdn del getfqdnexcept ImportError: import socket
(linebreaks added for clarity)
Modules are objects in Python, so a module's name binding can bemanipulated like anything else. This leads to the two things that ftplib is doing here.
First, the ftplib module would like to use the SOCKS module if itexists and otherwise
Some words of wisdom for free webmail providers
Vernon Schryver, in news.admin.net-abuse.email:
The buck always stops or is at least duplicated at the SMTP client.It does not matter to rational spam targets whether the operators ofa spam relay are paid for their services or forward spam as acharity.
(From Message-ID Thomas Boutell has just startedserious Python work and wound up noticing (in the middle of here ): What's not so painless is discovering that "function" must bedefined like this before I can call it. Wait a minute. That's pretty standard behavior for C, yeah. But thisain't 1973. Perl and Java are both bright enough to read the rest ofyour code and find the function, allowing you to place functions inyour source code where they feel right It's Saturday evening again, so it's time for the weekly spam roundup. This week we received 12,500 email messages from 221 different IPaddresses. This is about a typical email volume (perhaps a bit down)and a typical number of distinct IP addresses that we accept emailfrom. (Most of the traffic comes from a few mailing lists and thecampus email system.) Our SMTP server handled 49,600 actual sessions from 5,20 Selected headers of a just-received advance fee fraud spam: One of the most 'interesting' issues in most garbage collectedlanguages is memory usage analysis: figuring out why your program isusing so much memory, and where. Often this winds up enmeshed intricky issues of object lifetime, retained references, and so on. One of the first steps in this sort of work is simply figuring outwhat live objects you have in memory and what they are. Jonathan Ellis recently ran into this issue and wound up asking an interesting question: how do you get a list ofall
Function definition order in Python
Weekly spam summary on September 17th, 2005
Demon Internet joins the webmail hall of shame
Received: from lon1-mail-2.visp.demon.net ([193.195.70.5]) by
Getting a list of all objects in Python
Menu