#silverstripe IRC Log

IRC log for 24 December 2013

All timestamps are in UTC.

1: [00:05:16] * Azure has joined #silverstripe
2: [00:09:33] * nickmolhoek has joined #silverstripe
3: [00:13:56] * willr quit (Quit: willr)
4: [00:21:44] * willr has joined #silverstripe
5: [00:29:28] * nickmolhoek quit (Quit: nickmolhoek)
6: [01:13:13] * mojo5000 quit (Remote host closed the connection)
7: [01:13:40] * mojo5000 has joined #silverstripe
8: [01:17:50] * mojo5000 quit (Ping timeout: 240 seconds)
9: [01:30:05] * SS_L has joined #silverstripe
10: [01:31:06] <SS_L> Hi, I am trying $data->renderWith("myTemplate") where data is an arraylist. for a reason I dont want to use custimze(). how can I loop data in template?
11: [01:56:13] * SS_L quit (Ping timeout: 272 seconds)
12: [01:58:59] * SS_L has joined #silverstripe
13: [02:05:21] <willr> Why don't you want to use customise?
14: [02:06:01] <willr> should work though if $data is an array list
15: [02:06:16] <willr> you'll want to loop the items using <% loop Items %>
16: [02:07:21] <willr> or maybe not, <% loop Me %>
17: [02:13:57] * SS_L quit (Ping timeout: 272 seconds)
18: [02:15:39] * Azure quit (Quit: upgrading textual)
19: [02:17:47] * Azure has joined #silverstripe
20: [03:25:05] * Marvanni_ quit (Quit: Marvanni_)
21: [03:32:10] * Marvanni has joined #silverstripe
22: [03:35:48] * Marvanni_ has joined #silverstripe
23: [03:36:50] * Marvanni quit (Ping timeout: 264 seconds)
24: [03:51:24] * SightUnseen1 has joined #silverstripe
25: [03:57:38] * ssdev has joined #silverstripe
26: [03:57:49] <ssdev> hi,
27: [03:58:01] <ssdev> got a question for the ManyManyLists of SilverStripe
28: [03:58:45] <ssdev> to add a NEW dataobject to a many many list first have to write that DO to the DB and add it, this causes 2 data base inserts, any other efficient way of doing this ?
29: [04:04:50] <Snowman23> Even if you wrote raw SQL, it would still require 2 seperate insert statements
30: [04:18:34] <spronk> well
31: [04:18:41] <spronk> technically for one, yes
32: [04:18:42] <spronk> but for 100
33: [04:18:52] <spronk> you can do it in 101 statementrs
34: [04:19:01] <spronk> vs 200
35: [04:19:42] <spronk> or more, if you need to write across tables, but the point being you can combine multiple VALUES into the inserts
36: [04:19:50] <spronk> though i don't think SS would really be able to support this
37: [04:20:15] <spronk> there was some word aaages ago about incorporating an IdentityMap pattern but i dno whether this was actually done?
38: [04:27:01] <Snowman23> It could be done if you delay the ->add write
39: [04:27:12] <Snowman23> e.g. ->addWithoutWrite() 100x, then ->addWrite();
40: [04:28:58] <spronk> yeah but where to store that state?
41: [04:29:20] <spronk> oh
42: [04:29:21] <Snowman23> In the DataList?
43: [04:29:22] <spronk> you're referring to adding
44: [04:29:25] <Snowman23> yeah
45: [04:29:26] <spronk> i was referring to actually creating the DOs
46: [04:29:28] <Snowman23> oic
47: [04:29:32] <Snowman23> ehhhhhhhhhhhhhhhhh
48: [04:29:33] <spronk> actually
49: [04:29:37] <spronk> you could do this whole thing in 2 queries
50: [04:29:37] <Snowman23> You could singleton it, but *shrug*
51: [04:29:39] <Snowman23> mm
52: [04:29:44] * SightUnseen1 quit (Quit: Leaving.)
53: [04:29:46] <spronk> with an IdentityMap, and addWithoutWrite()
54: [04:30:08] <spronk> 2 queries per inheritence table that is
55: [04:30:11] <lewellyn> spronk: are you turning this into Name That Tune? ;)
56: [04:30:37] <spronk> .... maybe
57: [04:30:49] <simon_w> ssdev, you could always do a mass insert into the join table yourself
58: [04:31:46] <spronk> bleh.
59: [04:31:48] <spronk> that's yuckuy.
60: [04:32:12] * cloph_away has joined #silverstripe
61: [04:32:38] * cloph quit (Ping timeout: 264 seconds)
62: [04:33:05] <simon_w> Hehe, someone's trying to ssh into ss-log's server
63: [04:33:52] <simon_w> Using passwords no less. Fairly sure it's set up as keys only.
64: [04:34:40] <Snowman23> Naw
65: [04:34:46] <Snowman23> It doesn't let you try a password if iti only accepts keys
66: [04:35:11] <Snowman23> login as: ss23-hacks-u
67: [04:35:11] <Snowman23> ss23-hacks-u@logs.simon.geek.nz's password:
68: [04:35:11] <Snowman23> yeah
69: [04:35:14] <Snowman23> lets you auth using passwords
70: [04:35:41] <simon_w> How about root?
71: [04:36:13] <Snowman23> Lets you try, but if you have disallow root logins turned on, you can't see it anyway
72: [04:36:25] <Snowman23> (that is, it lets you try even if root logins are turned off, iirc?)
73: [04:36:48] <simon_w> Yeah, so it still lets you try with a password even though the only account you can SSH into is set to keys only
74: [04:37:33] <Snowman23> I don't think you can set keys on an account only basis, can you?
75: [04:38:00] <simon_w> But you can for root
76: [04:38:38] <Snowman23> Hmm, what is the option called?
77: [04:38:45] <simon_w> PermitRootLogin
78: [04:38:58] <Snowman23> I thuoght that turned off key auth for root too?
79: [04:39:05] <Snowman23> oic
80: [04:39:07] <Snowman23> without-password
81: [04:39:10] <Snowman23> THE MORE YOU KNOW~
82: [04:39:37] <Snowman23> I have all my boxes key only, so doesn't let you prompt for password etc
83: [04:40:35] <simon_w> This paper trail thing willr mentioned is turning out to be rather useful
84: [04:40:52] <willr> :)
85: [04:40:59] <spronk> o_O
86: [04:41:13] <simon_w> Heh, someone's trying to log in using mysql. Like I'd be running that.
87: [04:42:01] <Snowman23> be careful simon_w
88: [04:42:03] <Snowman23> SOMEONE MIGHT HACK YOU
89: [04:42:20] <willr> GET /phpmyadmin/
90: [04:42:21] <Snowman23> 22/tcp open ssh OpenSSH 6.0p1 Debian 4 (protocol 2.0)
91: [04:42:21] <Snowman23> 80/tcp open http Apache httpd 2.2.22 ((Debian))
92: [04:42:24] <Snowman23> HAHA YOU LEFT YOUR PORTS OPEN
93: [04:42:25] <Snowman23> HAHAHA
94: [04:42:26] <Snowman23> HACKED
95: [04:42:27] <Snowman23> HACKED
96: [04:42:36] <simon_w> No shit
97: [04:43:30] <simon_w> There might be an ntp port open too. Fairly sure those are the only ones.
98: [04:43:51] <simon_w> PORT STATE SERVICE
99: [04:43:51] <simon_w> 21/tcp open ftp
100: [04:43:52] <simon_w> 22/tcp open ssh
101: [04:43:52] <simon_w> 80/tcp open http
102: [04:43:52] <simon_w> 554/tcp open rtsp
103: [04:43:52] <simon_w> YOU'RE SCREWED NOW Snowman23!
104: [04:44:19] <Snowman23> :OOO
105: [04:44:20] <Snowman23> wiat
106: [04:44:21] <Snowman23> is that me?
107: [04:44:24] <simon_w> Yes
108: [04:44:26] <Snowman23> Why the fuck is 21 and 554 open?
109: [04:44:37] <simon_w> HACKED!
110: [04:44:40] <Snowman23> GODDAM IT
111: [04:44:43] <simon_w> Also, 7070
112: [04:44:45] <Snowman23> wait what
113: [04:44:50] <Snowman23> what box are you scanning...?
114: [04:45:02] <Snowman23> My home connection?
115: [04:45:04] <simon_w> 103.18.56.67
116: [04:45:09] <Snowman23> phew
117: [04:45:10] <simon_w> Your IRC one
118: [04:45:10] <Snowman23> lol
119: [04:45:11] <Snowman23> wait
120: [04:45:12] <Snowman23> wait no
121: [04:45:14] <Snowman23> goddam it
122: [04:45:45] <simon_w> Huh? lsgn has 21 open too?
123: [04:45:47] <Snowman23> uh
124: [04:45:49] <Snowman23> are you sure, simon_w?
125: [04:45:53] <Snowman23> I think your scanner might be b roken? :O
126: [04:45:54] <simon_w> Maybe my nmap is broken
127: [04:45:55] * Marvanni_ quit (Quit: Marvanni_)
128: [04:45:58] <Snowman23> mm
129: [04:46:09] <Snowman23> fucking scaring the shit out of me with these false scans :O
130: [04:46:20] <simon_w> Also, hilarious
131: [04:47:00] <Snowman23> wah, I need breakfast/lunch/dinner
132: [04:47:10] <Snowman23> willr / simon_w: either of you want to buy me something? I've got pants on and I showered today
133: [04:47:25] <simon_w> I'm at home. Screw that :p
134: [04:47:29] <Snowman23> psh
135: [04:47:33] <Snowman23> I have to go out to KFC or something
136: [04:47:41] <Snowman23> Aroy is open quite late, but it's further away
137: [04:47:57] <willr> mm aroy
138: [04:53:01] <simon_w> I guess I should do some dishes so I can cook my pasta
139: [04:53:10] <simon_w> And bacon
140: [04:53:12] <simon_w> Mmmm, bacon
141: [04:53:18] <Snowman23> asdfasdfasdfasdf
142: [04:53:22] <Snowman23> WHY AM I SO LAZY
143: [04:53:27] <Snowman23> I WOULD BE EATIN RIGHT NOW IF I WASN'T SO LAZY
144: [04:58:51] <simon_w> Aww, the forums didn't end up with a "delete all by user" button
145: [04:59:13] <simon_w> Snowman23, FIX IT
146: [04:59:16] <Snowman23> simon_w: If you wanna write it, I'm happy to deploy it
147: [04:59:36] <simon_w> But that would require touching forum code. Ewwwww :p
148: [04:59:45] <Snowman23> lol
149: [04:59:52] <Snowman23> But simon_w, you *love* 2.4!
150: [04:59:56] <Snowman23> You run pocketrent on it, right?!
151: [04:59:56] <Snowman23> :D
152: [05:00:13] <simon_w> In the same way Facebook runs on PHP
153: [05:00:20] <Snowman23> hehehe
154: [05:01:40] <simon_w> That guy's still guessing SSH usernames/passwords
155: [05:01:49] <simon_w> Perhaps I should just iptables his arse
156: [05:02:20] <Snowman23> It's probably a bot, man
157: [05:02:43] <simon_w> Yeah, but it can handle dropped packets until the next server restart
158: [05:02:51] <Snowman23> But why o.o
159: [05:02:51] <Snowman23> like
160: [05:02:54] <Snowman23> It's effort for no reason
161: [05:02:55] <Snowman23> :S
162: [05:03:02] <Snowman23> If you wanna do it "Goodly", do fail2ban
163: [05:03:03] <simon_w> Cause it's filling up my logs
164: [05:03:06] <Snowman23> >.>
165: [05:03:19] <simon_w> I'm tailing those logs. Gets in the way
166: [05:03:19] <Snowman23> THAT MEANS YOUR LOGGING IS BAD :O
167: [05:03:28] <Snowman23> just fail2ban if you want, but like
168: [05:03:33] <Snowman23> idk
169: [05:03:36] <Snowman23> DO WHAT YOU WANT
170: [05:04:04] <simon_w> It's like the people that try guessing SMTP passwords but not as bad
171: [05:05:23] <simon_w> I've had that end up as a DOS before
172: [05:19:10] * SightUnseen has joined #silverstripe
173: [05:23:51] * SightUnseen quit (Ping timeout: 272 seconds)
174: [05:58:08] * willr quit (Quit: willr)
175: [06:06:44] * SS_L has joined #silverstripe
176: [06:19:10] * SightUnseen has joined #silverstripe
177: [06:24:01] * SightUnseen quit (Ping timeout: 272 seconds)
178: [06:43:30] * SightUnseen has joined #silverstripe
179: [07:20:30] * Marvanni2 quit (Read error: Connection reset by peer)
180: [07:21:03] * marvanni has joined #silverstripe
181: [08:05:53] * ARNHOE has joined #silverstripe
182: [08:31:41] * ocm has joined #silverstripe
183: [08:31:55] <ocm> howdy!
184: [08:43:59] * SightUnseen quit (Quit: Leaving.)
185: [08:47:03] * Motoservo quit (Quit: Motoservo)
186: [08:54:17] * Motoservo has joined #silverstripe
187: [09:23:25] * kinglozzer has joined #silverstripe
188: [09:28:35] * micmania1 has joined #silverstripe
189: [09:31:55] <kinglozzer> Morning all
190: [09:32:04] <micmania1> morning!
191: [09:32:06] <Snowman23> moin moin
192: [09:36:13] <kinglozzer> Can anyone explain what exec('php somescript.php > /dev/null 2>/dev/null &'); actually means? :P
193: [09:36:25] <kinglozzer> I know what it does, and it's working, I just don't know why D:
194: [09:36:44] <Snowman23> You know what `php somescript.php` does, right?
195: [09:36:52] <kinglozzer> Yea
196: [09:36:59] <Snowman23> You know what /dev/null is?
197: [09:37:02] <kinglozzer> Nope
198: [09:37:10] <Snowman23> It's a file that when you write to it, it says "I've written that!", but secretly does nothign at all
199: [09:37:20] <Snowman23> It's like... a file where you "write" data if you don't care baout it and never want to see it again
200: [09:37:47] <Snowman23> so, the "> /dev/null" says "redirect all of the standard output to /dev/null" meaning "I don't want to see any of the output of this script"
201: [09:37:57] <Snowman23> You can test by running "echo lol" and seeing it output lol
202: [09:38:03] <Snowman23> Then run "echo lol > /dev/null"
203: [09:38:05] <Snowman23> and it'll do nothing
204: [09:38:11] <Snowman23> contrast with "echo lol > /tmp/lol_test"
205: [09:38:19] <Snowman23> which will create a file in /tmp/lol_test with the contents "lol"
206: [09:38:40] <Snowman23> The 2>/dev/null means "Just like the normal > /dev/null, I don't want to see the output, but this time, I don't want to see errors"
207: [09:38:40] <kinglozzer> Ah okay, makes sense - so only /dev/null won't actually make a file
208: [09:38:45] <Snowman23> Yeah ^.^
209: [09:39:08] <Snowman23> Linux has two ways of outputting text (or more potentially), the default is called "standard out", and the other is "standard error" -- errors come out over stderr, normal stuff over stdout
210: [09:39:14] <Snowman23> So, that second 2> part means "Hide the errors too"
211: [09:39:27] <Snowman23> The last part, trailing ampersand, means "And return immediatly, but continue executing"
212: [09:39:31] <Snowman23> So uh...
213: [09:39:40] <Snowman23> imagine you have a script that does like "sleep(500); do_stuff();"
214: [09:39:55] <Snowman23> If you just type "php thatscript.php", it'll take 500 seconds, then do the stuff, then return
215: [09:39:56] <kinglozzer> Ah, the & is the key then - stackoverflow told me to use it to run the process 'in the background'
216: [09:40:00] <Snowman23> yeah
217: [09:40:14] <Snowman23> But "php thatscript.php &" will return immedaitly, then 500 seconds later, still do_stuff
218: [09:40:28] <kinglozzer> Awesome, thanks Snowman23
219: [09:40:33] <Snowman23> ^.^
220: [09:45:27] <micmania1> my pc was previously owned by a designer :(
221: [09:45:32] <Snowman23> XD
222: [09:45:49] <micmania1> everything has been installed on the c drive and its full. Meanwhile the 1.8tb drive is empty...
223: [09:46:24] <Snowman23> Reformat and start again!
224: [09:47:30] * SightUnseen has joined #silverstripe
225: [09:47:58] <micmania1> I just uninstalled loads of stuff. I think there's a load of images on here somewhere taking up all the space lol
226: [09:48:58] * SightUnseen quit (Client Quit)
227: [09:49:04] <kinglozzer> Probably, they'll be about 400mb in size each :P
228: [10:46:50] * Ara has joined #silverstripe
229: [10:47:13] * Ara is now known as Guest77076
230: [10:53:42] <kinglozzer> Home time for me, happy holidays all
231: [10:53:55] <kinglozzer> See you in 2014 :)
232: [10:54:36] * kinglozzer quit ()
233: [11:05:06] * new_learner has joined #silverstripe
234: [11:05:27] <new_learner> what is this doing--return DataObject::get("$area", "$mesma_secao AND SiteTree.ID <> $this->ID $destaque $filter", $order, null, $limite); ?
235: [11:14:23] <micmania1> new_learner, it looks like Old 2.4 code
236: [11:14:55] <micmania1> its getting a list of DataObject of type $area - whatever $area is.
237: [11:15:06] <ocm> can anyone help me with this? on a contactform I get this error
238: [11:15:08] <ocm> ERROR [Warning]: Missing argument 2 for Contact_Controller::SendContactForm()
239: [11:15:10] <micmania1> and the rest is a filter
240: [11:15:48] <ocm> and this is my sendcontactform function
241: [11:15:49] <ocm> http://pastebin.com/SzsGaTVd
242: [11:16:36] <micmania1> can you paste your whole controller?
243: [11:16:43] * ssdev quit (Ping timeout: 272 seconds)
244: [11:16:43] <new_learner> i need to convert that code to 3.1...need help in that?
245: [11:18:08] <micmania1> new_learner: $area::get()->filter("Field", $value->limit($records, $start)
246: [11:18:30] <micmania1> This should be helpful: http://www.silverstripe.org/silverstripe-3-s-new-orm/
247: [11:19:12] <micmania1> This is probably more up-to-date: http://doc.silverstripe.com/framework/en/topics/datamodel
248: [11:23:26] * SS_lover has joined #silverstripe
249: [11:23:42] <new_learner> $mesma_secao AND SiteTree.ID <> $this->ID $destaque $filter ??
250: [11:24:18] <new_learner> does this line contain four fields?
251: [11:24:47] <new_learner> is SiteTree.ID <> $this->ID ok?
252: [11:25:14] <new_learner> shouldnt be != for <> ?
253: [11:26:32] <SS_lover> Hey, anyone gone through paypal setup in SS ?
254: [11:27:03] <SS_lover> I need help with this issue for ecommerce + paypal module
255: [11:27:13] <SS_lover> http://www.silverstripe.org/payments-and-payment-gateway-apis/show/17106
256: [11:36:50] <SS_L> It seems Decimal data type doesnt work with 0. when I enter 0.6, it says '0.6' is not a number, only numbers can be accepted for this field
257: [11:37:53] <ocm> what about 0,6? does that give any output? (could be locale setting, else it is a floating point issue)
258: [11:38:06] <SS_L> no, it becomes 0
259: [11:38:26] <ocm> the field is integer?
260: [11:38:35] <SS_L> Decimal
261: [11:39:01] <SS_L> 'Z1Y'=>'Decimal',
262: [11:40:38] <SS_L> I changed to Varchar, it works now
263: [11:44:35] * SS_lover quit (Ping timeout: 272 seconds)
264: [11:48:12] * cache_ has joined #silverstripe
265: [11:53:35] <SS_L> @ocm I am using 3.1.2
266: [12:00:52] <ocm> so am I
267: [12:00:58] <ocm> never used the decimalfield though
268: [12:11:07] <micmania1> Anybody done anything with Google analytics conversions and Silverstripe Forms?
269: [12:23:58] * Guest77076 quit (Quit: Page closed)
270: [12:57:17] * cache_ quit (Quit: Page closed)
271: [13:18:22] * openbees has joined #silverstripe
272: [13:18:57] * new_learner quit (Ping timeout: 272 seconds)
273: [13:19:03] <openbees> I was trying to change default login form labels using en.yml in mysite but its not updating .. any thoughts on this ?
274: [13:19:35] <openbees> not a ideal time to ask a question I guess :D merry Christmas to u all :)
275: [13:20:26] <micmania1> openbees, your remembered to flush?
276: [13:20:32] <ARNHOE> did u flush openbees?
277: [13:20:38] <ARNHOE> hehe
278: [13:20:41] <micmania1> I WIN!
279: [13:20:44] <micmania1> :P
280: [13:20:46] <ARNHOE> 5 seconds to late
281: [13:20:47] <ARNHOE> story of my life
282: [13:20:50] <ARNHOE> :P
283: [13:20:51] <micmania1> haha
284: [13:20:53] <openbees> :P
285: [13:20:56] <openbees> yaah I did
286: [13:23:48] <openbees> is mysite/lang/en.yml correct path ?
287: [13:25:41] <micmania1> that should be the case if your locale is US (I think). Is yours GB?
288: [13:25:51] <micmania1> If so try renaming it en_GB.yml
289: [13:25:58] <micmania1> That's what it is in the framework.
290: [13:25:58] <openbees> its US
291: [13:26:12] <openbees> yaah if directly change in framework .. it works
292: [13:26:19] <openbees> in en.yml
293: [13:27:12] <micmania1> hmmm. Not sure then. Is the global $project set to mysite?
294: [13:28:11] <openbees> yes global $project; $project = 'mysite'; and i18n::set_locale('en_US');
295: [13:33:48] <openbees> anyway thanks guys .. enjoy Christmas :)
296: [13:38:59] <openbees> it was module loading order btw ;)
297: [13:40:44] <openbees> bye guys
298: [13:40:44] <openbees> time for party ;)
299: [13:40:44] * openbees quit (Quit: Leaving)
300: [13:45:54] * ocm quit (Read error: Connection reset by peer)
301: [13:46:35] * ocm has joined #silverstripe
302: [13:48:41] * Zauberfi1ch23 quit (Ping timeout: 246 seconds)
303: [13:48:48] * Zauberfisch23 has joined #silverstripe
304: [13:57:45] * irogue_ has joined #silverstripe
305: [14:06:03] * irogue23 quit (*.net *.split)
306: [14:30:17] * BrianGO has joined #silverstripe
307: [14:40:48] <Snowman23> Merry Christmas everyone ^.^
308: [14:42:23] * ARNHOE quit ()
309: [14:48:34] * C10ne has joined #silverstripe
310: [14:50:46] * BrianGO quit (Remote host closed the connection)
311: [14:50:47] * SS_L quit (Ping timeout: 272 seconds)
312: [16:34:13] * catcher has joined #silverstripe
313: [17:50:42] * Motoservo quit (Quit: Motoservo)
314: [18:01:22] * Motoservo has joined #silverstripe
315: [18:48:07] * SightUnseen has joined #silverstripe
316: [18:50:24] * SightUnseen has left #silverstripe
317: [19:03:32] * Motoservo quit (Quit: Shhh. I'm trying to get some sleep here.)
318: [20:47:27] * Error404NotFound has joined #silverstripe
319: [20:54:34] * SphereSilverNL has joined #silverstripe
320: [20:55:40] * Error404NotFound quit (Ping timeout: 246 seconds)
321: [20:56:31] <SphereSilverNL> \o
322: [20:56:39] * Error404NotFound has joined #silverstripe
323: [20:56:50] <SphereSilverNL> What's the thing with cats?
324: [20:57:07] <SphereSilverNL> I can't think of living without her.
325: [20:57:22] <SphereSilverNL> and my cat, is the most annoying cat ever
326: [21:21:57] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
327: [21:38:00] * catcher quit (Quit: Leaving)
328: [22:04:03] * SphereSilverNL quit (Quit: bye)
329: [22:05:49] <spronk> merry x
330: [22:42:01] * gelignite has joined #silverstripe
331: [22:59:43] * C10ne quit (Ping timeout: 272 seconds)

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