. */ # Known/outstanding issues: # [UNCONFIRMED ISSUE] Plugin seems to keep pinging when importing an XML/WXR file even if pinging is disabled # Plugin does not seem to report any errors if it cannot write to the log file (see E2 blog for example) function SUP_add_options_page(){ if(function_exists("add_options_page")) add_options_page("UP Smart Update Pinger", "UP Smart Update Pinger", 5, basename(__FILE__), "SUP_show_options_page"); } function SUP_show_options_page(){ global $logfile; $ping = get_option("SUP_ping"); $pinglog = get_option("SUP_pinglog"); $uris = get_option("ping_sites"); $forcedpings = false; $SUP_output_log=''; $pingservicesnow = "Ping Services Now!"; $deletelogfile = "Delete Log File"; if(isset($_POST["ping"]) && $_POST["ping"] == $pingservicesnow){ $forcedpings = true; SUP_log(SUP_ping_services($forcedpings).strftime("%D %T")."\tForced pinging services (Homepage)\n\t─────\n"); }elseif(isset($_POST["submit"])){ $uris = $_POST["uris"]; $ping = 0; if($_POST["ping"] == 1) $ping = 1; $pinglog = 0; if($_POST["pinglog"] == 1) $pinglog = 1; update_option("SUP_ping", $ping); update_option("SUP_pinglog", $pinglog); update_option("ping_sites", $uris); echo '

Options saved.

'; }elseif(isset($_POST["delete"]) && $_POST["delete"] == $deletelogfile){ $fh = @fopen($logfile, "w"); if(false === @fwrite($fh, strftime("%D %T")."\tLog file deleted\n\t─────\n")){ update_option("SUP_error", 1); }else{ update_option("SUP_error", 0); } @fclose($fh); } $checked1 = ''; if($ping == 1) $checked1 = 'checked="checked"'; $checked2 = ''; if($pinglog == 1) $checked2 = 'checked="checked"'; echo '

Ultimate Plugins Smart Update Pinger

Click here for installation instructions

Click here for usage instructions

Click here for updated versions

Click here for comments and suggestions

URIs to Ping

The following services will automatically be pinged/notified when you publish normal or future timestamped posts. Not when you edit previously published posts, as WordPress does by default.

This plugin also fixes an issue with the default extended ping programming in Wordpress and pre-2.1 versions of Smart Update Pinger (it now includes the url of the new post).

NB: this list is synchronized with the original update services list.

Separate multiple service URIs with line breaks:

Ping log

These are the last 100 actions performed by the plugin. In reverse chronological order for easier reading (latest ping first).

'; SUP_get_last_log_entries(500); echo '

