WordPress database error: [Can't open file: 'wp_comments.MYD'. (errno: 144)]
SELECT ID, COUNT( comment_ID ) AS ccount FROM wp_posts LEFT JOIN wp_comments ON ( comment_post_ID = ID AND comment_approved = '1') WHERE ID IN (161,123,122,121,120,119,118,117,116,114) GROUP BY ID


Warning: Cannot add header information - headers already sent by (output started at /home/curioso/public_html/wordpress/wp-includes/wp-db.php:98) in /home/curioso/public_html/wordpress/wp-atom.php on line 10
Curioso! Curiosity killed the cat 2009-12-27T15:34:22Z Copyright 2009 WordPress Curioso <![CDATA[Snapshots using rsync on Mac]]> http://www.curioso.org/2009/12/27/snapshots-using-rsync-on-mac/ 2009-12-27T15:32:48Z 2009-12-27T15:32:48Z Mac I got fed up with Time Machine not backing up my iPhoto library. If I keep iPhoto running, it does not back up at all; if I quit iPhoto, it still will not make a full backup because I have a screen saver running with the Last Month smart folder, and this apparently locks out the last month of photos from being backed up. Also Time Machine will not back up from remote file systems.

So I looked around for a backup solution based on rsync. These solutions are around:

I mixed these together in my own script that can be called daily from crontab. It cycles through 7 daily backups and 8 weekly backups. Here is the script.

]]>
Curioso <![CDATA[Use of Creative Zen with a Mac]]> http://www.curioso.org/2008/07/11/use-of-creative-zen-with-a-mac/ 2008-07-11T14:42:05Z 2008-07-11T14:42:05Z Mac The Creative Zen mediaplayer is not directly supported on the Mac. I use the following software to transfer media to it:

Note: to access the SD memory card in the Zen you do not need any additional software. You must enable it as a removable drive on the Zen and then it will appear as an USB drive on the Mac when connected.

]]>
Curioso <![CDATA[PictPress Thumbs]]> http://www.curioso.org/2008/01/03/pictpress-thumbs/ 2008-01-03T14:53:21Z 2008-01-03T14:53:21Z PictPress PictPress Thumbs is a WordPress plugin for dynamically resizing images, maintaining a cache of resized images separate from the images themselves. It is part of the new PictPress implementation.

PictPress Thumbs offers the following functionality:

  • An options pages where:
    • names for standard image sizes can be defined. Each size is either a proportional resize of an image or a resize and crop of an image. Predefined standard names are thumbnail for the WordPress thumbnail images and picture for the images WordPress shows on attachment pages.
    • a permalink structure for resized images can be defined.
    • names for captions that can be added to images.
    • names for styles to use for image display (like left aligned, right aligned, etc).
  • A replacement for the browse tab in the upload section of the write page, where a choice can be made from the predefined standard sizes, captions, and styles for images that are inserted in the post.
  • A cache directory separate from the images where copies of the resized images are stored.

Sizes can be specified as WxH for resizing and WxHcXxY for resizing and cropping. WxH means the image is made smaller to just fit in a rectangle of that size. WxHcXxY means the image is made smaller to just cover a rectangle of W+2*X by H+2*Y completely, then it is cropped to a rectangle of WxH.

The permalink structure by default is based on the permalink structure WordPress uses for attachments, which is %parent%/%attachment%, where %parent% is the permalink of the parent post of the attachment and %attachment% is the name of the attachment (derived from its title). For images we use as permalink %parent%/%attachment%/%size%.%ext%, where %size% is the name of one of the standard sizes and %ext% is the extension (e.g. jpg).

Captions can be defined in terms of attributes associated with an image, like title, description, date, etc.

]]>
Curioso <![CDATA[PictPress - progress report]]> http://www.curioso.org/2008/01/03/pictpress-progress-report/ 2008-01-03T13:35:19Z 2008-01-03T13:35:19Z PictPress I am working on a complete rewrite of my PictPress plugin for WordPress. PictPress is intended for a way of working where you upload images to your website outside the WordPress admin user interface, e.g. via ftp, shared directories, etc. PictPress offers an easy way of including these images in a new post.

PictPress will be split up in four relatively independent parts:

  • Thumbs, a plugin for dynamically resizing images, maintaining a cache of resized images separate from the images themselves. It also changes the browse tab of the upload section of the write page to provide selection of several sizes and styles of images.
  • AutoText, a plugin to automatically generate a table of content for attachments, posts, or pages.
  • Subposts, a plugin to make a hierarchy of posts.
  • PictPress itself, which now is just an automatic way of attaching a previously uploaded image or directory of images to a post. This will be done in a new tab added to the upload section of the write page.

This offers a much better integration with the WordPress attachment functionality.

