wonders why his status didn’t update earlier. Suffice to say, I’m in Horsham for the weekend.
I cannot think of a harsh enough punishment for the person at Adobe thought when I selected that I wanted 2 copies of pages 7-16 from a PDF I meant I wanted it printed like so:
page 7
page 7
page 8
page 8
page 9
page 9
… you get the idea…
What were they thinking!
is all done :D
has been writting a huge report all day and finally feels like it’s coming together, just in time! Goodbye stress, hello sleep!
had a much better set of badminton games, this time I wasn’t shattered after 10mins!
Spam comments can be a real problem for any website, not just the big guys, little guys such as myself get hit by them all the time.
Many websites choose to use something called CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) to deal with this problem. Normally the CAPTCHA implemented is you having to read a word from a box (which is actually an image generated by the server) and write it down. Unfortunately these aren’t as good as they used to be now. You see, OCR (Optical Character Recognition) has moved on a fair bit in recent years to the point where computers are very very good at reading what the word says (sometimes even better than the humans).
There are of course a few other variants of this system such as picking the shapes etc, although many of them can be solved by the computer through trial and error.
But complex (and more often, useless) as these current solutions are they are still somewhat flawed. They require the human to do something to stop spam, not the other way round.
Clearly these are not an ideal solution. I prefer something known as negative CAPTCHA. This is a system where you have a comments field, but you hide it from the user using a language the robot can’t understand (CSS in this case). You then have a another comments box which the user does see but is not called comments (something like feedback will suffice). Then, when a comment is sent in, you check to see if the comments field (AKA, the hidden one) is filled in. If it is then it must have been a robot because the user couldn’t see the box to fill it in. This way the user ha nothing to do and it is up to the robot to give itself away.
This is a nice system and one I have been using for several years (it seems to be a very rare idea which I hardly ever see mentioned, people for some reason seem to like proactive defence) with a very very high success rate.
To give you an idea, when I first put this in I was getting about 70spam comments a day plus on my gallery, maybe more. When I put this in I get maybe one spam comment every couple of months.
All very nice you are thinking, but there is more…
You see, when going through my logs I have found an anti spam side effect of a feature I use all the the time.
My gallery uses ID numbers for pictures. When you request a picture you might request the following:
URL http://www.craigk.org/pictures/p/403/
Now this URL suggests that you are viewing the index page in a folder called 403 which is inside the folder pictures. However, I actually use something called mod rewrite to change the URL’s. So in this case the real URL which this links to is as follows:
URL http://www.craigk.org/pictures/view.php?id=403
Now I use mod rewrite to make the URL’s cleaner and nicer looking.
For those who care, the code for this is placed in a .htaccess file in the current folder and reads:
RewriteEngine On
RewriteRule ^p/([^/]+)/$ view.php?id=$1 [L]
This has a side effect though for spammers. You see, this means the spammers don’t know there is no folder called 402 or called p. Instead, when they read my comments file is called add_comments.php they have to make the assumption that this file is located here: http://www.craigk.org/pictures/p/403/add_comment.php (which it isn’t). Instead, it is actually located here: http://www.craigk.org/pictures/add_comment.php (if you click it you get the error you see when you didn’t use my comments form to get to this file (which you wouldn’t be if you click that link)).
According to my website log this .htaccess side effect has stopped 53 spam comments in the last 10 days.
I like getting something for nothing.
has a bottle of white spirit on his desk, it has been a long weekend… I also now have 6 computers in my room… zzzzz
almost managed to build a computer before the pizza came, but then the pizza didn’t come… *sobs*
hates relativity :(
is hopeful the US election is got right this time. Hurry up and vote Obama!
is :)
actually can’t belive what a mess the trains are… just typical, just typical!
thinks life is getting complicated again, but at least it is being worked out… Bring on Thursday… much much faster
OK, we must all be familiar with the concept of right brain or left brain. This is where different sides of your brain perform different functions and the side of your brain that is used more tells us something about which you lean in things like logic and feeling or being safe or a risk taker.
So, I came across this test here. Basically it has a girl spinning and depending on which way you see her spin determines which side of your brain you use more. Apparently most people see her rotate anti-clockwise. Clockwise is for people who are right brained, and anti-clockwise is for people who are left brained.
Here is a table of attributes which each side is meant to show you have:
| Left brain functions | Right brain functions |
| Uses logic | Uses feelings |
| Detail orientated | “Big picture” orientated |
| Facts rule | Imagination rules |
| Words and language | Symbols and images |
| Present and past | Present and future |
| Maths and science | Philosophy and religion |
| Can comprehend | Can “get it” (i.e meaning) |
| Knowing | Believes |
| Acknowledges | Appreciates |
| Order/pattern perception | Spatial perception |
| Knows object name | Knows object function |
| Reality based | Fantasy based |
| Forms strategies | Presents possibilities |
| Practical | Impetuous |
| Safe | Risk taking |
I have now been looking at this test for some time. It is driving me a little mad. I see the girl spin in both directions, I can make her change direction or keep her spinning the same way by thinking about it. Every time I glance at the image she is spinning a different way.
Then I thought I would identify which side I am by reading through the table. I think I know why she spins both ways for me. I split almost perfectly down the middle with that table. Many I an neither one nor the other and for the rest I have an even number of both sides.
is a busy bee
