• Home

  • Custom Ecommerce
  • Application Development
  • Database Consulting
  • Cloud Hosting
  • Systems Integration
  • Legacy Business Systems
  • Security & Compliance
  • GIS

  • Expertise

  • About Us
  • Our Team
  • Clients
  • Blog
  • Careers

  • CasePointer

  • VisionPort

  • Contact
  • Our Blog

    Ongoing observations by End Point Dev people

    Three Things: Photography, Facebook on WordPress, and the watch command

    Steph Skardal

    By Steph Skardal
    April 11, 2012

    1. Photography News

    There’s been some recent news in the photography space. Adobe announced Photoshop CS6, and Lightroom 4, and Adobe Photoshop Touch recently. The Lytro Light Field camera has picked up recognition lately. The new Nikon D4 recently became available, as well as the Canon 5D MK III, both high end DSLRs.

    2. Facebook Comments for WordPress

    Last week, I was working on WordPress development for The Best Game Apps, and I came across a strange Facebook integration error about compatibility mode, show in the screen below:

    The site uses the WordPress plugin Facebook Comments for WordPress. After some research, I decided to dig into the Facebook documentation and the code to make the following change myself to specify the post URL as the href attribute in the facebook markup:

    219c219
    -    echo "\t<fb:comments xid='$xid' url='$postUrl' $siteisdark ",
    +    echo "\t<fb:comments xid='$xid' href='$postUrl' url='$postUrl' $siteisdark ",
    

    In the context of:

    219                     echo "\t<fb:comments xid='$xid' href='$postUrl' url='$postUrl' $siteisdark ",
    220                         "numposts='{$fbc_options['numPosts']}' ",
    221                         "width='{$fbc_options['width']}' ",
    222                         "publish_feed='$publishToWall' ",
    223                         "migrated='1'></fb:comments>";
    

    With this change, the Facebook error message disappeared and all appeared to be working as expected. I’m surprised that this hasn’t been fixed in the plugin itself, and the documentation wasn’t extremely helpful. Sometimes the best option is to go right to the code. And of course, I’m recording this so I can revisit it if it breaks again with a WordPress plugin upgrade.

    3. The watch Command

    I was talking to Jon recently about monitoring disk usage and he mentioned the watch command. Specifically, the watch command might be a good tool to monitor disk usage if you expect to see the disk fill up quickly while you are actively developing on it. I’m always learning random tips from End Point’s sysadmin experts, and this one may come in handy at some point.

    tips


    Comments