Category: Resource Filled

  • PERL program for linking Scripture references

    Here is an article that explains how the author used PERL script to interface thousands of Bible quotations with Bible Gateway. Included on the page is a link to a program that runs through a document an ‘Scripturizes’ Bible references. What I mean by ‘Scripturize’ is that it takes a Bible reference and converts it a hyperlink at the BibleGateway.

    I thought this might be useful to our discussion regarding regular expressions and fun stuff like that. Mostly because I suspect any of you who want to post sermons and Bible studies may also want to do the same. Granted, bib.pl was written back in 1998, so it employs some ‘old-school’ Perl parsing techniques. And later this week, we’re going to see how much of this can be reduced to a simple regular expression. Still, it offers some features and approaches we need to consider in our own “Scripturizer” application.

    One thing it does that my own concept didn’t … it deals with abbreviations for Bible book names..

  • /^Reg(ular)*\s*Exp(?:ression(s)*)*/gi

    For those of you looking to shoot your foot clean off with some programming fun, may I suggest some study in a dialect of pure geek otherwise known as regular expressions … please, you can stop screaming NNNNNNNNOOOOOOOOOO now.

    Arguably the most powerful of text manipulation tools, regular expressions allow you match and/or modify variant text blocks. For example, the following snippet allows me to find books of the Bible within a given text block:
     


    my $BibleBooks = “Genesis|Exodus| … |Jude|Revelation”;
    my $varTextBlk = “In the book of Exodus we find a reference to Genesis …

    if ($varTextBlk =~ m/$BibleBooks/gi) { …

     
    Pretty nifty eh? Well, yes, only if you can actually create some compelling content with it. And I intend to do just that in the form of a little script that will look through text and tag Scripture references to the BibleGateway … yeah, I knew that’d get your attention.

    But before I can make sense of my ‘Scripturizer’ script, you’re going to need to do some homework (you may begin screaming again) … here is a suggested reading list of mostly Perl-centric approaches to regular expressions:

  • Lorem Ipsum Generator

    For
    this Friday’s fun, something productive – programs that fill your page full of the type of compelling content that is likely to get your church web site critiqued here, and/or your commercial web site ‘analyzed’ by Vincent Flanders.

    To it is with goulish pleasure that I treat you with Mean Dean’s Semi-Definitive List of Lorem Ipsum Generators (*bonus* my comments in bold case) :

    • I still can’t believe someone wrote a Dreamweaver Extension for this:
      Subterrane – lorem ipsum generator – This version of Lorem Ipsum is based on the code written by Captain Cursor, aka Taylor, originally distributed as a Dreamweaver extension and was later adapted by Travis Spencer. This web version by Will Munslow (Subterrane). It’s essentially just stolen outright and tweaked barely to post the data to a form field instead of the clipboard.

      This code is public domain. Taylor and Travis don’t care if you tweak it, bend it, send it, sell it, etc. (So I stole it!)

       

    • The page actually contains some compelling content by documenting the history of the Internet’s must abused filler:
      Lipsum.com – Lorem Ipsum, or Lipsum for short, is simply dummy text of the printing and typesetting industry. Lipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book …. Visit the site for more compelling history.

       
    • This page has a neat picture of a monkey at a typewriter … hmmm … good metaphor … wonder if it has been used?
      i-r-genius.com – Lorem Ipsum Generator
      This page will generate random lorem ipsum with convincing sentence and paragraphing constructs. Just fill in the fields below to suit your needs and a customised random load of pseudo-latin guff will be sent back to you. There is an 100K limit, to stunt the ambitions of l33t haX0rz with novelty DOS attack plans.

       
    • MangyDog.com presents: The Random Dr. Phil Quote Generator
      During these times of trouble and turmoil, nothing sedates a soul or stifles common sense quite like words of wisdom from Dr. Phil.
      Whoops, how Freudian of me … oh well, too late to strike it from the list!

       
    • Want to wind up on next year’s hall-o-horrors? Then you need to roll-your-own generator. Here’s how:
      SourceForge: Development: Tutorial: Drag and drop saving
      This tutorial shows how to write a simple Lorem Ipsum generator, with drag-and-drop saving. It also shows how to add extra widgets to the savebox.
  • The (not so evil) Color Schemer

    Last week, I preached on the evils of color inconsistency. One of the comments to that post reminded me of yet another useful tool for warding off bad color combos: Color Schemer – Online Color Scheme Generator.

    A word of caution though. Just because this chart offers 16 colors, doesn’t mean you have to use them all!

    Remember, in order for colors to be effectively used as visual cues, you need to make sure they have enough contrast soas not to get lost in the background, and used sparingly enough TO MAKE SURE IT DOESN’T LOOK LIKE YOU’RE YELLING AT US ALL THE TIME, FOR ALL YOUR LINKS ON ALL YOUR TOPICS JUST THE SAME WAY WE STOP READING EMAILS SENT TO US BY OUR AUNT RUTH WHO JUST GOT A NEW COMPUTER AND AN AOL ACCOUNT AND WHO HASN’T LEARNED THE JOYS OF THE CAPS KEY!

  • Mean Dean’s Anti-spam Obfuscator

    Enjoying so many hits from /., I figured I better give the geeks something worthwhile. Here is an article I posted back in late June of this year. For those of you who need to post your email address on your website, this should help:

    With apologies to Edwin Star, and sung to the tune of his populist hymn "War,"
    let us put forward in full-throated conviction:

    spam, HUH!
    What is it good for?
    Absolutely nothing – say it again,
    spam HUH!
    What is it good for?
    ABSOLUTELY NOTHING

    Anyone who has run a church web site for any period of time has had to deal
    with call from the pastor asking why he’s getting spam for porn sites – well,
    at least I hope your pastor is complaining about that !-) How does this happen?
    Easy, you put the pastor’s email address up on the web, then indexed the site
    with various search engines (even though Google still hasn’t got mine right)
    and then you sit back and wait for spambots to come visit your site, slurping
    down all your email addresses – later using them to bombard you with an insidious stream of ads for snake-oil, getting rich quick or attempting to lure you into oggling their dysfunctionally licentious wares.

    There are several ways to handle these ‘bots, methods I’ll be talking about
    in the next few weeks that I’ve found moderatly successful. I say moderatly
    because there is no full-proof method, especially as church staff gives away
    their email address to various online vendors and e-zines, unwittingly "opting-in"
    to a world of virtual hurt. That said, the damage from bots can be minimized
    provided you understand what they are and how they work.

    Essentially these ‘bots’ are software programs that act as browsers, sucking
    down your content the same way MSIE or Netscrape does. Only these programs toss
    out everything except hyperlinks, and email addresses. Anyone familiar with
    Perl understands how easily this can be accomlished with a combination of LWP, HTML::Entities
    and HTML::TokeParser. Regardless of the language, these bots traverse the found
    links, and sell/store the email addresses either to spam you, or to sell our
    email address to other spammers.

    The trick then is to either mangle or ‘hide’ your email in plain site. One way
    to do this is to use NUMERIC or HEXADECIMAL encodings, that is use codes instead of characters
    to represent your email address. The advantage to this is that when a normal/nice visitor clicks on your link to an
    email address, it works just fine. But for the spambots, they either send their tripe to an invalid email address because they
    didn’t unencode it – which raises their operating costs and adulterates any list they’re selling — or they miss harvesting the address altogether because it doesn’t ‘look-like’ your average everyday email address.

    This technique was the topic of conversation over at A
    List Apart
    in which Dan Benjamin offers the NUMERIC encoded approach in combination
    with Javascript. This is a very good approach, up to a point. Considering that up to 20% of those
    on the web have Javascript turned-off on their browsers and keeping in mind what I said about the use various of CPAN libraries,
    this approach may not be well suited for your site &/or audience. So instead, what
    I offer is a sans-javascript approach that randomizes elements of the e-mail address between HEX, NUMERIC encodings, along with a salting of plain old characters. Unless
    the “industrious” spammer has taken the time to build a smart flexible ‘bot, then I’m safer using my ‘obfuscated’
    address as opposed to hanging one out there in plain text. I also encode the
    "mailto:" in a further effort to make email links look-n-feel like
    hyperlinks. To wit, I offer you the following little application:

    Mean Dean’s Anti-Spam E-Mail Address Obfuscator

    Go ahead, give it a try, then try some others like the one mentioned at A
    List Apart
    . What I’m hoping is that many of us will use a wide variety of anti-spam approaches. My thinking is that if we all used the same obfuscation tool, then spambots would have our lunch and eat it too. The more tools, the more moving targets. The ‘bot-heads, being a lazy and unoriginal bunch, would hopefully ignore us.

  • OpenOffice.org 1.01

    The church administrator’s job is a hard, and often thankless one. Often the task is assigned to someone who’s already working in a full-time function at the church, such as the youth pastor. Worse, yet, they have the unenviable task of being having to provide caviar service on a beans-n-franks budget. So the last thing they want to hear is that Microsoft Corp. is doing all sorts of fun things with their pricing and licensing structure for their Office product. Stuff that makes your already tight budget go OUCH!

    Well help may be on the way in a product known as the OpenOffice.org
    suite of software. Both an Open Sores product and a project, OpenOffice.org
    runs on multiple platforms. It includes the essential desktop applications, such as a word processor, spreadsheet, presentation manager, and drawing program (hmmm … no email or calendar program?). It also sports an interface that should be familiar to “similar” office suites. Of course, the real acid test is their claims of transparently working with with a variety of file formats, including those of Microsoft Office. They say the magic number is 90% … I for one hope so!

    Now mind you, I’m not some anti-Microsoft hating zealot like those found over at /. In fact, I’ve got some very nice things to say about .NET in the near future. However, the $400+ price tag and anti-piracy measures associated MS Office, along with the expense of an operating system and hardware to support it, makes the MS approach an exorbitantly expensive solution for a church needing to support 2 or 4 workstations. It may even make dealing with any OpenOffice.org incombatibilities or anomolies worthwhle. If not for a church, at least for the seminary student or missionary.

    So I’ve got this old Pentium II/266mmx. I’m about to make it my Linux development machine. I think though on one partition I’m going to install Lycoris and OpenOffice.org and see if I can’t make my church administrator’s day by walking into their office and suggestiong a solution that may save them as much as 1000 bucks per PC. And if not that, I’ve always had this dream of a study center for the teens – this indeed would be a way around Microsoft’s spin regarding the use of donated machines (e.g. naked PCs). We’ll see …

    In the meantime, here’s a bit more press on the topic, ironically via MSNBC.

  • Usability Testing

    For today’s 1st cup-o-coffee reading, I am STRONGLY suggesting you read the following article – one which describes in detail about something we as a Body could bit more of. What am I saying? The target article explains something most church web sites could use in vast quantities:
    Designer & Developer – Usability Testing.

    If you are serious about your website being most things to most browsers, then you need to talk a long look at this article – and usability testing. By doing so, you compel you and that crack core of church web servants (usually me, myself and I) too THINK first about what you’re going to say, to whom you are addressing it, and how to best serve it up.

    Usability means running each gizmo and bleeding edge technology through the crucible of the “hey, do I really need this or am I showing off ?” test. Usability means not overlooking the fact that the client side of the Internet is comprised out of a wide variety of standards.

    Nothing is worse than taking your compelling content and hiding under a bowl or a bed. What’s that? You don’t have compelling content? Hmmm .. musn’t have too many visitors then either.

    Test everything. Hold on to the good – 1 Thessalonians 5:21

    BTW, credit to Vincent’s News of Interest Page for finding this one.

  • Putty

    One of the free tools I find priceless in helping me backup and restore my sites is a little Telnet/SSH terminal emulator program known as PuTTY: a free Win32 telnet/ssh client.

    Written and maintained by Simon Tatham, this tool allows you to login to your host computer … provided your host provider allows such acess.

    Why not use something else? Because more and more host providers are switching from providing Telnet access to SSH. Why … because one of the ‘S’s in SSH stands for secure … as in encrypted.

    Using this tool, I can get to the linux … from there, I can play with other fun commands I’ll talk about in some very near future posts, like TAR and GREP.