**** BEGIN LOGGING AT Sat Apr 24 02:59:56 2010 Apr 24 03:02:57 stupid music app Apr 24 03:05:33 Hey folks Apr 24 03:05:49 Does anyone know how to manually trigger a refresh of a FilterList widget? Apr 24 03:06:42 I tried list.mojo.invalidateItems(), but it didn't work Apr 24 03:31:55 Dang, I seem to have a talent for coming by when no one else is around Apr 24 03:32:05 Forums it is, then Apr 24 03:32:12 maybe Apr 24 03:32:20 we just don't know the answer to your question :> Apr 24 03:32:33 That's fair Apr 24 03:32:43 when i want to assure things refresh, i put them in a function, and call that function Apr 24 03:32:55 but it may not be a reasonable answer for a list widget Apr 24 03:33:18 Problem is the list is populated via an itemCallback (well, filterFunction in this case, but same deal) Apr 24 03:33:30 If it were a simple model object I could just refresh the model with the controller Apr 24 03:34:04 Doesn't seem to be any obvious way to encourage the list to request its data again, though Apr 24 05:34:39 Howdy. Apr 24 05:38:54 hey Roy-Pre101 Apr 24 05:39:31 Hey Rod, was just reading your tweets with interest. Apr 24 05:40:04 I'm planning on taking mine and flashing Sprint on it and getting Sprint to activate it. Apr 24 05:40:11 if you can. Apr 24 05:40:36 I just sent an email to my best contact at sprint. I'll let you know what she says. Apr 24 05:40:45 Roy-Pre101: wish I had one of the devices on which to test out my theories ;) Apr 24 05:41:06 Rick_work: Thought you'd be in slumber land already. Apr 24 05:41:26 rwhitby I have every intention of attempting to snag an extra bag for you tommorow. Apr 24 05:41:37 rwhitby: See, if you'd just hopped over here you could have got one in person. Apr 24 05:41:44 I'll gladly pay the $25. Apr 24 05:41:59 Rick_work: A man could get rich doing that deal over and over. Apr 24 05:44:02 lmao Apr 24 05:46:07 Rick_work: I have the book already, but would love the beer glass and phone of course :) Apr 24 05:47:05 I expect if I had a verizon Pre Plus, then the Uber-Kernel would support 1.4.0 instead of just 1.4.1 at the moment ;) Apr 24 05:47:45 Similarly, if I had a Pixi Plus (needs wifi), then lots more of our stuff would work on the Pixi too. Apr 24 05:48:04 was it great guys? Apr 24 05:48:22 i heard you got pre pluses..i'm so jealous Apr 24 05:49:47 yeah, i'd rather get a pixi plus Apr 24 05:49:57 test on the lowest common denominator Apr 24 05:50:51 JenP: We missed you. Apr 24 05:51:10 i know...missed you guys too Apr 24 05:51:20 i promise i will be at the next one Apr 24 05:51:32 you promised this time. :( Apr 24 05:52:02 smiles...i'm so sorry...remember book...wrong one...6 weeks behind Apr 24 05:54:11 not your fault. Idiot boss. He should take responsibility. Apr 24 05:54:26 Seriously. Apr 24 05:54:36 Scheduled time off is scheduled time off. :P Apr 24 05:54:55 and they really seriously ought to offer a bonus for this kind of work. Apr 24 05:54:55 And speaking of schedules, I have an appointment with a shower. Apr 24 05:55:04 absolutely. Apr 24 06:00:54 im out. see u guys tomorrow Apr 24 06:04:01 smiles...it's a paycheck so i'll never fight it. Apr 24 06:06:38 Rick_work: you still there? Apr 24 06:12:04 anyone from #palmdev day know more about this: http://twitter.com/jhoauto/statuses/12729784445 ? Apr 24 06:12:32 still here. Apr 24 06:13:10 I have absolutely no idea what He's talking about. Apr 24 06:13:48 rwhitby there were two rooms, but that's "odd" I have no idea what he's trying to say. Apr 24 06:13:55 maybe it was something said in the other room Apr 24 06:14:57 if so, it's still a very very very baddly written sentence Apr 24 06:19:33 yeah, nothing "legit" about carrier. could he mean a hardware ID check and could send that in to the application developer? Apr 24 06:20:08 otherwise there may be something else there that's just odd Apr 24 06:20:23 I have no idea what he means. I suppose he could mean something about warez feeds, but uh, it's just a baddly written sentence. Apr 24 06:20:31 And I have no idea who he is. Apr 24 06:21:02 ok. 01:20 at home. Rick's fading fast. Nighty Night all. Apr 24 06:21:17 nite Rick_work Apr 24 06:21:23 I thought it might be a PDK API function which interrogates the app catalog payments server to see if you've payed for the app on this device. Apr 24 06:21:41 well, that's a reasonable wild speculation. Apr 24 06:22:38 that'd then relegate piracy into the normal "patch the binary" arena like every other platform Apr 24 06:22:48 still, that's not going to prevent piracy, since someone could just crack the napp or pdl library (wherever it's implemented) Apr 24 06:23:36 wouldn't even need to patch the individual apps Apr 24 06:23:53 Rick_work: What time are we meeting to walk over? Apr 24 06:26:54 oops Apr 24 07:23:11 that was a good movie Apr 24 13:11:25 good morning #webos Apr 24 14:13:05 morning Apr 24 14:14:15 hey swisstomcat! how's California? Apr 24 14:14:24 hey haeffb Apr 24 14:14:34 did not see much yet :) Apr 24 14:14:44 in'n'out burger was tasty tho Apr 24 14:15:09 meet some interesting people? Apr 24 14:16:42 yes, but no many yet Apr 24 14:16:55 thanks to halfhalo for picking me up at the airport Apr 24 14:29:01 hey there Apr 24 14:29:58 hey warpdesign Apr 24 14:30:05 grettings from silicon valley Apr 24 14:30:39 hey hey thanks Apr 24 14:30:45 so how is it going ? Apr 24 14:31:04 it was a long flight Apr 24 14:31:18 now i'm getting ready to leave to palm Apr 24 14:32:27 howdy. Apr 24 14:32:33 swisstomcat: How goes? Apr 24 14:32:44 hey roy-pre101 Apr 24 14:32:56 couldn't sleep that well but i'm doing pretty well Apr 24 14:32:56 greetings from Boston Swiss... it's early yet out there!! Apr 24 14:33:02 i was just talking to jacques Apr 24 14:33:07 good Apr 24 14:33:16 I didn't sleep very well last night either. Apr 24 14:33:24 sorry i couldn't make it Apr 24 14:33:29 too tired and too far away Apr 24 14:33:42 But I'm about to shower and get ready. Apr 24 14:33:49 * jacques too Apr 24 14:34:05 i'm ready Apr 24 14:34:11 got up at 6:30 Apr 24 14:34:15 what's the plan? Apr 24 14:34:55 * haeffb going mobile. Apr 24 14:35:29 meet at our hotel lobby? Apr 24 14:36:01 haeffb: cool quit message Apr 24 14:36:37 oh? what was it? it's just random from icechat Apr 24 14:36:51 alright Apr 24 14:36:58 enjoy swisstomcat then ! Apr 24 14:37:06 thank you, i will Apr 24 14:37:10 and report afterwards Apr 24 14:37:23 yes, I'm looking forward to it ! Apr 24 14:37:26 "Give a man a fish and he will eat for a day. Teach him how to fish, and he will sit in a boat and drink beer all day" Apr 24 14:37:38 I'm off Apr 24 14:37:43 bye Apr 24 14:37:45 have a nice day : Apr 24 14:37:48 bye Apr 24 14:37:49 ! Apr 24 14:55:01 swisstomcat: Still around? I'm almost ready to go Apr 24 14:55:08 yeah, i'm ready Apr 24 14:55:13 meet in the lobby? Apr 24 14:56:54 yeah, in 5 minutes or so? Apr 24 14:56:58 k Apr 24 14:57:01 cu Apr 24 15:21:47 afternoon people Apr 24 15:22:25 hi BigBiff Apr 24 15:22:32 and how is the palm dev day? Apr 24 15:22:39 insightful? Apr 24 15:22:59 I'm guessing it's fantastic. Unfortunately, I don't have firsthand knowledge. Apr 24 15:23:12 ahh, i thought you were going Apr 24 15:23:32 I thought very seriously about it, but ended up procrastinating too long. Apr 24 15:23:47 heard they gave attendees a free Pre Plus Apr 24 15:24:56 interesting Apr 24 15:25:50 ya, im reading that now Apr 24 15:26:05 very nice Apr 24 15:26:15 i could use a plus - still have the 1st gen Apr 24 15:26:39 but i dont use it for music - so i really dont need the extra space Apr 24 15:32:41 man, i should buy some stock Apr 24 15:35:37 I don't need the space, either, but could do without the button. Apr 24 15:35:58 * haeffb just uplodaed a new version of Done to precentral Apr 24 15:36:04 and uploaded Apr 24 16:30:36 can someone help me with background processes? Apr 24 16:36:26 Chriswebos: what kind? Apr 24 16:37:50 well, I've been looking at the documentation on background apps, but mine isn't completely background. I want it to work like the email app, where it has a main scene, and will do things on a schedule, whether opened or closed Apr 24 16:38:34 When opened and with focus, I want all info to happen in the card. When it is either closed or without focus, I want the action to happen in a dashboard Apr 24 16:38:41 or banner Apr 24 16:39:05 my first hurdle is figuring out where to put the stageactivate handler Apr 24 18:54:27 soo has anyone here had to deal with launching a dashboard when a user closes the card stage? Apr 24 18:58:17 hi all Apr 24 18:58:35 how are the dev days going - anyone there and in here simultaneously ? Apr 24 20:01:40 Hello. Is there a dedicated webos development channel? Apr 24 20:03:04 You're in it; I don't know of any others Apr 24 20:04:02 Oh. At one point there was a like a webosdev channel or something like that. I guess that died then Apr 24 20:04:26 It might still be around; I'm pretty new to the scene, so I might just not know of others :-) Apr 24 20:18:27 hey folks Apr 24 20:18:44 Hola Apr 24 20:19:01 I just did a bit of googling, but can't seem to find countries in europe where palm pre is available? Apr 24 20:19:37 I've had trouble figuring that out, too Apr 24 20:20:25 unfortunately its not available in croatia, but I'll be traveling at least to Slovenia and/or Hungary this summer, so thought I might pick one up Apr 24 20:22:49 ianbeck, yay, I found something Apr 24 20:22:52 want me to share it with you? Apr 24 20:22:58 hey this might sound like a dumb question but, is it possible to put the cursor in a text box by clicking the label next to it? and also, is it possible to style the hint text? Apr 24 20:23:09 pygi: if you've found a list, yes please Apr 24 20:23:26 ianbeck, http://www.expansys.com/meta-product.aspx?i=179520&a=international_versions Apr 24 20:23:33 ianbeck, we can compose a list out of this? Apr 24 20:24:01 tjaero: I'm sure it's possible to style the hint text (just have to figure out what styles are applying to it; use the Inspector for that) Apr 24 20:24:09 tjaero: I don't know about labels; haven't played with them yet Apr 24 20:24:43 pygi: That looks like it might do the trick Apr 24 20:24:56 ianbeck, just discussing with myself what phone should I get (iphone/android/pre), that's why I'm looking :) Apr 24 20:25:19 thanks. the reason I'm trying to do it, is that in order to make the textfield look normal (put the entered text where the hint text was) I need to shrink the textfield's size. But then the tap target is uncomfortably small. Apr 24 20:25:30 I think it'll probably be one of the later two, because I can't do iphone development on PC Apr 24 20:25:49 Yeah, WebOS was a big reason I switched from iPhone to Pre Apr 24 20:25:52 tjaero: Good luck! Apr 24 20:26:20 pygi: And no way I'm coding Java, so it was kind of a no-brainer between Android and Palm for me Apr 24 20:26:38 ianbeck, you can do html/css/js on android tho Apr 24 20:26:51 Yeah, same for the iPhone Apr 24 20:26:56 They aren't first class citizens the same way, though Apr 24 20:27:01 Have to learn intervening frameworks Apr 24 20:27:01 nod, until apple bans those :D Apr 24 20:27:08 Ha, seriously Apr 24 20:27:33 450 euro Apr 24 20:27:33 hmm Apr 24 20:29:00 ianbeck, how's the user and development experience? I guess you do develop for pre :) Apr 24 20:29:15 I've been liking it so far; only a couple weeks in, though Apr 24 20:29:47 User experience is excellent; feels a little less responsive than the iPhone, but I like things like the universal back gesture better Apr 24 20:30:19 And the card setup is great Apr 24 20:30:27 wish I could try it shh, but I guess I'll have to take your word :) Apr 24 20:31:14 Development-wise, it's been interesting Apr 24 20:31:35 The widgets and stuff are great, but it can sometimes be hard to figure out how to do things that aren't explicitly supported Apr 24 20:31:48 Fortunately, unlike the iPhone, you can dig into the source code and whatnot of Palm's bundled apps Apr 24 20:31:56 I just wish Palm would (have) come out with a better physical device Apr 24 20:31:59 Which is awesome, if often confusing (since they're mostly pretty complex) Apr 24 20:32:11 They need a faster proc, more memory, and a more solid build Apr 24 20:32:41 ianbeck, palm bundles apps are written in ... ? Apr 24 20:33:02 If they have any remote hope of survival they need to release a solid new model with upgraded specs and a more robust form factor Apr 24 20:33:03 HTML/CSS/Javascript; same as other apps. Only difference is Palm gets to setup their own background services Apr 24 20:33:27 right, and devs don't. Apr 24 20:33:41 At least not yet; PDK and so forth may change that Apr 24 20:34:02 you've been very helpful, thank you :) Apr 24 20:34:12 Sure thing; good luck finding the right smartphone! Apr 24 20:34:17 if I'll have more questions, I'll be sure to bug you some more! :D Apr 24 20:34:47 creatorbri: I've been pretty happy with the Pre so far, but agreed that it'll be nice to see something different Apr 24 20:34:53 Hardware-wise, that is Apr 24 20:35:09 ianbeck, oh, just one more question, sorry Apr 24 20:35:23 do you have this book and is it any good? http://oreilly.com/catalog/9780596155254/index.html Apr 24 20:35:50 Based on the reviews I've read, don't bother with that Apr 24 20:36:11 I bought this one, and it's been pretty helpful, though: http://www.apress.com/book/view/1430226749 Apr 24 20:36:29 Apparently the O'Reilly one has some misinformation, and not a whole lot of useful examples Apr 24 20:37:17 ah nice, just found that book on amazon as well. Apr 24 20:37:58 hi ho Apr 24 20:38:17 seems like a really nice little device :) Apr 24 20:39:19 I just wish there was more info on european availability Apr 24 20:39:24 had to spend too much time finding it :) Apr 24 20:39:36 Heh, yeah Apr 24 20:40:51 ianbeck, I assume you are from europe as well? Apr 24 20:41:00 Nope, USA for me Apr 24 20:41:21 Wondering about European availability since I'd like to localize the app Apr 24 20:41:50 ah! Apr 24 20:41:56 if you need translations, tell me :D Apr 24 20:42:01 I thought the european availability of webos phones was pretty well documented... What's the issue? Apr 24 20:42:07 Where is it documented? Apr 24 20:42:10 That's the issue :-) Apr 24 20:42:14 Couldn't find the info Apr 24 20:43:40 http://developer.palm.com/blog/2010/01/paid-applications-coming-to-webos-in-europe/ Apr 24 20:44:04 In Europe, Palm Pre is currently available in the UK, Ireland, Spain and Germany Apr 24 20:44:11 France next month. Apr 24 20:44:37 Nice, thanks for the link; not sure why that didn't come up in my Google searching Apr 24 20:45:00 Rick_work, seems like you can buy them in some other countries as well tho Apr 24 20:45:37 pygi not officially. Apr 24 20:45:48 true Apr 24 20:46:40 try http://www.palm.com/intl/ Apr 24 20:46:50 Webos apps are distributed to users in 13 countries. Apr 24 20:47:34 France SFR - pre+ and pixi + Apr 24 20:47:37 Rick_work, well, but if I get it in slovenia (and use in croatia) I should be able to get apps without a problem Apr 24 20:47:39 imho? Apr 24 20:48:46 depends. App catalog is distributed and identified by carrier. Apr 24 20:49:15 sight Apr 24 20:49:20 sigh* Apr 24 20:49:46 hi Rick_work how's the conference? Apr 24 20:49:52 but what that's linked to is your palm profile and what carrier.country is linked to your palm profile. Apr 24 20:50:07 Once you get a profile setup it doesn't matter what carrier you get to the app catalog from. Apr 24 20:51:03 So, you can use meta-doctor to setup a palm profile for sprint or verizon or o2 or sfr or vodaphone even if your phone is on slovenian national cellphone Inc. Apr 24 20:56:26 right Apr 24 21:02:37 question! Apr 24 21:02:42 I have a Pré incoming. Apr 24 21:02:52 do I have to do anything to it to start apps on it, debug, etc? Apr 24 21:03:04 (I'll need to do stuff with the PDK, if that helps) Apr 24 21:06:37 millenomi: I think the webos site will explain the steps you need to take. Should be pretty simple tho Apr 24 21:07:00 I have found it for the PDK, but not for regular Mojo apps. I assume I have to do nothing? Apr 24 21:07:16 iirc you just need to enable developer mode Apr 24 21:07:36 then it's a matter of plugging the device in to USB and using the tools provided in the SDK Apr 24 21:07:42 ok Apr 24 21:07:43 thanks :) Apr 24 22:37:58 haeffb_pre: is there a reference for that fancy icon css stuff Apr 24 23:06:03 Roy-Pre101: you !! Apr 24 23:06:18 zsoc: I'm usin' precorder to record interviews. Apr 24 23:06:29 Although, it barfed on me once and I lost half an interview. Apr 24 23:06:43 Roy-Pre101: IT'S IN THE TESTING FEEDS Apr 24 23:06:43 :p Apr 24 23:06:52 So? Apr 24 23:07:03 so it's not for production use, ie: things you can't afford to lose Apr 24 23:07:15 Roy-Pre101: also, if you're only recording voice, turn the stream down to 8000 is my suggestion Apr 24 23:07:21 or maybe 11025 Apr 24 23:07:41 Roy-Pre101: anyway, i'm trying to figure out how the icon attribute works in a widget... there's some css class magic going on? Know where I can find an example? Apr 24 23:07:58 Roy-Pre101: but thanks for testing ^_^ Apr 24 23:08:45 which widget? Apr 24 23:08:50 commandMenu Apr 24 23:09:01 Mmm, I haven't worked with it yet. But check out menus on webos101.com Apr 24 23:09:07 I think acarback put some examples up there. Apr 24 23:09:16 i looked :/ Apr 24 23:09:28 Hmm... Apr 24 23:10:54 http://www.webos101.com/Menu_Icons Apr 24 23:10:58 this has a list of 'default' icons Apr 24 23:15:16 yep. Apr 24 23:15:48 Roy-Pre101: but you can put your own in.. like define them somewhere in css Apr 24 23:15:51 as a class Apr 24 23:15:52 i'm unsure how Apr 24 23:17:35 When you figure it out update the command menu example with an icon. Apr 24 23:18:02 Oh, I think I found the log where haeff explained it, but i was wasted so I didn't understand Apr 24 23:18:22 .done-icon-star-0-small { background: url(../images/icon-star-16x16.png) center center no-repeat; } Apr 24 23:18:32 that's... too simple.. just sets the background as that image Apr 24 23:18:42 i wonder how it will treat transparencies. I'll find out. Apr 24 23:18:44 Ah, use iconPath Apr 24 23:19:15 the icon class could be used like that I guess. Apr 24 23:19:15 and then icon: 'done-icon-star-0-small' in the model? Apr 24 23:19:21 or is there another trick? Apr 24 23:19:40 iconPath: "images/star.jpg" might work, too Apr 24 23:19:58 Did you try that? Apr 24 23:20:11 absolutely not Apr 24 23:20:21 is iconPath in mojo docs anywhere? Apr 24 23:20:23 yes Apr 24 23:20:28 http://developer.palm.com/index.php?option=com_content&view=article&id=1994&Itemid=328#.commandMenu Apr 24 23:20:58 Can you add info about custom icons to the command menu or just the menu page on webos101.com when you've got it working the way you want? Apr 24 23:21:00 awesome Apr 24 23:21:10 Roy-Pre101: I suppose I owe it to you :> Apr 24 23:27:24 zsoc: I don't know. I just looked at sample apps. Apr 24 23:30:40 * haeffb trying to remove spyware from the in-laws computer Apr 24 23:31:09 haeffb: malwarebytes ftw Apr 24 23:32:24 spybot currently running Apr 24 23:34:29 Robi_: iconPath works great! Apr 24 23:34:39 Robi_: er.. sorry, bad tab complete Apr 24 23:34:45 Roy-Pre101: iconPath works great! :> Apr 24 23:34:49 zsoc: Woohoo! Apr 24 23:37:04 Roy-Pre101: devdays done? Apr 24 23:38:05 haeffb: Still going. Apr 24 23:38:10 Roy-Pre101: wiki updated Apr 24 23:38:27 zsoc: You rock! Apr 24 23:38:49 Roy-Pre101: I don't even update my own wiki, I get blokes in #webos-internals to do it lol Apr 24 23:40:17 hah Apr 24 23:41:52 that facebook track was packed!!! Apr 24 23:45:05 hm... font-size isn't supported Apr 24 23:46:52 crap, do i need to use em instead of px? Apr 24 23:47:31 Yep Apr 24 23:47:38 webOS is the new internet explorer. I am horrified. Apr 24 23:48:19 zsoc: I'd double-check that assumption. Apr 24 23:48:46 zsoc: px works in my apps. what situation are you using font-size in? Apr 24 23:50:12 Tibfib: font-size: 20px; did not work. font-size: 2.5em; /did/ work. Apr 24 23:51:35 warning: indicated new content, but not active. <-- does this indicate anything? Apr 24 23:52:26 zsoc: font-size: 20px; works for me Apr 24 23:52:47 odd Apr 24 23:52:54 well then it's just me :> sorry Apr 24 23:53:54 spybot is about 10% thru scan. Apr 24 23:54:14 found two malware entries and two security issues alreaday Apr 24 23:54:44 haeffb: malwarebytes Apr 24 23:54:54 or install linux, either way Apr 24 23:55:21 or safemode + turn off everything in msconfig, heh Apr 24 23:55:25 have malwarebytes now, but spybot was already started scanning Apr 24 23:59:41 this machine has only 512MB RAM Apr 25 00:00:29 that's almost impossible Apr 25 00:00:41 how do you play farmville with 512MB ram? Apr 25 00:00:50 I've decided that's what everyone does. I've seen 80 year old guys playing farmville. Apr 25 00:01:03 my wife has to go feed her pigs... Apr 25 00:01:14 ...or sheep...or something. Apr 25 00:01:21 :> Apr 25 00:01:55 you have bacon in ther yard?! Apr 25 00:02:12 and it's stil alive Apr 25 00:34:46 How do I disable an individual item in a viewMenu or commandMenu? Apr 25 00:35:32 If i target this.controller.modelChanged(this.cmdMenuModel);, I assume it'll disable all of the items Apr 25 00:36:08 zsoc: that's something that id like to know as well Apr 25 00:36:38 i can try assigning items to memory with a var Apr 25 00:38:30 are you wanting the item permanently disabled? or to be dynamic? Apr 25 00:40:00 BigBiff: i have various functions that, while being called, disabled and enable various buttons in the commandmenu Apr 25 00:40:26 i c - obviously, i have no clue, but someone does, and Apr 25 00:40:36 haeffb: you i hope? :D Apr 25 00:40:38 when you find it - post it on webos 101 Apr 25 00:40:44 BigBiff: will do Apr 25 00:40:49 cool Apr 25 00:41:29 haeffb: done! looks good!! Apr 25 00:43:12 i'll also say - tethering my pre! where have i been on that!!!!!!! Apr 25 00:43:26 that's a life changer Apr 25 00:44:03 hmm, i found my phone. Apr 25 00:44:04 it was under my cat. Apr 25 00:46:59 hehe Apr 25 00:48:22 zsoc: disable the buttons? or hide them? Apr 25 00:48:47 Tibfib: flip the disable boolean Apr 25 00:49:00 just true/false Apr 25 00:49:22 it works now the way i have it with buttons, but each buttons i separate. i'm moving from buttons to a command menu and some of them are grouped items Apr 25 00:51:18 "the framework tracks model objects, not model variable names." Apr 25 00:51:21 there's gotta be a way to do this Apr 25 00:51:43 zsoc... Apr 25 00:51:51 zsoc: can't you just redeclare this.model with the individual buttons disabled? then do a modelChanged Apr 25 00:52:07 Tibfib: how do I have multiple models for 1 commandMenu? Apr 25 00:52:19 haeffb: ? Apr 25 00:52:21 you can't/don't need it Apr 25 00:52:25 you don't need multiple models. Apr 25 00:52:29 * zsoc thinks Apr 25 00:52:31 your model contains all of the list items Apr 25 00:52:33 the model contains the properties for each menu item Apr 25 00:52:35 err command items Apr 25 00:52:46 post your model Apr 25 00:52:49 pastebin Apr 25 00:53:00 this.cmdMenuModel.disabed: true will disable /every item/ in that model, won't it? Apr 25 00:53:13 let me show you what i mean Apr 25 00:53:32 {label: $L('Export to Google'), command: 'doGoogle', disabled: false}, Apr 25 00:53:48 this.cmdMenuModel.items[2].disabled = true; Apr 25 00:53:52 haeffb: what, what part of that do i reference? Apr 25 00:53:54 IT'S AN ARRAY?! Apr 25 00:53:58 duh. Apr 25 00:54:05 Why didn't you just say "items are an array" Apr 25 00:54:06 listen to haeffb, his version is a simpler version of what i was saying Apr 25 00:54:09 haha Apr 25 00:54:10 and i would have just been like "oh. thanks" Apr 25 00:54:11 items: is an array Apr 25 00:54:22 doh Apr 25 00:54:23 haeffb: I assume the first item is [0]? :p Apr 25 00:54:40 and sometimes items[0].items is also an array Apr 25 00:54:42 yes Apr 25 00:55:02 * BigBiff smacks forehead Apr 25 00:55:06 yeah well my items have other items, so likely that is the case Apr 25 00:55:10 haeffb: you are awesome, as always :) Apr 25 00:55:16 Tibfib: thank you for chiming in Apr 25 00:55:31 heh, I would have gotten you there.... it would have just been harder my way ;) Apr 25 00:55:49 Tibfib: various methods generally have various pros :) Apr 25 00:56:40 Does javascript support any sort of enum? Where I can give string values instead of using array markers? (so the purpose of the code in these other methods isn't obfuscated) Apr 25 00:56:44 i guess i can just comment those lines Apr 25 00:57:52 javascript can do items[abc].disabled = true; Apr 25 00:58:03 haeffb: a... b... c? Apr 25 00:58:10 however, that is no longer an array, and likely will no longer work in the menu Apr 25 00:58:18 i see Apr 25 00:58:21 sorry. items['abc'] Apr 25 00:58:32 this.cmdMenuModel.items[0].items[0].disable Apr 25 00:58:36 sorry, using the room as a pastebin lol Apr 25 00:58:43 .disabled = true Apr 25 00:59:00 then modelChanged to get it to stick Apr 25 00:59:17 yes, i have the advantage of already having this implemented in a way that works, just changing things Apr 25 01:00:02 * haeffb has a DC auto adapter for powering my laptop...need to get freeTether working so I can go down the road. Apr 25 01:01:21 can someone help me with background applications? Apr 25 01:01:44 hahahah Chriswebos: welcome to the club Apr 25 01:02:02 I can in about three weeks... Apr 25 01:02:09 Chriswebos: on IRC, it's a generally good practice not to ask if you can ask a question, but to ask the question, supplying the necessary information :) Apr 25 01:02:10 ...after I figure it out for myself. Apr 25 01:02:24 haeffb: I can help you out with ipforwarding if you like Apr 25 01:02:35 945000/1300000 on spybot Apr 25 01:02:38 Chriswebos: see webos101.com for basics... and then go to precentral.net and download haeffb's Myles app and look at the source there Apr 25 01:02:55 yeah, but that's not really a background app. Apr 25 01:03:32 zsoc: sorry about the etiquette failure Apr 25 01:03:43 what about what Zinge does with Brightness Unlinked? Apr 25 01:04:01 Chriswebos: no need to apologize, just trying to assist in getting you some help :) Apr 25 01:04:21 Chriswebos: what are you wanting to do with a "background app?" Apr 25 01:05:41 here's what I'm trying to do: I have an app similar to the email app. It has a main stage which the user interacts with. I want to have an alarm set to cause my app to do some processing at set intervals (similar to email app). If there is something that needs attention, it can push a dashboard or banner Apr 25 01:06:01 Chriswebos: I believe the email app uses a java service Apr 25 01:06:50 right now, I can have it wakeup my app and show the banner... however, it actually launches it instead of just doing some simple processing Apr 25 01:07:42 zsoc: it uses java services for the email, but I believe it uses the normal js stuff for handling the background processing Apr 25 01:07:50 how much processing? webOS will kill an app after a few(?) seconds if it doesn't have a stage, iirc. Apr 25 01:08:02 yeah but some apps get around that Apr 25 01:08:05 like newsroom Apr 25 01:08:13 I don't get it. Apr 25 01:08:16 I will try to cut it to 15 seconds or so. Apr 25 01:08:39 but first I need it to not launch the entire app right now Apr 25 01:08:54 that might be too much. not sure. There was a big fuss with the release of 1.4.0, I think, or maybe 1.3.5 and how it treated background processes. Apr 25 01:08:56 haeffb: i think they pushed that 'few' seconds to 30 or 60 seconds as of 1.4.1(.1) Apr 25 01:09:07 Chriswebos: how do you get a function to run at a set interval? Apr 25 01:09:11 yeah. look at forum threads. Apr 25 01:09:35 Tibfib: alarm service request Apr 25 01:09:44 oooh Apr 25 01:09:47 I'm silly Apr 25 01:10:08 so I could have that run every X minutes? and launch a dashboard based on the results Apr 25 01:10:24 tibfib: that's what I'm trying to do!! Apr 25 01:10:34 oh, hence the "welcome to the club" lol Apr 25 01:11:51 tibfib: the services example has an example of doing what you want to do Apr 25 01:12:27 use the alarm service to relaunch with a "meBackGround" parameter. then handleLaunch starts the bg process & SETS THE NEXT ALARM Apr 25 01:13:03 so in the app-assistant I could have the "check for new XXX" function? Apr 25 01:13:42 yeah, or call the function whereever it may happen to live Apr 25 01:13:50 haeffb: how do you stop the handlelaunch from launching the entire app? Apr 25 01:14:02 1110/1290 Apr 25 01:14:06 getting close... Apr 25 01:15:02 Chriswebos: you have to look at launchParams and do different things based on what they are. For instance if (!launchParams) launch normally. Apr 25 01:15:25 if (launchParams === 'meBackGround') do background stuff. Apr 25 01:15:38 see webOS101 for info Apr 25 01:16:14 http://www.webos101.com/Multi-Stage_Applications Apr 25 01:17:03 somebody was supposed to be fleshing out that dashboard stuff.... Apr 25 01:17:08 ...roy! Apr 25 01:17:15 I will once I figure it out for myself! Apr 25 01:18:20 okay i think i get it! Apr 25 01:18:49 haeffb: crap Apr 25 01:19:05 haeffb: i may need tibfibs way. these buttons are grouped in this item Apr 25 01:19:25 this.cmdMenuModel.items[0].items[0] <-- has two buttons in it Apr 25 01:21:08 no Apr 25 01:21:29 items is an array Apr 25 01:21:51 {items:[{label: $L('button1'), iconPath:'images/button1.png', command:'do1', disabled: false}, {label: $L('button2'), iconPath:'images/button2.png', command:'do2', disabled: true}]}, Apr 25 01:22:06 zsoc: my way... take to original model you defined (this.model) and redefine it, this.model = {...icon: 'XXXX', diabled: true...}, then run a modelChanged(this.model) Apr 25 01:22:15 so that's this.cmdMenuModel.items[0].items[0] and this.cmdMenuModel.items[0].items[1]? Apr 25 01:22:21 items[0] is button 1 Apr 25 01:22:27 items[1] is button 2 Apr 25 01:22:39 haeffb: got it, thank you Apr 25 01:22:49 Tibfib: thank you for expounding, i will consider it for future reference :) Apr 25 01:25:32 zsoc: while IconPath works, it may be easier for code maintenance to use CSS. You can easily change icons all over the app in the CSS file w/o hunting down the code where you use them. Apr 25 01:25:48 even using an icons.css to keep them all in one spot... Apr 25 01:26:07 also for future reference. :) Apr 25 01:26:15 haeffb: that's interesting, i may consider implementing it once the app goes multiscene Apr 25 01:26:52 just add this to css .palm-menu-icon.people { Apr 25 01:26:52 background-image: url(../images/icon.png); Apr 25 01:26:53 } Apr 25 01:27:13 .people is now and "icon" you can define Apr 25 01:33:57 you don't even need the .palm-menu-icon Apr 25 01:34:07 .people {...} is sufficient Apr 25 01:36:28 is there a way to start the stage assistant instead of pushing the scene? Apr 25 01:36:54 my stage assistant actually does some processing, including determining which scene to push Apr 25 01:37:09 yes, you can define a StageAssistant in the createStageWithCallback Apr 25 01:37:15 check out the docs Apr 25 01:37:21 gotta jet. laters. Apr 25 01:40:47 Chriswebos: I couldn't get StageAssistant in the createStageWithCallback to work Apr 25 01:41:16 hmmm....so what did you do? Apr 25 01:41:28 don't use stageassistant anymore Apr 25 01:41:45 I gave up trying Apr 25 01:41:48 aargh!!! I don't like that option Apr 25 01:42:45 even if you create a stageassistant it won't work? Apr 25 01:43:30 haeffb said to check out the docs...do u know what docs he was referring to? Apr 25 01:44:30 the assistantName thing Apr 25 01:45:08 on webos101 or on palm's site? Apr 25 01:47:25 palm's site Apr 25 01:52:14 hmmm.. this.cmdMenuModel.items[0].items[0].disabled should access this.cmdMenuModel={items:[{items:[{label: $L('Label'), iconPath:'images/button.png', command:'do', disabled: false}]}]} right? Apr 25 02:00:15 In stage assist, how do I point to a method in a scene assistant? Apr 25 02:03:36 currentScene.assistant.method()? Apr 25 02:03:49 haeffb_pre: how do i reference a method in another scene assist from the stage assitant? Apr 25 02:04:31 that might work Apr 25 02:04:50 haha your confidence is overwhelming :D Apr 25 02:05:24 there's delegateToSceneAssistant, but I don't recall if that's from app or stage controller Apr 25 02:05:48 what is currentScene Apr 25 02:06:02 oh, currentscene is not defined lol Apr 25 02:06:19 I can currentScene = this.controller.activeScene(); Apr 25 02:06:22 that might work Apr 25 02:06:42 right Apr 25 02:07:03 by gosh, that might just work! Apr 25 02:07:05 cannot call method of undefined Apr 25 02:07:11 * zsoc facepalms Apr 25 02:07:20 delegateToSceneAssistant it is Apr 25 02:07:26 look up delegate.... Apr 25 02:08:05 doing Apr 25 02:14:13 error: Uncaught TypeError: Object function anonymous() { { this.initialize.apply(this, arguments);} } has no method 'delegateToSceneAssistant' Apr 25 02:14:16 bah Apr 25 02:15:32 app or stage controller? Apr 25 02:15:38 stage controller Apr 25 02:15:48 er, stage assistant Apr 25 02:16:54 Mojo.Controller.StageController.delegateToSceneAssistant(method) Apr 25 02:16:57 am i invoking it wrong? Apr 25 02:18:00 from stage assistant? Apr 25 02:18:16 this.controller.delegate... Apr 25 02:20:45 * zsoc thinks Apr 25 02:24:33 good news, that seems to work... bad news.. Apr 25 02:25:17 this.cmdMenuModel.items[0].items[0].disabled doesn't seem to be working Apr 25 02:26:24 your using modelChanged? Apr 25 02:26:34 haeffb_pre: like i said, it worked before Apr 25 02:26:50 this.controller.modelChanged(this.cmdMenuModel); Apr 25 02:27:00 oh....ok. Apr 25 02:27:18 yep Apr 25 02:27:23 well crap Apr 25 02:27:24 why Apr 25 02:28:54 how do i make a message appear in the log for debugging? Apr 25 02:30:43 magic incantation Apr 25 02:31:05 crap... like.. Mojo.log{"something"}? Apr 25 02:31:25 oh () ok Apr 25 02:31:26 Mojo.Log.info('mystring'); Apr 25 02:41:15 use Mojo.Log.error to make sure it appears... Apr 25 02:41:33 info only shows up if you change the loglevel in appinfo Apr 25 02:42:00 ty Apr 25 02:43:23 haeffb_pre: this.controller.delegateToSceneAssistant(method); isn't giving me an error, but also isn't getting to my method Apr 25 02:44:13 'method' ? Apr 25 02:44:40 RecordingAssistant.prototype.method = function(event) Apr 25 02:44:41 * haeffb_pre can't access the docs while driving... Apr 25 02:44:49 oh god, stop using wirc Apr 25 02:44:50 right now lol Apr 25 02:45:23 well...riding. Apr 25 02:47:01 * haeffb_pre wonders why zsoc is processing in stageAssistant... Apr 25 02:47:40 haeffb_pre: it's a response to an event Apr 25 02:47:47 events are handled in the stageassistant Apr 25 02:48:17 ah. Apr 25 02:48:44 handleCommand? Apr 25 02:49:18 zsoc: not always Apr 25 02:49:28 you can put handleCommand in your scene assistant too Apr 25 02:49:44 right Apr 25 02:50:24 i'm slowly moving things out of my stageassistant into my scene assistant, and i feel i'm going to have to start moving them back when i need multiple scenes Apr 25 02:51:51 if you have to respond to the same command from multiple scenes...stage...else...scene Apr 25 02:52:04 it will probably end up that way Apr 25 02:52:15 i'm just trying to figure out why deleteToSceneAssistant isn't working Apr 25 02:52:26 yet giving no error Apr 25 02:52:34 zsoc: pretty sure that is a app assistant function not stage assistant Apr 25 02:52:48 oh Apr 25 02:53:00 or its not Apr 25 02:53:02 just kidding Apr 25 02:53:07 it is stage assistant >.< Apr 25 02:53:18 wha Apr 25 02:53:42 Tibfib: link to docs page? Apr 25 02:54:08 (dev site is impossible to nav from phone...) Apr 25 02:54:20 http://developer.palm.com/index.php?option=com_content&view=article&id=1872&Itemid=244#.delegateToSceneAssistant Apr 25 02:54:23 stoopid Palm Apr 25 02:54:26 zsoc: the parameter is an object Apr 25 02:55:44 sooo i think it would be delegateToSceneAssistant("functionName", "functionParameters") Apr 25 02:56:06 so... ("method", "") ? Apr 25 02:56:11 yep Apr 25 02:57:02 tibfib: Agenda app assistant uses delegate.... Apr 25 02:57:19 does it use it like that? :p Apr 25 02:57:20 if you want to DL & look at it Apr 25 02:57:55 well i'll be a monkey Apr 25 02:57:59 Tibfib: thank you /so/ much Apr 25 02:59:05 * haeffb_pre scrolls up to where he said to use a string Apr 25 02:59:32 warning: WARNING: modelChanged() found no watchers. Did you call it with the ORIGINAL model object, and not a replacement? Apr 25 02:59:43 haeffb_pre: we have a communication problem :> **** ENDING LOGGING AT Sun Apr 25 02:59:56 2010