**** BEGIN LOGGING AT Sat Apr 03 02:59:57 2010 Apr 03 03:03:58 ok, that's really smart Apr 03 03:04:09 thx haeffb Apr 03 03:04:18 took me a minute to process Apr 03 03:05:01 siimple and smart Apr 03 03:06:46 and now back to reading about 'this and bind' - my nemesis Apr 03 03:07:06 yeah, that takes a while... :) Apr 03 03:07:16 slays me Apr 03 03:07:39 i think i have it down, then , nope.... still aint got it Apr 03 03:09:07 what really helped to solidify that for me was when I needed to create a custom dialog. Once I figured that out, I wrote this: http://www.webos101.com/Dialogs Apr 03 03:09:34 take a look thru that & see if it helps you to understand how callback functions work. Apr 03 03:10:20 & you can download Myles(beta) from Preware to see the dialog in action. Apr 03 03:14:41 does wrapping "
" make the buttons half width? Apr 03 03:14:53 (from the dialog wiki page) Apr 03 03:14:57 mmm 800MHz patch Apr 03 03:15:57 nope Apr 03 03:16:44 they're still full width Apr 03 03:16:48 what does it do? Apr 03 03:17:18 I dunno. Apr 03 03:17:19 :) Apr 03 03:17:57 heh Apr 03 03:18:00 okay then Apr 03 03:18:16 wow. I just realized the SDK refcode now includes all the default Palm apps. Apr 03 03:18:34 no more hunting thru the emu or device... ! Apr 03 03:18:36 iy does? Apr 03 03:19:02 it Apr 03 03:19:07 yep! Apr 03 03:19:23 well at least it's not too late coming.. Apr 03 03:19:28 .palm-dialog-buttons { Apr 03 03:19:28 padding-left: 0; Apr 03 03:19:28 padding-right: 0; Apr 03 03:19:28 padding-bottom: 0; Apr 03 03:19:28 } Apr 03 03:19:43 * haeffb going mobile. Apr 03 03:19:46 lol Apr 03 03:19:58 does not do much. Apr 03 03:20:05 hi Jenp Apr 03 03:20:10 hi guys Apr 03 03:20:10 u staying or going? Apr 03 03:20:22 lol...staying Apr 03 03:22:33 well hello then Apr 03 03:22:54 hi bill Apr 03 03:22:57 what's new Apr 03 03:23:06 spring Apr 03 03:23:31 rebirth Apr 03 03:23:38 life again Apr 03 03:23:42 its a cycle Apr 03 03:25:02 really?...wow that's deep Apr 03 03:25:28 a little sunlight goes a long way.. Apr 03 03:26:12 smiles... Apr 03 03:26:55 finally a nice day here in NY Apr 03 03:27:04 really? temp? Apr 03 03:28:22 70 something Apr 03 03:28:43 nice Apr 03 03:30:44 haeffb_pre said the palm apps are in the sdk now? Apr 03 03:31:09 refcode Apr 03 03:37:25 yeah Apr 03 03:38:47 evening all Apr 03 03:39:28 hi Monroe Apr 03 03:41:48 anyone around Apr 03 03:45:17 not really Apr 03 03:45:37 hehe seems that way Apr 03 03:46:52 * JenP wonders if she doesn't count?....hmmm Apr 03 03:57:38 Writing my first background app ... Trying to figure out what I need to do to allow it to launch on reboot Apr 03 04:00:16 sorry can't help you on that one but i thought haeffb_pre was talking about it Apr 03 04:01:09 hmm Apr 03 04:01:17 haeffb ... where you at? Apr 03 04:01:43 The GeoStrings app does it, so I know it can be done Apr 03 04:02:04 do you have the geostrings app? Apr 03 04:02:16 I've got the trial version Apr 03 04:02:40 does it turn on after reboot? Apr 03 04:02:51 yeah Apr 03 04:03:10 theres your answer. ssh in to your pre and tar it up Apr 03 04:03:36 hmm ... isn't the folder where apps are installed encrypted? Apr 03 04:04:09 its called crypt something.. Apr 03 04:04:21 cryptof Apr 03 04:04:49 Monroe: pretty sure the folder where apps are installed is not encrypted Apr 03 04:05:00 when in usb drive mode they are Apr 03 04:05:11 oh .. maybe that's what I'm thinking of Apr 03 04:06:44 got into the file system once, and could see all programs installed Apr 03 04:07:35 you ssh in (not in usb mode) Apr 03 04:07:41 tar it up Apr 03 04:07:45 copy to media drive Apr 03 04:07:51 go into usb mode Apr 03 04:07:52 yeah, I've done it before. I just haven't tried in a while. I thought I read that when they made the update moving apps to the media partition, that they encrypted them, but perhaps it's just when in USB as tibfib said Apr 03 04:07:54 copy it out Apr 03 04:08:34 hmm .. Can I connect to the Pre with WinSCP? I've used it for the emulator, but not a device Apr 03 04:10:38 err .. what hostname and port do I connect to? Apr 03 04:16:03 novacom Apr 03 04:22:22 err ... guidance for connecting with novacom? I've only ever connected to the emu, not an actual device Apr 03 04:28:03 monroe you may want to go into webos-internals Apr 03 04:28:13 those guys will guide you through it Apr 03 04:28:14 I'm in using Novacom Apr 03 04:38:09 soooo Apr 03 04:38:39 aparantly my desktop is retarted Apr 03 04:39:00 heh, goodnight all Apr 03 04:39:11 night... to late Apr 03 04:39:19 laters Apr 03 05:38:08 test Apr 03 06:16:01 ladies? Apr 03 06:32:46 hi all Apr 03 06:41:49 hola Apr 03 06:42:43 hey ron Apr 03 06:42:48 hhi Apr 03 06:43:10 gonna knock the dust off my webos project Apr 03 06:43:15 * JenP waves Apr 03 06:43:43 wish like fu** palm could get an actual pdk/js sample so I could wrap up my pdk mixer Apr 03 06:44:04 infact the sky is the limit with what you could do with that Apr 03 06:44:23 they say no mic, but I am pretty sure I could get at it rather easily with pdk Apr 03 07:25:05 what is the framework that handles the getting when you do Apr 03 07:25:10 this.controller.get( Apr 03 07:25:22 eclipse doesnt actually recognize that in intellisense Apr 03 07:56:50 gah Apr 03 07:56:53 somone has to be alive Apr 03 08:18:24 anyone know if 1.4.1 has been released on devices? Apr 03 08:18:40 webos 1.4.1 Apr 03 08:20:54 yo Apr 03 08:20:58 I think it has Apr 03 08:21:03 or maybe beta Apr 03 08:22:28 cuss the 1.4.1 SDK has been released Apr 03 08:26:42 then I am sure its on devices Apr 03 08:43:17 wtf Apr 03 08:43:28 can I not register an even to a regular ol div? Apr 03 08:46:22 wht u mean? Apr 03 08:47:47 add a div in html Apr 03 08:47:50 plop an image in it Apr 03 08:47:58 and want to have that div respond to button clicks Apr 03 08:48:03 but it doesnt seem to want to do that for m Apr 03 08:50:55 yeah u should be able to do it like this: this.controller.get('your-div).innerHTML = '
'; Apr 03 08:51:06 thats the easy part Apr 03 08:51:17 Mojo.event.listen Apr 03 08:53:12 oh you want it to listen for the tap then push the image? Apr 03 08:53:41 uno Apr 03 08:53:45 image doesnt matter Apr 03 08:53:50 or can I stick an image in a button Apr 03 08:53:56 I know there is a bg image Apr 03 08:54:01 which isnt EXACLTY what I am looking for Apr 03 08:54:11 I just want to take a div thats not setupWidget Apr 03 08:54:15 and make it respond ot taps Apr 03 08:54:16 thats it Apr 03 08:55:00 k, let me think Apr 03 08:55:24 so on a tap "modify" a div? right? Apr 03 08:55:39 tap a div and have it fire an event Apr 03 08:55:44 all the dom shit I know inside and out Apr 03 08:55:46 non-issue Apr 03 08:56:48 ron, I am doing something similar to that. Apr 03 08:57:05 oh ok so they tap "
tap here
and call X mojo event right? Apr 03 08:57:12 have the code u need Apr 03 08:57:49 I think you just need to listen for Mojo.Event.tap Apr 03 08:58:01 yeah Apr 03 08:58:22 its bitching about .bind() Apr 03 08:58:53 That sounds like a separate issue. What's it complaining about? Apr 03 08:58:56 Mojo.Event.listen(this.controller.get(scNum), Mojo.Event.tap, this.send.bind(this)); Apr 03 08:59:41 var scNum = 'your-div'; Apr 03 09:00:02 doesnt like bind liek that Apr 03 09:00:06 thats exactly what I got Apr 03 09:00:10 says cannot call bind on null Apr 03 09:00:18 even though my handler does exist Apr 03 09:01:12 your div id exsists in the html file right? Apr 03 09:01:44 IIIIDIOT Apr 03 09:01:55 missing semi-colon after prototype funcion Apr 03 09:01:58 function Apr 03 09:02:00
tap here
Apr 03 09:02:26 did the semi-colon fix it? Apr 03 09:02:37 false alrm Apr 03 09:02:40 same prob Apr 03 09:03:35 What does your code look like? Apr 03 09:04:08 do you have the above in "YoAssistant.prototype.setup = function(event) {}" Apr 03 09:04:12 this.controller btw is saying its null Apr 03 09:04:19 something else gotta be fucked up Apr 03 09:04:36 you are missing the div id in html Apr 03 09:04:40 double check Apr 03 09:05:15 it is null, cuss it can't find the ID Apr 03 09:05:18 the .get is failing because this.controller is null Apr 03 09:05:45 Your 'this' is out of scope somehow. Apr 03 09:06:06 yeah so I take that out Apr 03 09:06:18 Mojo.Event.listen("smileyguy", Mojo.Event.tap, this.handleTap.bind(this)); Apr 03 09:06:24 CharacterSelectionAssistant.prototype.handleTap = function(event){ Apr 03 09:06:44 bind shits out saying handle isnt there Apr 03 09:06:54 does $$( take away parent context? Apr 03 09:06:58 Where are you making that listen call from? Apr 03 09:07:03 that is happening in setup Apr 03 09:07:05 but from within Apr 03 09:07:13 $$(".character").each(function(item){ Apr 03 09:07:21 Ah! Apr 03 09:07:32 ron_frown: weird, cuss the exact code i pasted above works in my app... Apr 03 09:07:41 I know Apr 03 09:07:47 I think it may contextual problem Apr 03 09:07:49 scope Apr 03 09:07:56 You have to bind that each Apr 03 09:08:03 wha Apr 03 09:08:14 I dont know what you mean by bind that each Apr 03 09:08:15 i prefer mints Apr 03 09:08:25 each works just fine... it prints the div id in logging Apr 03 09:08:31 just cant listen for an event on it Apr 03 09:08:33 function(item){/*whatever*/}.bind(this) Apr 03 09:08:58 Or else the context of 'this' is not what you think it is. Apr 03 09:09:40 uhh Apr 03 09:09:41 didnt fix it Apr 03 09:10:11 I'm certain that's it, or something related….Can you paste the whole line? Apr 03 09:10:36 conceptually like the idea of palms webos but its about hte 20th time I've had webos shit all over me when trying to do the most trivial of things Apr 03 09:10:59 iv'e put the .bind(this) right after the braces, and after the braces AND paren Apr 03 09:11:01 same thing Apr 03 09:12:29 I got it going Apr 03 09:12:38 What did you have to do? Apr 03 09:13:03 well it was a combo of getting the control Apr 03 09:13:08 so I just plopped literal string in there Apr 03 09:13:14 and it worked Apr 03 09:13:29 cool Apr 03 09:13:30 cool Apr 03 09:14:52 uhh Apr 03 09:14:54 well kinda and no Apr 03 09:14:56 not Apr 03 09:16:17 what do you have in the div? to make it tapable an image? Apr 03 09:16:47 doesnt matter Apr 03 09:16:49 it works Apr 03 09:16:59 right on Apr 03 09:17:03 but passing this or the specific item doesnt actually pass event.target.id Apr 03 09:17:07 which is utter shit Apr 03 09:17:24 what does it pass? Apr 03 09:17:45 I get event.target.id Apr 03 09:18:48 empty string from event.target.id Apr 03 09:19:11 how do you use inspector Apr 03 09:19:19 so I can actually test some of this shit Apr 03 09:19:33 ron_frown: are you using an image in the div? Apr 03 09:19:38 yes Apr 03 09:19:54 Does the image have an id? Apr 03 09:19:56 can you paste the "div" code Apr 03 09:20:04 sure Apr 03 09:20:11 but the better question is, if I am binding this to event Apr 03 09:20:24 is it going to pass a tap ona image that I am not trying to capture Apr 03 09:21:15 some time ago had a confict between the image and the div id Apr 03 09:21:39 why cant they build a real fucking debugger integration here Apr 03 09:22:20 if u have
it will conflict Apr 03 09:23:38 fix is:
Apr 03 09:24:36 wow Apr 03 09:24:47 that is quite possibly the worst implementation I've ever seen Apr 03 09:24:58 tap doesnt actually capture only wat you tell it you want to monitor taps on Apr 03 09:25:11 lets pick random item from within the div to have return with target Apr 03 09:25:12 yay! Apr 03 09:27:08 this app should theoretically be the easiest platform and consistently harder Apr 03 09:29:53 ron_frown: some apps, for as simple as they may be - take tricks to work properly, and the only way to find the tricks is alot of trial and error Apr 03 09:30:50 have an app, that 90% is all div taps Apr 03 09:31:34 have no buttons... only images listening for taps Apr 03 09:33:25 LOTS of trial and error Apr 03 09:33:34 I whipped up a featured rss reader in android Apr 03 09:33:40 REAL easy Apr 03 09:35:08 my main problem, the debugger only works on syntax errors, logging does shit for me Apr 03 09:35:29 built my god damn pdk mixer because honestly at this point its easier to write and debug c++ than work with html+js+whatever Apr 03 09:35:41 and then 0 documentation on how to actually take that pdk code and build something wiht it Apr 03 09:36:48 lol Apr 03 09:36:59 have not messed with PDK yet Apr 03 09:37:17 I've never really written c++ before that, and I managed to slap it together in one night Apr 03 09:37:27 but then no examples or documentation on the js/pdk bridge Apr 03 09:37:29 I finally got that working, btw Apr 03 09:37:38 the js/pdk bridge? Apr 03 09:37:41 fix for lack of documentation = webOS irc Apr 03 09:37:46 Yep. Just today. Apr 03 09:37:57 well how much of a pain in the ass was that Apr 03 09:38:06 I may have been the first to figure it out. Apr 03 09:38:09 you have a simple poc you can show me by chance? Apr 03 09:38:18 JasonLP: u developing on windows? Apr 03 09:38:25 Mac Apr 03 09:38:29 k Apr 03 09:38:32 But I do a lot of windows dev too. Apr 03 09:38:37 JasonLP: using xcode or eclipse cdt? Apr 03 09:38:44 perfer mac, but using windows 7... Apr 03 09:38:45 cdt was like 1mil times better than xcode for me =) Apr 03 09:39:21 Been using both. Apr 03 09:39:36 Actually my favorite dev environment is Visual Studio. Apr 03 09:40:25 well thats what I write code in all day long Apr 03 09:40:28 but I also dev on a mac Apr 03 09:40:44 I dont feel like running osx->win7->vs to develop when I can develop more natively Apr 03 09:40:44 Not familiar with cdt Apr 03 09:40:54 cdt is just eclipse Apr 03 09:40:59 oh Apr 03 09:41:00 but has much better debugger integration Apr 03 09:41:01 i use eclipse for webos only, and komodo for all other web dev Apr 03 09:41:12 do not do any windows dev Apr 03 09:41:13 warns me about memory leaks etc in c++ Apr 03 09:41:39 jason do you think you could give me pointers? Apr 03 09:42:14 I actually just posted today on the forum about some things….let me find the links. Apr 03 09:42:17 first of all, I built my mixer as a class in c++... is there a way I can instantiate the mixer as an instance and then have my calls tap into that class? Apr 03 09:42:33 Yes. Apr 03 09:42:43 I am inclined to say no as it seemed to want a static class to tie the PDK event into Apr 03 09:42:54 Today I was testing passing pointers back and forth as a handle. Apr 03 09:43:08 I tried that Apr 03 09:43:16 couldnt seem to get that to work =( Apr 03 09:43:28 I take a pointer, cast to an unsigned int, make a string out of it, and pass it back to JS. I pass it back into the PDK plugin, back to a pointer, and it works. Apr 03 09:43:31 as you can see I am like at my whits end with god damn webos Apr 03 09:43:44 bah Apr 03 09:43:47 whip up a poc Apr 03 09:43:58 quick and dirty even Apr 03 09:44:31 do they use Postal code or Zip code in Canada? Apr 03 09:45:03 Yes. They're called something else and the format is different. Apr 03 09:46:27 * ron_frown sighs Apr 03 09:46:41 hurray for setStyle not working Apr 03 09:51:57 jason Apr 03 09:52:07 yes? Apr 03 09:52:14 urls for those pointers Apr 03 09:52:20 Oooh, right…one sec Apr 03 09:52:33 eg, the pdk docs show converting the appinfo.json over to stuff that looks pdk specific Apr 03 09:52:45 http://developer.palm.com/distribution/viewtopic.php?f=70&t=6260 Apr 03 09:52:46 do I just plop compiled output from my pdk shit in my apps root Apr 03 09:52:47 ? Apr 03 09:53:01 http://developer.palm.com/distribution/viewtopic.php?f=82&t=6133 Apr 03 09:53:33 ok, so you have to copy the binary that you build into your app's root directory. Apr 03 09:53:59 Then you have to create a package.properties file to give it execute permissions. Apr 03 09:53:59 ok Apr 03 09:54:03 ok Apr 03 09:54:19 Iguess i shouldnt be bitching Apr 03 09:54:19 And you have to use the pdk-package command. Apr 03 09:54:31 the palm-package doesn't work correctly with it Apr 03 09:54:34 I stil have the other problem Apr 03 09:54:57 which? Apr 03 09:55:04 not being able to tie the js entrypoints to anything but a static method Apr 03 09:55:51 Well yes…they are static methods, but I am passing a pointer around, so all that method has to do is to call a method on the pointer. Apr 03 09:56:15 so in plugin initialize you can create instance of class Apr 03 09:56:24 and create a pointer to say playsound how Apr 03 09:56:34 just *playSound? Apr 03 09:57:25 PlaySound* pMySound = new PlaySound(); Apr 03 09:57:47 playsound is a method on the class Apr 03 09:57:58 oh, so what's the class name? Apr 03 09:58:03 SoundMixer Apr 03 09:58:19 Do you only have one? Apr 03 09:58:23 Or can you have a bunch? Apr 03 09:58:23 mixer? Apr 03 09:58:25 Yes. Apr 03 09:58:26 just one Apr 03 09:58:41 So you can just make a global object and not even worry about it. Apr 03 09:58:45 SoundMixer mixer; Apr 03 09:58:46 playsound accounts for all the mixing and channel limits etc Apr 03 09:58:50 Then in your function Apr 03 09:59:13 PDL_bool playSound(PDL_MojoParameters* params) Apr 03 09:59:42 global = static inside the plugin? Apr 03 09:59:43 { /*get params, and then…*/ mixer.playSound(whatever); } Apr 03 09:59:48 yes Apr 03 09:59:48 yep Apr 03 09:59:50 ok Apr 03 10:00:05 I'll fiddle around with that a bit more if I can ever get the damn images displaying agian Apr 03 10:00:06 ahah Apr 03 10:00:11 Then you don't have to pass anything to and from the javascript Apr 03 10:00:44 In my case, I have a lot of objects I'm creating, not a singleton, so I have to pass that back and forth. Apr 03 10:01:24 sorry Apr 03 10:01:31 I am very experienced software guy Apr 03 10:01:37 but purposely avoided c++ for a long time Apr 03 10:01:53 Ah, it's my native tongue. Apr 03 10:02:14 it was easy enough to pick up so far Apr 03 10:02:22 just some odd concepts Apr 03 10:02:30 nice Mr. Rogers is on PBS! Apr 03 10:02:38 like I dont get when to do MyType object; vs actually create a new one Apr 03 10:07:15 Calling it a night. Apr 03 10:07:31 laters JasonLP Apr 03 10:25:24 hmm Apr 03 10:25:46 if I have an event that gets fired, I cant do this.whatever Apr 03 10:25:51 because at that point this is a event Apr 03 10:29:55 Hello,, i'm porting a spreadsheet application for the webOS,, can you suggest what is the minimum cell size i should have to make it usable easily? Apr 03 10:37:14 rohit1: probably the size of the default webos font size Apr 03 10:38:22 by any chance do you remember what is it? also the size for buttons is given to be 48 by 48 pixel,, but that will be too big for cells Apr 03 10:40:39 use an image to make your own buttons Apr 03 10:41:23 I've done that only.. but then what should i keep as the size of the images? Apr 03 10:42:07 I know my questions are a bit amateurish but i've already wasted a lot of time searching without getting any precise answer,, Apr 03 10:42:25 thank you so much for ur time and help Apr 03 10:44:37 rohit: try to use images no smaller than 64x64px Apr 03 10:45:47 ok,, and what is the default font size? Apr 03 10:46:08 not sure but gonna guess 13px Apr 03 10:48:23 ok.. how many fonts does palm support? Apr 03 10:48:40 that i'm not sure about Apr 03 10:48:49 ok thanks Apr 03 10:55:11 u welcome Apr 03 12:45:52 got my pdpc cloack back. :) Apr 03 12:46:37 having some trouble getting a list to work within a list. It's like Mojo isn't making a widget for the div... Apr 03 12:53:11 never tried to make a list in a list... Apr 03 12:53:42 it's going to be a gorgeous day here...gonna be hard to sit a keyboard. Apr 03 12:55:00 yeah, it's not considering a new Mojo.Controller.WidgetController() just because I make a div that's a list... I need to tell it to make the widget somehow. I went source diving and found Mojo.Controller.SceneController.prototype.createDynamicWidget=function createDynamicWidget(widgetType,model,insertBefore){ Apr 03 12:55:24 I'm thinking this.controller.sceneController.createDynamicWidget() or some such is going to do what I want... Apr 03 13:06:16 woohoo... SQLite REPLACE INTO is awesome. Apr 03 13:18:40 yo yo yo Apr 03 13:19:31 dawg Apr 03 13:19:53 did you hear the news? Apr 03 13:20:06 SQLite REPLACE INTO is awesome! Apr 03 13:23:07 i c. that saolve all your worldy problems? Apr 03 13:23:29 nope. Apr 03 13:23:44 Got some big ones left to resolve. Apr 03 13:25:28 world peace? Apr 03 13:29:26 not my problem. Apr 03 13:57:58 haeffb should we tell him about identify? Apr 03 14:00:02 we should. we really should. Apr 03 14:00:18 ah well Apr 03 14:00:54 going to be 65deg, sunny, grass is green, trees are starting to bud out. Pretty day. Apr 03 14:01:19 i hear ya. supposed to be warmer here in NY Apr 03 14:01:30 gonna play in the garage today Apr 03 14:05:54 * haeffb gotta work on app. Apr 03 14:06:12 which? Apr 03 14:06:23 SQL for retrieve tasks where data > ? ??? Apr 03 14:06:29 Done! Apr 03 14:06:36 Done! for Toodledo. Apr 03 14:07:02 cool Apr 03 14:07:49 SELECT * FROM tasks WHERE date > ? Apr 03 14:08:59 or just SELECT FROM tasks WHERE date > ? Apr 03 14:09:29 would " SELECT FROM tasks WHERE date > ?" be better? Apr 03 14:13:06 haeffb: http://webos.pastebin.com/cz7Qvs0v Apr 03 14:13:19 why do that not work? i never get Flicky Apr 03 14:15:26 and flickSpeed IS > 750? Apr 03 14:15:45 I was watching engadget's review of the ipad... the browser isn't exactly fast. My pre when overclocked to 800mhz loads the same engadget front page in exactly the same time. Apr 03 14:15:46 yes Apr 03 14:16:04 by a bunch Apr 03 14:16:32 flickSpeed = parseInt(flickSpeed, 10); Apr 03 14:17:23 i already Math.abs the flickSpeed. why would it not be a number? Apr 03 14:17:53 it should be, but not an integer. Although I don't know why that would matter. I'm just grasping at straws Apr 03 14:17:58 i threw in flickSpeed * 1 just to be sure Apr 03 14:18:08 me too. . Apr 03 14:18:16 its getting frustrating now.. Apr 03 14:18:28 Mojo.Log.info(typeof(flickSpeed)); Apr 03 14:23:23 doesnt say anything Apr 03 14:25:14 typeof flickSpeed Apr 03 14:26:17 typeof is an operator, not a function. Apr 03 14:30:26 So here's an oddball one: Apr 03 14:30:45 The way translation, scaling, and rotation are implemented in the canvas tag on the device are wrong from what I can tell. Apr 03 14:31:23 It seems that when you scale, it scales from (0,0) as the center of the element and extends down and to the right. Apr 03 14:31:28 Rotation does exactly the same thing. Apr 03 14:31:54 ugh Apr 03 14:32:12 my lack of understanding of 'this' is freakin killing me Apr 03 14:32:35 Oh? Apr 03 14:32:47 THAT sux Apr 03 14:32:52 heh Apr 03 14:33:18 that = this = i'm writing a language doing away with this Apr 03 14:33:47 this will now be 'i am pointing to object x' Apr 03 14:34:03 verbose? yes Apr 03 14:34:07 i dont care Apr 03 14:34:27 this = 4hrs debbuging Apr 03 14:34:39 so, I have objects1 = [{id: 1}, {id: 3}, {id: 4}] and objects2 = [{id: 2}, {id: 3}, {id: 5}] Apr 03 14:35:10 is the easiest way to find which elements of the objects have same id to do a double loop? Apr 03 14:35:16 or is there a faster/easier way? Apr 03 14:35:26 BigBiff: I feel you. Apr 03 14:35:33 hehe Apr 03 14:36:59 what about 1 loop thru objects1 and select the id from objects2 and see what happens? Apr 03 14:37:00 like intersection of objects1 with objects2 = objects3 = [{id: 3}]; Apr 03 14:37:10 union? Apr 03 14:38:57 don't see anything in JS or Prototype that will do what I want. Apr 03 14:40:54 what about 1 loop thru objects1 and select the id from objects2 and see what happens? Apr 03 14:41:22 hah, woohoo, fixed - when in doubt a global variable fixes 'this' = no more this Apr 03 14:41:42 well, not really, but worked for my problem Apr 03 14:45:55 BigBiff: if you post the code that didn't work, maybe we can help explain why... ? Apr 03 14:50:28 I'm having trouble with webview...sometimes, when I pass it a new url, it doesn't actually load it...i call the openurl function, and even the reload. Nothing works. What else could I do? Apr 03 14:52:55 ever notice like 80% of the questions here are answered by modelChanged and the other 50% are about webview? Apr 03 14:54:09 so, i'm not the only one having trouble with webview? Apr 03 14:54:26 nope. not the first. wont be the last.. Apr 03 14:55:47 haeffb: maybe use Prototype Hash instead of array, and use the 'id' you're referring to as the key of the hash? Apr 03 14:56:23 so...any suggestions on how I can get around this problem? It really doesn't make sense because my workaroud works perfect... Apr 03 14:57:10 then you wouldn't need to have two arrays, probably x.x Apr 03 14:57:14 okay I gotta go Apr 03 14:57:17 Chriswebos: go with the workaround? Apr 03 14:58:08 lol...I know, obvious, right? Well, workaround = 1. call palm service, wait for result (which may take a while); 2. grab result, pass to webview Apr 03 14:58:29 Ideally what I want to do is end up with three arrays, objects3 with any items contained in both objects1 and objects2. objects4 is objects 1 without any items that are in both 1 and 2. and objects5 is objects2 without any items that are in both 1 and 2. Apr 03 14:58:37 I have another method that already knows what palm service is going to return = no need to call palm service = no wait Apr 03 14:59:24 when i do the quicker method, it appears the webview is saying "wait, that didn't take long enough...i'm not going to respond" Apr 03 14:59:47 if I do the slower mehtod, webview says "well, i guess that took a while...i'll respond" Apr 03 14:59:48 Chriswebos: async problem? Apr 03 15:00:17 how webview knows, I have no idea....async problem? Apr 03 15:01:41 asyncronous Apr 03 15:02:46 i mean, what are you referring to when you say asyncronous problem? what's happening Apr 03 15:04:28 thing1 doesnt return before thing2 fires Apr 03 15:04:55 but thing2 needs something thing1 Apr 03 15:05:06 sometimes it'll work, sometimes not. Apr 03 15:05:56 call to thing1 doesnt wait around for a service call to complete Apr 03 15:06:06 oh...no async problem...I can verify webview doesn't get its new url until the previous method has finished Apr 03 15:06:48 in both instances (the one that works and the one that only sometimes works), webview is the callback....plus I have a mojo.log.error that prints out the url i'm using Apr 03 15:07:04 url is correct in both cases Apr 03 15:08:30 which is really frustrating...as i said before, stuff I do before hand should have no impact on webview, since it isn't even dealt with until the other methods have gone through Apr 03 15:09:42 morning all? Apr 03 15:09:58 'morning. Apr 03 15:10:13 So... how does one make a scene scrollable horizontally? Apr 03 15:10:24 has tethering on sprint been figured out yet? if so can someone link me to good walkthrough for 1.4.1 Apr 03 15:10:31 ty Apr 03 15:11:24 I'm using a canvas element (of which I do not know beforehand the size of) and it will definitely be bigger than the screen's Apr 03 15:11:24 resolution in both width and height. Apr 03 15:11:39 texel: are the scene elements known before hand? Apr 03 15:11:51 or are they built dynamically? Apr 03 15:12:01 Right now they're known beforehand. Apr 03 15:12:24 The trick, though, is the size of the canvas, which I /don't/ know. Apr 03 15:12:30 the uiwidgets example is a good place to start, then...I played around with it a while ago Apr 03 15:12:38 Hm. Good point. Apr 03 15:12:40 Forgot about that app. =op Apr 03 15:12:56 oh...look at the AP app...they resize the element dynamically Apr 03 15:14:20 Is it possible to manually load a script from a scene's HTML? Apr 03 15:14:22 haeffb: here was my prob and the solution (dont make fun of messy script) http://www.pastie.org/901714 Apr 03 15:14:45 heheh Apr 03 15:15:12 manually load a script? Apr 03 15:15:36 what are you trying to do that can't be done in the assistant? Apr 03 15:23:07 Not sure. Apr 03 15:23:31 well, what are you trying to do? Apr 03 15:23:34 But apparently you can't define a class and set a class variable using a previously defined class at load time. Apr 03 15:23:48 Ie: in rect.js, I define the class Rect. Apr 03 15:24:06 Then in baddie.js I define a class variable (Baddie.IMAGE_BOUNDS) as a new Rect. Apr 03 15:24:26 On the device it aborts the load because apparently it loads js files in arbitrary order. Apr 03 15:24:59 ummm...not sure I understand, but you can make rect.js and baddie.js models, not scenes Apr 03 15:25:09 make sure they are defined in sources.json Apr 03 15:25:11 Hm. Apr 03 15:25:17 They're neither, actually. Apr 03 15:25:20 That might be my problem. Apr 03 15:25:47 then, in your scene where you need them, just say, "myrect = new Rect();" Apr 03 15:25:50 What I've fallen back to is concatenating the source files together into one. =op Apr 03 15:25:59 * texel nods Apr 03 15:26:00 Except Apr 03 15:26:06 Hang on. Apr 03 15:26:29 in scene assistant, say "myrect = new Rect()" Apr 03 15:27:10 I must be approaching this with too much of a traditional programming mindset or something. Apr 03 15:27:33 These classes aren't in app/models or app/scenes Apr 03 15:27:42 They're in app/classes because they didn't really fit in either place. Apr 03 15:27:42 possible...are u new to js or new to webos dev? Apr 03 15:27:47 new to webos dev. Apr 03 15:28:01 i put everything that's not a scene in models...don't have to, just do Apr 03 15:28:08 First off, I'm writing a game. Apr 03 15:28:13 Shouldn't matter where you keep 'em. Apr 03 15:28:16 the APNews people define some other folders Apr 03 15:28:29 Second off, these classes have interdependencies between each other. Apr 03 15:28:45 i dont think it does...just my way of separating things...main thing is having them in sources.json or they won't be able to see each other Apr 03 15:29:14 I was attempting to follow good programming style and set a few class variables to "emulate" a few constants. Apr 03 15:29:28 i've also found that when i define functions and classes i have to do it a certain way Apr 03 15:29:44 All of the sources are in sources.json Apr 03 15:29:47 u can do that....where's the issue? Apr 03 15:29:58 u can't see the class variables? Apr 03 15:30:13 I set one and use it just fine...wonderfully as a matter of fact Apr 03 15:30:25 The "constants" are things like an instance of Rect, which is one of my custom classes defined in a different file called rect.js. Apr 03 15:30:31 i use a database which is accessed by several scenes Apr 03 15:30:59 i didn't want each scene recreating access to the same database...so I made it a class variable under the Stageassistant Apr 03 15:31:02 The problem arises when rect.js hasn't been loaded, and the expression "new Rect(20, 20, 1)" Apr 03 15:31:06 appears. Apr 03 15:31:30 now all my scenes look to Stageassistant to get it... Apr 03 15:31:38 what's it saying? Apr 03 15:31:42 even though rect.js is in the sources.json file, it's not loaded at the time that the "new Rect(...)" expression appears. Apr 03 15:32:07 i don't think that's possible... Apr 03 15:32:17 what is the exact error you're getting? Apr 03 15:32:47 I end up getting an exception somewhere in the webos framework in native.js complaining that "undefined is not a function." Apr 03 15:33:34 I'll have to revert my code back to the original way I had it -- I worked around the issue by concatenating my source files together in a specific order. Apr 03 15:33:43 yeah...i think i've had similar problems...i ALWAYS have to define my functions using the Rect.prototype.mycreate = function() style Apr 03 15:33:48 Yeah Apr 03 15:33:50 I'm doing that. Apr 03 15:33:52 That's not the problem. Apr 03 15:34:17 The problem is that Rect isn't defined at the point where "Baddie.IMAGE_BOUNDS = new Rect(...);" is executed. Apr 03 15:34:56 so it's returning undefined? Apr 03 15:35:02 Yep. Apr 03 15:35:13 neither rect nor baddie are scenes? Apr 03 15:35:16 Nope. Apr 03 15:35:30 Closest thing they could be described as is models, but they're not in app/models Apr 03 15:35:33 They're in app/classes Apr 03 15:35:40 shouldn't matter... Apr 03 15:35:44 Yep. Apr 03 15:35:52 Doesn't matter what order I list them in the sources.json file, either. Apr 03 15:36:20 how is baddie called? Apr 03 15:36:58 i guess i'm asking...where are you doing all this code? stageassistant, 1st scene, where? Apr 03 15:37:00 You mean instanciated? Apr 03 15:37:04 Ah. Apr 03 15:37:04 right? Apr 03 15:37:14 I'm instanciating them in one of my stage assistants. Apr 03 15:37:24 In the setup() phase. Apr 03 15:37:28 i have only dealt with one stage... Apr 03 15:37:36 Err... Apr 03 15:37:37 Sorry. Apr 03 15:37:39 Scene assistant. Apr 03 15:37:43 Got the terms confused. Apr 03 15:38:08 so, in scene's setup, you call "baddie.image...= new rect()"? Apr 03 15:38:12 No. Apr 03 15:38:19 Okay, so lemme clear something up: Apr 03 15:38:27 The class definition /and/ the constant definitions are in the same file. Apr 03 15:38:54 So it's essentially like this: "var Baddie = Class.create({ ... }); Baddie.IMAGE_BOUNDS = new Rect(...);" Apr 03 15:39:55 oh...that's something else I've had trouble with...i can't seem to create my classes that way... Apr 03 15:40:07 I don't have a problem defining a class using Prototype. Apr 03 15:40:18 I /do/ have problems with defining a class using the standard JS method. Apr 03 15:40:21 wait, actually i got one to work that way Apr 03 15:41:01 Because with the way the JS interpreter/compiler works on webos, you can't reference an instance method inside your constructor function. Apr 03 15:41:19 regardless, baddie shouldn't be called until you ask for it in one of your scenes Apr 03 15:41:45 Ie: "function Baddie() { this.doSomething(); }; Baddie.prototype.doSomething = function() { ... };" throws an exception that Apr 03 15:41:45 this.doSomething isn't defined at instanciation time. Apr 03 15:42:32 Actually, I think it's something to do with Prototype, because I ran into exactly the same error using a web browser with the same class definitions. Apr 03 15:43:39 At this point, I've run into so many implementation differences in webos that I'm considering giving up with JS and reimplementing with the PDK. Apr 03 15:43:44 Failing that, I'll just give up. Apr 03 15:43:48 but what i'm saying is, unless you instantiate baddie in one of your scene assistants, it should be called at all... Apr 03 15:43:55 That's just it. Apr 03 15:44:01 It's /not/ being /called/ anywhere. Apr 03 15:44:11 and still giving the error? Apr 03 15:44:14 Except in the scene asisstant. Apr 03 15:44:46 well, that's what i'm asking...so your scene assistant is calling baddie? Apr 03 15:45:08 The problem is that at the time that Baddie needs to reference it's class variable Baddie.IMAGE_BOUNDS, Baddie.IMAGE_BOUNDS contains Apr 03 15:45:08 "undefined" because webos didn't have the definition of the class Rect at the time the statement "Baddie.IMAGE_BOUNDS = new Rect(...);" is Apr 03 15:45:08 executed. Apr 03 15:45:46 Yes, my scene assistant is calling baddie. Apr 03 15:49:08 The simplest solution would be to just tell webos what order to load the JS files. Apr 03 15:50:25 Which is why I asked my originating question: is it possible to force a js load? =op Apr 03 15:52:40 Hello! Apr 03 15:52:47 texel: are you still there? Apr 03 15:52:50 Yep. Apr 03 15:53:05 Chriswebos: This is by no means the only major problem I've run into. Apr 03 15:53:15 sorry...i have a dell, and it sometimes randomly resets my wifi Apr 03 15:53:39 i may have missed the last few things you've said...me either...which explains why i'm on here to begin with Apr 03 15:53:53 Chriswebos: Now I'm having problems with how tags handle save(), restore(), translate() and scale() work. Apr 03 15:54:10 Chriswebos: It's /completely/ different as to how the standard and browser implementations work. Apr 03 15:54:13 can't help with that... Apr 03 15:54:23 is PDL a recommended way to develop apps? I'm just curious because I hear that they're talking about improving the sandbox security on PDL/SDL apps, and I'm concerned about going off and developing something that will suddenlys top working one day Apr 03 15:54:59 CanyonMan: I see your concern, but isn't that what app maintenance is for? =op Apr 03 15:55:21 i'm also at a loss for the baddie problem...i haven't encountered that...only thing I can think of is to use the full prototype of it Apr 03 15:55:54 texel: could be, depends on how drastic the changes are. It might make it impossible to do some task entirely Apr 03 15:56:34 Baddie.IMAGE_BOUNDS contains "undefined" because webos didn't have the definition of the class Rect at the time the statement Apr 03 15:56:34 "Baddie.IMAGE_BOUNDS = new Rect(...);" is executed." Apr 03 15:56:38 * texel sighs Apr 03 15:56:43 CanyonMan: you should be fine developing on the SDL side of things Apr 03 15:56:46 rcirc fails me. Apr 03 15:57:10 morning earthlings Apr 03 15:57:12 CanyonMan: Point. Apr 03 15:57:22 CanyonMan: I would wait for the PDL to get out of beta, then. Apr 03 15:57:27 yeah Apr 03 15:57:37 CanyonMan: What is it you were thinking of, btw? Apr 03 15:57:50 who knows when tha twill be though Apr 03 15:57:51 CanyonMan: As long as you stay within the bounds of what is defined in the beta PDL, you should be okay. Apr 03 15:58:17 I have been waiting for the Mojo Messaging Service to get out of beta for a while Apr 03 15:59:53 texel: Nothing too specific yet, it's just that I only recently became aware of PDL, and I am far more of a C/C++ guy than JS. I'd rather develop more complex program logic in one of those Apr 03 16:00:20 I should ask the forum what's the status with the Mojo Messaging Service Apr 03 16:00:23 I think I shall. Apr 03 16:02:24 does com.palm.email parse the messages in java or javascript? I've been digging through the js and I don't really see anything Apr 03 16:42:35 anyone from palm here that has been working on the mojo messaging service? Apr 03 16:43:41 negative Apr 03 16:45:52 hmmm I want to get in teh beta or try and hurry the beta along Apr 03 16:50:47 CanyonMan: I feel your pain there. Apr 03 16:51:06 CanyonMan: I've run into serious implementation problems with webos' canvas tag, so I'm going to have to reimplement everything I've Apr 03 16:51:06 written in C. Apr 03 16:51:59 hi all Apr 03 16:52:13 CanyonMan: At this point I'm so exhausted with fighting it that I think I'm going to take a week long haitus from coding. Apr 03 16:54:22 CanyonMan: On the other hand, if you're just using simple widgets and doing normal application things, using JS isn't that hard. Apr 03 16:54:42 CanyonMan: Just don't approach it like you're writing a traditional program. Apr 03 17:31:31 Mojo Messaging still isn't "live?" Apr 03 17:32:07 I broke my desktop Apr 03 17:32:19 by hand? Apr 03 17:32:24 no Apr 03 17:32:28 or with power tools? Apr 03 17:32:29 by windows Apr 03 17:32:31 ah Apr 03 17:32:56 Trying to reinstall 7 and it no likey the fact that I have dynamic disks Apr 03 17:32:57 I decided to eat the dog food with my new laptop...Ubuntu 9.10 Apr 03 17:33:01 very pleased so far Apr 03 17:33:12 two 160GB drives together for steam Apr 03 17:33:19 and honestly, I like ubuntu Apr 03 17:33:27 but I really have no system to run it Apr 03 17:33:46 this thing smokes my work laptop like a Thanksgiving turkey Apr 03 17:33:48 well, maybe the mini when u get a ssd for it Apr 03 17:34:20 for work I just ssh into a grid computer running centos Apr 03 17:34:27 nice Apr 03 17:34:41 IBM needs to let me have at a rack of Cell blades Apr 03 17:34:46 WHY WON'T YOU LET ME FORMAT THIS CRAP!!!! Apr 03 17:34:52 but the bastards say I need a "business case" Apr 03 17:34:57 heh Apr 03 17:35:04 I work for CSUN Apr 03 17:35:13 all the case I need Apr 03 17:35:32 what do you do for them? Apr 03 17:35:50 Webdev as a student assistant for CSUN Student Affairs Apr 03 17:35:51 is that the university or the energy company? Apr 03 17:35:54 ah Apr 03 17:35:55 uni Apr 03 17:36:14 we manage sites like the Center on deafness and whatnot Apr 03 17:36:25 so, you could benefit from the BOFH Excuse Generator ;) Apr 03 17:36:49 Made my own rails version Apr 03 17:36:53 set as my homepage Apr 03 17:36:54 haha Apr 03 17:37:18 Sad there theres only two new bofh stories this year Apr 03 17:37:50 but the pre reg ones were the best imho Apr 03 17:38:17 I haven't read them since 1996 or so :O Apr 03 17:38:23 ah Apr 03 17:38:31 pfy? Apr 03 17:38:55 nah, I'm old Apr 03 17:39:12 ... Apr 03 17:39:36 how the hell do I format disks using windows command line recovery thingie Apr 03 17:40:02 beats me...I haven't had to jack with recovery console but one time for a w2k3 server Apr 03 17:40:11 fdisk is not an option? Apr 03 17:40:19 nope Apr 03 17:40:22 lame Apr 03 17:40:24 diskpart is though Apr 03 17:40:32 that sounds fancy Apr 03 17:41:17 meh Apr 03 17:41:19 not really Apr 03 17:41:38 halo halfhalo Apr 03 17:42:01 hola Apr 03 17:42:14 us palm pre only support US english and spanish? Apr 03 17:42:18 boot a livecd, fdisk Apr 03 17:42:29 effort! Apr 03 17:42:32 heh Apr 03 17:45:15 ok, lets see what happens now Apr 03 17:45:34 and its installing! Apr 03 17:45:40 drinking some smooth tequila Apr 03 17:46:45 yum Apr 03 18:12:53 ok moving on - now to add a filterlist to list ive already created Apr 03 18:12:58 tough? shouldnt be Apr 03 18:13:04 for me? 3 days Apr 03 18:13:20 see yall tuesday Apr 03 18:21:56 yo yo Apr 03 18:22:55 yo Apr 03 18:56:40 yo Apr 03 18:57:32 Well, that tears it. I give up using webos' canvas. Apr 03 18:57:40 Time for C and SDL. Apr 03 19:57:15 holy cow halfhalo_T400_ Apr 03 19:57:26 ... Apr 03 19:57:46 trying to figure out why my network keeps crashing Apr 03 19:58:50 looks like the powerline adapters sputter every once in a while which causes the routers their tied to to crash Apr 03 21:47:46 anyone know, if a person in the UK, can only buy apps listed in the UK app store? Apr 03 21:48:06 i would imagine? Apr 03 21:48:48 yeah assumint so... Apr 03 22:09:05 So... what do viewMenu's and commandMenu's have special outside of the regular button-y widgets? Just priority top and bottom placement? Apr 03 22:09:57 nope Apr 03 22:10:21 i see Apr 03 22:10:37 you could make your own using the images Apr 03 22:11:54 So.. could I set up a widget, like... a button, lets say.. but use my own images? Apr 03 22:13:55 Yeah... you could. I was just thinking of adding the image to the scene and adding a tap listener Apr 03 22:14:51 o Apr 03 22:26:49 zsoc: you're supposed to be able to override the classes of the provided widgets to make them appear how you like Apr 03 22:26:56 but, I suck at css, so.... Apr 03 22:27:19 Oh, I'm ok at CSS Apr 03 22:27:26 it's this ECMAScript garbage that's getting me ;) Apr 03 22:27:33 heh Apr 03 22:27:38 Me likes JS Apr 03 22:27:40 hehe, I'm still a novice Apr 03 22:27:44 but I like it Apr 03 22:28:42 * sugardave just finished Uncharted 2 on normal difficulty. "Next stop, crushing." Apr 03 22:28:50 anybody want to test syncing with Toodledo? Apr 03 22:28:53 heh Apr 03 22:29:27 haeffb: not I, I"m slacking today Apr 03 22:29:38 not me either Apr 03 22:29:51 First day of spring break means I do NOTHING Apr 03 22:30:23 I still have Uncharted 2 on my "to play" list Apr 03 22:30:32 Its amazing Apr 03 22:30:45 I got it from GameFLy on Monday, and I agree, must play Apr 03 22:31:10 I may even purchase it Apr 03 22:31:17 I only have amazing games on that list ;) Apr 03 22:32:14 slackers! Apr 03 22:32:39 haeffb: i'm mojo'ing right now :p Apr 03 22:32:53 slackers and mojo'ers! Apr 03 22:35:17 I'm going to check out Mini-Ninjas and 420 Apr 03 22:35:17 haeffb: ME Apr 03 22:35:30 because I have not done enough testing this week Apr 03 22:35:35 heh Apr 03 22:35:46 Silly silly Adora.... Apr 03 22:35:50 Adora = glutton for punishment Apr 03 22:35:51 Work is not for weekends! Apr 03 22:35:58 Adora|Home: did you get to test Save/Restore? Apr 03 22:36:03 Adora|Home: I refuse to allow you to play with webOS apps this weekend. Apr 03 22:36:07 rwhitby: not yet =[ Apr 03 22:36:15 haeffb: D: Apr 03 22:36:23 but, but... Apr 03 22:36:24 uh, wut? Apr 03 22:36:28 what if I NEED a todo app? Apr 03 22:36:32 Monkey! Apr 03 22:36:37 * rwhitby is eating easter eggs with the kids Apr 03 22:36:40 Oh. Then you can have it. Apr 03 22:36:44 =D Apr 03 22:36:59 but it's not really a todo app yet. It's getting close, but working on syncing before I pretty it up. Apr 03 22:37:02 rwhitby: I don't eat the eggs....*shudder* Apr 03 22:37:16 rwhitby: easter's not until tomorrow. Apr 03 22:37:24 aussie Apr 03 22:37:38 9:00am sunday here Apr 03 22:37:45 hot tub time machine? Apr 03 22:37:46 haeffb: rwhitby has already started tomorrow Apr 03 22:37:56 oh, 8am actually, we just came out of daylight saving last night Apr 03 22:38:03 no wonder he gets stuff done faster than me. Apr 03 22:38:09 he starts a day earlier. Apr 03 22:38:14 Hes from the FUTURE! Apr 03 22:38:17 it's totally ufair Apr 03 22:38:25 *unfair Apr 03 22:38:26 if the world ends tomorrow, I'll let you guys know first. Apr 03 22:38:44 Adora|Home: what are you looking for in a todo app? Apr 03 22:38:44 deal Apr 03 22:39:00 hmm =] Apr 03 22:39:08 do you want it to come preconfigured with a todo for all the apps you have yet to test? Apr 03 22:39:22 most importantly, syncing to web Apr 03 22:39:31 which nobody's done yet Apr 03 22:39:34 that part, I think I have. Apr 03 22:39:39 indeed =] Apr 03 22:39:53 although it hasn't been tested yet... Apr 03 22:39:58 hint hint Apr 03 22:39:59 I want something GTD friendly Apr 03 22:40:08 not that I know a lot about GTD (yet) Apr 03 22:40:20 You can force toodledo to be GTD friendly. Apr 03 22:41:01 but from what I understand of it, it allows you to braindump everything into stuff you need to do now and stuff you might want to do in the future Apr 03 22:41:15 http://www.getitdoneapp.com is pretty cool for GTD. That's next on my list. Apr 03 22:41:33 * sugardave feels dumb. Apr 03 22:41:39 and http://www.nirvanahq.com, but they don't have an API yet. Apr 03 22:41:40 I want something that's more than just a checklist Apr 03 22:41:49 So, I'm working out the bugs with a Toodledo app. Apr 03 22:41:59 notes, photos (omg I have so many photo todos), urls Apr 03 22:42:10 Adora|Home: is PDK app submission going to have restrictions on shipping locally linked libraries? Apr 03 22:42:19 zsoc: no idea Apr 03 22:42:22 kk :) Apr 03 22:42:28 none of that is figured out yet =] Apr 03 22:43:02 It makes it very hard to develop ;) Apr 03 22:43:09 location aware Apr 03 22:43:28 sharing todo lists (like to be able to add todos for my boyfriend!) Apr 03 22:43:41 Er, I should said develop in a duality. If I'm already developing something for homebrew, I might as well make it compliant if I can for possible future submissions Apr 03 22:44:04 so, pretty much everything. :) Apr 03 22:44:21 zsoc: that's a good question to ask on the forums Apr 03 22:44:43 haeffb: kinda, yeah Apr 03 22:44:51 I would LIVE in todo lists if I could Apr 03 22:45:09 Adora|Home: I'm writing up something for the forums about suggestions for various resource accessibility, i'll throw that in there with it I guess :) Apr 03 22:45:17 not sure how practical photos would be on a todo list on phone. have to think about that one. Apr 03 22:45:30 location aware is good, if it's not a battery killer. Apr 03 22:45:32 haeffb: I want like, evernote + todo Apr 03 22:45:58 or a todo that links with evernote Apr 03 22:46:50 one of the main reasons I want photos is for wishlists Apr 03 22:47:20 like trying to buy furniture, I see lots of things I like but don't know if it's the right fit Apr 03 22:47:42 so I have hundreds of photos of some random table somewhere Apr 03 22:47:54 yes, I remember reading about your sofa escapades a few weeks ago. Apr 03 22:47:57 I'd love to be able to save those in a list and add notes Apr 03 22:48:06 so that's not quite a todo, but it's listy Apr 03 22:48:16 that sounds more like evernote Apr 03 22:49:22 omnifocus is the closest solution I've found so far Apr 03 22:50:20 * haeffb no do mac. But I'm jealous of omnifocus and Things from what I've read about them. Apr 03 22:54:09 haeffb: if i can borrow you again Apr 03 22:54:51 zsoc! Of course! Apr 03 22:59:47 * haeffb fears I've been overenthusiastic again. Apr 03 23:00:35 haeffb: slightly, you must imagine i'm a bit disturbed by someone being overly altruistic Apr 03 23:00:41 I mean, i'll understand if you send me your bill ;) Apr 03 23:00:56 I was just kidding. I'm not really going to help. Apr 03 23:01:13 oh, now that's more like the developer channel attitude I'm familiar with ;) Apr 03 23:02:16 right. so what's the problem that I'm not going to help with? Apr 03 23:04:01 is 'disabled' a valid widget attribute? Apr 03 23:04:13 haeffb: and collecting RESEARCH Apr 03 23:04:16 that's it! Apr 03 23:04:32 a lot of things I need to do require research and thinking first Apr 03 23:05:06 disabled is usually a model property. Apr 03 23:05:32 attributes are immutable after setupWidget(). Apr 03 23:05:33 haeffb: i apologize, yes i have it as a model property Apr 03 23:06:08 yes, it's a valid widget model property. at least for most widgets, not positive if all. Apr 03 23:06:41 this.myModel.disabled = enabled; this.controller.modelChanged(this.myModel); Apr 03 23:06:45 i'd change it with something like that? Apr 03 23:07:04 disabled = true/false; Apr 03 23:07:15 but yes, like that Apr 03 23:07:18 right, ok, so a boolean Apr 03 23:07:46 and I could put that in...a function (or was that a method? ;)) and call it with an event listener Apr 03 23:10:55 any pitfalls I should be aware of if I'm just about to start using a Depot in Preware ? Apr 03 23:11:06 nope Apr 03 23:12:06 yes, you could. Apr 03 23:15:17 ok, who knows about how to stop webOS capitalising stuff? Apr 03 23:15:31 I do! Apr 03 23:15:32 I need to make all the feed names in Preware not auto-capitalise Apr 03 23:16:13 damn, I gotta stop putting exclamation points after everything! Apr 03 23:16:31 rwhitby: are they in a list? Apr 03 23:16:47 haeffb: I mean the new feed input widget Apr 03 23:17:00 oh, a textfield. easy peasy. Apr 03 23:17:32 haeffb: seriously, I need to meet you. The image I have in my head is quite ridiculous. Apr 03 23:17:57 textCase attribute Apr 03 23:18:23 Options are: Apr 03 23:18:23 Mojo.Widget.steModeSentenceCase (capitalization like a sentence), Apr 03 23:18:23 Mojo.Widget.steModeTitleCase (capitalize first letter of each word), Apr 03 23:18:23 Mojo.Widget.steModeLowerCase (no capitalization) Apr 03 23:18:45 zsoc, the image you have in your head is spot on. Apr 03 23:19:11 thx Apr 03 23:19:14 haeffb: a younger 'Miracle Max' with more of a hunchback and more caffeine/running around everywhere? Apr 03 23:19:37 less of a hunchback, you mean. Apr 03 23:21:12 * zsoc ponders Apr 03 23:21:12 maybe Apr 03 23:22:55 Princess Bride is one of my favorite movies, though. Just behind Raising Arizona. Apr 03 23:23:20 It's in my top 10, but I think I've /seen/ it more times than any other movie. Apr 03 23:44:08 just broke 1500 unique downloads Apr 03 23:49:37 haeffb: does a widget _need_ attributes? Apr 03 23:50:15 not all widgets. you can pass an empty object in setupWidget('myId', {}, myModel); Apr 03 23:50:43 widgets may have default attributes, if you don't need to change them, then don't pass anything. Apr 03 23:50:45 haeffb: ok, and according to mojo docs, disabledProperty defaults to 'disabled', how does that differ from the 'disable' boolean? Apr 03 23:51:16 dawm, I would say "Congrats!" but I'm trying to tone it down in here a bit to avoid scaring zsoc away. Apr 03 23:51:34 haeffb: don't worry, once I'm done with this it's back to C services for me :) Apr 03 23:52:26 oh, well, in that case: Boo! Apr 03 23:52:48 haeffb: but after i'm done with that service, i'll be back for the frontend ;) Apr 03 23:53:43 but seriously, what's the difference between the disabledProperty attribute and the disabled model boolean? Apr 03 23:54:26 er, the 'disable' model boolean Apr 03 23:55:05 you could set another modelProperty to tell the framework to disable the widget rather than disabled. Apr 03 23:55:22 like disabledProperty = 'dontuseme' Apr 03 23:55:42 myModel = {dontuseme: true, other: whatever} Apr 03 23:56:11 * zsoc thinks Apr 03 23:56:14 Why? Apr 03 23:56:28 I mean if the 'disabled' model property exist by default, why change the name? Apr 03 23:57:03 if you have an array of data that comes from somewhere else, maybe that data doesn't have a property called 'disabled', but it does have a property called 'dontuseme' Apr 03 23:57:15 I see Apr 03 23:57:20 you can use one of the array items directly in the model Apr 03 23:57:28 and also I suppose in past versions disabledProperty was not a default attribute like it is now Apr 03 23:57:45 maybe, I dunno. Apr 03 23:57:46 but in theory, disabledProperty being a default attribute, i don't need to define it to use the disabled model? Apr 03 23:57:54 correct. Apr 03 23:57:58 perfect Apr 03 23:58:15 haeffb: remind me if I start a software company and I need a mojo consultant Apr 03 23:58:29 lol. Apr 03 23:59:00 I don't know the half of it. I'm just good enough to help...uh...beginners... :) Apr 03 23:59:45 zsoc is all-pro now Apr 04 00:00:11 pro-bono here.. Apr 04 00:00:26 hey Bmyers Apr 04 00:00:36 how's the Drupal? Apr 04 00:00:41 druping Apr 04 00:00:57 did you get admin menu going? Apr 04 00:01:35 no. my computer crashed and i didnt have that stuff bookmarked Apr 04 00:02:08 burn this into your brain: drupal.org/project/[module short name] Apr 04 00:03:06 thx. Apr 04 00:03:27 read this: http://www.toodledo.com/info/api_doc_tasks.php and tell me what "context" is supposed to return from the getTasks api call. Apr 04 00:03:57 ah. never mind. I'm doing it wrong. Apr 04 00:04:54 ah. crap. no I'm not. Apr 04 00:04:58 it's doing it wrong. Apr 04 00:11:31 This. is. pissing. me. off. Apr 04 00:22:56 Ok. It was me. I was doing it wrong. Apr 04 00:23:15 I know I keep asking the same couple questions, but I still can't get things working... I can't get the accelerometer to output any data to my app. setwindoworientation free works fine, but listeners for orientation and acceleration just never call the handler functions Apr 04 00:23:19 Any ideas? Apr 04 00:23:50 I copy and pasted directly from the sdk sample (which works fine on device), but once the code is in my app, it just doesn't call the handler Apr 04 00:23:54 No errors in the log either Apr 04 00:27:05 Is there something in appinfo.json that might keep the acceleration listener from working? Apr 04 00:28:24 Could it be anything to do with using handleLaunch and having the stage open as lightweight? Apr 04 00:30:17 zinge: I don't do accelerometer, but lightweight is the only option for a stage, I believe. Apr 04 00:30:38 Bmyers: ping Apr 04 00:30:56 That's what I thought, but I'm trying everything and anything at this point... Apr 04 00:31:14 Woah! Woking! Apr 04 00:31:19 Finally.... Apr 04 00:31:21 Working* Apr 04 00:31:42 Lemme make sure that wasn't a fluke Apr 04 00:32:16 Nope, that was it. Why isn't that documented ANYWHERE? Apr 04 00:32:18 just adding modules to drupel is a pain Apr 04 00:32:51 I finally got the accelerometer to work... had to change lightweight to false Apr 04 00:32:54 weird Apr 04 00:33:04 in my handleLaunch Apr 04 00:34:43 Gonna add that to the wiki page; has no one tried to use the accelerometer in an app with handleLaunch/createStageWithCallback yet? Apr 04 00:37:17 hi all Apr 04 00:37:36 hi Apr 04 00:37:43 hiya Apr 04 00:37:53 yo Apr 04 00:38:49 yo Apr 04 00:39:07 hi haeffb Apr 04 00:39:53 hi JenP. Wanna test an app. Apr 04 00:39:56 ? Apr 04 00:40:27 sure i can for a bit...but have company coming so you may not get my full attention Apr 04 00:41:35 I'll add you to my email list for "alpha" testers. Apr 04 00:42:08 don't need anything immediately. Apr 04 00:43:32 cool Apr 04 00:43:48 JenP: got a concept to pitch to you Apr 04 00:43:53 ok Apr 04 00:44:04 A new row on the main screen of Preware Apr 04 00:44:09 "Saved Package List" Apr 04 00:44:16 stored in a Depot Apr 04 00:44:30 able to be saved and restored using Save/Restore Apr 04 00:44:52 nodnod Apr 04 00:44:59 sounds good...what else Apr 04 00:45:00 tap on it, and you get your saved package list, from where you can update it to match the currently installed set of packages, or you can install everything from the saved list Apr 04 00:45:16 oh that sounds great! Apr 04 00:45:22 then there is a preference which automatically keeps the saved package list in sync with the currently installed packages Apr 04 00:45:32 Rod i love this idea Apr 04 00:45:50 I prefer all of his idea's equally Apr 04 00:46:15 zsoc not me...this ones the best Apr 04 00:46:17 so far Apr 04 00:46:27 rwhitby: what else? Apr 04 00:47:26 oh! haeffb i got my code working Apr 04 00:47:37 went for a much much simpler approach... Apr 04 00:48:06 Okay, one problem down... time for number 2... Apr 04 00:48:19 Can anyone help me in getting palm-dark working correctly? Apr 04 00:48:27 sure! Apr 04 00:49:16 zinge: you can use Preware as an example Apr 04 00:49:22 add class="palm-scene palm-dark" to your body html in your index.html file Apr 04 00:49:32 k guys companies here ttyl Apr 04 00:49:39 JenP: that's all. Apr 04 00:50:10 hello Apr 04 00:50:20 how are things Apr 04 00:50:28 great!!!! Apr 04 00:50:36 I mean. ok. Apr 04 00:50:43 codeslaw: i still say your name out loud in my head Apr 04 00:51:00 everytime i write anything? Apr 04 00:51:04 I didn't before... but now I will Apr 04 00:51:08 er... a few times an hour Apr 04 00:51:23 word to that Apr 04 00:51:35 * haeffb just pulled off an awesome smoked KC strip steak. Apr 04 00:52:11 * haeffb loves his MasterBuilt electric smoker. Apr 04 00:52:32 Wow... someone thank JenP for me next time they're back. That was super easy, much more so than every other way I've tried following palm documentation. I could be crazy though. Apr 04 00:53:33 zinge: you are pretty crazy Apr 04 00:53:50 i owe you a donation tho Apr 04 00:55:34 ? What'd I do? :-) Apr 04 00:58:26 zinge: I've used brightness unlinked since the first release Apr 04 00:59:36 Does a widget model have a default name? or do I have to set it in widgetSetup()? ie this.controller.setupWidget({},{}, this.MyModel = stuff) ? Apr 04 00:59:51 Nice; glad you like it. Apr 04 01:00:12 zinge: I generally keep my brightness at 1, so it comes in handy in dark rooms Apr 04 01:00:24 Yea, me too. Also come sin handy at night. Apr 04 01:00:43 I just wish palm would implement the setting, or hadn't fixed the bug I was using in 1.3.5 :-) Apr 04 01:00:46 right, same thing with the touchstone, i couldn't sleep with that much light Apr 04 01:00:50 ha Apr 04 01:00:51 The dashboard is a little annoying. Apr 04 01:00:53 that's a feature Apr 04 01:00:57 Lol Apr 04 01:01:41 you have to set it in setupWidget if you need it later. Apr 04 01:01:46 zinge: i'm not sure how it works, but you could have a detatched service to the dirty work and just have the mojo set options Apr 04 01:01:48 haeffb: ty Apr 04 01:05:55 zsoc: I could... I'd just have to learn how to write an app with a service. I graduate in a month or so... after that I'll hopefully have a little more free time to work on palm stuff Apr 04 01:07:36 zinge: i'd be willing to show you the ropes. we just implemented a relatively new process/model that is working out very well (distributing services and apps in the same package) Apr 04 01:08:06 * rwhitby notes that zsoc has learnt well Apr 04 01:09:26 * rwhitby bbl Apr 04 01:14:37 zsoc: That would be really helpful, actually. Mind if I pick you brain in a month or so? Apr 04 01:15:16 zinge: if i'm still alive Apr 04 01:15:31 that was odd Apr 04 01:15:37 zsoc lol, sounds like a plan Apr 04 01:15:45 I meant: zinge: as long as I'm around Apr 04 01:15:49 not sure what happened there Apr 04 01:16:01 That is weird Apr 04 01:17:08 So, as long as people are being super helpful... anyone around that's played with the webview widget? That's my next problem I have to fix. Apr 04 01:18:36 I've stayed away from it as best as I can, does that count? Apr 04 01:19:30 I have not. See zsoc. I know very little. Apr 04 01:19:42 Heh, probably not. I have it working, just having some trouble with getting the reloadPage method to work, and trying to see if I can capture pinch-zoom the same way google maps does. Apr 04 01:20:05 I'm gonna go grab dinner though. Thanks for the help everyone! Apr 04 01:20:34 later Apr 04 01:32:34 haeffb: is the id of a widget suppose to be in " or ' ? Apr 04 01:33:36 it do not matter Apr 04 01:34:42 hm... so why would it tell me "Could not instantiate widget" in my scene's setup method? Apr 04 01:36:34 good question. Apr 04 01:38:12 Would that happen if the corresponding scene/view didn't define the type of widget? Apr 04 01:38:21 er, that is, x-mojo-element Apr 04 01:38:39 Because it does, but my assistant and my scene both have a hyphen in them, and i'm wondering if that's not supported Apr 04 01:38:56 ie: one-thing-assistant.js and one-thing-scene.html Apr 04 01:39:17 the hyphens shouldn't be a problem Apr 04 01:39:54 probably a typo in the assistant setup() method Apr 04 01:40:02 pastebin? Apr 04 01:40:44 does sources.js have to include scenes/views? Apr 04 01:40:55 oh i see, scene and source Apr 04 01:40:58 nevermind i already have it heh Apr 04 01:46:53 haeffb: it's self-contained: this.controller.setupWidget('button', {}, this.buttonModel = { buttonLabel : $L("Button"), disabled: false }); Apr 04 01:48:51 eh. looks OK from here. Apr 04 01:49:39 change buttonLabel: to label: Apr 04 01:52:35 same :/ Apr 04 01:53:28 what is in the scene html? Apr 04 01:53:33 stop telling me my widgets aren't set up :( Apr 04 01:53:53
Apr 04 01:53:56 my app is becoming...awesome. Apr 04 01:54:09 in a rudimentary way. Apr 04 01:54:46 haha Apr 04 01:55:05 it's ugly, but it can actually do stuff Apr 04 01:55:25 do all the divs need to somehow be grouped together? Apr 04 01:55:49 nah. Apr 04 01:55:51 who knows the ways of com.palm.systemservice, method = setPreferences Apr 04 01:55:52 ? Apr 04 01:56:07 webos101 ? Apr 04 01:56:49 zsoc: is there anything more to the error msg? Apr 04 01:57:13 haeffb: warning: WidgetController: Could not instantiate widget ' button ', since it has not been set up. Apr 04 01:57:41 haeffb: previous to it i have an: error: Error: Cannot call method 'bindAsEventListener' of undefined, line undefined, file undefined <-- but i hadn't got to bother with that yet, unless it is somehow affecting my widget being set up Apr 04 01:57:43 which is probably is Apr 04 01:57:44 is there something before the setupWidget that could be failing? Apr 04 01:57:53 yeah i'm pretty dumb Apr 04 01:58:03 ah, yes. JS will just exit the function when it hits an error. Apr 04 01:58:47 you're trying to bindAs... something that doesn't exist. so it fails at that point and never gets to your setupWidget Apr 04 01:59:30 haeffb: ah, bind vs binAsEventListener Apr 04 01:59:34 i see Apr 04 01:59:40 haeffb: bind vs bindAs? if you don't mind.. Apr 04 02:00:22 bindAsEventListener does something slightly different. And I've never fully understood (or taken the time to learn). Apr 04 02:00:41 but use bindAsEventListener when you're setting up an event listener and bind elsewhere. Apr 04 02:01:03 got it, that's sort of what's going on here Apr 04 02:01:03 and with that, I'm going mobile. Apr 04 02:01:05 i'll figure it out Apr 04 02:01:06 ty Apr 04 02:01:23 welcome!!!! Apr 04 02:01:30 :) Apr 04 02:15:44 hmm whats in the update? Apr 04 02:15:54 had no idea it was coming Apr 04 02:16:10 <------- out of the loop Apr 04 02:16:21 flash? Apr 04 02:17:13 <------- last to know Apr 04 02:17:21 <------- on outside looking in Apr 04 02:17:34 any other metaphors? Apr 04 02:18:01 once upon a time I found the changelog on the palm website Apr 04 02:18:23 <------ watched terrible 3d movie tonight Apr 04 02:18:38 i loved clash of the titans as a ked Apr 04 02:18:41 kid Apr 04 02:18:49 .....so sad Apr 04 02:21:29 oh good, i can properly connect to my bmw Apr 04 02:21:42 fantastic Apr 04 02:24:15 haeffb_pre: small ping, for your small client Apr 04 02:24:28 * zsoc ponders if it's important enough to make someone's pocket buzz Apr 04 02:25:58 ponder first. then buzz. other way around wastes the pondering. Apr 04 02:26:37 crap Apr 04 02:26:46 I hope you weren't in an important business meeting Apr 04 02:26:49 or having dinner Apr 04 02:26:58 what am i kidding, you are the silly one with wirc open ;) Apr 04 02:28:10 turns out, it wasn't important enough. Apr 04 02:28:11 watching x-files movie Apr 04 02:28:19 oh, go enjoy your movie :D Apr 04 02:28:35 u r old aren't u haeffb_pre Apr 04 02:28:45 not much is less important than that Apr 04 02:28:53 u still think she's hot? Apr 04 02:29:20 scully? Apr 04 02:29:25 yeah Apr 04 02:29:46 she's younger than me...so... Apr 04 02:30:13 so with that rational, betty white is hot too? Apr 04 02:30:29 lol Apr 04 02:31:40 just for that, I'm sending you my new app to test. Apr 04 02:32:13 the toledo thing? Apr 04 02:33:01 yeah. check your inbox. Apr 04 02:33:26 back to mobile/movie. Apr 04 02:34:59 she's ok i guess Apr 04 02:35:38 i could see why u like her anyway haeffb_pre Apr 04 02:35:55 she was funny in those superbowl commercials Apr 04 02:44:36 wow, im sad - reading palm market trends..... i've been enjoying learning js and webos Apr 04 02:45:00 surely this isnt a wasted effort?! Apr 04 02:45:14 i like my pre Apr 04 02:45:18 ...sad Apr 04 02:45:36 well at least your css and js skills can be applied elsewhere Apr 04 02:45:54 heh, i teach high school (not computers) Apr 04 02:46:57 palm may go under, but with any luck webos will find a new home Apr 04 02:47:29 i really do like learning this stuff, and really have no desire to switch to java or c or microjava whatever blackberry uses Apr 04 02:48:07 still... i like my pre Apr 04 02:48:22 most people do Apr 04 02:48:37 i'm hoping to see 2nd gen hardware sometime early summer Apr 04 02:51:19 ok, enough depression - i'd like to finish my little app Apr 04 02:51:33 anyone know of a simple filterlist or filter field tutorial? Apr 04 02:51:43 (not the one from o'reilly's newsreader) Apr 04 02:52:55 BigBiff, I can paste something for you... Apr 04 02:53:07 cooool Apr 04 02:53:47 o'reilly's is in 37 different parts, with not much explanation Apr 04 02:53:55 hurts me Apr 04 02:57:40 http://www.pastie.org/902304 Apr 04 02:58:39 AGENDA.allEvents is the entire list. the filterfunction pares that down to what matches the filter (AGENDA.someEvents) and then to just what's requested by the widget (subset) Apr 04 02:59:31 and I'm matching the filter to anything in the item subject, note and location. Apr 04 02:59:34 hope that helps. **** ENDING LOGGING AT Sun Apr 04 02:59:58 2010