#silverstripe IRC Log

IRC log for 14 February 2017

All timestamps are in UTC.

1: [00:03:58] * adrexia has joined #silverstripe
2: [00:07:39] * janneklouman-- has joined #silverstripe
3: [00:12:13] * janneklouman-- quit (Ping timeout: 255 seconds)
4: [00:14:30] * micmania1 has joined #silverstripe
5: [00:44:47] * vanny has joined #silverstripe
6: [00:44:54] <vanny> hey all
7: [00:50:42] <vanny> how can I add the created date of dataobject to the edit screen (read only of course)
8: [00:50:47] * Phlunk3 has joined #silverstripe
9: [00:59:00] <DanaeNZ> vanny: Try just: ReadOnlyField::create('Created', 'Created)
10: [00:59:22] <DanaeNZ> You can also explicitly set the value of a readonly field if you need to manipulate the date format
11: [01:01:26] <vanny> that worked, thanks now just to move it to the first feild
12: [01:01:47] <vanny> im starting to working more in the backend part now, so much to learn
13: [01:05:55] <Firesphere> vanny: just use $fields->insertBefore(); or change the order of the fields in the array
14: [01:10:21] <DanaeNZ> vanny: If you want complete control of the display in the CMS of the fields, instead of going parent::getCMSFields, do: $fields = FieldList::create(TabSet::create('Root'));
15: [01:10:33] <DanaeNZ> Then you just add em all again
16: [01:10:40] <vanny> ok, cool
17: [01:12:17] <DanaeNZ> here's a tricky one for you. So for an OptionSetField, it spits out $Title for the options. It just uses map(). But if there is a dollar sign in the title (eg through Userforms) the dollar sign gets parsed in the template
18: [01:12:33] <DanaeNZ> So I'm looking through StringField to try find a method that stops it happening
19: [01:12:40] <DanaeNZ> such an innocuous bug
20: [01:14:13] <DanaeNZ> like....just need to convert that dollar to an html entity or something
21: [01:26:41] <guci0> Hello ALL – fast question how to print this form Page inside template? public function getNameOfYear($number)
22: [01:27:07] <guci0> $NameOfYear($age) this is from template
23: [01:28:11] <DanaeNZ> guci0: you will need to use $getNameOfYear in template
24: [01:28:40] <DanaeNZ> or make a new function in your class called NameOfYear($number) and just return $getNameOfYear
25: [01:28:49] <guci0> won't work – thing with get and without – this function is in loop
26: [01:28:50] <DanaeNZ> template doesn't pass that variable through
27: [01:28:58] <DanaeNZ> oh is it
28: [01:29:04] <guci0> sec.
29: [01:29:06] <DanaeNZ> use $Top.NameOfYear
30: [01:30:46] <guci0> $Top.NameOfYear($age)
31: [01:30:48] <guci0> works!
32: [01:33:11] <DanaeNZ> sweet
33: [01:33:42] <guci0> DanaeNZ: THX U can see – your help in action :) http://nano-tech.pl/firma/ankieta/opinie-i-zastosowania-klientow/
34: [01:33:49] <guci0> No i
35: [01:33:54] <guci0> go to sleep :)
36: [01:34:00] <guci0> thanks again
37: [01:34:22] <DanaeNZ> Okay I've found what I think is a bug from Userforms. If you publish the Userform and it runs through a multi option field, it finds the live versions, then deletes them. But it doesn't delete from Live, just draft. Then it checks for its draft options and of course there are none there so it fucks up
38: [01:34:24] <DanaeNZ> no prob guci0
39: [01:34:38] <guci0> variant of the years
40: [01:34:42] <DanaeNZ> So I'm thinking I ought to submit a PR but I haven't done that properly before
41: [01:37:23] <xyphoid> it's quite satisfying, i did my first one the other week
42: [01:38:51] <DanaeNZ> I'm just hoping I understand the intention of the bit of code. It's a delete function so, could break something. Mind you imo it's already breaking something
43: [01:59:10] * kerozene quit (Ping timeout: 240 seconds)
44: [02:06:38] * kerozene has joined #silverstripe
45: [02:27:42] * spronk gets rid of slack
46: [02:27:45] <spronk> chewing all my rams
47: [02:30:35] * pippy quit (Ping timeout: 260 seconds)
48: [02:30:47] <DanaeNZ> is that why my computer is slow today
49: [02:32:52] <Firesphere> How can you have slack abuse that much memory?
50: [02:39:13] <spronk> ugh
51: [02:39:19] <spronk> it was using 700MB
52: [02:39:22] <spronk> and was the highest energy consumer on my mac
53: [02:39:31] * spronk said NOPE to that fucking shit
54: [02:45:12] <Firesphere> WTF, on my machine it's using 60MB and 0.5 CPU
55: [02:45:21] <spronk> slack app?
56: [02:45:27] <Firesphere> Which is nothing compared to PHPStorm or Firefox
57: [02:45:45] <Firesphere> And let's not forget Chromium using a whopping 400MB for 1 tab
58: [02:46:23] <spronk> hrmmmm
59: [02:46:26] <spronk> must be some sort of memory lieak
60: [02:46:27] <spronk> leak
61: [02:53:22] <spronk> ugh i really need more memory on my mbp
62: [02:56:30] <Nightjar> spronkey Yo dawg, we heard you like how chrome uses your ram, so we made a chrome that can run next to your chrome in order to chrome your ram more than you've got. We're gonna take it, to the limit, one more tiiiiime...
63: [02:57:03] <Nightjar> that is, a whole application that is just an encapsulated chrome in order to chat to people like in IRC... but with pictures :o
64: [02:57:14] <spronk> :'()
65: [02:57:25] <spronk> and all the sheeple flock to it
66: [02:57:25] <spronk> sigh
67: [02:58:40] <Nightjar> meta hipsters, doing it before it was cool before it was cool to do it before it was cool.
68: [03:12:51] * DanaeNZ quit (Remote host closed the connection)
69: [03:22:39] * micmania1 quit (Quit: micmania1)
70: [03:49:37] * micmania1 has joined #silverstripe
71: [04:00:30] * Phlunk3 is now known as Phlunk3[a]
72: [04:08:55] * Nightjar quit (Ping timeout: 255 seconds)
73: [04:15:07] <ss-helper> Silverstripe Grouped List DataObjects - get variable from has_one in template - http://stackoverflow.com/questions/42217702/silverstripe-grouped-list-dataobjects-get-variable-from-has-one-in-template
74: [04:16:24] * DanaeNZ has joined #silverstripe
75: [04:28:22] * micmania1 quit (Quit: micmania1)
76: [04:31:17] * janneklouman-- has joined #silverstripe
77: [04:34:52] * vanny quit (Quit: Page closed)
78: [04:36:05] * janneklouman-- quit (Ping timeout: 255 seconds)
79: [04:39:53] * adrexia quit (Quit: My Mac has gone to sleep. ZZZzzz…)
80: [06:47:01] * Shrike_Finland has joined #silverstripe
81: [06:51:45] * janneklouman-- has joined #silverstripe
82: [06:56:10] * janneklouman-- quit (Ping timeout: 245 seconds)
83: [07:32:50] * micmania1 has joined #silverstripe
84: [07:35:18] * Eliseth has joined #silverstripe
85: [07:43:04] * micmania1 quit (Quit: micmania1)
86: [07:49:21] <Firesphere> \o
87: [07:56:22] * Shrike_Finland quit (Quit: Leaving.)
88: [07:57:34] <spronk> boop
89: [08:05:28] * deschebbs has joined #silverstripe
90: [08:05:56] * Shrike_Finland has joined #silverstripe
91: [08:50:06] <Firesphere> ploink?
92: [09:02:57] * kinglozzer has joined #silverstripe
93: [09:07:13] * Shrike_Finland quit (Quit: Leaving.)
94: [09:12:48] * janneklouman-- has joined #silverstripe
95: [09:17:19] * janneklouman-- quit (Ping timeout: 255 seconds)
96: [09:23:17] * janneklouman-- has joined #silverstripe
97: [09:31:22] * filisko has joined #silverstripe
98: [09:43:08] * spronk quit (Quit: I may need a longer sleep timer...)
99: [09:46:53] * agent44 has joined #silverstripe
100: [09:48:39] * wmk has joined #silverstripe
101: [11:17:30] * wmk_ has joined #silverstripe
102: [11:21:22] * wmk quit (Ping timeout: 260 seconds)
103: [11:22:04] * wmk_ quit (Ping timeout: 258 seconds)
104: [12:44:12] * wmk_ has joined #silverstripe
105: [13:04:26] * XorPush has joined #silverstripe
106: [13:09:11] * BackEndCoder quit (Excess Flood)
107: [13:09:45] * wmk_ is now known as wmk
108: [13:11:39] * BackEndCoder has joined #silverstripe
109: [13:36:10] * XorPush quit (Quit: Page closed)
110: [14:37:16] * wmk quit (Ping timeout: 260 seconds)
111: [14:51:08] * Azure quit (Ping timeout: 252 seconds)
112: [14:56:07] * agent44 quit (Quit: zzz)
113: [14:56:54] * agent44 has joined #silverstripe
114: [15:02:50] * Azure has joined #silverstripe
115: [15:17:59] * Azure quit (Read error: Connection reset by peer)
116: [15:21:40] * Shrike_Finland has joined #silverstripe
117: [15:22:05] * Shrike_Finland quit (Client Quit)
118: [16:00:40] * Azure has joined #silverstripe
119: [16:18:50] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
120: [16:21:31] * wmk has joined #silverstripe
121: [16:52:08] * agent44 quit (Ping timeout: 252 seconds)
122: [17:00:06] * agent44 has joined #silverstripe
123: [17:18:32] * janneklouman-- quit (Ping timeout: 252 seconds)
124: [17:26:20] * Shrike_Finland has joined #silverstripe
125: [17:30:31] * UndefinedOffset has joined #silverstripe
126: [17:32:45] * kinglozzer quit ()
127: [18:01:11] * janneklouman-- has joined #silverstripe
128: [18:09:36] * Shrike_Finland quit (Quit: Leaving.)
129: [18:10:47] * gelignite has joined #silverstripe
130: [18:14:57] * agent44 quit (Quit: zzz)
131: [18:20:17] * janneklouman-- quit (Ping timeout: 258 seconds)
132: [18:22:38] * janneklouman-- has joined #silverstripe
133: [18:34:40] * Nightjar has joined #silverstripe
134: [18:46:36] * BackEndCoder quit (Excess Flood)
135: [18:48:10] * BackEndCoder has joined #silverstripe
136: [19:00:23] <ss-helper> Create a SilverStripe theme with Reactjs - http://stackoverflow.com/questions/42233934/create-a-silverstripe-theme-with-reactjs
137: [19:26:13] * terryapodaca has joined #silverstripe
138: [19:27:13] <terryapodaca> Is there a module or script someone has come up with that will resend the UserForms submitted data that's saved in the Submissions tab?
139: [19:30:39] * terryapodaca1 has joined #silverstripe
140: [19:42:10] * ss-log has joined #silverstripe
141: [19:43:34] * deschebbs quit (Ping timeout: 264 seconds)
142: [20:05:27] * wmk quit (Ping timeout: 240 seconds)
143: [20:10:23] * adrexia has joined #silverstripe
144: [20:10:25] * micmania1 has joined #silverstripe
145: [20:35:37] <terryapodaca> Is there a module or script someone has come up with that will resend the UserForms submitted data that's saved in the Submissions tab?
146: [20:44:55] <DanaeNZ> agh I keep getting a Allowed memory size of 268435456 bytes exhausted error
147: [20:44:58] <DanaeNZ> what the frix
148: [20:46:08] <terryapodaca> use to add an entry in the _config file
149: [20:46:18] <terryapodaca> not sure if that works in newer versions
150: [20:46:38] <terryapodaca> I ended up changing memory size in the php.ini file
151: [20:46:46] * adrexia quit (Quit: Textual IRC Client: www.textualapp.com)
152: [20:46:59] * adrexia has joined #silverstripe
153: [20:47:05] * adrexia quit (Client Quit)
154: [20:47:28] * adrexia has joined #silverstripe
155: [20:49:39] <terryapodaca> or updating your phprc file if your server allows you to modify that
156: [20:50:52] * adrexia quit (Client Quit)
157: [20:59:35] <DanaeNZ> turns out I just needed to delete the silverstripe-cache file
158: [20:59:48] <DanaeNZ> and also there were permissions issues that only show up in the cpanel log
159: [21:00:01] <DanaeNZ> by default it wasn't using 755 for anything
160: [21:01:06] <DanaeNZ> also fuck loose composer requirements
161: [21:11:36] * micmania1 quit (Quit: micmania1)
162: [21:11:52] * micmania1 has joined #silverstripe
163: [21:12:16] * guci0 quit (*.net *.split)
164: [21:13:17] * guci0 has joined #silverstripe
165: [21:15:51] * guci0 quit (*.net *.split)
166: [21:16:00] * guci0 has joined #silverstripe
167: [21:50:05] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
168: [21:52:40] * filisko quit (Remote host closed the connection)
169: [21:55:23] * deschebbs has joined #silverstripe
170: [22:18:10] <DanaeNZ> oh my god it must be the end times
171: [22:18:12] * deschebbs quit (Ping timeout: 260 seconds)
172: [22:18:14] <DanaeNZ> and Auckland ss meetup
173: [22:34:50] * terryapodaca1 has joined #silverstripe
174: [22:35:14] * terryapodaca1 has left #silverstripe
175: [22:36:24] * TRB143 quit (Ping timeout: 240 seconds)
176: [22:42:10] * BackEndCoder_ has joined #silverstripe
177: [22:42:49] * terryapodaca quit (*.net *.split)
178: [22:42:50] * BackEndCoder quit (*.net *.split)
179: [22:42:50] * UndefinedOffset quit (*.net *.split)
180: [22:42:52] * BackEndCoder_ is now known as BackEndCoder
181: [22:46:35] * BackEndCoder quit (*.net *.split)
182: [22:46:35] * micmania1 quit (*.net *.split)
183: [22:46:35] * janneklouman-- quit (*.net *.split)
184: [22:46:36] * ss23 quit (*.net *.split)
185: [22:46:37] * saiyan quit (*.net *.split)
186: [22:46:37] * ajmitch quit (*.net *.split)
187: [22:46:46] * ss23 has joined #silverstripe
188: [22:47:02] * saiyan has joined #silverstripe
189: [22:47:40] * BackEndCoder has joined #silverstripe
190: [22:52:13] * micmania1 has joined #silverstripe
191: [22:52:14] * janneklouman-- has joined #silverstripe
192: [22:52:14] * ajmitch has joined #silverstripe
193: [22:52:45] * spronk has joined #silverstripe
194: [22:55:34] * Firesphere quit (Ping timeout: 264 seconds)
195: [23:00:01] * ss-helper quit (Remote host closed the connection)
196: [23:00:15] * ss-helper has joined #silverstripe
197: [23:06:22] * TRB143 has joined #silverstripe
198: [23:45:42] * micmania1 quit (Quit: micmania1)

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