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

IRC log for #mojo, 2015-06-08

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

All times shown according to UTC.

Time Nick Message
00:03 vmbrasseur joined #mojo
00:25 mattastrophe joined #mojo
00:45 woz joined #mojo
01:29 klapperl joined #mojo
01:42 mattastrophe joined #mojo
01:50 cpan_mojo Mojolicious-Plugin-ConsoleLogger-0.06 by TEMPIRE https://metacpan.org/release/TEMPIRE/Mojolicious-Plugin-ConsoleLogger-0.06
02:32 noganex_ joined #mojo
02:37 damaya_ joined #mojo
03:02 jberger tempire++
04:53 coolo joined #mojo
05:26 arpadszasz joined #mojo
05:41 damaya__ joined #mojo
05:42 damaya__ joined #mojo
05:42 damaya__ Are there any efficiency / overhead differences between ajax requests to an API in the page to get content vs. the controller handling it then passing it to a template?
05:42 damaya__ If that makes sense.
05:43 damaya__ I am thinking about making the mojolicious side of things be nothing more than an API, render nothing but JSON, and putting all the getting/posting into AJAX calls.
05:44 damaya__ Downside would be that the site would be completely broken for anyone with javascript disabled.
05:47 batman damaya__: i would do that for webapps, but probably not for a normal web page
05:48 batman you could do what twitter does: render the full html page server side on the first load, and then the rest of the content over an api
05:48 batman meaning every page can be rendered fully, but to improve load time each consecutive page is partial
05:53 damaya__ batman: OK, that's actually a really great idea. I think that's what I will do. Thanks!
05:53 damaya__ batman: And I notice Twitter does not work with JS disabled.
05:53 damaya__ If they don't care, I don't think I will either :)
05:54 marcusr sri: Perfect
05:54 Snelius oh, perl is forked :)
05:54 marcusr Snelius: ?
05:55 dod joined #mojo
05:55 Snelius stableperl, did you see that ?
05:55 Snelius http://schplog.schmorp.de/2015-06-06-a-stable-perl.html
05:55 marcusr omg
05:55 marcusr never using that
05:56 Snelius it's new
05:56 Snelius Few days ago by Marc Lehmann :)
05:56 marcusr I could tell by the domain
05:57 marcusr That's why I was saying I will never use that.
05:57 Snelius ok
05:57 marcusr Also, we need a libuv adapter. :-/
06:00 dod joined #mojo
06:02 damaya__ what an idiot
06:02 purl you talking about me or http://slashdot.org/article.pl?sid=03/02/06/14467229 or http://www.foxnews.com/story/0,2933,292111,00.html
06:08 arpadszasz joined #mojo
06:11 rwp joined #mojo
06:25 sri glad i decided against using Coro in mojolicious... considering it might never work on perl 5.22 :o
06:25 marcusr sri: What I was thinking too.
06:26 marcusr sri: Thanks to that face hunter video, I ended up watching forsen videos for 20 minutes on youtube :-/
06:27 sri eeeep
06:36 batman sri++
06:37 batman damaya__: Guess they changed it :/
06:38 batman Not sure if Twitter used JSON or something like pjax though
06:38 batman Maybe marcus remember what they did...
06:41 batman damaya__: https://gds.blog.gov.uk/2013/10/21/how-many-people-are-missing-out-on-javascript-enhancement/
06:41 batman Might be interesting :)
06:48 arpadszasz joined #mojo
06:55 eseyman joined #mojo
06:56 dod joined #mojo
06:56 Vandal joined #mojo
07:06 AndrewIsh joined #mojo
07:06 hshong joined #mojo
07:14 sri oh noes, Mojo::Pg needs 4 more +1's to enter the top 100
07:20 marcusr you have my click :p
07:21 jberger marcusr: Grinnz just write a uv reactor
07:21 jberger Because I mentioned this :)
07:21 batman crap. i've already clicked :)
07:22 sri \o/
07:22 jberger Click
07:22 jberger Btw, I've had a few drinks
07:23 jberger So
07:25 jberger I do have one module that depends on Coro
07:25 jberger Non mojo, and probably non used
07:25 coolo joined #mojo
07:26 trone joined #mojo
07:28 sri we really need something Coro-ish in core perl though
07:30 sri async/await possibly, seems to be what all the languages are standardizing on now
07:34 marcusr Grinnz++
07:35 marcusr sri: I thought I heard someone is working on that in p5p?
07:35 sri leonerd i think
07:35 marcusr mm
07:36 sri chances seem pretty low though
07:36 sri (in case someone doesn't know what async/await is https://www.python.org/dev/peps/pep-0492/)
07:37 sri python people write pretty good specs
07:37 odc joined #mojo
07:37 mst sri: leonerd's working on actual async/await
07:38 marcusr mst: Isn't that what we just said? :)
07:39 mst marcusr: no, he's doing it on cpan for the moment
07:40 marcusr mst: ohic
07:49 sri btw. i'm still amazed that Net::DNS::Native is not causing any problems anymore
08:02 McA joined #mojo
08:03 DaTa joined #mojo
08:05 damaya__ I think I am missing something here... I have something like this try { $db->query('insert into table(col) values(?)',$_); } catch { $db->query('update table set count = count + 1 where col = ?',$_); }
08:06 damaya__ basically, if insert fails, increment count... but increment is not happening for some reason.
08:06 damaya__ I know the catch block is happening, because I put a print in there for debug and it prints 'test' to terminal.
08:09 damaya__ is it not possible
08:09 damaya__ DSAFA
08:09 damaya__ haha
08:09 damaya__ hurr, durr :D
08:11 damaya__ forgot can't use $_ with try/catch like that
08:14 damaya__ sorry about the DSAFA, caps lock was on and I was having issues with tmux as a result :D
08:14 woz joined #mojo
08:37 nic joined #mojo
08:38 nic My current project has fairly rapid development cycles, so found that 'cheating' the promotion process works nicely
08:38 nic On the UAT instance, run morbo and unit tests in addition to hypnotoad
08:40 nic The testers fire through enhancement requests, we hack in a prototype, checking with morbo + unit tests
08:40 nic As soon as we're happy, ask hypnotoad to do a graceful reload, then ask the tester if they're happy
08:41 nic (It's an advantage of having morbo + hypnotoad that I hadn't thought about; nice that they don't upset each other)
08:45 bin_005 joined #mojo
08:48 marcusr hmm, guess I might have to write something for openid connect.
08:49 bin_005 joined #mojo
09:10 bin_005 joined #mojo
09:13 damaya__ How would I test with Mojo::UserAgent if a URL is an image, or a page?
09:14 nicomen how would you test it with any other user-agent?
09:15 damaya__ heh, not sure
09:16 nicomen you could check the Content-Type header
09:17 damaya__ II was thinking about checking content-type for image, but not sure if that is a good way of doing it
09:17 nicomen Mojo::UserAgent->new->get('URL')->res->headers->content_type;
09:17 damaya__ I mean, if I allow users to enter a URL, and basically I want to disregard it if it's an image, is there any way they can get around the content-type check?
09:17 nicomen Mojo::UserAgent->new->get('URL')->res->headers->content_type =~ m{ \A image }gmx && print "is_image";
09:19 damaya__ ok, I guess that's a good way to do it then :D
09:23 bin_005 joined #mojo
09:41 punter joined #mojo
09:41 sri wow, the integration of pocket in firefox is really shitty
09:44 sri mozilla has to be in a really bad spot if they are forced to integrate bloatware
09:44 * sri uninstalls firefox
09:51 bin_005 joined #mojo
10:09 panshin joined #mojo
10:10 diegok ^ https://bugzilla.mozilla.org/show_bug.cgi?id=1172126
10:11 illywhacker hello - beginner's question here. I'm working through https://metacpan.org/pod/Mojolicious::Guides::Tutorial#Built-in-exception-and-not_found-pages and I don't see where in the documentation it explains how CSS selectors can be used at the commandline. any pointers?
10:13 nicomen mojo get --help ?
10:13 illywhacker ah:) thanks!
10:15 nicomen yw ;)
10:56 neilhwatson joined #mojo
11:36 dod joined #mojo
11:39 crux joined #mojo
12:03 dod joined #mojo
12:05 Adura joined #mojo
12:08 arpadszasz joined #mojo
12:51 jnbek joined #mojo
12:51 guru joined #mojo
12:53 gryphon joined #mojo
13:01 bc547 joined #mojo
13:10 dod joined #mojo
13:14 mattastrophe joined #mojo
13:19 Grinnz marcusr, yeah i saw you had commented on the UV module before, that module needs some work :/
13:20 Grinnz libuv has been continuously updated the last couple years and UV hasn't
13:21 punter joined #mojo
13:25 zivester joined #mojo
13:35 * sri thinks UV has been pretty much abandoned
13:35 sri there's a need for an entirely new module
13:36 sri actually, i'd like to see two modules i guess :)
13:37 sri a low level binding for libuv, that uses the same api, and a wrapper around it that replicates the EV api
13:37 sri yea, that would be awesome
13:38 sri if those existed and had a reliable maintainer, i'd switch in a heartbeat
13:41 Grinnz i'd settle for just UV having a reliable maintainer :P
14:05 dvinciguerra joined #mojo
14:29 cpan_mojo Mojo-Snoo-0.11 by CURTIS https://metacpan.org/release/CURTIS/Mojo-Snoo-0.11
14:33 vmbrasseur joined #mojo
14:41 mattastrophe joined #mojo
14:44 PryMar56 joined #mojo
14:50 vmbrasseur joined #mojo
14:53 zackiv31 joined #mojo
14:53 Grinnz_ UV appears to install on OS X, at least http://www.cpantesters.org/distro/M/Mojo-Reactor-UV.html#Mojo-Reactor-UV-0.001
14:53 Grinnz_ dist's broken on win32 afaik
14:54 Grinnz_ probably on other bsds too
14:56 polettix joined #mojo
14:59 sri hahaha https://twitter.com/nfreader/status/607902086353723392
15:05 jberger I think FFI::Platypus bindings to libuv might be worth while
15:06 jberger though honestly, you probably could just bind to it directly in Mojo::Reactor::UV using ::Platypus
15:06 jberger btw
15:06 jberger tempire: are you here?
15:06 purl Yes, I am, jberger.
15:06 jberger purl: shut it
15:06 purl Make me!
15:06 Grinnz_ goddammit purl
15:06 jberger (by here, I mean physically)
15:06 Grinnz_ so you're asking if he is encoded into bits in the irc serveRF?
15:06 Grinnz_ server*
15:07 dod joined #mojo
15:07 jberger I mean, in the room here at YAPC::NA
15:08 nicomen https://www.youtube.com/watch?v=88K1h1XhEeo <-- about to start I guess?
15:09 jberger nicomen: can confirm
15:09 nicomen Welcome to YAPC & States of the Velociraptors : The Perl5 community lightning talks
15:09 jberger I'm ready to present
15:09 nicomen \o/
15:09 sri "stream not available in your country" :(
15:09 nicomen whattha?
15:09 jberger :o
15:10 nicomen sri: you in China?
15:10 jberger somebody get sri a VPN!
15:10 sri germany
15:10 aggrolite joined #mojo
15:10 pink_mist works in sweden
15:10 jberger sri: funnel it through greece, they owe you, right?
15:10 sri ;p
15:12 jberger ribasushi tells me that it has to do with some copyright crap in germany
15:12 jberger GEMA
15:12 jberger whatever that mean
15:12 jberger s
15:13 pink_mist I thought that was for music 0_o
15:13 jberger yes, aparently the yapcna account ran afoul of it due to the inter-talk transition music
15:14 jberger says ribasushi
15:15 nicomen do they have a simple stream perhaps?
15:18 vmbrasseur joined #mojo
15:21 jnbek ok, who here is here in Salt Lake?!?!!
15:21 vmbrasseur joined #mojo
15:22 nicomen jberger
15:22 sh4 joined #mojo
15:23 jberger tempire is supposed to be
15:23 jberger but I haven't seen him yet
15:24 jnbek I'm in the back corner near the mixing board. Where Jayce is looking, our table is to his left
15:24 jnbek I'm the death metal lookin' dude
15:25 jberger jnbek: I don't see you quiet yet
15:25 jberger pull me aside later
15:25 jnbek kk
15:25 jberger quite*
15:26 diegok o/ SLC :-)
15:31 jnbek jberger: http://is.gd/CI5iuB <<--- me ( more or less the same... beard's not as busy atm )
15:32 jberger k
15:32 jberger will find
15:33 vmbrasseur left #mojo
15:34 dotan jberger's handsome profile!
15:34 jberger :o
15:34 * jberger should move
15:34 dotan is that sawyerX behind you?
15:34 jberger yes
15:34 jberger he's probably right in line with me
15:35 dotan say hi to him from me. That'll freak me out.
15:35 * tempire is the pretty one
15:35 jberger tempire: you here?!
15:35 purl SPEAK UP, SONNY!
15:35 jberger dammit purl!
15:36 jnbek LOL
15:36 dotan I thought tempire was at WWDC?
15:37 jberger #fuckcancer
15:41 nicomen hah no catalyst
15:49 dotan jberger!
15:49 purl jberger is http://i.imgur.com/UPfFmXF.jpg or Foreman
15:49 nicomen jberger!
15:49 purl jberger is http://i.imgur.com/UPfFmXF.jpg or Foreman
15:50 nicomen jayburger?
15:50 pink_mist someone needs to photoshop that pic to be a burger in those clothes instead
15:55 Grinnz_ lol
15:58 * jberger wipes brow
15:58 dotan o/
15:59 * tempire can confirm that jberger is not yellow
15:59 nicomen jberger: nice
16:00 dotan This is the first documented sighting of a Mojolicous T in a live video feed in a Perl conference?
16:01 sri and i can't see it :S
16:03 tempire dotan: It's the second
16:04 jberger cloud with crossbones
16:04 tempire Ah yes.
16:07 ToApolytoXaos joined #mojo
16:39 disputin joined #mojo
16:41 fhelmber_ joined #mojo
16:42 fhelmber_ joined #mojo
16:43 fhelmbe__ joined #mojo
16:44 fhelmber_ joined #mojo
16:45 fhelmbe__ joined #mojo
16:46 fhelmber_ joined #mojo
16:47 fhelmber_ joined #mojo
16:48 fhelmbe__ joined #mojo
16:49 fhelmber_ joined #mojo
16:50 fhelmber_ joined #mojo
16:51 fhelmber_ joined #mojo
16:52 dotan I wonder if all yapcna streams are blocked in Germany, or if this happens on a per-stream basis.
16:52 fhelmber_ joined #mojo
16:53 marty I must be missing something.  It seems like passing Postgres constraint errors back to the app would be a common thing to do.  But I cannot figure out how to get at them via MOJO::Pg.  Does anyone know if it is even possible?
16:53 fhelmber_ joined #mojo
16:53 Grinnz_ constraint errors should usually go to your error log
16:54 dod joined #mojo
16:54 fhelmber_ joined #mojo
16:55 marty yes, but postres specifically allows for a message and hint to be output on raised constraint errors.
16:55 fhelmber_ joined #mojo
16:56 dotan marty: If you use the non-blocking form of Mojo::Pg::Database::query, there's an error returned as the 3rd param to your callback. Isn't the postgres error message there?
16:57 fhelmber_ joined #mojo
16:57 punter joined #mojo
16:58 fhelmber_ joined #mojo
16:58 marty I'm not using the non-blocking syntax atm.  I'll give that try.   My non-blocking foo is fubar.   :)
16:59 fhelmber_ joined #mojo
16:59 Grinnz_ fhelmber_: how you doin buddy?
17:00 fhelmbe__ joined #mojo
17:00 marty Some of my data is determined at save time via stored procedures so the specific constraint violation is not known until the procedure runs.   So being able to pass the raised constraint error back to the app  would be way kewl.
17:00 * marty gets to it
17:01 fhelmber_ joined #mojo
17:01 marty oops, where is my mind.  coffee first...
17:02 tempire jberger: where you at?
17:02 purl you is what you am
17:02 jberger oh, I'm up front still
17:02 fhelmber_ joined #mojo
17:02 jberger though I don't need to be
17:02 jberger tempire: do you have some seat back by you?
17:03 fhelmbe__ joined #mojo
17:04 fhelmber_ joined #mojo
17:05 dotan Well, I thought the non-blocking version would just throw an exception. It's basically just calls dbh execute.
17:05 fhelmber_ joined #mojo
17:06 dotan If the error isn't in the exception, there's errstr...?
17:06 dotan Lightning Talks!
17:06 purl lightning talks are 5 minutes of fun: http://perl.plover.com/lt/osc2003/
17:06 fhelmber_ joined #mojo
17:06 dotan https://www.youtube.com/watch?v=mQVUvAz3zhQ
17:07 fhelmbe__ joined #mojo
17:08 dotan Does the YAPC NA icon look more like mst or more like Jesus?
17:08 fhelmber_ joined #mojo
17:08 dotan You know, with velociraptor claws for facial hair
17:09 fhelmber_ joined #mojo
17:10 fhelmbe__ joined #mojo
17:11 fhelmber_ joined #mojo
17:12 salparadise joined #mojo
17:12 fhelmber_ joined #mojo
17:13 fhelmber_ joined #mojo
17:14 guru joined #mojo
17:14 xtetsuji___ joined #mojo
17:14 fhelmber_ joined #mojo
17:15 fhelmbe__ joined #mojo
17:16 fhelmber_ joined #mojo
17:18 fhelmbe__ joined #mojo
17:19 fhelmber_ joined #mojo
17:19 mattastrophe joined #mojo
17:20 fhelmber_ joined #mojo
17:21 fhelmbe__ joined #mojo
17:21 illywhacker newbie q2: what's the mojo equivalent to the before hook in dancer?
17:22 Grinnz_ depends, before what?
17:22 fhelmber_ joined #mojo
17:22 Grinnz_ https://metacpan.org/pod/Mojolicious#HOOKS
17:22 Grinnz_ could be before_dispatch, before_routes, or before_render
17:23 illywhacker Grinnz_: thank you very much - before dispatch should do the trick for me!
17:23 fhelmber_ joined #mojo
17:24 fhelmber_ joined #mojo
17:25 fhelmbe__ joined #mojo
17:26 fhelmber_ joined #mojo
17:27 fhelmbe__ joined #mojo
17:28 fhelmber_ joined #mojo
17:29 fhelmber_ joined #mojo
17:30 damaya_ joined #mojo
17:30 fhelmber_ joined #mojo
17:31 fhelmber_ joined #mojo
17:32 fhelmber_ joined #mojo
17:33 fhelmbe__ joined #mojo
17:34 fhelmber_ joined #mojo
17:35 xtetsuji___ joined #mojo
17:35 damaya__ joined #mojo
17:35 fhelmber_ joined #mojo
17:37 fhelmbe__ joined #mojo
17:38 fhelmber_ joined #mojo
17:39 fhelmber_ joined #mojo
17:40 amon joined #mojo
17:40 fhelmber_ joined #mojo
17:41 fhelmbe__ joined #mojo
17:42 fhelmber_ joined #mojo
17:43 fhelmbe__ joined #mojo
17:44 fhelmber_ joined #mojo
17:45 fhelmbe__ joined #mojo
17:46 fhelmber_ joined #mojo
17:46 aggrolite joined #mojo
17:47 fhelmbe__ joined #mojo
17:48 fhelmber_ joined #mojo
17:48 marty DOH!   Brain fart.  I was not wrapping my Mojo::Pg transaction in an eval block.   So it was just bailing after the error.   I put the transaction into an eval and all is well.
17:49 fhelmber_ joined #mojo
17:50 fhelmbe__ joined #mojo
17:51 fhelmber_ joined #mojo
17:52 fhelmbe__ joined #mojo
17:53 fhelmber_ joined #mojo
17:54 fhelmber_ joined #mojo
17:55 fhelmber_ joined #mojo
17:56 fhelmbe__ joined #mojo
17:58 fhelmber_ joined #mojo
17:59 fhelmbe__ joined #mojo
18:00 fhelmber_ joined #mojo
18:01 fhelmber_ joined #mojo
18:02 fhelmbe__ joined #mojo
18:03 fhelmber_ joined #mojo
18:04 fhelmbe__ joined #mojo
18:05 fhelmber_ joined #mojo
18:06 fhelmbe__ joined #mojo
18:07 fhelmber_ joined #mojo
18:08 fhelmbe__ joined #mojo
18:09 fhelmber_ joined #mojo
18:10 fhelmber_ joined #mojo
18:11 fhelmbe__ joined #mojo
18:12 sri hmm, i'd ban fhelmbe__, but i have no op :o
18:12 Grinnz hh
18:12 fhelmber_ joined #mojo
18:13 fhelmbe__ joined #mojo
18:14 fhelmber_ joined #mojo
18:15 fhelmber_ joined #mojo
18:16 fhelmbe__ joined #mojo
18:17 fhelmber_ joined #mojo
18:19 fhelmber_ joined #mojo
18:20 fhelmbe__ joined #mojo
18:20 berov joined #mojo
18:20 bin_005 joined #mojo
18:21 fhelmber_ joined #mojo
18:22 fhelmber_ joined #mojo
18:23 fhelmbe__ joined #mojo
18:24 fhelmber_ joined #mojo
18:25 fhelmbe__ joined #mojo
18:26 fhelmber_ joined #mojo
18:27 fhelmbe__ joined #mojo
18:28 fhelmber_ joined #mojo
18:29 fhelmbe__ joined #mojo
18:30 fhelmber_ joined #mojo
18:31 fhelmber_ joined #mojo
18:31 berov joined #mojo
18:31 guru joined #mojo
18:31 dod joined #mojo
18:31 dvinciguerra joined #mojo
18:31 zivester joined #mojo
18:31 jnbek joined #mojo
18:31 neilhwatson joined #mojo
18:31 DaTa joined #mojo
18:31 McA joined #mojo
18:31 LordVorp joined #mojo
18:31 diegok joined #mojo
18:31 hernan604 joined #mojo
18:31 sri joined #mojo
18:31 Grinnz_ joined #mojo
18:31 Foxcool joined #mojo
18:31 Dandre joined #mojo
18:31 chansen joined #mojo
18:31 go|dfish joined #mojo
18:31 mst joined #mojo
18:32 fhelmber_ joined #mojo
18:33 fhelmbe__ joined #mojo
18:34 fhelmber_ joined #mojo
18:35 sri nice shirt! https://twitter.com/solargroovy/status/607939032778076160
18:35 fhelmbe__ joined #mojo
18:36 sh4 joined #mojo
18:36 fhelmber_ joined #mojo
18:37 mattastrophe joined #mojo
18:37 fhelmber_ joined #mojo
18:38 fhelmbe__ joined #mojo
18:40 fhelmber_ joined #mojo
18:41 fhelmbe__ joined #mojo
18:42 fhelmber_ joined #mojo
18:43 fhelmber_ joined #mojo
18:44 fhelmbe__ joined #mojo
18:45 fhelmber_ joined #mojo
18:46 fhelmber_ joined #mojo
18:46 batman sri: i would ban fhelmber_, but i have convos :P
18:46 batman at least i managed to give you op, hehe
18:47 lb hrmpf
18:48 fhelmber_ joined #mojo
18:49 sri fhelmber_: your client keeps reconnecting every minute
18:49 mst sri: already pinged him in #plack
18:49 mst just adjusted the ban to be consistent
18:49 stephan48 batman: why can't you can him with convos?
18:49 mst this way he can re-nick to get back in when he unfucks his connection
18:49 stephan48 you ban*
18:50 batman stephan48: i have no idea
19:05 Kogurr joined #mojo
19:07 bin_005 joined #mojo
19:08 gryphon_ joined #mojo
19:39 trone joined #mojo
20:02 aggrolite joined #mojo
20:05 mattastrophe joined #mojo
20:29 aggrolite joined #mojo
20:30 asda joined #mojo
20:30 asda left #mojo
20:32 damaya Hey, let me ask ya something.
20:33 lb no
20:33 damaya Do you wrap all your database stuff in try/catch (or eval) blocks?
20:33 damaya :(
20:33 lb not all
20:33 damaya At least I did not ask to ask, yea?
20:33 damaya not all, ok. just checking.
20:33 damaya I don't want my website puking.
20:33 lb always have a plan
20:34 damaya but it seems like a bad answer to wrap everything in evals :/
20:34 damaya ok, will figure out my plan then. thanks lb.
20:34 lb txn_do in dbix::class is your friend
20:34 damaya lb, I'm switching from dbix::class to mojo::pg at the moment
20:34 lb ah, no experience yet
20:34 damaya not that I prefer one over the other, just want to try out mojo::pg.
20:34 * lb is doing oracle stuff at current contract
20:35 * damaya works for oracle :D
20:35 lb my condolences
20:35 * damaya hangs head in shame
20:35 damaya haha, yep... damned oracle.
20:36 * lb sure is doing a lot of pl/sql for a perl programmer :(
20:36 damaya Though, I work for basically Sun, but they were acquired by Oracle, so technically I work for Oracle, but fortunately Oracle leaves us alone.
20:36 damaya lb, dbix::class?
20:36 lb it's like basic if basic was waterboarding
20:36 lb that's the interface, yes
20:37 lb we don't see the tables in the db by design, so it's autogenerated classes for view-manipulation and some handcoded methods for funcs/procs
20:38 lb it's complicated, might blog about the method behind our madness
20:40 disputin joined #mojo
20:40 Grinnz_ damaya: in my experience, the cleanest thing to do is have any databse error abort the request (RaiseError in a mojo app works nicely for this)
20:41 Grinnz_ you shouldn't get database errors on purpose
20:41 Grinnz_ when i was doing CGI scripts, there was no handling of exceptions, so i had to check manually after every query for a db error
20:41 Grinnz_ but in mojo this is handled as a 500 automatically
20:42 lb that's literally not true
20:42 damaya Grinnz_: Awesome, thank you!!!
20:42 Grinnz_ what isn't?
20:42 lb mojo doesn't have database connections, RaiseError is a DBI thing
20:42 Grinnz_ i didn't say they were related
20:43 Grinnz_ but RaiseError causes an exception to be thrown, which causes mojo to abort the request with a 500 when uncaught
20:43 lb ok then
20:43 Grinnz_ Mojo::Pg uses RaiseError by default iirc
20:43 lb not that a 500 is super-good ux :)
20:43 Grinnz_ database errors are not good UX :P
20:44 lb it beats an inline php-error-dump
20:44 Grinnz_ yeah, that's far worse
20:44 polettix joined #mojo
20:44 Grinnz_ although, that is what you get in mojo development mode ;)
20:44 lb except when the php-page statically links to the static resource you need
20:44 lb we can't win
20:44 Grinnz_ yay application modes
20:45 pink_mist hey, php has those too by changing which php.ini you use :P
20:45 Grinnz_ wait, you can use different php.ini now?
20:45 Grinnz_ last i remember that was impossible
20:46 Grinnz_ or do you mean... swap in one or ther other :P
20:46 pink_mist different? you rm or mv the one you're using, and mv or cp over the one you want
20:46 Grinnz_ hahaha
20:46 pink_mist it's php after all..
20:46 Grinnz_ system wide config for every php script, brilliant idea
20:47 Grinnz_ but hey, that was before we decided to serve more than one website on a single server
20:48 lb which is an ancient idea now anyways
20:50 genio Well, you can run different php-fpms for differing versions of PHP.  PHPBrew exists.  but, eww
20:50 Grinnz_ that sounds like a bundle of joy
20:52 genio actually, you can have different init files for php-fpm as well which could be specific to your app.
20:54 genio I'm not a fan of PHP still, but there are a few nice things that have been released if you're forced to PHP... http://guzzle.readthedocs.org/en/latest/
20:54 Grinnz_ i'm not, so i will continue pretending it doesn't exist as long as possible
20:55 genio can't blame you
20:55 genio I still can't believe that \ is the namespace separator
20:56 Grinnz_ i still can't believe they implemented ?: wrong
20:56 pink_mist 0_o how?
20:56 genio http://phpsadness.com/sad/30
20:56 genio pink_mist: ^^
20:58 pink_mist 0_o
20:58 Grinnz_ read through everything on that website, if you're stocked up on antidepressants
21:01 sri hahaha, i guess everyone who didn't get a wwdc ticket is very glad now
21:01 lb i'm excited about multitasking on the ipad!
21:02 genio I didn't see anything I cared about :/
21:02 sri ONE MORE THING
21:03 lb i don't watch corporation sale pitches live
21:03 lb it's a good rule
21:03 sri not enough bono this time
21:04 * sri has to admit that he stopped watching apple events too :o
21:04 * sri is just catching up on the highlights on twitter :p
21:07 lb lolights
21:08 lb stableperlgate was more interesting
21:08 sri only interesting thing was swift 2
21:08 sri open source and for linux
21:09 bin_005 joined #mojo
21:09 lb i am really not sure why they didn't open source it at once
21:09 lb massive bluner
21:09 lb +d
21:10 lb (also, swift is really not that interesting)
21:24 aggrolite joined #mojo
21:26 aggrolite joined #mojo
21:38 punter joined #mojo
21:41 bin_005 joined #mojo
21:44 Kogurr joined #mojo
21:47 * jberger is getting ready to talk about phantom
21:56 lb which phantom?
21:57 Grinnz_ of the opera, of course
21:57 lb could be http://www.drdobbs.com/parallel/the-phantom-programming-language/184410361
21:58 lb or http://en.wikipedia.org/wiki/Phantom_OS !
22:01 * tempire phantoms into joel's talk
22:03 aggrolite joined #mojo
22:06 pink_mist lb: https://metacpan.org/pod/Mojo::Phantom
22:28 aggrolite joined #mojo
22:32 woz joined #mojo
22:34 mattastrophe joined #mojo
22:40 punter joined #mojo
22:42 damaya_ joined #mojo
23:11 frederic_ joined #mojo
23:25 aggrolite joined #mojo
23:45 jberger woo hooo, I'm done

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