#silverstripe IRC Log

IRC log for 24 May 2014

All timestamps are in UTC.

1: [00:06:12] * jenniferaslan quit (Quit: jenniferaslan has left the room)
2: [00:07:21] * simon_w|air quit (Quit: This computer has gone to sleep)
3: [00:21:09] * simon___w is now known as simon_w
4: [00:32:09] * mobiusnz has joined #silverstripe
5: [00:48:48] * mobiusnz quit (Quit: Leaving.)
6: [00:51:54] * mobiusnz has joined #silverstripe
7: [00:58:03] * mobiusnz quit (Quit: Leaving.)
8: [01:18:22] * travis-ci has joined #silverstripe
9: [01:18:22] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2613 (3.1 - b020cab : Simon Welsh): The build passed.
10: [01:18:22] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/2ed85dd47be8...b020cabc1a2a
11: [01:18:22] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/25917869
12: [01:18:22] * travis-ci has left #silverstripe
13: [01:27:11] * gelignite quit (Quit: http://bit.ly/nkczDT)
14: [01:28:38] * travis-ci has joined #silverstripe
15: [01:28:38] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2614 (3.1 - 9b3bfb2 : Simon Welsh): The build passed.
16: [01:28:38] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/b020cabc1a2a...9b3bfb2e10ff
17: [01:28:38] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/25917985
18: [01:28:38] * travis-ci has left #silverstripe
19: [01:35:19] * travis-ci has joined #silverstripe
20: [01:35:20] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2615 (3.1 - 824c606 : Simon Welsh): The build passed.
21: [01:35:20] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/9b3bfb2e10ff...824c6067a28c
22: [01:35:20] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/25918013
23: [01:35:20] * travis-ci has left #silverstripe
24: [01:52:39] <simon_w> Yay, got 5.6 down to just one failure
25: [02:04:33] * UncleCheese quit (Quit: UncleCheese)
26: [03:17:18] * spronk2 has joined #silverstripe
27: [03:48:12] * cloph_away has joined #silverstripe
28: [03:48:30] * cloph quit (Ping timeout: 258 seconds)
29: [04:29:26] <DesignerX> hi, is there any way to add tab to an existing ModelAdmin ?
30: [04:37:26] * spronk2 quit (Quit: spronk2)
31: [05:08:42] * checkcheck has joined #silverstripe
32: [05:09:08] <checkcheck> anyone know what I can do to be able to run some code on every page including in the CMS?
33: [05:09:26] <checkcheck> I added some code to my init in my page controller
34: [05:09:33] <checkcheck> but I need it to also run in the cms
35: [05:10:01] * Colin[pi] has joined #silverstripe
36: [05:12:23] <Zauberfisch> checkcheck: what code is it exactly?
37: [05:12:53] <Zauberfisch> all _config.php files will run on every request that is handled by silverstripe, be it cms, frontend or /dev/
38: [05:12:53] <checkcheck> I am resetting users session expiry
39: [05:13:07] <checkcheck> hmm
40: [05:13:32] <Zauberfisch> and if its a php config, or a silverstripe conig you are setting, then _config.php is the right place for it
41: [05:13:38] <Zauberfisch> mysite/_config.php that is
42: [05:22:24] <checkcheck> moving it into _config seems to work thanks
43: [05:22:51] <checkcheck> what I am doing is logging a member out if they haven't made a page load within the last 30 mins
44: [05:23:14] <checkcheck> so basically I check if it has been 30 mins since the user refreshed his session
45: [05:23:24] <checkcheck> if not, then I reset the timer
46: [05:23:31] <checkcheck> otherwise I log them out
47: [05:34:20] <simon_w> checkcheck, why not just set the Session.timeout Config variable to 900?
48: [05:34:47] <simon_w> Or 1800, since you want half an hour
49: [05:35:00] <checkcheck> but wouldnt that mean that it would time out after 30 mins no matter what?
50: [05:35:24] <checkcheck> I want it to timeout after 30 mins of inactivity
51: [05:35:38] <checkcheck> no user should get kicked off in the middle of doing something
52: [05:36:08] <simon_w> No, the timer gets reset each time the session cookie gets sent
53: [05:36:12] <simon_w> Which is ever request
54: [05:36:20] <checkcheck> gtfo
55: [05:36:23] <checkcheck> I spent ages doing this
56: [05:36:26] <checkcheck> :'(
57: [05:36:28] <checkcheck> haha
58: [05:36:30] <checkcheck> I hate my life
59: [05:36:38] <checkcheck> Was that recent change?
60: [05:36:46] <simon_w> No
61: [05:37:31] <checkcheck> I bascially used this guys solution http://www.silverstripe.org/general-questions/show/19349#post312298
62: [05:39:49] <checkcheck> just testing using Session::set_timeout()
63: [05:41:11] <checkcheck> it works perfect
64: [05:41:13] <checkcheck> FML
65: [05:41:20] <checkcheck> thanks Simon
66: [05:42:02] <simon_w> Anyway, it probably still won't work in the CMS as that has a ping in it to maintain the session
67: [05:50:29] <checkcheck> oh poos
68: [05:50:34] <checkcheck> ah well
69: [05:50:42] <checkcheck> cms users wont be logged out tho right?
70: [05:50:53] <simon_w> That's what I said
71: [05:51:12] <checkcheck> er yea
72: [05:51:14] <checkcheck> thanks
73: [05:55:18] * checkcheck quit (Ping timeout: 240 seconds)
74: [06:23:55] * anselmdk has joined #silverstripe
75: [06:25:43] * anselmdk quit (Client Quit)
76: [06:27:06] * anselmdk has joined #silverstripe
77: [06:30:12] * anselmdk quit (Client Quit)
78: [07:38:24] * simon_w|air has joined #silverstripe
79: [08:14:21] * wmk has joined #silverstripe
80: [08:14:37] <wmk> g'morning (ugt)
81: [08:15:58] * anselmdk has joined #silverstripe
82: [08:21:46] * simon_w|air quit (Quit: This computer has gone to sleep)
83: [08:23:43] * babak has joined #silverstripe
84: [08:35:09] <simon_w> Woo, think I've got a name for my deploy/hosting thingy!
85: [08:38:01] <Zauberfisch> simon_w: your deploy hosting thingy?
86: [08:38:23] <simon_w> http://logs.simon.geek.nz/index.php?date=2014-05-23#log_1294273
87: [08:40:55] <Zauberfisch> simon_w: oh, nice!
88: [08:41:08] <Zauberfisch> but I assume only on your part of the world, right?
89: [08:41:21] <simon_w> Ooh, I should add in region support
90: [08:41:29] <simon_w> It'll be whatever DigitalOcean has DCs
91: [08:41:31] <Zauberfisch> (also, you did hear about the silverstripe hosting copmany there, that never left beta, right=)
92: [08:42:00] <Zauberfisch> digital ocean is now also availiable in EU
93: [08:42:07] <Zauberfisch> thats good
94: [08:42:16] <simon_w> Well, I'm being nagged to go out to dinner
95: [08:42:20] <simon_w> So I guess I'll do that now
96: [08:42:35] * simon_w quit (Quit: This computer has gone to sleep)
97: [08:57:02] * gelignite has joined #silverstripe
98: [08:58:56] <wmk> do we still need Convert::raw2sql when using SS 3.x ORM?
99: [09:09:26] <ss23> It's still required in some places, but most code that you write yoursel won't need it
100: [09:09:45] <ss23> You definitly don't need it in like... Foo::get()->filter('Bar', $_GET['kitten']);
101: [09:11:55] <wmk> ok. is it a problem when i still let it in code? just updating some stuff from 2.4 to 3.1
102: [09:32:00] * spronk2 has joined #silverstripe
103: [09:42:39] <ss23> wmk: If you double up, so you use Foo::get()->filter('Bar', Convert::raw2sql($_GET['kitten'])); it kind of is
104: [09:42:52] <ss23> It'll make a thign like "Foo'bar" show up as a "foo\'bar" which is wrong, but it won't be a security risk
105: [09:43:27] <wmk> ok, just not working in doubt.
106: [09:55:51] * simon_w has joined #silverstripe
107: [09:57:53] * anselmdk quit (Quit: anselmdk)
108: [09:59:06] * anselmdk has joined #silverstripe
109: [10:00:18] * anselmdk quit (Client Quit)
110: [10:00:44] * wmk quit (Quit: nice to meet you ;))
111: [10:01:47] * anselmdk has joined #silverstripe
112: [10:03:55] * anselmdk quit (Client Quit)
113: [10:05:08] * SightUnseen has joined #silverstripe
114: [10:05:22] * SightUnseen has left #silverstripe
115: [10:07:47] * anselmdk has joined #silverstripe
116: [10:10:34] <simon_w> Okay, time to get started on this
117: [10:11:20] <simon_w> Zauberfisch, any thing else you'd like to see in a tool like this?
118: [10:12:19] * UncleCheese has joined #silverstripe
119: [10:14:34] * irogue is rather aroused by the sound of simon_w's project
120: [10:18:32] * simon_w is excited about it
121: [10:18:54] <simon_w> Though need to figure out how to talk between the frontend and backend of the service
122: [10:19:45] <simon_w> Hmm, I guess I just need to define some cross-language things and then use a Redis queue
123: [10:20:01] <irogue> redis!
124: [10:20:07] <simon_w> Indeed
125: [10:20:10] <simon_w> Redis is amazeballs
126: [10:20:15] <irogue> yup
127: [10:20:21] <simon_w> Redis to memcache as Postgres is to MySQL
128: [10:20:23] <irogue> esp for messaging queus!
129: [10:22:10] <guzzlefry> simon_w++
130: [10:22:14] <guzzlefry> where is the karma bot!?
131: [10:25:38] <guzzlefry> well, PostgreSQL's lack of upsert and mulitmaster synchronous replication kind of annoys me. >_>
132: [10:26:14] <simon_w> Ooh, I didn't know about http://redis.io/commands/blpop
133: [10:26:26] <simon_w> That makes a proper, thread-safe queue insanely easy
134: [10:36:09] <Zauberfisch> simon_w: well, you already said you will not allow ssh :/ but perhaps you can make a feature to invoke composer?
135: [10:36:23] <simon_w> Zauberfisch, deploy will do a composer install
136: [10:36:30] <Zauberfisch> nice
137: [10:36:46] <Zauberfisch> I'd like sftp with key auth
138: [10:36:54] <Zauberfisch> but I guess you already thought of that as well
139: [10:37:22] <simon_w> You won't be getting SSH access :p
140: [10:37:22] <Zauberfisch> composer should not be the only way to deploy
141: [10:37:37] <Zauberfisch> simon_w: you can dissalow shell and just grant sftp
142: [10:37:48] <simon_w> Submodules and svn:externals will work fine
143: [10:39:36] <Zauberfisch> what I mean with composer should not be the only option: it should also have sftp/ftps access, while I agree that a good deployment system is prefered, but sometimes your deployment can stand in your way
144: [10:40:28] <simon_w> In what case would someone know how to use SFTP, especially if it's key only, and not be using a VCS?
145: [10:42:26] <Zauberfisch> I had certain occasions where being able to ssh/sftp to the sever did save a trouble
146: [10:42:42] <Zauberfisch> eg when you need to hotfix or hot debug something
147: [10:43:05] <Zauberfisch> again, yes, such events are to be avoided, but they do happen
148: [11:04:51] * simon_w|air has joined #silverstripe
149: [11:07:41] * anselmdk quit (Quit: anselmdk)
150: [11:21:21] * spronk2 quit (Quit: spronk2)
151: [11:27:29] * spronk2 has joined #silverstripe
152: [11:54:07] * r_hector has joined #silverstripe
153: [11:55:00] <r_hector> hi - trying to set up ss on ubuntu saucy, with nginx
154: [11:55:19] <r_hector> instructions have a redirect to framework/main.php, but that file doesn't seem to exist?
155: [11:55:44] <r_hector> am I missing something simple?
156: [11:55:50] * r_hector is not a php coder
157: [12:01:59] <simon_w|air> r_hector, do you have a framework or a sapphire folder?
158: [12:02:29] <r_hector> never mind - something must have gone wrong when I extracted it
159: [12:02:36] <r_hector> it's there now ...
160: [12:02:50] <r_hector> ver odd
161: [12:02:55] <r_hector> very*
162: [12:19:10] * Shrike_Finland has joined #silverstripe
163: [12:20:15] * simon_w quit (Quit: This computer has gone to sleep)
164: [12:25:25] * alexw has joined #silverstripe
165: [12:26:05] * alexw quit (Client Quit)
166: [12:26:23] * alexwijn has joined #silverstripe
167: [12:27:18] <alexwijn> I added "private static $allowed_children = array('VacancyPage');" to a page and rebuild the database. But now I can't get any pages under that page
168: [12:27:25] <alexwijn> Including VacancyPage
169: [12:27:36] <r_hector> when using the postgresql module, I used the 1.0 branch in git, but I'm getting a fatal error when installing
170: [12:27:43] <r_hector> would master be better/safe?
171: [12:34:35] <irogue> yeah
172: [12:34:42] <irogue> 1.0 is for silverstripe 2.4
173: [12:40:19] <r_hector> ah, ok, cheers
174: [12:42:56] * UncleCheese quit (Quit: UncleCheese)
175: [12:50:20] * anselmdk has joined #silverstripe
176: [12:50:20] * anselmdk quit (Client Quit)
177: [12:55:13] * anselmdk has joined #silverstripe
178: [12:59:11] * error404_ has joined #silverstripe
179: [13:12:52] * Shrike_Finland quit (Quit: Leaving.)
180: [13:16:23] * simon_w|air quit (Quit: This computer has gone to sleep)
181: [13:31:16] * DesignerX quit (Quit: Konversation terminated!)
182: [13:38:38] * babak quit (Quit: Connection closed for inactivity)
183: [13:39:49] * anselmdk quit (Quit: anselmdk)
184: [14:00:33] * anselmdk has joined #silverstripe
185: [14:01:31] * babak has joined #silverstripe
186: [14:40:09] <r_hector> anyone seen ss causing firefox (actually iceweasel, on Debian) to crash?
187: [14:40:39] <r_hector> obviously firefox's fault; ss shouldn't be able to do that
188: [14:40:48] <r_hector> just clicking round in the cms
189: [14:41:08] <r_hector> iceweasel 29.0.1
190: [14:42:43] <alexwijn> Let me check in firefox here
191: [14:43:51] <alexwijn> At what point did it crash?
192: [14:44:33] <r_hector> it's a little bit unpredictable
193: [14:44:44] <alexwijn> Maybe it is a module that you installed
194: [14:44:58] <alexwijn> or an add on in your browser itself
195: [14:45:05] <r_hector> yeah
196: [14:45:09] <alexwijn> But you know you say firefox
197: [14:45:13] <alexwijn> But iceweasel is not Firefox
198: [14:45:40] <r_hector> one example, I was looking in files, and I clicked on 'uploaded files' at which point it crashed
199: [14:45:48] <r_hector> it's very close; it's just rebranded
200: [14:46:04] <alexwijn> Than why don't you use Firefox?
201: [14:46:18] <r_hector> because this is what debian bundles
202: [14:46:30] <r_hector> they have to rebrand it for licensing reasons
203: [14:46:36] <alexwijn> Its like telling me you use Internet Explorer because it comes with the OS
204: [14:46:58] <r_hector> ... and I have no reason to use firefox, because it's the same thing
205: [14:47:26] <alexwijn> Well 99% of the developers test their websites in IE, Firefox and Chrome
206: [14:48:04] <r_hector> sure. and 99% of the sites work fine in iceweasel, because testing in firefox is sufficient for that
207: [14:48:55] <alexwijn> But it works fine here in Firefox
208: [14:49:08] <r_hector> thanks
209: [14:49:12] <r_hector> what version?
210: [14:49:16] <r_hector> and what OS?
211: [14:49:37] <alexwijn> Firefox V29 on Ubuntu 14.04
212: [14:49:50] <r_hector> ok, so pretty much the same as I have
213: [14:50:06] <alexwijn> Yeah only the other way around :)
214: [14:50:21] <r_hector> ss is just html/css/javascript, right?
215: [14:50:22] <alexwijn> Ubuntu is based on Debian and I used the original Firefox
216: [14:50:29] <r_hector> no flash or anything?
217: [14:50:38] <alexwijn> And you use Iceweal based on firefox and the original Debian :)
218: [14:50:47] <alexwijn> I just got Firefox for you installed
219: [14:50:50] <alexwijn> So I dont think so
220: [14:51:05] <r_hector> and you probably used the bundled Firefox, right?
221: [14:51:13] <r_hector> oh, thanks for that
222: [14:51:26] <alexwijn> No I removed that one
223: [14:51:30] <alexwijn> I primary use Chrome
224: [14:51:46] <r_hector> right - I might have a play with that
225: [14:51:53] <alexwijn> I installed it back now since I using this computer more and more for programming
226: [14:52:27] <alexwijn> Programming on work and at home...nice combination huh :)
227: [14:53:10] <r_hector> of course, I'll actually use Chromium rather than Chrome - the open source version that comes with Debian :-)
228: [14:53:36] * spronk2 quit (Quit: spronk2)
229: [14:53:44] <alexwijn> Yeah tried that but could not get Flash working on it some odd reason
230: [14:53:57] <alexwijn> So I installed the official Chrome repo and got it installed
231: [14:54:09] <alexwijn> At chrome you got Flash build-in
232: [14:54:38] <r_hector> I mostly don't care about flash
233: [14:55:03] <alexwijn> On some rare occasion it is still needed
234: [14:55:10] <alexwijn> But like I say, rare :)
235: [14:55:19] <alexwijn> Everyone is using HTML5 these days
236: [14:56:40] <r_hector> but the DRM is coming in HTML5, so we'll be back where we started :-(
237: [14:57:38] * r_hector remembers this channel is logged, so I guess going off topic probably isn't appreciated ...
238: [14:58:14] <alexwijn> Does that matter?
239: [14:58:41] <r_hector> don't know
240: [14:58:46] <r_hector> I'm new here :-)
241: [14:59:19] <alexwijn> You can talk all about bees and birds all you want :)
242: [14:59:20] <guzzlefry> You do realize that the log page has a count of how many times someone has said "fuck", right? :P
243: [14:59:46] <r_hector> heh - fair enough :-)
244: [14:59:55] <alexwijn> And? Who's winning :)
245: [15:00:02] <guzzlefry> oh, well I guess not directly.
246: [15:00:08] <guzzlefry> wonder where the page is...
247: [15:00:15] <alexwijn> yeah
248: [15:00:37] <alexwijn> the logs itself are here: http://logs.simon.geek.nz/
249: [15:02:04] <r_hector> hmm. noting that those timestamps are in my local timezone, I should probably call it a day ...
250: [15:02:20] <alexwijn> :)
251: [15:02:43] <alexwijn> Well its already a new day :)
252: [15:03:02] <alexwijn> So you can also say its early :)
253: [15:03:13] <r_hector> far too early
254: [15:03:20] * john3213 has joined #silverstripe
255: [15:08:22] * john3213 has left #silverstripe
256: [15:08:39] * anselmdk quit (Quit: anselmdk)
257: [15:12:27] <alexwijn> Does anyone know how to translate a model name that I put as has many?
258: [15:15:27] <alexwijn> Nobody?
259: [15:22:10] <guzzlefry> I'm not sure what you're asking.
260: [15:29:10] <alexwijn> Well I can translate dataobjects (models)
261: [15:29:16] <alexwijn> But when I attach them to a member
262: [15:29:22] <alexwijn> as a has_many
263: [15:29:36] <alexwijn> I do not know how to translate it when it appears in the tabs on the admin panel
264: [15:33:53] * eagles0513875 quit (Ping timeout: 264 seconds)
265: [15:43:18] * error404_ quit (Quit: AndroidIrc Disconnecting)
266: [15:51:08] * error418_ has joined #silverstripe
267: [16:00:02] * error418_ quit (Quit: -a- Android IRC 2.1.16)
268: [16:07:17] * ajmitch quit (Ping timeout: 252 seconds)
269: [16:08:12] * ajmitch has joined #silverstripe
270: [16:12:47] <guzzlefry> oh, no clue on that
271: [16:12:52] <guzzlefry> I've never messed with translation stuff
272: [16:13:06] <alexwijn> I need it
273: [16:13:14] <alexwijn> Because all of my code are in english
274: [16:13:19] <alexwijn> but my frontend needs to be dutch
275: [16:23:24] * auto9 has joined #silverstripe
276: [17:11:31] * auto9 quit (Quit: AndroidIrc Disconnecting)
277: [17:16:29] * auto9 has joined #silverstripe
278: [17:18:25] * gelignite quit (Quit: http://bit.ly/nkczDT)
279: [17:24:58] * eagles0513875 has joined #silverstripe
280: [17:30:59] * alexwijn quit (Quit: Leaving)
281: [17:44:35] * auto9 quit (Quit: -a- Android IRC 2.1.16 stay out of trouble)
282: [17:45:25] * auto9 has joined #silverstripe
283: [17:46:52] * auto9 quit (Client Quit)
284: [17:48:06] * auto9 has joined #silverstripe
285: [17:56:05] * auto9 quit (Read error: Connection reset by peer)
286: [17:56:28] * auto9_ has joined #silverstripe
287: [17:57:52] * auto9_ quit (Client Quit)
288: [17:58:38] * auto9 has joined #silverstripe
289: [18:29:59] * auto9 quit (Read error: Connection reset by peer)
290: [18:30:15] * auto9_ has joined #silverstripe
291: [18:55:56] * anselmdk has joined #silverstripe
292: [18:58:54] * anselmdk quit (Client Quit)
293: [19:11:51] * auto9_ quit (Quit: AndroidIrc Disconnecting)
294: [19:42:11] * gelignite has joined #silverstripe
295: [19:45:23] * micmania1 has joined #silverstripe
296: [19:45:46] <micmania1> Anybody successfully used FulltextFilter?
297: [20:30:06] * UncleCheese has joined #silverstripe
298: [20:30:15] * UncleCheese quit (Client Quit)
299: [21:31:56] * auto9 has joined #silverstripe
300: [21:32:41] * auto9 quit (Read error: Connection reset by peer)
301: [21:33:51] * auto9 has joined #silverstripe
302: [22:47:24] * joelpittet has joined #silverstripe
303: [23:11:39] * Colin[pi] quit ()
304: [23:20:01] * UncleCheese has joined #silverstripe
305: [23:28:38] * babak quit (Quit: Connection closed for inactivity)
306: [23:29:20] * UncleCheese quit (Quit: UncleCheese)
307: [23:30:36] * simon_w|air has joined #silverstripe
308: [23:39:11] * UncleCheese has joined #silverstripe
309: [23:58:42] * UncleCheese quit (Quit: UncleCheese)

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