Camelia, the Perl 6 bug

IRC log for #mojo, 2012-11-21

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

All times shown according to UTC.

Time Nick Message
00:00 Averna joined #mojo
00:31 SmokeMachine joined #mojo
00:39 omani good night
01:04 vladka joined #mojo
01:04 mojocasts joined #mojo
01:04 * mojocasts logs in from a 27" imac
01:04 * mojocasts drools
01:05 * mojocasts disappears into the night
01:08 hlin joined #mojo
01:11 laouji joined #mojo
01:13 * sri sometimes wonders if sending pull requests on github might be a little too easy
01:13 sri they should at least enforce a sensible description :S
01:16 chansen hehe
01:17 Mike-PerlRecruiter_ joined #mojo
01:21 egopro joined #mojo
01:25 chansen sri: BTW, I have seen my code wander from my gist <https://gist.github.com/810296> to Mojo to JSON::Tiny to ThaiSchema::JSON without proper attribution. Also all modules thinks the parser is a relaxed version when it's in fact a very strict parser passing D. Crockford own tests for his decoder.
01:26 chansen I suggest you keep attribution in code instead of a README/Contributor file
01:31 sri so much mojo code got forked, i've completely lost track :/
01:32 sri oh my, ThaiSchema::JSON got totally butchered
01:33 sri \0 as false constant... *facepalm*
01:37 dvinciguerra joined #mojo
01:37 chansen I don't mind that code is forked as long there is proper attribution, keep attribution in a comment within the package and problem is solved
01:49 d4rkie joined #mojo
01:50 d4rkie joined #mojo
01:59 D4RK-PH0ENiX joined #mojo
02:04 MojoGuest396 joined #mojo
02:40 xaka joined #mojo
02:45 human39 joined #mojo
02:53 d4rkie joined #mojo
03:08 good_news_everyone joined #mojo
03:08 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/xObZ4g
03:08 good_news_everyone mojo/master 8f39242 Sebastian Riedel: a few more CGI tests
03:08 good_news_everyone left #mojo
03:15 mire__ joined #mojo
03:21 noganex_ joined #mojo
03:38 rem_lex|pivo joined #mojo
04:02 D4RK-PH0ENiX joined #mojo
04:04 ovnimancer joined #mojo
04:43 d4rkie joined #mojo
05:22 hlin joined #mojo
05:23 Foxcool joined #mojo
05:43 zivester joined #mojo
05:46 egopro joined #mojo
05:51 ver joined #mojo
05:52 laouji joined #mojo
05:58 Vandal joined #mojo
06:16 egopro joined #mojo
06:21 spleenjack joined #mojo
06:28 hlin joined #mojo
06:28 jmaister_ joined #mojo
06:28 duncanthrax2 joined #mojo
06:28 wheee joined #mojo
06:30 Caelum_ joined #mojo
06:38 mike_ joined #mojo
06:38 edoardo_ joined #mojo
06:40 marcus_ joined #mojo
06:44 BinGOs joined #mojo
06:44 garu joined #mojo
06:44 tardisx joined #mojo
06:44 phips joined #mojo
06:44 Annihitek joined #mojo
06:44 Ulti joined #mojo
06:44 phillipadsmith joined #mojo
06:44 stickpin joined #mojo
06:44 espen joined #mojo
06:44 keedi joined #mojo
06:44 mfontani joined #mojo
06:44 plu joined #mojo
06:44 sawtooth joined #mojo
06:44 bzero joined #mojo
06:44 yko joined #mojo
06:44 mattp_ joined #mojo
06:44 dbr joined #mojo
06:44 baton8 joined #mojo
06:44 zdk joined #mojo
06:44 alester joined #mojo
06:44 atz joined #mojo
06:44 dotan joined #mojo
06:44 marty joined #mojo
06:44 perlite joined #mojo
06:44 njlg joined #mojo
06:44 human39 joined #mojo
06:44 rem_lex|pivo joined #mojo
06:44 ver joined #mojo
06:44 spleenjack joined #mojo
06:44 dod joined #mojo
06:44 xaka joined #mojo
06:44 smpb joined #mojo
06:44 jmmills joined #mojo
06:44 gabiruh joined #mojo
06:44 patspam joined #mojo
06:44 xxtjaxx_ joined #mojo
06:44 bjoernfan joined #mojo
06:44 tokuhirom joined #mojo
06:44 kmx joined #mojo
06:44 HtbaaPi joined #mojo
06:44 allison joined #mojo
06:44 ashleydev joined #mojo
06:44 tomi-ru joined #mojo
06:44 rhaen joined #mojo
06:44 avenj joined #mojo
06:44 diegok joined #mojo
06:44 omega joined #mojo
06:44 ZadYree joined #mojo
06:44 rafl joined #mojo
06:44 romel joined #mojo
06:44 bc547 joined #mojo
06:44 migo joined #mojo
06:44 janus joined #mojo
06:44 trone joined #mojo
06:44 jwang joined #mojo
06:44 nic joined #mojo
06:44 sri joined #mojo
06:44 dwierenga joined #mojo
06:44 mtths joined #mojo
06:44 charsbar__ joined #mojo
06:44 rwstauner joined #mojo
06:44 chansen joined #mojo
06:44 Mikey joined #mojo
06:44 aptituz joined #mojo
06:44 buu joined #mojo
06:44 Mithaldu joined #mojo
06:44 kenjiskywalker joined #mojo
06:44 cosimo joined #mojo
06:44 robinsmidsrod joined #mojo
06:44 connor_goodwolf joined #mojo
06:44 kongelaks_ joined #mojo
06:44 JiYu joined #mojo
06:44 mikegrb joined #mojo
06:44 jayallen joined #mojo
06:44 Britzel joined #mojo
06:44 batman joined #mojo
06:44 memowe joined #mojo
06:44 bobkare joined #mojo
06:44 jzawodn joined #mojo
06:44 drift joined #mojo
06:44 Averna joined #mojo
06:44 Mike-PerlRecruiter_ joined #mojo
06:44 noganex joined #mojo
06:44 d4rkie joined #mojo
06:44 Foxcool joined #mojo
06:44 egopro joined #mojo
06:44 hlin joined #mojo
06:44 jmaister_ joined #mojo
06:44 duncanthrax2 joined #mojo
06:44 wheee joined #mojo
06:44 heytrav joined #mojo
06:56 dpetrov_ joined #mojo
07:02 dod joined #mojo
07:26 batman left #mojo
07:31 yakudza joined #mojo
07:42 lukep joined #mojo
07:45 dod joined #mojo
07:58 ladnaV joined #mojo
08:10 kitt_vl joined #mojo
08:10 batman joined #mojo
08:12 Molaf joined #mojo
08:26 dod joined #mojo
08:28 Vandal joined #mojo
08:38 Vandal joined #mojo
08:46 dod joined #mojo
08:50 Vandal joined #mojo
08:59 fhelmber_ joined #mojo
09:25 Vandal joined #mojo
09:43 arthas joined #mojo
09:44 Britzel_ joined #mojo
09:55 memowe_ joined #mojo
09:55 cosmincx joined #mojo
09:59 ghandi joined #mojo
10:00 ghandi Hi Guys, is hypnotoad respecting the MOJO_MODE Env-Variable?
10:00 ghandi And is there any specific reason for removing Mojolicious::Guides::Cheatsheet? :)
10:00 nic Too many people cheating
10:01 ghandi but it's handy :)
10:01 nic It's still retrievable if you want to fetch it and store it locally
10:02 nic (but I'm guessing it's out of date now -- just a guess)
10:02 nic for your first question, it should be easy to test that against your version of Mojolicious
10:03 ghandi oh well, indeed. tested it, and it respects MOJO_MODE ;)
10:04 nic excellent
10:04 ghandi And for the Cheatsheet: Yeah, there are still ancient version available. But and sometime things will change. :)
10:04 ghandi *at
10:34 SmokeMachine joined #mojo
10:37 fhelmber_ joined #mojo
11:11 Vandal joined #mojo
11:47 d4rkie joined #mojo
11:47 sinkovsky joined #mojo
12:11 michaelfung joined #mojo
12:11 sinkovsky joined #mojo
12:15 michaelfung One question about the doc at http://mojolicio.us/perldoc/Mojoli​cious/Guides/Routing#Minimal_route,
12:16 michaelfung at "he minimal static route above will load and instantiate the class MyApp::Foo and call its welcome method."
12:17 michaelfung But the module "MyApp::Foo" has nothing to bless???
12:17 hasan joined #mojo
12:27 crab the 'use Mojo::Base ...' makes MyApp::Foo inherit a new from Mojo::Base, which does the blessing.
12:27 crab if i understand what you're asking in the first place.
12:28 Akron joined #mojo
12:32 michaelfung crab: I see. I did not know module can inherit method without using @ISA.
12:34 sinkovsky joined #mojo
12:54 Vandal joined #mojo
13:05 mtths joined #mojo
13:13 sinkovsky joined #mojo
13:17 Mike-PerlRecruiter_ joined #mojo
13:31 ghandi joined #mojo
13:49 sh4 joined #mojo
13:51 ladnaV joined #mojo
13:53 hasan what does restful mean? is it that I can use http methods on friendly urls?
13:54 hasan like mydomain.tld/profiles/user1/show or /profiles/user1/delete?
13:54 omani so I can do some action and get a response to that
13:58 memowe joined #mojo
13:59 nicomen omani: there are many definitions I guess, but you are more restful the more you use http methods and urls for the various actions
13:59 nicomen compared to passing actions and variables as cgi params
14:00 nicomen http://en.wikipedia.org/wiki/R​epresentational_state_transfer
14:01 omani ok so it is just a approach to get a user friendly web service
14:01 omani resp. website
14:01 omani s/a/an/
14:03 Vandal joined #mojo
14:08 ObseLeTe joined #mojo
14:09 ladnaV joined #mojo
14:16 nicomen omani: not necessarily for a user, but that's a sideeffect at times
14:17 nicomen omani: but it's about using HTTP directly to represent functionality
14:18 nicomen foo.com/get/element_id and foo.com/delete/element_id is not as restful as using HTTP GET /element_id or HTTP DELETE /element_id
14:19 omani ok I see
14:26 Vandal joined #mojo
14:34 inokenty joined #mojo
14:36 dod joined #mojo
14:52 labrown joined #mojo
14:57 d4rkie joined #mojo
15:02 sh4 joined #mojo
15:30 ObseLeTe joined #mojo
15:40 bluescreen joined #mojo
15:47 ObseLeTe joined #mojo
15:52 sinkovsky joined #mojo
15:52 d4rkie joined #mojo
15:58 mire__ joined #mojo
16:08 batman joined #mojo
16:24 titus joined #mojo
16:37 ladnaV joined #mojo
16:49 Vandal joined #mojo
16:59 rafl joined #mojo
17:07 dod joined #mojo
17:07 xaka joined #mojo
17:08 drift joined #mojo
17:11 rafl joined #mojo
17:17 trone guys, I'm using morbo in dev env, but it seem to cache an action output from db. Is it possibile?
17:20 trone I've an action to show records list from db. A form post data in this db. While I update/insert into db all is ok (view is aligned), but if I delete records from db the webpage show me the inserted records until morbo restart.
17:22 ladnaV joined #mojo
17:23 asarch joined #mojo
17:24 Ulti if I wanted a site maintenance type placeholder page to appear for all requests is there an elegant way to do this in Mojolicious?
17:30 marty trone:  https://groups.google.com/forum/?fromg​roups=#!topic/mojolicious/shf0kETALH0
17:30 titus joined #mojo
17:31 marty Ulti:  does this help... http://mojolicio.us/perldoc/Mojoliciou​s/Guides/Routing#Wildcard_placeholders
17:35 trone marty: thanks.
17:49 Ulti marty its more I want to set something up thats for when I bring the database down... so I dont want to have to edit the code to catch everything all of the time, maybe only when I touch a file or something
17:50 yakudza joined #mojo
17:56 rafl joined #mojo
17:59 Vandal joined #mojo
18:02 avkhozov joined #mojo
18:10 Caelum_ is it possible to use Apache2::Mojo with a Mojolicious::Lite script rather than a full Mojolicious app? Looking at the synopsis it seems to require an app
18:11 sinkovsky joined #mojo
18:13 Caelum or perhaps a way to wrap the script in an app
18:20 Caelum anyone alive?
18:24 marty Ulti:  I see.  well I guess you could poll the DB connection in your action (or look for a file mod time) and  use redirect_to
18:25 marty Here is a good example...   http://mojolicio.us/perldoc/Mojolic​ious/Guides/Growing#Final_prototype
18:25 marty Instead of testing for "user" you could test for mod_time or such
18:27 dabudabu joined #mojo
18:27 marty Caelum:  Normally Mojoliocus apps use the builtin dev server (morbo) or the production server (hypnotoad).  I have no idea how (or why) to use Apache with Mojolicous, would probably  be some proxy setup
18:29 sri Apache2::Mojo was prolly abandoned after we added PSGI support and doesn't work anymore
18:29 Caelum I see
18:30 Caelum so I need to use the mod_perl PSGI support. So I want to write my app in a .cgi file that will run as a CGI, but if an env var is set it will run under mod_perl, is this possible?
18:30 sri just look at the cookbook
18:36 * Caelum looks
18:36 Caelum so I just point Plack at the Mojolicious::Lite app and it will just work?
18:40 batman left #mojo
19:10 omani how do I distinguish between different http methods when I want to build restful web services?
19:11 omani in other words, when does a get, post or put, etc. happen when a client sends a requests
19:12 marty omani:  http://mojolicio.us/perldoc/Mojoli​cious/Guides/Routing#HTTP_methods
19:14 omani $r->route('/bye')->via('GET', 'POST') <- for example, who decides which method to use?
19:14 omani is it the client's browser or me?
19:14 omani for me, a link to a url (when I click on it) is a get method.
19:15 omani a post method is e.g. a html form which I submit to the server
19:16 marty Yes, the method is chosen by the client.   In your app you choose how to respond to one or more http methods for any given url
19:16 sinkovsky joined #mojo
19:17 omani but a http://domain.tld/my/profile/value/delete could be anything
19:18 omani how does the client know about DELETE?
19:18 omani I could do the above uri with a get method or with a delete method.
19:21 Caelum omani: I use jquery .ajax method to make DELETEs
19:22 omani ok
19:29 sinkovsky joined #mojo
19:41 sinkovsky joined #mojo
19:54 titus joined #mojo
20:05 sinkovsky joined #mojo
20:05 xaka joined #mojo
20:35 titus left #mojo
20:59 good_news_everyone joined #mojo
20:59 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/0AYuVQ
20:59 good_news_everyone mojo/master a26cbba Sebastian Riedel: explain what is important when sending a pull request
20:59 good_news_everyone left #mojo
20:59 sri maybe that will help a little with the pull request quality
21:02 * sri pokes marcus, tempire and crab
21:13 xaka joined #mojo
21:18 CountryGeek_away joined #mojo
21:19 CountryGeek_away joined #mojo
21:23 good_news_everyone joined #mojo
21:23 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Tmgf3Q
21:23 good_news_everyone mojo/master e1c106a Sebastian Riedel: documentation tweaks
21:23 good_news_everyone left #mojo
21:24 CountryGeek_away joined #mojo
21:25 sinkovsky joined #mojo
21:28 sri or at least it's something to link to for bad ones :)
22:52 dabudabu About I18N: Does this work for texts that e.g. span multiple paragraphs?
22:53 dabudabu It looks like it just uses a perl hash and you'd then use your long text as a key
22:57 janus hm, what was the story behind servers not accepting content-length of zero? i am not really fond of overriding build_tx just to inject $req->{fix}
22:58 sri do not poke into objects, instance data is off limits
22:59 sri ->{fix} will break, guaranteed
23:00 janus that's why i don't like to do it
23:00 janus basically searching where to hook into or subclass
23:03 jzawodn joined #mojo
23:07 lukep joined #mojo
23:12 ObseLeTe joined #mojo
23:17 janus subclassing Mojo::Message would do it - but... :(
23:17 renormalist joined #mojo
23:18 janus downgrading is also not much better due to different reason (performance/overhead mostly)
23:19 renormalist FAQ?: I want to provide 'hypnotoad myapp.pl' a configfile *in that same commandline*. Can I?
23:19 janus other ideas?
23:23 janus $req->on( finish => sub { shift->headers->remove( 'Content-Lenght' ) } ); # same fail
23:23 janus s/ht/th/
23:39 Averna joined #mojo
23:42 memowe joined #mojo

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