#silverstripe IRC Log

IRC log for 15 December 2016

All timestamps are in UTC.

1: [00:05:12] * Stomach has joined #silverstripe
2: [00:28:28] * Stomach quit (Quit: zzz)
3: [00:29:56] * Stomach has joined #silverstripe
4: [00:32:25] <Nightjar> terryapodaca, ||
5: [00:32:43] <Nightjar> and probably use == instead of = :>
6: [00:32:53] <Nightjar> _should_ do the trick :)
7: [00:33:06] <Nightjar> No promises though.
8: [00:41:50] <samsam> here’s a controversial question
9: [00:43:12] <samsam> do you guys use [::create] or the [new] keyword when creating a new object
10: [00:45:51] <Nightjar> Create
11: [00:45:57] <Nightjar> new bars you from any kind of extension via DI
12: [00:46:00] <Nightjar> and or DI.
13: [00:47:50] * Stomach quit (Quit: zzz)
14: [00:49:43] <Firesphere> Nightjar, template doesn't care about single or double =
15: [00:51:09] * Stomach has joined #silverstripe
16: [00:59:56] <DanaeNZ> commit humour for the day, random numeral "1" appearing in template. Commit message: Remove Rogue 1
17: [00:59:59] <DanaeNZ> I'm so pleased
18: [01:06:53] <Firesphere> http://whatthecommit.com/
19: [01:08:33] <Nightjar> Best work DanaeNZ :D
20: [01:08:47] <Nightjar> Firesphere, I know, but iirc it's "better" in many cases.
21: [01:08:52] <Nightjar> that is to say, less ambiguious.
22: [01:09:07] <Nightjar> I know it's certainly true for "", probably not so much =.
23: [01:10:59] <Firesphere> True
24: [01:13:05] <Firesphere> I just can't be arsed
25: [01:13:15] <Nightjar> Me either, I still leave the $ off many times :<
26: [01:13:46] <Nightjar> But then, last time I wrote template was like... 2013.
27: [01:14:07] <Firesphere> I don't do that, as PHPStorm then tells me I'm an asshole
28: [01:15:33] <Firesphere> Not that PHPStorm is wrong or anything, it's just that I don't like it when even applications call me an asshole
29: [01:16:32] <Nightjar> DONKEYVOID
30: [01:16:50] <Nightjar> err
31: [01:16:54] <Nightjar> mulevoid
32: [01:17:00] <Nightjar> voidmule sounds much cooler though
33: [01:17:10] * Nightjar is now known as voidmule
34: [01:20:52] <Firesphere> WAT
35: [01:23:47] * Stomach quit (Quit: zzz)
36: [01:23:56] <voidmule> U WUT M8
37: [01:27:35] * Azure quit (Remote host closed the connection)
38: [01:27:40] * micmania1 quit (Quit: micmania1)
39: [01:27:40] <Firesphere> Sigh, why did I not get that
40: [01:28:03] <voidmule> There can be only one holeass
41: [01:28:19] <voidmule> :>
42: [01:29:25] <Firesphere> I like donkeyvoid more
43: [01:30:05] <ss-helper> Calling an action on ModelAsController subclass - http://stackoverflow.com/questions/41154931/calling-an-action-on-modelascontroller-subclass
44: [01:32:45] * Azure has joined #silverstripe
45: [01:37:00] * terryapodaca has left #silverstripe
46: [01:39:58] * janneklouman-- has joined #silverstripe
47: [01:42:17] * muskie9 has joined #silverstripe
48: [01:44:45] * janneklouman-- quit (Ping timeout: 256 seconds)
49: [01:50:03] * Stomach has joined #silverstripe
50: [02:03:15] * adrexia quit (Read error: Connection reset by peer)
51: [02:22:50] * micmania1 has joined #silverstripe
52: [02:34:37] * voidmule is now known as Nightjar
53: [02:42:58] * micmania1 quit (Quit: micmania1)
54: [02:46:08] * micmania1 has joined #silverstripe
55: [02:56:45] * micmania1 quit (Quit: micmania1)
56: [03:04:33] <samsam> 04:00 am, still kicking it
57: [03:05:04] <Nightjar> Never not on coffee?
58: [03:11:54] <samsam> I’ve been living like this for a week now, trying to launch my system in december
59: [03:18:29] * spronk has joined #silverstripe
60: [03:18:39] <spronk> evening
61: [03:18:43] * Stomach quit (Quit: zzz)
62: [03:20:03] * Stomach has joined #silverstripe
63: [03:22:06] * pweh has joined #silverstripe
64: [03:24:00] * micmania1 has joined #silverstripe
65: [03:24:32] <samsam> hi
66: [03:28:33] <samsam> if anyone is familiar with getEditForm(); please have a look at this: https://www.silverstripe.org/community/forums/general-questions/show/119098
67: [03:33:00] <Nightjar> edit form shows one form.
68: [03:33:22] <Nightjar> each tab is a new page, you'll notice by URL
69: [03:33:37] <Nightjar> same like Main vs Settings in pages.
70: [03:35:28] <Nightjar> two gridfields for 2 models on one page sounds more like a job for LeftAndMain, rather than the convenience class ModelAdmin
71: [03:35:37] <Nightjar> :)
72: [03:36:23] * Stomach quit (Quit: zzz)
73: [03:42:38] <samsam> I see!
74: [03:43:03] <samsam> So you can actually use LeftAndMain to create “modeladmin”-like pages?
75: [03:43:54] <Nightjar> All cms (all /admin) controllers inherit from LeftAndMain.
76: [03:52:11] * pippy quit (Ping timeout: 260 seconds)
77: [03:57:35] <samsam> off to bed before I start seeing things that aren’t here
78: [03:57:41] <samsam> later nightjar
79: [03:58:03] <Nightjar> ciao!
80: [03:58:38] <spronk> what's happening Nightjar
81: [03:59:25] <Nightjar> gidday spronk
82: [03:59:34] <Nightjar> umm, clients clienting.
83: [04:00:03] * samsam quit (Quit: samsam)
84: [04:00:09] <spronk> heh
85: [04:00:11] <spronk> D:
86: [04:09:25] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
87: [04:27:53] * DanaeNZ quit (Quit: TIME TO FEED)
88: [04:52:00] * micmania1 quit (Quit: micmania1)
89: [05:05:47] * spronk quit (Quit: I may need a longer sleep timer...)
90: [06:01:40] * Shrike_Finland has joined #silverstripe
91: [06:03:37] * janneklouman-- has joined #silverstripe
92: [06:08:13] * janneklouman-- quit (Ping timeout: 265 seconds)
93: [06:19:18] * samsam has joined #silverstripe
94: [07:46:53] * Azure quit (Read error: Connection reset by peer)
95: [07:49:14] * Azure has joined #silverstripe
96: [08:02:17] * samsam quit (Quit: samsam)
97: [08:24:42] * samsam has joined #silverstripe
98: [08:33:28] * janneklouman-- has joined #silverstripe
99: [08:37:58] * janneklouman-- quit (Ping timeout: 250 seconds)
100: [08:43:34] * darianno has joined #silverstripe
101: [09:00:45] * kinglozzer has joined #silverstripe
102: [09:03:20] * janneklouman-- has joined #silverstripe
103: [09:18:31] * samsam quit (Quit: samsam)
104: [09:29:00] * pweh quit (Read error: Connection reset by peer)
105: [10:08:22] * agent44 has joined #silverstripe
106: [10:25:16] * Shrike_Finland quit (Quit: Leaving.)
107: [10:32:24] * Shrike_Finland has joined #silverstripe
108: [10:40:27] * janneklouman-- quit (Ping timeout: 250 seconds)
109: [10:43:42] * Eliseth has joined #silverstripe
110: [10:44:11] <Eliseth> Morning
111: [10:45:56] <Eliseth> I'm trying to overload the logout function in Security in my custom class. I tried Controller::useCustomClass('Security', 'MySecurityExtension', true); but this doesn't seem to do anything, Object::useCustomClass doesn't seem to work either.
112: [10:48:48] * janneklouman-- has joined #silverstripe
113: [10:55:24] * TRB143 quit (Quit: No Ping reply in 180 seconds.)
114: [10:55:31] * TRB143 has joined #silverstripe
115: [11:08:21] * Shrike_Finland quit (Quit: Leaving.)
116: [11:26:10] * Shrike_Finland has joined #silverstripe
117: [11:47:43] * Shrike_Finland quit (Quit: Leaving.)
118: [11:58:07] * Shrike_Finland has joined #silverstripe
119: [12:43:33] * Mike123 has joined #silverstripe
120: [12:44:01] <Mike123> does anyone know know to make File relations translatable ?
121: [12:55:51] * Mike123 quit (Ping timeout: 260 seconds)
122: [13:13:03] * Mike123 has joined #silverstripe
123: [13:13:49] <Mike123> i get this error in my apache [Thu Dec 15 14:31:55.422589 2016] [:error] [pid 26994] [client xx.xxx.xx.xxx:xxxx] script '/var/www/html/wp-login.php' not found or unable to stat
124: [13:14:11] <Mike123> how can i prevent this and what does it mean ? i user SS not wordpress
125: [13:14:15] <Mike123> i use*
126: [13:19:14] <cloph> you can ignore the logs obviously, but you cannot prevent people from trying random URLs.
127: [13:19:39] <cloph> you can check our config thought that it doesn't treat everything ending in php as script...
128: [13:21:20] <Mike123> and if i will make a 301 for this wp-login.php... will i get errors as well ?
129: [13:24:30] <cloph> whether you get a 404 not found logged or having a 301 doesn't really make a difference. Important thing is that you don't allow to execute random php
130: [13:25:40] <Mike123> cloph, thank you !
131: [13:26:36] * UndefinedOffset has joined #silverstripe
132: [13:39:22] * samsam has joined #silverstripe
133: [13:57:09] * Shrike_Finland quit (Quit: Leaving.)
134: [14:06:06] * lerni has joined #silverstripe
135: [14:23:24] * Shrike_Finland has joined #silverstripe
136: [14:24:13] * Shrike_Finland quit (Client Quit)
137: [15:05:10] <samsam> If you want to override the default template for eg FormField_holder, you can just place your custom FormField_holder.ss in mod_dir/templates/forms right?
138: [15:26:16] * muskie9 has joined #silverstripe
139: [15:28:28] * darianno quit (Quit: Textual IRC Client: www.textualapp.com)
140: [15:38:36] * Mike123 quit (Ping timeout: 260 seconds)
141: [15:59:55] * cupcake has joined #silverstripe
142: [16:00:51] <cupcake> is there a way to disable SiteTreeLinkTracking extension
143: [16:01:09] <cupcake> if we notice that a field has broken HTML?
144: [16:01:09] <cupcake> is there a way to disable SiteTreeLinkTracking extension
145: [16:09:19] <cupcake> anyone?
146: [16:29:47] * Shrike_Finland has joined #silverstripe
147: [16:37:26] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
148: [16:53:00] * samsam quit (Quit: samsam)
149: [17:04:25] * agent44 quit (Quit: zzz)
150: [17:24:40] * kinglozzer quit ()
151: [18:02:29] * Shrike_Finland quit (Quit: Leaving.)
152: [18:03:51] * cupcake quit (Ping timeout: 260 seconds)
153: [18:05:12] * samsam has joined #silverstripe
154: [18:09:42] * janneklouman-- quit (Ping timeout: 246 seconds)
155: [18:09:58] * Shrike_Finland has joined #silverstripe
156: [18:15:26] * justanidiot has joined #silverstripe
157: [18:15:53] <justanidiot> does anyone have an idea of how to generate thumbnails from a pdf on IIS?
158: [18:16:24] <justanidiot> I have it working on a linux install. But IIS is killing me with trying to get ImageMagick working.
159: [18:30:11] * Stomach has joined #silverstripe
160: [18:30:55] <Nightjar> cu :(
161: [18:31:00] <Nightjar> pcake
162: [18:31:18] <Snowman23> cupcake?
163: [18:31:28] <Nightjar> either find the magic way to block it in yml, which sounds silly but one would think is doable
164: [18:31:29] <justanidiot> Sounds good.
165: [18:31:40] <Nightjar> or unset the extension in mysite/_config.php
166: [18:31:59] <Nightjar> via Config::inst()->remove/delete/unset/whateveritis
167: [18:32:17] <Nightjar> Snowman23, yes, cupcake :)
168: [18:32:19] * lerni quit (Quit: Connection closed for inactivity)
169: [18:32:22] <Snowman23> you wrote it weirdly
170: [18:32:26] <Snowman23> :O
171: [18:32:30] <Nightjar> She had a question earlier, but is no longer in chan.
172: [18:32:50] <Nightjar> tab complete no work, sadface instead. Because I cannot deliver the solution :(
173: [18:52:12] * samsam quit (Quit: samsam)
174: [19:05:20] * Shrike_Finland quit (Quit: Leaving.)
175: [19:08:56] * Shrike_Finland has joined #silverstripe
176: [19:26:11] * samsam has joined #silverstripe
177: [19:38:13] * Shrike_Finland quit (Quit: Leaving.)
178: [19:42:05] * pippy has joined #silverstripe
179: [19:56:35] <Nightjar> justanidiot, perhaps there's another service you could use than imagemagick?
180: [19:56:39] <Nightjar> on windows
181: [19:57:55] <Nightjar> samsam, No, I don't think so. Yes for themes, etc. But I don't think a module will override the core (or any other module, because then you'd have a bit of a confliction mess)
182: [19:58:28] <samsam> It looked like that indeed. I moved it to mysite/templates/forms and it works that way
183: [19:58:40] <Nightjar> yeah, prescedence is:
184: [19:58:55] <samsam> framework / cms / mysite ?
185: [19:59:09] <Nightjar> core (either framework, or a module) -> theme (in various contexts) -> $project
186: [19:59:35] <Nightjar> $project is 'mysite' by default.
187: [19:59:50] <Nightjar> so in themes you can have
188: [19:59:56] <Nightjar> themename
189: [20:00:05] <Nightjar> as an example
190: [20:00:15] <Nightjar> themename/templates/Template.ss
191: [20:00:24] <Nightjar> themename/templates/Template_action.ss
192: [20:00:39] <Nightjar> themename_module/templates/Template.ss
193: [20:00:52] <Nightjar> and I guess ultimately trumped by (I've not tested this)
194: [20:00:54] * janneklouman-- has joined #silverstripe
195: [20:01:01] <Nightjar> themename_module/templates/Template_action.ss
196: [20:01:24] <Nightjar> _ALL_ of which will be trumped by anything in mysite/templates
197: [20:01:30] <samsam> Nightjar: awesome m8, good to know
198: [20:02:23] <Nightjar> and all of which (theme stuff) will trump stuff in 'a core' (be that core core [framework], or a module core [cms|blog|yourneatpagetypeasamodule])
199: [20:02:58] <Nightjar> so yeh, in short: core -> theme -> project :)
200: [20:03:50] <Nightjar> so in your case, using a core class like Form means the module can't override the framework template, so far as I know.
201: [20:04:42] <Nightjar> but if you were to subclass or use DI to setTemplate on a normal Form by a different name...
202: [20:04:51] <Nightjar> then you could use a module template for sure :>
203: [20:05:06] <Nightjar> class MyNeatModuleForm extends Form
204: [20:05:12] * janneklouman-- quit (Ping timeout: 246 seconds)
205: [20:05:18] <Nightjar> MyNeatModuleFormField_fieldholder.ss
206: [20:05:20] <Nightjar> or whatever
207: [20:05:32] <Nightjar> or use Injector
208: [20:06:11] <Nightjar> define a "ThatModuleField" and instantiate a vanilla FormField, use DI to setTemplate to "ModuleField_fieldholder" and then use it as normal
209: [20:06:21] <Nightjar> Because that's what DI is for :)
210: [20:06:33] <Nightjar> and you don't have to go making a tonne of random subclasses :)
211: [20:06:57] <Nightjar> The power of the config! :o
212: [20:16:52] * kr1t1c4l has joined #silverstripe
213: [20:16:52] <ss-helper> kr1t1c4l: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
214: [20:21:17] * kr1t1c4l has left #silverstripe
215: [20:21:22] <Nightjar> rofl
216: [20:21:24] <Nightjar> k
217: [20:25:56] <Firesphere> ?
218: [20:49:29] * UndefinedOffset quit (Quit: Leaving.)
219: [21:06:42] * DanaeNZ has joined #silverstripe
220: [21:06:42] * muskie9 quit (Read error: Connection reset by peer)
221: [21:09:42] * gelignite has joined #silverstripe
222: [21:12:37] * trash__ has joined #silverstripe
223: [21:13:41] * samsam quit (Quit: samsam)
224: [21:14:26] * micmania1 has joined #silverstripe
225: [21:15:04] <trash__> hi all
226: [21:16:02] * Stomach quit (Quit: zzz)
227: [21:26:51] * UndefinedOffset has joined #silverstripe
228: [21:28:29] * Stomach has joined #silverstripe
229: [21:47:37] * UndefinedOffset quit (Quit: Leaving.)
230: [22:18:44] <Nightjar> hi trash__
231: [22:19:41] <Nightjar> Firesphere, *joins, "welcome!", ... *quits
232: [22:19:43] <Nightjar> like "nope nope nope"
233: [22:20:20] <Firesphere> Ah, right.. happens all the time :P
234: [22:22:43] <Nightjar> I know, but the timing was quick, and I found it mildly amusing at that time of the morning.
235: [22:23:47] <Nightjar> like: Parse error; expected t_question, got E_QUIT
236: [22:59:40] * Tron has joined #silverstripe
237: [23:00:02] * ss-helper quit (Remote host closed the connection)
238: [23:00:16] * ss-helper has joined #silverstripe
239: [23:01:33] <Tron> would someone be able to help me with fulltext and be able to tell me why it's not returning anything?
240: [23:01:40] <Tron> https://github.com/dunatron/locationkeeper/blob/master/mysite/code/CodeSearchPage.php
241: [23:01:55] <Tron> https://github.com/dunatron/locationkeeper/blob/master/mysite/code/DataObjects/Code.php
242: [23:02:46] * Stomach_ has joined #silverstripe
243: [23:05:06] * micmania1 quit (Quit: micmania1)
244: [23:05:35] * Stomach quit (Ping timeout: 268 seconds)
245: [23:06:02] <Nightjar> Yeah because FULLTEXT is an index that isn't really an index.
246: [23:07:14] <Nightjar> Don't ever try and search with MySQL. Only pain lies that way.
247: [23:07:59] <Nightjar> Tron, you'll want something more like https://github.com/silverstripe/silverstripe-fulltextsearch
248: [23:08:48] <Nightjar> Maybe with a backend specifically engineered for searching code syntaxes
249: [23:11:05] <Tron> Ok thatnkyou I will have A look into this. I seemed to get fulltext working, but your right about pain. The pain was where the fuck are my results
250: [23:11:09] <Tron> excuse language
251: [23:18:50] * janneklouman-- has joined #silverstripe
252: [23:20:57] <Nightjar> yeah, I mean MySQL "supports" fulltext indexes (and thus searches), but it is INFAMOUSLY crap.
253: [23:26:58] <Nightjar> pgsql much better, on the other hand. But then you have to learn real SQL if deviating from the ORM.
254: [23:27:16] <Nightjar> Don't think that module is particularly well maintained as it is tbh.
255: [23:27:27] <Nightjar> (postgre DB connector)
256: [23:29:48] * janneklouman-- quit (Ping timeout: 265 seconds)
257: [23:29:56] * Tron quit (Ping timeout: 260 seconds)
258: [23:31:02] * Phlunk3 has joined #silverstripe
259: [23:31:18] * micmania1 has joined #silverstripe
260: [23:41:11] * janneklouman-- has joined #silverstripe
261: [23:49:41] * Stomach_ quit (Quit: zzz)
262: [23:57:28] * Azure quit (Read error: Connection reset by peer)
263: [23:58:31] * trash__ quit (Ping timeout: 260 seconds)
264: [23:59:50] * Azure has joined #silverstripe

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