Mail Filter Madness. Pt1

I have to admit I am a bit unorganised in the email department! In fact,  that’s a bit of an understatement!

I am extremely unorganised in the email department!

Due to different projects, and historical reasons I have several domain names, with different email addresses associated to them.  These emails all go to different popbox’s, most are picked up by my windows box at home (all to individual accounts) And in theory I then check my mail every so often. In truth, due to the number of accounts I do not check them as often as I should and I now have a dozen accounts all with several thousand unread emails in them.

Right!” says I, “This needs to be sorted!“. But what to do?, I could merge them all into one account, so everything gets delivered to the same folders, then write a load of email filters to organise the mail into appropriate folders, so its easier to manage. “Right, I’ll do that!“. Wait a second. What if my windows machine doesn’t have it email client open? the filters wont run and the mail will be scattered, what if I’m on a different machine, with a different email client, No…. There must be a better way to run email filters.

What if I run them at the server level?”

E-mailNow that’s an interesting thought. Actually add a section in the exim configuration to check a database of rules and deliver accordingly. Then have a simple control panel where users can add rules based on sender, local_part, domain, recipient, subject and have the email delivered into the corresponding sub folder.  This would mean your email was sorted as soon as it was delivered, regardless of what email clients you have open and where.

Well I was after a new project to play with for a bit, and it looks like this may just be the one.  I have exim, mysql, courier all installed and running on my home gentoo server, so time to forward a few of my domains at that IP and start playing.

Watch this space…….

CN

The cake is a lie?

Cake or death?
Uh, cake please.
All right… You, cake or death?cake
Cake please!
Here. Next! You, cake or death?
Death please. No, cake!
You said death first!
I know, but I meant cake!
Oh, all right. You’re lucky we’re Church of England… You, cake or death?
Cake please.
Too bad! We’re out of cake. We only had three bits.
Eddie Izzard: Dress to Kill – 1998

I had been seeing the quote “The cake is a lie” all over the Internet recently, almost to the same level of saturation as the old “all your base are belong to me“. So I decided to look into why the cake is a lie, if indeed a lie it is. And I do like cake! So a quick  prayer to the god of all knowledge Google granted me the Divine knowledge i needed. It was from a game called Portal, which was a current popular game amongst geeks. Not wanting to loose my “Geek Card” I did my best and got hold of a copy of the game and kick it off.

The game  is a first-person action/puzzle video game developed by Valve Corporation (The guys who brought us Left 4 Dead).  The game is set in the science testing labs of the “Aperture Science Computer-Aided Enrichment Center”.  You wake up in a small room and the voice of an AI informs you that you are being tested and you have to work your way through 19 test stages, where after testing has finished you will be rewarded with cake. The challenges get harder and harder the further along you go, while the AI inspires you with promises of cake.  The problems are solved by teleporting yourself, or items from one place to another by means of portals.  The Test chambers are very clean and modern, but the further you go, the more erratic the AI gets, slipping in the odd threat or gibberish. There are also parts where you can see the rooms behind the test centre, these rooms are all derelict and falling apart. With graffiti all over the place with parts of poems, or “HELP” written in what looks like blood, not to mention hand prints everywhere and loads and loads of :-

the cake is a lie…
the cake is a lie…
the cake is a lie…
the cake is a lie…
the cake is a lie…

After completing the final test chamber (this one with the sign for cake on it) the AI places you on a conveyor belt heading into a furnace, where you will be baked and there will be cake. Here you promptly escape, not to the Los Angeles underground, but the maintenance part of the testing complex. That is implying you wish to escape, you could stay and be burnt alive in the hope of getting cake I suppose. Those of you who did not wish to die and escaped now find yourself lost in the bowls of an underground massive complex, which is falling apart, and guarded by robots with machine guns. You now make use of your portal Gun to try and follow the clues left for you by some mysterious person.  All the time with the AI telling you that your going the wrong way, and if you give up now you can have cake. or my favorite one “they have already cut the cake, I told them to wait for you, if you turn yourself in now you may be in time to get the last slice!”  You eventually (if you can complete the puzzles) get to the control centre where you come face to camera with GLaDOS (The AI). Who promptly tries to kill you, with nerve gas and rocket launchers (some computer systems).  If you can defeat GlaDOS in the time you have before the nerve gas kills you, the control room explodes, and you wake up outside and free……

