**** BEGIN LOGGING AT Sun Jan 08 02:59:57 2012 Jan 08 05:01:47 hmmm. i need to pack. Jan 08 07:06:49 hi..can i put my javascript code directly into my enyo file? Jan 08 07:13:31 any help?? Jan 08 19:17:55 * fxspec06 takes a nap Jan 08 19:56:40 so.. my new employer gave me an ipad2. i like my touchpad better i think. Jan 08 20:12:20 hey EricBlade! how was your trip? Jan 08 20:14:15 invalidopcode: well, i didn't make any progress on wanting to port it to unknown platforms (no one even recognized the name "webOS"), but i should have some constant work at least thru july Jan 08 20:17:02 ah well at least thats good Jan 08 20:18:40 i can't wait to get my apps on iPad Jan 08 20:21:19 well maybe when HP open sources enyo, its shouldn't be that hard Jan 08 20:21:30 hello guys Jan 08 20:22:27 yeah.. the available google voice and the free subsonic apps on ipad are terrible Jan 08 20:23:38 isn't the Google voice app on the ipad the offical one? Jan 08 20:23:48 panel: hello Jan 08 20:30:03 EricBlade: is there a subsonic app for webos? Jan 08 20:30:17 invalidopcode: the one i'm working on Jan 08 20:31:19 invalidopcode: the official one on iOS runs in the phone-emulator on the ipad, and the alternative pay-for one too closely mimics the messaging app for my tastes Jan 08 20:31:24 EricBlade: ah... looks interesting... i'd be happy to help test if you need it (after i get my touchpad working again) Jan 08 20:36:22 sounds like you'd need an ipad to help Jan 08 20:38:12 i meant to help with the subsonic app for webos Jan 08 20:44:04 Anyone know the webos equivilannt of console.log? Jan 08 20:44:34 coolstar-pc: console.log Jan 08 20:44:56 though if you're using mojo or enyo, there are more advanced functionalities, like this.log() in enyo .. not sure what it is in mojo Jan 08 20:45:14 EricBlade: I'm using enyo Jan 08 20:45:54 invalidopcode: http://ericbla.de/gvoice-webos/?p=297 Jan 08 20:46:26 coolstar-pc: in most places in enyo kinds, you can use this.log() .. although it sometimes blows up on circular references Jan 08 20:46:55 EricBlade: I figured it out. For some reason console.log doesn't work while console.info does Jan 08 20:47:17 and my most preferred way to debug (alert) doesn't work either Jan 08 20:47:24 weird. i wonder if you have something overriding console.log maybe from an external source Jan 08 20:48:51 EricBlade: I'm not overriding it. The only external js i'm loading is enyo Jan 08 20:49:04 i think enyo.log() works too Jan 08 20:49:57 EricBlade: ok, cool Jan 08 20:50:11 invalidopcode, get the touchpad fixed? Jan 08 20:50:39 EricBlade, got a question for u, PM? Jan 08 20:50:49 PatrickC: nope :/ its in a weird qualcomm mode, so im going to call up HP tomorrow Jan 08 20:51:01 that isnt good Jan 08 20:51:07 and what did #webos-internals say? Jan 08 20:51:20 they said to call up HP Jan 08 20:51:24 wow.. Jan 08 20:51:26 that stinks :/ Jan 08 20:51:50 i think its just that bootie got corrupted, and it should just be something that it needs a factory flash Jan 08 20:52:01 wow.. Jan 08 20:52:09 PatrickC: I've fixed up the UI part of the omnibar, but there's still this weird bug I have to iron out Jan 08 20:52:24 yup... Jan 08 20:52:25 whats the bug? Jan 08 20:52:40 * PatrickC wonders how bootie got corrupted Jan 08 20:53:29 PatrickC: The js i'm using to parse urls don't work. for some reason document.createElement("a").href.hostname returns .media.cryptofs.apps.usr.palm.applications.org.coolstar.browserhd instead of the hostname of the url Jan 08 20:53:52 PatrickC: The omnibar js works fine in chrome, so i wonder why it doesn't work in webos considering both are webkit Jan 08 20:54:05 PatrickC: I'm gonna try this out https://raw.github.com/kvz/phpjs/master/functions/url/parse_url.js Jan 08 20:54:10 i dont think the webkit version in webOS is as up-to-date as Chrome Jan 08 20:54:47 PatrickC: im wondering the same thing :/ it shows up as a serial port on my computer, so i think its waiting for a firmware download or something (which i don't have the tools for) Jan 08 20:55:04 yeah.. thats really weird Jan 08 20:55:15 PatrickC: The acid3 test on webos only scores 94/100 Jan 08 20:55:26 im gonna send my pre3 to wosi as it has broken a6 firmware Jan 08 20:55:51 coolstar-pc, what does Chrome get? Jan 08 20:55:56 * PatrickC doesnt have it open ATM Jan 08 20:55:57 PatrickC: 100/100 Jan 08 20:56:15 hmm.. maybe the 6 that webOS doesnt have is what u need :) Jan 08 20:56:19 coolstar-pc: sounds like you're getting the app's name rather than the name of the site it's attached to, which kind of makes sense a bit . what are you trying to do? Jan 08 20:56:44 * PatrickC brb Jan 08 20:56:51 reboot to linux to build a meta-doctor time :) Jan 08 20:57:23 EricBlade: I'm trying to get the hostname of the url. If the hostname contains a period, treat it as a url. Otherwise, if its localhost, still treat as url, but if not treat as google search Jan 08 21:02:51 strip it between http:// / https:// and the first /, if those items are present, check it for a ".", make a decision :) Jan 08 21:03:23 i haven't yet figured out regex in javascript, it seems weird, but if you know that it should be super simple, if not, a few lines of string functions Jan 08 21:07:10 var regexp = /http.*:\/\/(.*)\/.*^; var matches = regexp.exec(theString); console.log matches[1]; Jan 08 21:09:02 ^^ what sugardave's keyboard just barfed Jan 08 21:09:24 regex, much like perl, looks like computer vomit Jan 08 21:09:39 yeah, my regexp is VERY inefficient Jan 08 21:09:47 but I don't care, as long as it works Jan 08 21:09:52 i bet if i plugged that into perl, it would format my hard drive Jan 08 21:09:59 hah Jan 08 21:10:38 listen to sugardave he's way better at this than i am Jan 08 21:10:54 sugardave: I think I can use this: http://phpjs.org/functions/parse_url:485 Jan 08 21:11:32 probably...but mine is only 2 lines :) Jan 08 21:12:19 sugardave: I prefer to not use regex. Like EricBlade said, it does look ugly. Jan 08 21:12:30 ? Jan 08 21:12:37 that's what the code you pasted is using :P Jan 08 21:13:20 i didn't notice that. lol Jan 08 21:16:29 oops. Jan 08 21:18:02 lets see if i can actually download all these doctors haha Jan 08 21:19:46 invalidopcode, coolstar-pc, what terminal do u guys use? xterm? Jan 08 21:20:04 PatrickC: personally, i use Konsole, because im in KDE Jan 08 21:20:04 PatrickC: I used to use gnome-terminal, and I now use konsole Jan 08 21:20:27 invalidopcode: Lol we pressed enter at the same time Jan 08 21:20:43 coolstar-pc: haha i noticed. nice timing :P Jan 08 21:21:12 well, i only have kde desktop :) Jan 08 21:21:28 i searched for Konsole in the start (i know..) menu and didnt find it Jan 08 21:21:39 PatrickC: Its the kickoff launcher Jan 08 21:22:14 ok. that phpjs code didn't work. Jan 08 21:22:20 * coolstar-pc is gonna try sugardave's regex Jan 08 21:24:25 sugardave: [20120108-13:23:25.433569] error: Uncaught SyntaxError: Invalid regular expression: missing /, CoolStarBrowser.js:81 Jan 08 21:24:44 oh Jan 08 21:24:46 yeah Jan 08 21:24:53 add one more / at the end of the regexp Jan 08 21:26:26 PatrickC: if its not there, just install it Jan 08 21:27:05 sugardave: error: Uncaught TypeError: Cannot read property '1' of null, CoolStarBrowser.js:83 Jan 08 21:27:11 invalidopcode, thats what im doing, but since this is Ubuntu with KDE desktop, im following a tutorial on how to install it haha Jan 08 21:27:32 then there was no match... Jan 08 21:27:37 PatrickC: just open up xterm and type "sudo apt-get install konsole" Jan 08 21:28:10 sugardave: I think its cuz the touchpad's keyboard makes it Http instead of http. I'm trying to feed it into the regex using url.toLowerCase(0 Jan 08 21:28:16 *Case() Jan 08 21:28:21 really? this tutorial says i have to add the feed to the sources.list Jan 08 21:28:53 PatrickC: If you're using a debian based distro, konsole should be in the default sources Jan 08 21:28:53 iirc is should already be in the main source if you installed KDE Jan 08 21:29:08 invalidopcode: Nice timing again :) Jan 08 21:29:21 installing :) Jan 08 21:29:29 funny.. installing a terminal with a terminal lol Jan 08 21:29:52 PatrickC: When I made a terminal app, I used another terminal to debug it Jan 08 21:29:59 PatrickC: Debugging a terminal with a terminal lol Jan 08 21:30:08 lol Jan 08 21:30:11 coolstar-pc: hahaha awesome Jan 08 21:31:24 * PatrickC gets back to debugging his app Jan 08 21:31:44 while i was at the apple store obtaining my ipad for work, the guy saw my TouchPad, and said "it is ignominious what HP did to webOS". my boss gave him a dollar for using that word. Jan 08 21:32:11 really? I would have punched his pretentious ass in the face Jan 08 21:32:30 lol Jan 08 21:33:39 he was really excited to see both a TouchPad and a Pre2. i was .. surprised Jan 08 21:33:55 How do I kick myself off? Jan 08 21:33:59 he thought the ability to share sms and calls was amazing Jan 08 21:34:27 * invalidopcode looks up ignominious in the dictionary Jan 08 21:34:42 coolstar-pc: looks like you're using the webchat, so if you close that tab or otherwise browse away, you're outta here Jan 08 21:34:47 yeah i did that too after, invalidopcode Jan 08 21:35:40 Adjective:Deserving or causing public disgrace or shame: "ignominious defeat". interesting.... Jan 08 21:35:45 sugardave: It's because I was here, and apparently webchat errored out, so now my nick has this ugly underscore at the end. I always identify my nick, so I want to know how to kick that other session Jan 08 21:35:57 oh Jan 08 21:36:19 invalidopcode, i did that too haha Jan 08 21:36:27 coolstar-pc_: i think there's a ghost command for that iirc Jan 08 21:36:35 msg nickserv ghost Jan 08 21:36:50 thank you Jan 08 21:36:50 there you go Jan 08 21:37:03 sugardave, can anyone op up? Jan 08 21:37:08 hahaha Jan 08 21:37:09 no Jan 08 21:37:13 i didnt think so :) Jan 08 21:37:22 sugardave was just showing off Jan 08 21:37:37 lol Jan 08 21:39:34 the built in browser in iOS 5 is really quite nice on tablet, though it's depiction of tabs doesn't make sense Jan 08 21:40:02 sugardave: btw. I don't want the regex finding the dots in the url for me. I just want to find out the hostname from the url. Jan 08 21:41:04 I think I might have figured it out Jan 08 21:41:05 http://beardscratchers.com/journal/using-javascript-to-get-the-hostname-of-a-url Jan 08 21:41:15 coolstar-pc: well, now you have the entire hostname, so you can either match against that with a new regexp, modify the original, or be wild and do .split(".") on you current result and the answer will be in index[0] Jan 08 21:41:22 er index 0 Jan 08 21:42:07 coolstar-pc: you want host name or domain name? Jan 08 21:42:22 how should it work if you go to www.google.com vs. google.com? Jan 08 21:42:44 sugardave: http://*/ Jan 08 21:42:52 right Jan 08 21:42:56 that's what you get now Jan 08 21:42:57 that's the pseudo-regex Jan 08 21:44:01 sugardave: Only that the http:// part is not there Jan 08 21:44:38 so regexp would be /$(.*)\// Jan 08 21:44:41 sugardave: Even before the regex is called, it searches for http://, https://, etc. and if they're found, its treated as a url no matter what Jan 08 21:45:05 would get google.com from google.com/someUrl Jan 08 21:46:25 sugardave: Is this right? http://pastie.org/3150824 Jan 08 21:47:06 man. i love linux Jan 08 21:48:03 coolstar-pc: assuming you stripped http and https from the string, that should work Jan 08 21:48:35 sugardave: I still get this: error: Uncaught TypeError: Cannot read property '1' of null, CoolStarBrowser.js:83 Jan 08 21:48:50 wow.. if that was the issue, i feel really stupid haha' Jan 08 21:48:59 make sure you have a valid string in url, I guess Jan 08 21:49:04 PatrickC: you should say that a little louder so cwayne can hear you :P Jan 08 21:49:47 *about loving linux Jan 08 21:49:52 why would line 2 on http://pastebin.com/bQc8F43Y give me an error? Jan 08 21:49:58 lol Jan 08 21:51:17 I'm guessing because you did something wrong Jan 08 21:51:24 I'm only using history as my guide Jan 08 21:51:54 sugardave: I found a way without using regex Jan 08 21:52:06 cool Jan 08 21:52:08 sugardave: var test = url.split('/'); return test[0]; Jan 08 21:52:12 sugardave, ive progresses in my knowledge of js :) Jan 08 21:52:19 not far, but there has been progression! haha Jan 08 21:52:24 coolstar-pc: that works :) Jan 08 21:52:37 * coolstar-pc finally got his omnibar working! yay! Jan 08 21:52:40 my variables seem to be set up fine, not sure why its erroring Jan 08 21:52:45 coolstar-pc, nice!! Jan 08 21:52:51 PatrickC: not sure about the clipboard stuff, but I would guess "banner" is undefined Jan 08 21:52:55 * coolstar-pc now just has to patch up a little bit of UI stuff Jan 08 21:53:27 it errors at line 2 Jan 08 21:53:32 which is a variable Jan 08 21:54:23 then event is likely undefined Jan 08 21:54:37 PatrickC: why not try putting an enyo.log(e.innerText) above and see what it outputs Jan 08 21:54:56 * PatrickC should think like invalidopcode more often :) Jan 08 21:54:59 ill try that Jan 08 21:55:21 i think sugardave is right, but at least the log will prove it Jan 08 21:56:09 banner works fine everywhere else i use it Jan 08 21:56:26 btw, its pobably not good to think like me or you might end up with bricked devices :P Jan 08 21:56:36 lol Jan 08 21:57:36 in the absence of all information, banner was the likely culprit, but when you said "line 2" that lets me know that event is undefined Jan 08 21:57:55 you are trying to assign a var to a property on an object that doesn't exist Jan 08 21:58:02 that's whay it fails Jan 08 21:58:34 if you said var e = event; it will pass through even though event is undefined....e will just be undefined Jan 08 21:58:54 or null or something equally "not there" Jan 08 22:00:18 Do you guys use an IDE for webos? and which one (if you do)? Jan 08 22:00:31 I personally use Eclipse Jan 08 22:00:37 I just use a text editor Jan 08 22:00:40 sublime2 Jan 08 22:01:03 coolstar-pc: kate, or eclipse on occation Jan 08 22:02:25 * coolstar-pc added an onloadcomplete handler to update his omnibar's url Jan 08 22:02:49 * coolstar-pc is trying to set his toolbar's height to 43 pixels Jan 08 22:02:52 coolstar-pc, kate or sublimetext2 Jan 08 22:03:09 height: 43px; Jan 08 22:03:11 ;) Jan 08 22:03:18 PatrickC: Doesn't work Jan 08 22:03:47 style: "height: 43px !important" Jan 08 22:03:55 well Jan 08 22:03:56 style: "height: 43px !important;" Jan 08 22:04:06 sugardave: view.$.toolbar.applyStyle("height", "43px"); Jan 08 22:04:12 that doesn't seem to work Jan 08 22:04:34 try it with !important Jan 08 22:05:13 sugardave: still doesn't work in chrome, or webos Jan 08 22:05:28 * sugardave really wishes he could pass this tcp connection object from his service to his app. Jan 08 22:05:43 sugardave: view.$.toolbar.applyStyle("height", "43px !important"); Jan 08 22:05:58 well, try it in the style property of the control Jan 08 22:06:03 or the control's container Jan 08 22:06:24 sugardave: In the chrome web inspector, the style is being applied with the !important, but it can't do anything Jan 08 22:06:38 it seems like it's probably because an object in the toolbar is taking up the space Jan 08 22:06:56 you might need to overrid min-height Jan 08 22:06:57 I figured it out Jan 08 22:07:06 stupid enyo-build.css Jan 08 22:07:19 view.$.toolbar.applyStyle("min-height", "43px !important"); Jan 08 22:07:59 * coolstar-pc got his toolbar's height right Jan 08 22:18:17 hi Jan 08 22:21:28 hello Jan 08 22:22:53 * invalidopcode wishes the touchpad had a removable battery Jan 08 22:24:46 my touchpad lasts like, a month on a charge Jan 08 22:25:06 of course, I usually lose it for a month at a time, so there is that Jan 08 22:25:45 speaking of which, where did it run off to this time... I need to pack it Jan 08 22:26:00 invalidopcode, same here hah Jan 08 22:26:04 brb dinner time Jan 08 22:26:13 haha its not that. its just my first instinct when a device won't boot is to cut all power in case something is stored funny in the RAM, but i can't do that with the touchpad :/ Jan 08 22:45:48 haha, linux thinks my touchpad is a modem now, this just keeps getting more interesting.... Jan 08 23:05:25 lol Jan 08 23:16:22 PatrickC: Remember that fight we had with cwayne, when I said I made my own ubuntu based distro? Jan 08 23:19:01 PatrickC, invalidopcode: Remember that fight we had with cwayne, when I said I made my own ubuntu based distro? Jan 08 23:19:14 coolstar-pc: haha yup Jan 08 23:19:49 invalidopcode: I found the website I had made for it. http://gsos.comuf.com/down_gsos/ username: goldstarteam password: goldstar123 Jan 08 23:20:15 invalidopcode: I haven't maintained it in 1 1/2 years, so I password protected it. I won't recommend downloading the iso Jan 08 23:20:59 haha you had four different versions of it? was this Vista or something? :P Jan 08 23:21:00 * cwayne may have been a little intoxicated that night Jan 08 23:21:19 Hmmm this iPad ver of irc is quite nice. Too bad it's on an ipad Jan 08 23:21:33 invalidopcode: The four different versions were all free, but the cost was the download time. lol Jan 08 23:22:44 Cool star, I ran across an iPad game when I was messing with it that was so terrible, I actually left a review stating that I wanted my 7 seconds spent downloading it back Jan 08 23:23:07 coolstar-pc: what, "no professional" version? :P Jan 08 23:23:19 *no "professional" Jan 08 23:23:37 invalidopcode: I was planning on that, but I couldn't install virtualbox into the chroot that would become the iso at that time. lol Jan 08 23:24:32 invalidopcode: Gamer = Home Premium + Supertuxkart + Extreme tux racer + 20000 light years into space Jan 08 23:25:13 haha i noticed that... i was gonna say they looked the same, then i saw that gamer included a whole 3 games :P Jan 08 23:26:04 invalidopcode: Home Basic = Home Premium - Wine Jan 08 23:26:26 Weird can't seem to close any tabs in it though Jan 08 23:26:37 invalidopcode: And Lite is Home Basic with all apps removed except Firefox and Chrome. lol Jan 08 23:27:20 coolstar-pc: haha thats funny, sounds almost microsoft official :P Jan 08 23:27:25 coolstar-pc, why did you make them? Jan 08 23:27:37 * invalidopcode was wondering the same thing Jan 08 23:27:56 RagingMind: My original purpose was to stick them on USBs, and show them off at other people's computers. Randomly plug it in and boot. Jan 08 23:28:22 I made these versions of different sizes cuz I have USBs of different sizes Jan 08 23:28:26 Then I decided to upload them Jan 08 23:28:35 ah cool Jan 08 23:29:01 invalidopcode: But those isos are from September, 2010. So they're outdated Jan 08 23:29:35 i did that for school. the teachers have no clue about technology, so i made up some "magic disks" LiveCDs with a version of OpenSUSE specially designed for the needs of the school Jan 08 23:30:36 invalidopcode: If I start on it again, I'll either fork Gnome 2, or base it on KDE Jan 08 23:30:48 * coolstar-pc hates Unity and Gnome 3 Jan 08 23:31:05 haha yeah i had mine based off of KDE Jan 08 23:31:24 actually gnome 3 isn't that bad on a tablet, but i don't like it on a desktop Jan 08 23:31:57 coolstar-pc: theres already a fork of gnome2, i think its called mate Jan 08 23:32:08 cwayne: Hello Jan 08 23:32:12 geez, why is there like no technical information available for the qualcomm APQ8060??... :/ Jan 08 23:32:52 (the touchpad's CPU) Jan 08 23:35:32 cwayne: Is mate in the ubuntu repos? Jan 08 23:38:01 coolstar-pc, there's already a fork of gnome 2 and there's work to make gnome 3 look/act like gnome 2 Jan 08 23:39:53 coolstar-pc, http://www.phoronix.com/scan.php?page=news_item&px=MTAzMTQ Jan 08 23:41:29 Well, that's fun. Fantastic demonstration of ios multitasking -- letting the device lock drops all your persistent connections. Jan 08 23:41:55 EricBlade-mobile: It's because it turns off wifi to save battery Jan 08 23:42:08 EricBlade-mobile: Well, at least that's what my iPod Touch does Jan 08 23:44:17 coolstar-pc: nope Jan 08 23:44:23 coolstar-pc: im sure thres a ppa for it though Jan 08 23:44:47 cwayne: https://launchpad.net/~amanas/+archive/mate-desktop Jan 08 23:44:56 coolstar-pc: yep thats the one Jan 08 23:53:19 EricBlade-mobile, PM? Jan 08 23:54:36 say no Jan 08 23:55:07 haha Jan 08 23:58:07 bbl Jan 09 00:03:36 anyone have any suggestions (age old wisdom, whatever) about making good webOS icons? Jan 09 00:09:33 s/webOS// Jan 09 00:09:36 ;) Jan 09 00:10:13 ? Jan 09 00:11:33 invalidopcode: hire a designer Jan 09 00:12:10 Tibfib_: im not hiring a designer for my free little boy scout app :P Jan 09 00:13:12 invalidopcode, my point was that whatever makes a good icon on webOS won't be specific to webOS icons Jan 09 00:13:55 oh haha ok Jan 09 00:14:44 invalidopcode, other people in here have mentioned websites that have free icons to use, but I don't remember what they were Jan 09 00:15:16 http://www.iconfinder.com/ Jan 09 00:15:23 you can filter by license Jan 09 00:15:31 RagingMind & Tibfib_ ah, ok thanks! ill look around Jan 09 00:17:19 if im releasing my app as free, is it considered commercial? Jan 09 00:21:50 no Jan 09 00:22:19 ok, cool. i found this icon, an i think i might use it: http://www.iconarchive.com/show/grunge-stickers-icons-by-mysitemyway/orange-sticker-badges-139-icon.html Jan 09 00:24:06 the badge thingy doesn't survive to lower resolutions all that well Jan 09 00:24:41 well he won't need lower resolutions Jan 09 00:26:27 even a higher resolution at a small size it doesn't show up all that well Jan 09 00:27:26 hm... i might be able to GIMP it and make the badgy thing larger Jan 09 00:41:59 actually, i just tried it out in the emulator and it works pretty well Jan 09 00:42:45 thanks for the help RagingMind and Tibfib_ Jan 09 01:37:14 why does HP need a social security number to allow submitting app? Jan 09 01:45:59 taxes. Jan 09 01:46:16 irs. protection Jan 09 01:51:54 so like i don't pay taxes right now... does it really effect me much? Jan 09 02:40:01 still need a ss number **** ENDING LOGGING AT Mon Jan 09 02:59:57 2012