Archive for the ‘annoying’ Category

User Friendly Form Spam Block

Thursday, December 25th, 2008

SPAM, SPAM, SPAM. How do I hate thee.

Well, it finally happened again – abuse of one of our web pages by spammers.  This time, it is form spam – an automated web crawling tool (I assume) has discovered the “save/send/share” feature of print-bingo.com.  That form lets print-bingo.com users email their custom bingo designs to friends, family, or themselves. This form is now used by a spam bot network to send poor quality spam using our “invite” emails.  I’m currently getting about 10 bounce backs a day and growing – it has to be stopped before my VPS gets blacklisted for spamming.

I could setup a CAPTCHA, but I hate them – particularly the ticketmaster.com’s.  So, I will try to foil spammers with simple tricks to fool “dumb” automated spam software.

I’m trying a hidden to humans “fake” email field.  This post Quick tip to fight email form spam is the model.  The basic idea is to create a form field with “email” in the name and hide it with CSS (display:none) so that humans will not see or fill in the field.  Then deny attempts to use the form where the hidden field has been filled in.

We’ll see how well this works.

Merry Christmas!

The easiest way to convert FLAC to MP3

Monday, October 20th, 2008

Sometimes the things that should be stupidly easy… aren’t. Converting a bunch of audio files at once, is one of those things.

My previous method of converting FLAC files (those are lossless, i.e. exactly like the CD, sound files that some people use to rip tracks from CD’s) to MP3’s (those famous files that work on your cellphone, mp3 player, dvd player, and just about everywhere else) involved Winamp, a plug-in, and a lot of file renaming.  It wasn’t a system I could recommend to others.

Today, I found the need to make a few MP3’s.  So, I searched for a “better way”.  Here’s my FLAC to MP3 recipe:

  • Install foobar2000.  It’s a free media player from foobar2000.org.  It appears to be safe to use, but YMMV.
  • To create MP3’s you will need to find a (Windows) binary copy of LAME, the open source MP3 encoder.  Google for it.
  • Load your files in foobar2000.
  • You might want to set your default file naming and file quality preferences. Or do that after the next step.
  • Right-click to bring up a context menu that brings up a “convert” option – how thoughtful.
  • Answer a couple easy questions about finding lame.exe and the destination folder.
  • And let it go.

So far so good.  This setup should be good for converting WAV and many other audio files too.

Bulk-Adding “To” and “BCC” Recipients to a Thunderbird Email

Thursday, September 4th, 2008

I found a new use for our Web Tools by Perceptus website.  I was sending a bulk email to friends, family, clients, and co-workers about my team’s upcoming race in the Red Bull Soapbox Derby in Vancouver.

But the list of email addresses I selected in Outlook, my PIM, would not copy and paste into a new email in Thunderbird, my email client.*  Outlook separates recipients with semi-colons, Thunderbird… doesn’t.  It’s not immediately obvious to me what Thunderbird will accept as a separator in a single “to” line. It took several Google searches (or was it trial and error?) to figure out that Thunderbird will accept line breaks, i.e. “enter”.

Now all I needed to do was find quick way to convert the list which looks like this “<Leonard> me@perceptus.ca; <Me too> me2@perceptus.ca” from Outlook.  In this case, the extra name information that comes up in angled braces was just in the way.

Fortunately, The Email Grep Text Wizard! from our tools site, tools.perceptus.ca, handled the job well.  Just paste the list from Outlook and let our website return a clean simple list of email addresses.  One email per line.

* My PDA syncs to Outlook so it has to be the personal info manager, but I prefer the email features of Thunderbird.  Yes, it’s cumbersome, and no, I’m not entirely happy with the setup, but I haven’t found anything better, yet.

Using an Old Printer with Windows Vista – and other Vista issues.

Thursday, August 28th, 2008

So, I bit the bullet and got a new PC with Microsoft Windows Vista.

Yes, like every informed geek, I expect a few issues.  However, sooner or later I will need to support Vista at client sites; besides, XP is getting on in years.

Today’s post is mainly about getting my old, but reliable, Brother HL-1030 to work in Vista.  The Brother laser printer is shared over the network by a Windows XP machine.

Some inter-related problems when trying to map this printer in Vista:

Immediately after trying to map the printer, this error comes up: “The printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers”.  The Microsoft KB describing this, with no real work around other than “find a compatible driver”, is KB931719. Honestly, given the error message, wouldn’t you expect the KB article to provide a way to change the local policy?

Vista has no built in driver for my old HL1030, nor are there compatible drivers on the web.

On the driver front, a quick Google search told me that the built in Vista driver for the Brother HL-2030 would work fine.  But how do I use it? Every time I try the add printer wizard, it tries to install the incompatible point-and-click NT4/2K/XP drivers.

* Update – 2009-04: I had some intermittent problems with the HL-2030 driver, once in a while a page would not print completely and would cause the printer to require manual intervention to get it going again.  A quick search turned up this page which suggested using the Vista built in driver for the Brother HL-1430.  I’m trying that now.

So, I used an old trick. I faked a local port for the printer. I don’t remember the terminology, but I do recall this mapping system being common in the past – maybe with Novell or DOS?

Anyway, create a new local port using the share name, e.g. \\server\brother. You will be prompted to pick a driver. In my case, using the Brother HL-2030 driver does indeed work fine.

Some other Vista problems that I’ve had to resolve:

I’ve disabled User Access Control.  I can’t officially recommend this to other people, but it just doesn’t jive with me.

I’ve removed all but the US keyboard from my keyboard settings. Canadian PC’s (maybe it’s dependent on the regional settings?) have English, French and a “combo” keyboard mapping installed by default.  That’s fine until you accidentally hit the hot-key to switch to the French format – for some reason you do not get a confirmation prompt (!?!).  It happened to me on day two with this computer.  I’ve previously helped others fix this too.  While you’re at it, those with Intel Graphics, disable the hot-key that rotates the screen – everyone stumbles on that one eventually.

I had issues with an Access “.mdb” database on a network share that I use for tracking stuff. The resolution for that was to add the “serving” machine’s host name to my Internet trusted zone.  Adding only the IP address did not work, despite a MSKB Knowledge Base article I found.

I’m sure more Vista issues will pop-up.  But, so far, it’s been manageable.  I quite like the new 3-D flip task thing and the search tool.

I hate banning IP addresses…

Sunday, July 6th, 2008

Today I noticed that one IP address has been using wget, a command line tool for grabbing web pages, to get random words from unique-names.com’s random word fetcher about once per second.  I’m not sure how long this has been going on, but I have stopped it today.

The way to ban an IP address on a single website on an Apache web server turned out to be easier than I expected.  Just edit .htaccess and add two lines similar to this:

# banned IPs
deny from 123.12.1.2

Actually, the line starting with a # sign is optional, that’s a comment in the .htaccess.

That’s it.

As for who was trying to use the Naque for Unique Names nefariously?  I’m not sure who it was, or what was the purpose.  Whoever it is, if you read this, and if it was for something reasonably worthwhile (i.e. not SPAM), then drop me a line and ask for permission.  Until then, you’re banned from the site.