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

IRC log for #mojo, 2016-06-27

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

All times shown according to UTC.

Time Nick Message
00:18 Vitrifur joined #mojo
00:23 jberger thowe: It installs and activates plugins automatically the first time it is used
00:23 jberger VAM that is
00:23 Kripton joined #mojo
00:27 jberger leoj: sorry I don't know much about RWF
00:27 jberger You'd have to ask batman
01:14 leoj joined #mojo
01:26 punter joined #mojo
01:56 jkrizansky joined #mojo
02:06 Vitrifur left #mojo
02:13 noganex joined #mojo
02:56 davebaker joined #mojo
03:05 zivester joined #mojo
03:05 davebaker left #mojo
03:30 bjoernfan joined #mojo
03:45 ivi joined #mojo
04:38 jkrizansky joined #mojo
04:50 inokenty-w joined #mojo
04:51 batman about what?
04:54 batman jberger: ^^
05:08 jkrizansky joined #mojo
05:53 jberger ReadWriteFork
05:54 jberger http://irclog.perlgeek.de/mojo/2016-06-26#i_12738716
05:54 jberger And
05:54 jberger http://irclog.perlgeek.de/mojo/2016-06-26#i_12738724
05:56 batman jberger: leoj isn't here :/
05:56 batman but it's $rwf->pid :)
05:57 batman ah. right... yeah, start() doesn't start anything. so $rwf->pid isn't set until "next tick"
05:57 * batman updates the docks
05:57 batman *docs
05:58 lluad joined #mojo
06:01 Lee joined #mojo
06:29 batman jberger: https://github.com/jhthorsen/mojo-ioloop-readwritefork#fork
06:30 cpan_mojo Mojo-IOLoop-ReadWriteFork-0.22 by JHTHORSEN https://metacpan.org/release/JHTHORSEN/Mojo-IOLoop-ReadWriteFork-0.22
06:34 Vandal joined #mojo
06:34 McA joined #mojo
06:37 Lee joined #mojo
06:42 Lee joined #mojo
06:43 Lee joined #mojo
06:46 Lee joined #mojo
06:48 Lee joined #mojo
06:48 Lee joined #mojo
06:49 dod joined #mojo
06:54 AndrewIsh joined #mojo
06:55 dod joined #mojo
06:57 jkrizansky joined #mojo
07:32 dod joined #mojo
07:33 salva joined #mojo
07:45 trone joined #mojo
07:50 osfabibisi joined #mojo
07:57 kes joined #mojo
08:26 CHYC cd son
08:31 icjs joined #mojo
08:36 nic batman++  # "CPAN great modules release last week" x 2
08:37 batman cool :)
08:37 nic ooh, interesting.  it's niceperl.blogspot.co.uk but all that I see is Spanish
08:38 nic I guess it saw my typing accuracy and concluded English aint my mother tongue
08:47 sri holy shit, did my apple odyssey continue today
08:48 sri the apple service shop they wanted to send me to today has the next open appointment july 13
08:49 ashimema that's silly
08:49 ashimema how can they call that customer service
08:50 sri so, then i got really pissed and called them again, got escalated 4 times
08:50 sri and now i'm getting my money back
08:52 sri back to shopping for a work laptop
08:53 ashimema well that's sort of progress at least
08:53 sri 1.5 hours on the phone
08:53 ashimema though progress of the .. x steps back, y steps forward kind :(
08:53 ashimema blimey...
08:54 sri tend towards getting a dell xps 13, for the next business day on-site support
08:54 sri after the apple mess
08:54 * ashimema has no idea who has decent customer service these days
08:55 * ashimema had an xps many years back.. they're customer service was great then..
08:55 stephan48 sri: dell NBD on-site is awesome
08:55 sri windows though :(
08:55 stephan48 install debian or ubuntu or or or
08:55 ashimema don't dell do some lubuntu machines now
08:55 sri i actually need good design software
08:56 ATog joined #mojo
08:56 ashimema lol
08:56 stephan48 at this company we are exclusively using dell for desktops, workstations and servers. support is awesome and really quick
08:56 stephan48 yea that could possibly be a problem
08:58 sri been using only apple boxes since the titanium powerbook
08:58 sri 2003 or so
08:59 stephan48 my new employer send me a iMac as a work device.. i am used to linux and windows.. holy crap is that a different world
08:59 stephan48 the magic mouse is cool throu
09:00 sri i guess the current macbook pro might be the last good apple for some time
09:00 sri the new ones in a few months will get the shitty keyboards with butterfly switches
09:02 sri getting the current macbook pro 13 might be easiest for now
09:04 stephan48 what did you have before?
09:04 stephan48 the one you are now sending back?
09:04 sri macbook air 13 before the shitty macbook 12 retina
09:04 sri macbook 12 was the nightmare one
09:05 stephan48 there are not that many options :(
09:05 sri i actually liked it when it worked
09:08 sri hmm, would get a lot more value from a dell
09:09 salva joined #mojo
09:09 ashimema sounds like you're fairly wed to apple sri.. it's just a shame their customer services has gone so downhill along with the reliability of their devices :(
09:09 ashimema hope you manage to find a suitable replacement
09:11 sri to be fair, actual apple people do provide great support
09:12 Vandal joined #mojo
09:12 sri everyone one the phone was great
09:12 sri but i think the big service problem is that they've moved everything to apple stores
09:12 sri and when you're not living near an apple store, you're screwed
09:13 sri because the 3rd party repair shops they have contracts with usually suck
09:14 sri apple folks on the phone were pretty shocked when i told them about my interactions with those 3rd party shops
09:15 stephan48 i had the problem once with the iphone of my boss. apple store? maybe in 4 weeks. not even guaranteed because you can only reserve appointments for a certain time in advance. for 200€(apple wanted 150€) we found a third pary shop doing the display replacement in under one hour.. they also gave 1,5 years of warranty on it
09:16 sri ok, that's out of warranty stuff
09:17 sri so, a slightly better dell would cost about 200 euro less
09:17 sri that's 200 euro to get design software theoretically
09:18 ashimema very true
09:18 sri paint shop pro would be 80 euro
09:19 sri getting a vector drawing app seems harder
09:22 sri how usable are gimp and inkscape these days?
09:31 sri oh, the dell has a 15w cpu while the mac has a 28w
09:34 sri performance seems almost equal on geekbench, even though dell is skylake and macbook broadwell
09:42 coolo sri: inkscape rules IMO. And check out krita
09:43 sri inkscape does actually look good, gimp not so much
09:43 coolo https://krita.org/en/features/highlights/
09:44 sri oh, krita looks nice
09:44 sri wow, that actually looks like it would work for me
09:48 coolo sri: ... https://software.opensuse.org/421
09:48 coolo (tested using mojo! :)
09:50 ivi joined #mojo
09:56 avrono joined #mojo
10:04 meshl joined #mojo
10:10 sri i hate myself for wanting the macbook pro :(
10:14 meshl joined #mojo
10:15 coolo Just Say No :)
10:15 leoj joined #mojo
10:28 kid51 joined #mojo
10:32 cuechan joined #mojo
10:45 kaare joined #mojo
11:00 dvinciguerra_ joined #mojo
11:06 punter joined #mojo
11:10 Vandal joined #mojo
11:13 osfabibisi joined #mojo
11:15 tchaves joined #mojo
12:00 ATog regarding laptops i really love what dell did with the XPS 13's screen
12:00 ATog imho every proper laptop maker should take that into account
12:02 ATog now i can't tolerate the rest of the laptops having those huge borders
12:03 ATog is like going back to an old smartphone, those borders only means space that could be use to have a larger screen or just a smaller laptop frame
12:33 perlpilot joined #mojo
12:42 bwf joined #mojo
13:03 marty joined #mojo
13:06 bpmedley sri: you might consider system76; i have no experience with thdn
13:07 ramortegui joined #mojo
13:07 bpmedley *them, though
13:08 nic heh, was wondering who this 'thdn' laptop vendor was
13:09 bpmedley Gaw, the send key is so close to the m.. :)
13:10 pink_mist you seem to have an odd keyboard layout :P
13:10 bpmedley I'm in icloud on ios
13:10 pink_mist (and it can't be dvorak either, cause I know that 'm' and 'a' are virtually the only letters that retain their place between qwerty and dvorak :P)
13:11 pink_mist d'oh, ios
13:11 pink_mist then all bets are off =)
13:19 Kripton joined #mojo
13:20 neilhwatson joined #mojo
13:33 gizmomathboy joined #mojo
13:41 jkrizansky joined #mojo
13:42 sri bpmedley: those are ugly as hell
13:43 sri hmm, with coupon codes dell gets a lot cheaper too
13:44 Adurah Norm MacDonald's favourite brand.
13:45 genio man, the XPS 13s are more expensive than the macs
13:46 dod joined #mojo
13:47 sri genio: nope
13:47 sri i did the math!
13:47 punter joined #mojo
13:48 sri dell is slightly cheaper
13:49 sri and by slightly i mean 300 euro ;p
13:49 sri (because of coupons)
13:49 genio those must be some awesome coupons
13:50 sri 7% for a 1800 euro laptop is a nice coupon
13:51 sri and from what i gather it's even one of the weaker coupons, seems a few months ago they had a 15% one :o
13:52 sri now i'm even considering the 16gb ram/512gb ssd one
13:52 sri would make running a linux vm for development reasonable
13:55 sri pretty crazy, the m7 macbook with applecare was more expensive than a top end xps13 with 3 years on-ste service
13:55 sri *on-site
13:56 genio That sounds pretty good, then.  if you can get it cheaper, AND get better service, do it!!
13:56 genio will Apple refund your macbook at this point?
13:56 salva joined #mojo
14:03 marty joined #mojo
14:04 marty_ joined #mojo
14:12 dotan Is there a simple way to add and then remove a cookie from the M::UA::CookieJar ? Is it worth making a wish list request for it?
14:13 dotan Maybe I can build a transaction and just add the cookie on that.
14:13 CW If you type hypnotoad myapp --stop and it says: "Hypnotoad server not running" does that mean it was lying when it said: Server available at http://xxx.x.x.x:7170
14:15 pink_mist $ua->cookie_jar->add(..); and of course you remove a cookie by setting expiration => 0 or something
14:15 pink_mist CW: not at the time it was saying it
14:16 CW So it is running, I just need to find out what ip its at?
14:17 pink_mist if it's currently saying that the server is available, sure
14:19 CW It is but the address it is suppose to be at gives me a This site cant be reached. But good to know that it is working, now I just have to figure out where it is running. Thanks :-P
14:21 pink_mist netstat -anp may help ascertain which process has the port open
14:21 dotan CW: it might mean it can't find the PID file, did you run hypnotoad myapp in the right directory?
14:22 CW I ran it the same place I run morbo.
14:23 dotan also, you should see 4 (default number of workers) processes called myapp when you do ps
14:25 CW <Pink_mist> Tryed netstat, shows my morbo apps running but no hypnotoad
14:26 anparker Is there a way to set search_path for Pg backend in Minion?
14:26 pink_mist CW: uhm
14:26 pink_mist CW: obviously you need to shut down morbo first
14:26 pink_mist CW: at least if it's on the same port
14:26 CW Nope, different ports
14:27 CW morbo is on 3737 and hypnotoad is suppost to be on 7170
14:27 pink_mist so what's the log say?
14:27 CW dont have a log. :-S
14:27 pink_mist mkdir log
14:28 pink_mist then you get logs
14:29 CW Have that, Maybe I put it wrong dir.
14:30 CW Should i move it up to public? or script?
14:31 dotan pink_mist: expires is an interesting idea, but seems non-deterministic to me. I'll see if build_tx works better.
14:32 dotan CW: do you see processes (called myapp or whatever, not hypnotoad)?
14:34 CW I do for the morbo version which is running dev version of the code.
14:34 sri genio: yes, full refund
14:34 CW on port 3737
14:34 pink_mist CW: until you find your logs, not much we can say or do
14:34 sri have no complaints about the apple people, were all really nice and helpful, it's just the 3rd party repair services that sucked
14:35 CW Oh wait, Also on port 33850
14:35 CW Thats wierd...
14:35 genio sri: The whole situation sucks, but at least you were able to get refunded. :/
14:36 sri laptop shopping is fun though, and i guess that will lift my mood until the refund actually arrives :)
14:37 sri and on the plus side, whatever laptop i get now will definitely be able to play fallout 4
14:38 CW So stoped it and restarted again, now its showing up on the right port but still not found through the browser.
14:38 sri even though working another week or even two on the potato backup laptop will suck
14:39 CW So, It is crashing moments after I start it. That is what is happening.
14:39 sri anparker: the minion tests do that actually
14:39 CW but not telling me so.
14:40 dotan build_tx definitely looks like what I need..
14:41 pink_mist CW: the only place it could possibly tell you is in the log
14:43 pink_mist CW: did you make the log dir yet? because you need to make the log dir, then try again, then check the log
14:44 CW I have had a log folder but where should it be. I have it in the app's root.
14:44 pink_mist yes
14:45 CW So my log is not working either
14:45 pink_mist I find that hard to believe
14:50 CW I could share screen shot...
14:52 ptolemarch joined #mojo
14:53 CW https://unsee.cc/dazebimo/
14:56 meshl joined #mojo
14:56 marty joined #mojo
15:06 PopeF joined #mojo
15:08 CW is it log or Log?
15:08 pink_mist "Unfortunately the images were deleted as requested"
15:08 pink_mist uh, I didn't get to see any pic
15:09 pink_mist if it was Log I would have said Log
15:09 pink_mist but I said log
15:09 pink_mist because I meant log
15:09 CW https://unsee.cc/simozuba/
15:10 pink_mist does the conf disable logging in that dir perhaps?
15:10 pink_mist did you restart the app since you made the dir?
15:12 zivester joined #mojo
15:20 CW Many times
15:21 CW nope the conf just sets the port
15:21 disputin joined #mojo
15:21 CW and number of workers
15:40 pink_mist then I can only assume it's the app code itself that does shit it's not supposed to
15:42 cfedde time to drag out the debugger.  or strace.
15:47 CW Fair enough... Thanks for your help though. Really apperciate it.
15:54 batman joined #mojo
15:54 ashimema hmm..
15:54 ashimema just updated my dependencies and I'm not getting an error inside Mojo::Pg
15:55 ashimema Mojo::Pg version 2.28 with Mojolicious version 6.66
15:55 ashimema `Can't locate object method "username" via package "Mojo::URL" at /home/rebus/rebus-list/script/../local/lib/perl5/Mojo/Pg.pm line 55.`
15:55 ashimema any idea's where that may have come from?
15:56 pink_mist try with Carp::Always?
15:56 zivester joined #mojo
15:56 Grinnz_ that method was added in 6.65
15:56 Grinnz_ are you sure of that mojo version?
15:56 ashimema I'll double check
15:57 ashimema poo.. my bad
15:58 Grinnz_ :)
15:58 ashimema somehow carton got dropped from the run line :(
15:58 Grinnz_ aha
15:58 ashimema So it was actually runnning with a totally different set of libs!
15:58 * ashimema humbly apologises for being a dunce!
15:59 ashimema you guys actually recommend perlbrew over carton don't you?
15:59 Grinnz_ they're useful for different things...
15:59 ashimema I'm wondering if I aught to make the swap
15:59 ashimema I'm finding moving to production a bit tedious with Carton
15:59 Grinnz_ for deployment you want carton, so you can fix versions
15:59 Grinnz_ and prevent unexpected upgrades
16:00 * ashimema will one day properly get to grips with this dance
16:00 Grinnz_ if you have a development machine with the same arch and libs as the production machine, you can usually just rsync the local dir over
16:01 lluad joined #mojo
16:01 leoj joined #mojo
16:02 Grinnz_ #toolchain here or #perl on freenode can probably help more with carton
16:03 ashimema #toolchain.. that's a new one
16:03 ashimema thanks
16:05 Grinnz_ its more for CPAN distribution and installation things, but carton falls under that
16:06 disputin joined #mojo
16:14 batman joined #mojo
16:17 nicomen can I do a non-blocking ua request, not wait for it to finish, and render a page?
16:20 pink_mist sure
16:20 pink_mist just gotta make sure the request is still referenced somewhere
16:20 nicomen how? It seems it doesn't finish when my controller is done
16:22 nicomen aha ;)
16:22 nicomen thanks
16:30 bpmedley nicomen: http://mojolicious.org/perldoc/Mojolicious/Plugin/DefaultHelpers#delay <-- this may be helpful
16:37 iamb joined #mojo
16:39 user_7801 joined #mojo
16:39 chandwki I need to build a REST API with Mojolicious, does anyone know of a good example REST application I could look at as a reference?
16:45 batman chandwki: http://thorsen.pm/perl/programming/2015/07/05/mojolicious-swagger2.html#the-application (you might want to start from the top)
16:45 batman it's based on https://openapis.org/ aka http://swagger.io/
16:49 jabberwok left #mojo
16:51 leoj joined #mojo
16:52 user_7801 I have a function $self->delay. It has 2 synchronized $self->ua->get() calls. Sometimes it's not required to execute the the first $self->ua->get(), which will shift $tx2 into $tx1. What would be the easiest way to solve this?
16:52 user_7801 http://nopaste.linux-dev.org/?1119109
16:55 user_7801 I only see a way to execute an empty calback that fills a dummy value, or place it into a seperate function?
16:55 user_7801 Not too familiar with perl tho
16:59 Grinnz_ user_7801: you could do $delay->pass(undef) in the case where you don't run the get()
17:00 Grinnz_ then account for $tx1 possibly being undef later
17:00 mcsnolte joined #mojo
17:01 Grinnz_ alternatively, you could do my ($delay, @txs) = @_; in the second step, then treat @txs as a variable length array of transactions
17:01 Grinnz_ depending on what logic you may need
17:02 user_7801 thx, i was looking for smth like this. Gonna try $delay->pass(undef)
17:07 user_7801 $delay->pass(undef);
17:07 user_7801 works fine
17:12 user_7801 I think the array can be useful if you have like 50 get requests, then you can just iterate through it without declaring 50 txs variables.
17:20 Kripton joined #mojo
17:45 bpmedley http://highscalability.com/blog/2016/6/27/how-facebook-live-streams-to-800000-simultaneous-viewers.html
17:46 bpmedley sri: you might like that article
17:46 dod joined #mojo
17:50 PryMar56 joined #mojo
17:51 marty joined #mojo
17:52 marty joined #mojo
17:57 disputin joined #mojo
18:01 Adura joined #mojo
18:06 Bean joined #mojo
18:15 gizmomathboy joined #mojo
18:29 Adura joined #mojo
18:36 sri guess i'll be getting the macbook pro 13 after all :o
18:37 sri too bad i don't have a university email address, apple is giving away overpriced bluetooth headphones for free to students
18:37 preaction your little one finally died? also, i just got this one based on your experience! :(
18:37 sri preaction: yea, totally dead, got a refund
18:38 * preaction hopes the magic blue smoke demons look favorably on him...
18:40 gizmomathboy joined #mojo
18:45 martin joined #mojo
18:52 martin joined #mojo
18:53 leoj joined #mojo
19:00 jberger oh I found this dockercon talk that mentions mojo
19:00 jberger https://blog.docker.com/2016/06/building-serverless-apps-with-docker/
19:00 jberger and the code: https://github.com/bfirsh/serverless-docker-voting-app/tree/master/result
19:01 jberger interesting that he picked a perl server because it serves on CGI he's using Mojo's CGI server for that purpose :s
19:52 Kripton joined #mojo
19:52 disputin joined #mojo
19:57 asarch joined #mojo
20:09 Kripton joined #mojo
20:24 eseyman joined #mojo
20:57 iamb joined #mojo
21:20 jberger Rik gave a very good talk on unicode considerations https://youtu.be/TmTeXcEixEg
21:20 jberger highly recommended
21:21 jberger Mojo does the right thing for you where it can but there are so many other places to consider and programming concepts to understand
21:21 jberger go watch it
21:22 disputin joined #mojo
21:38 sri the wait for the next season of game of thrones will be way too long :o
21:42 jberger a little bit of me hopes that Martin is going to surprise us book readers and publish the complete rest of the story for the next release
21:42 jberger and that is what has delayed him
21:48 disputin joined #mojo
21:55 mrallen1 i would be beyond shocked if there's another GRRM book in the next 12 months.
21:58 kid51 joined #mojo
21:59 Grinnz_ https://www.youtube.com/watch?v=j7lp3RhzfgI
22:05 mrallen1 omgosh that's vork
22:05 mrallen1 and stephen root?
22:05 cfedde As filk goes that was not too bad.
22:06 Grinnz_ expand the description for cast :)
22:07 mrallen1 haha i've played that game of thrones game
22:07 mrallen1 the board game
22:33 dvinciguerra_ joined #mojo
22:46 sri hmm, actually found a very good reason to pick a macbook over a dell for programming
22:46 Kripton joined #mojo
22:46 sri macbook aspect ratio is 16:10 while dell uses 16:9
22:46 sri so more vertical space for code
22:50 Grinnz_ 16:10 is pretty rare in general
22:50 sri all macs are 16:10
22:53 sri saw a xps vs macbook pro comparison video on youtube earlier and it's interesting just how much smaller the dell screen looks
23:13 Vitrifur-1 joined #mojo
23:13 Vitrifur-1 left #mojo
23:39 kid511 joined #mojo
23:48 leoj joined #mojo

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