#silverstripe IRC Log

IRC log for 3 January 2017

All timestamps are in UTC.

1: [00:25:57] * janneklouman-- has joined #silverstripe
2: [00:30:26] * janneklouman-- quit (Ping timeout: 246 seconds)
3: [00:40:02] * filisko quit (Ping timeout: 245 seconds)
4: [02:27:46] * janneklouman-- has joined #silverstripe
5: [02:32:29] * janneklouman-- quit (Ping timeout: 246 seconds)
6: [03:03:23] * shellbackpacific has joined #silverstripe
7: [03:03:35] * shellbackpacific has left #silverstripe
8: [03:28:48] * janneklouman-- has joined #silverstripe
9: [03:33:21] * Azure quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10: [03:33:22] * janneklouman-- quit (Ping timeout: 258 seconds)
11: [04:29:39] * janneklouman-- has joined #silverstripe
12: [04:36:25] * janneklouman-- quit (Ping timeout: 265 seconds)
13: [05:33:18] * janneklouman-- has joined #silverstripe
14: [05:38:37] * janneklouman-- quit (Ping timeout: 272 seconds)
15: [07:34:44] * janneklouman-- has joined #silverstripe
16: [07:37:52] * Eliseth has joined #silverstripe
17: [07:39:11] * janneklouman-- quit (Ping timeout: 246 seconds)
18: [07:45:35] * trash_ quit (Ping timeout: 260 seconds)
19: [08:14:45] * Eliseth quit (Ping timeout: 258 seconds)
20: [08:35:45] * janneklouman-- has joined #silverstripe
21: [08:40:30] * janneklouman-- quit (Ping timeout: 265 seconds)
22: [08:58:07] * kinglozzer has joined #silverstripe
23: [09:00:28] * janneklouman-- has joined #silverstripe
24: [09:50:12] * agent44 has joined #silverstripe
25: [10:15:27] * janneklouman-- quit (Read error: Connection reset by peer)
26: [10:21:11] * janneklouman-- has joined #silverstripe
27: [11:29:42] * Eliseth has joined #silverstripe
28: [11:46:09] * janneklouman-- quit (Read error: Connection reset by peer)
29: [11:51:57] * janneklouman-- has joined #silverstripe
30: [12:00:43] * janneklouman-- quit (Read error: Connection reset by peer)
31: [12:06:28] * janneklouman-- has joined #silverstripe
32: [12:16:45] * janneklouman-- quit (Read error: Connection reset by peer)
33: [12:22:34] * janneklouman-- has joined #silverstripe
34: [12:31:32] * janneklouman-- quit (Read error: Connection reset by peer)
35: [12:37:16] * janneklouman-- has joined #silverstripe
36: [12:54:44] * jarard02 has joined #silverstripe
37: [12:54:45] <ss-helper> jarard02: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
38: [12:55:20] <jarard02> hi everyone, when adding images from my assets to the cms editor for a page, in the prevew the image displays ok
39: [12:55:40] <jarard02> but on my live page the image is broken because the url is not relative to the site root
40: [12:56:05] <jarard02> src=assets/blah
41: [12:56:16] <jarard02> should be src=/assets/blah
42: [13:14:04] * filisko has joined #silverstripe
43: [13:26:33] * UndefinedOffset has joined #silverstripe
44: [13:45:41] * wmk has joined #silverstripe
45: [14:01:02] * muskie9 has joined #silverstripe
46: [14:01:23] * janneklouman-- quit (Read error: Connection reset by peer)
47: [14:07:09] * janneklouman-- has joined #silverstripe
48: [14:08:21] * r5v3rb has joined #silverstripe
49: [14:09:02] <r5v3rb> why does $Image.Orientation return 0,1,2 and not Square, Portrait or Landscape?!?!
50: [14:09:13] <r5v3rb> and there is no .Nice either :(
51: [14:15:19] <ss-helper> Paypal with Swipestripe not redirecing - http://stackoverflow.com/questions/41445254/paypal-with-swipestripe-not-redirecing
52: [14:24:02] <r5v3rb> happy new year by the way!
53: [14:26:09] <wmk> r5v3rb, yeah, happy new year...
54: [14:26:33] <r5v3rb> wmk :D
55: [14:26:41] <r5v3rb> wmk: :D even
56: [14:27:13] <wmk> i got this "new year" managed, but the happy part seems tricky
57: [14:31:48] * janneklouman-- quit (Read error: Connection reset by peer)
58: [14:40:33] <r5v3rb> wmk: i’ve got the ‘happy’ but not the new year yet
59: [14:41:05] <wmk> we'd make a perfect team!
60: [14:41:14] <r5v3rb> I could do wih help :D
61: [14:43:06] * janneklouman-- has joined #silverstripe
62: [14:46:47] * janneklouman-- quit (Read error: Connection reset by peer)
63: [14:48:04] * janneklouman-- has joined #silverstripe
64: [14:59:33] * muskie9 quit (Ping timeout: 248 seconds)
65: [15:02:03] * janneklouman-- quit (Read error: Connection reset by peer)
66: [15:07:49] * janneklouman-- has joined #silverstripe
67: [15:35:24] * Eliseth quit (Quit: Textual IRC Client: www.textualapp.com)
68: [15:57:42] * wmk quit (Ping timeout: 248 seconds)
69: [16:06:53] * r5v3rb quit (Quit: r5v3rb)
70: [16:32:49] * janneklouman-- quit (Read error: Connection reset by peer)
71: [16:38:33] * janneklouman-- has joined #silverstripe
72: [16:52:35] * janneklouman-- quit (Read error: Connection reset by peer)
73: [16:58:24] * janneklouman-- has joined #silverstripe
74: [17:31:15] * kinglozzer quit ()
75: [18:03:29] * agent44 quit (Quit: zzz)
76: [18:07:09] * vanny has joined #silverstripe
77: [18:09:17] <vanny> happy new year all
78: [18:11:55] * samsam has joined #silverstripe
79: [18:13:20] <DimiStripe> Hey guys , Any ideas how to import 500,000 records from CSV FAST in SS 3.5 ? I tried on part of data (1000records) and see :
80: [18:13:20] <DimiStripe> doing with CsvBulkLoader - 14seconds
81: [18:13:20] <DimiStripe> doing with new(), write() for object in manual loop - 10seconds
82: [18:13:20] <DimiStripe> doing with DB::Query one by one - 4 seconds
83: [18:13:20] <DimiStripe> With NaviCat i can import 500,000 records in 20minutes, however with SS it would take DAYS ! or at least 8 hours :(
84: [18:13:21] <DimiStripe> Maybe anyone knows a good strategy ?
85: [18:19:57] <vanny> Could you do it straight into the MYSQL table, just add the extra columns needed, with class name etc?
86: [18:20:36] <DimiStripe> yes im trying with DB::Query
87: [18:20:50] <DimiStripe> but i think i need multiple inserts in one query
88: [18:20:57] <DimiStripe> so meybe SS has smth similar?
89: [18:21:07] <vanny> i've never had to do that
90: [18:32:32] <DimiStripe> yep
91: [18:32:35] <DimiStripe> DB::query("INSERT INTO Address VALUES $multisql");
92: [18:32:39] <DimiStripe> does the job
93: [18:32:49] <DimiStripe> $multisql are 500 records
94: [18:32:55] <DimiStripe> so goes muhc faster :)
95: [18:35:05] * UndefinedOffset quit (Quit: Leaving.)
96: [18:56:17] * samsam has left #silverstripe
97: [19:05:46] <vanny> what is the best way to clean out old images that are in the assets folder that are no longer required. Or is there a way to compact them all, currently have about 10,000 images, and 17GB of data
98: [19:20:53] * samsamek has joined #silverstripe
99: [19:20:53] <ss-helper> samsamek: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
100: [19:21:08] <samsamek> don’t treat me like a stranger ss-helper, I just changed my nickname
101: [19:34:48] * wmk has joined #silverstripe
102: [19:53:53] * janneklouman-- quit (Read error: Connection reset by peer)
103: [19:54:03] * gelignite has joined #silverstripe
104: [19:59:39] * janneklouman-- has joined #silverstripe
105: [20:01:35] * UndefinedOffset has joined #silverstripe
106: [20:06:17] * samsamek quit (Quit: samsamek)
107: [20:08:39] * DanaeNZ has joined #silverstripe
108: [20:15:18] * isaac_ has joined #silverstripe
109: [20:16:13] <isaac_> hey guys just need some clarification here, does the $default array get applied to new properties on a dev/build? https://www.silverstripe.org/community/forums/archive/show/2393
110: [20:16:44] <isaac_> $defaults *
111: [20:33:40] * UndefinedOffset quit (Quit: Leaving.)
112: [20:36:30] <wmk> isaac_, that's the default value for a new instance of that DataObject
113: [20:38:25] <wmk> it's called by http://api.silverstripe.org/3.5/class-DataObject.html#_populateDefaults
114: [20:40:13] <wmk> isaac_, http://api.silverstripe.org/3.5/class-DataObject.html#_requireDefaultRecords will write whole default objects to database
115: [20:48:34] <isaac_> @wmk so the $defaults array wont effect existing dataobjects that I add new properties to?
116: [20:48:52] <wmk> afaik no
117: [20:49:04] <wmk> you can check in onBeforeWrite() manually
118: [20:49:51] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
119: [21:21:21] * UndefinedOffset has joined #silverstripe
120: [21:27:06] * UndefinedOffset quit (Quit: Leaving.)
121: [21:38:30] * wmk quit (Ping timeout: 248 seconds)
122: [21:55:30] * vanny quit (Quit: Page closed)
123: [22:10:18] * terryapodaca has joined #silverstripe
124: [22:12:43] <terryapodaca> In ModelAdmin (CustomAdmin), is there a way to make the info across the top change? For instance, I have a Staff Object that is managed by model admin and when I click on a staff member in the grid, the top looks like (Back button) Staff / Product Manager where Product Manager is his title but I'd rather have their name there
125: [22:52:23] <DanaeNZ> terryapodaca: That's because it uses getTitle(). If you have Title on that object representing the job title it's just going to use that
126: [22:52:42] <DanaeNZ> terryapodaca: it's better to be specific and set that db field to be "JobTitle" instead of "Title"
127: [22:53:17] <DanaeNZ> Then you can create a getTitle() method that returns the name (although I think SS is intelligent enough to check for a field called Name as well)
128: [22:53:53] * janneklouman-- quit (Read error: Connection reset by peer)
129: [22:55:19] <terryapodaca> I should know this, but if I change Title to JobTitle, will I lose all my "job titles" I have already entered? I know I'll have to change the template, but will I lose my data in the DB?
130: [22:59:36] * janneklouman-- has joined #silverstripe
131: [23:00:02] * ss-helper quit (Remote host closed the connection)
132: [23:00:15] * ss-helper has joined #silverstripe
133: [23:11:56] * Azure has joined #silverstripe
134: [23:13:07] * DanaeNZ quit (Remote host closed the connection)
135: [23:13:45] * DanaeNZ has joined #silverstripe
136: [23:18:05] * DanaeNZ quit (Ping timeout: 245 seconds)
137: [23:33:03] * Azure quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
138: [23:53:23] * Azure has joined #silverstripe
139: [23:58:46] * terryapodaca has left #silverstripe

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