**** BEGIN LOGGING AT Fri Mar 08 02:59:59 2013 Mar 08 04:18:12 Herrie: I would prefer something like org.webosports.app.pdfviewer Mar 08 04:18:23 ah, org.webosports.app.pdf is ok as well Mar 08 04:18:45 morphis, we agreed on org.webosports.app.pdf Mar 08 04:18:59 and when he is here tommorow he will push up the code Mar 08 04:19:43 great Mar 08 04:35:47 scoutcamper: I wonder what the performance of pdf.js is in webkit on a mobile device.. Mar 08 04:36:08 ask Herrie ;) Mar 08 04:36:31 destinal: with software rendering it will be very poor Mar 08 04:37:38 morphis: oh yes that too but I was thinking just js engine performance Mar 08 04:38:49 ah Mar 08 04:38:58 depends on how old our webkit is Mar 08 04:42:48 try OLD Mar 08 05:23:35 folks Mar 08 05:24:51 hiya bhuey Mar 08 06:43:44 I cannot get it to work on Legacy 2.2.4 yet for some reason (could be poor packaging), but works 100% OK on Firefox and Chrome, so I'm quite sure the code is fine and probably old webkit doesn't work. Need to check on TP still to see if I can get it running there. It keeps "hanging" on the Enyo loading icon on my 2.2.4 Veer and the log showed some "undefined" error in the pdf.js file Mar 08 06:47:21 hmmm.... Mar 08 06:50:46 Still needs some work, but it works on FF and Chrome and my own Enyo/JS code runs fine, it's the Mozilla bits that don't run on 2.2.4 Mar 08 06:50:56 According to palm-log Mar 08 06:51:06 Just need to debug a bit more and get the packaging sorted Mar 08 06:51:35 Now have huge IPK still due to non proper packaging (12MB), should be minified etc, but hope ShiftyAxel can help with some bits Mar 08 06:53:13 okay...this is a good start..go ahead and push up what you have to the repo..its all set for you. Mar 08 06:53:21 Thnx saw Mar 08 06:53:26 Will do when I get to it later today Mar 08 06:53:35 Will first see what I can still fix adn then push it out Mar 08 06:53:43 Maybe will test it quickly on my TP first Mar 08 06:54:23 even if its "broken" its best to push the code up so others (like shiftyaxel) can see. Mar 08 06:55:59 Yup will do, just need to get git software installed Mar 08 06:56:25 Do we have any preference where to put external libs like the pdf.js? Should this be in libs like the webos-ports bits? Mar 08 07:03:58 does this touch the coreOS stuff or manipulate the underlying OS? Mar 08 07:04:34 if not treat it like any other webOS App and it will install via preware (or be provided on the device) Mar 08 07:05:29 I think we will provide it on the device in the image but upgrade it via preware. Mar 08 07:08:55 OK, well it's just the external pdf.js lib, wondering if I should put it in "source" or "lib/pdf.js" for example? Mar 08 07:09:43 I think we decided that things like cordova.js and enyo.js would live in lib/ Mar 08 07:09:45 hey Mar 08 07:09:57 so thats a good place for them Mar 08 07:09:58 ka6sox: good seeing you the yesterday. slept all day today and I feel better Mar 08 07:10:04 * bhuey has been sick Mar 08 07:10:15 excellent...I woke up @ 4am and started working...not so good for me! Mar 08 07:10:39 yeah I needed the sleep and the rest is good for bronchitis Mar 08 07:11:34 bhuey, good plan. Mar 08 07:11:56 Herrie, in lib/pdf.js is fine Mar 08 07:13:40 okay I'm about to fall over Mar 08 07:15:31 OK Mar 08 07:42:55 OK it's in https://github.com/Herrie82/org.webosports.app.pdf now, need to figure out how to get it to ports one Mar 08 07:42:58 Will do that later Mar 08 16:30:44 Anyone know about this error? Mar 08 16:30:46 http://stackoverflow.com/questions/15277622/libc-csu-fini-and-libc-csu-init-undefined-while-following-instructions-for-b Mar 08 19:27:51 Can anyone test an IPK for me on OWO? It's the new PDF viewer, just want to know if it works ;) Mar 08 19:28:41 ordinarily i would but i am walking out the door now. bbl. Mar 08 19:28:45 * scoutcamper gone Mar 08 19:29:05 Ok ;) Mar 08 19:29:09 I' Mar 08 19:29:21 I'll put the IPK on github in case you have time later ;) Mar 08 19:29:53 Herrie: I can do that Mar 08 19:30:20 OK ;) Mar 08 19:30:49 Also got packaging problem... If I minify in Enyo I get App not defined, but it's in app.js for sure... So not sure what I'm doing wrong... Non-minified works OK Mar 08 19:31:12 i've had issues using non-minified on Ow Mar 08 19:31:25 It's my first go at something in Enyo, so it must be something silly Mar 08 19:31:28 do you have any additional dependencies in debug.html? Mar 08 19:31:46 cordova, etc Mar 08 19:31:47 I just used the index.html Mar 08 19:31:53 Didn't do cordova yet Mar 08 19:31:56 hm Mar 08 19:32:14 Works OK on Chrome and firefox, so quite sure the code is OK Mar 08 19:32:25 index.html redirects to debug.html when there's no build Mar 08 19:32:52 non-minified won't start on 2.2.4 / 3.0.5 classic webos due to uint8array which is not supported on old webkit as it seems Mar 08 19:33:00 hrm Mar 08 19:33:00 Back in a minute Mar 08 19:33:03 VirtualBox update Mar 08 19:33:45 Back Mar 08 19:33:48 wb Mar 08 19:34:01 4.2.8 update was quick Mar 08 19:34:05 if you push it up to github i can troubleshoot it for you quickly Mar 08 19:34:10 All code is on https://github.com/webOS-ports/org.webosports.app.pdf Mar 08 19:34:17 nice Mar 08 19:34:35 Didn't change much on Mozilla bits actually Mar 08 19:34:41 Sorry if it's a bit messy Mar 08 19:35:05 wait, you changed index.html to point to the non-minified app? Mar 08 19:35:48 Ehm yes, but also have one for minified Mar 08 19:36:05 It's in the deploy folder ;) Mar 08 19:36:13 changing the bootplate structure isn't generally good practice, fwiw Mar 08 19:36:26 Oops that might be messed up too LOL Mar 08 19:36:42 Like I said it works OK in Chrome and Firefox, just had problems packing it up properly Mar 08 19:37:09 deploy takes index.html from the root directory and copies it into deploy/$APPNAME along with the minified ones Mar 08 19:37:21 AH ok Mar 08 19:37:26 it won't start on-device because your deployed index.html is pointing at a non-existent source folder Mar 08 19:37:49 OK, I fixed it manually before packaging, but then did a minify again before pushing to git Mar 08 19:37:57 Hence the broken index.html in deploy as well now Mar 08 19:38:13 Should be a few quick fixes for you Mar 08 19:38:18 Sorry for that Mar 08 19:38:32 no worries, i'll be able to look it over in a while and get it into good shape :) Mar 08 19:38:40 Basically put everything from Mozilla in /lib/pdfjs Mar 08 19:38:53 that's good practice :) Mar 08 19:38:57 Only custom code is in source/app.js Mar 08 19:39:10 There were tons of DIVS in the viewer.html from Mozilla Mar 08 19:39:19 also another thing, it'll load but never display on-device because there's no call to PalmSystem.stageReady() that I can see Mar 08 19:39:36 Didn't bother to do proper Enyo for those, so just did it dirty by means of tags Mar 08 19:39:54 Yeah was thinking about that... I think it takes you probably 10-20 minutes to clean it up ;) Mar 08 19:39:57 THen it should be OK ;) Mar 08 19:39:58 cordova will automatically do that, but vanilla enyo2 doesn't so you need to put stageready under the App().renderInto Mar 08 19:40:07 yeah, will be no prob Mar 08 19:40:20 You just made so many apps already and this was my first one LOL ;) Mar 08 19:40:26 but for the moment i have somewhere to be, so bbiab Mar 08 19:40:31 OK ;) Mar 08 19:40:34 Thnx for looking Mar 08 19:40:50 no prob, thanks for making us a PDF app! :) Mar 08 19:41:24 if bluen were here i'm sure he'd be very pleased, and then request a highlighting feature Mar 08 19:48:18 LOL ;) Mar 08 20:01:57 Ok fixed index.html and debug.html to be more proper. Still needed to add a line to index.html Mar 08 20:12:36 hoy hoy Mar 08 20:23:54 Herrie, don't forget to push up whatever you have :D Mar 08 20:37:32 Everything is there already ;) Mar 08 20:37:50 Just needs a little fixing by ShiftyAxel or someone else and to be tested on a device ;) Mar 08 20:37:55 But shoudl theoretically work Mar 08 20:38:20 Should still implement a way to open a PDF instead of sample one, but that shouldn't be too complicated Mar 08 20:38:22 Herrie, thanks! Mar 08 20:48:29 Herrie, is this closed webos compatible? Mar 08 20:57:49 No, seems like closed doesn't support uint8array Mar 08 20:57:55 And it's required as it seems Mar 08 20:58:06 So guess webkit there is too old for it... Mar 08 20:58:21 Not sure if it could be replaced with something else... Didn't look into it yet to be honest Mar 08 20:59:01 folks Mar 08 21:02:16 awwww :( Mar 08 21:10:02 When DKirker finally fixes Isis for legacy we can use it ;) Mar 08 21:11:42 as a web app? Mar 08 21:24:04 Ehm yes ;) Mar 08 21:44:11 Can someone create a nice icon for PDF app? Mar 08 21:44:29 i'd ask Isandunk or Appstache about that Mar 08 21:44:45 also I return, so it's time to get the pdf app in shape Mar 08 21:44:54 brb reboot Mar 08 21:48:25 back# Mar 08 21:51:59 good lord git is slow to clone these days Mar 08 22:04:25 Herrie: please try to follow the existing -ports apps coding style in future Mar 08 22:04:38 this is quite hard to read Mar 08 22:29:36 I tried LOL Mar 08 22:29:43 Sorry for that Mar 08 22:30:40 It's pretty much copy & paste from viewer.html but wrapped it in Enyo2 and stripped out useless bits Mar 08 22:30:51 Will put some commenting in later ;) Mar 08 22:31:27 Anyway off to bed now Mar 08 22:38:01 only source/app.js is custom, rest is standard from Mozilla or your bootplate app Mar 08 22:38:59 Only problem seems packaging properly and I have no device/environment to test in, since OWO desktop stable/unstable are broken :'( Mar 08 22:39:20 lol yes, it's like you've used enyo to make an app originally written in html Mar 08 22:39:46 I should be able to get it running properly on an Ow device this evening :) Mar 08 22:39:50 i have a few hours Mar 08 22:41:04 Yeah I know, but since it were mainly divs I had not too much choice ;) Mar 08 22:41:13 Could have replaced some buttons etc, but well ;) Mar 08 22:41:29 It's pretty much mirror of the HTML from Mozilla... Should do the trick in general right? Mar 08 22:42:52 If you look at the original http://mozilla.github.com/pdf.js/web/viewer.html there's not that much you could re-write in Enyo... Mar 08 22:43:11 And this was a first proof of concept to see if it actually works on a device, if yes, can tweak it ;) Mar 08 22:43:42 And add more proper Enyo bits ;) Mar 08 22:44:09 Though Mozilla layout it pretty clean and I quite like it... Mar 08 22:47:25 And why bother to re-invent the wheel if Mozilla standard stuff works out of the box :P Mar 08 22:47:37 Makes it easier to update when Mozilla updates stuff too :P Mar 08 22:47:59 Only changed a few lines in Mozilla's code. I believe only in pdf.js to be honest :) Mar 08 22:49:17 Sorry viewer.js that was Mar 08 22:54:48 i'll be rewriting it in onyx shortly then :P Mar 08 22:55:08 all our core apps should have a standardized look and feel to them Mar 08 22:56:20 Agree, but since I have no clue if it works on device, wanted to have that tested first before spending more time LOL Mar 08 22:56:34 And I have no way of testing it except for Firefox and Chrome in which it both works :P Mar 08 23:58:57 folks Mar 09 00:00:47 hey bhuey Mar 09 00:05:21 what's up ? Mar 09 00:05:43 the sky? Mar 09 00:08:01 :P Mar 09 00:08:53 ceiling tiles Mar 09 00:09:01 also me rewriting the entire PDF app Mar 09 00:55:08 ShiftyAxel: why? I thought herrie did that Mar 09 00:57:25 he converted the PDF.js demo viewer into an enyo2 app Mar 09 00:57:38 and it wouldn't and couldn't work on Ow due to the way it was put together Mar 09 00:57:51 so I'm using a minified pdf.js and using it's canvas functionality to write one in enyo Mar 09 00:59:22 aha Mar 09 00:59:27 guess I had misread Mar 09 01:14:04 ShiftyAxel: ah, lots of work? Mar 09 01:15:33 destinal: I spent an hour or so refactoring his code into -ports style, then found out that it didn't work Mar 09 01:15:44 doh **** ENDING LOGGING AT Sat Mar 09 02:59:59 2013