Camelia, the Perl 6 bug

IRC log for #mojo, 2010-07-28

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

All times shown according to UTC.

Time Nick Message
00:04 diegok joined #mojo
00:19 MojoGuest278 joined #mojo
00:37 diegok_ joined #mojo
00:46 MojoGuest924 joined #mojo
01:01 MojoGuest980 joined #mojo
01:22 MojoGuest812 joined #mojo
01:37 jawnsy joined #mojo
01:52 MojoGuest91 joined #mojo
01:57 MojoGuest298 joined #mojo
01:58 MojoGuest848 joined #mojo
02:11 MojoGuest349 joined #mojo
02:36 janus joined #mojo
02:36 MojoGuest664 joined #mojo
02:36 ask joined #mojo
02:41 MojoGuest348 joined #mojo
02:42 MojoGuest348 wow nice *waves*
02:44 MojoGuest949 joined #mojo
02:44 MojoGuest949 hello
02:49 Alias Lots of guests today
02:57 diegok joined #mojo
03:02 Alias_ joined #mojo
03:08 MojoGuest129 joined #mojo
03:09 MojoGuest129 /help
03:10 fred It certainly looks like extjs.
03:10 fred There can't be much to the mojo though.
03:56 MojoGuest902 joined #mojo
03:57 ltriant joined #mojo
04:04 tholen42 joined #mojo
04:48 ashleydev joined #mojo
05:41 Foxcool joined #mojo
06:01 pid joined #mojo
06:04 MojoGuest876 joined #mojo
06:06 MojoGuest276 joined #mojo
06:30 marcus morning
06:52 Yappo joined #mojo
06:58 MojoGuest992 joined #mojo
06:58 MojoGuest992 morgen
06:58 MojoGuest992 bye
06:58 MojoGuest992 left #mojo
06:58 MojoGuest577 joined #mojo
07:01 MojoGuest587 joined #mojo
07:05 marcus bergen
07:13 MojoGuest147 joined #mojo
07:18 MojoGuest357 joined #mojo
07:21 Yappo joined #mojo
07:22 Alias_ joined #mojo
07:33 yakudza joined #mojo
07:33 yakudza hello everyone
07:33 ltriant joined #mojo
07:33 yko joined #mojo
07:35 yakudza I would like to write content managment page So I could edit some blog post but with html markup. any good examples ?
07:42 marcus yeah, there's a mojo based CMS already
07:42 marcus http://github.com/memowe/mojoli​cious-plugin-content_management
07:42 garfield [ memowe's mojolicious-plugin-content_management at master - GitHub ]
07:42 garfield http://xrl.us/bhuksi
07:53 MojoGuest690 joined #mojo
08:11 MojoGuest168 joined #mojo
08:36 MojoGuest395 joined #mojo
08:37 MojoGuest800 joined #mojo
08:38 MojoGuest800 hi, revolutionaries
08:38 MojoGuest800 /name OpossumPetya
08:52 yko lol
09:24 MojoGuest392 joined #mojo
09:28 MojoGuest761 joined #mojo
09:36 MojoGuest909 joined #mojo
09:37 dotan joined #mojo
09:46 MojoGuest876 left #mojo
09:52 MojoGuest294 joined #mojo
09:55 MojoGuest294 Hello, World!
09:58 MojoGuest294 Does the terminal in http://blog.kraih.com/perl-is-ready-for-html5 also support ncurses application? Or can it capture commands like STRG-C etc.?
09:58 garfield [ Perl is ready for HTML5 - Sebastian Riedel about Perl and the Web ]
09:58 vti MojoGuest294: yes
09:58 vti MojoGuest294: also tab, ctrl-d etc
09:59 vti MojoGuest294: it is just like a normal terminal
09:59 yko vti++
10:00 MojoGuest294 Oh cool, and without flash or java? This is cool, when get it released. Or get it released as open source?
10:01 vti MojoGuest294: it is using JS + WebSockets, but if your browser does not support websockets it uses a flash fallback
10:01 MojoGuest636 joined #mojo
10:01 vti MojoGuest294: open source version is available at http://github.com/vti/showmetheshell, but it is somewhat different from the version shown in screencast
10:02 MojoGuest294 Thanks for link i will watch it.
10:04 MojoGuest294 Ok i will leave, thanks for information. Bye Bye. :)
10:06 MojoGuest685 joined #mojo
10:06 MojoGuest685 test
10:06 MojoGuest685 this thing live?
10:11 diegok joined #mojo
10:13 MojoGuest806 joined #mojo
10:14 MojoGuest806 Hmm. xantus' irc doesn't support notices...
10:15 MojoGuest806 i think we need a bot who will inform each MojoGuest, that this thing _does_ work...
10:19 MojoGuest462 joined #mojo
10:19 MojoGuest462 hello
10:19 yko MojoGuest462: this thing does work!
10:19 yko be sure.
10:19 * yko isa bot.
10:19 MojoGuest462 is that right
10:20 yko damn :\ actually no
10:20 yko hehe
10:20 MojoGuest462 what?
10:20 yko Jsut forget it
10:28 sharifulin joined #mojo
10:29 sharifulin sri: Hi! Pls add to Mojo::ByteStream::b64_encode second parameter – $eol
10:30 MojoGuest438 joined #mojo
10:31 MojoGuest240 joined #mojo
10:31 MojoGuest438 hello
10:36 MojoGuest684 joined #mojo
10:37 MojoGuest392 joined #mojo
10:37 MojoGuest361 joined #mojo
10:38 MojoGuest361 /me is zachy
10:38 MojoGuest962 joined #mojo
10:38 MojoGuest962 left #mojo
10:38 zakame looks like the client doesn't do ctcp action yet?
10:39 MojoGuest460 joined #mojo
10:40 MojoGuest760 joined #mojo
10:44 MojoGuest690 joined #mojo
10:59 cameron left #mojo
11:00 MojoGuest342 joined #mojo
11:02 steve left #mojo
11:03 MojoGuest550 joined #mojo
11:03 MojoGuest331 joined #mojo
11:06 yko zakame, it doesn't support /notice even :D
11:14 Akron joined #mojo
11:31 MojoGuest575 joined #mojo
11:33 jest joined #mojo
11:34 Akron joined #mojo
11:48 sri sharifulin: patch welcome
11:48 sri (with tests)
11:50 sharifulin sri: ;) http://github.com/kraih/mojo/blob/​master/lib/Mojo/ByteStream.pm#L349 replace ..., @_);
11:50 garfield [ lib/Mojo/ByteStream.pm at master from kraih's mojo - GitHub ]
11:50 garfield http://xrl.us/bhuk6c
11:50 sri sharifulin: i need a test
11:50 sharifulin ok
11:54 GitHub54 joined #mojo
11:54 GitHub54 mojo: master Sebastian Riedel * 82dfd94 (3 files in 3 dirs): protect inline templates from static dispatcher - http://bit.ly/9BKLfF
11:54 GitHub54 left #mojo
11:54 sri and everyone please test inlining static files in the DATA section!
11:58 MojoGuest603 joined #mojo
11:59 MojoGuest603 test
11:59 MojoGuest545 joined #mojo
11:59 MojoGuest545 plop
12:00 * sri yawns
12:02 sharifulin sri: pulled
12:07 MojoGuest545 ping
12:08 marcus pong
12:08 MojoGuest719 joined #mojo
12:09 MojoGuest719 hi
12:09 MojoGuest503 joined #mojo
12:10 sharifulin sri: I'd like to see something like this in Mojo::Client http://github.com/sharifulin/mojo/commit/​2ac575ac1a0d1017be8a6dc5a9a4d3c261048957
12:10 garfield [ Commit 2ac575ac1a0d1017be8a6dc5a9a4d3c261048957 to sharifulin's mojo - GitHub ]
12:10 garfield http://xrl.us/bhuk74
12:11 sharifulin I often trace my requests
12:32 sri sharifulin: that would be fine if it worked
12:33 sharifulin sri: what is it? b64 or client?
12:33 sri but as soon as someone uses ->req->body(sub{}) it blows up
12:33 sri client
12:35 sharifulin sri: ok, i'll test debug mode, now MOJO_CLIENT_DEBUG=1 perl -Ilib -Mojo -E'g("http://mojolicio.us")' is ok
12:35 sharifulin MOJO_CLIENT_DEBUG=1 perl -Ilib -Mojo -E'f("http://mojolicio.us")' is bad
12:35 sri it is bad in general
12:35 sri you can't implement it like that
12:36 vti sri: oauth works!
12:36 sri \o/
12:36 sharifulin vti: show me your oauth pls :)
12:36 sri sharifulin: the *only* way to do it right is to dump the chunks that are written or read
12:39 vti sharifulin: cleaning up :)
12:39 sharifulin vti: what kind of version?
12:41 vti 1.0a
12:41 sharifulin vti: cool) are headers and params support?
12:42 yko trapped with flash cookie bug :(
12:42 vti sharifulin: headers, query string and body
12:44 GitHub39 joined #mojo
12:44 GitHub39 mojo: master Sebastian Riedel * 931ce6c (3 files in 3 dirs): allow custom base64 line ending - http://bit.ly/9sj6l0
12:44 GitHub39 left #mojo
12:49 MojoGuest719 Hi everyone
12:49 marcus hi someone
12:49 MojoGuest719 quick question about websock irc
12:50 MojoGuest719 did you develop a proxy for websock<->irc ?
12:51 marcus the code is available
12:51 marcus http://github.com/xantus/mojo-websocket-examples
12:51 garfield [ xantus's mojo-websocket-examples at master - GitHub ]
12:52 fla looking at it right now, but i cant see any server-side implemenation
12:53 fla oh nm
12:54 fla how efficient is this perl proxy ?
12:55 yko Well, you are over it right now. How do you feel? :D
12:55 fla a bit laggy :p
12:55 fla wondering if it can handle lot of data
12:56 fla ever stress tested ?
12:56 yko Well, the best way to know the answer is to get code and test it
12:57 marcus sri claims his web socket implementation can handle a lot of connections
12:57 yko sri didn't tell anything about 'a lot of data' ever :D
12:57 sri well, in the end i'm bound to the limitations of perl
12:57 sri but note that the code is still unoptimized
12:58 fla interessting
12:58 sri especially memory usage could be decreased massively
12:58 yko sri: rly?
12:58 yko that's great
12:58 sri of course
12:58 fla i dont use perl every day, but i suppose the sock implemnentation shoud be OK
12:59 sri generally websockets just replace old long poll implementations
13:00 sri so they don't need to push around much data
13:00 * yko looking to everride Mojolicious session :\
13:00 sri just keep a few thousand concurrent connections alive
13:00 fla yeah. too bad we cant use real raw sockets :/
13:00 sri fla: i'm glad we can't
13:01 sri hello javascript spam bots!
13:01 fla why that ? don't you prefer when you have the choice ?
13:01 sri not in this case
13:01 fla well you can make a spambot anyway
13:01 sri nope
13:01 sri websockets have a httplike handshake
13:01 yko sri already isa bot :D
13:01 sri the handshake prevents misuse like spambots
13:02 fla sri, in what case? anyone can code the header by hand if needed
13:02 * marcus gives sri the secret handshake
13:02 fla oh you mean webapps connecting to non-web sockets ?
13:02 sri yes
13:03 fla well.. its not a nice way to solve the issue
13:03 fla considering you sacrifice alot of flexibility
13:03 sri find a better one :)
13:03 fla let people implment their own protocoly -of they want to- =)
13:04 fla of=if
13:04 sri apart from the insane draft 76 challenge crap, the websocket is imo really good
13:04 sri *+RFC
13:04 sri you also get HTTP tunneling for free
13:05 sri reusing https proxies for websockets
13:05 fla i'd call it over engineered
13:06 fla you could use SOCKS tunnels too
13:06 sri well, google folks got their hands on the spec
13:06 fla yea..
13:06 fla at least websocket exists, thats a good point
13:09 sri i'm quite sure the limiting factor of websocket servers will always be memory consumption, not throughput (unless you are abusing the protocol)
13:11 * marcus starts a project to stream tv over websocket.
13:13 fla if only it could handle binary data
13:13 sri the protocol can
13:13 fla yes but except 0xFF and 0x00 i guess
13:13 sri problem is browsers can't
13:14 fla yeah browser can with some tricks
13:14 sri nono, protocol also has a pure binary version
13:14 sri length prefixed
13:14 fla what you mean pure binary version?
13:14 fla oh right, i remember reading this
13:14 fla again, length prefixed.. <_<
13:15 fla btw, javascript can handle binary data trough arrays easly
13:15 fla its just innefective for fast stuff
13:16 fla its fine for small crypto tho
13:18 fla i think im gonna develop a de-ptocolizer proxy hehe
13:19 fla until w3c comes out with raw sockets
13:19 MojoGuest234 joined #mojo
13:20 MojoGuest16 joined #mojo
13:21 sri not going to happen
13:21 sri they will never allow spambots inside the browser
13:23 yko hehe.. xantus already do. look arround :)
13:41 sri yko: whats up with the flash?
13:42 marcus flash is great for writing spam bots
13:42 yko sri: flash does not translate cookies from browser
13:42 sri yko: what?
13:42 vel joined #mojo
13:43 yko so if you want upload through flash with auth, you need few workarrounds
13:43 yko http://swfupload.org/forum/generaldiscussion/383
13:43 garfield [ Flash Cookie Bug | SWFUpload ]
13:43 marcus it only applies to upload
13:43 marcus iirc
13:43 sri yko: oooh, you are talking about flash flash, i thought you meant session flash :D
13:43 marcus adobe flash
13:43 yko nono, flash is beautifull, mojo++, etc...
13:43 yko :D
13:44 yko just made workarround about it http://gist.github.com/494510
13:44 garfield [ gist: 494510 - GitHub ]
13:45 yko shure, it requires you to extract mojo cookie with javascript and pass it as post param :\
13:45 yko *sure, argh
13:48 MojoGuest9 joined #mojo
13:52 MojoGuest877 joined #mojo
13:57 MojoGuest381 joined #mojo
13:58 MojoGuest782 joined #mojo
14:26 sri is really everybody playing starcraft 2? :)
14:27 sri such a slow week
14:28 marcus I am coding ipad apps
14:50 marcus safari 5.0.1
14:50 marcus wonder if they fixed web socket
14:53 sri nope
14:53 sri still draft 75
14:53 sri on the server side we now have a draft 75 fallback
14:55 marcus suck
14:56 marcus apple--
14:57 sri well, google screwed up the spec first
14:58 sri there is no way draft 76 will stay the way it is
14:58 sri they will have to break it again
14:59 marcus too hard to implement?
14:59 sri yes, and there is no real reason for it
15:00 sri the whole challenge thing is useless
15:00 sri they make the server prove that it is a websocket server
15:00 sri they are like totally paranoid about spam exploits
15:02 sri http://github.com/kraih/mojo/blob/maste​r/lib/Mojo/Transaction/WebSocket.pm#L55
15:02 garfield [ lib/Mojo/Transaction/WebSocket.pm at master from kraih's mojo - GitHub ]
15:02 garfield http://xrl.us/bhummf
15:02 sri just look at the challenge code
15:02 sri it's ridiculous
15:03 sri _challenge and _generate_key are fun...
15:03 sri all that just to prove that the server is a real websocket server :)
15:06 * sri wonders why perlbuzz is still ignoring him
15:15 MojoGuest781 joined #mojo
15:15 dotan joined #mojo
15:16 MojoGuest781 left #mojo
15:27 marcus because andy is a douche
15:29 sri sounds likely
15:33 vti sri: i want to write mojo::transaction::http::oauth and then simply just $client->process($tx), but i want to set my own headers and other day just before tx is used, i need a callback like init or smth like that
15:34 vti s/other day/other stuff/
15:34 sri vti: i'm not sure that can be done
15:34 vti i can overload sub client_write and check if it was already called and then init.. but that's sound hacky
15:35 vti *that sounds
15:35 sri you are not really supposed to have custom transactions...hmm
15:35 vti but that would really cool and handy
15:36 sri well, if you can do it with whats there already ok, but i won't add anything we don't use internally for now
15:38 sri unless for example it helps simplifying client code
15:40 sri my main goal atm is to simplify, not add more complexity
15:40 vti ok
15:41 sri more custom transaction are a whole new level of complexity as far as i can see
15:41 sri feel free to prove me wrong though :)
15:41 sri *+s
15:41 vti repeating stuff that can naturaly and automatically be used is not good too
15:41 sri what are you repeating?
15:42 vti i have to store headers, query, url etc myself, and then pass them to the client
15:42 vti looks damn ugly
15:42 vti but using my own transaction as a store... nice
15:42 sri that doesn't make sense to me without context
15:43 sri i would just naively expect a custom oauth client
15:44 sri so for me as a user it doesn't matter at all where stuff is stored
15:53 vti as i can see oauth is cloe to webscoket in sense of http + smth, and implementing then a server will be much better having automatically created responses with proper headers, error detecting etc
16:10 vti or not ;D
16:49 ashleydev joined #mojo
17:30 MojoGuest119 joined #mojo
17:30 MojoGuest119 Hey Guys!
17:30 MojoGuest119 Is this thing on?
17:32 marcus yes
17:32 marcus it's on
17:32 * marcus dons his fighting gloves
17:54 blaphmat joined #mojo
17:56 MojoGuest466 joined #mojo
17:57 fhelmber_ joined #mojo
17:57 Schmidt joined #mojo
17:58 fhelmber_ hello irc client @ web
17:58 yko 1
18:03 Akron left #mojo
18:16 Su-Shee joined #mojo
18:17 Su-Shee sri: I'll mention Mojolicious in a Heise article. How's your server?
18:17 sri mojolicious :)
18:18 Su-Shee it's german spelling.
18:27 dotan left #mojo
18:30 MojoGuest628 joined #mojo
18:30 MojoGuest628 hi
18:31 MojoGuest446 joined #mojo
18:31 MojoGuest781 joined #mojo
18:32 MojoGuest155 joined #mojo
18:32 MojoGuest155 hi
18:43 MojoGuest191 joined #mojo
18:43 MojoGuest191 hello
18:43 MojoGuest191 anyone here
18:47 yko MojoGuest191, yes
18:48 yko Softwar you usuing works perfect, everything mojolicious.
18:48 yko *re
18:53 pid joined #mojo
19:03 spleenjack joined #mojo
19:06 Su-Shee left #mojo
19:09 vti sri: https://gist.github.com/c4ec8ba5fde03287c61c
19:11 vti i have to parse body params manually because the server is broken, it doesn't answer with correct type
19:11 sri hmm
19:12 sri you could also just correct the content type
19:12 sri parsing is on demand
19:12 vti can i do that somehow automatically inside of a client?
19:13 sri no
19:13 vti np, anyway this is low level stuff
19:13 vti writing plugin is easy
19:13 sri yea, should look quite good in a plugin
19:14 obi_wan joined #mojo
19:15 vti i have a separate module for calculating signatures
19:15 vti what name do you suggest?
19:15 sri dunno
19:15 vti since it will be used in a server too maybe Mojo::OAuth::Signature?
19:16 sri MojoX
19:16 vti and client too i guess
19:16 sri ye
19:21 sri wtf, why did google kill its image search? :o
19:21 Htbaa joined #mojo
19:22 sri the new google images is unusable
19:22 sri don't they have any quality control?
19:24 Htbaa I´m happy I´m not the only one annoyed by it. The normal search is horrible as well. The navigation on the left makes no sence
19:24 sri yea
19:25 Htbaa whatever happened to the full screen background images on the google homepage?
19:25 vti sri: http://github.com/vti/mojox-oauth
19:25 garfield [ vti's mojox-oauth at master - GitHub ]
19:26 xantus_ http://www.youtube.com/watch?v=BNtcWpY4YLY
19:26 garfield [ YouTube - Do you know anything about hackers? ]
19:27 sri vti: oh, that will break at some point
19:27 sri you are using private methods
19:28 sri don't think i would overload Mojo::Client at all
19:28 sri just have a class with a client attribute
19:28 vti oO
19:29 sri yes, i would build my oauth client *around* it
19:29 cognominal joined #mojo
19:30 vti ok, ok
19:30 sri just saying what i would do
19:30 sri there are quite possibly side effects i don't know about
19:30 y0j joined #mojo
19:32 sri why do you need your own params class?
19:33 vti i can put it into signature
19:34 sri it looks very much like Mojo::Parameters
19:34 sri there is just a sort
19:36 sri and it is based on a hash, so it can't be urlencoded
19:40 sri i see a lot of cleanup potential :)
19:40 sri vti++
19:41 vti sri: what happens when you declare a variable like my $foo if 0; and then use it?
19:41 sri try it? :)
19:50 sri vti: are you planning to release the modules to cpan?
19:51 vti what modules?
19:51 sri oauth
19:51 vti should I?
19:51 sri would be nice if you could use a deeper namespace then, there will likely be more oauth modules in the future
19:55 sri remember the MojoX::Session problem ;p
19:59 sri vti: are there huge differences between the oauth protocol versions?
19:59 vti i don't know yet
20:06 vti sri: i've cleaned it up
20:07 sri why do you clone yourself on ->async?
20:08 vti because i don't want to save the state in a global object
20:09 sri looks good otherwise
20:10 sri still not sure why you need your own param module
20:10 sri makes the codebase way bigger than it has to be :)
20:11 vti fixing it ;p
20:11 sri if you can get that out, it's quite sleek
20:14 * sri wonders if the server side is harder
20:19 MojoGuest179 joined #mojo
20:37 vti sri: done
20:40 ndiewald joined #mojo
20:48 vti it lacks rsa support, but not today
20:49 xantus_ http://gist.github.com/496242
20:49 garfield [ gist: 496242 - GitHub ]
20:50 xantus_ how does that look??
20:51 marcus like teen spirit?
20:51 xantus_ what
20:51 ask joined #mojo
20:53 xantus_ ignite is configured using couchdb
20:54 xantus_ clients and buffers are stored there too
20:54 xantus_ you can have multiple mojo servers set up to scale horizontally
21:05 MojoGuest144 joined #mojo
21:11 marcus sweet
21:13 TheCritic joined #mojo
21:13 MojoGuest931 joined #mojo
21:16 yko MojoGuest931: it works.
21:16 MojoGuest782 joined #mojo
21:17 yko MojoGuest782: yes, it works.
21:17 MojoGuest39 joined #mojo
21:18 yko hmm. actually, how much connection that script can handle
21:18 MojoGuest211 joined #mojo
21:18 MojoGuest482 joined #mojo
21:18 MojoGuest267 joined #mojo
21:19 MojoGuest900 joined #mojo
21:19 MojoGuest473 joined #mojo
21:20 MojoGuest473 Is it guests party today?
21:20 MojoGuest630 joined #mojo
21:20 TheCritic joined #mojo
21:20 TheCritic hi
21:20 MojoGuest482 Someone told, that ws irc laggy.
21:20 MojoGuest482 it's not true!
21:20 TheCritic the http://dev.xantus.org/ client is not working for me... is it working for others?
21:20 garfield [ Mojo Websocket Demo - ExtJS IRC Client ]
21:21 MojoGuest630 MojoGuest482++
21:21 MojoGuest630 TheCritic: yeees :)
21:21 MojoGuest630 see MojoGuests* nicknames?
21:21 MojoGuest630 all that people connected through http://dev.xantus.org/
21:21 garfield [ Mojo Websocket Demo - ExtJS IRC Client ]
21:21 TheCritic what os/browser Guest?
21:21 MojoGuest666 haha
21:22 MojoGuest630 Win/Chrome
21:22 MojoGuest900 Win/Firefox
21:22 TheCritic I am on os/x safari 5, and it does not work for me...
21:22 TheCritic Ill try chrome
21:22 MojoGuest666 have you flash enabled?
21:22 TheCritic yes
21:22 MojoGuest666 Win/Miranda also works :D
21:22 TheCritic does it use flash?
21:23 MojoGuest666 If your browser does not support WebSockets natively, script loads flash *.swf fallback
21:23 MojoGuest666 which implements WebSocket protocol
21:23 MojoGuest170 joined #mojo
21:23 MojoGuest900 you see? another guest...
21:24 yko strange that safari does not works. try to reload page
21:24 TheCritic safari 5 supports websockets
21:24 TheCritic I did, here is what happens
21:24 TheCritic loads fine
21:24 TheCritic connects fin
21:24 yko :(
21:24 TheCritic I can see your text
21:24 TheCritic i can change my nick
21:25 TheCritic when I do, nothing I type goes through
21:25 yko you mean that you can change your nick with /nick command but if you type simple text and hit enter text not appears in channel window?
21:26 TheCritic http://mibpaste.com/9xUd3B
21:26 garfield [ Mibpaste.bin ]
21:26 TheCritic that is what is in my status window
21:26 MojoGuest477 joined #mojo
21:26 TheCritic right, nothing appears in the chat window
21:26 MojoGuest14 joined #mojo
21:26 TheCritic ok, that 14 is me
21:27 TheCritic I type, and nothing goes through
21:27 xantus_ probably a bug
21:27 xantus_ its a simple client
21:27 xantus_ blame me, I wrote it
21:27 yko in 'status' window you should see something like http://gist.github.com/496366 and then #mojo window should appear
21:27 stephan48 TheCritic: try to enter /connect
21:27 garfield [ gist: 496366 - GitHub ]
21:27 TheCritic yup, just wanted to let someone know :) mac testers are sometimes hard to find
21:28 xantus_ people still use macs? ;)
21:28 TheCritic ha
21:28 MojoGuest477 oh no!
21:28 TheCritic ok
21:28 xantus_ j/k
21:28 yko :D
21:28 xantus_ TheCritic: thanks
21:29 TheCritic everytime I /connect, it seems to reconnect
21:29 MojoGuest544 joined #mojo
21:29 xantus_ yeah
21:29 xantus_ it does
21:30 yko hmm
21:30 xantus_ 9 guests here
21:30 yko i opened 10 windows on http://dev.xantus.org/
21:30 garfield [ Mojo Websocket Demo - ExtJS IRC Client ]
21:30 TheCritic now it gets connected / disconnected
21:30 yko but when i open 11th, i'm disconnected
21:30 yko what i'm doing wrong? :D
21:30 xantus_ yko: at some point you're going to hit a browser socket limit per domain
21:31 TheCritic i think we just got banned :)
21:31 yko nope
21:31 yko i just closed all browser's window i've open
21:31 xantus_ or a limit on # of connections from a single host to irc.perl.org servers
21:31 MojoGuest641 joined #mojo
21:31 MojoGuest668 joined #mojo
21:32 MojoGuest668 everything still works :\
21:32 yko you see?
21:32 MojoGuest693 joined #mojo
21:32 MojoGuest693 test for TC
21:32 MojoGuest693 chrome works on mac
21:32 yko but Safari?
21:33 MojoGuest69 joined #mojo
21:33 MojoGuest69 FF works on mac
21:33 TheCritic so, FF and Chrome on mac works
21:33 TheCritic Safari, no dice
21:35 xantus_ Safari 5?
21:36 dotan joined #mojo
21:36 sri maybe our draft 75 fallback code doesn't work 100%?
21:36 sri safari5 is draft 75
21:37 sri draft 76 browsers seem to work flawless
21:37 xantus_ gasp
21:37 xantus_ apple--
21:37 xantus_ apple--
21:37 sri well, google broke it
21:37 TheCritic yes, safari 5
21:38 sri draft 75 vs 76 is such a mess
21:38 xantus_ they should have went with the draft 76 webkit build
21:38 sri ye
21:38 TheCritic 5.0.1 (6533.17.8)
21:38 xantus_ it'll be interesting to see the ngrep log
21:38 TheCritic anything debug wise I can send you?
21:39 sri version doesn't matter if it's 5, all broken
21:39 TheCritic ah, bleeding edge cuts again
21:39 sri apple only says that they embrace html5
21:39 sri in reality they didn't care
21:40 sri webkit nightly had draft 76 support before the spec was written
21:40 TheCritic hard to put an individuals emotions on a corporation. I bet there are many in Apple who care...
21:41 sri that might be true
21:41 TheCritic anyway, if there is anything I can do to help, let me know...
21:41 sri our draft 75 support is more of a bandaid fix
21:42 TheCritic I am looking at mojo for my next project... I have read what I can find online, is this a good place to ask questions?
21:43 sri this is *the* place
21:43 MojoGuest834 joined #mojo
21:43 sri TheCritic: there are a lot more docs on github
21:43 sri Mojolicious::Guides
21:43 marcus I recommend yahoo answers
21:43 TheCritic ok, Ill read there
21:43 marcus :p
21:43 sri never listen to marcus!
21:44 TheCritic yeah, he dun goofed...
21:44 marcus always listen to marcus
21:44 MojoGuest756 joined #mojo
21:44 marcus <jedi move/>
21:44 sri hmm, 3 hours of starcraft 2 and it's already boring
21:44 marcus good
21:45 sri thats not much fun per euro
21:45 yko play C&C :)
21:46 sri umm...no!
21:46 yko why? it was great
21:46 yko right after dune2
21:46 sri c&c 1 was great back in the days
21:46 sri i loved dune 2!
21:46 yko ye!
21:46 yko and then they made their red alert... sux :(
21:47 yko there was only fun soldiers voices, no more fun
21:47 sri tesla coils!
21:48 yko haha ye
21:48 marcus I wish they could just make starcraft 1 HD
21:48 lbr not that there's much difference
21:48 xantus_ total annihilation!
21:48 xantus_ sup com
21:49 xantus_ sup com 2
21:49 yko supermario... :-[
21:49 lbr cannonfodder!
21:49 sri original worms!
21:49 xantus_ http://www.27bslash6.com/jason.html
21:49 garfield [ Do you have a MacBook Pro? ]
21:50 yko Blues Brothers haha
21:51 TheCritic recommend git or cpan build of mojo?
21:51 sri git
21:51 sri getting close to 1.0, not much breaking anymore (hopefully)
21:53 TheCritic so the bug in the irc-mojo app, that is a javascript issue, not a perl issue right... nothing actually to do with mojo...
21:53 TheCritic not working in safari, I mean
21:53 sri can't say for sure
21:54 TheCritic I am trying to wrap my head around mojo... it is a server side framework, not client side, correct?
21:54 sri safari is using an older version of the websocket spec, we have a bandaid fix in place to support it for now, not sure if the bandaid works 100%
21:54 sri correct
21:54 TheCritic cool
21:55 TheCritic I am familiar with catalyst... and now moving on to the obvious, next thing (tm)
21:55 sri support for the newer spec is quite solid though
21:55 sri mojolicious is very similar
21:55 sri i wrote catalyst too :)
21:57 sri mojolicious is basically the modern version of catalyst
21:57 TheCritic well, so far the mojo install is much easier than early Catalyst :) bravo
22:02 sri btw. anyone having problems with inline static files?
22:02 yko inline?
22:03 sri DATA
22:03 * yko didn't use __DATA__ for months..
22:03 sri @@ foo.txt
22:03 sri thats a static file now
22:03 sri inflate even puts it into public/
22:03 yko wow!
22:03 yko nice
22:04 yko and @@ *.html.ep still renders as template?
22:04 sri right
22:04 yko that's fine
22:04 sri double extension = template, single = static
22:04 yko in several plugins i have attached inline templates to render some content with helpers
22:05 yko if i want to modify them i just inflate them and edit per project. by default it renders from module's __DATA__
22:05 sri ye
22:06 sri thats how it's supposed to be :)
22:06 sri anyone having performance problems on linux?
22:06 yko you wrote linux too?  ;)
22:06 sri like < 100 req/s for a hello world?
22:06 Alias_ joined #mojo
22:06 sri i mean with mojolicious
22:06 yko in daemon mode?
22:06 sri the strage issue on the list
22:07 sri that guy on the list gets just 100 req/s on a huge linux box with 4 cores
22:07 sri (with mojolicious)
22:07 xantus_ he must be doing something odd
22:08 sri using just Mojo::HelloWorld he gets over 2k req/s
22:08 xantus_ the new static stuff is hot
22:09 sri Range support for inline files is quite funny
22:09 sri just reused the code xantus wrote
22:09 yko 97.04 [#/sec] (mean) on slow old machine
22:10 xantus_ sri: you missed the () around $mm in Makefile.PL
22:10 yko gentoo, Intel(R) Pentium(R) 4 CPU 3.00GHz, daemon mode
22:10 xantus_ $mm will just be a bool if the regex matched
22:11 sri oops
22:11 sri wait a minute
22:11 sri do we even need that check anymore? :)
22:12 xantus_ yeah, its for MakeMaker features
22:12 TheCritic http://mibpaste.com/nHAkXV Any Ideas?
22:12 garfield [ Mibpaste.bin ]
22:12 sri damn, 5.10 would be mm version req free
22:13 xantus_ and comparing 6.55_02 as a number fails
22:13 yko TheCritic : mojolicious generate ...
22:13 yko not mojo
22:13 sri mojo is the little sister of mojolicious
22:13 TheCritic ah, and the difference being?
22:13 xantus_ mojo generate app test_app
22:14 sri it's a modern version of LWP kinda :)
22:14 yko i'd say it's mother, no?
22:14 sri hmm
22:14 yko lol, you're right about LWP :D
22:14 ferreira joined #mojo
22:14 xantus_ ahh, you want a full mojolicious app
22:15 sri yko: the main inspiration for Mojo was LWPng, which sadly was never finished
22:15 yko rly? kewl. you build web framework arround http client :)
22:15 TheCritic holy crap
22:15 yko that's nice
22:16 xantus_ you can see the diff between mojolicious generate app test_app
22:16 xantus_ and mojo generate
22:16 TheCritic ml_test is all in one file
22:16 yko mojolicious::lite (lite_app) it's one-file app, yes
22:16 GitHub50 joined #mojo
22:16 GitHub50 mojo: master Sebastian Riedel * 0effb48 (1 files in 1 dirs): fixed makefile - http://bit.ly/c4b3Fs
22:16 GitHub50 left #mojo
22:17 TheCritic add in some cpanp code to install Mojo if it isnt there, and you have the holy grail :)
22:17 yko if you want to have separated controller/templates/etc you should use mojolicious generate app [name]
22:17 yko i use even more widely generator 'mojolicious generate fat_app'
22:18 TheCritic I like this single file for deployment, but separate files for development.... can I switch back an forth?
22:18 yko but it's not available from the box
22:18 yko hmm. it's not very easy
22:18 yko there's 'inflate' command
22:18 TheCritic I saw that
22:19 yko it brakes down templates from __DATA__ into templates folder, ye
22:19 TheCritic thought 'deflate' made sense as well
22:19 yko but then you should rewrite your actions to Mojolicious format. its easy but annoy
22:19 sri the idea is that you start with a single file for rapid prototyping and later switch to multiple files for better maintainance
22:19 yko sri: anyway you should rewrite code
22:20 sri yko: feel free to make smarter commands :)
22:20 yko sure :)
22:20 sri thats why we have a pluggable command system
22:20 sri everybody can join the party
22:20 yko i've already made some and will continue
22:20 * yko is slow actually
22:21 yko i can not catch you and vti and xantus :(
22:21 sri i'm still not comfortable with the idea of actually rewriting code automatically
22:21 ltriant joined #mojo
22:21 yko me too
22:21 TheCritic sri: why?
22:21 yko if you have better idea - just let me know
22:21 sri extracting templates into actual files is different since nothing gets changed
22:22 yko it's potential damage of code
22:22 sri what yko said
22:22 sri it makes sense in an environment like padre, or with perltidy
22:23 yko btw, great idea
22:23 yko if i really make such command, it will run perltidy first :D
22:23 sri but there is so much to go wrong if you're rewriting a mojolicious app, countless variables to consider
22:23 xantus_ oh, question
22:23 yko sri++
22:24 xantus_ @@ /images/image.png;image/png,base64
22:24 sri no need for the mime type
22:25 xantus_ you look it up?
22:25 sri static dispatcher does
22:25 xantus_ interesting
22:25 sri you should know :)
22:26 sri @@ image.png;base64 would be interesting
22:26 sri and not that hard to implement i guess
22:26 xantus_ are you converting from b64 already?
22:27 sri nope
22:28 xantus_ darn
22:28 xantus_ I was about to put favicon.ico in here
22:29 xantus_ hell, you could stuff all of web-socket-js into the __DATA__ section
22:29 xantus_ muahaha
22:30 xantus_ ok, I must add b64 support
22:30 sri :)
22:30 xantus_ @@ /favicon.ico;base64
22:30 sri half finished already ;p
22:31 xantus_ ls
22:31 xantus_ lol, ww
22:33 ashleydev joined #mojo
22:34 ashleydev joined #mojo
22:37 xantus_ ok, I pulled your master over mine, should I rebase?
22:38 stephen joined #mojo
22:38 xantus_ hm, network looks ok
22:41 stephen joined #mojo
22:42 xantus_ whats this custom line ending base64 thing?
22:50 diegok joined #mojo
22:52 DaTa SRI
22:55 GitHub189 joined #mojo
22:55 GitHub189 mojo: master Sebastian Riedel * 19a186e (4 files in 4 dirs): added experimental base64 support for static files in the DATA section - http://bit.ly/9UnVOI
22:55 GitHub189 left #mojo
22:56 sri DATA
22:56 yko Sockets!
22:56 xantus_ hah, that was easy
22:57 xantus_ @@ favicon.ico;base64  works
22:57 sri \o/
22:57 yko yay! that's really great
22:58 * sri needs a shower
23:00 xantus_ need to check inflate
23:03 xantus_ new futurama tonight
23:08 dotan left #mojo
23:18 yko wondering when 'mojo' beat rakudo in github ratings
23:18 xantus_ sri: http://gist.github.com/496694
23:18 garfield [ gist: 496694 - GitHub ]
23:23 xantus_ http://dev.xantus.org:3000/source
23:23 xantus_ the entire demo, 1 file
23:28 Dennis joined #mojo
23:42 sri :)
23:43 xantus_ either that or and $all->{$name} = b( ... } else {
23:43 Dennis hi, wondering if anyone can help me. i'm slightly new to Mojo, and i'm trying to figure out how to handle file uploads in Mojo
23:44 xantus_ http://hawkins.id.au/notes/perl/s​nippets/mojo-and-lwp-file-upload
23:44 garfield [ mojo-and-lwp-file-upload - hawkins.id.au ]
23:44 garfield http://xrl.us/bhkjed
23:45 xantus_ uploads are put into an object
23:45 xantus_ http://search.cpan.org/~kraih/Mojol​icious-0.999926/lib/Mojo/Upload.pm
23:45 garfield [ Mojo::Upload - search.cpan.org ]
23:45 garfield http://xrl.us/bhun2c
23:47 xantus_ so you can use $self->req->upload->move_to( '/path' )
23:47 sri that would make an excelent cookbook recipe
23:48 xantus_ oh, funny he sets $upload to $self->param('upload') but never uses it
23:49 xantus_ of course you need <form method='POST' enctype='multipart/form-data' action='/upload'>
23:49 xantus_ and <input type=file
23:49 xantus_ etc
23:50 Dennis ah okay, thanks. yeah, i had the <form> stuff all set up, just didn't know how to implement the Mojo side of things
23:51 xantus_ I would probably do an isa check on $self->param('upload')
23:53 xantus_ sri: that patch ok?
23:54 sri xantus_: yea, but i'm changing the implementation
23:54 sri it's all going into Mojo::Command (lower level)
23:54 sri so base64 becomes transparent to everything using DATA files
23:54 xantus_ ah
23:55 xantus_ oh, I had jquery.min.js and inflate dropped it into templates, so I renamed it
23:55 xantus_ the double extension thing
23:58 sri i feel stupid now that i see how much easier it is at the lower level...
23:59 sri it's just 2 lines

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