HTML5 Video

Install OS X pkg from command line

sudo installer -pkg package_name.pkg -target /

Technology:

Customizing Bash

SASS

AirPrint

Apple Remote Desktop

Send UNIX Command

  • Get Hardware UUID from the client:
    system_profiler|grep "Hardware UUID" | awk '{print $3}'
  • Repair disk permissions:
    diskutil repairPermissions /
  • Open Source CalDAV and CardDAV Servers

    Transfer iPhone data back to a Mac

    Stop image bandwidth theft

    Prevent other websites from stealing your bandwidth by including your images in their pages.

    • Apache
      This example services up a different image instead:

      RewriteEngine On
      RewriteCond %{HTTP_REFERER} !^http://(www\.)?example\.com [NC]
      RewriteCond %{HTTP_REFERER} !^$
      RewriteCond %{HTTP_REFERER} ^http://.*$
      RewriteRule \.(jpe?g|gif|bmp|png)$ /media/nohotlinks.png [L]
    • Lighttpd
      $HTTP["referer"] !~ "^(http://example\.com|http://www\.example\.com)" {
        $HTTP["referer"] != "" {
          url.access-deny = ( ".jpg", ".jpeg", ".png", ".gif", ".pdf" )
        }
      }

    Managing Code Snippets

    Utilities for managing snippets of code

    Technology:

    Pages

    Subscribe to Production Monkeys RSS

    Recent Updates

    Error | Production Monkeys

    Error

    The website encountered an unexpected error. Please try again later.

    Error message

    • Warning: Cannot modify header information - headers already sent by (output started at /var/websites/dwadson.com/htdocs/drupal-7.32/includes/common.inc:2694) in drupal_send_headers() (line 1224 of /var/websites/dwadson.com/htdocs/drupal-7.32/includes/bootstrap.inc).
    • PDOException: SQLSTATE[HY000]: General error: 145 Table './productionmonkeys/watchdog' is marked as crashed and should be repaired: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:215:"SQLSTATE[HY000]: General error: 145 Table './productionmonkeys/watchdog' is marked as crashed and should be repaired: SELECT w.wid AS wid FROM {watchdog} w ORDER BY wid DESC LIMIT 1 OFFSET 999; Array ( ) ";s:9:"%function";s:12:"dblog_cron()";s:5:"%file";s:71:"/var/websites/dwadson.com/htdocs/drupal-7.32/modules/dblog/dblog.module";s:5:"%line";i:113;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://www.productionmonkeys.net/ [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 192.168.0.104 [:db_insert_placeholder_9] => 1462278437 ) in dblog_watchdog() (line 160 of /var/websites/dwadson.com/htdocs/drupal-7.32/modules/dblog/dblog.module).