**** BEGIN LOGGING AT Tue Feb 23 02:59:58 2010 Feb 23 03:01:38 Can anyone think of a good name for a BBM style chat application? Feb 23 03:02:05 I was thinking "Mojo Messenger" but that would be rejected by Palm Feb 23 03:03:36 <_azdak> hmmmmm Feb 23 03:04:18 TinCans Feb 23 03:04:39 <_azdak> What else differentiates it? Feb 23 03:04:45 <_azdak> that's pretty good Feb 23 03:06:06 Could i use Mojo with a (tm)? Feb 23 03:06:58 <_azdak> Tibfib- They seem pretty against that sort of thing in the docs Feb 23 03:07:47 hi all! Feb 23 03:07:57 yeah.... I'll have to message chuq if/when he gets on.... Feb 23 03:08:09 I know they are against using Palm Feb 23 03:08:19 hi Jenp Feb 23 03:08:25 <_azdak> Hi JenP Feb 23 03:08:40 hi _azdak Feb 23 03:08:43 hi Tibfib Feb 23 03:09:21 <_azdak> Tibfib- come to think of it, I think they *do* suggest "blahblah for WebOS" or something, so who knows Feb 23 03:11:31 hello JenP Feb 23 03:11:41 hey LoneStar99 how ya doing? Feb 23 03:12:06 good, working on JSON stuff Feb 23 03:12:23 cool! Feb 23 03:13:35 so what JSON stuff are you working on? Feb 23 03:17:42 <_azdak> Do any of yall have any secret elipse-ninja version tracking techniques? Feb 23 03:17:44 hey JenP: Feb 23 03:18:00 hi haeffb_pre! Feb 23 03:18:03 JenP: adding a suggestive search box to http://uoid.me/palm8 Feb 23 03:18:36 ah cool LoneStar99 Feb 23 03:18:48 <_azdak> cause right now I'm just cluttering up my project explorer with copy-pasted backups and feel like a dufus Feb 23 03:19:35 So i've got an issue with a dialog... After I close the custom dialog, i need to call a function on the main scene. How would i do this? I'm not seeing any way to listen for the dialog to close. I can't call it on deactivate of the dialog because the function is not part of hte dialog assistant. Any ideas? Feb 23 03:20:29 _azdak: i do the same app100, app101, app102 etc... so much for version tracking... Feb 23 03:21:17 Should i just give up and make the dialog into another scene? Feb 23 03:22:19 Tibfib: is the main scene the one instantiating your custom dialog? Feb 23 03:22:49 yep Feb 23 03:24:51 you should be able to pass an arbitrary number of arguments to your dialog's constructor.. so pass a reference to your main scene's function, store it in the scope of that dialog, and call it in your deactivate Feb 23 03:26:30 <_azdak> LoneStar99: Yeah. My kingdom for a decent WebOS IDE Feb 23 03:29:22 my project explorer is also getting bloated... 20 and counting Feb 23 03:30:03 kmudrick: okay that makes sense, except for the middle part. Feb 23 03:30:31 Okay, the first 3/4ths...>.< Feb 23 03:30:40 Pass it in the model? Feb 23 03:30:45 <_azdak> Right? are folders to much to ask haha? Feb 23 03:32:04 I understand what you mean, but don't quite understand how to get there. Feb 23 03:32:09 1 sec Feb 23 03:33:25 you are probably doing this.controller.showDialog() in your main scene right? and passing parameters, like assistant: new SomeAssistant(this) ? Feb 23 03:33:50 yeah Feb 23 03:34:12 well do assistant: new SomeAssistantDialog(this, this.whateverYouWantCalledOnComplete.bind(this)) instead Feb 23 03:35:07 and in your SomeAssistantDialog, the initialize is now initialize: function(sceneAssistant, functionToBeCalledAtEnd) { .. } Feb 23 03:35:56 tibfib: look on webos101 for a custom dialog example. Feb 23 03:36:56 or do what kmodrick suggests... Feb 23 03:38:12 w00t, thanks kmudrick Feb 23 03:38:15 got it to work Feb 23 03:38:20 cool Feb 23 03:38:23 thanks also haeffb Feb 23 03:38:32 That would have been useful Feb 23 03:38:34 :) Feb 23 03:49:58 anyone know how I would parse the following: http://pastebin.com/d4f727f7d Feb 23 03:50:38 since there are no child names, not sure how to do it... Feb 23 04:00:46 LoneStar99: what about it are you trying to parse? Feb 23 04:06:37 summatusmentis: i just want to get the Titles without the JSON symbols Feb 23 04:07:28 I'm not a web dev in any way, I'm not sure what you mean by JSON symbols, the [ " and , ? Feb 23 04:08:24 yeah without all that stuff, just the titles Feb 23 04:09:44 <_lance_> LoneStar99: that looks like a literal array, not json Feb 23 04:10:02 <_lance_> might be able to do something with eval() Feb 23 04:10:58 nah, just split it Feb 23 04:11:07 javascript can split string sright? Feb 23 04:11:13 _lance_ it does not look like json either but is valid json at .jsonlint.com Feb 23 04:11:25 <_lance_> var titles = eval(' '); Feb 23 04:11:37 javascript looks like it can do a split string, or you could use a regex Feb 23 04:11:40 http://www.regular-expressions.info/javascript.html Feb 23 04:11:54 first, trim the [ ] off each end Feb 23 04:12:10 then arraystring.split('"') Feb 23 04:12:14 thats ' " ' Feb 23 04:12:42 sorry first arraystring.split(',') Feb 23 04:12:52 i know how to parse conventional JSON, but this one is a bit tricky since it has no child names etc..... Feb 23 04:12:59 <_lance_> that works.. codeslaw's method would be faster than eval too Feb 23 04:13:10 which returns an array of strings, then .split("'") Feb 23 04:13:38 which will probably return an array of length 3, something like [null, "your title", null] Feb 23 04:13:59 i dont know the nuances of js, but split would be fast like lance said Feb 23 04:14:19 ok, will try in abit Feb 23 04:14:39 <_lance_> eval is simpler codewise but it has more runtime overhead Feb 23 04:15:13 ya, and eval screws with code compressors, if you use one Feb 23 04:20:20 anyone have experience with file uploads ? Feb 23 04:23:17 http://code.google.com/p/json-sans-eval/ Feb 23 04:24:17 Or Feb 23 04:24:17 http://www.json.org/json2.js Feb 23 04:26:26 codeslaw: file uploads from a device? Feb 23 04:26:37 LoneStar99: yes Feb 23 04:26:54 i need to post 4 text fields and an image selected from the device Feb 23 04:28:35 codeslaw: it might be easier to bring in the page via: webiew, and upload that way... just an idea.. Feb 23 04:28:56 hhmmm Feb 23 04:29:59 after all the images and text are going to the server... Feb 23 04:31:18 yep Feb 23 04:34:16 gonna test that out Feb 23 04:35:55 cool Feb 23 05:18:24 lol no worries Feb 23 05:50:18 ok just sent you a screen shot Feb 23 05:54:52 what's the problem? Feb 23 05:58:08 oh no problem...I typed in the wrong window Feb 23 06:18:36 Gotta love this one: http://twitter.com/webOSdev/status/9514593229 ;-) Feb 23 07:20:24 testing Feb 23 07:36:36 LoneStar99: test failed Feb 23 07:38:02 lol, Feb 23 07:38:29 my wifi connection sucks, so need to test if I am still on here and there Feb 23 07:39:31 jfelectron: what is the original link to the suggestive search you worked on? Feb 23 07:39:44 let me pull it up Feb 23 07:40:54 codeslaw: you'll want to encode the contents as base64 as then just post it to a server Feb 23 07:41:15 finally have a chance to work on the suggestive search Feb 23 07:42:24 LoneStar99: here's the orig http://www.interiders.com/2008/02/18/protomultiselect-02/ Feb 23 07:42:25 jfelectron: might have a suggestive search that is 80% smaller in code, found some of my old code might be able to be migrated... Feb 23 07:42:46 yeah....its crazy huge...but the UI is nice Feb 23 07:43:05 its local...so what do I really care about the size :) Feb 23 07:43:22 you can trim it down if you remove prototype from it Feb 23 07:43:36 which is in the protoblahblah.js file Feb 23 07:44:31 oh ok, yeah the demo is reallt nice Feb 23 07:45:36 most of the size is coming from scritaculous Feb 23 07:45:51 which could be used for other things...has some cool UI behaviors Feb 23 07:46:38 in general I've found that prototype friendly code just has to be hacked to use this.controller.get and this.controller.window ...etc Feb 23 07:46:47 kinda funny the code is so large Feb 23 07:46:58 for a little box...yeah Feb 23 07:47:29 but seriously its all the in libraries included Feb 23 07:47:43 the actual classes are not that huge Feb 23 07:48:18 speaking of big, adobe products take the cake, in a few releases their software has reached the 1Gig mark Feb 23 07:49:01 and the iphone SDK is 1.5 Gigs or some shit Feb 23 07:49:07 holy crap Feb 23 07:49:16 but they have all the interface builder junk Feb 23 07:49:39 and C code in general has a lot of overhead Feb 23 07:49:47 Obj-C not withstanding Feb 23 07:49:51 lots of libraries and shit Feb 23 07:49:57 that was a turn off, back in the day, - 1 gig+ download to build an app.... Feb 23 07:50:10 turn off for me that is Feb 23 07:50:31 pretty crazy...but you *could* do it with just a text-editor, web browser and the emulator :) Feb 23 07:51:37 yeah Feb 23 07:51:38 I've played around with interface builder (not for iphone but normal OS X cocoa) and its kinda nice...but the code it generates is so freaking complex its impossible to edit as a noob Feb 23 07:52:16 though I feel Ares is like that...I've tried laying stuff out with it and then trying to edit things by hand...but there is no documentation on the chrom.js stuff Feb 23 07:52:21 chrome.js that is Feb 23 07:52:59 man....in an attempt to shorten the oauth workflow down...I literally spent a good chunk of my day working out the stupid header and signing....its ridiculous Feb 23 07:53:36 the parameters have to be lexicographically sorted, doubly escaped and then signed with HMAC-SHA1, which is then escaped again ! Feb 23 07:53:45 that's crazy, did u get it working? Feb 23 07:53:51 yeah...its working Feb 23 07:53:54 finally Feb 23 07:54:09 sounds complex Feb 23 07:54:25 its secure...but its freaking pain for developers imo Feb 23 07:55:57 you jump through a bunch of hoops just to request a token...you get the user to authorize that token via signing into their google accoount and then the authorized token gets passed to a callback url (using google app engine), then you take that authorized token and request an access token Feb 23 07:56:44 they'll have to cutout the url callback thing to make it really mobile friendly Feb 23 07:58:30 yeah that sucks Feb 23 07:59:04 but secure Feb 23 08:00:22 do you have the suggestive code adding those cool little boxes? Feb 23 08:00:38 now O have the initial and final requests being done from WebOS, I just need a WebView for the middle part and I just have a listener that detects the redirect and pulls the token from the url Feb 23 08:00:51 yeah....mine creates the boxes...its sweet Feb 23 08:01:30 yeah looks awesome Feb 23 08:01:32 at least G is nice enough to have mobile formatted authentication page, which you can request Feb 23 08:02:22 yeah that is great instead of some bloated web page for computers Feb 23 08:03:58 they have added video images for apps Feb 23 08:03:58 sorry links Feb 23 08:05:35 a la Bing Feb 23 08:06:16 there was a raucus when Bing first came out because hovering over porn video links would preview them Feb 23 08:06:56 oh yeah i remember that Feb 23 08:08:11 i use the bing api, but always forget about the search Feb 23 08:09:07 morning Feb 23 08:09:24 ping noaXess Feb 23 08:09:55 mornign Feb 23 08:10:45 LoneStar99: what else beside search does bing API provide? Feb 23 08:11:44 images, news, search, video, and a few others, Feb 23 08:11:54 it is actually a nice api Feb 23 08:12:02 well documented Feb 23 08:13:46 and maps Feb 23 08:17:56 alrignt chat later, time to feed the chickens Feb 23 08:18:09 and goats Feb 23 08:20:23 ok...you have small farm? Feb 23 08:20:38 neah, jk, gonna go to sleep Feb 23 08:22:03 cul8er Feb 23 08:27:39 lol...ciao Feb 23 10:01:47 hi Feb 23 10:25:07 hi Feb 23 10:28:07 hi swisstomcat Feb 23 11:15:31 hello...is there a way to get the public IP of the webos device? Feb 23 11:16:14 there are several apps that provide this info Feb 23 11:16:52 Kyusaku, do you have an example? (which app) Feb 23 11:16:57 or you could go to one of those whatismyip sites Feb 23 11:17:23 homebrew or official app catalog? Feb 23 11:17:59 Kyusaku, official app catalog Feb 23 11:22:15 there's a pay app for $0.99 called MyIP Feb 23 11:22:57 but i guess lookin it up online would be cheaper Feb 23 11:24:18 hmm...I need the ip in my app, but the user shouldn't enter the ip. Feb 23 11:25:04 there is a free homebrew alternative called What is my IP? Feb 23 11:25:30 oh Feb 23 11:25:35 in the app Feb 23 11:25:58 blah it's ttoo early for me Feb 23 11:26:03 also if you require rooting you could easily look it up via ifconfig Feb 23 11:26:43 can't think of it off hand Feb 23 11:27:00 $0.99 for a MyIP app. amazing. Feb 23 11:27:23 rwhitby: yeah I remember when I first saw it Feb 23 11:27:56 rwhitby: homebrew "graduate" if I remember correctly Feb 23 11:28:05 it never ceases to amaze me what kind of apps are $0.99 Feb 23 11:28:36 http://developer.palm.com/index.php?option=com_content&view=article&id=1548&Itemid=20 Feb 23 11:28:44 you can paypal me $0.99 for that info :-) Feb 23 11:29:03 haha Feb 23 11:29:54 rwhitby, thx...sometimes it's too easy Feb 23 11:30:40 someone should do a $0.99 app which is just links to the developer doco with a table of contents :-) Feb 23 11:32:16 rwhitby: I know I've linked to the just the reference library in general to several people who don't realize it's on Palm's site Feb 23 11:34:54 make an $10 faq-app that just links to the reference library Feb 23 11:35:12 zefanjas: did you solve your problem? Feb 23 11:35:38 So what are developer's reactions to http://forums.precentral.net/gsm-pre/231716-remove-application-updates-apps-cataloge.html#post2238933 - is it something that Preware should do? Feb 23 11:38:06 swisstomcat, yes...I changed the response format from JSON to XML ;) Feb 23 11:42:28 rwhitby: what would palm do when we enabled this? we could download free apps that we're not "supposed" to download ... of course i'd like to try out those 3d demo apps and i don't see why palm is not allowing them in the european catalog for example Feb 23 12:47:35 in ares, how can I remove a widget from the canvas? Feb 23 12:50:24 select it and press the key Feb 23 12:50:25 drag and drop works for adding but not for removing? Feb 23 12:50:43 thanks, works Feb 23 13:21:19 hallo Feb 23 13:22:08 question guys... anyone know what the "warning: indicated new content, but not active. warning message is about? Feb 23 13:22:41 where? Feb 23 13:22:48 in var/log/messages Feb 23 13:22:59 might be related to a list? Feb 23 13:23:00 if you're palm-loggin or putty-ing in and tailing the log Feb 23 13:23:26 [20100223-00:05:23.533320] info: =========> Calling palmInitFramework330, /usr/palm/frameworks/mojo/mojo.js:142 Feb 23 13:23:27 [20100223-00:05:23.996490] info: Requested submission : 330 Feb 23 13:23:27 [20100223-00:05:24.011826] info: Current locale is en_us Feb 23 13:23:27 [20100223-00:05:24.251652] warning: indicated new content, but not active. Feb 23 13:23:51 it's showing up before StageAssistant.prototype.setup ... is called, even. Feb 23 13:24:26 hmm Feb 23 13:24:39 and then the other message I can't seem to find any information on is "Warning: document has scroll top set, resetting." Feb 23 13:36:37 wow this makes nooooo sense Feb 23 13:37:00 firefox uses all of my CPU animating an image (moving it) via jquery Feb 23 13:37:40 my PHONE uses less CPU Feb 23 13:39:01 things I've tried to see if they were the cause: using instead of background-image. using a smaller image (all the way down to 1px), animating faster/slower (to the point where you can see it move each time), trying different directions... Feb 23 13:39:05 honestly it makes no sense Feb 23 13:39:16 IE uses like half the CPU Feb 23 14:20:07 rehi Feb 23 14:36:48 Hello, i have a problem with dynamic lists. When the list grows and call in the same scene another function that fills the list, the list-position is not at top, it still is on last scroll position, when the new list is smaller, an empty list is displayed, after scrolling up i see the new content... Feb 23 14:36:55 puhh, long post :-) Feb 23 14:40:58 try this.controller.getSceneScroller().revealTop() Feb 23 14:41:51 unless you've setup your own scroller for the scene Feb 23 14:47:07 mhmm I'm using Ares, and i have putted a scroller in my scene Feb 23 14:57:53 Thnx for the hint BMyers_ : I've got it in Ares with this.controller.get('scroller').mojo.revealTop() Feb 23 14:59:21 Preware 0.9.28 with country display support is now in the testing feed. Feb 23 15:15:00 ohayou Feb 23 15:16:48 Ohayō gozaimasu Feb 23 15:17:34 how long does a price change usually take to go into effect on an app? Feb 23 15:18:56 it's just a metadata update? Feb 23 15:19:28 i've submitted an open-source app last friday, have not heard a thing Feb 23 15:20:47 yeah just a metadata update Feb 23 15:36:58 hey codeslaw Feb 23 15:38:10 * sugardave is one step closer, yet so many away, to a groovy Drupal + CCK + Views device counting system. Feb 23 15:38:45 hello sugardave Feb 23 15:39:16 i was working on some database stuff last night and let me tell you, it's very tricky Feb 23 15:39:33 How do I use a webview widget to display local content? Question being: what would the path be to an html file within the app? Feb 23 15:39:40 i need a function that either inserts or updates a table, depending if the data already exists Feb 23 15:39:55 zinge: where is the html file stored? Feb 23 15:40:33 Root of my app, or in the app folder within the app.... anywhere within that app that it is easy to call. Feb 23 15:41:17 if i display local stored images, i use the path "images/xy.png", where images is a subfolder of my app Feb 23 15:41:20 swisstomcat: I think it's 'REPLACE INTO'...let me find some code Feb 23 15:41:35 oh, really? haven't heard of that Feb 23 15:41:54 And that's from within the scene assistant? Feb 23 15:42:57 crap... I keep coming on here to ask question sas I have to leave class. Thanks! Feb 23 15:43:11 swisstomcat: INSERT OR REPLACE INTO Feb 23 15:43:26 oh cool Feb 23 15:43:39 yes, it's very handy Feb 23 15:43:40 i was trying a select first and then insert or update Feb 23 15:43:54 now you tell me that there's an easier way :) Feb 23 15:44:05 hehe, sorry been away for a couple days :D Feb 23 15:44:58 i would also have to increment one value on update Feb 23 15:45:39 well, I'm definitely not SQL-savvy....I can create tables, insert and select...that's about it :D Feb 23 15:45:44 don't know joins Feb 23 15:45:51 i'll figure it out .. thanks for the tip Feb 23 15:48:21 morning all Feb 23 15:48:27 mornin' Feb 23 15:48:43 they say it's supposed to snow here today, but looks like it will just be cold rain Feb 23 15:58:07 bah, reboot already Feb 23 16:18:35 any clues as to why autofocus = true and focusMode: Mojo.Widget.focusSelectMode, doesnt always work when pushing to a new scene? Feb 23 16:19:43 on a text field input Feb 23 16:21:07 if i tap into another field and then back to the original text field I'm trying to autofocus it'll select all the text Feb 23 16:21:31 so i guess it's the autofocus = true part thats having trouble Feb 23 16:26:30 morning all. Feb 23 16:28:07 hey sugardave: Feb 23 16:28:34 BMyers_: heya Feb 23 16:28:48 snow? Feb 23 16:28:49 let's see if I can call the right meeting # this week Feb 23 16:28:57 no snow....a little sleet so far Feb 23 16:29:12 here in NY it's snowing like crazy Feb 23 16:29:30 gonna go mix up some 2 stroke oil for the blower soon Feb 23 16:29:52 little snapper snow blower is the BEST piece of machiner I have ever owned Feb 23 16:30:16 if it ever breaks I'm moving back to phx. Feb 23 16:30:42 I like pu-ho-nix Feb 23 16:30:57 it was ok for 20 yrs Feb 23 16:32:20 sugardave: is there a trick to getting autofocus working with selectmodeSelect Feb 23 16:32:28 when loading up data from sql? Feb 23 16:33:06 hmmm....not sure if I've used it yet Feb 23 16:33:30 i have a data display/input scene with text fields Feb 23 16:33:43 if no id, it's and input scene Feb 23 16:33:55 if id, i load up old data and populate the fields Feb 23 16:34:32 having a heck of a time getting it to auto focus/select when loading from db and displaying text in fields Feb 23 16:34:40 hmmm...do you have other fields that are default focus and stealing your attempt? Feb 23 16:34:56 checked that.. Feb 23 16:35:42 in the success query i even do a .focus() on the text widget Feb 23 16:35:44 no luck Feb 23 16:35:55 morning folks Feb 23 16:35:56 the field has focus but it's not selected Feb 23 16:36:07 hi LoneStart99: Feb 23 16:36:26 if i tap to another field and back its selected Feb 23 16:41:16 power went out Feb 23 16:41:39 but hey, my notebook has a built in ups Feb 23 16:46:06 hi everyone.... Feb 23 16:46:56 Does anyone know to make the .exe file of an application in palm webos??? Feb 23 16:47:19 webos apps arnt compiled they are packaged Feb 23 16:47:26 how? Feb 23 16:47:30 in teh sdk folder there is a batch file called palm-package Feb 23 16:47:45 ohk Feb 23 16:47:46 you give it the path to the folder and it packages it Feb 23 16:47:59 then you can use palm-install to install it to your emulator or device Feb 23 16:51:35 digitalowers:when i tried to run the palm-package.bat it auto matically closes as soon as it starts Feb 23 16:53:20 sorry i mean digitalpowers:when i tried to run the palm-package.bat it auto matically closes as soon as it starts Feb 23 16:53:49 just do palm-packacage Feb 23 16:54:47 *palm-package i miss spelt it last time Feb 23 16:55:09 Yatharth: try doing that from a command prompt window instead Feb 23 16:55:23 sounds like you're double clicking the palm-package batch file? or trying to execute it from run? Feb 23 16:57:50 malik:Actually i want that nobody uses my source code they just use the application. Feb 23 16:57:59 So how should i do that Feb 23 16:58:23 you don't compile your code in webos, it is html/css and javascript Feb 23 16:58:59 ohk Feb 23 16:59:05 palm-package creates a .ipk file which is just an archive of your package directory for easy installation. you don't compile your code as in traditional programming Feb 23 16:59:58 ya right. Feb 23 17:00:13 with the introduction of the PDK, however, you can have proprietary libraries written in C(?) which are compiled, but the beauty of webos is that it's all (mostly) open Feb 23 17:00:17 Yatharth: in other words, people are going to be able to see your code if they really want to Feb 23 17:00:54 just as you can see the source of anyone else's app, including the ones that come on the phone Feb 23 17:01:53 sugardave:Oh really????I mean all the applications developed in palm webOS are open Source?? Feb 23 17:02:25 Ohk. Feb 23 17:02:51 Yatharth: not "open source" so much as completely unprotected :D Feb 23 17:04:06 sugardave:ohk.. Feb 23 17:05:54 How can i see the source code of inbuilt applications in palm webos ??? Feb 23 17:06:04 vi Feb 23 17:06:27 Noe the sample code but the inbuilt features it supports? Feb 23 17:06:32 *not Feb 23 17:06:39 Yatharth: shell into the device and use vi, or scp the source folder somewhere Feb 23 17:09:19 sugardave:please tell in more detail....i din get what you said last Feb 23 17:12:35 whats vi or scp? Feb 23 17:15:19 Yatharth: vi is a text editor. scp is secure copy and way to copy files between machines Feb 23 17:15:28 google it Feb 23 17:16:43 gkatsev:thanx. Feb 23 17:18:00 baeh Feb 23 17:18:12 why do I need to register everytime.... Feb 23 17:42:30 MetaView: you have to register your nick every time you attach to the irc server Feb 23 17:42:57 yes, it's everytime when I wake up my laptop Feb 23 17:43:41 oh, because you are getting disconnected...might try 'screen' if you use Linux Feb 23 17:43:55 btw, I have one function a in my main assistant and call this from another assistant, now I need to call another function b from within function a Feb 23 17:44:06 sugardave: no linux, windows Feb 23 17:44:37 and the laptop goes to sleep mode when I'm not on keyboard Feb 23 17:44:43 bummer Feb 23 17:44:50 back to my question: how can i do it? Feb 23 17:45:13 function b will need to 'exist' before function a is called, and be in scope, obviously Feb 23 17:45:22 I have this.main in the second assistant and call this.main.doExport() Feb 23 17:45:36 exist? Feb 23 17:46:14 when i call function b from a I tried: this.a(); Feb 23 17:46:37 but it throws an exception as this is still the other assistant Feb 23 17:48:22 MetaView: hmm, not sure what exactly to tell you...I generally make functions that I want to call in other places like this: var myFunctionA = function() {//do stuff}; var myFunctionB = function() {myFunctionA(); // do other stuff} Feb 23 17:48:43 and I have them in different assistants, for example Feb 23 17:48:52 hm Feb 23 17:49:06 ok, thx, need to check it out later Feb 23 17:49:13 as long as the assistant with myFunctionA is loaded in sources.json before myFunctionB executes, it works well Feb 23 17:50:36 do you think I could just do stuff like this: this.main.doA(this.main.doB ) and use the function reference inside doA then? Feb 23 17:52:17 does 'onKeyUp" work on webos? Feb 23 18:17:36 slightly offtopic: anyone here good with jquery? Feb 23 18:23:48 cobalt027: I'm pretty good with it. I haven't tried using it in a webOS project yet though... Feb 23 18:24:56 Robdor: this isn't specifically a WebOS question (yet). Feb 23 18:25:12 can I PM, so not to spam the channel? Feb 23 18:25:40 Sure Feb 23 18:27:05 heya Feb 23 18:34:48 the woz! Feb 23 18:36:47 anyone used "keyup" and "keydown" on mjo? Feb 23 18:36:58 hallo noaXess Feb 23 18:37:13 howdy swisstomcat Feb 23 18:37:18 howdy Feb 23 18:41:13 swisstomcat: have you used "Mojo.Event.keyup" or "Mojo.Event.keydown" Feb 23 18:44:02 in what context? Feb 23 18:48:40 assasins creed is pretty cool .. so is asphalt5 Feb 23 18:48:45 and fast Feb 23 18:51:22 swisstomcat: something similar to this http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onkeyup Feb 23 18:52:01 in a textfield? Feb 23 18:52:07 yeah Feb 23 18:52:23 i thought i read something about textfield events Feb 23 18:53:36 the docs do not really say anything Feb 23 18:53:47 swisstomcat: I had my daughter give your animal matching game a good run through last night. Everything seemed to work correctly. She wasn't very big on the mode that you match up a picture with the sound though. I think some of the animals sounded so similar that she didn't know what to match them up with. Feb 23 18:54:34 i have to check the forum Feb 23 18:54:47 robdor: thank you for your feedback Feb 23 18:55:05 LoneStar99: what are you trying to do? Feb 23 18:56:18 the autosuggest/autocomplete thingy is full of keyup and keydown listeners Feb 23 18:56:51 swisstomcat: what's your app name? Feb 23 18:57:20 fiftycal_wrk: it's a private beta for now ... a type of animal memory for kids .. wanna test? Feb 23 18:59:57 how do the automatic update notifications in apps work? Do they check the palm feed? Feb 23 19:00:30 jfelectron: yeah trying to figure out how to get a div to show up on "keyup" Feb 23 19:01:17 jfelectron: probably calling the mother ship Feb 23 19:01:42 jfelectron: some folks have a file in a sever with the current app release, and an ajax call compares the device version with the server file Feb 23 19:01:42 are there are any methods or functions that the mojo framework supply that allow for cross site POSTing of data? Feb 23 19:02:21 jfelectron: i have some backend php stuff for app registration Feb 23 19:03:44 with access to the resulting data? Feb 23 19:03:59 cobalt: what are you trying to do? Feb 23 19:04:07 Lonestar99: this.controller.document.addEventListener('keydown',this.tagSuggest.handleEnter.bind(this.tagSuggest),true); Feb 23 19:04:14 swisstomcat: yeah I would love to... but I have no actual device. If you're willing to send the apk, I can run it on the emulator? Feb 23 19:04:19 LoneStar99: just replace keydown with keyp and Feb 23 19:04:21 i need to post some data to a url. i get back jsonp. Feb 23 19:04:35 fiftycal_wrk: it won't work on the emulator because it uses sound Feb 23 19:04:41 cobalt027: use google app engine Feb 23 19:04:50 jfelectron: ?? Feb 23 19:05:41 cobalt027: what type of data are are trying to post? Feb 23 19:05:55 do you want to post xml and get back json or something else? Feb 23 19:06:12 do you have access to a server, cobalt? Feb 23 19:06:29 jfelectron: im posting stuff like user=joe pass=pass - stuff like that Feb 23 19:06:37 swisstomcat: no. im trying to access an API. Feb 23 19:06:41 cobalt027: as query params? Feb 23 19:06:48 or a POST body? Feb 23 19:07:29 post params Feb 23 19:08:06 cobalt027: first, generate the the JSON on device using object.toJSON() and then just post that wherever you need to with AJAX.Request Feb 23 19:08:17 cobalt027: sorry got disconnected Feb 23 19:09:12 jfelectron: ah. is there documantation for the AJAX thing? Feb 23 19:09:40 i can give you an example Feb 23 19:09:45 yes please. Feb 23 19:09:56 cobalt027: I'm doing a series of screencasts building a webOS application and I cover doing that in the first screencast. http://robmerrell.github.com/gitopotamus/ Feb 23 19:10:16 It may help Feb 23 19:11:04 http://pastie.org/839116 Feb 23 19:11:43 jfelectron: "Mojo.Event.listen(this.controller.document,Mojo.Event.tap,this.suggest.bind(this));" works but "Mojo.Event.listen(this.controller.document,Mojo.Event.keydown,this.suggest.bind(this));" does not... Feb 23 19:12:24 swisstomcat: nice. where is ParseResult defined? Feb 23 19:12:43 is there any documentation on the Ajax object? Feb 23 19:13:14 http://pastie.org/839116 Feb 23 19:13:27 LoneStar99: what key are you trying to capture...enter is different Feb 23 19:13:30 cobalt027: It is at http://api.prototypejs.org/ Feb 23 19:13:39 colbalt027: http://www.webos101.com/Accessing_Web_Services Feb 23 19:13:39 http://www.prototypejs.org/api/ajax/request Feb 23 19:14:05 so i would need to include this in my code? prototype.js? Feb 23 19:14:16 no Feb 23 19:14:18 it's builtin Feb 23 19:14:21 ah Feb 23 19:14:25 prototype is builtin Feb 23 19:14:28 jfelectron: the "text field"
Feb 23 19:14:37 LoneStar99: so you don't care if we pound that JSON parser? Feb 23 19:15:18 not really, not sure if it is still there... let me check Feb 23 19:15:36 it converts xml to json on the fly Feb 23 19:15:40 jk....I have one running on GAE Feb 23 19:16:53 the 3rd party API that im using wants me to supply a 'c' parameter. the c= param is the callback to be used. so, if i call it with a c=param of 'somefunc' i get a response that looks like this: somefunc({data}). will that work? Feb 23 19:17:52 LoneStar99: try the addEventListener syntax....from forums I think that this.controller.listen doesn't work in this case Feb 23 19:18:45 k forums? Feb 23 19:19:07 LoneStar99: what are k forums? Feb 23 19:19:45 cobalt027: you'll have to call the function yourself in you onSuccess handler for the request Feb 23 19:20:12 lol, meant what forums? Feb 23 19:20:16 unless you do eval() on the response string....but that's an invitation for code injection so I'd advice against that Feb 23 19:20:35 LoneStar99: palm and precentral, don't remember where exactly Feb 23 19:20:41 so far my tests work with a tap.... Feb 23 19:20:45 oh ok Feb 23 19:21:06 this.controller.document.addEventListener() as I did above works for me Feb 23 19:21:22 jfelectron: ok. not too bad Feb 23 19:21:23 thanks Feb 23 19:22:03 np Feb 23 19:22:34 cobalt027: how is the response formatted? XML,JSON,...plain text? Feb 23 19:22:41 JSON Feb 23 19:23:00 it can be formatted either XML or JSON. i choose. f=(xml|json) as a param to the API Feb 23 19:23:42 OK...then as the webos101 example shows set evalJSON: true in your request and your handler will be handed a JS object generated from the JSON Feb 23 19:33:36 So happy people are using that. Feb 23 19:33:47 hey roy Feb 23 19:33:56 hi, re Feb 23 19:34:01 hallo metaview Feb 23 19:34:10 hi swisstomcat Feb 23 19:34:18 humor for the day: Go to http://google.com/ and do a search for "Where can I find Chuck Norris?" and hit the "I'm feeling lucky" button Feb 23 19:34:30 jfelectron: getting closer to a slim suggestive search! Feb 23 19:34:49 chuck or chuq norris? :) Feb 23 19:35:01 haha, Chuq Norris. Feb 23 19:35:15 :) Feb 23 19:35:39 pretty funny Feb 23 19:35:41 you don't find chuq, he finds you Feb 23 19:36:18 Chuck Feb 23 19:36:24 with chuq it open youtube Feb 23 19:37:54 and the result is different between google.com and google.de Feb 23 19:39:40 explanation: http://www.nochucknorris.com/link.htm Feb 23 19:42:39 oh no, we made him leave Feb 23 19:43:32 oh my god! they killed kenny Feb 23 19:43:57 hmm, my open source app is "being reviewed" since 02/19 Feb 23 19:44:11 i thought that they are not reviewed? Feb 23 19:44:23 or just not charged the review fee? Feb 23 20:02:04 May I ask you about some English help? Feb 23 20:02:11 sure Feb 23 20:02:18 Look at this sentence, makes it sense? Feb 23 20:02:28 swisstomcat: thx, I more asked about a native :D Feb 23 20:02:30 You enabled the track-log feature. The device will stay awake (even if the screen is off) as long as this ftr is enabled and MapTool is running. Disable track-log to allow the device to fall asleep again. Feb 23 20:04:41 mmmkay Feb 23 20:04:53 When I start listening with this.controller.listen(document, 'acceleration', this.handleAcceleration.bind(this)); How do I stop Listening? this.controller.stopListening(document, 'acceleration', this.handleAcceleration); does not work. Anyone can help me? Feb 23 20:04:56 sound good to me Feb 23 20:05:16 thx :) Feb 23 20:05:26 sebastianha: create the listener first before using it in this.controller.listen Feb 23 20:05:36 that way you can use the listener in stoplistening again Feb 23 20:06:02 jfelectron: u still here? Feb 23 20:07:02 sebastianha: e.g this.handleButtonNew=this.handleButtonPressNew.bindAsEventListener(this); Mojo.Event.listen(this.controller.get("buttonNew"), Mojo.Event.tap, this.handleButtonNew); Feb 23 20:08:49 swisstomcat: still reviewed, just no fees. Feb 23 20:09:08 i see Feb 23 20:09:20 guess i have to wait then Feb 23 20:09:33 swisstomcat: Thats it, Thank you very much! Feb 23 20:11:04 JSTop shows MapTool 2 times Feb 23 20:16:15 Robdor: watching your screencast, very informative, even though been build apps for some months now Feb 23 20:23:22 i have a database question Feb 23 20:23:32 swisstomcat: ask Feb 23 20:23:45 who played with the option "on conflict replace"? Feb 23 20:24:07 e.g the field id: primary key on conflict replace Feb 23 20:25:15 not me, only know such a ftr from mysql Feb 23 20:25:55 INSERT ... ON DUPLICATE KEY UPDATE Feb 23 20:26:12 yeah, but that's only supported on mysql, not sqlite Feb 23 20:27:15 insert or update Feb 23 20:27:31 insert or replace Feb 23 20:27:44 anyone know why palm-log is just giving me this "[20100223-14:26:41.518967] info: =========> Calling palmInitFramework200_72" instead of the logs from the app? Feb 23 20:27:49 it jsut started doing it randomly and I have no clue what I did to cause it Feb 23 20:28:06 device or emulator? Feb 23 20:28:16 emu Feb 23 20:28:27 all apps are returnign that Feb 23 20:28:35 yeah, they all do Feb 23 20:28:41 but only this? Feb 23 20:28:46 yeah Feb 23 20:28:50 only that Feb 23 20:28:52 strange Feb 23 20:29:00 it is like it thinks it is on a device for some reason Feb 23 20:29:10 it is only returning errors Feb 23 20:29:12 check /var/log/messages? Feb 23 20:29:35 on the emulator? Feb 23 20:29:41 yeah Feb 23 20:29:47 with ssh or novacom Feb 23 20:30:09 ssh to localhost, port 5522 and user root Feb 23 20:30:15 or novacom -t open tty:// Feb 23 20:30:17 yeah, I am novaterm'd in Feb 23 20:30:23 cat /var/log/messages Feb 23 20:30:26 it isn't showing any more logs Feb 23 20:30:32 just what palm-log returns Feb 23 20:32:30 weird Feb 23 20:32:37 did u restart the emu? Feb 23 20:32:52 I have tried restarting it, didn't rix it Feb 23 20:33:01 I am trying a palm-emulator --reset Feb 23 20:35:35 no go... still doing it Feb 23 20:39:21 any ideas? Feb 23 20:41:12 I am going to try a new isntall of palm-sdk Feb 23 20:41:21 if that doesn't fix it, I don't know what will Feb 23 20:41:33 haven't seen that behaviour Feb 23 20:44:24 swisstomcat: INSERT OR REPLACE INTO should do the 'insert if there is no primary key match, update if there is' function Feb 23 20:44:45 too bad it's not supported by sqlite Feb 23 20:44:49 yes it is Feb 23 20:44:52 I use it Feb 23 20:44:56 really? Feb 23 20:45:12 yeah, hold on and let me get komodo back up Feb 23 20:45:17 oh, sorry .. i was talking about "on duplicate key update" Feb 23 20:45:29 yeah, it does the same thing, yes? Feb 23 20:45:31 replace doesn't help in my case Feb 23 20:45:43 i can't use replace because i need to do an update Feb 23 20:45:45 replace the whole record Feb 23 20:45:47 why not? Feb 23 20:45:51 sounds like the same Feb 23 20:45:58 say i have the following table: id,name,count,stamp Feb 23 20:46:13 wtf... completely removed palm-sdk, reinstalled it... still doing it... Feb 23 20:46:29 [20100223-14:45:37.840577] info: =========> Calling palmInitFramework200_72 and that's it Feb 23 20:46:30 i want to update count and stamp on duplicate names .. that's why replace won't work Feb 23 20:46:34 the only output from palm-log Feb 23 20:46:42 hello * Feb 23 20:46:46 hi Feb 23 20:47:06 you want have name still the old one? Feb 23 20:47:07 is there actually anyone from "Palm Developer-Relations" here? Feb 23 20:47:18 uselicious: sometimes Feb 23 20:47:18 yes, metaview .. and update count and stamp Feb 23 20:47:27 sugardave: hehe..thx :) Feb 23 20:47:31 chuq the manager is here sometimes Feb 23 20:47:36 then do a select and an update on success Feb 23 20:47:51 would be the best, I guess Feb 23 20:48:01 or does anyone know of another way to get in contact with palm's developer-relations? Feb 23 20:48:03 i tried, didn't work Feb 23 20:48:09 I'm still confused, swisstomcat Feb 23 20:48:16 uselicious: the palm developer forums or pdc@palm.com Feb 23 20:48:22 sugardave: where? Feb 23 20:48:46 do you want: record0: 1, dave, 1, 1234345; record1: 2, tom, 1, 1234356 Feb 23 20:48:48 ? Feb 23 20:48:56 swisstomcat: roger, thx for the info, mate. Feb 23 20:49:06 metaview: i couldn't get it to work and on duplicate key update seemed cleaner Feb 23 20:49:08 and then another dave yields: record0: 1, dave, 2, 123777 Feb 23 20:49:15 yeah Feb 23 20:50:01 but just by using "insert into table (name,count,stamp) ('dave',1,date(now()));" Feb 23 20:50:16 it would either insert or update count and stamp Feb 23 20:50:52 i tried with a select first and then insert or update, but that didn't work Feb 23 20:51:07 INSERT OR REPLACE INTO table (id,name,count,stamp) VALUES (current_id, name, count++, date(now())) should work? Feb 23 20:52:11 guess i could try but i read that replace doesn't help in that case Feb 23 20:52:13 let me try ... Feb 23 20:52:25 this is how I update the local scores in my game Feb 23 20:53:23 with a transaction? Feb 23 20:53:36 inTransaction.executeSQL? Feb 23 20:54:03 yeah: var sql = "INSERT OR REPLACE INTO 'stats' (sid, pid, gid) VALUES (?, ?, ?)"; Feb 23 20:54:12 .... wow. I completely forgot I was in this channel. Again. Maybe I shouldn't be here during work <.< Feb 23 20:54:14 k, testing Feb 23 20:55:18 sugardave: which one is your incrementing column? sid,pid,gid? Feb 23 20:55:27 sid, I believe Feb 23 20:56:03 and you pass sid++ into the function? Feb 23 20:56:29 like you pass the other variables Feb 23 20:56:53 oh, I see your question...I thought you meant which is my primary key column Feb 23 20:57:11 (09:51:07 PM) sugardave: INSERT OR REPLACE INTO table (id,name,count,stamp) VALUES (current_id, name, count++, date(now())) should work? Feb 23 20:57:16 I pass the primary key I want to update and the updated values Feb 23 20:57:32 but then you'd have to do a select first? Feb 23 20:57:36 to get the current vlaue Feb 23 20:57:38 value Feb 23 20:57:43 that was pseudocode example...I just meant you should be able to grab your current count, increment it, then update Feb 23 20:57:46 yes Feb 23 20:57:48 I see Feb 23 20:57:57 I keep mine in an object as well Feb 23 20:57:58 back to square one :) Feb 23 20:58:06 so I can update the object and write from it Feb 23 20:58:14 i see Feb 23 21:03:58 sugardave: setting name to unique and catching that error could work Feb 23 21:04:02 morning Feb 23 21:04:08 morning rwhitby Feb 23 21:04:32 what widget do they use to get that picker button in the upper right of the sms chat view? I'm looking at the source and I can't make head nor tail of it Feb 23 21:05:33 rwhitby: installing 0.9.36 and 0.9.27 at the moment Feb 23 21:05:43 swisstomcat: 0.9.28 ? Feb 23 21:05:54 it says 0.9.27 Feb 23 21:06:06 i said to include alpha versions Feb 23 21:06:07 swisstomcat: you're using the bootstrap script? Feb 23 21:06:11 yeah Feb 23 21:12:05 sugardave: setting unique on the name coud work ,because now i'm getting a constraint error which i could catch and do an update Feb 23 21:30:19 hey christefano Feb 23 21:30:47 grmbl, db calls just fail without an error Feb 23 21:32:46 howdy swisstomcat Feb 23 21:37:21 any db cracks in the house? Feb 23 21:39:14 swisstomcat: you talk funny. Feb 23 21:39:29 eh? Feb 23 21:39:55 what is this "House" you refer to? Feb 23 21:40:45 house=this channel Feb 23 21:41:02 and why does it have cracks? Bad foundation? Feb 23 21:41:10 i'm looking for db specialists in here? Feb 23 21:41:31 :-/ Feb 23 21:41:36 yah. sorry. Just being dorky. Feb 23 21:41:54 you are really getting no error? Feb 23 21:43:04 i have an error handler but it doesn't fire Feb 23 21:43:31 pastebin your code. Feb 23 21:44:25 k Feb 23 21:46:07 lyht: http://pastie.org/839402 Feb 23 21:47:10 lyht: i'm doing an insert and if it fails on a constraint an update Feb 23 21:47:36 and does the insert work? Feb 23 21:47:41 but not the update? Feb 23 21:48:34 insert works Feb 23 21:49:01 when it updates i only get the error dialog, but no error from the transaction Feb 23 21:49:10 and no updated data Feb 23 21:49:17 oh wait Feb 23 21:49:48 * swisstomcat slaps forehead Feb 23 21:50:34 what? Feb 23 21:51:02 my sql statement was wrong Feb 23 21:51:10 but the error handler was not called Feb 23 21:52:20 you found a problem in sqlUpdateHistory? which you can fix, but you are still wondering why dao.errorHandler is not called? Feb 23 21:54:23 where did this cyrket.com come from Feb 23 21:54:26 and why wasnt i told Feb 23 21:54:27 http://www.cyrket.com/p/palm/com.biocandy.swapndrop/ Feb 23 21:54:29 sweeet Feb 23 21:55:08 yes, dawm. Sweet indeed. Feb 23 21:55:20 yeah, very cool Feb 23 21:55:34 shows all the comments, not just the few shown in the app catalog Feb 23 21:55:34 the developer saurik even came to this channel a few times Feb 23 21:55:43 plus i like how it shows a breakdown of % rated Feb 23 21:55:57 lyht: it's working :) Feb 23 21:56:11 yay! Feb 23 21:56:32 i had an error in sqlUpdateHistory Feb 23 21:56:34 nice. Now aren't you glad you had to explain what you were doing so you could solve your own problem? Feb 23 21:56:49 hehe Feb 23 21:57:16 but thank you anyway Feb 23 21:57:32 n.p. Feb 23 22:04:17 So plam refunded my submission fee... I resubmitted and again I'm out 50 bucks with my app still flagged as incomplete.... Feb 23 22:04:31 I warn every one to be careful about the app submission tool. Feb 23 22:05:11 swisstomcat, you the guy i told a million years ago i'd do the thing for that time? Feb 23 22:05:24 yeah :) Feb 23 22:05:29 swisstomcat, point me to the url again Feb 23 22:05:30 scottb: crappy. Feb 23 22:05:44 zsoc: www.thinmachine.ch/service.html Feb 23 22:06:12 http://developer.palm.com/distribution/viewtopic.php?f=65&t=5357 Feb 23 22:06:32 g'night everyone Feb 23 22:06:37 and thanks for all the help Feb 23 22:06:58 night, swisstomcat Feb 23 22:09:04 why do ppl not submit apps for Germany? Feb 23 22:09:54 you don't need a translation, even I have apps in English only and they all available in Germany Feb 23 22:11:09 I didn't submit some of my demos, because they were demos for paid apps that were only available in the US Feb 23 22:11:54 but even then, in 1 month, Germany can also access paid apps, if you submit the demos now, they might be very lucky Feb 23 22:19:35 how can i apply the box-style in ares only to a specific top, bottom, right or so? a padding: 10;0;0;0 doesn't work Feb 23 22:19:58 MetaView: your point is valid, and I should listen with both ears. Feb 23 22:20:28 rretsiem: shouldn't it be padding 10 0 0 0; Feb 23 22:20:32 with spaces? Feb 23 22:20:47 I meant padding: 10 0 0 0; Feb 23 22:21:47 i tried it also with spaces and commas Feb 23 22:22:25 when i specify only one value then it works but for all borders, and thats not what i need... Feb 23 22:22:32 your mom tried it with spaces and commas Feb 23 22:22:49 ?? Feb 23 22:22:55 * pandora-- goes back to work Feb 23 22:22:58 i have no idea whats going on Feb 23 22:23:05 :D Feb 23 22:23:12 i need to code more Feb 23 22:23:20 all this "management" shit makes me retarded Feb 23 22:24:43 rretsiem: css often kicks my butt, but Feb 23 22:25:04 according to w3schoolt it should be spaces Feb 23 22:25:05 http://www.w3schools.com/css/css_padding.asp Feb 23 22:25:28 you may need px Feb 23 22:25:57 (I dont know what it does by default) Feb 23 22:26:30 in the Ares documentation they say px is default Feb 23 22:26:38 ah... interesting. Feb 23 22:27:01 try breaking it up into 4 separate values Feb 23 22:27:19 padding-bottom: 0; etc. Feb 23 22:27:43 this isn't possible i think in Ares, there is only one padding: field Feb 23 22:27:55 and thats my problem ;) Feb 23 22:29:20 ah. Feb 23 22:29:29 can't you get the generated css? Feb 23 22:29:38 I dont remember Feb 23 22:31:17 you could do it in some activate code Feb 23 22:31:35 to test it anyway Feb 23 22:31:48 i will try it... Feb 23 22:39:24 How do I change the imageview left/middle/right urls? It's really confusing on the palm dev website Feb 23 22:48:12 twbbas: in your model that you instantiate your imageView widget with, you specify a onLeftFunction and onRightFunction Feb 23 22:49:00 in each of those functions, you are going to want to update the widget with the left and right urls Feb 23 22:49:27 i.e. something like this.controller.get('imageView').mojo.rightUrlProvided("someurl"); Feb 23 22:50:05 twbbas: if you will be here in like an hour, i can help some more.. have to head home from work. hopefully the above gets you started Feb 23 22:53:44 Anyone know if Parchment (googlecode) has been ported to webOS? Feb 23 22:55:55 Hmm, wonder if Gnusto would work. So many things to do. Feb 23 23:09:33 LoneStar99: damn...color picker is broken in my code...have no idea what happened...code hasn't changed....I think there is some interference with the autosuggest Feb 23 23:11:50 really, that is really weird, Feb 23 23:12:14 when did it break? Feb 23 23:12:26 BoomerET: It seems to me that the zork game in preware is using parchment. I could be wrong though... Feb 23 23:12:54 But it doesn't work, hasn't since 1.3.5 Feb 23 23:13:17 I've tried contacting the original guy, it's only been a couple days. Feb 23 23:13:24 I'm looking at the sources now. Feb 23 23:13:29 well we just need 1.4 and that will have all the magic you need to be fixed and working again Feb 23 23:13:42 jfelectron: let me know if you need me to email you the source Feb 23 23:13:58 Anyone tested the country display support in Preware 0.9.28 in the testing feed yet? Feb 23 23:14:11 LoneStar99: I have old code here...but thanks...I think some globals are conflicting Feb 23 23:14:53 LoneStar99: I don't know when it broken....have been working a bunch of stuff...hadn't checked it in a few days Feb 23 23:14:55 BoomerET: You would be my hero if you could bring a z machine interpreter to webOS. :) Feb 23 23:15:32 It's the one thing I really miss from my iPod touch. Feb 23 23:15:48 that sucks, can be a number of new fixes, that break code.... Feb 23 23:17:09 arr....there goes implementing new features until I can hunt this down...fun Feb 23 23:17:34 You can't play Frotz on your touch? Feb 23 23:17:56 I could, but I got rid of my touch when I got the Pre. Feb 23 23:18:04 Ahhh Feb 23 23:18:20 Oh, you said it's the one thing you miss from your Touch, I got ya. Feb 23 23:18:34 I still use my touch to watch TV shows during my commute. Feb 23 23:19:44 LoneStar99: I'm 'stress' testing my app in the hopes of catching as many big bugs as possible before I submit Feb 23 23:20:28 LoneStar99: I should really learn test based design at some point....but alas I do not have a test suite....I AM the test suite :) Feb 23 23:21:33 jfelectron: same here, so much for version tracking etc... i am the tracker and tester Feb 23 23:23:06 yeah the problem is that I used a global that in both the autosuggest and the color picker to make them work with multi-stage apps where you need the equivalent of this.controller Feb 23 23:23:29 just have to swap one for that for purplepenguin or something Feb 23 23:27:04 can you point the browser to a local file? Feb 23 23:27:09 damn...lazy loading in sources.json seems wonky. I switched something from global loading to scene specific and its a no go Feb 23 23:27:11 * BoomerET looks... Feb 23 23:27:27 jfelectron: =( Feb 23 23:27:28 BoomerET: don't know....you can use a WebView though for local file Feb 23 23:28:38 Just tried: file://index.html, brings up a msg 'Cannot display local files' Feb 23 23:28:47 What's webview? Feb 23 23:31:20 BoomerET: its a widget for displaying web content (local or otherwise) in an app Feb 23 23:31:34 a 'browser' within an app Feb 23 23:33:57 I'm looking for it in Ares Feb 23 23:34:49 BoomerET: I don't think its there Feb 23 23:34:57 Yup, sure is. Feb 23 23:35:21 BoomerET: oh yeah I see it now Feb 23 23:35:24 Middle of bottom row of UI widgets Feb 23 23:35:28 yup Feb 23 23:36:17 Hmm, what to put for URL Feb 23 23:37:33 try file:// Feb 23 23:37:44 with the full path Feb 23 23:37:48 not the app relative one Feb 23 23:39:06 you could also try: this.controller.serviceRequest('palm://com.palm.applicationManager', {method: 'open', parameters: { target: "file://path/to/file" }, onFailure: this.onFailureHandler }); Feb 23 23:39:34 Preware 0.9.28 with country display support is released. Feb 23 23:45:44 Hmm, I put in a webview, and put in a valid http://www.purple.com URL, and I get a blank screen on the emulator. Feb 23 23:56:21 BoomerET: I've seen that sometimes too....can't figure out why Feb 23 23:57:01 are you sure your internet connection is working in the emu? The connection under OS X craps out all the time...not sure if its the same on other platforms Feb 23 23:58:16 I have no idea, haven't tried it. Feb 23 23:58:16 yeah it craps out on windows also Feb 23 23:58:41 open a browser...and try it...avoids much hair pulling Feb 23 23:58:42 var intro = ''; for (var i = 0; i < tt.length; i++) { } what is the "var intro = '';" for? Feb 23 23:58:55 LoneStar99: where? Feb 23 23:59:46 probably to initialize it and perhaps the ; is a delimiter? Feb 24 00:01:16 yeah cuss the code will not work without the: var intro = ''; Feb 24 00:01:34 the ";" ends the command. Feb 24 00:01:58 should have a linefeed after it for readablility Feb 24 00:01:59 Opened browser, browsed to m.google.com no problem. Feb 24 00:07:06 have you guys tried this chatroulette.com thing? Feb 24 00:07:15 saw a mention on penny-arcade.com the other day Feb 24 00:07:18 DAMN ITS WEIRD Feb 24 00:07:22 and creepy Feb 24 00:21:05 hi all Feb 24 00:23:19 catroulette.tumblr.com Feb 24 00:29:34 Grooveshark! (anyone else refreshing constantly) Feb 24 00:31:02 anybody know of something like a javascript console that'll work on the emulator? Feb 24 00:34:14 LoneStar99: OK...finally tracked down the prob....its actually a CSS problem :/ Feb 24 00:34:47 lol, really that is all? Feb 24 00:34:50 LoneStar99: the autosuggest thing has some complex CSS selectors that I think aren't sufficiently insulated Feb 24 00:35:14 oh i see, yeah it is some tough css Feb 24 00:35:15 yeah.....the slider bar was being positioned improperly or with a wrong z-index or something and it screwed the twhole thing up Feb 24 00:35:54 glad it was a CSS issue... Feb 24 00:36:08 like what does this specify? #tag-auto ul li.auto-focus em Feb 24 00:36:22 lol beats me Feb 24 00:36:36 the element with id #tag-auto but then I don't understand the hierarchy to the right Feb 24 00:36:38 auto focus on a telescope? Feb 24 00:38:40 lo... Feb 24 00:38:54 guess I just have to add back the other CSS a block at time until it breaks...oh fun Feb 24 00:39:17 sound like a blast Feb 24 00:40:31 OK..one block down :) Feb 24 00:40:55 kinda doing the same with some code, going line by line to see what breaks Feb 24 00:42:16 Well dang, how do I get a local file to display in my webView, http is working just dandy. Feb 24 00:42:24 * BoomerET does more research/testing. Feb 24 00:43:40 BoomerET: do you really need it to be in a browser? Feb 24 00:44:02 you can just render HTMl content and inject into a 'free' scroller Feb 24 00:44:19 LoneStar99: yay...I broke it Feb 24 00:44:54 =( Feb 24 00:47:04 I'm just playing around, trying to learn how to program for WebOS. I'm fluent in Java/C, so this is a bit new to me. Feb 24 00:50:23 I've done some very limited stuff w/ gtk as well, so the idea of widgets and callbacks isn't new to me. Feb 24 00:52:38 Muahahaha Feb 24 00:54:18 Why not just put my code in main-scene.html? Feb 24 00:57:03 Interesting, it uses jquery Feb 24 00:58:41 LoneStar99: damn...it was staring me in the face...both of them use a form tag...just gonna slap a class on them and be done Feb 24 00:59:09 BoomerET: What kind of content are you trying to render? Feb 24 00:59:40 BoomerET: what users jquery? Not WebOS Feb 24 01:00:07 Oh, I'm trying to get Zork or other interactive fiction running, using parchment (a googlecode project) Feb 24 01:00:44 More seriously, I'm using this as a learning tool. Feb 24 01:02:30 can someone help me with using the scroller Feb 24 01:02:32 Time to go home, have a great morning/day/evening everyone. Feb 24 01:03:00 Chriswebos: what are you trying to do? Feb 24 01:03:18 are you familiar with the AP News app? Feb 24 01:03:28 You know how you can flip through stories? Feb 24 01:03:41 I want to do the same thing, but with my own content Feb 24 01:04:15 I've tried looking at the UIWidgets example, then looked at the apnews app, and they're doing completely separate things Feb 24 01:04:32 Here's what I've tried: Feb 24 01:04:59 I created a model of elements based on a template Feb 24 01:05:16 I've added it to the snapelements, as the example shows. Feb 24 01:05:29 when i bring up the app, it comes up empty Feb 24 01:06:06 Chriswebos: that's not a scroller...its pushing the scene again with the new article Feb 24 01:06:36 are you referring to APnews? it's a scroller Feb 24 01:06:39 well...at least I don't think it is....NewsRoom uses a horiz-snap scrolller Feb 24 01:06:44 i've looked Feb 24 01:07:02 oh, I'm talking about when you click on (for example) a US News story Feb 24 01:07:14 what does that do? Feb 24 01:07:18 you can flick scroll, and it'll bring up the next us news story Feb 24 01:07:34 OK here's an example, maybe you've seen it? http://almaer.com/blog/touching-horizontalscroll Feb 24 01:07:37 it's a horizontal scroll Feb 24 01:09:44 no, i definitely haven't seen it...let me look through it and try it out Feb 24 01:10:02 thanks for pointing me to it Feb 24 01:10:41 no prob...its definitely a sweet UI paradigm Feb 24 01:13:25 how can I get a viewmenu item on the right without one on the left? Feb 24 01:17:01 does anyone know if there is a hierarchy in sources.json. I.e. if you have a bunch of source files that are loaded for a scene and some depend on others do you need to list them in dependency order? Feb 24 01:17:30 jeterro: pad the items with {} Feb 24 01:17:39 insert enough to push it where you want Feb 24 01:17:54 (GROOVESHARK! btw download it if you have a 3 dollar a month VIP account) Feb 24 01:19:20 jfelectron: didn't seem to do anything... two aught to do it I'd think? Feb 24 01:19:52 jeterro: can you paste your setupWidget call ? Feb 24 01:20:08 do you have a toggle group? Feb 24 01:20:13 (there is a trial for it first 50 songs) Feb 24 01:21:12 Templarian: What does groveshark do? Is it like Zune/Rhapsody or Pandora/Slacker? Feb 24 01:21:32 Think pandora but you can play any song. Feb 24 01:21:43 http://grooveshark.com/ Feb 24 01:21:58 OK so more like Slacker Feb 24 01:22:11 with their 'plus' account Feb 24 01:22:25 oic, my width: "" is making it left aligh Feb 24 01:22:28 I wonder why Feb 24 01:23:21 don't set width unless you need it....it overrides whatever calc the framework does Feb 24 01:24:05 well, I want to prevent it from getting too wide when the text changes... Feb 24 01:24:49 So you want the text to truncate? Feb 24 01:25:00 yeah... I suppose I could do that by hand... Feb 24 01:25:13 seemed more convenient to have it do it for me, but then it won't float on the right Feb 24 01:25:20 its a pain with the command and view menus because the buttons don't have ids Feb 24 01:25:20 (apparently) Feb 24 01:25:33 the positioning is challenging sometimes Feb 24 01:25:58 what I really want is a submenu button kindof like the calendar name on the calendar app, but not in a view-menu, just in a regular header... Feb 24 01:26:07 I think I'm trying to force viewmenu to do something it doesn't want Feb 24 01:26:26 Oh....then just have a submenu that pops up in response to a click on the header Feb 24 01:26:44 yeah, but I want something that looks like a button and changes text to indicate what's selected Feb 24 01:26:54 was thinking about copying the FW LIB rounded box thingy from StyleMatters Feb 24 01:27:18 jettero: you can change the text of the header on press and have touch feedback..no problem Feb 24 01:27:49 or just make a div styled as a button and use a high z-index to float it above the scene content Feb 24 01:28:02 that sounds like what I want Feb 24 01:28:08 how do you style a div like a button? Feb 24 01:28:20 x-mojo-button or something... Feb 24 01:28:20 -webkit-border-image is your friend Feb 24 01:28:36 its what all the default buttons are made with Feb 24 01:28:46 want a tutorial link or two Feb 24 01:28:47 ? Feb 24 01:28:50 yeah, that's how they do the FW LIB thingy in stylematters Feb 24 01:28:55 yeah, tutorial would be great Feb 24 01:28:58 OK...hold on Feb 24 01:29:18 here's one http://www.lrbabe.com/sdoms/borderImage/index.html Feb 24 01:30:30 the mental thing to swallow is that its more than a 'border'...basically you can splice up a base image and then stretch it to provide a background for a styled div Feb 24 01:30:56 cool cool, thanks Feb 24 01:31:00 typically the base image will be something like 50px x 50px and then you just slice it up and stretch as appropriate Feb 24 01:31:15 just make sure to use -webkit-border-image rather than border-image Feb 24 01:32:00 jettero: another that might be useful to you http://www.zurb.com/playground/awesome-overlays Feb 24 01:34:46 styling my own button is more work than I think I really wanted. :) Feb 24 01:34:54 bookmarked Feb 24 01:40:02 jettero: but mastering webkit-border image is the key to customizing apps in WebOS Feb 24 01:40:13 its literally used for everything Feb 24 01:44:01 I get that. That's why I bookmarked. I'm still on really beginner stuff like ... making the thing react to a click Feb 24 01:45:17 jfelectron: i must be missing something completely.... Feb 24 01:45:32 I copied the code verbatim, but get no scroll.... Feb 24 01:45:43 I just get the elements all showing on the main page Feb 24 01:47:06 hmm....I think everything needs explicit widths...do you elements have widths? Feb 24 01:47:40 well, i didn't modify the code at all...perhaps it isnt seeing my css code? Feb 24 01:48:57 oopsies! there we go!! Feb 24 01:49:33 I created a new css file that wasn't being seen i guess ( guess i need to read how to add css files)...i copied the css code to my base file and there it was Feb 24 01:51:20 you add CSS files in index.html Feb 24 01:51:35 Feb 24 01:51:51 oh...coolness... Feb 24 02:02:15 jfelectron:I have two more things I need to do: 1. create dynamic elements to add to the scroller, and 2. have one of the dynamic elements be a webview. do you have suggestions? Feb 24 02:03:11 do you want the elements 'lazily' loaded? Feb 24 02:03:21 i know mojo.render is a good start, but I'd like a tutorial like before. Feb 24 02:03:27 'lazily'? Feb 24 02:04:45 sorry, not sure what you mean by lazily Feb 24 02:11:30 do you want to load all your elements in the beginning or have say just three (center, left and right) and then load the rest on scroll? Feb 24 02:12:15 Mojo.view.render takes an HTML template and an object and render HTML based on object property insertion into the template Feb 24 02:12:18 well, I'd probably want to load about 5 or 10, then load more if needed Feb 24 02:12:32 OK...so that's a form of lazy-loading. So you Feb 24 02:13:02 So you'll want to listen to the scrolling event and then update your 'window' of elements (i.e. those loaded in the scroller) Feb 24 02:13:59 cool Feb 24 02:14:39 so, i guess i could put mojo-elements in the html template? Feb 24 02:14:52 the key to dynamic content insertion is using Mojo.view.render and then containerDiv.innerHTML=newContent Feb 24 02:15:11 yes you can insert widgets dynamically...takes a little more work though Feb 24 02:16:03 setup the widget, render the content and then do this.controller.update(this.controller.get('contentDivID'),newContent) ....that parses the setup and instantiates the widget Feb 24 02:16:40 you can setup any listeners on the widget at that time too Feb 24 02:19:11 the main reason i want to have a webview is because i want to load the contents of a url (not the link) Feb 24 02:20:13 sure Feb 24 02:21:24 wait, looking at your example...where would the widget be? Feb 24 02:21:35 newcontent? Feb 24 02:32:13 hrm, can you pop up a submenu off an arbitrary widget? or does it have to be a viewMenu? Feb 24 02:50:36 jettero: any arbitrary div will work **** ENDING LOGGING AT Wed Feb 24 03:00:02 2010