|
--Paul McNett, Earthling Home |
XML |
|
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 |
|
|
El Rancho San Benito Survey Problems - May 15, 2006 22:11 Over the past few weeks, I've received a couple emails and a couple actual snail mailings from El Rancho San Benito, asking me to fill out a survey. Each time, I've looked at the survey and have been unable to fill it out, because of problems with the questions. I'll take a few minutes now to publicly respond to the survey, along with some commentary on why the questions are bad. The original letters are printed very nicely (they obviously have an immense marketing budget). In my read-and-response below, all text in italics is as written on the DMB survey. Everything else is my response. El Rancho San Benito Community Outline Please review the following community elements and check "support" or "oppose" for each one. Please provide use with any additional comments you may have at the bottom of this form, or give us a call us at (831) 635-5910. You may also take this survey online at www.elranchosanbenito.com/survey. AFFORDABLE AND MARKET RATE HOMES The El Rancho San Benito outline includes 6,800 homes to be built over an approximately ten year period – including 1,360 homes at below-market rate for qualifying incomes. How can I check "support" or "oppose" on this? I support below-market rate homes in general, but I oppose El Rancho San Benito from the get-go for reasons not asked about. How does this number of below-market rate homes make ERSB special - isn't it mandated that a certain percentage of new development be below-market? The outline includes long-term funding to aid other housing needs of the county including the Emmaus House for battered women and their children, the homeless, farm worker housing and Habitat for Humanity. Again, who would oppose supporting battered women, children, farm workers, and low-income earners? This is a non-question. TRANSPORTATION IMPROVEMENTS All streets within the El Rancho San Benito community will be built and maintained by the community. hmm... the people living in the community will put on the gloves and pave the roads? Just what does "community" mean, when the streets will most certainly be built and maintained by workers that wouldn't be able to afford to live there, even if they happened to qualify for the below-market rate homes? El Rancho San Benito will also include a new, project-financed, four-lane divided parkway through the site – providing a new connection between Highway 25 and Highway 101 at Betabel. This parkway will be useless to Hollister and most of San Benito County, since the Parkway runs SouthWest and not NorthWest. There will be no reason to take it to go North on 101, because 25 offers a more direct route. There will be no reason to take it to go South on 101, because that is what we use 156 through San Juan Bautista for. Great that El Rancho San Benito will have a huge highway running through it, further dividing the ecology and creating runoff, but please don't believe it will benefit the county as a whole! The project will also provide $170 million for additional highway improvements in the county. Such improvements can include the widening of Highway 25. Well, we do need the money, but why do people think we need to widen 25? It seems to be running fast enough and safe enough since the dividers were put in... and most of that $170 million comes from county assessments that we would receive from any development. PUBLIC FACILITIES El Rancho San Benito will donate land and money to provide for all of the community's public facilities - including sheriff, fire, schools and parks - to ensure the community is self–supporting. Interesting twist of the word "donate", when these facilities will directly benefit the residents of El Rancho San Benito and not the county as a whole. But yes, a self-supporting development would seem to be one of the minimum requirements. ECONOMIC REVITALIZATION El Rancho San Benito will create an estimated 1,800 construction related jobs and approximately 8,000 long-term jobs. Wow! 8,000 long term jobs! Let's see, at 6,800 houses, that is more than one new job per house. How does that figure? Are the people living there going to work there? Doing what? Who will pay them? Approximately $3 billion in local economic activity will be generated during the approximately ten year build–out period. "Local" meaning San Benito County? Or, "local" meaning Gilroy's big- box stores? Specifically, how will $3 billion make it into our local economy? SAN BENITO GATEWAY IMPROVEMENTS El Rancho San Benito will fund improvements near Highway 25 - including trails, greenbelts and historical exhibits that celebrate the county's agricultural heritage - to help make this area a welcoming gateway into San Benito County. Eagle Ridge promised public access to their undeveloped property, too. But once they had their houses and golf courses built, they no longer had any incentive to follow through with campaign promises. Why should we believe DMB will do any different? LONG-TERM LEGACY FUND The El Rancho San Benito outline includes the creation of a long-term "Legacy Fund" that will raise approximately $80 million over its first twenty-five years. One-half of the Legacy Fund will be used to provide financial assistance to county residents in need of affordable housing. The other half will be used to purchase and preserve important agricultural lands in San Benito County. This is just one of those things that we'll have to see to believe. I'm thinking most of that will go to administration of the fund, fighting whatever lawsuits, paying taxes, and what-not. Okay, basically, I simply cannot respond to this survey the way it is written because of a few things: One, it provides for very black and white responses to questions that demand thoughtful, considered, and non- absolute responses. The questions assume a premise that this-or-that is true. This is a problem with surveys in general. Two, this really isn't a community outreach as it is marketed to be, because while everyone gets to see the survey questions, only DMB gets to see the responses. Three, if you oppose any of the issues as written, you come off as a heel. Of course I support giving money to people that need it! Of course I support safer highways and more jobs! I have to conclude that the purpose of this survey really isn't to find out how the community feels, but to subtly tell the community how it should feel, to get us in step with DMB and El Rancho San Benito, so that when it comes time to vote, our supervisors will feel apprehensive about voting 'no', voting against all the goodies dangling almost within arm's reach, voting against "community", whatever the definition of that word happens to be at the time. © 2006 Paul McNett [/Politics] permanent link |
|