#silverstripe IRC Log

IRC log for 20 February 2013

All timestamps are in UTC.

1: [00:01:00] <ec8or> Colin[pi]: i think you will just have to load it based on the class name
2: [00:02:00] * Andi_de_ has joined #silverstripe
3: [00:03:00] <novaweb> yep
4: [00:03:00] <Pyromanik> novaweb: what IS that?
5: [00:03:00] <Pyromanik> skintax high lites?
6: [00:03:00] <novaweb> pyro
7: [00:04:00] <novaweb> was used a lot by SS developers when I worked there.
8: [00:04:00] <Pyromanik> set it to magicface php and ASP
9: [00:04:00] <Pyromanik> yuck
10: [00:04:00] <Pyromanik> I coke zero'd
11: [00:04:00] <Pyromanik> I score zero on the hero list for such a stupid decision
12: [00:04:00] <Pyromanik> solid as water
13: [00:04:00] <novaweb> solid as
14: [00:04:00] <novaweb> yep
15: [00:04:00] <Pyromanik> a bit more solid
16: [00:04:00] <Pyromanik> oic
17: [00:04:00] <Pyromanik> sold
18: [00:04:00] <novaweb> like "control [tab]" creates as SilverStripe control block in *.ss files
19: [00:05:00] <Pyromanik> but I did it to troll
20: [00:05:00] <Pyromanik> there were only 2 left
21: [00:08:00] <chillu> novaweb: Hey Josh, long time no see
22: [00:09:00] <novaweb> too true!
23: [00:09:00] <chillu> TBH haven't used TextMate in a while, SublimeText2 is all the rage now ;) Which reads some basic form of *.tmLanguage I think
24: [00:10:00] <Pyromanik> silverstripe-labs?
25: [00:10:00] <Pyromanik> silverstripe-au
26: [00:10:00] <chillu> And there's a more powerful fork (or alternative?) to my original textmate project flying around on somebody's github as well
27: [00:10:00] <Pyromanik> there are too many githubs
28: [00:11:00] <Pyromanik> I know
29: [00:11:00] <Pyromanik> silverstripe-themes
30: [00:11:00] <chillu> some third party, no idea -github has a search ;)
31: [00:11:00] <novaweb> all good :)
32: [00:11:00] <Pyromanik> #firstworldproblems
33: [00:11:00] <Pyromanik> but
34: [00:11:00] <Pyromanik> how to search
35: [00:11:00] <Pyromanik> hard choices
36: [00:11:00] <novaweb> :)
37: [00:11:00] <novaweb> there was a french one... i was sceptical
38: [00:12:00] <Pyromanik> the french made prestashop
39: [00:12:00] <Pyromanik> both of which are good softwares, but with terrible codes.
40: [00:12:00] <Pyromanik> it reminds me of vbulletin
41: [00:12:00] <Pyromanik> lol
42: [00:13:00] <novaweb> I guess I'll download ST2 then!
43: [00:14:00] <Pyromanik> oh, sublimetext2 is a pythonapp
44: [00:15:00] * l8s quit (Quit: Nettalk6 - www.ntalk.de)
45: [00:16:00] <Colin[pi]> yay feedback on a design concept... in summary "MAKE EVERYTHING BIGGER"
46: [00:17:00] <ec8or> web 2.0 :P
47: [00:18:00] <Pyromanik> geezus
48: [00:18:00] <Pyromanik> zhizh it up
49: [00:18:00] <Pyromanik> more sazzle
50: [00:18:00] <Pyromanik> more pop
51: [00:18:00] <Pyromanik> Colin[pi]: needs more shine
52: [00:18:00] <Pyromanik> ec8or: rofl
53: [00:18:00] <Pyromanik> that's both scary and impressive at the same time
54: [00:18:00] <Pyromanik> it's a command line text editor with key bindings
55: [00:19:00] <Colin[pi]> they are like "make the phone number bigger!" and it's already the second biggest piece of text on the page apart from the logo
56: [00:20:00] * markeaston has joined #silverstripe
57: [00:23:00] <Pyromanik> BIGGER
58: [00:24:00] <Colin[pi]> was quite funny, stepped through each element of the design, "make it bigger"
59: [00:24:00] <Pyromanik> they're blind
60: [00:24:00] <pippy> how do i speed postgres up?
61: [00:24:00] <Pyromanik> make it
62: [00:24:00] <Pyromanik> full size
63: [00:24:00] * catcher quit (Quit: Leaving)
64: [00:24:00] <Pyromanik> they've been selling shit for years, they know what they're talking about.
65: [00:24:00] <Pyromanik> sorry
66: [00:24:00] <Colin[pi]> "see the navbar, can we make it bigger, and the logo, bigger, the welcome image, make that bigger, and the phone number, bigger"
67: [00:24:00] <Pyromanik> pippy: no idea
68: [00:24:00] <Pyromanik> iphone style
69: [00:25:00] <Pyromanik> I opened the console and typed quit()
70: [00:25:00] <Pyromanik> I don't like it
71: [00:25:00] <Pyromanik> I downloaded sublimetext2
72: [00:25:00] <Pyromanik> lol true
73: [00:25:00] <Colin[pi]> maybe their browser is zoomed out ;)
74: [00:26:00] <Pyromanik> it wouldn't let me choose a syntax to apply the highlights
75: [00:26:00] <Pyromanik> I was all LOLWUT
76: [00:28:00] <ec8or> you mean from the console?
77: [00:29:00] <Pyromanik> yeh
78: [00:29:00] <Pyromanik> after finding the view menu and syntax submenu with each and every option greyed out
79: [00:29:00] <Pyromanik> that's what I did
80: [00:29:00] <ec8or> it is in the gui, View - Syntax
81: [00:29:00] <Pyromanik> yes
82: [00:29:00] <Pyromanik> I grabbed portable version, maybe it dosen't have the syntax files with it
83: [00:29:00] <ec8or> odd, works fine here
84: [00:29:00] <ec8or> maybe i downloaded something
85: [00:30:00] <Pyromanik> I <3 notepad++
86: [00:30:00] <ec8or> i switched from notepad++ a few months ago
87: [00:30:00] <Pyromanik> seems stupid
88: [00:30:00] <Pyromanik> but then, why have them in the menu at all
89: [00:30:00] <ec8or> list of all open files in separate pane maybe
90: [00:30:00] <ec8or> that i had to install a plugin for
91: [00:30:00] <ec8or> yeah there was something that made me want to change it
92: [00:30:00] <Pyromanik> sublimetext2 does my head in
93: [00:30:00] <ec8or> not sure why
94: [00:31:00] <Pyromanik> winning :D
95: [00:31:00] <Pyromanik> lulz
96: [00:31:00] <Pyromanik> export as html
97: [00:31:00] <Pyromanik> oh yeh
98: [00:32:00] <ec8or> :)
99: [00:32:00] <Pyromanik> dumps out doc with syntax highlights
100: [00:32:00] <Pyromanik> (notepad++ this is)
101: [00:33:00] * chillu quit (Quit: chillu)
102: [00:38:00] <Pyromanik> nope, they're all in there
103: [00:40:00] <Pyromanik> huh
104: [00:41:00] <Pyromanik> reopened sublime and all the syntaxes were available this time
105: [00:41:00] <Pyromanik> odd
106: [00:42:00] <Pyromanik> irish coffee
107: [00:42:00] <ec8or> whisky maybe...
108: [00:42:00] <ec8or> gonna put in another hour
109: [00:42:00] <Pyromanik> hehe
110: [00:43:00] <ec8or> hehe already had the coffee
111: [00:43:00] <ec8or> so would have to be a deconstructed one
112: [00:43:00] <Pyromanik> hehe
113: [00:43:00] <Pyromanik> Oh you said whisky
114: [00:43:00] <Pyromanik> not whiskey
115: [00:44:00] <pippy> Pyromanik: have you tried netbeans?
116: [00:44:00] <ec8or> and yeah, all scotch here
117: [00:45:00] <Pyromanik> nope
118: [00:45:00] <ec8or> might be the Java thing.. it is uncanny
119: [00:45:00] <Pyromanik> the*
120: [00:45:00] <Pyromanik> I think I looked at it once back in he day
121: [00:45:00] <ec8or> can't get comfortable with either
122: [00:45:00] <ec8or> i've tried both netbeans and eclipse numerous times
123: [00:45:00] <Pyromanik> do not wish to
124: [00:46:00] <Pyromanik> you mean in feel
125: [00:46:00] <Pyromanik> yeh
126: [00:46:00] <ec8or> feels almost like your native OS, but still not :)
127: [00:46:00] <Pyromanik> it's kinda like trying to use something like Code::Blocks for HTML
128: [00:46:00] <Pyromanik> oh
129: [00:47:00] <ec8or> i like to run my stuff on the server
130: [00:47:00] <ec8or> yeah, although i don't really agree with creating projects etc. either
131: [00:47:00] <ec8or> or.. i like to have someone else code to be honest ;)
132: [00:48:00] <ec8or> getting long.. old
133: [00:48:00] <ec8or> for every interesting thing there is always 2 x monkey stuff
134: [00:48:00] <Pyromanik> haha
135: [00:48:00] <ec8or> every time i end up building a site on my own i promise myself never again
136: [00:49:00] <Pyromanik> mmm
137: [00:49:00] <Pyromanik> I used to get excited about CSS
138: [00:49:00] <Pyromanik> but then when they do I'm all "this is ... what"
139: [00:49:00] <Pyromanik> now days I'd rather someone else did it
140: [00:50:00] <Pyromanik> z-index: 12357190571067190689207;
141: [00:50:00] <Pyromanik> clear signs of 0 understanding about visual presentation layers.
142: [00:50:00] <ec8or> yeah, especially if they're into the whole sass thing :)
143: [00:50:00] <ec8or> exactly
144: [01:00:00] * Andi_de__ is now known as Andi_de
145: [01:00:00] * Andi_de__ has joined #silverstripe
146: [01:04:00] * Andi_de_ quit (Ping timeout: 276 seconds)
147: [01:10:00] <pippy> CSS is a bit of a joke now
148: [01:11:00] <pippy> the stock requirements for the average site require things like bootstrap
149: [01:11:00] <spronk> css reset is pretty essential
150: [01:11:00] <spronk> well
151: [01:11:00] <simon_w> Nah, that's just cause you're lazy
152: [01:11:00] <pippy> at least the stuff inside boilerplate
153: [01:11:00] <pippy> CSS reset
154: [01:12:00] <spronk> bootstrap not so much
155: [01:12:00] * aznain has joined #silverstripe
156: [01:13:00] <pippy> I think this article describes it best
157: [01:13:00] <pippy> the first comment describes the state CSS is in
158: [01:13:00] <pippy> http://news.ycombinator.com/item?id=5062761
159: [01:17:00] * simon_w changed the topic to 'Welcome to #silverstripe discussion - IRC logs available at http://logs.silverstripe.org || 3.1.0-beta1 (bleeding edge) released 17/12/2012: http://ss.org.nz/3.1.0b1 || 3.0.5 released 20/02/2013: http://ss.org.nz/3.0.5 || 2.4.10 security release 18/02/2013: http://ss.org.nz/2.4.10 || Development mailing list: http://ss.org.nz/ss-dev'
160: [01:18:00] <Pyromanik> and the rest I code by hand
161: [01:18:00] <Pyromanik> I include a small reset.css
162: [01:18:00] <Pyromanik> mm
163: [01:18:00] * spronk has been ranting like that for yeaaars
164: [01:18:00] <Pyromanik> because while frameworks are good, so are brains.
165: [01:18:00] <spronk> tbh i agree with almost everything that guy says about css
166: [01:19:00] <simon_w> Looks like someone forgot to push the changelog
167: [01:22:00] <Pyromanik> hahahahahahahahah
168: [01:22:00] * terryapodaca has joined #silverstripe
169: [01:22:00] <Pyromanik> "front-end engineering"
170: [01:22:00] * markeaston quit (Quit: markeaston)
171: [01:23:00] <terryapodaca> is there a better way to track page clicks (on a single page, not every page in the site)? I will need this page count for a search page and also for the landing page sorting (by page views).
172: [01:24:00] <terryapodaca> I didn't know if SS might be already tracking this kind of thing
173: [01:24:00] <simon_w> terryapodaca, better way than what?
174: [01:24:00] <terryapodaca> http://www.silverstripe.org/blog-module-forum/show/8067
175: [01:24:00] <ec8or> google analytics
176: [01:25:00] <simon_w> No, the PageView table went bye-bye in 2.3
177: [01:25:00] <ec8or> unless you are displaying views in the template
178: [01:25:00] <Pyromanik> http://www.silverstripe.org/blog-module-forum/show/8067 -- "Thanks for your hint. I??m not familiar with google analystics yet. It will be my next challenge to work with it. Obviously my work is useless to others
179: [01:25:00] <Pyromanik> "
180: [01:25:00] <ec8or> :D
181: [01:25:00] <terryapodaca> I'm not needing statistics ec8or, the site already has that
182: [01:26:00] <Pyromanik> ^
183: [01:26:00] <Pyromanik> $db = array('hits'=>'Int')
184: [01:26:00] <Pyromanik> sort by most popular eh
185: [01:26:00] <Pyromanik> ah
186: [01:26:00] <Pyromanik> they track clicks.
187: [01:26:00] <terryapodaca> it's for a search option and for a sort option
188: [01:26:00] <Pyromanik> well
189: [01:26:00] <simon_w> public function init() { $this->data()->Views++; $this->data()->write(); }
190: [01:27:00] <Pyromanik> update both tables with a DB::Query
191: [01:27:00] <simon_w> Though that breaks whenever you republish the page
192: [01:27:00] <Pyromanik> or write to both stages
193: [01:27:00] <ec8or> i'd use Session unless you want to count every refresh
194: [01:28:00] * travis-ci has joined #silverstripe
195: [01:28:00] <ec8or> well, it is still pretty easy :)
196: [01:28:00] <terryapodaca> there will be a landing page for Success Stories, and they want to sort by School, State, Most Viewed (this is where I need track hits)
197: [01:28:00] <Pyromanik> short answer: no, no easy way.
198: [01:28:00] <Pyromanik> or make a page view controller that tracks this kinda stuff.
199: [01:28:00] * travis-ci has left #silverstripe
200: [01:28:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4917893
201: [01:28:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/29de6431fd44...25af4adce220
202: [01:28:00] <travis-ci> [travis-ci] silverstripe/sapphire#1472 (3.0 - 25af4ad : Ingo Schommer): The build passed.
203: [01:29:00] <Pyromanik> sorta
204: [01:29:00] <Pyromanik> well
205: [01:29:00] <Pyromanik> yeh
206: [01:29:00] <ec8or> just create a new dataobject with has_one Page
207: [01:29:00] <terryapodaca> etc...same thing for a search, it will be an option
208: [01:29:00] <Pyromanik> was just thinking that :P
209: [01:29:00] <ec8or> and increase every page load unless the cookie is set
210: [01:29:00] <Pyromanik> lol
211: [01:29:00] <Pyromanik> I hate it so much.
212: [01:29:00] <Pyromanik> I hate dealing with versioned
213: [01:30:00] <Pyromanik> page has_one and cannot be changed CounterObject
214: [01:33:00] <ec8or> where are you famous simon_w ?
215: [01:33:00] <simon_w> Pyromanik, you need another blog post now :p
216: [01:33:00] <simon_w> Woo, I'm famous again!
217: [01:33:00] <terryapodaca> yep, that sounds like the best option, and that makes it open to use in any page
218: [01:33:00] <simon_w> http://www.silverstripe.org/oauth-server/
219: [01:34:00] <Bollig|DesignCty> you classy bastard with your pocket square
220: [01:34:00] <Pyromanik> I bet you're even wearing shoes!
221: [01:34:00] <Pyromanik> IN A SUIT
222: [01:34:00] <Pyromanik> WHOLEY SHIT
223: [01:34:00] <ec8or> ah nice one
224: [01:34:00] <simon_w> Totally wearing shoes!
225: [01:34:00] <ec8or> he's naked waist down
226: [01:35:00] <ec8or> ok naked except for shoes
227: [01:35:00] <simon_w> Everything except the glasses and boxers were paid for by SilverStripe too
228: [01:35:00] <Pyromanik> wow that's awesome
229: [01:35:00] <ec8or> haha
230: [01:35:00] <ec8or> cool
231: [01:35:00] <Pyromanik> How'd you con them out of that simon_w?
232: [01:35:00] <simon_w> The gala dinner for the NZOSS awards
233: [01:35:00] <Bollig|DesignCty> lol so did you rock up to work with only your boxers and glasses and say CLOTHE ME
234: [01:35:00] <simon_w> I didn't have a suit and these are fancy things
235: [01:36:00] <Pyromanik> rofl
236: [01:36:00] * markeaston has joined #silverstripe
237: [01:36:00] <Pyromanik> well, good job dude :)
238: [01:38:00] <Bollig|DesignCty> that's a detailed article simon_w, good work!
239: [01:38:00] <spronk> still, SS Ltd have probably got more than a few hundys worth of business out of you, so, yknow
240: [01:38:00] <simon_w> 2k words! Is like the second longest thing I've written
241: [01:38:00] <spronk> squid pro quo
242: [01:38:00] <spronk> nice
243: [01:38:00] <spronk> haha
244: [01:39:00] <spronk> o_O
245: [01:40:00] <simon_w> (http://s.geek.nz/report being the longest by far)
246: [01:40:00] <spronk> heh
247: [01:40:00] <spronk> the saddest thing is
248: [01:40:00] <spronk> there will be.... approx 4 people that ever read it in full
249: [01:40:00] <spronk> all that work for nothing
250: [01:41:00] <spronk> some phd student chick turned my hons into a phd
251: [01:41:00] <simon_w> Hey, I got a degree out of it
252: [01:41:00] <simon_w> And pretty much
253: [01:41:00] <spronk> ....by redoing my work
254: [01:42:00] * spronk was kinda annoyed at that..
255: [01:42:00] <simon_w> That sounds like she shouldn't get the PhD. That's supposed to be original work...
256: [01:42:00] <spronk> ...and getting the same resultrs
257: [01:43:00] <Pyromanik> it'd be fuck'n rofl'
258: [01:43:00] <spronk> i know
259: [01:43:00] <Pyromanik> spronk: you should challenge it
260: [01:43:00] <spronk> yeah
261: [01:43:00] <Pyromanik> to see some derp stripped of PhD
262: [01:44:00] <spronk> well, yeah she did
263: [01:44:00] <Pyromanik> has she actually finished yet?
264: [01:44:00] <Pyromanik> what did she expand on?
265: [01:44:00] <spronk> yeah
266: [01:44:00] <Pyromanik> or just basically reword an hons into a phd?
267: [01:44:00] <Pyromanik> ah yeh
268: [01:44:00] <Pyromanik> so there was some work in it
269: [01:44:00] <spronk> didn't get much credit in her phd either, esp given that i invented the whole idea
270: [01:44:00] <Pyromanik> anything?
271: [01:45:00] <spronk> ja
272: [01:45:00] <Pyromanik> so bascially 70% of the PhD was already done, and she just replicated it
273: [01:45:00] <spronk> my hons was on task switching - i did a longitudinal study to find how people did task switching in various configurtations, then built a concept interface and evaluated it
274: [01:45:00] <Pyromanik> task switching like... taskbar, alt-tab, etc?
275: [01:45:00] <spronk> she did a longitudinal study that was more or less the same, then built a real world version of the same concept interface i built, then built some extra stuff into it to morph it
276: [01:46:00] <Pyromanik> that's so uber shit
277: [01:46:00] <spronk> she did a bunch of extra research on "understanding" the task switching stuff
278: [01:46:00] <Pyromanik> from canterbury too?
279: [01:46:00] <spronk> yeah
280: [01:47:00] <Pyromanik> heh
281: [01:47:00] <spronk> and has done further papers on variations of the original idea
282: [01:47:00] <Pyromanik> well
283: [01:47:00] <spronk> http://www.cosc.canterbury.ac.nz/research/reports/HonsReps/2007/hons_0702.pdf my hons report in 2007
284: [01:47:00] <Pyromanik> write a scientific paper and publish it
285: [01:47:00] <spronk> http://www.cosc.canterbury.ac.nz/research/reports/PhdTheses/2011/phd_1101.pdf her phd thesis in 2011
286: [01:47:00] <spronk> we co authored a paper in ... 2009
287: [01:47:00] <Pyromanik> thow a cat in the pigeons
288: [01:47:00] <Pyromanik> lol
289: [01:47:00] <Pyromanik> rude
290: [01:48:00] <spronk> its not quite as bad as i made it out to be, but... after reading most of her phd i was like
291: [01:48:00] <Pyromanik> so you even ... rude as fuck.
292: [01:48:00] <spronk> i did this already
293: [01:48:00] <spronk> wtf
294: [01:51:00] <Pyromanik> (ie, redo the study with different parameters or metrics or something)
295: [01:51:00] <Pyromanik> when work is already done
296: [01:51:00] <Pyromanik> and she didn't even refactor it
297: [01:51:00] <Pyromanik> still pretty rude
298: [01:51:00] * tgfisher has joined #silverstripe
299: [01:51:00] <Pyromanik> heh
300: [01:52:00] * novaweb has left #silverstripe
301: [01:53:00] <Pyromanik> ...
302: [01:53:00] <Pyromanik> who puts their phone number and opening hours on their logo?
303: [01:53:00] * tgfisher quit (Client Quit)
304: [01:54:00] <Pyromanik> who does that/
305: [01:54:00] <Pyromanik> ?
306: [01:55:00] <Pyromanik> sure wasn't me either
307: [01:55:00] <Pyromanik> or anyone here
308: [01:55:00] <simon_w> Also, I can write letters after my name now! https://files.app.net/1/3175/arkzDKeaHlpi52oCNyEgCIjuT6mlms-saHcEE2O0PSitnWaBHI5sbw-5OC0hMykKkA5_QCVVwD4F8nF1a8GY5kSbdjYV7RrVYNrZNxgkrEbourG6LxSlT7mvKCPcloBdODNFfeekZkNuEj8gN-vgi5NuvEwBlPsl34GS2uivbXCFj6Xws9p5nU9RiVyan23T6
309: [01:55:00] <simon_w> Wasn't me!
310: [01:56:00] <Pyromanik> but you already could
311: [01:56:00] <Pyromanik> congratulations
312: [01:56:00] <Pyromanik> now you can write MORE letters after your name :P
313: [01:56:00] <simon_w> Well, I could do meaningless things like esq.
314: [01:56:00] <Pyromanik> wait what
315: [01:57:00] <Pyromanik> ... so how to get hons?
316: [01:57:00] <Pyromanik> isn't that kinda a pre req?
317: [01:57:00] <simon_w> It's the main one
318: [01:57:00] <Pyromanik> I don't understand.
319: [01:57:00] <simon_w> Or, you can do good enough at 200 and 300 level in your major
320: [01:57:00] <simon_w> I'm not finishing my BSc
321: [01:57:00] * zenmonkey has joined #silverstripe
322: [01:57:00] <Pyromanik> does the BSc not get awarded until after the Hons. ?
323: [01:58:00] <Pyromanik> lol
324: [01:58:00] <simon_w> It's a different degree
325: [01:58:00] <simon_w> And get permission from the Dean
326: [01:58:00] <Pyromanik> yeah, but how do you get honours in a degree if you don't have the degree?
327: [01:58:00] <simon_w> And boom, four year programme in three years
328: [01:59:00] <simon_w> Yup
329: [01:59:00] <ss23> You know, whatever floats your boat.
330: [01:59:00] <ss23> Or you could do something useful with your time instead
331: [01:59:00] <Pyromanik> so just Hons
332: [01:59:00] <Pyromanik> BScHons without the BSc
333: [01:59:00] <Pyromanik> hmm
334: [01:59:00] <simon_w> nothing else
335: [01:59:00] <simon_w> Well, I have my BSCHons
336: [01:59:00] <Pyromanik> ?
337: [01:59:00] <Pyromanik> so you've already got a degree./
338: [02:00:00] <Pyromanik> ss23: that's an excellent idea. I'm going to play a game of pool.
339: [02:00:00] <ss23> :D
340: [02:00:00] <ss23> Ouch
341: [02:00:00] <simon_w> I'm going to try replicating this bug
342: [02:00:00] <ss23> ^.^
343: [02:00:00] <ss23> I'm going to sleep
344: [02:02:00] <ss23> lol
345: [02:02:00] <simon_w> That's right, I'm working. A degree just means I can get paid more.
346: [02:02:00] * ss23 runs away
347: [02:02:00] <ss23> What can I say, I would rather learn things than have lots of money. Guess it depends on whether you're shallow enough to care about being rich or not, as opposed to whether you actually have a drive to learn :3
348: [02:03:00] <simon_w> Says the person who just tried belittling a graduate degree :p
349: [02:03:00] <simon_w> No, because I know you're just jealous
350: [02:03:00] <ss23> Tried? Mother fucker I SUCCEEDED
351: [02:03:00] * [1]LoveDuckie has joined #silverstripe
352: [02:04:00] <ss23> Yes
353: [02:04:00] <ec8or> but that doesn't mean i didn't want to continue
354: [02:04:00] <ec8or> I
355: [02:04:00] <ec8or> ah stopped voluntary as well
356: [02:04:00] <ss23> Thats just how jealous I am
357: [02:04:00] <ss23> I'm so jealous that I voluntarily stopped attending university
358: [02:05:00] <spronk> simon_w: yeah, same here with the BSc(Hons) and no ... non-hons
359: [02:05:00] * [1]LoveDuckie is now known as LoveDuckie
360: [02:05:00] <spronk> PRO AS
361: [02:05:00] <ec8or> would love to go back
362: [02:06:00] <spronk> also, second class hons. fail :P
363: [02:06:00] <ss23> knowledge > money :D
364: [02:06:00] <ss23> I stopped cause I didn't feel liek I wes learning almost anything. Like I said, would rather be able to learn in my spare time than work towards something that just gives me extra money as opposed to knowledge
365: [02:07:00] <ss23> simon_w: Neither did I
366: [02:07:00] <ec8or> i wouldn't know, did political science and anthropology at Stockholm ;)
367: [02:07:00] <ss23> ec8or: probably, but I'm told waikato is best for compsci
368: [02:07:00] <ec8or> ss23: sounds like a sucky uni/course
369: [02:07:00] <simon_w> ss23, there's a reason I didn't do first year
370: [02:07:00] <simon_w> Yeah, turns out having to change what you're doing three times during your project isn't so good for your grade :p
371: [02:08:00] <ss23> So :D
372: [02:08:00] <ss23> Still, it was only a year of time wasted, and since I was attending on scholarship, not like I was financially burdened by it
373: [02:09:00] <ec8or> ah i think i'm done
374: [02:09:00] <ss23> aha ec8or, get some more!
375: [02:09:00] <ec8or> time for bed
376: [02:09:00] <ec8or> whisky gone
377: [02:10:00] <ss23> cyao, ec8or
378: [02:10:00] <ec8or> easy all
379: [02:10:00] * LoveDuckie quit (Ping timeout: 248 seconds)
380: [02:10:00] <ec8or> need to catch my 5 hours of sleep ;)
381: [02:13:00] * stillEPIK is now known as EPIK
382: [02:17:00] * Andi_de has joined #silverstripe
383: [02:17:00] * Andi_de quit (Read error: Connection reset by peer)
384: [02:19:00] <Pyromanik> simon_w That's right, I'm working. A degree just means I can get paid more. --- HAHAHAHAHAHAHAHAHAH simon_w made a funny!
385: [02:20:00] <Pyromanik> catcha ec8or
386: [02:21:00] <Pyromanik> also, study'n at stockholm, that would be winner.
387: [02:21:00] <Pyromanik> swedish birds oh so fine.
388: [02:23:00] * simon_w <3s svn:externals
389: [02:30:00] * markeaston quit (Quit: markeaston)
390: [02:34:00] * Error404NotFound has joined #silverstripe
391: [02:50:00] * markeaston has joined #silverstripe
392: [03:00:00] * Liquide quit (Ping timeout: 252 seconds)
393: [03:00:00] * terryapodaca has left #silverstripe
394: [03:11:00] * Liquide has joined #silverstripe
395: [03:20:00] * markeaston quit (Quit: markeaston)
396: [03:27:00] * irogue quit (Read error: Connection reset by peer)
397: [03:27:00] * irogue has joined #silverstripe
398: [03:31:00] <spronk> SVEEDISH
399: [03:32:00] <ss23> I'm a svedish bauker
400: [03:34:00] <Pyromanik> It's a Swedish documentary honey...
401: [03:36:00] * DigNZ quit (Quit: DigNZ)
402: [03:37:00] * liam__ has joined #silverstripe
403: [03:37:00] * aznain quit (Quit: Page closed)
404: [03:41:00] * zenmonkey quit (Quit: This computer has gone to sleep)
405: [03:49:00] * Error404NotFound quit (Ping timeout: 264 seconds)
406: [03:53:00] * markeaston has joined #silverstripe
407: [03:55:00] * liam__ quit (Quit: liam__)
408: [04:01:00] * markeaston has left #silverstripe
409: [04:01:00] * helenclarko quit (Quit: Page closed)
410: [04:05:00] * Liquide quit (Ping timeout: 248 seconds)
411: [04:08:00] * Pyromanik has left #silverstripe
412: [04:10:00] * Liquide has joined #silverstripe
413: [04:11:00] * Sho085 quit (Client Quit)
414: [04:11:00] * Sho085 has joined #silverstripe
415: [04:24:00] * zenmonkey has joined #silverstripe
416: [04:38:00] * liam__ has joined #silverstripe
417: [04:39:00] * zenmonkey quit (Quit: This computer has gone to sleep)
418: [04:54:00] * liam__ quit (Quit: liam__)
419: [04:58:00] * liam__ has joined #silverstripe
420: [04:58:00] * Pyromanik has joined #silverstripe
421: [04:59:00] * cloph_away has joined #silverstripe
422: [05:00:00] * cloph_away1 quit (Ping timeout: 248 seconds)
423: [05:26:00] * Colin[pi] quit (Ping timeout: 256 seconds)
424: [06:10:00] * liam__ has left #silverstripe
425: [06:14:00] * Shrike_Finland has joined #silverstripe
426: [06:21:00] * iamss has joined #silverstripe
427: [06:21:00] <iamss> ??
428: [06:21:00] <iamss> Hi guys, Is there a way for SS to check if the request came from mobile device
429: [06:25:00] * ajshort has joined #silverstripe
430: [06:36:00] * iamss quit (Ping timeout: 245 seconds)
431: [06:45:00] * maknz has joined #silverstripe
432: [06:52:00] <Pyromanik> mobile module might have been a good start.
433: [06:52:00] <Pyromanik> ima... oh you're gone.
434: [07:12:00] * Error404NotFound has joined #silverstripe
435: [07:21:00] * priithansen has joined #silverstripe
436: [07:31:00] * howardgrigg has joined #silverstripe
437: [07:31:00] * willr has joined #silverstripe
438: [07:38:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
439: [07:39:00] * LoveDuckie has joined #silverstripe
440: [07:44:00] * DanielFarbox quit (Quit: Page closed)
441: [07:46:00] * Error404NotFound has joined #silverstripe
442: [07:49:00] * g4b0 has joined #silverstripe
443: [07:53:00] * Liquide quit ()
444: [07:55:00] * zfmf has joined #silverstripe
445: [08:07:00] * lx-berlin has joined #silverstripe
446: [08:19:00] * lx-berlin quit (Quit: lx-berlin)
447: [08:37:00] * NobrainerWeb has joined #silverstripe
448: [08:42:00] * SightUnseen has left #silverstripe
449: [08:42:00] * SightUnseen has joined #silverstripe
450: [08:45:00] * maknz quit (Read error: Connection reset by peer)
451: [08:51:00] * Colin[pi] has joined #silverstripe
452: [08:59:00] * kinglozzer has joined #silverstripe
453: [09:04:00] <g4b0> morning
454: [09:04:00] <Colin[pi]> g'day
455: [09:07:00] * Andi_de_ has joined #silverstripe
456: [09:08:00] * ARNHOFF has joined #silverstripe
457: [09:09:00] * Andi_de quit (Ping timeout: 256 seconds)
458: [09:32:00] <ajshort> test suite, why you so slow?
459: [09:32:00] <simon_w|air> Cause I haven't made it faster yet
460: [09:33:00] <ajshort> I think we actually do need to :)
461: [09:33:00] <ajshort> it's starting to hit the travis time limits regularly
462: [09:34:00] <simon_w|air> Oh, that's just because PHPUnit is being stupid and not outputting as it goes
463: [09:35:00] <ajshort> but travis does have a 10 min time limit i'm pretty sure
464: [09:35:00] <ajshort> (soft limit)
465: [09:35:00] <ajshort> that's odd
466: [09:38:00] * SightUnseen has joined #silverstripe
467: [09:39:00] <ajshort> simon_w: just checked the docs, looks like you're exactly right - I wonder why phpunit isn't outputting intermediate results
468: [09:40:00] * SightUnseen quit (Client Quit)
469: [09:40:00] * travis-ci has joined #silverstripe
470: [09:40:00] <travis-ci> [travis-ci] silverstripe/sapphire#1474 (post-2.4 - 13dbdbf : Ingo Schommer): The build is still failing.
471: [09:40:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/7527184e6e6e...13dbdbfd2e18
472: [09:40:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4924816
473: [09:40:00] * travis-ci has left #silverstripe
474: [09:47:00] * feejin has joined #silverstripe
475: [09:49:00] <ajshort> Infinite loops tend to make your tests run slowly :)
476: [09:49:00] <simon_w|air> Funny that :p
477: [09:49:00] <ajshort> Mystery solved!
478: [09:50:00] <Bollig|DesignCty> need a faster computer. Moar rams.
479: [09:54:00] * willr quit (Quit: willr)
480: [09:55:00] * chillu has joined #silverstripe
481: [09:56:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
482: [09:57:00] * SightUnseen has joined #silverstripe
483: [09:59:00] * SightUnseen has left #silverstripe
484: [10:00:00] <kinglozzer> Just out of interest, as I'm going to switch back to 3.0.x, but is there a bug with handleAction() in 3.1 at the moment? I have public static $allowed_actions = array('index'); and on every page except the home page I don't get a 404, I get "Action 'asd' isn't available on class Page_Controller." instead.
485: [10:03:00] <simon_w|air> That's what happens when you trying accessing an action that doesn't exist
486: [10:03:00] <kinglozzer> simon_w|air: Yes, but shouldn't it be a 404 instead?
487: [10:05:00] <simon_w|air> Well, do you have a 404 page?
488: [10:06:00] <kinglozzer> simon_w|air: Yes, I get a 404 if I do mysite.com/asdf, but not mysite.com/some-page/asdf
489: [10:07:00] <kinglozzer> Just switched back to 3.0.3 and I get the 404 like I should, so must just be 3.1
490: [10:08:00] <simon_w|air> ajshort, looks like phpunit just needs the -v flag
491: [10:09:00] <simon_w|air> ajshort, nope, I'm getting output even without that. Could be output buffering?
492: [10:09:00] <simon_w|air> Anyway, flight tomorrow morning so sleep time
493: [10:10:00] <Pyromanik> have fun
494: [10:10:00] * Leon_ has joined #silverstripe
495: [10:11:00] <Leon_> Can anyone explain why the new version of silverstripe opens up a page that contains debug.css and not loading the template i defined
496: [10:15:00] <Pyromanik> because you didn't set the theme>?
497: [10:16:00] <Leon_> created php file called 'Home' and template called 'Home.ss'
498: [10:16:00] <kinglozzer> Leon_: Theme needs to be set in the CMS as well
499: [10:16:00] <Leon_> Theme is set in the _config -> SSViewer::set_theme('simple');
500: [10:17:00] * guci0 has joined #silverstripe
501: [10:17:00] <Pyromanik> kinglozzer, no it doesnt'
502: [10:18:00] <kinglozzer> Hi
503: [10:18:00] <kinglozzer> That
504: [10:18:00] <kinglozzer> ^^
505: [10:18:00] <Pyromanik> Leon_, did you do a flush?
506: [10:18:00] <guci0> Hello
507: [10:18:00] <Pyromanik> Leon_, you need to make a Home type page first
508: [10:18:00] <Leon_> Theme also has been set in the CMS, still no template to display. The default 'Layout/Page.ss' get displayed when i change the page type, but the 'Layout/Home.ss' not
509: [10:18:00] <Leon_> did that
510: [10:18:00] <kinglozzer> Leon_: What's your 'Home' class called?
511: [10:18:00] <kinglozzer> :P
512: [10:20:00] * r3v3rb has joined #silverstripe
513: [10:21:00] <Leon_> Aah got it, my bad *shame* controller didnt extend from Page_Controller
514: [10:26:00] <Pyromanik> that was my next question
515: [10:27:00] <r3v3rb> Pyromanik: you're still awake?!
516: [10:28:00] <Pyromanik> uk right?
517: [10:28:00] <r3v3rb> arh, not too late then
518: [10:28:00] <Pyromanik> r3v3rb, 11:30pm
519: [10:28:00] <Pyromanik> r3v3rb, what time is it there?
520: [10:29:00] <priithansen> if your milk has an expiry date for tomorrow you can send it here and it would still work for a day
521: [10:29:00] <r3v3rb> 10:29am here :D
522: [10:29:00] <priithansen> haha 12:30am here
523: [10:30:00] <r3v3rb> ugh, time to go back in time and dig out some code from two years ago??? could be messy!
524: [10:30:00] * lx-berlin has joined #silverstripe
525: [10:30:00] <r3v3rb> priithansen: I'm behind you, watch out!
526: [10:30:00] <r3v3rb> Pyromanik: yes, UK
527: [10:31:00] <kinglozzer> I always look at it and think "what the hell was I thinking when I was writing this?!"
528: [10:31:00] <r3v3rb> :)
529: [10:31:00] <kinglozzer> I love doing that r3v3rb ^^
530: [10:31:00] <r3v3rb> lo lx-berlin
531: [10:31:00] <lx-berlin> hi r3v3rb
532: [10:31:00] <r3v3rb> kinglozzer: its nearly always ugly
533: [10:32:00] <Pyromanik> everyone does that I think
534: [10:33:00] <r3v3rb> shoot, haven't got the files I thought I had...
535: [10:33:00] <kinglozzer> Haha yeah. Even projects from a few months ago I look at and think "I could've done that so much better"
536: [10:34:00] <kinglozzer> Always learning :)
537: [10:41:00] <r3v3rb> indeed
538: [10:42:00] <ec8or> i don't really get how to remove the remove button from a gridfield in modeladmin
539: [10:42:00] <ec8or> i've added GridFieldDeleteAction('unlinkrelation') but that just adds an un-link icon, the remove one is still there
540: [10:44:00] <ajshort> $grid->getConfig()->removeComponentsByType('GridFieldDeleteAction');
541: [10:44:00] <ajshort> before you add the new one
542: [10:50:00] <chillu> If anybody's using the payment module with DPS, we've got a security release: https://groups.google.com/forum/?fromgroups=#!topic/silverstripe-announce/SD8wPQ2pDWI
543: [10:51:00] <ec8or> ajshort: nice one, thanks
544: [10:51:00] <ec8or> ss3 is pretty nice ;)
545: [10:51:00] <chillu> aaaawesome
546: [10:51:00] <ajshort> chillu: good news! the first part of my GSOC stuff is just about ready for a pull request
547: [10:51:00] <ajshort> just gotta write one more test :)
548: [10:55:00] <chillu> ajshort: I don't have any bandwidth to significantly look over the GSOC changes in February most likely, but very excited anyway :)
549: [10:56:00] <chillu> Since this is all 3.2 stuff, we'll have to focus on getting 3.1 out first and foremost :)
550: [10:59:00] <Pyromanik> ec8or, this your first project with ss3?
551: [10:59:00] * lx-berlin has left #silverstripe
552: [11:00:00] <Pyromanik> good good :D
553: [11:00:00] <ec8or> so i've appreciated other things like the new ORM before this ;)
554: [11:00:00] <ec8or> Pyromanik: no, made one big site before but basically never touched the CMS then
555: [11:00:00] <Pyromanik> oic
556: [11:01:00] <ec8or> yeah it rocks
557: [11:01:00] <ec8or> bye-bye DOM
558: [11:01:00] <Pyromanik> gridfield is also oh so nice :P
559: [11:03:00] * Shrike_Finland quit (Quit: Leaving.)
560: [11:06:00] <Pyromanik> g'nite erry body
561: [11:06:00] * Pyromanik quit (Quit: Try HydraIRC -> http://www.hydrairc.com <-)
562: [11:11:00] * Shrike_Finland has joined #silverstripe
563: [11:29:00] * NobrainerWeb quit (Quit: NobrainerWeb)
564: [11:34:00] * BoringJellyfish has joined #silverstripe
565: [11:35:00] <BoringJellyfish> How does one go about fetching images stored in gridfield of child pages and outputting them in order of date created?
566: [11:37:00] <BoringJellyfish> Atm I can only get them being output in groups of the child page. eg. ChildPage1: image3, image2, image 1 Child Page2: image2, image1 ChildPage3: img4, img 3, img2, img1
567: [11:39:00] <ajshort> BoringJellyfish: $this->ChildPages()->relation('Images')->sort('Date')
568: [11:39:00] * NobrainerWeb has joined #silverstripe
569: [11:39:00] <BoringJellyfish> so the HolderPage.ss has <% loop Children %><% if Images %><% loop Images %>$Image
570: [11:40:00] <ajshort> <% loop $Children.relation("Images") %>
571: [11:40:00] <ajshort> but you should probably do that in your controller
572: [11:48:00] <BoringJellyfish> thanks aj but I'm still not quite getting something
573: [11:49:00] <BoringJellyfish> so ImageHolder.php should have something like function AllProjects() { $this->ChildPages()->relation('Images')->sort('Date'); }
574: [11:51:00] <ajshort> you're missing a return
575: [11:52:00] <ajshort> and in your case it should be return $this->Children()->relation('Images')->sort('LastEdited') or something like that
576: [11:56:00] * howardgrigg quit (Remote host closed the connection)
577: [12:03:00] <BoringJellyfish> Still having trouble, how can I confirm the correct name of the relation?
578: [12:05:00] <kinglozzer> BoringJellyfish: Should be the name of the relation you set on DataObject/Page. Where you set the $has_one or $many_many
579: [12:05:00] <ajshort> relation doesn't work for has_one's though
580: [12:11:00] <BoringJellyfish> ok so Images is actually Photos
581: [12:11:00] <BoringJellyfish> CategoryHolder.php http://www.sspaste.com/paste/show/5124bc8d7efe1 Category.php http://www.sspaste.com/paste/show/5124bced73696 Category.ss http://www.sspaste.com/paste/show/5124bd19ef369
582: [12:12:00] <BoringJellyfish> atm the page is saying Server Error
583: [12:16:00] <kinglozzer> Put the site in dev mode and you'll be able to see the error
584: [12:19:00] <BoringJellyfish> [User Error] Uncaught Exception: Object->__call(): the method 'childpages' does not exist on 'CategoryHolder_Controller'
585: [12:20:00] <kinglozzer> You should be using Children() as ajshort said, instead of ChildPages()
586: [12:22:00] <BoringJellyfish> [User Error] Uncaught Exception: Object->__call(): the method 'relation' does not exist on 'ArrayList'
587: [12:24:00] <ajshort> try Page::get()->filter('ParentID', $this->ID)->relation(...)->sort(...)
588: [12:24:00] <ajshort> Children is a funny special case
589: [12:24:00] <ajshort> ah
590: [12:26:00] <BoringJellyfish> [User Error] Uncaught Exception: Object->__call(): the method 'photos' does not exist on 'Page'
591: [12:26:00] * Colin[pi] quit (Ping timeout: 256 seconds)
592: [12:27:00] <BoringJellyfish> Changing Page to Category I get [User Error] Couldn't run query: SELECT DISTINCT "Photo"."ClassName", "Photo"."Created", "Photo"."LastEdited", "Photo"."Name", "Photo"."SortOrder", "Photo"."Description", "Photo"."CategoryID", "Photo"."PhotoID", "Photo"."ID", CASE WHEN "Photo"."ClassName" IS NOT NULL THEN "Photo"."ClassName" ELSE 'Photo' END AS "RecordClassName", "Date" FROM "Photo" WHERE ("CategoryID" IN ('8', '7', '9',
593: [12:28:00] <ajshort> it helps if you post the actual error
594: [12:31:00] <ajshort> so of course it won't work
595: [12:31:00] <BoringJellyfish> http://www.sspaste.com/paste/show/5124c1fd6b69f
596: [12:31:00] <ajshort> you probably need to run a /dev/build
597: [12:31:00] <ajshort> actually no wait
598: [12:31:00] <ajshort> BoringJellyfish: you don't actually have a Date field at all
599: [12:32:00] <ec8or> maybe use Created
600: [12:32:00] <ec8or> or add one :)
601: [12:32:00] <ajshort> BoringJellyfish: you need to actually replace the fields in the example code with the fields relevant for your setup
602: [12:32:00] <ajshort> so probably either Created or LastEdited
603: [12:32:00] * priithansen quit (Read error: Connection reset by peer)
604: [12:32:00] <BoringJellyfish> Thankyou! :D
605: [12:33:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4927578
606: [12:33:00] * travis-ci has left #silverstripe
607: [12:33:00] * priithansen has joined #silverstripe
608: [12:33:00] <BoringJellyfish> works now, sorry just asumed Date was there by default or something
609: [12:33:00] * travis-ci has joined #silverstripe
610: [12:33:00] <travis-ci> [travis-ci] silverstripe/sapphire#1477 (3.0 - 094db0f : Ingo Schommer): The build passed.
611: [12:33:00] <BoringJellyfish> changed it to SortOrder
612: [12:33:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/25af4adce220...094db0f4ab1a
613: [12:38:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/094db0f4ab1a...67b2d3faa020
614: [12:38:00] <travis-ci> [travis-ci] silverstripe/sapphire#1478 (3.0 - 67b2d3f : Ingo Schommer): The build passed.
615: [12:38:00] <chillu> Well if they don't break, usually at least daily. But they break at the moment ;)
616: [12:38:00] * travis-ci has left #silverstripe
617: [12:38:00] <ARNHOFF> chillu: How often are the transllations from getlocalization added?
618: [12:38:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/4927739
619: [12:38:00] * travis-ci has joined #silverstripe
620: [12:39:00] <chillu> Caveat: They're collected from master, so any new translatable string added to 3.0 will need to wait until its merged to 3.1, and subsequently to master - which should take 1-2 weeks
621: [12:39:00] <ARNHOFF> ah oke
622: [12:40:00] <ARNHOFF> I see, also I heard you are familiar with composer. I am using it now for two days, but when I remove a folder in framework for example admin. Shouldnt composer add it back with update or install ?
623: [12:42:00] <chillu> it should complain about local modifications, and offer to stash them or revert the changes
624: [12:43:00] <chillu> It doesnt absolve you of all git management though - so either create a fork with that change if its desired, or revert it (through git reset --hard origin/<branch>)
625: [12:44:00] <ARNHOFF> oke thanks
626: [12:44:00] * chillu is now known as chillu|afk
627: [12:45:00] * NobrainerWeb quit (Quit: NobrainerWeb)
628: [12:51:00] * BoringJellyfish quit (Quit: Page closed)
629: [12:56:00] * ocm has joined #silverstripe
630: [12:56:00] <ocm> howdy!
631: [13:09:00] * NobrainerWeb has joined #silverstripe
632: [13:14:00] * UndefinedOffset has joined #silverstripe
633: [13:31:00] * UndefinedOffset quit (Quit: Leaving.)
634: [13:33:00] * UndefinedOffset has joined #silverstripe
635: [13:51:00] * zenmonkey has joined #silverstripe
636: [14:01:00] * r3v3rb quit (Quit: r3v3rb)
637: [14:03:00] <zfmf> he guys, on a new installation i have problem in the cms, when i click a page, nothing happens, only when i reload the wanted page is visible, anyone an idea i dont get any js errors
638: [14:04:00] * zenmonkey quit (Quit: Leaving)
639: [14:06:00] * priithansen quit (Quit: priithansen)
640: [14:13:00] * chillu|afk is now known as chillu
641: [14:13:00] <UndefinedOffset> zfmf what version of silverstripe?
642: [14:14:00] <zfmf> i had the same on 3.04
643: [14:14:00] <zfmf> 3.0.3
644: [14:18:00] <UndefinedOffset> hmm... i have had issues were the cms doesn't display js responses, but its so inconsistant that i've never been able to track down why
645: [14:19:00] <UndefinedOffset> my only hunch is something to do with the response data or the js just forgets it made the request :S
646: [14:27:00] <ajshort> chillu: do you know who set up the travis stuff? I'm having some trouble setting up composer and travis integration
647: [14:28:00] * priithansen has joined #silverstripe
648: [14:28:00] <ajshort> I've opened about 100 pull requests, so people might start disliking me :)
649: [14:29:00] <ajshort> chillu: the problem is that I want to run composer install before a build is run
650: [14:29:00] <chillu> https://github.com/silverstripe/sapphire/commit/9e2e050f20d53344871b582c725753458172cd65
651: [14:29:00] <chillu> ajshort: Mostly me - it had trouble with building from cusotm branches in the last two months, which should be fixed now
652: [14:30:00] <ajshort> chillu: and it would be nice to use to use the one that's part of the pull request, in case they define new dependencies etc.
653: [14:30:00] <ajshort> chillu: but if I use the silverstripe-installer one, it pulls down cms etc. as well
654: [14:31:00] <chillu> That's impractical unfortuantely. Composer doesn't support sparse git checkouts, and a full sapphire checkout takes too long to run in CI.
655: [14:31:00] <ajshort> it only takes a few seconds
656: [14:32:00] <chillu> We could pull down ZIPs auto-generated by github (via composer install --prefer-dist)
657: [14:32:00] <ajshort> well not really, but it seems reasonably quick
658: [14:32:00] <chillu> We're already hitting our resource limits on Travis (10 mins for all steps), so I don't see that as viable. But happy to be convinced if you can get it building reliably on your own branch
659: [14:33:00] <ajshort> I think I might need to play around with a bit
660: [14:33:00] <ajshort> basically I need to extract the dependencies from the local framework copy being built, chuck that in a composer file, and then add the local framework copy as a dependency
661: [14:34:00] <chillu> Yeah you can specify custom repos
662: [14:34:00] <chillu> If you do, ensure to comment out the IRC notifications in travis.yml - otherwise it'll spam us here ;) There's unfortunately no way to configure this outside of the source (where it would be better placed)
663: [14:34:00] <ajshort> ok, willdo
664: [14:35:00] <ajshort> I need to implement it, since I'm actually using the composer autoloader now
665: [14:36:00] <ajshort> chillu: and just when I was ready to submit that pull request :)
666: [14:37:00] <chillu> :D
667: [14:42:00] <g4b0> I know that I can do the opposite: define a widget area that can contain just some widget
668: [14:42:00] <ocm> <% if Page(url) %>
669: [14:42:00] <g4b0> is it possible for a widget to decide if a page can contain it?
670: [14:42:00] * Shrike_Finland quit (Quit: Leaving.)
671: [14:43:00] * Shrike_Finland has joined #silverstripe
672: [14:43:00] <g4b0> I have to check if the page is decored by an extension...
673: [14:43:00] <ocm> or in the widget template
674: [14:43:00] <ocm> before your widgetarea?
675: [14:44:00] <g4b0> if the page can't contain it
676: [14:44:00] * Leon_ quit (Quit: Page closed)
677: [14:44:00] <g4b0> and I don't want to have the widget present into the CMS
678: [14:44:00] * ajshort quit (Quit: Leaving)
679: [14:44:00] * Shrike_Finland quit (Client Quit)
680: [15:02:00] * NobrainerWeb quit (Quit: NobrainerWeb)
681: [15:12:00] <BobBush> anyone here able to help?
682: [15:12:00] * BobBush has joined #silverstripe
683: [15:12:00] <BobBush> Hello!!
684: [15:13:00] <BobBush> I've got a funcion in a page controller that needs to return a list of dataobjects but also find the associated $has_many record in another dataobject and return a value
685: [15:15:00] <BobBush> I've tried to use the join function - which i got working with a SQLQuery but that means I can't access $logo for example in the initial DO as it's an array list
686: [15:15:00] <BobBush> tried the same with Datalist-> join ....... but can't see how I access the data in the joined table! any help???? x
687: [15:21:00] <kinglozzer> BobBush: So you can't use the built in ORM to access your data? You can use ->relation('RelationName') to access relations
688: [15:21:00] <kinglozzer> Also thanks for the kiss after the last question :P
689: [15:24:00] <BobBush> :) thanks will go give that a go!! might be back though - been scratching my head over this far too long.
690: [15:25:00] * C10ne quit (Ping timeout: 245 seconds)
691: [15:25:00] * cloph_away is now known as cloph
692: [15:42:00] <BobBush> kinglozzer: ok so i can see how that works kinda!! doing a debug I can see it's returning a HasManyList of the relations filtered by my where clause. But now how i "merge" that information with the original DO to return to the template together???
693: [15:45:00] * mrzero_ has joined #silverstripe
694: [15:45:00] <kinglozzer> BobBush: Can't you just do that in a template anyway when you use DataObect::get()? so <% control MyDataObjects %><% control RelatedObjects %>stuff with related objects<% end_control %><% end_control %>?
695: [15:47:00] * mrzero quit (Ping timeout: 255 seconds)
696: [15:47:00] * mrzero_ is now known as mrzero
697: [15:51:00] <BobBush> kinglozzer: apparently not - this is what i got:
698: [15:52:00] <BobBush> DayRate extends DO; $db days, costs
699: [15:52:00] <BobBush> Provider extends DO ; $has_may DayRates
700: [15:52:00] <BobBush> sorry for short hand
701: [15:53:00] <BobBush> a user enters a date range and is then redirected to a Compare Page where my function is sat
702: [15:54:00] <BobBush> which needs to: Work out the number of days from the dates provided, loop through all the providers and find the cost for that number of days
703: [15:55:00] * r3v3rb has joined #silverstripe
704: [15:55:00] <BobBush> and then obviously display the data on the page
705: [15:56:00] * ARNHOFF quit (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com ))
706: [15:56:00] <BobBush> If i do an SQLQuery I get all the data but can't call $Logo for example in the template as it returns a arraylist
707: [15:57:00] <BobBush> if a use a datalist it will return the provider DO fine and can use $Logo in the templates but can't access data in the DayRate DO
708: [15:57:00] * Liquide has joined #silverstripe
709: [15:58:00] <BobBush> your ->relations thing works but only return the data from the DayRate DO
710: [15:58:00] <BobBush> i just need it all together
711: [15:58:00] * r3v3rb quit (Client Quit)
712: [15:59:00] <kinglozzer> BobBush: If you can get it to do everything with SQLQuery, you can loop through the rows with a foreach ($result as $row) and do ArrayList->push(new MyDataObject($row))
713: [15:59:00] <kinglozzer> The reason $logo doesn't work is that its a database row, not an actual object. You just need to create an instance of it
714: [16:00:00] <kinglozzer> I have an example that might help, hold on
715: [16:01:00] <BobBush> cheers :)
716: [16:01:00] <kinglozzer> BobBush: http://pastie.org/6246790
717: [16:03:00] <BobBush> in this case would i need to create a class called 'ParkListing'
718: [16:03:00] <kinglozzer> BobBush: It's just an example, replace it with whatever DataObject you want to get
719: [16:04:00] <g4b0> is it possible to have the frontend in english and the backend in italian?
720: [16:08:00] <kinglozzer> g4b0: Just set locale to italian and enter content in English?
721: [16:09:00] <zfmf> i'm getting [Warning] is_readable(): open_basedir restriction in effect. File(/usr/share/pear/Zend/Translate/Adapter/I18nRailsYamlAdapter.php)
722: [16:09:00] <zfmf> why silverstripe is searching I18nRailsYamlAdapter.php in /usr/share/pear/Zend ??? its in framework i18n folder ???
723: [16:10:00] * catcher has joined #silverstripe
724: [16:10:00] <kinglozzer> g4b0: Ah I see. You could override the validation messages on each form field to solve that. Not sure apart from that though.
725: [16:10:00] <g4b0> Mmmm, how can I override it?
726: [16:10:00] <g4b0> kinglozzer: I did it, but automatic messeges like form validation are still in italian
727: [16:12:00] * onre quit (Ping timeout: 245 seconds)
728: [16:16:00] <BobBush> kinglozzer you are a Legend!!!!!! :) x
729: [16:17:00] <BobBush> ha!!
730: [16:17:00] <kinglozzer> g4b0: For each field, when you create it, you can call ->setCustomValidationMessage('xxx is required');
731: [16:17:00] <kinglozzer> BobBush: I know ;)
732: [16:18:00] * BobBush quit (Quit: Page closed)
733: [16:19:00] * onre is now known as Guest40576
734: [16:19:00] * onre has joined #silverstripe
735: [16:30:00] <g4b0> thanks kinglozzer
736: [16:31:00] <kinglozzer> No problem
737: [16:39:00] * UncleCheese has joined #silverstripe
738: [16:40:00] <UncleCheese> Totally getting owned by Composer right now
739: [16:47:00] <kinglozzer> I briefly tried composer, but our hosting doesn't support it so we have to manually manage dependencies on live sites anyway
740: [16:47:00] <kinglozzer> Might take a look at it in more detail after we switch
741: [16:47:00] <UncleCheese> i really like it in principle
742: [16:48:00] <kinglozzer> Was a pain in the ass to get setup on my local machine though
743: [16:59:00] * g4b0 quit (Remote host closed the connection)
744: [17:00:00] * ocm quit ()
745: [17:08:00] * kinglozzer quit (Remote host closed the connection)
746: [17:09:00] * cloph quit (Ping timeout: 276 seconds)
747: [17:13:00] * cloph_away has joined #silverstripe
748: [17:14:00] * cloph_away is now known as cloph
749: [17:30:00] * Motoservo quit (Quit: Over & out.)
750: [17:42:00] * Motoservo has joined #silverstripe
751: [17:52:00] * FrozenFire snickers: http://mediadevils.com/software/?partytime=yes
752: [17:54:00] * simon_w|air quit (Quit: Leaving)
753: [17:54:00] * simon_w|air leaves!
754: [18:07:00] * SightUnseen has joined #silverstripe
755: [18:07:00] * SightUnseen has left #silverstripe
756: [18:30:00] <UncleCheese> How do I upgrade to 3.1 beta using composer?
757: [18:31:00] <UncleCheese> ahhhh
758: [18:31:00] <FrozenFire> Change your composer.json and then composer update
759: [18:32:00] * ARNHOFF has joined #silverstripe
760: [18:32:00] <FrozenFire> That's for installing new packages as dependencies
761: [18:32:00] <UncleCheese> composer update.. ok
762: [18:32:00] <UncleCheese> i was doing composer install, and that just looks at the .lock file
763: [18:32:00] <FrozenFire> Heh
764: [18:34:00] <UncleCheese> oh.. i thought that was composer require?
765: [18:37:00] <FrozenFire> Perhaps it's that you can put a composer.json file in a directory and run composer install
766: [18:37:00] <FrozenFire> Hrmm, you may be right.
767: [18:38:00] <FrozenFire> Then it'll set up a fresh project locally
768: [18:38:00] <FrozenFire> But updating it requires composer update
769: [18:38:00] <FrozenFire> Hard to keep one's head straight with all of these package managers.
770: [18:38:00] <FrozenFire> apt, pecl, pear, composer, npm, etc.
771: [18:41:00] <UncleCheese> yeah, totally
772: [18:41:00] <UncleCheese> have you ever had it just freeze on "Updating dependencies?"
773: [18:41:00] <FrozenFire> Perhaps. When I create projects, I use --prefer-source and --keep-vcs, so it's less inclined to do that, and also lets me manage the dependencies as git submodules more easily.
774: [18:42:00] <FrozenFire> When doing that, updates are managed through git
775: [18:44:00] <UncleCheese> i'm rapidly losing my enthusiasm
776: [18:47:00] <FrozenFire> I agree. I don't use composer much
777: [18:47:00] <FrozenFire> But beyond that, I don't bother with it.
778: [18:47:00] <FrozenFire> XD
779: [18:47:00] <FrozenFire> I use it to manage the installation of SilverStripe itself, just because it's a bit more simple.
780: [18:54:00] * ARNHOFF is now known as ARNHOE
781: [18:57:00] * Nivery has joined #silverstripe
782: [18:58:00] * gelignite has joined #silverstripe
783: [19:02:00] * SightUnseen has joined #silverstripe
784: [19:02:00] * SightUnseen has left #silverstripe
785: [19:23:00] * nickmolhoek has joined #silverstripe
786: [19:23:00] * nickmolhoek quit (Remote host closed the connection)
787: [19:24:00] * nickmolhoek has joined #silverstripe
788: [19:29:00] * DigNZ quit (Remote host closed the connection)
789: [19:29:00] * DigNZ has joined #silverstripe
790: [19:29:00] * DigNZ has joined #silverstripe
791: [19:34:00] * Pyromanik has joined #silverstripe
792: [19:34:00] * slith has joined #silverstripe
793: [19:46:00] <catcher> does SS2.4 have known issues with php 5.4.4?
794: [19:47:00] * Andi_de_ has left #silverstripe
795: [19:47:00] <Pyromanik> catcher: 5.4 won't work at all unless you're using 2.4.9 or above
796: [19:47:00] <catcher> hm, appears so
797: [19:48:00] <catcher> It's working on an older 2.4, but only if I quiet warnings (live mode)
798: [19:49:00] <Pyromanik> odd
799: [19:50:00] <Pyromanik> apparently it has issues (assuming that it has the same issues that afflicted it's upstream release [3.0.4]). Perhaps chillu could verify?
800: [19:50:00] <Pyromanik> upgrade
801: [19:50:00] <Pyromanik> anyway
802: [19:50:00] <Pyromanik> not sure about 2.4.10 though
803: [19:52:00] <catcher> Array to string conversion warnings are the worst I've seen so far, but I expect more to crop up. Dev only, so fine for now.
804: [19:58:00] * Bollig|DesignCty has joined #silverstripe
805: [20:06:00] * ajshort has joined #silverstripe
806: [20:06:00] <ajshort> simon_w: can you clarify: "I think that including the extension is a good thing"?
807: [20:07:00] <ajshort> At the moment the extension is _not_ included when matching the URL, I've changed it so it is
808: [20:07:00] <irogue> "Firefox for Windows, Mac and Linux introduces a built-in browser PDF viewer that allows you to read PDFs directly within the browser, making reading PDFs easier because you don???t have to download the content or read it in a plugin like Reader."
809: [20:07:00] <irogue> about time?
810: [20:09:00] * Guest40576 quit (Changing host)
811: [20:09:00] * Guest40576 has joined #silverstripe
812: [20:10:00] * SightUnseen has left #silverstripe
813: [20:10:00] * Guest40576 is now known as onre
814: [20:10:00] * SightUnseen has joined #silverstripe
815: [20:12:00] <Pyromanik> "built-in browser PDF viewer that allows you to read PDFs directly within the browser, making reading PDFs easier because you don?t have to download the content or read it in a plugin like Reader."
816: [20:12:00] <Pyromanik> irogue: "Firefox for Windows, Mac and Linux introduces a built-in browser PDF viewer that allows you to read PDFs directly within the browser, making reading PDFs easier because you don?t have to download the content or read it in a plugin like Reader."
817: [20:12:00] <Pyromanik> "making reading PDFs easier because you don?t have to download the content or read it in a plugin like Reader."
818: [20:13:00] <Pyromanik> "because you don?t have to download"
819: [20:13:00] <Pyromanik> "download"
820: [20:13:00] <Pyromanik> -.-
821: [20:14:00] <Pyromanik> A browser that works without downloading? ORLY?
822: [20:21:00] <irogue> Pyromanik: lol
823: [20:26:00] <ss23> lol
824: [20:27:00] <ss23> DO YOU EVEN
825: [20:27:00] <ss23> Reminds me of people "wow don't download stuff, just use youtube"
826: [20:32:00] <UncleCheese> you can't turn that stupid thing off?
827: [20:32:00] * Nivery has left #silverstripe
828: [20:32:00] <UncleCheese> it's persistent now?
829: [20:32:00] <UncleCheese> what's going on with the preview mode in 3.1?
830: [20:36:00] * ARNHOE quit (Read error: Connection reset by peer)
831: [20:40:00] <Pyromanik> where it's always been?
832: [20:40:00] <Pyromanik> UncleCheese: did you try clicking the off button?
833: [20:40:00] <UncleCheese> oooh
834: [20:40:00] * novaweb has joined #silverstripe
835: [20:40:00] <UncleCheese> where's that?
836: [20:41:00] <UncleCheese> try the latest 3.1
837: [20:41:00] <UncleCheese> i'm not sure what they were thinking
838: [20:41:00] <novaweb> Morning Strippers, another day another dollar. Bulgaria's Government resigned yesterday... horrah! http://www.guardian.co.uk/world/2013/feb/20/bulgarian-government-resigns-protests
839: [20:41:00] <UncleCheese> it's weird
840: [20:41:00] <UncleCheese> and all i have is a choice of "desktop, tablet, mobile"
841: [20:41:00] <UncleCheese> It seems when my screen reaches a certain width, it turns on
842: [20:42:00] <Pyromanik> UncleCheese: did you try the button next to the "desktop,tablet,mobile" selector?
843: [20:43:00] <UncleCheese> I have a "draft" button, then "Published" then two arrows stacked on top of each other
844: [20:43:00] <UncleCheese> i think you need the latest 3.1.. i just updated and this problem started
845: [20:44:00] <Pyromanik> sec
846: [20:45:00] <UncleCheese> you're right
847: [20:45:00] <UncleCheese> oooh
848: [20:45:00] <UncleCheese> it has display:none on it
849: [20:45:00] <Pyromanik> did you try inspecting the source to see if something isn't affecting it?
850: [20:45:00] * DigNZ quit (Quit: DigNZ)
851: [20:46:00] <UncleCheese> wtf
852: [20:46:00] <UncleCheese> and of course! i have a js error
853: [20:48:00] <novaweb> Pyromanik: I am an Earthling
854: [20:48:00] <irogue> beta!
855: [20:48:00] <Pyromanik> novaweb: are you Bulgarian?
856: [20:49:00] <novaweb> I see no borders or boundaries.
857: [20:49:00] <Pyromanik> Are you originating from that particular geographical region then?
858: [20:49:00] <Pyromanik> Right, I see.
859: [20:50:00] <novaweb> I was initiated in New Zealand
860: [20:50:00] <Pyromanik> I see.
861: [20:50:00] <novaweb> '
862: [20:51:00] <Pyromanik> Can't keep a robot down
863: [20:53:00] <Pyromanik> how to cookie from silverstripe?
864: [20:53:00] <Pyromanik> no not session but yes cookie.
865: [20:56:00] <ss23> Pyromanik: If you had a like button, I'd press it <3
866: [20:57:00] <Pyromanik> y?
867: [20:59:00] <irogue> cos he wants your peen
868: [20:59:00] <ss23> lol
869: [20:59:00] <Pyromanik> Well, he's not the first.
870: [20:59:00] <Pyromanik> oic
871: [21:00:00] <Pyromanik> o look, 10am
872: [21:00:00] <irogue> Monster tiem!
873: [21:01:00] * ajshort quit (Quit: Leaving)
874: [21:02:00] <irogue> also, reboot tiem!
875: [21:02:00] * irogue quit ()
876: [21:08:00] <FrozenFire> To ensure it's one of the original values.
877: [21:08:00] <FrozenFire> Is there a way to validate a dropdown against its definition?
878: [21:08:00] <FrozenFire> It occurs to me that there's no validation necessarily done on the value of a dropdown by a Form
879: [21:09:00] * UndefinedOffset quit (Quit: Leaving.)
880: [21:09:00] <FrozenFire> I can see why it doesn't do so, but I'd like to do so...
881: [21:10:00] * DigNZ has joined #silverstripe
882: [21:10:00] * helenclarko has joined #silverstripe
883: [21:12:00] * irogue has joined #silverstripe
884: [21:12:00] <helenclarko> Does anyone know if Aram Balakjian's "Registering Users and allowing them to edit their details" Module is available for SS2.4?
885: [21:12:00] <FrozenFire> Like lxr.silverstripe.org
886: [21:12:00] <FrozenFire> Someone should set up OpenGrok on silverstripe.org...
887: [21:13:00] <novaweb> i'll donate you a reg system I have that can do that... so long as you have some silverstripe knowledge and can get it up and running yo'self
888: [21:13:00] <novaweb> helenclarko, email josh@novaweb.co.nz
889: [21:13:00] <FrozenFire> Or just give it through here. :P
890: [21:14:00] <FrozenFire> sspaste.com
891: [21:14:00] <FrozenFire> pastebin
892: [21:14:00] <novaweb> How so? You can't post files to IRC can you?
893: [21:15:00] <FrozenFire> http://www.sspaste.com/paste/show/51253cf2596bb
894: [21:16:00] <helenclarko> Thanks
895: [21:17:00] <helenclarko> novaweb, I needed it for Swipestripe.
896: [21:17:00] <novaweb> FrozenFire then one I have enables the user to edit their details too
897: [21:17:00] <FrozenFire> There's probably something already in SwipeStripe for doing registrations
898: [21:17:00] <FrozenFire> He could probably help with that.
899: [21:17:00] * FrozenFire wonders where tankr is
900: [21:18:00] <FrozenFire> That'll let them edit details.
901: [21:18:00] <FrozenFire> There's the memberprofiles module for 2.4
902: [21:18:00] <helenclarko> There is, but its built into the checkout process
903: [21:18:00] <novaweb> I have no idea what swipestripe is!
904: [21:18:00] <helenclarko> someone had already given me code for Swipestripe
905: [21:21:00] <helenclarko> http://pastebin.com/3YrswR1K
906: [21:21:00] <irogue> novaweb: quality (and paid-for) ecommerce module - http://swipestripe.com/
907: [21:22:00] <ss23> I thought you were making a novopay joke, irogue
908: [21:22:00] <FrozenFire> Personally I prefer to call it a storefront module.
909: [21:22:00] <ss23> I was like "hahah high quality module, novopay..."
910: [21:22:00] <Pyromanik> wtf is opengrok?
911: [21:22:00] <FrozenFire> I do a lot of ecommerce, and SwipeStripe is far from sufficient for everything but storefront ecommerce.
912: [21:22:00] <novaweb> irogue do you know who the developer is?
913: [21:23:00] <Pyromanik> google code search?
914: [21:23:00] <novaweb> ss23 ^^
915: [21:23:00] <FrozenFire> Pyromanik, Fast symbol searching engine.
916: [21:23:00] <Pyromanik> FrozenFire: at a guess I'd say tankr is at home
917: [21:23:00] <FrozenFire> Like grep, essentially, but online and with some additional functionality.
918: [21:23:00] <Pyromanik> ic
919: [21:23:00] <FrozenFire> Somewhat.
920: [21:24:00] <Pyromanik> novaweb: tankr
921: [21:24:00] <Pyromanik> is the dev of swipestripe
922: [21:24:00] * zfmf has left #silverstripe
923: [21:25:00] <Pyromanik> also the chat is logged, might not wanna go plonking your email where spambots can find it later
924: [21:25:00] <ss23> Pyromanik@gmail.com
925: [21:25:00] <ss23> :D
926: [21:25:00] <Pyromanik> cock
927: [21:26:00] <Pyromanik> lulz
928: [21:26:00] <FrozenFire> ss23@ss23.geek.nz
929: [21:27:00] <helenclarko> hahaha
930: [21:28:00] <novaweb> johkeysafag@national.org.nz
931: [21:28:00] <novaweb> since we're playing this game
932: [21:29:00] <novaweb> hahaha
933: [21:29:00] <Pyromanik> not extremely
934: [21:29:00] <novaweb> easy as! 5 minute job, especially the bigger modules
935: [21:29:00] <FrozenFire> My first question would be "WHY!?!?!"
936: [21:29:00] <FrozenFire> I think you missed the aim of the game.
937: [21:29:00] <Pyromanik> everyone hates on the jakey
938: [21:29:00] <Pyromanik> I think he just lost the game.
939: [21:29:00] <helenclarko> How hard is it to rewrite a SS3.0 module to work with 2.4.5
940: [21:32:00] <helenclarko> Great! Guess I'll give it a go.
941: [21:32:00] * mirrors has joined #silverstripe
942: [21:33:00] <FrozenFire> Have you tried $obj->Field = "0"?
943: [21:33:00] <mirrors> Hey when a define a field as Text and then try to save 0 to that fields it just saves NULL in the db
944: [21:33:00] <mirrors> i need to actually save 0
945: [21:33:00] <FrozenFire> Or (string) $val
946: [21:34:00] <mirrors> the value is entered from user input
947: [21:34:00] <FrozenFire> Is there a reason you're using a Text field to store a "0"?
948: [21:35:00] <mirrors> i am storing football game results
949: [21:35:00] <mirrors> i wanted to use an Int field however is doesnt let me store null
950: [21:35:00] <FrozenFire> What are you storing?
951: [21:35:00] <mirrors> if the game has not been played I do not want to store anything
952: [21:36:00] <FrozenFire> How about just "Played" => "Boolean"
953: [21:36:00] <mirrors> thus null
954: [21:36:00] <helenclarko> Is there any documentation for changing a module from SS2 to SS3? Something I could work backwards from?
955: [21:37:00] <mirrors> and not have yet another field
956: [21:37:00] * fpereira1 has joined #silverstripe
957: [21:37:00] <mirrors> yeah i wanted the logic to be smart enough to work it out from the scores
958: [21:37:00] <FrozenFire> Inasmuch as it's not all that complicated, if you have to ask that question you'll probably not have the knowledge to get it done.
959: [21:37:00] <FrozenFire> Sounds like a bad idea, mirrors
960: [21:38:00] <FrozenFire> It can get mangled any number of ways.
961: [21:38:00] <FrozenFire> Implied state is yucky
962: [21:38:00] <mirrors> ok cheers....ill add the boolean
963: [21:40:00] * fpereira1 has left #silverstripe
964: [21:47:00] * SightUnseen has joined #silverstripe
965: [21:50:00] * SightUnseen has left #silverstripe
966: [21:57:00] <catcher> Is Varchar my best choice if I need a bigint?
967: [21:57:00] * howardgrigg has joined #silverstripe
968: [21:59:00] * fpereira1 has joined #silverstripe
969: [22:06:00] <FrozenFire> There's Double
970: [22:06:00] <FrozenFire> How big?
971: [22:10:00] <catcher> with a cast, which I suppose I could do for bigint too.
972: [22:12:00] * DigNZ quit (Quit: DigNZ)
973: [22:20:00] * DigNZ has joined #silverstripe
974: [22:36:00] * guci0 quit (Ping timeout: 245 seconds)
975: [22:40:00] * Colin[pi] has joined #silverstripe
976: [22:43:00] * UncleCheese quit (Quit: UncleCheese)
977: [22:43:00] * ajshort has joined #silverstripe
978: [22:44:00] * cloph is now known as cloph_away
979: [22:44:00] <Colin[pi]> good morning all ;D
980: [22:44:00] <Pyromanik> hi
981: [22:46:00] <novaweb> Howdee
982: [22:49:00] * slith quit (Quit: Leaving.)
983: [22:56:00] <catcher> making a simple request to twitter api from an onBeforeWrite.. curl? file_get_contents? restfulservice?
984: [22:59:00] <FrozenFire> How about not?
985: [22:59:00] <FrozenFire> That seems like a very thoroughly bad idea.
986: [23:00:00] <FrozenFire> Blocking a write on an external HTTP service is absolutely bound to cause you problems.
987: [23:00:00] <irogue> at least do it in onAfterWrite so it can't stop the write happening
988: [23:02:00] <FrozenFire> Or better yet, have a method on the object that is called by your controller.
989: [23:02:00] <FrozenFire> That way subsequent writes don't have to worry about it at all.
990: [23:03:00] * mirrors quit (Quit: Page closed)
991: [23:04:00] <catcher> I need to convert twitter handles to IDs automatically, ideally when the record is saved. I also need control over the ID field so it can be overridden manually.
992: [23:05:00] <FrozenFire> Doing that every single time you write the record is going to cause you enormous problems.
993: [23:05:00] <FrozenFire> Do that in your controller.
994: [23:05:00] <FrozenFire> Or in your setField
995: [23:05:00] <FrozenFire> I guarantee it.
996: [23:07:00] <FrozenFire> No
997: [23:07:00] <catcher> If I tied it to a controller action, I'd need js to populate the field in the cms, no?
998: [23:08:00] <FrozenFire> SilverStripe mixes model, view and controller a bit
999: [23:08:00] <FrozenFire> getField ends up being a little bit view
1000: [23:08:00] <FrozenFire> setField ends up being a little bit controller.
1001: [23:08:00] <FrozenFire> Not the Controller.
1002: [23:08:00] <FrozenFire> I'm talking about the theoretical controller.
1003: [23:08:00] <catcher> how else does the controller action get called?
1004: [23:09:00] <catcher> k, not familiar with setField, I'll check it out.
1005: [23:09:00] <FrozenFire> Setters and getters?
1006: [23:09:00] <FrozenFire> Let's say you have Member::setTwitterHandle and Member::getTwitterHandle
1007: [23:09:00] <catcher> oh.
1008: [23:09:00] <FrozenFire> You'd have a form field called TwitterHandle, but no field on Member for TwitterHandle
1009: [23:10:00] <FrozenFire> No
1010: [23:10:00] <catcher> and write to the db, independently of the object write?
1011: [23:10:00] <FrozenFire> When you save that form field into Member, it would call setTwitterHandle
1012: [23:10:00] <FrozenFire> You do your lookup there, converting your ID and doing $this->TwitterID = $someID;
1013: [23:10:00] <FrozenFire> In Member::getTwitterHandle, you would get the handle based on ID
1014: [23:10:00] <FrozenFire> Using SS_Cache to cache those results
1015: [23:11:00] * guci0 has joined #silverstripe
1016: [23:11:00] <FrozenFire> Just set the field on the record. The controller will call write
1017: [23:12:00] <catcher> But member has no such field, how can it write to the db anyway?
1018: [23:15:00] <FrozenFire> Whatever it's being saved on is what you want the setter and getter to be on.
1019: [23:15:00] <FrozenFire> We're talking about a DataExtension
1020: [23:15:00] <FrozenFire> Or at least, I presumed we were
1021: [23:15:00] <FrozenFire> Something is allowing a twitter handle to be saved.
1022: [23:16:00] <catcher> I think I follow, I'll see where I get
1023: [23:17:00] * helenclarko quit (Ping timeout: 245 seconds)
1024: [23:17:00] <catcher> thanks for the tip.
1025: [23:17:00] * guci0 quit (Ping timeout: 245 seconds)
1026: [23:18:00] <FrozenFire> http://www.sspaste.com/paste/show/512559d695a58
1027: [23:18:00] <FrozenFire> Something like that.
1028: [23:19:00] <FrozenFire> Then you can have a TextField for Member named "TwitterHandle"
1029: [23:23:00] <FrozenFire> Hrmm, found an interesting bug.
1030: [23:24:00] <FrozenFire> Even going to another page and going back, it still shows the group name in the breadcrumbs.
1031: [23:24:00] <FrozenFire> If you're in SecurityAdmin, and you select a member from a group, then go back to the full user list, it still says the group name in the breadcrumbs. It also continues to show the group name in the breadcrumbs when selecting a user from the full list of users.
1032: [23:25:00] <FrozenFire> Seems it's in the session or something.
1033: [23:26:00] <FrozenFire> I wish that the visibility settings for SiteTree included a "Logged-out users" by default.
1034: [23:27:00] <FrozenFire> So that you could hide things like your registration page from logged-in users without resorting to either template hacks or writing a specific canView
1035: [23:28:00] * SightUnseen has left #silverstripe
1036: [23:28:00] <Pyromanik> helenclarko: yep, the changelog for 3.0.0
1037: [23:28:00] <Pyromanik> oh, quit, stink
1038: [23:28:00] * SightUnseen has joined #silverstripe
1039: [23:33:00] * irogue munches some Pork Chops for lunch
1040: [23:33:00] <catcher> FrozenFire, thanks for that example. How would the args be passed to the methods?
1041: [23:34:00] <catcher> It complains about them missing.. when I take them out of the definition, the setter is called, but the write doesn't happen.
1042: [23:34:00] <catcher> well, the write of my additional field, that is.
1043: [23:35:00] <FrozenFire> Let's say that this extension is on Member
1044: [23:35:00] <FrozenFire> I'm not sure what you're asking.
1045: [23:36:00] <FrozenFire> Saving a form into $member with a field having that name will result in it calling setTwitterHandle($handle) with that field value.
1046: [23:36:00] <FrozenFire> When you do $member->TwitterHandle = "handle"; it calls setTwitterHandle
1047: [23:36:00] <FrozenFire> When you try to get $member->TwitterHandle, it calls getTwitterHandle
1048: [23:37:00] * UncleCheese has joined #silverstripe
1049: [23:38:00] <catcher> Saving the record in the CMS with a formfield called TwitterHandle gives me an error about the arg not being passed.
1050: [23:38:00] <FrozenFire> Calling $form->loadDataFrom($member) (as the CMS would, for instance) will call getTwitterHandle for a field with that name.
1051: [23:38:00] <FrozenFire> Which arg?
1052: [23:39:00] <FrozenFire> Are you sure it's the invocation of setTwitterHandle that's being bitchy, or some other code in the method body?
1053: [23:39:00] <catcher> Looking again, it's at least the get method complaining about the only arg missing.
1054: [23:40:00] <catcher> np, thanks
1055: [23:40:00] <FrozenFire> The get method should not have an argument
1056: [23:40:00] <catcher> ah, kk
1057: [23:40:00] <FrozenFire> I know I wrote that it did.
1058: [23:40:00] <FrozenFire> :P
1059: [23:40:00] <FrozenFire> Sorry. Was thinking wrongly.
1060: [23:41:00] <catcher> my setter is called as expected, where I'm setting the actual db field, but it's not written to the DB
1061: [23:42:00] <FrozenFire> Setters should never write the record.
1062: [23:42:00] <FrozenFire> Where is this controller?
1063: [23:42:00] <FrozenFire> Is it your own form on your own controller?
1064: [23:42:00] <FrozenFire> If so, you have to write the object yourself after saving the form into the object.
1065: [23:43:00] <catcher> it's an object administered by modeladmin.
1066: [23:44:00] * UncleCheese quit (Quit: UncleCheese)
1067: [23:46:00] <catcher> weird, the setter is even called before onBeforeWrite
1068: [23:47:00] <FrozenFire> That's how it works.
1069: [23:47:00] <FrozenFire> Changing the DataObject doesn't mean a write.
1070: [23:47:00] <FrozenFire> Yes.
1071: [23:49:00] <catcher> I was wrong, it's being set just fine - just need to get the getter populating the cms field.
1072: [23:50:00] <catcher> and voila
1073: [23:50:00] * ajshort quit (Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331])

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