The Cake is a Lie

There is then one of the best credit sequences I have ever seen in a computer game, where GLaDOS sings a little gcalled “Still Alive” while the lyrics are typed on a text based screen, with asci images. Its good………And it ends with CAKE!!!!

Ghosts At The Insane Asylum

It seems the Insane Asylum is haunted, or we have the worlds weirdest burglars.

Last night as i made my bid for freedom I left Gawain my trusty work desktop recompiling its kernel, and doing other re-compiles of parts of its OS. I know it was doing this as the screens were scrolling with code as i switched off the monitors by the switches on their front.  I then left the Asylum at the same time as DemonP, which left two inmates left in the building who left not long after us. Now they set the alarm and locked up the building. All was well!

This morning I entered my padded cell, hit the buttons on Gawains monitors to check my social networking sites before work began… NOTHING… I press them again, and they remain blank. “Ok” I thought “My machine crashed over night” So i hit the power button on Gawain… NOTHING… Hummm? Power cut? No, everything else is working. So I investigate more and discover the extension lead that powers my desktop, monitors, switch, VoIP phone had been switched off at the wall.  Now the socket is semi behind my desk, and blocked by the wedged open door, in other words “Impossible to be accidentally switched off” besides it was still on when I left the night before.

ARSE! That’s a tad annoying” says I. Ok the exact words I may have used were not quite that polite. Right, switch the socket back on, power up the machine only for it to sit at the maintenance prompt due to disk errors. Get them fixed, and have to kick off the re-compiles to repair the damage caused by a unscheduled  power off mid compiling. So far I have spent all day trying to get my desktop back up and running.

SO I checked with the two guys who left the Asylum after me last night, both deny switching off the power and say they would never do such a thing as they know the problems it would cause. (I should take a second to explain here that one is a sheep following the new-age hippie flock at the minute and keeps moaning we should switch off all electrical devices at night to save the planet).  So no one turned it off, which leaves us the following options.

1) Ghosts: The Asylum is haunted with an odd poltergeist who’s only presence to date is switching one power switch to the off position.

2) Burglars: Last night some burglars picked the locks on the main building, then picked the secondary locks on the secure part of the Asylum, disabled the alarms and gained entry.  They then did not steal any of the expensive equipment that’s all over the place, but just switched off one power socket before resetting the alarms, re locking the doors, and leaving.

ghost

CN

Is it really Winning if you have to Cheat to do it?

Its a straightforward question.

If you need to cheat to win, have you really won? Can you give a whoop of joy and flick you nose at the losers? Can you boast about your skills?  In fact, is anyone impressed?

I’d say NOT!

Now, I can understand how someone playing a computer game, and being stuck at the same bit for a very long time may use a cheat just to get past the point they are stuck at. Maybe they just cant do a complicated jump, or they a bit slow on the old controls so its next to impossible for them to complete the task.  Personally I’d not resort to the easy way out, I’d keep trying until i lost the will to live, Then take a break while playing a different game. But I can understand why some people would.  Playing the whole game on cheat mode I think defeats the purpose of playing the game. I have some nephews who I caught once playing a game from start to finish in “God Mode”, what was the point, they ignored all challenges and just walked through everything.  And as for cheating in a PVP multiplayer game, where you do not gain in points, rank, or anything useful, I can only assume  its to bolster some very flagging ego?

Let me give you an example…

