#silverstripe IRC Log

IRC log for 13 November 2016

All timestamps are in UTC.

1: [00:06:13] * pweh quit (Ping timeout: 258 seconds)
2: [00:23:57] * bubaphex has joined #silverstripe
3: [00:44:31] * pippy quit (Ping timeout: 260 seconds)
4: [00:54:42] * micmania1 quit (Quit: micmania1)
5: [01:24:54] * bubaphex quit (Quit: bubaphex)
6: [01:29:26] * samsam quit (Ping timeout: 260 seconds)
7: [01:43:42] * bubaphex has joined #silverstripe
8: [01:47:59] * Azure has joined #silverstripe
9: [01:52:37] * bubaphex quit (Quit: bubaphex)
10: [02:04:30] * pweh has joined #silverstripe
11: [02:40:42] * pweh quit (Ping timeout: 258 seconds)
12: [03:23:17] <Firesphere> \o
13: [03:27:40] <Firesphere> Hey folks. Yesterday, I released my Yubikey Authentication module for SilverStripe 3.2+, https://github.com/Firesphere/silverstripe-yubiauth/
14: [03:27:45] * bubaphex has joined #silverstripe
15: [03:27:46] <Firesphere> If you feel like it, give it a go!
16: [03:28:36] <ss23> nice :D
17: [03:29:58] <Firesphere> Demoed it on hackday last friday, but back then it was a bit loose.. Username+Password+[ANY YUBIKEY] would validate.
18: [03:30:15] <Firesphere> By now, it's got unittests and only one yubikey per member :P
19: [03:30:22] <ss23> Oh, does this not use U2F yubikey stuff?
20: [03:30:23] <Firesphere> Oeh, I should add that test
21: [03:30:35] <Firesphere> It uses the OTP method, which is easier to setup
22: [03:30:42] <Firesphere> In effect, it's the same
23: [03:30:42] <ss23> But nowhere near as cool!
24: [03:30:56] <Firesphere> I build it in less than 10 hours!
25: [03:31:23] <Firesphere> Also, the Yubikey documentation is like stepping into a cave, not knowing where you end up.
26: [03:32:48] <ss23> yeah... I was looking at adding U2F to some desktop SSH clients
27: [03:32:49] <ss23> :(
28: [03:32:54] <ss23> Talk about lack of documentation
29: [03:33:55] <Firesphere> It's not a lack of documentation really, it's just freakingly confusing. I spent two hours finding a single piece of information: "How do I recognize the Yubikey Fingerprint"
30: [03:35:55] <Firesphere> It's all over the place
31: [03:39:36] <Firesphere> Also, I noticed, Yubico is giving GitHub users a discount, so go grab your Yubikey!
32: [03:45:27] <ss23> I already have two, but yeah :)
33: [03:47:31] <Firesphere> I'm not surprised you have two, but you're not the only one here :P
34: [03:48:24] <ss23> :D
35: [03:50:00] <Firesphere> I used to have two. But then I took an arrow to my keychain and they both got lost
36: [03:50:07] <Firesphere> So now, I have one.
37: [03:51:00] <Firesphere> Blergh, Simple Theme screwing up my SS4 tests :(
38: [03:54:01] * bubaphex quit (Quit: bubaphex)
39: [04:15:08] <Firesphere> Also, The Yubikey 4 (which I have) doesn't seem to support FIDO U2F? ss23
40: [04:26:30] <ss23> It does :)
41: [04:26:35] <ss23> I use mine for Github and Gmail
42: [04:31:49] <Firesphere> Ah, okay, didn't know that :)
43: [04:32:09] <Firesphere> Ah well, that's of later issue, I'm already quite happy with what I managed to build in the few hours I spent on it
44: [04:33:41] <Firesphere> wait... GitHub? How did you enable Yubikey for GitHub?
45: [04:33:51] <Firesphere> I can't find it anywhere, seems to only support text messages :(
46: [04:33:54] <ss23> It's one of their 2FA options
47: [04:33:55] <ss23> um
48: [04:34:48] <ss23> https://github.com/settings/two_factor_authentication/configure
49: [04:34:54] <ss23> "Security Keys" -- add device
50: [04:35:46] <Firesphere> Ah: " This browser doesn’t support the FIDO U2F standard yet. We recommend updating to the latest Google Chrome to start using security key devices. "
51: [04:35:55] <Firesphere> NO I DO NOT WANT TO USE GOOGLE AS MY BROWSER
52: [04:36:32] <Firesphere> That also supports my decision to go with OTP instead of U2F. U2F only works in Chrome, OTP works in all browsers
53: [04:38:17] <ss23> Yeah, been a long time since Firefox actually did proactive security/usability now :()
54: [04:43:27] <Firesphere> Same goes for Edge, IE and Opera
55: [04:44:03] <ss23> Edge is doing good stuff, but behind the curve. At least they're trying
56: [04:44:06] <ss23> seems like Firefox has given up
57: [04:46:43] * micmania1 has joined #silverstripe
58: [04:48:16] * pweh has joined #silverstripe
59: [04:52:49] * bubaphex has joined #silverstripe
60: [04:56:38] * Azure quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
61: [05:00:18] * Azure has joined #silverstripe
62: [05:04:34] * bubaphex quit (Quit: bubaphex)
63: [05:43:46] * neomang quit (Ping timeout: 260 seconds)
64: [06:39:41] <Firesphere> Firefox seems to have shift focus. They're now all about being fast and remove features it seems.
65: [06:39:47] <Firesphere> Still love Firefox though :D
66: [06:39:57] <Firesphere> Freakin' caching :|
67: [06:40:18] <Firesphere> That cost me about an hour to get reCAPTCHA working, due to cache not being cleared correctly
68: [06:41:00] <Firesphere> Quick check, if you go here: https://casa-laguna.net/e-log/show/you-are-now-a-donor-before-youre-born
69: [06:41:20] <Firesphere> And you click on the + sign on the right, besides "Leave a comment"
70: [06:41:26] <Firesphere> Do you get a recaptcha field?
71: [06:44:24] * micmania2 has joined #silverstripe
72: [06:45:04] * micmania1 quit (Ping timeout: 260 seconds)
73: [06:45:05] * micmania2 is now known as micmania1
74: [06:54:57] <Firesphere> \o micmania1
75: [06:55:06] <Firesphere> You have an identity crisis?
76: [06:56:57] * helenclarko quit (Ping timeout: 240 seconds)
77: [07:04:09] <Robdgreat> seems so
78: [07:04:15] <Robdgreat> some people just have a nick change fetish
79: [07:07:06] * micmania1 quit (Quit: micmania1)
80: [07:15:21] <Firesphere> Last time I saw micmania, he was drinking beer. So quite possibly related :P
81: [07:17:39] <Firesphere> Now, how can I enforce Yubikey Authentication, or actually, disable the default MemberAuthentication based on a SiteConfig setting
82: [07:19:29] <Firesphere> At build, I don't have access to the SiteConfig, so I can't use that :(
83: [07:29:44] * pweh quit (Ping timeout: 258 seconds)
84: [07:30:40] * pweh has joined #silverstripe
85: [07:34:52] * micmania1 has joined #silverstripe
86: [07:55:19] * micmania1 quit (Quit: micmania1)
87: [08:00:54] * micmania1 has joined #silverstripe
88: [08:23:15] * micmania1 quit (Quit: micmania1)
89: [09:58:55] * darjusit has joined #silverstripe
90: [10:01:22] <darjusit> HI all
91: [10:03:06] <darjusit> is any posibility to have urls in yml like this /$locale/controller/$Action/$ID/$OtherID ? I am using only framework without CMS
92: [10:06:20] <Firesphere> What exactly are you trying to achieve? Because that should be easily done, multiple translation-modules use this way of addressing URL's
93: [10:06:34] <darjusit> does this linksafter framework install expired or putted somethere else? http://doc.silverstripe.org/framework/en/reference/director#routing
94: [10:06:49] <Firesphere> You might want to have a look at Tractorcow's module for adding locale's
95: [10:07:26] <Firesphere> Can't find the link right now, but that module makes /{language}/whatever/you/want translate to /whatever/you/want?lang={laguage}
96: [10:07:32] <darjusit> Firesphere: all modules are based on pages I am uning SS without cms so no pages for me, and I dont need them
97: [10:07:45] <Firesphere> Ah right.
98: [10:07:47] <Firesphere> Hmmm...
99: [10:08:29] <Firesphere> I _think_ you could override it with a $locale//$Action//$ID//$OtherID rewrite
100: [10:08:44] <Firesphere> And give it a higher priority than the default priority of 10
101: [10:09:05] <darjusit> hmm ok I wil try thx :)
102: [10:09:28] <Firesphere> I've never tried such a thing though. So don't hold me responsible if it doesn't work that way ;)
103: [10:09:48] <darjusit> ok :)
104: [10:09:56] <Firesphere> But I'm fairly sure, with some priority setting, you should be able to at least get somewhere :)
105: [10:10:06] <darjusit> :)
106: [10:15:03] * bubaphex has joined #silverstripe
107: [10:15:12] <Firesphere> You could have a look at how routing works, specifically in framework/_config/routing.yml
108: [10:15:35] <Firesphere> And use the before/after methods that are available for the config
109: [10:15:48] <Firesphere> That's the best I can come up with right now :)
110: [10:28:19] <darjusit> thx :) but its frustrating that they gives links like http://doc.silverstripe.org/framework/en/topics/controller ant several other ant they not working as I remember in 2016 start they worked now. no docs on framework itselt :/
111: [10:30:34] * bubaphex quit (Quit: bubaphex)
112: [11:13:07] <darjusit> can I somehow Dataobject::get() in _config.php and then foreach it?
113: [11:24:19] <pweh> yo
114: [11:24:22] <pweh> earthquake
115: [11:24:27] <pweh> did you guys feel it?
116: [11:26:16] <xyphoid> yep
117: [11:26:20] <xyphoid> i was just in bed
118: [11:26:26] <darjusit> country?
119: [11:26:31] <xyphoid> now we're both going ADRENALIN NO SLEEP
120: [11:32:12] <pweh> ahahaha yeah
121: [11:32:15] <pweh> darjusit, new zealand
122: [11:32:24] <pweh> i was sitting and felt the chair slightly rock
123: [11:32:53] * xyphoid is in chch, it was a couple of minutes of 'my house is a boat'
124: [11:33:09] <xyphoid> aaand aftershock
125: [11:34:51] <pweh> serious?
126: [11:36:16] <pweh> xyphoid, you okay?
127: [11:37:28] <Firesphere> That was a biggy :|
128: [11:37:36] <Firesphere> Wow, literally got thrown of my couch.
129: [11:38:45] <xyphoid> yeah no damage or anything
130: [11:39:12] <xyphoid> it was very bouncy compared to actual chch eq shakes whichw ere much more rattly
131: [11:40:38] <pweh> yeah.. it was almost pleasant
132: [12:16:20] <darjusit> in _config.php I am foreacing this $langs = LanguageDO::get()->map("ID", "Title")->toArray(); and getting fatal error: Call to a member function quoteString() on null
133: [12:16:52] <darjusit> is not possible somehow to get languages from DB in fonfig file?
134: [12:17:28] * _longines quit (Remote host closed the connection)
135: [12:33:31] <pweh> xyphoid, you're in for a tsunami
136: [12:33:39] <pweh> chch is east coast - get out
137: [12:33:43] <pweh> its hit kaikoura
138: [13:01:36] <darjusit> Why these routses not woking http://www.sspaste.com/paste/show/5828629989b4d then i input domain/lt it working good when i put domain/lt/puslapiai/1 it says that home controller dont have method, but it should go to PageController
139: [13:37:26] * samsam has joined #silverstripe
140: [13:42:32] * gelignite has joined #silverstripe
141: [14:00:17] * Azure quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
142: [15:12:56] * pweh quit (Read error: Connection reset by peer)
143: [15:44:33] * helenclarko has joined #silverstripe
144: [16:04:26] * samsam quit (Ping timeout: 260 seconds)
145: [16:55:13] * Azure has joined #silverstripe
146: [18:22:18] * bubaphex has joined #silverstripe
147: [18:35:06] * bubaphex quit (Quit: bubaphex)
148: [18:40:18] * bubaphex has joined #silverstripe
149: [18:43:11] * bubaphex quit (Client Quit)
150: [18:44:07] * bubaphex has joined #silverstripe
151: [18:45:42] * bubaphex quit (Client Quit)
152: [19:01:31] * Stomach has joined #silverstripe
153: [19:24:05] * bubaphex has joined #silverstripe
154: [19:59:10] * DanaeNZ has joined #silverstripe
155: [19:59:39] * Hailwood has joined #silverstripe
156: [19:59:54] <Hailwood> Morning folks
157: [20:01:13] <DanaeNZ> morning morning
158: [20:01:36] <DanaeNZ> Everyone in Welly all good? Although I've heard most people aren't going in to work
159: [20:11:27] <Hailwood> All my welly people are good. I know the schools are meant to be closed
160: [20:17:26] <xyphoid> seems like welly had more issues from this one than chch
161: [20:17:33] <xyphoid> i guess everything's already fallen over here already
162: [20:33:08] * Stomach quit (Quit: zzz)
163: [20:34:50] * Stomach has joined #silverstripe
164: [20:42:31] * DanaeNZ quit (Remote host closed the connection)
165: [20:43:06] * DanaeNZ has joined #silverstripe
166: [20:47:26] * Pyromanik has joined #silverstripe
167: [20:47:41] * DanaeNZ quit (Ping timeout: 260 seconds)
168: [20:48:05] * Pyromanik quit (Client Quit)
169: [20:49:31] * Stomach quit (Quit: zzz)
170: [20:49:47] * bubaphex quit (Quit: bubaphex)
171: [20:50:48] * Stomach has joined #silverstripe
172: [20:52:36] * Stomach quit (Client Quit)
173: [21:03:50] * micmania1 has joined #silverstripe
174: [21:04:21] * Stomach has joined #silverstripe
175: [21:05:35] * Stomach quit (Client Quit)
176: [21:08:16] * DanaeNZ has joined #silverstripe
177: [21:08:18] * bubaphex has joined #silverstripe
178: [21:12:15] * bubaphex quit (Client Quit)
179: [21:14:35] * bubaphex has joined #silverstripe
180: [21:40:45] * spronk has joined #silverstripe
181: [21:41:06] <spronk> whatup all
182: [21:46:44] <Hailwood> Hmm, if I have a block of code, is there a way to count how many queries that executes?
183: [21:53:54] * Stomach has joined #silverstripe
184: [22:21:37] * UncleCheese has joined #silverstripe
185: [22:30:29] * bubaphex quit (Quit: bubaphex)
186: [22:49:52] * pweh has joined #silverstripe
187: [22:55:00] <Hailwood> Can you filter a query based on the existence of items in a many_many relationship?
188: [22:55:50] <Hailwood> basically I need ProductAccordion::get()->filter(['MyRelationship.Count' => 0])
189: [23:00:02] * ss-helper quit (Remote host closed the connection)
190: [23:00:17] * ss-helper has joined #silverstripe
191: [23:00:33] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
192: [23:19:39] <Firesphere> See my response in Slack Hailwood
193: [23:19:54] <Firesphere> ProductAccordion::get()->filter(['MyRelationship.ID:not' => 0]);
194: [23:19:54] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
195: [23:20:09] <Hailwood> Thanks Firesphere, Going to try it as soon as I've got this model admin working. I'm surprised .ID works with many_many
196: [23:20:31] <Firesphere> Any relation can be addressed that way, that's by design ;)
197: [23:22:05] * UncleCheese has joined #silverstripe
198: [23:33:28] * pweh quit (Ping timeout: 244 seconds)
199: [23:43:14] * micmania1 quit (Quit: micmania1)
200: [23:48:40] * bubaphex has joined #silverstripe

These logs were automatically created by ss-log on irc.freenode.net.