Log message #4149834

# At Username Text
# Jun 11th 2018, 14:23 slackebot special_offers of the dates?"
# Jun 11th 2018, 14:23 itmpls @jeremyharris - the ultimate goal is displaying 1 of 5 where 1 is a special offer date and 5 is the total # of dates for a special offer. my original question: "is countercache the best solution for this scenario? i have special_offers with have special_offer_dates and on the UI end I want to show that a certain special offer date (in the calendar) is [x] of [y] for that special offer. like 1 of 5. was thinking a counter_cache on
# Jun 11th 2018, 14:22 josbeir other way would be a subquery probably
# Jun 11th 2018, 14:21 jeremyharris a count of what? the associations?
# Jun 11th 2018, 14:21 josbeir @itmpls why just not perform the query twice ?
# Jun 11th 2018, 14:20 itmpls i have a query with 5-7 associations and i want to both pull the results with associations (meaning I can't just select a few fields) and also get a count with a group by. the easiest solution I see is manually counting it via ->formatResults and creating an array with a count based on my scope. are there any 'cake' solutions I can alternatively do?
# Jun 11th 2018, 14:15 flavius > i guess someone younger than 60 was knocking on the table MR. SPEAKER! MR. SPEAKER! MR. SPEAKER! :,)
# Jun 11th 2018, 14:14 admad yes :slightly_smiling_face:
# Jun 11th 2018, 14:13 josbeir :O with a cool MIDI track on them
# Jun 11th 2018, 14:12 admad keygens, reminds me of god 'ole windows days :slightly_smiling_face:
# Jun 11th 2018, 14:05 flavius but then you'd still have people making keygens :,)
# Jun 11th 2018, 14:05 josbeir they posponed the hole thing so i guess someone younger than 60 was knocking on the table
# Jun 11th 2018, 14:05 flavius like a software license system? generated codes that work to give you access
# Jun 11th 2018, 14:04 josbeir how would that even work :) :)
# Jun 11th 2018, 14:04 josbeir aside from that
# Jun 11th 2018, 14:03 flavius yeah, i doubt that would stop anything
# Jun 11th 2018, 14:02 josbeir websites that require +18 age will need to implement a way to validate this code
# Jun 11th 2018, 14:02 josbeir what i read was that people will need to go to the magazine store to get a special +18 pass with a special code
# Jun 11th 2018, 14:01 neon1024 @flavius I don’t think anyone knows! :face_palm:
# Jun 11th 2018, 14:01 flavius lol, requiring you to write a letter to your ISP along with your ID to prove you're 18 "plz ISP can i haz access to sum p0rn?"
# Jun 11th 2018, 14:00 josbeir p0rn pass !
# Jun 11th 2018, 14:00 josbeir did you hear about their version of gdrp ? :)
# Jun 11th 2018, 13:59 flavius so did you guys brexit yet or what's taking so long? :P
# Jun 11th 2018, 13:51 admad ROLF
# Jun 11th 2018, 13:51 neon1024 Let’s hope that all those commonwealth nations are feeling generous when we leave the EU.
# Jun 11th 2018, 13:50 admad but then again you had one of the largest empires human kind has seen, so it's fair to take benefit of the colonies :P
# Jun 11th 2018, 13:49 admad i know
# Jun 11th 2018, 13:49 neon1024 Well we already have an Irishman in charge of the ODI team, and Roy is South African I think
# Jun 11th 2018, 13:48 neon1024 I’ve applied for tickets, so fingers crossed I get some :crossed_fingers:
# Jun 11th 2018, 13:48 neon1024 It’s true. I wonder how quick we will get knocked out of the World Cup
# Jun 11th 2018, 13:48 admad though can always snatch the good scottish players with a kolpak deal :)
# Jun 11th 2018, 13:48 admad @neon1024 sorry to say but you guys are one of the worst inventors of a game :P
# Jun 11th 2018, 13:48 josbeir Normalize => Normalise, Serialize, Serialise
# Jun 11th 2018, 13:47 itmpls but only x amount are pulled in for that view, though I want that "of" to be relative to all
# Jun 11th 2018, 13:47 itmpls is countercache the best solution for this scenario? i have special_offers with have special_offer_dates and on the UI end I want to show that a certain special offer date (in the calendar) is [x] of [y] for that special offer. like 1 of 5. was thinking a counter_cache on special_offers of the dates?
# Jun 11th 2018, 13:47 neon1024 @admad I can’t. England lost to Scotland in the ODI Cricket yesterday! :(
# Jun 11th 2018, 13:47 dereuromark FreedomBehavior maybe?
# Jun 11th 2018, 13:47 josbeir @neon1024 add regular expressions to that list
# Jun 11th 2018, 13:47 jeremyharris haha
# Jun 11th 2018, 13:47 dereuromark LOL, please dont
# Jun 11th 2018, 13:47 admad @neon1024 let's open an issue to rename "Behavior" to "Behaviour" :)