**** BEGIN LOGGING AT Mon Jan 18 02:59:56 2010 Jan 18 03:00:15 digitalslave: you have to get the .value from the model of the integerPicker. Like this.firstIntegerPickerModel.value = this.secondIntegerPickerModel.value Jan 18 03:00:27 assuming you have this.firstIntegerPickerModel, etc. Jan 18 03:01:37 haeffb_tired, yes i did and found that the following works to set the value but i cant get it from one to the other Jan 18 03:01:52 digitalslave: what haeffb_tired said and you then probably need to call .modelChanged(this.secondIntegerPickerModel) Jan 18 03:02:11 you must also do what sugardave said whenever you change a widget's model Jan 18 03:02:30 haeffb_tired, this.$.picker1.setValue("6") - but this doesnt this.$.picker1.setValue(this.$.picker2.value) Jan 18 03:03:12 brain....failing to wrap.... Jan 18 03:03:18 hey all Jan 18 03:03:24 hi atlanta Jan 18 03:03:26 (still tired, but tired of you guys telling me I'm tired) Jan 18 03:03:28 sugardave: heyy Jan 18 03:03:36 i got the remaining characters to work Jan 18 03:03:45 digitalslave: Did you save the integer picker models? Jan 18 03:03:53 did I miss something? Jan 18 03:03:55 javascript hurts brain, need good language, going to die Jan 18 03:04:08 digitalpowers: javascript is lovely Jan 18 03:04:11 having a problem Jan 18 03:04:11 ? Jan 18 03:04:17 javascript good. mojo good. prototype...? Jan 18 03:04:29 changeOnKeyPress: true oh lala palm and there hidden goodies Jan 18 03:04:40 save the models? Jan 18 03:04:50 digitalslave: what u mean save the model Jan 18 03:04:51 when you setupWidget() Jan 18 03:04:54 modelChanged() Jan 18 03:05:08 yeah, i had a set of commands that were running all hapilly from an Tap (function generated by aries) i copied the code out slapped it in another function then called that from the tap function generated by ares, nothing happen Jan 18 03:05:11 haeffb: I like prototype, too Jan 18 03:05:37 and i havent figured out debugging with ares yet Jan 18 03:05:43 atlanta: oh yeah...forgot about your updating on key press ? Jan 18 03:05:53 sugardave: yea man it was changeOnKeyPress: true Jan 18 03:05:59 cool Jan 18 03:06:11 yea simple things have been killing me lately Jan 18 03:06:16 atlanta: what are you using that for? Jan 18 03:06:20 textfields? Jan 18 03:06:37 haeffb: yea Jan 18 03:06:45 its needed to onKEYPRESS Jan 18 03:06:48 type of thing Jan 18 03:06:57 my char counter wouldnt work without it Jan 18 03:07:37 does that cause the model to update? Jan 18 03:08:08 * sugardave was surprised at the automatic model updating by his Lists. Jan 18 03:08:14 haeffb: i guess lol Jan 18 03:08:21 lists are awesome, sugardave Jan 18 03:08:25 indeed Jan 18 03:08:31 what would the world be without lists? Jan 18 03:08:35 listless Jan 18 03:08:52 * haeffb going to let the dogs out. In case anybody asks, "Who let the dogs out?!?!?" Jan 18 03:08:54 they did a good job with lists. They're not everything they COULD be (listsi n lists, drawers in lists) butthey're DAMNED COOL Jan 18 03:09:20 I have a scroller -> drawer -> list Jan 18 03:09:22 looks really nice Jan 18 03:09:37 bbiab -- need coffee. Jan 18 03:09:52 sugardave: is the scroller horizontal Jan 18 03:09:52 ? Jan 18 03:09:53 with the blue collapsible divider thingie over it...damn sharp Jan 18 03:09:58 no, vertical Jan 18 03:10:11 awww then no bueno lol Jan 18 03:10:21 why? Jan 18 03:10:27 im just messing with you Jan 18 03:10:34 I am thinking of putting a horizontal scroller in my item template, though Jan 18 03:10:39 some of the titles are truncating Jan 18 03:10:40 that would be damned sharp sugardave Jan 18 03:11:18 Rick_work: yeah, we'll see if it works out or not Jan 18 03:11:31 I figure the scroller widget is going to be the easiest one to try and embed Jan 18 03:12:25 but I seem to recall some discussion about not being able to use IDs in templates....is that just for the list items? Jan 18 03:12:56 whats a good small present css class Jan 18 03:12:58 any template that is going to be used more than once in the same scene can't have id's because id's have to be unique Jan 18 03:12:59 for small info text Jan 18 03:13:02 info-text is it Jan 18 03:13:02 ? Jan 18 03:13:05 if you're only doing it once, then meh. Jan 18 03:14:24 man this is pissing me off Jan 18 03:14:31 users cant install apps so they give it 0 stars Jan 18 03:14:33 WTFFF Jan 18 03:14:52 atlanta email chuq, he'll delete them Jan 18 03:15:01 Rick_work: good ok thanks Jan 18 03:18:02 sugardave: I've seen people auto-generate unique ids. Haven't tried it myself. like id="something#{index}" or some such. Jan 18 03:20:22 working with audio on webos is such a nightmare Jan 18 03:20:41 ok 2 different apis and no documentation besides instantiation - im out Jan 18 03:22:00 wut? Jan 18 03:25:45 danlash: It's not bad Jan 18 03:26:41 reality9110: re-packaging and re-deploying my app to the device (no code changes) has audio working 30% of the time, otherwise no sound Jan 18 03:27:11 reality9110: creating more than 3 audio objects kills performance Jan 18 03:27:26 reality9110: serious performance degredation aftering playing lots of audio Jan 18 03:27:33 i dont see anything thats 'not bad' :-\ Jan 18 03:28:22 I thought you were only supposed to create one audio object...? Jan 18 03:28:24 reality9110: unless i'm doing something really wrong -- but i followed all samples and tweaks i could find on forums and samples Jan 18 03:28:27 PALM PRE ON 24 Jan 18 03:28:30 anyone else watching Jan 18 03:28:48 drat. forgot to set DVR Jan 18 03:28:52 haeffb: if that's so, how can you have overlapping audio? i want sounds to be played at the same time Jan 18 03:28:55 haeffb: BLAH Jan 18 03:29:04 palm pre saves the world? Jan 18 03:29:34 danlash: dunno. I haven't played with audio. Jan 18 03:29:38 is there any way to figure out why my app is all the sudden loading with a blank screen? (using ares) Jan 18 03:30:01 suddenly* Jan 18 03:30:22 it was working fine and i moved some functions around (which i have now put back) and it just loads a blank screen Jan 18 03:30:24 digitalpowers: that happens for me when i have javascript syntax errors Jan 18 03:30:24 digitalpowers: dunno. don't use Ares. Jan 18 03:30:37 * haeffb feeling very unhelpful tonight Jan 18 03:30:52 haha, yeah i figured that was the solution, what is everyone using? eclipse? Jan 18 03:31:07 digitalpowers: visual studio Jan 18 03:31:13 is there a plugin? Jan 18 03:31:34 to make it play nice with the emulator and please say yes to this DEBUG!? Jan 18 03:31:41 i just created 3 'external tools' that map to package/new scene/install Jan 18 03:31:49 then customized my toolbar Jan 18 03:32:00 no debugging Jan 18 03:32:19 i <3 vs, any chance you want to toss that info up on a page somewhere so people dont have to recreate the wheel? Jan 18 03:32:27 although there is a pay plugin that can debug with visual studio and putty/linux -- dunno if it works for webos tho Jan 18 03:32:28 eclipse Jan 18 03:32:57 no debugging Jan 18 03:33:25 'cept Mojo.Log.info() - feels kinda oldschool Jan 18 03:34:57 cool, well i am going to quite for now before i kill the internet with my wrath Jan 18 03:35:13 haeffb: ah, that's good to know, since each row item will have a scroller and needs an id Jan 18 03:35:33 digitalpowers: 1 sec Jan 18 03:35:46 don't know if it *works* or not. but I've seen people say they do it. Jan 18 03:35:51 k Jan 18 03:38:49 danlash: Do you need multiple sounds playing at the same time? Jan 18 03:43:32 if (time > 9:50pmCST && playedBball@Y && playedBball@HSGym && drank2Beers) haeffb.asleep(); Jan 18 03:44:47 (javascript IS lovely) Jan 18 03:45:03 digitalpowers: how to use visual studio with webos: http://pastie.org/782637 Jan 18 03:45:17 javascript is the redheaded stepchild of a bad language, but i perservier Jan 18 03:45:28 danlash: thanks Jan 18 03:46:12 reality9110: i have 1 sound that i need to be able to overlap if the user taps quickly Jan 18 03:46:24 danlash: thanks man i will try to implement that later. I am going to run for a few. Jan 18 03:46:28 so creating 1 aduio object isnt sufficient since it cant overlap Jan 18 03:49:28 danlash: What I would do is alternate between 3 of the same file. Jan 18 03:49:48 Create 3 samples, all the same. sample1, sample2, sample3 Jan 18 03:49:59 then, rotate through the samples. Jan 18 03:50:35 Should be able to do rapid tapping that way Jan 18 03:50:43 Assuming the sample is short. Jan 18 03:51:38 reality9110: heh, i tried multiple files because i thought it might be locking the drive when loading -- didnt help Jan 18 03:51:46 so right now i have 1 file, 3 audio objects Jan 18 03:52:06 What format is the file? Jan 18 03:52:09 again, it works sometimes, but just a simple redeploy will make it st op working Jan 18 03:52:25 thats one thing i havent played with yet... i'm using a wav file i created using windows audio recorder Jan 18 03:52:39 Bit rate? Jan 18 03:52:40 ive read that making the files longer or shorter seem to help sometimes Jan 18 03:52:58 1411kbps Jan 18 03:53:06 looking at that makes me think thats qutie alot Jan 18 03:53:12 That might be your problem. Jan 18 03:53:14 its 16 bit audio Jan 18 03:53:17 2 channel Jan 18 03:53:19 44hz Jan 18 03:53:22 pcm Jan 18 03:53:24 Scale that down. Jan 18 03:53:25 A lot. Jan 18 03:53:36 any recommended tools? Jan 18 03:53:53 audacity Jan 18 03:53:57 for audacity Jan 18 03:54:00 beat me to it Jan 18 03:54:29 If it's just a blip or something, go with a mono, 8 bit sample. Jan 18 03:55:10 ok, i'll try 8bit Jan 18 03:55:14 thanks, i'll let you know soon Jan 18 03:56:12 hah -- ok, now the quality of the audio sucks and it's choppy during playback Jan 18 03:56:18 maybe something in the middle ;-) Jan 18 03:56:43 There's got to be something wrong with your implementation if it becomes choppier Jan 18 03:56:54 Post some code over to webos.pastebin.com Jan 18 04:01:23 reality9110: now the pain comes ... redeploying the same app over and over makes it dead slow and no audio Jan 18 04:01:26 ::sigh:: Jan 18 04:01:50 Post code... Jan 18 04:05:53 reality9110: http://pastie.org/782656 Jan 18 04:09:44 danlash: You're missing a bunch of implementation in the connection to the audio server Jan 18 04:09:53 It's quite useful Jan 18 04:10:00 i read that that isnt required Jan 18 04:10:04 even the sample app doesnt use it Jan 18 04:10:22 danlash: make sure u use the replayaftercall:false Jan 18 04:10:24 some shit like that Jan 18 04:10:28 Technically, it's not. But you'll be able to tell if you're losing connection to the audio server Jan 18 04:10:53 this.audio.palm.setAutoResumeOnCallEnd(false); Jan 18 04:11:00 that will be your friend also Jan 18 04:11:04 when playing with audio Jan 18 04:11:04 hmmm Jan 18 04:11:10 i havent seen that one Jan 18 04:11:16 atlanta: He's just doing a simple click sound Jan 18 04:11:23 yea another hidden palm goody Jan 18 04:11:34 reality9110: yea but even after the sound plays when u end a call Jan 18 04:11:36 the sound will replay Jan 18 04:11:50 its a glitch i guess u can call it Jan 18 04:12:13 evening Jan 18 04:14:24 maik: evening Jan 18 04:14:26 Audio instances are part of the DOM Jan 18 04:14:30 time to shower and then implement headless app Jan 18 04:15:09 That's probably why you're seeing degradation over time Jan 18 04:15:33 why would that degrade? Jan 18 04:15:56 Are you reloading the scene? Jan 18 04:16:34 nope Jan 18 04:16:41 but this is super interesting that i missed: If a stream tagged as media opens, any currently playing media stream pauses. Jan 18 04:17:07 it doesnt seem like that is happening when the audio works, but the clip is so short that it might be Jan 18 04:17:11 That's not true Jan 18 04:18:01 You might want to check out the implementation in the Bubbles app Jan 18 04:18:26 how would i do that Jan 18 04:19:18 Got an email address? Jan 18 04:19:37 danlash@gmail.com Jan 18 04:21:11 Ok Jan 18 04:24:50 reality9110: thanks Jan 18 04:41:03 hello Jan 18 04:41:18 anyone know if access to the call log is provided in webos? Jan 18 04:41:23 similiar to CallLog.Calls in android Jan 18 04:42:24 basically, no Jan 18 04:42:30 you CAN access the call log Jan 18 04:42:47 but your app will have to have a com.palm id which means it can not be in the app catalog Jan 18 04:43:09 And you'll have to use undocumented calls which you can only find out about by reading the source code in the phone app. Jan 18 04:43:38 ah, nuts/. Jan 18 04:44:15 thanks for the response Jan 18 04:51:45 hopefully when the new sdk comes out Jan 18 04:51:50 u can access telephony apis Jan 18 04:51:58 want a nice gvoice app Jan 18 05:01:23 good night Jan 18 05:04:52 omg no projects will build anymore! Jan 18 05:12:14 that's funny, Practical Palm Pre webOS Projects has a reference to Amanda Tapping Jan 18 05:12:22 from Sanctuary Jan 18 05:27:14 maik: how odd. Jan 18 05:27:35 i chuckled Jan 18 05:51:39 hmm. i'm reading through that book and am seeing things like $("divOutput").property Jan 18 05:51:51 can anyone shed some light on what that's about? Jan 18 05:56:31 maik: are you asking about the $() syntax? Jan 18 05:56:41 ya, sorry i wasn't clear Jan 18 05:57:00 i'm new to javascript and i'm assuming that's something inherent to it Jan 18 05:57:43 yeah, its a construct of prototype.js, which is a javascript library that is used internally by mojo Jan 18 05:58:00 http://api.prototypejs.org/dom/dollar.html Jan 18 06:01:12 oh i get it Jan 18 06:03:28 essentially shortcut for document.getElementById Jan 18 06:03:36 ya Jan 18 07:18:46 hey all Jan 18 07:19:01 anyone able to help me with a palm-install issue? Jan 18 07:19:19 it works perfectly with the emulator but fails via usb connection to my pre Jan 18 07:19:40 i can't find any info on this particular problem. the error keeps changing Jan 18 07:20:24 anyone here? Jan 18 07:20:37 greetings Jan 18 07:20:39 i am here but i am noob Jan 18 07:20:41 hello Jan 18 07:20:45 lol me too Jan 18 07:20:52 i'm having trouble with the palm-install tool Jan 18 07:20:58 lol Jan 18 07:21:07 u in dev mode? Jan 18 07:21:12 i can get it to install to the emulator but it won't connect to my pre Jan 18 07:21:13 yea Jan 18 07:21:22 turn off yer emulator and try again Jan 18 07:21:24 put it in dev, hooked up usb and chose charge only Jan 18 07:21:43 emulator is off, i'm trying to get it on my device Jan 18 07:22:02 i'm trying to play sounds and they won't work on my emulator so i wanna see if they work on the device Jan 18 07:22:19 emulator off and it still won't install on your pre? Jan 18 07:22:20 the documentation on the website shows several different methods for playing a sound and they're conflicting Jan 18 07:22:29 yea it gives me different errors every time too Jan 18 07:22:58 download and install prebrew Jan 18 07:22:59 http://www.webos-internals.org/wiki/Tutorials_webOS_Installing_An_Ipk Jan 18 07:23:05 it's what i use to install yo pre Jan 18 07:23:13 just drag and drop very simple Jan 18 07:23:26 oh man, that is so ancient Jan 18 07:23:31 i will give it a shot but i think something's amis Jan 18 07:23:35 you really don't want to be using that page Jan 18 07:23:47 o.O? Jan 18 07:23:50 prebrew works fine Jan 18 07:23:52 i'll get a "reply: no data to read from socket" Jan 18 07:23:53 what r u talking about Jan 18 07:24:03 then next time i try i get "no device found" Jan 18 07:24:04 weird Jan 18 07:24:04 crasheed: didn't you see the warning at the top of the page? Jan 18 07:24:13 heh Jan 18 07:24:22 it still works fine for me XD Jan 18 07:24:26 on 1.3.5 ? Jan 18 07:24:29 yup Jan 18 07:24:48 I bet it doesn't work for installing anything with install scripts Jan 18 07:24:51 the windows installer at least Jan 18 07:25:04 only used it for IPKs Jan 18 07:25:05 oh well i'm on ubuntu Jan 18 07:25:19 AND IF ALL ELSE FAILS Jan 18 07:25:24 crasheed: I bet it doesn't work for installing IPKs that contain install scripts Jan 18 07:25:27 another error i get is "no return code found in stream" Jan 18 07:25:41 i can just keep running the palm-install command over and over again and the error changes each time Jan 18 07:25:44 IF all else fails just SSH to your phone and manually put it in the APPS folder Jan 18 07:26:26 crasheed: beleive me, even the author of PreBrew doesn't use it anymore. Jan 18 07:27:15 :( so why can't i use it if it still works fine Jan 18 07:27:19 i wish i could just get the sound to work in the emulator and i wouldn't care about putting it on the device just yet Jan 18 07:27:37 whats yer sound object look like Jan 18 07:28:02 well i sorted through the conflicting documentation and decided to try this first: Jan 18 07:28:17 crasheed: you can use it, but just don't recommend it to anyone else, cause it will break for them as soon as they try and install something like Internalz or Preware or Quake or DOOM! with it, and they won't know why. Jan 18 07:28:29 var lowEPlayer = AudioTag.extendElement($('lowEaudio')); Jan 18 07:28:40 where lowEaudio is the id of the div element Jan 18 07:29:13 yea i use the same tag :D Jan 18 07:29:17 var lowEfile = Mojo.appPath + "audio/e6.mp3"; Jan 18 07:29:25 this.lowEPlayer.src = file; Jan 18 07:29:31 all under setup() Jan 18 07:29:49 then under button press handler function() Jan 18 07:29:59 var audio = $('lowEaudio'); Jan 18 07:30:02 audio.play(); Jan 18 07:30:10 will that work the way i'm hoping? Jan 18 07:30:20 i recommend using audio.load() instead of play Jan 18 07:30:29 what's the diff? Jan 18 07:30:32 it actualy refreshes the source incase it changes Jan 18 07:30:40 oh well it won't Jan 18 07:30:47 okay then u should be fine Jan 18 07:30:48 i'm making a guitar tune app Jan 18 07:31:03 so there are 6 buttons with 6 static mp3 files Jan 18 07:31:36 i jsut use one div Jan 18 07:31:39 and swap the source Jan 18 07:31:39 this.audioElem.src = file; Jan 18 07:31:39 this.audioElem.autoplay = "false"; Jan 18 07:31:39 this.audioElem.load(); Jan 18 07:31:45 that each time Jan 18 07:32:03 those lines inside the handler function? Jan 18 07:32:11 but if you have 6 static divs should be fine too Jan 18 07:32:25 yes in the play button press Jan 18 07:32:47 i had it that way originally but i thought it might autoplay since it didn't execute the autoplay=false until the button press Jan 18 07:33:34 are there any good sites for documentation on the api? Jan 18 07:33:42 palm dev XD Jan 18 07:33:46 everything i find on palm's site conflicts with other pages on their site Jan 18 07:33:48 forums ar better actually Jan 18 07:33:53 some things didn't work at all Jan 18 07:33:59 but the other method worked perfectly Jan 18 07:35:03 it seems like they wrote the documentation as they were developing and changed things but didn't change the documentation Jan 18 07:36:36 for instance, the one page i was reading said to do something like this Jan 18 07:37:33 Mojo.Event.listen("divid"), Mojo.Event.tap, this.handleButtonPress.bindAsEventHandler(this)); Jan 18 07:37:46 handleButtonPress: function() {} Jan 18 07:37:53 but i couldn't get that to execute at all Jan 18 07:38:04 when i change to Jan 18 07:38:22 Mojo.Event.listen(this.controller.get("divid"), Mojo.Event.tap, this.handleButtonPress.bind(this)); Jan 18 07:38:39 FirstAssistant.prototype.handleButtonPress = function(event) {} Jan 18 07:38:41 works Jan 18 07:39:17 if you think thats bad there are spelling errors on the pages too for function names Jan 18 07:39:23 lol Jan 18 07:39:40 i've encountered many grammatical errors but no spelling errors yet Jan 18 07:39:58 Mojo.Controller.stageController Jan 18 07:39:59 at least i know i'm not nuts, there's actually something wrong with it lol Jan 18 07:40:09 on their site StageController is capitalized and won't work Jan 18 07:40:17 lol Jan 18 07:40:18 unless it's lowercase S Jan 18 07:40:52 ugh Jan 18 07:41:12 this should have been a half hour project Jan 18 07:41:26 6 buttons, 6 sounds lol Jan 18 07:47:45 yes for now you should avoid all projects with sound Jan 18 07:48:03 consiquently i'm building an app to allow users to listen to music off the web >.< Jan 18 07:50:23 heh Jan 18 07:50:57 well what i'm doing is so simple that if the method changes i can switch it easily Jan 18 07:51:13 but streaming audio over the web, i can see how that wouldn't be so simple Jan 18 07:51:38 the thing that gets me is that obviously palm is using the api to write software so what methods are they using? Jan 18 07:52:16 stuff we are not allowed to us Jan 18 07:52:30 because it is considered undocumented api Jan 18 07:52:41 which is why there are no music player apps >.> Jan 18 07:53:18 but of course pandora and the like are privvy to the knowledge Jan 18 07:53:57 Obviously they are better looking Jan 18 07:54:49 lol Jan 18 07:58:49 any way to get the source from apps on the emulator onto your computer? say, if i downloaded the pandora app on there? Jan 18 08:14:00 jdforsythe yes. Jan 18 08:14:50 just playing around with novaterm now Jan 18 08:14:58 where are the installed apps stored? Jan 18 08:15:06 and are they stored as ipk or as source files or? Jan 18 08:15:18 it's all straight javascript Jan 18 08:15:50 if you're in novaterm go to /media/cryptofs/ Jan 18 08:16:27 and you should be able to drill down to the apps you're interested in and then just cp them out to /media/internal and then usb them where you want. Or install scp from preware and just copy them that way. Jan 18 08:17:07 well at the moment i can't get my device to work over usb Jan 18 08:17:31 trying to palm-install and keep getting errors Jan 18 08:17:51 but aha! just got sound working on the emulator :) Jan 18 08:19:12 maybe... Jan 18 08:19:29 it made the startup/battery plugin sound but won't play any others lol Jan 18 08:19:43 no mp3 on emulator wav only Jan 18 08:20:02 yea i'm testing an app and saw that so i converted it to wav Jan 18 08:20:05 still won't play Jan 18 08:20:12 but don't know if it's just coded wrongly Jan 18 08:20:24 its' not making the swoosh sound for closing cards either Jan 18 08:21:00 nvm i take that back Jan 18 08:21:05 volume was down Jan 18 08:21:39 crap, that means it's my fault the sound isn't playing :-p Jan 18 08:26:23 any javascript buffs on? Jan 18 08:28:03 ? Jan 18 08:28:06 idk lol Jan 18 08:28:31 i'm just trying to follow the documentation example on palm dev site Jan 18 08:28:44 simple button press to trigger a sound Jan 18 08:29:14 anyone here who can help me diagnose a cookie issue? Jan 18 08:30:03 sorry bro noob Jan 18 08:33:09 DID u save the cookie data in a jason Jan 18 08:33:10 json Jan 18 08:33:26 if so print it with Object.toJSON(Data) Jan 18 08:33:40 assuming thats yer issue =P Jan 18 08:50:25 well when I try to get the cookie data the fisrt time Jan 18 08:50:39 I get a json error Jan 18 08:50:58 Error: EXCEPTION [JSON.parse], (SyntaxError): "String '%0' is not valid JSON Jan 18 08:53:34 anybody? Jan 18 08:54:05 yes Jan 18 08:54:11 can you read me? Jan 18 08:54:36 alexfner: how does the code look? Jan 18 08:54:40 yea Jan 18 08:55:31 can anyone read me? Jan 18 08:55:43 yes Jan 18 08:55:53 fine, thx Jan 18 08:57:40 hmm? Jan 18 08:57:45 yes Jan 18 08:57:52 my code "looks" great Jan 18 08:58:04 it's got long brunette hair, and a nice tan Jan 18 08:58:38 */sarcasm Jan 18 09:01:19 i have a quick question, that i think is simple and i am jsut dumb, anyone feel like feilding it? Jan 18 09:02:37 go for it Jan 18 09:02:49 the worst that can happen is we'll all laugh at you Jan 18 09:03:07 how do i add an additional function to my main-assistant.js? because what feels obvious is Jan 18 09:03:14 function whatever() {} Jan 18 09:03:24 but i dont seem able to call a function defined that way Jan 18 09:03:47 are you sure you're calling it correctly? Jan 18 09:04:11 just trying to consolidate some code, no i am not sure i am calling it right but Jan 18 09:04:11 functionName(); aught to work i would think Jan 18 09:04:19 course i would LOVE to be wrong Jan 18 09:04:57 yeah, whatever() would call a function Jan 18 09:05:13 but don't foreget to put a comma after your function if it isn't the last function in the document Jan 18 09:05:15 i.e. Jan 18 09:05:20 function whatever() { Jan 18 09:05:23 }, Jan 18 09:05:38 wait Jan 18 09:05:42 actually that was awrong Jan 18 09:05:50 ok, so that brings up a question, if i add a function that is unrelated to even handling (half of my file was created by ares) do i add it to that list of function? Jan 18 09:05:59 are you using ares or a different ide? Jan 18 09:05:59 even = event* Jan 18 09:06:09 i have copied my code out of ares to komodo Jan 18 09:06:37 do you add what to that list function? Jan 18 09:06:57 i have tried that and i tried just sticking a proper (normal) function declaration to the top of the page Jan 18 09:07:00 neither seems to work Jan 18 09:07:07 but is adding it to the list the proper way? Jan 18 09:07:29 I am so confused Jan 18 09:07:34 what do you want to know? Jan 18 09:07:35 me too Jan 18 09:07:54 ok, i want to consolidate some code into a single function that i can call from several button presses Jan 18 09:08:04 ares made cmdThreeTap: function(event, inSender) { Jan 18 09:08:04 this.genRandom(); Jan 18 09:08:04 }, Jan 18 09:08:18 type functions for each button press Jan 18 09:08:38 it should be }; not }, if it's declared outside the scope of another function Jan 18 09:08:39 but if i call a function from inside of them, well nothing happens (for instance the this.genRandom Jan 18 09:09:03 okay, so what is genRandom ? Jan 18 09:09:20 wait, so it should be }, Jan 18 09:09:24 sorry Jan 18 09:09:33 I've been a bit confused about the structure of your code Jan 18 09:10:05 so explain to me what the desired functionality of this function is? Jan 18 09:10:22 yeah i am too, genRandom is the function i want to call that i wrote myself, i want to call it from the automatically generated functions in the list that are defined {}, stype if that makes since Jan 18 09:10:49 however you may have answered my question already Jan 18 09:10:53 so gimme asec to try something Jan 18 09:11:26 no still no dice, man i dislike javascript Jan 18 09:11:40 I think, although i am not sure, that the problem lies in your use of the this. Jan 18 09:11:56 yeah i have tried with and without this. Jan 18 09:12:07 where did you declare your genRandom function? Jan 18 09:12:13 I mean what is it inside of? Jan 18 09:12:30 it is inside of my main-assistant.js, just above the other code Jan 18 09:12:43 is it inside of any other functions? Jan 18 09:12:47 nope Jan 18 09:13:54 alright just give me a minute and I'll have an answer Jan 18 09:14:09 kk, i am going to find one of those pastebins and paste the code Jan 18 09:14:40 okay Jan 18 09:14:43 ya there? Jan 18 09:15:00 yep Jan 18 09:15:13 the correct way to reference this function would be to do the following Jan 18 09:15:18 this.whatever = getRandom(); Jan 18 09:15:38 I'm sorry it was so difficult to get an answer I was just trying to figure out what you were asking Jan 18 09:16:03 no worries, i totally understand, i just dont talk javascript lingo yet (or syntax obviously) Jan 18 09:16:22 it's not a problem, neither do I to some extent Jan 18 09:16:46 I think what that does is brings your function into the scope of everything it will be operating around, but I'm not sure so don't quote me on that Jan 18 09:17:40 actually no Jan 18 09:17:52 I can reference my function without having to do that Jan 18 09:18:07 but whateva! if it works, it works Jan 18 09:18:11 haha Jan 18 09:18:20 ok i will fiddle and see if i can get that to work Jan 18 09:18:21 ugh now I'm so confused Jan 18 09:18:29 well let me know Jan 18 09:25:37 aha! i got it Jan 18 09:26:14 i declared teh function Jan 18 09:26:14 this.genRandom = function(){} inside the MainAssistant function, it works, not sure why, but i am happy regardless Jan 18 10:40:12 aynone awake? Jan 18 11:00:49 maybe Jan 18 11:41:15 need some help with transition Jan 18 11:42:18 what I do is: var transition = this.controller.prepareTransition(Mojo.Transition.crossFade, false); Jan 18 11:42:18 this.displayPage(); Jan 18 11:42:18 transition.run(); Jan 18 11:42:25 but it doesn't work Jan 18 11:44:57 Anyone know how to get rid of the fader image that the Commandmenu generates at bottom of screen? Jan 18 11:55:13 class: "fade" or class: "no-fade" ? Jan 18 12:21:23 heh it was menuClass: 'no-fade' Jan 18 12:21:43 anyone know how to make a global varible that all scenes can access? Jan 18 12:25:53 just make var gblVar = 0; in your stage-controller Jan 18 12:26:13 put it in the beginning of the file before the class definition Jan 18 12:29:22 hrmm Jan 18 12:33:49 well, how can I center the commandMenu? The calendar does it but I can't see how. Jan 18 13:30:16 how do i activate a function on the other scene that i swap too Jan 18 13:31:20 n/m Jan 18 13:31:36 swap and the call this function? Jan 18 13:33:28 the/then Jan 18 13:34:26 there is a way to pass a parameter into a scene Jan 18 13:34:38 hrmm Jan 18 13:34:47 i'm having trouble keeping the scene the same Jan 18 13:34:55 basicaly i have a music player scene Jan 18 13:35:00 and a song selector scene Jan 18 13:35:10 i want the player to still be running when I pick a new song Jan 18 13:35:24 however when I swap scenes it seems to lose it's original data Jan 18 13:35:57 you pop up the selector scene Jan 18 13:36:07 the old scene remains in the background Jan 18 13:36:11 is scene stacking Jan 18 13:36:28 FreeTim: just add the parameter after the scene name Jan 18 13:36:50 it will become an argument in the assistant constructor Jan 18 13:36:56 i thought swapscene would keep it remaining in the background Jan 18 13:37:05 becaus I don't want them to be able to cancel backwards Jan 18 13:37:27 cancel backwards? Jan 18 13:37:32 popscene back to it Jan 18 13:37:37 when you gesture backwards Jan 18 13:37:38 alternative method, is to have each scene call a function that actually resides in sceneManager Jan 18 13:37:59 crasheed: I guess you can catch the back gesture Jan 18 13:39:59 Both scenes need data to be static when I swap between them so if I have one that pops i'd lose the data on that scene Jan 18 13:40:11 i need a way to keep Both scenes active and be able to swap between them Jan 18 13:41:06 hrmm Jan 18 13:41:14 I GUESS i could make it all one scene Jan 18 13:41:17 and Hid half of it Jan 18 13:41:22 when I switch between them LOL Jan 18 13:41:43 but thats such bad programming >.< Jan 18 13:42:22 why do you need the song select open? Jan 18 13:42:40 because it generates it's song list and displays it Jan 18 13:42:44 you have the player open and pushs the song select on the stack when you need ot Jan 18 13:42:45 it Jan 18 13:42:48 if I pop it I lose the generated list Jan 18 13:43:03 no, the list is part of the player scene Jan 18 13:43:14 and the song list only access it when needed Jan 18 13:43:36 the lists are not stored on the phone Jan 18 13:43:49 they are dynamically generated off the internet based on user selections Jan 18 13:44:39 i could try storing the list after it gets generated i guess Jan 18 13:44:55 and then check to see if it exists and load it again when they switch to the song list Jan 18 13:45:28 or you just stores the list in a cookie or db and retrieve it when you need it Jan 18 13:47:25 hrmmm Jan 18 13:47:36 hRMMMMM Jan 18 13:47:55 so many ways to tackle this problem... Jan 18 13:52:40 how would i catch the back gesture? Jan 18 14:37:25 goodmorning Jan 18 14:37:38 hey atlanta Jan 18 14:37:46 haeffb_mlk: hey hye Jan 18 14:40:54 what are we tackling today? Jan 18 14:42:44 i have to polish my character counter Jan 18 14:42:56 and then adding a dashboard to my app Jan 18 14:43:00 wish me luck on the last part Jan 18 14:43:15 dashboards are cake. Jan 18 14:43:35 I can provide example... Jan 18 14:44:14 oh lala Jan 18 14:44:15 i like Jan 18 14:44:17 go for it please Jan 18 14:44:18 :-) Jan 18 14:44:49 http://pastie.org/ Jan 18 14:45:16 well...which part? Jan 18 14:45:27 do you have multi-stage working yet? Jan 18 14:45:59 as in: http://www.webos101.com/Multi-Stage_Applications Jan 18 14:55:07 haeffb_mlk: not yet Jan 18 14:55:13 i have to implement all that when i get home Jan 18 14:55:57 Ok, start there. I'll be around most of today. Let me know when you get to coding... :) Jan 18 14:56:02 okie dokie Jan 18 14:56:14 i wish i got my Wake-On-Lan to work Jan 18 15:19:36 * sugardave never has trusted WoL. Jan 18 15:20:09 when the spec first emerged, it took about 30 minutes for us non-programmers to forge packets to machines and power them of at will Jan 18 15:20:11 not a good sign Jan 18 15:22:35 sugardave: need a SQLite command to delete * from table where x < date < y... ? Jan 18 15:22:45 do I need one? Jan 18 15:22:54 no, I do... :) pretty please! Jan 18 15:22:59 oh, hehe Jan 18 15:23:02 let's see Jan 18 15:23:31 adding a purge data to Milez. Jan 18 15:24:45 delete from table where date < x and date > y Jan 18 15:24:46 ? Jan 18 15:26:05 yes Jan 18 15:26:11 did it work> Jan 18 15:26:12 ? Jan 18 15:26:42 god I hate Lotus Notes Jan 18 15:26:56 Oh. I haven't coded it yet. Just wondering how to go about it when I get there. If it's that simple, should be no problem Jan 18 15:27:10 that should do it, I think Jan 18 15:27:11 * haeffb_mlk uses Notes @ work Jan 18 15:27:26 me, too...fresh reboot last night and the damn thing still won't start Jan 18 15:27:55 I'm an end-user, not support. Jan 18 15:28:24 I'd kill myself if I had to support Notes...do you work a tIBM or do they actually have suckers beyond the company that use it? :D Jan 18 15:31:14 Mo DOT Jan 18 15:31:28 ah Jan 18 15:31:37 well, time for another reboot, yay! Jan 18 15:31:42 we were an IBM shop long ago. mainframes Jan 18 15:40:05 Pampeldibuh_: I think, you can create a global constant in Stage assistant? That should work but i'm not sure if it's best-practice... but I'll let others comment here too? Jan 18 15:40:59 global constant for what? Jan 18 15:50:21 I need an idea for a new app to write... is there a wiki for app requests? Jan 18 15:55:36 morning Jan 18 15:55:54 FreeTim: i've seen people post app requests on precentral Jan 18 16:15:05 ok, thanks - I'll head on over there Jan 18 16:21:32 FreeTim: write an image manipulation programm Jan 18 16:22:05 Toaster: not easy, you can't access the image data in a canvas Jan 18 16:22:45 MetaView: he didnt say he wants something easy :P Jan 18 16:22:50 MetaView: FreeTim didn't say he wanted easy Jan 18 16:22:51 doh Jan 18 16:23:06 right Jan 18 16:23:35 * sugardave duct tapes Roy to the channel. Jan 18 16:23:45 damn, didn't work Jan 18 16:25:47 hey all Jan 18 16:27:33 sugardave: about to test the purge... Jan 18 16:28:44 this no workie: var sql = "DELETE * FROM 'mileageEvents' WHERE date > ? AND date < ?;"; Jan 18 16:29:05 var args = [this.beginDate, this.endDate]; Jan 18 16:29:57 haeffb_mlk: don't use * Jan 18 16:30:02 DELETE FROM .... Jan 18 16:30:07 that's what sqlite.org says, too Jan 18 16:30:16 hmmm Jan 18 16:30:31 I think I have a delete somewhere, let me see if I can dig it up Jan 18 16:31:27 * sugardave waits for Komodo Edit to find its hamsters. Jan 18 16:31:53 hmmmm... says it deleted records, but they're still there.... Jan 18 16:32:51 ok im back Jan 18 16:32:54 sugardave: wsup my mamn Jan 18 16:34:52 atlanta: hey, looking for a delete sqlite example for haeffb_mlk Jan 18 16:35:04 i can help with that Jan 18 16:35:25 var sql = "DELETE FROM 'mileageEvents' WHERE date > ? AND date < ?;"; Jan 18 16:36:00 do need parens around the (date >...)? Jan 18 16:36:13 yea that will help Jan 18 16:36:28 haeffb_mlk: shouldn't HAVE to....my only delete example just deletes everything from a cache table Jan 18 16:36:53 haeffb_mlk: are your dates integers or text strings? Jan 18 16:36:54 what do u ahve replacing the ? Jan 18 16:37:18 ah. that's the problem. need to convert to milliseconds. Jan 18 16:37:22 duh Jan 18 16:37:24 heh Jan 18 16:37:52 BINGO! Jan 18 16:38:01 MARCO! Jan 18 16:38:01 and you can ditch the ";" from your query, too Jan 18 16:38:03 POLO! Jan 18 16:38:37 var sql = "DELETE FROM 'mileageEvents' WHERE (date > ? AND date < ?)"; Jan 18 16:38:37 var args = [this.beginDate.getTime(), this.endDate.getTime()]; Jan 18 16:38:53 coolness Jan 18 16:39:22 * sugardave might be going to India in a couple weeks. Jan 18 16:39:36 awesome. what fer? Jan 18 16:40:00 some "face-to-face advanced training" some of our customers/partners need Jan 18 16:40:17 I want to ride on an elephant Jan 18 16:41:45 cool cool Jan 18 16:41:49 who doesn't? Jan 18 16:42:13 * haeffb_mlk wondering if I should tackle exporting to google spreadsheet today. Jan 18 16:43:30 elephants are awesome! Jan 18 16:43:49 AND I want to avoid the plague....good advice from Seinfeld Jan 18 16:45:08 all i know, is do not ever screw over an elephant... they never forget Jan 18 16:45:10 avoid plague like it's the plague. Jan 18 16:46:50 next question: how do I find the earliest date in the table? Jan 18 16:47:59 SELECT * FROM table WHERE date DESC Jan 18 16:48:38 LIMIT 0,1; Jan 18 16:48:46 if possible Jan 18 16:49:04 or SELECT MIN(date) FROM TABLE Jan 18 16:51:16 MetaView: can't you also use DESC and ASC? Jan 18 16:51:32 ORDER BY date ASC Jan 18 16:51:37 yeah Jan 18 16:52:01 mornin' chuqui Jan 18 16:52:13 guten morgen chuqui Jan 18 16:52:39 * haeffb_mlk likes the SELECT MIN(date) FROM Jan 18 16:52:58 * sugardave makes note that MetaView is the person to bug for SQL commands. Jan 18 16:52:59 ;) Jan 18 16:53:28 sugardave: very true Jan 18 16:53:32 chuqui: in case you missed it, you have to register with nickserv to have a voice here now Jan 18 16:53:47 no more searching for sql statements Jan 18 16:53:50 hm, I'm the one-eyed... Jan 18 16:53:59 haha Jan 18 16:54:03 and always have to search for the correct syntax Jan 18 16:54:14 especially with INSERT vs. UPDATE Jan 18 16:54:41 yeah, update gets me every time Jan 18 16:55:04 INSERT OR REPLACE INTO ... blah blah blah is my current favorite Jan 18 16:56:34 I always confuse DESC and ASC Jan 18 16:58:53 sql is ur friend Jan 18 16:59:45 ASC starts low, DESC starts high Jan 18 16:59:47 sugardave: that is what I was looking for a month ago... Jan 18 16:59:55 haeffb_mlk: ooops :D Jan 18 17:00:21 i prefer storing important data in a text file, without any encryption... Jan 18 17:01:14 * haeffb_mlk can't figure out what is being returned from the SELECT MIN(date) transaction... Jan 18 17:01:35 LoneStar99: thats the way to do it Jan 18 17:02:02 haeffb_mlk: sqlite3 it Jan 18 17:02:32 LoneStar99: I write it on a post-it and stick it on the edge of my monitor. Jan 18 17:02:53 I would, but I can never remember how to sqlite3 it. Jan 18 17:03:01 * haeffb_mlk fires up putty Jan 18 17:03:06 FreeTim: I have an app idea for you...morse code via the LED flash Jan 18 17:03:35 sugardave: cool idea! Jan 18 17:03:37 type a message, the flash does the Morse for you Jan 18 17:04:05 then also use the camera to interpret Morse Code Jan 18 17:04:30 it could be like text messaging, only from 10 feet apart Jan 18 17:04:33 haeffb_mlk: yeah, that's awesome Jan 18 17:04:34 hehe Jan 18 17:04:45 morning all. Jan 18 17:04:53 'bout time you woke up Jan 18 17:05:00 secret messages to your friends at the bar and no one will be the wiser Jan 18 17:05:05 where's my database stored? Jan 18 17:05:16 /var/home/root/html5databases Jan 18 17:05:18 is the start Jan 18 17:05:19 'cept for the blinding flashes of light Jan 18 17:05:26 sugardave: can u get the camera to read it Jan 18 17:05:31 then it's like .file_media...something or other Jan 18 17:05:38 * atlanta wishes pre had auto focus Jan 18 17:06:05 atlanta: _I_ can't, but I bet some genius (FreeTim) can Jan 18 17:06:17 oh lalala Jan 18 17:06:24 cant wait until the low level sdk is out Jan 18 17:06:41 anyone ever seen appulo.us Jan 18 17:06:41 ? Jan 18 17:07:22 no, but my DNS seems to hate it Jan 18 17:07:23 don't see my db in there. those are palm db's Jan 18 17:07:41 there should be one that's got your app id embedded in it Jan 18 17:07:47 unless you're using 'ext:' Jan 18 17:08:01 yes, I'm using ext: Jan 18 17:08:03 ah Jan 18 17:08:08 okay...let's see if I can remember Jan 18 17:08:13 sugardave: the server is overloaded Jan 18 17:08:18 /media/internal/.app-storage Jan 18 17:08:21 is the start, I think Jan 18 17:08:22 sugardave: its a site to get any paid app from apple for free Jan 18 17:08:35 that's it. thanks Jan 18 17:08:58 atlanta: that seems like it wouldn't last very long... Jan 18 17:08:59 haeffb_mlk: SELECT min(date) AS test FROM Jan 18 17:09:11 sugardave: from what my friend says he's been using it for a min Jan 18 17:09:21 sugardave: they found a flaw in the appstore so to speak Jan 18 17:09:27 ya think? :D Jan 18 17:09:27 wonder if thats possible with the pre Jan 18 17:09:52 I hope not Jan 18 17:10:00 Hi chuqui Jan 18 17:10:06 do you have a second for me? Jan 18 17:10:13 chuqui: I send you an email with the please to enable me to the SDK early access program. You answered me that I have to agree to the rules and send back an empty mail. I did so. But since then I never heard from you Jan 18 17:11:06 Logdog82: you agreed to the emptiness Jan 18 17:11:09 yup. will get to it shortly. it's called -- gasp -- the weekend... (giggle) Jan 18 17:11:09 is someone gonna slap him with a large trout Jan 18 17:11:10 ? Jan 18 17:11:10 Logdog82: if you gave him your forum login name, it might already be done Jan 18 17:11:19 I was mostly offline, and I didn't go into the office this weekend. Jan 18 17:11:19 log in and see if you can see the private forum (near the bottom) Jan 18 17:11:29 starting on that stuff now. Jan 18 17:11:36 or listen to chuqui, instead of me :D Jan 18 17:11:46 * atlanta slaps Logdog82 with a large trout Jan 18 17:11:51 :-) Jan 18 17:11:57 sugardave: I don't see a private forum Jan 18 17:12:02 hi hi hi atlanta Jan 18 17:12:07 then you're not set yet... Jan 18 17:12:11 you will be Jan 18 17:12:16 oh. Really? Jan 18 17:12:31 I presume you will... Jan 18 17:12:38 * atlanta wonders if they will give me early access just to learn and create after i learn C/C++ Jan 18 17:12:48 would be nice if chuqui would enable me to the program :) Jan 18 17:12:49 but it's not up to me (though $100 in an envelope MIGHT help you) Jan 18 17:13:06 maybe I'll wait a week or so.. Hmm. Jan 18 17:13:10 haha Jan 18 17:13:13 random question for game developers / sellers in the app catalog. Do you think that the new SDL and opengl native apps seriously threaten sales of any game written for mojo? Jan 18 17:13:23 By the way: this is very important I think: http://developer.palm.com/distribution/viewtopic.php?f=21&t=4464 Jan 18 17:13:49 chuqui: when my first app seems to have a ID of 106 (at leats in the appetit project) am I supposed to get an Amazone voucher? :) Jan 18 17:14:02 destinal: yes, I look at Mind Master and think to myself "Self, it sure is a good thing you got this in early, because soon it's going to look even more like a pre-schooler's first project." Jan 18 17:14:13 when I"m in sqlite, how to I get back to command prompt? Jan 18 17:14:18 ctrl-d Jan 18 17:14:29 destinal: no, I don't think so, there is always room for causual games Jan 18 17:15:43 logdog82 - just replied to that thread. Jan 18 17:15:45 Ok, the command works in sqlite, just gives the date. Jan 18 17:15:58 and I guess I don't mean to restrict opinions to just those people developing or selling games today, any feedback is good, but it does seem like most of them would have a strong opinion Jan 18 17:16:09 but I can't figure out where it lives in results from the db.transaction. Jan 18 17:16:15 results.rows.length=1 Jan 18 17:17:14 AS Jan 18 17:17:25 SELECT xyz AS zyx Jan 18 17:17:34 then you access it using zyx Jan 18 17:17:40 tried AS test. results.rows[0].test is undefined Jan 18 17:17:41 Also, a big I'd have is that, by giving new tools and sdk materials exclusively to large corporate interests and then allowing them to sell apps for months before anyone else can, doesn't it create an artificially uneven playing field? Jan 18 17:17:54 err a big _concern_ (that should say) Jan 18 17:18:27 destinal: yes, it does but so do they all Jan 18 17:18:39 haeffb_mlk: hm, that's a pity Jan 18 17:19:01 basically, where's the openness? Jan 18 17:19:06 but what about toJSON to view the content? Jan 18 17:19:20 sugardave: who gets an amazon voucher? Jan 18 17:19:43 results.test is undefined Jan 18 17:19:44 haeffb_mlk: results.rows.item(0).test, perhaps? Jan 18 17:20:09 LoneStar99: I don't know :D Jan 18 17:20:22 woohoo! Jan 18 17:20:25 are peeps still getting them? Jan 18 17:20:27 thanks sugardave Jan 18 17:20:29 np Jan 18 17:20:48 * sugardave loves his old Mojo Storage Database article. Jan 18 17:20:51 brb need to recycle some cans Jan 18 17:21:31 destinal: yes, those are very valid concerns....if I were trying to make a living at it, I'd probably be more aggressive about my feelings Jan 18 17:25:03 thanks chuqui_napping for the reply. I just answered now Jan 18 17:39:55 chuqui_napping: are you guys going to reinstate our colorfulness at the dev forum? Jan 18 17:41:05 sugardave: colorfulness? Jan 18 17:41:12 sugardave -- need to look into that. When I open up the hood, I'd like to do something a bit more -- notable -- than that, actually. Jan 18 17:41:26 so I'm not pushing to change that, but to figure out what it ought to be first. Jan 18 17:41:45 (special icons and titles, not just colors. etc) Jan 18 17:41:47 destinal: yeah, for a while we could tell who the Palm peeps were and some of the contributors were a different color....we stood out Jan 18 17:42:05 chuqui_napping: cool, I liked it Jan 18 17:43:42 unfortunately (or maybe fortunately) I can't just go in and start tweaking the layout. I need to get others involved. Jan 18 17:43:54 I guess I'm awake.. (yawn stretch) Jan 18 17:44:36 chuqui: well, I guess getting email subscriptions to work is probably more important ;) Jan 18 17:46:03 chuqui: a beta app, of a paid app can be submitted? Jan 18 17:46:08 sugardave @#$%!@#!@%@##!@#! Jan 18 17:46:15 sugardave oh, it's no big deal... Jan 18 17:46:51 haha Jan 18 17:47:24 lonestar99 yeah; personally, I'd treat it as a trial and use a different appID. Jan 18 17:48:24 hmmm.. interesting and the beta can be downloded worldwide? Jan 18 17:53:16 sugardave: messing with list selector now, looks sweet! Jan 18 17:57:48 wow. BSOD on Vista. first time I've had that happen Jan 18 17:59:01 haeffb: yesterday, my win7 would not come out of standby, had to reboot, Jan 18 18:00:04 about 20% of the time, coming out of standby, nothing more than a black screen appears.... Jan 18 18:00:14 chuqui: http://developer.palm.com/distribution/viewtopic.php?f=20&t=4467 Jan 18 18:00:46 BSOD happened when I hit run button in eclipse. Jan 18 18:01:38 %#$@ Eclipse Jan 18 18:02:27 haeffb: komodo Jan 18 18:02:49 haeffb: that is weird even more so, eclipse is running on java, is it not? Jan 18 18:03:35 who knows what was going on. Hitting the run button to run on device, so palm-package, palm-install, palm-launch, etc. Jan 18 18:07:22 sugardave: if I need to pass the list selector value to another part of script? what do I use? using this code: http://www.webos101.com/ListSelector Jan 18 18:09:41 LoneStar99: it's going to event.model.value, most likely...assuming you're passing it from the propertyChanged handler Jan 18 18:13:07 LoneStar99: this.optionModel.value Jan 18 18:14:24 oh yeah, as I discovered, that will be automatically updated won't it? Jan 18 18:14:26 haeffb saw the link. will toss it toward an engineer Jan 18 18:14:34 danke Jan 18 18:14:57 so it would be: "&mobile=" + this.optionModel.value ? Jan 18 18:15:13 yep Jan 18 18:15:36 righton! Jan 18 18:15:55 gracias amigos Jan 18 18:25:00 would I use: {label: "Canada", value: "Canada"}, or {label: "Canada", value: Canada}, with out qoutes Jan 18 18:26:39 unless Canada is a var you need quotes Jan 18 18:27:15 oh damn, I'm an hour late for naplunch Jan 18 18:27:17 bbiaw Jan 18 18:30:22 thanks sugardave Jan 18 18:38:36 does a microwave affect wifi signal anybody know? Jan 18 18:38:41 oven Jan 18 18:39:47 lonestar99 yes, they definitely can Jan 18 18:40:35 in da kitchen, and the microwave is on, and the wifi is very sporatic... Jan 18 18:41:16 now the microwave is off, and da signal is back to normal... Jan 18 18:43:58 maybe it's da chicken in the microwave sending out crazy EMF wifi signals Jan 18 18:51:47 FYI: to show the difference between two dates in days, hours, mins: Jan 18 18:51:48 var diff = new Date(d2-d1); Jan 18 18:51:48 thisMiles.timeDiff = diff.getUTCHours() + " hrs " + diff.getUTCMinutes() + " mins"; Jan 18 18:51:48 thisMiles.timeDiff = (diff.getUTCDate()-1) ? diff.getUTCDate()-1 + " days " + thisMiles.timeDiff : thisMiles.timeDiff; Jan 18 19:00:48 can I call the follwing 'this.controller.setupWidget("sCat",' 'this.category. setupWidget("sCat",' ?? Jan 18 19:01:22 have two list selectors but need to differentiate b/w them Jan 18 19:01:56 call = name Jan 18 19:07:04 is it possible to take screenshots in the emulator? Jan 18 19:10:03 how can I rename 'this.controller.setupWidget("scat",...' my above test did not work Jan 18 19:10:48 i have of the same widgets but both handle different information Jan 18 19:11:09 i have two of ... Jan 18 19:12:57 LoneStar99: I can't understand your question Jan 18 19:13:15 why isn't it possible to have the USB function + a working device? Jan 18 19:13:20 LoneStar99: give each list selector a different id="xxx" in your html Jan 18 19:13:28 kmudrick: not sure how exactly but if you hold down orange+sym+p on the keyboard it will take a screenshot, just have to figure out what those buttons map to on the emulator Jan 18 19:13:46 haeffb: i have but only one shows up Jan 18 19:13:53 there are desktop screenshot apps, which are easier to use for this Jan 18 19:13:54 kmudrick: I haven't seen a way to screenshot Jan 18 19:14:05 LoneStar99: must work Jan 18 19:14:16 digitalpowers: yeah, docs say the sym button is not yet mapped Jan 18 19:14:22 LoneStar99: in html you would put id="scat1" and id="scat2" Jan 18 19:14:29 MetaView: that is probably a good idea, thanks Jan 18 19:14:32 ok let me check it out Jan 18 19:14:37
Jan 18 19:14:44 then setupWidget('scat1', ...) setupWidget('scat2') Jan 18 19:14:49 you could always do alt+printscreen in windows, then you just have to chop the emulator window off Jan 18 19:15:58 * haeffb gets pissed when eclipse and emu stop talking to one another. Jan 18 19:16:08 "can't we all just get along?" Jan 18 19:18:21 MetaView: had the list disabled... idiot... Jan 18 19:18:40 haeffb: well, I use the device usually, but there I get from time to time the "app-will-not-be-able-to-install"-problem, only help is dumping the vers-number Jan 18 19:18:50 LoneStar99: hm :) Jan 18 19:36:18 morning all Jan 18 19:37:28 hi everyone Jan 18 19:38:25 actually, looks like you can take screenshots in the emulator with luna Jan 18 19:40:23 i am developing an application for a fund raisng project for a company named SEETA and in that application i want to represent the data in tabular form.. Jan 18 19:40:38 So can anyone tell how can i do so Jan 18 19:43:04 http://developer.palm.com/distribution/viewtopic.php?f=11&t=2237 - mentions how to take screenshots in the emulator btw Jan 18 19:49:52 is there a way to shrink the width of a text field? Jan 18 19:50:39 put it into a table? Jan 18 19:51:16 will that work> Jan 18 19:51:18 ? Jan 18 19:51:33 hi any developer around who has experience in porting a glib/sdl based application to webos? Jan 18 19:51:45 how about in the widget setup ... Jan 18 19:54:24 hey please tell me how can i display data in tabular form Jan 18 19:54:25 ? Jan 18 19:54:51 Yatharth: Do you know how to create a table in HTML? Jan 18 19:55:14 cmusik: join #webos-internals Jan 18 19:55:51 yes i know Jan 18 19:56:07 MetaView: I alredy asked there, maybe I will try again Jan 18 19:57:22 I haven't really had a look into it Jan 18 19:58:01 But how can i do it in webos application Jan 18 19:59:43 webos app: 1 file html, 1 file javascript Jan 18 19:59:59 html:
... Jan 18 20:03:58 hmm.,. anyone know the PROPER way to update a list widget? Should I re-set it up? Jan 18 20:04:13 As it stands, I update the model and do modelChanged() Jan 18 20:04:34 but the list seems to leave weird gaps if its shorter than it previously was Jan 18 20:09:14 MetaView:ya i know the syntax used in html...But will this work directly in webos?? Jan 18 20:12:06 Yatharth: webos is html/javascript. Have you created a webos app yet? Jan 18 20:14:31 AnOutsider: you can also look at listWidget.mojo.noticeUpdatedItems(), .setLength() and .setCount() Jan 18 20:19:58 this is the first application which i m building Jan 18 20:20:10 kmudrick: FYI, in Windows, you can unlock the keyboard from the emulator. Foucs it, then hold right-ctrl...it will shut off the little green arrow at the bottom right of the virtualbox window. Then, you can do a regular ctrl-alt-prtscr. Of course, you have to crop that one Jan 18 20:20:49 so i am facing quite a few problems and there is not much stuff given from where i can learn it Jan 18 20:21:27 anyone here facing difficulties when updating their apps? Jan 18 20:22:04 bryanroth: yes Jan 18 20:22:26 Yatharth: have you done the "hello world" app to get a feel for what's going on? Jan 18 20:22:29 bryanroth: chuq says patches will be rolled out on wed to address them Jan 18 20:23:42 ya i have done that Jan 18 20:24:01 what format is your data? Jan 18 20:25:26 @haeffb I figured it out. I was hiding its parent container then showing it again. When you do that, you have to call showWidgetContainer Jan 18 20:26:05 by format u mean the fields of the table which i want in my table ?? Jan 18 20:26:25 or the from in which i want to store the data Jan 18 20:26:32 *form Jan 18 20:26:50 by format, I mean where/what is your data? can you get it into a javascript object? Jan 18 20:27:02 store the data Jan 18 20:27:36 one way to accomplish what you want to do is just create a
in your scene html file. Jan 18 20:27:50 though right now i have not stored the data anywhere but i would use the html 5 database object to o so Jan 18 20:28:08 ok...the? Jan 18 20:28:14 *then? Jan 18 20:29:05 Then in javascript, you can do things like tempText = "..." Jan 18 20:29:27 then this.controller.get('myTable').innerHTML = tempText; Jan 18 20:30:57 that's one approach. Jan 18 20:31:35 Another would be to use a list widget, and put each row of the tabular data in a row of the list, using CSS to style/format the data Jan 18 20:33:21 can you please eleborate the second method Jan 18 20:34:31 have you compiled/ran the styleMatters, uiWidgets and mojoMatters apps? Jan 18 20:34:44 * sugardave needs to find the mojoMatters app. Jan 18 20:34:54 the table method is probably the better one Jan 18 20:35:15 mojoMatters is quite nice, shows some tricks Jan 18 20:35:43 is it in the samples or do I need to track it down on the dev site? Jan 18 20:37:40 is in the samples Jan 18 20:37:51 but probably came in one of the last SDKs Jan 18 20:37:53 oh, THERE it is :D Jan 18 20:37:59 under one more dir Jan 18 20:38:02 just stumbled upon some weeks ago Jan 18 20:39:46 ya i have ran stylematters and mojomatters Jan 18 20:40:52 ok i'll look into there source codes Jan 18 20:43:53 * haeffb learns not to submit updates to PreCentral over the weekend... Jan 18 20:44:16 hwy? Jan 18 20:44:49 hmm...mojo matters = blank screen :D Jan 18 20:44:50 they pile up and don't get "published" until the end of the weekend. Along with a dozen other apps. Jan 18 20:45:02 sugardave: you're doing it wrong. Jan 18 20:45:08 I guess so Jan 18 20:45:26 oh, maybe I should copy over the source Jan 18 20:45:29 heh Jan 18 20:45:51 mojoMatters has some funnies Jan 18 20:46:36 there we go Jan 18 20:47:10 so does the number of downloads listed in Palmdev site include updates or unique installs? Jan 18 20:47:22 includes updates Jan 18 20:47:26 damn Jan 18 20:47:33 it does? Jan 18 20:47:35 so it's not a good basis for how much earned Jan 18 20:47:37 I thought not Jan 18 20:47:44 now I will have to look again Jan 18 20:48:24 yea i thought it would be unique installs but havn't been paied yet so dunno Jan 18 20:48:28 I don't know haeffb...I think it's purchases Jan 18 20:48:50 have you been paid sugardave and is it consistant with the number on yer dev account? Jan 18 20:48:57 maybe. last I heard it included updates. Jan 18 20:48:58 yeah, it seems to be pretty close Jan 18 20:49:12 wait, are you talking about in the reports? Jan 18 20:49:18 yeah, My Apps Jan 18 20:49:20 crasheed: I'm quite sure it is with updates Jan 18 20:49:24 number should be purchases Jan 18 20:49:41 ok, I thought of appetite Jan 18 20:49:41 the app catalog patch thing definitely includes updates Jan 18 20:49:47 I'm not talking about FEEDS but under your developer account PALMDEV SITE Jan 18 20:49:58 crasheed: pretty sure that's total purchases Jan 18 20:50:02 kk coo Jan 18 20:50:46 crasheed: we're pretty sure it's one or the other. Jan 18 20:50:53 btw funny story Jan 18 20:51:01 my puppy ate my 8gig usb drive Jan 18 20:51:10 luckly i tied a string to it Jan 18 20:51:24 soo i chased him around and managed to pull it out via the string Jan 18 20:51:48 begs the question: do you always tie a string to usb drives? Jan 18 20:51:56 I was wondering... Jan 18 20:52:13 bbl Jan 18 20:52:17 yes when my usb drive is the width and height of a quarter I'd lose it without the string :D Jan 18 20:52:39 crasheed: you should just buy bigger usb drives. save on string Jan 18 20:52:46 rofl Jan 18 20:53:33 or wait a day or two... Jan 18 20:53:47 lol i'm not sure i'd want the USB drive back after a day Jan 18 20:53:56 :) Jan 18 20:54:37 have a cookie which stores multiple values, and need it to save values at different times, scenes, etc.. do not want to be adding the same code over and over.. what is better solution? Jan 18 20:55:12 LoneStar99: hang tight, I'll show you my latest trick Jan 18 20:55:22 sugardave: ok thnaks Jan 18 20:55:57 do not want to write "save" "get" cookie 5 different times in my assistant.js file Jan 18 20:56:18 I make one cookie for one value Jan 18 20:56:31 and I save on cleanup and load on setup Jan 18 20:58:23 MetaView if you do that, and the pre crashes, or the user's battery dies, or he does a hard power off, your data didn't get updated. Jan 18 20:58:52 ---> Puppy vs USB drive http://sudopanda.com/images/CIMG0712.jpg Jan 18 20:59:07 LoneStar99: http://webos.pastebin.com/d434e04b0 Jan 18 20:59:42 Rick_work: well, it's config, that wouldn't be a big problem Jan 18 21:00:02 k Jan 18 21:00:12 comments welcome on my cookie object management Jan 18 21:00:13 I write programs with "more complex data management." Jan 18 21:00:32 for that I use databases Jan 18 21:01:11 sugardave: ok looking at the code Jan 18 21:01:40 pretty straightforward stuff....but lets you update single properties in the cookie...just always have to make sure to keep the dough updated Jan 18 21:02:13 sugar i like yer naming scheme :D Jan 18 21:02:36 thanks :D Jan 18 21:03:01 Btw anyone know how to catch the back gesture? Jan 18 21:03:07 don't want people poping scenes Jan 18 21:03:56 crasheed: I know it's possible, but never done it Jan 18 21:04:08 or at least disable back gesture? Jan 18 21:05:34 sugardave: if I need to load the cookie, when 1.) app is launched 2.) scene activated 3.) button clicked ... with your code, where would I place the main code? Jan 18 21:06:23 you only need to load the cookie once Jan 18 21:06:36 I'd put it in my app or stage controller Jan 18 21:06:49 1.) load cookie settings 2.) save a new value 3.) save new value = cookie calls above Jan 18 21:07:27 hmm Jan 18 21:08:59 LoneStar99: this is my loadCookies function: http://webos.pastebin.com/d42143949 Jan 18 21:09:37 and it goes in my stage controller, and gets called in the stage controller setup before pushing my first scene Jan 18 21:12:14 place main code in the "stage controller" then in 1.) inside "ThisAssistant.prototype.setup" place code from http://webos.pastebin.com/d42143949 is that right? Jan 18 21:12:46 no, that second paste is a standalone function that also goes in your stage assistant Jan 18 21:13:06 man, my in box is winning. Jan 18 21:13:09 then in ThisAssistant.prototype.setup you call loadCookies() Jan 18 21:14:06 chuqui: the most popular man in Sunnyvale? Jan 18 21:14:36 oh ok, then - to call emailAddress' and 'password' ?? Jan 18 21:15:07 NameSpace.cookies.cookieName.dough.emailAddress Jan 18 21:15:33 and you ALWAYS update those values, then call the bake function Jan 18 21:15:35 NameSpace.cookies.cookieName.dough.password ....etc.... Jan 18 21:15:38 won't be popular long if I don't some of these emails dealt with... Jan 18 21:15:38 yes Jan 18 21:17:13 this email says I can use their product to 'make my pleasure and my satisfaction deeper' Jan 18 21:17:26 if there's one thing I can't stand, it's shallow satisfaction Jan 18 21:17:29 chuqui: it would appear as though you need assistants or help Jan 18 21:17:36 sugardave: thought I was about to wrap up on my app udate, but now need to update all the cookie code... Jan 18 21:17:49 such is life Jan 18 21:17:50 :D Jan 18 21:18:52 oh well, your code is alot better, than adding redundant code 5 times.... in the same .js file Jan 18 21:19:01 indeed Jan 18 21:19:03 peak loading vs average load issue Jan 18 21:19:58 thanks sugardave, will begin to update all my code! Jan 18 21:20:15 np Jan 18 21:21:10 no warranty expressed or implied, by the way ;) Jan 18 21:21:24 morning Jan 18 21:21:43 afternoon, rwhitby Jan 18 21:21:57 good evening Jan 18 21:22:23 so when is 1.4 supposidly comming out again? Jan 18 21:22:25 feb1? Jan 18 21:22:32 i'm so afraid it's gona break my app Jan 18 21:22:56 chuqui: so, I got my first Palm payment last month...which was awesome. I remember that it was before the actual end of the month...should we be looking for payments around that same time each month, or is it more fluid than that? Jan 18 21:22:58 casheed it's a sekrit. of course. but you can test against the seed, just get in the early access program Jan 18 21:23:06 howdy rwhitby Jan 18 21:23:30 how often are payments? Jan 18 21:23:31 sugardave so when do I get my 10% "bonus" for being so helpful? Jan 18 21:23:33 (ducking) Jan 18 21:23:42 Is anyone able to test the latest Preware with a combination of homebrew and app catalog updates available, and pushing the "Update All" button? Jan 18 21:23:43 sugardave should be right around the same time every month Jan 18 21:23:49 chuqui: hey, come on to Austin and I'll give you your "bonud" Jan 18 21:23:53 bonus, too Jan 18 21:24:01 chuqui: cool, thanks! Jan 18 21:25:15 chuqui: how often are payments? Jan 18 21:25:36 LoneStar99: once per month after 60-days net or something like that Jan 18 21:25:55 oh ok, cool Jan 18 21:26:08 right on Jan 18 21:26:17 back to updating sugardave code Jan 18 21:27:21 sugardave: i need to add the code from both link 1 and link 2 or else it will not work correctly? Jan 18 21:29:29 * haeffb_pre got coffee, now waiting for wife @ dr's office Jan 18 21:31:14 LoneStar99: yes Jan 18 21:31:22 k Jan 18 21:31:52 * sugardave just watched the trailer for Final Fantasy XIII. "Looks really good." Jan 18 21:33:35 how were the first twelve? Jan 18 21:34:03 well, I didn't start until 7, and I played 10...11 online was an interesting idea, but I couldn't justify the cost Jan 18 21:34:10 7 and 10 were awesome, though Jan 18 21:39:31 sugardave: can I hard code some default values in NameSpace.cookies = { ... } Jan 18 21:40:01 yeah, NameSpace should be changed to whatever you want...I usually use some form of my app name Jan 18 21:40:15 e.g. var MindMaster = {}; first Jan 18 21:40:15 how do you add days to a date such as Date()+6? Jan 18 21:40:30 then MindMaster.cookies = { all that other stuff } Jan 18 21:40:40 and yeah, you can put whatever you want in there Jan 18 21:41:14 but,if some user chooses another option it will update, since it stage assistant? right? Jan 18 21:41:50 that's what you have to handle in the various events...when they make a change, update the dough value, then bake the cookie Jan 18 21:41:59 hi, does anybody in here own a netbook with a windows xp home ulcpc license? Jan 18 21:42:05 Mojo.Model.Cookie('my-cookie-name'), Jan 18 21:42:53 ok, how do I update the "EmailAddress" value? Jan 18 21:43:38 NameSpace.cookies.cookieName.dough.emailAddress = 'whatever'; NameSpace.cookies.bake('cookieName'); Jan 18 21:44:12 digitalslave new Date(today.getTime() + 1000 * 60 * 60 * 24 *6); // add six days worth of milliseconds to the current time. Jan 18 21:44:36 my cookie name is what is in: Mojo.Model.Cookie('my-cookie-name'), ? Jan 18 21:45:10 no, if you're using my example as-is, the cookie name is 'cookieName' Jan 18 21:45:22 it's that property in the cookies object Jan 18 21:45:34 er someCookie Jan 18 21:45:37 not cookieName Jan 18 21:46:39 ok but I change "someCookie" to "abcDonut" i just change all the code to reflect the change Jan 18 21:47:10 yeah, you only have to change that property and make sure you bake('abcDount') Jan 18 21:47:28 ok got it, Jan 18 21:48:24 sugardave: i should not have to make changes to the code in link 2 right? Jan 18 21:49:04 is it just me or does no one use ares? Jan 18 21:49:18 yeah, you will need to match the namespace and the real cookie name Jan 18 21:49:19 lots of people use ares. Jan 18 21:49:27 not very many people use it hang out here. Jan 18 21:49:48 this channel tends to be folks who have been around a while and are used to direct html development Jan 18 21:50:14 digitalslave what's your issue with Ares? Jan 18 21:50:20 need some help with cvs Jan 18 21:50:27 Hey, I use Ares! Jan 18 21:50:44 ...to throw together quick GUIs. Then I download the app and re-do it all :) Jan 18 21:50:49 checked in the wrong files and now I made an update of the previous version Jan 18 21:50:52 MetaView the version control system or did you dislexic CSV? Jan 18 21:51:11 how can I get the previous version back into th rep as working version? Jan 18 21:51:11 Rick-home, it just seems that with api differences easy tasks like forwarding time or date or taking info from one intPicker to the other become laborious Jan 18 21:51:13 Hey, what's wrong with using Comma-Separated Values as your source control?!? Jan 18 21:51:17 CVS Jan 18 21:51:20 hehehe Jan 18 21:51:47 digitalslave there's absolutely no difference in forwarding time between ares and non ares development it's pure javascript date math Jan 18 21:52:13 ditto taking data from one date picker to another, you have to update the model and call modelchanged. Jan 18 21:52:17 no difference. Jan 18 21:53:34 digitalslave can you be more specific about the problems you're having? Jan 18 21:54:42 sugardave: insert inside of "StageAssistant.prototype.setup = function() {" Jan 18 21:54:43 righ? Jan 18 21:56:39 LoneStar99: the only thing that goes in there is the call to loadCookies() Jan 18 21:57:31 the other vars go outside the setup function in the assistant file Jan 18 21:58:14 this.$.dtDate.setDate(Date() + 1000 * 60 * 60 * 24 * 6) this still only gives the current date Jan 18 22:00:36 wth is $? Jan 18 22:01:47 what's with the $ digitalslave Jan 18 22:02:28 thats how all the ares examples are out there and it does work when setting say an intpicker to an exact value Jan 18 22:02:36 oh.... Jan 18 22:02:47 ok Jan 18 22:03:07 wondering when i can do webos fulltime instead of j2me... Jan 18 22:03:10 hmmm Jan 18 22:03:14 :D Jan 18 22:03:53 o.O Jan 18 22:04:23 this.$.dtDate.setDate(new Date(today.getTime() + 1000 * 60 * 60 * 24 * 6) ) Jan 18 22:04:40 today is unknown in that statement Jan 18 22:05:11 hmmmm Jan 18 22:05:49 haha well i guess i dont feel so bad now Jan 18 22:06:37 maybe i should roll up my sleeves and go back to a real ide since i cant even make an egg timer in ares Jan 18 22:07:09 now.getDate()? Jan 18 22:07:24 this.$.dtDate.setDate(new Date(now.getDate() + 1000 * 60 * 60 * 24 * 6) ) ?? Jan 18 22:07:25 .setDate(new Date(new Date().getTime() + (1000 * 60 *60 *24 * 6)) ? Jan 18 22:07:26 digitalslave d1 = new Date() Jan 18 22:08:03 this.$.dtDate.setDate(d1.getDate() + 1 ); Jan 18 22:08:30 that OUGHT to work. Jan 18 22:08:41 d1.getUTCDate() Jan 18 22:09:35 crasheed why UTC, generally, when I want a future date, I want a LOCAL future date. Jan 18 22:09:42 unless I'm someone like Rod. Jan 18 22:09:49 I just wanted to come in here and tell you all, that I just had my first encounter with the Android dev community over at #android-dev, Jan 18 22:10:21 and they were so rude and unhelpful and condescending, I'm reconsidering even spending any more time on Android Jan 18 22:10:37 This community (webos) has always been extremely helpful and friendly Jan 18 22:10:54 The difference is stark as day and night. Jan 18 22:11:01 99.999999% friendly AND helpful Jan 18 22:11:02 :D Jan 18 22:11:03 yeah, webos folks are great! Jan 18 22:11:05 creatorbri thank you. We all __know__ we don't know anything. So we're all in the same boat Jan 18 22:11:11 So thanks to y'all for being good folk! Jan 18 22:11:29 Plus, we tend to drag rude bastards into the corner and beat the shit out of them. Jan 18 22:11:33 lol Jan 18 22:11:43 a combo of Rick_work and sugardave !! it worked! Jan 18 22:11:46 rofl Jan 18 22:12:21 well partially because it was 6 days from the epoch :D Jan 18 22:12:39 There's a few ringleaders over at android-dev that I wish would mosey in here, so they could be taught some manners.. Jan 18 22:13:03 Soooo i'm still trying to figure out how to catch the Back gesture and stop it or disable it all together anyone? Jan 18 22:13:05 not going to happen. We're playing with a "toy os" Jan 18 22:13:30 crasheed you have to look for it on the event stack on the way DOWN and stop propagation. Jan 18 22:13:57 i wish i knew what that ment Jan 18 22:14:53 crasheed: every user interaction is an event. all of the listeners listening for an event basically hand off to each other, like a chain Jan 18 22:15:10 crasheed: stopping propagation means not handing it off to the next person in the chain Jan 18 22:15:13 honestly, in the little time I've spent studying Android, I've seen a remarkable number of similarities.. the major differences are the specific languages used and the differences in OS interface (Palm clearly has them beat in that department.. multitasking sucks on Android) Jan 18 22:15:34 crasheed when you back-swipe it creates an event. Jan 18 22:15:58 that event starts at the "window" and propagates itself down through every div inside the document. Jan 18 22:16:27 so, if you listen for the backswipe event at the window level, before it gets to the FIRST div, you can grab it, and say "No no, don't do that. " Jan 18 22:16:41 good afternoon Jan 18 22:16:49 is palm honestly telling end users to contact developers when apps wont install, http://kb.palm.com/wps/portal/kb/common/article/44113_en.html ?????? Jan 18 22:16:59 sugardave: [20100118-14:13:19.025477] error: Uncaught ReferenceError: NameSpace is not defined, app/assistants/app-assistant.js:13 Jan 18 22:17:00 yes i already got 2 emails Jan 18 22:17:10 about not installing Jan 18 22:17:16 and I was like use webOS doctor Jan 18 22:17:21 yeah, NameSpace should be changed to whatever you want...I usually use some form of my app name Jan 18 22:17:36 then MindMaster.cookies = { all that other stuff } Jan 18 22:17:48 oops, those were out of order, I missed one in there Jan 18 22:17:53 crasheed did you read this: http://developer.palm.com/index.php?option=com_content&view=article&id=1859&Itemid=43#.back Jan 18 22:17:56 you have to define the namespace first, LoneStar99 Jan 18 22:18:03 THEN the cookies object Jan 18 22:18:13 so something like: var myApp = {}; Jan 18 22:18:19 link 1 or 2 Jan 18 22:18:25 then myApp.cookies = {all that other stuff} Jan 18 22:18:28 rick: i'm reading ti right now lol Jan 18 22:18:39 k Jan 18 22:20:50 so crasheed you're going to have to create a handleCommand in your stage assistant. and then in the case, if event.type = "back" then do whatever you want to do with the back gesture. Jan 18 22:21:05 but crasheed you'll need SOME WAY to close the card. :-) don't forget that. Jan 18 22:21:06 crasheed: http://pastie.org/783921 I believe you want something like that Jan 18 22:21:43 something like this right Jan 18 22:21:43 SearchAssistant.prototype.handleCommand = function(event){ Jan 18 22:21:43 if(event.type == Mojo.Event.command) { Jan 18 22:21:43 switch(event.command) Jan 18 22:21:43 { Jan 18 22:21:43 case mojo.event.back: Jan 18 22:22:01 awwwwww the ex-high-school-teacher always wants to leave the fun parts as an exercise for the student catalystmedia Jan 18 22:22:10 Rick_work: hehe Jan 18 22:22:18 catalyst: Thanks Jan 18 22:22:36 Rick_work: Ooops...my bad :S Jan 18 22:23:43 but yeah, catalystmedia that's it exactly and yes crasheed it goes in the stage assistant and you don't need to set up a listener, it's automatic Jan 18 22:24:09 yea i was trying to use a listener at first didn't work XD Jan 18 22:25:19 sugardave: not sure what u meant by myApp = {}; defining NameSpace... Jan 18 22:26:08 LoneStar99: NameSpace is just something I made up. It's an object, which contains other objects....you might want to use something other than NameSpace for your object, such as myApp Jan 18 22:26:20 then you have to make sure it's defined: var myApp = {}; Jan 18 22:26:41 then you do like: myApp.cookies = { all that cookie object stuff } Jan 18 22:27:16 oh got it. Jan 18 22:38:39 What is the best way to get the currently active scene? I tried, Mojo.Controller.getAppController().getStageController('StageName').activeScene() but it seems like there'd be a quicker way Jan 18 22:41:13 this? Jan 18 22:42:23 It's from within another function where this is referencing something else and there isn't a convenient way to pass this to the function (it's pretty deeply nested in); Jan 18 22:45:18 man, you guys make dates complicated Jan 18 22:45:43 haeffb: Why not just include MochiKit.DateTime in your app? It'll save a lot of trouble Jan 18 22:45:52 var d1 = new Date(); d1.setDate(d1.getDate+6)); Jan 18 22:46:24 riskable: because I've never heard of MochiKit.DateTime... :) Jan 18 22:47:19 Whenever I have to do dates/times I usually just include MochiKit along with everything else. The function calls it gives you are all about making life programming JavaScript easier Jan 18 22:47:38 http://mochikit.com Jan 18 22:47:58 Complements Prototype.js quite well Jan 18 22:48:04 catalystmedia: Mojo.Controller.appController.getActiveStageController().activeScene() Jan 18 22:48:20 sugardave: [20100118-14:47:16.468364] error: Error: Cannot read property 'dough' of undefined, line undefined, file undefined Jan 18 22:48:49 riskable: looking now. Jan 18 22:49:04 LoneStar99: this means your object is still not being defined properly....paste it up Jan 18 22:50:12 sugardave: Thank you! Jan 18 22:50:22 catalystmedia: that's The Long Way (tm) Jan 18 22:50:28 there are probably shorter Jan 18 22:50:31 but I like that one Jan 18 22:50:40 MochiKit.Base + MochiKit.DateTime + MochiKit.Format + MochiKit.Text = 50k of the most useful JS functions ever Jan 18 22:51:00 Cleaner than what I was using though. :) Jan 18 22:51:16 yeah, no names :D Jan 18 22:51:53 catalystmedia: and it MAY not work in some instances of multi-stage apps...might have to getStageProxy instead Jan 18 22:51:54 I also like MochiKit.Signal but that nearly doubles the size to 93.5k since it needs MochiKit.DOM and MochiKit.Style Jan 18 22:52:15 sugardave: Thanks for the heads up. I think I may need that. Jan 18 22:52:16 Mojo includes decent event mechanisms so it isn't that useful Jan 18 22:52:24 sugardave: http://pastebin.com/d6e4cd1 Jan 18 22:52:34 MochiKit.Async is excellent if you're doing a lot of AJAX in your app Jan 18 22:52:59 Sorry, my equation mentioned earlier should've been 40k, not 50k :) Jan 18 22:53:07 The extra 10k I had in there was due to MochiKit.Async Jan 18 22:53:13 (which is worth it too =) Jan 18 22:55:30 LoneStar99: syntax error on line 12, extra comma Jan 18 22:55:50 AND 16...no ; Jan 18 22:55:59 you need to NOT have a ; there Jan 18 22:56:14 oh wait Jan 18 22:56:16 scratch that Jan 18 22:56:18 16 is fine Jan 18 22:56:25 still need help with transition... Jan 18 22:57:45 MetaView: what question? Jan 18 22:58:23 sugardave: fixed the above... same error Jan 18 22:58:40 when I try it my app hangs: Jan 18 22:58:56 MetaView: don't try it. Jan 18 22:58:57 var transition = this.controller.prepareTransition(Mojo.Transition.crossFade, false); Jan 18 22:58:57 $("main").innerHTML = "some text goes here"; Jan 18 22:58:57 transition.run(function() {}); Jan 18 22:59:09 well, this is what i do :) Jan 18 22:59:20 but I would like to try it, it looks better Jan 18 22:59:42 previously I got a strange error, but it was prabably my fault Jan 18 22:59:45 oh. well, then you still need help :) Jan 18 23:00:02 now, I don't get an error, just the app hangs :) Jan 18 23:00:40 chuqui: would it be possible to change the timeout on dev site login to something more than 4 hrs? like, maybe 24? Jan 18 23:01:31 thanks for reminding me. I keep forgetting to file a bug on that. Jan 18 23:01:36 hey, what a good question :) Jan 18 23:01:56 but it really helps to remeber the pwd Jan 18 23:03:20 firefox remembers for me. Jan 18 23:03:37 LoneStar99: nor sure why it's failing, but I put my loadCookies(); inside StageAssistant.prototype.setup Jan 18 23:03:40 MetaView: do you need the function inside run()? Jan 18 23:03:59 okay, bg filed on the timeout. Jan 18 23:04:14 MetaView: sorry, no help from me on this one Jan 18 23:04:28 woohoo! I don't care what sugardave says, chuqui is the man! Jan 18 23:05:02 hey, that's not what you said last night :( Jan 18 23:05:11 today is my "catch up on filing bugs" day, it seems. tomorrow will be me "spend the day in jira closing these freaking bugs" day... Jan 18 23:05:30 chuqui: hmm, that's not very incentive-building thinking Jan 18 23:05:34 haeffb: nope Jan 18 23:06:07 I don't care what chuqui says, sugardave is the man! Jan 18 23:06:09 heh. Jan 18 23:06:11 chuqui: well, I thought you are more in birds than bugs... Jan 18 23:06:54 I don't care what says, is the man! Jan 18 23:07:09 heh Jan 18 23:07:54 MetaView: are you doing anything other than .innerHTML = "something"? or is that it? Jan 18 23:08:14 and all that update works w/o the transition? Jan 18 23:09:52 the update works fine, I'll do an innerHTML and a scrollTo Jan 18 23:10:14 I have basically a div which vontent I change and scroll it to top Jan 18 23:10:20 sugardave: this is right "BasCookie.cookies.cookieName.dough.color"? Jan 18 23:10:29 I do it everytiome one press a command menu button Jan 18 23:10:51 oh, missed that Jan 18 23:10:51 no Jan 18 23:10:52 it's not Jan 18 23:11:08 BasCookie.cookies.someCookie.dough.color, in your case Jan 18 23:11:10 yeah, i think that is causing the problem Jan 18 23:12:09 sugardave: guess what... Jan 18 23:12:15 it works now Jan 18 23:12:22 YEAH Jan 18 23:12:29 awesome Jan 18 23:12:50 yeah awesome Jan 18 23:13:28 now to update: da values using in my case? Jan 18 23:13:45 so, ALWAYS update dough.whatever FIRST, then call the .bake whenever you're changing the prefs and you should be fine Jan 18 23:13:51 MetaView: it works for me. Must be something in your app. Jan 18 23:14:08 from a command menu btn? Jan 18 23:14:15 strange, ok, thx Jan 18 23:14:28 not from a button, but within a function. Jan 18 23:14:52 var transition = this.controller.prepareTransition(Mojo.Transition.zoomFade, false); Jan 18 23:14:55 sugardave: can you do provide a snipplet of what you just wrote?? Jan 18 23:14:57 do stuf Jan 18 23:15:01 transition.run(); Jan 18 23:15:06 hm, will investigate it further if (or when) the app is rejected... Jan 18 23:15:22 yes, this is what I tried Jan 18 23:18:44 sugardave: http://pastebin.com/d1b74d144 Jan 18 23:18:48 is that right? Jan 18 23:19:33 LoneStar99: assuming you use this as the event handler for something like propertyChange on each pref item, this should work: http://webos.pastebin.com/dbc40359 Jan 18 23:21:00 bake needs the text string of the cookie object that contains the real cookie and the dough...so it was 'someCookie' in your earlier example Jan 18 23:21:04 but you're close Jan 18 23:23:15 what does this line do: 'cookie': new Mojo.Model.Cookie('big_long_string'), "big_long_string" name of cookie? Jan 18 23:23:39 big_long_string...that's going to be the FILE name on the device where it actually writes this stuff Jan 18 23:23:43 it can be whatever you want Jan 18 23:24:07 and you ONLY use it in the new Mojo.Model.Cookie() part Jan 18 23:24:30 in my case 'BaSettings' - ok u just answered my question above Jan 18 23:26:37 think I will put it on the webos101 wiki - Baking Cookies with sugardave Jan 18 23:26:43 YEAH Jan 18 23:26:50 lok Jan 18 23:26:52 lol Jan 18 23:27:44 http://www.webos101.com/Mojo.Cookie Jan 18 23:28:38 was using the 2nd example and it works, but need the most robust solution, which your seems to be Jan 18 23:29:06 yeah, duplicating code sucks Jan 18 23:29:33 it really does, soon my app would have like 20 duplicates of code Jan 18 23:30:30 LoneStar99: with the second example, if myObject is a global var, you can just: Jan 18 23:31:18 myObject.val2 = 5; myCookie.put(myObject); Jan 18 23:31:27 if myCookie is also a global var. Jan 18 23:32:31 need to write a webos101 article on creating global vars in stageAssistant or appAssistant. Jan 18 23:33:29 haeffb: oh ok Jan 18 23:34:38 not that baking cookies with sugardave isn't cool. Jan 18 23:35:42 shouldn't you be able to access the stage assistant from everywhere? Jan 18 23:37:00 my pre stops receiving new updates of my MapTool Jan 18 23:37:03 why that? Jan 18 23:37:35 yeah, like any robust cookies Jan 18 23:38:12 increasing the ver-number helped, but the old version was removed before the try Jan 18 23:39:22 the try with the old ver-number... Jan 18 23:39:23 MetaView: I haven't tried it, but you may be able to do something like App.myStageAssistant = this; in the constructor of your stageAssistant where App = {}; Jan 18 23:39:30 sugardave: working like a charm, gonna go run, be back to complete the conversion Jan 18 23:39:32 thanks! Jan 18 23:39:53 haeffb: for what? Jan 18 23:40:08 accessing the stageAssistant from anywhere Jan 18 23:40:14 ah, ok Jan 18 23:41:09 well, and how to center a commandMenu? Jan 18 23:46:08 MetaView: just a sec. Jan 18 23:48:11 MetaView: http://www.pastie.org/784054 - the key is the empty values in items array Jan 18 23:53:24 coo, thx Jan 18 23:54:18 grandios Jan 18 23:54:24 works very nice, thx Jan 18 23:54:41 good night, I'm off, in 5,5 hours I need to wake up Jan 19 00:07:48 ok, updated: http://www.webos101.com/Mojo.Cookie Jan 19 00:10:17 nice Jan 19 00:10:38 palm has a kb article about apps not downloading.. definately bookmarking this for those annoy support emails Jan 19 00:10:38 http://kb.palm.com/wps/portal/kb/common/article/44113_en.html Jan 19 00:12:12 * sugardave also updated http://www.webos101.com/Mojo.Cookie Jan 19 00:12:20 I think we have cookies covered now :D Jan 19 00:12:47 LoneStar99: I moved the loadCookies function into the bakery, so you can check the new example at webos101.com if you like Jan 19 00:14:17 Hi all Jan 19 00:14:17 dave Jan 19 00:14:25 bakery is gonna fail if the var is false Jan 19 00:15:28 dawm: why? Jan 19 00:15:44 say you have a cookie with a var such as usesound Jan 19 00:15:52 its true or false Jan 19 00:16:12 if you did if (cookie.usesound) its not gonna process the info if false Jan 19 00:16:29 like you have Jan 19 00:16:30 if (typeof(Bakery.cookies[cookie]) === 'object' && Bakery.cookies[cookie].cookie) { Jan 19 00:16:37 thats not gonna work if the var is false Jan 19 00:17:21 but it works in my app.... Jan 19 00:17:28 I'm not checking the var there Jan 19 00:17:40 just if cookie is a property of the cookie property of bakery Jan 19 00:17:59 but if the value of .cookie is false taht if isnt gonna process Jan 19 00:18:04 good Jan 19 00:18:14 .cookie = new Mojo.Model.Cookie('acookie') Jan 19 00:18:17 if it's false Jan 19 00:18:20 there's a problem Jan 19 00:18:36 and not a problem I can fix :D Jan 19 00:18:53 oh wait Jan 19 00:18:59 nm i misread Jan 19 00:19:01 it's layered Jan 19 00:19:02 :D Jan 19 00:19:11 i thought .cookie was the var Jan 19 00:19:14 STOP TRYING TO FREAK ME OUT! Jan 19 00:19:17 not the actual cookie Jan 19 00:19:19 hehe Jan 19 00:19:20 yeah Jan 19 00:19:37 hi JenP Jan 19 00:19:53 lol hi sugardave Jan 19 00:20:01 dawm...that movie was so messed up!!! Jan 19 00:20:04 OMG! Jan 19 00:20:07 yes Jan 19 00:20:14 nothing like the trailer tells you Jan 19 00:20:29 no...i was like "oh a dark comedy ok..." Jan 19 00:20:35 little did i know.... Jan 19 00:21:37 hah Jan 19 00:22:01 lame.. gelaskins has a few daim skins for the pre.. but not the one i use as my pre wallpaper.. go figure Jan 19 00:22:06 i think i'm scared for life Jan 19 00:22:12 i know i am Jan 19 00:22:15 lol Jan 19 00:22:22 the whole ending.. its burned in Jan 19 00:22:33 was totally unexpected Jan 19 00:23:32 i have to admit...i never made it to the ending... Jan 19 00:23:41 i didn't want to see his "stuff" Jan 19 00:23:58 lol Jan 19 00:24:00 Howdy JenP Jan 19 00:24:09 hi LoneStar99 Jan 19 00:24:17 sugardave: like the bakery examples Jan 19 00:24:25 bummer about the chargers =( Jan 19 00:25:01 wow, webos101 is a nice resource for quick reminders/snippets Jan 19 00:25:05 * maik <3 wiki Jan 19 00:26:12 I guess I should bring over the other database wiki page Jan 19 00:26:20 sugardave: Bakery.cookies.aCookie.dough.property1 seems a long way to go. Jan 19 00:26:33 yeah, it's long Jan 19 00:26:59 but works, Jan 19 00:26:59 I mean, when you actually want to use the values Jan 19 00:27:06 but you can always shortcut at the top of another function Jan 19 00:27:31 whatever = Bakery.cookies.aCookie.dough; Jan 19 00:27:35 yeah Jan 19 00:27:54 something = whatever.property1 Jan 19 00:28:29 maybe get rid of "cookies" Jan 19 00:28:33 like Rick-home would say, I've left it as an exercise for the reader Jan 19 00:28:36 Bakery.aCookie Jan 19 00:28:41 Tomorrow is going to be a very messed up day Jan 19 00:28:47 yeah, cookies is in there because it's a c/p from my real code Jan 19 00:28:52 where I'm storing a bunch of other crap Jan 19 00:28:52 why doc? Jan 19 00:29:03 Mass. election Jan 19 00:29:35 sugardave...suggestions for properties...chocolate_chip, sprinkles, butter Jan 19 00:29:58 reality9110 it's raining out here...and socal is afraid of rain so we should be pretty calm Jan 19 00:30:16 JenP: lol Jan 19 00:32:53 haeffb: alright, refined it to get rid of .cookies Jan 19 00:33:30 sugardave: nother question: in loadCookies, would it be more efficient to save the result of cookies.get & iterate through the results rather than keep get()ing? Jan 19 00:34:20 that can certainly be improved, that was a quick 'can I move this in here and OH I should check to make sure it's an object I want' Jan 19 00:34:58 * haeffb making my signature spicy/creamy pasta for dinner Jan 19 00:35:59 * JenP shakes her fist at you and your damn tasty carbs Jan 19 00:37:21 gotta have carbs to replace calories burned playing bball. Jan 19 00:37:51 use butter & cream in addition to the carbs. Part of my retirement plan. Jan 19 00:37:52 alright haeffb, check that...think it's better Jan 19 00:38:03 smiles.. Jan 19 00:38:16 (i.e. the more bad stuff I eat, the less I have to save for retirement) Jan 19 00:38:55 haeffb that's so sick and wrong...LOL Jan 19 00:39:13 sugardave: looks....tasty. Jan 19 00:39:38 JenP: you only get to live once. Long and boring or short and happy. Your choice. Jan 19 00:40:24 smile...totally...active & skinny...and a walk in closet filled with shoes! Jan 19 00:40:32 I, personally, have decided to enjoy every dai Jan 19 00:40:37 day. Jan 19 00:40:49 as you should Jan 19 00:41:26 JenP: there are some better properties now, too :D Jan 19 00:41:34 cool! Jan 19 00:44:59 * haeffb wonders where Bmyers has gotten off to... Jan 19 00:47:05 omg...feature on local news..stem cell treatment on fido Jan 19 00:47:55 I have a fido who is currently...very very attractive to any male fidos wandering by. Jan 19 00:48:01 wow...cost $4000 Jan 19 00:48:10 lol haeffb Jan 19 00:49:18 If you want to invest in it...Geron Jan 19 00:49:25 got some chocolate lab mix who keeps coming over. Jan 19 00:50:26 Geron's the front-runner? Jan 19 00:50:32 Yes Jan 19 00:50:40 thanks for the tip :D Jan 19 00:50:59 They were approved for a phase I last year for ESC treatment of spinal injuries Jan 19 00:57:38 Regulus Therapeutics will probably be a good one in a few years as well. They are the front runner in microRNA therapeutic commercialization right now. Jan 19 00:59:21 sugardave: your backing recipe rocks! Jan 19 00:59:30 sorry baking Jan 19 01:30:21 word...project appetite is showing all the app screenshots in reverse Jan 19 01:30:43 haha Jan 19 01:30:51 but only when I use Iron's find window Jan 19 01:30:55 that's messed up Jan 19 01:33:45 i'm trying to customize a list row using a template but having trouble with the styling Jan 19 01:34:56 in ares' scene-chrome.js appears to be one big json object with different properties Jan 19 01:35:14 i'm not sure how to get some of those properties inline with the template html though Jan 19 01:35:23 things like hAlign, layoutKind, etc. Jan 19 01:35:29 what's the new hot way to get our app URLs? Jan 19 01:37:53 do what now? Jan 19 01:38:06 oh, in the catalog? Jan 19 01:38:12 yeah Jan 19 01:38:17 sorry, don't know Ares :D Jan 19 01:45:26 i got smart and thought "why not use css, stupid" Jan 19 01:45:30 now it works :) Jan 19 01:54:45 if i use Jan 19 01:54:51 Mojo.Controller.stageController.popScene('search-url'); Jan 19 01:55:04 how do i catch the return value in the previous scene? Jan 19 01:59:41 crasheed: it's a param to activate() Jan 19 02:01:37 myScene.prototype.activate = function(event) {if (event == 'search-url') do stuff;} Jan 19 02:16:57 i don't have to do anything like event.item? Jan 19 02:16:59 just event? Jan 19 02:17:22 hrmm what if it's a full json object Jan 19 02:17:36 can i call items inside event.item.cookie.dough == "sour" Jan 19 02:17:53 hrmm i'll jsut try it XD Jan 19 02:18:00 if you're passing an object, then yes. Jan 19 02:18:14 but above, you just passed 'search-url' **** ENDING LOGGING AT Tue Jan 19 02:59:57 2010
data1value1
data2