#silverstripe IRC Log

IRC log for 25 February 2013

All timestamps are in UTC.

1: [00:01:00] <Marvanni> A LeftAndMainExtension does not work?
2: [00:02:00] <Colin[pi]> could probably do it that way too
3: [00:06:00] <Colin[pi]> no, because it needs to be applied whenever the CMS is accessed
4: [00:06:00] <Colin[pi]> i.e. not just when editing the object in question :)
5: [00:06:00] <Pyromanik> Colin[pi]: in getCMSFields
6: [00:08:00] <Marvanni> Then leftAndMainExtenion is the way to go
7: [00:10:00] <Colin[pi]> thanks I'll check it out
8: [00:12:00] <Marvanni> Does lang.yml translations always require a NameSpace?
9: [00:14:00] <Marvanni> hm.. yes it does :)
10: [00:15:00] <Pyromanik> Colin[pi]: yep, what Marvanni said.
11: [00:16:00] <Pyromanik> (ie templatedJavascript())
12: [00:16:00] <Pyromanik> or use a decorator on leftandmain or something like that
13: [00:16:00] <Pyromanik> if you need to call Requirements:: directly
14: [00:16:00] <Pyromanik> for more flexibility
15: [00:18:00] * DigNZ quit (Quit: DigNZ)
16: [00:19:00] <Colin[pi]> well I got it working by overriding CMSTreeClasses() but it's a bit hacky
17: [00:21:00] <Pyromanik> Colin[pi]: if it works it works. If it's flexible it's not that bad.
18: [00:23:00] <ccburns> A git question from a complete noob??? I have made changes and my local version of the code and committed it to the repo (using the Github for Mac client) and then I logged into my server and tried to update the code [I was following the commands of the other developer] But I am now a little stuck??? The commands I used are - "git fetch origin" and then "git rebase origin/master" [I don't know what the second command does]
19: [00:24:00] <ccburns> Additionally, your index contains uncommitted changes.
20: [00:24:00] <ccburns> Cannot rebase: You have unstaged changes.
21: [00:24:00] <ccburns> When I run the "git rebase origin/master" I get the following message
22: [00:24:00] <ccburns> Please commit or stash them.
23: [00:28:00] <Colin[pi]> pyromanik: this is what the JS is doing, it works.. might be going about it balls backwards though http://i.imgur.com/m5kcObH.png
24: [00:28:00] <Colin[pi]> (note 2.4 :P)
25: [00:28:00] <spronk> that's a cute looking skin
26: [00:28:00] <spronk> what is that?
27: [00:28:00] <Colin[pi]> rolled my own for my business :)
28: [00:28:00] <spronk> oo
29: [00:30:00] <Colin[pi]> this is my base install cms, just working on the core
30: [00:30:00] <Pyromanik> naughty naughty!
31: [00:30:00] <Pyromanik> ccburns: probably through FTP or something
32: [00:30:00] <Pyromanik> ccburns: someone has updated files on your server
33: [00:30:00] <Colin[pi]> (hence why it says Your Site Name)
34: [00:30:00] <Pyromanik> ccburns: you need to commit
35: [00:31:00] <ccburns> No the files that are on the server were the ones that I just committed to github from my local machine
36: [00:31:00] <Pyromanik> pretty sure
37: [00:31:00] <ccburns> So should I try git pull now?
38: [00:31:00] <Pyromanik> ccburns: you don't want rebase
39: [00:31:00] <Pyromanik> done
40: [00:31:00] <Pyromanik> and that's it
41: [00:31:00] <Pyromanik> just do a git pull
42: [00:31:00] <Pyromanik> ccburns: also, the commands you were told to use were wrong
43: [00:31:00] <ccburns> BTW this is totally my fault, I just tried to copy someone without knowing anything ;)
44: [00:31:00] <Pyromanik> but yeah, give it a go
45: [00:31:00] <Pyromanik> you could, but it might tell you that you're up to date
46: [00:31:00] <Marvanni> Colin You know you can use static $icon to add custom icons to page classes ?
47: [00:32:00] <Pyromanik> git checkout HEAD
48: [00:32:00] <Pyromanik> try this
49: [00:32:00] <Pyromanik> ccburns: because they are.
50: [00:32:00] <ccburns> Pyromanik: say that the files are up to date
51: [00:32:00] <Colin[pi]> so you can change the icon for all images, but not individually
52: [00:32:00] <Pyromanik> ccburns: it's ok, that's what version control is here to safeguard against :P
53: [00:32:00] <Colin[pi]> Marvanni: static icon will only work one per class, afaik?
54: [00:33:00] <Marvanni> hm, you could set the icon on the constructor?
55: [00:33:00] <Pyromanik> though I could be wrong.
56: [00:33:00] <Pyromanik> Marvanni: I think the icon is ONLY static, ie does not have an instance getter
57: [00:33:00] <Pyromanik> so you've done half a pull, just not the bit that makes it affect your working tree
58: [00:33:00] <Pyromanik> pull is basically a shortcut for fetch and some other command, might be checkout, or merge, I forget
59: [00:34:00] <Pyromanik> git pull is just git fetch && git merge
60: [00:34:00] <Colin[pi]> Marvanni: yep it's static, hmm constructor could be a good way, but rememeber 2.4 appends -file.gif
61: [00:34:00] <Marvanni> or $this->stat()
62: [00:34:00] <Marvanni> self::$icon = '';
63: [00:34:00] <Colin[pi]> ehh I could hack that out, I've hacked enough of the core already lol
64: [00:34:00] <Pyromanik> Colin[pi]: that's quite neat
65: [00:34:00] <Marvanni> ah nevermind.. you might be right
66: [00:34:00] <Pyromanik> ccburns: this!
67: [00:34:00] <Pyromanik> git merge FETCH_HEAD
68: [00:34:00] <ccburns> Pyromanik: tried that and it showed the modified files updating but still not affecting the website :(
69: [00:35:00] <Pyromanik> ccburns: ^
70: [00:35:00] <Pyromanik> Feb 15, 2013 ? In its default mode, git pull is shorthand for git fetch followed by git merge FETCH_HEAD. More precisely, git pull runs git fetch with the given ...
71: [00:35:00] <Pyromanik> www.kernel.org/pub/software/scm/git/docs/git-pull.html
72: [00:35:00] <Pyromanik> git-pull(1)
73: [00:35:00] <Pyromanik> http://www.google.co.nz/search?q=git+pull+is+shorthand+for
74: [00:35:00] <Colin[pi]> cheers pyromanik, I put a looot of work into it
75: [00:36:00] <Pyromanik> ccburns: solve the issue?
76: [00:36:00] <ccburns> Pyromanik: nope - git status still shows a bunch of uncommitted files
77: [00:37:00] <Pyromanik> hmm
78: [00:37:00] <Pyromanik> might need a rebase then :<
79: [00:37:00] <Pyromanik> dunno
80: [00:37:00] <Pyromanik> I'm no git master
81: [00:37:00] <Pyromanik> but try git commit -am "merge of fetch"
82: [00:37:00] <Pyromanik> I really only use the basics of git
83: [00:37:00] <Pyromanik> perhaps
84: [00:37:00] * Pyromanik shrugs
85: [00:39:00] * SphereSilver has joined #silverstripe
86: [00:39:00] <ccburns> let me give it a go
87: [00:40:00] <Pyromanik> It's the blind leading the blind in here
88: [00:40:00] <Pyromanik> help ccburns with merging a git fetch
89: [00:40:00] <Pyromanik> simon!
90: [00:40:00] <SphereSilver> ok, explain the problem slowly :)
91: [00:40:00] <SphereSilver> woah!
92: [00:40:00] <Pyromanik> SphereSilver: ^
93: [00:40:00] <SphereSilver> It's 1:40 AM and I'm needed already!
94: [00:40:00] <SphereSilver> :D
95: [00:40:00] <Pyromanik> happy you
96: [00:41:00] <SphereSilver> but also, pull, that takes all the diffs to local
97: [00:41:00] <Pyromanik> but fetch already done
98: [00:41:00] <Pyromanik> ccburns has done a git fetch
99: [00:41:00] <Pyromanik> doesn't know how to update working tree
100: [00:41:00] <SphereSilver> you need to do a fetch. That's good
101: [00:41:00] <Pyromanik> tried a rebase, failed.
102: [00:41:00] <Pyromanik> yep
103: [00:42:00] <SphereSilver> Please don't say you're working with NetBeans?
104: [00:42:00] <Pyromanik> git merge FETCH_HEAD not working apparently
105: [00:42:00] <Pyromanik> complaining about changed files
106: [00:42:00] <Colin[pi]> Marvanni, yeah nah that's going to work, because the CMS generates JS based on class names (i.e. GalleryImage) - so I can override self::$icon, but they're all the same :\
107: [00:42:00] <SphereSilver> you need to pull before the actual changes are also available local
108: [00:42:00] <Pyromanik> SphereSilver: but he has
109: [00:42:00] <Pyromanik> made a fetch
110: [00:42:00] <Pyromanik> already
111: [00:42:00] <Pyromanik> changes are there, just not merged
112: [00:42:00] <Marvanni> yes youre probably right
113: [00:43:00] <Pyromanik> ccburns: try doing a git merge FETCH_HEAD now
114: [00:43:00] <SphereSilver> (in simple terms)
115: [00:43:00] <Colin[pi]> I tested it, doesn't work :)
116: [00:43:00] <SphereSilver> fetch != pull
117: [00:43:00] <SphereSilver> fetch only takes the heading, not the actual data
118: [00:43:00] <ccburns> Pyromanik: run that command and it has committed but now it is saying "Your branch is ahead of 'origin/master' by 1 commit."
119: [00:44:00] <Pyromanik> http://www.kernel.org/pub/software/scm/git/docs/git-fetch.html
120: [00:44:00] <Pyromanik> but ccburns is new to git
121: [00:44:00] <Pyromanik> SphereSilver: I know
122: [00:44:00] <Pyromanik> wasn't aware
123: [00:44:00] <Pyromanik> SphereSilver: actually, it's half a pull
124: [00:44:00] <Pyromanik> it fetches all the information, stores it in the ref info.
125: [00:44:00] <SphereSilver> Fetch head, then commit, then push
126: [00:44:00] <SphereSilver> Pyromanik that's why a pull is better then a fetch ;)
127: [00:45:00] <Pyromanik> and I don't not do pulls, so am unsure of how to fix it.
128: [00:46:00] <Pyromanik> SphereSilver: ^
129: [00:46:00] <SphereSilver> a head is ok, it should never do "damage", but please explain the steps taken before this error
130: [00:46:00] <Pyromanik> unsure, ask ccburns
131: [00:46:00] <SphereSilver> Have you changed something on another machine, or on the git-server itself?
132: [00:46:00] <SphereSilver> (i am ;) )
133: [00:46:00] <ccburns> Just on the phone to client
134: [00:46:00] * aznain has joined #silverstripe
135: [00:46:00] <Pyromanik> http://logs.simon.geek.nz/index.php?date=2013-02-25#13_23
136: [00:48:00] <aznain> yes
137: [00:48:00] <SphereSilver> Pull is indeed "head + checkout" if you think in SVN methods ;)
138: [00:48:00] <aznain> If i login as admin, then how can i edit profile for other member
139: [00:48:00] <SphereSilver> (reading ;) )
140: [00:48:00] <aznain> from front end
141: [00:48:00] <aznain> I am using 2.4
142: [00:48:00] <Pyromanik> aznain: umm
143: [00:48:00] <Pyromanik> using memberprofiles?
144: [00:49:00] <SphereSilver> ccburns: your problem is, you have remote changes and are pushing local changes that are equal or conflicting.
145: [00:49:00] <Pyromanik> hack memberprofiles
146: [00:49:00] <Pyromanik> my best guess
147: [00:49:00] <aznain> http://local.oldgold.com/member-profile/show list all user in view only form
148: [00:50:00] <ccburns> SphereSilver: okay thanks - just catching up now - off phone
149: [00:50:00] <aznain> I want to edit as well
150: [00:50:00] <ss23> lutefisk for the lutefisk god
151: [00:50:00] <SphereSilver> After your header, the problam is only made worse. Pull the remote, overwrite with your local version, then try gitGUI
152: [00:50:00] <SphereSilver> to commit and posh
153: [00:50:00] <aznain> can we directly access member profile by giving url ? if yes then what is the form
154: [00:50:00] <SphereSilver> (This is the newbie answer btw ;) )
155: [00:51:00] <SphereSilver> What you need to do, pretty much, is get the current version from github. Then, overwrite everything but the .git directory
156: [00:51:00] <SphereSilver> that will stage every change there is.
157: [00:52:00] <SphereSilver> From what I understand, you made remote changes and pushed them. Then did the same changes local, without getting the remote version. That correct?
158: [00:52:00] <SphereSilver> Then committing and pushing is the shortcut way out of the conflict.
159: [00:52:00] <Pyromanik> aznain: you need to enable profile editing in the CMS
160: [00:53:00] <Pyromanik> and ensure that the group your users are a part of have the ability to edit their profiles.
161: [00:53:00] <aznain> can we add field in search in backend for members ?
162: [00:53:00] <aznain> but in backend pagination is buggy
163: [00:53:00] <Pyromanik> (from frontend, they can use the CMS).
164: [00:53:00] <Pyromanik> but it still won't allow an admin to edit
165: [00:53:00] * nimeso has joined #silverstripe
166: [00:54:00] <Pyromanik> 2.4?
167: [00:54:00] <Pyromanik> aznain: the search is above the tablefield
168: [00:54:00] <aznain> how to add custom field to be included in search
169: [00:54:00] <nimeso> azanain... http://doc.silverstripe.org/framework/en/3.1/reference/modeladmin
170: [00:54:00] <SphereSilver> You can in both....
171: [00:54:00] <aznain> 2.4
172: [00:54:00] <Pyromanik> aznain: 3.0?
173: [00:55:00] <Pyromanik> aznain: can't.
174: [00:55:00] <SphereSilver> aznain: security -> enter searchterm -> hit huge-ass filter-button
175: [00:55:00] <aznain> u mean if i want to add registration number, I cant add in member search at back end ( security panel) ?
176: [00:55:00] <Pyromanik> nimeso: not ideal.
177: [00:55:00] <Pyromanik> easily
178: [00:55:00] <aznain> nimeso: i am using 2.4
179: [00:55:00] <nimeso> pooz..
180: [00:56:00] <aznain> SphereSilver: i did nothing happens
181: [00:56:00] <SphereSilver> eh?
182: [00:56:00] <SphereSilver> yes you can, I guess, but your question is a bit illogical
183: [00:56:00] <Pyromanik> SphereSilver: not native English
184: [00:56:00] <SphereSilver> ah, that explains, I'm not either, but I'm having trouble making sense of what is being asked.
185: [00:57:00] <Pyromanik> on member
186: [00:57:00] <Pyromanik> yeh, but you're quite fluent.
187: [00:57:00] <nimeso> Yes you can add your own custom search fields in admin... use public static $searchable_fields = array(
188: [00:57:00] <nimeso> eg
189: [00:57:00] <Pyromanik> nimeso: from a decorator
190: [00:57:00] <nimeso> ohhh... will that not work... my bad
191: [00:57:00] * howardgrigg quit (Remote host closed the connection)
192: [00:57:00] <Pyromanik> in 2.4
193: [01:00:00] <SphereSilver> I'm having a little bit of a lot of trouble understanding what you want nimeso , but you can't import members with a single click. That's for security reasons
194: [01:01:00] <aznain> Pyromanik: Ok let me try to add search_field in decorator to check whether it is working or not ...
195: [01:03:00] <Pyromanik> ie. admin/security
196: [01:03:00] <Pyromanik> SphereSilver: he doesn't want import, he wants to filter them in the admin area because the pagination breaks the filter
197: [01:03:00] <Pyromanik> goes to a group
198: [01:04:00] <Pyromanik> or something like that
199: [01:04:00] <Pyromanik> not quite entirely sure myself
200: [01:04:00] <SphereSilver> owwww shit, I know that bug.
201: [01:04:00] <ss23> Head, shoulders knees and toes!
202: [01:04:00] <SphereSilver> It's the URL (the actual URL)
203: [01:04:00] <Pyromanik> SphereSilver: in 2.4
204: [01:04:00] <SphereSilver> that doesn't include the wished parameters.
205: [01:04:00] <Pyromanik> brings up second page of ALL members, not just from that group
206: [01:04:00] <Pyromanik> clicks next page
207: [01:05:00] <SphereSilver> Not at hands :(
208: [01:05:00] <Pyromanik> :(
209: [01:05:00] <Pyromanik> haxx0r ur work stores and grabbles it!
210: [01:05:00] <ss23> bleeding edge
211: [01:05:00] <Pyromanik> hard
212: [01:05:00] <SphereSilver> I have a possible patch at work, but I don't know what I changed etc. and since it's 2:05 AM, I'm not really into hacking into my own server right now :P
213: [01:05:00] <SphereSilver> yes, 2.4
214: [01:05:00] <Pyromanik> SphereSilver: do you have a patch aznain could apply so he doesn't have to do stuff the hard way?
215: [01:06:00] <SphereSilver> I should've submitted the patch.
216: [01:06:00] <SphereSilver> But the problem lies within the way 2.4.x handles searches. It's only on page 1, when you want page 2, it bugs because the original parameters are not taken into account.
217: [01:06:00] <Pyromanik> (in trac)
218: [01:06:00] <Pyromanik> it'd be denied now, but it'd still be good to have it on file
219: [01:06:00] <Pyromanik> you should
220: [01:06:00] <ss23> haxor logs
221: [01:06:00] <Pyromanik> :P
222: [01:06:00] <Pyromanik> need to reverse engineer it
223: [01:07:00] <Pyromanik> yeh
224: [01:07:00] <Pyromanik> lol
225: [01:07:00] <SphereSilver> I do have the time. Somewhere in april I think :/
226: [01:07:00] <Pyromanik> cool, but I don't have time to fix this :<
227: [01:07:00] <Pyromanik> I'm busy screenshott'n the backend
228: [01:07:00] <SphereSilver> Thus, the response is a generic search (again)
229: [01:08:00] <Pyromanik> I don't even what do
230: [01:08:00] <SphereSilver> At this point, I know the problem, know how to fix it, but it's after 2 AM. I should be sleeping. Besides that, I don't have a 2.4 installation at hand
231: [01:08:00] <Pyromanik> go sleep
232: [01:09:00] <Pyromanik> reverse engieer the logs you fol
233: [01:09:00] <Pyromanik> fool*
234: [01:09:00] <SphereSilver> Shoot me an e-mail if you remember :) simon[@]casa-laguna.net
235: [01:09:00] <ss23> Wow I didn't know you could have []'s in your email
236: [01:09:00] <Pyromanik> lake house/
237: [01:09:00] <ss23> cool :D
238: [01:09:00] <Pyromanik> ?
239: [01:09:00] <SphereSilver> No, I'm not gonna do anything stupid right now.
240: [01:09:00] <SphereSilver> ss23: really?
241: [01:09:00] <Pyromanik> except not sleep
242: [01:09:00] <ss23> NO
243: [01:09:00] <ss23> I dare you
244: [01:09:00] <ss23> hack the logs
245: [01:09:00] <Pyromanik> lol
246: [01:09:00] <ss23> SphereSilver: Do it, bro
247: [01:09:00] <SphereSilver> Except my work's website, but I'm not gonna hack that website right now, that might cause some trouble :P
248: [01:09:00] <ss23> :<
249: [01:09:00] <ss23> I need to sleep too
250: [01:09:00] <ss23> I DOUBLE DOG DARE YOU
251: [01:09:00] <Pyromanik> I had a question for you, but I forgot what it was
252: [01:10:00] <Pyromanik> just not in domains
253: [01:10:00] <SphereSilver> You can't except for gmail ;)
254: [01:10:00] <Pyromanik> OMG IT'S LOCH NESS!
255: [01:10:00] * DigNZ has joined #silverstripe
256: [01:10:00] <SphereSilver> NESSY!
257: [01:10:00] <ss23> :P
258: [01:10:00] <SphereSilver> the [] brackets are for anti-spambots :D
259: [01:10:00] <Pyromanik> you can have []'s in email I think
260: [01:11:00] <SphereSilver> yeah, I guess I'm off to bed, 4 hours of sleep on a defective body should work fine :D
261: [01:11:00] * howardgrigg has joined #silverstripe
262: [01:12:00] <ss23> o/ o/ o/
263: [01:12:00] <Pyromanik> yeh, perhaps
264: [01:12:00] <Pyromanik> oh yeah
265: [01:12:00] <Pyromanik> you're the metal guy
266: [01:12:00] <Pyromanik> that's what it was I think
267: [01:12:00] * ss23 hardcore metal
268: [01:12:00] <aznain> http://theleftsidepoets.files.wordpress.com/2012/11/crying-cat1.gif
269: [01:13:00] <SphereSilver> look at it's front paws!
270: [01:13:00] <ss23> Zoeey is better though, IMO
271: [01:13:00] <Pyromanik> ss23: sif, katy perry ain't metal.
272: [01:13:00] <ss23> Pyromanik: :<
273: [01:13:00] <Pyromanik> not bad
274: [01:13:00] <ss23> She's hot though
275: [01:13:00] <irogue> even i think she's hot
276: [01:13:00] <SphereSilver> Pyromanik: that's what my cat looks like, she has an eye-problem. This one is way funnier: http://i.imgur.com/AFiYu8r.gif
277: [01:13:00] <ss23> lol
278: [01:14:00] <Pyromanik> SphereSilver: that's some wicked
279: [01:14:00] <SphereSilver> It's somewhat 2/3rd of my full collection, but I ran out of wall
280: [01:14:00] <Pyromanik> guitar collection
281: [01:15:00] <Pyromanik> wow
282: [01:15:00] <SphereSilver> I have 14 in total :)
283: [01:15:00] <Pyromanik> epic
284: [01:16:00] <SphereSilver> And usually, me shredding + breaking 5 snares :P
285: [01:16:00] <SphereSilver> thanks :) Yeah, having a bunch of guitars on the wall always makes for a good conversation :)
286: [01:17:00] <SphereSilver> and there I spent almost an hour in here, while I was just going to bed :(
287: [01:17:00] <SphereSilver> for real now. When I'm done watching kitty-drop!
288: [01:18:00] * SphereSilver quit (Quit: If it's not broke. It's lacking features.)
289: [01:19:00] * howardgrigg quit (Remote host closed the connection)
290: [01:19:00] <aznain> Pyramanik: thanks one thing is working now ... search fields via decorator .. thanks
291: [01:20:00] <aznain> member has many relation with competition ... when i try to see member profile at backend ( security tab ) .. I am getting the method 'fortemplate' does not exist on Competition
292: [01:21:00] <aznain> competition is dataobject ...
293: [01:23:00] <nimeso> :) gotta dash aznain... chat later
294: [01:24:00] * nimeso quit (Quit: Page closed)
295: [01:24:00] <aznain> ok thanks for kind help ...
296: [01:26:00] <Pyromanik> hopefully that
297: [01:26:00] <Pyromanik> aznain: you're trying to put out an object directly to the template
298: [01:26:00] <Pyromanik> most likely it's in your summary_fields
299: [01:26:00] <Pyromanik> change Competition
300: [01:26:00] <Pyromanik> to something like Competition.Title
301: [01:26:00] <Pyromanik> 'll work
302: [01:27:00] <Pyromanik> or $this->getTitle()
303: [01:27:00] <Pyromanik> if not, just make a function on the competition object: public function forTemplate(){return $this->Title;}
304: [01:27:00] <aznain> Pyromanik: thanks let me do that ... Can u please send reminder email to spheresilver for that patch ... I am really gonna die otherwise
305: [01:28:00] <aznain> i dont have his email
306: [01:28:00] <Pyromanik> aznain: you have his email, just send one off :)
307: [01:29:00] <aznain> let me see
308: [01:29:00] <aznain> ohhh
309: [01:29:00] <Pyromaniik_> aznain: he pasted it earlier
310: [01:29:00] <ss23> help[how]canyouhave []'s in emails?!
311: [01:29:00] * Pyromaniik_ quit (Quit: leaving)
312: [01:29:00] <Pyromanik> simon[@]casa-laguna.net (no square brackets)
313: [01:30:00] * Pyromanik has left #silverstripe
314: [01:30:00] <aznain> thanks
315: [01:30:00] <aznain> got it
316: [01:30:00] <ss23> ;____;
317: [01:30:00] <ss23> Pyromanik: ;_;
318: [01:30:00] <Pyromanik> ss23: grow up son
319: [01:30:00] <ss23> HE LEFT
320: [01:30:00] <ss23> :<
321: [01:44:00] * howardgrigg has joined #silverstripe
322: [01:49:00] * ccburns quit (Quit: ccburns)
323: [01:50:00] * ccburns has joined #silverstripe
324: [01:55:00] * aznain quit (Ping timeout: 245 seconds)
325: [01:56:00] <travis-ci> [travis-ci] silverstripe/sapphire#1502 (3.1 - 351f079 : Sam Minn??e): The build is still failing.
326: [01:56:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/8a70019e7818...351f079a7e41
327: [01:56:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5031139
328: [01:56:00] * travis-ci has left #silverstripe
329: [01:56:00] * travis-ci has joined #silverstripe
330: [02:02:00] * travis-ci has joined #silverstripe
331: [02:02:00] <travis-ci> [travis-ci] silverstripe/sapphire#1503 (3.1 - da109a0 : Sam Minn??e): The build is still failing.
332: [02:02:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/351f079a7e41...da109a07c139
333: [02:02:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5031188
334: [02:02:00] * travis-ci has left #silverstripe
335: [02:04:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5031195
336: [02:04:00] * travis-ci has left #silverstripe
337: [02:04:00] * travis-ci has joined #silverstripe
338: [02:04:00] <travis-ci> [travis-ci] silverstripe/sapphire#1504 (3.1 - b90e0c0 : Sam Minn??e): The build is still failing.
339: [02:04:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/da109a07c139...b90e0c095541
340: [02:06:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/b90e0c095541...5734c2b3ded7
341: [02:06:00] * travis-ci has left #silverstripe
342: [02:06:00] * travis-ci has joined #silverstripe
343: [02:06:00] <travis-ci> [travis-ci] silverstripe/sapphire#1505 (3.1 - 5734c2b : Sam Minnee): The build is still failing.
344: [02:06:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5031321
345: [02:08:00] * Onfire has joined #silverstripe
346: [02:08:00] <Onfire> hi all, my session doesnt seem to clear using Session::clear
347: [02:09:00] <Onfire> is there something I sould be doing with it
348: [02:18:00] <Onfire> only the one bit
349: [02:18:00] <ajshort> clear is for individual elements
350: [02:18:00] <Onfire> i don't want to remove the whole thing
351: [02:18:00] <ajshort> Onfire: you probably want Session::destroy() to remove the entire session
352: [02:19:00] <Onfire> Debug::show(Session::get('SeekomSearch')); Session::clear('SeekomSearch'); Debug::show(Session::get('SeekomSearch')); Session::set('SeekomSearch',$search_array);
353: [02:19:00] <Onfire> eg:
354: [02:20:00] <Onfire> eveytime i refresh, its back to the first setting
355: [02:20:00] <Onfire> doesnt seem to actually update
356: [02:21:00] <Onfire> hmm
357: [02:21:00] * Pyromanik has joined #silverstripe
358: [02:21:00] <ajshort> I seem to remember a bug with arrays not being handled properly in some cases
359: [02:21:00] <ajshort> Can't remember exact details though sorry
360: [02:21:00] <Pyromanik> irogue: old mate webcam is back on the case
361: [02:22:00] <irogue> Pyromanik: haha
362: [02:22:00] <Onfire> what a pain!
363: [02:22:00] <ajshort> I'm not sure if it's affecting you here thoug
364: [02:22:00] <Pyromanik> irogue: seems to have given up on that camera you were on the phone with him about
365: [02:23:00] <Onfire> yea, not sure what is going on - it will update values that are already in the session, but won't clear any
366: [02:23:00] <Pyromanik> says he'll buy the camera to suit the cause now
367: [02:23:00] <Onfire> it shows as cleared, but on refresh it comes back
368: [02:23:00] <ajshort> ah yep that sounds like it
369: [02:24:00] <Onfire> very true
370: [02:24:00] <ajshort> i think it does some funky merging where it doesn't clear values
371: [02:24:00] <ajshort> the session class is a bit blergh
372: [02:24:00] <Onfire> yea so it seems
373: [02:24:00] <Onfire> might have to revert to $_SESSION
374: [02:24:00] <Onfire> even though i don't really want to
375: [02:24:00] <ajshort> it works :)
376: [02:25:00] <Onfire> 3.0.3
377: [02:25:00] <ajshort> Onfire: what SS version are you running?
378: [02:26:00] <Onfire> i would have thought any Sessions issues would have been resolved by now
379: [02:26:00] <Onfire> they must get used a fair bit
380: [02:28:00] <ajshort> I seem to remember fixing the bug, but I'm not sure if it was just on a fork somewhere
381: [02:30:00] <Onfire> and still getting it
382: [02:30:00] <ajshort> yep, that sounds like it
383: [02:30:00] <Onfire> just trying to set the array to empty
384: [02:30:00] <Onfire> yea it definitely seems to be an array issue
385: [02:32:00] <ajshort> From memory it is fixable, but it was a pain to track down
386: [02:32:00] <ajshort> So I'd probably just use $_SESSION for now
387: [02:34:00] * howardgrigg quit (Remote host closed the connection)
388: [02:36:00] <Onfire> yea im just going to do SESSION
389: [02:36:00] <Onfire> easier and quicker
390: [02:36:00] <Onfire> hopefully it will be resoved in the future
391: [02:38:00] <Onfire> ajshort, thanks
392: [02:39:00] * Onfire quit (Quit: Page closed)
393: [03:22:00] * howardgrigg has joined #silverstripe
394: [03:25:00] * ccburns quit (Quit: ccburns)
395: [03:30:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5032343
396: [03:30:00] * travis-ci has left #silverstripe
397: [03:30:00] * travis-ci has joined #silverstripe
398: [03:30:00] <travis-ci> [travis-ci] silverstripe/sapphire#1507 (3.1 - b2dfa77 : Sam Minnee): The build is still failing.
399: [03:30:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/5734c2b3ded7...b2dfa7705607
400: [03:31:00] * LoveDuckie quit (Ping timeout: 255 seconds)
401: [03:40:00] <travis-ci> [travis-ci] silverstripe/sapphire#1508 (3.1 - 88b3901 : Sam Minnee): The build is still failing.
402: [03:40:00] * travis-ci has left #silverstripe
403: [03:40:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5032402
404: [03:40:00] * travis-ci has joined #silverstripe
405: [03:40:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/b2dfa7705607...88b3901a6974
406: [03:51:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/88b3901a6974...efb4760244a3
407: [03:51:00] * travis-ci has joined #silverstripe
408: [03:51:00] <travis-ci> [travis-ci] silverstripe/sapphire#1509 (3.1 - efb4760 : Sam Minnee): The build was fixed.
409: [03:51:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5032494
410: [03:51:00] * travis-ci has left #silverstripe
411: [03:59:00] <ajshort> sminnee: Do you think you could merge your test fixes across to master?
412: [03:59:00] <sminnee> yeah ok
413: [03:59:00] <sminnee> done.
414: [04:00:00] <ajshort> cheers
415: [04:00:00] <ajshort> I'll see if I can fix up the build process to include composer then
416: [04:05:00] * void has joined #silverstripe
417: [04:07:00] * void quit (Client Quit)
418: [04:07:00] * travis-ci has left #silverstripe
419: [04:07:00] * DigNZ quit (Quit: DigNZ)
420: [04:07:00] * travis-ci has joined #silverstripe
421: [04:07:00] <travis-ci> [travis-ci] silverstripe/sapphire#1510 (master - 50f3644 : Sam Minnee): The build was fixed.
422: [04:07:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/bb724c43b980...50f36447a965
423: [04:07:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5032627
424: [04:10:00] * void has joined #silverstripe
425: [04:14:00] * void quit (Remote host closed the connection)
426: [04:15:00] * void has joined #silverstripe
427: [04:15:00] <sminnee> sweet ajshort sounds good.
428: [04:32:00] <solva> hi all
429: [04:32:00] * solva has joined #silverstripe
430: [04:34:00] <solva> $this->dataRecord->write();
431: [04:34:00] <solva> in init() of the Page_Controller
432: [04:34:00] <solva> i'm trying to track the number of times a SiteTree object has been viewed on the front end (for building "popular pages")
433: [04:34:00] <solva> i've tried
434: [04:34:00] <solva> $this->dataRecord->Views++;
435: [04:35:00] <solva> how can i do this (without resorting to raw SQL to update the record that is holding the value)?
436: [04:35:00] <solva> but this creates a new version each time; which leads to unnecessary database records
437: [04:35:00] <solva> i just want to increment and then resave the same record.
438: [04:36:00] <solva> can i write() without it versioning it?
439: [04:37:00] <ajshort> solva: ->writeWithoutVersion()
440: [04:38:00] <solva> ajashort: thanks, i did try that but it still generates another database record
441: [04:43:00] <ajshort> in that case you might to resort to plain DB queries
442: [04:47:00] * DigNZ has joined #silverstripe
443: [04:59:00] * cloph_away has joined #silverstripe
444: [05:00:00] * cloph quit (Ping timeout: 252 seconds)
445: [05:17:00] * maknz has joined #silverstripe
446: [05:29:00] * solva quit (Quit: Leaving)
447: [05:38:00] * Mark_ has joined #silverstripe
448: [05:39:00] <Mark_> Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'cache_dir is not writable' in /home/markw/public_html/framework/thirdparty/Zend/Cache.php:209 Stack trace: #0 /home/markw/public_html/framework/thirdparty/Zend/Cache/Backend/File.php(157): Zend_Cache::throwException('cache_dir is no...') #1 /home/markw/public_html/framework/thirdparty/Zend/Cache/Backend/File.php(121): Zend_Cache_Backend_File->setCacheDir('/home
449: [05:39:00] <Mark_> Help someone! My website (which I've installed SilverStripe on) comes up with this message at http://mark-wasley.exofire.net:
450: [05:46:00] * Shrike_Finland1 quit (Quit: Leaving.)
451: [05:50:00] <howardgrigg> Mark_: looks like a permissions issue
452: [05:52:00] * void quit (Remote host closed the connection)
453: [05:53:00] <Mark_> How do I sort it out?
454: [05:55:00] <Mark_> Hello....
455: [05:57:00] * SightUnseen has joined #silverstripe
456: [05:58:00] <Mark_> Got to go. Bye
457: [06:02:00] * Liquide quit ()
458: [06:03:00] * Mark_ quit (Ping timeout: 245 seconds)
459: [06:06:00] * Colin[pi] quit (Ping timeout: 256 seconds)
460: [06:10:00] * SightUnseen quit (Quit: Leaving.)
461: [06:34:00] * howardgrigg quit (Remote host closed the connection)
462: [06:37:00] * Colin[pi] has joined #silverstripe
463: [06:46:00] <Colin[pi]> huh, he was asking that question about two weeks ago
464: [06:51:00] * ratcat has joined #silverstripe
465: [06:51:00] * aznain has joined #silverstripe
466: [06:52:00] <aznain> anyone online ?
467: [06:53:00] <Colin[pi]> maybe
468: [06:57:00] <aznain> :D
469: [06:58:00] <aznain> how can i convert to make it compatible with 2.4
470: [06:58:00] <aznain> $lists[$class] = DataList::create($class)->where($notMatch . $match[$class] . $extraFilters[$class], "");
471: [06:58:00] <aznain> I want equlvalent of $lists[$class] = DataObjectSet::create($class)->where($notMatch . $match[$class] . $extraFilters[$class], ""); in SilverStripe 2.4 style
472: [06:59:00] <aznain> As in 2.4, there was no DataList
473: [07:00:00] <aznain> Colin[pi]: any idea ?
474: [07:01:00] <Colin[pi]> so you want 3.0 functionality in 2.4?
475: [07:03:00] <aznain> please help if u can
476: [07:03:00] <aznain> happens to work in 2.4 ...
477: [07:03:00] <aznain> yes
478: [07:04:00] <Colin[pi]> can't you just use 3.0?
479: [07:04:00] <aznain> I wish
480: [07:04:00] <Colin[pi]> stuff will break if you switch to it?
481: [07:06:00] <Colin[pi]> best bet would be to scan through the source of both and patch it in
482: [07:06:00] <Colin[pi]> mm
483: [07:06:00] * Shrike_Finland has joined #silverstripe
484: [07:06:00] <Colin[pi]> may not be simple however
485: [07:06:00] <aznain> yes
486: [07:13:00] * Motoservo_ has joined #silverstripe
487: [07:17:00] * Motoservo quit (Ping timeout: 252 seconds)
488: [07:17:00] * Motoservo_ is now known as Motoservo
489: [07:20:00] * aznain quit (Ping timeout: 245 seconds)
490: [07:44:00] * zfmf has joined #silverstripe
491: [08:06:00] * DigNZ quit (Quit: DigNZ)
492: [08:08:00] <guci0> Hello World!
493: [08:08:00] * guci0 has joined #silverstripe
494: [08:14:00] * g4b0 has joined #silverstripe
495: [08:14:00] <g4b0> Hi all
496: [08:14:00] * ARNHOE has joined #silverstripe
497: [08:15:00] <g4b0> SS 3.1.0-beta1 fast forwarded to the lastest github version
498: [08:15:00] <g4b0> I think that I found a bug in SS core
499: [08:15:00] <g4b0> but I prefer to be sure
500: [08:16:00] <g4b0> before opening the ticket in trac
501: [08:17:00] <g4b0> _config.php:
502: [08:17:00] <g4b0> http://pastebin.com/0LzjJn0F
503: [08:18:00] <g4b0> http://pastebin.com/5XxGZ8Jg (highlighted)
504: [08:19:00] <g4b0> http://pastebin.com/X8WGr6nk
505: [08:19:00] <g4b0> DataExtension's constructor:
506: [08:19:00] <g4b0> The output:
507: [08:20:00] <g4b0> http://pastebin.com/91NxjJBa
508: [08:21:00] <g4b0> what do you think about this behaviour?
509: [08:32:00] * Colin[pi] quit (Ping timeout: 256 seconds)
510: [08:35:00] * Andi_de has left #silverstripe
511: [08:35:00] * Andi_de has joined #silverstripe
512: [08:44:00] * patJnr has joined #silverstripe
513: [08:53:00] * gelignite has joined #silverstripe
514: [08:54:00] * Pyromanik__ has joined #silverstripe
515: [08:54:00] <Pyromanik__> .
516: [08:55:00] * Pyromanik__ has left #silverstripe
517: [08:56:00] * Pyromanik__ has joined #silverstripe
518: [09:03:00] * popeshoe has joined #silverstripe
519: [09:10:00] * nimeso has joined #silverstripe
520: [09:12:00] <nimeso> yellow :) anyone around that wants to help me get my head around installing http://www.silverstripe.org/oauth-server/ and if not http://25.media.tumblr.com/tumblr_mabdupJpeE1qd5bfso1_250.gif
521: [09:16:00] <nimeso> is Quantum gravity real? http://en.wikipedia.org/wiki/List_of_unsolved_problems_in_physics#Quantum_gravity
522: [09:16:00] <nimeso> etc etc... just simple questions
523: [09:16:00] <nimeso> do i have to 'extend' my own controller with a _config file?
524: [09:18:00] * kinglozzer has joined #silverstripe
525: [09:19:00] * LoveDuckie has joined #silverstripe
526: [09:19:00] <nimeso> yellow ha :)
527: [09:19:00] <kinglozzer> Morning all
528: [09:20:00] <nimeso> 10.20pm... NZ
529: [09:20:00] <nimeso> What time is it at your end king?
530: [09:20:00] <kinglozzer> 09:20
531: [09:20:00] <kinglozzer> You?
532: [09:21:00] <kinglozzer> Ah, good evening them :)
533: [09:21:00] <nimeso> :)
534: [09:21:00] <nimeso> early days yet/... lol
535: [09:21:00] <kinglozzer> I always get the arguments for ->insertAfter() the wrong way around :(
536: [09:21:00] * DesignerX has joined #silverstripe
537: [09:21:00] <nimeso> trying to get my head around installing http://www.silverstripe.org/oauth-server/
538: [09:22:00] <nimeso> happy to buy beer all around if someone can figure out how to get it going with your own controller
539: [09:24:00] <kinglozzer> *pass*
540: [09:24:00] <kinglozzer> I read that, saw yml and ran away
541: [09:25:00] <nimeso> Yer king... figured I should be at least adding the controller to my own using _config ... need config freaks me to
542: [09:25:00] <nimeso> if I put public static $extensions = array( 'RequireOAuth', ); ... into PageController it freaks out?
543: [09:25:00] <kinglozzer> The extra comma?
544: [09:25:00] <nimeso> ahhhhhh, comma... let try
545: [09:26:00] <kinglozzer> Blame the code examples :D
546: [09:26:00] <nimeso> duh
547: [09:26:00] <kinglozzer> :P
548: [09:26:00] <nimeso> LOL... good thinking but nadda : popCurrent called on ModelAsController controller, but it wasn't at the top of the stack
549: [09:27:00] <nimeso> I'll keep playing and let ya know when I crack it :) ta for ideas thou bro
550: [09:34:00] <ec8or> -names
551: [09:37:00] * patJnr quit (Read error: Connection reset by peer)
552: [09:37:00] * patJnr has joined #silverstripe
553: [09:44:00] * MichaelDesignerX has joined #silverstripe
554: [09:48:00] * DesignerX quit (Ping timeout: 256 seconds)
555: [09:55:00] * lx-berlin has joined #silverstripe
556: [10:03:00] * ratcat has left #silverstripe
557: [10:04:00] * Motoservo quit (Quit: Motoservo)
558: [10:15:00] * Bollig|DesignCty quit (Quit: Bollig|DesignCty)
559: [10:32:00] <g4b0> How can I check if a class implements a method defined through an extension?
560: [10:32:00] * lobarvaz has joined #silverstripe
561: [10:33:00] <lobarvaz> Anyone know why Session::set($key, $data); != $_SESSION[$key] = $data; ?
562: [10:33:00] <lobarvaz> Did I miss something?
563: [10:33:00] <ajshort> g4b0: $class->hasMethod('method')
564: [10:35:00] <ajshort> lobarvaz: the session class maintains its own internal session array and writes it to $_SESSION once the request is done
565: [10:36:00] <lobarvaz> OK. Could a redirectTo() be preventing it saving somehow?
566: [10:37:00] <g4b0> thanks a lot, ajshort
567: [10:37:00] <g4b0> it works
568: [10:38:00] <ajshort> why aren't you just using the default SS_HTTPResponse->redirect()
569: [10:38:00] <ajshort> lobarvaz: redirectTo?
570: [10:39:00] <ajshort> or Controller->redirect()
571: [10:39:00] <lobarvaz> Long day ;)
572: [10:39:00] <lobarvaz> Sorry, redirectBack()
573: [10:46:00] * Motoservo has joined #silverstripe
574: [10:48:00] * Motoservo has joined #silverstripe
575: [10:48:00] * Motoservo quit (Client Quit)
576: [10:49:00] <Pyromanik__> lobarvaz: iirc
577: [10:49:00] <Pyromanik__> redirectBack is deprecated
578: [10:50:00] * Motoservo quit (Client Quit)
579: [10:53:00] * travis-ci has left #silverstripe
580: [10:53:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5037926
581: [10:53:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/57952977c762...567e39cd19f0
582: [10:53:00] <travis-ci> [travis-ci] silverstripe/sapphire#1512 (3.0 - 567e39c : Ingo Schommer): The build passed.
583: [10:53:00] <lobarvaz> Pyromanik__: looks OK on Controller: http://api.silverstripe.org/master/class-Controller.html#_redirectBack
584: [10:53:00] * travis-ci has joined #silverstripe
585: [10:54:00] <Pyromanik__> lobarvaz: that doesn't mean much
586: [10:55:00] * Motoservo has joined #silverstripe
587: [10:58:00] <Pyromanik__> hmm, I'm sure I read somewhere that it was deprecated
588: [11:00:00] <Pyromanik__> oooooooh, it was the staticness that was culled.
589: [11:00:00] <Pyromanik__> lobarvaz: http://doc.silverstripe.org/framework/en/changelogs/3.0.0#director-static-functions-deprecated-e-g-redirect-and-redirectback
590: [11:01:00] <Pyromanik__> Half right. It's still there, just not static anymore.
591: [11:01:00] <Pyromanik__> and on controller, not Director
592: [11:01:00] <Pyromanik__> makes more sense
593: [11:02:00] <ec8or> yeah usually just $this->redirectBack()
594: [11:03:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/567e39cd19f0...44cc467fc7f1
595: [11:03:00] * travis-ci has joined #silverstripe
596: [11:03:00] <travis-ci> [travis-ci] silverstripe/sapphire#1513 (3.0 - 44cc467 : Ingo Schommer): The build passed.
597: [11:03:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5038108
598: [11:03:00] * travis-ci has left #silverstripe
599: [11:13:00] <ARNHOE> I am trying to get used to using git as version control. Do you guys gitignore your assets folder?
600: [11:14:00] <ec8or> usually yes
601: [11:15:00] <ec8or> but if you're just using it to track changes you could leave it in
602: [11:15:00] <ec8or> if you're using multiple environments it makes sense to ignore mysite/_config.php as well
603: [11:18:00] <ARNHOE> Oke, thanks! I see that its handy to ignore my .sass-cache aswell, hehe
604: [11:20:00] * lx-berlin has left #silverstripe
605: [11:25:00] <Pyromanik__> like ._DS_STORE and Thumbs.db
606: [11:25:00] <Pyromanik__> and a few other things more specific to my environment
607: [11:25:00] <Pyromanik__> I ignore /assets, /silverstripe-cache, .htaccess, /mysite/_config.php
608: [11:26:00] <Pyromanik__> index.html
609: [11:26:00] * Pyromanik__ has left #silverstripe
610: [11:26:00] <Pyromanik__> enjoy
611: [11:29:00] * travis-ci has left #silverstripe
612: [11:29:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5038535
613: [11:29:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/44cc467fc7f1...a61f5c1244b2
614: [11:29:00] <travis-ci> [travis-ci] silverstripe/sapphire#1514 (3.0 - a61f5c1 : Ingo Schommer): The build passed.
615: [11:29:00] * travis-ci has joined #silverstripe
616: [11:30:00] * patJnr quit (Ping timeout: 245 seconds)
617: [11:31:00] <r3v3rb> morning, can someone remind me how to get the ID of the dataobject after insertion
618: [11:31:00] * r3v3rb has joined #silverstripe
619: [11:32:00] <ajshort> or even $id = $object->write()
620: [11:32:00] <r3v3rb> ajshort: thanks, so $object->write then $object-ID
621: [11:32:00] <ARNHOE> Pyromanik: thanks!
622: [11:32:00] * patJnr has joined #silverstripe
623: [11:32:00] <ajshort> $object->ID
624: [11:32:00] <ajshort> yes
625: [11:33:00] <r3v3rb> perfect couldn't be easier
626: [11:34:00] * Colin[pi] has joined #silverstripe
627: [11:36:00] <r3v3rb> also, whilst i'm at it??? whats the difference between $data and $form in a form function?
628: [11:38:00] * lx-berlin has joined #silverstripe
629: [11:38:00] <r3v3rb> morning lx-berlin
630: [11:39:00] <ARNHOE> I cant find that file, only .hgignore_global
631: [11:39:00] <ARNHOE> in my users/name
632: [11:39:00] <ARNHOE> When I run "git config --global core.excludesfile ~/.gitignore_global"
633: [11:40:00] <lx-berlin> hey r3v3rb :)
634: [11:40:00] <r3v3rb> kinglozzer: hmm, just wondered why I use $form->saveInto as opposed to $data->saveInto
635: [11:40:00] <kinglozzer> r3v3rb: As far as I'm aware, $data essentially an array of post data, $form is the form object itself
636: [11:40:00] <kinglozzer> I've never used $form for anything yet :P
637: [11:41:00] <kinglozzer> r3v3rb: Because $data is just an array. If you call saveInto() on it it will error as it's not an object with a method called saveInto()
638: [11:41:00] <r3v3rb> because I use $data for saving into session for example
639: [11:42:00] <kinglozzer> I guess you can also access the variables through $form
640: [11:42:00] <r3v3rb> got it
641: [11:42:00] <kinglozzer> Just easier with $data
642: [11:42:00] <r3v3rb> hmm
643: [11:43:00] <r3v3rb> imho, seems like overkill having two sets of essentially the same data floating around
644: [11:44:00] <r3v3rb> much nicer
645: [11:44:00] <ARNHOE> nevermind, I thought it would create a gitignore_global file, but I had to create it first and then run it in terminal
646: [11:44:00] <kinglozzer> Ooooo new api documentation http://api.silverstripe.org/3.0/class-Form.html
647: [11:44:00] <kinglozzer> Well, new style at least :)
648: [11:45:00] <r3v3rb> love the expansion into the class when clicking on a method!
649: [11:46:00] <kinglozzer> Yeah, now we just need the forums sorted out and everything will be perfect!
650: [11:46:00] <ARNHOE> is the new extensions.silverstripe.org somewhere aswell?
651: [11:46:00] <ARNHOE> much better then the last one
652: [11:46:00] <ARNHOE> that looks great!
653: [11:48:00] <kinglozzer> Ah, ARHNOE: Preview is here http://extensions.andrewshort.name/
654: [11:48:00] <kinglozzer> Not yet as far as I know
655: [11:49:00] <ARNHOE> ah great, thanks!
656: [11:55:00] * priithansen quit (Quit: priithansen)
657: [11:56:00] * priithansen has joined #silverstripe
658: [12:08:00] * UncleCheese has joined #silverstripe
659: [12:10:00] * Motoservo quit (Quit: Motoservo)
660: [12:13:00] <lobarvaz> Ah, so it wasn't only me that had this problem: http://www.silverstripe.org/general-questions/show/9794
661: [12:13:00] * Motoservo has joined #silverstripe
662: [12:23:00] * travis-ci has joined #silverstripe
663: [12:23:00] <travis-ci> [travis-ci] silverstripe/sapphire#1515 (3.0 - 8423149 : Ingo Schommer): The build passed.
664: [12:23:00] <travis-ci> [travis-ci] Change view : https://github.com/silverstripe/sapphire/compare/a61f5c1244b2...84231498196d
665: [12:23:00] <travis-ci> [travis-ci] Build details : http://travis-ci.org/silverstripe/sapphire/builds/5039352
666: [12:23:00] * travis-ci has left #silverstripe
667: [12:28:00] <ARNHOE> When running TextCollector, I get the following error: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in www/v1/framework/i18n/i18nTextCollector.php on line 212
668: [12:28:00] <ARNHOE> I have the memory limit on 64m
669: [12:29:00] <ARNHOE> oke, I understand now, it tries to use more then 64mb right?
670: [12:29:00] <patJnr> 67108864 = 64MB
671: [12:29:00] <patJnr> try 128mb dude
672: [12:29:00] <ajshort> ARNHOE: you'll probably need more than that
673: [12:30:00] <ARNHOE> jup, its working now, thanks guys
674: [12:30:00] <patJnr> yes
675: [12:32:00] * UncleCheese quit (Quit: UncleCheese)
676: [12:33:00] <Zauberfisch> lx-berlin
677: [12:33:00] <Zauberfisch> do you still use the boilerplate?
678: [12:34:00] <Zauberfisch> I am not sure if I should remove the "footer.scss" and "header.scss"
679: [12:34:00] <Zauberfisch> and anyone else here using the silverstripe boilerplate?
680: [12:34:00] <Zauberfisch> need some feedback
681: [12:34:00] * ajshort quit (Quit: Leaving)
682: [12:44:00] <lx-berlin> hey Zauberfisch: i use my fork of your boilerplate
683: [12:44:00] <ARNHOE> Zauberfisch: I only use your _config layout
684: [12:47:00] * I-Chito has joined #silverstripe
685: [12:47:00] <lx-berlin> i know :)
686: [12:47:00] <Zauberfisch> oh, you have a theme folder lx-berlin
687: [12:47:00] <Zauberfisch> I disslike your fork :D
688: [12:48:00] <lx-berlin> i wonder if i should be the next project with 3.1 beta
689: [12:49:00] * patJnr quit (Ping timeout: 244 seconds)
690: [12:52:00] <lx-berlin> *build
691: [12:56:00] <zfmf> when i run /dev/build i see under "Creating database records" Customer table, but in phpmyadmin i had no customer table anyone an idea why ? :D
692: [12:56:00] <r3v3rb> is it possible to redirect to a website and send post data from a method?
693: [12:57:00] <zfmf> hmm
694: [12:57:00] <zfmf> aaa i found it , i had also a page with the name customer
695: [13:00:00] <r3v3rb> but i need the user to end up on that page not have the result back in php
696: [13:00:00] <ec8or> r3v3rb: you can use curl
697: [13:00:00] * EPIK quit (Ping timeout: 276 seconds)
698: [13:00:00] <r3v3rb> so its a redirect that sends post data to the page too
699: [13:01:00] <ec8or> aha i think you'll have to use GET then
700: [13:01:00] <r3v3rb> yucky
701: [13:02:00] <ec8or> hi :)
702: [13:02:00] * r3v3rb thinks again about his logic on this page
703: [13:02:00] <r3v3rb> hi ec8or btw
704: [13:05:00] * r3v3rb quit (Read error: Connection reset by peer)
705: [13:13:00] * r3v3rb has joined #silverstripe
706: [13:17:00] * UncleCheese has joined #silverstripe
707: [13:24:00] * maknz quit (Ping timeout: 260 seconds)
708: [13:37:00] * UndefinedOffset has joined #silverstripe
709: [13:38:00] <ARNHOE> How can I set the label of a dropdownfield? setTitle only changes the title after the checkbox
710: [13:40:00] <ARNHOE> Label for a checkboxfield, btw
711: [13:43:00] * Andre____ has joined #silverstripe
712: [13:43:00] <Andre____> Hi there, anyone of the Dev Team here?
713: [13:45:00] * samthejarvis has joined #silverstripe
714: [13:47:00] <samthejarvis> GridField and has_one relations, they don't seem to work together
715: [13:48:00] <samthejarvis> as such, anyone got any tips on managing a has_one relationship with gridfield? Not the relation, the data in the has_one object
716: [13:51:00] <samthejarvis> you get a "the method 'count' does not exist on 'RelationModelClass'" if you try to manage a has_one with gridfield, because it's not getting an arraylist/datalist, it's getting a dataobject
717: [13:52:00] * MichaelDesignerX quit (Ping timeout: 244 seconds)
718: [13:56:00] * r3v3rb quit (Read error: Connection reset by peer)
719: [13:57:00] * r3v3rb has joined #silverstripe
720: [14:01:00] <kinglozzer> samthejarvis: Yeah I don't think the gridfield was designed to work with a $has_one. Have you tried wrapping it in an arraylist?
721: [14:03:00] <samthejarvis> it redirects back to the previous object, goes up a level
722: [14:03:00] <kinglozzer> Tried using ->relation('RelationName') ?
723: [14:03:00] <samthejarvis> tried that, it doesn't work
724: [14:03:00] <samthejarvis> i'll try that :)
725: [14:06:00] * priithansen quit (Quit: priithansen)
726: [14:07:00] * priithansen has joined #silverstripe
727: [14:08:00] <samthejarvis> before not being able to hack any more
728: [14:08:00] <samthejarvis> i get as far as "Object->__call(): the method 'count' does not exist on 'Eatery'"
729: [14:09:00] <samthejarvis> hurm, there must be a native way to manage has_one objects, surely
730: [14:10:00] <kinglozzer> samthejarvis: DropdownField?
731: [14:12:00] <kinglozzer> That's how I've always done it
732: [14:12:00] <ec8or> he wants to be able to edit the data etc.
733: [14:12:00] <ec8or> add new would be useful as well
734: [14:12:00] <samthejarvis> mm, would rather not manage the data in a separate modeladmin
735: [14:13:00] <samthejarvis> i'm looking at other possible form fields
736: [14:15:00] <kinglozzer> Ah I see
737: [14:19:00] * zfmf has left #silverstripe
738: [14:21:00] <samthejarvis> interesting though, with some horrible hacks, like adding datalist methods to my model
739: [14:21:00] <samthejarvis> it loads up the editform
740: [14:23:00] * Colin[pi] quit (Ping timeout: 256 seconds)
741: [14:25:00] * Liquide has joined #silverstripe
742: [14:34:00] * Mento has joined #silverstripe
743: [14:38:00] <kinglozzer> Mmmm Red Bull to get me through this afternoon!
744: [14:45:00] * r3v3rb quit (Quit: r3v3rb)
745: [14:47:00] * jcwacky has joined #silverstripe
746: [14:48:00] <jcwacky> Is it possible to somehow insert a line break into a string that will be honoured by GridField?
747: [14:52:00] * Shrike_Finland quit (Quit: Leaving.)
748: [15:00:00] * zfmf has joined #silverstripe
749: [15:03:00] <kinglozzer> Ooo I have a 100-page proposal to look through! *big gulp of red bull*
750: [15:03:00] <ec8or> what are they proposing?
751: [15:07:00] <kinglozzer> A very large SS build! Under NDA so can't spill any beans :)
752: [15:10:00] * Mento quit ()
753: [15:25:00] * cloph_away1 has joined #silverstripe
754: [15:26:00] * cloph_away quit (Ping timeout: 260 seconds)
755: [15:27:00] * samthejarvis_ has joined #silverstripe
756: [15:27:00] * samthejarvis quit (Ping timeout: 245 seconds)
757: [15:35:00] * delboy1978uk has joined #silverstripe
758: [15:44:00] <delboy1978uk> hi guys ive just downloaded an ss site from the live server, set up hosts, vhosts, and db in _config.php, but getting a white screen with no error in the log. any ideas what to check?
759: [15:48:00] * zfmf has left #silverstripe
760: [15:51:00] <kinglozzer> delboy1978uk: Firstly, I'd add Director::set_environment_type("dev"); to _config.php, in case any errors are being hidden
761: [15:52:00] * UncleCheese quit (Quit: UncleCheese)
762: [15:52:00] <delboy1978uk> thanks, thats a start!! :-D
763: [15:53:00] * UncleCheese has joined #silverstripe
764: [16:01:00] * r3v3rb has joined #silverstripe
765: [16:02:00] * catcher has joined #silverstripe
766: [16:02:00] <delboy1978uk> lol it was because silverstrip needs old fashioned php
767: [16:03:00] <delboy1978uk> works fine now ive downgraded :-)
768: [16:09:00] <priithansen> So should "composer update" update all my framework and cmd files?
769: [16:10:00] <priithansen> It says "Updating silverstripe/framework dev-master (bb724c4 => 50f3644)" but can't see any changes from git point of view
770: [16:10:00] <priithansen> cms*
771: [16:13:00] * Andre____ quit (Ping timeout: 245 seconds)
772: [16:14:00] <delboy1978uk> maybe its gitignore?
773: [16:15:00] * kinglozz_ has joined #silverstripe
774: [16:16:00] <r3v3rb> any android owners that fancy helping 'push up' my rating on this latest release I would be eternally grateful ;) https://play.google.com/store/apps/details?id=com.mspacemedia.asteroid2012free
775: [16:16:00] <r3v3rb> completely OT but??? hehe
776: [16:17:00] * kinglozzer quit (Read error: Connection reset by peer)
777: [16:17:00] * kinglozz_ quit (Remote host closed the connection)
778: [16:17:00] * kinglozzer has joined #silverstripe
779: [16:28:00] <priithansen> delboy1978uk: I think it's just that there are no code updates since feb22 in the master branch and that's when i did the initial install
780: [16:28:00] <delboy1978uk> yet composer updated it?
781: [16:30:00] <priithansen> I don't even now while doing composer update --dev it started to checkout all sorts of behat, guzzle , symphony stuff
782: [16:31:00] <samthejarvis_> hey that's awesome r3v3rb!
783: [16:36:00] * Kapdap quit (Ping timeout: 256 seconds)
784: [16:38:00] * ss23 quit (Ping timeout: 276 seconds)
785: [16:44:00] <r3v3rb> samthejarvis_: thanks :D
786: [16:45:00] <r3v3rb> finally got round to updating the free version again...
787: [16:47:00] * samthejarvis_ quit (Ping timeout: 245 seconds)
788: [17:01:00] * g4b0 quit (Remote host closed the connection)
789: [17:03:00] * Kapdap has joined #silverstripe
790: [17:05:00] * kinglozzer quit (Remote host closed the connection)
791: [17:07:00] * ss23 has joined #silverstripe
792: [17:12:00] * delboy1978uk has left #silverstripe
793: [17:32:00] * ARNHOE quit (Remote host closed the connection)
794: [17:32:00] * ARNHOE has joined #silverstripe
795: [17:37:00] * I-Chito quit (Ping timeout: 252 seconds)
796: [17:37:00] * ARNHOE quit (Ping timeout: 256 seconds)
797: [17:41:00] * lobarvaz has left #silverstripe
798: [17:51:00] * priithansen quit (Read error: Connection reset by peer)
799: [17:52:00] * priithansen has joined #silverstripe
800: [18:13:00] * Mark____ has joined #silverstripe
801: [18:14:00] * Mark_____ has joined #silverstripe
802: [18:16:00] * Bollig|DesignCty has joined #silverstripe
803: [18:17:00] <FrozenFire> Might be worth producing a sitemap for api.silverstripe.org
804: [18:17:00] * Mark____ quit (Ping timeout: 245 seconds)
805: [18:17:00] <FrozenFire> sminnee, Might want to poke chillu if he's around, but just not on IRC, and mention that he broke links from Google to the 2.4 API docs.
806: [18:21:00] <UndefinedOffset> is there a folder called silverstripe-cache in the root of the site?
807: [18:21:00] * r3v3rb quit (Quit: r3v3rb)
808: [18:21:00] <Mark_____> Hi everyone. I have a problem with my SilverStripe website at http://mark-wasley.exofire.net/. I can't seem to fix it, even after a re installation of SS. Please help me.
809: [18:21:00] * Kapdap quit (Ping timeout: 240 seconds)
810: [18:22:00] * ss23 quit (Ping timeout: 252 seconds)
811: [18:22:00] <UndefinedOffset> if there is make sure it can be written too by the webserver (same permissions as your assets folder), if there isn't your web host may not be allowing the site access to the server's temp directory so you may need a silverstripe-cache folder
812: [18:27:00] <Mark_____> @UndefinedOffset: yes.
813: [18:28:00] <Mark_____> The silversrtipe-cache folder has permissions 7,7,7 in cPanel and the assets folder is 7,5,5
814: [18:30:00] <UndefinedOffset> hmm you could trying remove the files in the silverstripe-cache folder, that will force silverstripe to rebuild them which will make them writable by the webserver
815: [18:31:00] <Mark_____> done
816: [18:33:00] <Mark_____> didn't work
817: [18:35:00] <UndefinedOffset> i wonder if this hack will work http://www.silverstripe.org/installing-silverstripe/show/11662?start=24#post285826 the hack is for 2.4 but it may still work for 3.0
818: [18:38:00] * Kapdap has joined #silverstripe
819: [18:42:00] <UndefinedOffset> Mark_____ you could also just try removing the silverstripe-cache folder which should force silverstripe to drop back and use the server's temp directory
820: [18:50:00] * Mark_____ quit (Ping timeout: 245 seconds)
821: [18:52:00] * irogue quit (Ping timeout: 255 seconds)
822: [18:53:00] * irogue has joined #silverstripe
823: [18:55:00] * ss23 has joined #silverstripe
824: [19:06:00] * Nivery has joined #silverstripe
825: [19:13:00] <FrozenFire> Not even sure if it's possible
826: [19:13:00] <FrozenFire> Hrmm, that's an interesting conundrum. belongs_many_many extra fields.
827: [19:20:00] * BobBush has joined #silverstripe
828: [19:21:00] <BobBush> Hello!!!
829: [19:21:00] <FrozenFire> Not sure what you mean
830: [19:21:00] <BobBush> but silverstripe automatically rewrite to the home page
831: [19:21:00] <BobBush> can anyone help? trying to get anchor links to work from the templates
832: [19:22:00] <BobBush> <a href="#provider{$ProviderID}">show details</a>
833: [19:22:00] <FrozenFire> Please provide an example
834: [19:23:00] <BobBush> rather than http:www.domain.com/providers/#provider1
835: [19:23:00] <BobBush> creates a link like http://www.domain.com/#provider1
836: [19:24:00] <FrozenFire> It does not. Part of the way that themes are typically written is to include a "base tag" that all links become relative to.
837: [19:24:00] <BobBush> can use SSViewer::setOption('rewriteHashlinks', false); in my config file
838: [19:24:00] <FrozenFire> Are you sure that the link is actually rewritten in the source
839: [19:24:00] <FrozenFire> ?
840: [19:26:00] <BobBush> sorry was doing a bit of checking
841: [19:27:00] <BobBush> ok so without switching off the rewriteHashlinks the link that is generated is: /compare#provider1
842: [19:28:00] <UndefinedOffset> BobBush is this in something like firebug? or are you viewing the source
843: [19:29:00] * SphereSilver has joined #silverstripe
844: [19:29:00] <BobBush> ha ok i feel pretty damn stupid now :P !!! something still isn't quite right but it must be else where in the javascript code
845: [19:30:00] <BobBush> thanks for pointing out the obvious!! :)
846: [19:31:00] <FrozenFire> BobBush, It's not the Javascript
847: [19:31:00] <FrozenFire> It's the way that browsers work.
848: [19:32:00] <FrozenFire> If you have a link that is nothing more than <a href="#hash">foo</a>, then that link is relative to /
849: [19:32:00] <FrozenFire> You should write all links as relative to a specific page.
850: [19:32:00] <FrozenFire> If you have <base href="/">, that is,.
851: [19:33:00] <SphereSilver> and if it's a javascript-link, use javascript:// instead of # as href
852: [19:33:00] <Pyromanik> Phil Leashman died.
853: [19:33:00] <FrozenFire> For instance, if the node you want to target is on /compare, then your link should be <a href="/compare#hash">foo</a>
854: [19:33:00] <ec8or> BobBush: you should use the rewritehashlinks option
855: [19:34:00] <SphereSilver> I don't know Phil Leishman :$
856: [19:34:00] <ec8or> if you're using the hash to load things like tabs etc.
857: [19:34:00] <Pyromanik> Leishman
858: [19:34:00] <Pyromanik> NZ TV broadcasting personality
859: [19:34:00] <BobBush> @ec8or & FrozenFire: yeah it's to load things like tab
860: [19:34:00] <Pyromanik> apparenlty still no Kiwis active in here yet
861: [19:34:00] <FrozenFire> I hate using hashes to load tabs.
862: [19:34:00] <ec8or> me neither
863: [19:34:00] <ec8or> it won't work properly with the full path in the link
864: [19:35:00] <SphereSilver> ah, ok. Well, NZ is still sadly the other side of the world for me, so that's why I don't know him.
865: [19:35:00] <BobBush> i just double checked and withing having SSViewer::setOption('rewriteHashlinks', false); the links appear like /compare#provider1
866: [19:35:00] <Pyromanik> but in CSS3 you can use :target
867: [19:35:00] <ec8or> and it will work
868: [19:35:00] <BobBush> sorry withou having that was supposed to say
869: [19:35:00] <ec8or> BobBush: yes set rewritehashlinks to false just as you suggested
870: [19:35:00] <ec8or> BobBush: yes that is by design
871: [19:35:00] <Pyromanik> I hate hashes.
872: [19:36:00] <Pyromanik> :<
873: [19:36:00] <SphereSilver> anyone feeling like testing my FB integration of the CMS?
874: [19:36:00] <Pyromanik> nothx
875: [19:36:00] <Pyromanik> Should just use ajax rather than hashy hacky
876: [19:36:00] <ec8or> what is the problem? just set it to false :)
877: [19:36:00] <ec8or> a lot og jquery plugins use hashes for tabs, it scales pretty well i guess
878: [19:36:00] <Pyromanik> yeah, but it's rubbish.
879: [19:36:00] <BobBush> no problem with doing that that's why i was guessing there was something else wrong as it is displaying the links correctly now
880: [19:37:00] <SphereSilver> a little what?
881: [19:37:00] <FrozenFire> Wat
882: [19:37:00] <Pyromanik> like this cms?
883: [19:37:00] <FrozenFire> No thanks indeed. :P
884: [19:37:00] <FrozenFire> That's a little wat
885: [19:37:00] <Pyromanik> wtf
886: [19:37:00] <Pyromanik> in the cms?
887: [19:37:00] <SphereSilver> to your page's wall :)
888: [19:37:00] <SphereSilver> Like, it'll post if you ask it to :)
889: [19:37:00] * BobBush quit (Quit: Page closed)
890: [19:38:00] <Pyromanik> it means what
891: [19:38:00] <SphereSilver> as in?
892: [19:38:00] <FrozenFire> http://www.urbandictionary.com/define.php?term=wat
893: [19:38:00] <SphereSilver> what does "wat" mean?
894: [19:38:00] <SphereSilver> the point of it, is to post to a FB-wall or twitter, when a new post/page has been made :)
895: [19:38:00] <FrozenFire> Wat
896: [19:38:00] <SphereSilver> it actually does make sense ;)
897: [19:38:00] <FrozenFire> "The only proper response to something that makes absolutely no sense."
898: [19:38:00] <Pyromanik> but more derpy
899: [19:39:00] <Pyromanik> if you crunch your voice box when you say it, you get a better effect
900: [19:39:00] <FrozenFire> http://www.rssgraffiti.com/
901: [19:39:00] <SphereSilver> badoom-tish :D
902: [19:39:00] <Pyromanik> yes, I see the use now
903: [19:40:00] <FrozenFire> Create an RSS feed, and use an external consumer to post it to your Facebook wall.
904: [19:40:00] * jcwacky quit (Quit: jcwacky)
905: [19:40:00] <SphereSilver> no, using the CMS and a controller is the geek way, because saying "Posted via YourWebsite.com" is way more awesome then "posted via rssgraffiti"
906: [19:40:00] <FrozenFire> Using the CMS to do that is wat.
907: [19:41:00] <SphereSilver> no, geek :D
908: [19:41:00] <FrozenFire> "Not invented here"
909: [19:41:00] <SphereSilver> Wanting to do stuff yourself instead of using external tools :D
910: [19:41:00] <FrozenFire> What does geek have to do with it?
911: [19:41:00] <FrozenFire> Wat.
912: [19:41:00] <FrozenFire> Wat
913: [19:42:00] <Pyromanik> but also
914: [19:42:00] <Pyromanik> so watwatinthebutt to you there FrozenFire
915: [19:42:00] <ec8or> doing it via the cms you would have better control over what to post where and when
916: [19:42:00] <Pyromanik> not derpface stamped with every intermediary service from here to the sun and back
917: [19:42:00] <FrozenFire> Wat
918: [19:42:00] <SphereSilver> It's just for the cool geek-factor dude :) And I'm happy it finally works :)
919: [19:42:00] <FrozenFire> Which, to be frank, SS suffers heavily from.
920: [19:42:00] <Pyromanik> yes
921: [19:43:00] <Pyromanik> http://www.youtube.com/watch?v=fbGkxcY7YFU
922: [19:43:00] <SphereSilver> FrozenFire: It's not always about usefulness, but also often about "just making it work" :)
923: [19:43:00] * DigNZ has joined #silverstripe
924: [19:43:00] * DigNZ quit (Remote host closed the connection)
925: [19:43:00] <Pyromanik> or rather making it work in the way you want it to
926: [19:43:00] <SphereSilver> I actually already have built in a "tekst to post" function, etc. :P
927: [19:44:00] <Pyromanik> I've been given the task of writing a user manual for a huge back end we've done, and was only supplied 3 hours for it.
928: [19:44:00] <FrozenFire> I'm still inclined to wat
929: [19:44:00] * DigNZ has joined #silverstripe
930: [19:44:00] <Pyromanik> which is fine if you don't have time constraints
931: [19:44:00] * ARNHOE has joined #silverstripe
932: [19:45:00] <Pyromanik> the facebook thing is fine, get over it.
933: [19:45:00] <FrozenFire> Wat
934: [19:45:00] <Pyromanik> get over it
935: [19:45:00] <Pyromanik> are we talking about sex or coding, I've lost track ?
936: [19:45:00] * FrozenFire goes back to reverse engineering his bleeding edge code
937: [19:45:00] <Pyromanik> that is wat alright.
938: [19:45:00] <FrozenFire> Nah, I'm watting at the Facebook thing
939: [19:45:00] <Pyromanik> "oh just take a few screenshots and explain what they do"
940: [19:45:00] <Pyromanik> wat
941: [19:46:00] <Pyromanik> lol
942: [19:46:00] <FrozenFire> Both
943: [19:46:00] <FrozenFire> Enhance your PHPness
944: [19:47:00] <FrozenFire> SphereSilver, It's something of an inside joke.
945: [19:47:00] <SphereSilver> You need to reverse engineer your own code. Right. That makes you master of... ehm... no, nevermind.
946: [19:48:00] <irogue> [08:46] <FrozenFire> Enhance your PHPness
947: [19:48:00] <SphereSilver> Yeah, I'd say that too if I were you :D
948: [19:49:00] <FrozenFire> Who?
949: [19:49:00] <irogue> i go hunting, find it, am like "for srs?"
950: [19:49:00] <irogue> didn't actually say in blog post what the shirt said
951: [19:49:00] <irogue> RAGE RAGE RAGE PHP IS SEXIST RAGE RAGE
952: [19:49:00] <irogue> i cracked up at that one woman's epic rage
953: [19:49:00] <irogue> ah yes
954: [19:50:00] <FrozenFire> I agree that it's a wholesale overreaction.
955: [19:50:00] <irogue> some people need to get a life if they are seriously offended by that
956: [19:50:00] <FrozenFire> Meh. There's a whole backstory to it that most people aren't really aware of.
957: [19:51:00] <FrozenFire> But, their hearts are in the right place. The concern is the inclusiveness of the PHP community, and apparently some people are made uncomfortable by such things.
958: [19:51:00] <FrozenFire> I don't think most of you are actually involved in the "core" PHP community, so you might not be aware of how important inclusiveness is to those who are.
959: [19:52:00] <irogue> that'll fix it!
960: [19:52:00] <irogue> maybe y'all need to also offer a PHPgina shirt next time
961: [19:52:00] <FrozenFire> XD
962: [19:53:00] * ss23 quit (Ping timeout: 252 seconds)
963: [19:54:00] * Kapdap quit (Ping timeout: 256 seconds)
964: [19:54:00] * ss23 has joined #silverstripe
965: [19:55:00] <SphereSilver> http://goo.gl/yCoLb
966: [19:55:00] * r3v3rb has joined #silverstripe
967: [19:59:00] * ss23 quit (Remote host closed the connection)
968: [19:59:00] * ss23 has joined #silverstripe
969: [20:03:00] <ARNHOE> How can I get the latest tweets through restfulservice?
970: [20:03:00] * ss23 quit (Ping timeout: 255 seconds)
971: [20:06:00] <Pyromanik> FrozenFire: irogue, what's this?
972: [20:07:00] <Pyromanik> mmm
973: [20:07:00] <FrozenFire> http://blog.calevans.com/2013/02/22/sexism-and-php/
974: [20:07:00] * lx-berlin has left #silverstripe
975: [20:07:00] <Pyromanik> irogue i cracked up at that one woman's epic rage
976: [20:07:00] <FrozenFire> Pyromanik, The Enhance your PHPness thing?
977: [20:08:00] * Motoservo_ has joined #silverstripe
978: [20:08:00] <ec8or> that's not a woman though?
979: [20:09:00] * Motoservo quit (Ping timeout: 240 seconds)
980: [20:09:00] <Pyromanik> it's a ladyboy
981: [20:09:00] <ec8or> or if it is she is offended as a man
982: [20:09:00] <Pyromanik> ...
983: [20:09:00] <Pyromanik> wtf
984: [20:09:00] <Pyromanik> yes
985: [20:09:00] <Pyromanik> As a board member of PHPWomen.org
986: [20:09:00] <Pyromanik> As a man, I?m embarrassed
987: [20:09:00] <Pyromanik> OFFENDED AT EVERYTHING
988: [20:09:00] <Pyromanik> lolwut -.-
989: [20:09:00] * Motoservo_ is now known as Motoservo
990: [20:10:00] <Pyromanik> typical white folks tbh
991: [20:10:00] <ec8or> https://o.twimg.com/1/proxy.jpg?t=FQQVBBgpaHR0cHM6Ly90d2l0cGljLmNvbS9zaG93L2xhcmdlL2M1eGt5NS5qcGcUAhYAEgA&s=7kNYIQapu1aRqJIbKsnymCVFthPxHlwoqmtL3YH5GyY
992: [20:10:00] <ec8or> i don't even get it, is it supposed to sound like penis?
993: [20:10:00] <Pyromanik> GET MAD ABOUT INSIGNIFICANT SHIT ON BEHALF OF OTHER SUPER MINORITIES
994: [20:10:00] <Pyromanik> ec8or: yeh
995: [20:10:00] <ec8or> women = super minorities? :)
996: [20:11:00] <FrozenFire> That wasn't the thing by the woman, no.
997: [20:11:00] <FrozenFire> I don't know what that was about.
998: [20:11:00] <FrozenFire> Thought you were asking about the issue in general
999: [20:11:00] <Pyromanik> ec8or: no, but the women who would find offence in that shirt should be.
1000: [20:11:00] <ec8or> i am quite pleased for anyone getting upset about anything tbh
1001: [20:11:00] <Pyromanik> I'm with Linus Torvolds.
1002: [20:11:00] <ec8or> is he upset?
1003: [20:11:00] <ec8or> then i'm with him too
1004: [20:11:00] <Pyromanik> People who are going to take offence should.
1005: [20:12:00] * Kapdap has joined #silverstripe
1006: [20:12:00] <Pyromanik> nah
1007: [20:12:00] <Pyromanik> he made a comment about upsetting people
1008: [20:12:00] <Pyromanik> and how he loves the smell of their sweet tears
1009: [20:12:00] <Pyromanik> and they fuel his awesomeness
1010: [20:12:00] <Pyromanik> or something like that
1011: [20:12:00] * scpi has joined #silverstripe
1012: [20:12:00] <ARNHOE> How can I extend this to getting more then 1 tweet? http://sspaste.com/paste/show/512bc5ac6c19c changing the count in the url doesn't change anything
1013: [20:13:00] <Pyromanik> ec8or: http://en.wikiquote.org/wiki/Linus_Torvalds#2012
1014: [20:13:00] <Pyromanik> second quote
1015: [20:13:00] <ec8or> haha
1016: [20:13:00] <ec8or> that is great
1017: [20:13:00] <Pyromanik> same talk he gave as the source for the third quote, lol.
1018: [20:14:00] <Pyromanik> I watched it, it was fantastic
1019: [20:15:00] <Pyromanik> in this post: http://blog.calevans.com/2013/02/22/sexism-and-php/ - SERIOUS BUTTHURT
1020: [20:15:00] <FrozenFire> ARNHOE, Huah
1021: [20:16:00] <SphereSilver> Arnhoe: step one is using json, step two is using https, step three is, you're fucked since you're not using oAuth.
1022: [20:16:00] <Pyromanik> ARNHOE: changing the count param should work fine
1023: [20:16:00] <FrozenFire> ARNHOE, Using a count of 2, I get two statuses
1024: [20:16:00] <Pyromanik> type it into your browser
1025: [20:16:00] <catcher> ARNHOE, looks to me like you're not looping through the results
1026: [20:16:00] <FrozenFire> Not sure why you think you're not
1027: [20:16:00] <SphereSilver> You can't anymore soon; Twitter is migrating to an enforced oAuth method, even when requesting the open API
1028: [20:16:00] <Pyromanik> probably because of what catcher just said
1029: [20:16:00] <FrozenFire> ARNHOE, Also, what the fuck.
1030: [20:17:00] <Pyromanik> also
1031: [20:17:00] <Pyromanik> he's not using string manips
1032: [20:17:00] <ARNHOE> I am have no idea what I am doing here actually, tbh
1033: [20:17:00] <FrozenFire> Use DOMDocument.
1034: [20:17:00] <FrozenFire> Because that's retarded.
1035: [20:17:00] * willr has joined #silverstripe
1036: [20:17:00] <SphereSilver> and why not use Convert::XML2Array()?
1037: [20:17:00] * Kapdap has joined #silverstripe
1038: [20:17:00] <Pyromanik> preg all the things!
1039: [20:17:00] * Kapdap quit (Remote host closed the connection)
1040: [20:17:00] <FrozenFire> Use DOMDocument
1041: [20:17:00] <FrozenFire> Don't use string manipulation to parse XML
1042: [20:18:00] <Pyromanik> catcher: it does if you use the .json instead of the .xml
1043: [20:18:00] <Pyromanik> because that's all one CAN do
1044: [20:18:00] <Pyromanik> THEN uses string manip
1045: [20:18:00] * UncleCheese quit (Quit: UncleCheese)
1046: [20:18:00] <Pyromanik> gets the value of a node
1047: [20:18:00] <FrozenFire> If you do not know how to use DOMDocument as a PHP programmer, you are a bad PHP programmer.
1048: [20:18:00] <Pyromanik> using simplexml, iirc
1049: [20:18:00] <catcher> indeed
1050: [20:18:00] <FrozenFire> catcher, He's getting the XML variant
1051: [20:18:00] <catcher> doesn't it return json that you can json_decode?
1052: [20:19:00] <FrozenFire> Though, I hate JSON for such things.
1053: [20:19:00] <FrozenFire> People have latched onto JSON because it is so shitty that any monkey can figure it out
1054: [20:19:00] <FrozenFire> It lacks any semantics
1055: [20:19:00] <SphereSilver> why FrozenFire ?
1056: [20:19:00] <SphereSilver> request "user_timeline.json", then, json_decode($string, 1)
1057: [20:20:00] <Pyromanik> yes and no
1058: [20:20:00] <FrozenFire> It's only suitable for one thing: Passing data into Javascript.
1059: [20:20:00] <FrozenFire> It lacks a schema, and lacks semantics.
1060: [20:20:00] <SphereSilver> I somewhat agree, and somewhat disagree.
1061: [20:20:00] <Pyromanik> yes and no
1062: [20:21:00] <SphereSilver> But, for example, requesting a twitter-feed, using json is just fine
1063: [20:21:00] <FrozenFire> Those are indeed women
1064: [20:21:00] <Pyromanik> well
1065: [20:21:00] <SphereSilver> well, that's pretty much what I was about to say. It is fine to pass to js, but more complex stuff handling in actual code, it's "just not there"
1066: [20:21:00] <Pyromanik> https://o.twimg.com/1/proxy.jpg?t=FQQVBBgpaHR0cHM6Ly90d2l0cGljLmNvbS9zaG93L2xhcmdlL2M1eGt5NS5qcGcUAhYAEgA&s=7kNYIQapu1aRqJIbKsnymCVFthPxHlwoqmtL3YH5GyY
1067: [20:21:00] <Pyromanik> those birds are hot
1068: [20:21:00] <Pyromanik> also
1069: [20:21:00] <FrozenFire> Yes and yes.
1070: [20:21:00] <Pyromanik> wearing penis shirts!
1071: [20:21:00] <Pyromanik> yeh
1072: [20:22:00] * ss23 has joined #silverstripe
1073: [20:22:00] <FrozenFire> If your format lacks a document to describe WTF it is, then you're a bad programmer.
1074: [20:22:00] <FrozenFire> willr, And those services are just as shitty.
1075: [20:22:00] <SphereSilver> willr: Stop talking about WSDL's that are actually YHMCXMLF!
1076: [20:22:00] <Pyromanik> GASP, THE HORROR
1077: [20:22:00] <willr> FrozenFire yeah but how many people actually pass semantics such as wdsl's in their xml. Most services are just <foo>Who knows</foo>
1078: [20:23:00] <willr> and might as well use JSON :P
1079: [20:23:00] <FrozenFire> Also, an extension of the reason JSON sucks is that it lacks types.
1080: [20:23:00] <FrozenFire> Everything's a string, for the most part.
1081: [20:23:00] <SphereSilver> sorry, it's actually YFUHMCXMLF
1082: [20:24:00] <SphereSilver> I must admit, I've never used the twitter json feed in any other way than by having it parsed by javascript though.
1083: [20:24:00] <SphereSilver> the twitter json-response is actually not bad, but then again, it has only 3 or 4 levels of useful information
1084: [20:24:00] <FrozenFire> And you have to jump hoops to figure out what the value is.
1085: [20:25:00] <FrozenFire> If for no other reason than that PHP's json support is... lacklustre.
1086: [20:25:00] <Pyromanik> FrozenFire: not true. An integer is an integer, and a float is a float. An object and object and an array an array.
1087: [20:25:00] <SphereSilver> FrozenFire: Yes, I would, but never encountered that situation yet. That's why I'm saying, json is okay, but not always ;)
1088: [20:25:00] <Pyromanik> also supports booleans
1089: [20:25:00] <Pyromanik> so yeah
1090: [20:25:00] <FrozenFire> The JSON response is viable if you're loading those statuses into a feed on your site, using Javascript.
1091: [20:25:00] <FrozenFire> But if you're loading it in using PHP, and performing any sort of transformations, use XML.
1092: [20:26:00] <Pyromanik> I'd say it has types.
1093: [20:26:00] <FrozenFire> I might be wrong in that regard.
1094: [20:26:00] <FrozenFire> Perhaps a better way to put it is, people fuck up when loading data into a JSON format
1095: [20:26:00] <SphereSilver> Pyromanik: I was just testing some json in php parsing....
1096: [20:26:00] <FrozenFire> And things often end up as strings.
1097: [20:26:00] <SphereSilver> if the "boolean" is false, it'll parse empty, it seems.
1098: [20:26:00] <Pyromanik> FrozenFire: that's teh fault of bad schema
1099: [20:26:00] <Pyromanik> also, the KEY is used as keys are, identifiers for the data in it's value
1100: [20:27:00] <Pyromanik> so while it may not be 'semantic', it's not void of information.
1101: [20:27:00] <Pyromanik> as for object types
1102: [20:28:00] <Pyromanik> remember it comes from JS, where there are no classes.
1103: [20:28:00] <Pyromanik> only objects, which are mutable.
1104: [20:28:00] <FrozenFire> Yup.
1105: [20:28:00] <Pyromanik> so it's up to the programmer to get around that.
1106: [20:28:00] <FrozenFire> So don't use that shit in formalized contexts, where breaking matters.
1107: [20:28:00] <Pyromanik> yeah, but same could be said about the entire ECMAScript language
1108: [20:29:00] <Pyromanik> it's a subset of
1109: [20:29:00] <Pyromanik> but JS doesn't have strict protection around encapsulating data
1110: [20:29:00] <FrozenFire> JSON is not ECMAScript
1111: [20:29:00] <Pyromanik> no it's not
1112: [20:29:00] <SphereSilver> At least it's not SOAP :P
1113: [20:30:00] <Pyromanik> and all loose typed languages.
1114: [20:30:00] <Pyromanik> so shit can break pretty easy when you overwrite a property you shouldn't.
1115: [20:30:00] <Pyromanik> or set it to a value you shouldn't.
1116: [20:30:00] <Pyromanik> but then
1117: [20:30:00] <Pyromanik> same can be said of PHP
1118: [20:30:00] <SphereSilver> php has the same bug.
1119: [20:30:00] <Pyromanik> to a point
1120: [20:30:00] <Pyromanik> either
1121: [20:31:00] <SphereSilver> every language lacks this protection. afaik
1122: [20:31:00] <Pyromanik> so just fucking code ASM, because it's the most semantic of all the things.
1123: [20:31:00] <Pyromanik> oh I see what you mean
1124: [20:31:00] <SphereSilver> true, but it shouldn't be possible if you ask me (although I must admit, I sometimes abuse this)
1125: [20:31:00] <Pyromanik> well yeah, that's a scope issue.
1126: [20:31:00] <SphereSilver> Actually, try C++. You can set a pointer twice in two different functions and the builder won't complain.
1127: [20:32:00] <FrozenFire> ASM isn't semantic. :P
1128: [20:32:00] <Pyromanik> everyone should learn
1129: [20:32:00] <FrozenFire> Well, not unless you have an interest in computer science.
1130: [20:32:00] <FrozenFire> It has not type protections.
1131: [20:32:00] <FrozenFire> no**
1132: [20:32:00] <Pyromanik> it has no types -.-
1133: [20:32:00] <FrozenFire> Exactly. :P
1134: [20:32:00] <FrozenFire> That's about as loose as you get with typing
1135: [20:32:00] <SphereSilver> I don't know ASM. Should I learn it?
1136: [20:32:00] <Pyromanik> http://assets0.ordienetworks.com/images/GifGuide/DealWithIt/foreverdealwithit.gif
1137: [20:32:00] <FrozenFire> Garbage in, garbage out.
1138: [20:32:00] <FrozenFire> SphereSilver, No
1139: [20:32:00] <Pyromanik> yes
1140: [20:33:00] <SphereSilver> I think I got a new thingy to learn :D
1141: [20:33:00] <Pyromanik> lol
1142: [20:33:00] <Pyromanik> SphereSilver: just get into the emu scene
1143: [20:33:00] <FrozenFire> SphereSilver, If you learn it, learn it on an 8080 processor emulator
1144: [20:33:00] <SphereSilver> FrozenFire: I'm a BSc in applied physics...
1145: [20:33:00] <FrozenFire> It's a mess.
1146: [20:33:00] <FrozenFire> Don't try learning x86 assembly
1147: [20:33:00] <FrozenFire> It gives you insight into how things are working at the lowest level.
1148: [20:33:00] <Pyromanik> yes exactly FrozenFire
1149: [20:33:00] <FrozenFire> But the knowledge of the language itself is useless.
1150: [20:33:00] <Pyromanik> not fluently
1151: [20:33:00] <Pyromanik> though I admit, just enough
1152: [20:34:00] <Pyromanik> do: /join #mupen64plus
1153: [20:34:00] <Pyromanik> done
1154: [20:34:00] <SphereSilver> I will :D
1155: [20:34:00] <Pyromanik> learn ARM
1156: [20:34:00] <Pyromanik> or MIPS
1157: [20:34:00] <FrozenFire> Indeed. Nintendo used the 8080 arch for quite some time.
1158: [20:34:00] <SphereSilver> why would I want to learn ARM based coding?
1159: [20:34:00] <Pyromanik> because
1160: [20:34:00] <FrozenFire> It's good for learning, because back then people actually wrote assembly. :P
1161: [20:35:00] <FrozenFire> SphereSilver, Typically you don't learn "ARM based coding"
1162: [20:35:00] <FrozenFire> You learn to write the correct ifdefs in your C compiler to compile to ARM. :P
1163: [20:35:00] * SphereSilver looks at 5 Raspberry Pi's
1164: [20:36:00] <SphereSilver> FrozenFire: I've been part of the team behind XBian, which is XBMC for Raspberry Pi. I've compiled/edited Debian-based kernels to compile on ARM-based systems ;)
1165: [20:36:00] <SphereSilver> either we are not on the same line, or... yeh :P
1166: [20:37:00] <FrozenFire> I know enough C and Assembly to read it.
1167: [20:37:00] <FrozenFire> For debugging purposes.
1168: [20:37:00] <irogue> https://dl.dropbox.com/u/4618071/gaymarriagefans.png <-- well played, Chrome
1169: [20:37:00] <FrozenFire> I've written a bit of each, but I'm not competent with them by any means.
1170: [20:37:00] <FrozenFire> In fact, you certainly do.
1171: [20:37:00] <FrozenFire> You might know more than I do on the matter.
1172: [20:37:00] <SphereSilver> I'm not saying I know everything about ARM based systems though. But I had my share :)
1173: [20:39:00] * Pyromanik has left #silverstripe
1174: [20:39:00] <FrozenFire> Then why did you ask about learning assembly? :P
1175: [20:39:00] <SphereSilver> While I was studying, in the last two years, I was almost daily working with embedded, assembly etc.
1176: [20:40:00] <irogue> "In a look at the number of vulnerabilities recorded over 25 years in software products and open source, a researcher at Sourcefire has determined that Microsoft Windows XP and the Mozilla Firefox browser stand out as the two with the largest number of high-severity vulnerabilities."
1177: [20:40:00] <SphereSilver> I didn't ;) I didn't know the short "ASM", I'm used to AMY (dunno, but at uni, we called it that)
1178: [20:41:00] <SphereSilver> http://i.imgur.com/AFiYu8r.gif
1179: [20:41:00] <irogue> hi r3v3rb, how art thou today?
1180: [20:41:00] <SphereSilver> I'm gonna do better then irogue on "can't stop watching"
1181: [20:41:00] <FrozenFire> Heh. "ASM" is pretty standard shorthand for assembly
1182: [20:41:00] <r3v3rb> hi all
1183: [20:42:00] <SphereSilver> and it seems this is not the standard short
1184: [20:42:00] <r3v3rb> :\
1185: [20:42:00] <r3v3rb> though art frustrated
1186: [20:42:00] <irogue> wait, people call assembly something *other* than ASM?
1187: [20:42:00] <SphereSilver> irogue: yes, I'm used to calling it AMY...
1188: [20:42:00] <irogue> i've never done any university or remotely touched ASM and i know it's called ASM :-P
1189: [20:43:00] <SphereSilver> I seriously can't recall I ever heard about ASM. I only know the short "AMY"
1190: [20:43:00] <irogue> catcher: kekeke
1191: [20:43:00] <catcher> gets uncomfortable when talking about the Organization of Assembly in shorthand.
1192: [20:43:00] <irogue> r3v3rb: why for art thou frustrated?
1193: [20:43:00] <SphereSilver> yes, Organisation of Ass AMY?
1194: [20:43:00] <SphereSilver> ehhh, I shorted wrong, nvm
1195: [20:43:00] <catcher> :)
1196: [20:43:00] <irogue> i like you.
1197: [20:44:00] <r3v3rb> for art thy sql noteth worketh welleth
1198: [20:45:00] <r3v3rb> Ah ha, romeo I have foundeth the causeth of thine problem!
1199: [20:45:00] <SphereSilver> I know that one!
1200: [20:45:00] <FrozenFire> XD
1201: [20:45:00] <irogue> oohhhh, sql
1202: [20:45:00] <SphereSilver> who the fuck is romeo?
1203: [20:45:00] <r3v3rb> IPN test is working and responding :D
1204: [20:45:00] <FrozenFire> Quick, let's all have a fight: How do you pronounce SQL?
1205: [20:45:00] <SphereSilver> It's ehhhhh
1206: [20:45:00] <SphereSilver> Stretched Question Lift!
1207: [20:46:00] <r3v3rb> squeakall
1208: [20:46:00] <SphereSilver> es-queue-el
1209: [20:46:00] * FrozenFire waits for someone with an MS background
1210: [20:46:00] <SphereSilver> I love squeakall! I'm gonna make it "Squeek all"
1211: [20:47:00] <SphereSilver> pronounciation: "Squeeze a rubber-ducky"-all
1212: [20:48:00] <SphereSilver> FrozenFire: Emmes-{insert-pronounciation-here}
1213: [20:48:00] * SightUnseen has joined #silverstripe
1214: [20:48:00] <FrozenFire> They pronounce it "MS Sequel"
1215: [20:48:00] * SightUnseen has left #silverstripe
1216: [20:49:00] <SphereSilver> really? ok :)
1217: [20:50:00] <FrozenFire> Yup.
1218: [20:50:00] <SphereSilver> I'm used to "emmes-es-queue-el"
1219: [20:50:00] <FrozenFire> The way I pronounce it is S Q L, individual letters.
1220: [20:51:00] <r3v3rb> you cannot pronounce it, it is an abbreviation!
1221: [20:51:00] <FrozenFire> *You* use S Q L
1222: [20:51:00] <r3v3rb> in which case you use S Q L individually
1223: [20:51:00] <r3v3rb> you can say it
1224: [20:51:00] <SphereSilver> but from now on, I'm gonna call it squeek-all
1225: [20:51:00] <SphereSilver> that's the same as my pronounciation: "es-queue-el" ;)
1226: [20:52:00] <SphereSilver> O_o
1227: [20:52:00] <r3v3rb> but by definition its 'Structured Query Language'
1228: [20:52:00] <SphereSilver> you don't say!
1229: [20:52:00] <r3v3rb> for example you don't say hetetepeh
1230: [20:53:00] <r3v3rb> SphereSilver: lmao
1231: [20:53:00] <SphereSilver> gotta pee, brb
1232: [20:53:00] <SphereSilver> age-tee-tee-pee
1233: [20:53:00] <r3v3rb> :D
1234: [20:53:00] <r3v3rb> SphereSilver: O_o
1235: [20:53:00] <r3v3rb> do you?
1236: [20:53:00] <r3v3rb> when you use H T T P
1237: [20:54:00] <irogue> i've sometimes (ironically) said "hi-tuh-tuh-puh" for HTTP
1238: [20:54:00] <SphereSilver> I've once had a client, that was going to spell a URI for me
1239: [20:54:00] <irogue> the client stories i could tell...
1240: [20:54:00] <r3v3rb> irogue: stop it...
1241: [20:54:00] <r3v3rb> :D
1242: [20:54:00] <r3v3rb> right confirmation emails to setup
1243: [20:55:00] <irogue> typo'd
1244: [20:55:00] <SphereSilver> "Ok, here it goes. Age, as in the letter. Then two Tee's, as in the T"
1245: [20:55:00] <r3v3rb> don't get me started
1246: [20:55:00] <SphereSilver> after that, I hung up
1247: [20:55:00] <irogue> my clients are all supposted to be IT Pros
1248: [20:55:00] <irogue> being that we're a wholesaler of networking gear
1249: [20:55:00] <FrozenFire> Supposted
1250: [20:55:00] <FrozenFire> You're supposed to be an IT pro with the keyboards.
1251: [20:55:00] <SphereSilver> a client that's an IT-Pro is the same as you knowing exactly what wavelengths are visible to the human eye.
1252: [20:55:00] <irogue> shh
1253: [20:55:00] <r3v3rb> pah, no typ0s allow3d
1254: [20:56:00] <FrozenFire> Wat
1255: [20:56:00] <SphereSilver> without wikipedia or a book ;)
1256: [20:56:00] <SphereSilver> no, "that is awesome dude"
1257: [20:56:00] <nimeso> Hey yop! has anyone got SS working with PHP 5.4 ... mainly wampserver?
1258: [20:56:00] <irogue> anyway, i find myself on a daily basis having to explain things like why you can't access management interface of two managed switches when they're connected together
1259: [20:56:00] <SphereSilver> under Windows, it'll suck anyway ;)
1260: [20:56:00] <FrozenFire> nimeso, Don't see why you'd have any issue
1261: [20:56:00] <irogue> (because they both have the same default IP, which is now clashing)
1262: [20:57:00] <FrozenFire> Why are you letting them clash?
1263: [20:58:00] <sminnee> nimeso: yeah it should be okay.
1264: [20:58:00] <nimeso> it says to downgrade to wamp 2.2d but that does not have php 5.4
1265: [20:58:00] <irogue> because these people aren't smart enough to change one first
1266: [20:58:00] <nimeso> http://www.silverstripe.org/installing-silverstripe/show/20553
1267: [20:59:00] <SphereSilver> nimeso: The best method of testing is to have an actual server-system. WAMP is not even close to being a compare to a server.
1268: [20:59:00] <irogue> and then says "neither of them work, they don't connect to ADSL"
1269: [20:59:00] * Colin[pi] has joined #silverstripe
1270: [20:59:00] <irogue> had a customer yesterday who bought a router, brought it back claiming it wasn't working, got a different model, brought that back as well
1271: [20:59:00] <sminnee> nimeso: I haven't used WAMP much, sorry.
1272: [20:59:00] <irogue> they were both Ethernet WAN routers. i can only assume he was jamming the RJ11 plug into an RJ45 socket
1273: [20:59:00] <SphereSilver> A Raspberry Pi could make a better server than WAMP
1274: [20:59:00] <FrozenFire> nimeso, What version of SS are you trying to run?
1275: [21:00:00] <FrozenFire> irogue, Why is that person allowed to even touch networking hardware? :P
1276: [21:00:00] <nimeso> LOL
1277: [21:00:00] <nimeso> Yes but the point is it should work
1278: [21:00:00] <nimeso> yer, I know... I'm not great with servers :/
1279: [21:00:00] <FrozenFire> And why are you having to support him?
1280: [21:00:00] <irogue> this guy had the word "Expert" in his company name
1281: [21:00:00] * Pyromanik has joined #silverstripe
1282: [21:01:00] <FrozenFire> Like, what do you do?
1283: [21:01:00] <Pyromanik> nimeso: you can get packages
1284: [21:01:00] <irogue> FrozenFire: cos that's my job... :/
1285: [21:01:00] <FrozenFire> What's your job?
1286: [21:01:00] <SphereSilver> irogue: I've had more fun:
1287: [21:01:00] <Pyromanik> modules of php and apache that you can switch between
1288: [21:01:00] <Pyromanik> he faps at work
1289: [21:01:00] <SphereSilver> "Why doesn't a simple Cisco router work? It works at my home, why shouldn't it work here?"
1290: [21:01:00] <nimeso> as in package for wamp that is php 5.4? tried that... fail
1291: [21:01:00] <irogue> FrozenFire: tech support for a networking wholesaler. i'm the NZ tech support guy for all of the brands we sell
1292: [21:01:00] <SphereSilver> We (my freelance-boss) answered "Let us show you"
1293: [21:02:00] <Pyromanik> nimeso: also, with wamp, you have to delete index.php
1294: [21:02:00] <sminnee> nimeso: yeah it should work. From reading that post, it sounds like it was Apache, rather than PHP 5.4, causing the problems.
1295: [21:02:00] <FrozenFire> nimeso, Running a WAMP server is actually probably harder for you than running a LAMP server.
1296: [21:02:00] <SphereSilver> within 5 minutes, the entire system collapsed :D
1297: [21:02:00] <nimeso> I'll keep playing but it's really really anoying
1298: [21:02:00] <SphereSilver> We got the job
1299: [21:02:00] <FrozenFire> You should just spin up a Ubuntu Server VM using VirtualBox
1300: [21:02:00] <Pyromanik> because it's configured retardedly.
1301: [21:02:00] <SphereSilver> we THEN went to the superviser and said "Look, this is why we do what we do"
1302: [21:03:00] <Pyromanik> you can tick them on using the little systray thing
1303: [21:03:00] <nimeso> Awesome! thanks heaps guys!... will try that out
1304: [21:03:00] <Pyromanik> nimeso: you're probably missing a few extensions and/or modules
1305: [21:04:00] <nimeso> no, I've checked all mods and install works fine with no errors... phpinfo says mod rewrite working but SS does not think so.... delete index.php... I'll try that, sounds drastic thou
1306: [21:04:00] <sminnee> nimeso: deleting index.php should fix the issue as Pyromanik suggests; I've posted to forum saying so.
1307: [21:06:00] <SphereSilver> Also, optionally, if deleting index.php doesn't work, you could try setting Director::setBaseURL('/'); in your _config of your core module
1308: [21:06:00] <sminnee> nimeso: The issue is that index.php is there for when mod_rewrite is broken. Ordinarily, it is ignored by any server that has mod_rewrite enabled. For some reason, more recent versions of Apache have an issue with this, but only when running on Windows. You shouldn't have any bad side-effects if you delete index.php, precisely because it is only intended for non-rewrite-based installs.
1309: [21:07:00] <nimeso> Nice :) thanks ssooooooo much all! I've got to go to my sons school for a meeting then I'll give it a crack when home. Awesome! again thanks heaps
1310: [21:20:00] <ARNHOE> I am trying to read XML file and change it to a dataobject show I can show it in my template, the examples on http://doc.silverstripe.org/framework/en/trunk/reference/restfulservice all seem to be outdated. I have changed the decrapted function connect to request, but I still can't get it working
1311: [21:23:00] <nimeso> maybe look at http://doc.silverstripe.org/framework/en/3.1/reference/restfulservice
1312: [21:24:00] * FrozenFire repeats that a hundred times
1313: [21:24:00] <ARNHOE> I have checked all, 3.0, 3,1 and trunk there is no difference :(
1314: [21:24:00] <FrozenFire> ARNHOE, DOMDocument
1315: [21:24:00] * tankr has joined #silverstripe
1316: [21:25:00] * priithansen quit (Quit: priithansen)
1317: [21:27:00] <ARNHOE> FrozenFire: I am just a front-end developer, and then the next answer is probably leave it to the php developers. I am trying to learn and I am taking your advices seriously. But throwing the same word for "100" times is not gonna actually help me and I always google before asking my question here.
1318: [21:28:00] <FrozenFire> ARNHOE, Yup. I'm not trying to yell and you and say "YOU'RE DOING IT WRONG". I'm just telling you, that's how it's done.
1319: [21:28:00] <FrozenFire> Parsing an XML document is done using PHP's DOM extension.
1320: [21:28:00] <Pyromanik> FrozenFire: but just saying that isn't going to help him solve his problem
1321: [21:28:00] <Pyromanik> and as I said before
1322: [21:29:00] <ARNHOE> Pyromanik: thanks for understanding
1323: [21:29:00] <Pyromanik> it IS using an xml parse
1324: [21:29:00] <FrozenFire> The solution to his problem is learning PHP? Or just paying someone else to do it.
1325: [21:30:00] <tankr> ARNHOE: btw PHP DOM is pretty painful and difficult to use in my experience
1326: [21:30:00] <Pyromanik> FrozenFire: the restfulservice returns a simpleXML object, iirc
1327: [21:30:00] <Pyromanik> to which he is then correctly getting info from
1328: [21:30:00] <Pyromanik> which is a string of a date
1329: [21:30:00] <Pyromanik> to which he only wants a certain bit, so he HAS to substr it.
1330: [21:31:00] <Pyromanik> wouldn't matter if it was XML or JSON./
1331: [21:31:00] <FrozenFire> tankr, It's really not.
1332: [21:32:00] <Pyromanik> which in itself is...
1333: [21:32:00] <FrozenFire> $document = new DOMDocument($data);
1334: [21:32:00] <FrozenFire> $xpath = new DOMXPath($document);
1335: [21:32:00] <Pyromanik> lol
1336: [21:32:00] <Pyromanik> inherent knowledge of xpath
1337: [21:32:00] <FrozenFire> foreach($xpath->query("//Some/Path") as $item) { ... }
1338: [21:32:00] <Pyromanik> " pretty painful and difficult to use in my experience"
1339: [21:32:00] <FrozenFire> In the case of Twitter's API
1340: [21:33:00] <FrozenFire> foreach($xpath->query("//statuses/status") as $status) { $text = $xpath->evaluate("text", $status)->textContent; }
1341: [21:34:00] <tankr> it isn't quite as neat as something like jquery though is it..
1342: [21:34:00] <ARNHOE> I am getting information back with, http://sspaste.com/paste/show/512bd8c7a753a where I used a tutorial of Deadly Technology. But it seems to return an another product everything and this doesn't seem to work when using a loop
1343: [21:35:00] <FrozenFire> It's not the same syntax, no.
1344: [21:35:00] <FrozenFire> It really is at least as neat and tidy.
1345: [21:35:00] <FrozenFire> But pretty simple.
1346: [21:35:00] <ARNHOE> tankr: I am still trying to learn the more advanced part of PHP
1347: [21:36:00] <Pyromanik> FrozenFire: pretty simple if you know all the complexities of xpath and idiosyncrasies of the implementation
1348: [21:36:00] <FrozenFire> Wat
1349: [21:37:00] <tankr> ARNHOE: yep, ok. well good luck with that. some people find it easy obviously, but I don't particularly like it
1350: [21:37:00] <FrozenFire> XPath is complex and idiosyncratic? :P
1351: [21:37:00] <FrozenFire> // is the root of the document
1352: [21:37:00] <Pyromanik> sure for the most part. But it can be a real prick if you've never seen it before
1353: [21:37:00] <FrozenFire> / is the root of the relative context
1354: [21:38:00] <FrozenFire> Other than that, it's pretty simple.
1355: [21:38:00] <Pyromanik> yeh
1356: [21:38:00] <Pyromanik> basically
1357: [21:38:00] <FrozenFire> Which I presume every single person here has done.
1358: [21:38:00] <Pyromanik> I haven't.
1359: [21:38:00] <FrozenFire> Meh. It's only a prick if... you've never worked with SGML before (xml/html)
1360: [21:39:00] <FrozenFire> You have.
1361: [21:39:00] <FrozenFire> You've never seen HTML or XML before?
1362: [21:39:00] <Pyromanik> I have never looked at the xpath spec.
1363: [21:39:00] <FrozenFire> You don't need ot.
1364: [21:39:00] <FrozenFire> to**
1365: [21:39:00] <Pyromanik> sure you do
1366: [21:39:00] <FrozenFire> I've never looked at the XPath spec before.
1367: [21:39:00] <FrozenFire> And I use XPath almost every day.
1368: [21:39:00] <Pyromanik> then you just don't.
1369: [21:40:00] <irogue> yeah xpath and DOMDocument never made a lot of sense when i briefly looked into it
1370: [21:41:00] <Pyromanik> ^
1371: [21:41:00] <FrozenFire> o.O
1372: [21:41:00] <irogue> i always ended up using SimpleXML
1373: [21:41:00] <Pyromanik> xpath LOOKS simple
1374: [21:41:00] <Pyromanik> simpleXML isn't simple, no, but it happens to be what RestfulService returns.
1375: [21:41:00] <Pyromanik> so dealwithit.
1376: [21:41:00] <FrozenFire> It's arguably the worst-named thing in PHP.
1377: [21:41:00] <Pyromanik> and is, when you don't really use it
1378: [21:41:00] <FrozenFire> SimpleXML is extremely far away from being simple.
1379: [21:42:00] <Pyromanik> your original arguement was "don't use string work to parse XML:
1380: [21:42:00] <Pyromanik> ARNHOE was doing exactly as he should
1381: [21:42:00] <FrozenFire> So don't use RestfulService
1382: [21:42:00] <ARNHOE> What about my latest "update"
1383: [21:42:00] <ARNHOE> I am getting information back with, http://sspaste.com/paste/show/512bd8c7a753a where I used a tutorial of Deadly Technology. But it seems to return an another product everything and this doesn't seem to work when using a loop
1384: [21:42:00] <Pyromanik> just had a looping issue I think. Didn't look THAT closely.
1385: [21:42:00] <Pyromanik> "
1386: [21:43:00] <Nivery> thought I'd run this by you guys again: does the caption media field in the edit portion of Update Media not save changes for anyone else?
1387: [21:43:00] <Pyromanik> no idea what you're saying Nivery, sorry.
1388: [21:43:00] <tankr> ARNHOE: oh, are you doing display latest tweet or something?
1389: [21:43:00] <Pyromanik> to which I say he's not.
1390: [21:43:00] <Pyromanik> Maybe DOMDocument IS better than SimpleXML, but that's not what he's got.
1391: [21:43:00] <irogue> better != easier
1392: [21:43:00] <ARNHOE> Wouldn't it be better to do XML to DataObject ?
1393: [21:44:00] <Pyromanik> ARNHOE: oh, well that was what the code you pasted earlier was trying to do
1394: [21:44:00] <Pyromanik> Nivery: nope, hence the problem :P
1395: [21:44:00] <Pyromanik> right, gotcha
1396: [21:44:00] <ARNHOE> no no, I am not.
1397: [21:44:00] <Nivery> Pyromanik: do you know what field I'm referring to?
1398: [21:44:00] <ARNHOE> I am just using an tutorial of displaying latest tweet
1399: [21:44:00] <Pyromanik> yeh
1400: [21:45:00] <Pyromanik> rather than dataobject
1401: [21:45:00] <ARNHOE> 3.1 even
1402: [21:45:00] <Pyromanik> ok cool
1403: [21:45:00] <Pyromanik> well you probably want arraydata
1404: [21:45:00] <ARNHOE> But currently, it only's shows one product everytime, while it should show them all and I want to be able to define the fields in my template (Atleast thats how I think it should work?)
1405: [21:45:00] <Pyromanik> ARNHOE: You're working with 3.0?
1406: [21:46:00] <Pyromanik> unless you're trying to convert data into objects to save
1407: [21:47:00] <Pyromanik> use ArrayList
1408: [21:47:00] <ARNHOE> No, I am not trying to save anything and also I had some example of ArrayData, but it has to go through DataObjectSet first, but thats decrepated in 3.1
1409: [21:48:00] <Pyromanik> make an ArrayData with the product information, then push that ArrayData onto the end of an ArrayList
1410: [21:48:00] <Pyromanik> Nivery: well I never.
1411: [21:48:00] <Pyromanik> return the ArrayList to your template
1412: [21:48:00] <Nivery> Pyromanik: haha, i see. if you click on a picture in an HTMLEditorField, then click on the Insert Media button (tree), you get to the Update Media menu. From there, you can click edit and there's a field for caption text
1413: [21:49:00] <Nivery> but published changes to that field on a couple SS3 sites don't stick??? i didn't really intend for it to be used, but now that a client whined about it, i'm curious why it doesn't work
1414: [21:50:00] <Pyromanik> decorate Image with it, then profit :P
1415: [21:50:00] <Pyromanik> Nivery: probably because there's no caption field on Image.
1416: [21:50:00] <Pyromanik> so far as I know
1417: [21:50:00] <Pyromanik> I haevn't checked in quite some time
1418: [21:50:00] <Nivery> i didn't see one either
1419: [21:50:00] <Nivery> what is it in the cms for, then
1420: [21:50:00] * UndefinedOffset quit (Quit: Leaving.)
1421: [21:50:00] <Pyromanik> Nivery: no idea
1422: [21:51:00] <ARNHOE> Pyromanik: So here is the example that I had but that was for 2.4, http://sspaste.com/paste/show/512bdcc99f8ca
1423: [21:51:00] <ARNHOE> but weirdly enough, is doesn't return anything
1424: [21:52:00] <ARNHOE> But shouldnt product be, producten and then item, product?
1425: [21:52:00] <Pyromanik> ARNHOE: hmm
1426: [21:52:00] <ARNHOE> no errors either only when I change $Twitter->product->item to $Twitter->HereARandomWord->item.
1427: [21:52:00] <Pyromanik> probably an issue with the path by simplexml
1428: [21:52:00] <ARNHOE> seeing my xml file is, Producten -> Product -> Name etc
1429: [21:52:00] <Marvanni> in ss 2.4 I need to get a list of the Director rules which is set as private static
1430: [21:52:00] <Pyromanik> it follows the structure of your XML ARNHOE
1431: [21:52:00] <Pyromanik> you'll have to check there
1432: [21:52:00] <spronk> whaooo
1433: [21:52:00] <spronk> sublime text is now $701?
1434: [21:52:00] <Pyromanik> but the code itself looks alright
1435: [21:52:00] <Marvanni> any Idea to get that rules without hacking the core?
1436: [21:52:00] <spronk> 70*!?
1437: [21:52:00] <Pyromanik> dunno
1438: [21:53:00] <Marvanni> nop only addRules
1439: [21:53:00] <Pyromanik> spronk: lol
1440: [21:53:00] <Pyromanik> Marvanni: should be a getter somewhere, no?
1441: [21:53:00] * irogue tries to remember how much he paid for it
1442: [21:54:00] <ARNHOE> yes it is, catcher
1443: [21:54:00] <spronk> irogue: probably $59
1444: [21:54:00] <irogue> US$59
1445: [21:54:00] <spronk> dev has upped the price for ST3 release.
1446: [21:54:00] <ARNHOE> but, I think something is wrong with item. This is nowhere to be found in my xml file
1447: [21:54:00] <catcher> ARNHOE, is your template set up to <% loop getTwitterFeed %> $Name, $Date <% end_loop %> ?
1448: [21:55:00] <spronk> better strategy: lower the price.
1449: [21:55:00] <spronk> sigh.
1450: [21:56:00] <Pyromanik> also
1451: [21:56:00] <Pyromanik> oh only SEVENTY
1452: [21:56:00] <Pyromanik> not seven hundred and one
1453: [21:57:00] <Pyromanik> but if I did
1454: [21:57:00] <Pyromanik> I don't think they're worth over $20
1455: [21:57:00] <ARNHOE> or is item on the right place, catcher?
1456: [21:57:00] <Pyromanik> wouldn't pay more than $20 for an editor.
1457: [21:57:00] <Pyromanik> I've never paid anything for an editor. Probably won't ever.
1458: [21:57:00] <catcher> ARNHOE, if your product example is working aside from just returning one val, stick with it and make a proper list.
1459: [21:58:00] <ARNHOE> But how could I make that proper list? Because this example isn't working, the one I had before is working but is only returning one item at a time
1460: [21:58:00] <catcher> make a productList arraylist, and push arraydatas of multi-dim arrays (as pyro suggested)
1461: [21:58:00] <catcher> ARNHOE, as of now, that example overwrites $product on every iteration of your foreach.
1462: [22:00:00] <catcher> the productList needs to be declared before the foreach, and then follow the other example's arraydata/array push, it looks right.
1463: [22:02:00] * Motoservo quit (Quit: Over & out.)
1464: [22:03:00] <catcher> 1 sec
1465: [22:03:00] <ARNHOE> I wish I would understand what you mean! :(
1466: [22:06:00] <catcher> untested, but here's the idea: http://sspaste.com/paste/show/512bdcc99f8ca
1467: [22:07:00] <Pyromanik> Nivery: it's possible that the caption might supposed to go in the shorttag
1468: [22:07:00] <catcher> then your template will <% loop Tweet %> $textContent <% end_loop %>
1469: [22:08:00] * ajshort has joined #silverstripe
1470: [22:08:00] <Pyromanik> you'd have to trample through the parser to see what it's supposed to do and why it's broken if that's the case.
1471: [22:10:00] <ARNHOE> catcher: it first returns that its expecting a ( on line 3 (if xml etc) but I think it has a ) to much, and then it returns an unexpected {
1472: [22:10:00] * EPIK has joined #silverstripe
1473: [22:11:00] <catcher> and then you'll need an extra close
1474: [22:11:00] <catcher> yep, missing ( after 'array'
1475: [22:13:00] <Nivery> Pyromanik: heh, not sure i care that much :)
1476: [22:13:00] <ARNHOE> catcher: damn! now its working, but its only returning the sku (article id) now. Is there a easy way to define which xml fields the script should be reading?
1477: [22:14:00] <catcher> Yes, you can add more to your multi-dim array with 'otherField' => $dom->documentElement->otherField
1478: [22:14:00] <Nivery> Pyromanik: i don't even know what you mean by in the short tag, honestly
1479: [22:16:00] <catcher> ARNHOE, well, they have to exist in the XML source :)
1480: [22:16:00] <Pyromanik> Nivery: when stuff gets put into the CMS, it stops things from breaking (on case of file rename, page url segment change) by using a [link sitetreeid=#], I assume it does similar for files.
1481: [22:16:00] <ARNHOE> catcher: That returns the following, [Notice] Undefined property: DOMElement::$name
1482: [22:16:00] <ARNHOE> they do, <name>Barney World Champion Phase 3 90% 25 gram</name>
1483: [22:17:00] <Pyromanik> might do something like [image fileid=# caption='caption in here?']
1484: [22:17:00] <catcher> yes, you're in the sku context
1485: [22:17:00] <Nivery> Pyromanik: ah, i gotcha
1486: [22:17:00] <ARNHOE> mabye, its because of the sku ?
1487: [22:19:00] <ARNHOE> It only seems that I can take one variable, either sku or name. What am I doing wrong? I am trying to select product (which has name, sku etc)
1488: [22:21:00] <ARNHOE> catcher: with $sku = $xml->product; it seems to read everything. But when I remove textContent and replace it with Name. It still gives the same error as before
1489: [22:22:00] <catcher> haven't used it before, but you may be ble to $dom->loadXML($product->asXML()); instead
1490: [22:26:00] <ARNHOE> oke, well thanks for your help. Just need to get that last tiny bit now!
1491: [22:29:00] <catcher> if the items aren't related in the XML doc, you won't be able to relate them after the fact..
1492: [22:29:00] * Motoservo has joined #silverstripe
1493: [22:30:00] <catcher> if there's no relationship b/n them, that is.
1494: [22:35:00] * DesignerX has joined #silverstripe
1495: [22:36:00] <ARNHOE> catcher: I have sent you the xml file, since it has private info. But I would like to call $Name, $SKU etc in my template
1496: [22:36:00] * scpi quit (Quit: scpi)
1497: [22:36:00] <ARNHOE> I am trying to play with elementsbyid, nodevalue etc
1498: [22:37:00] * Nivery has left #silverstripe
1499: [22:40:00] * MichaelDesignerX has joined #silverstripe
1500: [22:42:00] * SightUnseen has joined #silverstripe
1501: [22:42:00] * SphereSilver quit (Quit: If it's not broke. It's lacking features.)
1502: [22:42:00] <catcher> ARNHOE, I'm certain there's a way to do this without 2 domDocuments, but something like this should work: http://sspaste.com/paste/show/512be88e43f71
1503: [22:43:00] <catcher> then use $name and $sku in your template
1504: [22:43:00] * SightUnseen has left #silverstripe
1505: [22:43:00] * DesignerX quit (Ping timeout: 248 seconds)
1506: [22:44:00] * FrozenFire wonders why the new API docs are completely lacking in any sort of sorting
1507: [22:44:00] <ARNHOE> catcher: that is working nicely, but I will be calling atlaest 5 more of those. Now I am not in the position to complain, but will this heard the performance?
1508: [22:44:00] <ARNHOE> hurt btw*
1509: [22:46:00] <catcher> ARNHOE, I would definitely research a way to do this with a single domDocument.
1510: [22:48:00] <catcher> maybe bump everything up in scope by one & flip through childNodes
1511: [22:50:00] * DesignerX has joined #silverstripe
1512: [22:52:00] * MichaelDesignerX quit (Ping timeout: 248 seconds)
1513: [22:57:00] * mrzero quit (Ping timeout: 255 seconds)
1514: [22:58:00] <Pyromanik> lololol, sort of sorting
1515: [23:00:00] <FrozenFire> catcher, The hell...
1516: [23:00:00] <FrozenFire> You're creating a new DOMDocument from a DOMNode exported as XML
1517: [23:00:00] <Pyromanik> FrozenFire: why don't you just write this for us and show us all how brilliant you are
1518: [23:00:00] <FrozenFire> What is that?
1519: [23:00:00] <FrozenFire> I don't even know how that could work.
1520: [23:01:00] <Pyromanik> :P
1521: [23:02:00] <nimeso> Hey all :) just to let you know.... I got php 5.4.3 wampserver running using wampserver2.2e-php5.4.3-httpd2.2.22-mysql5.5.24-x64.exe
1522: [23:02:00] <ARNHOE> Its not a twitter feed
1523: [23:02:00] <FrozenFire> ARNHOE, What do you want from the XML feed that twitter gives?
1524: [23:02:00] <nimeso> no idea why I had mod_rewrite issues... weird
1525: [23:02:00] <ARNHOE> FrozenFire: it is working perfectly though, but how should it be done then?
1526: [23:03:00] <FrozenFire> I'm missing the whole point of this, then.
1527: [23:03:00] <Pyromanik> nimeso: odd indeed, but you should still delete index.php
1528: [23:03:00] <ARNHOE> its just a tutorial where I haven't changed the function name yet
1529: [23:03:00] <ARNHOE> But I would like to call $Name in my template, instead of what it did before just showing everything of the XML. Since I want to style the page
1530: [23:03:00] <catcher> FrozenFire, it's a demo for packing up results in arraylist, i was certainly clear about the validity of the rest
1531: [23:03:00] <nimeso> ta Pyro
1532: [23:04:00] * dove has joined #silverstripe
1533: [23:05:00] <nimeso> Hey Arnhoe... does this help you at all? http://sspaste.com/paste/show/512bee2dd2ef2
1534: [23:06:00] <Pyromanik> but could be good for learning purposes
1535: [23:06:00] <nimeso> I'll read back
1536: [23:06:00] <nimeso> I missed a heap of your msgs... but maybe this could help you?
1537: [23:06:00] <Pyromanik> it's not a twitter feed he's doing
1538: [23:06:00] <nimeso> ok.... :)
1539: [23:07:00] <ARNHOE> and the name, sku etc I want to call those in my template so I can style them
1540: [23:07:00] <ARNHOE> I have a xml file that I can't show for security reasons. But it has the following setup. Producten, Product (name, sku, image_url, description, buy_url)
1541: [23:08:00] <ARNHOE> thanks for your example, nimeso. Ill save that!
1542: [23:08:00] <nimeso> Arnhoe... I'm thinking you need to convert the XML object into a DataObject or array so you can use in template
1543: [23:09:00] * dove quit (Ping timeout: 245 seconds)
1544: [23:09:00] <nimeso> arnhoe... are you still using this ... http://sspaste.com/paste/show/512bd8c7a753a
1545: [23:09:00] <nimeso> I'm not that smart but will try and paste some code
1546: [23:10:00] <ARNHOE> nimeso: http://sspaste.com/paste/show/512bef50aed21 is my latest
1547: [23:12:00] <nimeso> ok... you already have $productList->push(new ArrayData(.... you should just need to add in some other template vars... eg: "Sku" => ...
1548: [23:12:00] <nimeso> You already have 'Name' is that not working in a template?
1549: [23:12:00] * UncleCheese has joined #silverstripe
1550: [23:13:00] <catcher> nimeso, the template formation stuff is good, he's just looking for a better way to read the xml.
1551: [23:13:00] <ARNHOE> What do you mean? The latest version is working perfectly, but I guess it isnt the right way and could get performance issues?
1552: [23:14:00] <nimeso> Why? call me stupid :)
1553: [23:15:00] <nimeso> lol... know the feeling
1554: [23:15:00] <ARNHOE> I have no idea, I wish I could explain :D
1555: [23:15:00] * UncleCheese_ has joined #silverstripe
1556: [23:16:00] * UncleCheese quit (Ping timeout: 245 seconds)
1557: [23:16:00] <ARNHOE> But I guess there should be a way to just call DOMDocument once, and then call Name, SKU, Price etc
1558: [23:17:00] <nimeso> Right, right... following you now.... hmmm... yes that looks crappy. surly a better way
1559: [23:18:00] <ARNHOE> But googling and finding stuff is pretty hard, when you don't know what you are looking for... tbh
1560: [23:18:00] <ARNHOE> its the first time I heard of DOMDOcument today, so I am not so much of use either. Been googling for hours now
1561: [23:19:00] * UncleCheese has joined #silverstripe
1562: [23:19:00] * Colin[pi] quit (Ping timeout: 276 seconds)
1563: [23:20:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
1564: [23:22:00] <nimeso> What about using somthing like http://sspaste.com/paste/show/512bf1df6e519 get rid of DOM stuff and use Convert::xml2array($file); ... BTW, I may be completely wrong/confused :)
1565: [23:22:00] * UncleCheese_ has joined #silverstripe
1566: [23:22:00] <ARNHOE> nimeso: Yeah, I have used that before. But that just throws the whole XML file
1567: [23:23:00] * UncleCheese quit (Ping timeout: 245 seconds)
1568: [23:23:00] <nimeso> ok... I'll go write some tests for ya :) just managed to get my server back up and running so may take me a few mins
1569: [23:24:00] * SightUnseen1 has joined #silverstripe
1570: [23:24:00] <nimeso> I love Unclecheese!!!! where are you? sure he will know the answer :)
1571: [23:24:00] <nimeso> he is a god
1572: [23:24:00] <ARNHOE> nimeso: I will be leaving very shortly, its 0:24 here. But you can always sent me a mail on mail@arnop.nl !
1573: [23:24:00] <nimeso> will do bro :)
1574: [23:25:00] <ARNHOE> thanks man, have a nice day thanks for the thinking and thanks catcher !
1575: [23:25:00] * SightUnseen1 has left #silverstripe
1576: [23:25:00] * UncleCheese has joined #silverstripe
1577: [23:25:00] * ARNHOE quit (Remote host closed the connection)
1578: [23:26:00] * mrzero quit (Changing host)
1579: [23:26:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
1580: [23:26:00] * mrzero has joined #silverstripe
1581: [23:26:00] * mrzero has joined #silverstripe
1582: [23:29:00] * UncleCheese_ has joined #silverstripe
1583: [23:30:00] * UncleCheese quit (Ping timeout: 245 seconds)
1584: [23:32:00] * UncleCheese has joined #silverstripe
1585: [23:32:00] <nimeso> don't suppose any one knows Simon Welsh or his irc name?been trying to get http://www.silverstripe.org/oauth-server/ running but having no luck :( spent last 2 days re-installing local servers, finally got php 5.4 running but I still get a error when I add public static $extensions = array('RequireOAuth'); to my page controller
1586: [23:33:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
1587: [23:34:00] <FrozenFire> He's simon_w
1588: [23:34:00] <nimeso> nadda :(
1589: [23:34:00] <FrozenFire> But not here at the moment
1590: [23:35:00] <nimeso> pooz. ta frozen :)
1591: [23:35:00] <nimeso> will keep swiming
1592: [23:36:00] * UncleCheese quit (Ping timeout: 245 seconds)
1593: [23:36:00] * UncleCheese_ has joined #silverstripe
1594: [23:39:00] <FrozenFire> You might be confused.
1595: [23:39:00] <FrozenFire> nimeso, What are you trying to run an oAuth server for?
1596: [23:39:00] * UncleCheese has joined #silverstripe
1597: [23:39:00] <FrozenFire> Ah
1598: [23:39:00] <nimeso> Secure API
1599: [23:40:00] <FrozenFire> Okay. Just making sure you weren't trying to have your site be an oAuth *consumer*
1600: [23:40:00] <nimeso> I'm assuming I end up writing my on API controller eg: mysite.com/api/getsomething?.... ?
1601: [23:40:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
1602: [23:41:00] <nimeso> 2. create my own controller to serve up JSON
1603: [23:41:00] <nimeso> 2 parts from what I understand... maybe...
1604: [23:41:00] <nimeso> 1. use built in controller to auth user
1605: [23:41:00] <FrozenFire> You can do that without oAuth
1606: [23:41:00] <FrozenFire> oAuth is for authenticating the user to your site using a particular protocol.
1607: [23:42:00] <FrozenFire> That's all you really need for a fairly-automatic RESTful server
1608: [23:42:00] <FrozenFire> https://github.com/silverstripe/silverstripe-restfulserver
1609: [23:42:00] * UncleCheese_ has joined #silverstripe
1610: [23:43:00] <nimeso> read http://www.silverstripe.org/oauth-server/
1611: [23:43:00] <nimeso> Yer, but should I not use oAuth 2? (I really don't have a glue what I'm talking about.. lol)
1612: [23:43:00] * UncleCheese quit (Ping timeout: 245 seconds)
1613: [23:44:00] <FrozenFire> Chances are, no.
1614: [23:44:00] <nimeso> I've got to build quite a big/secure system so figured http://www.silverstripe.org/oauth-server/ best way to go?
1615: [23:44:00] <FrozenFire> But, I don't know a lot about oAuth, other than that I hate it with a passion when it's used poorly.
1616: [23:46:00] * FrozenFire wonders why it's still not possible to set groups on a new Member in SecurityAdmin
1617: [23:46:00] * UncleCheese has joined #silverstripe
1618: [23:46:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
1619: [23:47:00] <nimeso> ok.... but will http://doc.silverstripe.org/framework/en/3.1/reference/restfulservice do what I want? is it secure? I need to let ME/developers create API keys that limit data
1620: [23:47:00] <FrozenFire> Your primary problem is the exposing of an API.
1621: [23:47:00] * xyphoid has joined #silverstripe
1622: [23:47:00] <FrozenFire> The field shows up, but it doesn't save anything you enter, which is annoying.
1623: [23:47:00] <FrozenFire> nimeso, You're solving two separate problems. Be sure to keep that in your mind when you do this.
1624: [23:48:00] <nimeso> yes :)
1625: [23:48:00] <FrozenFire> So the restfulserver module is what you want for the API part.
1626: [23:48:00] <FrozenFire> Then, once that's in place, you implement the security mechanism.
1627: [23:48:00] <nimeso> :)
1628: [23:48:00] <FrozenFire> The secondary problem is the authentication mechanism.
1629: [23:49:00] <nimeso> ok :) so I could write the restfulserver stuff now and 'plug-in' auth later
1630: [23:49:00] <FrozenFire> For an API, you may wish to enable HTTP basic authentication for that controller.
1631: [23:49:00] * UncleCheese_ has joined #silverstripe
1632: [23:49:00] * tankr quit (Quit: Leaving.)
1633: [23:49:00] * r3v3rb quit (Quit: r3v3rb)
1634: [23:49:00] <FrozenFire> Yeah, the authentication could be handled using oAuth if you want, but that's an afterthought.
1635: [23:49:00] <nimeso> Frozen... u rock... thanks for time
1636: [23:49:00] <FrozenFire> The handling of authentication already exists in the framewrok.
1637: [23:49:00] <FrozenFire> framework**
1638: [23:50:00] <FrozenFire> Those check the user's session
1639: [23:50:00] * UncleCheese quit (Ping timeout: 245 seconds)
1640: [23:50:00] <nimeso> right...
1641: [23:50:00] <FrozenFire> The restfulserver module will check DataObject::canView, canEdit, canDelete, etc
1642: [23:51:00] <FrozenFire> Using whatever authentication mechanism you happen to expose.
1643: [23:51:00] <FrozenFire> They could log in using HTTP basic authentication, for that request.
1644: [23:51:00] <nimeso> but then how does a dev login via custom mobile apps and create the session?
1645: [23:51:00] <FrozenFire> Or, they could authenticate using oAuth
1646: [23:51:00] <FrozenFire> Or whatever.
1647: [23:52:00] <FrozenFire> It underlies MVC
1648: [23:52:00] <nimeso> :)
1649: [23:52:00] <nimeso> Coolness! right following, I think
1650: [23:52:00] * UncleCheese has joined #silverstripe
1651: [23:52:00] <nimeso> I'll go read more with your great advice in mind.
1652: [23:52:00] <FrozenFire> You probably understand the concept, but the phrase involved here is "separation of concerns"
1653: [23:53:00] <nimeso> :)
1654: [23:53:00] <FrozenFire> Model, View, Controller.
1655: [23:53:00] <FrozenFire> But also authentication, etc.
1656: [23:53:00] <FrozenFire> Separating each concern out into its own little area, so you don't have to break one when you change another.
1657: [23:53:00] * UncleCheese_ quit (Ping timeout: 245 seconds)
1658: [23:54:00] <FrozenFire> With a has_one to Member
1659: [23:54:00] <FrozenFire> And Member has_many APIKey
1660: [23:54:00] <FrozenFire> Incidentally, if you want to go with a familiar authentication mechanism, what you could do is create a DataObject called APIKey
1661: [23:55:00] <nimeso> Shit!!! is it that easy???
1662: [23:55:00] * UncleCheese_ has joined #silverstripe
1663: [23:55:00] <FrozenFire> Then when a request is made, check for the APIKey in their request
1664: [23:55:00] * catcher quit (Quit: Leaving)
1665: [23:55:00] <nimeso> Yes. did figure that... that does go back to my original question.... 1. oAuth mod has it's own controller to do the 'authenticating' and I thought the tutorial also explains how to use it with my on controller dealing with the API... separating concerns...
1666: [23:56:00] <FrozenFire> Well, that'd be one way to do it, though I'm personally not a fan of the "API Key" model.
1667: [23:56:00] <FrozenFire> It's basically a second attack vector for authentication.
1668: [23:56:00] * UncleCheese quit (Ping timeout: 245 seconds)
1669: [23:57:00] <nimeso> yes yes... do follow you...
1670: [23:57:00] <FrozenFire> The part I didn't fill in is that within the init of your RestfulServer controller, you could check for that API key in their request, look up the user based on that API key, and log them in.
1671: [23:58:00] <nimeso> but oAuth has things like 'domain' policy's etc etc... do I need that sort of stuff? lol... spose I should answer that one
1672: [23:58:00] <FrozenFire> E.g. public function init() { parent::init(); $key = $this->Request->requestVar("key"); if($key) { $keyObj = APIKey::get()->filter("Key", $key)->First(); if($keyObj && $keyObj->exists()) { $member = $keyObj->Member(); $member->logIn(); } } }
1673: [23:59:00] <FrozenFire> But, as I say, that becomes its own sort of security hole. :P
1674: [23:59:00] * UncleCheese has joined #silverstripe
1675: [23:59:00] <nimeso> dude... to kind :)
1676: [23:59:00] <nimeso> copy / paste lol
1677: [23:59:00] <nimeso> yer... I can see the gaps
1678: [23:59:00] <FrozenFire> Since if someone gets a user's API key, they can authenticate as them.

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