#silverstripe IRC Log

IRC log for 15 July 2013

All timestamps are in UTC.

1: [00:00:43] <Peavers> simon_w, you guys use isp monitors at your place of employment?
2: [00:00:52] <Peavers> ips montiors**
3: [00:01:32] <ss23> simon_w: Did you bring lunch today? :D
4: [00:01:38] <simon_w> Uh, I think I do (Apple cinema display) but the other two don't (cheap dell/samsung)
5: [00:01:57] <Peavers> yean cinema displays are.
6: [00:02:17] <Peavers> trying to convince my boss that these 17" TN panels just won't cut it
7: [00:02:29] <simon_w> If you don't mind not being able to use other screens, they're totally worth it
8: [00:02:31] <ss23> lol
9: [00:02:37] <ss23> I have a 21.5" ips at home
10: [00:02:39] <ss23> It's nice :D
11: [00:02:52] <Peavers> I've got two 30" IPS monitors at home ;)
12: [00:02:56] <spronk> what the fuck man
13: [00:02:58] <spronk> 17" TN panels!?
14: [00:03:09] <Peavers> spronk, govt.
15: [00:03:13] <spronk> sigh
16: [00:03:22] <ss23> Get a virus, Peavers
17: [00:03:26] <ss23> See if they destroy the screens too
18: [00:03:27] <ss23> :D
19: [00:03:40] <spronk> actual researched and documented productivity improvements from larger screens
20: [00:03:46] <Peavers> I know
21: [00:03:54] <Peavers> You just try and convince the tax payer of this
22: [00:04:00] <Peavers> when children are starving and uneducated
23: [00:04:07] <simon_w> This tax payer's convinced!
24: [00:04:16] <spronk> well... considering wholesale 17" and wholesale 20" ahve been more or less the same price for 5 years...
25: [00:04:43] <spronk> IPS isn't really a biggie
26: [00:05:07] <spronk> good TN panels aren't that bad for dev work these days
27: [00:05:28] <simon_w> Until you've got an IPS, then try changing back
28: [00:05:35] <Peavers> ^ this
29: [00:05:42] <Peavers> coming from home to work is murder
30: [00:05:45] <spronk> your macbook pro is TN, simon_w
31: [00:05:50] * spronk has had IPS for years
32: [00:05:57] <spronk> 2005FWP, 2007WFP, U2410
33: [00:06:04] <spronk> they're good, but they have downsides
34: [00:06:11] <Peavers> heh I had a U2410 back in the day
35: [00:06:17] <spronk> i actually find good TN panels are better for reading text front on
36: [00:06:23] <spronk> less sparkly
37: [00:06:32] <spronk> also, sharper
38: [00:07:12] <spronk> unless you get really new IPS with weak AG, but there are only a few models and they'
39: [00:07:15] <spronk> re quite expensive
40: [00:07:25] <spronk> for colour work there's no substitute, though
41: [00:08:21] <ss23> SSD's are good too
42: [00:08:25] <spronk> mm
43: [00:08:31] <spronk> but, not with the apostrophe.
44: [00:08:31] <ss23> Spending ~30 mins waiting a day == worth to get an SSD
45: [00:08:33] <Peavers> lol dreaming if I think I can get a SSD at work.
46: [00:08:39] <spronk> that's ridiculous
47: [00:08:56] <spronk> spend money paying a developer's salary, reduce productivity by not giving developer good tools?
48: [00:09:07] <spronk> this is why /me doesn't even consider govt jobs..
49: [00:09:17] <Peavers> I'm in a awkward postition as I'm the first and only web dev the moe has ever had
50: [00:09:23] <Peavers> so they don't really know how to treat me
51: [00:09:47] <Peavers> I'm just writing my list of demands now though
52: [00:09:50] <Peavers> so should change.
53: [00:09:53] <spronk> just tell them all the contractors they hire will be using this stuff.
54: [00:09:54] * Bollig|DesignCty has joined #silverstripe
55: [00:10:00] <spronk> and they pay them a lot more than they pay you :P
56: [00:10:28] <spronk> also, MoE has non-web devs and analysts...?
57: [00:10:53] <Peavers> we've got an entire .net shop internally
58: [00:11:16] <spronk> exactly
59: [00:11:23] <simon_w> spronk, not all their contractors :p
60: [00:11:24] <spronk> and they use crap equipment too?
61: [00:11:31] <Peavers> Na
62: [00:11:51] <Peavers> They have been around for years though, so its easy for them to get stuff. Trying to get nothing to flash is hard
63: [00:13:42] <ss23> hahah simon_w
64: [00:14:36] * spronk shrugs
65: [00:16:30] * DigNZ quit (Quit: DigNZ)
66: [00:29:40] * howardgrigg has joined #silverstripe
67: [00:29:44] <guzzlefry_dev> How can I test, in template, if a user has permission to view any page?
68: [00:29:51] <ss23> 'any page' == ??
69: [00:30:11] <ss23> Like, if out of the entire site, there's any pages they can view, even only one?
70: [00:30:18] <ss23> Cause that sounds slow
71: [00:30:18] <ss23> :O
72: [00:30:23] <guzzlefry_dev> err
73: [00:30:26] * howardgrigg quit (Read error: Connection reset by peer)
74: [00:30:31] * howardgr_ has joined #silverstripe
75: [00:32:55] <ss23> simon_w: Did you answer about lunch btw?
76: [00:33:04] <simon_w> You haven't asked
77: [00:33:14] <ss23> simon_w: Did you want lunch etc?
78: [00:33:17] <simon_w> You asked Peavers
79: [00:33:21] <ss23> 12:01:31 <+ss23> simon_w: Did you bring lunch today? :D
80: [00:33:31] <ss23> I asked!
81: [00:33:44] <simon_w> Oh, you got hidden by me actually talking to people :p
82: [00:34:12] <simon_w> Yeah, I want lunch :p
83: [00:34:12] <ss23> XD
84: [00:34:15] <ss23> Yay :D
85: [00:34:22] <ss23> Cool beans, just same drill as normal
86: [00:44:29] <simon_w> I should make you come down here, but there's nothing down here that I like that you can really eat inside at
87: [00:45:14] <ss23> hahaha
88: [00:45:15] <ss23> simon_w: I can if you prefer
89: [00:45:23] <ss23> Question: can you merge from a specific checkout of another branch?
90: [00:45:24] <Peavers> its just started raining too
91: [00:45:35] <ss23> So branch sucky has a commit 1412412124 in it, I want to merge that branch/commit into master
92: [00:45:39] <ss23> Instead of that branch/head
93: [00:46:43] <ss23> dw, cherry picked it
94: [00:47:32] * DigNZ has joined #silverstripe
95: [00:47:52] * supernovah has joined #silverstripe
96: [00:48:23] * ss23 yawns
97: [00:48:28] <ss23> I slept till 5pm on Sunday
98: [00:50:58] <simon_w> Slacker
99: [00:51:04] <ss23> :D
100: [00:51:06] <ss23> I <3 sleeping
101: [00:51:14] <ss23> Documents on this website
102: [00:51:14] <ss23> Information on Banana Passion Vine
103: [00:51:23] <ss23> My search for Banana was a success!
104: [00:51:52] <metanat> simon_w: Hey I'm wondering if you could help me. I'm using the HasOneRelationHandler. And when I save my dataobject the ID of the relation is set back to 0
105: [00:52:17] <simon_w> metanat, clicking save on the GridField first?
106: [00:52:40] <metanat> That does work, but then as soon as I click save again it clears it
107: [00:52:59] <simon_w> Got something else in your fields doing that?
108: [00:53:09] <metanat> The ID gets set when I use the grid field components "Save changes" but then it is cleared otherwise
109: [00:53:40] <metanat> I don't think so.
110: [00:53:46] <metanat> I will fish around though.
111: [00:58:14] <metanat> Doesn't look like it. I just removed what could possibly be doing it and it appears to still be functioning wrong
112: [00:59:50] <SphereSilverNL> simon_w: considering your latest tweet... It might be that Facebook is trying to make a man out of you? :P
113: [01:00:14] <simon_w> Beer doesn't get me laid :p
114: [01:00:31] <SphereSilverNL> Facebook does? :P
115: [01:02:09] <Peavers> beer doesnt get you laid? You're doing it wrong then son.
116: [01:02:33] <SphereSilverNL> I think that entirely depends on how/where/when you are drinking beer Peavers
117: [01:02:59] <SphereSilverNL> If I have a beer with some friends at my place. The desire to "get laid" is quite low. Below zero to be exact
118: [01:07:17] <ss23> SecMailLists @SecMailLists
119: [01:07:18] <ss23> WebAppSec: [CVE-2012-6458] Multiple Persistent XSS in silverstripe-ecommerce bit.ly/1bemSmo
120: [01:07:21] <ss23> ty for tweeting that
121: [01:08:36] <guzzlefry_dev> eep
122: [01:08:49] <ss23> Looks like a weird 2.4 ecom module though
123: [01:08:50] <ss23> *shrug*
124: [01:10:11] <SphereSilverNL> It's quite ok, but any xss-bug is baaaaaaad
125: [01:10:34] <ss23> I can think of a worser one
126: [01:10:35] <ss23> ;)
127: [01:10:45] <SphereSilverNL> SQL injection?
128: [01:10:55] <SphereSilverNL> in SS2.4?
129: [01:11:03] <SphereSilverNL> Giveme 5 minutes.
130: [01:11:14] <ss23> XD
131: [01:11:18] <SphereSilverNL> or.... ehm... I'm off to bed, when I'm back, give me 5 minutes
132: [01:11:24] <metanat> simon_w: On save Line 19 of GridFieldRelationHandler "if(!isset($state->RelationVal)) {" is true. Is it meant to be?
133: [01:11:34] <simon_w> Not in my 2.4 code!
134: [01:11:55] <simon_w> metanat, are you running the latest version?
135: [01:11:57] <ss23> simon_w: Is that a bet? I can think of at least 2.4 sqli in core.
136: [01:12:04] <metanat> I'll check..
137: [01:12:11] <SphereSilverNL> simon_w: often, with the SS2.4 code, any custom code, would inject "DataObject::get('Object', 'Where-statement');"
138: [01:12:13] * supernovah quit (Ping timeout: 245 seconds)
139: [01:12:23] <simon_w> SphereSilverNL, I'm well aware of that
140: [01:12:27] <simon_w> ss23, oh yeah?
141: [01:12:30] <Peavers> omg gitlab 6.0 is out
142: [01:12:35] <SphereSilverNL> the Where-statement, however, is often relied upon by the Action or ID param
143: [01:12:51] <ss23> simon_w: Yeah.
144: [01:12:53] <SphereSilverNL> thus, I guess, a lot of SS2.4 websites are very vulnerable ;)
145: [01:12:57] <metanat> I'm working from 1.0.2 simon_w
146: [01:13:01] <ss23> I can't find it anymore, but I know it is there somewhere!
147: [01:13:09] <ss23> I wrote it down somewhere, but I couldn't find it in my emails
148: [01:13:19] <Peavers> ss23, upgrade gitlab please. You said you had sudo access to servers? make it happen.
149: [01:13:20] <SphereSilverNL> simon_w: I'm not saying you did anything wrong, but the syntax is very easily abused
150: [01:13:41] <metanat> simon_w: And running 3.1.x-dev
151: [01:13:41] <ss23> Peavers: I feel like I would be murdered if I did that without asking
152: [01:13:51] <simon_w> metanat, if 3.1 broke it again, I'm not going to be happy
153: [01:14:01] <SphereSilverNL> It's broken
154: [01:14:08] <Peavers> just snapshot the server before hand, I'm sure nobody will mind.
155: [01:14:16] <Peavers> -u git -H git checkout 6-0-dev
156: [01:14:17] <Peavers> go on
157: [01:14:18] <Peavers> type it
158: [01:14:20] <Peavers> type it in
159: [01:14:22] <Peavers> do it
160: [01:14:30] <SphereSilverNL> no
161: [01:14:41] <ss23> lol Peavers
162: [01:14:44] <ss23> I'LL DIE
163: [01:14:53] <SphereSilverNL> knock-knock
164: [01:14:55] <Peavers> maybe they can hire someone proper to replace you then?
165: [01:15:05] <metanat> simon_w: I'll look into it further if you want. It has been like this for quite a while BTW. I just thought I must be using it wrong
166: [01:17:05] <simon_w> metanat, I fixed something like that back at the start of May
167: [01:17:25] <simon_w> So have a look, make a pull request :p
168: [01:18:21] <ss23> Peavers: :3
169: [01:18:35] <ss23> Peavers: But then I wouldn't be able to deny you support
170: [01:18:35] <ss23> :D
171: [01:19:36] <zippy__> brrr
172: [01:24:36] * abitran quit (Ping timeout: 260 seconds)
173: [01:32:00] <EasyCo> Anything inherently wrong with supplying a DropdownField that pulls it's options from a DB field to which is doesn't explicitly have a relationship defined? aka new DropdownField('Jesus', 'Jesus', SweetBabyJesusPage::get()->map())
174: [01:32:16] <EasyCo> Where SweetBabyJesusPage isn't a defined relationship?
175: [01:32:29] <EasyCo> I'm trying to think of reasons why not to do it before I do it :)
176: [01:32:30] <ss23> sounds fine to me, EasyCo
177: [01:33:33] <EasyCo> That's one vote, anybody else wanna sound in?
178: [01:37:31] <SphereSilverNL> EasyCo: don't worry
179: [01:37:49] <SphereSilverNL> I've had a"BabyObject" to "has_one" relationship with "ParentPage"
180: [01:38:02] <SphereSilverNL> and it would be a parent => child relation
181: [01:38:10] <SphereSilverNL> just because I could do it that way :P
182: [01:38:42] <SphereSilverNL> anyway, since 4AM is closing in on me
183: [01:38:57] <SphereSilverNL> I'm going to see if my bed is still in operation
184: [01:41:50] <EasyCo> I'm just not sure how to approach this situation: I've got SomethingPage which has a many_many relationship with Locations. So each SomethingPage has certain locations. So far so good. Now in the SomethingPage I also add a gridfield to manage some other data (on a per location bases). When you add to the grid field, I need a drop down that gets the locations defined in the SomethingPage.
185: [01:46:37] * SphereSilverNL quit (Remote host closed the connection)
186: [01:52:38] * DigNZ quit (Ping timeout: 245 seconds)
187: [01:55:16] * DigNZ has joined #silverstripe
188: [02:01:11] <simon_w> ss23, make a decision. What to lunch?
189: [02:01:16] <ss23> ;_;
190: [02:01:19] <ss23> You can't push this on me man!
191: [02:01:49] <Peavers> good luck going outside.
192: [02:01:52] <Peavers> you will die
193: [02:01:56] <ss23> I have a jacket
194: [02:02:03] <ss23> simon_w: Somewhere close and enclosed would be nice
195: [02:02:03] <Peavers> loljacket
196: [02:02:08] <ss23> simon_w: burgerfuel or mcdonalds/
197: [02:02:20] <Peavers> that rain is coming in sideways
198: [02:02:41] <ss23> lol
199: [02:02:48] <ss23> Peavers: Jackets cover my sides too!
200: [02:02:50] <simon_w> Peavers, some of us have non-shit jackets :p
201: [02:02:55] <ss23> ^^^
202: [02:03:07] <Peavers> I just went downstairs because you know, cafe in the same building etc etc
203: [02:03:13] <ss23> lucky!
204: [02:04:07] <ss23> simon_w: Wanna come down and you can pick burgerfuel or mcdonalds? :D
205: [02:04:20] <ss23> unless you wanna go to mcdonalds on that end? (There is one, right?)
206: [02:04:31] <simon_w> ss23, nearest maccas is Readings
207: [02:04:33] <ss23> simon_w: or the mall if you like
208: [02:04:35] <ss23> Yeah
209: [02:04:43] <ss23> Could get curry
210: [02:04:43] <ss23> :D
211: [02:05:02] <ss23> simon_w: I'm fine with any of those, are you?
212: [02:05:18] <simon_w> ss23, okay, meet you there
213: [02:05:21] <simon_w> Hurry up about it
214: [02:05:32] <metanat> simon_w: I think the issue might be due to the order in which getColumnContent vs augmentColumns is run
215: [02:05:34] <EasyCo> simon_w: When creating a new GridField is it possible to send a property through to the DataObject that makes up the grid field?
216: [02:05:39] <ss23> simon_w: WHAT? RIGHT NOW?!
217: [02:05:40] <ss23> simon_w: wait
218: [02:05:41] <ss23> wEHRE
219: [02:05:43] <ss23> WHERE WE MEET
220: [02:05:44] <ss23> AT THE CURRY
221: [02:05:47] <ss23> OR MCDONALDS
222: [02:05:50] <ss23> OR OUTSIDE
223: [02:05:52] <ss23> OH GOD HE LEFT
224: [02:05:53] <simon_w> They're the same place
225: [02:05:54] <ss23> ;_;
226: [02:05:55] <metanat> lol
227: [02:05:57] <ss23> Guys
228: [02:06:02] <ss23> simon_w: wait, you mean the entrance to readings?
229: [02:06:04] <ss23> simon_w: OR INSIDE?
230: [02:06:10] <simon_w> well, inside is nicer
231: [02:06:18] <ss23> kk
232: [02:06:22] <ss23> simon_w: see you in like 4 mins
233: [02:06:23] <ss23> :D
234: [02:06:36] <Peavers> geeze you two... could sort out a date with the receptionist easier than you guys can sort lunch
235: [02:06:47] <ss23> haha
236: [02:06:48] <EasyCo> haha
237: [02:06:56] <metanat> simon_w: maybe not..
238: [02:11:51] <Peavers> my biggiest issue today is what music to put on my phone...
239: [02:11:55] <Peavers> hard life.
240: [02:15:34] <metanat> Peavers: FWP
241: [02:15:47] <Peavers> fwp?
242: [02:15:58] <metanat> first world problems
243: [02:16:03] <Peavers> oh for sure
244: [02:16:33] <Peavers> Oddly enough, W8 decided that my phone might not be able to play .flac files and was I sure I wanted to copy them...
245: [02:25:34] <Peavers> Anyone used teamcity 8 yet?
246: [02:30:08] <metanat> Peavers: Is it for CI?
247: [02:30:15] <Peavers> yeah
248: [02:30:52] <metanat> Nope. Travis for open source, jenkins for closed
249: [02:31:11] <metanat> Is it good?
250: [02:31:16] <Peavers> its from Jetbrains
251: [02:31:18] * supernovah has joined #silverstripe
252: [02:31:25] <Peavers> so yeah ;)
253: [02:31:44] <Peavers> I prefer it over jenkins
254: [02:40:08] * supernovah quit (Ping timeout: 245 seconds)
255: [02:46:21] * terryapodaca has joined #silverstripe
256: [02:46:41] <terryapodaca> are there any good CSSers on here right now?
257: [02:47:34] <spronk> fuck yeah I love counter-strike source.
258: [02:47:43] <spronk> but seriously, ask
259: [02:48:45] <terryapodaca> you're too funny!
260: [02:48:53] <terryapodaca> http://ti.stricklandapps.com/?flush=1
261: [02:48:59] <terryapodaca> err...remove the flush
262: [02:49:24] <terryapodaca> the section at the top that holds the logo, should have a drop shadow, but the navigation is overlaying it
263: [02:49:53] <Peavers> z-index that bad boy.
264: [02:50:14] <terryapodaca> i've heard that using position:absolute would fix this, but it doesn't, and another css friend of mine said that z-index is frowned upon
265: [02:50:32] <terryapodaca> is adding the z-index the only way?
266: [02:51:56] <guzzlefry_dev> z-index is frowned upon? 0.o
267: [02:53:13] <ss23> z-index is fine
268: [02:53:17] <ss23> like
269: [02:53:22] <ss23> z-index is how you make certain sites
270: [02:59:38] <guzzlefry_dev> So, to cast a DateTime to SS_DateTime, you just pass it to the constructor right?
271: [03:01:27] <simon_w> Nope
272: [03:01:47] <simon_w> DBField::create_field('SS_Datetime', $datetime->Format('Y-m-d H:i:s'))
273: [03:04:28] <guzzlefry_dev> ah, thanks
274: [03:04:43] <guzzlefry_dev> going to be a long night :P
275: [03:08:52] <terryapodaca> http://ti.stricklandapps.com
276: [03:09:03] <terryapodaca> so yeah, z-index did the trick
277: [03:09:06] <terryapodaca> that look better?
278: [03:13:06] <guzzlefry_dev> drop shadow is hard to see, but that's because this monitor is horrible. :P
279: [03:13:10] * cloph_away quit (Ping timeout: 246 seconds)
280: [03:14:00] <terryapodaca> well, it'll all come together soon...there will be a rotating banner image...the nav is actually 85% background transparant
281: [03:14:40] <terryapodaca> so you'll see the 40px behind the nav...making the dropshadow stick out mroe
282: [03:14:42] <terryapodaca> more
283: [03:15:50] <guzzlefry_dev> yeah again, monitor sucks. For example, Gmail looks like one giant white background. :P
284: [03:16:04] <simon_w> That's because that's what it is :p
285: [03:16:31] <terryapodaca> lol
286: [03:17:26] <guzzlefry_dev> wow, I thought it was my monitor. >_>
287: [03:17:55] * cloph_away has joined #silverstripe
288: [03:18:18] <terryapodaca> aight, thanks for the help...gotta go have some fun now!
289: [03:18:23] <terryapodaca> later!
290: [03:18:33] <guzzlefry_dev> see ya
291: [03:18:36] <EasyCo> simon_w: Can you please point me in the right direction with Gridfield. When adding a row/item to gridfield I need the DataObject that represents the grid field to know what Page called it.
292: [03:19:06] <simon_w> EasyCo, you're passing in a HasManyList?
293: [03:20:51] <ss23> Anyone have ideas about how to debug a Silverstripe email having no content? Subject etc is sent, but body is empty
294: [03:21:35] <EasyCo> simon_w: manymanylist
295: [03:21:40] <ss23> As far as I can see, the template exists. Any way to coax more error messages out of SS?
296: [03:21:45] <Pyromanik> ss23: Debug::show($email->Debug());
297: [03:21:47] <simon_w> EasyCo, so what do you need the Page for?
298: [03:21:51] <ss23> ty Pyromanik :d
299: [03:21:53] <ss23> I did not know about this
300: [03:22:01] <ss23> I do it before ->send I take it?
301: [03:23:03] <ss23> You have failed the human test!
302: [03:23:03] <ss23> ;_;
303: [03:23:06] <ss23> I'm not a real boy.
304: [03:23:10] <guzzlefry_dev> :P
305: [03:23:33] <EasyCo> EasyCo: The page which has the gridfield also has a checkBoxSetField where you can toggle several locations. In the gridfield I want to get those toggled locations.
306: [03:23:39] <EasyCo> Haha, I mean simon_w
307: [03:23:41] <EasyCo> lol
308: [03:23:42] <ss23> looks fine, Pyromanik
309: [03:23:46] <ss23> Like, it has content here when I do this
310: [03:24:00] <EasyCo> Not everyday I write messages to myself
311: [03:24:24] <ss23> Pyromanik: This debug thing only shows plaintext, not HTML? Could be an issue there?
312: [03:24:30] <ss23> The real message is blank, no HTML or plaintext
313: [03:24:33] <ss23> But this debug call is fine...
314: [03:24:59] <simon_w> EasyCo, you're not going to be able to
315: [03:25:20] <EasyCo> My worst fears..
316: [03:25:22] <ss23> simon_w: You have any ideas? :<
317: [03:25:23] <guzzlefry_dev> I need something to hold a range of dates, each date has Event:string, Instructor:string, startTime:SS_DateTime, and endTime:SS_DateTime. In the template, I need to be able to loop through the dates, and in each date loop events, ordered by startTime. Any idea?
318: [03:25:41] <simon_w> ss23, your mail server hates you?
319: [03:25:50] <ss23> lol
320: [03:26:06] <ss23> simon_w: Possible, but this is two seperate mail servers both stripping it, and sending from my personal OSX box works fine
321: [03:27:01] <ss23> The fact it works on my personal OSX box, but doesn't work from the box I rsync'd to production with, nor the production box, makes me think... you know, it's like... SS related
322: [03:27:05] <ss23> idk how though
323: [03:27:27] <guzzlefry_dev> ss23: I have a fake email server that just dumps stuff to STDOUT for testing stuff like that.
324: [03:27:59] <ss23> I am still thinking it's not a mailserver issue, since it's happening on two sepearte servers
325: [03:28:17] <guzzlefry_dev> mail headers? Just a guess, I don't really know much about the protocol.
326: [03:28:29] <ss23> The headers and subeject are all set fine
327: [03:28:42] <ss23> The mail->debug() doesn't show headers (which of course it wouldn't) from Silverstripe
328: [03:28:45] <ss23> Hmm
329: [03:28:47] <ss23> Wait, I think I've had similiar to this before
330: [03:28:50] <ss23> Can't it like...
331: [03:29:02] <ss23> have a broken plaintext/html part, doesn't show that in ->Debug, and just sends it as blank/broken?
332: [03:29:27] <ss23> idk how to check individual parts
333: [03:29:27] <ss23> :<
334: [03:29:36] <EasyCo> simon_w: Which grid field component is in charge of creating that Add xxx button above gridfield?
335: [03:29:54] <simon_w> EasyCo, AddExistingAutoCompleter?
336: [03:30:31] <ss23> simon_w: ;_;
337: [03:30:33] <ss23> any more ideas? :<
338: [03:30:34] <EasyCo> simon_w: Nah that's the actual search/link field isn't it?
339: [03:30:47] <simon_w> AddButton?
340: [03:31:27] <EasyCo> Ahh, GridFieldAddNewButton?
341: [03:31:54] <simon_w> Perhaps
342: [03:32:05] <simon_w> ss23, you broke it!
343: [03:32:12] <ss23> :<
344: [03:32:13] <simon_w> var_dump()s in the Mailer?
345: [03:32:15] <ss23> I KNOW
346: [03:32:19] <ss23> In the mailer?
347: [03:32:23] <ss23> Mailer.php var_dump, you mean?
348: [03:32:34] <guzzlefry_dev> okay...Say I have an Arraylist inside an ArrayList, inner one has the event data along with SS_DateTime to represent the start time. Will ArrayList::sort('StartTime' sort the events like I'm hoping?
349: [03:32:46] <simon_w> ss23, yes
350: [03:32:54] <guzzlefry_dev> Assuming I get the syntax correct. :P
351: [03:33:06] <EasyCo> I'm thinking I could just add the gridfield id to the Add button Url and catch it there
352: [03:33:20] <simon_w> guzzlefry_dev, ->sort() isn't recursive
353: [03:34:09] <metanat> simon_w: I think that GridState_Component::getHTMLFragments gets called before GridFieldHasOneRelationHandler::getColumnContent
354: [03:34:19] <metanat> simon_w: I think that might be the problem
355: [03:34:29] <guzzlefry_dev> simon_w: Any idea how I could go about solving this?
356: [03:34:43] <simon_w> guzzlefry_dev, sort when you get them
357: [03:35:09] <metanat> simon_w: Meaning that $state->RelationVal isn't set until after the json is added to the hidden field
358: [03:37:28] <ss23> "Hi could I have documentation for this?" "Hi Stephen, yes the query thinks special characters are part of the syntax. The syntax is based of Microsoft queries. Hopefully this answers your questions"
359: [03:37:32] <ss23> REALLY
360: [03:38:06] <metanat> simon_w: Shifting the setting of ->RelationVal into augmentColumns works
361: [03:38:32] <simon_w> I'm going to have to fix this properly, aren't I?
362: [03:38:42] <metanat> hehe
363: [03:39:11] <metanat> I can send a pull request with something that works if you want, but I don't have a look of time to consider the correct architecture to use.
364: [03:39:42] <simon_w> Does it work in 3.0 too? :p
365: [03:39:44] <metanat> Also I wonder if grid field needs a few additions. Modifying state in the areas we are isn't exactly nice
366: [03:40:20] <ss23> simon_w: The email->send calls Mailer::sendHTML which has $plainContent = null, $htmlcontent = as I expect
367: [03:40:23] <ss23> Is this good?
368: [03:40:33] <metanat> We are setting and modifying state in methods that are used for rendering content etc. Doesn't seem like the right place to mme
369: [03:41:20] <Pyromanik> ss23: var_dump($email->Body())
370: [03:41:21] <Pyromanik> ?
371: [03:41:23] <Peavers> Failed opening required 'testDataFileIterator.php' (include_path='.:/usr/share/php:/usr/share/pear')
372: [03:41:25] <Peavers> fuck you pear.
373: [03:41:27] <ss23> Pyromanik: That's all fine
374: [03:41:34] <ss23> "fine"
375: [03:41:36] <ss23> It seems fine enough
376: [03:41:51] <ss23> Like, the body stuff is populated
377: [03:42:02] <ss23> yet...
378: [03:42:04] <Pyromanik> but die($email->Debug()); isn't?
379: [03:42:05] <ss23> the mail() call
380: [03:42:09] <ss23> Pyromanik: No, that's fine too
381: [03:42:11] <ss23> but the mail() call is
382: [03:42:18] <ss23> This is a multi-part message in MIME format. ------=_NextPart_136876707519 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ------=_NextPart_136876707519 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable ------=_NextPart_136876707519--
383: [03:42:23] <ss23> that's all it is, it has no content
384: [03:42:29] <ss23> Something inside the mailer.php it's unsetting all the content, I guess
385: [03:42:41] <Pyromanik> strip tags?
386: [03:42:59] <ss23> Uh, doubtful that would be in the mailer
387: [03:43:03] <ss23> But I'll look more closely now
388: [03:43:41] <Pyromanik> well there's f-all in Email.php iirc
389: [03:44:19] <Pyromanik> there is that one error where it doesn't like "Name <address>"
390: [03:44:34] <Pyromanik> ask irogue about that one
391: [03:44:39] <guzzlefry_dev> Is ArrayList even the right thing to use for a range of dates? >_>
392: [03:45:56] <ss23> lol
393: [03:46:00] <simon_w> metanat, I'm having problems replicating your problem. What exactly are you doing?
394: [03:47:14] <metanat> simon_w: Click "Save changes", then fully reload the page, then click "Save Changes" again. It will reset the relation to 0
395: [03:47:24] <metanat> At least in dev-3.1
396: [03:47:53] <simon_w> Aha
397: [03:47:55] <metanat> The State comes down as RelationVal = 0.
398: [03:48:24] <metanat> simon_w: https://github.com/camspiers/silverstripe-GridFieldRelationHandler/commits/has-one-fix
399: [03:48:29] <metanat> This is what I did
400: [03:48:39] <Pyromanik> halp, I have 502 on cms load
401: [03:48:41] <Pyromanik> what do?
402: [03:48:55] <metanat> simon_w: Not saying it is right, but it does fix it.
403: [03:49:24] <guzzlefry_dev> Pyromanik: What did you change?
404: [03:49:35] <Pyromanik> guzzlefry_dev: hmm?
405: [03:49:41] <Pyromanik> oh, nothing.
406: [03:49:45] <Pyromanik> fresh install
407: [03:50:03] <guzzlefry_dev> PHP working?
408: [03:50:12] <Pyromanik> yep
409: [03:50:21] <Pyromanik> oh, it's that goddamn nginx error again
410: [03:50:22] <ss23> Oh yeah, work it, PHP!
411: [03:50:26] <ss23> Lose those pounds!
412: [03:50:28] * guzzlefry_dev waits for someone more knoweledgable to help. :P
413: [03:50:52] <Pyromanik> guzzlefry_dev: it's caused by nginx's inability to handle headers taht exceed a certain number of bytes.
414: [03:51:01] <Pyromanik> it just collapses instead of passing through
415: [03:51:15] <Pyromanik> have to increase buffer size, but I forgot how now.
416: [03:51:35] <Pyromanik> I think last time I ended up just turning nginx off.
417: [03:52:39] <ss23> This mailer class is a goddam mess.
418: [03:52:39] <guzzlefry_dev> hm, can ArrayList have non-numeric indexes?
419: [03:53:16] <Pyromanik> ss23: I know. I wanted to fix it but simon_w told me I had to write tests. So I didn't.
420: [03:53:41] <Pyromanik> guzzlefry_dev: no.
421: [03:53:45] <Pyromanik> it's not the same as array()
422: [03:54:27] <simon_w> Hmm, GridState_Component's supposed to be added last
423: [03:54:37] <ss23> haha
424: [03:55:03] <metanat> simon_w: I think it still is, at least, once you pass the config into the constructor it is added
425: [03:55:28] <metanat> But I tried that, Making sure that The relation handler was before the gridstate and it still had the same bug
426: [03:55:32] <guzzlefry_dev> gah, so how would I represent a range of dates, where each date has multiple events, each event having a few pieces of data in it? And be able to dump this to a template?
427: [03:56:11] <Pyromanik> fuck'n spammers crash'n me server again
428: [03:58:44] <ss23> guzzlefry_dev: that doesn't sound like a well thought out relationship
429: [03:58:53] <ss23> guzzlefry_dev: Give context for why that kind of thing exists
430: [03:59:01] <ss23> Like, what do you want to represent in real world terms?
431: [03:59:15] <Pyromanik> ok, so I thought the internet died
432: [03:59:22] <Pyromanik> turns out it's just the entirety of WebDrive.
433: [03:59:31] <ss23> lol
434: [03:59:38] <ss23> Doesn't CWP use webdrive?
435: [03:59:40] <Pyromanik> all our servers, all their servers, and their phone line is permenantly engaged.
436: [03:59:57] <Pyromanik> unless...
437: [04:00:05] <Pyromanik> ss23: can you load webdrive.co.nz
438: [04:00:15] <ss23> Looks like nope!
439: [04:00:27] <ss23> I heard the CWP people say something about issues
440: [04:00:28] <ss23> :O
441: [04:00:38] <Pyromanik> yeah, pretty f'n big issues!
442: [04:00:42] <guzzlefry_dev> ss23: If I wasn't pulling from an external API this would make much more sense. :P The API gives me a list of schedules (i.e. This schedules occurs between these dates, during these times of day, on Monday, Tuesday, and Friday.).
443: [04:00:44] <ss23> yep
444: [04:00:46] <ss23> lol
445: [04:00:46] <Pyromanik> gonna check twitters
446: [04:00:47] <guzzlefry_dev> Trying to turn that into a calendar.
447: [04:00:50] <ss23> everyone in the office
448: [04:00:52] <ss23> "OMG ALL THE WEBDRIVE"
449: [04:01:35] <ss23> Psh, my twitter has no webdrive tweets
450: [04:01:36] <ss23> :D
451: [04:01:43] <Pyromanik> yeh
452: [04:01:45] <Pyromanik> me neither
453: [04:01:49] <ss23> lol
454: [04:01:51] <Pyromanik> (well, I don't have twitter)
455: [04:02:01] <Pyromanik> but their feeds are empty
456: [04:02:09] <Pyromanik> :O just got a response from their site.
457: [04:02:25] <ss23> :O
458: [04:02:28] <Pyromanik> well
459: [04:02:32] <Pyromanik> their site is down.
460: [04:02:39] <Pyromanik> but support.webhost.co.nz seems to be back up
461: [04:02:52] <spronk> OOPS WEBDRIVE
462: [04:03:02] <irogue> [15:59] <+ss23> Doesn't CWP use webdrive?
463: [04:03:03] <spronk> guess i'm not going to use their new cloud tech after all
464: [04:03:12] <irogue> afaik cwp was meant to use dedicated servers at revera
465: [04:03:14] <Pyromanik> spronk: sif.
466: [04:03:18] * Peavers quit ()
467: [04:03:18] <simon_w> Well, I know why it only happens with the HasOneHandler
468: [04:03:20] <ss23> irogue: Nope, webdrive
469: [04:03:21] <ss23> o/
470: [04:03:22] <Pyromanik> 1 issue in all the years
471: [04:03:22] <irogue> but i know SS host a bunch of things at webdrive
472: [04:03:28] <spronk> o_O
473: [04:03:33] <metanat> simon_w: Oh yeah?
474: [04:03:34] <spronk> are you sure, ss23?
475: [04:03:39] <ss23> no, I'm not sure
476: [04:03:43] <ss23> :D
477: [04:03:50] <spronk> revera was govt appointed..
478: [04:03:59] <metanat> simon_w: I haven't tried the others
479: [04:04:05] <simon_w> metanat, ManyManyHandler sets it up in getManipulatedList()
480: [04:04:11] <irogue> http://www.revera.co.nz/News/Revera-IaaS-to-power-up-CWP.aspx
481: [04:04:28] <irogue> but yeah, the non-CWP SS stuff is at webdrive afaik
482: [04:04:31] <metanat> simon_w: getManipulatedData?
483: [04:04:45] <simon_w> Yeah, that's what gets called on the component
484: [04:04:52] <ss23> LETS FIND OUT
485: [04:04:56] <ss23> hmm
486: [04:04:59] <irogue> i remember hamish talking about how they cbf managing their own servers so used webdrive
487: [04:05:02] <spronk> ah, webdrive..
488: [04:05:03] <ss23> Well, no CWP sites launghed yet
489: [04:05:05] <metanat> So is that a more sensible place to do it?
490: [04:05:07] <Pyromanik> I as a service?
491: [04:05:07] <ss23> launched*
492: [04:05:08] <ss23> so idk
493: [04:05:09] <Pyromanik> what is I?
494: [04:05:15] <simon_w> infrastructure
495: [04:05:16] <irogue> infrastructure
496: [04:05:17] <spronk> infrastr
497: [04:05:20] <ss23> infrastructure
498: [04:05:22] * simon_w wins!
499: [04:05:23] <Pyromanik> oic
500: [04:05:26] <irogue> damn you simon_w
501: [04:05:29] <spronk> officially a massive cockup at webdrive, i guess
502: [04:05:35] <Pyromanik> always the irc ninja simon_w
503: [04:05:36] <spronk> thats > 5min
504: [04:05:42] <Pyromanik> spronk: yeh, I gues.
505: [04:05:50] <irogue> i should drive down the road and tell them to get their shit sorted
506: [04:05:57] <ss23> YES!
507: [04:06:29] <Pyromanik> irogue: haha, please do.
508: [04:06:32] <Pyromanik> just go ask what's the haps?
509: [04:06:42] <Pyromanik> since they're not updating their twitters
510: [04:06:45] <metanat> So should has one implement GridField_DataManipulator ?
511: [04:06:54] <simon_w> Nope
512: [04:07:04] <simon_w> That's more of a hack than your change :p
513: [04:07:13] <metanat> Right, yeah that doesn't really make sense
514: [04:07:17] <metanat> Yep
515: [04:09:11] <metanat> simon_w: As I was saying, I wonder if there should be another interface to implement
516: [04:09:31] <ss23> Webdrive fixed yet?!
517: [04:09:34] <spronk> 10 minutes..
518: [04:09:39] <spronk> still dead
519: [04:09:40] <simon_w> Probably should be, but means dropping 3.0 support :p
520: [04:09:45] <ss23> lol tweet, spronk XD
521: [04:09:52] <metanat> Yep, not good at all
522: [04:10:13] <spronk> fuckup like this to me indicates routing error
523: [04:10:19] <spronk> someone fucked up their bgpz
524: [04:10:20] <metanat> simon_w: I think augmentColumns might have to do. Thoughts?
525: [04:11:19] <ss23> simon_w: So I'm like 58% sure this Mailer.php is completely broken
526: [04:11:24] <irogue> http://goo.gl/maps/0id4K
527: [04:11:38] <ss23> simon_w: I've tried tracing the code through, and like... the $htmlContent and $plainContent never get *used*
528: [04:11:48] <irogue> too far away, cbf :P
529: [04:11:51] <irogue> if it was HD i would
530: [04:11:54] <irogue> they're walking distance
531: [04:13:14] <simon_w> metanat, hang on
532: [04:13:51] <metanat> :)
533: [04:15:10] <spronk> they're alive!
534: [04:15:13] <ss23> https://github.com/silverstripe/silverstripe-framework/blob/3.0/email/Mailer.php Can someone give me a sanity check?
535: [04:15:18] <ss23> How does it fill in the content...
536: [04:15:27] <ss23> in htmlEmail
537: [04:15:41] <spronk> err
538: [04:15:42] <spronk> what/?
539: [04:16:00] <ss23> My problem is that htmlEmail is called with $htmlcontent full of real content
540: [04:16:03] <ss23> but the mail() has no content
541: [04:16:20] <ss23> mail is sent via fullbody, which is set via $fullBody = $messageBody;
542: [04:16:21] * zippy__ quit (Ping timeout: 256 seconds)
543: [04:16:28] <ss23> list($messageBody, $messageHeaders) = encodeMultipart(array($plainPart,$htmlPart), "multipart/alternative");
544: [04:16:34] <ss23> $messageBody.... like...
545: [04:16:35] <Pyromanik> forl
546: [04:16:37] <Pyromanik> rofl*
547: [04:16:40] <ss23> neither $plainPart or $htmlPart have content, right?
548: [04:16:52] <ss23> How is messageBody meant to get the content if it never gets set to it?
549: [04:16:53] <Pyromanik> "Check RSS Feed for updates" - RSS feed empty of any new data.
550: [04:16:58] <ss23> So I assume I'm just tired and not thinking right
551: [04:17:05] <spronk> ss23: o_O
552: [04:17:07] <ss23> (remember plainPart htmlPart != htmlContent / plainContent)
553: [04:17:22] <Pyromanik> Web Drive ‏@webdrivenz 7m
554: [04:17:23] <Pyromanik> Experiencing issues at the moment, Our engineers are on it. Check our RSS for updates http://goo.gl/k9lX2
555: [04:17:49] <ss23> spronk: I realise I'm brainderping
556: [04:17:53] <ss23> But I can't figure out why this is happening
557: [04:18:11] <guzzlefry_dev> ss23: more importantly, why is it echo-ing out errors? :P
558: [04:18:15] <Pyromanik> 16:10 < spronk> fuckup like this to me indicates routing error
559: [04:18:20] <ss23> If there's meant to be an error, yeah
560: [04:18:26] <Pyromanik> about the only thing it could be to take out EVERYTHING
561: [04:18:45] <Pyromanik> unless someone asploded the generators then severed the power cable to the data centre
562: [04:18:56] <Pyromanik> what do they call that? Espionage.
563: [04:19:02] <Pyromanik> that'd be exciting.
564: [04:19:13] <ss23> Like, at those lines -> list($messageBody, $messageHeaders) = encodeMultipart(array($plainPart,$htmlPart), "multipart/alternative");
565: [04:19:20] <spronk> .....?
566: [04:19:20] <Pyromanik> something like "Americans mad at losing Mega fiasco. Bomb NZ data centre"
567: [04:19:22] <ss23> messageBody doesn't have content, netiher does plainPart, neither does htmlPart
568: [04:19:29] <spronk> well
569: [04:19:32] <spronk> you have a problem, then
570: [04:19:34] <ss23> IT's all blank (apart from you know, Content-Type: text/plain;....)
571: [04:19:35] <ss23> spronk: Yes
572: [04:19:38] <ss23> I figured *that* much
573: [04:19:38] <ss23> :P
574: [04:20:04] * abitran has joined #silverstripe
575: [04:20:08] <ss23> I did relalise this is using 3.0 master
576: [04:20:09] <spronk> are you actually passing anything in $htmlContent?
577: [04:20:11] <spronk> or is it blank?
578: [04:20:12] <ss23> Which I'm not sure how many people use
579: [04:20:19] <ss23> spronk: It's full of content at the start of the function
580: [04:20:43] * funkygibbon quit (Quit: Leaving)
581: [04:21:02] <Pyromanik> ss23: what happens when you tell Mailer::sendHTML to die(var_dump($htmlContent)); ?
582: [04:21:24] <ss23> I've been doing that, just checking agin
583: [04:21:26] <Pyromanik> urgh too slow
584: [04:21:45] <ss23> yeah, as I expect, it's fine
585: [04:21:52] <ss23> $htmlContent == works as expected, full of cpntent, perfect
586: [04:22:02] <spronk> o_O
587: [04:22:02] <ss23> so is $plainContent
588: [04:22:04] <ss23> well
589: [04:22:05] <spronk> then it should be sorting itself out
590: [04:22:07] <ss23> plainContent starts empty
591: [04:22:16] <ss23> But it populates from the html content, as per expected
592: [04:22:19] <ss23> spronk: Yes, but it's not
593: [04:22:37] <ss23> $htmlPart = processHeaders($headers, wordwrap(QuotedPrintable_encode($htmlContent),75));
594: [04:22:38] <spronk> are you sure the html isa ctually empty?
595: [04:22:41] <ss23> that should have content set there I gues?
596: [04:22:52] <Pyromanik> ss23: what is $htmlContent here? http://api.silverstripe.org/3.0/source-class-Mailer.html#85
597: [04:23:27] <ss23> spronk: I'll double check with a proper network/content capture, sincE I know Chrome sometimes fucks up HTML to "help"
598: [04:23:47] <spronk> where are you seeing it as empty?
599: [04:23:50] <spronk> in chrome?
600: [04:23:54] <spronk> or in a mail client?
601: [04:23:59] <ss23> Chrome closed the fucking tab, grrr
602: [04:24:04] <ss23> blurgh
603: [04:24:04] <ss23> um
604: [04:24:10] <ss23> spronk: when I var_dump, it's 'empty'
605: [04:24:11] <ss23> as in
606: [04:24:13] <spronk> hm
607: [04:24:15] <ss23> $htmlPart = processHeaders($headers, wordwrap(QuotedPrintable_encode($htmlContent),75));
608: [04:24:15] <Pyromanik> oh god, list
609: [04:24:16] <spronk> view source
610: [04:24:17] <Pyromanik> http://api.silverstripe.org/3.0/source-class-Mailer.html#107
611: [04:24:18] <ss23> um
612: [04:24:20] <Pyromanik> probably this line
613: [04:24:21] <ss23> spronk: Can't do that on a form
614: [04:24:25] <Pyromanik> list($messageBody, $messageHeaders) = encodeMultipart(array($plainPart,$htmlPart), "multipart/alternative");
615: [04:24:35] <ss23> I can't rightclick either
616: [04:24:40] <ss23> Pyromanik: That's the place I'm vardumping atm
617: [04:24:47] <ss23> fuck I hate Chrome sometimes
618: [04:24:48] <Pyromanik> vardump after
619: [04:24:50] <ss23> Pyromanik: Yes
620: [04:24:51] <Pyromanik> vardump before
621: [04:24:54] <Pyromanik> vardump all the things
622: [04:24:54] <ss23> Why before?
623: [04:24:57] <ss23> Those variables aren't set before
624: [04:25:00] <Pyromanik> is broken when? before/after?
625: [04:25:05] <ss23> Neither?
626: [04:25:09] <ss23> It's not as expected after
627: [04:25:12] <ss23> It's as expected before
628: [04:25:17] <ss23> It's not "broken" anywhere really
629: [04:25:19] <ss23> like
630: [04:25:20] <ss23> idk
631: [04:25:21] <Pyromanik> yeah, because list is shit.
632: [04:25:21] <ss23> no errors
633: [04:25:23] * chrisrio has joined #silverstripe
634: [04:25:27] <ss23> Pyromanik: Doubtful it's cause of list
635: [04:25:29] <Pyromanik> list is crap, it's gobble
636: [04:25:29] <ss23> I think it's before that
637: [04:25:36] <ss23> anyway, let me try figure out how to get Chroem to not be a cuntbag
638: [04:25:41] <ss23> so mad.
639: [04:25:41] <Pyromanik> so vardump($plainPart, $htmlPart)
640: [04:25:43] <Pyromanik> before
641: [04:25:43] <spronk> dude
642: [04:25:45] <spronk> get a debugger.
643: [04:26:00] <Pyromanik> then var_dump($messageBody) after
644: [04:26:05] <ss23> Pyromanik: Those are both empty before
645: [04:26:11] <ss23> "empty"
646: [04:26:12] <ss23> They're
647: [04:26:16] <ss23> string(84) "Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "
648: [04:26:19] <ss23> etc
649: [04:26:24] <ss23> no "real" content
650: [04:26:29] <Pyromanik> then it's processHeaders
651: [04:26:37] <spronk> mm
652: [04:26:44] <Pyromanik> processHeaders()
653: [04:26:45] <ss23> where dat?
654: [04:27:19] <Pyromanik> http://api.silverstripe.org/3.0/source-class-Mailer.html#329
655: [04:27:21] <Pyromanik> vardumps
656: [04:27:28] <ss23> kk vardumping now!
657: [04:27:38] <Pyromanik> $body = false
658: [04:27:40] <Pyromanik> lol
659: [04:27:46] <Pyromanik> bet it's not got a $body
660: [04:28:21] <Pyromanik> which would mean that it's: QuotedPrintable_encode()
661: [04:28:38] <ss23> well yeah, $plainContent is blank
662: [04:28:44] <Pyromanik> http://api.silverstripe.org/3.0/source-class-Mailer.html#424
663: [04:28:56] <ss23> hmm, actually
664: [04:28:59] <ss23> it should be populated before that
665: [04:29:03] <Pyromanik> regex, how fun!
666: [04:29:24] <Pyromanik> oh
667: [04:29:42] <Pyromanik> that's the one I tried to fix before, but simon_w said I had to write tests, and I was like THIS IS PROCEEDURAL CODE
668: [04:29:48] <ss23> lol
669: [04:29:55] <Pyromanik> so nothing happened
670: [04:30:09] <Pyromanik> there was an error, but I forgot what it was now.
671: [04:30:11] <Pyromanik> it was on Trac
672: [04:30:25] <ss23> I do need a debugger
673: [04:30:25] <ss23> :<
674: [04:30:40] <Pyromanik> so anyway, I reckon your error is in there
675: [04:30:46] <Pyromanik> that or you've been lying to me.
676: [04:30:48] <ss23> Whats the backtrace function for Silverstripe?
677: [04:30:56] <Pyromanik> user_error() ?
678: [04:30:58] <Pyromanik> :P
679: [04:30:59] <ss23> Pyromanik: I have tried to to lie, but I'm tiredish, so it's possible I've just gone full retard
680: [04:31:06] <ss23> hmm
681: [04:31:08] <ss23> thoguht there was another one
682: [04:31:09] <Pyromanik> sounds like it
683: [04:32:32] <Pyromanik> ss23: vardump $quotprint here http://api.silverstripe.org/3.0/source-class-Mailer.html#425
684: [04:32:47] <Pyromanik> if proper content is returned, then your error is in that regex.
685: [04:33:09] <ss23> DEBUG: AYAH\AYAH::__construct: Publisher key:
686: [04:33:11] <ss23> wtf is *this*
687: [04:33:19] <ss23> This debug_backtrace is totally not right.
688: [04:33:22] <Pyromanik> lolwut
689: [04:33:25] <spronk> o_O
690: [04:33:29] <spronk> GET XDEBUG
691: [04:33:41] <Pyromanik> or just paste in a user_error
692: [04:34:02] <spronk> also, is your html contents totally fucked, perchance?
693: [04:34:22] <Pyromanik> lol yeah, is strip tags stripping everything because the html doesn't parse properly?
694: [04:34:31] <Pyromanik> wait
695: [04:34:32] <spronk> mm
696: [04:34:34] <Pyromanik> that makes no sense
697: [04:34:43] <Pyromanik> it's an html email :<
698: [04:34:46] <spronk> well
699: [04:35:02] <ss23> spronk: Define "totally fucked"
700: [04:35:06] <ss23> I haven't paid close attention to it
701: [04:35:27] <ss23> woah
702: [04:35:29] <ss23> Pyromanik: 999x points
703: [04:35:31] <Pyromanik> ss23: not parseable or something causing an error elsewhere
704: [04:35:37] <ss23> we started with: real code is here and it's totez good
705: [04:35:45] <ss23> we ended with: go fuck yourself, no content here bitches
706: [04:35:47] <ss23> :D
707: [04:36:00] <Pyromanik> ss23: so like I said, regex. GL with that
708: [04:36:05] <Pyromanik> I remember fixing a bug there once before
709: [04:36:09] <ss23> lol
710: [04:36:10] <ss23> fuck
711: [04:36:11] <Pyromanik> well, actually simon_w fixed it while I typed.
712: [04:36:18] <Pyromanik> but he was looking at my screen.
713: [04:36:27] <Pyromanik> so it's legit. I did it.
714: [04:36:30] <ss23> I don't even understand why/what is the bug here...
715: [04:36:31] <spronk> just out of interest
716: [04:36:35] <spronk> this isn't an encoding bug
717: [04:36:36] <spronk> like
718: [04:36:39] <spronk> utf-8 vs some dodgy charset?
719: [04:36:48] <Pyromanik> hmm, lol, could be
720: [04:36:54] <ss23> How am I meant to know?
721: [04:36:58] <ss23> The template isn't utf8 or anything
722: [04:37:00] <spronk> which line fucks it up?
723: [04:37:06] <Pyromanik> if regex is utf8 and dodgy charset is $quotstring
724: [04:37:16] <spronk> also, what charset is the template?
725: [04:37:18] <ss23> It is &quotstring
726: [04:37:19] <ss23> $
727: [04:37:22] <ss23> idk what line of this function
728: [04:37:34] <ss23> But it starts with $quotprint = real content, and I var_dump just before it returns, and it's blank.
729: [04:37:45] <Pyromanik> ss23: var_dump each line one at a time, $quotprint
730: [04:37:50] <ss23> yeah, will do
731: [04:38:00] <Pyromanik> the one where it goes (""), the line above isyour error
732: [04:38:28] <ss23> lol
733: [04:38:32] <ss23> I CAN DEBUG OKAY
734: [04:38:34] <ss23> I just..
735: [04:38:35] <ss23> :<
736: [04:38:36] <ss23> You know
737: [04:38:40] <ss23> sometimes you need a helping hand
738: [04:38:44] <ss23> your intuition was good, Pyromanik
739: [04:38:44] <ss23> ty
740: [04:38:55] <ss23> intuition / you knew regex was there and fuck regex
741: [04:38:55] <ss23> :D
742: [04:39:16] <Pyromanik> sif, I read the execution of the code.
743: [04:39:19] <ss23> $quotprint = (string)preg_replace_callback("~([\x01-\x1F\x3D\x7F-\xFF])~e", function($matches) {
744: [04:39:22] <ss23> that line
745: [04:39:24] <ss23> it just makes the entire thing blank
746: [04:39:36] <spronk> yeah..
747: [04:39:44] <Pyromanik> though I had an inkling that it was either that list because the array passed to it was empty or something, or was gonna be some parsey shit, which means regex.
748: [04:39:59] <Pyromanik> ss23: haha, that's the line I fixed
749: [04:40:03] <Pyromanik> look on trac if it's still around
750: [04:40:24] <ss23> Pyromanik: Got a ticket number?
751: [04:40:48] <Pyromanik> http://open.silverstripe.org/ticket/2715
752: [04:41:17] <ss23> Is that the same issue?
753: [04:41:28] <Pyromanik> probably not, but do it anyway if it's not done.
754: [04:41:28] <spronk> ~([\x01-\x1F\x3D\x7F-\xFF])~e
755: [04:41:32] <Pyromanik> just... sneak it through
756: [04:41:34] <spronk> thats dodgy as fuck
757: [04:41:36] <ss23> lol
758: [04:41:40] <Pyromanik> spronk: hahaha, yes.
759: [04:41:49] <ss23> It uses preg_replace_callback now anyway
760: [04:41:55] <Pyromanik> hence "class Email creates plaintext from the HTML passed into it. When it does this it does not encode equal signs properly, leaving them as '=' when they need to be placed in the plaintext body as '=3D'. "
761: [04:42:58] <Pyromanik> wait, I can't see my fix ;_;
762: [04:43:09] <Pyromanik> I probably fucked up and pasted the same line twice
763: [04:43:10] <spronk> also, ord(1), wtf
764: [04:43:22] <Pyromanik> spronk: yeah, mailer is like since SS 0.1
765: [04:43:32] <Pyromanik> see all the proceedural code?
766: [04:44:08] <simon_w> metanat, https://github.com/simonwelsh/silverstripe-GridFieldRelationHandler/commit/561e035
767: [04:44:11] <Pyromanik> oh, I put an equals on the end.
768: [04:44:13] <Pyromanik> man that's obscure.
769: [04:44:14] <ss23> wtf
770: [04:44:16] <ss23> It's never called...
771: [04:44:19] <ss23> like
772: [04:44:24] <ss23> that preg_replace_callback
773: [04:44:27] <ss23> simon_w: DID YOU TEST
774: [04:44:32] <simon_w> Yes
775: [04:44:34] <Pyromanik> ss23: the callback isn't called?
776: [04:44:34] <ss23> The only relevant change I see is one YOU did
777: [04:44:36] * ss23 rawrs
778: [04:44:37] <ss23> well
779: [04:44:44] <Pyromanik> ss23: lol
780: [04:44:45] <ss23> $quotprint = (string)preg_replace_callback("~([\x01-\x1F\x3D\x7F-\xFF])~e", function($matches) {
781: [04:44:48] <ss23> var_dump("replacing: "); var_dump($matches);
782: [04:44:50] <ss23> return sprintf('=%02X', ord($matches[1]));
783: [04:44:52] <ss23> I never ever see a "replacing: "
784: [04:44:55] <ss23> }, $quotprint);
785: [04:44:57] <Pyromanik> STILL NO EQUALS
786: [04:45:06] <ss23> I JUST WANT THIS TO WORK!
787: [04:45:13] <spronk> that's because it never finds a control character followed by an = followed by another thing
788: [04:45:13] <metanat> simon_w: Nice. I like it. Makes more sense. Is more organised. Thanks heaps
789: [04:45:23] <ss23> spronk: Then why does it replace it with 0
790: [04:45:24] <ss23> like
791: [04:45:24] <ss23> ""
792: [04:45:26] <ss23> not 0
793: [04:45:46] <ss23> $quotprint is set to "" from that
794: [04:45:49] <Pyromanik> ss23: put a = in your body
795: [04:45:50] <simon_w> metanat, and should still work if the order gets flipped, or some other horrible-ness
796: [04:45:57] <Pyromanik> and put = after \xFF
797: [04:46:04] <Pyromanik> and see if it calls.
798: [04:46:36] <ss23> http://codepad.viper-7.com/4OxZP8
799: [04:46:39] <ss23> OH LOOK
800: [04:46:40] * ss23 humps
801: [04:46:43] <ss23> Did you *really* test, simon_w?
802: [04:46:46] <ss23> Did you? DID YOU?!
803: [04:46:48] * ss23 shakes his fists
804: [04:46:53] <ss23> uh
805: [04:46:54] <ss23> not humps
806: [04:46:58] <ss23> Not sure what I was going for there.
807: [04:46:59] <ss23> :/
808: [04:47:10] <Pyromanik> \x3D
809: [04:47:11] <metanat> simon_w: L25? Is it worth going $state->RelationVal = $this->onObject->{$this->relationName . 'ID'};
810: [04:47:26] <ss23> Because preg_replace_callback has an error, it returns a blank string, so SCREW YOU EMAIL YOU ARE GONE
811: [04:47:34] <ss23> idk why Silverstripe wasn't showing that error, but fml
812: [04:47:44] <Pyromanik> simon_w: supressed by @
813: [04:47:52] <Pyromanik> ss23: ^
814: [04:47:54] <Pyromanik> ?
815: [04:47:59] <ss23> idk, anyway, idc
816: [04:48:03] <ss23> Point is
817: [04:48:04] <ss23> how 2 fix
818: [04:48:10] <spronk> remove e
819: [04:48:22] <ss23> I'm going to be like
820: [04:48:23] <ss23> report issue
821: [04:48:27] <ss23> simon_w didn't test his shit
822: [04:48:35] * ss23 cries
823: [04:48:38] <ss23> this has taken up like my entire day
824: [04:48:38] <ss23> :<
825: [04:49:32] <simon_w> metanat, yup. Gonna store it somewhere, may as well make it so I can assume it's always set (for saving and stuff)
826: [04:49:33] <Pyromanik> https://support.webhost.co.nz/index.php?_m=news&_a=viewnews&newsid=1200
827: [04:50:07] <spronk> who the fuck uses e anyway
828: [04:50:21] <spronk> Pyromanik: that is a fucking weak update
829: [04:50:24] <Pyromanik> spronk: everything php 5.2 and below?
830: [04:50:32] <Pyromanik> spronk: I know.
831: [04:50:36] <simon_w> spronk, Well, only deprecated in 5.5
832: [04:50:52] <Pyromanik> our server's still down spronk
833: [04:51:00] <spronk> daan
834: [04:51:01] <spronk> g
835: [04:51:05] <ss23> simon_w: https://github.com/silverstripe/silverstripe-framework/pull/2229
836: [04:51:13] <spronk> thats like
837: [04:51:14] * ss23 breathes a sigh of relief
838: [04:51:14] <spronk> 1hr
839: [04:51:17] <spronk> compensation time
840: [04:51:20] <ss23> Feels good, took like all afternoon, but found this bug
841: [04:51:24] <Pyromanik> spronk: yep
842: [04:51:31] <Pyromanik> 99.999? NOT THIS MONTH
843: [04:51:33] <ss23> https://support.webhost.co.nz/index.php?_m=news&_a=viewnews&newsid=120%200
844: [04:51:55] <simon_w> Ah right, didn't use / so my grep didn't find it
845: [04:52:10] <ss23> simon_w: I even asked you specifically if you had ideas
846: [04:52:11] <ss23> ;_;
847: [04:52:12] * ss23 sobs
848: [04:52:26] <simon_w> ss23, and I couldn't be bothered looking through the function :p
849: [04:52:30] <Pyromanik> ss23: "This is what happens when we make commits without testing!" did YOU test!?
850: [04:53:04] <ss23> Pyromanik: Yes
851: [04:53:06] <ss23> I made *sure* to test
852: [04:53:11] <ss23> I've spent the last 3 fucking hours
853: [04:53:13] <ss23> filling out captchas
854: [04:53:18] <ss23> BITCH YOU THINK I WOULDN'T TEST?
855: [04:53:22] <simon_w> Oh, I see what happened
856: [04:53:24] <Pyromanik> ss23: but did you WRITE a test!?
857: [04:53:29] <chrisrio> someone dropped a bitch in #silverstripe
858: [04:53:31] <simon_w> ss23, I didn't merge that commit back to 3.0 :p
859: [04:53:31] <chrisrio> attention gained.
860: [04:53:32] <ss23> Pyromanik: No, and fuck me, I ain't going to.
861: [04:53:34] <spronk> did you test the case that regex is meant to handle?
862: [04:53:40] <ss23> spronk: Yes
863: [04:53:41] <Pyromanik> ss23: haha, no merge!
864: [04:53:44] <Pyromanik> lol
865: [04:53:49] <simon_w> ss23, https://github.com/silverstripe/silverstripe-framework/commit/e20f15df55a24c74ba94fb96304152a4c0d0ae92#comments
866: [04:54:05] <ss23> simon_w: sorry ain't good enough
867: [04:54:09] * ss23 turns away with a tear in his eye
868: [04:54:19] <simon_w> ss23, fixed like ages age! :p
869: [04:54:30] <ss23> NEVER WAS FIXED IN 3.0
870: [04:54:32] <ss23> :<
871: [04:54:38] <Pyromanik> common
872: [04:54:42] <Pyromanik> STILL NO EQUALS
873: [04:54:52] <Pyromanik> breaks email encodes
874: [04:54:56] <ss23> Pyromanik: idc
875: [04:54:57] <ss23> like literally
876: [04:55:00] <Pyromanik> you should
877: [04:55:01] <ss23> idk :D
878: [04:55:04] <spronk> omfg
879: [04:55:04] <ss23> idc*
880: [04:55:09] <spronk> use a library already
881: [04:55:10] <Pyromanik> = gets emailed as %3D=
882: [04:55:11] <Pyromanik> or whatever
883: [04:55:16] <Pyromanik> and what spronk said.
884: [04:55:20] <Pyromanik> write a library already
885: [04:55:23] <simon_w> ss23, only broke in 3.0 like last week!
886: [04:55:49] <ss23> simon_w: You should be glad I noticed. Most people who run 3.0 are noobs. I bet it wouldn't have been picked up until 3.0.6 if I hadn't have found it now
887: [04:56:01] <simon_w> Probably
888: [04:56:01] <Pyromanik> fuck sakes
889: [04:56:06] <simon_w> Cause no one uses 3.0 :p
890: [04:56:10] <ss23> lol
891: [04:56:15] <ss23> tbh, idk why this project is using latest 3.0...
892: [04:56:16] <Pyromanik> simon_w: I use 3.0!
893: [04:56:29] <simon_w> Pyromanik, 3.0.x-dev?
894: [04:56:30] <ss23> I wonder how to make it use 3.0.5
895: [04:56:36] <ss23> phing, not composer, bitches!
896: [04:56:36] <ss23> :D
897: [04:57:19] <irogue> http://www.nzherald.co.nz/business/news/article.cfm?c_id=3&objectid=10898465
898: [04:57:28] * irogue enjoys watching Renaissance die
899: [04:57:53] <spronk> lol
900: [04:57:54] <spronk> yeah
901: [04:58:07] <spronk> ew
902: [04:58:08] <Pyromanik> simon_w: tarball.
903: [04:58:09] <spronk> phing
904: [04:58:15] <Pyromanik> 3.0.5
905: [04:58:27] <simon_w> Pyromanik, ss.org.nz/latest
906: [05:00:08] <Pyromanik> NOPE, HOME TIME
907: [05:00:23] <Pyromanik> exit
908: [05:00:26] * Pyromanik quit (Quit: leaving)
909: [05:00:35] <chrisrio> that guy
910: [05:05:31] * travis-ci has joined #silverstripe
911: [05:05:32] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#596 (3.0 - d9b0d14 : Simon Welsh): The build passed.
912: [05:05:32] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/920edf88e7b2...d9b0d14ee946
913: [05:05:32] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/9083258
914: [05:05:32] * travis-ci has left #silverstripe
915: [05:11:26] <ss23> git question incoming!
916: [05:11:36] <ss23> $ git checkout -f -b 3.0.5 --track origin/3.0.5
917: [05:11:36] <ss23> fatal: git checkout: updating paths is incompatible with switching branches.
918: [05:11:39] <ss23> Did you intend to checkout 'origin/3.0.5' which can not be resolved as commit?
919: [05:11:43] <ss23> y phing try do dis, how 2 fix?
920: [05:23:05] * DigNZ quit (Quit: DigNZ)
921: [05:24:57] <guzzlefry_dev> What should I use in 3.1 as a replacement DataObjectSet?
922: [05:25:21] <simon_w> DataList? ArrayList?
923: [05:25:44] <guzzlefry_dev> DataList sounds like it, thanks
924: [05:32:15] <metanat> guzzlefry_dev: DataList is an iterator + query builder. ArrayList doesn't have any "knowledge" of a model
925: [05:34:25] <guzzlefry_dev> yeah, someone in another channel just told me that. Thanks though.
926: [05:34:40] <guzzlefry_dev> Well, he's in here too, just hiding. :P
927: [05:38:31] * howardgr_ quit (Remote host closed the connection)
928: [05:40:57] * metanat1 has joined #silverstripe
929: [05:41:05] * metanat1 quit (Client Quit)
930: [05:44:41] * chrisrio quit (Quit: Page closed)
931: [05:44:48] <EasyCo> simon_w: Just ended up adding getForeignID() to ManyManyList and sending the foreignID as a get param when adding a new gridfield row. That way the new DataObject has access to the calling object so-to-speak.
932: [05:45:02] * metanat quit (Ping timeout: 240 seconds)
933: [05:49:39] <irogue> https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-frc3/q73/s720x720/1069794_483451831736297_815233329_n.jpg
934: [05:50:07] <spronk> dawg
935: [05:50:07] <spronk> also
936: [05:50:16] <spronk> grr, that moment when 8 power sockets isn't enoguh for your desk
937: [05:50:20] <irogue> haha
938: [05:50:21] <irogue> dude
939: [05:50:23] <EasyCo> Is that a MMPUFF IN A MMPUFF!!
940: [05:50:27] <irogue> wtf do you have on your desk
941: [05:50:29] <spronk> hmm
942: [05:50:32] <irogue> EasyCo: oh yes
943: [05:50:57] <spronk> monitor x3, desktop pc, laptop charger x2, voip phone, network switch, headphone amp, lamp
944: [05:51:11] <EasyCo> Dear lord!
945: [05:51:27] <spronk> man
946: [05:51:33] <spronk> it's been a LONG time since i had one of those...
947: [05:51:33] * spronk wants
948: [05:51:35] <EasyCo> That's like inception marshmallow puffs
949: [05:51:35] <simon_w> Your screens aren't laptop chargers?
950: [05:51:39] <simon_w> Gutted
951: [05:51:41] <irogue> mind you
952: [05:51:46] <spronk> yeah... no
953: [05:51:56] <spronk> also, apple monitors are too expensive
954: [05:52:04] <irogue> http://moustache.co.nz <-- these guys made their own giant mallowpuff, then decided to put actual mallowpuffs inside
955: [05:52:06] <spronk> esp for what they are
956: [05:52:29] <irogue> dell ultrasharp!
957: [05:53:29] <spronk> jaja
958: [05:53:34] <spronk> although
959: [05:53:36] <spronk> my fucking U2410s...
960: [05:53:42] <spronk> have a minor pink/green tint
961: [05:54:21] <spronk> not really noticeable when viewing single monitor
962: [05:54:32] <Jayden90> Guys how can you use $Menu in a template from the context of the current page, i.e. loop all child pages that have "show in menus" enabled
963: [05:54:40] <spronk> but both are left = pinker, right = greener... so put two together and you end up with a noticable difference
964: [05:54:50] <EasyCo> I've got a Dell ultrasharp, do yours run hot?
965: [05:54:51] <spronk> Jayden90: use Children()
966: [05:54:58] <spronk> EasyCo: warn
967: [05:55:07] <spronk> EasyCo: which model you have?
968: [05:55:19] <Jayden90> And manually check if display in nav is enabled each iteration?
969: [05:55:21] <spronk> warm*
970: [05:55:44] <simon_w> Jayden90, Children is only those with ShowInMenus set
971: [05:55:55] <spronk> mm
972: [05:56:01] <EasyCo> spronk: U27
973: [05:56:02] * willr quit (Quit: willr)
974: [05:56:24] <spronk> EasyCo: ah, yeah. So CCFL backlight? all CCFL backlit run a little on the warm side
975: [05:56:32] <EasyCo> it blew up after ~2 years and they replaced it no questions asked within 2 days so I'm happy with that.
976: [05:56:50] <spronk> blew up? hmm
977: [05:57:17] <EasyCo> Giving you ideas...
978: [05:57:38] <spronk> :D
979: [05:57:46] * spronk wouldn't mind a couple ofnew U2410s
980: [05:57:54] <spronk> or, even better, the newer model
981: [05:58:15] <spronk> having said that, i still have my 2x 2007wfps, and they are as solid as ever
982: [05:58:18] <Jayden90> simon_w: ahh crap, you're right. Just realised all my $Children loops are showing up nothing since I toggled the option off everywhere.
983: [05:58:32] <spronk> still calibrate to 0.4dE average with a spyder3
984: [05:58:47] <spronk> after 5 years of use, that's pretty decent
985: [05:58:51] <irogue> fuck, why am i still here
986: [05:59:23] * irogue goes home
987: [06:01:29] <spronk> anyone know if the blog TagCollection widget caches the tag collection?
988: [06:06:24] <Jayden90> simon_w: I am displaying certain sub page types as sections, which are sibbling to genuine child pages. How can you check if a certain sub page type exists before looping? As a random example I would only want "<ul id="cats">" to display if there are infact child CatPages: http://www.silverstripe.org/template-questions/show/11949
989: [06:11:39] <EasyCo> I thought when you did Object::add_extension(), $this referred to the scope of the class you were extending… Is this not the case?
990: [06:12:40] <simon_w> EasyCo, $this is always the current object
991: [06:12:47] <simon_w> So, the Extension
992: [06:12:53] <simon_w> You probably want $this->owner
993: [06:12:54] <EasyCo> $this->owner
994: [06:12:59] <EasyCo> Thanks
995: [06:13:10] <simon_w> Home time!
996: [06:13:12] <EasyCo> That makes sense.
997: [06:13:16] <EasyCo> Yah I need home time too.
998: [06:15:16] * DigNZ has joined #silverstripe
999: [06:15:53] <ss23> Home time! It's not even 9pm yet
1000: [06:15:54] <ss23> :D
1001: [06:18:22] * DigNZ quit (Client Quit)
1002: [06:21:15] * zauberfisch has joined #silverstripe
1003: [06:26:13] * willr has joined #silverstripe
1004: [06:33:41] <ss23> gah, dammit, I keep forgetting to ask
1005: [06:33:45] <ss23> willr: whats the password to the damn speakers
1006: [06:33:52] <ss23> I wanna blast some death metal
1007: [06:33:57] <ss23> or simon_w if oyu happen to know
1008: [06:34:16] <willr> ss23 ha I wonder if it has changed
1009: [06:34:25] <ss23> Can you PM it to me if you remember it?
1010: [06:34:26] <ss23> :<
1011: [06:34:36] <ss23> or where to find it
1012: [06:34:47] <ss23> Only time I think about it is when everyone is out of the office >.<
1013: [06:35:46] <willr> ss23 pm'ed
1014: [06:36:20] <ss23> :D
1015: [06:37:08] <willr> ss23 did you need my pin code as well? That still works as well
1016: [06:37:25] <spronk> dodgy dealings!
1017: [06:38:27] <ss23> XD
1018: [06:38:29] <ss23> Okay guise
1019: [06:38:36] <ss23> how to grooveshark -> speakers that are done through itunes?
1020: [06:39:43] <willr> https://www.macupdate.com/info.php/id/17357/airfoil
1021: [06:41:01] <ss23> chur
1022: [06:41:03] <ss23> :D
1023: [06:41:13] <ss23> wait
1024: [06:41:13] <ss23> ios?
1025: [06:41:14] <ss23> o.o
1026: [06:41:23] <ss23> omg
1027: [06:41:23] <ss23> $20
1028: [06:41:25] <ss23> NOOO
1029: [06:41:26] * ss23 dies
1030: [06:42:51] * openbees has joined #silverstripe
1031: [06:45:25] <guzzlefry_dev> oh no :(
1032: [06:45:47] <spronk> Oh Yes! _b
1033: [06:45:51] <ss23> Going to have to bring in my music one day, I think
1034: [06:46:05] <openbees> what could be easiest way to find position of dataobject in a custom datalist ?
1035: [06:46:19] <ss23> hmm
1036: [06:46:27] <ss23> Do datalists have an inherint sort?
1037: [06:46:41] <openbees> except looping through datalist and comaring with id !
1038: [06:46:56] <openbees> ss23 : didn't get you :(
1039: [06:48:14] <openbees> it is sorted by some field but those are not fixed, user can change them.
1040: [06:48:57] <openbees> actually I just want to get page no of paginated list for a certain dataobject
1041: [06:50:22] * WillSkeggs has joined #silverstripe
1042: [06:50:25] * DigNZ has joined #silverstripe
1043: [06:51:04] * DigNZ quit (Client Quit)
1044: [06:55:07] * simon_w|air has joined #silverstripe
1045: [06:57:23] <simon_w|air> openbees, is the value they're sorted on unique?
1046: [06:59:23] <openbees> no
1047: [07:01:18] <simon_w|air> Well, it's going to be somewhere between $list->filter('Field:LessThan', $obj->Field)->Count() and $list->filter('Field:LessThan', $obj->Field)->Count() + $list->filter('Field', $obj->Field)->Count()
1048: [07:12:40] <WillSkeggs> simon_w|air, would you have any idea how to make line 144 concatenate Name and Email for this ajax form: http://pastebin.com/ErwtzpdF - I'm trying to show autocomplete options as uniquely as possible in case people have similar names.
1049: [07:12:40] * op has joined #silverstripe
1050: [07:20:05] * Jayden90 quit (Quit: Jayden90)
1051: [07:26:09] * guci0 has joined #silverstripe
1052: [07:26:18] <openbees> simon_w|air : it works ;) thanks
1053: [07:27:07] <simon_w|air> WillSkeggs, http://pastebin.com/gijbp6Zx fixes the double escaping of the input, causes the output to be escaped
1054: [07:28:13] <ss23> simon_w|air: Easy way of explode('3.5.1', '.', $whatgoeshere) -> ['3.5', '1'], explode('3.5', '.', $whatgoeshere) -> ['3', '5']
1055: [07:28:17] <ss23> That is, I want 2 elements each time
1056: [07:28:35] <ss23> Thought negative limit did it, but it turns out not
1057: [07:28:35] <ss23> :<
1058: [07:30:35] * guci0 quit (Ping timeout: 250 seconds)
1059: [07:31:09] <simon_w|air> $blah = explode('.', '3.5.1'); $end = array_pop($blah); $blah = implode('.', $blah);
1060: [07:31:36] <ss23> blurgh, thought so
1061: [07:31:41] * openbees quit (Quit: Good Bye)
1062: [07:33:01] <simon_w|air> You could use $p = strrpos('3.5.1', '.'); if($p !== false) { $end = substr('3.5.1', $p); $begin = substr('3.5.1', 0, $p); }
1063: [07:33:14] <simon_w|air> Maybe using $p+1 for the first substr()
1064: [07:33:18] <ss23> All yucky though, I was hoping for something built in
1065: [07:33:19] <ss23> All good though
1066: [07:33:31] <ss23> simon_w|air: Writing a script to go from phing to composer
1067: [07:33:32] <ss23> :D
1068: [07:33:35] <ss23> Are you proud?
1069: [07:33:41] <simon_w|air> Meh :p
1070: [07:33:47] <WillSkeggs> Thanks so much simon_w, works well.
1071: [07:33:47] <ss23> MEH!
1072: [07:33:49] * ss23 faints
1073: [07:33:55] <ss23> I thought I was worth more than a meh! :<
1074: [07:34:03] <ss23> After I fixed that *horrible* bug you introduced today, too
1075: [07:34:24] <simon_w|air> I don't use phing and I try not to use composer :p
1076: [07:34:27] <EasyCo> Ahh, setFieldFormatting… Where you been all my life!
1077: [07:34:39] <ss23> I take what I can get, simon_w|air
1078: [07:34:44] <ss23> composer seems best so far
1079: [07:34:47] <ss23> Really, I just want consistency
1080: [07:36:23] <EasyCo> I didn't know you could jam anonymous functions in arrays in PHP. Makes me feel warm inside, almost like JS.
1081: [07:36:35] <willr> Well I'm glad SS saw the light, they were migrating to phing when I left, don't see why
1082: [07:36:51] <willr> "hey let's use XML for everything"
1083: [07:37:24] <simon_w|air> EasyCo, why not? They're just values
1084: [07:37:42] <guzzlefry_dev> My brain parses JSON better.
1085: [07:38:04] <simon_w|air> I prefer reading XML
1086: [07:38:07] <EasyCo> simon_w|air: I don't know why not, but now I know why yes.
1087: [07:38:11] <ss23> Hmm
1088: [07:38:26] <ss23> I'm indifferent to XML/JSON, they're both easy enough to read. Familiarity is what it comes down to I think
1089: [07:38:46] <EasyCo> I'll go YAML just to even out the playing field
1090: [07:38:48] <simon_w|air> I like being able to tell what's a name, attribute and value apart
1091: [07:38:57] <ss23> omg
1092: [07:38:59] <ss23> yaml plz no
1093: [07:39:05] <ss23> json, xml, ANYTHING BUT YAML
1094: [07:39:14] <ss23> I just find yaml near impossible to read >.<
1095: [07:39:14] <simon_w|air> Oh, newline support is also nice :p
1096: [07:39:47] <simon_w|air> (seriously JSON, why no newlines)
1097: [07:39:55] <ss23> Aren't newlines useless in json?
1098: [07:40:00] <ss23> so you can use as many/few as you want?
1099: [07:40:02] <simon_w|air> Inside a value
1100: [07:40:27] <EasyCo> I like indents.
1101: [07:40:42] <EasyCo> And lack of wrapping characters
1102: [07:40:50] <simon_w|air> One of the things of JS that annoys me the most is you can't have literal newlines in a literal string
1103: [07:41:05] <simon_w|air> EasyCo, spaces aren't indents!
1104: [07:41:52] <guzzlefry_dev> ArrayList::add() and ArrayList::push() are more or less the same right? Aside from where the element is added.
1105: [07:42:29] <simon_w|air> guzzlefry_dev, they are the same. add() calls push()
1106: [07:42:44] <EasyCo> simon_w|air: Now we're just being pedantic! 2 space soft tab then :)
1107: [07:43:00] <simon_w|air> EasyCo, YAML requires spaces
1108: [07:43:18] <guzzlefry_dev> ah, I'm thinking shift or unshift. :P
1109: [07:43:37] <guzzlefry_dev> I can't never remember those queue/stack functions.
1110: [07:43:41] <guzzlefry_dev> s/can't/can
1111: [07:43:51] <simon_w|air> guzzlefry_dev, shift and push you mean :p
1112: [07:44:25] <guzzlefry_dev> I don't know anymore. :/
1113: [07:44:40] <simon_w|air> shift pushes to the front, push pushes to the end
1114: [07:44:48] <simon_w|air> unshift removes from the front, pop removes from the end
1115: [07:45:16] <guzzlefry_dev> ah, push is what I want then. thanks
1116: [07:45:33] <EasyCo> simon_w|air: Well there you have it! I didn't know that, my IDE is always setup in soft tabs anyways so I guess that's why I never noticed
1117: [07:46:39] <simon_w|air> Aha, I remember what I was going to do this evening now
1118: [07:57:40] <guzzlefry_dev> whoops
1119: [07:58:16] <guzzlefry_dev> [User Warning] DBField::setName() shouldn't be called once a DBField already has a name.It's partially immutable - it shouldn't be altered after it's given a value.
1120: [07:58:48] * Error404NotFound has joined #silverstripe
1121: [07:59:15] * supernovah has joined #silverstripe
1122: [07:59:37] <guzzlefry_dev> $day->setField("Date", $dateObject); // Offending code.
1123: [07:59:43] <guzzlefry_dev> $day is a fresh DataObject...
1124: [08:00:23] <guzzlefry_dev> Any idea? This worked in 2.4
1125: [08:02:16] <guzzlefry_dev> maybe I want ArrayData...
1126: [08:02:18] * Pigeon has joined #silverstripe
1127: [08:02:41] * Pigeon is now known as Guest59281
1128: [08:02:47] <supernovah> What version? 3?
1129: [08:02:54] <guzzlefry_dev> 3.1
1130: [08:04:33] <supernovah> Sorry can't help
1131: [08:05:30] * guzzlefry_dev grumbles
1132: [08:05:34] <guzzlefry_dev> it's right in my face :P
1133: [08:05:34] <simon_w|air> guzzlefry_dev, the DBField shouldn't already have a name
1134: [08:05:37] * ss23 guzzles
1135: [08:06:14] <guzzlefry_dev> simon_w|air: This is for that data I'm pulling from an API. ArrayData is probably more appropriate right? I somehow missed that it had a setField method. :P
1136: [08:07:57] <ss23> I'm writing json as "jason" in this script, am I cool? :D
1137: [08:08:13] <supernovah> jay_my_son
1138: [08:08:18] * lobarvaz has joined #silverstripe
1139: [08:08:24] <supernovah> but yes very cool
1140: [08:08:28] <ss23> XD
1141: [08:09:22] <guzzlefry_dev> ss23: Are you ready to go Vanilla Ice cool and port SilverStripe to Schema?
1142: [08:09:33] <ss23> haha
1143: [08:09:34] <ss23> Dude
1144: [08:09:36] <ss23> Haskel, plz
1145: [08:09:53] <simon_w|air> Gah, stupid (Android) chrome
1146: [08:09:57] <simon_w|air> *Haskell
1147: [08:10:22] <guzzlefry_dev> or
1148: [08:11:09] <guzzlefry_dev> a series of PL/pgSQL functions...
1149: [08:11:13] * guzzlefry_dev gets crazy eyed
1150: [08:11:56] * EasyCo quit (Quit: EasyCo)
1151: [08:13:06] <guzzlefry_dev> simon_w|air: yeah, no clue why the other new DataObject I made prior didn't error. Maybe it's due to having the name in setField as "Date"?
1152: [08:13:11] <guzzlefry_dev> Potential keyword conflict?
1153: [08:13:17] <supernovah> port it to ARM machine code and then use an automated php converter
1154: [08:13:20] <simon_w|air> What a surprise, doesn't happen on iOS.
1155: [08:13:20] <supernovah> what could go wrong
1156: [08:13:30] <simon_w|air> guzzlefry_dev, it's because the DBField already had a name set
1157: [08:13:47] <guzzlefry_dev> How does that happen?
1158: [08:14:12] <simon_w|air> You gave it one
1159: [08:14:51] <simon_w|air> Android chrome: how to fix those massive lines? http://twitpic.com/d2r5kf
1160: [08:15:07] * chillu has joined #silverstripe
1161: [08:15:44] <ss23> simon_w|air: switch to iphone master race
1162: [08:15:59] <simon_w|air> ss23, that just hides the problem
1163: [08:16:02] <ss23> lol
1164: [08:16:11] <ss23> I have no idea though sorry, seems stupid
1165: [08:16:39] <guzzlefry_dev> simon_w|air: http://bpaste.net/show/qfRJCmpM03o9JTRVarMd/ I can't call setField() twice on that dataObject?
1166: [08:17:34] <simon_w|air> guzzlefry_dev, are you passing the same object into setField() more than once?
1167: [08:17:45] <simon_w|air> (my http is going really slow for some reason)
1168: [08:18:14] <simon_w|air> guzzlefry_dev, you are. Pass in clone $dateObject
1169: [08:18:34] <simon_w|air> hang on, you create it just there
1170: [08:19:23] <guzzlefry_dev> derp wait
1171: [08:19:36] <ss23> PHP's json encoder was *really* bad before 5.4 :/
1172: [08:19:43] <guzzlefry_dev> simon_w|air: I was dumb and read the line number from DBField.php
1173: [08:19:44] <ss23> like, idk if I should write my own or what
1174: [08:19:45] <ss23> fml
1175: [08:19:48] <guzzlefry_dev> not used to these error dumps :/
1176: [08:20:17] <simon_w|air> ss23, yeah, the lack of the flags is a massive pain
1177: [08:20:29] <simon_w|air> "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 80 bytes) in /Users/simon/Sites/logbot/funcs.php on line 28" heh, oops. I wonder if that happens on the live version too...
1178: [08:20:34] <ss23> I think I could just do an str_replace or something I guess
1179: [08:20:36] <ss23> lol simon_w|air
1180: [08:20:40] <ss23> I thought it was Go?!
1181: [08:20:41] <simon_w|air> It does!
1182: [08:20:48] <simon_w|air> ss23, not the displaying
1183: [08:20:53] <ss23> oic
1184: [08:21:13] <simon_w|air> Hmm, maybe I should limit search results to a couple thousand
1185: [08:22:09] * op quit (Ping timeout: 250 seconds)
1186: [08:22:13] <willr> more rams
1187: [08:22:24] <ss23> simon_w|air: composer.json is all require: { stuff: foo, foo: bar}
1188: [08:22:34] <ss23> hmm
1189: [08:22:39] <ss23> annoying
1190: [08:22:41] <simon_w|air> willr, I talk too much!
1191: [08:22:42] <ss23> I think I got it though
1192: [08:23:37] <simon_w|air> willr, how to fix Android Chrome?
1193: [08:24:04] <willr> gtfo?
1194: [08:24:32] <ss23> lol
1195: [08:24:56] <simon_w|air> Yeah, but I use it :(
1196: [08:24:58] <willr> what makes those cells different? Must be something, can you copy the content into a couple others and see if the content breaks those cells as well?
1197: [08:25:33] <ss23> willr: The length
1198: [08:25:34] <ss23> wait
1199: [08:25:39] <ss23> I thought it was cause they were long it did that
1200: [08:25:49] <ss23> But in retrospect, they probably just look longer cause of their size
1201: [08:25:49] <ss23> idk
1202: [08:25:51] <simon_w|air> willr, only difference is the text length
1203: [08:25:51] <ss23> Are they longer?
1204: [08:25:54] <ss23> I KNEW IT
1205: [08:25:55] <ss23> I WAS RIGHT
1206: [08:25:58] <ss23> 50 points to ss23
1207: [08:26:10] <willr> ss23 not how long it is, how you use it.
1208: [08:27:01] <willr> man lacking some serious motivation to do anything serious in my free time these days.
1209: [08:27:15] <simon_w|air> http://logs.simon.geek.nz/index.php?date=2013-07-02#log_43018 is the line in the screenshot
1210: [08:27:17] <willr> Meh. with a capital M.
1211: [08:27:37] <willr> The :target isn't being a bitch?
1212: [08:28:19] <simon_w|air> Nah
1213: [08:29:09] <simon_w|air> Would be so much easier if Android had remote debugging
1214: [08:29:41] <ss23> lol
1215: [08:29:52] <willr> Doesn't it?
1216: [08:30:01] <willr> https://developers.google.com/chrome-developer-tools/docs/remote-debugging
1217: [08:30:08] <ss23> willr: Maybe you should work for a place where motivation is more important than a high wage :3
1218: [08:30:24] <simon_w|air> Huh, it might now that I've switched the phone to developer
1219: [08:32:17] <willr> ss23 ha no lack of motivation at work. Work work is the fun stuff. Free time is all like "Release user forms". Meh.
1220: [08:32:19] <simon_w|air> Oh man, this remote debugging stuff is a mess
1221: [08:32:25] <ss23> haha
1222: [08:32:33] <ss23> willr: Solution: get a more boring job
1223: [08:32:34] <ss23> :D
1224: [08:32:51] <willr> guess I should do that tonight. Before wednesday
1225: [08:33:25] <ss23> haha
1226: [08:33:28] <ss23> I don't think I mention userforms
1227: [08:33:31] <ss23> I probably will though :D
1228: [08:33:53] <ss23> still needa write my ./pwnnewsletters.py
1229: [08:33:53] <ss23> :D
1230: [08:33:55] <simon_w|air> iOS makes remote debugging so much nicer
1231: [08:34:06] <guzzlefry_dev> hm, something isn't working. :/
1232: [08:34:18] <simon_w|air> Also, general iOS development
1233: [08:34:26] <simon_w|air> Seriously, Android is not developer friendly
1234: [08:36:03] <willr> ss23 how about forum? That also is getting a release tomorrow
1235: [08:36:23] * Motoservo quit (Ping timeout: 245 seconds)
1236: [08:37:02] * Motoservo has joined #silverstripe
1237: [08:38:18] <ss23> willr: Don't think I looked at forum much, but I presume it was okay from the quick look I had
1238: [08:38:26] <willr> yeah no.
1239: [08:38:49] <ss23> lol
1240: [08:38:57] <ss23> Is that a "no, I know it's buggy as shit and going to get you hacked?" :P
1241: [08:38:59] <simon_w|air> Can't be as bad as the 2.4 ecom modules though
1242: [08:39:06] <ss23> haha
1243: [08:39:13] <ss23> My flowdock has been full of tweets about Silverstripe today
1244: [08:39:22] <simon_w|air> SQLi on all the $_GET vars!
1245: [08:39:25] <ss23> Someone got a CVE for some persistent XSS in a weird ecom module on google code...
1246: [08:39:47] <guzzlefry_dev> help!
1247: [08:39:51] <guzzlefry_dev> $grid->setField("StartDate", new SS_DateTime($startDate->format('Y-m-d H:i:s')));
1248: [08:40:22] <guzzlefry_dev> $Grid.StartDate.Debug prints the name as what should be the date value. :P
1249: [08:40:28] <guzzlefry_dev> Name:2013-07-01 01:40:54
1250: [08:40:35] <guzzlefry_dev> Value: is blank
1251: [08:41:32] <simon_w|air> guzzlefry_dev, yeah, first argument is name
1252: [08:41:49] <simon_w|air> you want DBField::create_field('SS_DateTime', $startDate....)
1253: [08:42:16] <willr> ss23 that was the original ecomm that SS built, Nicolaas now looks after it
1254: [08:42:28] <ss23> ah k
1255: [08:42:32] <ss23> It's not on github, :D
1256: [08:42:58] <simon_w|air> Oh man, remote Chrome debugging is horrible
1257: [08:42:59] <ss23> Hmm
1258: [08:43:06] <guzzlefry_dev> err
1259: [08:43:23] * howardgrigg has joined #silverstripe
1260: [08:43:33] * metanat has joined #silverstripe
1261: [08:43:33] <ss23> - The requested package silverstripe/silverstripe-comments could not be found in any version, there may be a typo in the package name.
1262: [08:43:38] <ss23> - The requested package silverstripe/comments 1.1 could not be found.
1263: [08:43:40] <ss23> how 2 comments?
1264: [08:43:44] <ss23> In composer
1265: [08:43:47] * metanat quit (Read error: Connection reset by peer)
1266: [08:43:49] <simon_w|air> ss23, first one is wrong
1267: [08:43:51] * metanat1 has joined #silverstripe
1268: [08:43:53] <guzzlefry_dev> simon_w|air: I thought it was setField("Name", "Value"); ?
1269: [08:43:57] <ss23> Second one doesn't work either, simon_w|air?
1270: [08:44:14] <ss23> urgh, it's going to be like "USE 1.1.x-dev!" isn't it
1271: [08:44:15] <ss23> ;_;
1272: [08:44:50] <simon_w|air> guzzlefry_dev, that works too
1273: [08:44:56] <ss23> Well, this phing to composer script is done now :D
1274: [08:45:03] <guzzlefry_dev> simon_w|air: That's what my code does. I think...
1275: [08:45:24] <simon_w|air> guzzlefry_dev, nope. It's constructing a SS_Datetime object
1276: [08:45:28] <guzzlefry_dev> I want "StartDate" to be an SS_DateTime object
1277: [08:45:36] <simon_w|air> Gah, bloody Chrome: http://swng.it/YVyeH.png
1278: [08:45:43] <simon_w|air> guzzlefry_dev, so DBField::create_field
1279: [08:45:50] <simon_w|air> How many times do I have to tell you? :p
1280: [08:45:58] <guzzlefry_dev> For non-database stuff?
1281: [08:46:04] <simon_w|air> Yes
1282: [08:46:09] <simon_w|air> SS_DateTime is a DBField
1283: [08:46:12] <ss23> You know simon_w|air is getting frustrated when he says BLOODY CHROME
1284: [08:47:51] <simon_w|air> Oh look, now it's even ignoring !important
1285: [08:48:05] * ss23 blinks
1286: [08:48:06] <ss23> :D
1287: [08:48:08] <ss23> You see what I did there?
1288: [08:48:19] <ss23> simon_w|air: btw I'm going out to lunch with someone else tomorrow, so idk if you wanna bring packed lunch or what :O
1289: [08:50:39] <guzzlefry_dev> :(
1290: [08:51:10] <guzzlefry_dev> simon_w|air: Do I have to call create_field for all of my setField stuff?
1291: [08:51:31] <supernovah> How do you attach a 2.4.1 tinymce to a textarea
1292: [08:51:36] <guzzlefry_dev> Well, looks like scalars work fine.
1293: [08:51:41] <simon_w|air> So, I need to set it to display: block; and give it a width
1294: [08:51:49] <simon_w|air> supernovah, HTMLEditorField
1295: [08:51:56] <supernovah> I know but it doesn'
1296: [08:52:17] <supernovah> I was referring to 2.4.1 tinymce not SS
1297: [08:52:25] <supernovah> because ss doesn't provide the JS to attach it
1298: [08:53:32] * EasyCo has joined #silverstripe
1299: [08:53:41] <simon_w|air> And doesn't include 2.4.1 either
1300: [08:53:56] <supernovah> it does by the looks of it o.0
1301: [08:57:29] <simon_w|air> https://github.com/silverstripe/silverstripe-framework/blob/3.0/thirdparty/tinymce/tiny_mce_src.js looks like 3.5.8 to me
1302: [08:57:52] <supernovah> I
1303: [08:59:52] * jcwacky quit (Quit: jcwacky)
1304: [09:00:38] <supernovah> I'm using (a new keyboard lol) and ss 2.4.10 and it has tiny_mce.js which says 2.4.1
1305: [09:00:59] <simon_w|air> Well, that's just stupid. The fix was to add a max-height.
1306: [09:01:00] * simon_w|air rages at android chrome some more
1307: [09:02:31] <guzzlefry_dev> 5am, have to be up at 11am :P
1308: [09:02:39] * guzzlefry_dev holds the line!
1309: [09:03:02] <simon_w|air> supernovah, anyway, the answer is still to use HtmlEditorField. It includes all the JS you need.
1310: [09:03:22] <supernovah> I am but it doesn't work
1311: [09:03:28] <supernovah> The form comes up as a plain textarea
1312: [09:04:20] <supernovah> The request for the edit form gives a textarea with the attribute "tinymce="true""
1313: [09:06:00] * ss23 looks at the clock
1314: [09:06:06] <ss23> 9pm release... hmm, pass.
1315: [09:10:35] <howardgrigg> I'm trying to setup a server but when I install SS it coes up with this... http://note.io/15f3OhX
1316: [09:11:32] <howardgrigg> any ideas on what's going wrong?
1317: [09:12:57] <supernovah> data which isn't markup is being displayed...
1318: [09:14:37] <guzzlefry_dev> gah
1319: [09:14:58] <guzzlefry_dev> is the path for <% require css() %> relative to the page template or where $Layout is?
1320: [09:15:27] <simon_w|air> guzzlefry_dev, install base
1321: [09:15:36] <guzzlefry_dev> ah, thanks
1322: [09:18:13] * zauberfisch quit (Quit: Leaving...)
1323: [09:28:07] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
1324: [09:29:37] * metanat1 quit (Quit: Leaving.)
1325: [09:31:21] <guzzlefry_dev> Is there a way to trigger error messages when I reference something in a template that doesn't exist?
1326: [09:31:59] <Bollig|DesignCty> I don't think so guzzlefry_dev...
1327: [09:35:23] <supernovah> I think the reason the 2.4.10 version of SS and its 2.4.1 tinyMCE aren't compatibile is new iframe security in browsers. tinyMCE is included before the iframe comes up and afaik now communication between frames is barred in js?
1328: [09:35:26] <supernovah> is that right?
1329: [09:39:42] * zippy__ has joined #silverstripe
1330: [09:42:26] * EasyCo quit (Quit: EasyCo)
1331: [09:45:14] <supernovah> Ah that's exactly it
1332: [09:50:50] <WillSkeggs> Hey simon_w|air, we have $member = Member::get()->filter(array('FirstName' => 'Sam', 'Surname' => 'Minnee'))->First(); but are wanting to pass a full name (first and surname) variable to the filter. Is this possible without trying to messily split our variable into first and last name?
1333: [09:52:19] <WillSkeggs> Or anyone?
1334: [09:52:28] <zippy__> WillSkeggs: Don't think so as the Name() function joins it I believe (check the code)
1335: [09:52:54] <zippy__> or, try it and see what happens, but I suspect a sql error
1336: [09:53:34] <zippy__> you could add a member function Member::getByName('Full Name') that split it for you
1337: [09:54:15] <supernovah> Where do you get a full name provided anyway?
1338: [09:54:57] * aragonne has joined #silverstripe
1339: [09:55:33] <supernovah> Because if your names exist as two columns, never combine them into one field somewhere else unless you don't need to go back to the original table
1340: [09:55:35] <zippy__> doing Member->Name will give you the joined names
1341: [09:55:51] <simon_w|air> WillSkeggs, nope, though it's pretty much list($firstName, $surName) = explode(' ', $name, 2) (after making sure that there's a space in $name)
1342: [09:56:38] <aragonne> hey guys, what CMS field can I use to manage a simple has_one relationship, e.g, MyPage has_one Media, where Media is a DataObject with some fields (e.g., YouTubeID, Image, Name)?
1343: [09:56:58] <aragonne> GridField only works with has_many, many_many, correct?
1344: [09:57:44] <WillSkeggs> We are following some old autocomplete tutorial: The relevant code is here: http://pastebin.com/8yCVp34X
1345: [09:57:50] <willr> "The build was fixed." WIN
1346: [09:58:01] <guzzlefry_dev> gah
1347: [09:58:07] <WillSkeggs> I'm sure there is a better way to do what we are doing simon_w, zippy_, supernovah.
1348: [09:58:10] <willr> aragonne also a has_one manager extension
1349: [09:58:45] <guzzlefry_dev> When I do $day->push($eventData); where both are ArrayLists, how do I access $eventData's list from the template?
1350: [09:59:39] <simon_w|air> guzzlefry_dev, <% loop $Day %><% loop %>
1351: [09:59:56] <simon_w|air> Or, if you don't like an empty loop header, <% loop $Me %>
1352: [10:00:08] <aragonne> willr: can you pls. provide an example or URL?
1353: [10:00:36] <guzzlefry_dev> awesome, thank you
1354: [10:00:55] <willr> aragonne https://github.com/simonwelsh/silverstripe-GridFieldRelationHandler/blob/master/gridfield/GridFieldHasOneRelationHandler.php
1355: [10:02:44] * OldTom is now known as keldtomasen
1356: [10:07:27] * r3v3rb has joined #silverstripe
1357: [10:07:37] <r3v3rb> morning all
1358: [10:08:15] <r3v3rb> is it possible to access another database on the same server from a silverstripe install?
1359: [10:08:30] <r3v3rb> so I have the main CMS one and then need to hit another
1360: [10:08:47] <r3v3rb> bbiam for the answer
1361: [10:08:55] <aragonne> willr: thanks, the GridFieldHasOneRelationHandler creates radio buttons to select an option, but how would a Media
1362: [10:08:55] <r3v3rb> ;)
1363: [10:09:02] * r3v3rb quit (Client Quit)
1364: [10:09:03] <aragonne> 's fields be edited?
1365: [10:11:26] * cloph_away is now known as cloph
1366: [10:11:59] <aragonne> will_r: MyPage has_one Media (and Media "has_one" MyPage, so to speak, i.e., not a MyPage has_one Media and Media has_many MyPage)
1367: [10:13:35] <simon_w|air> aragonne, have a GridFieldDetailForm and GridFieldEditButton on the GridField as well
1368: [10:20:06] * willr quit (Quit: willr)
1369: [10:24:56] * Nightjar has joined #silverstripe
1370: [10:26:07] <aragonne> simon_w|air: I tried the following, but getting errors loading CMS: http://www.sspaste.com/paste/show/51e3cd9f96e38
1371: [10:27:08] * EasyCo has joined #silverstripe
1372: [10:27:35] <guzzlefry_dev> Are HTML tables appropriate for something like a schedule?
1373: [10:28:02] <guzzlefry_dev> Like the weekly ones, where you have a row per day of week, columns for start time, event name, and so on.
1374: [10:29:12] <Nightjar> tes
1375: [10:29:13] <Nightjar> yes
1376: [10:29:14] <Nightjar> *
1377: [10:29:47] <simon_w|air> aragonne, just use GridFieldConfig_RecordEditor
1378: [10:30:25] <simon_w|air> aragonne, also, you need to pass in a SS_List (Media::get()), not just a DataObject
1379: [10:33:35] <guzzlefry_dev> simon_w|air: Do I need to do the create_field() stuff for ArrayList as well?
1380: [10:34:06] <guzzlefry_dev> err, wait
1381: [10:34:23] <WillSkeggs> Hi Guys, would anyone be able to help me with why this code, http://pastebin.com/ATrf94Bb, is producing the following error: Uncaught InvalidArgumentException: ManyManyList::add() expecting a Member object, or ID value. (The regex in the code is there because I am removing an email address that is also in the variable.)
1382: [10:34:59] <simon_w|air> WillSkeggs, the variables shouldn't be in quotes
1383: [10:35:21] <simon_w|air> Also, if there's always an email address, makes more sense to filter on that (as they're unique)
1384: [10:35:32] <simon_w|air> And the problem's caused by $member being null
1385: [10:35:38] <guzzlefry_dev> $grid->setField("LeadingDays", $leadingDays); <--- $leadingDays is an ArrayList, is this the correct way to handle it?
1386: [10:36:15] <simon_w|air> I'd just use $grid->LeadingDays = $leadingDays;, but that works
1387: [10:36:44] <guzzlefry_dev> ah, must be my template that's broken then.
1388: [10:38:11] <guzzlefry_dev> or just realizing that I want $leadingDaysArray instead :P
1389: [10:38:45] <aragonne> simon_w|air: getting closer, but the CMS now show all Media(s) to edit. I'm hoping to only edit the Media associated with the Solution
1390: [10:40:22] <simon_w|air> Nightjar, if you can figure out how I can get another ID on the tr, then http://logs.simon.geek.nz/index.php?date=2013-07-15#L88 can have :target too
1391: [10:41:59] <aragonne> simon_w|air: http://www.sspaste.com/paste/show/51e3d17357b61
1392: [10:44:23] <guzzlefry_dev> Am I correct in that <% loop %> will always iterate at least once regardless?
1393: [10:45:08] <aragonne> guzzlefry_dev: only if the SS_List you're using has at least on DataObject
1394: [10:45:35] <guzzlefry_dev> well, that's just it.
1395: [10:46:03] <guzzlefry_dev> I was typing the template variable's name incorrectly, yet I was still getting output from inside the loop block.
1396: [10:47:58] <guzzlefry_dev> unless I'm hallucinating from lack of sleep, which is probable at this point.
1397: [10:48:16] <aragonne> guzzlefry_dev: hmmmm, you can also try <% if $MyList %><% loop $MyList %> … <% end_loop %><% end_if %>
1398: [10:51:03] <Nightjar> simon_w: why not on the td?
1399: [10:51:32] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
1400: [10:51:59] <Nightjar> oh because :target will only light up that one box, derp
1401: [10:52:38] * abitran quit (Ping timeout: 240 seconds)
1402: [10:54:18] * EasyCo quit (Quit: EasyCo)
1403: [10:54:27] <Nightjar> simon_w: I've been thinking anyway... it's probably better done with JS because then one could highlight a range of lines
1404: [10:54:35] <Nightjar> onHashChange or something
1405: [11:02:32] * guzzlefry_dev quit (Quit: Ex-Chat)
1406: [11:03:25] <Nightjar> sleeps
1407: [11:03:27] * Nightjar has left #silverstripe
1408: [11:15:29] * WillSkeggs quit (Ping timeout: 250 seconds)
1409: [11:16:15] * pevjan has joined #silverstripe
1410: [11:17:08] <pevjan> I get the following error when trying to run my functional test: "Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. You probably want to define $_FILE_TO_URL_MAPPING in your _ss_environment.php as instructed on the "sake" page of the doc.silverstripe.com wiki"
1411: [11:17:17] <pevjan> I don't understand what to set the variable to
1412: [11:21:37] * keldtomasen is now known as kerosene
1413: [11:23:59] <zippy__> pevjan: see this http://doc.silverstripe.org/framework/en/topics/commandline#configuration
1414: [11:27:04] <pevjan> zippy__: I added $_FILE_TO_URL_MAPPING['/Users/username/code/sitename'] = 'http://localhost'; to that file, but I still get the same issue
1415: [11:28:27] * chillu quit (Quit: chillu)
1416: [11:44:49] * svandragt has joined #silverstripe
1417: [11:44:58] <svandragt> lo
1418: [11:46:52] * chillu has joined #silverstripe
1419: [11:47:36] <ss23> pevjan: um
1420: [11:47:43] <ss23> pevjan: It has issues if you... miss the trailing slash?
1421: [11:47:57] <ss23> I can't recall, I don't have a proper __ss_environment on hand, but it's *very* fgussy
1422: [11:50:36] <pevjan> ss23: huh, that seems to work. now I get another error
1423: [11:52:46] <ss23> Which is? :D
1424: [11:57:29] * r3v3rb has joined #silverstripe
1425: [11:58:16] <r3v3rb> hello again
1426: [11:59:50] <r3v3rb> any ideas on accessing secondary 'non' silverstripe db, in silverstripe?
1427: [12:00:05] <r3v3rb> both sql databases reside on the same server
1428: [12:01:38] <ss23> r3v3rb: Uh, yes, though I can't recall off hand
1429: [12:02:06] <r3v3rb> ss23: okay just trying to figure the feasiblity of doing this idea
1430: [12:03:29] * supernovah_ has joined #silverstripe
1431: [12:03:36] <ss23> r3v3rb: Do you want to access raw data, or use the ORM for it?
1432: [12:03:59] <r3v3rb> ss23, once accessed parse it into ORM objects for use in forms etc
1433: [12:04:10] * priithansen has joined #silverstripe
1434: [12:04:20] <ss23> r3v3rb: So, not use the ORM for the actual SQL though?
1435: [12:05:08] * supernovah quit (Ping timeout: 240 seconds)
1436: [12:05:11] * supernovah_ is now known as supernovah
1437: [12:05:20] <r3v3rb> ss23: no, grab the data, then use it to populate fields, then look up info from the database when viewing pages
1438: [12:05:34] <ss23> mmk
1439: [12:05:52] <ss23> I presume you can do it, I've seen more than one DB when the ORM is being used. I would imagine it's fine, though maybe fiddly and not documented well, r3v3rb
1440: [12:06:30] * UndefinedOffset has joined #silverstripe
1441: [12:06:43] <r3v3rb> when I say populate a field I mean offer the admin user a drop down field of all the products in the OC database, store that with the page in SS, then when a client views the page grab the current price from the OC db based on the stored product in this page
1442: [12:07:04] <r3v3rb> not too fancy and fairly straight forward I should think
1443: [12:09:53] <r3v3rb> I seem to get "Couldn't run query: DESCRIBE "SiteTree" "ClassName" Table " errors though… :)
1444: [12:10:12] <ss23> yeah, I'm assuming the ORM is coming in and being a bully
1445: [12:10:17] <r3v3rb> from MySQLDatabase.php - must mention this is an old 2.4.10 site too
1446: [12:10:28] <ss23> r3v3rb: I'm not sure how to stop that, sorry. I would recommend waiting on here and possibly making a forum post asking about it
1447: [12:10:30] <r3v3rb> ss23: it appears so
1448: [12:11:04] * r3v3rb needs a simon_w or a willr methinks!
1449: [12:14:04] <ss23> :D
1450: [12:14:19] <ss23> Pretty late here sorry, r3v3rb, doubt they'll be awake (12:15am)
1451: [12:16:03] <r3v3rb> no hurry, I can hold fire on the quote for client until I have spoken with someone more knowledgable than I
1452: [12:16:13] <ss23> Sweet :D
1453: [12:16:39] <ss23> [User Warning] ModelAsController::getNestedController() returned bad object type 'CommentablePage'
1454: [12:16:39] * howardgrigg quit (Remote host closed the connection)
1455: [12:16:42] <ss23> ;_;
1456: [12:16:44] <ss23> scary
1457: [12:17:13] <ss23> blurgh, why is that a bad object type dammit!
1458: [12:19:13] <zippy__> r3v3rb: are both databases on the same server, or different servers?
1459: [12:20:46] <r3v3rb> same server
1460: [12:20:52] <r3v3rb> makes life a lot easier
1461: [12:22:35] <zippy__> since your just fetching the price on the object you could have a function called 'CurrentPrice' which does a raw sql query and include the other database name before the table eg. 'SELECT `price` FROM `Database`.`Products` WHERE ID={$this->ID}' etc
1462: [12:22:55] <zippy__> there is probably a better way, but that is worst case
1463: [12:22:59] <r3v3rb> zippy__: let me try :)
1464: [12:23:19] <zippy__> on a page with 50 items, that will be 1 query to get products, then 50 queries to get the price on each, could get expensive
1465: [12:23:49] <r3v3rb> one item per page, no more - so in theory only one extra query per page view
1466: [12:24:13] <zippy__> sweet, shouldn't harm any kittens
1467: [12:24:23] <r3v3rb> one would hope not!
1468: [12:24:31] <zippy__> make sure that the database user has access (even just read/select) on that second db
1469: [12:24:37] <r3v3rb> aye
1470: [12:25:26] <zippy__> aye = yes or aye = what?
1471: [12:25:35] <r3v3rb> aye = yes :)
1472: [12:25:53] <zippy__> aye?
1473: [12:25:54] <zippy__> ;-)
1474: [12:26:01] <r3v3rb> as in 'aye aye captain' :D
1475: [12:28:16] <zippy__> worked ok?
1476: [12:29:06] <ss23> Urgh, my brain is not working right. $Foo = new Foo(); how do I say... Page has_many Foo, Foo has_one Page. How to set the page relationship again?
1477: [12:29:12] <ss23> This is from a controller, in a form
1478: [12:29:23] <r3v3rb> zippy__: probably, just waiting on me to format the output from the sql query
1479: [12:30:06] * pevjan quit (Remote host closed the connection)
1480: [12:32:37] * supernovah quit (Ping timeout: 276 seconds)
1481: [12:46:21] * swordsmanz has joined #silverstripe
1482: [12:46:35] <r3v3rb> zippy__: slowly slowly beating the demons
1483: [12:46:49] <zippy__> ss23: $has_one = array('MyPage' => 'MyPage'); ? and $has_many = array('Foos' => 'Foo');
1484: [12:46:53] <zippy__> ?
1485: [12:47:06] <ss23> zippy__: No no, the relationships are set there
1486: [12:47:28] <ss23> zippy__: But then, in MyPageController foo() { $foo = new Foo(); $foo->please make me have relations; }
1487: [12:47:31] <ss23> Make sense?
1488: [12:48:53] <zippy__> ss23: $foo->Page = xxxx; ?
1489: [12:49:05] <ss23> zippy__: How do you set xxxx, and you need a relation the other way, right?
1490: [12:49:17] <zippy__> ahh
1491: [12:49:20] <ss23> zippy__: Like, I'm sure it's simple, I literally am just really silly ;_;
1492: [12:49:24] <zippy__> yes you have to set it the other way
1493: [12:49:26] <ss23> I only got a few hours sleep last night and it's 1am again :<
1494: [12:49:41] <zippy__> Page->foos()->add($foo)
1495: [12:50:25] <zippy__> I think you have to add it to the has_many list - and that will setup the relations
1496: [12:50:33] <ss23> ah yep yep
1497: [12:50:35] <ss23> That makse sense
1498: [12:50:46] <ss23> Does that add the relationship on $foo->Page too?
1499: [12:52:02] <zippy__> pretty sure
1500: [12:52:02] <zippy__> been a few months since I had to do it
1501: [12:52:02] <zippy__> took, almost 1
1502: [12:53:09] <ss23> sweet :d
1503: [12:53:09] <ss23> ty
1504: [12:53:42] <zippy__> otherwise, ring simon_w :D
1505: [12:54:21] <ss23> XD
1506: [12:54:30] <ss23> I dunno if he'd go to lunch with me anymore if I woke him up
1507: [12:54:30] <ss23> :P
1508: [12:56:13] <r3v3rb> ok, how can I create a function that is called during page load on a given class in the admin section?
1509: [12:57:00] <r3v3rb> function index() or function init() only appear to be called in the controller when viewing a page
1510: [12:57:28] <zippy__> the rangi way :)
1511: [12:57:32] <zippy__> javascript / ajax :D
1512: [12:57:51] <r3v3rb> zippy ugh
1513: [12:57:57] <r3v3rb> zippy__: even*
1514: [12:58:15] <zippy__> there is probably a much better way
1515: [12:58:26] <zippy__> what are you trying to do?
1516: [12:58:28] <r3v3rb> hmm
1517: [12:59:22] <r3v3rb> obviously I can call any php outside of the class definition but cannout create any DataList/ArrayList there as I'm not in the ORM scope :(
1518: [13:00:03] <r3v3rb> if I move the code into the class then it requires a function wrapper but how do I call that function on page load in the admin model?
1519: [13:00:44] <r3v3rb> this is all for testing only, once I have the code performing correctly I'll wrapper it up into play nicely functions that return the fields correctly anyway
1520: [13:01:06] * r3v3rb thinks it may be quicker just to write the fields and functions straight out the box!
1521: [13:18:08] * zippy__ quit (Ping timeout: 259 seconds)
1522: [13:18:54] * osterlaus has joined #silverstripe
1523: [13:20:09] * osterlaus quit (Client Quit)
1524: [13:24:01] * micmania1 has joined #silverstripe
1525: [13:28:27] <r3v3rb> oh god, i'm having a bad brian day
1526: [13:28:46] <r3v3rb> dataobjectset how do I return it as an object not an array?
1527: [13:28:52] <r3v3rb> in 2.4.10
1528: [13:35:48] <r3v3rb> ignore… brian has reengagaed
1529: [13:36:01] <r3v3rb> re-engaged even*
1530: [13:40:44] * r3v3rb quit (Quit: r3v3rb)
1531: [13:46:35] * Nivery has joined #silverstripe
1532: [13:51:58] * Zauberfisch^idle is now known as Zauberfisch
1533: [14:07:20] * zenmonkey has joined #silverstripe
1534: [14:08:41] <zenmonkey> I'm having trouble deploying zepto in the front end on SS3.1, the default implementation script throws and End of File error when run through the template parser
1535: [14:28:13] * wmk has joined #silverstripe
1536: [14:43:59] * Nivery quit (Quit: Nivery)
1537: [14:44:18] * UndefinedOffset quit (Quit: Leaving.)
1538: [14:51:58] * UndefinedOffset has joined #silverstripe
1539: [15:01:00] * AlphaCactus quit (Remote host closed the connection)
1540: [15:18:24] * wmk quit (Quit: nice to meet you ;))
1541: [15:21:15] * zenmonkey quit (Quit: Leaving)
1542: [16:02:27] * guzzlefry_dev has joined #silverstripe
1543: [16:12:54] * chillu quit (Quit: chillu)
1544: [16:17:32] * howardgrigg has joined #silverstripe
1545: [16:21:54] * howardgrigg quit (Ping timeout: 240 seconds)
1546: [16:22:04] * priithansen_ has joined #silverstripe
1547: [16:22:25] * priithansen quit (Ping timeout: 246 seconds)
1548: [16:22:26] * priithansen_ is now known as priithansen
1549: [16:30:46] * pevjan has joined #silverstripe
1550: [16:31:57] * Guest59281 quit ()
1551: [16:34:01] * lobarvaz quit (Remote host closed the connection)
1552: [16:34:12] * Pigeon has joined #silverstripe
1553: [16:34:36] * Pigeon is now known as Guest33706
1554: [16:35:43] * pevjan quit (Ping timeout: 276 seconds)
1555: [16:44:10] * abitran has joined #silverstripe
1556: [17:09:58] * micmania1 quit (Quit: Leaving)
1557: [17:22:30] <guzzlefry_dev> Does SS automatically include all _config.php files in the top level directories?
1558: [17:30:59] <guzzlefry_dev> ah, I'm guessing not.
1559: [17:32:23] * gelignite has joined #silverstripe
1560: [17:43:35] * chillu has joined #silverstripe
1561: [17:46:38] * AlphaCactus has joined #silverstripe
1562: [18:04:32] * micmania1 has joined #silverstripe
1563: [18:13:13] * UndefinedOffset quit (Quit: Leaving.)
1564: [18:17:58] * howardgrigg has joined #silverstripe
1565: [18:18:25] * UndefinedOffset has joined #silverstripe
1566: [18:22:25] * howardgrigg quit (Ping timeout: 248 seconds)
1567: [18:25:14] * chillu quit (Quit: chillu)
1568: [18:33:26] * micmania1 quit (Ping timeout: 240 seconds)
1569: [18:47:14] * rved has joined #silverstripe
1570: [18:47:35] <rved> Does anyone know when the new domains can be registered like mydomain.app ?
1571: [18:49:45] * UndefinedOffset quit (Quit: Leaving.)
1572: [18:59:43] * UndefinedOffset has joined #silverstripe
1573: [19:01:18] * SightUnseen has joined #silverstripe
1574: [19:05:09] * chillu has joined #silverstripe
1575: [19:06:52] * micmania1 has joined #silverstripe
1576: [19:16:29] * SightUnseen has left #silverstripe
1577: [19:23:01] * Guest51295 quit (Changing host)
1578: [19:23:01] * Guest51295 has joined #silverstripe
1579: [19:23:04] * Guest51295 is now known as onre
1580: [19:24:18] * Motoservo quit (Ping timeout: 245 seconds)
1581: [19:24:22] * Motoservo_ has joined #silverstripe
1582: [19:27:50] * Zauberfisch^away has joined #silverstripe
1583: [19:30:48] * joelpittet has joined #silverstripe
1584: [19:33:14] * r3v3rb has joined #silverstripe
1585: [19:35:41] <r3v3rb> hello
1586: [19:37:35] <r3v3rb> so I have an array of data from a DB::query on a different database on the server - how can I send that data through the ->map() function as I keep getting non-object errors - what object should I use ? this is in 2.4.10 btw
1587: [19:40:05] <UndefinedOffset> couldn't you just pass it into arraydata? http://api.silverstripe.org/2.4/class-ArrayData.html#___construct
1588: [19:40:14] <UndefinedOffset> i assume your trying to use it in a template?
1589: [19:40:32] <r3v3rb> UndefinedOffset: no in the class itself for a dropdown menu
1590: [19:40:38] <UndefinedOffset> ah... hmm
1591: [19:41:03] <r3v3rb> even when sending it via ArrayData($array) I get the -> map error on non-object
1592: [19:41:43] <UndefinedOffset> what is DB::query() returning? I'm thinking its likely false or null
1593: [19:41:47] <UndefinedOffset> aka not an object
1594: [19:41:52] <r3v3rb> it returns an array
1595: [19:41:56] <r3v3rb> not an object
1596: [19:42:03] <r3v3rb> and the array is populated
1597: [19:42:48] <r3v3rb> strange
1598: [19:43:20] <UndefinedOffset> well you may just need to iterate that result set and make a map array out of that
1599: [19:43:29] <AlphaCactus> it returns an array not an SS_Query object?
1600: [19:43:33] <r3v3rb> boogers!
1601: [19:43:43] <UndefinedOffset> thats what i was thinking is odd
1602: [19:43:44] <r3v3rb> AlphaCactus: it appears to be yes
1603: [19:43:53] <UndefinedOffset> it should return an ss_query object 0_o
1604: [19:44:01] <AlphaCactus> 3.x?
1605: [19:44:09] <UndefinedOffset> though it depends on the data provider i guess
1606: [19:44:15] <r3v3rb> AlphaCactus: 2.4.10
1607: [19:44:21] <AlphaCactus> oh
1608: [19:44:58] <UndefinedOffset> even still, should be an SS_Query i think though it has been a while since i've dug that deep in 2.4
1609: [19:46:28] <r3v3rb> mebbe, I am doing it all wrong...
1610: [19:47:45] <r3v3rb> http://www.sspaste.com/paste/show/51e4515196cbe <- very simple grab all data and populate as dropdown
1611: [19:48:37] <r3v3rb> ->map always bugs out with the error - yet I thought it was meant to return a ViewableData object?
1612: [19:49:42] <UndefinedOffset> in 3.0 it returns an SS_Map instance, but in 2.4 it returns an array with the keys being the first param, and the second param being the values http://api.silverstripe.org/2.4/class-DataObjectSet.html#_map
1613: [19:50:25] <r3v3rb> yup, tried it as a DOS, using ->push on each item in the result set still no joy
1614: [19:50:44] <r3v3rb> http://www.sspaste.com/paste/show/51e4515196cbe now shows the returned data from FireBug
1615: [19:50:50] <UndefinedOffset> my suggestion just iterate and build the map manually
1616: [19:50:51] <r3v3rb> and FirePHP
1617: [19:51:13] <r3v3rb> UndefinedOffset: i enjoy the pain though :)
1618: [19:51:17] <UndefinedOffset> :P
1619: [20:01:00] * Zauberfisch^away quit (Quit: Leaving...)
1620: [20:06:27] <r3v3rb> pants - going nowhere...
1621: [20:06:54] <r3v3rb> why the hell is ArrayData being returned as that and not an object...
1622: [20:07:17] <r3v3rb> I thought the whole point of new ArrayData was to return an object
1623: [20:12:19] <simon_w> r3v3rb, you're on 2.4, right?
1624: [20:12:37] <r3v3rb> simon_w: yes I am, its an old site
1625: [20:14:38] <simon_w> Well, for ->map() to work, just return $result
1626: [20:15:01] <r3v3rb> simon_w: tried and it fails :(
1627: [20:15:10] <r3v3rb> non-object rears its ugly head
1628: [20:15:20] <r3v3rb> its very confusing
1629: [20:16:05] <simon_w> Then there's something wrong with your Database::query() method. It's always supposed to return a SS_Query object
1630: [20:17:37] * Peavers has joined #silverstripe
1631: [20:18:25] * howardgrigg has joined #silverstripe
1632: [20:19:56] <r3v3rb> simon_w: the DB::query is returning an ArrayData object
1633: [20:20:24] * r3v3rb doesn't understand… :'(
1634: [20:20:42] <simon_w> It looks more like your productList() method is
1635: [20:22:12] * pex has joined #silverstripe
1636: [20:22:53] * howardgrigg quit (Ping timeout: 252 seconds)
1637: [20:23:14] <r3v3rb> hmm, well, even if I just return result I get an ArrayData error is non-object simon_w
1638: [20:23:27] <r3v3rb> without tranforming using new ArrayData()
1639: [20:23:49] <simon_w> ArrayData is non-object? You're not making much sense
1640: [20:23:58] <r3v3rb> lol, I know!
1641: [20:25:22] <Peavers> Got denied an Academic license by jetbrains =(
1642: [20:25:25] <Peavers> was worth a try...
1643: [20:25:27] <r3v3rb> agh, my brian hurts - I moved the productList call out of the new DropDownField and assigned it to a variable then hit that with ->map in the new DropDownField and it works fine
1644: [20:26:14] <r3v3rb> trying to call the function and ->map the result in the constructor of the dropdown caused the issue it seemed
1645: [20:27:19] <r3v3rb> maybe not, maybe I just need to go afk for a while :P
1646: [20:31:43] * HCU has joined #silverstripe
1647: [20:32:49] <HCU> Hi, I'm having some issues with all of the pages on my website re-directing. Currently, the homepage cannot be accessed through the usual url
1648: [20:33:03] <AlphaCactus> Is it possible to Debug::show something that gives the 'Nesting level too deep - recursive dependency' error.
1649: [20:33:57] <HCU> website is www.healthychilduganda.org, but type in healthychilduganda/healthy-child-uganda/ works
1650: [20:33:57] * pex quit (Read error: Connection reset by peer)
1651: [20:34:40] <Peavers> I can access it?
1652: [20:35:14] <simon_w> AlphaCactus, if there's a recursive reference, yes
1653: [20:35:38] <AlphaCactus> simon_w: how do I tell it to not recurse
1654: [20:35:42] * DigNZ has joined #silverstripe
1655: [20:35:43] * DigNZ quit (Remote host closed the connection)
1656: [20:35:57] * DigNZ has joined #silverstripe
1657: [20:36:43] <simon_w> AlphaCactus, the only things that really recurses is an ArrayList, so don't have an ArrayList contained in itself, or in an object it holds
1658: [20:36:53] <simon_w> (same can happen with ArrayData)
1659: [20:37:26] <AlphaCactus> i'm just debugshowing the results of ModelAdmin::getSearchContext
1660: [20:38:57] * pex has joined #silverstripe
1661: [20:39:33] * HCU quit (Quit: Page closed)
1662: [20:40:40] <simon_w> Oh, so it's just in the output? You're not getting Xdebug's "Nesting level too deep" fatal error?
1663: [20:42:05] <AlphaCactus> yes its one of those orange PHP errors
1664: [20:42:15] * rved quit (Quit: rved)
1665: [20:43:07] <simon_w> Huh, Xdebug's supposed to override var_export() to handle recursive dumps. Maybe it just does it for var_dump()
1666: [20:43:14] <simon_w> Anyway, switch to var_dump() :p
1667: [20:43:56] <AlphaCactus> is xdebug built in to php?
1668: [20:44:23] <AlphaCactus> cuz I sure haven't done anything to install or configure it
1669: [20:45:39] <simon_w> Nope
1670: [20:46:52] * Pyromanik has joined #silverstripe
1671: [20:49:00] <r3v3rb> simon_w: thanks for the nudge - time to sleep
1672: [20:49:04] <Pyromanik> oh of course
1673: [20:49:15] <r3v3rb> Pyromanik: ?
1674: [20:49:17] <Pyromanik> proxy_buffer_size vs fastcgi_buffer_size
1675: [20:49:47] <Pyromanik> depending on if you're running nginx as a reverse proxy or as the web server with php_fpm
1676: [20:51:23] * rved has joined #silverstripe
1677: [20:52:04] * UndefinedOffset quit (Quit: Leaving.)
1678: [20:53:25] <Pyromanik> proxy_buffer_size 128k;
1679: [20:53:26] <Pyromanik> proxy_buffers 4 256k;
1680: [20:53:26] <Pyromanik> proxy_busy_buffers_size 256k;
1681: [20:53:34] <Pyromanik> problem solved (add to http directive)
1682: [20:54:04] <r3v3rb> ohhhhhh, that… lol
1683: [20:54:12] <r3v3rb> having then I see
1684: [20:54:22] <r3v3rb> but I got to get some sleep :
1685: [20:54:25] <r3v3rb> :)
1686: [20:54:29] <r3v3rb> catch you later
1687: [20:54:41] * r3v3rb quit (Quit: r3v3rb)
1688: [21:01:37] * rved quit (Quit: rved)
1689: [21:15:17] * metanat has joined #silverstripe
1690: [21:15:29] <Peavers> whoa sublime is forcing me to upgrade
1691: [21:17:35] * aragonne quit (Quit: aragonne)
1692: [21:24:07] * simon_w quit (Ping timeout: 246 seconds)
1693: [21:24:20] * zippy__ has joined #silverstripe
1694: [21:33:47] * simon_w has joined #silverstripe
1695: [21:33:53] <zippy__> Morning
1696: [21:34:11] <Pyromanik> g'morn'n
1697: [21:34:17] <Pyromanik> '
1698: [21:35:44] <zippy__> g'm;n
1699: [21:36:40] * simon_w quit (Client Quit)
1700: [21:39:39] <zippy__> dang it's cold today
1701: [21:45:30] <Peavers> Pyromanik, do you use ngx-pagespeed on your server?
1702: [21:48:01] <Pyromanik> Peavers: I don't even
1703: [21:48:20] <Pyromanik> ???
1704: [21:48:38] <Peavers> https://github.com/pagespeed/ngx_pagespeed
1705: [21:49:01] <Pyromanik> signs point to no
1706: [21:51:10] <Pyromanik> hmm, never heard of Tengine before
1707: [21:53:17] <Pyromanik> Chinese nginx fork
1708: [21:53:49] * EasyCo has joined #silverstripe
1709: [21:54:06] <zippy__> man...
1710: [21:54:22] * geekdenz has joined #silverstripe
1711: [21:54:32] <zippy__> doing frontend work sometimes crushes my soal
1712: [21:54:37] <zippy__> !
1713: [21:54:43] <zippy__> and causes me to create terrible typos
1714: [21:57:09] <Pyromanik> Peavers: sounds like snake oil to me :<
1715: [21:57:31] <Peavers> I've just recomplied my server with it, pretty big improvement
1716: [21:57:36] <Peavers> would recommend
1717: [21:57:39] <Pyromanik> interesting
1718: [21:57:43] * pevjan has joined #silverstripe
1719: [21:57:50] <geekdenz> Hi, Anybody here know how to use the Director::test() method? I've defined a test class like this:
1720: [21:57:51] <geekdenz> class HomePageTest extends SapphireTest {
1721: [21:57:51] <geekdenz> static $fixture_file = 'HomePageTest.yml';
1722: [21:57:51] <geekdenz> * functional test: see if js are there
1723: [21:57:51] <geekdenz> */
1724: [21:57:54] <geekdenz> public function testJsThere() {
1725: [21:57:56] <geekdenz> $response = Director::test('home/');
1726: [21:57:58] <geekdenz> $body = $response->getBody();
1727: [21:58:00] <geekdenz> echo "\n\n". $body ."\n\n";
1728: [21:58:02] <geekdenz> $jss = array(
1729: [21:58:03] <Peavers> whoa whoa whoa
1730: [21:58:04] <Peavers> stop
1731: [21:58:05] <geekdenz> /'<script src="themes/aep-bootstrap/js/jquery.js"></script>',
1732: [21:58:05] <Peavers> dude
1733: [21:58:05] <Pyromanik> stop sop
1734: [21:58:07] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-transition.js"></script>',
1735: [21:58:08] <Pyromanik> STAHP
1736: [21:58:09] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-alert.js"></script>',
1737: [21:58:11] <geekdenz> '<script src="themes/aep-bootstrap/js/bootstrap-modal.js"></script>',
1738: [21:58:13] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-dropdown.js"></script>',
1739: [21:58:14] <Peavers> omg
1740: [21:58:16] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-scrollspy.js"></script>',
1741: [21:58:17] <Pyromanik> simon_w|air: kick
1742: [21:58:18] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-tab.js"></script>',
1743: [21:58:19] <Pyromanik> kick!
1744: [21:58:20] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-tooltip.js"></script>',
1745: [21:58:22] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-popover.js"></script>',
1746: [21:58:24] <Peavers> blocked
1747: [21:58:24] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-button.js"></script>',
1748: [21:58:27] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-collapse.js"></script>',
1749: [21:58:29] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-carousel.js"></script>',
1750: [21:58:31] <geekdenz> /'<script src="themes/aep-bootstrap/js/bootstrap-typeahead.js"></script>',
1751: [21:58:33] <geekdenz> /'<script src="themes/aep-bootstrap/js/collapse-button.js"></script>',
1752: [21:58:35] <geekdenz> );
1753: [21:58:38] <geekdenz> foreach ($jss as $js) {
1754: [21:58:40] <geekdenz> $this->assertTrue(stripos($body, $js) !== false);
1755: [21:58:40] <Pyromanik> STAHP
1756: [21:58:42] <geekdenz> }
1757: [21:58:44] <Pyromanik> YOU FOOL
1758: [21:58:44] <geekdenz> }
1759: [21:58:45] <Pyromanik> STOP
1760: [21:58:46] <geekdenz> }
1761: [21:58:49] <geekdenz> and a fixture like this:
1762: [21:58:49] <Peavers> Pyromanik, you could manually make all the changes it does but yeah nah..
1763: [21:58:51] <geekdenz> HomePage:
1764: [21:58:53] <geekdenz> home:
1765: [21:58:53] <Pyromanik> WE HATE YOU ALREADY, NOT GOING TO ANSWER YOUR QUESTION
1766: [21:58:55] <geekdenz> Title: Home Page 12
1767: [21:58:57] <geekdenz> Content: This is the content of home
1768: [21:59:00] <geekdenz> URLSegment: home
1769: [21:59:20] <geekdenz> me?
1770: [21:59:29] <Pyromanik> yes, F off.
1771: [21:59:42] <geekdenz> why? i just asked a question
1772: [22:00:14] <Pyromanik> no, you came in here and spammed the shit out of us
1773: [22:00:20] <Pyromanik> not cool
1774: [22:00:23] <Pyromanik> NOT cool.
1775: [22:00:37] <geekdenz> if you read you would see that it is code
1776: [22:00:45] <Peavers> dude, doesn't matter
1777: [22:00:48] <Peavers> use a paste service
1778: [22:00:53] <zippy__> yes but you can't just drop a fat wad of code in here
1779: [22:00:58] <zippy__> use a paste bin or someting
1780: [22:01:27] <geekdenz> ok, sorry, thought it wouldn't be too hard to read in here
1781: [22:01:28] <zippy__> eg http://pastebin.com/
1782: [22:02:11] <Pyromanik> geekdenz: wrong.
1783: [22:02:18] <Pyromanik> this is not how it's done, ever, anywhere.
1784: [22:02:35] <Pyromanik> it's almost the rudest thing someone can do in IRC.
1785: [22:02:56] <Pyromanik> I mean if it was 5 lines we'd probably just let you away with it.
1786: [22:03:05] <geekdenz> well, i wasn't the one using rude language
1787: [22:03:49] <Peavers> Pyromanik, its also my understanding ngx_pagespeed is written by Google
1788: [22:03:54] <Pyromanik> well you're lucky none of the ops are active, you'd just have been kicked.
1789: [22:04:10] <Pyromanik> Peavers: dunno, could be. Tengine is written by alibaba group
1790: [22:04:36] <Peavers> X-Page-Speed:1.6.29.3-3270
1791: [22:04:38] <zippy__> geekdenz: Why not start again, put the code on a paste service and ask the question from the start
1792: [22:04:39] <Peavers> dat header info
1793: [22:04:53] <Peavers> gets my socks off
1794: [22:05:16] <Pyromanik> also geekdenz, you didn't actually ask a question, you just stated you've made a class and then began to paste it.
1795: [22:05:25] <geekdenz> sure, this is my first question here on IRC, so I hope you can be a bit lenient
1796: [22:05:26] <Peavers> lol
1797: [22:05:27] <Pyromanik> if you have a question, please, do ask it.
1798: [22:05:35] <Pyromanik> geekdenz: hmm
1799: [22:05:37] <Pyromanik> well
1800: [22:05:52] <geekdenz> using paste bin now...
1801: [22:06:42] <Peavers> ipboo is now a spam site?
1802: [22:07:59] * gelignite quit (Quit: http://bit.ly/nkczDT)
1803: [22:08:04] <Pyromanik> generally the etiquette goes something like: 1) never paste huge blocks. 2) ask a question, don't ask if you can, or if someone knows something. People don't know if they can help until you tell them your problem.
1804: [22:08:11] <Pyromanik> geekdenz: ^
1805: [22:09:17] <Pyromanik> also, don't ask for advise then argue to the contrary. A debate is fun, but simply rebuffing someone who is trying to help is a bit rude.
1806: [22:09:45] <Pyromanik> so, if you paste your class to pastebin or sspaste.com or something, then ask a question and give us the link someone might be able to help you.
1807: [22:10:00] <Pyromanik> don't forget to specify which version of SilverStripe you're using.
1808: [22:10:03] <zippy__> sspaste.com - that is what I was trying to find!
1809: [22:10:06] <Pyromanik> looks like 2.4 to me.
1810: [22:10:29] * simon_w has joined #silverstripe
1811: [22:10:34] <zippy__> Looks like invalid code to me. Each line starts with geekdenz:
1812: [22:10:36] <zippy__> :D
1813: [22:10:51] <Peavers> lol
1814: [22:11:04] <geekdenz> http://pastebin.com/JAKxXsE9
1815: [22:11:49] <Guest33706> geekdenz: did you flush?
1816: [22:12:31] <geekdenz> The question should be apparent from the pasted code.
1817: [22:12:31] <geekdenz> I'll repeat it here anyway:
1818: [22:12:31] <geekdenz> How does Director::test($url) work. Not like I expected. My goal is to write functional tests.
1819: [22:12:50] <geekdenz> or to lear how to
1820: [22:12:57] * pex quit (Quit: pex)
1821: [22:13:19] <Guest33706> geekdenz: extend FunctionalTest then
1822: [22:13:22] <Guest33706> rather than SapphireTest
1823: [22:13:37] * Guest33706 is now known as PigeonFriend
1824: [22:13:47] * PigeonFriend stupid irc
1825: [22:13:57] <zippy__> http://doc.silverstripe.org/framework/en/topics/testing/create-functional-test
1826: [22:14:29] <geekdenz> yes i read that page
1827: [22:14:58] <geekdenz> but the Director::test function seems to not be aware of the fixture
1828: [22:15:12] <geekdenz> I wouldn't ask here without reading
1829: [22:15:43] <PigeonFriend> Where is the fixture file located and where is the test located?
1830: [22:16:13] <geekdenz> same directory: mysite/tests
1831: [22:16:35] <geekdenz> HomePageTest.php, HomePageTest.yml
1832: [22:17:47] <geekdenz> the unit tests that i have in the same file (but are not in the paste to reduce noise) work fine
1833: [22:18:51] * howardgrigg has joined #silverstripe
1834: [22:21:24] * pevjan quit (Remote host closed the connection)
1835: [22:22:46] * howardgrigg quit (Ping timeout: 240 seconds)
1836: [22:24:56] <geekdenz> updated the pastebin to include the succeeding tests
1837: [22:25:00] <simon_w> geekdenz, have a look at one of the Page-based FunctionalTests (like ErrorPageTest)
1838: [22:25:05] <simon_w> You need to publish the page
1839: [22:25:19] <geekdenz> AH
1840: [22:28:06] <zippy__> It rips my undies how the git-svn is a bit hit and miss with cleaning up empty folders
1841: [22:28:16] <geekdenz> can i publish it in the yaml file or with a method on the Page object?
1842: [22:29:07] <simon_w> geekdenz, https://github.com/silverstripe/silverstripe-cms/blob/3.1/tests/model/ErrorPageTest.php#L37-L42
1843: [22:30:02] * PigeonFriend quit ()
1844: [22:31:03] <geekdenz> sweet! genious, thanks that worked
1845: [22:31:19] <geekdenz> thanks for the help!
1846: [22:31:22] <Pyromanik> see, much more helpful :)
1847: [22:31:47] <Pyromanik> glad you found your answer.
1848: [22:32:15] <geekdenz> sorry about the long paste in here. wasn't thinking about it too much... I'm a late night person...
1849: [22:34:06] <Pyromanik> it happens from time to time. I'm surprised you weren't kicked by freenode for flooding.
1850: [22:34:41] <Pyromanik> sorry for coming across a bit abruptly, but we got there in the end.
1851: [22:35:24] <Pyromanik> with pasted code like that, not all clients use monospace fonts either, so it doesn't always format nice.
1852: [22:38:50] <simon_w> Pyromanik, just kick someone if they start flooding :p
1853: [22:43:10] * AlphaCactus floods
1854: [22:45:48] * simon_w kicks
1855: [22:48:03] <Pyromanik> simon_w: but how?
1856: [22:48:13] <simon_w> Pyromanik, /kick
1857: [22:48:14] <Pyromanik> I don't @
1858: [22:48:18] <simon_w> I do!
1859: [22:48:22] <Pyromanik> but I don't :<
1860: [22:48:26] <simon_w> Oh right, I was booting
1861: [22:48:28] <Pyromanik> so I cannot kick someone
1862: [22:48:34] <Pyromanik> if they start flooding
1863: [22:48:55] * ARNHOE has joined #silverstripe
1864: [22:49:01] <Pyromanik> unless you +o me
1865: [22:50:01] <simon_w> But if I can +o you, I might as well kick myself
1866: [22:51:06] <AlphaCactus> lol
1867: [22:51:17] <Pyromanik> simon_w: but you don't flood?
1868: [22:51:25] <Pyromanik> also, https://github.com/silverstripe/silverstripe-framework/blob/3.1/view/SSTemplateParser.php is autogenn'd right?
1869: [22:51:39] <simon_w> Yes, it's autogened
1870: [22:51:43] <ss23> What's this about +o?!
1871: [22:52:06] <ss23> Help, composer has a reference to blog module, says composer install went fine, but no blog module
1872: [22:52:08] <Pyromanik> derp, comment right at top of file. Silly Pyromanik
1873: [22:52:09] <ss23> :<
1874: [22:52:18] <Pyromanik> ss23: lol composer
1875: [22:52:22] <Pyromanik> KEEP YOUR COMPOSURE
1876: [22:52:27] <Pyromanik> don't panic
1877: [22:52:29] <ss23> ;_;
1878: [22:52:32] <Pyromanik> keep calm and blog on.
1879: [22:53:23] * ARNHOE quit (Remote host closed the connection)
1880: [22:53:37] <ss23> :<
1881: [22:53:40] * ss23 blogless
1882: [22:53:41] <ss23> ;_;
1883: [22:53:50] <Pyromanik> is there a map that describes the archtecture of SS?
1884: [22:54:02] <Pyromanik> all these interfaces providing stuffs gets a bit... yeah.
1885: [22:54:03] <ss23> You mean, like... documentation
1886: [22:54:05] <ss23> :D
1887: [22:54:06] <ss23> good luck
1888: [22:54:07] <ss23> :3
1889: [22:54:13] <Pyromanik> I'd like to set that straight in my head.
1890: [22:54:22] <Pyromanik> ss23: no, like a picture. A diagram. A graph.
1891: [22:54:34] <Pyromanik> UML even.
1892: [22:54:40] <zippy__> yes, it's in simon_w's head
1893: [22:54:46] <Pyromanik> although perhaps more simplified.
1894: [22:55:34] <Pyromanik> where is the lexer?
1895: [22:55:40] <ss23> lol
1896: [22:56:02] <spronk> some UML would be super good
1897: [22:56:08] <spronk> a few package and class diagrams
1898: [22:56:16] <Pyromanik> I see lots of references to the Parser, but no lexer :<
1899: [22:56:18] <ss23> ya bloody dreaming mate!
1900: [22:56:18] <spronk> and a few sequence diagrams for controller / routes / templates
1901: [22:56:29] * joelpitt_ has joined #silverstripe
1902: [22:56:30] <Pyromanik> sequence diagrams?
1903: [22:56:39] <spronk> UML sequence diagrams
1904: [22:56:58] <spronk> http://en.wikipedia.org/wiki/Sequence_diagram
1905: [22:57:09] <spronk> handy for figuring out flows and interactions
1906: [22:57:27] <ss23> I'm still lost, composer thinks it's installed I think
1907: [22:57:37] <Pyromanik> sequence diagram looks confusing.
1908: [22:57:41] <Pyromanik> I like flow chart.
1909: [22:58:22] <spronk> seq better at showing hierarchy
1910: [22:58:25] <spronk> but in any case
1911: [22:58:30] <Pyromanik> true
1912: [22:58:31] <spronk> *something* would be good
1913: [22:58:33] <Pyromanik> but I like use case.
1914: [22:58:38] <spronk> took me ages to figure out how the director worked
1915: [22:58:39] <Pyromanik> I find it easier to follow
1916: [22:58:45] <Pyromanik> Director?
1917: [22:58:48] <Pyromanik> It does some magicy
1918: [22:58:49] <spronk> mm
1919: [22:58:51] <Pyromanik> and then boom, website.
1920: [22:58:56] <spronk> hmm
1921: [22:59:07] <Pyromanik> mostly it just matches rules to controllers, so far as I'm aware
1922: [22:59:10] <spronk> might be able to use a tool to generate some UML from the esisting code..
1923: [22:59:53] <Pyromanik> I like this book.
1924: [22:59:54] <Pyromanik> http://oreilly.com/catalog/hfobjects/chapter/ch03.pdf
1925: [23:00:01] * joelpittet quit (Ping timeout: 246 seconds)
1926: [23:00:36] <Pyromanik> hmm, it doesn't have the uml usecase diagram I was thinking of
1927: [23:01:22] <Pyromanik> in fact, both of these books are good times. http://stackoverflow.com/questions/6748409/head-first-design-patterns-vs-head-first-object-oriented-analysis-and-design
1928: [23:02:21] <spronk> hmm
1929: [23:02:23] <spronk> HFDP was good
1930: [23:02:28] <spronk> i always preferred the GoF book though
1931: [23:03:42] <Pyromanik> DP?
1932: [23:03:43] <Pyromanik> ROFL
1933: [23:03:56] <Pyromanik> Game of Frones?
1934: [23:04:27] * SightUnseen has joined #silverstripe
1935: [23:04:28] * SightUnseen has left #silverstripe
1936: [23:07:18] <Pyromanik> spronk: ?
1937: [23:07:23] <spronk> lulz
1938: [23:07:26] <spronk> gang of four
1939: [23:07:38] <Pyromanik> oh right yeah
1940: [23:07:52] <Pyromanik> I just googled GoF and first result "design patterns"
1941: [23:07:53] <Pyromanik> lol
1942: [23:08:04] <spronk> :P
1943: [23:08:14] <Pyromanik> wikipedia
1944: [23:09:01] <Pyromanik> http://programmers.stackexchange.com/questions/12773/is-the-gof-book-still-the-one-to-read
1945: [23:09:11] <Pyromanik> first answer: I recommend reading the Head First book first, as it does a better job of explaining why design patterns are needed. After that, you can use the GoF book for examples and as a reference.
1946: [23:09:15] <Pyromanik> :D
1947: [23:13:20] <simon_w> Pfft, design patterns
1948: [23:13:46] <simon_w> So much wankery in almost any discussion on them
1949: [23:14:03] <simon_w> Kinda like Agile
1950: [23:16:44] <EasyCo> Extreme programming!!!!!
1951: [23:17:09] <zippy__> Waterfall is the best method..
1952: [23:17:47] <EasyCo> And you can go over it in a barrel, literally an figuratively.
1953: [23:18:03] <simon_w> Amusingly, any industry version of waterfall is unlikely to actually follow it
1954: [23:18:25] <simon_w> You're supposed to revisit previous steps as necessary
1955: [23:18:33] * metanat1 has joined #silverstripe
1956: [23:18:38] * metanat1 quit (Client Quit)
1957: [23:21:05] * metanat quit (Read error: Operation timed out)
1958: [23:22:28] <spronk> yeah..........
1959: [23:22:48] <spronk> larger software firms taht still use a process that amounts to waterfall have a tendancy to fail badly
1960: [23:25:28] <Pyromanik> waterfall'n it erry dae.
1961: [23:26:38] <simon_w> And then Agile is all about people over process, until you use it. Then it's all about the process, screw the people
1962: [23:27:55] <spronk> that really depends on what you're doing
1963: [23:28:05] <spronk> "SCRUM" is a load of pyramid scheme bullshit
1964: [23:28:48] <spronk> but take the key ideals of agile - i.e. simple requirements gathering, involving stakeholders, release early+often, iterate and refactor heavily
1965: [23:28:49] <spronk> = win
1966: [23:30:35] <simon_w> Well, sometimes
1967: [23:31:11] <simon_w> Sometimes it makes a lot more sense to flesh out what you want for a week or so, actually have a plan and then build it
1968: [23:31:19] * howardgrigg has joined #silverstripe
1969: [23:31:27] * chillu quit (Quit: chillu)
1970: [23:32:23] <spronk> yeah, but realistically 1week of requirements gathering and planning is still well within what you'd call an agile timeframe :p
1971: [23:33:43] <Pyromanik> well one could say that the stages are projects ('goals') in themselves
1972: [23:33:54] <Pyromanik> release your plan early + often.
1973: [23:34:01] <Pyromanik> iterate and refactor.
1974: [23:34:03] <Pyromanik> then build
1975: [23:34:05] <Pyromanik> same deal
1976: [23:34:11] <Pyromanik> release early+often, refactor, etc.
1977: [23:34:27] <simon_w> Except, when you have a decent plan, you usually don't release early or do much refactoring
1978: [23:35:28] <spronk> until you get to projects that you can't realistically plan, because of too many unknowns, or, you meet requirements that are in flux
1979: [23:35:33] * cam_ has joined #silverstripe
1980: [23:35:41] <spronk> which is precisely where agile is meant to help
1981: [23:35:59] * cam_ is now known as Guest45287
1982: [23:36:35] <simon_w> Now, if only people didn't always use it
1983: [23:36:41] <Guest45287> question: in the CMS when adding a TextField into the getCMSFields what is the best practice approach to perform a min length validation on some entered text?
1984: [23:38:41] * Guest45287 is now known as camfindlay
1985: [23:42:54] <Peavers> Pyromanik, if I delete the .htaccess file form the silverstripe dir, and add if (!-f $request_filename) { ... } will that blow stuff up or just work?
1986: [23:43:08] <Peavers> add to my serverblock I should say
1987: [23:43:48] <Peavers> ehh whadda you know. Gonna do it anyway.
1988: [23:44:36] <Peavers> Right, it blew my site up.
1989: [23:45:40] <Peavers> does anyone know the proper nginx rewrite rules?
1990: [23:56:23] <Pyromanik> Peavers: what?
1991: [23:56:28] <Peavers> I dunno dude
1992: [23:56:31] <Peavers> I just don't know.
1993: [23:56:56] <Pyromanik> neither do I.
1994: [23:57:20] <Pyromanik> oh, rewriting nginx
1995: [23:57:21] <Pyromanik> sure
1996: [23:57:26] <Pyromanik> I have some of them
1997: [23:57:28] <Pyromanik> search logs
1998: [23:57:31] <Pyromanik> nginx pyromanik
1999: [23:57:43] <Peavers> I've stuffed my serverblocks anyway
2000: [23:57:56] <terryapodaca> How do i add a leftside menu item in the CMS?
2001: [23:57:56] <Pyromanik> hmm
2002: [23:58:00] <Pyromanik> search try_files
2003: [23:58:06] * Jayden90 has joined #silverstripe
2004: [23:58:16] <Pyromanik> terryapodaca: subclass CMSMain and do some things.
2005: [23:58:35] <Pyromanik> see how ModelAdmin does it :>
2006: [23:58:53] <terryapodaca> thanks, i'll have a look
2007: [23:59:02] <Pyromanik> oh, oh, simon_w I thought of a thing!
2008: [23:59:17] <Pyromanik> search results are currently random as, can we have eg. 'order by date'?
2009: [23:59:51] <simon_w> They're not random. They're sorted on rank :p

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