Submitted by Guaka on November 25, 2010 - 17:50
Submitted by Guaka on July 20, 2010 - 13:17
Very useful when moving towards Features:
DELETE FROM blocks WHERE theme = 'your_theme_name';
From drush sql-cli
, of course.
This is especially useful when building a subsite, for which I'm now mostly convinced by Sections.
Submitted by Guaka on June 25, 2010 - 02:07
Quick and dirty PHP script to turn a CSV file into a table in a MySQL database. Used for a Drupal project, so I ran it with drush php-script. Couldn't find anything better online. Feel free to use it.
If I need it again some time I will probably make it a bit nicer (I might also make it nicer if you ask me nicely and/or pay me to do it).
In the project I'm using it, I first converted an .mdb file to .csv with mdbtools.
<
pre>
<?php
$handle = fopen("/tmp/test.csv", "r");
$headers = fgetcsv($handle);
Submitted by Guaka on June 22, 2010 - 01:44
This took me enough time to get right to post a little blog post about it:
RewriteEngine on
RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} (shared|Shared|download|Download)/[A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]
Note that this doesn't work in .htaccess - you have to put it higher up in the Apache configuration.
Submitted by Guaka on May 4, 2010 - 19:51
I'm working on a project to convert a big ASP website into Drupal. On Windows OSes there is not really a distinction between upper and lower case characters in filenames. At first I thought to just leave the capitals, but on web pages links were sometimes with capitals and sometimes lowercase. So I added some stuff to the Apache configuration, usually inside the VirtualHost directive (this does not work in .htaccess):
<
pre>
RewriteEngine on
RewriteMap lc int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
Submitted by Guaka on March 20, 2010 - 20:59
Submitted by Guaka on February 23, 2010 - 20:53
This month I found out about the free software advertising network. I took the opportunity of moving my blog to Drupal to add ads for ethical computing, approved by the Free Software Foundation: "The Free Software Community now has an ethical alternative to ad networks that promote proprietary software".
Damn, I'm even tempted to click on these ads myself!
Submitted by Guaka on February 22, 2010 - 16:40
WordPress is a great blogging platform. I've been using it for a couple of years now for my blog. However, with some small exceptions I haven't really dived deeper into it. Since most of my professional time (and a lot of my hobby time) goes into Drupal I started looking into moving my blog to Drupal. I've also been thinking about how I want to publish more about the work I've been doing.
Submitted by Guaka on February 1, 2010 - 01:06
Submitted by Guaka on January 25, 2010 - 01:50
Sites that show up quickly on a user's screen tend to keep the user's attention for longer and also rank better in Google. So when listening to the excellent
Lullabot Podcast 80: Top 40 Drupal Modules Revisited I was caught by Drupal experts stating that Memcache would even speed up your site if it's not a high traffic site. It could off-load the database. I decided to give it a try on a relatively low traffic
site of one of my clients.
Pages