The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-11-30

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

All times shown according to UTC.

Time Nick Message
00:16 woz joined #mojo
00:40 bpmedley joined #mojo
00:54 franzkafka jberger, in Mojo::URLQueue you say return unless $tx->res->is_status_class(200) and $tx->res->headers->content_type
00:54 franzkafka shouldn't the and be && ?
00:55 berov joined #mojo
00:58 Grinnz franzkafka, there's no difference there...
01:00 franzkafka Grinnz, interesting, right.
01:29 AndroUser2 joined #mojo
02:05 woz joined #mojo
02:07 klapperl_ joined #mojo
02:14 disputin joined #mojo
03:02 bpmedley joined #mojo
03:16 noganex_ joined #mojo
03:33 disputin joined #mojo
03:40 disputin joined #mojo
03:40 good_news_everyon joined #mojo
03:40 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/R3CKCw
03:40 good_news_everyon mojo/master 4b6aac3 Sebastian Riedel: test different sections
03:40 good_news_everyon left #mojo
03:41 sri yay... working around another weird bug http://www.cpantesters.org/cpan/report/99004421-6c17-1014-ae9d-4b923ff8c583
03:51 Grinnz sri, input on above?
03:51 Grinnz i think its ready to release but i'd rather not have this warning on some versions...
03:54 woz joined #mojo
03:56 sri then don't support those versions
03:58 jberger Grinnz: especially in new code, there is no reason not to use a recent mojo version
03:59 Grinnz right, i mean more, are those prototypes there for a reason and should i expect them to stay?
04:02 jberger it makes them nullary which I would expect for "functions" that are really constants
04:02 Grinnz also, this json test runs as part of the module install right? how come it's not failing when i installed mojolicious?
04:03 Grinnz with this error: http://ur1.ca/ixn47
04:03 jberger the famous example: whatever  / 25 ; # / ; die "this dies!";
04:04 jberger does that die or not
04:04 Grinnz well the line is: is true + 0, 1, 'right numeric value';
04:04 Grinnz and it barfs with that error unless i change it to true()
04:04 Grinnz same with the false one below it
04:05 jberger have those tests changed recently?
04:05 jberger git blame
04:05 purl git blame is my friend
04:05 Grinnz lol
04:05 Grinnz i dunno about those specific ones, i know there have been some changes to the json tests
04:06 Grinnz but, this is at least the version from 5.67 which i just installed on 5.10.1 and 5.18
04:06 jberger purl botsnack
04:06 purl thanks jberger :)
04:07 jberger with a nullary prototype that should work just fine
04:07 Grinnz ah, so it is related
04:07 jberger unless there is some overload problem with the bool object
04:08 Grinnz no, thats probably because when i first ran it on Mojo, it was Mojo v5.65
04:08 Grinnz which doesn't have the prototypes
04:08 Grinnz and when i ran it on my module, it doesn't have the prototypes either
04:10 jberger in which case the true function slurps in all the remaining arguments, leaving nothing for is
04:11 Grinnz i see
04:11 Grinnz testing it now w/ the prototypes
04:11 jberger Grinnz: have you seen my example before, if not give it a think
04:11 jberger whatever  / 25 ; # / ; die "this dies!";
04:11 jberger does that die?
04:12 Grinnz right, it either interprets it as an argument or an operator
04:12 jberger exactly
04:12 Grinnz and, with the prototypes the test passes
04:12 Grinnz hooray
04:12 jberger as it should, Grinnz++
04:13 jberger purl: karma Grinnz
04:13 purl grinnz has karma of 1
04:13 jberger hey, you're on the board
04:13 Grinnz now just to bump up the mojo prereq :P
04:27 basic6 joined #mojo
04:40 jberger I am le tired
04:40 jberger but I am le tired
04:40 jberger dammit purl!
04:45 Grinnz https://github.com/Grinnz/Mojo-JSON-MaybeXS
04:45 Grinnz think thats a good overview of the caveats? :)
04:46 Eke- joined #mojo
05:43 woz joined #mojo
06:23 davido_lt joined #mojo
06:25 franzkafka So, here's my error: Mojo::Reactor::Poll: Timer c2513e551237c8cbd043ec627d75854f failed: Mojo::UserAgent: Event "timeout" failed: Can't use string ("Inactivity timeout") as a HASH ref while "strict refs" in use at ./get_moby.pl line 117, <$pages> line 1454.
06:25 franzkafka Looks like it is a timeout, even if the default is 0, which I thought would be no timeout at all
06:26 franzkafka This is in regards to URLQueue
06:28 franzkafka Ah ha, 20 seconds
06:31 franzkafka Honestly, I don't understand how to do error checking here. So, say $tx->error was wrong, but the example under success gives me the "Can't use string ("Inactivity timeout") as a HASH ref...
06:31 franzkafka bleh
06:32 davido_ joined #mojo
06:33 franzkafka Awesome, now I'm getting gateway timeout. I've set inactivity_timeout to 500, timeout to 500, and I find absolutely nothing on gateway timeout
06:36 franzkafka I'm so fucking sick of this shit.
06:45 irq joined #mojo
06:57 franzkafka I'm done with these mobygames servers man
07:08 disputin joined #mojo
07:12 disputin1 joined #mojo
07:13 franzkafka I have concluded that the problems have nothing to do with URLQueue. Rather, they are related to the crappy servers mobygames is hosted on.
07:20 dod joined #mojo
07:21 dod joined #mojo
07:32 woz joined #mojo
08:00 Grinnz release uploaded. also, reporting the thing about inf and nan to Cpanel::JSON::XS and schmorp, hopefully that one can be removed from the caveats list eventually.
08:00 franzkafka Good job Grinnz!
08:03 PotatoGim^Home joined #mojo
08:07 PotatoGim^Home Hi
08:08 preaction hello
08:08 PotatoGim^Home preaction: Nice to see you again :)
08:18 Vandal joined #mojo
08:22 marty_ joined #mojo
08:23 jamesaxl joined #mojo
08:39 bpmedley joined #mojo
08:43 dod joined #mojo
08:48 dod joined #mojo
08:52 rem_lex| joined #mojo
09:21 woz joined #mojo
09:36 Eke- joined #mojo
10:02 neyasov joined #mojo
10:14 punter joined #mojo
10:21 basiliscos joined #mojo
10:29 irq joined #mojo
10:41 basiliscos joined #mojo
10:49 sugar joined #mojo
10:53 neyasov joined #mojo
11:02 woz joined #mojo
11:04 basiliscos joined #mojo
11:04 sugar_ joined #mojo
11:08 basiliscos joined #mojo
11:19 denis_boyun joined #mojo
11:30 rem_lex|pivo joined #mojo
11:45 neyasov joined #mojo
11:49 sugar__ joined #mojo
12:28 irq_ joined #mojo
12:37 marty joined #mojo
12:55 denis_boyun joined #mojo
13:12 noganex joined #mojo
13:24 woz joined #mojo
13:44 jamesaxl joined #mojo
13:56 amon joined #mojo
14:06 dotan joined #mojo
14:27 asarch joined #mojo
14:30 disputin joined #mojo
14:34 neyasov joined #mojo
14:59 denis_boyun joined #mojo
15:44 disputin joined #mojo
15:44 lipizzan joined #mojo
15:47 bobkare joined #mojo
16:06 Eke- joined #mojo
16:10 neyasov joined #mojo
16:34 tencendur joined #mojo
16:49 Eke- joined #mojo
17:23 dod joined #mojo
17:29 Akron joined #mojo
18:05 Eke- joined #mojo
18:05 ashimema joined #mojo
18:12 woz joined #mojo
18:24 irq joined #mojo
18:26 ashimema joined #mojo
18:32 basic6_ joined #mojo
19:20 sugar joined #mojo
19:21 zivester joined #mojo
19:33 sugar_ joined #mojo
19:38 * jberger sees tumbleweed roll through the channel
19:40 dparry joined #mojo
19:41 romel :)
19:48 franzkafka morning everyone
19:48 franzkafka or evening, depending on where you are
19:49 franzkafka jberger, your script works beautifully. I tested against my own stuff locally and the script is awesome. It's Moby's servers that suck. I had the sys admin call me last night because I was taking them down.
19:50 jberger franzkafka: haha, nice
19:51 jberger I never thought of it as a load tester :-)
19:51 franzkafka yeah, I think it may have been setting concurrency to 50. I was pretty surprised that it took them down.
19:51 franzkafka yeah, it's a good load tester I guess :D
19:52 jberger not really, most servers can handle that level of concurrency (or should be able to)
19:52 jberger something like wrk is much more agressive
19:53 franzkafka yeah, I tested against a few other things (my own stuff, and linked in (sorry linkedin)) and everything was fine. I don't know what the deal is with MobyGames servers. The CDN was giving a 504 page though.
19:53 jberger franzkafka: you said the other spider you used had no problems, I assume then that that was serial (and maybe rate limited?)
19:53 franzkafka I had some friends in different states test and they reported the same issue, then the sys admin called me.
19:54 franzkafka the other spider (scrapy) was not asynchronous.
19:54 franzkafka Or, I guess IOLoop is not asynchronous, but whatever it is, scrapy was one request, wait, next request.
19:54 jberger I really should change the user agent string, I don't want to get the default banned anywhere
19:54 franzkafka Ah, I always change mine :D
19:55 franzkafka $self->ua->transactor->name('Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0');
19:55 jberger remember, that script was just a SO answer that has grown beyond that over time
19:55 denis_boyun joined #mojo
19:55 franzkafka Well, I definitely think with some hardening that Mojo::URLQueue should go on CPAN.
19:56 franzkafka It's really useful and helped me out immensely with the issues I was having.
19:56 jberger franzkafka: thanks for the kind words :-)
19:56 franzkafka jberger, thanks for all your help all the time man, I appreciate it greatly.
19:58 jberger dotan brought it up at his talk at mojoconf too, that was when I realized that it had made it beyond my limited field of view
20:01 woz joined #mojo
20:16 marty_ joined #mojo
20:36 alnewkirk joined #mojo
20:55 neyasov joined #mojo
20:58 marty_ what?  https://fosdem.org/2015/schedule/event/get_ready_to_party/
20:58 marty_ is that a joke?
20:59 franzkafka A bit off-topic, what is the port called on an iphone 5?
21:04 preaction lightning
21:04 purl lightning is the #1 cause of spinal fracture with attendant spinal cord damage.
21:04 preaction because of their other port: thunderbolt :p
21:10 jberger marty_: that caused a bit of a stir a couple weeks ago
21:11 jberger then again, I was also struck that the stir was only a small one
21:12 jberger the lack of belief in/anticipation of p6 even inside the echo chamber seems to be waning
21:12 jberger oops
21:12 jberger s/lack of//
21:13 jberger (I changed my phrasing, but not my sentence)
21:16 marty jberger: I was not sure if it was real or not.  I wish I would have been around during the discussion.  No matter what happens, will be nice to see what Perl6 does.
21:17 marty jberger:  btw, saw your post about your new job getting you a mac.   I got a 15" mbp retina and really like it even though it is connected to a 27" thunderbolt display 90% of the time.
21:50 woz joined #mojo
21:59 jberger marty: yeah I've been looking at external monitors next
21:59 jberger what is thunderbolt? is it hdmi compatible?
21:59 * jberger doubts it because ... mac
22:00 preaction there are thunderbolt -> hdmi adapters. but my mbp has hdmi port
22:00 preaction thunderbolt is the new "mini displayport"
22:01 preaction it's basically a PCIe bus in an external port (IBM developed it, but only apple has embraced it)
22:02 sugar__ joined #mojo
22:06 marty jberger:  If you can get a 27" thunderbolt display you'll not regret it.  Kinda pricey but very clear.   If portability is not an issue, the 5k imac screen is gorgeous.   I'm waiting for the thunderbolt 5k monitor myself.
22:25 mattastrophe joined #mojo
22:25 bpmedley joined #mojo
22:40 neyasov joined #mojo
22:53 jberger wow $1k
23:12 sugar joined #mojo
23:39 woz joined #mojo
23:52 Averna joined #mojo

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