Camelia, the Perl 6 bug

IRC log for #mojo, 2012-01-18

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

All times shown according to UTC.

Time Nick Message
01:25 d4rkie joined #mojo
01:34 hshong joined #mojo
01:44 j3nnn1_ joined #mojo
02:22 lukep joined #mojo
02:55 jnap joined #mojo
02:56 Alias joined #mojo
03:20 abra__ joined #mojo
03:21 xaka joined #mojo
03:38 alnewkirk joined #mojo
03:43 Psyche^ joined #mojo
04:07 mercutioviz joined #mojo
05:08 jwang joined #mojo
05:58 xoma joined #mojo
06:19 Vandal joined #mojo
06:30 koban joined #mojo
06:59 ver joined #mojo
07:17 Shaeto joined #mojo
07:19 ver joined #mojo
07:22 spleenjack joined #mojo
07:33 sugar joined #mojo
07:34 spleenjack joined #mojo
07:36 Shaeto is $self->req->json-> recommended way for controller to get access to json parameters ?
07:41 Shaeto and second question - how to detect if data was in json format - use $app->types->detect($self->req->headers->accept) ?
07:43 Shaeto there is Request::is_xhr method but... not sure if only XMLHttpRequest can be JSON source
07:47 hshong` joined #mojo
07:58 batman joined #mojo
08:12 GitHub189 joined #mojo
08:12 GitHub189 [mojo] kraih pushed 1 new commit to master: http://git.io/m-InhA
08:12 GitHub189 [mojo/master] fixed small caching bug in Mojolicious::Plugin::EPRenderer - Sebastian Riedel
08:12 GitHub189 left #mojo
08:19 marcus goood morning
08:20 marcus new 404 looks sharp!
08:20 heytrav joined #mojo
08:40 mire joined #mojo
08:46 cosmincx joined #mojo
09:02 berov joined #mojo
09:27 batman joined #mojo
09:45 cosmincx joined #mojo
10:01 * marcus will be gone this weekend.
10:01 marcus going to budapest to shoot frickin' lasers at my eyes.
10:20 Foxcool joined #mojo
10:28 koban joined #mojo
10:46 batman joined #mojo
11:02 j3nnn1 joined #mojo
11:02 migo joined #mojo
11:13 GabrielVieira joined #mojo
11:15 sri marcus: eeeeep
11:16 crab shateo: if there is self->req->json, then it's json
11:16 Shaeto yes i have found this method
11:17 Shaeto thought there is standard solution how to detect if request body is json
11:17 Shaeto solved by content_type
11:17 crab that's what i'm telling you
11:17 Shaeto thank you
11:17 crab json() will return something only if the request is json
11:18 Shaeto yes but it will try to parse :)
11:19 crab you want to detect the case where the request specifies json content type but not valid json? or what?
11:19 crab anyway, it's easy enough to look at req->headers and req->body
11:19 Shaeto yes agree
11:23 GabrielVieira Hi there, I'm doing the db connection with the attr method in my app with hyponotoad, as said in the documentation (http://pastebin.com/cXsQaqWT), but now I got "[error] DBD::mysql::st execute failed: MySQL server has gone away. Following SQL is executed.". Should I verify the connection in each query (and try to get connection back) or there is another way?
11:26 crab why did it go away?
11:27 marcus it was the first one up against the wall when the revolution came.
11:27 crab in which case, you're totally out of luck.
11:31 * crab wonders if his shiny new android phone will run mojolicious.
11:35 sri crab: got one with ice cream sandwich?
11:36 sri last i heard perl for android was pretty bad, with stuff like Encode completely missing
11:38 marcus was missing unicode support, afaik
11:39 cosmincx joined #mojo
11:40 crab no, it's gingerbread
11:42 sri guess that doesn't matter anyway, since you can just install cyanogenmod
12:01 * sri wonders if the ice cream sandwich browser support rfc 6455
12:07 briang joined #mojo
12:09 Netfeed can't wait enough for the new xperia s
12:50 judofyr joined #mojo
12:50 judofyr how would I debug this: Event "close" failed: Can't use an undefined value as a symbol reference at /Users/magnus/perl5/perlbrew/perls/perl-5.14.​1/bin/../lib/5.14.1/darwin-2level/IO/Poll.pm line 48.
12:55 preflex joined #mojo
12:57 GitHub174 joined #mojo
12:57 GitHub174 [mojo] kraih pushed 1 new commit to master: http://git.io/-_c_yA
12:57 GitHub174 [mojo/master] fixed typo in exception template - Sebastian Riedel
12:57 GitHub174 left #mojo
12:58 sri judofyr: kill it with fire
13:04 Akron joined #mojo
13:05 Akron GabrielVieira: Do you use DBIx::Connector?
13:07 marcus judofyr: try Carp::Always to track it down?
13:07 marcus judofyr: or use the perl debugger and set a breakpoint
13:24 jnap joined #mojo
13:33 inokenty joined #mojo
13:54 GabrielVieira joined #mojo
13:57 r0b3rt joined #mojo
13:59 GitHub2 joined #mojo
13:59 GitHub2 [mojo] kraih pushed 1 new commit to master: http://git.io/N2T_Ow
13:59 GitHub2 [mojo/master] removed T-Shirt link - Sebastian Riedel
13:59 GitHub2 left #mojo
14:14 GabrielVieira Hi there, I'm doing the db connection with the attr method in my app with hyponotoad, as said in the documentation ( http://pastebin.com/C4eUg28s ), but now I got "[error] DBD::mysql::st execute failed: MySQL server has gone away. Following SQL is executed.". Should I verify the connection in each query (and try to get connection back) or there is another way? I'm using DBIx::Custom
14:26 Akron joined #mojo
14:27 Akron GabrielVieira: Use the DBIx::Connector example in DBIx::Custom.
14:28 GabrielVieira Akron: yeah.. i used connector => 1, will it be enough?
14:28 GabrielVieira or should I create connector object?
14:29 Akron Should be enough. Is the error gone?
14:30 GabrielVieira I'll need to wait
14:30 GabrielVieira it works fine
14:30 Akron Great.
14:30 GabrielVieira I run the server yesterday, and today the db connection was gone
14:31 GabrielVieira so, i'll see if its ok now
14:31 Akron Timeout, Fork, another thread ... can be many reasons. You should be able to disconnect manually and see if the handle will automatically reconnect.
14:35 GabrielVieira reconnect the mysql maybe?
14:36 GabrielVieira the mysqld I mean
14:36 Akron Yes - that should force the handles to be disconnected, I think.
14:44 marty joined #mojo
14:45 amoore joined #mojo
14:48 marty joined #mojo
15:03 GabrielVieira Akron: worked so far :) thanks
15:03 Akron Nice.
15:09 metaperl joined #mojo
15:14 kaare joined #mojo
15:24 kaare_ joined #mojo
15:24 kaare__ joined #mojo
15:25 kaare_ joined #mojo
15:25 kaare_ joined #mojo
15:34 tabbi joined #mojo
15:35 GitHub80 joined #mojo
15:35 GitHub80 [mojo] kraih pushed 1 new commit to master: http://git.io/dlhrHA
15:35 GitHub80 [mojo/master] added a few JSONPointer examples - Sebastian Riedel
15:35 GitHub80 left #mojo
15:37 tabbi hi, I have a problem with upgrading a mojolicious application. I have a production application running an old version (1.34). now i want to migrate to a new server. i installed the current version 2.43 tried to start the application
15:37 tabbi i get the following error: Can't load application "script/myapp": Can't locate object method "new" via package "myapp" at /usr/local/share/perl/5.10.1/Mojo/Server.pm line 13.
15:37 tabbi is there a guide on how to migrate these old applications?
15:39 sri 1.34 is so old that stuff which has been deprecated in later versions has already been removed by now
15:40 tabbi i know, but what to do in that case? will i have to work through the changelogs to search for all deprecated functions?
15:40 sri what other alternative could there be?
15:41 tabbi i'm not sure. that's why i ask ...
15:52 mire joined #mojo
15:55 grim_fandango joined #mojo
15:55 kaare__ joined #mojo
16:05 mercutioviz joined #mojo
16:06 tabbi there is one strange thing about that: starting the app with morbo, i get the above error. starting it with hypnotoad i get no error
16:10 Foxcool joined #mojo
16:16 ver joined #mojo
16:23 kaare_ joined #mojo
16:29 crab tabbi: it's odd that it's looking for new in myapp not MyApp
16:29 crab what is your class actually named?
16:36 tabbi joined #mojo
16:55 xaka joined #mojo
17:23 mercutioviz joined #mojo
17:42 jnap joined #mojo
18:02 noganex joined #mojo
18:09 sri marcus: have you recently tried installing google web fonts on os x?
18:12 marcus Sri: no
18:12 sri :/
18:13 sri i get hundreds of errors
18:14 sri not to mention the fact that you need to download a 900mb repo for 50mb of fonts
18:14 sri this is soooo google...
18:15 tabbi left #mojo
18:26 marcus Sounds like it.
18:26 purl Sounds like it. is it also delicious?
18:27 GabrielVieira joined #mojo
18:41 batman joined #mojo
18:41 batman joined #mojo
18:52 mattastrophe joined #mojo
19:07 alnewkirk joined #mojo
19:09 kaare joined #mojo
19:23 three18ti joined #mojo
19:27 jnap joined #mojo
19:33 gabriel joined #mojo
19:56 bvierra joined #mojo
20:15 metaperl|2 joined #mojo
20:41 sri i'm starting to get why nobody cares that so many fonts are broken
20:41 sri THEY SUCK BIG TIME!
20:41 sri there are maybe 10 good ones
20:42 sri guess Droid Sans is the most useful
21:04 sri https://github.com/perl-doc-cats/perlfaq/com​mit/c6492761662fa2ed47b53159c52a80b31999c41c
21:04 sri what the hell?
21:04 sri he changed everything except for the cpan sentence...
21:05 tempire Which is the only problem
21:05 tempire I'm going to comment and suggest the following replacement:
21:05 DaTa droid looks nice, except droid mono, O and 0 are looking the same
21:06 tempire "It allows you to employ innovative web technologies without requiring CPAN dependencies."
21:07 sri nooooo
21:07 tempire problem?
21:07 purl problem is you've not used this how it's supposed to be used, I think
21:07 sri just don't mention dependencies
21:07 sri say it installs in under a minute if you want to mention it
21:08 tempire "It installs in under a minute, and is the most useful when you want  to employ innovative web technologies"
21:08 sri soft deps are not the goal, they are currently the way to reach fast installations
21:09 sri tempire: better
21:09 DaTa and that doesn't mean, that an app written with mojolicious isn't allowed to have a lot of dependencies
21:11 sri tempire: send it as a pull request
21:12 tempire fork from tpf/perlfaq?
21:12 sri nope
21:12 sri perl-doc-cats
21:14 tempire "Fairly young with a focus on HTML5 and real-time web technologies such as
21:14 tempire WebSockets. It installs in under a minute, and is the most useful when you want
21:14 tempire to employ innovative web technologies."
21:14 tempire ack
21:14 tempire was kicked by tempire: tempire
21:14 tempire joined #mojo
21:15 sri tempire: maybe say around a minute or so
21:15 sri to cover more ground
21:16 tempire "in about a minute"
21:16 * sri nods
21:17 * sri wonders if we should add HARNESS_OPTIONS=j9 to the install oneliner to get 20 second install times :)
21:18 * tempire wishes there was a command line option, like prove's -j9
21:18 sri --fast
21:18 tempire --faster
21:19 sri --finished-before-youre-done-typing-this
21:27 tempire you don't think the no deps thing is worth mentioning at all?
21:27 tempire I guess n00bs aren't going to be thinking of such things
21:28 sri well, you could highlight "painless installation" or so
21:28 tempire too subjective.
21:28 tempire I don't think they would accept that.
21:28 tempire the one minute thing covers that anyway
21:28 sri well, we do hear a lot that users are surprised by how painless the installation was ;)
21:29 mire joined #mojo
21:31 tempire sri, your german demeanor is harsh.  you need to spend some time in switzerland.
21:31 tempire maybe prance on some hills
21:31 sri :(
21:32 * tempire blacks out sri, but just for today
21:32 tempire :)
21:32 * sri sets tempire on fire to make some light
21:33 * tempire burns brightly into the night
21:33 tempire pull req sent
21:35 sri https://github.com/perl-doc-cats/perlfaq/pull/27
21:45 * tempire has mastered binary heaps.  roars.
21:45 * sri grunts
22:01 lukep joined #mojo
22:22 hshong joined #mojo
22:53 sri http://groups.google.com/group/mojolicio​us/browse_thread/thread/aa85354cf5ee7dcc
22:53 sri thoughts?
22:53 purl Mmm... donuts.
22:54 * sri licks purl
22:54 purl \ finish purl's tonguing maneuver.
23:19 gabriel joined #mojo
23:24 chansen sri: it's up to you, we implemented partial support for it in HTTP::Tiny by just retrying the request, the algorithm outlined 8.2.4 is to complex, should be callers decision whether or not to wait/sleep/retry
23:25 chansen s/retry/retrying beyond 2 times/

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