Nutritional panels

Image uploaded by Dan Eveland on 01/08/2012 - 20:07

I was putting some nutritional info in a story using HTML as the input filter. It was a real pain in the ass and I thought to myself: "self, someone must have done this before". And that smart-ass 'self' was, in fact, correct. I copied the HTML into the node, and added the associated stylesheets to my local.css for my theme (in my case, Mix and Match) and I was done!

http://www.jonathoncihlar.com/index.php?Post=nutritiontemplate&Locale=en

Problem with Facebook PHP SDK and Drupal

There seems to be a major issue with the new FaceBook SDK and Drupal's various Facebook modules. As of right now, if my page keeps refreshing, open a new window and log into Facebook. Then my site will stop refreshing. Sorry about that. If you don't use Facebook as your login method on my site, then you should be fine. The lesson here: read the module bug list before upgrading to the newest shiny third-party libraries. Fixes for this issue seem to be baffling the developers at drupal.org.

Magic text cleaner for iOS coders

Dirty text. No one likes it, but it happens. Mysterious errors from code that looks perfect. I had wasted a lot of time copying and pasting text from places like php.net into Textastic and having the code not work at all. It turns out when I copy the text in Safari, it is grabbing characters that php does not like. Unfortunately there seems to be no text cleaners out there at all for iOS. I considered bugging the developer of Textastic for a feature BBEdit has called "Zap Gremlins", but I didn't. I may bug him to add a feature later, but for now I have made this work-around.

Easy setup of Drupal

Image uploaded by Dan Eveland on 09/28/2011 - 20:22

Very often, I am faced with the prospect of setting up Drupal on a brand new system. After going about it the hard way dozens of times (if your google search for Linux commands for installing Drupal is still in you google recent searches, it's a sign you might need to make some notes), I finally sat down and documented every command needed on Ubuntu 10.04 to install Drupal and Drush from scratch. You will need root access, or just add sudo in front of each command (including after the pipe on the wget line). These instructions work great on fresh Linodes, by the way.

Uploading Images to Drupal from the iPad

Image uploaded by Dan Eveland on 07/18/2011 - 10:59

Since I now replaced the use of a conventional computer with an iPad for my development and content creation, I needed an easy and quick way to post images from my iPad to my blog on Drupal 6. I use PhotoForge2 as my image editing app on my iPad (very nice app, and I even bought the extra filter package). It works great, but getting the images to Drupal was a major pain involving emailing myself files, which is a sure sign of a not-so-good process. Therefore, a more efficient solution was desperately needed to get image content directly from the iPad to Drupal.

Syndicate content