**** BEGIN LOGGING AT Sun Jan 03 02:59:58 2010 Jan 03 03:00:01 HOWEVER. Jan 03 03:00:27 I'm loading the Miles.vehicles from a SQLite DB, so there may be some weirdness there... Jan 03 03:00:49 haeffb: http://www.prototypejs.org/api/hash check that out Jan 03 03:00:55 how are you saving that object in the DB? Jan 03 03:00:57 as JSON? Jan 03 03:01:00 if it happens to be a hash, your code would behave like ^ Jan 03 03:01:44 The safe thing to do is object.toJSON().....store that in the DB and then do the reverse when you retrieve it Jan 03 03:02:20 no JSON in teh DB Jan 03 03:02:57 hmm....if you covert to JSON all your objects just become strings Jan 03 03:03:08 var car = {label: 'Default Vehicle', lastmileage: 0, rate: 0.0}; Jan 03 03:03:08 var sql = "INSERT INTO 'vehicles' (label, lastmileage, rate) VALUES (?, ?, ?)"; Jan 03 03:03:08 var args = [car.label, car.lastmileage, car.rate]; Jan 03 03:03:43 what SQL datatype did you specify for those categories? Jan 03 03:03:54 TEXT, INTEGER, REAL Jan 03 03:04:27 * haeffb still very new to SQLite Jan 03 03:04:53 oh, so you're saving each property of the car object as a separate column? Jan 03 03:05:01 yes Jan 03 03:05:18 what I do, is just convert the object to JSON and store the JSON string in the DB Jan 03 03:05:43 but you're suggesting have one column that is JSON object car ... Jan 03 03:05:49 hadn't thought of that. Jan 03 03:05:53 Yup Jan 03 03:06:03 that way you get out the object you put it Jan 03 03:07:24 jbjoerk: can you explain more about why hash would make the code behave like that? Jan 03 03:07:43 If it were a hash you can't address properties like that Jan 03 03:07:55 the properties would becomes keys of the hash Jan 03 03:08:02 Hash properties are now hidden away in a private store to prevent the risk of collision with Hash’s instance and mixed-in methods. This means that properties of the hash can no longer be set, accessed or deleted directly; you must use the Hash#get(key), Hash#set(key, value) and Hash#unset(key) instance methods instead. To illustrate: Jan 03 03:08:10 right. just read that. Jan 03 03:08:47 but it's not a hash, just an array of objects. Jan 03 03:08:50 Why don't you query the object type and log it? Jan 03 03:09:01 yes, I don't think its a hash Jan 03 03:09:21 typeof(Miles.vehicles[index].lastmileage); ? Jan 03 03:10:29 says it's a number Jan 03 03:11:17 how is lastmileage getting populated? from the DB? Jan 03 03:11:47 yes, from DB... Jan 03 03:11:53 what do you mean by its not being updated? Jan 03 03:12:09 Miles.vehicles.push(results.rows.item(i)); Jan 03 03:12:33 where results is from SELECT * FROM vehicles Jan 03 03:13:05 see log above. lastmileage should be 1222 but it stays 0 Jan 03 03:13:11 going the JSON route saves you the step of recreating the object Jan 03 03:13:32 also tried Miles.vehicles[index].lastmileage = parseInt(bigmiles,10); Jan 03 03:13:52 but typeof says lastmileage and bigmiles are both "number" so that shouldn't make a difference Jan 03 03:14:14 It seems like either the value isn't being stored in the DB or its not being retrieved Jan 03 03:14:31 no, no. Jan 03 03:14:31 have you logged results.rows.item(i) ? Jan 03 03:15:03 this is just trying to change lastmileage AFTER it's been retrieve from the DB to something else Jan 03 03:15:47 oh, OK...see that now Jan 03 03:16:14 but the log output it before you do that Jan 03 03:17:24 you compute bigmiles and then store that in lastmileage, but I don't see that being logged Jan 03 03:18:12 I log the vehicle before and after computing bigmiles, setting lastmileage = bigmiles Jan 03 03:18:20 lastmileage doesn't change. Jan 03 03:18:40 you said the Math.max is failing right? Jan 03 03:18:40 I did a try/catch around lastmileage = bigmiles and nothing. Jan 03 03:18:46 no, it works. Jan 03 03:19:19 the only thing that's not working (at the moment) is: Miles.vehicles[index].lastmileage = parseInt(bigmiles, 10); Jan 03 03:19:30 with or without the parseInt Jan 03 03:20:09 bigmiles=1222 though? Jan 03 03:20:13 yes Jan 03 03:20:24 but lastmileage stays 0 Jan 03 03:20:32 it's a stubborn little sucker Jan 03 03:20:43 What kind of object is Miles? Jan 03 03:20:57 Miles is a global object. Jan 03 03:21:15 created in app-assistant.js Jan 03 03:21:34 Miles = {}; Jan 03 03:22:11 Miles.vehicles = []; Jan 03 03:22:58 where are the vehicle objects created? Jan 03 03:23:27 is lastmileage initialized in the creater function? Jan 03 03:23:27 in first scene assistant activate() and subsequent DB calls Jan 03 03:23:50 so its just a simple {}? Jan 03 03:24:21 Miles.vehicles.push(results.rows.item(i)); Jan 03 03:24:43 where rows is SELECT * FROM vehicles. Jan 03 03:24:52 results.rows Jan 03 03:25:37 var sql = "CREATE TABLE IF NOT EXISTS 'vehicles' (value INTEGER PRIMARY KEY, label TEXT, lastmileage INTEGER, rate REAL)"; Jan 03 03:26:24 I've been going 'round and 'round on this most of the day, can't get a clue. Jan 03 03:26:46 does seem strange....I'd try storing vehicles as a JSON string Jan 03 03:27:09 it seems like whatever thing is being returned from the DB is immutable Jan 03 03:27:56 I think I will try changing how I fill Miles.vehicles from the DB call. That's likely where the problem lies. Jan 03 03:28:04 hi haeffb, jf Jan 03 03:28:11 push(results.rows.item(i)); Jan 03 03:28:12 hola Bmyers Jan 03 03:28:21 Bmyers: still struggling. Jan 03 03:28:27 on what? Jan 03 03:28:56 lastmileage returned from the DB for each of the vehicles seems immutable Jan 03 03:29:13 first off, sqlite3 does very little, if any checking on what you stick in there. JFTR Jan 03 03:30:04 I suggested he convert his vehicles object to JSON and store that...instead of having the for loop to recreate the object after retrieval from the DB Jan 03 03:31:07 then u cant do all the cool sql stuff like max min etc Jan 03 03:31:29 true..it limits queries on the table Jan 03 03:31:44 might as well use cookies.. Jan 03 03:31:52 r u logged into your DB? Jan 03 03:32:01 unless the size exceeds cookies Jan 03 03:32:03 nope Jan 03 03:32:27 do u know how? Jan 03 03:32:48 I have dinner to eat....and Bmyers has more DB experience than I....see you guys later Jan 03 03:32:49 o what, r u using komo or exlipse? Jan 03 03:32:57 later JF Jan 03 03:33:10 eclipse Jan 03 03:33:17 heres a ?? Jan 03 03:33:36 Mojo.Log.info("Results are: %j", results.rows.item(0)); Jan 03 03:33:51 why is item(0) not item[0] ? Jan 03 03:34:42 cause it's an associative array (i think) Jan 03 03:34:55 of the columns, so, the names exists Jan 03 03:35:04 if you dont know the names you can use 0 1 2 3 Jan 03 03:35:11 for the col's u selected Jan 03 03:35:34 associative array...wha? Jan 03 03:35:49 if u do for name in row do Jan 03 03:36:05 echo name echo row(name) Jan 03 03:36:17 you get the name of the column and the value Jan 03 03:36:41 if u dont know the names, u can use 0 for the first col (you selected) Jan 03 03:37:20 * Bmyers *crickets* Jan 03 03:37:54 so items is some object or a hash? Jan 03 03:37:55 uh, ok. Jan 03 03:38:13 items is a hash. Jan 03 03:38:24 now it's starting to make more sense, maybe. Jan 03 03:38:44 that would explain why you can't change it directly Jan 03 03:38:46 but! I've been able to modify other properties of vehicle elsewhere. Jan 03 03:38:56 so, that doesn't explain anything. Jan 03 03:39:06 i thought you were hungry JF? Jan 03 03:39:13 I'm going..... Jan 03 03:39:32 when u have problems like this Jan 03 03:39:38 its good to log into the db Jan 03 03:40:04 * haeffb fires up putty Jan 03 03:40:10 if you create the db as ext: something then it is in /media/internal/.app (then hit tab) Jan 03 03:40:41 there will be directories for all externally created db's Jan 03 03:41:05 yours is com.tiger(?).milez something.. Jan 03 03:41:22 go to that dir and do 'ls' Jan 03 03:41:34 you may have more than 1 db in there if you have changed the name Jan 03 03:41:50 sqlite3 dbname? Jan 03 03:41:56 then type sqlite3 00000000012.db or whatever the name is Jan 03 03:42:39 ok, select * from vehicles shows two vehicles Jan 03 03:42:49 .schema shows your db Jan 03 03:42:51 * haeffb has to remember to copy down those instructions Jan 03 03:43:01 paste that in here Jan 03 03:43:09 or pastebin Jan 03 03:43:44 (i could look at the schema myself but that wouldnt help u any) Jan 03 03:44:18 http://www.pastie.org/764602 Jan 03 03:44:33 don't look at my root password! Jan 03 03:44:57 too late.. Jan 03 03:45:26 ok, so now Jan 03 03:46:10 what is it that doesnt work? you cant change the db or something? Jan 03 03:47:23 lastmileage? Jan 03 03:47:29 first: http://www.pastie.org/764604 Jan 03 03:48:12 I calculate "bigmiles" which is the larger of the entered ending mileage and the lastmileage stored for the vehicle Jan 03 03:48:36 then, try to set Miles.vehicles[index].lastmileage = bigmiles; Jan 03 03:48:49 lastmileage doesn't change. Jan 03 03:50:57 so, going back to how I created vehicles: Miles.vehicles.push(results.rows.item(i)); Jan 03 03:51:36 thinking that may be the problem. BUT I CAN CHANGE Miles.vehicles and update the db in my editvehicles dialog/function. Jan 03 03:51:42 So, I'm lost Jan 03 03:52:33 what does the select look like that got you the results? Jan 03 03:52:49 cause its not in that pastebin? Jan 03 03:53:16 var sql = "SELECT * FROM vehicles"; Jan 03 03:53:19 has anyone ever had the messenger app just keep saying "signing in..." for hours on end (even though it's already actually online) Jan 03 03:53:36 OrionPK: not I Jan 03 03:53:49 but I hesitate to speak for everyone Jan 03 03:54:03 getting very annoying. even after a restart it does the same thing Jan 03 03:54:14 I ran webosdoctor today because I couldn't install anything new Jan 03 03:54:28 u run preware? Jan 03 03:54:33 no Jan 03 03:54:36 not since webosdoctor Jan 03 03:55:24 aha. I did something slightly different in the editvehicle dialog. Jan 03 03:55:37 i would imagine so.. Jan 03 03:55:50 var vehicle = {}; fill it up, then Miles.vehicles[index] = vehicle; Jan 03 03:56:13 so, I didn't try to change any of the individual properties, just replace the whole thing. Jan 03 03:56:23 maybe that works here.... Jan 03 03:56:43 so when u do select * from vehicles Jan 03 03:56:50 it looks right? Jan 03 03:56:56 different columns and stuff? Jan 03 03:58:35 yes Jan 03 03:58:59 and it populates Miles.vehicles [] correctly. Jan 03 03:59:43 time to head home for me Jan 03 03:59:51 goodluck haeffb :) Jan 03 03:59:58 thanks!Q Jan 03 04:01:25 this Miles.vehicles.push(results.rows.item(i)); Jan 03 04:01:33 is correct? Jan 03 04:02:14 miles.vehicles.label is the name of the vehicle? Jan 03 04:03:21 well, Miles.vehicles[i].label Jan 03 04:03:45 hello guys!! Jan 03 04:04:00 Miles.vehicles[i].lastmileage is the last big miles ? Jan 03 04:04:03 hi Jenp! Jan 03 04:04:03 yes Jan 03 04:04:04 yes Jan 03 04:04:08 jenp! Jan 03 04:04:16 ok, so Jan 03 04:04:21 hiya! uh...sql i c Jan 03 04:04:48 update vehicles set lastmileage = Miles.vehicle[i].lastmileage Jan 03 04:05:03 and u r good to go Jan 03 04:05:13 Miles.vehicles.push(...) works - in that it fills the array with the correct properties/values Jan 03 04:05:27 actually, cool. i didnt know that.. Jan 03 04:05:34 i do it that hard ware Jan 03 04:05:36 i do it that hard way Jan 03 04:05:44 but I think it's causing all this weirdness. Jan 03 04:05:45 hehehhe Jan 03 04:05:51 thats funny h? Jan 03 04:05:59 freudian slip.. Jan 03 04:06:52 anyways.. Jan 03 04:06:59 hows Jenp tonight? Jan 03 04:07:09 GREAT!!! Jan 03 04:07:19 still hyper.... Jan 03 04:07:35 cafe au lait? Jan 03 04:07:42 oh! do you guys wanna see the new app? Jan 03 04:07:59 i want more coffee but only doing water now.... Jan 03 04:08:01 of course Jan 03 04:08:07 yeah! Jan 03 04:08:10 kk Jan 03 04:08:11 sure Jan 03 04:08:15 but.... Jan 03 04:08:26 everyones got a big but.. Jan 03 04:08:29 the art reflected is not my taste in art Jan 03 04:08:39 so don't judge me on that part Jan 03 04:08:50 that still leaves plebty, lets see it! Jan 03 04:08:53 plenty Jan 03 04:09:10 lol Jan 03 04:09:23 lol kk sending it soon Jan 03 04:09:45 haeffe , paste the sql code thats not updating the db Jan 03 04:10:01 bmyers what's your email again? Jan 03 04:10:24 pm Jan 03 04:11:21 ok it's sent! Jan 03 04:11:31 haven't even gotten to that part yet, Bmyers Jan 03 04:11:41 but I now have the first part working. Jan 03 04:11:59 the above sql query is all u need Jan 03 04:12:12 I CANNOT change individual property/values when I load from the DB as noted above. Jan 03 04:12:26 but I CAN replace the entire vehicle Jan 03 04:12:30 in your array? Jan 03 04:12:34 correct Jan 03 04:12:38 wtf? Jan 03 04:12:54 yeah, that's what I've been pulling my hair out over all day Jan 03 04:13:00 why the face? Jan 03 04:13:21 ^^ favorite quote from "Modern Family" Jan 03 04:13:28 catch an error? Jan 03 04:13:42 there's no error. just doesn't change the value. Jan 03 04:14:09 i encapsulated with try/catch - nothing. just went merrily on it's way w/o changing anything. Jan 03 04:14:25 what lines 10 and 12 log? Jan 03 04:15:42 10 and 12 of ? which pastie? Jan 03 04:15:44 Jenp emu ok? or is there sound? Jan 03 04:15:54 no soun Jan 03 04:15:55 d Jan 03 04:16:16 glad the app limit is gone. Jan 03 04:16:23 i'm not that sophisticated...LOL Jan 03 04:16:26 emu is perfect Jan 03 04:16:30 I've added all kinds of stuff over the last couple of days Jan 03 04:16:44 haeffb: http://www.pastie.org/764604 lines 10 and 12 log stuff? Jan 03 04:16:57 grr....i'm still having some weird error...gonna wipe it and start over again Jan 03 04:17:41 lines 10 and 12 are fine, get logs with correct values. Jan 03 04:18:14 do any of those look like u Max? Jan 03 04:18:20 line 19 always shows the same as line 7, no matter what the values of endMiles and lastmileage Jan 03 04:18:46 * haeffb doesn't understand why JenP gave some disclaimer about taste in art... Jan 03 04:19:24 just making sure... Jan 03 04:19:35 got a couple of responses... Jan 03 04:19:42 so what do you think? Jan 03 04:20:00 like it. Jan 03 04:20:07 Bmyers i looked like one of them when i was 20 Jan 03 04:20:14 will Palm allow it in the catalog? Jan 03 04:20:16 i am NOT 20 anymore Jan 03 04:20:19 idk Jan 03 04:20:22 we'll see Jan 03 04:20:46 i don't think they're anyworse then those adult wallpaper ones by digit Jan 03 04:20:49 man when i was 20..... ummm mmm Jan 03 04:21:03 it awesome. dont change a thing.. Jan 03 04:21:07 ship it Jan 03 04:21:14 i want the adult wall paper app Jan 03 04:21:17 i did it's up in the que for review Jan 03 04:21:22 (almost wrote ship tit by accident) Jan 03 04:21:22 lol Jan 03 04:21:24 but im in canada :( Jan 03 04:21:28 LOL Jan 03 04:21:44 (that would have been embarrassing) Jan 03 04:22:09 what's the $$ going to be? Jan 03 04:22:17 99 cents Jan 03 04:22:23 it's just to show case Jan 03 04:22:30 you'll be a millionare in weeks Jan 03 04:22:55 we'll see....have to admit my favorites the chic with her butt up Jan 03 04:23:05 haeffb log just Miles.vehicle[index].lastmileage Jan 03 04:23:10 and see what that says Jan 03 04:23:30 hotter than dounut grease Jan 03 04:23:33 too late, I've moved on Jan 03 04:23:54 * haeffb hates that "0" is falsy Jan 03 04:24:10 i thought -1 was false? Jan 03 04:24:18 cause i think its an object {} you got there.. Jan 03 04:24:29 when looking for index in an array, if you get 0, then if (index) doesn't work. Jan 03 04:25:26 Miles.vehicle[index] = { car, miles, rate } Jan 03 04:25:39 no, false, null, undefined, empty string - '', the number 0 and the number NaN are all falsy Jan 03 04:27:44 you should be able to set any property of an object by object.property = newval; Jan 03 04:28:11 Miles.vehicles[index].lastmileage = whatever; should work. but doesn't Jan 03 04:28:14 sigh. Jan 03 04:28:42 but Miles.vehicles[index] = newvehicle; does work, so I'm moving on. Jan 03 04:29:10 maybe run this past rick when/if he shows up Jan 03 04:29:22 here Jan 03 04:29:28 yeah it should Jan 03 04:29:36 what's up guys? Jan 03 04:29:46 it's a long story, but if you have time... Jan 03 04:29:47 I was sort of caught up with rwhitby's latest discovery. Jan 03 04:29:54 which is? Jan 03 04:30:07 lunasysmgr has a new method embedded in it. LaunchNativeApp. Jan 03 04:30:22 awesome. Jan 03 04:30:23 if we can just figure out how to call it, we can toss all the upstart script crap Jan 03 04:31:09 I couldn't get a variable changed to a new value. Jan 03 04:31:15 as in: http://www.pastie.org/764604 Jan 03 04:31:21 which would be nice. Meanwhile, dtwill is close to having quake playable... and they're close to having all the 1600+ optware's running in sdl from preware. Jan 03 04:31:26 :-) Busy day. Jan 03 04:31:38 calculate bigmiles, try to set lastmileage = bigmiles, but it doesn't take. Jan 03 04:32:13 haeffb do you have a pastebin for me to look at? Jan 03 04:32:21 but the kicker is this: Miles.vehicles.push(results.rows.item(i)); is used to load the vehicles array from a SQLite DB Jan 03 04:32:45 like the linke 7 lines above? Jan 03 04:33:07 sorry Jan 03 04:33:10 split attention Jan 03 04:33:13 it's opening Jan 03 04:33:14 lol Jan 03 04:34:03 split attention span theater Jan 03 04:35:01 haeffb: did u try setting it to 100 lets say? Jan 03 04:35:02 haeffb Will you try two things for me? Jan 03 04:35:08 line 14 Jan 03 04:35:10 exactly Bmyers Jan 03 04:35:12 just wondering Jan 03 04:35:16 it should work Jan 03 04:35:21 try setting it to some arbitrary number and tell me if that works. Jan 03 04:35:53 then second thing -- dump the parseint thing and do lastmiles = 1 * bigMiles; Jan 03 04:35:55 instead Jan 03 04:36:00 and let js do the cast for you Jan 03 04:36:19 u dont like parseint? Jan 03 04:36:30 I keep having it fail in the oddest places. Jan 03 04:36:46 So I gave the hell up. Unless I'm parsing into a non-base-10 Jan 03 04:36:59 or rather FROM a non-base-10 Jan 03 04:37:28 weird.. Jan 03 04:37:41 I don't care 1 * variable is easier to write also Jan 03 04:37:48 like in cases like this? Jan 03 04:37:52 rick_home: it didn't work before I tried parseInt, either. Jan 03 04:38:05 and setting = 100; doesn't work. Jan 03 04:38:07 [20100102-22:36:28.152080] info: Vehicle: {"value": 2, "label": "Jeep", "lastmil Jan 03 04:38:07 eage": 0, "rate": 0} Jan 03 04:38:07 [20100102-22:36:28.153058] info: Vehicle: {"value": 2, "label": "Jeep", "lastmil Jan 03 04:38:07 eage": 0, "rate": 0} Jan 03 04:38:27 logs before and after: Miles.vehicles[index].lastmileage = 100; Jan 03 04:38:44 haeffb: you having problems with json and ajax? Jan 03 04:38:56 nope, javascript and SQLite Jan 03 04:39:06 haeffb uh Jan 03 04:39:09 oh ok, Jan 03 04:39:16 yeah... exactly.. Jan 03 04:39:21 miles.vehicles and info: vehicle: are somewhat different Jan 03 04:39:40 do this for me, Jan 03 04:39:48 Mojo.Log.info( "Vehicle: %j", Miles.vehicles[index]); Jan 03 04:40:10 oh Jan 03 04:40:17 ok Jan 03 04:40:35 did you see how I'm loading the vehicles array from the DB? Jan 03 04:40:41 Miles.vehicles.push(results.rows.item(i)); Jan 03 04:40:47 yes, that. Jan 03 04:41:02 i dont do it that way so i am not sure Jan 03 04:41:13 var sql = "CREATE TABLE IF NOT EXISTS 'vehicles' (value INTEGER PRIMARY KEY, label TEXT, lastmileage INTEGER, rate REAL)"; Jan 03 04:41:21 ok Jan 03 04:41:27 SELECT * FROM vehicles Jan 03 04:41:30 ok Jan 03 04:41:33 get results Jan 03 04:41:36 ok Jan 03 04:41:47 stick 'em directly into the array Jan 03 04:41:51 ok Jan 03 04:41:52 one row at a time. Jan 03 04:41:55 ok Jan 03 04:41:57 r u going to tell him not to use select * or should I? Jan 03 04:42:06 no, I'm ok with it. Jan 03 04:42:51 is his method ok to load up the object? Jan 03 04:42:56 so, I can't do Miles.vehicles[index].lastmileage = 100; Jan 03 04:43:10 but I can do Miles.vehicles[index] = newvehicle; Jan 03 04:43:42 where newvehicle = {label: "stuff", ..., lastmileage: 100}; Jan 03 04:43:54 which totally weirds me out Jan 03 04:44:04 yeah.. i imagine.. Jan 03 04:44:05 haeffb can you then change that one? Jan 03 04:44:21 good question. let's see. Jan 03 04:44:40 Rick: is his method ok to load up the object? Jan 03 04:44:45 sure Jan 03 04:44:52 anyone know how accurate the app stats are at catalog.webosschool ? Jan 03 04:45:05 yep. Jan 03 04:45:09 they're updated daily using calls that they extracted from the code in app catalog Jan 03 04:45:30 you CAN change the new one? Jan 03 04:45:36 I can then set Miles.vehicles[index].lastmileage = 100; Jan 03 04:46:11 so, what about other properties... before replacing the entire vehicle? Jan 03 04:46:32 when you create the default data for an app, are you setting lastmilage to 0 or to something else? Jan 03 04:46:43 rick_home: there is no access to the official app store via web browser? Jan 03 04:46:51 LoneStar20 no Jan 03 04:47:04 nope, can't change label either. Jan 03 04:47:21 rick_home: how did they figure out the code then, reverse engineering? Jan 03 04:47:26 before replacing the entire vehicle, I can't change anything. Jan 03 04:47:33 haeffb pastebin the ENTIRE FILE please.... Jan 03 04:47:36 After replacing the entire vehicle, I can change everything. Jan 03 04:47:42 (prolly sniffed it) Jan 03 04:47:45 so I can see how you're extracting the data from the db. Jan 03 04:47:45 oh, wow. Jan 03 04:48:25 ENTIRE FILE is actually a few files. Jan 03 04:48:32 haeffb ok Jan 03 04:48:35 then try this. Jan 03 04:48:36 but, I'll try to paste the most relevant stuff. Jan 03 04:48:39 no no Jan 03 04:48:40 wait Jan 03 04:48:42 try this. Jan 03 04:48:59 Frog = Miles.vehicles[index] Jan 03 04:49:11 Frog.lastmilaege = 100 Jan 03 04:50:05 and see if you can change the copy.... Jan 03 04:50:19 and then do Miles.vehicles[index] = frog Jan 03 04:50:41 doesn't work. can't change Frog either. Jan 03 04:51:02 log Object.toJSON(Frog) Jan 03 04:51:10 and see what you get please. Jan 03 04:52:34 [20100102-22:51:39.799389] info: Vehicle: {"value": 2, "label": "Jeep", "lastmil Jan 03 04:52:34 eage": 0, "rate": 0} Jan 03 04:52:34 [20100102-22:51:39.801927] info: Frog: {"value": 2, "label": "Jeep", "lastmileag Jan 03 04:52:34 e": 0, "rate": 0} Jan 03 04:52:34 [20100102-22:51:39.803118] info: {"value": 2, "label": "Jeep", "lastmileage": 0, Jan 03 04:52:35 "rate": 0} Jan 03 04:52:37 [20100102-22:51:39.804268] info: Vehicle: {"value": 2, "label": "Jeep", "lastmil Jan 03 04:52:39 eage": 0, "rate": 0} Jan 03 04:52:45 log vehicle Jan 03 04:52:53 frog = vehicle Jan 03 04:52:54 log frog Jan 03 04:53:04 log Object.toJSON(Frog) Jan 03 04:53:09 log vehicle Jan 03 04:53:29 oh, and Frog.lastmileage = 100 between frog=vehicle and log frog Jan 03 04:53:43 it simply refuses to change anything Jan 03 04:54:01 log frog. that's fun Jan 03 04:54:15 frog.pop Jan 03 04:54:20 :) Jan 03 04:54:28 pop frog with log Jan 03 04:54:32 splat. Jan 03 05:00:48 weird Jan 03 05:01:03 haeffb if you want to email me the app, I will look at it tommorow with no guarantees. Jan 03 05:01:10 but that's just f-ing weird Jan 03 05:01:23 will do. I agree. And it's cost me a day! Jan 03 05:02:37 The problem child is in EntryAssistant.deactivate(); Jan 03 05:03:04 the DB is loaded in ListAssistant.activate() and subsequent DB calls. Jan 03 05:04:23 And, I'm gonna leave all the Frog stuff in the final version of the app. Just cuz. Jan 03 05:05:43 you can almost always identify an app I debugged because of the use of frog as a debugging variable. Jan 03 05:05:54 my experiance has been it's a safe word to use. :-) Jan 03 05:06:21 but a note about where the errror is in the email and please zip up the entire source directory. Jan 03 05:06:32 if you're using komodo, send me the project file too please. Jan 03 05:06:48 ah, already sent an .ipk Jan 03 05:06:52 ipk is fine Jan 03 05:06:59 and the note is above Jan 03 05:07:09 and I will have forgotten the note by tommorow. :-) Jan 03 05:07:21 do you ever change any element of that object anywhere else? Jan 03 05:07:23 right, right. Jan 03 05:07:35 I've now discovered that I can't. Jan 03 05:07:44 right Jan 03 05:07:46 haeffb I'll look at it Jan 03 05:07:52 i think thats bad Jan 03 05:07:57 it's got to be something very very stupid. Jan 03 05:08:14 lol. Jan 03 05:08:20 u can save miles tho, how does that happen? Jan 03 05:08:35 you are talking about MY code. very very stupid is my middle name. Jan 03 05:08:41 and since I stopped working on the doom loader since they found the stupid launchNativeApp call, I will look at your stupid thing Jan 03 05:09:01 I load that DB data differently. Jan 03 05:09:09 why? Jan 03 05:09:19 I did the vehicles thing in a way that I thought would be more efficient. Jan 03 05:09:27 and it would be, if it worked. Jan 03 05:09:38 and I thought it worked. Jan 03 05:09:46 Until it didn't. that one time. Jan 03 05:10:07 rick_home: because I'm just learning SQL Jan 03 05:10:25 and the first time I was just trying to get something going. Jan 03 05:10:37 The next time, I thought, "How can I do this better." Jan 03 05:10:56 but have learned, better is not always better :) Jan 03 05:11:24 I should be around IRC most of the day tomorrow. Jan 03 05:12:21 u heading out? Jan 03 05:12:38 not yet Jan 03 05:12:51 starting the drunk coding thing... Jan 03 05:14:06 do u use eclipse Rick? Jan 03 05:15:50 or, does anyone know how to tell eclipse that your project you just imported is a webos project? Jan 03 05:16:59 i imported the milez app but eclipse doesnt think its a webos app Jan 03 05:17:14 Bmyers: Jan 03 05:17:39 are all the files in a direcroty? Jan 03 05:17:44 what I've done is just create a new app in eclipse, then copy/paste the app Jan 03 05:18:05 Yeah, that's what I've done in Eclipse and Komodo alike Jan 03 05:18:13 LS 20: yes they r in a folder Jan 03 05:18:29 crap. Jan 03 05:18:31 i do that too but it seems like I was doing it the long way or something Jan 03 05:18:36 yeah: start new project and point it to the location of the directory Jan 03 05:18:42 Now I can't get the db to update either. Jan 03 05:18:46 noipe as far as I know that is the only way. Jan 03 05:19:28 var sql = "UPDATE 'vehicles' SET lastmileage=? WHERE value=?"; Jan 03 05:19:28 var args = [vehicle.lastmileage, this.miles.vehicle]; Jan 03 05:19:43 calls success handler, but not updated. Jan 03 05:19:53 back to where I was this morning. Jan 03 05:20:39 so, is there something in the DB table that says, "DON'T CHANGE ME!!!!" ?? Jan 03 05:21:09 Bmyers: did you get it? Jan 03 05:21:29 this f'in sucks. Jan 03 05:21:30 created a new project Jan 03 05:21:41 now copy it over there huh? Jan 03 05:21:42 oh goody. It's snowing again. Jan 03 05:21:44 How's everyone tonight? Jan 03 05:21:44 Bmyers: wait. sending you a newer version Jan 03 05:22:10 we're trying to debug haeffb's database thingy Jan 03 05:23:20 when I add in the db call to update the vehicle, my other table gets double entries. and the vehicle table does not get updated. Jan 03 05:23:35 I give up. I'm going to switch to Android development. Jan 03 05:23:44 or maybe long walks in the park. Jan 03 05:23:54 does this version work? Jan 03 05:24:03 not. even. close. Jan 03 05:24:15 but, it's got even more weirdness, which is nice. Jan 03 05:24:16 haeffb -- without wanting to seem incredably stupid Jan 03 05:24:31 although I am about to commit utter stupidity. Jan 03 05:24:48 Why is the db and the vehicles array both properties of Miles? Jan 03 05:25:21 just a global var so I can access it everywhere. Jan 03 05:25:29 is that wrong? Jan 03 05:26:40 I'm keeping all global vars within the Miles namespace. Jan 03 05:26:56 saving a handle to the db to use in multiple scenes. Jan 03 05:27:00 Bmyers: File >> New >> Project >> General >> Project >> Project name: "YourAppName" >> Use default Location: "C:\YourAppDirectoryPath\" >> Finish Jan 03 05:27:06 I think that it may be a problem Jan 03 05:27:18 gimme a minute, I'm going to try something. Jan 03 05:27:54 Ok, just hanging out, drinking beer. Jan 03 05:28:00 take your time :) Jan 03 05:28:38 LS20: uncheck the box for default location u mean? Jan 03 05:30:16 Bmyers: Jan 03 05:30:21 Bmyers: just create a new project in eclipse with whatever name you'd like. Then use win explorer to copy/paste the Milez directory structure. (if you haven't done all that already) Jan 03 05:30:41 yes uncheck and point it to your app directory Jan 03 05:31:01 i tried that and it said appinfo exists already Jan 03 05:31:08 overwrite Jan 03 05:31:21 of course it exists. but my version is much better! Jan 03 05:31:34 yeah isnt that a bad thing? Jan 03 05:31:50 nope Jan 03 05:32:30 it's how the world goes 'round. Copy/paste somebody elses stuff. GPL and all that. Jan 03 05:32:47 * haeffb is spending more time on beer than on coding now... Jan 03 05:33:52 haeffb -- this doesn't have in any vehicles in it how does one add a vehicle? There doesn't appear to be an add vehicle function Jan 03 05:34:49 Bmyers: did you get it working? Jan 03 05:35:04 yeah but what pain.. Jan 03 05:35:23 i thought i was doing it the wrong way but i guess not.. Jan 03 05:35:42 ok found it, you add vehilcles in preferences, which is just weird. Jan 03 05:36:23 sry, I'm that way sometimes. Jan 03 05:36:44 I'm planning to add an "Edit" to the listSelector in entryAssistant. someday. Jan 03 05:37:12 or something. Jan 03 05:37:22 Really tempted to get a touchstone at $40. Jan 03 05:37:43 i had some major problems with eclipse and creating new projects, until I disabled some file in eclipse Jan 03 05:38:06 touchstones are awesome. Jan 03 05:39:40 where r they $40? Jan 03 05:40:00 haeffeb: do you difine Miles.vehicle somewhere? Jan 03 05:40:05 (define) Jan 03 05:40:45 precentral? Jan 03 05:40:57 Miles.vehicles = []; Jan 03 05:41:34 http://store.precentral.net/palm-pre-touchstone.htm Jan 03 05:41:41 w/o the cable Jan 03 05:42:32 but not var vehicle = {} ? Jan 03 05:43:02 I do now. Jan 03 05:43:07 didn't before. Jan 03 05:43:18 I'm now createing a vehicle = {}; Jan 03 05:43:35 this is very very weird. but your code is hard to read. Jan 03 05:43:36 then stuff like: vehicle.label = results.rows.item(i).label; Jan 03 05:43:49 then Miles.vehicles[i].push(vehicle); Jan 03 05:43:51 dangit, it didnt import right Jan 03 05:44:12 its still not a mojo project Jan 03 05:44:12 rick_home: thats because I'm inscrutable Jan 03 05:44:30 Bmyers don't import. Create new, copy files. Jan 03 05:44:36 i did that Jan 03 05:44:47 well, then that is also weird. Jan 03 05:44:58 I think 2010 is not going to be a good year. Jan 03 05:45:04 its your app, bad mojo.. Jan 03 05:45:04 for me. Jan 03 05:45:12 lol :) Jan 03 05:45:20 "bad mojo!" Jan 03 05:45:38 rick_home: I am always open to suggestions for improving code. Jan 03 05:46:41 rick: I finally abandoned drawers in a list, the animation overhead and scrolling artifacts killed me...had to go with innerHTML swaps, which are about 100000x better than drawers in all respects (rendering speed, scrolling behavior...) Jan 03 05:47:50 haeffb -- i am officially stuck Jan 03 05:47:55 but I am also falling asleep Jan 03 05:47:59 it's VERY WEIRD. Jan 03 05:48:24 but I gotta say, you're doing this in the oddest way I have ever seen, and I don't undestand why you have the program logic set up the way you do. Jan 03 05:49:25 but I can read your code, so that wins. Jan 03 05:49:35 rick_home: it's because I'm a civil engineer, not a programmer. Jan 03 05:49:39 I'll look at it again tommorow. Jan 03 05:49:46 and the app is a frankenstein Jan 03 05:49:56 but, hey! Jan 03 05:50:08 if I change how I load the array from the DB Jan 03 05:50:38 vehicle.value = results.rows.item(i).value; Jan 03 05:50:38 Miles.vehicles.push(vehicle); Jan 03 05:50:55 then the Frog stuff works. Which is nice. Jan 03 05:51:03 huh Jan 03 05:51:07 well then, stop there. Jan 03 05:51:17 oh shit. Jan 03 05:51:18 right Jan 03 05:51:33 "Javascript variables are passed by reference, always always always" Jan 03 05:51:47 you weren't making a COPY of the rows element retruend by the database, Jan 03 05:51:48 engrish, please Jan 03 05:51:53 you were making a POINTER TO IT Jan 03 05:51:59 and it's not modifiable. Jan 03 05:52:04 huh. Jan 03 05:52:04 Blargh Jan 03 05:52:08 I said it was simple Jan 03 05:52:09 so, don't do that? Jan 03 05:52:16 do what you have changed it to. Jan 03 05:52:19 no, you said it was very very stupid. Jan 03 05:52:20 don't do what you were doing. Jan 03 05:52:59 doctor, it hurts when I do this... Jan 03 05:53:20 o Jan 03 05:53:25 slice it? Jan 03 05:53:51 yep Jan 03 05:53:58 ah Jan 03 05:54:13 paste that line back in here haeffe Jan 03 05:54:33 or do an Object.toJSON and then eval it back into a new array Jan 03 05:54:36 or something Jan 03 05:54:44 Miles.vehicles.push(results.rows.item(i)); Jan 03 05:54:45 but not a reference to the rows array Jan 03 05:54:58 yeah, you can't do that. Jan 03 05:55:13 yeah. I gathered that. Jan 03 05:55:29 but now I'm starting to understand why. Jan 03 05:55:32 when you do that, the miles.vehicles becomes just a POINTER to the rows.item Jan 03 05:55:37 freaky Jan 03 05:55:37 THANK YOU!! Jan 03 05:55:53 ALL!! Jan 03 05:55:58 you need to COPY them Jan 03 05:56:08 you are REFERENCING them Jan 03 05:56:10 there is the clone method Jan 03 05:56:16 there is. Jan 03 05:56:21 so you could do Jan 03 05:56:44 cars = results.rows.clone() Jan 03 05:56:52 and that would clone the entire array Jan 03 05:57:03 (syntax not guaranteed I'm sleepy and didn't look it up) Jan 03 05:57:11 so there is a better way haeefb.. Jan 03 05:57:18 ques is though, why is the object returned by the query immutable? What's the logic of that? Jan 03 05:57:21 you didnt werent doing it :) Jan 03 05:57:49 jfelectron that's a really good question -- but it has to do with the sqlite bindings into javascript, and I haven't read up on that. Jan 03 05:57:53 but I know it is. Jan 03 05:58:32 perhaps rows is a private property of the object, initialized in the constructor and therefore immutable outside the objects methods Jan 03 05:58:41 probably Jan 03 05:58:49 don't know what the implementation is....but something like that Jan 03 05:58:54 but for tonight it doesn't matter. Jan 03 05:59:06 haeffb now has a way to get mutable data. Jan 03 05:59:21 yup Jan 03 05:59:24 he's a geeenyus.. Jan 03 06:00:43 well, not quite have it. Jan 03 06:00:58 var o2 = Object.clone(o); Jan 03 06:02:56 Miles.vehicles[i] = Object.clone(results.rows.item(i)); Jan 03 06:03:06 still have to loop thru rows Jan 03 06:04:22 Miles.vehicles = Object.clone(results.rows.item); Jan 03 06:04:27 does NOT work Jan 03 06:05:32 but with the [i] version, the Frog stuff works! Jan 03 06:05:40 * haeffb happy. Jan 03 07:00:19 I want landscape pdf Jan 03 07:01:31 extract pdf view done and all Jan 03 07:10:31 syn9: Install the patch, then Jan 03 07:22:23 Anyone have any spare Slashdot moderation points? Jan 03 07:25:20 http://mobile.slashdot.org/comments.pl?sid=1495848&cid=30629952 Jan 03 10:16:17 hi Jan 03 13:21:33 doesn't it miss the x-mojo-widget attribute? Jan 03 13:21:46 oh lol Jan 03 13:59:01 Is there a trick to placing more than one widget on the same row? For example, I'd like to place a label and a TextField on the same row. Jan 03 14:13:41 MarkVolkmann: you working in Ares? Jan 03 14:13:51 No. Jan 03 14:14:07 Although I did try it in Ares and couldn't get it to work there either. Jan 03 14:17:15 I thought if I could get it to work in Ares then I could look at the HTML it generated and learn what I needed. Jan 03 14:17:51 Do Buttons and Textfields in Mojo always extend all the way across the screen or can they have a limited width? Jan 03 14:30:32 The fact that widgets are declared using div tags seems to imply that you can only have one per line/row. Jan 03 14:31:32 Yet there are examples of having more than one button on the same row ... like when confirming deletion of something. Jan 03 14:35:01 hi all! Jan 03 14:35:24 hi jenp Jan 03 14:35:39 hey Bmyers! Jan 03 14:36:11 did you haeffb and rick figure out the sql issue? Jan 03 14:36:59 yes Jan 03 14:37:13 awesome! what was it Jan 03 14:37:38 it was the way he was loading the data into his object Jan 03 14:37:56 what up peeps? Jan 03 14:38:02 vars are always passed by reference in JS Jan 03 14:38:08 hiya haeffb! Jan 03 14:38:11 i'll let him tell u Jan 03 14:38:15 lol Jan 03 14:38:26 haeffb what was your sql issue Jan 03 14:38:51 MarkVolkmann: http://www.pastie.org/764931 Jan 03 14:39:03 I had two problems: Jan 03 14:39:43 1) this doesn't (completely) work: Miles.categories.push(results.rows.item(i)); Jan 03 14:39:48 oh yeah. i forgot the pther one Jan 03 14:40:07 where results is results from a SQL query Jan 03 14:40:43 because results from a SQL query are immutable, I get the data into the javascript array, but I can never change the property values. Jan 03 14:40:46 Thanks haeffb! Jan 03 14:40:49 np Jan 03 14:41:16 MarkVolkmann: you could always put your widgets in a rather than a
Jan 03 14:41:28 That gives me the TextField and the label on the same row, but the label appears to be inside the TextField. What if I wanted the label to be on the left, before the TextField begins? Jan 03 14:41:52 I tried using spans. The widgets disappeared when I did that. I'll try again. Jan 03 14:42:00 so haeffb how did you solve changing prop values? Jan 03 14:42:33 Miles.vehicles[i] = Object.clone(results.rows.item(i)); Jan 03 14:42:37 Changing the div to span for a TextField just makes the TextField disappear. Jan 03 14:42:44 bummer Jan 03 14:42:52 MarkVolkmann hintText? or you can use a pseudo class in your css Jan 03 14:43:17 I really want the label to precede the TextField. Jan 03 14:43:26 I also can't get two buttons to be on the same row. Jan 03 14:43:26 the clone() was suggested by jfelectron Jan 03 14:43:56 have you tried tables Jan 03 14:44:11 MarkVolkmann can you show me a pic of what you want? Jan 03 14:44:12 Yeah, that didn't work either. Jan 03 14:44:26 Sure. Hold on. Jan 03 14:44:43 JenP: the second problem was that I had two db.transaction calls in one function. Jan 03 14:45:00 oh? Jan 03 14:45:18 and I used sql=xxx args=yyy within the first db.transaction call Jan 03 14:45:31 then I used sql=www args=zzz in the second Jan 03 14:45:55 but, because db.transaction is async, both transactions got sql=www args=zzz Jan 03 14:46:00 haeffb...how how do you like using sql so far? Jan 03 14:46:08 meh Jan 03 14:46:15 smiles... Jan 03 14:47:15 MarkVolkmann: http://www.balsamiq.com is a really cool mockup site Jan 03 14:47:45 oh haeffb that is cool Jan 03 14:48:27 Bmyers did you submit your app yet? Jan 03 14:49:18 MarkVolkmann this worked for me http://webos.pastebin.com/m3c6482c2 Jan 03 14:49:18 yes Jan 03 14:50:03 was there a change in 1.3.5 for location i.e getting gps location Jan 03 14:50:16 Bmyers: too cool! let me know when it's published Jan 03 14:50:42 i dont think you'll NOT be able to hear from me at that point Jan 03 14:50:50 smiles... Jan 03 14:50:58 Thanks rjtaylor, I'll try that. Jan 03 14:51:06 big snoopy dance when that finally happens Jan 03 14:51:12 A mockup of what I'm trying to do is at http://java.ociweb.com/mark/mockup.html Jan 03 14:51:18 lol Jan 03 14:51:46 MarkVolkmann i agree with rjtaylor table is your best bet Jan 03 14:56:15 so, Bmyers, I'm now thinking about getting rid of the Miles.vehicles, Miles.categories, etc globals and just using the DB instead. Jan 03 14:56:46 get rid of them? Jan 03 14:57:03 Okay, I'm having some success with using tables to arrange Buttons and TextFields, but how can I limit the width of a TextField? Jan 03 14:57:07 eliminate the globals. grab data from the DB in whatever scene it's needed. Jan 03 15:00:00 for some things i would imagine, but for others i think a global is ok.. Jan 03 15:00:24 for all the trip data , you may want to load it when u need it Jan 03 15:00:41 but for categroies and vehicles, just load them once.. Jan 03 15:01:24 ya, frickin asynchronicity may kill me. Jan 03 15:01:44 its a bitch to get used to if you've come from somewhere else Jan 03 15:01:54 but alot of webos is that way.. Jan 03 15:02:03 oh, you want to see a list of vehicles? wait a sec while I go get that for you... Jan 03 15:02:10 be right back... Jan 03 15:02:15 really...just wait there.... Jan 03 15:02:21 Is the best way to specify the width of a TextField to use the CSS width property and specify it in pixels? I was hoping I could specify an approximate number of characters it should display. Jan 03 15:02:36 :) Jan 03 15:03:20 are we able to use the newer version of VirtualBox with 1.3.5? Jan 03 15:03:29 NO Jan 03 15:03:37 nnnnnooooo Jan 03 15:03:43 i just found that out.. Jan 03 15:04:01 new version is 3.1.2 and webos need 3.0.12 Jan 03 15:04:17 (different computer) Jan 03 15:04:19 ok Jan 03 15:04:31 grrrr...now my "load default vehicle" is not working. Jan 03 15:04:44 I have really bad mojo this weekend. Jan 03 15:04:48 first check for async weirdness Jan 03 15:04:58 then after that, check for async weirdness Jan 03 15:05:52 no, it was: Mojo.Log.info("Results are: %j", results.rows.item(0)); Jan 03 15:06:11 if results.length == 0, that fails miserably. without telling me anything. Jan 03 15:06:15 i've done that.. Jan 03 15:06:33 trying t figure out whats wrong thru logging and it ends up being the loggin.. Jan 03 15:06:57 making you code take a bit dump.. Jan 03 15:07:54 New Rule: Every function starts with try {} catch (e) {} Jan 03 15:08:06 yeah... Jan 03 15:08:15 * haeffb has to write this crap down somewhere. Jan 03 15:08:53 * haeffb wonders if there's a way to get eclipse to do that automagically if it sees "function .... {" Jan 03 15:09:47 When TextFields don't have focus, they look like labels and there is no visual cue that the user may be able to change the value by clicking it and typing a new value. This seems bad. Do you give a different style serve as a visual cue? Jan 03 15:10:23
Jan 03 15:11:04 or maybe just textfield-group will work Jan 03 15:11:06 brb Jan 03 15:11:15 or maybe just textfield Jan 03 15:11:20 I dunno Jan 03 15:11:35 you can put 'hint text' in to cue the user visually Jan 03 15:13:58 hrm. there's a 'combobox' style in textfields.css Jan 03 15:14:09 but there's no combobox widget, is there? Jan 03 15:14:35 MarkVolkmann: suggest you browse thru the stylesheets included in the SDK Jan 03 15:14:49 oh maybe that is my prob i am using the newest version Jan 03 15:15:17 and it's textfield-group Jan 03 15:16:11 what does this mean in CSS: .palm-dialog-content > .textfield-group Jan 03 15:16:24 what's the ">" do? Jan 03 15:18:17 i think it's just saying .palm-dialog-content is the parent element...and textfield-group is on of it's descendants Jan 03 15:18:46 It means it's a direct child, not just any descendant. Jan 03 15:18:56 If you remove the > then it means any descendant. Jan 03 15:19:13 ah thanks Jan 03 15:19:21 hmmm Jan 03 15:20:10 what happens if you are using the newest version of vertial baox Jan 03 15:20:37 so, why is palm styling textboxes differently in dialogs than in regular scenes? Jan 03 15:21:01 rjtaylor: the universe as we know it will end. Please do not use the newest version of virtual box. Thank you. Jan 03 15:21:44 * haeffb really doesn't know what will happen. scared to try it in fear that the universe as we know it may end. or something slightly less dire, but still undesirable Jan 03 15:22:02 hehe thanks Jan 03 15:22:14 its just tells u it need and older version and closes Jan 03 15:22:27 rjtaylor you get a prompt saying it's not compatible with emu Jan 03 15:22:34 well, that's somewhat of a relief. whew. Jan 03 15:22:57 oh ok Jan 03 15:23:02 I tried to use the newest version of VirtualBox with the emulator and it didn't work. Then I installed the older version and it still didn't work. That's because you have to run the special uninstaller for the new version before you reinstall the old version. Jan 03 15:23:11 then i guess i am using an ok version Jan 03 15:23:19 where is the uninstaller Jan 03 15:23:27 ok, I was just thinking about to update... Jan 03 15:23:59 I should have specified that I'm working on a Mac. The uninstaller was in the drive that was mounted by the installer. Jan 03 15:24:15 I think you have to use version 3.0.10 of VirtualBox for now. Jan 03 15:24:20 mine says i am using 3.1.2r Jan 03 15:24:44 I wouldn't mind if it isn't crashing so often Jan 03 15:24:59 3.0.12 here Jan 03 15:25:06 Perhaps the highest version you can use depends on the platform you are running on. Jan 03 15:25:14 but i cant seem to get my gps location to work thats on the device as well Jan 03 15:25:17 WXP Jan 03 15:25:50 Is there a 1.3.5 preview available? as it was with 1.3.1? Jan 03 15:25:58 for developers? Jan 03 15:26:35 1.3.5 is officially released now Jan 03 15:27:15 comment in textfields.css: /* these appear to be duped styles, investigate and remove */ Jan 03 15:27:23 guess webOS is still a work in progress Jan 03 15:29:03 so, I want to override the styling for textfields in a dialog. the CSS uses: url(../images/textfield-noshadow.png) Jan 03 15:29:36 but, if I put that in my app's stylesheet, the path is not longer correct. What's the path to the webOS images? Jan 03 15:29:49 or should I just copy the images to my apps images dir? Jan 03 15:30:22 haeffb i aways copy them in so i'm sure where the overrides going to Jan 03 15:30:55 haeffb: yes, official released but not in Europe.. Jan 03 15:32:09 can someone look at this a tell me what is wrong ituse to work but stopped http://webos.pastebin.com/m56c29969 Jan 03 15:33:41 where does it stop? on position get? Jan 03 15:34:37 hmmm not sure what you meen Jan 03 15:35:05 does it display the button? Jan 03 15:35:16 yes Jan 03 15:35:28 does it update the field with "Getting your position. Please stand by..." Jan 03 15:35:36 and shows the getting messige Jan 03 15:35:44 ok Jan 03 15:36:04 and no error code/msg? Jan 03 15:36:14 does it work in the emu? Jan 03 15:36:26 no Jan 03 15:36:39 code like this did work before Jan 03 15:37:01 looks quite ok Jan 03 15:37:04 in 1.3.1 i dont think i changed anything Jan 03 15:37:51 do any logging to see if it gets to the success handler? Jan 03 15:38:04 Is there an UI guideline from Palm about what TextFields should look like when they are editable, but do not have focus? Jan 03 15:38:27 well my logging does not seem to work either i just see errors on cleenup Jan 03 15:38:31 rjtaylor: I do almost the same in MapTool Jan 03 15:39:00 hmmm wish i knew what i have wrong Jan 03 15:40:46 MarkVolkmann: it varies. Look at some of Palm's apps...they do different things. Jan 03 15:40:54 rjtaylor: all logging is broken? Jan 03 15:41:18 i might not be logging correctly Jan 03 15:41:26 brb Jan 03 15:43:07 hmmm... there is also a smarttextfield class "to replace textfield" in global-textfields.css Jan 03 15:46:46 when I add -webkit-border-image: ... in my app CSS, eclipse gives a property doesn't exist error... Jan 03 15:47:44 i left out the part that defined showalt so added it and now the button does not work Jan 03 15:52:48 is this the right way to get log info Mojo.Log.info("Rods first log spot"); Jan 03 15:53:33 yes, and make sure you have a framework_config.json with logLevel: 20 or higher Jan 03 15:53:41 rwhitby: Good finds, by the way. Jan 03 15:53:53 oh forgot that part Jan 03 15:54:08 are you using palm-log? Jan 03 15:54:49 yes Jan 03 15:54:55 so has anyone heard if there is any work being done on a gowalla app for webos? Jan 03 16:13:29 ok now cant seem to get the command to work is it palm-info com.mydomain.myapp Jan 03 16:13:52 palm-log -d tcp -f com.myapp. Jan 03 16:14:10 thanks Jan 03 16:16:00 can you explain the -d and tcp and -f Jan 03 16:16:50 -d tcp is device: emu -d usb is device: pre Jan 03 16:17:03 -f is follow, so it will continue to show your logs Jan 03 16:18:03 thanks Jan 03 16:19:16 when you use -f how do you stop it Jan 03 16:19:24 ctrl-c Jan 03 16:19:57 thanks again Jan 03 16:20:32 ok now the code is working in emu but not device Jan 03 16:21:28 Bmyers: ping Jan 03 16:21:48 u rang? Jan 03 16:22:06 what happens if I install over a version with a diff db schema? Jan 03 16:22:32 like, the old DB has a table with fewer columns... Jan 03 16:22:49 the universe cease to exist? Jan 03 16:22:56 without recreating the db? Jan 03 16:23:09 like, without create table code running? Jan 03 16:23:11 well, as set up now, the app will find the db Jan 03 16:23:26 it wont find your new col's Jan 03 16:23:28 and the CREATE TABLE IF NOT EXIST will find a table Jan 03 16:23:38 the old table Jan 03 16:23:38 xou need to alter table Jan 03 16:23:39 who runs webosschool.com? Jan 03 16:23:53 remove and reinstall the app Jan 03 16:24:12 so u get a new db Jan 03 16:24:15 I will do that, and probably for this version will just notify users to delete & reinstall Jan 03 16:24:19 would one way, ALTEr TABLE would be better Jan 03 16:24:19 or u can alter table Jan 03 16:24:25 but what's a more graceful way to handle? Jan 03 16:24:41 do a version check of your old db and alter the tables by hand Jan 03 16:24:44 change db version Jan 03 16:24:52 kk Jan 03 16:25:43 metaview, yes. Jan 03 16:25:58 i thought he was still devel'n the app. i forgot he released it Jan 03 16:26:20 early bird gets the worm Jan 03 16:26:36 Bmyers: email Jan 03 16:28:26 second mouse gets the cheese Jan 03 16:28:29 ;) Jan 03 16:29:04 early worm gets ate Jan 03 16:29:28 so you gotta know whether you're the bird or the worm when you get up in the morning Jan 03 16:29:49 lol Jan 03 16:30:24 so i am having an issue with logging onto gtalk Jan 03 16:30:40 Anyone used oAuth in webos? Jan 03 16:31:01 i was able to since i purchased my pre but then i had to doctor it a few weeks back and since then i can never get connected to my google account for chat Jan 03 16:31:10 no, but I saw a mention that google has an oAuth js library Jan 03 16:31:17 oh! Jan 03 16:31:41 I don't know what that means, but it sounds helpful. Jan 03 16:33:23 haeffb: I think this will work perfectly Jan 03 16:33:36 so, if I just change the db version, the app will install and create a new db, but not harm the old version? Jan 03 16:34:26 ok now got it working on emu but get null values on device here is the current code http://webos.pastebin.com/m7e0bd291 Jan 03 16:34:37 any ideas Jan 03 16:34:58 reset the device Jan 03 16:35:07 try to start GMaps parallel Jan 03 16:36:12 ok resetting Jan 03 16:38:35 ya know, how do some of these apps get past the review process? Jan 03 16:38:45 were can i find all the log commands Jan 03 16:39:34 prototypic: I don't know Jan 03 16:39:41 like lost count down, does nothing, does not follow the ui guidelines, I dont get it. Jan 03 16:40:31 race to 1000 Jan 03 16:40:32 bleh Jan 03 16:40:48 ok MataView i think i got it working just wish i knew what stopped it in the first place thanks Jan 03 16:42:23 wow after resetting the original app is working very wierd Jan 03 16:43:47 one last ques then I think I will take a break any one know how to turn off scroller in scene and on in a div Jan 03 16:45:34 set scroller size == surounding size? Jan 03 16:46:37 just changing db version breaks the app. Jan 03 16:47:14 MataView where do i put that Jan 03 16:47:59 i think it'll say that the version are different. try/catch? Jan 03 16:48:05 haeffb: you need to check the version and then do the ALTER TABLE Jan 03 16:48:15 or remove the old DB and tell the user to restart Jan 03 16:49:48 rjtaylor: thought about stuff like: var canvas = this.controller.get("myCanvas"); canvas.height = this.controller.window.innerHeight Jan 03 16:50:19 thanks i will look into that Jan 03 16:53:23 what if I want to make sure that a textfield value is an integer? I have charsAllowed set to only allow 0-9. Is that sufficient, or should I do some testing of the value? Jan 03 16:56:06 not sure about that but.... Jan 03 16:56:26 if u do a select * from __WebKitDatabaseInfoTable__ ; Jan 03 16:56:36 you see you version # Jan 03 16:56:55 (i always swap you and your.. i hate that) Jan 03 16:57:22 but, you have to know version to openDatabase, Jan 03 16:58:57 Error: INVALID_STATE_ERR: DOM Exception 11 Jan 03 16:59:13 that's the error I get when I change version from 0.1 to 0.2 Jan 03 17:04:40 Anybody wanna try to break my app? Jan 03 17:15:48 What's the app? Jan 03 17:16:22 Milez - tracking trip mileage for IRS, bus expense, etc. Jan 03 17:21:41 haeffb: did you figure out what the bug was? Jan 03 17:21:55 yes. Jan 03 17:22:06 SQLite query results are immutable Jan 03 17:22:28 and I was using a reference to the results as my array. Jan 03 17:22:52 interesting, didn't even know you could do that in javascript. So if you try to assign to an immutable field -- nothing happens, no exception no nothing? Jan 03 17:22:57 Miles.vehicles.push(results.rows.item(i)); //<--- THIS DOES NOT WORK Jan 03 17:23:07 nothing whatsoever Jan 03 17:23:24 Miles.vehicles[i] = Object.clone(results.rows.item(i)); // <--- THIS WORKS EVEN BETTERER. Jan 03 17:23:31 =) Jan 03 17:23:58 I have saved the issue as a couple of notes in my app... :) Jan 03 17:24:40 haven't used any of the mojo database stuff, but I'll be sure to remember that if I do :) Jan 03 17:31:07 haeffb: http://phonegap.pbworks.com/Adding-SQL-Database-support-to-your-iPhone-App Jan 03 17:37:06 phonegap lets us write iPhone apps in JavaScript? Jan 03 17:38:50 still not digging the item(i). Jan 03 17:42:32 phonegap lets us write iphone, blackberry, android, symbian, nokia maemo, and palm webos all in javascript all at the same time with the same code and compile to each platform's native code. Jan 03 17:42:54 write once, run everywhere. Jan 03 17:43:10 oh and windows mobile. I forgot them. Jan 03 17:43:27 haeffb how you doing this morning? Jan 03 17:44:25 fantastic. Jan 03 17:44:44 it's all working now. Jan 03 17:45:30 I'm curious about your comments about program logic, tho. Any specific suggestions? Jan 03 17:51:05 a few... Jan 03 17:51:33 some are design related and some are coding style related. Jan 03 17:52:07 bueno dias boys and girls Jan 03 17:54:34 let's do design first. Jan 03 17:54:51 I fail to find code calling the db object in "add a mileage event" Jan 03 17:54:55 did I just miss it? Jan 03 17:54:59 haeffb Jan 03 17:55:24 must have missed it. Jan 03 17:55:30 We put our db objects in the app manager or the stage manager so that we can just pass a value to them and let them save there. Jan 03 17:55:41 ok, my bad I missed it. Jan 03 17:56:07 I started in app, stage, but had problems with async. Jan 03 17:56:23 k Jan 03 17:56:41 I have a suggestion in that regard. Jan 03 17:57:14 the guy who wrote shopping list did a lovely job of doing isolation of his db methods into stage. I would advise you to cast your eye over his code. Jan 03 17:57:55 ok Jan 03 18:01:34 grrrr....no beta build available on precentral. Jan 03 18:01:50 haeffb I'll send you an ipk Jan 03 18:01:55 is there a way to dynamically expand the text field downwards, when say X about of characters are entered? Jan 03 18:02:16 there's an attrib that will do that Jan 03 18:03:28 multiline: true Jan 03 18:03:54 haefb: but does it display as one line at first? Jan 03 18:04:10 yes Jan 03 18:04:17 ok perfect thanks Jan 03 18:04:21 it will grow as new lines are added Jan 03 18:04:46 ok, will try it out after a world of goo session Jan 03 18:04:48 thanks Jan 03 18:05:43 haeffb so, in add mileage, you have a loop that identifies the vehicle you chose so that you can find the index to that vehicle's record. Jan 03 18:06:06 yes Jan 03 18:06:24 from a design perspective, that allways worries me for two reasons, 1) if you have a lot of records, it takes time Jan 03 18:06:39 and 2) you have to do it over and over and over Jan 03 18:06:45 I always want to do stuff like that once. Jan 03 18:06:46 i've been looking for a better way for a LONG time. Jan 03 18:07:11 when you retrieve your vehicle list, as you create the index record for the vehicle do this: Jan 03 18:07:35 vehIndex[vehName] = index Jan 03 18:09:01 you can do indexes of arrays that are not numeric Jan 03 18:09:42 yes. still not grasping where you're going with it tho. Jan 03 18:10:00 well, it's simple Jan 03 18:10:03 instead of your loop Jan 03 18:10:04 I have veh = {label: 'stuff', value=1} Jan 03 18:10:13 go ahead Jan 03 18:10:45 yes, but that's not what I'm talking about Jan 03 18:10:50 consider the following Jan 03 18:11:03 vehIndex['ford'] = 1 Jan 03 18:11:15 vehIndex['chevy'] = 2 Jan 03 18:11:29 vehIndex['audi'] = 3 Jan 03 18:11:33 now, I can do this Jan 03 18:11:54 findThisCar = 'ford' Jan 03 18:12:12 carIndex = vehIndex[findThisCar] Jan 03 18:12:17 instead of the loop Jan 03 18:12:30 except I don't know 'ford' Jan 03 18:12:38 I know value=1 Jan 03 18:12:42 yes you do Jan 03 18:13:03 wait. Jan 03 18:13:10 does anyone have an idea why the onSuccess handler of the GPS getCurrentLocation service fires twice? Jan 03 18:13:40 I'm using the DB KEY to track which vehicle, etc. Jan 03 18:14:33 joekinley nope but it does Jan 03 18:14:43 haeffb ok Jan 03 18:14:44 which may or may not be different than the array index Jan 03 18:14:46 oh okay so it's not my fault? Jan 03 18:15:05 haeffb then why not do this? Jan 03 18:15:21 when you make the array with the vehicles in it, you know the vehicle ID. Jan 03 18:15:29 and you know the index. Jan 03 18:15:34 so make a SECOND ARRAY Jan 03 18:15:58 vehDBid[vehid]= dbIndex Jan 03 18:16:05 so that you can just LOOK IT UP Jan 03 18:16:13 instead of looping Jan 03 18:16:21 yes yes Jan 03 18:16:26 haeffb: setting the text field attribute to "multiline: true," disables the box... Jan 03 18:17:03 except the other way around... Jan 03 18:17:19 haeffb whatever Jan 03 18:17:21 vehListIndex[dbIndex] = listIndex; Jan 03 18:17:25 got it. Jan 03 18:17:31 but ALWAYS store that kind of thing, don't loop through records to find stuff Jan 03 18:18:10 cool. Jan 03 18:18:14 what else? Jan 03 18:18:26 LoneStar20: what other attribs do you have? Jan 03 18:19:36 hm, was someone in here talking about dialogboxes + messing up scroll yesterday? I seem to recall some conversation but don't remember who was part of it Jan 03 18:19:49 me and jfelectron Jan 03 18:20:14 when I display a dialog on a scene, the scene autoscrolls to the bottom of the scene Jan 03 18:20:17 haeffb: k, seeing the same thing ( I believe, a custom dialog box, after pressing OK, my view is at the wrong position) Jan 03 18:20:22 yep, same Jan 03 18:20:37 haeffb Design again, I would make the scene layout dependent on something Jan 03 18:21:13 haeffb: http://pastebin.com/d55308280 Jan 03 18:21:14 if you have more than one car, you ALWAYS need to choose a car. Jan 03 18:21:46 so, if you assume that MOST of your users will be logging more than one car, then you should move car UP to the top of the group, or possibly to the top of the screen. Jan 03 18:22:18 if it was me, I would dump the groups, move car to the top of the scene, and then just go down from there. Jan 03 18:22:50 this way frequently you don't even need to scroll to enter a record. Jan 03 18:23:42 3) if you went to short-form date times (which is available in the format choices Jan 03 18:24:11 01/03/10 10:19 AM you could put both start and stop time on one line and save an entire line on the screen. Jan 03 18:24:58 Ok, on the other hand, if I assume that most users will use one car, the putting the car selection at the top is a waste of space. Jan 03 18:25:06 nodnod Jan 03 18:25:16 what would be cool would be to make the layout dynamic. Jan 03 18:25:39 if I have multiple cars, put cars at top. Jan 03 18:25:41 or a pref Jan 03 18:25:44 you could do this by cloning the entry screen Jan 03 18:26:05 if there's more than one car, pushscene multentry if there's only one car pushscene onecar Jan 03 18:26:12 and in onecar don't even HAVE the car field. Jan 03 18:26:41 on 3), I'm curently using a tap to let the user edit the date/time. Or tap icon to set to NOW Jan 03 18:27:05 Also, by the way, the add mileage scene needs to popup an alert that says "you haven't added a car yet, go to prefs" if you haven't added a car. Jan 03 18:27:24 but I could put both in s and then bind the tapHandler to span id? Jan 03 18:27:36 haeffb I know, but you could save a line by having both on one line, and the tap would still work..... Jan 03 18:27:43 it adds a Default Vehicle Jan 03 18:27:48 ahhhh Jan 03 18:27:58 but the select vehicle dialog is still there Jan 03 18:28:12 and it has the problem of showing a little thin blank popup which is bad. Jan 03 18:28:25 so ok, default vehicle, but there shouldn't BE a select card field. Jan 03 18:28:29 car Jan 03 18:28:32 bbiab Jan 03 18:29:36 you may have a "non-optimum" version. Sending current. Jan 03 18:31:24 I will be leaving for a bit as well. Will continue discussion later if you're up for it. Thanks for the comments. Jan 03 18:34:51 anyone know how to force a scene in a palm-dark app be styled as palm-light? (Ie, a dialog) Jan 03 19:05:05 When a .ipk file is installed in the emulator, is the contents expanded into some directory? If so, can I edit the files there to speed up evaluating whether certain changes will work? Currently every time I want to test a change I run palm-package, palm-install and palm-launch from a script I wrote. Jan 03 19:05:44 MarkVolkmann: http://almaer.com/blog/palm-run Jan 03 19:06:04 MarkVolkmann: and to answer your question, yes, but (i think) location depends on which version you are running Jan 03 19:06:16 Thanks! Jan 03 19:19:14 anyone know a simple way to add an option to the app title tab? Jan 03 19:23:27 LoneStar20 I'm not sure I understand what you're asking. Jan 03 19:24:18 LoneStar20: you mean the appmenu? Jan 03 19:24:41 rick_sleep: i need to add an option, above "help" "cut" "paste" of app menu Jan 03 19:24:48 ahhh Jan 03 19:25:07 you need to add it dynamically? or just always? Jan 03 19:25:19 LoneStar20: http://developer.palm.com/index.php?option=com_content&view=article&id=1683, it's called the appMenu Jan 03 19:25:39 rick_sleep: like "options" when clicked opens a an option menu Jan 03 19:26:29 LoneStar20 you need to set up an app menu Jan 03 19:26:33 which can have sub menus. Jan 03 19:26:37 go read the app menu docs. Jan 03 19:26:44 ok, i already have a help menu Jan 03 19:26:56 well, help menus can have options Jan 03 19:27:06 and can have submenus and sub sub menus and Jan 03 19:27:58 ok, I will read the docs, but really need do is, add an option, but on tap, it changes a "div" and nothing more Jan 03 19:29:35 it's the handler for the choice in the appmenu Jan 03 19:30:29 rick_sleep ok - gonna mess with the appMenu Jan 03 19:33:29 rick_sleep: one other thing I need the textbox to expand when X chars are entered, have the following: http://pastebin.com/d55308280 Jan 03 19:34:41 you tried setting it to multiline? Jan 03 19:34:46 'cause that works for me. Jan 03 19:35:28 i set the multiline: true and disables the textbox Jan 03 19:35:57 hm, isn't there a css property to go together with the multiline? Jan 03 19:36:41 Hey Folks! Jan 03 19:37:05 howdy Jan 03 19:37:31 seems I was thinking of the header.. donno then Jan 03 19:38:14 Anyone in here start SDL stuff? Jan 03 19:41:57 rick-home: it was the "maxLength: 45," screwing things up Jan 03 19:42:12 disables "maxLength" now multiline workd Jan 03 19:52:36 Is there a way to tell the emulator to reload the current application other that quitting and restarting the application? I found that I can modify application files on the emulator device and I'm looking for an easy way to test my changes. Jan 03 19:54:10 MarkVolkmann: Why do you need to reload the application? Jan 03 19:55:16 In order to make a change to a .html or .js or .css file take effect. Jan 03 20:08:00 Anyone know how to get CES credentials? Jan 03 20:13:06 MarkVolkmann: not aware of any Jan 03 20:13:33 Okay, thanks. Jan 03 20:14:19 I'm using a ListSelector. The little triangle that should appear to the right of the label doesn't appear. Can someone guess why that would happen? Jan 03 20:26:48 MarkVolkmann: ..triangle? Jan 03 20:27:37 nm, see which you mean now Jan 03 20:28:09 MarkVolkmann: does appear in my app, Paste your relevant html to pastebin? Jan 03 20:29:29 hi all! Jan 03 20:30:02 Doc! how was florida? Jan 03 20:30:15 Good for the first few days. Cold as heck the next Jan 03 20:30:51 i'm sorry to hear it got cold Jan 03 20:31:08 Just the last two days. Jan 03 20:31:12 am i crazy? i can't seem to install the sdk/emulator anymore Jan 03 20:32:11 after installation, there are no entries for the emulator in virtualbox Jan 03 20:32:31 any ideas? Jan 03 20:32:36 what version of virtualbox did you install? Jan 03 20:32:51 tried 3.0.10/3.0.12 Jan 03 20:32:59 latest one isnt supported.... Jan 03 20:33:23 let me check again Jan 03 20:34:06 Okay, see http://pastie.org/765223. Look for the ListSelection with an id of dList. Jan 03 20:35:30 Maybe I'm just not using the write CSS class. Jan 03 20:35:35 jen: 3.0.10 Jan 03 20:35:59 when you open virtual box do you have anything in it? Jan 03 20:36:03 nope Jan 03 20:36:11 whats your os Jan 03 20:36:25 i tried with ubuntu/32 and win7/64 Jan 03 20:36:37 strange enough it does the same on both Jan 03 20:36:41 well i'm win7/64 Jan 03 20:36:52 and the lastest sdk? 1.3.5? Jan 03 20:36:55 check if you have two program folders Jan 03 20:36:59 MarkVolkmann: look global-menus.css, search for triangle Jan 03 20:37:13 MarkVolkmann: it only gets applied if it's in a palm-row Jan 03 20:37:27 on one of my machines it installed one in programfolders then other in programfolder(x##) Jan 03 20:39:59 jen: it installed itself into programfiles(x86) Jan 03 20:40:28 palm did too? Jan 03 20:40:47 program files(x86)\palm\sdk Jan 03 20:40:56 Sorry to interupt. Can anyone help getting Quake to run on my Pre? It won't start. Jan 03 20:41:20 jost: try #webos-internals Jan 03 20:41:25 okay Jan 03 20:42:14 weird Jan 03 20:42:29 java is installed but "java -version" doesn't work Jan 03 20:42:34 swisstomcat in virtualBox if you look at media manager do you have anything... Jan 03 20:42:36 ohhhh Jan 03 20:42:57 jen: nothing in media manager either Jan 03 20:43:02 did you install java for 7/64? Jan 03 20:43:22 yeah Jan 03 20:43:33 and it works in the browser Jan 03 20:43:58 idk.... Jan 03 20:44:08 and you had it working before right? Jan 03 20:44:23 well, i have it working on my main ubuntu/64 machine Jan 03 20:44:44 but the older sdk Jan 03 20:44:50 1.3.1 Jan 03 20:45:11 geeze...sorry idk why it wouldn't work.. Jan 03 20:45:33 on two different OSes Jan 03 20:54:34 Anybody ever figure out how to size webview? Jan 03 21:03:52 Is there a way to eliminate the bottom border that is drawn below ListSelection widgets? I've looked through the global stylesheets and don't see where it is specified. I tried style="border: none", but that didn't get rid of it. Jan 03 21:05:51 yeah it's in your html Jan 03 21:06:41 try using 'palm-row last' for your last row's class Jan 03 21:10:40 Ah, I haven't learned about those styles yet. So are you saying that in an HTML table, I should use class="palm-row" on every tr but the last and use class="palm-row-last" on the last tr? Jan 03 21:12:54 yeppers Jan 03 21:16:11 Great! So it looks like the way to get rid of all the bottom borders, assuming that's what I want, is to use class="palm-row-last" on every tr. Jan 03 21:18:07 MarkVolkmann what's your html look like? Jan 03 21:19:02 http://pastebin.com/d242f9fa5 Jan 03 21:19:34 that's an example of mine....but everyone's different Jan 03 21:19:37 Here's my latest HTML. http://pastie.org/765268 Jan 03 21:19:44 the way they set up their structure Jan 03 21:20:27 I see you're not using a table. Jan 03 21:20:49 no but i'm using groups and my buttons are below the textfields Jan 03 21:21:28 I want my buttons to be on the same row as my textfields ... one button and one textfield on each row. Jan 03 21:21:33 http://www.precentral.net/homebrew-apps/debt-free Jan 03 21:22:26 I see. That's pretty different from the layout I'm trying to achieve. Looks good though! Jan 03 21:22:37 yup... Jan 03 21:34:56 Made the list of top apps for 2009. Jan 03 21:35:07 I know congrats! Jan 03 21:39:26 reality9110: Congrats! Jan 03 21:41:46 Thank you thank you Jan 03 21:42:32 ugh.. picked the wrong day to stop smoking.. such a horrible day today Jan 03 21:43:42 Hey. Anyone ever have issues with Google Calendar entries showing up on the wrong days? Jan 03 21:44:04 I set a recurring event via Thunderbird to take place every other day, which shows up on the Pre, but the offset is wrong. It needs to be adjusted by one day. Jan 03 21:45:01 1 day extra or 1 day early Jan 03 21:45:17 one day early Jan 03 21:45:24 i had an issue similar to that, where an event was marked 1 day later than it really was. Jan 03 21:45:30 yeah Jan 03 21:45:46 but on google it was correct Jan 03 21:45:49 ditto Jan 03 21:45:51 how'd you fix it? Jan 03 21:46:05 i dont know, i didnt look into it much heh Jan 03 21:46:10 ah Jan 03 21:46:11 i mean it was only my birthday ;p Jan 03 21:46:26 I've tried re-creating the event. Didn't seem to help. Maybe I'll try again. Jan 03 21:51:33 heh Jan 03 21:51:36 http://www.blogcdn.com/www.engadget.com/media/2009/12/engadget_download_palm.jpg Jan 03 21:51:42 the pixi doesnt have wifi right? Jan 03 21:52:36 images simulated ? Jan 03 21:52:41 dawm_: the verizon pixi is rumored/supposed to have wifi Jan 03 21:52:42 yeah they are Jan 03 21:53:03 gkatsev, i know, but im just poking fun at the faked image :P Jan 03 21:53:26 its funny, i havent seen any verizon use in my app, just sprint and a couple at&t Jan 03 21:53:47 the at&t users are using webos 1.3.8 Jan 03 21:54:05 neat Jan 03 21:55:59 i am still waiting for webos browser to pass acid3 :( Jan 03 22:07:04 bpadalino: Once they update to the latest Webkit it should pass. Jan 03 22:07:20 What exactly do you need that it doesn't pass? Jan 03 22:08:07 oh, nothing ... i am just curious when they will get there :) Jan 03 22:14:38 ok so if we want to call a menu made in a different html file we make it a template? Jan 03 22:25:58 hi Jenp Jan 03 22:26:09 hey Bmyers! Jan 03 22:26:29 hows it going? Jan 03 22:26:52 going good! Jan 03 22:27:07 working on stupid date picker again...but going slowwww Jan 03 22:27:09 get your menu working? Jan 03 22:27:14 how about you? Jan 03 22:27:38 right now i'm reading up on it... Jan 03 22:28:03 What's the best way to change the font size used in a Button widget? I guess I need to override the font size in global-buttons.css for the palm-button class. I'm not sure how to do that though. Jan 03 22:29:00 MarkVolkmann or define your own custom class and call it out in your buttons div Jan 03 22:29:09 Jenp: just put the models in stage assistant Jan 03 22:29:29 i've got my command menus working. Jan 03 22:29:42 i'm trying to make a little pop up for the date picker Jan 03 22:29:52 dialog? Jan 03 22:30:54 idk can i put a date picker in a dialog box? Jan 03 22:33:54 jenp yes Jan 03 22:34:36 haeffb!!! i'm trying to do what you did in taskAdder Jan 03 22:35:31 nah, that's been done. let's do something new and exciting Jan 03 22:35:47 kk Jan 03 22:35:58 you have my attention Jan 03 22:37:25 Is it the case that div tags with x-mojo-element attributes are not actually the widget, but just wrap the actual HTML of the widget? Jan 03 22:37:53 here's a pastie for you: http://www.pastie.org/765368 Jan 03 22:38:16 you just did that so you could say pastie...lol Jan 03 22:38:46 yeah, it kinda goes with the theme of that app... :) Jan 03 22:38:52 lol Jan 03 22:39:07 k looking at it now Jan 03 22:40:39 forgot the call back function http://www.pastie.org/765370 Jan 03 22:41:54 so, EntryAssistant.editDate calls the dialog. You change the date in the dialog. The dialog calls EntryAssistant.updateDate when you exit the dialog. Jan 03 22:42:34 mine is a little complicated, because I could be editing one of two dates, so I also send the 'target' along the way, which is the id of the div that I'm editing. Jan 03 22:43:21 but i make the entryAssistant html a separate file from my main one right/ Jan 03 22:45:02 so template: 'entry/editdate' is calling the html in entry/editdate right Jan 03 22:46:03 can one mount/view or otherwise access /media/internal on the emu? XP platform.. Jan 03 22:47:42 right Jan 03 22:48:13 editdate.html in app/views/entry Jan 03 22:48:26 yupyup Jan 03 23:01:06 JenP, what I like about that is the date picker & time picker can work with the same date object. Jan 03 23:10:40 so haeffb in my main js i don't need to set up the date widget again right? i'm just calling it from there. Jan 03 23:12:39 you do the datepicker setupWidget in the dialog.js Jan 03 23:12:53 have you used a custom dialog before? Jan 03 23:13:06 NO Jan 03 23:13:20 have any of you managed to install the latest SDK on Ubuntu x64 Jan 03 23:13:23 ??? Jan 03 23:13:27 Ok, one quirk is that the dialog doesn't have it's own controller. Jan 03 23:13:55 that's why you have to pass the sceneAssistant's contoller to the dialog Jan 03 23:14:05 hi! how can I get root in my pre device to install preware? Jan 03 23:14:17 what is the port? telnet or ssh? Jan 03 23:14:28 (I'm working in the emulator ;) Jan 03 23:14:47 alex you don't need to root your pre just use webos-quickinstall Jan 03 23:15:08 you need to enable dev mode, though, right? Jan 03 23:15:16 yup Jan 03 23:15:22 JenP: can I use in the emulator? Jan 03 23:15:26 What does the $L function do? Does it escape text for safe inclusion into HTML? Jan 03 23:15:28 alex_: And for the emulator, ssh, localhost, port 5522 Jan 03 23:15:33 haeffb: I can't use developer mode in emulator Jan 03 23:15:39 MarkVolkmann: For language localization Jan 03 23:15:45 $L is for localization (translation to other languages) Jan 03 23:16:03 reality___: I got it! thanks ;) Jan 03 23:16:10 Where do the translation strings go? Jan 03 23:16:55 MarkVolkmann: http://developer.palm.com/index.php?option=com_content&view=article&id=1679 Jan 03 23:17:13 Thanks! Jan 03 23:18:21 JenP: also notice that "widget" is passed as a param to the dialog's setup() function. Jan 03 23:18:51 where "widget" is a reference to the dialog itself. So you need to save that to a var (this.widget) to use to close the dialog later Jan 03 23:20:53 bb in an hour...gotta go work out Jan 03 23:23:09 anybody here has tested quake on pre? is it hard to install it? Jan 03 23:24:01 it installed for me just fine from preware Jan 03 23:25:12 bpadalino: I'm testing in the emulator, so, perhaps is a versions problem, I can't find quake on my preware ;) Jan 03 23:25:28 and you can get doom worked easy too? Jan 03 23:25:31 possibly .. not sure about emulator stuff Jan 03 23:33:36 can I update the SDK emulator from 1.3.1 to 1.3.5? Jan 03 23:35:59 Upgrade by downloading the new SDK. Jan 03 23:38:23 ok rbredow, I'm doing it, but I refer to upgrade the actual sdk, without reinstalling it Jan 03 23:38:49 I don't think that's recommended. I think you need the new SDK to get the new features. Jan 03 23:40:36 ok rbredow thanks ;) Jan 03 23:44:55 Cool. this is my first time running wIRC. Jan 04 00:47:59 What is the name of the global style class that determines the font size of the text in TextFields when they do not have focus? Jan 04 00:50:22 It looks like "title" and "truncating-text" are what I needed. Jan 04 01:08:11 hi all! Jan 04 01:16:00 hi JenP Jan 04 01:16:06 rick!!! Jan 04 01:16:08 hiya! Jan 04 01:16:15 i want candy!!!! Jan 04 01:16:19 I have to quit answering questions so that I can go work. Jan 04 01:16:36 JenP -- go have another glass of water. Jan 04 01:16:36 lol time to turn off the irc? Jan 04 01:16:45 pout....FINE....! Jan 04 01:16:47 Pretend you're quiting cigarttes. Jan 04 01:17:07 i'll go eat a bananna.... Jan 04 01:17:16 it's really hard for me to go program when there are people asking fun questions. Jan 04 01:17:31 i can totally understand that! Jan 04 01:17:49 is there anything i can do to help? Jan 04 01:17:54 need something proofed? Jan 04 01:18:01 come sit with me and help me finish banners? Jan 04 01:18:13 lol...put banners aside Jan 04 01:18:25 focus on Palm docu and what you need for CES Jan 04 01:21:48 palm docs in good shape. Jan 04 01:21:54 need to finish banners. Jan 04 01:22:10 need someone to sit with me. Programming boring just now. Answering questions fun. Jan 04 01:22:19 Afraid I'll mis the latest too Jan 04 01:22:27 the finished doom after I went to bed Jan 04 01:22:34 they finished quake after I went to bed. Jan 04 01:22:40 Ghod knows what they'll do tonight. Jan 04 01:22:49 lol Jan 04 01:22:53 we need a pixi owner Jan 04 01:22:59 yes we do Jan 04 01:23:29 Palm left the "interesting" sdk kernal models out of the pixi 135. we need a pixi owner to test something Jan 04 01:23:54 ohhh..hmm haeffb wife has a pixie Jan 04 01:24:06 geist isn't talking. Lemketron isn't talking. Chuq hasn't been around. Dalmaer hasn't been around. Jan 04 01:24:33 haeffb can you borrow your wife's pixi????? Jan 04 01:24:36 they're all sleeping from staying up programming all night Jan 04 01:24:42 oh Jan 04 01:24:51 idk...my guess Jan 04 01:25:01 or working on super secret squirrel stuff Jan 04 01:25:23 super secret squirrel stuff Jan 04 01:25:36 you need to sleep tonight Jan 04 01:25:41 tommorow is not going to be fun. Jan 04 01:25:50 as soon as haeffb comes on line i'll make sure to tell him to steal his wifes pixie Jan 04 01:25:57 i know. tomorrows gonna suck too Jan 04 01:26:03 what's so bad about tomorrow? Jan 04 01:26:22 and to go over to @webos-internals and tell zsoc that he has a pixi to test on. Jan 04 01:26:33 i have less than 72 hrs to do something that usually takes at least a week Jan 04 01:26:38 i will do that rick Jan 04 01:27:01 JenP by 10PM take two tylonol pm and go to bed. Jan 04 01:27:28 planning on going into bed at 8 pm and reading a really borring book Jan 04 01:27:44 works. Jan 04 01:27:54 yup Jan 04 01:28:10 have any camomile tea? Jan 04 01:28:27 yes...Josh promised to make me some at 8 too Jan 04 01:28:39 oh good. Jan 04 01:28:48 and we just went on a 4 mile trek so i should be all tuckered out Jan 04 01:28:50 you can have a tsp of honey in it. :-) Jan 04 01:29:15 noo...cause i'll end up grabbing the bottle and locking myself in the bathroom with it...LOL Jan 04 01:29:46 josh is fixing it for you Jan 04 01:30:01 :-) Jan 04 01:30:02 i'll wrestly him to the ground... Jan 04 01:30:18 back Jan 04 01:30:27 haeffb!! Jan 04 01:30:34 go steal your wifes pixie! Jan 04 01:30:35 skip the sleep, work all night, earn a few hours and double the honey + caffine? Jan 04 01:30:45 ok Jan 04 01:30:49 then what Jan 04 01:30:54 jbjoerk 5 hrs sleep past 3 days Jan 04 01:31:05 then go to webos-internals and find zsoc Jan 04 01:31:07 jbjoerk that starts tommorow night Jan 04 01:31:12 tonigh she can't start yet. Jan 04 01:31:18 they have something to test.. Jan 04 01:31:31 super secret squirrel stuff! Jan 04 01:31:40 haeffb we need to test a fix for doom and quake on the pixi Jan 04 01:31:45 but none of us HAVE a pixi Jan 04 01:32:07 yup jbjoerk ricks right...i'm waiting on customer to finish Jan 04 01:32:16 i want a pixie... Jan 04 01:32:28 i just trying to figure out a way to justify it... Jan 04 01:33:21 they're really cool. That should be enough justification right there. Jan 04 01:34:16 josh 'almost' had me convinced...he said we needed another phone to tweet off of...LOL Jan 04 01:35:07 JenP: ack. oh well, goodluck :) Jan 04 01:35:30 if you don't buy a pixi, you can afford a cat. Jan 04 01:35:30 thanks! i'll be good once i get sleep Jan 04 01:36:21 lol so true Jan 04 01:36:59 anyone else ever tried caching an element from a dynamic list... ? I'm starting to think it's a insanely silly idea.. anyone wanna confirm? Jan 04 01:37:50 cool! Jan 04 01:37:56 cool Jan 04 01:38:05 k Jan 04 01:38:07 it's an insanely silly idea Jan 04 01:40:59 rick-home: okay, with that out of the way, good any alternatives? Jan 04 01:41:16 I could update the model and invalidate, but that would cause it to re-render all items every time I believe Jan 04 01:41:26 s/good/got/ Jan 04 01:41:38 I've come to the conclusion that lists were not ment to be dynamic Jan 04 01:43:05 I'm just about to the point of using mojo.view.render and maky my own list widget Jan 04 01:43:26 which uses explicit divs for each list element so that I can visible and invisible them Jan 04 01:43:35 and insert a new div and render it. Jan 04 01:43:38 dynamically Jan 04 01:43:46 because PALMS code just doesn't do that Jan 04 01:43:52 and screws up scrolling completely Jan 04 01:44:01 when you open and close drawers. Jan 04 01:44:18 I've decided that palm's list was CONCIEVED as a static list Jan 04 01:44:19 I don't have much problem with lists Jan 04 01:44:47 reality___ do you add and remove elements to and from the middle of lists while the rest of the list is up and rendered? Jan 04 01:45:36 The easy way to do that, which is kind of cheating, would be to swapScene to the same scene with the new list items. Jan 04 01:46:00 no transition, of course. Jan 04 01:47:15 But, if you look at BroadCAST Radio, you'll see that yes, the lists do get dynamically updated, items in the middle, end, beginning, etc, when you hit the More button at the bottom of the list Jan 04 01:47:22 Without scene swapping. Jan 04 01:47:53 reality9110 I'm going to have to spend time reading your code then. Because when I do that the entire list re-renders. and locks up the phone for a time. Jan 04 01:48:32 I'll send you the code in an email. It's obfuscated (for...reasons...) in the program. Jan 04 01:48:54 reality9110 that would be nice, because I have been beating my head against that for a while. Jan 04 01:49:06 I'll write up a webos101 article for it once I understand it. Jan 04 01:49:58 It's all about mojo.noticeUpdatedItems Jan 04 02:06:38 Hello all. Jan 04 02:06:57 Anyone want to answer a development question? :) Jan 04 02:08:52 no Jan 04 02:08:56 go away Jan 04 02:09:00 :P just kidding Jan 04 02:09:08 * prototypic goes back to idle Jan 04 02:09:17 haha, thx Jan 04 02:09:30 hello all Jan 04 02:09:44 this is one chatty bunch of devs, they can help ya if you just ask Jan 04 02:09:58 so, i'm trying to include a widget (panel with scroller/html) inside a list row Jan 04 02:10:14 fyi, asking to ask a question is against irc protocol Jan 04 02:11:10 the list is a list of articles...when the user taps on one of the articles, i want it to expand the size / height of the selected row and display an expanded summary of the article... Jan 04 02:11:40 and then when they tap on another article in the list, it should decrease the size / height of the first row, etc Jan 04 02:13:00 (eventually, i will have a button in the row that they could click on to view the expanded summary but i'm just trying to figure out how to make the whole thing work....tried many different things without success - basically, not able to figure out how to get get id of the selected row in order to change height) Jan 04 02:13:08 prototypic: can I ask a question about irc protocol? Jan 04 02:14:26 CageNew: event.index Jan 04 02:14:29 * atlanta would help CageNew but its alot to read Jan 04 02:14:29 lol Jan 04 02:14:41 * haeffb is cryptic tonight Jan 04 02:15:39 if you bind an eventlistener to the Mojo.Event.listTap event, then look at event.index to see which row was tapped Jan 04 02:15:44 i got event.index and the data model associated with it (so i can get the summary from model)...but how do i get the DOM object for the row so i can setStyle? Jan 04 02:16:05 gaa. Jan 04 02:16:14 you need rick-home Jan 04 02:16:26 haeffb: I was joking but go ahead :P Jan 04 02:16:39 prototypic: I was joking too. Jan 04 02:17:10 wow, when I type your name it's exactly as long as when you type my name. Jan 04 02:17:11 I heart irc, but this is one of the most laid back dev chan I'v ever been in before Jan 04 02:17:50 have to say it's refreshing Jan 04 02:17:58 how do i pass arguments Jan 04 02:18:03 through scenes Jan 04 02:18:08 its killing me Jan 04 02:18:34 atlanta: You kidding me? Jan 04 02:18:42 pass params in pushScene, popScene, etc Jan 04 02:18:44 atlanta: pushScene("name",arg1,arg2,arg3,arg4); Jan 04 02:18:52 ("name","foo") Jan 04 02:18:54 doh Jan 04 02:18:56 Yo Jan 04 02:19:00 Wassup my homies? Jan 04 02:19:17 jbjoerk: that didnt work but ill try again Jan 04 02:19:31 so no ideas on how to get the DOM object representing the row in a list? :) Jan 04 02:19:35 atlanta: make sure your scene can accept the args as well Jan 04 02:19:41 CageNew: use getNodeByIndex Jan 04 02:19:42 atlanta...don't you have to use an array? Jan 04 02:19:47 only accepts one arg? Jan 04 02:19:53 JenP: i think an object Jan 04 02:19:56 .mojo.getNodeByIndex Jan 04 02:19:59 CageNew: What are you trying to do exactly? Jan 04 02:20:09 prototypic: yea in the constructor Jan 04 02:20:38 JenP: nope, takes as many as you want Jan 04 02:20:59 sometimes I wish these apps would run in forefox so I could use firebug Jan 04 02:21:02 reality9110: please see long description above (i could paste again but people may get mad at me .)) Jan 04 02:21:09 jbjoerk: but they have to be in a object right Jan 04 02:21:18 *i Jan 04 02:21:20 atlanta: no Jan 04 02:21:30 Mojo.Controller.stageController.swapScene({name: 'twitter', disableSceneScroller: true}, message: "What if i did"); Jan 04 02:21:32 ? Jan 04 02:21:53 ah Jan 04 02:23:09 never mind Jan 04 02:23:10 got it Jan 04 02:23:17 u have to pass everything as an object Jan 04 02:23:23 Mojo.Controller.stageController.swapScene({name: 'twitter', disableSceneScroller: true}, {message: "What if i did"}); Jan 04 02:25:30 wow, thx for the getNodeByIndex - think on my way to solving the problem ;) i should have come here 3 hours ago .) Jan 04 02:26:17 atlanta: or just ..swapScene({..},"Whoo","Hoo","Moot"); to pass three messages Jan 04 02:27:59 jbjoerk: what does getNodeByIndex do? Aside from the obvious of getting a node by index? Jan 04 02:28:05 is that a method of List? Jan 04 02:28:53 haeffb: yep. Returns the toplevel div in your item template for specified idx Jan 04 02:29:13 someday I gotta learn DOM. Jan 04 02:29:36 grrh...so i got the list row using getnodebyindex - any ideas how i could use that to get a panel/scroller/html region a few levels down in that node... Jan 04 02:30:06 one you have the node you can iterate the children Jan 04 02:30:53 hmm....but no way to directly access the panel i'm looking for? since i assume i won't know the id since mojo created it? Jan 04 02:31:47 thanks jbjoerk that worked also Jan 04 02:32:30 CageNew: well, once you have the object, you can do things like obj.down(). That is, add a classname to your panel, then do obj.down(".yourclassname") Jan 04 02:32:30 hmm, i guess i would iterate the the children and set all of their sizes... Jan 04 02:33:29 CageNew: http://api.prototypejs.org/dom/element.html might help Jan 04 02:35:00 beautiful :) thx a bunch Jan 04 02:45:08 so quiet...does no one else have questions? :) Jan 04 02:51:54 Anyone notice that JSON.parse() behaves differently in 1.3.5? Jan 04 02:53:12 I'm pretty sure this used to work: JSON.parse('{"1":"x", "2":"y"}') == {1:'x', 2:'y'} Jan 04 02:53:19 now it parses to {} Jan 04 02:53:35 and I have a big old bug in my app Jan 04 02:53:46 * kridx2 is filled with hate Jan 04 02:59:25 kridx2 what are you trying to do? Jan 04 02:59:41 I'm parsing a json backup format Jan 04 02:59:51 I haven't noticed any change. Jan 04 02:59:54 b4 the 1.3.5 upgrade, it worked fine **** ENDING LOGGING AT Mon Jan 04 02:59:57 2010