Camelia, the Perl 6 bug

IRC log for #mojo, 2011-05-28

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:37 gbacon what's the preferred form generator with mojo, or do people mostly crank them out with templates?
00:38 sri think so
00:39 gbacon sri: templates, you mean?
00:39 sri ye
01:03 vel joined #mojo
01:23 gbacon I have a bunch of YAML files that will drive page/form creation (lessons followed by quizzes). can I depend on $PWD being the directory that contains app.psgi to get to these assets?
01:24 gbacon i.e., does mojo normalize the current working directory?
01:25 sri just use $self->app->home
01:26 sri there are even helpers to generate portable paths
01:26 sri http://mojolicio.us/perldoc?Mojo/Home
01:27 gbacon is this a reasonable approach--generating content from assets in private files? it feels like a klunky approach
01:28 sri then use something you like more :)
01:30 gbacon I'm still learning, so I don't yet trust my taste. I'm open to suggestions, though!
01:30 sri then it depends on your priorities
01:38 tempire I've never seen any sane form generation in any procedural language.
01:40 tempire but as long as you separate the yaml->form generation from the controller, there's no inherent problem with what you're doing.
01:42 tempire I always end up doing templates in the long run, though.  with wrapping layouts.
01:42 tempire easier to debug problems
01:43 gbacon where should the code to do the transformation live if not in the controller?
01:43 tempire a separate application layer
01:43 gbacon such as an admin action?
01:44 gbacon e.g., admin#generate_lessons?
01:44 tempire I'd use another class
01:44 tempire package MyFormThing
01:44 tempire Then call it within the controller
01:45 gbacon is template processing fast enough that I shouldn't worry about doing it afresh each time, or should I memoize the result in my persistence layer (which happens to be redis)?
01:46 tempire I wouldn't even bother worrying about performance
01:46 tempire that's not your biggest problem
01:46 tempire worry about performance after you have something to measure against
01:46 tempire just make it easy to understand, extend, and debug
01:47 tempire otherwise you're just guessing
01:48 gbacon (premature optimization)--
01:49 gbacon thanks for your helpful advice. I appreciate you taking time to answer my questions so thoroughly
01:49 tempire I am but a humble bot
01:50 gbacon @botsnack then
01:50 purl thanks gbacon :)
01:51 tempire NOM
02:31 marty errg.   MongoDB uses query operators prefixed with a "$".  Makes it a little tricky to pass them around in Mojo.
02:57 sri think i'll support flags like -gt -ne and so on in my version
02:59 sri actually i think you can even configure it in the official driver
03:13 perlrocks Twitter: "The error was out like this. fatal: 'mojolicious' does not appear to be a git repository fatal: The remote end hung up unexpectedly" (ja) --purasiibo http://twitter.com/purasiib​o/status/74312383325151232
03:50 alnewkirk left #mojo
04:08 AigleNoir left #mojo
04:09 AigleNoir joined #mojo
04:23 preflex left #mojo
04:25 preflex joined #mojo
04:55 D4RK-PH0ENiX joined #mojo
04:57 d4rkie left #mojo
05:00 gbacon left #mojo
05:07 d4rkie joined #mojo
05:08 D4RK-PH0ENiX left #mojo
05:17 Foxcool joined #mojo
05:26 yko joined #mojo
05:42 d4rkie left #mojo
05:43 d4rkie joined #mojo
05:54 D4RK-PH0ENiX joined #mojo
05:56 d4rkie left #mojo
06:06 D4RK-PH0ENiX left #mojo
06:06 d4rkie joined #mojo
06:07 vel left #mojo
06:17 D4RK-PH0ENiX joined #mojo
06:19 d4rkie left #mojo
06:38 perlrocks Twitter: "I Mojolicious chan! http://bit.ly/kOz9Ke # websocket_study" (ja) --choplin http://twitter.com/choplin​/status/74364010664955904
06:44 d4rkie joined #mojo
06:46 D4RK-PH0ENiX left #mojo
06:57 D4RK-PH0ENiX joined #mojo
06:59 d4rkie left #mojo
07:13 d4rkie joined #mojo
07:15 D4RK-PH0ENiX left #mojo
07:30 D4RK-PH0ENiX joined #mojo
07:32 d4rkie left #mojo
07:39 snearch joined #mojo
07:51 Foxcool left #mojo
07:51 abra left #mojo
07:57 Foxcool joined #mojo
08:02 abra joined #mojo
08:05 d4rkie joined #mojo
08:07 D4RK-PH0ENiX left #mojo
09:39 sugar joined #mojo
09:52 snearch left #mojo
10:16 gbacon joined #mojo
10:23 sh4 joined #mojo
10:49 Kulag left #mojo
10:58 Kulag joined #mojo
11:40 preflex left #mojo
11:43 preflex joined #mojo
11:57 * marcus ponders implementing ics as a template using the mojolicious renderer
12:11 preflex left #mojo
12:13 preflex joined #mojo
12:23 Kulag left #mojo
12:23 crab what's ics?
12:23 purl ics is, like, super. or iChat Status, a tool to put stuff in my iChat Status line
12:37 Kulag joined #mojo
13:06 Foxcool left #mojo
13:06 Foxcool joined #mojo
14:03 sherr left #mojo
14:08 marcus crab: text/calendar
14:21 * crab ponders pgbouncer
14:24 gbacon left #mojo
14:30 marcus crab: to throw out drunk queries?
14:35 crab hah
14:41 j3nnn1 left #mojo
14:41 sherr joined #mojo
15:49 zakame joined #mojo
15:50 zakame hi
15:50 crab hi
15:50 purl what's up, crab.
15:51 crab shut up, purl.
15:51 purl Yes, sir.
15:53 sri purl: lies
15:53 purl http://ninjapants.org/files/LIES!!!.jpg
15:54 Foxcool left #mojo
15:55 marcus sup sri
15:55 sri the sun
15:56 * marcus is looking at crab's shiny framework.
15:56 crab it's called a "carapace"
15:56 crab ;)
15:56 sri shiny
16:00 Foxcool joined #mojo
16:16 sh4 left #mojo
16:35 sh4 joined #mojo
17:02 * crab roars grumpily
17:04 sugar how to process static files with mojo?
17:04 sugar create dir att root of app called "data"?
17:04 crab not data, public
17:04 sugar thanx
17:04 sugar i forgot
17:05 sri it's documented
17:05 sri http://mojolicio.us/perldoc?M​ojolicious/Lite#Static_Files
17:06 sugar i forgot where it's documented =)
17:06 * sri bonks sugar on the noggin
17:07 sugar i want to write mojolicious cheatsheet because i'm forgetful =)
17:07 marcus sugar: but you keep forgetting to do it?
17:08 sri :)
17:09 miyagawa_ joined #mojo
17:10 crab i'm using net::ftp to talk to a windows ftp server. i feel so old-skool
17:11 miyagawa left #mojo
17:11 marcus more like 'lame'
17:11 marcus :p
17:11 crab that's not nice.
17:11 marcus worst ftp server ever </comic book guy>
17:12 crab i sentence you to the BAD DOG BOX!
17:12 marcus it makes glftpd seem great!
17:12 marcus crab: I sentence you to the ALLIGATOR PIT!
17:12 marcus :)
17:12 crab is glftpd bad? i've never heard of it
17:13 miyagawa_ is now known as miyagawa
17:13 crab i use something called pure-ftpd when i need to offer ftp.
17:13 marcus glftpd was the most popular ftp daemon used for private warez sites
17:14 marcus http://en.wikipedia.org/wiki/Glftpd
17:14 marcus it was pretty shitty.
17:26 perlrocks Twitter: "Task 46363 for sisyphus by crux DONE perl-Mojolicious.git=1.34-alt1 http://bit.ly/lPj9k4" --girar_builder http://twitter.com/girar_buil​der/status/74527037473292288
17:29 crab does the google translate api being deprecated mean even the english tweets will stop making sense?
17:47 sh4 left #mojo
18:27 perlrocks Twitter: "People are poison to OSS. Dan Thomas pretty much guaranteed I won't be using Mojolicious, ever. Software is made of people. Consume wisely." --jshirley http://twitter.com/jshirle​y/status/74542267972595712
18:28 sugar what does it mean?
18:35 sri i think he doesn't like Dan Thomas, but Dan Thomas likes mojolicious, or something like that
18:36 sugar thanx
18:36 crab who's dan thomas?
18:36 * sri shrugs
18:40 sugar does it planned to add 'model' layer to mojoliclious?
18:40 sri not to the core framework
18:40 sugar plugin?
18:40 purl plugin is totally not a better way :)
18:40 sri ye
18:41 sugar what kind of orm it will be?
18:41 sugar rose or dbix? or something another?
18:43 sri my version will be mongodb only
18:43 sugar ok, thx
18:48 Foxcool left #mojo
18:49 sri wow, a mid sized rails app loads 2200 files during startup :o
18:50 sri lol... under ruby 1.9.3 that takes 46 seconds
18:51 vel joined #mojo
18:57 Htbaa joined #mojo
18:58 hidek left #mojo
19:08 Foxcool joined #mojo
19:08 abra left #mojo
19:14 hidek joined #mojo
19:22 Foxcool left #mojo
19:34 sh4 joined #mojo
20:13 metaperl left #mojo
20:27 perlrocks Twitter: "Mojolicious-Plugin-Toto 0.03 by BDUGGAN - http://frepan.org/~bduggan/M​ojolicious-Plugin-Toto-0.03/" --cpan_new http://twitter.com/cpan_ne​w/status/74572502776557568
20:45 sri http://www.michielovertoom.​com/python/pastebin-abused/ # lol, who will be the first to scrape those with a mojolicious oneliner?
20:50 sri wonder if using the beautifulsoup solution for attributes would be more convenient
20:51 sh4 left #mojo
20:53 sri hmm, or maybe not
20:54 sri print $dom->at('a[href]')->{href};
20:54 sri autoload magic could be kinda neat too
20:54 sri print $dom->a->{href};
20:54 sri :)
20:55 sugar left #mojo
20:56 sri that's actually very possible to do
20:59 sri suppose if autoload was limited only to children of the current node, it wouldn't be too crazy
21:02 chansen go for it =)
21:04 sri print $dom->parse('<a><b foo="bar">baz</b></a>')->a->b->text;
21:04 sri i'm not sure ;p
21:04 sri print $dom->parse('<a><b foo="bar">baz</b></a>')->a->b->{foo};
21:05 sri maybe it would be fun to be able to do that
21:05 marcus I like it.
21:06 chansen hard to say, might be a bit of to much "magic"
21:07 sri yea
21:09 chansen marcus: where will you stay during NPW?
21:14 GitHub37 joined #mojo
21:14 GitHub37 mojo: master Audrey Tang * 30f8156 (1 files in 1 dirs): * Only fetch from %$env for the keys that actually matches /^HTTP_/i; ...
21:14 GitHub37 mojo: master Sebastian Riedel * 4125872 (1 files in 1 dirs): Merge pull request #152 from audreyt/master ...
21:14 GitHub37 mojo: master commits 2cf59ac...4125872 - http://bit.ly/kw0OyB
21:14 GitHub37 left #mojo
21:14 marcus aha, Dan Thomas is a blog commenter. http://blogs.perl.org/users/sawyer_x/2011/05/th​e-dancer-release-that-will-get-you-hooked.html
21:16 sri don't think i've ever seen the name
21:17 sri then again, i know very few real names
21:18 marcus sri: guess you are now responsible for everyone on the internets who like Mojolicious =)
21:19 chansen who can claim they invented before and after hooks?
21:19 marcus dan thomas, I suppose
21:19 sri think i even told the dancer folks they should go with hooks since it was a huge success for us
21:19 marcus http://search.cpan.org/~dan/ maybe
21:20 perlrocks Twitter: "@jshirley Haven't seen him around the internets. Don't think he's involved in Mojolicious development." --marcusramberg http://twitter.com/marcusramb​erg/status/74585891636658176
21:21 sri doubt anyone can claim to have invented hooks :)
21:21 chansen marcus: are you scared that I will book the same hotel as you?
21:22 chansen I will haunt you and get you wasted, but what did you expect? ;P
21:22 marcus chansen: no. I very highly doubt you will :) I was planning to slum it and stay at http://www.rutochragnars.se/
21:23 marcus but getting wasted and not falling asleep under a bush is an option as well.
21:23 marcus atm I'm busy finding somewhere to stay for next weekend in amsterdam :p
21:26 chansen I didn't know about that place =)
21:27 chansen How did you find it?
21:27 marcus google'd malmö hostel
21:29 GitHub195 joined #mojo
21:29 GitHub195 mojo: master Sebastian Riedel * c4051cf (2 files in 2 dirs): updated changes - http://bit.ly/lWWryd
21:29 GitHub195 left #mojo
21:29 chansen ok, why not Hilton, it's central and has good service (and good beer =)?
21:29 marcus chansen: seems like a fairly central location.
21:29 chansen it's central
21:31 chansen Ihttp://www.hotellformule1.se/info.asp?id=8 (is known for their cheap price in Malmoe)
21:32 chansen err, <http://www.hotellformule1.se/info.asp?id=8>
21:32 marcus chansen: yeah, that seems reasonable
21:32 marcus half the price of hilton :)
21:33 chansen true, but less service
21:33 marcus (http://www.hotellformule1.se/info.asp?id=8
21:33 marcus guess you're going for the queen junior suite? ;)
21:33 marcus well, I'll only be staying one night, and I just need somewhere to crash
21:34 marcus I'll probably be at the conference all day, and out drinking in the evening =)
21:34 marcus so I don't care as long as the bedding is clean and there are no cockroaches
21:34 chansen We could share a room at Hilton if you want
21:34 marcus sure, that would work for me
21:34 marcus the great getaway twin room, 810?
21:35 Htbaa left #mojo
21:35 marcus or even twin deluxe
21:36 perlrocks Twitter: "Thinking about some new Mojo::DOM features, could be a little too much magic, thoughts? http://t.co/m6DXGXt #mojolicious #perl" --kraih http://twitter.com/kraih/status/74589922798993408
21:37 chansen marcus: will you stay between 18th-19th?
21:38 perlrocks Twitter: "@marcusramberg Maybe someone who is involved should tell him to quit making the Mojolicious group look like assclowns :)" --jshirley http://twitter.com/jshirle​y/status/74590265070985216
21:38 marcus chansen: yeah, landing in cph 08:15
21:38 marcus on saturday morning
21:40 chansen do you want a suite or a room?
21:40 chansen https://secure.hilton.com/en/hi/res/rate_type_det​ails.jhtml;jsessionid=DXL4FVAOWK4WMCSGBJBNUKQ?rat​ePlan=PGGG04&amp;roomType=Q1JRW&amp;convertedCurr​ency=SEK&amp;targetCurrency=SEK&amp;rateIndex=0
21:40 chansen 2,220.00 SEK
21:41 marcus yeah. That's a double bed + single bed. 57m2 ;)
21:42 chansen cool, I'll take care of the arrangements and payments on monday
21:44 chansen Actually, I intend to book it know
21:46 marcus chansen: ok. Do you want me to transfer money to you now, or will it do to pay you back when we get there?
21:54 chansen marcus: it can wait until we meet, it's booked in my name
21:54 chansen marcus: https://files.me.com/christian.hansen/3v8rt7
21:55 marcus chansen: cool beans! I really hope they schedule my talk for saturday :p
21:56 vel left #mojo
21:56 chansen =)
21:58 chansen marcus: whats your email?
21:58 marcus chansen: marcus.ramberg@gmail.com , or marcus@nordaaker.com for work related
21:59 marcus chansen: a couple of the norwegian perl hackers are coming by boat to the event :)
22:00 chansen I have forwarded the reservation to your gmail.com account
22:00 marcus I got it, thanks
22:00 chansen cool =)
22:00 marcus chansen: http://code.foo.no/2011/05/11/im-on-a-perl-boat
22:01 chansen nice, lets have a small party in our suite for them =)
22:03 chansen sri: why not join us?
22:04 sri i know i know :(
22:04 chansen do it! do it! =)
22:05 sri that doesn't look like a viking boat btw.
22:05 marcus sri: http://3.bp.blogspot.com/_T_JachDW9ag/TC​OLkSrc2yI/AAAAAAAAIXo/5pqBfHadhhI/s1600/​arguably_the_best_lego_creation_ever.jpg
22:05 sri lol
22:05 chansen marcus: we can get a Deluxe Suite, 60m�/645sq.ft for 700+ SEK ;P
22:07 marcus chansen: you're thinking the queen junior suite is a bit on the small side? ;)
22:07 marcus chansen: if sri comes, we can upgrade :p
22:07 chansen heh, I agree =)
22:08 chansen sri: what are you waiting for?
22:16 chansen sri: haven't you ran out of excuses to not attend?
22:16 chansen marcus say I had
22:18 * marcus grabs another beer from the fridge
22:20 * chansen chansen just grabbed a Kaltenberg
22:21 marcus I got a Rallar Amber Ale.
22:22 chansen Never tasted tasted that, where is it from?
22:23 marcus norway - http://www.flamsbrygga.no/bryggeri/
22:24 marcus it's quite good tho
22:25 chansen cool, please bring one, it's not available on our "systembolag"
22:27 marcus I would, if it weren't for the damn airport security
22:27 marcus stupid fluid restrictions
22:28 chansen oh, you traveling with only hand luggage?
22:29 chansen same restrictions here in sweden =(
22:30 garu sri: fwiw, I like the direct access to attributes
22:31 garu but I'm not sure about the autoload access
22:32 marcus yeah, I avoid checking luggage when I can.
22:32 marcus chansen: systembolaget has nøgne ø tho, that is a pretty good norwegian beer brand as well
22:32 marcus chansen: http://www.systembolaget.se/Sok-dryck/Dryck/?so​rtfield=Land&amp;sortdirection=Ascending&amp;hi​tsoffset=300&amp;page=13&amp;searchview=All&amp​;varugrupp=%C3%96l&amp;groupfiltersheader=Defau​lt&amp;artikelId=277404&amp;varuNr=89399&amp;fi​lters=varugrupp%2c&amp;referringUrl=%2fSok-dryc​k%2f%3fsortfield%3dLand%26sortdirection%3dAscen​ding%26hitsoffset%3d300%26page%3d13%26searchvie​w%3dAll%26varugrupp%3d%25c3%2596l%26groupfilter​sheader%3dDefault%26filters%3dvarugrupp%252c
22:33 chansen mm, nice, I'll have to try it
22:35 * chansen that was a long uri ;P
22:35 marcus yeah, sucky cms
22:36 chansen Java or C# developers, what do you expect? ;P
22:36 marcus seems they maintain my search in the url so that they can provide a 'back to search' link
22:36 marcus because why would you use the back button, right?
22:38 chansen Seems right
22:39 chansen sri: poof?
22:39 purl rumour has it poof is old school,.. reform.pm is where its all
22:40 sri actually i'm playing with Mojo::DOM magic ;p
22:40 chansen sri: would your mind change if you received some "sponsor chip"
22:41 sri it's really fracking convenient :S
22:41 sri chansen: nope
22:41 chansen sri: ffs get your as over here!!!!
22:42 chansen =)
22:42 chansen I know you want to meet marcus and perhaps me ;P
22:43 sri i do
22:44 chansen I'll invade your country when you least expect it (probably during a october festival ;)
22:45 sri think the first perl conference i'll attend will be under a fake name ;p
22:45 chansen sri: it's not to late marcus and I could upgrade to a premium suite if you decide to come =)
22:46 marcus sri: it would be pretty safe to start with nordic perl workshop with me and chansen attending :)
22:46 marcus only mellow vikings come there anyways.
22:46 chansen true =)
22:49 tempire sri, you should go.
22:49 tempire you could wear a disguise
22:49 tempire http://www.geeky-gadgets.com/wp-conte​nt/uploads/2011/03/Bender-150x150.jpg
22:49 marcus tempire++
22:49 sri NEED!
22:51 chansen sri: think of what could happen if you, me and marcus met IRL, we could conquer the world ;P
22:52 marcus if only we could decide how to divide it...
22:52 marcus ;)
22:52 chansen heh
22:55 tempire I like the Mojo::DOM magic
22:55 tempire though I don't know that it's necessary
22:55 tempire the jquery syntax is known & expected
22:55 tempire what would it select, the first one?
22:57 sri which one do you mean?
22:57 sri oh ->a?
22:57 sri yes, the first one
22:57 purl the first one is probably gone
22:58 sri ->a->[0]->b would also be an option
22:59 sri non existing child would trigger the usual "Can't locate object method "a" via "Mojo::DOM" at t/mojo/dom.t line 26"
22:59 sri just like perl would throw it
22:59 tempire the a->[0]->b is neat
23:00 sri a->b if there's only one
23:00 marcus nice! iA writer available for the mac now
23:00 marcus http://osx.iusethis.com/app/iawriter  love it on ipad
23:05 sri hmm, implementation was actually very easy
23:05 sri i have it all
23:08 sri damn, this is conveninent :S
23:21 tempire hmm
23:21 tempire the t
23:21 tempire the tree structure of m::dom is perfect
23:21 tempire so a->[-4]->b would work as well
23:23 sri maybe it is not too much magic, considering that it only finds actual children
23:29 j3nnn1 joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary