Camelia, the Perl 6 bug

IRC log for #mojo, 2013-07-24

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

All times shown according to UTC.

Time Nick Message
00:05 dhg joined #mojo
00:07 shmuel joined #mojo
01:56 Meiermann joined #mojo
01:57 d4rkie joined #mojo
02:09 rem_lex joined #mojo
02:41 asarch joined #mojo
02:48 Alpha64 joined #mojo
02:48 Alpha64 hello
03:08 fildon_ joined #mojo
03:21 basic6_ joined #mojo
03:33 preflex_ joined #mojo
03:44 Alpha64 i'm having a hard time understanding how to use other modules and mojolicious at the same time, so before i continue hacking it open i'd like to know what's the suggested route to use subs inside a normal module
04:48 jnbek joined #mojo
04:52 jnbek joined #mojo
04:55 mikegrb I'm using mojo::UserAgent for some scrapping and I'm going to need to ultimately save some images, is there a simple method to have mojo just write the response body of a get to a file?
04:56 mikegrb oh, looks like content->asset->move_to
05:00 dotandimet joined #mojo
05:13 mikegrb for the curious https://github.com/mikegrb/GallowayNow​/blob/master/in-progress/scrape-gtv.pl produces http://thegrebs.com/~michael/gtv_scrape/
05:14 mikegrb local government access tv channel is just a slide show of information most of the day, the slide show is available online in a shitty format, thus, mojolicious to the rescue
05:14 mikegrb http://webus.telvue.com/wi/index.aspx?cid=39 is the original source
05:40 d4rkie joined #mojo
05:51 Britzel joined #mojo
06:17 dpetrov_ joined #mojo
06:19 dod joined #mojo
06:21 shmuel joined #mojo
06:27 dod joined #mojo
06:28 Mike-PerlRecruiter_ joined #mojo
06:47 wk joined #mojo
07:03 denis_boyun joined #mojo
07:07 denis_boyun__ joined #mojo
07:25 batman sri: why do you need so many ips? do you want the irclogger to be part of -all- (>1000) the channels?
07:25 arthas joined #mojo
07:29 trone joined #mojo
07:51 Vandal joined #mojo
08:00 cstamas joined #mojo
08:10 dod joined #mojo
08:12 basiliscos joined #mojo
08:20 diegok sri: it's 1 euro per IP/month on OVH
08:48 jzawodn joined #mojo
08:54 alnewkirk joined #mojo
09:10 jamesw joined #mojo
09:33 russum joined #mojo
09:33 hotsnow joined #mojo
09:49 punter joined #mojo
09:51 maxhq joined #mojo
09:53 russum left #mojo
09:56 aleksey joined #mojo
10:13 fhelmber_ joined #mojo
10:14 rem_lex|pivo joined #mojo
10:19 KindTwo joined #mojo
10:43 wk joined #mojo
10:49 denis_boyun joined #mojo
10:58 hotsnow joined #mojo
10:59 sri diegok: is there a ips per server limit?
11:00 sri batman: yes
11:00 bpmedley joined #mojo
11:00 batman ok
11:14 rem_lex| joined #mojo
11:30 jamesw joined #mojo
11:47 bc547 jast: why would and irc server consider a /64 only? a /64 is a subnet... a /128 is 1 ip
11:50 SmokeMac_ joined #mojo
11:55 jast bc547: /64 is the standard size for subnets, i.e. pretty much anyone has a /64. if you don't treat the whole /64 as essentially one thing, you are most likely giving one person the opportunity to abuse your network 2^64 time. :}
11:55 jast *times
11:57 jast you can't meaningfully subdivide a /64 into anything other than 2^64 individual addresses
11:58 bobkare sure you can, but it's not recommended
11:58 jast that is to say that, given a random user, you'll have to assume that that user can use an arbitrary number of addresses within the same /64
11:58 jast i.e. you can't make any useful assumptions about how a given person's subnet is structured
11:59 bc547 jast: sure... but an entire company can also come from adresses in 1 /64... so treating it as a single person is not so smart
12:00 jast speaking from the network admin PoV, it's much saner to ask that company to register their network structure with you than to default to distinguishing all /128s
12:00 jast because with that default, you can do _nothing_ about abuse
12:10 ver joined #mojo
12:11 bc547 jast: I know I will not do any effort to register our network structure to any external company. I'll just tell our users it's not our fault and they will look for other solutions :-)
12:12 jast side note, if an entire company has a single /64, chances are they're doing something wrong
12:13 bc547 jast: we have a /32... but there are several /64 subnets with up to 1000 users in it.
12:17 jast with 4 billion /64s in a /32, that makes a lot of sense. terrible shortage. :p
12:23 bc547 jast: :-)
12:29 * sri will work on the mojolicious/mango job queue before playing with irc again
12:30 * sri wonders how a pretty dashboard for a modern job queue should look like
12:30 bc547 sri: something with a rainbow and a unicorn?
12:32 dod joined #mojo
12:32 Moataz-E joined #mojo
12:35 sri sidekiq and kue seem to be all the rage
12:36 shmuel joined #mojo
12:37 sri https://github.com/mperham/sidekiq vs http://learnboost.github.io/kue/
12:37 sri bit tempted to try a rest api and single page dashboard app
12:38 diegok sri: it depends on the plan... cheapest is only 3. The one I use is 36 per box...
12:38 sri diegok: ah, just like hetzner then
12:41 diegok there are more expensive boxes allowing till 260 says here -> http://www.ovh.de/dedicated_server/index.xml
12:41 diegok looks like same boxes are cheaper on the spain site :-/
12:42 diegok yes, every time I look at this hetzner has very similar boxes.
12:42 sri 60 euro is not too bad
12:43 diegok sure
12:43 sri but why does spain get better prices!? :O
12:44 diegok does it includes taxes on the german site?
12:44 sri yes
12:44 diegok ok, then .de prices are better :-/
12:44 sri \o/
12:44 diegok why germans get better prices !?
12:44 sri :D
12:45 sri it's the law around here that prices have to include taxes
12:45 diegok sweet!
12:46 jast unless the site specifically targets business customers
12:47 sri right, but then you need to be a registered business to be able to buy
12:47 diegok how many ips/cores do you need?
12:47 sri 36 is a good number for starters :)
12:47 sri *if* i decide to actually try it
12:47 diegok :)
12:48 sri many networks have a connection limit of 5 per ip and a channel limit per connection of 20
12:48 sri so that's 100 channels per ip
12:48 sri 3600 channels would be good coverage
12:48 diegok per network
12:49 sri i suppose 36 ips could cover a network like freenode completely, where the channel limit is 120
12:51 Zx3 Had you considered that such logger would be in violation of freenodes policy? If I understand what you want.
12:52 sri nope, i've not considered policies yet
12:54 sri but considering that many channels are already logged, i somehow doubt that would be a problem
12:58 Zx3 ask in #freenode but I think they would not like your idea
12:59 hrupp_ joined #mojo
13:00 bc547 sri: why do you want to log it all?
13:00 sri i don't, i just want to be *able to*
13:01 sri the bots will always have to be invited and stay away if they're kicked
13:01 Zx3 ah then with channel owners permission shuld be ok
13:04 sri of course, the fact that a few individuals can lock you out of all the major networks is something to be worried about
13:04 sri worse than depending on a google api
13:07 sri i wouldn't be surprised at all if irccloud got locked out of freenode because of a feud in the not so distant future
13:17 d4rkie joined #mojo
13:30 libsysguy joined #mojo
13:32 russum1 joined #mojo
13:39 russum joined #mojo
13:39 libsysguy does anybody know how difficult it would be to get pocketio working with mojo websockets ?
13:51 jast is there a smart way to force some kind of authentication on all routes *except* a select few?
13:52 btyler joined #mojo
13:52 jast e.g. everything but /login
13:53 jast I tried doing that with an auth bridge on / and a separate route for /login, but I think the router got confused
13:55 depesz jast: works for me. show us how you did the routing
13:55 jast I'll try and recreate it
13:59 basiliscos joined #mojo
13:59 jast actually, I don't even know how to express it properly. suppose I want to have a bridge on / that does auth, and I want requests to / to redirect to a login form if not authed, and to a dashboard otherwise
13:59 russum left #mojo
14:01 jast so the bridge has ...->to('login#check'), but then how do I do the redirect at / (which needs the outcome of the bridge code, so probably has to go on the bridge object) without also redirecting for all other requests covered by the bridge
14:02 jast without doing my own parsing on top of the routing code, that is... seems like something I should avoid :)
14:05 sri sounds trivial, you must be misunderstanding something
14:05 jast quite possible :)
14:06 sri maybe read the nested route and bridge sections in the guides again
14:06 sri even the growing guide covers bridges now
14:06 jast the stuff in the routing guide is what I just read again
14:07 sri in fact, the growing guide uses a bridge to redirect if auth fails
14:07 libsysguy joined #mojo
14:07 jast I want to redirect if auth succeeds, too, but only at /, not at /foo
14:07 libsysguy left #mojo
14:09 jast ... and I just figured it out :)
14:10 jast thanks ;)
14:15 batman offtopic: anyone who knows of a perl alternative to https://pypi.python.org/pypi/Shapely ?
14:18 Vandal I'm trying to do Non-blocking parallel requests like in http://mojolicio.us/perldoc/Mojo/UserAgent but in delay(sub { I'm filling up array to make new cycle to redo requests but it didnt working again, can you say why?
14:27 Vandal any one?
14:27 Vandal somebody?
14:31 gryphon joined #mojo
14:37 batman anyone who can explain to me why cors is a bad idea?
14:47 sh4 joined #mojo
15:10 Britzel joined #mojo
15:25 sri anyone know if a job queue dashboard should be a single page app?
15:28 marty everything should be a single page app.   :P
15:28 marty multi-page is so 2012
15:29 sri marty: i think you were supposed to ask a question starting with "anybody"...
15:30 sri umm... anyone
15:30 * sri might be misunderstanding the game though :/
15:32 sri my brain might also be melting from the unusual heat around here
15:35 marty sri: how hot?
15:35 sri 35C
15:37 sri supposed to reach 40C during the weekend :(
15:37 btyler sri: have you seen resque's interface? standard multi page with ajax to upload worker status. looks nice, easy enough to use (maybe a little too easy to accidentally requeue a whole pile of failed jobs)
15:37 btyler to update worker status*
15:38 sri btyler: yea, resque is the most ugly one i've seen ;p
15:38 marty That's getting up there.
15:38 btyler heh, ok, exposing my low aesthetic standards I guess :P
15:38 * marty is watching a webinar on angular.js, backbone and kendo.  hmmmmm
15:39 sri visually i like the kue single page app... here's a screencast http://www.screenr.com/oyNs
15:40 sri funny how the dashboard is the hardest part of building a job queue, i know how to do everything else already :)
15:40 btyler oh nice, I like that it can show you stdout from the process
15:41 sri not stdout, it's a log
15:42 btyler ah right. spoke about 20 seconds too soon
15:46 sri but in the end, i suppose i would rather like to watch a dashboard like the sidekiq one here https://github.com/mperham/sidekiq
15:52 delias joined #mojo
16:01 basiliscos joined #mojo
16:04 sri marcus, batman: btw. i've given up on my irc client, gonna use yours if i continue to do something with irc
16:10 batman sri: sweet! please fork it and make it better :)
16:12 Britzel_ joined #mojo
16:27 avenj batman: whereabouts? I have an IRC fetish
16:47 gtodd so if I put mojo behind apache reverse proxy is it seems to just seamlessly work out of the box
16:48 gtodd errm it *DOES* just seamlessly work out of the box
16:48 gtodd so what could go wrong ? :-)
16:50 Mike-PerlRecruiter_ joined #mojo
16:52 sri gtodd: now you jinxed it!
16:59 sri IT'S RAINING! FINALLY! \o/
17:04 Mike-PerlRecruiter_ joined #mojo
17:12 gtodd hmm maybe if the apache instance is handling sessions and all that
17:14 gtodd but since that's sort of for apache to figure out and hand off to mojo if apache does it right then mojo will just lap milk from the bowl like a cat
17:14 batman avenj: https://github.com/jhthorsen/mojo-irc
17:22 Mike-PerlRecruiter_ joined #mojo
17:23 russum1 joined #mojo
17:37 sri hahaha... a hello world in rails requires 29557 objects
17:59 Vandal Ù_ù
17:59 Vandal O_o
18:07 marty The world is a big place.  Maybe rails goal is to have a personal object for each of us.  I feel special.
18:07 Vandal :)
18:10 dotandimet joined #mojo
18:29 Mike-PerlRecruiter_ joined #mojo
18:31 bluescreen joined #mojo
18:46 denis_boyun joined #mojo
19:05 al joined #mojo
19:17 nic joined #mojo
19:24 rem_lex joined #mojo
19:45 Alpha64 joined #mojo
20:02 dotandimet joined #mojo
20:21 rem_lex joined #mojo
20:27 dotandimet joined #mojo
20:31 sri oh, i was wrong
20:32 sri rails doesn't use 29557 objects for a hello world... that's only the number of Array objects! :D
20:37 PerlJam sri: how did you come by this number exactly?
20:37 tm joined #mojo
20:38 sri http://words.steveklabnik.com/bew​are-subclassing-ruby-core-classes
20:39 PerlJam wow
20:41 Alpha64 that sounds really bad
20:42 sri it is
20:42 PerlJam Though, I wonder what the equivalent would be for any of the perl frameworks (not just mojo)
20:43 * sri didn't mean the number, but the subject of the blog post :)
20:43 Alpha64 yeah i meant that too
20:43 wk joined #mojo
20:43 Alpha64 if you have to beware about subclassing
20:43 tm left #mojo
20:43 Alpha64 something is really really wrong
20:43 PerlJam Well isn't it common knowledge that Ruby is crazy?  ;)
20:44 rem_lex joined #mojo
20:45 sri what't the point of everything being objects if you can't subclass core data types
20:45 gryphon joined #mojo
20:48 Alpha64 being hip
20:54 marcus_ sri: Clearly you should monkey patch them instead.
20:54 sri indubitably
21:05 dotan joined #mojo
21:09 rem_lex|pivo joined #mojo
21:09 Alpha64 joined #mojo
21:14 Alpha64 joined #mojo
21:35 lukep joined #mojo
21:52 rem_lex joined #mojo
21:54 bowtie_ joined #mojo
22:22 sri so much hype around angular.js
22:24 * sri puts d3.js on his list of things to learn
22:34 marcus_ Sri: seen http://mjtsai.com/blog/2013/07/24/ja​vascript-object-notation-json-patch/ ?
22:35 sri marcus_: what do you mean specifically?
22:50 jberger_ joined #mojo
22:51 jberger_ Is there an example of using around_action to pass arguments to actions?
22:51 sri yes
22:52 jberger_ Does it involve calling the action manually rather than dispatching to $next
22:52 sri yes
22:52 jberger_ Assumed so
22:53 sri think the example passed the route name or so
22:53 jberger_ I will look through the guides when I have a better connection
22:54 sri heh, wanted to link to it... but figured you'd be faster than me anyway ;p
22:54 jberger_ Chicago pm is doing lightning talks tomorrow
22:54 sri http://mojolicio.us/perldoc/Mo​jolicious/Guides/Routing#Hooks # last one
22:54 jberger_ I'm on the cell on the train
22:54 jberger_ Thanks
22:56 jberger_ I might use this to pull out a recurring stash value
22:56 jberger_ Makes it a little cuter
22:59 jberger_ Then again that might be too magical
23:02 jberger_ The doc site looks great on the phone actually
23:03 sri android + chrome?
23:09 jberger_ Yep
23:42 SmokeMachine joined #mojo

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