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

IRC log for #mojo, 2014-10-31

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

All times shown according to UTC.

Time Nick Message
00:00 jberger I was a little confused about why you were asking that question in #mojo, but I said what the hell and answered :-D
00:00 jnbek :D
00:00 bpmedley There was some ambiguity, sorry about that.. :)
00:01 bpmedley The end goal is to run some bash scripts for unit testing and seeing the output as it happens.
00:01 jberger yeah, I get it
00:01 jberger can you just watch the fd for STDOUT and STDERR?
00:01 sri didn't someone write a module for that?
00:02 jberger sri: seems like someone should if it hasn't been done already
00:02 sri hmm, this looks ancient https://metacpan.org/pod/MojoX::Run
00:03 bpmedley jberger: How would I pass $c to the forked process?  Wouldn’t I need to fork/exec/open2/open3 so that the request doesn’t block?
00:04 sri this maybe https://metacpan.org/pod/Mojo::IOLoop::ReadWriteFork
00:04 jberger sri++ I was just going to suggest that if bpmedley doesn't want to block
00:04 sri dunno if that's one of batman's good modules
00:04 jberger I guess it would have to not block
00:04 bpmedley Moment
00:05 d4rkie joined #mojo
00:05 sri hmm, testers results are not great
00:06 * tempire are there any active perl podcasts?
00:06 * jberger does tempire ask questions of himself
00:07 * tempire assumes everyone is listening to his thoughts
00:08 * tempire has fully torrified his web scrapers
00:08 tempire Block that, you goobers.
00:09 sri calm down there dread pirate roberts
00:09 tempire seriously, are there any active perl podcasts?
00:10 tempire I wonder if it's worth it to consider a mojolicious-oriented podcast
00:12 bpmedley http://pastie.org/9686763 <— Does that look right?
00:13 sri i only know of miyagawa doing tech podcasts
00:14 tempire Actually, a mojolicious news feed would probably be  more useful
00:15 sri i always wanted to build a planet mojo as a minion example app :)
00:16 sri then the mango thing happened...
00:16 tempire a blog aggregator?
00:16 sri ye
00:19 bpmedley https://www.google.com/blogsearch <— This works pretty well, with a date restriction; however, that’s not what your talking about.. :)
00:19 * sri needs to write more open source apps in general
00:19 tempire I've fully converted to Mojo::Pg
00:19 tempire Trying out the json data type right now
00:20 sri new json type in 9.4 will be better
00:20 tempire big change, or subtle?
00:20 sri huge
00:21 sri now json is stored as a text field and reparesed for everything, jsonb in 9.4 stores it in binary form
00:22 Xyem That moment when 'em' is wide enough on Windows, but not wide enough on Linux..
00:22 Xyem sri: If you had any hand in Mojolicious, I fully support you writing more OSS stuff
00:22 tempire hmm
00:22 tempire maybe I'll just wait
00:22 tempire doesn't look like it will be much longer before release of 9.4
00:22 sri any day now
00:22 tempire sri has done some mojolicious work here and there
00:23 sri they had to delay it for jsonb optimizations actually
00:23 tempire he's german, so he mostly drinks beer, and that doesn't leave much time for programming.
00:24 bpmedley http://pastie.org/9686792 <— This is my current code; it works; however, it doesn’t give me happy feelings.
00:24 sri *hic*
00:29 Averna joined #mojo
00:29 zivester joined #mojo
00:31 sri tempire: remember to give feedback if you want a stable Mojo::Pg 1.0 this year
00:31 sri especially if you're using some of the more experimental parts, like notifications
00:33 tempire wait
00:33 tempire What are notifications?
00:34 sri https://metacpan.org/pod/Mojo::Pg::Database#notify
00:34 sri https://metacpan.org/pod/Mojo::Pg::Database#listen
00:34 sri https://metacpan.org/pod/Mojo::Pg::Database#notification
00:35 sri pub/sub!
00:38 fhelmber_ joined #mojo
00:39 sri so many things i'd like to hack on, but so little free time :(
00:40 sri more apps, http2 support, serious attempt at a perl6 port...
00:46 sri (damn jnthn and his motivating perl6 talks)
00:46 tempire hmm
00:48 tempire psql doesn't like the notify command with a payload
00:49 tempire oh, it just doesn't like double quotes
00:57 tempire I can't get postgres to listen to notifications sent from another psql instance
01:00 jberger bpmedley: http://pastie.org/9686845
01:00 jberger first use for open mode -| I have found so far :D
01:05 bpmedley jberger: Hot damn.. that’s awesome, very succinct.
01:17 jberger bpmedley: slightly cleaned up: http://pastie.org/9686857
01:18 bpmedley Thank you.
01:20 tempire oh sad
01:21 tempire signatures don't work on anonymous subs
01:21 * tempire cries
01:21 jberger tempire: ? yes they do
01:22 jberger there are two in my example I just posted
01:22 * jberger wipes tempire's tears
01:23 tempire oh
01:23 tempire excellent.
01:29 jberger bpmedley and finally, one that preserves whitespace properly: http://pastie.org/9686868
01:31 bpmedley Cool; I had not thought to use websockets for that.
01:32 jberger <3 websockets
01:34 jberger hahahaha, I forgot to remove the comments from the front page example
01:35 jberger ok, moving to gist: https://gist.github.com/jberger/93b3a192fc68a0d7ca14
02:04 hlin joined #mojo
02:11 * sri wonders if the mojolicious cloud could be turned into a pixel art pirate skull for the mojoconf 2015 t-shirts
02:11 doublelel joined #mojo
02:12 sri (some sort of rebel theme seems appropriate)
02:34 * jberger likes a rebel theme
02:35 klapperl_ joined #mojo
02:39 davido_laptop joined #mojo
03:11 noganex_ joined #mojo
03:16 jberger I can't figure out how to use IO::Handle directly to make a -| IO object
03:22 davido__ joined #mojo
03:34 bpmedley It doesn’t seem to be supported by IO::Handle::_open_mode_string which is called by IO::Handle::fdopen
03:36 sujithm joined #mojo
03:39 jberger also: http://perldoc.perl.org/perlipc.html#Using-open()-for-IPC
03:40 bpmedley open is quite versatile
03:50 Eke- joined #mojo
04:02 hoppie joined #mojo
04:03 hoppie hello
04:04 hoppie Can Mojolicious be used to do something similar to this slide (using AnyEvent::HTTP)?
04:04 hoppie http://www.openfusion.net/talks/pwp/#12
04:05 sri http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Concurrent-blocking-requests
04:05 hoppie Will try to create an example doing the same using Mojolicious for the upcoming MCE 1.520 release. It will come with a MCE::Demos pod doc.
04:05 hoppie perl doc .
04:06 hoppie thank you sri
04:07 hoppie The reason is that I do not want to leave out Mojolicious in MCE::Demos. Will document something using AnyEvent and also Mojolicious in MCE::Demos.
04:07 hoppie MCE : : Demos
04:09 hoppie sri, that URL is wonderful. thanks again. The MCE module is completed for Perl (for the 1.5 branch). Just wanted to polish it with a demos pod doc.
04:11 good_news_everyon joined #mojo
04:11 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/WJP-9A
04:11 good_news_everyon mojo/master f323521 Sebastian Riedel: no need to use the yada yada operator in the cookbook
04:11 good_news_everyon left #mojo
04:15 bpmedley jberger: http://pastie.org/9687010  <— IPC::Open2 example
04:18 basic6 joined #mojo
04:22 jberger bpmedley++
04:22 jberger hoppie: I'll be interested to see the example!
04:33 hoppie yes. will see how it goes.
04:35 irq joined #mojo
05:20 D4RK-PH0ENiX joined #mojo
05:23 franzkafka Question: If the HTML you're dealing with is pretty uniform across all pages, is it still frowned upon to deal with the HTML using regexes?
05:24 franzkafka I understand that HTML should not be parsed with a regex, but I don't see it as a "no, no never!" type of thing.
05:27 sujithm joined #mojo
05:28 sujithm joined #mojo
05:45 bpmedley franzkafka: http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Web-scraping <— Does that look easier than using Regexs?
06:31 franzkafka bpmedley, I've been using it, and while it is easier in a lot of instances, I have stumbled upon some instances where a regex was easier.
06:31 franzkafka However, I attribute that to my lack of knowledge.
06:32 bpmedley I’m not sure there would be much frowing with regexes; however, what I’ve noticed is that when Mojo::DOM works, and it works a lot of places, it gives people warm fuzzies.
06:39 fhelmber_ joined #mojo
06:56 irq joined #mojo
07:00 Eke- joined #mojo
07:11 jamesaxl joined #mojo
07:22 Vandal joined #mojo
07:23 chankey joined #mojo
07:27 amon joined #mojo
07:35 dod joined #mojo
07:48 dotandimet joined #mojo
07:51 dod joined #mojo
07:57 basiliscos joined #mojo
08:05 doublelel joined #mojo
08:06 rawler joined #mojo
08:14 chankey joined #mojo
08:26 denis_boyun joined #mojo
08:35 trone joined #mojo
08:42 sujithm_ joined #mojo
08:43 sujithm_ joined #mojo
08:45 tgt joined #mojo
08:52 neyasov joined #mojo
08:53 neyasov_ joined #mojo
09:04 dotandimet joined #mojo
09:05 d4rkie_ joined #mojo
09:33 Andy2 joined #mojo
09:36 marcus joined #mojo
09:41 fhelmber_ joined #mojo
09:45 davido___ joined #mojo
09:46 irq joined #mojo
09:51 Lee joined #mojo
10:18 bpmedley_ joined #mojo
10:38 marty joined #mojo
10:46 marty joined #mojo
10:51 bpmedley joined #mojo
11:01 irq_ joined #mojo
11:04 dotandimet joined #mojo
11:18 D4RK-PH0ENiX joined #mojo
11:21 d4rkie_ joined #mojo
11:33 dotandimet joined #mojo
11:42 dp_ joined #mojo
11:43 neilhwatson joined #mojo
12:14 bc547 joined #mojo
12:26 neyasov joined #mojo
12:29 ignacio_ joined #mojo
13:11 D4RK-PH0ENiX joined #mojo
13:18 jamesaxl joined #mojo
13:19 zivester joined #mojo
13:30 doby joined #mojo
13:31 D4RK-PH0ENiX joined #mojo
13:34 doublelel joined #mojo
13:35 Kripton joined #mojo
13:43 hernan mojo iz teh bombaaaa!
13:50 risugg joined #mojo
14:30 disputin joined #mojo
14:39 depesz joined #mojo
14:39 depesz hi. what is the proper way to handle differences between mojo versions? if $Mojolicious::VERSION >= '..' { } else {} ?
14:41 depesz or perhaps base on method that has changed, and do: if ($self->can('...')) {...} else {...} ?
14:41 kablamo joined #mojo
14:44 moritz depesz: I think most people here would say "just require the newer version"
14:44 depesz i don't really want to do it.
14:44 depesz but basically either of the above should work?
14:45 moritz yes
14:46 depesz I'll use ->can()
14:46 depesz looks saner
14:47 sugar joined #mojo
14:51 kablamo joined #mojo
14:56 amon joined #mojo
15:02 kablamo joined #mojo
15:05 genio Any suggestions for something similar to Microsoft's SQL Server Administrator for Mac?
15:09 genio I'll try Oracle's SQL Developer
15:12 Ptolemarch joined #mojo
15:12 sh4 joined #mojo
15:13 cfedde I use dbvisualizer.  It's not the worst one.
15:14 cfedde my DBA's all swear by Toad.
15:14 kablamo joined #mojo
15:16 genio I'm more in need of Free vs the high price of something like Toad
15:16 genio Oracle's SQL Developer doesn't seem to be able to connect to anything but Oracle... hmm
15:17 sri dbish ;p
15:25 cfedde the free dbvis is only a little cripled.
15:25 genio ahh, there's a SQL Server plugin for SQL Developer
15:25 genio let's see how this goes
15:28 axlrose joined #mojo
15:34 ryozi joined #mojo
15:38 jamesaxl joined #mojo
15:41 punter joined #mojo
15:41 disputin joined #mojo
15:50 oetiker_ joined #mojo
15:58 depesz left #mojo
15:59 Vandal joined #mojo
16:14 marcus joined #mojo
16:31 doby genio: a couple ive used over the years
16:31 doby http://squirrel-sql.sourceforge.net/
16:31 doby http://dbeaver.jkiss.org/
16:37 tempire I think it's time
16:37 tempire For another blog entry
16:58 neyasov joined #mojo
17:09 sri aww :/ https://medium.com/@lestrrat/the-final-yapc-asia-tokyo-ece1346db1c4
17:12 tbushell_ joined #mojo
17:13 tbushell_ joined #mojo
17:13 tbushell left #mojo
17:14 sri but damn does that tokyo big sight thingy look cool
17:40 davido_ joined #mojo
17:43 tempire joined #mojo
17:56 tempire arg
18:02 dod joined #mojo
18:31 bowtie joined #mojo
18:43 sujithm joined #mojo
19:20 jamesaxl joined #mojo
19:38 irq joined #mojo
19:39 Eke- joined #mojo
19:45 punter joined #mojo
20:02 LiK joined #mojo
20:06 LiK Hi there. I want to deploy a mojolicious app on a Win7 + Apache 2.4 environment. The app worked with morbo but not with Apache. I found lots of documentation for linux configuration but none for Win7. Can anybody help?
20:07 punter joined #mojo
20:09 hernan is windows a requirement ?
20:09 hernan just asking..
20:10 LiK yes it is
20:10 LiK the company is requiring it
20:31 tempire batman: when using Mojo::APNS, "Object-Oriented Mojo::JSON API is DEPRECATED"
20:33 sri i can tell from that message you're not running the latest version of mojolicious... because it has been slightly adjusted since :o
20:42 * tempire retroactively lower-cases Oriented
21:11 jamesaxl joined #mojo
21:15 jamesaxl joined #mojo
21:42 dvinciguerra joined #mojo
21:43 dvinciguerra can I get current url at not-found template!?
21:49 hernan req->url->to_string ?
21:58 Ptolemarch joined #mojo
22:00 dvinciguerra hernan604: req? direct from template?
22:02 hernan604 why not
22:04 hernan604 or set it before in the controller
22:04 hernan604 gtg
22:04 hernan604 good luck
22:08 hoppie joined #mojo
22:09 dvinciguerra hernan604: thanks man! ;)
22:09 hoppie Is there a way to specify the user-agent string? $ua->agent('Mozilla/8.0');  I have search http://search.cpan.org/~sri/Mojolicious-5.56/lib/Mojo/UserAgent.pm and not seeing it. Thanks.
22:16 dvinciguerra hoppie: http://search.cpan.org/~sri/Mojolicious-5.56/lib/Mojo/UserAgent.pm#transactor
22:16 dvinciguerra $ua->transactor->name('MyUA 1.0');
22:17 dvinciguerra I think it help you!
22:24 hoppie yes, just read https://metacpan.org/pod/Mojo::UserAgent::Transactor.
22:24 hoppie thank you
22:24 dvinciguerra hoppie: you are welcome!
23:04 vytas joined #mojo
23:05 jberger Just broke 100 trick or treaters
23:05 jberger at 101 currently
23:06 sri that sounds illegal
23:07 sri oh right, chicago
23:09 jberger I didn't break them!
23:10 preaction fun times out in the burbs, eh jberger?
23:10 * preaction is sitting at his desk for his release to finish...
23:10 jberger preaction: my neighborhood is always like this, it's crazy
23:11 preaction sounds fun tbh
23:11 preaction a slice of Americana
23:11 preaction real Horatio Alger
23:12 jberger it is, though it's tiring
23:16 jberger 112, we might break our all time record of 119
23:16 jberger I thought the wind my dampen the festivities
23:23 dvinciguerra joined #mojo
23:26 LiK left #mojo
23:29 sweet_kid joined #mojo
23:37 jberger And we have blown through the record now
23:37 jberger 131
23:38 sri no leftover candy for jberger this year?
23:39 jberger 135 we may have to turn out the lights soon and hope no one brought eggs
23:40 jberger :o
23:44 marty joined #mojo
23:44 jberger 145, we are getting into candy crisis range here!

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