#silverstripe IRC Log

IRC log for 28 July 2013

All timestamps are in UTC.

1: [00:17:10] * Rojod is now known as rojod^ZZZ
2: [01:01:23] * LoveDuckie quit (Ping timeout: 240 seconds)
3: [01:02:17] * metanat quit (Quit: Leaving.)
4: [01:55:54] * micmania1 quit (Ping timeout: 264 seconds)
5: [03:27:01] * DesignerX has joined #silverstripe
6: [03:40:09] * swordsmanz quit (Quit: swordsmanz)
7: [03:57:02] * cloph quit (Ping timeout: 246 seconds)
8: [04:01:47] * cloph_away has joined #silverstripe
9: [04:16:50] * kerosene has joined #silverstripe
10: [05:04:59] <ss23> simon_w: mmmk
11: [05:07:36] <guzzlefry> ss23: Are you one of those dev folk?
12: [05:07:57] <ss23> What's a dev folk? :O
13: [05:08:14] <guzzlefry> you know!
14: [05:08:22] <guzzlefry> SilverStripe developer
15: [05:08:23] <guzzlefry> ...folk
16: [05:08:24] <ss23> oh um
17: [05:08:25] * BV has joined #silverstripe
18: [05:08:40] <ss23> I work for Silverstripe, but I don't have access to the opensource silverstripe/ account
19: [05:08:48] <guzzlefry> ah
20: [05:08:51] <ss23> I can do stuff on silverstripe-labs/ and mailing lists, and rm -rf silverstripe.org though
21: [05:08:54] <ss23> :D
22: [05:09:02] <guzzlefry> Don't do the last one.
23: [05:09:10] <ss23> haha
24: [05:09:19] <guzzlefry> Wait...was that you a few week ago? :P
25: [05:09:28] <ss23> You know Silverstripe is serious about opensource when they'll give the employees access to rm -rf servers, but not to close issues on github
26: [05:09:31] <ss23> :P
27: [05:09:34] <ss23> guzzlefry: :O
28: [05:09:34] <ss23> I DIDN'T RM -RF ANYTHING
29: [05:09:35] * ss23 dies
30: [05:09:41] <guzzlefry> haha
31: [05:10:46] <guzzlefry> Anyway, I was wondering why .git and .svn weren't blocked by default in the .htaccess stuff.
32: [05:11:04] <ss23> Normally your webserver does that
33: [05:11:32] <ss23> I guess it wouldn't be bad to add it, but it gets excessive if we add lots of rules there (and I'm not sure how much overhead there is. Apache parses that file from scratch every time a request comes in)
34: [05:11:38] <guzzlefry> ah yeah
35: [05:11:48] <guzzlefry> good point
36: [05:42:42] * BV quit (Quit: Page closed)
37: [05:58:22] * pippy has joined #silverstripe
38: [06:00:42] * pippy_ quit (Ping timeout: 264 seconds)
39: [06:04:37] <simon_w> ss23, the github issues thing is all because of github issues sucking, but the people making decisions not caring :p
40: [06:25:49] * henkpoley has joined #silverstripe
41: [06:26:12] * henkpoley quit (Remote host closed the connection)
42: [06:26:23] * henkpoley has joined #silverstripe
43: [07:31:45] * pippy_ has joined #silverstripe
44: [07:34:14] * pippy quit (Ping timeout: 240 seconds)
45: [07:52:30] * SightUnseen has joined #silverstripe
46: [07:52:54] * SightUnseen has left #silverstripe
47: [07:56:19] * wmk has joined #silverstripe
48: [08:16:16] <ChronicD> hello newbie here - has anyone got any experience with the nivoslider extension I'm missing something to make it work.
49: [08:34:17] <wmk> ChronicD, i don't know the extension, can you give me a link?
50: [08:34:31] <ChronicD> https://github.com/micmania1/silverstripe-nivoslider
51: [08:35:01] <ChronicD> the guy that wrote it is on here sometimes but haven't seen him all day
52: [08:35:08] <wmk> micmanial is often here
53: [08:35:18] <wmk> well, it's sunday
54: [08:35:26] <ChronicD> yeah nice guy - i know
55: [08:36:23] <ChronicD> i have already spoke to him - i suppose i was fishing :) hoping to find an answer - happy to wait for him. Its just niggling at me ;)
56: [08:36:45] <wmk> what's the problem?
57: [08:37:01] <ChronicD> I'm struggling with what to write to my template file
58: [08:37:33] <ChronicD> he says to call the name of your has_one relationship
59: [08:38:42] <ChronicD> and at the moment I'm writing it like this
60: [08:38:42] <ChronicD> static $has_one = array (
61: [08:38:43] <ChronicD> 'NivoSlider' => 'NivoSlider'
62: [08:38:44] <ChronicD> );
63: [08:38:54] <ChronicD> which i assume is wrong
64: [08:39:33] <wmk> it should work
65: [08:39:45] <ChronicD> ja thats what i thought
66: [08:39:46] <wmk> and in template call $NivoSlider
67: [08:40:24] <ChronicD> yeah exactly
68: [08:41:00] <wmk> NivoSlider.php has a method forTemplate() which should be called.
69: [08:41:07] <wmk> do you have a php debugger running?
70: [08:41:47] <ChronicD> i think so… new to php debugging.
71: [08:42:19] <ChronicD> I followed a thread and turned it one (i think) but am unsure how to use it.
72: [08:42:58] <ChronicD> actually ss is throwing u an error about the has_one needing to be private
73: [08:44:40] <ChronicD> NVM thanks for the chat - i will wait for micmania :) don't want to take up anymore of your sunday.
74: [08:45:07] <wmk> ah, you're on SS3.1 ?
75: [08:45:54] <wmk> what silverstripe version are you using?
76: [08:47:10] <ChronicD> yes 3.1…perhaps that was a bad idea lol
77: [08:51:03] <wmk> from what i see the module wasn't updated to 3.1
78: [08:51:08] <wmk> shouldn't be much work.
79: [08:52:06] <wmk> do you have an account on github? if you want to update the code it would be great if you'd give back the code
80: [08:52:11] <ChronicD> ah-ha! that sounds like the problem. I'm going to go and clone 3.0 and see if i have better luck
81: [08:52:27] <wmk> well - that's another option ;)
82: [08:52:27] <ChronicD> oh i absolutely would give it back
83: [08:52:39] <wmk> did you install i via git clone or via composer?
84: [08:52:57] <wmk> nevermind.
85: [08:53:04] <wmk> 3.1 is ok.
86: [08:53:09] <ChronicD> composer
87: [08:53:33] <wmk> seems like composer thinks 3.1 is > 3.0 ;)
88: [08:53:43] <wmk> doesn't know of incompatibilities
89: [08:53:48] <wmk> hoewever
90: [08:54:19] <wmk> go to the slider classes and replace public $db, $has_one, $has_many $many_many by private $db ...
91: [08:54:36] <ChronicD> ah no that makes sense i had to git clone the module while i installed everything else with composer
92: [08:54:51] <ChronicD> roger will try that
93: [08:55:36] <wmk> http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0#upgrading has more infos about changes 3.0 -> 3.1
94: [08:56:02] <wmk> afaik this public -> private static issue and the actions need to be adjusted
95: [08:56:30] <ChronicD> brilliant thanks for that - some light reading for the evening
96: [08:56:59] <wmk> composer cloned the repo, so you can commit to your code? if yes, you can later fork the project, add your fork as origin and send a pull request to micmania1
97: [08:59:16] <ChronicD> will do. It will be my first first fork - v. exciting. you've been a tonne of help - a drop of clarity for my thoughts
98: [09:05:17] * ajshort has joined #silverstripe
99: [09:05:24] * ajshort quit (Client Quit)
100: [09:29:16] * pex has joined #silverstripe
101: [09:30:52] * wmk quit (Ping timeout: 256 seconds)
102: [09:33:08] * wmk has joined #silverstripe
103: [09:40:39] * henkpoley quit (Quit: henkpoley)
104: [09:44:32] <jcwacky> Trying to get the StaticPublishQueue cronjob working on my server, but it seems to be wanting to login, my cronjob command is public_html/framework/sake dev/tasks/BuildStaticCacheFromQueue daemon=1 verbose=0 >> buildstaticcache-cron-env.log
105: [09:46:06] <jcwacky> Any suggestions?
106: [09:52:58] <wmk> ChronicD, glad i can help you ;)
107: [09:53:23] * wmk wonders if there was a song like "the first fork is the trickiest" or so...
108: [09:53:31] <ChronicD> wmk: hahahaa
109: [09:54:06] <ChronicD> "developers they know" - "the first...
110: [09:56:41] <simon_w|air> Oh, if only that were true
111: [09:57:21] <wmk> http://ars.userfriendly.org/cartoons/?id=20040815
112: [10:05:26] <ChronicD> chuckle
113: [10:23:14] * nightart has joined #silverstripe
114: [10:28:15] * priithansen has joined #silverstripe
115: [10:33:24] * ARNHOE has joined #silverstripe
116: [10:36:34] * LoveDuckie has joined #silverstripe
117: [10:44:21] * _nightart has joined #silverstripe
118: [10:47:35] * nightart quit (Ping timeout: 246 seconds)
119: [10:53:25] * pex quit (Ping timeout: 248 seconds)
120: [10:53:29] * priithansen quit (Quit: priithansen)
121: [10:58:27] * gelignite has joined #silverstripe
122: [10:59:16] * _nightart quit (Ping timeout: 256 seconds)
123: [11:08:16] * pex has joined #silverstripe
124: [11:34:44] * pex quit (Ping timeout: 256 seconds)
125: [11:35:28] <jcwacky> Still can't get this dev/task cronjob to stop trying to login.
126: [12:05:24] * nightart has joined #silverstripe
127: [12:28:05] * Marvanni has joined #silverstripe
128: [12:37:24] * gumble has joined #silverstripe
129: [12:47:04] * Zauberfisch has joined #silverstripe
130: [12:47:19] * Zauberfisch quit (Client Quit)
131: [13:01:41] * pex has joined #silverstripe
132: [13:07:52] <ss23> creepy pasta is worth with earthquakes.
133: [13:08:13] <ss23> I think I almost died
134: [14:26:38] * henkpoley has joined #silverstripe
135: [14:43:16] * nightart quit (Ping timeout: 276 seconds)
136: [14:46:47] * nightart has joined #silverstripe
137: [14:46:48] * nightart quit (Client Quit)
138: [14:48:53] <ARNHOE> Anyone available for some PHP selecting help?
139: [14:49:53] <ARNHOE> I am trying to get the amount of occurrences in a db field and then show the value of the field instead of the amount. Currently I got the amount which is for example 2, but I want it to show EN (short for England, im trying to filter the most wins by country)
140: [14:55:55] <ARNHOE> $count = DB::query('SELECT FinalWinnerCountry, COUNT(*) AS occurrences FROM "Editie" GROUP BY FinalWinnerCountry')->value();
141: [14:56:35] <ARNHOE> is giving me the value I want atm, if anyone is willing to improve that for silverstripe. Would appreciate it, but it is working!
142: [15:06:14] * pex quit (Ping timeout: 240 seconds)
143: [15:19:10] * priithansen has joined #silverstripe
144: [15:23:16] <ARNHOE> $count = DB::query('SELECT country, count(country) AS cnt FROM (SELECT FinalWinnerCountry AS country FROM Editie WHERE "TournamentID" = '.$tournamentid.' UNION ALL SELECT FinalRunnerUpCountry AS country FROM Editie) subquery GROUP BY country ORDER by cnt DESC')->value();
145: [15:23:37] <ARNHOE> Is what I was looking for, hf with it if you read the log!
146: [15:28:58] * pex has joined #silverstripe
147: [15:37:27] * pex quit (Read error: Connection reset by peer)
148: [16:00:10] * sam__ has joined #silverstripe
149: [16:00:28] <sam__> hi all
150: [16:00:38] <sam__> need some help on google map....
151: [16:00:38] <sam__> http://golf.kc316.com/listingpage/show/117
152: [16:00:49] <sam__> not zooming properly
153: [16:01:09] * swordsmanz has joined #silverstripe
154: [16:06:26] <ARNHOE> hi sam__
155: [16:06:30] <ARNHOE> let me take a look
156: [16:06:38] <sam__> ok please
157: [16:06:58] <ARNHOE> search for zoom: 4,
158: [16:07:14] <sam__> ok
159: [16:07:20] <sam__> then
160: [16:07:22] <ARNHOE> keep changing tha tvlue till you have the right zoom you want
161: [16:07:32] <sam__> no effect
162: [16:07:59] <ARNHOE> you dont want it to have that zoomed in right?
163: [16:08:17] <sam__> i want it
164: [16:08:31] <sam__> its zooming more
165: [16:08:33] <ARNHOE> you seem to be calling zoom two times
166: [16:09:00] <ARNHOE> try finding zoom: 4, everywhere and change it to 12
167: [16:09:14] <ARNHOE> you still have one left over that is still zoom 4
168: [16:11:11] <ARNHOE> sam__: try finding zoom: 4. Just search your folder or something
169: [16:11:32] <sam__> ok
170: [16:11:33] <sam__> fine
171: [16:11:56] <ARNHOE> but you are calling google maps twice aswell
172: [16:13:19] <ARNHOE> sam__: http://sspaste.com/paste/show/51f54264ee72a this is how I usually call google maps
173: [16:13:40] <sam__> ok
174: [16:14:46] * gumble quit (Remote host closed the connection)
175: [16:18:31] <sam__> ARNHOE: I have applied your code... still no luck
176: [16:19:46] <ARNHOE> you still are calling google maps twice somewhere, also you need to change in my code mapCircle to map
177: [16:20:24] <sam__> ok
178: [16:22:39] <sam__> ARNHOE: http://sspaste.com/paste/show/51f5449e58814
179: [16:22:42] <sam__> my code
180: [16:26:52] <sam__> please help me
181: [16:26:56] <sam__> m really new
182: [16:55:13] * sam__ quit (Ping timeout: 250 seconds)
183: [18:39:07] * henkpoley quit (Quit: henkpoley)
184: [18:42:53] * henkpoley has joined #silverstripe
185: [19:05:42] * Zauberfisch__ has joined #silverstripe
186: [19:08:26] * Zauberfisch_ quit (Ping timeout: 246 seconds)
187: [19:09:42] * zfmf1 has joined #silverstripe
188: [19:21:54] <guzzlefry> no sam no! :(
189: [19:22:48] <guzzlefry> oh wait, that's a bunch of javascript. 0.o
190: [19:22:49] * pex has joined #silverstripe
191: [19:22:56] * pex has left #silverstripe
192: [19:25:41] * henkpoley quit (Quit: henkpoley)
193: [19:26:32] * henkpoley has joined #silverstripe
194: [19:27:20] * LoveDuckie quit (Ping timeout: 246 seconds)
195: [19:27:47] * LoveDuckie has joined #silverstripe
196: [19:31:06] * priithansen quit (Quit: priithansen)
197: [19:40:32] * henkpoley quit (Quit: henkpoley)
198: [19:49:54] * simon_w quit (Quit: This computer has gone to sleep)
199: [20:00:40] * DigNZ has joined #silverstripe
200: [20:02:04] <wmk> how can i find out if a frontend form is newly generated or sent back, so i only call loadDataFrom() the first time?
201: [20:06:42] <guzzlefry> hm
202: [20:07:08] <guzzlefry> wmk: Think there's some redirected method, checking.
203: [20:09:27] <guzzlefry> wmk: Why not just load it?
204: [20:11:56] <wmk> it overwrites my submission on validation errors
205: [20:12:21] <guzzlefry> ah
206: [20:12:22] <wmk> guzzlefry, it's an edit form in frontend
207: [20:17:01] * zippy__ has joined #silverstripe
208: [20:23:42] * zfmf1 has left #silverstripe
209: [20:25:40] * simon_w has joined #silverstripe
210: [20:30:40] <zippy__> Morning
211: [20:31:42] <simon_w> wmk, If your call to laodDataFrom() is overriding the submitted values, you're calling it far too late
212: [20:34:44] <wmk> simon_w, i call it right after Form::create( --stuff in here-- )
213: [20:45:19] * ARNHOE quit (Remote host closed the connection)
214: [20:57:27] * priithansen has joined #silverstripe
215: [21:03:49] * SightUnseen has joined #silverstripe
216: [21:06:47] * SightUnseen has left #silverstripe
217: [21:11:33] * pippy_ is now known as pippy
218: [21:16:54] * gelignite quit (Quit: http://bit.ly/nkczDT)
219: [21:39:03] * zippy__ quit (Ping timeout: 256 seconds)
220: [21:53:59] * zippy__ has joined #silverstripe
221: [21:54:10] <zippy__> Morning
222: [22:03:41] * simon__w has joined #silverstripe
223: [22:03:55] * simon_w quit (Read error: Connection reset by peer)
224: [22:26:03] * DigNZ1 has joined #silverstripe
225: [22:26:04] * DigNZ1 quit (Remote host closed the connection)
226: [22:26:18] * DigNZ1 has joined #silverstripe
227: [22:27:06] * DigNZ1 quit (Client Quit)
228: [22:41:19] * EasyCo has joined #silverstripe
229: [22:41:31] <EasyCo> Morning
230: [22:54:39] * UncleCheese has joined #silverstripe
231: [22:56:25] * DigNZ1 has joined #silverstripe
232: [22:56:26] * DigNZ1 quit (Remote host closed the connection)
233: [22:56:40] * DigNZ1 has joined #silverstripe
234: [23:02:09] * zippy___ has joined #silverstripe
235: [23:02:27] * zippy__ quit (Ping timeout: 268 seconds)
236: [23:02:27] * zippy___ is now known as zippy__
237: [23:06:24] * DigNZ1 quit (Quit: DigNZ1)
238: [23:10:36] <ss23> In Chrome, if a popup is "blocked" and it contains flash, the flash will still run/execute etc. It's the *perfect* way of hiding annoying sounds in tabs etc
239: [23:17:24] <ss23> When using static caching, how do you get a key that is changed when the sitetree is re-ordered?
240: [23:17:27] <ss23> simon__w co. know?
241: [23:19:42] * Colin[pi] has joined #silverstripe
242: [23:19:48] <Colin[pi]> morning all
243: [23:19:52] <ss23> Colin[pi]: when using static caching, how do you get a key that is changed when the sitetree is re-ordered?
244: [23:20:06] <Colin[pi]> wait what?
245: [23:20:16] <ss23> uh
246: [23:20:19] <ss23> partial caching***
247: [23:20:51] <Colin[pi]> bloody hell I've been here five seconds lol
248: [23:20:55] <ss23> :D
249: [23:21:05] <ss23> Colin[pi]: Consider it a way to wake up your brain!
250: [23:21:20] <Colin[pi]> my brain hasn't had it's coffee infusion yet
251: [23:21:36] <EasyCo> Haha
252: [23:21:45] <EasyCo> Morning Colin[pi]
253: [23:21:49] <Colin[pi]> morning!
254: [23:21:58] * priithansen quit (Quit: priithansen)
255: [23:22:04] <Colin[pi]> so what are you trying to do ss23?
256: [23:22:10] <ss23> Colin[pi]: You know aprtial caching?
257: [23:22:15] <Colin[pi]> cache part of the template?
258: [23:22:18] <ss23> yeah
259: [23:22:22] <ss23> You know how it works, with the cache keys?
260: [23:22:27] * guci0 has joined #silverstripe
261: [23:22:34] <guci0> Hi
262: [23:22:41] <ss23> hi guci0
263: [23:22:42] <Colin[pi]> haven't actually used it much no :\
264: [23:22:48] <ss23> Hmm
265: [23:22:50] <ss23> Okay, I can rephrase it
266: [23:23:11] <ss23> When you re-order pages in the SiteTree, do any fields (e.g. LastEdited) get updated (apart from the obvious relations of ParentID etc)
267: [23:24:36] <Colin[pi]> Sort would get updated
268: [23:25:07] <ss23> Hmm
269: [23:25:10] <ss23> How does that field work, Colin[pi]?
270: [23:25:20] <ss23> Is it like... select * from SiteTree where ParentID = 5 ORDER BY Sort?
271: [23:25:21] <Colin[pi]> just maintains an integer sort order
272: [23:25:32] <unsignedint> hey does anyone know how to check if there is a logged-in user inside a template include ?
273: [23:25:48] <Colin[pi]> it's just a number to show what order the pages are in the tree
274: [23:26:57] <Colin[pi]> ss23: I just checked, Sort is changed, Status, Version, and LastEditer
275: [23:27:00] <Colin[pi]> *Edited
276: [23:27:20] <guci0> ss23: try hack! ;) http://linki.dtl.pl/6ba My newst work, beta.
277: [23:28:12] <guci0> :) I watched your presentation
278: [23:28:21] <guci0> Nice :)
279: [23:28:44] <ss23> haha, sweet :D
280: [23:28:47] <ss23> hmm
281: [23:28:50] <ss23> LastEdited is, ty
282: [23:28:55] <ss23> Wonder why this isn't wokring!
283: [23:29:17] * DigNZ1 has joined #silverstripe
284: [23:29:18] * DigNZ1 quit (Remote host closed the connection)
285: [23:29:36] * DigNZ1 has joined #silverstripe
286: [23:32:58] <guci0> No one? No tests. Ah :(
287: [23:34:03] <guci0> sleep...
288: [23:39:17] <ss23> lol
289: [23:39:23] <ss23> Sorry guci0, just was having a chat with a cowoerker
290: [23:39:34] <ss23> guci0: Did you learn lots from my presentation? :D
291: [23:41:13] <ss23> guci0: ErrorException [ 8 ]: Array to string conversion ~ SYSPATH/classes/Kohana/Log/Writer.php [ 81 ]
292: [23:41:17] <ss23> ;)
293: [23:41:19] <ss23> Do I win?
294: [23:45:37] * DigNZ1 quit (Ping timeout: 246 seconds)
295: [23:48:31] * DigNZ1 has joined #silverstripe
296: [23:48:32] * DigNZ1 quit (Remote host closed the connection)
297: [23:48:50] * DigNZ1 has joined #silverstripe
298: [23:50:23] <ss23> guci0: Give me a cookie!
299: [23:50:25] <ss23> I broke it I broke it
300: [23:50:25] <ss23> ;_;
301: [23:55:18] * guzzlefry hands ss23 a pack of Oreos.
302: [23:55:40] <guzzlefry> You done good kid.
303: [23:55:48] <ss23> :D
304: [23:55:49] <ss23> ty
305: [23:58:52] <guzzlefry> Do all DataObjects have a Created and LastEdited property?

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