'; } # telling WordPress to ping if the post is new, but not if it's just been edited function SUP_ping_if_new($id){ global $wpdb, $post_title; $SUP_output_log="\t─────\n"; $SUP_ping_result=''; $forcedpings = false; if(get_option('SUP_ping') == 1 && trim(get_option('ping_sites')) != ""){ # fetches data directly from database; the function "get_post" is cached, and using it here will get the post as is was before the last save $row = mysql_fetch_array(mysql_query( // "SELECT post_date,post_modified,post_title,guid FROM $wpdb->posts WHERE id=$id")); "SELECT post_date,post_modified,post_title FROM $wpdb->posts WHERE id=$id")); # if time when created equals time when modified it is a new post, otherwise the author has edited/modified it if(!$row["post_title"]){ $SUP_output_log=strftime("%D %T")."\tNOT Pinging services (ERROR: YOU HAVE FORGOTTEN TO ENTER A POST TITLE) ...\n".$SUP_output_log; }else{ if($row["post_date"] == $row["post_modified"]){ $SUP_output_log=strftime("%D %T")."\tPinging services (New normal post: “".$row["post_title"]."”) ...\n".$SUP_output_log; $SUP_output_log=SUP_ping_services($forcedpings,get_permalink($id)).$SUP_output_log; # Try commenting the line above, and uncommenting this line below if pinging seems to be out of order. Please notify the author if it helps! # generic_ping(); }else{ // Post has been edited or it's a future post // If we have a post title it means that we are in the normal WP loop and therefore it was an edit (not a future post) if($post_title){ $SUP_output_log=strftime("%D %T")."\tNOT Pinging services (Existing post was edited: “".$row["post_title"]."”) ...\n".$SUP_output_log; }else{ $SUP_output_log=strftime("%D %T")."\tPinging services (New timestamped post: “".$row["post_title"]."”) ...\n".$SUP_output_log; $SUP_output_log=SUP_ping_services($forcedpings,get_permalink($id)).$SUP_output_log; # Try commenting the line above, and uncommenting this line below if pinging seems to be out of order. Please notify the author if it helps! # generic_ping(); } } } }else{ if (trim(get_option('ping_sites')) != ""){ $SUP_output_log=strftime("%D %T")."\tNOT Pinging services (WARNING: DISABLED BY ADMINISTRATOR)\n".$SUP_output_log; }else{ $SUP_output_log=strftime("%D %T")."\tNOT Pinging services (WARNING: EMPTY PING SERVICES LIST)\n".$SUP_output_log; } } SUP_log($SUP_output_log); } # More or less a copy of WP's "generic_ping" from functions.php, but uses another function to send the actual XML-RPC messages. function SUP_ping_services($forcedpings,$SUP_guid = ''){ $SUP_output_log=''; #$services = get_settings('ping_sites'); #UP - 17.07.07 - get_option is newer/better then get_settings $services = get_option('ping_sites'); $services = preg_replace("|(\s)+|", '$1', $services); // Kill dupe lines $services = trim($services); if ( '' != $services ) { $services = explode("\n", $services); foreach ($services as $service) $SUP_output_log=SUP_send_xmlrpc($forcedpings,$SUP_guid,$service).$SUP_output_log; } return $SUP_output_log; } # A slightly modified version of the WordPress built-in ping functionality ("weblog_ping" in functions.php). # Original version: #function weblog_ping($server = '', $path = '') { #global $wp_version; #include_once(ABSPATH . WPINC . '/class-IXR.php'); #// using a timeout of 3 seconds should be enough to cover slow servers #$client = new IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); #$client->timeout = 3; #$client->useragent .= ' -- WordPress/'.$wp_version; #// when set to true, this outputs debug messages by itself #$client->debug = false; #$home = trailingslashit( get_option('home') ); #if ( !$client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping #$client->query('weblogUpdates.ping', get_option('blogname'), $home); #} # This one uses correct extendedPing format (WP does not), and logs response from service. function SUP_send_xmlrpc($forcedpings,$SUP_guid = '',$server = '', $path = ''){ global $wp_version; $SUP_output_log=''; include_once (ABSPATH . WPINC . '/class-IXR.php'); // using a timeout of 5 seconds should be enough to cover slow servers (changed from 3 to 5) $client = new IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); $client->timeout = 5; $client->useragent .= ' -- WordPress/'.$wp_version; // when set to true, this outputs debug messages by itself $client->debug = false; $home = trailingslashit( get_option('home') ); # The extendedPing format should be "blog name", "blog url", "check url" (the new URL), and "feed url". # Related Website(s) # http://www.weblogs.com/api.html # An example: # Someblog - Title # http://spaces.msn.com/someblog - Home URL # http://spaces.msn.com/someblog/PersonalSpace.aspx?something - Check/New URL # http://spaces.msn.com/someblog/feed.rss - Feed # Changed the following line therefore: # if($client->query('weblogUpdates.extendedPing', get_settings('blogname'), $home, get_bloginfo('rss2_url'), get_bloginfo('rss2_url'))) if ($forcedpings){ # If this is a forced ping it's better to use a regular ping for the homepage without an update URL (safer) if($client->query('weblogUpdates.ping', get_option('blogname'), $home)){ $SUP_output_log=strftime("%D %T")."\t► [Regular Ping] ".$server." was successfully pinged\n".$SUP_output_log; if (get_option('SUP_pinglog') == 1){ $SUP_output_log=strftime("%D %T")."\t►► Blogname: '".get_option('blogname')."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Homepage: '".$home."'\n".$SUP_output_log; } }else{ $SUP_output_log=strftime("%D %T")."\t► ".$server." could not be pinged. Error message: “".$client->error->message."”\n".$SUP_output_log; } }else{ if($client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, $SUP_guid, get_bloginfo('rss2_url'))){ $SUP_output_log=strftime("%D %T")."\t► [Extended Ping] ".$server." was successfully pinged\n".$SUP_output_log; if (get_option('SUP_pinglog') == 1){ $SUP_output_log=strftime("%D %T")."\t►► Blogname: '".get_option('blogname')."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Homepage: '".$home."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Updated : '".$SUP_guid."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► RSS URL : '".get_bloginfo('rss2_url')."'\n".$SUP_output_log; } }else{ # pinging was unsuccessful, trying regular ping format if($client->query('weblogUpdates.ping', get_option('blogname'), $home)){ $SUP_output_log=strftime("%D %T")."\t► [Regular Ping] ".$server." was successfully pinged\n".$SUP_output_log; if (get_option('SUP_pinglog') == 1){ $SUP_output_log=strftime("%D %T")."\t►► Blogname: '".get_option('blogname')."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Homepage: '".$home."'\n".$SUP_output_log; } }else{ $SUP_output_log=strftime("%D %T")."\t► ".$server." could not be pinged. Error message: “".$client->error->message."”\n".$SUP_output_log; } } } return $SUP_output_log; } $post_title = ""; # Receives the title of the post from a filter below function SUP_post_title($title){ global $post_title; $post_title = $title; return $title; } # Log $logfile = ABSPATH . 'wp-content/plugins/ultimate-plugins-smart-update-pinger/ultimate-plugins-smart-update-pinger.log'; function SUP_log($SUP_log_output){ global $logfile; $logerror = 0; $fh = @fopen($logfile, "a"); if(false === @fwrite($fh, $SUP_log_output)){ update_option("SUP_error", 1); }else{ update_option("SUP_error", 0); } @fclose($fh); } function SUP_get_last_log_entries($num){ global $logfile; $lines = @file($logfile); if(get_option("SUP_error") == 1){ $fh = @fopen($logfile, "a"); if(false === @fwrite($fh, "")){ echo "Error writing log file (".$logfile."). Most likely your logfile (".$logfile.") is write-protected and no log data can be saved (change the rights of this file to 777), or alternatively this could mean that you have manually removed the log file, or that you have changed the directory or file name of the plugin (they both should be 'ultimate-plugins-smart-update-pinger')"; }else{ // Original: $lines = array_slice($lines, count($lines) - $num); // Modified to show in reverse order (easier for reading) $lines = array_reverse(array_slice($lines, count($lines) - $num)); $msg = ""; foreach($lines as $line){ $msg.=trim($line)."
"; } echo $msg; } @fclose($fh); }else{ if($lines === false){ echo "Error reading log file (".$logfile."). Most likely you have manually removed the log file, or alternatively this could mean that the logfile (".$logfile.") is read-protected (change the rights of this file to 777), or that you have changed the directory or file name of the plugin (they both should be 'ultimate-plugins-smart-update-pinger')"; }else{ // Original: $lines = array_slice($lines, count($lines) - $num); // Modified to show in reverse order (easier for reading) $lines = array_reverse(array_slice($lines, count($lines) - $num)); $msg = ""; foreach($lines as $line){ $msg.=trim($line)."
"; } echo $msg; } } } # adds a filter to receive the title of the post before publishing add_filter("title_save_pre", "SUP_post_title"); # shows the options in the administration panel add_action("admin_menu", "SUP_add_options_page"); # calls SUP_ping whenever a post is published add_action("publish_post", "SUP_ping_if_new"); # calls SUP_ping_draft when changing the status from private/draft to published # add_action("private_to_published', 'SUP_ping_draft'); # removes the "WordPress official" pinging hook remove_action("publish_post", "generic_ping"); # activates pinging if setting doesn't exist in database yet (before the user has changed the settings the first time) if(get_option("SUP_ping") === false){update_option("SUP_ping", 1);} if(get_option("SUP_pinglog") === false){update_option("SUP_pinglog", 1);} if(get_option("SUP_error") === false){update_option("SUP_error", 0);} ?> Gusty | Kite 2012
Saturday, June 22, 2024

Kite 2012

Kitesurfing News Year 2012-2016!

Perhaps the stupiest thing I’ve ever done…

Posted by kite2012 On June - 2 - 2012

You know the feeling when you havn’t been kiting for a while and then suddenly a day come when there is sun and wind… lots of wind! You can’t wait to get your ass to the water and have an awesome session! That day came to me yesterday. The forecast looked very promising in the morning, perfect conditions! The forecast for the afternoon showed that you could expect some serious strong wind coming in… Unfortunately I had to be in the school from morning to 1 pm. So when I finally was home after school, I grabbed my gear and rushed to the bus. To get to my local kite spot from the town where I live you have to change bus in another small town. So I jumped off the bus in the other small town and waited for the second bus, that didn’t come! I waited for 20 minutes, then I called the bus company. I was told that the bus already had left. Impossible, since I was at the bus stop at least 3 minutes before the time that the bus were suppose to leave. I got pissed off! the buses from the second bus stop only go once per hour, so I had two options. Either wait for 40 minutes or start walking to the kitespot, a walk that would have taken at least one hour… Then I got this “brilliant” idea. Why not walk to water and simply ride with my kite to the kitespot.


I started to walk. I reached the water about 15 minutes later, after crossing the highway and a field with fences and stinging nettles.
My plan was to perform a self launch with the kite, put my clothes and shoes in the kitebag and simply ride to the kitespot. So I rigged the kite and packed my bag. Everything was set! Only problem was that the wind was picking up and I could see some rain frontals out in the sea… I had to wait to a little bit. The front pasted and I saw my chance. I walked out in the water with the kite in my hand and my bag on my back. The self launch went well and I was up on the board, yeehaaa!

What I did not really take into account, or rather denied, was that I could get in trouble if the wind picked up a little… it was in my head of course, but it was a little too late to avert the insanity project… The problem was not only that the waves were pretty high and that the wind was strong and gusty. I could under no circumstances fall into the water since I had all my clothes in the bag on my back, including my iphone, keys, money, etc… The wind was so strong that the kite, a 9m Airush Varial X got bended and deformed due to the high wind pressure, though it was pumped to about 7.5 bar. When that happened, I had to bring down the kite to the surface and wait for the frontal to pass. I was on shallow water when this happened, so my bag was still quite dry.
Anyway, I continued my ride and everything went ok, until I reached a bay where I was forced to ride out several hundred metres to be able to pass a pier and a small lighthouse. I struggled to ride upwind in 3 metres high waves and was finally far out enough to be able to try to pass the lighthouse. However, a big fucking rain cloud was coming in and I thought to myself that this is a very bad idea, but this has to make or break!
Then it happened… The frontal was right over me and the wind was so strong that the kite got deformed again. I tried my best to ride downwind through the huge waves in high speed, but I had no chance to stay up on the board with the deformed and fully depowered above my head. I crashed into a wave and lost my board in the waves behind me. Trying to bodydrag upwind to reach the board would have been pointless in my situation, so I bodydragged downwind a few hundred meters until I reach the shallow water near the beach. I pulled the quick release and managed to reach my kite. I walked up on the beach and secured the kite with tons of sand. My board was lost in the ocean, but I figured that it would get washed ashore sooner or later. I was more worried about my bag, or rather all the stuff such as my iphone inside the bag, but it should be ok considering that I had put my iphone inside my jacket and the jacket inside a plastic bag. It is in this moment that it dawns on me, the bag is not on my back!!! I gaze out over the angry sea, but see nothing but water and waves… I also realize that one of my contact lenses is gone.
What to do now? Well, I got back in the water to search for my bag and my board. My worst fear was that the bag would have sunk to the bottom and I prayed to god that the pump still would be attached to the bag providing it with some buoyancy.

About an hour later I sight something black and round floating in the water, not to far from the beach, my bag!! Totally exhausted I waded through the water, up to the bag and lifted it up, what a feeling! I carried it back on land, like I was carrying a drowned person, the bag was safe! It turned out that one of the carrying straps had been ripped off when I crashed in the water and somehow it apperantly had slipped out from the other arm when I was tumbling around there for some seconds. Everything inside the bag was soaked, everything but a small piece of bread that was wrapped in a small plastic bag.

About 2 hours later I jump on a bus again, this time soaking wet and with an iphone that is completely dead!
I shake my head over my stupidity and I know that I only have myself to blame, but nothing bad without anything good. Now I have a good story to tell and the ground rule that you shouldn’t kite alone got another dimension for me. And hopefully some of you out there will learn something from a moron like me :)

Related External Links

Kitesurfing Course

Posted by kite2012 On November - 25 - 2011

Is it necessary to take a kitesurfing course?

In my opinion the answer is, without doubt, YES! Kitesurfing is known as a hazardous extreme sport, which is both true and false. In the end it all comes down to in what way you decide to surf. One can stick to kitesurfing in safe conditions and in a safe way. What I mean by this is that if you only go out with your kite in light wind conditions and if you are happy with just cruising back and forth, then you don’t have anything to worry about. The power generated by the kite depends on the size and the wind speed. Double the size of the kite and you get twice the power. Double the wind speed and you can multiply the power by four. In other words, as long as you’re not overpowered you´re most probably fine even if you crash.
Safety equipment will also greatly improve your safety. Use of a helmet and an impact west while surfing in light wind is like driving your car 30 mph with seatbelt and airbags. You really have to be unlucky to get injured in these conditions.

So why are we told that kitesurfing is hazardous?

Kitesurfing invite the majority of all surfers to keep pushing their limits. You end up riding overpowered faster and faster, jumping higher and higher. It’s fun and also a great feeling to jump so it’s natural that we push the limits. But as you get more experienced you also learn to handle speed and power which in turn makes you a safer rider. So the fact that the water is filled with crazy kitesurfers can’t really be applied to number of injuries.

So when are people getting injured?

Some accidents happen when advanced riders are making tricks and skimp on safety. We all know that only geeks were helmets and it´s cool to show of your tricks near the beach in shallow water. Sometimes certain riders have to pay for this style with broken ankles and wrists and dislocated knees.
However the worst accidents are those on land… crashing in the water is one thing. The water damp your landing pretty good even in shallow water. But crashing straight down to the ground can fuck you up quite bad, you can even die if you’re unlucky and hit a stone, tree, building etc.
Many of the accidents on land happen due to carelessness and insufficient knowledge about safe kitesurfing, things that you learn when you take a course…

How can I avoid getting injured?

If you read everything above this line you probably understand that I advise everyone to take a kitesurfing course. You might have a buddy that can teach you, but that is not recommended. Imagine step into a gym for the first time in your life. Would you prefer to get a lesson in weight lifting from an instructor rather than having your friend telling you some “good tips”? Your buddy might be a good kitesurfer, but will most likely teach you how to kitesurf in a way that reflects his own experiences with kitesurfing. There is a good chance that he doesn’t point out the importance of how to use the safety system or show you how to launch and land in an inappropiate way or why you should avoid launching and landing behind sand dunes, hills, infront of obstacles etc.

For some good information on kitesurfing rules, equipment, hand signals, wind window eth. check out Gusty. Click on the links next to the girl.
This page also has some great information about kitesurfing kurs. It’s in swedish, but hey we all know how to use google translate, right? :)

