#silverstripe IRC Log

IRC log for 24 October 2013

All timestamps are in UTC.

1: [00:09:20] <antmas> huh, ios 7.0.3 is out
2: [00:09:21] <DaShiVaDan> I came accross a bunch of that when I was trying to find a solution for my earlier problem, but I think it's not for 2.4, not sure, I tried it anyway, didn't work for me. There's also some $this->dbObject( 'field' ) thing (not sure of the actual Fun name) that is sposed to help access properties properly, but again that didn't work for me in 2.4 I ended up just abandoning it and accessing it directly, but I was trying to acc
3: [00:09:25] <DaShiVaDan> and that mighta been half the problem
4: [00:09:47] <Colin[pi]> who was it here that worked on the Fastway API?
5: [00:10:45] * spronk2 has joined #silverstripe
6: [00:16:04] * chillu quit (Quit: chillu)
7: [00:18:48] <antmas> hmmmm, anyone know which manufacturer is best for SSDs? or have lowest failure rate?
8: [00:20:18] <Pyromanik> 12:30 < ss23> numa numa just got a massive collective groan from office
9: [00:20:22] <Pyromanik> GREAT SUCCESS
10: [00:20:53] <Pyromanik> 12:34 < DaShiVaDan> does 3.1 'do things' mostly similarly to 2.x? so what I am figuring out on 2.4 will be at least a good guide generally for 3.1?
11: [00:20:56] <Pyromanik> yes and no
12: [00:21:05] <antmas> I like how THAT song out of the playlist ss23 created was the one to garner groans
13: [00:21:10] <Pyromanik> principles are all the same, but the syntax is grossly different.
14: [00:21:12] * sminnee quit (Quit: sminnee)
15: [00:21:27] * DigNZ has joined #silverstripe
16: [00:21:44] <unsignedint> hey does anyone know the best way to implement a "Next" and "Previous" function in SS? Since there doesnt seem to be a SiteTree::siblings() function, would the best approach be to call $this->Parent()->Children(), find the current page in the collection, and then return the one before it/the one after it in the collection?
17: [00:21:49] <Pyromanik> 12:56 < guzzlefry> Also, I have to use $this->owner->property in a method inside of a dataextension even though I declare the property in the dataextension anyway?
18: [00:21:49] <guzzlefry> Would SilverStripe top brass be opposed to adding proper functions to the Date object?
19: [00:22:03] <Pyromanik> guzzlefry: yes, the extension applies the stuff to the 'owner'
20: [00:22:10] <Pyromanik> so it must be accessed as such.
21: [00:22:13] <unsignedint> or using Carbon for dates
22: [00:22:13] <guzzlefry> ah okay
23: [00:22:14] <guzzlefry> thanks
24: [00:22:24] <Pyromanik> unsignedint: use $siteTree->Sort()
25: [00:22:28] <Pyromanik> err
26: [00:22:32] <Pyromanik> Sort (no ())
27: [00:23:00] <unsignedint> how would that help figure out the previous or next page in the current pages level?
28: [00:23:47] <Pyromanik> public function NextPage(){return SiteTree::get()->filter(array('ParentID'=>$this->ParentID, 'Sort'=>((int)$this->Sort +1)));}
29: [00:24:27] <Pyromanik> DaShiVaDan: basically the MAJOR difference between 2.4 and 3.0 is the ORM (object relation model)
30: [00:25:02] <unsignedint> Pyromanik: oh I see, I didnt even think of crafting a custom query, or realise that Sort was actually a field on SiteTree and not a function to sort a result set
31: [00:25:07] <Pyromanik> so instead of DataObject::get('ClassName', 'AwholebunchofSQL') you use ClassName::get()->filter()->sort()->limit()
32: [00:25:22] <Pyromanik> unsignedint: it's how it orders pages!
33: [00:25:38] <unsignedint> yep I get that now :P I used to think it just used white mans magic
34: [00:25:47] <Pyromanik> and why UncleCheese called his fields 'SortOrder' instead of Sort, to reduce instance of classes
35: [00:25:50] <Pyromanik> clashes*
36: [00:25:53] * sminnee has joined #silverstripe
37: [00:26:04] * sminnee quit (Changing host)
38: [00:26:05] * sminnee has joined #silverstripe
39: [00:28:07] <Pyromanik> unsignedint: because black men can't code?
40: [00:28:36] * antmas realises he's never seen a black programmer o.O
41: [00:28:39] <unsignedint> not at all, infact I know several black men who can code
42: [00:28:52] <unsignedint> well there are 4 shri lankans and 1 maori
43: [00:28:55] * zagoodwin has joined #silverstripe
44: [00:29:13] <unsignedint> i have yet to meet an indian that can code
45: [00:29:20] <antmas> unsignedint: :D
46: [00:29:32] <antmas> Weedle says hi
47: [00:29:33] <antmas> oh
48: [00:29:34] <antmas> wait
49: [00:29:36] <unsignedint> ahahaha
50: [00:29:37] <antmas> :P nvm
51: [00:29:46] <Pyromanik> unsignedint: none of whom are black!
52: [00:29:49] <Pyromanik> :P
53: [00:30:03] <unsignedint> classic case of "outsource to india because outsourcing is cool", "oh wait, now we have a piece of shit that doesnt work"
54: [00:30:38] <antmas> 10million dollarz!
55: [00:30:51] <Colin[pi]> get what you pay for
56: [00:30:57] <zagoodwin> Hey my project has been going good sop far but when i try to add am image now it shows GET http://www.amplifierpreview.co.nz/eavor/themes/eavor/images/facebook.png in the console, im using <img src="{$ThemeDir}/images.facebook.png"> it really isnt the usual img error
57: [00:31:14] <zagoodwin> the img tag doesn't even show up in my html...
58: [00:32:06] <Pyromanik> because using an uploaded image is $ImageName
59: [00:32:30] <Pyromanik> where ImageName is like $has_one = array( 'ImageName' => 'Image')
60: [00:34:35] <zagoodwin> i was just gonna put that image on every page in the footer so i just put it in the theme images folder? it has worked for the other images done this way?
61: [00:35:11] <spronk> guys, Aggregate() in 2.4 can be swapped out for List(), right?
62: [00:36:22] <simon_w> Yes
63: [00:36:33] <spronk> just have to watch out for Max vs max i guess
64: [00:36:57] <simon_w> Nope
65: [00:37:17] <Pyromanik> zagoodwin: ah
66: [00:37:18] <Pyromanik> right
67: [00:37:47] <Pyromanik> I think you'll find you've named your image wrong, and the console will be telling you that GET thatimage.png is a 404.
68: [00:37:50] <Pyromanik> (not found)
69: [00:38:10] <Pyromanik> $ThemeDir/images/facebook.png is probably more like it (rather than that .)
70: [00:38:34] <antmas> ^^^
71: [00:48:12] * sminnee quit (Quit: sminnee)
72: [00:49:27] * sminnee has joined #silverstripe
73: [00:51:46] * micmania1 has joined #silverstripe
74: [00:51:59] * kerosene has joined #silverstripe
75: [00:54:12] <unsignedint> hey does anyone know how to log the SQL queries that Silverstripe is executing per request?
76: [00:56:05] * micmania1 quit (Ping timeout: 248 seconds)
77: [00:56:36] <Pyromanik> debug_queries doesn't work any more?
78: [00:58:43] <guzzlefry> unsignedint: You can add ?showqueries to the URL in dev mode.
79: [00:59:06] <zagoodwin> man this is definitely one of the weirder things I've had happen in SS
80: [00:59:44] <Pyromanik> WHOLEYSHIT
81: [00:59:46] <Pyromanik> http://www.youtube.com/watch?feature=player_detailpage&v=UkSPUDpe0U8#t=11s
82: [00:59:47] * sminnee quit (Quit: sminnee)
83: [00:59:51] <Pyromanik> I lost it
84: [01:04:59] <guzzlefry> fuuuu
85: [01:05:33] <spronk> hahah
86: [01:06:07] <unsignedint> 13:59 guzzlefry: unsignedint: You can add ?showqueries to the URL in dev mode. <-- oh my god you just changed my life
87: [01:06:35] <guzzlefry> unsignedint: http://doc.silverstripe.org/framework/en/reference/urlvariabletools
88: [01:06:41] <guzzlefry> changed my life too :P
89: [01:08:15] <unsignedint> so it turn out, Silverstripe hammers the database quite a bit
90: [01:08:32] <unsignedint> well I know it caches in live mode but still
91: [01:09:17] <Pyromanik> ah, showqueries, not debug_queries. My bad.
92: [01:09:19] <guzzlefry> it destroys the database
93: [01:09:53] <Pyromanik> unsignedint: not an app out there that doesn't hammer the DB.
94: [01:10:09] <Pyromanik> if it doesn't it's performing a whole lot of filtering in PHP, which is slower and more memory intensive.
95: [01:10:26] <guzzlefry> gah
96: [01:10:37] <guzzlefry> I keep forgetting a $has_one on my $has_many objects.
97: [01:10:38] <Pyromanik> databases are MADE for that purpose, so why not use them?
98: [01:10:54] <unsignedint> I thought an app I wrote that generated 20 queries per request was bad but now I dont feel so bad
99: [01:11:16] * guzzlefry knows people that insist on grabbing an entire row set and then doing the calculations via code.
100: [01:11:31] <guzzlefry> Also
101: [01:11:35] <guzzlefry> <3 SQL date stuff.
102: [01:12:27] <guzzlefry> Also
103: [01:12:33] <guzzlefry> unsignedint: You can scale the crap out of databases.
104: [01:13:04] <unsignedint> compared to the application layer? I dont think so
105: [01:13:23] <unsignedint> you cant easily partition a relational database over many servers, there are always tradeoffs
106: [01:13:48] <unsignedint> however, since the application layer is stateless, you can have heaps of webservers and just load balance between them
107: [01:14:11] <Pyromanik> So you'd rather store everything in textfiles or memory?
108: [01:14:16] <unsignedint> haha no :P
109: [01:14:18] <Pyromanik> and process it all with PHP?
110: [01:14:24] <Pyromanik> yeh, didn't think so :P
111: [01:14:53] <unsignedint> there has to be shared storage somewhere, I was just saying that some calculations are better done in code, especially if you want to remain DBMS-independant
112: [01:16:31] <antmas> thunder!
113: [01:16:34] <antmas> :D
114: [01:16:45] <guzzlefry> lightning!
115: [01:17:10] <unsignedint> fire!
116: [01:17:19] <guzzlefry> woah
117: [01:17:26] <guzzlefry> let's not talking about that for at least another few weeks.
118: [01:19:49] <antmas> has anyone died in that fire(s) yet?
119: [01:20:05] * unsignedint hasnt
120: [01:20:45] <guzzlefry> simon had to fly with some crappy airliner I think.
121: [01:21:04] <simon_w> There's been one death
122: [01:23:01] <antmas> hmmm seems it's dying down fast now
123: [01:23:19] <simon_w> And I still have to fly Jetstar :(
124: [01:23:36] <simon_w> On the plus side, going first class the other way
125: [01:24:19] <antmas> simon_w: how'd you manage that?
126: [01:24:25] <simon_w> Train!
127: [01:26:05] <simon_w> "There are 800 seeders and 1200 leechers on the Mavericks torrent on The Pirate Bay."
128: [01:26:32] <antmas> lol simon_w
129: [01:27:48] <unsignedint> I just installed mavericks before
130: [01:27:55] <unsignedint> fucking FINALLY there is tabs in the file manager
131: [01:28:23] <unsignedint> and its handy that the application bar now appears on all monitors and what it displays depends on the application thats open on each monitor
132: [01:28:24] <antmas> I had to manually download a flash update before maverick would install
133: [01:28:24] <simon_w> That and labels are the more meh features :p
134: [01:28:34] <antmas> fucking stupid funnel update system
135: [01:28:40] <unsignedint> I never used those features anyway, labels and tags etc
136: [01:29:20] <unsignedint> the update overwrote my apache config too, which made me rage temporarily
137: [01:29:56] <simon_w> At least it didn't change to 2.4
138: [01:30:01] <simon_w> And you now have PHP 5.4
139: [01:30:06] <unsignedint> yeah then silverstripe would break
140: [01:30:16] <unsignedint> I already had PHP 5.4 via homebrew
141: [01:30:23] <unsignedint> but its nice its now native
142: [01:30:35] <simon_w> Really? You custom build and have 5.4?
143: [01:30:56] <unsignedint> its absolutely necessary to run Laravel
144: [01:31:01] <unsignedint> (I only use S for CMS-based websites)
145: [01:31:05] <unsignedint> SS*
146: [01:31:17] <simon_w> 5.5's been out for how long now, half a year?
147: [01:31:42] <unsignedint> I didnt need any of its features, so I left my 5.4
148: [01:31:57] <unsignedint> I will upgrade when I need to
149: [01:32:44] <EasyCo> Mavs comes with PHP 5.4? Nice.
150: [01:36:21] <guzzlefry> How are the SS docs on unit testing?
151: [01:36:37] <Pyromanik> same like the rest
152: [01:36:39] <Pyromanik> OK-ish.
153: [01:37:16] <spronk> lol @ mavericks and multimonitor support
154: [01:37:26] <spronk> windows is so much better for working with multi monitors its not even funny
155: [01:40:06] <unsignedint> indeed but to be fair it did *improve* in mavericks
156: [01:40:37] <simon_w> And it's gotten worse with Windows 8
157: [01:43:20] <antmas> simon_w: how? I don't have any issues with 2 or 3 monitors on 8
158: [01:44:09] <spronk> windows 8's main issue is the start tile thing
159: [01:44:10] * UncleCheese has joined #silverstripe
160: [01:44:28] <spronk> apart from that it's quite good with multi monitors
161: [01:44:43] <spronk> windows' ui paradigms are far better suited to multimon
162: [01:45:19] <guzzlefry> Are you referring to the lack of workspaces? :P
163: [01:45:30] <guzzlefry> hm
164: [01:45:33] <guzzlefry> does OS X even have those?
165: [01:45:58] <simon_w> What, Spaces?
166: [01:46:20] <guzzlefry> maybe...?
167: [01:46:26] <spronk> nono, things like single menu bar vs menu bar per window
168: [01:46:28] <spronk> and SDI vs MDI
169: [01:46:32] <spronk> and the dock
170: [01:46:35] <spronk> vs taskbar
171: [01:46:40] <guzzlefry> oh
172: [01:46:58] <spronk> workspaces get far less useful when you have multiple monitors
173: [01:47:12] <guzzlefry> I need more than one. :P
174: [01:47:24] <guzzlefry> going from two to one was the most painful experience.... :P
175: [01:47:40] <spronk> hmm?
176: [01:47:56] <guzzlefry> I went from two monitors to one.
177: [01:48:00] <spronk> ohh
178: [01:48:00] <spronk> yeah
179: [01:48:07] <guzzlefry> The other kinda sorta died.
180: [01:48:12] <spronk> i can almost cope with single monitor in OS X
181: [01:48:16] <Pyromanik> 14:37 < spronk> windows is so much better for working with multi monitors its not even funny
182: [01:48:21] <spronk> but it feels like working with hands tied behind back
183: [01:48:23] <Pyromanik> But windows is SHIT at multi monitors!
184: [01:48:35] <spronk> Pyromanik: no way
185: [01:48:35] <Pyromanik> COMPLETE shyte.
186: [01:48:39] <guzzlefry> wat
187: [01:48:39] <guzzlefry> why?
188: [01:48:53] <spronk> its shit at drivers and plug and play for multi monitors etc
189: [01:49:02] <spronk> but once it's set up...
190: [01:49:15] <spronk> plus there are tools like displayfusion that make it even better
191: [01:49:43] <Pyromanik> no per-monitor taskbar, no multiple backgrounds, has a fuck'n 'mare when you have 2 different reso monitors (although to be fair I've mostly maybe only experienced that when on a laptop)
192: [01:50:02] <Pyromanik> yeah, but taht's displayfusion. Not Windows.
193: [01:50:12] <spronk> there is a per monitor taskbar now
194: [01:50:19] <Pyromanik> not from windows
195: [01:50:24] <spronk> ja
196: [01:50:37] <spronk> win8
197: [01:50:49] * guzzlefry tries to remember the last time he actually had his desktop background showing for more than 5 seconds.
198: [01:51:11] <spronk> i get all overwhelmed feeling if i can't see at least some of my background
199: [01:51:25] <spronk> Pyromanik: point is that with windows, the gui paradigm allows for stuff like displayfusion to work
200: [01:51:56] <spronk> mac os x's gui paradigm just doesn't scale well to multiple displays
201: [01:52:07] <spronk> and most modern linices need to be configured away from their defaults to something closer to windows to work well either
202: [01:52:17] <spronk> although, these days you often can't do that with unity or g3
203: [01:52:33] <spronk> which are both fuckign awful.
204: [01:52:49] <guzzlefry> eww
205: [01:53:10] <spronk> although, i do like gnome3's curved edges
206: [01:53:50] <irogue23> Pyromanik: i believe all of those issues have been fixed in win8
207: [01:54:11] <spronk> i've never had any real issues with different res monitors though
208: [01:54:14] <spronk> even on winxp
209: [01:54:29] <spronk> its only if you try to move a large window to a smaller monitor that it's even noticable as an issue
210: [01:54:44] <irogue23> yeah, admittedly i've never run into that issue before
211: [01:54:50] <spronk> but even then, what do you want it to do? automatically resize your window? no thanks
212: [01:58:52] <DaShiVaDan> Ahh, I got 2 at work, identical. Had 3 at home, 2 identical and a 120" 3D projector XD but one of the monitors died. Plan to get resetup when I move in teh next couple of weeks, that's all windows 7 though, and I tend to keep teh same resolution on all, but never had to, I only use diff resolutions if i have diff sized monitors
213: [01:59:30] <DaShiVaDan> i dunno about Mac, but on win 7, just drag to new monitor, drag to top of screen and release, it auto resizes to fullscreen
214: [01:59:41] * spronk is running 2 x 1920x1200 + 1 x 1680x1050 on win7 and it's fine
215: [01:59:56] <DaShiVaDan> I had displayfusion installed, but realised I didn't use any of it's features
216: [02:00:06] <spronk> win7's window management tweaks make it easy to resize a window vertically
217: [02:00:25] <DaShiVaDan> all it was good for was multiple desktop wallpapers, but like gruz I never see my wallpapers. it's been months since i saw an inch of desktop i think
218: [02:00:56] <DaShiVaDan> I just hate how in win7 with multi monitors you can't drag to an edge of screen to make it 'half fullscreen' if that edge is going over to the next monitor
219: [02:01:29] <DaShiVaDan> or is that a displayfusion feature?
220: [02:05:56] * DigNZ quit (Quit: DigNZ)
221: [02:09:03] <spronk> ha, no its windows
222: [02:09:05] <spronk> and yes that is annoying
223: [02:09:17] <spronk> though i think displayfusion has some tool to do it
224: [02:09:25] * spronk uses displayfusion for taskbars on mother monitors
225: [02:09:30] <spronk> and saving desktop icons etc
226: [02:14:31] <unsignedint> * that feeling when you open a website in IE and it just works * <3
227: [02:14:35] * cloph_away quit (Ping timeout: 245 seconds)
228: [02:14:52] <Colin[pi]> unsignedint: ohh enjoy dat rare feel
229: [02:15:10] <unsignedint> I did until I put IE in IE8 rendering mode and everything is broken
230: [02:15:20] <unsignedint> so I said "Fuck IE8" and added the browser-update.org script
231: [02:16:27] <Colin[pi]> seriously fuck IE users in general and ones who havent upgraded by now, extra fucks for them
232: [02:16:40] <Colin[pi]> I gave up caring a long, long time ago :)
233: [02:18:15] <unsignedint> I wish I could do that, but many of our clients are corporates and corporate IT are lazy fuckers and never update their company desktop PC's
234: [02:18:44] <unsignedint> (which are all running windows xp ofcourse, true corporate style)
235: [02:18:48] <Colin[pi]> ugh
236: [02:19:16] <Colin[pi]> screw them, couldn't be bothered any more, they represent everything that sucks about progressive web dev
237: [02:19:29] <unsignedint> haha yep they sure do
238: [02:19:38] <unsignedint> I wish I could choose our clients but thats done by the salespeople
239: [02:19:52] <unsignedint> "yeah we'll make a site that works in IE"
240: [02:20:00] <Colin[pi]> devs: "FFFFUUUUUUUU"
241: [02:20:02] <unsignedint> "thats standard is all our packages"
242: [02:20:04] <unsignedint> fuckers
243: [02:20:07] <unsignedint> in*
244: [02:20:59] <Colin[pi]> I particularly like how MS tries to reassure with each new release
245: [02:21:05] <Colin[pi]> "this time it's better!"
246: [02:21:09] <unsignedint> haha yeah
247: [02:21:09] <Colin[pi]> "no really!"
248: [02:21:12] * overburden has left #silverstripe
249: [02:21:14] <unsignedint> apple does the same thing
250: [02:21:15] <Colin[pi]> "seriously this time you guys, seriously"
251: [02:21:38] <unsignedint> to be fair, IE10 is basically usable
252: [02:21:51] <unsignedint> IE9 is mostly usable and far far better than IE8
253: [02:22:09] <Colin[pi]> IE over the years has caused me so much grief that I will never... NEVER... be convinced to recommend it for anything, ever
254: [02:22:42] <unsignedint> haha me too
255: [02:22:51] <EasyCo> Colin[pi]: Aleluha
256: [02:23:07] <unsignedint> I usually recommend Chrome now, I used to recommend Firefox but chrome's dev tools finally got better than Firebug (and they were always way faster)
257: [02:23:14] <Colin[pi]> in fact, IE should be a swear word on the stats page, but prolly too short to be meaningful (unless isolated as a separate word)
258: [02:23:29] <EasyCo> This site pisses me off soo fucking much: http://www.browseryoulovedtohate.com/
259: [02:23:41] <Colin[pi]> LOL that site
260: [02:23:54] <Colin[pi]> no no MS, it's STILL the browser I love to hate
261: [02:23:55] <unsignedint> haha is it a troll site?
262: [02:24:06] <Colin[pi]> no it
263: [02:24:08] <Colin[pi]> it is legit
264: [02:24:53] <Colin[pi]> LOL even the nav
265: [02:24:58] <Colin[pi]> "It's good now, no really"
266: [02:24:59] <EasyCo> They just keep upgrading the version they promote on that site
267: [02:25:00] <Colin[pi]> LOL
268: [02:25:07] <EasyCo> It used to be IE9
269: [02:25:18] <EasyCo> IE9… the browser that doesn't even support placeholder text
270: [02:25:21] <EasyCo> FFS
271: [02:25:39] <EasyCo> or transitions
272: [02:25:42] <EasyCo> or history api
273: [02:25:47] <EasyCo> or life
274: [02:25:50] <simon_w> placeholder text: That WebKit only feature!
275: [02:26:06] <Colin[pi]> yep I need a god damn jquery plugin just to replicate it
276: [02:27:12] * DigNZ has joined #silverstripe
277: [02:32:23] <Pyromanik> http://www.youtube.com/watch?v=oCjwhyBVgAQ I _completely_ lost my shit at the end
278: [02:33:15] <guzzlefry> Is that what SiteSearch uses?
279: [02:33:28] <Pyromanik> ??
280: [02:33:39] <guzzlefry> placeholder text ^
281: [02:34:06] <Pyromanik> irogue23: but there are no multiple monitors on my iWinPad8
282: [02:34:08] <guzzlefry> I could be neglecting to include some javascript.
283: [02:34:31] <Pyromanik> ah, placeholders.
284: [02:34:35] <Pyromanik> that thing that EVERYONE fucks up.
285: [02:36:06] <Colin[pi]> Pyromanik: suddenly an emu
286: [02:40:12] * zagoodwin_ has joined #silverstripe
287: [02:41:50] <zagoodwin_> Hey, SS ive got huge image quality loss on my uploaded images, I'm guessing this occurs on resize or something? is there something i can change to remove this?
288: [02:41:59] <Pyromanik> Colin[pi]: IKR, fucking lost my shit so hard.
289: [02:42:14] <Pyromanik> zagoodwin_: set the image quality to 100
290: [02:42:22] <Pyromanik> or switch out the backend.
291: [02:42:34] <Pyromanik> cf. GD class.
292: [02:42:35] <Colin[pi]> GD::set_default_quality(95) <-- I have this in my config
293: [02:43:09] <Pyromanik> Colin[pi]: well you should use yaml now.
294: [02:43:20] <Colin[pi]> 2.4
295: [02:43:29] <Pyromanik> ah
296: [02:43:43] <Pyromanik> default quality is 75 zagoodwin_
297: [02:43:57] <Pyromanik> in yaml
298: [02:44:00] <Pyromanik> GD:
299: [02:44:05] <Pyromanik> default_quality: 100
300: [02:44:21] <simon_w> Or, you know, use Imagik
301: [02:44:42] <Pyromanik> yeh
302: [02:44:45] <Pyromanik> 15:42 < Pyromanik> or switch out the backend.
303: [02:44:46] * sminnee has joined #silverstripe
304: [02:45:37] <Pyromanik> with yaml again
305: [02:45:40] <Pyromanik> Image:
306: [02:45:58] * cloph_away has joined #silverstripe
307: [02:46:01] <Pyromanik> backend: ImagickBackend
308: [02:46:24] <Pyromanik> 3.1 only though iirc
309: [02:54:46] <Colin[pi]> oh not this again... I hate coding delivery stuff for e-commerce
310: [02:54:51] <Colin[pi]> always a pain in the arse
311: [02:57:40] <guzzlefry> heh
312: [02:59:20] * DigNZ quit (Quit: DigNZ)
313: [03:00:14] <Colin[pi]> helps if the API works too
314: [03:05:13] <DaShiVaDan> ok, hopefully a quick question: I have these RegistrationPayment dataobjects, with has_many Entrants. Can I do something like: foreach ( RegistrationPayment::find( $ID_of_RegistrationPayment )->Entrants ) { do stuff to each entrant } ?
315: [03:05:41] <DaShiVaDan> I'm sure I've seen it somewhere on my online searches, but I can't remember where
316: [03:05:49] <simon_w> DataObject::get_by_id('RegistrationPayment', $id)->Entrants()
317: [03:05:50] <DaShiVaDan> (SS 2.4 btw)
318: [03:06:21] <DaShiVaDan> sweet thanks, that's the sort of thing. should i assign it to a var to iterate over, or is it fine to put that inside the foreach loop?
319: [03:08:37] <simon_w> Assuming that the id actually exists, then it's find to loop over
320: [03:11:44] <guzzlefry> What's the best way to handle a monthly quota regarding something like user submissions?
321: [03:12:14] <guzzlefry> I was thinking about just running a query that finds the number of current submissions for that month...
322: [03:12:14] <DaShiVaDan> like a user can only submit X times in a month?
323: [03:12:18] <guzzlefry> yeah
324: [03:12:27] * DigNZ has joined #silverstripe
325: [03:12:34] <guzzlefry> I'm assuming that won't be done enough to cause server slowdown, but who knows. :P
326: [03:12:37] <DaShiVaDan> yeah, just count submissions for the month period, and if it's over quota, error?
327: [03:12:53] <guzzlefry> well, yell at them :P
328: [03:12:55] <guzzlefry> thanks
329: [03:13:00] <DaShiVaDan> well, it's not a real hard query, just getting a count of rows, not even pulling any real data, right?
330: [03:13:09] <guzzlefry> yep, just count
331: [03:13:29] <DaShiVaDan> i mean you could add a field to keep count, but seems like a bad idea if you can do a quick indexed query
332: [03:13:37] <guzzlefry> yeah
333: [03:13:46] <guzzlefry> and I'd need to query two different fields I guess.
334: [03:13:57] <guzzlefry> and a bunch of logic to reset the counter when needed...meh :P
335: [03:14:03] <DaShiVaDan> if you're worried about it being slow, use teh showqueries to get them and then time test the query /explain, etc in phpmyadmin
336: [03:14:14] <guzzlefry> yeah
337: [03:14:16] <guzzlefry> I mean...
338: [03:14:43] <guzzlefry> each user is limited to 3 uploads a month even on the highest tier account, so I guess even giant queries would be fine.
339: [03:14:47] <DaShiVaDan> but you're really just pulling a count from a single table where user id matches between date filters - so it's only one table, right?
340: [03:14:59] <guzzlefry> yep
341: [03:15:08] <DaShiVaDan> and if the same user queries it a lot it should be all cached
342: [03:15:23] <guzzlefry> oh, had no idea it caches queries.
343: [03:15:39] <DaShiVaDan> well, that's more server dependant, but it's mysql right? so it should cache
344: [03:16:43] <DaShiVaDan> is there a simple SS 2.4 call that I can use to email the admin some debug data?
345: [03:17:14] * mobiusnz quit (Quit: Leaving.)
346: [03:17:23] * mobiusnz has joined #silverstripe
347: [03:17:44] * mobiusnz quit (Client Quit)
348: [03:17:45] <guzzlefry> There's an Email object in SS3.0, might be around in 2.4 as well.
349: [03:18:07] * mobiusnz has joined #silverstripe
350: [03:18:16] * mobiusnz quit (Client Quit)
351: [03:18:24] * mobiusnz has joined #silverstripe
352: [03:19:45] * mobiusnz1 has joined #silverstripe
353: [03:20:08] <guzzlefry> yay
354: [03:20:13] <guzzlefry> open window
355: [03:21:13] <DaShiVaDan> hands up if you hate getting some old site someone else built that you have to revitalise, and when you turn on php warnings for dev mode, NOT A SINGLE FILE OF CODE PASSES!
356: [03:22:26] <ss23> I think I'm going to take down the .org site
357: [03:22:27] <ss23> :O
358: [03:22:28] <ss23> Accidently
359: [03:22:50] * mobiusnz quit (Ping timeout: 268 seconds)
360: [03:23:06] * kerosene quit (Quit: nom)
361: [03:23:17] <guzzlefry> ss23: AGAIN?
362: [03:23:29] <ss23> :d
363: [03:23:34] <guzzlefry> DaShiVaDan: I hate going to 2.4 sites in general.
364: [03:24:14] <guzzlefry> hrm
365: [03:24:25] <guzzlefry> Do I need to add index to allowed actions?
366: [03:24:29] <DaShiVaDan> guzzlefry: heh I've never touched SS before I got these sites... I think most of the reason for my frustration with SS is the guy who wrote these sites I have to fix tho :P the mor eI use it the more I like it, bu tI do plan to go to 3.1 atm for the next project
367: [03:24:59] <Pyromanik> DaShiVaDan: never not current stable ;)
368: [03:25:11] <guzzlefry> 0.o
369: [03:25:17] <guzzlefry> I think you engrished
370: [03:25:27] * simon_w quit (Quit: This computer has gone to sleep)
371: [03:25:33] <Pyromanik> never not current stable on new things
372: [03:25:42] <ss23> I've not done it before anyway!
373: [03:26:02] <guzzlefry> ss23: just the api and doc subdomains? :P
374: [03:26:09] <ss23> NEVER
375: [03:26:11] <guzzlefry> I know it was you!
376: [03:26:14] <ss23> *I* never took it down!
377: [03:26:15] <ss23> :P
378: [03:26:38] <guzzlefry> You're lucky I left all of my evidence in my BS bin at home!
379: [03:33:52] <antmas> if ANYONE asks me to 'look' at thier 2.4 site I grumble
380: [03:33:57] <antmas> their*
381: [03:34:22] <antmas> borked shit everywhere
382: [03:34:30] <ss23> Glad I don't have to do that
383: [03:34:31] <ss23> OH WAIT
384: [03:34:31] <ss23> :<
385: [03:34:41] <antmas> ss23: XD
386: [03:35:07] <antmas> apart from when working with ss23 cause then EVERYTHING WORKS
387: [03:35:09] <antmas> :P
388: [03:35:12] <ss23> haha
389: [03:35:14] <ss23> Yes yes, of course
390: [03:35:15] <ss23> :P
391: [03:37:40] <Colin[pi]> just had someone call and ask for a site where everything they asked for we pretty much have as a "drag-n-drop"
392: [03:37:42] <Colin[pi]> love those calls
393: [03:38:06] <antmas> Colin[pi]: can I haz image sliderz?
394: [03:38:14] <antmas> OF COURSE!
395: [03:38:17] <antmas> 10 hrs work
396: [03:38:21] <antmas> $$$
397: [03:38:22] <Colin[pi]> antmas: exactly that lol
398: [03:39:11] * cloph_away quit (Ping timeout: 240 seconds)
399: [03:40:31] <antmas> yeah gotta love those
400: [03:40:41] <antmas> did 3-4 of those in a week last year
401: [03:40:57] <Colin[pi]> yeah like 90% of the work for this one will be the template
402: [03:41:04] <antmas> yeh
403: [03:41:19] <antmas> ss23: is The Prow 2.4?
404: [03:41:25] <antmas> must be 3
405: [03:41:26] <antmas> surely
406: [03:41:37] <ss23> antmas: If its new, probably 3.1
407: [03:41:41] <ss23> Though I didn't work on it or make it :O
408: [03:42:21] <antmas> ss23: Nelson site?
409: [03:42:30] <antmas> I don't think you worked on that one either
410: [03:43:23] <ss23> The Prow, or NCC?
411: [03:43:27] <ss23> I've touched Nelson City Council a little
412: [03:43:29] <ss23> Prow, nope
413: [03:43:31] <antmas> NCC
414: [03:44:02] * cloph_away has joined #silverstripe
415: [03:44:24] <Colin[pi]> btw anyone have people asking about data sovereignty now?
416: [03:44:44] <Colin[pi]> post all of this snowden stuff, it's become a big concern
417: [03:46:08] * spronk2 quit (Quit: spronk2)
418: [03:46:18] <ss23> fuck
419: [03:46:18] <ss23> okay
420: [03:46:33] <ss23> only took ss.org down for like 2 mins
421: [03:46:33] <ss23> :D
422: [03:46:39] <Colin[pi]> lol
423: [03:46:46] <ss23> srsly, worst code
424: [03:46:47] <ss23> idk
425: [03:47:05] <spronk> lol?
426: [03:47:13] <ss23> I think it's a 2.4 site or something
427: [03:47:32] <antmas> jesus, $1500 for training?
428: [03:47:36] <ss23> lol
429: [03:47:39] <ss23> antmas: It's for government people
430: [03:47:52] <antmas> should I go? :p
431: [03:47:54] <ss23> $1.5k training on the standard/cheap side
432: [03:48:02] <ss23> CANNOT COMMENT ON THAT
433: [03:48:44] <antmas> it's aimed at 'developers'
434: [03:48:57] <antmas> I might see if I can go :D
435: [03:48:59] <antmas> somethign to do
436: [03:49:00] <ss23> beginners, and people who wanna learn CWP specific things
437: [03:49:03] <ss23> I mean
438: [03:49:06] <antmas> don't tell the rate payers
439: [03:49:08] <ss23> You would probably get *something* out of it
440: [03:49:11] <ss23> XD
441: [03:49:53] <antmas> are any of you guys there for whatever reason?
442: [03:50:05] <ss23> There's a guy taking it, but apart from that, I doubt it
443: [03:50:08] <ss23> I don't know where it is though
444: [03:53:05] <guzzlefry> hrm
445: [03:53:25] <guzzlefry> wondering why my errors are showing up at the top of the form for one page and under the field for another...
446: [03:54:26] <Colin[pi]> one is a form message another a field message?
447: [03:55:31] <guzzlefry> They're both in the validator.
448: [03:55:51] <guzzlefry> oh
449: [03:55:56] * guzzlefry tries something.
450: [03:58:03] <guzzlefry> hah okay
451: [03:58:04] <guzzlefry> So
452: [03:58:49] <guzzlefry> Validator::validationError("fieldName", "error", "type");
453: [03:59:13] <guzzlefry> It looks like the error goes under the fieldname you give it
454: [03:59:22] <guzzlefry> still goes under a form if you give it an empty string
455: [03:59:54] <guzzlefry> I had to explicitly set it to a non-existant field name for it to display up top.
456: [03:59:57] * DigNZ quit (Quit: DigNZ)
457: [04:00:36] * mobiusnz1 quit (Quit: Leaving.)
458: [04:18:17] * zagoodwin quit (Ping timeout: 250 seconds)
459: [04:19:35] * zagoodwin_ quit (Ping timeout: 250 seconds)
460: [04:19:44] * stecman quit (Quit: Leaving)
461: [04:21:01] * stecman has joined #silverstripe
462: [04:21:07] <DaShiVaDan> whenever i log out of SS 2.4 on this site, I get: [User Warning] Already directed to /; now trying to direct to http://site.url/Payment - I figure it'll go away on live mode, with warnings off, but it's making it hard to work on teh site. is this base SS 2.4 issue, or something whoever built teh site screwed up?
463: [04:23:43] * DigNZ has joined #silverstripe
464: [04:23:43] * DigNZ quit (Client Quit)
465: [04:25:19] <Zauberfisch23> DaShiVaDan: do you have some sort of payment module installed?
466: [04:27:20] <DaShiVaDan> I'm writing one :P
467: [04:27:24] <DaShiVaDan> don't ask
468: [04:27:25] * mobiusnz has joined #silverstripe
469: [04:27:44] <Zauberfisch23> DaShiVaDan: to me it soulds like your payment module is the problem
470: [04:27:51] <DaShiVaDan> they used to pass teh registrations off to st george bank, now they want me to upgrade it to use eway and customers don't leave teh site
471: [04:28:07] <DaShiVaDan> but it's got nothing to do with the login
472: [04:28:12] <Zauberfisch23> does your payment module do some redirects?
473: [04:28:19] <DaShiVaDan> wait, what did i say my last issue was again, sec :P
474: [04:28:27] <DaShiVaDan> ahh it's the redirect thing yeah on logging out
475: [04:28:31] <DaShiVaDan> no it has nothing to do with teh payment
476: [04:28:46] <DaShiVaDan> it does have a custom but tho:
477: [04:29:09] <DaShiVaDan> LogoutPage.php which has the controller that, on logout, rins:
478: [04:29:15] <DaShiVaDan> Director::redirect("/");
479: [04:29:21] <DaShiVaDan> Security::logout(true);
480: [04:29:57] <Zauberfisch23> but why does it try to redirect you to /Payment after that?
481: [04:29:58] <DaShiVaDan> so i figure it's something in those 2 lines + how SS works that it logs you out, redirects you to root there, then something in SS 2.4 redirects you back to teh page you logged out from, and bam. double redirect
482: [04:30:07] <DaShiVaDan> yeah that's teh page i logged out from
483: [04:30:15] <DaShiVaDan> i believe that is why, but not sure why exactly
484: [04:30:16] <Zauberfisch23> my guess is that your payment module has a hook somewhere that tries to do that redirect
485: [04:30:49] <Zauberfisch23> DaShiVaDan: does this also happen on other pages?
486: [04:31:11] <DaShiVaDan> Zauberfisch23: lemme go see :)
487: [04:32:08] <DaShiVaDan> hmm lol, login seems broken too. I thought my password was wrong, requested a reset link, reset password and it logged me in, but i go to log in with the new password, won't let me, i guess i got other issues to fix first
488: [04:33:08] * SightUnseen has joined #silverstripe
489: [04:34:12] * SightUnseen has left #silverstripe
490: [04:35:03] <DaShiVaDan> ahh found the custom login page, guessing problem is in there somewhere
491: [04:35:45] * stecman quit (Quit: This computer has gone to sleep)
492: [04:43:59] <DaShiVaDan> OK, logging in suddenly resumed working (very strange) logged out from a different page, exact same error. i think i might just try commenting out teh redirect in logout if there's some other redirect already handling it. just worried that sometimes the other redirect doesn't happen, thus the previous dev added the call in figuring he could ignore the notice
493: [04:45:24] <DaShiVaDan> yeah seems to have fixed it for now, will just have to remember i removed it in case something down the road behaves oddly :)
494: [04:48:30] <DaShiVaDan> and, then, just as strangely, logging in randomly stops working again.....
495: [04:49:06] * UncleCheese quit (Quit: UncleCheese)
496: [04:49:27] <irogue23> < Nervosa> phix: fuck is a terrible method name.
497: [04:49:28] <irogue23> < schinckel> Exactly. Do you mean 'fornicate', or 'this-isn't-working' ?
498: [04:49:35] * Shrike_Finland quit (Quit: Leaving.)
499: [04:50:05] <DaShiVaDan> $this->fuck( $object )?
500: [04:52:32] <Zauberfisch23> irogue23: your nick looks handsome again today, the 23 really suits you well
501: [04:53:38] <irogue23> Zauberfisch23: thanks ^_^
502: [04:53:43] <irogue23> haven't changed it yet :D
503: [04:55:16] * DigNZ has joined #silverstripe
504: [04:55:34] * DigNZ quit (Client Quit)
505: [04:59:10] <DaShiVaDan> SS 2.4 in page.php > Page_Controller > init() it contains a couple of things that aren't working like I'd assume they would: 2) Requirements::customScript("jQuery(function($){ ........ and before that: 1) Requirements::javascript("mysite/javascript/jquery-1.7.2.min.js"); - when the page loads, it loads the 2) part, but not the 1) part, then throws a 'jquery... what is that?' type error - is there any reason that 1) requirem
506: [05:00:18] <DaShiVaDan> I view page source and there isn't a single <script type='text/javascript' src='... in the header
507: [05:02:00] <Zauberfisch23> DaShiVaDan: scripts are not suppose to be in the <head>
508: [05:02:10] <Zauberfisch23> scripts are suppose to be just before the </body>
509: [05:02:22] <DaShiVaDan> ahh i just figured it out
510: [05:02:27] <DaShiVaDan> yeah i meant in the <head>
511: [05:03:03] <DaShiVaDan> problem was i changed the sitename from 'mysite' to the actual site name, and renamed teh folder, but it was directly accessing '/mysite/etc....js' so the files didn't exist so weren't loading
512: [05:03:27] <DaShiVaDan> is there a variable for the sitename i can plug in for that folder so if it is ever changed again, it doesn't break hardcoded vars?
513: [05:03:28] <Zauberfisch23> DaShiVaDan: I would advise against renaming mysite
514: [05:03:32] * pippy_ quit (Ping timeout: 265 seconds)
515: [05:03:34] <Zauberfisch23> it just does not yield any benefit
516: [05:03:50] <DaShiVaDan> ahh ok, the only benefit to me was that i have 2 sites that are almost identical
517: [05:03:51] <Zauberfisch23> but can bring a lot of trouble if the code is not clean
518: [05:03:54] <DaShiVaDan> and i was confusing them :P
519: [05:03:55] <Colin[pi]> Zauberfisch23: yep that was one thing I learned early on
520: [05:04:20] <DaShiVaDan> i'll switcch it back
521: [05:04:52] <EasyCo> You know what sucks?
522: [05:05:00] <Colin[pi]> a vacuum?
523: [05:05:09] <EasyCo> Yes, that does suck
524: [05:05:19] <DaShiVaDan> The barman says: "sorry, we don't serve timetravellers here."
525: [05:05:32] * pippy has joined #silverstripe
526: [05:05:35] <DaShiVaDan> A Time Traveller walks into a bar.........
527: [05:05:37] <EasyCo> But more specifically, developing a responsive supernav.
528: [05:05:50] <EasyCo> Good joke
529: [05:06:01] <EasyCo> 2.5/5
530: [05:06:09] <DaShiVaDan> lol
531: [05:07:05] <Colin[pi]> supernav?
532: [05:08:05] <EasyCo> Yah, bit fucking navs
533: [05:08:47] <Colin[pi]> ohhh those like huge dropdown things?
534: [05:08:53] <EasyCo> Yah, that's the one
535: [05:08:55] <Colin[pi]> with about 50 things in each panel?
536: [05:09:13] <Colin[pi]> yeah that would suck
537: [05:09:14] <EasyCo> Sure
538: [05:09:24] <Colin[pi]> drop downs are very out of vogue now
539: [05:13:17] <DaShiVaDan> in the _config, I changed global $project back to 'mysite' - but if I try to use teh variable '$project' in other files within the (now) /mysite/ folder, that variable is unavailable?
540: [05:13:59] <Zauberfisch23> DaShiVaDan: don't use the variable
541: [05:14:02] <Zauberfisch23> use project()
542: [05:14:08] <DaShiVaDan> sweet thanks
543: [05:15:12] <DaShiVaDan> yup worked a charm :)
544: [05:16:21] <Zauberfisch23> and in template you can use $project (which will call project())
545: [05:17:51] <DaShiVaDan> still trying to figure out wht i can't log in to the damn site with a member that's just been created, while my admin logins work just fine
546: [05:18:53] * openbees has joined #silverstripe
547: [05:21:26] <openbees> hello guys .. anybody know about this error "[User Warning] popCurrent called on ModelAsController controller, but it wasn't at the top of the stack" basically I am trying to make a dataobject page where URL looks like .. "mypage/myitem" and "mypage/category/mycategory" first works fine but for second I get this error .. any thoughts ?
548: [05:23:26] <openbees> here is controller code .. http://www.sspaste.com/paste/show/5268ad03a54d3
549: [05:29:30] * spronk2 has joined #silverstripe
550: [05:34:22] * Shrike_Finland has joined #silverstripe
551: [06:03:24] <guzzlefry> I saw that error yesterday.
552: [06:05:38] <guzzlefry> can't recall how I fixed it though
553: [06:07:02] <guzzlefry> How can I assign has_many objects in code?
554: [06:07:14] <guzzlefry> is it just a matter of assigning the has_one attribute on the many object?
555: [06:11:08] * sminnee quit (Quit: sminnee)
556: [06:23:10] * Error404NotFound has joined #silverstripe
557: [06:24:38] * EasyCo quit (Quit: We can't stop here, this is bat country)
558: [06:38:02] * guci0 has joined #silverstripe
559: [06:41:31] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
560: [06:47:11] * spronk2 quit (Quit: spronk2)
561: [06:48:40] * spronk2 has joined #silverstripe
562: [06:51:36] * openbees quit (Quit: Leaving)
563: [07:02:29] <ss23> The Website Ahead Contains Malware!
564: [07:02:29] <ss23> Google Chrome has blocked access to php.net for now.
565: [07:14:35] * spronk2 quit (Quit: spronk2)
566: [07:15:56] * spronk2 has joined #silverstripe
567: [07:16:25] * spronk2 quit (Client Quit)
568: [07:18:34] * ARNHOE has joined #silverstripe
569: [07:23:04] <Zauberfisch23> ss23: :O
570: [07:24:54] <irogue23> ss23: on wat page? i r not getting
571: [07:28:48] * iamss has joined #silverstripe
572: [07:29:26] <iamss> hello Silver Stripe
573: [07:31:48] <guci0> hello
574: [07:33:31] <Zauberfisch23> blubb
575: [07:40:13] * iamss quit (Ping timeout: 250 seconds)
576: [07:44:16] <ss23> irogue23: Might've been removed, but was just main "php.net"
577: [07:44:28] * svandragt has joined #silverstripe
578: [07:44:48] <ss23> http://productforums.google.com/forum/#!topic/webmasters/puLmvjtK0m8
579: [07:44:49] <ss23> lol
580: [07:46:12] <ARNHOE> [User Error] Uncaught Exception: No has_one found on class 'Image', the has_many relation from 'MediaItem' to 'Image' requires a has_one on 'Image'
581: [07:46:20] <ARNHOE> private static $has_many = array("MediaImages" => "Image");
582: [07:46:42] <ARNHOE> got this bug since last branch update
583: [07:47:49] <ARNHOE> DataObject->getRemoteJoinField(MediaImages,has_many)
584: [07:48:14] * Colin[pi] quit (Ping timeout: 264 seconds)
585: [07:51:41] <Zauberfisch23> ARNHOE: is that an extension?
586: [07:51:48] <ARNHOE> no
587: [07:51:51] <ARNHOE> its a actual dataobject
588: [07:52:04] <Zauberfisch23> Oo
589: [07:52:05] <ARNHOE> I didn't have this error before
590: [07:52:14] <Zauberfisch23> ARNHOE: mind sharing your code?
591: [07:52:16] <ARNHOE> yeah
592: [07:52:32] <ARNHOE> http://www.sspaste.com/paste/show/5268d000e7f8b
593: [07:53:37] <Zauberfisch23> ARNHOE: ok, then the error is valid, because you are missing the has_one
594: [07:54:00] <Zauberfisch23> the has_one you have there is from the dataobject to the page
595: [07:54:08] <Zauberfisch23> it has nothing to do with the has_many to the image
596: [07:54:31] <Zauberfisch23> "MediaImages" => "Image" means you MUST have a has_one on IMAGE back to the DataObject
597: [07:54:56] <Zauberfisch23> which it seems you don't have, that means your code is broken and the fact that it worked before was actually a bug
598: [07:55:06] <ARNHOE> oke
599: [07:55:19] <ARNHOE> ill get to it then and change it at my codes, I always thought has_many was enough
600: [07:56:46] <ARNHOE> Zauberfisch23: I should extend to Image right not File (when images)?
601: [07:57:34] * Pyromanik_ has joined #silverstripe
602: [08:00:51] <Zauberfisch23> ARNHOE: commented on github
603: [08:02:06] * Pyromanik_ quit (Ping timeout: 252 seconds)
604: [08:02:09] * MiniZeka has joined #silverstripe
605: [08:02:16] <MiniZeka> hi guys
606: [08:02:33] <MiniZeka> is there an option to completely remove "Filter" sidebar in CMS, version 3.0.5?
607: [08:05:45] * SightUnseen has joined #silverstripe
608: [08:07:22] * skorp has joined #silverstripe
609: [08:08:21] * Error404NotFound has joined #silverstripe
610: [08:08:44] * Colin[pi] has joined #silverstripe
611: [08:09:16] * kinglozzer has joined #silverstripe
612: [08:10:40] * SightUnseen has left #silverstripe
613: [08:12:08] * spronk2 has joined #silverstripe
614: [08:13:41] * chillu has joined #silverstripe
615: [08:21:01] <spronk2> looooooooooooool
616: [08:21:55] <MiniZeka> anyone?
617: [08:22:40] <spronk2> hmm?
618: [08:22:48] <spronk2> wat the issue?
619: [08:22:50] <Zauberfisch23> MiniZeka: no, the only way is to use css
620: [08:23:06] <Zauberfisch23> spronk2: you are missing your 3
621: [08:23:16] * spronk2 is now known as spronk23
622: [08:23:17] <spronk23> ;)
623: [08:23:19] <Zauberfisch23> <3
624: [08:23:26] <spronk23> also, epic lol @ php.net
625: [08:23:30] <spronk23> flagged by googol
626: [08:23:32] <kinglozzer> P
627: [08:23:35] <kinglozzer> :P*
628: [08:23:42] <Zauberfisch23> indeed
629: [08:23:43] <kinglozzer> spronk23: http://productforums.google.com/forum/#!topic/webmasters/puLmvjtK0m8
630: [08:23:50] <kinglozzer> (via ss23)
631: [08:24:03] <spronk23> ya i saw
632: [08:24:11] <kinglozzer> Bless them
633: [08:30:09] <kinglozzer> spronk23: Did you have any issues with upgrading to Mavericks? I'm about to
634: [08:30:17] <spronk23> hmm
635: [08:30:30] <spronk23> it took ages when it said 1 minute left
636: [08:30:35] <spronk23> i've lost my 2d dock
637: [08:30:48] <spronk23> part from that..... seems ok
638: [08:30:57] <kinglozzer> Cool :)
639: [08:30:59] <spronk23> maybe not quite as performant as mountain
640: [08:31:10] <spronk23> oh
641: [08:31:13] <spronk23> virtualbox has issues apparently
642: [08:31:36] <spronk23> i'm using vmware fusion, seems fine
643: [08:31:45] <kinglozzer> Ah, I have VMWare too
644: [08:34:46] * mobiusnz quit (Quit: Leaving.)
645: [08:36:16] * Error404NotFound quit (Read error: Connection reset by peer)
646: [08:39:54] <simon_w|air> Yeah, VirtualBox leaves a zombie, hidden process around
647: [08:39:57] <spronk23> ss23: Zauberfisch23: apparently there was actual malware..
648: [08:40:01] <simon_w|air> Shows up in Dock.app and nowhere else
649: [08:42:15] <simon_w|air> spronk23, nah, just links to a malware site
650: [08:42:52] <simon_w|air> http://marc.info/?l=php-internals&m=138260346408048&w=2
651: [08:46:50] <spronk23> hmm
652: [08:47:03] <spronk23> seems like XSS or something though
653: [08:49:09] <MiniZeka> Zauberfisch23: how come Settings / SiteConfig have that removed - and it's not present in html?
654: [08:49:30] <simon_w|air> Because it's not a ModelAdmin
655: [08:51:30] <Zauberfisch23> MiniZeka: because thats a model admin
656: [08:51:50] <Zauberfisch23> *not a model admin
657: [08:51:57] <MiniZeka> and SiteConfig is LeftAndMain?
658: [08:52:08] <simon_w|air> SiteConfig is CMSSettingsController
659: [08:52:16] <Zauberfisch23> MiniZeka: SiteConfigAdmin is just a LeftAndMain
660: [08:52:26] <MiniZeka> I know, I have it opened right now
661: [08:52:46] <MiniZeka> but ModelAdmin actually extends LeftAndMain
662: [08:53:03] <Zauberfisch23> ModelAdmin is a subclass of LeftandMain and adds that sidebar I think
663: [08:54:07] <kinglozzer> MiniZeka: Are you trying to just remove the sidebar?
664: [08:54:23] <kinglozzer> As in the 'filter' section
665: [08:54:26] <MiniZeka> kinglozzer: yes, sidebar filter to be exact
666: [08:54:38] <kinglozzer> You can create an empty template to do that
667: [08:54:45] <MiniZeka> named?
668: [08:54:59] <kinglozzer> If you have a 'MyObjectAdmin' class, create a template called MyObjectAdmin_Tools.ss
669: [08:55:33] <kinglozzer> That's how I hid it anyway, perhaps there's a better way
670: [08:55:48] <Zauberfisch23> MiniZeka: https://gist.github.com/Zauberfisch/7133610
671: [08:55:51] <MiniZeka> will test now kinglozzer
672: [08:56:43] <Zauberfisch23> oh, kinglozzer thats a good idea
673: [08:56:47] <Zauberfisch23> I just used css to hide it
674: [08:56:55] <Zauberfisch23> since its not a security critical thing
675: [08:56:56] <MiniZeka> Zauberfisch23: that's exactly what I did :)
676: [09:04:15] <skorp> he guys, i'm always logged out from the cms after som eminutes on 3.1 is there a known bug??
677: [09:04:35] * travis-ci has joined #silverstripe
678: [09:04:36] <travis-ci> [travis-ci] chillu/silverstripe-framework#99 (pulls/requesthandler-404s - 0fb571b : Ingo Schommer): The build failed.
679: [09:04:36] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/a4faba06628b^...0fb571b53032
680: [09:04:36] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/12974723
681: [09:04:36] * travis-ci has left #silverstripe
682: [09:06:26] * travis-ci has joined #silverstripe
683: [09:06:27] <travis-ci> [travis-ci] chillu/silverstripe-framework#98 (pulls/requesthandler-404s - 262a428 : Ingo Schommer): The build failed.
684: [09:06:27] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/commit/262a42863d42
685: [09:06:27] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/12974528
686: [09:06:27] * travis-ci has left #silverstripe
687: [09:10:03] * travis-ci has joined #silverstripe
688: [09:10:03] <travis-ci> [travis-ci] chillu/silverstripe-framework#100 (pulls/requesthandler-404s - 1280cf5 : Ingo Schommer): The build is still failing.
689: [09:10:03] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/0fb571b53032...1280cf5d72f0
690: [09:10:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/12974958
691: [09:10:03] * travis-ci has left #silverstripe
692: [09:13:28] <MiniZeka> I have other question though: is it possible to have DataObject has_many Image, and somehow upload multiple images at a time?
693: [09:14:27] <kinglozzer> MiniZeka: Not has_many, many_many. If you need has_many, you'll need to extend Image to a new class and set the has_one back
694: [09:15:10] <kinglozzer> has_many (and therefore has_one) implies that you can only use the image in one place - so if you pick an existing image, it'll be removed from any other objects its related to
695: [09:15:17] <MiniZeka> that's the exact setup: House has_many HouseImage, HouseImage has_one Image
696: [09:15:53] <MiniZeka> and no - I don't need many_many, since it isn't possible to upload same image for two different houses
697: [09:16:21] <MiniZeka> I mean, it is, but it is rather stupid :)
698: [09:16:45] <kinglozzer> MiniZeka: It might be easier to use a many_many, it means you don't have to create a new Image class - there are no down sides
699: [09:16:50] * kinglozzer installs Mavericks
700: [09:16:52] * kinglozzer quit (Remote host closed the connection)
701: [09:17:39] <MiniZeka> I have some extra fields in HouseImage (like description and stuff), and I don't like using many_manyExtraFields
702: [09:17:46] <MiniZeka> not in 3.0.5
703: [09:23:29] * simon_w has joined #silverstripe
704: [09:32:40] * cloph_away is now known as cloph
705: [09:52:33] * travis-ci has joined #silverstripe
706: [09:52:33] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1406 (3.1 - 2266d77 : Ingo Schommer): The build passed.
707: [09:52:33] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/ed6e45610f64...2266d77237cd
708: [09:52:33] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12976091
709: [09:52:33] * travis-ci has left #silverstripe
710: [10:30:33] * Shrike_Finland quit (Quit: Leaving.)
711: [10:34:46] * kinglozzer has joined #silverstripe
712: [10:37:47] * Shrike_Finland has joined #silverstripe
713: [10:42:13] * MiniZeka quit (Ping timeout: 250 seconds)
714: [10:53:37] <skorp> is there a way to add custom javascript before other js files ??
715: [10:58:35] * Colin[pi] quit (Ping timeout: 260 seconds)
716: [10:58:36] * chillu quit (Remote host closed the connection)
717: [11:17:41] * svandragt quit (Ping timeout: 245 seconds)
718: [11:18:42] * chillu has joined #silverstripe
719: [11:19:03] * guzzlefry quit (Ping timeout: 240 seconds)
720: [11:19:20] <spronk23> kinglozzer: all mav'd up?
721: [11:19:40] <kinglozzer> spronk23: Yeah, it finished off my MySQL :P
722: [11:19:48] <kinglozzer> I've been putting off re-installing it for ages anyway, though
723: [11:19:56] <spronk23> ha
724: [11:19:59] <spronk23> i haven't even tested my local mysql
725: [11:20:40] * violetina has joined #silverstripe
726: [11:20:47] <kinglozzer> spronk23: I can't even remember the dodgy method I used to install it, gonna use brew install mysql this time I think
727: [11:21:15] * guzzlefry has joined #silverstripe
728: [11:21:15] * guzzlefry quit (Changing host)
729: [11:21:15] * guzzlefry has joined #silverstripe
730: [11:21:18] <spronk23> :D
731: [11:21:21] <irogue23> you're up late spronk23
732: [11:21:25] <spronk23> i think i just used the mysql installers
733: [11:21:33] * spronk23 is catching up on work
734: [11:21:45] <spronk23> although right now i'm being perplexed by my old mbp...
735: [11:21:55] <spronk23> discrete gpu seems to chew less power than the integrated one...
736: [11:22:06] <spronk23> something fishy going on.
737: [11:22:07] * kinglozzer is considering buying a mbp
738: [11:22:46] <spronk23> i want an air
739: [11:23:02] <spronk23> but at the same time, i don't, because.... i detest the fact you can't upgrade
740: [11:23:17] <spronk23> which is also the reason why i don't really want a pro anymore...
741: [11:23:43] * swordsmanz quit (Read error: Connection reset by peer)
742: [11:23:46] <spronk23> but what else is there? thinkpad x1 is a bit plasticy, dells are junk, samsungs are expensive
743: [11:23:52] * spronk23 shrugs..
744: [11:23:56] * swordsmanz has joined #silverstripe
745: [11:24:02] <kinglozzer> Mmm, I kinda just want it for OSX tbh - tired of Linux on my shitty 'Lenovo' lump of plastic
746: [11:25:38] <spronk23> yeah
747: [11:25:52] * spronk23 has always used apple laptops
748: [11:26:08] <spronk23> os x was made for portables
749: [11:27:09] <spronk23> super annoying that you can't use 2.5" ssds
750: [11:27:25] <spronk23> even msata would be ok... 128gb is nowhere near enough storage, and apple's pricing on larger ssds is absurd
751: [11:28:01] <kinglozzer> Storage isn't too much of an issue for me - I'd mostly use it at home where everything's on my network hard drives
752: [11:28:30] <spronk23> so do i, yet i still manage to fill 140GB on my ssd
753: [11:28:39] <spronk23> syncing with ipad and iphone = ~10gb just ther
754: [11:28:40] <spronk23> e
755: [11:42:51] * travis-ci has joined #silverstripe
756: [11:42:52] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1407 (3.1 - 7cf8e65 : Ingo Schommer): The build passed.
757: [11:42:52] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/2266d77237cd...7cf8e65309ab
758: [11:42:52] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12979734
759: [11:42:52] * travis-ci has left #silverstripe
760: [11:46:52] * ajshort has joined #silverstripe
761: [11:50:35] * travis-ci has joined #silverstripe
762: [11:50:35] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1408 (master - 723c4e3 : Ingo Schommer): The build passed.
763: [11:50:35] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/628b920ea765...723c4e3f4ebb
764: [11:50:35] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/12979807
765: [11:50:35] * travis-ci has left #silverstripe
766: [11:59:15] * swordsmanz quit (Read error: Connection reset by peer)
767: [11:59:56] * swordsmanz has joined #silverstripe
768: [12:11:00] * UndefinedOffset has joined #silverstripe
769: [12:14:50] * micmania1 has joined #silverstripe
770: [12:15:21] * osterlaus has joined #silverstripe
771: [12:15:53] * svandragt has joined #silverstripe
772: [12:42:55] * jrthomer has joined #silverstripe
773: [12:50:24] <andylockran> hey al
774: [12:50:46] <andylockran> is there a way to get around the Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set. error
775: [12:50:49] <andylockran> ?
776: [12:50:53] <andylockran> aside from enabling registeR_globals
777: [12:52:10] * osterlaus has left #silverstripe
778: [12:59:51] <ajshort> no...
779: [12:59:59] <ajshort> that's now the way to do it
780: [13:00:06] <ajshort> define a file to url mapping in your environment file
781: [13:00:31] <ajshort> http://doc.silverstripe.org/framework/en/topics/environment-management#an-example
782: [13:01:31] <andylockran> that link says your config file should have some globals at the start of it..
783: [13:02:11] <ajshort> that's not related to register_globals
784: [13:03:31] <andylockran> ok - but I've got multiple URLS hitting hte same codebase...
785: [13:03:53] <andylockran> eg test.example.com and test2.example.com
786: [13:04:19] <ajshort> so many 2 mappings?
787: [13:04:22] <ajshort> *make rather
788: [13:04:32] <ajshort> oh, i see what you mean
789: [13:04:55] <ajshort> this warning should only occur on the CLI, so i would probably just set a default mapping
790: [13:07:32] * travis-ci has joined #silverstripe
791: [13:07:33] <travis-ci> [travis-ci] chillu/silverstripe-cms#55 (pulls/htmleditor-upload-replace - 677f382 : Ingo Schommer): The build is still failing.
792: [13:07:33] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/77e7e4737a56...677f38227c80
793: [13:07:33] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/12983427
794: [13:07:33] * travis-ci has left #silverstripe
795: [13:08:36] <chillu> ajshort: Hey, I'm just debugging something in versionedfiles. Do you know how this message is supposed to be shown conditionally? https://github.com/ajshort/silverstripe-versionedfiles/blob/master/code/VersionedFileExtension.php#L110
796: [13:09:56] <ajshort> what do you mean conditionally?
797: [13:09:57] <chillu> Ah wait, got myself confused by the user bug report who labelled this as an "error message". In fact, its only a note, and always visible
798: [13:10:02] <ajshort> i would have thought it would be always visible
799: [13:10:18] <ajshort> hah!
800: [13:37:31] <andylockran> ajshort: It's throwing a warning behind the scenes, so just wanted to tidy up the arning.
801: [13:45:10] * Shrike_Finland quit (Quit: Leaving.)
802: [14:16:00] * spronk23 quit (Quit: spronk23)
803: [14:55:04] * Shrike_Finland has joined #silverstripe
804: [15:04:49] * NickM_ quit (Ping timeout: 250 seconds)
805: [15:22:05] * g4b0 has joined #silverstripe
806: [15:22:17] <g4b0> hi all
807: [15:24:57] <kinglozzer> Hey g4b0
808: [15:28:31] * jrthomer quit (Remote host closed the connection)
809: [15:30:10] * ARNHOE quit (Ping timeout: 256 seconds)
810: [15:36:16] * jrthomer has joined #silverstripe
811: [15:38:01] * svandragt quit (Ping timeout: 246 seconds)
812: [15:41:37] * catcher has joined #silverstripe
813: [15:42:19] * travis-ci has joined #silverstripe
814: [15:42:19] <travis-ci> [travis-ci] chillu/silverstripe-framework#101 (pulls/versioned-single-stage - dfabd54 : Ingo Schommer): The build passed.
815: [15:42:19] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/e1b7df38efe5^...dfabd54bdbc5
816: [15:42:19] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/12990616
817: [15:42:19] * travis-ci has left #silverstripe
818: [15:56:40] * mobiusnz has joined #silverstripe
819: [15:58:30] * mobiusnz has left #silverstripe
820: [16:00:36] * g4b0 quit (Quit: g4b0)
821: [16:06:37] * Error404NotFound has joined #silverstripe
822: [16:12:05] * Colin[pi] has joined #silverstripe
823: [16:16:09] * kinglozzer quit (Remote host closed the connection)
824: [16:27:40] * Shrike_Finland quit (Quit: Leaving.)
825: [16:33:14] * Colin[pi] quit (Ping timeout: 264 seconds)
826: [16:49:24] * gelignite has joined #silverstripe
827: [17:13:45] * Shrike_Finland has joined #silverstripe
828: [17:13:49] <catcher> UndefinedOffset, I see the sort to top stuff in master, is that good to go?
829: [17:13:51] * BPower has joined #silverstripe
830: [17:14:01] <catcher> UndefinedOffset, (SortableGF)
831: [17:14:08] <BPower> Recommended version of PHP for SilverStripe?
832: [17:15:31] <BPower> PHP 5.5.5, 5.4.21, or 5.3.27?
833: [17:15:31] <UndefinedOffset> catcher yes, it should be wroking fine, theres also a new tag that includes it
834: [17:17:08] <BPower> Anyone have issues with SS on PHP 5.5.5?
835: [17:18:27] <catcher> UndefinedOffset, excellent. My backwards-compat change to has_extension was accepted to core recently. Do I need to re-submit my pull request for the Versioning update?
836: [17:24:35] <UndefinedOffset> shouldn't i'll merge it once that gets released in the core
837: [17:48:16] * skorp quit (Read error: Connection reset by peer)
838: [17:48:34] * skorp has joined #silverstripe
839: [17:54:03] * CodeTrap has joined #silverstripe
840: [17:56:56] <catcher> UndefinedOffset, sounds good, thanks!
841: [17:59:12] * skorp has left #silverstripe
842: [17:59:42] * dangerdan has joined #silverstripe
843: [17:59:55] <dangerdan> are there any decent guides out there on writing framework only silverstripe apps?
844: [18:04:46] <guzzlefry> dangerdan: I'd imagine you just install the framework and go from there.
845: [18:06:06] <guzzlefry> The CMS is just a module that uses the framework.
846: [18:08:42] <catcher> the routing stuff is tricky though, last I checked the documentation on that was a bit sparse.
847: [18:09:00] <dangerdan> yeah i get that, but i've been looking at the cms code to try and learn from it but i'm so confused about it
848: [18:09:07] <dangerdan> maybe im a bit out of my depth here tbh...
849: [18:14:15] <guzzlefry> I find that's the best place to be for learning something. :P
850: [18:19:03] <Zauberfisch23> BPower: the minimum has been raised to 5.3.3 yesterday (so that means the next release will need 5.3.3 or higher
851: [18:19:44] <Zauberfisch23> BPower: I have successfully ran SS3.1.1 on 5.3.3 and 5.4
852: [18:19:50] <Zauberfisch23> but never tried 5.5
853: [18:19:53] <BPower> Zauberfisch23: thanks!
854: [18:19:56] <Zauberfisch23> but should work fine
855: [18:19:59] * lewellyn is running some version on 5.5.5 :)
856: [18:20:02] <Zauberfisch23> have you had any issues with 5.5?
857: [18:20:14] <lewellyn> i'm too lazy to see if i've upgraded the ss instance recently.
858: [18:20:22] <Zauberfisch23> if you have the chance to run it on 5.5 then I'd say pick 5.5
859: [18:20:34] <BPower> I'm asking our server team to install 5.5.5 on our new servers.
860: [18:20:36] <lewellyn> Zauberfisch23: i've had no issues that i know of. but i don't use it hardcore. i use ss for semi-static stuff right now.
861: [18:21:13] <lewellyn> BPower: 5.5 is a nice change if you've been stuck with 5.2 or older.
862: [18:22:01] <BPower> We've been on 5.3.21 so far
863: [18:22:08] <BPower> I know traits are new
864: [18:22:18] <guzzlefry> I think ubuntu server 12.04 is still stuck on 5.3 :/
865: [18:22:20] <BPower> Anything in particular in 5.5 vs 5.4?
866: [18:22:43] * Shrike_Finland quit (Quit: Leaving.)
867: [18:22:57] <BPower> guzzlefry: Ubuntu 13.04 is on 5.4.9
868: [18:23:03] <BPower> (Desktop)
869: [18:23:09] <lewellyn> BPower: it's "faster" for some things. also, it pisses off some of my older stuff that assumes that sqlite (e.g. sqlite2) is in core and not pecl, for instance.
870: [18:23:24] <BPower> haha
871: [18:23:29] <lewellyn> btw, for those on rhel and its clones, remi has a php55 repo now.
872: [18:23:46] <BPower> we're on RHEL 6 :(
873: [18:23:51] <BPower> I want Ubuntu
874: [18:23:54] <lewellyn> BPower: use remi's php55 repo.
875: [18:24:39] <lewellyn> http://blog.famillecollet.com/pages/English-FAQ might be helpful :)
876: [18:26:23] <BPower> I'm an Ubuntu man -- don't know much about RHEL but I think our team will only work with official repos.
877: [18:26:58] <lewellyn> remi is kinda like "epel plus" and mostly consists of backports from fedora (by the maintainer of those packages)
878: [18:27:23] * swordsmanz quit (Ping timeout: 272 seconds)
879: [18:27:26] * blueman has joined #silverstripe
880: [18:27:33] <guzzlefry> I'd be using Gentoo if clients didn't care about uptime between updates. >_>
881: [18:27:38] <lewellyn> http://blog.famillecollet.com/post/2013/10/18/PHP-5.4.21-and-5.5.5
882: [18:28:10] <simon_w> I still don't get why people even bother with Ubuntu on a server
883: [18:28:20] <lewellyn> simon_w: they like things to break?
884: [18:28:36] <guzzlefry> I use it because it mirrors the current staging server.
885: [18:28:40] <guzzlefry> And well, that's the only reason. :P
886: [18:28:52] <simon_w> So why do you use it on staging?
887: [18:28:57] <guzzlefry> It wasn't me!
888: [18:29:10] * lewellyn can't wait until things can use php 5.5's finally support
889: [18:29:35] <guzzlefry> simon_w: I'd change it, but it's not a priority. :P
890: [18:29:45] <guzzlefry> anyway
891: [18:29:49] <guzzlefry> what would you suggest for a server?
892: [18:30:06] <simon_w> If you want a deb based one, Debian
893: [18:30:15] <guzzlefry> ah
894: [18:30:39] * dangerdan quit (Ping timeout: 250 seconds)
895: [18:30:39] <guzzlefry> For some reason I thought those two were basically the same.
896: [18:30:39] <lewellyn> hm. i just realized i'm likely to have to upgrade my servers for rhel 7 :P
897: [18:30:41] <simon_w> But a flavour that's primary focus is servers, not desktops that can't decide if they're ripping off Windows or OSX with each release
898: [18:30:50] <guzzlefry> hah
899: [18:30:59] <blueman> Iif I have added a member to a group with addToGroupByCode is there an equivalent removeFromGroupByCode? If not what is the best way to disassociate the member from the group programmatically?
900: [18:31:00] * joelpittet has joined #silverstripe
901: [18:31:46] * lewellyn has one stuck on rheclone 6.2 because that's the latest version supported by hp for this model.
902: [18:31:52] <lewellyn> another had AS2 as an option when it was new.
903: [18:32:46] <guzzlefry> blueman: I don't see anything like that, would be nice to have. :P
904: [18:33:02] <simon_w> blueman, $member->Groups()->remove(Group::get()->filter('Code', $code)->First())
905: [18:33:16] * skorp has joined #silverstripe
906: [18:37:35] <blueman> guzzlefry, perfect! You Rock!
907: [18:37:51] <guzzlefry> err, blueman, you mean simon I think :P
908: [18:38:00] <simon_w> Oh man, I've got a project that it actually makes sense to use SS for. Haven't had one of those for some time.
909: [18:38:11] <guzzlefry> hah
910: [18:38:15] <blueman> right you are!
911: [18:38:34] <guzzlefry> ecommerce in SS...
912: [18:38:53] <simon_w> Well, there will be ecommerce, but not a shop
913: [18:38:59] <guzzlefry> ah
914: [18:39:05] <simon_w> SaaS and all that
915: [18:39:47] <simon_w> Though, for ecommerce, that Swype thing's free now
916: [18:39:58] <simon_w> https://github.com/frankmullenger/silverstripe-swipestripe
917: [18:42:35] * CodeTrap quit (Ping timeout: 272 seconds)
918: [18:50:54] * SightUnseen has joined #silverstripe
919: [18:51:02] * SightUnseen has left #silverstripe
920: [18:54:16] * antmas quit (Quit: Page closed)
921: [18:55:38] <guzzlefry> hrm
922: [18:57:57] <guzzlefry> So I have some links in a grid field row that open in a new tab. How do I stop the EditForm for the record from loading when those are clicked?
923: [19:14:00] <simon_w> Stop propagation on the event, but then clicking it doesn't work
924: [19:14:52] <guzzlefry> rawr
925: [19:15:04] <guzzlefry> inherited code...
926: [19:15:44] <guzzlefry> Guess I'll worry about the changes I think I know how to do for now. :P
927: [19:21:35] * oddnoc has joined #silverstripe
928: [19:23:32] * DigNZ has joined #silverstripe
929: [19:30:16] * Shrike_Finland has joined #silverstripe
930: [19:49:50] * Zauberfisch has joined #silverstripe
931: [19:50:24] * Zauberfisch quit (Read error: Connection reset by peer)
932: [19:50:50] * DigNZ quit (Quit: DigNZ)
933: [19:55:40] * DigNZ has joined #silverstripe
934: [19:57:46] * NickM_ has joined #silverstripe
935: [19:57:53] <NickM_> Quick question.
936: [19:58:15] <NickM_> I added this function to my Page_Controller.php file:
937: [19:58:16] <NickM_> public function UserSigninForm() { return new Form_UserSignin($this, 'UserSigninForm'); }
938: [19:58:40] <NickM_> Should that then be accessible from any template file?
939: [20:00:01] <NickM_> In the Page.ss template, there's an include to Navigation_Bar.ss. I want to be able to access $UserSigninForm from within the Navigaton_Bar.ss file.
940: [20:00:34] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
941: [20:00:40] <guzzlefry> I think as long as the current page's controller inherits from Page_Controller it should.
942: [20:00:58] <NickM_> And it does.
943: [20:01:27] <NickM_> What's weird is I *can* get it to inherit properly via UserPage.ss, but not from Navigation_Bar.ss.
944: [20:01:53] <NickM_> Is there something special about includes from wtihin a parent templatE?
945: [20:01:56] <NickM_> template*
946: [20:09:15] * stecman has joined #silverstripe
947: [20:09:55] <catcher> NickM_, are there any context changes before Navigation_Bar is included?
948: [20:11:27] <NickM_> No
949: [20:11:36] <BPower> OMGoodness... I just about died listening to this. This person is serious. https://www.facebook.com/photo.php?v=4274715858916&set=vb.1016788026&type=2&theater
950: [20:11:47] <NickM_> <% include Html_Header %> is called before.
951: [20:12:06] * UncleCheese has joined #silverstripe
952: [20:12:12] <NickM_> When this is the structure, it works.
953: [20:12:40] <NickM_> Page > UserPage > Form
954: [20:12:58] <NickM_> When it's Page > Navigation it fails.
955: [20:13:02] <NickM_> That wasn't a very good representation.
956: [20:13:20] <NickM_> Pretty much when Navigation_Bar is included from Page.ss, it doesn't work.
957: [20:13:30] <catcher> NickM_, have you flushed the template cache?
958: [20:13:31] <NickM_> Well, it doesn't render withing Navigation_Bar.
959: [20:13:55] <NickM_> Ah
960: [20:14:00] <NickM_> Trying
961: [20:14:18] <NickM_> Darn
962: [20:14:19] <NickM_> Didn
963: [20:14:23] <NickM_> Didn't work*
964: [20:15:08] <NickM_> Ok, heading to the car. I'll be back online in 20 - 30 minutes.
965: [20:19:25] * NickM_ quit (Ping timeout: 250 seconds)
966: [20:27:56] * jrthomer quit (Remote host closed the connection)
967: [20:31:47] * UncleCheese quit (Quit: UncleCheese)
968: [20:36:06] * UncleCheese has joined #silverstripe
969: [20:37:39] * simon_w|air quit (Quit: Leaving)
970: [20:40:43] * UndefinedOffset quit (Quit: Leaving.)
971: [20:42:39] * gelignite quit (Ping timeout: 272 seconds)
972: [20:47:34] * Ryan_____ has joined #silverstripe
973: [20:48:38] <Ryan_____> Hey guys, anyone know how I can get rid of "home" when I'm using __DIR__ ?
974: [20:52:17] * violetina quit (Remote host closed the connection)
975: [21:05:47] * blueman quit (Ping timeout: 250 seconds)
976: [21:10:23] * Alexwijn has joined #silverstripe
977: [21:16:57] * Colin[pi] has joined #silverstripe
978: [21:22:42] * nickmolhoek has joined #silverstripe
979: [21:23:43] * NickM_ has joined #silverstripe
980: [21:23:59] * skorp has left #silverstripe
981: [21:24:05] <NickM_> catcher, I figured it out.
982: [21:24:18] <catcher> NickM_, what was up?
983: [21:24:34] <NickM_> Rookie mistake.
984: [21:24:55] <NickM_> I was trying to access the form object within a <% with %> control.
985: [21:25:57] <catcher> NickM_, inside Navigation_Bar?
986: [21:26:04] <NickM_> I have <% with $Profile %>, followed by <% if $isLoggedIn %>
987: [21:26:15] <NickM_> isLoggedIn is part of the $Profile object.
988: [21:26:29] <NickM_> Right. Within the Navigation_Bar file.
989: [21:26:34] <NickM_> This is a signin form.
990: [21:26:41] <NickM_> So, if logged in, do this. Else, do that.
991: [21:26:54] <NickM_> But, I'm doing the if within the with.
992: [21:27:19] <catcher> NickM_, glad it's sorted. I did ask you about context change above, though I specified outside of Navigation_Bar
993: [21:27:36] <NickM_> Yeah. That's what made me think about it.
994: [21:27:42] <NickM_> So, thanks for the suggestion.
995: [21:29:17] <catcher> NickM_, np, glad to hear you got it.
996: [21:34:23] * Colin[pi] quit (Ping timeout: 240 seconds)
997: [21:37:06] <ss23> irogue23: A handy reference of the routers not to sell!
998: [21:37:07] <ss23> :D
999: [21:37:07] <ss23> http://routerpwn.com/
1000: [21:37:57] <simon_w> tl;dr: All of them!
1001: [21:38:08] <simon_w> Woo, found my passport
1002: [21:38:31] <catcher> that's funny, just had to dig around for my passport today too
1003: [21:39:06] <ss23> I found mine the other day!
1004: [21:39:34] <simon_w> I need mine in at most three hours
1005: [21:39:43] <ss23> Have you left yet, simon_w?
1006: [21:40:06] <simon_w> Yes, that's why I don't need my passport for another three hours
1007: [21:40:50] <simon_w> And why I'm still on IRC
1008: [21:42:50] * catcher quit (Quit: Leaving)
1009: [21:43:02] <simon_w> Sync sync, sync the iPad
1010: [21:43:32] <simon_w> Check, check, check the bus timetable
1011: [21:44:54] <simon_w> 25 minutes, unless I bus hop
1012: [21:44:58] * Alexwijn quit ()
1013: [21:46:18] <simon_w> Also, I have the most awesomest bag tag
1014: [21:46:30] <Pyromanik> simon_w: GLHF :)
1015: [21:46:38] <Pyromanik> have a safe trip!
1016: [21:47:45] <simon_w> Oh, I'll have fun ;)
1017: [21:48:33] <simon_w> Would've been nicer with the secluded cottage in the mountains, but oh well
1018: [21:49:16] <ss23> simon_w: Wasn't sure if you were like in Sydney and needing it soon or what!
1019: [21:49:38] <ss23> I'm sure any place is fine, as long as you have your GIRLFRIEND, simon_w :3
1020: [21:49:49] <simon_w> My my, someone's jealous :p
1021: [21:50:00] * guzzlefry steps outside.
1022: [21:50:03] <ss23> X
1023: [21:50:04] <ss23> XD
1024: [21:50:12] <ss23> What can I say, I feel like Caitlyn stole you!
1025: [21:50:13] <ss23> :P
1026: [21:50:20] <DaShiVaDan> morning
1027: [21:50:26] <ss23> hai DaShiVaDan
1028: [21:50:27] <simon_w> You can't even spell her name properly! :p
1029: [21:50:30] <ss23> SORRY
1030: [21:50:43] <ss23> Caytelin
1031: [21:50:43] <ss23> :D
1032: [21:51:04] <guzzlefry> That name has so many spellings...
1033: [21:51:25] * guzzlefry pats ss23 on the back.
1034: [21:51:28] <guzzlefry> I understand bro.
1035: [21:52:26] <DaShiVaDan> anyone have any advice on how to debug failed login on ss 2.4? I've verified the information for the member is in the database, gone through the login code, and it seems to be having issues with recognising the password through the encryption. If I request a password reset link, and use it, it does log me in, but the updated password still doesn't work to log back in once logged out after password reset link clicked
1036: [21:53:26] <DaShiVaDan> the 'administrator' users can log in just fine, but not the ones with type of 'Entrant' and I can't find anything in the login that looks at the member type field for actual login
1037: [21:54:13] * Alexwijn has joined #silverstripe
1038: [21:58:57] <ss23> Now, time to take down Silverstripe.com!
1039: [21:59:12] <ss23> DaShiVaDan: What kind of passowrds are you using, simple ones?
1040: [21:59:47] <DaShiVaDan> in sapphire/security/MemberLoginForm.php line 208 in performLogin($data) it calls: $member = call_user_func_array(array($this->authenticator_class, 'authenticate'), array($data, $this)); which does not return a member
1041: [22:00:07] <ss23> Oh yeah, only like .1s of downtime!
1042: [22:00:09] <DaShiVaDan> the password (I checked in the data) is there, it's just 'password' and i believe it's using sha1 salted encryption
1043: [22:00:37] <simon_w> DaShiVaDan, does Entrant have anything like a canLogin() method?
1044: [22:00:38] <DaShiVaDan> but it has the correct email and password that i set for the member
1045: [22:00:43] <DaShiVaDan> lemme check that
1046: [22:01:29] <DaShiVaDan> nope nothing like that
1047: [22:01:41] <DaShiVaDan> also, this is a pre-existing site, i've been led to believe that logging in used to work
1048: [22:02:08] <DaShiVaDan> and like i said, if i use a password reset link, it logs me in through that
1049: [22:02:27] <simon_w> And it's go time! :)
1050: [22:02:29] * simon_w quit (Quit: Leaving)
1051: [22:02:50] * antmas has joined #silverstripe
1052: [22:03:08] <antmas> mornin
1053: [22:03:17] <DaShiVaDan> morning
1054: [22:03:46] <DaShiVaDan> where is the encryption type set again for ss 2.4 for passwords?
1055: [22:04:12] * Alexwijn quit ()
1056: [22:07:39] <Zauberfisch23> DaShiVaDan: in the Member table
1057: [22:07:51] <Zauberfisch23> encyption can be set on a per user bases
1058: [22:08:00] <antmas> hmm docs wont load in IE9 :<
1059: [22:08:02] <Zauberfisch23> but there is also a php config for setting a global default
1060: [22:08:41] <DaShiVaDan> I'm just wondering if it is somehow using one form of encryption for setting the passwords and somehow something else to read them?
1061: [22:09:04] <ss23> Okay, playing my playlist again
1062: [22:09:09] <ss23> damn
1063: [22:09:18] <DaShiVaDan> it's got the member colum value: sha1_v2.4
1064: [22:09:30] <DaShiVaDan> the playlist with rebecca black?
1065: [22:09:43] <DaShiVaDan> or the one with the 80's and 90's classics?
1066: [22:09:48] <ss23> Well, a variety
1067: [22:09:52] <ss23> Now it's playing Ricky Martin
1068: [22:09:58] <DaShiVaDan> lol
1069: [22:10:02] <ss23> But like, I was just typing "I wonder how long till anyone notices"
1070: [22:10:08] <ss23> and as I was typing, someone was like "... stephen?"
1071: [22:10:15] <DaShiVaDan> rofl
1072: [22:10:22] <Zauberfisch23> DaShiVaDan: you want to get the plaintext back form already encrypted passwords?
1073: [22:10:38] * chillu quit (Read error: Connection reset by peer)
1074: [22:10:45] <DaShiVaDan> Zauberfisch23: I just can't log in newly created members
1075: [22:10:51] <Zauberfisch23> because thats not possible, the passwords are salted and hashed, its a one way street
1076: [22:10:52] * chillu has joined #silverstripe
1077: [22:10:59] <Zauberfisch23> unless you get lucky in a rainbow table
1078: [22:11:00] <DaShiVaDan> Zauberfisch23: I just want to figure out why and first step i figure is to turn off encryption
1079: [22:11:13] <DaShiVaDan> i can recreate the passwords
1080: [22:11:23] <DaShiVaDan> i know what they are, and can update them through admin if i forget anyway
1081: [22:11:40] <DaShiVaDan> the issue isn't the actual passwords (they're all 'password' anyway) it's that I can't log in
1082: [22:11:40] <Zauberfisch23> are you sure its the passwords fault? aren't you having a custom login form that could be the reason?
1083: [22:11:52] <DaShiVaDan> and as best as i can pin down it's something to do with the password
1084: [22:12:05] <DaShiVaDan> i do have a custom login form, but i did trace the call that fails
1085: [22:12:07] <DaShiVaDan> it's:
1086: [22:12:20] <ss23> DAE LOVE WORKING AT SILVERSTRIPE? https://fd-files-eu-production.s3-eu-west-1.amazonaws.com/21975/q7ywfUHGOzLWLLHeI5Shrg?AWSAccessKeyId=AKIAIA2QBI5WP5HA3ZEA&Signature=HUovOb83HcmJyjgnX75k32oXosE%3D&Expires=1382652963
1087: [22:13:08] <DaShiVaDan> it's: /sapphire/security/MemberLoginForm.php > performLogin( $data ) // and the data is accurate login name and password (that i just reset to it)
1088: [22:13:08] <guzzlefry> They feed you?!
1089: [22:13:11] <DaShiVaDan> and it fails with:
1090: [22:13:17] <DaShiVaDan> $member = call_user_func_array(array($this->authenticator_class, 'authenticate'), array($data, $this));
1091: [22:13:18] <ss23> wahaha, banana phone now!
1092: [22:13:22] <DaShiVaDan> that fails to find a member
1093: [22:13:25] <DaShiVaDan> so it's in the core SS code
1094: [22:13:25] <Zauberfisch23> well, you should be able to do is run: UPDATE Member SET Password = 'zauberfischIsAwesome', PasswordEncryption = 'plain', Salt = '' WHERE Email = 'your@email.address';
1095: [22:13:38] <DaShiVaDan> sweet thanks lemme give it a shot
1096: [22:13:39] <antmas> "Where under a high volume of work at the moment"...
1097: [22:13:42] <antmas> SURE :P
1098: [22:13:57] <guzzlefry> hm
1099: [22:14:00] <guzzlefry> forgot my question
1100: [22:14:01] <guzzlefry> damnit
1101: [22:14:09] <guzzlefry> oh right
1102: [22:14:44] <guzzlefry> So I want to have this module that adds content blocks to a page object
1103: [22:14:49] <DaShiVaDan> Uncaught PasswordEncryptor_NotFoundException: No implementation found for "plain" :) should it be 'plain' or something else for 2.4?
1104: [22:14:49] <Zauberfisch23> DaShiVaDan: (just to point out the obvious: thats a SQL query)
1105: [22:14:56] <guzzlefry> should I just make an extension and apply to the object?
1106: [22:15:08] <Zauberfisch23> DaShiVaDan: hold on
1107: [22:15:14] <guzzlefry> I was going to add the extension to Page, but I don't know if everyone will have that. :P
1108: [22:15:18] <DaShiVaDan> Zauberfisch23: yup :) i suck at silverstripe, but i rock at php and mysql :P lol
1109: [22:15:41] <antmas> hmmmm, so do search queries get surrouned in "" by default?
1110: [22:16:09] <Zauberfisch23> DaShiVaDan: can you try uppercase P?
1111: [22:16:20] <DaShiVaDan> I find if I put ?sqlqueries=1 type thing, the queries it spits out have double quotes around "field" names which isn't how it actually runs the queries
1112: [22:16:52] <DaShiVaDan> Zauberfisch23: same error with a capital P
1113: [22:18:22] <DaShiVaDan> Zauberfisch23: and ig i empty the field (NULL) I just get password incorrect messages again
1114: [22:18:27] <DaShiVaDan> *if
1115: [22:18:49] * travis-ci has joined #silverstripe
1116: [22:18:50] <travis-ci> [travis-ci] chillu/silverstripe-framework#102 (pulls/js-i18n - f000269 : Ingo Schommer): The build has errored.
1117: [22:18:50] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/789833c870b6...f00026954ad8
1118: [22:18:50] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/13010416
1119: [22:18:50] * travis-ci has left #silverstripe
1120: [22:19:18] * travis-ci has joined #silverstripe
1121: [22:19:19] <travis-ci> [travis-ci] chillu/silverstripe-cms#56 (pulls/js-i18n - 493ea50 : Ingo Schommer): The build is still failing.
1122: [22:19:19] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/33294e683095...493ea505e415
1123: [22:19:19] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/13010409
1124: [22:19:19] * travis-ci has left #silverstripe
1125: [22:19:29] * EasyCo has joined #silverstripe
1126: [22:19:34] <Zauberfisch23> DaShiVaDan: how about 'none'
1127: [22:20:02] <EasyCo> What class do I use with renderWith() if I just want to supply a few variables to the template?
1128: [22:20:23] <Zauberfisch23> EasyCo: you want to render an array with a template?
1129: [22:20:36] <DaShiVaDan> Zauberfisch23: 'none' causes no errors, but still won't verify login
1130: [22:20:51] <EasyCo> I've just got a bunch of post data that I want to render in a template, yah.
1131: [22:20:59] <DaShiVaDan> Zauberfisch23: I'm currently thinking something is extended somewhere that causes the overwrite, but I can't figure out how to trace it.
1132: [22:21:01] <Zauberfisch23> $string = ArrayData::create(array('Zauberfisch' => 'awesome'))->renderWith(array('MyTemplate'));
1133: [22:21:10] <EasyCo> ArrayData!!!
1134: [22:21:12] <EasyCo> That's the one
1135: [22:21:13] <Zauberfisch23> DaShiVaDan: then something is wrong with your form I guess
1136: [22:21:14] <EasyCo> I'd forgotten
1137: [22:21:16] <EasyCo> Thanks
1138: [22:21:54] <Zauberfisch23> DaShiVaDan: look at this test: https://github.com/silverstripe/silverstripe-framework/blob/2.4/tests/tasks/EncryptAllPasswordsTaskTest.php#L8
1139: [22:21:56] <EasyCo> also, you don't need to send an array to renderWith
1140: [22:22:29] <Zauberfisch23> EasyCo: ?
1141: [22:23:12] <EasyCo> Sorry, not very clear. ->renderWith('MyTemplate'); suffices unless you want to specify fallbacks afaik
1142: [22:23:17] <DaShiVaDan> Zauberfisch23: that test looks intruiging, never done SS testing though, how would I use that?
1143: [22:23:21] <Pyromanik> 11:14 < DaShiVaDan> Uncaught PasswordEncryptor_NotFoundException: No implementation found for "plain" :) should it be 'plain' or something else for 2.4?
1144: [22:23:27] <Pyromanik> sounds like it should be 'Pain'
1145: [22:23:44] <Zauberfisch23> Pyromanik: haha
1146: [22:24:00] <DaShiVaDan> oh, got past that warning if it's set as 'none' I tried both 'plain' and 'Plain' and both threw notices
1147: [22:24:05] <Zauberfisch23> DaShiVaDan: well, I don't want you to run it, I want you too look at it as proove that its "none"
1148: [22:24:18] <Zauberfisch23> DaShiVaDan: he is just messing with you
1149: [22:24:20] <Zauberfisch23> its "none"
1150: [22:24:31] <DaShiVaDan> yup :)
1151: [22:25:34] <Pyromanik> 11:11 < DaShiVaDan> Zauberfisch23: I just want to figure out why and first step i figure is to turn off encryption
1152: [22:25:49] * Nimle has joined #silverstripe
1153: [22:25:50] <Pyromanik> nah, first step is to trace the query back through to see what it's feeding into the DB
1154: [22:26:00] <DaShiVaDan> ahh well i'm still trying to do that too :)
1155: [22:26:02] <Pyromanik> ?showqueries will help
1156: [22:26:26] <DaShiVaDan> yeah i used firebug to add it to teh end of the login form action
1157: [22:26:27] <Pyromanik> there's never any need to flick encryption off
1158: [22:26:40] <DaShiVaDan> it shows 2 queries that both find the member (I ran them thru phpmuyadmin)
1159: [22:26:49] <DaShiVaDan> but then it redirects
1160: [22:26:51] <Pyromanik> I take it you've cloned the site to a local dev env.
1161: [22:26:56] <DaShiVaDan> yup yup
1162: [22:27:02] <DaShiVaDan> working on it on dev server in dev mode
1163: [22:27:04] <Pyromanik> so put some var dumps in the core code
1164: [22:27:08] <DaShiVaDan> i am
1165: [22:27:19] <DaShiVaDan> currently adding one to memberauthenticater method authenticate()
1166: [22:27:20] <Pyromanik> trace the request back from the form to the member location code
1167: [22:27:26] <Pyromanik> yep
1168: [22:27:26] <Nimle> Hi guys, is there a way to get base url (domain) in template without protocol part? $BaseHref, $AbsoluteBaseURL return protocol as well.
1169: [22:27:31] <Pyromanik> make sure the values are still sane
1170: [22:28:11] <Pyromanik> I had this issue once I think, I forgot what it was causing it but it was something simple and something from written code (not core).
1171: [22:28:28] <Pyromanik> Nimle: Director::BaseURL()
1172: [22:28:37] * travis-ci has joined #silverstripe
1173: [22:28:37] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#1415 (3.1 - 91e96ec : Sean Harvey): The build passed.
1174: [22:28:37] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/7cf8e65309ab...91e96ec1c047
1175: [22:28:37] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/13009935
1176: [22:28:37] * travis-ci has left #silverstripe
1177: [22:28:38] <Pyromanik> oh, just the domain, no.
1178: [22:28:48] <Pyromanik> $_SERVER['HTTP_HOST']
1179: [22:28:52] <DaShiVaDan> yeah i figure it has to be something not core, but cant find what, and it's not code i wrote :/
1180: [22:29:06] <spronk> Everybody
1181: [22:29:13] <spronk> I have officially declared Vogels to be tastier than Burgen.
1182: [22:29:17] <spronk> That is all.
1183: [22:29:21] <DaShiVaDan> so, in memberAuthenticator under authenticate, it runs 'checkPassword which returns:
1184: [22:29:34] <Pyromanik> spronk: yeh, 'course.
1185: [22:29:46] <Nimle> @Pyromanik, I needed in template. what happens is I want to convert it to https for example, I want to put in template href="https://$URL/checkout"
1186: [22:29:55] <DaShiVaDan> ValidationResult Object( [isValid:protected] => 1 [errorList:protected] => Array( ) [class] => ValidationResult [extension_instances:protected] => Array( ))
1187: [22:30:11] <DaShiVaDan> so, isValid == 1 means it validated, right?
1188: [22:30:17] <Pyromanik> Nimle: add a function to Page_Controller that returns $_SERVER['HTTP_HOST']
1189: [22:30:35] <DaShiVaDan> ahhh nevermind guys
1190: [22:30:40] <Pyromanik> Nimle: better idea is to serve the whole site in SSL from the start.
1191: [22:30:44] <DaShiVaDan> just found where the previous developer modified core files
1192: [22:30:47] <DaShiVaDan> idiot
1193: [22:30:48] <DaShiVaDan> :P
1194: [22:30:56] <Pyromanik> DaShiVaDan: hahah, fuck I hate chobs taht do that.
1195: [22:31:20] <DaShiVaDan> ahh was only like 3 hours wasted
1196: [22:31:23] <Pyromanik> SilverStripe is fantastic enough that you can just subclass, modify and then use Object::useCustomClass()
1197: [22:31:26] <Pyromanik> to override
1198: [22:31:33] <DaShiVaDan> not like i have a quoted timeframe to do this all in :)
1199: [22:31:37] <Pyromanik> well, only where Object::create() is used.
1200: [22:31:37] <DaShiVaDan> yup
1201: [22:31:38] <Pyromanik> but still.
1202: [22:31:48] <DaShiVaDan> i figured this previous guy knew SS which is why he used it... my mistake :P
1203: [22:32:02] <Pyromanik> yeah, never.
1204: [22:32:26] <Pyromanik> Assumption makes an Ass out of you, and Umption.
1205: [22:32:45] <Pyromanik> http://www.youtube.com/watch?v=miPPQu2iqts
1206: [22:33:19] * guci0 quit (Ping timeout: 250 seconds)
1207: [22:33:41] <DaShiVaDan> lol pyro.
1208: [22:34:11] <Nimle> @Pyromonik, thank you for your help. but I dont want in this way. I will get url with jquery
1209: [22:36:39] * SightUnseen has joined #silverstripe
1210: [22:36:44] * SightUnseen has left #silverstripe
1211: [22:37:15] <irogue23> i keep getting calls from recruiters wanting people for CWP :P
1212: [22:37:46] <DaShiVaDan> CWP?
1213: [22:38:06] * SightUnseen1 has joined #silverstripe
1214: [22:38:25] <guzzlefry> That's the place to avoid isn't it? :P
1215: [22:39:04] <antmas> hate recruiters
1216: [22:39:12] <antmas> actually no
1217: [22:39:17] <antmas> some recruiters
1218: [22:39:22] * SightUnseen1 has left #silverstripe
1219: [22:39:41] <spronk> grr
1220: [22:39:45] <spronk> fucks sakes silverstripe
1221: [22:39:51] <guzzlefry> :P
1222: [22:40:13] <Pyromanik> DaShiVaDan: Common Web Platform, NZ Govt's SilverStripe useage.
1223: [22:40:17] <spronk> i just have issues with everyhting these days
1224: [22:40:22] <spronk> can't even make a SiteTree link work
1225: [22:40:27] <irogue23> DaShiVaDan: http://ict.govt.nz/programmes/rethink-online/implementing-rethink-online/common-web-services/platform/
1226: [22:40:44] <ss23> You could've linked directly to cwp.gov!
1227: [22:40:51] <Pyromanik> cwp.govt.nz ?
1228: [22:40:55] <spronk> how to test in template
1229: [22:40:55] <ss23> https://www.cwp.govt.nz/ is public now
1230: [22:41:09] <spronk> <% if SiteTreeName %> doesn't work. what works?
1231: [22:41:12] <Pyromanik> Like the Oar Strikes the Water.
1232: [22:41:16] <ss23> spronk: Why not?
1233: [22:41:21] <Pyromanik> ss23: good song.
1234: [22:41:35] <spronk> i don't know why not
1235: [22:41:37] <Pyromanik> spronk: dafuq is SiteTreeName ?
1236: [22:41:38] <spronk> there's a link id in the database
1237: [22:41:40] <spronk> i'm just not getting any link
1238: [22:41:43] <DaShiVaDan> working for the kiwi government sounds like a pretty cushy job
1239: [22:41:45] <spronk> Pyromanik: it's actually called MainPhotoLink
1240: [22:42:00] <spronk> => SiteTree
1241: [22:42:04] <Pyromanik> spronk: and it's a link to another ... yeh right.
1242: [22:42:15] * wracu has joined #silverstripe
1243: [22:42:21] <spronk> i thought you could check that in template with <% if MainPhotoLink %>
1244: [22:42:27] <Pyromanik> yep
1245: [22:42:32] <spronk> UGHhgfh
1246: [22:42:33] <Pyromanik> try MainPhotoLinkID
1247: [22:42:40] <Pyromanik> I founda bug with ID's
1248: [22:42:51] <spronk> hmm, nope
1249: [22:42:54] <Pyromanik> didn't report yet though, perhaps this weekend
1250: [22:42:59] <Pyromanik> spronk: try $Debug
1251: [22:43:07] <Pyromanik> (not in an if)
1252: [22:43:20] <spronk> MainPhotoLink.Debug is basically blank
1253: [22:43:23] <spronk> doesn't seem to pick up a data record
1254: [22:43:32] <spronk> ohh
1255: [22:43:33] <spronk> fucking scope
1256: [22:43:35] <spronk> nvm
1257: [22:43:52] <spronk> place where this template is included is wrapped in a <with
1258: [22:43:56] <ss23> Okay, time to tkae down silverstripe.com again
1259: [22:43:56] <ss23> :D
1260: [22:44:38] <Pyromanik> spronk: yes, hence why I said Debug, not Debug.blah :P
1261: [22:44:43] <Pyromanik> or rather blah.debug
1262: [22:44:48] <spronk> mm
1263: [22:44:57] <Pyromanik> $Up.blah :D
1264: [22:45:00] <spronk> mm
1265: [22:45:08] <spronk> that took me entirely too long to figure out
1266: [22:45:11] <Pyromanik> although if you're going to compare equality I found a bug
1267: [22:45:16] <spronk> ]oh?
1268: [22:45:36] <Pyromanik> Up.Prop == Prop fails, you must Up.Prop == Me.Prop
1269: [22:46:13] <Pyromanik> and no matter what, <% if ID %> ALWAYS fails.
1270: [22:46:20] <wracu> hey, first time in here. somewhat new to SS...
1271: [22:46:25] <Pyromanik> gidday
1272: [22:46:26] <Pyromanik> welcome
1273: [22:46:30] <wracu> can I get a tip? i have a question :)
1274: [22:46:57] <wracu> Its about routing..
1275: [22:47:21] <wracu> so... shoot?
1276: [22:47:27] <spronk> yus.
1277: [22:47:36] <wracu> site.dev/items/find/show/number1
1278: [22:47:43] <wracu> possible to turn this into...
1279: [22:47:43] <wracu> site.dev/items/number1
1280: [22:48:06] <wracu> i.e. cutting out the pageHolder and the action from the URL
1281: [22:48:23] <DaShiVaDan> i assume you mean without mod_rewrite?
1282: [22:49:01] <Pyromanik> wracu: yes
1283: [22:49:14] <spronk> ugh i really need to solve this vm file sharing bullshit
1284: [22:49:24] <Pyromanik> wracu: http://doc.silverstripe.org/framework/en/reference/director
1285: [22:49:41] <wracu> excellent. as I said... somewhat new... :)
1286: [22:49:49] <Pyromanik> wracu: yeah no stupid questions.
1287: [22:50:09] <Pyromanik> Just remember to actually ask questions (don't ask if someone can help you and then wait around) ;)
1288: [22:50:38] <Pyromanik> even if no one answers immediately, often people will come back and answer at some point.
1289: [22:51:00] * SightUnseen has joined #silverstripe
1290: [22:51:15] * SightUnseen has left #silverstripe
1291: [22:51:27] <Pyromanik> wracu: your route will look something like "items//$ID": blahController
1292: [22:51:49] <wracu> thanks. I'll have a play (and some lunch)
1293: [22:54:04] * SightUnseen1 has joined #silverstripe
1294: [22:54:31] <Pyromanik> :>
1295: [22:55:17] <Pyromanik> ss23: . isn't valid in a classname right?
1296: [22:55:22] <ss23> Hmm
1297: [22:55:25] <ss23> It might b
1298: [22:55:25] <ss23> be
1299: [22:55:29] <Pyromanik> :<
1300: [22:55:39] <Pyromanik> : certainly shouldn't be, right?
1301: [22:55:40] <ss23> Well...
1302: [22:55:44] <ss23> Hmm
1303: [22:55:45] <EasyCo> How do you send specific headers from a controller index method?
1304: [22:56:06] <Pyromanik> EasyCo: $this->response->addHeader('blah', 'blah')
1305: [22:56:11] * SightUnseen1 has left #silverstripe
1306: [22:56:35] <EasyCo> A perfect, thanks
1307: [22:56:37] <Pyromanik> cf. api.ss.org SS_HTTPResponse
1308: [22:57:11] <Pyromanik> http://api.ss.org.nz
1309: [22:57:13] <EasyCo> I was looking at that, but made a typo. It's one of those days
1310: [22:57:18] <Pyromanik> mmm
1311: [22:59:07] <irogue23> EasyCo: its ok, its friday
1312: [22:59:09] <irogue23> have a drink
1313: [22:59:24] * irogue23 hands EasyCo the bottle of Appletons
1314: [22:59:36] <Pyromanik> :D
1315: [22:59:43] <Pyromanik> SCHNAPPLETONS
1316: [23:00:02] <EasyCo> Going camping in a couple'o hours. Drinking will happen.
1317: [23:00:05] <EasyCo> :)
1318: [23:00:13] <Pyromanik> zomg I think I just invented a cocktail
1319: [23:01:03] * antmas quit (Ping timeout: 250 seconds)
1320: [23:01:45] <Pyromanik> I paid $20 for a single bottle of beer last night
1321: [23:01:49] <Pyromanik> then I drank it
1322: [23:02:04] <Pyromanik> then I shrugged and went "worth it!"
1323: [23:02:12] <Pyromanik> It was good.
1324: [23:02:32] <Pyromanik> Luckily it was ~600ml and 10%
1325: [23:02:35] <spronk> L|}
1326: [23:02:39] <spronk> the fuck kinda beer were you drinking?
1327: [23:02:45] <Pyromanik> Mike's Imperial Porter
1328: [23:02:47] <Pyromanik> Limited Edition
1329: [23:02:52] <guzzlefry> guys!
1330: [23:02:56] <Pyromanik> gaiz!
1331: [23:03:02] <guzzlefry> Do I only use ::create() on formfields?
1332: [23:03:13] * NickM_ quit (Ping timeout: 250 seconds)
1333: [23:03:23] <Zauberfisch23> guzzlefry: ::create() all the things!
1334: [23:03:25] <guzzlefry> well, including gridfield
1335: [23:03:41] <guzzlefry> all the things!?
1336: [23:03:53] <Zauberfisch23> guzzlefry: its the "new" on steroids
1337: [23:03:55] <Zauberfisch23> all the things!
1338: [23:04:16] <guzzlefry> Makes me sad that I can't get parameter hints from my IDE using them though. :/
1339: [23:04:25] <Zauberfisch23> Object::create('Page') == Page::create()
1340: [23:04:36] <Zauberfisch23> guzzlefry: true, that sort of sucks
1341: [23:04:53] <Zauberfisch23> so: study and learn the params :P
1342: [23:05:05] * guzzlefry grumbles...okay :P
1343: [23:05:08] <guzzlefry> thank you sir
1344: [23:05:10] <Zauberfisch23> guzzlefry: well, in your own code no one cares
1345: [23:05:19] <Zauberfisch23> but if you write modules or core code, you should use ::create()
1346: [23:05:24] * travis-ci has joined #silverstripe
1347: [23:05:24] <travis-ci> [travis-ci] chillu/silverstripe-framework#103 (pulls/js-i18n - 99d4cd4 : Ingo Schommer): The build is still failing.
1348: [23:05:24] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/f00026954ad8...99d4cd403721
1349: [23:05:24] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/13010657
1350: [23:05:24] * travis-ci has left #silverstripe
1351: [23:05:35] <Zauberfisch23> the reason for that is that ::create() uses the injector and does some fancy magic
1352: [23:06:07] <Zauberfisch23> so for example it checks if there is a custom class set that replaces this class
1353: [23:06:23] <Pyromanik> guzzlefry: ::creaet ALL THE THINGS (that extend Object)
1354: [23:07:10] <Pyromanik> eg, you can't ::create() gridfield components
1355: [23:08:55] <guzzlefry> ah
1356: [23:09:44] * travis-ci has joined #silverstripe
1357: [23:09:44] <travis-ci> [travis-ci] chillu/silverstripe-cms#56 (pulls/js-i18n - 493ea50 : Ingo Schommer): The build is still failing.
1358: [23:09:44] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/33294e683095...493ea505e415
1359: [23:09:44] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/13010409
1360: [23:09:44] * travis-ci has left #silverstripe
1361: [23:11:03] <ss23> Pyromanik: Your *way* earlier question
1362: [23:11:03] <ss23> Pyromanik: http://codepad.viper-7.com/CYHQtc
1363: [23:11:13] <ss23> Pyromanik: See why I was like "kind of" in regards to . being a valid classname?
1364: [23:11:15] <guzzlefry> ooh
1365: [23:11:16] <ss23> :P
1366: [23:11:19] <guzzlefry> my code hasn't exploded
1367: [23:12:01] <guzzlefry> now..
1368: [23:12:16] <guzzlefry> I need to add that LinkExistingSomethingOrAnother thing to gridfield. :P
1369: [23:12:48] <Zauberfisch23> guzzlefry: and the really cool thing other than the injector is chaining
1370: [23:12:55] <Zauberfisch23> with create() you can chain
1371: [23:13:00] <Zauberfisch23> like this:
1372: [23:13:16] * BPower quit (Remote host closed the connection)
1373: [23:13:53] <Zauberfisch23> $config = GridFieldConfig::create()->addComponent(new ZauberfischIsAwesomeComponent())->removeComponentsByType('ss23UselessComponent');
1374: [23:13:59] <guzzlefry> 0.o
1375: [23:14:04] <guzzlefry> it's like JQuery!
1376: [23:14:14] <ss23> ;_;
1377: [23:14:16] <ss23> wat
1378: [23:14:30] <guzzlefry> ss23: All of the method chaining.
1379: [23:14:32] <DaShiVaDan> so how do i register my nick on here? i forget
1380: [23:14:40] <guzzlefry> /msg nickserv register help
1381: [23:14:53] <DaShiVaDan> thanks
1382: [23:15:22] <guzzlefry> oh wait
1383: [23:15:30] <ss23> yay, I didn't take SilverSTripe.com down!
1384: [23:15:33] <ss23> 10 points to ss23
1385: [23:15:33] <ss23> :D
1386: [23:15:37] <guzzlefry> ss23: Nevermind, you're referring to ss23UselessComponent :P
1387: [23:15:46] <Zauberfisch23> guzzlefry: :D
1388: [23:15:58] * guzzlefry checks to see if api.silverstripe.org is still up.
1389: [23:16:49] <guzzlefry> yay
1390: [23:16:54] <guzzlefry> all of the broken links in the docs.. :P
1391: [23:17:30] <DaShiVaDan> anyone use multiform addon? have an opinion of it?
1392: [23:18:28] <Zauberfisch23> DaShiVaDan: I don't, I see no need for it, in the past when I needed multi form stuff I took care of the data myself
1393: [23:18:37] <Zauberfisch23> just stored it into session
1394: [23:18:55] <Pyromanik> ss23: I fixed it
1395: [23:18:58] <Pyromanik> http://codepad.viper-7.com/kUjAql
1396: [23:19:12] <DaShiVaDan> Zauberfisch23: I think I'd do the same, been having to work with it in these sites i have to update, and documentation on it is all sorts of broken, so starting to really hate it :)
1397: [23:20:01] <Zauberfisch23> DaShiVaDan: thats what I love about silverstripe. its easy to do things yourself, you don't have to rely on other modules that are potentialy bad or overkill
1398: [23:20:56] <ss23> Pyromanik: Same thing? o.l
1399: [23:20:58] <ss23> o.o
1400: [23:21:48] * guzzlefry wonders why SortableGridField isn't in main code.
1401: [23:21:54] <DaShiVaDan> Zauberfisch23: so far yeah, I just wish I had the time budget to redo this site from the ground up and properly learn SS :P
1402: [23:22:31] * Zauberfisch23 is happy that SortableGridField is not in core
1403: [23:22:51] * Zauberfisch23 would much rather see the implementation of ajshort get into core
1404: [23:23:18] <Zauberfisch23> guzzlefry: use this: https://github.com/ajshort/silverstripe-gridfieldextensions/blob/master/docs/en/index.md#orderable-rows
1405: [23:23:21] <oddnoc> There are multiple implementations of a sortable grid field
1406: [23:23:21] <Zauberfisch23> its much nicer
1407: [23:23:53] <oddnoc> yup, that's what I was thinking of whilst too lazy to find it :)
1408: [23:24:25] * travis-ci has joined #silverstripe
1409: [23:24:26] <travis-ci> [travis-ci] chillu/silverstripe-framework#104 (pulls/js-i18n - 2242a6c : Ingo Schommer): The build failed.
1410: [23:24:26] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/99d4cd403721...2242a6c4abb5
1411: [23:24:26] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/13012829
1412: [23:24:26] * travis-ci has left #silverstripe
1413: [23:29:41] * Colin[pi] has joined #silverstripe
1414: [23:30:08] <guzzlefry> Is there any real need to check if an object exists before looping through it in template?
1415: [23:30:09] <guzzlefry> well
1416: [23:30:20] <guzzlefry> say a many-many relation.
1417: [23:30:47] <Zauberfisch23> guzzlefry: yes, because if it returns false it will loop once
1418: [23:34:32] <wracu> I tried to turn site.dev/items/find/show/number1 into site.dev/items/number1 using routes.yml but I cant seem to do it without permanently removing the access to the page /find ....
1419: [23:34:57] <wracu> I want to lose the /show/ but need to keep the find as a usable page...
1420: [23:35:16] <wracu> is my best bet to reduce it to site.dev/items/find/number1 ?
1421: [23:38:00] <Zauberfisch23> wracu: find is the URLSegment of a Page?
1422: [23:38:11] <Zauberfisch23> Page as in a SiteTree thingy
1423: [23:41:00] * travis-ci has joined #silverstripe
1424: [23:41:01] <travis-ci> [travis-ci] chillu/silverstripe-framework#105 (pulls/js-i18n-3.1 - e864966 : Ingo Schommer): The build failed.
1425: [23:41:01] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-framework/compare/e3542fead31f^...e864966ae81a
1426: [23:41:01] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/13013883
1427: [23:41:01] * travis-ci has left #silverstripe
1428: [23:46:56] * travis-ci has joined #silverstripe
1429: [23:46:56] <travis-ci> [travis-ci] chillu/silverstripe-cms#57 (pulls/js-i18n-3.1 - b726180 : Ingo Schommer): The build failed.
1430: [23:46:56] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/b6589ba9a94f^...b726180ab84d
1431: [23:46:56] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/13013954
1432: [23:46:56] * travis-ci has left #silverstripe
1433: [23:47:03] * chillu quit (Quit: chillu)
1434: [23:49:44] <ss23> "I'm very stressed out today and this Ricky Martin music is not helping"
1435: [23:49:50] <ss23> I got my music rights revoked finaly
1436: [23:49:51] <ss23> :<
1437: [23:49:56] <DaShiVaDan> similar to weacu's thing, but not: this site has something for turning /Entrant/entrant-slug into the entrant page, however it won't work if entrant is not flagged 'Paid' - where would this check for 'Paid' be if the guy who wrote this knew what he was doing?
1438: [23:50:12] <Colin[pi]> LIVIN LA VIDA LOCA
1439: [23:50:17] <ss23> lol
1440: [23:50:21] <ss23> I played that first
1441: [23:50:23] <guzzlefry> ss23: If you'd listen to me and play Fleetwood Mac...
1442: [23:50:27] <ss23> But when it started She Bangs, people got mad
1443: [23:50:28] <guzzlefry> gawddd
1444: [23:50:40] <DaShiVaDan> guzzle: you watch american horror story perchance?
1445: [23:50:40] <Colin[pi]> ss23: start with Michael Buble next
1446: [23:50:46] <guzzlefry> DaShiVaDan: nope
1447: [23:50:46] <ss23> I can't!
1448: [23:50:47] <ss23> :<
1449: [23:50:50] <guzzlefry> why?
1450: [23:50:50] <ss23> I don't have music playing now
1451: [23:50:59] <guzzlefry> sing!
1452: [23:51:03] <guzzlefry> sing with all your heart!
1453: [23:51:05] <DaShiVaDan> oh, it is referencing fleetwood mac a lot in teh last couple of episoides
1454: [23:51:13] <guzzlefry> ah
1455: [23:52:01] * EasyCo quit (Ping timeout: 272 seconds)
1456: [23:55:01] * Jakx has joined #silverstripe
1457: [23:55:02] <Colin[pi]> simon_w gone to travel?
1458: [23:55:06] <Jakx> yo
1459: [23:55:16] <Zauberfisch23> blubb
1460: [23:56:11] * UncleCheese quit (Quit: UncleCheese)
1461: [23:59:35] <Jakx> does anyone know under which conditions Session::set() seems to fail in 2.4?

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