Camelia, the Perl 6 bug

IRC log for #mojo, 2012-04-10

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

All times shown according to UTC.

Time Nick Message
00:02 mmajchrzak joined #mojo
00:04 mmajchrzak How i can write result from my query in mojo template system ?
00:09 alnewkirk mmajchrzak: stash the results
00:09 alnewkirk $self->stash() or $self->render()
00:20 mmajchrzak alnewkirk ok i have http://pastebin.com/2XhEEnBi but i dont know what i must to do in template
00:26 alnewkirk mmajchrzak: read the DBI POD
00:26 alnewkirk *hint* $sth
00:47 tempire mmajchrzak: make sure you read the part about placeholders and bind values
00:47 tempire http://search.cpan.org/~timb/DBI-1.61​8/DBI.pm#Placeholders_and_Bind_Values
01:04 spacebat joined #mojo
01:04 spacebat hi
01:04 purl privet, spacebat.
01:04 spacebat I'm writing a lite app and running into an error that I'm not sure how to fix
01:06 spacebat http://perl.nopaste.dk/p4975
01:07 spacebat I spent a while trying to figure out how to write an exception template, then found that <%= $exception->message => works
01:07 mmajchrzak joined #mojo
01:07 spacebat but no matter what kind of URL I put on the next line, I get a fatal error
01:10 spacebat I'm running mojolicious on perl 5.14.2, are there known issues with this combination?
01:11 spacebat d'oh found my bug
01:11 spacebat :) typo closing a tag on the previous line
01:11 scott joined #mojo
01:21 bird joined #mojo
02:23 tempire So
02:23 tempire Yesod, a Haskell web framework is about to release an oreilly book
02:25 tempire Oh, it's already been released online
02:25 tempire http://www.yesodweb.com/book
02:26 tempire I've been learning happstack, and it just occurred to me how much having a book available it affects people.
02:27 tempire I'm thinking about forgetting about happstack for the moment and going with yesod just because of that book.
02:27 tempire And the fact that they have a screencast.
02:28 tempire In spite of the non-cool sounding name.
02:28 tempire Mojolicious has a cool sounding name and 5 screencasts!
02:28 * tempire wants an oreilly book
02:28 buu But no book?
02:28 purl no book is, like, not reading pm-groups, grinder should be
02:41 tempire Also, I want a ponycorn unicode symbol
02:44 buu A mojo book would be incredibly short.
02:44 buu =]
02:45 tempire credibly short, maybe.
02:45 tempire Depends on what it covers also
02:47 tempire Especially if it covered events
02:48 tempire Would have to be a continually updated publication.  Maybe something like chromatics approach to modern perl
02:50 tempire I like the idea of a short book
02:51 tempire Something easy to keep updated
02:52 sri tempire: agree, mojolicious needs an o'reilly book
02:53 Liam Mojolicious noob here- What's the most preferable way to do pages that are only accessible say, when a user is logged in? I have my own pseudo-solution with ->to(cb=>sub{}); but it seems like h4x.
02:53 tardisx I guess at least there's no doubt about what animal goes on the cover
02:53 tempire Liam: if lite, use under
02:54 Liam It is not.
02:54 tempire Then a bridge
02:54 sri a platypus!
02:54 purl a platypus is very poisonous or a  Firefox extentions supported in FF1.5 that allows to manually tweak a page, see http://platypus.mozdev.org/
02:54 tardisx phooey http://www.oreillymaker.com/ doesn't let you use custom images
02:54 Liam $routes->bridge, you mean, tempire?
02:55 tempire Might have to commission a ponycorn interpretation.
02:55 tempire Or a uniraptor
02:55 tempire Liam: yes
03:23 Liam tempire: just got them working. thanks, bridges are awesome
03:25 buu tempire: NARWHALS
03:25 * sri would be ok with a narwhal
03:25 tempire hmm.
03:26 tempire They do seem to be an offshoot of the ponycorn
03:28 buu narwhals bestwharls
03:42 arpadszasz joined #mojo
04:30 brambles joined #mojo
04:52 tempire joined #mojo
05:31 psimanx1 joined #mojo
05:35 preflex_ joined #mojo
05:47 GitHub101 joined #mojo
05:47 GitHub101 [mojo] kraih pushed 1 new commit to master: http://git.io/fCRdlA
05:47 GitHub101 [mojo/master] small optimizations - Sebastian Riedel
05:47 GitHub101 left #mojo
06:16 GitHub85 joined #mojo
06:16 GitHub85 [mojo] kraih pushed 1 new commit to master: http://git.io/T-d9ag
06:16 GitHub85 [mojo/master] added reactor example - Sebastian Riedel
06:16 GitHub85 left #mojo
06:45 AmeliePoulain joined #mojo
07:03 batman joined #mojo
07:08 fibo joined #mojo
07:09 fhelmber_ joined #mojo
07:17 spleenjack joined #mojo
07:18 taryk joined #mojo
08:02 cosmincx joined #mojo
08:20 tabbi joined #mojo
08:21 tabbi left #mojo
08:45 GitHub117 joined #mojo
08:45 GitHub117 [mojo] kraih pushed 1 new commit to master: http://git.io/abrA-Q
08:45 GitHub117 [mojo/master] fixed HTTPS proxy support in Mojo::UserAgent - Sebastian Riedel
08:45 GitHub117 left #mojo
08:48 azawawi joined #mojo
09:48 azawawi joined #mojo
10:18 GitHub1 joined #mojo
10:18 GitHub1 [mojo] kraih pushed 1 new commit to master: http://git.io/8khhDg
10:19 GitHub1 [mojo/master] fixed more HTTPS proxy bugs - Sebastian Riedel
10:19 GitHub1 left #mojo
10:26 daxim joined #mojo
10:29 GitHub129 joined #mojo
10:29 GitHub129 [mojo] kraih pushed 1 new commit to master: http://git.io/98-2Ug
10:29 GitHub129 [mojo/master] fixed multiple Mojo::Transactor bugs - Sebastian Riedel
10:29 GitHub129 left #mojo
10:32 GitHub101 joined #mojo
10:32 GitHub101 [mojo] kraih pushed 1 new commit to master: http://git.io/e_fpRQ
10:32 GitHub101 [mojo/master] updated Changes - Sebastian Riedel
10:32 GitHub101 left #mojo
10:32 daxim http://stackoverflow.com/questions/10086592/​mojouseragent-get-with-userdefined-callback
10:37 GitHub2 joined #mojo
10:37 GitHub2 [mojo] kraih force-pushed master from f6e5162 to 5582b27: http://git.io/BhzC7A
10:37 GitHub2 [mojo/master] fixed multiple Mojo::UserAgent::Transactor bugs - Sebastian Riedel
10:37 GitHub2 left #mojo
10:38 sri yay for history rewriting
10:55 GitHub155 joined #mojo
10:55 GitHub155 [mojo] kraih pushed 1 new commit to master: http://git.io/kIJYWw
10:55 GitHub155 [mojo/master] more Mojo::UserAgent::Transactor tests - Sebastian Riedel
10:55 GitHub155 left #mojo
11:03 marcus sri == stalin?
11:04 * marcus prepares to be edited out of pictures.
11:04 * sri edits marcus out of pictures
11:07 zivester joined #mojo
11:08 sri hmm
11:08 sri Mojolicious is now 10101 lines of code, of which 81 are deprecated :o
11:09 marcus sri: http://www.youtube.com/watch?v=​VsyuIuKNVt4&amp;feature=fvwrel # revenge!
11:09 sri x_X
11:32 mmajchrzak_ joined #mojo
11:45 fibo joined #mojo
12:31 cosmincx joined #mojo
12:32 jnap joined #mojo
12:34 GitHub154 joined #mojo
12:34 GitHub154 [mojo] kraih pushed 1 new commit to master: http://git.io/Ia5jrQ
12:34 GitHub154 [mojo/master] fixed HTTPS proxy keep alive bug in Mojo::UserAgent - Sebastian Riedel
12:34 GitHub154 left #mojo
12:45 ilbot2 joined #mojo
12:45 Topic for #mojo is now Mojolicious real-time web framework 🐫 http://mojolicio.us 🐫 http://irclog.perlgeek.de/mojo/today
12:49 zivester joined #mojo
13:14 jnap joined #mojo
13:27 jnap joined #mojo
13:42 zivester joined #mojo
13:43 AmeliePoulain I made update mojolicious from 1.31 to last version. When I open any page, I've an error "Uncaught SyntaxError: Unexpected token <". WTF?
13:46 inokenty joined #mojo
13:48 GitHub194 joined #mojo
13:48 GitHub194 [mojo] kraih pushed 1 new commit to master: http://git.io/U0RgBg
13:48 GitHub194 [mojo/master] fixed more keep alive bugs and added tests - Sebastian Riedel
13:48 GitHub194 left #mojo
13:50 Akron joined #mojo
14:16 GitHub62 joined #mojo
14:16 GitHub62 [mojo] kraih pushed 1 new commit to master: http://git.io/1ZRLaQ
14:16 GitHub62 [mojo/master] added support for alternative MIME types to Mojolicious::Types - Sebastian Riedel
14:16 GitHub62 left #mojo
14:17 sri this way it's opt-in and backcompat :)
14:18 vel joined #mojo
14:20 vel joined #mojo
14:22 GitHub198 joined #mojo
14:22 GitHub198 [mojo] kraih pushed 1 new commit to master: http://git.io/rq3Ktg
14:22 GitHub198 [mojo/master] more Mojolicious::Types tests - Sebastian Riedel
14:22 GitHub198 left #mojo
14:23 vel joined #mojo
14:35 Akron sri++ Nice solution!
14:35 sri \o/
14:36 asarch joined #mojo
14:39 GitHub104 joined #mojo
14:39 GitHub104 [mojo] kraih pushed 1 new commit to master: http://git.io/q8JHEA
14:39 GitHub104 [mojo/master] even more Mojolicious::Types tests - Sebastian Riedel
14:39 GitHub104 left #mojo
15:47 Psyche^ joined #mojo
15:49 vel joined #mojo
16:08 xaka1 joined #mojo
16:33 sri tempire: i've changed the user agent debug output a little, please take a look
16:41 GitHub73 joined #mojo
16:41 GitHub73 [mojo] kraih pushed 1 new commit to master: http://git.io/kgvPzg
16:41 GitHub73 [mojo/master] tweaked debug messages some more - Sebastian Riedel
16:41 GitHub73 left #mojo
16:43 sri http://hastebin.com/raw/nibaqogoro # it now basically looks like this
16:44 inokenty Sweet =)
16:47 GitHub124 joined #mojo
16:47 GitHub124 [mojo] kraih pushed 1 new commit to master: http://git.io/ciLi8g
16:47 GitHub124 [mojo/master] fixed formatting of debug messages - Sebastian Riedel
16:47 GitHub124 left #mojo
16:49 mercutioviz joined #mojo
16:51 batman joined #mojo
17:04 sri http://hastebin.com/raw/lehufapami # quite a bit better when the one logging goes first
17:05 psimanx1 joined #mojo
17:07 baton8_ joined #mojo
17:12 xaka1 i saw people use ">>> " prefix for incoming stream and "<<< " for outgoing, looks really cool
17:13 xaka1 i like how it's implemented in swaks (http://www.debian-administration.org/articles/633, SMTP proto, check debug output)
17:30 GitHub101 joined #mojo
17:30 GitHub101 [mojo] kraih pushed 1 new commit to master: http://git.io/WDX0Uw
17:30 GitHub101 [mojo/master] improved all debug messages - Sebastian Riedel
17:30 GitHub101 left #mojo
17:31 asarch joined #mojo
17:32 sri http://hastebin.com/raw/mageqiwoje # current version
17:38 GitHub24 joined #mojo
17:38 GitHub24 [mojo] kraih pushed 1 new commit to master: http://git.io/Q4BnRg
17:38 GitHub24 [mojo/master] fixed Mojo::Transaction::WebSocket debug message - Sebastian Riedel
17:38 GitHub24 left #mojo
17:50 tempire I like the <<< >>>
17:50 tempire though I wonder if it makes sense to put the arrows first.
17:50 tempire isn't the CLIENT/SERVER implied by the arrows?
17:51 sri the from/to part is not important?
17:52 plu sri++
17:53 plu I'm abusing Test::Mojo to write up some testsuite to make sure I do not break anything when refactoring 400 lines of ugly apache rewrite rules. And it has such a nice interface, really enjoying it :)
17:54 tempire I'm wondering if https://raw.github.com/gist/2353236/440f6b1​437559cc1af232c2606da79ea52abd67d/gistfile1 would be easier to read
17:54 plu maybe something you might consider adding to the sugar layer of Test::Mojo is: ->redirects_to, which basically is just a shortcut for header_is( Location => ... )
17:55 plu if it sounds reasonable I can prepare a pull request :)
17:55 sri tempire: you don't know which was written by the server and which by the client
17:56 sri plu: for now i'd rather not make unnecessary changes
17:56 plu ok :)
17:56 tempire >>> would mean send to server, <<< would mean receive from server
17:56 sri tempire: umm
17:57 sri tempire: the server writes debug messages too
17:57 xaka1 why dont use something: ">>> GET / HTTP/1.1" and "<<< HTTP/1.1 200 OK", i.e. prefix every client's line with >>> and server's line with <<<
17:57 sri xaka1: because it's not a fricking line based protocol!
17:58 xaka1 you log request/response lines and headers only, don't you?
17:59 xaka1 in that case it's line-based till you reach body, imo
18:03 cosmincx joined #mojo
18:04 GitHub17 joined #mojo
18:04 GitHub17 [mojo] kraih pushed 1 new commit to master: http://git.io/h3_vHg
18:04 GitHub17 [mojo/master] lower case debug messages - Sebastian Riedel
18:04 GitHub17 left #mojo
18:06 sri http://hastebin.com/raw/judutojomo
18:07 tempire is the MOJO_DAEMON_DEBUG new?
18:07 sri the whole point was being able to look at both sides at the same time, client and server
18:07 tempire probably not
18:08 sri just as old as MOJO_USERAGENT_DEBUG
18:08 tempire well it's new to me
18:08 tempire sri+++
18:08 xaka1 http://hastebin.com/raw/huvoxufido :)
18:10 xaka1 http://hastebin.com/raw/fobohugoqa ("curl -v" output, just to compare)
18:13 bobkare the direction prefix on every line is nice until you need to copy/paste some of the data out somewhere
18:14 sri this is debug output, for developers only
18:16 sri losing flow information to make it more enduser friendly is not even up for discussion ;)
18:27 asarch joined #mojo
18:59 batman how do i configure hypnotoad without config files?
19:00 batman *config file
19:01 batman oh. i think i see how from the Cookbook...
19:58 rhaen joined #mojo
20:00 rhaen hep
20:24 mmajchrzak_ How can I change value of the variable in the template without print ? I know that i can use <%= $var++ %> but result will show me on the screen.
20:25 buu HAve you tried <% $var++ %> ? It's probably some variation of the character after the first <%
20:26 jamesw should be that
20:26 bobkare mmajchrzak_: the equal sign means "take whatever this returns and print it", so just leave that out like buu suggests
20:27 mmajchrzak_ <% %> show me an error. (btw Is mojo is able to run something bigger then blogs etc ? )
20:34 mmajchrzak_ ok % without < or > works .
20:35 CromeDome joined #mojo
20:59 mire_ joined #mojo
21:08 xaka1 joined #mojo
21:39 marcus mmajchrzak_: yes, you can build bigger things in mojolicious.
21:39 mmajchrzak_ marcus but how about safety ? Any avalible good plugins ?
21:41 marcus mmajchrzak_: there are a lot of plugins for mojolicious, go look at metacpan.org
21:41 * marcus & # sleep
21:41 * purl & # molesting people in their sleep
21:44 mmajchrzak_ Do you know any bigger aplications written in mojo ?
21:44 diegok mmajchrzak_: <% $var++ %> should also work
21:45 diegok mmajchrzak_: what's a big app for you?. I do have a big app build on top of several mojo apps...
21:45 sri diegok: semicolon
21:45 purl semicolon is the end of hmmm
21:46 diegok sri: oh! :-)
21:48 mmajchrzak_ diegok web shop, web based game, community portal etc . I tryed Dancer and i have feelings that its only for small things. I dont like way of Catalyst design od web apl so it looks that i have only mojo.
21:49 diegok mmajchrzak_: welcome then :)
21:50 mmajchrzak_ I know that this may be strange but it looks like mojo have better doc then Django . Its more clear and "step by step" .
21:50 diegok mmajchrzak_: I don't really know Dancer too much, but I think you can build "big" apps on top of anything :)
21:51 diegok mmajchrzak_: strange?, why?, perl has better docs than python
21:52 mmajchrzak_ python docs are not so bad. Only (I dont know why) Django docs is like from hell ...
21:53 diegok mmajchrzak_: :-(
21:54 diegok mmajchrzak_: mojo docs, tutorials and mojocasts are pretty good :)
21:55 lukep joined #mojo
21:55 GitHub23 joined #mojo
21:55 GitHub23 [mojo] kraih pushed 1 new commit to master: http://git.io/xQ4x2g
21:55 GitHub23 [mojo/master] more lightweight debug messages - Sebastian Riedel
21:55 GitHub23 left #mojo
21:55 mmajchrzak_ mojocasts won't work for me... They are loading and nothing more.
22:00 tempire mmajchrzak_: there are many links to the bottom right of the video if the html5 stream doesn't work for you.
22:01 tempire you can download the videos directly, or use vimeo, or use itunes
22:02 mmajchrzak_ tempire thank you . I am checking it right now!
22:23 jkramer joined #mojo
22:23 jkramer Ahoy
22:24 jkramer mojo seems to handle filenames in paths in a special way, is there a way to make it stop?
22:25 jkramer For example: /foo/:filename/bar matches /foo/123123/bar but not /foo/image.png/bar
22:28 buu Generic placeholders are the simplest form of placeholders and match all characters except / and ..
22:28 buu Wildcard placeholders are just like generic placeholders, but match absolutely everything.
22:29 buu Relaxed placeholders are similar to the two placeholders above, but always require parentheses and match all characters except /.
22:29 buu The More You Know!
22:29 purl Rainbows flying out of jhannah's ass!
22:32 jkramer Cool, thanks
22:32 zivester joined #mojo
22:34 jkramer left #mojo
22:34 jsut_ joined #mojo
22:34 jsut_ my nerdy friend made this with your thinger
22:34 jsut_ iome.me/tmimitw/i don't always program in perl/but when i do, i use mojolicious
22:34 jsut_ the site, not the image
23:39 Liam So- I want to make a page redirect. A GET to "/abcd" to redirect to "/efgh". What's the simplest way to do this in the routing table?
23:41 SmokeMachine joined #mojo
23:43 marty__ Liam:  http://search.cpan.org/~sri/Mojolicious-2.8​0/lib/Mojolicious/Controller.pm#redirect_to
23:44 Liam But that's for a Controller. I thought I had to use mojo:routes?
23:47 marty Routes match a request path and respond with some kind of response generator.
23:49 marty You can use a callback if you want.
23:50 marty http://mojolicio.us/perldoc/Mojolici​ous/Guides/Routing#Route_to_callback
23:51 Liam yeah, that's what i've been doing
23:51 Liam it just seems h4xish
23:57 marty Does it have to be a HTTP redirect?  if not, just have two routes.
23:58 Liam i thought about that- I want the URLs to match
23:58 Liam it's fine how it is but
23:58 Liam just seemed weird
23:58 marty There might be a way to alias a route, but I don't know what it is.

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