I'm using dreamweaver as IDE for coding PHP and use inc files for some Drupal modules. By default Deamweaver does not highlight inc files but can be made to highlight syntax for such files. I also did the same for Drupal module extention. Module files are PHP but use the file extension .module, which Dreamweaver does not recognize as PHP code, so we'll register the .module and .inc file extensions as the PHP document type.

To do this:

Open c:\Program Files\Macromedia\Dreamweaver\Configuration\DocumentTypes\MMDocumentTypes.xml

I received a Drupal error today, "Validation error, please try again. If this error persists, please contact the site administrator."

There's probably many reasons for getting this ambiguous error. In a moment of stupidity, I forgot to run update.php after upgrading views module and for a while was dumbfounded by this error.

Running update (/update.php) fixed it.

Edit: also try run /cron.php if update does not fix it for you -or- visit http://drupal.org/node/240828 where there is further discussion, you may find an answer there.

While browsing around DeviantArt I found the photoshop shapes category. There's some really cool stuff to be had there, as usual I've been kept out of the loop. So if you didn't already know -- like me, heres the link. Check it out for yourself...
http://browse.deviantart.com/resources/applications/customshape/?order=9...

Choc Chip Cookies

Not typically a web design resource, these little critters are a good addition to the midnight cup of tea. So here we go:

Choc Chip Cookies by Chris Herberte

1 3/4 cups of plain flour
1 egg beaten
1/4 tsp bicarb soda
1 tsp vanilla (natural is best)
125g butter
100g choc chips
3/4 cup brown sugar

Method:

Preheat oven 180 deg C.
Cream butter and sugar, add egg and vanilla, beat well then stir in sifted dry ingredients.
Ball, place on greasy tray.
Bake for around 20 mins, cool, eat!

PX to EM Calculator

Great tool for converting pixels to ems, with nested elements possible.

http://riddle.pl/emcalc/

Dig those flash Flickr slideshows? All that’s needed is a bit of code to embed them within your own website to give your readers something dynamic. portfolio

The same as for fixing backspace key on cygwin, you can put this in your .vimrc:

:fixdel

This should fix backspace problem, arrows navigation and insert on last character bugs too.

If your delete key terminal code is wrong, but the code for backspace is alright, you can put this in your .vimrc:

:fixdel

This works no matter what the actual code for backspace is.

It's been a while since i've set up a samba server, but I'm taking my LAMP off my workstation and set up on a dedicated server. Most of the configuration of smb.conf was straightforward. The Vista box took a while to discover the server (slow to do anything!) but finally showed 'server' on the network although It stuck with not being able to log in.

So I tried from the server with 'smbclient -L server -N' and got the error message NT_STATUS_LOGON_FAILURE

Scenario:
I have a Drupal Installation which I run many sites from and this would be fine if each site has it's own Domain Name (FQDN).  Normally I would just park the domain in my cPanel and create a folder /sites/example.com

The problem with subdomains in cPanel is that when creating a subdomain a new directory is created in my Drupal root for the subdomain and this is where i'm supposed to put the site.  This would be fine if i was building a static site but I WANT IT TO BE A DRUPAL MULTI SITE site.

Syndicate content