Blue and gold Cloud patterns Dawn at the pier Abstract weed Capybara

19th February, 2005

Two steps forwards

Filed under: Random Mumblings, — bsag @ 07:03 PM

Do you ever have one of those days when you do a load of work and then find that you have to undo all of it? I do. This afternoon, I was trying to add some kind of authentication to Tracks. I knew what I wanted to do, had a vague idea how to accomplish it, and off I went.

Two hours later, and all I succeeded in doing was making a total pig’s ear of the thing. All I can say is thank goodness for svn revert. Time for a beer and a film.

  1. 1

    Been there, done that, got not even a lousy t-shirt. One time I tried to build a rather cool and hip process modell into the PyDS to make it snappier and use less resources and be cool and all that. Took me several days to totally screw everything in the system to a degree that the code was completely incomprehensible to even me, the main author grin

    Had to throw most of it out, althoug some parts still are in the code because I thought I could one day take off from there and do it again, only better. Never really happened up to now (although it produced TooFPy, a rather cool little project).

    Programming is weird. I should really have taken some other profession, maybe beer brewer or gardener ...

    by hugo @ 19/02/2005 8:02 pm • Permalink

  2. 2

    Sometimes every day is one of those days!

    Cheers m'dears...

    /clink

    (Which fillum? /nosey sod )

    grin----- The Rails LoginGenerator will get you there grin Then you can add a beforefilter to your controllers which will point to an application wide sub (defined in applicationcontroller.rb) called get_user or something.. which will then do a @user = User.find(@session['userid']) or similar.. Oh, well that's if you want to deal with multi user scenarios, rather than just basic access authentication, of course grin

    by Peter Cooper @ 19/02/2005 8:03 pm • Permalink

  3. 3

    svn is a beautiful thing... smile

    by David Smith @ 20/02/2005 7:02 am • Permalink

  4. 4

    ted_groony: grin Big Fish (a Tim Burton film) --- very good, actually.

    Peter Cooper: I should have been clearer, but I was a bit fed up when I posted wink. I already use the login generator for logging in. I was trying to set up authentication for my RSS and text feeds (which don't work with that method because the feed readers and curl don't have access to the form to enter authentication details. I got a good hint from wnorrix on #rubyonrails who suggested that I use an MD5 encoded word as a token to append to the url like url/feed?token=aneuubn12ffioi90j63g or whatever. I can do that bit fine, but can't seem to get the feed action to accept the parameters. I just get a 404. I'm missing something obvious, I just know it.

    hugo: Hehe. I have another profession, but that doesn't seem to help much. wink

    David Smith: It certainly is. I don't know what I'd do without it now.

    by bsag @ 20/02/2005 11:03 am • Permalink

blog comments powered by Disqus

Powered by ExpressionEngine :: © www.rousette.org.uk, 2002-2008 :: [XHTML] [CSS] [508]