**** BEGIN LOGGING AT Wed Dec 23 02:59:57 2009 Dec 23 03:00:02 you've done well with it. be proud.. Dec 23 03:00:15 i am...over 600dls Dec 23 03:00:19 crazy Dec 23 03:00:37 123 dls today, mostly ppl updating i believe, 117 unique installs, and 261 launches, i shoulda put this callhome/tracker in my first version Dec 23 03:00:38 THATS ALOT OF SHOES!!! Dec 23 03:00:58 lol bmyers...that's a pair of shoes Dec 23 03:01:02 dawm_: you got something canned? Dec 23 03:01:11 dawm_: I beat you Dec 23 03:01:13 canned? no Dec 23 03:01:33 no et.js? Dec 23 03:01:45 phone home library? Dec 23 03:01:50 i have my own Dec 23 03:02:04 dawm_: Do you have an upgrader in your app? Dec 23 03:02:12 i'd like to do something similar Dec 23 03:02:20 what do ya mean upgrader? Dec 23 03:02:32 As in an upgrade notification scheme Dec 23 03:02:33 like a notification theres an update? Dec 23 03:02:37 nah Dec 23 03:02:42 agreed...spill your secrets dawm...LOL Dec 23 03:03:05 If you're putting in a callback, might be good to also include an upgrade notification Dec 23 03:03:24 yeah i planned on it once i get the online scores all figured out Dec 23 03:03:46 gotta figure out the best way to handle the user/scores, serverside is done just have to figure out a pleasing way inside the app Dec 23 03:04:50 http://catalog.webosschool.com/#AppDetails;id=579 Dec 23 03:04:52 Ours works by just a remote config file that says the current version number. So, as soon as we increment that up, everybody's first menu item is **Upgrade Available** and it links to the app catalog. Dec 23 03:04:58 is helpful, sinc ei dont have to open app catalog to check Dec 23 03:05:09 yeah i was gonna do the same Dec 23 03:05:33 I just wish Palm gave us the App Catalog links beforehand Dec 23 03:06:03 you could use the appinfo ver #? Dec 23 03:06:22 no he means the app catalog id Dec 23 03:06:34 no, i mean instead of a remote file Dec 23 03:06:36 so you wouldnt have to wait for the app to be added before you find out the url to the app Dec 23 03:07:36 what do you use to phone home? Dec 23 03:07:49 Bmyers: It checks the version number via appinfo to compare it to the remote number Dec 23 03:07:59 ajax to a serverside script that dumps to mysql Dec 23 03:08:03 Bmyers: ajax Dec 23 03:08:17 cool.. Dec 23 03:08:35 Bmyers: We log by device id Dec 23 03:08:37 And username Dec 23 03:08:41 yeah i'd think i'll add something like that Dec 23 03:08:57 i see a few are 1.3.5, betting that was my reviewer Dec 23 03:09:29 rather reviewers, since theres 3 different devices Dec 23 03:09:29 cool, did u get his credit card # too? Dec 23 03:09:34 lol Dec 23 03:09:58 s/his/their Dec 23 03:09:58 just the nduid, appid, app version, webos version, device and the time Dec 23 03:10:11 nod nod Dec 23 03:10:13 If I were insidious, I'd grab the entire contacts list Dec 23 03:10:14 wink wink Dec 23 03:10:31 well they might notice that missing Dec 23 03:10:55 You been drinking, son? Dec 23 03:11:24 i dont really drink.. Dec 23 03:11:30 onshore anyways.. Dec 23 03:11:58 Bmyers: By the way, new beta version will be coming your way sometime this week Dec 23 03:12:12 All nice and shiny Dec 23 03:12:18 o, cool. Dec 23 03:12:35 have to check that out.. Dec 23 03:13:12 i looked at that brighthand app? the stocks one Dec 23 03:13:20 101k dl's? Dec 23 03:13:30 brighthouse Dec 23 03:13:34 You're kidding me Dec 23 03:13:36 right.. Dec 23 03:13:41 isnt it? Dec 23 03:13:55 maybe i was drunk.. Dec 23 03:14:06 whats messed up is that 15.1% of the catalog is sports apps, and most of those are brighthouse Dec 23 03:14:23 those frig'n sports apps are a pain Dec 23 03:14:23 22.9% are games Dec 23 03:14:46 http://catalog.webosschool.com Dec 23 03:14:48 check it out Dec 23 03:14:48 Bmyers: Are you sure it wasn't Handmark? Dec 23 03:15:04 are they over 100k dl's Dec 23 03:15:14 yeah Dec 23 03:15:20 Express Stocks Dec 23 03:15:22 ok, must have been that one. Dec 23 03:15:39 Yeah, that was one of the first apps Dec 23 03:16:04 yeah Dec 23 03:16:09 that was #11 in the catalog Dec 23 03:16:16 explains it i guess. Dec 23 03:16:35 but the first app was #6, so technically it was the 5th app in the catalog Dec 23 03:16:49 cookie for dawm.. Dec 23 03:16:58 I want 200,000 users Dec 23 03:17:22 when would you hit at at your current rate? Dec 23 03:17:35 Never unless Palm fixes the search Dec 23 03:17:48 yeh search is br0ked for some apps Dec 23 03:17:59 o, yeah. jenp couldnt find the shoe app Dec 23 03:17:59 Sadly, my app Dec 23 03:18:15 I blame BrightHouse Dec 23 03:18:43 me too Dec 23 03:18:43 thats a pain yes. Dec 23 03:18:58 did u find the shoe app? Dec 23 03:19:00 It's easy to blame them Dec 23 03:19:08 They are the convenient scapegoat Dec 23 03:19:21 The day my app came out, BAM! The first flood hit Dec 23 03:19:21 * Bmyers getting pitch fork Dec 23 03:19:34 flood? Dec 23 03:19:41 My app came in fourth on the day and then...20 BrightHouse apps Dec 23 03:19:43 torches... Dec 23 03:19:55 pitch forks!! Dec 23 03:19:59 JenP: BrightHouse sports team flood Dec 23 03:20:08 yeah i saw those Dec 23 03:20:47 Then, search stopped working Dec 23 03:22:14 When that happened I was just thinking to myself...jeee...thanks Palm. Dec 23 03:22:21 Could have thrown all of the crap into the rear Dec 23 03:23:30 But still. 27,700 users Dec 23 03:47:53 * FoxFireX goes to fire up mIRC on another machine. Dec 23 03:48:47 Cool. So now I can IRC while on the road. Dec 23 03:59:03 yeah i irc from my 2nd floor library all the time.. Dec 23 04:03:39 Man, this feels like such old times. Used to use this client back in college. Dec 23 04:21:16 join webos-internals Dec 23 04:21:38 Ok. Dec 23 04:21:48 Oh, wait, you weren't talking to me. Dec 23 04:21:53 lol oops, missed a slash Dec 23 04:22:23 Have you ever looked at toodledo? Dec 23 04:22:36 yes Dec 23 04:22:56 might be an easier platform to work with than RTM... Dec 23 04:23:17 i think someone already wrote an app for that site Dec 23 04:23:37 I wrote an app, but all it does is let you add tasks. Dec 23 04:23:44 i can't stand their website either Dec 23 04:23:46 and view tasks. Dec 23 04:23:49 but no sync. Dec 23 04:24:05 thats all mine does so far, haha Dec 23 04:24:08 well, there's that Dec 23 04:25:30 u ever talk to anyone at toodledo? Dec 23 04:26:24 just through their support ticket system. Dec 23 04:27:38 he suggested that I cache data offline to reduce server load & he'd add TaskAdder to his "import/export/sync" page. Which I haven't done yet. Dec 23 04:27:59 But I think he'd be easy to work with if you really wanted to put an app together. Dec 23 04:28:16 cuz i tried talking to RTM n it pissed me off how unresponsive they are Dec 23 04:28:36 that seems to be modus operandi for them. Dec 23 04:28:42 from what I've heard. Dec 23 04:28:48 sorry, whats that Dec 23 04:28:50 one of the reasons I went with toodledo instead Dec 23 04:29:03 normal operating procedure. Dec 23 04:29:05 left my latin degree at home Dec 23 04:29:15 ah Dec 23 04:30:11 I know that another developer was working on a toodledo app, but haven't heard any progress updates for months. Dec 23 04:34:09 is it in homebrew? Dec 23 04:36:07 nope, was going to go to the catalog, I think, but haven's seen anything released. Dec 23 04:37:39 ah Dec 23 04:38:29 Wow. Ocala, Florida is an absolute sh*thole Dec 23 04:45:08 So, still setting up on this box. Been using Mac for a while, but keeping Windows on this one for travel. Suggestions for an email client? Thunderbird still rule the roost? Dec 23 04:45:28 * haeffb just uses gmail online Dec 23 04:46:22 and email on the pre, of course. Dec 23 04:46:25 Yeah, Gmail's my primary personal, but I've got a work Exchange (IMAP) account that I'd like to be able to keep tabs on. Dec 23 04:46:38 Pre? Dec 23 04:46:43 Yeah, the Pre's great for checking briefly, but if I actually want to reply, I'd prefer a bigger keyboard. :) Dec 23 04:47:01 Depends on how indepth I need to go, y'know? Dec 23 04:47:35 gotcha Dec 23 04:47:56 outlook express used to be sufficient for me Dec 23 04:51:59 hi sugardaves Dec 23 04:56:59 g2g, take care haeffb Dec 23 05:03:10 reality9110: are you just visiting there? Dec 23 05:34:21 lemketron: Just passing through on my way to Tampa and then Fort Myers Dec 23 05:34:32 lemketron: And thanks for the tweet earlier Dec 23 12:44:35 Hi, I am a happy new user of the Palm pre, but one thing seriously annoys me: I tend to switch of the phone during the night, or at least put it into airplane mode. Then, if the time settings are to use the network time signal, the clock stops working. And so do all alarms and tasks... Since the clock works if set to manual, this seems like a minor glitch in the firmware: why not use the... Dec 23 12:44:37 ...network time whenever possible if set so, and revert to the internal clock for the times when there is no signal? Dec 23 12:47:19 I am using the latest update 1.3.1, and I read an announcement about an upcoming new release 1.4, so maybe this is already fixed? Dec 23 13:36:47 anyone here? Dec 23 13:47:48 hi LS34 Dec 23 14:10:05 haeffe!!! Dec 23 14:10:18 how was basterds? Dec 23 14:10:29 pretty good actually Dec 23 14:10:33 bloody Dec 23 14:10:45 but, pulp fiction type bloody Dec 23 14:10:48 yeh. no kidding Dec 23 14:11:00 Brad Pitt was hilarious Dec 23 14:11:30 i think it might be his best movie Dec 23 14:14:02 haeffb: work'n hard or hardly working? Dec 23 14:26:04 not at work today. doing some housework, then maybe coding Dec 23 14:38:38 morning all! Dec 23 14:41:50 anyone know who build the radiotime app? Dec 23 14:50:42 reality Dec 23 14:51:18 oh, does he work for the company, or is it a 3rd part app? Dec 23 14:54:16 3rd party, but he has a relationship with the company Dec 23 14:55:57 haeffb: ok, cool,. Dec 23 14:57:00 once a i have an appointed rep. at Palm what happens next? Dec 23 15:03:32 they will upgrade your webOSdev account to developer status Dec 23 15:04:09 haeffb: how long does that take? got the email yesterday at 4.30 Dec 23 15:04:23 when you log in, you'll see "my apps" next to "my account" on the welcome screen after you login Dec 23 15:04:36 on the top right Dec 23 15:04:43 oh, just logged in but nothing yet Dec 23 15:04:46 it takes as long as it takes Chuq to add you to the database. Dec 23 15:05:09 If Chuqi shows up here later, ask him. Or, email your minder and ask them. Dec 23 15:05:13 during the holidays...who knows Dec 23 15:05:48 Rick_work: ok thanks, Dec 23 15:07:26 I asked this yesterday, but still having problems, trying to override the default: text field box image, anyone know how? Dec 23 15:08:35 LoneStar34 happy to work on it with you. Dec 23 15:08:59 I have seen it done, but I can't remember where but by golly we KNOW it's doable. :-) It's just a box for Ghu's sake... Dec 23 15:09:31 LoneStar34 step one in doing such a thing is always inspector. Do you have your app up in the emulator and can you run inspector against it? Dec 23 15:10:04 Rick_work: how do I run inspector? Dec 23 15:10:18 command line, komodo, or eclipse? Dec 23 15:10:49 i have eclipse and komodo, but prefer command line or do you recommend eclipse? Dec 23 15:11:46 either is fine. wait one. Dec 23 15:12:39 ok command line Dec 23 15:12:40 palm-launch -i com.example.app Dec 23 15:13:08 then run inspector Dec 23 15:13:15 and it will find the "inspectable app" Dec 23 15:14:11 ping mobgod Dec 23 15:15:20 Ping request cannot fine host "mobgod" Dec 23 15:16:36 hehehehe Dec 23 15:16:41 did you get inspector up? Dec 23 15:17:50 I got the following: Dec 23 15:17:52 connecting to device emulator (3EC88CC699C7DFC5894A0517CD3B166DC7AC815D:tcp:5602 Dec 23 15:17:52 4) Dec 23 15:17:52 launching application com.buildasearch.search.app Dec 23 15:17:52 inspecting application com.buildasearch.search.app Dec 23 15:17:52 C:\Users\radio shack\Documents\My muvees\Desktop\palm>ping mobgod Dec 23 15:18:59 ok, LoneStar34 now, launch the inspector, and you should get a window ON YOUR DESKTOP that let'syou drill down to your text field. Dec 23 15:19:10 argh, ares is really driving me nuts Dec 23 15:19:31 i've made many changes but it keeps loading the one i saved yesterday Dec 23 15:19:35 g073nks what's the problem. ?? I'm seriously considering writing an ares "missing manual" book Dec 23 15:19:43 g073nks ouch. Dec 23 15:20:03 g073nks export it to your desktop, delete it and then copy the zip back up. Dec 23 15:21:13 Rick_work: how do I launch inspector, the same : "palm-launch -i com.example.app"? Dec 23 15:21:21 non ono Dec 23 15:22:01 you have an APPLICATION on the desktop Dec 23 15:22:03 uh Dec 23 15:22:38 i have the emulator on with my app running... Dec 23 15:22:39 sdk/share/palminspector/palminspector.exe Dec 23 15:22:52 IN ADDITION to the emulator the inspector is an exe Dec 23 15:23:04 that "looks into " the emulator and let's you see what's going on. Dec 23 15:24:25 ok found it white screen with "elements" tab on the left Dec 23 15:25:16 ok So, emulator is up, your app is running, inspector didn't find it? Dec 23 15:25:46 yes I see html code from my app Dec 23 15:25:59 oh goody. Dec 23 15:26:12 NOW .... use the diamonds to drill down through the body to find your text field. Dec 23 15:26:33 you called the field you're wanting to change the background of, some ID... find it Dec 23 15:27:54 ok found it Dec 23 15:28:35 now, on the right, int he right hand window, you wil be able to see what CSS is active oon that element, Dec 23 15:28:48 and you can find the css style that is controlling the background, Dec 23 15:28:59 you can also expand and review the inherited styles Dec 23 15:29:11 and the effective net computed style Dec 23 15:29:18 ok , let me check it out Dec 23 15:29:18 it's really useful. Dec 23 15:30:59 yeah , never knew about inspector "Clouseau" Dec 23 15:32:13 now you see why I keep telling people that you can override ANYTHING... you just have to use inspector to find what it is you need to override. Dec 23 15:32:22 Rickw_work: what is the proper CSS webkit statement... Dec 23 15:32:39 for what? Dec 23 15:33:02 to write in CSS to assign new image? Dec 23 15:33:26 did you find the background setting on the right? Dec 23 15:33:38 what style is it, and what file is it? Dec 23 15:34:34 -webkit-box-sizing: content-box: Dec 23 15:34:50 nope, that's the size Dec 23 15:34:57 you're looking for background-image Dec 23 15:35:03 and there may not be one. Dec 23 15:35:17 yeah , it seems like none Dec 23 15:35:22 ok Dec 23 15:35:36 so what's the id of the div that you want to style? Dec 23 15:35:55 sendField Dec 23 15:36:17 ok, now inside sendfield is a palm-textbox div right? Dec 23 15:38:15
Dec 23 15:38:34 minus "0" - typo Dec 23 15:38:40 right and what's the next div inside that? Dec 23 15:39:19 the hintText stuff Dec 23 15:39:47 ok, and after the hinttext stuff? Dec 23 15:40:14 Oh shit: with your method, the hintText, might be able to be replaced dynamically! Dec 23 15:40:55 yes. you take your div id, and then find the child nodes, and modify the text of the hinttext element. :-) Dec 23 15:41:09 id="palm_anon_element_0mojo-scene-firstsendField-read" Dec 23 15:41:21 that's why inspector is so cool Dec 23 15:41:35 LoneStar34 that's the ID, what's the class???? Dec 23 15:42:37 class="truncating-text" Dec 23 15:43:04 Bingo. Dec 23 15:44:06 there's a "read" and a "write" div in the textField Dec 23 15:44:15 yep. Dec 23 15:44:39 haeffb I've been through this, I just want LoneStar34 to find this stuff so that he gets what's going on..... Dec 23 15:44:53 I haven't, so I'm following along. Dec 23 15:45:22 except my inspector just crashed, so I have to restart the emu Dec 23 15:45:38 Now, LoneStar34 here's your decision. You can modify the truncating-text style to have a background, if you do that, you will be modifying ALL textfields. Dec 23 15:46:18 Rick_work: i only have one textfield in my app... Dec 23 15:46:25 Or..... you can ad a class to sendField "class=mybackgroundclass" and you can put a background in it.. Dec 23 15:47:00 LoneStar34 ok then. in your div where you set up the x-mojo--element="TextField" add class="lonestarback" Dec 23 15:47:04 or something like that. Dec 23 15:47:27 then, in the apps stylesheet css file which is in the stylesheet folder in your app folder) Dec 23 15:47:28 add Dec 23 15:47:44 i got my practical palm pre apps book delivered yesterday Dec 23 15:47:45 :) Dec 23 15:47:51 er...truncating-text is used in more than just textfields, isn't it? Dec 23 15:47:59 haeff yes it is. Dec 23 15:48:12 LoneStar34 add a class Dec 23 15:48:57 lonestarback{background-image:url('../images/myimage.png') Dec 23 15:49:32 ok working on it... Dec 23 15:49:54 was this useful sir? (Or madam as the case may be) Dec 23 15:50:25 ((( On the internet no one can tell if you're not human, as long as you're sentient. And even that can be marginal sometimes. ))) Dec 23 15:50:52 * haeffb is mosty human. Will be completely human when I get my coffee. Dec 23 15:51:00 yetdog: you like? Dec 23 15:51:04 * Rick_work needs more coffee. Dec 23 15:51:16 i just flipped thru it a bit last night but seems very thorough Dec 23 15:51:33 explaination of mojo, and lots of sample apps Dec 23 15:51:38 the classic invokation of that is "on the interenet no one can tell if you're a dog." except for yetdog who admits it up front... Dec 23 15:51:40 Rick_work: why did we have to go thru the inspector just to add a class to the textfield div Dec 23 15:51:41 i like learning by example so its perfect for me, will be a nice reference point Dec 23 15:51:52 haeffb we didn't Dec 23 15:52:02 ok. just an exercise in inspector Dec 23 15:52:17 Rick_work: very useful - will write something about it on the forum and webos101.com Dec 23 15:52:22 haeffb we went through the inspector because LoneStar34 had never run it, and didn't know how to drill down to an element and see how it was built and styled. Dec 23 15:52:27 Rick_work: I am not human Dec 23 15:52:44 * haeffb says thanks. I needed that. Dec 23 15:53:37 and I thought that LoneStar34 was the one wanting to change hinttext dynamically yesterday, and this is how you find out stuff like that. Dec 23 15:53:43 so, if LoneStar34 wants to modify hint text, can he get the div of the textfield, then something like thisDiv.child[0].innerHTML = "MY STUFF"? Dec 23 15:53:55 Yep. Dec 23 15:54:02 awesome Dec 23 15:54:13 and you can analyse ANY widget that way.... Dec 23 15:54:25 buttons radio buttons, sliders whatever. Dec 23 15:54:29 too bad he's not human, or he'd be dancing up and down right now. Dec 23 15:54:51 want to change the image that forms the button on the slider from the fading circle to a basketball? Look it up. Dec 23 15:54:55 etc etc etc.... Dec 23 15:55:07 EVERYTHING is just css and HTML Dec 23 15:55:13 inspector is the bomb Dec 23 15:55:16 i have trouble with inspector and multistage apps. doesnt work? Dec 23 15:55:30 learning WebOS and taking back the secrets to my planet Dec 23 15:55:39 bmyers, it's a problem yep Dec 23 15:55:55 next time you see lemketron on here ask him about that. Dec 23 15:56:04 workaround? Dec 23 15:56:17 create the scene in a single-stage app. Dec 23 15:56:17 launch the second stage directly? Dec 23 15:56:37 i'll see if that work Dec 23 15:56:43 maybe it doesnt know where to start Dec 23 15:56:53 I have no idea if there is a way to create a new stage programatically in inspectable mode. Dec 23 15:57:01 but there MIGHT be. Dec 23 15:57:12 that would be a good question to ask in the palm forums. Dec 23 15:57:13 do the -i launch with params? Dec 23 15:57:31 Bmyers I've read that batch file, I don't think so. Dec 23 15:57:53 hmm.. Dec 23 15:58:33 Rick_work: ok it is working, need to tweak some more to get it right Dec 23 15:58:51 Rick_work: you deserve some pints! Dec 23 15:59:43 Rick_work deserves a paycheck from Palm. he's helped everybody in here at some point. Dec 23 16:00:06 Friend of Bill, and a diabetic, so they're going to have to be liters of diet coke I'm afraid. Dec 23 16:00:10 haeffb_gon4coffe: Yeah you are right! Dec 23 16:00:16 haeffb_gon4coffe thanks Dec 23 16:00:40 what is "Friend of Bill"? Dec 23 16:04:22 http://www.urbandictionary.com/define.php?term=Friend%20of%20Bill%20W. Dec 23 16:09:50 In hotels that don't want to advertise an AA meeting on their lobby sign card, you will sometimes see "Bill W." as the event name... Dec 23 16:11:17 ok - got you, my wifi was flacking out, - yeah just read it, Dec 23 16:11:55 You know the difference between a drunk and an alcoholic? Dec 23 16:12:24 me, i love to get wasted! Dec 23 16:12:27 lol Dec 23 16:12:31 not sure... Dec 23 16:12:37 drunks don't have to go to all those damned meetings. Dec 23 16:12:49 lol Dec 23 16:13:21 ok, who's up for reviewing something for me? I have a hunk of text I need a first-reader for. Dec 23 16:13:35 ok send me the link Dec 23 16:16:15 see pm Dec 23 16:22:44 i'll review as well, when I get back from coffee Dec 23 16:22:59 haeffb_gon4coffe ping me Dec 23 16:34:59 adora! arent you supposed to be flying? Dec 23 16:35:01 (twitter) :p Dec 23 16:35:18 she was twittering from the San Jose airport. Dec 23 16:35:25 presumably on her pre. Dec 23 16:35:32 naturally... Dec 23 16:35:36 yeah, I'm at the airport Dec 23 16:35:46 and the ONLY REASON I pulled my laptop out Dec 23 16:35:57 is because no facebook client would let me add a caption to a photo I uploaded Dec 23 16:35:57 i was supposed to fly into SJ a couple weeks ago but it was booked so i had to go into SFO Dec 23 16:36:27 i find the pre facebook apps are still lacking. thus, my facebook has suffered. however, i dont care much :) Dec 23 16:37:30 Rick_work: I was actually tweeting from the foursquare app Dec 23 16:37:37 although I think I'm two builds behind Dec 23 16:37:40 Adora, sorry. I just don't have TIME to write a facebook app. Dec 23 16:39:29 hmm i think its time i check out this foursquare thing Dec 23 16:39:39 boarding now, bye guys! Dec 23 16:54:57 Mornin Chuqui Dec 23 16:55:28 happy getting really close to christmas, all Dec 23 16:56:37 Rick_work: ping Dec 23 16:56:56 happy holidays, chuqui Dec 23 16:57:01 yeah! Dec 23 16:57:11 Hi Chuqi !!! Dec 23 16:57:24 Howdy Chuqui! Dec 23 17:10:29 *grumble* I have that problem with my pre where the power button doesn't provide tactile feedback anymore and I have to press it kind of hard. Any ideas other than "a really tiny shim" or "take it back to the Sprint Store"? Dec 23 17:16:41 laughs at dsevil as my pres screen is no longer connected to the keyboard Dec 23 17:16:49 * CTLAdvance laughs at dsevil as my pres screen is no longer connected to the keyboard Dec 23 17:17:26 dsevil do you have device insurance Dec 23 17:18:15 yeah Dec 23 17:19:09 i'd rather avoid the hassles associated with device replacement (i.e. reinstalling stuff and finding out that the palm pre profile doesn't backup *everything* i'd like.) Dec 23 17:19:46 if it's as simple as just replacing the little plastic power button i'd be all set Dec 23 17:21:33 anyone have any experience with multiline text fields? Dec 23 17:21:43 specifically, does it store newline chars as \n? Dec 23 17:24:01 trying to maintain newlines when i send field through a query string to my server Dec 23 17:24:05 yetdog: yes Dec 23 17:24:33 i did some outside-the-sdk (OMG HAX0R) work with a text field and can confirm that there are no \r characters. Dec 23 17:24:37 to the second question Dec 23 17:24:39 on the first day of christmas my true love gave to me... beer... Dec 23 17:24:55 4 lbs of back-bacon Dec 23 17:24:55 yeah dsevil - when i take the value of the field and pass it, the newline is basically ignored Dec 23 17:25:04 three french toasts Dec 23 17:25:06 so if i have sometihng like this: Dec 23 17:25:08 test message Dec 23 17:25:10 new line Dec 23 17:25:22 the query string will have test%20messagenew%20line Dec 23 17:25:24 :( Dec 23 17:25:37 test message /n new line Dec 23 17:25:50 \n Dec 23 17:25:54 how are you passing it? Dec 23 17:26:03 basically just grabbing this.model.value Dec 23 17:26:11 passing it via JSON call Dec 23 17:26:32 this.model.value will have the "\n" character in it. Dec 23 17:27:23 hmmm, doesnt show up in my apache logs -= wlil it show in the URL string? Dec 23 17:29:23 you might just have to encodeURIComponent() it yourself. Dec 23 17:29:31 and then build the URL yourself. Dec 23 17:29:57 What's the exact code? Dec 23 17:31:06 as for showing up in the URL string... what's in apache logs *is* the URL string. Dec 23 17:31:20 a \n should show up as %0A or %0a Dec 23 17:32:27 yeah, apache isnt showing anything newline-related Dec 23 17:32:33 hang on, trying to get mojo log info stuff Dec 23 17:33:36 #################################STRING VALUE: Testing newline NEWLINE HERE Dec 23 17:33:42 ok so the variable actually has the spacing Dec 23 17:33:51 so i need to encode that before shipping it to the URL Dec 23 17:34:07 well, i *think* it has the newline... Dec 23 17:34:15 i guess that log entry doesnt really prove anything Dec 23 17:34:25 what does Mojo.Log.info("%j", this.model.value); show? Dec 23 17:35:02 exactly what i just pasted ya Dec 23 17:35:09 the ##STRING VALUE: thing Dec 23 17:35:50 here we go Dec 23 17:35:54 ENCODE VALUE: Testing%20the%20new%20line%0AHERE Dec 23 17:36:04 i did what you suggested - encodeURLComponent Dec 23 17:36:07 URI* Dec 23 17:36:33 Rick_work: ping Dec 23 17:36:48 yetdog: I still want to see the code Dec 23 17:36:53 k Dec 23 17:37:35 http://webos.pastebin.com/m3f226dda Dec 23 17:38:19 ah, so you're manually building the URL already. Dec 23 17:38:44 now i am Dec 23 17:38:46 i wasnt before Dec 23 17:38:47 your help Dec 23 17:38:59 i want to see waht you were doing before. Dec 23 17:39:41 take out the encodeURIComponent Dec 23 17:39:45 i was jus tmissing that Dec 23 17:40:08 < dsevil> ah, so you're manually building the URL already. Dec 23 17:40:10 < yetdog> now i am Dec 23 17:40:13 < yetdog> i wasnt before Dec 23 17:40:23 I take this to mean you were not previously building the URL. Dec 23 17:41:35 yetdog: use the Mojo.Log.info("Model value is %j", this.textModel.value); Dec 23 17:42:05 the log call with the string is stripping newlines. the %j does not. Dec 23 17:42:34 correct Dec 23 17:42:38 ahhh ok sweet Dec 23 17:43:09 so you can see that they are indeed in there Dec 23 17:45:28 yetdog: by "manually building a URL" i am referring to the statement in line 8 of your pastebin where you assign to the addRevURL variable a URL built by concatenating a bunch of things. Dec 23 17:45:46 If you were doing something different than this, that's what I'm curious about. Dec 23 17:50:38 haeffb sorry I was on the phone Dec 23 17:59:32 ah i gotcha dsevil - thank you very much for your help Dec 23 17:59:38 things are going very well for v2 of my app :) Dec 23 17:59:43 much in thanks to the help here Dec 23 18:00:57 i on the other hand am stuck in my v2 stuff... Dec 23 18:01:14 i can't seem to load my persisted json into a dynamic list Dec 23 18:01:17 which... sucks Dec 23 18:01:18 :P Dec 23 18:01:28 yetdog: no problem. you should encodeURIComponent() anything you're passing as a query string value, generally. Dec 23 18:01:51 pandora, what are you trying to do? Dec 23 18:03:10 rick_home: i have a view that takes an array as it's datasource, and this array is populated from a webservice. and you can basically save it for offline viewing, so i'm persisting and retrieving the list (to/from json) and feeding it back to that view Dec 23 18:03:33 as far as i can tell the array i feed it from the live webservice is identical to the one that i've loaded out of storage Dec 23 18:03:47 but it doesn't actually render the stored json. just blank Dec 23 18:03:51 who knows Dec 23 18:03:56 modelchanged? Dec 23 18:04:04 I have a suggestion. Dec 23 18:04:07 sure Dec 23 18:04:38 yetdog: i thought about that, but i don't think it applies, since i'm not changing the model, i'm supplying it up front, on initial load of the view Dec 23 18:04:54 Create two div's at the bottom of your scene. id one as "webdiv" and the other as "storediv" and take the json data from the web and shove it into the innerhtml of the one, and the stored json into the inner html of the other Dec 23 18:05:02 are you tailing /var/log/messages? Dec 23 18:05:20 then, Use the inspector to get to those and pull them out into an editor where you can side-by-side compare them. Dec 23 18:05:22 yetdog: yeah and everything is coming out as expected, except for the blank screen Dec 23 18:05:32 rick_home: thats a good idea Dec 23 18:05:36 ah ok..sometimes if it doesnt like an object it'll yell in messages Dec 23 18:05:39 rick_home: i haven't used the inspector yet Dec 23 18:05:49 this is inspetor day in IRC. Dec 23 18:05:53 hah Dec 23 18:05:54 lol rick_work Dec 23 18:06:00 time to try it out i guess Dec 23 18:06:07 you are the third today for first-time-inspector Dec 23 18:06:31 haeffb or yetdog or lonestar54 can help you with that now. Dec 23 18:06:41 palm-inspector Dec 23 18:06:41 palm-inspector: error while loading shared libraries: libicui18n.so.38: cannot open shared object file: No such file or directory Dec 23 18:06:42 lol Dec 23 18:06:52 well damn that's an abrupt end to my inspector-ing Dec 23 18:07:12 apt-get to the rescue...i hope Dec 23 18:07:15 *cue sound or car slamming on breaks Dec 23 18:07:16 anyways, thanks for the idea Dec 23 18:07:22 yetdog: ya huh? haha Dec 23 18:07:31 :) good luck! Dec 23 18:11:14 oh, palm-inspector is statically linked to an older version than i have of that Dec 23 18:11:17 that's the prob Dec 23 18:11:21 well.. lame Dec 23 18:11:58 if it was statically linked you wouldn't have that problem Dec 23 18:12:19 er, ya dynamically linked i meant Dec 23 18:12:48 sorry, my comment was kinda smart @ss :-\ Dec 23 18:13:15 you're upholding the stereotype in your nick Dec 23 18:13:18 it's your duty! Dec 23 18:13:20 :P Dec 23 18:13:36 yeah, that's what I was doing. :-) Dec 23 18:13:55 we linux folk do have a reputation to worry about Dec 23 18:14:17 lol Dec 23 18:15:58 I see on my F11 install I have libicui18n.so.40.1 and on F12 libicui18n.so.42 Dec 23 18:16:22 so .38 is a bit old. what distro / version are you running? Dec 23 18:17:12 to get scenecontroller in AppAssistant....? Dec 23 18:19:31 myController = this.controller.getActiveStageController().activeScene() Dec 23 18:30:09 how are new rows encoded in a CSV file? Dec 23 18:31:22 Who's Jordan again? Dec 23 18:31:46 \n \r ? Dec 23 18:32:26 hallo folks, my me wifi has been acting up.... Dec 23 18:32:46 haeffb: Probably \n Dec 23 18:32:51 New line carriage return Dec 23 18:34:30 linuxjacques: latest ubuntu. i have .40 as well, but palm-inspector is looking for .38 Dec 23 18:37:00 reality9110 Hi Doc!!! Dec 23 18:37:14 this not working: http://www.pastie.org/754708 Dec 23 18:37:15 reality9110: you use the radiotime API right? Dec 23 18:37:27 also just \n not work Dec 23 18:37:28 Rick_work: Hey rick Dec 23 18:37:37 LoneStar34: Yes, I do Dec 23 18:37:40 I get the data, but all in one row Dec 23 18:37:56 Rick_work: You get the email? Dec 23 18:38:01 haeffb /r/n Dec 23 18:39:08 \ or / ? Dec 23 18:40:00 reality9110: thinking of using some of the API, does it link to content that can be played in WebOS? Dec 23 18:40:34 haeffb \r\n Dec 23 18:40:55 Rick_work: any reason the inspector does not display anything anymore? do I need to reload it? Dec 23 18:41:21 LoneStar34 you'll have to re-start the emulator Dec 23 18:41:25 see pastie. I'm using 'text' in an email service request to export the data. but the \r\n not workie. Dec 23 18:41:27 LoneStar34: You won't be able to. I've got the exclusive distribution rights for RadioTime services on the Pre. Dec 23 18:42:08 reality9110: even just to search the and display links? Dec 23 18:42:30 LoneStar34: The entire shebang Dec 23 18:42:38 so whats the topic of discussion today? Dec 23 18:42:49 reality: Boo... Dec 23 18:43:25 we're talking about why I can't figure out how to create a simple CSV string to send in an email. Dec 23 18:43:37 LoneStar34: The links won't work for the Pre anyway. So if you just used their API, you'd get a link that's not playable on the Pre. They are reformatted specifically for the RadioTime app. Dec 23 18:43:39 well, at least, that's what I'm talking about. Dec 23 18:43:59 http://www.pastie.org/754708 Dec 23 18:44:09 reality9110: ok, you answered my question Dec 23 18:44:45 reality9110: does your app play the content? "do not have a device yet..." Dec 23 18:45:02 haeffb that functions looks solid, whats the issue? Dec 23 18:45:13 Rick_work: restarting emulator thanks Dec 23 18:45:27 LoneStar34: It plays all possible stations that the Pre supports Dec 23 18:46:16 not getting new rows to show up in the email body. Or when copy/paste into notepad or open in Excel. Dec 23 18:46:23 it's all one row. Dec 23 18:46:53 reality9110: oh ok cool, you know of other services similar to radiotime? Dec 23 18:47:30 None that I know of that aren't already powered by RadioTime. Dec 23 18:47:36 Except shoutcast Dec 23 18:47:56 yeah looked into shoutcast, Dec 23 18:48:00 the old palm music players have that support Dec 23 18:48:02 But, there are already two shoutcast clients in the App Catalog and RadioTime plays all ShoutCAST streams anyway Dec 23 18:48:45 i really do not want to play the music, just want to link to it... Dec 23 18:49:10 You might want to go by individual song then Dec 23 18:49:21 In which case, I'd recommend doing something with the Last.FM API Dec 23 18:49:34 That way, you get some decent album art as well Dec 23 18:50:03 another api to work with is the spotify api, for album art, artist info Dec 23 18:50:12 Licensing will be an issue, however. You probably wouldn't be able to finance a license for it Dec 23 18:53:40 looks like the email service request strips out \r and \n. Dec 23 18:54:00 most email providers Dec 23 18:54:04 (never done js) Dec 23 18:54:21 require you to specify the html content and the email type (html,text) Dec 23 18:54:34 no, I mean the palm API Dec 23 18:54:40 and sometimes specify headers in order to support html Dec 23 18:54:51 are you encoding them? Dec 23 18:55:04 no Dec 23 18:55:19 try double slashing the rn Dec 23 18:56:15 palm api might just not support html emails Dec 23 18:57:40 it supports HTML emails, we send html tables from our app Dec 23 18:57:55 the thing is, it doesn't suppport PLAIN TEXT emails very well. Dec 23 18:58:14 the way to do an enter in a palm email is
or a set of P tags Dec 23 18:58:24 no way to send a return. Dec 23 18:58:27 or linefeed. Dec 23 18:58:37 I didn't notice haeffb was trying to email a csv Dec 23 18:59:01 Rick_work: restart worked! Dec 23 18:59:23 ah. Dec 23 19:00:51 beautiful. Dec 23 19:01:09 text += '
' Dec 23 19:03:50 my robot just ran out of juice. guess I'm done vacuuming. Dec 23 19:04:22 I just got a Dyson vacuum Dec 23 19:04:23 my carpet was too thick for my roomba :( and then the battery stopped holding charge :( Dec 23 19:06:22 * haeffb has central vac, two roombas, and two hoover uprights. And still only vacuums once a month. Dec 23 19:06:47 I've got a maid Dec 23 19:08:56 I've got a wife. Maid would probably be better for housework. Dec 23 19:09:13 I've got dust everywhere. Dec 23 19:12:51 diff between string.slice() and string.substring() ? Dec 23 19:13:31 er. substr() Dec 23 19:32:24 how hard would it be to get textField to auto-suggest from a list of entries. i.e. as you start typing, it matches what you've typed with strings in a list and provides suggestions. Dec 23 19:32:38 like google search field, or whatever. Dec 23 19:39:26 QQ does anyone see any new apps from today in the catalog? Dec 23 19:43:28 Hey Dec 23 19:43:34 Anybody want to help me test something? Dec 23 19:48:17 CTLAdvance: newest apps are from Monday Dec 23 19:48:22 kesne: what you testing? Dec 23 19:49:00 CTLAdvance: i also see no new apps. Dec 23 19:51:57 haeffb: I need to make sure Yo Dawg! is ready for review. Dec 23 19:52:00 haeffb there are auto-suggest libraries out there. Dec 23 19:55:45 yo gang Dec 23 19:55:52 anyone have command menus at the bottom of their app? Dec 23 19:56:36 yes Dec 23 19:56:46 getting it centered...is yours? Dec 23 19:56:50 i have a few icons grouped Dec 23 19:56:55 but the whole tihng is sitting to the left Dec 23 19:57:01 Thanks haeffb Dec 23 19:57:09 looking in the model properties doc Dec 23 19:57:09 thanks dsevil Dec 23 19:57:48 you need to group your items group inside another items group with empty items on either side. Dec 23 19:57:56 just a sec, think I have code for that. Dec 23 19:57:59 hmm k Dec 23 20:00:15 http://www.pastie.org/754864 Dec 23 20:00:28 just put your items group where I have the middle item. Dec 23 20:01:09 thanks :) Dec 23 20:03:07 was someone working on a wordpress posting app for webOS? Dec 23 20:12:03 That's me Dec 23 20:12:46 I now have the physical keyboard available in landscape mode Dec 23 20:12:49 this is sweet Dec 23 20:13:33 CTLAdvance: he say what? Dec 23 20:13:41 my device Dec 23 20:13:58 his keyboard fell off. Dec 23 20:14:06 HA! Dec 23 20:14:07 fell off? Dec 23 20:14:11 I was gonna say pre 2 Dec 23 20:14:30 hah Dec 23 20:14:32 you wish Dec 23 20:14:35 Yeah, it fell 10 feet onto ice and it split into two separate pieces Dec 23 20:14:54 so now its just flat connectors and a spring holding it together Dec 23 20:14:56 Rick_work: The app catalog already has a WP app though Dec 23 20:15:05 whats cool is that the accelerometer is in the screen portion Dec 23 20:15:12 so I can use it with the screen sideways Dec 23 20:15:15 CTLAdvance: So it works fine though? Dec 23 20:15:30 yeah, seems to Dec 23 20:15:42 clumsy though? Dec 23 20:15:53 I have a replacement coming, but its funny now Dec 23 20:15:59 yeah very clumsy Dec 23 20:16:03 Figured Dec 23 20:16:10 Seems like it would be awkward to use Dec 23 20:16:11 i wish i were handy with hardware Dec 23 20:16:15 I have an extr 1/8 inch of space now between the two pieces Dec 23 20:16:24 i'd make a hack so you could do that intentionally Dec 23 20:16:28 I thought about modding it as its totally doable Dec 23 20:16:36 kesne what's the app cat wordpress app called? Dec 23 20:16:37 yeah exactly Dec 23 20:16:55 Rick_work: Post'er or something like that Dec 23 20:17:01 No as good as webOS Press will be Dec 23 20:17:08 But a good thing to use while waiting ;) Dec 23 20:17:12 infact it would be easy for them to do it on the pre 2 Dec 23 20:17:21 I am suprised they didnt Dec 23 20:33:34 Hi All, I have a quick question if anyone is available... Is there a way to capture a "Mojo.Event.touchDown" event instead of just a "Mojo.Event.tap" or "Mojo.Event.hold", I don't see a touch event in the API docs... Dec 23 20:33:34 Rick_work: if anything is changed in the inspector, do the changes remain permanent? Dec 23 20:34:03 LoneStar34 no Dec 23 20:34:31 peterson79 it's mousedown and mouseup Dec 23 20:34:40 Rick_work: so I can wreck it if I want to? and nothing will happen? Dec 23 20:34:48 yep Dec 23 20:34:58 Nice!!! Dec 23 20:35:06 peterson79 and they're not mojo events, they're browser events, but you can still listen for them. Dec 23 20:36:16 that's what I was looking for, thanks Dec 23 20:36:25 And just like that, Yo Dawg! gets submitted for review Dec 23 20:38:58 and just like that we confirm kesne is a wigger Dec 23 20:39:07 joking of course Dec 23 20:39:15 CTLAdvance: I got your phrase suggestion Dec 23 20:39:21 "kesne is a wigger" Dec 23 20:39:25 HA Dec 23 20:39:34 I was joking there as well... Dec 23 20:39:47 I am sure I can come up with a few good ones once I know what you got Dec 23 20:42:46 CTLAdvance: did you get my message? Dec 23 20:45:16 Why yes I did Dec 23 20:45:21 hah Dec 23 20:45:24 over 100 Dec 23 20:45:27 AKA 103 Dec 23 20:45:41 Saweet Dec 23 20:47:31 Be back later but for anyone I don't see here during the holiday: Happy HollyDays! Dec 23 20:49:18 HAPPY FESTIVUS! Dec 23 20:50:58 I no longer enter #webos-internals Dec 23 20:51:04 I think everyone there hates me Dec 23 20:51:06 heh Dec 23 20:53:00 http://www.obutto.com/images/racing_withDesktop.jpg Dec 23 20:53:02 nice setup Dec 23 20:55:12 hi all! Dec 23 20:55:17 hiya Dec 23 20:55:29 hello Dec 23 20:56:33 phantomskinz is having a 50% off sale Dec 23 20:56:37 Dawm! Dec 23 20:56:41 Did you get my spam? Dec 23 20:56:48 yeah thanks asshole i was trying to sleep Dec 23 20:56:55 Sorry Dec 23 20:57:01 made me get up and check it and all Dec 23 20:57:05 heh Dec 23 20:57:06 Maybe you should use gmail statuses Dec 23 20:57:18 Or MUTE YOUR COMPUTER Dec 23 20:57:34 or maybe pidgin needs to do it properly cause i was marked as 'sleeeeeping' Dec 23 20:57:44 Oh Dec 23 20:57:53 Or maybe I should actually pay attention to those Dec 23 20:57:57 lol Dec 23 20:58:01 Arg Dec 23 20:58:05 no worries i just layed down anyways Dec 23 20:58:12 I feel like spiders are all over me Dec 23 20:58:15 GET THEM OFF Dec 23 20:58:19 Heh Dec 23 21:20:29 anyone know of a xbmc remote / streamer for the pre? Dec 23 21:23:32 Hi everyone. I can't seem to get first-child and :last-child selectors to work. Does webOS support those? Dec 23 21:27:06 what are you calling those methods on? Dec 23 21:27:17 what type of object I mean Dec 23 21:29:57 have you tried creating a new
like newdiv= document.createElement('div') and then newdiv.innerHTML=DOMobject, and then call those methods on newdiv? Dec 23 21:32:06 also try: firstDescendant() Dec 23 21:33:40 back Dec 23 21:34:56 catalyst: firstDescendant() works I just tried it. Then tuse Element.down() to walk down to the element you want Dec 23 21:38:21 jfelectron: I'm trying to do it in CSS with the :first-child pseudo selector if possible. Have you tried that? Dec 23 21:46:16 ahhh.....got you....what are you trying to do exactly? Dec 23 21:46:24 I haven't tried that specifically Dec 23 21:46:44 generally I've found a number of WebKit CSS props that aren't supported Dec 23 21:48:20 you're trying to set styles based on the position of a certain tag in a hierarchy I assume? Dec 23 21:49:02 another way would be use DOM methods to add a class to those elements Dec 23 21:49:26 I'd guess you're reformatting web pulled content? Dec 23 21:50:13 catalystmediastu: did you get your open handles thing fixed? Dec 23 21:51:06 Bmyers: Yeah I did get it fixed with by checking if the card was active and calling window.close. It's just a bit clunky because I have to do it in every cleanup function, but that's ok. Thanks for asking :) Dec 23 21:51:53 jfelectron: Yes I am. I have a list of actions that are wrapped in divs. I want the last div to not have a bottom border so I'm trying to use #divActions div:last-child to do it Dec 23 21:52:09 I may just have to do Javascript, but the actions change a lot so that seems clunky. :p Dec 23 21:52:19 agreed Dec 23 22:14:18 sound is giving me some major problems. Dec 23 22:15:49 catalystmediastu could you do $('actions').child.length to get the number of children and then do $('actions').child[thatlength].setStyle ???? Dec 23 22:15:59 lyht what problem? Dec 23 22:16:48 Rick_work: I think I'll just give in and use JavaScript :p Dec 23 22:16:53 If I put a background div that fills the screen to hide the media.css's grey background, I get errors. Dec 23 22:17:13 Is there a way to do push on webOS currently? Dec 23 22:17:22 it says "Object #blah blah has no method 'cmdConnect' Dec 23 22:17:34 kesne not really, you can do wake up and pull but not push Dec 23 22:18:06 Rick_work: Okay, thanks. Checkers would work so much better with Push. But with Pull, it's so much slower. Dec 23 22:18:45 no wait. that is not my problem. something else is... Dec 23 22:19:21 i was going to express doubt. Dec 23 22:19:25 I want to use this: http://developer.palm.com/index.php?option=com_content&view=article&id=1671 Dec 23 22:20:27 Bymers and Rick: discovered problem with drawers with lazy lists or when renderLimit is set small. The event.index is no longer an appropriate way to id the drawer widget that you want to open. I have to item onItemRendered to assing a unique ID to each drawers based on unique list model props and then use that ID to flip the drawer Dec 23 22:25:35 arg! I hate those kinds of problems. I made some changes to try to figure out what was causing my error, and the error stopped, but now I can Dec 23 22:25:43 't make it happen again. Dec 23 22:25:51 with all the same code in there as before. Dec 23 22:27:11 "Intermittant" is one of the worst words in english Dec 23 22:29:56 mechanic or code monkey alike Dec 23 22:30:16 There are def some CSS oddities and or bugs with WebOS Dec 23 22:30:39 no doubt Dec 23 22:30:52 but I dont mind that as long as I can work around it. Dec 23 22:30:55 The problem is usually that there are a whole slew of hidden divs that express themselves Dec 23 22:31:08 but if I dont know what i did to cause the bug... Dec 23 22:34:25 I had this wierd situation, which I still don't understand where for long lists with a custom webkit-border-image set for palm-group, the background would get really screwed up once I scrolled pass a certain point, the border image was still there just resized strangely Dec 23 22:34:55 it was completely reversible I could go back and forth and go from correct rendering to screwed up Dec 23 22:49:27 Christmas tip: If you live in Missouri, hang Christmas lights before Thanksgiving. Do NOT wait until it's below 30 and raining to do it. Dec 23 22:53:15 Nah....then ppl know you REALLY have the spirit Dec 23 22:53:20 :) Dec 23 22:53:34 I was thinking about that the other day though....living in Sunny California and all Dec 23 22:53:43 Think I'll need to have some spirits to get warmed back up. Dec 23 22:54:02 how do I escape a ' or " in a string? Dec 23 22:54:20 lol....that's why schnapps are popular in Germany :) Dec 23 22:54:28 \" Dec 23 22:54:30 \' Dec 23 22:54:44 backslash is your friend Dec 23 22:55:02 yes and sugardave_shop is my foe Dec 23 22:55:53 haeffb: There is a problem with lazy lists and the method of drawer flipping I came up with. Basically, once you scroll past the end of the currently loaded items the event.index no longer corresponds to the correct drawer due to lag between the rendering the the event passing Dec 23 22:56:21 I had to use onItemRendered to assign a unique ID to each drawer....the framework claims to do this but doesn Dec 23 22:56:32 and then use that ID to flip the drawer Dec 23 22:57:11 Also, if you have an expand all/collapse all type control. You need to make sure newly rendered items agree with the state of the control Dec 23 22:57:28 good to know. I'm not sure I really need drawers in my app. Might take them back out. Dec 23 22:58:13 well...just file that away. I'm working on the WebOS101 stuff....I'll include it for future reference Dec 23 22:58:37 I'll be back Dec 23 23:03:12 Rick_work: ping Dec 23 23:04:34 pong Dec 23 23:05:27 have a string to save in a SQLite db. how to handle if the string contains ' or " ? Dec 23 23:05:48 thinking I have to string.replace("'", "\'") Dec 23 23:06:12 or is there a way to rite a regxp that will replace both Dec 23 23:08:13 string.replace (/['"]/g, "\'"); ?? Dec 23 23:08:54 haeffb: I would use ['|"] as my 'class' Dec 23 23:09:00 but I still suck at regexp Dec 23 23:10:42 I think I can just leave the " " in the string, since I'm using ' ' to store the string in the Db. Dec 23 23:10:59 haeff... when you do executeSql("insert into blah (field) values (?)", [insertData], ...); Dec 23 23:11:01 so maybe just string.replace ("'", "\'"); works Dec 23 23:11:08 doesn't that exscape it for you? Dec 23 23:11:12 escape Dec 23 23:11:25 except you also need do deal with ([{]}) Dec 23 23:11:29 and \ Dec 23 23:11:31 and * Dec 23 23:11:35 and + and ? Dec 23 23:11:38 and my axe! Dec 23 23:11:43 basterds! Dec 23 23:11:51 insertData would be automatically escaped, isn't it? Dec 23 23:11:57 who would put all those caracters into my string!!!! Dec 23 23:11:57 wait, no you don't. as long as their inside quotes. Dec 23 23:12:26 * sugardave just submitted BOFH Excuse Generator. Dec 23 23:12:50 reviewer notes: "Don't make me LART you..." Dec 23 23:13:01 haeffb http://poeticcode.wordpress.com/2008/01/18/user-input-sanitizing-before-using-in-regular-expression/ Dec 23 23:13:03 lyht: I was having trouble with that format, so I've been generating the SQL query as a string Dec 23 23:13:53 haeffb: got it. Dec 23 23:14:09 Might be easier to figure out how to use the query templates. Dec 23 23:14:30 not gonna argue with that. Dec 23 23:15:05 paste your code, maybe we can help get it there. Dec 23 23:16:27 http://www.pastie.org/755150 Dec 23 23:17:00 using either UPDATE or INSERT INTO depending on wether the record already exists. Dec 23 23:17:14 yes...I use templates for both of those Dec 23 23:17:36 the INSERT INTO uses the templates. Couldn't get UPDATE to work, so went to strings. Dec 23 23:17:49 not directly applicable but useful why it's important to properly escape things Hacking @stoyanstefanov and the Importance of Web Security http://bit.ly/90gnY5 Dec 23 23:18:49 you could also to toJSON() Dec 23 23:18:55 in this particular case, why is it so important to protect a hacker from whacking their own db? Dec 23 23:18:57 haeffb: yah, insert looks good. The update should work the same way... just make sure you have the id in the array also Dec 23 23:18:58 which I believe sanitizes and escape automagically Dec 23 23:19:16 yes....the ID should autoIncrement Dec 23 23:19:51 like: account_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT ,\ Dec 23 23:20:08 then when you call update, you don't supply account_id Dec 23 23:20:35 wut? Dec 23 23:20:43 how do it know which record to update? Dec 23 23:20:57 UPDATE is inserting a new record Dec 23 23:21:11 i dont think so... Dec 23 23:21:13 So new record ID Dec 23 23:21:37 other way around INSERT is new record, UPDATE is exsting record Dec 23 23:21:42 yes sorry Dec 23 23:21:45 transaction.executeSql(sql, [thisMiles.date, thisMiles.dateformat, thisMiles.begMiles, thisMiles.endMiles, thisMiles.mileage, thisMiles.purpose, thisMiles.destination, thisMiles.notes, this.id], ... Dec 23 23:21:47 (although I'm very new to SQL...) Dec 23 23:21:51 you said insert works Dec 23 23:21:59 you do need the id for Insert Dec 23 23:21:59 for your update. Dec 23 23:22:23 and you dont need the id for the insert, just the update. Dec 23 23:22:25 Sorry: need ID for update NOT INSERT Dec 23 23:22:37 lyht: and if I get that working, I don't have to worry about escaping chars. right? Dec 23 23:22:45 need coffee.... Dec 23 23:22:45 correct. It should do it for you. Dec 23 23:22:57 what about INSERT OR REPLACE ??? Dec 23 23:23:04 same. Dec 23 23:23:18 originally I was trying to do it as one call, either insert a new record or insert existing Dec 23 23:23:37 s/insert existing/udate existing Dec 23 23:24:07 But you should know internally whether the record exists or not no? Dec 23 23:24:18 Just doing it for parsimony sake? Dec 23 23:24:24 if you dont care about keeping the old record, if everything gets replaced every time, you could always do a delete, then insert. Dec 23 23:24:24 On call to rule them all? Dec 23 23:24:25 should, but it was easier if I didn't keep track of the id. Dec 23 23:25:06 if id {delete}; insert; Dec 23 23:25:10 * haeffb is still in the very green stages of workng with SQL db's Dec 23 23:25:35 course, that makes your IDs get bigger and bigger... Dec 23 23:25:46 lyht: isnt' that require 2 SQL transactions? Dec 23 23:25:56 yup. Dec 23 23:26:22 * haeffb thinks I'll stick with INSERT /or UPDATE Dec 23 23:26:29 kind of a pain. The way you have it is prolly best, Dec 23 23:26:33 just gotta get UPDATE working correctly with templates Dec 23 23:26:42 even if the code is bigger. Dec 23 23:30:01 is there any informative log info? Dec 23 23:32:52 jfelectron: what do you mean? Dec 23 23:33:15 how it works? what is logged? how to use it? Proper documentation? Dec 23 23:33:20 well...if the update is throwing a DB exception, perhaps that is showing up the in the logs Dec 23 23:33:34 oh, you mean for haeffb Dec 23 23:33:34 haeffb: what about the 'INSERT OR REPLACE INTO' syntax? Dec 23 23:34:04 if an id already exists, it gets replaced....of course, you have to make sure you get all the fields... Dec 23 23:34:53 yes, not terribly useful if you just want to update a few fields in a record Dec 23 23:37:08 new code, not working: http://www.pastie.org/755171 Dec 23 23:37:55 at this point, I'm replacing every field in the record. I store the info in the Db when the user leaves the data entry scene... Dec 23 23:38:06 your fields dont match. Dec 23 23:38:13 aha! Dec 23 23:38:20 you dont have category included in the query Dec 23 23:38:28 but you do in the array of values Dec 23 23:39:00 haeffb: instead of sending (transaction, results) to your error handler, send (transaction, error) and then the string error.message is your friend Dec 23 23:39:13 tru dat Dec 23 23:39:25 it would have said "your fields dont match" Dec 23 23:39:38 haeffb: if you are replacing all the fields anyway, just use the 'INSERT OR REPLACE INTO' sql query Dec 23 23:39:59 and now it works Dec 23 23:40:35 yippy! Dec 23 23:40:46 skippy! Dec 23 23:41:02 now if I could just figure out why my sounds dont always play. Dec 23 23:41:20 is it better practice to store the data as I've done, or store it after leaving each field? Dec 23 23:41:40 * sugardave needs to figure out how to keep the Christmas tree lights from blowing fuses. Dec 23 23:41:57 bigger fuses Dec 23 23:42:12 * haeffb is not an electrical engineer... Dec 23 23:42:20 hehe...yeah, unfortunately I have none...I don't even know where in the hell you get those tiny things Dec 23 23:42:25 It is ok to do it the way you did it. Less database communication. However, if something goes wrong and the app crashes before it saves, none of the fields get saved. Dec 23 23:42:47 I probably don't care about losing entry/edits to one record. Dec 23 23:42:49 They're 'atomic' transactions correct? Dec 23 23:42:51 But usually that is not likely, nor a big deal. Dec 23 23:43:07 what is 'atomic'? Dec 23 23:43:11 yah. Dec 23 23:43:18 but they are self commiting. Dec 23 23:43:35 hey SG: whats inside the transaction part you send off to the handlers? do you know of have a url of whats in there? Dec 23 23:44:18 http://en.wikipedia.org/wiki/Atomicity Dec 23 23:44:26 atomic means if you have a bunch of queries in a single transaction, and the last one fails, they all roll back to the state before you started. Dec 23 23:44:36 * haeffb is trying to learn not to ask questions that I can answer myself. Dec 23 23:44:46 Bmyers: I don't know if I ever investigated what's in transaction....probably id stuff Dec 23 23:45:03 but in this case we are dealing with one query per transaction, so it doesn't matter. Dec 23 23:45:42 just use cookies =) Dec 23 23:46:17 I had to switch because the were not big enough... but for anything smaller than 2k, they are way easier! Dec 23 23:47:17 anyone play with AudioTag? Dec 23 23:48:57 nope. Haven't even played laser tag Dec 23 23:50:51 thanks for the help, all. Dec 23 23:51:15 it is driving me crazy that sometimes the sounds wont play! Just random. I wonder if I should preload them all. Dec 23 23:51:21 haeffb: n.p. Dec 23 23:55:41 similar question: to escape a , in a CSV file? Dec 23 23:55:55 quote you're export string Dec 23 23:56:04 yeah quotes Dec 23 23:56:18 "blah, and more",stuff,"other, stuff, yah" Dec 23 23:56:30 in a list selector, how to you set it to the first choice in the list ? Dec 23 23:56:31 what if the string already has quotes? Dec 23 23:56:51 what's the value of the first choice? Dec 23 23:57:08 lets say i dont know.. Dec 23 23:57:23 haeffb: I can't remember. Might be more quotes. "here is ""my book""", Dec 23 23:57:53 this.selectorModel.value = this.selectorModel.choices[0].value; Dec 23 23:58:36 oh, thanks haeffe... i knew it was something like that. couldnt remember.. Dec 23 23:58:50 that's off the top o' my head, not tested. Dec 23 23:58:58 i think thats right.. Dec 24 01:00:39 why this don't works: if (typeof(tmptext) == 'string') tmptext.replace(/"/g, '""'); Dec 24 01:08:11 are you replacing with nothing? Dec 24 01:08:17 can't see how many are there Dec 24 01:08:39 or replacing with " Dec 24 01:08:40 ? Dec 24 01:10:03 looks like he wants single set of quotes to double set of quotes .. Dec 24 01:10:48 ahh: temptext.replace(/\"/g, "\"\"") Dec 24 01:11:39 haeffb: you have to escape the quotes both in the RE and the replacement Dec 24 01:15:28 JF: did your cat walk across your keyboard? Dec 24 01:15:54 no, want a single double-quote replaced by a double double-quote Dec 24 01:16:52 like jfelectron said Dec 24 01:17:02 like bpadalino said Dec 24 01:17:22 Bmyers: lol....sometimes RE Do look crazy Dec 24 01:18:15 escape escape....the roof is on fire Dec 24 01:19:26 if (typeof(tmptext) == 'string') tmptext.replace(/\"/g, "\"\""); still not works Dec 24 01:19:49 wha...I just tried it....give me an input example Dec 24 01:20:41 Note's with some quote"s' Dec 24 01:21:01 Should become Note's with some quote""s' Dec 24 01:21:04 righ? Dec 24 01:21:28 temptext="blah\"afhdjgahsd\"" Dec 24 01:21:34 temptext.replace(/\"/g,"\"\"") Dec 24 01:21:47 ouput: blah""afhdjgahsd"" Dec 24 01:22:06 harrumph Dec 24 01:23:07 How is Note's with some quote"s' a valid string? Dec 24 01:23:23 oh string literal Dec 24 01:24:06 it's what I typed into a textField, is saved in a database, need to convert it to CSV, so have to have the double double-quotes Dec 24 01:24:28 just a sec. Dec 24 01:25:19 a="Note\'s with some quote\"s\'" Dec 24 01:25:25 a.replace(/\"/g,"\"\"") Dec 24 01:25:30 Note's with some quote""s' Dec 24 01:25:35 http://www.pastie.org/755264 Dec 24 01:27:20 dude...I did this same thing! do temptext=temptext.replace Dec 24 01:27:31 temptext.replace returns the string Dec 24 01:27:37 it doesn't modify it in place Dec 24 01:27:51 It should, IMO Dec 24 01:28:16 * ivanst skips a long discussion about immutability of certain classes Dec 24 01:28:25 Arg Dec 24 01:28:30 I need to finish Checkers Pro soon Dec 24 01:28:40 The todo list is only four items long! Dec 24 01:28:51 kesne: is one of them "save the world?" Dec 24 01:29:18 Not quite Dec 24 01:29:19 Play Matches Achievements Dec 24 01:29:19 Pixi Compatablility in Online Chat Dec 24 01:29:19 Ensure Help Screen is Universal Dec 24 01:29:20 Fix Online Play Error Handling Dec 24 01:29:27 woohoo! Dec 24 01:29:34 invanst: IMO....there is no good reason not to modify a string in place. It creates uneccessarily long syntax Dec 24 01:29:50 I knew that, before I went with the typeof, I had tmptext = .... Dec 24 01:30:25 how do you listen for an orientation change event? I see NO application in the Palm apps that does any kind of listen on 'the scene controller scene element' for Mojo.Event.orientationChange Dec 24 01:30:51 that's my point...even when you know it, the function call makes it seem like it should behave one way, but it behaves another Dec 24 01:30:54 sugardave easy Dec 24 01:31:04 sugardave: http://developer.palm.com/index.php?option=com_content&view=article&id=1554 Dec 24 01:31:30 ah, document Dec 24 01:31:34 kesne: thanks! Dec 24 01:31:47 No worries Dec 24 01:31:52 do this.controller.document for multi-stage apps natch Dec 24 01:32:07 is jenp here? Dec 24 01:32:11 so, who want's to play "Clean that Code" ?? Dec 24 01:32:16 no Dec 24 01:32:19 Ah Dec 24 01:32:25 Code cleaning Dec 24 01:32:41 I'd rather refactor the NY subway system :) Dec 24 01:32:54 Last time I did that was about... four months ago? Dec 24 01:33:03 I have the date Dec 24 01:33:06 let me look it up Dec 24 01:33:38 just wondering if there's a better way of creating the CSV from a JS object. Dec 24 01:34:01 now that it's "working" Dec 24 01:34:29 Friday, ?August ?07, ?2009, ??12:52:45 PM Dec 24 01:34:30 haeffb: there are so many ways in which people "understand" CSV that it's imho impossible to create a fully generic solution Dec 24 01:34:37 That's the last day I did code cleaning Dec 24 01:34:41 you need CSV for spreadsheets imports and exports? Dec 24 01:35:59 You know what's worse than code cleaning? Dec 24 01:36:02 Cleaning my room Dec 24 01:36:12 hire a maid with all that palm money Dec 24 01:36:17 Hah Dec 24 01:36:19 I wish Dec 24 01:36:32 Essays scattered accross the ground Dec 24 01:36:35 Rough drafts Dec 24 01:36:59 CL post: Successful webOS dev seeks maid to clean dirty room Dec 24 01:37:05 it'll work Dec 24 01:37:18 Then on the other side of the room, wireframes, electronics, instruments, and paper with drawings all over it Dec 24 01:37:49 Oh, there's my chem worksheet on Covelent bonding Dec 24 01:38:04 yeah, CSV for import/export Dec 24 01:38:22 eventually to google docs Dec 24 01:38:45 mainly export Dec 24 01:38:52 And there is the folder with Wellow details Dec 24 01:40:32 http://keen-studios.net/ksbeta/r6/ Dec 24 01:40:39 And there is the Keen Studios website beta Dec 24 01:41:36 haeffb: if you are doing the exports programatically....gDocs supports other formats Dec 24 01:41:51 json? Dec 24 01:42:16 kesne: your site takes about 30 sec to load for me Dec 24 01:44:37 not JSON...http://code.google.com/apis/documents/faq.html#WhatKindOfFilesCanIUpload Dec 24 01:44:59 I can't find details on how it interprets HTML/XML or plain text though Dec 24 01:45:17 plain-text prob doesn't work for spreadsheets Dec 24 01:46:46 is it possible to have a variable in a css file? or some other method of manipulating existing css definitions? Dec 24 01:47:22 need spreadsheet is what I need. CSV may be the simplest Dec 24 01:49:55 http://code.google.com/apis/spreadsheets/data/3.0/developers_guide_protocol.html#CreatingSpreadsheets Dec 24 01:50:31 what r u doing haeffe Dec 24 01:52:12 haeffb: no way! same for me! Dec 24 01:52:15 going into drunk coding mode Dec 24 01:52:16 sugardave: i suppose you could Dec 24 01:52:18 It's pluginless Dec 24 01:52:33 I think he wants to upload his expense tracking stuff to gDoc spreadsheets Dec 24 01:52:42 so none of that cool optamazation we do Dec 24 01:55:14 yes, that's what I want to do. Current code sends the CSV data via email Dec 24 01:58:07 so what do you want to do to it? Dec 24 02:00:17 send it to a google spreadsheet Dec 24 02:01:27 spank it and send it to bed without supper Dec 24 02:01:32 lol Dec 24 02:01:50 you forgot "and get me a beer" Dec 24 02:04:27 So that email...the user has to intervene...click send?? Dec 24 02:04:59 looks like you can do everything though posting XML....but its going to be painful getting that setup Dec 24 02:05:25 basically you create the spreadsheet and then rows and columns are abstracted through URL methods Dec 24 02:07:15 Looks like you can just POST the CSV file directly with auth tokens and such Dec 24 02:08:01 thru email, the user has to click send (and provide email address at some point). then has to copy the body of the email and paste into a spreadsheet and then convert into columns Dec 24 02:08:14 or save the body text as csv file and import into spreadsheet Dec 24 02:08:22 sending to google docs is much easier for the user Dec 24 02:08:32 yes....definetly Dec 24 02:09:00 looks like two request. 1) Auth request to get tokens and then 2) upload document Dec 24 02:24:17 JF and Haeffe are writing the milez app? Dec 24 02:27:54 Just Haeffe Dec 24 02:28:36 I've been knee deep in the GData APIs because I'm considering supporting Picassa uploading Dec 24 02:29:53 Haeffe seems all about productivity (Agenda,Milez)...I'm all about wasting time :) Dec 24 02:33:44 do you have to call modelChanged on the progress indicators? Dec 24 02:33:55 like increment...then modelChanged? Dec 24 02:36:06 is it bad to not explicitly use the var keyword? Dec 24 02:36:46 not use var leaves your variable in global scope Dec 24 02:36:56 Mizzou vs Illinois starting now. bbl Dec 24 02:41:43 ah thanks **** ENDING LOGGING AT Thu Dec 24 02:59:57 2009