Teknologi, Technology, Development

Running Lighttpd as a static file server for Drupal 6 on a Debian GNU/Linux server

Lighttpd web serverI found Robert Douglass article Using Lighttpd as a static file server for Drupal | Lullabot and thought it would be interesting to try out. Check also out the Lighttpd home page (pron. lighty).

There are two main reasons for using a separate server for static files. The first is to offload the main server, e.g. Apache with mod_php, letting it only handle the dynamic requests. The second is to allow browsers to download files in parallel and without the overhead of cookies etc.

After I implemented the static file server Yslow gives xdeb.org Grade A with a score of 90.

How to set up Apache Solr search for Drupal 6 on a Debian GNU/Linux server

Apache Solr SearchAt DrupalCamp Stockholm 2009 Robert Douglass from Acquia talked about Drupal with Apache Solr search. Solr takes searching in Drupal a huge step forward. Speed and faceted search on author/type/term/language/date/CCK fields are the main features. A “Did you mean …” function is there also and it works surprisingly well but seems to only work for English as of now.

There are also some really interesting things coming like multi site searching, dokument searching and searching of external non Drupal sites.

Drupal.org is already using Apache Solr search. Search for Sweden there and I’m the top result! http://drupal.org/search/apachesolr_search/sweden

When you search on Drupal.org or here on xdeb.org check out the blocks on the side on the search result page. They let you sort the result and filter it by author, node type and taxonomy terms. This is faceted search.

For people who don’t want to set up and maintain there own Apache Solr search Acquia has the service Acquia Search with a 30 day trial.

If you still here and want to know how to set up Apache Solr for Drupal 6 on a Debian GNU/Linux server here follows how I did it.

DrupalCamp Stockholm 2009

DrupalCamp Stockholm 2009Fredag och lördag var jag på DrupalCamp i Stockholm. Dag 1 var för beslutsfattare och dag 2 för utvecklare. Dag 3 hölls ett dokument-sprint i NodeOne lokaler i Gamla Stan under ledning av Addison Berry (Drupal documentation team lead) och Johan Falk.

Det var fulltecknat flera veckor i förväg så det fanns verkligen ett uppdämt behov. Drupal är hett! Genomgående mycket hög kvalité på föreläsningarna. Mest intressant för mig var Robert Douglass presentation om Apache Solr search som jag skriver mer om i en senare blog.

Denna DrupalCamp arrangerades av NodeOne och Dataföreningen. Dataföreningen har himla trevliga lokaler mitt emot Centalstationen upptäckte jag. Har arbetat med dem i ett par år för att bygga alla deras webb-platser i Drupal men aldrig varit till dessa lokaler förut.

Läs mer på:

Why does mobile phones still have such bad voice quality?

Whenever possible I use iChat or Skype to call people and I urge people to call me the same way.

There are a number of reasons for this but the number one reason is voice sounds quality. My fixed line phone sounds bad, my mobil phone sounds horribel. All mobile phones sounds horribel!

I paid hundres of Euros for an iPhone and pay hundres of Euros every year to my carrier. Why does it need to sound so bad?

My mother has a hearing loss and needs hearing aids. She can’t use mobile phones at all. Fixed line phones is possible for here to use, but no more than that. With iChat on her iMac there are zero problems, it’s like sitting in front of here.

Stoppa Twitters irriterande vana att förkorta URL:er

Postade precis följande Tweet:

Fördomar om vi och dom i världen? Kolla in http://svtplay.se/v/1542302/dokumentar/roslings_varld

Resultatet blev följande:

Fördomar om vi och dom i världen? Kolla in http://tinyurl.com/ceraox

Twitter förkortade ibland automatiskt URL:en via tjänsten http://tinyurl.com/. Det gillar jag inte alls och det verkar inte finnas någon inställning för det. Original URL:en talar om att det är SVT Play, en dokumentär och någon om Rosling (Hans). En tinyurl säger absolut ingenting.

Netgear ReadyNas Duo - Sätt hårddiskarna på nätverket

netgear_readynas_duo_open.jpgSenaste året har jag funderat på att gå över till hårddiskar som sitter på nätverket för säkerhetskopiering samt media-filer. Dessa lösningar kallas NAS, Network Attached Storage.

Det lutade först åt Drobo som man skulle kunna koppla in direkt till AirPort Extreme eller via en DroboShare. Mitt val föll dock till sist på en Netgear ReadyNas. Dessa kan kopplas direkt till nätverket via gigabit Ethernet.

Make a Drupal theme look better on the iPhone

xdeb.org on the iPhoneI’m using Safari on my iPhone to browse the web more than I thought I would. Mobil Safari display pages very much like Safari on Mac OS X so it mostly works really well. A web design however rarely works well on both a big computer screen and a small handheld screen, even a high resolution one like on the iPhone.

I was not satisfied with the way xdeb.org looked on the iPhone. I wanted a simple way to improve it without the need for a separate theme or other more complicated solutions.

Twitter - Vad gör du nu?

Sent om sider har jag börjat med Twitter och finns där under namnet frjo_xdeb.

Twitter föreslår att man, då och då, svarar på frågan “Vad gör du?” med max 140 tecken. Familjen, kompisar och andra intresserade kan välja att följa en och se de tweets (meddelanden) man skriver.

Det går utmärkt att uteslutande använda hemsidan twitter.com för att både läsa och skriva allt. Blir man en lite mer flitig användare finns det en lång rad program och tjänster för både datorer och mobiltelefoner som man kan använda istället.

Launchbar, Keyboard Maestro and Typinator - It's all about fewer keystroks

LaunchbarI have made my way through a substantial list of automation software over the years. Currently I’m using the following three:

BBEdit - My text editor of choice

BBEdit text editor from Bara BonesI noticed that I have never on my blog mentioned the text editor I use. This is a bit surprising since it’s where I do almost all my writing, and all my coding of course.

More then 10 years ago I started to use Bare Bones free BBEdit Lite. Mainly to use it’s “Search and Replace” that had excellent support for regular expressions. In 2003 TextWrangler replaced BBEdit Lite as the free alternative from Bare Bones.

TextWrangler was my main editor for several years, it was so good that I saw little reason to pay for its big brother BBEdit. The main feature of BBEdit seemed to be very nice support for HTML editing, something I had little need for. I had moved from static HTML webb-sites to CMS systems so PHP was more interesting to me.

Syndicate content