#silverstripe IRC Log

IRC log for 22 May 2014

All timestamps are in UTC.

1: [00:01:50] <Ryan-Toast> Easy weay to delete all files in Silverstripe?
2: [00:01:53] <Ryan-Toast> Uploads that is.
3: [00:01:58] <Ryan-Toast> and it’s sub folders.
4: [00:02:08] <simon_w|air> File::get()->removeAll()?
5: [00:02:28] <Ryan-Toast> simon_w: just on a page somewhere, and run it once?
6: [00:10:45] <jordanmk> hey guys, a SS site i'm working on is using SendGrid (an email delivery service) to send out emails. it's all working fine, but the issue is that the time spent sending the email through the SendGrid API and then getting a response from SendGrid is slowing down page load times
7: [00:11:44] <jordanmk> e.g. a user enters their name and email into a form, then the form submit action includes sending an email to them through SendGrid, but the thank you page doesn't load for the user until the email is sent and the SendGrid API provides a response
8: [00:12:10] <jordanmk> which causes the page load to be an extra 2-3 seconds longer than if there was no sending of emails involved
9: [00:14:17] <jordanmk> what are my options for making it so that the sending of the email doesn't slow down page load times?
10: [00:14:51] <irogue> I have an email queue
11: [00:15:42] <irogue> store emails to be sent (in my case in a DO, but really it should just be in a NoSQL database), then on a cronjob run a task that runs through the queue pushing emails to the API and then marking them as sent
12: [00:15:44] <jordanmk> is there an easy way to get that send to be performed asynchronously? i.e. i don't care what the response is from SendGrid, i just want to make the call to the API to send the email and then proceed
13: [00:15:53] * DesignerX has joined #silverstripe
14: [00:16:19] <jordanmk> irogue, i thought about doing that but unfortunately the website is hosted on a Microsoft server
15: [00:16:31] <irogue> jordanmk: check if SendGrid have an async option in their API (some services do), otherwise you'll have to implement it yourself using something like a message queue
16: [00:16:34] <jordanmk> and i have very limited access to that server
17: [00:17:38] <irogue> being a windows server, all the options i can think of wouldn't work
18: [00:18:49] <irogue> hmm
19: [00:18:54] <irogue> you could probably ajaxify the send
20: [00:19:33] <irogue> do the queue thing (store the email either in DB or a temp file or something)
21: [00:20:11] <jordanmk> hmm
22: [00:20:24] <irogue> then have the Send button trigger an AJAX call to a method that will pull it back out of the queue and push it to sendgrid
23: [00:20:36] <irogue> asyncronously of course
24: [00:22:04] <jordanmk> not sure what you mean, are you saying that the form submit would both: (1) add a DataOject or something based on the user's name and email and (2) perform an AJAX call to pull that same DataObject and send it?
25: [00:22:27] <simon_w> Ryan-Toast, yes
26: [00:23:36] <jordanmk> irogue, perhaps the form submit would add the DataObject, and then i could create a separate function that does the sending of the email, and call that function through AJAX when the thank you page loads?
27: [00:27:05] <Ryan-Toast> simon_w: Will that remove the files, or tjust from the database?
28: [00:27:20] <simon_w> Ryan-Toast, it'll remove them from the filesystem and the database
29: [00:27:27] <simon_w> It will completely empty your assets folder
30: [00:27:29] <Ryan-Toast> simon_w: holla holla, get dolla.
31: [00:27:37] <simon_w> (excluding combined files and _resampled)
32: [00:27:57] <Ryan-Toast> a flush will remove those though, right?
33: [00:28:07] <simon_w> Nope
34: [00:28:18] <Ryan-Toast> rm -f then
35: [00:28:22] <simon_w> Yup
36: [00:28:59] <simon_w> If that's all you're after, it'll be faster to just DB::query('TRUNCATE "File";'); exec('rm -rf ' . ASSETS_PATH); mkdir(ASSETS_PATH);
37: [00:30:17] * novaweb quit (Ping timeout: 252 seconds)
38: [00:35:18] * Keeps quit (Ping timeout: 240 seconds)
39: [00:39:17] * joelpittet has joined #silverstripe
40: [00:49:18] * jenniferaslan quit (Quit: jenniferaslan has left the room)
41: [00:53:23] <Colin[pi]> I could generate a favicon on the fly from a image object right?
42: [00:53:34] <simon_w> Yes
43: [00:53:57] <Colin[pi]> sweet
44: [00:54:23] * shellbackpacific has joined #silverstripe
45: [00:56:48] * mediacorpjack quit (Ping timeout: 240 seconds)
46: [00:58:53] * shellbackpacific quit (Ping timeout: 252 seconds)
47: [01:04:56] <antmas> grrrr
48: [01:05:05] <antmas> icon fonts css being overridden :<
49: [01:06:53] <Ryan-Toast> antmas: how?
50: [01:08:18] <antmas> Ryan-Toast: dunno, I have it's stylesheet loading last
51: [01:08:33] <Ryan-Toast> Should be unique classes in the first place.
52: [01:08:47] <antmas> they are
53: [01:09:12] <Ryan-Toast> then how’s it getting overridden?
54: [01:09:25] <antmas> I have no idea
55: [01:10:03] <Ryan-Toast> can’t you see in the inspect element?
56: [01:10:28] <antmas> yes, but a strikethrough doesn't really telll you much
57: [01:10:54] <simon_w> The rule being applied is more specific?
58: [01:11:16] <Ryan-Toast> cgo to computed, and see which is the setting that’s being used.
59: [01:12:14] <antmas> ah shit
60: [01:12:28] <antmas> parent element had another rule applied
61: [01:12:31] <antmas> damnit
62: [01:12:54] <Ryan-Toast> Parent still shouldn’t override it.
63: [01:13:06] <antmas> that's what I thought
64: [01:13:07] <Ryan-Toast> you ened to check your hierachy, son.
65: [01:15:01] * antmas shakes fist
66: [01:22:18] * an_Eskimo quit (Ping timeout: 240 seconds)
67: [01:25:37] * UncleCheese_ quit (Quit: UncleCheese_)
68: [01:26:32] * UncleCheese has joined #silverstripe
69: [01:27:03] * travis-ci has joined #silverstripe
70: [01:27:03] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2601 (master - a5a3906 : Damian Mooyman): The build passed.
71: [01:27:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/a263bed937af...a5a390680fb1
72: [01:27:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/25748257
73: [01:27:03] * travis-ci has left #silverstripe
74: [01:34:32] * an_Eskimo has joined #silverstripe
75: [01:38:23] * UncleCheese quit (Quit: UncleCheese)
76: [01:50:25] * nickmolhoek has joined #silverstripe
77: [01:54:22] <Stomach> had a pie, had a coke, feel like going home
78: [01:55:59] * shellbackpacific has joined #silverstripe
79: [01:56:19] <Kingy> Friday tomorrow at least Stomach
80: [01:58:42] <Stomach> thank fuck
81: [01:59:52] <Stomach> I just wanna curl up in a ball and read
82: [02:00:13] * shellbackpacific quit (Ping timeout: 252 seconds)
83: [02:03:20] <Colin[pi]> hmm can I force the SS image resizing methods to output a specific format of image?
84: [02:03:31] <Colin[pi]> i.e. always create a PNG
85: [02:04:22] * mediacorpjack has joined #silverstripe
86: [02:05:01] <Stomach> nope, but you could write a custom function which does it though
87: [02:06:17] <Colin[pi]> mm think I'll need to do that
88: [02:06:26] <Stomach> something like http://stackoverflow.com/questions/2569970/gd-converting-a-png-image-to-jpeg-and-making-the-alpha-by-default-white-and-not
89: [02:06:38] <Stomach> in reverse obviously :D
90: [02:07:47] * mobiusnz has joined #silverstripe
91: [02:07:55] <mobiusnz> hello
92: [02:08:09] <mobiusnz> with composer how should I update my site from 3.1.3 to 3.1.5?
93: [02:08:25] <mobiusnz> composer update doesn't seem to do anything
94: [02:08:35] <Stomach> did you change the composer file?
95: [02:08:37] <simon_w|air> mobiusnz, change the version for silverstripe/cms and silverstripe/framework to 3.1.5
96: [02:08:59] <mobiusnz> oh, in composer.json?
97: [02:09:05] <Stomach> yah
98: [02:09:37] <mobiusnz> ah
99: [02:09:39] <mobiusnz> cool
100: [02:09:44] <mobiusnz> that seems to be doing something
101: [02:10:07] <mobiusnz> I'd assumed it would be able to tell me a newer version was available
102: [02:10:35] <simon_w|air> Only if you have a wildcard version
103: [02:10:44] <simon_w|air> For that, you'd use 3.1.x@stable
104: [02:10:44] <Stomach> if you have "silverstripe/cms": "~3.1" or "3.1.*" then it will
105: [02:10:56] <simon_w|air> 3.1.*@stable
106: [02:11:27] <Stomach> or remove the minimum-stability: dev flag and ignore the @stable modifier
107: [02:11:39] <Stomach> but then half of silverstripe modules wont work >_<
108: [02:11:43] <Stomach> damn community :D
109: [02:11:55] <simon_w|air> Mine do!
110: [02:12:01] <antmas> ebay hacked?
111: [02:12:02] <Stomach> so do mine
112: [02:12:10] <Stomach> but not everyone tags stuff :\
113: [02:13:53] <antmas> hmmm
114: [02:13:54] * DesignerX quit (Ping timeout: 252 seconds)
115: [02:13:59] * NewLinuxUser has joined #silverstripe
116: [02:14:06] <antmas> anyone know if you can transfer balances of credit cards around?
117: [02:15:48] * mediacorpjack quit (Ping timeout: 240 seconds)
118: [02:15:52] <antmas> I'm guessing no
119: [02:17:59] <Colin[pi]> antmas: yes you can
120: [02:18:11] <antmas> Colin[pi]: interesting
121: [02:18:26] <antmas> I have a gem visa and a regular visa, would rather have 1 :P
122: [02:18:37] <Colin[pi]> yeah pretty sure you can consolidate balances
123: [02:19:56] <Kingy> talk to your bank, i'm sure they can arrange something
124: [02:20:07] <antmas> sweet, cheers
125: [02:20:20] <simon_w|air> antmas, wanna take my balance too? :p
126: [02:20:41] <antmas> simon_w|air: pass :P
127: [02:20:49] <simon_w|air> Bah!
128: [02:24:16] <Stomach> I have ~300 left on my credit card
129: [02:24:23] <Stomach> it hasnt been at 0 since I was 18
130: [02:24:32] <Stomach> pretty excited to get it paid off
131: [02:24:35] <irogue> mine is now at 0!
132: [02:24:51] <antmas> I'm at ~1800 between my 2
133: [02:25:07] <Stomach> oh I have a qcard with about that much on it too :\
134: [02:25:11] <Stomach> stupid past stevie
135: [02:25:16] * antmas thanks the dentist
136: [02:25:28] <simon_w|air> Yeah, mine's bigger than that :(
137: [02:25:49] <Stomach> you just moved country and havent had a job for ~month though
138: [02:27:44] <ss23> lol
139: [02:27:56] <Kingy> im trying to pay off my qcard
140: [02:28:04] <Kingy> got a CC for travelling europe
141: [02:28:12] <Kingy> so now that has a bunch on it
142: [02:28:31] * simon_w|air quit (Quit: This computer has gone to sleep)
143: [02:28:32] <antmas> I'm assuming qcard is like gem visa?
144: [02:28:38] * babak quit (Quit: Connection closed for inactivity)
145: [02:28:40] <Stomach> nah, its like harvey normand visa
146: [02:29:10] <antmas> Stomach: that's what gem visa is
147: [02:29:59] <Stomach> oh
148: [02:30:00] <Stomach> then yes
149: [02:30:28] <Kingy> yeah looks pretty similar
150: [02:31:57] * UncleCheese_ has joined #silverstripe
151: [02:39:46] * Kingy is now known as Kingy[a]
152: [02:54:20] * mobiusnz1 has joined #silverstripe
153: [02:56:13] * nickmolhoek1 has joined #silverstripe
154: [02:56:36] * UncleCheese___ has joined #silverstripe
155: [02:57:01] * joelpitt_ has joined #silverstripe
156: [02:58:44] * ss23_ has joined #silverstripe
157: [02:59:54] * Azure_ has joined #silverstripe
158: [03:00:04] <Colin[pi]> just "wowed" someone with an icloud meeting request, we're talking cutting edge stuff here folks
159: [03:00:10] * Azure quit (Disconnected by services)
160: [03:00:16] * Azure_ is now known as Azure
161: [03:02:37] <antmas> Colin[pi]: lol
162: [03:02:43] <antmas> Colin[pi]: I still wow people with paralax
163: [03:03:02] * mobiusnz quit (Ping timeout: 258 seconds)
164: [03:03:09] <simon_w> I still wow people with ls -Rl /
165: [03:03:09] * nickmolhoek quit (Ping timeout: 258 seconds)
166: [03:03:09] * irogue quit (Ping timeout: 258 seconds)
167: [03:03:09] * ss23 quit (Ping timeout: 258 seconds)
168: [03:03:10] * joelpittet quit (Ping timeout: 258 seconds)
169: [03:03:14] <ss23_> jeeesus
170: [03:03:15] <ss23_> whats going on
171: [03:03:16] <ss23_> oh god
172: [03:03:17] * ss23_ is now known as ss23
173: [03:03:27] <antmas> ss23: ?
174: [03:03:38] <ss23> netsplish
175: [03:07:22] * FrozenFire quit (Ping timeout: 252 seconds)
176: [03:08:03] <Stomach> simon_w - ls -Rl | grep porn
177: [03:08:07] <Stomach> hehehe
178: [03:08:09] * FrozenFire has joined #silverstripe
179: [03:08:29] <simon_w> Stomach, I prefer find ~ -print0 | xargs -0 -n1 hexdump
180: [03:09:05] * UncleCheese_ quit (*.net *.split)
181: [03:09:20] <Stomach> my favourite is 'find . -name '*.php' | xargs wc -l'
182: [03:09:38] <Stomach> lets me feel good after unproductive days
183: [03:10:00] <UncleCheese___> Colin[pi]: what's icloud?
184: [03:10:14] <ss23> Apples Clouds!
185: [03:10:24] <ss23> You can think of a "dedicated server" as basically "a box of cloud"
186: [03:10:31] <Colin[pi]> UncleCheese___: ^ apple cloud stuff
187: [03:12:58] <ss23> REBOOT!
188: [03:13:08] <Stomach> now that was a shit cartoon
189: [03:13:19] <antmas> Stomach: YOU TAKE THAT BACK
190: [03:13:24] * joelpitt_ quit ()
191: [03:13:25] <Stomach> never!
192: [03:13:27] <ss23> Stomach: ...
193: [03:13:28] <ss23> no
194: [03:13:30] <ss23> you dididn't
195: [03:13:38] <Stomach> worst after school cartoon
196: [03:13:39] * joelpittet has joined #silverstripe
197: [03:13:44] <Stomach> forced me into a programming addiction
198: [03:13:49] <ss23> XD
199: [03:13:49] <Stomach> cant watch tv cause reboot is on
200: [03:13:54] <antmas> I recorded every episode on VHS after school
201: [03:14:18] <Ryan-Toast> Never understood the appeal of “back to top” buttons. YOU GOT DOWN HER DIDN’T YOU?
202: [03:14:24] * irogue has joined #silverstripe
203: [03:14:24] <ss23> lol Ryan-Toast
204: [03:14:48] <Stomach> its because all of a sudden tablets "BETTER MAKE IT RESPONSIVE ADD SOME BUTTONS FOR TABLET USERS"
205: [03:14:55] <Ryan-Toast> Deleted 2gig worth of images off a clients account
206: [03:15:09] <Ryan-Toast> Stahp loading directly from your digital camera you stupid fuck
207: [03:15:22] <antmas> Ryan-Toast: 2gb? nothing
208: [03:15:35] <antmas> try 14gb of almost identical .pdfs
209: [03:15:35] <Ryan-Toast> The site literlaly ahas like 10 images on it.
210: [03:15:58] <ss23> lol
211: [03:16:07] <ss23> This one site has ~4gb of images
212: [03:16:14] <ss23> I think they've never ever deleted an image
213: [03:16:18] <antmas> couldn't wait 5 secs for the upload to succeed? UPLOAD AGAIN
214: [03:16:41] <Ryan-Toast> The good thing is nwow she’s really happy because the site is so much faster.
215: [03:16:45] <ss23> lol antmas
216: [03:16:52] <ss23> Ryan-Toast: Site gets faster because of less images?
217: [03:16:52] <ss23> :O
218: [03:16:55] <ss23> I guess that kind of makes sense
219: [03:16:55] <ss23> Hmm
220: [03:16:56] <antmas> Ryan-Toast: I used to force resize on upload on a site because of numbcakes direct uploading from cameras
221: [03:17:01] <ss23> We have an overloaded site that we struggled to figure out why
222: [03:17:09] <ss23> Wonder if we delete the 2gb of images if it'll go faster
223: [03:18:35] <ss23> doubitful tbh
224: [03:19:15] <Ryan-Toast> Booked my X-Men tickets for tonight, awww yiss
225: [03:19:20] <ss23> awww yeah
226: [03:19:28] <antmas> Ryan-Toast: $1342.23 later?
227: [03:19:43] <Ryan-Toast> $35 each
228: [03:19:49] <antmas> WHOLEY FUCK
229: [03:19:56] <Ryan-Toast> Le Premiere, son
230: [03:20:00] <ss23> Isn't it just a movie or something?
231: [03:20:21] <antmas> I prefer to go when the cinema isn't full of people
232: [03:20:28] * joelpittet quit ()
233: [03:20:33] <Ryan-Toast> look at these bitches, drinking wine and laughing at the peasents going to normal movies: http://www.hoyts.co.nz/cinemas/viewing_occasions/la_premiere.aspx
234: [03:20:42] <Ryan-Toast> HAHAHAHA, POOR PEOPLE!
235: [03:20:49] <antmas> last time I went to Prometheus at premier and some dicks were using their phones.
236: [03:21:00] <antmas> I threw a Jaffa at one and crack his screen
237: [03:21:11] <Ryan-Toast> antmas: #thathappened
238: [03:21:11] <antmas> cracked*
239: [03:22:41] <Colin[pi]> fuck me, $35 for this?? http://www.youtube.com/watch?v=W9mKvb0W3Bk
240: [03:23:09] <antmas> Colin[pi]: hehe
241: [03:23:21] <Stomach> went to gold class at event on monday to watch godzilla
242: [03:23:36] <antmas> Stomach: GOJIRA!
243: [03:24:08] <Stomach> couldn't get over the big plot hole when the radioactive monsters where going after nuclear warheads to eat
244: [03:24:15] <Ryan-Toast> lol
245: [03:24:31] <Ryan-Toast> Colin[pi]: https://www.youtube.com/watch?v=oZlSoiE7YlM
246: [03:24:41] <Stomach> nukes aren't radioactive until they detonate, well less radioactive than other things nearby like the giant fucking nuclear power plants
247: [03:24:53] <Stomach> then one of them just left the waste storage facility to go eat more nukes
248: [03:24:56] <Stomach> fucking bonkers
249: [03:25:19] * antmas doesn't go to see Godzilla for plot
250: [03:25:29] <Stomach> neither did I, but it irked me
251: [03:25:36] <Stomach> I wish I read less sometimes
252: [03:26:54] <Colin[pi]> Ryan-Toast: haha that's awesome
253: [03:27:18] <Ryan-Toast> ATHF movie. So good
254: [03:29:52] <Stomach> yay Zauberfisch is starring things!
255: [03:33:24] * Kingy[a] is now known as Kingy
256: [03:33:52] <Zauberfisch> :D
257: [03:34:14] <Ryan-Toast> http://i.imgur.com/teOs6il.jpg
258: [03:36:23] <antmas> Ryan-Toast: heh, .jpg
259: [03:46:04] <antmas> I think Thursday calls for a little....
260: [03:46:08] <antmas> HATEBEAK https://www.youtube.com/watch?v=VwXKR9EWhXo
261: [03:51:29] * cloph has joined #silverstripe
262: [03:51:53] * cloph_away quit (Ping timeout: 264 seconds)
263: [03:58:08] * shellbackpacific has joined #silverstripe
264: [03:58:28] <ss23> mmm, adding a new feature to a site, needs minimal PHP, minimal HTML, and minimal CSS
265: [03:58:31] <ss23> and the 'design' looks nice
266: [03:58:32] <ss23> :D
267: [03:59:46] <antmas> ss23: so, a text box?
268: [03:59:47] <Stomach> 'design' ? :S
269: [03:59:48] <antmas> :P
270: [04:00:01] <Ryan-Toast> http://sourcefed.com/goodbye-bitcoins-hello-titcoins/
271: [04:00:04] <antmas> ss23: also, WHO LET YOUR NEAR THE FRONT END!?
272: [04:00:13] <antmas> Ryan-Toast: sfw?
273: [04:00:24] <ss23> XD antmas
274: [04:00:26] <Ryan-Toast> animated
275: [04:00:27] <ss23> I let someone else design it!
276: [04:00:27] <ss23> :D
277: [04:00:30] <Ryan-Toast> so yes sfw?
278: [04:00:53] <Kingy> Warning: This video contains animated boobage that your boss probably wouldn’t enjoy seeing this while walking by your computer. The IT guys probably wouldn’t mind though. - See more at: http://sourcefed.com/goodbye-bitcoins-hello-titcoins/#sthash.PFfnALgm.dpuf
279: [04:01:19] <antmas> heh
280: [04:01:24] <ss23> That's just a sign you don't know my boss!
281: [04:01:44] <ss23> antmas: Going back to classics
282: [04:02:00] * ss23 is now playing Pushing Through - Mudvayne [Lost and Found - 2005]
283: [04:02:12] * antmas approves of ss23
284: [04:02:26] * shellbackpacific quit (Ping timeout: 252 seconds)
285: [04:02:31] <ss23> :D
286: [04:02:52] <antmas> hooray
287: [04:03:04] <antmas> we can finally stop using yellow as a color in our templates
288: [04:03:05] * simon_w is now playing Frozen Heart - The Cast of Frozen [Frozen (Deluxe Edition) ]
289: [04:03:22] * antmas facepalms
290: [04:03:48] * simon_w wins!
291: [04:04:13] <antmas> I love how there is a 'Deluxe Edition' for that
292: [04:04:27] <ss23> antmas: Why?
293: [04:04:31] <ss23> (Can you use Yellow)
294: [04:04:44] <ss23> simon_w: DO YOU WANNA BUILD A WEBSITE?
295: [04:05:18] <simon_w> ss23, https://files.app.net/2dl5xvC3T.jpeg
296: [04:05:29] * worstcase is now known as Avroherptyr
297: [04:05:55] <antmas> ss23: becuase yellow is aweful
298: [04:06:06] <antmas> and our blue/white look is much cleaner
299: [04:06:13] <ss23> lol simon_w
300: [04:06:30] <ss23> antmas: Sweet :D
301: [04:06:32] <ss23> The yellow is bad
302: [04:06:33] * Avroherptyr is now known as worstcase
303: [04:06:36] <ss23> Wait...
304: [04:06:39] <ss23> antmas: Did you mean
305: [04:06:41] <ss23> recyclingther?
306: [04:06:51] <antmas> ss23: LOL
307: [04:06:59] <antmas> ss23: I will be fixing that tomorrow
308: [04:07:06] <ss23> In a single day?
309: [04:07:07] <ss23> Good luck!
310: [04:07:08] <ss23> :P
311: [04:07:12] <antmas> a WHOLE DAY
312: [04:07:17] <ss23> Man, picking class names in CSS is hard
313: [04:07:22] <ss23> I'm thinking "peekingdownbox"
314: [04:07:26] <ss23> or maybe "topleftmenu"
315: [04:07:27] <Ryan-Toast> ss23: yu get used to it.
316: [04:07:28] * antmas is doing this right now
317: [04:07:35] <ss23> "stickybox" maybe
318: [04:07:42] <Ryan-Toast> ss23: box
319: [04:07:47] <ss23> box is too generic!
320: [04:07:50] <Ryan-Toast> class=“box sticky"
321: [04:07:58] <ss23> naw
322: [04:07:58] <Ryan-Toast> decouple that shit, son
323: [04:08:00] <ss23> needs to be more unique
324: [04:08:02] <antmas> tis harder when you're choosing them for a template and not just a site
325: [04:08:07] <ss23> it's a unique element, Ryan-Toast!
326: [04:08:10] <Ryan-Toast> then you do .box.stick{}
327: [04:08:13] <ss23> lol
328: [04:08:13] <ss23> please
329: [04:08:16] <Ryan-Toast> then you should use an id
330: [04:08:30] <ss23> I will use an ID
331: [04:08:31] <ss23> Maybe
332: [04:08:44] <Ryan-Toast> unique items are ids
333: [04:08:47] <ss23> I KNOW
334: [04:08:51] <ss23> BUT I STILL NEED TO PICK THE NAME
335: [04:08:53] <ss23> DON"T I?
336: [04:08:57] <Ryan-Toast> reusable or things that need to be broken down are classes.
337: [04:09:00] <ss23> dude
338: [04:09:01] <ss23> dude
339: [04:09:12] <Ryan-Toast> What’s in it?
340: [04:09:14] <ss23> been doing mother fucking front end for like 5+ years
341: [04:09:16] <antmas> ss23: MAKE SURE YOU USE EXTERNAL STYLES
342: [04:09:20] <ss23> DON'T BE TELLING ME SHIT
343: [04:09:26] <Ryan-Toast> ss23: :P
344: [04:09:27] <ss23> fuck you all I'm doing <div style="foo"> now
345: [04:09:58] <antmas> oh goody
346: [04:10:02] <Kingy> LOL
347: [04:10:13] <antmas> I've now been roped into telco workshops
348: [04:10:16] <Kingy> i'd just go with boxX
349: [04:10:24] <Kingy> if it's the 3rd box you've created box3 :P
350: [04:11:34] <antmas> Colin[pi]: at least his daughter is smokin
351: [04:11:36] <antmas> :P
352: [04:11:54] <Colin[pi]> antmas: must have got it from the mum
353: [04:13:16] <Colin[pi]> antmas: everyone is so pissed off right now in AU lol
354: [04:13:29] <antmas> Colin[pi]: tell me about
355: [04:13:39] <Colin[pi]> never quite seen it this bad, even in the Howard years
356: [04:13:48] <Ryan-Toast> Who’s daughter is smokin’?
357: [04:13:55] * travis-ci has joined #silverstripe
358: [04:13:55] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2603 (3.1 - 6466e39 : Damian Mooyman): The build passed.
359: [04:13:55] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/08ea44d45815...6466e390af0c
360: [04:13:55] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/25754651
361: [04:13:55] * travis-ci has left #silverstripe
362: [04:13:56] <antmas> Ryan-Toast: Tony Abotts
363: [04:14:28] <Colin[pi]> Ryan-Toast: http://images.smh.com.au/2013/08/25/4691108/vd-Abbott-girls-408x264.jpg
364: [04:14:45] <antmas> the one on the rigth
365: [04:14:50] <antmas> right*
366: [04:14:57] <Ryan-Toast> I wouldn’t say smokin'
367: [04:15:08] <antmas> Ryan-Toast: not a great photo
368: [04:15:20] <antmas> Ryan-Toast: also STAHP DISAGREEING
369: [04:15:22] <Ryan-Toast> http://i1.kym-cdn.com/photos/images/newsfeed/000/291/121/989.jpg
370: [04:15:22] <antmas> :P
371: [04:15:26] <Colin[pi]> http://www.abc.net.au/reslib/201001/r503872_2678666.jpg ?
372: [04:15:36] <Colin[pi]> lol Ryan-Toast
373: [04:15:50] * babak has joined #silverstripe
374: [04:17:44] <Stomach> she has a funny nose
375: [04:18:33] <Colin[pi]> comes from headbutting the desk after years of frustration living with her father
376: [04:20:01] <unsignedint> hey does anyone know if theres a way to encode a DataObject to JSON, including relations
377: [04:20:22] <unsignedint> and dont say JSONDataFormatter, that thing creates "href"'s for relations and doesnt include the related data in the output
378: [04:20:37] <mobiusnz1> yeah, override jsondataformatter
379: [04:21:41] <unsignedint> is there a way to detect recursive relations? like if a ProductGroup has_many Products and a Product has_one ProductGroup, the relationship is recursive
380: [04:22:10] <unsignedint> because I tried overriding JSONDataFormatter but I was getting infinite loops in the above case
381: [04:22:24] <mobiusnz1> yeah you'd have to decide how you wanted to handle that
382: [04:22:31] * mobiusnz1 is now known as mobiusnz
383: [04:22:59] <mobiusnz> similarly what to do with many_manys
384: [04:23:23] <unsignedint> indeed
385: [04:23:52] <unsignedint> if only you could call eg $this->eagerLoad("RelationName") on a relation and have it only include the eager loaded relations
386: [04:24:11] <unsignedint> instead of _all_ relations
387: [04:25:09] <jordanmk> hey guys
388: [04:25:34] <unsignedint> wassup
389: [04:25:58] * mediacorpjack has joined #silverstripe
390: [04:26:15] <mediacorpjack> heya, how do I add a class to an inserted $Image in a template?
391: [04:26:30] <jordanmk> i've extended the SS Member class to add a $has_many of a certain DataObject
392: [04:26:40] <unsignedint> mediacorpjack: do the surrounding HTML yourself, and just use $Image.URL to get the link
393: [04:26:52] <mediacorpjack> cool thanks
394: [04:26:53] <jordanmk> that DataObject being a subscription payment
395: [04:27:18] <jordanmk> i need to add a place in the CMS to view all members who have got at least one of these subscription payment DataObjects
396: [04:27:35] <Stomach> unsignedint - https://github.com/colymba/silverstripe-restfulapi
397: [04:27:43] <jordanmk> and ideally apply even more logic if possible (i.e. only show members with subscription payments that haven't expired)
398: [04:27:47] <Ryan-Toast> jordanmk: make a ModelAdmin extension
399: [04:27:48] <jordanmk> any ideas on how i could do this?
400: [04:27:55] <unsignedint> Stomach: you seem to somehow know about every useful SS plugin haha
401: [04:28:24] <Ryan-Toast> jordanmk: ^
402: [04:28:38] <jordanmk> Ryan-Toast, would the ModelAdmin extension use Member as the managed_model, or the subscription payments?
403: [04:28:42] <Stomach> unsignedint - I have spent a long time as a silverstripe developer :P
404: [04:28:47] <Ryan-Toast> jordanmk: Member
405: [04:29:01] <irogue> Stomach: is that cos you're OLD?
406: [04:29:11] <Stomach> irogue - getting there
407: [04:29:16] <Stomach> on the bad side of 25 already :D
408: [04:29:26] <irogue> baby
409: [04:29:31] <Colin[pi]> ha! young whipper snapper
410: [04:29:36] * mediacorpjack quit (Client Quit)
411: [04:29:43] <Stomach> haha
412: [04:29:57] <Colin[pi]> try being on the bad side of 35 ;P
413: [04:30:00] <Ryan-Toast> jordanmk: Like this, and just filter them based on if they have any of those dos https://github.com/Rhym/ss_boilerplate/blob/master/Boilerplate/code/Modules/ContactForm/code/ContactMessageAdmin.php
414: [04:30:21] <Stomach> I just realised my first silverstripe project would have been 5 years ago :S
415: [04:30:22] <irogue> Colin[pi]: HOLY SHIT THE ELDERLY ARE AMONG US
416: [04:30:33] <irogue> Colin[pi]: do you have Greypower membership?
417: [04:30:35] <Colin[pi]> irogue: what's that, sonny?
418: [04:31:44] <irogue> TURN YOUR HEARING AID ON GRANDPA
419: [04:31:56] <jordanmk> Ryan-Toast, are you doing any filtering in that example you provided?
420: [04:32:04] <Ryan-Toast> jordanmk: nope
421: [04:32:16] <Ryan-Toast> jordanmk: that one is just a grifield
422: [04:33:38] <Colin[pi]> is there a site where I can download more time?
423: [04:33:45] <Stomach> www.downloadmoretime.com
424: [04:33:58] <Colin[pi]> bah, it's not working!
425: [04:34:03] <Stomach> its go daddy :(
426: [04:34:09] <Colin[pi]> weaksauce
427: [04:35:40] <Ryan-Toast> When it comes
428: [04:36:07] <Stomach> Ryan-Toast - I like your getFieldByName for gridfield, I always use getList then create a new one rather than editing the existing one
429: [04:36:19] <Stomach> thanks!
430: [04:36:55] <Ryan-Toast> Stomach: NP brobeans :)
431: [04:40:16] <Stomach> maybe I should spend some time tonight and clean up a few modules for github.
432: [04:40:21] <Stomach> oh no wait booklists!
433: [04:42:44] <jordanmk> Ryan-Toast, is filtering the items that show in the gridfield something you've done before? can't see any easy way to do it
434: [04:43:49] <Ryan-Toast> jordanmk: http://www.silverstripe.org/data-model-questions/show/23594
435: [04:47:45] <jordanmk> cheers, i can get it filtering results based on $db array properties, but i'm guessing it'll be harder to filter results based on a $has_many relationship
436: [04:50:04] <antmas> hmmmm
437: [04:50:14] <antmas> what's a good icon for a 'filter' type button
438: [04:50:25] <antmas> ?
439: [04:50:52] <Kingy> a filter
440: [04:51:28] <jordanmk> a funnel?
441: [04:51:30] <antmas> Kingy: what does that look like though? :P
442: [04:51:34] <antmas> using font awesome btw
443: [04:51:50] <Kingy> https://www.google.co.nz/search?q=filter+icon
444: [04:52:17] <antmas> Kingy: heh, fa-filter is just that
445: [04:52:20] <antmas> :P
446: [04:52:39] <Kingy> perfect then
447: [04:52:44] <jordanmk> ;)
448: [04:55:48] * Kingy is now known as Kingy[a]
449: [04:56:37] <jordanmk> Ryan-Toast, are you sure it's possible to filter out results in the ModelAdmin list based on the $has_many of the model being managed?
450: [04:58:20] <Ryan-Toast> Not sure about a default filter, but I would get all members, then loop them into a new ArrayList if the dataobject isn’t empty in them.
451: [04:59:40] * shellbackpacific has joined #silverstripe
452: [05:03:34] <Colin[pi]> antmas: ended up taking about 4 hours to get that little bitch working: http://imgur.com/K9IcZxg
453: [05:03:54] <Colin[pi]> antmas: though I did some other things too, like finally integrating open graph metadata ;P
454: [05:04:16] * shellbackpacific quit (Ping timeout: 265 seconds)
455: [05:04:16] * nickmolhoek1 quit (Quit: nickmolhoek1)
456: [05:05:11] <Ryan-Toast> Colin[pi]: use the default sharers.
457: [05:05:22] <Colin[pi]> Ryan-Toast: huh?
458: [05:05:37] <Ryan-Toast> Just links, so there’s no longer page load. And you can style them to how you want them to look.
459: [05:05:47] <Colin[pi]> eh..
460: [05:06:10] <Ryan-Toast> Colin[pi]: Like on the lefthand side here: http://webdough.co.nz/~boilerpl/blog/we-made-a-weather-app/
461: [05:07:22] <Colin[pi]> Ryan-Toast: but then I couldn't do this: http://imgur.com/FBH2pEL ;P
462: [05:07:23] <Ryan-Toast> Colin[pi]: Code: https://github.com/Rhym/ss_boilerplate/blob/master/Boilerplate/code/Modules/Blog/templates/Includes/Sharer.ss
463: [05:10:30] <Ryan-Toast> home time, XMEN TIME. Later, boys.
464: [05:10:36] <Colin[pi]> cyas!
465: [05:11:04] <Ryan-Toast> antm,as: add those bug to BP tonight :P
466: [05:16:31] <jordanmk> Ryan-Toast, i can't seem to get anything happening. really stuck with filtering the list based on the $has_many relation
467: [05:16:51] <jordanmk> :(
468: [05:17:08] <antmas> Ryan-Toast: mebe
469: [05:17:10] <antmas> XD
470: [05:17:14] <ss23> I'm having a complete mind blank here guys...
471: [05:17:26] <antmas> I forget how awesome font icons are
472: [05:17:30] <ss23> How do I do like <% with HeaderPage.get() %>
473: [05:17:40] <ss23> Like, loop over the header pages where HEaderPage is a page type
474: [05:17:41] <ss23> >.<
475: [05:20:14] <antmas> annnnnnd I'm outa here
476: [05:20:16] <ss23> guis
477: [05:20:16] <antmas> later all
478: [05:20:16] <ss23> ;_;
479: [05:20:18] <antmas> o/
480: [05:20:18] <ss23> I've asked before
481: [05:20:19] <ss23> COME ON antmas
482: [05:20:20] <ss23> COME ON
483: [05:20:22] <ss23> :(
484: [05:20:33] * antmas quit (Quit: Page closed)
485: [05:26:09] <simon_w> ss23, <% loop $list("HeaderPage") %>
486: [05:26:24] <ss23> ty <3
487: [05:26:25] * Shrike_Finland has joined #silverstripe
488: [05:28:40] <ss23> but uh
489: [05:28:43] <ss23> hmm
490: [05:28:51] <ss23> I hate making deicsisons
491: [05:28:51] <ss23> :(
492: [05:31:04] * Ryan-Toast quit (Quit: Ryan-Toast)
493: [05:32:39] * irogue snickers
494: [05:35:59] * iamss has joined #silverstripe
495: [05:36:13] <iamss> hello SS!
496: [05:37:03] <ss23> Hi
497: [05:37:04] <ss23> I'm ss!
498: [05:37:05] <ss23> ss23 in fact
499: [05:37:06] <ss23> :D
500: [05:37:12] <ss23> irogue: bitch :P
501: [05:38:28] <iamss> got a question. Is there a way to patch a certain function without extending the class. can do an extension but limited for hook if it has a hook
502: [05:38:43] <iamss> but what if a function to patch doesn't have a hook?
503: [05:38:59] <Colin[pi]> then you're SOL
504: [05:40:33] <iamss> great
505: [05:41:02] <Colin[pi]> extensions can add functions but not replace, only extend via hooks
506: [05:41:14] <Colin[pi]> only a subclass can override the parent function
507: [05:49:48] * iamss quit (Ping timeout: 240 seconds)
508: [05:53:06] <irogue> ss23: kekekeke
509: [05:53:17] <irogue> ss23: janine made me
510: [05:54:05] <ss23> :(
511: [05:59:26] * UncleCheese___ quit (Quit: UncleCheese___)
512: [06:00:46] * shellbackpacific has joined #silverstripe
513: [06:05:09] * shellbackpacific quit (Ping timeout: 252 seconds)
514: [06:10:12] * travis-ci has joined #silverstripe
515: [06:10:12] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2604 (pulls/https-proto - 47271ac : Ingo Schommer): The build has errored.
516: [06:10:12] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/commit/47271ace480f
517: [06:10:12] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/25759517
518: [06:10:12] * travis-ci has left #silverstripe
519: [06:22:59] <Colin[pi]> ingo broke it! ruh roh!
520: [06:25:49] <ss23> :O
521: [06:25:52] <ss23> HE MERGED IT WHILE BROKEN?
522: [06:28:41] <ss23> ah
523: [06:28:41] <ss23> naw
524: [06:28:43] <ss23> that's a branch!
525: [06:30:59] <jordanmk> Ryan-Toast, i managed to get it working, thanks for the help :)
526: [06:43:52] * terryapodaca has joined #silverstripe
527: [06:44:13] <Colin[pi]> ss23: just emailed a gov guy, sure enough "I am out of the office until X"
528: [06:44:21] <ss23> XD
529: [06:44:24] <ss23> Every day, I tell you!
530: [06:49:39] <irogue> ss23: you got *told* in flowdoc :P
531: [06:49:51] <ss23> pls
532: [06:54:47] * anselmdk has joined #silverstripe
533: [07:01:56] * shellbackpacific has joined #silverstripe
534: [07:02:38] * wmk has joined #silverstripe
535: [07:05:19] * ARNHOE has joined #silverstripe
536: [07:06:42] * shellbackpacific quit (Ping timeout: 276 seconds)
537: [07:11:03] * ocm has joined #silverstripe
538: [07:11:05] <ocm> howdy
539: [07:13:48] * an_Eskimo quit (Ping timeout: 240 seconds)
540: [07:15:22] <wmk> hi ocm
541: [07:15:48] * ocm quit (Ping timeout: 276 seconds)
542: [07:29:16] * dancingbear has joined #silverstripe
543: [07:31:50] <dancingbear> hi, some1 here?
544: [07:32:03] <ss23> Nope
545: [07:32:05] * ss23 hides
546: [07:32:25] <dancingbear> i''m getting this error
547: [07:32:28] <dancingbear> check http://template1.pixodemo.nl/
548: [07:32:49] <dancingbear> its this line: // Set the site locale i18n::set_locale('nl_NL');
549: [07:32:57] <dancingbear> whats wrong? o0
550: [07:33:19] <ss23> A wild guess would be somehow framework/ is broken or something
551: [07:33:56] <dancingbear> fuck me
552: [07:34:43] <dancingbear> thats not cool
553: [07:35:06] <ss23> :(
554: [07:35:14] <ss23> IF you use composer, you can just rm -rf framework && composer install!
555: [07:35:24] <ss23> Try ?flush=all too
556: [07:35:25] <ss23> :D
557: [07:35:57] <dancingbear> was the cache
558: [07:36:04] <dancingbear> fixed it :)
559: [07:36:22] <dancingbear> Thnx anyway :D
560: [07:37:36] <ss23> :D
561: [07:43:50] * guci0 has joined #silverstripe
562: [07:43:52] <guci0> Hello World!
563: [07:43:59] <ss23> Hallo guci0!
564: [07:44:08] <guci0> \;)
565: [07:45:12] * stnvh has joined #silverstripe
566: [07:57:43] <dancingbear> Can i change the: Page title name in the cms
567: [07:58:02] <dancingbear> To Product title
568: [07:59:44] * ocm has joined #silverstripe
569: [07:59:47] <ocm> howdy (again) :D
570: [08:03:05] <ss23> howdy!
571: [08:03:05] * shellbackpacific has joined #silverstripe
572: [08:07:56] * shellbackpacific quit (Ping timeout: 265 seconds)
573: [08:09:16] * kinglozzer has joined #silverstripe
574: [08:10:46] * UncleCheese_ has joined #silverstripe
575: [08:13:30] * spronk2 has joined #silverstripe
576: [08:16:56] <Shrike_Finland> Anyone noticed, that UserDefinedForm export CSV data somehow in reversed order? Or should I put some values in fields for ordering them?
577: [08:17:50] * micmania1 has joined #silverstripe
578: [08:29:00] <kinglozzer> Anyone else use Firefox 29?
579: [08:29:08] <ss23> We can hope not!
580: [08:29:08] <kinglozzer> Is it a crashy piece of shit for you too?
581: [08:29:33] * kinglozzer just using Chrome
582: [08:29:37] <kinglozzer> But the CMS is unusable in FF
583: [08:33:15] <ss23> I can try it
584: [08:33:41] <ss23> Seems to work okay
585: [08:33:47] <ss23> I don't use it properly, but just loading and clicking seems to work
586: [08:37:35] <kinglozzer> ss23: OSX?
587: [08:38:08] * UncleCheese_ quit (Quit: UncleCheese_)
588: [08:38:43] <ss23> Windows
589: [08:39:03] <kinglozzer> Hmm
590: [08:39:22] <kinglozzer> Maybe if I spend an hour making it crash, sending hundreds of crash reports someone might notice
591: [08:40:24] <ss23> XD
592: [08:58:17] <terryapodaca> OMG! I can't hardly wait for the weekend!
593: [09:03:55] * Shrike_Finland quit (Quit: Leaving.)
594: [09:04:03] * shellbackpacific has joined #silverstripe
595: [09:08:36] * shellbackpacific quit (Ping timeout: 252 seconds)
596: [09:20:17] * Shrike_Finland has joined #silverstripe
597: [09:35:03] * Shrike_Finland quit (Quit: Leaving.)
598: [09:37:25] <guzzlefry> friday friday
599: [09:37:30] <ss23> :O
600: [09:37:32] <ss23> NO IT'S NOT
601: [09:37:34] <ss23> LIAR, guzzlefry! ;_;
602: [09:37:36] <guzzlefry> oh wait, you guys are a day ahead aren't you?
603: [09:37:37] <ss23> Getting me all excited :/
604: [09:37:44] <ss23> Thu May 22 21:37:45 NZST 2014
605: [09:37:45] <ss23> ;_;
606: [09:37:51] <guzzlefry> almost!
607: [09:38:00] <guzzlefry> it's 05:37 on a thursday here :P
608: [09:38:25] <terryapodaca> for real...it's Thursday 4:38 am here
609: [09:38:41] <guzzlefry> ss23: bro, you don't know how lucky you are.
610: [09:38:43] <guzzlefry> gaaalll
611: [09:38:44] <ss23> lol
612: [09:38:48] <ss23> I had to start Monday earlier!!!!!
613: [09:38:49] <guzzlefry> gauulll something
614: [09:38:54] <ss23> Sooner, rather
615: [09:38:56] <guzzlefry> however Randy from South Park says it. :P
616: [09:39:39] <guzzlefry> I'm trying to knock stuff out so I don't have to worry about work over the weekend. >_>
617: [09:40:41] <ss23> :(
618: [09:40:46] <ss23> I'm going on holiday in ~1 more week
619: [09:40:48] <ss23> (of work)
620: [09:40:54] <ss23> I HAVE OVER A WEEK WORTH OF SHIT TO GET DONE
621: [09:41:53] <guzzlefry> take it to the limit
622: [09:42:10] <guzzlefry> Also, sometimes I miss working at a restuarant. :P
623: [09:42:19] <ss23> lol
624: [09:42:21] <ss23> No deadlines
625: [09:42:26] <ss23> Just come into work, then when you leave, done
626: [09:43:34] <guzzlefry> yeah, but then I remember how my boss was really cheap and would have the AC off, so the kitchen was around 95F near the door to the dining room. >_>
627: [09:43:53] <guzzlefry> Don't want to think about what it was like near the stoves. :P
628: [09:45:07] <ss23> hahaha
629: [09:45:10] <ss23> XD
630: [09:45:19] <guzzlefry> oh..and the crocs.
631: [09:45:23] <guzzlefry> Do you have those in NZ?
632: [09:45:44] <guzzlefry> the footwear, no the animal
633: [09:47:15] <ss23> haha
634: [09:47:17] <ss23> Yes, yes we do
635: [09:47:18] <ss23> :P
636: [09:47:28] <ss23> I hear they're comfortable!
637: [09:47:52] <guzzlefry> but they're also hideous.
638: [09:49:04] <guzzlefry> I wore giant boots to work so I could kick crap around. :P
639: [09:49:17] <guzzlefry> like really hot pans >_>
640: [10:05:11] * shellbackpacific has joined #silverstripe
641: [10:09:27] * shellbackpacific quit (Ping timeout: 240 seconds)
642: [10:32:27] * terryapodaca quit (Quit: Leaving.)
643: [10:33:48] * UncleCheese_ has joined #silverstripe
644: [10:35:52] * svandragt has joined #silverstripe
645: [10:36:33] <svandragt> how do you sort a dropdown by Title after using map("ID, "Title") because ->Sort('Title') doesn't do anything
646: [10:37:05] <micmania1> svandragt: do it before
647: [10:37:17] <micmania1> $dataList->sort("Title ASC")->map()
648: [10:37:55] * simon_w|air has joined #silverstripe
649: [10:38:13] <micmania1> otherwise you could just use sort()
650: [10:38:35] <micmania1> asort() even
651: [10:39:35] <svandragt> seems some kind of caching was taking effect thanks micmania1
652: [10:42:18] * dancingbear quit (Ping timeout: 240 seconds)
653: [10:43:42] * wmk rhymes: svandragt: the cache / the cache / can make headache
654: [10:47:34] <micmania1> Ever woke up one morning and that "I'm going to start a national bed federation?"
655: [10:47:45] <micmania1> Well if you're from the UK there is no need! Somebody already did.
656: [10:48:28] <wmk> it there a good solution for the responsive image dilemma?
657: [10:52:21] * simon_w|air quit (Quit: This computer has gone to sleep)
658: [10:57:33] * Dancingbear has joined #silverstripe
659: [10:58:54] * simon_w quit (Ping timeout: 240 seconds)
660: [11:06:14] * shellbackpacific has joined #silverstripe
661: [11:06:15] <Zauberfisch> wmk: yes, responsive images are finally on the right trac
662: [11:06:33] <Zauberfisch> src set and picture are both in spec now and being implemented as we speak
663: [11:06:49] <Zauberfisch> meanwhile there is a pretty good polyfill
664: [11:07:06] <Zauberfisch> https://github.com/scottjehl/picturefill
665: [11:07:36] <Zauberfisch> (there are some other polyfills around as well, but this one is the most popular)
666: [11:11:06] * shellbackpacific quit (Ping timeout: 276 seconds)
667: [11:14:50] * simon_w|air has joined #silverstripe
668: [11:15:31] * Shrike_Finland has joined #silverstripe
669: [11:26:44] * UncleCheese_ quit (Quit: UncleCheese_)
670: [11:27:55] * Shrike_Finland1 has joined #silverstripe
671: [11:30:53] * Shrike_Finland quit (Ping timeout: 264 seconds)
672: [11:33:45] * UncleCheese has joined #silverstripe
673: [11:41:01] * UncleCheese quit (Quit: UncleCheese)
674: [11:58:46] * shellbackpacific has joined #silverstripe
675: [12:06:17] * richwestcoast has joined #silverstripe
676: [12:11:12] * UndefinedOffset has joined #silverstripe
677: [12:35:02] * simon_w|air quit (Quit: This computer has gone to sleep)
678: [12:36:23] * richwestcoast quit (Quit: My iMac has gone to sleep. ZZZzzz…)
679: [12:37:18] * Dancingbear quit (Ping timeout: 240 seconds)
680: [12:39:51] <wmk> Zauberfisch, thanks for the info
681: [12:50:55] * richwestcoast has joined #silverstripe
682: [12:51:51] * Colin[pi] quit (Ping timeout: 240 seconds)
683: [13:03:14] * terryapodaca has joined #silverstripe
684: [13:04:21] <terryapodaca> In SS3+, is there a simple way to make an Image thumbnail by some kind of simple api call?
685: [13:06:45] <Zauberfisch> terryapodaca: you have to be more specific with your question
686: [13:09:14] <terryapodaca> in 2.4 you had to write a simple custom function like getCMSThumb() or something similar...to add a thumbnail to the DOM. I'm trying to add a 'ProfilePhoto' => 'Image' thumbnail to a GridField
687: [13:09:31] <terryapodaca> and the old way I did it for 2.4 website isn't working for 3.1.5
688: [13:12:40] <wmk> terryapodaca, really?
689: [13:13:50] <wmk> ah, in backend...
690: [13:14:01] <terryapodaca> really
691: [13:14:10] <terryapodaca> and yes, backend, GridField
692: [13:15:02] <wmk> terryapodaca, http://www.silverstripe.org/general-questions/show/20136 is 3.0 but could do
693: [13:17:25] * question has joined #silverstripe
694: [13:17:47] <question> if you loop children on a parent page what controller are they in?
695: [13:18:15] <wmk> the current controller?
696: [13:20:11] <terryapodaca> I think he's asking what Context is he in...which would be the child
697: [13:22:59] <wmk> but the controller has to answer to a form e.g.
698: [13:26:37] * Shrike_Finland1 quit (Quit: Leaving.)
699: [13:28:05] <Zauberfisch> question: if you loop children, they have no controller. those are models only
700: [13:28:44] <Zauberfisch> terryapodaca: uhm, simply set summaryfields?
701: [13:32:43] <terryapodaca> Zauberfisch: That thread says two things, StripThumbnail and/or CMSThumbnail
702: [13:32:48] <terryapodaca> I'm trying both now
703: [13:33:15] <terryapodaca> is it really that simple? Photo.StripThumbnail or Photo.CMSThumbnail
704: [13:34:51] <Zauberfisch> yes
705: [13:35:32] <terryapodaca> my mind is blowing up! SS just keeps getting better and better!
706: [13:39:01] <wmk> terryapodaca, yes, sometimes it's simpler than we think ,)
707: [13:39:15] <wmk> gelatti time
708: [13:40:08] * catcher has joined #silverstripe
709: [13:43:26] <terryapodaca> ok, last question and I'll let you guys go have a fun weekend.
710: [13:43:56] <terryapodaca> How can I make the GridField show a Boolean as true/false instead of 1/0?
711: [13:55:11] <Zauberfisch> terryapodaca: there you have to create a method I think
712: [13:55:21] <Zauberfisch> in the dataobject you want to display in the grid:
713: [13:55:58] <Zauberfisch> public function MyBoolNice() { return $this->MyBool ? 'Yes' : 'No'; }
714: [13:56:12] <Zauberfisch> and then in the summaryfields / fields for the grid use "MyBoolNice'
715: [13:59:06] * n00b123 has joined #silverstripe
716: [13:59:58] <ocm> is it possible to combine 2 classes in a new class?
717: [14:00:13] <ocm> I would like to combine UserForms with another pageclass into a new one
718: [14:00:24] <n00b123> test
719: [14:00:51] * richwestcoast quit (Quit: Textual IRC Client: www.textualapp.com)
720: [14:01:37] <Zauberfisch> ocm: no
721: [14:02:10] <Zauberfisch> php does not support multiple inheritance
722: [14:02:27] <Zauberfisch> are both classes from modules?
723: [14:03:13] <Zauberfisch> or is 1 class by you? if it is, you could put the features you would like to share into an extension, and add that extension to both classes. or alternatively, you put it into Page
724: [14:03:28] <ocm> one custom class, the other is userforms
725: [14:03:49] <ocm> I like the thought of the extensions :) I guess I could do that
726: [14:12:45] <n00b123> Hey - relatively new to SS here. Am trying out a fresh 3.1.5 install with the advancedworkflow module, but finding it a bit glitchy, and can't seem to get a fairly basic workflow up and running. Anyone have issues on 3.1 with advancedworkflow?
727: [14:13:11] <n00b123> Forum posts are a bit thin on the ground...
728: [14:17:01] * richwestcoast has joined #silverstripe
729: [14:17:24] * richwestcoast quit (Client Quit)
730: [14:17:30] * corba has joined #silverstripe
731: [14:21:32] * corba quit (Client Quit)
732: [14:22:28] <terryapodaca> Zauberfisch: you were 95% correct
733: [14:23:10] <terryapodaca> public function MyBoolNice() { return $this->MyBool==true ? 'Yes' : 'No'; }
734: [14:23:12] * Shrike_Finland has joined #silverstripe
735: [14:23:13] <terryapodaca> $this->MyBool==true
736: [14:28:10] * spronk2 quit (Quit: spronk2)
737: [14:35:23] * n00b123 quit (Quit: Page closed)
738: [14:38:36] * NewLinuxUser quit (Ping timeout: 252 seconds)
739: [14:54:38] * kerosene quit (Quit: WeeChat 0.4.3)
740: [14:58:18] * kerosene has joined #silverstripe
741: [15:04:40] * kerosene quit (Quit: WeeChat 0.4.3)
742: [15:06:22] * kerosene has joined #silverstripe
743: [15:18:50] * svandragt has joined #silverstripe
744: [15:19:02] * Jane__ has joined #silverstripe
745: [15:19:37] <Jane__> Hey guys.
746: [15:19:49] <Jane__> Could someone help with searching in DataObjects?
747: [15:20:13] <micmania1> Jane__: what's the problem?
748: [15:20:17] <Jane__> FulltextSearchable doesn't seem to work with custom DataObjects.
749: [15:20:33] <Jane__> I assume because it's not a part of the site tree.
750: [15:20:36] <micmania1> Yes, it only works with SiteTree and File I believe
751: [15:20:59] <Jane__> Is there a way to make it work for DataObjects without writing a custom Search controller?
752: [15:21:00] <micmania1> You can manually add indexes to your data object and make the table MyISAM
753: [15:21:31] <Jane__> Mm, is it documented somewhere?
754: [15:21:44] <micmania1> Then you can use the ORM $dataList->filter("MyIndex:fulltext", "search term")
755: [15:22:13] <Jane__> Ah, so I'll have to write a custom search function then, I wanted to avoid that.
756: [15:23:24] <micmania1> It shouldn't take too much effort tbh
757: [15:23:39] <micmania1> and is much nice than the built in stuff which is pretty old now. It really needs a rework.
758: [15:23:46] <Jane__> Well, I have about 15 dataobjects.
759: [15:23:49] <wmk> Jane__, there is a module for searchable dataobjecs, don't know if it's really good
760: [15:24:23] <Jane__> @wmk I checked that, I think it's for 2.0, I'll check again, let me find it again.
761: [15:24:33] <wmk> https://github.com/g4b0/silverstripe-searchable-dataobjects
762: [15:24:59] <wmk> for 3.1
763: [15:25:17] <Jane__> Ah, thanks!
764: [15:25:20] <Jane__> Didn't see that one.
765: [15:25:39] <Jane__> I'll try it right now.
766: [15:26:29] <wmk> Jane__, haven't tested it but it may help you
767: [15:35:52] * cloph is now known as cloph_away
768: [15:36:32] * ARNHOE quit (Ping timeout: 258 seconds)
769: [15:37:01] * jenniferaslan has joined #silverstripe
770: [15:38:18] * wmk quit (Quit: nice to meet you ;))
771: [15:38:41] * anselmdk quit (Quit: anselmdk)
772: [15:42:29] * Shrike_Finland quit (Quit: Leaving.)
773: [15:54:27] <Zauberfisch> terryapodaca: uhm
774: [15:55:06] <Zauberfisch> "$this->MyBool" should be ecactly the same as "$this->MyBool == True"
775: [15:55:37] * shellbackpacific quit (Quit: Leaving.)
776: [15:55:43] <terryapodaca> really...it should, but it didn't work until I added the -==true part
777: [15:55:56] <terryapodaca> could be just that SS is being picky?
778: [15:56:02] <Zauberfisch> no, not really
779: [15:56:06] <Zauberfisch> thats a php thing
780: [15:56:15] <Zauberfisch> also, MyBool is actually 0 or 1
781: [15:56:24] <Zauberfisch> silverstripe stores boolean as Tinyint in mysql
782: [15:58:12] <Zauberfisch> proof: http://paste2.org/b1xEyFYM
783: [16:02:33] <terryapodaca> lol, I believe you!
784: [16:09:32] * kinglozzer quit ()
785: [16:13:48] * question quit (Ping timeout: 240 seconds)
786: [16:17:03] * sirocco_ has joined #silverstripe
787: [16:17:32] * shellbackpacific has joined #silverstripe
788: [16:17:42] * shellbackpacific has left #silverstripe
789: [16:24:36] * sirocco_ quit (Quit: Page closed)
790: [16:24:56] * ocm quit (Quit: HydraIRC -> http://www.hydrairc.com <-)
791: [16:25:11] * stnvh quit ()
792: [16:28:27] * ARNHOE has joined #silverstripe
793: [16:29:38] * ARNHOE quit (Client Quit)
794: [16:35:35] * robert_ quit (Read error: Connection reset by peer)
795: [17:48:38] * babak quit (Quit: Connection closed for inactivity)
796: [18:19:10] * Azure quit (Quit: Blue Sky Fish)
797: [18:35:58] * Azure has joined #silverstripe
798: [19:06:18] * guci0 quit (Ping timeout: 240 seconds)
799: [19:15:30] * gelignite has joined #silverstripe
800: [19:50:37] * SightUnseen has joined #silverstripe
801: [19:51:21] * SightUnseen has left #silverstripe
802: [20:01:18] * Jane__ quit (Ping timeout: 240 seconds)
803: [20:02:30] * terryapodaca has left #silverstripe
804: [20:08:43] <Stomach> morning yall
805: [20:09:01] * jenniferaslan quit (Quit: jenniferaslan has left the room)
806: [20:13:15] * antmas has joined #silverstripe
807: [20:20:53] * oddnoc has joined #silverstripe
808: [20:26:06] * jenniferaslan has joined #silverstripe
809: [20:26:08] * oddnoc quit (Quit: oddnoc)
810: [20:26:12] * Kingy[a] is now known as Kingy
811: [20:26:25] <Kingy> morning
812: [20:26:52] <Stomach> how do
813: [20:27:59] <Kingy> friday
814: [20:28:01] <Kingy> can't complain
815: [20:28:11] <Kingy> yourself?
816: [20:28:59] <Stomach> can complain, but wont :P
817: [20:29:07] <Stomach> going to xmen tonight, wooooo
818: [20:29:16] * UndefinedOffset quit (Quit: Leaving.)
819: [20:30:33] <Kingy> oh nice
820: [20:30:42] <Kingy> im trying to plan a trip to napier next weekend
821: [20:30:47] <Kingy> everything is booked
822: [20:31:13] * oddnoc has joined #silverstripe
823: [20:31:49] <Stomach> nice :D gonna get some sweet art deco in? do some skids down on the waterfront cart racing?
824: [20:34:07] <Kingy> c) all of the above
825: [20:34:32] <Kingy> should actually find out what to do in napier
826: [20:34:36] <Kingy> hit some wineries
827: [20:38:23] * an_Eskimo has joined #silverstripe
828: [20:42:19] <Stomach> winerie is a good option
829: [20:42:23] <Stomach> go to splash planet! :D
830: [20:42:57] <Kingy> haha wow I haven't been there in yonks
831: [20:43:36] * Ryan-Toast has joined #silverstripe
832: [20:45:28] <Stomach> neither lol
833: [20:48:35] <Kingy> it opened in 1998
834: [20:48:46] <Kingy> I'd say the last time I went was probably very early 00s
835: [20:51:13] <antmas> morning all
836: [20:51:27] <Kingy> hey
837: [20:51:35] * Ryan-Toast looks at github issues, looks at antmas
838: [20:52:55] * antmas hides face from Ryan-Toast
839: [20:53:01] <antmas> YOU CAN'T SEE ME HAHA
840: [20:53:34] <Stomach> such a dad
841: [20:53:37] <antmas> Ryan-Toast: tbf, I've take a couple of items off the list that were just me being retarded
842: [20:53:41] <Ryan-Toast> antmas: WHERE DID HE GO?!
843: [20:55:03] * catcher quit (Quit: Leaving)
844: [20:55:25] <Ryan-Toast> antmas: haha, no problem man.
845: [20:56:15] <antmas> Ryan-Toast: and the remaining issues are just IE things
846: [20:56:40] <Ryan-Toast> IEEEEE
847: [20:56:59] <Ryan-Toast> I like bugs. For some raisin.
848: [20:57:06] <antmas> fuck
849: [20:57:12] <antmas> sql coallition errors
850: [20:57:19] <antmas> fuckyoufuckyoufuckyou
851: [21:00:21] * babak has joined #silverstripe
852: [21:00:40] <Kingy> 77k files in assets folder
853: [21:00:41] <Kingy> fml
854: [21:04:31] <guzzlefry> single directory?
855: [21:14:18] * babak quit (Read error: Connection reset by peer)
856: [21:14:37] * babak has joined #silverstripe
857: [21:16:40] * nickmolhoek has joined #silverstripe
858: [21:17:54] * UncleCheese has joined #silverstripe
859: [21:23:29] <Kingy> guzzlefry: no, but yes
860: [21:23:38] <Kingy> Uploads dir has 60k
861: [21:23:45] <guzzlefry> :(
862: [21:24:08] <Kingy> yeah it's pretty rough
863: [21:34:17] <Ryan-Toast> Kingy: The fuck it the site?
864: [21:34:22] <Ryan-Toast> is**
865: [21:34:31] <Kingy> http://agrihq.co.nz
866: [21:35:23] <Ryan-Toast> Kingy: Did someone tell them that navigation menus are supposed to help users get to a section...quickly?
867: [21:36:29] <Kingy> I got the code to this site on Tuesday :P
868: [21:36:58] <Kingy> and yes
869: [21:36:58] <Kingy> lol
870: [21:37:03] * travis-ci has joined #silverstripe
871: [21:37:03] <travis-ci> [travis-ci] silverstripe/silverstripe-framework#2608 (3.1 - 2ed85dd : Mateusz U): The build passed.
872: [21:37:03] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-framework/compare/6466e390af0c...2ed85dd47be8
873: [21:37:03] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-framework/builds/25824096
874: [21:37:03] * travis-ci has left #silverstripe
875: [21:40:22] <Kingy> design overhaul is major priority once the backlog is cleared
876: [21:43:34] <Ryan-Toast> Kingy: I think this simple change would make it a lot ebetter: http://i.imgur.com/FlQwHWD.jpg
877: [21:45:04] <oddnoc> that’s almost always the case
878: [21:45:18] <oddnoc> burn all the things
879: [21:52:54] <Kingy> haha Ryan-Toast
880: [21:56:35] <Ryan-Toast> Boss listens to “The Sound” at work, and jesus christ are there anough erection pill ads?
881: [21:58:32] <antmas> does anyone know what 'collate database_default' (sql) actually does?
882: [22:01:00] * chillu_23 has joined #silverstripe
883: [22:02:23] * nickmolhoek quit (Quit: nickmolhoek)
884: [22:02:34] <Ryan-Toast> antmas: throw errors?
885: [22:04:46] <antmas> Ryan-Toast: :P
886: [22:05:11] <antmas> I'm just doing a compare between 2 dbs to find mismatches in records
887: [22:05:20] <oddnoc> Each DB is set up with a default collation…
888: [22:05:32] <antmas> oddnoc: it appears so
889: [22:06:02] <antmas> oddnoc: but does that statement change anything in returned records is what I'm trying to find out
890: [22:06:19] <antmas> as results I get returned show NO mismatches, but I can't trust that right off the bat
891: [22:08:08] <oddnoc> so far as i know, it would change the sort order, but only in the query results, not any default
892: [22:11:00] <antmas> interesting
893: [22:11:38] <oddnoc> I usually work on English-language sites, so the collation hardly matters :)
894: [22:12:12] <Ryan-Toast> antma: man, Flume is killing it this year.
895: [22:12:31] <oddnoc> But sometime, ask me about running PHP/SilverStripe with the Turkish locale.
896: [22:12:33] * gelignite quit (Quit: http://bit.ly/nkczDT)
897: [22:12:36] * NewLinuxUser has joined #silverstripe
898: [22:13:23] * chillu_23 quit (Quit: chillu_23)
899: [22:14:28] <Stomach> oddnoc - we are doing a big translated site at the moment and its a nightmare :D
900: [22:14:51] <oddnoc> Stomach: Can you get away with using the UTF8 collation for everything?
901: [22:16:14] <Stomach> probably - I think that because we are handling so many different languages its our only real option
902: [22:16:15] * simon_w has joined #silverstripe
903: [22:17:58] * mediacorpjack has joined #silverstripe
904: [22:18:27] * chillu_23 has joined #silverstripe
905: [22:20:18] * spronk has joined #silverstripe
906: [22:20:53] <mediacorpjack> Morning, I'm trying to add a checkbox to the settings->visibility tab of all cms pages which definines if a page shows in a menu or not.
907: [22:21:12] <mediacorpjack> adding $fields->addFieldToTab("Root.Settings", new CheckBoxField('TestCheckbox', 'Show in Main Menu?'), 'ShowInSearch'); to getSettingsFields in pagecontroller isnt working
908: [22:21:35] <mediacorpjack> am I doing something wrong?
909: [22:21:40] * cloph_away is now known as cloph
910: [22:21:42] <Ryan-Toast> function getSettingsFields() {}
911: [22:21:47] <oddnoc> mediacorpjack: There’s a built-in field for that already
912: [22:22:01] <mediacorpjack> I have two navigations
913: [22:22:03] <Ryan-Toast> mediacorpjack: function getSettingsFields() {}
914: [22:22:05] <oddnoc> OIC
915: [22:22:10] <mediacorpjack> need to define which one it goes into
916: [22:22:13] <oddnoc> then yes, getSettingsFields
917: [22:22:34] <Ryan-Toast> https://www.google.co.nz/search?q=siverstripe+add+to+settings+tab&oq=siverstripe+add+to+settings+tab&aqs=chrome..69i57.5094j0j7&sourceid=chrome&es_sm=119&ie=UTF-8
918: [22:22:35] <mediacorpjack> yes thats where I have it at the moment
919: [22:22:58] <mediacorpjack> I have already followed the first two results there
920: [22:23:41] <Ryan-Toast> did you add the parent function?
921: [22:24:04] <Ryan-Toast> here’s something I prepared earlier: http://pastebin.com/JyFEt2KT
922: [22:27:53] <Ryan-Toast> mediacorpjack: Got it sorted?
923: [22:28:04] <mediacorpjack> that matches what I had. I've pasted that into my controller and it still doesn't do anything. the function belongs in the Page_Controller class right?
924: [22:28:14] <Ryan-Toast> No
925: [22:28:19] <Ryan-Toast> in the page class
926: [22:28:36] <mediacorpjack> Oh right. Well then that is likely my problem :)
927: [22:28:39] <Ryan-Toast> :)
928: [22:28:48] <Ryan-Toast> It’s just like extending the cms fields.
929: [22:30:00] <Kingy> don't forget to flush also :)
930: [22:30:19] <mediacorpjack> Wicked that worked, thank you
931: [22:32:14] <oddnoc> mediacorpjack: Generally, the controller has all the methods of the model, but the model does not have access to the controller methods
932: [22:32:47] <Kingy> yay it's going to be windy this weekend
933: [22:34:29] <Ryan-Toast> Kingy: Yay?
934: [22:34:44] * antmas hates wind
935: [22:35:28] <Kingy> sorry /sarcasm
936: [22:35:45] <Kingy> more windy than usual anyway
937: [22:37:29] <mediacorpjack> Ok. Another question, If I want be able to cms add 1/many identifiers to a home page. Is the way to do it by creating them as data objects? how then do I make the 1 or many fields to add them onto the page?
938: [22:37:32] * simon_w misses the wind
939: [22:37:35] <mediacorpjack> sorry for all the questions
940: [22:39:01] <Ryan-Toast> mediacorpjack: Identifiers in what way?
941: [22:39:10] <oddnoc> like tags?
942: [22:40:31] <mediacorpjack> basically an item on the page. Would have a title and some text for each one. Eg. services we provide. Each service has a title, picture, some text
943: [22:40:51] <mediacorpjack> on a services page
944: [22:41:40] <Ryan-Toast> Yeah, us a DO
945: [22:41:43] <Ryan-Toast> use**
946: [22:42:06] <Ryan-Toast> Or if you want them to be indexable then just make them child pages, and loop the details on the parent page.
947: [22:47:17] <mediacorpjack> Ok thanks for the help
948: [22:49:09] <Ryan-Toast> How do you convert an Arraylist to a normal array? Or do I have to loop and push it manually?
949: [22:49:26] <simon_w> Ryan-Toast, $list->toArray()
950: [22:49:33] <oddnoc> that
951: [22:50:25] <Ryan-Toast> simon_w: still returns an ArrayList?
952: [22:50:34] <simon_w> Ryan-Toast, nope
953: [22:50:59] <Ryan-Toast> simon_w: My code is probs what’s the issue then: http://pastebin.com/2NMMHJtd
954: [22:52:08] <oddnoc> $an_array = $list->toArray()
955: [22:52:56] * bridgetm quit ()
956: [22:52:58] <Ryan-Toast> oddnoc: Ahh I was trying to apply the method without setting the varibale ><
957: [22:53:18] * UncleCheese quit (Quit: UncleCheese)
958: [22:53:47] * joelpittet has joined #silverstripe
959: [22:57:06] <oddnoc> Ryan-Toast: there you go
960: [22:57:42] <Ryan-Toast> oddnoc: I feel like I’m making this more convoluted than it needs to be. Must be a better way to send an array of the DO values.
961: [22:57:52] * nickmolhoek has joined #silverstripe
962: [22:58:53] <oddnoc> Ryan-Toast: You might not have to, because ArrayLists behave much like arrays when it comes to foreach. Certainly they work in templates as they are…
963: [22:59:28] <Ryan-Toast> oddnoc: Yeah, I’m sending the array to a javascript function is all.
964: [23:00:06] <oddnoc> Ryan-Toast: I haven’t used this, but I remember seeing a reference to templated js in the 3.1 docs
965: [23:00:25] <oddnoc> or are you sending it over the net?
966: [23:00:43] <Ryan-Toast> oddnoc: Nah, I’ve used it succesfully. Just having an issue with arrays.
967: [23:00:49] * UncleCheese_ has joined #silverstripe
968: [23:00:51] <oddnoc> got it
969: [23:01:54] * antmas_ has joined #silverstripe
970: [23:03:32] <Ryan-Toast> oddnoc: Oh, derrrrp. I forgot to json_encode the array.
971: [23:03:48] * antmas quit (Ping timeout: 240 seconds)
972: [23:04:01] <oddnoc> nice. glad you found the prob!
973: [23:05:29] * desperate has joined #silverstripe
974: [23:05:36] <desperate> Good evening folks
975: [23:06:11] <desperate> not been in for a while as I have been on some other non SS projects
976: [23:06:16] <desperate> miss the banter
977: [23:06:18] * antmas_ quit (Ping timeout: 240 seconds)
978: [23:06:49] <desperate> Got a question though, when a user uploads an image, is there a thumbnail version which I can pull intothe template
979: [23:07:07] <desperate> so if the user uploads a huge image I can show a reduced qualiy version
980: [23:07:38] <oddnoc> desperate: Image has functions for resizing, just use those
981: [23:07:51] * jordanmk has joined #silverstripe
982: [23:08:43] <desperate> I see that option.... is that any different to using the height and width in the img html tag?
983: [23:08:55] <desperate> at present i have a user who is uploading 3mb image files
984: [23:09:02] <desperate> I want todisplay a thumbnail
985: [23:09:04] <Ryan-Toast> desperate http://pastebin.com/yH1Bt2s2
986: [23:09:07] <oddnoc> Much different.
987: [23:09:13] <desperate> it's slowing my pages down
988: [23:09:17] <oddnoc> The functions use GD to create a new image
989: [23:09:39] <oddnoc> so the new image is much smaller
990: [23:09:53] <Ryan-Toast> desperate: The paste above ^
991: [23:09:54] <desperate> Ryan-Toast: is that the same as using: $Image.SetWidth(80)
992: [23:09:57] <desperate> in the template
993: [23:10:00] <Ryan-Toast> desperate: Yarp
994: [23:10:04] <oddnoc> aye
995: [23:10:05] <desperate> cool
996: [23:10:57] <Ryan-Toast> desperate: also, chuck a max file upload size on the UploadField
997: [23:11:29] <Ryan-Toast> educating clients on things like file size will cause you less headaches down the road
998: [23:11:32] <desperate> i thoughht of that, but then i will get a support call.. "I can't upload"
999: [23:11:44] <desperate> "ou have to re-size"
1000: [23:11:48] <desperate> "how do I do that"
1001: [23:11:51] <desperate> argggh!
1002: [23:11:53] <Ryan-Toast> SURE, BRO THAT WILL BE $100 AN HOUR
1003: [23:12:19] <Kingy> Ryan-Toast: Oh you mean you don't like getting images 25000x18000
1004: [23:12:35] <Ryan-Toast> Kingy: Thebest
1005: [23:12:55] <Kingy> especially when you show it on the site at 300px :P
1006: [23:13:15] <Ryan-Toast> Kingy: 20MB pdfs are my fav
1007: [23:13:22] <Ryan-Toast> can’t resize that shit.
1008: [23:13:37] <Kingy> haha
1009: [23:15:05] <desperate> this is my code: <img src="$Image.filename.SetHeight(125)" alt="">
1010: [23:15:24] <Ryan-Toast> desperate: Just do $Image.setHeight(100)
1011: [23:15:27] <UncleCheese_> desperate: $Image.SetHeight(100).URL
1012: [23:15:42] <UncleCheese_> or just SetHeight if you want SS to render the tag for you
1013: [23:18:51] <desperate> hmm i'm getting permission denied on assets/_resampled
1014: [23:19:06] <desperate> sometimes this is when the folder doesnt exist right
1015: [23:19:09] <oddnoc> desperate: you have to fix that on the server
1016: [23:19:37] <Kingy> desperate: or web user doesn't have permissions in that folder
1017: [23:19:39] <oddnoc> docroot/assets & descendents have to be writable by the web service
1018: [23:22:19] * spronk quit (Ping timeout: 240 seconds)
1019: [23:22:39] <desperate> i chmod _resampeled to 777 still no joy
1020: [23:22:48] <desperate> i think it's to do with the owner / group
1021: [23:23:25] <oddnoc> 777 is writable by all, but is this apache?
1022: [23:23:36] <oddnoc> you have to restart apache
1023: [23:26:46] * oddnoc quit (Quit: bye!)
1024: [23:29:13] <desperate> i fixed it by chaning the group owner
1025: [23:29:16] <desperate> it now works
1026: [23:29:24] <desperate> apache yes
1027: [23:29:26] * antmas has joined #silverstripe
1028: [23:30:29] <antmas> woah
1029: [23:31:03] * nickmolhoek quit (Quit: nickmolhoek)
1030: [23:31:18] * mediacorpjack quit (Ping timeout: 240 seconds)
1031: [23:32:32] <antmas> just trippled my phone battery life
1032: [23:32:36] <antmas> fucking google services
1033: [23:32:57] <desperate> do any of you guys use VIM editor
1034: [23:33:45] <Kingy> antmas: google services is also using the most battery on my phone :(
1035: [23:35:46] <desperate> I use VIM editor when I am using Telnet
1036: [23:35:59] <desperate> for some reason on the PC the keypad doesn't work
1037: [23:36:08] <desperate> I make the same mistake over and over
1038: [23:36:18] <desperate> sooooooooooooo annoying
1039: [23:36:48] <ss23> https://twitter.com/riskybusiness/status/469622390360514561 :D
1040: [23:37:30] <antmas> Kingy: sound search specifically?
1041: [23:40:27] <antmas> Kingy: because that was mine, I just turned syncing off for that specifically and that trippled my bat life
1042: [23:40:57] <Kingy> antmas:not sure. If I look in battery status 'Google Services' is using the most at 19%
1043: [23:41:16] * spronk has joined #silverstripe
1044: [23:41:17] <antmas> Kingy: ah ok, yeah mine does that but that is normal
1045: [23:41:25] <antmas> still sucks, but normal
1046: [23:41:40] <Kingy> oh ok then
1047: [23:41:41] <antmas> you can cut it back by choosing what it actually syncs though
1048: [23:41:42] <Kingy> good :P
1049: [23:42:31] <antmas> Kingy: go to, Settings>Accounts>Google, then select your gmail account and it will show you the services that it's syncing, turn off the ones you don't need and you should save quite a bit
1050: [23:45:54] <Kingy> ah cheers
1051: [23:46:02] <Kingy> plus samsung shit
1052: [23:46:04] <Kingy> don't need that
1053: [23:46:05] <Kingy> lol
1054: [23:46:45] <antmas> Kingy: yeah I installed Cyanogenmod to get rid of all that samsung crap
1055: [23:46:55] <antmas> vanilla android FTW
1056: [23:47:01] <Ryan-Toast> Touchwiz can go die in a fire
1057: [23:47:09] <antmas> Ryan-Toast: +100
1058: [23:47:12] <Kingy> work phone so i can't root it unfortunately
1059: [23:47:28] <antmas> Kingy: ah :P
1060: [23:48:14] <Kingy> interesting though
1061: [23:48:26] <Kingy> my nexus 7 tablet will last 3-4 days quite happily
1062: [23:48:30] <Kingy> S4 is 2 days max
1063: [23:48:43] <antmas> Kingy: about the same as my S3
1064: [23:51:28] <antmas> http://jalopnik.com/florida-slightly-redeemed-by-googling-mazda-miata-more-1580268066
1065: [23:57:29] * mediacorpjack has joined #silverstripe
1066: [23:59:06] <Ryan-Toast> Please, tell me more about your son the web designer.
1067: [23:59:30] <Ryan-Toast> Oh wait, he’s in high school. Fuck off, lady.
1068: [23:59:36] <Ryan-Toast> This is my job.

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