New here? Then you may want to subscribe to my rss feed. :)

HINT HINT HINT HINT

August 23rd, 2007 | Posted in Bloomin' Cool | 2 Comments

Birthday coming up, 12th September.

CLICK HERE IF YOU ARE STUCK FOR WHAT TO BUY ME

Discuss this article »

Pictures of my back garden

August 21st, 2007 | Posted in Jus' Ramblin' | 

Why? I don’t bloomin know. I was waiting for my tea to brew.

My lovely curves

Those lovely garden curves I dug out. Aren’t they just perfect.

Least used BBQ in the world

Least used BBQ in the world. Not the summer for it. Combined with my fear of BBQs since setting fire to my arm hairs.

One day I will place a banana in his hands and giggle to myself.

A calming Buddha which overlooks everything. One day I will place a banana in his hands and giggle to myself.

Discuss this article »

Wordtube and protected wordpress posts

August 19th, 2007 | Posted in Development, PHP | 3 Comments

I rarely password protect posts. Never have anything I wouldn’t want prying eyes to see. Occasionally though, I do have to place content behind a password entry form.

Using Wordtube, I uploaded an .flv file and password protected the page. I noticed that the RSS feed had a link to the .flv file in its “enclosure” tag. This revealed the path to the video file I was intending to hide.

Digging through Wordpress RSS feed generating scripts, I saw that this had been taken into account and couldn’t work out how this particular one was getting through. Well, would you Adam and Eve it, Wordtube also has its own RSS feed generator.

By adding a check to the RSS generating code prevented it from revealing .flv, .mp3, .swf and .jpg files.

In wordtube.php, at line 233…ish:

  1. // Add single media file to RSS feed
  2. function add_wpTube_rss2_file()
  3. {
  4.         GLOBAL $wpdb, $post;
  5.  
  6.         // CHECK FOR PASSWORD PROTECTED POST
  7.         // RETURN IF POST IS PROTECTED
  8.         if ( !empty($post->post_password))
  9.                 return;
  10.  
  11.         $search = "/\[MEDIA=(\d+)\]/";   //search for ‘media’ entry
  12.         preg_match_all($search, $post->post_content, $matches);

Any problems then let me know.

Discuss this article »

Blog Action Day

August 19th, 2007 | Posted in Jus' Ramblin' | 1 Comment

Blog Action DayBrowsing t’internet, as you do, and I came across a site which mentioned “Blog Action Day”.

What is this “Blog Action Day” you speak of?

It’s a get together (a virtual one) where bloggers write and publish a page about a particular issue. The first one is about the environment. I am not sure why I signed up. I am curious as to what I will decide to write about. Big jeep cars, half empty lorries arriving from Europe to an industrial estate not far from my house. No doubt it will become a constructive rant.

We’ll see.

Oh, If you want to take part, visit http://blogactionday.org

Discuss this article »

All quiet in Khan town

August 17th, 2007 | Posted in Jus' Ramblin' | 

Quiet townI haven’t posted much recently, I initially aimed to write at least once a day. So far, I have managed no more than two posts this month. Why? Cus I’ve been a right busy little bugger. As a result, I am fookin’ knackered.

My brain is all runny and my eyes have nearly given up the will to … look.

What am I working on? Oh, all sorts really. Work for my clients mainly, and development of FAFTv.

Outside of making web sites, I have dug a nice curvy path in my back yard. I am so impressed with it, it has proper curves, i.e. not a straight line which failed miserably at being straight and ended up a curve. I think I will post a picture of it.

I don’t normally do anything DIY related, not after putting two nails in a pipe and flooding downstairs, or nearly electrocuting myself when forgetting to turn the electricity off.

I just don’t like DIY. I cant remember what wire goes where, red – black – red – loop… I don’t bloomin know. Plastering, don’t talk to me about plastering. As a cost cutting exercise, I took it upon myself to plaster the dining room wall. NEVER AGAIN. Here’s a tip, start at the top of the wall and plaster downwards, in hindsight, its obvious why.

In an attempt to come across as a good bloke, I offered to carry out a whole list of DIY tasks. This was back in February, it is know August and out of 15 tasks, I have managed one. Typical excuses reasons have been the weather, too hot, too cold, too wet. Even I am sick of hearing me putting them off. Well, this weekend I plan to finish my path and paint some doors. Well, as long as it isn’t humid.

Discuss this article »