#silverstripe IRC Log

IRC log for 23 May 2016

All timestamps are in UTC.

1: [00:00:01] * ss-helper quit (Remote host closed the connection)
2: [00:00:15] * ss-helper has joined #silverstripe
3: [00:06:47] * aragonne quit (Quit: aragonne)
4: [00:12:05] * Stomach has joined #silverstripe
5: [00:30:30] * Hailwood quit (Remote host closed the connection)
6: [01:45:49] * Admonish has joined #silverstripe
7: [01:47:30] <Admonish> Hey everyone. I was wondering if it is possible to user filter to create a WHERE cluase with a <> (not equal to) operator.
8: [01:48:49] <Admonish> Example: WHERE field<>1
9: [01:51:10] <Firesphere> You can use either ->exclude(array(field => 1)); or do a direct ->where(your statement)
10: [01:52:23] <Admonish> Thank you Firesphere for you quick reply
11: [01:58:27] <Admonish> Firesphere I just realised that because my field is of the boolean type I can actually use either exclude() or filter(). So I was wondering if there is much of a speed difference between the two.
12: [01:59:15] * micmania1 quit (Quit: micmania1)
13: [01:59:41] <Firesphere> Nope, there's no difference. It's purely syntax. From a semantical point of view, there's also hardly any difference.
14: [02:01:05] <Admonish> Firesphere oh ok. Thanks :D
15: [02:07:42] * Hailwood has joined #silverstripe
16: [02:08:18] <Hailwood> Hey folks, is anyone here using PHPstorm & ubuntu (Unity Desktop Environment?)
17: [02:08:32] * Admonish quit (Ping timeout: 244 seconds)
18: [02:24:00] * micmania1 has joined #silverstripe
19: [02:58:26] * aragonne has joined #silverstripe
20: [03:14:58] * aragonne quit (Quit: aragonne)
21: [04:09:50] <Hailwood> So with silverstripe the cache for web requests is separate to the cache for cli requests - so... How can we manipulate the web request cache from a dev/tasks task that gets run via cron?
22: [04:23:41] * Admonish has joined #silverstripe
23: [04:23:54] <Admonish> How do you get a member by Id ?
24: [04:24:20] <Hailwood> Member::get_by_id('Member', $id);
25: [04:25:52] <Hailwood> ^ Admonish
26: [04:29:35] <Firesphere> Current user? Or any
27: [04:29:50] <Firesphere> if any, Member::get()->filter(array('ID' => $id));
28: [04:30:32] <Admonish> any
29: [04:31:02] <Hailwood> Firesphere, any reason you apply a manual filter rather than using ::get_by_id?
30: [04:32:07] <Firesphere> New ORM method, which I simply prefer over the old one. Since the old one passes in the classname twice
31: [04:32:40] <Hailwood> Yeah I've never understood that..
32: [04:33:26] <Firesphere> What don't you understand?
33: [04:33:44] <Hailwood> Why the method requires the classname passed in
34: [04:33:59] <Firesphere> Ah, well, that's because it's legacy ;)
35: [04:34:45] * cheddam quit (Ping timeout: 246 seconds)
36: [04:34:59] <Hailwood> Hey Firesphere You don't happen to know how to flush the http-cache when doing a dev/tasks task via sake do ya?
37: [04:36:13] <micmania1> Hailwood: you need to run it as the web user
38: [04:36:31] <micmania1> eg. php framework/cli-script.php dev/build flush=1
39: [04:36:48] <Firesphere> Run it as the webserver indeed.
40: [04:37:01] <Firesphere> sudo -u www-data framework/sake dev/task/myTask
41: [04:37:29] <Firesphere> But that requires the www-data user to have a shell
42: [04:37:59] <Firesphere> Other, more rigorous method, is have it simply purge the www-data cache dir.
43: [04:39:46] <Hailwood> micmania1, Yeah tried that one, still doesn't flush it, Firesphere yeah and passwordless auth on that shell - purging the www-data cache wouldn't cause it to refresh the frontend cache until it's hit by a user though (I know I could curl it but... dirty)
44: [04:45:50] * spekulatius quit (Ping timeout: 260 seconds)
45: [04:45:54] * g-n0m3 quit (Ping timeout: 276 seconds)
46: [04:46:32] * Phlunk3 quit (Remote host closed the connection)
47: [05:00:10] <ss-helper> Re: RFC: Remove mailer in favor of SwiftMailer - https://groups.google.com/d/msg/silverstripe-dev/oEWWT2VDl5w/sSdJ8QezDgAJ
48: [05:04:07] * spekulatius has joined #silverstripe
49: [05:04:12] * g-n0m3 has joined #silverstripe
50: [05:16:43] * willr quit (Quit: willr)
51: [05:26:05] * TRB143 quit (Remote host closed the connection)
52: [05:30:11] <ss-helper> Re: RFC: Remove mailer in favor of SwiftMailer - https://groups.google.com/d/msg/silverstripe-dev/oEWWT2VDl5w/aZvZo_B-CwAJ
53: [05:45:08] * wmk has joined #silverstripe
54: [05:45:11] <ss-helper> Re: [silverstripe-dev] Re: RFC: Remove mailer in favor of SwiftMailer - https://groups.google.com/d/msg/silverstripe-dev/oEWWT2VDl5w/Lnm6pc6gDAAJ
55: [06:02:10] * Admonish quit (Quit: Going offline, see ya! (www.adiirc.com))
56: [06:03:54] * Mike123 has joined #silverstripe
57: [06:22:08] * Werner__ has joined #silverstripe
58: [06:22:44] * Stomach quit (Ping timeout: 244 seconds)
59: [06:25:28] * wmk quit (Ping timeout: 244 seconds)
60: [06:26:55] * Werner__ quit (Read error: Connection reset by peer)
61: [06:29:43] * wmk has joined #silverstripe
62: [06:37:30] * aragonne has joined #silverstripe
63: [06:37:45] * marius has joined #silverstripe
64: [06:38:08] * marius is now known as Guest53241
65: [06:38:12] * Eliseth has joined #silverstripe
66: [06:39:07] <Guest53241> hello, can I add to silverstripe mysqli_ping ? and how can I do ?
67: [06:39:58] <wmk> ?
68: [06:41:06] * Stomach has joined #silverstripe
69: [06:42:20] <Guest53241> I get error "MySQL server has gone away" very often, and I want add mysqli_ping to silverstripe to reconnect to databae
70: [06:42:23] <Guest53241> database
71: [06:43:55] <wmk> hmm, never had this problem tbh.
72: [06:45:40] <Guest53241> task from the client: Persistent connections need to be configured to automatically reconnect in the event that the connection has been reset. MySQLi supports a ping() method that enables this functionality: http://php.net/manual/en/mysqli.ping.php
73: [06:45:40] <wmk> the threads i found on this topic doubt if reconnecting works, when the server is unresponsive.
74: [06:50:20] * micmania1 quit (Quit: micmania1)
75: [06:50:24] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
76: [06:59:38] * cheddam has joined #silverstripe
77: [07:14:12] * arnhoe has joined #silverstripe
78: [07:21:11] * swaiba has joined #silverstripe
79: [07:27:01] * willr has joined #silverstripe
80: [07:27:34] * marvanni has joined #silverstripe
81: [07:29:56] * willr quit (Client Quit)
82: [07:32:05] <swaiba> anyone from SS online?
83: [07:33:40] * willr has joined #silverstripe
84: [07:58:29] * willr quit (Ping timeout: 244 seconds)
85: [07:58:46] * kinglozzer has joined #silverstripe
86: [07:58:52] * willr has joined #silverstripe
87: [08:26:04] * DimiStripe has joined #silverstripe
88: [08:35:43] * cheddam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
89: [08:41:29] * aragonne quit (Quit: aragonne)
90: [08:56:50] * agent44 has joined #silverstripe
91: [09:04:56] * Stomach quit (Quit: zzz)
92: [09:12:11] * swaiba quit (Remote host closed the connection)
93: [09:26:45] * kinglozzer quit (Remote host closed the connection)
94: [09:34:36] * kinglozzer has joined #silverstripe
95: [09:48:34] * Eliseth has joined #silverstripe
96: [10:21:03] * willr quit (Quit: willr)
97: [11:29:01] * marvanni quit (Ping timeout: 240 seconds)
98: [11:52:08] * kinglozzer quit (Remote host closed the connection)
99: [12:00:01] * shellbackpacific has joined #silverstripe
100: [12:33:07] * UndefinedOffset has joined #silverstripe
101: [12:37:42] <Guest53241> can I add to silverstripe mysqli_ping ? reconnect to db
102: [12:41:39] * kinglozzer has joined #silverstripe
103: [12:57:55] * cupcake has joined #silverstripe
104: [12:58:07] <cupcake> ola 0/
105: [12:58:19] <cupcake> i have an issue with i18nTextCollectorTask
106: [12:58:26] <cupcake> trying to run it and it gives me
107: [12:59:22] <cupcake> http://www.sspaste.com/paste/show/5742fea059b20
108: [12:59:27] <cupcake> any idea what is wrong?
109: [12:59:34] <cupcake> it seems im missing phpunit
110: [13:01:07] <wmk> cupcake, in CLI or browser?
111: [13:01:37] <wmk> i normally run it in CLI without problems. And the betterI18N subclass...
112: [13:01:52] <cupcake> cli
113: [13:02:08] <wmk> https://packagist.org/packages/zauberfisch/silverstripe-better-i18n
114: [13:02:54] <cupcake> we have our own theme translator module
115: [13:03:08] <wmk> weird. maybe you have to install phpunit as require-dev?
116: [13:03:47] <cupcake> its very weird as on other sites it didnt give me this problem
117: [13:03:50] <cupcake> yes i do have it
118: [13:04:09] <cupcake> http://www.sspaste.com/paste/show/5742ffc3ddaac
119: [13:04:32] <wmk> but cupcake, do you have to collect in framework?
120: [13:04:45] <cupcake> no
121: [13:04:51] <cupcake> i want to collect from 3 folders
122: [13:04:54] <wmk> you should tell i18 task which module to collect
123: [13:05:16] <wmk> in line 42 of your error dump it tries to collect from framework somehow
124: [13:05:48] <cupcake> http://www.sspaste.com/paste/show/5743002638ffe
125: [13:05:51] <cupcake> i tell it
126: [13:08:13] <wmk> wohoo...! https://github.com/raket/idea-silverstripe/issues/66 is fixed!
127: [13:09:37] <cupcake> wmk http://www.sspaste.com/paste/show/57430109c7d0d
128: [13:09:45] <cupcake> line 9 gets all modules in base path
129: [13:09:53] <cupcake> thats why its traversing framework also
130: [13:10:02] <cupcake> maybe i should override this function?
131: [13:10:36] <wmk> or use betterI18N for modules ;)
132: [13:10:47] <wmk> really, it's better IMHO
133: [13:13:50] <cupcake> but still that one will traverse framework module
134: [13:16:22] * agent44 quit (Quit: agent44)
135: [13:18:19] * r3v3rb has joined #silverstripe
136: [13:18:23] <r3v3rb> hello
137: [13:18:39] <wmk> world?
138: [13:19:07] <r3v3rb> i’m still struggling to get a redraw/reload of entwine after a dataobject saving - anyone have any ideas?
139: [13:19:16] <r3v3rb> wmk: yes ! almost
140: [13:19:52] <wmk> oh, 2cv-wine...
141: [13:20:13] * agent44 has joined #silverstripe
142: [13:20:37] <r3v3rb> 2cv-wine?
143: [13:33:49] * Eliseth quit (Ping timeout: 244 seconds)
144: [13:39:11] <wmk> crazy, austrian websites down
145: [13:39:23] <wmk> mine are working, but don't have infos about the new president :(
146: [13:39:59] * auto9 has joined #silverstripe
147: [13:41:28] <auto9> I'm doing a presentation for a client on Thursday on SS vs Wordpress and so far I think I'm making WP sound too attractive they'll choose it :( fml
148: [13:41:52] <wmk> auto9, well... there've been some blog posts about that topic
149: [13:42:04] <wmk> did you ever code wordpress and silverstripe?
150: [13:42:16] <wmk> I once tried WP, it was a pain after knowing SS
151: [13:42:22] <r3v3rb> auto9, wp is great - until your site is hacked because of a lazy plugin author…
152: [13:42:47] <wmk> r3v3rb, well... same here, but WP is a pain if you want to write code
153: [13:42:50] <wmk> or copy to a dev server
154: [13:43:03] <r3v3rb> wmk, wp is a nightmare courtesy of the ‘LOOP'
155: [13:43:43] <r3v3rb> auto9: what is it thats attractive to them/you about wp
156: [13:43:58] <auto9> SS is my home. I've tried to stay away from WP cos I hate coding it and it's outdated ness but from the frontend a non techy client can't see under the hood
157: [13:44:23] <wmk> auto9, you've seen https://www.silverstripe.org/blog/silverstripe-vs-wordpress/ ?
158: [13:45:17] <auto9> I've just been reading that thanks. I'm going to try and put the cost and security issues across
159: [13:47:17] <auto9> I <3 SS and don't want them to choose WP. Their current SS website is great. WP would be such a step back :(
160: [13:48:17] <wmk> what do they need? just tons of modules are not the answer. If you want to customize something for the client it's easy with ss
161: [13:49:49] <auto9> They have got a new guy in and he's all over the place spitting out crazy ideas. He's heard the Wordpress buzzword and wants to jump on the bandwagon
162: [13:50:07] <wmk> oh. sounds like a journey
163: [13:50:29] <auto9> Indeed!
164: [13:53:25] <wmk> have to run, cu
165: [13:54:34] <r3v3rb> auto9: good luck with that
166: [13:54:49] <auto9> Cheers guys :)
167: [13:58:04] * wmk quit (Ping timeout: 244 seconds)
168: [14:00:20] * propeller has joined #silverstripe
169: [14:02:54] * muskie9 has joined #silverstripe
170: [14:06:04] * r3v3rb_ has joined #silverstripe
171: [14:06:46] * propeller quit (Ping timeout: 250 seconds)
172: [14:08:34] * r3v3rb quit (Ping timeout: 240 seconds)
173: [14:10:19] * Azure quit (Quit: My Mac has gone to sleep. ZZZzzz…)
174: [14:11:52] * r3v3rb_ quit (Ping timeout: 264 seconds)
175: [14:18:29] * mento has joined #silverstripe
176: [14:21:12] * r3v3rb has joined #silverstripe
177: [14:21:13] * r3v3rb quit (Client Quit)
178: [14:21:15] * cmcramer has joined #silverstripe
179: [14:24:52] * Guest53241 quit (Quit: Page closed)
180: [14:26:52] <cmcramer> I posted this to the SS forum Saturday. Any ideas on why routing rule is breaking page fields and functions? http://www.silverstripe.org/community/forums/general-questions/show/111983
181: [14:27:34] * r3v3rb has joined #silverstripe
182: [14:28:24] * auto9 quit (Quit: -a- Connection Timed Out)
183: [14:28:40] * auto9 has joined #silverstripe
184: [14:29:30] <r3v3rb> so, I have this in my js file for a field I am creating: http://www.sspaste.com/paste/show/5743135c9953e - on first attempt at loading the page or after initial save I get TypeError: “Cannot read property 'dataset' of null" yet the field is there - or is the JS being loaded before the PJAX fragment? do you think? If so how can I ensure the JS is loaded after the page content
185: [14:33:05] <r3v3rb> I have Requirements::set_force_js_to_bottom(true) already btw
186: [14:36:58] <kinglozzer> r3v3rb: I'd just move the logic for getting that element somewhere else that's definitely triggered later
187: [14:37:23] <kinglozzer> e.g. change it to canvasWidth = (parseInt(this.getDataSet().canvasWidth, 10) * 3.78);
188: [14:37:28] <kinglozzer> Then implement a getDataSet function
189: [14:37:30] <r3v3rb> kinglozzer: except its the core of the app in that loaded field
190: [14:38:05] <r3v3rb> so if the function fails so does the field loading
191: [14:38:17] <r3v3rb> or am I being stupid ?
192: [14:38:27] <r3v3rb> answer nicely!
193: [14:39:08] <kinglozzer> r3v3rb: I dunno :P this is CMS, yeah?
194: [14:39:15] * PenguinMan98 has joined #silverstripe
195: [14:39:26] <kinglozzer> If so, I don't think Requirements::set_force_js_to_bottom(true) will make any difference
196: [14:39:28] <r3v3rb> kinglozzer: it is in a new ‘canvasfield’ that has its own requirements
197: [14:39:39] <r3v3rb> okay, that makes sense
198: [14:41:57] * ElPinguino98 has joined #silverstripe
199: [14:41:57] <ss-helper> ElPinguino98: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
200: [14:42:59] <r3v3rb> a full blown page refresh always loads correctly so its to do with the pjax fragment being loaded and the dom being refreshed on the loaded field I’m guessing, that’s why I want to know how to perform a re-initialise of entwine/redraw of the dom
201: [14:43:39] * PenguinMan98 quit (Ping timeout: 260 seconds)
202: [14:44:00] * PenguinMan98 has joined #silverstripe
203: [14:44:24] <kinglozzer> r3v3rb: So the JS is being executed before the new HTML is written?
204: [14:44:46] <r3v3rb> it seems that way as the dataset is called on a ‘null’ object
205: [14:44:46] * PenguinMan98 quit (Read error: Connection reset by peer)
206: [14:45:12] <kinglozzer> r3v3rb: And if you move the document.getElementById stuff to your onmatch?
207: [14:45:18] * mento quit (Quit: Page closed)
208: [14:45:46] * PenguinMan98 has joined #silverstripe
209: [14:46:27] <r3v3rb> kinglozzer: same shit, different day :(
210: [14:46:34] * ElPinguino98 quit (Ping timeout: 260 seconds)
211: [14:48:19] <r3v3rb> okay, first load of page in server response GET = no js for canvasfield pulled in
212: [14:48:43] <r3v3rb> ctrl-r reload and all js etc is called and field works as expected
213: [14:49:08] <r3v3rb> first load = when clicking from a gridfield to load the record - ie PJAX
214: [14:49:30] <r3v3rb> ctrl-r = full reload of current url = straight request/response to direct DO
215: [14:50:57] <kinglozzer> r3v3rb: So the issue is a missing extra JS lib?
216: [14:51:32] <r3v3rb> kinglozzer: one mo
217: [14:52:24] * PenguinMan98 quit (Ping timeout: 260 seconds)
218: [14:54:45] * PenguinMan98 has joined #silverstripe
219: [14:55:54] * Eliseth has joined #silverstripe
220: [14:56:04] * ElPinguino98 has joined #silverstripe
221: [14:57:02] * Mike123 quit (Ping timeout: 250 seconds)
222: [14:59:24] * PenguinMan98 quit (Ping timeout: 260 seconds)
223: [15:00:13] <ss-helper> Silverstripe post news to social network - http://stackoverflow.com/questions/37393983/silverstripe-post-news-to-social-network
224: [15:03:29] * ElPinguino98 quit (Ping timeout: 260 seconds)
225: [15:04:05] * PenguinMan98 has joined #silverstripe
226: [15:07:51] * arnhoe quit ()
227: [15:32:34] * cupcake quit (Ping timeout: 250 seconds)
228: [15:44:33] * krofek__ has joined #silverstripe
229: [15:44:58] * vitaly_ quit (Read error: Connection reset by peer)
230: [15:45:33] * vitaly_ has joined #silverstripe
231: [15:47:33] * krofek_ quit (Ping timeout: 240 seconds)
232: [15:50:15] * krofek__ quit (Ping timeout: 246 seconds)
233: [15:56:15] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
234: [16:00:19] * Eliseth quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
235: [16:15:14] <ss-helper> Silverstripe: Not able to access Page fields in controller with custom route - http://stackoverflow.com/questions/37395713/silverstripe-not-able-to-access-page-fields-in-controller-with-custom-route
236: [16:16:22] * TRB143 has joined #silverstripe
237: [16:18:44] <kinglozzer> Booo Github :(
238: [16:35:10] <cloph> ? what did I miss?
239: [16:48:37] * kinglozzer quit (Remote host closed the connection)
240: [16:59:34] * aragonne has joined #silverstripe
241: [17:00:27] <ss-helper> Re: [silverstripe-dev] Re: RFC: Remove mailer in favor of SwiftMailer - https://groups.google.com/d/msg/silverstripe-dev/oEWWT2VDl5w/eWoL6rzFDAAJ
242: [17:06:48] * OVSIWNv has joined #silverstripe
243: [17:06:48] <ss-helper> OVSIWNv: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
244: [17:06:48] * OVSIWNv has left #silverstripe
245: [17:10:26] * agent44 quit (Quit: zzz)
246: [17:16:03] * aragonne quit (Quit: aragonne)
247: [17:41:44] * Azure has joined #silverstripe
248: [18:07:46] * r3v3rb quit (Quit: r3v3rb)
249: [18:24:51] * cmcramer quit (Quit: Textual IRC Client: www.textualapp.com)
250: [18:27:53] * muskie9 has joined #silverstripe
251: [18:39:40] * spekulatius quit (Ping timeout: 272 seconds)
252: [18:48:01] <muskie9> how would I set this to false: https://github.com/silverstripe/silverstripe-translatable/blob/2.2/code/model/Translatable.php#L1390
253: [18:49:18] * kinglozzer has joined #silverstripe
254: [18:53:57] * kinglozzer quit (Ping timeout: 276 seconds)
255: [18:56:25] * liori quit (Remote host closed the connection)
256: [18:56:35] * liori has joined #silverstripe
257: [18:59:14] * shellbac1pacific has joined #silverstripe
258: [19:00:32] * shellbackpacific quit (Ping timeout: 260 seconds)
259: [19:19:17] <neomang> I'm working on a buildtask but I want to make sure the code is getting the information correctly and fix any issues. What's the best way for me to run it directly to test it?
260: [19:34:51] * aragonne has joined #silverstripe
261: [19:39:16] * Phlunk3 has joined #silverstripe
262: [20:00:21] * Stomach has joined #silverstripe
263: [20:00:35] * glenn-bautista quit (Quit: Leaving.)
264: [20:07:29] * aragonne quit (Quit: aragonne)
265: [20:26:33] * chillu_23 has joined #silverstripe
266: [20:26:44] <Stomach> hey chillu_23
267: [20:31:52] <chillu_23> Guten Morgen!
268: [20:32:47] * aragonne has joined #silverstripe
269: [20:34:52] * gelignite has joined #silverstripe
270: [20:42:44] <neomang> If I try to run a code snippet in a file under mysite/code/ to check its output it tells me that permission is denied. How would I run this code otherwise?
271: [20:43:08] <neomang> erm, rather, how would I run this code to check output and check for errors?
272: [20:50:08] * UndefinedOffset quit (Quit: Leaving.)
273: [21:02:06] * BrewNaked has joined #silverstripe
274: [21:13:32] <Hailwood> neomang, Do you mean run and check it manually, or from a test?
275: [21:14:12] <Hailwood> Hey Firesphere, I worked out my caching thing. Turns out we were going down the wrong track.
276: [21:15:25] * glenn-bautista has joined #silverstripe
277: [21:30:05] * micmania1 has joined #silverstripe
278: [21:34:34] <Hailwood> Morning micmania1
279: [21:34:40] <micmania1> Hailwood: mornin’
280: [21:35:57] * Stomach quit (Quit: zzz)
281: [21:36:51] * Stomach has joined #silverstripe
282: [21:38:22] <Hailwood> So I solved the caching issue from yesterday, thought you might be interested in the resolution since it's a completely different path to what we were trying
283: [21:43:13] <Hailwood> Basically I just ended up registering a new "backend" for SS_Cache so I could set the temp directory for that backend.
284: [21:43:20] * spekulatius has joined #silverstripe
285: [21:46:02] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
286: [21:47:08] * Stomach quit (Quit: zzz)
287: [21:48:10] * Stomach has joined #silverstripe
288: [21:53:39] * DimiStripe quit (Quit: DimiStripe)
289: [21:59:31] <micmania1> Hailwood: did the sudo -u www-data option not work?
290: [22:00:55] <Hailwood> micmania1, Nope since it wanted a password, I would have needed to give www-data a login shell
291: [22:01:05] <Hailwood> and I cannot modify the users on this server
292: [22:07:03] <cloph> sudo requires *your* account's password, not the one of www-data
293: [22:07:54] <Hailwood> Well regardless, I wouldn't want to be supplying my sudo-capable password in any form via cron
294: [22:08:32] <cloph> in cron the column after the time specifies the user account to use. No need for sudo in cron.
295: [22:09:16] <Hailwood> Are you serious? I'm going to cry now.
296: [22:10:15] <cloph> user-crontabs (the one you edit with crontab -e) are per-user, the ones in /etc/crontab or /etc/cron.d/whatever specify the user as part of the job definition.
297: [22:12:46] <Firesphere> Yep, the ones in /etc/crontab can have a user defined, same as the /etc/cron.d, you can define them with just editing, not with -e
298: [22:13:49] <Hailwood> I shall have to remember that, although this is still pretty cool since it works regardless of who the user is that ran the flush - https://gist.github.com/hailwood/13b346337a3d62bd674f52fbc176b858
299: [22:14:33] <micmania1> Hailwood: yep, but if you have sensitive data in config its also readable by any user from that cache directory
300: [22:15:00] <micmania1> Hailwood: and worse, writable.
301: [22:19:57] <micmania1> Hailwood: * * * * * root sudo -u www-data php /vagrant/secretproject/framework/cli-script.php dev/tasks/ProcessJobQueueTask
302: [22:20:17] <micmania1> that’s a cronjob I have in /etc/cron.d/secretproject as an example
303: [22:20:37] <aragonne> Hi everyone, any examples of how to add an action button to the CMS? More specifically, I want to add a button that will generate some login tokens when pressed
304: [22:21:45] <cloph> that's useless use of sudo
305: [22:22:37] <cloph> and of course you need to give some useful time specification on when to run the job.
306: [22:23:05] <cloph> then just replace that "root" (the user to run the command as) with www-data - no sudo needed.
307: [22:24:38] <Hailwood> micmania1, Yeah, this is a specific cache for non-sensitive data - so the default data for config etc still uses the default backend. I agree the 777 isn't ideal but hey - I need it to not break if our deploy bot also runs a flush at any point for example - assuming the flush will only be run from the frontend, or via that cron is just asking for trouble
308: [22:25:12] <Hailwood> btw any reason you use php framework/cli-script.php compared to just framework/sake ?
309: [22:26:17] <Hailwood> Tbh I'm wondering if for this usecase the SS_Cache wasn't the right fit and whether I should have just manually written to a json file for this data
310: [22:26:45] <micmania1> Hailwood: not really, I just prefer it.
311: [22:27:05] <micmania1> Also, sake may not always be executable (if permissions are set wrong)
312: [22:27:39] <Hailwood> Oh, I just run chmod -R 777 . on all my projects anyway... (not really) :D
313: [22:31:18] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
314: [22:40:02] * Firesphere bangs head on his desk in despair
315: [22:40:07] <Firesphere> That's scary!
316: [22:41:57] <Hailwood> "I'm sick of all these permission issues!" `sudo chmod -R 777 /`
317: [22:51:20] * kinglozzer has joined #silverstripe
318: [22:51:55] * cloph_away has joined #silverstripe
319: [22:52:20] * _longines_ has joined #silverstripe
320: [22:53:34] * spekulatius quit (*.net *.split)
321: [22:53:37] * _longines quit (*.net *.split)
322: [22:53:42] * cloph quit (*.net *.split)
323: [22:53:50] * madmatt quit (*.net *.split)
324: [22:54:06] * madmatt has joined #silverstripe
325: [22:54:26] * aragonne quit (Quit: aragonne)
326: [22:54:30] * madmatt is now known as Guest97760
327: [22:55:32] * g-n0m3 quit (Ping timeout: 272 seconds)
328: [22:55:33] * kinglozzer quit (Ping timeout: 240 seconds)
329: [23:06:00] * Stomach quit (Ping timeout: 260 seconds)
330: [23:12:54] * _longines_ is now known as _longines
331: [23:15:35] <ss-helper> Re: RFC: Remove mailer in favor of SwiftMailer - https://groups.google.com/d/msg/silverstripe-dev/oEWWT2VDl5w/iU91fDPtAgAJ
332: [23:54:55] * Stomach has joined #silverstripe

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