samwwwblack's Blog
  • About
  • Contact
  • Archives

I didn't plan on writing this*. Or much else for that matter.

I think I startled people when I said I don't bother planning things in the time/plan/goal training session, and it also seemed that most couldn't understand why you wouldn't want to.

I didn't get my point across in an elegant way, so I'm ...

Wed 24 October 2012 Samwwwblack Uncategorized lack thereof planning work

Bad behaviour whitelisting, part 3

The bad-behaviour plugin has changed the whitelisting method to use an admin form now instead of either editing whitelist.inc.php or using whitelist.ini.

From the changelog;

WordPress: The WordPress automatic update system destroys a user-provided whitelist.ini file, making it difficult for WordPress users to maintain a whitelist ...
Fri 13 April 2012 Samwwwblack software bad-behaviour wordpress

running flake8 in git's pre-commit

I'm forever forgetting to remove debug statements or to run flake8 on my source code. Not to panic though, git hooks to the rescue!

You can just put pre-commit into $PROJECT_DIR/.git/hooks, chmod +x it and be away.

This is the useful part of the file;

ret_code=0 ...
Sun 23 October 2011 Samwwwblack software flake8 git python foss

Importing existing git repos into Eclipse/PyDev

I've spent most of today trying to get either Anjuta or Eclipse/PyDev working with my django git repos for lapwing.os/website. And watching notch work on his LundumDare 48 submission.

I probably missed an easier method, but these were the steps;

  1. File > Import > Projects from Git
  2. Next ...
Mon 22 August 2011 Samwwwblack software django eclipse pydev lapwingos foss

OpenID for Wordpress with Bad Behaviour 2.1

Bad Behaviour 2.1 now uses a file (whitelist.ini) to determine what URLs/IP address/user agents to allow in, so instead of editing whitelist.inc.php you can just add this file into 'wp-content/plugins/bad-behavior' and be away.

As a bonus whitelist.ini isn't updated so ...

Fri 19 August 2011 Samwwwblack software openid software

  • Previous
  • Next
  • blog info

  • Liberal atheist FOSS coder.
    Can't get more amorphous than that.
  • social

  • atom feed
  • identi.ca
  • github

Source on github.

Creative Commons Licence © Copyright 2013 Sam Black