The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-08-03

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

All times shown according to UTC.

Time Nick Message
00:20 dvinciguerra joined #mojo
00:22 woz joined #mojo
00:22 acidblue There is a check method in MyUsers.pm
00:50 jberger_ acidblue: can you please post your script to gist and share that
00:57 woz joined #mojo
01:08 davido__ joined #mojo
01:27 dj_goku I would like some input on any possible changes. It works, just this is my first REST api. http://paste.scsys.co.uk/412197
01:31 woz joined #mojo
01:38 klapperl joined #mojo
01:42 Adura joined #mojo
01:49 davido___ joined #mojo
01:53 KCL joined #mojo
01:58 davido_ joined #mojo
02:05 woz joined #mojo
02:10 preaction joined #mojo
02:12 noganex_ joined #mojo
02:19 jberger_ dj_goku: why use respond_to if you only have json
02:19 jberger_ ?
02:21 jberger_ Unless you are planning more content negotiation types
02:39 woz joined #mojo
02:49 davido__ joined #mojo
03:14 woz joined #mojo
03:28 basic6_ joined #mojo
03:40 davido_ joined #mojo
03:41 dj_goku jberger_: nope only json at the moment.
03:43 davido___ joined #mojo
03:44 dj_goku jberger_: so then just encode to json then in the route.
03:50 woz joined #mojo
04:06 preaction_ joined #mojo
04:26 woz joined #mojo
05:02 woz joined #mojo
05:37 woz joined #mojo
05:39 irq joined #mojo
05:52 zivester joined #mojo
06:04 neyasov__ joined #mojo
06:12 woz joined #mojo
06:12 sh4 joined #mojo
06:18 marcus world is going crazy. Now Moose is at the top of hackernews
06:18 marcus #wat
06:19 marcus I feel the title is rather misleading tho
06:28 crab Mooseolicious
06:48 woz joined #mojo
06:55 batman marcus: https://github.com/Nordaaker/convos/pulls # got time to review?
07:06 Vandal joined #mojo
07:10 basiliscos joined #mojo
07:22 woz joined #mojo
07:37 mire__ joined #mojo
07:41 dod joined #mojo
07:54 _eugen joined #mojo
07:58 woz joined #mojo
08:03 marcus batman: done.
08:33 woz joined #mojo
08:35 batman marcus++ # <3
09:08 woz joined #mojo
09:44 woz joined #mojo
09:44 mr-foobar joined #mojo
10:15 neyasov joined #mojo
10:20 woz joined #mojo
10:37 janliesendahl_ joined #mojo
10:41 janliesendahl_ joined #mojo
10:42 janliesendahl joined #mojo
10:42 janliesendahl joined #mojo
10:42 janliesendahl joined #mojo
10:42 janliesendahl joined #mojo
10:44 janliesendahl joined #mojo
10:44 jalie joined #mojo
10:55 woz joined #mojo
10:59 ladnaV joined #mojo
11:03 asarch joined #mojo
11:04 d4rkie joined #mojo
11:06 jalie joined #mojo
11:06 jalie joined #mojo
11:30 woz joined #mojo
11:34 D4RK-PH0ENiX joined #mojo
11:36 d4rkie_ joined #mojo
11:43 mire__ joined #mojo
12:05 woz joined #mojo
12:16 sattellite joined #mojo
12:18 sattellite In app i use m::plugin::jsonconfig. how i can test app without using m::plugin::jsonconfig in test::mojo?
12:21 sattellite ./app.json file not needed in distributive. i want write test like: $t=Test::Mojo->new('App'); $t->app->config = {...}
12:40 woz joined #mojo
12:59 mire__ joined #mojo
13:16 woz joined #mojo
13:24 berov joined #mojo
13:53 KCL_ joined #mojo
13:54 woz joined #mojo
14:14 irq_ joined #mojo
14:23 zivester joined #mojo
14:27 woz joined #mojo
14:59 sweet_kid joined #mojo
15:02 woz joined #mojo
15:37 woz joined #mojo
15:50 dod joined #mojo
16:10 denis_boyun joined #mojo
16:12 woz joined #mojo
16:29 lipizzan joined #mojo
16:48 woz joined #mojo
17:15 dj_goku jberger_: I like it better how you suggested. It is a lot cleanier. :D
17:23 woz joined #mojo
17:54 mire__ joined #mojo
17:59 woz joined #mojo
18:16 sujithm joined #mojo
18:33 woz joined #mojo
18:56 neyasov joined #mojo
19:09 sujithm joined #mojo
19:09 woz joined #mojo
19:12 asarch If I set: $r->get('/student/add')->to('student#add);, that means that it will use the sub called "add" in the module "Student.pm", how could I use a module in the form School::Stutent::Add.pm in $r->get('/students/add')->to('school#student#add'); ?
19:13 acidblue joined #mojo
19:13 acidblue how do I  uninstall MOJO?     I install the devel version by mistake and need to remove it
19:14 marcus acidblue: just install the stable version over it.
19:15 acidblue i did but 'mojo version' still returns the devel version
19:16 Zx3 joined #mojo
19:22 tempire acidblue: there's also http://search.cpan.org/dist/App-pmuninstall/lib/App/pmuninstall.pm
19:24 neyasov joined #mojo
19:27 asarch Where is explained in detail the "to" part of the $r->get(...)->to(...); statement
19:33 asarch brb!
19:38 acidblue After installing pm-uninstall , my bash shell kepps telling "Command not found"
19:38 sri tempire: cpanm also has a -U option now ;)
19:38 acidblue -U for uninstall ??
19:38 tempire ooo
19:38 tempire fancy
19:41 acidblue AAAARRRGG!  Although it seems to work "-U"  mojo versions still returns the devel version
19:41 acidblue How do I get rid of the devel version??
19:43 acidblue I installed it with "cpanm git://github.com/kraih/mojo.git
19:44 acidblue not realizing it would pull the devel
19:45 woz joined #mojo
19:57 basiliscos joined #mojo
20:01 preaction joined #mojo
20:12 oetiker joined #mojo
20:18 marcus cpanm --force Mojolicious ?
20:20 woz joined #mojo
20:46 berov joined #mojo
20:54 woz joined #mojo
21:18 bobkare joined #mojo
21:30 woz joined #mojo
21:36 sri i guess github and riak really are the only users of Link headers :o
21:38 sri interesting that express.js has a method to generate Link headers http://expressjs.com/4x/api.html#res.links
21:47 romel hey guys. is it possible to access app->stash inside register sub of my plugin ?
21:50 meshl joined #mojo
22:05 woz joined #mojo
22:14 davido_ joined #mojo
22:39 woz joined #mojo
22:40 bobkare joined #mojo
22:40 preaction joined #mojo
22:40 mire__ joined #mojo
22:40 upasana joined #mojo
22:40 zivester joined #mojo
22:40 d4rkie_ joined #mojo
22:40 D4RK-PH0ENiX joined #mojo
22:40 janliesendahl joined #mojo
22:40 davido___ joined #mojo
22:40 basic6_ joined #mojo
22:40 noganex_ joined #mojo
22:40 klapperl joined #mojo
22:40 jnbek joined #mojo
22:40 dj_goku joined #mojo
22:40 komodo joined #mojo
22:40 marty joined #mojo
22:40 dexteruk joined #mojo
22:40 btyler joined #mojo
22:40 rblackwe joined #mojo
22:40 yourname joined #mojo
22:40 Claudio joined #mojo
22:40 Mikey_ joined #mojo
22:40 howitdo joined #mojo
22:40 KindOne joined #mojo
22:40 ua1 joined #mojo
22:40 geira joined #mojo
22:40 zackiv31 joined #mojo
22:40 batman joined #mojo
22:40 jberger_ joined #mojo
22:40 ashleydev joined #mojo
22:40 alnewkirk joined #mojo
22:40 Kundun joined #mojo
22:40 stokachu joined #mojo
22:40 throughnothing joined #mojo
22:40 abhishekisnot joined #mojo
22:40 ceej joined #mojo
22:40 suy joined #mojo
22:40 mikegrb joined #mojo
22:40 dotan joined #mojo
22:40 bowtie joined #mojo
22:40 mishantil joined #mojo
22:40 Foxcool joined #mojo
22:40 rwp joined #mojo
22:40 inokenty joined #mojo
22:40 stephan48 joined #mojo
22:40 mst joined #mojo
22:40 lb joined #mojo
22:40 HtbaaPi joined #mojo
22:40 Lee joined #mojo
22:40 espen joined #mojo
22:40 jberger joined #mojo
22:40 odc joined #mojo
22:40 sjn joined #mojo
22:40 cfedde joined #mojo
22:40 nic joined #mojo
22:40 BinGOs joined #mojo
22:40 Gedge joined #mojo
22:40 lsm joined #mojo
22:40 DaTa joined #mojo
22:40 xevz joined #mojo
22:40 tianon joined #mojo
22:40 mtths joined #mojo
22:40 yusukebe joined #mojo
22:40 jnthn joined #mojo
22:40 da5id joined #mojo
22:40 janus joined #mojo
22:40 salparadise joined #mojo
22:40 tomboh joined #mojo
22:40 omega joined #mojo
22:40 Andreas joined #mojo
22:40 bd joined #mojo
22:40 cstamas joined #mojo
22:40 bc547_ joined #mojo
22:40 charsbar joined #mojo
22:40 Ralesk joined #mojo
22:40 jzawodn joined #mojo
22:40 bjoernfan joined #mojo
22:40 mudler joined #mojo
22:40 lestrrat joined #mojo
22:40 sawtooth joined #mojo
22:40 allison joined #mojo
22:40 priodev joined #mojo
22:40 d^_^b joined #mojo
22:40 Rallias joined #mojo
22:40 dahl joined #mojo
22:40 firnsy joined #mojo
22:40 graf joined #mojo
22:40 mfontani joined #mojo
22:40 zanity joined #mojo
22:40 rj11 joined #mojo
22:40 nicomen joined #mojo
22:40 torbjorn joined #mojo
22:40 caeles joined #mojo
22:40 jmmills joined #mojo
22:40 avenj joined #mojo
22:40 mtj- joined #mojo
22:40 tardisx joined #mojo
22:40 Kovensky joined #mojo
22:40 n00dle joined #mojo
22:40 ssm joined #mojo
22:40 diegok joined #mojo
22:40 hahainternet joined #mojo
22:40 genio joined #mojo
22:40 xtetsuji joined #mojo
22:40 andrefs joined #mojo
22:40 crab joined #mojo
22:40 kmx joined #mojo
22:40 kablamo joined #mojo
22:40 zz_zz_[0xAF] joined #mojo
22:40 Dandre joined #mojo
22:40 jeff joined #mojo
22:40 memowe joined #mojo
22:40 rofl_ joined #mojo
22:40 sri joined #mojo
22:40 cotto joined #mojo
22:40 tempire joined #mojo
22:40 Bender joined #mojo
22:40 callumgare joined #mojo
22:40 dabudabu joined #mojo
22:40 sivoais joined #mojo
22:40 moritz joined #mojo
22:40 mattp_ joined #mojo
22:40 DaniBunny joined #mojo
22:40 robinsmidsrod joined #mojo
22:40 gabiruh joined #mojo
22:40 bzero joined #mojo
22:40 Phil21 joined #mojo
22:40 al joined #mojo
22:40 garu joined #mojo
22:56 sri jberger: haha, i think i like Mojo::Collection::reduce again :D
22:59 sri with signatures all the problems we had become moot
22:59 sri https://gist.github.com/anonymous/877edc7e547466ce2ad2
22:59 sri and like reducing stuff into hashes
22:59 sri *i like
23:00 sri most conservative implementation https://gist.github.com/anonymous/5abb5d13dcab31646ea5
23:04 d4rkie joined #mojo
23:04 sri my old idea to reduce into a Mojo::ByteStream was really stupid
23:04 sri someone should have said something -.-
23:25 phillipadsmith I'm missing something about how $self->req->json works here, https://gist.github.com/phillipadsmith/cae2026965c2dcc513fe  Anyone able to point out what I'm not seeing?
23:27 d4rkie joined #mojo
23:27 phillipadsmith I can use $self->req->body instead and then pass that to Mojo::JSON, but I've seen references to using $self->req->json
23:32 phillipadsmith Updated gist: https://gist.github.com/phillipadsmith/cae2026965c2dcc513fe
23:40 phillipadsmith Ah, this could explain it: 'error' => 'Malformed JSON: Expected string while parsing object at line 2, offset 2'
23:42 phillipadsmith Gotta' love JSON...
23:45 bobkare joined #mojo
23:47 woz joined #mojo
23:56 dima joined #mojo
23:57 dima Hi. I've a question about escaping in Mojolicious templates, please. I have a plain ascii string with some <> characters and some newlines. I stash this, and render it in a template with <%= ... %>. Mojolicious escapes the <>, so they show up correctly in the browser, but the newlines get squashed. What's the preferred method of preserving those? Thanks!

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