#silverstripe IRC Log

IRC log for 23 May 2015

All timestamps are in UTC.

1: [00:25:53] * joelpittet quit ()
2: [00:39:15] * Liquide quit ()
3: [00:45:07] * Stomach quit (Quit: zzz)
4: [01:08:39] <ss-helper> Re: Requiring Composer in 4.0 - https://groups.google.com/d/msg/silverstripe-dev/hcb3HM5oWRg/B5sY76ngJJYJ
5: [01:35:57] * UncleCheese has joined #silverstripe
6: [01:55:53] * adrexia_ has joined #silverstripe
7: [02:30:31] * adrexia_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
8: [03:01:16] * Cheddam has joined #silverstripe
9: [03:14:51] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
10: [03:16:22] * Cheddam has joined #silverstripe
11: [03:33:56] * babak has joined #silverstripe
12: [03:49:12] * Shrike_Finland1 has joined #silverstripe
13: [03:49:13] * Shrike_Finland quit (Read error: Connection reset by peer)
14: [03:50:54] * mobiusnz quit (Ping timeout: 252 seconds)
15: [04:22:08] * Shrike_Finland1 quit (Ping timeout: 264 seconds)
16: [04:22:16] * masnun has joined #silverstripe
17: [04:28:45] * Shrike_Finland has joined #silverstripe
18: [04:35:49] * adrexia_ has joined #silverstripe
19: [04:37:05] * r_hector has joined #silverstripe
20: [04:37:43] * masnun is now known as masnun|away
21: [04:47:31] * masnun|away is now known as masnun
22: [05:00:44] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23: [05:10:49] * masnun is now known as masnun|away
24: [05:10:50] * masnun|away quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
25: [05:28:36] * mobiusnz has joined #silverstripe
26: [06:01:57] * masnun has joined #silverstripe
27: [06:09:04] <ss-helper> Re: [silverstripe-dev] Re: What the heck is this Loomio thing? Can it help us make better decisions as a community? - https://groups.google.com/d/msg/silverstripe-dev/p6rBLsT99Q8/iNUFCWM3NzwJ
28: [06:12:34] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
29: [06:13:56] * Error404NotFound has joined #silverstripe
30: [06:14:02] * Error404NotFound quit (Remote host closed the connection)
31: [06:14:32] * Error404NotFound has joined #silverstripe
32: [06:14:39] * Error404NotFound quit (Remote host closed the connection)
33: [06:15:52] * Error404NotFound has joined #silverstripe
34: [06:15:58] * Error404NotFound quit (Remote host closed the connection)
35: [06:16:34] * Error404NotFound has joined #silverstripe
36: [06:22:00] * veb quit (Quit: veb-irc: quit)
37: [06:22:57] * Shrike_Finland1 has joined #silverstripe
38: [06:24:18] * Shrike_Finland quit (Ping timeout: 244 seconds)
39: [06:27:27] * bemusedrat has joined #silverstripe
40: [06:33:59] * masnun quit (Quit: Signing out.)
41: [06:59:53] * Cheddam quit (Quit: My Mac has gone to sleep. ZZZzzz…)
42: [07:11:28] * Hailwood quit (Remote host closed the connection)
43: [07:35:49] * topher_ has joined #silverstripe
44: [07:37:47] * topher_ quit (Client Quit)
45: [07:47:37] <irogue> its so cute the way parents and grandparents write emails as if they're writing a letter
46: [07:48:47] <irogue> six paragraphs long, as if they can only send one per week
47: [08:00:46] * benjhocking quit (Read error: Connection reset by peer)
48: [08:01:59] * benjhocking has joined #silverstripe
49: [09:03:21] * minizeka has joined #silverstripe
50: [09:03:43] <minizeka> is it possible to get all classes extended by a class?
51: [09:04:35] <minizeka> code is something like this
52: [09:04:46] <minizeka> class Dummy extends DataObject
53: [09:04:59] <minizeka> class Extender extends DataExtension
54: [09:05:14] <minizeka> and I added extension via yaml file
55: [09:05:41] <minizeka> what I need is to get all classes extended by "Extender"
56: [09:12:54] * UncleCheese has joined #silverstripe
57: [09:17:10] * Mike123 has joined #silverstripe
58: [09:19:16] <Mike123> Hello :)
59: [09:19:20] <Mike123> anyone here ?
60: [09:24:00] * Kutten quit (Remote host closed the connection)
61: [09:27:20] * UncleCheese quit (Quit: Textual IRC Client: www.textualapp.com)
62: [09:29:01] * Stomach has joined #silverstripe
63: [09:29:35] <ss-helper> Re: Can't write a ssdatetime value... - http://www.silverstripe.org/community/forums/data-model-questions/show/6835#post401681
64: [09:43:42] * UncleCheese has joined #silverstripe
65: [10:02:51] * cloph_away has joined #silverstripe
66: [10:25:58] * Stomach quit (Quit: zzz)
67: [10:26:22] * Stomach has joined #silverstripe
68: [10:28:49] * Mike123 quit (Ping timeout: 246 seconds)
69: [10:34:04] * minizeka quit (Ping timeout: 246 seconds)
70: [10:44:10] * CodeTrap has joined #silverstripe
71: [11:15:28] * Stomach quit (Quit: zzz)
72: [11:15:46] * Stomach has joined #silverstripe
73: [11:23:22] * Stomach quit (Quit: zzz)
74: [12:15:26] <ss-helper> Re: Hosting for existing wesbite - http://www.silverstripe.org/community/forums/hosting-requirements/show/101600#post401682
75: [12:28:09] * CodeTrap quit (Ping timeout: 276 seconds)
76: [12:30:31] <ss-helper> Re: Which field type to use for a single dataobject relation? - http://www.silverstripe.org/community/forums/general-questions/show/101751#post401683
77: [12:57:19] * CodeTrap has joined #silverstripe
78: [12:59:36] * r_hector quit (Remote host closed the connection)
79: [13:15:15] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
80: [13:23:45] * Error404NotFound quit (Remote host closed the connection)
81: [13:25:36] * Error404NotFound has joined #silverstripe
82: [13:50:22] * bemusedrat quit (Quit: Leaving)
83: [13:55:48] * babak quit (Quit: Connection closed for inactivity)
84: [14:51:14] * muskie9 quit (Quit: Textual IRC Client: www.textualapp.com)
85: [15:01:12] <ss-helper> Outputting Silverstripe template code in a template - http://www.silverstripe.org/community/forums/template-questions/show/101795
86: [15:24:25] * babak has joined #silverstripe
87: [15:31:21] <ss-helper> silverstripe-photogallery module automagically generates random Photo Albums?! - http://www.silverstripe.org/community/forums/all-other-modules/show/101766
88: [17:57:00] * minizeka has joined #silverstripe
89: [17:57:10] <minizeka> hey
90: [17:57:38] <minizeka> is there a method to get all classes extended by single class in yaml?
91: [18:52:25] <zauberfi1ch> minizeka: in yml? how would that be possible?
92: [18:52:31] <zauberfi1ch> or what is your usecase?
93: [18:52:49] <zauberfi1ch> in php you can. using ClassInfo::subClassesFor("Foobar") or something
94: [19:38:54] * GastroGeek has joined #silverstripe
95: [19:41:29] <GastroGeek> Hi all. Hope I am OK to ask this in the main channel. If I am expected to learn SilverStripe (from a Development point of view). i.e. create websites, web platforms (bespoke) - how long would it take someone? I realise there are variables but lets assume this person has programming knowledge, web design knowledge and can 'hack' decent platforms together. Any help appreciated.
96: [19:42:51] <zauberfi1ch> GastroGeek: anywhere from 3 weeks to 3 years
97: [19:42:55] <zauberfi1ch> I'd say
98: [19:43:23] <zauberfi1ch> this is really a hard question to answer, but it depends on so many factors
99: [19:44:03] <GastroGeek> Yeah figured as much. I assume 3 weeks would be for someone already fully versed in PHP/OOP? and 3 years would be a lazy n00b? :)
100: [19:44:32] <zauberfi1ch> if that person has experience with php, mvc and ruby on rails style database layers, then it will probably be a matter of weeks, becaose many concepts employed in silverstripe will feel familiar
101: [19:45:42] <zauberfi1ch> but then again, if someone only half way understands silverstripe, he can already do some cool stuff with it
102: [19:46:50] <zauberfi1ch> some of the basic functionallity can be lerned really quickly even without much prior experience.
103: [19:47:02] <GastroGeek> Yeah. Really appreciate the response (I know it was a hard/almost-pointless question). I just want to make sure that if I am able to learn the basics (building a site and converting a static site with some custom features) in a couple of days that I at least stand a chance to do something decent in 2-3 months.
104: [19:47:44] <zauberfi1ch> are you familiar with oop and/or mvc?
105: [19:48:30] <GastroGeek> oops yes - mostly from C/C++ days and some PHP. MVC. I know what it is, and I may use it without knowing (seperation of parts) but ive not used any frameworks per se
106: [19:48:39] <GastroGeek> *OOP = yes, sorry
107: [19:48:51] <zauberfi1ch> :)
108: [19:49:26] <zauberfi1ch> one thing to note about silverstripe: it is made for developers
109: [19:49:43] <zauberfi1ch> the usual "web guy" is better off using wordpres or some other thing
110: [19:50:08] <zauberfi1ch> wordpress is great for people that are not that skilled at software developement, because they need to write very little code. and understand even less
111: [19:50:16] <GastroGeek> im totally self taught and determined to learn it but wanted a timeline against which to challenge myself. 3 weeks sounds like a good challenge ha. Yeah, i'm slowly seeing its benefits and power. I have done various WordPress based stuff (including plugins, etc) but this seems a lot more powerful. Once I get my head around the workflow, I should be fine. I understand all the code.
112: [19:50:22] <zauberfi1ch> they can just install addon after addon until the website is somewhat close to what they need
113: [19:50:55] <GastroGeek> Yeah, WordPress is certainly more mainstream. But Drupal and other tools are more 'Enterprise' and thus likely to draw better salaries
114: [19:51:07] <zauberfi1ch> silverstripe on the other hand has almost no modules/plugins/addons compared to wordpress, but on the other hand, its often easier to write something yourself tin silverstripe than searching for a working wordpress plugin
115: [19:51:18] <GastroGeek> Yeah
116: [19:51:33] <GastroGeek> I actually love writing my own stuff - even if its re-investing the wheel since you learn so much
117: [19:51:52] <zauberfi1ch> yeah, I know what you mean
118: [19:52:43] <zauberfi1ch> no idea about silverstripe vs drubal saleries, I don-'t really apply for silverstripe jobs/projects per se, I offer to create website, and only afterwards discuss the platform
119: [19:53:01] <GastroGeek> Good strategy :)
120: [19:53:12] <GastroGeek> Agile - MVP and all that
121: [19:53:24] <GastroGeek> Then bulid it up and make it purrrr
122: [19:53:58] <zauberfi1ch> but be aware, like any system, silverstripe has a lot of rough edges and dark corners
123: [19:54:15] <zauberfi1ch> I love silverstripe and have been using it for years. but on many days I also hate silverstripe
124: [19:54:19] <GastroGeek> Yeah - the first thing I noticed was how annoying the whole 'must flush' thing is
125: [19:55:10] <zauberfi1ch> not only that, but also that what flush does has change several times over the last current and future versions
126: [19:56:18] <zauberfi1ch> like in some versions /dev/build?flush=1 flushes config, manifest and templates and in other versions it only flushes config and manifest, meaning you have to run an additional /?flush=1
127: [19:56:48] <GastroGeek> I can imagine thats rather frustrating. Having to remember/check
128: [19:57:29] <zauberfi1ch> best thing you can do is to stay here in irc
129: [19:58:35] <GastroGeek> Yeah. I've not IRC'd since around 1990 lol, but I think I might make use of a few channels. I need a good client though... so will see whats out there.
130: [19:58:36] <zauberfi1ch> often feels to me like many "known bugs" or problems are only shared in here
131: [19:58:48] <zauberfi1ch> I use irssi
132: [19:58:52] <zauberfi1ch> the client of the future
133: [19:58:53] <zauberfi1ch> lol
134: [19:59:15] <GastroGeek> ha lemme see... {braces himself to be amazed}
135: [19:59:26] <zauberfi1ch> terminal client
136: [19:59:32] <zauberfi1ch> but its actually pretty amazing
137: [19:59:43] <zauberfi1ch> and works a lot better than any other client I have tried
138: [19:59:57] <GastroGeek> that could work... I quite like terminal. Why overcomplicate things with a GUI, right? ;)
139: [20:00:16] <zauberfi1ch> I actually have it running on a remote pc 24/7
140: [20:00:27] <zauberfi1ch> and ssh to that server when ever I want to chat
141: [20:00:51] * zauberfi1ch is now known as zauberfisch
142: [20:01:03] <GastroGeek> the site is down for me ha
143: [20:01:09] <GastroGeek> will bookmark it though and check it out
144: [20:01:31] <GastroGeek> or I guess i could apt-get it on my linux box?
145: [20:01:43] <zauberfisch> oh, indeed
146: [20:01:46] <zauberfisch> http://www.irssi.org/ - 500
147: [20:02:03] <zauberfisch> GastroGeek: yes
148: [20:02:23] <zauberfisch> yes, its in the package repos of most distros as far as I know
149: [20:02:28] <zauberfisch> and certainly on deb based ones
150: [20:02:39] <GastroGeek> yeah, just installing it now. will have a tinker when I get a mo
151: [20:06:51] <GastroGeek> Well, thanks for your help. I may be back in the very near future (off to watch a movie). Have a good one!
152: [20:07:42] <zauberfisch> bye
153: [20:08:14] * GastroGeek quit (Quit: Page closed)
154: [21:15:48] * babak quit (Quit: Connection closed for inactivity)
155: [21:19:03] * UncleCheese has joined #silverstripe
156: [21:21:06] * UncleCheese quit (Client Quit)
157: [21:39:46] * Liquide has joined #silverstripe
158: [21:40:15] * Stomach has joined #silverstripe
159: [21:46:58] * CodeTrap quit (Quit: CodeTrap)
160: [21:55:03] * UncleCheese has joined #silverstripe
161: [21:59:58] * UncleCheese quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
162: [22:00:35] * UncleCheese has joined #silverstripe
163: [22:02:06] * UncleCheese quit (Client Quit)
164: [22:22:26] * Cheddam has joined #silverstripe
165: [22:40:11] <minizeka> zauberfisch: I extended (bunch of) classes via yaml
166: [22:40:28] <minizeka> now I need list of classes extended
167: [22:40:53] <minizeka> class DOClass extends DataObject
168: [22:41:09] <minizeka> class DOEClass extends DataExtension
169: [22:41:34] <minizeka> (yaml) DOClass - extensions - DOEClass
170: [22:42:01] <minizeka> so I want to get all classes extended by DOEClass
171: [23:14:06] <zauberfisch> minizeka: I fear this is not possible in yml
172: [23:14:20] <zauberfisch> could be that I just don't know of it
173: [23:14:25] <zauberfisch> but I think you have to do that in php
174: [23:14:58] <minizeka> I'm not doing it in yml
175: [23:15:10] <minizeka> I extended bunch of classes via yml
176: [23:15:42] <minizeka> I want to get list of classes that are extended in php
177: [23:15:55] <minizeka> but extension itself is defined in yml
178: [23:16:11] <zauberfisch> Config::inst()->update('DOClass.extensions', ClassInfo::subclassesFor('DOEClass'));
179: [23:16:18] <zauberfisch> that in your _config.php should do the trick
180: [23:16:36] <zauberfisch> or rather:
181: [23:16:37] <minizeka> well, no
182: [23:16:48] <minizeka> it's the other way around
183: [23:16:48] <zauberfisch> Config::inst()->update('DOClass.extensions', array_values(ClassInfo::subclassesFor('DOEClass')));
184: [23:16:54] <minizeka> I already extended them
185: [23:17:20] <minizeka> wait
186: [23:17:43] <minizeka> won't this ClassInfo::subclassesFor('DOEClass') return child classes of DOEClass?
187: [23:18:18] <zauberfisch> yes
188: [23:18:23] <zauberfisch> I thought thats what you want
189: [23:18:40] <minizeka> nope
190: [23:19:06] <minizeka> now I'm not sure is it
191: [23:21:29] <minizeka> Couldn't run query: DESCRIBE "DOEClass" "ClassName" Table 'playground.DOEClass' doesn't exist
192: [23:22:32] <minizeka> let me describe it by example
193: [23:22:55] <minizeka> let's say that I want to add ID of a member who did last change
194: [23:23:18] <minizeka> so I created a class LastChanger (which extends DataExtension)
195: [23:23:45] <minizeka> and added it to extension list of both Page and SiteConfig (via yml)
196: [23:24:10] <minizeka> so whenever somebody edits a page, his ID gets saved also
197: [23:24:46] <minizeka> what I want is to get all classes with LastChanger extension
198: [23:25:55] <minizeka> LastChanger itself doesn't have a table in database, so DESCRIBE query fails
199: [23:31:05] <zauberfisch> woot?
200: [23:31:08] <zauberfisch> I am confused now
201: [23:32:19] <minizeka> which part is confusing?
202: [23:32:33] <zauberfisch> all of it
203: [23:35:11] <zauberfisch> how about you explain it again
204: [23:35:21] <zauberfisch> or let me sum it up
205: [23:35:22] <zauberfisch> so:
206: [23:36:04] <zauberfisch> you have a class LastChangerExtension which adds a LastChanger has one relation to any class it is applied to
207: [23:38:10] * UncleCheese has joined #silverstripe
208: [23:38:20] <minizeka> http://www.sspaste.com/paste/show/55610f5d5bcd4
209: [23:38:40] <minizeka> maybe code is best explanation?
210: [23:40:53] <ss-helper> random idea: allow the ability to link to a specific form field in the CMS - https://groups.google.com/d/msg/silverstripe-dev/DG4T6UD0kUU/KiQjJBQVq7YJ
211: [23:42:00] <zauberfisch> oh, minizeka so you want all classes that the extension has been added to?
212: [23:42:17] <minizeka> yes
213: [23:43:27] <zauberfisch> you should know that the php "extends" (subclass) mechanism has nothing to do with the silverstripe extensions
214: [23:43:47] <minizeka> I'm aware of that
215: [23:46:36] <minizeka> if it was php extends - it would be easy as ClassInfo::subclassesFor()
216: [23:59:17] <minizeka> if there's no solution - what does SS use for reading yml files?

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