Camelia, the Perl 6 bug

IRC log for #mojo, 2012-03-30

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

All times shown according to UTC.

Time Nick Message
00:55 sri but but but... all python code is always super high quality!
01:35 sri http://voxel.dl.sourceforge.net/project/mal​classifier.adobe/AdobeMalwareClassifier.py
01:35 sri :D
01:35 xaka joined #mojo
01:37 tempire wow
01:37 tempire that is particularly awesome
01:38 jnap joined #mojo
01:38 jnap joined #mojo
02:08 ashish joined #mojo
02:43 Foxcool joined #mojo
03:42 asarch joined #mojo
05:04 fR left #mojo
05:17 arpadszasz_ joined #mojo
05:19 Foxcool joined #mojo
06:36 amirite joined #mojo
06:42 spleenjack joined #mojo
06:46 batman joined #mojo
07:32 olav joined #mojo
07:36 Foxcool joined #mojo
07:42 Leandr joined #mojo
07:42 Leandr hi, all
07:43 taryk joined #mojo
07:46 Leandr can anybody help with psgix.io and mojo?
08:03 spleenjack1 joined #mojo
08:05 cosmincx joined #mojo
08:40 cosmincx joined #mojo
08:44 judofyr joined #mojo
09:11 nicolaas joined #mojo
09:11 nicolaas hi all
09:11 judofyr hi nicolaas
09:11 nicolaas i'm new to perl, can't find a way to use File::Find in my Mojolicious app, as I don't know how to define the reference to my sub routine
09:13 judofyr nicolaas: doesn't the example in File::Find's synopsis work?
09:14 judofyr nicolaas: also, you can use just: find(sub { … }, "dir")
09:16 nicolaas judofyr, yes i'll try that because the synopsis example doesn't work .. "find( { \&$self->list, '/' } );" tells me "Not a code reference" (despite list is a subroutine of my controller)
09:17 nicolaas and "find( { \&list, '/' } );" brings me to "no subroutine defined" .. and I understand because it has no idea what list is
09:19 nicolaas yeah, it works, thank
09:19 nicolaas but i think i had to much { }, i'll re-try with a reference
09:19 nicolaas thank you*
09:20 judofyr nicolaas: hm. I thought "sub list { }" + \&list should work
09:21 judofyr and yeah, those { } definitely look work
09:21 judofyr find(\&list, '/') should work
09:24 nicolaas judofyr, yes you're right it seems to be working
09:24 nicolaas judofyr, my mistake, it was a syntax error
09:24 judofyr nicolaas: great :)
09:24 judofyr nicolaas: I'm kinda a Perl noob myself
09:25 nicolaas judofyr, Mojolicious is great for perl noobs :)
09:25 nicolaas I mean, it's easier for me to learn perl through Mojolicious
09:25 judofyr nicolaas: indeed! what language do you usually use (or previously used)?
09:25 nicolaas PHP & Java
09:26 nicolaas and you ?
09:26 purl hmmm... you is what you am
09:26 judofyr Ruby
09:26 judofyr mostly
09:26 nicolaas judofyr, a friend told me to try Ruby .. seems great too
09:26 judofyr :)
09:26 nicolaas judofyr, looks like python syntax, is that it ?
09:27 judofyr nicolaas: kinda. not indent-based though.
09:27 judofyr nicolaas: if you ever need help with Ruby, feel free to ask me ;)
09:27 nicolaas judofyr, okay thanks :)
10:16 d4rkie joined #mojo
10:23 Foxcool joined #mojo
11:00 d4rkie joined #mojo
11:03 d4rkie joined #mojo
11:07 ki0_ joined #mojo
11:14 * sri yawns
11:15 Leandr sri, hi
11:15 * sri waves
11:16 Leandr sri, could you please add support for WebSocket into Mojo::Server::PSGI via psgix.io ?
11:16 sri no
11:17 Leandr what's the problem?
11:17 purl the problem is you've not used this how it's supposed to be used, I think
11:18 sri as the name psgix says, it's an extension, we only implement what's in the spec
11:18 Leandr according PSGI::Externsions in PSGI/1.1 spec psgix.io is designed for breaking PSGI logic to bring support of interactive protocols
11:19 Leandr OKay, thank you
11:21 sri i already got fed up with incompatibilities in the streaming api between servers when trying to implement that
11:24 sven^ joined #mojo
11:25 sri it's completely backwards that you have to target a specific web server with these extensions... when the point of psgi is actually to target them all
11:31 sri https://gist.github.com/2011353 # i did actually propose a solution too
11:40 sri however, if someone provided a patch that worked across all servers that provide the extension and had very good unit tests i prolly wouldn't reject it *hint hint*
11:45 arpadszasz joined #mojo
11:46 fhelmber_ joined #mojo
11:57 judofyr sri: which servers are "all the servers"?
12:27 sri judofyr: you tell me
12:27 judofyr sri: I really don't know anything about Perl servers. well, only Starman and Hypnotoad…
12:27 sri i stopped caring after comparing twiggy and feersum
12:28 judofyr nice: "Why the cute name instead of more descriptive namespace? Are you on drugs?"
12:29 sri it's so bad that if you follow the spec exactly for streaming it can't actually work
12:30 sri but i ranted about that before... no need to repeat :)
13:07 xenu_ hi, could someone point me to examples on mojolicious exception handling?
13:08 xenu_ i completely don't know how to use them (in opposite to Exception::Class)
13:09 xenu_ specificaly, i don't know how to create new exception object and how to catch exception
13:49 crab judofyr: what are you quoting?
13:50 judofyr crab: https://metacpan.org/module/Twiggy
13:51 abra joined #mojo
13:52 CromeDome joined #mojo
14:03 mercutioviz joined #mojo
14:08 inokenty joined #mojo
14:15 Leandr joined #mojo
14:20 mercutioviz_ joined #mojo
14:38 random left #mojo
14:40 batman https://gist.github.com/2251988 <--- so this is my Mojo::IOLoop::Run module. i'm not pleased yet, but at least it works :)
14:41 kaare joined #mojo
14:46 sri interesting
14:48 sri you're using an io watcher to trigger waitpid instead of a signal handler, is that portable?
14:48 judofyr batman: nice!
14:48 batman sri: i have no idea about portable :/
14:48 sri implementation looks way simpler than i would have imagined
14:49 batman sri: also. i'm thinking about adding a recurring timer (once a second) to make sure i can see that a child is dead
14:49 batman sri: yes. i suspect there are tons of bugs. at least when it comes to windows
14:49 sri you ca always upload a development release with tests and let cpantesters find out
14:50 batman maybe i will.
14:50 batman just wanted to show off first to get some feedback
14:50 sri maybe call it something else, so we still have the option to add a core module Mojo::IOLoop::Run at some point in the future ;)
14:51 batman do you -really- want this kind of functionality in core?
14:51 batman anyway - sure, i'll rename it
14:52 sri it depends
14:52 batman just need another name...
14:52 chorny joined #mojo
14:52 sri if the implementation is really this simple, portable and easy to test it might be worth having it in core
14:53 batman i doubt that it's this simple
14:53 sri the functionality gets requested quite frequently
14:53 batman i was stealing some bits from POE::Wheel::Run, but just a fraction
14:53 batman skipped all the RUNNING_IN_HELL bits
14:53 * sri nods
14:53 sri i'm just hoping for a best case outcome here :)
14:53 batman hehe
14:54 batman comments on the api?
14:55 BinGOs its not portable without all the RUNNING_IN_HELL bits.
14:56 batman i'm not surprised :)
14:56 sri conduit and raw arguments confuse me a little, otherwise it looks sensible
14:56 sri program_args -> args?
14:57 BinGOs You have to use sockets instead of pipes so you can select() on them etc.
14:57 Foxcool joined #mojo
14:57 BinGOs for MSWin32's retarded implementation of select()
14:57 batman conduit is to choose between IO::Pty and pipe().. some apps (like ssh) require a pty. and i think i'm renaming the extra arguments (raw++)
14:57 batman BinGOs: oh. i'm not going down windows lane then...
14:58 sri hmm
14:58 * sri wonders if just using POE as a backend might be a better solution then
14:58 batman i'm testing this to see which is faster
14:59 sri someone really needs to fix the EV backend for POE so things "just work"
15:01 BinGOs batman: POE::Pipe::OneWay hides that detail.
15:01 batman BinGOs: don't care :(
15:01 batman someone @windows need to fix it.
15:01 batman marcus: er det fest i kveld? :)
15:02 marcus batman: er en veeeldig liten fest her visstnok, jeg kan ikke komme. blir stor fest neste last friday.
15:02 asarch joined #mojo
15:02 batman ok:)
15:02 batman da dropper jeg ut
15:02 batman flaks :P
15:04 fhelmber_ joined #mojo
15:09 mire joined #mojo
15:13 chorny joined #mojo
15:29 xaka joined #mojo
15:47 Psyche^ joined #mojo
16:01 batman joined #mojo
16:08 tempire joined #mojo
16:09 mire joined #mojo
16:14 abra joined #mojo
16:16 jnap joined #mojo
16:35 xaka joined #mojo
16:43 Akron joined #mojo
16:57 batman not really mojo related, but which image library would you use to resize images and make thumbnais these days?
16:57 batman i'm thinking GD or Image::Magick
16:58 batman or should i pass the job on to some other service?
17:01 chorny I'd use GD
17:04 batman ok
17:22 batman http://cloudinary.com/features <-- looks promising
17:26 chorny joined #mojo
17:42 tempire there's also Imager
17:55 batman nice. it also installs at dotcloud :)
17:56 batman is it fast?
18:01 * marty friggin loves Mojolicious!   and of course ponycorns.
18:02 * marty does the mojolicious dance.
18:02 sri \o/
18:12 Leandr joined #mojo
19:08 tempire joined #mojo
19:18 lukep joined #mojo
19:24 brambles joined #mojo
19:49 fibo joined #mojo
19:51 Patterner _o_
20:12 CromeDome joined #mojo
20:20 Shaeto joined #mojo
20:21 Shaeto hi can someone told me what is "well  configured reverse proxy" in therms of 2.69 version :)
20:22 Shaeto it seems my apache reverse proxy now doesnot well
20:22 inokenty Shaeto: https://github.com/kraih/m​ojo/wiki/Apache-deployment
20:23 Shaeto yes thank i am already was there :)
20:23 Shaeto okay okay lets read first :)
20:23 inokenty And what's the problem?
20:23 purl rumour has it the problem is you've not used this how it's supposed to be used, I think
20:24 Shaeto application doesn't get correct url address and use own http address instead of "proxy" address
20:24 Shaeto worked in 2.59 :)
20:25 Shaeto agree mb it was configured not as required
20:25 Shaeto by standard
20:25 taryk joined #mojo
20:26 Shaeto so main question how to push host name to the application
20:47 Shaeto checked source code and deployment examples, don't understand how mojo application will detect host name without "-Host" ENV :(
20:48 sri always looks at the official documentation first http://mojolicio.us/perldoc/Mojolicio​us/Guides/Cookbook#Apache2Fmod_proxy
20:49 sri with that configuration X-Forwarded-Host has always been useless
20:50 Shaeto now much hotter, thanks
20:51 asarch joined #mojo
20:53 perlite_ joined #mojo
20:57 Shaeto yes it works, nginx do not need "Host" also as i think
20:59 sri nginx can also just forward Host http://mojolicio.us/perldoc/Moj​olicious/Guides/Cookbook#Nginx
21:00 sri don't think X-Forwarded-Host makes any sense with modern reverse proxies
21:02 Shaeto yes, okay now this based on request header instead of env variable, thats much better agree
21:05 Shaeto sorry not env variable i meant non standard header variable
21:05 Shaeto X-*
21:11 sri all X- headers suck
21:11 sri they are actually getting deprecated :) http://tools.ietf.org/html/​draft-ietf-appsawg-xdash-04
21:13 tempire marcus: thoughts on xslate?
21:14 sri xslate renderer doesn't support multiple paths yet :(
21:15 sri and still has the horrible MojoX name
21:15 Shaeto hypnotoad allowed scalar "listen" parameter in 2.69-, now requires an array
21:15 sri Shaeto: accidental feature
21:15 sri it was never documented or tested
21:16 fibo hi sri, please check my project pni-pm on github ... and thanks for Mojolicious !!!
21:17 beyondcreed joined #mojo
21:17 sri glad you like it
21:17 fibo it is a node based programming ide via browser
21:19 d4rkie joined #mojo
21:20 Shaeto fibo do you have public demo ?:)
21:21 sri hmm, no commit in almost a day, maybe a bugfix release would be in order :)
21:22 judofyr joined #mojo
21:23 fibo no, i'm planning to add one on dotcloud
21:23 fibo it still not complete, should be usable in few weeks
21:23 * sri will just upload, since all core devs seem to be on vacation
21:28 fibo Shaeto: $ cpan PNI ... and then $ pni daemon # but still not really usable, only model by now :P
21:29 Shaeto i will try to run it on this weekend, now i looked at source code and found some nice ideas :) want to try Kinetic in my project
21:30 fibo is really good, if you want to use canvas
21:31 Shaeto thank you will try, i need to learn how to build multi-"block" web application with complex layout, seems divs, kinetic, jquery and rest is solution
21:32 fibo current version on CPAN has not Kinetic bundled yet, will be added in next release
21:32 tempire I can upload
21:35 tempire I CAN UPLOAD
21:40 sri tempire: :S
21:41 GitHub108 joined #mojo
21:41 GitHub108 [mojo] kraih pushed 1 new commit to master: http://git.io/nW6PBw
21:41 GitHub108 [mojo/master] small documentation tweaks - Sebastian Riedel
21:41 GitHub108 left #mojo
21:43 sri memowe will be happy about the inflate and precedence fixes
21:45 * sri wonders if we can slow down releases to once a month
23:33 GitHub64 joined #mojo
23:33 GitHub64 [mojo] kraih pushed 1 new commit to master: http://git.io/zipf9w
23:33 GitHub64 [mojo/master] more documentation tweaks - Sebastian Riedel
23:33 GitHub64 left #mojo

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