#silverstripe IRC Log

IRC log for 28 October 2014

All timestamps are in UTC.

1: [00:00:10] * Liquide quit ()
2: [00:01:42] <simon_w|work> http://legislation.govt.nz/act/public/1986/0120/latest/DLM3295054.html
3: [00:01:56] * simon_w|work may know way too much about the details of that Act
4: [00:04:01] <UncleCheese> yeah
5: [00:04:09] <UncleCheese> it wasn't an "agent"
6: [00:05:09] <adrexia> there is, as far as I know, nothing to stop anyone from being an agent
7: [00:05:35] <simon_w|work> Yeah, it's basically just someone who temporarily acts as the landlord
8: [00:05:45] <simon_w|work> Does not have to be a property manager/real estate agent
9: [00:05:59] <mahfuz> Hi All. Here is one of my Form Code for Search - http://www.sspaste.com/paste/show/544ed83f08473 - How can I preserve the user selection in Search Result Page?
10: [00:06:01] <antmas> that really sucks
11: [00:06:43] <simon_w|work> mahfuz, $form->loadDataFrom($_GET)
12: [00:07:15] <UncleCheese> simon_w|work it doesn't have to be a real agent?
13: [00:07:23] <simon_w|work> UncleCheese, nope
14: [00:07:26] <UncleCheese> so she can just appoint some punter?
15: [00:07:34] <adrexia> UncleCheese, agents have no legal difference to a normal person
16: [00:07:37] <mahfuz> Thanks a lot simon
17: [00:07:41] <UncleCheese> it was my understanding that said punter had to be on the lease
18: [00:07:43] <simon_w|work> UncleCheese, http://legislation.govt.nz/act/public/1986/0120/latest/DLM94283.html
19: [00:08:06] <adrexia> on the lease ?
20: [00:08:33] <UncleCheese> yeah
21: [00:08:41] <UncleCheese> think about it
22: [00:09:00] <UncleCheese> part of the reason you sign a lease is because you are comfortable working with the person who manages the place
23: [00:09:11] <UncleCheese> that person disappears, the agreement shouldnt' be valid anymore
24: [00:09:16] <simon_w|work> UncleCheese, only if they're the agent at the time of signing the lease
25: [00:09:16] <adrexia> ahh I see what you mean
26: [00:09:20] <UncleCheese> unless you've agreed to the random person she appoints
27: [00:09:43] <adrexia> but it's supposed to be a temporary thing.
28: [00:09:45] <adrexia> though...
29: [00:09:56] <UncleCheese> that's why there's a 21-day threshold
30: [00:10:08] <adrexia> if the landlkaw leaves forever and has someone manage the tenancy - tahts also legally ok IU think
31: [00:10:24] <adrexia> until they sell the place
32: [00:10:43] <UncleCheese> hmm
33: [00:10:54] <UncleCheese> well, i'll make sure i tell the lawyer that, as well
34: [00:11:00] <adrexia> that person does have certain legal obligations
35: [00:11:03] <simon_w|work> UncleCheese, also, the lease is always between you and the landlord. Agents don't need to be on the lease, since they're not the ones leasing it out
36: [00:11:28] <UncleCheese> but the tenant should have the right to approve the random people that the landlord appoints to manage the place in her absence
37: [00:11:54] <UncleCheese> i'm going on holiday, my meth head uncle will take care of you.. he has keys to the place
38: [00:12:05] * spronk2 quit (Quit: spronk2)
39: [00:13:12] <adrexia> its generally assumed that the landlords are the ones taking the risk
40: [00:13:17] <adrexia> not the tenants
41: [00:13:46] <UncleCheese> right, but the tenants are, aren't they?
42: [00:13:47] <simon_w|work> If their agent screws up, tenancy tribunal lays down the smackdown
43: [00:13:49] <adrexia> though, that assumption is fairly classist when you examine it.
44: [00:14:01] <adrexia> that ^
45: [00:14:20] <adrexia> but yeah, when its someone you are uncomfrotable with, how do you deal with it?
46: [00:14:29] <UncleCheese> exactly
47: [00:14:36] <simon_w|work> Appoint your own agent ;)
48: [00:14:52] <adrexia> what happens if the landlord appoints someone you have a restraining order against? Can they?
49: [00:15:11] <simon_w|work> They can, and then they have to work within the bounds of that order
50: [00:15:15] <simon_w|work> So is pretty shit choice
51: [00:15:30] * adrexia nods
52: [00:17:00] <simon_w|work> Hmm, wonder if you can trespass a creepy agent
53: [00:17:14] <ss23> Is "they're creepy" grounds for a tresspass?
54: [00:19:25] * codetoday has joined #silverstripe
55: [00:19:41] <simon_w|work> ss23, being on the property is grounds for a trespass
56: [00:20:14] <simon_w|work> It depends if the rights in tenancy act for landlords counteract the trespass act
57: [00:20:19] <simon_w|work> Would probably need case law
58: [00:23:00] <Kingy> "The process which led to the creation of humankind on earth was a fluke - and it is highly unlikely it has been repeated anywhere else in the universe."
59: [00:23:08] <Kingy> that sentence is quite a scary thing to think about
60: [00:23:59] <simon_w|work> The only reason life can exist is because it exists
61: [00:24:49] <codetoday> Is there any reason why an SS site would just fail and produce a error : [Warning] mysqli::mysqli(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
62: [00:25:01] <simon_w|work> codetoday, cause MySQL isn't running?
63: [00:25:32] <codetoday> ah, server might of restarted =/
64: [00:26:53] <Kingy> irogue_ did you ever get round to thinking about webrtc?
65: [00:27:13] * antmas quit (Ping timeout: 246 seconds)
66: [00:27:43] * jenniferaslan quit (Remote host closed the connection)
67: [00:28:46] <mahfuz> simon: Could you please guide me on this. Currently I am showing search results as I am getting from the database. I need to have 3 Links/Button in the Search Result Page which will show the results differently sorted or even add more filters on the results. What would be the best way to go about it?
68: [00:32:57] * veb has joined #silverstripe
69: [00:34:38] <mahfuz> can anyone give ideas to me about my question above?
70: [00:35:26] <micmania1> Mahfuz: how are you getting the results from the database?
71: [00:38:13] <mahfuz> micmanial: Here is my Search Code which is done taking inputs from a custom form and shown in a separate template. - http://www.sspaste.com/paste/show/544edff146a42
72: [00:39:59] <micmania1> Mahfuz: its just $results->sort(‘Column ASC’);
73: [00:42:30] <adrexia> SiteTree::get()->filter(array('ClassName' => 'PhotoModel')); could just be PhotoModel::get(), btw
74: [00:43:42] * antmas has joined #silverstripe
75: [00:51:02] * Tanger has joined #silverstripe
76: [00:51:11] <steven__> Is anyone using the "silverstripe-email-helpers" extension for SMTP email? I wanted to add a reply to email but can't find it...does it not have one?
77: [00:51:33] <mahfuz> micmanial: I know that but I need to have 3 links in the result page that will show the results differently.
78: [00:51:38] <Tanger> Mornin' guys
79: [00:51:56] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
80: [00:54:00] * UncleCheese has joined #silverstripe
81: [00:54:30] <antmas> Tanger: o/
82: [00:55:39] <mahfuz> adrexia: The PhotoModel is derived from Page and don't have its own db table. So I am using this as per the suggestion of UncleCheese
83: [00:56:05] <UncleCheese> adrexia it's a bug
84: [00:56:10] <adrexia> ahh right
85: [00:56:16] <adrexia> with silverstripe?
86: [00:56:35] <adrexia> wouldn't it be better to fix the bug?
87: [00:58:10] <adrexia> is that the reson for the foriegn key stuff too?>
88: [00:58:18] <adrexia> *reason
89: [00:58:28] <mahfuz> Hi UC. Could you please give me some ideas about the following. Currently I am showing search results as I am getting from the database. I need to have 3 Links/Button in the Search Result Page which will show the results differently sorted or even add more filters on the results. What would be the best way to go about it?
90: [00:59:43] <UncleCheese> adrexia if a page has no db or has_one fields, it doesn't get a table.. so PhotoModel::get() fails.. have to use SiteTree for the datalist... i believe there's already a ticket for this issue
91: [01:00:21] <adrexia> or Page?
92: [01:00:28] <adrexia> hmm
93: [01:00:33] <UncleCheese> mahfuz add links that pass query parameters into the page to change the sorting/filtering
94: [01:00:59] <adrexia> I'd be tempted to but a property on it just to make the code nicer ;)
95: [01:01:00] <UncleCheese> page, only if you have db fields in page.php
96: [01:01:04] <adrexia> *put
97: [01:01:05] <UncleCheese> adrexia yes!
98: [01:01:09] <UncleCheese> but that idea got shot down
99: [01:01:14] <adrexia> meh
100: [01:01:16] <UncleCheese> 'Nothing' => 'Boolean(1)'
101: [01:01:19] <adrexia> lol
102: [01:01:27] <ss23> Boolean(1) is a bit weird
103: [01:01:46] <adrexia> honestly, I have somehow never needed a page that had nothing spiecial on it
104: [01:01:47] <UncleCheese> well, ideally it takes up as little memory as possible
105: [01:01:51] <UncleCheese> so tinyint seems to be the best option
106: [01:02:05] <mahfuz> Could you please give an example link with passing parameter please?
107: [01:02:13] <UncleCheese> adrexia he's got a has_many and a many_many
108: [01:02:17] <UncleCheese> that's special :)
109: [01:02:31] <UncleCheese> mahfuz ?sort=something&dir=ASC
110: [01:02:32] <adrexia> oh... and no table for the page type
111: [01:02:47] <adrexia> just the in between tables
112: [01:02:56] <UncleCheese> right, because it's all just metadata essentailly
113: [01:02:58] <adrexia> seems... weird that I haven't hit that one then
114: [01:03:06] <UncleCheese> right?
115: [01:03:16] <UncleCheese> didn't happen in < 3.0
116: [01:03:31] <adrexia> I'm mostly 3.0+
117: [01:03:43] <adrexia> < 3.0 is too old school for me
118: [01:04:05] <mahfuz> Actually how do I call a function using the link?
119: [01:04:06] <UncleCheese> DataObject::get() needs to be updated to check for has_own_table
120: [01:04:22] <UncleCheese> mahfuz call the function?
121: [01:06:07] <mahfuz> Like this -- refinedResults($data, $form, $request)?sort=something&dir=ASC
122: [01:06:15] * irogue_ quit (Quit: Textual IRC Client: www.textualapp.com)
123: [01:07:53] <antmas> oooooh At the Gates album out today :D
124: [01:07:57] * antmas spins
125: [01:08:12] * Colin[pi] harnesses antmas for power generation
126: [01:08:19] <UncleCheese> mahfuz you'll look at $request->getVar('sort') and update your datalist accordingly
127: [01:09:33] * antmas sparks for Colin[pi]
128: [01:09:36] <antmas> *
129: [01:09:39] <antmas> *********
130: [01:10:21] <mahfuz> Thanks UC. Let me try.
131: [01:13:49] <Colin[pi]> ermahgerd: http://www.extremetech.com/computing/192950-windows-10-will-come-with-a-command-line-package-manager-much-to-the-lament-of-linux-users
132: [01:15:54] <antmas> Colin[pi]: I tried it
133: [01:15:58] <Colin[pi]> and?
134: [01:16:00] <antmas> it works pretty well
135: [01:16:03] <Colin[pi]> !!
136: [01:16:06] <Colin[pi]> no wai
137: [01:16:18] <antmas> yeah it's not often I say things work well in powershell
138: [01:16:29] <Colin[pi]> wow they are going all out to win back the power user crowd arent they?
139: [01:16:47] <antmas> yeah it will be interesting to see how that pans out
140: [01:18:09] <UncleCheese> you know how fixtures.yml lets you do things like:
141: [01:18:17] <UncleCheese> prop: =>somethingelse.prop
142: [01:18:23] <UncleCheese> can you do that in config?
143: [01:18:24] <antmas> Colin[pi]: you can technically do that in Win7 etc as well
144: [01:18:30] <antmas> the package things
145: [01:18:37] <Colin[pi]> mm
146: [01:18:49] <Colin[pi]> but it's not been like an "official" thing until now though right?
147: [01:19:42] <antmas> yeah
148: [01:19:45] <antmas> I think so
149: [01:20:05] <antmas> lol the other thing they're toting is the ability to ctrl+v in CMD
150: [01:20:13] <antmas> which I'm actually stoked about
151: [01:22:47] <mahfuz> UC: is it the correct syntax to call the refinedResults function through link? - <a href="refinedResults($data, $form, $request)?sort=created&dir=DESC">New</a>
152: [01:25:07] <markcl2> Is there an easy way to migrate a Silverstripe SQLite database to Mysql
153: [01:25:08] <markcl2> ?
154: [01:30:37] <micmania1> markcl2: You could try Navicat or MySQL workbench. They have tools which deal with migration between database types.
155: [01:30:56] <micmania1> I used Navicat for a MSSQL migration which seemed to work well. Only issue was with character encoding.
156: [01:41:09] * codetoday quit (Remote host closed the connection)
157: [01:41:39] * markcl2 quit (Ping timeout: 265 seconds)
158: [01:43:38] <UncleCheese> mahfuz no, just link to the current page with query params
159: [01:43:49] <UncleCheese> {$Link}?sort=foo
160: [01:44:14] * markcl has joined #silverstripe
161: [01:48:47] <markcl> thanks guys
162: [01:48:52] <markcl> ill try those out
163: [01:49:19] * PapaBearNZ has joined #silverstripe
164: [01:51:03] <PapaBearNZ> Have anyone ever had the situation of a build removing a page class but the db already has pages of the deleted class in existence - the CMS won't let you delete, unpublish, anything with the class. Do you know of a way outside of manually purging records from the DB that we could remove these pages?
165: [01:55:50] <antmas> woah http://www.stuff.co.nz/nelson-mail/10670030/Report-sparks-hunt-for-Motueka-gunman
166: [01:57:18] <Zauberfisch> micmania1: git push -f origin 1.0:master ? :P
167: [01:57:33] <micmania1> Zauberfisch: something like that haha
168: [01:57:43] <micmania1> It should be simple. I just haven’t done it in ages.
169: [01:57:56] <Zauberfisch> or you can always merge
170: [01:58:05] <micmania1> yeah, i normally just merge.
171: [01:58:19] <Zauberfisch> but I think its nicer in this case to just use 1.0 and delete the current master
172: [01:58:34] <Zauberfisch> means no additional merge commit
173: [01:58:43] <micmania1> I could rebase too
174: [01:58:55] <micmania1> It *should* be clean.
175: [01:59:15] <Zauberfisch> ah, wait. yeah, I see there is no diff
176: [01:59:22] <Zauberfisch> 1.0 is just ahead
177: [01:59:28] <Zauberfisch> yeah, than any way will do just fine
178: [01:59:44] <micmania1> Zauberfisch: that $stage thing - i’ll have to check that one out. I’m pretty sure stage should be used.
179: [02:00:19] <Zauberfisch> yeah, I was about to delete it, but then I thought you are doing a lot with this vairable there, that should probably be used somewhere
180: [02:01:11] <micmania1> I should be able to remove a temporary fix for table joining though :) I noticed it was still there in one of the files.
181: [02:06:32] <adrexia> antmas - erg. I hope no one gets hurt
182: [02:07:05] <adrexia> for such a small place, the Nelson region certainly gets it's fair share of drama
183: [02:08:59] <mahfuz> Thanks UC
184: [02:12:49] * spekulatius quit (Ping timeout: 244 seconds)
185: [02:13:00] * adrexia quit (Ping timeout: 265 seconds)
186: [02:17:38] * Olliepop has joined #silverstripe
187: [02:18:33] <Olliepop> Hey has anybody incorporated two factor authentication into SS admin?
188: [02:18:43] <Colin[pi]> Olliepop: pretty sure simon_w|work has
189: [02:19:10] <Kingy> http://addons.silverstripe.org/add-ons/91carriage/2fa
190: [02:19:16] <Kingy> that'd be his
191: [02:19:21] <simon_w|work> Yup
192: [02:19:29] <simon_w|work> I don't even have to go find the link myself!
193: [02:19:39] <Kingy> we got your back simon_w|work
194: [02:20:04] <Olliepop> Nice thanks :)
195: [02:20:29] <simon_w|work> Olliepop, I still need to make it auto-generate backup tokens at some point, but you can manually add them for now
196: [02:21:26] * adrexia has joined #silverstripe
197: [02:21:30] * spekulatius has joined #silverstripe
198: [02:22:37] <Olliepop> @simon_w|work It looks great
199: [02:23:21] <Colin[pi]> Olliepop: you doubt simon_w|work's magnificence?
200: [02:23:25] <Colin[pi]> ;D
201: [02:23:37] <simon_w|work> Well, in terms of looks, sure :p
202: [02:24:37] <Olliepop> Colin[pi] must admit.. I lost faith while desperately searching github and turning up nothing
203: [02:25:07] <simon_w|work> Olliepop, that's cause it's not on github :p
204: [02:25:10] * simon_w|work has left #silverstripe
205: [02:25:16] * simon_w|work has joined #silverstripe
206: [02:25:23] <simon_w|work> Bloody Gnome, I had clicked out of xchat
207: [02:26:52] <simon_w|work> https://git.simon.geek.nz/91-carriage/silverstripe-2fa
208: [02:28:51] <simon_w|work> Hah, I actually tagged it as requiring 3.1.*. Finally learnt, I guess
209: [02:34:58] <JeremyRoundill> What's the best practice when it comes to ordering objects in a SS_List to be looped over in a template?
210: [02:35:32] <simon_w|work> Order them how you want them to display
211: [02:36:06] <JeremyRoundill> Sorry, I wasn't too clear. At which point in my code should I be ordering the List?
212: [02:37:01] <simon_w|work> Usually is done after filtering it, just to match the generated SQL. Doesn't matter for DataList though. ArrayList, you always want to do filtering first to reduce the size.
213: [02:37:51] <JeremyRoundill> Groovy
214: [02:42:55] <simon_w|work> UncleCheese, the feedback button on ss.org isn't retina!
215: [02:42:57] <simon_w|work> Ewwwwww
216: [02:43:02] * spronk2 has joined #silverstripe
217: [02:43:03] <UncleCheese> haha
218: [02:43:14] <UncleCheese> hmm
219: [02:43:19] <UncleCheese> i'll send this along
220: [02:43:34] * spronk2 quit (Client Quit)
221: [02:43:47] <simon_w|work> The "Ewwwww" is important
222: [02:45:46] <UncleCheese> simon_w|work got it
223: [02:45:52] <simon_w|work> Huzzah!
224: [02:48:36] <Tanger> Why is 2.4 templating so damn picky when calling functions with multiple arguments?
225: [02:48:58] <simon_w|work> Tanger, cause it's a bunch of regexes
226: [02:49:17] <simon_w|work> And not very pretty ones either
227: [02:49:20] <Tanger> So a function call with 2 arguments won't work inside a control loop, but it will outside? :S
228: [02:49:26] <Tanger> Heh
229: [02:49:46] <Tanger> How does 3.X's templating system differ?
230: [02:52:08] <simon_w|work> Tanger, it goes through a parser instead
231: [02:56:46] <simon_w|work> Olliepop, if you have any requests/bugs, either open an issue in gitlab (can sign in using your github account) or hit up simon_w in here
232: [02:58:22] * Kingy is now known as Kingy[a]
233: [03:00:12] * hailwood quit (Quit: Leaving.)
234: [03:01:04] * hailwood has joined #silverstripe
235: [03:04:48] <spronk> my desk is insane atm
236: [03:05:06] <spronk> 15" retina mbp, 24, 27, 24 dells, 15" mbp, 13" air
237: [03:05:06] <ss23> Why?
238: [03:05:18] <ss23> yo you're a hoarder.
239: [03:05:27] <spronk> lol
240: [03:05:28] <spronk> sif
241: [03:05:55] <spronk> rmbp running mavs, lucida grande >>>>>>> helvetica
242: [03:11:34] <simon_w|work> Only 6 screens? You can do better!
243: [03:12:48] <spronk> i probably can, too
244: [03:12:54] <spronk> i have a 20" dell usharp sitting on the floor
245: [03:14:59] <simon_w|work> Oh man, I'm looking at some of the screens the other devs here have. Being a senior dev is great.
246: [03:15:16] <spronk> every dev should have at least 1x27"
247: [03:15:17] <JeremyRoundill> I'm still considering getting a 4k or 144HZ
248: [03:15:17] <spronk> ideally 2x
249: [03:15:35] <spronk> the productivity increase from a smaller or single display is massive
250: [03:15:43] <spronk> ah, the hard part: naming.
251: [03:15:48] <simon_w|work> We've all got 3x24" (I think)
252: [03:15:59] <simon_w|work> But there's some really shit panels
253: [03:24:21] <spronk> ew
254: [03:25:31] <madmatt> Eh, I've tried 1, 2, 3, 4, 5 and 6 screen setups
255: [03:25:53] <madmatt> The *only* time I found >2 screen setups helpful was when I was hardcore trading
256: [03:26:01] <spronk> i find 3 is good
257: [03:26:04] <JeremyRoundill> So 2 is the trick?
258: [03:26:05] <spronk> IDE, browser, docs
259: [03:26:19] <madmatt> I found myself getting a headache moving around so much
260: [03:26:23] <madmatt> Good for neck muscles though :D
261: [03:26:24] <spronk> typically for me, browser, IDE, docs
262: [03:26:25] <JeremyRoundill> I've always enjoyed 2 screens, but I imagine 3 would be just too much.
263: [03:26:38] <madmatt> (Also to be fair, it was a crap ad-hoc setup, if I actually had a 6-way mount I'd probably be okay with it)
264: [03:26:54] <madmatt> Right now I just use 1 27"
265: [03:27:09] <ss23> Strap on a 4k resolution oculus
266: [03:27:15] <ss23> infinite screeeens
267: [03:27:22] <JeremyRoundill> Hahaha
268: [03:27:29] <madmatt> and piss off the rest of the office with your constant head turning :D
269: [03:27:39] <JeremyRoundill> That would be such a cool thing to see.
270: [03:27:57] <ss23> Hey if head turnning annoys people, they're going to have a lot of problems
271: [03:29:04] <JeremyRoundill> Maybe they're in neck braces and you make them jealous.
272: [03:29:32] <simon_w|work> browser, vim, terminal
273: [03:29:43] <spronk> true
274: [03:29:44] <spronk> terminal
275: [03:29:47] <spronk> terminal goes on browser screen for me
276: [03:29:51] <spronk> im / irc on docs
277: [03:30:06] <spronk> docs screen also has explorer/finder windows too, generally
278: [03:30:07] <JeremyRoundill> Pretty much the same for me, spronk.
279: [03:30:13] <simon_w|work> Docs is a little popup, and doesn't get used that much if separate from browser
280: [03:30:14] <spronk> my window management is then basically nil
281: [03:30:26] <simon_w|work> irc is in a separate workspace
282: [03:30:27] <spronk> its so good not having to use any kind of window occlusion
283: [03:30:46] <spronk> UGH
284: [03:30:49] <spronk> i need a new naming scheme
285: [03:30:53] <spronk> i've outgrown mine
286: [03:31:02] <JeremyRoundill> Yeah?
287: [03:31:32] <spronk> well
288: [03:31:33] <spronk> i haven't really
289: [03:31:38] <simon_w|work> spronk, porn stars?
290: [03:31:41] <spronk> i just don't want to use the other ones..
291: [03:31:42] <spronk> haha
292: [03:31:49] <spronk> i'm currently using griffin's biscuits
293: [03:32:02] <simon_w|work> Eh, good base then ;)
294: [03:32:16] <spronk> (i.e. afghan, cameo, chitchat, gingernut, krispie, macaroom, squiggles, wheaten)
295: [03:32:49] <mahfuz> simon: Could you please look at my code here - http://www.sspaste.com/paste/show/544f08c51ec4f -- My questions are also commented in there. Thanks.
296: [03:32:58] <spronk> but stuff like ... fruitli, and mallowpuff is a bit... bleh
297: [03:34:02] <spronk> i could switch to ice cream flavours
298: [03:34:24] <spronk> though they all have dumb names now
299: [03:35:58] * novaweb quit (Quit: Leaving)
300: [03:38:10] <simon_w|work> mahfuz, you'll need to generate the links in PHP and pass them to the template. Look at HTTP::setGetVar()
301: [03:38:41] <mahfuz> Thanks for the direction simon. I will look into it.
302: [03:40:25] * Olliepop quit (Ping timeout: 246 seconds)
303: [03:40:38] <spronk> o
304: [03:40:40] <spronk> radiohead songs
305: [03:42:01] <spronk> ooh
306: [03:42:02] <spronk> there's enough
307: [03:42:36] <spronk> creep, ironlung, highanddry, just, streetspirit, thebends, karma, lucky, nosurprises, knivesout, therethere, gotosleep, nude, houseofcards, reckoner
308: [03:42:41] <spronk> not bad, not bad
309: [03:44:39] <PapaBearNZ> spronk: Animal genera?
310: [03:44:47] <spronk> hmm
311: [03:44:49] <spronk> too generic :P
312: [03:45:07] <PapaBearNZ> http://en.wikipedia.org/wiki/Category:Animal_genera
313: [03:45:16] <PapaBearNZ> spronk: Pbbt!
314: [03:45:17] <spronk> also
315: [03:45:18] <spronk> too hard to spell
316: [03:45:19] <spronk> :p
317: [03:46:19] <mahfuz> simon sorry to bother you again. couldn't find any good documentation on HTTP::setGetVar() -- do you know any?
318: [03:49:20] * spekulatius quit (Quit: Leaving)
319: [03:51:42] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
320: [03:52:32] <simon_w|work> http://api.silverstripe.org/3.1/class-HTTP.html#_setGetVar
321: [03:54:09] * hailwood quit (Quit: Leaving.)
322: [03:56:12] <Colin[pi]> spronk irogue: remember yesty I was talking about that weird scary shit I've seen a few times when going to sleep?
323: [03:56:59] <spronk> ya
324: [03:57:09] <Colin[pi]> I did some googling last night
325: [03:57:18] <Colin[pi]> apparently it's more common than I thought
326: [03:57:25] <Colin[pi]> and it's actually called "sleep paralysis demons" lol
327: [03:57:44] <ss23> Just wait until you become properly lucid during it
328: [03:57:52] <Colin[pi]> oh dude, it freaks me the fuck out
329: [03:57:57] <Colin[pi]> it's like this: like, your body is paralysed and ALMOST asleep but not qu
330: [03:57:59] <Colin[pi]> oops
331: [03:58:06] <Colin[pi]> not quiet
332: [03:58:10] <ss23> Feeling people touching you, breathing on you, standing over you, but not being able to move
333: [03:58:21] <Colin[pi]> this is what it looks like: http://johnkennethmuir.files.wordpress.com/2011/09/insidiousbedroom.jpg
334: [03:58:46] <Colin[pi]> or like this: http://afriqtalk.files.wordpress.com/2013/08/old-hag-1024x682.jpg?w=560&h=372
335: [03:58:56] <Colin[pi]> last time it happened it scared the living shit out of me lol
336: [03:59:19] <Colin[pi]> you get it too ss23?
337: [03:59:47] <ss23> Nope, never ^.^
338: [03:59:59] <Colin[pi]> lol :P
339: [04:00:02] <mahfuz> simon: Thanks but don't know what to pass for these params @param String $varname @param String $varvalue when calling HTTP::setGetVar()
340: [04:00:06] <micmania1> Colin[pi]: and it's actually called "sleep paralysis demons" lol
341: [04:00:07] <micmania1> what?
342: [04:00:11] <Colin[pi]> yep
343: [04:00:13] * Phlunk3 quit (Quit: Leaving)
344: [04:00:15] <micmania1> what is it?
345: [04:00:30] <Colin[pi]> you're almost asleep, but you can see your room
346: [04:00:36] <Colin[pi]> but you can't move your body
347: [04:00:42] <Colin[pi]> it's related to REM sleep
348: [04:00:43] <ss23> http://en.wikipedia.org/wiki/Sleep_paralysis @ micmania1
349: [04:00:49] <Colin[pi]> and the fucking shadows in your room turn alive
350: [04:00:53] <Colin[pi]> it's scary as fuck lol
351: [04:01:09] * Zauberfisch quit (Ping timeout: 260 seconds)
352: [04:01:13] <Colin[pi]> because it feels so real
353: [04:01:17] <micmania1> I sometimes get it when I wake up, but don’t see moving shadows or owt haha
354: [04:01:17] <Colin[pi]> you feel awake
355: [04:01:19] <ss23> I had it a few times as a kid, but not since I've gotten older
356: [04:01:24] * Zauberfisch has joined #silverstripe
357: [04:01:38] <micmania1> Its always someone trying to wake me up and am like “nope”
358: [04:01:42] <micmania1> but nobody actually is.
359: [04:01:45] <Colin[pi]> at least I know what it's called now
360: [04:01:52] <Colin[pi]> i've only had it like 3 or 4 times
361: [04:02:04] <Colin[pi]> but each time I've been like AAHHHHHHH WTF IS THAT
362: [04:02:20] * willr quit (Quit: willr)
363: [04:02:41] <simon_w|work> mahfuz, sort as the name, new as the value
364: [04:02:44] <micmania1> so during this state, are you actually paralysed or is that part of the ‘dream’?
365: [04:02:54] <Colin[pi]> micmania1: actually paralysed
366: [04:02:59] <micmania1> :|
367: [04:03:07] <mahfuz> Thanks simon
368: [04:03:07] <Colin[pi]> so you might want to move but your brain is like "nah bud"
369: [04:03:23] <micmania1> yeah, I’ve had that a few times.
370: [04:03:30] <micmania1> But i’m still always asleep
371: [04:03:33] <Colin[pi]> micmania1: then you wake up and the things disappear
372: [04:03:37] <micmania1> even though i think im awake.
373: [04:04:14] <Colin[pi]> yeah it's really weird
374: [04:04:34] * novaweb has joined #silverstripe
375: [04:04:42] <simon_w|work> Weirdos
376: [04:04:57] <micmania1> “RISP episodes can last for up to an hour or longer” :|
377: [04:05:44] <Colin[pi]> yeah I have the ISP ones
378: [04:05:51] <Colin[pi]> just a minute or two, luckily
379: [04:12:13] * AdriAn_s has joined #silverstripe
380: [04:15:02] * novaweb quit (Quit: Leaving)
381: [04:17:39] <simon_w|work> This USB fridge could do with a better fridge system
382: [04:17:44] <simon_w|work> Barely does anything
383: [04:18:05] <Tanger> Do Javascript IF statements pass if they eveluate to -1?
384: [04:18:10] * PapaBearNZ has left #silverstripe
385: [04:18:57] <simon_w|work> yes
386: [04:19:06] <Tanger> Cool
387: [04:19:10] <Tanger> Thanks
388: [04:19:10] <AdriAn_s> im using the better buttons module and trying to send an email from a custom button within the CMS. I create an email object they go to use setTemplate() but it gives me an error saying 'None of these templates can be found in theme' I have flushed and dev built. Do email templates have to be in a certain location? As I have other templates that wo
389: [04:19:10] <AdriAn_s> rk fine.
390: [04:19:24] <simon_w|work> AdriAn_s, they can't be in a theme
391: [04:19:36] <AdriAn_s> where do I put them then?
392: [04:19:44] <simon_w|work> mysite/templates is fairly common
393: [04:20:13] <AdriAn_s> oh ok. il try that. thanks
394: [04:20:27] <adrexia> I think they might need to be in multiple places theme + mysite ?
395: [04:20:34] <adrexia> There was some weird behaviour around that
396: [04:20:42] <adrexia> but perhaps it was just the newslestter module?
397: [04:20:47] <simon_w|work> adrexia, so long as there's no naming conflict, mysite should be fine
398: [04:21:09] <adrexia> yeah, should be.
399: [04:21:58] <adrexia> I have a vague memory of email templates being a horribly painful experience
400: [04:22:13] <adrexia> since blacked out the specifics
401: [04:23:08] <simon_w|work> Well, they do involve html emails, so I'm not surprised
402: [04:25:06] <AdriAn_s> How come emails I send from dataObjects work fine if they are in the template?
403: [04:25:34] * steven__ quit (Ping timeout: 246 seconds)
404: [04:25:47] <Colin[pi]> adrexia: email templates... welcome to 1999!
405: [04:27:13] <AdriAn_s> I get this now: Error at \framework\core\Object.php line 761: Uncaught Exception: Object->__call(): the method 'fortemplate' does not exist on 'UserInstaller'
406: [04:27:17] <adrexia> try not to look for a reason. It'll just drive you mad
407: [04:27:24] <AdriAn_s> UserInstaller is my DataObject
408: [04:27:27] <AdriAn_s> haha
409: [04:28:07] <adrexia> are you trying to render UserInstaller?
410: [04:28:54] <AdriAn_s> $email_to_recipient = Email::create($sender_email, $recipient_email, $email_subject); $email_to_recipient->setTemplate('ClaimInstallerProfileEmail'); $email_to_recipient->populateTemplate($email_template_data); $email_to_recipient->send();
411: [04:29:14] <AdriAn_s> the $email_to_recipient->setTemplate('ClaimInstallerProfileEmail') is where is borks
412: [04:29:39] <adrexia> what does 'ClaimInstallerProfileEmail' tempalte look like?
413: [04:30:18] <adrexia> does it contain something like $UserInstaller ?
414: [04:30:27] <AdriAn_s> just html with some variables
415: [04:30:33] * Stomach quit (Ping timeout: 260 seconds)
416: [04:30:37] <AdriAn_s> and it does use properties of UserInstall
417: [04:30:42] <AdriAn_s> $Installer.AccessCode
418: [04:31:08] <adrexia> what is $Installer?
419: [04:31:33] <AdriAn_s> $installer = $this . $this being the Dataobject
420: [04:31:38] <adrexia> ahh
421: [04:31:52] <AdriAn_s> could be the issue
422: [04:31:54] <adrexia> AccessCode is just a db field?
423: [04:31:58] <AdriAn_s> yeah
424: [04:32:06] * codetoday has joined #silverstripe
425: [04:33:41] <adrexia> if you remove all mentions of $Installer from the template, does the error still happen?
426: [04:34:23] <adrexia> you should already have access to $this in the templates, by the way. So $AccessCode might work ?
427: [04:34:25] <AdriAn_s> just trying that now
428: [04:34:31] <codetoday> If I want to let a user add files, how is this achieved in the model?
429: [04:34:53] <adrexia> oh wait, maybe not
430: [04:35:25] * Shrike_Finland has joined #silverstripe
431: [04:36:18] * peter_w has joined #silverstripe
432: [04:39:10] <peter_w> Hey there everyone. This is probably crazy easy but I want to override what TwitterService is being used, so that it uses my custom class.....the current configuration is https://github.com/tractorcow/silverstripe-twitter/blob/3.1/_config/twitter.yml
433: [04:39:27] <peter_w> what do I need to add to my config.yml file
434: [04:39:56] <AdriAn_s> I think that may have cracked it. Had to change $Instaler.AccessCode to $AccessCode and it appears to work. just gota test and see if it sends the emails :)
435: [04:40:21] <peter_w> I have tried http://pastie.org/9680013 but I really dont understand this injector/service stuff just yet
436: [04:40:52] <adrexia> AdriAn_s, sweet!
437: [04:41:10] <simon_w|work> peter_w, After: '*#twitterconfig' should do it
438: [04:41:18] <adrexia> I wasn't entirely sure since you are doing this: $email_to_recipient->setTemplate
439: [04:42:07] <adrexia> right, home time.
440: [04:42:34] <Colin[pi]> cyas adrexia
441: [04:44:26] <peter_w> simon_w|work: I was so close. Thanks for that.
442: [04:44:40] <AdriAn_s> that worked. but I have to pass $AccessCode to the tempalte and not just call it straight from the html ti self
443: [04:44:43] <AdriAn_s> Thanks guys!!!
444: [04:44:57] <AdriAn_s> you deserve to go home adrexia
445: [04:46:54] * willr has joined #silverstripe
446: [04:47:41] * peter_w quit (Quit: Page closed)
447: [04:48:20] * simon_w|work has to wait before going home
448: [04:50:39] * cloph has joined #silverstripe
449: [04:50:39] * cloph_away quit (Ping timeout: 245 seconds)
450: [04:57:40] * willr is at home :D
451: [04:59:14] * Colin[pi] is also at home
452: [04:59:17] <Colin[pi]> doot doot
453: [04:59:24] <Colin[pi]> fast commute for me :D
454: [05:02:55] <simon_w|work> Is pizza night though!
455: [05:02:57] <simon_w|work> Mmm, pizza
456: [05:03:07] <simon_w|work> Order it to show up just as I tend to get home :)
457: [05:08:16] <markcl> How do you do CustomSiteConfig values on YAML fixtures?
458: [05:09:10] * r_hector has joined #silverstripe
459: [05:13:24] * veb has joined #silverstripe
460: [05:29:25] * Shrike_Finland quit (Quit: Leaving.)
461: [05:37:10] * Shrike_Finland has joined #silverstripe
462: [05:37:15] <willr> markcl how’d you mean? If you have an extension then you can just refer to those values as you would if they were on SiteConfig itself
463: [05:47:00] <spronk> hmm
464: [05:47:08] <spronk> does everyone use homebrew now? or are macports still popular?
465: [05:48:32] <simon_w|work> I don't think ports was ever that popular
466: [05:48:39] <simon_w|work> brew is much nicer to use
467: [05:49:56] * codetoday quit (Remote host closed the connection)
468: [05:50:56] <spronk> mm
469: [05:51:02] <spronk> now i have to figure out whether i can copy xcode
470: [05:51:03] <spronk> from my old machine
471: [05:51:05] <spronk> to my new machine..
472: [05:51:13] <spronk> fucking app store distributions
473: [05:52:11] <simon_w|work> Should be able to. Isn't an installer app any more
474: [05:52:15] <simon_w|work> That was horrible
475: [05:52:30] <simon_w|work> Had to keep the installer app around so you could get delta upgrades
476: [05:52:43] <spronk> ugh
477: [05:52:44] <spronk> mm
478: [05:52:49] <spronk> actually
479: [05:52:58] <spronk> maybe i downloaded the package from developer.apple this time around
480: [05:53:01] * spronk fishes through his server
481: [05:53:16] <spronk> xcode4 :(
482: [05:53:31] <simon_w|work> If it's just for brew, the command line tools tend to be enough
483: [05:54:34] <simon_w|work> https://developer.apple.com/downloads/index.action
484: [05:54:38] <simon_w|work> Only 100 MB
485: [05:54:48] <spronk> well, i want full xcode anyway
486: [05:55:07] <spronk> maybe ill download cli tools for now... getting perilously close to my cap
487: [05:55:08] <simon_w|work> Ooh, the DMG there is a lot smaller than the app store version
488: [05:55:15] <simon_w|work> I should start doing it that way
489: [05:55:37] <irogue> [18:55] <spronk> maybe ill download cli tools for now... getting perilously close to my cap
490: [05:55:40] <irogue> cap!?!?!
491: [05:55:43] <irogue> wtf is this shit
492: [05:56:20] <spronk> i know
493: [05:56:32] * spronk is signing up with snap unlim when move back into house
494: [05:57:00] * simon_w|work is going to sign up for decent internet once he...
495: [05:57:03] <simon_w|work> Oh wait, Australia
496: [05:57:09] <spronk> lawl
497: [05:59:08] * Shrike_Finland quit (Quit: Leaving.)
498: [05:59:27] <spronk> hmm
499: [05:59:30] <spronk> 1,952 homebrewsz
500: [05:59:34] <spronk> vs
501: [05:59:36] <spronk> 21k macports
502: [05:59:37] <spronk> :/
503: [06:04:26] * vebbb has joined #silverstripe
504: [06:04:47] * veb quit (Read error: Connection reset by peer)
505: [06:05:31] * Colin[pi] pats simon_w|work on the back and knows that feel
506: [06:06:29] <willr> spronk lol cap.
507: [06:06:47] <spronk> :<
508: [06:06:50] <spronk> 150gb..
509: [06:07:13] <spronk> not toooo bad considering i pay $99 for mobile + adsl all up
510: [06:07:17] <spronk> actually
511: [06:07:18] <spronk> $94
512: [06:07:23] <willr> That’s a lot of git clones.
513: [06:07:37] <spronk> a lot of streaming tv lol
514: [06:07:46] <spronk> i mean
515: [06:07:51] <spronk> a lot of linux isos.
516: [06:08:45] * jedateach quit (Ping timeout: 272 seconds)
517: [06:08:54] <spronk> simon_w|work, what makes you prefer brew?
518: [06:09:25] <simon_w|work> spronk, it's a lot cleaner, the packages tend to be up to date, tend to get more pre-compiled things
519: [06:09:51] <spronk> hmm
520: [06:11:27] <willr> +1 brew
521: [06:11:35] <spronk> don't find missing packages a problem?
522: [06:11:55] <willr> haven’t found one yet
523: [06:12:22] <willr> Teach you for living on the edge.
524: [06:12:36] <spronk> haha :D
525: [06:20:51] * jordanmk quit ()
526: [06:22:04] <simon_w|work> spronk, I've actually had more missing packages with ports than brew
527: [06:22:23] <spronk> wow
528: [06:22:28] <simon_w|work> brew is things people actively contribute and use, ports just seems to be a craptonne of libraries
529: [06:22:42] <spronk> mm
530: [06:25:13] * Stomach has joined #silverstripe
531: [06:26:19] <spronk> bleh
532: [06:26:23] <spronk> wtf do people use for ntfs now
533: [06:26:27] <spronk> -3g on brew?
534: [06:26:41] <spronk> suddenly realising it's been a LONG time since i set up a mac o_O
535: [06:28:11] <spronk> ohw ow, that doesnt work now because kexts have to be signed :|
536: [06:31:38] <simon_w|work> There's the read support built in
537: [06:33:00] <simon_w|work> And hidden readwrite: http://osxdaily.com/2013/10/02/enable-ntfs-write-support-mac-os-x/
538: [06:33:33] <spronk> iinteresting
539: [06:36:45] <simon_w|work> Pizza ordered, which means it's home time!
540: [06:37:20] * vebbb is now known as veb
541: [06:37:20] * veb quit (Changing host)
542: [06:37:21] * veb has joined #silverstripe
543: [06:38:19] * veb has joined #silverstripe
544: [06:45:07] * Shrike_Finland has joined #silverstripe
545: [06:54:57] * Adesso has joined #silverstripe
546: [06:56:21] * UncleCheese has joined #silverstripe
547: [06:58:36] * willr quit (Quit: willr)
548: [07:03:37] * r_hector quit (Quit: Leaving.)
549: [07:10:07] * willr has joined #silverstripe
550: [07:10:28] * Stomach quit (Quit: zzz)
551: [07:12:42] * wmk has joined #silverstripe
552: [07:14:16] * mahfuz quit (Ping timeout: 246 seconds)
553: [07:57:04] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
554: [07:59:21] <Tanger> Hey guys, if I'm using renderWith to specify which template to render an action with, is there a way to specify that it should use the Page.ss AND Layout/Page.ss templates?
555: [08:00:27] <simon_w> Tanger, just passing in Page will do that
556: [08:01:12] <Tanger> so using renderWith('Page')? I've been using $this->renderWith('mytemplatename'), but it does not pull in the upper Page with it so far
557: [08:02:03] <simon_w> if you want different ones, pass an array
558: [08:02:33] <Tanger> renderWith(array('Page', 'mytemplate')) then?
559: [08:04:52] * Adesso21 has joined #silverstripe
560: [08:05:22] <simon_w> other way around
561: [08:05:42] * Adesso21 truies to kick himself
562: [08:05:45] <Adesso21> :(
563: [08:06:13] * NvdB has joined #silverstripe
564: [08:06:27] <Adesso21> simon_w , can you please kick Adesso
565: [08:06:48] * Adesso quit (Ping timeout: 250 seconds)
566: [08:06:50] <simon_w> Adesso21, just ghost it
567: [08:06:54] <Tanger> simon_w: I thought that just gave it a list of templates to choose from. So if the first falls through it will render the next. It doesn't seem to put 'mytemplate' inside 'Page' as $Layout
568: [08:06:55] <simon_w> or wait for that
569: [08:07:01] * Adesso21 is now known as Adesso
570: [08:07:18] <simon_w> Tanger, yes, and it'll look for a global one, and then a layout one
571: [08:08:32] * Adesso learns the ghost cmd
572: [08:09:33] <Tanger> Haha, magic! I coulda sworn it didn't work last time I tried it :P
573: [08:09:36] <Tanger> Thanks simon_w
574: [08:12:18] <simon_w> Tanger, separate arguments won't work, has to be an array
575: [08:12:43] * markcl has left #silverstripe
576: [08:12:50] * arnhoe has joined #silverstripe
577: [08:12:53] <wmk> hey Adesso
578: [08:13:29] * caamic30 has joined #silverstripe
579: [08:14:33] <caamic30> Hello SS
580: [08:15:20] <caamic30> how do I determine the name of the model admin in a dataobject . Let’s say I have product dataobject assigned to two different modeladmin
581: [08:15:23] <wmk> hey caamic30
582: [08:15:40] <wmk> the DO doesn't know about the model admin
583: [08:15:40] <caamic30> hi wmk :)
584: [08:15:51] <wmk> it's just an admin interface
585: [08:16:59] <caamic30> hhmm, then my only way which is a bit dirty is to view the url right?
586: [08:17:00] <wmk> if you have an product page (page type) which has product DOs and a gridfield for managing this then you need a many_many if you want products on more pages
587: [08:17:27] <wmk> displaying in frontend (throug a controller / page) !== model admin
588: [08:17:47] <wmk> caamic30, which only way?
589: [08:18:18] <caamic30> wmk: by checking the url, model admin has unique url_segment
590: [08:18:42] <Adesso> Hi wmk ;)
591: [08:18:49] * willr quit (Quit: willr)
592: [08:19:02] <wmk> caamic30, url_segment is just the segment, not the whole url
593: [08:19:38] <wmk> url_segment is frontend, modeladmin is backend.
594: [08:19:44] <wmk> so - what?
595: [08:20:14] <caamic30> wmk: yep, using a string search to check if the url_segment is in the whole url
596: [08:20:52] <wmk> why in the full url?
597: [08:26:32] <NvdB> Hello ss
598: [08:26:58] <NvdB> Is there a way to split a loop in two. So I get two lists with the same number of dataobjects
599: [08:28:04] <caamic30> wmk: do you know any other option?
600: [08:28:14] <caamic30> other than by full url?
601: [08:28:19] <simon_w> NvdB, $count = $list->count(); $firstHalf = $list->limit($count/2); $secondHalf = $list->limit($count, $count/2+1);
602: [08:28:41] <wmk> caamic30, how do you display them in front? with an own controller? or with some kind of product page?
603: [08:28:58] * gavro has joined #silverstripe
604: [08:29:47] <caamic30> wmk: no, the product DO is just my example
605: [08:30:13] <wmk> and you're really talking about a ModelAdmin ???
606: [08:30:26] * Robke has joined #silverstripe
607: [08:30:34] <Robke> morning
608: [08:30:35] <caamic30> wmk: yes ModelAdmin is an admin interface
609: [08:30:50] <wmk> hi Robke
610: [08:31:19] <wmk> caamic30, i still don't get why you want to check the whole url...
611: [08:31:38] <caamic30> wmk: when you say front end, did you mean how you display the DO to the public site?
612: [08:31:44] <wmk> yup
613: [08:32:07] <wmk> and ModelAdmin is an own menu item at the left side in backend. See http://api.silverstripe.org/3.1/class-ModelAdmin.html
614: [08:34:01] <NvdB> simon_w: Hi Simon, thanks! That's exactly what I was looking for
615: [08:34:30] <caamic30> oh sorry, my question is not related to how I display it in the front-end because it’s completely relating to admin
616: [08:35:05] <wmk> well, url segment is normally used for frontend url
617: [08:35:15] <caamic30> let’s say I have 2 modeladmin containing product dataobject
618: [08:35:40] <wmk> why more than one admin for a model?
619: [08:36:10] <caamic30> if I’m in the first modeladmin , from the product DA how do I check what modeladmin I am in
620: [08:36:45] <caamic30> because I have conditions that different records will display on different modeladmin
621: [08:37:28] <wmk> is it possible that i define a record at admin A and it has to be displayed at admin B ?
622: [08:38:05] <wmk> if not: subclass your DO. attach one DO to admin A and the subclass to admin B
623: [08:38:29] <caamic30> wmk: you got it
624: [08:38:50] <wmk> ^^^^ possible or not?
625: [08:39:30] <caamic30> much better way
626: [08:39:48] <caamic30> yeah possible, I’ve done it before but forgot the code ;)
627: [08:41:33] * StefanLehmann quit (Read error: Connection reset by peer)
628: [08:43:39] * StefanLehmann has joined #silverstripe
629: [08:46:49] * jeroenem has joined #silverstripe
630: [08:49:23] * Stomach has joined #silverstripe
631: [08:55:01] * Eliseth has joined #silverstripe
632: [08:57:19] * stnvh has joined #silverstripe
633: [08:59:22] * Audlex has joined #silverstripe
634: [09:02:37] * UncleCheese has joined #silverstripe
635: [09:06:41] * Frans_Amsterdam has joined #silverstripe
636: [09:07:20] * Frans_Amsterdam quit (Client Quit)
637: [09:08:18] * gavro quit (Remote host closed the connection)
638: [09:09:10] * Frans_Amsterdam has joined #silverstripe
639: [09:10:16] * veb quit (Quit: preprocessor-irc-cli)
640: [09:12:30] * Stomach quit (Quit: zzz)
641: [09:13:02] <Frans_Amsterdam> Hi all, I'm just curious about the warning that I get when installing SS on MAMP. It displays the that I need to enable mod_rewrite. But all seems to work fine, still I like to know why it displays. Allready thanks for reading.
642: [09:13:51] <Audlex> I am extending ModelAdmin and add a GridField, but I am drawing a complete blank on how
643: [09:14:08] <Audlex> to add a TextField above the GridField
644: [09:17:20] <simon_w> Frans_Amsterdam, do you have index.php in your URL?
645: [09:17:50] <simon_w> Audlex, is this inside getCMSFields() in a dataobject? or the edit form in the ModelAdmin itself?
646: [09:19:15] * Stomach has joined #silverstripe
647: [09:20:17] <Audlex> inside the edit form itself
648: [09:23:19] * gavro has joined #silverstripe
649: [09:24:26] <Frans_Amsterdam> simon_w Yes I have
650: [09:24:45] <wmk> Frans_Amsterdam, then mod_rewrite is not enabled
651: [09:24:52] <simon_w> Frans_Amsterdam, then mod_rewrite isn't working, so you get stuck with having index.php in your URL
652: [09:24:57] <wmk> though it works it's not pretty
653: [09:25:26] <wmk> Audlex, can you paste some code on sspaste.org pls?
654: [09:26:34] * Tanger quit (Quit: Tanger)
655: [09:28:06] * Stomach quit (Quit: zzz)
656: [09:29:31] * Stomach has joined #silverstripe
657: [09:31:46] * g4b0_ has joined #silverstripe
658: [09:33:01] * Stomach_ has joined #silverstripe
659: [09:33:45] * NvdB quit (Quit: Page closed)
660: [09:35:40] * Stomach quit (Ping timeout: 255 seconds)
661: [09:39:21] * g4b0_ quit (Ping timeout: 255 seconds)
662: [09:46:32] * Stomach_ quit (Quit: zzz)
663: [09:52:41] * caamic30 quit (Quit: caamic30)
664: [09:54:11] * futureal has joined #silverstripe
665: [09:54:17] * futureal is now known as futurealism
666: [09:54:59] <futurealism> good morning, I know it's harsh to ask for support on your very first visit to an IRC channel, but I'm going to blunt and do it anyway...
667: [09:55:26] * Pyfknusrsk has joined #silverstripe
668: [09:55:51] <Eliseth> =)
669: [09:55:53] <futurealism> after upgrade from 2.3.x to latest 3.2.6, /dev/build does not seem to work: it hangs somewhere after 60ish lines, does not give feedback and doesnt commit to the database
670: [09:56:02] <Pyfknusrsk> YOU KNOW THAT REALLY URGENT THING I SENT YOU AT 3:30PM YESTERDAY? CAN YOU RING ME PLEASE.
671: [09:56:04] <Pyfknusrsk> fuckoff.
672: [09:56:16] <Pyfknusrsk> goddamn clien... users.
673: [09:56:51] <Eliseth> futurealism What does error log say?
674: [09:56:52] <Pyfknusrsk> futurealism: everything is not live. It notifies you of changes, caches the actions, and does them all at once at the end.
675: [09:57:02] <Pyfknusrsk> also, from 2.3 to 3.2
676: [09:57:08] <Pyfknusrsk> that's... a hell of a jump.
677: [09:57:14] <futurealism> Elisabeth, even with isDev=1 it does not give any
678: [09:57:19] <futurealism> I should 2.3.newest first?
679: [09:57:55] <Pyfknusrsk> no
680: [09:58:14] <Pyfknusrsk> but you can't just dump a 2.3 site into a 3.2 install and expect it to work.
681: [09:58:19] <Pyfknusrsk> also
682: [09:58:20] <Pyfknusrsk> [22:54:59] <futurealism> good morning, I know it's harsh to ask for support on your very first visit to an IRC channel, but I'm going to blunt and do it anyway...
683: [09:58:30] <Pyfknusrsk> that is exactly the opposite of what you think.
684: [09:58:36] <Pyfknusrsk> it's the entire point of this channel.
685: [09:58:43] <Pyfknusrsk> ask all the things.
686: [09:58:45] <Pyfknusrsk> :)
687: [09:58:51] <futurealism> haha, ok, thanks
688: [09:59:07] <Pyfknusrsk> a good idea would be to read the changelogs
689: [09:59:37] <futurealism> well, I did every step in the changelog
690: [09:59:44] <futurealism> like change the <% control etc etc
691: [09:59:44] <Pyfknusrsk> if you've done the normal upgrade thing (replace cms and sapphire) then you've got much more to do.
692: [09:59:59] <Pyfknusrsk> 2.3 and 3.2 is a hell of a jump.
693: [10:00:29] <Pyfknusrsk> make sure display_errors is on
694: [10:00:36] <wmk> futurealism, really 3.2 ?? it's not released yet
695: [10:00:38] <futurealism> would you recommend any steps inbetween
696: [10:00:44] <Pyfknusrsk> also, what wmk said.
697: [10:00:54] <futurealism> I took latest stable from silverstripe.org
698: [10:00:59] <wmk> well, 2.3 to 2.4 was not too much but a bit.
699: [10:01:00] <Pyfknusrsk> I think you mean 3.1.6
700: [10:01:04] <futurealism> oh yes
701: [10:01:05] <wmk> ^^^^
702: [10:01:06] <futurealism> that.
703: [10:01:15] <Pyfknusrsk> wmk: yes, 2.3 to 2.4 is a good start
704: [10:01:23] <Pyfknusrsk> then 2.4 -> 3.0
705: [10:01:25] <Pyfknusrsk> not so bad
706: [10:01:30] <Pyfknusrsk> but needs some serious changes.
707: [10:01:40] <wmk> 2.3 -> 2.4 by hand, 2.4 -> 3.1 with upgrade script that does most of the changes
708: [10:01:41] <Pyfknusrsk> then 3.0 -> 3.1, not so bad.
709: [10:01:52] <Pyfknusrsk> there's an upgrade script?
710: [10:01:52] <wmk> in two steps, 2.4 -> 3.0 -> 3.1
711: [10:02:20] <Pyfknusrsk> it's possible to go 2.3 -> 3.1, but you really gotta know what you're doing.
712: [10:02:28] <Pyfknusrsk> in terms of code, api changes, etc.
713: [10:02:43] <Pyfknusrsk> we're talking about 6 years of difference here futurealism
714: [10:02:47] <wmk> futurealism, do you have umlauts or other special chars in your db?
715: [10:02:58] <wmk> or just running an english site?
716: [10:03:10] <wmk> Pyfknusrsk, futurealism https://github.com/sunnysideup/silverstripe-upgrade_silverstripe
717: [10:03:27] <Pyfknusrsk> oh, and taht actually works wmk ?
718: [10:03:30] <wmk> the upgrade script is a simple search replace that does a lot for you. but you'll have to go through manually
719: [10:03:31] <futurealism> wmk: dutch site
720: [10:03:40] <futurealism> but I will do the 2.3 -> 2.4 -> 3.0 -> latest then
721: [10:03:48] <futurealism> and will report back here when I run into anything :)
722: [10:03:56] <Pyfknusrsk> I mean, I don't mean to sound rude, but it will - nicholaas' code & ideas are usually... quite whimsical.
723: [10:04:04] <wmk> well, from 3.0 -> 3.1 please switch to composer
724: [10:04:13] <wmk> and of course use a versioning system like git
725: [10:04:21] <Pyfknusrsk> a better idea is probably to just use composer, then rebuild the site
726: [10:04:32] <Pyfknusrsk> the templates are easy to update, the php code not as easy.
727: [10:04:40] <Pyfknusrsk> so just redo it :P
728: [10:04:54] <wmk> futurealism, from 2.3 to 2.4 the db encoding changed. if you have umlauts or somethign like that it's hard to get the old db content back
729: [10:05:23] <Pyfknusrsk> I think there was an update task for that in 2.4 maybe? idk.
730: [10:05:29] <Pyfknusrsk> stupid english speaking country :/
731: [10:05:31] <wmk> futurealism, just to get you warned. i solved it somehow, there's a post in the forum about it and afaik even a module or script somewhere to solve it
732: [10:06:07] <wmk> Pyfknusrsk, as we discussed in linz... i18n is everything ;)
733: [10:06:17] <wmk> though i love making german only sites
734: [10:06:25] <futurealism> I have the i18n thingy in _config.php if that helps
735: [10:06:53] <wmk> futurealism, it's about database encoding that changed from 2.3 to 2.4
736: [10:07:20] <wmk> just if something is borked up afterwards. no problem. you'll have to modify the dump...
737: [10:09:25] * spronkHD has joined #silverstripe
738: [10:09:46] <Pyfknusrsk> wmk: I know
739: [10:10:07] <Pyfknusrsk> but... stupid englinash seeching cuntry
740: [10:10:16] <Pyfknusrsk> speeching*
741: [10:10:17] <Pyfknusrsk> :P
742: [10:10:32] <futurealism> oh it seems the same problem is already in 2.3 -> 2.4
743: [10:10:41] <futurealism> but luckily this time it is friendly enough to show a hint as to why
744: [10:10:42] <Pyfknusrsk> probably db encoding then
745: [10:10:48] <futurealism> Sorry, you can't use ?isDev=1 until your Member and Group tables database are available. Perhaps your database connection is failing?
746: [10:10:49] * Pyfknusrsk shrugs
747: [10:11:00] <futurealism> which is exactly what I expected
748: [10:11:37] <Pyfknusrsk> yeah, db issues!
749: [10:11:39] <wmk> futurealism, what step are you currently on? 2.3 -> 2.4 ?
750: [10:11:42] <futurealism> yes
751: [10:11:43] <simon_w> http://devopsreactions.tumblr.com/post/101162763174/in-the-shadow-of-the-senior-developer
752: [10:11:45] <Pyfknusrsk> 3.1 gives that issues too I thought, but I guess not.
753: [10:11:49] <simon_w> Being a senior dev is great ;)
754: [10:12:07] <wmk> simon_w, you don't look that old
755: [10:12:09] <Pyfknusrsk> haha, yes simon_w :P
756: [10:12:15] <simon_w> wmk, I'm not :p
757: [10:12:22] <Pyfknusrsk> the worst thing though is being a senior dev when you're really only intermediate
758: [10:12:30] <Pyfknusrsk> with no senior or peer
759: [10:13:13] <simon_w> Pyfknusrsk, that sounds bad
760: [10:13:36] <wmk> without beer? omg!
761: [10:14:26] * spronk2 has joined #silverstripe
762: [10:18:26] <Pyfknusrsk> simon_w: yeah, that was my last job. I was the senior.
763: [10:18:43] <Pyfknusrsk> well really I was the only dev when I started.
764: [10:18:50] <Pyfknusrsk> Just a designer/frontender and me.
765: [10:19:03] <Pyfknusrsk> as the team grew, I was 'the php guy', etc.
766: [10:19:48] <Pyfknusrsk> It was ok though, I just wished I had someone to learn from most of the time.
767: [10:20:03] <Pyfknusrsk> but ultimately it just mean more of what I'd always done: research and teach yourself.
768: [10:20:55] <Pyfknusrsk> wmk: yeah. No zipfer here :(
769: [10:21:08] <wmk> better without
770: [10:21:15] <Pyfknusrsk> wmk: ??
771: [10:21:41] <wmk> well, Stiegl, Schremser or Augistiner are way better
772: [10:24:36] <simon_w> Fanta is best
773: [10:26:20] * jcwacky quit (Quit: jcwacky)
774: [10:27:25] <wmk> Fanta4 ??
775: [10:27:51] <simon_w> http://en.wikipedia.org/wiki/Fanta
776: [10:28:27] <wmk> http://en.wikipedia.org/wiki/Die_Fantastischen_Vier
777: [10:28:58] <simon_w> Fanta still sounds best
778: [10:29:06] <wmk> seriously: clear water from the mountains
779: [10:29:40] <simon_w> Eh, I get that by turning on the tap
780: [10:29:49] <simon_w> Plus, has fluorine in it!
781: [10:40:23] * kinglozzer has joined #silverstripe
782: [10:41:57] * micmania1 quit (Quit: micmania1)
783: [10:44:42] <Pyfknusrsk> wmk: hmm. I found zipfer quite tasty!
784: [10:44:55] <Pyfknusrsk> maybe I'm just ... not spoilt for choice :P
785: [10:45:08] <Pyfknusrsk> I mean... here it's fosters, or maybe peroni.
786: [10:45:12] <Pyfknusrsk> :<
787: [10:45:19] <Pyfknusrsk> and that's about the only lager you find D:
788: [10:47:21] <wmk> no umlauts in yml lists with strings???
789: [10:48:04] <wmk> nope, missed the - in front of the list...
790: [10:48:57] <wmk> Pyfknusrsk, next time...
791: [10:49:27] <Pyfknusrsk> wmk: but yes, Augistiner so so good :D
792: [10:51:44] <wmk> i prefer Augustiner over Zipfer
793: [10:52:33] * UncleCheese quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
794: [10:58:21] <futurealism> for those interested before, wmk, Pyfknusrsk, I'm not at 2.4.latest and going for 3.0 now
795: [10:58:26] <futurealism> not=now
796: [10:58:34] * spronkHD has left #silverstripe
797: [10:58:36] <wmk> 2.4 lastest sounds good.
798: [10:58:44] <wmk> you can use the updatescript for 3.0 / 3.1 now
799: [10:58:50] <wmk> saves you a lot of manual work
800: [10:59:24] * spronkHD has joined #silverstripe
801: [11:00:03] <Pyfknusrsk> wmk: I probably do too, but I didn't get the luxuary of direct comparison :P
802: [11:00:15] <wmk> ;)
803: [11:00:29] <wmk> i want to render an array with a template in a loop
804: [11:00:45] <wmk> ArrayData or ArrayList?
805: [11:01:01] <Pyfknusrsk> The first try of zipfer at the skygarden was pretty 'nice but average', but that afternoon at the imbis... yum.
806: [11:01:06] <wmk> and can i use $Me inside the template? e.g. <% loop $Me %>
807: [11:01:13] <Pyfknusrsk> wmk: araylist
808: [11:01:18] <Pyfknusrsk> eys
809: [11:01:19] <Pyfknusrsk> yes*
810: [11:01:55] <Pyfknusrsk> unless the imbis had something that wasn't zipfer in a zipfer glass.
811: [11:01:56] <Pyfknusrsk> idk.
812: [11:02:27] <wmk> dunno
813: [11:02:32] <Pyfknusrsk> it's a smogasboard of beers when I go to that part of the world. I want to try them all! But I cannot :(
814: [11:02:55] <Pyfknusrsk> I also cannot get this fucking query going :(
815: [11:02:59] <wmk> well, try the best of them
816: [11:03:03] <Pyfknusrsk> between two dates
817: [11:03:39] <wmk> YEAH!!! got it working
818: [11:04:10] <wmk> grab an array of lists from yml, calculate something in a shortcode and print it
819: [11:04:37] <wmk> calculation done with a callback in an array_reduce
820: [11:04:41] * spronkHD quit (Quit: spronkHD)
821: [11:05:14] * spronkHD has joined #silverstripe
822: [11:06:09] * gavro quit (Remote host closed the connection)
823: [11:06:17] <spronkHD> hmm
824: [11:06:21] <spronkHD> irc clients on mac....
825: [11:06:29] * gavro has joined #silverstripe
826: [11:08:12] <futurealism> got over-excited and took leap from 2.4 to 3.1.6 but it hang again on the /dev/build, so will take 3.0 inbetween step I guess
827: [11:08:16] <simon_w> spronkHD, well, you've already got textual
828: [11:08:21] <spronkHD> yeahhh
829: [11:08:31] <spronkHD> its not bad
830: [11:08:34] <simon_w> Don't like the Yosemite nature of it?
831: [11:08:37] <spronkHD> looks weiiird in yosemite
832: [11:08:57] <spronkHD> but then, i guess it looks better than colloquy does..
833: [11:09:03] <spronkHD> colloquy is broken in yosemite to
834: [11:09:04] <spronkHD> o
835: [11:09:04] <simon_w> No idea :p
836: [11:09:22] <simon_w> If the transparency's the main problem, you can turn that off
837: [11:09:38] <spronkHD> systemwide? yeah, but then it makes the volume/brightness overlay uggglllyyyy
838: [11:09:39] <spronkHD> :(
839: [11:09:45] <simon_w> In Textual
840: [11:09:49] <spronkHD> o?
841: [11:09:56] <simon_w> Preferences -> User Interface
842: [11:10:11] <spronkHD> yeah, still keeps the transparency though
843: [11:10:19] <spronkHD> well, the weird yosemite transparency
844: [11:11:57] * Audlex quit ()
845: [11:13:08] <simon_w> Also, have you discovered that you make the volume change make noises?
846: [11:13:14] <spronkHD> ya
847: [11:13:18] <spronkHD> and the new noise is weird
848: [11:13:21] <spronkHD> but i do actually like it
849: [11:14:50] * Liquide has joined #silverstripe
850: [11:14:52] * spronkHD hmm
851: [11:16:18] <spronkHD> System Memory: Free: 2.83 GB; Used: 5.17 GB; Total: 8.00 GB; — [04❙❙❙❙❙❙❙|03❙❙❙❙❙]
852: [11:16:25] <spronkHD> loltextual
853: [11:16:27] <simon_w> System Information: Model: MacBook Pro (15-inch, Mid 2010) • CPU: Intel Core i7 M 620 (4 Threads, 2 Cores) @ 2.66 GHz • Memory: 8.00 GB • Uptime: 10 days • Disk Space: Total: 498.91 GB; Free: 95.69 GB • Graphics: Intel HD Graphics, NVIDIA GeForce GT 330M • Screen Resolution: 1680 x 1050 • Load: 43% • OS: Mac OS X 10.10 (Yosemite) (Build 14A389)
854: [11:16:40] <simon_w> System Memory: Free: 2.53 GB; Used: 5.47 GB; Total: 8.00 GB; — [04❙❙❙❙❙❙❙❙|03❙❙❙❙]
855: [11:16:43] <simon_w> Aha
856: [11:16:54] <Pyfknusrsk> futurealism: yes the steps between 3.0 and 3.1 are not backwards compatible.
857: [11:16:57] <Pyfknusrsk> you must do them.
858: [11:16:59] <simon_w> mem, not info
859: [11:17:56] <spronkHD> http://i.imgur.com/bmfwvDl.gif
860: [11:17:58] <spronkHD> eheheh
861: [11:18:26] <simon_w> Oh yeah, I turned off image previews for this channel
862: [11:19:35] <spronkHD> pǝǝpuı
863: [11:23:38] <simon_w> But now, sleeps!
864: [11:33:39] * wmk quit (Ping timeout: 255 seconds)
865: [11:41:57] * Colin[pi] quit (Ping timeout: 265 seconds)
866: [11:43:38] <Adesso> ʇɐɥʍ ʎɐs
867: [11:48:43] * travis-ci has joined #silverstripe
868: [11:48:43] <travis-ci> silverstripe/silverstripe-framework#3533 (3.1 - c8ad29f : Loz Calver): The build passed.
869: [11:48:43] <travis-ci> Change view : https://github.com/silverstripe/silverstripe-framework/compare/db1c7e89f057...c8ad29f0d747
870: [11:48:43] <travis-ci> Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/39253737
871: [11:48:43] * travis-ci has left #silverstripe
872: [11:54:43] * gavro quit (Remote host closed the connection)
873: [12:00:16] <Pyfknusrsk> Adesso: http://www.youtube.com/watch?v=CDNmLPATW0s
874: [12:03:53] * JeremyRoundill quit (Ping timeout: 244 seconds)
875: [12:11:02] * UndefinedOffset has joined #silverstripe
876: [12:11:04] * Robke quit (Ping timeout: 246 seconds)
877: [12:12:56] * caamic30 has joined #silverstripe
878: [12:13:32] * gavro has joined #silverstripe
879: [12:15:10] * JeremyRoundill has joined #silverstripe
880: [12:30:04] * ocmnt has joined #silverstripe
881: [12:40:26] * wmk has joined #silverstripe
882: [12:46:15] * g4b0_ has joined #silverstripe
883: [12:49:26] * kinglozzer quit ()
884: [13:01:48] * spronk2 quit (Quit: spronk2)
885: [13:15:20] * pinkal has joined #silverstripe
886: [13:17:33] <Zauberfisch> is the context part of the _t() stuff even still in use?
887: [13:17:48] <Zauberfisch> used to be in the lang/xx_XX.php file
888: [13:18:11] <Zauberfisch> but now that we have yml, it isn't used anywhere anymore? or am I mistaken
889: [13:18:13] <Zauberfisch> ?
890: [13:19:40] * pinkal quit (Ping timeout: 246 seconds)
891: [13:22:04] <Zauberfisch> we are currently using transifex.com right?
892: [13:32:09] * catcher has joined #silverstripe
893: [13:35:03] <Zauberfisch> also, why is SiteTree adding SiteTree.SINGULARNAME and SiteTree.PLURALNAME in provideI18nEntities() ?
894: [13:35:08] <Zauberfisch> is there any point to that?
895: [13:35:19] <Zauberfisch> I have never seeen this string being used anywhere
896: [13:38:24] <Zauberfisch> (I do understand that it will always be set in DataObject->provideI18nEnteties(), but the value gets set in SiteTree, couldn't we just do an unset() instead of assinging a value to a useless entity?
897: [13:38:30] <Zauberfisch> )
898: [13:39:59] <ocmnt> zauberfisch, _t is still used
899: [13:40:05] <ocmnt> it picks up the translations from .yml files
900: [13:41:19] <ocmnt> and isnt SiteTree.SINGULARNAME and the otherone usable for private static $singular_name
901: [13:41:22] <ocmnt> ?
902: [13:44:52] * Adesso quit ()
903: [13:45:22] * Shrike_Finland quit (Quit: Leaving.)
904: [13:47:36] <Pyfknusrsk> Zauberfisch: yeah singular and plural are used all over the show
905: [13:47:45] <Pyfknusrsk> though most notably in most things gridfield related
906: [13:48:19] <Pyfknusrsk> at least... Config::inst()->get('Class', 'plural_name') is
907: [13:48:20] <Zauberfisch> ocmnt: I think you have missread/missunderstood both of my questions :P
908: [13:48:33] <Zauberfisch> Pyfknusrsk: you as well actually
909: [13:48:33] <Pyfknusrsk> dunno about translation, because sadly I've never looked too far into it :<
910: [13:48:47] <Pyfknusrsk> Zauberfisch: appears so :<
911: [13:48:49] <ocmnt> haha, I see what I did. provideI18nEntities() ? was on the second line
912: [13:48:59] <ocmnt> so I did indeed miss the question there, haha
913: [13:49:25] <Zauberfisch> I know that xxx.PLURALNAME and xxx.SINGULARNAME are used. but I don't think SiteTree.PLURALNAME and SiteTree.SINGULARNAME are used anywhere at all
914: [13:49:34] <Zauberfisch> because you can't create SiteTree in the CMS
915: [13:49:39] <Pyfknusrsk> in any case, I thought _t was still used, but references yml now instead of php arrays
916: [13:49:50] <Zauberfisch> you can onyl create subclasses, and subclasses have their own SINGULAR/PLURALNAME
917: [13:50:12] <Pyfknusrsk> Zauberfisch: oh, I see. SiteTree specifically... well it doesn't make sense to me personally... you never make SiteTrees, you make Pages
918: [13:50:28] <Pyfknusrsk> so I don't know if it was ever used :(
919: [13:51:18] <Zauberfisch> yeah, taht's why I am asking
920: [13:51:23] <Zauberfisch> keeps anoying me in my lang files
921: [13:51:26] <Pyfknusrsk> indeed, it is confusing.
922: [13:51:30] <Pyfknusrsk> probably code rot tbh.
923: [13:51:33] <Zauberfisch> and is probably useless
924: [13:51:52] <Zauberfisch> Pyfknusrsk: that I know as well. _t() is used. _t() also still allows for a 3rd argument to be passed. the question is: is that third argument still used somewhere? (context)
925: [13:51:57] <Pyfknusrsk> have you tried removing it and seeing if it causes some kind of negative impact/test failure?
926: [13:52:14] <Pyfknusrsk> Zauberfisch: I'm not sure what the third argument was :(
927: [13:52:17] <Pyfknusrsk> is/was
928: [13:52:21] <Zauberfisch> context
929: [13:52:35] <Pyfknusrsk> I thought it was Identifier, default, values to plug in if you need
930: [13:52:48] <Pyfknusrsk> if that's what you mean by context, then yeah I do think it is used on occasion
931: [13:52:48] <Zauberfisch> _t('Class.Key', 'Open Folder', 'Text displayed on the button in the Filemanager');
932: [13:52:52] <Zauberfisch> something like that
933: [13:52:53] <Pyfknusrsk> for %s translations
934: [13:53:03] <Pyfknusrsk> oh
935: [13:53:07] <Pyfknusrsk> like a description?
936: [13:53:11] <Pyfknusrsk> yeah... that seems... wrong.
937: [13:53:21] <Zauberfisch> and that 3rd argument would then be displayed to a translater, so he knows what he should translate "Open Folder" to, so he knows the context this string is used in
938: [13:53:33] <Zauberfisch> the code is still there. it still accepts and collects it
939: [13:53:46] <Pyfknusrsk> I thought it was more like _t('CLASS.key', 'Do %s thing', array('that'))
940: [13:53:50] <Zauberfisch> but I think it collects it just to throw it away again, because its not saved anywhere to my knowledge
941: [13:53:51] <Pyfknusrsk> or something
942: [13:54:05] <Zauberfisch> the array is the 4th parameter
943: [13:54:35] * Shrike_Finland has joined #silverstripe
944: [13:54:38] <Zauberfisch> but I think it detects that and shifts parameters if the 3rd one is the array
945: [13:55:14] <Pyfknusrsk> but I've not looked at translation in a while, and have a very sketchy understanding at best (as is apparent here)
946: [13:55:36] <Zauberfisch> I don't really know how we do translations either to be honest
947: [13:55:40] <Zauberfisch> which is why I am asking
948: [13:56:04] <Zauberfisch> I only used the basics thus far (_t() + i18nTextCollectorTask + yml files)
949: [13:56:30] <Pyfknusrsk> yeah, it really confused me when suddenly there was this third party collection thing in 3.0 or whenever it came in (transifex)
950: [13:56:33] <Pyfknusrsk> .com
951: [13:56:40] <Zauberfisch> I don't even know if transifex.com is the actual translation software we are currently using, I think we tryed a couple of systems in the last year
952: [13:56:45] <Pyfknusrsk> so I dunno how to approach it.
953: [13:57:06] <Pyfknusrsk> it seems... alienating from the core project to make it so confusing to add translations/contribute them back
954: [13:57:12] <Zauberfisch> and in transifex I can't edit strings it appears. have to be on the team there
955: [13:57:15] <Pyfknusrsk> although transifex probably is a neat tool.
956: [13:57:17] <Pyfknusrsk> but idk.
957: [13:57:37] <Pyfknusrsk> I'd like to see translations be brought back inhouse
958: [13:57:44] <Pyfknusrsk> using a tool for _support_
959: [13:57:54] <Pyfknusrsk> or at least some serious clarification around this, if that is already the case.
960: [13:57:57] <Zauberfisch> ah. wait. stupid me: history on transifex says 1 week ago was the last change
961: [13:58:03] <Zauberfisch> I guess that means transifex is being used
962: [13:58:06] * Pyfknusrsk shrugs
963: [13:58:15] <Pyfknusrsk> so transifex is another site that I need another login for?
964: [13:58:28] <Zauberfisch> yes
965: [13:58:33] <Pyfknusrsk> urgh
966: [13:58:43] <Zauberfisch> well, it has github/facebook/twitter auth if you care to use those
967: [13:58:46] <Zauberfisch> which I don't
968: [14:00:03] <futurealism> wmk, Pyfknusrsk: I am now at 3.0.11 and going strong, final step to 3.1.latest now
969: [14:00:20] <futurealism> any last minute advice on that is much appreciated
970: [14:00:41] * toddvalentine has joined #silverstripe
971: [14:00:59] <Zauberfisch> futurealism: updating from 3.0 to 3.1?
972: [14:01:11] <futurealism> yes
973: [14:01:13] <Zauberfisch> you better have some text search and replace tool ready
974: [14:01:28] <futurealism> (coming from 2.3.old earlier this morning)
975: [14:02:04] <Zauberfisch> s/public static \$/private static \$/
976: [14:02:28] <futurealism> ah yes I read about that
977: [14:02:37] <futurealism> http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0 is what I'm using, any other resources needed?
978: [14:03:17] <Zauberfisch> I don't know. to be honest upgrading for me works this way: update -> see error -> fix error -> see error -> fix error
979: [14:03:20] <Zauberfisch> you get the idea
980: [14:03:36] <Zauberfisch> but 3.0 to 3.1 is rather painless once you fixed the private static parts I think
981: [14:03:54] <Zauberfisch> ah, and you probably have to convert some php config/lang files to yml
982: [14:10:58] <Pyfknusrsk> futurealism: nothing really :)
983: [14:11:01] <Pyfknusrsk> just have at it.
984: [14:11:54] <Pyfknusrsk> for the most part it's just public/private statics and converting more fully to yml config.
985: [14:12:09] <Pyfknusrsk> other than that, pretty painless (and even then, pretty painless) futurealism :)
986: [14:14:25] <Pyfknusrsk> [13:58] <Zauberfisch> well, it has github/facebook/twitter auth if you care to use those [13:58] <Zauberfisch> which I don't
987: [14:14:27] <Pyfknusrsk> neither do I :<
988: [14:14:57] <Pyfknusrsk> I prefer a login per site. As such, I'm reserved about siging up to sites willy nilly :<
989: [14:15:25] <Zauberfisch> same here
990: [14:15:35] <Zauberfisch> though I use a password manager, so its not really such a big deal
991: [14:15:48] <Zauberfisch> random passwords everywhere. and I generate those on the push of a button
992: [14:15:56] <Pyfknusrsk> yeah, you got something like kwallet installed?
993: [14:16:02] <Zauberfisch> 1Password
994: [14:16:07] <Pyfknusrsk> I just use my head. Doesn't always work too well for me :P
995: [14:16:34] <Zauberfisch> well, head doesn't scale that well
996: [14:16:47] <futurealism> shit I think I have the thing with the umlauts now Pyfknusrsk
997: [14:16:50] <futurealism> encoding
998: [14:16:50] <Zauberfisch> I have like 500 logins
999: [14:16:55] <Pyfknusrsk> Zauberfisch: depends on what we're scaling!
1000: [14:16:58] <Pyfknusrsk> :>
1001: [14:17:04] <Pyfknusrsk> oh, 500
1002: [14:17:04] <Pyfknusrsk> wow
1003: [14:17:05] <Pyfknusrsk> ok yeah
1004: [14:17:06] <Pyfknusrsk> haha
1005: [14:17:08] <Zauberfisch> and most of them have random passwords
1006: [14:17:34] <Pyfknusrsk> this is what I've hated about the internet since about 15 years ago
1007: [14:17:41] <Pyfknusrsk> SIGN UP TO EVERYTHING
1008: [14:17:43] <Zauberfisch> well, there are probably some zombies in the list that I no longer have or where the website has already disapeared from the internet
1009: [14:17:46] <Pyfknusrsk> :<
1010: [14:18:02] <Pyfknusrsk> I like to know what I've got, where I've been.
1011: [14:18:03] <Pyfknusrsk> but yeh.
1012: [14:18:05] <Zauberfisch> I would die without a password manager
1013: [14:18:14] <Pyfknusrsk> I probably have accounts assigned to emails that no longer exist too
1014: [14:18:16] <Pyfknusrsk> heh
1015: [14:18:42] <Zauberfisch> nah. luckily I was smart enough to use my own domain from early on
1016: [14:19:46] <Zauberfisch> oh, and I have catchall on my email. so I can use different emails for different websites that I don't trust, and if they sell out my data, I just blacklist that alias
1017: [14:20:04] <futurealism> hey Pyfknusrsk: I ran into the umlauts thing with encoding when going from 3.0.0 to 3.0.11 (latest)... any pointers on how to proceed? restored backup to 3.0.0 now
1018: [14:20:30] <Zauberfisch> futurealism: define umlauts thing
1019: [14:21:17] <Pyfknusrsk> Zauberfisch: db encoding change or soemthing apparently
1020: [14:21:28] <Pyfknusrsk> not entirely sure, wmk was the guy talking about that earlier futurealism
1021: [14:21:32] <Pyfknusrsk> best to ask him
1022: [14:21:46] <Zauberfisch> wmk:
1023: [14:21:51] <futurealism> ah yes wmk
1024: [14:21:55] <Zauberfisch> your wisdom is needed
1025: [14:22:21] <futurealism> well it happened when going from 3.0.0 to 3.0.11, it changed to innodb and all hell errors were unleashed
1026: [14:22:24] * Eliseth quit (Ping timeout: 255 seconds)
1027: [14:23:12] <Zauberfisch> futurealism: I would try a silly but easy workaround
1028: [14:23:17] <Pyfknusrsk> futurealism: yep. Although I thoguth inno was default from 3.0.0
1029: [14:23:35] <Pyfknusrsk> oh well
1030: [14:24:03] <Zauberfisch> export data (only insert statements, not create table) to sql file => update ss => empty all tables => import sql file
1031: [14:24:42] <Zauberfisch> 5 min. tops.
1032: [14:28:17] <futurealism> hmmm
1033: [14:31:12] <futurealism> these are the kinds of errors by the way
1034: [14:31:12] <futurealism> Unable to parse string: Malformed inline YAML string ("
1035: [14:31:20] <futurealism> they appear to be language files
1036: [14:31:46] <futurealism> framework/thirdparty/zend_translate_railsyaml/library/Translate/Adapter/thirdparty/sfYaml/lib/sfYaml.php
1037: [14:32:02] <futurealism> so not in database necessarily
1038: [14:34:10] <futurealism> from irc logs 2013-09-27 1408: [21:27:28] <Marvanni> Malformed inline YAML string when dev/build on 3.0.6....
1039: [14:34:17] <futurealism> guess I should stick to 3.0.5....
1040: [14:36:17] * Shrike_Finland quit (Quit: Leaving.)
1041: [14:38:05] <Pyfknusrsk> futurealism: or just format your yml correctly
1042: [14:38:12] <Pyfknusrsk> my guess would be that you've used tabs
1043: [14:38:18] <Pyfknusrsk> instead of 2 spaces.
1044: [14:38:29] <Pyfknusrsk> or your editor has (mine does)
1045: [14:39:59] <futurealism> didnt touch anything
1046: [14:40:07] <futurealism> but it complains about the framework
1047: [14:40:17] <Pyfknusrsk> that's not the framework.
1048: [14:40:20] <Frans_Amsterdam> Hi All, Just an OOP question. It is possible to ad a relation to an Object. Like an Object has_one relation to another Object?
1049: [14:40:22] <futurealism> oh wait
1050: [14:40:24] <Pyfknusrsk> it's an error thrown by the yml parser
1051: [14:40:35] <Pyfknusrsk> which will be parsing your yml files
1052: [14:40:53] <Pyfknusrsk> Frans_Amsterdam: no idea what you've just asked.
1053: [14:41:21] <futurealism> private static $has_one = array( 'Afbeelding' => 'Image' );
1054: [14:41:26] <futurealism> like that Frans_Amsterdam ?
1055: [14:43:11] <futurealism> or Image also being a custom Object?
1056: [14:45:24] <UndefinedOffset> any one know if there is a way to add an extension after another? i.e add an extension after the versioned extension?
1057: [14:45:39] <Frans_Amsterdam> futurealism Yes, that with in an Object.
1058: [14:45:52] <Pyfknusrsk> Frans_Amsterdam: you're still not making any sense.
1059: [14:46:03] <Pyfknusrsk> please explain a bit better.
1060: [14:46:09] <Pyfknusrsk> UndefinedOffset: nope
1061: [14:46:16] <UndefinedOffset> sigh lol
1062: [14:46:19] <Pyfknusrsk> undefined behaviour
1063: [14:46:34] <UndefinedOffset> well guess its remove and re-add lol
1064: [14:46:51] <Pyfknusrsk> UndefinedOffset: well, I mean you could stack the yml blocks so that it gets attached afterwards
1065: [14:47:06] <Pyfknusrsk> in theory they should just be getting added to an array in a push() fashion
1066: [14:47:11] <Frans_Amsterdam> futurealism Pyfknusrsk I have an Object and I want to attach another Object like a custom image to it.
1067: [14:47:25] <Pyfknusrsk> Frans_Amsterdam: so like, every silverstripe thing ever?
1068: [14:47:47] <UndefinedOffset> Pyfknusrk mm problem i'm having is that the cms module defines the versioned extension in it's statics not in the yml configs so i'm having a hard time attaching after it
1069: [14:48:00] <Pyfknusrsk> Frans_Amsterdam: I'm confused because I think you're asking something more advanced that sounds like basic level silverstripe stuff.
1070: [14:48:09] <Pyfknusrsk> I'm sure I've seen you in here before, and you know how to build silverstirpe stuff.
1071: [14:48:10] * spronkHD quit (Quit: I may need a longer sleep timer...)
1072: [14:48:24] <Pyfknusrsk> but if I'm confused, please read tutorials #1 and #2
1073: [14:48:26] <Pyfknusrsk> they will cover this.
1074: [14:48:36] <Pyfknusrsk> specifically #2
1075: [14:48:51] <Frans_Amsterdam> Pyfknusrsk It is kind of an open door, for me a start. But like to understand it well. Thanks.
1076: [14:49:23] <Pyfknusrsk> well with OOP as you asked, there are no relation definitions.
1077: [14:49:51] <Pyfknusrsk> you create a relation by storing an object in another, or linking them somehow, but there are many different ways to do this.
1078: [14:50:02] <Pyfknusrsk> if you're talking SS stuff, then it's a fundamental and very easy thing.
1079: [14:50:19] <Pyfknusrsk> basically just as futurealism has noted above.
1080: [14:50:23] * muskie9 has joined #silverstripe
1081: [14:50:31] <futurealism> Pyfknusrsk: Translate_Adapter_RailsYaml->_loadTranslationData(/home/lhn/domains/lijsthilbrandnawijn.nl/public_html/framework/lang/nl.yml,nl,Array)
1082: [14:50:37] <futurealism> it says the error is in that yml file
1083: [14:50:38] <Pyfknusrsk> relation = array('name' -> 'class')
1084: [14:50:40] <futurealism> but that comes with the cms
1085: [14:51:08] <Pyfknusrsk> futurealism: I dunno man, just go straight to 3.1?
1086: [14:51:26] <Pyfknusrsk> but did you copy framework over top of the existing one, or remove the old and put in the new?
1087: [14:51:38] <futurealism> remove old and put new always
1088: [14:51:46] <Pyfknusrsk> putting over the top might cause something like that if that file wasn't updated
1089: [14:51:47] <Pyfknusrsk> hmm
1090: [14:52:00] <Pyfknusrsk> odd, just go 3.0.whatever to 3.1.6
1091: [14:52:01] <Pyfknusrsk> it's all fine.
1092: [14:52:07] <Pyfknusrsk> it's bascially the same steps
1093: [14:52:19] <Pyfknusrsk> there's no need to go to the top of the tree one micro point at a time
1094: [14:53:59] <futurealism> oh I see someone was just retarded making those yml files
1095: [14:54:07] <Pyfknusrsk> usually the case :<
1096: [14:54:21] <futurealism> escape characters in the strings
1097: [14:54:21] <futurealism> gg
1098: [14:55:49] <futurealism> ok, time for a final backup to jump to 3.1
1099: [14:57:38] * g4b0_ quit (Ping timeout: 265 seconds)
1100: [14:57:50] <Pyfknusrsk> futurealism: gg, welcome to the future :>
1101: [14:58:23] <futurealism> haha
1102: [14:58:35] <Pyfknusrsk> a 6 year jump is a fair bit.
1103: [15:05:17] <futurealism> Database build completed! did it!
1104: [15:05:28] <futurealism> thanks for the help Pyfknusrsk wmk Zauberfisch
1105: [15:06:56] <Pyfknusrsk> nice futurealism :)
1106: [15:08:27] <futurealism> well the site is up, CMS is still giving blank screen, but I guess I'm almost there ;)
1107: [15:11:34] <Pyfknusrsk> ?flush?
1108: [15:11:47] <futurealism> ye that gives me all kinds of irregular things now
1109: [15:11:57] <futurealism> flushing the hell outa admin and site with all kinds of random artefacts
1110: [15:12:01] * g4b0_ has joined #silverstripe
1111: [15:13:04] <Pyfknusrsk> rm -rf silverstripe-cache ?
1112: [15:13:27] <Pyfknusrsk> or /tmp/whatever-your-site-is
1113: [15:14:03] <futurealism> done
1114: [15:14:13] * caamic30 has left #silverstripe
1115: [15:14:29] <futurealism> that fixed a whole lota stuff :D
1116: [15:14:43] <futurealism> I finally have the split screen editing now, which was the main goal
1117: [15:15:17] <Pyfknusrsk> :)
1118: [15:17:34] <futurealism> rest seems like nothing I cant handle
1119: [15:17:35] <futurealism> some GD.php warnings
1120: [15:17:50] <Pyfknusrsk> ?
1121: [15:17:56] <Pyfknusrsk> oh
1122: [15:18:06] <Pyfknusrsk> usually permissions based those
1123: [15:18:15] <Pyfknusrsk> around /assets
1124: [15:18:27] <Pyfknusrsk> did you rm -rf jsparty? :P
1125: [15:18:34] <Pyfknusrsk> NO MORE PARTIES, THE COPS ARE HERE
1126: [15:18:59] <futurealism> I think it disappeared somewhere aroudn 3.0
1127: [15:19:04] <futurealism> or 2.4.far even
1128: [15:19:04] <Pyfknusrsk> mmm
1129: [15:19:07] <Pyfknusrsk> yup
1130: [15:19:16] <Pyfknusrsk> but doesn't mean you rm'd it :>
1131: [15:20:41] <futurealism> true
1132: [15:20:54] <futurealism> but what I do when I update is that I remove all except the project, themes, assets and favicon
1133: [15:21:01] <futurealism> and then put the new version
1134: [15:21:03] <Pyfknusrsk> not that it really matters if you didn't, just keeping things clean
1135: [15:21:05] <futurealism> to prevent exactly that ;)
1136: [15:21:15] <Pyfknusrsk> :>
1137: [15:21:44] <Pyfknusrsk> oh, rm -rf assets/*/_resampled/*
1138: [15:21:49] <futurealism> yes that
1139: [15:21:53] <futurealism> I did that manually earlier
1140: [15:21:56] <Pyfknusrsk> that might fix your gd issues
1141: [15:21:58] <futurealism> but now it seems needed again
1142: [15:21:58] <Pyfknusrsk> oh up, cool
1143: [15:22:15] <Pyfknusrsk> yeh everytime you load a page any images will be resampled if needed
1144: [15:23:23] <futurealism> these are the kinds of protips that oughta be listed somewhere
1145: [15:23:56] <futurealism> hey all my Do Not Show in Menus pages are visible again
1146: [15:24:46] <futurealism> oh wait thats just the CMS
1147: [15:24:56] <futurealism> hmmm it even adjusts stuff outside of CMS preview window
1148: [15:26:12] <futurealism> gonna close this zombie window which has been open since early this morning, thanks for all the help, especially Pyfknusrsk !
1149: [15:26:22] <futurealism> exit
1150: [15:26:33] <futurealism> oh lol wrong tab
1151: [15:26:35] * futurealism quit (Quit: Page closed)
1152: [15:38:53] * jenniferaslan has joined #silverstripe
1153: [15:44:40] <Pyfknusrsk> suddenly bored again :<
1154: [15:57:49] * Shrike_Finland has joined #silverstripe
1155: [15:58:01] * Shrike_Finland1 has joined #silverstripe
1156: [15:59:11] * ThePeach has joined #silverstripe
1157: [16:02:10] * Shrike_Finland quit (Ping timeout: 256 seconds)
1158: [16:09:00] <toddvalentine> hey all, how would I gain access to symfony's app/console executable in Bolt? It appears to included via composer.json. I want to find the class associated with $app['storage'].
1159: [16:09:06] <toddvalentine> Sorry!!!!!
1160: [16:09:13] <toddvalentine> Wrong channel!!!
1161: [16:09:21] <Pyfknusrsk> quite
1162: [16:09:54] <toddvalentine> how embarrasing!
1163: [16:13:07] * Bopp has joined #silverstripe
1164: [16:27:52] * arnhoe quit (Remote host closed the connection)
1165: [16:29:56] * gavro quit (Ping timeout: 256 seconds)
1166: [16:32:04] * cupcake has joined #silverstripe
1167: [16:32:14] <cupcake> quick one...
1168: [16:32:24] <cupcake> ghow do i get the current page url pls?
1169: [16:32:36] * Frans_Amsterdam quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
1170: [16:40:26] * jeroenem quit (Quit: Page closed)
1171: [16:52:49] <wmk> toddvalentine, !!!
1172: [16:53:31] <wmk> <Pyfknusrsk> yeh everytime you load a page any images will be resampled if needed
1173: [16:53:42] <wmk> not the images inside htmleditor...
1174: [16:54:00] <wmk> only the one you define in your image extension or in the template (setWidth etc..)
1175: [16:54:20] <toddvalentine> wmmk: haa, i know. sorry.
1176: [16:54:45] <toddvalentine> I probably should have all uppercased as well.
1177: [16:54:59] <wmk> ;)
1178: [16:56:09] * g4b0_ quit (Quit: Sto andando via)
1179: [16:56:59] * arnhoe has joined #silverstripe
1180: [16:59:35] <Pyfknusrsk> cupcake: $Link
1181: [16:59:44] <Pyfknusrsk> or $AbsoluteLink
1182: [16:59:46] <Pyfknusrsk> (in templates)
1183: [17:00:11] <Pyfknusrsk> wmk: yeh I know, just in templates :>
1184: [17:00:25] <wmk> Pyfknusrsk, still bored? no customer calling?
1185: [17:00:40] <Pyfknusrsk> wmk: no customer calling is a good thing! :D
1186: [17:00:50] <Pyfknusrsk> nah, I'm fiddling back with entwine again now.
1187: [17:00:54] <wmk> ah
1188: [17:00:57] <Pyfknusrsk> keeping me busy
1189: [17:01:37] * arnhoe quit (Ping timeout: 255 seconds)
1190: [17:18:11] * Shrike_Finland1 quit (Ping timeout: 264 seconds)
1191: [17:18:35] * Pyfknusrsk quit ()
1192: [17:22:39] * Bopp has left #silverstripe
1193: [17:30:09] * muskie9 is now known as _muskie9_
1194: [17:32:40] * stnvh quit (Quit: sleepy)
1195: [17:36:32] * wmk quit (Ping timeout: 245 seconds)
1196: [17:39:43] * cupcake quit (Ping timeout: 246 seconds)
1197: [17:42:53] * SightUnseen has joined #silverstripe
1198: [17:43:18] * SightUnseen has left #silverstripe
1199: [17:50:09] * Shrike_Finland has joined #silverstripe
1200: [18:06:45] * _muskie9_ is now known as muskie9
1201: [18:07:14] * r_hector has joined #silverstripe
1202: [18:07:54] * arnhoe has joined #silverstripe
1203: [18:09:31] * gelignite has joined #silverstripe
1204: [18:18:00] * ThePeach quit (Quit: leaving)
1205: [18:20:53] * Stomach has joined #silverstripe
1206: [18:23:34] * Stomach quit (Client Quit)
1207: [18:29:54] * SightUnseen1 has joined #silverstripe
1208: [18:32:49] * SightUnseen1 has left #silverstripe
1209: [18:45:14] * wmk has joined #silverstripe
1210: [18:48:18] * antmas quit (Quit: Page closed)
1211: [18:55:33] * Kingy[a] is now known as Kingy
1212: [19:01:51] * Stomach has joined #silverstripe
1213: [19:04:25] * Stomach_ has joined #silverstripe
1214: [19:05:02] * toddvale_ has joined #silverstripe
1215: [19:06:20] * Stomach quit (Ping timeout: 250 seconds)
1216: [19:07:52] * toddvale_ quit (Remote host closed the connection)
1217: [19:08:19] * toddvale_ has joined #silverstripe
1218: [19:09:07] * toddvalentine quit (Ping timeout: 258 seconds)
1219: [19:11:18] * arnhoe quit ()
1220: [19:16:06] * Shrike_Finland quit (Quit: Leaving.)
1221: [19:16:19] * Fuxo has joined #silverstripe
1222: [19:18:09] * Pyromanik has joined #silverstripe
1223: [19:18:16] <Pyromanik> horeeeeeey
1224: [19:18:25] <Pyromanik> tv _seems_ to be working today.
1225: [19:18:49] <Pyromanik> weird as fuck it didn't last night, or this morning :<
1226: [19:19:47] <wmk> tv is overestimated
1227: [19:21:01] <Pyromanik> well i dunno wmk, I saw some interesting things on it in austria at 2am! xD
1228: [19:21:22] <Pyromanik> on 'Sport 1'
1229: [19:21:33] <Pyromanik> I was all 'this is not the grand prix!'
1230: [19:21:49] <wmk> well, at 2am in cable tv you can see a lot of "call in" ads
1231: [19:23:05] * muskie9_ has joined #silverstripe
1232: [19:24:20] * Fuxo quit (Read error: Connection reset by peer)
1233: [19:25:59] * muskie9 quit (Ping timeout: 264 seconds)
1234: [19:26:05] * Fuxo has joined #silverstripe
1235: [19:28:36] <Pyromanik> wmk: yeah, those were there too. but this was a movie... of sorts.
1236: [19:31:13] * muskie9_ is now known as _muskie9_
1237: [19:31:15] * _muskie9_ is now known as muskie9_
1238: [19:33:07] * lerni has joined #silverstripe
1239: [19:34:17] * r_hector quit (Quit: Leaving.)
1240: [19:39:36] * muskie9 has joined #silverstripe
1241: [19:40:17] * muskie9_ quit (Ping timeout: 245 seconds)
1242: [19:42:13] * shellbackpacific has joined #silverstripe
1243: [19:42:24] * jedateach has joined #silverstripe
1244: [19:44:18] <JeremyRoundill> Is there a standard way to construct a custom menu in SS outside of Menu()?
1245: [19:44:43] <Ryan-Toast> JeremyRoundill: just loop through a datalist?
1246: [19:44:51] <JeremyRoundill> I'm trying to find out which section is the current one.
1247: [19:45:02] <Pyromanik> well you have to maintain that yourself.
1248: [19:45:11] <JeremyRoundill> Yeah, I figured that.
1249: [19:45:18] <Pyromanik> is there a way to BUILD a custom menu? yes, keyword BUILD.
1250: [19:45:24] <JeremyRoundill> At the moment I'm doing a check in the template against $Link
1251: [19:45:27] <Pyromanik> ;)
1252: [19:45:34] <JeremyRoundill> :P
1253: [19:45:47] <Pyromanik> well... that's only if you have $Link implemented
1254: [19:45:48] <Ryan-Toast> Two days in a row, Pyro? You need some sleep, son.
1255: [19:45:51] <JeremyRoundill> Yeah, it was a super generic question to begin with. :P
1256: [19:46:07] <Pyromanik> Ryan-Toast: ??? It's only 7 o'clock.
1257: [19:46:18] <Pyromanik> well, nearly 8, whatever
1258: [19:46:18] <Ryan-Toast> Pyromanik: Orly, why did I think it was super late for you.
1259: [19:46:29] <Pyromanik> Ryan-Toast: because you're special in the face?
1260: [19:46:40] <Pyromanik> timezones bro, how do they work?
1261: [19:46:43] <Pyromanik> :P
1262: [19:46:49] <Ryan-Toast> Pyromanik: Maybe I think your new bedtime should be 7.
1263: [19:46:59] <JeremyRoundill> Can I substr() a string in a template?
1264: [19:47:09] <Ryan-Toast> Otherwise you can’t go to your best friend’s house on the weekend.
1265: [19:47:10] <Pyromanik> It'd be super late for me if I were in say... Banglidesh perhaps. IDK.
1266: [19:47:32] <Pyromanik> JeremyRoundill: are you asking if you can perform complex logic in a view layer?
1267: [19:47:38] <wmk> JeremyRoundill, there are some menu manager modules around, see addons.silverstripe.org
1268: [19:47:40] <Pyromanik> because it sounds like you are.
1269: [19:47:48] <Ryan-Toast> JeremyRoundill: do that in your controller, man.
1270: [19:47:52] <JeremyRoundill> Haha
1271: [19:47:59] <JeremyRoundill> I know I *should* do it there.
1272: [19:48:06] <wmk> my controller? who want's to conrol me?
1273: [19:48:07] <Pyromanik> NO
1274: [19:48:07] <Ryan-Toast> There’s your answer then :P
1275: [19:48:12] <Pyromanik> , YOU CANNOT
1276: [19:48:16] <JeremyRoundill> Hahaha
1277: [19:48:20] <JeremyRoundill> Fine, fine.
1278: [19:48:23] <Pyromanik> better answer?
1279: [19:48:24] <Pyromanik> :P
1280: [19:48:26] <JeremyRoundill> I'll use MVC better.
1281: [19:48:30] <Pyromanik> good.
1282: [19:48:32] <Ryan-Toast> Good man.
1283: [19:48:42] <Pyromanik> otherwise you might as well go and use code igniter with php4.
1284: [19:48:55] <wmk> Pyromanik, php3 ?
1285: [19:49:16] <wmk> *sigh* when we were young...
1286: [19:50:13] <wmk> JeremyRoundill, so, what do you want to acchive?
1287: [19:50:29] <wmk> custom menu can be anything
1288: [19:50:51] <JeremyRoundill> These guys answered my question well enough. :P
1289: [19:51:18] <JeremyRoundill> My second question was sorta more to the point than the first.
1290: [19:51:31] <wmk> there is some stuff built in for checking if the page is a current section
1291: [19:51:47] <JeremyRoundill> Oh, yeah?
1292: [19:51:58] <JeremyRoundill> I had a quick look through the docs and didn't spot anything.
1293: [19:51:59] <shellbackpacific> trying to access a $db property in an controller….using $this->H1 …am i missing something?
1294: [19:52:02] <wmk> http://api.silverstripe.org/3.1/class-SiteTree.html#_LinkOrCurrent
1295: [19:52:05] <wmk> e.g.
1296: [19:52:09] <wmk> also LinkOrSection
1297: [19:52:26] <JeremyRoundill> Groovy as.
1298: [19:52:36] <wmk> it's in sitetree, so works only for pages
1299: [19:52:43] <Pyromanik> ^
1300: [19:52:43] <JeremyRoundill> Yeah
1301: [19:52:56] <Pyromanik> depends how custom your custom menus are
1302: [19:53:29] <JeremyRoundill> I'll have a read and see where I get.
1303: [19:53:39] <shellbackpacific> the db field comes from a parent controller
1304: [19:53:54] <Pyromanik> the db field doesn't come from ANY controller
1305: [19:53:55] <wmk> and... http://addons.silverstripe.org/add-ons/heyday/silverstripe-menumanager could help maybe
1306: [19:53:56] <shellbackpacific> parent as in inheriting
1307: [19:53:59] <shellbackpacific> right
1308: [19:54:09] <Pyromanik> controllers don't have db fields. ever.
1309: [19:54:39] <wmk> they access the associated dataobject/page to get fields
1310: [19:54:44] <shellbackpacific> the controller inherits from the page controller…there's no sharing of page fields there
1311: [19:55:09] <shellbackpacific> i have this: HomePage_Controller extends Page_Controller
1312: [19:55:12] <Pyromanik> the controller inherits from controller. not necessarially page_controller
1313: [19:55:19] <shellbackpacific> Page_Controller's Page obj has an H1
1314: [19:55:30] <Pyromanik> oic, you're telling us what you have.
1315: [19:55:50] <shellbackpacific> i want HomePage_Controller to get a property from Page_Controller's Page
1316: [19:56:10] <shellbackpacific> given this: HomePage extends Page
1317: [19:56:11] <Pyromanik> shellbackpacific: please review notes around MVC
1318: [19:58:05] <wmk> shellbackpacific, as HomePage inherits Page you could access Page's fields via $this->PropertyName
1319: [19:58:25] <shellbackpacific> wmk: not working
1320: [19:58:32] <shellbackpacific> that's what i thought too
1321: [19:58:33] <wmk> or $this->data()->PropertyName, where $this->data() is the current HomePage DO
1322: [19:59:05] <shellbackpacific> ha this->data() did it
1323: [19:59:13] * Pyromani1 has joined #silverstripe
1324: [19:59:43] <shellbackpacific> curious now about the difference between $this->H1 and this->data()->H1 given this inheritence structure
1325: [19:59:54] <Pyromani1> you;re stillnotgettingit
1326: [20:00:00] <Pyromani1> shellbackpacific: please review notes around MVC
1327: [20:00:04] <Pyromani1> you have C and you want M's data.
1328: [20:00:08] <Pyromani1> you do not have M.
1329: [20:00:12] <Pyromani1> thus, you must get it.
1330: [20:00:52] <shellbackpacific> Pyromani1: right so $this->Content; works
1331: [20:01:10] * Pyromanik quit (Ping timeout: 265 seconds)
1332: [20:01:12] <Pyromani1> http://php.net/__get
1333: [20:02:02] <shellbackpacific> so overloading is used for "Content" ?
1334: [20:02:14] <shellbackpacific> i'll look myself
1335: [20:02:28] <Pyromani1> for page type controllers and page types, yes
1336: [20:02:32] <wmk> afaik magic getter for simplifying things....
1337: [20:02:44] <shellbackpacific> ah
1338: [20:03:34] <wmk> Pyromani1, "notes around MVC"... what notes do you speak of?
1339: [20:03:39] <shellbackpacific> yeah not sure how this: "please review notes around MVC" answers that
1340: [20:03:44] <shellbackpacific> but anyways
1341: [20:03:47] <wmk> just general "RTFM how MVC works" ?
1342: [20:04:30] <Pyromani1> wmk: I mean chap here needs to understand MVC better in general.
1343: [20:04:41] <Pyromani1> basically, yeh.
1344: [20:04:46] <wmk> who doesn't ?
1345: [20:04:49] <shellbackpacific> lol
1346: [20:04:55] <Pyromani1> ^
1347: [20:05:11] <shellbackpacific> not trying to be a dick…but that's just not a helpful answer
1348: [20:05:23] * shellbackpacific quit (Quit: Leaving.)
1349: [20:05:26] <JeremyRoundill> Woah
1350: [20:05:31] <JeremyRoundill> That guy.
1351: [20:05:49] * Pyromanik has joined #silverstripe
1352: [20:05:50] * novaweb has joined #silverstripe
1353: [20:06:25] <Pyromanik> I'm not trying to be a dick either, and I understand SS makes it harder by blurring the lines between M and C in Page types... but it's a general concept.
1354: [20:06:47] <Pyromanik> You have a controller object, and you're trying to access model data. This has nothing to do with class heirarchy.
1355: [20:06:52] <JeremyRoundill> Yeah.
1356: [20:06:56] <Pyromanik> at all.
1357: [20:07:15] <JeremyRoundill> The guy was just not hip to the hop.
1358: [20:07:37] <JeremyRoundill> He didn't sound like he was down with the kids. All this new-fangled MVC clap-trap.
1359: [20:07:42] <Pyromanik> oh fuck he quit
1360: [20:07:43] <Pyromanik> oh well
1361: [20:07:44] <JeremyRoundill> Yeah
1362: [20:07:59] <Pyromanik> well fuck, just run off in a huff then and don't learn. whatever.
1363: [20:08:14] <Pyromanik> here I was about to launch into a big explanation.
1364: [20:08:16] <JeremyRoundill> It's how you become a better coder.
1365: [20:08:31] <JeremyRoundill> I was about to explain what was what too. :P
1366: [20:09:18] <Pyromanik> JeremyRoundill, sounds more like a modern day 'internet dreams creator'
1367: [20:09:41] <JeremyRoundill> 'Social Media Marketer'
1368: [20:09:46] <JeremyRoundill> 'SEO Guru'
1369: [20:09:56] <Pyromanik> uses mvc because that's what you have to, and understands enough to get by, but not really all that in depth.
1370: [20:10:16] <Pyromanik> ie, recruiter level wows, not actual wows
1371: [20:10:26] <Pyromanik> HE KNOWS ALL THE RIGHT ACRONYMS, YEY
1372: [20:10:34] <JeremyRoundill> WEB 2.0!!
1373: [20:11:46] <Pyromanik> JeremyRoundill, http://whatdoesyourstartupdo.co/
1374: [20:12:03] <Pyromanik> self assessment at code: 78%
1375: [20:12:06] <JeremyRoundill> "We enable people everywhere to make money doing what they love." Hahahaha
1376: [20:12:12] * zippy has joined #silverstripe
1377: [20:12:18] <Pyromanik> actual peer's assessment of code: 48%
1378: [20:12:19] * UndefinedOffset quit (Quit: Leaving.)
1379: [20:13:22] <Pyromanik> fuck it's hard to talk someone down from an idea they've had when they MOSTLY understand something, except this one semi crucial point...
1380: [20:13:36] <Pyromanik> like the concept of 'thin controllers'
1381: [20:13:40] <Pyromanik> GAWD WHY
1382: [20:13:56] <Ryan-Toast> Pyromanik: Thin controllers? Real controllers have curves!
1383: [20:14:04] <Pyromanik> indeed Ryan-Toast
1384: [20:14:34] <Pyromanik> and the argument comes "so you can reuse the code in whatever controller because it's all in the model!"
1385: [20:15:13] <Pyromanik> and then I'm sitting there quietly going 'if you used a real fucking framework where you could ACTUALLY FUCKING SUBCLASS then you could just new OtherController and everything woudl be FINE'
1386: [20:15:34] <Pyromanik> ah fuck, I think w_scan has stalled :<
1387: [20:15:52] <Pyromanik> been using 80-90% of my cpu for about an hour now with no output :<
1388: [20:16:51] * antmas has joined #silverstripe
1389: [20:17:12] <Pyromanik> also Ryan-Toast, JeremyRoundill: http://www.heydonworks.com/article/reinventing-the-hyperlink
1390: [20:17:15] <Pyromanik> classic
1391: [20:17:20] <antmas> harro all!
1392: [20:17:26] <Kingy> morning admit
1393: [20:17:28] <Kingy> wow
1394: [20:17:29] <Kingy> antmas
1395: [20:17:33] <antmas> lol
1396: [20:17:37] <antmas> HAI
1397: [20:18:01] <Kingy> so im moving to bahrain
1398: [20:18:02] * Pyromanik goes back to eating his slightly off carrots
1399: [20:18:09] <Pyromanik> 'grats?
1400: [20:18:11] <Ryan-Toast> Pyromanik: the title should be: Why you should be using buttons
1401: [20:18:12] <simon_w> Kingy, guts
1402: [20:18:13] <JeremyRoundill> Sailed boats into Switzerland. Hahahaha!
1403: [20:18:29] <antmas> Kingy: wat
1404: [20:18:32] <antmas> Kingy: really>?
1405: [20:18:42] <Kingy> lol yeah
1406: [20:18:43] <Pyromanik> JeremyRoundill, you laugh, but that's a doable thing.
1407: [20:19:01] <Pyromanik> granted your options for departure are only France and... France.
1408: [20:19:03] <Kingy> simon_w: you'd hate it. like 50deg in summer :P
1409: [20:19:10] <antmas> Kingy: ha, what for? new job?
1410: [20:19:19] <JeremyRoundill> I remember their America's cup team had to practice overseas
1411: [20:19:26] <Kingy> well not me yet, gf got offered a position at one of the international schools
1412: [20:19:44] <Pyromanik> JeremyRoundill, because lake != sea
1413: [20:20:20] <JeremyRoundill> Yeah, that's true.
1414: [20:20:38] <antmas> Kingy: tbh fuck living that close to war
1415: [20:20:41] <antmas> :(
1416: [20:20:47] * Phlunk3 has joined #silverstripe
1417: [20:20:51] <simon_w> Kingy, also, good luck staying within the public decency laws :p
1418: [20:20:58] <antmas> or is it actually pretty nice there?
1419: [20:21:08] <Kingy> antmas: It's western
1420: [20:21:13] * willr has joined #silverstripe
1421: [20:21:20] <Kingy> basically fully of expats with a marine base
1422: [20:21:52] * micmania1 has joined #silverstripe
1423: [20:22:15] <zippy> morning
1424: [20:22:18] <Kingy> The population in 2010 stood at 1,234,571, including 666,172 non-nationals
1425: [20:23:02] <antmas> Kingy: how 'western' is it though? I'd imagine there are some pretty interesting laws
1426: [20:23:33] <Kingy> I'm sure there are
1427: [20:23:57] <antmas> Kingy: when would you be going?
1428: [20:24:14] <Kingy> but basically it's western enough that you don't need to be married to live together
1429: [20:24:16] <Kingy> woman can drive
1430: [20:24:24] <Kingy> you can buy pork/alcohol
1431: [20:24:51] <antmas> I wonder what IT they would have
1432: [20:25:06] <Kingy> antmas: be living in Juffai
1433: [20:25:08] <Kingy> Juffair
1434: [20:25:35] <Kingy> which is the expat area and right next to the US naval base
1435: [20:25:41] <antmas> I wonder if you could work for the airline or something
1436: [20:25:46] * Colin[pi] has joined #silverstripe
1437: [20:25:50] <Kingy> there are a lot of web dev companies apparently
1438: [20:26:04] * Pyromani1 quit (Quit: oh you, 98% cpu)
1439: [20:26:08] <jedateach> Morning all, can anyone tell me the purpose of the DataModel class? it’s php doc is a bit vauge to me
1440: [20:26:19] <jedateach> “Representation of a DataModel - a collection of DataLists for each different data type.”
1441: [20:26:19] <antmas> I wonder if all the web dev stuff is .net :P
1442: [20:26:25] <Pyromanik> jedateach, NUP GL WITH THAT
1443: [20:26:31] <Kingy> but apparently the business side of the school may have job for me
1444: [20:26:39] <jedateach> :D
1445: [20:26:46] <Pyromanik> jedateach, no one (literally) knows what the fuck that's all about.
1446: [20:26:55] <Pyromanik> It _seems_ to cache queries.
1447: [20:26:57] <Pyromanik> that's about it though
1448: [20:27:04] <Pyromanik> no idea why it's passed around like that
1449: [20:27:15] <Kingy> antmas: http://bh.indeed.com/jobs?q=php&l=bahrain
1450: [20:27:30] <Pyromanik> JeremyRoundill, so yeah, pretty much most modern web devs right?
1451: [20:27:52] <Pyromanik> 'best practice' is more about doing what all the other cool kids are doing, be it good or not.
1452: [20:27:53] <jedateach> Pyromanik: right, thanks for trying :D
1453: [20:27:59] <antmas> Kingy: nice
1454: [20:28:09] <antmas> shouldn't be too hard to get work then I'd imagine
1455: [20:28:13] <antmas> good pay I wonder?
1456: [20:28:25] <Kingy> yeah I had a look into that
1457: [20:28:32] <Kingy> average for web dev is 1,400BHD a month
1458: [20:28:39] <Pyromanik> Kingy, so you already got this job, or you going to apply?
1459: [20:28:46] <Kingy> which is $4,600NZD
1460: [20:28:50] <Pyromanik> I hear Bahrain has a GP or something, sounds fun.
1461: [20:28:59] <Kingy> Pyromanik: Nah I have nothing yet, gf has the job offer
1462: [20:29:09] <Pyromanik> your gf is a php dev?
1463: [20:29:09] <Kingy> I either go and live on her dime and freelance or i find a job
1464: [20:29:15] <Kingy> Pyromanik: no teacher
1465: [20:29:18] <Pyromanik> oic
1466: [20:29:20] <Pyromanik> fun!
1467: [20:29:34] <Kingy> antmas: also 100% tax free, and they school is paying for our apartment
1468: [20:29:52] <Pyromanik> I like to teach people but I don't have the patience to be a teacher
1469: [20:29:52] <antmas> Kingy: nice, so pretty decent pay, living is paid for
1470: [20:29:58] <antmas> stay for a few years and save truckloads
1471: [20:30:10] <Pyromanik> if someone doesn't get something after several attempts I'd just call them a fuck'n pudding brain and move on
1472: [20:30:10] <Kingy> pmuch
1473: [20:30:25] <antmas> get in with the oil dudes and come home with like 213 lambos
1474: [20:30:31] <Kingy> Pyromanik: agreed, and it's basically custom for students to be shits nowadays
1475: [20:30:31] <Pyromanik> lol
1476: [20:30:41] <Colin[pi]> morning all
1477: [20:30:49] <antmas> Colin[pi]: HAICOLIN
1478: [20:30:50] <zippy> morning
1479: [20:30:52] <antmas> o/
1480: [20:30:54] <zippy> Colin[pi]: early start?
1481: [20:30:54] <Kingy> antmas: haha the people we met said they bought the biggest V8 they could find because petrol is like 21c :P
1482: [20:30:55] <Pyromanik> Kingy, students were always shits. They're just more blazen/have less respect these days.
1483: [20:30:56] <Colin[pi]> OMGHAI
1484: [20:31:08] <Colin[pi]> zippy: gf started at 7am, so I'm up early
1485: [20:31:12] <zippy> i c
1486: [20:31:25] <antmas> Kingy: yeah dude, also, all the roads are straight so it's fut flat 24/7
1487: [20:31:28] <antmas> foot* lol
1488: [20:31:36] <zippy> I have a list of li items, which have been formatted to float beside each other and act like blocks
1489: [20:31:44] <zippy> The problem is, when one of them gets too big, it fucks the order
1490: [20:31:58] <zippy> I can't touch the html, but I can tweak the css
1491: [20:32:10] <JeremyRoundill> Pyromanik: Pretty much.
1492: [20:32:11] <zippy> (otherwise, I would make it into rows and have 3 in each etc).
1493: [20:32:40] <Colin[pi]> jedateach: DataModel seems to be only used globally, via inst() and not extended or instantiated
1494: [20:32:40] <zippy> http://codepen.io/zippy/pen/ELIba - so list 1 works fine, but shit blows up in the second list...
1495: [20:32:48] <adrexia> Pyromanik I like teaching fast learners, but also get frustrated when the communication gap is too big
1496: [20:32:57] <Colin[pi]> jedateach: some sort of registry pattern? idek
1497: [20:33:43] <adrexia> luckily, most of the people I have taught were never made to learn, so the audience was a bit self selecting in my favour.
1498: [20:34:06] <zippy> probably a stretch to use li for this
1499: [20:34:44] <zippy> I can set the height to say, 65px which makes them all line up, but now the top list is far to big
1500: [20:35:17] <adrexia> zippy - that is one of the traditional css problems
1501: [20:35:33] <adrexia> its basically not nicely solvable without javascript ;)
1502: [20:35:36] <jedateach> Colin[pi]: Pyromanik: a bit more info here: https://github.com/silverstripe/silverstripe-framework/commit/7fbb919ce824ba3b80e0c294c90c9b42d048bdca
1503: [20:35:45] <zippy> adrexia: mmm true
1504: [20:36:05] <adrexia> you can use set heights, but then you limit yourself
1505: [20:36:27] <adrexia> tables work, but they are icky
1506: [20:36:52] <adrexia> http://masonry.desandro.com/
1507: [20:37:48] <adrexia> bit overkill for your case though
1508: [20:37:52] <zippy> yea over kill there
1509: [20:38:06] <Colin[pi]> jedateach: so basically in an effort to use non static access?
1510: [20:38:14] <zippy> i could write some js to find the higest item in the list, then set them all to that height
1511: [20:38:24] <adrexia> yeah - that's what I would do
1512: [20:38:27] <adrexia> for each line
1513: [20:38:55] <adrexia> having done it a few times, it gets a bit ugly once you encounter responsive
1514: [20:38:58] <zippy> he has 50~ html files with this in, so can't touch the html (he doesn't want to use cms / template)
1515: [20:39:15] <jedateach> Colin[pi]: seems like a good thing to me.
1516: [20:40:45] <adrexia> zippy you could try li:nth-child(4) {
1517: [20:40:45] <adrexia> clear:both;
1518: [20:40:45] <adrexia> }
1519: [20:40:52] <zippy> woooooo
1520: [20:40:57] <adrexia> if you don't need IE8
1521: [20:41:00] <zippy> ah
1522: [20:41:01] <Pyromanik> jedateach, yeah, that's what the in file docs say too
1523: [20:41:04] <Pyromanik> but ...
1524: [20:41:05] <Pyromanik> idek.
1525: [20:41:06] <Pyromanik> sigh
1526: [20:41:14] <zippy> adrexia: lets check his analytics
1527: [20:41:21] <Kingy> zippy you don't need IE8, now that there is an EOL for it you should be phasing it out
1528: [20:41:35] <Pyromanik> zippy, are they all in the same list?
1529: [20:41:38] <zippy> Kingy: oh yea, I don't say I support it
1530: [20:41:42] <adrexia> even if you do - it might be easier to apply a class to the third item in each list that rely on inline js
1531: [20:41:51] <Ryan-Toast> zippy: http://codepen.io/anon/pen/rgnoC
1532: [20:42:06] * spekulatius has joined #silverstripe
1533: [20:42:11] <Pyromanik> TUNING FAILED
1534: [20:42:12] <Pyromanik> dark
1535: [20:42:17] <zippy> Ryan-Toast: yea that is what adrexia proposed
1536: [20:42:21] * UncleCheese has joined #silverstripe
1537: [20:42:21] <adrexia> (the proiblem that wouldn't solve is if your items needed a background color/border and to be equal height)
1538: [20:42:23] <zippy> Ryan-Toast: you and your scss fancy ness
1539: [20:42:41] <Ryan-Toast> zippy: get on board the scss train. ALL ABOARD
1540: [20:42:50] <Ryan-Toast> CHOO CHOO MOTHER FUCKER
1541: [20:42:55] <adrexia> lol
1542: [20:43:11] <Ryan-Toast> if you wanted the things to be the same height I would use flexbox.
1543: [20:43:35] <antmas> awwwwww yeah got a key for Evolve
1544: [20:43:47] <adrexia> http://caniuse.com/#feat=flexbox
1545: [20:43:52] <zippy> oh yus!
1546: [20:43:53] <adrexia> almost
1547: [20:44:05] <Ryan-Toast> adrexia: pol;yfills, brah
1548: [20:44:11] <zippy> ie8 is 2,003 visits of 101,544. I can live with that
1549: [20:44:23] <adrexia> yeah, just... *sighs*
1550: [20:44:50] <adrexia> zippy - and it will look a little odd, but still work, so I think taht's fine
1551: [20:44:58] <zippy> antmas: I agree
1552: [20:45:03] <zippy> done and done!! thanks adrexia and Ryan-Toast
1553: [20:45:06] <Ryan-Toast> adrexia: fallbacks are pretty easy to make
1554: [20:45:57] <adrexia> yeah, I just try to avoid kitchen sinking it and inevitably fail.
1555: [20:46:12] <Ryan-Toast> I know what you mean, haha
1556: [20:46:15] <adrexia> I just want everything to work, damn it!
1557: [20:46:29] <Ryan-Toast> Foundation is flex now, isn’t it?
1558: [20:46:31] <Pyromanik> so does everyone.
1559: [20:46:36] <Pyromanik> I want es6 proxys
1560: [20:47:00] <Pyromanik> but, that's because I'm too hopster for stipulating webkit(ish) only
1561: [20:47:04] <adrexia> not sure, is it?
1562: [20:47:22] <Pyromanik> everyone is on the box model chutney train
1563: [20:47:31] <Ryan-Toast> adrexia: just checked..it’s not.
1564: [20:47:32] <Ryan-Toast> :P
1565: [20:47:41] <Pyromanik> everyone is on the box model chutney train
1566: [20:47:42] <adrexia> hahaha
1567: [20:48:08] <adrexia> having tried foundation recently, there are bits I like, and bits that make me question its sanity
1568: [20:48:18] <adrexia> it's like a less awesopme version of gumby
1569: [20:48:19] <Pyromanik> adrexia, pretty much my conclusion.
1570: [20:48:26] <Ryan-Toast> adrexia: did you mean every front-end framework ever?
1571: [20:48:32] <adrexia> hahah
1572: [20:48:55] <adrexia> I think specifically gumby. They are related but went off on different paths
1573: [20:49:07] <Pyromanik> Like when they close your bugfixes with no merge and no explanation, then continue on to still have the same bug in the same place preventing a large amount of usage from the subsystem over a year later
1574: [20:49:35] <Pyromanik> why? because fuck you foundation. smegma gobblers.
1575: [20:49:43] <adrexia> so they have familial resemblance, but gumby makes more sense to me.
1576: [20:50:02] * pippy has joined #silverstripe
1577: [20:50:07] <adrexia> Pyromanik, lols
1578: [20:50:24] <Ryan-Toast> adrexia: I haven’t tried gumby.
1579: [20:50:43] <Pyromanik> I looked at their homepage recently, and they were all "Make our product for us, and we might give you a tee shirt if you basically do our jobs for us enough"
1580: [20:50:54] <Pyromanik> ps. we won't merge your commits, so fuck'n gl with that, LOL
1581: [20:50:58] <adrexia> Pyromanik, open source? ;)
1582: [20:51:18] <adrexia> Ryan-Toast, I like it. It is huge though
1583: [20:51:24] <Pyromanik> adrexia, yeah, but their page is actually specifically set out to be all 'fucking do our job for us, minions.'
1584: [20:51:26] <adrexia> like bootstrap used to be
1585: [20:51:32] <adrexia> but you donb't havce to use all of it
1586: [20:51:33] * scpi has joined #silverstripe
1587: [20:51:36] <Ryan-Toast> adrexia: 30% of boostrap is what I use.
1588: [20:51:41] <adrexia> yeah
1589: [20:51:58] <Pyromanik> I can't be fucked slicing includes, so I just pull the entire fucking thing in.
1590: [20:52:04] <Pyromanik> probably use about 20%
1591: [20:52:07] * Pyromanik shrugs
1592: [20:52:09] <adrexia> I'm not a fan of the col-md-6 col-sm-8 syntax
1593: [20:52:11] <Pyromanik> because fuck designing man :P
1594: [20:52:16] <Pyromanik> adrexia, ha, neither am I.
1595: [20:52:19] <adrexia> I'd rather do that sort of thing in css
1596: [20:52:24] <Pyromanik> But then I'm not a big fan of about 100% of grid systems.
1597: [20:52:37] <adrexia> I like gumby's ;)
1598: [20:52:44] <Pyromanik> link
1599: [20:52:44] <adrexia> it's maths smart
1600: [20:52:55] * micmania1 quit (Quit: micmania1)
1601: [20:52:59] <adrexia> http://gumbyframework.com/docs/grid/
1602: [20:52:59] <Pyromanik> wait, is gumby one of these 1337 scss only things?
1603: [20:53:02] <Ryan-Toast> adrexia: I kind of like it, I’m not a fan of the amount of div nesting though.
1604: [20:53:11] * SightUnseen has joined #silverstripe
1605: [20:53:15] * SightUnseen has left #silverstripe
1606: [20:53:22] <adrexia> that's always going to be an issue with grids :-/
1607: [20:53:40] <adrexia> but semantic grids and fancytiles removes that to some extent
1608: [20:53:47] <Ryan-Toast> Still on your preproccessor hate train, Pyro?
1609: [20:54:02] <Ryan-Toast> adrexia: flexbox…one day
1610: [20:54:14] <adrexia> Pyromanik hmmm scss or css
1611: [20:54:22] <wmk> isn't gumby a foundation fork?
1612: [20:54:36] <adrexia> but if you want just csss, use Pure
1613: [20:54:46] <adrexia> wmk - yep
1614: [20:54:47] <Ryan-Toast> adrexia: Pyro is more of a php with css header kind of guy.
1615: [20:54:51] <adrexia> once upon a time
1616: [20:54:58] <wmk> adrexia, what's better than foundation?
1617: [20:55:04] <Pyromanik> Ryan-Toast, lies.
1618: [20:55:08] <adrexia> like all of it ;)
1619: [20:55:12] <Ryan-Toast> Pyromanik: :P
1620: [20:55:13] <adrexia> but the grid for one
1621: [20:55:20] <adrexia> its very different
1622: [20:55:24] <Pyromanik> I'm a UTF-8 css with a let the web server figure out the f'n header kinda guy.
1623: [20:55:31] <adrexia> just a similar langauge
1624: [20:56:00] <Pyromanik> yeah, so gumby's grid is basically how I envisaged building a grid a year or two ago when I evaluated all systems I could find
1625: [20:56:06] <Pyromanik> and they were all shit
1626: [20:56:23] <adrexia> yeah, that's sort of how I felt when I first saw it
1627: [20:56:42] <Pyromanik> but I don't remember the exact specifics, so I won't say it's good... but it's certainly looking a lot better than the others.
1628: [20:56:55] <adrexia> then I looked at the maths they wrote to do it and decided it was good they had done it for me
1629: [20:57:09] <Pyromanik> haha, yeh
1630: [20:58:50] <Pyromanik> but when you've got designers that don't design to grid systems, then it's a fucking crapshoot anyway.
1631: [20:58:58] <Pyromanik> so fuckit, hand code BEST FREEDOM
1632: [20:59:25] <Ryan-Toast> adrexia: making a material design theme for bootstrap since I couldn’t find a good one: http://i.imgur.com/lKDFSiw.jpg
1633: [20:59:28] <zippy> adrexia: Ryan-Toast only issue is when I have more than 6 items; http://codepen.io/zippy/pen/kAEoy - so I think I need to change the nth-child(4) to nth-child(4n) but that doesn't seem to work right
1634: [20:59:47] <Ryan-Toast> zippy: good point
1635: [21:00:08] <Ryan-Toast> I think you can do a nth child + 1
1636: [21:00:11] <adrexia> true
1637: [21:00:31] <Ryan-Toast> nth-child(3n+1)
1638: [21:00:32] <adrexia> is the list infinately flexible?
1639: [21:00:45] * adrexia nods
1640: [21:01:26] <adrexia> works good
1641: [21:01:49] <adrexia> I really like that css can count these days
1642: [21:02:16] <zippy> Ryan-Toast: that works, was trying 4n+1 :) lol
1643: [21:02:21] <Ryan-Toast> zippy: :P
1644: [21:03:32] <adrexia> material design = flat design + pretty colours
1645: [21:03:36] <adrexia> lols
1646: [21:03:55] <Ryan-Toast> adrexia: I love the google spec for it
1647: [21:04:06] <adrexia> yeah, its nice to look at :)
1648: [21:04:24] <Ryan-Toast> adrexia: need to make a template asap so I can cash in.
1649: [21:04:30] <adrexia> lols
1650: [21:04:32] <adrexia> true that
1651: [21:04:47] <adrexia> get in before it hits the biog time
1652: [21:04:59] <Ryan-Toast> nonono, be the first blog :P
1653: [21:05:11] * adrexia waits for google to release their frontend framework
1654: [21:05:25] <adrexia> actually, I've seen their css. its not good
1655: [21:06:00] <Ryan-Toast> googles?
1656: [21:06:05] <Ryan-Toast> on the material design thingy?
1657: [21:06:19] <adrexia> nah, just in general
1658: [21:06:41] <adrexia> this isn't so bad - but its certainly styled for purpose rather than for reuse
1659: [21:06:49] <Ryan-Toast> adrexia: I haven’t really had a look.
1660: [21:07:12] <adrexia> what, its not like the first thing you do when you hit a new website? ;)
1661: [21:07:41] <adrexia> to be fair, they uglify most of thier output these days
1662: [21:09:02] <adrexia> yeah. this fits the new inbox app pretty well
1663: [21:09:31] <adrexia> I wonder if all the other apps will be undated to match
1664: [21:09:49] <Ryan-Toast> adrexia: Normally I look to see if they have ascii art in thier comments :P
1665: [21:09:55] <adrexia> hehehe
1666: [21:10:26] * UncleCheese quit (Ping timeout: 256 seconds)
1667: [21:11:10] <Ryan-Toast> Man this Lewis Road Creamery chocolate milk is all kinds of average.
1668: [21:11:42] <Pyromanik> WHOLEY FUCK MY BRAIN IS FULL OF WINNING http://www.youtube.com/watch?v=eYyKRaKjLD0
1669: [21:11:48] <adrexia> I... only just realised why people were going mad about chocolate milk yesterday
1670: [21:12:37] * catcher quit (Quit: Leaving)
1671: [21:12:38] <JeremyRoundill> Ryan-Toast: I'm happy you say that. It means I'm not missing out on anything.
1672: [21:12:43] <Ryan-Toast> adrexia: Thought about tipping this one out and filming it just to make facebook people salty as fuck.
1673: [21:12:48] <JeremyRoundill> Ryan-Toast: I do love joining in in mass hysteria.
1674: [21:17:53] <Ryan-Toast> “Owl Carousel has been choosen as number one jQuery plugin by hundreds of developers” lol, HUNDREDS????!!!!!
1675: [21:18:18] <adrexia> lol
1676: [21:18:29] <adrexia> I have used it
1677: [21:18:29] <Ryan-Toast> pretty good slider/carousel though.
1678: [21:18:36] <adrexia> it wasn't too sucky
1679: [21:18:45] <Ryan-Toast> 2.0 should be out of beta soon.
1680: [21:19:10] <adrexia> but it didn't want to let me edit how fast it went, despite it saying that it would and this is how to do it...
1681: [21:20:24] * travis-ci has joined #silverstripe
1682: [21:20:24] <travis-ci> chillu/silverstripe-framework#152 (pulls/formfield-attrs-extend - 177c8bc : Ingo Schommer): The build passed.
1683: [21:20:24] <travis-ci> Change view : https://github.com/chillu/silverstripe-framework/compare/07eef2ece208^...177c8bc30fab
1684: [21:20:24] <travis-ci> Build details : http://travis-ci.org/chillu/silverstripe-framework/builds/39314545
1685: [21:20:24] * travis-ci has left #silverstripe
1686: [21:23:20] * mahfuz has joined #silverstripe
1687: [21:23:30] <mahfuz> Good Morning
1688: [21:27:18] <Pyromanik> this guy
1689: [21:27:25] <zippy> mahfuz: hi
1690: [21:27:37] <zippy> Is it possible to 'clean' a database, to remove all old tables and columns not being used?
1691: [21:27:52] <zippy> I think i would have to create a new database, do a dev / build and write a script to check tables and remove..
1692: [21:27:56] * UncleCheese has joined #silverstripe
1693: [21:28:23] <Pyromanik> zippy,of course it is
1694: [21:28:28] <Pyromanik> drop database lol;
1695: [21:28:31] <zippy> :)
1696: [21:28:37] <Pyromanik> dev/build
1697: [21:29:02] <zippy> yes, but I want to keep the existing data. So I figure i'd have to run that on a new database, then check which tables and columns I can remove (via script)
1698: [21:29:03] <Pyromanik> to automate it? well...
1699: [21:29:05] <zippy> UncleCheese: hows things going
1700: [21:29:16] <zippy> UncleCheese: progress on the home front?
1701: [21:29:17] <UncleCheese> looked at a house today
1702: [21:29:21] <UncleCheese> in korokoro
1703: [21:29:32] <UncleCheese> abhor-o abhor-o
1704: [21:29:35] <Pyromanik> zippy, you'll have to export the data, then create a new db, then pull the old data into the new one for tables and fields applicable only
1705: [21:30:01] <zippy> UncleCheese: no other issues with ppl at night?
1706: [21:30:10] <UncleCheese> been quiet
1707: [21:30:11] <Pyromanik> or you could make a new db, then assess what tables and fields are in it, then get what tables and fields are in your old one, then array_diff recursively or something, then drop what's left.
1708: [21:30:18] <UncleCheese> landlord installed a motion sensitive light
1709: [21:30:26] <Pyromanik> make a build task for it, release as a module, peopel will love you.
1710: [21:30:26] <UncleCheese> right at eye level, so the burglar can just smash it
1711: [21:30:27] <Pyromanik> do it
1712: [21:30:28] <UncleCheese> sweet
1713: [21:30:29] <wmk> zippy, afaik unused tables are renamed to obsolete_Foo
1714: [21:30:32] <zippy> Pyromanik: yea, something like that is what I am thinking
1715: [21:30:35] <Pyromanik> cite me, because I'm the champion that came up with it
1716: [21:30:38] <wmk> fields not
1717: [21:30:38] <zippy> wmk: im am also thiunking of fields
1718: [21:31:22] <zippy> and unused tables are not removed if you just delete the old object (like deelte the old foo.php file)
1719: [21:31:37] <Pyromanik> ain't no party like an obsolete field party
1720: [21:31:59] <UncleCheese> goign to see a lawyer today, too
1721: [21:32:34] <Pyromanik> LOL UncleCheese, such a champion.
1722: [21:32:40] <UncleCheese> what?
1723: [21:32:43] <Pyromanik> dem landlords like
1724: [21:32:50] <UncleCheese> i do come from Suemerica
1725: [21:33:18] <mahfuz> I am getting a message shown on top of a form "Your session has expired. Please re-submit the form." How to avoid this?
1726: [21:33:23] <Pyromanik> yeah but at eye level? Even if there wasn't a burglar, what the fuck good is a <directional> light at eye level!?
1727: [21:33:36] <UncleCheese> so dumb
1728: [21:33:43] <UncleCheese> and she said we're on our own to change the batteries
1729: [21:33:47] <Pyromanik> mahfuz, disable security token
1730: [21:33:48] <Pyromanik> ???
1731: [21:33:52] <Pyromanik> love all the xss
1732: [21:33:54] <UncleCheese> which, i know is paltry, but, come on
1733: [21:34:05] <UncleCheese> she just doesn't know what she's doing
1734: [21:34:16] <Pyromanik> UncleCheese, wait, so it's fuck'n eye level AND battery operated?
1735: [21:34:18] <Pyromanik> dafuq.
1736: [21:34:22] <UncleCheese> yeah
1737: [21:34:29] <Pyromanik> Clues: 0
1738: [21:34:52] <UncleCheese> i mean, it's not eye level, but definitely not a huge stretch
1739: [21:34:59] <Colin[pi]> battery operated? dafuq
1740: [21:35:01] <UncleCheese> like, you could high-five the thing out of commission
1741: [21:35:04] <mahfuz> Pyromanik: you mean omitting this from the Form Template - $Fields.dataFieldByName(SecurityID)
1742: [21:35:05] <Pyromanik> oh right, you're just tall. But yeah, battery what?
1743: [21:35:07] <Colin[pi]> where'd they get it from, the two dollar shop?
1744: [21:35:11] <UncleCheese> Colin[pi] LOL
1745: [21:35:17] <UncleCheese> well it took her 10 days to get it
1746: [21:35:19] <Pyromanik> is it _stuck_ to the side of the building? With double sided tape?
1747: [21:35:23] <UncleCheese> so must have been a sweet online deal
1748: [21:35:27] <Colin[pi]> super happy fun time motion sensor FOR YOUR LIFE
1749: [21:35:31] <UncleCheese> Pyromanik i believe there's a screw
1750: [21:35:31] <antmas> pls tell ime it has been stuck on with tape
1751: [21:35:36] <UncleCheese> antmas hahaha
1752: [21:35:40] <antmas> 'a' screw
1753: [21:35:59] <Pyromanik> did they even drill a pilot hole before installing? SIGNS POINT TO NO
1754: [21:36:12] <UncleCheese> no
1755: [21:36:16] <antmas> LOL
1756: [21:36:32] <UncleCheese> most half-assed landlord ever
1757: [21:36:45] <Pyromanik> so when I pop around tonight UncleCheese I should just bring some postit notes with me, is that what you're saying?
1758: [21:36:50] <UncleCheese> HA
1759: [21:37:08] <UncleCheese> yeah, well, if you're not careful you might bump your head and knock the light off
1760: [21:37:12] <Pyromanik> wait, fuck'n wellington... postit notes and a rubber band
1761: [21:37:13] <zippy> haha
1762: [21:37:35] <zippy> I build a list of things in my ArrayList() and then I want to sort them - but the bastard wont sort
1763: [21:37:45] <Pyromanik> why not zippy?
1764: [21:37:47] <UncleCheese> zippy lists are immutable
1765: [21:37:48] <zippy> I am adding a a few records form different DataObjects, and then trying to sort on the Created
1766: [21:37:59] <zippy> UncleCheese: then why have a sort function on them
1767: [21:38:00] <Pyromanik> zippy, $list = $list->sort()
1768: [21:38:03] <UncleCheese> $newList = $oldList->sort('foo');
1769: [21:38:03] * scpi quit (Quit: scpi)
1770: [21:38:04] <zippy> Pyromanik: yea
1771: [21:38:04] <UncleCheese> oh ok
1772: [21:38:06] <Pyromanik> zippy, derp
1773: [21:38:08] <zippy> UncleCheese: ahh
1774: [21:38:12] <UncleCheese> and it's failing?
1775: [21:38:19] <zippy> no, I wasn't assiging it out
1776: [21:38:28] <UncleCheese> right
1777: [21:38:29] <Pyromanik> that's what immutable means zippy
1778: [21:38:30] <zippy> I just assumed $foo->sort() would sort that list
1779: [21:38:33] <UncleCheese> that's the biggest mistake people make
1780: [21:38:34] <Pyromanik> it does
1781: [21:38:35] <Pyromanik> !
1782: [21:38:41] <UncleCheese> i'm not a fan of the immutability, but
1783: [21:38:45] <Pyromanik> I am
1784: [21:38:53] <Pyromanik> Hey bros, strings are immutable in JS
1785: [21:38:59] <Pyromanik> don't hear anyone whinging about that :>
1786: [21:39:04] <UncleCheese> ?
1787: [21:39:07] <Pyromanik> :P
1788: [21:39:07] <UncleCheese> oh
1789: [21:39:11] <UncleCheese> you're right, Pyromanik
1790: [21:39:16] <UncleCheese> and that fucking annoys me
1791: [21:39:19] <Pyromanik> haha
1792: [21:39:33] <UncleCheese> i dunno
1793: [21:39:40] <Pyromanik> UncleCheese: Mutability champion. You heard it here first.
1794: [21:39:44] <Pyromanik> I like immutability.
1795: [21:40:00] <UncleCheese> i just wish they were consistent with it
1796: [21:40:03] <mahfuz> Pyromanik: you mean dropping this from the Form Template - $Fields.dataFieldByName(SecurityID)
1797: [21:40:04] <Pyromanik> who?
1798: [21:40:05] <UncleCheese> formfields are mutable
1799: [21:40:10] <Pyromanik> formfields aren't a list
1800: [21:40:17] <UncleCheese> mahfuz you shouldn't have to disable the security token
1801: [21:40:19] <UncleCheese> what's going on?
1802: [21:40:41] <UncleCheese> Pyromanik right, but why the arbitrary distinction with lists?
1803: [21:40:42] <Pyromanik> mahfuz, no I meant $form->disableSecurityToken();
1804: [21:40:42] <mahfuz> I am getting a message shown on top of a form "Your session has expired. Please re-submit the form." How to avoid this?
1805: [21:40:54] <Pyromanik> UncleCheese, because lists
1806: [21:40:56] <mahfuz> Thanks Pyromanik
1807: [21:40:58] <UncleCheese> you need to restart your session, mahfuz
1808: [21:41:07] <UncleCheese> disabling the security token is not a good idea
1809: [21:41:11] <Pyromanik> yeah, it's not.
1810: [21:41:20] <Pyromanik> but it will solve the problem!
1811: [21:41:24] <Pyromanik> :P
1812: [21:41:43] <UncleCheese> mahfuz don't listen to Pyromanik .. he's clearly obsessed with fire
1813: [21:41:48] <UncleCheese> and he wants your website to burn to the ground
1814: [21:42:59] <Pyromanik> http://logs.simon.geek.nz/index.php?date=2014-10-29#log_1473337
1815: [21:43:08] <Pyromanik> http://logs.simon.geek.nz/index.php?date=2014-10-29#log_1473339
1816: [21:43:17] * jedateach quit (Ping timeout: 260 seconds)
1817: [21:43:39] <mahfuz> The form is working fine but after some time when I open the page it shows that message. I am not saving any thing from the form. It is just used to take input from the user for an advanced search.
1818: [21:46:01] <Pyromanik> mahfuz, because you left the page open so long
1819: [21:46:08] <Pyromanik> then tried to reload with the same data
1820: [21:46:19] <Pyromanik> is it a searchform mahfuz?
1821: [21:46:38] <Pyromanik> disable the security token.
1822: [21:47:12] <Pyromanik> it's not really relevant/important/needed/required/necessary for a searchform.
1823: [21:47:32] <mahfuz> Thanks Pyromanik. I will try with that.
1824: [21:49:33] <mahfuz> Its ok if the message shows when the page is open for long but even after I re-submit the form, the message stills shows up.
1825: [21:50:54] <zippy> UncleCheese: Pyromanik yea it works when I use the return value of sort - cheers
1826: [21:51:51] <zippy> mahfuz: if you just hit back, then it's probably got the same value in the hidden field, you'd need to refresh the page
1827: [21:53:12] <antmas> asb fastnet down?
1828: [21:53:45] <JeremyRoundill> Fastnet Classic?
1829: [21:53:50] <antmas> yeh
1830: [21:53:56] <JeremyRoundill> "Sorry, unfortunately this service is currently unavailable.
1831: [21:53:56] <JeremyRoundill> Please try again shortly. We apologise for any inconvenience.
1832: [21:53:56] <JeremyRoundill> "
1833: [21:54:05] <JeremyRoundill> Yarp
1834: [21:54:07] <antmas> hah, was just timing out for me
1835: [21:54:29] <JeremyRoundill> My friend's dad worked in IT at ASB
1836: [21:54:32] <JeremyRoundill> Databases, I think.
1837: [21:54:44] <JeremyRoundill> Apparently it's as much of a clusterfuck as you might imagine.
1838: [21:55:06] <JeremyRoundill> Old systems with loads of crap tacked onto them.
1839: [21:55:13] <antmas> sounds like trademe
1840: [21:55:29] <antmas> my best mate is a senior db arch there and WHOLEY FUCK
1841: [21:55:34] <JeremyRoundill> Really?
1842: [21:55:39] <antmas> yeah
1843: [21:55:45] <JeremyRoundill> Yeah, same position as my mate's dad at ASB.
1844: [21:55:53] <antmas> they are slowly migrating into more modern setups
1845: [21:56:09] <JeremyRoundill> I always see it as a problem with capitalism.
1846: [21:56:33] <JeremyRoundill> You ain't gonna turn a better short-term profit by upgrading your systems to be more stable/efficient.
1847: [21:56:38] <Pyromanik> zippy, mahfuz, if you refresh with the refresh button, most browsers keep pre-entered data IN the forms.
1848: [21:56:50] <Pyromanik> you need to click the address (ie, as if to edit it) then press enter.
1849: [21:56:56] <Pyromanik> to reload the page, not just refresh the page.
1850: [21:56:59] <mahfuz> Is there a way to call a function in Page.php and pass a value to it through creating a link in template?
1851: [21:57:45] <zippy> like.... $MyFunction('foo') ?
1852: [21:58:06] <JeremyRoundill> mahfuz: or overriding Link?
1853: [21:58:44] <JeremyRoundill> mahfuz: You might need to explain further. :)
1854: [21:58:59] <adrexia> or like calling a controller method with a variable set?
1855: [21:59:07] <mahfuz> Pyromanik I tried refreshing, clearing the cache and at last typing in the address bar but the form still retains its values and show that message
1856: [22:01:33] <antmas> yaaaaaaay xmas work lunch at Armadillos.... :|
1857: [22:02:04] <JeremyRoundill> mahfuz: Could be stored in a cookie somewhere.
1858: [22:02:37] <JeremyRoundill> antmas: 3/5 stars on Google, sounds delish
1859: [22:03:10] <mahfuz> Pyromanik: But it goes away in incognito window
1860: [22:03:40] <JeremyRoundill> mahfuz: Try CTRL+R to refresh.
1861: [22:03:55] <mahfuz> Tried to clear the cookie also.
1862: [22:03:55] <JeremyRoundill> mahfuz: What's the site you're looking at?
1863: [22:04:00] <mahfuz> zippy and Jeremy: I have a function in Page.php named keywordSearchResults which takes a parameter and does some searching on that and renders in a template. I want to call that function creating a link in some other template passing a string value.
1864: [22:04:44] <antmas> JeremyRoundill: I've eaten there and it's terribad
1865: [22:04:46] <adrexia> you want to call the function with a link? and pass a parameter?
1866: [22:05:00] <adrexia> or does the function create a link?
1867: [22:05:36] <mahfuz> I am developing a site - the dev site link is - http://pixipic.bbtdevelopment.com/
1868: [22:06:48] <JeremyRoundill> mahfuz: Which input is causing you the trouble?
1869: [22:06:50] <antmas> BBT?
1870: [22:07:35] <JeremyRoundill> Haha, my computer is almost too crap to load the BBT site.
1871: [22:07:57] <mahfuz> The Refine Search Form. If I enter some value and search and then keep the page open for some time, then the message shows up.
1872: [22:08:14] <mahfuz> Even if I re-submit the form, it stays
1873: [22:08:39] <JeremyRoundill> Which message is it?
1874: [22:09:01] <mahfuz> Your session has expired. Please re-submit the form.
1875: [22:09:07] <JeremyRoundill> Ahh
1876: [22:09:07] <Pyromanik> [11:03] <mahfuz> Pyromanik: But it goes away in incognito window
1877: [22:09:16] <Pyromanik> of course, you have no cached data in incognito mode
1878: [22:09:20] <mahfuz> Yes
1879: [22:09:20] <JeremyRoundill> Clearing your cookies should definitely fix that.
1880: [22:09:46] <UncleCheese> mahfuz i don't get the error, fwiw
1881: [22:10:21] <JeremyRoundill> Neither do I. Maybe it's because you're logged in.
1882: [22:10:25] <mahfuz> I am worried about the end user. Suppose if they keep the page open for some time after submitting some value through the form, they will keep seeing it.
1883: [22:10:39] <mahfuz> Just wanted to know if there is any way to avoid it?
1884: [22:11:42] <UncleCheese> mahfuz you didabled the security token?
1885: [22:11:44] <Pyromanik> if it's a searchform, disable the token.
1886: [22:12:09] <mahfuz> Logging out and in makes no difference. Only incognito view removes it.
1887: [22:12:10] <UncleCheese> ^^ that
1888: [22:12:10] <Pyromanik> also set the form to be GET, not POST
1889: [22:12:21] <UncleCheese> ^^ that
1890: [22:12:26] <Pyromanik> (if it's a searchform)
1891: [22:12:33] <UncleCheese> Pyromanik is is GET, actually
1892: [22:12:40] <Pyromanik> UncleCheese, not if it's custom.
1893: [22:12:46] <Pyromanik> POST is default for Form::create()
1894: [22:12:48] <mahfuz> It is
1895: [22:12:56] <UncleCheese> no, on his dev site it's using GET
1896: [22:13:02] <Pyromanik> oh
1897: [22:13:24] * Fuxo quit (Quit: Leaving)
1898: [22:14:12] <mahfuz> Any way, I think its not a big deal for now. Can anyone help me on the other issue.
1899: [22:14:19] <Pyromanik> [11:09] <mahfuz> Your session has expired. Please re-submit the form.
1900: [22:14:22] <mahfuz> zippy and Jeremy: I have a function in Page.php named keywordSearchResults which takes a parameter and does some searching on that and renders in a template. I want to call that function creating a link in some other template passing a string value.
1901: [22:14:29] <Pyromanik> what it really means is 'reload the form page' :<
1902: [22:14:30] <Pyromanik> I think
1903: [22:15:21] <Pyromanik> mahfuz, $TemplateVar('value')
1904: [22:15:38] <Pyromanik> it's possible since 3.0
1905: [22:16:12] <mahfuz> Thanks Pyromanik.
1906: [22:16:27] <Pyromanik> yw
1907: [22:17:15] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
1908: [22:17:16] * antmas quit (Ping timeout: 246 seconds)
1909: [22:17:52] <zippy> ahhh fffs viewsonic!
1910: [22:17:58] <zippy> the side of it is shitting otu again
1911: [22:20:26] * antmas has joined #silverstripe
1912: [22:34:01] <simon_w|work> Woo, Wednesday!
1913: [22:34:17] <simon_w|work> Also, major release overnight and only one thing broke! (so far...)
1914: [22:35:42] * toddvale_ quit ()
1915: [22:35:48] <antmas> boooo hump day
1916: [22:39:11] * wmk quit (Ping timeout: 258 seconds)
1917: [22:39:45] <simon_w|work> Mmm, humping
1918: [22:41:57] <zippy> antmas: bit stormy out there eh
1919: [22:42:17] <antmas> zippy: woah, I didn't even notice
1920: [22:42:23] <antmas> windy as
1921: [22:42:26] <zippy> might be a we lunch run
1922: [22:42:31] <zippy> and rain soon too
1923: [22:42:33] <zippy> I feel
1924: [22:42:39] * zippy puts his hand out the window
1925: [22:42:42] <zippy> yup, soon
1926: [22:42:50] <antmas> SOOn
1927: [22:42:59] <antmas> northerly?
1928: [22:43:08] <JeremyRoundill> Looks like Antares exploded.
1929: [22:43:15] <JeremyRoundill> The rocket, not the star.
1930: [22:43:40] <antmas> JeremyRoundill: hmmm?
1931: [22:43:43] <JeremyRoundill> https://pbs.twimg.com/media/B1ETzneIUAES0I0.jpg:large
1932: [22:44:10] <JeremyRoundill> It was an unmanned rocket, exploded 6 seconds after launch.
1933: [22:44:20] <antmas> ouch
1934: [22:44:33] <JeremyRoundill> 3rd rocket to come from Orbital Sciences, I think.
1935: [22:44:39] <antmas> I bet Musk is giggling quietly to himself
1936: [22:44:46] <JeremyRoundill> Haha
1937: [22:44:50] <simon_w|work> Premature explosions is a real problem for these scientists
1938: [22:45:13] <JeremyRoundill> :P
1939: [22:45:26] <JeremyRoundill> The nasa livestream looks like it's just showing fires
1940: [22:46:42] <mudmonth> https://www.youtube.com/watch?v=hn-1X0jpWIU - <-
1941: [22:46:49] <mudmonth> replay
1942: [22:46:50] <antmas> is the weather terribad up in Auckland right now?
1943: [22:46:57] <mudmonth> it's okay
1944: [22:47:01] <mudmonth> there was a thunderstorm before
1945: [22:47:53] <zippy> boom!
1946: [22:48:12] <JeremyRoundill> "Engines at 108%"
1947: [22:48:17] <antmas> lol
1948: [22:48:17] <JeremyRoundill> "That's probably normal"
1949: [22:48:21] <JeremyRoundill> "Boom!"
1950: [22:49:45] <mudmonth> i was saying to my coworker 'it's amazing how they can control a torch with that much power'
1951: [22:49:49] <mudmonth> then it had a sad time
1952: [22:49:54] <mudmonth> i take full responsibility
1953: [22:50:06] <antmas> lol
1954: [22:50:38] <antmas> I wonder if the control guys just see it explode and go 'fuck'
1955: [22:50:56] <JeremyRoundill> They must have.
1956: [22:51:11] <JeremyRoundill> The dude narrating the video was telling everybody to stay at their consoles.
1957: [22:51:18] <mudmonth> there was some voice over i think they meant to cut
1958: [22:51:26] <mudmonth> talking about everyone wiping / scrubbing their consoles
1959: [22:52:08] <antmas> lol
1960: [22:52:10] <antmas> ouch
1961: [22:53:43] <antmas> so much work to do after something like that happens I imagine
1962: [22:53:58] <antmas> no 'ah fuck it, go home, get some rest and we'll take a look tomorrow'
1963: [22:54:22] * pippy quit (Ping timeout: 246 seconds)
1964: [23:07:04] <Kingy> +1 antmas lol
1965: [23:07:37] <mahfuz> Is it the correct syntax to call a function in Page.php and pass some value? - <a href="$keywordSearchResults($Title)" title="$Title">$Title</a> - This is within a loop. My href is not getting any link. The function keywordSearchResults is defined in Page.php
1966: [23:08:23] <mahfuz> I am calling the function from a template of another page which is derived from Page
1967: [23:08:29] <zippy> mahfuz: in a template you can't pass a varialbe to a function
1968: [23:08:42] <zippy> you can do keywordSearchResults('foo')
1969: [23:08:54] <zippy> but not keywordSearchResults($Foo)
1970: [23:08:58] <zippy> I don't htink..
1971: [23:10:50] <UncleCheese> zippy yes you can
1972: [23:11:01] <zippy> am I thinking of 2.1..
1973: [23:11:23] <UncleCheese> mahfuz if you're in a loop, you need to break out of it
1974: [23:11:30] <UncleCheese> $Up.MyFunction
1975: [23:11:45] <UncleCheese> the loop is scoped to each object that it's iterating over
1976: [23:12:04] <UncleCheese> is keywordSearchResults your form handler?
1977: [23:13:00] <mahfuz> I have made a separate function named keywordSearchResults
1978: [23:13:06] <UncleCheese> what does it do?
1979: [23:13:21] <mahfuz> Let me give you a code snippet
1980: [23:13:26] <UncleCheese> just show me the whole thing
1981: [23:13:32] <UncleCheese> this looks like a mess
1982: [23:13:34] <mahfuz> ok
1983: [23:13:46] <UncleCheese> and by that i mean, you're working way too hard
1984: [23:14:23] <simon_w|work> <milesj> FB site no worky.
1985: [23:14:24] <simon_w|work> <joelm> milesj: Yeah, we know :)
1986: [23:14:31] <UncleCheese> simon_w|work me too
1987: [23:14:55] <simon_w|work> UncleCheese, so copy Miles and complain to the infra team :p
1988: [23:15:00] <UncleCheese> whoa, is that from the facebook irc?
1989: [23:15:04] <UncleCheese> oh, ok
1990: [23:15:12] <UncleCheese> i could just post to #reactjs
1991: [23:15:27] <zippy> antmas: and there is the rain
1992: [23:17:08] <antmas> zippy: yup, looks like it will hangt around too
1993: [23:17:22] <mahfuz> UC: here is the code - http://www.sspaste.com/paste/show/54501e798b0c6
1994: [23:17:23] <Kingy> just a heads up
1995: [23:17:23] <zippy> antmas: cold rain as wlel, brrr
1996: [23:17:26] <Kingy> masterton is fucking beautiful
1997: [23:17:35] <Kingy> little breeze
1998: [23:17:42] <Kingy> but sunny :)
1999: [23:18:30] <mahfuz> I am getting Page not found error
2000: [23:18:44] <mahfuz> when clicking the link
2001: [23:19:42] <JeremyRoundill> Who linked that amplitude modulation video earlier?
2002: [23:22:20] * lerni quit ()
2003: [23:23:11] <zippy> mahfuz: <a href="keywordSearchResults($Title)" -> <a href="$Top.keywordSearchResults($Title)"
2004: [23:24:26] * pippy has joined #silverstripe
2005: [23:24:40] <zippy> JeremyRoundill: [11:46:42] <mudmonth> https://www.youtube.com/watch?v=hn-1X0jpWIU - <-
2006: [23:25:05] <JeremyRoundill> Well, it's fairly interesting, mudmonth. :D
2007: [23:25:06] <JeremyRoundill> Cheers
2008: [23:30:34] <Ryan-Toast> adrexia: What method do you use to get google tag manger at the top of the body, but combined js at the bottom?
2009: [23:31:01] <adrexia> grunt or gulp ;)
2010: [23:31:19] <Ryan-Toast> I mean in a template
2011: [23:31:21] <adrexia> silverstripe requirements fail at that use case
2012: [23:31:52] <adrexia> I do too. I mean, I bypass the silverstripe requirements stuff
2013: [23:32:01] <adrexia> it can't do that :(
2014: [23:32:08] <Ryan-Toast> hmm
2015: [23:32:16] <Ryan-Toast> it’s pretty annoying.
2016: [23:32:17] <adrexia> you *can* put things in the head
2017: [23:32:20] <adrexia> yes
2018: [23:32:30] <Ryan-Toast> not tag manager, needs to be first thing in the body.
2019: [23:32:36] <adrexia> really needs to be fixed if its actually going to be useful for frontend devs
2020: [23:32:42] <adrexia> yeah
2021: [23:32:48] <Ryan-Toast> and then ideally I would have the age html then the combined as the last thing in the body
2022: [23:33:04] <adrexia> yep
2023: [23:33:35] <adrexia> but silverstripe requirements tries tyo be smart and put iteself where it finds the first piece of js in the element specified (head or body)
2024: [23:33:41] <Ryan-Toast> Guess I’ll make my own requirements hook.
2025: [23:33:42] <adrexia> it's a pain point
2026: [23:34:04] <Ryan-Toast> I’d rather it didn’t try to be clever.
2027: [23:34:21] <adrexia> me too
2028: [23:34:22] <adrexia> https://github.com/silverstripe/silverstripe-framework/issues/3526
2029: [23:34:24] <adrexia> ;)
2030: [23:35:00] <adrexia> but since the actual issue got fixed I figured I had to close that. Even though the best solution is still to let us choose where the js is rendered
2031: [23:35:04] <mahfuz> zippy: I changed the line to - <a href="$Top.keywordSearchResults($Title)" title="$Title">$Title</a>
2032: [23:35:54] * Stomach_ is now known as Stomach
2033: [23:36:14] <mahfuz> But its breaking the page. In place of all the keywords to be shown, it is showing the resultant pages
2034: [23:36:38] <adrexia> Ryan-Toast, also ingo's comemnt here proposes much the same solution https://github.com/silverstripe/silverstripe-framework/pull/3459
2035: [23:37:12] <adrexia> now that the specific bug is fixed I wonder if there is actually any motivation to fix the actual problem though
2036: [23:37:14] * spronkHD has joined #silverstripe
2037: [23:38:22] <mahfuz> I mean the function is running and showing its output in the place
2038: [23:38:39] <Ryan-Toast> adrexia: “Instead, we should allow to set an explicit marker in the template on where you want any tags to be injected.” this
2039: [23:38:45] <adrexia> yes
2040: [23:39:18] <adrexia> that is the thing many of us have wanted for quite sometime now
2041: [23:39:29] <adrexia> but meh
2042: [23:40:06] <adrexia> requirements does a lot more than I actually need, so I just use tools to minimize js and css and explicitly include
2043: [23:40:30] <Ryan-Toast> Yeah, I may have to go along that route.
2044: [23:40:43] <Ryan-Toast> being able to queue requirements would be nicve too.
2045: [23:40:57] <mahfuz> I don't want the function to be executed there. Instead the link should fire the function and the output will be shown in the template it is being rendered with
2046: [23:40:58] <adrexia> mahfuz because you actually need to use controller methods and rerender. Or use ajax or whatever
2047: [23:41:20] <adrexia> your question wasn't clear so the answer doesn't really fit in this case
2048: [23:41:24] <Ryan-Toast> CakePHP does this the best. You can register the js file with ahook, much like you do with Inpt fields in SS, and you can queue scripts after that hook.
2049: [23:41:55] <adrexia> mahfuz http://doc.silverstripe.org/framework/en/topics/controller
2050: [23:42:59] <Pyromanik> oh fuck, tvtime goes 'no xvideo port available which supports hardware yuy2'
2051: [23:43:06] <Pyromanik> so I'm all 'wtf is an xvideo port?'
2052: [23:43:09] <Pyromanik> DO NOT GOOGLE THIS
2053: [23:43:15] <Pyromanik> :<
2054: [23:43:18] <ss23> Okay guys
2055: [23:43:35] <ss23> so like, shit aint loading in this, let me take a picture to demonstrate
2056: [23:43:49] <Pyromanik> l8az
2057: [23:43:52] <Colin[pi]> lol Pyromanik
2058: [23:44:57] <mahfuz> Thanks adrexia. I will look into this
2059: [23:45:31] <Ryan-Toast> Pyromanik: lol!
2060: [23:45:33] * gelignite quit (Quit: http://bit.ly/nkczDT)
2061: [23:45:40] <ss23> http://i.imgur.com/fa3kjkt.png
2062: [23:45:43] <ss23> anyone seen something like this?
2063: [23:45:46] <ss23> a) content area doesn't load
2064: [23:45:49] <spronkHD> yes
2065: [23:45:51] <ss23> b) lib.js is... loading... lib.js?
2066: [23:45:57] <Ryan-Toast> get.that.tool.bar.off.the.side.
2067: [23:46:05] <ss23> oh god I forgot about that
2068: [23:46:08] <spronkHD> that reminds me of windows 95...
2069: [23:46:11] <ss23> ignore the startmenu
2070: [23:46:15] <Ryan-Toast> :P
2071: [23:46:16] <spronkHD> when i used to move the taskbar to the LHS
2072: [23:46:20] <ss23> DON'T MAKE ME UPLOAD A NEW IMAGE JUST TO GET HELP
2073: [23:46:22] <Colin[pi]> Ryan-Toast: oh.. so he's one of "those"
2074: [23:46:23] <spronkHD> when i was A FUCKING IDIOT
2075: [23:46:23] <spronkHD> also
2076: [23:46:29] <Ryan-Toast> Colin[pi]: shun him.
2077: [23:46:33] <spronkHD> ss23, is there a problem with the code in your pages?
2078: [23:46:33] <Colin[pi]> shunn shunnnnnn
2079: [23:46:34] <Colin[pi]> ;D
2080: [23:46:57] <ss23> spronkHD: Not my code, no idea. It loads sometimes (if you refresh like 20 times, maybe 1/20 will work)
2081: [23:47:00] <spronkHD> textual on retina is actually really nice... apart from the sidebar and user list text being large... and the irc server being in all caps. wtf.
2082: [23:47:02] <spronkHD> oh?
2083: [23:47:10] <spronkHD> ss23 clear your cache
2084: [23:47:14] <ss23> spronkHD: srsly?
2085: [23:47:17] <spronkHD> ja
2086: [23:47:21] <ss23> IT'S CLEAR
2087: [23:47:21] <Ryan-Toast> ss23: you need to step up your icon game on them model admins, brah
2088: [23:47:24] <ss23> IT DOESn'T HELP
2089: [23:47:27] <ss23> You mother fuckers
2090: [23:47:32] <Ryan-Toast> :P
2091: [23:47:33] <spronkHD> restart your browser
2092: [23:47:42] <Ryan-Toast> have you tried unplugging your computer?
2093: [23:47:46] <ss23> Well fuck you all
2094: [23:47:47] <ss23> :(
2095: [23:47:48] <spronkHD> turn it off and on again
2096: [23:47:48] <adrexia> basically name your method something like filterbyx, add it as an allowed action, create a method on the same controller with that name, return the output. Create a link in your template that points to <a href="filterbyx">
2097: [23:47:57] <spronkHD> ss23 have you actually tried these things though?
2098: [23:48:03] <ss23> spronkHD: YES
2099: [23:48:10] <spronkHD> hmm
2100: [23:48:57] <spronkHD> any errors on the server logs?
2101: [23:49:06] <antmas> zippy: lol some guy is parked in our carpark with 'For Sale' signs on the OUTSIDE of his car
2102: [23:49:10] <ss23> Will check, not sure
2103: [23:49:12] <ss23> spronkHD: Works fine in dev mode
2104: [23:49:13] <antmas> ... made out of paper
2105: [23:49:16] <ss23> Makes me think of weird issues with combinedfiles
2106: [23:49:20] <spronkHD> hmm
2107: [23:49:22] <spronkHD> permissions problem
2108: [23:49:23] <spronkHD> ?
2109: [23:49:30] <ss23> not as far as I cna see, the files are generated fine
2110: [23:49:36] <spronkHD> fuck that's clever antmas
2111: [23:49:59] <ss23> antmas: Write "My mother is" on top of it
2112: [23:50:23] <antmas> spronkHD: lol
2113: [23:50:25] <antmas> ss23: +1
2114: [23:50:39] <antmas> lol they just slid off in the rain
2115: [23:52:27] <spronk> ugh wtf
2116: [23:52:31] <spronk> synergy are now forcing you to pay $5?!
2117: [23:54:55] * antmas quit (Ping timeout: 246 seconds)
2118: [23:56:47] <ss23> spronk: What lamers! Making you *pay* for *software*
2119: [23:57:10] <spronk> ss23 it's an open source project with a history of forking, a history of not fixing bugs and instead releasing new and useless features
2120: [23:57:23] <ss23> Okay next question: Where is the code for deciding on the m=foo parameter?
2121: [23:57:50] <spronk> and the current batch of devs basically lucked into being the main source for it
2122: [23:57:56] <spronk> so... its kinda douchey
2123: [23:58:34] <ss23> They can fork it if it was under a permissble licence before this
2124: [23:58:39] <ss23> If it wasn't, then they should've expected it
2125: [23:58:45] <spronk> eh?
2126: [23:58:49] <spronk> it was a permissable licence
2127: [23:58:51] <spronk> its still permissable
2128: [23:59:01] <ss23> Then they can just provide free builds of it?
2129: [23:59:01] <spronk> they forked it in an attempt to unify the open source project
2130: [23:59:09] <spronk> yeah, except now they don't
2131: [23:59:21] <mudmonth> sprinkly spronky
2132: [23:59:30] <spronk> they used to provide free builds and make you pay for the "enterprise" version
2133: [23:59:35] <spronk> which as far as i can tell does nothing else
2134: [23:59:39] <mudmonth> say something about tech

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