#silverstripe IRC Log

IRC log for 14 March 2013

All timestamps are in UTC.

1: [00:05:00] * chrisrio has joined #silverstripe
2: [00:08:00] <Pyromanik> cool
3: [00:08:00] <Pyromanik> what was the issue?
4: [00:08:00] <Pyromanik> peter_ss, do you actually have any assigned?
5: [00:08:00] <peter_ss> Pyromanik It's working now
6: [00:08:00] <Pyromanik> ah
7: [00:08:00] <peter_ss> I think I miss code the manymany
8: [00:09:00] <peter_ss> i forgot that i created a new table for each id
9: [00:09:00] <peter_ss> I added the a db field to handel the selected do from lisboxfield
10: [00:09:00] <peter_ss> i mean for both DO's ID
11: [00:10:00] <chrisrio> Gidday gents - to allow the use of a LIKE filter (eg title LIKE "awesome") on an extension of Page - do I need to do more than just enable FulltextSearchable? :/
12: [00:10:00] * tankr quit (Quit: Leaving.)
13: [00:10:00] <Pyromanik> step.co.nz?
14: [00:10:00] <Pyromanik> step!
15: [00:10:00] <Pyromanik> ss23, stay eat play eh
16: [00:11:00] <simon_w|air> chrisrio, like doesn't even need fulltext
17: [00:12:00] <chrisrio> Title and Content exist on both
18: [00:12:00] <chrisrio> so I figured perhaps I was missing some real magic.
19: [00:12:00] * guci0 quit (Ping timeout: 245 seconds)
20: [00:12:00] <chrisrio> it freaks
21: [00:12:00] <chrisrio> but when I do the same grabbing MagicPage itself
22: [00:12:00] <chrisrio> simon_w I can grab MagicPage by ClassName from SiteTree and rock out some sweet LIKES on title and content
23: [00:13:00] <simon_w|air> chrisrio, that's a bug with DataList sticking the joins in properly
24: [00:13:00] <Pyromanik> mm, sounds like it
25: [00:13:00] <chrisrio> should be all good - some other problem afoot?
26: [00:13:00] <Pyromanik> exist on that same table?
27: [00:14:00] <chrisrio> Ahh ok.
28: [00:14:00] <chrisrio> because im like 90 years old and change is bad.
29: [00:14:00] <chrisrio> this is an oldschool DataObject::get
30: [00:14:00] <simon_w|air> and, assuming you are using DataList, use search filters instead of a raw like
31: [00:14:00] * tankr has joined #silverstripe
32: [00:14:00] <chrisrio> am I in "teh shitz"
33: [00:15:00] <chrisrio> I had a crack at just filtering the results though
34: [00:15:00] <simon_w|air> http://doc.silverstripe.org/framework/en/trunk/topics/datamodel#search-filter-modifiers
35: [00:16:00] <simon_w|air> chrisrio, you probably want something like MagicPage::get()->filter('Title:PartialMatch', 'awesome')
36: [00:18:00] * azureKnight has joined #silverstripe
37: [00:18:00] <chrisrio> yeah mate, brewing up a storm!
38: [00:21:00] * chrisrio bows
39: [00:21:00] <chrisrio> cheers gent _b
40: [00:21:00] * chrisrio quit (Quit: Page closed)
41: [00:23:00] <FrozenFire> http://www.usatoday.com/story/news/world/2013/03/13/gay-marriage-new-zealand/1983839/ Welcome to the 21st century, NZ.
42: [00:24:00] <irogue> yeah
43: [00:25:00] <irogue> but soon it'll be properly equivalent
44: [00:25:00] <irogue> already had civil union laws giving all the same rights as marriage (except adoption), just not the name
45: [00:27:00] * azureKnight quit (Quit: azureKnight)
46: [00:28:00] <tractorcow> I have a question about the sapphire 3.1 branch, related to my earlier issue with my site segfaulting
47: [00:28:00] <simon_w|air> I don't find it amusing when we get called backwards because that bill hasn't passed, yet we've had civil unions for almost a decade, which is basically the same thing under a different name
48: [00:29:00] <tractorcow> At https://github.com/silverstripe/sapphire/commit/e486574b31f0a3be1c9200593006f61e50311958 the change details a small typo fix,
49: [00:29:00] <irogue> for me, at least, civil unions were perfectly fine. but i understand some people wanting to be able to be "married", so i support the bill
50: [00:29:00] <irogue> simon_w|air: yeah, i agree
51: [00:29:00] <simon_w|air> s/don't//
52: [00:30:00] <FrozenFire> It's necessary to poke fun at people who don't support equality for all. :P
53: [00:30:00] <tractorcow> but it has two parents, and if I reset to this commit this includes a lot of extra classes including "ConfigStaticManifest"
54: [00:30:00] <tractorcow> so I guess my question is, what's the deal with a commit with multiple parents?
55: [00:30:00] <FrozenFire> Fortunately you now do.
56: [00:30:00] <FrozenFire> Or at least, you now support equality for gays.
57: [00:30:00] <simon_w|air> tractorcow, https://github.com/silverstripe/sapphire/commit/09377f0ba4fb2376087bdb7f5b39a22cfddfeb23 is silverstripe-branch commit, the other one is the one that was merged
58: [00:31:00] <FrozenFire> Not sure if any other minorities get shafted there. :P
59: [00:32:00] <simon_w|air> FrozenFire, assuming the bill passes (still got another select committee and vote to go), incestuous and polygamous marriages will still be illegal
60: [00:34:00] <simon_w|air> People don't like it when you point out that that means marriage still won't be equal by what they mean by equality
61: [00:34:00] <FrozenFire> At least there's some ethical reasoning behind those two.
62: [00:35:00] <FrozenFire> It's a moving goalpost
63: [00:35:00] <FrozenFire> Yeah. It's impossible to get to complete equality.
64: [00:35:00] <FrozenFire> And equality, unfortunately, also often means special benefits.
65: [00:37:00] <tractorcow> I don't understand what's going on here >_>
66: [00:38:00] <tractorcow> git reset --hard e486574b31f0a3be1c9200593006f61e50311958 (to the commit above) it segfaults
67: [00:38:00] <simon_w|air> The definition of marriage amendment bill passed its second reading yesterday
68: [00:38:00] <tractorcow> If I: git reset --hard 1cf2259b2c3dd3bf026d0ef8683abfc243dd54d0 (the commit just before this one) my code works fine
69: [00:39:00] <tractorcow> obviously, something wrong with my php configuration, but is hard to track down >_>
70: [00:40:00] <tractorcow> What I don't understand is why the e48... branch pulls in so many extra files. core/manifest/ConfigStaticManifest.php, etc
71: [00:41:00] <tractorcow> hold on, I'll screenshot
72: [00:42:00] <Pyromanik> <FrozenFire> http://www.usatoday.com/story/news/world/2013/03/13/gay-marriage-new-zealand/1983839/ Welcome to the 21st century, NZ.
73: [00:42:00] <Pyromanik> <irogue> already had civil union laws giving all the same rights as marriage (except adoption), just not the name
74: [00:42:00] * nickmolhoek has joined #silverstripe
75: [00:42:00] <Pyromanik> wait, we didn't already have that?
76: [00:42:00] * nickmolhoek quit (Remote host closed the connection)
77: [00:42:00] * nickmolhoek has joined #silverstripe
78: [00:42:00] <tractorcow> http://snag.gy/HxBX3.jpg
79: [00:43:00] <Pyromanik> have hetero mate who got civ. union.
80: [00:43:00] <tractorcow> sorry for discussing over the top of your conversation. :)
81: [00:43:00] <Pyromanik> eh?
82: [00:43:00] <Pyromanik> irc bruv, s'all g
83: [00:43:00] <tractorcow> the "diff with parent 2" files... something in there is causing my issue
84: [00:43:00] <Pyromanik> mmm yeah true
85: [00:44:00] <FrozenFire> Nuh daut, brah
86: [00:44:00] <simon_w|air> tractorcow, yeah, there'll be something in the config API changes breaking things. Happened to us too, will need to wait for simon_w to come back before I can take a decent look
87: [00:45:00] <ss23> Pyromanik: I'm whoring you out as a deal site.
88: [00:45:00] <ss23> Pyromanik: Stay with Pyromanik, get Pyromanik to buy dinner (eat), then play with Pyromanik <3
89: [00:45:00] <simon_w|air> Pyromanik, my one set up for work, yeah
90: [00:45:00] <tractorcow> thanks for your help,
91: [00:45:00] <tractorcow> Sorry I'm so gimpy at explaining things. :)
92: [00:45:00] <Pyromanik> you mean your 'main' laptop eh.
93: [00:46:00] <simon_w|air> ss23, I couldn't be bothered walking up the street to get burgers
94: [00:46:00] <tractorcow> (na not really)
95: [00:46:00] <tractorcow> Lesson learned, heh
96: [00:46:00] <tractorcow> This is why most people don't develop on beta releases :)
97: [00:47:00] <ss23> simon_w|air: What did you do instead? :O
98: [00:47:00] <ss23> simon_w|air: I had cereal...
99: [00:47:00] <simon_w|air> noodles!
100: [00:47:00] <simon_w|air> They're across the road
101: [00:48:00] <simon_w|air> There's a bakery next to the noodle place!
102: [00:48:00] <ss23> I can walk outside down to the bakery
103: [00:48:00] <ss23> It's only like 2 mins away
104: [00:48:00] <ss23> wow
105: [00:48:00] <ss23> :OOO
106: [00:48:00] <ss23> I just remembered
107: [00:48:00] <ss23> :O
108: [00:48:00] <ss23> Ncie
109: [00:49:00] <irogue> ss23: or, fish and chips!
110: [00:50:00] <Pyromanik> ss23, sounds legit
111: [00:50:00] <irogue> (if you're at home)
112: [00:51:00] <ss23> irogue: Yeah, but fish and chips is like 30 seconds further away, and not sure when they're open
113: [00:52:00] <Pyromanik> <ss23> Pyromanik: I'm whoring you out as a deal site. <-- :D
114: [00:53:00] * chrisrio chuckles
115: [00:53:00] <chrisrio> filter only works with AND conjuctives :D
116: [00:53:00] * chrisrio has joined #silverstripe
117: [00:54:00] <simon_w|air> chrisrio, works with filterAny in 3.1 :)
118: [00:54:00] * joelpittet|work is now known as joelpittet
119: [00:55:00] <chrisrio> ahh guts.
120: [00:55:00] <chrisrio> nekminnit - DataLists
121: [00:55:00] * jerry___ has joined #silverstripe
122: [00:55:00] <chrisrio> thinking I could merge the result
123: [00:55:00] <chrisrio> so I wanted to filter on Title and Content - so I just performed them seperately
124: [00:56:00] <jerry___> hi All ... I'm wondering whether $url_segment is still valid on ss3? somehow I can't make it appear on top level menu. It works on ss24. I wonder whether there is additional setting I need to do
125: [00:57:00] <jerry___> I expect it to appear on top-level navigation label
126: [00:57:00] <chrisrio> pretty sure im boned on this angle of attack.
127: [00:57:00] <FrozenFire> For ModelAdmin? Sure it is valid.
128: [00:57:00] <FrozenFire> Or any LeftAndMain, for that matter.
129: [00:58:00] <jerry___> e.g. http://localhost/admin/MyModelAdminClass
130: [00:58:00] <jerry___> static $url_segment = 'IMS'; static $menu_title = 'My IMS';
131: [00:58:00] <jerry___> the URL works though
132: [00:58:00] <FrozenFire> Also has to be static
133: [00:58:00] <simon_w|air> probably need them both set
134: [00:58:00] <FrozenFire> There's $menu_title and $url_segment
135: [00:59:00] <jerry___> did a http://localhost/admin/IMS/?flush=all
136: [01:00:00] <FrozenFire> So it's accessible, but not visible?
137: [01:00:00] <jerry___> It just doesn't want to appear on top "Navigation label" level
138: [01:00:00] <FrozenFire> Did you run /dev/build?
139: [01:00:00] <FrozenFire> Curious.
140: [01:00:00] <jerry___> that is correct
141: [01:01:00] <jerry___> when I go to http://localhost/admin/IMS/, it works
142: [01:01:00] <jerry___> when I go to http://localhost/ ... I expect to see navigation menu to go to http://localhost/admin/IMS/ ... but it's not there
143: [01:02:00] <FrozenFire> It'll show in /admin
144: [01:02:00] <FrozenFire> Wha
145: [01:02:00] <jerry___> I'm probably missing something simple here
146: [01:02:00] <simon_w|air> Is this ModelAdmin subclassing another ModelAdmin?
147: [01:02:00] <FrozenFire> It won't show in the main front-end menu
148: [01:02:00] <FrozenFire> That'd be silly
149: [01:02:00] * froog has joined #silverstripe
150: [01:02:00] <jerry___> <?php class IMS extends ModelAdmin { public static $managed_models = array( 'Car', 'Customer', 'Sales', 'Staff', 'Supplier', 'Purchase', ); static $url_segment = 'IMS'; static $menu_title = 'My IMS'; }
151: [01:03:00] <FrozenFire> Nope.
152: [01:03:00] <jerry___> and I logged in as Admin
153: [01:03:00] <FrozenFire> You could perhaps do a RedirectorPage visible to logged-in users
154: [01:03:00] <jerry___> nope? ok ... I'm listening
155: [01:03:00] <jerry___> :)
156: [01:03:00] <jerry___> I want it to appear for logged-in users
157: [01:04:00] <FrozenFire> But no, the admin CMS area is not intended to be accessible directly from the front-end
158: [01:09:00] <simon_w|air> I like our cops :)
159: [01:09:00] <irogue> @BetterWorkStory: Got called out to "domestic" incident. Parents were trying to get their quarrelsome kid off to bed but he refused co-operate #nzpolice
160: [01:09:00] <irogue> @BetterWorkStory: When I arrived in uniform & ordered him into his PJ's the kid became compliant & retired for bed.
161: [01:10:00] <jerry___> frozenfire: thanks! I mistook ss24's top level menu as "Navigation label"
162: [01:10:00] <ss23> I'm sure they like you too!
163: [01:10:00] <pippy> jerry___: just create a page type that canView() only when you're an admin
164: [01:11:00] <jerry___> still getting used to ss3 layout I guess
165: [01:11:00] <jerry___> it was a head-slapping duh! moment
166: [01:12:00] <Pyromanik> just leaving this here so I can find it later: betterdataobjectset site:sspaste.com
167: [01:12:00] <Pyromanik> Misunderstanding it though it seems :<
168: [01:12:00] <Pyromanik> although I see someone has been using my work :>
169: [01:13:00] * SightUnseen has joined #silverstripe
170: [01:13:00] <jerry___> pippy: it was a beginner mistake .... it actually behaves as it should
171: [01:20:00] * jerry___ quit (Ping timeout: 245 seconds)
172: [01:28:00] * SightUnseen has left #silverstripe
173: [01:43:00] * nickmolhoek quit (Quit: nickmolhoek)
174: [01:44:00] <ss23> So here's a question. How best to implment a system where the last stock(s) of an item are researved? As in, you don't want two people to go try buy the last item, both payments go through, and only one can have them
175: [01:44:00] <ss23> I can't think of a nice elegant way of doing it. Ideas?
176: [01:45:00] <simon_w|air> Have a lock system. So they've got five minutes to make the payment before the thing they're trying to buy becomes available for others to purchase
177: [01:47:00] <ss23> Probably have to have some extra table for it with a "LockStart" date/time and stuff
178: [01:47:00] <ss23> Yeah, thats the systme I was thinking of, but I can't think of a nice implmentation for it
179: [01:48:00] <simon_w|air> So find DPS's timeout, and use that
180: [01:48:00] <simon_w|air> The problem then is if they take more than five minutes
181: [01:48:00] <simon_w|air> Deal has_many Locks deal amount is $this->Left - $this->Locks()->filter('Created:GreaterThan', date('Y-m-d H:i:s', strtotime('five minutes ago')))->Count()
182: [01:49:00] <ss23> Hmmm, kk
183: [01:50:00] * nickmolhoek quit (Remote host closed the connection)
184: [01:50:00] <simon_w|air> The lock will need to store something, so that when DPS says "Yay!", you can delete the lock and update the amount remaining
185: [01:50:00] * nickmolhoek has joined #silverstripe
186: [01:51:00] <ss23> Yeah
187: [01:51:00] <ss23> Does Silverstripe do sessions already so I can jsut tie it to sessions?
188: [01:51:00] <simon_w|air> yes
189: [01:51:00] <ss23> (for non users that is)
190: [01:51:00] * nickmolhoek has joined #silverstripe
191: [01:53:00] <ss23> simon_w|air: Via Session class? I had a google but only see API docs so not sure if this is right
192: [01:53:00] <simon_w|air> Yes, using the Session class
193: [01:55:00] <simon_w|air> Doing it whenever there's a sale should be fine
194: [01:55:00] <ss23> simon_w|air: What do you suggeest for cleaning that table up? Make a cron to clear the expired ones, or just let them build up over time, or add it in as housekeeping whenever any sale is made since by that point a tiny delay of doing this misc housekeeping is fine, or what?
195: [02:01:00] <ss23> DataObject has some default fields, like when it was created, right? Is there some docs on those? Or just API stuff?
196: [02:01:00] <simon_w|air> Created, LastEdited, ID and ClassName
197: [02:02:00] <ss23> Before you go, simon_w|air
198: [02:02:00] <ss23> Can I force an update to LastEdited without upating a value?
199: [02:02:00] <ss23> I'm thinking about just using LastEdited for when the lock expires (that +5m)
200: [02:02:00] <ss23> WAIT
201: [02:02:00] <simon_w|air> Time to go pick up simon_w :)
202: [02:03:00] <ss23> Pyromanik~
203: [02:03:00] <ss23> :<
204: [02:04:00] <ss23> So if they take 3 mins to enter their details, they get another 5 mins to complete payment
205: [02:04:00] <ss23> simon_w|air: WEll figured people might have many steps in checkout and update at each step
206: [02:04:00] <simon_w|air> And $obj->ID = $obj->ID; $obj->write(false, false, true);
207: [02:04:00] <simon_w|air> Why LastEdited over Created?
208: [02:05:00] <ss23> Thanks, simon_w|air :D <3
209: [02:09:00] <Pyromanik> derp
210: [02:09:00] <Pyromanik> -.-
211: [02:09:00] <Pyromanik> "oh"
212: [02:09:00] <Pyromanik> CTRL+F5 BUDDY
213: [02:09:00] <Pyromanik> IT person sends in email saying "website loads plesk splash page"
214: [02:10:00] <ss23> lol
215: [02:14:00] * willr quit (Quit: willr)
216: [02:15:00] * willr has joined #silverstripe
217: [02:16:00] * willr quit (Client Quit)
218: [02:19:00] * willr has joined #silverstripe
219: [02:31:00] <Pyromanik> can someone link me to the metatitle thread?
220: [02:38:00] * simon_w has joined #silverstripe
221: [02:40:00] <Pyromanik> o.0
222: [02:40:00] <Pyromanik> fark
223: [02:40:00] <Pyromanik> what
224: [02:40:00] <Colin[pi]> (the template was prepared before however ;)
225: [02:40:00] <Pyromanik> gonna say
226: [02:40:00] <Colin[pi]> thanks SS, fully featured site with responsive design in <2 hours
227: [02:40:00] <Colin[pi]> so about 5 hours total
228: [02:40:00] <Pyromanik> ah
229: [02:41:00] <Colin[pi]> I've been preparing for this build for weeks
230: [02:41:00] <Pyromanik> still beat my record :(
231: [02:41:00] <Pyromanik> by like, 3 hours :'(
232: [02:41:00] <Colin[pi]> but I put a TOOOOON of hours into my base install/cms/modules
233: [02:41:00] <Pyromanik> oh yeah, drag and drop a site :P
234: [02:41:00] <Pyromanik> <3
235: [02:41:00] <Colin[pi]> fuck yes
236: [02:41:00] <Pyromanik> love it
237: [02:41:00] <Colin[pi]> much <3
238: [02:42:00] <Pyromanik> thanks simon_w|air
239: [02:42:00] <Pyromanik> still, only 3 hours on css is pretty minimal
240: [02:42:00] <Pyromanik> esp. incl. design.
241: [02:42:00] <Colin[pi]> getting all the modules/widgets/theme structure etc. to a standard model
242: [02:42:00] <simon_w|air> Pyromanik, https://groups.google.com/d/msg/silverstripe-dev/dOB7_rAHCuc/d62vFtItgqQJ
243: [02:42:00] <Pyromanik> thanks simon_w
244: [02:42:00] <Colin[pi]> it's a fairly simple design
245: [02:43:00] <Colin[pi]> this drag-n-drop model of modules was what I always tried to achieve in my own framework, but failed miserably
246: [02:44:00] <Colin[pi]> when I discovered SS, I was like "ahhh, so this is what it could have been if I was clever"
247: [02:47:00] <simon_w|air> Why?
248: [02:47:00] <Pyromanik> core.
249: [02:47:00] <Pyromanik> in
250: [02:47:00] <Pyromanik> should be.
251: [02:47:00] <Pyromanik> meta title argument is stupid.
252: [02:48:00] <Pyromanik> "oh but it's too much bloat" well, same could be said for pretty much every field.
253: [02:48:00] <Pyromanik> and "separate tab" etc is also redundant
254: [02:48:00] <Pyromanik> it's already hidden away
255: [02:48:00] <Pyromanik> not title out, other two in.
256: [02:48:00] <Pyromanik> simon_w, yes, so if a module, then they all should be a module.
257: [02:48:00] <Pyromanik> pages need only a content area.
258: [02:48:00] <simon_w|air> I never use it. Should be module
259: [02:49:00] <Pyromanik> every argument presented to remove it or move it is silly.
260: [02:50:00] <Pyromanik> Every single site created in a business orientation requires it.
261: [02:50:00] <ss23> ^
262: [02:50:00] <ss23> We used to build sites with Silverstripe, then clients would just pay us to update content for them
263: [02:50:00] <Pyromanik> (SEO stufs)
264: [02:50:00] <Pyromanik> people say clients get confused and don't use it.
265: [02:50:00] <Pyromanik> about 98% of clients are confused full stop. and never even log into the cms.
266: [02:51:00] <Pyromanik> mm
267: [02:51:00] <simon_w|air> No
268: [02:51:00] <simon_w|air> Very few sites need a different <title> then what shows up in the giant header on the page
269: [02:51:00] <simon_w|air> *than
270: [02:52:00] <simon_w|air> Ooh, looks like simon_w is almost usable
271: [02:53:00] <Pyromanik> and no simon_w|air, our meta titles are religiously filled in.
272: [02:53:00] <simon_w|air> Is still doing all the login stuff
273: [02:53:00] <Pyromanik> almost usable?
274: [02:54:00] <Pyromanik> (granted, not by myself).
275: [02:54:00] <Pyromanik> saying one field which is pretty standard and consistent with the model of a basic 'page' is bloat is a silly argument.
276: [02:54:00] <simon_w|air> And then Google changes their algorithm, and they're all redundant!
277: [02:55:00] <simon_w|air> Description and meta tags aren't redundant fields for most people
278: [02:55:00] <Pyromanik> especially when you leave the other two fields behind.
279: [02:55:00] <Pyromanik> meta tags are dangerous and is bloat
280: [02:55:00] <simon_w|air> Also, aren't used for SEO so wouldn't fit in a SEO module
281: [02:56:00] <simon_w|air> description is display only, keywords are completely ignored
282: [02:56:00] <ss23> WEow, simon_w|air is getting really worked up about this
283: [02:56:00] <Pyromanik> no reason for SEO at all
284: [02:56:00] <Pyromanik> then there's like
285: [02:56:00] <ss23> simon_w|air: Calm down, no need to get mad :S
286: [02:56:00] <Pyromanik> description is seo for sure.
287: [02:56:00] <Pyromanik> as are keywords.
288: [02:56:00] <simon_w|air> ahahahahahahahahahahahaaha
289: [02:56:00] <Pyromanik> if you're going to say something isn't SEO when SEO is loosely defined and pretty much a black box of guesswork logic
290: [02:57:00] <Pyromanik> when pretty much EVERY site is going to have the module added to it.
291: [02:57:00] <Pyromanik> for many places
292: [02:57:00] <Pyromanik> big bit*
293: [02:57:00] <Pyromanik> but since it's such a bit bit of business
294: [02:57:00] <Pyromanik> and clients pretty much demand it
295: [02:57:00] <Pyromanik> I think removing it is a redundant move
296: [02:58:00] <Pyromanik> the 'usefulness' of the field with the algorithims I coudln't really care less about.
297: [02:58:00] <ss23> Is this just about making it a module, or making it not installed by default? Cause cms is a "module" right? but thats by default. IF its just making it a module but keeping it by default, thats fine, right?
298: [02:58:00] <Pyromanik> every site with CMS, that serves the purpose of the vast 80% of sites out there.
299: [02:58:00] <simon_w|air> You're confusing every site you build with every site
300: [02:59:00] <Pyromanik> simon_w|air, this is half true. I'd consider every site I build to be the basic foundation of about 80% of commissioned websites in NZ (sites, not apps)
301: [02:59:00] <Pyromanik> proabably more than 80
302: [03:00:00] <simon_w|air> And I'll say most of the sites are built for people that don't even know what SEO is, let alone what to do about it
303: [03:00:00] <Pyromanik> every single client wants it.
304: [03:00:00] <Pyromanik> and I'd argue that point.
305: [03:01:00] <Pyromanik> most clients get pissy when they don't come up in google
306: [03:01:00] <Pyromanik> heh
307: [03:01:00] <spronk> we get photographer to take some shots. mock up about 5 ideas, send them outside the ocmpany
308: [03:01:00] <spronk> "Ugh i hate stock photos"
309: [03:01:00] <spronk> ughhh
310: [03:01:00] <spronk> fuck marketing firms.
311: [03:01:00] <spronk> "PUT PHOTOS ON THE HOMEPAGE AND THROUGHOUT THE SITE!"
312: [03:02:00] <Pyromanik> anyway, it's kinda half besides the point. The field gets used, is consistent with the model of a page, and moving it away is moving it to a module for the sake of it, not because it should or doesn't belong and needs to be BC.
313: [03:02:00] <Pyromanik> spronk, lol. NOT EVEN STOCK YOU FOOL
314: [03:03:00] <spronk> selling software with photographs just ... never works.
315: [03:03:00] <spronk> they always look like stock
316: [03:04:00] <simon_w> Pyromanik, removing things from the CMS is a rather thought out process. That SilverStripe Ltd did it (and they have much bigger clients than you) should tell you something.
317: [03:05:00] <Pyromanik> my thoughts exactly
318: [03:05:00] <Pyromanik> "pollutes the core"
319: [03:05:00] <Pyromanik> spronk, just because
320: [03:05:00] <spronk> why remove meta tags from CMS?
321: [03:05:00] <Pyromanik> "I'm using a smartphone and I'm SUPER stoked about it!"
322: [03:05:00] <simon_w> Anyway, this laptop seems to be mostly running again, so back to work
323: [03:05:00] <spronk> i don't get it
324: [03:05:00] <Pyromanik> "photos of people at computers!"
325: [03:05:00] <Pyromanik> spronk, yeh, software lol
326: [03:05:00] <spronk> ......riiiiiiiiiiiight
327: [03:06:00] <Pyromanik> I'm not really that fussed that it's become a module
328: [03:06:00] <Pyromanik> spronk, also, only MetaTitle was removed
329: [03:06:00] <spronk> if what one would consider "essential web stuff" is in a module
330: [03:06:00] <Pyromanik> but like meh
331: [03:06:00] <Pyromanik> see I disagree
332: [03:06:00] <spronk> it makes SS a lot less accessible to newcomers
333: [03:06:00] <Pyromanik> just think that modularising for modularising's sake is a bit redundant.
334: [03:06:00] <spronk> tbh
335: [03:07:00] <Pyromanik> frivolous changes for the sake of changes.
336: [03:07:00] <Pyromanik> well, at last I looked at 3.1
337: [03:07:00] <spronk> oh? thought desc was gone as well..
338: [03:08:00] * spronk also seriously disagrees with labelling metatitle and metadesc as "SEO"
339: [03:08:00] <Pyromanik> but then, I disagree with meta-anything in general.
340: [03:08:00] <ss23> I like turtles
341: [03:08:00] <Pyromanik> I'd agree with that statement
342: [03:08:00] <Pyromanik> yeh
343: [03:09:00] * SightUnseen has joined #silverstripe
344: [03:09:00] <spronk> omg i'm META EATING
345: [03:09:00] <Pyromanik> It either is or it isn't. Fuck this meta shit IMO.
346: [03:09:00] * SightUnseen quit (Client Quit)
347: [03:09:00] <Pyromanik> metapackages in ubuntu... ugh.
348: [03:10:00] <spronk> sigh
349: [03:10:00] <spronk> also, the number of people I know who install silverstripe CMSs without knowing how to use composer = scarily large percentage.
350: [03:10:00] <Pyromanik> way to confuse everything
351: [03:11:00] <ss23> What was it?
352: [03:11:00] <Pyromanik> also
353: [03:11:00] <ss23> I don't know how to use composer!
354: [03:11:00] <Pyromanik> web designers using gradients on text.
355: [03:11:00] <spronk> even ss23
356: [03:11:00] <ss23> PEAR had a manager didn't it?
357: [03:11:00] <spronk> SEE
358: [03:11:00] <spronk> he's veteran!
359: [03:11:00] <ss23> lol
360: [03:11:00] <Pyromanik> while we're on things that annoy me.
361: [03:11:00] <ss23> Back in my day we used...
362: [03:11:00] <ss23> That other thing for it
363: [03:11:00] <spronk> externals?
364: [03:12:00] <ss23> PECL == C
365: [03:12:00] <ss23> The PHP package manager thingy
366: [03:12:00] <Pyromanik> Pear basically IS a package manager
367: [03:12:00] <ss23> There was one, right?
368: [03:12:00] <ss23> yeah, PEAR
369: [03:12:00] <Pyromanik> for PHP extensions though, so far as I know.
370: [03:12:00] <ss23> Never used it *shrug*
371: [03:12:00] <ss23> Pyromanik: For PEAR packages, they're not excentions
372: [03:12:00] <Pyromanik> then again, PHP Unit is written in php, basically just a set of classes
373: [03:12:00] <ss23> PEAR == PHP code
374: [03:12:00] <Pyromanik> ic ic
375: [03:13:00] <spronk> yeah, but PECL doesn't work *at all* on windows
376: [03:13:00] <ss23> C programmers generally less noob than PHP programmers, true
377: [03:13:00] <spronk> both = horrible
378: [03:13:00] <ss23> lol
379: [03:13:00] <spronk> then again
380: [03:13:00] <spronk> was pretty shocked at how dodgy composer is
381: [03:13:00] <simon_w> The code quality in PEAR is fairly bad, PECL not so much
382: [03:14:00] <ss23> Yeah, tbh, I doubt even 80% of PEAR stuff works on latest PHP
383: [03:14:00] <ss23> So dodgy
384: [03:15:00] <simon_w> All composer is doing, is taking PEAR, making it JSON and removing features
385: [03:16:00] <Pyromanik> pretty much
386: [03:16:00] <Pyromanik> and making it more unstable.
387: [03:17:00] * ss23 cracks his knuckles
388: [03:17:00] <spronk> and tying in a pretty heavy reliance on github almost all the time
389: [03:17:00] <ss23> Time to look at this payment module stuff
390: [03:18:00] * LoveDuckie quit (Ping timeout: 252 seconds)
391: [03:20:00] <ss23> Now, do I try use a module thats in flux, or write my own stuff...
392: [03:20:00] <ss23> Important: The module is being restructured for SilverStripe 3 support, see "Roadmap" below
393: [03:20:00] <ss23> :<
394: [03:21:00] * micmania1 quit (Ping timeout: 245 seconds)
395: [03:21:00] <Pyromanik> ss23, github.com/frankmullenger
396: [03:22:00] <ss23> Pyromanik: idgi
397: [03:23:00] <Pyromanik> sigh
398: [03:23:00] <Pyromanik> https://github.com/frankmullenger/silverstripe-payment
399: [03:24:00] <Pyromanik> USE EYES PLZ
400: [03:24:00] <Pyromanik> https://github.com/frankmullenger/silverstripe-payment-paystation
401: [03:24:00] <Pyromanik> https://github.com/frankmullenger/silverstripe-payment-cheque
402: [03:24:00] <Pyromanik> https://github.com/frankmullenger/silverstripe-payment-paymentexpress
403: [03:24:00] <Pyromanik> https://github.com/frankmullenger/silverstripe-payment-securepaytech
404: [03:24:00] <Pyromanik> https://github.com/frankmullenger/silverstripe-payment-paypal
405: [03:25:00] <ss23> "Work in progress"
406: [03:25:00] * Guest29947 quit (Ping timeout: 264 seconds)
407: [03:25:00] <ss23> 16:20:48 < ss23> Now, do I try use a module thats in flux, or write my own stuff...
408: [03:25:00] <ss23> So, going back to what I originally said
409: [03:26:00] * Pigeon has joined #silverstripe
410: [03:26:00] <Pyromanik> it's stable enough for production
411: [03:26:00] * LoveDuckie has joined #silverstripe
412: [03:26:00] * Pigeon is now known as Guest62539
413: [03:26:00] * SightUnseen has left #silverstripe
414: [03:26:00] * SightUnseen has joined #silverstripe
415: [03:27:00] <Pyromanik> so far as I'm aware
416: [03:28:00] <ss23> Pyromanik: Can I blame you when it accidently refunsed $9000?
417: [03:28:00] * PineappleSquid has joined #silverstripe
418: [03:28:00] <ss23> :D
419: [03:28:00] <PineappleSquid> how does one revert their copy of foundation to an older version?
420: [03:28:00] <PineappleSquid> ruby gem
421: [03:28:00] <spronk> you pray
422: [03:29:00] <Pyromanik> wtf?
423: [03:29:00] <ss23> JUST SITTING HERE WATCHING ME
424: [03:29:00] <Pyromanik> Jedateach
425: [03:29:00] <ss23> ;__;
426: [03:29:00] <ss23> Is this Jeremy Shipman on here?
427: [03:29:00] <Pyromanik> ss23, when it breaks you can pay me $9000 to fix it.
428: [03:29:00] <ss23> IS HE ONE OF YOU GUYS?
429: [03:29:00] <PineappleSquid> I'm trying to use https://github.com/priithansen/silverstripe-foundation-boilerplate but the new version has some issue with javascript
430: [03:29:00] <Pyromanik> not atm, no.
431: [03:29:00] <ss23> kk
432: [03:30:00] <ss23> At this rate I'll have fixed 4 in total after tomorrow
433: [03:30:00] <PineappleSquid> foundation is a css framework
434: [03:30:00] <PineappleSquid> and ruby gem
435: [03:30:00] * DigNZ quit (Quit: DigNZ)
436: [03:30:00] <Pyromanik> PineappleSquid, no idea what foundation is
437: [03:30:00] <ss23> Man I'm on fire. I've fixed two typos in Silverstripe stuff today
438: [03:31:00] <priithansen> PineappleSquid: See if removing 'vendor' from htaccess block list makes it work
439: [03:31:00] <PineappleSquid> ah priithansen just the person I need
440: [03:31:00] * tankr quit (Quit: Leaving.)
441: [03:31:00] <PineappleSquid> I updated to the latest one but I'd like to go back to an older version
442: [03:31:00] <PineappleSquid> not sure how
443: [03:32:00] <PineappleSquid> thanks will try it out
444: [03:33:00] <priithansen> I couldn't get the clever zepto vs query loading method to work that foundation originally has and replaced it with just loading zepto but then figured out silverstripe blocks access to all vendor dirs and foundation keeps jquery and zepto in vendor/
445: [03:51:00] <PineappleSquid> awesome man got it working
446: [03:51:00] <PineappleSquid> you are a top lad
447: [03:52:00] <PineappleSquid> odd that vendor should be blocked by default isn't it?
448: [03:52:00] * Pyromanik quit (Quit: Leaving)
449: [03:54:00] <priithansen> I guess it's because of composer
450: [03:54:00] <priithansen> installing ss with composer makes at least one vendor dir
451: [03:55:00] * simon_w|air quit (Quit: This computer has gone to sleep)
452: [04:00:00] * nickmolhoek quit (Quit: nickmolhoek)
453: [04:00:00] * tractorcow has left #silverstripe
454: [04:04:00] * Jakx has joined #silverstripe
455: [04:04:00] <Jakx> yo
456: [04:04:00] <PineappleSquid> prrithansen I'm using your foundation boilerplate with the forums module
457: [04:05:00] <PineappleSquid> https://dl.dropbox.com/u/23966150/js%20issue.png
458: [04:05:00] <PineappleSquid> it works on other pages
459: [04:05:00] <PineappleSquid> any chance you could point me in the right direction?
460: [04:05:00] <PineappleSquid> but there is a javascript issue on the forums page that means the mobile nav doesn't work
461: [04:06:00] <priithansen> I have never used the forums module, heck haven't even used the foundation theme yet :)
462: [04:06:00] <priithansen> Maybe the forum tries to add it's own jquery and that messes things up
463: [04:06:00] <PineappleSquid> oh wow lol
464: [04:07:00] <PineappleSquid> ah ok will have a look ty
465: [04:08:00] <priithansen> or it doesn't work with zepto
466: [04:09:00] <priithansen> zepto* jquery*
467: [04:09:00] <Jakx> willr, just installed userforms on a new silverstripe 3 implementation. Getting an error: "Unknown column 'SubmittedForm.ParentID' in 'where clause'". Seen this before?
468: [04:09:00] <priithansen> could try switching the zeptop line with query line in pages.ss
469: [04:09:00] <Jakx> willr, ty
470: [04:09:00] <willr> Jakx - https://github.com/silverstripe/silverstripe-userforms/issues/96
471: [04:09:00] <willr> Jakx use 3.1
472: [04:10:00] <Jakx> willr, sweet. ty - sorry to bother ya
473: [04:11:00] <ss23> If I have a page type (HomePage) which has an action (Buy), can I just have an <a href="Buy">Buy it!</a> kinda thing where clicking the link does the action? And uh, how do I make the URL right? The URL should be "this-home-page/Buy", right? How do I make my <a> work like that? A template variable?
474: [04:11:00] <willr> No problem, it's why I'm here :)
475: [04:12:00] <Jakx> willr, makes sense
476: [04:12:00] <willr> Jakx going to make a 1.0 branch for 3.0 and a 1.1 branch for 3.1
477: [04:12:00] <Jakx> willr, are you just gonna wait for 3.1 stable release? or are you happy to merge that pull request from johnshutt?
478: [04:13:00] <ss23> "I can't wait to hack google glass and augment the shit out of someone's reality"
479: [04:21:00] <willr> ss23 who needs drugs when you can trip out with glasses..
480: [04:21:00] * bti has joined #silverstripe
481: [04:22:00] <ss23> XD
482: [04:22:00] <ss23> What causes that style error?
483: [04:22:00] <ss23> "There seems to have been a technical problem. Please click the back button, refresh your browser, and try again."
484: [04:23:00] <bti> is there any solution to open_basedir errors in SS3 that don't involve turning open_basedir off?
485: [04:24:00] <PineappleSquid> cheers priithansen fixed it by commenting out line 491 of Forum.php
486: [04:24:00] <PineappleSquid> was loading jquery.js
487: [04:25:00] <priithansen> PineappleSquid: Maybe you should switch the zepto line in template to jquery to be sure that whatever needed that in forum can still use jquery
488: [04:25:00] <PineappleSquid> potentially broken something else tho lol will have to wait and see
489: [04:26:00] <PineappleSquid> yup good advice
490: [04:26:00] <PineappleSquid> so have just done as you said and switched it to jquery
491: [04:26:00] <PineappleSquid> just noticed a console error when I switched it back from jquery to zepto
492: [04:26:00] * joelpittet quit (Ping timeout: 264 seconds)
493: [04:32:00] <ss23> http://i.imgur.com/g8kaOjd.gif ss23 on PineappleSquid
494: [04:32:00] <ss23> uh
495: [04:32:00] <ss23> oh Pyromanik*
496: [04:37:00] <PineappleSquid> lol
497: [04:37:00] <priithansen> found the rogue \ that silverstripe kept filtering out
498: [04:38:00] <priithansen> now can use the foundation original zepto : jquery chooser cleverness
499: [04:38:00] * LoveDuckie quit (Ping timeout: 260 seconds)
500: [04:38:00] * Jakx has left #silverstripe
501: [04:39:00] <priithansen> although I think it still would default to zepto if it can find that.
502: [04:56:00] * cloph_away has joined #silverstripe
503: [04:57:00] * cloph_away1 quit (Ping timeout: 258 seconds)
504: [04:58:00] * willr quit (Quit: willr)
505: [04:58:00] * bti quit (Quit: Textual IRC Client: www.textualapp.com)
506: [05:04:00] * chrisrio quit (Quit: Page closed)
507: [05:15:00] * azureKnight has joined #silverstripe
508: [05:17:00] * azureKnight quit (Client Quit)
509: [05:17:00] * Shrike_Finland quit (Quit: Leaving.)
510: [05:20:00] * azureKnight has joined #silverstripe
511: [05:26:00] * DrCuriosity quit (Ping timeout: 255 seconds)
512: [05:36:00] * aaron1245 quit (Quit: aaron1245)
513: [05:36:00] * robert_ has joined #silverstripe
514: [05:37:00] * joelpittet has joined #silverstripe
515: [05:37:00] * EPIK quit (Ping timeout: 260 seconds)
516: [05:40:00] * tankr has joined #silverstripe
517: [05:41:00] * azureKnight has joined #silverstripe
518: [05:41:00] * azureKnight quit (Read error: Connection reset by peer)
519: [05:42:00] * PineappleSquid quit (Quit: Page closed)
520: [05:44:00] * robert_ quit (Ping timeout: 272 seconds)
521: [05:44:00] * tankr quit (Client Quit)
522: [05:47:00] * aaron1245 has joined #silverstripe
523: [05:48:00] * Colin[pi] quit (Ping timeout: 256 seconds)
524: [05:59:00] * simon_w|air has joined #silverstripe
525: [06:03:00] <ss23> Session::curent_session() is protected. Should I just use pure PHP (session_id) to get it instead? (And of course, why is it protected?)
526: [06:06:00] <simon_w|air> Why?
527: [06:06:00] <simon_w|air> Session::get/Session::set are there for a reason
528: [06:07:00] <ss23> Well I could set a new random ID whenever a session is created, but using the session ID itself works just as well
529: [06:07:00] <ss23> seems a bit weird to generate *another* random string and set / get it when the session ID is already one
530: [06:08:00] <simon_w|air> SecurityToken::getSecurityID()
531: [06:09:00] <ss23> sweet, I'll use that
532: [06:16:00] * Shrike_Finland has joined #silverstripe
533: [06:22:00] * LoveDuckie has joined #silverstripe
534: [06:32:00] * LoveDuckie quit (Ping timeout: 256 seconds)
535: [06:33:00] * Kapdap_ quit (Quit: leaving)
536: [06:33:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
537: [06:34:00] <ss23> With has_many relationships, to filter on one of the relationships, like $foo->Locks()->filter('filter conditions on Locks'), or do you use Locks::get()->filter('DealID' => $deals->ID) kind of thing?
538: [06:34:00] <ss23> Didn't see anything on it in the docs so far (only checked docs.ss, not api.ss)
539: [06:41:00] <ss23> I tried $deal->Locks(array('SessionID' => SecurityToken::getSecurityID()))->First(); but it gives me a SQL error (looks like its not adding in the SessionID and just saying "and session_id"?
540: [06:42:00] <simon_w|air> $deal->Locks()->filter('SessionID', SecurityToken::getSecurityID())
541: [06:43:00] <ss23> Sweet, thanks simon_w|air. Figured it would be something like that, sjust couldn't find the syntax. ty
542: [06:43:00] * peter_ss1 has joined #silverstripe
543: [06:44:00] <simon_w|air> Datamodel!
544: [06:45:00] <ss23> I have that page open, simon_w|air!
545: [06:45:00] * peter_ss quit (Ping timeout: 245 seconds)
546: [06:46:00] <ss23> I managed to get all my add() stuff working off a combination of that page and forum posts that actually explaing it properly though
547: [06:46:00] <ss23> I have a dream, a dream of proper SS docs :P
548: [06:47:00] * Kapdap has joined #silverstripe
549: [06:53:00] * FrozenFire quit (Read error: Connection reset by peer)
550: [06:55:00] * FrozenFire has joined #silverstripe
551: [07:09:00] * Guest72664 quit (Quit: huoltokatko)
552: [07:10:00] * Martin__ quit (Read error: Connection reset by peer)
553: [07:11:00] * Guits has joined #silverstripe
554: [07:12:00] <simon_w|air> ss23, write them! :p
555: [07:13:00] <ss23> simon_w|air: I'm thinking about it! I already submitted 2 different pull requests for docs related stuff today! :P
556: [07:17:00] * LoveDuckie has joined #silverstripe
557: [07:19:00] * aaron1245 quit (Quit: aaron1245)
558: [07:38:00] * Guits quit (Ping timeout: 256 seconds)
559: [07:48:00] * ARNHOE has joined #silverstripe
560: [07:50:00] * aaron1245 has joined #silverstripe
561: [07:50:00] * ARNHOE_ has joined #silverstripe
562: [07:53:00] * ARNHOE quit (Ping timeout: 260 seconds)
563: [08:04:00] * aaron1245 quit (Ping timeout: 260 seconds)
564: [08:10:00] * azureKnight quit (Quit: azureKnight)
565: [08:14:00] * Pyromanik has joined #silverstripe
566: [08:16:00] <Pyromanik> is get_one deprecated?
567: [08:17:00] <Pyromanik> or is it still legit?
568: [08:17:00] <Pyromanik> in favour of get()->limit(1) ?
569: [08:22:00] <simon_w|air> Well, ::get()->filter()->First() is preferred over get_one('where clause')
570: [08:22:00] <simon_w|air> I don't think it's deprecated, and is fine for a singleton pattern type thing
571: [08:23:00] <Pyromanik> mmkay, cool thanks
572: [08:23:00] * zfmf has joined #silverstripe
573: [08:26:00] * peter_ss1 quit (Ping timeout: 276 seconds)
574: [08:27:00] <priithansen> What would be the preferred way of making cmd action reload the entire page
575: [08:29:00] <priithansen> Want to generate pdf's from modeladmin but It keeps embedding the pdf into html
576: [08:30:00] <priithansen> Should I make my own js to catch the click or is there some better way maybe
577: [08:30:00] <Pyromanik> huh?
578: [08:31:00] <Pyromanik> you're trying to download a pdf from modeladmin?
579: [08:31:00] * aaron1245 has joined #silverstripe
580: [08:33:00] <priithansen> jep
581: [08:34:00] <priithansen> I can view the pdf manually from the url and the button is there just can't figure out how to connect them
582: [08:35:00] <simon_w|air> Turn the button into a link
583: [08:36:00] <Pyromanik> hi
584: [08:36:00] * ocm has joined #silverstripe
585: [08:36:00] <Pyromanik> simon_w, best way to have a page controller handle it's own heirarchy of object, each with their own actions... implement nesting controllers and pass execution through?
586: [08:36:00] * chillu has joined #silverstripe
587: [08:36:00] <ocm> howdy!
588: [08:37:00] <ocm> like <% if Group == 'GroupName' %> <% else %> ..
589: [08:37:00] <ocm> is there a posibility to have usergroup based if statements in a template?
590: [08:37:00] <Pyromanik> simon_w|air perhaps
591: [08:37:00] <simon_w|air> Pyromanik, elaborate?
592: [08:38:00] <Pyromanik> simon_w, say I have ... article categories and articles
593: [08:38:00] <simon_w|air> ocm, Member has an InGroup method
594: [08:38:00] <ocm> nice :) thnx
595: [08:38:00] <Pyromanik> and an articlesholder extends page(_controller_
596: [08:38:00] <Pyromanik> and I want to have articles/category-name/article
597: [08:39:00] <Pyromanik> so I could have articles/category-name
598: [08:39:00] <Pyromanik> but also articles/category-name/add
599: [08:39:00] <Pyromanik> etc
600: [08:39:00] <Pyromanik> where categories and articels are just DataObjects (not cluttering my site tree)
601: [08:39:00] <Pyromanik> I've managed it to one level in the past by overriding hasAction
602: [08:40:00] <priithansen> simon_w how would one go about turning modeladmin action into a link?
603: [08:40:00] <Pyromanik> but still relied on articles/view/id to get actual articles
604: [08:40:00] <Pyromanik> I'd like to not have a massive amount of logic in the base holderpage_controller to determine all the different actions
605: [08:41:00] <simon_w|air> Oh, if you want it like that, double slash
606: [08:41:00] <simon_w|air> Pyromanik, okay, in ArticleHolder_Controller, static $url_handlers = array('$CategoryName!/$Article!' => 'handleCategory'). Then handleCategory is where you do your magic
607: [08:41:00] <simon_w|air> and, in theory, return a controller from the method
608: [08:42:00] <simon_w|air> priithansen, getCMSFields() with a LiteralField
609: [08:43:00] <Pyromanik> and rather delegate the action deciding such as pages do
610: [08:43:00] <Pyromanik> could you not just push a literalfield onto it?
611: [08:43:00] <Pyromanik> priithansen, you're updating actions at the base of model admin as opposed to the actual item in the gridfield huh?
612: [08:43:00] <priithansen> hm well that sounds much too simple after mucking about with updateCMSAction and ItemEditForm the whole night. thanks :)
613: [08:43:00] <Pyromanik> (that doesn't involve basically reimplementing RequestHandler on DataObject)
614: [08:43:00] <Pyromanik> that is either known or that you could think of?
615: [08:43:00] <Pyromanik> or is there a better way?
616: [08:43:00] <Pyromanik> so I as, is the best method to sort of come full circle and give each data object a corresponding controller and implement a nested controller type situation pushing each onto the stack as I dive through?
617: [08:43:00] <Pyromanik> but of course pages do it with controllers, where as I have vanilla dataobjects (not requesthanders)
618: [08:44:00] <simon_w|air> Pyromanik, lagging much?
619: [08:44:00] <Pyromanik> I think chrome might be demolishing my netbook's memories
620: [08:44:00] <Pyromanik> simon_w, yes heaps.
621: [08:45:00] <hubertusanton> is there a filter to see if a value is set in ss3?
622: [08:45:00] <Pyromanik> cool so just return a controller, but otherwise I basically had the right idea. Sweet, that's easier than overriding handleRequest :> thanks
623: [08:45:00] <priithansen> Pyromanik: Yes indeed that sounds logical, will try :)
624: [08:45:00] <ocm> chrome has become a memory killer in general
625: [08:45:00] <Pyromanik> hubertusanton, like if($object->value) ?
626: [08:45:00] * aaron1245 quit (Ping timeout: 264 seconds)
627: [08:46:00] <hubertusanton> I see ":StartsWith", ":EndsWith", ":PartialMatch", ":GreaterThan", ":LessThan", ":Negation".
628: [08:46:00] <hubertusanton> really like this new ORM way btw!
629: [08:46:00] <hubertusanton> BlogPage::get()->filter('See if BlogPageDate is set, how?')->sort('BlogPageDate DESC')->First();
630: [08:47:00] <hubertusanton> looking for isset or something like that
631: [08:47:00] <simon_w|air> hubertusanton, you're going to have to use something like ->where('"BlogPageDate" IS NOT NULL'), assuming NULL is your non-value
632: [08:47:00] <simon_w|air> oh right, I was supposed to make filter/exclude handle null sometime
633: [08:48:00] <simon_w|air> Pyromanik, timestamp
634: [08:48:00] <Pyromanik> oic
635: [08:48:00] * Bollig|DesignCty quit (Ping timeout: 264 seconds)
636: [08:48:00] <Pyromanik> no idea what mean
637: [08:48:00] <hubertusanton> so where and filter both function
638: [08:48:00] <Pyromanik> massive number
639: [08:48:00] <Pyromanik> ping req
640: [08:48:00] <Pyromanik> woa
641: [08:48:00] <hubertusanton> ah ok, thanks a lot!
642: [08:48:00] <Pyromanik> hubertusanton, filter('Date:LessThan', date('Y-m-d')) ?
643: [08:48:00] <simon_w|air> otherwise, if it's 0000-00-00, then a simple ->exclude('BlogPageDate', '0000-00-00') would work
644: [08:49:00] <Pyromanik> 5 messages popped up at once
645: [08:49:00] <simon_w|air> you only had a second delay, so not that bad
646: [08:49:00] <Pyromanik> simon_w|air, yeah, but when you asked me it was HUuuge
647: [08:53:00] <hubertusanton> Pyromanik: simon_w|air: nice this is what i ended up with, nice return BlogPage::get()->where('BlogPageDate != NULL')->sort('BlogPageDate DESC')->First();
648: [08:53:00] * Bollig|DesignCty has joined #silverstripe
649: [08:54:00] <simon_w|air> hubertusanton, assuming you're using MySQL, you need to use IS NOT NULL
650: [08:56:00] <Pyromanik> it happens priithansen, r3v3rb did the same thing yesterday
651: [08:56:00] <Pyromanik> :>
652: [08:56:00] <priithansen> simon_w|air, Pyromanik thanks I was so caught up meddling with cmsActions that didn't even think I can send other things there too.
653: [08:58:00] <priithansen> skipping the night sleep doesn't make things easier either :)
654: [08:58:00] <Pyromanik> 10pm
655: [08:58:00] <hubertusanton> what time is it over there? or are you all from europe?
656: [08:58:00] <hubertusanton> simon_w|air: ty site just broke indeed
657: [08:58:00] <Pyromanik> priithansen, yeah, I noticed, heh.
658: [08:59:00] <Pyromanik> but everyone should know that timezones go in hours, unless you're some whacko from Adelaide with their half hour timezone.
659: [08:59:00] <simon_w|air> what Pyromanik said
660: [08:59:00] <Pyromanik> 9:59 if you want to be exact :P
661: [08:59:00] <simon_w|air> I should probably stop eating this cheese
662: [08:59:00] <priithansen> 11am
663: [09:00:00] * mik__ has joined #silverstripe
664: [09:00:00] <simon_w|air> Pyromanik, NZCHAT :p
665: [09:00:00] <Pyromanik> rando half hour.
666: [09:01:00] <Pyromanik> hi mik__
667: [09:01:00] <Pyromanik> sif
668: [09:01:00] <Pyromanik> also
669: [09:01:00] <Pyromanik> get_one is oldschool :<
670: [09:01:00] <mik__> Hi there
671: [09:01:00] <Pyromanik> requires 'callerclass'
672: [09:01:00] <mik__> I have upgraded from SS 2.4 to 3.0.5
673: [09:02:00] <Pyromanik> end up with redundant BlahPage::get_one('BlahPage')
674: [09:02:00] <mik__> Most of the problems are sorted out, except for the admin interface:
675: [09:02:00] <mik__> If however I reload the whole page the editor with content is displayed correctly and works (I can change content and save it) When I want to change page again via the sitetree, nothing happens in the interface. The previous page (editor) stays on screen.
676: [09:02:00] <mik__> When I click on a link in the sitetree the ajax request returns with a 200 Ok, but the response is truncated so that the JSON is incomplete. The effect is that the page editor is not displayed. The screen stays empty. No error is displayed.
677: [09:02:00] <mik__> Would you have any hint where to look for the error? I am unsure if this is due to the code in mysite or a bug in SS.
678: [09:03:00] <Pyromanik> inspect request/response headers
679: [09:03:00] <Pyromanik> so that's why it works like that.
680: [09:03:00] <Pyromanik> reloading a page does a physical reload, not a re-ajax
681: [09:03:00] <Pyromanik> dev tools
682: [09:03:00] <Pyromanik> make sure that what you suspect is actually happening
683: [09:04:00] <Pyromanik> it's a JS error
684: [09:04:00] <priithansen> any suggestions on modules like newsletter that change the modeladmin? It's been really good for finding out how to make modeladmin bend some more
685: [09:04:00] <Pyromanik> likely
686: [09:05:00] <priithansen> newsletter one uses modeladmin for sure
687: [09:05:00] <Pyromanik> priithansen, it doesn't change modeladmin I think, I think it just makes it's own with LeftAndMain
688: [09:05:00] <mik__> thanks Pyromanik
689: [09:07:00] * popeshoe quit (Quit: Leaving)
690: [09:07:00] <Pyromanik> priithansen, cool, haven't used it since 2.2, so don't know for sure.
691: [09:07:00] <mik__> I'll check that zfmf
692: [09:07:00] <zfmf> mik__: i had the same problem on a site, th eproblem was, i had a blank line on top of my customconfig file :D
693: [09:07:00] <zfmf> i deleted it and problem was solved
694: [09:07:00] <priithansen> Just not sure it has the latest and greatest techniques incorporated like no sign of updateItemEditForm
695: [09:08:00] <priithansen> I'm using it purely to mine code :)
696: [09:08:00] <mik__> thanks
697: [09:08:00] <Pyromanik> priithansen, like most modules it's likely just a rough port - enough to make it work and not much more.
698: [09:08:00] <Pyromanik> bound to be lots of obsolete/redundant code in there that should be removed/upgraded.
699: [09:09:00] <Pyromanik> as any whitespace (including endline) will do the same thing
700: [09:09:00] <Pyromanik> mik__, ah, if that's the case and you can't find any white space before the opening <?php, you should check your code to make sure you are not using ?>
701: [09:09:00] * popeshoe has joined #silverstripe
702: [09:10:00] <Pyromanik> and if that's all ok, then look at the encoding type, make sure you don't have a random UTF8 zero width character in there
703: [09:11:00] <Pyromanik> simon_w, with this handleCategory... the param is a Request object right, will the params be updated to match the pattern in the $url_handlers match, or will I just have to take forgranted that shifting/next param is what i'm looking for?
704: [09:11:00] * aaron1245 has joined #silverstripe
705: [09:12:00] <simon_w|air> Pyromanik, yes and the params should match what's in the $url_handlers
706: [09:12:00] <mik__> Pyromanik, UTF8 zero in the code you mean ?
707: [09:13:00] <priithansen> redundant code indeed http://www.sspaste.com/paste/show/51419472d0df1 < all this to add a button. Plus code in modeladmin to change the default detail form with this one. Must investigate how UncleCheese made his data object better buttons module thing
708: [09:14:00] * kinglozzer has joined #silverstripe
709: [09:14:00] <Pyromanik> and if I had say articleController/search, will that require a separate entry before //$Category! to ensure that it doesn't look for a category named search?
710: [09:14:00] <ocm> what is the correct use of inGroup?
711: [09:14:00] <Pyromanik> simon_w|air, awesome. so //$Category!/$Action! requires BOTH or will /category/ match and still pass through to handleCategory?
712: [09:15:00] <Pyromanik> ocm inGroup('groupname')
713: [09:15:00] <simon_w|air> (the double slash should go there)
714: [09:15:00] <Pyromanik> mik__, more specifically I mean http://en.wikipedia.org/wiki/Byte_order_mark
715: [09:15:00] <Pyromanik> mik__, I mean zero width, doesn't show up.
716: [09:15:00] <simon_w|air> Pyromanik, if you don't want to enforce action, then $Category!//$Action
717: [09:16:00] <Pyromanik> for interests sake, what would happen if I left the double slash and the action section out of the definition?
718: [09:16:00] <Pyromanik> simon_w, and that'll mean that $Action will be delegated to the category controller I return from handleCategory?
719: [09:17:00] <Pyromanik> not even passed to new category controller?
720: [09:17:00] <Pyromanik> param just completely ignored?
721: [09:18:00] <Pyromanik> the precedence rather than the use case is kinda vague on me
722: [09:19:00] * ajshort has joined #silverstripe
723: [09:20:00] <simon_w|air> well, it means you wouldn't have it available in handleCategory
724: [09:21:00] <Pyromanik> ie the difference between $Category => handleCategory, $Category/$Action => handleAction or $Category => handleCateogry returns new CategoryController which then defines $Article => handleArticle
725: [09:21:00] <ajshort> chillu, simon_w: Re the namespaces stuff - would you guys be happy if i updated my HTTP pull request to undo moving classes into namespaces, but still place new classes into namespaces?
726: [09:22:00] <ajshort> simon_w|air: You convinced me that it's probably not worth moving heavily used existing ones, but making new ones in namespaces seems like a good way to start introducing them
727: [09:22:00] <simon_w|air> ajshort, chillu, Oh right, I was supposed to reply to that email (work laptop needed repairs just after receiving it). I'm fine with new classes being namespaces
728: [09:22:00] <Pyromanik> and $Category/$Article => handleCategory which returns controller which then handels $Article
729: [09:22:00] <ajshort> ok cool
730: [09:22:00] <chillu> ajshort: Same here, but we do need to make a call on SilverStripe/Framework/NewClass vs. SilverStripe/NewClass for that ;) On the other hand, its master, so easy to change without deprecation
731: [09:23:00] <chillu> I think it should be a one-off effort to move all existing classes, rather than piece by piece - that'll just be upgrading insanity (even for master early-adopters)
732: [09:23:00] <simon_w|air> Pyromanik, first and third are the same. Second would call $Action or index, and consume the $Action, fourth would consume the $Article
733: [09:24:00] <ajshort> chillu: I've already made my case for including Framework - namely allowing different namespaces for SS-released modules. (SilverStripe\CMS etc.) - someone just has to actually make the call :)
734: [09:24:00] <ajshort> yep
735: [09:24:00] <simon_w|air> chillu, that's a personal taste sort of thing. Someone has to make the decision
736: [09:25:00] * aaron1245 quit (Ping timeout: 272 seconds)
737: [09:25:00] <Pyromanik> simon_w|air, I see. so in short, don't define params in urlhandlers that you want to pass through to other controllers.
738: [09:26:00] <chillu> I'm more on the side of SilverStripe\DataObject and SilverStripe\CMS\SiteTree, for the sake of brevity - I'll follow up with Hamish and Sam on it. You're right, its mostly a matter of preference
739: [09:27:00] <simon_w|air> Pyromanik, no, just don't define them in a way they get consumed. Double slash is a stop-consuming, but still parse point
740: [09:29:00] <Pyromanik> I see. thanks for that :)
741: [09:30:00] <Pyromanik> so if I '$Var' => 'handleVar' that basically overrides the normal default handleAction (which will never ever be called on this controller)?
742: [09:30:00] <simon_w|air> Yup
743: [09:31:00] <Pyromanik> but if nothing then I'm stuck with $action/$id/$otherid
744: [09:31:00] <Pyromanik> so I have to define everything or nothing.
745: [09:31:00] <Pyromanik> cool. Thank you.
746: [09:32:00] * waveydave has joined #silverstripe
747: [09:33:00] <Pyromanik> ?
748: [09:33:00] <Pyromanik> and if I want to pass through then return MySubController::create($model)->handleRequest($request);
749: [09:34:00] <Pyromanik> understanding++, ta!
750: [09:34:00] <Pyromanik> sweeeeeeet :)
751: [09:34:00] <simon_w|air> yup
752: [09:39:00] <Pyromanik> or is $allowed_actions a ContentController only kinda thing?
753: [09:39:00] <Pyromanik> oh, one last thing, should handleCategory be in $allowed_actions ?
754: [09:40:00] <Pyromanik> or does it only matter when the request maps directly to the action?
755: [09:40:00] <Pyromanik> (ie, without $url_handlers) ?
756: [09:42:00] <Pyromanik> god I feel like such a noob, never done much routing before :<
757: [09:42:00] <Pyromanik> and does 'index' need to be in allowed_actions?
758: [09:42:00] <Pyromanik> proper routing.
759: [09:44:00] <Pyromanik> cool
760: [09:44:00] <simon_w|air> index is always allowed
761: [09:44:00] <simon_w|air> It should be in $allowed_actions
762: [09:46:00] * PineappleSquid has joined #silverstripe
763: [09:46:00] <PineappleSquid> how do I get a virtual page to load the css styles of the page it is showing?
764: [09:48:00] <Pyromanik> automatically?
765: [09:48:00] <Pyromanik> it should
766: [09:48:00] * lx-berlin has joined #silverstripe
767: [09:49:00] <ss23> hey Pyromanik
768: [09:49:00] <ss23> http://i.imgur.com/g8kaOjd.gif ss23 on Pyromanik
769: [09:49:00] <Pyromanik> go away, it's my turn to be newb
770: [09:49:00] * onre_ has joined #silverstripe
771: [09:49:00] * ss23 automatically pokes Pyromanik
772: [09:49:00] <ss23> hey Pyromanik :D
773: [09:49:00] <Pyromanik> >.>
774: [09:50:00] <ss23> :D
775: [09:50:00] <Pyromanik> oh dat rocco
776: [09:50:00] * ss23 dances on Pyromanik
777: [09:53:00] * aaron1245 has joined #silverstripe
778: [09:55:00] <PineappleSquid> lol
779: [09:56:00] <ss23> Anyway, think it's time for me to turn in for the night. Last thing to do on this project is the DPS integration :D Got all my stock allocation / sales stuff done
780: [09:57:00] <ss23> hear that, Pyromanik? If the DPS stuff takes ~2 hours, I'll be right on schedule
781: [09:58:00] <PineappleSquid> using forums module
782: [09:58:00] <PineappleSquid> for some reason forum.css doesn't want to load in to my virtual page
783: [09:59:00] <Pyromanik> ss23, ha
784: [09:59:00] <PineappleSquid> and priithansens foundation boilerplate
785: [09:59:00] <Pyromanik> sif
786: [09:59:00] <Pyromanik> that's just what you think
787: [10:00:00] <ss23> Myromadiak
788: [10:00:00] <ss23> uh
789: [10:00:00] <ss23> Pyromadiak
790: [10:00:00] <ss23> umad @ my l33t quoting skills and l33t skills to be able to learn Silverstripe easily
791: [10:01:00] <Pyromanik> Not particularly.
792: [10:01:00] <Pyromanik> "oh... actually now that you've already built the site, can you change almost everything about it just quickly before we go live? Oh, and for free, thanks."
793: [10:01:00] <ss23> I'm not dealing with a client, so I don't particularly care. I've already sent one email to the guy who is dealing with the client saying "If they want X it's going to be a lot extra"
794: [10:01:00] <Pyromanik> Just dem clients.
795: [10:02:00] * Zauberfisch_ has joined #silverstripe
796: [10:02:00] <ss23> :D
797: [10:02:00] <Pyromanik> living the dream after all
798: [10:02:00] <Pyromanik> oh lucky
799: [10:03:00] <kinglozzer> Got our new dedicated server up and running :D
800: [10:04:00] <ss23> kinglozzer: Quick, apt-get install sl
801: [10:04:00] <Pyromanik> hahahaha
802: [10:04:00] <Pyromanik> lit. first thing I did tbh
803: [10:04:00] * Zauberfisch_ quit (Remote host closed the connection)
804: [10:04:00] <kinglozzer> :P
805: [10:05:00] <Pyromanik> 5 trains later I was ready to roll
806: [10:05:00] <Pyromanik> "HELP HELP"
807: [10:05:00] <onre_> and -l gives you a longer train
808: [10:05:00] <ss23> XD
809: [10:05:00] <Pyromanik> -a makes them alarmed
810: [10:06:00] <ss23> Most of the time these strips don't even work so you have to prick yourself 3 times to get a reading
811: [10:06:00] <Pyromanik> -al is a long train that wants help!
812: [10:06:00] <PineappleSquid> Pyromanik http://clientsfromhell.net
813: [10:06:00] <Pyromanik> yep
814: [10:06:00] <Pyromanik> I know
815: [10:06:00] <ss23> h do something?
816: [10:06:00] * aaron1245 quit (Ping timeout: 252 seconds)
817: [10:06:00] <ss23> fucking fuck fuck. I can't believe how much the government must've spent on replacing every diabetics blood glucose meter with a new brand, and worst of all, this new brand is *shit*
818: [10:06:00] <ss23> FUCK
819: [10:06:00] <kinglozzer> What does F do?
820: [10:07:00] <PineappleSquid> lol
821: [10:07:00] <PineappleSquid> funny coz its so true
822: [10:07:00] <Pyromanik> spent HOURS on that site
823: [10:07:00] <Pyromanik> PineappleSquid,oh yeah, fo sho
824: [10:08:00] <Pyromanik> then she goes "Why don't we just use real lightsabers?"
825: [10:08:00] <Pyromanik> THIRTY MINUTES. WTF!?
826: [10:08:00] <Pyromanik> and it took them 30 mins to explain why they couldn't.
827: [10:08:00] <Pyromanik> one of my favourites has to be a video post processor telling client about how they make lightsabers for her video
828: [10:09:00] <Pyromanik> I didn't know there were people that dumb who could still have enough cognitive function to commission work.
829: [10:10:00] <PineappleSquid> hahahaha
830: [10:14:00] <Pyromanik> default*
831: [10:14:00] <Pyromanik> ie $dataObject->setTitle('newTitle')
832: [10:14:00] <Pyromanik> all properties have magic setters right?
833: [10:14:00] <Pyromanik> ?
834: [10:14:00] <Pyromanik> by defaut
835: [10:15:00] <kinglozzer> *think*
836: [10:15:00] <kinglozzer> I think they do though
837: [10:15:00] <kinglozzer> Pass, I always use $dataObject->Title = 'newTitle'
838: [10:16:00] <Pyromanik> yeah, I'm the same
839: [10:19:00] * onre_ quit (Read error: Connection reset by peer)
840: [10:25:00] * onre_ has joined #silverstripe
841: [10:32:00] * aaron1245 has joined #silverstripe
842: [10:45:00] * joelpittet quit (Remote host closed the connection)
843: [10:46:00] * travis-ci has joined #silverstripe
844: [10:46:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/a2845735b04a...e0be520fef68
845: [10:46:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5495912
846: [10:46:00] <travis-ci> [travis-ci] silverstripe/sapphire#1635 (3.1 - e0be520 : Ingo Schommer): The build is still failing.
847: [10:46:00] * aaron1245 quit (Ping timeout: 252 seconds)
848: [10:46:00] * travis-ci has left #silverstripe
849: [10:50:00] <PineappleSquid> urgh caching css is the worst
850: [11:14:00] * aaron1245 has joined #silverstripe
851: [11:27:00] * aaron1245 quit (Ping timeout: 272 seconds)
852: [11:39:00] * PineappleSquid quit (Quit: Page closed)
853: [11:40:00] * Colin[pi] has joined #silverstripe
854: [11:42:00] * lx-berlin has left #silverstripe
855: [11:54:00] * aaron1245 has joined #silverstripe
856: [12:00:00] * kernelhunter92 has joined #silverstripe
857: [12:03:00] * UndefinedOffset has joined #silverstripe
858: [12:07:00] <Pyromanik> :< github down :/
859: [12:08:00] * aaron1245 quit (Ping timeout: 252 seconds)
860: [12:09:00] <kinglozzer> D:
861: [12:11:00] * mik__ has left #silverstripe
862: [12:24:00] <Pyromanik> and I don't mean contentcontroller
863: [12:24:00] <Pyromanik> how to associate model with controller?
864: [12:30:00] * priithansen quit (Quit: priithansen)
865: [12:35:00] * aaron1245 has joined #silverstripe
866: [12:40:00] <Pyromanik> oh, set failover
867: [12:42:00] <Pyromanik> nope :<
868: [12:49:00] * aaron1245 quit (Ping timeout: 252 seconds)
869: [13:01:00] <Pyromanik> derp derp
870: [13:01:00] <Pyromanik> wrong scope in template
871: [13:01:00] <Pyromanik> I should have just gone to bed :<
872: [13:01:00] <Pyromanik> g'nite
873: [13:01:00] * Pyromanik quit (Quit: HydraIRC -> http://www.hydrairc.com <- Po-ta-to, boil em, mash em, stick em in a stew.)
874: [13:10:00] * g4b0 has joined #silverstripe
875: [13:11:00] <g4b0> hi all
876: [13:15:00] * aaron1245 has joined #silverstripe
877: [13:18:00] * Colin[pi] quit (Ping timeout: 256 seconds)
878: [13:24:00] * EPIK has joined #silverstripe
879: [13:28:00] * Colin[pi] has joined #silverstripe
880: [13:29:00] * aaron1245 quit (Ping timeout: 252 seconds)
881: [13:39:00] * Colin[pi] quit (Ping timeout: 276 seconds)
882: [13:49:00] * Guits has joined #silverstripe
883: [13:52:00] * webguest has joined #silverstripe
884: [13:53:00] <webguest> hello, i have a DataObject, with a has_one to 'Project' ... Project has got a datefield. In my DataObject i want to get this date from 'Project' ... how do i do that? like: $this->Project->Date;
885: [13:54:00] * david_bru has joined #silverstripe
886: [13:56:00] * aaron1245 has joined #silverstripe
887: [13:59:00] <kinglozzer> Late hello g4b0 :P
888: [14:00:00] <david_bru> good day, is it possible to hide a page from the url? the default url behaviour and the desired behaviour can be seen here: http://pastebin.com/yCy4UEfZ
889: [14:00:00] <david_bru> is this at all possible?
890: [14:00:00] <webguest> without () it doesnt work
891: [14:00:00] <webguest> yes
892: [14:00:00] <webguest> got it from some older code ;)
893: [14:00:00] <webguest> it worked
894: [14:00:00] <kinglozzer> Can't remember if you need the () on a has_one
895: [14:00:00] <webguest> yhx kinglozzer
896: [14:00:00] <kinglozzer> webguest: Yes I think that should work. It might be $this->Project()->Date
897: [14:04:00] * Nivery has joined #silverstripe
898: [14:05:00] <kinglozzer> david_bru: You might be able to do it with $url_handlers
899: [14:08:00] <kinglozzer> Do you mean you just don't want the 'mainpage1/' part of the URL segment? If that's all, can't you just remove SiteTree::enable_nested_urls(); from your _config.php?
900: [14:10:00] * aaron1245 quit (Ping timeout: 272 seconds)
901: [14:13:00] * webguest quit (Ping timeout: 245 seconds)
902: [14:18:00] * lx-berlin has joined #silverstripe
903: [14:21:00] * priithansen has joined #silverstripe
904: [14:23:00] * UncleCheese has joined #silverstripe
905: [14:25:00] * Shrike_Finland quit (Quit: Leaving.)
906: [14:27:00] * ocm quit ()
907: [14:29:00] <g4b0> How can I say to a gridfield to show a arbitrary number of row, instead of just 15?
908: [14:31:00] <g4b0> solved by myself :)
909: [14:31:00] <g4b0> $gridFieldConfig = GridFieldConfig_RelationEditor::create(25);
910: [14:32:00] <kinglozzer> $gridFieldConfig = GridFieldConfig_RecordEditor::create(); $gridFieldConfig->getComponentByType('GridFieldPaginator')->setItemsPerPage(25);
911: [14:32:00] <kinglozzer> I always used GridFieldPaginator
912: [14:33:00] <david_bru> kinglozzer: thanks for your info.. i think disabling the nested urls is not a possibility but i will look into the $url_handlers
913: [14:33:00] <kinglozzer> I guess that does essentially the same thing
914: [14:33:00] <kinglozzer> DUH. Could just do GridFieldConfig_RecordEditor::create(25). Thanks for the tip g4b0 :D
915: [14:35:00] * ajshort quit (Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344])
916: [14:36:00] * aaron1245 has joined #silverstripe
917: [14:49:00] * aaron1245 quit (Ping timeout: 252 seconds)
918: [14:57:00] * Friksel has joined #silverstripe
919: [15:00:00] <Friksel> good day! Anybody knows what datatype goes into a phonenumber field?
920: [15:02:00] <travis-ci> [travis-ci] chillu/sapphire#65 (pulls/tree-node-limit - 4f8463c : Ingo Schommer): The build failed.
921: [15:02:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/b645703eb9a4^...4f8463c38e93
922: [15:02:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5500739
923: [15:02:00] * david_bru quit (Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931])
924: [15:02:00] * travis-ci has left #silverstripe
925: [15:02:00] * travis-ci has joined #silverstripe
926: [15:05:00] * C10ne has joined #silverstripe
927: [15:08:00] <C10ne> Hi all, can anyone help me with a thing? How do I remove "Delete" from a dataobject?
928: [15:09:00] <kinglozzer> C10ne: public function canDelete() { return false; }
929: [15:10:00] * Shrike_Finland has joined #silverstripe
930: [15:11:00] <C10ne> Well, I wrote that, but the button is still there
931: [15:13:00] * mrzero_ has joined #silverstripe
932: [15:14:00] * mrzero_ is now known as mrzero
933: [15:14:00] * mrzero quit (Read error: Connection reset by peer)
934: [15:16:00] * aaron1245 has joined #silverstripe
935: [15:22:00] <C10ne> It doesn't even call the canDelete method.
936: [15:23:00] <kinglozzer> C10ne: public function canDelete($member=null) { return false; } works fine for me. I'm on 3.1-beta2, though.
937: [15:24:00] * Friksel quit (Ping timeout: 245 seconds)
938: [15:29:00] <C10ne> Can't figure out what's wrong, canDelete doesn't even get called. Thanks for the help kinglozzer, I'll have to figure something else out.
939: [15:30:00] * aaron1245 quit (Ping timeout: 264 seconds)
940: [15:34:00] <g4b0> I have "File" tab that I would like to remove
941: [15:34:00] <g4b0> How can I remove a tab from a DataObject edit page?
942: [15:35:00] <g4b0> so the tab is empty
943: [15:35:00] <g4b0> but I add them through an UploadField
944: [15:35:00] <g4b0> It's generated because the DO has many_many files
945: [15:36:00] <C10ne> $fields->removeByName("File"); should do the trick
946: [15:37:00] <g4b0> thanks C10ne
947: [15:37:00] <g4b0> calling it before inserting the new one does the trick
948: [15:38:00] <C10ne> Cool, you're welcome
949: [15:44:00] <kinglozzer> Did the Silverscoop ep go ahead yesterday does anyone know?
950: [15:51:00] * azureKnight has joined #silverstripe
951: [15:56:00] * bti has joined #silverstripe
952: [15:56:00] * g4b0 quit (Ping timeout: 272 seconds)
953: [15:56:00] * aaron1245 has joined #silverstripe
954: [16:01:00] * catcher has joined #silverstripe
955: [16:09:00] * aaron1245 quit (Ping timeout: 252 seconds)
956: [16:12:00] * g4b0 has joined #silverstripe
957: [16:19:00] * ARNHOE_ quit (Remote host closed the connection)
958: [16:36:00] * aaron1245 has joined #silverstripe
959: [16:36:00] <lx-berlin> what would be the easiest way to find out if any of its parent page is a "ProductPage". either the Page itself or its parent or its grandparent ...
960: [16:39:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/5503716
961: [16:39:00] <travis-ci> [travis-ci] chillu/silverstripe-cms#15 (pulls/show-children-as-list - 1e1049b : Ingo Schommer): The build failed.
962: [16:39:00] * travis-ci has joined #silverstripe
963: [16:39:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/d0585e484abd^...1e1049b5c82d
964: [16:39:00] * travis-ci has left #silverstripe
965: [16:43:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/37bb86a92782...2dd0e3f02efe
966: [16:43:00] * travis-ci has left #silverstripe
967: [16:43:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5503881
968: [16:43:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#267 (3.1 - 2dd0e3f : jean): The build is still failing.
969: [16:43:00] * travis-ci has joined #silverstripe
970: [16:44:00] <kinglozzer> that*
971: [16:44:00] <kinglozzer> lx-berlin: $isProductChild = false; while ($page->ParentID != 0) { $page = SiteTree::get()->byID($page->ParentID); if ($page->ClassName == 'ProductPage) $isProductChild = true; }
972: [16:44:00] <kinglozzer> Or something like tha
973: [16:45:00] <FrozenFire> lx-berlin, http://api.silverstripe.org/master/class-Hierarchy.html#_getAncestors
974: [16:46:00] <FrozenFire> foreach($this->Ancestors as $ancestor) if(is_a($ancestor, "ProductPage")) { ... }
975: [16:46:00] <lx-berlin> thanks . i will try this
976: [16:46:00] <kinglozzer> Or that ^^ had no idea that existed :P
977: [16:47:00] <catcher> Hmm. Is there any way to dynamically insert multiple instances of the same InlineFormAction?
978: [16:47:00] <lx-berlin> i didnt know $this->Ancestors either :)
979: [16:48:00] <FrozenFire> Can't you just add it multiple times?
980: [16:49:00] <FrozenFire> This is true.
981: [16:49:00] <catcher> 'cause it has a dynamic name
982: [16:49:00] <FrozenFire> Well, then clone and change the name
983: [16:49:00] * aaron1245 quit (Ping timeout: 252 seconds)
984: [16:49:00] <catcher> But then I can't define the action method.
985: [16:49:00] <FrozenFire> Ah.
986: [16:49:00] <catcher> If they're named the same, it only shows up in the last place.
987: [16:50:00] <catcher> idea
988: [16:50:00] <FrozenFire> That's a tricky question.
989: [16:51:00] <FrozenFire> Set the name dynamically, then the full action name statically
990: [16:51:00] <FrozenFire> Maybe FormAction::setFullAction
991: [16:51:00] <catcher> fail.
992: [16:52:00] <FrozenFire> InlineFormAction doesn't extend FormAction
993: [16:52:00] <catcher> nice, I'll try it
994: [16:52:00] <FrozenFire> It re-extends FormField
995: [16:52:00] <FrozenFire> Heh. Actually, no dice
996: [16:53:00] <catcher> True story.
997: [16:53:00] <FrozenFire> Shit out of luck, methinks
998: [16:54:00] <FrozenFire> Maybe if you define it multiple times with the same action name?
999: [16:54:00] <FrozenFire> And not the instance of the object?
1000: [16:54:00] <FrozenFire> Are you sure that it's the name that causes it to be moved?
1001: [16:56:00] <catcher> I'm calling ::create inside the loop
1002: [16:56:00] <catcher> instantiating in the loop, better said
1003: [16:57:00] <kinglozzer> Controller
1004: [16:57:00] <lx-berlin> FrozenFire: works great, thanks. But i have a basic questio. I have this in my template: <body class="$InvOrAdv"> Would this function InvOrAdv() go in Model or Controller ?
1005: [16:57:00] * joelpittet has joined #silverstripe
1006: [16:58:00] * Nivery quit (Quit: Nivery)
1007: [16:58:00] <lx-berlin> ok, thats what i did :)
1008: [16:58:00] <catcher> lx-berlin, controller, unless you need access to it from another model
1009: [16:59:00] <lx-berlin> i was not sure, because if (is_a($this, "InvPage")) { .... } didnt work, because the function is in the controller
1010: [16:59:00] * onre_ quit (Read error: Connection reset by peer)
1011: [17:00:00] * kinglozzer quit (Remote host closed the connection)
1012: [17:00:00] <FrozenFire> lx-berlin, $this->data()
1013: [17:00:00] * g4b0 dinner time
1014: [17:00:00] <g4b0> bye
1015: [17:00:00] * g4b0 quit (Quit: Sto andando via)
1016: [17:00:00] * onre_ has joined #silverstripe
1017: [17:00:00] <lx-berlin> ah :)
1018: [17:01:00] <FrozenFire> That works too
1019: [17:01:00] <lx-berlin> i did instead: if ($this->ClassName == "InvPage")
1020: [17:01:00] <catcher> Are FormFields enforced to be unique by title?
1021: [17:02:00] <lx-berlin> but $this->data() looks more professional
1022: [17:02:00] <lx-berlin> thanks
1023: [17:03:00] <catcher> Any other fields draw buttons?
1024: [17:03:00] <catcher> I suppose I could just do any old field with an extraClass and css it.
1025: [17:04:00] <FrozenFire> Are you sure you can't just use a plain old FormAction?
1026: [17:04:00] <catcher> Worth a shot.
1027: [17:07:00] <FrozenFire> So that you could have it inline with something else in the CMS
1028: [17:07:00] <FrozenFire> Sfaik, an InlineFormAction just omits the surrounding HTML that makes it a block element
1029: [17:08:00] <FrozenFire> Use that format.
1030: [17:08:00] <FrozenFire> You need to set it as action_myaction
1031: [17:08:00] * bti quit (Quit: Computer has gone to sleep.)
1032: [17:08:00] <FrozenFire> Look at the format of the action input names from another form
1033: [17:08:00] <catcher> hm, doesn't want to call the action I'm setting with ->setFullAction('myaction')
1034: [17:09:00] * travis-ci has joined #silverstripe
1035: [17:09:00] <catcher> ahh..
1036: [17:09:00] * travis-ci has left #silverstripe
1037: [17:09:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5504561
1038: [17:09:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/4f8463c38e93...61dc6839dca9
1039: [17:09:00] <travis-ci> [travis-ci] chillu/sapphire#67 (pulls/tree-node-limit - 61dc683 : Ingo Schommer): The build is still failing.
1040: [17:12:00] <catcher> still no.
1041: [17:14:00] * joelpittet quit (Read error: Connection reset by peer)
1042: [17:15:00] * joelpittet has joined #silverstripe
1043: [17:15:00] * aaron1245 has joined #silverstripe
1044: [17:15:00] <FrozenFire> Might just need to delve into the framework code to trace how it structures its action calls
1045: [17:15:00] <priithansen> Is it possible for me to catch that exception in my function http://www.priithansen.com/RuntimeException.png
1046: [17:15:00] <FrozenFire> Not sure, then
1047: [17:15:00] <FrozenFire> Hrmm
1048: [17:16:00] <FrozenFire> But you should just be able to try { ... } catch(RuntimeException $e) { ... }
1049: [17:16:00] <FrozenFire> Times out
1050: [17:16:00] <FrozenFire> priithansen, Can't access that image
1051: [17:17:00] <FrozenFire> Someone in ##php might know more about the SPL exceptions
1052: [17:17:00] <FrozenFire> Well, it's http://php.net/manual/en/class.runtimeexception.php
1053: [17:17:00] <priithansen> that didn't seem to work. Maybe it's because of namespaces but couldn't figure that out
1054: [17:18:00] <priithansen> that should work
1055: [17:18:00] <priithansen> http://snag.gy/Hu5pa.jpg
1056: [17:19:00] <priithansen> ?
1057: [17:19:00] <FrozenFire> Perhaps catch \RuntimeException $e
1058: [17:19:00] <FrozenFire> If your own code is outside of the global namespace, then it will look for a RuntimeException in your current namespace.
1059: [17:19:00] <priithansen> no need to but my new Knp\… thing into try {} =
1060: [17:20:00] <FrozenFire> I can't grok that sentence
1061: [17:21:00] <FrozenFire> But in that case you might want to recover from it by bailing into a redirect or something
1062: [17:21:00] <priithansen> should $snappy = new Knp\Snappy\Pdf(…. be in try { ... }
1063: [17:21:00] <FrozenFire> Don't catch it for the sake of catching it
1064: [17:21:00] <FrozenFire> If you're able to do something to recover from that exception, then yes.
1065: [17:22:00] <FrozenFire> Yup. In that case you would catch the exception and re-route the code into your error page
1066: [17:22:00] <priithansen> Wan't to show regular html page if making a pdf doesn't compute
1067: [17:23:00] <priithansen> hm does not want to catch the bugger. Will have do some reading about RuntimeExceptions, thanks for the help
1068: [17:23:00] <FrozenFire> E.g. try { ... } catch(\RuntimeException $e) { return $this->failed($request); }
1069: [17:24:00] <FrozenFire> RuntimeException is an SPL exception that the library you're using is throwing
1070: [17:24:00] <priithansen> yeo
1071: [17:24:00] <priithansen> yep
1072: [17:27:00] * aaron1245 quit (Ping timeout: 258 seconds)
1073: [17:33:00] * lx-berlin has left #silverstripe
1074: [17:33:00] <lx-berlin> bye all
1075: [17:46:00] * aaron1245 has joined #silverstripe
1076: [17:51:00] * SightUnseen has joined #silverstripe
1077: [17:52:00] * micmania1 has joined #silverstripe
1078: [17:53:00] * SightUnseen has left #silverstripe
1079: [18:05:00] * waveydave has left #silverstripe
1080: [18:07:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/silverstripe-cms/compare/2dd0e3f02efe...ec93643f49b5
1081: [18:07:00] * travis-ci has joined #silverstripe
1082: [18:07:00] <travis-ci> [travis-ci] silverstripe/silverstripe-cms#269 (3.1 - ec93643 : Ingo Schommer): The build is still failing.
1083: [18:07:00] * travis-ci has left #silverstripe
1084: [18:07:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/silverstripe-cms/builds/5506217
1085: [18:48:00] * aaron1245 quit (Quit: aaron1245)
1086: [18:49:00] * bti has joined #silverstripe
1087: [18:50:00] * bti quit (Client Quit)
1088: [18:55:00] * Shrike_Finland quit (Quit: Leaving.)
1089: [19:01:00] <catcher> Is it possible to change scope to an extension in a template?
1090: [19:01:00] <catcher> i.e. <% with Member %> <% if Member IsA SpecialMember %> $SpecialMemberMethod
1091: [19:02:00] <catcher> Or do I need to provide getters on the parent?
1092: [19:04:00] <catcher> And if that's necessary, how can I change scope in php (shy of SpecialMember::get()->byID($this->ID))?
1093: [19:06:00] <simon_w> Extension or subclass?
1094: [19:06:00] * ARNHOE has joined #silverstripe
1095: [19:07:00] <catcher> subclass, sorry
1096: [19:08:00] <catcher> Looks like the model knows the lowest-level ClassName, so the accessors work.
1097: [19:10:00] <catcher> Is that the best/only way?
1098: [19:14:00] <simon_w> You have worked with multiple page types before, right?
1099: [19:14:00] <simon_w> This is no different
1100: [19:15:00] * kernelhunter92 quit (Ping timeout: 264 seconds)
1101: [19:16:00] * Shrike_Finland has joined #silverstripe
1102: [19:19:00] * kernelhunter92 has joined #silverstripe
1103: [19:19:00] <catcher> I don't think I've explicitly looped over Pages, trying to access CustomPage methods.
1104: [19:26:00] * DigNZ has joined #silverstripe
1105: [19:26:00] * DigNZ has joined #silverstripe
1106: [19:26:00] * DigNZ quit (Remote host closed the connection)
1107: [19:28:00] * joelpittet quit (Remote host closed the connection)
1108: [19:31:00] * joelpittet has joined #silverstripe
1109: [19:31:00] <simon_w> Try some butter
1110: [19:31:00] <UncleCheese> extra meta tags doesn't save anymore?
1111: [19:31:00] <UncleCheese> I'm stuck
1112: [19:32:00] <simon_w> Doing it wrong?
1113: [19:33:00] <UncleCheese> saving this: <img>
1114: [19:33:00] <UncleCheese> returns this: <img src="">
1115: [19:33:00] <UncleCheese> saving this: <meta name="google-site-verification" content="RPE97C1pTVBIT8XtaeYGnCwZ6Y2x26JXr5FcylglgYk" />
1116: [19:33:00] <UncleCheese> clears out the field
1117: [19:33:00] <UncleCheese> but saving this <p>hi</p>
1118: [19:33:00] <UncleCheese> works
1119: [19:33:00] <UncleCheese> is it ContentNegotiator?
1120: [19:33:00] <UncleCheese> i don't believe so
1121: [19:34:00] <UncleCheese> oh, it's off by default anyway
1122: [19:34:00] <UncleCheese> hmm
1123: [19:34:00] <UncleCheese> i disabled it
1124: [19:34:00] <simon_w> Did you enable it?
1125: [19:34:00] * Pyromanik has joined #silverstripe
1126: [19:35:00] <UncleCheese> saving the value "<meta>" fails
1127: [19:35:00] <UncleCheese> you can reproduce it by setting up a textareafield to save to an HTMLText field in the cms
1128: [19:36:00] <Pyromanik> ahh back to it :<
1129: [19:37:00] <simon_w> which version?
1130: [19:37:00] * micmania1 quit (Ping timeout: 245 seconds)
1131: [19:38:00] <simon_w> Going to be more specific?
1132: [19:38:00] <UncleCheese> 3.1
1133: [19:38:00] <UncleCheese> maybe i'll try upgrading to beta2
1134: [19:39:00] <simon_w> So you're on b1. That's a little silly.
1135: [19:40:00] <simon_w> Like, months old
1136: [19:40:00] <UncleCheese> it's silly?
1137: [19:40:00] <simon_w> You're running an old beta
1138: [19:41:00] <UncleCheese> my understanding is the 3.1 branch is more stable than master
1139: [19:41:00] <UncleCheese> ha
1140: [19:41:00] <UncleCheese> well, ok, same problem in the latest 3.1 branch
1141: [19:41:00] <simon_w> though I guess the current latest is horribly unstable
1142: [19:41:00] <UncleCheese> you mean master?
1143: [19:41:00] <simon_w> No, 3.1
1144: [19:42:00] * nickmolhoek quit (Remote host closed the connection)
1145: [19:42:00] <simon_w> The config changes cause some interesting problems
1146: [19:42:00] <UncleCheese> api changes?
1147: [19:42:00] <UncleCheese> what's new in config?
1148: [19:42:00] <simon_w> Not really
1149: [19:42:00] * nickmolhoek has joined #silverstripe
1150: [19:42:00] * nickmolhoek has joined #silverstripe
1151: [19:43:00] <simon_w> http://doc.silverstripe.org/framework/en/3.1/changelogs/3.1.0#static-configuration-properties-are-now-immutable-you-must-use-config-api
1152: [19:45:00] <UncleCheese> so it's just an issue of having unescaped html in the <textarea> tag
1153: [19:45:00] <UncleCheese> so this is interesting.. it saves to the db, but it doesn't render in the textarea in the edit state
1154: [19:46:00] <simon_w> this is fun :D
1155: [19:46:00] <simon_w> wheee, I can't even load the CMS to test
1156: [19:47:00] <simon_w> eh, can't be bothered figuring it out
1157: [19:53:00] <Pyromanik> this is why we have beta stages.
1158: [19:53:00] <UncleCheese> 3.0 isn't for production, either
1159: [19:53:00] <UncleCheese> there are far fewer bugs in 3.1 than 3.0
1160: [19:53:00] <Pyromanik> well ok then.
1161: [19:53:00] <Pyromanik> 3.1 is not for production use UncleCheese.
1162: [19:55:00] <simon_w> 3.0 has been ready for production use since a1 :p
1163: [19:58:00] <UncleCheese> that's just semantics
1164: [19:58:00] <UncleCheese> nah
1165: [19:59:00] <UncleCheese> 3.1 beta gets me down to 23 or so
1166: [19:59:00] <simon_w> We've been using 3.0 in production since a1 :p
1167: [19:59:00] <UncleCheese> 3.0 it was right around 45
1168: [19:59:00] <simon_w> Haha, client
1169: [19:59:00] <UncleCheese> i determine production ready by my clients' WTFs per minute
1170: [20:00:00] <UncleCheese> I typically don't notice the bugs because i never use the CMS.. all I care about is a stable framework
1171: [20:00:00] <UncleCheese> but 3.0 did some weird things with page revision history and stuff
1172: [20:04:00] <Pyromanik> You must be the only person on the planet with clients who actually log into the CMS.
1173: [20:04:00] <Pyromanik> And you most surely are the only person in history to have clients who make use of page history.
1174: [20:05:00] <Pyromanik> and clients will wtf at anything. Doesn't mean there's a bug ;)
1175: [20:12:00] <simon_w> The client can use it! Is a bug! :p
1176: [20:13:00] * onre_ quit (Read error: Connection reset by peer)
1177: [20:14:00] * onre_ quit (Read error: Connection reset by peer)
1178: [20:14:00] <UncleCheese> i know, i feel that way, too
1179: [20:14:00] * onre_ has joined #silverstripe
1180: [20:14:00] <UncleCheese> same with all the features of TinyMCE
1181: [20:14:00] <UncleCheese> i'm always like, what? you actually use that thing?
1182: [20:16:00] * nickmolhoek1 quit (Remote host closed the connection)
1183: [20:16:00] * nickmolhoek1 has joined #silverstripe
1184: [20:17:00] * nickmolhoek1 has joined #silverstripe
1185: [20:17:00] <Pyromanik> then paste into tinymce
1186: [20:17:00] <Pyromanik> type it out in word
1187: [20:17:00] <Pyromanik> they waste time with double entry
1188: [20:17:00] <Pyromanik> nah
1189: [20:18:00] <Pyromanik> pay me to come in and clean out all the office added tags and faff.
1190: [20:18:00] * nickmolhoek quit (Ping timeout: 258 seconds)
1191: [20:18:00] <Pyromanik> then wonder why the hell it doesn't work
1192: [20:18:00] <Pyromanik> don't listen and repeat process in 6 months.
1193: [20:18:00] <Pyromanik> get told what caused it, and how to avoid it
1194: [20:19:00] * UndefinedOffset quit (Quit: Leaving.)
1195: [20:19:00] * onre_ has joined #silverstripe
1196: [20:20:00] * Frottello has joined #silverstripe
1197: [20:21:00] * kernelhunter92 quit (Ping timeout: 260 seconds)
1198: [20:21:00] * froog quit (Quit: Page closed)
1199: [20:26:00] * liam_ is now known as Guest28336
1200: [20:26:00] * liam_ has joined #silverstripe
1201: [20:26:00] * Frottello quit (Quit: Page closed)
1202: [20:28:00] * ARNHOE quit (Remote host closed the connection)
1203: [20:31:00] <ss23> http://jsoverson.github.com/plato/examples/grunt/ Cool idea
1204: [20:33:00] <ss23> I always skip then it messes up my plan of meals for the day
1205: [20:33:00] <simon_w> Really need to stop skipping breakfast...
1206: [20:33:00] <ss23> simon_w: ME TOO
1207: [20:33:00] <ss23> simon_w: ;__;
1208: [20:33:00] <simon_w> Especially since I'm only eating lunch at the moment
1209: [20:34:00] <UncleCheese> i found it!
1210: [20:34:00] <simon_w> It was on the floor!
1211: [20:34:00] <ss23> Yay!
1212: [20:34:00] <UncleCheese> tell me if this makes any sense to you guys
1213: [20:35:00] <UncleCheese> https://github.com/silverstripe/sapphire/blob/3.0/model/fieldtypes/HTMLText.php#LC145
1214: [20:35:00] <UncleCheese> <meta /> returns false by that logic
1215: [20:36:00] <simon_w> I would make it [^=>]
1216: [20:36:00] <UncleCheese> bug?
1217: [20:36:00] <simon_w> and I told Sam about things like this happening :p
1218: [20:37:00] <Guest28336> hi everyone. Please check out my latest side project http://silversites.co . Would love to hear any feedback that you may have.
1219: [20:38:00] <Pyromanik> eh?
1220: [20:38:00] <UncleCheese> UncleCheese posting bugs to IRC?
1221: [20:38:00] <Pyromanik> <simon_w> and I told Sam about things like this happening :p
1222: [20:38:00] <UncleCheese> things like what?
1223: [20:39:00] <Pyromanik> so irrelevant
1224: [20:39:00] <irogue> Guest28336: looks like squarespace but with silverstripe? if so, that's pretty cool
1225: [20:39:00] <Pyromanik> that function UncleCheese
1226: [20:39:00] <Pyromanik> lol
1227: [20:39:00] <irogue> can't see any pricing though
1228: [20:39:00] <UncleCheese> what makes you say it's irrelevant?
1229: [20:39:00] <UncleCheese> it's used in every DataObject::write() call
1230: [20:40:00] <Guest28336> irogue: its free for now
1231: [20:40:00] <ss23> Does Traivs at the moment have a test for checking style guidelines are met?
1232: [20:40:00] <Pyromanik> UncleCheese, because only the first check actual alters the return value.
1233: [20:40:00] <Pyromanik> the other two are pointless.
1234: [20:40:00] <Guest28336> im a developer so I currently lack the skills to come up with a pricing model
1235: [20:40:00] <simon_w> Pyromanik, his regex breaking on tags that it really shouldn't
1236: [20:40:00] <simon_w> ss23, yup
1237: [20:40:00] <UncleCheese> no, only if the parent returns false do the other two cases not matter
1238: [20:41:00] <ss23> simon_w: cool beans :D
1239: [20:41:00] <Pyromanik> irogue, nah, looks more like 'instant hosting' with default install
1240: [20:42:00] <Guest28336> Pyromanik: plan is to implement modules etc and allow people to upload their own themes. Just trying to get the concept out there with minimum features to see if people like it and will use it
1241: [20:42:00] <irogue> Pyromanik: yup. which is pretty much squarespace
1242: [20:42:00] <irogue> hosted CMS
1243: [20:43:00] <simon_w> on the mailing list
1244: [20:43:00] <ss23> I only know about this from that IPTV
1245: [20:43:00] <simon_w> UncleCheese, you're turning into that Tony Air guy :p
1246: [20:43:00] <UncleCheese> Who's Tony Air?
1247: [20:43:00] <ss23> SQUARE SPACE
1248: [20:43:00] <UncleCheese> a skateboarder?
1249: [20:43:00] <irogue> diggnation
1250: [20:43:00] <Pyromanik> misread return false as return true
1251: [20:44:00] <Pyromanik> I thought squarespace was a bit more advanced
1252: [20:44:00] <Pyromanik> more like a less technical sliversmith type thing.
1253: [20:44:00] <irogue> Pyromanik: it really really isn't. it's genuinely just a hosted CMS
1254: [20:44:00] <irogue> my flatmate wanted a website, i told him to use squarespace cos i cbf dealing with finding him shared hosting that silverstripe works well with & installing it for him
1255: [20:44:00] <Pyromanik> irogue, really?
1256: [20:44:00] <Guest28336> irogue: haven't used squarespace before. do you think Silverstripe is better than squarespace?
1257: [20:45:00] <ss23> Chrome has some speedy update stats
1258: [20:45:00] <irogue> i'm regretting sending him to squarespace now though
1259: [20:45:00] <irogue> it's fine for basic stuff
1260: [20:45:00] <irogue> but very not extensible
1261: [20:45:00] <Pyromanik> ss23, that's because chrome updates through malwre.
1262: [20:45:00] <simon_w> ss23, Well, duh. You can't not upgrade.
1263: [20:45:00] <Pyromanik> exactly
1264: [20:45:00] <ss23> irogue: But if he wants extensible he can switch cause he'll be pro, right?
1265: [20:45:00] <ss23> Like, noobs don't need complex stuff!
1266: [20:45:00] <Pyromanik> oh
1267: [20:45:00] <Pyromanik> haha
1268: [20:45:00] <ss23> Daaamn
1269: [20:45:00] <Pyromanik> they talk it up like it's so much more
1270: [20:45:00] <ss23> "It's always fun to see Chrome's fast upgrade in action - 50% of users upgraded after 5 days, ~100% after 9 days "
1271: [20:46:00] <irogue> and then you just have textareas to put CSS and JS in which get injected into the head
1272: [20:46:00] <irogue> that's the only way to modify the template
1273: [20:46:00] <irogue> you use one of their templates
1274: [20:47:00] * aaron1245 has joined #silverstripe
1275: [20:47:00] <simon_w> Woo, XSS to the extreme!
1276: [20:48:00] <ss23> Oh oh, but I was thinking
1277: [20:48:00] <ss23> Hardly counts as XSS
1278: [20:49:00] <ss23> That is, if you can render HTML/JS
1279: [20:49:00] <ss23> What about XSS on Github? Doesn't really count as XSS, but stealing the creds of anyone who views my page and creating a github virus (since you can edit files in browser, if you have Javascript, you could do a fully fledged virus kinda thing)
1280: [20:50:00] <ss23> Okay Github, you the man
1281: [20:50:00] <Pyromanik> do it
1282: [20:50:00] <ss23> Great repository names are short and memorable. Need inspiration? How about freezing-robot.
1283: [20:50:00] <simon_w> Fairly sure you only get JS on subdomains, and login stuff is all done on github.com
1284: [20:50:00] <ss23> https://github.com/ss23/freezing-robot
1285: [20:50:00] <ss23> done.
1286: [20:50:00] <ss23> haha, go to make one called "test-repo"
1287: [20:51:00] * Pyromanik has imaginations of a heartless cold iRobot incarnation of Mr Freeze
1288: [20:51:00] <Pyromanik> was it Mr or Dr?
1289: [20:51:00] <Pyromanik> shit
1290: [20:51:00] <Pyromanik> err, Dr Freeze
1291: [20:51:00] <simon_w> Well, my session cookie is definitely github.com only
1292: [20:51:00] * ss23 creates the first github virus :D
1293: [20:51:00] <ss23> Would be l33t if it worked
1294: [20:51:00] <ss23> but I wanted to play around and make sure
1295: [20:51:00] <ss23> Yeah, I thought it would be like that too, simon_w
1296: [20:52:00] * joelpitt_ has joined #silverstripe
1297: [20:52:00] <ss23> simon_w: Yeah, I knew that,w was more thinking of whether you could execute JS on that domain. The content of a markdown file aren't in a frame, they're directly on github.com for example
1298: [20:52:00] <ss23> Pyromanik: XD
1299: [20:53:00] <ss23> Anyway, figure it won't work
1300: [20:53:00] <ss23> BUT I THOUGHT IT WAS A COOL IDEA
1301: [20:54:00] <Pyromanik> can't be that hard
1302: [20:54:00] <Pyromanik> xD
1303: [20:54:00] <ss23> Probably going to be hard
1304: [20:54:00] <ss23> :<
1305: [20:54:00] <ss23> Wonder if you can get Javascript in a md file
1306: [20:54:00] <ss23> Hmm
1307: [20:54:00] <Pyromanik> try it
1308: [20:54:00] * joelpittet quit (Ping timeout: 258 seconds)
1309: [20:54:00] <Pyromanik> github went down last night
1310: [20:54:00] <ss23> Trying now
1311: [20:55:00] <Pyromanik> BOW CHIKA WOW WOW
1312: [20:55:00] <Pyromanik> but I imagine the md parser will strip.
1313: [20:55:00] <ss23> Because you can't execute scripts in an .html
1314: [20:55:00] <Pyromanik> step back this is a test
1315: [20:55:00] <ss23> damn rite
1316: [20:55:00] <Pyromanik> ss23, well if it's raw, just output it.
1317: [20:56:00] <ss23> lol
1318: [20:57:00] <ss23> There is a logged_in cookie on git subdomains, hmm
1319: [20:58:00] <ss23> Step back step back ya'll don't know me like that
1320: [20:58:00] <Pyromanik> step back, this is a test
1321: [20:58:00] * zfmf has left #silverstripe
1322: [21:02:00] <irogue> suggestions plz
1323: [21:03:00] <irogue> what burgerfuel would be most enjoyable without bun?
1324: [21:04:00] <ss23> Okay I got bored. cbf
1325: [21:05:00] <FrozenFire> irogue, You mean, what's meaty and hearty without bread?
1326: [21:05:00] <irogue> exactly!
1327: [21:06:00] <FrozenFire> Had something damned tasty the other night that was exactly that, though it's nothing to do with burger. :P
1328: [21:07:00] <FrozenFire> Mix the fried meatballs (we Danes call it boeuf) in with the mashed potatoes and then put a bit of gravy in with it
1329: [21:07:00] <FrozenFire> Mashed potatoes with sour cream, horseradish and chives mixed in. And then mix together some ground beef with diced onions and some savoury seasoning, then fry them up.
1330: [21:08:00] <simon_w> irogue, that el camino one would be pretty good
1331: [21:08:00] <FrozenFire> Greasy and hearty
1332: [21:09:00] <FrozenFire> Though not actually "slimy greasy"
1333: [21:09:00] <FrozenFire> Just the right amount of greasy
1334: [21:09:00] <ss23> 10:05:47 < FrozenFire> irogue, You mean, what's meaty and hearty without bread?
1335: [21:09:00] <ss23> 10:06:28 < FrozenFire> Had something damned tasty the other night that was exactly that, though it's nothing to do with burger. :P
1336: [21:09:00] <ss23> Was expecting gay sex
1337: [21:09:00] <FrozenFire> Herpa derp. :P
1338: [21:10:00] <FrozenFire> irogue, I'm trying to remember, were you GF?
1339: [21:10:00] <irogue> nope
1340: [21:10:00] <FrozenFire> Har har
1341: [21:10:00] <irogue> no i'm not your girlfriend
1342: [21:10:00] <irogue> neg carbs
1343: [21:10:00] <irogue> just diet
1344: [21:10:00] <FrozenFire> I vaguely recall someone else here that was GF
1345: [21:10:00] <FrozenFire> Gluten-free :P
1346: [21:10:00] <simon_w> yet.
1347: [21:11:00] <FrozenFire> Ah. So potatoes are out
1348: [21:11:00] <FrozenFire> Hrmm
1349: [21:12:00] <FrozenFire> Well, minimal carbs.
1350: [21:12:00] <FrozenFire> Still use some sort of flour as a binder
1351: [21:12:00] <FrozenFire> But mostly meat and veg
1352: [21:12:00] <ss23> It's cause irogue was turning into a major fatty
1353: [21:12:00] <FrozenFire> Well, frikadeller is good.
1354: [21:12:00] <ss23> Right, irogue?
1355: [21:12:00] <FrozenFire> And no carbs
1356: [21:13:00] <ss23> what the hecl
1357: [21:13:00] <ss23> http://en.wikipedia.org/wiki/Birth_weight Thank you wikipedia
1358: [21:13:00] * ss23 calculates how many babies irogue has lost
1359: [21:13:00] <ss23> Thats bigger than a baby, right?
1360: [21:13:00] <irogue> ss23: yup
1361: [21:13:00] <irogue> down 16kg thus far
1362: [21:14:00] <FrozenFire> http://www.wolframalpha.com/input/?i=Average+newborn+weight
1363: [21:14:00] <ss23> ;_;
1364: [21:14:00] <ss23> it doesn't give the weight
1365: [21:14:00] <ss23> irogue has lost almost 5 babies!
1366: [21:14:00] <ss23> Okay, 3.4 kg
1367: [21:15:00] * azureKnight quit (Quit: azureKnight)
1368: [21:16:00] * Colin[pi] has joined #silverstripe
1369: [21:17:00] <Pyromanik> I thought you loved buns.
1370: [21:17:00] <simon_w> Has he behind the other couch?
1371: [21:17:00] <Pyromanik> irogue, Why no bun?
1372: [21:18:00] <Pyromanik> FrozenFire, it was one of the Americans.
1373: [21:18:00] * Zauberfisch_ has joined #silverstripe
1374: [21:18:00] <Pyromanik> (the gluten free)
1375: [21:18:00] * Colin[pi] quit (Client Quit)
1376: [21:19:00] <FrozenFire> Not sure who fits that description
1377: [21:19:00] <Pyromanik> the one that lives in LA but is from TX.
1378: [21:20:00] <Pyromanik> is this that same diet?
1379: [21:20:00] <Pyromanik> that you started last year?
1380: [21:20:00] <Pyromanik> was a reasonably regular for a while
1381: [21:20:00] <Pyromanik> irogue, 16 kg waw
1382: [21:20:00] <Pyromanik> no one in here atm. I remeber the person, just not the name. I'd click if they came back though.
1383: [21:21:00] <Pyromanik> when you stopped having pies for lunch
1384: [21:21:00] <Pyromanik> and whined about it :<
1385: [21:22:00] <Pyromanik> irogue, oh, so it's actually quite a reasonable timeframe to lose 16Kg in
1386: [21:22:00] <irogue> Pyromanik: yup
1387: [21:22:00] <Pyromanik> I was all O-O
1388: [21:22:00] <Pyromanik> FrozenFire, lewellyn
1389: [21:23:00] <FrozenFire> That may be it
1390: [21:24:00] <Pyromanik> http://logs.simon.geek.nz/index.php?date=2012-10-16#9_10
1391: [21:25:00] <Pyromanik> http://logs.simon.geek.nz/index.php?date=2012-10-19#10_49_11
1392: [21:25:00] <Pyromanik> y'all had quite the allergy chat.
1393: [21:26:00] * FrozenFire is having a brainfart moment
1394: [21:26:00] <irogue> got two other mates doing it, both have lost over 20kg
1395: [21:26:00] <irogue> Pyromanik: yeah. lost ~5kg in the first month then gradually since then
1396: [21:27:00] <FrozenFire> How the hell do you get a block element (on its own line) that has a content-fit width?
1397: [21:27:00] <FrozenFire> I know there's the css width: fit-content; thing, but that's only CSS3
1398: [21:27:00] * Guest62539 quit (Ping timeout: 240 seconds)
1399: [21:28:00] * Pigeon has joined #silverstripe
1400: [21:28:00] * Squandered has joined #silverstripe
1401: [21:28:00] <Pyromanik> FrozenFire, you mean like text-align: justified?
1402: [21:28:00] * Pigeon is now known as Guest14260
1403: [21:29:00] <simon_w> It would be nice if xchat could be told to not highlight if a match is inside something I don't want to match.
1404: [21:29:00] <FrozenFire> Pyromanik, Nah. I need h2 elements which have left and right borders. However, block elements have width: auto (100%) or a specific width.
1405: [21:29:00] <simon_w> Don't need to be told if someone links to the logs
1406: [21:30:00] <Pyromanik> <h2><span></span></h2> or inli... FFFFFF simon_w
1407: [21:30:00] <FrozenFire> I just want the borders to be left and right of the text itself...
1408: [21:30:00] <FrozenFire> Not all the way to the edges of the parent
1409: [21:30:00] <simon_w> inline-block?
1410: [21:30:00] <FrozenFire> I thought about doing a separate element inside
1411: [21:30:00] <simon_w> does margin: 0 auto; work for that?
1412: [21:30:00] <FrozenFire> But I hate that shit
1413: [21:30:00] <FrozenFire> I need inline-block, but clearing other inline shit
1414: [21:31:00] <Pyromanik> works in 8 and up though
1415: [21:31:00] <Pyromanik> FrozenFire, deal with it :<
1416: [21:31:00] * FrozenFire mulls
1417: [21:31:00] <Pyromanik> that's css2 (with one colon, not double), but IE is still balls retarded at IE7 level.
1418: [21:31:00] <Pyromanik> I'm afraid that is the option, unless you ::before and ::after
1419: [21:32:00] <FrozenFire> That wouldn't work. :P
1420: [21:32:00] <Pyromanik> just <h2></h2> h2:before, h2:after
1421: [21:32:00] <simon_w> yeah, I know :p
1422: [21:32:00] <FrozenFire> Can't insert HTML using CSS :P
1423: [21:32:00] <Pyromanik> what
1424: [21:32:00] <simon_w> <span class="h2"></span> .h2:before { content: '<h2>'; } .h2:after { content: '</h2>'; }
1425: [21:32:00] <simon_w> like a haxor!
1426: [21:32:00] <Pyromanik> nah
1427: [21:32:00] <FrozenFire> CSS cannot manipulate the DOM
1428: [21:32:00] <Pyromanik> what
1429: [21:33:00] <FrozenFire> And they won't interpret HTML
1430: [21:33:00] <Pyromanik> you didn't specify you wanted full elements
1431: [21:33:00] <irogue> before: https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-snc6/6328_1126488248687_6086384_n.jpg (blue shirt)
1432: [21:33:00] <FrozenFire> Nor did I say I did
1433: [21:33:00] <irogue> after: https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-prn1/559848_3836107559581_986046776_n.jpg
1434: [21:33:00] <FrozenFire> I was targeting simon_w's joke.
1435: [21:33:00] <FrozenFire> :P
1436: [21:33:00] <FrozenFire> Right.
1437: [21:33:00] <Pyromanik> they're called pseudo elements for a reason
1438: [21:33:00] <Pyromanik> wrong
1439: [21:33:00] <FrozenFire> But they're not DOM elements
1440: [21:33:00] <Pyromanik> yes
1441: [21:33:00] <Pyromanik> since they're not in the dom
1442: [21:33:00] <Pyromanik> true
1443: [21:33:00] <Pyromanik> well
1444: [21:33:00] <Pyromanik> but false
1445: [21:33:00] <irogue> this is one of my mates
1446: [21:34:00] <Pyromanik> FrozenFire, you said you don't want to put elements in your h2, but now you need it to be able to accept elements in the h2. I'm not seeing the worry here.
1447: [21:34:00] <simon_w> morning Squandered
1448: [21:34:00] <Pyromanik> just use before and after! ><
1449: [21:34:00] <simon_w> no, this is just Pyromanik's normal state
1450: [21:34:00] <Squandered> Hello folks
1451: [21:34:00] <Pyromanik> no you did :<
1452: [21:34:00] <FrozenFire> Pyromanik, simon_w has confused you.
1453: [21:34:00] <irogue> ~9mo of no carbz
1454: [21:35:00] <ss23> Was like "holy shit I have forgotten what irogue looks like completely wtf"
1455: [21:35:00] <Pyromanik> no such thing Squandered
1456: [21:35:00] <ss23> Squandered: Thats fine, this channnel is primarily for support :)
1457: [21:35:00] * gelignite has joined #silverstripe
1458: [21:35:00] <Pyromanik> _b simon_w
1459: [21:35:00] <Squandered> Hate to be the rude guy who just jumps in with a question but I've got a couple...
1460: [21:35:00] <ss23> Did not see that line
1461: [21:35:00] <simon_w> Also, relevant: http://www.youtube.com/watch?v=kfVsfOSbJY0
1462: [21:35:00] <ss23> 10:33:54 < irogue> this is one of my mates
1463: [21:35:00] <Pyromanik> just one of those faces.
1464: [21:35:00] <Pyromanik> irogue, he looks kinda familiar
1465: [21:36:00] <Pyromanik> it's IRC.
1466: [21:36:00] <Squandered> I'm trying to get the Newsletter Module up and running but can't seem to make it send emails, nor can I find any sort of log information.//
1467: [21:36:00] <Pyromanik> that's how it works
1468: [21:36:00] * simon_w jumps into Pyromanik
1469: [21:36:00] <Pyromanik> :D
1470: [21:36:00] * Guest14260 quit (Ping timeout: 260 seconds)
1471: [21:36:00] <ss23> There is such a thing as being rude, look at Pyromanik!
1472: [21:36:00] <Pyromanik> maybe, but not for 'jumping in'
1473: [21:37:00] <Squandered> It does,
1474: [21:37:00] <Pyromanik> in which case, you need something to process the message queue
1475: [21:37:00] <Squandered> but messages just sit at "Scheduled"
1476: [21:37:00] <Pyromanik> yes
1477: [21:37:00] <Squandered> and how does one do that?
1478: [21:37:00] <Pyromanik> but if you're not running a message queue app, then nothing will happen.
1479: [21:37:00] <Pyromanik> Squandered, read the docs for newsletter
1480: [21:37:00] <Pyromanik> Squandered, does it not use the message queue module?
1481: [21:37:00] <simon_w> Oh well, back to work
1482: [21:38:00] <Pyromanik> module
1483: [21:38:00] <simon_w> Squandered, crontab usually
1484: [21:38:00] <Squandered> crontab you say, I'll get my google on
1485: [21:38:00] <Squandered> Just needed some keywords to search
1486: [21:38:00] <Pyromanik> https://github.com/silverstripe-labs/silverstripe-newsletter
1487: [21:38:00] <Pyromanik> simon_w, depends if it's using message queue or not
1488: [21:39:00] <Squandered> I've read the do, but it dodn't make a huge amount of sense
1489: [21:39:00] <Squandered> I'm using message queue
1490: [21:39:00] <Squandered> read the docs**
1491: [21:39:00] <Pyromanik> Squandered, then I suggest google apache stomp server
1492: [21:39:00] * PigeonFriend has joined #silverstripe
1493: [21:39:00] <irogue> [10:35] <ss23> Was like "holy shit I have forgotten what irogue looks like completely wtf"
1494: [21:39:00] <irogue> hahaha
1495: [21:39:00] <Pyromanik> Squandered, the other option is to remove the message queue module and just send with cron
1496: [21:39:00] <Squandered> I've setup msmtp and can send mail via that>
1497: [21:39:00] <Squandered> ?
1498: [21:40:00] <Squandered> I did remove the message queue module in the first place, then my emails were sitting at
1499: [21:40:00] <Squandered> Failed
1500: [21:40:00] <Squandered> instead of scheduled
1501: [21:41:00] <Pyromanik> mmm, docs aren't really clear on how to set up the send task are they
1502: [21:41:00] * Guest28336 quit (Quit: Guest28336)
1503: [21:41:00] <Squandered> yeah wasn't very helpful
1504: [21:41:00] <Pyromanik> unfortunate
1505: [21:42:00] <Squandered> So I should take a look at Stomp then yeah?
1506: [21:42:00] * travis-ci has joined #silverstripe
1507: [21:42:00] <travis-ci> [travis-ci] chillu/sapphire#68 (pulls/update-pages-list - 228fba9 : Ingo Schommer): The build failed.
1508: [21:42:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/commit/228fba9cdf11
1509: [21:42:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5511224
1510: [21:42:00] * travis-ci has left #silverstripe
1511: [21:42:00] <ss23> Payment module docs are pratically non existent too >.<
1512: [21:42:00] <Squandered> or remove the que and use cronjobs?
1513: [21:42:00] <Pyromanik> Squandered, probably easiest
1514: [21:42:00] <Pyromanik> ApacheMQ I think it's called
1515: [21:43:00] <Pyromanik> (STOMP is a protocol)
1516: [21:43:00] <Squandered> sweet as, will have a google and report back. Cheers for putting me in the right direction
1517: [21:43:00] * PigeonFriend quit (Ping timeout: 245 seconds)
1518: [21:43:00] <Pyromanik> Squandered, these docs are much more helpful
1519: [21:43:00] <Pyromanik> https://github.com/silverstripe-labs/silverstripe-messagequeue
1520: [21:44:00] <Pyromanik> and process it with cron
1521: [21:44:00] <Squandered> hopefully should be golden after that
1522: [21:44:00] * PigeonFriend has joined #silverstripe
1523: [21:44:00] <Squandered> yeah I made a lot more sense out of that, just couldn't sus how to get the messages to actually send
1524: [21:44:00] <Squandered> will change my _config to use apacheMQ and set that up
1525: [21:44:00] <Pyromanik> Squandered, otherwise remove the messagequeue module and set the newsletter module to use it's own queue
1526: [21:45:00] * travis-ci has joined #silverstripe
1527: [21:45:00] <Pyromanik> cron isn't a plugin
1528: [21:45:00] <catcher> UploadField on front-end. Local box: remove button Dev box: no remove button. Both in dev mode, both webserver-writeable assets folder (recursive).
1529: [21:45:00] <Squandered> I know
1530: [21:45:00] <travis-ci> [travis-ci] chillu/silverstripe-cms#16 (pulls/update-pages-list - 16056f0 : Ingo Schommer): The build failed.
1531: [21:45:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/silverstripe-cms/compare/ec93643f49b5^...16056f0e6f27
1532: [21:45:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/silverstripe-cms/builds/5511269
1533: [21:45:00] * travis-ci has left #silverstripe
1534: [21:45:00] <Squandered> don't suppose SS has a cron plugin like drupal?
1535: [21:45:00] <Pyromanik> what
1536: [21:46:00] <Pyromanik> catcher, probably permissions?
1537: [21:46:00] <catcher> Pyromanik, file perms are the same, code is the same, and logged in as the same user.
1538: [21:47:00] <irogue> oi ss23
1539: [21:48:00] * travis-ci has joined #silverstripe
1540: [21:48:00] <ss23> oi
1541: [21:48:00] <travis-ci> [travis-ci] chillu/sapphire#69 (pulls/update-pages-list - d2a4af9 : Ingo Schommer): The build is still failing.
1542: [21:48:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/228fba9cdf11...d2a4af974ef5
1543: [21:48:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5511378
1544: [21:48:00] * travis-ci has left #silverstripe
1545: [21:48:00] <Pyromanik> oi oi oi
1546: [21:49:00] <Pyromanik> Squandered, not that I know of.
1547: [21:49:00] <Pyromanik> could be something out of SSAU though
1548: [21:49:00] * joelpitt_ quit (Remote host closed the connection)
1549: [21:49:00] <Squandered> its alright, I'll figure it out
1550: [21:49:00] <Pyromanik> catcher, something to do with controller?
1551: [21:49:00] <Pyromanik> (not being LeftAndMain)'
1552: [21:49:00] <ss23> irogue: Was there content with that?
1553: [21:50:00] <Pyromanik> Squandered, if you're using some kind of panel software they usually have a handy interface for setting up cron jobs
1554: [21:50:00] <Squandered> I'm not =(
1555: [21:50:00] * joelpittet has joined #silverstripe
1556: [21:50:00] <catcher> Ooh, framework 3.0.5 vs 3.0.3
1557: [21:52:00] * travis-ci has joined #silverstripe
1558: [21:52:00] <travis-ci> [travis-ci] chillu/sapphire#70 (pulls/update-pages-list - fe27f4c : Ingo Schommer): The build is still failing.
1559: [21:52:00] <travis-ci> [travis-ci] Change view : https://github.com/chillu/sapphire/compare/d2a4af974ef5...fe27f4cb040e
1560: [21:52:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/chillu/sapphire/builds/5511472
1561: [21:52:00] * travis-ci has left #silverstripe
1562: [21:54:00] * PigeonFriend quit (Ping timeout: 245 seconds)
1563: [21:54:00] <irogue> ss23: sorry, got a phone call
1564: [21:54:00] <ss23> lol
1565: [21:54:00] <ss23> np np
1566: [21:55:00] <irogue> you come
1567: [21:55:00] <simon_w> But lady friend is expecting to distract me that weekend!
1568: [21:55:00] <irogue> kthx
1569: [21:55:00] * PigeonFriend has joined #silverstripe
1570: [21:55:00] <irogue> bday lan at peachgrove
1571: [21:55:00] <irogue> 26-28 april
1572: [21:55:00] <Pyromanik> Squandered, in that case, man crontab
1573: [21:56:00] <Pyromanik> gog.com
1574: [21:56:00] <Pyromanik> irogue, define peachgrove
1575: [21:56:00] <ss23> irogue: k, not doing anything plannted yet, so k can come
1576: [21:56:00] <ss23> And I have a PC that can play (some) games now!
1577: [21:56:00] <irogue> ss23: v good
1578: [21:57:00] <irogue> we mostly play wc3 and flatout2 anyway :P
1579: [21:58:00] <irogue> ss23: very yes
1580: [21:58:00] <ss23> :D
1581: [21:58:00] <Pyromanik> not aoeo?
1582: [21:58:00] <ss23> yep yep :D
1583: [21:58:00] <ss23> irogue: And AoE2 HD, rite?
1584: [21:58:00] <ss23> irogue: Wanna get a 4 pack?
1585: [21:58:00] <Pyromanik> your mum's a 4 pack
1586: [21:59:00] <irogue> i'm sure some of the other garagelan crew would be keen too
1587: [21:59:00] <ss23> irogue: sweet, just gimmie bank account number to xfer money to when you sort it out o/
1588: [21:59:00] * travis-ci has joined #silverstripe
1589: [21:59:00] <travis-ci> [travis-ci] silverstripe/sapphire#1640 (3.1 - 746904c : Ingo Schommer): The build is still failing.
1590: [21:59:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/e0be520fef68...746904ca7d2e
1591: [21:59:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5511563
1592: [21:59:00] * travis-ci has left #silverstripe
1593: [22:03:00] <ss23> So... when is someone going to fix up poor travis?
1594: [22:03:00] <Pyromanik> kick 'r in the guts trev!
1595: [22:03:00] <Pyromanik> ol trav
1596: [22:06:00] <Pyromanik> apparently rss providers over the world are struggling with the influx of people trying to find replacements
1597: [22:06:00] <priithansen> what the hell google reader is going to be but down. What am I going to do with all this free time
1598: [22:06:00] <Pyromanik> yes
1599: [22:06:00] <Pyromanik> lots of outrage over that
1600: [22:07:00] <priithansen> Well atleast i'm not completely out of the loop was beginning to think nobody even uses rss anymore.
1601: [22:09:00] <spronk> has anyone here had any experience with shopify? specifically whether or not you can make it order only i.e. no ecommerce payments?
1602: [22:10:00] <catcher> 3.0.5 + UploadField = great success
1603: [22:12:00] * zfmf has joined #silverstripe
1604: [22:19:00] * liam_ has joined #silverstripe
1605: [22:20:00] * liam_ is now known as Guest96640
1606: [22:23:00] * PigeonFriend quit (Ping timeout: 264 seconds)
1607: [22:33:00] * SMaction has joined #silverstripe
1608: [22:34:00] * popeshoe quit (Quit: This computer has gone to sleep)
1609: [22:34:00] * Pigeon has joined #silverstripe
1610: [22:34:00] * Pigeon is now known as Guest71449
1611: [22:38:00] <Squandered> Not getting anywhere trying to get these newsletters to send
1612: [22:38:00] <Squandered> Have removed the messageque mod, and from what I've read in the docs it should just send?
1613: [22:39:00] <Squandered> How do I pull out more error reporting on this?
1614: [22:39:00] <SMaction> I am having trouble uploading a file the upload function in the cms seems to work until the end of the upload a http error message appears in the tab. In the Apache access log it shows a 500 error. However in the expected upload directory the file is there. Any help? what info should I provide you?
1615: [22:42:00] <FrozenFire> Squandered, Use an SMTP server. Don't use sendmail / local postfix.
1616: [22:42:00] <FrozenFire> https://github.com/xeraa/silverstripe-smtp
1617: [22:42:00] <FrozenFire> Sending emails from a web server means they'll likely get spammed.
1618: [22:43:00] <ss23> irogue: do this diet instead http://www.vice.com/read/rob-rhinehart-no-longer-requires-food
1619: [22:43:00] <FrozenFire> Squandered, It's not so much about the MTA as it is about the route that the email takes
1620: [22:43:00] <Squandered> I've got msmtp running and working on my server
1621: [22:43:00] <FrozenFire> Especially if that web server is not the MX record for the domain
1622: [22:43:00] <simon_w> SMaction, can you get the actual error message?
1623: [22:44:00] <Squandered> I'm not so much worried about that yet, I can't even get mail to go out let alone have it marked as spam...
1624: [22:44:00] <SMaction> simon_w, loop.mp3 (174.12KB) - HTTP Error in the cms tab and [14/Mar/2013:10:56:47 -0700] "POST /admin/EditForm/field/AudioFile/upload HTTP/1.1" 500 4980 "-" "Shockwave Flash" in the apache access log
1625: [22:44:00] <Squandered> Hmm
1626: [22:44:00] <FrozenFire> Many mail servers will check the routing headers when they receive mail and check some of the nodes in the path to determine whether or not it's spam.
1627: [22:44:00] <FrozenFire> Anything sent from a webserver has about a 60% chance of being spammed out of the gate by all major mail service providers.
1628: [22:45:00] <Squandered> Because sending it to myself I get no mail (in spam or not) and the status is reporting "Failed"
1629: [22:45:00] <FrozenFire> Squandered, The question is how you're determining that it's "not getting out"
1630: [22:45:00] <simon_w> SMaction, that's not the error. Check the error log
1631: [22:45:00] <simon_w> (also, I'm guessing Uploadify is the problem)
1632: [22:46:00] * tankr has joined #silverstripe
1633: [22:46:00] <Squandered> yet sending an email off my server using somethin like echo -e "Subject: Test Mail\r\n\r\nThis is a test mail" |msmtp --debug --from=default -t username@gmail.com
1634: [22:46:00] <Squandered> works fine
1635: [22:46:00] <FrozenFire> Squandered, Welp, maybe your MTA is broken. :P
1636: [22:46:00] <FrozenFire> Or maybe you're trying to set the From address to something that they MTA doesn't like
1637: [22:46:00] <SMaction> simon_w nothing appears in the apache error log
1638: [22:46:00] <FrozenFire> I've had that.
1639: [22:47:00] <FrozenFire> Especially if they're important.
1640: [22:47:00] <Squandered> All I've done is installed the Newsletter Module and hit send lol
1641: [22:47:00] <FrozenFire> But really, I generally suggest strongly that you use a verified SMTP server for sending any sort of automatic emails.
1642: [22:47:00] <Squandered> Yeah can fiddle with that once I get something that works
1643: [22:50:00] <spronk> c
1644: [22:50:00] <irogue> but way too many $$$
1645: [22:50:00] <spronk> mm
1646: [22:50:00] <spronk> good SS freelaners in auckland = ?
1647: [22:50:00] <spronk> :(
1648: [22:50:00] <irogue> spronk: i'd also like to know :-P
1649: [22:50:00] <irogue> we got a web dev company to do some work
1650: [22:51:00] <Pyromanik> newsletter module sets up a message queue of emails to send
1651: [22:51:00] <spronk> relative of mine has landed a job with a reasonably large nz company, with an awful site and not much budget to improve it
1652: [22:51:00] * spronk le sighs
1653: [22:51:00] <Pyromanik> FrozenFire, no, you're misunderstanding the problem
1654: [22:51:00] <spronk> get an email asking me "what software do i need to make a new website?"
1655: [22:52:00] <Pyromanik> Squandered is having trouble setting up a message queue processor to read and complete said queue.
1656: [22:52:00] <FrozenFire> Indeed. Big companies have the worst budgets.
1657: [22:52:00] <Pyromanik> LIES
1658: [22:52:00] <Pyromanik> spronk, typical. Large company, no budget.
1659: [22:52:00] <Squandered> I've just removed it, trying to get the basic function working and then will build onto that
1660: [22:52:00] <Squandered> ^ only if the message queue is installed, in this case its not so it should just send..
1661: [22:53:00] <Squandered> "Hi" ;)
1662: [22:53:00] <Pyromanik> because they're busy squandering it all on CEO golf.
1663: [22:53:00] <Squandered> but on saying that I think I'm getting somewhere the the above smtp mod
1664: [22:53:00] <FrozenFire> Small companies are too willing to squander their money on shit code.
1665: [22:53:00] <Pyromanik> gidday
1666: [22:54:00] <spronk> mm
1667: [22:54:00] <spronk> i dno what it is about large companies
1668: [22:54:00] <Pyromanik> I think spronk knows how to set up a message queue
1669: [22:54:00] <Pyromanik> I've not used message queues before Squandered, nor the newsletter module (especially since 3.0), I can't really help you sorry.
1670: [22:54:00] <Squandered> yeah its alright, I'm getting there I think
1671: [22:55:00] <Pyromanik> but I don't think he's used the newsletter module.
1672: [22:55:00] <Pyromanik> "we have $3000 for a website. We'
1673: [22:55:00] <Pyromanik> spronk, mongering tactics.
1674: [22:55:00] <spronk> yeah, but I thik they just think they can employ a "marketing person" who can ... build them a website
1675: [22:55:00] <Pyromanik> re a huge company, you want our business"
1676: [22:55:00] <Pyromanik> so then companies got "OH YEAH BRO PLZ PICK US"
1677: [22:55:00] <spronk> (in this case anyway)
1678: [22:55:00] <Pyromanik> and get reamed
1679: [22:55:00] <Pyromanik> when the actual budget allows for 10K+
1680: [22:56:00] <Pyromanik> gosh.
1681: [22:56:00] <Pyromanik> spronk, websites are easy, the computer does all the work.
1682: [22:56:00] <spronk> mm
1683: [22:56:00] <Pyromanik> which is what it ends up costing, only the poor folk charged 3k, so are bung'd
1684: [22:58:00] <Squandered> after moving to the ss-smtp mod I'm getting "SMTP Error: Could not authenticate." which is a good sign!
1685: [22:58:00] <Pyromanik> dat moment when you realise your host has been taken offline and replace with someone elses on the same IP
1686: [22:58:00] <Squandered> means its trying to actually send something....
1687: [22:59:00] <Squandered> do I need to flush everytime I make a change to _config.php?
1688: [22:59:00] <Pyromanik> :)
1689: [23:00:00] <Pyromanik> shouldn't
1690: [23:00:00] <Pyromanik> nope
1691: [23:00:00] <Squandered> ha it worked!!
1692: [23:00:00] <Pyromanik> every time you change class structure you should though
1693: [23:01:00] <Squandered> I'm slowly warming to SS... its a harsh and cold place when you don't know much php
1694: [23:01:00] <Squandered> good to know, cheers dude
1695: [23:01:00] <Pyromanik> (move a class file, rename a class, add a class, etc. Not altering it's internals, that's fine doesn't need dev/build)
1696: [23:01:00] <Squandered> FrozenFire thank you very much for that smtp plugin
1697: [23:01:00] <Pyromanik> Squandered, that's great news! do you think you could do a blog post or commit back up to the docs for the newsletter module or something about how you managed it?
1698: [23:02:00] <Pyromanik> you're
1699: [23:02:00] <Pyromanik> there's inevitably something that goes wrong or needs configuration or patching that requires php knowledge
1700: [23:02:00] <Squandered> I come from a java background, thrown into a php position with ss... fun times ahead of me, and you guys since your in here... _b
1701: [23:02:00] <Pyromanik> Squandered, most places are.
1702: [23:02:00] <Squandered> yup will do
1703: [23:02:00] <Pyromanik> welcome.
1704: [23:03:00] <Squandered> thats why I came here,
1705: [23:03:00] <Pyromanik> this is where the action is!
1706: [23:03:00] <Pyromanik> php classes work similar to java, single inheirtance, interfaces and the like
1707: [23:03:00] <Squandered> when working with larger "popular" cms' there is always a million other people who have had the problem. Finding it a bit hard finding current up to date info on bugs and errors with ss
1708: [23:03:00] <Pyromanik> Squandered, yeah, just hang around the community.
1709: [23:03:00] <Squandered> yeah I'm finding that out pretty quick
1710: [23:04:00] <Squandered> Yeah, Wellington
1711: [23:04:00] <Pyromanik> Where abouts are you based?
1712: [23:04:00] <Pyromanik> NZ?
1713: [23:04:00] <Pyromanik> cool
1714: [23:04:00] <Pyromanik> irogue, ooh baby
1715: [23:04:00] <Squandered> yeah I plan too
1716: [23:04:00] <irogue> Pyromanik: i'll give you action in a minute
1717: [23:04:00] <Pyromanik> go along to the next meetup
1718: [23:05:00] * joelpittet quit (Remote host closed the connection)
1719: [23:08:00] <Pyromanik> anyone wanna let me know why chrome is so shit?
1720: [23:08:00] <Pyromanik> it's basically the new IE
1721: [23:09:00] <Pyromanik> map does not apply.
1722: [23:09:00] <spronk> haha
1723: [23:09:00] * Pyromanik fullmad
1724: [23:09:00] <Pyromanik> WTF
1725: [23:09:00] <Pyromanik> cannot click.
1726: [23:09:00] <Pyromanik> with a map
1727: [23:09:00] <Pyromanik> I have an img
1728: [23:09:00] <simon_w> Because it's a memory hog that includes unstable versions of WebKit
1729: [23:09:00] <spronk> chrome is pretty av
1730: [23:09:00] <spronk> :p
1731: [23:10:00] <spronk> fucking webkit
1732: [23:10:00] * Pyromanik types into chrome's address bar "chrome image m" auto complete first result "ap not working"
1733: [23:11:00] <spronk> lul
1734: [23:17:00] <FrozenFire> Too many
1735: [23:17:00] <Pyromanik> FFFFFFFFFFFFFFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
1736: [23:17:00] <Pyromanik> omg
1737: [23:17:00] <Pyromanik> just
1738: [23:17:00] <Pyromanik> map="anchor"
1739: [23:18:00] <FrozenFire> usemap="#anchor"
1740: [23:18:00] <Pyromanik> must be a NAME
1741: [23:18:00] <Pyromanik> not an ID
1742: [23:18:00] <Pyromanik> WTF!?
1743: [23:18:00] <FrozenFire> But yeah, the map must have a name attribute
1744: [23:18:00] <Pyromanik> just any name?
1745: [23:18:00] <FrozenFire> http://afs.clients.mediadevils.com/connect/
1746: [23:18:00] <FrozenFire> I just made one there.
1747: [23:19:00] <Pyromanik> yeah
1748: [23:19:00] <FrozenFire> The country is a map
1749: [23:19:00] <Pyromanik> it's map="#name"
1750: [23:19:00] <FrozenFire> <map name="connectmap">
1751: [23:19:00] <FrozenFire> <img usemap="#connectmap">
1752: [23:19:00] <Pyromanik> yeah I'm talking about the img tag
1753: [23:19:00] <Pyromanik> yeah
1754: [23:19:00] <Pyromanik> so ti's not map="#id"
1755: [23:20:00] * joelpittet has joined #silverstripe
1756: [23:20:00] <Pyromanik> pretty sure it should be id.
1757: [23:20:00] <FrozenFire> Nope
1758: [23:20:00] <Pyromanik> aren't names not unique?
1759: [23:20:00] <FrozenFire> <input name="something"> <label for="something">
1760: [23:20:00] <FrozenFire> But it's the same with <label> and <input>
1761: [23:20:00] <FrozenFire> Not sure
1762: [23:21:00] <FrozenFire> :P
1763: [23:21:00] <Pyromanik> though now you've made me unsure too
1764: [23:21:00] <Pyromanik> FrozenFire, this is true. But we've got standards n'shit now
1765: [23:21:00] <simon_w> labels use ID
1766: [23:21:00] <FrozenFire> I think?
1767: [23:21:00] <FrozenFire> Or maybe I'm wrong in that
1768: [23:21:00] * gelignite quit (Quit: http://bit.ly/nkczDT)
1769: [23:21:00] <FrozenFire> Image maps are old school before anyone gave much of a shit about semantics and whatnot
1770: [23:21:00] <Pyromanik> yeah, I think it's ID for label
1771: [23:22:00] <Pyromanik> D':
1772: [23:22:00] <Pyromanik> dammit
1773: [23:22:00] <FrozenFire> :P
1774: [23:22:00] <Pyromanik> yeh, I'm fairly sure the difference between name and id is that ID must be unique, while name does not have to be.
1775: [23:22:00] <FrozenFire> Regardless, I know that *my* map works.
1776: [23:22:00] <simon_w> but maps have always been names :p
1777: [23:22:00] <Pyromanik> :<
1778: [23:23:00] <Squandered> Pyromanik thats right, ids must be unique where a name doesn't. Is the only difference
1779: [23:23:00] <Pyromanik> now I'm mad at every other browser instead
1780: [23:23:00] <Pyromanik> for supporting ID on map=#what
1781: [23:23:00] <Pyromanik> :<
1782: [23:24:00] <Pyromanik> Squandered, thought so. So that basically makes no sense, unless it's by design that you could add multiple maps to an img
1783: [23:28:00] <FrozenFire> No u
1784: [23:28:00] <Pyromanik> But I don't even know if that's possible.
1785: [23:28:00] <Pyromanik> FrozenFire, test it for me xD
1786: [23:28:00] <Pyromanik> you and your working image map :<
1787: [23:28:00] <FrozenFire> http://www.image-maps.com/
1788: [23:28:00] <FrozenFire> This is actually a useful tool
1789: [23:29:00] <FrozenFire> Throws a bunch of cruft into the image map, but whatevs
1790: [23:33:00] * eikonos quit (Quit: Leaving.)
1791: [23:37:00] * SMaction has left #silverstripe
1792: [23:38:00] * catcher quit (Quit: Leaving)
1793: [23:39:00] * eikonos has joined #silverstripe
1794: [23:39:00] * eikonos has joined #silverstripe
1795: [23:39:00] * eikonos quit (Changing host)
1796: [23:42:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/746904ca7d2e...8ece47ad55ed
1797: [23:42:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5513979
1798: [23:42:00] * travis-ci has left #silverstripe
1799: [23:42:00] <travis-ci> [travis-ci] silverstripe/sapphire#1641 (3.1 - 8ece47a : Ingo Schommer): The build is still failing.
1800: [23:42:00] * travis-ci has joined #silverstripe
1801: [23:43:00] <simon_w> More meat. Meat good.
1802: [23:46:00] <FrozenFire> Tony Ganios would be proud
1803: [23:47:00] * zfmf has left #silverstripe
1804: [23:49:00] * spronk quit (Ping timeout: 245 seconds)
1805: [23:50:00] * spronk2_ quit (Ping timeout: 264 seconds)
1806: [23:51:00] * Guest96640 quit (Quit: Guest96640)
1807: [23:51:00] <Pyromanik> who
1808: [23:52:00] <Pyromanik> oh one of the guys from porkys
1809: [23:52:00] <FrozenFire> Meat
1810: [23:56:00] * spronk2 has joined #silverstripe

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