Related External Links

Kiteschool in Sweden

Posted by kite2012 On November - 16 - 2011

Are you planning to take a kite course next season? Perhaps are you going to kitesurf in Sweden? There are some really nice spots in the southern part of Sweden, such as Habo Ljung, Falsterbo, Varberg, Höllviken, just to mention a few.

Perhaps are you a total beginner who is looking for a course or maybe would you like your girlfriend to start kitesurf as well?

If so, I would like to recommend Gusty, a kiteschool that is run by a nice guy called Gustav. I took my course through him this season and I’m very happy with his way to teach and a big plus is the delicious lunch that was included in the course.

Tom’s kitchen episode 4

Posted by kite2012
May-14-2016 I Comments Off on Tom’s kitchen episode 4

We Love Kiteboarding

Posted by kite2012
Apr-22-2015 I Comments Off on We Love Kiteboarding

Te Tainui Kitesurfing Video by F-One

Posted by Emma Pat
Nov-19-2014 I Comments Off on Te Tainui Kitesurfing Video by F-One

Red Bull King of the Air 2015 – Rule the Sky

Posted by Emma Pat
Nov-17-2014 I Comments Off on Red Bull King of the Air 2015 – Rule the Sky

A new video from Kite 2013

Posted by kite2012
Mar-20-2013 I Comments Off on A new video from Kite 2013

What do to when it´s not too windy

Posted by kite2012
Oct-11-2012 I Comments Off on What do to when it´s not too windy

How to film yourself while kitesurfing

Posted by kite2012
Oct-6-2012 I Comments Off on How to film yourself while kitesurfing

Kiteloop Crash

Posted by kite2012
Sep-22-2012 I Comments Off on Kiteloop Crash

Cross the Atlantic ocean by a kite!

Posted by kite2012
Sep-21-2012 I Comments Off on Cross the Atlantic ocean by a kite!