JB's Homepage

One man on one island.

Archive for January, 2005

WP-Mail ver 0.311

Comments

I had a nice long holiday at Coolangata, Queensland, Australia and had quite a lot of time sitting on the couch as my girlfriend read her book. So I grabbed my Powerbook and slowly worked away on my wp-mail.php plugin! It’s nice to work on something without having to worry about timing and just bang away…

IMG_259.jpg

And that’s a photo of my me lying on the couch, I knew I should have not taught Lauren how to use the camera… :)

Thanks to all the comments and feedback of this hack, because people submit code and fixes it’s a better program for everyone. With a little more work we’ll get this plugin rock steady stable and see if the wordpress dev team would consider it for the core code of wordpress.

Here’s the updates that have happened in the latest version:
- HTML e-mail support added (Thunderbird clients can easily use this mod now!)
- Subject line searching support for categories (i.e., Subject: [Code] WP-Mail, will post to the Code category)
- Added UBB decoding support, so if you want to post things written out of say phpbb you can now
- Direct posting support (using /etc/alias on your e-mail server you can send the
- PHP5 support
- More fixes

What needs to be done is a bit of work for the HTML e-mail support. It works at the moment, but it needs a little more work to add the images in position of where it is in the actual e-mail. At the moment all images in HTML e-mail’s are just attached to the bottom of the message which is probably not what people want. I can do it, just got to figure out the best way.

The second thing I suppose most people want is a little bit more image manipulation (like resizing images). I’m not sure if this should be included in wp-mail.php or have wp-mail.php interface with some other image plugin for Wordpress. I’ve played around with thumb nailing

* -= History =-

* Version 0.311 – 2005-01
* – eep, major bug for pop3 server. Next time I test my code more before I released, fixed so that pop3 now works.
* Version 0.31 – 2004-12 & 2005-01
* (Has it been this long, best get back into the swing of things… did most of this coding on my holiday as I didn’t have a machine to play WoW on :)
* – moved the deletion of pop3 emails into a check so that e-mails aren’t deleted without proper checking.
* – added html ‘decoding’ (basic support for Thunderbird & Outlook)
* – updated the Category search so that it matches words as well as numbers (i.e. [General] Subjectname will work instead of just [1] Subjectname)
* – Changed time function from time to strtotime (as per Senior Pez’s suggestion), but found out that strtotime isn’t in default php distro…
*
* Vesion 0.3 – 2004-09
* – Added UBB decoding support
* – Added default title (when there is no subject assigned)
* – Started doing a little code cleanup, been reading Advanced PHP Book :)

Download it and test it out, I’ll be writing a little HowTo on using the direct e-mail support when I have a little spare time, in the meantime enjoy!

wp-mail-0.311.zip

Written by JohnBlade

January 31st, 2005 at 11:01 pm

Posted in Code

Added new hack to blog – Bot-Check

Comments

I’m tired of seeing endless spam in my Blog, so after having a look around at what other people do to combat spam on their Blog I decided that a simple image check is what is required to determine human posts from spam.

Just before I was about to write my own, I found this Bot-Check Plugin which fits the bill, so from now on people will have to enter in a 3 digit number before they post.

Not to much of a hassle I think for people to post, let me know if you find any issues.

Written by JB Hewitt

January 27th, 2005 at 10:23 am

Posted in General,Technical

Sizzling Mongolian BBQ

Comments

Dan and Amanda invited me to a family gathering at the Sizzling Mongolian BBQ House in Taringa, Brisbane Australia. Since Dan and Amanda (with family) were in the country I couldn’t miss an opportunity at another dinner with the American’s.
After poking about a bit to find this restaurant I was starving ready to eat a Mongolian… err.. anything!

Quite a unique little place, I came on a Thursday night which is ‘All you can eat’ (music to my ear’s), but in a slightly different manner. You can choose what you eat but adding the raw ingredients to your dining bowl. I was instructed by Veronica to choose my meat (choice of Lamb, Beef, Pork, or Chicken) and vegetables; then add one portion of every sauce available. There’s about ten different sauces to choose from ranging from hot spicy chilli to sugar water. I was a little puzzled at the advice of adding every sauce to the mix at first, later I thanked her.

After making your mega-mix you pass it to a friendly Ninja Mongolian Chief (at least that’s what I call ‘em) who uses the ancient art of chop stick BBQ’ing to create a tasty meal; which looks something like this.

Image(167).jpg
Half the fun is watching these guys do their little jig as the meal cooks on the BBQ. The meat’s are very thin strips which make for quick cooking, and whilst the Ninja Chiefs do a great job of cooking you don’t have much choice in how you want it cooked. I personally had no problem with their BBQ wisdom, and after trying four different bowls of food I learnt that no matter how bad the mix, these guys make it better through some cosmic magic or something.

Let’s face it, everything taste better on a barbie, even as one as strange as this. So the formula in my books is pretty good and I’d be happy to take guests there anytime. And the price is right, at $15.90 a head you’ll be hard press to find better value for money.

If you want to fine the Mongolian BBQ House, you can find them at 2/ 144 Indooroopilly Rd Taringa 4068 or call (07) 3870 2272.

Written by JohnBlade

January 19th, 2005 at 1:23 pm

Posted in Diary

Tron 2.0 coming

Comments

A new Tron is on the way!
Tron 2.0

The original Tron was an awesome little flick, and Tron 2.0 video game was extremely fun.

I think that was the first FPS in a long time I finished because I was enjoying the experience so much (short attention span I know).

I’m not sure if you could get the same sense of ‘wow’ the original Tron had, as back then computers were mystical devices that had unlimited potential – who knew what the hell was happening inside! Now days, they’re like a toaster and people just use them to get the job done.
Could be good, could be awful – but either way I hope they use a Byte instead of Bit!

Written by JB Hewitt

January 14th, 2005 at 11:17 am

Posted in Movies

Awesome Mecha Freeware game

Comments

I found this awesome freeware game whilst spending too much time roaming the web today, it’s called Silver Knights. Sort of like Sega’s Virtual-On; it places you in a giant mech to duke it out with other gamers. it’s multiplayer friendly and under heavy development.

pastedGraphic1.tiff
The guy building is a Japanese so all the fan-sites are mostly Japanese but the game itself is multi-language so there’s a fair chunk of English to read. I’m planning on playing this on the weekend at LanSmash, I can’t wait!

Here’s the english website: http://www.freewebs.com/panzerquest/

Written by JohnBlade

January 12th, 2005 at 11:56 pm

Posted in General

Tsunami

Comments

The Tsunami is something that I will always remember.

I can only imagine what it is like over in the torn countries who have lost so much by this tremendous force of nature. Looking at the photo’s and footage I can’t help but want to head over there to help. Realistically, there is little I can do over there without any medical or engineering training; so I am content to stay here.

My room mates talk about this as an act of nature; killing humans because of over population. I try not to reason such acts, it’s impossible to deduce reasoning from such a complex creature as ‘nature’. Though I think it is a little ‘self-centred’ to think that this was part of an act to cull humanity or a sign of things to come. The Earth and it’s eco-system has been around for millions of years and is a ever evolving machine with complexities we have great difficulty understanding.
I suppose it’s only human nature to boil it down as ‘Nature is attacking us!’

Anyway you look at it I’m proud that Australia has acted so swiftly and compassionately. It’s only the beginning of the road to recovery though, and I’m sure Australia will help as best we can.
My deepest condolences to those of you who have lost ones.

Written by JB Hewitt

January 4th, 2005 at 11:02 am

Posted in General