#silverstripe IRC Log

IRC log for 1 July 2013

All timestamps are in UTC.

1: [00:01:00] <simon_w> ss23, no lunch until I've written at least one test class though
2: [00:01:42] * pex has joined #silverstripe
3: [00:03:58] <Peavers> st paul cafe lunch for me
4: [00:04:07] <Peavers> scone and coffee sounds pretty good right now
5: [00:04:35] <Colin[pi]> here ss23: http://i.imgur.com/77Sw3f5.jpg (cc sminnee)
6: [00:04:47] <sminnee> oh god
7: [00:04:48] <Peavers> lol
8: [00:05:26] <Colin[pi]> sminnee's breakfast revelation lol
9: [00:05:51] <ss23> simon_w: np np, just gimmie a txt/hilight as per usual
10: [00:05:54] <ss23> Colin[pi]: rofllllll
11: [00:05:55] <ss23> A+
12: [00:06:30] <Colin[pi]> btw why is it when I google Sam Minnee, I get a lot of cute asian girls modelling dresses?
13: [00:06:37] <Colin[pi]> seriously go and test it out
14: [00:06:42] <ss23> doing it
15: [00:06:45] <ss23> hmmm
16: [00:06:52] <ss23> sam, sam sam sam sam sam, ohhhh asian girls
17: [00:07:05] <Colin[pi]> see?
18: [00:07:06] <Colin[pi]> wtf
19: [00:07:10] <ss23> Looks like some kind of clothing?
20: [00:07:21] <Colin[pi]> he has a clothing label in asia too?
21: [00:07:24] <ss23> haha
22: [00:07:43] <Colin[pi]> jesus he really is planning world domination :D
23: [00:07:57] <ss23> lots of wird things with like... american crap too
24: [00:07:59] <ss23> the hats n stuff
25: [00:08:12] <Colin[pi]> it's all the throw us off the scent
26: [00:08:17] <ss23> XD
27: [00:08:18] <Colin[pi]> HIDE THE REAL SAM MINNEE
28: [00:08:20] <Colin[pi]> ;D
29: [00:08:21] <ss23> lol
30: [00:08:25] <ss23> I closed the images tab
31: [00:08:31] <ss23> got simon_w as a politican cat again
32: [00:08:32] <ss23> sminnee*
33: [00:08:33] <ss23> rofl
34: [00:08:36] <Colin[pi]> hehehe
35: [00:08:36] <ss23> it's so good
36: [00:08:42] <ss23> the expression and everything
37: [00:09:02] <Colin[pi]> came out ok for a 2 min job lol
38: [00:09:09] <Colin[pi]> sorry sminnee
39: [00:09:10] <Colin[pi]> lol
40: [00:09:14] <ss23> lol
41: [00:09:27] <sminnee> Colin[pi]: that *is* weird
42: [00:09:31] <Colin[pi]> haha
43: [00:09:38] <Colin[pi]> what the asian dresses thing?
44: [00:09:47] <Colin[pi]> who knows how google's algorithm works :\
45: [00:10:11] <ss23> Maybe it knows who sminnee is and is like "Oh this is what sminnee searches for!"
46: [00:10:14] <ss23> :O
47: [00:10:19] <Colin[pi]> XD
48: [00:10:37] <ss23> ingo's skype ends in 23, it's really... weird. Always makes me be like "what"
49: [00:10:38] <Colin[pi]> he has good taste then
50: [00:10:48] <ss23> Colin[pi]: Yeah yeah, but like I said, I'm pretty sure it was the *clothing*
51: [00:10:57] <ss23> It's not the asian ladies that Google was trying to give, it was the asian clothes!
52: [00:11:02] <Colin[pi]> lol
53: [00:11:19] <Colin[pi]> look if sminnee dresses like a geisha on his weekends it's his own business!
54: [00:11:21] <simon_w> Huh, already found one bug
55: [00:12:24] <ss23> XD
56: [00:12:48] <simon_w> strpos->stripos
57: [00:12:50] <simon_w> All fixed!
58: [00:12:58] <ss23> lol
59: [00:13:04] <ss23> No love for regex?
60: [00:13:04] <Colin[pi]> yay
61: [00:13:17] <ss23> I had a coworker who would use regex for *everything*
62: [00:13:39] <simon_w> I'm checking for a static string. regex is a bad idea in this case :p
63: [00:13:57] <ss23> I shit oyu not, he was like "I'm using preg_replace.... to include PHP files" (as in, preg_replace random crap to find out what directory we're in and includes from there) "instead of __DIR__ because __DIR__ is relative so it's slower"
64: [00:14:01] <ss23> idek.
65: [00:14:06] <Colin[pi]> wtf
66: [00:14:12] <Colin[pi]> regexes are very powerful but the syntax always does my head in :(
67: [00:14:22] <ss23> He was like a regex addict
68: [00:14:25] <ss23> Couldn't write a file without it
69: [00:14:39] <Colin[pi]> "there's a regex for that..."
70: [00:14:45] <ss23> lol
71: [00:15:30] <Colin[pi]> i used to know an oracle dba who was the same with stored procedures
72: [00:15:35] <simon_w> __DIR__ is also absolute
73: [00:15:39] <Colin[pi]> would write a stored procedure for everything
74: [00:15:52] <Colin[pi]> he was pretty good at it too
75: [00:16:09] <Colin[pi]> and not modest... "Colin I've written something which is absolutely amazing, come have a look"
76: [00:17:25] <guzzlefry_dev> How do I tell a controller action to use a specific layout template?
77: [00:17:27] * Bollig|DesignCty has joined #silverstripe
78: [00:18:10] <Colin[pi]> guzzlefry_dev: return $this->renderWith(array('TemplateName'));
79: [00:18:31] <Zauberfisch> guzzlefry_dev or you name the template accordingly
80: [00:19:02] <Zauberfisch> controllerName_actionName.ss
81: [00:19:12] <Colin[pi]> ah yes the underscore syntax also
82: [00:19:44] <guzzlefry_dev> thanks, I have to do it with renderWith, the template varies depending on some settings.
83: [00:19:58] <Zauberfisch> so a FooController with the "function BarAction" will try to use FooController_BarAction.ss first, if thats not found it will try FooController and if that does not work it takes the parent until it gets to the ContentController.ss
84: [00:20:17] <Colin[pi]> remember ->customise($data) also if you want to load up the template with other variables
85: [00:20:24] <Zauberfisch> guzzlefry_dev you can also passt data to the template
86: [00:20:30] <Zauberfisch> as Colin[pi] just pointed out
87: [00:20:40] <Zauberfisch> it would appear he is faster than I am
88: [00:21:02] <Colin[pi]> i.e. return $this->customise($arrayOfData)->renderWith(array('FirstTemplate','SecondTemplate','Page'));
89: [00:25:35] <Colin[pi]> took me a while to get my head around that customise/renderWith stuff when I first got into SS
90: [00:25:39] * Jayden90 has joined #silverstripe
91: [00:25:40] <Colin[pi]> but it makes sense
92: [00:25:52] <ss23> Doesn't make sense for me yet
93: [00:25:55] <ss23> But I'll wait and see
94: [00:27:32] <guzzlefry_dev> hm, $this->renderWith("myLayoutTemplate"); doesn't seem to render with the PageType template first.
95: [00:27:53] <Colin[pi]> try passing an array
96: [00:28:08] <Colin[pi]> $this->renderWith(array("myLayoutTemplate","Page"));
97: [00:28:29] <guzzlefry_dev> ah, thanks
98: [00:28:36] <guzzlefry_dev> I completely forgot the array() ;)
99: [00:30:24] <ss23> Uhhhhhh, so
100: [00:33:29] * ss23 rawrs
101: [00:33:39] <ss23> I am going to become the best infrastructure person the world has seen
102: [00:33:47] <ss23> convert EVERY project to perfectly managed composer and git and tools
103: [00:34:00] <ss23> I'll rule with an iron fist and banhammer anyone who doesn't do it the right way
104: [00:34:05] * LoveDuckie quit (Ping timeout: 252 seconds)
105: [00:34:55] * Jayden90 quit (Ping timeout: 264 seconds)
106: [00:34:58] * guzzlefry_dev hides
107: [00:35:03] <irogue> ss23 is becoming german
108: [00:35:23] <irogue> ingo would be pround
109: [00:35:45] <ss23> XD
110: [00:35:58] <ss23> ICH BEN HACH SILVERSTRILE
111: [00:36:02] <ss23> silverstripe
112: [00:36:09] <ss23> That sounds German, right? I know no German.
113: [00:37:19] <ss23> This is tripping me out. I SSH to a server and look in the assets, the file doesn't exist. I look in the CMS and the file doesn't exist. I make a request for the file anyway, AND IT EXISTS
114: [00:37:30] <ss23> Not sure if... idk what. Not sure if I'm going crazy
115: [00:38:02] <guzzlefry_dev> caching? 0.o
116: [00:38:13] <ss23> Not browser cache, cleared that
117: [00:38:22] <Peavers> had the samething going on this morning ss23
118: [00:38:24] <ss23> has to be something I'm overlooking...
119: [00:38:25] <guzzlefry_dev> I'm guessing SS wouldn't cache that stuff?
120: [00:38:29] <Peavers> Was my dev enviroment though...
121: [00:38:31] <ss23> Yeah, I don't thikn itwould either, guzzlefry_dev
122: [00:38:39] <guzzlefry_dev> proxy? :P
123: [00:39:58] <ss23> hmmm, might be _versions
124: [00:40:05] <guzzlefry_dev> I keep getting PascalCase and camelCase mixed up :/
125: [00:40:14] <ss23> lol
126: [00:41:07] <simon_w> UpperCamelCase and lowerCamelCase
127: [00:41:15] <ss23> it's not showing up with a find on the server either...
128: [00:41:15] <simon_w> Much less confusing :p
129: [00:41:21] <ss23> I.. I have to be... on the wrong server? Or something?
130: [00:41:22] <ss23> wtf
131: [00:42:41] <guzzlefry_dev> simon_w: well I mean the code I"m working with uses PascalCase for class members, PHP native stuff and myself use camelCase. :P
132: [00:44:42] <guzzlefry_dev> Are .Nice and .Debug related to the template engine itself or members of certain classes?
133: [00:45:09] <simon_w> Debug's on ViewableData, Nice's on DBField
134: [00:45:29] <guzzlefry_dev> thanks
135: [00:55:33] <guzzlefry_dev> http://www.bpaste.net/show/EEhxpa2kLjmTHSkrStlx/ Any idea why this won't show up in the template?
136: [00:58:50] <guzzlefry_dev> I tested $startDate->format("M"); right before the return statement just in case. Works fine.
137: [01:01:56] <ss23> k guise so like, in your .htaccess - https://github.com/silverstripe/silverstripe-installer/commit/4fd75527dc1cdfab49a403aaf6e61a650fe7238f
138: [01:02:03] <ss23> Probably either want that, or to make sure all your YAML *is* .yml, not .yaml
139: [01:02:07] <ss23> (Silverstripe will accept both)
140: [01:04:55] * DigNZ quit (Quit: DigNZ)
141: [01:06:12] <guzzlefry_dev> and...wrapping it in <% %> just kills the layout rendering all together. :P
142: [01:12:46] <guzzlefry_dev> http://www.bpaste.net/show/EEhxpa2kLjmTHSkrStlx/ anyone? >_>
143: [01:13:24] <simon_w> guzzlefry_dev, what sort of object's startDate?
144: [01:13:35] <guzzlefry_dev> simon_w: DateTime
145: [01:13:59] <guzzlefry_dev> The native PHP one.
146: [01:14:06] <simon_w> And that'll be why
147: [01:14:13] * pex quit (Quit: pex)
148: [01:14:21] <simon_w> Needs to be a SS_Datetime (or some other ViewableData subclass)
149: [01:15:46] <guzzlefry_dev> gah, docs didn't mention that. :/
150: [01:15:59] <Colin[pi]> I remember so much rage when PHP decided "hey, I know, lets include a class called DateTime in the core"
151: [01:16:36] <Colin[pi]> "That couldn't possibly interfere with years of userland code without a dedicated DateTime class, nuh-uh."
152: [01:17:53] <guzzlefry_dev> Well, this makes my current situation much more difficult. :P
153: [01:19:43] <Peavers> jut merged 4 live web servers into one without a second of downtime. What a champ.
154: [01:19:46] <guzzlefry_dev> The API I'm using returns an array of objects that have a few DateTime objects as properties, and I need to iterate over those and do some checks.
155: [01:19:58] <Colin[pi]> congrats Peavers
156: [01:20:41] <simon_w> Colin[pi], and then the guy who added DateTimeImmutable (without going through the correct process at all, just pushed it) made it subclass DateTime and was all "It works fine if you only use getter methods"
157: [01:21:19] <Peavers> did ss23 take his spot? :D
158: [01:21:39] <simon_w> This is for PHP
159: [01:21:46] <Peavers> ah
160: [01:22:01] <Colin[pi]> lol
161: [01:22:10] <Colin[pi]> I think I know exactly the guy you're talking about
162: [01:22:27] <Colin[pi]> he's done things like this a dozen times in PHP's history
163: [01:22:41] <Colin[pi]> what's the worst that can happen? *push*
164: [01:22:47] <Colin[pi]> USER LAND RAGE
165: [01:24:57] <ss23> 13:18:55 < Peavers> jut merged 4 live web servers into one without a second of downtime. What a champ.
166: [01:25:08] <ss23> Meanwhile, I update a clients *staging* site, ~30 seconds downtime
167: [01:25:10] <ss23> AND YOU CAN BET THEY LODGE A TICKET
168: [01:25:13] <ss23> "help my site is down"
169: [01:25:22] <ss23> like, really? 30 seconds and you managed to hit it perfectly along when I was doing this release?
170: [01:25:24] <Peavers> downtime? not acceptable ss23.
171: [01:26:06] <ss23> hmm, client uploaded an asset
172: [01:26:13] <ss23> It's still on the server in the assets/uploads/foo/file.pdf
173: [01:26:27] <ss23> In the DB, it only exists as fileName assets/uploads/foo/_versions/XX/....file.pdf
174: [01:26:32] <ss23> What cause dis?
175: [01:26:42] <simon_w> VersionedFiles module?
176: [01:26:57] <ss23> It has a FileVersions, so I wouldn't be surprised
177: [01:27:11] <ss23> yes @ versionedfiles
178: [01:27:49] <ss23> simon_w: But taht shouldn't like... cause it to vanish to there and not have a normal listing, should it?
179: [01:28:08] <simon_w> Apparently it does?
180: [01:28:15] <simon_w> I've never used the module :p
181: [01:28:48] <guzzlefry_dev> Is there an easy way to convert DateTime to SS_DateTime? I don't see anything on a constructor in the API.
182: [01:28:58] <guzzlefry_dev> err, API docs rather
183: [01:31:19] <ss23> simon_w: It's a bug I think :<
184: [01:31:28] <simon_w> DBField::create_field('SS_Datetime', $datetime->format('Y-m-d H:i:s'))
185: [01:33:00] <guzzlefry_dev> thank you
186: [01:35:29] <spronk> has anyone here had issues with SS creating multiple home pages?
187: [01:35:40] <spronk> and the CMS not allowing you to edit the second one (always redirecting to the first after it loads content) ?
188: [01:36:14] <Colin[pi]> i had that in <2.4.9
189: [01:36:36] <Colin[pi]> then ingo patched it
190: [01:36:37] <spronk> hrtm
191: [01:36:39] <spronk> this is 3.1
192: [01:36:42] <Colin[pi]> hmm
193: [01:36:48] <spronk> it's redirecting between my two homepages ad infinitum
194: [01:37:01] <spronk> so i can't edit either :/
195: [01:37:06] <Colin[pi]> sounds like a different bug then :(
196: [01:37:26] * guzzlefry_dev quit (Quit: Ex-Chat)
197: [01:37:47] * guzzlefry_dev has joined #silverstripe
198: [01:39:04] <simon_w> ss23, 4 minutes
199: [01:43:35] <ss23> simon_w: kk
200: [01:43:35] <ss23> o/
201: [01:43:36] <ss23> fuck
202: [01:43:38] <ss23> it's been 4 mins
203: [01:43:38] <ss23> bbl
204: [01:43:41] <ss23> noms
205: [01:49:24] * metanat has joined #silverstripe
206: [01:52:30] <metanat> Hi, should I expect to be able to use the Before and After yml priorities in master?
207: [01:58:30] <spronk> UGHHHHHh
208: [02:00:56] <spronk> when i try to edit homepage
209: [02:01:02] <spronk> it redirects in the CMS to edit page not found page
210: [02:01:04] <spronk> ?!?!?!?!?
211: [02:01:08] * tractorcow has joined #silverstripe
212: [02:01:20] <Peavers> have had that a number of times spronk
213: [02:01:38] <Peavers> are you using custom pagetypes?
214: [02:01:42] <spronk> ya many
215: [02:02:06] <Peavers> Normally I get that error when I've not assigned something right in my $db array
216: [02:05:08] <spronk> hmm
217: [02:05:09] <spronk> :S
218: [02:05:51] <spronk> i did notice that i don't hav a homepage table
219: [02:05:57] <spronk> even though my homepage class has a has_many
220: [02:06:56] <metanat> has many requires a has one
221: [02:07:19] <tractorcow> has_many doesn't create a database field on the page, only on the object on the opposite end :)
222: [02:07:23] <metanat> on the relating datobject, so you wouldn't expect a table if that is all it had
223: [02:07:56] <spronk> hmm
224: [02:08:01] <spronk> ah
225: [02:08:10] <spronk> i have has_many bannerimages => bannerimage
226: [02:08:16] <spronk> and bannerimage has has_one bannerlink->sitetree
227: [02:08:38] <spronk> the first has_many is on HomePage
228: [02:08:53] <tractorcow> is banner image only on the home page?
229: [02:09:03] <spronk> there are a couple of pages that use it
230: [02:09:18] <tractorcow> You have a relationship triangle
231: [02:09:20] <tractorcow> hehe
232: [02:09:28] <spronk> hmm
233: [02:09:28] <spronk> but
234: [02:09:41] <spronk> both are sitetree descendants
235: [02:09:43] <spronk> also, lol
236: [02:09:49] <tractorcow> your bannerlink->whatever needs to have a has_many on the whatever object
237: [02:09:58] <tractorcow> not on the subclass of the whatever object
238: [02:10:05] <spronk> superclass?
239: [02:10:08] <tractorcow> change it to page, and move the has_many to page
240: [02:10:15] <spronk> i'm sure i've done this before...
241: [02:10:26] <tractorcow> yes they are
242: [02:10:32] <tractorcow> they need to be the same class, not descendants
243: [02:10:58] <spronk> as in
244: [02:11:10] <spronk> i can't use the superclass in the has_one side?
245: [02:11:22] <tractorcow> right
246: [02:11:30] <spronk> grrr
247: [02:11:35] <tractorcow> I've made that mistake a few times
248: [02:11:57] <tractorcow> can't is a strong word. "can't without things acting really badly" is more honest :)
249: [02:12:05] <tractorcow> it's not the correct way to do it
250: [02:12:32] <tractorcow> but, if it's something a lot of pages have, you can put it on your Page page type class can't you?
251: [02:12:36] <tractorcow> or, something I do sometimes,
252: [02:12:41] <spronk> it's nasty as hell though
253: [02:12:47] <spronk> i have about 20 page types
254: [02:12:49] <tractorcow> if you want it only on SOME page types, create your banner dataobject without the relation
255: [02:12:52] <spronk> only 3 use banner iamges
256: [02:13:05] <tractorcow> and then subclass the dataobject, and add therelation for one page on that subclass
257: [02:13:27] <tractorcow> HomeBanner extends Banner { private static $has_one = array('Parent' => 'HomePage'); }
258: [02:13:30] <spronk> but then sharing the banner images betwen the three types is difficult
259: [02:13:43] <spronk> slash impossible
260: [02:13:50] <tractorcow> The banner has an image via has_one right?
261: [02:13:55] <tractorcow> you aren't extending the Image class are you?
262: [02:14:04] <tractorcow> three objects can has_one the same image file.
263: [02:14:14] <spronk> yeah, extends dataobject
264: [02:14:16] <spronk> has_one iamge
265: [02:14:52] <tractorcow> I'm just starting to give my opinion really,
266: [02:15:13] <tractorcow> take it for what it's worth :)
267: [02:15:20] <spronk> is all useful :)
268: [02:15:37] <tractorcow> if it needs absolutely to be shared between the pages, then just put it on the page main class
269: [02:15:38] <spronk> i might try putting it on Page and seeing the problem persists, at least
270: [02:15:46] <tractorcow> otherwise, manage each pool indepedently
271: [02:16:03] <tractorcow> you can always hide the field on page types you don't want to manage banners for
272: [02:16:10] <tractorcow> put a conditional in your getCMSFields
273: [02:16:16] <spronk> yeah, that's the part that i find ugly ;)
274: [02:16:18] <ss23> if simon_w doesn't reply in the next 30 seconds it means ss23 is the best
275: [02:16:33] <simon_w> That again?
276: [02:16:39] <spronk> pwned.
277: [02:16:47] <ss23> lol
278: [02:16:48] <ss23> dammit
279: [02:18:30] <tractorcow> spronk: I know in ruby's active record there's a hack around this. the has_one relation is stored in 2 fields, the object id and the class name
280: [02:18:46] <tractorcow> don't know if that could be done in sapphire
281: [02:19:30] <tractorcow> Highly unlikely :)
282: [02:19:59] <tractorcow> are we still calling it sapphire, or it just "silverstripe framework" now?
283: [02:20:01] <ss23> Hmm, finding music to listen to
284: [02:20:02] <ss23> It is tough
285: [02:21:04] <tractorcow> listen to the silverstripe-framework bug tracker through text to speech
286: [02:21:11] <ss23> NOOO
287: [02:21:13] <ss23> anything but that!
288: [02:21:57] <tractorcow> ss23: what are you working on?
289: [02:22:06] <ss23> Buggy site that keeps deleting pages
290: [02:22:10] <ss23> And assets
291: [02:22:22] <ss23> It's the buggiest Silverstripe site I've ever seen, can't figure out the root cause of all the crap it's doing
292: [02:22:51] <tractorcow> I had a ss site that had thousands of _version records being created.
293: [02:23:02] <tractorcow> turned out it was some shoddy hit counter that was publishing a new record every page view :)
294: [02:23:17] <simon_w> Just install PageView :p
295: [02:23:26] <tractorcow> I saw that after the fact, yeah :)
296: [02:23:39] <tractorcow> We use google analytics now
297: [02:23:40] <simon_w> (really, you don't want to install PageView)
298: [02:23:48] <tractorcow> nope
299: [02:23:54] <ss23> install every unclecheese module!
300: [02:23:54] <ss23> :D
301: [02:23:57] <ss23> ON 2.4!!!!
302: [02:24:05] <tractorcow> I've been upgrading them to 3.1
303: [02:24:08] <tractorcow> well, some of them
304: [02:24:49] <ss23> The upgrade could be scripted I gues
305: [02:24:59] <ss23> Just annoying to maintain two branches
306: [02:25:13] <tractorcow> I canabalised his image gallery module https://packagist.org/packages/tractorcow/silverstripe-imagegallery
307: [02:26:19] <tractorcow> anyway, if you have interesting problems ss23 I'd be happy to look at them
308: [02:26:42] <tractorcow> I'm just doing tech writing today >_>
309: [02:26:45] <ss23> XD
310: [02:26:50] <tractorcow> Need some stimulation
311: [02:26:52] <ss23> tractorcow: I suspect there is an issue to do with sitetree and not showing all a paages children, tractorcow
312: [02:27:13] <tractorcow> Check if there are any orphaned pages?
313: [02:27:16] <simon_w> Woo, S Club!
314: [02:27:17] <ss23> Not quite
315: [02:27:18] <tractorcow> there's a CMS task you can run
316: [02:27:31] <ss23> I haven't figured out what's going on exactly, but I think I could kind of reproduce if you have a 3rd level child that is "Published but removed from draft" with children, it won't display the children, then even if you restore the page and refresh, it wont' say it has children
317: [02:27:38] <ss23> The only way I found to get it to 'see' the children was a flush=1
318: [02:27:44] <ss23> Which seems silly, why does it need a flush to find childrne?
319: [02:27:49] <ss23> so I feel like there's an obscure issue there
320: [02:28:01] <tractorcow> refresh the whole page?
321: [02:28:15] <ss23> Yeah, like refresh the CMS, still doesn't show children
322: [02:28:16] <tractorcow> is this 2.4?
323: [02:28:22] <ss23> Nope, 3.1 de
324: [02:28:23] <ss23> dev
325: [02:28:51] <ss23> I don't have the DB in a state where I can reproduce easily (also I'm not meant to waste time with 'opensource' when clients are waiting on 'WTF MY WEBSITE IS BROKEN' :P)
326: [02:28:59] <ss23> But if you wanted to play with that, you could! idk
327: [02:29:02] <ss23> That's the only bug I've found recently
328: [02:29:46] <tractorcow> I think I've seen this on the bugtracker recently
329: [02:30:00] <tractorcow> don't remember where
330: [02:30:05] <guzzlefry_dev> Can I iterate over a regular array full of primitives in a template?
331: [02:30:41] <tractorcow> nope
332: [02:30:50] <guzzlefry_dev> :(
333: [02:30:52] <tractorcow> Wrap it in an ArrayList to get that
334: [02:30:55] <ss23> There is *definitly* something wrong with this site though. 22k sitetree_versions
335: [02:31:02] <ss23> for one particular page type that only has 20 pages published
336: [02:31:04] <metanat> Ahha! I found a bug in framework
337: [02:31:21] <guzzlefry_dev> tractorcow: what do you mean?
338: [02:31:28] <ss23> metanat: Now fix it and write some unit tests! :D
339: [02:31:56] <metanat> ss23: Yep
340: [02:31:58] <tractorcow> guzzlefry_dev: If you wrap your array in a 'new ArrayList' then you can iterate over it in the template
341: [02:32:19] <tractorcow> guzzlefry_dev: but if each item is a primitive, you might need to wrap it in an ArrayData as well
342: [02:32:34] <tractorcow> guzzlefry_dev: it's long - winded I admit. :=(
343: [02:32:42] <ss23> Does SiteTree_versions not log when a page is deleted? :S
344: [02:33:07] * guzzlefry_dev wonders why Template doc doesn't mention this stuff. :P
345: [02:33:14] <Colin[pi]> is it running on ss? ;) http://www.news.com.au/business/breaking-news/technical-glitches-halt-all-trading-on-nzx/story-e6frfkur-1226672500268
346: [02:33:16] <ss23> guzzlefry_dev: Docs need fixing, you wanna do it? :D
347: [02:33:46] <guzzlefry_dev> I wouldn't mind in my spare time.
348: [02:34:04] <ss23> lol Colin[pi], I hope not, it seems scary to bring down a site that big
349: [02:35:00] <ss23> Grrr
350: [02:35:27] <ss23> It just looks like this page has been deleted...
351: [02:35:32] <ss23> No trace of it left anywhere but _versions
352: [02:35:42] <ss23> And it's not the only page that has been deleted, there's more :/
353: [02:35:55] <tractorcow> if a parent page is deleted, it's children are deleted too right?
354: [02:36:05] <ss23> I presume, that's what's happened here it looks like
355: [02:36:12] <tractorcow> *its
356: [02:39:30] <tractorcow> what does www.domain.com/RemoveOrphanedPagesTask look like?
357: [02:41:20] <metanat> Is it still possible to get bugfixes into 3.1?
358: [02:41:31] <simon_w> metanat, yes
359: [02:43:36] <guzzlefry_dev> How do you guys deal with JSON results? I find myself having to do tons of manipulations on it just to get it working in the template. Is there a better way?
360: [02:45:01] <tractorcow> Ah, I see what you mean. If you have a json serialised string and want it rendered using template language?
361: [02:45:25] <tractorcow> It would be great to have some kind of converter to turn a generic object into a viewable item
362: [02:45:36] <tractorcow> you just have to do it yourself I guess :)
363: [02:46:14] <guzzlefry_dev> Well I'm actually using a wrapper around the soap API. The results I get back are schedule data. Basically an object with an array of objects. :P
364: [02:47:11] <tractorcow> hard to render stuff in the templates elegantly unless the object extends ViewableData unfortunately
365: [02:47:31] <guzzlefry_dev> I might just ghetto it and generate an HTML string since I need it done by tonight. >_>
366: [02:47:52] <guzzlefry_dev> refactor properly when it's not such an immediate task.
367: [03:07:17] <ss23> simon_w~ What's the easiest way to get a script to... hmmm, restore *some* pages that exist in SiteTree_versions but not SiteTree ot SiteTree_Live, back to SiteTree?
368: [03:07:47] <simon_w> grab the version, ->writeToStage('Stage')?
369: [03:08:08] <ss23> How do you know which version it is?
370: [03:08:19] <simon_w> The latest one?
371: [03:08:44] <simon_w> Versioned::get_latest_version('SiteTree', $id)
372: [03:08:52] <ss23> $id == ??
373: [03:09:03] <simon_w> The ID of the page you want to get back
374: [03:09:31] <ss23> I don't know all their IDs unfortunatly :<
375: [03:09:35] <ss23> I can do a query for it I guess
376: [03:09:50] <simon_w> Gotta get it somehow
377: [03:11:52] <ss23> I need to set up a dev enviroment to test this before I run it,wah
378: [03:11:57] <ss23> support sux
379: [03:17:49] * supernovah has joined #silverstripe
380: [03:19:52] <simon_w> Three tickets solved, back to unit tests
381: [03:20:06] <Peavers> how on earth can I delete my commits from github?
382: [03:20:16] <Peavers> rebasing doesn't seem to do anything?
383: [03:20:23] <ss23> lol Peavers, I saw that, I got an email about it :D
384: [03:20:34] <Peavers> Shits got messed up lol
385: [03:20:35] <ss23> Peavers: Make the changes, then rebase, then push with a force?
386: [03:20:48] <Peavers> I started using gitbash, then switched to using my IDE
387: [03:21:09] <Peavers> I need to hard reset and start again I think
388: [03:23:03] <ss23> I just close my stuff and start again
389: [03:23:12] <Peavers> thats just what I've done lol
390: [03:24:01] <simon_w> I just only use the CLI :p
391: [03:24:09] <simon_w> (like a bawass)
392: [03:24:24] <Peavers> yeah thats what I was doing just fine, then phpstorm popped its ugly head in
393: [03:24:46] <Peavers> asking if I wanted to accept and in my alt tabbing frenzy I mus have ticked somethings and unticked others and said sure go ahead
394: [03:24:50] <Peavers> ruined everything!
395: [03:26:18] <ss23> BROKE IT
396: [03:26:24] <ss23> My name is geroge mc gerogio
397: [03:26:28] <ss23> and I am doing a song with daft punk
398: [03:26:42] <ss23> but everyone calls me the double quater mcgeorgio
399: [03:29:03] <Peavers> now github is giving me 403 errors!
400: [03:32:31] * DigNZ has joined #silverstripe
401: [03:35:38] <simon_w> Got a SSH remote?
402: [03:38:23] <simon_w> Woo, Hamish is fixing the Only/Exclude blocks
403: [03:38:58] <Peavers> yeah something funny was going on. have deleted the fork, all traces of the project and I'm starting from a fresh fork..
404: [03:39:46] <metanat> simon_w: That is great news!
405: [03:40:17] <metanat> Now I don't have to rely on my hacky workaround
406: [03:40:58] <supernovah> Hello from 1700m up on Ruapehu lol
407: [03:41:20] <metanat> supernovah: Jealous
408: [03:41:27] <Peavers> snow must be epic right now
409: [03:41:39] <supernovah> Oh it's not amazing but it's still skiable
410: [03:42:15] * cloph_away has joined #silverstripe
411: [03:42:45] * cloph quit (Read error: Operation timed out)
412: [03:42:46] <ss23> lol, nice supernovah
413: [03:43:18] <Peavers> alright ss23, I've masted that pull request. apologies to ajshort who prob thinks I'm a complete nub
414: [03:43:28] <ss23> s/thinks/knows/
415: [03:43:30] <ss23> OHHHHH
416: [03:43:31] <ss23> XD
417: [03:43:47] <Peavers> mean.
418: [03:43:48] <ss23> I'm going to need to unfollow all of these projects. Getting an email for *every* change on every repo sounds annoying
419: [03:43:51] <ss23> Peavers: <3
420: [03:44:01] <ss23> Just no one tell s a m that I'm abusing clients :D
421: [03:44:32] * guci0 has joined #silverstripe
422: [03:44:47] <guci0> Hello Moto!
423: [03:44:51] <Peavers> lol you shal remain on support forever at this rate
424: [03:44:54] <ss23> Hallo Hans
425: [03:45:11] <ss23> Peavers: take the people who are mean to clients and keep them on support? :P
426: [03:45:29] <Peavers> ss23 can you or someone reject/close/cancel that first pull request? Or can I do it on my end?
427: [03:45:59] <metanat> Peavers: You should be able to close it right?
428: [03:46:00] <ss23> You can, just click "close"
429: [03:46:08] <ss23> oh, that feels nice
430: [03:46:13] <ss23> "ss23 can you deal with my pull request"
431: [03:46:18] <ss23> YES I CAN, I HAVE COMMIT ACCESS
432: [03:46:19] <ss23> MUAHAHHAHAa
433: [03:46:25] <ss23> I need to drink more coke.
434: [03:47:17] <Peavers> right, is there anywhere else the history of my nub pull request remains?
435: [03:47:23] <Peavers> need to purge this from my account...
436: [03:47:38] <simon_w> ss23, which repos though?
437: [03:52:57] * EasyCo quit (Ping timeout: 268 seconds)
438: [03:52:57] <supernovah> Is the group system for members built into ss
439: [03:53:13] <simon_w> yes
440: [03:53:23] <supernovah> also permission provider?
441: [03:54:15] <simon_w> yes
442: [03:54:53] <tractorcow> Ah, ss23 can pull my ORM rewrite :)
443: [03:55:06] <simon_w> He better not be able to
444: [03:55:08] <tractorcow> it's only 15,000 lines of changes
445: [03:55:21] <simon_w> tractorcow, answer my questions about it!
446: [03:55:29] <tractorcow> sorry, I was AFK for like 2 hours
447: [03:55:31] <tractorcow> what was the question?
448: [03:55:41] <simon_w> Look at my first comment :p
449: [03:55:47] <metanat> tractorcow: Is that the PDO one?
450: [03:55:52] * mobiusnz1 has joined #silverstripe
451: [03:55:53] <tractorcow> yes
452: [03:56:03] <tractorcow> Sorry Simon,
453: [03:56:09] <tractorcow> I'll get into that
454: [03:56:13] <tractorcow> when did you send that comment?
455: [03:56:13] * mobiusnz quit (Read error: Connection reset by peer)
456: [03:56:31] <tractorcow> I think I got a notification about a comment a few days ago, but when I checked it I couldn't find it
457: [03:56:40] <tractorcow> I assumed I was just seeing old notifications
458: [03:56:54] <simon_w> 3 months ago
459: [03:57:08] <tractorcow> kk
460: [03:57:15] <tractorcow> I see it :)
461: [03:57:35] <tractorcow> 1. Files should now end with a newline. I replied to this in a later commit.
462: [03:57:56] <simon_w> Yes yes, you've replied to some. But not the important one.
463: [03:58:40] <tractorcow> 2. Yes, I'm using class_exists instead of extension_loaded. :)
464: [03:58:41] <ss23> simon_w: Not sure what repos, looks like -labs at least
465: [03:59:04] <simon_w> ss23, eh, no one cares about labs :p
466: [03:59:11] <tractorcow> 3. I changed the default back to MySQLi connector for MySQL
467: [03:59:17] <tractorcow> PDO is now non-default option
468: [03:59:30] <tractorcow> 4. Changed indentation to tabs
469: [04:00:02] <ss23> simon_w: OUCH
470: [04:00:08] <tractorcow> 5. There's no optimisation for reuse of prepared statements
471: [04:00:22] <ss23> lol Peavers
472: [04:00:26] <ss23> Peavers: You keep getting TOLD
473: [04:00:32] <simon_w> So a massive slowdown when using them
474: [04:00:34] <ss23> Peavers: LEARN DA CONVENTIONS PLZ
475: [04:00:40] <tractorcow> 6. There should be upgrade docs in 3.2.0.md
476: [04:00:42] <simon_w> That seems like some important information
477: [04:00:56] <tractorcow> possibly :)
478: [04:01:30] <tractorcow> I have been doing some research into the best way to cache / reuse prepared statements, but I haven't yet come up with a best solution
479: [04:01:42] <tractorcow> There doesn't seem to be any robust way of caching them between requests
480: [04:02:08] <tractorcow> as far as mysql is concerned, the general concensus is just to let the query cache take care of it
481: [04:02:34] <ss23> Or better yet, innodb other caches
482: [04:02:40] <ss23> cause query cache seems like a poor place to use your RAM
483: [04:02:50] <tractorcow> It leaves me to think I should stick to a per-request based cache
484: [04:03:08] <ss23> If you're running the *exact* same query over and over again, then you might as well memcache it, and if it changes even slightly, query cache is waste of ram
485: [04:03:13] <tractorcow> ss23: Sometimes ram is cheaper than lost sales :)
486: [04:03:33] <ss23> If ram is cheap, store your entire DB in ram, still don't bother with query-cache
487: [04:03:36] <ss23> :D
488: [04:03:48] <simon_w> Pretty much what we're doing
489: [04:04:06] <ss23> simon_w: But yeah, all of labs and gsco/widgets on silverstripe
490: [04:04:11] <tractorcow> I was going to at least cache the statements in ram, but I was hoping to find a better way
491: [04:04:12] <ss23> (dunnoy why the two random silverstripe ones)
492: [04:04:27] <ss23> tractorcow: Are you turning on real prepared instead of emulated?
493: [04:04:51] <tractorcow> MySQL knows better how to invalidate a cache than my tinny mysqli connector class
494: [04:05:09] <tractorcow> as far as caching results goes, I mean
495: [04:05:17] <tractorcow> I have no idea what that is I'm afraid =/
496: [04:05:17] <simon_w> ss23, that's why I'm worried about the performance penalties
497: [04:05:44] <ss23> Well, I thought PHP was emulate by default (though I haven't looked at the source)
498: [04:05:46] <tractorcow> There's an emulated prepared mode?
499: [04:05:58] <ss23> tractorcow: Yes, how do you think it does prepared statements for sqlite etc :P
500: [04:06:08] <simon_w> tractorcow, ->filter() is pretty much emulated prepared statements
501: [04:06:16] <tractorcow> Erm, yes,
502: [04:06:20] <tractorcow> I see. :)
503: [04:06:21] <simon_w> ss23, PDO uses native if it can
504: [04:06:30] <simon_w> MySQLi has no emulated
505: [04:06:45] <tractorcow> Well, I'm leaving that up to the database connector classes... I don't know how mysqli_prepare handles things.
506: [04:08:40] <tractorcow> simon_w: Regarding class_exists, I was following the style of the existing installer code. https://github.com/silverstripe/silverstripe-framework/blob/3.1/_register_database.php
507: [04:09:07] <simon_w> tractorcow, yes, I did read your answers to all my questions you actually answered previously :p
508: [04:09:09] <tractorcow> The current style is to use class_exists and function_exists
509: [04:09:22] <tractorcow> I forgot if I answered them all lol (it was a few months ago now >_>)
510: [04:09:37] <tractorcow> I just want to know if I need to go back and redo that :)
511: [04:10:06] <simon_w> Oh, don't worry, I'm going to make you redo a lot once I've done some speed tests :)
512: [04:10:13] <tractorcow> that's fine, I'll be expecting it
513: [04:11:55] <tractorcow> with regards to prepared statements, I actually had a bit of a look at the Zend_DB library to see how they parse queries
514: [04:12:12] <tractorcow> I quickly looked away again, agh
515: [04:12:32] * zippy__ quit (Quit: zippy__)
516: [04:12:34] <tractorcow> It seems to revolve a lot around tokenising queries, extracting placeholders, stitching it back up again.
517: [04:12:57] <tractorcow> I had to use some of their code for my postgres connector.... it doesn't suppport '?' as a placeholder, only numbered parameters
518: [04:13:26] <tractorcow> So there's a preliminary step where I had to manually parse each query and substitute the question marks.
519: [04:20:05] <tractorcow> simon_w: is there a better alternative to ->filter('Field:ExactMatch:Not', $value)?
520: [04:20:28] <simon_w> ->exclude('Field', $value)
521: [04:20:56] <tractorcow> Thanks!
522: [04:21:41] <tractorcow> I thought it was more difficult than it needed to be :)
523: [04:22:32] <ss23> simon_w: how to get every page that exists in SiteTree_versions but not SiteTree or SiteTree_live?
524: [04:22:39] <ss23> Raw SQL?
525: [04:22:43] <simon_w> Yes
526: [04:22:45] <supernovah> Where should I describe a custom permission I want to create?
527: [04:22:47] <supernovah> page.php?
528: [04:23:34] <tractorcow> implement permissionprovider
529: [04:23:46] <tractorcow> You CAN put it on anything,
530: [04:23:51] <supernovah> Yeah I see
531: [04:23:52] <tractorcow> but it should ideally be on the dataobject that uses it
532: [04:24:07] <supernovah> Not too familiar with "implements" in PHP but I got a general idea of it from reading the core
533: [04:24:31] <tractorcow> it means it adheres to an interface
534: [04:24:46] <tractorcow> PermissionProvider isn't a class
535: [04:24:51] <supernovah> yeah
536: [04:24:59] <supernovah> I read about interfaces in the php documentation too
537: [04:25:10] <tractorcow> I'm waiting for my traits :)
538: [04:25:26] <ss23> simon_w: select SiteTree_versions.RecordID,SiteTree_versions.ID,SiteTree_versions.Title from SiteTree_versions LEFT JOIN SiteTree_Live l ON SiteTree_versions.RecordID = l.ID WHERE l.ID is NULL AND SiteTree_versions.ClassName = 'ProgrammeAreaPage' GROUP BY SiteTree_versions.RecordID;
539: [04:25:28] <tractorcow> pseudo-multiple inheritance
540: [04:25:38] <ss23> does not work as expected, because I assume, it does the join before the group
541: [04:25:41] <ss23> how 2 do dis
542: [04:25:46] <tractorcow> I'm sad to say I really miss it from C++. I could write some mind boglingly awful code
543: [04:26:22] <tractorcow> What is "as expected"?
544: [04:26:26] <simon_w> ss23, ditch SiteTree_versions.ID, select DISTINCT
545: [04:26:52] <tractorcow> _versions.ID is just the row id of that version
546: [04:26:55] <tractorcow> right?
547: [04:27:02] <simon_w> yes
548: [04:27:13] <ss23> Assuming you mean like dis, still no work
549: [04:27:21] <ss23> select DISTINCT SiteTree_versions.RecordID,SiteTree_versions.Title from SiteTree_versions LEFT JOIN SiteTree_Live l ON SiteTree_versions.RecordID = l.ID WHERE l.ID is NULL AND SiteTree_versions.ClassName = 'ProgrammeAreaPage';
550: [04:28:01] <tractorcow> where RecordID NOT IN (Select ID FROM SiteTree_Live) ?
551: [04:28:02] <simon_w> ss23, try doing the NULL check on some other field
552: [04:28:08] <simon_w> tractorcow, ewwwwwwwwww
553: [04:28:12] <tractorcow> haha
554: [04:29:21] <ss23> simon_w: Which field? There are already issues to do with title not being unique
555: [04:29:39] <simon_w> ss23, WHERE l.Created IS NULL, or something like that
556: [04:29:47] <ss23> Oh I see what you mean
557: [04:30:01] <ss23> same dealio
558: [04:30:13] <simon_w> So what are you getting?
559: [04:30:36] <ss23> every ProgrammeAreaPgae in SiteTree
560: [04:30:56] <ss23> As you're aware, I just want the ones that *aren't* in SiteTree
561: [04:31:17] <tractorcow> And each version with a changed title?
562: [04:31:23] <ss23> No, nothing to do with titles
563: [04:31:31] <tractorcow> Then why distinct title?
564: [04:31:35] <ss23> I just mean selecting based on title is a bad idea, cause... some titles of these pages aren't unique
565: [04:31:38] <ss23> what
566: [04:31:42] <tractorcow> afk :)
567: [04:31:42] <ss23> Distinct RecordID
568: [04:31:43] <ss23> Not title :O
569: [04:32:43] <ss23> wait no
570: [04:32:44] <ss23> I'm wrong
571: [04:32:45] <ss23> simon_w: works
572: [04:33:31] <tractorcow> If you select all versions with distinict id, title, you'll get a separate row for each distinct title too
573: [04:33:40] <ss23> This isn't going to work
574: [04:33:41] * ss23 dies
575: [04:34:00] <tractorcow> You want all pages of a certain type, but not in the live table?
576: [04:34:11] <tractorcow> and only the most recent title?
577: [04:34:17] <tractorcow> and filter by a specific class name, eh?
578: [04:34:19] <ss23> lol
579: [04:34:22] <ss23> dw, tractorcow
580: [04:34:24] <ss23> I don't know what I want
581: [04:34:28] <ss23> I want this to not be a broken DB
582: [04:34:34] <tractorcow> I'm just bored, sorry =/
583: [04:34:45] <ss23> np
584: [04:34:55] <tractorcow> I still think sub queries are sexy
585: [04:35:00] <ss23> I should keep specimens of this DB so someone can do a post-mortem on it
586: [04:35:04] <ss23> tractorcow: Sure, if you like slowness
587: [04:35:34] <tractorcow> Non-correlated subqueries are pretty comparable in performance
588: [04:36:05] <simon_w> tractorcow, MySQL doesn't do subquery caching
589: [04:36:42] <tractorcow> Really? That I didn't know.
590: [04:37:05] <ss23> simon_w: So I get a version with the get_latest_version, but ->write doesn't write to a stage, and publish() takes a from stage and to stage
591: [04:37:10] <simon_w> It's why there's the whole "subqueries are bad" notion
592: [04:37:23] <ss23> How to like... publish to a stage without specifinyg where it came from?
593: [04:37:23] <simon_w> ss23, ->writeToStage()?
594: [04:37:26] <ss23> ty
595: [04:37:36] <supernovah> I'm having an odd issue with adding members to a group, it says success and to close the popup, but no group entry was made to the DB
596: [04:38:22] <tractorcow> I need more people to lean over my shoulder and tell me when I do stupid things =/
597: [04:39:03] <guci0> :)
598: [04:39:14] <tractorcow> I think I've been coding solo for too long
599: [04:39:24] <simon_w> tractorcow, you're doing stupid things!
600: [04:39:46] <ss23> simon_w: IT DIDN'T WORK
601: [04:39:47] * ss23 CRIES
602: [04:39:52] <tractorcow> That's just coincidence that time!
603: [04:40:03] <ss23> $page = Versioned::get_latest_version('ProgrammeAreaPage', $id);
604: [04:40:06] <ss23> $page->writeToStage('Stage');
605: [04:40:12] <ss23> simon_w: I DID THAT, But it's not in SiteTree still :<
606: [04:40:39] <simon_w> ss23, try $page->writeToStage('Stage', true);
607: [04:40:43] <ss23> var_dump($page) showed it was a real page
608: [04:40:43] <simon_w> (the true forces an insert)
609: [04:41:48] <tractorcow> Yeah, it won't write otherwise if there's no changed fields, right?
610: [04:42:06] <Peavers> code style, do you guys mind if the braket for a method is a line below the method name? or want the braket one space after the method name?
611: [04:42:07] <ss23> Hmm
612: [04:42:09] <ss23> Now I'm more confused
613: [04:42:13] <ss23> mysql> select ID,Title,ClassName from SiteTree_Live WHERE ID = 4748;
614: [04:42:14] <ss23> Empty set (0.00 sec)
615: [04:42:31] <ss23> but the ->writeToStage says :Duplicate entry '4748' for key 'PRIMARY'
616: [04:42:54] <simon_w> tractorcow, no, it won't UPDATE if there's no row with the existing ID
617: [04:42:56] <tractorcow> you're writing to the Stage stage though right?
618: [04:43:02] <ss23> uguu
619: [04:43:04] <ss23> Live, nmy bad
620: [04:43:11] <ss23> Hmm
621: [04:43:12] <tractorcow> simon_w: Ya
622: [04:43:22] <ss23> simon_w: Still didn't work well. It didn't retain the Title / Content / anything
623: [04:43:57] <tractorcow> ok, I gotta split. :)
624: [04:44:08] <tractorcow> ss23: Best of luck to you mate :)
625: [04:44:24] * tractorcow quit (Quit: Leaving)
626: [04:44:25] <ss23> INSERT INTO "Page" ("ID", "SidebarContent", "EBS4Timestamp", "MetaKeywords", "GoogleConvId", "GoogleConvFrmt", "GoogleConvLabl", "GoogleConvValu") VALUES (4748, null, null, null, null, null, null, null)
627: [04:44:29] <ss23> That's not good.
628: [04:44:38] <ss23> The entire idea of restoring is so the client doesn't lose the data :<
629: [04:44:49] <ss23> why is it even inserting into page
630: [04:44:53] <ss23> It's a ProgrammeAreaPage, right simon_w?
631: [04:45:01] <simon_w> Cause it's a subclass of Page?
632: [04:45:08] <ss23> Hmm
633: [04:45:46] <ss23> well now I'm just confused
634: [04:45:53] <ss23> hmm
635: [04:45:58] <ss23> simon_w: silverstripe is hard
636: [04:45:58] * ss23 dies
637: [04:46:19] <simon_w> Try: $page = Versioned::get....; $newPage = new ProgrammeAreaPage; $newPage->update($page->toMap()); $newPage->writeToStage('Stage', true);
638: [04:46:39] <ss23> Yeah, it's working, but for some reason it seems like it caught some old values or something
639: [04:46:45] <ss23> this DB is seriously so corrupted I just wanna start again
640: [04:49:00] <ss23> simon_w: Okay so, the restore kind of works, but it doesn't restore data from old ProgrammeAreaPage_versions to ProgrammeAreaPage when I do the writeToStage
641: [04:49:18] <ss23> simon_w: So it creates a new row in ProgrammeAreaPage, but not with the data I need from ProgrammeAreaPage_versions
642: [04:49:55] <simon_w> ss23, try a $page->forceChange();
643: [04:49:59] <simon_w> (before write())
644: [04:51:04] <ss23> same thing, simon_w
645: [04:55:10] <ss23> simon_w: So I've ranted to you about lots of these kinds of issues. Do you think there's a chance either versionfeed or versionedfiles is causing all of the issues I've seen?
646: [04:55:38] <simon_w> Maybe? Never dealt with either module so no idea
647: [04:55:44] <ss23> Me either :<
648: [04:55:50] <ss23> I'm reading their source now, but idk, rawrs
649: [04:55:51] <ss23> ssaoaslfknasf
650: [04:58:48] * mobiusnz1 quit (Quit: Leaving.)
651: [05:04:02] <simon_w> Woo, pink bar!
652: [05:04:05] * nickmolhoek quit (Quit: nickmolhoek)
653: [05:04:08] <ss23> Woohoo!
654: [05:05:05] <simon_w> Next class!
655: [05:05:51] * coldblooded01 quit (Quit: coldblooded01)
656: [05:05:59] * DigNZ quit (Quit: DigNZ)
657: [05:06:01] <supernovah> The default security forgot logon email on my SS doesn't work
658: [05:06:13] <supernovah> Lol how on earth do I debug that
659: [05:06:17] <ss23> It just uses sendmail, right?
660: [05:06:23] <simon_w> Do other emails work?
661: [05:06:24] <ss23> Probably a server misconfiguration
662: [05:06:26] <supernovah> yes
663: [05:06:28] <supernovah> they do
664: [05:06:33] <ss23> Hmmmmmmmm
665: [05:06:40] <ss23> OPEN THE CODE
666: [05:06:42] <simon_w> var_dump all the things!
667: [05:06:42] <ss23> and check error log
668: [05:06:48] <ss23> ^^
669: [05:06:50] <ss23> var_dump == <3
670: [05:06:54] <ss23> poor mans debugger
671: [05:06:57] <ss23> NAT is the poor mans firewall
672: [05:08:16] <Colin[pi]> print_r saves me often too
673: [05:09:12] * EasyCo has joined #silverstripe
674: [05:11:06] <simon_w> Flushing to run tests on cwp takes far too long
675: [05:11:15] <Peavers> You're telling me.
676: [05:11:17] <ss23> Oh you're using cwp? Fancy pants
677: [05:11:34] <ss23> I got a box up to ~19 load today after doing a release + flush + dev/build
678: [05:11:43] * Shrike_Finland quit (Quit: Leaving.)
679: [05:11:48] <simon_w> yeah, that happens
680: [05:12:13] * EasyCo quit (Client Quit)
681: [05:13:50] <supernovah> I accidentally made everything twice the size on windows
682: [05:13:53] <supernovah> how do I undo that
683: [05:13:55] <supernovah> haha
684: [05:14:02] <Colin[pi]> lol wut
685: [05:14:03] <supernovah> like I can mouse to the corner of my screen and scroll around it
686: [05:14:25] <supernovah> +++
687: [05:14:39] <supernovah> I had the screwdriver near the + and enter on the nmpad
688: [05:15:35] <Peavers> Can someone PLEASE put the "Export to CSV" button back inline in the next dev push!?
689: [05:15:37] <Peavers> its killing me.
690: [05:17:22] <Colin[pi]> siiigggh just spent 10 minutes modifying files and wondering why the changes were not showing up
691: [05:17:31] <Colin[pi]> "these are not the files you're looking for"
692: [05:17:37] <Colin[pi]> (on a different server)
693: [05:17:38] <Colin[pi]> :(
694: [05:19:45] * supernovah quit (Ping timeout: 248 seconds)
695: [05:19:46] <ss23> haha Colin[pi]
696: [05:19:49] <ss23> Know that feeling :D
697: [05:20:35] <ss23> Anyone familiar with HasOneComplexTableField?
698: [05:20:39] * supernovah has joined #silverstripe
699: [05:20:43] <Colin[pi]> yes
700: [05:20:59] <ss23> I need to rewrite a module (very small module) from SS2 with HasOneComplexTableField to SS3 (and I assume gridfield)
701: [05:21:24] <ss23> I removed all gridfield / everything and client said "What i want to know is if this sort of thing is still possible where you have all the forms listed and the user then justs clicks the radio button for the one they want to assign to this page. This is what the HasOneComplexTableField achieved for us. Is the gridfield able to do this? or is there a new way to to this without writing a whole heap of code. "
702: [05:21:51] <simon_w> https://github.com/simonwelsh/silverstripe-GridFieldRelationHandler :)
703: [05:21:55] <ss23> So, I haven't used HasOnecomplexTableField. I assume it let you either a) choose the has_one relationship object (so each Form can pick one FormSettings), or in the sam e interface, create a new one?
704: [05:22:10] <simon_w> Yup
705: [05:22:28] <ss23> simon_w: So this module of yours lets you do that exactly?
706: [05:22:40] <simon_w> Well, it gives you the radio button back
707: [05:22:51] <simon_w> GridField already has the list and add new
708: [05:23:00] <ss23> Hmmm
709: [05:23:06] <ss23> So how do I do the list + add new?
710: [05:23:08] <simon_w> (use GridFieldConfig_RecordEditor as your base config)
711: [05:23:17] <ss23> simon_w: I've never used GridField :<
712: [05:23:19] <ss23> It is hard
713: [05:24:07] <simon_w> $config = GridFieldConfig_RecordEditor::create()-> addComponent(new GridFieldHasOneRelationHandler($this, 'HasOneName')); $gf = GridField::create('Name', 'Title', ClassOfHasOne::get(), $config);
714: [05:24:27] * supernovah quit (Client Quit)
715: [05:25:04] <ss23> $gf == insanceof Field, so I can $fields->addFieldToTab($gf)?
716: [05:25:08] <simon_w> yes
717: [05:25:49] <Peavers> How to get error messages when the CMS just gives you the "error" black box in the top right corner?
718: [05:25:59] <ss23> Peavers: dev mode + network tab
719: [05:25:59] <simon_w> Peavers, look at the response from the server
720: [05:26:37] * guci0 quit (Ping timeout: 250 seconds)
721: [05:27:57] <ss23> fuuuck
722: [05:28:00] <ss23> I did git pull instead of git clone
723: [05:28:10] <ss23> revert revert
724: [05:28:11] <ss23> dammit
725: [05:29:27] * wmk quit (Ping timeout: 252 seconds)
726: [05:32:51] * willr quit (Quit: willr)
727: [05:33:03] <ss23> simon_w: So how does it work without the radio button? Cause I think the radiobutton isn't working
728: [05:34:01] <ss23> simon_w: As in I clicky the radio button, click "save and publish" and it reloads and the button isn't ticked
729: [05:34:08] <simon_w> ss23, you need to click the 'Save Changes' button on the GridField
730: [05:34:20] <ss23> oic
731: [05:35:21] * metanat quit (Ping timeout: 246 seconds)
732: [05:35:33] <ss23> simon_w: And last question! How do I return that has_one thingy?
733: [05:35:47] <simon_w> Wha?
734: [05:35:53] <ss23> I thought $this->HasOneRelationshipName
735: [05:35:57] <ss23> [Notice] Undefined property: FormPage::$MyForm
736: [05:36:08] <simon_w> It's a method
737: [05:36:17] <ss23> oh right
738: [05:36:17] <ss23> ty
739: [05:42:02] <Peavers> dis damn news letter!!!
740: [05:42:11] <Peavers> internal server error
741: [05:42:13] <Peavers> on send
742: [05:45:19] <Peavers> Thankfully for the govt it can be tomorrows job. good night all.
743: [05:45:49] * gumble has joined #silverstripe
744: [05:46:16] <simon_w> Wish I could say the same thing about these tests. Gotta be ready for when it's handed over to you :p
745: [05:51:29] * guzzlefry_dev quit (Quit: Ex-Chat)
746: [05:56:17] * ben__ has joined #silverstripe
747: [05:58:15] <ben__> hello
748: [05:58:31] <simon_w> Evening
749: [05:58:49] <ss23> simon_w: Is it possible to let users upload files and have an _ prefix in the title?
750: [05:59:06] <simon_w> ss23, in the title of what?
751: [05:59:07] <ss23> simon_w: e.g. upload a file and call it _foo.pdf or w/e
752: [05:59:09] <ss23> yeah, title
753: [05:59:15] <ss23> (Or can we hack CMS to make it possible)
754: [05:59:15] <ben__> I want a help regarding pagiantion in silvertsripe version 3.1
755: [05:59:29] <simon_w> ss23, they can't do that already?
756: [05:59:42] <ss23> idk, client says they can't, I'll investigate if they should be able to :O
757: [05:59:48] <ss23> Just wondering if it wasn't intentional
758: [06:00:16] <ben__> I want a help regarding pagination in silvertsripe version 3.1
759: [06:00:21] <ben__> anybody there
760: [06:00:47] <simon_w> ben__, no one can help if you don't ask your question :)
761: [06:01:07] * Shrike_Finland has joined #silverstripe
762: [06:01:16] * kerosene quit (Quit: Lost terminal)
763: [06:06:16] <ben__> hello need help in pagiantion
764: [06:06:58] <ben__> will any one send me a tutorial for pagiantion
765: [06:07:15] <ben__> in silvertsripe new version
766: [06:07:55] <simon_w> ben__, http://doc.silverstripe.org/framework/en/3.1/howto/pagination
767: [06:08:22] <ben__> this one I got
768: [06:08:27] <ben__> but i have some doubts
769: [06:09:37] <ben__> if(!isset($_GET['start']) || !is_numeric($_GET['start']) || (int)$_GET['start'] < 1) { $SQL_start = 0; } else { $SQL_start = (int)$_GET['start']; } $count_query = 'SELECT InstitutionCampus.*,Institution.Institution_Name FROM InstitutionCampus LEFT JOIN Institution ON Institution.ID = InstitutionCampus.InstitutionID'; //$count_query = 'SELECT * FROM Institution'; $page_query = $count_query." LI
770: [06:09:45] <ben__> this code shows erros
771: [06:10:17] <ben__> singleton('Institution')->DataList($records);
772: [06:10:32] <ben__> is there a fucntion like this in silverstripe 3.1
773: [06:10:35] <simon_w> ben__, that's not following the how to above
774: [06:11:34] <simon_w> All you need to do on the code side is to create a DataList and wrap it in a PaginatedList
775: [06:11:58] <ben__> datalist or array list
776: [06:12:06] <ben__> I have got an array list
777: [06:12:14] <ben__> how to convert it into datalist
778: [06:12:42] <simon_w> Well, if you've got an ArrayList, you can use that as well
779: [06:13:21] <ben__> will you tell me how to wrap it in pagianted list
780: [06:13:52] <simon_w> Like in the how to, PaginatedList::create($list, $this->request)
781: [06:14:45] <ben__> where is tat
782: [06:15:25] * willr has joined #silverstripe
783: [06:16:11] <simon_w> Ah right, the how to uses new PaginatedList. That and PaginatedList::create are equivalent
784: [06:16:41] <ben__> PaginatedList can you call this in page straight away
785: [06:16:58] <simon_w> Yes
786: [06:19:07] <ben__> could you tell me how to proceed
787: [06:19:17] <ben__> PaginatedList::create($list, $this->request) after this
788: [06:19:29] <simon_w> You return it to the template
789: [06:19:39] <ben__> okay then
790: [06:21:32] <simon_w> Have a look at the how to. It shows you how to setup the template.
791: [06:25:10] * wmk has joined #silverstripe
792: [06:25:44] <ben__> thank you som much
793: [06:26:09] <ben__> Also will you polease help me on sorting using dropdowns , any tutorial availabale
794: [06:28:09] * simon_w heads home
795: [06:28:35] <ben__> anybody help
796: [06:39:53] <ben__> will any one send me a gud tutorial of 3.1 silverstripe
797: [06:46:28] * willr quit (Quit: willr)
798: [06:48:41] <ben__> hello
799: [06:57:23] <ben__> Hi need help on new siverstripe
800: [06:57:28] <ben__> please helm us
801: [06:57:32] <ben__> help
802: [07:00:59] * max__ has joined #silverstripe
803: [07:01:23] * max__ is now known as Guest7702
804: [07:08:10] * guci0 has joined #silverstripe
805: [07:09:53] * swordsmanz has joined #silverstripe
806: [07:18:57] * supernovah has joined #silverstripe
807: [07:27:30] <ben__> hi
808: [07:31:17] * chillu has joined #silverstripe
809: [07:32:08] * LoveDuckie has joined #silverstripe
810: [07:33:52] * zippy__ has joined #silverstripe
811: [07:34:02] <ben__> will any one send me a gud tutorial of 3.1 silverstripe
812: [07:34:31] * willr has joined #silverstripe
813: [07:35:49] <zippy__> evening
814: [07:36:09] * willr quit (Client Quit)
815: [07:38:42] <guci0> what u mean – good?
816: [07:42:41] * ben__ quit (Ping timeout: 250 seconds)
817: [07:51:46] * travis-ci has joined #silverstripe
818: [07:51:46] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#465 (master - 47147eb : carlos barberis): The build passed.
819: [07:51:46] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/94b4237372cc...47147eb3dfc3
820: [07:51:46] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/8613041
821: [07:51:46] * travis-ci has left #silverstripe
822: [07:55:49] * mobiusnz has joined #silverstripe
823: [07:59:16] * PigeonFriend has joined #silverstripe
824: [07:59:37] * willr has joined #silverstripe
825: [08:04:10] * SightUnseen has joined #silverstripe
826: [08:04:12] * SightUnseen has left #silverstripe
827: [08:05:45] * zippy__ quit (Quit: zippy__)
828: [08:05:55] * kinglozzer has joined #silverstripe
829: [08:17:32] * Guest7702 quit (Quit: Page closed)
830: [08:17:46] * willr quit (Quit: willr)
831: [08:18:13] * willmorgan has joined #silverstripe
832: [08:25:50] * supernovah quit (Ping timeout: 246 seconds)
833: [08:34:57] * willr has joined #silverstripe
834: [08:37:41] * wmk quit (Quit: nice to meet you ;))
835: [08:47:36] * MrJeremy quit (Quit: MrJeremy)
836: [08:51:08] * zippy__ has joined #silverstripe
837: [08:51:13] * willr quit (Quit: willr)
838: [08:51:29] <kinglozzer> chillu, willr: Would a bug preventing the use of 'Created' in $searchable_fields be considered a blocker?
839: [08:51:43] <chillu> no
840: [08:52:08] <chillu> But its a good fix for 3.1.1
841: [08:52:54] <kinglozzer> Okay
842: [08:59:03] * lobarvaz has joined #silverstripe
843: [09:04:07] * willmorgan quit (Quit: Ciao mateys.)
844: [09:05:53] * lobarvaz_ has joined #silverstripe
845: [09:06:34] * lobarvaz quit (Ping timeout: 256 seconds)
846: [09:12:02] <zippy__> is there a way with 3.0 to add a js file to the cms/admin area?
847: [09:12:18] <zippy__> I want to perform some actions on a CMS page, and think doing it with JS will be best
848: [09:15:30] <simon_w|air> zippy__, LeftAndMain::require_javascript()
849: [09:16:29] <zippy__> thanks simon_w|air
850: [09:17:03] <zippy__> I don't suppose then, if you know if it's possible to specify an IP in the config which can perform developer actions? e.g. a dev build
851: [09:19:20] <simon_w|air> if($_SERVER['REMOTE_ADDR'] == '::1') { Director::set_environment_type('dev'); }
852: [09:19:45] <zippy__> :)
853: [09:20:05] <zippy__> true, but I thought there was a $development_ips list of something which you could fill in
854: [09:20:18] <simon_w|air> Nope
855: [09:32:25] * tuure has joined #silverstripe
856: [09:32:30] <tuure> Hi
857: [09:32:41] * kinglozzer quit (Read error: Connection timed out)
858: [09:33:17] * kinglozzer has joined #silverstripe
859: [09:33:28] <simon_w|air> Evening
860: [09:33:42] <ec8or_> guys, please check out if you own an iDevice: http://pockettactics.com/2013/07/01/hill-218-update-adds-async-multiplayer-and-a-wussy-ai/
861: [09:36:02] <tuure> Maybe anyone could help me. I use ss3.0 + userDefinedForm and try to export a form with GridExportButton but the URL he contruct is too long so it doesn't work, any workaround ?
862: [09:36:42] * zippy__ quit (Quit: zippy__)
863: [09:47:12] * mattybalaam has joined #silverstripe
864: [09:48:58] <mattybalaam> Could someone help with my config.yml? How can I set allowed_extensions?
865: [09:52:53] <mattybalaam> Is it possible? I have tried ----- file:
866: [09:52:53] <mattybalaam> allowed_extensions:
867: [09:52:54] <mattybalaam> '','html',
868: [09:56:01] * pex has joined #silverstripe
869: [09:56:27] * pex quit (Client Quit)
870: [10:05:51] <simon_w|air> mattybalaam, you can only add to the list like that, and put each extension on its own line
871: [10:06:50] <simon_w|air> Each line may need to be of the format:
872: [10:06:50] <simon_w|air> - extension
873: [10:09:53] <mattybalaam> I have tried
874: [10:09:54] <mattybalaam> File:
875: [10:09:55] <mattybalaam> allowed_extensions:
876: [10:09:56] <mattybalaam> - svg
877: [10:11:12] <simon_w|air> And?
878: [10:11:46] <mattybalaam> Sorry, not working
879: [10:12:01] <simon_w|air> What isn't?
880: [10:13:03] <mattybalaam> The error is: Extension is not allowed (valid: ace, arc…)
881: [10:13:16] <mattybalaam> there is a long list of the allowed ones I have truncated
882: [10:13:29] <simon_w|air> Have you flushed?
883: [10:14:00] * ben__ has joined #silverstripe
884: [10:14:13] <mattybalaam> Slapping head, give me a minute…
885: [10:14:29] <ben__> hello please help us
886: [10:15:00] <mattybalaam> Ah, thanks Simon - Monday morning brain melt.
887: [10:15:07] <ben__> reagrding silverstipe 3.1
888: [10:15:22] <simon_w|air> mattybalaam, don't forget to add it to the list in assets/.htaccess too
889: [10:16:19] <mattybalaam> Hi, thanks. That’s already there, I’m updating from a 3.0 site.
890: [10:16:48] <ben__> plese help to sort a datalist in silverstripe 3.0
891: [10:17:05] <simon_w|air> ben__, $list->sort('Field', 'ASC')
892: [10:17:14] <ben__> and also managin multiple array lsits in a single funstion
893: [10:18:37] <ben__> we have a main array and a sublist array which is obtained in a single returm
894: [10:19:02] <ben__> how can we pagiante that ?
895: [10:19:32] <simon_w|air> return an ArrayData with the two lists
896: [10:19:56] <ben__> how to d o that
897: [10:21:00] <simon_w|air> return new ArrayData(array('ListOne' => $aList, 'ListTwo' => $bList))
898: [10:27:27] <ben__> okay how to get the count of Arraydata
899: [10:30:16] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
900: [10:30:16] * tuure quit (Ping timeout: 240 seconds)
901: [10:32:00] * qlex has joined #silverstripe
902: [10:32:08] * qlex says hi
903: [10:36:11] <qlex> got a question regarding forms and GridFieldExport...
904: [10:36:17] <qlex> I use ss3.0 + userDefinedForm. To export grid it uses GridFieldExportButton but the constructed URL for export is too long, how to truncate it ?
905: [10:36:44] <qlex> with such long URL, im unable to hit "export to csv" and get the entries exported..
906: [10:40:06] * RojoD has joined #silverstripe
907: [10:40:06] * RojoD quit (Changing host)
908: [10:40:06] * RojoD has joined #silverstripe
909: [11:04:31] <qlex> any1 ?
910: [11:05:14] * zippy__ has joined #silverstripe
911: [11:06:53] <qlex> does any one have experience with GridFieldExportButton ?
912: [11:10:14] * mattybalaam quit (Quit: mattybalaam)
913: [11:18:22] * qlex has left #silverstripe
914: [11:18:28] * qlex has joined #silverstripe
915: [11:24:12] * r3v3rb has joined #silverstripe
916: [11:24:13] * mattybalaam has joined #silverstripe
917: [11:25:06] <r3v3rb> anyone home? especially any one using unclecheese's better buttons?
918: [11:26:19] <ben__> anybody there
919: [11:27:28] <r3v3rb> me
920: [11:34:02] * lerni has joined #silverstripe
921: [11:36:10] <ben__> hello anybody there
922: [11:36:20] <ben__> pls help for silverstripe 3.1
923: [11:44:07] <mattybalaam> I can try and help
924: [11:46:37] * tuure has joined #silverstripe
925: [11:47:46] <ben__> thank you matybalaam
926: [11:47:51] <ben__> I have some dounts
927: [11:47:55] <ben__> doubts
928: [11:48:09] <ben__> hi matty
929: [11:48:22] <ben__> u there
930: [11:52:37] <ben__> silverstripe 3.1
931: [11:52:41] <ben__> help needed
932: [11:59:09] <ben__> hello
933: [11:59:14] <ben__> how r u
934: [12:13:40] <zippy__> i am good how r u
935: [12:13:42] <zippy__> good thanks
936: [12:13:43] <zippy__> excellent
937: [12:14:14] <zippy__> \o/
938: [12:14:15] <ben__> help in silverstripe 3.1 is apprecoated
939: [12:14:22] <zippy__> whats the problem?
940: [12:14:37] <ben__> I have some issues in pagianting a search result
941: [12:14:43] <ben__> pagianting
942: [12:14:44] <zippy__> ok
943: [12:14:54] <zippy__> whats the problem?
944: [12:14:57] * tuure has left #silverstripe
945: [12:15:18] <ben__> actually I have a function which list all the courses through a searc h
946: [12:15:38] <ben__> in the searc hresult page I have link called view other courses
947: [12:15:57] <zippy__> ok
948: [12:16:12] <ben__> how can i bring two arrays as a list and pagiante it
949: [12:16:48] <ben__> pagiante it
950: [12:17:53] <ben__> u been there
951: [12:23:33] * kerosene has joined #silverstripe
952: [12:24:04] * r3v3rb quit (Quit: r3v3rb)
953: [12:25:31] * ben__ quit (Quit: Page closed)
954: [12:26:22] * ben__ has joined #silverstripe
955: [12:26:25] <ben__> hello
956: [12:33:31] * zippy__ quit (Quit: zippy__)
957: [12:36:12] * Hippieee has joined #silverstripe
958: [12:41:25] * qlex has left #silverstripe
959: [12:46:13] * micmania1 has joined #silverstripe
960: [12:46:37] * Hippieee quit (Quit: Leaving)
961: [12:49:41] * Guest123789 has joined #silverstripe
962: [13:40:42] * Colin[pi] quit (Ping timeout: 240 seconds)
963: [13:41:40] * mattybalaam quit (Quit: mattybalaam)
964: [13:54:24] * Shrike_Finland quit (Quit: Leaving.)
965: [13:55:47] * guci0 quit (Ping timeout: 250 seconds)
966: [14:32:37] * zfmf1 has joined #silverstripe
967: [14:34:22] * popeshoe has joined #silverstripe
968: [14:34:22] * popeshoe quit (Client Quit)
969: [14:35:13] <zfmf1> Hi i have a 2.4 installation and i'm using restfulserver, i have two dataobjects when i want to get the fields of a relation of DO B i'm getting only some fields not all, domain.com/api/v1/DOA/7/DOB when i use domain.com/api/v1/DOB i'm getting all fields, i have all fields in api_access = array('view'=> array('....') )on DOB whats the problem here?
970: [14:41:21] * gumble quit (Ping timeout: 248 seconds)
971: [14:41:45] * ben__ quit (Quit: Page closed)
972: [14:46:28] * mattybalaam has joined #silverstripe
973: [14:53:26] * Nivery has joined #silverstripe
974: [14:57:53] <lobarvaz_> according to http://doc.silverstripe.org/framework/en/reference/siteconfig, "You can access SiteConfig options from any SS template by using the function $SiteConfig.FieldName"
975: [14:58:19] <lobarvaz_> and lists '$SiteConfig.Title' in the example
976: [14:58:41] <lobarvaz_> I've used that in an email template but it's not applied
977: [14:59:16] <lobarvaz_> does it not actually apply to email templates?
978: [14:59:24] * r3v3rb has joined #silverstripe
979: [15:00:18] <kinglozzer> lobarvaz_: No it doesn't apply to email templates
980: [15:00:52] <lobarvaz_> ok, so the documentation here is incorrect and i need to pass the SiteConfig variable when setting up the email?
981: [15:01:07] <kinglozzer> I'd use ->populateTemplate(array('SiteConfig' => SiteConfig::current_site_config()));
982: [15:01:08] <kinglozzer> I think that should work
983: [15:01:16] <lobarvaz_> ok, thanks
984: [15:02:39] <kinglozzer> lobarvaz_: You can use it in any front-end template, but the $SiteConfig.Foo notation comes from ContentController I believe, and I don't think email templates use that controller
985: [15:16:40] <r3v3rb> kinglozzer: do you know any good video editors?
986: [15:18:35] <kinglozzer> Windows movie maker :D
987: [15:18:47] <kinglozzer> No, I don't :P sorry
988: [15:23:16] * Nivery quit (Quit: Nivery)
989: [15:32:25] * Shrike_Finland has joined #silverstripe
990: [15:42:48] * Error404NotFound has joined #silverstripe
991: [15:43:27] <Shrike_Finland> Any core developer near by?
992: [15:46:02] * gumble has joined #silverstripe
993: [15:47:30] * cloph_away is now known as cloph
994: [15:51:33] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
995: [16:07:34] * r3v3rb quit (Quit: r3v3rb)
996: [16:17:52] * kinglozzer quit (Remote host closed the connection)
997: [16:24:32] * lerni quit (Remote host closed the connection)
998: [16:30:44] * willmorgan has joined #silverstripe
999: [16:35:50] * mattybalaam quit (Quit: mattybalaam)
1000: [16:43:42] * lobarvaz_ quit (Remote host closed the connection)
1001: [16:46:35] * mattybalaam has joined #silverstripe
1002: [16:49:38] * Guest123789 quit (Quit: Page closed)
1003: [17:00:55] * Colin[pi] has joined #silverstripe
1004: [17:01:41] * micmania1 quit (Ping timeout: 250 seconds)
1005: [17:02:10] * steveheyes has joined #silverstripe
1006: [17:02:28] <steveheyes> hi there
1007: [17:02:43] <steveheyes> i wonder if someone could help me
1008: [17:02:54] <steveheyes> i am having trouble with tiny_mce_gzip.php
1009: [17:03:02] <steveheyes> and it not being loaded
1010: [17:03:14] <steveheyes> i am using nginx and it seems to not like it
1011: [17:06:15] * willmorgan quit (Ping timeout: 246 seconds)
1012: [17:07:25] * catcher has joined #silverstripe
1013: [17:12:04] * Colin[pi] quit (Ping timeout: 256 seconds)
1014: [17:17:45] * mattybalaam quit (Quit: mattybalaam)
1015: [17:17:55] * Error404NotFound has joined #silverstripe
1016: [17:20:11] <steveheyes> can anyone help me with my nginx problem? - http://www.silverstripe.org/installing-silverstripe/show/24080
1017: [17:24:40] * Error404NotFound quit (Read error: Connection reset by peer)
1018: [17:27:30] * steveheyes has left #silverstripe
1019: [17:27:34] * Error404NotFound has joined #silverstripe
1020: [17:28:39] * Error404NotFound quit (Client Quit)
1021: [17:30:23] * Error404NotFound has joined #silverstripe
1022: [17:31:36] * guzzlefry_dev has joined #silverstripe
1023: [17:32:32] <guzzlefry_dev> Is there any way to log the "action 'something' not allowed on controller 'myController'" messages?
1024: [17:34:59] * lerni has joined #silverstripe
1025: [17:39:11] * lerni quit (Ping timeout: 246 seconds)
1026: [17:39:47] * PigeonFriend quit ()
1027: [17:40:54] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
1028: [18:15:04] <zfmf1> domain.com/api/v1/DOA/7DOB why i'm getting only some fields of DOB anyone an idea? i have all fields in api_access = array('view'=array(....==
1029: [18:15:26] <zfmf1> domain.com/api/v1/DOA/7/DOB
1030: [18:15:45] * RojoD quit (Ping timeout: 248 seconds)
1031: [18:23:47] * RojoD has joined #silverstripe
1032: [18:23:47] * RojoD quit (Changing host)
1033: [18:23:47] * RojoD has joined #silverstripe
1034: [18:27:15] * help has joined #silverstripe
1035: [18:27:39] * help is now known as Guest45775
1036: [18:29:28] <Guest45775> Im having trouble with table borders. ive set it to "0" and also changed the border colour to white. but they still apear?!?! can anyone shine some light on it ?
1037: [18:29:45] <Guest45775> http://ticklenetwork.co.nz/
1038: [18:32:07] * gumble quit (Ping timeout: 256 seconds)
1039: [18:33:47] <catcher> Guest45775, you need to override the table tbody td styles
1040: [18:34:13] <catcher> Guest45775, you're trying to apply it to the table instead
1041: [18:34:30] <Guest45775> that would be css?
1042: [18:34:55] <Guest45775> still learning the development stuff for silverstripe :)
1043: [18:37:15] <catcher> Guest45775, yes, that's unrelated to silverstripe, just css.
1044: [18:44:56] * zfmf1 has left #silverstripe
1045: [19:01:00] * gelignite has joined #silverstripe
1046: [19:07:40] * ARNHOE has joined #silverstripe
1047: [19:15:09] * mobiusnz quit (Quit: Leaving.)
1048: [19:15:29] * mobiusnz has joined #silverstripe
1049: [19:27:25] * SightUnseen has joined #silverstripe
1050: [19:29:04] * SightUnseen has left #silverstripe
1051: [19:32:19] * RojoD quit (Ping timeout: 256 seconds)
1052: [19:39:56] <Peavers> Morning folks
1053: [19:42:17] * RojoD has joined #silverstripe
1054: [19:42:17] * RojoD quit (Changing host)
1055: [19:42:17] * RojoD has joined #silverstripe
1056: [19:44:49] * Guest45775 quit (Quit: Page closed)
1057: [19:46:00] * ARNHOE quit (Remote host closed the connection)
1058: [19:49:22] * ticklenetwork has joined #silverstripe
1059: [19:49:45] * jaded has joined #silverstripe
1060: [19:50:09] * jaded is now known as Guest52913
1061: [19:51:36] <Guest52913> Hi Silverstripers! I'm getting a 502 Bad Gateway error when logging into admin. Has anybody ran into this before?
1062: [19:53:53] <ticklenetwork> I konw its not a silverstripe question, but ive tried for hours to fix this css table border. ive tried to fix in the html of silverstripe. but no luck. and ive set all the borders to 0. im just lost now domain is www.ticklenetwork.co.nz
1063: [19:54:59] <Peavers> ticklenetwork what are you trying to do?
1064: [19:55:33] <ticklenetwork> remove the border from the text that contains our website is currently under construction. However, if you wish to contact us about any of our services you have seen advertised on Facebook. please contact us with the details below.
1065: [19:55:44] <ticklenetwork> and on the portfolio page
1066: [19:56:27] * lerni has joined #silverstripe
1067: [19:58:16] <Peavers> table thead th, table tbody td { border:none}
1068: [19:58:34] <Peavers> line 12 of tables.css
1069: [19:58:44] * DigNZ has joined #silverstripe
1070: [19:59:00] * DigNZ quit (Client Quit)
1071: [20:02:18] <ticklenetwork> Just done that, plus a flush, and still no luck :(
1072: [20:03:36] <Peavers> take the space out between border: none
1073: [20:06:10] <simon_w> Or just remove the border-left/border-right from the table tbody td rule
1074: [20:06:17] <simon_w> whitespace is ignored :p
1075: [20:06:19] * Silverstripe has joined #silverstripe
1076: [20:06:30] <Peavers> yeah thought it was ignored too... but chrome wasn't liking it ;)
1077: [20:06:30] * Silverstripe has left #silverstripe
1078: [20:06:47] <ticklenetwork> table thead th, table tbody td {border:none} so its like that?
1079: [20:06:55] * Silverstripe has joined #silverstripe
1080: [20:07:32] * Silverstripe quit (Remote host closed the connection)
1081: [20:08:29] * mobiusnz quit (Quit: Leaving.)
1082: [20:11:43] <Guest52913> tickle, line 11 of table.css change table tbody td { border-collapse: collapse; border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; vertical-align: top; } to: table tbody td { border-collapse: collapse; vertical-align: top; }
1083: [20:16:55] <ticklenetwork> Just tried that.. no luck still :S
1084: [20:23:05] <catcher> ticklenetwork, that change hasn't been made to tables.css.
1085: [20:25:22] * MrJeremy has joined #silverstripe
1086: [20:26:05] <ticklenetwork> line 11 has been changed to table tbody td { border-collapse: collapse; vertical-align: top; }
1087: [20:27:14] <catcher> ticklenetwork, not on the server you sent us above.
1088: [20:30:17] * mattybalaam has joined #silverstripe
1089: [20:31:16] <MrJeremy> Morning all
1090: [20:32:22] * tractorcow has joined #silverstripe
1091: [20:34:17] * DigNZ has joined #silverstripe
1092: [20:34:18] * DigNZ quit (Remote host closed the connection)
1093: [20:34:32] * DigNZ has joined #silverstripe
1094: [20:34:58] <Guest52913> Does anybody know a way of disabling AJAX page loads in admin?
1095: [20:35:58] <simon_w> Guest52913, you can't.
1096: [20:37:17] <Guest52913> I'm having some major issues loadin anything via AJAX in the admin. keep getting 502 bad request
1097: [20:37:30] * coldblooded01 has joined #silverstripe
1098: [20:37:41] <simon_w> That sounds like some major problems with your server setup
1099: [20:37:43] <tractorcow> What server software are you running?
1100: [20:37:58] <tractorcow> I had an issue with ngnix until I increased the max header size allowed
1101: [20:38:37] <tractorcow> SS spits out massive header values, which the cms relies on :)
1102: [20:40:18] * nickmolhoek has joined #silverstripe
1103: [20:40:19] * nickmolhoek quit (Remote host closed the connection)
1104: [20:40:25] <Guest52913> I believe it's running on a nginx, bolted onto an Apache server (apparently). Nginx passes requests to Apache. They told me they only use nginx for caching. I can't change the header size.
1105: [20:40:33] * nickmolhoek has joined #silverstripe
1106: [20:40:57] <tractorcow> Yeah, that's the same as my setup. Default configuration for the new plesk I believe.
1107: [20:41:28] <Guest52913> Yes that's it. So am I screwed? My host will not change the config for me...!
1108: [20:41:43] <tractorcow> You can edit your /var/www/mysite/conf/last_nginx.conf
1109: [20:41:52] <tractorcow> do you have write access to your conf folder?
1110: [20:42:09] <Guest52913> I don't believe so but will have a quick loook
1111: [20:42:32] <tractorcow> Take care though, it will get overwritten if (certain conditions)
1112: [20:42:39] <unsignedint> Why do hosts use Plesk, its so shit...
1113: [20:42:42] <tractorcow> I had to edit the template
1114: [20:42:53] <tractorcow> Someone else runs it for me :)
1115: [20:43:15] <Guest52913> No access to conf dir
1116: [20:43:29] <simon_w> unsignedint, because they like letting everyone on the server get root access
1117: [20:43:37] <unsignedint> haha
1118: [20:43:56] <unsignedint> Dreamhost has a pretty good panel
1119: [20:44:03] <unsignedint> CPanel isnt very good either
1120: [20:44:14] <unsignedint> Webmin never works and just serves to make things harder
1121: [20:44:17] <simon_w> Seriously, last three kiwicons there's been a talk on "how to get root on plesk (latest version)"
1122: [20:44:21] <tractorcow> Guest52913: I think you're screwed sorry
1123: [20:44:42] <simon_w> webmin works fine. Just isn't that friendly to people who don't know what they're doing
1124: [20:45:07] <simon_w> Though I do really only use it for initial configuration and user management
1125: [20:45:16] <tractorcow> I've used webmin and it was fine for me, even though I didn't know what I was doing. :)
1126: [20:45:26] <unsignedint> trying to configure apache using webmin is an exercise in frustration, I just resort to SSH + creating the vhost configuration manually
1127: [20:45:27] <Peavers> I use webmin for that awkward time I need to setup sambashares...
1128: [20:45:58] <Guest52913> so theres no other way to increase header size
1129: [20:46:11] <tractorcow> That was just a guess at what could be the problem
1130: [20:46:17] <tractorcow> you need to check your error logs mate
1131: [20:47:10] <tractorcow> I guess you're running on a shared host XD no wonder you're stuck
1132: [20:47:14] <tractorcow> hehe
1133: [20:48:05] <irogue> [08:44] <Peavers> I use webmin for that awkward time I need to setup sambashares...
1134: [20:48:19] <irogue> yeah, certain things are just a dick to manage manually cos they have stupid config files
1135: [20:48:37] <irogue> samba and exim are both good examples of when webmin is useful
1136: [20:48:38] <simon_w> postfix
1137: [20:48:42] <irogue> yep, postfix too
1138: [20:49:55] <Guest52913> I believe it is the problem, when I remove the combine_files in CMSMain.php the page loads.
1139: [20:50:28] <Peavers> Failed to clone https://github.com/composer/installers.git why composer! why!
1140: [20:50:46] <tractorcow> Is thisk a production or testing server?
1141: [20:50:52] <simon_w> Because composer
1142: [20:50:54] <tractorcow> can you enable dev mode?
1143: [20:51:12] <Peavers> lol simon_w.
1144: [20:53:49] * ticklenetwork quit (Quit: Page closed)
1145: [20:54:00] <Guest52913> It is production. The hosts server (plesk 10) was outing daily for a couple of hours. Server was overloaded - too many clients. They moved the site to new server - plesk 11 and now the backend will not work.
1146: [20:54:12] <Guest52913> dev mode is enabled
1147: [20:54:17] <simon_w> Ooh, I like the look of https://www.webkit.org/blog-files/last-week-in-webkit/Inspector_color_picker.png
1148: [20:54:26] <tractorcow> sounds similar to the problem I had,
1149: [20:54:40] <tractorcow> Moved to plesk 11 and had to configure ngnix separately
1150: [20:55:31] <Guest52913> The site has been up and running for months, now they've moved it and have pointed the finger at me. Really am in a pickle with it!
1151: [20:56:21] <Guest52913> Is there any reason why they would not add a custom configuration template to my vhost?
1152: [20:58:04] <tractorcow> iunno ?
1153: [20:58:26] <tractorcow> This is my configuration: http://sspaste.com/paste/show/51d1ecd556cd2
1154: [20:58:34] <tractorcow> ip address / domain has been anonymised :)
1155: [20:58:36] <tractorcow> afk meetings
1156: [21:00:52] <Guest52913> Thanks, I'll see if they can add this as a custom template.
1157: [21:01:16] <Guest52913> If not I'll have to look for another host
1158: [21:01:52] * zippy__ has joined #silverstripe
1159: [21:02:54] <catcher> Can't seem to get nested data from an XML api via REST. 1st-level data is no problem, but nothing from a nested list.
1160: [21:02:57] <catcher> http://sspaste.com/paste/show/51d1eda751f32
1161: [21:03:16] * metanat has joined #silverstripe
1162: [21:05:12] * RojoD quit (Ping timeout: 240 seconds)
1163: [21:05:27] <simon_w> catcher, just stick the body in your own XML class of choice and handle it that way
1164: [21:05:53] <catcher> simon_w, kk, any already included by SS?
1165: [21:06:05] <simon_w> The two or so built into PHP?
1166: [21:06:14] <simon_w> look at SimpleXML and DOMDocument
1167: [21:06:24] <catcher> ah right, those. ty
1168: [21:08:39] * RojoD has joined #silverstripe
1169: [21:08:40] * RojoD quit (Changing host)
1170: [21:08:40] * RojoD has joined #silverstripe
1171: [21:10:53] * tuure has joined #silverstripe
1172: [21:14:50] <tuure> Hi, anyone can help me with UserDefinedForm and too long URL problem in grid to csv export. (ss 3.0) ??
1173: [21:17:43] <tuure> ??
1174: [21:17:55] * mobiusnz has joined #silverstripe
1175: [21:20:49] * Guest52913 quit (Ping timeout: 250 seconds)
1176: [21:26:44] * willr has joined #silverstripe
1177: [21:29:37] <tractorcow> I remember that problem, it's putting all of the filter parameters into the querystring right?
1178: [21:33:38] <simon_w> Huh, I was wondering why I wasn't getting any emails. I had quit Mail and forgot to reopen it.
1179: [21:35:35] <tuure> tractorcow !yes that the probelem !
1180: [21:35:41] <tuure> any suggestion ?
1181: [21:36:17] <tractorcow> Find the issue on github and check the status of it,
1182: [21:36:30] <tuure> userdefinedForm or ss ?
1183: [21:36:44] <tractorcow> It's a gridfield issue I believe
1184: [21:38:49] <tractorcow> I don't remember where I saw it, but it was in my email one day in the last few weeks
1185: [21:38:52] <tractorcow> afk :)
1186: [21:39:36] <tuure> my url is 4000+ long ;/
1187: [21:41:17] * zfmf1 has joined #silverstripe
1188: [21:41:18] <simon_w> tuure, which version are you running?
1189: [21:44:46] <tuure> ss version 3.0.5
1190: [21:45:12] * micmania1 has joined #silverstripe
1191: [21:46:31] <tuure> tractorcow, I connot find this issue ;/
1192: [21:50:14] * pex has joined #silverstripe
1193: [21:51:54] * clodeindustrie has joined #silverstripe
1194: [21:52:00] <tractorcow> Sorry, I'm back :)
1195: [21:52:09] <tractorcow> maybe it was on the CMS issue tracker?
1196: [21:53:48] <tractorcow> This one MIGHT be related https://github.com/silverstripe/silverstripe-cms/issues/503
1197: [21:54:32] <tractorcow> I don't think it's the issue I'm looking for
1198: [21:57:27] * clodeindustrie quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1199: [21:57:46] <tuure> my problem is just about export to CSV
1200: [21:57:56] <tuure> the rest I think works good
1201: [21:59:10] <tractorcow> https://github.com/silverstripe/silverstripe-userforms/issues/123%E2%80%8E
1202: [21:59:21] <tractorcow> https://github.com/silverstripe/silverstripe-userforms/issues/123 rather
1203: [21:59:40] <tractorcow> That's the one I was looking for :)
1204: [21:59:54] <tractorcow> Solution, need to use 3.1 XD
1205: [22:00:08] <simon_w> Could've told you that :p
1206: [22:00:23] <tractorcow> But it was more fun to watch me flounder for an hour right simon_w?
1207: [22:00:29] <simon_w> Yup
1208: [22:00:52] <simon_w> Oh man, this is horrible
1209: [22:00:52] <simon_w> https://www.mozilla.org/en-US/firefox/os/
1210: [22:01:03] <tuure> thanks
1211: [22:01:13] <Peavers> yeah I don't know what firefox are thinking in general...
1212: [22:01:40] <Peavers> Both that website, and the OS are terrible.. .
1213: [22:01:43] <simon_w> Just that page. Them building an OS can wait for a later bitching session :p
1214: [22:01:59] <Peavers> try using your scroll wheel on that site...
1215: [22:02:02] <Peavers> blows my face up.
1216: [22:02:02] <tractorcow> I was just looking at the website
1217: [22:02:06] <tractorcow> lol
1218: [22:02:40] <tractorcow> stop breaking user expectations!
1219: [22:02:52] <tractorcow> I know what mouse wheel does. It's not that.
1220: [22:03:13] * clodeindustrie has joined #silverstripe
1221: [22:03:19] <simon_w> And then horizontal scrolling does nothing
1222: [22:03:47] <Peavers> using hyperscroll on a 13" screen... do. not. do.
1223: [22:04:12] * clodeindustrie quit (Client Quit)
1224: [22:04:53] <Peavers> So who wants to battle messagequeue with me?!
1225: [22:04:58] <Peavers> Still can't figure it out.
1226: [22:05:58] <Peavers> why is my queue always Scheduled!!!
1227: [22:07:54] <simon_w> Hehe, uncle cheese: "_ss_environment is loaded in _config.php"
1228: [22:08:13] <simon_w> Anyway, back to changing this completely new tenancy agreement into a SS template
1229: [22:08:20] <simon_w> Thanks WA government!
1230: [22:10:26] <tractorcow> simon_w: What's your opinion of polymorphic relationships? Is this something framework would benefit from? See http://guides.rubyonrails.org/association_basics.html#polymorphic-associations
1231: [22:11:05] <simon_w> tractorcow, really easy to do yourself
1232: [22:11:15] <tractorcow> yeah, I am going to have a play around with it
1233: [22:11:30] <tractorcow> but I was wondering if I was going down a dead end street
1234: [22:11:51] <simon_w> Comments already does it
1235: [22:11:54] <tractorcow> It could be modularised easily enough
1236: [22:12:10] <tractorcow> True
1237: [22:13:50] <tractorcow> I will see if i can formalise the pattern
1238: [22:14:17] <tractorcow> and nothing will stop me!
1239: [22:14:21] <tractorcow> Until I get bored, or it gets hard
1240: [22:15:08] <willr> tractorcow please formalize it. Comments seems like a hack and payments is now copying that
1241: [22:15:13] <ss23> tractorcow: What are you trying to say about my gravatar?!!!!
1242: [22:15:53] <willr> I thought about doing something so that if DataObject was the DBField it would be like a composite field with an ID and class name field
1243: [22:15:54] <tractorcow> :)
1244: [22:16:49] <tractorcow> I'd probably put it into a subclass of RelationList
1245: [22:17:07] <willr> So "Parent" => "DataObject" would translate in the ORM to ParentID, ParentClass and overloaded getters etc to magic up things like comments
1246: [22:17:39] <willr> Yep should always be a relationlist
1247: [22:18:00] <tractorcow> private static $has_one_polymorphic = array('Parent'); //
1248: [22:18:06] <simon_w> Eww, no
1249: [22:18:25] <simon_w> $has_one = [ 'Parent' => 'DataObject' ];
1250: [22:19:13] <tractorcow> simon_w: I'd like to test it as a module before I consider how it will look in core
1251: [22:19:50] <willr> core or bust! :)
1252: [22:20:34] <tractorcow> How do you distinguish the relation as polymorphic?
1253: [22:21:01] * lerni quit (Remote host closed the connection)
1254: [22:21:01] <tractorcow> could the value be an array of valid class names?
1255: [22:21:13] <tractorcow> or just, *
1256: [22:21:21] <simon_w> DataObject
1257: [22:21:25] <tractorcow> $has_one = array('Parent' => '*');
1258: [22:21:53] <willr> what simon_w said.
1259: [22:22:01] <tractorcow> ok,,,
1260: [22:23:26] <tractorcow> I'll have a try and let you know how I get along :)
1261: [22:23:57] <Peavers> so apparently my messagequeue is empty when calling sake MessageQueue_Process "queue=myqueue&actions=all"... even though its got messages scheduled?
1262: [22:24:32] * gelignite quit (Quit: http://bit.ly/nkczDT)
1263: [22:25:17] <coldblooded01> how do you use SilverStripes manifest builder
1264: [22:25:30] <Peavers> geeze you would think I just kicked your dog in the face with how quiet it gets in here when you mention the newsletter mod... is that someones dead child project or something?
1265: [22:25:53] <willr> Peavers it isn't dead?
1266: [22:26:12] <willr> Use Mailchimp
1267: [22:26:32] <Peavers> I don't want to use Mailchimp =(
1268: [22:26:34] <tractorcow> Don't you mean Campaign Monitor?
1269: [22:26:56] <Peavers> We need to send ~60k emails, and ideally keep the solution internal
1270: [22:27:24] <tractorcow> Peavers: I have a Silverstripe Campaign Monitor API module that needs contributions :)
1271: [22:27:27] <simon_w> coldblooded01, for what purpose?
1272: [22:29:07] <coldblooded01> query mobile site. Initial load of the site loads up all css, js, content and images. I want a php dynamically generated manifest which will recursively search through a directory (images dir for example) and add all the images in the manifest file from the dir
1273: [22:29:16] <coldblooded01> can silver stripes manifest builder do this/
1274: [22:29:24] <coldblooded01> silverstripes*
1275: [22:29:36] <coldblooded01> jquery**
1276: [22:29:56] <willr> manifest builder doesn't handle images. FileFinder might be able to be rigged up for that
1277: [22:30:35] * micmania1 quit (Ping timeout: 250 seconds)
1278: [22:33:07] <coldblooded01> hmm
1279: [22:35:57] <ss23> Gridfield does some magic with like... if you define... $viewable_fields or something? My Gridfield list that I select a thingy from only shows ID
1280: [22:36:14] <simon_w> ss23, summary_fields
1281: [22:36:32] <ss23> ty
1282: [22:36:39] <ss23> Tried earching, gridfield docs sux
1283: [22:39:25] * Motoservo has joined #silverstripe
1284: [22:44:05] * spronk has left #silverstripe
1285: [22:44:25] * pex quit (Ping timeout: 256 seconds)
1286: [22:44:33] * spronk has joined #silverstripe
1287: [22:51:25] * lerni has joined #silverstripe
1288: [22:51:29] * lerni quit (Read error: Connection reset by peer)
1289: [22:51:54] * lerni has joined #silverstripe
1290: [22:55:12] * zfmf1 has left #silverstripe
1291: [23:00:17] * lerni quit (Ping timeout: 256 seconds)
1292: [23:06:42] * chillu quit (Quit: chillu)
1293: [23:07:57] * mattybalaam quit (Quit: mattybalaam)
1294: [23:08:18] * Pyromanik has joined #silverstripe
1295: [23:08:50] <Pyromanik> lulz 24/7 hosting.
1296: [23:08:51] * RojoD is now known as rojo|washere
1297: [23:08:56] <Pyromanik> "I would like to close the account"
1298: [23:08:59] * rojo|washere is now known as zZ|rojod|washere
1299: [23:09:04] * zZ|rojod|washere is now known as zZ|rojod|was^her
1300: [23:09:09] * zZ|rojod|was^her is now known as zZ|rojo|was^here
1301: [23:09:22] <Pyromanik> "You cannot, do not ask our support team for this. You must log in to your control panel and use the 'request cancellation' button"
1302: [23:09:28] <Pyromanik> lol
1303: [23:09:31] <Pyromanik> really? derp.
1304: [23:09:31] <Peavers> lol
1305: [23:10:00] <Pyromanik> then the email continues "ps, are you aware that your new host has illegally stolen your domain?"
1306: [23:10:20] <Pyromanik> LOL IT'S CALLED A TRANSFER.
1307: [23:10:33] <Peavers> lol, you've seen the thread on gpforums about it?
1308: [23:10:34] <Pyromanik> STOP BEING MAD THAT YOU'RE LOSING BUSINESS BECAUSE YOU'RE SHIT
1309: [23:10:39] <Pyromanik> yep
1310: [23:10:41] <ss23> Pyromanik: ltns :D
1311: [23:11:00] <Pyromanik> Peavers: well, I've seen A thread. Link?
1312: [23:11:06] <Pyromanik> ss23: WHAT?
1313: [23:11:16] <Peavers> http://www.gpforums.co.nz/thread/471129/?s=\
1314: [23:11:58] <Pyromanik> www.urbandictionary.com/define.php?term=ltns‎
1315: [23:12:00] <Pyromanik> Short form of "long time no see" Usually used on the internet.
1316: [23:12:09] <Pyromanik> ss23: Oh, yeah. I had Friday and Monday off.
1317: [23:12:20] <Pyromanik> coz too busy winning.
1318: [23:12:29] * Colin[pi] has joined #silverstripe
1319: [23:14:50] <Pyromanik> Peavers: that last post
1320: [23:15:06] <spronk> illegally stolen domain?
1321: [23:15:09] <spronk> NZ company, pyro?
1322: [23:15:11] <Pyromanik> it seems to me that if you shared host and never ever touch them after setting your site up, you're probably all good.
1323: [23:15:15] <Pyromanik> spronk: yeh
1324: [23:15:22] <spronk> report them
1325: [23:15:31] <Pyromanik> spronk: what? no.
1326: [23:15:38] <Pyromanik> I think you misunderstand.
1327: [23:15:52] <spronk> oh ?
1328: [23:16:05] <Pyromanik> we transferred a domain away from a shit host who has a record of fraudulent practices.
1329: [23:16:16] <Pyromanik> he then turned around and said we stole it.
1330: [23:16:27] <spronk> ja report the shit host?
1331: [23:16:31] <Pyromanik> and 'it' wasn't even the domain we transferred, but one WE registered.
1332: [23:16:38] <spronk> lawl
1333: [23:16:41] <Pyromanik> (on behalf)
1334: [23:17:02] <Pyromanik> all domains we register list us as registrant, because usually people don't give us details.
1335: [23:17:11] <ss23> Pyromanik: Oh yeah I've been busy too
1336: [23:17:16] <ss23> Busy getting sick of burgerfuel
1337: [23:17:21] <ss23> me and simon_w have had *way* too much
1338: [23:17:22] <ss23> :3
1339: [23:17:37] <Pyromanik> since then I've actually updated the registrant to actually be the person the domain was registered for, but you cannot update the corporation name.
1340: [23:17:44] <Pyromanik> organisation name**
1341: [23:17:47] <spronk> hate you so much right now ss23. Love, spronk.
1342: [23:17:50] <Pyromanik> so it says "Plato Design"
1343: [23:18:03] <Pyromanik> and tehn proceeds to list every other detail that has nothing to do with us.
1344: [23:18:16] <Pyromanik> ss23: I could have had in the weekend, but I ddin't.
1345: [23:18:22] <ss23> lol
1346: [23:18:27] <Pyromanik> too busy being awesome.
1347: [23:18:29] <spronk> WHAT!?
1348: [23:18:34] <ss23> spronk: You wanna come get Burger Fuel for lunch then? :D
1349: [23:18:36] <spronk> you could have had but didn't!?
1350: [23:18:38] <spronk> hmm
1351: [23:18:42] <spronk> i guess i could fly to wellington short notice
1352: [23:18:44] <spronk> and get BF for lunch..
1353: [23:18:45] <spronk> :/
1354: [23:18:57] <ss23> XD
1355: [23:19:00] <Pyromanik> spronk: well, to be fair if I had stopped for burgerfuel I would have been shit scared of being too late for checkin on my flight back home.
1356: [23:19:01] <ss23> spronk: Where are you?
1357: [23:19:12] <spronk> chch
1358: [23:19:17] <spronk> Pyromanik: unimportant.
1359: [23:19:19] <spronk> BF > flight home
1360: [23:19:19] <spronk> :p
1361: [23:19:23] <Pyromanik> nup.
1362: [23:19:30] <ss23> Ohhh
1363: [23:19:30] <Pyromanik> last time I had BF it was disappoint.
1364: [23:19:31] <spronk> where were you in the weekned?
1365: [23:19:32] <ss23> Pyromanik is in chch right?
1366: [23:19:33] <spronk> :(
1367: [23:19:36] <Pyromanik> spronk: Taupo.
1368: [23:19:36] <ss23> You two can go on lunch dates!
1369: [23:19:37] <ss23> :D
1370: [23:19:38] <spronk> ah
1371: [23:19:38] <spronk> racing?
1372: [23:19:41] <Pyromanik> going fast.
1373: [23:19:42] <Pyromanik> yes.
1374: [23:19:44] <spronk> leeeet
1375: [23:19:55] <Peavers> went to burger wisconsin last night for a real burger.
1376: [23:19:56] <Pyromanik> did all paperwork for C class licence
1377: [23:20:01] <Peavers> because BF is for amatures.
1378: [23:20:08] <ss23> Carls Jr!
1379: [23:20:11] <spronk> oo, nice man
1380: [23:20:16] <Pyromanik> next time I get to do winter series too :D
1381: [23:20:25] <spronk> Peavers: BW disappoints me more often than it impresses
1382: [23:20:37] <Pyromanik> spronk: not doing it right
1383: [23:20:38] <Pyromanik> but yeah
1384: [23:20:38] <spronk> at least, in chch
1385: [23:20:38] <Peavers> at least the burgers have flavor unlike BF
1386: [23:20:48] <Pyromanik> go anywhere enough it starts the disappointment train
1387: [23:20:59] <spronk> hmm... i think BF has better beef patties flavour-wise
1388: [23:21:04] <Pyromanik> spronk: go to southern colombo one, not papanui
1389: [23:21:16] <spronk> Pyromanik: haha, yeah. colo so far away :(
1390: [23:21:31] <Peavers> everything from BF taste like a generic aoli/mayo mess.
1391: [23:21:34] <Pyromanik> also, can't really go much past a super bugger burger
1392: [23:21:41] <Pyromanik> but... $18.
1393: [23:21:44] <spronk> mm
1394: [23:21:46] <spronk> tbh
1395: [23:21:47] <Pyromanik> SO GOOD THOUGH
1396: [23:22:02] <spronk> i'd be pretty happy if BW or even B&Beers used BF patties
1397: [23:22:21] <spronk> BW's pestarella (sp?) is pretty leet
1398: [23:22:40] * LoveDuckie quit (Ping timeout: 256 seconds)
1399: [23:22:42] <spronk> burgers and beerrs have their leet sourdough buns
1400: [23:22:48] <Pyromanik> mmm
1401: [23:22:53] <Peavers> I do love sourdough buns...
1402: [23:23:04] <spronk> but $13/burger is pricey
1403: [23:23:10] <ss23> Notice McDonalds changed from using sourdough to normal again/
1404: [23:23:12] <Peavers> $13 each is alright
1405: [23:23:20] <spronk> this is why I want BF
1406: [23:23:22] <ss23> Silently. Didn't say anything, but I noticed the might angyus sux now
1407: [23:23:23] <ss23> :<
1408: [23:23:23] <spronk> they have cheaper options
1409: [23:23:32] <Peavers> if I go to BF is a $20 meal
1410: [23:23:35] <ss23> spronk: You want a massive burger for $9? ^.^
1411: [23:23:38] <Peavers> by the time you get a drink n fries
1412: [23:23:50] * spronk usually gets the smaller burgers at BF
1413: [23:24:04] <Pyromanik> ss23: but they have those other angus ones.
1414: [23:24:11] <Pyromanik> although they look like limited time stuff.
1415: [23:24:21] <Peavers> remember a time when the McDs Boss burger was epic?
1416: [23:24:26] <ss23> lol Pyromanik
1417: [23:24:27] <Peavers> like 10 years back...
1418: [23:24:28] <ss23> Peavers*
1419: [23:24:29] <ss23> ikr
1420: [23:24:35] <spronk> we have banned McDonalds in our household
1421: [23:24:37] <irogue> [11:22] <@ss23> Notice McDonalds changed from using sourdough to normal again/
1422: [23:24:39] <spronk> with the exception of Cheeseburgers and shakes
1423: [23:24:40] <irogue> mother fuckers.
1424: [23:24:47] <Pyromanik> ss23: same thing happened to boss. when it came out it was winner so good. before they took it away it was quarter pounder with lettuce tomato and mayo.
1425: [23:24:59] <ss23> Damn you McDonalds!!!
1426: [23:25:00] <spronk> pretty sure no food item has been as consistent for 20+ years as the maccas cheeseburger
1427: [23:25:01] * ss23 shakes his fist
1428: [23:25:03] <ss23> lol spronk
1429: [23:25:16] <Pyromanik> spronk: lulz
1430: [23:25:22] <spronk> ...pretty sure no food item produced 20 years ago would taste as close to new as the maccas cheeseburger...
1431: [23:25:29] <Pyromanik> do the McCheeseburger challenge.
1432: [23:25:32] * catcher quit (Quit: Leaving)
1433: [23:25:39] <spronk> cheeseburger combo in <1min?
1434: [23:25:43] <Pyromanik> no
1435: [23:25:49] <spronk> oh
1436: [23:25:50] <Pyromanik> 10 cheeseburgers in less than 20.
1437: [23:25:53] <spronk> on a related note: that's fucking hard
1438: [23:25:54] <ss23> Hmm
1439: [23:25:57] <ss23> I could do it
1440: [23:26:02] <Pyromanik> nope
1441: [23:26:04] <Pyromanik> maybe 2 mins.
1442: [23:26:08] <spronk> its the drink
1443: [23:26:11] <Peavers> reckon I could do it
1444: [23:26:13] <Pyromanik> that's a lot of chew in a small time.
1445: [23:26:14] <Peavers> 10 in 20?
1446: [23:26:15] <ss23> spronk: Just burgers, not combos
1447: [23:26:20] <ss23> I went to McDonalds in Sydney and ordered 8 cheeseburgers
1448: [23:26:20] <Pyromanik> Peavers: yeh.
1449: [23:26:20] <spronk> oh
1450: [23:26:26] <Pyromanik> 1 burger every 2 mins.
1451: [23:26:28] <ss23> the person serving was like "Oh, are you having a party!"
1452: [23:26:33] <Peavers> easy as pie dude
1453: [23:26:34] <ss23> I just looked at her and was like "... uh.. yeah :<"
1454: [23:26:40] <Pyromanik> Peavers: lulz.
1455: [23:26:45] <Peavers> could easily knock off one in 30 seconds
1456: [23:26:46] <Pyromanik> it's like the weetbix challenge.
1457: [23:26:52] <Pyromanik> 1 dry in less than whatever it is.
1458: [23:26:54] <Peavers> I'm 6'4 with a big mouth :D
1459: [23:26:57] <spronk> reminds me of that time my school sports trip ordererd 50 cheeseburgers
1460: [23:26:58] <Pyromanik> o.0
1461: [23:27:03] <Pyromanik> Peavers: PHRASING
1462: [23:27:09] <irogue> [11:26] <Peavers> I'm 6'4 with a big mouth :D
1463: [23:27:09] <ss23> I should become a politician
1464: [23:27:11] <irogue> hey babey ;)
1465: [23:27:20] <Pyromanik> oh gawd
1466: [23:27:31] <Peavers> whoa now.
1467: [23:27:36] <spronk> that escalated quickly.
1468: [23:28:07] <Peavers> back to the point
1469: [23:28:16] <Peavers> I can swallow a cheese buger in two bites...
1470: [23:28:16] <Colin[pi]> lok
1471: [23:28:18] <Colin[pi]> *lol
1472: [23:28:34] <ss23> Peavers: What else can you 'finish' that quickly? ;)
1473: [23:29:01] <spronk> your mum
1474: [23:29:02] <Peavers> ......beer......
1475: [23:29:35] <irogue> ss23: whoa there, he said two bites. NO TEETH!
1476: [23:29:39] <ss23> XD
1477: [23:29:41] <ss23> How *dry* do you want it?
1478: [23:29:47] <ss23> It'll be lika desert in my mouth...
1479: [23:30:08] <ss23> like sandpaper.
1480: [23:31:44] <Pyromanik> 11:27 < Peavers> I can swallow a cheese buger in two bites...
1481: [23:31:44] <Pyromanik> 11:27 < Colin[pi]> *lol
1482: [23:31:44] <Pyromanik> 11:27 <@ss23> Peavers: What else can you 'finish' that quickly? ;)
1483: [23:31:48] <Pyromanik> he said 'swallow'
1484: [23:31:54] <Peavers> thatsthejoke.jpg
1485: [23:32:20] * zippy__ quit (Ping timeout: 240 seconds)
1486: [23:32:26] <ss23> u r such a pedant, Pyromanik
1487: [23:32:31] <ss23> Just enjoy your dick jokes and be done with it!
1488: [23:33:48] <Pyromanik> finnish swallows!
1489: [23:33:49] <Pyromanik> http://www.euring.org/about_euring/newsletter2/euring_swallows_finland.htm
1490: [23:38:59] <simon_w> Woo, 5 pages of a formatted PDF to copy into a template
1491: [23:42:44] <ss23> nice
1492: [23:43:18] * zippy__ has joined #silverstripe
1493: [23:43:44] * simon_w opens a help ticket to make ss23 do it
1494: [23:44:19] <Peavers> I think ss23 should do it, will build that boy some character.
1495: [23:46:22] <ss23> ;_;
1496: [23:46:25] <simon_w> This would be so much easier with LaTeX
1497: [23:46:26] <ss23> I just went to do a ticket...
1498: [23:46:36] <ss23> they want us to log into their Google Analytics and do stuff
1499: [23:46:42] <ss23> "your password was changed 22 hours ago"
1500: [23:46:44] <ss23> why client, why
1501: [23:49:38] <Peavers> for what its worth, in the default newsletter template, in the newsletterheader the h2 tag isn't closed. its <h2> blah <h2>
1502: [23:49:48] <Peavers> I'd fix it and create a git pull request, but after yesterdays drama... nahh.
1503: [23:55:47] <ss23> lol
1504: [23:55:55] <ss23> Peavers: I think that was fixed,o r at least had a pull rquest
1505: [23:55:58] <ss23> I remember doing something like that myself
1506: [23:56:28] <Peavers> I've just pulled the latest from git and its still borked...

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