Will %$edit give me different results than just dumping $edit? That seems unlikely..
2010-07-18 19922, 2010
nikki
well... how are you dumping it and what does it give?
2010-07-18 19915, 2010
navap
I'm using Data::Dumper and dumping it by using $c->log->info(Dumper($edit); in that function I linked above.
2010-07-18 19928, 2010
navap
So when I view an individual edit I see the contents of that hash.
2010-07-18 19946, 2010
navap
And when I do that there's no display_data key in the hash, yet when the template accesses the same hash it must have that key in it since the templates use things like [% edit.display_data.name %].
2010-07-18 19957, 2010
nikki
maybe it gets set later at some point?
2010-07-18 19946, 2010
navap
Yeah, but where it gets set is less important to me than actually taking a look at what it contains, which is why I wanted to know if it's possible to dump the hash from the template itself.
2010-07-18 19956, 2010
nikki
ohh, right.
2010-07-18 19909, 2010
nikki didn't quite understand what you wanted
2010-07-18 19913, 2010
navap
Ah, sorry.
2010-07-18 19933, 2010
navap
hm I think I've figured out how the display_data key works.
2010-07-18 19942, 2010
nikki
oh?
2010-07-18 19941, 2010
navap
Is that an "oh, I'd like to know" or a "oh, cool"?
2010-07-18 19955, 2010
nikki
I think you can use [% USE Dumper; Dumper.dump_html(somevar) %] btw
2010-07-18 19910, 2010
nikki
it has a question mark :P it's I'd like to know
2010-07-18 19922, 2010
navap
Well the controller has `$c->model('Edit')->load_all($edit);` load_all then does `$edit->display_data($edit->build_display_data($loaded));` build_display_data loads the data from the specific entity/edit (e.g. MB::S::Edit::Artist::Create) and sticks it in the display_data key that's specified in MB::S::Edit
2010-07-18 19900, 2010
navap
So now I can look at all the edit types in MB::S::Edit and see what the display_data key will contain.
2010-07-18 19916, 2010
navap
The Dumper.dump_html didn't work out
2010-07-18 19920, 2010
nikki
ah :/
2010-07-18 19937, 2010
nikki
it works for me... maybe I've got more of the internet installed or something
2010-07-18 19944, 2010
navap
haha
2010-07-18 19922, 2010
navap
Oh, my mistake..it did end up working.
2010-07-18 19923, 2010
navap
I can't get indentation working though.
2010-07-18 19915, 2010
navap just sticks the output in <pre>
2010-07-18 19950, 2010
navap
hmm I think there is some caching going on here..
2010-07-18 19938, 2010
navap
The default Varname for Data::Dumper is "Var", I set it to "FOO" just to see if it was working (it was). I then removed that attribute and now the dump still uses FOO.
2010-07-18 19924, 2010
navap wonders if it's okay to hijack MBS-757 and make it generic across all entities.
...and what I meant by that link was that making it generic would just make it the same as that one, so I don't think it should be made generic, it should either be closed as a duplicate of the generic one or left as a specific one
2010-07-18 19936, 2010
ruaok joined the channel
2010-07-18 19923, 2010
dinog joined the channel
2010-07-18 19946, 2010
ijabz_ joined the channel
2010-07-18 19922, 2010
ijabz joined the channel
2010-07-18 19901, 2010
ijabz joined the channel
2010-07-18 19925, 2010
ruaok joined the channel
2010-07-18 19928, 2010
ijabz joined the channel
2010-07-18 19919, 2010
ijabz joined the channel
2010-07-18 19911, 2010
outsidecontext joined the channel
2010-07-18 19912, 2010
ianmcorvidae joined the channel
2010-07-18 19912, 2010
iarp joined the channel
2010-07-18 19911, 2010
aCiD2 joined the channel
2010-07-18 19933, 2010
VectorX joined the channel
2010-07-18 19938, 2010
VectorX
im trying to find a page in the wiki/ngs which i am sure i saw but cant seem to locate it, if i remember correctly there was a picture of the artist table with two other tables and an explanation of the data stored and how
interesting, looking at the blog and a user comment, why would vlc use mb for asin numbers when they can just query amazon, i mean they have an api for you to do it, just give the artist, track name and you got the asin
2010-07-18 19919, 2010
VectorX
well thats after getting getting the cd information from mb
2010-07-18 19918, 2010
ruaok joined the channel
2010-07-18 19911, 2010
jdamcd joined the channel
2010-07-18 19904, 2010
ijabz joined the channel
2010-07-18 19923, 2010
outsidecontext joined the channel
2010-07-18 19952, 2010
VectorX
in Sql.pm is there a setting that will show the queires executed aswell ?
2010-07-18 19905, 2010
VectorX
with the debug information
2010-07-18 19957, 2010
VectorX joined the channel
2010-07-18 19909, 2010
aCiD2
VectorX: Run the server with SQL_DEBUG=1
2010-07-18 19911, 2010
aCiD2
like
2010-07-18 19922, 2010
aCiD2
$ SQL_DEBUG=1 script/musicbrainz_server.pl -r
2010-07-18 19938, 2010
aCiD2
the SQL_DEBUG environment variable turns on the statement timing and debugging
I think we've made more useful progress than perl6. :)
2010-07-18 19935, 2010
ruaok
with perl5, nonetheless
2010-07-18 19936, 2010
ruaok
hmm. "There was also a one-week exploration project called Sapphire; another rewrite of Perl 5 internals in September 2000, shortly after the announcement of Perl 6, Sapphire was mostly intended to be a sort of tracer bullet to learn things about an eventual real implementation."
2010-07-18 19943, 2010
ruaok
like luks' NGS playground
2010-07-18 19906, 2010
aCiD2
I dunno, perl 6 is keeping it's head down, but it does a surprising amount. Then again, NGS does a surprising amount :)
2010-07-18 19955, 2010
VectorX
aCiD2 thanks that worked
2010-07-18 19958, 2010
ruaok
yep. we've come to exit, grow and need a re-write all in the span of the perl re-write. I think we're doing ok still.
2010-07-18 19926, 2010
ruaok
navap: DB load is down if you want to pound in some edits
2010-07-18 19927, 2010
aCiD2
:)
2010-07-18 19932, 2010
navap
heh
2010-07-18 19906, 2010
ruaok
navap: are you hitting the DB with queries?
2010-07-18 19913, 2010
ruaok
the load went back up.
2010-07-18 19949, 2010
VectorX
its either that or vlc, j/k
2010-07-18 19902, 2010
ianmcorvidae
heh
2010-07-18 19930, 2010
ruaok
I throttled the shit out of VLC to get the load down.
is there a reason stats.musicbrainz.org requires HTTP basic auth, given it tells you exactly what to put in? some sort of captcha stuff, or what?
2010-07-18 19905, 2010
Leftmost joined the channel
2010-07-18 19940, 2010
Leftmost
As far as tagging, since collections don't use entries in the name table, should I make a modified version of the find_entities sub for collections? (Also since they need privacy restrictions.)
2010-07-18 19947, 2010
ruaok
ianmcorvidae: spam
2010-07-18 19954, 2010
ruaok
bots can't read text
2010-07-18 19913, 2010
ianmcorvidae
fair enough
2010-07-18 19957, 2010
navap
ruaok: Hitting the DB with queries? Not at all. I think you're over estimating how much load I was putting on the server :)
2010-07-18 19924, 2010
ruaok
quite probably. but nothing surprises me anymore, so I expect anything. :-)
2010-07-18 19908, 2010
ianmcorvidae
lord know's what atrocities I'll end up committing on the test server after I get my copy of the BWV as reference for Work-creation :P
2010-07-18 19915, 2010
ianmcorvidae
erg knows*
2010-07-18 19945, 2010
ianmcorvidae
(apparently bad at english this afternoon)
2010-07-18 19925, 2010
djce joined the channel
2010-07-18 19939, 2010
djce
ruaok: hey
2010-07-18 19917, 2010
ruaok
hey.
2010-07-18 19918, 2010
ruaok
how are you?
2010-07-18 19925, 2010
djce
cool thanks :-)
2010-07-18 19938, 2010
djce
how's .ca?
2010-07-18 19945, 2010
ruaok
warm'ish finally.
2010-07-18 19949, 2010
ruaok
sunny for sure.
2010-07-18 19907, 2010
djce
\o/ been getting too much of the wet stuff recently? or just cold?
2010-07-18 19929, 2010
ruaok
cold mostly. the weather patterns is all screwy from el nino.
2010-07-18 19940, 2010
ruaok
but I like it a little colder, so its actually been nice.
2010-07-18 19934, 2010
djce
your weather's only a couple of degrees hotter than us at the moment.
2010-07-18 19945, 2010
djce likes 18-25 deg C
2010-07-18 19951, 2010
djce
anyhoo :-)
2010-07-18 19954, 2010
djce
Moose.
2010-07-18 19957, 2010
ruaok
so I've heard. seems like many of my friends have been suffering.
2010-07-18 19904, 2010
ruaok
dah, moose.
2010-07-18 19911, 2010
djce
Happy to do this tomorrow if you wish,
2010-07-18 19926, 2010
djce
but hard for me to commit to anything between 5pm and 9pm uk time,
2010-07-18 19938, 2010
ruaok
9:30pm uk?
2010-07-18 19952, 2010
djce
'cos my pattern of work/travel isn't too fixed
2010-07-18 19903, 2010
ruaok
got it.
2010-07-18 19909, 2010
djce
can do, I expect. What would you need me to do, other than offer moral support?
2010-07-18 19929, 2010
ruaok
I was hoping you'd drive. :)
2010-07-18 19942, 2010
ruaok
I think I am just as clueless as you are.
2010-07-18 19944, 2010
djce
Do you know what setting it is that you want to change?
2010-07-18 19946, 2010
djce
and how?
2010-07-18 19949, 2010
ruaok
maybe even more so, since you've done more reading. :)(
2010-07-18 19911, 2010
djce
Hmm. I forgot it all :-(
2010-07-18 19921, 2010
djce
chalk up +1 for tracking all this stuff in jira.
2010-07-18 19922, 2010
ruaok
should I forward your email back to you?
2010-07-18 19948, 2010
djce
I've got that mail
2010-07-18 19951, 2010
ruaok
Add a new project (by adding a line to /etc/project):