**** BEGIN LOGGING AT Tue May 26 02:59:58 2015 May 26 05:32:27 i had to give these hoes, i had to give these hoes someone to love May 26 12:14:01 * DougReeder waves good morning May 26 12:57:57 DougReeder: morning! May 26 12:58:13 * DougReeder smiles May 26 14:22:32 i have a javascript question May 26 14:22:49 say i have an array, [1, 2, 3,4]. i want to display this: May 26 14:22:50 1 May 26 14:22:53 12 May 26 14:22:54 123 May 26 14:22:55 1234 May 26 14:23:01 what would my logic look like? May 26 14:25:08 HaDAk: so you want to display the first element, then the first 2 elements, etc. each on a separate line? May 26 14:25:16 yeah May 26 14:26:39 var outString = ''; [1,2,3,4].forEach(function(val) { outString += val; console.log(val); }); May 26 14:26:44 should work? May 26 14:27:18 nope, that doesn't work May 26 14:27:25 it seems it is resetting outString... May 26 14:27:56 that's the problem i've been having. May 26 14:28:41 just a sec May 26 14:30:10 HaDAk: [1,2,3,4].forEach(function(val, idx, arr) { console.log(arr.slice(0,idx+1)); }); May 26 14:30:25 that gives you the array each time May 26 14:30:39 perfect. i think i can work with that. :) May 26 14:30:43 thankd GodGinrai! May 26 14:31:28 and to join it: May 26 14:31:29 [1,2,3,4].forEach(function(val, idx, arr) { console.log(arr.slice(0,idx+1).join("")); }); May 26 14:31:39 yw May 26 14:32:36 Yes, this is perfect. :D May 26 14:34:10 ok, last question... how do i tell when i'm printing the final line? May 26 14:34:12 GodGinrai: you just outputted the wrong variable :) var outString = ''; [1,2,3,4].forEach(function(val) { outString += val; console.log(outString); }); May 26 14:35:05 Tofe: oh lol, you're right. XD May 26 14:35:31 HaDAk: if (ix === array.length) May 26 14:35:37 * arr.length in that case May 26 14:35:44 s/ix/idx May 26 14:49:58 hell yeah. everything works like i want it to now May 26 14:50:03 you're the best GodGinrai May 26 15:20:19 glad to help May 26 16:30:43 Garfonso: ping May 26 16:50:30 FWIW, the last index will be length-1 May 26 16:50:46 ;-) May 26 16:59:46 details, details.... May 26 17:05:22 DougReeder: I hadn't eaten yet. :P May 26 17:08:35 * DougReeder smiles May 26 18:10:23 morphis: pong May 26 18:11:06 Garfonso: I am currently reimplementing the system update May 26 18:11:24 to be image based rather than package based May 26 18:12:47 Ah, OK. Do we have a system to download the image? May 26 18:12:50 we need a change in the update service for that May 26 18:13:15 Yes, sure. May 26 18:13:15 Garfonso: basically it's download a zip and placing it in /userdata/luneos-data/system-update.zip and then rebooting May 26 18:13:22 initramfs will do the rest May 26 18:14:15 it will use the same zip as we use for a new install through the recovery May 26 18:14:17 like http://build.webos-ports.org/luneos-stable/images/mako/luneos-dev-package-mako.zip May 26 18:14:58 OK. I can do the download in node.js. May 26 18:15:08 good May 26 18:15:16 my idea was that we continue using the manifest as it is May 26 18:15:29 but fetching the image from http://build.webos-ports.org/releases/ May 26 18:16:12 http://build.webos-ports.org/releases//images//-package-.zip May 26 18:16:18 would be the URL we have to build May 26 18:17:37 Is the release code name in the manifest? May 26 18:17:48 yeah May 26 18:17:54 as "Bombom" May 26 18:18:00 needs to be converted into lower case May 26 18:18:11 the image prefix can be taken from May 26 18:18:12 bash-4.3# nyx-cmd OSInfo query webos_imagename May 26 18:18:12 luneos-dev-image May 26 18:19:08 and machine name from: May 26 18:19:08 bash-4.3# nyx-cmd DeviceInfo query device_name May 26 18:19:09 mako May 26 18:21:24 Garfonso: can you do that rework on a separate branch? May 26 18:21:33 not sure when I merge those things into the official builds May 26 18:27:28 morphis: yes, I'll do that. May 26 18:28:38 morphis: BTW: I did a PR for the updates in testing some time ago. If we still want that. May 26 18:29:10 let me look May 26 18:29:40 hm May 26 18:30:14 just thinking if we shouldn't put a direct link into the manifest to the image May 26 18:30:23 instead of building the URL and downloading it then May 26 18:38:44 as then we could use the same approach for testing and stable May 26 18:53:41 Garfonso: I am thinking about an additional device-images.json file May 26 18:53:43 like https://bpaste.net/show/3230edf84274 May 26 18:53:57 which would be in http://build.webos-ports.org/luneos-stable/ and http://build.webos-ports.org/luneos-testing/ May 26 18:54:01 next to the manifest May 26 19:06:50 Garfonso: I think that is what I will do **** ENDING LOGGING AT Wed May 27 02:59:59 2015