**** BEGIN LOGGING AT Sat Jul 20 02:59:58 2013 Jul 20 03:07:06 fx1, where's the delete and create buttons coded? Jul 20 03:08:27 https://github.com/fxspec06/GameOn/blob/master/srcs/gameOn.js Jul 20 03:08:58 the reason 34-36 have fit: true, is because one is only shown at a time Jul 20 03:09:18 * fx1 wrote this literally when enyo 2 was released, before onyx 2 was out and panels existed Jul 20 03:10:05 oh Jul 20 03:10:53 ok Jul 20 03:11:07 so those are the green and red buttons Jul 20 03:13:09 that create and delete the turnament Jul 20 03:15:08 sorry the random and create buttons Jul 20 03:16:10 the green and red buttons are part of "generator" Jul 20 03:16:27 ok Jul 20 03:16:32 https://github.com/fxspec06/GameOn/blob/master/srcs/lib/generator.js Jul 20 03:17:04 they are actually in setup.js ..... see the scroller at 140 Jul 20 03:17:21 https://github.com/fxspec06/GameOn/blob/master/srcs/com/setup.js Jul 20 03:17:30 this has the buttons i think Jul 20 03:17:50 * fx1 a good example of a kind within a kind Jul 20 03:20:37 exatly my method! Jul 20 03:20:50 width: 100% Jul 20 03:20:54 :D Jul 20 03:21:18 lol Jul 20 03:21:30 :D Jul 20 03:21:33 sure, to stretch buttons width: 100%; works Jul 20 03:21:55 that's exactly why i use it :p Jul 20 03:22:13 that looks like enyo 1 Jul 20 03:22:23 :) Jul 20 03:22:33 i wrote so much code for this, ugh Jul 20 03:24:26 thanks for using :( Jul 20 03:24:49 :( about all that work Jul 20 03:25:05 not thanks for using my strategy Jul 20 03:25:35 i bet you're confused Jul 20 03:26:18 :p Jul 20 03:26:38 thank you for your help Jul 20 03:26:53 confused? me? naw Jul 20 03:26:54 fit will help me lots Jul 20 03:27:40 any time =) Jul 20 03:27:54 here's the APK if you got a droid device https://dl.dropboxusercontent.com/u/40574271/Game%20On%21.apk Jul 20 03:27:58 thanks for letting me know of your clone Jul 20 03:28:11 i dont have android Jul 20 03:30:09 cm10 is pretty sweet Jul 20 03:30:45 ka6sox no likee andwoid Jul 20 03:30:56 cm that is Jul 20 03:31:42 if you hang tight, i got another phantom project i can show you Jul 20 03:31:47 again, written in enyo 2 beta Jul 20 03:32:01 a ghost project? Jul 20 03:33:14 lol ya Jul 20 03:33:34 :D Jul 20 03:37:46 hold on Jul 20 03:38:04 http://www.youtube.com/watch?v=nn2FB1P_Mn8 Jul 20 03:38:11 is really funny Jul 20 03:42:29 k, pushing...... Jul 20 03:43:30 demo is still uploading, but GIT repo is LIVE Jul 20 03:43:31 https://github.com/fxspec06/plntr Jul 20 03:44:27 what is it Jul 20 03:44:41 if you wait til the demo is done uploading i can show you.. Jul 20 03:44:52 ok Jul 20 03:44:54 it was going to be a gardening / planting app tracker Jul 20 03:45:02 i ditched it when summer came Jul 20 03:45:05 ah Jul 20 03:50:30 hold on dropbox is being incredibly slow right now... Jul 20 03:51:27 * baboo sighs Jul 20 03:51:55 * baboo taps his foot knowing it isn't fx1's fault Jul 20 03:53:33 it's actually quite nice, for being incomplete Jul 20 03:53:43 ok Jul 20 03:55:32 well while it's uploading, let me explain how it works: Jul 20 03:55:37 ok Jul 20 03:55:39 inside src is two folders, com and lib Jul 20 03:55:56 i saw Jul 20 03:56:12 not the js files inside though Jul 20 03:56:13 inside com are the parent kinds for the stuff inside lib Jul 20 03:56:21 ok Jul 20 03:56:49 so every folder inside lib is a unique "plant" object, and each plant object contains every one of the coms Jul 20 03:57:00 so it's a cute example of nesting Jul 20 03:57:09 and inheritance. Jul 20 03:57:46 ok Jul 20 03:57:58 i saw tha add onyx.button Jul 20 03:58:39 er, they all inherite off "template" 's kinds **** Jul 20 03:59:22 template? Jul 20 03:59:36 https://github.com/fxspec06/plntr/tree/master/src/lib/template Jul 20 03:59:55 eg https://github.com/fxspec06/plntr/blob/master/src/lib/template/yard.js Jul 20 04:00:25 grr i wish this'd hurry upload so you can see how it works. lol Jul 20 04:00:55 >:| Jul 20 04:01:49 * fx1 compares this to watching paint dry Jul 20 04:02:20 haha Jul 20 04:03:04 true Jul 20 04:05:53 * fx1 imagines some LG enyo engineer watching closely Jul 20 04:08:35 * baboo thinks they are saying "interesting......" Jul 20 04:13:52 this has got to be close to finished. Jul 20 04:14:35 yeah Jul 20 04:14:49 unless it's a 1TB file Jul 20 04:14:54 :D Jul 20 04:16:33 that's my touchpad Jul 20 04:16:45 i'm going in another room:D Jul 20 04:22:17 it says 7 minutes left. Jul 20 04:23:01 ok Jul 20 04:24:40 omg. it's done Jul 20 04:24:50 * fx1 was gonna show a screenshot, saves for real deal Jul 20 04:24:59 https://dl.dropboxusercontent.com/u/40574271/plntr/plntr.htm Jul 20 04:27:35 ok Jul 20 04:30:58 i made a garden named foo, on jupiter, large, with rainwater and sunlight max, but temparture min Jul 20 04:31:04 :D Jul 20 04:31:09 :D Jul 20 04:31:20 then you can make more, and make a plant with a name Jul 20 04:31:26 that's pretty much where i left off Jul 20 04:31:28 i did Jul 20 04:31:34 hoop Jul 20 04:31:39 is my plant Jul 20 04:31:44 :D Jul 20 04:32:27 * fx1 out of enyo demos tonight Jul 20 04:32:37 well, not true, but i can't give away my best stuff ... Jul 20 04:32:37 ok Jul 20 04:32:42 ok Jul 20 04:32:51 i don't expect you to Jul 20 04:33:06 i'm trying to make an app called time logger Jul 20 04:33:08 oh damn, wild'n runs great on jelly bean Jul 20 04:33:42 * fx1 looks at android downloads, looks at webos downloads, wonders what's wrong with android users Jul 20 04:34:17 what's the function to get the current time in seconds Jul 20 04:35:29 var x = new Date(); Jul 20 04:35:39 ok Jul 20 04:35:52 then getDate(); getHours(); getMilliseconds(); Jul 20 04:35:56 getMinutes(); Jul 20 04:36:13 ok Jul 20 04:37:16 so i could do var starttime = new Date().getMilliseconds * 1000; ? Jul 20 04:37:46 getMilliseconds only gets the milliseconds Jul 20 04:37:50 and it's a function, () Jul 20 04:38:09 ok Jul 20 04:38:11 getTime() Returns the number of milliseconds since midnight Jan 1, 1970 Jul 20 04:38:22 var starttime = new Date().getMilliseconds() * 1000; Jul 20 04:38:33 that's the beginning of unix time Jul 20 04:41:31 omg, you've found the beginning of time !! Jul 20 04:42:29 yes! Jul 20 04:42:45 :D Jul 20 04:43:12 and time will end for 32-bit computers Jul 20 04:44:29 what does getMilliseconds() return? Jul 20 04:45:58 a num between 0 and 999 Jul 20 04:46:07 getTime() gets the milliseconds since 1970 Jul 20 04:46:48 oh Jul 20 04:48:16 ok Jul 20 04:48:20 http://i.imgur.com/WbTP7UU.png Jul 20 04:49:40 ok? Jul 20 04:49:55 heh Jul 20 04:50:23 is there a file i can write to in enyo that stores data? Jul 20 04:50:40 something like a cookie Jul 20 04:50:42 a file that stores data.. Jul 20 04:50:52 text Jul 20 04:51:04 localStorage[] is your best bet. you can't do files Jul 20 04:51:16 ok, that worls Jul 20 04:51:20 works Jul 20 04:51:29 so,, how do i use it? Jul 20 04:52:25 localStorage["myApp"] = someJsonObject; var myAppSettings = localStorage.myApp; localStorage.set("myApp", myAppSettings); myAppSettings = localStorage.get("myApp"); Jul 20 04:52:28 all do the same Jul 20 04:53:11 ok Jul 20 04:59:20 did they remove panes in enyo 2? Jul 20 04:59:56 if they did, what should i use to switch between windows Jul 20 05:00:03 panes are gone Jul 20 05:00:05 one app kind to another Jul 20 05:00:13 use panels, it's nicer Jul 20 05:00:17 ok Jul 20 05:00:22 you have to include lib/layout Jul 20 05:00:57 ok Jul 20 05:01:01 done Jul 20 05:01:14 in package.js Jul 20 05:01:28 panels you do like, {name: "switch", kind: "Panels", components: [ {first}, {second}, {third}, {etc} ]} Jul 20 05:01:51 what are the components Jul 20 05:02:03 then var s = this.$.switch; s.next(); s.previous(); s.setIndex(s.getActive().index + 2); Jul 20 05:02:13 they can be whatever you like Jul 20 05:02:29 ok so a scroller can be a new panel Jul 20 05:02:31 oh boy a panels demo, hold up Jul 20 05:02:38 scroller should go outside the panel Jul 20 05:02:47 ok... Jul 20 05:03:05 http://enyojs.com/sampler/ Jul 20 05:03:10 go to layout/panels Jul 20 05:03:17 you can even view source there too Jul 20 05:03:42 kewl Jul 20 05:03:53 basically you want an array of components inside panels Jul 20 05:04:36 so i could put a button and that would be a new panel Jul 20 05:05:45 yeah, that'd be interesting Jul 20 05:06:01 so it's the same as panes in the components Jul 20 05:06:04 ok Jul 20 05:11:18 idk what that is Jul 20 05:11:31 but, Neo Demo uses panels Jul 20 05:11:45 panes are enyo 1's panels Jul 20 05:15:53 getting neo demo ready... Jul 20 05:16:03 or you can download it on the touchpad Jul 20 05:16:04 =P Jul 20 05:16:09 ok Jul 20 05:19:09 it's showing me a blank screen, my code is http://pastebin.com/1Fuzkxju Jul 20 05:19:41 add this: Jul 20 05:19:54 classes: "enyo-fit" to the whole app, and apply fit: true, Jul 20 05:20:03 in panels, add fit: true, Jul 20 05:20:19 should fix Jul 20 05:20:38 ok Jul 20 05:21:20 nope Jul 20 05:21:37 i did classes: "Onyx,, enyo-fit" Jul 20 05:21:45 oops Jul 20 05:21:56 classes: "Onyx, enyo-fit" Jul 20 05:25:43 neo demo in 3 2 1 Jul 20 05:26:17 https://dl.dropboxusercontent.com/u/40574271/Neo%20Demo/index.html Jul 20 05:26:24 give it a sec, uploading files again Jul 20 05:31:38 uh ya, apparently minify doesn't minify the lib/ folder. =\ Jul 20 05:34:57 can i see the source Jul 20 05:35:18 i can give you the source, i can't upload it Jul 20 05:35:25 because i still plan on fixing it and selling it Jul 20 05:35:27 ok Jul 20 05:35:31 oh Jul 20 05:35:54 it's a masterpiece -- you gotta promise not to share it. Jul 20 05:36:38 ok Jul 20 05:37:09 i guess i could view the regular enyo panels from enyojs.com Jul 20 05:39:13 neo demo is live Jul 20 05:39:19 ok Jul 20 05:39:25 it was 5 mins ago Jul 20 05:40:39 so, you want the source huh Jul 20 05:44:03 yw Jul 20 05:44:44 ok, so i should find the two things i need, lists and panels Jul 20 05:45:10 i'd open neo.js, container.js, and ... Jul 20 05:45:48 column.js Jul 20 05:49:21 panels still not rorking Jul 20 05:49:32 huh Jul 20 05:50:15 http://pastebin.com/tEF0HXfK Jul 20 05:51:09 omg i have old builds of neo, part of me thinks it was better early on =O Jul 20 05:51:59 give panels fittablerowslayout Jul 20 05:52:08 add fit: true, to the whole app Jul 20 05:52:20 then, for each component of panels, add fit: true, Jul 20 05:53:35 * fx1 thinks you are using panels incorrectly Jul 20 05:54:10 * baboo tinks fx1 is right Jul 20 05:54:27 in container.js, detailContent on line 254 is a panel Jul 20 05:55:14 and in neo.js, line 30, main is a panl Jul 20 05:56:43 by give panels fittablerowslayout, what do you mean? Jul 20 05:57:27 that makes it render from the top down, auto stretched horizontally Jul 20 05:57:39 components of a fittablerowslayout will render in order from top down Jul 20 05:57:47 ok Jul 20 05:58:09 eg: look in neo.js, main is a fittablecolumnslayout ------ in Neo, there is a sidebar and a right pane that slides left. this is that panels Jul 20 05:58:47 basically the whole visible Neo is a giant panels kind, but it's special because it's a CollapsingArranger, meaning two panes are shown at once, stacked over each otehr Jul 20 05:59:19 i could use a pane with a grabButton Jul 20 05:59:28 i mean panel Jul 20 05:59:53 k, neo totally looked better early on than it did later builds. Jul 20 06:00:35 http://i.imgur.com/IGvpSrH.png Jul 20 06:02:52 ok, panels still not working... Jul 20 06:03:50 if you set background-color to panels do you see the colour? Jul 20 06:05:04 in a style? Jul 20 06:05:21 sure, i do that quick to debug layout probs Jul 20 06:05:44 no red when background-color:red; Jul 20 06:07:00 it looks like there's something covering it Jul 20 06:07:11 chrome elements Jul 20 06:07:12 view in chrome inspector, you can view the node tree and hover Jul 20 06:07:19 yes Jul 20 06:07:25 that's what i did Jul 20 06:07:44 it shows the bounding boxes, but no elements Jul 20 06:08:46 at least visible on the webview Jul 20 06:10:36 ha, yes! i found the legendary Neo-looking-awesome build! Jul 20 06:11:14 does it have panels i can use? Jul 20 06:12:37 {name: "detailContent", kind: "Panels", fit: true, layoutKind: "FittableRowsLayout", Jul 20 06:12:37 //onDestroy: "hideDetailContent", draggable: false, Jul 20 06:12:37 arrangerKind: "LeftRightArranger", margin: 0, wrap: false, index: 0 Jul 20 06:12:37 }, Jul 20 06:12:57 i dynamically add and remove components to that Jul 20 06:14:37 the buttons classes include enyo-unselectable Jul 20 06:14:49 where? Jul 20 06:14:58 in the panels Jul 20 06:15:08 as the final result in chrome Jul 20 06:20:26 http://i.imgur.com/Pvqmaz1.png omg classic... Jul 20 06:21:40 can you jsfiddle your problem so i can playaround with it/ Jul 20 06:21:41 ? Jul 20 06:21:56 sure Jul 20 06:24:33 http://jsfiddle.net/DjuLC/ Jul 20 06:26:20 hold on Jul 20 06:26:28 ok Jul 20 06:28:49 k... so i see stuff here now Jul 20 06:29:00 i dont Jul 20 06:29:09 hold on Jul 20 06:30:06 2 problems. first, main kind shouldn't be a control, it should be a FittableRows. Jul 20 06:30:16 second, nothing is being rendered into the DOM. Jul 20 06:30:35 http://jsfiddle.net/Fnx96/ Jul 20 06:31:24 your text should be unselectable.. it's messing it up Jul 20 06:31:34 yay, backup complete! Jul 20 06:31:44 * fx1 been trying to complete the same backup for about a week, no lie Jul 20 06:32:33 yaya Jul 20 06:32:36 yay Jul 20 06:37:44 i need to go to bed, goodnight Jul 20 06:38:12 k Jul 20 06:38:14 goodnight! Jul 20 08:45:21 goodmorning.... Jul 20 12:48:58 hi joop. thanks for the document. helped me already when i needed to look at a constructor :) Jul 20 14:27:02 ls Jul 20 14:27:07 oops Jul 20 14:33:36 rm -f domidumont Jul 20 14:33:41 oops =) Jul 20 15:59:34 hi fx1! Jul 20 16:10:10 tkx newbeen, hopefully it's done by monday, cause it's for a college at work too Jul 20 16:28:41 ta :) Jul 20 16:34:36 fx1, no red background color when i assign background:red to the component inside the Panels kind Jul 20 16:34:52 in the Image Carousel sampler, the images seem to resize ok if the browser window is made larger - but not if it's made smaller Jul 20 16:35:30 the problem is that the panels don't show up at all Jul 20 16:35:42 looks like they're covered Jul 20 16:48:42 fx1, i'm using enyo 2.1.0 Jul 20 16:48:53 not 2.2.0 Jul 20 17:08:17 guess what it says at the bottom of the enyojs.com pages? Jul 20 17:08:27 sponsored by...... Jul 20 17:08:33 LG!?!?!? Jul 20 17:08:48 that's wierd Jul 20 17:09:12 What's weird about that? Jul 20 17:09:29 unless lg is planning to use it for their webos tvs Jul 20 17:09:41 then it would make sense Jul 20 17:10:00 or maybe just because they like it Jul 20 17:10:08 The core Enyo team is at LG now. Jul 20 17:10:14 like most contributors Jul 20 17:10:21 true Jul 20 17:10:43 because enyo was for tp and now for openwebos Jul 20 17:12:02 and the public/cross-platform Jul 20 17:14:45 * baboo 's head blew up because of the neww enyo 2 layout Jul 20 17:15:18 boom Jul 20 17:17:47 i liked flex and auto-stretched buttons and nice-looking regular enyo buttons Jul 20 17:18:05 :( Jul 20 17:33:32 i'm gonna ditch panels >:) Jul 20 17:48:30 hello... what would be the best way to implement UI feedback 'ontap' on a
, please? Jul 20 17:49:06 to show that the div has been tapped. a brief way to highlight/colour it. CSS? JS? Enyo built-in magic? Jul 20 17:51:28 what does the div look like Jul 20 17:51:34 ui-wise Jul 20 17:52:52 if it's a non-button image, i recommend making a colored border around it Jul 20 17:53:08 if it is a button invert it like in Onyx Jul 20 17:53:21 hey, sorry Jul 20 17:53:26 just text, with a css gradient background Jul 20 17:53:51 ok, then invert the colors of the gradient Jul 20 17:53:55 baboo: how to implement the border-colour change? is that JS? Jul 20 17:53:59 hi fx1 Jul 20 17:54:14 newbeen, css Jul 20 17:55:00 baboo: css's ":hover" ... ? not sure how to go about it for a "ontap" Jul 20 17:55:21 in the ontap function, change the style Jul 20 17:55:34 from js Jul 20 17:56:01 ah, ok. will give that a go. but am changing panels as well ontap, so was wondering what sort of delay there would be Jul 20 17:56:20 (and also whether there is a standard Enyo way of doing what must be a common operation?) Jul 20 17:56:35 maybe .5 to 1 secs fo the panel delay Jul 20 17:56:36 (i.e. click on something which changes rendered screens) Jul 20 17:57:28 baboo: i should introduce the delay explicitly, or do you mean that's the delay that's there? Jul 20 17:57:46 the delay you should add Jul 20 17:57:55 probably .5secs Jul 20 17:58:02 ok, thanks Jul 20 17:58:09 yw Jul 20 17:58:55 i'm creating an app right now too and need help with lists Jul 20 17:59:09 could you please help? Jul 20 17:59:27 i'm using 2.1.0 Jul 20 17:59:28 me? ah, i'd be most happy to, but i doubt i can Jul 20 17:59:32 ok Jul 20 17:59:38 <---newerbie than you, much likely Jul 20 17:59:54 i can't even get panels to work Jul 20 18:00:05 nothing will display Jul 20 18:00:17 wait... should i take your advice then :) Jul 20 18:00:33 onhover Jul 20 18:00:34 i'm better at regular js Jul 20 18:00:48 but i like enyo a lot Jul 20 18:00:53 fx1: ah! Jul 20 18:01:06 baboo, well, it's a whole different well even if it's the same language i expect Jul 20 18:01:14 yep Jul 20 18:01:16 world even Jul 20 18:01:20 brb Jul 20 18:01:45 fx1, can you help me with lists? Jul 20 18:02:06 i hope i don't run into the same problems as i did in enyo 1 Jul 20 18:02:21 sure, open up column.js and go to town Jul 20 18:02:43 ok Jul 20 18:02:59 where in neo is that? Jul 20 18:03:10 hm, can't seem to find onhover in docs Jul 20 18:03:25 javascript/source/ Jul 20 18:03:30 ok Jul 20 18:04:16 * newbeen recklessly tries replacing "ontap" with "onhover"... nope Jul 20 18:04:22 it was the opposite Jul 20 18:06:32 everything you could possibly need for a list is in there Jul 20 18:07:11 onmouseover Jul 20 18:07:24 onmouseout Jul 20 18:07:32 yeah that Jul 20 18:07:37 ;) Jul 20 18:07:47 also ondragstart and ondragfinish Jul 20 18:08:12 newbeen Jul 20 18:08:17 for touch enabled devices Jul 20 18:08:40 what's the problem with lists? Jul 20 18:09:36 joop: ah. is there a standard convention for giving UI feedback "ontap" (say when clicking on a div that changes Panels)? Jul 20 18:09:56 lists can be difficult to manipulate after they've been drawn, and navigation can be a bit tricky Jul 20 18:10:28 ok Jul 20 18:10:44 i've found they're difficult to get working Jul 20 18:11:14 this.$.panels.setIndex(2) //index of panel Jul 20 18:11:42 or setIndexDirect() to ditch the animation Jul 20 18:12:14 joop: i meant like highlighting the div (or similar), to briefly what what has been "tapped" on Jul 20 18:12:27 or this.$.panels.next() Jul 20 18:12:34 or previous() Jul 20 18:12:36 like a depressed-button effect (not necessarily that fancy, just to show what was tapped) Jul 20 18:13:27 ah this.$.button.applyStyle('active', true); Jul 20 18:13:51 great, thanks! Jul 20 18:14:38 or in on tap event you can use: inSender.addRemoveClass('active', true); to toggle Jul 20 18:14:56 cool Jul 20 18:17:18 fx1, could you please repeat the localstorage stuff, the log doesn't show it Jul 20 18:18:44 easy: localStorage is a native JS command, it's basically an object. you can treat it as such Jul 20 18:18:51 it's in resources not in console log Jul 20 18:19:09 localStorage["anything"] = "string"; {object:""}; Jul 20 18:19:29 you should probably stringify objects though, and destringify when fetching Jul 20 18:19:33 but yeah, pie Jul 20 18:19:54 they're going to be strings anyways Jul 20 18:20:22 in the localstorage yes Jul 20 18:20:51 but you can parse them back into objects when you retrieve from localStorage Jul 20 18:21:11 (or sessionStorage for that mather) Jul 20 18:21:39 so if they don't exist they equal null? Jul 20 18:22:17 undefined I think Jul 20 18:22:41 so i can do if(localStorage["anything"] = "string"; == undefined) ? Jul 20 18:22:48 oops Jul 20 18:22:56 so i can do if(localStorage["anything"] == undefined) ? Jul 20 18:23:44 if( JSON.parse( localStorage.getItem("anything) ) == undefined) Jul 20 18:24:04 if you stored json Jul 20 18:24:15 it's not an object i'm trying to store Jul 20 18:24:20 (to convert from string to js object Jul 20 18:24:26 it's a regular string Jul 20 18:24:40 yes then without the json.parse Jul 20 18:24:47 ok Jul 20 18:25:00 since it's already string from LS Jul 20 18:25:06 can you do ints Jul 20 18:25:10 ? Jul 20 18:25:16 i'd just check on app start if (typeof localStorage[myApp] === "undefined") localStorage[myApp] = {}; Jul 20 18:25:45 actually, if you want to copy gameon has functions in the main kind that does it for you Jul 20 18:25:45 yes you can but they'll be autoconverted to string Jul 20 18:26:09 https://github.com/fxspec06/GameOn/blob/master/srcs/gameOn.js Jul 20 18:26:20 64 setupStorage(); Jul 20 18:26:34 you can add anykind, functions, ints, whole objects using json.. I recomend it if you're usin localstorage Jul 20 18:26:42 just a basic js question, if i add an int to a string, will it treat the string as an int? Jul 20 18:26:43 212 function, then saveStorage, backupStorage, loadBackup() etc... examples Jul 20 18:28:27 console.log(1+'1') = 11 Jul 20 18:28:36 oh Jul 20 18:29:18 so console.log(1+'1'.toInt()) = 2 Jul 20 18:29:33 correct Jul 20 18:29:37 ok Jul 20 18:29:57 you can use commas, i find they work better Jul 20 18:30:12 console.log(obj1, obj2, obj3, "string", obj4, etc); Jul 20 18:30:26 gives browsable objects in chrome Jul 20 18:30:33 gives crappy strings in firefox Jul 20 18:30:37 oh Jul 20 18:31:40 yes beside the conversion that's what console.log does Jul 20 18:32:11 even in firebug? Jul 20 18:32:20 you can always open your browsers console to test such things out Jul 20 18:32:28 yep Jul 20 18:33:30 I'd recoment chrome dev tools before firebug tbh Jul 20 18:36:43 newbeen I call quits for today, resizehandler, statics, styling are updated https://docs.google.com/file/d/0Bx1raQ6dEtZFMkI0UmwxMnlhX0U/edit Jul 20 18:38:03 styling isn't 100% yet need to write a little more on layoutKind and layoutClass Jul 20 18:57:03 how do i get the month, year and day for the date object Jul 20 18:59:37 seen this http://enyojs.com/api/#enyo.g11n.DateFmt.prototype.formatRelativeDate ? Jul 20 18:59:55 nope Jul 20 19:00:35 http://enyojs.com/api/#enyo.g11n.DateFmt.prototype.format Jul 20 19:02:21 ok Jul 20 19:24:20 where is localstorage stored Jul 20 19:32:54 how do i create objects the enyo way? Jul 20 19:33:15 this.$.createObject() ? Jul 20 19:46:00 baboo: No. If you need to create at runtime you'd usually use this.createComponent or this.createComponents Jul 20 19:46:24 ok Jul 20 19:46:40 I hear there's an excellent book on Enyo you could get… :) Jul 20 19:48:09 i've heard of one, but i forget Jul 20 19:52:37 how do you clear LocalStorage? Jul 20 20:04:41 you mean of all its databases? Jul 20 20:04:49 that's probably not Enyo-specific, eh? Jul 20 20:08:24 * newbeen wonders what happened to the HtmlContent control from Enyo 1 Jul 20 20:08:44 is there an equivalent way to display a large chunk of HTML in a local file, please? Jul 20 20:09:08 newbeen: you can set innerHTML on controls, iirc Jul 20 20:09:57 summa: thanks. don't quite see it in the docs... maybe give it a go Jul 20 20:13:25 oh, i found a forum post about it. apparently not possible, but someone's writtern a port of HtmlContent to Enyo 2: http://forums.enyojs.com/discussion/1396/use-htmlcontent Jul 20 20:15:40 hm, that port is a bit... dubious Jul 20 20:19:23 1.0 source seems well hidden... Jul 20 20:27:50 is it possible to step through the enyoJS using the browser dev tools at all? Jul 20 20:28:17 this.log(this); inside a kind will give you a object you can surf Jul 20 20:28:30 or log this.$.component Jul 20 20:29:02 ah, cool Jul 20 20:29:24 you can do that for any object, but it's super useful for enyo objects ;) Jul 20 20:29:54 are there any enyo.* methods, like enyo.byId() ... or were they all elimianted in enyo2 Jul 20 20:29:56 ? Jul 20 20:30:28 * newbeen optimistically copied-and-pasted HtmlContent.js from enyo1 into his project... Jul 20 20:30:40 hold on i got a good way for you to find out Jul 20 20:30:47 * fx1 looks for code Jul 20 20:31:12 thanks Jul 20 20:31:36 again, can't see anything in the enyo2 docs (does that mean there are none...?) Jul 20 20:34:02 i used this one to learn properties and methods on everything Jul 20 20:34:03 logControl = function(control){ Jul 20 20:34:03 for(var property in control){ Jul 20 20:34:03 console.log(property, control[property] ) Jul 20 20:34:03 } Jul 20 20:34:03 } Jul 20 20:34:49 but enyo.byId() looks like some sort of static method Jul 20 20:35:02 i.e. the 'enyo' there isn't an instance of a control... ? Jul 20 20:35:11 and for your other ?, look at enyo/source/kernel/lang.js Jul 20 20:35:16 yes Jul 20 20:35:24 lang.js... going Jul 20 20:36:15 how can you do a page break on enyo 2 Jul 20 20:36:53 seeing as how there's no way to detect what a page is, you can't Jul 20 20:37:11 a line brak Jul 20 20:37:17 break Jul 20 20:37:30 {tag: "br"}, Jul 20 20:37:36 cool Jul 20 20:37:39 thanks Jul 20 20:37:57 or add {display: inline;} to your css (i think inline, one of them adds a break at the end Jul 20 20:38:16 ok thanks Jul 20 20:38:28 newbeen, back to you Jul 20 20:39:05 :) Jul 20 20:39:18 ah, quite by accident, discovered enyo.byId() is now enyo.dom.byId() Jul 20 20:39:29 (though it's still not helping HtmlContent.js run on enyo2) Jul 20 20:48:57 newbeen: enyo.dom.setInnerHtml() ? Jul 20 20:48:58 http://enyojs.com/api/#enyo.dom::setInnerHtml Jul 20 20:51:08 summa: sadly no, as it still doesn't read 'static' HTML Jul 20 20:51:48 ah, HtmlContent is never going to work... enyo2 does renderInto(document.body) that's going to wipe out any statically-defined div on the page... Jul 20 20:51:59 (enyo1 didn't do renderInto() like that then...?) Jul 20 20:53:48 summa: by static i mean large chunks of HTML text, which ideally would be maintainable outside Enyo code and simply displayed within the app (no controls etc) Jul 20 20:57:55 golly, got it working. i don't know how :) Jul 20 20:58:37 chanced ramdonly on sugardave's post on the workings of HtmlContent from enyo1: it saves the static div content before the renderInto(), and spits it out again when needed Jul 20 20:59:35 also not sure why this wasn't ported into enyo2. maybe dealing with buttons etc broke somehow. lucky i don't need any in my case Jul 20 20:59:58 (buttons or links or other dynamic things in the static html) Jul 20 21:14:11 deploy.bat seems to generate an index.html which is not related to debug.html - is there any way to influence the index.html that is generated, please? Jul 20 21:16:54 influence=customise Jul 20 21:56:35 newbeen: edit it directly Jul 20 21:56:50 it copies the index.html that exists in the bootplat Jul 20 22:07:25 ah, thanks! Jul 20 22:09:05 sure thing Jul 20 22:30:03 hmm... "@onyx-toolbar-background: blue;" seems to be ignored in Themes.less Jul 20 22:30:48 done the four steps: uncommented less.js; package.js refers to lib/onyx/source; added Theme.less to package.js; placed overried into Theme.less Jul 20 22:31:29 results in completely unstyles toolbar :o Jul 20 22:31:34 unstyled Jul 20 22:38:14 ah: iis needed a mime type addition to serve *.less files Jul 20 22:40:30 i have enyo 2.1.0 and it says Object # has no method 'createComponent' Jul 20 22:40:45 when it's in the api Jul 20 22:53:23 2.2 api? Jul 20 22:57:46 the enyojs.com api Jul 20 22:58:01 i don't know where to get the old one Jul 20 22:59:15 aha Jul 20 22:59:21 addComponent() Jul 20 23:03:39 not able to upgrade versions? Jul 20 23:04:28 nope Jul 20 23:04:42 too many pieces to assemble Jul 20 23:05:02 enyo and onyx and layout and g11n and etc.... Jul 20 23:11:44 good night Jul 20 23:12:03 zz_dkirker Jul 20 23:40:55 damnit, everything i've done today is a ccomplete total waste. Jul 20 23:41:18 i'm stupid for thinking i could "piece together" old versions of neo to make a 'classic' version Jul 20 23:41:45 why would that ever be a good idea Jul 20 23:44:05 E:3 Jul 20 23:44:31 aka :S Jul 20 23:45:06 fx1, i'm having a problem with upgrading my app to enyo 2.2.0 Jul 20 23:45:13 themes is so finnicky, i wish there was an easier way to make it Jul 20 23:45:30 i have 2.1.0 which has lotso glitchers Jul 20 23:45:31 like, the premise is killer, but god damn the implementation is difficult Jul 20 23:46:06 is there an all-in-one enyo 2.2.0 package? Jul 20 23:46:07 like literally every function, every line, every case is so strict, it feels so akward and wrong. but it "semi-works" Jul 20 23:46:24 enyo 2.2.0? did you check the github Jul 20 23:46:56 it's separated Jul 20 23:47:30 enyo package had no onyx or layout or g11n or any of those packages Jul 20 23:47:53 no lib Jul 20 23:49:16 holy crap, i have just what you need !!!!!!! Jul 20 23:49:20 * fx1 to the rescue Jul 20 23:49:20 https://github.com/fxspec06/enyo-bootie Jul 20 23:49:37 my day is not a total failure now Jul 20 23:50:12 * baboo repays im in lots of thanks Jul 20 23:50:14 thank you Jul 20 23:50:31 yw, although i made it for me not you =) Jul 20 23:50:41 but it still works! Jul 20 23:51:49 that it does Jul 20 23:52:00 and it has a nifty script you can use to minify, too Jul 20 23:52:01 ;) Jul 20 23:52:21 my computer is so noticably slower than my touchpad Jul 20 23:52:31 honestly i'm so mad at myself for today Jul 20 23:52:39 why? Jul 20 23:52:42 what are you doing to your computer that makes it slow? Jul 20 23:52:54 trying to run blender on it Jul 20 23:53:03 and running anythig on it Jul 20 23:53:16 : because i wasted my time trying to make functions work that don't belong together, trying to fix something i've already fixed? Jul 20 23:54:05 your zip is not unzipping all the way Jul 20 23:54:14 :( Jul 20 23:54:34 ... why not Jul 20 23:55:11 next i'll try to shoot it with gunzip Jul 20 23:55:22 :) Jul 20 23:55:33 bad joke Jul 20 23:56:47 fx1, oh, you're fxspec06? i went hunting for menu icon images and found some there... Jul 20 23:57:00 couldn't find any in the enyo github repository... Jul 20 23:58:01 honestly, everything i did today was a joke. the "CLASSIC" version i was trying to mix with works better than the total of everything i did today Jul 20 23:58:11 he's maybe asking if he can use them Jul 20 23:58:24 what icons? Jul 20 23:58:52 idk Jul 20 23:59:43 oh come on Jul 20 23:59:53 fx1: things like menu-icon-back.png and menu-icon-search.png Jul 21 00:00:18 oh, those are not mine, you can have them Jul 21 00:00:18 fx1 linked all of the lib Jul 21 00:00:53 https://github.com/spazproject/Spaz-Enyo/tree/master/source/images Jul 21 00:01:44 ah, saw that too: wanted a 'home' one - there's icon-home.png there, but it's a speech bubble! Jul 21 00:02:21 enyojs.com had a .ZIP download of all the bootplate stuff, no? Jul 21 00:02:30 here's more: https://github.com/fxspec06/enyo-icons Jul 21 00:02:47 newbeen: enyo hosts everything on github. Jul 21 00:02:59 http://enyojs.com/get-enyo/ Jul 21 00:03:05 there's a ZIP download thing Jul 21 00:03:24 that's new, not fair Jul 21 00:03:37 * fx1 shakes fist Jul 21 00:03:47 woohoo, i knew something Jul 21 00:03:52 lol Jul 21 00:03:57 i've done that beforet the github update lots of times Jul 21 00:04:06 every single time Jul 21 00:05:06 eh? Jul 21 00:05:06 can i just drop the libraries into the enyo lib folder Jul 21 00:05:34 i just force deleted everything i did today Jul 21 00:05:36 * fx1 feels better Jul 21 00:05:47 fx1, alas, no home icon. who makes these icons? Jul 21 00:05:57 you'd have thought 'home' would be quite popular for apps ... ? Jul 21 00:05:58 what icons? Jul 21 00:06:09 the ones you posted links to just then Jul 21 00:06:27 who needs a home when you can rent Jul 21 00:06:51 i'm happy to rent opensource icons Jul 21 00:06:59 :D Jul 21 00:07:25 as long as you don't have to pay $1000/month Jul 21 00:07:35 for your new home Jul 21 00:08:35 bad joke? Jul 21 00:10:55 * newbeen nods discreetly Jul 21 00:11:34 this trial-and-error way of learning enyo is very inefficient Jul 21 00:11:46 is there another way? Jul 21 00:11:52 yes... documentation Jul 21 00:12:04 nah, docs take time to read Jul 21 00:12:14 i've got a tag:"iframe" control which setSrc() doesn't seem to do anything to Jul 21 00:12:21 they're handy to have on the side monitor Jul 21 00:12:24 hardcoding "src" to it works... Jul 21 00:12:38 src is an attribute. Jul 21 00:12:56 {tag: "iframe", attributes: {src: ""} } Jul 21 00:13:21 it's also a published property Jul 21 00:13:24 you could do, iframe.setAttributes({src: myurl}); Jul 21 00:13:35 * fx1 challenges Jul 21 00:13:51 2 points in one day? surely no... Jul 21 00:14:05 http://enyojs.com/api/#enyo.Control::src Jul 21 00:14:32 API fail Jul 21 00:15:00 oh snap i was semi-right: Shortcut for setting src attribute in attributes hash. Overrides that value. Jul 21 00:15:27 i think you have to hard-code that in though, yet that makes no sense... Jul 21 00:15:49 :/ Jul 21 00:16:11 i really have never encountered any programming environment quite like this Jul 21 00:17:15 okay, case in point: classes is also an attribute on enyo.Control, yet setClasses does not work. why? because in enyo, classes is a reserved word Jul 21 00:17:16 line 50 states: // - use addClass instead of setClasses here, by convention 'classes' is reserved for instance objects Jul 21 00:17:39 eh, but it works i guess Jul 21 00:17:48 // - setClasses removes the old classes and adds the new one, setClassAttribute replaces all classes Jul 21 00:17:56 some forum post i found said addClasses() instead of addClass(). neither worked for me, so i just gave up and use classes: Jul 21 00:18:59 bit woolly Jul 21 00:19:12 what's even weirder is they included a srcChanged function, but not a setSrc function! Jul 21 00:19:18 maybe you found a bug newbeen Jul 21 00:20:08 technically srcChanged would only call when setSrc is executed, i forget which kind creates those functions from published... Jul 21 00:20:49 you can use .setAttribute("src", url); Jul 21 00:21:32 wouldn't setSrc() be automatically defined, according to the convention for published properties? Jul 21 00:23:30 setAttribute doesn't seem to have done anything either Jul 21 00:24:03 srcChanged() is not documented... maybe I need to call it? Jul 21 00:24:04 try rendering it after Jul 21 00:24:12 .render()? Jul 21 00:24:49 yeah Jul 21 00:24:58 you can .render() any component or control at any time. Jul 21 00:25:14 no work Jul 21 00:25:23 see what i mean by trial-and-painful-error Jul 21 00:25:24 .render() propogates down the chain, too FYI Jul 21 00:25:30 no like Jul 21 00:25:49 also, you can call .reflow(); on any fittable, propogates down the chain Jul 21 00:25:53 handy in many cases Jul 21 00:26:11 if i can't set the src of this iframe dynamically... it's game over Jul 21 00:26:48 (for embedding YouTube videos) Jul 21 00:26:57 https://github.com/enyojs/enyo/blob/master/source/kernel/Object.js:224 Jul 21 00:27:29 *// need to make sure that even though a property is "published" Jul 21 00:27:35 *// it does not overwrite any computed properties Jul 21 00:28:13 setAttribute didn't work either Jul 21 00:28:23 ha, i knew reading the source would be beneficial Jul 21 00:29:05 that's odd though. hrm. Jul 21 00:29:36 ah! Jul 21 00:29:40 sorry :) sec Jul 21 00:30:34 ok, we're tied :P typo in code... Jul 21 00:30:51 let me try setSrc for completeness... Jul 21 00:31:07 yes, that works just fine too Jul 21 00:31:30 brb Jul 21 00:32:11 an enyo IDE would be nice... do you use notepad? Jul 21 00:32:41 i use titanium Jul 21 00:34:00 is it enyo compatible (fully)? Jul 21 00:34:42 it's eclipse with extra features Jul 21 00:35:20 it's compatible with any web deployment, but yes it is fully compatible with Mojo -- even deploys to simulators and devices -- and Enyo Jul 21 00:37:19 i mean, is it clever enough to know all the methods, autocomplete etc? Jul 21 00:37:32 yeah, apanta takes care of that. Jul 21 00:37:43 you have to install it as a plugin, but it's good Jul 21 00:38:15 hello Jul 21 00:38:17 back Jul 21 00:38:30 computer unbaringly slow Jul 21 00:39:24 titanium w/ enyo app.js loaded: http://i.imgur.com/H5P5Fis.png Jul 21 00:39:28 fx1, is titanium free? Jul 21 00:39:38 yeah, you gotta register but it's worth it Jul 21 00:39:57 plus, you can use it to deploy to android after if you like Jul 21 00:40:18 wait so really, hitting . brings up all the valid/available methods/properties... ? Jul 21 00:40:41 yep Jul 21 00:40:58 i thought ares was the only one Jul 21 00:40:58 in CSS too Jul 21 00:41:12 man, i'm so glad i invented this stuff Jul 21 00:42:22 fx1, my components aren't being created Jul 21 00:42:35 at runtime like they are supposed to Jul 21 00:43:38 need code Jul 21 00:43:46 getting it.... Jul 21 00:44:44 http://jsfiddle.net/XrCFh/ Jul 21 00:49:11 what did i tell you yesterday about having Control as your main kind? Jul 21 00:49:34 it's bad Jul 21 00:55:45 :-o Jul 21 00:59:54 dude, it might help if you checked the stuff on the left Jul 21 01:00:51 what's the use of it Jul 21 01:01:06 uhm, it loads Layout and Onyx, both of which you are using............ Jul 21 01:01:14 yes Jul 21 01:01:28 as soon as you check those boxes, your fiddle works Jul 21 01:01:50 it auto-checked all of the checkboxes Jul 21 01:01:53 before Jul 21 01:02:23 if you click the view log button, there is no text except the view log button Jul 21 01:02:31 there's supposed to be text Jul 21 01:04:17 tapping viewlog replaces everything inside document.body with List(), you know that right Jul 21 01:05:42 what view log button? Jul 21 01:06:07 i think what you want to do is do this.createComponent(new List()); Jul 21 01:06:24 i want the list items Jul 21 01:06:31 to be created Jul 21 01:06:32 goodnight fellows - and thanks for everything Jul 21 01:06:46 goodnight newbeen Jul 21 01:07:42 meh Jul 21 01:08:04 http://www.youtube.com/watch?v=UC4vz6IbdtY Jul 21 01:10:27 also, your List kind includes itself, which causes infinite loop and app crash. Jul 21 01:10:46 uh... Jul 21 01:10:50 you can't name it List, even though enyo.List is not "List", enyo makes it reserved Jul 21 01:11:08 yeah, your name for the kind is "List", and in it, you include a kind named "List" Jul 21 01:11:13 that's infinite recursion. Jul 21 01:11:18 max callstack Jul 21 01:16:39 ok Jul 21 01:19:04 the warning is enyo.Component.addComponent(): Duplicate component name "item5" in owner "logList_itemList" violates unique-name-under-owner rule, replacing existing component in the hash and continuing, but this is an error condition and should be fixed. Jul 21 01:19:18 hold up Jul 21 01:19:26 i'm gonna show you how to do this the right way. Jul 21 01:19:31 ok Jul 21 01:19:38 i have no idea Jul 21 01:19:45 i liked enyo 1 better Jul 21 01:19:59 it worked! Jul 21 01:20:06 enyo 1 did Jul 21 01:21:52 also, your call at 28 is horrible. Jul 21 01:23:18 you can't set localStorage to a changing location, you're just making numerous useless broken datastores because when you go to retrieve you will have localStorage.data1 localStorage.data2 localStorage.data3 etc Jul 21 01:23:37 because localStorage["num"] is everchanging Jul 21 01:23:59 it's ok Jul 21 01:24:12 that's on prupose Jul 21 01:25:36 i use a for statement ending at the number num and processing localstorage.datax Jul 21 01:25:56 num is the max data Jul 21 01:26:13 num = 5, max = data5 Jul 21 01:36:27 http://jsfiddle.net/zTpBT/1/ Jul 21 01:38:25 line 51 should have a parseInt() there Jul 21 01:40:10 ok Jul 21 01:40:46 also, 61 is: this.$.listitem.crea__ .... in setupItem the sender is the list, and ALWAYS contains the "row instance" of whatever you put in the components block for your list -- for ease i named it listitem Jul 21 01:40:59 61 can also be: sender.$.listitem.creat___________ Jul 21 01:41:05 same thing. do you see why? Jul 21 01:46:18 i think we lost him Jul 21 01:46:58 yep Jul 21 01:47:34 lol, i meant you Jul 21 01:47:42 whenok Jul 21 01:47:44 oops Jul 21 01:48:00 i wanted to display all of the log entries Jul 21 01:49:27 you should put them into an array then, and use the array length to the count of the list and pull from the array Jul 21 01:49:42 ok Jul 21 01:49:53 use static names for your datastore names Jul 21 01:50:02 ok Jul 21 01:50:16 i'll just do a string that i can split Jul 21 01:50:24 in localstorage Jul 21 01:51:17 baboo: why not use an array? you can ALWAYS call JSON.stringify(); on arrays Jul 21 01:51:24 and JSON.parse() Jul 21 01:51:52 there's even enyo.json.stringify(); and enyo.json.parse(); i believe Jul 21 01:53:33 ok Jul 21 01:53:49 brb Jul 21 02:24:07 k Jul 21 02:59:29 going to the opool Jul 21 02:59:32 pool **** ENDING LOGGING AT Sun Jul 21 02:59:58 2013