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

IRC log for #mojo, 2016-06-12

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

All times shown according to UTC.

Time Nick Message
02:19 jberger sri: I'm taking a look at different connection queuing patterns for Mojo::Redis(\d+)
02:20 jberger and I wonder if it is advisable to use steal_handle if they use a connection if the user changes between blocking and nonblocking operations
02:20 jberger it isn't very standard certainly
02:20 jberger the usage patterns of Mojo::Pg are very attractive, but the underlying nonblocking API that DBD::Pg actually makes it somewhat simple to switch between
02:21 jberger whereas with redis the problem is a lot more like the useragent
02:22 jberger but rather than just having blocking and nonblocking queries there are lots of different semi-blocking operations that could happen on different loops
02:22 jberger it is a puzzling canundrum
02:27 jberger I guess there could be a "global" blocking ioloop and any object that represents a connection would actually use that connection for blocking operations
02:27 jberger actually, heh, I think that is fairly close to what Mojo::Redis2 does already
02:32 noganex_ joined #mojo
02:35 bpmedley I hope Apple supports mobile web notifications in Chrome soon.  I may get an Android, if they don't.  What do y'all think?
03:28 vicash bpmedley: I use Pushover app to send push notifications to my phone from various applications that I have written. total cost for lifetime use is 5$. You can also use Prowl which is iOS only. Pushover works on both iOS and Android
03:29 bpmedley vicash: I'm developing a mobile web app and I will not be using anything native (just the browsers).
03:30 bpmedley Ohhh, looks like they have a client I can ask users to install?
03:31 vicash bpmedley: yes something like Prowl might be better than Pushover in your case.. Pushover requires each client phone to pay $5 and you get 7500 notifications per month. since i have one phone, it cost me only 5$ for any number of apps.
03:31 vicash or you can develop your own client pretty easily i suppose.. or just send SMSes
03:33 bpmedley Issue is that my app is an extra number that is SMS capable.. :)
03:34 vicash everything is trade off. if your app is on the browser and has many customers and if they actually demand push notifications, then it pays to have a native app that loads the web engine and handles push notification. if not, then ask the user to opt-in for SMS notifications
03:34 vicash your users may not want a notification...
03:35 vicash the opt-in method allows you to see how many actual users really opt-in/opt-out of the messages.. then you can decide whether to push or not
03:35 bpmedley vicash: That makes sense; however, I can't think of a technical reason that iOS can't support web push notifications..
03:36 vicash that i don't know. i dont develop phone apps... iOS has arbitrary constraints
03:36 bpmedley That's true.  What kind of apps do you develop?
03:38 vicash mostly server side stuff... i do systems engineering related things... operating system drivers/mods, compiler hacks, DSLs etc. sometimes GPU computing.. i use mojolicious to create visuals to demo what I build.. i used to do desktop GUI apps but they suck for demos
03:39 vicash with Mojo, i can demo on the phone which makes it easier to show people anywhere
03:39 bpmedley That's really sweet.
03:39 bpmedley You might like Kendo UI Core.  That has a free mobile framework.
03:40 vicash push notifications allow me to not have to monitor my stuff constantly, and instead only look at things when the notification matters
03:40 vicash it is also faster than email someetimes..
03:40 bpmedley And you get push notifications in Chrome, or some other browser?
03:40 vicash i am not good at UIs ... so keeping it as simple as possible for now
03:41 vicash on the phone.. like how you get push notifications from Twitter or similar apps
03:41 bpmedley Neither am I.  The UI looks like an engineer wrote it.
03:41 bpmedley I'm confused.  Are you using HTML5 for your demos?
03:42 vicash push notifications are not part of the demo.. the demo is just a set of screens on a webpage... the push notification is for me to know that my apps are working..
03:43 vicash for example, i have  an automated trading system that i have written in C++... it sends me a push notification when it buys or sells something..
03:43 vicash i visualize the charts and trades of the day using Safari on iOS... Mojo serves up the chart to Safari
03:43 bpmedley Aha, so the Pushover app aggregates all your notifications from the various systems you've built?
03:44 vicash yes.. Pushover handles the push notification part.. i have it installed. i have a User token, and I can give each application that i want an App token.. so different applications can use my user token and their individual app token, and i can send a REST request... and it reaches my phone using the Pushover app
03:46 bpmedley Neat; if you want a smallish demo of Kendo UI Core, let me know.  It's really cool.  You could use a drawer type app really easily and display screens that users could select around and have lots of fun.. :)
03:46 vicash so the backend requires a user token, an app token, a message and a REST request with all the afore mentioned items and once that is sent.. the phone Pushover app receives the request and shows it on my phone... that's it.. Pushover is a generic push message sending/receiving system
03:48 vicash cool. i will look at it for my future demos... to be honest i dont use Chrome unless it is on Android... and i hardly use Android, so i dont know much about web notifications.. Chrome is like Emacs, an OS
03:48 bpmedley What browser do you use mostly?
03:48 vicash Firefox because of Noscript
03:48 Adurah Use uBlock Origin instead.
03:48 vicash that only blocks ads
03:48 Adurah Or, uMatrix, rather.
03:49 vicash i use uBlock and Noscript
03:49 Adurah uMatrix over Noscript here.
05:12 batman jberger: mojo-redis2 already have two ioloops, depending on if you're running blocking or non-blocking code.
05:12 batman it might not work as expected, but it was the only way i could make it work :/
06:50 punter joined #mojo
07:00 Vandal joined #mojo
07:43 dod joined #mojo
07:48 dod joined #mojo
10:38 dod joined #mojo
11:06 odc joined #mojo
13:30 lluad joined #mojo
13:54 kaare joined #mojo
15:31 kes joined #mojo
15:51 dod joined #mojo
16:06 dvinciguerra joined #mojo
16:08 PryMar56 joined #mojo
16:37 jamadam joined #mojo
16:40 sri now this is a quality pull request https://github.com/kraih/mojo/pull/969
16:41 jamadam I just send a pr. Thanks in advance for looking into it
16:42 good_news_everyon joined #mojo
16:42 good_news_everyon [mojo] kraih pushed 2 new commits to master: https://git.io/von9p
16:42 good_news_everyon mojo/master 3e9906f jamadam: fixed a bug where max-age=0 cookies would not expires until next second
16:42 good_news_everyon mojo/master 8a810cd Sebastian Riedel: Merge pull request #969 from jamadam/cookie-max-age-fix...
16:42 good_news_everyon left #mojo
16:43 sri thanks for making it easy :)
16:43 jamadam Thank you!
16:44 jamadam It's different topic but I also suspects the negative max-age handling is not collect according to RFC
16:45 jamadam max-age=-1 should be just ignored? I'm not sure for now
16:46 sri treating them as 0 would make sense
16:47 sri yea, that's what the spec wants
16:51 jamadam Real browsers handle max-age=-1 would be session cookie and no max-age and expires attributes are stored. It's assumption though.
16:52 good_news_everyon joined #mojo
16:52 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vonHO
16:52 good_news_everyon mojo/master de600ed Sebastian Riedel: handle negative values and zero the same
16:52 good_news_everyon left #mojo
17:00 jamadam Hmm I'm not sure the last commit is correct or not but maybe no one expects session cookie behavior for Mojo::UserAgent.
18:42 thowe joined #mojo
19:01 punter joined #mojo
19:55 punter joined #mojo
21:43 dvinciguerra joined #mojo
22:19 sri having used windows on the macbook for a few hours i gotta say font scaling there is total garbage
22:20 sri it's ridiculous just how nice switching back to osx is for the eyes

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