#silverstripe IRC Log

IRC log for 29 September 2015

All timestamps are in UTC.

1: [00:03:23] <DanaeNZ> Call it Hamiltron
2: [00:03:29] <DanaeNZ> so who wants a job
3: [00:03:35] <DanaeNZ> in Auckland I mean
4: [00:06:19] * Azure quit (Ping timeout: 240 seconds)
5: [00:08:38] * Azure has joined #silverstripe
6: [00:10:42] * micmania1 quit (Quit: micmania1)
7: [00:11:25] * TheVoid quit (Ping timeout: 246 seconds)
8: [00:13:17] * Azure quit (Max SendQ exceeded)
9: [00:13:22] * TheVoid has joined #silverstripe
10: [00:25:09] * Azure has joined #silverstripe
11: [00:29:37] * Azure quit (Max SendQ exceeded)
12: [00:30:35] * Azure has joined #silverstripe
13: [00:33:59] * stecman quit (Quit: This computer has gone to sleep)
14: [00:39:53] <helenclarko> DanaeNZ, Damnit!
15: [00:41:54] * Stomach has joined #silverstripe
16: [00:46:10] * DanaeNZ quit (Remote host closed the connection)
17: [00:46:59] * Azure quit (Ping timeout: 264 seconds)
18: [00:51:03] * Azure has joined #silverstripe
19: [00:57:49] * DanaeNZ has joined #silverstripe
20: [00:59:15] * micmania1 has joined #silverstripe
21: [01:01:24] * spronk has joined #silverstripe
22: [01:18:49] * DanaeNZ quit (Remote host closed the connection)
23: [01:19:11] * DanaeNZ has joined #silverstripe
24: [01:21:07] * Hailwood quit (Remote host closed the connection)
25: [01:31:39] * Tanger has joined #silverstripe
26: [01:32:18] <MichalKleiner> there was someone coming from Aus to Akl I think.. just browse the logs.. but in like half a year
27: [01:39:58] <Tanger> Morning guys
28: [01:40:23] <helenclarko> Stomach, Still around?
29: [01:40:28] <Stomach> hiya
30: [01:40:58] <helenclarko> Stomach, Those Swipestripe fixes are not in place currently right?
31: [01:41:10] <Stomach> not on the github branches
32: [01:41:28] <helenclarko> The Email fix specifically.
33: [01:41:53] <Stomach> nope
34: [01:41:57] <MichalKleiner> helenclarko: just offer some $$ to get it shipped to you :-))
35: [01:42:26] <helenclarko> Stomach, All good, I'm watching swipestripes github now.
36: [01:42:40] <Stomach> :)
37: [01:42:50] <helenclarko> Not a big deal, have half a solution at the moment haha.
38: [01:43:20] <helenclarko> Stomach, Take donations?
39: [01:43:27] <Stomach> haha
40: [01:43:37] <Stomach> I dont have the time to get it done quickly :P
41: [01:43:42] <novaweb> work now docs later. I have $result (an array of values)... how to turn that array in to an ArrayList/DataList?
42: [01:43:43] <Stomach> so sure, but it wont change the outcome
43: [01:44:06] <Stomach> ArrayList::create($array)
44: [01:44:17] <novaweb> ty
45: [01:44:32] <helenclarko> Stomach, doesnt matter. Its something I've not had time to look into and needed a fix for.
46: [01:44:39] <Stomach> haha :D
47: [01:46:55] <antmas> that's like 90% of my bugs :P
48: [01:57:52] <DanaeNZ> I'm still listening to chillstep and rain
49: [01:57:55] <DanaeNZ> most productive day ever
50: [01:58:05] <DanaeNZ> I probably would have killed someone otherwise
51: [01:58:35] <Colin[pi]> DanaeNZ: ┬──┬ ノ( ゜-゜ノ)
52: [01:58:42] <DanaeNZ> hahah
53: [02:03:15] <antmas> DanaeNZ: :D me too!
54: [02:18:51] * ss-log has joined #silverstripe
55: [02:26:49] <novaweb> So... i've got a multidimensional array. I need to iterate over the values and create/write new DataObjects using the values from the array
56: [02:26:54] <novaweb> DataList or ArrayList?
57: [02:28:10] * antmas quit (Quit: Page closed)
58: [02:29:38] * spronk quit (Quit: I may need a longer sleep timer...)
59: [02:32:24] <DanaeNZ> novaweb: ArrayList to hold all the new objects
60: [02:32:33] <DanaeNZ> I'm guessing
61: [02:32:54] <DanaeNZ> I hear the delightful jingle of beer and cider bottles
62: [02:36:43] <helenclarko> Lol canadian alphabet: https://www.youtube.com/watch?v=tSTWw6-ueIs
63: [02:39:02] * blahblah has joined #silverstripe
64: [02:39:02] <ss-helper> blahblah: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
65: [02:39:08] * Phlunk3 has joined #silverstripe
66: [02:39:27] <blahblah> Oh goody, the TLS link's used
67: [02:39:29] * blahblah quit (Client Quit)
68: [02:43:22] <DanaeNZ> omg someone has KFC
69: [02:43:32] <DanaeNZ> I've never been hungrier in my life
70: [02:45:16] <ss23> I eat KFC like every day
71: [02:45:17] <ss23> :(
72: [02:45:18] <ss23> feels bad man
73: [02:45:38] <DanaeNZ> I want to eat KFC every day
74: [02:45:53] <ss23> no
75: [02:45:54] <ss23> lies
76: [02:45:54] <ss23> like
77: [02:45:55] <ss23> Believe me
78: [02:45:56] <ss23> You don't
79: [02:45:59] <ss23> ;_;
80: [02:46:01] <ss23> I mena
81: [02:46:04] <ss23> You might for like a week
82: [02:46:06] <ss23> Then... it just... :(
83: [02:46:09] * ss23 sobs
84: [02:46:21] <DanaeNZ> I think you need to go to like a KFC anonymous group
85: [02:46:52] <DanaeNZ> I was gonna go home and cook up some instant noodles
86: [02:46:58] <DanaeNZ> but now the smell is just
87: [02:47:00] <DanaeNZ> gimme
88: [02:49:34] <helenclarko> I havent had fast food in almost 2 years... Except for KFC on my birthday.
89: [02:51:24] <DanaeNZ> woah, that's amazing
90: [02:51:41] <DanaeNZ> my laziness has levelled up hard since moving out
91: [02:51:53] <DanaeNZ> survive on instant noodles
92: [02:57:47] <helenclarko> Its the beer that I cant give up haha.
93: [02:58:38] <helenclarko> DanaeNZ, What level are you now?
94: [02:58:41] * novaweb quit ()
95: [02:59:28] <DanaeNZ> lvl 57
96: [02:59:38] <DanaeNZ> lvl cap is never
97: [03:00:12] <helenclarko> Nice. That grind tho!
98: [03:00:36] <DanaeNZ> yeah you get heaps of exp for just sitting on the comp browsing facebook
99: [03:00:52] <DanaeNZ> although i got a whole lot on sunday cos i literally stayed in bed all day
100: [03:11:05] <ss-helper> PHPUnit/ Silverstripe Testing returns "Couldn't run query", "Table doesn't exist" - http://stackoverflow.com/questions/32834995/phpunit-silverstripe-testing-returns-couldnt-run-query-table-doesnt-exist
101: [03:33:57] * DanaeNZ quit (Remote host closed the connection)
102: [03:46:42] * micmania1 quit (Quit: micmania1)
103: [03:51:18] <helenclarko> Im done!
104: [03:51:20] * helenclarko quit (Quit: Leaving)
105: [03:58:50] * Phlunk3 quit (Remote host closed the connection)
106: [04:03:51] * mahfuz quit (Ping timeout: 246 seconds)
107: [04:06:33] * Stomach_ has joined #silverstripe
108: [04:09:28] * Stomach quit (Ping timeout: 265 seconds)
109: [04:10:59] * Stomach_ quit (Ping timeout: 252 seconds)
110: [04:33:42] * Stomach has joined #silverstripe
111: [04:44:26] * Stomach quit (Quit: zzz)
112: [04:48:25] * Stomach has joined #silverstripe
113: [05:05:29] * gordon has joined #silverstripe
114: [05:05:29] * gordon is now known as nontgor
115: [05:09:22] * DanaeNZ has joined #silverstripe
116: [05:21:56] * DanaeNZ quit (Remote host closed the connection)
117: [05:26:33] * Stomach quit (Quit: zzz)
118: [05:32:16] * wmk has joined #silverstripe
119: [06:10:19] * micmania1 has joined #silverstripe
120: [06:29:44] * spronk has joined #silverstripe
121: [06:33:00] * spronk quit (Read error: Connection reset by peer)
122: [06:35:22] * Mike123 has joined #silverstripe
123: [06:35:45] * spronk has joined #silverstripe
124: [06:36:24] * spronk quit (Max SendQ exceeded)
125: [06:43:23] * Stomach has joined #silverstripe
126: [06:48:32] * mobiusnz has joined #silverstripe
127: [07:10:55] * DanaeNZ has joined #silverstripe
128: [07:15:30] * DanaeNZ quit (Ping timeout: 260 seconds)
129: [07:35:34] * Jakx quit (Ping timeout: 246 seconds)
130: [07:58:14] * kinglozzer has joined #silverstripe
131: [08:04:07] * swaiba has joined #silverstripe
132: [08:04:29] <wmk> does ss have automagic setters?
133: [08:04:39] <wmk> e.g. $dataobject->setTitle()
134: [08:05:23] <swaiba> wmk don't think so, only getters
135: [08:05:44] <wmk> so creating a DO and chaining filling of fields isn't possible?
136: [08:06:50] <swaiba> I create dataojbects by passing an array to the constructor
137: [08:06:59] <wmk> good point
138: [08:07:01] <swaiba> fewer lines of code and much more efficent too
139: [08:07:22] <swaiba> also update if the object exists
140: [08:08:40] <kinglozzer> We really need to add a $obj->setComponent($component) or something instead of $obj->ComponentID = $component->ID;
141: [08:10:25] <swaiba> kinglozzer and taking the array create/update it would be good to add them directly there for either relationship type
142: [08:10:50] <swaiba> has_one would be the relationship name and link to an aboject, the has_many / many_many would be set by an array
143: [08:11:30] <swaiba> e.g. MyObj::create(array('HasOne'=>$obj,'HasMany'=>array($obj1,$obj2)));
144: [08:12:58] <kinglozzer> Yeah that looks nice
145: [08:17:22] * aditya has joined #silverstripe
146: [08:17:27] <aditya> help
147: [08:18:44] <aditya> i have one dataobject and two pages with gridfield and form on each.. how can i populate grid on particular page populate with only dta belongs to that page
148: [08:21:13] <wmk> filter?
149: [08:21:26] <wmk> you pass a list to the grid, e.g $this->RelationName()
150: [08:21:35] <wmk> which is a (subclass) of DataList
151: [08:21:47] <wmk> but that should filter out of the box
152: [08:21:51] <wmk> !paste aditya
153: [08:21:51] <ss-helper> aditya: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
154: [08:22:48] * micmania1 quit (Ping timeout: 250 seconds)
155: [08:24:00] * micmania1 has joined #silverstripe
156: [08:24:10] <aditya> http://www.sspaste.com/paste/show/560a4aa25fe2b
157: [08:24:39] <aditya> http://www.sspaste.com/paste/show/560a4ac1e591c
158: [08:25:06] <aditya> http://www.sspaste.com/paste/show/560a4ad9b0389
159: [08:30:30] <wmk> aditya, TradeHire::get()->filter("PainterID")
160: [08:30:34] <wmk> filter PainterID by what??
161: [08:30:43] <wmk> but just $this->TradeHire() should work
162: [08:31:08] <wmk> you should rename the $has_many to 'TradeHires' => 'TradeHire'
163: [08:31:17] <wmk> plural name for better understanding of your code
164: [08:31:40] <wmk> then $this->TradeHires() should do the trick inside the gridfield::create()
165: [08:32:21] <wmk> same on PlumberPage
166: [08:32:58] * Colin[pi] quit (Ping timeout: 246 seconds)
167: [08:33:10] <aditya> i tried what its not working..
168: [08:34:43] * cupcake has joined #silverstripe
169: [08:34:49] <cupcake> hiya o/
170: [08:34:57] <wmk> aditya, not working is ambiguous
171: [08:35:00] <cupcake> london conference is full up?
172: [08:35:06] <wmk> full up?
173: [08:35:18] <cupcake> rsvps are closed
174: [08:35:22] <wmk> really?
175: [08:35:31] <wmk> Zauberfisch, ^^^^ ?
176: [08:39:54] <cupcake> yeh
177: [08:44:23] * micmania1 quit (Quit: micmania1)
178: [08:49:18] <cupcake> we were looking forward for the beer :p
179: [09:05:25] * aditya quit (Quit: Page closed)
180: [09:30:19] * Stomach quit (Quit: zzz)
181: [09:32:34] * DimiStripe quit (Quit: DimiStripe)
182: [09:44:05] * r3v3rb has joined #silverstripe
183: [09:44:11] <r3v3rb> hi all
184: [09:45:41] <swaiba> r3v3rb o/
185: [09:45:51] <r3v3rb> hi swaiba :)
186: [09:48:17] <r3v3rb> hmm, had a DO and ModelAdmin for postcode areas that I used to get like this: $counties = ArrayList::create(Area::get()->column('County'));
187: [09:48:49] <r3v3rb> now I have moved the Area to a many_many <> belongs_many_many so I can be selective on multiple area pages
188: [09:50:27] <r3v3rb> I tried $counties = ArrayList::create($this->Areas()->filter('County')); and $counties = $this->Areas();
189: [09:50:28] <r3v3rb> but I get a nested error …
190: [09:50:38] <r3v3rb> any ideas
191: [09:51:24] * swaiba_ has joined #silverstripe
192: [09:51:27] <r3v3rb> I need to grab the Areas and create an Arraylist as the URL gets built for each ‘Area’ manually
193: [09:52:10] * swaiba quit (Ping timeout: 240 seconds)
194: [09:53:34] <r3v3rb> I used column to return the distinct county columns - how do I do that through the ORM?
195: [09:56:43] <swaiba_> r3v3rb ->removeDuplicates() ?
196: [09:57:53] <r3v3rb> no such function on a many_many
197: [09:57:55] <r3v3rb> :(
198: [09:59:01] * Tanger quit (Quit: sleep())
199: [09:59:04] <swaiba_> r3v3rb http://api.silverstripe.org/3.1/class-ManyManyList.html
200: [09:59:18] <swaiba_> Methods inherited from DataList - removeDuplicates() - no?
201: [09:59:44] <r3v3rb> groupedBy is
202: [09:59:49] <r3v3rb> what I’m after I think
203: [09:59:52] <kinglozzer> r3v3rb: alterDataQuery() + distinct()?
204: [09:59:56] <r3v3rb> ;)
205: [10:00:07] <r3v3rb> kinglozzer: do not hack da CORE!
206: [10:00:17] <kinglozzer> That's not hacking core!
207: [10:00:30] <kinglozzer> It's what alterDataQuery() was designed for ;)
208: [10:00:31] <r3v3rb> I will not be attending your disgusting abuse of the framework seminar!
209: [10:01:01] <kinglozzer> r3v3rb: Hey, it's about NOT doing it :P
210: [10:01:07] <kinglozzer> And how to do it *safely*... ish
211: [10:01:08] <kinglozzer> ;D
212: [10:01:12] <r3v3rb> I read the info...
213: [10:01:16] <r3v3rb> :|
214: [10:04:29] <Mike123> in SS 2.4 ->push() doesnt work, how do i push data to ArrayData ?
215: [10:05:09] <r3v3rb> kinglozzer: got an example of alterDataQuery?
216: [10:06:03] <kinglozzer> r3v3rb: Nope, but it's fairly simple - $list = $list->alterDataQuery(function($dataQuery) { $dataQuery->distinct(true); });
217: [10:06:17] <kinglozzer> I don't know if that'll actually work for what you want :P but that's how you use it
218: [10:06:25] <r3v3rb> ok, i’ll take a look
219: [10:08:16] <kinglozzer> Or, array_unique($area->Counties()->column('Title'))
220: [10:08:23] <kinglozzer> Be lazy! :P
221: [10:08:38] * DimiStripe has joined #silverstripe
222: [10:10:26] <r3v3rb> kinglozzer: almost but not quite $this->Areas() contains ‘Town’,’County’,’Postcode’,”Long’,’Lat’ I need to return an Arraylist of those but as a Distinct set collating on ‘County'
223: [10:11:03] <r3v3rb> the returned result is then looped and a new ArrayList is created from each County creating a link and title for use in the template ;)
224: [10:11:25] <kinglozzer> Ah I see
225: [10:11:30] <swaiba_> r3v3rb *cough* still recommend remove duplicates :)
226: [10:11:37] <r3v3rb> should be simple but I’m being thick
227: [10:11:46] <kinglozzer> $list = $list->alterDataQuery(function($dataQuery) { $dataQuery->groupby('County'); });
228: [10:11:47] <kinglozzer> ?
229: [10:12:01] <r3v3rb> swaiba_: doesn’t work on DataObject SS_List when I tried
230: [10:12:25] <swaiba_> but it should work on the original DataList / ManyMAnyList / etc
231: [10:12:35] <kinglozzer> Yeah you can't use ->removeDuplicates() unless you transform it to an ArrayList first
232: [10:15:05] <r3v3rb> bah, why is it so difficult to do something so simple sometimes… time to rethink the strategy
233: [10:22:17] <r3v3rb> i want my mummy
234: [10:25:38] <r3v3rb> fack, $this->Areas isn’t correct in the controller!
235: [10:35:20] <r3v3rb> poop, hmm $this->owner->Areas() isn’t right :\
236: [10:35:29] * r3v3rb goes to make coffee and do something else for a bit
237: [10:40:10] <r3v3rb> ok, so i need to get $this->Areas() into an arraylist then I can array_unique
238: [10:40:33] <swaiba_> array_unique is for array, not array list right?
239: [10:41:23] <r3v3rb> swaiba_: true
240: [10:41:52] <r3v3rb> just getting my head round this - as soon as I try to call $this->Areas() in the function it goes into a loop
241: [10:43:12] <r3v3rb> and $this->Areas() only has one facking entry!
242: [10:43:17] <r3v3rb> DOH!
243: [10:45:00] <r3v3rb> http://sspaste.com/paste/show/560a6ba409ab3 here you go!
244: [10:48:14] * DanaeNZ has joined #silverstripe
245: [10:52:48] * DanaeNZ quit (Ping timeout: 272 seconds)
246: [11:00:15] * stecman has joined #silverstripe
247: [11:14:59] <r3v3rb> surely this should work: $counties = $this->Areas()->groupby('County')->toArray(); table AreaPage_Areas exists and has a reference to the Area
248: [11:15:10] <r3v3rb> but no just infinite loops
249: [11:15:18] <kinglozzer> r3v3rb: Infinite loop is because you're calling $this->Areas() inside Areas() :P
250: [11:15:23] <kinglozzer> $this->data()->Areas()
251: [11:15:53] <r3v3rb> bah, thats what I was looking for earlier when I tried owner
252: [11:29:42] <r3v3rb> thank fack for that. all fixed
253: [11:29:55] <r3v3rb> ->data was the problem
254: [11:30:00] * r3v3rb = idiot
255: [11:30:06] * stecman quit (Quit: This computer has gone to sleep)
256: [11:30:22] <r3v3rb> function name same as model = bad idea!
257: [11:33:10] <swaiba_> function name like get"FieldName" also bad idea
258: [11:33:21] <swaiba_> oh I remember the time I raised a bug against the framework....
259: [11:45:25] * slievr has joined #silverstripe
260: [11:46:12] <slievr> has anyone had any experience implementing https://github.com/burnbright/silverstripe-shop with sage pay
261: [11:46:21] <slievr> as it's driving me crazy
262: [11:47:01] <swaiba_> no, but I know alot about sagepay (as most uk devs would)
263: [11:47:23] * swaiba_ is now known as swaiba
264: [11:48:39] * Embraden_ has joined #silverstripe
265: [11:48:46] * Embraden_ quit (Changing host)
266: [11:48:46] * Embraden_ has joined #silverstripe
267: [11:49:21] * terryapodaca has joined #silverstripe
268: [11:50:35] * Embraden quit (Read error: Connection reset by peer)
269: [11:53:57] <slievr> do you know what the message: Received error from payment gateway: The number parameter is required
270: [11:54:02] <slievr> is in refference too
271: [12:09:59] <r3v3rb> swaiba: strange that functions/classes aren’t case sensitive
272: [12:10:25] <r3v3rb> i have Areas as relation and areas as function but both get seen as the same :(
273: [12:10:56] <r3v3rb> sagepay arghhhhhhhh
274: [12:11:03] <r3v3rb> that’s all i’m saying slievr
275: [12:12:35] <wmk> when i'm in a task, is there a method to output something directly? echo seems to be cached / buffered
276: [12:12:38] * NETim has joined #silverstripe
277: [12:15:41] <slievr> r3v3rb, yeah... i'm not a fan
278: [12:15:49] <NETim> Morning, any way to add a custom field into the query when getting dataobjects?
279: [12:15:50] <r3v3rb> wmk: i use print_r
280: [12:16:11] <wmk> r3v3rb, and gets it printed out immediatly?
281: [12:16:12] <r3v3rb> slievr: hideously bad documentation about steps and returns
282: [12:16:35] <wmk> NETim, afaik yes ;)
283: [12:16:37] <r3v3rb> wmk: if memory serves me correctly yes
284: [12:16:52] <NETim> wmk, am I allowed to know?
285: [12:17:19] * UndefinedOffset has joined #silverstripe
286: [12:17:20] <wmk> NETim, what kind of custom field?
287: [12:18:37] <NETim> Want to calculate the great circle distance of all dataobjects and filter those within a certain distance of a given start point.
288: [12:19:13] <wmk> i'd try http://api.silverstripe.org/3.1/source-class-DataList.html#817-827
289: [12:19:25] <wmk> maybe you have to manipulate dataquery by hand
290: [12:20:00] <NETim> Hoping to avoid that. Messy.
291: [12:20:51] <wmk> yup. but setQueried columns you could add another column to calculate stuff
292: [12:22:35] <NETim> good point, but can the dataquery be altered to use a having filter?
293: [12:22:55] <wmk> it should
294: [12:23:14] <wmk> in sql you can query column ID and Title but filter on date
295: [12:23:57] <NETim> Bit tight on time, think I'll have to do a rawish query.
296: [12:26:14] <ss-helper> get current record while modifying fields with GridFieldDetailForm - http://stackoverflow.com/questions/32821832/get-current-record-while-modifying-fields-with-gridfielddetailform
297: [12:29:59] <wmk> NETim, that's also possible ;)
298: [12:30:10] * wmk wonders if a view in DB would also work
299: [12:37:17] <swaiba> sorry slievr was away
300: [12:37:24] <swaiba> I'd say its the house number
301: [12:37:35] <r3v3rb> anyone use import/export module and successfully managed relations in import?
302: [12:37:42] * DanaeNZ has joined #silverstripe
303: [12:37:57] <swaiba> r3v3rb https://github.com/botzkobg/silverstripe-importexport
304: [12:38:13] <swaiba> try this one, it does that, pull request sent to burnbright, not monitored it further
305: [12:38:20] <r3v3rb> swaiba: thanks!
306: [12:38:35] <r3v3rb> burnbright misses it
307: [12:38:37] <r3v3rb> :(
308: [12:38:39] <swaiba> with SagePay I've never known it ask for a field that isn't already in the documentation and marked as required
309: [12:39:05] <r3v3rb> swaiba: no composer install of that version though I guess?
310: [12:39:15] <swaiba> NETim - magic circle stuff? i.e. post code look up
311: [12:39:35] <swaiba> r3v3rb - no sorry, was only temp expected purnbirght to take pull request
312: [12:40:19] <NETim> swaiba, Haversine. Distance from a given point within a certain radius.#
313: [12:40:31] <r3v3rb> is it you pull request then?
314: [12:40:38] <r3v3rb> your?
315: [12:40:39] <r3v3rb> *
316: [12:40:49] <swaiba> someone at bookignlive
317: [12:41:03] <r3v3rb> ;) your business
318: [12:41:12] <swaiba> NETim you are best off doing a "magic square" and then filtering in PHP, that is how we have done it
319: [12:41:31] <swaiba> but I can pastie up the full query, 2 minutes
320: [12:41:40] <NETim> Square won't cut it unfortunately.
321: [12:42:03] <NETim> That will miss out any of the listings that are on the vertices of the square.
322: [12:42:14] * DanaeNZ quit (Ping timeout: 244 seconds)
323: [12:42:25] <slievr> swaiba, thanks I'll see if that's it
324: [12:42:40] <swaiba> NETim no, no
325: [12:42:51] <swaiba> square first filter, cricle second filter
326: [12:43:02] <swaiba> much more efficent that doing the circle formula on all items
327: [12:43:59] <wmk> so doing an ob_end_flus() at the beginning of run() and a flush after every echo works
328: [12:44:00] <NETim> I see what you are suggesting.
329: [12:44:15] <r3v3rb> NETim: you are looking for longtitude latitude look up of post codes in circular area?
330: [12:45:03] <wmk> r3v3rb, you got something for that?
331: [12:45:24] <r3v3rb> wmk i do have some code floating around
332: [12:45:35] <wmk> cool
333: [12:45:54] <wmk> nontgor, do you have something like that for mappable?
334: [12:45:58] <NETim> Looking to get all records (based on lat/long) that are a certain distance from a user defined location
335: [12:46:41] <r3v3rb> here ya go, its a bit big and i’ll get booted:
336: [12:46:49] <r3v3rb> SELECT *, distance_in_mi
337: [12:46:50] <r3v3rb> FROM (
338: [12:46:51] <r3v3rb> SELECT *,
339: [12:46:53] <r3v3rb> 69.0 * DEGREES(ACOS(COS(RADIANS(latpoint))
340: [12:46:54] <r3v3rb> * COS(RADIANS(Area.`Latitude`))
341: [12:46:56] <r3v3rb> * COS(RADIANS(longpoint) - RADIANS(Area.`Longitude`))
342: [12:46:57] <r3v3rb> + SIN(RADIANS(latpoint))
343: [12:46:59] <r3v3rb> * SIN(RADIANS(Area.`Latitude`)))) AS distance_in_mi
344: [12:47:00] <r3v3rb> FROM `Area`
345: [12:47:02] <r3v3rb> JOIN (
346: [12:47:03] <r3v3rb> SELECT 51.141768 AS latpoint, 0.259919 AS longpoint, 20.0 AS r
347: [12:47:05] <r3v3rb> ) AS p
348: [12:47:06] <r3v3rb> WHERE Area.`Latitude`
349: [12:47:08] <r3v3rb> BETWEEN latpoint - (r / 69)
350: [12:47:09] <r3v3rb> AND latpoint + (r / 69)
351: [12:47:11] <r3v3rb> AND Area.`Longitude`
352: [12:47:12] <r3v3rb> BETWEEN longpoint - (r / (69 * COS(RADIANS(latpoint))))
353: [12:47:14] <r3v3rb> AND longpoint + (r / (69 * COS(RADIANS(latpoint))))
354: [12:47:15] <r3v3rb> ) d
355: [12:47:17] <r3v3rb> WHERE distance_in_mi <= r
356: [12:47:18] <r3v3rb> ORDER BY distance_in_mi
357: [12:47:18] <r3v3rb> spherical law of cosines ;)
358: [12:47:27] <NETim> sounds fun
359: [12:47:42] <wmk> !paste r3v3rb
360: [12:47:43] <ss-helper> r3v3rb: Please paste your code using something like http://kopy.io/ or http://www.sspaste.com/ or https://gist.github.com/ and then paste the link here.
361: [12:47:49] <NETim> But I already have the equations. Was just hoping that there'd be some way to alter the dataquery.
362: [12:47:55] <r3v3rb> ss-helper: :) I’m too lazy
363: [12:48:05] <wmk> r3v3rb, you didn't made it using ORM?
364: [12:48:22] <r3v3rb> wmk, not used in an SS project it was for something else :)
365: [12:48:27] <wmk> ok
366: [12:49:29] <NETim> wmk, how would you suggest ORMing that?
367: [12:49:41] <swaiba> NETTim - http://www.silverstrip.es/blog/haversine-formula
368: [12:49:50] <r3v3rb> I’d just use an SQLQuery
369: [12:49:53] <Audlex> whats the best way to alternate in the front end? eg the first result has class left, second class right and the next 2 are right, left.
370: [12:50:47] <wmk> Audlex, in a List?
371: [12:51:01] <NETim> swaiba, cheers.
372: [12:51:33] <wmk> Audlex, <% loop $Foo $> <% if $Even %> left <% else %> right <% end_if %> <% end_loop %>
373: [12:52:05] <Audlex> yeah but i need it to reverse every set of 2
374: [12:52:08] <wmk> this would be l - r - l -r -l -r ...
375: [12:52:19] <Audlex> left right right left
376: [12:52:19] <Audlex> etc
377: [12:52:24] <wmk> oh key
378: [12:52:51] <Audlex> just use a few $Modulus i suppose?
379: [12:52:56] <r3v3rb> swaiba: kinglozzer where is my silverstrip.es login
380: [12:52:58] <r3v3rb> :P
381: [12:53:15] <kinglozzer> r3v3rb: Ask wmk ;)
382: [12:54:36] <r3v3rb> Audlex: yep, that would work
383: [12:54:44] <wmk> kinglozzer, SSViewer_BasicIteratorSupport has Even and Odd implemented. Where should Audlex implement his l - r -r -l logic?
384: [12:54:52] <swaiba> NETim - do a refresh and let me know how if and mods on the code published are required
385: [12:54:56] <Audlex> thanx r3v3rb, wmk
386: [12:55:09] <swaiba> I've just made some updates and I've patched it together from different parts
387: [12:55:19] <r3v3rb> wmk: if mod> l -r else r - l end mod
388: [12:55:51] <r3v3rb> swaiba: that import/export isn’t keeping the relations tid :\
389: [12:55:53] <r3v3rb> tidy*
390: [12:56:13] <swaiba> really, I've only directed it to work, not tried it
391: [12:56:21] <swaiba> whats the issue I'll get it fixed / answer it
392: [12:56:22] <r3v3rb> :D
393: [12:56:31] <NETim> swaiba, will do.
394: [12:56:56] <NETim> Might just use that as inspiration though. I'm halfway to doing it in MySQL already.
395: [12:57:04] * keroberos has joined #silverstripe
396: [12:57:18] * darjus01 has joined #silverstripe
397: [12:57:27] <swaiba> no worries, but I do recommend the square first, just profile to see the difference :-P
398: [12:57:36] <wmk> swaiba, makes sense
399: [12:59:01] <r3v3rb> swaiba: not to worry I’ll switch them to has_one has_many instead will resolve issue
400: [12:59:52] <r3v3rb> swaiba: any circular lookup is slower in pretty much any language - sphere lookups in Unity are slow thats why most games use bounding box squares for collision detection :D
401: [13:00:13] * keroberos quit (Client Quit)
402: [13:00:23] <swaiba> r3v3rb - shame I'd like to know to make sure it doens't happen for us :)
403: [13:00:50] <swaiba> and yeah much more complicated and slower, the square thing was mentioned at php confernce this year
404: [13:00:59] * kerozene has joined #silverstripe
405: [13:01:05] <r3v3rb> it was a belings_many to many_many relation when importing the relations arent set :\
406: [13:01:18] <swaiba> and is so much better that the remainder could be processed in php even and be quicker
407: [13:01:20] <r3v3rb> belongs*
408: [13:01:28] <NETim> swaiba, I'm assuming that the speed gain is from doing the circular lookup on a smaller data set?
409: [13:01:34] <swaiba> indeed
410: [13:01:35] <r3v3rb> NETim: yup
411: [13:02:46] <NETim> floatval($params['Distance']) / 111.045;
412: [13:02:53] <NETim> swaiba, where does 111.045 come from?
413: [13:03:31] <swaiba> oooo good question
414: [13:07:56] <swaiba> NETim I'm going to pass
415: [13:08:00] <swaiba> pass over to https://youtu.be/drYy2T23eII?list=PL_aPVo2HeGF_VdlTpUF6ViNgLC7Raph0i
416: [13:08:23] <swaiba> I belive that shows the query exactly and he then advises php for the implementation after the square
417: [13:08:35] <NETim> swaiba, I believe it is a conversion to either radians or degrees.
418: [13:08:44] <swaiba> sorry to duck out, but I cannot remember and should get on...
419: [13:08:45] <nontgor> NETim: 111.045 km per degree
420: [13:08:54] <NETim> nontgor, cheers.
421: [13:09:02] <swaiba> yeah it would be pre calculating some of the deg2radians stuff
422: [13:09:12] <swaiba> nontgor thanks :)
423: [13:09:28] <NETim> right. Time to give this a go.
424: [13:09:35] <NETim> Will report back if it works.
425: [13:10:30] <nontgor> wmk/NetIM - regarding early Mappable let me check, there is a NearestPOIPage (Point of Interest) which should have the Haversine formula
426: [13:12:14] <nontgor> see https://github.com/gordonbanderson/MappablePointsOfInterest/blob/3.1/code/NearestPOIPage.php - now I have to check where the 6371 came from :)
427: [13:13:34] <nontgor> background here https://en.wikipedia.org/wiki/Haversine_formula
428: [13:13:59] <nontgor> perhaps I need to move the nearest POI into the model as opposed to an SQL query in the controller
429: [13:19:30] <wmk> nontgor, so also plain sql and no ORM
430: [13:20:59] <nontgor> doing that in the ORM might be tricky. I just wanted it to work :)
431: [13:22:03] <wmk> good point ;)
432: [13:22:17] <r3v3rb> :D makes sense
433: [13:22:17] <wmk> well, swaiba posted something above using orm
434: [13:28:43] <nontgor> can anyone point me at some examples of SS functional tests - can't get the get($url) method to work
435: [13:29:11] <nontgor> as per https://docs.silverstripe.org/en/3.0/topics/testing/create-functional-test/
436: [13:29:33] <nontgor> oh 3.0,... searches for 3.1 docs
437: [13:32:10] <terryapodaca> any CSSers (and html) want to earn a little cash this morning/today?
438: [13:32:20] <r3v3rb> kinglozzer: just letting wmk know he won’t be able tounderstand your thick norfolk accent! at the conference! lmao
439: [13:33:25] * wmk googles lmao (is it the same like a similar german abbreviation?)
440: [13:33:48] <r3v3rb> laughs my ass off
441: [13:33:48] <wmk> well, like the bavarian meaning of it
442: [13:33:56] <r3v3rb> wmk, sorry
443: [13:34:01] <wmk> np
444: [13:34:16] <wmk> sometims i suffer from abbrevitis
445: [13:34:42] <r3v3rb> i get told off for it by clients, years of irc abuse in channels that i cannot mention
446: [13:38:46] <r3v3rb> oh, ffs now the import is skipping the last column of data … back to original import/export module
447: [13:41:17] <terryapodaca> Does anyone know how to make the UploadField float left in the CMS like just about all the other input fields?
448: [13:46:50] <r3v3rb> terryapodaca: ask Zauberfisch ;)
449: [13:48:46] <NETim> If i add a custom field to a datalist, does it still sort the same way?
450: [13:49:10] <NETim> So if I add distance as a custom field, can I then do DL->sort("distance")?
451: [13:49:32] <kinglozzer> r3v3rb: I'd be impressed if *anyone* understands it ;)
452: [13:49:53] <nontgor> mmm, 3.1 docs are all but the same https://docs.silverstripe.org/en/3.1/developer_guides/testing/how_tos/write_a_functionaltest/
453: [13:50:03] <r3v3rb> I’ll get it, spend a few weekends each year in norwich soooooo…
454: [13:50:07] <Pybwolk> thanks kinglozzer
455: [13:50:08] <Pybwolk> :>
456: [13:50:15] <Pybwolk> (yesterday composer autoloader thing)
457: [13:50:21] <kinglozzer> Pybwolk: np :P
458: [13:50:22] <NETim> change that, it's an arraylist I'm working with.
459: [13:50:30] <Pybwolk> left this logged in owa neet, just realised
460: [13:50:35] <r3v3rb> Pybwolk: you awake man!
461: [13:50:41] <Pybwolk> kinda
462: [13:50:45] <Pybwolk> it is ~3pm
463: [13:50:45] <kinglozzer> r3v3rb: I'll have to put on my best posh accent
464: [13:50:53] <Pybwolk> nah kinglozzer
465: [13:50:55] <nontgor> from the above link, in a functional test, $page = $this->get('home/'); works, but $page = $this->get('mypageinfixtures/'); does not.
466: [13:50:59] <r3v3rb> oh fack kinglozzer no one will understand
467: [13:51:02] <Pybwolk> go full Norfolk
468: [13:51:18] <wmk> Pybwolk, ☺/
469: [13:51:28] <Pybwolk> \o wmk :)
470: [13:51:41] <kinglozzer> thas a roigh neet trick fur edit'n core that es
471: [13:51:45] <kinglozzer> etc
472: [13:51:47] <wmk> nontgor, functional test like behat?
473: [13:52:09] <wmk> do you have fixtures there? or do you query some live site?
474: [13:52:14] <nontgor> controller test but all command line. I just cant get the URL of the page to load
475: [13:52:17] <Pybwolk> cannat be eeny hardah then oonda stand'n geordies liek
476: [13:52:18] <nontgor> fixtures there
477: [13:52:52] <nontgor> confirmed usnig objFromFixture and also raw SQL
478: [13:53:11] <Pybwolk> someone do a talk on tests with SS. That'd be the shit.
479: [13:53:17] <r3v3rb> kinglozzer: you : https://youtu.be/TpySR7EjyVA?t=108
480: [13:53:25] <wmk> Pybwolk, ain't there a free slot on saturday?
481: [13:53:26] <Pybwolk> like, not just testing. but fixtures, etc.
482: [13:53:32] <Pybwolk> wmk: hmm, mebbe.
483: [13:53:34] <kinglozzer> Hahaha yes r3v3rb
484: [13:53:35] <Pybwolk> but I dun test, lol
485: [13:53:36] <r3v3rb> wmk: be scared
486: [13:53:41] <wmk> Pybwolk, DO IT!
487: [13:53:58] <Pybwolk> wmk: I'd like to. but I'm currently so busy (have been for months!)
488: [13:54:54] <r3v3rb> kinglozzer: sorry mate couldn’t resist
489: [13:54:55] <r3v3rb> oh this fella: https://youtu.be/zkO-INhtTxM?t=87
490: [13:54:55] <r3v3rb> she was a bit rude!
491: [13:56:05] <kinglozzer> Pybwolk: no excuse! ;)
492: [13:56:06] <Pybwolk> fuck, trapped by a wix ad.
493: [13:56:07] <Pybwolk> NOPE
494: [13:56:19] <kinglozzer> Heck I still haven't started anything for my talk
495: [13:56:24] <r3v3rb> Pybwolk: wix = best web editor eva!
496: [13:56:36] <Pybwolk> kinglozzer: know taht feels.
497: [13:56:40] <r3v3rb> kinglozzer: don’t worry it’ll all come out in the wash
498: [13:56:51] <terryapodaca> r3v3rb: I think I got it, i had my YAML config wrong
499: [13:56:55] <kinglozzer> Aww imma miss wmk's talk :(
500: [13:56:55] <Pybwolk> Got a month. I plan to put something together. But I've been planning that for 2 months now.
501: [13:57:16] <terryapodaca> bet, is there a more simple way to reply to someone's screen name without having to type it?
502: [13:57:20] <r3v3rb> why why why does the last column not import ffs
503: [13:57:24] <kinglozzer> terryapodaca: tab
504: [13:57:34] <kinglozzer> type first few chars, hit tab, boom
505: [13:57:39] <wmk> oh, i'll miss kinglozzer's talk?
506: [13:58:02] <kinglozzer> wmk: You're only going Saturday?
507: [13:58:08] <terryapodaca> kinglozzer: what client?
508: [13:58:12] <kinglozzer> Or in protest, because I'm only going Friday? :P
509: [13:58:19] <r3v3rb> seriously this is beginning to piss me off now
510: [13:58:22] <kinglozzer> terryapodaca: Most clients do that, mine's Limechat
511: [13:58:24] <wmk> kinglozzer, that's no good idea
512: [13:58:25] <r3v3rb> me too kinglozzer
513: [13:58:44] <wmk> ffs?
514: [13:58:51] <Pybwolk> ffs.
515: [13:58:58] <r3v3rb> for fack sake
516: [13:59:01] <r3v3rb> ffs
517: [13:59:05] <Pybwolk> fak'n stey
518: [13:59:14] <r3v3rb> feck me steak
519: [13:59:21] <wmk> hungry?
520: [13:59:34] <Pybwolk> Nup, just russian.
521: [13:59:43] <Pybwolk> back.
522: [13:59:47] <r3v3rb> Pybwolk: ahhhhaaa hahahahaha
523: [13:59:48] <Pybwolk> home. for some reason.
524: [13:59:51] <wmk> kinglozzer, great title for a talk
525: [14:00:01] <terryapodaca> yeah, Pidgin doesn't let me Tab
526: [14:00:14] <kinglozzer> wmk: ;D
527: [14:00:15] <Pybwolk> tab?
528: [14:00:17] <wmk> could also be "avoid trouble in future" and learn how to use git and composer?
529: [14:00:25] <terryapodaca> I tried alt+tab
530: [14:00:31] <Pybwolk> eh?
531: [14:00:38] <kinglozzer> wmk: That's the gist of the talk, yeah :P
532: [14:00:55] <wmk> yup...
533: [14:01:02] <terryapodaca> yeah, kinglozzer is trying to show me how to type a couple characters of someones screen name and then hit tab to autofill the rest
534: [14:01:11] <Pybwolk> so we've a talk on composer, a talk on injector, a talk on...
535: [14:01:12] <Pybwolk> uhh
536: [14:01:17] <Pybwolk> coding.
537: [14:01:18] <Pybwolk> maybe
538: [14:01:22] <Pybwolk> if you're new.
539: [14:01:24] <terryapodaca> since some people have weird names
540: [14:01:37] <terryapodaca> Pybwolk: whoa...wait, that did work
541: [14:01:55] <kinglozzer> Pybwolk: Nah, Dan's not talking Injector
542: [14:02:09] <r3v3rb> injector would have been a good one
543: [14:02:17] <terryapodaca> kinglozzer: whoooohooooo
544: [14:02:20] <wmk> cupcake, If you do not wish to register on meetup.com,
545: [14:02:20] <wmk> you can contact us to be registered as participant.
546: [14:02:37] <wmk> so just fill out that contact form on stripecon.eu
547: [14:04:35] <nontgor> URL:fourth 404
548: [14:04:35] <nontgor> URL:fourth/ 404
549: [14:04:35] <nontgor> URL:/fourth 404
550: [14:04:35] <nontgor> URL:/fourth/ 404
551: [14:04:35] <nontgor> < I want my page to be found in the tests :( *sad face*
552: [14:04:56] <Pybwolk> r3v3rb: isn't Dan talking about injector?
553: [14:05:27] <r3v3rb> Pybwolk: kinglozzer: Pybwolk: Nah, Dan's not talking Injector<<<<
554: [14:05:36] <r3v3rb> 3:01pm
555: [14:05:39] <Pybwolk> oh
556: [14:05:49] <r3v3rb> Pybwolk: you going on Friday?
557: [14:06:10] <Pybwolk> all weekend
558: [14:06:23] <r3v3rb> holy carp he’s using it as holiday
559: [14:06:38] <Pybwolk> yup
560: [14:08:52] <NETim> Anyone? ArrayList sort not sorting?
561: [14:10:34] <NETim> Ok, nevermind. Damn immutable objects...
562: [14:12:23] <wmk> NETim, immutable is cool
563: [14:14:37] * terryapodaca quit (Quit: Leaving.)
564: [14:18:37] <NETim> depends on the situation and caffeine level.
565: [14:18:48] * terryapodaca has joined #silverstripe
566: [14:21:38] <r3v3rb> time 4 coffee - anyone?
567: [14:22:47] <r3v3rb> csv importing 9000 records
568: [14:22:52] <r3v3rb> i’ll be a while
569: [14:25:42] <r3v3rb> ok, not funny - modeladmin import works perfectly importing all columns - import/export module on gridfield fails to import last column… grrrrr
570: [14:27:39] <Pybwolk> MINT!
571: [14:27:46] <r3v3rb> MINT!
572: [14:27:50] <Pybwolk> I just fuck'n finished Minesweeper
573: [14:27:53] <Pybwolk> for like, the first time.
574: [14:28:16] <Pybwolk> that I can remember. I've probably done it a couple of times before.
575: [14:28:20] <Pybwolk> Maybe
576: [14:28:25] <r3v3rb> google doodle is funny today for a change
577: [14:29:01] <Pybwolk> all the waters
578: [14:32:38] <terryapodaca> you mean with the water on mars?
579: [14:36:00] <r3v3rb> aye
580: [14:37:47] <r3v3rb> ok, found bug in import/export by mr burnbright it appears that last column is not always read and kept in the output dataobject
581: [14:56:36] * Mike123 quit (Ping timeout: 246 seconds)
582: [15:01:10] * slievr_ has joined #silverstripe
583: [15:03:15] * slievr quit (Ping timeout: 246 seconds)
584: [15:03:54] * darjus01 quit (Read error: Connection reset by peer)
585: [15:05:58] <swaiba> r3v3rb - i take it that is in our version too?
586: [15:06:08] <swaiba> *our = the one I sent earlier?
587: [15:06:11] <r3v3rb> swaiba: i guess: https://github.com/burnbright/silverstripe-importexport/issues/28
588: [15:06:45] <swaiba> ta
589: [15:07:59] <r3v3rb> it may only affect me!
590: [16:02:40] <terryapodaca> how do i search these chat logs?
591: [16:03:41] <Pybwolk> logs.silverstripe.org
592: [16:03:51] <Pybwolk> oh, look at title
593: [16:03:54] <Pybwolk> topic*
594: [16:04:02] <Pybwolk> http://silverstripe.org/irc-logs
595: [16:04:18] <Pybwolk> is a redirect iirc.
596: [16:04:27] <terryapodaca> yep, just as I asked that I saw that in the top
597: [16:15:07] * DanaeNZ has joined #silverstripe
598: [16:16:24] <Pybwolk> terryapodaca: the other way is to google: "<searchterm(s)> site:<whatever the url that link redirects to is"
599: [16:16:37] <Pybwolk> (without quotes of course)
600: [16:19:28] * DanaeNZ quit (Ping timeout: 250 seconds)
601: [16:30:52] * kinglozzer quit ()
602: [16:36:05] * Pybwolk quit ()
603: [16:36:17] * UndefinedOffset quit (Quit: Leaving.)
604: [16:43:07] * swaiba quit (Remote host closed the connection)
605: [16:50:42] * UndefinedOffset has joined #silverstripe
606: [16:52:01] * UndefinedOffset quit (Client Quit)
607: [17:04:43] * UndefinedOffset has joined #silverstripe
608: [17:21:59] * wmk quit (Ping timeout: 250 seconds)
609: [17:24:11] * r3v3rb quit (Quit: r3v3rb)
610: [17:24:57] * wmk has joined #silverstripe
611: [17:30:24] * wmk quit (Ping timeout: 255 seconds)
612: [17:55:11] * wmk has joined #silverstripe
613: [18:01:00] * wmk quit (Ping timeout: 264 seconds)
614: [18:04:18] * Stomach has joined #silverstripe
615: [18:07:04] <Zauberfisch> cupcake: it's open again
616: [18:07:16] <Zauberfisch> cupcake: sorry, was some old settings that we forgot to remove
617: [18:11:22] <terryapodaca> Zauberfisch: you got a second to look at something for me...with your awesome CSS skilz
618: [18:24:03] * Stomach quit (Quit: zzz)
619: [18:25:15] * wmk has joined #silverstripe
620: [18:29:55] * gelignite has joined #silverstripe
621: [18:31:15] * wmk quit (Ping timeout: 265 seconds)
622: [18:55:03] * wmk has joined #silverstripe
623: [18:55:42] * Stomach has joined #silverstripe
624: [19:00:31] * wmk quit (Ping timeout: 252 seconds)
625: [19:25:16] * wmk has joined #silverstripe
626: [19:30:49] * wmk quit (Ping timeout: 246 seconds)
627: [19:34:06] * helenclarko has joined #silverstripe
628: [19:46:06] <helenclarko> MORNING!
629: [19:46:09] <helenclarko> o/
630: [19:55:22] * wmk has joined #silverstripe
631: [20:00:55] * wmk quit (Ping timeout: 246 seconds)
632: [20:01:54] * Colin[pi] has joined #silverstripe
633: [20:10:26] * terryapodaca has left #silverstripe
634: [20:10:37] * micmania1 has joined #silverstripe
635: [20:17:09] <Stomach> hey helenclarko
636: [20:18:08] <helenclarko> Do we all just ignore that Nippy's is made in Australia?
637: [20:19:20] * stecman has joined #silverstripe
638: [20:20:51] <Stomach> nippys is delicious
639: [20:21:48] <helenclarko> I agree!
640: [20:23:00] <helenclarko> "It has electrolytes"
641: [20:25:25] * novaweb has joined #silverstripe
642: [20:25:26] * wmk has joined #silverstripe
643: [20:31:09] * wmk quit (Ping timeout: 256 seconds)
644: [20:37:51] <helenclarko> So my work has decided to give us an hour off for the next 1 1/2 weeks. Because I work for an eductional games company and schools out! No phone calls!
645: [20:39:05] * jules0x has joined #silverstripe
646: [20:40:23] <jules0x> 0/ Anyone famliar with Crontask?
647: [20:40:48] <Stomach> jules0x yes
648: [20:42:04] <jules0x> I have a crontask, and I set a schedule, but I can only get it to run once (using sake dev/cron)
649: [20:42:37] <Stomach> what does your cronjob look like
650: [20:42:41] <Stomach> cronjob -l
651: [20:42:49] <jules0x> once it's run, I get no crontab for 'username'
652: [20:43:51] <jules0x> actually, I get no crontab even if the schedule is upcoming
653: [20:45:04] <jules0x> cronjob command not found
654: [20:45:24] <jules0x> cron noob, clearly
655: [20:46:32] <helenclarko> Fat Freddys drop and 10hr peaceful rain! Best idea I have had today.
656: [20:47:44] <Stomach> jules0x - you need to set a cronjob which will run the task for you
657: [20:48:01] <Stomach> https://github.com/silverstripe-labs/silverstripe-crontask#the-getschedule-method
658: [20:48:03] <Stomach> like that
659: [20:49:27] * DanaeNZ has joined #silverstripe
660: [20:49:38] <jules0x> I have the getcshedule function with a cron schedule
661: [20:50:12] <jules0x> do I need a cronjob to run dev/cron on a regular basis?
662: [20:50:43] <DanaeNZ> morning all o/
663: [20:50:50] <DanaeNZ> ooh dear look at the time
664: [20:52:07] <Stomach> jules0x generally yes
665: [20:52:14] <Stomach> DanaeNZ you're late!
666: [20:52:23] <jules0x> ok. makes sense. ta.
667: [20:52:55] * gelignite_ has joined #silverstripe
668: [20:53:12] <DanaeNZ> very much so
669: [20:53:26] <helenclarko> DanaeNZ, o/
670: [20:53:37] * gelignite_ quit (Read error: Connection reset by peer)
671: [20:53:39] <novaweb> Morena friends
672: [20:55:19] * wmk has joined #silverstripe
673: [20:55:46] * gelignite quit (Ping timeout: 265 seconds)
674: [20:56:28] * UndefinedOffset quit (Quit: Leaving.)
675: [20:57:44] * DimiStripe_alt has joined #silverstripe
676: [20:59:19] * DimiStripe quit (Ping timeout: 252 seconds)
677: [20:59:20] * DimiStripe_alt is now known as DimiStripe
678: [21:01:00] <novaweb> Looking for guidance on line 51. Tried using ArrayList create but it threw an ArrayData error. $result is a multidimensional array https://github.com/joshkosmala/silverstripe-tenon/blob/develop/code/TenonProcessor.php
679: [21:01:14] <novaweb> see //comments
680: [21:01:26] * wmk quit (Ping timeout: 272 seconds)
681: [21:17:06] * DanaeNZ quit (Remote host closed the connection)
682: [21:22:58] * DanaeNZ has joined #silverstripe
683: [21:25:31] * wmk has joined #silverstripe
684: [21:29:21] <MichalKleiner> novaweb: what is the structure of the array? can you post a json sample before decoding?
685: [21:31:00] * wmk quit (Ping timeout: 264 seconds)
686: [21:42:01] <novaweb> MichalKleiner will do now
687: [21:42:26] <MichalKleiner> I suppose it will have to be some sort of cycle, nothing magical
688: [21:49:27] <novaweb> MichalKleiner whatever I'm posting to pastie is crashing it lulz
689: [21:49:30] <novaweb> i'll try sspaste
690: [21:49:58] <novaweb> http://www.sspaste.com/paste/show/560b077b6efbd
691: [21:49:59] <MichalKleiner> haha, how are we suppose to give you advice on such bad-ass problem :-D
692: [21:50:09] <novaweb> that's the JSON response not decoded
693: [21:51:13] <DanaeNZ> it has a Debug right at the start
694: [21:51:33] <DanaeNZ> is that meant to be there?
695: [21:52:32] <MichalKleiner> http://www.sspaste.com/paste/show/560b0813675f7
696: [21:52:39] <MichalKleiner> that's nicely formatted
697: [21:53:51] <novaweb> DanaeNZ yes
698: [21:54:10] <MichalKleiner> so novaweb I think you want to turn resultSet into TenonResults?
699: [21:54:23] <novaweb> Affirmative
700: [21:54:27] <MichalKleiner> would be handy to see the DO of TenonResult as well
701: [21:54:50] <novaweb> for each resultSet new TenonResult()
702: [21:54:50] <MichalKleiner> found it
703: [21:54:58] <novaweb> Cool yep it's in the repo
704: [21:55:23] <novaweb> *result not resultSet
705: [21:55:35] * wmk has joined #silverstripe
706: [21:57:46] * antmas has joined #silverstripe
707: [21:57:56] <antmas> moin all o/
708: [21:58:37] <MichalKleiner> foreach $data->resultSet as $result { $tenonResult = new TenonResult(); ... set the fields here as $tenonResult->errorDescription = $result->errorDescription; ... $tenonResult->write(); }
709: [21:58:40] <novaweb> \o
710: [21:58:56] <MichalKleiner> foreach ($data->resultSet as $result) { $tenonResult = new TenonResult(); ... set the fields here as $tenonResult->errorDescription = $result->errorDescription; ... $tenonResult->write(); }
711: [21:59:00] <MichalKleiner> missing brackets
712: [21:59:05] <novaweb> Shot maaaate
713: [21:59:28] <novaweb> Yeah I just figured that all out when looking through your nicely formatted JSON hahah
714: [21:59:41] <novaweb> Awesome though, thank you. Here we go.
715: [21:59:47] <MichalKleiner> http://jsonprettyprint.com/
716: [21:59:53] <MichalKleiner> does the trick
717: [22:00:00] <MichalKleiner> there is also plugin for Sublime
718: [22:01:03] * wmk quit (Ping timeout: 250 seconds)
719: [22:02:04] <novaweb> Choiiice
720: [22:07:33] * mahfuz has joined #silverstripe
721: [22:21:26] * antons has joined #silverstripe
722: [22:25:29] * wmk has joined #silverstripe
723: [22:27:16] * pinc_ has joined #silverstripe
724: [22:27:27] <DanaeNZ> pinc_: dik
725: [22:27:34] <pinc_> @DanaeNZ tool
726: [22:28:08] * Phlunk3 has joined #silverstripe
727: [22:28:49] * adrexia has joined #silverstripe
728: [22:30:19] * Jakx has joined #silverstripe
729: [22:30:32] <antmas> DanaeNZ: pinc_ so much love in the Toast office
730: [22:30:38] <pinc_> Haha
731: [22:30:58] <DanaeNZ> we use stronger language irl
732: [22:30:58] <pinc_> We jest, theres so much hatred that it has turned into respek
733: [22:31:06] <pinc_> Im taller irl too
734: [22:31:20] <DanaeNZ> respek
735: [22:31:27] <pinc_> wurd
736: [22:31:28] * wmk quit (Ping timeout: 265 seconds)
737: [22:31:33] <DanaeNZ> sentence
738: [22:31:50] <pinc_> 1o yrs
739: [22:32:44] <pinc_> Anyone ever fiddled with ss forums module b4?
740: [22:32:45] * antmas puts on rain+chillstep
741: [22:33:19] <pinc_> Wondering while there is always an 'Anon' logged in/ online
742: [22:33:51] <pinc_> *why
743: [22:34:45] * cupcake quit (Ping timeout: 246 seconds)
744: [22:35:12] * DanaeNZ also puts on rain and chillstep
745: [22:35:39] <DanaeNZ> http://www.seek.co.nz/job/29585698?pos=1&type=standout&engineConfig=control&tier=no_tier&whereid=
746: [22:35:42] * pinc_ puts on balaclava
747: [22:35:44] <DanaeNZ> look it's our ad
748: [22:35:57] <helenclarko> antmas, Had Fat freddys and rain for this morning. Blackbird album
749: [22:36:01] <pinc_> #clickbait
750: [22:36:05] * DanaeNZ pulls out sawed off shotgun
751: [22:37:42] <antmas> helenclarko: nice, good mix
752: [22:39:01] <Stomach> no salary range?
753: [22:39:04] <Stomach> scardy cats
754: [22:39:39] <novaweb> Hi MichalKleiner, so your intention is not to decode the JSON response?
755: [22:39:47] <pinc_> @Stomach 'Thrifty'
756: [22:39:52] <Phlunk3> no point in guesstimating how much a potential applicant may be worth to your company before even meeting them. At least it's not done through a recruitment agency hiding away who the applicant will actually be working for lol.
757: [22:40:51] <Stomach> pinc_ :P
758: [22:40:53] <MichalKleiner> novaweb: no no, you have to decode to get php object to iterate over..
759: [22:41:05] <novaweb> Ok cool
760: [22:41:06] <MichalKleiner> it was just easy to get the json and see the structure
761: [22:41:22] <DanaeNZ> Hm I noticed it also doesn't say if we're after junior/intermediate or whatever
762: [22:42:29] <antmas> DanaeNZ: what're you after?
763: [22:42:39] <antmas> it reads like a intermediate, touching on junior
764: [22:42:43] <pinc_> haha
765: [22:42:48] <pinc_> no touching junoirs @DanaeNZ
766: [22:42:57] <DanaeNZ> XD
767: [22:42:58] <antmas> :O
768: [22:42:58] <antmas> lol
769: [22:43:08] <DanaeNZ> hahahaha
770: [22:43:14] <pinc_> I offer no valule to this irc thing at all
771: [22:43:22] <pinc_> Ban me already
772: [22:43:23] <DanaeNZ> comedic value
773: [22:43:23] * DimiStripe quit (Remote host closed the connection)
774: [22:43:24] <antmas> VALULE
775: [22:43:31] <DanaeNZ> vaLOL
776: [22:43:36] * DimiStripe has joined #silverstripe
777: [22:43:37] <pinc_> I offerer typoos all day
778: [22:44:01] <antmas> what is it with Toast? all 3 of you were terribad at typos :P
779: [22:44:38] <pinc_> haha
780: [22:45:36] <DanaeNZ> It's our insane typing speed
781: [22:45:45] <antmas> must be
782: [22:45:46] <DanaeNZ> and mechanical keyboards
783: [22:45:46] * Hailwood has joined #silverstripe
784: [22:45:46] <antmas> ...
785: [22:45:47] <pinc_> vroooom
786: [22:45:48] <antmas> :P
787: [22:47:40] <Hailwood> The moment when you wake up one morning to find your perfectly up to date nodejs 0.12 is now out of date and you should be using 4.1.1 ... lolwot?
788: [22:48:32] <pinc_> Front end is terrible
789: [22:48:37] * DanaeNZ laughs
790: [22:48:47] * pinc_ crys
791: [22:49:06] <DanaeNZ> cries* dude cries*
792: [22:50:20] <pinc_> c'mon @DanaeNZ, I'm typoo guy
793: [22:52:21] * MichalKleiner quit (Read error: Connection reset by peer)
794: [22:52:53] * MichalKleiner has joined #silverstripe
795: [22:55:04] <jules0x> ლ(ಠ益ಠ) must be time for lunch. The same get()->where() is returning a different result if run in a crontask than if run in a build task...
796: [22:57:33] * pinc_ quit ()
797: [23:08:09] * Audlex quit ()
798: [23:23:44] <DanaeNZ> ....time for more coffee
799: [23:32:51] * ss-helper quit (Ping timeout: 246 seconds)
800: [23:33:02] * Jakx quit (Ping timeout: 246 seconds)
801: [23:33:02] * Kingy[a] quit (Ping timeout: 246 seconds)
802: [23:33:04] <jules0x> (>ლ) versioning
803: [23:33:12] * Kingy^ has joined #silverstripe
804: [23:33:23] * Kolin quit (Ping timeout: 246 seconds)
805: [23:33:23] * Kapdap quit (Ping timeout: 246 seconds)
806: [23:33:30] * Kolin has joined #silverstripe
807: [23:33:31] * Kapdap has joined #silverstripe
808: [23:42:32] * ss-helper has joined #silverstripe

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