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

IRC log for #mojo, 2016-07-03

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

All times shown according to UTC.

Time Nick Message
00:05 bpmedley nicomen: https://gist.github.com/brianmed/63b06735d724e9894d52c18ce3a1b8b6  <-- Does this help?
00:13 Grinnz sri, i'm implementing job dependencies for the sqlite backend, came across a race condition here: https://github.com/kraih/minion/blob/master/lib/Minion/Backend/Pg.pm#L139
00:13 Grinnz at least for the test file, that needs to be <= to work for sqlite, dunno if pg needs that
00:13 Grinnz because remove_after is set to 0 and the jobs are set to finished in the same second as that test
00:18 kid511 bpmedley: I have, in fits and starts, been working my way thru http://bmedley.org/mojo.pdf
00:20 bpmedley kid51: I sent you a private msg..
00:27 sri Grinnz: what race condition?
00:30 Grinnz if it checks "finished < now()" then a couple calls to ->repair will not remove some jobs that were added in the same second
00:31 Grinnz that were finished*
00:32 sri ah, doubt that's a race condition with pg
00:33 sri granularity of timestamps is too high
00:33 Grinnz also it's very interesting how to emulate pg's "where id = any(array)" in sqlite with a json field...
00:35 Grinnz http://sqlite.org/json1.html#jeach first "example using json_each"
00:36 Grinnz it creates a table with a row for each json array element, and you join that to the table you want to compare it against
00:42 nicomen bpmedley: yes! but the first forkcall was not executed until 10 secs though?
00:43 nicomen after that, it is executed every 5 secs...
00:45 bpmedley nicomen: Are you sure that the recurring timer wasn't started after 5 seconds and then the sleep happened, and then you got output.. so it looks like 10 seconds elapsed before anything happened..
00:45 nicomen ah right
00:45 bpmedley Was a litte confusing, sorry..
00:45 bpmedley *little
00:45 nicomen thanks, fits perfect ;)
00:46 nicomen of course, the sleep just skews the timing 5 secs ;)
01:05 * Grinnz also really wishes mysql had json_group_array
01:13 Grinnz guess cpan_mojo doesn't announce minion stuff :P https://metacpan.org/release/DBOOK/Minion-Backend-SQLite-0.005
01:36 tchaves joined #mojo
01:40 bpmedley Grinnz++
02:06 noganex joined #mojo
02:26 PryMar56 joined #mojo
03:30 jberger Grinnz++
03:30 jberger Man that was quite a hike!
03:36 jberger 8 miles but it took 7 hours
03:36 jberger I'm spent
03:36 jberger Beautiful though
04:08 absolut_todd joined #mojo
04:41 kaare joined #mojo
04:44 Grinnz you should compose a rap single about it
04:50 jberger Ummmmm ....
04:51 Grinnz https://www.youtube.com/watch?v=gQalFjdOKIs
04:51 Grinnz and then a movie
04:52 jberger Ah
04:52 jberger I liked both of those, been a while though
04:53 jberger Also made for some good "mom's spaghetti" memes
04:53 Grinnz yeah that's lose yourself
04:53 Grinnz a classic
04:54 jberger Indeed
05:56 Vandal joined #mojo
06:10 dod joined #mojo
06:15 dod joined #mojo
07:44 dod joined #mojo
08:08 irqq joined #mojo
08:24 berov joined #mojo
08:29 punter joined #mojo
10:32 sri hmm, my apple order status page results in an error now, i guess that's a good sign -.-
11:14 dotan joined #mojo
11:48 kaare joined #mojo
11:54 cuechan joined #mojo
11:57 kid51 joined #mojo
12:03 dod joined #mojo
12:26 aramisf joined #mojo
12:32 aramisf Hello all. Do you know a service on the internet where I could host a mojolicious application? Something like Heroku, where some application metrics are also available.
12:33 sri use heroku
12:34 aramisf sri: for mojo?
12:39 pink_mist yes..?
12:39 aramisf sri: oops. Just found tempire. Sorry
13:54 inokenty joined #mojo
14:22 inbioz joined #mojo
14:48 berov1 joined #mojo
16:21 asarch joined #mojo
16:46 dod joined #mojo
16:53 disputin joined #mojo
17:14 meshl joined #mojo
18:49 dod joined #mojo
18:55 good_news_everyon joined #mojo
18:55 good_news_everyon [mojo] jberger deleted tutorial_json_service at 34139f9: https://git.io/vKfwz
18:55 good_news_everyon left #mojo
19:15 jberger heroku is nice but it has an ephemeral file system so you need to use some other storage mechanism if you want to stay totally free
19:15 jberger that said I think their hosted database backing is reasonably priced
19:16 jberger I have used scaleway lately, but their inventory was sold out for a while, no idea if it is increased yet
19:20 jberger looks like they are back to taking in new customers
19:21 jberger basically they are a tiny bare-metal host, more like linode or rackspace but super cheap
19:21 jberger finally I know other people (namely batman) have liked digital ocean, but I've never used it
19:21 batman DO++
19:31 jberger do or do not, there is no try
19:32 jberger do {} || do { ! $_ }; CORE->can('try');
19:47 PryMar56 joined #mojo
20:57 lluad joined #mojo
21:09 Zoffix joined #mojo
21:10 Zoffix The % include 'blah'; basically inserts the 'blah''s content into the current template, right? For some reason the 'foo''s content in this app doesn't get inserted, even though I see "Rendering foo.html.ep" in the message log: https://gist.github.com/zoffixznet/13feeb670782996ee4e80e83df440a95
21:11 Zoffix Ah, it's %= not %
23:12 lluad joined #mojo
23:30 meshl joined #mojo
23:36 lluad joined #mojo

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