Blogs

ASP email

Augh, ASP Classic :s
'============================================================================
'
sendEmail Subroutine by Dan Robertson (danrobertson@ninemanagement.com)
'============================================================================
Sub sendEmail(mailFrom, mailTo, mailSubject, mailMessage, mailServer)
Set MyMail = CreateObject("cdo.message")
MyMail.From = mailFrom
MyMail.To = mailTo
MyMail.Subject = mailSubject
MyMail.HTMLBody = mailMessage
MyMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

bind9 views

acl "internal" {
        192.168.1.0/24;
        127.0.0.1;
};

options {
        # standaard shizzle
}

view "internal" {
        match-clients { internal; };
        recursion yes;
        zone "." {
                type hint;
                file "named.root";
        };
        zone "0.0.127.IN-ADDR.ARPA" {
                type master;
                file "master/localhost.rev";
                };
        zone "domein.nl" {
                type master;
                file "/var/named/etc/var/domein.nl.internal";
                allow-transfer { any; };
                };
};

view "external" {
        match-clients { any; };
        recursion no;
        zone "domein.nl" {
                type master;
                file "/var/named/etc/var/domein.nl";
                allow-transfer { none; };

SimpleXMLElement xpath

foreach ( $sxe->xpath('//object') as $character ) {
        echo $character->name;
}
Will render the object elements in the SimpleXMLElement. Cuts down on unneccessary $sxe->selector->selector stuff.

Drupal modules

CCK
Views
Akismet
DHTML Menu

Must have Drupal modules. These modules easily extend the usability of Drupal to the insane. Some are handy timesavers, some are insanely powerful...  » Read more…

Highlight external link with CSS

Use the power of CSS to highlight external links.
a[href^="http:"]:after
{
  content: 'ext';
  font-size: 70%;
  vertical-align: top;
}
Only the selector part really matters. It checks the href part of every a for the contents "http:". Do whatever you like afterwards.

Asus EEE PC 900 Review

Key size
Key size
The EEE pc is one of the most successful of an emerging niche in the notebook landscape: "netbooks". These low-power, low-cost and exceedingly small laptops are rapidly becoming popular, with manufacturers like Asus, MSI, Acer and even Apple putting out competative products. One of the heavy hitters in the market, despite the somewhat idiotic abbreviation ("Easy to use, Easy to play, Easy to work"), is the Asus EEE pc series.

SSH Cheatsheet (Dutch)

SSH Cheatsheet
From Cjdwiki
Jump to: navigation, search

De inhoud van deze pagina is vrijgegeven volgens de voorwaarden van de Creative Commons Attribution-ShareAlike licentie

[edit] Uitleg

Hier wil ik een cheatsheet maken voor alle pcextreme klanten die nog niet goed weten hoe ze met de SSH access om moeten gaan. Ik ben ervan overtuigd dat goed gebruik van SSH tot een veel betere efficientie leidt bij een webdesigner :) » Read more…

Partition Migration Quicklist

Quicklist for migrating partitions:

  • Download Knoppix LiveCD
  • Burn and boot to said CD
  • umount any partitions that you will be moving
  • Use gParted to "Copy and Paste" partitions to intended destinations (yes, even across harddisks). Don't forget to create the swap fs!
  • Take notes where each partition is and what it contains. Map to expected /dev/sdxx devices so you know what's where
  • Shutdown and move around / disconnect harddisks if needed
  • mount filesystems for /boot and /etc (may be on one filesystem
  • edit /boot/grub/device.map file to reflect changed harddisk organisation (or whatever other hoops other boot managers make you jump through)
  • reinstall GRUB (or other boot manager). something like this
    • find /boot/grub/stage1
    • Use output for next command  root (hdx,x)
    • Setup grub with setup (hd?) where ? is whatever disk (for MBR install) or where ? is whatever partition (for partition install).
  • Edit /etc/fstab to point to correct partitions, delete obselete lines from the file.
  • Reboot and test. Also prepare to reinstall windows, if needed... :(

deadmau5 @ Beatport

Ownage electrohouse from Toronto, Canada!

The Amarok music player: a review.

One of the pearls of the K Desktop Environment is the Amarok audio player. It looks more similar to Itunes than Winamp, but without the tie-in to the Itunes Music Store and the fairly conservative functionality. It seems my quest for an allround music player has found a new winner! » Read more…

Syndicate content