December 4, 2008 / by rimugeek / CSS, Design, Programming / 0 comments
Drupal’s theming system uses file names to decide which theme to apply to whatever page the visitor is asking for. So page-front.tpl.php is the front page, block-footer.tpl.php is any block in the footer, page-node-10.tpl is the page that contains node 10, etc etc However, out of the box, there is no way to theme just […]
Read more
A great programming book – from arrays to collections, from procedural to functional
July 28, 2017 / by rimugeek / Programming
PHP developers use arrays all the time and tend to use loops to iterate over the elements in the array and perform some action on them. It’s such a common pattern that it becomes a way of solving programming problems that is automatic and rarely questioned. But there is a better way. ‘Collections’ are object […]
Read more
Drupal 7: automatically logging users in with their Windows credentials (LDAP, NTLM)
April 4, 2016 / by rimugeek / APPLICATION, LDAP, LINUX, Programming / 0 comments
So you want to build an intranet site with a seamless onboarding process that doesn’t require users to remember yet another login? This is hard to do and a lot of things can go wrong along the way. Hopefully some of the below steers you through these treacherous waters. I built an intranet using Drupal […]
Read more
Reduce MAMP memory usage by limiting the number of Apache processes
January 25, 2015 / by rimugeek / LINUX, Programming / 0 comments
When developing web sites on a Mac it is common to use MAMP. By default MAMP will run several Apache processes because that’s just what Apache does by default – having several processes means several requests can be served at once. But, in a local development scenario, this is very unlikely to happen because the […]
Read more
Getting ASP.Net 1.1 running on linux – a trap for Ubuntu 9.04 users
April 15, 2010 / by rimugeek / ASP.NET / 0 comments
On 9.04 when you install mono from the repos by following these instructions, (and opt not to install ASP.Net 2.0 and just go with the default of 1.0) then you end up with a mis-configuration of the web server – it’s looking for the 2.0 version of the .Net framework when all you have is […]
Read more
First page not printing in IE 7
December 17, 2009 / by rimugeek / CSS, Design / 0 comments
A weird problem was happening on one of my sites where IE 7 could print off a web page, but the first page of printing was blank – the content wasn’t pushed off to the second page, the first page was simply empty and the second continued on from where the first would have ended. […]
Read more
Ubuntu – gnome panels hanging randomly after using “Connect to Server” (gvfs)??
August 7, 2009 / by rimugeek / APPLICATION, LDAP, LINUX / 0 comments
For ages I put up with random hangs and where some or all of my panels would stop responding, and completely rebooting was the only solution (killall gnome-panels wouldn’t unfreeze things either; all the hung panels disappear, but then nothing comes back in their place)… I knew it had something to do with connecting to […]
Read more
drupal with active directory (ldap)
May 5, 2009 / by rimugeek / APPLICATION, CSS, Design, Work / 0 comments
Getting drupal authenticating logins against active directory can be intimidating, at first. I certainly felt that way. A few hints You will need PHP installed with the ldap extension. Use phpinfo(); to check if it’s there. Without that you can’t even begin. The ldap_integration module for drupal is fantastic, but the configuration is confusing if […]
Read more
Web development languages in use in NZ
March 4, 2009 / by rimugeek / CSS, Design, WordPress, Work / 0 comments
Today I ran a poll on the NZWEBDEV email list, and asked members to indicate which server side languages they regularly use in their work. Results are below but you’ll need to click on the image for a legible version. PHP is the clear winner. I’m surprised that the microsoft languages were not more […]
Read more
drupal: inserting flash content (youtube videos) fails to display in IE
February 18, 2009 / by rimugeek / APPLICATION, COMPUTERS / 0 comments
One of the drupal web sites I work on had a problem where any youtube video that was posted to the site failed to display on internet explorer. Any other browser worked fine. The code we were trying to insert was this: <object height=”350″ width=”425″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″ classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″> <param name=”src” value=”http://www.youtube.com/v/l0aVaRrBYQE” /> <embed height=”350″ width=”425″ src=”http://www.youtube.com/v/l0aVaRrBYQE” […]
Read more
theming just one node in drupal
December 4, 2008 / by rimugeek / CSS, Design, Programming / 0 comments
Drupal’s theming system uses file names to decide which theme to apply to whatever page the visitor is asking for. So page-front.tpl.php is the front page, block-footer.tpl.php is any block in the footer, page-node-10.tpl is the page that contains node 10, etc etc However, out of the box, there is no way to theme just […]
Read more