Han, Leia, and Time Travel

Nothing to post today because I've been pondering deep philosophical questions:

Suppose Han wants to marry Leia. Suppose Han told Leia that he wanted to marry her. Suppose Leia went back in time and told Padmé that Han wanted to marry her.

Who's the first person to know that Han wants to marry Leia? Is it Han, Leia, or Padmé?

Custom Sorting With IComparable and IComparer

The default sorting provided by .NET isn't enough most of the time. To enable sorting by a field that you want --- for example, a post's title --- you need to implement the IComparable interface. To allow the users to sort by multiple different fields, you need to implement IComparer.

Continue reading "Custom Sorting With IComparable and IComparer"

Screen Grabbing with .NET

How to programmatically connect to a webpage and get content via .NET.

ScreenGrabber Screenshot

ScreenGrabber Screenshot

Continue reading "Screen Grabbing with .NET"

Free Template: Chicanery

Another weekend gone in which I didn't get much done. I always think that I'll do this and that and that and that (and go walk on the moon in my spare time) during the weekend, but typically my productivity level tends to hover in the freezing ground around zero. Anyway:

Free Template Chicanery Screenshot

View the template online

Download the files

Expression Engine Photo Gallery Template: Bucolic

Screenshot

Continue reading "Expression Engine Photo Gallery Template: Bucolic"

Captionated: Or Why 456 Berea Street is Bad For Your Health

Using JavaScript to add captions to all or some of your images. The JavaScript is unobstrusive so that you miss nothing other than the caption if the user's browser has JavaScript turned off.

Continue reading "Captionated: Or Why 456 Berea Street is Bad For Your Health"

EE Photo Gallery Permissions Problem

Another quickie on EE photo gallery that gave me a bit of a trouble before I figured it out: you might like creating folders for each category in your photo gallery and place all images for that category in its folder.

Well, if you let PHP create the directories, you might get a problem saying EE doesn't have read/write permissions to the destination folder. You go to the folder and check its permissions and --- wait --- it does have 777 permissions.

What's going on?!

No idea, but fortunately there's a simple fix:

Simply delete the folders that PHP created and re-create them manually through your FTP program.

Commenting EE Template Code

A quickie on EE: ever wanted to comment out EE code temporarily? Apparently, that's possible:

{!-- Hooray! for EE comment --}

Read more here

2 of 4 pages  <  1 2 3 4 >

On the Side