Thumbs and Subposts are well along the way, Pictpress will follow soon.

]]>
Curioso <![CDATA[Quick Look plugins]]> http://www.curioso.org/2007/12/16/quick-look-plugins/ 2007-12-16T12:46:13Z 2007-12-16T12:46:13Z Mac Info Quick Look is new functionality added in Mac OS X 10.5 Leopoard. It is activated by pressing the space bar in Finder.

The qlgenerator files should be installed in the /Library/QuickLook folder. Finder should be relaunched after install.

]]>
Curioso <![CDATA[Handbook of Applied Cryptography]]> http://www.curioso.org/2007/12/16/handbook-of-applied-cryptography/ 2007-12-16T10:41:30Z 2007-12-16T10:41:30Z Books
This book provides a detailed and comprehensive overview of applied cryptography. Designed for reference and browsing, the authors still intend that a front-to-back read have some merit. Chapters can be freely downloaded.

Alfred J. Menezes, Paul C. van Oorschot and Scott A. Vanstone
Handbook of Applied Cryptography
CRC Press; Fifth Printing (August 2001); 816 pages
ISBN: 0-8493-8523-7

Table of contents

  1. Overview of Cryptography
  2. Mathematical Background
  3. Number-Theoretic Reference Problems
  4. Public-Key Parameters
  5. Pseudorandom Bits and Sequences
  6. Stream Ciphers
  7. Block Ciphers
  8. Public-Key Encryption
  9. Hash Functions and Data Integrity
  10. Identification and Entity Authentication
  11. Digital Signatures
  12. Key Establishment Protocols
  13. Key Management Techniques
  14. Efficient Implementation
  15. Patents and Standards

]]>
Curioso <![CDATA[PictPress 0.91 vulnerability]]> http://www.curioso.org/2007/12/07/pictpress-091-vulnerability/ 2007-12-07T15:11:27Z 2007-12-07T15:11:27Z PictPress It just came to my attention that PictPress 0.91 has a vulnerability for website attacks caused by an unvalidated argument to the resize.php script. As far as I know this vulnerability has been fixed from version 0.99 upwards. All users of the older version should upgrade or remove the plugin from their website.

If there are still vulnerabilities in the newer versions, please let me know.

]]>
Curioso <![CDATA[Experience with upgrade to Mac OS 10.5 Leopard]]> http://www.curioso.org/2007/10/28/experience-with-upgrade-to-mac-os-105-leopard/ 2007-10-28T09:41:29Z 2007-10-28T09:41:29Z Mac I did an upgrade yesterday, and this did not go smoothly, Leopard bit me hard:

  1. After the upgrade, the login screen showed all my users, but it refused my password. This issue is described on Apple Support: Unable to log in to account after an upgrade install. Repairing it requires booting to single user mode (press cmd-S during boot) and then enter this non-trvial sequence of commands:
    mount -uw /
    launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
    dscl . -delete /Users/curioso AuthenticationAuthority
    passwd curioso
    

    and type in twice the password that you already had.

  2. After the upgrade the user interface freezes of my new iMac 24 inch got very bad. I had one or two freezes before the upgrade, which was not too bad. But now the freeze seemed to happen anytime I went to the dock to unhide it. I set the dock to not hide automatically, which seems to help.
    Update: dock hiding probably has nothing to do with it. I booted in safe mode, and this disables the ATI graphics card device driver.
  3. Quartz Composer does not seem to recognize my video card, so most screen savers do not work. Still struggling with this one.
    Update: this is because I booted in safe mode, and then the graphics driver is disabled.

Update (3-nov-2007): I applied the iMac 1.3 update, but the freezes persist. The problem is clearly related to the ATI Radeon HD 2600 GPU that is used in the iMac.

Update (15-nov-2007): Freezes were fixed by the Apple iMac graphics firmware update 1.0.

]]>
Curioso <![CDATA[VNC]]> http://www.curioso.org/2007/09/05/vnc/ 2007-09-05T16:10:26Z 2007-09-05T16:10:26Z Mac Info VNC server for Mac:

VNC client for Mac:

]]>
Curioso <![CDATA[Mac Intel driver for HP Deskjet 840C]]> http://www.curioso.org/2007/09/04/mac-intel-driver-for-hp-deskjet-840c/ 2007-09-04T09:35:02Z 2007-09-04T09:35:02Z Mac After upgrading to an Intel iMac, my HP Deskjet 840C started to produce garbled output. Fonts were too large and clipped at the bottom. Apparently the HP Deskjet 3.3 driver is broken on Intel computers. Solution is to download and install the HP Deskjet 2.7.1 driver. This is a PPC driver and will work via Rosetta, but output looks good.

]]>