**** BEGIN LOGGING AT Mon Jan 04 02:59:57 2010 Jan 04 03:00:01 now it borks hard Jan 04 03:00:05 ick Jan 04 03:00:21 what happens if you simply eval() it instead of json.PARSE() ing it Jan 04 03:00:23 and I see that JSON.parse silently drops keys that are digits Jan 04 03:00:29 I don't want to do that Jan 04 03:00:34 chicken Jan 04 03:00:38 I've got a 50K hunk of data... Jan 04 03:01:05 yeah, but you do understand that json.PARSE is doing an eval inside after it validates the json. Jan 04 03:01:20 I don't think that's what it does under the hood Jan 04 03:01:47 as I understand it, it's native webkit code Jan 04 03:02:20 JSON.parse has an optional second arg that takes a function to "revive" a given part of the json string Jan 04 03:02:28 I guess I'm gonna have to work with that Jan 04 03:03:38 anyone figured out a way to get the inspector working on a 64bit linux system? Jan 04 03:03:51 I can't even get the thing working on 32 bit Jan 04 03:03:54 kridx2 prototype automatically extends all strings with .evalJSON Jan 04 03:04:06 so you can do myString.evalJSON Jan 04 03:04:11 and see what happens. Jan 04 03:04:18 I wonder how safe that is? Jan 04 03:04:20 okay, one more...so now i put a button in the list row...how can i get the fact that it was pressed as opposed to html next to? Jan 04 03:04:30 kridx2 prototypes eval is very very safe Jan 04 03:04:32 prototype is open source, so I guess I can find out... Jan 04 03:04:33 that's why it's there Jan 04 03:04:41 I'd assume so Jan 04 03:05:14 http://www.prototypejs.org/learn/json Jan 04 03:05:23 String#evalJSON([sanitize = false]) ⇒ object Jan 04 03:05:23 Evaluates the JSON in the string and returns the resulting object. If the optional sanitize parameter is set to true, the string is checked for possible malicious attempts; if one is detected, eval is not called. Jan 04 03:05:24 CageNew: event.originalEvent.target.hasClassName() is what I use Jan 04 03:06:24 anyone has a way to debug css that does not involve the mythical inspector? Jan 04 03:07:29 w00t! rick-home is my hero Jan 04 03:07:30 haha, i'm using hasClassName() and it's evaluating to "false" Jan 04 03:07:42 evalJSON does The Right Thing Jan 04 03:11:07 rfc 4627 doesn't say anything about refusing numeric id's in json Jan 04 03:11:16 so the webKit version is broken Jan 04 03:11:26 yeah, well, ain't that a surprise Jan 04 03:11:27 File a bug on developer.palm.com forums Jan 04 03:11:45 is there a special bug forum, or do I just whine out loud? Jan 04 03:12:29 bug reports and feature requests. Jan 04 03:12:39 cleverly named that... Jan 04 03:12:56 ha Jan 04 03:13:02 that's what I get for not even looking Jan 04 03:13:19 sokay Jan 04 03:13:32 at least you had a real bug Jan 04 03:13:34 gods below, it's more weirdly broken than I thought Jan 04 03:13:45 I gotta admit, I've never tried to use a numeric object name. Jan 04 03:13:58 What the hell? Idiots complaining in reviews of my app that they can't download any of the apps in the catalog. Jan 04 03:14:05 Giving me 0 stars for that. Jan 04 03:14:17 JSON.parse(decryptedJson, function(key, value){ Jan 04 03:14:17 if (key === 'categories') { Jan 04 03:14:17 Mojo.Log.info("categories=%s", value); Jan 04 03:14:17 } Jan 04 03:14:17 return value; Jan 04 03:14:17 }); Jan 04 03:14:24 reality9110 yep, that's the current fad. Jan 04 03:14:36 So I stick that in there, which does *nothing*, and now it parses correctly Jan 04 03:14:42 reality9110: you said it right there "users" Jan 04 03:14:49 You go on vacation for a week and all hell breaks loose. Jan 04 03:14:59 jbjoerk: you left off the leading "l" Jan 04 03:15:34 jbjoerk: can you tell me how you use hasClassName()? When i use it in the function attached to myListTap, it always returns false... Jan 04 03:15:36 jbjoerk: And actually, I said idiots. Jan 04 03:15:42 rick-home: it's not a numeric object name, it's a serialized hash Jan 04 03:15:44 And, I mean it. Jan 04 03:16:21 I'm going to be irked if that drops us below Pandora's user rating Jan 04 03:16:33 yeah, it's javascript, so there's not a whole lot of difference Jan 04 03:16:41 reality9110: funny,I actually did read it as users :P (Sorry about the rating bs though) Jan 04 03:16:48 reality9110: who's "us"? Jan 04 03:16:58 kridx2: RadioTime Jan 04 03:17:02 ahh Jan 04 03:17:44 CageNew: how are you using it? event.originalTarget.target.hasClassName("info-icon") is how I'm using it (from the listTap handler) Jan 04 03:17:57 And we're pushing an update this week so all of this better be sorted out by then Jan 04 03:18:22 reality9110 Send chuq a note, he'll remove them Jan 04 03:18:43 you got his email? Jan 04 03:18:44 I contacted Judy Jan 04 03:19:04 yeah, worth it to copy chuq, he's the one who actually does it. :-) Jan 04 03:19:15 Ah, shoot me his email address Jan 04 03:20:00 done Jan 04 03:20:03 Thanks Jan 04 03:20:24 People requested more podcasts...wow...delivered Jan 04 03:20:35 jbjoerk: same way - using event.originalTarget.target.hasClassName("primary") ...does it have to do with event propogation? maybe list row is intercepting event and therefore button technically isn't pressed? Jan 04 03:21:14 CageNew you're listening to the list, but the original target IS the button Jan 04 03:21:21 hmm, actually, i think that's it...when i tap on row in button area, it doesn't show button being pressed...just the row Jan 04 03:21:25 CageNew: is the button visibly pressed? Jan 04 03:21:28 reality9110: chuq can remove those reviews Jan 04 03:21:37 haeffb: I've heard Jan 04 03:21:38 no, it does not seem to be Jan 04 03:21:51 sry, just catching up... :) Jan 04 03:22:06 There's got to be around 5000 podcasts available now Jan 04 03:22:19 CageNew: is it a regular div you are tapping on? or a widget? Try setting x-mojo-touch-feedback='immediate' on the div Jan 04 03:23:04 it's a button that's IN a list row...(hence it's replicated for each row in the list) Jan 04 03:28:46 hmm...when i log the class name, it says it is "truncating-text" Jan 04 03:29:03 CageNew that's the text field, not the button Jan 04 03:29:29 the button has a label, which happens to be truncated 'cause of size...so maybe it's that? Jan 04 03:29:48 try cutting it down Jan 04 03:30:12 what does the buttons html look like in the list template? Jan 04 03:30:49 so, if i get rid of the label...it works... Jan 04 03:30:56 ok Jan 04 03:31:05 now, where's the label coming from? Jan 04 03:33:08 rick-home....since you're answering questions..... Jan 04 03:33:08 well, i'm using Ares...i inserted a labeled button next to a html field in a vbox panel in a list row ;) Jan 04 03:34:31 yup, it's the label on the button... Jan 04 03:36:04 CageNew but how are you setting the label on the button? Jan 04 03:36:19 is it coming from an array, from a variable, what is putting the label into the list? Jan 04 03:37:36 hi JenP it's 7:37 Jan 04 03:37:53 i know...drinking my tea right now Jan 04 03:38:03 no pressure Jan 04 03:38:32 god in heaven, weather forcast is for even COLDER weather. Jan 04 03:38:36 oh, i'm setting it using ares palette -> select the button -> Model -> labelPropertyName = "label" Jan 04 03:38:44 ewww Jan 04 03:39:04 yeah they said we were gonna hit 70.... Jan 04 03:39:13 it's 10 right now. Jan 04 03:39:32 ofcourse your house is still a quarter of my rent... Jan 04 03:39:35 ok, the label property is "label" where are the values of "label" coming from. Jan 04 03:40:56 forcast 0, tommorow's high 16 rest of the week HIGH forcast is 16, 7, 4 with snow wed thur fri Jan 04 03:41:31 Also from Ares->Settings->label="Show" Jan 04 03:41:48 if i take away the labelPropertyName (set it = "") then everything works Jan 04 03:42:24 good night guys! happy coding! Jan 04 03:42:54 CageNew but the value that is IN the label is coming from code somewhere. Jan 04 03:43:01 I man, what was it printing in the label??? Jan 04 03:43:17 "Show" :) Jan 04 03:43:23 ah h Jan 04 03:43:25 it's not coming from code.. Jan 04 03:43:29 default label Jan 04 03:43:31 and it said SHOW on every button ??? Jan 04 03:43:36 yes Jan 04 03:43:43 then you don't want a label PROPERTY Jan 04 03:43:49 you want a static label Jan 04 03:44:07 well sort of...it says "Zero", "One", "Two", "Three" while it's loading the list...but once the list is loaded, it shows "Show"... Jan 04 03:44:23 (but i'm not programatically chanign the label...) Jan 04 03:44:54 so is that what you want, or is it enough that it says "show" all the time? Jan 04 03:45:32 Well, I'd like for it to say "Show" all the time...but if I put Show in there, then my button press doesn't work .) Jan 04 03:48:29 because it overflows? This is a very narrow button? Jan 04 03:50:49 in styles, go to text size, and change the text size to 12. Jan 04 03:51:02 and see if that fixes your overflow problem. Jan 04 03:51:17 then, ratchet the size up one px at a time until it breaks and back down. Jan 04 03:52:12 rick-home: so what's the explanation (for my education of DOM events and such .))? Jan 04 03:52:53 the ares chrome is dynamically rendering your button, and unless the text fits, is replacing the regular button text with a truncating text field, with ... Jan 04 03:53:12 because the chrome in the ares.js wants to automatically lay out your app for you. Jan 04 03:53:16 correct... Jan 04 03:53:18 so, you have to force it. Jan 04 03:53:24 by making the text smaller. Jan 04 03:54:21 but how does that affect the getClassName() not returning the class name of the button when I click on it? Jan 04 03:54:27 the text will fill the button, left to right with 5 px on each side as margins Jan 04 03:54:36 oh that. Jan 04 03:54:41 It's some ares bug Jan 04 03:54:48 I'm trying to help you with a workaround Jan 04 03:54:55 gotcha Jan 04 03:55:12 but if "show" is truncating this is a VERY NARROW button. Jan 04 03:55:20 yup .) Jan 04 03:55:24 how wide is it? Jan 04 03:55:34 i will eventually replace it with a down arrow / up arrow Jan 04 03:55:42 60 px Jan 04 03:55:50 ahhh Jan 04 03:55:54 make the font smaller Jan 04 03:57:56 you could also try setting the font to PreludeCondensed-Medium Jan 04 03:58:02 which is narrower on a per-character basis Jan 04 03:59:09 CageNew anything else? I gotta finish writing the ares book asap. This sort of stuff needs to be documented. Jan 04 04:00:09 k, well unfortun, setting the font size in ares->styles doesn't change font size of widget...so i guess i'll have to do it via CSS or something eolse... Jan 04 04:01:06 for now, i have to remove the label because with the label (even one that fits, e.g., "S"), it doesn't get the proper className with the label there... Jan 04 04:03:06 c ya all Jan 04 04:04:20 that's very weird CageNew Jan 04 04:05:43 yuppers ;) well, anyway, for now that's all the webos programming i can handle - thanks a bunch for your help....what book are you writing? Jan 04 04:06:06 maybe i should have asked you earlier but who are you, jbjoerk? .) Jan 04 04:10:51 rwhitby: cool, apt-get install scratchbox2 seems to do something on ubuntu :) Jan 04 04:11:30 maybe I'll try with 2.x for a while Jan 04 04:12:33 doh -> webos-internals Jan 04 04:16:04 http://catalog.webosschool.com/#main Jan 04 04:16:09 Look at featured apps Jan 04 04:18:55 I wonder why they never replied to my email. Jan 04 04:20:00 Rick-home: :( Jan 04 04:20:10 rick-home: did you see the new Keen Studios beta website? Jan 04 04:20:17 no Jan 04 04:20:38 http://keen-studios.net/ksbeta/r6/ Jan 04 04:22:56 nice kesne Jan 04 04:23:19 I like the new logo Jan 04 04:23:26 And the overall feel is much better Jan 04 04:24:12 yeah looks good. Jan 04 04:31:59 rick-home: check your inbox Jan 04 05:11:26 YEEEESSSS Jan 04 05:11:41 I got the online services for Checkers accelerated Jan 04 05:11:51 and the client handling better Jan 04 05:12:08 There is generally a 500ms delay between devices Jan 04 05:14:46 so what did u change kesne to accomplish that? Jan 04 05:15:03 Bmyers: mostly client side Jan 04 05:15:20 I ran some server output compression script to optimize the server speed Jan 04 05:15:29 but the Client handling is now much, much faster Jan 04 05:15:45 Used to be 4-5 seconds to get a message accross Jan 04 05:15:57 Now it's under 500 miliseconds every time Jan 04 05:16:00 well thats is a little quicker eh.. Jan 04 05:16:18 Which is almost fast enough to play with a friend on a fast-pased game Jan 04 05:17:07 you cant be sending that much data back and forth Jan 04 05:18:19 quick question: how do I remove "edit" from the app menu? Jan 04 05:20:27 To remove "edit", I used this: this.controller.setupWidget(Mojo.Menu.appMenu, {omitDefaultItems: true}, this.appMenuModel); Jan 04 05:23:01 f-cking eclipse or windows keeps locking my IPK, need to restart eclipse everytime Jan 04 05:24:58 FirstStryke08: that worked, now would you know how to enable say the "help" menu after using your code? Jan 04 05:25:41 LS20: u on XP? Jan 04 05:26:00 win7 Jan 04 05:26:07 LoneStar20: locking IPK is easy to fix Jan 04 05:26:14 Just bump version up one Jan 04 05:26:15 sure, try this: this.appMenuModel = { visible: true,items: [ { label: "Help", command: 'do-myHelp' } ] }; Jan 04 05:26:21 it would happen on vista also Jan 04 05:26:32 LoneStar20: That usually works Jan 04 05:26:35 Does for me at least Jan 04 05:26:49 well it happens on xp also. does that to me all the time Jan 04 05:26:57 Bmyers: Why can't we send that much data back and forth? Jan 04 05:27:01 kense: ok thanks Jan 04 05:27:35 LoneStar20: It's kesne, not kense :P Jan 04 05:28:03 i mean, how much data do you send back and forth for 1 checker move? Jan 04 05:28:26 Bmyers: One move is this: {"msgs":[],"moves":[{"user":"keenstudios","move":"[{'movess':'19'},{'movess':'28'}]"}]} Jan 04 05:30:16 FirstStryke08: thanks, messing around this the app menu Jan 04 05:30:35 kesne: lol sorry multi-tasjing Jan 04 05:30:48 doesnt seem like much. Jan 04 05:31:24 Bmyers: it isnt, so what? Jan 04 05:31:33 LoneStar20: No worries Jan 04 05:31:56 how come it took 4-5 secs b4? Jan 04 05:37:21 FirstStryke08: "command: do-myHelp" - that would call function do-myHelp"? Jan 04 05:38:08 sort of... you need a command handler to handle that specific command. hold on a sec Jan 04 05:45:09 LoneStar20: to use what I gave you, use this function: YourAssistantName.prototype.handleCommand = function(event) {...}. Then, inside the function, check if the value of event.command is equal to, in your case, 'do-myHelp'. Jan 04 05:46:24 FirstSttryke08: alright messing with the code Jan 04 05:51:09 got it working, now need to get to do what i need! Jan 04 05:51:12 thanks Jan 04 05:52:24 no problem Jan 04 06:07:34 anyone notice that no apps have been posted in the catalog for a couple days? Jan 04 06:15:00 Anyone here want to help me out? Jan 04 06:16:11 dangerskew: I'm guessing that the folks at Palm are taking a few days off for the holidays. Also, they may be prepping for CES Jan 04 06:48:25 kesne: what sort of help do you need? Jan 04 06:49:09 kridx2: ignore me, found the error Jan 04 06:55:40 Has there been any issues with preware not loading some feeds under 1.3.5? Jan 04 06:57:22 I've noticed preware taking longer to load feeds in 1.3.5 so I just disabled all of them other than webosinternals and the precentral feeds Jan 04 06:57:23 scasplte2: check the feed URL for webos-internals in the Manage Feeds page. if it says 'feed' then your package manager service is not installed correctly. Jan 04 06:59:37 rwhitby: your right, it just says feed. Thats odd. Should I just reinstall the package manager? Jan 04 06:59:46 scasplte2: yep Jan 04 06:59:54 0.9.29 Jan 04 07:00:07 rwhitby: ok, thanks Jan 04 07:09:17 do app updates automatically go live or must they be approved? Jan 04 07:18:55 LoneStar20: app catalog or homebrew? Jan 04 07:20:54 app catalog Jan 04 07:21:00 They have to be approved. Jan 04 07:21:17 It doesn't seem to be much quicker than the first review (at least in my limited experience) Jan 04 07:21:46 ok, if I have a paid app in the palm app store, can add a free version in home brew? Jan 04 07:22:22 As I understand it, that's ok if the homebrew version is a beta of your next release Jan 04 07:22:30 I believe so too. Jan 04 07:22:46 Where are the rules? Was it an SDK agreement I clicked through? Jan 04 07:23:04 I've heard people talking about them, but don't remember seeing them. Jan 04 07:29:08 Will updating EPR cause it to remove all of my pathces? Jan 04 07:32:30 It will make your hair fall out Jan 04 07:35:34 kridx2: haha, well i;m much to young for that to happen but I can't say that playing with my pre has not caused to to try and pull out my hair by the roots Jan 04 07:35:43 insead of omiting "omitDefaultItems:" I want to omit, PrefsItem, anyone know how? Jan 04 07:36:12 do not want Preference option to display in App Menu Jan 04 07:38:00 omit defaults, then add the ones you do want back in? Jan 04 07:38:21 not sure... Jan 04 07:38:41 sorry, I'm useless now Jan 04 07:38:50 going to bed before I hurt myself... Jan 04 07:39:39 scasplte2: anytime you install or update EPR, it's meant to remove all your patches. Jan 04 07:40:00 rwhitby: thats what I thought, thanks Jan 04 09:18:31 hi! I've received my pre yet, but I can't activate it because I don't have 3G here... can I activate it via wifi? Jan 04 09:48:04 alex___: One issue is that unless you're willing to hack the device, you NEED service for initial activation / creation of a Palm profile. After that, everything but voice calling, voicemail, and SMS/MMS will work. Jan 04 09:48:32 from google.. :P Jan 04 09:51:59 alex___: drive down the road a tad and set it up.. only takes a few mins :) Jan 04 10:06:18 ok MiX-MaN thanks Jan 04 10:06:42 np .. enjoy the pre Jan 04 10:15:40 finally a statement about the paid apps in europe Jan 04 11:12:33 optware or preware or both? Jan 04 12:42:08 alex___: install optware using preware Jan 04 13:14:25 Bmyers: u up Jan 04 13:14:25 ? Jan 04 13:34:27 hi Jan 04 13:34:46 how do i understand "services"? Jan 04 13:35:13 for example this sysmgr service. it's just a bunch of classes. so is services some kind of library? Jan 04 13:38:43 and do i have tp remove the services when i upgrade to 1.3.5? Jan 04 13:53:02 psi_: Generally not. But be sure they're all upgraded to the latest versions. Jan 04 14:14:44 Roy-Pre101: ok. thanks Jan 04 14:17:58 hi atlanta Jan 04 14:18:44 back to work eh? you dont hang out here unless you're on the clock? Jan 04 14:29:25 Bmyers: so i found out the problem with that freezes Jan 04 14:29:44 its because webkit rewrites the frame everytime since i didnt specify a height and width Jan 04 14:30:09 Bmyers: and i try to at home but im never home social/business life takes up that time Jan 04 14:32:58 cool. Glad to hear you got it working. Jan 04 14:46:50 Bmyers: whats on your agends Jan 04 14:46:52 agenda** Jan 04 14:48:44 atlanta: get back to a "work" frame of mind after the holidays.. Jan 04 14:48:58 hey haeefb: Jan 04 14:49:28 yo bmyers Jan 04 14:49:36 Bmyers: i feel u Jan 04 14:49:37 haeffb_wirc: wsup Jan 04 14:50:04 wirc'ing Jan 04 14:50:05 Does anybody know off the top of their head what sprint charges to port a number? Jan 04 14:51:44 idontwan2know: free if u coming new Jan 04 14:52:06 excellent Jan 04 14:52:11 thanks Jan 04 15:17:26 is anyone else's LunaSysMgr frequently crashing with code 4 or 11? Jan 04 15:17:30 palm-webos-device kern.info kernel: [ 2160.510000] minicore_launch: CRASH! LunaSysMgr(1259) received 4. Waiting up to 60s for minicore to attach. Jan 04 15:17:57 I recently upgraded to 1.3.5 Jan 04 15:18:38 palm-webos-device daemon.warning upstart: (02173/196531982) LunaSysMgr main process (1259) killed by ILL signal Jan 04 15:31:21 What is the best way to report a bug/problem to Palm? They don't handle smtp auth properly when using imap Jan 04 15:34:25 there is a bug report section in the forums at http://developer.palm.com Jan 04 15:39:16 haeffb_wirc: Thank you will post something there Jan 04 16:23:48 djk: wat dont they do Jan 04 16:23:48 ? Jan 04 16:25:19 no way to have a description for each image in an imageview widget? Jan 04 16:25:27 (floating text @ the bottom of each image)? Jan 04 16:25:30 atlanta: They don't do smtp auth correctly. I get the following in the mail log on the server when trying to send from the pre Jan 04 16:25:32 did not issue MAIL/EXPN/VRFY/ETRN during connection to Daemon1 Jan 04 16:27:18 I posted this in the forum Jan 04 16:27:24 oh ok Jan 04 16:33:24 yetdog: : haven't used imageview, but can you just position a div on top of the widget? Jan 04 16:33:25 and using the gmail server to send works but advertises that account to people that I might want to. Really want to send using my server Jan 04 16:33:56 hmmm...and updating it each time it changes. interesting :) Jan 04 16:34:07 thanks haeffb_gon4work Jan 04 16:36:16 yetdog: check mojo matter Jan 04 16:36:23 it has an example of what u want Jan 04 16:36:45 it updates the div with an object that corresponds to the images object that u use Jan 04 16:37:33 atlanta: style matters? Jan 04 16:37:40 mojo matters Jan 04 16:38:16 yetdog: C:\Program Files\Palm\SDK\share\samplecode\samples\mojomatters Jan 04 16:38:19 ahhh Jan 04 16:38:23 thank you.. Jan 04 16:38:27 no problem Jan 04 16:39:39 I've got a problem: I'm using the integer picker, but need to be able to change the maximum value on the fly. Is this possible? Jan 04 16:40:07 Chriswebos: checking one second Jan 04 16:41:19 if we are already a developer in the early access program, do you we have to send an email for the e-commerce program for Europe? Jan 04 16:41:33 Chriswebos: u should be able to changre the model and use the modelChanged() method Jan 04 16:42:12 atlanta: that'll change the value of the picker (e.g. set it to 5); I want to change the maximum value of the picker dynamically... Jan 04 16:42:44 basically, I'm creating a bible app...when they change the book (e.g. to Genesis), I want the verse picker (integer picker) to set the maximum to 50 Jan 04 16:43:07 When they change to proverbs, I want the verse picker to set the max to 31 Jan 04 16:43:32 otherwise, every book will have a max value of 150 because of psalms Jan 04 16:43:46 Chriswebos: isnt there a min. max model value? Jan 04 16:44:22 or is it a attribute Jan 04 16:44:26 atlanta: the example I saw set those in the attributes...is it possible to set those in the model? Jan 04 16:44:38 Chriswebos: negative u will have to set it in attrib Jan 04 16:44:44 just update the attribute object Jan 04 16:44:49 and call the modelChange i think Jan 04 16:45:18 atlanta: didn't know you could do that...I'll give a try Jan 04 16:45:44 do you have an example of it, before i go stumbling in dark? Jan 04 16:45:58 Chriswebos: sure give me one second Jan 04 16:46:08 ill type u something up to try Jan 04 16:46:20 cool Jan 04 16:47:25 atlanta: you can't modify attribs after setup Jan 04 16:47:36 haeffb_wirc: ut oh Jan 04 16:47:39 nevermind Chriswebos Jan 04 16:47:53 doh!! Jan 04 16:47:54 you will have to dynamically setup a new widget then on book change Jan 04 16:48:11 swapscene? Jan 04 16:48:15 exactly Jan 04 16:48:22 atlanta: can I re setup the same widget? Jan 04 16:48:35 what's swapscene? Jan 04 16:48:41 only if u are swaping the scenes out Jan 04 16:48:52 oh, they r on the same scene Jan 04 16:48:55 pops out a scene and pushs a new scene on top Jan 04 16:49:02 yea u can swap the same scene Jan 04 16:49:08 if u have them coded in the same scene Jan 04 16:50:10 so, i push the same scene? Jan 04 16:50:11 touchstone oem kit $39.99 http://tinyurl.com/yl95rxr Jan 04 16:50:53 Chriswebos: swap the same scene Jan 04 16:51:12 Bmyers: not bad good find Jan 04 16:51:16 i get mine for around that price Jan 04 16:51:33 atlanta: so, I'm in scene "main"; so, when they change the book, I'd have to push "main" again? Jan 04 16:51:57 Chriswebos: does main start off int he first book "genesis"? Jan 04 16:52:12 or is there a book scene Jan 04 16:52:12 ? Jan 04 16:52:40 Well, "main" is the scene where the select what book and translation to use, so it doesn't start off in any book Jan 04 16:53:06 it has three listselectors: one for translation, one for OT, one for NT Jan 04 16:53:08 ok so after they do the selection of those options do it push to "book"scene Jan 04 16:53:31 oh, i wanted them to also be able to select the verse there, too Jan 04 16:53:50 so, main would also have verse (integer) selecter Jan 04 16:54:27 i guess you r saying i should have verse picker on "book" scene, and pass the max as a parameter? Jan 04 16:54:47 yes Jan 04 16:54:49 correctr Jan 04 16:55:14 everytime you swap the scene u will need to pass the book paramater that u want and based on that set the min max value Jan 04 16:55:25 could i do the swapscene thing you were mentioning, and simply re-push main with the parameter/ Jan 04 16:55:30 ? Jan 04 16:55:42 yurp Jan 04 16:56:05 it kinda stinks one can't dynamically setup widgets Jan 04 16:56:27 u can dynamically set them up Jan 04 16:56:33 u cant dynamically change attrib Jan 04 16:56:34 only model Jan 04 16:56:40 bbl lunch time Jan 04 16:57:32 by dynamically setting them up, u're referring to dynamically changin the model? Jan 04 17:04:25 chuq: welcome back Jan 04 17:06:14 chriswebos: I would try doing a swapScene() in a propertyChanged event handler for the book ListSelector Jan 04 17:06:42 hey, happy new year, all! Jan 04 17:07:06 Happy New Year, Chuq (and all) Jan 04 17:07:18 haeffb_wirc: never done a swapscene...can you point me to an example? Jan 04 17:07:33 I'm assuming i'd pop main, then push it again, correct? Jan 04 17:07:43 never done a swapScene? Do you only have one scene? Jan 04 17:08:03 swapScene parameters are the scane as pushScene. Jan 04 17:08:03 i have multiple scenes, but in this case want them to stay on the same scene Jan 04 17:08:11 for the time being Jan 04 17:08:12 *same Jan 04 17:08:28 Not sure where scane came from... Jan 04 17:08:33 no, swapScene() pops the existing scene and pushes the new one all in one call. Jan 04 17:08:55 oh, that's an actual function? Jan 04 17:09:11 i thought you were saying it in terms of functionality Jan 04 17:09:19 let me read up on that Jan 04 17:09:35 you can swapScene to the same scene. I think. and it will run setup() again Jan 04 17:12:07 haeffb_wirc: It does. Jan 04 17:19:03 is it possible to pass parameters in for the setup? Jan 04 17:19:34 i modified setup and entered them in for swap scene, but it didn't take Jan 04 17:23:21 so i have a caption for my imageview widget. just a div that gets updated on picture swap. BUT. any way to get it to float OVEr the picture? or is it stuck down in that little spacer underneath the picture? Jan 04 17:23:51 Roy-Pre101 & haeffb_wirc: i believe we've got it... Jan 04 17:24:04 i'm just gonna pass the arguments in through the constructor Jan 04 17:24:19 Morningg folks Jan 04 17:24:49 morning rick! Jan 04 17:25:20 Rick_work: morning Jan 04 17:26:03 I'm so looking forward to CES this week. Jan 04 17:27:11 me too rick Jan 04 17:27:24 you going yetdog? Jan 04 17:27:27 nah i WISH Jan 04 17:27:29 i was invited, though Jan 04 17:27:31 I am. Jan 04 17:27:34 wow! Jan 04 17:27:36 thanks guys Jan 04 17:28:05 I intend to spend some quality time in the Palm demo room with my heavily patched pre and quake and doom and scumm and some more stuff by then. Jan 04 17:29:56 Rick_work: any idea on this?: so i have a caption for my imageview widget. just a div that gets updated on picture swap. BUT. any way to get it to float OVEr the picture? or is it stuck down in that little spacer underneath the picture? Jan 04 17:30:31 yetdog, for the 10,327th time, it's all css. Jan 04 17:31:18 yeah, and im trying to position it. seems to be ignoring those designations, though. font and color and all that is OK. i was just wondering if the image had something special to it, so i guess now Jan 04 17:31:19 not* Jan 04 17:31:28 ill come to you for 10,328 ;) thanks Jan 04 17:31:52 yetdog have you used inspector to find the div that needs to be positioned? Jan 04 17:32:19 well i havent used the inspector for *this* issue - but i made my own div Jan 04 17:32:44 yeah, but the caption is INSIDE your div, and has it's own classes, so they're overriding your div. Jan 04 17:32:55 you need to find the CAPTIONS classes and re-define THOSE Jan 04 17:33:48 ahhh :) Jan 04 17:33:49 hi Jan 04 17:34:04 it's cool via pre directly Jan 04 17:34:10 hi Jan 04 17:34:14 I just installed the mojo SDK. My dev box already has VirtualBox 3.1 on it, and the "palm-emulator" startup script is complaining this isn't supported. I did a bit of quick googling and didn't see any helpful links. Jan 04 17:35:04 Is there any hope for me? I already have a VB 3.1 VM that I use regularly -- and I'd hate to have problems with it if I downgrade for the palm-emulator Jan 04 17:35:09 1.3.5 sdk? Jan 04 17:35:18 benluo: yes, the 1.3.5 sdk Jan 04 17:35:37 benluo: palm-sdk_1.3.5-svn234138-sdk117-pho368_i386.deb Jan 04 17:36:25 me2 Jan 04 17:36:32 same problem Jan 04 17:36:37 :( Jan 04 17:36:52 have to downgrade Jan 04 17:38:34 nt4cats you could install it in a different folder. Jan 04 17:38:40 the 3.0.10 that is. Jan 04 17:39:16 Rick_work so i have a div id = caption. its inside div id mojo-scene-photos Jan 04 17:39:22 is there a way to get the american appcat with my european pre? Jan 04 17:39:24 i set caption.innerHTML to my text Jan 04 17:39:34 so i would need to position div id = captin Jan 04 17:39:34 rick_work: I was thinking of that, but hadn't checked for a non-RPM virtualbox package yet Jan 04 17:39:37 thanks Jan 04 17:46:20 yetdog: I just came in, but sometimes Mojo sets styles inline so you have to add !important after your styles in your css. I had to do this with text fields to get some of the properties to what I wanted Jan 04 17:47:49 so if i have
and set top to something like 0 to get it @ the top Jan 04 17:48:00 its the entire div that gets positioned, right? Jan 04 17:48:14 not just the text within the div? (and this leaving the actual position of the div untouched) Jan 04 17:51:11 yetdog: Wait so you just want to change the position of the text then? Jan 04 17:51:19 well no, the div that CONTAINS the text Jan 04 17:51:23 i want to float that over the image Jan 04 17:51:39 and right now its just sitting below it, in the little black bar at the very bottom of the window Jan 04 17:52:05 yetdog: Try margin-top: -50%; See if that moves it up Jan 04 17:52:48 wellillbedamned Jan 04 17:52:53 Or set top:0; and bottom: auto; Jan 04 17:52:56 thats the ONLY thing that's moved it, but it worked Jan 04 17:53:05 ah, so will top only work if theres a corresponding bottom? Jan 04 17:53:11 because i tried top:0 and it didnt work Jan 04 17:53:39 Kind of the opposite, you have to set bottom to auto so that the bottom isn't set or it sometimes conflicts Jan 04 17:53:46 ah i see Jan 04 17:54:47 It's probably better to do the top: 50%; bottom: auto !important; than do margin-top: -50%; but whatever works right :p Jan 04 17:55:17 :) bottom line is, you proved to me that i was at least heading in the right direction Jan 04 17:55:31 just didnt have the right property set Jan 04 17:55:31 so thank you :) Jan 04 17:55:53 You're welcome! I'm glad it worked Jan 04 17:58:26 fuck i cracked my pre Jan 04 17:58:31 time to go get a replacement Jan 04 17:58:38 wonder how i will do that Jan 04 17:58:53 atlanta: lol Jan 04 17:59:43 i have a older build maybe i will say this shit sucks Jan 04 17:59:46 update me ? Jan 04 17:59:46 lol Jan 04 18:00:14 nevermind got it to turn off when i closed it there goes my excuse :-) Jan 04 18:00:18 Sprint store here i come Jan 04 18:09:23 only one bug left but im gonna wait to ask jfelectron about it, since my example is based on his code Jan 04 18:09:55 it seems if the first image in my array is maxwidth, but not height (landscape pic), the rotation doesnt work right Jan 04 18:09:58 weird Jan 04 18:21:43 i see a code example on dion almaer's blog with three divs with ids scrollerItem:1, scrollerItem:2, scrollerItem:3. does the name:# syntax have any significance? Jan 04 18:21:59 code's here: http://almaer.com/blog/touching-horizontalscroll Jan 04 18:27:36 ah ha - for details sake catalystmediastu Jan 04 18:27:52 my bug was, if the INITIAL photo was landscape, rotation failed Jan 04 18:28:06 because on initial load, it sets the canvas to max widthxmax height Jan 04 18:28:29 so i threw in a check. if the first image is landscape (W > H), swap the coordinates on the canvas manualSize :) Jan 04 18:48:17 http://img40.yfrog.com/i/ubb.mp4/ check out that video Jan 04 18:49:58 neat Jan 04 18:50:13 * Mousey doesn't have an xbox, but approves anyway Jan 04 19:01:23 is there anything new happening with the pre this week? Jan 04 19:01:25 flash? Jan 04 19:02:14 Deihmos no one knows what Palm will announce at CES Jan 04 19:02:20 but flash is a real possibility Jan 04 19:02:25 when is ces Jan 04 19:02:40 wish i could see it Live Jan 04 19:02:59 it is amazing that they were able to keep everything a secret Jan 04 19:05:59 press announcement at ces is 11 AM mountain time thursday Jan 04 19:06:08 of course, we know SOME things.... Jan 04 19:06:25 since we got quake and doom and sdl apps and opengl apps running this week. Jan 04 19:06:57 can't say i am interested in opengl or gaming Jan 04 19:07:17 what i would like is flash and a less laggy Pre Jan 04 19:07:17 Rick_work: I wouldn't be surprised if we see Need For Speed hit the catalog on Thursday Jan 04 19:07:26 Deihmos but that was what was nessesary for any native apps like flash Jan 04 19:07:36 Rick_work: they could pull a Steve Jobs and say "and it's available TODAY in the catalog" Jan 04 19:07:48 also for the pre to play videos without skipping Jan 04 19:07:50 destinal ne either, I expect to see an Electronic arts guy on the stage. Jan 04 19:08:06 how do you play a game like need for speed on the pre Jan 04 19:08:10 Deihmos again, we needed video acceleration for that to happen. We got that now. Jan 04 19:08:16 oh ok Jan 04 19:08:29 so the video acceleration would help the dash? Jan 04 19:08:30 as much as I'd like to think SDL in 1.3.5 was all about us, that would be rather silly, I think the timing related to CES was no coincidence Jan 04 19:08:35 make it less laggy? Jan 04 19:08:49 Personally, I think the Unreal Engine will be coming to WebOS, too. Jan 04 19:08:54 Deihmos sdl and open gl will make a LOT of things less laggy. Jan 04 19:09:00 great Jan 04 19:09:04 and we can expect webGL support soon. Jan 04 19:09:07 Rick_work: DOOM is the fastest thing on my pre :) Jan 04 19:09:14 The fact that it's already been ported via SDL just makes too much sense. Jan 04 19:09:30 and that's not even an opengl app Jan 04 19:10:47 is there no copyright involved with Doom? Jan 04 19:12:42 probably... but, it's a 15year old game... do they care now? Jan 04 19:15:45 the port is the shareware version Jan 04 19:15:56 and Quake is now open source Jan 04 19:16:25 quake 3 arena is open source too :D Jan 04 19:16:40 the engines are Jan 04 19:17:23 I can't seem to get my slider to start in a certain position Jan 04 19:17:27 is there some trick to it? Jan 04 19:17:30 (mojo question) Jan 04 19:18:15 the engadget application is pretty good Jan 04 19:22:35 So, what is up with Bad Kitty anyhow? I think they get the vaporware award for constant promotion of some app they're working on but never seem to release. Jan 04 19:34:09 I'm beginning to really hate mojo Jan 04 19:34:13 it's not documented and nothing works Jan 04 19:34:21 or maybe I'm doing it wrong, which is possible, it's not documented Jan 04 19:35:02 i've had the same feeling so far. i don't hate it, but i'm have trouble finding examples that help me understand what's going on Jan 04 19:35:27 the examples on developer.palm.com seem pretty clear about the initial state of a slider, it just doesn't actually work Jan 04 19:36:20 I also find the claim that javascript/html makes it easier, since it isn't javascript or html the way I'm used to it. Basically everything is a
... where's the html? Jan 04 19:36:26 I guess... Jan 04 19:36:44 mainly I'm just mad because I can't get this slider to start anywhere other than where it wants to (just slightly from the left) Jan 04 19:36:45 are you setting the initial slider position within setupWidget()? Jan 04 19:37:00 well, in the model I pass to setup widget, yes Jan 04 19:37:00 or some time after setupWidget is called Jan 04 19:37:10 I'd like to update it after also, but that doesnt' work either Jan 04 19:37:15 jettero you're not used to using advanced html/javascript libraries like yui or jquery are you? everything's a div these days. Jan 04 19:37:40 I'm using prototype like in their examples, no jquery Jan 04 19:37:56 and I'm cuting and pasting from /usr/palm/applications Jan 04 19:38:07 jettero can you pastebin what you have? Jan 04 19:38:10 for whatever reason, the slider code for their screen settings app works for them, but not me Jan 04 19:38:15 yeah, ok, sec Jan 04 19:39:13 http://pastebin.com/d12f074de Jan 04 19:39:59 perhaps it's because I hide it before that function exits... that's something I haven't yet tried, sec Jan 04 19:40:28 nope, no difference Jan 04 19:40:45 I also tried the minValue: 0, maxValue: 1 and value: 0.75 from their example... still starts in the same place Jan 04 19:41:37 can i see your html? Jan 04 19:42:13 jettero: Once you get it all working why not post what you learned at http://webos101.com so others can benefit? Jan 04 19:42:24 There might be something on sliders there already but I don't think so. Jan 04 19:42:42 you're assuming I'll figure it out Jan 04 19:42:53 each time I try to pick up this API I get mad and go do something else Jan 04 19:43:07 ambackstrom: oh, sec Jan 04 19:43:38 http://pastebin.com/d3aec3e83 Jan 04 19:44:04 I was going to buy the webos book from the /topic, but the reviews made it sound about as helpful as developer.palm.com Jan 04 19:44:31 I'm reading Frank Zammetti's book now. I haven't gotten to code yet so I can't tell you how useful it is. Jan 04 19:44:47 Frank's book is pretty good. Jan 04 19:45:07 Rick_work: I'm averaging about 1.25 typos per page. Jan 04 19:45:15 But I haven't gotten to the code yet. Jan 04 19:45:21 I hate poor editing. Jan 04 19:45:40 jettero are you absolutely certain that a slider can have reversed max and min? Jan 04 19:45:49 did I reverse them? Jan 04 19:46:10 minValue: 7200, Jan 04 19:46:10 maxValue: 5, Jan 04 19:46:30 yeah... I swapped that out, still didn't make any difference Jan 04 19:46:36 k Jan 04 19:46:38 I specifically checked for that not that long ago Jan 04 19:46:41 I've been on this too long. :) Jan 04 19:46:44 i see a much different listener in this example: http://developer.palm.com/palm-sdk/jsdoc/symbols/Mojo.Widget.html#.Slider Jan 04 19:46:49 which example are you following? Jan 04 19:48:04 ambackstrom: I don't think you need a listener at all to adjust hte position of the slider... but I'm cut and pasting from the screen settings (brightness) slider Jan 04 19:48:06 jettero next, please do not bind(this) inside your Mojo.Event.listen. Do this.u-i-changed = this.u-i-changed.bind(this) Jan 04 19:48:22 even tho palm sometimes gets away with it. Jan 04 19:48:59 I don't understand the implications of what you said, but I'll try to remove bind Jan 04 19:49:03 if I bother with this project... Jan 04 19:49:09 depends if I can get simple UI things working or not Jan 04 19:50:02 There's some documentation on binding on webos101.com Jan 04 19:50:05 jettero, every time you do a bind, you create a new copy of the function in question in memory. Jan 04 19:50:14 ahh Jan 04 19:50:17 but even more importantly Jan 04 19:50:26 what's $L()? I see it used on webos101.com, but i don't see it documented on the prototype site Jan 04 19:50:33 in order to STOP LISTENING you have to call EXACTLY the same function as when you listen. Jan 04 19:50:48 that makes sense Jan 04 19:50:50 and if you bind in the listen call you can't call the bound function in the stop listening. Jan 04 19:50:52 just like in LPC Jan 04 19:50:54 ambackstrom: It's a palmism for doing internationalization Jan 04 19:50:56 because you don't have a handle to it. Jan 04 19:51:12 There's some documentation on it on the Palm site. Jan 04 19:51:13 ah, thank you Jan 04 19:51:17 and you can tell if your STOP LISTENING works or not by looking at logs when you exit the Scene Jan 04 19:51:18 ambackstrom it means 'LOOK UP THIS STRING IN RESOURCE AND GIVE ME BACK THE LOCAL LANGUAGE VERSION' Jan 04 19:51:44 do I really have to bind at all? Jan 04 19:51:51 yes, you have to bind. Jan 04 19:52:01 but do the bind OUTSIDE the mojo.event.listen. Jan 04 19:52:01 when the object is created Jan 04 19:52:09 like in create() or setup()? or something? Jan 04 19:52:19 you can do it on the line before the mojo.event.listen Jan 04 19:52:40 you have to bind any callback so the 'this' works... Jan 04 19:52:46 yep yep yep Jan 04 19:52:51 so Jan 04 19:52:53 but just callbacks? Jan 04 19:53:06 this.handlefunction = this.handefunction.bind(this) Jan 04 19:53:18 not JUST callbacks, but ALWAYS callbacks Jan 04 19:54:02 if you have functions in another namespace (Utils.xxxx) and you need to pass them references in the local scope you will need to bind them. Util.xxx.bind(this) Jan 04 19:54:19 so that you can reference this.xxx properties in the call to Utils.xxxx Jan 04 19:55:32 makes sense Jan 04 19:55:41 I'm going to watch my bindings from now on for sure Jan 04 19:55:52 but I still don't have a slider updating to the default position Jan 04 19:56:12 jettero are you setting the slider in the model? Jan 04 19:56:13 or after Jan 04 19:56:15 jettero: Is it possible you have some syntax error elsewhere that's preventing all your code from running? Jan 04 19:56:31 yetdog: in the model Jan 04 19:56:39 jettero now, in the pastebin you posted, on line 11 Jan 04 19:56:42 Roy-Pre101: no, it seems to finish cuz it burps an info() to messages Jan 04 19:56:50 what are you doing calling the handler after the listen? Jan 04 19:57:27 because the handler doesn't have an event to handle at that point and you're not passing it one. Jan 04 19:57:30 so it ought to bomb Jan 04 19:57:49 Well, might not bomb but the event parameter will be undefined. Jan 04 19:58:00 nodnod and the outcome will depend on the code he wrote Jan 04 19:58:01 hrm, good point Jan 04 19:58:05 likely not the problem though Jan 04 19:58:19 jettero can you pastebin the entire assistant? Jan 04 19:58:29 that would help. Jan 04 19:58:31 and have you run jslint on it? Jan 04 19:58:42 no, what is that? Jan 04 19:58:46 oh Jan 04 19:58:52 jslint will make you cry. Jan 04 19:58:53 sounds helpful as shit Jan 04 19:59:04 jslint.com Jan 04 19:59:33 haha warning: jslint will hurt your feelings Jan 04 19:59:42 ((( They have since changed the tagline to "jslint will hurt your feelings) but the old tagline was better. ))) Jan 04 20:03:08 hrm, I need a commandline client for jslint Jan 04 20:03:11 that's rocking my world presently Jan 04 20:03:23 er, currently Jan 04 20:03:25 If you're using Komodo with the plugin it has a jslint built-in Jan 04 20:04:05 hrm, that implies there's a cmdline tool I can install Jan 04 20:04:17 nope Jan 04 20:05:02 http://www.jslint.com/wsh/index.html Jan 04 20:05:13 http://www.jslint.com/rhino/index.html Jan 04 20:06:11 if something big is announced at CEs would there need to be another update? for instance if need for spped comes to the pre Jan 04 20:06:33 Deihmos: Not for need for speed Jan 04 20:06:39 Flash? Probably. Jan 04 20:06:43 mmm rhino Jan 04 20:07:05 so if i understand correctly, SDL simply gives us access to the hardware "outside" of mojo Jan 04 20:07:12 its not "accelerating" via the GPU right now, correct? Jan 04 20:07:31 yetdog that depends on the software you're running, but quake absolutely IS accessing the GPU Jan 04 20:07:32 The OpenGL drivers are included with 1.3.5, AFAIK Jan 04 20:07:42 jslint is irritating in rhino becuase it complains Mojo.blarg doesn't exist... Jan 04 20:07:55 oh quake is? niiiice! i thought i read it was just software rendering Jan 04 20:08:00 deal with the web cient for now. Jan 04 20:08:04 yeah, am Jan 04 20:08:11 Whether software uses the GPU is dependent on the software itself, but SDL allows it to do so if it's written that way. Jan 04 20:08:51 cant wait till the GUI uses the GPU Jan 04 20:08:54 damn thing's gonna WHIP Jan 04 20:09:04 wonder what lang we'll be using for the binary SDK (assuming its real) Jan 04 20:09:13 does the pre have a decent gpu? how does it compare to the iphone Jan 04 20:09:17 same i think Jan 04 20:09:19 Deihmos Jan 04 20:09:48 Deihmos it's exactly the same as the iphone gpu Jan 04 20:10:00 yetdog: from what I've seen, SDL allows you to write in almost anything, C, C++, PHP, etc. Jan 04 20:10:01 oh Jan 04 20:10:48 idontwan2know - hmm. interesting. we'll see which direction palm goes in Jan 04 20:10:53 ala apple = objective C Jan 04 20:12:00 We don't even know for sure that anyone will get official access to SDL other than Palm and game developers. Jan 04 20:12:13 right, just speculating Jan 04 20:12:14 same for the native app launcher Jan 04 20:12:51 but thats a good point Jan 04 20:13:00 other than games, there really isnt much of a need for native Jan 04 20:13:25 yetdog: with decent hw accelerated flash, i don't think you need native for games either Jan 04 20:13:39 jslint didn't make me cry Jan 04 20:13:45 damned helpful... lotta missed semicolons Jan 04 20:13:51 (things like that) Jan 04 20:14:10 ivanst: not for 2d, but you'd definitely need native for 3d GPU intensive games Jan 04 20:14:31 i wonder if it changed because 'cry' is ambiguous? (could be tears of jOy) - whereas 'hurt your feelings' is very clear. Jan 04 20:14:42 just depends on how far you wanna rely on flash Jan 04 20:14:44 well, it didn't hurt my feelings either Jan 04 20:14:54 IMO it still havent proven not to be a big fat hog Jan 04 20:15:06 idontwan2know: have you seen papervision3d and similar flash/3d stuff? Jan 04 20:16:14 I'm half tempted to write something with SDL and use the type 'game' and submit to Palm and see if they publish it. Jan 04 20:16:22 ivanst: no, but I just have a hard time believing a good 3d gaming experience can be had on a mobile device going through that many layers. Jan 04 20:17:37 i guess we'll have to wait and see what happens... Jan 04 20:17:40 is it fun to play quake and doom on the pre with the controls? Jan 04 20:19:02 i can see like a mario type game working well but games that require the phone to be horizontal and require controls no Jan 04 20:19:30 Deihmos: the new control scheme for Quake is getting rave reviews. it uses part of the touchscreen as a joystick Jan 04 20:19:50 is there a video Jan 04 20:20:56 Deihmos: not with the new controls, I don't think. The original gameplay vids are still there. Jan 04 20:21:26 is this game on preware Jan 04 20:21:40 yes Jan 04 20:22:52 yeah, slider still doesn't go to the preset... but I have a lot less jslint errors Jan 04 20:23:25 took me a while to get it to load at all after that though. jslint missed a function name spelling error, presumably it doesn't check that. Jan 04 20:26:23 jettero, the slider is functioning or not? Can you post the full assistant to pastebin? Jan 04 20:26:25 is JS just lazy about semicolons? Jan 04 20:26:31 yeah, the slider functions Jan 04 20:26:32 you dont need them @ the end of a line? Jan 04 20:26:36 it just doesn't start where it should Jan 04 20:26:49 Does it start at 900? Jan 04 20:27:04 nope Jan 04 20:27:17 yetdog if you don't put them, you could be hurt in some circumstances, the interpretor will TRY to put them in for you, but it can be confused. Jan 04 20:27:19 I've also tried cranking that up to 7200 (the max) thinking maybe it has to land just so? Jan 04 20:27:22 I'm going to post it Jan 04 20:27:33 that 8Mb downloaded really quickly Jan 04 20:28:30 here's the whole thing: http://pastebin.com/d2e32aef6 Jan 04 20:29:15 wow quake loads fast Jan 04 20:31:19 damn how do i start a new game lol Jan 04 20:32:02 i can pick it, not sure how to select new game Jan 04 20:32:12 jettero, after the setupwidget on the slider try this.updateIntervalModel.value = 1000; this.controller.modelChanged() Jan 04 20:32:17 and see if that works. Jan 04 20:32:33 ok, but note that the depot does load the value and does a modelChanged() Jan 04 20:32:35 which does work Jan 04 20:32:42 it updates the little float: right Jan 04 20:33:30 tried 1000 and 3600 Jan 04 20:33:45 yeah, but I want a modelchanged AFTER you set up the widget, and actually change the model..... Jan 04 20:33:50 I also have Mojo.Log.info("... wtf ..."); just after it... Jan 04 20:33:51 testing testing testing. Jan 04 20:34:18 yeah, the simpleGet is callback based, so I didn't assume it would fire before I setup the widget Jan 04 20:34:27 and in the logs, it loads and modelChanges() well after the fact Jan 04 20:34:50 sure, but you hadn't change dthe slider model outside of the setup Jan 04 20:34:51 I was thinking maybe the modelChanged() doesn't fire, but if I could get it to at least initially start out somewhere else... I could work around it, but I cna't get either to work Jan 04 20:35:07 so I was trying to CHANGE it from 900 to 1000 and then call modelchanged() Jan 04 20:35:12 Rick_work: I do actually, in restorePrefs Jan 04 20:35:17 it fires well after setup() Jan 04 20:35:34 yeah, I tried it... Jan 04 20:35:41 at this point, I'll try anything Jan 04 20:36:33 this.updateIntervalModel.value = 3600; this.controller.modelChanged(this.updateIntervalModel); Mojo.Log.info("... wtf ..."); <-- totally wtfs Jan 04 20:36:43 is that how you meant to call it? Jan 04 20:36:48 er... meant for me to call it? Jan 04 20:37:52 jettero, modelChanged() -- modelchanged looks at all models and should be calle with no parameters. Jan 04 20:38:09 okie Jan 04 20:38:11 didn't know that Jan 04 20:38:24 no difference Jan 04 20:38:33 crap Jan 04 20:38:43 indeed Jan 04 20:38:48 wait one Jan 04 20:38:51 I know this can be done cuz the palm apps (et al) work Jan 04 20:39:28 what is "wait one"? Jan 04 20:40:06 wait one minute please..... Jan 04 20:40:10 :) Jan 04 20:40:20 ok Jan 04 20:40:28 in restorePrefs Jan 04 20:40:37 compress your 3 modelChanged to 1. Jan 04 20:41:04 and please let's just freaking hardcode the updateIntervalModel.value to 1500 there, and see what happens. Jan 04 20:41:54 nope, nothing Jan 04 20:41:59 I did kindof all of the above actually... Jan 04 20:42:48 http://pastebin.com/d68f502f9 <-- Jan 04 20:43:10 still always starts in the exact same place (but works if you slide it around) Jan 04 20:43:28 please note that I'm embarassed about a lotta the code in there. None of it works, since I got stuck on this Jan 04 20:43:43 it was just skeling up the UI ... but I never get past this part in mojo Jan 04 20:44:10 (my other UI items do update though, so that's something I guess) Jan 04 20:44:11 jettero, pleae remove the modelProperty: 'value', from your attributes for updateIntervalAttributes Jan 04 20:44:15 okie Jan 04 20:44:22 the default is 'value' and I am getting despirite. Jan 04 20:44:31 heh Jan 04 20:44:36 I'm past desparate Jan 04 20:44:39 I'm getitng into depressed Jan 04 20:44:42 yeah, didn't work. :( Jan 04 20:44:57 I dunno, I'm goign to try removing the app and adding it back Jan 04 20:45:03 yeah, didn't figure out that it would. Jan 04 20:45:32 jettero one more try please. Jan 04 20:45:40 sure, anything. :) Jan 04 20:45:43 I really appreciate the help btw Jan 04 20:45:59 get rid of updateInterval, set round to true, and set min to 0 and max to 100. Jan 04 20:46:45 (and your defaults to something less than 100) Jan 04 20:46:56 ((( if this works you can always multiply * 72) Jan 04 20:47:08 is there a patch or something to make the pdf-reader use horizontal view? Jan 04 20:47:18 Toaster yes in preware Jan 04 20:47:21 sec... Jan 04 20:47:34 I ruined my tests . Jan 04 20:47:38 Rick_work: You can call modelChanged with no parameter? I was not aware of that. I always call it with the changed model Jan 04 20:47:39 Rick_work: mh..whats its name? cant find it oO Jan 04 20:47:46 ah, lol Jan 04 20:47:54 found, thank you Jan 04 20:48:10 Roy-Pre101 modelchanged is SUPPOSED to be called with no parameter. it looks at ALL models. Jan 04 20:48:32 is there a difference between bind and bindAsEventListener? Jan 04 20:48:40 er, what is it rather Jan 04 20:49:08 Hmm... Jan 04 20:49:10 jettero there is... and no I don't know. Jan 04 20:49:17 Roy, yes, I know that's not what the docs say. Jan 04 20:50:27 jettero, I'm really sorry, but I don't know what's wrong. Jan 04 20:50:40 I just made a scene with nothing but a slider in it, and I can set it. Jan 04 20:50:52 hrm Jan 04 20:50:55 clearly I'm missing something Jan 04 20:50:57 and there's no mention of this problem on the forums. Jan 04 20:51:00 yeah Jan 04 20:51:05 I noticed that Jan 04 20:51:09 maybe it's my html Jan 04 20:51:13 jettero, try making a new scene, with ONLY the slider in it. Jan 04 20:51:30 I will Jan 04 20:51:32 Rick_work: according to the framework code I've seen you can call it with parameters. Jan 04 20:51:34 I'm on some other dumb problem atm Jan 04 20:51:48 Roy-Pre101 then I'm out of sync Roy-Pre101 Jan 04 20:52:05 I got yelled at a couple of versions ago for putting the parameters in. Jan 04 20:52:10 but I forget who by. Jan 04 20:52:37 Hmm... Jan 04 20:52:42 in any case, it seems to work either way Jan 04 20:53:01 with and without params I mean Jan 04 20:53:07 Check te source in controller_scene.js Jan 04 20:53:09 *the Jan 04 20:53:35 @param {Object} model Model object that changed Jan 04 20:53:35 * @param {Object} who Object responsible for changing it (usually the widget object or scene assistant). Jan 04 20:53:35 */ Jan 04 20:54:02 This is with 1.3.1. I haven't installed 1.3.5 yet. Jan 04 20:54:13 actually, I'm on an older one Jan 04 20:54:19 I think Jan 04 20:55:08 Guess it's 1.3.1 Jan 04 20:55:57 point Roy-Pre101 I've just never ued a parameter Jan 04 20:56:09 Hmm Jan 04 20:56:19 spooky Jan 04 21:07:04 Rick_work: if I call modelChanged() without any arguments, it does not update my on-off switches, but if I provide the model (like in the examples), it does Jan 04 21:07:19 my slider still doesn't work, of course... Jan 04 21:09:03 jettero well, then let's just pretend I never said that about modelChanged and I will go slink into the corner. Jan 04 21:09:11 hehe Jan 04 21:09:11 (why does it work for me? Ida know) Jan 04 21:09:21 yeah, why does anything work in Mojo, it's a mystery Jan 04 21:09:38 perhaps I've gotten webos into some kidn of quirks mode from other errors Jan 04 21:09:48 (and from copying palm's apparently ancient code Jan 04 21:09:50 ) Jan 04 21:12:03 yeah, great Jan 04 21:12:09 if I make a scene with just the slider, it works Jan 04 21:12:16 (the value I mean) Jan 04 21:13:01 jettero good. Jan 04 21:13:12 so there's something in the html of the other scene. Jan 04 21:13:18 wanna pastebin the other scene? Jan 04 21:13:35 yeah, okie Jan 04 21:13:38 can't hurt at this point Jan 04 21:13:43 YOU GUYS KNOW ALL MY SECRETS Jan 04 21:13:54 ooooo super secret squirrel stuff Jan 04 21:15:36 http://pastebin.com/d6590825c <-- blarg Jan 04 21:17:03 anyone notice that the palm pre usb transfer rate is really slow Jan 04 21:17:10 Deihmos: nope Jan 04 21:17:31 never really measured it either though, I suppose Jan 04 21:18:11 compared to my flash drive it is really slow Jan 04 21:18:22 averages about 2MBps Jan 04 21:18:46 Rick_work: I failed to hilight, please ignore if you saw my urlie Jan 04 21:19:45 also, my modelChanged works with and without params in the slider only scene Jan 04 21:19:59 I'm feeling more sure I triggered some kind of quirks mode Jan 04 21:21:19 jettero, I see nothing wrong. Jan 04 21:21:26 try stripping things out until it works. Jan 04 21:21:26 indeed Jan 04 21:21:30 yeah, that's what I'm doing Jan 04 21:21:35 then put them back one widget at a time Jan 04 21:21:56 if I setup the updateInterval slider first and return from the setup it works Jan 04 21:25:46 if i defrag the pre would it run faster i wonder Jan 04 21:26:17 Deihmos: no Jan 04 21:27:12 defragging improves seek times in hard drives because there's a physical arm that has to move and having the data in the same place means it has to move less Jan 04 21:27:14 lol ok Jan 04 21:27:29 the storage in the Pre is flash. no moving parts Jan 04 21:27:38 i just checked it and it said it was 27% fragmented Jan 04 21:29:04 hokay, so: I've got a cookie, and cookie.put() is, for some reason I can't fathom, not working. Jan 04 21:29:27 does anyone here have Boggle? Jan 04 21:29:45 it seems like it causes luna to leak after it closes Jan 04 21:29:52 or sometihng, my battery drains like mad after i play it Jan 04 21:30:01 and i look at top and the load avg is constantly 5+ Jan 04 21:31:23 sending lunasysmgr a HUP seems to fix it Jan 04 21:35:44 ugh, and I can't get eclipse debugging to work. Jan 04 21:41:29 idontwan2know: actually it's not true that fragmentation doesn't slow down flash filesystems (http://www.lagom.nl/misc/flash_fragmentation.html) Jan 04 21:41:50 Kuraiou debugging does not work in eclipse at this time. Jan 04 21:41:51 contiguous reads are still faster on flash controllers Jan 04 21:42:04 the only working debugger is text-mode-command-line or in Ares. Jan 04 21:42:57 ah. alright. Jan 04 21:44:28 ...but you should b able to load your project into ares and get source-level debugging there if you want, even if you didn't create the UI in Ares. Jan 04 21:45:00 That answers one question, which I'm fine with since I can just write info lines everywhere, but I still would love some help with this cookie. Jan 04 21:45:27 what's the cookie story? Jan 04 21:45:40 one second, spitting out data into the log... Jan 04 21:48:05 okay. there's a cookie that already exists, whose json is: {"showValues": true, "showSubtotals": true, "showGroupTotal": false, "showTotal": true, "explodeOn": {}, "successOn": {}} Jan 04 21:48:44 I then set the key "10" to the value 7 in the explodeOn hash, such that the resultant JSON is: {"showValues": true, "showSubtotals": true, "showGroupTotal": false, "showTotal": true, "explodeOn": {"10": 7}, "successOn": {}} Jan 04 21:49:27 now, if I put the preferences into the cookie, then get them back out again, they're unchanged. Jan 04 21:50:45 what's interesting to note is that there are values that aren't part of a hash (showTotal, showValues, etc) that if I change THOSE and put the preferences in, what I get back out IS the changed values. Jan 04 21:51:00 I can't see what I'm doing wrong, if anything at all. Jan 04 21:51:14 (oh, this is Kuraiou, apparently I got booted for no reason.) Jan 04 21:54:56 actually, all of this seems completely messed up. if I set one of the non-hash values then afterwards set one of the hash values it works, but if I back out of the prefs scene and then change a different hash value (add in a '6' instead of changing the existing '10') it removes the 10 but keeps the 6... Jan 04 21:54:59 the whole thing is a bloody mess. Jan 04 22:00:16 I'm also getting weird behavior where I'm setting the same key to different values and, instead of replacing the old value with the new one when a new one is set, it's just appending it to the hash under a separate key. (the offending line is: this.preferences['explodeOn'][face] = event.value;) Jan 04 22:01:07 err... scratch that. Jan 04 22:01:12 must've looked at it funny or somethin'. Jan 04 22:02:13 ah, here we go: "explodeOn": {"6": 2, "6": 2} Jan 04 22:04:38 it only happens with the "6" key, not the 10 or 20 key. Jan 04 22:07:07 bah - uninstalled one of my apps from my phone, now getting an error trying to reinstall it Jan 04 22:07:17 and the phone yells that some services need to be restarted Jan 04 22:07:22 but still doesnt work Jan 04 22:07:37 FAILED_IPKG_INSTALL Jan 04 22:08:22 wonder if it left behind some data. :/ Jan 04 22:08:29 yetdog: I got that, after I did webOSDoctor all was well. Be sure to back up your contacts. Jan 04 22:10:52 freetim - i just doctored yesterday Jan 04 22:10:55 basically a fresh setup :( Jan 04 22:13:01 wow, insanely frustrating Jan 04 22:13:06 this really f's up development Jan 04 22:13:49 Kuraiou we found out this morening that parseJSON fails on single digit hash keys Jan 04 22:14:14 and we strongly suggest useing StringName.evalJSON instead. Jan 04 22:14:34 I'm... not using parseJSON? Jan 04 22:14:35 Rick_work are you familiar with the FAILED IPKG INSTALL error happening after you remove an app from your phone and try to reinstall it? Jan 04 22:14:45 nope Jan 04 22:15:06 it's seriously just a built-in plain jane javascript hash. Jan 04 22:15:08 this has happened to me before. had to doctor it. but i just doctored yesterday and UGH dont wanna do it again Jan 04 22:15:57 Kuraiou I understand, I'm trying to explain that the built-in tojson and from json in the webkit are broken and we're suggesting using the prototype libraries instead Jan 04 22:17:47 hrmm. alright, I'll see what I can do. Jan 04 22:25:46 How would I capture the event for when a card is minimized or when it is maximized? Jan 04 22:30:05 isn't it deactivate and activate? Jan 04 22:30:48 I believe that's when a scene is first pushed and when it is popped. Jan 04 22:31:23 i have read it in the o'reilly book, but it is currently 2 levels upstairs from where i am Jan 04 22:31:41 did you take a look at the api documentation? Jan 04 22:32:31 setup is called when a scene is first created. Jan 04 22:32:40 activate occurs every time a scene appears, and deactivate whenever it's removed. Jan 04 22:33:01 anything you want to occur every time the scene is triggered you put in activate. Jan 04 22:33:01 I know there is a Mojo.Event.stageActivate, but I'm not sure what to attach it to :p I tried looking, but didn't find much info. I'll take a look some more Jan 04 22:33:19 className.prototype.activate = function() {} Jan 04 22:33:46 (or, if you're using prototype's Class.create() function, just add in activate: function() {} to the class definition hash) Jan 04 22:34:04 Yeah I want it to happen when the card is minimized and then when it is maximized. I just don't know what to attach the Mojo.Event.stageActivate event to. Maybe the window, or the document? I'll just guess and check to see what works Jan 04 22:35:03 I don't know why you need to attach Mojo.Event.stageActivate to anything. the card's assistant's activate() function is automagically called when it's maximized, and deactivate when it's minimized. Jan 04 22:35:18 YES I SAID AUTOMAGICALLY IT IS NOTHING TO CONCERN YOURSELF ABOUT Jan 04 22:35:40 Rick: replacing all the cookie puts with Object.toJSON() and get results with result.evalJSON() fixes the problem. Thank you for the help! Jan 04 22:35:54 please let me know when it's fixed, though, because it does seem a rather inelegant solution. Jan 04 22:36:16 understood Kuraiou but at least it works. Jan 04 22:36:51 * Kuraiou nods. Jan 04 22:36:52 yup! Jan 04 22:37:01 now I can get back to writing a bloody help file so I can submit this danged app. Jan 04 22:37:06 FINALLY. Jan 04 22:37:31 Kuraiou: That is not what I want to do. Activate is called ONCE, not everytime the card is maximized. I want to capture the event for when you press the home button and the card is minimized Jan 04 22:38:10 I get what you're saying, but that's not what I want. I'm trying to figure out how to use https://developer.palm.com/palm-sdk/jsdoc/symbols/Mojo.Event.html#.stageDeactivate Jan 04 22:38:30 Or maybe, you're right and my app is screwed, I don't know :p Jan 04 22:38:55 anyone familiar with ares? Jan 04 22:41:38 i'm trying to get an integerpicker to work Jan 04 22:42:42 no, setup is called once. activate's called every time. just put a log in there and two stages and test it. I mean, I'm putzing about in my prefs stage right now. Jan 04 22:42:56 prefs, main, prefs, main. log line, log line. Jan 04 22:43:09 if it's not spitting something out each time it's probably a problem. although! Jan 04 22:43:16 I've noticed weirdness sometimes when dealing with dialog boxes. Jan 04 22:43:22 so if what you're trying to do deals with that? Jan 04 22:43:31 catalystmediastu: what about stage activate/deactivate? Jan 04 22:43:31 although that's a huuuuge stretch since I dunno what the heck I'm talking about :) Jan 04 22:44:14 jbjoerk: Yeah I'm trying to use those, but I'm not sure what to attach them to. There aren't any examples :p Jan 04 22:44:34 catalystmediastu: StageController.document Jan 04 22:44:39 Kuraiou: Weird :S I tried putting a log message in and it's only called once, no dialogs or anything :p Jan 04 22:44:58 jbjoerk: Thanks, I'll try that right now :) Jan 04 22:45:06 so noone knows much about ares yet? Jan 04 22:45:07 catalystmediastu: StageController being a ref to your stagecontroller that is Jan 04 22:45:16 * Kuraiou shrugs. Jan 04 22:45:17 catalystmediastu: I do it in my StageAssistant Jan 04 22:45:23 it's probably that my app is set up weirdly or something. Jan 04 22:49:09 Sweet, jbjoerk, that worked. Thank you very much. Jan 04 22:49:37 Kuraiou: Who knows! I'm new to the SDK so it could be mine. Thanks for the help :) Jan 04 22:49:51 heh, sorry I couldn't give any more info^^ Jan 04 22:54:55 plz, can anyone help me with my integerpicker problem, ares changes some things but i'm not sure how much Jan 04 22:56:09 what's the problem? Jan 04 23:04:19 sry, the integerpicker shows the initial value Jan 04 23:04:23 but i can't change it Jan 04 23:05:48 hrmmmmm. Jan 04 23:06:12 min and max are set, you're listening for propertyChange, the model value is within the range of min and max? Jan 04 23:12:28 the model value is 8 Jan 04 23:12:33 min 4, max 32 Jan 04 23:12:52 listeners are done somewhat with ares (i believe) Jan 04 23:15:48 Rick_work: I think I figured it out, testing, but it seems if you prototype hide() and show() the row-group before you setup the widget, it won't update Jan 04 23:17:29 no, more precisely, if it's hidden when you setup the widget, then you can't update the position from js Jan 04 23:17:35 even if you show it first Jan 04 23:21:25 ha, that's not it either. I may never fully figure it out. I'm trying to construct a very small example, but ... Jan 04 23:27:51 yeah, I can't really narrow it down Jan 04 23:44:29 how do I submit apps to homebrew on precentral.net? Jan 04 23:53:28 Has anyone tested sound latency with 1.3.5? Jan 04 23:57:57 I have two text fields and when focus is on the last one and enter is hit I'd like to perform the action that would normally happen when the button is pressed. What is the best way to do that? Jan 05 00:14:32 catalystmediastu: There's probably a better way to do it, but I watch for the enter key in a Mojo.Event.propertyChange handler - http://github.com/lmorchard/blockchalk-webos/blob/master/src/app/assistants/compose-assistant.js#L128 Jan 05 00:16:31 Thanks lmorchard! That should work very well. Jan 05 00:47:17 is there any way to transfer music to the phone without putting it in usb mode Jan 05 00:47:30 i find that weird Jan 05 00:48:12 Deihmos: scp Jan 05 00:48:39 oh, or rsync Jan 05 00:48:42 (same thing basically) Jan 05 00:52:29 anyone else dealing with webosqi error 1? **** ENDING LOGGING AT Tue Jan 05 05:57:21 2010