#silverstripe IRC Log

IRC log for 26 January 2014

All timestamps are in UTC.

1: [00:17:06] * Azure has joined #silverstripe
2: [00:40:45] <guzzlefry> question!
3: [00:41:06] <guzzlefry> Wouldn't adding a hook for DataObject::onBeforeCreate() be trivial?
4: [00:41:16] <guzzlefry> I'm guessing there's a reason it doesn't exist already...
5: [00:45:41] <simon_w> Because there'll be nothing to hook on to, since it doesn't exist yet?
6: [00:51:44] <guzzlefry> uhm
7: [00:51:51] <guzzlefry> onBeforeWrite() fires just fine?
8: [00:54:21] <guzzlefry> http://api.silverstripe.org/3.1/source-class-DataObject.html#1141
9: [00:54:46] <guzzlefry> Why not just toss if (!$this->ID) { $this->onBeforeCreate(); } before that line?
10: [00:55:09] <guzzlefry> oh wait
11: [00:55:09] <guzzlefry> hrm
12: [00:55:21] <guzzlefry> yeah, that should work?
13: [00:58:31] <simon_w|air> Because that's not create, that's first write
14: [00:58:37] <simon_w|air> And you can do that yourself already
15: [00:59:41] <guzzlefry> err
16: [01:00:45] * joelpittet quit ()
17: [01:00:54] <guzzlefry> It does two queries when creating right? One to get the ID and another to finalize? 0.o
18: [01:01:20] * guzzlefry reads the code. :P
19: [01:12:46] * Kapdap quit (Quit: leaving)
20: [01:30:03] * antmas has joined #silverstripe
21: [01:31:16] <antmas> afternoon all
22: [01:31:33] <Colin[pi]> HAI ANTMAS
23: [01:31:44] <antmas> Colin[pi], HAI!
24: [01:31:51] <antmas> does anyone here use Page Builder?
25: [01:34:58] <guzzlefry> Is there anything in the SilverStripe coding conventions that says I can't put Page and Page_Controller in separate files?
26: [01:36:05] <guzzlefry> ^ to double check, I'm reading through it now. :P
27: [01:36:54] <willr> nope
28: [01:37:14] <willr> just a convention that you should..
29: [01:37:29] * Azure quit (Read error: Connection reset by peer)
30: [01:38:01] * Azure has joined #silverstripe
31: [01:38:16] <guzzlefry> ah gotcha
32: [01:38:28] <guzzlefry> I'm used to Java where every public class is in a separate file. :P
33: [01:39:47] <willr> probably a good idea, nothing stopping you in SS. "Convention" is any Page_* that has an underscore is in a Page.php file, something like PageFoo would be in a separate PageFoo file.
34: [01:39:56] <willr> though nothing in forces that on you
35: [01:40:52] <guzzlefry> yay for choices
36: [01:40:58] <guzzlefry> Also, is there any code sniffer for this yet?
37: [01:43:06] <guzzlefry> willr: if I went ahead and documented some magic properties (such as the given ones DataObject::ID, DataObject::Created, etc.) are those likely to get merged into the code?
38: [01:43:42] <willr> quite likely. How do you mean documented though?
39: [01:46:11] * gelignite quit (Quit: http://bit.ly/nkczDT)
40: [01:46:11] <guzzlefry> using "@property shows a "magic" property variable that is found inside the class." along with @method for any relations, since they're effectively methods when using them in the code.
41: [01:47:27] <willr> handy. Sure, anything that makes API clearer. Did some work to clean up api.silverstripe.org yesterday. madmatt has cleaned up package names. Most of the classes need to be reviewed next
42: [01:48:50] <guzzlefry> Just to be sure, api.silverstripe.org is generated from the PHPDoc tags, correct?
43: [01:48:59] <guzzlefry> At least the content. :P
44: [01:51:55] <willr> yep
45: [01:52:34] <willr> if you're unsure of whether it comes out, you can download https://github.com/silverstripe/api.silverstripe.org and run makedoc.sh
46: [01:52:51] <guzzlefry> ah, thanks
47: [01:58:53] * travis-ci has joined #silverstripe
48: [01:58:53] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#698 (master - c608282 : Will Rossiter): The build has errored.
49: [01:58:53] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/07033548fc05...c6082827dc25
50: [01:58:53] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/16912268
51: [01:58:53] * travis-ci has left #silverstripe
52: [01:59:49] <simon_w|air> willr, YOU BROKE IT
53: [02:00:42] <simon_w> willr, STOP BREAKING THINGS
54: [02:01:45] <guzzlefry> Is there a CMS 3.1.2 stable? 0.o
55: [02:02:47] <simon_w> yes
56: [02:03:39] <guzzlefry> https://github.com/silverstripe/silverstripe-cms/issues/milestones?state=open
57: [02:03:40] <simon_w> https://github.com/silverstripe/silverstripe-cms/tree/3.1.2
58: [02:03:44] <guzzlefry> that lies then :P
59: [02:04:05] <guzzlefry> unless I'm misunderstanding.
60: [02:04:43] <simon_w> You can ignore anything that might relate to triarging
61: [02:29:36] <guzzlefry> So, yet another question. If I submit a pull request, will those be in the 3.2 release?
62: [02:29:50] <guzzlefry> Confused as to how most of this works in general. :P
63: [02:32:15] <willr> Do your PR for 3.1 and yes it will be merged into master (which will probably be 3.2)
64: [02:32:29] <willr> unless it's an API change then master directly
65: [02:33:36] <guzzlefry> API change?
66: [02:33:52] <guzzlefry> documentation wise?
67: [02:35:52] <willr> like removing something
68: [02:36:07] <willr> if it's just docs then all good for 3.1
69: [02:37:23] <guzzlefry> cool, thanks again
70: [02:38:02] * spronk quit (Ping timeout: 264 seconds)
71: [02:50:14] <guzzlefry> # On branch 3.1
72: [02:50:14] <guzzlefry> # Your branch is behind 'origin/3.1' by 21 commits, and can be fast-forwarded.
73: [02:50:16] <guzzlefry> Is that normal? >_>
74: [02:50:44] <guzzlefry> Following the contribute guide. At this step: # verify current branch 'base' then branch and switch
75: [02:53:29] <simon_w> guzzlefry, yeah, just git pull
76: [02:54:35] <guzzlefry> Should I open a new ticket and use that for my branch name?
77: [02:54:41] <guzzlefry> s/ticket/issue
78: [02:55:54] <simon_w> Nah
79: [02:56:34] <guzzlefry> git branch document-magic-properties-methods good enough? :P
80: [02:57:01] <simon_w> You know no one reads them, right? :p
81: [02:57:36] <guzzlefry> oh well...
82: [02:57:42] <guzzlefry> The documentation makes it seem really important!
83: [03:07:58] <guzzlefry> Any preferred location for these @method and @property tags? I was going to throw them at the bottom of the class docblock.
84: [03:09:45] * SightUnseen has joined #silverstripe
85: [03:10:03] * SightUnseen1 has joined #silverstripe
86: [03:10:03] * SightUnseen quit (Read error: Connection reset by peer)
87: [03:12:41] * SightUnseen1 has left #silverstripe
88: [03:31:31] <guzzlefry> So, I'm documenting SiteConfig::Title, would string be more appropriate than Varchar given the usage context?
89: [03:37:23] <simon_w|air> All properties expect ID return strings
90: [03:38:19] <guzzlefry> simon_w|air: and SS_Datetime?
91: [03:38:44] <guzzlefry> ah, seems so...
92: [03:38:47] <simon_w|air> Nope, strings
93: [03:39:07] <guzzlefry> Well, that's confusing. :P
94: [03:39:29] <simon_w|air> If you want the object, you ask for the object
95: [03:39:41] <guzzlefry> How do you do that?
96: [03:40:06] <simon_w|air> $this->obj('Name')
97: [03:40:33] <guzzlefry> thanks
98: [03:53:20] <guzzlefry> Is File::Content actually used?
99: [04:02:51] * DesignerX quit (Quit: Konversation terminated!)
100: [04:03:48] * mintuser has joined #silverstripe
101: [04:03:54] * mintuser quit (Client Quit)
102: [04:09:19] <guzzlefry> Is there a better place to ask these questions?
103: [04:09:24] <guzzlefry> I have quite a few. >_>
104: [04:33:25] * DigNZ quit (Remote host closed the connection)
105: [04:37:55] * mintuser has joined #silverstripe
106: [04:41:09] <mintuser> hi
107: [04:41:12] <guzzlefry> hello
108: [04:41:39] <mintuser> is there any tutorial that explains how to use composer+ Ss tro download & update modules ?
109: [04:42:26] <mintuser> already have composer+ used it to download SS, but can I create a list of modules & let SS and/or composer auto install them ?
110: [04:42:42] <guzzlefry> composer can
111: [04:42:51] <guzzlefry> mintuser: Which modules?
112: [04:43:14] <mintuser> many of them, lets say i want the blog & SQLit3 modules for now
113: [04:46:31] <guzzlefry> I usually go over to packagist.org and find them
114: [04:46:38] * cloph_away has joined #silverstripe
115: [04:46:48] * antmas quit (Ping timeout: 245 seconds)
116: [04:47:12] <guzzlefry> mintuser: https://packagist.org/packages/silverstripe/blog
117: [04:47:22] <simon_w|air> mintuser, http://addons.silverstripe.org/add-ons/silverstripe/blog
118: [04:47:23] * cloph quit (Ping timeout: 272 seconds)
119: [04:47:25] <guzzlefry> Find the version you want, probably dev-master
120: [04:48:01] <mintuser> I read that I can set a list of modules in SS config & let SS/Composer install them. (Portable Configuration)
121: [04:48:12] <guzzlefry> mintuser: Open the composer.json file in your project directory, you'll see a block that looks like "require": { }
122: [04:48:33] <guzzlefry> You can just add "silverstripe/blog": "dev-master"
123: [04:48:48] <guzzlefry> Add all of your modules to that block, then run composer install
124: [04:50:12] <guzzlefry> mintuser: If you look immediately under Dev-Master on that packagist link, you'll find the require line you need to add.
125: [04:50:15] <mintuser> will that also update ?
126: [04:50:26] <guzzlefry> no
127: [04:50:51] <guzzlefry> Just installs whatever versions are in composer.lock or any newly added/missing packages
128: [04:51:59] <mintuser> that's easy, I just add "silverstripe/blog": "dev-master" to the require array :)
129: [04:52:09] <guzzlefry> yep
130: [04:53:11] <mintuser> now I CD to the SS install & type "composer install" ?
131: [04:53:30] <guzzlefry> affirmative
132: [04:54:29] <mintuser> now I just edited composer.json & it's requesting an update !
133: [04:54:40] <mintuser> Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
134: [04:55:32] <guzzlefry> That's...probably safe to ignore I think.
135: [04:57:04] * mintuser is now known as DesignerX
136: [05:01:38] <DesignerX> guzzlefry: adding "silverstripe/blog": "dev-master" to the "require" array then typing " composer install" gives me the error above & does not install anything (prints "nothing to install or update")
137: [05:03:22] <simon_w|air> DesignerX, make sure it's valid JSON
138: [05:03:52] <guzzlefry> DesignerX: If you want paste your composer.json as well.
139: [05:05:22] <DesignerX> i'm using the default composer.json with one entry added to the "require" array, will paste in a sec :)
140: [05:05:58] <DesignerX> I added line #10 http://www.sspaste.com/paste/show/52e494b9e9ab5
141: [05:07:46] <guzzlefry> hrm
142: [05:07:50] <guzzlefry> not sure why it's doing that :/
143: [05:14:54] <simon_w|air> DesignerX, delete your composer.lock file
144: [05:15:16] <guzzlefry> simon_w|air: For my framework development branch, upstream should be the SilverStripe/silverstripe-framework github link while origin should be my own fork, correct?
145: [05:15:25] <simon_w|air> guzzlefry, yes
146: [05:15:57] * DigNZ has joined #silverstripe
147: [05:16:00] * DesignerX quit (Ping timeout: 265 seconds)
148: [05:18:42] <guzzlefry> 0.o
149: [05:20:44] <simon_w|air> I should cook dinner or something
150: [05:20:50] <simon_w|air> Or, someone should come cook for me!
151: [05:21:00] * guzzlefry votes ss23
152: [05:23:11] * DesignerX has joined #silverstripe
153: [05:24:15] <simon_w|air> Eh, I'd make him do the dishes instead
154: [05:24:22] <guzzlefry> hrm
155: [05:24:37] <guzzlefry> Not very comforting that some pull requests are 3 years old :P
156: [05:25:11] <simon_w|air> Docs ones usually get merged quickly, cause we like better docs :p
157: [05:26:07] <simon_w|air> Which reminds me, someone with CWP access needs to check my one
158: [05:26:59] <guzzlefry> oh good
159: [05:27:15] <guzzlefry> These are just a few doctags I added. :P
160: [05:28:43] <ss23> :O
161: [05:28:46] <ss23> I ordered a lot of curry
162: [05:28:48] <ss23> A *lot* of curry.
163: [05:28:51] <ss23> And ate it for dinner
164: [05:28:52] <ss23> :D
165: [05:29:04] <guzzlefry> I'm going to add return types to all of the @param @return stuff missing them next.
166: [05:29:16] <guzzlefry> Mostly to make my IDE stop bitching. :P
167: [05:29:24] <guzzlefry> "Expected The got string."
168: [05:29:29] <guzzlefry> stuff like that :)
169: [05:31:41] <ss23> get simon_w|air to merge them then!
170: [05:31:48] <ss23> @ 18:24:37 < guzzlefry> Not very comforting that some pull requests are 3 years old :P
171: [05:33:44] <guzzlefry> Well
172: [05:33:56] <guzzlefry> now I see why you want them committed against the 3.1 branch rather than master...
173: [05:34:03] <guzzlefry> No clue which pull requests are for 2.4 :P
174: [05:36:04] * DigNZ quit (Quit: DigNZ)
175: [05:36:04] <guzzlefry> Kinda wish Github would let me filter pull requests by branch. >_>
176: [05:42:21] * DigNZ has joined #silverstripe
177: [05:43:10] * DigNZ quit (Client Quit)
178: [06:09:59] * willr quit (Quit: willr)
179: [06:14:37] * SightUnseen has joined #silverstripe
180: [07:01:43] * willr has joined #silverstripe
181: [07:07:02] * Kapdap has joined #silverstripe
182: [07:36:49] <guzzlefry> hrm wait
183: [07:37:32] <guzzlefry> If I'm on my document-magic branch, and do git branch new-branch, is that branched from document-magic or master?
184: [07:37:46] <simon_w> document-magic
185: [07:37:50] <guzzlefry> rut roe
186: [07:38:25] <simon_w> git rebase master
187: [07:38:30] <simon_w> or 3.1
188: [07:40:39] <guzzlefry> simon_w: I did git branch -D new-branch && git checkout 3.1 && git branch new-branch && git checkout new-branch
189: [07:40:42] <guzzlefry> Will that do?
190: [07:40:52] <simon_w> Yeah, that works too
191: [07:50:37] <guzzlefry> So, I'm adding doctags and fixing a few, should those be separate pull requests?
192: [07:51:16] <simon_w> Nah
193: [07:52:00] <guzzlefry> phew
194: [07:52:11] <guzzlefry> Good, I'm fixing these as I go through the code. :)
195: [08:00:41] <guzzlefry> okay so
196: [08:00:42] <guzzlefry> http://api.silverstripe.org/3.1/source-class-CMSBatchAction.html#138
197: [08:01:12] <guzzlefry> How does $this->managedClass get set?
198: [08:10:05] <guzzlefry> simon_w: What about class typehints in parameter lists? >_>
199: [08:10:10] <guzzlefry> public function handleBatchAction($request) {
200: [08:10:15] <guzzlefry> that being one of them
201: [08:19:44] * willr quit (Quit: willr)
202: [08:20:27] * willr has joined #silverstripe
203: [08:20:30] * willr quit (Changing host)
204: [08:20:31] * willr has joined #silverstripe
205: [08:22:06] <guzzlefry> meh
206: [08:22:10] <guzzlefry> Where can I ask dev related questions?
207: [08:23:15] <willr> irc, forums or the doc mailing lists are the big 3
208: [08:23:42] <willr> though IRC is best when you're in NZDT and during working hours :)
209: [08:26:26] <guzzlefry> I'm up late enough in the states that it doesn't matter...maybe
210: [08:26:29] <guzzlefry> What time is it over there?
211: [08:32:02] <simon_w|air> Sunday :p
212: [08:32:07] <simon_w|air> 2132
213: [08:32:27] <simon_w|air> And SilverStripe ignores the type hints, so they're hardly accurate
214: [08:33:05] <guzzlefry> ah
215: [08:33:10] <guzzlefry> This is going to take a while...
216: [08:54:10] * SightUnseen has left #silverstripe
217: [09:24:14] * willr quit (Quit: willr)
218: [09:26:36] * SightUnseen has joined #silverstripe
219: [09:31:11] * SightUnseen quit (Ping timeout: 252 seconds)
220: [10:14:42] * Kapdap_ has joined #silverstripe
221: [10:15:23] * Kapdap_ quit (Client Quit)
222: [10:27:12] * SightUnseen has joined #silverstripe
223: [10:31:55] * SightUnseen quit (Ping timeout: 260 seconds)
224: [11:27:15] * SightUnseen has joined #silverstripe
225: [11:31:29] * SightUnseen quit (Ping timeout: 240 seconds)
226: [12:27:13] * SightUnseen has joined #silverstripe
227: [12:32:02] * SightUnseen quit (Ping timeout: 264 seconds)
228: [12:37:17] * DesignerX quit (Ping timeout: 265 seconds)
229: [13:27:11] * SightUnseen has joined #silverstripe
230: [13:32:02] * SightUnseen quit (Ping timeout: 264 seconds)
231: [13:37:18] * C10ne quit (Ping timeout: 245 seconds)
232: [14:27:11] * SightUnseen has joined #silverstripe
233: [14:32:02] * SightUnseen quit (Ping timeout: 264 seconds)
234: [15:17:10] * SphereSilverNL has joined #silverstripe
235: [15:17:45] <SphereSilverNL> Ohnoes, it's him!
236: [15:17:49] <SphereSilverNL> Goodafternoon folks
237: [15:27:12] * SightUnseen has joined #silverstripe
238: [15:32:08] * SightUnseen quit (Ping timeout: 272 seconds)
239: [16:27:11] * SightUnseen has joined #silverstripe
240: [16:32:17] * SightUnseen quit (Ping timeout: 272 seconds)
241: [17:27:11] * SightUnseen has joined #silverstripe
242: [17:31:50] * SightUnseen quit (Ping timeout: 272 seconds)
243: [17:54:08] * OxFF1 has joined #silverstripe
244: [18:27:12] * SightUnseen has joined #silverstripe
245: [18:29:41] * simon_w quit (Quit: This computer has gone to sleep)
246: [18:32:02] * SightUnseen quit (Ping timeout: 264 seconds)
247: [18:34:10] * guzzlefry quit (Ping timeout: 245 seconds)
248: [18:35:11] * guzzlefry has joined #silverstripe
249: [18:35:25] * Kapdap quit (Ping timeout: 245 seconds)
250: [18:35:32] * Kapdap has joined #silverstripe
251: [18:42:23] * ARNHOE has joined #silverstripe
252: [19:00:19] * simon_w has joined #silverstripe
253: [19:17:24] * pippy__ has joined #silverstripe
254: [19:17:31] * antmas has joined #silverstripe
255: [19:19:29] * pippy quit (Ping timeout: 252 seconds)
256: [19:27:26] * SightUnseen has joined #silverstripe
257: [19:31:57] * SightUnseen quit (Ping timeout: 252 seconds)
258: [19:51:55] * DigNZ has joined #silverstripe
259: [19:52:49] * micmania1 has joined #silverstripe
260: [19:54:54] * ARNHOE quit ()
261: [20:00:34] * SightUnseen has joined #silverstripe
262: [20:05:39] * stripemonkey has joined #silverstripe
263: [20:06:04] <stripemonkey> Hi all o/
264: [20:06:26] <antmas> guten morgen
265: [20:06:34] <stripemonkey> Buenos noches
266: [20:07:18] <simon_w> Mmm, nachos
267: [20:07:28] <stripemonkey> That's weird, I'm trying to add a local domain to my /etc/hosts and when I use the new URL I get "SilverStripe Framework requires a $databaseConfig defined."
268: [20:07:35] <stripemonkey> Nachos ftw \o/
269: [20:08:00] <stripemonkey> the only change I'm making is giving it a name :-/
270: [20:08:36] <stripemonkey> Ah never mind, spotted what's doing it (I think...)
271: [20:09:23] <antmas> simon_w: did you find another framework to use besideds bootstrap?
272: [20:09:33] <simon_w> antmas, Foundation
273: [20:10:10] <antmas> simon_w: oh wow nice, have you used it before?
274: [20:10:16] <simon_w> Nope
275: [20:10:30] <stripemonkey> That looks interesting :-)
276: [20:10:37] <simon_w> Seems to work just like bootstrap, just with different classes
277: [20:10:45] <simon_w> http://dragoon.net.nz
278: [20:11:06] <antmas> simon_w: I hear the classes make a big diff though
279: [20:11:17] * antmas has heard good things about Foundation
280: [20:11:28] <simon_w> They make more sense, yes
281: [20:11:29] <stripemonkey> I'd like to see Bootstrap or equivalent using SMACSS, does such a beast exist?
282: [20:13:17] <simon_w> I don't think any of those frameworks write actual CSS
283: [20:13:23] <stripemonkey> Oooh, rems in place of ems, interesting
284: [20:14:58] * SightUnseen has left #silverstripe
285: [20:16:30] <stripemonkey> OK, I'm getting a redirect loop now
286: [20:16:35] <stripemonkey> Bleh
287: [20:24:48] <stripemonkey> Sorted. OK, I've just added the silverstripe/subsites module and it's working great, but how do I make it so that the site tree that was there initially is *not* "Main site"?
288: [20:26:49] <Zauberfisch> stripemonkey: I would probably do it with a raw sql query on the DB
289: [20:27:07] <stripemonkey> Zauberfisch: Ah OK, thanks
290: [20:27:38] <stripemonkey> I'm just RTFMing just in case I'm missing anything obvious from the admin system
291: [20:28:00] <Zauberfisch> stripemonkey: make a backup to be sure and then fire away your queries
292: [20:28:08] <Zauberfisch> it should be rather simple
293: [20:28:23] <stripemonkey> Yeah, I have tons of backups, not a prob to roll stuff back if I break it :-D
294: [20:28:30] <Zauberfisch> there is like a SiteID or something on SiteTree, SiteTree_Live and SiteTree_versions
295: [20:28:39] <stripemonkey> It's all fully deployable form BitBucket anyway
296: [20:28:46] <stripemonkey> s/form/from/
297: [20:28:47] <Zauberfisch> just set that SiteID to what ever site you want it to be
298: [20:28:54] <stripemonkey> K, will do, thanks!
299: [20:29:13] * SightUnseen has joined #silverstripe
300: [20:29:41] * SightUnseen has left #silverstripe
301: [20:36:17] * willr has joined #silverstripe
302: [20:42:50] <Zauberfisch> willr o/
303: [20:43:18] <willr> Howdey
304: [20:43:58] <Zauberfisch> are you stalling that pull request until I implemented your suggestion? :P
305: [20:51:54] <simon_w> Who wouldn't?
306: [20:55:59] <willr> Pretty much
307: [20:56:48] * SphereSilverNL quit (Remote host closed the connection)
308: [21:01:59] <Zauberfisch> -.-
309: [21:02:06] <Zauberfisch> ok, ok ...
310: [21:02:21] <Zauberfisch> will comply
311: [21:02:31] <Zauberfisch> ETA end of the week
312: [21:10:42] <ss23> lol
313: [21:10:45] <ss23> Poor Zauberfisch
314: [21:11:50] * SightUnseen has joined #silverstripe
315: [21:11:54] * SightUnseen has left #silverstripe
316: [21:15:54] <antmas> Facebook like and share button? $150 :P
317: [21:18:03] <antmas> anyone in NZ here ordered anything via Amazon?
318: [21:18:45] <simon_w> Yes
319: [21:19:05] <antmas> simon_w: what was the delivery wait for you?
320: [21:19:09] <antmas> roughyl
321: [21:19:12] <antmas> roughly*
322: [21:19:18] <simon_w> Couple of weeks
323: [21:19:26] <simon_w> Cheep shipping
324: [21:19:40] <antmas> so +- a couple of days from what THEY estimate?
325: [21:20:05] <simon_w> yeah
326: [21:20:08] <antmas> nice
327: [21:20:20] <antmas> gonna grab me a couple of SSDs from there
328: [21:24:22] * SightUnseen1 has joined #silverstripe
329: [21:25:30] <antmas> simon_w: did you buy computer parts by any chance?
330: [21:25:41] <simon_w> Nope
331: [21:26:13] <antmas> simon_w: either way, was the packaging for what you got ok?
332: [21:26:20] <simon_w> yes
333: [21:29:34] <ss23> Computer parts have weird restrictions on amazon I thought?
334: [21:29:47] <ss23> With the weird failure rates of SSDs, I'd rather buy locally tbh :O
335: [21:32:02] <simon_w> Buy second hand, then steal the other person's data!
336: [21:32:17] <ss23> ^^
337: [21:32:17] * zippy__ has joined #silverstripe
338: [21:32:48] <simon_w> Especially since most people don't know how to actually wipe a SSD
339: [21:33:01] <ss23> SECURE ERASE, MOTHERFUCKER
340: [21:33:27] <simon_w> Don't unplug for an hour or so after it's done is the main thing
341: [21:33:45] <ss23> SMART tells you if it's done, I thought?
342: [21:36:41] <zippy__> hammer is thort
343: [21:36:45] <zippy__> *I
344: [21:37:25] <simon_w> Depends on the brand
345: [21:39:19] <zippy__> whats that analytics software people use instead of google analytics?
346: [21:39:32] <ss23> They don't
347: [21:39:33] <ss23> lol
348: [21:39:49] * pippy__ is now known as pippy
349: [21:40:09] <zippy__> yea a few places use something different which is open source…
350: [21:40:16] <simon_w> Awstats!
351: [21:40:21] <zippy__> haha
352: [21:40:24] <zippy__> yes…..
353: [21:40:30] <zippy__> grep
354: [21:40:30] <Zauberfisch> there is also that thing from github
355: [21:40:40] <zippy__> http://piwik.org/ was what I was after
356: [21:40:45] <Zauberfisch> what was it called again
357: [21:40:50] <simon_w> I use paper trail for my analytics
358: [21:41:01] <Zauberfisch> ah, right, gaug.es
359: [21:41:02] <Zauberfisch> http://get.gaug.es/
360: [21:41:15] <Zauberfisch> no idea if its any good though
361: [21:41:33] <Zauberfisch> however, as you can see, its not free
362: [21:42:34] <zippy__> simon_w: https://papertrailapp.com/ - looks good, couldl be useful for alerts on certain logs
363: [21:46:53] <simon_w> Looks like https://files.app.net/trdq4CeI.png
364: [21:47:36] <ss23> I think if you want the analytics for marketing/non technical types, GA is probably the only chance at appeasing them
365: [21:47:52] <ss23> And if you just want it for personal preference, grep / sed / awk / wc / sort / uniq prob enough
366: [21:49:41] <zippy__> simon_w: you use the alerts much?
367: [21:49:50] <simon_w> zippy__, nope
368: [21:49:56] <simon_w> Personal servers, so meh
369: [21:51:14] * SightUnseen1 quit (Quit: Leaving.)
370: [21:51:52] * UncleCheese has joined #silverstripe
371: [21:52:34] <stripemonkey> zippy__: I'm planning on trying ClickTale but it's a tad expensive.
372: [21:58:33] <zippy__> stripemonkey: yea, that is good, as is optimizely
373: [21:59:11] <zippy__> I think the marketing guys moved from ClickTale to Datalicious… I think… can't recall
374: [22:04:59] * loremipsum has joined #silverstripe
375: [22:21:22] <loremipsum> hey guys, i'm stuck on something. I've got a holder page with children. Each child can have a category (dataobject with a many_many relation) but how can i loop them in my template with this result? http://www.sspaste.com/paste/show/52e58746968b9
376: [22:22:04] <loremipsum> i can't use "loop Categories" and add a "loop Children" within ofcourse, since the Categories have no children
377: [22:26:04] <simon_w> loremipsum, you'll need to add a method to your controller that returns the data in that format
378: [22:27:12] <Zauberfisch> loremipsum: it might be helpful if you paste your php code
379: [22:27:17] <loremipsum> simon_w: ok, thanks for pointing it out
380: [22:30:39] <loremipsum> Zauberfisch: http://www.sspaste.com/paste/show/52e5898648f77
381: [22:32:47] <ss23> Bah
382: [22:32:55] <antmas> Humbug
383: [22:33:24] <ss23> Anyone have nginx as a proxy in front of apache, and it won't pass certain URLS to apache for some uknown reason, specifically, /Security/changepassword/?sdlksdflknsadflkn URLs?
384: [22:34:50] <Zauberfisch> are you sure its the nginx? I once had this weird apache config that disallowed all /Security/* urls
385: [22:35:04] <ss23> I am 99% sure
386: [22:35:11] <ss23> Technically this is nginx -> varnish -> apache
387: [22:35:18] <ss23> apache logs don't show it, varnishlog doesn't either
388: [22:36:18] <Zauberfisch> no idea than. my nginx proxy is not finished yet :/
389: [22:36:22] <guzzlefry> What about nginx logs?
390: [22:36:26] <ss23> guzzlefry: Shows up there
391: [22:36:26] <ss23> :P
392: [22:36:36] <ss23> But "I got this request!" doesn't tell me why or how or what it got proxied etc
393: [22:37:07] <Zauberfisch> loremipsum: what is it again you want to loop?
394: [22:38:55] <guzzlefry> meh
395: [22:39:03] <loremipsum> on the holder, i want to loop the categories with the children below - Like this: http://www.sspaste.com/paste/show/52e58746968b9
396: [22:39:05] <guzzlefry> ss23: grep -i "security" on all of the config files
397: [22:40:09] <Zauberfisch> loremipsum: so you want to look children grouped by category?
398: [22:40:22] <loremipsum> Zauberfisch: yes
399: [22:41:10] <ss23> guzzlefry: I don't think it's that
400: [22:41:24] <ss23> The URL /Security/changepassword/ 'works' kind of
401: [22:41:30] <ss23> It has different behaviour to with the GET params
402: [22:41:41] <ss23> I feel like I'm debuging a strange issue where different softwares are just meshing badly
403: [22:41:44] <ss23> :S
404: [22:43:04] <Zauberfisch> I see, then as simon said, you need to first create a method that returns data in this fashion
405: [22:43:29] <Zauberfisch> do you want to a categoryPage that is in multiple categories to be listed multiple times?
406: [22:44:47] <loremipsum> Yes, thought so. Just wondered if this could be done by default page controls
407: [22:45:24] <loremipsum> Yes a categorypage may have multiple categories and it should be displayed multiple times in differents lists
408: [22:45:52] <antmas> For a simple site, what should be the upper limit of size per page?
409: [22:46:04] <antmas> ~roughly
410: [22:46:55] <loremipsum> antmas: size of what? the code or the actual source in the DOM?
411: [22:47:31] <antmas> DOM
412: [22:48:05] <Zauberfisch> loremipsum: a simple implementation using the ORM could look something like this: http://paste2.org/MCNnL06V
413: [22:48:55] <Zauberfisch> however, this is not the most performant solution, so you should consider using a query with join that you build your self using the lower level of the ORM
414: [22:50:04] <Zauberfisch> furhter, you should note: I assumed that you have a $belongs_many_many on class Category that has the name 'CategoryPages'
415: [22:50:22] <Zauberfisch> so that $category->CategoryPages() returns all the pages in that category
416: [22:51:47] <antmas> like, I'm trying to keep my pages under 500kb... reasonable?
417: [22:52:27] <Zauberfisch> your template for this example would look like this:http://paste2.org/1aMUAn1w
418: [22:52:32] <simon_w> 500kb? That's a massive page
419: [22:52:42] <Zauberfisch> I'd say 500kb is ok
420: [22:53:03] <loremipsum> Zauberfisch: thanks for helping out!
421: [22:53:28] <antmas> simon_w: that's absolute max, my pages are currently 300kb
422: [22:53:30] <Zauberfisch> the designers I work with want to kill me everytime I tell them that a single image can not have 1MB
423: [22:53:54] <simon_w> antmas, are you like using data: paths for all your images or something?
424: [22:53:55] <Zauberfisch> I often find my self way about 500kb :/
425: [22:54:25] <antmas> simon_w: any images are stored in assets
426: [22:54:33] <Zauberfisch> but wait, you are talking excluding assets?
427: [22:54:35] <Zauberfisch> I see
428: [22:54:36] <ss23> 500kb of raw text ix very large
429: [22:54:37] <simon_w> antmas, so how are you hitting 300kb?
430: [22:54:39] <antmas> and no bigger than 14kb max
431: [22:54:47] <loremipsum> 500kb raw text is indeed very large
432: [22:55:20] <Zauberfisch> if we are talking raw text than I am far below 500
433: [22:55:21] <simon_w> (for reference, pocketrent.com is 19kb)
434: [22:55:24] <antmas> simon_w: no idea, which is why I'm asking so I can see if should look into it
435: [22:55:43] <simon_w> antmas, yes, you should look into it. 300kb is a shitton of text
436: [22:56:13] <antmas> simon_w: hmmmm thanks
437: [22:56:32] <guzzlefry> simon_w: 19k for what?
438: [22:56:47] <simon_w> guzzlefry, back scroll.
439: [22:56:52] <simon_w> See what we're talking about
440: [22:56:56] <Zauberfisch> antmas: only counting the HTML I am also almost always below 20kb
441: [22:57:19] <antmas> :O
442: [22:57:28] <antmas> oh, I read it wrong
443: [22:57:42] <antmas> 22kb :)
444: [22:58:06] <antmas> phew
445: [22:58:31] * DigNZ quit (Quit: DigNZ)
446: [22:58:32] <simon_w> Oh, that's fine
447: [22:59:03] <loremipsum> antmas: that's quite a difference yes
448: [22:59:05] <antmas> what's the best way to check with accuracy?
449: [22:59:27] <simon_w> I just used curl https://pocketrent.com/ | wc -c
450: [22:59:31] <antmas> loremipsum: yeah it was a tally of a bunch of pages I made accidentally
451: [23:00:00] <antmas> simon_w: sweet, thnx
452: [23:00:08] <antmas> 22.3kb
453: [23:00:17] <Zauberfisch> antmas: http://www.webpagetest.org/ seems to be a pretty nice tool for testing performance in general
454: [23:03:06] <antmas> Zauberfisch: yeah I've used that before
455: [23:03:07] <antmas> not bad
456: [23:05:38] * stripemonkey quit (Ping timeout: 245 seconds)
457: [23:05:58] <zippy__> indeed
458: [23:20:27] * OxFF1 quit (Quit: Hasta la proxima)
459: [23:20:48] * liam_ has joined #silverstripe
460: [23:21:01] * loremipsum quit (Quit: Page closed)
461: [23:21:12] * liam_ is now known as Guest2980
462: [23:23:29] * simon_w quit (Read error: Connection reset by peer)
463: [23:23:45] * simon_w has joined #silverstripe
464: [23:24:30] * UncleCheese quit (Quit: UncleCheese)
465: [23:25:04] * UncleCheese has joined #silverstripe
466: [23:29:16] * spronk has joined #silverstripe
467: [23:37:16] * spronk has left #silverstripe
468: [23:38:45] * zippy__ quit (Ping timeout: 245 seconds)
469: [23:41:03] * spronk has joined #silverstripe
470: [23:51:41] * UncleCheese quit (Quit: UncleCheese)
471: [23:55:24] * DesignerX has joined #silverstripe

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