#silverstripe IRC Log

IRC log for 31 August 2013

All timestamps are in UTC.

1: [00:13:44] * aragonne quit (Ping timeout: 260 seconds)
2: [00:15:33] * joelpittet has joined #silverstripe
3: [00:22:02] * aragonne has joined #silverstripe
4: [00:23:11] * joelpittet quit (Remote host closed the connection)
5: [00:32:55] * zlincoln has joined #silverstripe
6: [00:34:19] <zlincoln> on an upgrade from 3.0 to 3.1 I got screwed by the default casting change I believe
7: [00:34:41] <zlincoln> are special characters being converted to  a symptom of this?
8: [00:49:32] <zippy__> might want to submit a bug report
9: [00:52:51] <zlincoln> thanks zippy, i will
10: [00:58:28] * zippy__ quit (Ping timeout: 240 seconds)
11: [01:17:08] * unsignedint has joined #silverstripe
12: [01:21:42] * unsignedint quit (Ping timeout: 264 seconds)
13: [01:22:09] * AlphaCactus quit (Quit: kthxbai)
14: [01:28:50] <micmania1> zlincoln, what character was converted to that?
15: [02:07:32] <zlincoln> all special characters like quotes, dashes, hyphens
16: [02:20:21] * micmania1 quit (Ping timeout: 248 seconds)
17: [03:17:29] * unsignedint has joined #silverstripe
18: [03:22:05] * unsignedint quit (Ping timeout: 256 seconds)
19: [04:01:19] * cloph_away quit (Ping timeout: 246 seconds)
20: [04:06:20] * cloph_away has joined #silverstripe
21: [04:41:19] * zlincoln quit (Ping timeout: 250 seconds)
22: [04:49:05] * howardgrigg quit (Read error: Connection reset by peer)
23: [04:49:18] * howardgrigg has joined #silverstripe
24: [04:50:34] <howardgrigg> what's the best way to only set a value if an array key exists i.e. http://pastie.org/8285439
25: [04:51:08] <howardgrigg> for example if the thumbnail isn't returned in the json then I don't want to try and set it
26: [04:57:27] * swordsmanz quit (Ping timeout: 260 seconds)
27: [05:17:50] * unsignedint has joined #silverstripe
28: [05:22:39] * unsignedint quit (Ping timeout: 268 seconds)
29: [06:13:38] * Trooy has joined #silverstripe
30: [06:19:35] * Trooy quit (Ping timeout: 245 seconds)
31: [06:40:47] <ss23> A lot of caching systems require you to do manual "$res = cache::get; if (!$res) { get it and store it} return $res"
32: [06:40:50] <ss23> Would you guys consider it an improvement to instead us something like "$res = cache::get('key', function() { function to get the cache value if it doesn't exist });" instead?
33: [07:04:05] * [lewellyn] has joined #silverstripe
34: [07:04:54] * lewellyn quit (Disconnected by services)
35: [07:04:59] * [lewellyn] is now known as lewellyn
36: [07:09:31] * howardgrigg quit (Read error: Connection reset by peer)
37: [07:11:24] * aragonne quit (*.net *.split)
38: [07:11:25] * jon-shape quit (*.net *.split)
39: [07:11:26] * Kapdap quit (*.net *.split)
40: [07:17:13] * Kapdap has joined #silverstripe
41: [07:17:13] * jon-shape has joined #silverstripe
42: [07:18:12] * unsignedint has joined #silverstripe
43: [07:22:35] * unsignedint quit (Ping timeout: 260 seconds)
44: [07:29:54] * ARNHOE has joined #silverstripe
45: [07:36:22] * howardgrigg has joined #silverstripe
46: [08:05:07] * priithansen has joined #silverstripe
47: [08:16:55] * howardgrigg quit (Remote host closed the connection)
48: [08:33:17] <wmk> good morning gentlemen
49: [08:34:45] <wmk> ss23, the cache::get('key', function() ) approach sounds cool.
50: [08:34:51] <ss23> mmm :D
51: [08:35:05] <wmk> do you have any experienc in debugging a closure with xdebug? does it work well?
52: [08:35:13] <ss23> Hmm
53: [08:35:20] <ss23> No idea, sorry. I don't use xdebug at all
54: [08:35:23] <wmk> funtional programing seems to be very trendy atm..?
55: [08:35:38] <ss23> Yeah, for the past few years
56: [08:35:43] <ss23> With NodeJS, I tell you!
57: [08:35:47] <ss23> It's lal those JS fanboys
58: [08:35:48] <ss23> :<
59: [08:36:30] <wmk> lal ? all??
60: [08:36:34] <ss23> all;
61: [08:36:35] <ss23> all
62: [08:36:36] <ss23> sorry
63: [08:37:32] <wmk> ;)
64: [08:37:49] * wmk was thinking of looking in to scala or clojure when i have time(tm)
65: [08:40:15] <wmk> ss23, did you play with nodejs?
66: [08:40:23] <ss23> Only a tiny amount
67: [08:47:21] <wmk> when i include my own forks to a project via composer, how can i get composer to include the whole git repo so i can push to my repo again?
68: [08:53:34] <ss23> When you do a composer install, do uh... --keep-vcs iirc (think --dev does that by default)
69: [08:55:16] <wmk> from docs i only see --keep-vcs for create-project
70: [08:56:12] <ss23> --prefer-source then
71: [08:56:15] <ss23> it'll grab it from git
72: [08:56:34] <wmk> but will it throw away the repo files?
73: [08:56:44] <ss23> I don't think so
74: [08:56:51] <ss23> might need --dev too?
75: [08:56:57] <ss23> I think --dev alone should be enough, I'm not sure
76: [08:57:05] <ss23> yes
77: [08:57:10] <ss23> wmk: This is useful if you want to make a bugfix to a project and get a local git clone of the dependency directly.
78: [08:57:14] <ss23> from --prefer-source:
79: [08:57:25] <wmk> "--dev installes packages listed in require-dev"
80: [08:58:14] <wmk> oh. cool
81: [09:04:15] * violet- is now known as violetina
82: [09:07:22] <wmk> ss23, yeah
83: [09:07:36] <wmk> composer update --prefer-source my/package
84: [09:10:29] <wmk> 10x a lot
85: [09:18:34] * unsignedint has joined #silverstripe
86: [09:22:37] * unsignedint quit (Ping timeout: 246 seconds)
87: [09:35:30] * kerosene has joined #silverstripe
88: [09:59:23] * Shrike_Finland has joined #silverstripe
89: [09:59:30] <wmk> hi Shrike_Finland
90: [10:00:26] <Shrike_Finland> hello
91: [10:12:41] * gelignite has joined #silverstripe
92: [10:17:20] * howardgrigg has joined #silverstripe
93: [10:22:07] * howardgrigg quit (Ping timeout: 264 seconds)
94: [10:33:19] * ss23 quit (Ping timeout: 246 seconds)
95: [10:39:26] * ss23 has joined #silverstripe
96: [10:44:26] * howardgrigg has joined #silverstripe
97: [11:18:54] * unsignedint has joined #silverstripe
98: [11:22:56] * unsignedint quit (Ping timeout: 245 seconds)
99: [11:35:05] * gelignite quit (Quit: http://bit.ly/nkczDT)
100: [11:39:17] * gelignite has joined #silverstripe
101: [11:48:38] <howardgrigg> gah I'm missing something obvious - on submitting a form I'm getting a
102: [11:48:48] <howardgrigg> "Page not found" error
103: [12:18:16] * howardgr_ has joined #silverstripe
104: [12:27:59] * howardg__ has joined #silverstripe
105: [12:30:11] * howardg__ quit (Remote host closed the connection)
106: [12:31:59] * howardgr_ quit (Ping timeout: 260 seconds)
107: [12:51:38] <Zauberfisch_> howardgrigg allowed actions not set to the form name?
108: [12:52:02] * howardgr_ has joined #silverstripe
109: [12:52:09] <Zauberfisch_> howardgrigg also note that allowed actions is cached as of 3.1, so you need to flush=1 for new allowed actions to take effekt
110: [12:52:32] <howardgr_> oh that'll be it...
111: [12:53:48] <howardgr_> yup that was all it was - thanks!
112: [12:55:22] <Zauberfisch_> you're welcome
113: [13:05:33] <ARNHOE> I am trying to return the highest value
114: [13:05:49] <ARNHOE> Why is 103.29 higher then 111.66 ?
115: [13:09:26] <howardgr_> ARNHOE: that doesn't sound right...
116: [13:09:41] <ARNHOE> its same in Sequel Pro aswell
117: [13:10:25] <ARNHOE> It are darts average's, so 103.29, 91.40 etc but I am using Varchar(255) could that have something to do with it?
118: [13:12:05] * howardgrigg quit (Remote host closed the connection)
119: [13:12:35] <howardgr_> how are you getting the highest?
120: [13:13:36] <wmk> ARNHOE, what variable types?
121: [13:13:36] * gelignite quit (Quit: http://bit.ly/nkczDT)
122: [13:13:50] <wmk> Hey Zauberfisch, how are you?
123: [13:14:06] <ARNHOE> ORDER BY ABS(FinalWinnerAverage) seems to fix it
124: [13:14:39] <wmk> ABS = Absolute?
125: [13:14:41] <ARNHOE> Now, I just need to combine FinalWinnerAverage and FinalRunnerUpAverage and get a list through that, but been struggling with that for couple hours now. Anyone willing to help me with some time over?
126: [13:14:59] <wmk> if you only have positive or negative values this might work.
127: [13:15:00] <ARNHOE> wmk: yeah, I googled it and found that solution
128: [13:15:13] <ARNHOE> I will only have positive values
129: [13:15:18] <wmk> if you have pos AND neg values it make problems
130: [13:15:53] <ARNHOE> I wont, could you help me with combining this query with two columns and have it order by the highest value?
131: [13:19:15] * unsignedint has joined #silverstripe
132: [13:23:21] * unsignedint quit (Ping timeout: 245 seconds)
133: [13:23:24] <wmk> ARNHOE, can you paste something?
134: [13:24:04] <ARNHOE> It's oke, I managed to get it working
135: [13:26:22] <ARNHOE> wanted something more complicated but ill settle with the result i got
136: [13:30:30] <wmk> yup, KISS
137: [13:34:23] <howardgr_> what's the best way to not have this error if one of the fields isn't included http://pastie.org/8286300
138: [13:35:07] <ARNHOE> if($this->Title) { } ? no idea not the best php-er
139: [13:35:07] <howardgr_> i.e. if there isn't a thumbnail in the json then that array key wont exist so it errors
140: [13:42:48] <wmk> does ArrayData have checking mechanism for that?
141: [13:46:50] <howardgr_> theres an "array_key_exists" which im trying
142: [13:59:36] <wmk> it gets complicated with recursive arrays.
143: [14:00:27] <wmk> why not use built in SS functionality?
144: [14:01:27] * priithansen quit (Quit: priithansen)
145: [14:03:27] <howardgr_> wmk: oh I got it working - the array id from a json response then converted to an array with json_decode so it's not a SS object
146: [14:04:01] <wmk> ain't there a json parser built in?
147: [14:04:17] <wmk> and you can easily convert $myArray = ArrayList::create($myArray)
148: [14:04:24] <howardgr_> is there?
149: [14:04:25] <wmk> which could solve some headaches
150: [14:05:09] <wmk> Convert::json2array sounds useful
151: [14:05:54] <wmk> ok, does nothing else than json_decode ;)
152: [14:08:19] <howardgr_> lol might have been useful though :p
153: [14:21:09] * howardgr_ quit (Remote host closed the connection)
154: [14:21:32] * priithansen has joined #silverstripe
155: [14:22:43] * howardgrigg has joined #silverstripe
156: [14:38:01] * priithansen quit (Quit: priithansen)
157: [14:46:34] * kerosene quit (Quit: leaving)
158: [15:05:05] * cloph_away quit (Read error: Connection reset by peer)
159: [15:19:36] * unsignedint has joined #silverstripe
160: [15:22:05] * cloph_away has joined #silverstripe
161: [15:24:01] * unsignedint quit (Ping timeout: 256 seconds)
162: [15:24:54] <wmk> man, running dev/build?flush=1 complains about class not found, cause i statically configured something in a _config.php
163: [15:31:38] * howardgr_ has joined #silverstripe
164: [15:32:32] * cloph_away quit (Ping timeout: 268 seconds)
165: [15:34:15] * cloph_away has joined #silverstripe
166: [15:35:43] * howardgr_ quit (Ping timeout: 246 seconds)
167: [15:38:08] * howardgrigg quit (Remote host closed the connection)
168: [15:41:30] * cloph_away quit (Ping timeout: 264 seconds)
169: [15:45:59] * cloph_away has joined #silverstripe
170: [15:53:08] <wmk> Zauberfisch, around?
171: [16:01:22] * joelpittet has joined #silverstripe
172: [16:15:11] <Zauberfisch> wmk: yes
173: [16:26:38] <wmk> i have taken unclecheese's TranslatableDataObject class in a seperate module, (along with Translatable) and i cannot run dev/build on testserver, cause it always claims 'class not found'
174: [16:27:12] <Zauberfisch> dev/build is buggy in 3.1, you have to do dev/build?flush=1
175: [16:27:19] <wmk> any hints? ATM i try to replace it with BummZack's TranslatableDataobject Module in the hope it'll work...
176: [16:27:38] <wmk> yeah, flush=1 or not, it doesn't find the class.
177: [16:27:48] <wmk> any name confclict with Translatable possible?
178: [16:27:58] * joelpittet quit (Remote host closed the connection)
179: [16:28:18] <Zauberfisch> no idea
180: [16:28:31] <Zauberfisch> haven't done multilanguage files in quiet some time
181: [16:28:38] <Zauberfisch> none in 3.1 ever
182: [16:29:08] <wmk> dunno if manifestloader supposes TranslatableDataobject class in Translatable.php ???
183: [16:29:24] <Zauberfisch> it should, yes
184: [16:29:46] <wmk> but it's in another dir in TranslatableDataObject.php
185: [16:30:19] <wmk> I'll try the other module
186: [16:30:21] <Zauberfisch> is it working on some servers but not on others?
187: [16:31:03] <wmk> it was driving me crazy this morning on my VM, suddenly it worked
188: [16:31:15] <wmk> now it's driving me crazy on the testing server
189: [16:31:25] * joelpittet has joined #silverstripe
190: [16:32:01] <wmk> commenting out static configuration in mymodule/_config.php helps (but doesn't register the class to translate)
191: [16:32:10] * joelpittet quit (Remote host closed the connection)
192: [16:52:29] <Zauberfisch> hmmm
193: [16:52:30] <Zauberfisch> no idea
194: [16:52:31] <Zauberfisch> sorry
195: [16:52:59] <wmk> seems like bummzacks module is ready for 3.1
196: [16:53:03] <wmk> just deploying
197: [16:54:00] <wmk> annoying when such things break and a half-hour job costs half a day
198: [16:55:10] <wmk> anyway thanks for helping, Zauberfisch
199: [17:02:06] <wmk> yes, it works as expected. why simple when it can be complicated?
200: [17:19:57] * unsignedint has joined #silverstripe
201: [17:24:22] * unsignedint quit (Ping timeout: 256 seconds)
202: [17:38:33] * howardgrigg has joined #silverstripe
203: [17:42:56] * howardgrigg quit (Ping timeout: 245 seconds)
204: [17:51:14] * gelignite has joined #silverstripe
205: [18:50:27] * ARNHOE quit (Remote host closed the connection)
206: [19:13:12] * NitinShah has joined #silverstripe
207: [19:20:16] * unsignedint has joined #silverstripe
208: [19:24:30] * unsignedint quit (Ping timeout: 256 seconds)
209: [19:35:12] * NitinShah quit (Quit: Leaving)
210: [19:35:37] * ARNHOE has joined #silverstripe
211: [19:39:02] * howardgrigg has joined #silverstripe
212: [19:40:10] * ARNHOE quit (Ping timeout: 256 seconds)
213: [19:43:28] * howardgrigg quit (Ping timeout: 245 seconds)
214: [19:52:57] * swordsmanz has joined #silverstripe
215: [19:55:19] * SightUnseen has joined #silverstripe
216: [19:56:07] * drama has joined #silverstripe
217: [20:00:25] * drama quit (Ping timeout: 250 seconds)
218: [20:01:00] * SightUnseen has left #silverstripe
219: [20:59:30] * violetina2 quit (Remote host closed the connection)
220: [21:19:55] * howardgrigg has joined #silverstripe
221: [21:20:38] * unsignedint has joined #silverstripe
222: [21:25:18] * unsignedint quit (Ping timeout: 264 seconds)
223: [21:33:04] * howardgrigg quit (Remote host closed the connection)
224: [21:39:35] * howardgrigg has joined #silverstripe
225: [21:43:46] * howardgrigg quit (Ping timeout: 245 seconds)
226: [23:15:50] * violetina quit (Remote host closed the connection)
227: [23:20:57] * unsignedint has joined #silverstripe
228: [23:25:42] * unsignedint quit (Ping timeout: 256 seconds)
229: [23:40:06] * howardgrigg has joined #silverstripe
230: [23:44:36] * howardgrigg quit (Ping timeout: 256 seconds)
231: [23:45:07] * howardgrigg has joined #silverstripe

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