Blog

read more

Views - Filtering Nodes by Date

Quite often you need to display a list of nodes filtered by a date. A common scenario is you'll have an "events" content type and you only want to display events that haven't already taken place.

So you've created your content type and added a date field using CCK. Your view is set up to filter on "event_date is greater than or equal to now()". This should work just fine, if in your event_date field settings, you've included hour, minute and second granularity.

Posted in

read more

Interview with Dries Buytaert - Founder and Project Lead of Drupal

Catch this great interview by Noel Noneck with Dries Buytaert...

Posted in

IE Win Extra Vertical Space in Empty Divs

IE/Win likes to make head room for text in empty divs, one way to compress the extra vertical space added by IE is set font-size: 1px;

Posted in

PHP Assignment

Q: What's the output of this PHP code:-
$a = 1;
$b = 2;
$c = 3;

$a = $b = $c;
print "$a = $b = $c";

A: 3 = 3 = 3

Posted in

Selecting Text between Braces

gVim
Q: How do you select the text between matching braces?
A: In normal mode, position the cursor on a brace and press v%

Posted in

gVim 7 on Ubuntu

You can get it from http://www.freshnet.org - edit your sources.list file:

matason@eple:~sudo pico /etc/apt/sources.list

Add the following line to the bottom of the file:-

deb http://www.freshnet.org/dedian/ dapper/

Save the file and then hit up your Add/Remove menu item - a search for gVim should now bring up gVim 7!

Posted in