**** BEGIN LOGGING AT Wed Feb 29 02:59:58 2012 Feb 29 03:52:10 Greetings gentlemen, I have a question for you: Is it possible to have command line access in applications if you're developing just using js and html5? Feb 29 03:52:40 I'm not spotting any documentation for such a function. Feb 29 03:53:29 like to run /bin/ls or something? no Feb 29 03:53:45 something like that indeed. Feb 29 03:55:36 dwc-: Yes, is that possible? Feb 29 03:56:09 not without a custom service Feb 29 03:57:51 dwc-: I was worried you were going to say that. I've no experience doing development for webOS in C++, but is that the way I'm going to have to do this then? Feb 29 03:59:21 aarobc: perhaps if you explain a little bit more about what you're trying to achieve Feb 29 03:59:38 is this homebrew or for the app catalog? Feb 29 04:00:00 just homebrew right now, Feb 29 04:02:51 I think you'll need a C service or hybrid plugin Feb 29 04:03:19 maybe if you're lucky, there's an appropriately compatibly licensed service that does what you want already... what is it you're trying to do? Feb 29 04:37:31 did work on work stop Feb 29 04:37:58 wirc Feb 29 04:46:27 aarobc: you can run some commands with a node service. you can also run (some?) things as hybrids Feb 29 04:48:25 * rwhitby points to github.com/rwhitby/hello for an example of such Feb 29 09:05:08 i think for my next trick, i'm going to do a Google Reader app that doesn't piss me off Feb 29 09:05:23 maybe, don't hold me to that Mar 01 00:11:05 holy freakin crap. i think i'm gonna win this pixi. Mar 01 00:11:43 it ends in 4 days. it comes w/ two touchstones Mar 01 00:13:21 4 days and you're calling it already? :P Mar 01 00:14:16 lol Mar 01 00:14:34 unless some crazy dude decides to outbid me Mar 01 00:15:11 i could use the touchstones. and the screen size is great b/c i don't have that screen size to test yet Mar 01 00:15:39 i wonder if the sprint pixi will get webos 3.0 ever. i'm sure someone will try to hack it eventually Mar 01 00:21:28 maybe he bid $1,000,000.00 Mar 01 00:22:13 I think my price point for a new pixi+2 touchstones would be about $30 Mar 01 00:26:20 i wouldn't go too much higher. Mar 01 00:26:25 .........orrrrr would i o.O Mar 01 01:20:33 fxspec06_, u can buy brand new pixi's for like 35 Mar 01 01:20:45 they are on meritline and newegg all the time Mar 01 01:29:05 i bet they have more ram, too Mar 01 01:29:16 but they don't come w/ a pink case and two TS's ;) Mar 01 01:29:32 and an extra battery. as if i didn't have three more of those lying around Mar 01 01:29:58 the TS's are important, because i have none. Mar 01 01:31:26 why didn't you get them when they were ~$2.50 (palm, firesale time) - $5 (verizon, for awhile) Mar 01 01:42:01 because it didn't coem with a pink pixi lol Mar 01 01:42:10 idk, i missed the boat on that one. Mar 01 02:19:13 * DougReeder waves hello Mar 01 02:20:01 Hey, is there a C function I can use in a plugin that works like JavaScript's lastIndexOf? Mar 01 02:22:55 you mean, within a list? Mar 01 02:23:06 or what are you asking, more specifically? Mar 01 02:23:30 http://www.cplusplus.com/reference/string/string/ and http://www.cplusplus.com/reference/clibrary/cstring/ Mar 01 02:23:42 In a string Mar 01 02:23:55 oh, strings Mar 01 02:24:59 C doesnt't have a string data structure, C++ does. Assuming you're not actually tied explicitly to C, the the first link Brybry posted suggests there's a find_last_of function Mar 01 02:25:14 C has char * Mar 01 02:25:22 and string.h Mar 01 02:25:28 I linked to both C and C++ Mar 01 02:25:28 if there's a find first of you could always reverse the string yourself and do that Mar 01 02:25:44 wait Mar 01 02:25:51 bad idea i think Mar 01 02:26:06 I was unaware of string.h Mar 01 02:26:10 fxspec06_: bad idea why? Mar 01 02:26:16 you'd have to reverse the string you're searching, too Mar 01 02:26:23 lol Mar 01 02:26:43 fxspec06_: strrchr, strrstr Mar 01 02:26:45 oh, if you're looking for a multi-char string, yes Mar 01 02:27:26 I'm just needing to split the filename from a path. Mar 01 02:27:29 moo? where did this cow come from Mar 01 02:27:37 So strrchr is the one. Mar 01 02:35:28 DougReeder: #include char *dirname(char *path); char *basename(char *path); Mar 01 02:35:41 POSIX.1-2001 Mar 01 02:37:08 I'l see if that's available Mar 01 02:45:13 It's available, but writes a 0 on top of the slash! Mar 01 02:47:14 ok. char *dup = strdup(path); dir = dirname(dup); name = basename(dup); /* use dir and name here */ free(dup); /* but not here */ Mar 01 02:52:19 Thanks; I need to assemble an alternate filename, so it'll be a little different, but I couldn't remember tha name of strdup, and the XCode docs are not crosslinked so much as I would like. Mar 01 02:54:43 chr newfilename[MAX_PATH]; strcpy(newfilename, dirname); strcat(newfilename, "/"); strcat(newfilename, "new.jpg"); Mar 01 02:54:50 why don't you go to C channel **** ENDING LOGGING AT Thu Mar 01 02:59:59 2012