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

IRC log for #mojo, 2014-10-27

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

All times shown according to UTC.

Time Nick Message
00:49 * jberger is working on something rather crazy
00:49 jberger https://github.com/jberger/Module-ResourcesFromPod/blob/master/lib/Module/ResourcesFromPod.pm
00:49 jberger pod-driven distribution building :-)
00:49 jberger pod + cpanfile
01:13 laouji joined #mojo
01:18 nicomen is there a good howto on uploading stuff to CPAN anywhere?
01:19 jberger nicomen: that's a pretty broad question. What are you trying to do?
01:20 jberger for the most part it is simply (1) build tarball (2) upload
01:21 jberger but that is assuming you already have your authoring tool working so you can (1)
01:21 jberger you are welcome to take any of my Build.PL files and adapt
01:22 jberger this one perhaps: https://github.com/jberger/Mojo-FriendFeed/blob/master/Build.PL
01:31 neyasov joined #mojo
02:04 doublelel joined #mojo
02:31 neyasov joined #mojo
02:32 doublelel joined #mojo
02:56 klapperl_ joined #mojo
03:16 sujithm joined #mojo
03:17 noganex joined #mojo
03:19 Eke- joined #mojo
03:25 sujithm joined #mojo
03:49 bpmedley nicomen: You can try $ h2xs -A -X -n Module-Test-Name
03:50 bpmedley nicomen: I believe that will give you enough to get started and be able to do a “$ make dist”
03:50 marmez joined #mojo
03:51 bpmedley Sorry, that’s “$ h2xs -A -X -n Module::Test::Name”
03:51 KCL joined #mojo
03:59 jberger bpmedley: really? ewwwwwww
04:01 jberger https://metacpan.org/pod/Module::Starter
04:02 jberger or even :gasp: dist zilla
04:02 neyasov joined #mojo
04:18 doublelel joined #mojo
04:33 irq joined #mojo
05:04 neyasov joined #mojo
05:10 camelo joined #mojo
05:10 camelo hi
05:22 sujithm joined #mojo
05:26 sujithm joined #mojo
05:33 laouji joined #mojo
06:03 doublelel joined #mojo
06:14 ramo joined #mojo
06:57 Eke- joined #mojo
07:03 davido__ joined #mojo
07:04 Vandal joined #mojo
07:50 rawler joined #mojo
07:50 basiliscos joined #mojo
07:50 ver joined #mojo
07:55 ramo joined #mojo
07:59 dod joined #mojo
08:00 marcus joined #mojo
08:08 amon joined #mojo
08:24 trone joined #mojo
08:27 vytas joined #mojo
08:29 Dandre joined #mojo
08:35 dp_ joined #mojo
08:57 arthas joined #mojo
08:58 Shaeto joined #mojo
08:59 Dandre joined #mojo
09:01 rawler joined #mojo
09:05 doublelel joined #mojo
09:06 bvierra_ joined #mojo
09:07 woz joined #mojo
09:08 noganex_ joined #mojo
09:10 dabudabu joined #mojo
09:11 arthas joined #mojo
09:11 jeff joined #mojo
09:12 alnewkirk joined #mojo
09:13 ura joined #mojo
09:26 tudorconstantin joined #mojo
09:43 Shaeto joined #mojo
09:44 d4rkie joined #mojo
09:49 lb joined #mojo
09:49 avenj joined #mojo
09:49 Andreas2 joined #mojo
09:51 rakshasa joined #mojo
09:52 ivan joined #mojo
09:53 amon joined #mojo
09:53 dsterne joined #mojo
09:53 throughnothing joined #mojo
09:54 Dandre joined #mojo
09:57 omega joined #mojo
09:58 tudorconstantin joined #mojo
09:59 mtj- joined #mojo
10:15 sujithm_ joined #mojo
10:19 sujithm joined #mojo
10:30 D4RK-PH0ENiX joined #mojo
10:43 D4RK-PH0ENiX joined #mojo
10:51 Jonis do helpers not support subroutine signatures?
10:52 Jonis using lite
11:01 vytas Jonis, not yet
11:03 klapperl joined #mojo
11:26 sri subroutine signatures work everywhere
11:51 vytas my bad then
11:55 Shaeto joined #mojo
12:12 Kripton joined #mojo
12:17 GillesM joined #mojo
12:24 laouji joined #mojo
12:28 denis_boyun joined #mojo
12:41 ignacio_ joined #mojo
12:42 Shaeto joined #mojo
12:48 lipizzan joined #mojo
12:58 fhelmber_ joined #mojo
13:02 tbushell joined #mojo
13:03 laouji joined #mojo
13:30 sri jberger: prefork workers get restarted every now and then https://github.com/kraih/mojo/issues/690
13:30 sri controlled by http://mojolicio.us/perldoc/Mojo/Server/Prefork#accepts
13:30 marty joined #mojo
13:32 marty joined #mojo
13:36 neilhwatson joined #mojo
13:36 tbushell left #mojo
13:39 ignacio_ joined #mojo
13:43 markov left #mojo
14:36 bvierra joined #mojo
14:54 neyasov joined #mojo
15:22 bwf joined #mojo
15:33 sh4 joined #mojo
15:51 KCL_ joined #mojo
15:56 sri i guess starting a week with silence is better than starting with a security issue like last week ;p
15:57 klapperl_ joined #mojo
16:01 tempire shhhh.
16:01 rem_lex joined #mojo
16:05 arthas joined #mojo
16:05 dotan I'm contemplating submitting a lightning talk about Mojolicious to Rails Israel.
16:07 dotan What's the Mojolicious feature to talk about in 5 minutes to a crowd of ruby on rails developers?
16:08 sri the things they can't do easily i suppose
16:08 sri like websockets
16:09 dotan I like Mojo::Test (client+json+dom), but surely they've got something like it.
16:09 sri the current frontpage example was specifically designed to be super hard to replicate with any other framework
16:09 sri yes, they do
16:10 dotan websocket example is cool.
16:11 sri although, ruby doesn't really have a pretty http user agent
16:12 dotan So, websockets + http client making async requests.
16:12 sri so showing off the user agent with all the form/dom/json and blocking/non-blocking features might work too
16:13 sri mixing blocking/non-blocking is also a concept pretty unique to mojolicious
16:14 dotan What's a good example of mixing blocking/non-blocking, aside from being an inconsistent programmer :-P ? Talking to a database?
16:15 sri it's easier to start blocking and later optimize stuff you've profiled to be a bottleneck with non-blocking
16:16 sri another unique feature, growing from lite to full apps
16:17 sri (there is really no shortage of unique features in mojolicious ;p)
16:17 sri it's funny how many folks in the perl community don't get that yet... so many consider mojolicious just another sinatra clone
16:18 sri like it's just a matter of taste... but of course only a small minority even understands concepts like non-blocking i/o
16:19 dotan non-blocking is hard!
16:19 neilhwatson Fast prototyping from lite to full is a great help. It is what attracted me to mojo.
16:19 sri lets go shopping!
16:19 dotan to think about.
16:20 dotan I love lite for testing plugins.
16:29 doublelel joined #mojo
16:36 nicomen I never got how to move from lite to full, for me they are very separate
16:44 hernan win 17
16:49 sri nicomen: http://mojolicio.us/perldoc/Mojolicious/Guides/Growing
16:51 neilhwatson joined #mojo
16:53 disputin joined #mojo
16:54 ua joined #mojo
17:29 rawler joined #mojo
17:34 disputin joined #mojo
18:00 dotan mojo generate app creates a MyApp/Controller directory - was it always like this, or is this new (5.x)? Preparing for having a MyApp/Model directory?
18:05 sri nope, that's new, the growing guide actually already has a MyApp/Model directory
18:09 franzkafka Hey, if I wanted to check if there was a div named roopoo anywhere in the page, what's the best way to accomplish this?
18:09 franzkafka Using Mojo::UserAgent
18:14 nicomen so, does cpan like, don't want contributions? I managed uploading a module, but I have no clue wether I should register a namespace, and why I need to fill in a lot of shit for that.
18:15 nicomen franzkafka: $ mojo get http://foo.com div#roopoo
18:15 nicomen franzkafka: $ mojo get http://foo.com 'div#roopoo'
18:16 Trelane franzkafka: franzkafka: $ua->get($url)->res->dom->at('div#roopoo')
18:16 Trelane hmm, thank you autocomplete
18:16 mst Trelane: Trelane Trelane
18:17 Trelane I'm not beatlejuice
18:17 mst (fthagn)
18:17 nicomen $VAR1 = { mst => $VAR1 };
18:18 sri i was about to tell nicomen to look at perlnewmod... and then i saw this bullshit at the end... "Announce to the modules list"... http://perldoc.perl.org/perlnewmod.html#Step-by-step%3a-Distributing-your-module
18:19 nicomen there is a blog entry everyone links to regardig github->cpan also, but that site is down...
18:19 franzkafka nicomen, thank you, it was my bad... USPS was blocking my request because UserAgent string, and so I was looking for something in nothing.
18:19 franzkafka Odd that $tx->success showed the request as a success
18:20 mst did they send you a 200 response?
18:20 nicomen try MOJO_USERAGENT_DEBUG=1 to see what the traffic is, maybe they send you something blank back...
18:20 mst because that would count as a success
18:21 sri nicomen: to sum it up... STAY AWAY FROM ALL THAT MODULES LIST BULLSHIT! just upload your module and be happy
18:25 nicomen ok, how long does it take to see it on cpan normally then?
18:33 Akron joined #mojo
18:33 franzkafka Given this: http://pastebin.com/nuhZttwn
18:34 nicomen https://pause.perl.org/pause/authenquery?ACTION=edit_cred <-- this even resets the stuff I put in
18:34 franzkafka Is there any way to extract the preferred city, and acceptable cities, but ignore the ones under "rather than the following"?
18:34 franzkafka The god damn USPS does this crap on purpose, I know it
18:35 nicomen I knew this was antiquated ACT-ish, but not _this_ bad
18:35 franzkafka mst, a 320 response
18:35 nicomen franzkafka: yes there is a way
18:35 sujithm joined #mojo
18:35 franzkafka sorry, 301 I meant
18:36 mst franzkafka: right, which is a success
18:36 franzkafka nicomen, ok awesome, just making sure there is a way... now to figure it out.
18:37 sri nicomen: you don't need to deal with PAUSE at all once you have your username and password http://mojolicio.us/perldoc/Mojolicious/Command/cpanify#SYNOPSIS
18:37 nicomen franzkafka: you can try finding the <u> tags based on text content, then the parent h* tag, then loop through siblings until you hit a h* tag
18:37 sri there's also more sophisticated tools
18:38 disputin1 joined #mojo
18:38 nicomen sri: yeah I actually used "cpan-upload"
18:38 nicomen forgot about cpanify
18:38 disputin1 joined #mojo
18:43 nicomen well, at least I see the file in the ftp...
18:47 nicomen funny how all the various index files are slightly out of sync
18:47 nicomen ftp://ftp.cpan.org/pub/CPAN/modules/ and ftp://ftp.cpan.org/pub/CPAN/
18:48 nicomen or how RECENT a text version was made 11 hrs ago, while the json version was made 15 minutes ago...
18:59 dod joined #mojo
19:00 Eke- joined #mojo
19:11 denis_boyun joined #mojo
19:15 vytas joined #mojo
19:45 phillipadsmith joined #mojo
19:54 franzkafka As per the output from USPS earlier, this is how I solved it: http://pastebin.com/g85DeScL
19:54 franzkafka I mean, it works, but it's ugly
19:54 sri RUN!
19:55 franzkafka haha
19:55 sri around here you don't want to get caught with a regex for scraping html
19:55 franzkafka well, thank God this is just a temporary script I am going to use one time and throw away
19:55 franzkafka sri, oh yeah, that does make sense
19:56 franzkafka In this situation I know exactly what I am getting from the page, though I do imagine there is a better way to do this.
19:56 franzkafka Actually, I am throwing this away, but I am going to work on it a bit and find a more better way of doing it
19:59 sri this could use some attention, i'm sure there are good reasons against updating the mtime on read access https://github.com/kraih/mojo/pull/696#issuecomment-60654928
20:06 mst sri: atime is usually disabled for performance reasons
20:06 mst sri: setting mtime is both wrong, and probably incurs similar performance issues at scale
20:13 sri ah
20:15 sri i imagine with a copy on write file system it would be pretty terrible too... docker deployment and all
20:22 chansen joined #mojo
20:22 phillipadsmith joined #mojo
20:23 ceej__ joined #mojo
20:27 mst sri: right
20:28 mst sri: basically, "leave the mtime the fuck alone" is the only correct answer here
20:37 lb more generally, understand the fuck out of decades-old semantic before you mess with them :)
20:38 lb (that being said, most fs-specific semantics are probably due a disruption after ssd's)
21:02 rawler joined #mojo
21:18 marty omfg, I read that pastebin and now I'm blind
21:39 fhelmber_ joined #mojo
21:50 disputin joined #mojo
21:51 disputin1 joined #mojo
21:55 ua1 joined #mojo
22:15 hernan joined #mojo
22:22 vytas joined #mojo
22:41 sri nicomen: i guarantee Test::Mojo::Plack is going to break soon
22:49 ua joined #mojo
22:57 bpmedley dotan: Did you get your lightning talk squared away?
23:04 ua joined #mojo
23:10 nicomen sri: the _request_ok hack?
23:10 sri yes
23:11 nicomen yeah, it's a start. It also broke when I upgraded from 4.x to 5.x - I want to use a transaction mpre directly
23:11 nicomen *more
23:12 nicomen but it feels great to be able to test lumpy catalyst apps with it for now :-)
23:13 nicomen and you should see my Mojo::UserAgent subclass (with caching, failover and local file support) npw that is living dangerous :-)
23:14 sri :S
23:15 nicomen Anyway, finally lost my CPAN virginity :-D
23:16 nicomen Does cpanify help out with keeping stuff like Changes/versions/manifest in sync?
23:18 D4RK-PH0ENiX joined #mojo
23:19 d4rkie joined #mojo
23:21 disputin joined #mojo

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