Camelia, the Perl 6 bug

IRC log for #mojo, 2013-09-11

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

All times shown according to UTC.

Time Nick Message
00:20 shmuel joined #mojo
00:45 yokoda joined #mojo
00:45 egopro joined #mojo
00:50 yokoda left #mojo
00:59 jberger sri++
01:00 jberger I spent too much time trying to figure out how to make a Mojo::Base::FOREIGNARGS work
01:00 jberger yours is MUCH better
01:01 laouji joined #mojo
01:07 d4rkie joined #mojo
01:22 dvinciguerra joined #mojo
01:23 sri \o/
01:26 basic6 joined #mojo
01:28 whatitdo joined #mojo
01:39 psimanx1 joined #mojo
01:43 egopro joined #mojo
01:47 d4rkie joined #mojo
01:59 d4rkie joined #mojo
03:14 KindTwo joined #mojo
03:14 preflex_ joined #mojo
03:14 jamesw joined #mojo
03:21 sri http://rails4.codeschool.com/videos # wow, those are amazing screencasts
03:23 sri wish there were companies teaching perl with quality screencasts
03:24 btyler joined #mojo
03:38 sri oh, i might have a new jquery feature for Mojo::DOM
03:39 sri $dom->match('div > p')
03:39 sri matches selector only against the current element
03:39 sri so you can filter a set of elements for example
03:43 sri say $dom->children->match('.foo')->compact->text
03:44 sri http://pastie.org/8315755 # this is how it could work
04:10 nbezzala joined #mojo
04:16 jwang joined #mojo
04:42 punter joined #mojo
04:59 sri positive side effect would be that ->children could accept real selectors
04:59 sri $dom->children('div.foo, p')->text
05:00 andrei joined #mojo
05:14 Adurah_ joined #mojo
05:17 d4rkie joined #mojo
05:22 duncanthrax joined #mojo
05:32 denis_boyun joined #mojo
05:42 Adura joined #mojo
05:45 dotandimet joined #mojo
06:10 denis_boyun joined #mojo
06:15 arpadszasz joined #mojo
06:27 dotan joined #mojo
06:36 Jonis joined #mojo
06:49 dod joined #mojo
06:51 crab i like it
06:55 dod joined #mojo
07:01 basiliscos joined #mojo
07:17 Vandal joined #mojo
07:18 trone joined #mojo
07:22 ladnaV joined #mojo
07:44 hrupp joined #mojo
07:54 dotandimet joined #mojo
08:09 mire joined #mojo
08:10 dpetrov_ joined #mojo
08:18 ghandi|work joined #mojo
08:42 Lee joined #mojo
08:56 alnewkirk joined #mojo
09:30 Vandal joined #mojo
09:31 ladnaV joined #mojo
09:33 ver joined #mojo
09:38 Vandal joined #mojo
09:57 ver joined #mojo
10:12 ryozi joined #mojo
10:32 maxhq joined #mojo
10:57 mire_ joined #mojo
11:05 ladnaV joined #mojo
11:08 dotandimet joined #mojo
11:22 dqw joined #mojo
11:25 asarch joined #mojo
11:32 fhelmber_ joined #mojo
12:42 mire_ joined #mojo
12:47 jberger joined #mojo
13:04 sri http://pastie.org/8316824 # here's a more complete match for $dom->match()
13:04 sri s/match/patch/
13:04 sri :)
13:15 Vandal joined #mojo
13:23 perlite joined #mojo
13:26 denis_boyun joined #mojo
13:33 sri actually, i could do the same with ->ancestors()
13:40 sri http://pastie.org/8316927 # patch with ->ancestors support as well
13:40 * sri pokes jberger, marcus, tempire and crab
13:40 mattp joined #mojo
13:42 btyler joined #mojo
13:42 mattp joined #mojo
13:46 jberger <3
13:58 mattp joined #mojo
14:13 gtodd jberger:  this was good http://preaction.github.io/Perl/Mojo-Angular.html
14:14 gtodd jberger: now i just need to fi nd out how to create a mongo database that matches :)
14:14 jberger We have Chicago pm tonight
14:14 gtodd youtube it!
14:14 gtodd :)
14:14 jberger I can ask preaction to add some background
14:15 gtodd or dump the mongodb somewhere :-)
14:15 sh4 joined #mojo
14:15 jberger Tonight is project (read hack) night so not much to stream
14:16 gtodd I guess I like redis since it seems simplest .. or maybe it's just the oldest/first
14:17 jberger I haven't used redis but I've found mongo pretty easy to use
14:17 gtodd then I got to like couchdb (webui++)
14:18 jberger mango++
14:20 gtodd I think couchdb redis were not GPL so had some traction with big users for a while or something ... ?
14:20 gtodd I only heard of mongo via mango :-)
14:25 gtodd couchdb has couchapps ... with different kinds of "tooling" for app construction  http://couchapp.org/page/index ... python ruby not sure about perl ....
14:28 basiliscos joined #mojo
14:39 d4rkie joined #mojo
14:40 McS joined #mojo
14:40 dqw joined #mojo
14:41 mattp joined #mojo
14:44 McS Hello, I am new to mojolicious - coming from rails... - and I don't understand the concept of using a database. My problem is: How do I use a dbh in my controllers. Do I have to "build" it in every controller? Do you have a hint for me?
14:45 McS Just to be clear: I know DBI...
14:47 McS and I tried my $dbh = DBI->connect("dbi:$dbdriver:dbname=$dbname", $username, $password,) in my main class, but how do I make this dbh accessable in my controllers?
14:47 Dandre hello,
14:47 jberger McS make a helper which will provide it for all controller as a method
14:47 Dandre How can I set header information in a request sent by Mojo User Agent?
14:47 jberger You also might want to use DBIx::Connector
14:48 jberger Dandre hashref
14:48 McS Thanks, jberger
14:50 Dandre Do you have an example?
14:52 gtodd jberger:  mongo seems more perl/mojo ready especially with mango .....   couchapps (standalone) seem to dominate the buzz about couchdb  --> http://guide.couchdb.org/  ...
14:53 gtodd jberger: anyway module mango seems easier to get started with than kioku :)
14:53 gtodd cheers
14:53 jberger Dandre, look in the docs, DNT is a header
14:54 d4rkie joined #mojo
14:55 Dandre ok so I can replace DNT with my header. thanks
15:03 ladnaV joined #mojo
15:03 sri gtodd: couchdb seems to have lost all momentum after the couchbase thing
15:04 sri mongodb is the most used nosql database atm, and i doubt that will change anytime soon
15:05 sri i'd call mongodb the new mysql, currently still in the myisam state
15:07 n0n joined #mojo
15:08 McS thanks again...
15:08 sri i'm also a big redis fan btw. but it's not a general purpose database since all data needs to fit into ram
15:08 McS left #mojo
15:10 sri worst part of mongodb is the storage engine, but that will change soon i'm sure... there are actually already alternatives available http://www.tokutek.com/pro​ducts/tokumx-for-mongodb/
15:11 sri it's myisam -> innodb all over again
15:12 marty I'm getting  Read failed: Can't locate object method "" via package "Mojo::Reactor::Poll"  when running hypnotoad.  I do not get this error when running morbo.
15:13 HtbaaPi joined #mojo
15:13 marty I'm assuming it is some issue with my config.   but thought I would post it just in case
15:16 sri jberger: btw. was that a +1 or a random <3? :)
15:18 jberger That was a +1, but maybe I should start <3 spamming
15:18 sri
15:22 good_news_everyone joined #mojo
15:22 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/3okKbQ
15:22 good_news_everyone mojo/master 04e4d24 Sebastian Riedel: added match method to Mojo::DOM
15:22 good_news_everyone left #mojo
15:30 dqw joined #mojo
15:36 mire_ joined #mojo
15:36 denisboyun joined #mojo
15:41 jmmills joined #mojo
15:52 sri http://mojolicio.us/perldoc/Mojo/DOM#match # return values seem right?
15:53 sri the idea is that by returning the Mojo::DOM object instead of true you can use it better for filtering
15:56 whatitdo joined #mojo
16:07 whatitdo joined #mojo
16:11 sri perl -Mojo -E 'say g("mojolicio.us")->dom->find("div img")->match("a img")'
16:11 sri stuff like that
16:25 sri although this one is more efficient
16:25 sri perl -Mojo -E 'say g("mojolicio.us")->dom->find("div img")->grep(sub { $_->match("a img") })'
16:26 sri since you need to ->compact too for fltering
16:26 sri perl -Mojo -E 'say g("mojolicio.us")->dom->find("div img")->match("a img")->compact'
16:40 sri doubt ->match will get used much since ->ancestors and ->children accept selectors too... so might be moot
16:42 Vandal joined #mojo
16:45 mtths joined #mojo
16:49 gryphon joined #mojo
16:54 denisboyun joined #mojo
16:59 good_news_everyone joined #mojo
16:59 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/0EqOQg
16:59 good_news_everyone mojo/master c8204a6 Sebastian Riedel: small optimizations
16:59 good_news_everyone left #mojo
17:00 dod joined #mojo
17:01 bluescreen joined #mojo
17:02 dvinciguerra joined #mojo
17:05 ladnaV joined #mojo
17:27 korshak_ joined #mojo
17:33 dotandimet joined #mojo
17:41 marty joined #mojo
17:52 tholen42 joined #mojo
18:05 jamesw joined #mojo
18:19 btyler joined #mojo
18:35 duncanthrax2 joined #mojo
18:44 duncanthrax joined #mojo
18:52 bluescreen joined #mojo
18:54 basiliscos joined #mojo
19:11 * sri is considering a light theme for documentation highlighting again
19:15 sri http://i.imgur.com/cLKTC0s.png # it's a variation of the tomorrow night theme
19:16 batman sri: where can i get that theme?
19:16 sri nowhere, i made it ;p
19:19 duncanthrax2 joined #mojo
19:39 yko sri, looks really good
19:41 batman sri: can you paste it somewhere?
19:41 sri still working on it, with a little luck you can get it from the mojo repo later :)
19:42 sri think i'll leave the twilight theme for the dev exception screen, and switch to tomorrow night for docs
19:43 sri i'm also fighting a little with prettify.js though... testing line numbers and stuff...
19:49 sri http://i.imgur.com/7KGLkzs.png # don't think line numbers will work
19:50 batman cool
19:51 sri wait, you like it?
19:51 batman not the numbers
19:51 sri ah
19:52 batman sorry, don't listen to me. it's the fever talking :P
19:52 * batman goes away
19:52 sri i need something to make it easier to differentiate between code and text
19:53 sri but damn... those examples look really sleek, pretty sure i'll switch
19:55 duncanthrax joined #mojo
20:19 sri http://i.imgur.com/vBIRMOp.png # getting closer
20:23 cfedde line numbers are nice to be able to turn on when you are code reviewing.  while not a great style by default. Having a little switch to turn them on would be nifty.
20:24 dotandimet joined #mojo
20:25 btyler line numbers also complicate copy/pasting from examples...which I suppose might be a bonus :)
20:26 jzawodn definitely not a bonus
20:26 bluescreen joined #mojo
20:26 btyler mostly kidding, just I imagine plenty of mailing list noise arises from copypasta'd documentation examples applied incorrectly
20:27 asarch joined #mojo
20:27 jzawodn indeed
20:34 btyler_ joined #mojo
20:35 sri http://i.imgur.com/Oxc8FiZ.png # and closer
20:37 sri would like to avoid a background image
20:43 good_news_everyone joined #mojo
20:43 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/dJTu4A
20:43 good_news_everyone mojo/master 305a5e4 Sebastian Riedel: improved syntax highlighting in documentation browser
20:43 good_news_everyone left #mojo
20:43 HtbaaPi joined #mojo
20:44 sri gonna try it live for a bit
20:45 sri http://mojolicio.us/perldoc​/Mojolicious/Lite#SYNOPSIS
20:47 rem_lex|pivo joined #mojo
20:59 good_news_everyone joined #mojo
20:59 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/BllazQ
20:59 good_news_everyone mojo/master f2d01cb Sebastian Riedel: try a different border
20:59 good_news_everyone left #mojo
21:01 sri http://mojolicio.us # also updated
21:08 denis_boyun joined #mojo
21:08 good_news_everyone joined #mojo
21:08 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/EmkneA
21:08 good_news_everyone mojo/master 4b43841 Sebastian Riedel: slightly different border style
21:08 good_news_everyone left #mojo
21:12 basiliscos joined #mojo
21:20 bowtie_ joined #mojo
21:24 good_news_everyone joined #mojo
21:24 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/GVa7Tw
21:24 good_news_everyone mojo/master cb05c0f Sebastian Riedel: removed legacy CSS
21:24 good_news_everyone left #mojo
21:34 good_news_everyone joined #mojo
21:34 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/e3otsA
21:34 good_news_everyone mojo/master ac5e567 Sebastian Riedel: fixed typo in werewolf example
21:34 good_news_everyone left #mojo
21:34 sri jberger, marcus, crab, tempire: NEED OPINIONZ!!!1 http://mojolicio.us
21:35 * jberger liked the darker theme
21:35 basiliscos joined #mojo
21:35 sri it wasn't easy to read though, too much contrast
21:36 jberger Matter of opinion
21:37 sri so you're -1 on the change?
21:37 jberger I liked the clear distinction on block of code that the box gave
21:39 jberger When one's eye is drawn to blocks of code one thinks "oh God there are examples"
21:39 jberger Haha
21:40 jberger s/God/good/
21:40 jberger Very different
21:40 jberger :-P
21:47 btyler joined #mojo
22:00 dotandimet joined #mojo
22:01 good_news_everyone joined #mojo
22:01 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/uhR8JQ
22:01 good_news_everyone mojo/master a61c3d7 Sebastian Riedel: increase readability
22:01 good_news_everyone left #mojo
22:03 sri jberger: try again
22:10 basiliscos joined #mojo
22:12 sri batman: the theme is now in the repo
22:13 shmuel joined #mojo
22:13 sri jberger: i think the clear line to the left still make it easy to differentiate between code and text
22:14 sri imo it's easier to browse the documentation now
22:14 sri no need to readjust for dark and light parts
22:23 asarch joined #mojo
23:36 btyler joined #mojo
23:49 dqw joined #mojo

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