Tag: code

LastFM for Drupal

Posted by on August 23, 2007 | No comments
DrupalPHPTech

So, I’ve been playing with Drupal recently.

At first it did my head in, but then something sorta clicked. Not been near the Taxonomy module yet, but when I do I expect that process to reverse.

Anyway, I decided I needed a module that will allow users to show their LastFM stuff on their profile pages. I couldn’t find one so I wrote one.

I stared out with the Onlinestatus module as it did something very similar to what I was hoping to achieve.

Anyway, the module is attached should you feel so inclined. (Requires the profiles module I think. The one I based it on does anyway, so it probably does too.)

Download: lastfm.tar.gz

Tags: , , , ,

Photos in Active Directory

Posted by on November 9, 2006 | 56 comments

UPDATE:
The number one reason people come to this page is they want pictures in Outlook from the Global Address List.
It appears this is now possible using Outlook 2010 against Exchange 2010 as outlined by Ilse Van Criekinge in her Technet blog.


Oh my blog, how I’ve neglected you.

Here’s a couple of things I managed to cook up at work this week, again after spending an inordinate amount of time on Google looking for the answer and having to piece it together bit by bit.

The problem: how to store (and retrieve) staff photos in Active Directory. After the first twenty or so webpages I’d decided on using the jpegPhoto attribute. The secondary problem of getting the staff to submit to getting their pictures taken has already been solved by the new photopasses we’re all getting.
» Read the full post

Tags: , , , ,

User VHosting

Posted by on August 30, 2006 | No comments

So, previously, I detailed how to do web virtual hosting to directories on the file system. This is all well and good, but I want to have users pidgeon holed into their own directories, plus I want users own websites to be stored under their own directories in a similar format to that used in the previous article (eg. /home/user/web/example.org/subdomain)

The problem lies with mapping domain names (example.org) onto user accounts (Alice? Bob?). This is where Apache and mod_rewrite come to the rescue again. On Wintermute I’ve installed Apache 2, but this recipe will work just as well with Apache 1.3. » Read the full post

Tags: , , , ,

Greasemonkey

Posted by on July 19, 2006 | No comments

Quick greasemonkey script to change links to community.livejournal.com/commname to commname.livejournal.com. Based off the “Always link to full LiveJournal userinfo” script.

Probably doesn’t take into account a bunch of stuff…


// ==UserScript==
// @name Change community.livejournal.com/commname ... to commname.livejournal.com
// @namespace http://livejournal.arricc.net/
// @description Modify links to LJ communities
// @include http://*.livejournal.com/*
// ==/UserScript==

(function(){
var commRegEx = /^(http:\/\/community\.livejournal\.com)?\/([^/]+)(\/)?(.*)/i;

var l = document.getElementsByTagName("a");
for (var cand = null, i = 0; (cand = l[i]); i++) {
uim = commRegEx.exec(cand.getAttribute('href'));

if (uim != null) {
cand.setAttribute('href','http://' + uim[2] + '.livejournal.com/' + uim[4]);
}
}
})();

Download: changecommunitylivejourn.user.js

Tags: , , ,

VWebhosting

Posted by on July 7, 2006 | 3 comments
ApacheDebianHostingTechWist

So, to reiterate – the main server (Wist) will hold all my own stuff, then I’ll be creating a user Virtual Server (Wintermute) on top of that for users to play with and/or break. All the user stuff is backended in a Xoops database using Xoops groups.

Wist is installed with Debian Sarge using a custom kernel including the vserver patches from Debian. This sort of thing is detailed elsewhere so I won’t go over it again here.

The core server software (all from the Debian archive) will include: Apache 1.3 with PHP4, Apache-SSL, Bind, MySQL 4.1, Exim4, ClamAV and Dovecot (I’ll be detailing the email setup seperately) » Read the full post

Tags: , , , ,

Powered by Wordpress and Stripes Theme Entries (RSS) | Comments (RSS)