Holger Hubbs's Profile

Member since Apr 10, 2009, follows 0 people, 0 public groups, 31 public bookmarks (33 total).

More »
Tags

Recent Tags:
Top Tags:

More »
Recent Bookmarks and Annotations

  • PHP: imagejpeg - Manual on 2009-10-14


    • <?php



      function photoCreateCropThumb ($p_thumb_file, $p_photo_file, $p_max_size, $p_quality = 75) {

       

         
      $pic = @imagecreatefromjpeg($p_photo_file);



          if (
      $pic) {

             
      $thumb = @imagecreatetruecolor ($p_max_size, $p_max_size) or die ("Can't create Image!");

             
      $width = imagesx($pic);

             
      $height = imagesy($pic);

              if (
      $width < $height) {

                     
      $twidth = $p_max_size;

                     
      $theight = $twidth * $height / $width;

                     
      imagecopyresized($thumb, $pic, 0, 0, 0, ($height/2)-($width/2), $twidth, $theight, $width, $height);

              } else {

                     
      $theight = $p_max_size;

                     
      $twidth = $theight * $width / $height;

                     
      imagecopyresized($thumb, $pic, 0, 0, ($width/2)-($height/2), 0, $twidth, $theight, $width, $height);

              }



             
      ImageJPEG ($thumb, $p_thumb_file, $p_quality);

          }



      }



      ?>
  • StringFoo :: Web Development Resources » Tips & Tricks on 2009-10-13
    • export PATH=/Applications/MAMP/bin/php5/bin:$PATH
  • Umbrello on Mac OS X on 2009-10-10
    • tar jxf umbrello-1.5.7beta1.tar.bz2

      cd umbrello-1.5.7beta1


      ./configure --prefix=/opt/local --with-qt-includes=/opt/local/include/qt3/ --with-qt-libraries=/opt/local/lib/qt3/ --with-extra-libs=/opt/local/lib --with-extra-includes=/opt/local/include --without-arts


      make


      sudo make install

  • jQuery UI - Demos & Documentation on 2009-10-10
    • jQuery(document).ready(function(){
      $('.accordion .head').click(function() {
      $(this).next().toggle();
      return false;
      }).next().hide();
      });
  • Placeholders used by MODx Pages and Templates - MODx Wiki on 2009-10-01
    • [+placeholder_name+]
  • untitled on 2009-09-30
    • http://www.modx.wangba.fr/index.php?id=180
  • AjaxSearch - MODx Wiki on 2009-09-30
    • Search Highlight plugin installation
    • Search Highlight plugin installation
  • 10+ Mod_Rewrite Rules You Should Know on 2009-08-19
      • Set up a Default Image


        Using a default, backup image in case of broken images can make your site look more professional. Use the following code to redirect to a default image for any image whose file cannot be found.


        1. RewriteCond %{REQUEST_FILENAME} !-f  
        2. RewriteRule ^images/.*\.jpg$ /images/default.jpg [L]  

        Of course, you can change the “.jpg” bit to whatever file type you’re using. Make sure you have an image called “default.jpg” or change that to whatever your default image filename is.

  • International Fascia Research Congress - About Fascia on 2009-07-29
    • One reason why fascia has not received adequate scientific attention in the past decades is that this tissue is so pervasive and interconnected that it easily frustrates the common ambition of researchers to divide it into a discrete number of subunits which can be classified and separately described. In anatomic displays the fascia is generally removed, so the viewer can see the organs nerves and vessels but fails to appreciate the fascia which connects, and separates, these structures.
  • TED Fellows 2009 - Home on 2009-07-05
    • A recent report by Credit Suisse estimates that YouTube’s bandwidth costs in 2009 will be three hundred and sixty million dollars.

More »
Bookmark Lists

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo