return; } $mutex_filename = 'wp_cache_mutex.lock'; $new_cache = false; // Don't change variables behind this point if (!$cache_enabled || $_SERVER["REQUEST_METHOD"] == 'POST') return; $file_expired = false; $cache_filename = ''; $meta_file = ''; $key = md5($_SERVER['SERVER_NAME'].preg_replace('/#.*$/', '', $_SERVER['REQUEST_URI']).wp_cache_get_cookies_values()); $cache_filename = $file_prefix . $key . '.html'; $meta_file = $file_prefix . $key . '.meta'; $cache_file = $cache_path . $cache_filename; $meta_pathname = $cache_path . $meta_file; $wp_start_time = microtime(); if( ($mtime = @filemtime($meta_pathname)) ) { if ($mtime + $cache_max_time > time() ) { $meta = new CacheMeta; if (! ($meta = unserialize(@file_get_contents($meta_pathname))) ) return; foreach ($meta->headers as $header) { header($header); } $log = "\n"; if ( !($content_size = @filesize($cache_file)) > 0 || $mtime < @filemtime($cache_file)) return; if ($meta->dynamic) { include($cache_file); } else { /* No used to avoid problems with some PHP installations $content_size += strlen($log); header("Content-Length: $content_size"); */ if(!@readfile ($cache_file)) return; } echo $log; die; } $file_expired = true; // To signal this file was expired } function wp_cache_postload() { global $cache_enabled; if (!$cache_enabled) return; require(ABSPATH . 'wp-content/plugins/wp-cache/wp-cache-phase2.php'); wp_cache_phase2(); } function wp_cache_get_cookies_values() { $string = ''; while ($key = key($_COOKIE)) { if (preg_match("/^wordpress|^comment_author_email_/", $key)) { $string .= $_COOKIE[$key] . ","; } next($_COOKIE); } reset($_COOKIE); return $string; } ?> 2007 September | Amateur Geek

Archive for September, 2007

Sep
29
    
Filed Under (contest) by Flash on 29-09-2007

I found out that I’m a finalist in a contest to win a Wii!

Problem is, the voting for the winner ends tonight.

And I’m up against much more famous bloggers.

Now I know why I needed to build up my blog readership!

But I do have the support of the people at the Playa.info forum!  In a few hours they’ve managed to boost my votes up from the pathetic 3 I had before I realized I was in this contest!

So if you’d like to help out, please head over to Netchick.ca and vote for me.  The voting is in her right hand side column, and I am #3 Gregg.  I may not win it, but not being at the bottom of the heap will be nice.

And who knows… maybe I can somehow pull it off with everyone’s help….



Sep
29
    
Filed Under (ramblings) by Flash on 29-09-2007

Life has been pretty busy for some time now, more busy than I ever expected.  Sure, I took 3 courses over the summer; more than I’ve taken at once and in the shortest semester to boot.  But based on the past, it shouldn’t have been too tough.

But then Matthew moved in with us.  Suddenly I had little tasks all the time, such as researching, buying, installing and maintaining a wireless network so that he could get internet on the opposite side of the condo.

And then work got busy… really busy.  No longer could I spend a bit of time each day doing some homework; I haven’t even been able to get in a coffee break or keep from being barraged with questions during lunch.  And then once I was home, I needed to unwind a bit before thinking of the homework.

Then the car blew up….

And we had to buy a new one

When summer was finally over and I could think of making a post, the site went down

But finally I have some time to lead a normal life!  The school semeter is over, and I didn’t take any courses this fall due to the time and money constraints plus our planned vacation.  Matthew suddenly moved out (which lifted some of those constraints.. but too late now).  We had time to run out to Calgary to see my Grandma.  We are running around on the weekends, getting ready for our trip to Playa del Carmen, but this is good news as there wasn’t time to get these things done before.  I have also been able to fit in some of things I miss, such as visiting my favorite forum.  Expect to see regular posting from me again… whether you like it or not!



Sep
10
    
Filed Under (Karin, occasions, outings, ramblings, restaurant) by Flash on 10-09-2007

On Friday, Karin and I celebrated our 5th anniversary.  I had planned to write a post in honour of both the occasion and my gorgeous bride, but real life did not allow it thanks to time pressures last week.  I did start one in which I wanted to talk about all the ways Karin is special to me; but I just kept coming back to one thought…

One of my greatest friends had dated the same girl for almost eight years, with the three of us even backpacking Europe together; but after she decided to move on he was suddenly overrun by women who had been admiring him from afar until then.  One day he told me that he had met a girl that planned to go to Ireland in a month just as he was planning, and so they decided to go together.  When he got back, he told me they were engaged.  When I asked how you could date someone for years without proposing and then suddenly choose one girl that he hadn’t dated any longer than other recent pairings he had made, told me that, “When you meet the right one, you just know”.  I didn’t take him seriously at the time, as I had already been in love but had never felt anything like that; but then when I met Karin I “just knew”.  I have been happy ever since, and even years later I smile often whenever I think about that special feeling she invokes in me just as strongly now as back then.

Karin and I will be returning to Playa del Carmen, Mexico for our fifth anniversary, delaying our trip until after hurricane season just as we delayed our honeymoon there.  While many people take vacations regularly, our budget does not allow it and so we began saving for this trip years ago.  We will not be spending an extraordinary amount on the trip itself, but we have also budgeted for a number of new items to take along, most of which I will talk about soon.  Knowing that we have had this planned for a long time, we did not get anniversary presents for each other, and I had told Karin not to buy me a birthday present last month.  Karin’s birthday will be in Mexico.

So what did we do to actually mark the occasion?  We were together.  This might not seem like much, as we do most things together; but I made sure to leave the homework alone and stayed away from blogging so that I could pay even more attention to the most important person in my life.  I came home early from work on Friday and we went to the bluStone restaurant for dinner.  We spent the rest of the weekend just “hanging out”, for if you truly with your perfect match then you will never tire of being with the one you love even if you are not doing anything.



Sep
03
    
Filed Under (geeky, ramblings) by Flash on 03-09-2007

My site was down half of today.  If it had happened any other day, I’m sure that my host’s support would have quickly resolved the issue, but they are running a skeleton crew today due to the holiday.  I had a lot of trouble logging a ticket, and I will take up that issue with that with them tomorrow.  I’m fairly confident they’ll be responsive, they likely just do not realize that their many methods of support defer to each other on a holiday, resulting in difficulty in logging a ticket.

The confusing part was the different symptoms.  We have 4 sub-domains in total.  This one was completely inaccessible; I could not even get into the Admin panel of Wordpress, the software that runs this blog.  In contrast, Karin’s blog was fine.  I had added some plugins and updated Wordpress last night, but had been able to access my blog afterward and this morning, so it was unlikely the issue.  Even still I spent some time going in and deleting those plugins with no success.  I then checked our two other sub-domains, and found one was having the exact same issues as this site and the other site was having issues with cookies and certificates.

After finally managing to log a support ticket in a low priority queue explaining all of the issues, I poked around some more and figured out that the culprit was FastCGI.  FastCGI is an advanced script offered by my host to speed up PHP powered sites such as Wordpress blogs.  It appears they are having issues with it, because everything returned to normal once I disabled it.  I updated my support ticket to let them know, asking them to let me know when I could turn it back on, and now I’ll need to spend some time reinstalling all the plugins I deleted.  I’m disappointed, as I did have some time today to make some posts and work on both my blog and the site’s main page; but instead I worked on getting back up and running.



Geotagging plugin by eMich.