|
--Paul McNett, Earthling Home |
XML |
|
Meme Spotted on Alex Martelli's Blog - Nov 14, 2008 17:34
* Grab the nearest book.
* Open it to page 56.
* Find the fifth sentence.
* Post the text of the sentence in your journal along with these
instructions.
* Don't dig for your favorite book, the cool book, or the
intellectual one: pick the CLOSEST.
Right now, I'm in the hospital ICU clearing some blood clots in my left
leg, and the only book around is the one I've been trying to get into:
Neil Stephenson's Anathem.
Funny, I was about to start Chapter 2, which begins on page 55. So,
Page 56, fifth sentence:
But to announce auts and other events, our team of ringers
would disengage that mechanism and ring changes, or
permutations of tones.
© 2008 Paul McNett [/Personal] permanent link |
|
|
Revert Trac Spam Comments and Ticket Changes - Jul 12, 2007 14:14 Trac is an excellent issue tracker and wiki used by many open source projects for efficient collaboration. We use it in our Dabo project, to keep track of open issues, provide a place for people to browse our source code, and the like. One of the nicest features is the simplicity of it all, including the ticket submission process. You don't need to log in to submit a new ticket or to comment on an existing one. However, that openness is also a vulnerability, and spammers are starting to experiment with posting crap comments in our Trac instances. I don't really want to lock down the submission of tickets to only authenticated users, because that just doesn't jive with my worldview that the Internet should be open, loving, and caring. :) Not to mention efficient and non-annoying. So, I tweaked the spam filters a bit. But more importantly, I wrote a little utility to help weed out changes that should never have been applied. I call the tool trac_revert_ticket_changes.py. You put it in your filesystem alonside your Trac instances, and then issue commands like: # Review changes within last 10 days: trac_revert_ticket_changes.py -n 10 dabo # Review explicit tickets: trac_revert_ticket_changes.py dabo 1002 1004 For each ticket in the set, the most recent change will be shown, and you'll be asked if you want to revert the change. Answer no, and we'll move on to the next ticket. Answer yes, and the change will be reverted, and you'll get to choose to revert the next most recent change. I was able to remove about 30 spammed ticket changes within just a few minutes with this tool, and figured others may benefit from it, too. Download from here: http://paulmcnett.com/pkm_software/trac_revert_ticket_changes.py Enjoy! © 2007 Paul McNett [/Computing/Python] permanent link |
|
|
Email Signatures Of The Times - May 17, 2007 22:59 So I called my accountant today, to ask if he could sign a form for me so I could become a CACert assurer - no biggie, right? All I needed was to find two notaries, bank managers, or accountants to vouch that I am who I say I am. And I got a simple, reasonable answer. Well, okay. I didn't call, I emailed. You think that if I had called, I would have gotten a lengthy diatribe about who the call was intended for, and what the potential tax implications were, and instructions to destroy the record of the call if I wasn't who I said I was?? Sheesh! Where I come from, having an email signature greater than 4 lines is sacrilege. I don't think I've ever clocked in more than 3, and I'm pretty gosh-darned important, aren't I? Aren't I? :) The sig. clocks in at *42 lines*, versus 4 lines for the actual message. The phone call would have involved some friendly chit-chat, but the email had me hit over the head with legal bullshit. No wonder Mother Earth is in danger: we keep wasting bytes like this and we'll drown in rising sea levels of our own making! (Note to lawyers and accountants: I'm *joking*. Lighten up, will you?) Not to mention the public ip address from the Windows workstation, and the choice of email client. Outlook Express? Wasn't that banned by Homeland Security back in 2002? :) Check it out, Sid (names obfuscated to protect the innocent): """ Return-Path: <_______@blhhcpa.com> X-Original-To: p@ulmcnett.com Delivered-To: paul@paulmcnett.com Received: from localhost (localhost [127.0.0.1]) by mail.paulmcnett.com (Postfix) with ESMTP id 9313971005B for © 2007 Paul McNett [/Computing] permanent link |
|
|
MacBook, Please Stay Awake When Your Lid Closes: A Proposal For Apple - Mar 23, 2007 11:12 A few weeks back I purchased a black MacBook 2GB model, and I'm hooked. This is the best computer I've ever owned, bar none. And mostly, it does what it should do. However, there is one major annoyance: The friggin' computer always wants to go to sleep by merely closing the lid!. I've spent more time than I care to admit trying to futz with the preferences, grepping source code, and googling around for answers. I even called AppleCare and opened a ticket, but the response was basically: "Apple designed it this way, live with it, trust us we are smarter than you." Ok, why do I want this so badly? 1) When I want to relocate down the hall, I want to close the lid, tuck the computer under my arm, and gather my water bottle and other things to carry in my hands. Having to walk with the screen open gives me less cargo room, and makes it more likely that I'll drop the computer on the way. Putting the computer to sleep only to have to wake it in a minute sucks, because I may have missed some IRC messages, and iTunes has now disconnected me from my internet radio site and now I have to reconnect. 2) When it is time to change the battery, I want to plug in the A/C, close the lid, turn the computer over, replace the battery, and get back to work as soon as possible. Having to deal with waking up from sleep after this 20-second battery-change procedure is, frankly, frustrating. Okay, there are other reasons, such as wanting my computer to stay awake while compiling a program, while I stuff my computer in my backpack, get on my bike, and ride downtown to the Main Street Bistro, but this use-case probably borders on why Apple hasn't given us the ability to set our MacBooks to stay awake in the first place. Why Apple Won't Give us a no-sleep-on-lid-closed Feature I believe the major reason has to do with the apparent fact that much of the cooling system relies on a free-flow of air around the keys in the keyboard and out into the room. When the lid is closed, the potential of heat buildup causing damage to the LCD, not to mention CPU, increases. Therefore (if my assumption is correct), I actually agree with Apple that they can't just allow the lid to shut and the computer to stay awake, as that would result in lawsuits, recalls, and public humiliation, and Apple just won't have that. Plus, if people could use their laptops to run server processes uninterrupted, why would they need XServe? My Proposed Solution Allow for my 2 use-cases, which involve the computer staying awake for a very short period of time with the lid closed. Apple, you've presumably done the testing already: what is the maximum time the lid can stay closed when the computer is awake and doing lots of processing? Take 3/4 of that number (in other words, if 12 minutes is the danger limit, make it 8 minutes), and then give us a preference to "Keep Computer Awake for x minutes" after lid is closed. Default that preference to 0, of course, but allow us to set it up to that limit. I'd be a happy camper, because I wouldn't feel like I'm fighting someone else's idea of elegance. Oh, and while I'm ranting: why the !^%#^# is there no available external battery charger? © 2007 Paul McNett [/Computing] permanent link |
|
|
Still Waiting... - Feb 10, 2007 14:41 I have my music collection on a raid mirror in my G4, total size of about half a terabyte. I noticed my system running really slow, so I finally decided to swap the system drive and reinstall OS X Tiger. When I started the install on the new drive, I heard my mirrored music drives active, so I started disk utility and got a message that the raid mirror was rebuilding, and that it would be about 2 hours. 45 minutes later, it still said it would be about 2 hours. A little bit after that, it said "about 1 hour, 45 minutes". Well, I didn't really want to install OS X knowing that the RAID rebuilding was happening under the covers, so I went to sleep, and woke up when it said "about a minute remaining". As I watched, it flipped from: Estimated time left in rebuild: 1 minute to: Estimated time left in rebuild: 1193046 hours. © 2007 Paul McNett [/Computing] permanent link |
|
|
We've Released Dabo 0.7, and I'm wearing a red sheet - Nov 16, 2006 20:19
© 2006 Paul McNett [/Personal] permanent link |
|
|
Couldn't Vote No on California Proposition 1A - Nov 07, 2006 12:27 This is just a quick note, as my baby is crying in the other room. I wanted to get out publicly - somewhere - that both of the electronic voting booths in my district in San Benito County (R.O. Hardin School in Hollister) acted irregularly for not presenting the option to vote 'No' on Proposition 1A. The precinct officer canceled out my vote (I think, because he just unselected all my entered votes and I believe he followed through with the vote. He assured me that my vote wouldn't be counted twice, however). They had me vote on paper using a ballpoint pen instead. I was only one of two voters there, so I wasn't able to observe whether they offered the electronic voting machine or insisted on paper ballots from that point forward. A technician was called in, who verified the problem, but as far as I know at least one of the two machines was left online, as they wanted to see if it happened again to the next person. This, after getting verbal confirmation from the voter using that machine that the option to vote "no" was absent there, too. I took a really poor picture of my voting booth with my cellphone, before I was told that cameras are not allowed. I post it here if it is of any use in future investigations. © 2006 Paul McNett [/Politics] permanent link |
|
|
Stupid Dialog From Kerio Mail Server - Oct 05, 2006 22:41 I just did a runaround with Kerio Mailserver. I thought I'd be smart and upgrade from 6.1.4 to 6.2.2, so I did the download, used alien to convert the rpm to deb, and installed the new version, and restarted the mail server. Of course, it wasn't as easy as that, because they renamed the package from kerio-mailserver to kerio-kms, but the short version is that my mail server was down for over 20 minutes because -- surprise! -- my license for 6.1 doesn't cover 6.2, and so the kerio mailserver services were disabled. I tried going to the kerio website to purchase a newer license, but lo and behold that option is gone, replaced with a message "please contact one of our partner resellers to purchase an upgrade." Well, I'm sitting here with a disabled mail server, after hours, staring at a list of resellers that mostly give out email addresses and phone numbers instead of actual web addresses, just knowing it will be a couple days before I actually have the needed license in my possession. I went through the entire list and only one site out of about 20 had an actual online store. However, in order to see the available products to buy I had to first email them to get a login. Oooh what a delicious waste of time! So, after re-downloading 6.1.4 and reinstalling it, I think I won't upgrade after all. And I'll post a dialog that strikes me as completely stupid, and not just because of the grammar error: the program wants me to downgrade my installed Qt library to the *exact version* required by the kerio admin program. I guess they figured Linux could use some of Window's DLL Hell? © 2006 Paul McNett [/Computing] permanent link |
|
|
HOWTO: Enable Domain Literals With Kerio Mail Server - May 22, 2006 18:07 Here is how you can configure your Kerio mailserver to accept domain literals: 1) Open up kadmin, go to Domains, select your domain, click 'edit'. In the aliases tab, add an entry for your public ip address. This entry field won't let you enter the square brackets; don't worry about this yet, just enter the ip address. 2) Close the kadmin screen and apply your changes. 3) Using your command shell, navigate to your Kerio Mailserver application directory. Default for Linux is /opt/kerio/mailserver - I'm not sure about Windows or Mac. 4) Edit the file named mailserver.cfg. Search for your ip address alias entry. Make sure you are editing an entry that looks similar to: <listitem> <variable name="Domain">216.139.37.140 <variable name="Type">2 <variable name="Alias">paulmcnett.com Simply change the "Domain" entry to add the square brackets. For example: <listitem> <variable name="Domain">[216.139.37.140] <variable name="Type">2 <variable name="Alias">paulmcnett.com 5) Save the cfg file. 6) Restart Kerio Mailserver. I tested this with Kerio Mailserver 6.1.3, and it is working fine. Until Kerio adds this automatically, at least we have this workaround. © 2006 Paul McNett [/Computing] permanent link |
|
|
Dump AT&T and Join Working Assets - May 16, 2006 07:56 AT&T and several other major long distance providers don't take your privacy seriously. Get even and dump them. Join Working Assets, and support groups like Planned Parenthood, Greenpeace, and Amnesty International every time you pay your phone bill. To sign up (easy), just click here. (I'll get $10 off my bill if you sign up after clicking the above link, so thanks for that!) © 2006 Paul McNett [/Personal] permanent link |
|