I was amusing myself with some “Verses” Mode on Left 4 Dead the weekend. Now those of you who are unfortunate, old, or live in a draconian anti-technology cult sprung up from the teachings of the Battlestar Galactica series finale may not be aware of Left 4 Dead, so I’ll take a moment to explain. Left 4 Dead is a cooperative first-person shooter video game. Set during the aftermath of an apocalyptic pandemic, the game pits its four protagonists dubbed “the Survivors” against hordes of the infected, zombie-like aggressive mutants. There are four game modes: a single-player mode in which allied characters are controlled by AI; a four-player, co-op campaign mode; an eight-player online versus mode; and a four-player survival mode. In all modes, an artificial intelligence (AI), dubbed the “Director”, controls level pacing and item spawns, in an attempt to create a dynamic experience and increase replay value.  In the Verses mode they players are in two teams of four, and take it in turns to play each level as either the Survivors or the Infected. It adds an extra challange to the game, Not only do you have to deal with the AI controlled hordes of infected, You now have up to four human controlled Special infected (Who respawn when killed after a short period, while the survivers stay dead).

Right, you all up to speed now? Good then I shall continue.

I was in a verses match, and my team was loosing a bit, We had only managed to get one survivor to the safe room in one of the levels, and the other team had got all four in on every level. So I was feeling a bit frustrated, especially since every time I was one of the infected and hiding somewhere to attack the survivors I’d get shot through a wall or ceiling before moving, it was almost like they knew where everyone was. (But that’s just sour grapes right?).  So I was currently dead having been shot through a chimney pot i was hiding behind on a roof top in an out the way position, a place that is impossible to see from the street level where the guy who shot me was. So there I am, a floating ghost for the next 25 seconds until I can respawn. So I’m floating about following the survivors, wondering why one seems to have several dozen pipe bombs, while another has an equal number of fire bombs  (Especially as each person can only carry, 1 pistol, 1 big gun, 1 bomb and 1 medikit) when one of my team mates becomes the tank. The tank is a special super infected that the person doing the most damage to the survivors gets to be randomly during a level. Think a zombieish version of the HULK, only BIGGER! So the Tank catches the survivors inside an office with limited room to manover, and with a few smashes and punches all four of the survivors are on red (almost dead) three are so bad they are lying on the floor and need help to be picked up. The last survivor manages to kill the tank, but he’s on red and limping, it looks like we are going to win this level!

Just as I’m about to respawn as a hunter and rip the last survivor to bits winning the game he uses a medikit to heal himself (Thats ok, without the others to help he can be brought down)  and vola! all four survivors are standing up, green on full health? OK, not 100% impossible, i may have blinked while he picked up one survivor, and that survivor may have picked up the other two, and the three of them may have healed while i was watching the first one.  (Yeah right!) and since they all still have a medikit they just happened to find 4 spares on the floor right where they fell.  So I decided not to respawn after all whats the use, and I followed the survivors as a ghost to see what they did. And I’m glad i did, as the were running i spotted the person playing bill drop his shotgun on the floor as he ran (you can only drop weapons if you pick up a new one),  he’s now holding a sniper rifle to take out the infected waiting to drop down from the higher floors. Oh theres a horde running at the infected, the sniper rifle is dropped, and he’s now armed with a fully auto machine gun? No doubts now, this team is cheating. So I drop out of the game to find a game with decent players.

Now why would you cheat, ok, you are guaranteed to win, but is winning in that way even worth it? You could just not play the game and say you won. You couldnt brag and say “wow, you should have seen how we trashed that other team” since you only won by cheating? The only thing I can think is that they must suck, and be the worst game players of all time, and after loosing every game they ever played must have resorted to cheating just so they could see what happens when you win?

Personally I’d rather suck from my own lack of skill, than try and pretend I’ve got skills with cheating.

NetIM BotNet. Pt3

Quick update Time.

Thanks to the speed of roll out using Subversion version control, my single test bot is now a botnet of  6 test bots. “Well if you are going to test something, test it BIG style

And since I was in one of Them moods, I now have the bots giving error messages in Haiku, with a built in BOFH excuse generator.

I have also been nice and added some more help files, and improved logging (for debugging) and some stability to the code.

Now I just need the users to suggest some more useful commands they would like.

OK… While that’s on hold/in testing, Whats my next project!

CN