silent_mobius' Journal
[Most Recent Entries]
[Calendar View]
[Friends]
Below are the 20 most recent journal entries recorded in
silent_mobius' LiveJournal:
[ << Previous 20 ]
| Friday, August 10th, 2007 | | 8:57 pm |
Fairport, from the field 6
Well Show of Hands kicked major ass in all kinds of ways. The evil daystar is passing through the underworld and getting ready to taunt me tommorow. Right now Fairport 1969 (sans Sandy Denny) are playing the whole of Liege and Lief. It's a quite a trip, though I thinmk the sound guys have it a bit over loud at times, and we're quite a bit back. Current Music: Fairport Convention: Liege and Lief Medley | | 4:32 pm |
Fairport, from the field 5
Christ on a bike it's must too hot for me. I missed a lot of the early bands trying to find cash of getting mild heatstroke. I am such a shut-in most of the time I have mimimal resistance to that giant ball for fire. "Curse you day-star". Ok the BBC folk award winners "Last orders" were very good. They didn't grab me though, but that could have been more to do with the heat-grumpies than their playing | | 10:48 am |
Fairport, from the field
Well day two starts, we have a fairly good spot all staked out but I have completely run out of cash, so there will have to be a trip to the only shop in Cropredy. Mind you it was announced that the mobile cash machines have reduced their charge this year, yeah righ, they are charging 25p more up to 2.75 and they don't take credit cards. Well if looks like a good line up today, I'll talk more as it happens. | | Thursday, August 9th, 2007 | | 9:30 pm |
| | 8:29 pm |
Fairport, from the field 3
Hmm well Jools Holland, people seem to like it but to be honest it's so far away from folk or rock it feels a bit out of place and very mainstream and generic. Though they are doing what they do very well I guess. Current Mood: blah | | 7:22 pm |
Fairport, one the field 2
Ok Seth Lakeman has just started his encore. John and Sally are off somewhere and we've aquired Ruth (Alex's sister, who is a cutie) and Rachel. Anyway. Seth rocked, singing while fiddling must be tough, and rocking that hard at the same time is rare. Current Mood: giddyCurrent Music: Seth Lakeman | | 5:55 pm |
Fairport 2007 on the field report 1
Ok I tried to do this last year but I was using a 3rd party lj client for WinCE and after it lost a fairly long post I got a bit disheartened. So this time its the web interface all the way (and copying to pnotepad first, just in case) Well all the weather worries have been for naught so far,it' been fantastically hot and sunny (damn me for not bringing a hat) Setting up took too long for my taste but as anyone who knows me knows I prefer to do something badly now and correct as I go rather than plan for any eventuality and take ages over it. Once on the field I started listening when kerfuffle came on, fantastic musicians and Kat, Alex and I all agree that we should politely accost the accordian/clog dancer and ... entertain her. Seth Lakeman is next, reports will follow. Current Mood: cheerfulCurrent Music: Wishbone ash Phoenix | | Friday, November 24th, 2006 | | 4:09 pm |
What a luser
Well I just make a fool of myself on #Catalyst. I knew that putty's freeform cut+paste would trip me up one day. And pasting a chunk of code into irc is a kickable offence *hangs head in shame*. I was trying to ask about Catalyst Auth framework. I'd been trying to get C::P::Authentication::Store::LDAP to work for about 4 hours with no joy and was getting mighty frustrated and slipped, such is life. So regarding C::P::Authentication::Store::LDAP. I can authenticate using basic Net::LDAP but precisely the same search using C::P::Authentication::Store::LDAP fails so I'm wondering if I'm getting something wrong on the catalyst side. | | Thursday, November 23rd, 2006 | | 4:13 pm |
Ok I tried this early on in my testing: [% WHILE (row = result.next) %] [% row.purchase_order_rows.count %] [% END %] It didn't work so I moved on, eventually I'm sticking this in the TT template to try and work out what the _hell_ is going on [% PERL %] print "\n"; my $r = $stash->get('result'); print ref($r); print "\n"; my $a = $r->next(); print ref($a); print "\n"; my $b = $a->purchase_order_rows(); print ref($b); print "\n"; print $b->count(); [% END %] At the output end that gives me (3 is the correct count): DBIx::Class::ResultSet PurchaseOrder::Model::DBICSchemamodel::PurchaseOrder DBIx::Class::ResultSet 3 So that was the softly-softly approach so I try: [% PERL %] my $r = $stash->get('result'); while (my $row = $r->next()) { print $row->purchase_order_rows()->count()."\n" } [% END %] Yep I get 3, so what the _hell_ is the difference between $row->purchase_order_rows()->count() in perl and row.purchase_order_rows.count in TT? | | 3:17 pm |
Arrrrgh Y'see this is why I "Just don't get" Catalyst. Ok so I have a list "method" for a table purchase_order right? The stuff that InstantCRUD spat out for Template::Toolkit actually makes sense this time (rather than the form handler that delegated everything to HTML::Widget which is _really_ starting to get on my nerves.) now there is a 1 to many relationship with the purchase_order_row table so InstantCRUD show an entry in the list view formed by: [% FOR val = row.purchase_order_rows; val; ', '; END %] This lists all of the id's of the purchase_order_row rows that are associated with the current purchase_order row (still with me?) So I'd like that to simply be a count of those rows, after all I don't want the users to see the id's if I can help it. So does TT have some way of doing scalar(@array) because that row.purchase_order_rows its a list right? No, its an object, its PurchaseOrder::Model::DBICSchemamodel::PurchaseOrderRow which doesn't exist it seem to be constructed by PurchaseOrder::Model::DBICSchemamodel's parent Catalyst::Model::DBIC::Schema and looking at the source to that doen't really tell me much because it's so abstracted. So how the hell do I get a count of row.purchase_order_rows in TT is there a method I can use to get at it? This is why Catalyst _needs_ some explicit docs. You can't spend an hour searching through inheritance just to work out what methods you can use, there should be a list, somewhere and it should never be unclear what a object _really_ is, maybe something like: The default resultset passed to the default TT list controller (/MyApp/root/MyTableObject/list) created by the InstantCrud helper is a XXX that inherets from YYY and ZZZ. Supported methods are: oooo (link) from YYY pppp (link from ZZZ ... | | Wednesday, November 22nd, 2006 | | 8:13 pm |
Ok, I've been a software developer for about 7 years now and writing perl for about 5 of those. Now I liked the look of Ruby on Rails but to be honest its both a whole new framework/API _and_ language, so while I'm interested, and it does indeed look sexy, I can't really dive whole hog into it for work projects. Then I found Catalyst. OO/web framework in perl with lots and lots of "We've already done that". It was Catalyst::Example::InstantCRUD that finally sold me on the idea as the sheer volume of qualified CRUD stuff I need to write is quite overwhelming right now. Now the only real problem here is that many of the CPAN modules they use at the core of Catalyst are unknown to me, I was never one to need an OO layer for DBI access, building SQL always seemed easier for the simple queries and the more complex ones usually needed tuning that I wasn't convinced I'd be able to do if the OO layer took me too far from the SQL generation engine. So most of Catalyst looks like some weird "moon-perl" the likes of which I have not had to deal with before. So I've decided to document my experience here as I have it, mostly this will be outside of work hours as I'm still not convinced I can get into Catalyst quick enough to make it work for my in a public facing app, at the moment I'm looking at internal CRUD UI's only. So I've been plugging at it on and off for a couple of weeks now, a lot of time has been spent just trying to install Catalyst from CPAN as there are some huge issues with Module::Build and RHEL perl paths right now, so there was a lot of gathering deps manually and "force install"ing, which wasn't so good. But once I was up and running on my home machine (Ubuntu Dapper) I started off on a simple InstantCRUD app... and was pretty impressed. Well until I deviated from the tutorial. Man is this thing terse, I'm following inheritance left, right and center just to work out what methods I can use. It kinda felt like trying to write in old VBscript ASP without access to the MSDN docs (which I had to do for a week for my sins, thankfully development shifted to perl) I would generally give up each night frustrated and annoyed Heres an example of what I though was a simple app Basic mysql myasm table "articles" that's use to hold titles/abstracts/handler URI's/image URI's Now we have a crappy little development server here that I use as a staging point for both content and code (I know, I'd prefer a real destructible development server and a seperate test environment, but it's not really an option right now) so I wan't a basic CRUD appp that also had a "copy record to live server" button for each row. Shouldn't be that hard, right? Buggered if I've been able to work it out yet. I'm still not sure what route to go down. Should I have another schema/model thing (I still don't have a handle on what the hell Catalyst is doing there) to represent the live DB and the usual Catalyst one, then can use a resultset row object directly and apply it somehow to the other object? or can I get a resultset then change the connection details and resave it. Or do I have to copy everything out of the resultset result thingy (what does $resultset->next actually return?) and build a new insert with another DBIx object (or Catalyst model inheriting a schema that inherits from DBIx *pant*) well hopefully I'll work it out. Anyway the main impetus to starting this is a little victory, that is adding in meaningful field named for foreign key selectors in InstantCRUD (well in HTML::Widget::DBIC actually) it looks like the author was looking to do something like that anyway but commented chunks of it out. Took me about 4 hours to understand what the hell was going on and to prep a test that allowed me to Data::Dumper my way into a better understanding of the flow. Eventually I altered: sub create_from_config { ... @options = _get_options( $schema->resultset( $col->{foreign_class} ) ); sub _get_options { my( $resultset ) = @_; my @options; # my $displaymethod = $config->{$class}->{displaymethod}; my( $pkey ) = $resultset->result_source->primary_columns(); my $j = 1; my $rs = $resultset->search(); while( my $i = $rs->next() ){ push @options, $i->$pkey, "$i"; #->$displaymethod; } return @options; } To the following (Yeah, I'm not a fan of K+R bracketing style): sub create_from_config { ... @options = _get_options( $schema->resultset( $col->{foreign_class} ), $col->{display_method} ); sub _get_options { my( $resultset ,$displaymethod) = @_; my @options; my( $pkey ) = $resultset->result_source->primary_columns(); my $j = 1; my $rs = $resultset->search(); while( my $i = $rs->next() ) { if ($displaymethod) { push @options, $i->$pkey, $i->$displaymethod; } else { push @options, $i->$pkey, $i->$pkey; } } return @options; } With a quick addition to the interface_config.dat and lo and behold my foreign keys were displaying with their titles and not their primary keys. Yay me! *EDIT* Grrr LJ messes with the CRLF on pre blocks..... Current Mood: chipper | | Friday, August 11th, 2006 | | 11:44 pm |
Fairport 2006 Day 2
Ok I didn't say anything about day 1 but that was more of a half day and I was shattered by the time it was over, not that I'm terrible sprightly right now mind you. Well we just got our of the closing act, 10cc, at first they were more than a little limp, but to be honest that may have been due to a technical fault but given their main era of success (70's) it was a little hard to tell. bit near the end they started pumping out tracks that I remembered from long nights out with my mums band as she played working mens clubs, nostalga-riffic. looking forward to fairport (and a shower) tommorow. night night Current Mood: sleepy | | Tuesday, July 11th, 2006 | | 2:38 pm |
Abingdon Day
Well then, yet again its been a long time singe my last update. I think than can mostly be blamed on no longer having a laptop, well, that and a hefty dose of lazyness. Still the old works laptop was replaced by a smartphone (well not replaced as such, the job that provided the laptop was replaced, the smartphone was a cheap stopgap option) so I didn't really have any excuse. Well I'm currently on my way back to Reading after dropping over 2.2 grand of deposit and rent for our new place in Abingdon, I really think I'm going to like it there, I hope Kat does too. I have to say that Abingdon is quite a nice place, well at first glance anyway I yet to live for any length of time in a small town. Well unless you count my home town of Scarborough. I was looking for my passport before I set off and ended up rooting through my photos, it really does seem so long ago now, and I really do feel like a very different person to who I was then. while I happy with the change for the most part I have lost a little something perhaps it was just a kind of innocence. Jen, Colin, Kate, Gail, Melissa how are you all doing? heh, Ì wonder if Kate is married yet? if so that would make the full set. Well, myself excluded of course. Damn I'm glad I got today off. Other than the sheer mountain of stuff I needed to do I really needed to get out of the office, not because of the people or the work. but mostly because of the heat. Even though the is air-con most days I end up uncomfortable and frustrated as my preffered working temperature would seem to be well below some people's comfort zone, roll on autumn/winter you are sorely missed. I'll be interested to hear what mischief Will and Keith get up to (even though they seem to keep me oblivious to most of the boy-gossip) I hearby hand over the mantle of Knight-in-charge-of-getting-Keith-laid to Will I hope he does a better job than I did. I wonter if theres a 3d model of didcot power station anywhere I think I coul do some fun stuff with that and a hired video camera. hell maybe I should get one of those HDD digi video cams. DV seems to be about 6GB for 30 mins so a modern 100GB laptop drive should hold about 8 hours. and would probably last longer as the power draw on modern drives has to be smaller than a standard tape draw motor. Well maybe later, after the sting of that 2.2 grand has worn off. Current Mood: cheerful | | Tuesday, April 18th, 2006 | | 10:17 am |
file.....maker
Ok I know I haven't updated in a while but please bear with me here I need to vent. FileMaker, it's a "database", used to be a Mac product, became available on PC's a while back. It just so happens that my current company (ab)uses this product. ... ... The people who wrote the travesty should be put up against a wall and shot. They are an embarrassment to to my profession, I have no idea what sor of half-assed ex-mac people they have on staff but please _for_the_love_of_god_ someone put them out of my misery. The ranks up there with older lotus notes email clients for sheer volume of terrible-terrible design fuck-ups. Just having to use this product hurts right down to the core of my software-developer soul. The day I extract this POS from the flow of the company data can _not_ come too soon. Current Mood: aggravated | | Thursday, February 9th, 2006 | | 2:47 am |
Hmmmm
Well it's 2:47 am and I'm at work. Having been sick for the past couple of days (no it wasn't anything serious, just a cold, and no, I wasn't being "all male" about it, I simply wanted to avoid giving my co-workers yet another illness and also found writing inventive code rather difficult with a head full of mucus) I needed to catch up, and given that I slept through the day and didn't sleep the night previous I surmised that tonight would be no different. Hence I thought I'd come in to work. The trip was beautiful, the night sky was clear and the moon bright, the stillness cheered me up no end, as did the gentle exercise (its nice that I now consider the cycle to work "gentle" as long as I'm not being aggressive with the hills) and being able to work without interruptions is truly stellar. Well, maybe a few self imposed interruptions as I task switch. But hey an update was well overdue ne? I have a plan to get on-top of a few things before the 14th I wonder if I'll succeed. Current Mood: contemplativeCurrent Music: Silence... naught but the hum of machines | | Thursday, September 29th, 2005 | | 11:00 pm |
Why do I always end up updating this in the pub? Well I guess the lubrication just does the job. shame I rarely have anything interesting to say by the time I have a few. Ahh well, such is life, as Shakespear Sister would say "Life is a funny thing, just when you think you've learned how to us it it's gone" So much to say, so little desire to say it....see you soon | | Thursday, April 21st, 2005 | | 9:41 pm |
| | 11:05 am |
On The Subject of Unknown Durations
"Can we use Machine A as a warm backup?" "No, Machine A is currently in use investigating the impact of a DB upgrade for our entire system" "Will that be completed before we need this backup" "I don't know that. The investigation is open ended it needs to be thoroughly" "If you set a date that the investigation will be 'done by' they we can make a decision on this" "Indeed but I can only estimate a timescale for a job such as this. I cannot currently be certain" "But if you say 'it will be done by x' Then you'll get it done. Otherwise if you leave it open ended you'll never get it done" Which part of "I cannot currently be certain" was unclear you dumbass. When you ask me to ensure that an upgrade won't cause any problems its a big job how do you define a completion date for something that has no definition like 'investigate'. sheesh Current Mood: cranky | | Tuesday, April 19th, 2005 | | 1:56 pm |
Here's a little something from Howie:  Who should I vote for?Your expected outcome:Liberal Democrat Your actual outcome:Labour -20  | | Conservative -31  | | | Liberal Democrat 62 | | UK Independence Party 9 | | Green 66 | You should vote: GreenThe Green Party, which is of course strong on environmental issues, takes a strong position on welfare issues, but was firmly against the war in Iraq. Other key concerns are cannabis, where the party takes a liberal line, and foxhunting, which unsurprisingly the Greens are firmly against.
Take the test at Who Should You Vote For
I'm surprised I'm more UKIP than I am Labour. Hmmmm Though if you want to really think about which MP you should vote for (not which party) I recommend http://www.publicwhip.org.uk It impressed me.
Pffff, I can't be bothered to fix their crappy HTML. Maybe later | | Thursday, March 24th, 2005 | | 5:16 pm |
Don't push too far your dreams.....
I just found out that T'pau's "China in your hand" is about Mary Shelly. Yea gods I love the Internet, though it's at it's most tasty with lashings of spicy Google sauce. Quick poll for the nobody who reads, should I go out with the boys on Friday, hmmmm? Current Mood: cheerfulCurrent Music: Nine Inch Nails - Closer |
[ << Previous 20 ]
|