**** BEGIN LOGGING AT Fri Apr 02 02:59:56 2010 Apr 02 03:03:33 they pay close to a chicken for 1m ads Apr 02 03:03:48 it's very low Apr 02 03:03:53 a small chicken Apr 02 03:04:00 less than $0.30 cpm Apr 02 03:06:20 on the other hand, you can submit a paid app & get no downloads. Apr 02 03:06:42 so you have a number of options... Apr 02 03:19:34 wow, a tail of two choices Apr 02 03:23:03 so is there a way to use menu panels with view menus? Apr 02 03:25:35 welll *easy way? Apr 02 03:30:15 what is the device for my pre under novacom in ubuntu? Apr 02 03:30:46 castle-linux Apr 02 03:30:59 er um huh? Apr 02 03:31:06 novacom -l Apr 02 03:31:09 novacom -d ? Apr 02 03:31:30 you can connect with 'novaterm' or 'novacom -t open tty://' Apr 02 03:31:34 jt@jt-laptop:~$ novacom -l Apr 02 03:31:35 failed to connect to server Apr 02 03:31:43 but it will be listed with novacom -l under castle-linux Apr 02 03:31:45 then you broke it Apr 02 03:31:51 ps -e | grep -i novacom Apr 02 03:32:03 not running Apr 02 03:32:09 I'm guessing that's your problem Apr 02 03:32:16 try Apr 02 03:32:28 er, crap, i don't have it installed that way so i'm not sure Apr 02 03:32:35 'start novacomd'? :D Apr 02 03:32:40 hehe Apr 02 03:32:46 it used to be in /opt/Palm Apr 02 03:33:27 jaymtee_: try /opt/Palm/novacom/novacomd Apr 02 03:33:32 that should start the daemon Apr 02 03:33:36 i had to re download the novacom drivers Apr 02 03:33:47 jaymtee_: er, you'll need 'sudo' with that Apr 02 03:33:47 somehow it vanished Apr 02 03:34:03 sh novacomd-upstart Apr 02 03:34:09 now its running Apr 02 03:34:43 oh, there you go Apr 02 03:34:50 Sorry, I don't do things 'standard' ways generally Apr 02 03:36:09 zsoc, not often here either Apr 02 03:36:23 Then we'll get along Apr 02 03:36:42 yay... preware is back Apr 02 03:37:04 i was having trouble after the b1.4.1.1.1 updaqte Apr 02 03:37:14 my phone radio would shut down Apr 02 03:37:22 odd Apr 02 03:37:28 i visited the doctor Apr 02 03:37:47 now trying to get back keyring at least Apr 02 03:38:38 hmmm.. now i can see package manager in the launcher ! Apr 02 03:38:45 eh, restart luna Apr 02 03:38:52 that's pretty normal Apr 02 03:39:17 what's the funky moon-like icon doing in launcher? another artifact? Apr 02 03:39:22 no Apr 02 03:39:25 that's the 'default' luna icon Apr 02 03:39:27 for test apps Apr 02 03:39:41 hmmm... wonder what app that is? Apr 02 03:39:50 ... it's not an app Apr 02 03:39:52 just restart luna Apr 02 03:40:00 Also, general Preware support is #webos-internals Apr 02 03:40:21 musta done that.. it's gone Apr 02 03:40:39 ok Apr 02 03:41:13 what's webos for then? more general discussion? Apr 02 03:42:38 jaymtee_: lol... you know there is an entire 'official' developer channel? Apr 02 03:43:23 zsoc, i'm a bit distracted at the moment... trying to get through qualifiers... Apr 02 03:43:41 :) Apr 02 03:44:50 at much too advanced an age too Apr 02 03:54:13 whooo hooo keyring rocks! Apr 02 04:56:51 sweeet Apr 02 04:57:00 just fired off my media email for E3 Apr 02 05:04:39 goodnight all Apr 02 05:07:33 in javascript how would extract "Thu, 01 Apr 2010" from the following "Thu, 01 Apr 2010 17:09:35 -0700" Apr 02 05:10:18 substr() maybe? Apr 02 05:10:34 Or is the javascript version substring()? Apr 02 05:11:07 not sure in php i would use explode or something Apr 02 05:11:17 thanks Apr 02 05:12:15 substr() might work Apr 02 05:16:09 Well, given a string of that nature you'd know how long it would be, so you can just grab it like that. Seems like the most simple way. Apr 02 05:19:57 LoneStar99: use a regular expression Apr 02 05:20:19 i just walked back to my desk and I see: Apr 02 05:20:21 "you'd know how long it would be, so you can just grab it like that" Apr 02 05:20:25 .... Apr 02 05:20:31 * pandora-- goes back to ps3 Apr 02 05:21:07 sugardave: regex would be the best solution? Apr 02 05:21:41 pandora--: lol Apr 02 05:21:52 maybe, but since it's fixed-length, substr might be simpler Apr 02 05:22:36 regex might be useful if you wanted the individual tokens. Apr 02 05:22:45 yeah Apr 02 05:22:47 Or split would be simpler. Apr 02 05:23:20 k let me try "substr" first Apr 02 05:23:22 thanks Apr 02 05:25:42 speaking of lonestar, spaceballs is showing on AMC as i type Apr 02 05:26:40 Totally Excellent. Apr 02 05:28:37 yeah Apr 02 07:06:14 anyone knows why I can not install/find the mobile hotspot app (german, no o2 client) It tells me that my provider is wrong but I know others who can install the app with the same provider as me. Apr 02 07:46:50 man crazy. $50 PER submission? Apr 02 07:46:59 this is my first time submitting an app since they put this in Apr 02 07:47:00 :( Apr 02 07:47:22 i thought it was per account Apr 02 07:47:26 its per app?? Apr 02 08:01:15 yep. unless it's open source. Apr 02 08:01:23 slows down brighthouse and dijit Apr 02 08:04:03 man. Apr 02 08:04:26 well i'm glad i got 2 paid apps in before they put the $50 on Apr 02 10:07:19 morning Apr 02 10:08:54 hi swisstomcat Apr 02 10:09:05 hey rwhitby Apr 02 10:09:20 swisstomcat: can you give Preware 0.9.33 a good testing in German please? Apr 02 10:09:42 via the bit.ly procedure? Apr 02 10:10:03 swisstomcat: should just be able to upgrade to it Apr 02 10:10:07 it's released already Apr 02 10:10:12 i had some problems with preware today, it didn't finish loading the palm-catalog Apr 02 10:10:25 yeah, that's what is fixed Apr 02 10:10:44 allright, let me upgrade Apr 02 10:10:54 make sure it's to 0.9.33, not 0.9.32 Apr 02 10:11:50 it's installing 0.9.33 Apr 02 10:12:38 ah, i assumed it was a timeout with the feeds getting bigger :) Apr 02 10:16:10 we now parse it in smaller chunks, so it should use less memory too Apr 02 10:18:41 ah, cool Apr 02 10:18:49 i found one untranslated string so far Apr 02 10:18:55 update of 3 apps completed Apr 02 10:19:06 let me test more Apr 02 10:25:44 rwhtiby: no problems so far Apr 02 10:25:51 rwhitby: no problems so far Apr 02 10:26:50 this is a stupid question, but Im struggling to find an answer elsewhere: why do we have the prototype functions and when should we use them instead of a normal function? Apr 02 10:30:50 can i only use prototype stuff in a prototype function? Apr 02 10:35:16 rwhitby: no problems found (besides a few untranslated strings) Apr 02 10:36:44 swisstomcat: thx Apr 02 10:37:07 was the last problem german specific? (0.9.32) Apr 02 10:39:58 rwhtiby: shall i submit those missing translations? Apr 02 10:43:05 if i want to hide/show divs, i can use hide/showWidgetContainer, but this only works if my container div is of class 'palm-hasheader' -- why is this? and is it acceptable to have multiple divs who's class is 'palm-hasheader' ? Apr 02 10:46:53 swisstomcat: please do Apr 02 10:49:53 or if you don't want to help, could you point me to some docs? I can't find an explaination of palm-hasheader anywhere Apr 02 10:51:13 and if it's ok to use it multiple times in a document Apr 02 10:51:26 or if that's even the correct way to show/hide widgets Apr 02 10:51:50 let me check Apr 02 10:52:30 i think i have used .hide Apr 02 10:52:46 on the element Apr 02 10:52:57 do you use palm-hasheader at all? Apr 02 10:53:05 or any special palm div classes? Apr 02 10:54:55 i have to check my code Apr 02 10:55:12 did you try to hide/block divs via css? Apr 02 10:55:55 yes, but then i noticed some palm code uses a different method Apr 02 10:56:17 i was just wondering what is so special about palm-hasheader Apr 02 10:56:35 i've used this:
in the html, display: none; in the css Apr 02 10:56:36 but .hide seems to work fine Apr 02 10:57:02 and then $('hello').style.display='block'; later Apr 02 10:59:07 thanks swisstomcat Apr 02 10:59:37 remember "it's just a browser" when you do webos stuff Apr 02 11:06:46 hallo noaXess Apr 02 11:42:41 I want to position a button & some other things at a certain height. I'm using a div container around the objects with css: position: absolute; top: 50px; but it's not working Apr 02 11:44:47 in fact, border: 1px solid black; isn't even working Apr 02 11:49:16 ping rwhtiby Apr 02 11:49:20 hrmm Apr 02 11:49:24 ping rwhitby Apr 02 11:49:47 morning Apr 02 11:49:50 swisstomcat: syn|ach Apr 02 11:49:53 morning Apr 02 12:01:28 hi Apr 02 12:01:45 i would like to use Google Maps in webos for showing some markers Apr 02 12:01:54 does someone knows how can i do that ? Apr 02 12:08:37 l_a_m: as far as I know, it is not possible Apr 02 12:10:22 rwhitby: oh :( Apr 02 12:10:56 so i can't use Maps with Palm webos ?? Apr 02 12:12:44 apparently foursquare uses markers .. have to check that Apr 02 12:13:35 yeah, foursquare uses a marker and google maps Apr 02 12:14:02 check their source-code? Apr 02 12:14:35 l_a_m: seems that my knowledge is sub-optimal on this matter. Apr 02 12:14:48 locatok Apr 02 12:16:49 i only see one marker tho Apr 02 12:17:22 http://github.com/foursquare/foursquare-palmpre Apr 02 12:38:12 ping rwhitby Apr 02 12:42:27 swisstomcat: yep? Apr 02 12:43:39 i'm ready to commit Apr 02 12:47:50 swisstomcat: what in particular in the german strings file did you find makes the json parser break? Apr 02 12:48:48 i ended up just yanking all my localized strings and resubmitting (just now), since i had used google translator and you guys said that sucks anyway Apr 02 12:49:10 how many strings in german you have/need? Apr 02 12:49:41 kmudrick: use my translation service Apr 02 12:50:06 kmudrick: it was backslashes .. instead of
Apr 02 12:50:29 ah Apr 02 12:51:01 the parser in 1.4.x is more picky than before .. i had errors (missing commas) in my file but 1.3.5.x didn't mind Apr 02 12:54:19 who is crazy enough to translate app titles? world time lite becomes welt zeit licht Apr 02 12:57:38 lol Apr 02 12:57:39 w Apr 02 12:57:54 world time lite -> Weltzeit Lite Apr 02 12:58:01 joetweeply: i'm translating from english to german Apr 02 12:58:23 i see Apr 02 12:58:36 obviously not for that app :) Apr 02 12:59:03 welt zeit licht is funny Apr 02 13:50:21 Whoa Apr 02 13:50:31 1.4.1 is here? Where have I been? Apr 02 13:50:34 yeah? Apr 02 13:55:40 heh Apr 02 14:00:13 I'm trying to add my email account to my pre. It's telling me "unable to validate incoming mail server settings." - I know they are correct (I set it up. also, it all works in thunderbird) Apr 02 14:00:26 If it were an issue with the SSL certificates, would it say so specifically? Apr 02 14:01:42 If it _is_ the certificates, it's probably because cacert.org isn't trusted. I would need to find out how to add that CA. Apr 02 14:05:03 I just found this. going to import cacert. http://kb.palm.com/wps/portal/kb/common/article/47857_en.html#N1002E Apr 02 14:05:27 goodmorning all Apr 02 14:12:33 Hmm. no change. got the root certificates trusted. can't figure this out. Apr 02 14:12:56 huh? Apr 02 14:13:01 what wrong Apr 02 14:13:01 ? Apr 02 14:14:14 I'm trying to add my email account to my pre. It's telling me "unable to validate incoming mail server settings." - I know they are correct (I set it up. also, it all works in thunderbird) Apr 02 14:14:19 If it were an issue with the SSL certificates, would it say so specifically? Apr 02 14:14:26 If it _is_ the certificates, it's probably because cacert.org isn't trusted. I would need to find out how to add that CA. Apr 02 14:14:38 so i then went and got the root CA cert and class3 cert, and imported them Apr 02 14:14:49 now, IMAP/SSL is working but it can't verify outbound. Apr 02 14:14:52 swisstomcat: i read source code of foursquare Apr 02 14:15:08 swisstomcat: buti don't understand how they generate google Maps API key Apr 02 14:15:10 hmm... telling it to continue. lets see if it works anyways Apr 02 14:15:17 http://code.google.com/intl/fr-FR/apis/maps/signup.html <-- it's for website Apr 02 14:17:54 ok then. SMTP/ssl isn't working on the pre. but it works in thunderbird. same SSL cert (which is a wildcard) - same account info, domain/host etc... but it just sits in the outbox on the pre Apr 02 14:19:29 morning Apr 02 14:20:42 It's a loverly spring day in Topeka (Google) Kansas. Rain, darkness, enough wind to rattle the office windows, lightning crashing into the buildings downtown, trees whipping from side to side. Spring in Kansas. Gotta love it. Apr 02 14:20:44 any chance i can coax more info from the pre? ie, exactly HOW it's failing? Apr 02 14:20:55 what's wrong, just got here. Apr 02 14:21:03 ah. smtp/ssl ain't workin' Apr 02 14:21:15 Rick: I didn't know you were in Topeka, I'm down in Manhattan Apr 02 14:21:18 (to my server at least). sits in the outbox and blows up Apr 02 14:21:49 Ah. Well. Does a DIFFERENT smpt/ssl client work? Is it the server or the palm? Apr 02 14:22:01 server's fine and it works in thunderbird Apr 02 14:22:34 ah. Well, can you read the servers logs to see what the palm is or isn't doing? Apr 02 14:23:33 Okay so is there a similar command to "DROP DATABASE database_name" in sqlite? Apr 02 14:23:44 Tibfib -- student? Or something else? I graduated from KSU (altho I seldom admit it in public) and spent 2 1/2 years there. (after starting at KU) Apr 02 14:24:13 Rick-work: student, in high school. Apr 02 14:24:19 Tibfib you just delete the file. Apr 02 14:25:47 Hmmm, now how would I do that? Apr 02 14:26:04 oh, from within Mojo. Sorry. No. there isn't. Apr 02 14:26:27 you can drop table each table, but the db file will persist until the app is deleted. Apr 02 14:26:55 Does the db automatically delete itself? Well thats good at least Apr 02 14:27:24 Any one know when we can expect to see march sales data? Apr 02 14:27:36 "soon" Apr 02 14:28:31 I love that line =/ Apr 02 14:30:36 back. sorry. Apr 02 14:30:53 hmm good idea. lemme find the logs :) Apr 02 14:31:52 has anybody received March payments? If so, I find it hard to believe I didn't make the $30 I need to break the threshold. Apr 02 14:33:36 I got a payment on March 22. Apr 02 14:33:47 lame for me :( Apr 02 14:34:07 Write something more popular. Apr 02 14:34:22 I will, once I'm done with this other thing Apr 02 14:34:30 * sugardave is slow. Apr 02 14:34:37 JenP and Josh and I are working on a "Not safe for work" app. Apr 02 14:34:52 I have one, too...but it won't make it to the catalog Apr 02 14:35:05 This is carefully calibrated to make it into the catalog. Apr 02 14:35:25 it will be a hit :D Apr 02 14:37:12 well that's irritating Apr 02 14:37:13 postfix/smtpd[24100]: warning: unknown[61.191.191.39]: SASL LOGIN authentication failed: authentication failure Apr 02 14:37:25 and I _know_ the credentials are correct Apr 02 14:37:38 But do you *know*? Apr 02 14:37:42 ;) Apr 02 14:38:20 It's beginning to dawn on me that I'm more of a libraries/utility functions kind of person Apr 02 14:38:38 lol. yes... but i'll retype it again anyways Apr 02 14:38:49 I can do a lot of interesting things, but putting them together into an app people like is proving to be a challenge Apr 02 14:39:04 * Monroe fails at UI Apr 02 14:43:34 hmm now the failures arn't logging Apr 02 14:43:44 so is there any way I can see the pre's side of things? Apr 02 14:43:51 error codes etc? Apr 02 14:43:58 just "Error sending..." is useless Apr 02 14:47:22 sugardave: i've gotten no payments for my app, its been live since feb 22 Apr 02 14:47:30 sugardave: payments from palm i mean Apr 02 14:47:56 kmudrick: are you sure you've passed the minimum payment mark? Apr 02 14:48:21 plus, I think the original idea was 60-days after Apr 02 14:48:34 but they seemed to be paying after 30, so I'm not sure Apr 02 14:49:51 sugardave: what is the minimum payment? Apr 02 14:49:58 $100 Apr 02 14:50:02 is this payment stuff documented anywhere/ Apr 02 14:50:07 it was Apr 02 14:50:10 a long time ago Apr 02 14:50:12 :D Apr 02 14:50:58 as of today, should have over $200 in sales after palm takes its cut Apr 02 14:51:37 kmudrick: hmm, perhaps they're going to do the 60-day thing now....I wouldn't panic until 4/2x or so Apr 02 14:53:01 morning al Apr 02 14:53:05 all Apr 02 14:53:42 you can call me Eddie, and Eddie when you call me, you can call me Al Apr 02 14:53:52 good song Apr 02 14:54:16 paul simon Apr 02 14:54:33 yeah, I like Paul Simon Apr 02 14:54:40 I thought it was Fletch? ;) Apr 02 14:55:00 u think the brits will get give my app a downgrade for using 'colors' instead of colours? Apr 02 14:55:08 * sugardave imagines the young ones' brains reeling. "Who the Hell is Paul Simon?" Apr 02 14:55:40 I need some testers for my app "Global Shoutbox". Would be nice if some could join: http://developer.palm.com/appredirect/?packageid=de.omoco.shoutbox.beta Apr 02 14:56:03 LoneStar99: I wouldn't worry about it...but if you are, just "localize" for UK and Canadian English :D Apr 02 14:56:36 wait. Apr 02 14:56:52 dur. those auth failures are from 6am. i wasn't even up then, that was someone being a fool. Apr 02 14:57:02 haha Apr 02 14:57:10 ok then. so no, there's no log activity regarding the pre's (lack of) smtp sendage Apr 02 14:58:22 ok. hostname is right. encryption is SSL (correct). port is 465 (correct). username/password are good, and even then it's not getting that far into the connection Apr 02 14:59:46 Pre's DNS resolving correctly? Apr 02 15:00:58 same hostname as the IMAP Apr 02 15:01:01 (which works) Apr 02 15:01:37 you're not doing any kind of MAC checking? Apr 02 15:01:43 nope Apr 02 15:02:09 well, I'm out of ideas for now :( Apr 02 15:02:19 again. no way to get more detail fom the pre itself? Apr 02 15:02:29 in an app you wrote? Apr 02 15:02:35 no. for the email app. Apr 02 15:02:47 best you can hope for is to ssh in and tail /var/log/messages Apr 02 15:02:53 Is there a FAQ about the SDK somewhere? Apr 02 15:02:57 but, there's not going to be much on the device Apr 02 15:03:05 try in the emu Apr 02 15:03:18 no can do, emulator is stuck on the old version of vbox and i can't downgrade Apr 02 15:03:24 checking in terminus Apr 02 15:03:39 and you MIGHT be able to fudge a framework_config.json file and repackage the email app to get better logging Apr 02 15:04:17 texel: http://developer.palm.com/ Apr 02 15:04:25 somewhere there is a FAQ Apr 02 15:04:27 Heh Apr 02 15:04:32 :D Apr 02 15:04:36 Guess I should be a bit more specific. =op Apr 02 15:05:14 meh whatever. i'll just have to live without this account on the phone. too much bother for laziness' sake ;P Apr 02 15:05:18 hey, you never know who has been there and who hasn't :D Apr 02 15:05:57 I've read multiple times that Palm "might" not choose to include prototype in the SDK in the future. Any comments on that as to which direction they'll ultimately go? Apr 02 15:06:33 texel: haven't heard anything....they sure would break a lot of apps if they did that, though Apr 02 15:06:36 Not including it is kinda a big deal, since it redefines all kinds of things. =op Apr 02 15:06:38 Yeah. Apr 02 15:06:51 I just got bit by it's lovely new class system in my app already. =o/ Apr 02 15:06:54 Well thanks for the help sugardave and Monroe and whoever else helped :) Apr 02 15:06:57 Having to redefine all of my classes now. Apr 02 15:07:01 I doubt it'll happen soon, if it happens at all Apr 02 15:07:05 we would just have to include prototype to support our old apps Apr 02 15:07:08 oh no....guess I should check my apps Apr 02 15:07:24 you can include jquery if u like instead Apr 02 15:07:33 next time i try i'll have to use stunnel or something so i can run a sniffer server-side and see what, if anything, is making it to the SMTP daemon Apr 02 15:07:49 * texel was developing using Chrome primarily because of the better debugging capabilities Apr 02 15:08:36 Bmyers: I'm assuming it's just a matter of pulling down the js source, dropping it into your app dir and adding it to sources.json? Apr 02 15:08:47 yup Apr 02 15:09:17 all 3 functioning on 1.4.1.1...yay for being simple-minded! Apr 02 15:09:24 He Apr 02 15:09:26 h Apr 02 15:10:01 Just as a by-the-by note, the version of Prototype they seem to be using is one release old now. Apr 02 15:10:10 yup Apr 02 15:10:21 yeah, people have mentioned it before....go figure ;) Apr 02 15:10:24 Heh Apr 02 15:10:41 it's okay to me, this is my first js experience Apr 02 15:10:52 Ahh. See, I guess that's where my problem is. Apr 02 15:11:15 I'm used to hand defining classes using the old "function Blah() {}; Blah.prototype.foo = function(x, y, z) {}" method. Apr 02 15:11:17 all you need to do is get a lobotomy, then you're golden Apr 02 15:11:32 texel: actually, that is how I write my code, too Apr 02 15:11:49 sugardave: Really? You don't use Class.create() and friends? Apr 02 15:11:53 nope Apr 02 15:12:07 hang on, I'll show you my best example Apr 02 15:12:09 sugardave has no class Apr 02 15:12:22 *zing* Apr 02 15:12:22 I'm guessing you don't reference any instance methods in your initializer, then? Apr 02 15:12:25 his code i should say Apr 02 15:12:44 wooo for presentation time in an hour :/ Apr 02 15:12:56 halfhalo_T400: Good luck. =o) Apr 02 15:13:10 It will not end weill Apr 02 15:13:17 halfhalo: Don't mess up. Apr 02 15:13:25 texel: http://bit.ly/8PYOH2 Apr 02 15:13:34 err... good luck! Apr 02 15:14:00 texel: instance methods....yeah, sure, go with that :D Apr 02 15:14:25 sugardave: Wow. That's very perly. Apr 02 15:14:40 Bmyers: that's right, I call all my libraries "Dangerfield" Apr 02 15:14:46 it works on soooo many levels Apr 02 15:14:56 I'm hoping the prettiness masks the fact that my app doesn't even work today. I mean, this IS for a college, so that SHOULD work Apr 02 15:15:01 They don't get no respect? =op Apr 02 15:15:01 texel: it is? I don't know Perl, either :D Apr 02 15:15:24 halfhalo_T400: want to use my app instead? :P Apr 02 15:15:52 texel: and you'd have to be crazy to use nmy stuff as-is....it's probably pretty dangerous Apr 02 15:15:53 Can you make a Rails tours app in under 10 minutes? Because if you can, I will give you a cookie Apr 02 15:16:13 sugardave: why's that? Apr 02 15:16:23 heh, I think that deserves at least brownies Apr 02 15:16:42 because I don't really think of security when I'm learning, so who knows what kind of vulnerabilities it might introduce Apr 02 15:16:47 halfhalo_T400: Rails /tours/? O.o Apr 02 15:16:52 sugardave: Ah. Apr 02 15:17:45 texel: what did you mean about instance methods in the initializer? Apr 02 15:18:23 sugardave: As in something along the lines of "function Blah() { this.foo(); }; Blah.prototype.foo = function() { ... };" Apr 02 15:18:36 oh, I see...no, I don't do that Apr 02 15:18:56 Yeah. Apparently prototype does some weird things with the base Object class which makes that impossible. Apr 02 15:20:02 I was doing that in a few of my classes, and when I threw them over to the emu, I ended up with a zillion exceptions stating that "this.foo" wasn't defined. Apr 02 15:20:14 Yet in standard JS it works fine. Apr 02 15:21:07 I was able to reproduce the exact same exceptions in the browser by loading prototype. Apr 02 15:21:11 In short, Apr 02 15:21:16 * texel stabs prototype in the hair Apr 02 15:22:09 that IS a fruitless exercise :D Apr 02 15:25:31 hi! what's the name of the alerts that show in the bottom of screen?, for example: new mail Apr 02 15:26:21 I think that's a banner notification? Apr 02 15:27:41 thanks sugardave :) go see Apr 02 15:41:32 hi all Apr 02 15:45:32 hi JenP Apr 02 15:45:45 morning sugardave Apr 02 15:46:10 sorry I was away after trying to help you with DBs...how did you make out? Apr 02 15:46:53 to be honest had some family emergency stuff to deal with so i haven't had a chance to look at it since...planning on getting back on task this weekend Apr 02 15:47:20 bummer about family emergencies Apr 02 15:47:53 ya...how are you? Apr 02 15:48:28 pretty good...been very busy at work and lost a couple weeks fun/dev time getting everything migrated to a new system Apr 02 15:48:58 smiles...are you gonna dev this weekend? Apr 02 15:49:24 hoping to put the final touches on the "this might be good enough to beta Apr 02 15:49:35 " thing I'm working on in Drupal Apr 02 15:49:44 * sugardave also needs to learn this keyboard better. Apr 02 15:49:46 smiles...now that i totally understand... Apr 02 15:49:48 lol Apr 02 15:49:58 did you get Drupal working? Apr 02 15:50:36 oh yeah, I can make Drupal work...I even have webOS code that registers phones as nodes, assigns them to an "application" node and provides VERY basic statistics Apr 02 15:50:39 coming along Apr 02 15:50:45 I have a few bugs, surprise! Apr 02 15:50:55 OMG that's awesome... Apr 02 15:50:59 okay... that's better. Apr 02 15:51:01 not the bugs part Apr 02 15:51:06 yeah, it is going to be cool Apr 02 15:51:14 hi Tibfib Apr 02 15:51:21 hi JenP Apr 02 15:51:45 sugardave: Wait, so you're attempting to run Drupal on a phone? O.o Apr 02 15:51:53 good mornings internets Apr 02 15:51:56 The web CMS? Apr 02 15:52:01 now that they re-arranged the forum, I can't seem to find the other guy who was going to be doing something similar Apr 02 15:52:03 hey codeslaw Apr 02 15:52:06 texel: HAHAHA, noooooo Apr 02 15:52:14 hi JenP Apr 02 15:52:30 writing a Drupal module to do endpoint stat tracking for webOS apps Apr 02 15:52:45 sugardave: Ooooh. Far more interesting. =o) Apr 02 15:52:51 indeed :D Apr 02 15:54:09 ok, any wonderful germans in the house? Apr 02 15:54:15 Bmyers: speaking of Drupal, another tip for that admin_menu module...there's a setting for trying to force the menu to always stay at the top of the window Apr 02 15:54:59 codeslaw_atwork: ask, and ye shall receive Apr 02 15:55:10 * sugardave points at MetaView. Apr 02 15:55:33 * MetaView looks around Apr 02 15:55:55 MetaView: 10:54 < codeslaw_atwork> ok, any wonderful germans in the house? Apr 02 15:55:59 * codeslaw_atwork meditates on his good fortune Apr 02 15:56:24 well, German, yes Apr 02 15:56:30 ha Apr 02 15:56:33 wonderful? hm Apr 02 15:56:43 MetaView: i need a description translation... i am willing to barter Apr 02 15:56:50 codeslaw_atwork: what do you need a German for? Apr 02 15:56:59 ok, send it to me Apr 02 15:57:04 its not ready yet Apr 02 15:57:09 but shortly Apr 02 15:57:14 the real question is....who DOESN'T need a German? Apr 02 15:57:16 metaview at web dot de Apr 02 15:57:25 :) Apr 02 15:57:49 do you need anything? icons, secret codes, an american wife? Apr 02 15:57:51 it's fine to have the describtion in German and if the app is very text-centristic Apr 02 15:58:16 I ha ve a wife and 2 kids, I would rather need some patience :) Apr 02 15:58:31 shit, we're fresh out of that Apr 02 15:58:41 yep, sorry Apr 02 15:58:57 which app, btw? Apr 02 15:59:01 paintr lite Apr 02 15:59:38 ok, just make send it to me, I translate Apr 02 15:59:39 codeslaw_atwork my design department at work LOVES your app Apr 02 16:00:05 JenP: i am ecstatic to hear that Apr 02 16:00:08 the painting could be faster, but it's surely not your failt Apr 02 16:00:11 fault Apr 02 16:00:30 codeslaw_atwork: seriously....i had to ask for my phone back Apr 02 16:00:48 i agree, it could be faster, but the "weight" is what keeps its smooth Apr 02 16:00:56 i'm debating re-writing the whole thing in C++ Apr 02 16:01:16 JenP: awesome, tell them to submit something to the gallery Apr 02 16:01:24 next time they steal your phone that is Apr 02 16:01:34 smiles...will do Apr 02 16:01:58 codeslaw_atwork: when i need an icon, I will ask you, ok? Apr 02 16:01:58 hi JenP Apr 02 16:02:09 MetaView: yes sir Apr 02 16:02:14 anyone done localization? Apr 02 16:04:19 Hi,, can i use web services from my app to send dat online? Apr 02 16:04:42 LoneStar99: Dunno -- I can't vouch for it. Personally, I prefer other illicit substances... =op Apr 02 16:05:21 yeah kinda sucks, but need to localize one freaking wod Apr 02 16:05:56 swisstomcat: you around? Apr 02 16:06:19 please reply someone Apr 02 16:07:18 rohit1: Can't see why you couldn't. Apr 02 16:07:31 rohit1: like someone inputs something into the phone, then it is sent to a web service? Apr 02 16:07:50 yeah for sure, Apr 02 16:10:05 rohit1: yes, you can use Ajax to send data anywhere Apr 02 16:10:21 texel : kind of.. actually i'm porting an application on the webOS. It's a kind of spreadsheet application. so i want to save the files online directly Apr 02 16:10:25 is it possible? Apr 02 16:12:49 rohit1: If you just need to open a network connection to a server somewhere I can't see it not being possible. Apr 02 16:13:11 rohit1: You're porting this app to a phone that basically /requires/ a network connection to function. Apr 02 16:14:11 rohit1: If you're having a specific problem, you'll have to narrow down your question so we can help you. Apr 02 16:15:27 texel : ok,, thank you so much,, so i guess i should first look for tutorial on how can i code to use internet services from my app? Apr 02 16:15:52 rohit1: the following code will get you started http://pastebin.com/kDzKA0zC Apr 02 16:16:42 rohit1: it sends device id and app version to what ever web server you choose. Apr 02 16:17:31 lonestar : thank you sir.. Apr 02 16:18:58 most ridiculous forecast ever "iPad sales could pass 7 million units this year" how the heck do you forecast sales on something that has not even been released Apr 02 16:19:23 "could" Apr 02 16:19:34 Beats me. What boggles my mind is how the mainstream media are eating the thing up like mad and calling it a "game changer" when other devices of equal design have been out for years. O.o Apr 02 16:20:01 Guess it just goes to prove how much of a shill the media have become. O.o Apr 02 16:20:18 JasonLP: true, but still ridiculous pridiction on something that will be released tomara Apr 02 16:21:40 Agreed Apr 02 16:22:45 texel: "game changer" lol Apr 02 16:23:07 I still find it hilarious that Jobs himself couldn't sell the thing at his keynote. =op Apr 02 16:23:41 lonestar: i'm here Apr 02 16:23:52 for anyone who cares: --------------------------------------------------- Apr 02 16:24:07 that is the exact width of one line in the app catalog description box Apr 02 16:24:40 texel: show me a device of equal design that has been out for years Apr 02 16:24:44 For those more mathematically minded, that's 52. =op Apr 02 16:25:12 swisstomcat: tablet PCs, for one Apr 02 16:25:16 swisstomcat: need to localize one word "color" to "colours" into UK, and Canada - how would I go about it... Apr 02 16:25:38 texel: a tablet pc is not the same .. maybe hardware, but not software Apr 02 16:25:40 LoneStar99: Erm... may I ask why go to all that trouble for one word? Apr 02 16:26:03 do not need bad rating from a Brit or Canadian Apr 02 16:26:04 lonestar: resources\en\uk and resources\en\ca ... put a string.json in there Apr 02 16:26:11 b/c of one word Apr 02 16:26:17 the british HATE when say color Apr 02 16:26:25 Huh. Didn't know that. Apr 02 16:26:34 ya i dont know that either, they probably dont care Apr 02 16:26:38 Most Brits I knew didn't care. =op Apr 02 16:26:55 Or at least, if they did care, they didn't intone that they did. Apr 02 16:27:09 they don't say boot, they say trunk Apr 02 16:27:30 they don't say jumper, they say sweater Apr 02 16:27:34 MetaView: sent! Apr 02 16:27:46 swisstomcat: That's different, though. Apr 02 16:28:03 Just change 'color' to 'hue' lol Apr 02 16:28:10 Hah Apr 02 16:28:16 consider this: an Australian man saying "Beer Can" sounds like a Jamaican man saying "Bacon" Apr 02 16:28:29 JasonLP: Nice way of completely avoiding the problem. =o) Apr 02 16:28:31 texel: the thing why tablet pc's didn't take of is probably because of software and a bit less hardware Apr 02 16:28:55 swisstomcat: i still see your old Moo icon in the catalog Apr 02 16:29:22 codeslaw: there's a bug with caching in the app catalog :( Apr 02 16:29:32 swisstomcat: I agree the software on the tablet PCs was lacking in the past, but that's changed considerably in the last couple of years. Apr 02 16:29:51 lame =( Apr 02 16:30:03 texel: probably not enough .. guess we'll see how the ipad works out Apr 02 16:30:12 codeslaw_atwork: But verbal sounds don't translate to text literally. =op Apr 02 16:30:31 texel: just say beer can in an australian accent Apr 02 16:30:36 lonestar: got it to work? Apr 02 16:30:59 australians say fosters, not beer? ;) Apr 02 16:31:07 codeslaw_atwork: Okay...? I guess I'm not following as to how this has any relation to localization, though. Apr 02 16:31:22 texel: has nothing to do with anything Apr 02 16:31:49 swisstomcat: Personally, I'm waiting for the Courier -- I find the HCI there to be far more researched than what the iPad provides. =op Apr 02 16:32:07 swisstomcat: To say I'm not interested in the iPad, though, would be incorrect. Apr 02 16:32:15 swisstomcat: I just don't think it's a game changer is all. Apr 02 16:32:41 guess we'll see how it works out, texel Apr 02 16:32:42 codeslaw_atwork: I... see. Apr 02 16:32:47 * texel nods Apr 02 16:32:58 courier looks awesome Apr 02 16:32:58 i'd like to see a tablet with webos Apr 02 16:33:01 ipad makes me sad Apr 02 16:33:10 swisstomcat: yes... oh man Apr 02 16:33:31 swisstomcat: Might be interesting, but I honestly can't see shoehorning a UI designed for a small screen to one with a much larger screen as good for usability. Apr 02 16:33:32 although the joojoo-pad video looked a bit like webos Apr 02 16:33:34 swisstomcat: is the following correct http://pastebin.com/mKhmk25x Apr 02 16:33:52 texel: i'd like to try it out and see how it works Apr 02 16:33:58 * texel nods Apr 02 16:34:07 swisstomcat: So... try it! =o) Apr 02 16:34:23 swisstomcat: Shouldn't be hard to throw a hacked up rom onto a beagleboard. Apr 02 16:34:43 that'd be cool to try actually ... i'll let you know when i have time :) Apr 02 16:34:58 Heh -- something that seems to be in very high demand, I'm afraid. =o) Apr 02 16:35:01 lonestar: strings.json looks like this { "color" : "colour" } Apr 02 16:35:29 swisstomcat: and that is all? Apr 02 16:35:30 hello Apr 02 16:35:40 lonestar: that should do it .. pretty easy Apr 02 16:35:43 hi zinge Apr 02 16:35:43 swisstomcat: That one line just made me happy -- very simple. I like it. =o) Apr 02 16:36:09 glad to be of service ;) Apr 02 16:36:16 Anyone here doing PDK plugins for javascript? Apr 02 16:36:49 not yet but i've read about it Apr 02 16:37:05 unwireben is supposed to post a working example soon Apr 02 16:37:08 unwiredben Apr 02 16:37:09 I have a webview widget/javascript question: anyone know how to capture pinch zoom gestures within the webview widget? Apr 02 16:37:11 * texel is waiting for the linux version of the PDK Apr 02 16:37:12 swisstomcat: "resources" directory "en" directory "uk" directory right? Apr 02 16:37:12 Been waiting since the PDK release for a working example. Apr 02 16:37:34 Can't get it to work the way it's documented. Apr 02 16:37:44 lonestar99: i think so .. resources\en works for sure .. i'm using that Apr 02 16:37:45 Google maps does it, but the code is not within the app, its in the page that the app calls via the webview widget Apr 02 16:38:08 and if I go to that page from my desktop browser to try and view the source, it won't load Apr 02 16:38:09 lonestar: resources\en\ca\strings.json Apr 02 16:38:09 beagle board? Apr 02 16:38:14 wth is that? Apr 02 16:38:14 ok let me try that Apr 02 16:38:26 sugardave: developer board with the same proc as the pre .. $149 Apr 02 16:38:27 sugardave: http://beagleboard.org/ Apr 02 16:38:37 ah, thanks Apr 02 16:38:47 sugardave: GIYF. =o) Apr 02 16:39:41 yeah, but you guys are faster or I'm lazy or both Apr 02 16:40:05 sugardave: Heh, well as for the "faster" bit, swisstomcat and I both returned the same answer at the same time, and I used Google to find the address. =op Apr 02 16:40:18 Anyone? How about accelerometer help? I still can't get the dang thing to respond in my app Apr 02 16:40:27 texel: i did from memory :) Apr 02 16:40:39 swisstomcat: Heh -- thus proving that Google is at least as fast as that. j/k Apr 02 16:41:10 lonestar: the book says en_ca and en_uk .. try that too Apr 02 16:41:54 sugardave: Yeah, so the beagleboard is definitely worth looking into if you're hardware-minded. =op Apr 02 16:42:45 I'm not, but it piques my interest occasionally....I stopped my college career before I finished my first EE class, which seemed like it was going to be fun Apr 02 16:43:47 sugardave: So... ...restart it? =op Apr 02 16:43:59 in due time Apr 02 16:44:03 http://webos.pastebin.com/KKauJXyh <- this is my attempt to get the accelerometer to do something. 'accel_data' is just a text div id... Apr 02 16:44:20 Anyone mind looking at it real quick for some kind of stupid mistake? Apr 02 16:44:47 I would, but it's naplunch time.....good luck! ;) Apr 02 16:45:13 sugardave: I hear ya -- I just restarted my college training after more than eight years in the workforce. Apr 02 16:47:11 zinge: this.controller.listen(document, 'acceleration', this.handlerFunction.bind(this)); Apr 02 16:47:18 if you want the raw data Apr 02 16:47:37 orientation change will just give you "left, right" values Apr 02 16:47:43 etc Apr 02 16:49:50 swisstomcat: thanks Apr 02 16:50:54 testing now Apr 02 16:54:49 * texel is seriously considering starting a software dev company that writes apps for mobile devices Apr 02 16:55:07 texel: u should Apr 02 16:55:25 LoneStar99: Why so positive? O.o Apr 02 16:55:37 texel: Let me know when you are hiring developers at exorbitant wages :) Apr 02 16:55:48 Monroe: Hah. =o) Apr 02 16:56:17 LoneStar99: Or put another way, what leads you to think it would be a good idea to do so? Apr 02 16:56:40 * texel is seriously interested in the why Apr 02 16:59:26 codeslaw: thanks.. but it doesn't work if I change it to accleration either. Apr 02 17:00:01 why not everything is gonna revolve around mobiles Apr 02 17:00:12 I can't seem to get anything related to the accelerometer unless I do the free orientation; then the app rotates, but still doesn't seem to update the div inthe event of accelerometer data Apr 02 17:00:36 zinge, are you sure the code you have to update the div is correct? Have you tried just logging? Apr 02 17:01:03 Yeah, but I was told you can't log on-device... and I cant shake the emulator :-) Apr 02 17:01:14 You can log on the device. Apr 02 17:01:35 anyone know any Polish? Apr 02 17:01:42 (also, if I copy and paste the div update to another function, it works fine) Apr 02 17:02:13 LoneStar99: Makes sense. Apr 02 17:02:40 JasonLP: could you give me instructions/link on how to do that? I always seem to have problems actually using the loggin functions, and have switched to updating divs live on the scene to error-check my code Apr 02 17:03:48 You can log on the emulator, correct? Apr 02 17:04:42 Errmmm..... not so much. I'll go google it though.. Apr 02 17:04:50 swisstomcat: awesome works great! thanks Apr 02 17:05:02 time to go to the beach Apr 02 17:05:10 I just remember a couple weeks ago I had this conversation with someone here, and ended up with a couple people agreeing on "logging won't work on-device" Apr 02 17:05:25 which seemed odd, but there was consensus Apr 02 17:05:37 I log on the device all the time Apr 02 17:06:17 I set my logLevel to 99 in framework.config Apr 02 17:06:28 Sorry, framework_config.json Apr 02 17:06:57 JasonLP: wish logging worked for me... had it working once, and never again... Apr 02 17:07:10 And then just do Mojo.Log.error() Apr 02 17:07:22 How do you debug without logging? Apr 02 17:07:26 set Mojo.Log.info = Mojo.Log.error; at the beginning of the js Apr 02 17:07:49 so all your .info become .error on the device Apr 02 17:07:49 JasonLP: syntax errors log, but nothing else works Apr 02 17:07:51 hmm .. no polish speakers eh? Apr 02 17:08:10 JasonLP: alot of time sometimes Apr 02 17:08:53 What is your logLevel? Apr 02 17:09:06 I just do Mojo.Log.error, and everything shows up. Apr 02 17:09:32 I just turned logLevel up to 99, installing to device now. Apr 02 17:09:35 99 Apr 02 17:09:48 According to the webos internals page, I can do "tail -f /var/log/messages" and just watch that while its running, correct? Apr 02 17:10:11 correct Apr 02 17:10:22 any candians here? Apr 02 17:10:34 canadians Apr 02 17:11:46 I love candy ... canada .. not so much Apr 02 17:11:47 :) Apr 02 17:12:08 * Monroe is just kidding about not liking canada Apr 02 17:12:23 Just ran the app while watching tail, and while I'm getting a whole lot of stuff in /messages, none of it is coming from my app Apr 02 17:12:23 Any ideas? Apr 02 17:12:23 framework_config.json has logLevel set at 99 Apr 02 17:13:01 I'm using palm-log Apr 02 17:13:23 palm-log -f automatically tails Apr 02 17:13:57 You can limit output to your app Apr 02 17:14:37 got it... re-running app now... Apr 02 17:15:21 I'm getting absolutely nothing with palm-log -f and my appid Apr 02 17:15:53 zinge, emulator or device Apr 02 17:15:57 Using Mojo.Log.error()? Apr 02 17:16:18 the emulator won't show anything but Mojo.Log.error Apr 02 17:16:26 just "following logs for... on device...", but there are no log entires Apr 02 17:16:26 entries Apr 02 17:16:50 how are you logging Apr 02 17:18:15 Dang, this PDK plugin thing is so frustrating. Apr 02 17:20:15 JasonLP: why? Apr 02 17:20:31 JasonLP: have u gotten any to work with the PDK? Apr 02 17:20:37 Cannot get it to work *at all*. Apr 02 17:20:42 sorry code to work Apr 02 17:20:59 Following all the instructions, and I can't even get a function to return "Hello World" Apr 02 17:21:04 hm Apr 02 17:21:26 I can run the sample PDK app. This is the javascript plugin I'm trying to get working. Apr 02 17:23:38 have not messed with PDK yet, win 64 not supported yet =( Apr 02 17:28:22 laters peeps, time to hit the beach! Apr 02 17:30:10 enjoy Apr 02 17:33:17 oooh, $279 round trip to San Francisco. Not bad! Apr 02 17:34:15 From where? Apr 02 17:37:37 you CAN log on device now Apr 02 17:37:54 after 1.3.5 or 1.4.0 Apr 02 17:38:17 have to set sysloglevel on the device, tho Apr 02 17:38:34 look at doc for palm-log to see how. Apr 02 17:38:55 zinge Apr 02 17:44:30 This is probably bad, huh? minicore_launch: CRASH! Apr 02 17:44:38 lol Apr 02 17:45:06 Well, I'm making progress…my app no longer ignores my PDK plugin. It's causing the entire device to brick. Apr 02 17:45:15 i don't suppose adora is in here Apr 02 17:48:14 WTF Apr 02 17:48:24 I have a widget with the following setup: Apr 02 17:48:28 this.controller.setupWidget('systemSounds', { modelProperty: 'SystemSounds', trueValue: 1, falseValue: 0 }, this.profile); Apr 02 17:48:43 it's a toggle button Apr 02 17:49:15 when I toggle the button of, this.profile.SystemSounds gets set to false ... why not 0? Apr 02 17:49:38 err s/of/off Apr 02 17:50:14 good question, but what do you care, just test against false... Apr 02 17:50:42 If I have a webview widget named skywindow, why does't this: "this.controller.get('skywindow').reloadPage();" work? It says object html div element has no reload method... Apr 02 17:50:57 cause I'm storing as an integer in the DB ... I can test for false and store as 0 no problem. But I'm just wondering why the trueValue is working but the falseValue is not Apr 02 17:52:24 * Tibfib keeps trying to backspace words on his computer with shift+backspace Apr 02 17:53:10 zinge -- it SHOULD work, which makes me think that you have two div's named skywindow Apr 02 17:53:36 Ah figured it out Apr 02 17:53:49 do tell Apr 02 17:53:54 gotta use strings for trueVAlue and falseValue Apr 02 17:54:11 this works: Apr 02 17:54:22 this.controller.setupWidget('systemSounds', { modelProperty: 'SystemSounds', trueValue: "1", falseValue: "0" }, this.profile); Apr 02 17:59:25 hey hi,, please tell me how can i override the functionality of edit options in the application menu for my application Apr 02 17:59:27 ? Apr 02 17:59:55 Rick_work: nope, just the one. It's the only thing in that scene besides the header Apr 02 18:00:13 zinge, pastebine the scene and the code? Apr 02 18:00:25 rohit1 -- what is it you're wanting to do? Apr 02 18:01:51 rick-work : actually i'm porting a javascript spreadsheet kind of application. The edit options currently work for cut copy pasting contents of a single cell of my app by default Apr 02 18:02:02 ok Apr 02 18:02:06 nodnod and.... Apr 02 18:02:19 so i want to customize it so that i can use it for multiple cells at a time Apr 02 18:03:08 ahh... you're going to need to LEAVE the options as they are, and add a "Copy Cells" choice. Apr 02 18:03:43 as in you mean that's not possible using the already existing buttons? Apr 02 18:04:00 tht's exactly what I mean. Apr 02 18:04:15 the existing stuff is restricted to working WITHIN fields. Apr 02 18:04:17 ok,, Apr 02 18:04:19 Rick_work: http://webos.pastebin.com/tjq2d1JP <-- scene Apr 02 18:05:18 ohkay,, is there any way i can remove edit options from the application menu then? Apr 02 18:05:45 http://webos.pastebin.com/TpehjHq4 <--- assistant (there's other stuff in there that I'm working on, so you can ignore other things that are broken) Apr 02 18:05:48 Palm refuses to allow you to do that. Palm INSISTS that they be there. Apr 02 18:06:10 That seems... ...suboptimal? Apr 02 18:06:28 Any idea what the reasoning behind that is? Apr 02 18:07:03 No one knows. But they absolutely do, they reject apps on it all the time, even GAMES must have the edit choice, although it may be disabled. Apr 02 18:07:18 ok.. i thought if i can add my own edit button there and write the functionality there,, because my app already has copy cell option.. just that two similar options will tend to confuse the user Apr 02 18:09:23 nodnod Apr 02 18:09:44 zinge -- I'm confused too. It does load the first time? Apr 02 18:12:48 Sorry, got disconnected again Apr 02 18:12:57 Happens every once in a while on this bus. Apr 02 18:13:06 Rick_work: were you able to take a look at the webview thing? Apr 02 18:13:23 zing, does it load the first time? Apr 02 18:14:22 The webview widget? Yeah, it loads fine, and the Mojo.log for the progress works fine as well. Apr 02 18:14:50 try $('skyview') instead of this.controller.get Apr 02 18:15:00 just for a moment... Apr 02 18:16:30 ok Apr 02 18:18:15 "cannot call method 'reloadPage' of null" Apr 02 18:19:59 drat. my next app is alreafy in the catalog. Apr 02 18:20:00 so, it's contending that the object does not exist. Apr 02 18:20:41 zinge are you one of the people for whom inspector ever works? Apr 02 18:21:28 haeffb_pre what app? Apr 02 18:21:49 my next app idea... Apr 02 18:21:55 Congress Apr 02 18:22:04 voting patterns? Apr 02 18:22:27 Rick_work: not sure, never tried it Apr 02 18:22:57 zing, you need to run the app as inspectable, and then try inspecting it, and see if you can find the object. Apr 02 18:23:04 My goodness I hate prototype. >=o( Apr 02 18:23:13 What am I doing wrong here? Apr 02 18:23:19 everything Apr 02 18:23:20 (lemme pastebin it) Apr 02 18:23:30 jk post it Apr 02 18:24:04 How do I run it as inspectable? Apr 02 18:24:41 http://pastebin.com/qtNJYnB7 Apr 02 18:24:57 oh wait... does it need to be run on the emulator? Apr 02 18:25:00 I'm getting an exception on the emu that UE_Baddie.BADDIE_BOUNDS is undefined. Apr 02 18:25:09 Yet in Chrome it works fine. Apr 02 18:26:19 I can't run the emulator atm... if I try to keep that open along with eclipse, a couple browser tabs, and some other random things, itll kill my machine. My laptop doens't like running the emulator unless its plugged in, and I'm on a bus with no power outlets for another 4 hours. Apr 02 18:26:20 looks like all sorts of info Apr 02 18:26:37 later then. sorry. Apr 02 18:26:54 okay, thanks. Apr 02 18:27:00 Any ideas on the accelerometer thing? Apr 02 18:27:24 good thing all app purchases are business expenses now. $4.99 is kinda steep. Apr 02 18:27:41 Agreed. Apr 02 18:27:50 Isn't that on par, though, with the iPhone store? Apr 02 18:28:16 I've updated that pastebin with an excerpt of the UE_Rect class, btw. Apr 02 18:28:18 http://pastebin.com/tQiUpzVa Apr 02 18:28:37 * haeffb_pre has never seen an iPhone store... Apr 02 18:33:54 codeslaw_atwork: go my mail? Apr 02 18:34:01 MetaView: yes, thanks much Apr 02 18:34:16 email me anytime you need some graphics Apr 02 18:34:33 ok, I will :) Apr 02 18:35:54 guh... I give up. I'm not really getting anywhere, and my battery is starting to die... thanks for the help! Apr 02 18:36:12 SUCCESS!!!!! Apr 02 18:57:54 any native spanish speakers? Apr 02 18:59:32 error: Uncaught Error: INVALID_STATE_ERR: DOM Exception 11, app/assistants/main-assistant.js:126 Apr 02 18:59:35 means what? Apr 02 19:03:57 MetaView: INVALID_STATE_ERR (11) Apr 02 19:03:58 If an attempt is made to use an object that is not, or is no longer, usable Apr 02 19:10:18 Wow. So I found out what the problem is. Apr 02 19:10:27 Apparently UE_Rect isn't defined at the time UE_Baddie loads. Apr 02 19:10:39 halfhalo_class: did you present your app? Apr 02 19:11:00 yeah Apr 02 19:11:11 halfhalo: how'd it go? Apr 02 19:11:15 app for school? Apr 02 19:11:21 App for work Apr 02 19:11:26 it was.... interesting Apr 02 19:11:29 mmm Apr 02 19:11:36 i had to present my app at work as well Apr 02 19:11:41 though it had nothing to do with work Apr 02 19:11:57 They liked it even in the broken format with the shiny stuff Apr 02 19:12:17 halfhalo: Good to hear. =o) Apr 02 19:12:24 BUT when I was talking with my boss(es) after about what needs to be done.... Apr 02 19:13:10 The app was basically a rsvp system for Tours and Events Apr 02 19:13:24 With a tour a custom type of an event Apr 02 19:14:13 Does anyone know where printf goes to when running in PDK? Apr 02 19:14:15 BUT apparently my dept has been getting requests for custom event registrations for over 2 years Apr 02 19:14:19 Or fprintf(stderr) Apr 02 19:14:41 so now thats being taken out and being made its own big arse project Apr 02 19:15:02 good job Apr 02 19:15:06 JasonLP: Most likely? Nowhere. You're writing an NSAPI plugin -- I don't think std* are defined. Apr 02 19:15:43 Bummer. Apr 02 19:15:44 std is defined. If you are on a mac and run from the terminal printf outputs to the terminal. Apr 02 19:15:55 I don't know about Windows though... Apr 02 19:15:57 I'm not running from the terminal though. Apr 02 19:16:10 It's running in the context of an SDK app Apr 02 19:16:26 Ah, as a plugin. I don't know about that. Apr 02 19:16:34 I think texel is right. I'll need to figure out a better solution for logging. Apr 02 19:16:44 JasonLP: Doesn't the PDK provide logging funcs? Apr 02 19:16:48 * texel would think it would. Apr 02 19:16:52 hahaha Apr 02 19:16:53 Does it? I didn't see... Apr 02 19:17:06 there people go, being a ll logical Apr 02 19:17:09 Heh Apr 02 19:17:18 Yeah. I took one look at the PDK and decided to stay away for a while. Apr 02 19:17:35 I have too much to learn first...like C++ Apr 02 19:17:50 I'll reimplement my apps with it down the line once Palm makes it rather clean rather than a random conglomeration of GNU and non-GNU stuff. Apr 02 19:17:55 I MIGHT get to PDK apps in webOS 2 Apr 02 19:17:58 I don't see any kind of logging function. But I can write my own. Apr 02 19:18:12 JasonLP: Try logging to a file or to /dev/log Apr 02 19:18:13 PDK is the only way I will be able to get my app to perform. Apr 02 19:18:27 If you go to /dev/log, it /might/ go to /var/log/messages, assuming some form of syslog is running. Apr 02 19:18:43 I'll try that, thanks texel. Apr 02 19:18:58 it should be a FIFO, in which case you just open it like you would any other file. Apr 02 19:19:12 My other main problem is that I manually have to set permissions on my executable using chmod each time I deploy it. the package.properties solution doesn't seem to work. Apr 02 19:19:51 It's annoying to have to go in and do chmod each time I make a change. Everything else is done automatically. Apr 02 19:20:19 What does your package.properties file look like? I haven't had to chmod anything so far. Apr 02 19:20:42 filemode.755=HelloPlugin Apr 02 19:21:09 That's odd. I'm doing the same thing http://github.com/robmerrell/pdk_chipmunk_test/blob/master/chipmunk_test/package.properties Apr 02 19:21:31 JasonLP: executable? Are you building a .so file? If you are, it's chmod settings shouldn't matter. Apr 02 19:21:51 executable Apr 02 19:21:53 i think Apr 02 19:22:02 There's no extension Apr 02 19:22:05 That seems... ...really really odd. Apr 02 19:22:42 Why? Apr 02 19:23:29 Okay, I'm a moron. Ignore everything I've said. =op Apr 02 19:23:39 Were you talking? ;) Apr 02 19:25:21 Doing the chmod +x on the Mac before deploying doesn't work either. Apr 02 19:26:15 So wait -- you're writing a full screen application, then? Apr 02 19:26:22 Nope. Apr 02 19:26:33 Actually it's code that has no UI at all. Apr 02 19:26:50 Just making calls from Javascript. Apr 02 19:30:45 Is there any way to specify the load order of source JS files? Apr 02 19:35:04 any timeline on when the March report will be available? Apr 02 19:38:47 d'oh, just missed zinge... but in case he checks the logs: logging should work on device, and you should be able to shake the emulator. Apr 02 19:40:31 ola there lemketron Apr 02 19:40:52 hola Apr 02 19:41:05 lemketron: I WAS thriled. Apr 02 19:41:29 ¿Qué tal? Apr 02 19:41:37 Ah, figured out my permissions issue, too! Apr 02 19:41:42 heh Apr 02 19:41:48 * halfhalo heart hulu Apr 02 19:42:17 the localizer info you passed along yesterday Apr 02 19:43:01 but then I remembered I don't know linux and was depressed again. Apr 02 19:45:22 lulz Apr 02 20:05:48 rehi Apr 02 20:07:11 so I've got a mysql question. if you query "select * from table where item='whatiwant'" and there aren't any items that fit that criteria, will the success or failure handler be called? Apr 02 20:07:23 methinks success Apr 02 20:07:57 failure should only be called when the call actually fails Apr 02 20:08:04 okay that would make sense Apr 02 20:08:08 returning nothing is sucess Apr 02 20:08:24 so what would be passed to the success handler? Apr 02 20:08:36 no idea Apr 02 20:08:47 would think either nothing or something that says nothing Apr 02 20:08:57 now, RABLRABLRABLRABL Apr 02 20:09:02 I'll have to test it then. Apr 02 20:09:04 thanks Apr 02 20:16:51 rehi Apr 02 20:18:46 hola Apr 02 21:04:48 yi[ Apr 02 21:04:50 p Apr 02 21:04:52 yip Apr 02 21:06:22 wawawaaaaa Apr 02 21:08:36 hmm? Apr 02 21:10:13 cokeacola Apr 02 21:10:19 yes Apr 02 21:10:22 spelt like that Apr 02 21:19:43 sooo... has palm said why they changed setup to happen AFTER a seen has been pushed? Apr 02 21:20:37 oops, forgot to take french/german screenshots. Apr 02 21:20:38 Tibfib: annoying right? Apr 02 21:20:41 Better do that now. Apr 02 21:21:17 kmudrick: seriously! it ruins the flow Apr 02 21:21:41 it just doesn't seem as nice when you have text or something flash and then hide for a second Apr 02 21:21:50 s/seem/look Apr 02 21:22:50 in your aboutToActivate() call callback.defer() Apr 02 21:24:40 that at least helps to not show a half-rendered page Apr 02 21:24:48 Oh snap Apr 02 21:24:55 I have time to develop this week now Apr 02 21:25:06 think there was thread that mentioned it.. let me see Apr 02 21:27:25 https://developer.palm.com/distribution/viewtopic.php?f=52&t=5531&start=20 Apr 02 21:29:51 my whole team has gone home Apr 02 21:29:55 maybe i too, should go home Apr 02 21:30:14 welcome to my world Apr 02 21:30:47 they do let us drink here Apr 02 21:30:50 so, i'm doing that Apr 02 21:30:55 and i have a TON of asset prep to do Apr 02 21:31:01 but... i am in weekend mode Apr 02 21:31:10 this McBlows Apr 02 21:33:46 kmudrick: interesting, I'll have to use that. thanks Apr 02 21:34:50 yay my chat application is moving along smoothly Apr 02 21:35:32 * halfhalo breaks Tibfib's app Apr 02 21:35:55 * haeffb_pre hadn't noticed setup is differenr Apr 02 21:36:10 * halfhalo havent actually looked at his app in a week Apr 02 21:36:28 * Tibfib cries Apr 02 21:36:39 My work here is done... Apr 02 21:37:14 Which app is that? Apr 02 21:37:31 called mojo messenger Apr 02 21:37:39 or it was :'( Apr 02 21:37:49 Past tense? O.o Apr 02 21:38:11 well it is broken now Apr 02 21:38:24 Ah. Apr 02 21:38:27 Well Apr 02 21:38:30 If it's any consolation: so is mine. =op Apr 02 21:38:32 hmmm Apr 02 21:39:07 I wonder if I can set a cookie via webview and have it be loaded and accessible in an ajax.request Apr 02 21:42:09 halfhalo: so what project are you working on these days? Apr 02 21:42:25 still polishing steamfriends Apr 02 21:42:37 nice Apr 02 21:43:00 Right now seeing if it is possible to use the community login as a way to get a users account Apr 02 21:43:42 hmmm Apr 02 21:44:27 Basically, I want to load up the login page using a webview widget, have that save a cookie, and use that cookie for ajax calls in app Apr 02 21:45:19 most likely not gonna happen, but still, would be cool if it did Apr 02 21:46:04 yeah Apr 02 21:46:13 I'm not sure how you would do that. Apr 02 21:48:37 g'night everyone Apr 02 21:49:47 night swiss Apr 02 21:50:01 cya swisstomcat Apr 02 21:54:11 SPLIT EXPLOSION Apr 02 21:54:17 OMG Apr 02 21:54:28 i'm bailing Apr 02 21:54:33 this place is dead Apr 02 21:54:41 NOOOOOOOO Apr 02 21:54:46 wait, nevermind Apr 02 21:55:03 * codeslaw_atwork nods Apr 02 22:07:52 someone from palm online? Apr 02 22:08:12 DON'T WAKE THE SLEEPING GIANTS! Apr 02 22:08:45 lemketron is though Apr 02 22:08:51 sebastianha: what do you need? Apr 02 22:08:51 ISN'T THAT RIGHT?!?!?! Apr 02 22:10:09 zsoc: I would like to ask someone to push an urgent update for one of my ups so it can get reviewed. There is an app stopper which is not my fault and I would like to see the update as quick as possible Apr 02 22:10:57 sebastianha: Ah, well I'm not sure if anyone who regulars this channel can help you with that. You may want to shoot an email. It's still business hours in Cali Apr 02 22:11:06 mmh Apr 02 22:11:10 thats an idea Apr 02 22:11:13 pdc @ palm.com Apr 02 22:11:14 Its 3:11 in Cali right now Apr 02 22:11:21 Tibfib: thanks Apr 02 22:11:22 No-one wants to do CRAP Apr 02 22:11:30 heh Apr 02 22:47:30 Back gesture in emulator? Apr 02 22:47:49 Esc Apr 02 22:48:34 oh Apr 02 22:48:36 ty Apr 02 22:49:11 :) Apr 02 22:49:34 * pandora-- would like to be starting the weekend now kthx Apr 02 22:50:32 pandora, you have my permission to proceed Apr 02 22:51:58 morning Apr 02 22:52:43 why, yes. it is. Apr 02 22:52:45 or not. Apr 02 22:59:03 bah Apr 02 22:59:06 its only 4pm here Apr 02 22:59:07 Ok, who is mojo savvy? Apr 02 22:59:09 no morning Apr 02 22:59:19 zsoc: depends on what you're lookin for Apr 02 22:59:57 pandora--: i'm try to reverse engineer functionality of the toggle at the top of the listview in the messaging app Apr 02 23:00:17 reverse engineer? Apr 02 23:00:22 replicate it? Apr 02 23:00:27 Er... 'figure out how it works' Apr 02 23:00:28 learn from it? Apr 02 23:00:28 that would be easier Apr 02 23:00:30 heh Apr 02 23:00:35 toggleCmd Apr 02 23:00:39 ot Apr 02 23:00:43 but the actual visual element is part of the background splash Apr 02 23:00:55 How does it make the uh... y'know, the curvy line thing Apr 02 23:01:08 it is a view menu Apr 02 23:01:19 yeah, there's no trickery with that Apr 02 23:01:36 ... a view menu Apr 02 23:01:36 hang, on, I have an app that does the same thing. Apr 02 23:01:47 you can also make it with Apr 02 23:02:08 if you don't need any functions to run when the header/view menu is tapped Apr 02 23:02:22 What makes it correspond to the shape of the background splash? Apr 02 23:02:31
Apr 02 23:02:44 http://developer.palm.com/index.php?option=com_content&view=article&id=1683&Itemid=20 Apr 02 23:02:46 i don't see that in listview.html Apr 02 23:02:55 ok, I read Apr 02 23:02:57 my code might be off.. i can't remember if it is page-header or palm-header Apr 02 23:03:02 then add a view menu Apr 02 23:03:16 then set the width of the elements in the view menu to fill the screen width Apr 02 23:03:18 look at view menu in that link Apr 02 23:03:27 then use the toggleCmd property Apr 02 23:03:40 Ah, so they force the size of the elements Apr 02 23:03:45 Why are they flat on one side? Apr 02 23:04:16 that's just what happen when the buttons 'touch'? Apr 02 23:04:34 right. just a sec, I have the code coming. Apr 02 23:04:44 yeah, they generally used for buttons that belong with each other Apr 02 23:04:57 like next and back Apr 02 23:05:09 http://www.pastie.org/901118 Apr 02 23:05:12 i didn't realize mojo widget set was so ... customizable, that's interesting. Apr 02 23:05:17 so wait, why do they need a splash then? Apr 02 23:05:27 what splash? Apr 02 23:05:43 haeffb: awesome thank you Apr 02 23:05:56 images/splash-messaging-chatview.png Apr 02 23:06:17 oh Apr 02 23:06:20 heck if I know. I didn't use any such thing. Apr 02 23:06:23 thats for loading the app Apr 02 23:06:33 Tibfib: why is it necessary? Apr 02 23:06:45 it isn't... it's just for looks. Apr 02 23:06:49 oh, i see Apr 02 23:06:52 good Apr 02 23:07:15 open up the palm apps and you'll notice a splash screen when the app is loading Apr 02 23:07:30 OH the dark splash in the background, got it Apr 02 23:08:10 use the palm-hasheader to push the rest of your scene content below the view menu Apr 02 23:08:22 haeffb: so, what would go in the corresponding view/scene file to reference that code? Apr 02 23:08:29 oh, palm-hasheader Apr 02 23:08:34 nota dam thing Apr 02 23:08:50 So.. really? Apr 02 23:08:50 hm Apr 02 23:08:51 palm-hasheader just leaves space in the scene Apr 02 23:08:59 yeah, it's that easy Apr 02 23:09:05 so it's all done in the assistant? Apr 02 23:09:06 that is magical Apr 02 23:09:12 heh Apr 02 23:09:14 (but don't tell people how easy it is...we don't need more competition) Apr 02 23:09:20 yeah no joke Apr 02 23:09:40 zsoc: you have to "setup" the widget, the snippet haeffb posted is just the model Apr 02 23:09:40 Don't worry, palm wouldn't accept any of the apps i make into the official catalog anyway :P Apr 02 23:09:57 if ALL the webos-internals people start doing this, us mere mortals would be out of a job... :) Apr 02 23:10:18 haeffb: this isn't exactly my thing :/ i'm partially lost with javascript, and almost entirely lost in mojo Apr 02 23:10:38 I'm _this_ close to just coding everything in C with SDL front ends... but mojo is so sexy looking Apr 02 23:10:43 this.controller.setupWidget(Mojo.Menu.viewMenu, {spacerHeight: 0, menuClass:"no-fade"}, this.viewMenuModel); Apr 02 23:10:50 and Palm would probably frown upon me making a mojo-lookalike widget set for SDL Apr 02 23:11:16 no prob, we're here to help Apr 02 23:11:30 haeffb: seriously, you were just ridiculously helpful. i'm impressed Apr 02 23:12:22 de nada Apr 02 23:12:40 if someone asks for something I've already done, it's easy to help. Apr 02 23:19:03 oh god i'm bad at this Apr 02 23:19:26 we all were once Apr 02 23:19:38 I mean it's a completely grey screen, i really messed something up lol Apr 02 23:19:48 pastebin your assistant Apr 02 23:19:54 probably an error in setup() Apr 02 23:20:09 are you logging? Apr 02 23:20:39 No, i'm going to figure this out :p Apr 02 23:22:19 palm-log? Apr 02 23:22:30 palm-log -d tcp -f com.my.app Apr 02 23:23:23 and change your framework_config.json to include "logLevel":20 Apr 02 23:23:50 ooo logging is nice Apr 02 23:24:24 Mojo.Log.info("Finished Syncing", MyAPP.prefs.lastSync); Apr 02 23:24:50 Mojo.Log.info("Deleted Tasks: %j", response); Apr 02 23:25:25 the second works for a json object, spits out all the details (up to the length limit of strings for palm-log) Apr 02 23:27:55 error: Error: selectedView is not defined, line undefined, file undefined Apr 02 23:29:45 ooohhhh Apr 02 23:29:55 i think i'm telling it to go to a scene that doesn't exist Apr 02 23:30:02 i didn't think i'd get an error till i clicked it, heh Apr 02 23:30:11 So... are 'scene' and 'view' used interchangably? Apr 02 23:30:29 within mojo functions? Apr 02 23:30:35 selectedView is a function? Apr 02 23:30:48 I mean, what is selectedView? Apr 02 23:31:52 that's a good question, i have nothing called selectedView anywhere Apr 02 23:32:00 is that in your command? Apr 02 23:32:30 the string "selectedView" is not found anywhere in my application code Apr 02 23:33:12 hmmm i think it is a error code with your view menu and toggle command Apr 02 23:33:48 like i said, i have it pointing to a scene/view that doesn't exist. i suppose that's the problem Apr 02 23:36:57 OH i see now Apr 02 23:39:14 so, share.... Apr 02 23:42:42 oh, i was dumb and running the wrong version of the application Apr 02 23:50:58 sugardave: ping Apr 02 23:51:26 Bmyers: ping Apr 02 23:51:47 anyone have suggestions for coordinating a bunch of async callbacks? Apr 02 23:52:32 like, I have a sync function that gets info from a web service, and depending on the results, may call any of a number of functions that in turn may call any number of database functions. Apr 02 23:52:44 then, when ALL of that is done, I need to refresh my list view... Apr 02 23:53:35 ...if the list view is active. Apr 02 23:57:31 * haeffb considering Mojo.Controller.appController.sendToNotificationChain() Apr 02 23:58:45 but, now that I read the docs, that's probably not it. Apr 03 00:03:36 Mojo.Controller.StageController.sendEventToCommanders() ? Apr 03 00:04:52 haeffb: error: Error: Cannot call method 'setupWidget' of undefined, line undefined, file undefined Apr 03 00:06:09 probably you're calling this.controller.setupWidget() somewhere that this.controller is undefined. Apr 03 00:16:04 haeffb: oh, that is very likely Apr 03 00:19:18 haeffb: is there any reason i should set this.controller as anything other than activeScene()? Apr 03 00:21:58 haeffb: same error after this.controller=Mojo.Controller.stageController.activeScene(); Apr 03 00:24:49 haeffb: my experiments with synchronizing stuff have been inconclusive thus far Apr 03 00:25:36 oh ok, i'm an idiot, got it Apr 03 00:25:37 zsoc: you shouldn't have to set this.controller. Apr 03 00:26:03 haeffb: you're right, I was calling it in a method (or is it called a function in js?) where it is not defined Apr 03 00:26:38 I call them methods, so that probably means it's function Apr 03 00:26:45 methods are functions of an object Apr 03 00:26:46 or something Apr 03 00:26:55 objects have methods Apr 03 00:27:03 all functions are objects Apr 03 00:27:06 it's all very circular Apr 03 00:28:07 * haeffb should learn the proper terminology before I start trying to teach it to others. Apr 03 00:28:40 haeffb: They are conceptually the same thing. C classically calls 'functions' and java classically calls 'methods'. Apr 03 00:29:56 ok now i'm getting somewhere: warning: WARNING: Mojo.Menu.viewMenu has an undefined model. Did you pass it as the attributes by mistake? Apr 03 00:30:56 setupWidget('widgetID', attributes, model); Apr 03 00:32:02 woo Apr 03 00:32:04 got it Apr 03 00:32:09 haeffb: you are seriously the best Apr 03 00:32:54 you have a shiny new view menu? Apr 03 00:33:03 yes Apr 03 00:33:07 and it's so shiny Apr 03 00:33:09 viewMenu is awesome Apr 03 00:33:39 check this out: commandMenu is just as awesome, but on the bottom of the scene! Apr 03 00:33:47 genius Apr 03 00:33:53 * zsoc trys to think of an app that uses that Apr 03 00:34:06 all of /me's apps Apr 03 00:34:22 email. Apr 03 00:34:33 messaging. Apr 03 00:34:39 ah Apr 03 00:34:44 i see now Apr 03 00:35:08 haeffb: I had to explicitly define viewMenuModel as this.viewMenuModel , is that correct behavior in javascript? Apr 03 00:35:27 if you do Apr 03 00:35:39 viewMenuModel = {some stuff}; Apr 03 00:35:54 then viewMenuModel is a global variable. Which you probably don't want. Apr 03 00:36:07 var viewMenuModel = {some stuff}; Apr 03 00:36:30 then viewMenuModel is a local variable, available only within the current function. (more or less) Apr 03 00:36:40 this.viewMenuModel = {some stuff}; Apr 03 00:37:09 haeffb: I understand the concepts of programming, just not as they relate to js Apr 03 00:37:11 then viewMenuModel is a property of the object represented by this, which in a sceneAssistant is the assistant Apr 03 00:37:47 the js tricky part is if you don't use var, then it's global Apr 03 00:38:36 if you want to reference the model again later, you have to save it somewhere/how, like this.viewMenuModel Apr 03 00:38:58 if you don't care, then you can just setupWidget('id', attribs, {some stuff}); Apr 03 00:39:07 got it Apr 03 00:39:08 odd Apr 03 00:39:52 but, say you wanted to change a label on your view menu...you'd have to save this.viewMenuModel Apr 03 00:40:39 then later, perhaps in response to some user action, this.viewMenuModel.items[0].label = "New Label"; this.controller.modelChange(this.viewMenuModel); Apr 03 00:41:07 i see Apr 03 00:41:22 interesting Apr 03 00:42:09 the framework keeps track of which widgets are using which models, and updates the appropriate widget(s) when you call modelChanged Apr 03 00:43:26 if i want the same viewMenu on multiple (but not all?) stages.. Apr 03 00:43:55 sorry, scenes Apr 03 00:45:12 you can copy the same code to each scene. Apr 03 00:45:14 OR. Apr 03 00:45:17 zsoc: I might use a global in that case Apr 03 00:45:40 you can save the model as a global in stage-assistant, then just include the setupWidget in each scene Apr 03 00:46:10 MyApp.viewMenuModel = {some stuff}; Apr 03 00:46:26 MyApp = {}; Apr 03 00:46:32 first Apr 03 00:46:34 :D Apr 03 00:46:35 but not necessarily in that order. Apr 03 00:46:44 ha, of course Apr 03 00:47:00 just still that in before your stageAssistant constructor, and you're golden. Apr 03 00:47:03 stick Apr 03 00:47:07 s/still/stick Apr 03 00:49:34 * haeffb is going to stop coding and start drinking beer. Responses may become more and more garbled as the evening progresses. Apr 03 00:49:50 oh hey that even works Apr 03 00:49:55 haeffb: i'm 1 ahead of you Apr 03 00:49:59 I would recommend you stop paying attention after 9pm CDT. Apr 03 00:50:04 irssi --enable-beer-filter Apr 03 00:51:28 ooooooook... now to make the viewModel toggle actually _change_ scenes.. Apr 03 00:53:44 in handleCommand function in your stageAssistant, Apr 03 00:53:47 case 'view-add-task': Apr 03 00:54:03 stageController.swapScene('add-task'); Apr 03 00:54:29 haeffb: sometimes i just talk aloud as a whiteboard, i don't always mean it as a question :) Apr 03 00:54:56 * sugardave makes a note: "Ignore zsoc." Apr 03 00:55:02 got it Apr 03 00:55:07 sugardave: try /ignore :> Apr 03 00:55:11 hehe Apr 03 00:56:18 sometimes I give answers to questions that haven't even been asked. Apr 03 00:56:43 do you know swapScene vs. pushScene? Apr 03 00:57:22 haeffb: i understand there is documentation, even if it doesn't always seem that way ;) Apr 03 00:57:33 but no, i assumed pushing was something you did when there was no scene Apr 03 00:57:44 there is a scene stack Apr 03 00:57:58 swapScene to replace the current one in the stack,pushScene to push to the stack Apr 03 00:58:30 if you're wanting to "toggle" scenes, then swapScene is the more appropriate choice. Apr 03 00:59:12 and documentation is for pansies. Apr 03 00:59:32 and only used as a last resort. at least for us males. Apr 03 00:59:43 so pushing a scene can be like... pre.. buffering it? Apr 03 01:00:04 it still replaces the view with the new scene Apr 03 01:00:07 oh Apr 03 01:00:12 it affects what happens with a back swipe Apr 03 01:00:13 not really. it's just putting a new scene on top of the current one. Apr 03 01:00:19 ooohh go tit Apr 03 01:00:30 push, push, push, you have three scenes. Apr 03 01:00:36 back back back Apr 03 01:00:37 got it Apr 03 01:00:45 swap, on the other hand... Apr 03 01:00:47 you don't want the back gesture toggling swapped scenes lol Apr 03 01:00:57 i guess i sort of wondered how it decided that Apr 03 01:01:30 back gesture will popScene()'s until it gets to the last one left, then it will minimize app Apr 03 01:03:10 here's the handleCommand from my appAssistant...so it's slightly different from what you'd need in a stageAssistant, so I'm not really answering any particular questions... Apr 03 01:03:13 http://www.pastie.org/901225 Apr 03 01:03:39 but notice where I've used push vs swap Apr 03 01:05:00 haeffb: i appreciate your help, but you're mildly overenthusiastic. Apr 03 01:05:20 wooohoooo! Apr 03 01:05:55 I've toned it back to "mildly"!!!! Apr 03 01:06:36 haeffb: what app are you making? a task manager? Apr 03 01:06:43 sugardave: I'm wondering if I repeatedly call modelChanged on my list model if that will look 'glitchy' Apr 03 01:07:13 Tibfib: that's from TaskAdder - which adds tasks to Toodledo.com Apr 03 01:07:18 'twas my first app. Apr 03 01:08:24 ah I see Apr 03 01:08:49 I want a todoist client... I might end up making one Apr 03 01:08:53 http://forums.precentral.net/tiger-country-software/199660-taskadder.html Apr 03 01:09:00 todoist? Apr 03 01:09:28 todoist.com Apr 03 01:09:41 how many levels does toodledo go? Apr 03 01:09:56 I actually want a http://www.getitdoneapp.com client. Which I will be making sometime in the near future. Apr 03 01:10:09 for subtasks? just one. Apr 03 01:10:20 aww Apr 03 01:10:40 That's why I like todoist, it goes way deep Apr 03 01:10:59 I use it for my apps, to keep track of updates and such Apr 03 01:11:07 I tried todoist, and it didn't work for me. Apr 03 01:11:31 getitdoneapp doesn't yet have an API. Apr 03 01:11:54 so I'm playing with Toodledo at the moment. Apr 03 01:12:02 how far deep does getitdone go? Apr 03 01:12:09 I can't find it on the website Apr 03 01:12:09 not at all. Apr 03 01:12:25 arg Apr 03 01:12:32 but, it works the way *I* do. Apr 03 01:12:46 todoist has an API, i think I might just make a client for it Apr 03 01:13:15 sweet Apr 03 01:13:46 except that now you're a competitor and therefor dead to me forever. Apr 03 01:13:52 but, other than that, sweet. Apr 03 01:14:08 It's so sad I made a mic api and no one can use it. Apr 03 01:14:36 awesome, their API spits out JSON. Apr 03 01:14:52 makes it much easier to work with Apr 03 01:15:39 hmm getitdone is nice. I'm just too lazy to use it. I need something quick Apr 03 01:25:57 * haeffb wonders how many levels deep you could easily show on a mobile device... Apr 03 01:26:52 3? Apr 03 01:27:11 I keep my task names short Apr 03 01:37:02 how di i manually apply a .patch? Apr 03 01:38:57 how did you? i'm not sure. Apr 03 01:39:25 heh Apr 03 01:39:26 do Apr 03 01:41:34 man patch ? Apr 03 01:41:42 hmm new facebook beta Apr 03 01:42:19 that's what i thought Apr 03 01:42:28 i take it patch isn't installed in webos by default Apr 03 01:43:12 maik: i'd be surprised if it wasn't Apr 03 01:44:07 i'm console'd into the pre right now and patch isn't there Apr 03 01:44:14 at least it's not in $PATH anywher Apr 03 01:44:17 +e Apr 03 01:44:43 funny, because bspatch is lol Apr 03 01:45:04 osnap Apr 03 01:45:42 maik: ./media/cryptofs/apps/usr/bin/patch Apr 03 01:45:57 oh thanks Apr 03 01:51:59 hi all Apr 03 01:53:55 hi Apr 03 01:59:23 Do you have to have a main-assistant? Apr 03 02:02:33 nope Apr 03 02:12:14 where is the thing that controls what scene is pushed when you first start an app Apr 03 02:12:25 oh there it is, n/m Apr 03 02:12:31 4 drinks too many Apr 03 02:22:24 i'd say coding and drinking don't mix, but for webos it could be fun Apr 03 02:22:33 heh Apr 03 02:22:56 coding and drinking = i ask lots of questions Apr 03 02:23:03 ok so first question.. Apr 03 02:23:11 heh Apr 03 02:24:11 is it possible to make 2 simultaneous ajax calls... Apr 03 02:24:35 passing different variables/objects through the life cycle of the call? Apr 03 02:24:48 without them getting mixed up? Apr 03 02:25:53 such as 2 different methods for onComplete: Apr 03 02:26:07 from the 2 separate calls Apr 03 02:27:18 damn oreilly newsreader helping me, um, none Apr 03 02:28:29 i think my question is one of scope/binding Apr 03 02:28:43 my strengths Apr 03 02:28:49 heh Apr 03 02:29:02 question over, lets drink Apr 03 02:42:47 BigBiff: yes Apr 03 02:43:49 yes about scope/binding? or yes the multi ajax is possible? Apr 03 02:46:26 yes about let's drink Apr 03 02:46:41 and multi ajax is possible. Apr 03 02:46:52 how simultaneous do you want to be? Apr 03 02:51:03 http://www.pastie.org/901299 Apr 03 02:52:17 does my problem at least make sense? Apr 03 02:52:37 i'm sure theres a better way to have 2 different methods for onComplete Apr 03 02:52:46 but im new Apr 03 02:52:48 so... Apr 03 02:54:32 perhaps i should just create 2 different ajax instances in the script Apr 03 02:54:45 but that just seems unnecessary and cumbersome Apr 03 02:55:37 maybe this will help: http://www.pastie.org/901303 Apr 03 02:58:03 with this function, I can call my API with a different string (each string tells the API what method to use) and a different callback function for each method Apr 03 02:58:58 and I would call it with something like this.doAPI("stringForMethod1", this.callBackforMethod1.bind(this)); **** ENDING LOGGING AT Sat Apr 03 02:59:57 2010