#silverstripe IRC Log

IRC log for 25 October 2013

All timestamps are in UTC.

1: [00:00:03] <Zauberfisch23> Jakx: my first guess would be that it fails if no session has been started yet
2: [00:01:19] <Jakx> i.e I'm trying to overwrite an existing session variable, it works fine when called immediately after the Session::set() (in the same execution), but then when Session::get() is called in a separate execution it reverts to the previous value.
3: [00:01:51] <Jakx> thus, fails to overwrite the session variables value
4: [00:02:47] <DaShiVaDan> can anyone expand on what this debug line means?: Debug (line 139 of ModelAsController.php): Using record #10 of type EntrantListingPage with link /entrants/
5: [00:08:04] <DaShiVaDan> (trying to figure out where it checks if the entrant is 'paid' still, so i can remove teh check - this is why I hate OO :P)
6: [00:09:42] * SightUnseen has joined #silverstripe
7: [00:10:13] * SightUnseen has left #silverstripe
8: [00:10:25] * BPower has joined #silverstripe
9: [00:12:10] <Zauberfisch23> Jakx: no idea sorry
10: [00:13:12] * antmas has joined #silverstripe
11: [00:13:23] <antmas> oh hell, I might have to buy a drone :\ http://www.stuff.co.nz/world/australia/9326399/Firefighters-take-advantage-of-cooler-weather
12: [00:13:32] <Jakx> Zauberfisch23, all good. It means I most likely should be looking elsewhere for the issue, and that's really helpful.
13: [00:13:40] <Jakx> Zauberfisch23, ty
14: [00:16:48] <DaShiVaDan> I remember seeing a page online somewhere that explained how a url is parsed and handled through the controllers, etc, but I must be misremembering cause I still can't track this down: for a url of site.com/Types/show/type-identifier - where would it look for type-identifier in order to verify teh database entry for it exists to decide if the 'page' exists, or if it's an errorpage?
15: [00:17:15] <DaShiVaDan> (I think teh last guy edited core files again here)
16: [00:17:58] <Jakx> DaShiVaDan, how the url is passed depends on your director configuration and/or sitetree
17: [00:18:14] <DaShiVaDan> Jakx: where do I look this up?
18: [00:19:08] * andylockran quit (Ping timeout: 240 seconds)
19: [00:19:13] <Jakx> if the director config or site tree doesn't a controller assigned to a URL, it will return the error controller with a 404.
20: [00:19:21] <Jakx> doesn't have*
21: [00:19:51] <Jakx> http://doc.silverstripe.org/framework/en/reference/director
22: [00:20:31] <Jakx> then http://doc.silverstripe.org/framework/en/topics/controller
23: [00:21:41] <DaShiVaDan> well I have the following types of files in mysite/code: Entrant.php; EntrantAdmin.php; EntrantListingPage.php; EntrantSearchForm.php - now there's a page to search entrants, and when you click on one of the matches, you go to: /Entrants/show/firstname-lastname-# where # is for multiple entrants with same name. It checks the DB for the url segment stored for the member, and finds them and displays them. But I'm getting an er
24: [00:21:59] <DaShiVaDan> entrant is not flagged as 'Paid' - but I can't figure out where this check is and i've searched and searched...
25: [00:22:48] <Jakx> DaShiVaDan, what is the full error?
26: [00:22:58] <DaShiVaDan> and i'm not 100% sure that is the reason, so i'd ratehr search for where teh check would be by how SS 2.4 works, not by searching for strings like 'Paid' and such
27: [00:23:05] <DaShiVaDan> i just get a 'page not found' error
28: [00:23:23] <DaShiVaDan> i.e. it can't find the entrant. But I can't find where it checks for teh entrant
29: [00:23:38] <DaShiVaDan> to fix whatever logic is deciding they're not there
30: [00:23:45] <DaShiVaDan> should be easy to find too, i would have thought
31: [00:23:54] <Jakx> Is Entrant an extension of Page_Controller?
32: [00:23:54] <DaShiVaDan> i still can't quite believe i am asking something that should be so basic
33: [00:24:09] <DaShiVaDan> nope, of Member
34: [00:24:33] <DaShiVaDan> perhaps whoever wrote this edited the core Member.php security file again
35: [00:25:11] <Jakx> So which controller is handling your youdomain.com/entrants//$Action/$ID... URL?
36: [00:25:24] <DaShiVaDan> that is what i am trying to figure out :P
37: [00:25:40] <Jakx> DaShiVaDan, have you configured one?
38: [00:25:58] <Jakx> DaShiVaDan, are you in 2.4?
39: [00:26:18] <DaShiVaDan> Jakx: if I click on teh same 'link' for an entrant who is 'Paid' then it works, it only returns errorpage if entrant is not flagged 'Paid' and yes, 2.4
40: [00:27:43] <Jakx> DaShiVaDan, you'll most likely find the method you're looking for as show() in whichever class is the controller for that URL.
41: [00:28:44] <Jakx> You most likely would have configured which class this is by either a Director::ad_Rules(100, array('entrants//$Action/$ID... or in your CMS pages manager
42: [00:28:45] <DaShiVaDan> Jakx: yeah been looking for that, i might just search all custom files for 'function show' and see what comes up, but the catch is I had an issue where Entrant's couldn't even log in if not paid, and eventually found that the previous programmer had edited teh core files to do this, so i'm not sure where to look for this one
43: [00:29:15] <DaShiVaDan> Jakx: also, no 'show' function in any of the mysite code
44: [00:29:47] <Jakx> DaShiVaDan, who setup the site structure?
45: [00:29:48] * joelpittet quit (Remote host closed the connection)
46: [00:30:33] <DaShiVaDan> Jakx: the solo fresh-out-of-college programmer who quit about a week before I started (I am only programmer here)
47: [00:30:41] <Pyromanik> 13:08 < DaShiVaDan> (trying to figure out where it checks if the entrant is 'paid' still, so i can remove teh check - this is why I hate OO :P)
48: [00:30:47] * joelpittet has joined #silverstripe
49: [00:30:51] <DaShiVaDan> lol pyro :) yes
50: [00:30:51] <Pyromanik> because proceedural would be so much easier in this case?
51: [00:30:59] <Pyromanik> how so?
52: [00:31:03] <DaShiVaDan> if it was procedural i would have found it an hour ago :)
53: [00:31:09] <Pyromanik> nuh uh.
54: [00:31:21] <DaShiVaDan> cause i'm better at it. not necessarily because procedural is better heh just stirring some
55: [00:31:27] <Pyromanik> I know
56: [00:31:37] * nickmolhoek quit (Quit: nickmolhoek)
57: [00:31:42] <Pyromanik> but either way you have a mess of files with some rando function called from some loop with data you're not too sure of.
58: [00:31:53] <Pyromanik> I'd say there's no difference in debugging either.
59: [00:31:57] <oddnoc> It's cocktail:30 o'clock. Cheers & bye.
60: [00:32:00] * oddnoc quit (Quit: bye!)
61: [00:32:06] <Pyromanik> Code always executes in a linear fashion through a program.
62: [00:32:13] <wracu> back
63: [00:32:26] <Pyromanik> unless of course it's threaded :<
64: [00:32:28] <Pyromanik> but F that.
65: [00:32:46] <DaShiVaDan> yeah but without tools i find procedural code is very simple to follow the flow, you can debug it by eye pretty much just following through the logic. with OO you gotta go all over the place tracking stuff down, and for every line of code you follow, you have to backtrack into an unknown number of parents and such just to track what is going on
66: [00:32:57] <wracu> Zauberfisch23: yes 'Find' was a custome page type
67: [00:33:05] <DaShiVaDan> yeah i haven't done threading since i last wrote C code and that was 20 years ago
68: [00:33:06] <Pyromanik> not really.
69: [00:33:29] <Pyromanik> either way you're wading trhough files.
70: [00:33:38] <Jakx> DaShiVaDan, your page controller is a custom configuration at your end. I don't think I can tell you where it is without knowing what configuration you have sorry. Look in your _config.php files for a Director::add_rules( method, then check your CMS pages for a page with the URLSegment entrants/show/
71: [00:34:00] <wracu> i sorted the routes.yml issue I was having. The items/number1 was not working because there was a page called items already.
72: [00:34:02] <DaShiVaDan> but if i'd just properly learn OO and SS i'm sure i would find stuff fine. my main problem is working on my first SS site with no background and noone to talk to :P whinge whine bitch and moan :)
73: [00:34:28] <Pyromanik> yeh, I understand your position.
74: [00:34:32] <wracu> i now have site.dev/items/find/show/number1 showing as site.dev/item/number1 while still allowing browsing through to site.dev/items/find
75: [00:34:33] <Jakx> DaShiVaDan, ditto
76: [00:35:03] <DaShiVaDan> wracu: nice, that's what you needed right?
77: [00:35:09] <Pyromanik> DaShiVaDan: but you have us to talk to! <3
78: [00:35:41] <DaShiVaDan> Pyromanik: yeah, making a big difference already with my dumb questions :)
79: [00:35:57] <Pyromanik> [13:25:11] <Jakx> So which controller is handling your youdomain.com/entrants//$Action/$ID... URL?
80: [00:35:59] * joelpittet quit (Ping timeout: 272 seconds)
81: [00:36:00] <Pyromanik> 781: [13:25:24] <DaShiVaDan> that is what i am trying to figure out :P
82: [00:36:02] <Pyromanik> ?debug_request
83: [00:36:17] <spronk> ss3.x have anything inbuilt for "link to external site or internal page" object?
84: [00:36:38] * UncleCheese has joined #silverstripe
85: [00:36:42] <wracu> DaShiVaDan: yup
86: [00:36:43] <Pyromanik> spronk: Director::blah blah something url check me
87: [00:36:43] <Zauberfisch23> spronk: not that I am aware of, but there are several modules that offer such fields
88: [00:36:47] <DaShiVaDan> there's no debug or similar querystring i can add to teh url to find out what method it tried to use to find the entrant? (I;'ve tried all teh diff debug options i can find so far, Someone linked a page here yesterday with all of them thanks) but either I can't follow it, or it just doesn't tell me
89: [00:36:55] <Zauberfisch23> Pyromanik: I think spronk is talking about a form field
90: [00:36:59] <DaShiVaDan> there's no custom stuff in _config.php
91: [00:37:08] <DaShiVaDan> there's no yaml or whatever file at all
92: [00:37:09] <Zauberfisch23> checkout https://github.com/lrc/silverstripe-link-field
93: [00:37:29] <Pyromanik> Zauberfisch23: ueh, me too. But no, there isn't, but there is a helper function in director that'd let him easily make one :)
94: [00:37:29] <DaShiVaDan> the only places i see '/entrants/show' in mysite *.php is when it's building the links
95: [00:37:47] <Pyromanik> DaShiVaDan: there is ?debug, ?debug_request
96: [00:37:51] <Pyromanik> those two your most helpful
97: [00:38:01] <Jakx> DaShiVaDan, have you checked the CMS too?
98: [00:38:12] <Zauberfisch23> Pyromanik: I don't see how the Director could create formfields for me, or help me with them
99: [00:38:23] <Pyromanik> if you want a stack trace, place a user_error('haha!'); in your code for entrant or whatever it is you're debugging
100: [00:38:42] <Pyromanik> Zauberfisch23: well if you have a field that stores a link, you can check if it is to an external site.
101: [00:39:04] * wracu has left #silverstripe
102: [00:39:18] <Zauberfisch23> Pyromanik: ok, I see, well, the module offers a dropdown to select a page, or if you select external, it displays a textfield
103: [00:39:36] <Pyromanik> ah, missed your module line.
104: [00:39:49] <DaShiVaDan> Pyromanik: Debug (line 128 of RequestHandler.php): Rule '$Action//$ID/$OtherID' matched to action 'handleAction' on EntrantListingPage_Controller. Latest request params: array ('Action' => 'show', 'ID' => 'firstname-surname-2', 'OtherID' => NULL, ) - should that help me find where it's going?
105: [00:40:06] <Pyromanik> DaShiVaDan: yse.
106: [00:40:15] <Pyromanik> it tells you Exactly what file and even what function it's loading.
107: [00:40:45] <DaShiVaDan> but i've gone through EntrantListingPage.php a dozen times now....
108: [00:40:45] <Zauberfisch23> going for a walk, cya later
109: [00:40:50] <Pyromanik> Accessing function show() in class EntrantListingPage_Controller (hopefully) in EntrantListingPage.php
110: [00:41:16] <DaShiVaDan> yeah it's not there
111: [00:41:41] <Pyromanik> is there a $url_handlers defined in that class?
112: [00:41:57] <DaShiVaDan> there's actually no string 'ion show' (which should be 'function show ( )' anywhere in the code, lemme check url_handlers
113: [00:42:09] <DaShiVaDan> nope, lemme search all code for that
114: [00:42:14] <Pyromanik> grep $url_
115: [00:42:28] <Jakx> DaShiVaDan, pastie your EntrantListingPage.php file
116: [00:42:47] <Jakx> http://www.sspaste.com/
117: [00:43:22] <DaShiVaDan> http://codepad.viper-7.com/siBRRO
118: [00:43:28] <DaShiVaDan> oh, i used viper :P
119: [00:43:39] <DaShiVaDan> signed up for it like an hour ago just in case after someone else used it here
120: [00:44:01] <Pyromanik> ah fuck, it's using some shit module
121: [00:44:02] * kerosene has joined #silverstripe
122: [00:44:18] <DaShiVaDan> inb4 I didn't write the original code
123: [00:44:23] <Pyromanik> I know
124: [00:44:37] <spronk> actually i want a nice piece of UI
125: [00:44:43] <DaShiVaDan> ahh okies, the only custom crap i recognised as such was teh multiform crap that i finally found my way around
126: [00:44:50] <Pyromanik> DataObjectAsPageHolder_Controller
127: [00:44:51] <spronk> like how tiny's insert media thing works
128: [00:44:57] <Pyromanik> look at that one for a function show()
129: [00:45:32] <Pyromanik> http://www.ssbits.com/tutorials/2012/dataobject-as-pages-the-module/
130: [00:45:36] <Pyromanik> https://github.com/arambalakjian/DataObjects-as-Pages
131: [00:45:45] <spronk> fucking youtube...
132: [00:45:48] <spronk> they keep moving the embed video area
133: [00:46:00] <Pyromanik> spronk: UX is shit on youtube now
134: [00:46:20] <spronk> guh i know
135: [00:46:28] <Pyromanik> you're busy reading the description, then suddenly video ends and it changes content to the embed/share form
136: [00:46:42] <spronk> alsi, iframe src starts with //
137: [00:46:51] <DaShiVaDan> ok, am i retarded, or is this a good regexp to find any possible spacing and stuff function show () could have: function\s+show\s*\(
138: [00:46:54] <spronk> wtf is that
139: [00:47:36] <irogue23> spronk: it means respect the current protocol
140: [00:47:41] <spronk> ah
141: [00:47:46] <irogue23> i.e. if embedded on an HTTPS site use HTTPS, otherwise use HTTP
142: [00:47:55] <spronk> how have i not seen this before
143: [00:47:56] <irogue23> so you don't get the "yo dawg, this site is secure but something on it isn't"
144: [00:48:21] <irogue23> spronk: you should really use it for all your absolute includes, like JS/CSS from CDNs etc
145: [00:48:30] <spronk> mm
146: [00:48:41] <irogue23> http://www.bootstrapcdn.com for example
147: [00:49:27] <DaShiVaDan> wewt, found it
148: [00:49:44] <Jakx> Pyromanik, in ss 2.4 I have a session variable with a structure like array(0 => ..., 2 => ..., 3 => ..); when I use Session::add_to_array(); instead of adding the value to the array, it instead overwrites the last item in the array... any ideas?
149: [00:50:06] <DaShiVaDan> previous guy modified \doap\code\Pages\DataObjectAsPageHolder.php(192,2): function show()
150: [00:50:08] <Pyromanik> Jakx: just get the array, modify it, save it over the current one
151: [00:50:23] <Jakx> Pyromanik, will do. cheers.
152: [00:50:28] <Pyromanik> DaShiVaDan: yeah, sounds like last guy had no clue on how to develop software.
153: [00:50:31] <Jakx> Boom. solved it.
154: [00:50:35] <Pyromanik> never change core code.
155: [00:50:38] <DaShiVaDan> awesome line in here also :P check it out:
156: [00:50:50] <DaShiVaDan> if($Entrant->Paid == 0 || $Entrant->Paid == 0) {
157: [00:50:58] <irogue23> hahahahaha
158: [00:51:00] <Pyromanik> //no idea what i'm doing, hope this works?
159: [00:51:07] <DaShiVaDan> lol yeah
160: [00:51:15] <Jakx> Pyromanik, lol
161: [00:51:30] <Pyromanik> DaShiVaDan: hahahaha, it probably used to be something else, but they changed the second option while testing and never refactored
162: [00:51:48] <DaShiVaDan> Probably used to be Paid && Active
163: [00:51:53] <DaShiVaDan> should be just active, not just paid
164: [00:51:54] <Pyromanik> mm
165: [00:51:57] <irogue23> i've seen if($a == true || $a != false) before
166: [00:52:03] <Pyromanik> haha
167: [00:52:04] <irogue23> but never the exact same thing
168: [00:52:33] <Pyromanik> irogue23: but that's ... well it's not === I guess, it'd probably still work if you fed it an integer instead of a boolean
169: [00:52:34] <irogue23> have also seen if($a === true || $a == 1)
170: [00:52:45] <irogue23> Pyromanik: ya, if they were === it'd make a little more sense
171: [00:53:35] <irogue23> oh man
172: [00:53:36] <Pyromanik> https://github.com/arambalakjian/DataObjects-as-Pages/blob/master/code/Pages/DataObjectAsPageHolder.php#L159
173: [00:53:36] <irogue23> this is so
174: [00:53:42] <irogue23> relieving
175: [00:53:49] <Pyromanik> so yeah, there's your answer DaShiVaDan. As you said, had to look further up the heirarchy.
176: [00:53:54] <irogue23> the client i'm doing the C++ stuff for just came to borrow his hardware back for the weekend
177: [00:54:00] <irogue23> so i like... can't do any more work on it
178: [00:54:05] <irogue23> until tuesday
179: [00:54:08] <Pyromanik> get a decent PHP IDE and it should give you a list of all functions (including inherited) in a sidebar.
180: [00:54:09] <irogue23> I'M FREEEEEE
181: [00:54:12] <Pyromanik> Will make your life easier
182: [00:54:17] <DaShiVaDan> yeah he butchered that show()
183: [00:55:05] <Pyromanik> DaShiVaDan: yaeh, it sounds like instead of modifying canView on the dataobject (like I think is intended by the module author) they just hacked the shit out of that show code tightly coupling it and making it terrible
184: [00:56:19] <Pyromanik> irogue23: long weekend :D
185: [00:56:28] <Pyromanik> ciders in the sun time!
186: [00:58:23] <irogue23> i need to buy some cider
187: [00:58:38] <antmas> mmm cider
188: [00:58:42] <irogue23> have just put vodka into ginger beer for now :P
189: [00:58:46] <antmas> is about all I can drink at the moment :(
190: [00:58:52] <irogue23> antmas: whyy?
191: [00:59:08] <DaShiVaDan> bundaberg ginger beer? or some other sort?
192: [00:59:21] <antmas> irogue23: medication - for some reason beer gives me the migrain from HELL
193: [01:00:37] <antmas> DaShiVaDan: there are other brands? :P
194: [01:00:56] <Pyromanik> budy triple proof.
195: [01:01:00] <DaShiVaDan> antmas: there are in Sydney, but I don't know who buys them, they might just be for decorative purposes?
196: [01:01:08] <Pyromanik> PLAY PIRATE ALL NIGHT LONGS
197: [01:01:32] <antmas> Appleton's 15, apple + ginger beer + 4 rocks
198: [01:01:34] <antmas> =
199: [01:01:37] <antmas> GOOD TIMES
200: [01:03:01] <antmas> or just whiskey and nothing
201: [01:03:13] * travis-ci has joined #silverstripe
202: [01:03:13] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1420 (master - 7361d0a : Will Rossiter): The build passed.
203: [01:03:13] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/723c4e3f4ebb...7361d0a6ac58
204: [01:03:13] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13016715
205: [01:03:13] * travis-ci has left #silverstripe
206: [01:05:37] <Pyromanik> I wonder what happens if you ->limit() a DL that's already been ->limit()ed
207: [01:07:23] <Pyromanik> it replaces, rather than further limits
208: [01:07:25] <Pyromanik> :<
209: [01:10:08] <ss23> TIME TO TAKE SS.ORG DOWN
210: [01:10:09] <ss23> :D
211: [01:10:29] * joelpittet has joined #silverstripe
212: [01:11:03] <guzzlefry> ss23: Well, it was only a matter of time...
213: [01:11:04] <guzzlefry> :P
214: [01:11:44] <Pyromanik> ss23: wutudu?
215: [01:11:59] <ss23> Deploying a new build
216: [01:13:05] <ss23> Hmm
217: [01:13:08] <ss23> I only broke part of it
218: [01:13:09] <ss23> ^.^
219: [01:14:50] * BPower quit (Ping timeout: 240 seconds)
220: [01:15:37] <guzzlefry> phew
221: [01:25:00] <Zauberfisch23> back
222: [01:25:43] <Zauberfisch23> ss23: a new build? just updates reight?
223: [01:25:46] <irogue23> i only just noticed, on track 5, that i'm listening to one of ricky martin's spanish-language albums now
224: [01:25:53] <irogue23> shows how much i pay attention to the lyrics
225: [01:26:20] <Zauberfisch23> Oo
226: [01:30:32] * DigNZ quit (Quit: DigNZ)
227: [01:35:47] <ss23> Zauberfisch23: Minor update! :D
228: [01:35:55] <Zauberfisch23> boring
229: [01:35:58] <Ryan_____> If I have a $has_many relationship in SiteConfig, what do I set the $belongs_to?
230: [01:36:05] <ss23> Zauberfisch23: I just replaced the footer sign up form with a link to mailchimp
231: [01:36:11] <ss23> Did it for .com too
232: [01:36:21] <Zauberfisch23> Ryan_____: in silverstripe $belongs_to is just a $has_one
233: [01:36:35] <Zauberfisch23> Ryan_____: so a $has_many needs to have a $has_one on the other side
234: [01:36:49] <Ryan_____> so if I have a gridfield with sliders I would set the slider to has_one?
235: [01:36:54] <Ryan_____> Ah, right.
236: [01:36:55] <Zauberfisch23> Ryan_____: a $many_many can optionally have a $belongs_many_many on the other side
237: [01:37:22] <Zauberfisch23> Ryan_____: in the slide class it should have $has_one = array('Page' => 'Page');
238: [01:37:35] * DigNZ has joined #silverstripe
239: [01:37:41] <Ryan_____> I will try that and report back :D
240: [01:37:48] <guzzlefry> What's the point of $belongs_to and $belongs_many_many? I've gotten around using those so far.
241: [01:37:50] <Zauberfisch23> ss23: there is a newsletter? :O
242: [01:38:09] <ss23> I've never seen it!
243: [01:38:11] <ss23> But I guess there is
244: [01:38:12] <ss23> :P
245: [01:39:09] <Zauberfisch23> guzzlefry: to be honest I have never used $belongs_to and I have no idea what it does in silverstripe
246: [01:39:50] <Zauberfisch23> guzzlefry: but $belongs_many_many is the other end of a many_many, so lets say you have class Member { $many_many = array('Groups' => 'Group'); }
247: [01:39:59] <Zauberfisch23> then you could do $member->Groups() to get all groups
248: [01:40:38] <Zauberfisch23> but what if you then want to do $group->Members() ... somehow you need to tell silverstripe that it also works this way, that's what $belongs_many_many is for
249: [01:41:03] * DigNZ quit (Client Quit)
250: [01:41:09] <Zauberfisch23> class Group { $belongs_many_many = array('Members' => 'Member'); }
251: [01:42:12] <Zauberfisch23> Ryan_____: I just greped, it seems there actually is a $belongs_to, but I have no idea what it is for. I am heavily using SS since years without it, so I am sure you'll just do fine without too
252: [01:42:52] <Pyromanik> Zauberfisch23: something to do with has ones, legacy rot I think.
253: [01:42:55] <Zauberfisch23> ss23: can you bug someone at the officer to find out what $belongs_to is for?
254: [01:43:05] <ss23> lol
255: [01:43:08] <Pyromanik> bug hamish!
256: [01:43:10] <ss23> It's for referece has_one etc links
257: [01:43:29] <Pyromanik> Zauberfisch23: for defining 1:1 relations I guess.
258: [01:43:59] <Pyromanik> providing a reverse link back to the parent obj, since the ID is stored on the orignal definer.
259: [01:44:03] <Zauberfisch23> ah, for $has_one on the other side if you don't want a many
260: [01:44:09] <Zauberfisch23> makese sense, in a way
261: [01:44:21] <Pyromanik> as opposed to manually going Blah::get()->filter('ThisClassID'=>$this->ID)
262: [01:44:48] <Ryan_____> I'm just messing around until I get it right :P
263: [01:45:00] <Zauberfisch23> obviously you would need a ->First() there, otherwiese its a $has_many agian
264: [01:45:02] <Pyromanik> Ryan_____: the inverses go:
265: [01:45:17] <Pyromanik> 1:1 -> has_one : belongs_to
266: [01:45:17] <Ryan_____> Recently moves to SS so having a good time playing around with everything.
267: [01:45:43] <Pyromanik> N:1 has_many : has_one
268: [01:46:03] <Pyromanik> and thus 1:N -> has_one : has_many
269: [01:46:18] <Ryan_____> So my has_many needs a has_one in it?
270: [01:46:27] <Pyromanik> and N:N of course is many_many : belongs_many_many
271: [01:46:44] <Pyromanik> Ryan_____: your has many NEEDS a has_one on the target object.
272: [01:46:52] <Ryan_____> Ah, right.
273: [01:47:00] <antmas> ^^^^^ so much work going on here for a Friday XP
274: [01:47:04] <Ryan_____> What if it's the SiteConfig that has_many?
275: [01:47:09] <Ryan_____> what do I reference
276: [01:47:16] <Pyromanik> Ryan_____: what is the has_many to?
277: [01:47:27] <Ryan_____> Custom slider class
278: [01:47:39] <Pyromanik> eg: SiteConfig has_many Banners, Banners has_one SiteConfig
279: [01:48:15] <Ryan_____> So I can just do $has_one = array('SiteConfig' => 'SiteConfig') ?
280: [01:48:42] <Pyromanik> yep
281: [01:48:43] <antmas> what were those PHP caching engines called again?
282: [01:48:49] <antmas> x...somthing
283: [01:48:50] <Pyromanik> apc
284: [01:48:57] <antmas> Pyromanik: that's it, tah
285: [01:48:57] <Pyromanik> xcache?
286: [01:49:07] <antmas> that too
287: [01:49:22] <Zauberfisch23> as of now there is no way to set a custom HTMLEditor config on a single HTMLEditor?
288: [01:49:27] <Zauberfisch23> right
289: [01:49:27] <Pyromanik> memcached is something different, more like varnish... so far as I understand it
290: [01:49:29] <Zauberfisch23> ?
291: [01:49:40] <Pyromanik> Zauberfisch23: yeah, I don't think so.
292: [01:49:49] <Pyromanik> not sure tbh, never really looked into it'
293: [01:50:08] <Pyromanik> there are profiles and stuff, but I think it sets statically for all editors, rather than just one.
294: [01:50:26] <Pyromanik> maybe you could store the current config, change it, draw an editor, change it back (kinda like a translation or such)?
295: [01:51:49] <Ryan_____> Thanks, Pyro that works perfectly :)
296: [01:56:07] <Pyromanik> you're welcome Ryan_____
297: [01:56:22] <Ryan_____> How do you link people's names like that?
298: [01:56:28] <Pyromanik> tab
299: [01:56:36] <Ryan_____> Pyromanik: Ah, nice.
300: [01:56:45] <Pyromanik> :)
301: [01:58:52] <DaShiVaDan> back from lunch
302: [01:59:53] <Ryan_____> Nearly finished my SS boilerplate theme :D http://i.imgur.com/U2b5YRQ.png
303: [02:01:45] <antmas> Ryan_____: that looks familiar :D
304: [02:02:00] <Ryan_____> Built it with bootstrap 3.0
305: [02:02:29] <antmas> Ryan_____: hence the familirarity :P I use it all the time
306: [02:02:41] <Ryan_____> Creating a backend theme customizer like wordpress uses, so getting my layout all done.
307: [02:03:09] <Ryan_____> antmas: Yeah, the new iteration is great for frameworking
308: [02:04:01] <Ryan_____> Though it's IE support is terrible, so I had to make ssome custom sass mixins to deal with that
309: [02:07:39] <antmas> Ryan_____: I haven't had many issues with IE9, most of which were CSS if anything. I'm using it mostly for .net apps
310: [02:08:35] <Ryan_____> antmas: IE9 is fine, because it supports media queries, but that's the first IE version to do so. So 8 and below are fuuucked haha
311: [02:09:03] <antmas> yeah I just flatout don't provide IE8 support
312: [02:09:24] <Ryan_____> antmas: Unfortunately my work requires it :(
313: [02:09:35] <Ryan_____> only 8 thouigh, so it's not too bad.
314: [02:09:55] <antmas> Ryan_____: yeah ours does too, so I just sneakily update them to IE9 when they complain :D
315: [02:10:08] <Ryan_____> Haha, nice.
316: [02:10:30] <Ryan_____> All my work are public facing websites so can't do that :P
317: [02:10:57] <antmas> http://css3pie.com/ has saved me a couple of times too
318: [02:11:02] <antmas> design wise anyway
319: [02:12:16] * DigNZ has joined #silverstripe
320: [02:12:17] * DigNZ quit (Client Quit)
321: [02:12:28] <Ryan_____> I just use modernizr and have graceful fallbacks.
322: [02:12:44] <antmas> yeah that too
323: [02:13:00] <Ryan_____> the less javascript shims the better
324: [02:14:11] * SightUnseen has joined #silverstripe
325: [02:17:02] * Ryan_____ quit (Remote host closed the connection)
326: [02:17:21] * Ryan___ has joined #silverstripe
327: [02:18:10] * SightUnseen has left #silverstripe
328: [02:19:15] <UncleCheese> has anyone ever seen MyDecorator::$owner = NULL?
329: [02:19:18] <UncleCheese> what would explain that?
330: [02:19:48] * DigNZ has joined #silverstripe
331: [02:25:13] * kerosene quit (Quit: leaving)
332: [02:26:53] <irogue23> oh look, twitter just told me SS are hiring too
333: [02:27:32] <ss23> lol
334: [02:27:36] <ss23> Yeah, for a PM
335: [02:27:36] <ss23> :P
336: [02:28:00] <DaShiVaDan> is there a Director::get_environment_type() ?
337: [02:28:07] <DaShiVaDan> (as opposed to set)
338: [02:28:09] <ss23> Oh, and contractors
339: [02:28:18] <ss23> DaShiVaDan: isLive/isTest/isDev
340: [02:28:23] <DaShiVaDan> ty
341: [02:28:43] <ss23> haha
342: [02:28:46] <ss23> http://api.silverstripe.org/3.1/source-class-Director.html#919-921
343: [02:28:50] <ss23> That code... XD
344: [02:29:01] <irogue23> ss23: yeah, cbf anything but short term contracts anyway :P
345: [02:29:02] <ss23> I mean, it makes perfect sense, but it's not what I was expecting
346: [02:29:27] <Pyromanik> URGGGGHHHSHNNSDL:KNNNNNNNNFFFFFFFFFFFFFFFFFF
347: [02:29:34] <Pyromanik> Ryan___: swore in our channel!
348: [02:29:55] <DaShiVaDan> ss23: isLive() that returns a bool in ss 2.4? cause i'm getting an error, or is it Director::IsLive() or... ?
349: [02:30:05] <Pyromanik> DaShiVaDan: yep, that's correct.
350: [02:30:27] <Ryan___> Pyromanik: Sorry. I didn't realise there was a no swearing rule :(
351: [02:30:27] <DaShiVaDan> Pyromanik: which one :P cause: if ( IsLive() ) errors for me
352: [02:30:49] <ss23> DaShiVaDan: http://api.silverstripe.org/2.4/source-class-Director.html#867-869
353: [02:30:51] <Pyromanik> Ryan___: shit no, nothing against traditional swearing.
354: [02:30:59] <Pyromanik> I"m talking about your reference to wordderp :P
355: [02:31:05] <Ryan___> Pyromanik: Ah, right. Haha
356: [02:31:10] <ss23> DaShiVaDan: Director::isLive(), and returns a bool :)
357: [02:31:16] <Ryan___> Pyromanik: Well I've moved to SS for a reason :P
358: [02:31:41] <Pyromanik> good man! :D
359: [02:32:01] <Pyromanik> ps, the j-word is an almost bannable offence :<
360: [02:32:13] <Pyromanik> ;D
361: [02:32:47] <Pyromanik> DaShiVaDan: http://api.silverstripe.org/2.4/class-Director.html#_get_environment_type
362: [02:32:51] <Ryan___> Pyromanik: Had to use that about 4 years ago. Wanted to jump off of a bridge.
363: [02:33:14] <Pyromanik> Ryan___: most people have that reaction.
364: [02:33:43] <Ryan___> Pyromanik: I don't know how you can screw up ACL that badly.
365: [02:35:46] <antmas> also, don't mention subsites
366: [02:36:02] <Pyromanik> well, that's fine. But you might anger spronk :P
367: [02:36:08] <antmas> XD
368: [02:36:22] <Ryan___> Pyromanik: Fixing a site that uses subsites atm actually.
369: [02:36:29] <DaShiVaDan> Pyromanik: yeah just needed Director:: in front of it, all good :) now i got it loading unminified jquery on dev so i can trace :)
370: [02:36:46] <Pyromanik> DaShiVaDan: yeh, it's static.
371: [02:36:53] <Pyromanik> (makes it more like proceedural!)
372: [02:37:08] <Pyromanik> Ryan___: haha, good luck :<
373: [02:37:17] <DaShiVaDan> Shrike_Finland: you about? and you from finland?
374: [02:37:26] <Ryan___> Pyromanik: Chur. It's not too bad.
375: [02:37:34] <antmas> Ryan___: ask spronk if you need help, he's a subsites pro
376: [02:37:40] <ss23> ^^
377: [02:37:42] <Ryan___> antmas: Thanks :)
378: [02:37:46] <Pyromanik> antmas: but it's 2.4?
379: [02:37:47] <ss23> ahahah
380: [02:37:56] <Pyromanik> ss23: I don't see any new deployment on ss.org
381: [02:37:59] <Ryan___> antmas: I don't know who made this site, but they looove technical debt.
382: [02:38:07] <ss23> Pyromanik: The footer changed :D
383: [02:38:13] <ss23> Pyromanik: Now it says "click here to sign up to newsletter!"
384: [02:38:18] <ss23> before it had a form in the footer
385: [02:38:44] * joelpittet quit (Remote host closed the connection)
386: [02:38:59] <antmas> ;__; I now have to drive 5 hours after work
387: [02:39:03] <Pyromanik> ss23: I don't need you anymore, I don't want to be ignored :<
388: [02:39:11] <Pyromanik> antmas: lol sux2bu
389: [02:39:18] <Pyromanik> Hokitika for the weekend?
390: [02:39:19] * antmas cries
391: [02:39:32] <antmas> Pyromanik: :O how did you know!
392: [02:39:40] <Pyromanik> It's about 5 hours from Nelson?
393: [02:39:45] <antmas> heh, yeh
394: [02:39:56] <ss23> phwat do you mean? ;_;
395: [02:39:56] <Pyromanik> Either that or Timaru. And why the fuck would you go there :<
396: [02:40:43] <antmas> it's mostly so the parents can smother our kid up with toys we don't have to buy :D
397: [02:40:44] <antmas> winwin
398: [02:40:58] <Pyromanik> ss23: I wanna find something I've wanted all along; somewhere I belong.
399: [02:41:08] <Pyromanik> antmas: ahaha xD
400: [02:41:25] <ss23> Pyromanik: I'll never know myself until I do this on my own
401: [02:41:30] <Pyromanik> xD
402: [02:41:47] <Pyromanik> and I will never feel anything else until my wounds are healed
403: [02:42:07] <Ryan___> Ohh, sass have changed their website.
404: [02:42:19] <Pyromanik> SSSSSSSSSSSSASSSSSSSSSSSSSSSSs
405: [02:42:32] <Pyromanik> should totally be written in python rather than ruby.
406: [02:42:38] <Ryan___> Agreed.
407: [02:42:41] * iamss has joined #silverstripe
408: [02:42:45] <Ryan___> but meh, still works fine
409: [02:43:42] <iamss> Hi SilverStripe, did we combine the Widgets and Modules into one section now called Add-Ons?
410: [02:43:47] <Pyromanik> yeah but with a name like sassssssssssss
411: [02:43:59] <ss23> iamss: Indeed!
412: [02:44:04] <Pyromanik> probably iamss
413: [02:44:32] <antmas> I read it like thath
414: [02:44:44] <iamss> Alright, thanks guys!
415: [02:45:01] <antmas> IAMSILVERSTRIPE
416: [02:45:10] <antmas> :O
417: [02:45:19] <ss23> NU UH I AM SILVERSTRIPE
418: [02:45:32] <antmas> ss23: you're old silverstripe
419: [02:45:37] <antmas> :P
420: [02:46:19] <Pyromanik> may as well be, that's what he fixes all day
421: [02:46:21] <Pyromanik> :P
422: [02:48:59] * iamss quit (Ping timeout: 250 seconds)
423: [02:49:44] <antmas> fffffff flash
424: [02:49:49] <guzzlefry> 0.o
425: [02:49:52] <irogue23> Pyromanik: https://github.com/Kronuz/pyScss
426: [02:51:46] <Pyromanik> haha, excellent
427: [02:54:07] <irogue23> sweet fuck i'm tired already
428: [02:54:09] <irogue23> only 4pm :(
429: [02:54:11] * antmas quit (Ping timeout: 250 seconds)
430: [02:54:25] <Ryan___> AKA beero 'o' clock
431: [02:54:59] * SightUnseen has joined #silverstripe
432: [02:56:02] * SightUnseen has left #silverstripe
433: [02:56:27] <Pyromanik> Ryan___: naw, 4:30 :(
434: [02:56:38] <Pyromanik> irogue23: because you're still awake, right?
435: [02:56:46] <Ryan___> Pyromanik: Secret beer o clock then
436: [02:57:05] <irogue23> Pyromanik: nah, just got woken up by recruiter calling at 10am
437: [02:57:40] <Pyromanik> Ryan___: I ... don't think I could get away with that
438: [02:57:49] <Pyromanik> (the secrecy, beer would probably be fine)
439: [02:57:56] <irogue23> pfft
440: [02:57:57] <Ryan___> Pyromanik: Oh well, only 30 mins to go
441: [02:58:05] <irogue23> what's wrong with a bit of vodka with breakfast?
442: [02:59:27] <irogue23> which reminds me
443: [02:59:32] <irogue23> brb going to liquor store to buy cider
444: [03:03:37] <Pyromanik> n1 irogue23
445: [03:03:53] * Pyromanik is now known as Pyromanik23
446: [03:03:59] <Pyromanik23> booyah
447: [03:05:37] <Ryan___> Pyromanik23: What's with the 23?
448: [03:06:21] <Pyromanik23> TIL: what 'Scruffle' means, according to urbandictionary
449: [03:06:30] <Pyromanik23> Ryan___: bunch of us just rag'n on ss23
450: [03:06:34] <Pyromanik23> :P
451: [03:06:52] <Ryan___> Pyromanik23: Lol, sweet as.
452: [03:06:54] <Pyromanik23> (his normal nick includes the 23)
453: [03:08:00] <Ryan___> Should have looked at the met service. didn't bring water proof pants for the ride home :(
454: [03:11:05] * antmas has joined #silverstripe
455: [03:11:26] * Colin[pi] quit (Ping timeout: 240 seconds)
456: [03:11:31] * Nimle quit (Ping timeout: 250 seconds)
457: [03:17:58] <spronk> anyone used respond.js with ie7?
458: [03:18:10] <Pyromanik23> Ryan___: pushbike?
459: [03:18:16] <guzzlefry> Isn't IE7's userbase down to less than half a percent?
460: [03:18:20] <Ryan___> Pyromanik23: Motorbike
461: [03:18:25] <Pyromanik23> ha, guts.
462: [03:18:32] <Pyromanik23> hot as fuck here.
463: [03:18:40] <Pyromanik23> too windy though I fear for a nice ride.
464: [03:18:45] <Ryan___> Pyromanik23: Yeah, harbour bride is no fun in the rain without wet weather gear
465: [03:18:47] <Jakx> guzzlefry, 0.6%
466: [03:18:53] <guzzlefry> ouch
467: [03:18:58] <guzzlefry> I was close. :P
468: [03:18:59] <Pyromanik23> Ryan___: alk, wlg?
469: [03:19:05] <Jakx> guzzlefry, haha
470: [03:19:06] <Ryan___> Pyromanik23: Alk
471: [03:19:10] <Pyromanik23> sux2bu
472: [03:19:23] <spronk> well, yes
473: [03:19:25] <Pyromanik23> :P
474: [03:19:26] <spronk> but i need to test this in ie7 so..
475: [03:19:28] <Ryan___> Pyromanik23: 3 days off to dry my clothes :P
476: [03:19:34] <Pyromanik23> truedat
477: [03:20:14] * DigNZ quit (Quit: DigNZ)
478: [03:20:59] * antmas misses his motorbike
479: [03:21:08] <guzzlefry> Does anyone use rackspace mail hosting?
480: [03:21:35] <Ryan___> Pyromanik23: Boss said we can all go home.
481: [03:21:38] <Ryan___> Pyromanik23: Cya :)
482: [03:22:29] * Ryan___ quit (Quit: Ryan___)
483: [03:23:40] <antmas> dude, April next year looks awesome
484: [03:23:48] <antmas> 4 stat days in a week
485: [03:26:35] <antmas> Good Friday, Easter Sunday, Easter Monday, Anzac day
486: [03:26:57] <antmas> take 3 days annual leave to get 10 days off :D
487: [03:28:50] * antmas quit (Quit: Page closed)
488: [03:31:21] * irogue23 returns with cider
489: [03:32:13] <irogue23> < Ryan___> Pyromanik23: Yeah, harbour bride is no fun in the rain without wet weather gear
490: [03:32:19] <irogue23> ugh, HB is no fun in the rain fullstop
491: [03:37:26] * cloph_away has joined #silverstripe
492: [03:38:23] * cloph quit (Ping timeout: 272 seconds)
493: [03:52:30] * robert_ has joined #silverstripe
494: [04:19:26] <DaShiVaDan> well, that was fun.
495: [04:19:32] <DaShiVaDan> guess who just got let go
496: [04:21:21] <guzzlefry> :(
497: [04:21:30] <irogue23> o_O
498: [04:21:33] <DaShiVaDan> ahh it's not so bad
499: [04:21:50] <DaShiVaDan> 3 month trial up in 2 weeks, and thats it, they decided against me
500: [04:21:55] <DaShiVaDan> funniest part
501: [04:22:01] <DaShiVaDan> they think i am rocking at their SS sites
502: [04:22:12] <guzzlefry> Well, that doesn't make sense. :P
503: [04:22:15] <DaShiVaDan> it's that i'm not enough on the front end development side, more of a backend developer
504: [04:22:36] <DaShiVaDan> but, it's the curse of this company, and replacing me won't fix it
505: [04:22:42] <DaShiVaDan> not gonna be my problem in 2 weeks
506: [04:23:00] <irogue23> wait
507: [04:23:10] <irogue23> you mean your company has too many back-end and not enough front-end?
508: [04:25:20] <guzzlefry> I read it as their projects being very front-end heavy.
509: [04:27:24] <irogue23> yeah, that's just rare
510: [04:27:37] <irogue23> most dev companies i know have like 10 designers and 1 back-end guy who's overworked as fuck
511: [04:27:50] <guzzlefry> oh :P
512: [04:27:51] <irogue23> and are constantly trying to find more back-enders
513: [04:27:58] <guzzlefry> heh
514: [04:28:13] <guzzlefry> SilverStripe devs in general seem to be scarce.
515: [04:28:19] <guzzlefry> At least in the States.
516: [04:28:38] <irogue23> heh, try being here at the mo
517: [04:28:46] <irogue23> the number of recruiters trying to get me to move to wgtn...
518: [04:28:51] * UncleCheese quit (Quit: UncleCheese)
519: [04:29:42] <guzzlefry> mo?
520: [04:29:47] <irogue23> moment
521: [04:29:57] <guzzlefry> Also
522: [04:29:59] <guzzlefry> wgtn? :P
523: [04:30:04] <irogue23> wellington (capital)
524: [04:30:11] <guzzlefry> ah, gotcha
525: [04:30:37] <irogue23> SS has been specified as the framework to be used for basically all government websites
526: [04:30:50] <irogue23> so the demand for SS devs in the capital has grown rather quickly :P
527: [04:30:59] <guzzlefry> nice
528: [04:31:12] * guzzlefry moves.
529: [04:31:22] <irogue23> lol
530: [04:31:26] <irogue23> UncleCheese did :P
531: [04:31:31] <DaShiVaDan> ahh was caling my fiance to give her the news
532: [04:31:42] <DaShiVaDan> this place is 6 designers, a copywriter and me.
533: [04:31:51] <DaShiVaDan> most of their work is prepackaged sites
534: [04:31:58] <DaShiVaDan> and design work, print work, etc
535: [04:32:00] <irogue23> ah
536: [04:32:04] <irogue23> fuck companies that do prepackaged sites
537: [04:32:08] <DaShiVaDan> for companies like citrix, symantec, etc
538: [04:32:09] * irogue23 used to work for one
539: [04:32:19] <DaShiVaDan> yeah wasn't my favourite type of work from day 1
540: [04:32:25] <DaShiVaDan> and i told them on my entrance interview:
541: [04:32:30] <DaShiVaDan> i don't do front end
542: [04:32:34] <DaShiVaDan> though i do
543: [04:32:39] <irogue23> i started working for them when they did all custom work
544: [04:32:43] <DaShiVaDan> i just am not great at making stuff pretty :P
545: [04:33:05] <guzzlefry> wait
546: [04:33:06] <irogue23> eventually the owner realised they could make more money by just making a bunch of standard templates and changing the colour scheme + inserting the logo for each customer
547: [04:33:09] <guzzlefry> designers or HTML people? :P
548: [04:33:22] <DaShiVaDan> graphic designers who know html and css
549: [04:33:27] <guzzlefry> ah okay
550: [04:33:31] <DaShiVaDan> they mostly work in photoshop, illustrator, etc
551: [04:33:45] <DaShiVaDan> but most of them can do a responsive layout build
552: [04:33:54] <DaShiVaDan> i figured that makes them the front end guys
553: [04:34:13] <DaShiVaDan> i think it's mostly cause the boss doesn't understand anything but front end
554: [04:34:45] <DaShiVaDan> but i can't knock the company as a whole
555: [04:34:55] <DaShiVaDan> just their web dev division (me :P )
556: [04:35:07] <irogue23> lol
557: [04:35:18] <irogue23> sounds a bit like Pyromanik23's company :P
558: [04:35:18] <DaShiVaDan> lemme elaborate:
559: [04:35:23] <DaShiVaDan> they have no SVN
560: [04:35:29] <DaShiVaDan> looked at me funny when i asked about it
561: [04:35:32] <guzzlefry> "It's been 2 weeks. Why does the website look the same!"
562: [04:35:41] <DaShiVaDan> lol yeah guz
563: [04:35:57] <DaShiVaDan> they have no procedures. period. they have none.
564: [04:36:01] <guzzlefry> "Because magic in the background!"
565: [04:36:08] <DaShiVaDan> i've been writing them up
566: [04:36:21] <DaShiVaDan> they advertised for a back end developer
567: [04:36:57] <DaShiVaDan> a php programmer who knows mysql, css and html and javascript. good to have: framework knowledge
568: [04:37:04] <DaShiVaDan> thats what they advertised for
569: [04:38:07] <DaShiVaDan> since i got here i've been setting up domains, hosting, exchange and pop emails, site backup and restores, creating dynamic EDMs setting them up on campaign monitor
570: [04:38:27] <DaShiVaDan> (and fixing their WP, drupal and SS sites, adding in eWAY and such like atm)
571: [04:38:38] <guzzlefry> 0.o
572: [04:38:43] <DaShiVaDan> which was the only real programming, aside for a couple of sites for cisco and one for youtube
573: [04:38:54] <DaShiVaDan> which took like a day a piece
574: [04:39:16] <irogue23> weee, my butchery is doing free marinading this weekend!
575: [04:39:26] <DaShiVaDan> nice, what flavour choices?
576: [04:39:54] <irogue23> there were like 6 choices
577: [04:40:22] <irogue23> i opted for Sweet Chili
578: [04:40:30] <irogue23> they gave me a taste of it, was awesome
579: [04:41:22] <irogue23> so i'm going in the morning to pick out some rump steaks for them to marinate, and i'll have some sweet bbq tomorrow night!
580: [04:50:04] <guzzlefry> hm
581: [04:50:54] <guzzlefry> I keep fighting with gitolite.
582: [04:51:01] <guzzlefry> Almost every time I push to production...
583: [04:51:16] <guzzlefry> well, pull to production :P
584: [04:54:56] <spronk> hmm
585: [04:55:05] <spronk> why would cms redirect me to a specific tab every time i load a page edit?
586: [04:55:09] <spronk> i.e. a tab that isn't content
587: [04:57:02] <DaShiVaDan> sweet chilli sounds like a winner any day :)
588: [04:57:23] <DaShiVaDan> my cms seems to remember what tab i was last in in a session setting somewhere so i keep going back to sub tabs
589: [04:59:32] * Jakx has left #silverstripe
590: [05:02:46] * SightUnseen has joined #silverstripe
591: [05:02:49] * SightUnseen has left #silverstripe
592: [05:04:55] <DaShiVaDan> funniest part about getting let go today is i asked for 2 more weeks - they think i need the money, and it'll be nice, but it's primarily cause i'll use that time to learn SS :)
593: [05:08:00] <guzzlefry> gah
594: [05:08:06] <guzzlefry> can't figure out what I'm doing wrong
595: [05:11:40] <guzzlefry> weeeeee!
596: [05:11:42] <guzzlefry> man
597: [05:11:49] <guzzlefry> fever makes me stupid
598: [05:11:59] <guzzlefry> I forgot to put .pub at the end of my keys :P
599: [05:19:20] * joelpittet has joined #silverstripe
600: [05:20:24] * stecman quit (Quit: This computer has gone to sleep)
601: [05:21:20] * mrzero quit (Remote host closed the connection)
602: [05:58:19] * Shrike_Finland quit (Quit: Leaving.)
603: [06:02:46] <guzzlefry> uh oh!
604: [06:03:10] <guzzlefry> forgot to finish this form before pushing live. >_>
605: [06:04:33] <guzzlefry> how...
606: [06:04:34] <guzzlefry> now*
607: [06:04:53] <guzzlefry> need to remember how to display a message post-form submit.
608: [06:06:15] * andylockran has joined #silverstripe
609: [06:06:20] <guzzlefry> oh derp, return array("Content" => "message");
610: [06:10:28] * andylockran quit (Ping timeout: 240 seconds)
611: [06:18:59] * kerosene has joined #silverstripe
612: [06:25:35] * Shrike_Finland has joined #silverstripe
613: [06:37:02] * SightUnseen has joined #silverstripe
614: [06:38:43] * SightUnseen1 has joined #silverstripe
615: [06:38:44] * SightUnseen quit (Read error: Connection reset by peer)
616: [06:40:10] * SightUnseen has joined #silverstripe
617: [06:40:10] * SightUnseen1 quit (Read error: Connection reset by peer)
618: [06:41:04] * SightUnseen has left #silverstripe
619: [06:48:48] * kerosene quit (Quit: meh)
620: [06:51:26] * andylockran has joined #silverstripe
621: [07:06:29] <Pyromanik23> eat all the penise
622: [07:06:34] <Pyromanik23> weagkajg
623: [07:06:38] <Pyromanik23> woooo
624: [07:06:39] <Pyromanik23> gone
625: [07:06:41] * Pyromanik23 quit (Quit: leaving)
626: [07:06:50] * joelpittet quit (Remote host closed the connection)
627: [07:07:06] * violetina has joined #silverstripe
628: [07:07:25] * joelpittet has joined #silverstripe
629: [07:07:59] * joelpittet quit (Read error: Connection reset by peer)
630: [07:08:01] * joelpitt_ has joined #silverstripe
631: [07:11:54] * ARNHOE has joined #silverstripe
632: [07:15:07] * guci0 has joined #silverstripe
633: [07:15:15] <guci0> Morning!
634: [07:23:30] <ss23> moin!
635: [07:23:31] * violetina quit (Remote host closed the connection)
636: [07:26:01] * violetina has joined #silverstripe
637: [07:29:47] * joelpitt_ quit (Remote host closed the connection)
638: [07:35:44] * violetina quit (Remote host closed the connection)
639: [07:54:47] * violetina has joined #silverstripe
640: [08:05:30] * violetina quit (Remote host closed the connection)
641: [08:05:39] * violetina has joined #silverstripe
642: [08:15:21] * kinglozzer has joined #silverstripe
643: [08:16:37] * svandragt has joined #silverstripe
644: [08:26:05] * Colin[pi] has joined #silverstripe
645: [08:26:22] * Colin[pi] quit (Client Quit)
646: [08:30:52] * skorp has joined #silverstripe
647: [08:41:08] <kinglozzer> May be a stupid question, but are there any downsides to APC?
648: [08:41:15] <kinglozzer> Or anything I should be aware of before installing it?
649: [08:48:20] <irogue23> nah, generally "just works"
650: [08:48:39] <kinglozzer> Cool
651: [08:48:44] <kinglozzer> Man wtf is going on with php.net
652: [08:48:45] <kinglozzer> https://bugs.php.net/bug.php?id=64625
653: [08:48:59] <kinglozzer> Revoked SSL certificate...
654: [08:50:48] <irogue23> kinglozzer: http://php.net/archive/2013.php#id2013-10-24-2
655: [08:51:00] <irogue23> "As it's possible that the attackers may have accessed the private key of the php.net SSL certificate, we have revoked it immediately."
656: [08:51:47] <kinglozzer> Ah, fair enough - I hadn't read that. Last I heard they thought they were flagged as containing malware incorrectly
657: [09:15:20] * skorp has left #silverstripe
658: [09:22:50] * SightUnseen has joined #silverstripe
659: [09:27:59] * SightUnseen quit (Ping timeout: 272 seconds)
660: [09:34:19] * micmania1 has joined #silverstripe
661: [09:37:12] * SightUnseen has joined #silverstripe
662: [09:41:49] * SightUnseen quit (Ping timeout: 265 seconds)
663: [09:50:11] * openbees has joined #silverstripe
664: [09:50:36] <openbees> for including a css class in editer u just need to write a editer.css .. isn't it ?
665: [09:50:55] <openbees> using 3.1.1
666: [09:58:01] * kerosene has joined #silverstripe
667: [10:05:30] * openbees quit (Ping timeout: 265 seconds)
668: [10:07:21] * openbees has joined #silverstripe
669: [10:17:40] * travis-ci has joined #silverstripe
670: [10:17:41] <travis-ci> [travis-ci] chillu/silverstripe-framework#106 (pulls/js-i18n-3.1 - 2c145cd : Ingo Schommer): The build was fixed.
671: [10:17:41] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/e864966ae81a...2c145cd454d8
672: [10:17:41] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/13030509
673: [10:17:41] * travis-ci has left #silverstripe
674: [10:24:15] * kerosene quit (Quit: no-, you're just a fool!)
675: [10:30:47] <micmania1> openbees, you need to tell the editor where to look for your css file
676: [10:31:14] * steveheyes has joined #silverstripe
677: [10:31:24] <steveheyes> hey everyone, how you all doing?
678: [10:31:30] <micmania1> HtmlEditorConfig::get('cms')->setOption('content_css', array(
679: [10:31:30] <micmania1> 'path/to/editor.css',
680: [10:31:30] <micmania1> ));
681: [10:31:59] <steveheyes> I was wondering if anyone can help me?
682: [10:32:12] <steveheyes> I'm trying to stop the Tinymce insert height and width attributes to my images?
683: [10:32:27] <steveheyes> i feel like it should be relatively straight forward, but can' see to do it
684: [10:32:48] <openbees> micmania1 thanks man will try now
685: [10:32:49] <steveheyes> i tried using setOptions to no avail:
686: [10:32:51] <steveheyes> HtmlEditorConfig::get('cms')->setOptions(array(
687: [10:32:52] <steveheyes> 'valid_elements' => "img[class|src|alt|title]"
688: [10:32:52] * micmania1 quit (Disconnected by services)
689: [10:32:53] <steveheyes> )
690: [10:32:54] <steveheyes> );
691: [10:33:52] * micmania2 has joined #silverstripe
692: [10:36:21] * spronk2 has joined #silverstripe
693: [10:36:35] <steveheyes> anyone got an idea? :)
694: [10:37:11] * SightUnseen has joined #silverstripe
695: [10:40:21] <openbees> micmania1 : it works .. thanks again :)
696: [10:41:07] <steveheyes> does anyone know how to stop the Tinymce insert height and width attributes to my images?
697: [10:41:38] * SightUnseen quit (Ping timeout: 256 seconds)
698: [10:46:04] <steveheyes> I have added my question the forum. I'd really appreciate if anyone knows how to do it let me know. thanks in advance - http://www.silverstripe.org/customising-the-cms/show/25447
699: [10:51:54] <madmatt> openbees: You shouldn't need to specify it if you call it editor.css and put it into themes/yourtheme/css/editor.css
700: [10:53:11] <madmatt> steveheyes: After updating the valid_elements, did you confirm that definitely was applied to the CMS (by checking the config that is used to create the TinyMCE fields)?
701: [10:53:31] <openbees> madmatt that's what I was trying in past hours .. but don't know why it was not working
702: [10:53:38] <madmatt> Your valid_elements change should do it (albeit at a global level for all images)
703: [10:54:22] <openbees> nd that's the why I always included that but don't know why it was not working in ss 3.1.1
704: [10:54:30] <openbees> way*
705: [10:55:11] <madmatt> openbees: hmm, interesting. I'm using framework 3.1 and it's working for me
706: [10:55:22] <madmatt> I don't specify it anywhere, it just loads it in LeftAndMain.php
707: [10:55:43] <madmatt> openbees: Are you setting a default theme?
708: [10:56:03] <madmatt> e.g. via SSViewer->default_theme in a YAML file?
709: [10:56:25] <openbees> in config.yml yes
710: [10:56:50] <madmatt> ok cool, that's the only thing I'm doing that might affect it
711: [10:58:01] <madmatt> If you're interested in solving it, take a look at framework/admin/code/LeftAndMain.php, lines 286-294, which is where it looks for your custom editor.css and includes it
712: [10:58:26] <madmatt> Otherwise, forcing it via micmania1's trick works too :)
713: [11:00:03] <openbees> madmatt .. thanks madmatt .. I will sure look into in it !
714: [11:03:21] * swordsmanz has joined #silverstripe
715: [11:03:30] * travis-ci has joined #silverstripe
716: [11:03:30] <travis-ci> [travis-ci] chillu/silverstripe-framework#107 (pulls/house-rules - f65629a : Ingo Schommer): The build passed.
717: [11:03:30] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/ceab35a0be6c^...f65629ab73c5
718: [11:03:30] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/13031910
719: [11:03:30] * travis-ci has left #silverstripe
720: [11:08:35] * openbees quit (Quit: Leaving)
721: [11:20:40] * svandragt quit (Ping timeout: 246 seconds)
722: [11:21:25] * Nightjar has joined #silverstripe
723: [11:23:02] <irogue23> mornin' Nightjar
724: [11:37:14] * SightUnseen has joined #silverstripe
725: [11:41:33] * SightUnseen quit (Ping timeout: 252 seconds)
726: [11:52:36] * steveheyes quit (Quit: steveheyes)
727: [12:12:47] * svandragt has joined #silverstripe
728: [12:13:25] * lat3ncy has joined #silverstripe
729: [12:13:39] * UndefinedOffset has joined #silverstripe
730: [12:14:28] <DryerLintPurple> blegh. nothing like sitting down at your computer in the morning and finding that Flash is mysteriously using a few GB of memory...
731: [12:14:51] <lat3ncy> Hi, I want to know if it's possible to have your model (Dataobject) to be virtual, ie. not in the database but rather it access a API
732: [12:15:24] <lat3ncy> yes, flash is evil
733: [12:21:28] * chillu has joined #silverstripe
734: [12:31:21] * steveheyes has joined #silverstripe
735: [12:37:13] * SightUnseen has joined #silverstripe
736: [12:41:47] * SightUnseen quit (Ping timeout: 260 seconds)
737: [12:48:02] <kinglozzer> lat3ncy: Yeah it's possible
738: [12:54:52] * steveheyes quit (Quit: steveheyes)
739: [13:26:10] <lat3ncy> kinglozzer: Do you have any tips on doing just that ?
740: [13:27:03] <kinglozzer> lat3ncy: Build your own SS_List implementation (which is what DataList/ArrayList are based on)
741: [13:27:35] <kinglozzer> That'll allow you to do, for example $stuff = MyDummyDataObject::get()->filter(... etc as usual
742: [13:29:52] <lat3ncy> So I can just extend SS_List for my virtual model and implement the various methods I require and I can then do all the normal methods that are available on DataObject
743: [13:32:57] * Shrike_Finland quit (Quit: Leaving.)
744: [13:35:55] <micmania2> lat3ncy, you might be able to just extend Object, depending on your requirements.
745: [13:37:13] * SightUnseen has joined #silverstripe
746: [13:41:22] * SightUnseen quit (Ping timeout: 246 seconds)
747: [13:44:50] * ajshort has joined #silverstripe
748: [13:54:17] * catcher has joined #silverstripe
749: [14:08:52] * chillu quit (Quit: chillu)
750: [14:25:20] * skorp has joined #silverstripe
751: [14:25:44] * spronk2 quit (Quit: spronk2)
752: [14:30:05] <lat3ncy> kinglozzer, micmania2 thanks for the advice
753: [14:36:30] * chillu has joined #silverstripe
754: [14:37:11] * SightUnseen has joined #silverstripe
755: [14:39:54] <kinglozzer> lat3ncy / micmania2: Yeah, if what you're doing is fairly simple then just extending object (or even DataObject and just overloading write() to do nothing) might work better.
756: [14:40:23] <kinglozzer> If, like I had to, you need to access and edit the objects in the CMS, through a GridField, then an SS_List implementation is probably best
757: [14:41:14] <kinglozzer> It's possible to just create a custom Object, and pass an ArrayList of them to a GridField, but if you've got a lot of data you'll quickly hit memory limits as the results will be paginated by PHP (by ArrayList), instead of getting the API to handle limit/offset
758: [14:41:47] * SightUnseen quit (Ping timeout: 260 seconds)
759: [14:58:04] * cloph_away is now known as cloph
760: [15:26:31] * ARNHOE quit (Remote host closed the connection)
761: [15:37:11] * SightUnseen has joined #silverstripe
762: [15:41:25] * SightUnseen quit (Ping timeout: 248 seconds)
763: [16:12:55] * kinglozzer quit (Remote host closed the connection)
764: [16:22:17] * svandragt quit (Ping timeout: 272 seconds)
765: [16:37:12] * SightUnseen has joined #silverstripe
766: [16:40:41] * Error404NotFound has joined #silverstripe
767: [16:41:55] * SightUnseen quit (Ping timeout: 272 seconds)
768: [17:02:15] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
769: [17:10:13] * mrzero has joined #silverstripe
770: [17:10:14] * mrzero quit (Changing host)
771: [17:10:14] * mrzero has joined #silverstripe
772: [17:10:38] * skorp quit (Ping timeout: 240 seconds)
773: [17:37:12] * SightUnseen has joined #silverstripe
774: [17:41:47] * SightUnseen quit (Ping timeout: 248 seconds)
775: [18:28:59] * chillu quit (Quit: chillu)
776: [18:29:52] * chillu has joined #silverstripe
777: [18:37:11] * SightUnseen has joined #silverstripe
778: [18:41:19] * SightUnseen quit (Ping timeout: 246 seconds)
779: [18:57:05] * UndefinedOffset quit (Quit: Leaving.)
780: [19:27:25] * catcher quit (Quit: Leaving)
781: [19:37:11] * SightUnseen has joined #silverstripe
782: [19:41:31] * SightUnseen quit (Ping timeout: 246 seconds)
783: [19:46:16] * zlincoln has joined #silverstripe
784: [19:47:02] <zlincoln> on upgrade from 3.0 -> 3.1 content has weird characters throughout. does anyone know what causes this?
785: [19:48:16] <AlphaCactus> he had this problem because the database had somehow been created intially with swedich_ci collation. When we tried to import it to a general_ci collation it didn't translate all characters correctly. could it be something like this?
786: [19:48:20] <AlphaCactus> *we
787: [19:50:15] <zlincoln> i'm not sure - no db import/export on my part just an upgrade and build
788: [19:51:37] <AlphaCactus> hmmm. well, check your collation and ensure that it utf8 and utf8_general_ci.
789: [19:52:07] <AlphaCactus> if it isn't, maybe it is the cause? if not, then I've no idea.
790: [19:55:29] <zlincoln> ok, i can see that my db defaults to swedich_ci as well - that could be the issue - thanks
791: [20:01:30] <zlincoln> doesn't change anything - wondering if its the change in the $default_casting - do you know anything about that?
792: [20:30:59] <Nightjar> Wholey crap
793: [20:31:19] <Nightjar> I guess you know it was a good night when you wake up naked on top of your bed rather than in it.
794: [20:32:35] <Nightjar> zlincoln: please define "weird characters throughout"?
795: [20:46:57] <AlphaCactus> its are usually some รค and such in the content that weren't there before
796: [21:22:16] * AlphaCactus grammar champ.
797: [21:51:19] * pippy_ has joined #silverstripe
798: [21:54:14] * pippy quit (Ping timeout: 264 seconds)
799: [22:00:47] * zlincoln quit (Ping timeout: 250 seconds)
800: [22:17:07] <Nightjar> 12:23 irogue23 mornin' Nightjar
801: [22:17:14] <Nightjar> haha, I don't remember this
802: [22:22:25] * chillu quit (Quit: chillu)
803: [22:53:52] * violetina quit (Remote host closed the connection)
804: [23:18:47] * guci0 quit (Ping timeout: 250 seconds)
805: [23:47:24] <spronk> irogue23 called me bby on twitter.
806: [23:47:27] <spronk> I HAVE NO IDEA WHAT BBY IS
807: [23:47:43] <Nightjar> urbane donktionary
808: [23:49:01] <spronk> BABY!?
809: [23:49:30] <irogue23> ;)
810: [23:49:43] <spronk> trying to convert me
811: [23:49:53] * spronk loves boobies too much
812: [23:50:06] <Nightjar> Tits fantastic
813: [23:50:20] <irogue23> haha
814: [23:51:22] * kerosene has joined #silverstripe
815: [23:53:27] * lat3ncy quit (Ping timeout: 250 seconds)
816: [23:53:52] <irogue23> mummy merkel always looks so depressed
817: [23:53:53] <irogue23> http://www.nzherald.co.nz/world/news/article.cfm?c_id=2&objectid=11146571
818: [23:55:40] <spronk> LOL IV COURSE

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