2009
10.15

An interesting entry show up in Akismet’s spam list:

kelly

It is interesting that it end-up blocked by Akismet, even though it doesn’t mention any product, or linking to a questionable website, it simply links to Kelli’s Wikipedia page. Earlier discussion mentioned that it was the email address that causing the block.

Who will benefit from such action? Will Kelli Garner became more famous by gaining notoriety as a spammer? One could not forget how Paris Hilton become everyday conversations because of her sex tape leaked. So yeah, you can become famous by gaining notoriety. The more notorious you are, the more publicity you’ll get. Bad publicity, good publicity, all kinds of publicity, there is no such thing as bad publicity.

Or could it be someone else profited? If yes, in what way? Or is it just someone who is trying to be her biggest fan by dedicating her/his life promoting Kelli?

Another possible explanation is someone actually have planted something malicious at her Wiki page, which will be triggered whenever a person visit that page? Which is to me, a very likely explanation. Is this a Zero Day attack?

Anyway, the spam origin was from server which is apparently located at Prague, Czech Republic.

217.31.51.77

PS: This post is now officially unintentionally became part of the publicity machine.

Share and Enjoy

  • Facebook
  • Twitter
  • Google
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
2009
10.12

The Meaning of Barokah

Yesterday, I visited Ainun’s wedding party at An-Nahdah Mosque. It was my first time attending a wedding party that is held in a Mosque (apology to Rahman and Ratih for missing your wedding party, I was with my family in Bali that time :) ).

The atmosphere was great, the food was delicious, but one thing that struck my mind that day was the prayer that was given by the Habib (I didn’t get his full name) to Ainun and his Wife. He prayed that Ainun and Yanti will have a barokah life. Barokah as in:

  1. Even when your money is not much, you still found it enough
  2. Even when what you have is not many, you still found it sufficient
  3. Even when you have a little time, you can do many things
  4. Even when you are given a short life, you can achieve so many things

“Houston, we have a problem!”

Share and Enjoy

  • Facebook
  • Twitter
  • Google
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
2009
09.15

jqueryWhen I was working on recent posts, I was surprised to notice that jQuery script was loaded twice.

So I investigated it by looking at my current theme, as well as WordPress code. I found out that both WordPress and my current theme is loading jQuery.

My current theme is Pyrmont V2. I look at the header.php, I found out this:

 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('stylesheet_directory'); ?>/scripts/basic.js" type="text/javascript"></script>
 

So this is the reason why I found two jQuery source code being loaded (shown below).

 

But what about WordPress? In which file does the jQuery listed to be automatically loaded? After using Windows File-Content Search to scrutinize WordPress’wp-includes folder, I found the answer:
script-loader.php

   //...
   $scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop'), '20070118');
   $scripts->add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.3.2');
   $scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.7.1' );
   //...

I found it interesting that WordPress is loading jQuery from localhost (sodeve.net), but Pyrmont is loading it from Google. There must be a reason for this. Dave Ward at Encosia teaches us that the reasons are:

  1. Decreased Latency. Because Google is using Content Delivery Network (CDN). Therefore, it is much faster than your server
  2. Increased Parallelism. Because it reduces the number of connections made to a single server. Browser usually has limit on the number of connection to a single server
  3. Better Caching. Since the script is obtained from Google, it is very likely the script is already cached when visited any Google’s website that uses jQuery

Anyway, I’m sold to Dave’s idea. I replaced the line in script-loader.php, using http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js instead of /wp-includes/js/jquery/jquery.js. Then I observed the performance using Firebug.

Before disabling WordPress load script with ver parameter

Hmm.. WordPress added the “ver” parameter in the script request. This invalidated Dave’s point no. 3. What can we do to make WordPress not to add “ver” parameter in the script request?

How to Make WordPress Load Script without Ver Parameter

Open class.wp-script.php inside folder wp-includes of WordPress

//.....

$src = add_query_arg('ver', $ver, $src);

//.....

Comment the line shown above (line 117).

I believe things load faster now :D (At least for Google, sodeve.net server is a shared hosting, so its performance is difficult to expect :P )
After disabling WordPress load script with ver parameter

I hope it helps ;) If you like this article, kindly consider to visit the sponsors to check out their offers. Cheers!

Share and Enjoy

  • Facebook
  • Twitter
  • Google
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS