**** BEGIN LOGGING AT Mon Jan 02 02:59:56 2012 Jan 02 03:00:21 wesbos: you can run diagnostics from the Device Information app menu Jan 02 03:00:52 sugardave: im in there right now, whats it under? Jan 02 03:01:12 touch sensors, maybe? Jan 02 03:01:32 ah found it in the dropdown Jan 02 03:01:34 thanks :) Jan 02 03:01:37 np Jan 02 03:06:52 I know this isn't a hardware room, but have any other devs had trouble with the keyboard inputting double letters? Jan 02 03:07:11 trying to see if its a hardware issue or just something with my os Jan 02 03:36:12 http://www.engadget.com/2012/01/01/psa-iphone-alarm-clock-not-working-again-time-to-update/ Jan 02 03:36:14 * Tommy facepalms Jan 02 03:41:31 libtool is a pain Jan 02 03:46:21 people expected that this year though. Jan 02 03:46:25 and it's a leap year Jan 02 03:46:32 that can be confusing Jan 02 04:14:53 https://github.com/sugardave/enyo-headless-chrome-dev Jan 02 04:14:57 now with crappy README Jan 02 04:17:29 http://xkcd.com/221/ Jan 02 04:19:26 enyo.mixin Jan 02 04:19:31 awesome Jan 02 04:19:33 hahah Jan 02 04:19:54 does it do the shuffle too? Jan 02 04:26:33 bah, their markdown processor choked on some of my stuff :/ Jan 02 04:26:48 level of caring is low, though Jan 02 04:36:54 I need to learn some C/C++ Jan 02 04:40:11 it's not very difficult Jan 02 04:41:02 coming from javascript, syntax is very similar Jan 02 04:41:19 file structure and many other things way diff tho. Jan 02 04:45:47 yeaaaah… I'll have to figure it out Jan 02 04:46:40 trying to decide to learn c++ or objective c Jan 02 04:47:12 well, whether to do iOS dev or not, basically Jan 02 05:16:40 fxspec06: people actually expected apple wouldn't have fixed an alarm clock? :S Jan 02 05:17:03 i figured the patch they applied would, you know, patch the clock for future years as well Jan 02 06:49:57 ok.. possibly silly thing here.. but.. working on an assumption that a scroller contains only a Repeater, and that everything in the Repeater has a roughly the same average height/width ... is there anything wrong with this code? http://pastebin.com/fN4Qk7AF Jan 02 06:51:37 this.getBoundries()? Jan 02 06:51:49 hmm Jan 02 06:51:56 nm Jan 02 06:53:21 did you add logging and did it show the values you expected? Jan 02 06:58:55 does webos support websockets? Jan 02 06:59:55 *in enyo Jan 02 07:06:07 not at the moment, no Jan 02 07:06:42 someone did mention to me once that they thought 3.0 might have the horrifically broken first webkit implementation of them, but i've never tested that theory Jan 02 07:07:02 hey all Jan 02 07:08:16 EricBlade1: oh ok, thanks.... wonderful. I'm trying to build a boxcar.io client for webos (push notifications) and they have a websockets api.... but i might have to look for a better way Jan 02 07:08:18 panel: wazzzzzzzzaaaaaaaaaa Jan 02 07:12:10 wazaaaaaaaaaaaaap Jan 02 07:12:48 gaaaaaah i cannot get my app working on my pre2, and i can't get logging to work on it either, so i can't figure out why Jan 02 07:13:35 what app ? Jan 02 07:13:41 XO Jan 02 07:14:12 but it worked .... Jan 02 07:14:53 yea it works fine on my Pre-, my Pre+, and my TouchPad Jan 02 07:15:17 the Pre2 just sits there and stares at me funny Jan 02 07:15:48 and when i try to load something with it, it just .. doesn't. Jan 02 07:15:55 I have pre 2 and it's working for me Jan 02 07:16:30 ok, well, send me your Pre2, and i'll send you mine Jan 02 07:16:34 :) Jan 02 07:17:09 hah Jan 02 07:17:12 :)) Jan 02 07:17:12 EricBlade1: does webos use the same webkit implementation in both the browser and running enyo apps? Jan 02 07:17:37 afaik they are the same thing, just with a few different settings Jan 02 07:18:33 ok, i would have figured so as well, because websockets seem to work in the browser so they might just work in an enyo app too Jan 02 07:19:40 EricBlade1 do you have gvoice app ? Jan 02 07:20:18 i hope so, i wrote it Jan 02 07:20:39 heh Jan 02 07:22:33 going to bed, happy new year everyone Jan 02 07:22:48 night Jan 02 07:24:48 night, thanks for the help Jan 02 07:33:59 sugardave, back to work on tuesday? Jan 02 07:39:00 EricBlade1 happy new and year too :) Jan 02 07:39:04 EricBlade1 night **** BEGIN LOGGING AT Mon Jan 02 13:47:33 2012 Jan 02 14:13:12 so Jan 02 14:13:15 whos read the article Jan 02 14:13:16 http://hardware.slashdot.org/story/12/01/02/0213204/insiders-call-hps-webos-software-fatally-flawed?utm_source=dlvr.it&utm_medium=twitter Jan 02 14:34:46 hi Jan 02 17:52:05 any1 experience with activity manager and enyo ? Jan 02 18:06:05 i have experience w/ enyo Jan 02 18:06:08 what is activity manager Jan 02 18:06:46 I think it's how you're supposed to do long-running activities that might otherwise be killed by the timeout system Jan 02 18:06:49 but not sure Jan 02 18:06:58 I need to constantly poll a webservice Jan 02 18:07:39 I got it to work, and it seems to function well, not sure if its the way to go Jan 02 18:08:00 the request waits for new data or timeout after 30secs with a default value Jan 02 18:08:20 I now fireoff a new request in the webservice gotData function Jan 02 18:10:03 hmm. i have used the power service request before and it works great. Jan 02 18:10:18 but that's for polling like, every 5 - 10 min Jan 02 18:10:21 not every 30 sec Jan 02 18:10:32 i'm not sure the impact on battery life Jan 02 18:10:34 well I'm not actualy polling, the webservice does it for me Jan 02 18:12:04 http://www.couriermail.com.au/entertainment/confidential/apples-steve-jobs-immortalised-as-sixth-scale-action-figure/story-e6freq7o-1226234386990 Jan 02 18:12:06 so how are you calling the timeouts Jan 02 18:12:34 we need a Leo action figure Jan 02 18:14:21 the webservice either returns with data, or just 'OK' Jan 02 18:14:36 on data reception I simply call the service again Jan 02 18:16:03 it works, doesn't drain the battery, but I was wondering if its the right way to do it Jan 02 18:17:24 Simpson_2: can't you do the same logic/flow without using the activity manager? Jan 02 18:17:43 I'm doing it now, just no idea if its the proper way Jan 02 18:17:53 the way that works is the proper way Jan 02 18:17:53 i would think a timeout would be fine Jan 02 18:18:06 but yeah if it isn't broke then i wouldn't worry about it Jan 02 18:18:06 okay, then I'll leave it there :) Jan 02 18:18:22 well, i'm not to sure about that statement Jan 02 18:18:35 the app functioned briliantly during my new years even shift Jan 02 18:52:44 about to pay for iOS developer account Jan 02 19:02:51 https://github.com/sugardave/enyo-headless-chrome-dev - now with Exhibition support Jan 02 19:09:13 sugardave, saw the tweet today, not fully sure whats the use of it ? Jan 02 19:11:38 Simpson_2: normally if you open a noWindow app in Chrome, you get.. nothing Jan 02 19:12:44 okay so its pure for testing ? Jan 02 19:13:17 Simpson_2: right, like EricBlade said if your app is "noWindow: true", then in Chrome you get a blank page and no displayed DOM...this lets you do headless dev and will open the windows as new tabs in your main browser window Jan 02 19:13:46 i can't wait to try it, but it'll probably be a week, since i'm leaving tomorrow Jan 02 19:13:48 Simpson_2: it's so you can test your multi-window app in the browser instead of relying on cut-off log messages on the device Jan 02 19:14:12 and what is the advantage over developing with the emulator ? Jan 02 19:14:26 EricBlade: cool, I'm interested in some feedback. It's a really simple procedure, really Jan 02 19:14:42 when you run your apps in Chrome, you can use the complete inspector, debugger, logging tools, etc Jan 02 19:14:48 Simpson_2: same log cut-off problem...plus in Chrome you get all those nifty console debug tools Jan 02 19:15:11 okay, never use chrome, but with firebug experience I think I see what you mean Jan 02 19:15:24 yeah, Chrome dev console is like firebug somewhat Jan 02 19:15:40 did anyone ever try to run a enyo app on a android phone ? ( even though you are not allowed to ) Jan 02 19:15:45 i really wish that the debugger had a way to sort by number of calls to a function too, instead of just by cpu time Jan 02 19:17:58 Hi everyone Jan 02 19:18:09 IceXtreme: hello Jan 02 19:18:14 and that i could somehow set it to automatically not show me any code that comes from the enyo library, i don't care to debug inside that Jan 02 19:18:56 I'm trying to figure out how to use Node.js on HP touchpad Jan 02 19:19:17 EricBlade: these sound like great enhancement requests :) Jan 02 19:20:00 is Node.js only usable when we are using PDK? Jan 02 19:20:01 yeah, especially number of calls would be a great thing to have when you're targetting different hardware than what you're developing on.. which in the case of development is.. almost always Jan 02 19:20:06 IceXtreme: check out the basic service sample in the SDK Jan 02 19:20:21 IceXtreme: you can write a node.js service and use it with either SDK or PDK apps Jan 02 19:20:54 * invalidopcode has achieved working push notifications on the touchpad Jan 02 19:21:20 invalidopcode: woo! Jan 02 19:21:53 Arthur says he has working push notifications too, but his twitter client is constantly bombarding me with notifications so i'm thinking it's not exactly perfect yet Jan 02 19:22:03 sugardave: yeah! it uses the boxcar.io service Jan 02 19:24:02 invalidopcode: how long before it's in the catalog? hehe Jan 02 19:25:02 EricBlade: hopefully soon :P but i'm not making any promises Jan 02 19:25:22 invalidopcode, what do you use it for ? Jan 02 19:25:44 EricBlade: btw in case you were wondering, WebSockets work in an enyo app Jan 02 19:25:45 push notification is that the server notifies the client for new data right ? Jan 02 19:25:55 Simpson_2: yup, exactly Jan 02 19:26:14 invalidopcode, I could use that ! Jan 02 19:26:16 invalidopcode: interesting...I thought websockets were NOT working Jan 02 19:26:21 invalidopcode: i'm thinking that's probably not the case on webos 1/2 Jan 02 19:26:36 Simpson_2: yeah, so could i, thats why im working on it :P Jan 02 19:26:42 :) Jan 02 19:26:46 sugardave: i remember someone telling me that it was the semi-broken first webkit implementation but i never looked farther into it Jan 02 19:27:02 sugardave: ah, well at least its working for me in webos 3 Jan 02 19:27:04 invalidopcode, I'm interested in testing if you need testers Jan 02 19:27:20 cool, now I may need to test some websockets Jan 02 19:27:34 Simpson_2: ok, sure. its not ready now, but i could use your help when it is Jan 02 19:27:34 but it's SSX Tricky/Skyrim day :) Jan 02 19:27:59 invalidopcode, I would need it for my real time Fire Department app Jan 02 19:28:46 Simpson_2: ah cool Jan 02 19:29:35 it doesn't get more realtime then that I guess ;) Jan 02 19:31:00 yup. so essentially it a client for the boxcar.io website, and im hoping to make it so that when notifications come in, the user can set it up to open different applications based on the notification (eg, GVoice for Google Voice notification) Jan 02 19:31:10 *its Jan 02 19:31:18 whats boxcar ? Jan 02 19:33:36 its a push notification service. its website is boxcar.io Jan 02 19:33:51 http://boxcar.io Jan 02 19:36:10 hmm. the launching apps is an interesting problem. Jan 02 19:36:44 invalidopcode, okay I see Jan 02 19:37:14 we can't query for available applications, which isn't really ideal anyway, about the only thing that we do have is a way of handling mimetypes Jan 02 19:38:28 can you just call ApplicationManager with a launch parameter of a mimetype, or does it actually have to get a file from somewhere ... Jan 02 19:38:57 EricBlade: yeah... hm...interesting. could i call a specific app based on their namespace? Jan 02 19:39:43 yeah, but there's not really any way of checking for it's existence prior to attempting to launch it Jan 02 19:40:55 ah... well can you tell if the launch failed? Jan 02 19:41:16 yeah.. here's a little thing that I wrote, to launch TouchPlayer if it exists, and if not launch a browser .. http://pastebin.com/gZTBvHxD Jan 02 19:43:09 ah cool. thanks. That could be helpful Jan 02 19:43:32 there may be a better way of doing it, i was sort of making that up as i went Jan 02 19:43:52 but then i just use { name: "VideoService", kind: "BasicService", requestKind: "VideoRequest" }, .. followed by a this.$.VideoService.call( { itemId: blah }); Jan 02 19:43:53 hi Jan 02 19:44:41 hm... ok Jan 02 19:44:46 also, for notifications in webos, its the enyo.window.addBannerMessage() right? Jan 02 19:45:08 EricBlade: finally arrived TP Jan 02 19:47:38 oh boy, i'm about to get a hundred more skype contacts from my new employer. that'll be fun for my pre2 to deal with Jan 02 19:51:10 uff Jan 02 19:52:13 messaging and many contacts I don`t like Jan 02 19:52:39 I have loaded facebook contacts once Jan 02 19:52:57 that was mess Jan 02 20:18:00 what the difference between a banner message, a popup, and a dashboard? Jan 02 20:18:30 not sure about banner message...probably the "charging battery" message you get when plugging in or going on touchstone Jan 02 20:18:44 popup (the kind) needs to come in an app window Jan 02 20:19:09 dashboard is the the drop-down menu at the top right screen (like email notifications, etc.) Jan 02 20:20:09 ah, ok. so for normal notifications I probably want dashboard then. ok thanks Jan 02 20:20:24 np Jan 02 20:20:35 does translate to the phone equivalent automaticly ? Jan 02 20:21:00 ummm Jan 02 20:21:26 I was stunned when my touchpad enyo app worked flawlessly on my veer Jan 02 20:22:10 oh, Enyo apps can run on devices now (if they've gotten the Bing maps update) Jan 02 20:22:15 not everything is perfect, though Jan 02 20:22:35 okay, like ? Jan 02 20:22:43 not sure ow SlidingPanes are supposed to work on a phone, though it does render the first view rather well Jan 02 20:23:04 bing maps uses it, and it works fine Jan 02 20:23:12 although the veer leaves little space ;) Jan 02 20:23:13 for instance my sample headless app thing doesn't render Exhibition scene properly on my Pre3 Jan 02 20:23:34 it's shifted up into the app menu area and leaves a black space at the bottom Jan 02 20:24:37 I thought pre3 was enyo already Jan 02 20:24:58 mine was :) Jan 02 20:25:39 hey Jan 02 20:26:06 I'm trading a TouchPad for a new HP Pre3 Jan 02 20:26:40 Now my Question is, do you think there might be an Android-Emulator. I must have WhatsApp Jan 02 20:27:13 haha Jan 02 20:27:14 no Jan 02 20:28:10 well i'm not a dev but do you think it might be possible to rewrite whatsapp (reverse engineering) for webOS on homebrew level Jan 02 20:29:06 anything is possible, I don't know whatsapp, though so hard to say Jan 02 20:30:04 whatsapp is an text-message substitution like textOne Jan 02 20:32:14 why no possibility of creating alien dalvik? Jan 02 20:33:11 can I ask why you're getting a pre3 if you need WhatsApp? Jan 02 20:33:48 that was my idea as well Jan 02 20:34:50 because i love webOS and the Hardware of Pre3 Jan 02 20:35:17 even more than Android but Android has WhatsApp ;) Jan 02 20:35:50 I think whatsapp protocol is open Jan 02 20:36:07 well, so, if you _need_ WhatsApp, get a phone that can run it Jan 02 20:36:11 :) Jan 02 20:36:26 iirc there are some threads on precentral about it Jan 02 20:37:46 Simpson_2: I don't think so… but do you have any links? Jan 02 20:38:14 not really, I just recal looking at it once Jan 02 20:38:28 then again I don't feel like waisting my time with whatsapp ;) Jan 02 20:38:32 I don't the protocol is officially open Jan 02 20:38:56 there is some work done on gwibber ( linux ) for whatsapp Jan 02 20:41:05 well, like i already said. i love webOS ;) Jan 02 20:41:09 ohw I'm actualy mixing 2 things... Jan 02 20:41:17 sorry I meant yammer... Jan 02 20:41:30 haha. so which do you want? Jan 02 20:41:57 obv, two phones Jan 02 20:41:58 well I wouldn't mind yammer ;) but then my company might move away from it anyway Jan 02 20:42:25 currently i'm more interested in getting RDF store to work in a node.js service Jan 02 20:43:05 is for you working facebook for tp without problem? Jan 02 20:43:47 which problem do you mean? Jan 02 20:43:58 I have still "Retrieving your account" spinning on screen Jan 02 20:44:16 and can't login Jan 02 20:45:07 itbwas successful logged only once this evening Jan 02 20:45:11 sorry can't test it now. i'm erasing my TP atm Jan 02 20:45:36 PaNeL: mine is working Jan 02 20:45:58 :-( strange Jan 02 20:46:06 everything works normally Jan 02 20:46:15 wirc or browsing Jan 02 20:46:30 reinstall not helped Jan 02 20:51:22 PaNeL: try re-entering your Facebook pw in Synergy Jan 02 20:51:25 maybe Jan 02 20:51:43 hmm, sounds good Jan 02 20:51:48 thanks Jan 02 20:51:51 will try Jan 02 20:54:37 is the catalog dead? Jan 02 20:55:20 ave not used it in a while. Tried it today and it would not connect Jan 02 20:55:36 dundunDUNNNNN Jan 02 20:56:07 guest6565, I just tried it a few minutes ago and all seemed fine Jan 02 20:56:09 catalog working for me Jan 02 20:56:50 sugardave: it's strange I was deleted both, account and app Jan 02 20:56:52 guess i will try a restart. Jan 02 20:57:06 and when I installed fb app Jan 02 20:57:11 PaNeL: weird, did you recently doctor or anything? Jan 02 20:57:21 it's nkt asking me for account Jan 02 20:57:25 i want to get another boxnet account. hope you can still get 50Gb Jan 02 20:58:24 sugardave: only update from 3.02 to 3.0.4 Jan 02 20:58:32 maybe I have to fullerase Jan 02 20:59:06 PaNeL: that sounds extreme...can't you just add your Facebook account back into Synergy? Jan 02 20:59:14 anyone ever used sugar? http://sugarjs.com/ Jan 02 20:59:43 dave has Jan 02 20:59:44 :P Jan 02 21:00:25 haha Jan 02 21:00:35 :D Jan 02 21:00:37 Tibfib_: no, I saw it but haven't used it yet Jan 02 21:00:39 saw that coming Jan 02 21:00:43 looks really nice Jan 02 21:00:53 I'm a big underscore user, but sugar looks good Jan 02 21:01:13 someone should make a better keyboard for webos Jan 02 21:01:25 would be nice to have swype also Jan 02 21:01:27 um Jan 02 21:01:32 you even use underscores in your nick Jan 02 21:01:34 someone should make new hardware.. Jan 02 21:01:46 too late for that Jan 02 21:01:55 so forget about a new keyboard then Jan 02 21:01:55 summatusmentis: well played Jan 02 21:02:23 while we're listing things that are never going to happen, someone should make world peace Jan 02 21:02:31 also, a car that can fly Jan 02 21:03:15 also, I'd like to fly Jan 02 21:03:26 flying planes is fun Jan 02 21:03:37 how about bring my friend back that died just before the weekend.. i would pay anything for that Jan 02 21:03:52 dawm: :( sorry to hear that Jan 02 21:03:52 didn't hp say they are going to make another webos tablet in 2013 Jan 02 21:04:02 those cryostasis people are working on that Jan 02 21:04:12 dawm: :( Jan 02 21:04:20 they said "we might use webOS in the tablet market moving forward, and it would be in 2013, if we do" Jan 02 21:04:23 roughly Jan 02 21:04:35 thanks, it sucks cause we used to date, and were starting to again. and both worked at the same place Jan 02 21:04:40 so everyday reminders.. suck Jan 02 21:05:07 I thought it was more along the lines of, we'll not be ignoring the tablet market, and we might use webos Jan 02 21:05:20 either way its gonna suck Jan 02 21:05:30 hp will make windows 8 tablets Jan 02 21:05:42 they're release the tp go in its current form, a year from now Jan 02 21:05:53 either way, you should probably develop for a different platform for now Jan 02 21:06:21 im just here for the entertainment Jan 02 21:06:31 de...velop? Jan 02 21:06:39 you people develop things? Jan 02 21:06:58 not anymore i dont ;p Jan 02 21:07:13 24 > development Jan 02 21:08:07 I wonder how many people still developing apps. I saw a tweet for developer meet up and had to laugh Jan 02 21:09:08 I mean, certainly some people are still developing Jan 02 21:09:30 nice got another box.net 50GB account. Probably the best thing i got out the touchpad Jan 02 21:10:14 * dwc- is up to maybe 400kb on his box.net acct Jan 02 21:10:23 poop. "3.3 You may not sell the Application, charge Users for use of the Application or otherwise derive any income from Users’ use of the Application, such as through e-commerce initiated via the Application or the sale of any advertising, sponsorships or promotions on the Application itself." Jan 02 21:10:34 I don't know if I have ever used box.net Jan 02 21:10:43 besides getting my free 50 gb Jan 02 21:11:29 does anyone know of a good code example for notifications in webos? Jan 02 21:11:36 i use it on phone and pc. have my pictures there for backup Jan 02 21:13:45 Tibfib_: which part don't you like about that? Jan 02 21:14:36 i can't believe there is rhapsody for windows phone. Jan 02 21:14:59 summatusmentis: I thought I could advertise. Looks like this app will be freeeee Jan 02 21:15:24 or just for personal use Jan 02 21:15:25 Tibfib_: which platform is that? wp7? Jan 02 21:15:46 that's the TOU for spotify's api Jan 02 21:15:50 oh Jan 02 21:16:31 I vote you ignore spotify, and instead reverse engineer google's music api, and make that a part of koto Jan 02 21:16:37 pls Jan 02 21:16:54 I don't use google music….............. Jan 02 21:17:00 but you _could_ Jan 02 21:17:51 you also have experience with Google's undocumented APIs Jan 02 21:18:03 and I know they suck Jan 02 21:18:07 which makes you _uniquely_ suited Jan 02 21:18:11 or rather, undocumented apis suck Jan 02 21:18:19 "derive any income", so if you make a spotify app and then that increases your brand recognition and other people buy your non-spotify apps are you breaking their overly broad terms? Jan 02 21:18:42 heh, probably Jan 02 21:18:51 this will be mostly for a learning experience. Jan 02 21:19:02 if it doesn't suck I'll make it available Jan 02 21:26:55 also, season 8 of 24 has a palm pre Jan 02 21:28:55 there's a palm pre featured in Castle too Jan 02 22:27:31 EricBlade: what kind of notifications do you use in GVoice? Jan 02 23:19:59 Hello all Jan 02 23:23:27 Anyone know if rotating text in canvas is supported on webOS? Jan 02 23:45:39 sugardave: your enyo-headless-chrome-dev project comes up as a top result if you google "enyo headless" Jan 02 23:48:26 if u had to chose, Instagram viewer or full picplz client? Jan 02 23:49:54 invalidopcode: i do a bannerNotification and create a dashboard Jan 02 23:50:34 hey EricBlade Jan 02 23:50:49 hey PatrickC Jan 02 23:51:08 EricBlade: ok, thanks. do you get a ton of log messages from the dashboard about "Unsafe JavaScript attempt to access frame"? Jan 02 23:51:46 yes. I was told those would go away when I moved the Dashboard handling to the main window of the app instead of the secondary window, but that was a lie Jan 02 23:53:04 haha ah... well cool! things are starting to fall together very nicely now Jan 02 23:54:30 note that if you use the enyo Dashboard kind, though, it doesn't display properly on phones Jan 02 23:55:27 really? im mainly targeting the touchpad right now. but why doesn't it work on the phones? Jan 03 00:00:40 http://webos101.com/Enyo_on_Phones#enyo.Dashboard_layers_appear_in_all_white Jan 03 00:04:15 hm... interesting. thanks Jan 03 00:05:45 can services create notifications? Jan 03 00:08:44 time to work on the cross-launching of maps Jan 03 00:08:45 :) Jan 03 00:19:04 i need to figure out how to operate my phone as a GPS for my TouchPad, and what to use to get directions. Jan 03 00:20:01 maps launching done. Jan 03 00:20:16 invalidopcode: not sure, but if they can't, your headless app with no card can subscribe to that service and then post the notifications Jan 03 00:21:24 I'm so happy! My uncle (who works at HP like my dad, but is close buds with the R&D people) gave me a Pre 2 for Christmas! Jan 03 00:21:51 sugardave: ah, ok. thanks. I'm trying to decide if i really need to write a whole service for this thing, or if a headless app would be sufficient Jan 03 00:34:09 hmm... Jan 03 00:34:14 * PatrickC wonders why this isnt working.... Jan 03 00:35:09 PatrickC: what are you working on? Jan 03 00:35:18 my app, project macaw Jan 03 00:35:31 trying to make a webview Jan 03 00:35:34 work* Jan 03 00:37:12 EricBlade: there is a gps app for webos phones that works with maptool pro on the touchpad over bluetooth Jan 03 00:38:00 PreGo GPS Jan 03 00:38:07 for some reason, my URL isnt passing... Jan 03 00:38:40 ah fun... Jan 03 00:38:46 yeah.... Jan 03 00:38:47 lol Jan 03 00:40:59 hewball: ya.. i haven't been able to get that to work very well.. it doesn't seem like maptool pro makes a very good directional indicator thing either. we might end up using the Sprint Navigation on our Rumor still Jan 03 00:41:16 taking a 9 hour trip tomorrow Jan 03 00:42:57 yeah :( maptool pro is the best ive found :( Jan 03 00:43:17 EricBlade, i might try talking to MetaView on twitter Jan 03 00:43:21 he is the dev, and very helpful Jan 03 00:45:25 WOOP!!!! Jan 03 00:50:40 EricBlade: i ended up making my own bluetooth gps, from one of those CSR radios on ebay and a normal ttl gps, that way i had full control over name and baud rate, next is replacing with a 10hz gps if i can get a decent one Jan 03 00:56:17 i hope our rental car has a half dozen USB ports Jan 03 00:56:21 that can all supply 1A lol Jan 03 00:59:35 lol Jan 03 00:59:42 time to get a massive convertor :) Jan 03 01:03:36 if this works ill be estatic! :D Jan 03 01:04:16 I knew a guy who took his van, knocked out the back seats, and added a couch, TV, and PlayStation Jan 03 01:04:26 Well, I think that's what he did Jan 03 01:07:59 long time no see webos Jan 03 01:08:04 webOSNewbie* lol Jan 03 01:10:44 I wish I could find an app for Lego NXT Jan 03 01:11:17 webOSNewbie: you could write on :P Jan 03 01:11:20 *one Jan 03 01:11:28 My parents got us a Lego Mindstorms set (two, actually), but they're Lego Education, so there's no CD Jan 03 01:11:39 The software costs 80 bucks Jan 03 01:12:37 ah Jan 03 01:13:07 i think i read somewhere that someone had worked on controlling an NXT from webos, but that was a while ago Jan 03 01:14:56 the think that was the original purpose of the bluetooth binary patch Jan 03 01:15:12 wrea: exactly Jan 03 01:15:14 Is that still on Preware? I can't find it Jan 03 01:15:39 should be, but it'll be included in the next version of 3.0.x Jan 03 01:16:00 What about for phones? Jan 03 01:16:03 argh... stupid localStorage Jan 03 01:26:50 localStorage is brilliant Jan 03 01:27:20 it hates me lol Jan 03 01:27:26 woo woo wild'n on android Jan 03 01:27:30 is localStroage the websql stuff? Jan 03 01:27:31 nice! Jan 03 01:27:34 Tibfib_: +10000000000000 Jan 03 01:27:40 summatusmentis, no clue Jan 03 01:27:47 its what Project Macaw uses for preferences Jan 03 01:27:53 once i discovered localstorage, i wondered why i had been so dumb to never discover it before. Jan 03 01:27:54 i have never touched its preferences before now. Jan 03 01:28:13 it literally doesn't get any easier. Jan 03 01:28:24 fxspec06: it didn't come until webOS 2.x I believe Jan 03 01:28:27 its telling me that they Key isnt defined Jan 03 01:28:46 oh patrickc Jan 03 01:28:50 i see Jan 03 01:28:58 https://gist.github.com/1552976 Jan 03 01:29:01 well then... Jan 03 01:29:23 if you think i'm clicking that, you're sorely mistaken. Jan 03 01:29:31 doesnt exist* Jan 03 01:29:34 when they do Jan 03 01:29:37 * webOSNewbie is away: Jan 03 01:38:23 is localStroage just a key-value store? Jan 03 01:39:15 invalidopcode: you said you had been using GVoice, and the Add Contact option was working for you .. do you happen to know if it worked if you used spaces in names? That seems to be the glitch that I'm having, as it just took the contact i had tried to add several times, when I stopped trying to space the name Jan 03 01:39:39 summatusmentis: with one catch. whatever you store is stored as a string Jan 03 01:39:48 ok, but still Jan 03 01:40:03 localStorage["dog"] = {bark:"woof"}; Jan 03 01:40:18 when you return localStorage.dog you would get "[object OBJECT]" or whatever it is Jan 03 01:40:20 PatrickC: so, without knowing anything about localStorage, my guess is that you haven't closed a brace or a quote some place Jan 03 01:40:28 you have to convert everything to strings before saving Jan 03 01:40:39 EricBlade: When i tested it yesterday i added a name with a space in the name and it worked fine Jan 03 01:40:43 you mean there are other ways to store data? Jan 03 01:40:49 lol Jan 03 01:40:49 summatusmentis, i never defined the default Jan 03 01:40:55 db8 Jan 03 01:40:56 ;) Jan 03 01:40:56 i never ran prefs.write Jan 03 01:40:57 :/ Jan 03 01:41:05 http://webos101.com/Code_Snippets_(Enyo)#Preferences Jan 03 01:41:11 db8 is a pain for prefs Jan 03 01:41:30 yep Jan 03 01:41:32 is localStorage limited to 1mb? or something? Jan 03 01:41:34 invalidopcode: hmm. i need to figure out how to remove people from that list, so i can thoroughly test it and see wth the problem is Jan 03 01:41:45 EricBlade: yeah i just tried it again, and it seems to work for me Jan 03 01:41:49 i think 5mb per app but dont quote me Jan 03 01:42:04 4 or 5.. which is a ton. Jan 03 01:42:29 (mb) Jan 03 01:42:32 hrm Jan 03 01:42:39 you could store an entire app in a string in localstorage Jan 03 01:42:40 I want to use the google music web app Jan 03 01:42:54 and it wants to download a 25mb something or other Jan 03 01:43:05 stupid question time: this is valid, right? https://gist.github.com/1553009 Jan 03 01:43:06 but webOS won't let it Jan 03 01:43:09 maybe that's a different web technology Jan 03 01:43:39 summatusmentis: not db8 … ? Jan 03 01:44:07 PatrickC: what specifically? Jan 03 01:44:18 uh.. LocalStorage isn't something you can "new" is it? Jan 03 01:44:34 PatrickC: I'm guessing line 5/6? Jan 03 01:44:36 new localstorage()???!? Jan 03 01:44:38 which isn't valid Jan 03 01:44:40 Tibfib_: no clue, it wants to download some offline file Jan 03 01:44:53 yeah Jan 03 01:44:54 EricBlade: I don't think so ? Jan 03 01:44:57 thats what i need it to do Jan 03 01:44:59 it's just a global variable Jan 03 01:45:05 PatrickC: you're doing it wrong ;) Jan 03 01:45:06 you just localStorage["something"] = coolStuff; Jan 03 01:45:14 heh i know lol Jan 03 01:45:25 fxspec06, thats how they do it in the rest of the app Jan 03 01:45:29 you don't know Jan 03 01:45:29 so im sticking to it Jan 03 01:45:36 i know that im doing it wrong Jan 03 01:45:42 then do it right Jan 03 01:45:43 i dont know how to do it right ;) Jan 03 01:45:51 then don't say you know Jan 03 01:46:02 i know its wrong, but i dont know any more then that Jan 03 01:46:13 well think about how bind(this) works Jan 03 01:46:16 why is this pizza square. Jan 03 01:46:33 it binds that function to this, correct? Jan 03 01:46:42 yes Jan 03 01:46:43 it calls a function Jan 03 01:46:48 with this as an argument Jan 03 01:46:58 no Jan 03 01:47:39 my pizzas are usually in the shape of a rhombus Jan 03 01:48:03 ok. now that i have the preference created and stored, time to figure out how to call it... Jan 03 01:48:38 patrickc: you know how you stored it Jan 03 01:48:43 just flip it and there you go. Jan 03 01:48:52 that would be too easy Jan 03 01:48:54 ok. Jan 03 01:49:05 but how do i tell what the preference is? Jan 03 01:49:19 how did you tell where to store it? Jan 03 01:49:20 prefs.read('inAppBrowser') ... Jan 03 01:49:34 localStorage["banghead"] Jan 03 01:49:41 or prefs.read('BrowserSelection') .. Jan 03 01:49:41 localStorage["banghead"] = me; Jan 03 01:49:43 me = localStorage["banghead"]; Jan 03 01:50:27 PatrickC: http://www.youtube.com/watch?v=DSKNHlQzUS0&t=21 Jan 03 01:50:32 you may have to JSON.parse(localStorage["banghead"]); Jan 03 01:50:32 and I return to 24. Jan 03 01:51:00 lol Jan 03 01:55:07 * PatrickC thinks he got it Jan 03 01:55:53 nope Jan 03 02:04:44 hmm.. why would this not be working? https://gist.github.com/1553062 Jan 03 02:05:31 (prefs.read('browserSelection' === 'stockBrowser')) Jan 03 02:05:52 what about it? Jan 03 02:06:20 aren't your parens wrong? Jan 03 02:06:22 lol] Jan 03 02:06:47 prefs.read(false) Jan 03 02:06:48 also, why do you have 4 clauses to your if statement, when you're only checking 2 things? Jan 03 02:06:51 parens ?== parents? Jan 03 02:07:01 parenthesis Jan 03 02:07:14 also, why do you immediately write to the key you just read from? Jan 03 02:07:14 cause i need to write the local storage for each selection Jan 03 02:07:33 var prefs = new LocalStorage(); Jan 03 02:07:34 if (prefs.read('browserSelection') === 'inAppBrowser' ) { Jan 03 02:07:38 is that ever going to be the case? Jan 03 02:07:58 dwc-, yes? if browserSelection is equal to inAppBrowser Jan 03 02:08:26 you code currently goes: check a condition, write back the condition you just checked, check the condition a second time, then do something Jan 03 02:08:33 oh, does instantiating a new LocalStorage() only give you a singleton? Jan 03 02:08:34 does it not? Jan 03 02:08:55 dwc-, not following :) Jan 03 02:09:05 im totally new to localStorage and just trying to make this work Jan 03 02:09:08 when you ask for a new LocalStorage() is that backed by something or is it an empty object? Jan 03 02:09:21 its backed by LocalStorage Jan 03 02:09:33 thats how we make a new localStorage object Jan 03 02:09:43 (and how we do that is beyond me) lol Jan 03 02:10:04 * dwc- thinks that is poorly named then Jan 03 02:10:17 * PatrickC didnt name it Jan 03 02:10:25 seems like it should be something like LocalStorage.getLocalStorage(); Jan 03 02:10:39 idk. just doing what we do in the rest of the app Jan 03 02:10:39 sorry, not a web person Jan 03 02:10:51 the normal guy who does the preferences isnt around today and i want to get this done haha Jan 03 02:10:58 im not a localStorage person either :) Jan 03 02:11:14 im waiting for Tibfib_ or fxspec06 to chime in lol Jan 03 02:12:02 or window.localStorage at least Jan 03 02:12:18 document.localstorage? Jan 03 02:16:42 you make a new local storage object Jan 03 02:16:45 by Jan 03 02:17:26 localStorage["YOU CAN NAME IT WHATEVER YOU WANT"] = "THIS IS THE STUFF WE'RE PUTTING IN"; Jan 03 02:17:38 thats now how we do it Jan 03 02:17:39 that makes it. there is no new Jan 03 02:17:39 ... Jan 03 02:17:47 https://gist.github.com/1553062 Jan 03 02:18:07 i don't get it. i can't help you Jan 03 02:18:12 ok.. Jan 03 02:18:26 else if (prefs.read('browserSelection') === 'stockBrowser' ) { Jan 03 02:18:26 prefs.write('browserSelection', 'stockBrowser'); Jan 03 02:18:35 what?!? what is that? Jan 03 02:18:42 if a == 1, a = 1! Jan 03 02:18:48 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Jan 03 02:18:48 you know, just to be sure Jan 03 02:18:48 reading the value of the preferences, then writing the preference Jan 03 02:18:54 no! Jan 03 02:19:04 it's not! it's not at all! Jan 03 02:19:15 if (x == y) { x = y; } Jan 03 02:19:22 that's what you're doing Jan 03 02:19:23 the preferences wasnt sticking before i did that Jan 03 02:19:37 okay Jan 03 02:19:40 do it your way then. Jan 03 02:19:55 * PatrickC thinks he'll wait till the regular guy gets back on Jan 03 02:19:57 ill let him do it Jan 03 02:22:03 also patrickc Jan 03 02:22:15 idk nvm. Jan 03 02:22:34 what? Jan 03 02:23:37 the else if statement bottom two never evaluates. ever. Jan 03 02:23:39 f.y.i. Jan 03 02:23:42 you can just do: Jan 03 02:23:51 localStorage.setItem(...); Jan 03 02:23:58 anywhere you want Jan 03 02:24:10 but if it's being set to what it was just matched to, it doens't need setting? Jan 03 02:24:10 it works just like cookies Jan 03 02:24:17 * PatrickC is starting to wonder why they set up localStorage like this if no one else uses it like this :) Jan 03 02:24:33 i didnt set up any of this Jan 03 02:24:53 setItem wants a name and then the value, so you just be smart Jan 03 02:26:08 oh, I see now Jan 03 02:26:15 the confusion is with program illogic Jan 03 02:26:24 huh? Jan 03 02:27:38 localstorage is super simple =x Jan 03 02:27:39 you can't be like >> if ( x == 2 ) {} else if ( x == 2) {} Jan 03 02:27:48 there is no reason to write code like: var x = 1; if (x === 1) { x = 1} Jan 03 02:28:00 maybe there's a race condition Jan 03 02:28:09 and some other thread sets x to 2 in between Jan 03 02:28:28 * sugardave smacks dwc-. Jan 03 02:28:32 lmao Jan 03 02:28:36 so you just scatter x=1 throughout your code just to be sure you're still x==1 Jan 03 02:29:09 WOO https://market.android.com/details?id=com.fxspec.wildnpoker Jan 03 02:29:36 obviously it's buffer overflow exploit protection Jan 03 02:29:47 fxspec06: cool, congrats Jan 03 02:29:56 thanks! =) Jan 03 02:30:01 what award did you win Jan 03 02:30:18 the villo implimentation one. me and sports live HD got it Jan 03 02:30:26 got a pre 2 and a t-shirt Jan 03 02:30:31 nice Jan 03 02:30:35 cool Jan 03 02:31:58 p.s. i had to use the pre3 emulator to take those screenshots. SHH Jan 03 02:38:58 I kind of suspect from PatrickC's that in their code there is a custom "LocalStorage" object/class that they use as a wrapper around localStorage (and maybe cookie setting for backwards compatibleness?) Jan 03 02:39:25 Brybry, no clue. didnt write the function. not sure :) Jan 03 02:40:05 you can find out yourself Jan 03 02:40:12 ive tried looking Jan 03 02:40:15 i dont see it anywhere Jan 03 02:41:33 ah found it Jan 03 02:41:44 https://gist.github.com/1553196 Jan 03 02:42:10 well, I was half right! Jan 03 02:42:16 lol Jan 03 02:42:18 it doesn't actually call localStorage ever Jan 03 02:42:21 but it could be made to Jan 03 02:42:39 it's just confusing because it uses the same name and objects are case sensitive~ Jan 03 02:44:36 hmm.. almost working :) Jan 03 02:47:27 now its working! Jan 03 02:47:36 thanks guys for all the help! :) Jan 03 02:47:54 and thanks Brybry for making me look for where it was defined. if i didnt find that i would have never got it working :) Jan 03 02:48:32 np Jan 03 02:59:13 https://github.com/minego/phnx :) Jan 03 02:59:48 now has the person's defined location in their profile launch the maps app, and has a choice between the stock app and in-app for browser :)_ Jan 03 02:59:53 :) * **** ENDING LOGGING AT Tue Jan 03 02:59:57 2012