frank's blog

Calais for Drupal 2.0

Today Phase2 Technology, in association with Thomson Reuters, launched a big update to the set of Calais for Drupal modules. This marks the first of many feature sets to be released through the end of the year and beyond. These releases are intended to be part of a larger toolset for publishers and large content providers using Drupal. These latest updates are largely focused on the end-user and appeal to publishers. We think they will be useful to all Drupal developers, though, as well as those interested in Semantic technology.


Troubles with Drupal, File Uploads, and XAMPP

Ever tear your hair out for hours trying to track down why something is not working, only to find out that it is the simplest thing? Well, after losing a large chunk of my life that is never to return, I am happy to say that it is solved.

While doing some module development on my Mac using xampp, I was running into the problem that file uploads to nodes, either via upload.module or CCK filefield was not working at all. Not in D5, not in D6. Nothing I could do or think of would solve it. Nothing on Google or any other search engine despite my myriad of search terms.

After literally hours trying all I could think of, debugging PHP, JavaScript, etc, I finally found out that Irakli was having the same problem and swooped in to the rescue. Turns out that it was a configuration parameter that was left to “default” in php.ini. By default

; Temporary directory for HTTP uploaded files (will use system default if not specified).
;upload_tmp_dir =

Was not actually using a valid system default as best we can tell. Simply changing it to

; Temporary directory for HTTP uploaded files (will use system default if not specified).
upload_tmp_dir = /tmp

fixed all if our upload woes and we were back in business.

Now, can I have that last half a day of my life back?


What is Phase2 up to?

With all of the recent hoopla we have been stirring up on our blog and in the Drupal community about the Drupal Calais modules, it is easy to lose track of all the other fantastic things we have been doing here at Phase2. Here is a quick rundown of some of our latest projects.


HOWTO: Install PECL APC Cache on CentOS (without XAMPP)

As Irakli already discussed, the Alternative PHP Cache (APC) is an op-code pre-compiler and a cache system that can boost the performance of a PHP application up to 10 times. Op-code caches are very effective for a Drupal website, since Drupal deals with large number of source files and time spent in parsing them significantly affects performance.

However, if you don’t have XAMPP and need to install it on CentOS, you can follow this guide to get around some of the problems that happen with the default server settings.


DrupalCon plan of attack

Tagged:  

DrupalCon 2008 Boston starts on Monday and it looks like a great lineup. Registration has just sold out at 800 attendees. After years of being a JavaOne participant, I am interested in seeing this burgeoning project’s first big conference. There is a ton of optimism building off of the release of Drupal 6, and things are setup nicely for a great experience. Here are events I plan to attend.


Remove a Drupal tab

Tagged:  

Have you ever been looking at a page on your Drupal site (like the login page) and wanted to remove a pesky tab (like the “Request a new password” tab), but could not figure out how to do it? Me neither, until recently. I went spelunking through the Drupal and theming core and uncovered some gems.


Fixing delete should mean backspace in iTerm

Tagged:  

How frustrating is it when you are in vi and hit the backspace key and all it does is insert ????^? into your text file? I have run into this problem during my conversion from XP to OS X. I do a vast majority of my work on remote Linux machines – thus am a slave to SSH. I begrudgingly admit that I love VI….except for problems like this.


Growing up to be a CTO

Where do Chief Technical Officers come from? Are they grown on trees? Are they hatched on a CTO farm?

Many times they are grown from architects, engineers or developers. However, the CTO role can represent a drastic shift from what most production-oriented technical practitioners are prepared for or expecting. How are these growing pains best overcome?


Paging blocks with AJAX Views

Tagged:  

Drupal Views are a fairly wonderful creation. They allow all kinds of usable, well….VIEWS, of your data in a Drupal site. They allow you to view your data either as a page or a block (or an RSS feed, etc), however one thing was was lacking was the ability to page content within a view block. The default view blocks provide you simply with a “more” link that will take you to the full blown page view. That was not working for us, or one of our clients and something has to give.


Drupal Modules phone home!

Tagged:  

At Phase2, as we develop more and more Drupal Platforms (more on this another time) we wind up with many custom modules that are not contributed back to drupal.org. They are either too tied to a specific client, or something that is not ready for general consumption, or frankly, the client might see as a strategic competitive advantage. Regardless of the reason, for modules not hosted on drupal.org you lose some ability to have the wonderful update_status module provide info to your site implementations when the custom modules are out of date….or so I thought.


Syndicate content