Random Cool Photo

September 14, 2008 – 8:45 pm [SinglePic not found]

How many reflections can you find?

Jquery: Selected Drop Down Entry Shows/Hides Other Fields

September 9, 2008 – 9:26 am

 
// type is the dropdown that controls what get displayed.
// folder_drop, radiologist_drop, and resend_box
// get displayed based on the selected value of type.
// This mapping is done in the if/else statements.
// The first time is for when the page loads,
// the second time is when type changes.
//
// The mapping to selected values and id should be put
// into a function so you would only need to change it
// in one place.
function hide_all() {
  $("#folder_drop").hide();
  $("#radiologist_drop").hide();
  $("#resend_box").hide();
}
 
$(document).ready(function() {
 
  hide_all();
 
  if($("#type").val().indexOf("Folder") != -1) {
    $("#folder_drop").show();
  }
  else if($("#type").val().indexOf("Radiologist") != -1) {
    $("#radiologist_drop").show();
  }
  else if($("#type").val().indexOf("ReSend") != -1) {
    $("#resend_box").show();
  }
 
  $("#type").change(function(){
    hide_all();
    if($(this).val().indexOf("Folder") != -1) {
      $("#folder_drop").show();
    }
    else if($(this).val().indexOf("Radiologist") != -1) {
      $("#radiologist_drop").show();
    }
    else if($(this).val().indexOf("ReSend") != -1) {
      $("#resend_box").show();
    }
  });
}
);
 

PHP: Return a percentage based hex color between two other colors. (FADE!)

September 5, 2008 – 10:25 am

  1.  
  2. function get_color($start, $end, $percent) {
  3.  
  4. $r1=hexdec(substr($start, 0, 2));
  5. $g1=hexdec(substr($start, 2, 2));
  6. $b1=hexdec(substr($start, 4, 2));
  7.  
  8. $r2=hexdec(substr($end, 0, 2));
  9. $g2=hexdec(substr($end, 2, 2));
  10. $b2=hexdec(substr($end, 4, 2));
  11.  
  12. $pc = $percent/100;
  13.  
  14. $r = floor($r1+($pc*($r2-$r1)) + .5);
  15. $g = floor($g1+($pc*($g2-$g1)) + .5);
  16. $b = floor($b1+($pc*($b2-$b1)) + .5);
  17.  
  18. return(sprintf('#%02X%02X%02X', $r, $g, $b));
  19. }
  20.  
  21. // Shows all of the colors between $start and $end at ten percent intervals.
  22. function color_scale($start, $end, $max = 'red') {
  23.  
  24. $i = 0;
  25.  
  26. $str = "
  27. <table border=0>
  28. <tr>";
  29.  
  30. for($i = 0; $i < 101; $i += 10) {
  31. $color = get_color($start, $end, $i);
  32. $str .= "
  33. <td bgcolor=$color>$i</td>
  34.  
  35. ";
  36. }
  37.  
  38. $str .= "
  39. <td bgcolor=$max>M</td>
  40.  
  41. ";
  42. $str .= "</tr>
  43. </table>
  44.  
  45. ";
  46. return($str);
  47. }
  48.  

KLR 650: Jardine Exhaust, Continental TKC 80 Tires

August 18, 2008 – 7:10 pm

Jardine Aluminium Slip On Exhaust

[SinglePic not found]

Here is how the old exhaust sounded

YouTube Preview Image
(not my video)

Here is how the new exhaust sounds, sort of. My camera couldn't capture the bass.

YouTube Preview Image

My original exhaust was having baffle problems, instead of replacing it with a stock exhaust, I thought why not take a step up? The Jardine exhaust has a nice sound without being too loud. It's certainly lighter than the stock exhaust. The KLR has a bit more pep too.

Continental TKC 80 Tires

[SinglePic not found]

These tires are supposedly %60 off/%40 on, which worried me, but I was able to easily keep up with the sport bike crew on AR-71. I don't have much to compare the off road abilities of the tires too, except to say I like them better than the stock tires. The sure footed feeling from the Contis is nice. Hitting the rear brake stops the bike instead of sliding the back end around.

I had to test my new toys out.

[SinglePic not found]

The above is 3.5 hour drive through dirt roads no one ever goes on. I didn't see any cars at all. Most of the trip was spent winding up and down narrow mountain roads with a cliff face of solid rock on one side, and couple hundred feet drop on the other.

[SinglePic not found]

I’m Only Happy When I Hurt a Person

July 31, 2008 – 8:06 am

These photos prove it.

[SinglePic not found] [SinglePic not found]

PHP: Get all of the dates between two dates

July 24, 2008 – 10:24 am

I'm having trouble explaining this...

This function returns an array of all of the days between two dates. EG: Give it 2008-07-23 and 2008-07-25, and it will return an array containing, 2008-07-23, 2008-07-24, and 2008-07-25.

If you give it an interval, like years, it will give you an array of dates, on per year, between the two dates you specify.

 
// An array of days between two days, intervals is days, weeks, months, years
function get_days($start, $end, $interval = 'days') {
 
  $days[] = $start;
 
  $current = $start;
 
  while($current < $end){
    $current = gmdate("Y-m-d", strtotime("+1 $interval", strtotime($current)));
    $days[] = $current;
  }
 
  return $days;
}
 



thevedic.net

Part of the thevedic.net.
[Contact Me] - [Mud Emporium] - [Ozark, AR] - [See my Port?]

This site is in no way represents the opinions or positions of any company or organization including those who employ the creators of this web site. We're not responsible for the content, posts, responses by other users or ideas of any sites that are linked to on this page. This site is recommended for ages 18 and up.

VEDIC VEKO IS PROSPEROUS

Arkie Imports | Dean Vaughan | Dean Vaughan | K. Dean Vaughan | Kenneth Vaughan | Pig Trail 23 | Pig Trail Pics | See My Port Forward Info | See My Port Forward Info


I'm not affiliated with the following in anyway.
Arkansas MMA - Inferno Mixed Martial Arts - Inferno Martial Arts Club - Inferno Martial Arts Club - Official Inferno Fight Gear - Inferno Fight Equipment - Inferno Combat Gear - IFC Online - Inferno Fight Gear - Inferno MMA - Inferno Fight Gear