Archive for September 2008
Plus ça change…
It’s hard to ignore US politics, but does anything ever change?
Read the rest of this entry »
Svn locally (local Subversion for a single user)
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:
- 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.
- 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.
- 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 »
Drag-and-drop on web pages
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
- JQuery: UI/Droppable
- script.aculo.us: Draggable
- Yahoo! UI Library: Drag & Drop Examples
- Google Web Toolkit (example)
- Dojo toolkit: I know it has it,
but I can’t find itand here it is.
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.