#silverstripe IRC Log

IRC log for 3 February 2013

All timestamps are in UTC.

1: [00:24:00] * chillu quit (Quit: chillu)
2: [00:59:00] * chillu has joined #silverstripe
3: [01:04:00] * liam quit (Quit: liam)
4: [01:09:00] * liam has joined #silverstripe
5: [01:16:00] * COngII has joined #silverstripe
6: [01:17:00] * COngII quit (Client Quit)
7: [01:40:00] * EPIK has joined #silverstripe
8: [02:35:00] * chillu quit (Quit: chillu)
9: [03:20:00] * liam quit (Ping timeout: 245 seconds)
10: [03:32:00] * ajshort has joined #silverstripe
11: [03:36:00] * dendeffe quit (Ping timeout: 276 seconds)
12: [03:50:00] * hubertusanton quit (Ping timeout: 276 seconds)
13: [03:52:00] * hubertusanton has joined #silverstripe
14: [04:18:00] * dendeffe has joined #silverstripe
15: [04:36:00] * instabil2 has joined #silverstripe
16: [04:40:00] * instabil quit (Ping timeout: 245 seconds)
17: [04:43:00] * cloph_away1 has joined #silverstripe
18: [04:44:00] * cloph_away quit (Ping timeout: 245 seconds)
19: [05:37:00] * dendeffe quit (Ping timeout: 276 seconds)
20: [06:03:00] * liam has joined #silverstripe
21: [06:03:00] <ajshort> $this->obj('Date')->Nice()
22: [06:03:00] <liam> how do you use functions on db fields in php code? e.g. calling Nice() on a date field?
23: [06:04:00] <liam> ajshort: cheers
24: [06:17:00] * ajshort quit (Quit: Leaving)
25: [06:20:00] * hubertusanton quit (Ping timeout: 244 seconds)
26: [06:24:00] * hubertusanton has joined #silverstripe
27: [06:55:00] * SightUnseen has joined #silverstripe
28: [06:55:00] * SightUnseen has left #silverstripe
29: [07:31:00] * liam quit (Read error: No route to host)
30: [07:31:00] * liam has joined #silverstripe
31: [07:52:00] * Error404NotFound has joined #silverstripe
32: [08:07:00] * liam quit (Quit: liam)
33: [08:10:00] * liam has joined #silverstripe
34: [08:42:00] * Unlearned has joined #silverstripe
35: [09:21:00] * instabil2 quit (Read error: Connection reset by peer)
36: [09:43:00] * liam quit (Quit: liam)
37: [09:54:00] * liam has joined #silverstripe
38: [10:02:00] * chillu has joined #silverstripe
39: [10:07:00] * zfmf has joined #silverstripe
40: [10:15:00] * SightUnseen has joined #silverstripe
41: [10:18:00] * simon_w|air quit (Quit: This computer has gone to sleep)
42: [10:20:00] * SightUnseen quit (Ping timeout: 248 seconds)
43: [10:28:00] * gelignite has joined #silverstripe
44: [10:59:00] * dendeffe has joined #silverstripe
45: [11:01:00] * gelignite quit (Read error: Operation timed out)
46: [11:11:00] * pex__ has joined #silverstripe
47: [11:14:00] * Emil_Blume has joined #silverstripe
48: [11:16:00] * SightUnseen has joined #silverstripe
49: [11:18:00] * gelignite has joined #silverstripe
50: [11:21:00] * SightUnseen quit (Ping timeout: 255 seconds)
51: [11:41:00] * liam quit (Quit: liam)
52: [11:43:00] * gelignite quit (Ping timeout: 248 seconds)
53: [11:56:00] * gelignite has joined #silverstripe
54: [12:17:00] * SightUnseen has joined #silverstripe
55: [12:22:00] * SightUnseen quit (Ping timeout: 276 seconds)
56: [12:24:00] * zfmf quit (Read error: Connection reset by peer)
57: [12:45:00] * webguest has joined #silverstripe
58: [12:47:00] <webguest> DOM question. I want to use DataObject manager on Page. I dont want to use ImageDOM or FileDOM. how do i create an image upload field into the normal DataObjectManager.http://paste2.org/p/2822824
59: [12:55:00] * pex__ quit (Quit: Leaving.)
60: [12:57:00] <webguest> or in other words, how do i add a FileUploadField into the 'normal' DataObjectManager?
61: [12:58:00] * pex__ has joined #silverstripe
62: [13:03:00] <webguest> Please anyone
63: [13:08:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
64: [13:08:00] <webguest> i know how to create the field, but dont know how to save the Image relation, because i cant add the image relation on image because im using the DataObjectManager, and not the ImageDOM or fileDOm
65: [13:08:00] <webguest> and i dont want to those, because i also want to create DO's without images
66: [13:08:00] <webguest> for instance, video links
67: [13:12:00] <webguest> found it
68: [13:12:00] <webguest> bye
69: [13:16:00] * webguest quit (Ping timeout: 245 seconds)
70: [13:17:00] * SightUnseen has joined #silverstripe
71: [13:21:00] * SightUnseen quit (Ping timeout: 248 seconds)
72: [13:27:00] * Emil_Blume quit (Ping timeout: 240 seconds)
73: [13:31:00] * Emil_Blume has joined #silverstripe
74: [13:36:00] * jerga has joined #silverstripe
75: [13:43:00] <Rastafarii> but I cannot find any man page for making module install files
76: [13:43:00] * Rastafarii has joined #silverstripe
77: [13:43:00] <Rastafarii> Hi everyone!
78: [13:43:00] <Rastafarii> I googled for last half an hour
79: [13:44:00] <Rastafarii> I want to run database import when module is installed
80: [13:44:00] <Rastafarii> on first dev/build
81: [13:44:00] <Rastafarii> is that even possible?
82: [13:47:00] <Rastafarii> anyone?
83: [13:53:00] * chillu quit (Quit: chillu)
84: [13:53:00] * pex__ quit (Quit: Leaving.)
85: [13:54:00] * chillu has joined #silverstripe
86: [13:58:00] <jerga> @Rastafarii, I'm not sure what kind of import you're planning, but have a look for the function requireDefaultRecords
87: [13:58:00] <jerga> this allows you to set things up on a dev/build
88: [14:00:00] <jerga> typically requireDefaultRecords uses SilverStripe's ORM system to set up the DB, but (if you must) you could probably run an import from here. Generally it's safer to rely on the ORM, but maybe you need to import a lot of data?
89: [14:00:00] <jerga> Rastafarii: not sure if the @ syntax will alert you :)
90: [14:00:00] <Rastafarii> I need to import ~100k rows
91: [14:01:00] <Rastafarii> for GeoIP functionality :)
92: [14:04:00] <Rastafarii> it seems that requireDefaultRecords will do the trick :)
93: [14:05:00] * zfmf has joined #silverstripe
94: [14:11:00] <jerga> just remember that it runs on EVERY dev/build
95: [14:12:00] <jerga> Rastafarii: so one has to check if import is already done
96: [14:12:00] <Rastafarii> :)
97: [14:12:00] <Rastafarii> yes, offcourse
98: [14:12:00] <Rastafarii> if (GeoIpCountry::get()->Count() == 0)
99: [14:12:00] <jerga> in my case this is the voice of bitter experience :)
100: [14:12:00] <Rastafarii> and experience comes from making bad decisions...
101: [14:13:00] <Rastafarii> been there, done that :D
102: [14:18:00] * SightUnseen has joined #silverstripe
103: [14:22:00] * SightUnseen quit (Ping timeout: 244 seconds)
104: [14:30:00] * pex__ has joined #silverstripe
105: [14:35:00] <Rastafarii> this import is taking a lot of time...
106: [14:40:00] <Rastafarii> but eventually finished
107: [14:40:00] <Rastafarii> almost 7 minutes..
108: [14:46:00] <Rastafarii> yes, it did the trick
109: [14:46:00] * instabil has joined #silverstripe
110: [14:47:00] <Rastafarii> thanks @jerga
111: [14:47:00] <jerga> running a shell command?
112: [14:47:00] <jerga> out of curiosity, how are you doing the import?
113: [14:47:00] <jerga> hey you're welcome
114: [14:51:00] <Rastafarii> but it has almost 100k rows :)
115: [14:51:00] <Rastafarii> nope
116: [14:51:00] <Rastafarii> through ORM
117: [14:56:00] <Rastafarii> I will try later with custom CSVLoader
118: [14:57:00] <Rastafarii> to see if it takes less time
119: [14:59:00] * pex__ quit (Quit: Leaving.)
120: [15:08:00] <Rastafarii> @jerga Do you have any experience with it?
121: [15:09:00] <jerga> well, not directly with this issue. I was curious. Through ORM will definitely be slow. It depends what the relationships are. You can speed things up a lot using DB::query if you're just inserting a lot of data and don't need to maintain relationships (ORM saves a lot of effort with the relationships)
122: [15:10:00] <jerga> CSVLoader I haven't used, but may well be the way to go
123: [15:10:00] <jerga> Of course DB::query is raw SQL and makes it easy to add mistakes in, but since this won't use user data that removes a lot of security worries
124: [15:11:00] <Rastafarii> it turns out that CSVLoader uses the very same fgetcsv as I did
125: [15:12:00] <Rastafarii> and I have headerless csv
126: [15:13:00] <Rastafarii> as there are multiple IP ranges for each country
127: [15:13:00] <Rastafarii> I have only one relation - one-to-many
128: [15:18:00] * SightUnseen has joined #silverstripe
129: [15:23:00] * SightUnseen quit (Ping timeout: 240 seconds)
130: [15:31:00] <Rastafarii> @jerga - it's way faster when I don't use ORM
131: [15:32:00] <Rastafarii> barely 90 seconds for same data set
132: [15:32:00] <jerga> yeah, I skip the ORM if I need speed, and if I don't need to worry too much about relationships, class inheritance (from SiteTree etc), or SQL injection
133: [15:33:00] <Rastafarii> what will DB::query("Select `Field` FROM `Table` WHERE `ID` = 4") return?
134: [15:33:00] <Rastafarii> splendid
135: [15:34:00] <Rastafarii> do you know by chance?
136: [15:41:00] <discorpia> or is that just 2.x?
137: [15:41:00] <Rastafarii> nope, 3.0.3
138: [15:41:00] <discorpia> it's an object called SS_Query that is returned by DB::query()
139: [15:42:00] <jerga> so, DB::query('SELECT Field from Table)->column() should give an array of that field's values IIRC
140: [15:42:00] <jerga> yeah, in 2.x, you can use DB::query(..)->column('ID'), or you can use it in a foreach() or you can use ->value if you only expect a single value
141: [15:42:00] <jerga> I assume 3.03 should still support these
142: [15:42:00] <jerga> in a foreach it works like a DataObjectSet (*ahem* DataList)
143: [15:43:00] <Rastafarii> I got that - just append ->value() and I'll get field value from select
144: [15:43:00] <Rastafarii> If I search by unique field, and I am, and getting only ID back, there should be only one value :)
145: [15:43:00] <jerga> yeah, I think value() is if a single row is returned, like COUNT()
146: [15:44:00] <Rastafarii> I have only one more question :D
147: [15:44:00] <Rastafarii> when I run DB::query('INSERT INTO...')
148: [15:44:00] <Rastafarii> how can I get ID of inserted row back?
149: [15:45:00] <jerga> try DB::getGeneratedID('Table'), but I haven't actually used it
150: [15:45:00] <jerga> I think that getGeneratedID($table) would do it
151: [15:46:00] <Rastafarii> right?
152: [15:46:00] <jerga> should work
153: [15:46:00] <Rastafarii> when I run DB::query('INSERT INTO...')->getGeneratedID($table)
154: [15:46:00] <jerga> I think it's only on the DB class
155: [15:46:00] <Rastafarii> * DB::query('INSERT INTO...')->getGeneratedID($table)
156: [15:46:00] <jerga> rather than on the returned query
157: [15:47:00] <jerga> $id = DB::getGeneratedID('GeoTable');
158: [15:47:00] <jerga> DB::query("INSERT INTO GeoTable");
159: [15:48:00] <jerga> PS: I'm not sure of this bit, just reading the source code :)
160: [15:49:00] <Rastafarii> :)
161: [15:56:00] <Rastafarii> lowered it to 60 seconds
162: [15:59:00] <Rastafarii> but it seems to be minimum value
163: [16:00:00] <Rastafarii> not bad :D
164: [16:00:00] <Rastafarii> basicaly - from 400 seconds to 40 second import of 100k rows
165: [16:00:00] <Rastafarii> since SS takes ~20 seconds just to create tables
166: [16:02:00] <jerga> Yeah, dev/build isn't super quick, but since it's AWESOME MAGIC that saves having to deal with manual database upgrades, I'll accept that :D
167: [16:02:00] * Unlearned has joined #silverstripe
168: [16:02:00] <Rastafarii> :)
169: [16:02:00] <jerga> not bad at all!
170: [16:02:00] <Rastafarii> yes, it's awesome
171: [16:03:00] <Rastafarii> almost as apache's mod_rewrite :D
172: [16:07:00] * jerga quit (Ping timeout: 252 seconds)
173: [16:19:00] * SightUnseen has joined #silverstripe
174: [16:19:00] * jerga has joined #silverstripe
175: [16:23:00] * SightUnseen quit (Ping timeout: 240 seconds)
176: [16:24:00] * instabil quit (Read error: Connection reset by peer)
177: [17:06:00] * instabil has joined #silverstripe
178: [17:06:00] <Kolin> Can i use getCMSFields to customise field editors for model admin?
179: [17:08:00] <Rastafarii> @Kolin - that's kind of intended usage of getCMSFields
180: [17:10:00] <Rastafarii> so - yes, offcourse :)
181: [17:11:00] <Kolin> That's what i thought, But im getting "Call to a member function setConfig() on a non-object"
182: [17:11:00] <Kolin> 2 secs, I'll stick the code in a pastebin
183: [17:11:00] <Rastafarii> on which field?
184: [17:12:00] <Kolin> http://paste.laravel.com/gzH line 28
185: [17:12:00] * instabil quit (Read error: Connection reset by peer)
186: [17:12:00] <Rastafarii> oket
187: [17:19:00] * SightUnseen has joined #silverstripe
188: [17:21:00] <Rastafarii> try this: http://paste.laravel.com/gzJ
189: [17:24:00] * SightUnseen quit (Ping timeout: 260 seconds)
190: [17:25:00] <Kolin> Call to undefined method TimeField::set_default_config()
191: [17:26:00] <jerga> Kolin: the error message means that the field was returned as null
192: [17:26:00] <Kolin> I think i might split the SS_Datetime field into two seperate fields and see how it goes
193: [17:26:00] <Kolin> Yeah, im just really confused about why this wont work
194: [17:26:00] <jerga> so the error is something else
195: [17:26:00] <jerga> from fieldByName
196: [17:26:00] <jerga> hmm, what Kolin had originally looks like it should be correct
197: [17:27:00] <jerga> see what's actually coming back
198: [17:27:00] <jerga> but it was a long time ago
199: [17:27:00] <jerga> no? hmm, I thought I'd made this work
200: [17:27:00] <Rastafarii> @jerga I thought also that it should work, but never actually managed to make it
201: [17:27:00] <jerga> try doing a var_dump($fields->fieldByName('KickOff')) (and die() after)
202: [17:28:00] <jerga> something strange is happening all right
203: [17:28:00] <Kolin> yeah, that's what gives me NULL jerga
204: [17:28:00] <jerga> okay, so that's the problem to solve first
205: [17:28:00] <jerga> check the HTML in the CMS and see what that field is called as it's ID value
206: [17:30:00] <Kolin> Its called KickOff in the HTML
207: [17:30:00] <jerga> for example: http://paste.laravel.com/gzQ
208: [17:30:00] <jerga> this seems to work in 2.4.x for silverstripe core blog
209: [17:30:00] <Kolin> fieldByName wont work for any of my other fields either
210: [17:31:00] <Kolin> yeah
211: [17:31:00] <jerga> hmm, is this 3.x ?
212: [17:31:00] <jerga> maybe this has changed?
213: [17:32:00] <Rastafarii> but when you rely on automatic field generation, it doesn't
214: [17:32:00] <Rastafarii> this snippet above works
215: [17:32:00] <Rastafarii> when you manually add field
216: [17:32:00] <jerga> perhaps you need to use dot syntax?
217: [17:33:00] <jerga> so I can't check update notes ;(
218: [17:33:00] <jerga> eg. Root.Field
219: [17:33:00] <jerga> ooh 502 Bad Gateway
220: [17:33:00] <jerga> ssdoc is not responding for me right now
221: [17:34:00] <Rastafarii> http://paste.laravel.com/gzR
222: [17:35:00] <jerga> but that's not directly relevant..
223: [17:35:00] <Rastafarii> try this one: http://paste.laravel.com/gzR
224: [17:35:00] <Kolin> The 3.0 docs say it should work like this
225: [17:35:00] <jerga> checking cached version.. Their example is this:
226: [17:35:00] <jerga> $fields->fieldByName('Root')->fieldByName('Main')->push($myField);
227: [17:36:00] <Kolin> Yeah, thats working
228: [17:37:00] <Rastafarii> it will create proper DateTime field and place it where original one should be
229: [17:37:00] <Rastafarii> but dunno why $fields->fieldByName('KickOff')->setConfig('datavalueformat', 'YYYY-MM-dd HH:mm'); wont work
230: [17:37:00] <jerga> aha, Kolin, I found that if I do ->fieldByName('Root.Main.FieldName') that works
231: [17:38:00] <jerga> from the scaffolded fields it seems to want a full path to fieldByName()
232: [17:38:00] <jerga> documentation issue this
233: [17:38:00] <Kolin> yeah, thats working too
234: [17:39:00] <Rastafarii> splendid LD
235: [17:39:00] <Kolin> Thanks for the help!
236: [17:47:00] <jerga> welcome
237: [17:47:00] <jerga> hmm, I seem to have found a slight bug in Datetime field. The CMS HTML is getting messed up.. Now to track it down
238: [17:49:00] <jerga> btw, there's also: http://sspaste.com which is a pastebin specific to silverstripe
239: [17:58:00] * SightUnseen has joined #silverstripe
240: [18:04:00] * jerga quit (Ping timeout: 245 seconds)
241: [18:06:00] * simon_w|air has joined #silverstripe
242: [18:11:00] * chillu quit (Quit: chillu)
243: [18:18:00] * jerga has joined #silverstripe
244: [18:24:00] * Emil_Blume quit (Quit: Leaving.)
245: [18:49:00] * simon_w|air quit (Quit: This computer has gone to sleep)
246: [18:57:00] * gelignite quit (Ping timeout: 264 seconds)
247: [19:00:00] * Unlearned quit (Quit: Going offline, see ya! (www.adiirc.com))
248: [19:37:00] * Guest7380 is now known as irogue
249: [19:39:00] * DigNZ quit (Remote host closed the connection)
250: [19:39:00] * DigNZ has joined #silverstripe
251: [19:40:00] * DigNZ has joined #silverstripe
252: [19:42:00] * nickmolhoek has joined #silverstripe
253: [19:42:00] * nickmolhoek has joined #silverstripe
254: [19:42:00] * nickmolhoek quit (Remote host closed the connection)
255: [19:49:00] * jerga has left #silverstripe
256: [19:52:00] * Rastafarii quit (Ping timeout: 245 seconds)
257: [19:54:00] * zfmf has left #silverstripe
258: [19:55:00] * zfmf has joined #silverstripe
259: [20:01:00] * SightUnseen quit (Quit: Leaving.)
260: [20:01:00] * SightUnseen has joined #silverstripe
261: [20:04:00] * lerni has joined #silverstripe
262: [20:08:00] * SightUnseen has left #silverstripe
263: [20:11:00] * zfmf has left #silverstripe
264: [20:18:00] * dendeffe quit (Quit: dendeffe)
265: [20:27:00] * chillu has joined #silverstripe
266: [20:32:00] * simon_w|air has joined #silverstripe
267: [20:38:00] * pex__ has joined #silverstripe
268: [20:49:00] * Pyromanik has joined #silverstripe
269: [20:50:00] <Pyromanik> derptyderp
270: [20:50:00] <simon_w> Suckers!
271: [20:50:00] <simon_w> Lots of people at the bus stop without jackets
272: [20:50:00] <Pyromanik> lol
273: [20:50:00] <simon_w> So, rain
274: [20:51:00] <Pyromanik> so chappy who wanted me to help him make the tree field available directly on a page tab in the weekend never showed up.
275: [20:51:00] <simon_w> Ooh, first person in a jacket I've seen today
276: [20:52:00] <simon_w> Or if the boss finally decided to go with TreeMultiselectField
277: [20:52:00] <Pyromanik> I wonder if they succeeded on their own
278: [20:52:00] <Pyromanik> doubt it
279: [20:52:00] <Pyromanik> poor chap seemed pretty pressured to get it done
280: [20:56:00] * simon_w|air quit (Quit: This computer has gone to sleep)
281: [21:01:00] * robert___ has joined #silverstripe
282: [21:04:00] * robert_ quit (Ping timeout: 244 seconds)
283: [21:10:00] <irogue> @Tenani: You can see the Auckland public collectively looking at the sky thinking "Oh I remember rain..."
284: [21:11:00] <simon_w> Just like here. First time it's rained in about a fortnight :)
285: [21:12:00] <simon_w> So many people forgot that you always need a jacket in Wellington :)
286: [21:23:00] * Pyromanik knew it was going to rain, but forewent a jacket as usual.
287: [21:24:00] <Pyromanik> irogue: you're a twitty kinda guy, do a @wdcnz y4u no speakers?
288: [21:34:00] * onfire has joined #silverstripe
289: [21:35:00] <onfire> hi guys, I have a datalist that I would typically use <% loop %> to add each item to a <ul>, but I need to split it into multiple <ul> lists of 10 each
290: [21:35:00] <onfire> is there a simple way
291: [21:36:00] <onfire> yes! I just realised this myself
292: [21:36:00] <simon_w> <% if $MultipleOf(10) %></ul><ul><% end_if %>
293: [21:36:00] <simon_w> inside the loop
294: [21:38:00] * onfire quit (Client Quit)
295: [21:39:00] <Pyromanik> Unknown column "UserDefinedForm.Version" -> what do?
296: [21:40:00] <Pyromanik> site worked fine until about 20 seconds ago when UserDefinedForm got subclassed.
297: [21:41:00] <simon_w> Oh, that problem. I've seen that before. Can't remember the fix though.
298: [21:43:00] * SightUnseen has joined #silverstripe
299: [21:43:00] <Pyromanik> :<
300: [21:43:00] <Pyromanik> halp
301: [21:43:00] * SightUnseen quit (Client Quit)
302: [21:46:00] <simon_w> https://github.com/silverstripe/silverstripe-userforms/blob/master/code/model/UserDefinedForm.php#L40 should go bye bye
303: [21:46:00] <simon_w> Oh! I remember!
304: [21:46:00] <simon_w> Pyromanik, remove the Versioned extension from UDF
305: [21:46:00] <Pyromanik> :D!
306: [21:46:00] <Pyromanik> o.0
307: [21:46:00] <Pyromanik> update UDF, is taht what I heard?
308: [21:48:00] <Pyromanik> cool, thanks!
309: [21:48:00] <Pyromanik> :<
310: [21:48:00] <Pyromanik> never had issue before. Is it because subclass?
311: [21:48:00] <simon_w> yeah
312: [21:48:00] <Pyromanik> :/
313: [21:49:00] <simon_w> And you're all still versioned, because the extension is on SiteTree
314: [21:51:00] <Pyromanik> works a charm
315: [21:51:00] <simon_w> Oh, it's all willr's fault too
316: [21:51:00] <Pyromanik> mm
317: [21:51:00] <Pyromanik> it is
318: [21:51:00] <Pyromanik> I figured that, I just wouldn't have expected that UDF's extension would conflict with SiteTree's or whatever.
319: [21:51:00] <Pyromanik> I don't really understand what's going on, but thanks for the tip!
320: [21:52:00] <simon_w> It's trying to get the Version column from the parent class the extension's applied to
321: [21:56:00] <simon_w> yup
322: [21:56:00] <Pyromanik> simon_w: what's the get by id equiv now?
323: [21:56:00] <Pyromanik> ->byID() ?
324: [21:56:00] <Pyromanik> cheers
325: [21:57:00] <Pyromanik> thanks
326: [21:57:00] <Pyromanik> and you just give it an int/string, or can you array(#,#,#,#) ?
327: [21:57:00] <simon_w> int/string
328: [21:57:00] <simon_w> array is byIDs
329: [21:57:00] * instabil has joined #silverstripe
330: [21:57:00] <Pyromanik> sweet
331: [21:57:00] <Pyromanik> ah cool
332: [21:57:00] <Pyromanik> (array bit was from curiosity)
333: [21:58:00] <Pyromanik> oh yeah :D
334: [21:58:00] <simon_w> Ooh, I get Wednesday off. I need to remember that.
335: [22:18:00] * lerni quit (Remote host closed the connection)
336: [22:52:00] * pex__ has left #silverstripe
337: [22:53:00] <spronk> OH DEAR GOD
338: [22:53:00] <spronk> does anyone have a better solution to sharing windows host files via SMB for use as httpdocs in VM?!
339: [22:54:00] <Pyromanik> lolwut
340: [22:55:00] <spronk> so i'm all
341: [22:55:00] <spronk> all my apache/nginxz are in linux vms running on a windows host
342: [22:55:00] <spronk> my editors and ides etc are on windows
343: [22:55:00] <spronk> so my current solution is windows shares via SMB, linux consumes
344: [22:55:00] <spronk> but it occasionally becomes slow as fuck
345: [22:55:00] <spronk> /dev/build .... wait *literally* 5 minutes, and it's done
346: [22:59:00] <Pyromanik> o.0
347: [22:59:00] <Pyromanik> :<
348: [22:59:00] <Pyromanik> why
349: [23:00:00] <simon_w> spronk, pick one OS. Use it.
350: [23:01:00] <simon_w> Problem solved!
351: [23:01:00] <Pyromanik> ringOS - be lord of it.
352: [23:01:00] <spronk> simon_w: the OS would be linux, but linux is shit
353: [23:01:00] <spronk> i have no idea *why* it's slow
354: [23:02:00] <simon_w> nope
355: [23:02:00] <Pyromanik> spronk: so bind9?
356: [23:02:00] * pex__ has joined #silverstripe
357: [23:02:00] <Pyromanik> err
358: [23:02:00] <Pyromanik> system 9
359: [23:02:00] <Pyromanik> system V
360: [23:02:00] <Pyromanik> no wait
361: [23:02:00] <spronk> why I use windows as host OS is for tools like photoshop, and wincachegrind
362: [23:02:00] <Pyromanik> fuckit, just BeOS
363: [23:02:00] <spronk> mac os x is inferior for many-monitor systems, so I don't use that
364: [23:02:00] <simon_w> So just run apache in windows
365: [23:02:00] <Pyromanik> pfft
366: [23:02:00] <Pyromanik> ^
367: [23:02:00] <spronk> simon_w: wasn't it you that went on at me a while back for having different dev/prod environments? ;)
368: [23:03:00] <simon_w> I'm pretty sure it wasn't, since we're not set up like that at all
369: [23:03:00] <spronk> pretty sure it was. but regardless, that's why no apache in windows
370: [23:03:00] <simon_w> Just got a staging that's the same as live
371: [23:04:00] <simon_w> I guess you could move the files into the VM and set up a share out that you can access the files from in windows
372: [23:04:00] <simon_w> So production also has files running through a SMB share? :p
373: [23:04:00] <spronk> hmm
374: [23:05:00] <simon_w> or a sshfs equivalant for windows
375: [23:05:00] <spronk> i wonder if samba is up to the task
376: [23:05:00] <simon_w> If it isn't, get an editor that works over SFTP :p
377: [23:05:00] <spronk> actually if i could mount the filesystem via scp in windows homehow..
378: [23:06:00] <spronk> hmm, might give this a go
379: [23:06:00] <simon_w> http://code.google.com/p/win-sshfs/
380: [23:06:00] <Pyromanik> hmm, looks pretty neat
381: [23:08:00] * joha has joined #silverstripe
382: [23:09:00] <Pyromanik> joha: you didn't show in the weekend. Did you figure it out?
383: [23:12:00] * howardgrigg has joined #silverstripe
384: [23:14:00] <joha> yes almost, override the TreeDropdownField, just override the public function tree(SS_HTTPRequest $request) {
385: [23:15:00] <joha> i know its a stupid question but i didnt find any solution by using google
386: [23:15:00] <joha> but now am just wondering in a database entry, how to you remove the value of a cell
387: [23:16:00] <joha> is it "http://doc.silverstripe.org/framework/en/reference/sqlquery"??
388: [23:20:00] * C10ne quit (Ping timeout: 245 seconds)
389: [23:26:00] <Pyromanik> joha: you set a new value and write it?
390: [23:27:00] <joha> i only know to create a new database entry
391: [23:27:00] <Pyromanik> it sounds like you have an X -> Y problem.
392: [23:27:00] <Pyromanik> I don't understand what you're trying to do
393: [23:28:00] <Pyromanik> You're asking us Y, when you should ask us X so we can tell you Z.
394: [23:28:00] <Pyromanik> http://daniel-lange.com/archives/69-The-XY-problem-in-IT-management.html
395: [23:29:00] <joha> ok, in the database, there is a table called A, in the A there is a column called B, i need to make sure I can reset the value of A && ID = 1 && column called B
396: [23:30:00] <joha> if its clear for you? I know i can use v = = new A(); to create a new table.. but i dont know how to delete the cell
397: [23:32:00] <joha> should I use get() and then foreach the value?
398: [23:38:00] * joha quit (Ping timeout: 245 seconds)
399: [23:58:00] * chillu quit (Quit: chillu)

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