**** BEGIN LOGGING AT Sat May 22 02:59:57 2010 May 22 03:01:46 what do I need to do server-side for the download manager upload to work: http://developer.palm.com/index.php?option=com_content&view=article&id=1790&Itemid=273#upload ? May 22 03:05:18 i wonder if i am not using any SDL stuff how much i have to initialize .. May 22 03:05:31 time to hit the docs May 22 03:08:13 hehe, i love hearing you guys ask about c++ algorithms and base 64 May 22 03:08:21 i cant get a scroll fade to work May 22 03:08:24 hah May 22 03:09:37 i won't be able to get a scroll fade to work .. trust me May 22 03:09:45 hehe May 22 03:11:01 whats wrong with your scroll fade? May 22 03:11:23 umm, it's not there May 22 03:11:37 seeing it in inspector May 22 03:11:55 it's giving me an inline style="display:none" May 22 03:12:14 so i change css to display:block May 22 03:12:25 i just think it's against me May 22 03:12:35 :) May 22 03:13:11 and after the div in inspector i see a
May 22 03:13:20 not sure what that is May 22 03:13:39 again - it's against me May 22 03:16:18
May 22 03:17:22 ya, and i got the css rockin May 22 03:17:26 wait May 22 03:17:41 my-scroll-fade=top? May 22 03:17:44 my-scroll-fade-top May 22 03:17:48 ah May 22 03:17:57 typo May 22 03:18:00 i'm gonna give it a go with no x-mojo May 22 03:18:11 use the long url for the image May 22 03:18:32 no x-mojo? Are you MAD????? May 22 03:24:10 so, I decided to look at the PDK and the first thing I notice is I'm screwed....no Linux package May 22 03:25:02 yep May 22 03:27:04 rwhitby: if I started poking around with widk, is it pretty similar to learning with palm's stuff? May 22 03:34:32 got it May 22 03:34:50 had to copy the image from stylematters May 22 03:34:59 i told you mojo is against me May 22 03:35:19 well - or get the right name of the image May 22 03:38:22 ok back to sql May 22 03:45:02 hi all May 22 03:46:01 hi JenP, BigBiff said he needs your help with sql May 22 03:46:15 Me?...nOOOooOOOO he means you May 22 03:46:16 lol May 22 03:46:19 hi guys May 22 03:46:38 im fine on sql - just have to add about 4000 rows May 22 03:46:53 eek what for? May 22 03:47:05 i have 2000 so far May 22 03:47:13 it's not typing really May 22 03:47:23 ctrl c, but still tedious May 22 03:48:09 couldn't you have done some kind of regular expression magic and do it all in one go? May 22 03:48:44 unfortunately no - i havent figured out html parsing yet May 22 03:49:03 well i've given up on hidden drawers in rows...going back to collapsible May 22 03:49:05 especially for sites that change in structure May 22 03:49:16 JenP: hidden drawers suck May 22 03:49:23 Yes they do! May 22 03:49:33 yes they do - they are very slow and icky to animate May 22 03:50:02 so what are you guys working on tonight? May 22 03:50:13 i think my collapsibles are setup wrong, but they work May 22 03:50:41 JenP: I was thinking about doing some hello world learning about C/C++ and the PDK, but my platform is not supported May 22 03:50:58 back to javascript? May 22 03:51:00 so, now I'm downloading the widk in hopes it will enable me to shoot myself in the foot May 22 03:51:00 no amiga PDK May 22 03:51:08 slumming in with the SDKers May 22 03:51:17 Bill! May 22 03:51:27 Hi Jenp May 22 03:51:37 heh, yeah and there's a bug in the C-128 version May 22 03:51:56 there is? I'll stop the download then. still 3 days left on it. May 22 03:51:59 really? May 22 03:52:35 no, not really.. May 22 03:52:41 hows everyone tonight? May 22 03:53:04 the bug is you need 128 C-128s to run the PDK May 22 03:53:08 wheres haeffb ? May 22 03:53:08 meh...i'm glad it's friday May 22 03:53:25 * sugardave hopes you don't look in his trunk. May 22 03:53:37 me too. BOAT IS IN THE WATER.. WHoo Hoo! May 22 03:54:07 nice! May 22 03:54:12 cool! May 22 03:54:52 kids where excited to be back on the water.. May 22 03:55:02 i'm sure May 22 03:55:12 it was like they have never seen the boat. 6 months is like 3 kid years.. May 22 03:56:13 ouch. who hit me from behind? May 22 03:56:24 * sugardave whistles innocently. May 22 03:56:24 hey haeffb May 22 03:56:47 sugardave: uses linux? May 22 03:57:09 yeah, since I got my new laptop May 22 03:57:43 wow. welcome to the 90's dude May 22 03:58:01 win7 !!! May 22 03:58:07 hey, this is bleeding edge technology we're talking about May 22 03:58:28 maybe you are using it wrong if you're bleeding.. May 22 03:58:51 our boat hits the water Sunday May 22 03:59:23 cool. powerboat? May 22 03:59:43 17' bass boat May 22 04:00:15 hey, I need some feedback: http://forums.precentral.net/showthread.php?p=2467752&posted=1#post2467475 May 22 04:00:22 what y'all think? May 22 04:01:19 what are we looking at? May 22 04:01:24 and if you haven't updated wirc, do so. May 22 04:01:35 kk May 22 04:01:38 I think this is the 2nd time you've rolled over on "alleged" copyright infringement.... May 22 04:01:49 ideas for notifications in Done May 22 04:01:51 or is that not the post I'm supposed to be looking at May 22 04:01:53 ah May 22 04:01:54 that one May 22 04:02:09 did I get the wrong post? May 22 04:02:16 I think so May 22 04:02:24 it put me at the bottom of the page May 22 04:02:40 oops. look up. :) May 22 04:05:32 I like the 2nd #1 May 22 04:05:56 for #2, can't you change behavior of what the tap does if the task is filtered? May 22 04:08:13 I can open to the task details. but then when you leave that scene, the task list may not show the task. May 22 04:08:47 & I don't want to change filters all willy-nilly May 22 04:25:06 good evening everyone May 22 04:34:00 Bmyers you in here? May 22 05:10:34 sugardave: WIDK will get you started with SDL. We don't have the PDL stuff fully integrated yet. May 22 05:10:59 rwhitby: okay, that's good enough to start with May 22 05:11:12 but, I may have hit a roadblock anyway May 22 05:41:50 i officially dont like php anymore May 22 05:42:01 i thought i did, but now May 22 05:42:10 php and mojo have teamed up against May 22 05:42:12 me May 22 05:42:38 1.76 - 1.64 = 0 May 22 05:42:46 !!!!???? May 22 05:44:21 you all excited for the hp webos tablet? May 22 05:44:41 can it compete with ipad? May 22 05:44:50 trying to get my sis to get a pre will prob not work thou May 22 05:45:11 i am sure it could compete with ipad May 22 05:45:19 only gonna be 6 months late May 22 05:45:24 but did you know that 1.76 - 1.64 = 0? May 22 05:45:26 I would think it would blow away the ipas May 22 05:46:15 ipad May 22 05:47:06 but if you do a slate then webos needs a virtual keyboard May 22 05:47:45 palm pixi May 22 05:47:47 is going bye bye May 22 05:47:50 for htc evo 4g ;( May 22 05:48:20 ya getting that brick May 22 05:50:31 * rwhitby wonders who will be first to get webOS running on a HTC Evo May 22 05:51:11 only if it works with touchstone May 22 05:51:34 that phone has hdmi out? May 22 05:52:26 it looks pretty sweet May 22 05:52:45 but i'll stick to my 1st gen pre for now May 22 05:53:06 if i can figure out how to make my php subtract 1.76-1.64 May 22 05:54:20 stupid php simplexml May 22 05:54:34 BigBiff: javascript only has one numeric type May 22 05:54:37 HDMI May 22 05:54:38 out May 22 05:54:39 dual cameras May 22 05:54:42 8mp and 1.3mp May 22 05:54:44 qik stream 4g :) May 22 05:54:53 i heard google is going to buy palm May 22 05:54:54 8 device wifi hotspot May 22 05:54:55 and kill it off May 22 05:54:58 you have to do weird Math.round() shit to get good results with decimals May 22 05:55:11 i'm fine with decimals in js May 22 05:55:14 LOL the mirror on the Palm Pre is for blow on the go. May 22 05:55:17 okay May 22 05:55:17 but php doesnt like them at all May 22 05:55:18 double float works May 22 05:55:25 got that on a tweet lol May 22 05:56:08 my xml tree returns some values like 1.76 May 22 05:56:20 simple subtraction is eluding it May 22 05:56:28 BigBiff: you sure your php sees them both as real numbers? May 22 05:56:31 lol savalord May 22 05:56:47 ive tried number_format() but i get an error May 22 05:56:48 tweetme is awesome May 22 05:56:52 maybe they are fake numbers, or imaginary numbers, or just plane irrational! May 22 05:56:59 bitches May 22 05:57:38 but I also have tweed and twit-x May 22 05:57:46 i'll try (double) May 22 05:58:23 BigBiff, is this js or php you are working with? May 22 05:58:32 php May 22 05:59:17 i'm trying to let the server do the calculations, then put them into the sql, then the app can download May 22 05:59:24 the data May 22 05:59:44 but i may resort to letting the app do the calcs, just cause i know i can get js to do it May 22 06:02:00 is the variable you are saving the calculated value too also a float? May 22 06:02:26 hmm, do i need to define it as such? May 22 06:02:40 don't know, but maybe it is guess incorrectly for you May 22 06:03:12 that's what I don't like about dynamic languages, a bit too ambiguous for my comfort May 22 06:03:25 but i suppose it would be an easy test May 22 06:06:13 anyone know of anyone which makes 1000+ a month on wbeos app sales? May 22 06:07:07 speak of the devil May 22 06:07:30 oh, well maybe not sales....not sure May 22 06:08:14 php is a stupid language May 22 06:08:33 the default is to truncate numbers, not round them May 22 06:08:45 BigBiff: if you cast both of them explicitly as (float) does it work? May 22 06:08:54 or try floatval() May 22 06:09:51 (float)boat May 22 06:10:07 sugardave: i may cry - that was it May 22 06:10:18 floated them both - it worked May 22 06:10:26 yay :-) May 22 06:10:35 i'll buy you a beer May 22 06:10:45 awesome May 22 06:10:48 * BigBiff stupid php May 22 06:21:25 need to get back to webos coding, its been weeks.... May 22 06:21:56 wonder when the sdk for the tablet will be out... May 22 07:08:17 are there any rumors about verizon nfl app on pre May 22 07:13:05 no clue May 22 07:17:18 yeah I think it's not going to come out since VZ doesn't support the Pre like it does the other smartphones May 22 07:19:25 like the issues with gps and the many vz apps on other cells that never got ported over. May 22 08:01:28 has anyone else having trouble connecting to hotmail May 22 08:03:12 * rwhitby would never expect a carrier to provide apps. carriers are pipes and should consider themselves to be nothing more and nothing less. May 22 08:05:42 then why do they provide apps for other cells. I know they shouldn't but they do. May 22 08:08:41 the nfl app was released on both BB and android at the same time. I don't believe it was written by 3rd party developers. And if so why didn't a Pre developer step up. May 22 08:11:01 they want to think of themselves as value added portals. they should remain in their place as pipes. May 22 08:11:46 true but I don't think that is going to happen May 22 08:12:10 not while people keep accepting their subsidies May 22 08:12:46 and the #gps fiasco erks me May 22 12:15:13 hello world May 22 12:36:47 hi haeffb May 22 12:37:01 boating today? May 22 12:37:17 maybe a little. hope to anyway May 22 13:49:33 * haeffb having relaunch problems May 22 13:50:21 [20100522-08:45:00.943089] error: EXCEPTION [Relaunch failed.], (Error): "requireDefined Failed: value was expected to b May 22 13:50:21 e defined, but wasn't" May 22 13:55:19 rick-home: ping. Ever seen this before? May 22 14:06:10 what r u doing haeffb? May 22 14:06:45 adding notifications May 22 14:07:06 works perfectly if app is open, but get that error if not. May 22 14:07:28 what error? May 22 14:15:22 [20100522-08:45:00.943089] error: EXCEPTION [Relaunch failed.], (Error): "requireDefinedFailed: value was expected to b May 22 14:15:22 [08:49] e defined, but wasn't" May 22 14:15:58 https://developer.palm.com/distribution/viewtopic.php?f=11&t=7238 May 22 14:16:13 bbiab... May 22 14:29:00 hi May 22 14:29:16 is -webkit-gradient supported un webos ? May 22 14:35:35 http://www.pastie.org/972374 May 22 14:36:00 it happens on relaunch before it even gets into the appAssistant constructor May 22 14:52:54 So, it appears that the framework can't handle multiple launch requests for an app at the same time... May 22 16:30:05 hey guys, i'm on macosx and i've connected my webos phone via usb and installed the developer sdk, but i still have no usb0 device, any suggestions? May 22 16:30:46 is your phone in devmode? May 22 16:31:06 will try toggling... May 22 16:31:35 dawm|laptop: yes May 22 16:35:50 yep, toggled, and still no USB0 device - the sdk and virtualbox have installed fine, i'm actually currently running my active connection through novaterm but am just unsure in why the usb0 device has not appeared in say, ifconfig -a May 22 18:19:30 i just bought wifi sync and this app is great May 22 18:19:32 no more wires May 22 18:30:54 What's the code to change the title in a group? I can't find it anywhere in the samples or by googling. May 22 18:40:39 twbbas:
May 22 18:40:39
Student Information
May 22 18:40:55 where Student Information is the "label" property May 22 18:41:16 that can be set in the HTML May 22 19:20:07 another mark against eclipse...no run configuration for launching in inspect mode May 22 19:31:50 hi all May 22 19:54:03 anyone knows which kernel modules are necessary to novacomd recognizing pre? May 22 20:14:08 going to be a rough week around here, the wife and I are trying to quit smoking May 22 20:14:53 oh good luck! you can do it! May 22 20:15:13 yeah, if I could do it, it would have happened one of the last bazillion times May 22 20:15:19 but thanks for the kind words ;) May 22 20:15:34 you can do it! May 22 20:15:50 and think of all the money you'll be saving! May 22 20:23:29 JenP: if only that were true ;) my wife will make sure that money gets allocated to some other frivolity or two May 22 20:23:47 shoes!!! i pick shoes!!!! May 22 20:24:28 that's a lot of shoes :D it's almost $4K/year for 2 people with a pack a day habit May 22 20:24:51 she would be REALLY happy May 22 20:25:23 I could use $4K/year extra on the mortgage...then I'd be EXTREMELY happy May 22 20:25:39 smiles....see quiting leads to happieness... May 22 20:26:09 I finally got the visible huge patches of stickers out of my yard May 22 20:26:30 now it's time for "ever-vigilant" mode May 22 20:26:34 those things are evil May 22 20:26:39 cool! LOL May 22 20:29:20 * haeffb not happy with relaunch bug May 22 20:29:33 what bug? May 22 20:29:43 http://developer.palm.com/distribution/viewtopic.php?f=80&t=7239 May 22 20:30:41 oh no May 22 20:31:12 I think it's a bug... May 22 20:31:28 ...but whatever it is, it's keeping my notifications from working like I want. May 22 20:31:37 that sucks i'm sorry May 22 21:04:28 how do you save data to a file May 22 21:49:31 haeffb: you around? May 22 21:49:57 haeffb is the squarest of the square May 22 21:50:55 ^2 May 22 21:53:29 does anyone know how to save data to a file, or how I can add html to an element and make it zoomable like in a webview without using a webview? May 22 21:54:05 Chriswebos: you might try using a data uri as the 'url' for download manager and see if that works May 22 21:54:48 data uri? I've tried doing something like file://somepath and got an error May 22 21:55:04 http://en.wikipedia.org/wiki/Data_URI_scheme May 22 21:55:14 morning May 22 21:55:22 it goes like: data:[then some other stuff] May 22 21:55:30 rwhitby: good day May 22 21:57:00 have you used saveviewtofile? it outputs some crazy format. Actually, I just want it to output html May 22 21:57:07 any Preware 1.0.0 users upgrading to 1.1.0 right now from the public feed? May 22 21:57:50 Chriswebos: what is it that you are trying to accomplish on the whole? May 22 21:59:08 I want to save html from a webpage so I can view it later May 22 21:59:30 I have tried the following: setting webview.innerhtml to myhtml May 22 21:59:46 tried saveviewtofile, but it outputs something crazy May 22 22:00:39 so, it sounds like you could just do a regular Ajax request and save responseText to a depot/db (or if it's not too large a plain cookie) May 22 22:01:17 and then read it later into a div when you need it May 22 22:01:44 yeah, I can grab the html, the problem is putting it back in a webview... if I saved it to a file, i could do webview.openurl(file://pathIstoredit)... May 22 22:02:06 putting it in a div makes it unzoomable...meaning I can't do the double tap to zoom in like in a webview May 22 22:02:30 PrimerFender: yo May 22 22:03:14 haeffb: trying to do my calendar kung fu, and not sure if i'm in the right place May 22 22:03:18 webview.openurl(data:text/html;charset=utf-8,[urlencoded contents of responseText]); May 22 22:03:25 might do the trick May 22 22:03:38 i'm cool with either option... putting in a div or putting in a webview... only thing i could find that would store to local is saveviewtofile..but like i said its some crazy format May 22 22:03:49 which place? May 22 22:04:00 hmmm.... May 22 22:04:19 well, based on what I'm seeing, i am thinking i need to get a list of accounts, then a list of calendars for each account May 22 22:04:26 so, [urlendcoded...] would be the straight html? May 22 22:04:33 plain html? May 22 22:04:35 however my service request with method listAccounts returns nothing May 22 22:05:02 look at the wiki link in the examples and Javascript shows loading a web page contents from a data:uri May 22 22:05:17 cool..thx May 22 22:05:17 Chriswebos: it would be entity-escaped May 22 22:05:45 you should just be able to urlencode(responseText) I think May 22 22:06:04 you might have to hack on it a bit, but if webview supports data uris (a big if) that should work May 22 22:09:37 Trying to get all events from all calendars? May 22 22:10:48 sugardave: help! May 22 22:11:05 I _know_ you're not about to ask me about calendars May 22 22:11:08 I need to set alarms for task notifications May 22 22:11:36 I can't set an individual alarm for each task....because of that multiple relaunch problem. May 22 22:11:57 so I need to keep track of which tasks need to have an alarm at specific times... May 22 22:12:13 like three tasks at midnight today, two tasks at 8am tomorrow, etc. May 22 22:12:25 okay May 22 22:12:33 and set one alarm for each time, with info about all the tasks at that time. May 22 22:12:53 I'm sort of with you May 22 22:13:21 haeffb: more or less, only for the next 12hrs, and only for 1 (maybe 2) calendars. but the user will either need to specify which 1 or 2 calendars or i will have it just choose the "default" calendar as specified in the calendar prefs May 22 22:13:22 it sounds like you are around the multiple re-launch problem, then? May 22 22:13:23 so, I'm thinking make an alarms[timestamp] = [task1, task2, task3] May 22 22:13:36 trying to work around it May 22 22:14:01 okay May 22 22:14:14 when I get a new task that needs an alarm, I can alarms[timestamp].push(newTask) May 22 22:14:29 & then reset that alarm. May 22 22:14:59 yes May 22 22:15:38 for now, automatically using the default as specified in the calendar app would be acceptable May 22 22:15:48 & I need to save them to a DB table so I can check when a new alarm needs to be set if there was already one at that timestamp & if so, do the .push() thing May 22 22:16:38 PrimerFender: I never really worked with accounts &such. I just grab ALL events from ALL calendars & mess with that. May 22 22:17:03 so, my DB table has columns timestamp and tasks May 22 22:17:30 very minimal....I like it May 22 22:17:31 where tasks is a string containing an array of task data(s) May 22 22:18:25 array of task objects May 22 22:18:30 that works, OR you could make timestampt NOT a primary key but put a unique constraint across timestamp+task ID May 22 22:19:16 and then there would be multiple timestamp entries, but only one task per timestamp, saves from hassling with converting your string to array and back May 22 22:20:04 how does I put a unique constraint? example? May 22 22:20:13 hmmm....actually, I don't know if you can do what I just said, let me check the sqlite docs May 22 22:20:19 thinking in mysql May 22 22:20:47 or, can you think of a better way to handle this situation? basically need to keep track of all tasks firing at a specific timestamp May 22 22:21:05 and add/edit/delete those tasks per timestamp when necessary May 22 22:24:43 hmmm, I found an example of creating a primary key across two columns...which would essentially do the same thing May 22 22:24:54 not sure you can do it with unique key May 22 22:25:55 haeffb: I'd probably do it with a primary key composing the two columns timestamp and task ID or however you denote which task it is May 22 22:26:52 and that gives you individual records for each time/task combination, which would hoepfully be easier to deal with than extra processing the string representation of them in a single timestamp record May 22 22:26:53 * haeffb now thinking I may be able to avoid it entirely... May 22 22:27:10 the tasks DB has the duedate & duetime timestamps. May 22 22:27:48 I can just select all tasks with the same duedate (& duetime if it exists), then create the alarm with all at once. May 22 22:28:37 I think I was taking the long, long way around.... May 22 22:28:51 and run it again when they update the task list, yeah that should work :D May 22 22:29:00 but thanks for letting me bounce stuff off you...helps me to think May 22 22:29:27 haeffb: Did you use the calendar service request method listCalendars? Or did you take a different route? May 22 22:29:27 np, the long way around is good for when you come across something that forces you to go long May 22 22:29:46 anytime a task is added/edited in the DB, I check to see if an alarm needs to be set. If so, grab ALL tasks with the same duedate/time, set the alarm. Boom. May 22 22:30:07 yeah, you don't need another table :D May 22 22:30:21 PrimerFender: have you looked at Agenda code? May 22 22:30:29 time for shower May 22 22:30:30 no, but that would be helpful May 22 22:30:51 it's downloadable from Precentral. May 22 22:31:14 * haeffb doesn't endorse it as an example of good coding style... :) May 22 22:31:15 i read the cc license and didn't bother looking for source :-p May 22 22:31:57 * haeffb also doesn't know what the various licenses mean... :) May 22 22:32:24 but you have my permission, if necessary, to look at the code... May 22 22:33:22 I'm looking at it now, & see a bunch of things I'd do differently today... May 22 22:34:55 hmm, i can download ipk May 22 22:36:24 sugardave: are you still here? May 22 22:36:56 [17:30] time for shower May 22 22:37:32 doh! that openurl thing didn't work for me :( May 22 22:41:17 I feel dumb, can't find source May 22 22:41:35 what source? May 22 22:41:39 agenda May 22 22:41:55 haeffb's agenda? May 22 22:42:00 yeah May 22 22:42:34 did you download the ipk? May 22 22:42:39 yeah May 22 22:42:54 ok..so use 7zip to open it May 22 22:43:11 der May 22 22:43:20 http://www.7-zip.org/ May 22 22:43:23 does anyone know how to use the saveviewtofile? May 22 22:43:44 save view to file? you mean like screen capture? May 22 22:44:11 no...the webview.saveviewtofile May 22 22:44:28 i have used it and it only outputs some kind of strange format i don't understand May 22 22:45:02 chriswebos: pastebin output, i am curious May 22 22:45:18 I want to save it to a file then reopen it using openurl May 22 22:45:23 pastebin? May 22 22:45:31 webos.pastebin.com May 22 22:46:11 do you know how to copy from novacomd? May 22 22:48:22 thanks JenP May 22 22:48:28 copy doesn't seem to work for me May 22 22:48:38 np PrimerFender May 22 22:48:52 Chriswebos: are you in windows, cmd.exe > novacom ? May 22 22:49:05 or on a different os May 22 22:49:12 windows... May 22 22:49:28 xp May 22 22:49:38 if you are in command prompt, highlight text and use the icon in the top left corner of command prompt window, go to edit, then use copy May 22 22:49:50 command prompt has silly copy/paste controls May 22 22:50:08 hmm...i always double click on novacomd ico May 22 22:50:10 icon May 22 22:50:25 i don't use the cmd.exe > novacom method...let me try it May 22 22:52:58 chriswebos: where do you find the novacomd ico? May 22 22:53:01 ummm...don't mean to sound dumb, but how do you bring up novacom? do you use novaterm? May 22 22:53:19 well, actually i just created a shortcut to novaterm May 22 22:53:21 normally, i open a command prompt and type novacom -t open tty:// May 22 22:53:28 ah, crap, this isn't going to work. May 22 22:53:39 where do you find novaterm? May 22 22:53:58 palm/sdk/bin May 22 22:54:24 under program files May 22 22:54:36 yeah, i don't have a novaterm May 22 22:54:38 just novacom May 22 22:54:46 what version of the SDK are you running? May 22 22:54:50 I have no way to clear the alarm if duedate/duetime is changed for a task. May 22 22:54:57 maybe it's because I'm on Windows 7 x64? May 22 22:55:00 alarms HAVE to be per task. May 22 22:55:08 the latest...but i've been doing that for the longest May 22 22:55:14 prolly May 22 22:57:25 Chriswebos: open cmd.exe (command prompt) (start/run/cmd.exe) May 22 22:57:34 type in "novacom -t open tty://" May 22 22:57:38 and see if that gets you in May 22 22:57:49 yeah..got it...posting the output now... May 22 22:57:54 cool May 22 22:58:24 http://webos.pastebin.com/dwetn7YK May 22 22:59:12 yeah, that's no good May 22 22:59:49 :(...I need a way to save the html to a file...or of feeding a webview a bit of html data May 22 23:00:05 haeffb: if you make a new alarm with the same id it automatically clears out the last one May 22 23:00:08 or of making a div element zoomable like it's in a webveiw May 22 23:00:19 yes, I know. May 22 23:00:38 I was going to use the timestamp for the id May 22 23:01:07 haeffb: what's the problem you're trying to solve with alarms? May 22 23:01:44 but if a task changes duedate or duetime, then it gets a new timestamp - I'd have to save the old timestamp & delete/recreate that alarm (if other tasks using it) May 22 23:02:03 & changes could come from device or web sync May 22 23:02:13 it's getting really complicated. Need something simple May 22 23:02:14 do you _have_ to use hte timestamp as the id May 22 23:02:19 no. May 22 23:02:29 then don't :) May 22 23:02:48 but I have to be able to correlate timestamps with ALL the tasks using that timestamp. May 22 23:02:53 I think it would be easier wiht out it. (although I don't know all the circumstances) May 22 23:03:04 because alarms fire AT a timestamp May 22 23:03:19 they fire at a delay too May 22 23:03:21 & multiple alarms at the same time cause an app relaunch failure May 22 23:04:00 haeffb: keep a table of alarms set and their times? check for the same times and merge alarms if they are the same May 22 23:04:49 inside applaunch: if(!did_launch) {launch whatever; did_launch++}? May 22 23:05:09 set did_laucnh=0 at appropriate times May 22 23:05:34 Chriswebos: the failure happens before it even gets to the AppAssistant constructor May 22 23:05:54 the first alarm is handled OK...subsequent ones that happen at the same time fail. May 22 23:06:09 they relaunch the same app? May 22 23:06:11 Tibfib: that's the direction I was originally headed... May 22 23:06:14 yes May 22 23:06:39 checking for the stagecontroller doesn't solve it? it should only allow one stage to be open May 22 23:06:45 chriswebos: i believe it is saving an image file, have you tried copy the file and appending a file extension like .png and opening it? May 22 23:07:14 Chriswebos: it's happening BEFORE the AppAssistant constructor. i.e. BEFORE I do anything in my app. May 22 23:07:16 I think a table would be easiest May 22 23:07:54 primerfender:well, that was just a piece of the file...i did't see anything that looked like the text from the view May 22 23:08:03 table of timestamp, taskId's May 22 23:08:11 yep May 22 23:08:20 taskId's is a string of task ids that have alarms at that timestamp May 22 23:09:13 oh...so maybe i should try saving it as a png file, then opening as png file? May 22 23:09:28 yeah May 22 23:09:41 hangon May 22 23:09:43 i found a call to that saveviewtofile function, and it was generating a bookmark thumbnail May 22 23:12:35 i think i saw that too...was it a patch? May 22 23:12:59 haeffb: any way you could prevent alarms from going off simultaneously to begin with? May 22 23:16:16 Chriswebos: that's what the table is for May 22 23:16:51 Tibfib: great minds think alike...and so do we ;) May 22 23:17:59 Chriswebos: http://gitorious.org/webos-internals/modifications/commit/7176eca May 22 23:18:17 Chriswebos: no. Multiple tasks will need to have alarms fired at the same time May 22 23:18:22 haeffb: i gave up on hidden drawers and have moved on to collapsible divviders in rows...any advice? May 22 23:18:59 nope. I have never tried collapsible dividers. I don't like them. May 22 23:19:11 haeffb: no way to stagger them just enough to not cause multilaunch, but still be "simulateneous" May 22 23:19:22 the table will allow me to keep track of how many tasks need to fire at any particular time & combine them all into one alarm May 22 23:19:26 jenp: use them myself...what r you trying to do May 22 23:19:31 haeffb why? May 22 23:20:20 Chriswebos: just trying to display more info in a row. Uers selsects collapsible divider to expand row contents. May 22 23:20:24 Chriswebos: not really. I might have created a task with a duedate of tomorrow at 2pm last week. And yesterday I might have created another task that's also due tomorrow at 2pm. May 22 23:20:28 i've just never done them in a row May 22 23:20:38 haeffb: calendarID: all <- lazy bastards! May 22 23:21:14 Unless I'm keeping track of all tasks that have to fire at a particular time, there's really no way to "offset" them May 22 23:21:25 jenp: fairly straightforward...but not if you're following the example in the sdk ;) what's the problem May 22 23:21:35 JenP: what is the drawer problem? May 22 23:21:45 I just don't like the user interface they provide. May 22 23:21:46 Chriswebos: ok then that may be my problem i am following the example May 22 23:22:10 it does look funky with the row divider lines May 22 23:22:16 that example was HORRIBLE for me...took way to long to work... May 22 23:22:40 i dont have all the animation completely right, but it works fine May 22 23:22:58 also, there are some other intracasies you have to fight May 22 23:23:31 do you have an example i can see? May 22 23:23:35 these smoked pork steaks on my counter smell awfully good... May 22 23:23:48 chicken & ribs still in the smoker. May 22 23:24:53 PF: I came across that a short while ago...wasn't much help...but YOU WERE...YOU ARE A DADGUM GENIUS!!! May 22 23:25:25 i made my savetofile stuff a .png file...then set webview to it, and it works great!!! May 22 23:25:41 jenp: putting one together now after i finish praising PF May 22 23:25:54 smiles...thanks May 22 23:26:30 PrimerFender: yes, I am a lazy bastard... :) May 22 23:29:55 jenp: http://webos.pastebin.com/Rs4z6vih May 22 23:30:13 i will need to walk you throuhg it tho...let me know when you have it up May 22 23:31:11 ok i have it up May 22 23:31:48 some of the functions aren't used (too lazy to clean up...plus it adds to confusion)... May 22 23:31:57 kk May 22 23:32:00 chriswebos: awesome! May 22 23:32:24 anyhow, you see the templates? May 22 23:32:34 yes May 22 23:33:22 that's where you need to specify your templates jsut like a regular list...you need two: one for the divider and one for the elements May 22 23:33:38 i will place them...hold on... May 22 23:34:19 kk May 22 23:34:33 http://webos.pastebin.com/VRiXmNB7 May 22 23:35:00 yup i have this May 22 23:35:16 http://webos.pastebin.com/MdiHiJhZ May 22 23:35:55 okay...two things to make sure of: your list elements all have a category item, or they won't get pushed into a divider May 22 23:36:08 no two elements can have the same flagid May 22 23:36:19 ok May 22 23:36:20 (i call each element a flagid) May 22 23:37:08 so, you see in the first template where it is a category for the divider? May 22 23:37:18 yes May 22 23:37:20 it says compress{#category} May 22 23:37:51 nodnod May 22 23:37:58 okay...back to the js...you will see where it is looking for that in attachhandler2 May 22 23:38:36 and moveElementsIntoDividers2 May 22 23:39:05 (in my code, I use the ones that have a 2 on it if it's there) May 22 23:39:14 oh ok May 22 23:39:23 so attachhandler2, not attachhandler May 22 23:39:34 right May 22 23:39:40 but i use moveoutofdividers, since there's no moveoutofdivider2 May 22 23:39:52 okay... May 22 23:39:55 ok May 22 23:40:19 so, moveintodividers2 grabs each element with a flagid, and stuffs it into the category...do you see it? May 22 23:40:32 yes id o May 22 23:40:54 IMPORTANT: you must sort your array by category!! May 22 23:41:00 sorry, didn't mean to shout May 22 23:41:00 why May 22 23:41:37 well, what you will get is some elements in the divider (the first time it came across it), then when it comes across the category again, it'll try to make aother divider for it May 22 23:42:27 so, you'll have "jenp"-> elment1, elemnet2; "haeffb"->element1, element2; "jenp" -> element4, elmenet5 May 22 23:42:30 oh ok May 22 23:42:48 when you press on the first jenp, it'll also expand the 2nd one, mucking everything up May 22 23:43:31 so, sort by category, then do the items.each thingy (see activate function) May 22 23:43:42 also, that's why each flagid must be unique May 22 23:44:01 kk May 22 23:44:03 those were some of the issues i had to sort through May 22 23:44:51 what's those? May 22 23:44:56 also, you'll see that the gotemailsfromcontacts and activate function both call kexamples.each...it should only need to be called in one spot...another issue i had to sort through May 22 23:45:16 the issues above: sorting by category, unique flagid's May 22 23:45:23 ah kk May 22 23:46:03 give the code above a try and let me know what you get... May 22 23:46:11 ok thanks May 22 23:46:29 oh!! jenp!! May 22 23:46:35 another issue: May 22 23:46:36 yes?? May 22 23:47:22 sometimes it'd only work if i named my model kexamples...when i changed the name to something more suitable, it didn't work! crazy..i know you won't believe me...but I spent hours working around that May 22 23:47:33 it's possessed, i'm convinced May 22 23:47:52 smiles... May 23 00:20:08 how do I query a table for rows that match an array of indexes... ? May 23 00:20:11 like myIndexes = [1, 2, 3, 4] May 23 00:20:31 SELECT * FROM myTable WHERE index= ???? May 23 00:22:12 WHERE index=(1, 2, 3, 4) ? May 23 00:22:44 WHERE (index=1) OR (index=2) OR... ? May 23 00:37:53 Does anyone know how to create a serial device out of a palm pre? Preferably over usb? I'm trying to connect my palm to a arduino microcontroller May 23 00:38:20 i was hoping to have the palm pre act as the usb host and just use the usb line as a serial port, but that's seeming like it is unlikely May 23 00:39:30 haeffb: only way i know is to do it one at a time May 23 01:06:25 haeffb: maybe: WHERE index IN (val1, val2, ...) May 23 01:06:37 haeffb where index=in.LIST May 23 01:07:20 slashcom: try #webos-internals May 23 01:07:49 Chriswebos: bad news...data uris are unsupported by webview at this time May 23 01:08:51 yeah...i saw that....primerfender helpd me out with a solution until pdk is supported May 23 01:09:14 basically, saveviewtofile outputs a png of the html....i will use that May 23 01:15:37 chriswebos: if you only stored the HTML, i do not think you would get what you expect. no css, no javascript, no images etc. just a plain looking poorley formated webpage view with some text. I think the saveViewToFile takes the "rendered" page (with the html and css, js, images, etc.) and "snapshots" it as an image May 23 01:17:12 actually, i don't mind the html, because it has everything i need for what i'm doing...i am concerned that the saveviewtofile might not save the entire document, only the part that's visible May 23 01:17:30 i will do some experimenting May 23 01:18:04 maybe wget will help? May 23 01:19:41 will wget let you save to a file? May 23 01:19:56 and can i execute it on webos? May 23 01:20:08 yes to 1 May 23 01:20:10 no to 2 May 23 01:20:27 well in pdk land you can May 23 01:20:38 yeah...i will go with the current setup for now until i can do pdk stuff May 23 01:21:04 in pdk, will i be able to have a plugin that allows me to save from file, with the rest of my stuff done in sdk? May 23 01:21:19 save from file = save to file May 23 01:21:25 no clue :D May 23 01:22:04 yeah...i've been reading, and some people are saying it'll be a while before there are hybrid apps supported... not sure if that's what I'd have or not May 23 01:23:18 use a pipe? May 23 01:23:33 wget asdf | /somepath/somefile.html May 23 01:24:54 try it in novacom first May 23 01:24:58 how would i issue that in webos? May 23 01:25:23 yeah, that's the trick, i'm not sure how to run linux commands from a mojo app May 23 01:25:30 someone should make a tvguide app May 23 01:25:41 that links with the calendar May 23 01:25:54 #webos-internals may help, their stuff runs in linuxland ;-) May 23 01:28:17 yeah....one would think it wouldn't be so hard to either save to a file or force html into a webview May 23 01:29:26 innerHtml.... May 23 01:31:09 tried that...webview doesn't seem to have that May 23 01:31:24 i did a for(name in webview) and it did't show up May 23 01:33:23 hmm May 23 01:36:37 defeating the purpose entirely: you could upload the source to your own server with a name basaed on nduid or something, then webview.open that later May 23 01:37:22 yeah...thought of that but it's prolly overkill May 23 01:37:49 plus it'd mean they need to be connected to internet May 23 02:02:33 sugardave: You've been a busy beaver! May 23 02:16:08 what is THIS! May 23 02:16:27 ? May 23 02:20:51 this.that May 23 02:20:59 bind(this) May 23 02:21:15 thisisambiguous May 23 02:21:47 u must be doing one of those inner functions thingies May 23 02:22:24 my array.sort(function reference) is not working, says a and be are undefined May 23 02:22:40 but they were there before I tried sorting! May 23 02:23:22 inside sort or outside? May 23 02:23:38 outside sort May 23 02:24:14 ummm....I do an array sort on a hash i created...do you wanna see it? or post your stuff? May 23 02:25:01 let me keep messing with it first May 23 02:50:28 it appears my sort function only runs once May 23 02:50:35 for two elements May 23 02:54:41 so I am unfamiliar with your array.sort(function)...I guess it means sort the array and ???? run the function on the sorted entries May 23 02:54:55 or use the function to decide how to sort things? May 23 02:55:11 you write the func May 23 02:55:25 right....what does it do May 23 02:55:26 ? May 23 02:55:35 u get two value. you decide what is b4 the other May 23 02:55:41 myArry.sort(sortByID()); May 23 02:55:50 ah May 23 02:55:55 okay May 23 02:56:03 if(a > b) { return 1} return -1; May 23 02:56:29 it's just that sometimes a or b is undefined and app halts May 23 02:56:35 don't know why it would be undefined May 23 02:56:48 but if I check for undefined and return -1; it goes through May 23 02:56:59 I'll need to play with that...how it works with more than 2 items, etc....does it just go through them all and return a new array sorted thusly? May 23 02:57:13 but then I try to count the # of iterations and it says it only ran once May 23 02:57:22 so something is obviously not right May 23 02:57:29 prolly cause of the undefined? May 23 02:57:56 but I count before checking for undefined so i know i entered sort function regardless of result May 23 02:58:06 r u sort a array thats 1 thingie long? May 23 02:58:15 2 thingie atm May 23 02:58:16 sugardave: http://www.w3schools.com/jsref/jsref_sort.asp May 23 02:58:38 can you do: if (a && b) { if (a > b) {return 1} return -1} ? May 23 02:58:44 haeffb: grassy-ass May 23 02:58:56 so, I went the extra table route May 23 02:59:12 ha ha May 23 02:59:21 oh yeah? did you do the primary key across 2 columns way, or the string array way? May 23 02:59:30 so far the string array way **** ENDING LOGGING AT Sun May 23 02:59:57 2010