**** BEGIN LOGGING AT Thu Apr 08 02:59:56 2010 Apr 08 03:14:11 haeffb: awesome, I'm almost ready to put the first test up Apr 08 03:15:03 I added your role, so you can go back and see 'Create application' in the left sidebar, so do that Apr 08 03:18:57 So, I feel utteryly retarted right now Apr 08 03:19:10 you should Apr 08 03:19:34 someone else to share my state of mind Apr 08 03:20:10 I was passing a function the variable i which contained the index of where to save an array in another array. Except I was also using i inside the function in a for loop Apr 08 03:20:19 that lead to some interesting results.... Apr 08 03:20:50 awesome, geometrically increasing indexes Apr 08 03:20:58 No, actually Apr 08 03:21:32 i would usually end up being zero which means that the array was empty except for the first entry Apr 08 03:21:51 Done! Apr 08 03:22:07 okay, getting closer....I have the data logging to the local test server Apr 08 03:22:20 getting things prepped on the live side to test, then need to make a view for it Apr 08 03:22:25 that last part won't take too long Apr 08 03:43:36 haeffb: okay, you can go to the private forum and download the script (it automatically puts .txt at the end, I'm sure you can fix it) and start seeing how you want to integrate it Apr 08 03:43:44 I'm going to work on the view Apr 08 03:44:07 you basically want to do: CAM.API.debugString(theString, CAM.Service); Apr 08 03:44:37 without the CAM.Service parm it will just print to Mojo.Log.error Apr 08 03:44:49 well, either way it prints there Apr 08 03:45:26 no making fun of my code, this debug stuff is quick and dirty Apr 08 03:45:30 :p Apr 08 03:51:21 kk. I won't get to it until tomorrow now. Gotta zzzzzzzz.... Apr 08 03:51:35 fine Apr 08 03:52:27 I know how it sucks when you work all day on something & then somebody says "I'll get to it tomorrow..." :) Apr 08 03:52:50 actually, gives me time to get this vm working on my daughter's laptop for the morning Apr 08 03:53:01 I'm just anxious to have another endpoint register :D Apr 08 03:59:39 furgh Apr 08 04:00:27 anyone know the difference between: event.originalEvent.target, and event.target Apr 08 04:01:27 sample apps are killin me Apr 08 04:03:40 just tryin to figure why the sample uses both for the same event Apr 08 04:03:47 perhaps just redundancy Apr 08 04:04:21 nvmd - found the doc Apr 08 04:04:36 still dont know why they used both, but i understand the diff Apr 08 04:07:38 any open source Mojo developer around who would like to add a new screen to Preware? Apr 08 04:08:14 BigBiff: sometimes one is different than the other, but I can't give you a solid example right now Apr 08 04:08:17 what do you mean by open source... Apr 08 04:08:39 I think it may have to do with event bubbling Apr 08 04:08:48 how many different definitions of Open Source are there? Apr 08 04:08:49 i think i got it - original event has to do with it having a child element i believe Apr 08 04:09:15 I mean http://www.opensource.org/docs/osd Apr 08 04:09:35 just the sample app says that in a future release, event.target will be used primarily Apr 08 04:09:37 in regards to someone who has been itching to get a chance to make their mark on Preware Apr 08 04:09:41 not sure if that holds true Apr 08 04:10:04 What I wsa trying to figure out is if you cared if my other apps were not OS Apr 08 04:10:22 Because I'll make that preware scene for you, easy peasy Apr 08 04:10:41 oh, don't care what you do elsewhere :) Apr 08 04:10:52 yeah, thats what was tripping me up Apr 08 04:11:45 hmm - actually, I just thought of a way to do it which doesn't need an extra screen Apr 08 04:13:16 Heh, I was gonna say each option should have a button that when clicked adds that parameter to a saved list that is then used to populate the view Apr 08 04:42:36 ugh Apr 08 04:42:52 im gonna cry Apr 08 04:43:16 what did mean old mojo do now... Apr 08 04:43:57 BigBiff: what's wrong? Apr 08 04:44:13 heh, just frustrated Apr 08 04:44:25 been staring at some code for awhile Apr 08 04:44:26 smiles..now that i understand Apr 08 04:44:36 whatcha working on? Apr 08 04:44:54 adding child elements to list rows gettin to me Apr 08 04:45:09 but i will prevail Apr 08 04:45:15 (no pun) Apr 08 04:46:07 smiles...you can do it....and the guys in here are great...plus post on the dev forum Apr 08 04:46:23 thx JenP Apr 08 04:46:46 sorry i can't be more then a cheerleader right now...but i'm rooting for you Apr 08 04:56:51 bigbiff its all just html Apr 08 04:56:51 BigBiff: have you looked at the List page on webos101? Apr 08 04:57:05 ya Apr 08 04:57:24 what part is giving you trouble? Apr 08 04:58:35 adding a drawer to list items Apr 08 04:58:51 ouch Apr 08 04:58:56 ya Apr 08 04:59:18 the mojo matters does it, but uses some devices im struggling with Apr 08 04:59:19 drawers are hard...somewhere I have a collapsible row with a list in a drawer or some combination of that Apr 08 04:59:23 ha i fought with that Apr 08 04:59:35 frustrating as hell it was Apr 08 04:59:55 ive got collapsible dividers with lists within the drawers - scrolling Apr 08 05:00:03 now trying to add drawers within that Apr 08 05:00:09 making me rethink my design Apr 08 05:00:11 hehe Apr 08 05:00:14 i've got a scrolling list of drawers Apr 08 05:00:28 drawers in drawers..bad mojo Apr 08 05:00:33 indeed Apr 08 05:00:40 I gave up on the sub-drawer method Apr 08 05:00:51 * maik returns to his php+mysql POTD Apr 08 05:01:08 I am amazed at the performance or lack thereof of handling click events etc Apr 08 05:01:43 * sugardave clicks his test button and sees data logging on the cloud. "Not too bad." Apr 08 05:02:10 an example of my brain fry right now, and this really isnt that complicated - model.open = ! model.open Apr 08 05:02:41 what do you mean "on the cloud" dave? Apr 08 05:02:53 my server, I'm using buzzwords Apr 08 05:02:57 i see that, then think - i need to go to bed Apr 08 05:03:20 BigBiff: it's just a toggle :D Apr 08 05:03:37 ya - i know, but then i look at it again Apr 08 05:03:53 i need to go to bed :) Apr 08 05:03:57 heh Apr 08 05:05:06 well, i thought "buzzwords" was some hip new cloud technology" Apr 08 05:05:09 -" Apr 08 05:05:13 i actually googled it Apr 08 05:05:58 did i mention i love Komodo Edit? Apr 08 05:06:08 i don't just use it for WebOS anymore Apr 08 05:19:14 maik: haha, yeah Komodo Edit is very cool...working way better in linux than on my old XP machine Apr 08 05:19:25 nice Apr 08 05:19:49 my only complaint is it doesn't like losing focus on my Mac when using Spaces Apr 08 05:20:13 what is Spaces, a window manager? Apr 08 05:21:37 oh I see, it's a program grouper Apr 08 05:23:11 g'nite all...see you in a couple of days Apr 08 05:23:19 night JenP Apr 08 05:23:36 ni... to late Apr 08 05:24:51 ya sort of. it's Apple's name for virtual dektops Apr 08 05:24:53 desktops Apr 08 07:31:28 hey, who was it that got the PDK working back and forth with javascript? Apr 08 08:01:11 Ok, stupid question time. I'm having an issue with the FB beta app -- it won't download, after I had removed it. I'm thinking the next step is a "Erase Apps & Data", but I cannot find a definitive list of what is lost and what isn't. Apr 08 08:01:37 I get that all apps (official) come back... but what about 3rd party app data... and what about SMS's etc? Apr 08 08:01:53 In short, what are all the gotchas when doing a Erase Apps & Data? Apr 08 08:33:26 hrm. Apr 08 09:25:45 hi Apr 08 09:25:58 it is possible to customize list widget and date picker like this: http://img7.imageshack.us/img7/6070/schedulesy.png Apr 08 09:28:06 l_a_m: nice Apr 08 09:28:25 warpdesign: i don't do that :) Apr 08 09:28:38 ah, alright Apr 08 09:28:39 warpdesign: i would like to know if it is possible to do like that ? :) Apr 08 09:28:45 ah, ok lol Apr 08 09:28:48 well, why not ? Apr 08 09:29:01 warpdesign: i mean how do that :) Apr 08 09:33:59 warpdesign: i don't really know how i can do that Apr 08 09:37:45 by styling the thing ? Apr 08 09:37:54 how does the original one look like ? Apr 08 09:41:07 warpdesign: default Apr 08 09:41:09 warpdesign: http://developer.palm.com/index.php?option=com_content&view=article&id=1742&Itemid=44 Apr 08 09:41:21 warpdesign: "Neil Young Albums" Apr 08 09:41:54 warpdesign: or like this http://www.linux-mag.com/id/7563 Apr 08 09:51:15 does someone have any idea ? Apr 08 10:21:34 l_a_m: I'd say yes it's probably possible to customize it Apr 08 10:21:42 but the real question is how difficult it would be Apr 08 10:21:42 :D Apr 08 10:29:32 zomg: yes :( Apr 08 10:35:56 hm Apr 08 10:36:06 looking at that schedulesy picture, wouldn't it be doable mostly with CSS? Apr 08 10:36:56 Give the box overflow: auto, then define maximum height. It'll become scrollable then if the list is longer than max height Apr 08 10:37:11 then you'd just need to have some scripts checking if it's longer and display those little arrow icons Apr 08 10:37:14 or something along those lines Apr 08 10:37:40 I'm not very familiar with webos sdk so can't really help with anything more specific Apr 08 14:05:39 mornin' Apr 08 14:12:16 mornin Apr 08 14:12:35 i give up on drawer in a list row Apr 08 14:13:02 cant find any documentation on 'findParentByAttribute' Apr 08 14:27:38 anyone have a feeling for the current app submission time from start to publish? Apr 08 14:27:41 hmmm, maybe if set it up like you would a spinner in a row Apr 08 14:28:03 put the toggle value directly in each list entry Apr 08 14:28:34 Bmyers: last I updated it took about 3 days Apr 08 14:28:40 thx Apr 08 14:28:43 that was a meta update though, no new ipkg Apr 08 14:44:10 whats up mountain view! Apr 08 14:44:23 * pandora-- in hotel lobby... with molassas internets Apr 08 14:49:39 back Apr 08 14:49:43 test? Apr 08 14:50:35 there we go Apr 08 14:53:43 Anyone know why after the latest update I keep getting SSL errors when connecting to our exchange server? I've even installed the new certificate manually. Apr 08 14:56:47 not a clue here. i don't use exchange Apr 08 15:44:54 grumbl grumbl Apr 08 15:45:05 Missed a sale on the 32GB zune hd Apr 08 15:46:20 I have a great idea for a game and was thinking of doing all the backend stuff in php since I'm pretty good at it. What's the best way to make a game but have it either refresh every 5 seconds or have the server send info to the device? Apr 08 15:49:53 zune? Apr 08 15:50:00 why? you didn't miss anything :) Apr 08 15:50:37 Their nice devices, and I want something different than an ipod touch Apr 08 15:50:46 esp since my first touch up and died recently Apr 08 15:51:25 hehe Apr 08 15:51:39 i bought my girlfriends old 30g ipod video from her Apr 08 15:51:50 that was like 3 years ago, it's still rocking out Apr 08 15:51:57 sturdy little thing Apr 08 15:52:21 had one of thise Apr 08 15:52:24 those Apr 08 15:52:31 never worked right Apr 08 15:53:18 Only ipod that I liked at the time were the second gen (Had me a 5Gb), third, and photo Apr 08 15:54:12 mine is the 3rd gen 30g video Apr 08 15:55:03 zune ftw, if only for zune pass Apr 08 15:55:08 I find it hard to believe that its a 3rd gen video, considering the third gen were all black and white screens Apr 08 15:56:46 *shrug* maybe i got my generations mixed up Apr 08 15:56:53 most likely Apr 08 15:57:00 the video was the 5th generation Apr 08 15:58:15 :) Apr 08 15:59:34 !!!!!!! Apr 08 15:59:54 ATI Beta Catalyst 10.5 includes intel 4500 drivers! Apr 08 16:01:37 wat Apr 08 16:01:48 halfhalo_T400: so.. did you ever get anywhere with the brightness patch? Apr 08 16:01:56 Noish Apr 08 16:02:05 got a message from you saying it works kinda but not sure what that meant Apr 08 16:02:12 whats the brightness patch? Apr 08 16:02:28 It worked, but kept getting overridden by the service, usually immediatly after Apr 08 16:02:56 i want trying to get halfhalo_T400 to port the brightness unlinked app to be a patch to the screen pref Apr 08 16:03:06 s/want/was/ Apr 08 16:03:33 hmm. was it because of slider open/close or something else? Apr 08 16:04:22 That was part of it, but ANYTHING causes the service to go and set the kb brightness back to the screen Apr 08 16:04:46 gak Apr 08 16:05:04 which service is it? Apr 08 16:05:22 I don't recall off the top of my head Apr 08 16:05:29 I _think_ its the powermanager Apr 08 16:07:38 so end result. palm intervention required? Apr 08 16:07:48 yup Apr 08 16:08:05 or a custom service that bitch slaps the palm service into submission Apr 08 16:09:52 ok im on day 2 of this little funhouse venture Apr 08 16:10:02 has anyone added drawers to list rows? Apr 08 16:10:16 im pretty sure the sample app is an illusion - its just not possible Apr 08 16:10:29 they did it to trick me Apr 08 16:10:59 dirty bastards Apr 08 16:12:27 oh NO Apr 08 16:12:33 apple got a patent on CoverFlow! Apr 08 16:12:37 *world ends* Apr 08 16:21:49 xerox got a patent for the mouse, apple stole it anyway Apr 08 16:22:13 theres that apple event today... I don't know If i am caring or not yet Apr 08 16:27:47 i give up - its official - drawer in a list in a drawer = bad idea Apr 08 16:33:57 halfhalo_T400: I'll be watching it Apr 08 16:34:01 Hi, hi! Does anyone know if there are restrictions on using palmGetResource() ? Apr 08 16:34:05 how can I troll apple users if I don't learn up on it first? :D Apr 08 16:35:38 references suggest it syncronously returns the contents of a file as a string Apr 08 16:36:42 ... but there's a second argument "suppressWarning" -- anyone know what form the warning takes if not suppressed? Apr 08 16:39:13 The use case is loading a JSON file, for which there may or may not be a localized version. Apr 08 17:22:21 iphoneos 4.0 officially has multitasking Apr 08 17:23:33 Took 'em long enough. Apr 08 17:23:54 Still not as good as webos though Apr 08 17:23:57 It's just a dock, not cards Apr 08 17:24:04 twbbas: we'll see Apr 08 17:24:30 they announced there are 3500 ipad apps in the app store already too Apr 08 17:24:54 Ah, to have fans that will wait three years for crucial features. Apr 08 17:25:33 Voip too Apr 08 17:25:40 Just anounced Apr 08 17:25:59 That beats webos since there isn't a mic api yet =\ Apr 08 17:28:07 DougReeder: not going to get into a palm vs apple debate Apr 08 17:28:36 [nods] Apr 08 17:30:00 i mean, i consider maps to be a pretty important feature, and the current maps implementation on webos is pretty much garbage, not to mention borderline worthless for a developer Apr 08 17:51:25 wow, SSL VPN Apr 08 17:51:28 in IPh 4 Apr 08 17:51:30 crap Apr 08 17:54:57 why are unixtimestamps from a server being displayed as a day and three hours off on my device? Apr 08 17:55:38 because of UTC/GMT/ETC? Apr 08 17:56:27 unix timestamps are in GMT. right? Apr 08 17:56:35 haeffb: are you generating timestamps in js? Apr 08 17:56:36 Possibly.... Apr 08 17:56:53 sugardave yes. and getting timestamps from a server. Apr 08 17:56:57 and comparing the two. Apr 08 17:57:02 unix timestamps will be offset based on the tz of the server Apr 08 17:57:18 I think.... Apr 08 17:57:38 don't forget to /1000 in js Apr 08 17:57:41 I am under the (mis) understanding that a unix timestamp refers to now at GMT. Apr 08 17:57:46 got the /1000 Apr 08 17:58:24 oh right...I see. That's weird. Does your unix have the correct date/time? Apr 08 17:58:35 This point in time. Right now. is happening everywhere at the same time. If we all refer to it by unix timestamp (GMT), it should be one number. Apr 08 17:58:56 Then we can offset that number by +/- hours (minutes) from GMT Apr 08 17:59:37 to convert to local time. Apr 08 17:59:58 so, you sure the unix host has the correct date/time? Apr 08 18:00:44 well, it provides an API call that gives me it's current time as a unix timestamp & as a local date string. I compare his unix timestamp to mine & they differ by eight seconds Apr 08 18:00:54 which seems close enough for me. Apr 08 18:00:57 yeah Apr 08 18:01:10 but the dates that he gives appear to be...off... Apr 08 18:01:18 dates for individual tasks, etc. Apr 08 18:02:51 just wanting to make sure that I'm right in just taking (what should be) a unix timestamp & displaying it as local time Apr 08 18:03:47 If I schedule something for 2pm CDT tomorrow & do new Date(2pm CDT tomorrow).getTime(); Apr 08 18:03:47 haeffb: that should work, I think Apr 08 18:03:59 & send him the result. Apr 08 18:04:20 it should show up on the server as 2pm CDT tomorrow, if my server display settings are for CDT. Apr 08 18:05:16 that sounds reasonable Apr 08 18:10:37 timestamp from server: 1251777600000 Apr 08 18:11:05 new Date(1251777600000) Mon Aug 31 2009 23:00:00 GMT-0500 (Central Daylight Time) Apr 08 18:11:23 hello.. Are there arrow keys in palm pre? Apr 08 18:11:47 .toUTCString() Tue, 01 Sep 2009 04:00:00 GMT Apr 08 18:12:00 The date shows up as Sep 1 on his server. Apr 08 18:12:00 I mean up, down arrow keys as there are in a laptop keyboard Apr 08 18:12:05 No Apr 08 18:12:38 maybe he's using timestamps wrong? Apr 08 18:12:41 Or am I/ Apr 08 18:12:53 rwhitby: ping. Apr 08 18:12:53 haeffb: his is also coming in milliseconds, but epochconverter confirms 8/31 or 9/1 Apr 08 18:13:04 it should be 9/1 Apr 08 18:13:12 GMT is Apr 08 18:13:25 11 PM CST 8/21 Apr 08 18:13:27 31 Apr 08 18:14:11 Ok, he's in EDT Apr 08 18:14:52 I added the milliseconds Apr 08 18:15:04 okay, so you got that timestamp from a 3rd-party server? Apr 08 18:15:05 Please reply Apr 08 18:15:15 rohit1: no Apr 08 18:16:01 yes. Apr 08 18:16:11 sugardave: yes. rohit1: no they do not. Apr 08 18:16:22 it seems that his time server is 7 months behind Apr 08 18:16:30 I wonder if it's a vm Apr 08 18:16:54 well, that's from a due date that I set 7 months ago. It's the right (approximately) date. Apr 08 18:17:02 oh, I see Apr 08 18:17:12 just that it should be 9/1 but shows as 8/31 in my app. Apr 08 18:17:26 what time? Apr 08 18:17:35 I dunno. Apr 08 18:17:41 it's just a date. Apr 08 18:17:44 hang one. Apr 08 18:17:48 It's 11 PM CDT 8/31 Apr 08 18:20:30 1255968900000 Apr 08 18:20:39 this stuff is wacked. Apr 08 18:21:13 10/19/2009 11:15 am CDT Apr 08 18:21:57 he saves a duedate and a duetime Apr 08 18:22:12 and the duetime doesn't have the same date. Apr 08 18:22:35 who? Apr 08 18:23:19 that is supposed to be 12:15 am Apr 08 18:23:22 maybe duetime is the "real" due time and the duedate is "I'd like to get it done by" Apr 08 18:23:35 although I have no idea why I'd have set a duetime at 12:15 am... Apr 08 18:23:42 http://www.toodledo.com Apr 08 18:23:46 in EDT it would be 12:15 pm Apr 08 18:24:06 no, it's due on the due date & at the due time if you have set one. Apr 08 18:24:16 I see Apr 08 18:24:17 he's just not using the date part of the duetime timestamp Apr 08 18:24:35 oh....that's retarded Apr 08 18:24:48 & I think he's actually saving all this stuff as strings in his local time. Apr 08 18:25:08 he adds a "unix" option for the API & spits out the timestamp Apr 08 18:25:15 oh man, that's going to be a pain Apr 08 18:25:18 OH, GEEZE. Apr 08 18:25:26 I bet it's mysql datetime objects Apr 08 18:25:33 he's giving me the unix timestamp of HIS TIME!!!!! Apr 08 18:26:09 gawd, this is dumb Apr 08 18:26:18 fyi: http://www.epochconverter.com/ Apr 08 18:26:30 very valuable time conversion resource, has code snippets, etc. Apr 08 18:29:17 now I'm lost. Apr 08 18:31:23 I say, I want this due at 0:00 Sep 1. He says, Ok, you're CDT, so you really want it at 1:00 EDT Apr 08 18:31:32 he stores it as 1:00am Apr 08 18:31:39 then sends me the unix timestamp for 1am Apr 08 18:31:55 no. Apr 08 18:31:58 that's not it. Apr 08 18:32:50 okay...looking at the API Apr 08 18:33:05 wtf is up with specifying number of half-hour offsets from GMT? Apr 08 18:33:27 so CDT would be 10 or 12 depending on where we are in the daylight savings race Apr 08 18:33:27 newfoundland Apr 08 18:33:37 instead of 5 or 6 Apr 08 18:33:40 that's just dumb Apr 08 18:33:47 thats newfie land.. Apr 08 18:34:45 some people are half hours different Apr 08 18:34:50 ask rwhitby Apr 08 18:34:54 sure, yeah Apr 08 18:35:37 but, usually we say hours from GMT and special cases go - 05:30 or something like that Apr 08 18:35:57 this guy makes you figure that out, then multiply by 2 Apr 08 18:37:24 I thought that using the timestamps would avoid all the hassle of converting from his timezone to mine. Apr 08 18:37:47 if he gives you good timestamps, it does Apr 08 18:38:09 but it says that they are all based on current server time...so not sure what is going on Apr 08 18:38:41 get his timestamp right now Apr 08 18:38:44 get ur's Apr 08 18:38:47 compare the two Apr 08 18:39:14 you'll see where his server is Apr 08 18:40:02 it's 8 seconds different. Apr 08 18:41:09 with no other math? Apr 08 18:41:19 so his server is in the same tz as u? Apr 08 18:41:27 tz won't matter Apr 08 18:41:31 http://www.pastie.org/909823 Apr 08 18:41:45 sorry, 6 seconds now. Apr 08 18:41:52 his unixtime ==== my unixtime Apr 08 18:41:55 you're speefing up? Apr 08 18:41:59 speeding Apr 08 18:42:11 life moves fast. don't miss a thing. Apr 08 18:42:15 ha Apr 08 18:43:03 "our time" is my local time in emu (which is actually using PDT at the moment) Apr 08 18:43:31 compared to the response from server - he's six seconds faster than me Apr 08 18:43:58 I'm becoming convinced that he saves everything in his local time Apr 08 18:44:24 & spits that back to me in a unixtimestamp Apr 08 18:44:39 & then I have to convert his unixtimestamp back to my local time. Apr 08 18:44:50 which makes no sense to me whatsoever. Apr 08 18:46:52 so, if you added something with a due date for 4/15 12:00 AM CDT what will it show the due date from his unix timestamp? Apr 08 18:47:14 sugardave: turns out my user has SDK installed...so he can send me his logs. Apr 08 18:47:20 FINE Apr 08 18:47:25 :) Apr 08 18:47:44 I still think this debug deal is a great idea, though. Apr 08 18:47:45 there goes your interest in the profits :P Apr 08 18:48:07 woo hoo! more for me.. Apr 08 18:48:29 * sugardave notices no Bmyers account on the server. Apr 08 18:48:51 i'm in stealth mode.. Apr 08 18:49:18 i'm using an alias.. yeah.. we in code talk.. Apr 08 18:49:26 (raising AZ) Apr 08 18:49:33 heh Apr 08 18:49:59 that movie helped alot when i moved to AZ Apr 08 18:50:26 wtf is todays date? Apr 08 18:50:32 4/8 Apr 08 18:50:34 ~date Apr 08 18:50:40 sigh Apr 08 18:51:19 I send him a unix timestamp from my app for 0:00 today. Apr 08 18:51:26 * sugardave points and laughs at Mousey. Apr 08 18:51:35 it comes back as Wed Apr 07 2010 21:00:00 GMT-0700 (PDT) Apr 08 18:51:52 which is 0:00 today. FOR HIM. Apr 08 18:52:04 eastern Apr 08 18:52:06 yep Apr 08 18:52:19 no more time travel haeffb. you're making me dizzy. Apr 08 18:52:43 so, you will need to pre-convert everything to EDT, I guess Apr 08 18:52:45 Ok. he's giving me everything in his time & I have to convert it to mine. Apr 08 18:53:12 & he's giving me the offset from GMT. Apr 08 18:53:15 to his server. Apr 08 18:53:23 haeffb: is it not honoring the tz offset? Apr 08 18:53:29 so it's not that hard. just seems stupid. Apr 08 18:53:33 did you set it to 6? Apr 08 18:53:41 maybe I need a better understanding of timezones. Apr 08 18:53:54 oh shit, not 6 Apr 08 18:53:57 10 Apr 08 18:55:43 oh, but you're in PDT now...so 14 Apr 08 18:56:04 jeez, I can't understand why you're not getting this stuff :P Apr 08 18:59:32 he's not concerned about timezones. Apr 08 18:59:44 I say Sep 1, 2010, he saves Sep 1, 2010 Apr 08 18:59:55 without regard to timezones. Apr 08 19:00:08 I say 12:15 am he saves 12:15 am. Apr 08 19:00:33 right, but when you get the timestamp back, he gives it back in number of seconds since 1970 to sep 1 EASTERN time Apr 08 19:01:12 yes. Apr 08 19:01:48 my problem was in thinking that he's actually concerned about timezones. He's not - except for comparing lastsync. Apr 08 19:02:29 so, the added, modafter, etc. he's saving a true date/time & my unix timestamps are equivalent to his for those things. Apr 08 19:02:47 the duedate, startdate duetime, start time he's just saving a string. Apr 08 19:03:47 messed up Apr 08 19:03:58 & he'll be glad to convert that string into a timestamp for me. Apr 08 19:04:17 but it's always going to referenced to his time & not mine. Apr 08 19:05:10 the messed up part is if I set a duetime for 12:15 CDT & then I go to New York, I'd get a duetime of.... Apr 08 19:05:18 12:15 EDT Apr 08 19:17:28 you see, haeffb, I was counting on you to deliver a positive experience review to my thread...now you have made me look like a fool. Apr 08 19:17:31 FOE! Apr 08 19:22:12 I'll deliver a positive "almost had an experience" review to your thread. Apr 08 19:40:41 can I do a *= b + c; Apr 08 19:40:53 meaning a = a * b + c ? Apr 08 19:43:07 methinks yes Apr 08 19:45:46 hmmm Apr 08 19:46:02 haeffb: how are you going to determine precedence ord? Apr 08 19:46:04 order Apr 08 19:46:29 what if it does a * (b + c) with that...I'm not sure Apr 08 19:48:22 that was my question. Apr 08 19:49:53 it does a * (b+c) Apr 08 19:50:06 which seems strange since the * operator has precedence. Apr 08 19:50:21 but I guess it evaluates the right side first, then performs the *= operator. Apr 08 19:50:41 which makes sense when you look at it that way. Apr 08 19:54:22 this is not working...when duetime = 0 Apr 08 19:54:24 tasks[i].duetime = tasks[i].duetime ? tasks[i].duetime * 1000 + this.timeDiff : ""; Apr 08 19:54:40 should return "" Apr 08 19:54:50 returning this.timeDiff value instead. Apr 08 19:58:02 why the tasks[i].duetime after ? if it's not there, you can't use it Apr 08 19:58:09 tasks[i].duetime = (tasks[i].duetime > 0) ? tasks[i].duetime * 1000 + this.timeDiff : ""; Apr 08 19:58:10 oh Apr 08 19:58:11 nevermind Apr 08 19:58:13 sorry Apr 08 19:59:39 haeffb: I think maybe tasks[i].0 exists and apparently evaluates to 0? Apr 08 20:00:11 evaluates to something truthy Apr 08 20:00:58 not sure why. Apr 08 20:01:01 well, then you'd get this.timeDiff + 1000? Apr 08 20:01:21 tasks[i].duetime = 0 Apr 08 20:01:36 so I get 0 * 1000 + timeDiff which equals timeDiff Apr 08 20:01:54 but I'd have thought that since it was 0, it would evaluate as falsy. Apr 08 20:02:01 and I'd get "" Apr 08 20:02:08 the second version works, though. Apr 08 20:02:30 oh I thought duetime was a var, I see now Apr 08 20:03:47 you need to check tasks[i].duetime === 0 ? ..... Apr 08 20:04:12 otherwise, you are sayinf if something is in tasks[i].duetime Apr 08 20:04:12 tasks[i].duetime = (tasks[i].duetime > 0) ? tasks[i].duetime * 1000 + this.timeDiff : ""; Apr 08 20:04:26 this works as I expected. Apr 08 20:04:42 except that it's still not resulting in the right time. Apr 08 20:04:49 yeah, mine is backwards Apr 08 20:05:20 oh Apr 08 20:05:27 instead of 12:15 pm, I now get 9:15 am Apr 08 20:05:42 are you doing that stuff where you Math round and precision and all that crap that messes up js numbers? Apr 08 20:05:53 12:15pm EDT == 9:15 am PDT Apr 08 20:06:11 okay Apr 08 20:06:15 I'm still lost in a time warp. Apr 08 20:06:37 Hey, guys. Apr 08 20:07:39 haeffb: are you shifting all the times on entry to EST before you start doing your calculations Apr 08 20:12:31 Hmm. Is it possible to dynamically disable a textfield? Apr 08 20:13:41 sugardave: I don't know wtf I'm doing now. Apr 08 20:19:18 gggriso: should be able to Apr 08 20:20:15 haeffb: I wonder if you arbitrarily adjusted the user entered time to the current time in EST....what would happen then? Apr 08 20:20:18 sugardave: I figured as much. Is there a mojo method for this, or should I look in the Prototype documentation? Apr 08 20:20:42 gggriso: prototype will probably work just fine Apr 08 20:31:17 tasks[i].duetime = (tasks[i].duetime > 0) ? tasks[i].duetime * 1000 + this.timeDiff doesn't work....WHEN JS THINKS EVERYTHING IS A STRING! Apr 08 20:31:32 parseInt(string) Apr 08 20:31:33 jeez Apr 08 20:32:07 gggriso: actual you want to update the model, set disabled to true, then call modelChanged Apr 08 20:32:16 * 1 Apr 08 20:32:41 * sugardave stands behind his original answer. Apr 08 20:32:47 * haeffb hates wasting an afternoon. Apr 08 20:32:49 You can just disable that puppy Apr 08 20:33:09 hey peeps Apr 08 20:33:25 hey Apr 08 20:33:29 easy question Apr 08 20:33:50 in a list, does the event take place on the row or the list itself Apr 08 20:34:00 haeffb: that means timeDiff or duetime are strings....if they're all ints, it would be an int answer Apr 08 20:34:30 BigBiff: I think it takes place on the list and the event details contain which row (index) Apr 08 20:34:39 and look, now all my dates/times are right. Apr 08 20:34:44 haha Apr 08 20:35:42 which also explains why the tasks[i].duetime ? was failing. Apr 08 20:35:44 so from a list tap, im trying to pass that list to a new page Apr 08 20:35:53 it was not 0 it was "0" Apr 08 20:36:00 yep Apr 08 20:36:18 a non-empty string is truthy Apr 08 20:36:27 BigBiff: just pass the list model? Apr 08 20:36:38 this.controller.sceneController.pushScene('whatever', event.model?) Apr 08 20:36:58 that seems reasonable Apr 08 20:37:43 i'm going for it Apr 08 20:37:55 and nothin can stop me Apr 08 20:38:02 do you have a model parm in your whatever constructor? Apr 08 20:38:15 and do thisList.model = model; there Apr 08 20:38:48 argument, rather Apr 08 20:40:50 * haeffb wonders what the server does with a unix timestamp for a new task that I pass it... Apr 08 20:43:47 How do I make the buttons on the bottom of the Engadget app using Ares? I don't see an option. Apr 08 20:46:50 Command Menu with icons & using toggleCmd Apr 08 20:46:56 not sure how you do that in Ares Apr 08 20:53:45 =\ Apr 08 20:56:09 I mean, that can probably be done in Ares easily. *I* just don't know how, because I don't use Ares. Apr 08 21:00:54 Sorry, I was AFK for a second. Kuraiou, I understand what you're saying, but what method am I looking for to update the model? Apr 08 21:01:30 Whoops, sorry, misread your answer! Apr 08 21:03:42 My other small question is, what's the best way to detect the blur event of a textField? I was trying to use the Prototype observe function, but was unable to hook up the listener. Apr 08 21:04:40 this.controller.listen("myTextField", Mojo.Event.blur, myBlurHandler); Apr 08 21:05:18 where myBlurHandler = this.myFunctionToCallWhenBlurred.bindAsEventListener(this); Apr 08 21:05:46 Actually, I should probably explain the root reason for doing this... I have two textFields, and pressing the "Enter" key automatically cycles between them. I was going to prevent this by catching the "blur" event and focing the focus back. Apr 08 21:12:44 why? Apr 08 21:13:18 as a webOS user, I expect the enter key to move me to the next text field. Apr 08 21:13:59 I understand that, however I'm also capturing the "Enter" key and using it as a trigger to submit a search. It doesn't make sense for the focus to move to another field. Apr 08 21:14:29 The second text field is more persistent and is gets changes independently of the first. Apr 08 21:14:35 Changed, even. Apr 08 21:14:54 why have it a text field, then? just make it a div and update the contents? Apr 08 21:15:30 That's actually a good idea, sugardave, but in that case, how should I make it easily updateable? Pop up a window with an input? Apr 08 21:16:00 The second field will still get updated by the user manually every now and again. Apr 08 21:16:03 oh, you still want it to be user editable? if so, a pop-up dialog would work Apr 08 21:16:26 That sounds like a good plan. Apr 08 21:16:31 Thanks a lot for your help, guys. Apr 08 21:21:31 Also, binding Mojo.Event.blur doesn't seem to work. Apr 08 21:22:52 that's only because a textField doesn't have a blur event. Apr 08 21:22:58 so, don't listen to me... Apr 08 21:23:40 Oh, haha! Isn't that kind of strange though? It seems like an obvious event to have... Apr 08 21:23:53 it only has a propertyChange event. Apr 08 21:24:38 which will be called on blur, unless you have set the changeOnKeyPress attribute to true Apr 08 21:24:42 Hmm, and I can probably check for 'blur' as the originalEvent... Apr 08 21:24:48 then propertyChange will be called on every keypress Apr 08 21:25:27 so if changeOnKeyPress = false, propertyChange == blur Apr 08 21:26:01 hey haeffb i figured out a fix for that bug i was encountering Apr 08 21:26:14 the swipe to delete one Apr 08 21:26:15 I'll try that out. Again, thanks for your help! Apr 08 21:26:24 I think I saw you fix it yesterday. Apr 08 21:26:50 oh yeah, i did post it before i rebooted, i just never logged in after i rebooted heh Apr 08 21:26:57 it gets the listDelete event but with no value or something? Apr 08 21:27:01 hello Adora Apr 08 21:27:08 nah Apr 08 21:27:25 haeffb: hihi! Apr 08 21:27:27 you listen for propertyChange on the list item Apr 08 21:27:33 right. Apr 08 21:27:40 and look for property 'deleted' and no value Apr 08 21:27:58 if it has a value thats when the row changes to show the delete/cancel Apr 08 21:28:06 if it has no value thats when you hit cancel Apr 08 21:28:07 sounds like a nice tidy little article for webos101... Apr 08 21:28:34 except... Apr 08 21:28:34 and since i was already listening for propertyChange it was a simple if statement to fix ;D Apr 08 21:29:01 ...nevermind. Apr 08 21:29:42 im just happy i fixed it ;p Apr 08 21:30:02 no clue why it works in the clock app without the fix Apr 08 21:30:11 i pretty much copied the alarms scene Apr 08 21:30:48 woot just won 800 ms points ;d Apr 08 21:31:58 Anyone know of a good command menu tutorial? Apr 08 21:32:48 i used the one from the docs and figured it out pretty easily Apr 08 22:09:00 sugardave: BTW, there is a place on earth with a GMT+13:45 timezone Apr 08 22:09:28 haeffb: pong Apr 08 22:11:34 rwhitby: just wanted your input on my timezone issue, but now resolved. Apr 08 22:13:42 this.controller.setupWidget(Mojo.Menu.commandMenu, undefined, Apr 08 22:13:42 {items: [{label:'Button 1', command:'cmd-1'}, Apr 08 22:13:42 {label:'Button 2', command:'cmd-2'}]}); How can I put an image instead of text and make it a long oval with different sections like the Engadget App? Apr 08 22:16:05 twbbas: check the samples that came with teh sdk Apr 08 22:16:17 I did, they just describe it using text Apr 08 22:16:18 mojomatters and the uiwidgets ones Apr 08 22:17:08 you want a group Apr 08 22:17:33 something like this (going from memory) Apr 08 22:17:47 bah lemme look at my src Apr 08 22:17:59 this.modelView = { Apr 08 22:17:59 visible: true, Apr 08 22:18:00 items: [ Apr 08 22:18:00 {items: [{ icon: "refresh", command: "refresh"}, Apr 08 22:18:00 { label: 'label', width: 200, command: 'do-details' }, Apr 08 22:18:00 { icon: 'conversation', submenu:'send-menu'}]}, Apr 08 22:18:00 ] Apr 08 22:18:01 } Apr 08 22:18:06 yikes. let me pastebin it Apr 08 22:18:23 you need to make a group and center it Apr 08 22:18:36 ok Apr 08 22:18:48 Thanks Apr 08 22:19:00 http://webos.pastebin.com/TF98KqER Apr 08 22:19:04 Is there a list of icons somewhere, example being refresh and conversation? Apr 08 22:19:17 twbbas: check the sdk folders Apr 08 22:19:19 Thanks Tibfib Apr 08 22:19:42 there is a "framework" section that has the images. Inside they will be titled menu-icon-XXXX.png Apr 08 22:20:33 http://webos.pastebin.com/aiABMQjt Apr 08 22:20:43 thats tibfib's modified to center the buttons Apr 08 22:20:49 Thanks Apr 08 22:21:10 it automatically tries to evenly space the items Apr 08 22:21:16 dawm|laptop: well in my example the width is modified so it takes up the entire scene, no need to center it ;) Apr 08 22:21:23 if you put a blank at the front and at the end it will put the middle in the center Apr 08 22:21:30 ahh ok Apr 08 22:36:05 rwhitby: I think we talked about a :45 timezone once before Apr 08 22:36:37 Arg... timezones. Apr 08 22:36:45 They will be a pain for my chat app Apr 08 22:38:54 sugardave: there are :15 ones too Apr 08 22:39:17 but the GMT+13 really confuses most naive apps Apr 08 22:39:33 rwhitby: am I correct in assuming that a unix timestamp is the same time everywhere? Apr 08 22:39:40 yes Apr 08 22:39:53 what is GMT +13? Apr 08 22:39:53 haeffb: yep, it's UTC number of seconds since the unix epoch Apr 08 22:40:04 I wonder how toodledo's API handles those :15 amd :45 Apr 08 22:40:55 it doesn't worry about actual timezones Apr 08 22:41:01 not for duedate and duetime. Apr 08 22:41:24 If I say 12:15pm, then it's going to be at 12:15 pm regardless of where I'm at Apr 08 22:41:25 haeffb: 13 hours after GMT, but on the same day (i.e. still left of the date line) Apr 08 23:30:07 whoa Apr 08 23:31:34 rbredow worked on a bunch of big name films.. i didnt know that Apr 08 23:32:07 oh, really? Apr 08 23:32:08 like MIB, ID4, stuart little, polar express Apr 08 23:32:37 http://www.185vfx.com/projects.html Apr 08 23:32:48 visual effect stuff Apr 08 23:33:39 nice Apr 08 23:42:33 http://www.youtube.com/watch?v=vJpEuMidcSU&feature=player_embedded Apr 08 23:42:34 LOL Apr 09 01:30:49 hi all Apr 09 01:55:51 why would webos choke on sources.json? Apr 09 01:56:32 bad syntax Apr 09 01:56:45 missing comma Apr 09 01:56:53 http://www.pastie.org/910774 Apr 09 01:57:00 jsonlint says "Valid JSON" Apr 09 01:57:46 hi jenp Apr 09 01:58:19 you're using an illegal name Apr 09 01:58:20 are you sure it's failing on sources.json and not one of the includes Apr 09 01:58:23 http://www.pastie.org/910777 Apr 09 01:58:45 zsoc, which name? Apr 09 01:59:06 whichever one contains reserved text Apr 09 01:59:13 oh. that one. Apr 09 01:59:33 too bad you can't comment in there Apr 09 02:00:43 well, I don't see any reserved words... Apr 09 02:01:05 * sugardave eyes support_info suspiciously. Apr 09 02:01:48 support_info was from palms sample support app. Apr 09 02:02:04 this is the guy who can't get the app to run. Apr 09 02:02:11 sent me that from his logs. Apr 09 02:02:21 the app runs for everyone else, afaik. Apr 09 02:04:02 possible because I'm not escaping the / ? Apr 09 02:05:16 nah Apr 09 02:05:24 I stopped doing that a long time ago Apr 09 02:05:43 have you asked him if he's got any weird patches? Apr 09 02:07:31 By the way, my Palm is brand new and the only apps I installed were mytether, remotewin and companianlink usb. **** ENDING LOGGING AT Fri Apr 09 02:59:56 2010