**** BEGIN LOGGING AT Wed Oct 01 03:00:00 2014 Oct 01 03:21:00 * sugardave looks at the data caching algorithm he is supposed to implement. "This is way too complicated for what it's trying to 'solve.'" Oct 01 03:39:34 the best cache is /dev/null Oct 01 03:39:37 obviously Oct 01 03:39:45 it literally never fails Oct 01 14:00:23 hey trex0051 Oct 01 15:36:11 Hello GodGinrai! Oct 01 16:54:37 I wish I understood why my nick keeps getting bloked. Oct 01 16:54:42 s/bloked/blocked/ Oct 01 16:54:42 Roy__ meant: I wish I understood why my nick keeps getting blocked. Oct 01 16:54:57 I have it registered and protection turned on. Oct 01 17:13:38 Morning enyos Oct 01 17:13:55 Good day dmanderson Oct 01 17:46:18 good morning dmanderson Oct 01 17:46:33 Hey trex005 and GodGinrai! Oct 01 17:46:47 Roy__: It obviously means that someone keeps trying to take your nick Oct 01 17:47:35 :( Oct 01 18:36:33 Alright guys, I'd like to make a simple enyo game that I can package and sell for 99¢ .... who's got an idea? Oct 01 18:37:39 Simon Oct 01 18:38:25 ^ that was a game suggestion Oct 01 18:41:13 yes :D Oct 01 18:41:35 I started making one in Mojo a long time ago, but never put it out Oct 01 18:43:56 lol Oct 01 18:44:39 trex005: Any simple game could work as long as you polish it so that it is enjoyable to play Oct 01 18:45:15 You could make a Mille Bornes game Oct 01 18:45:45 *Borne Oct 01 18:47:31 I played the shit out of sdlMille on my Pre 3 before I switched to my new phone Oct 01 18:47:48 I had that card game when I was a kid but never played it Oct 01 18:48:09 It's very fun Oct 01 18:49:35 trex005: you could also do backgammon, yahtzee, euchre, etc. Oct 01 18:51:32 Do you think people would pay 99¢ to play any of the classics? Oct 01 18:53:32 How about something like simon, but the colors shuffle every round? Oct 01 18:55:36 trex005: people paid $1.43 for a shitty animated .gif of a fireplace Oct 01 18:55:56 enough people that it paid for my first 2 years of contract under Sprint for me Pre- :D Oct 01 18:55:58 * GodGinrai high-fives sugardave Oct 01 19:00:27 How about "Simon... you lead" Where you get to decide the pattern, but you have to keep adding one to it without messing up, and the computer follows you. Oct 01 19:01:39 * sugardave chooses red, red, red, red. "I am the greatest reverse Simon player in the universe!" Oct 01 19:01:48 lol Oct 01 19:01:51 Maybe buttons would randomly not be available. Oct 01 19:01:57 sugardave, that's actually not a terrible idea Oct 01 19:02:09 so it'd only let you choose 1/2 of the field at a given time Oct 01 19:03:28 or, it has 6 buttons, and only lets you pick from 2 Oct 01 19:29:21 Simon+Memory Oct 01 19:29:31 Colors get shuffled around face down Oct 01 19:42:44 Simon + Puzzle.... you get the pattern, then the pieces shift into one of those slide puzzles that you have to solve before you can play the pattern back Oct 01 20:19:52 hey enyoers Oct 01 20:19:54 I have a question Oct 01 20:20:05 can someone explain why I end up with two records here: http://jsfiddle.net/uavydrqr/ Oct 01 20:23:59 further testing shows that merge works if you have a primaryKey Oct 01 20:24:06 but the mergeKeys don't seem to be working Oct 01 20:24:46 chall: merge merges the object into collection, no? Oct 01 20:24:48 hmm, never used mergeKeys before. It might be broken Oct 01 20:24:58 trex005, yes Oct 01 20:24:59 Shouldn't that then give you 2 objects in the collection? Oct 01 20:25:03 no Oct 01 20:25:10 that's add Oct 01 20:25:42 merge takes a model/object or an array of them and merges them with the existing set such that no two entries are duplicated Oct 01 20:26:19 "Any records passed to this method that cannot be merged with existing records will be added to the collection at the end." Oct 01 20:26:26 yes Oct 01 20:26:48 so because "name" is "test" you are saying it should cause it to be unique? Oct 01 20:26:52 but mergeKeys would seem to imply that you merge records with those matching keys Oct 01 20:27:01 yes Oct 01 20:27:11 sugardave Oct 01 20:27:18 however, if you set primaryKey: "name" it works, right? Oct 01 20:27:39 I actually tried it with an 'id' field in addition to the merge keys Oct 01 20:27:41 that worked Oct 01 20:27:47 let me try that Oct 01 20:28:30 sugardave, setting primaryKey to name does not work Oct 01 20:28:35 interesting Oct 01 20:28:54 http://jsfiddle.net/uavydrqr/1/ Oct 01 20:29:19 I just tried in the first fiddle and it fails spectacularly Oct 01 20:29:35 Uncaught enyo.Store.addRecord: duplicate record added to store for kind `TestModel` with primaryKey set to `name` and the same value of `test` which cannot coexist for the kind without the `ignoreDuplicates` flag of the store set to `true` Oct 01 20:29:53 that's why it's supposed to merge :/ Oct 01 20:31:00 yeah, I actually had to write my own store to get around that in the project I'm working on Oct 01 20:31:12 which is what alerted me to this issue with Collection#merge Oct 01 20:31:33 actually.... Oct 01 20:31:35 interesting, even if you merge m1 it still has 2 records Oct 01 20:31:53 nightly doesn't fail, but still ends with 2 records Oct 01 20:32:35 I think I have another reason why my implementation won't work, but it's only partially related Oct 01 20:32:37 I'm wrong, nightly fails differently, I was doing two adds Oct 01 20:33:09 I guess there is no Collection.merge in nightly... Oct 01 20:34:22 dmanderson: over to you :) Oct 01 20:34:39 * dmanderson reads some scroll back :D Oct 01 20:42:20 so Oct 01 20:42:24 I think I might have figured it out Oct 01 20:42:44 it's a bit of a facepalm moment Oct 01 20:43:01 uh oh Oct 01 20:43:15 so Oct 01 20:43:23 in the merge code on the collection Oct 01 20:43:36 to get the merge keys you do: this.model.prototype.mergeKeys Oct 01 20:43:57 the collection in my fiddle does not have a model set Oct 01 20:44:06 so, it's using enyo.Model Oct 01 20:44:16 which has a primaryKey of 'id' and no mergeKeys Oct 01 20:44:34 if you add the model property, it works just fine Oct 01 20:44:42 * chall facepalms Oct 01 20:44:55 :) Good ups on working it out yourself :D Oct 01 20:45:47 indeed Oct 01 20:46:12 so glad that's all sorted Oct 01 20:46:43 ah, nice **** ENDING LOGGING AT Thu Oct 02 03:00:00 2014