Log message #4159656

# At Username Text
# Jul 17th 2018, 13:44 origamifreak2 @lubos if you think you're going to be creating a bunch of custom validation functions, you could create a custom validator class that extends the default validator class.
# Jul 17th 2018, 13:43 dereuromark lubosR: custom method using chronos sure works
# Jul 17th 2018, 13:41 lubos File uploaded https://cakesf.slack.com/files/UBEC23Z6H/FBS2WQTFF/-.txt / https://slack-files.com/T053DPNCM-FBS2WQTFF-0c74328f69 - Also just noticed that this shows array with day, month, year... was expecting date object
# Jul 17th 2018, 13:36 lubos Should I make custom rule at validator and then use Chronos methods?
# Jul 17th 2018, 13:36 lubos What is the best way to validate e.g. DOB older than 18?
# Jul 17th 2018, 13:31 neon1024 Then it will match on or allow optionally null
# Jul 17th 2018, 13:31 neon1024 So use a notMatching() with an inverted condition
# Jul 17th 2018, 13:30 neon1024 awitte, Yes there is. The approach which works for me is a nested, inverted notMatching
# Jul 17th 2018, 13:25 dereuromark or IS NULL maybe?
# Jul 17th 2018, 13:15 awitte hi. Is there a way filtering Data by matching or Null? So either it has a relation and this relation fits certain conditions or it doesnt have any related data
# Jul 17th 2018, 12:40 chris-andre @snake, you'll probably point to the public folder for each app. /plugins/app1/webroot, /plugins/app2/webroot. (https://gist.github.com/chris-andre/c447c3508d02d1e1dfdb5c5616b22f46)
# Jul 17th 2018, 12:35 admad hehe
# Jul 17th 2018, 12:32 birdy247 @admad Id say the most annoying things are the pops which appear just as you go to close the page
# Jul 17th 2018, 12:15 admad @birdy247 @neon1024 endless scroll is the most annoying thing frontend devs have come up wiht
# Jul 17th 2018, 12:03 snake-venom can anyone here help me in this ?
# Jul 17th 2018, 12:02 snake-venom here is my nginx file
# Jul 17th 2018, 12:02 snake-venom https://pastebin.com/tSe7gdfP
# Jul 17th 2018, 12:02 snake-venom i have a folder /plugins and in this i want to run 5 cakephp projects.. but i am not getting what to add in config nginx file...
# Jul 17th 2018, 11:50 neon1024 Make sure you lint your JS, because if that breaks you’ll never get page 2 ;)
# Jul 17th 2018, 11:49 neon1024 You’d have to disable JS to use the footer :rolling_on_the_floor_laughing:
# Jul 17th 2018, 11:49 neon1024 I can’t imagine the horror if you have endless scroll, and only put certain links in the footer
# Jul 17th 2018, 11:48 neon1024 It’s like the kitty who wants to be stroked, but when you get close just wanders out of hands reach
# Jul 17th 2018, 11:48 neon1024 For the love all things holy, don’t have a footer. Please don’t have a footer.
# Jul 17th 2018, 11:47 neon1024 Hah, hate those things.
# Jul 17th 2018, 11:47 birdy247 FYI, we are using a endless scroll on the frontend
# Jul 17th 2018, 11:47 birdy247 just wondered if there was a less expensive way of quering all books every time
# Jul 17th 2018, 11:47 birdy247 so the plan is to query the DB for ALL books, pop into a collection and then take the necessary
# Jul 17th 2018, 11:47 neon1024 Yeah, so you’ll need to get all teh books, calculate the score, setup the collection and then paginate that new collection I guess right?
# Jul 17th 2018, 11:46 neon1024 Books right? So you’re getting all the books anyway
# Jul 17th 2018, 11:46 birdy247 1 User would want to see books with a score > 8
# Jul 17th 2018, 11:46 neon1024 Well you either paginate Books, or you paginate Users.
# Jul 17th 2018, 11:45 neon1024 Okay a trait, not an interface, but I was almost right!
# Jul 17th 2018, 11:45 neon1024 https://github.com/cakephp/cakephp/blob/master/src/ORM/ResultSet.php#L34
# Jul 17th 2018, 11:45 birdy247 @neon1024 If we paginate a collection, thats all good. but we still need to retrieve all books from the sql.
# Jul 17th 2018, 11:44 neon1024 Shouldn’t be too hard, as I think ResultSet implements CollectionInterface iirc
# Jul 17th 2018, 11:43 matt thanks, yes think we will go with paginating the collection manually but with caching
# Jul 17th 2018, 11:42 neon1024 At least then you alleviate some of the pressure, in exchange for slightly stale data
# Jul 17th 2018, 11:42 neon1024 Keyed by user id or something
# Jul 17th 2018, 11:42 neon1024 I guess you could cache the calculated user results
# Jul 17th 2018, 11:41 neon1024 It works. Is it perfect? Not by half ;)
# Jul 17th 2018, 11:41 neon1024 Meaning my request / response time was still snappy