**** BEGIN LOGGING AT Thu Feb 04 02:59:57 2010 Feb 04 03:02:50 Woot, blog post done early. Feb 04 03:03:10 http://pre101.com/blog/2010/02/03/wednesday-news-roundup-hot-apps-and-webos-quick-install/ Feb 04 03:03:23 Roy-Pre101: early? it's already Thursday afternoon here ... Feb 04 03:03:31 pish tosh. Feb 04 03:03:45 I meant early for me. Feb 04 03:04:11 Hi Roy Feb 04 03:05:42 rick-home: Howdy Feb 04 03:07:33 Hi Rick Feb 04 03:16:05 howdy folsk Feb 04 03:16:12 people Feb 04 03:20:47 anyone ever run into the problem, which copying an IPK to emulator fails? Feb 04 03:20:58 eclipse to emulator Feb 04 03:34:42 LoneStar99: Could be a few things. IPK gotten too big? Feb 04 03:35:39 LoneStar99: do you have the right SDK version installed? Feb 04 03:35:46 palm-install has changed a number of times Feb 04 03:36:10 rwhitby: He's going to emulator so.... it should be same version for palm-install and emulator Feb 04 03:36:34 Roy-Pre101: not necessarily, if the uninstaller wasn't run Feb 04 03:36:47 yeah 1.3.5.368 Feb 04 03:37:21 it just started happening today. after of 2+ weeks Feb 04 03:37:55 com.palm.webos.util.AppManagerUtil$AppManagerException: FAILED_IPKG_INSTALL Feb 04 03:37:55 com.palm.webos.util.AppManagerUtil$AppManagerException: FAILED_IPKG_INSTALL Feb 04 03:38:04 is the errot I get Feb 04 03:38:27 LoneStar99: Check the size of the ipk Feb 04 03:38:41 can it be the emulator got corrupted Feb 04 03:39:27 1988K is the size (party like it's 1988) Feb 04 03:40:09 yo Feb 04 03:42:39 have to delete IPK from emulator each time - before testing changes Feb 04 03:44:04 LoneStar: I have that issue when my emulator and SDK are different versions Feb 04 03:44:21 Uninstalling and reinstalling both fixed it for me Feb 04 03:44:58 Tibfib: it only began happening today after 2 weeks of zero problems with either SDK or emulator Feb 04 03:45:37 thinking the emulator got corrupted, my computer locked up lastnight, that could have caused a corruption i assume Feb 04 03:48:43 LoneStar: you didn't update anything? Feb 04 03:49:35 nothing Feb 04 03:49:38 well then, GL with that... Feb 04 03:50:02 just deleted the emulator reinstalling now Feb 04 03:50:47 sorry the vm Feb 04 03:51:34 don't update vm Feb 04 03:51:44 keep it at 3.10 Feb 04 03:51:46 i won't Feb 04 03:51:47 or something like that Feb 04 03:51:47 yeha Feb 04 04:06:15 emulator gotten corrupted somehow, deleted and reinstalled emulator, works without errors Feb 04 04:08:37 need to listen to a dynamic div "1-5" how would I do that: Mojo.Event.listen(this.controller.get('ywb'), Feb 04 04:19:42 Anyone know if there's a jabber client for WebOS or a patch/hack to make the google talk client connect to my corporate IM jabber server? Feb 04 04:26:45 the pre lacks in the messaging dept Feb 04 04:38:23 evening Feb 04 04:38:54 rbredow: that would be an excellent project Feb 04 04:42:43 there is IM+ for webOS, $9.99 in the app store Feb 04 04:42:48 s/store/catalog/ Feb 04 04:45:52 thanks. I'll take a look at that. (little steep, but if it works well might be worth it) Feb 04 04:47:58 ya, i'm looking at the com.palm.app.messaging source right now to see what i can see Feb 04 05:36:00 Anyone have an example of a list with buttons in it? Feb 04 05:38:18 what kind of buttons? Feb 04 05:38:49 button widgets? or just divs/icons to tap? Feb 04 05:38:59 I just need something clickable. divs/icons to tap would be perfect. Feb 04 05:39:18 I've got a list of levels and I want the user to be able to click the item to play them, or the "edit" div to edit them. Feb 04 05:39:44 I can make it show up in the list, just not clear how I actually make it clickable and know which button was tapped on callback. Feb 04 05:40:55 list rows can be buttons if you simply put x-mojo-tap-highlight="momentary" in the div Feb 04 05:41:52 Right, the list rows are already buttons. I'm looking to add a second button so there are two different actions for each list item. Feb 04 05:42:58 Re-reading that it didn't make sense. The list rows are already click-able. Looking to add an "edit' button to each one too (that does something else). Feb 04 05:44:12 rbredow: I can give you an example. Feb 04 05:44:18 first step: this.controller.listen(this.controller.document, Mojo.Event.tap, this.doListTapHandler); Feb 04 05:44:44 oops: zeroeth step: this.doListTapHandler = this.doListTap.bindAsEventListener(this); Feb 04 05:45:11 Got that. Feb 04 05:46:20 http://www.pastie.org/808917 Feb 04 05:46:54 Aha. The target.id is passed to the tap function. That's the secret I needed. Feb 04 05:47:00 haeffb: Thanks a lot. Feb 04 05:47:15 no prob. Feb 04 05:49:04 anyone know if I can listen to a dynamic div? Feb 04 05:49:49 rbredow: note that if you use the Mojo.Event.listTap rather than .tap, the id is passed in event.originalEvent.target.id Feb 04 05:50:17 LoneStar99: look at that pastie. listen for a tap on document, then switch on id. Feb 04 05:52:34 ok have some similar code, just was not working, let me look harder Feb 04 05:52:59 switch on id what do you mean? Feb 04 05:53:07 maybe that is what I am missing Feb 04 05:53:36 event.target.id Feb 04 05:54:00 your dynamic div's have an I'd...? Feb 04 05:54:13 yes they do Feb 04 05:55:21 div ids = ywb ynw owb and some others Feb 04 05:55:22 switch(event.target.id) Feb 04 05:55:48 do you know what they will be? Feb 04 05:56:25 case 'ywb': Feb 04 05:56:31 ok Feb 04 05:57:13 haeffb_pre: Thanks for the help. event.originalEvent.target.id worked great for me. Nice. Feb 04 05:57:30 that is what i thought I would have to do "if then" or switch case Feb 04 05:57:30 sweet Feb 04 05:58:07 let me work on it abit more Feb 04 05:58:14 switch looks cleaner if you have multiple cases Feb 04 05:59:33 yeah i like switch, for some reason some weeks ago switch was not working so had to use if then... Feb 04 06:02:26 haeffb_pre: what if I do not know the id of the div to listen to? Feb 04 06:04:17 well, that's likely to make it a bit harder Feb 04 06:05:22 why don't you know? Feb 04 06:07:04 for now I only have to manage 10 IDs but with more advancements in my app there may be 20+ div IDs that can be clicked Feb 04 06:08:08 so if there is a way to not have to name the div but listen to "event.target.id" that would be great Feb 04 06:09:25 i think i just answered my own question... brb Feb 04 06:10:22 does "if (!tcID == '')" only work for the one line under it? Feb 04 06:20:02 works for line NEXT to it, under you need {} Feb 04 06:22:39 LoneStar99: if the div doesn't have an id, if you isolate the element another way that can be used to attach the listen. Say you have elements of class myClass and you know that the one you want to listen to is the third myClass. Then you can say elementToListen=this.controller.document.getElelentsByClassName('myClass')[2] and then attach the listener to elementtoListen Feb 04 06:25:01 jfelectron: all divs will have ids, i just do not want to bloat code having to "if then" Feb 04 06:25:30 LoneStar99: where do you need ifs? Feb 04 06:25:34 in the handler? Feb 04 06:29:10 what something like " Mojo.Event.listen(this.controller.get(event.target.id), Mojo.Event.tap, this.send.bind(this)); Feb 04 06:30:34 OK...what doesn't work with that? Feb 04 06:31:05 so you are listening to an event and then creating a listener based on that event? Feb 04 06:31:32 can't imagine what the use case there is :) Feb 04 06:31:44 jfelectron: it might work, i just screwed up my code , need to get it working again Feb 04 06:32:13 ahhh..yeah...I hate that....you throw a monkey wrench and the whole thing ginds to a halt Feb 04 06:34:06 lol, yeah made changes, then on irc, reading tech news, bbc, etc... Feb 04 06:49:38 jfelectron: code with error above: http://pastebin.org/86124 Feb 04 06:49:57 LoneStar99: OK...taking a looksy Feb 04 06:50:58 k Feb 04 06:59:35 LoneSar99: sorry distracted by Flickr API...looking now Feb 04 06:59:52 no problem, Feb 04 07:01:14 its maddening how easy the twitter photo services are but REAL photo sites like flickr and photobucket have overly complex apis for uploading photos and getting the resulting src link back Feb 04 07:01:38 can the flickr api be used in a commercial app? Feb 04 07:01:49 you have to ask permission Feb 04 07:02:07 have only messed with the yahoo search api Feb 04 07:02:42 i like the flickr search api but yeah i imagine the uploading part has quite a few hoops Feb 04 07:03:39 LoneStar99: as long as you don't have huuuge traffic its fine Feb 04 07:03:59 I figure if I have huuuuge traffic I can afford to pay them...but I highly doubt that will happen :/ Feb 04 07:04:36 is that what they say? i just avoided having to ask them :0 Feb 04 07:05:15 dylanmel: actually...its an honor system. They say that if you are a single man/woman company you don't need a commerical license...they actually don't mention traffic Feb 04 07:05:43 I imagine if there is huge traffic using your dev api key, then it will raise some flag and they'll contact you Feb 04 07:06:12 yeah that makes sense. that's very nice of them. Feb 04 07:06:24 it is really..helping the small guys and gals out Feb 04 07:06:36 k Feb 04 07:06:50 photobucket is a bit more restrictive...but they're owned by NewsCorp Feb 04 07:06:50 will look into da api Feb 04 07:07:03 bleh Feb 04 07:07:35 news corp also owns directTV Feb 04 07:07:57 with PB.....ALL mobile applications have to apply for a commercial key...while desktop clients below a certain number of api calls per month are fine without commercial Feb 04 07:08:02 its fubar if you ask me Feb 04 07:09:41 LoneSar99: what's going on with that code? Feb 04 07:10:05 I mean I see the tap event...but I assume that the if statement isn't exectuing? Feb 04 07:12:26 why declae the scID var....just do if (event.target.id) Feb 04 07:12:36 undefined evaluates to false Feb 04 07:14:25 if i do "Mojo.Event.listen(this.controller.get('ywb'), Mojo.Event.tap, this.send.bind(this)); it only works when 'ywb" div is tapped Feb 04 07:15:43 the other two will also work hard coding the div id in "controller.get('ywb')" but Feb 04 07:16:48 when "controller.get(event.target.id) nothing is executed, when clicking on any of the three divs Feb 04 07:18:27 and if you log event.target.id its defined? Feb 04 07:19:57 hmmm.. let me check Feb 04 07:25:13 anyone here? Feb 04 07:27:57 jfelectron: nothing pops out in the logs... what about defining if the length of "target id" is three execute else scram... Feb 04 07:42:58 is there any guide to what icons we can use for command menus? Feb 04 07:43:08 or should i just make my own? Feb 04 07:51:13 Anyone online who's able to send me a copy of WebOS Repair Utility, the official download link is broken. Feb 04 07:55:28 pandora---: there are some built in ones...let me pull up the relevant CSS....I also make my own though Feb 04 07:56:40 pandora--: here they are from global-menus.css: http://www.pastie.org/809012 Feb 04 07:57:02 globex: what platform? Feb 04 07:57:15 ooooh thanks Feb 04 07:57:15 Bell Pre Feb 04 07:57:56 pandora--: you can get some additional customization but defining the background-image for the command menu buttons in your css Feb 04 07:58:15 pandora--: if you want to see an example of that let me know and I'll paste it up Feb 04 07:58:24 i'm also trying to figure out how to center my group Feb 04 07:58:30 it's off to the left... weird Feb 04 07:58:37 pandora--: yeah its a bitch Feb 04 07:58:41 haha Feb 04 07:58:42 want to see how I do it? Feb 04 07:58:51 DOM hackery Feb 04 07:59:58 jfelectron: I just need the WebOSRepairUtility.jar if you have it and have the ability to send it to me. Feb 04 08:00:34 pandora--: http://www.pastie.org/809018 Feb 04 08:01:01 you'll want to replace '.back' with the class of the left or right most-button Feb 04 08:01:36 really? that's the solution?? Feb 04 08:01:39 its a real bitch because if you have command menus in more than one scene in the stack, they're all in the DOM Feb 04 08:01:40 daamn Feb 04 08:03:13 pandor--: you can try using Mojo.Menu.commandMenu.setStyle() ....Mojo.Menu.commandMenu *should* point to the command menu of the current scene Feb 04 08:04:32 globex: damn...just wiped my phone last week...could have sworn I still had the jar..but alas I do not Feb 04 08:04:57 jfelectron: bah :( That's too bad. It's not just me though, right? It's down on the main site? http://forums.precentral.net/canuck-software/204495-webos-repair-utility.html Feb 04 08:06:36 jfelectron: ah sweeeet i figured out a MUCH easier way to center the command menu Feb 04 08:06:50 pandora--: OK, nice how so? Feb 04 08:07:01 just pad the items: with an empty array on the left, and the right Feb 04 08:07:11 where i had {items: [....]} Feb 04 08:07:21 do {},{items: [....]},{} Feb 04 08:07:22 tada Feb 04 08:07:25 centered Feb 04 08:07:34 pandora--: hah..interesting Feb 04 08:07:39 :D Feb 04 08:07:47 pandora--: nicely done Feb 04 08:08:02 i can't take credit for anything more than novaterm'ing into the emulator to look at the Clock app sourcecode Feb 04 08:08:19 i just knew there had to be some decent way of accomplishing it Feb 04 08:08:33 pandora--: its sad...but that is often the best way given the docs available Feb 04 08:08:39 lol Feb 04 08:08:41 yup Feb 04 08:09:24 pandora--: you wouldn't happen to have a copy of the WebOSRepairUtility.jar would you? Feb 04 08:10:11 nopes Feb 04 08:10:17 not even sure what that is Feb 04 08:10:48 bah, oh well Feb 04 08:11:18 pandora--: huh...I actually already have the empty objects on either side...do you have a toggle group or distinct buttons? Feb 04 08:12:31 i have a toggle group Feb 04 08:12:34 doh Feb 04 08:15:33 lol...plugging in your laptop helps Feb 04 08:17:56 pandora--: I push the command menu items into the second item array, which forms a toggle group. It renders off center despite the {} on either side Feb 04 08:18:59 jfelectron: wb :) Feb 04 08:19:15 hmm Feb 04 08:19:18 the ether swallowed me ;) Feb 04 08:19:22 what else do you have in your command menu? Feb 04 08:19:30 i just have one group of two items Feb 04 08:20:39 generally just two items, it depends where I am in the list Feb 04 08:20:58 'back' and 'forward' Feb 04 08:21:56 whatever....my hack centers it...not going to worry about it now Feb 04 08:22:43 lol Feb 04 08:23:12 i padded the outer items Feb 04 08:23:14 not the inner Feb 04 08:23:19 if that was unclear Feb 04 08:23:29 pandora--: oh intersting...lets see if that works Feb 04 08:28:02 dunno....isn't this outer padding? { items: [{}, {items: []}, {}]} that's what I have/had Feb 04 08:28:19 yeah that's what i did Feb 04 08:28:25 and now they're automatically centered Feb 04 08:28:32 yeah....mine ends up off-centered.....grrrr Feb 04 08:28:46 maybe its because I'm tweaking the button class Feb 04 08:29:17 it may be screwing up whatever calculation it does...might buttons are wider than the default ones Feb 04 08:29:43 I just don't like smoke gray...boring and it makes all apps look the same...also boring Feb 04 08:30:00 heh Feb 04 08:31:29 I made my button match my header pills Feb 04 08:31:32 buttons Feb 04 08:32:40 same overall aesthetic...just different palette and more shiny :) Feb 04 08:42:47 do you default one to being selected? Feb 04 08:44:17 jfelectron: that much i haven't figured out yet Feb 04 08:51:17 ah nm, i got it Feb 04 09:06:03 sorry was out Feb 04 09:07:56 pandora--: if you modify the unselected class, you'll want to modify the selected class too otherwise it will look odd Feb 04 09:31:12 wierd question, I have a sound library of 36 small uncompressed wav files, is webOS going to handle precaching these with thier own sound object on app launch? Feb 04 09:41:54 http://twitter.com/webosinternals/status/8626214289 <- X Windows in webOS Feb 04 09:45:41 uh oh Feb 04 09:45:44 :) Feb 04 09:54:06 rwhitby: no waaaay....awesome Feb 04 09:54:26 very early days Feb 04 09:54:52 still exciting stuff...what are the major roadblocks? Feb 04 09:55:37 hmm...intersting....looks like its in an SDL surface? Feb 04 09:55:53 was expecting to see xwin session in place of luna Feb 04 13:31:00 Good mornin'! Feb 04 15:13:34 Is anyone here getting some form of noise out of their speaker when their device is on the touchstone? Feb 04 15:14:09 I am getting some form of noise based on the touchstone or electrical interference with the speaker Feb 04 15:22:10 CTLAdvance: I have not. Feb 04 15:24:40 morning Feb 04 16:15:56 Hey, I need some help. I got feedback on the update to my app that there is a major bug, but I can't reproduce it on my phone or emulators. Anyone willing to install and try my app? Feb 04 16:17:21 Is it just memory loss or what. ? What was the bug reported. but sure, I can probably test it Feb 04 16:17:42 is it free? :D Feb 04 16:18:17 Yup, free. And the problem didn't show up in the version that is released, just in the new one I submitted for update. Feb 04 16:18:33 oh...so you need to send an ipk, then? Feb 04 16:19:00 Yah. FreeTim, sugardave, wanna give me an email address? :) Feb 04 16:19:16 sugardave at gmail Feb 04 16:19:35 gotta find my cable Feb 04 16:19:41 i'm Freetim at mit.edu Feb 04 16:20:16 i'll try as well if you need another. adam at sixohthree dot com Feb 04 16:20:58 Thanks ambackstrom, is it sixohthree or 603? Feb 04 16:22:49 mit, nice. You work there? Feb 04 16:23:12 I graduated from CMU, couldn't afford MIT. Feb 04 16:23:49 lyht: spelled out, sixohthree Feb 04 16:24:21 No, I just own all the buildings. :) Seriously, I work across the street, but have friends in low places Feb 04 16:25:32 Hahahaha, just like the song :) Feb 04 16:26:09 * sugardave is running dangerously low on Dr. Pepper. "Fear the wrath." Feb 04 16:26:28 super! Thanks all. I have sent the email with the ipk Feb 04 16:26:58 hey, I think I have this app :D Feb 04 16:26:59 Yes I got tthis email - thanks for sending Feb 04 16:29:25 Can anyone upload to palm? I always get this: 400 : appinfo.json does not exist in the expected path - IPK malformed -- this is incorrect (the ipk has appinfo.json in there, and when installed on my pre shows the information contained in there) Feb 04 16:29:33 lyht: working perfectly for me Feb 04 16:29:48 everything seems to work for me as well Feb 04 16:30:39 joelp: which IDE do you use? Feb 04 16:31:01 sugardave, ambackstrom, thanks for testing... I dont know what problems Adora was having... Feb 04 16:31:12 lyht: possibly she's on a 1.4 device? Feb 04 16:31:28 mine is 1.3.5.1 Feb 04 16:31:36 I wondered. chuqui any chance Adora is doing any testing in 1.4? Feb 04 16:32:08 any reason why "event.target.id" would not work in "FirstAssistant.prototype.setup = function() {}" Feb 04 16:32:13 lyht definitely possible Feb 04 16:32:39 LoneStar99: you seem to be missing 'event' inside the parentheses Feb 04 16:35:21 I tried to load this via Preware... I thought Preware used to be able to specify a URL ? not any more? Feb 04 16:36:14 FreeTim: hmm...should be able to, though I haven't done it in a long time Feb 04 16:36:56 sugardave: "FirstAssistant.prototype.setup = function(event.target.id) {" Feb 04 16:36:58 mmh, today anyone from palm here who can help me with a submission to the app catalog? The app seems to be published but does not appear in the catalog. I do not get responses on my mails. Feb 04 16:37:14 it does not work and causes error Feb 04 16:37:44 lyht: will take a look in a few mins, ::real:: work is distracting me at the moment Feb 04 16:38:01 FreeTim: super :) Feb 04 16:38:18 sebastianha: what app is it? Feb 04 16:38:27 de.omoco.bibahn Feb 04 16:38:39 sugardave I use eclipse... Feb 04 16:38:42 its in published and beeing reviewed state for weeks now Feb 04 16:38:47 sugardave but I build commandline Feb 04 16:39:23 but not availabe at the catalog Feb 04 16:39:53 http://developer.palm.com/webChannel/index.php?packageid=de.omoco.scancode Feb 04 16:39:57 it is there Feb 04 16:40:00 no Feb 04 16:40:05 i found it in the catalog Feb 04 16:40:07 de.omoco.bibahn Feb 04 16:40:10 not scancode Feb 04 16:41:09 sometimes it takes some time to appear in the catalog after it is approved Feb 04 16:41:21 its weeks ago Feb 04 16:41:30 sugardave using ar -x i see appinfo.json in /usr/palm/applications/com.appname.fake/appinfo.json Feb 04 16:42:24 with scancode i learned that i should described better what the app can do and what not :) Feb 04 16:42:50 question: is there a way to tell if a user has ignored a banner notification? Feb 04 16:43:24 sebastianha: if it has been weeks i would contact palm: or "chuqui" here Feb 04 16:43:34 in irc Feb 04 16:44:21 International Reply Coupon? Feb 04 16:44:26 I mailed him a week ago but no answer since now Feb 04 16:47:20 I'm trying to call a function if the user does not tap a banner notification Feb 04 16:49:39 any ideas? Feb 04 16:50:37 LoneStar99: it's just 'event'....look at all the generated methods in a regular scene Feb 04 16:51:09 joelp: sorry, was going to suggest if you were using komod that your appinfo.json might have gotten trounced Feb 04 16:51:44 sugardave: this is what I am trying to do: http://pastebin.org/86124 Feb 04 16:52:50 LoneStar99: I saw that last night...there's not enough code there to tell me anything Feb 04 16:55:50 sugardave: all i want to do is pass the 'this.send.bind(this)' when either 3 of the divs is tapped instead of having to hardcode the div id " Mojo.Event.listen(this.controller.get('hard-coded') Feb 04 16:56:37 I don't understand why you're using an event listener for a Mojo.Tap to set up another Mojo.Tap event listener... Feb 04 16:57:29 and did you try outputting the properties of the event object to see what you have? Feb 04 16:57:36 it could be currentTarget and not target Feb 04 16:57:48 who knows? only you IF you debug it Feb 04 16:58:36 no ideas for the banner notification thing? it's mentioned on the palm developer page under banner notification that you could do something if the user does not tap the banner, but there's no information as to how. Feb 04 16:59:13 zinge: didn't see your question... but, I don't know the answer, anyway :D Feb 04 16:59:29 lol, okay, thanks Feb 04 17:01:49 zinge: I saw your question, and still dont know the answer. :P Feb 04 17:01:58 how about a way to use a timer in handleLaunch or a dashboard stage? if x is not tapped (banner or dashboard, whichever works) within 30 secs of loading, call y Feb 04 17:02:40 zinge: is it possible to listen to the 'minimize' or whatever happens if they don't acknowledge it? Feb 04 17:02:55 zinge, something like that would work. Feb 04 17:02:56 haeffb_pre is the dashboard expert, btw Feb 04 17:03:25 those are some painful reviews on scancode Feb 04 17:03:45 sugardave: not sure if this helps http://pastebin.org/86309 Feb 04 17:05:15 I was wondering if there was a "deactivate" or "minimize" for banner notifications. Feb 04 17:05:58 for the dashboard, I don't think it automatically calls minimize until they specifically click something else Feb 04 17:06:38 LoneStar99: whta is in the event object? what is in event.target? what is in event.target.id, what is in event.currentTarget what is in event.currentTarget.id? Feb 04 17:06:57 does anyone else /boggle at the description on "PocketMirror Tasks Launcher?" Feb 04 17:07:21 zinge: yeah, you've got me...best bet is to hit up haeffb_pre or Bmyers Feb 04 17:07:28 i have the best luck with event.findElement() Feb 04 17:07:34 the event is firing from an alarm, and I need the user to be able to cancel it if they are around, but otherwise it needs to continue regardless of what state the phone is in, whethers it's locked or on or touchstone, etc. so Feb 04 17:07:36 ok, thanks Feb 04 17:08:08 zinge: banner notification or dashboard? Feb 04 17:08:11 ambackstrom: Forgot to state out in the description that barcodes are very hard to get and disappointed the most users. My failure. Feb 04 17:08:14 dylanmei: oh? it just returns the real element? Feb 04 17:08:32 sebastianha: well, you learned something, anyway :D Feb 04 17:08:42 sugardave: yes Feb 04 17:09:23 haeffb_pre: banner if possible Feb 04 17:09:26 it returns the nearest element to the event that matches the selector. so if you put your handler on a UL you can get the text of the LI that triggered the event as event.findElement('LI').innerHTML Feb 04 17:09:40 dylanmei: nifty, thanks! Feb 04 17:09:59 :) Feb 04 17:10:00 why is it when debugging i see very damn error, except "Mojo.Log.info("<< if from the dashboard, I need a way to have a timer that fires after x time, not when the dashboard minimizes, because that takes user interaction Feb 04 17:10:50 LoneStar99: you didn't put it in your if clause did you? Feb 04 17:11:09 zinge: not sure. sugardave may have oversold my guru status... Feb 04 17:11:14 doh Feb 04 17:11:20 haeffb_pre: letting me down Feb 04 17:11:43 heh Feb 04 17:12:18 I just figured there has to be a way to do it since it's specifically mentioned on the palm dev site Feb 04 17:12:22 nope wide open... it happens with all my code can never really debugg shit, b/c "Mojo.Log" does not appear Feb 04 17:12:35 try console.log Feb 04 17:12:43 console.log('WHATEVER'); Feb 04 17:13:19 would try using a setTimeout, save to a global var, then in appAssistant, clear the timeout if you get the launch params that indicate the user tapped the banner... Feb 04 17:13:28 ls99 you should try event.element() or event.findElement() instead of event.target Feb 04 17:14:36 if I'm understanding what you want to do. Feb 04 17:16:02 have the following: framework_config.json {"logLevel":99," timingEnabled":true,"logEvents":true,"debuggingEnabled":true,"escapeHTMLInTemplates":true} Feb 04 17:16:07 how long do I have the setTimeout for though? the banner might take a while to show if it's cued behind other banners... Feb 04 17:17:09 ls99 i believe its not working because event.target is unreliable and then calling .id on it is breaking your code Feb 04 17:17:52 zinge: good question. Feb 04 17:18:51 Mojo.Log.info('target id' Feb 04 17:19:04 Mojo.Log.info('target id', event.element().id) Feb 04 17:19:25 dylanmei: "event.target.id" works in other part of my code, but not in setup for some odd reason Feb 04 17:19:33 oh Feb 04 17:19:34 duh Feb 04 17:19:36 it's in setu Feb 04 17:19:38 setup Feb 04 17:19:56 put it in activate and see what happens Feb 04 17:19:57 the prototype people recommend event.element().id and i have had similar problems with .target Feb 04 17:21:20 just frustrating; seems the more work i put into this stupid app, the worst it sells.... Feb 04 17:21:39 lonestar99: event is undefined in your setup() Feb 04 17:21:45 LoneStar99: how would you possibly be getting a Mojo.Tap event into the setup function? Feb 04 17:22:17 thats not the setup Feb 04 17:22:34 zinge: do banners queue behind banners from other apps? or only your own? Feb 04 17:23:18 they queue behind any banners not in the same category, supposedly Feb 04 17:23:43 so all apps Feb 04 17:24:21 handling an event on the parent element. from there binds to a child element. do i have that right? Feb 04 17:24:22 not really sure about anything, - can't properly debug nothing shows up, damn app sells like shit, not sure what to do... Feb 04 17:25:04 LoneStar99: I wasn't paying attention. What app is it? Feb 04 17:25:08 to much effort and to little return, can't make a free app, cuss I am already broke Feb 04 17:25:09 LoneStar99: nothing shows up because event is undefined Feb 04 17:25:10 in setup Feb 04 17:25:33 class is starting; gotta run. thanks for the help Feb 04 17:26:10 Lonestar99: set your event listener for a tap event on the document, not on individual divs. Feb 04 17:26:58 then, in the event handler, see if the target is one of the divs you're interested in. Feb 04 17:27:51 sugardave: he's trying to avoid creating event listeners for 'dynamic' divs. Feb 04 17:29:20 okay... Feb 04 17:29:42 but then he wants to go ahead and create them? Feb 04 17:30:42 I guess I'm just confused by his design....I wouldn't put it in handleCommand, personally Feb 04 17:32:16 regardless, it is now naplunch time Feb 04 17:35:53 thanks for all the help guys, just starting to realize my apps will never really sell, need to start looking into other options Feb 04 17:43:20 LoneStar99: which app? Feb 04 17:46:34 take a break, clear your mind, come back and then soldier on dude! Feb 04 18:14:29 lyht: nice, palm mentioned your 8ball app on the official blog Feb 04 18:19:24 hi Feb 04 18:19:57 I've just downloaded a homebrew webos app that appears to have the source in it. how do I best extract the source from the ipk? Feb 04 18:20:11 I'm running Ubuntu -- it looks an awful lot like a deb. Feb 04 18:26:54 jml - all webos apps have the source in them. Feb 04 18:27:20 jml you can untar an ipk and drill down to the application in the data path. Feb 04 18:27:53 Rick_work, thanks Feb 04 18:28:10 is there a reasonably standard way to arrange a webos app in version control? Feb 04 18:28:13 jml however, if the app is not licensed as open source, and if folks catch you making inappropriate use of the source, then expect to catch a huge pile of flack from folks around here who take licenses VERY VERY SERISOUSLY Feb 04 18:28:36 Rick_work, this is MIT Feb 04 18:28:43 then no problem Feb 04 18:28:50 and re version controll.... Feb 04 18:29:01 other than the images folder, it's all text. Feb 04 18:29:07 Rick_work, I'm involved a fair bit with the Ubuntu community, I know something about folks who take licences seriously :) Feb 04 18:29:23 heh Feb 04 18:56:54 ambackstrom: Where? Feb 04 18:59:43 oh, there it is. funny! Feb 04 20:23:30 is there a list with all available preferences over the system service Feb 04 20:26:45 Rick_work: can you by chance divulge whether or not we can expect raw bitmap data, or a dataURL, from the canvas at any time? Feb 04 20:27:00 icncod Feb 04 20:29:58 someone know more about the setPreference system? Feb 04 20:30:09 more than what? Feb 04 20:31:26 https://developer.palm.com/distribution/viewtopic.php?f=9&t=3788 Feb 04 20:32:18 is there a list with the keys, is it best practice to use it? Feb 04 20:38:27 https://developer.palm.com/distribution/viewtopic.php?f=9&t=3788 Feb 04 20:38:41 sry Feb 04 20:39:29 Rick_work: icncod? Feb 04 20:44:42 = i can not comment on discussion? i can never clean on drugs? if careful, never care or decide? Feb 04 20:45:00 i can neither confirm or deny. Feb 04 20:45:57 Rick_work: could you say something about the service system or should i just drop the thought Feb 04 20:46:29 could = would you plz Feb 04 20:47:42 wodar, If you can identify keys, I think you can use them. Feb 04 20:47:59 I -think- this is a documentation failure not an closed api Feb 04 20:48:02 but Im not sure. Feb 04 20:48:18 ah ok thanks so i start digging Feb 04 20:48:37 read code Feb 04 20:49:09 ping rick Feb 04 20:49:17 pong Feb 04 20:49:45 Rick_work: without using bitmap data, do you know of any possible way to store a canvas tag that is larger than the screen as an image? Feb 04 20:50:04 codeslaw_ nope. Feb 04 20:50:23 ya, didn't think so Feb 04 20:51:00 being new to real JS development, figured i'd double check Feb 04 20:53:54 What's the best way to grab the contents of a remote file, Ajax? Feb 04 20:55:22 codeslaw Feb 04 20:55:39 Wasnt I saying this to you the other day ;) Feb 04 21:00:14 What's the best way to grab the contents of a remote file? Sorry if this is a newb question. I'm looking for the equivalent of php's file_get_contents( url ) Feb 04 21:00:44 ajax? Feb 04 21:07:08 codeslaw: that's what I've been trying to use but i'm not getting the responseText. Does ajax in webos allow cross domains? Feb 04 21:09:57 I mean, I am able to run ajax against other domains, but the app has to be an app not a webapp Feb 04 21:10:10 meaning it runs locally Feb 04 21:10:31 By default webkit browsers dont usually allow that as its not standard to do so Feb 04 21:11:42 hmm, it's an app. maybe I'm using it wrong. I'm not getting the responseText property at all. status is 200 so it acts like it worked. Feb 04 21:13:20 Just so I understand, I'm builing a Mojo app and the file I need is elsewhere on the internet... that's allowed right? Feb 04 21:13:54 yes, but it will only work as a resource for your app Feb 04 21:14:06 you need the download manager to download it to the device as a local file Feb 04 21:14:22 Jim462 yes, that's allowed. What is it you're trying to accomplish? Feb 04 21:14:36 ah, so i download the file then read it with ajax? Feb 04 21:14:55 it's a FILE, not a dynamic ajax response? Feb 04 21:15:00 I'm trying to read the contents of an iCal file so I can parse it. Feb 04 21:15:45 that you can do with an ajax request to the remote server and get the result into response.txt Feb 04 21:17:20 Rick: that's what I thought but for some reason I get no responseText. I can open the file in a browser so I know it has content. status is 200, statusText is OK, so I don't get it. Feb 04 21:18:40 Jim462 what does your onsuccess say? Feb 04 21:19:23 So far all I have in onSuccess is Mojo.Log.logProperties( transport ); Feb 04 21:19:37 uh Feb 04 21:19:53 and does it just say "object" ? Feb 04 21:20:35 Here's the log: Feb 04 21:20:37 [20100204-14:20:00.464083] info: Properties in object [object Object]: Feb 04 21:20:38 [20100204-14:20:00.464457] info: transport.request = [object Object] Feb 04 21:20:40 [20100204-14:20:00.464817] info: transport.transport = [object XMLHttpRequest] Feb 04 21:20:41 [20100204-14:20:00.465038] info: transport.readyState = 4 Feb 04 21:20:43 [20100204-14:20:00.465306] info: transport.status = 200 Feb 04 21:20:45 [20100204-14:20:00.465542] info: transport.statusText = OK Feb 04 21:20:46 [20100204-14:20:00.470376] info: null Feb 04 21:20:48 [20100204-14:20:00.470725] info: transport.headerJSON = null Feb 04 21:20:49 [20100204-14:20:00.470964] info: transport.responseXML = null Feb 04 21:20:51 [20100204-14:20:00.471199] info: transport.responseJSON = null Feb 04 21:21:36 try transport.transport.responseText Feb 04 21:21:47 or just do logProperties of transport.transport Feb 04 21:21:50 undefined Feb 04 21:22:11 transport.transport is undefined? Feb 04 21:23:32 Here's transport.transport: Feb 04 21:23:34 [20100204-14:22:53.131293] info: Properties in object [object XMLHttpRequest]: Feb 04 21:23:35 [20100204-14:22:53.131714] info: transport.status = 200 Feb 04 21:23:37 [20100204-14:22:53.131951] info: transport.onload = null Feb 04 21:23:38 [20100204-14:22:53.132188] info: transport.statusText = OK Feb 04 21:23:40 [20100204-14:22:53.132463] info: transport.readyState = 4 Feb 04 21:23:42 [20100204-14:22:53.132813] info: transport.responseXML = null Feb 04 21:23:43 [20100204-14:22:53.138313] info: null Feb 04 21:23:45 [20100204-14:22:53.138673] info: transport.onreadystatechange = null Feb 04 21:24:45 Jim462 that's weird. Feb 04 21:24:56 can you pastebin the ajax request ? Feb 04 21:25:26 i know. what the null? i wonder if that's where responseText is supposed to be. Feb 04 21:25:55 trnasport.responseText is supposed to be where the reppsonse text is. Feb 04 21:25:59 that's just weird. Feb 04 21:26:05 can you please pastebin your code? Feb 04 21:26:56 var req = new Ajax.Request( "http://www.vgdates.com/calendar/xbox-360/", Feb 04 21:26:57 {method: 'get', Feb 04 21:26:59 contentType: 'text/plain', Feb 04 21:27:01 onSuccess: function( transport ) { Feb 04 21:27:02 Mojo.Log.logProperties( transport, "transport" ); Feb 04 21:27:04 this.iCal = transport.responseText; Feb 04 21:27:05 }, Feb 04 21:27:07 onFailure: function() { Feb 04 21:27:08 Mojo.Log.info( "*** Could not get list." ); Feb 04 21:27:10 } Feb 04 21:27:11 } ); Feb 04 21:27:14 Jim462: webos.pastebin.com please Feb 04 21:27:39 Jim462 please paste into webos.pastebin.cm and paste back here the resulting url. thanks Feb 04 21:28:01 sorry, what is webos.pastebin.com? i'm new. Feb 04 21:29:10 sugardave: Preware has never been able to specify a random URL, and probably never will, since that breaks the security model. Feb 04 21:29:39 I think I figured it out. sorry bout that. Feb 04 21:30:39 Jim462 ok, well, the first thing I would do is specify the REST of the URL Feb 04 21:30:58 I would add VGdates-xbox-360.ics to the url so it isn't being redirected Feb 04 21:31:08 ajax requests don't nessesarily follow redirects. Feb 04 21:31:12 you need to be specific. Feb 04 21:32:59 you're going to want http://code.google.com/p/ijp/ too once you have the ical file. Feb 04 21:34:24 Jim462???? Feb 04 21:34:29 Adding the file name didn't work, but I see what you mean. Hmm, I think I need to contact the guy and find out if there is a direct link I can use. Already have ijp :) Feb 04 21:35:22 jim try wget Feb 04 21:35:28 if you can wget it you can ajax it Feb 04 21:35:30 :-) Feb 04 21:35:48 Good idea Rick, thanks. Feb 04 21:40:48 bbl -- got to go out and pick up a package. Feb 04 21:52:37 oikay, I gotta say it again. if you are going to call someone a moron or a retard, SPELL IT RIGHT. Feb 04 21:53:23 hahahaha Feb 04 21:56:21 chuqui - well said Feb 04 21:59:18 is there a way to find out what version of webOS someone is running? Feb 04 21:59:38 in an app that is Feb 04 22:00:23 yo peeps....how do you generate the little scrolling banner messages like Preware ('Feeds Updated!') and Email ('Sending Message') do? Feb 04 22:02:22 jfelectron: Mojo.Controller.getAppController().showBanner({messageText: "You are running the latest version"}, "launchArguments","myCategory"); Feb 04 22:02:49 Oh scrolling? Feb 04 22:03:31 wait... no what I said should work. Feb 04 22:03:48 Tibfjb: Tifbib: yeah it scrolls in from the right Feb 04 22:04:02 Thanks! Feb 04 22:04:02 man, there are days when I really LOVE excel Feb 04 22:04:58 chuqui: morans is also correct spelling, fyi Feb 04 22:05:55 jfelectron: you are trying to get it to scroll in from the right? or you arent? Feb 04 22:06:25 Another banner type question. Can you generate multiple messages for different things that instead of stacking on top of one another and changing the Number of message (1,2...) are discrete things that can be clicked on? Feb 04 22:06:36 Tibfig: well that's the behavior Preware and Email have Feb 04 22:07:13 Lol... is it that difficult to type "Tibfib"? Feb 04 22:07:22 :P Feb 04 22:07:44 Tibfib: no I'm just a horrible typist Feb 04 22:08:36 I wish IRC clients had autosuggest based on whose on the channel Feb 04 22:08:47 that would be sweet Feb 04 22:08:55 or maybe there are some that do...just not Colloquy Feb 04 22:09:03 is there a way to find out what version of webOS a user is running? Feb 04 22:09:51 natenbr9: Mojo.Environment.build Feb 04 22:10:33 jfelectron: tab is that broken in Colloquy? Feb 04 22:10:42 jfelectron: wie Feb 04 22:10:54 wirc does. sometimes. Feb 04 22:11:09 swishy: oh damn...no that works :) Feb 04 22:11:16 icechat does Feb 04 22:11:18 hehe Feb 04 22:11:24 * swishy thought it should have Feb 04 22:11:30 good god, that's going to save me a lot of typing and typos Feb 04 22:11:33 jfelectron: cool, thanks Feb 04 22:12:02 jfelectron: apparently you weren't the first person to wish for that...:) Feb 04 22:12:55 jfelectron: you may need dashboard rather than banner Feb 04 22:12:55 yeah...but what happens when there is ambiguity like haeffb AND haeffc? Feb 04 22:13:06 tab tab Feb 04 22:13:12 oh multiple tab cyles through....yup Feb 04 22:13:20 tab tab tab Feb 04 22:13:23 OK...so its BASH like Feb 04 22:14:25 or a banner that launches a dashboard Feb 04 22:15:22 I haven't played with it, but I think you can have multiple banners displayed if you use diff categories. Feb 04 22:15:51 I want a full launch to different scene...OK yeah categories, I'll look into that...thanks! Feb 04 22:17:26 haeffb_pre: yes, categories is what I wan...."The category parameter defaults to 'banner'. New banners of each category will replace existing banners of the same category." Feb 04 22:18:00 how does one make a scene transparent? Feb 04 22:18:11 background-color: transparent Feb 04 22:18:22 yeah doesnt work Feb 04 22:18:26 in Ares at least Feb 04 22:18:33 there is still the body background color Feb 04 22:18:39 oohh Feb 04 22:19:29 I would have thought that was what you were changing the value on in Ares if you have no elements in the scene? Feb 04 22:19:58 swishy: do this in activate... this.controller.document.getElementsByTagName('body')[0].setStyle({backgroundColor: transparent }); Feb 04 22:20:29 can't speak to Ares...don't use for development, just debugging (majorly sweet for that :) ) Feb 04 22:20:38 ahh ok Feb 04 22:20:56 I think it will still be white though Feb 04 22:21:07 ahh thats not cool Feb 04 22:21:17 jfelectron: type that again! Feb 04 22:21:18 I don't think you'll get the checker pattern like the browser Feb 04 22:21:24 jfelectron: I want to show the scene behind the scene im popping up Feb 04 22:21:35 haeffb_pre: lol...that was a C&P Feb 04 22:21:36 oh you mean in preview? Feb 04 22:21:56 swishy: wtf? OK...that's a new one :) Feb 04 22:22:06 paste it again. I think it made wirc transparent! Feb 04 22:22:07 yeah for example Feb 04 22:22:31 haeffb_pre: this.controller.document.getElementsByTagName('body')[0].setStyle({backgroundColor: transparent }); Feb 04 22:22:40 jfelectron: in iQk iPhone we have semi transparent views that show the main game view behind Feb 04 22:23:04 ok maybe just my imagination... Feb 04 22:23:05 jfelectron: and just have the like prefences controls etc shown in the view Feb 04 22:23:14 swishy: not sure that alpha transparency of cards is supported like that for cards Feb 04 22:23:25 the underlying scenes aren't really visible Feb 04 22:23:26 jfelectron: so I want to pop a "preferences" scene to pop doing the same Feb 04 22:23:40 ah but arnt the scenes shown in the same card? Feb 04 22:23:52 swishy: why not just inject a div with a z-index set high? Feb 04 22:24:14 jfelectron: thats essentially what I thought "scenes" did Feb 04 22:24:15 hehe Feb 04 22:24:21 swishy: they are loaded in the DOM...but are they really visible Feb 04 22:24:23 ? Feb 04 22:24:41 swishy: no I don't think its setting z-indexes like that.....just hiding one and showing the other Feb 04 22:24:54 jfelectron: atm I push the main game view in the stage assistant Feb 04 22:25:06 and then pop the new scene on trigger Feb 04 22:25:26 so I would have thought the maingame view would still be "visable" just overlayed with the new scene? Feb 04 22:26:33 I don't know precisely what the implementation is, but I don't think it works like that...lets troll through the refcode...hold on Feb 04 22:26:44 thanks Feb 04 22:28:53 I don't think you're going to be able to load a scene and have it display the scene underneat Feb 04 22:29:15 you could use a sceneDialog for the overlay bit, though Feb 04 22:30:20 yes...a custom dialog or just a DIV that slides over the scene Feb 04 22:30:27 sugardave: ah ok, I take it you can load any widget into a dialog also? Feb 04 22:30:39 jfelectron: ok thanks Feb 04 22:30:41 swishy: a custom dialog is just like a mini-scene Feb 04 22:30:46 ah neat Feb 04 22:30:57 Ill have a play with that tonight Feb 04 22:31:03 thanks for the help Feb 04 22:31:22 * swishy has been trying to solely use Ares so will see what he can do Feb 04 22:31:33 oh speaking of which Feb 04 22:31:44 in Ares how does one remove the default button image? Feb 04 22:32:02 ie you can set an image as a background but the default still shows as well Feb 04 22:32:12 regardless of class set etc on the button itself Feb 04 22:33:04 looking at controller_stage.js the new scene is just appended to the DOM and element.hide() is executed on the underlying div Feb 04 22:33:27 ahhh Feb 04 22:33:37 Through some serious hackery, you could probably unhide it...but it could (read highly likely) have bad consequences Feb 04 22:33:44 hehe Feb 04 22:33:58 ill stick with the dialog approach for the moment Feb 04 22:34:01 the hide is being executed on the container div of the scene Feb 04 22:35:10 If you get adventours, look at the private method setSceneVisiblity in controller_stage.js Feb 04 22:35:28 ok will do Feb 04 22:35:40 swishy: btw...you're a solider using strictly Ares :) Feb 04 22:35:59 jfelectron: hehe making good progress thus far Feb 04 22:36:07 nice Feb 04 22:36:46 OK kids...got to eat and such...bbl Feb 04 22:36:56 is it possible to change the price of an existing app in the catalog? Feb 04 22:37:12 yes Feb 04 22:37:18 ok Feb 04 22:43:25 anyone know why handleCommand never gets called in my stage-assistant when I create a stage manually? and how can I fix it so that it does? Feb 04 22:44:17 using createStageWithCallback to create the stage Feb 04 22:46:07 is anyone there Feb 04 22:46:13 fez252: you're using createStageWithCallback in appAssistant? Feb 04 22:46:18 yes Feb 04 22:46:34 do you tell it to use a stage-assistant? Feb 04 22:46:46 yes Feb 04 22:47:06 hmmm... Feb 04 22:47:08 createStageWithCallback(stageArguments, StageAssistant, "card"); Feb 04 22:47:30 also setup() never gets called Feb 04 22:48:11 jfelectron: enjoy Feb 04 22:48:12 the stage assistant is one of the properties of stageArguments Feb 04 22:48:33 which property? Feb 04 22:48:40 https://developer.palm.com/index.php?option=com_content&view=article&id=1873&Itemid=244#.createStageWithCallback Feb 04 22:49:09 assistantName: 'mystageassistant' Feb 04 22:49:22 let me try that Feb 04 22:51:37 anyone here want to beta-test, or rather, make sure everything is working, in my app? Feb 04 22:52:02 Of course I've already tested, but another tester is always nice Feb 04 22:52:24 Tibfib: sure. me at yahoo Feb 04 22:52:41 doesnt seem to make a difference Feb 04 22:52:53 haeffb: its an update to my app by the way Feb 04 22:53:09 pastbin your code. Feb 04 22:53:22 me? Feb 04 22:53:35 fez252: yes, you! :) Feb 04 22:53:38 okok Feb 04 22:53:58 haeffb: sent Feb 04 22:56:26 http://pastebin.com/m6cd8247f Feb 04 22:56:39 hmph. Apparently I have to have emu running before I can install to emu. Feb 04 22:57:53 try 'StageAssistant' Feb 04 22:58:00 or perhaps 'stage-assistant' Feb 04 22:58:14 not sure if it's looking for filename or for the actual assistant name Feb 04 22:58:26 and make sure stage-assistant.js is in sources.json Feb 04 22:59:04 yes!!!!!!!! Feb 04 22:59:11 works with StageAssisant Feb 04 22:59:29 thanks Feb 04 22:59:38 Tibfib: Puzzle o' the day is just a spinning spinner. Feb 04 22:59:51 no, wait, there it is! Feb 04 22:59:58 or there it will be, tomorrow. Feb 04 23:00:12 :D Feb 04 23:00:13 yep Feb 04 23:01:04 I'll probably make it live tomorrow morning. Feb 04 23:01:13 Not gonna do a midnight thing...hah Feb 04 23:01:58 woohoo! got the first beginner one cleared! Feb 04 23:02:47 well done! Feb 04 23:02:57 In the app menu it has your personal records Feb 04 23:03:46 6! Feb 04 23:04:52 have you rated submissions? Feb 04 23:04:59 have you tried rating* Feb 04 23:06:05 one issue is that I'm having trouble scrolling on the main menu scene. It keeps launching a game rather than letting me scroll. Feb 04 23:07:20 I have rated a puzzle thumbs up. Feb 04 23:07:39 and rated the same puzzle thumbs down. Feb 04 23:08:27 neat game. Feb 04 23:08:32 haeffb: I'm gonna fix the scrolling issue Feb 04 23:08:42 haeffb: it should have auto pushed the next puzzle Feb 04 23:08:46 after rating it Feb 04 23:08:57 Or did the same one come up? Feb 04 23:10:24 oh, maybe it was a new one. let me check Feb 04 23:10:48 the 'folder' icon isn't intuitive for rating... Feb 04 23:10:54 Yeahhhhhhh Feb 04 23:11:03 There's a few things to work on Feb 04 23:11:14 ya, ok it's a new one. Feb 04 23:11:21 Cool Feb 04 23:11:38 what do you think would be a good icon? Feb 04 23:11:41 is there a trick to getting inspector to work with a multi-stage app? It's only ever showing the contents of my index.html Feb 04 23:11:45 where do the 'submissions' come from? Feb 04 23:11:53 my online server Feb 04 23:11:54 sugardave: make it a single-stage app Feb 04 23:12:01 Tibfib: nice. Feb 04 23:12:05 well, it is technically Feb 04 23:12:08 I only use one stage Feb 04 23:12:15 createStageWithCallback Feb 04 23:12:16 Yep, if you get lucky, you could rate your own submission Feb 04 23:13:00 sugardave: right, but inspector doesn't work with multi-stage. You can temp make it single stage by removing the noWindow: true line and pushing a scene from stage assistant. Feb 04 23:13:08 ah Feb 04 23:13:10 got it Feb 04 23:13:11 thanks Feb 04 23:13:14 and maybe comment out stuff in app assistant Feb 04 23:22:42 has anyone else had to pay the $50 again when submitting an update to your application? Feb 04 23:24:07 No? Feb 04 23:24:53 weird. I wonder why the only way to submit my update is to checkout with paypal Feb 04 23:29:08 haeffb: the accidental press when scrolling has been fixed (its as good as its gonna get). I also changed the file icon to just say "submissions". thanks for the feedback! Feb 04 23:29:34 sounds good. Feb 04 23:29:45 do you want the updated ipk? Feb 04 23:30:09 hello, all! Feb 04 23:30:20 (just so you don't have to use a semi beta version) Feb 04 23:31:27 nah. I'll get it from the store if I need it.... :) Feb 04 23:31:53 Alright sounds good Feb 04 23:32:42 just quick Q before I look it up myself: how do you determine if the notification tray has a notification in it (thus cutting off the screen height by another 24 or 32 or whatever pixels)? Feb 04 23:33:20 this.resizeHandler = this.resized.bindAsEventListener(this); Feb 04 23:33:20 Mojo.Event.listen(this.controller.window, 'resize', this.resizeHandler, false); Feb 04 23:33:29 To listen to resizes Feb 04 23:33:56 to check if there is a notification use: this.controller.window.innerHeight Feb 04 23:34:19 woot. Thank you very much :) Feb 04 23:34:50 Yep, I use the resize handler to check for a notification, and based on the innerHeight, resize it accordingly Feb 04 23:35:03 it as in the application Feb 04 23:35:11 * Kuraiou nodnods. Feb 04 23:35:20 it was the one last thing with my app that was bugging me. Feb 04 23:35:36 I mean, for this update I'm doing I'm also adding in some user requests, but that in particular had to be fixed. Feb 04 23:49:36 Kuraiou: how nice of you :) Feb 04 23:49:54 Kuraiou: just submitted an update to one of my apps today that was largely user-requested Feb 04 23:51:25 Anyone from Palm here? I issued an app update and it breaks in the store and I have no idea why... Feb 05 00:05:28 I use #mojo-scene-home-scene-scroller in my css to change the background color of a scene. Works great. But on that scene I just added disableSceneScroller:true to the scene. And it breaks the #mojo-scene-home-scene-scroller. Any ideas? Is there another good way to change the background color of a scene? Feb 05 00:08:31 yes, but I can't remember what it is. maybe sugardave does... Feb 05 00:13:54 body.palm-default ?? Feb 05 00:15:31 #body { background: url(blahblahblah) } Feb 05 00:15:40 er Feb 05 00:15:42 sorry, no hash Feb 05 00:16:48 actually, it looks like I set a class on my body, and did body.nameOfTheClassImTalkingAbout { background: etc } Feb 05 00:16:49 anyone know if its possible to set a reoccurring alarm? Feb 05 00:17:10 set an alarm that when it goes off sets itself to go off again Feb 05 00:17:15 that's the only way I know of o_o Feb 05 00:17:47 Templarian: in Komodo, many of the fields in the webOS view section are too small vertically - i.e. the text is cut in half in the app id field, etc. Makes it a bit hard to read. Feb 05 00:18:00 wonder why my ebook says its possible Feb 05 00:18:35 maybe it's the banner chain in the API.... hrm Feb 05 00:18:39 * Kuraiou peruses reference code Feb 05 00:19:18 anyway to remove "preferences" from the app menu? Feb 05 00:19:32 Kuraiou: thanks. the body.(class) worked! Feb 05 00:19:39 \o/ Feb 05 00:20:37 omitDefaultItems: true Feb 05 00:20:43 childsd3 Feb 05 00:23:11 god, I hate Eclipse so much sometimes. Feb 05 00:25:13 I'm trying to get the contents of a remote file out on the internet. I can wget it but can't get it with an Ajax call. status=200 so it act like it worked but I don't get the transport.response Feb 05 00:25:29 transport.responseText even Feb 05 00:26:07 anyone got any ideas? Feb 05 00:28:48 haeffb: hmm... yea that whole thing needs to be rewritten. Feb 05 00:29:14 just checking to see if it's just me... :) Feb 05 00:29:43 It's just you. Feb 05 00:30:00 haeffb: what linux distro do you have? Feb 05 00:30:39 For some reason when i set the size mozilla sets a different height in the different OS's. I'll look into it later. Feb 05 00:30:56 vista Feb 05 00:31:21 heh Feb 05 00:31:40 That's not right take a screenshot. Feb 05 00:34:28 Jim462: have you tried onComplete instead of onSuccess? Feb 05 00:34:51 Jim462: Also, check to see what headers wget is using and spoof them Feb 05 00:35:01 ditto with the user agent Feb 05 00:35:31 jfelectron: thanks for the tips, i'll give them a try... Feb 05 00:36:06 Jim462: is transport.response totally empty? Feb 05 00:36:41 Jim462: what are you expecting back XML, JSON, a web page? Feb 05 00:36:43 transport.responseText is Feb 05 00:36:52 it's an i Feb 05 00:36:56 iCal file Feb 05 00:37:13 just need to read it in as text so I can parse it Feb 05 00:39:23 jfelectron: doing an logProperties on transport doesn't even show a responseText property. Feb 05 00:39:48 jfelectron: using onComplete gets the same result Feb 05 00:39:50 Jim462: have you tried the code in a browser? Feb 05 00:39:56 Templarian: http://img215.imageshack.us/i/screencap4templarian.png/ Feb 05 00:40:22 Jim462: Just get prototype.js and remove all the Mojo specific stuff from the function generating the Ajax.request and the callback Feb 05 00:40:39 change Mojo.Log to alert() Feb 05 00:42:26 haeffb: hmmm...imageshack, might just use that for photo uploading in my app Feb 05 00:42:38 haeffb: that's odd... Feb 05 00:43:41 looks to be a CSS property on the input boxes that is rendering differently. I'll mess with it later I've got a lot of pressure to redo it by 1.4 Feb 05 00:43:52 what two of flickr, imageshack, photobucket, picassa should I support? Feb 05 00:44:31 I use imageshack for image uploading. Feb 05 00:44:46 flickr requires an account so does photobucket I believe. Feb 05 00:44:52 (could be wrong) Feb 05 00:45:08 Might for the api to be used for imageshack also not sure. Feb 05 00:45:51 Yeah...I'll probably use one that doesn't require an account as default, but have the option for Flickr or something else because lots of people use them for real photo storing Feb 05 00:46:43 jfelectron: would you mind taking a peek at my code (http://webos.pastebin.com/d64ae66b7) just to make sure i'm not doing something stupid? Feb 05 00:46:57 Jim462: sure..I'll take a looksy Feb 05 00:48:20 are you sure text/plain is the correct contentType? Feb 05 00:48:26 * haeffb uses picasa Feb 05 00:48:59 Jim462: browser downloads it as HTML Feb 05 00:49:16 Jim462: which won't be returned with text/plain Feb 05 00:50:42 Jim462: do you know what mime type the server is configured for? Feb 05 00:50:46 Jim462: Apache? Feb 05 00:51:13 don't know anything about the server actually. tried text/html, no luck. Feb 05 00:51:25 Jim462: There is also text/calendar....try that Feb 05 00:52:07 jfelectron: text/calendar, same same Feb 05 00:52:22 hmmm....drats Feb 05 00:52:30 tell me about it Feb 05 00:53:12 Jim462: make real function ...ie not anon ones so that you can debug the OnSuccess Feb 05 00:55:06 jfelectron: k, will it let me step into the request method to see what's going on? Feb 05 00:55:07 hello folks, back after realization that webos is in the blood Feb 05 00:56:08 LoneStar99: once you start, you can't stop Feb 05 00:56:18 LoneStar99: its ridiculously fun Feb 05 00:56:25 true that Feb 05 00:58:41 Jim462: I don't think it will break inside the framework code....but I haven't tried Feb 05 00:59:03 Jim462: I'm tossing this into a browser to investigate further Feb 05 00:59:16 jfelectron: i'm loading it up in ares now so i can try debugging it Feb 05 00:59:28 Jim462: also good Feb 05 00:59:54 lets see if its a Mojo specific problem or a general problem with the Ajax.request Feb 05 01:01:11 is sugardave around? Feb 05 01:02:52 anyone know an api to push a link instead of a scene? Feb 05 01:04:06 natenrb9: push a link like a link ?? Feb 05 01:04:23 jfelectron: ok, debugging in ares it works, i have the responseText Feb 05 01:04:44 jfelectron: this is getting wierd Feb 05 01:04:48 lonestar99: yes Feb 05 01:04:50 Jim462: indeed Feb 05 01:04:52 but in my js file Feb 05 01:05:18 Jim462: so the responseText gets passed to the handle and then....what? Feb 05 01:05:43 Jim462: you need to bind the handler to this Feb 05 01:06:14 look at this inside your handler...may not be the scene assistant object Feb 05 01:06:29 jfelectron: k, 1 sec Feb 05 01:07:22 natenrb9: you want to push the link from the app menu? Feb 05 01:07:38 well from tapping a row in a list Feb 05 01:09:18 jfelectron: not sure what you mean. how do i bind it? Feb 05 01:09:40 Jim462: have you moved the handlers into real functions? Paste the code again if so Feb 05 01:09:49 natenrb9: if you have "" should it not automatically open the browser with the link? Feb 05 01:10:05 LoneStar99: yes, it does Feb 05 01:10:11 I wanted to do it in the js file Feb 05 01:10:16 but figured out a way Feb 05 01:10:23 natenbr: cross-app launch Feb 05 01:10:29 window.location = "(url)" Feb 05 01:10:30 natenrb9: cross-app launch Feb 05 01:10:31 jfelectron: yeah, http://webos.pastebin.com/d624c0108 Feb 05 01:10:47 natenrb9: what does that do? Feb 05 01:10:59 just opens the link Feb 05 01:11:17 but from the js file Feb 05 01:11:26 natenrb9: try this http://www.pastebin.org/86453 Feb 05 01:11:28 Jim462: http://webos.pastebin.com/m398ca675 Feb 05 01:11:40 but it is from an scene assistant Feb 05 01:11:43 LoneStar99: yep that's what I use Feb 05 01:12:19 lonestar99: yeah, I was using that, but I didn't like how that worked Feb 05 01:12:29 for this particular instance Feb 05 01:12:36 natenrb9: huh...you didn't like opening the browse to a link? :) Feb 05 01:12:39 I am actually opening an app in the catalog Feb 05 01:12:47 via the redirect link Feb 05 01:13:00 what would it do? Feb 05 01:13:05 and it was taking too long with the servicerequest Feb 05 01:13:06 that u did not like it? Feb 05 01:13:26 it opened the browser, and then thought for a bit, then finally went to the catalog Feb 05 01:13:34 jfelectron: same result with the bind Feb 05 01:13:38 now it goes right to the catalog Feb 05 01:14:03 build a search engine for the app catalog, and in the phone the redirect link automatically opens the app in app catalog Feb 05 01:14:10 Jim462: wtf?? thinking Feb 05 01:14:30 jfelectron: got to go feed the dogs, brb Feb 05 01:14:42 which link are you using? Feb 05 01:14:45 yeah, a better search engine would be nice Feb 05 01:14:51 Jim462: what is logProperties? Feb 05 01:14:57 the app catalog search engine blows Feb 05 01:15:03 brings up a billion results Feb 05 01:15:17 I think it searches each word you search for in a phrase individually Feb 05 01:15:30 jfelectron: http://webos.pastebin.com/d1f2f4db3 Feb 05 01:15:34 you can get the link to an app via the Share button in the catalog Feb 05 01:16:20 Jim462: huh...but you verified that the transport object has a responseText property? Feb 05 01:18:38 natenrb9: http://developer.palm.com/appredirect/?packageid=com.buildasearch.search.app that link should open the app catalog automatically, but it needs to be in an app in the phone to work, does not work in the emulator Feb 05 01:19:57 if you open the above link above in the mobile browser not sure what it does, but assume after awhile it opens up the app catalog Feb 05 01:20:01 natenrb9: just look in the Preware source code to see how we do it. Feb 05 01:20:46 Lonestar99: I had figured out what I needed :) I was explaining to you how I got the link. Feb 05 01:20:52 rwhitby: thanks Feb 05 01:21:24 kewl Feb 05 01:22:03 jfelectron: no, it doesn't, that's the problem. it does when i debug it in ares though Feb 05 01:22:25 Jim462: what? That doesn't make any sense! Feb 05 01:23:23 Jim462: its very odd...this works in a browser....http://webos.pastebin.com/m133bd5c6 Feb 05 01:23:56 dumps the response text into an html page with a
Feb 05 01:26:18 Jim462: are you running this on the emulator and debugging in Ares or running in Ares (can you do the latter??) Feb 05 01:27:38 jfelectron: i go to the debugging view and hit the run button and it runs in the emulator hitting my breakpoints. is there another way? Feb 05 01:28:25 Jim462: no I think that's the way....I've seen people saying 'run' in Ares, but I think it always runs on the emulator Feb 05 01:28:54 jfelectron: i think the options are the emulator or the browser Feb 05 01:29:13 Jim462: uhh....but its not 'running' in the browser is it? Feb 05 01:29:24 jfelectron: no :) Feb 05 01:29:50 I strictly debug with Ares now...the command line debugger is for masochists Feb 05 01:30:38 jfelectron: can't setp into Ajax.request by the way Feb 05 01:30:48 Jim462: didn't think so Feb 05 01:31:01 In a browser you can Feb 05 01:31:22 at any rate...the thing IS being returned....I just have no idea wtf happens to it Feb 05 01:32:25 jfelectron: i suppose i could try rolling my XMLHTTLRequest but that wouldn't explain why it works from area and not from eclipse, it's the same friken emulator! Feb 05 01:32:53 my spelling is taking a crap Feb 05 01:33:12 the eclipse debugger might be buggy Feb 05 01:33:28 also logProperties is not logging all the properties....it seems to time out or something Feb 05 01:33:30 i'm not using the debugger in eclipse, just the log Feb 05 01:33:49 yeah, what's with the null in the properties? Feb 05 01:34:09 that was happening to PreGame a couple weeks ago on every ajax request he made Feb 05 01:34:16 don't know if he ever figured it out Feb 05 01:34:44 sugardave: did reponseText dissapear for him? Feb 05 01:34:48 yep Feb 05 01:34:51 not even a property name Feb 05 01:34:56 just 'null' Feb 05 01:35:20 this is really wierd....it works in a browser, it seems to be there when inspecting the object in Ares..but the framework doesn't see it Feb 05 01:35:49 I was going to say something about it being gzipped, but if it's working in Ares, I have no clue Feb 05 01:36:04 if the data is too big it gives me 'null' Feb 05 01:36:17 try just logging the .length of it Feb 05 01:36:21 dylanmel: that's what I suspected its just bailing Feb 05 01:36:47 dylanmei: but what's happening is that there isn't even a 'responseText' property available.... Feb 05 01:36:58 oh well thats not good :) Feb 05 01:37:06 sugardave: I'm not entirely convinced its not there Feb 05 01:37:09 maybe...that's what happened to PreGame anyway and this sounds similar Feb 05 01:37:21 our only evidence of it not being there is the null log Feb 05 01:37:30 but inspecting the object in Ares.....its there Feb 05 01:37:52 $('div').update(Object.toJSON(transport)); ? Feb 05 01:38:00 ares says the size 10571 Feb 05 01:38:09 is there a limit? Feb 05 01:38:27 Jim462: probably...its not going to sit there is spit out a huuuuge amount of text Feb 05 01:38:30 might be for gets Feb 05 01:38:34 blargh audio Feb 05 01:38:37 yeah the log poops out at a certain amount. its undocumented whatever the limit is Feb 05 01:38:51 sugardave: the get isn't the problem...works in a browser just fine Feb 05 01:39:02 there's definitely a text length limit for log output Feb 05 01:39:10 jfelectron: I know...grasping Feb 05 01:39:22 it would be nice if it said 'data too big' instead of 'null' :/ Feb 05 01:39:31 i lost a couple hours of my life on that Feb 05 01:39:43 if you tail /var/log/messages you can see it up to the limit Feb 05 01:39:58 dylanmei: lol, me, too Feb 05 01:40:11 so, are you saying it's not getting the file beacuse it's too big, or i just can't log the responseText because it's too big? Feb 05 01:40:19 Jim462: the latter Feb 05 01:40:26 Jim462: Try logging String(responseText).slice(0,100) Feb 05 01:40:27 maybe Feb 05 01:40:28 you can't log it. it's there. Feb 05 01:40:32 yep, on it Feb 05 01:41:17 bwaaah. the emulator is not playing sounds. is that normal? Feb 05 01:41:23 yes Feb 05 01:41:26 okay. Feb 05 01:41:35 I will have to package and test on my phone then : Feb 05 01:41:37 O Feb 05 01:41:38 :O Feb 05 01:41:41 :O Feb 05 01:42:15 This is where Mr. T pops out of the emulator and says 'I pitty da foo' Feb 05 01:42:42 Kuraiou: http://webos101.com/Emulator#Enabling_Sounds Feb 05 01:42:48 might work for you, might not Feb 05 01:45:59 as always, thank you very much. Feb 05 01:46:02 yep, that's the issue, just too big for the log. whew, thanks for everyone's help Feb 05 01:49:21 Jim462: so you never fed this.iCal to your parser? Feb 05 01:50:31 jfelectron: no, just started this project. doing proof of concept really. parser is next. Feb 05 01:51:33 Ok..I thought you knew that this.iCal wasn't being assigned somehow...but I guess you just trusted the log :/ Feb 05 01:52:49 anyone here with just a bit teeny bit of time to spare to download a clock applicaton live in Mountain Time, like Denver? Feb 05 01:53:16 Jim462: http://code.google.com/p/ijp/ Check that out for a parser Feb 05 01:53:34 dylanmel: sorry Pacific here Feb 05 01:53:46 yeah me too. thanks though. Feb 05 01:53:50 jfelectron: way ahead a ya :) thanks tho Feb 05 01:54:10 if you want to just take a quick drive to denver that would help Feb 05 01:54:11 :p Feb 05 01:54:27 Jim462: was just curious....took all of 5 seconds Feb 05 01:56:51 how do I connect to the palm's shell... argh Feb 05 01:56:55 I know it's novacom something something Feb 05 01:59:28 novaterm in linux/OSX....dunno for PuTTy/Win Feb 05 02:02:23 same thing, different name Feb 05 02:02:34 what's the actual command? -t is not enough apparently :\ Feb 05 02:03:12 novaterm -d tcp/usb depening if you want your phone (provided its plugged in) or emu shell Feb 05 02:03:58 hah, found it :O Feb 05 02:04:03 going to update webos101's page. Feb 05 02:04:09 novacom -t open tty:// Feb 05 02:14:45 sugardave: the suggestion to move those files did not work. :\ Feb 05 02:34:09 weird. now it's playing the sound, but throwing an error after it plays it. Feb 05 02:46:19 anyone know why the following does not seem to work: http://www.pastebin.org/86481 Feb 05 02:47:43 cuz your loop index starts with zero... cuz dough.scNum is not defined... Feb 05 02:49:49 changed the zero to 1... still nothing Feb 05 02:50:17 defined? BasCookie.cookies.someCookie.dough.scNum Feb 05 02:51:10 dough[scNum] Feb 05 02:51:33 nah, neverminde Feb 05 02:52:06 how about removing that cookie from the equation entirely, set everything to some text of our choosing. innerHTML = 'yo' Feb 05 02:53:06 let me try that Feb 05 02:54:47 dylanmei: the cookie stores what needs to be stored and displayed on app startup Feb 05 02:56:26 i can hardcode it but trying to get my code the least hard coded possible Feb 05 02:57:03 next time you should try using something different, like
and $$('.cs').each(function(div, i) { div.update('yo ' + i) }); Feb 05 02:57:29 just for now, just get it working, connect the dots and then polish it while it's stable Feb 05 02:59:02 LoneStar99: try dough[scNum] **** ENDING LOGGING AT Fri Feb 05 02:59:56 2010