Camelia, the Perl 6 bug

IRC log for #mojo, 2012-01-17

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

All times shown according to UTC.

Time Nick Message
00:02 GitHub172 joined #mojo
00:02 GitHub172 [mojo] kraih pushed 1 new commit to not_found: http://git.io/1Ok4HA
00:02 GitHub172 [mojo/not_found] be more generous with table spacing - Sebastian Riedel
00:02 GitHub172 left #mojo
00:15 ccushing xaka what'd you check after_dispatch to determine not found? I'd think subclassing_would work, but for whatever reason seemed not to, though maybe I'm just missing something
00:16 xaka ccushing: status code, like "if $self->res->code == 404 then do something". you can rewrite body by $self->res->body(json(...)), but you also need to change content tpye
00:16 purl Since Thu Aug  5 20:55:17 2010, there have been 55816 modifications and 28779 questions.  I have been awake for 529 days, 3 hours, 21 minutes, 39 seconds this session, and currently reference 896718 factoids. Addressing is in optional mode.
00:18 ccushing xaka cool thanks
00:18 ccushing I'll try that
00:18 xaka ccushing: http://pastebin.com/M2jcf05V
00:18 xaka ccushing: this is how i deal with exceptions (i know you were looking for the same solution)
00:21 xaka ccushing: but i'm not sure you have to convert 404 to JSON, only 500 make sense
00:33 ccushing xaka thanks
00:42 * ccushing wonders how when I request either .json or Accept: application/json that format still ends up as html if not_found
00:47 hshong joined #mojo
00:49 alnewkirk ... this seems familiar :}
00:50 xaka ccushing: the question is what are you expecting to see in output as JSON when not_found happens? what the json structure?
00:52 ccushing I don't particularly care if all it was was something like message => 'not found'
00:54 xaka but you already have status == 404 attribute in xmlhttprequest object or whatever client you use
00:55 xaka in case of 500 you want to have clear error message with no html wrapping around it - understandable, but why do you need the same for 404? I mean you know status and requsted URL, there is no more information
00:55 ccushing well more simply put, I don't want a crap load of html returned
00:56 ccushing I suppose I could return no body
00:57 ccushing about the only reason to return a message is if the human is actually looking at it
01:00 d4rkie joined #mojo
01:18 ccushing but also some thought to, what if I only wanted to return json if Accept or url end was json
01:18 ccushing if the format isn't detected right
01:31 jnap joined #mojo
01:34 Alias joined #mojo
01:41 ccushing xaka hmm  ,,,              my $message = $c->stash->{exception}->{message}; doesn't seem to contain anything, are you stashing it directly?
01:41 ccushing I tried dumping $self but can't find any instance of the actual error message anywhere
01:51 xaka ccushing: you'll find it there only in case of error
01:52 ccushing xaka yeah I'm forcing an error :/ I broke one of my subs so that it would 500
01:54 ccushing if I don't trap the 500 using after_dispatch it'll throw the html 500
01:55 ccushing it's also putting the error in the log
01:55 ccushing I just seem unable to find it in the object anywhere
02:02 ccushing http://privatepaste.com/bb04cedffd my stash and the actual error
02:10 ccushing I see some code in the object which looks like maybe it's deleted the key
02:14 jnap joined #mojo
02:17 ccushing template => "% my \$e = delete \$self->stash->{'exception'};\n<!DOCTYPE html>\n<html>
02:19 jwang joined #mojo
02:30 ccushing I suppose if I create a blank template so that the default one doesn't go and do things like deleting the message
02:30 ccushing which is pretty dump imo
02:30 ccushing dumb*
02:35 vlixes joined #mojo
02:36 * ccushing wonders why it would ever be a good idea to do that
02:37 jnap joined #mojo
02:41 foomator joined #mojo
03:09 jnap joined #mojo
03:19 jwang joined #mojo
03:38 Psyche^ joined #mojo
03:50 Jerald joined #mojo
03:53 Jerald Hey everyone, is this the appropriate spot for general beginner questions?
03:56 kd it probably is
03:58 Jerald I wrote a perl script to parse a bunch of apache logs, and email the output.  I want to use mojolicious to display it in a browser.  I am reading the docs on the mojolicious site, and watching the screencast, but I am just not getting it.  I am wondering if anyone has anything that I could reference that looks at a apache commons log?
03:59 Jerald Just looking for something to reference is all, I am new to perl, so learning both the language and mojolicious is a little overwhelming.
04:04 crab i don't know of any example like that.
04:04 crab oh wait, what are you trying to do? display the log as if with tail -f?
04:05 crab or something simpler?
04:13 Jerald not that simple, a little more complex, but I would settle with something that does a tail.  I think that I can come up with the rest.
04:14 crab http://toroid.org/ams/etc/​mojolicious-http-streaming
04:15 Jerald This is a great start, thanks.  I already have the meat of my script done, but I just need to get my feet wet w/Mojolicious
04:15 Jerald thanks again/
04:21 crab you're welcome.
04:40 arpadszasz joined #mojo
04:42 Alias left #mojo
04:55 xaka joined #mojo
05:03 mire joined #mojo
05:28 kaare joined #mojo
05:49 Jerald joined #mojo
06:00 mmp joined #mojo
06:11 cosmincx joined #mojo
06:21 koban joined #mojo
06:57 mire joined #mojo
07:12 xaka joined #mojo
07:13 vlixes left #mojo
07:26 memowe Goooood mooooorning mooooojooooooo!
07:38 crab hi memowe.
07:42 crab are you mem-ohw or memo-wee?
07:46 memowe I think the last one's better. :)
07:47 spleenjack joined #mojo
08:03 newbie joined #mojo
08:10 Vandal joined #mojo
08:11 ver[aw] joined #mojo
08:18 sugar joined #mojo
08:32 ver[aw] joined #mojo
08:33 xxtjaxx joined #mojo
08:40 Foxcool joined #mojo
08:51 judofyr joined #mojo
08:57 xxtjaxx joined #mojo
09:04 cosmincx joined #mojo
09:35 Vandal joined #mojo
09:37 berov joined #mojo
09:44 kitt_vl joined #mojo
10:22 ki0 joined #mojo
10:41 sri https://github.com/kraih/mojo/pull/265 # rejected, you're welcome to comment
10:45 sri crab: what are your thoughts on the route list?
10:55 sri is anyone even looking at the branch?
10:56 sri seems a bit silly to open a discussion and branch if nobody really participates :(
11:06 crab sorry, minor things like eating and taking care of my daughter got in the way of my slavish devotion to mojo ;-)
11:07 sri eating is for the weak! ;p
11:07 crab sri: but i saw what you committed, and agree that a lot of additional text isn't necessary.
11:07 crab so i backed off to think if there's anything to say that would carry its weight in that contact
11:07 crab er, s/contact/context/
11:08 sri ok :)
11:08 sri i'll merge it into master later if there are no complaints
11:11 sherr joined #mojo
11:19 ZadYree Hey mojo fellas!
11:19 ZadYree Gewd nooz everyone!
11:26 memowe sri: just to let you know, I think it's great to have a route list on dev 404's.
11:27 sri memowe++
11:27 memowe BTW: did anyone try to contact adamk because of the ORLite/sqlite_unicode issue?
11:28 batman joined #mojo
11:39 GitHub56 joined #mojo
11:39 GitHub56 [mojo] kraih pushed 1 new commit to not_found: http://git.io/DTuamQ
11:39 GitHub56 [mojo/not_found] made not_found page a little easier on the eyes - Sebastian Riedel
11:39 GitHub56 left #mojo
11:44 sri http://twitpic.com/88crcj/full # latest version
11:46 memowe sri: what about a thead with something like "path, method, route name"?
11:47 sri tried that, looks always ugly
11:47 memowe btw, nice background picture behind your browser.
11:47 sri that's the default background of os x lion :)
11:47 memowe Do you have a screenshot of that uglyness?
11:47 memowe Shit, I need lion. ;)
11:48 sri lion is kind of a significant upgrade
11:49 judofyr memowe: you get a free Lion upgrade if you're a iOS developer
11:49 judofyr just FYI
11:49 judofyr or, if you're on a team with some ;)
11:49 memowe Good to know. Thanks. :)
11:50 memowe Does anyone iOS development here? ;)
11:52 keedi joined #mojo
11:58 jegade judofyr: really?
12:04 memowe sri: would be great if you could pack the routes page's css in a single file served by default like jquery.
12:04 memowe So bootylite and contenticious could use that layout by default. :)
12:05 judofyr jegade: yeah
12:06 judofyr at the Mac Dev Center
12:07 memowe Maybe the Mojolicious bar would be helpful on exceptions, too?
12:27 crab see an exception, have a drink
12:33 sri memowe: i actually consider that a reason against extracting the css ;p
12:34 sri i'd rather have the mojolicious look and feel reserved for official stuff
12:34 crab yes.
12:34 crab don't be lazy, get your own design.
12:34 crab ;-)
12:35 sri otherwise we will see paste sites and url shorteners that look like mojolicious exception pages :S
12:36 sri we've already seen that, and i don't blame yko
12:36 sri having a built in layout is just too tempting when you just want to make a quick demo
12:36 * yko is reading channel history
12:37 * sri hugs yko
12:37 yko haha. but that page was nice
12:37 yko and yea... i was too lazy to create some nice look those days
12:38 crab i'm not lazy, just tremendously incapable.
12:38 crab oh wait, i'm lazy too.
12:39 sri bootstrap to the rescue
12:39 yko there should be Mojolicious::Command::Generate::twitter_bootstrap
12:41 sri i'm still not opposed to bundling bootstrap with mojolicious, but someone would have to investogate how well it would fit in and how easy basing our designs on it would be
12:42 crab sri: since there's no pressing need to include it, i'd suggest to wait for 2.0
12:42 sri crab: sure, i'm not very keen on doing the grunt work either, maybe a volunteer will pop up :)
12:43 crab (i've been tracking their 2.0-wip branch, and the improvements are quite significant)
12:43 judofyr I have not been tracking the 2.0-wip branch, but would to see a summary somewhere :/
12:44 crab judofyr: http://bootstrap.io/Demo/
12:47 sri oh, built in icons
12:47 Akron joined #mojo
12:47 crab the icons look somewhat ugly, actually. the jquery ui ones look better to me.
12:48 sri was about to say it
12:49 Akron memowe: What is the matter with ORLite?
12:56 Foxcool joined #mojo
13:19 crab it should be named ORLy
13:20 * sri agrees
13:23 GitHub149 joined #mojo
13:23 GitHub149 [mojo] kraih pushed 1 new commit to not_found: http://git.io/wOlhhw
13:23 GitHub149 [mojo/not_found] updated welcome message in lite_app skeleton - Sebastian Riedel
13:23 GitHub149 left #mojo
13:23 Akron :)
13:23 sri btw. both skeletons now use / instead of /welcome
13:44 crab yes, i noticed.
14:04 GitHub118 joined #mojo
14:04 GitHub118 [mojo] kraih pushed 1 new commit to not_found: http://git.io/aR6z9A
14:04 GitHub118 [mojo/not_found] smoother tables - Sebastian Riedel
14:04 GitHub118 left #mojo
14:05 sri quite surprising how much of a difference those little stripes make
14:07 sri http://twitpic.com/88ea4b/full
14:09 sri now compare the last two :)
14:10 judofyr for the lazy ones: http://twitpic.com/88crcj/full vs http://twitpic.com/88ea4b/full
14:10 judofyr sri++
14:12 inokenty joined #mojo
14:13 crab i see nothing at the 88ea4b url
14:15 sri nothing as in 404 or nothing as in no difference?
14:15 crab nothing as in an empty page
14:15 sri reload?
14:15 purl i guess reload is NO! REALOD!
14:16 sri works here
14:17 crab ok, works now.
14:17 jnap joined #mojo
14:22 briang joined #mojo
14:24 koban left #mojo
14:26 fmerges joined #mojo
14:39 nuba joined #mojo
14:52 nuba joined #mojo
15:06 ki0 joined #mojo
15:08 nuba joined #mojo
15:30 amoore joined #mojo
15:31 jnap joined #mojo
15:41 sri https://github.com/perl-doc-cats/perlfaq/pull/26
15:47 sri ok, merged not_found branch into master
15:47 sri without squashing by popular demand -.-
15:48 sri can anyone confirm if it spammed the activity stream?
15:49 sri looks like they are grouped into one event
15:51 sri suppose for branches not squiching is not too bad
15:51 sri s/ic/as/
15:53 d4rkie joined #mojo
16:10 GitHub128 joined #mojo
16:10 GitHub128 [mojo] kraih pushed 1 new commit to master: http://git.io/IiFz5w
16:10 GitHub128 [mojo/master] updated Changes - Sebastian Riedel
16:10 GitHub128 left #mojo
16:14 crab and that is how i implement a feature without doing anything.
16:16 sri :)
16:16 sri crab++
16:17 sri but i must admit, i'll miss the box
16:18 crab sri: it smells like release time to me.
16:18 sri indeed it does
16:19 crab may i?
16:19 sri sure, but give it another hour or two
16:19 sri maybe someone has a last minute idea for the not_found page
16:20 GitHub113 joined #mojo
16:20 GitHub113 [mojo] amenonsen pushed 1 new commit to master: http://git.io/0vvRiw
16:20 GitHub113 [mojo/master] Typo fix - Abhijit Menon-Sen
16:20 GitHub113 left #mojo
16:20 crab yes. when i wake up in the morning, then.
16:21 * sri puts a bombay time watch on his dashboard
16:21 sri seems sensible
16:21 crab but i'm in delhi!
16:22 sri are you one of those weird multi timezone countries too?
16:22 crab you don't expect me to admit i share a timezone with those freaky people from bombay?
16:22 sri ;p
16:23 crab sri: india is wide enough for two timezones, but for "administrative convenience" it was decided to have just one zone averaging the two ends.
16:23 sri smart
16:24 crab 'night
16:24 sri nn
16:26 mire joined #mojo
16:55 xaka joined #mojo
16:58 hshong joined #mojo
16:59 alnewkirk joined #mojo
17:01 kitt_vl joined #mojo
17:25 foomator joined #mojo
17:25 hshong joined #mojo
17:26 tempire joined #mojo
17:27 sugar joined #mojo
17:27 marty_ joined #mojo
17:27 hide joined #mojo
17:27 marcus joined #mojo
17:28 DaTa joined #mojo
17:28 alnewkirk joined #mojo
17:28 migo joined #mojo
17:28 xxtjaxx joined #mojo
17:28 mike_ joined #mojo
17:29 sri http://twitpic.com/88ghfb/full # does it look better with table headers like this?
17:29 * sri pokes memowe
17:29 three18ti joined #mojo
17:30 noganex joined #mojo
17:30 mmcleric joined #mojo
17:30 abra joined #mojo
17:32 sri pretty sure it doesn't
17:50 xaka is it sorted somehow?
17:50 GitHub92 joined #mojo
17:50 GitHub92 [mojo] kraih pushed 1 new commit to master: http://git.io/if4DPQ
17:50 GitHub92 [mojo/master] use higher quality fonts when available - Sebastian Riedel
17:50 GitHub92 left #mojo
17:51 grim_fandango joined #mojo
17:55 noganex joined #mojo
17:57 sugar joined #mojo
17:57 hide joined #mojo
17:58 atrodo joined #mojo
17:59 mmcleric joined #mojo
17:59 fmerges joined #mojo
17:59 xxtjaxx joined #mojo
17:59 migo joined #mojo
18:00 gshank joined #mojo
18:00 mike_ joined #mojo
18:01 three18ti joined #mojo
18:02 jwang joined #mojo
18:02 noganex_ joined #mojo
18:04 trone joined #mojo
18:10 anparker joined #mojo
18:20 abra_ joined #mojo
18:36 ccushing sri no can find any tests that my patch breaks, however there are ones that are already broken in master
18:38 Debolaz joined #mojo
18:43 ccushing sri I'd be happy to fix any test I actually broke, if you could tell me which one I broke. Also i'll work on writing an actual test later
18:44 briang joined #mojo
19:00 sri ccushing: http://pastie.org/3202893
19:00 ccushing does running via a test set any variables? or anything that can be checked to say that we are now in a test env
19:01 sri i also do not believe what you're trying to do is a good idea and shouldn't be made easier
19:02 sri but you're welcome to try and convince the other core devs
19:02 mercutioviz joined #mojo
19:02 ccushing I do not believe that templates should have logic
19:02 ccushing outside of display
19:03 ccushing http://privatepaste.com/76c6ff4d87
19:03 ccushing I can't reproduce your test failure
19:06 ccushing I'm running the latest master with my patch applied to the HEAD, and Perl 5.14.2
19:11 ki0 joined #mojo
19:11 Netfeed anyone that knows a good library for working with sql schema migrations in perl? i find rubys sequel to work pretty well, but i don't really want to mix perl and ruby in a project
19:14 Quai http://search.cpan.org/~oper​a/Migraine-0.54/Migraine.pm
19:14 memowe sri: I think it's better with table headers.
19:16 memowe sri: hm. I understand. #default #css
19:16 judofyr joined #mojo
19:17 Netfeed Quai: thanks, too bad that it sems like nothing has happened with it since 2009 though
19:22 ccushing Netfeed hmm something was discussed on ironman the other day
19:23 Netfeed hmm?
19:23 ccushing looking
19:23 ccushing Netfeed http://jjnapiorkowski.typepad.com/modern-pe​rl/2012/01/dbixclassmigration-preview.html
19:26 Netfeed thanks, i'll take a look at it
19:27 memowe sri: please use the same padding values for table headers and data cells. :) #404 #routes
19:28 sri memowe: i've never added headers
19:31 memowe 18:29:25 <@sri> http://twitpic.com/88ghfb/full # does it look better with table headers like this?
19:31 memowe whatever. :)
19:31 sri memowe: yea, decided against it
19:31 sri was just a try
19:32 memowe k.
19:32 sri think i'll leave it as is for the release tomorrow
19:46 GitHub131 joined #mojo
19:46 GitHub131 [mojo] kraih pushed 1 new commit to master: http://git.io/5-UZ5Q
19:46 GitHub131 [mojo/master] fixed typo - Sebastian Riedel
19:46 GitHub131 left #mojo
19:49 batman joined #mojo
20:05 arpadszasz joined #mojo
20:20 * tempire publicly appreciates sri
20:21 sri \o/
20:22 * tempire delivers an award http://bit.ly/zYod5x
20:24 memowe Mo-jo-li-cious! The award-winning ... you know ... computer ... web ... thing.
20:24 * sri puts it in the channel showcase
20:29 alnewkirk joined #mojo
20:44 kaare joined #mojo
20:47 kaare joined #mojo
21:10 user_1159 joined #mojo
21:22 perlite_ joined #mojo
22:39 dav3 joined #mojo
22:40 dmn001_ joined #mojo
23:06 GitHub121 joined #mojo
23:06 GitHub121 [mojo] kraih pushed 1 new commit to master: http://git.io/kZ4AJQ
23:06 GitHub121 [mojo/master] added table headers - Sebastian Riedel
23:06 GitHub121 left #mojo
23:07 sri memowe: there you go :)
23:09 sri http://twitpic.com/88jo2f/full # final version
23:10 crab ok, i'm awake.
23:10 sri oh, that was close :)
23:11 jnap joined #mojo
23:12 crab btw, i was toying with the idea yesterday of having the title say "Page not found... yet!", but ultimately couldn't decide if it was stupid or not.
23:13 crab it's probably stupid.
23:14 sri it's cute, but maybe confusing
23:15 sri or wait
23:15 sri the <h1> could say that
23:15 crab sorry, yes, that's what i meant.
23:16 crab i meant to say "heading", not title.
23:16 sri the disclaimer below makes pretty clear what it means
23:16 mire joined #mojo
23:16 * sri nods
23:16 sri if you want to do that do it :)
23:16 memowe sri: great! :)
23:19 GitHub26 joined #mojo
23:19 GitHub26 [mojo] amenonsen pushed 1 new commit to master: http://git.io/yQPbKQ
23:19 GitHub26 [mojo/master] A silly heading… or is it reassuring? - Abhijit Menon-Sen
23:19 GitHub26 left #mojo
23:21 GitHub46 joined #mojo
23:21 GitHub46 [mojo] amenonsen pushed 1 new commit to master: http://git.io/0-R3fg
23:21 GitHub46 [mojo/master] Bump VERSION after release - Abhijit Menon-Sen
23:21 GitHub46 left #mojo
23:21 sri heh, you're actually using the entity :)
23:22 * sri always just goes with three dots
23:24 sri http://twitpic.com/88jt7x/full
23:27 sri crab++
23:33 * sri should sleep now, dentist appointment in the morning :(
23:36 crab good night
23:55 tempire yet++
23:56 tempire It will be interesting to see how many people click on the title bar from the error page

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