The Lumber Room

"Consign them to dust and damp by way of preserving them"

Archive for September 2008

Plus ça change…

with one comment

It’s hard to ignore US politics, but does anything ever change?
Read the rest of this entry »

Written by S

Mon, 2008-09-29 at 03:54:13 +05:30

Posted in Uncategorized

Tagged with

Svn locally (local Subversion for a single user)

with 5 comments

Because the existing top Google results suck, I keep having to waste time whenever I want to do this. [This = setting up a subversion repository in some directory on my filesystem, for use only by myself, so I don't have to worry about remote access and what not.]

What should be the top result is Single-User Subversion on OnLamp.

Quick instructions:

  1. Decide a name (e.g. svnrepo) for the directory where the repository (the database etc., not the files) will be stored, go to the directory that will be its parent, and create the directory (and the repo) with: svnadmin create svnrepo.
  2. Decide a name (e.g. workspace) and location for your workspace (the directory where your files will actually be stored), and create it by checking out the (currently empty) repository into it with svn checkout file:///home/shreevatsa/path/to/svnrepo workspace.
  3. Go to the directory, create/copy files into it, add them with svn add filename, and commit with svn commit -m "Initial commit".

That’s it. Don’t bother with svn import, svn mkdir etc.
Read the rest of this entry »

Written by S

Thu, 2008-09-25 at 19:03:42 +05:30

Posted in Uncategorized

Drag-and-drop on web pages

with 2 comments

Many web interfaces (like the WordPress dashboard in which I type this) allow you to drag and drop sections of the page to rearrange them. I think I first saw it when the personalised Google homepage (google.com/ig) came out, but I don’t know if it was the first. Here are some libraries that seem to help you

So it seems that all JavaScript frameworks have it. It also seems that JQuery has “won”.

But it seems YUI’s “Reordering a List” example is the closest match to what we actually want, but it seems to require too many lines of code.

Some of the rest seem even worse: unless you are actually using the library for a lot of things, it is simply too much code to just drop into a bare-bones web page you’ve been writing from scratch.

Written by S

Sun, 2008-09-14 at 22:11:37 +05:30

Posted in compknow, unfinished

Tagged with , ,

Follow

Get every new post delivered to your Inbox.

Join 67 other followers