/
fluid-work IRC Logs-2013-09-30

fluid-work IRC Logs-2013-09-30

[08:29:48 CDT(-0500)] <Justin_o> cindyli: i'm reading through the docs that anastasiac updated on the fluid.messageResolver and am wondering if we really wanted to use the resolve function instead of lookup

[08:30:39 CDT(-0500)] <cindyli> Justin_o: do you mean for UIO message bundle? It is using lookup.

[08:32:28 CDT(-0500)] <Justin_o> cindyli: yes. wondering if we should have used resolve instead.. for things like sliding panel where it does a straight lookup.. so that we don't have to do all the conditional checks… i suppose we'd still need it for converting the namespaces values to arrays though

[08:32:53 CDT(-0500)] <Justin_o> unless we can use the parse func for that

[08:33:04 CDT(-0500)] <Justin_o> what do you think?

[08:33:08 CDT(-0500)] <Justin_o> cindyli: ^

[08:33:14 CDT(-0500)] <cindyli> Justin_o: good idea. worth to give a try

[09:26:18 CDT(-0500)] <yzen_> Justin_o:

[09:33:45 CDT(-0500)] <Justin_o> yzen_: can you remind me what the ${} means in renderer proto trees

[09:33:58 CDT(-0500)] <yzen_> valuebinding afaik

[09:34:17 CDT(-0500)] <Justin_o> yzen_: okay.. and can you just do {} or that's not accepted?

[09:34:20 CDT(-0500)]

<yzen_> so resolves to

Unknown macro: {value binding}

?

[09:34:32 CDT(-0500)] <yzen_> {} all just get expanded as ioc ?

[09:34:35 CDT(-0500)] <yzen_> will

[09:35:09 CDT(-0500)]

<Justin_o> so something like $

Unknown macro: {value}

points to a model value.. and $value would try to valuebind an IoC reference

[09:35:14 CDT(-0500)] <Justin_o> yzen_: ^

[09:36:02 CDT(-0500)] <yzen_> Justin_o: hmm i might be confused but i think the latter expression actually resolves to value somehow in the tree

[09:36:31 CDT(-0500)] <Justin_o> yzen_: in the proto tree.. you mean? like for a pathas or valueas

[09:36:54 CDT(-0500)] <yzen_> Justin_o: yes

[09:37:24 CDT(-0500)] <Justin_o> yzen_: okay thanks.. i think that's cleared things up for me.. by the way, do you know much about how the model transformations work?

[09:37:55 CDT(-0500)] <yzen_> Justin_o: well i know a little, but in the gpii world kasper is the exper

[09:37:56 CDT(-0500)] <yzen_> t

[09:39:11 CDT(-0500)] <Justin_o> yzen_: ah right

[09:47:39 CDT(-0500)] <jhernandez> clown_mtg: ping

[09:48:23 CDT(-0500)] <jhernandez> yzen_: hey!

[10:02:42 CDT(-0500)] <Justin_o> cindyli: here's a test branch for changing from the lookup function to resolve https://github.com/jobara/infusion/compare/resolve

[10:02:53 CDT(-0500)] <Justin_o> i'm not sure if there is a performance hit by doing this or not

[10:03:45 CDT(-0500)] <cindyli> thanks, Justin_o, it looks good

[10:09:41 CDT(-0500)] <Justin_o> cindyli: hmm.. now that i'm thinking about it, maybe it's wrong.. since it resolves it in place.. we wouldn't want a string template resolved into the strings object of a component as it may need to be resolved where it's used.. so perhpas it's not correct to attach this to the strings block but to use the call to resolve where the string is actually used.

[10:09:41 CDT(-0500)] <Justin_o> What do you think?

[10:15:24 CDT(-0500)] <clown_mtg> jhernandez: sorry in a meeting, right now. I'll be in touch later. In about 45 minutes. Ok?

[10:15:32 CDT(-0500)] <cindyli> Justin_o: seems to me that the places where string templates are resolved are where they are actually used.

[10:17:38 CDT(-0500)] <Justin_o> cindyli: okay.. so it would make sense to use the resolve function where they are used then.. but i'm wondering what the effect will be if something is in the strings block and also in the parent bundle

[10:19:38 CDT(-0500)] <cindyli> Justin_o: what do you mean "something is in the strings block and also in the parent bundle"? what's the conflict?

[10:21:05 CDT(-0500)] <Justin_o> so lets say for the sliding panel we have a default value in the strings block.. and then we want to override it from UIO

[10:22:15 CDT(-0500)] <cindyli> ok, i see. in that case we need a pre-handling on "strings" before the rendering

[10:22:34 CDT(-0500)] <cindyli> depending on the existence of the parent bundle

[10:24:56 CDT(-0500)] <cindyli> Justin_o: is there a way to re-boil an event with a different argument? for example, this line defines "onReady: https://github.com/fluid-project/infusion/blob/master/src/components/uiOptions/js/FatPanelUIOptions.js#L139

[10:25:11 CDT(-0500)] <cindyli> sorry, didn't finish the typing

[10:25:32 CDT(-0500)] <cindyli> this line defines the "onReady" event in uiOptions and fatPanel are equivalent

[10:26:06 CDT(-0500)] <cindyli> so when I hook up a listener for fatPenal -> onReady: https://github.com/fluid-project/infusion/blob/master/src/components/uiOptions/js/FatPanelUIOptions.js#L38

[10:27:35 CDT(-0500)] <cindyli> the argument I get is "uiOptions". so I want to re-boil fatPanel -> onReady to retrieve a "fatPanel" object

[10:28:09 CDT(-0500)] <cindyli> Justin_o: can we do that?

[10:30:08 CDT(-0500)] <jhernandez> clown_mtg: sure! (wink)

[10:42:03 CDT(-0500)] <Justin_o> cindyli: hmm.. where did you want to do the boiling?

[10:42:18 CDT(-0500)] <Justin_o> or you want to change how line 139 of FatPanelUIOptions is written

[10:42:49 CDT(-0500)] <cindyli> Justin_o: i'm thinking to change line 38: https://github.com/fluid-project/infusion/blob/master/src/components/uiOptions/js/FatPanelUIOptions.js#L38

[10:43:23 CDT(-0500)] <cindyli> of course, if changing 139 achieves the goal, let's do it

[10:43:52 CDT(-0500)] <Justin_o> cindyli: yes.. i think changing it on line 139 would be better since you can just add in the arg you want there..

[10:44:11 CDT(-0500)] <cindyli> ah. ok. trying

[10:53:07 CDT(-0500)] <Justin_o> yzen: do you know if there is way to do string manipulation in model transformations?

[11:06:13 CDT(-0500)] <clown> jhernandez: my meeting is done. what's up?

[11:08:45 CDT(-0500)] <jhernandez> clown: here!

[11:08:58 CDT(-0500)] <clown> hi jhernandez!

[11:09:21 CDT(-0500)] <jhernandez> hi!

[11:09:58 CDT(-0500)] <jhernandez> just wanted to give you an update about the packagekit stuff

[11:10:06 CDT(-0500)] <clown> okay, thanks.

[11:10:10 CDT(-0500)] <clown> much appreciated.

[11:11:28 CDT(-0500)] <jhernandez> i read your mails and after reading (and playing) a bit with packagekit through dbus

[11:11:45 CDT(-0500)] <clown> yes? ...

[11:13:44 CDT(-0500)] <jhernandez> seems that we need to call pk's system interface, create a transaction (with a private and unique object id) and then use this to call our session interface

[11:14:26 CDT(-0500)] <jhernandez> I got it working, but it's very confusing

[11:14:28 CDT(-0500)] <jhernandez> so

[11:14:32 CDT(-0500)] <clown> aha. Makes sense — you don't get access to the Transaction dbus interface unless you create an instance of a Transaction?

[11:14:37 CDT(-0500)] <jhernandez> yup

[11:15:04 CDT(-0500)] <jhernandez> so I decided to stop using dbus and use libpackagekit instead

[11:15:30 CDT(-0500)] <clown> actually, that's similar to the magnifier dbus interface. There are ZoomRegion dbus objects, but unless you ask the magnfier dbus object to creat one, you can't access it.

[11:15:43 CDT(-0500)] <jhernandez> yep

[11:15:59 CDT(-0500)] <clown> www.packagekit.org/gtk-doc/libpackagekit-gobject.html?

[11:16:06 CDT(-0500)] <jhernandez> so about using libpackagekit, it sounds creepy, but sgithens already started working on it

[11:16:09 CDT(-0500)] <jhernandez> AND

[11:16:37 CDT(-0500)] <jhernandez> I took his work and finished it

[11:16:40 CDT(-0500)] <jhernandez> :]

[11:16:54 CDT(-0500)] <clown> why is that creepy?

[11:16:58 CDT(-0500)] <clown> (smile)

[11:17:26 CDT(-0500)] <jhernandez> because we need to write our own node.js module

[11:17:32 CDT(-0500)] <michelled> colinclark: I just found out from yzen that the things that are holding up the GPII 0.2 release are two pull requests to Infusion. One is from Bosmon for FLUID-5089 and the other is from Kasper

[11:17:53 CDT(-0500)] <colinclark> looking up FLUID-5089

[11:18:00 CDT(-0500)] <michelled> given that Kasper isn't back until next week, we probably aren't in any huge rush

[11:18:01 CDT(-0500)] <clown> jhernandez: by "module" you mean node.js add-on? Add-ons are written in C++ and extend the functionality of node.js

[11:18:04 CDT(-0500)] <colinclark> oh yes, that one

[11:18:08 CDT(-0500)] <jhernandez> clown: yup

[11:18:15 CDT(-0500)] <colinclark> How is that one a blocker, michelled

[11:18:15 CDT(-0500)] <colinclark> ?

[11:18:17 CDT(-0500)] <michelled> but it would be good to get these in so when he's back we can do the release

[11:18:21 CDT(-0500)] <clown> s'okay with me, jhernandez.

[11:18:23 CDT(-0500)] <jhernandez> but it's already written

[11:18:32 CDT(-0500)] <michelled> yzen: do you know why the release is blocked on those pulls?

[11:18:34 CDT(-0500)] <jhernandez> that's the good news

[11:18:41 CDT(-0500)] <colinclark> I would have thought "making it work on Windows" might be part of the requirements for 0.2

[11:18:47 CDT(-0500)] <clown> jhernandez: sounds like there is bad news.

[11:18:49 CDT(-0500)] <jhernandez> so right now we can search, install and uninstall packages :]

[11:18:50 CDT(-0500)] <colinclark> but perhaps our Windows ThinkPad just sucks

[11:19:34 CDT(-0500)] <clown> go on, jhernandez.

[11:19:35 CDT(-0500)] <jhernandez> clown: heh

[11:19:56 CDT(-0500)] <jhernandez> it doesn't works always :S

[11:19:57 CDT(-0500)] <jhernandez> xDD

[11:20:20 CDT(-0500)] <jhernandez> but seems to be a packagekit issue (at least under opensuse 12.3)

[11:20:21 CDT(-0500)] <clown> jhernandez: that's something for me to work on! Maybe I can fix it? (and maybe not...)

[11:20:28 CDT(-0500)] <jhernandez> xDD

[11:20:42 CDT(-0500)] <clown> I use F19 these days, jhernandez.

[11:20:49 CDT(-0500)] <jhernandez> clown: let me push it to Github

[11:20:51 CDT(-0500)] <clown> for the GPII stuff, anyhow.

[11:21:04 CDT(-0500)] <clown> sure jhernandez. Push away. I can look at it.

[11:33:32 CDT(-0500)] * clown goes to get his lunch…brb

[11:44:14 CDT(-0500)] <jhernandez> clown: https://github.com/javihernandez/linux/tree/packagekitBridge

[11:47:44 CDT(-0500)] <jhernandez> the issue is that I have to call 'installPackage' twice to get it working, the same for 'removePackage' method

[11:50:19 CDT(-0500)] * clown is back.

[11:50:25 CDT(-0500)] <clown> jhernandez: looking

[11:50:34 CDT(-0500)] <jhernandez> clown: super-fast lunch!?

[11:51:34 CDT(-0500)] <clown> jhernandez: no, I was getting my lunch. It is sitting beside me here. I plan to eat and look at your stuff at the same time.

[11:56:13 CDT(-0500)] <jhernandez> clown: no prob, I can wait

[11:57:20 CDT(-0500)] <jhernandez> I'll be here for a couple of hours more or less

[11:57:45 CDT(-0500)] <jhernandez> anyway, if you want to put your hands on it, it's easy

[11:58:05 CDT(-0500)] <jhernandez> build it -> node-gyp configure build

[11:58:22 CDT(-0500)] <clown> jhernandez: remind me of the git commands to download it.

[11:58:27 CDT(-0500)] <jhernandez> heh

[11:58:28 CDT(-0500)] <clown> please.

[11:58:55 CDT(-0500)] <jhernandez> git remote add javihernandez git://github.com/javihernandez/linux.git

[11:59:02 CDT(-0500)] <jhernandez> git fetch -a -v javihernandez

[11:59:27 CDT(-0500)] <jhernandez> git checkout javihernandez/packagekitBridge -b packagekitBridge

[11:59:29 CDT(-0500)] <clown> I already have (based on git config): remote.origin.url=git://github.com/javihernandez/linux/

[11:59:34 CDT(-0500)] <jhernandez> ok

[11:59:53 CDT(-0500)] <jhernandez> then, update it by using fetch

[11:59:53 CDT(-0500)] <clown> is that the same thing as what you wrote above? (git remote add ...)

[12:00:00 CDT(-0500)] <jhernandez> yup

[12:00:14 CDT(-0500)] <clown> okay. fetching….

[12:02:00 CDT(-0500)] <clown> "fatal: 'javihernandez' does not appear to be a git repository

[12:02:00 CDT(-0500)] <clown> fatal: Could not read from remote repository.

[12:02:00 CDT(-0500)] <clown> Please make sure you have the correct access rights

[12:02:00 CDT(-0500)] <clown> and the repository exists."

[12:02:23 CDT(-0500)] <clown> weird...

[12:04:03 CDT(-0500)] <clown> okay, the fetch works now. I did have to do the 'git remote add' above.

[12:06:15 CDT(-0500)] <jhernandez> clown: connection issues ... :/

[12:06:43 CDT(-0500)] <jhernandez> fetched it?

[12:07:42 CDT(-0500)] <clown> yes, jhernandez, I fetched it.

[12:08:03 CDT(-0500)] <clown> I did have to add the remote — the 'git add remote …' you suggested above.

[12:08:11 CDT(-0500)] <jhernandez> ok

[12:09:11 CDT(-0500)] <clown> jhernandez: looks like it built.

[12:09:16 CDT(-0500)] <jhernandez> change into packagekitBridge branch

[12:09:28 CDT(-0500)] <jhernandez> cd into node_modules/packagekit

[12:09:37 CDT(-0500)] <clown> did that a while ago (while you were disconnected). (smile)

[12:09:40 CDT(-0500)] <jhernandez> node-gyp configure build

[12:10:03 CDT(-0500)] <jhernandez> ok ok

[12:10:04 CDT(-0500)] <clown> oh, okay. I just ran build.sh from the main linux directory. Was that wrong?

[12:10:40 CDT(-0500)] <jhernandez> stop it

[12:10:55 CDT(-0500)] <clown> it finshed a while ago.

[12:11:05 CDT(-0500)] <jhernandez> we'd like to use the node module directly

[12:11:24 CDT(-0500)] <clown> actually, no, it isn't finished. It's waiting for my password. Time for cntl-c.

[12:11:41 CDT(-0500)] <jhernandez> yup, we just want to deal with the module itself

[12:12:45 CDT(-0500)] <clown> gyp: binding.gyp not found (cwd: /home/joseph/Development/GPII/DeviceReporter/linux/node_modules/packagekit) while trying to load binding.gyp

[12:12:45 CDT(-0500)] <clown> gyp ERR! configure error

[12:12:45 CDT(-0500)] <clown> gyp ERR! stack Error: `gyp` failed with exit code: 1

[12:12:45 CDT(-0500)] <clown> gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/node-gyp/lib/configure.js:428:16)

[12:12:45 CDT(-0500)] <clown> gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)

[12:12:45 CDT(-0500)] <clown> gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)

[12:13:03 CDT(-0500)] <clown> there's more, if you want...

[12:13:07 CDT(-0500)] <jhernandez> sure!

[12:13:21 CDT(-0500)] <clown> gyp ERR! System Linux 3.10.10-200.fc19.x86_64

[12:13:21 CDT(-0500)] <clown> gyp ERR! command "node" "/usr/bin/node-gyp" "configure" "build"

[12:13:21 CDT(-0500)] <clown> gyp ERR! cwd /home/joseph/Development/GPII/DeviceReporter/linux/node_modules/packagekit

[12:13:21 CDT(-0500)] <clown> gyp ERR! node -v v0.10.16

[12:13:21 CDT(-0500)] <clown> gyp ERR! node-gyp -v v0.10.6

[12:13:21 CDT(-0500)] <clown> gyp ERR! not ok

[12:13:22 CDT(-0500)] <Justin_o> yzen: do you know if we have a function to tell if something is a plain js object and not an array

[12:13:39 CDT(-0500)] * clown loves the final gyp error: "not ok".

[12:14:02 CDT(-0500)] <clown> but, the culprit is no build.gyp.

[12:14:13 CDT(-0500)] <jhernandez> oh! crap!

[12:14:14 CDT(-0500)] <jhernandez> wait

[12:15:07 CDT(-0500)] <clown> pardon me "binding.gyp".

[12:15:11 CDT(-0500)] <jhernandez> clown: heh, cd into nodepackagekit

[12:15:12 CDT(-0500)] <clown> but there is one...

[12:15:16 CDT(-0500)] <jhernandez> xD

[12:15:18 CDT(-0500)] * jhernandez nods

[12:15:22 CDT(-0500)] <clown> yup, I'm there.

[12:16:08 CDT(-0500)] * clown takes bite of sandwich.

[12:18:57 CDT(-0500)] <jhernandez> gyp info ok ?

[12:19:22 CDT(-0500)] <clown> dunno — the last thing you asked me to do was cd into nodepackagekit.

[12:19:26 CDT(-0500)] <jhernandez> good sandwich?

[12:19:27 CDT(-0500)] <jhernandez> heh

[12:19:29 CDT(-0500)] <jhernandez> ok

[12:19:34 CDT(-0500)] <jhernandez> build it

[12:19:35 CDT(-0500)] <clown> yes, It is delicious. Want a bite?

[12:20:12 CDT(-0500)] <jhernandez> node-gyp configure build and enjoy another bite xDDD

[12:20:12 CDT(-0500)] <clown> okay, it's built! Why did it work this time?

[12:20:34 CDT(-0500)] <clown> oh, I was in the wrong directory.

[12:20:38 CDT(-0500)] <clown> before.

[12:20:47 CDT(-0500)] * jhernandez nods

[12:20:58 CDT(-0500)] * clown looks at the js test file.

[12:21:24 CDT(-0500)] * clown tries to run test file.

[12:21:57 CDT(-0500)] <jhernandez> clown: nice! let me see the output, please

[12:23:07 CDT(-0500)] <clown> [

[12:23:07 CDT(-0500)] <clown> {

[12:23:07 CDT(-0500)] <clown> "id": "orca;3.8.1-1.fc19;x86_64;installed:koji-override-0",

[12:23:07 CDT(-0500)] <clown> "name": "orca",

[12:23:07 CDT(-0500)] <clown> "version": "3.8.1-1.fc19",

[12:23:07 CDT(-0500)] <clown> "data": "installed:koji-override-0"

[12:23:07 CDT(-0500)] <clown> }

[12:23:08 CDT(-0500)] <clown> ]

[12:23:34 CDT(-0500)] <clown> jhernandez ^

[12:23:44 CDT(-0500)] <jhernandez> cool!

[12:23:51 CDT(-0500)] <clown> I ran it just once.

[12:24:00 CDT(-0500)] <jhernandez> I'm wondering if there's a orca-lang package for Fedora

[12:24:05 CDT(-0500)] * jhernandez looks

[12:24:10 CDT(-0500)] <clown> there was about a 5 sec delay before the answer came back.

[12:24:57 CDT(-0500)] <clown> I assume the delay is because package-kit is asking for info from a remote repository (via yum) ?

[12:25:09 CDT(-0500)] <jhernandez> clown: you're right

[12:25:20 CDT(-0500)] * clown looks at .cc file.

[12:25:37 CDT(-0500)] <jhernandez> ok, orca-lang seems to be specific for openSUSE

[12:26:02 CDT(-0500)] <clown> okay, so we have init(), install(), and remove(). But, no "what is available?" type commands.

[12:26:11 CDT(-0500)] <jhernandez> heh

[12:26:25 CDT(-0500)] <jhernandez> "data": "installed:koji-override-0"

[12:26:38 CDT(-0500)] <clown> yes?

[12:26:43 CDT(-0500)] <clown> what about that line?

[12:27:03 CDT(-0500)] <jhernandez> if you replace orca by another word, ie: gnome-shell

[12:27:10 CDT(-0500)] * clown tries that...

[12:27:57 CDT(-0500)] <jhernandez> you'll see how you can differ from installed and not-installed packages

[12:28:35 CDT(-0500)] <clown> you get a whole pile of info.

[12:29:47 CDT(-0500)] <clown> pastebin.ca/2460210

[12:30:06 CDT(-0500)] <clown> jhernandez ^

[12:30:37 CDT(-0500)] <jhernandez> cool!

[12:30:49 CDT(-0500)] <clown> you appear to get all the infomation about the gnome-extensions.

[12:30:54 CDT(-0500)] <clown> is that what we want?

[12:30:58 CDT(-0500)] <jhernandez> there, you have all installed and available packages

[12:31:51 CDT(-0500)] <jhernandez> installed ones are those who have the 'installed' word on 'data' field

[12:32:01 CDT(-0500)] * clown nods

[12:33:12 CDT(-0500)] <clown> uninstalled ones give the name of the repository? example: "updates" or "fedora".

[12:34:16 CDT(-0500)] <jhernandez> the 'id' is the id you have to pass to installPackage and removePackage methods

[12:34:36 CDT(-0500)] * clown nods (I actually knew that).

[12:34:48 CDT(-0500)] <jhernandez> so by having this module, we can return customized JSON objects to the deviceReporter about a certain package

[12:34:55 CDT(-0500)] * clown sighs because he has run out of sandwich.

[12:35:09 CDT(-0500)] <clown> yes, it is good.

[12:35:10 CDT(-0500)] <jhernandez> install and remove packages

[12:36:11 CDT(-0500)] * jhernandez nods

[12:36:34 CDT(-0500)] <clown> but what about the "you have to call it twice" bug? Is that just on openSuse?

[12:36:51 CDT(-0500)] <jhernandez> re the bug, if you can, go and install one package

[12:37:13 CDT(-0500)] <jhernandez> that was the next stop (wink)

[12:37:14 CDT(-0500)] <jhernandez> *step

[12:37:34 CDT(-0500)] <clown> can it be any package?

[12:39:36 CDT(-0500)] <clown> is there a yum command to ask for the dependencies on a package? I want to try install out on something that has little or no dependencies.

[12:39:51 CDT(-0500)] <jhernandez> go into a node interactive console

[12:39:51 CDT(-0500)] <jhernandez> (by running: node)

[12:41:11 CDT(-0500)] <clown> ok, I'm there.

[12:44:43 CDT(-0500)] <jhernandez> sorry, lot of lag here ...

[12:44:49 CDT(-0500)] <clown> no problem.

[12:45:21 CDT(-0500)] <jhernandez> yes, you can install any package

[12:45:33 CDT(-0500)] <jhernandez> first, you have to retrieve its id

[12:46:24 CDT(-0500)] <clown> yes.

[12:46:36 CDT(-0500)] <jhernandez> from your pastebin:

[12:46:39 CDT(-0500)] <jhernandez> {

[12:46:39 CDT(-0500)] <jhernandez> "id": "gnome-shell-extension-alternative-status-menu;3.8.4-1.fc19;noarch;updates",

[12:46:42 CDT(-0500)] <jhernandez> "name": "gnome-shell-extension-alternative-status-menu",

[12:46:44 CDT(-0500)] <jhernandez> "version": "3.8.4-1.fc19",

[12:46:47 CDT(-0500)] <jhernandez> "data": "updates"

[12:46:49 CDT(-0500)] <jhernandez> }

[12:46:56 CDT(-0500)] <clown> yup.

[12:47:05 CDT(-0500)] <jhernandez> if you want to install it, just add into your test file something like

[12:47:22 CDT(-0500)] <jhernandez> packagekit.installPackage("gnome-shell-extension-alternative-status-menu;3.8.4-1.fc19;noarch;updates");

[12:47:59 CDT(-0500)] <jhernandez> in my case, I have to run it twice before getting the "enter admin password" dialog

[12:49:13 CDT(-0500)] <clown> but, I could call packagekit.installPackage(…) inside my node interptretter, right? (after the necessary require('./build/Release/nodepackagekit.node'') ).

[12:49:21 CDT(-0500)] <jhernandez> we can also add a statuscallback and logging what's happening

[12:50:28 CDT(-0500)] <jhernandez> but it's ok as it is right now

[12:51:00 CDT(-0500)] <clown> rats! My Vm just crashed. Hang on...

[12:51:52 CDT(-0500)] <jhernandez> heh! that's the reason I always use my own system before trying it on Fedora (tongue)

[12:54:56 CDT(-0500)] <jhernandez> clown: sorry, and yes, you can also call it from the node interpreter

[12:56:11 CDT(-0500)] <jhernandez> btw, when uninstalling, you should search again for the package because the id will be different this time

[12:56:44 CDT(-0500)] <clown> why is the id different (vm is back, trying the install command out).

[12:57:34 CDT(-0500)] <jhernandez> 'id' and 'data' now should reflect that the package is already installed

[12:58:31 CDT(-0500)] <jhernandez> insteadof updates, they will contain "installed:updates"

[12:58:33 CDT(-0500)] <clown> right. data either says "installed" or something else if not installed.

[12:58:43 CDT(-0500)] * jhernandez nods

[12:59:00 CDT(-0500)] <clown> okay, I've run the package.installPackage (…) once so far.

[12:59:07 CDT(-0500)] <jhernandez> so, what about the bug

[12:59:08 CDT(-0500)] * clown checking to see if anything installed.

[12:59:16 CDT(-0500)] <jhernandez> is the same under fedora?

[12:59:30 CDT(-0500)] <jhernandez> ok ok

[13:00:32 CDT(-0500)] <clown> it says it is installed (I did a "yum info gnome-shell-extension-alternative-status-menu") before and after running packagekit.installedPackage().

[13:01:07 CDT(-0500)] <jhernandez> so ... does it means that it worked the first time?

[13:01:11 CDT(-0500)] <clown> yes.

[13:01:13 CDT(-0500)] <jhernandez> nice!

[13:01:14 CDT(-0500)] <clown> I presume

[13:01:37 CDT(-0500)] * jhernandez grabs a beer ...

[13:01:45 CDT(-0500)] <jhernandez> (tongue)

[13:01:46 CDT(-0500)] <clown> step 1. yum info gnome-shell-extension-alternative-status-menu => "Available packages…."

[13:02:31 CDT(-0500)] <clown> step 2. node; packagekit.installPackage('gnome-shell-extension-alternative-status-menu;3.8.4-1.fc19;noarch;updates') ==> "true".

[13:02:50 CDT(-0500)] <clown> step 3. yum info gnome-shell-extension-alternative-status-menu ==> "Installed packages …".

[13:03:04 CDT(-0500)] <jhernandez> yay!

[13:03:09 CDT(-0500)] * clown grabs his mug and toasts jhernandez.

[13:03:20 CDT(-0500)] <jhernandez> now, it's time to remove it

[13:03:26 CDT(-0500)] <jhernandez> xDD

[13:03:31 CDT(-0500)] <clown> step 4, coming up...

[13:04:38 CDT(-0500)] <jhernandez> search for the package again, and call packagekit.removePackage("the-new-id");

[13:05:15 CDT(-0500)] <clown> how do I search? Use packagekit.searchPackage()?

[13:05:22 CDT(-0500)] * jhernandez nods

[13:05:47 CDT(-0500)] <jhernandez> packagekit.searchPackage("gnome-shell-extension-alternative-status-menu")

[13:06:03 CDT(-0500)] <jhernandez> you'll get a shorter list (tongue)

[13:06:12 CDT(-0500)] <clown> I did something wrong: got "Segmentation fault (core dumped)"

[13:06:30 CDT(-0500)] <clown> node just blew up and went away.

[13:06:43 CDT(-0500)] <jhernandez> clown: you bad guy! xDDD

[13:06:48 CDT(-0500)] * clown tries again.

[13:07:05 CDT(-0500)] * clown is actually snidely whiplash

[13:07:48 CDT(-0500)] * clown wonders why we chose a package with such a looooooong name.

[13:07:55 CDT(-0500)] <jhernandez> haha

[13:08:26 CDT(-0500)] <clown> this time, no core dump, and got the package id.

[13:08:40 CDT(-0500)] <jhernandez> cool!

[13:09:05 CDT(-0500)] <jhernandez> packagekit.removePackage("the-new-package-id");

[13:09:13 CDT(-0500)] <clown> and up pops a dialog asking for my password.

[13:09:18 CDT(-0500)] <jhernandez> nice!

[13:09:29 CDT(-0500)] <clown> "Authentication is required to remove packages"

[13:09:35 CDT(-0500)] <clown> I'm not sure that's nice.

[13:09:53 CDT(-0500)] <clown> I see the reason, but if you a fully automated system, ...

[13:10:16 CDT(-0500)] <clown> hmmm…. I entered my password, and hit return. And, my VM died.

[13:10:26 CDT(-0500)] <clown> sigh

[13:10:30 CDT(-0500)] <jhernandez> crap

[13:10:59 CDT(-0500)] <jhernandez> but, who died? the VM, or just the viewer?

[13:11:02 CDT(-0500)] * clown thinks it has to do with the fancy opengl overlays and transparencies with thes dialogs.

[13:11:06 CDT(-0500)] <clown> the entire VM.

[13:11:13 CDT(-0500)] <jhernandez> (sad)

[13:11:17 CDT(-0500)] <clown> ditto.

[13:11:34 CDT(-0500)] * clown blames virtual box.

[13:12:00 CDT(-0500)] * jhernandez ++

[13:12:03 CDT(-0500)] * clown blames virtual box'es virtual video driver

[13:12:17 CDT(-0500)] * jhernandez ++

[13:12:28 CDT(-0500)] <jhernandez> btw, I use qemu/kvm

[13:12:30 CDT(-0500)] <jhernandez> (tongue)

[13:13:44 CDT(-0500)] * clown will look into qemu/kvm to see if it's more stable.

[13:16:53 CDT(-0500)] <clown> well, it killed the VM again, right after I entered my password and hit return.

[13:17:14 CDT(-0500)] <clown> I am going to set this up on a real machine, jhernandez

[13:17:35 CDT(-0500)] <clown> But that will take a few minutes. About 15 or so.

[13:17:42 CDT(-0500)] <clown> I'll let you know….

[13:19:01 CDT(-0500)] <jhernandez> ok

[13:19:01 CDT(-0500)] <jhernandez> meanwhile, could you check if the package was removed (before your VM crash)?

[13:21:08 CDT(-0500)] <jhernandez> clown1: ok, no prob

[13:21:59 CDT(-0500)] <clown1> wow, now my connections are flakey too.

[13:22:29 CDT(-0500)] <jhernandez> bad weather too?

[13:22:46 CDT(-0500)] <clown> not that bad — it's raining a bit.

[13:22:51 CDT(-0500)] <jhernandez> here (in Sevilla) it's raining cats & dogs

[13:23:28 CDT(-0500)] <jhernandez> (as always when it rains)

[13:37:54 CDT(-0500)] <Justin_o> Bosmon: hello, what do you think of what i have so far for FLUID-5131 https://github.com/jobara/infusion/compare/FLUID-5131

[13:41:13 CDT(-0500)] <Bosmon> Justin_o - looking reasonable so far, at a quick look

[13:42:35 CDT(-0500)] <Justin_o> Bosmon: thanks.. i'm trying to use model transformations for rebasing the prototrees from the subpanels to the parent panel

[13:43:00 CDT(-0500)] <Bosmon> Justin_o - it would be ok to do that for hand by now

[13:43:07 CDT(-0500)] <Bosmon> This code won't have an extremely long lifetime

[13:43:31 CDT(-0500)] <Justin_o> for that i'm trying to write a new transformation that just does a simple string replacement.. i couldn't find one that did this already, is there one? also are there any docs on how to write a transformation?

[13:44:15 CDT(-0500)] <Justin_o> i wonder if it would be easier to write with the model transformation though?

[13:44:39 CDT(-0500)] <Justin_o> since i'll have to rebase the selector names used in the protoTree, the model paths, and IoC references

[13:45:17 CDT(-0500)] <Justin_o> Bosmon: ^

[13:46:14 CDT(-0500)] <Bosmon> Justin_o - a string replacement transformation could be interesting

[13:46:37 CDT(-0500)] <clown> jhernandez: yes: La lluvia en Sevilla es una pura maravilla

[13:46:58 CDT(-0500)] <Justin_o> Bosmon: i figure it would have to be really simple as the inverse would be difficult to perform if it accepted regexp

[13:47:01 CDT(-0500)] <Bosmon> clown - marvellous (smile)

[13:47:10 CDT(-0500)] * clown blushes

[13:47:20 CDT(-0500)] <Bosmon> Justin_o - no need to make it invertible

[13:47:29 CDT(-0500)] <Bosmon> There can be such a thing as "doing a job too thoroughly"

[13:47:34 CDT(-0500)] <Bosmon> I can refer you to colinclark here

[13:47:41 CDT(-0500)] <Bosmon> Who has a particular slogan that covers these things : P

[13:47:41 CDT(-0500)] <Justin_o> (smile)

[13:47:55 CDT(-0500)] <colinclark> SHIP. IT.

[13:48:46 CDT(-0500)] <clown> jhernandez: I set it all up on a real machine. It installed with one call. And the one call to removePackage() removed it.

[13:50:52 CDT(-0500)] <Justin_o> Bosmon: i don't suppose there are docs on how to write the transformations?

[13:51:10 CDT(-0500)] <clown> brb

[13:59:14 CDT(-0500)] <cindyli> hi Bosmon

[13:59:40 CDT(-0500)] <Bosmon> Justin_o - there is only this http://wiki.gpii.net/index.php/Architecture_-_Available_transformation_functions

[13:59:46 CDT(-0500)] <Bosmon> Written by *KASPPARNETT*

[14:00:00 CDT(-0500)] <Bosmon> Hi there cindyli!

[14:00:06 CDT(-0500)] <cindyli> not sure if you paid attention to an issue that Chris sent to the gpii architecture list regarding the dynamic language switching.

[14:00:14 CDT(-0500)] <cindyli> this is the email: http://lists.gpii.net/pipermail/architecture/2013-September/001375.html

[14:00:34 CDT(-0500)] <cindyli> in specific from line "All message .json files will be grouped in locale-specific folders named.." onwards

[14:00:46 CDT(-0500)] * clown is back

[14:01:24 CDT(-0500)] <Bosmon> What totally hideous code Chris is writing

[14:01:28 CDT(-0500)] <Bosmon> Isn't anyone looking after him? : P

[14:01:52 CDT(-0500)] <cindyli> Justin_o started refractoring his code

[14:02:03 CDT(-0500)] <Bosmon> Sure, but talking to him would be a help too (smile)

[14:02:37 CDT(-0500)] <cindyli> ya, we can do that. hopfully Chris can refer to Justin_o's code for some improvements

[14:04:51 CDT(-0500)] <cindyli> Bosmon: i don't think our current UIO design supports dynamic message bundle re-loading. any suggestions to help Chris with this language switching issue?

[14:05:06 CDT(-0500)] <Bosmon> cindyli - the approach seems fine - the entire component will need to be re-rendered

[14:05:43 CDT(-0500)] <cindyli> Bosmon: you mean Chris' approach to passing a global variable into the aux schema?

[14:06:02 CDT(-0500)] <Bosmon> No, not that part (smile)

[14:06:14 CDT(-0500)] <Bosmon> global variable indeed ....

[14:14:02 CDT(-0500)] <jhernandez> clown: re "La lluvia en Sevilla es una pura maravilla" LOL

[14:14:29 CDT(-0500)] <jhernandez> re "installed with one call. And the one call to removePackage() removed it" awesome!!!

[14:14:54 CDT(-0500)] <cindyli> Bosmon: do you mean "the re-rendering of the entire component" is to re-run the uio builder with the another message prefix that points to the switched language message files?

[14:15:33 CDT(-0500)] <Bosmon> cindyli - it shouldn't be necessary to rebuild the component

[14:15:43 CDT(-0500)] <Bosmon> Simply reinstantiating it with different options should be sufficient

[14:16:19 CDT(-0500)] <clown> jhernandez: I think I should try again with another package. Sample size of 1 is not definitive.

[14:18:20 CDT(-0500)] <cindyli> ah ok, i think now i have some clues. thanks, Bosmon

[14:19:43 CDT(-0500)] <jhernandez> clown: btw, right now, we can just deal with one package at a time

[14:23:13 CDT(-0500)] <jhernandez> but this could be improved ofc

[14:26:14 CDT(-0500)] <clown> sure, jehernandez

[14:26:23 CDT(-0500)] <clown> *jhernandez

[14:28:45 CDT(-0500)] <Justin_o> Bosmon: is there a proper way to have regex in json

[14:29:11 CDT(-0500)] <Bosmon> Justin_o - no

[14:29:19 CDT(-0500)] <Bosmon> Justin_o - can you describe your use case?

[14:29:27 CDT(-0500)] <Justin_o> Bosmon: for the string replacement

[14:29:48 CDT(-0500)] <Bosmon> Justin_o - that seems a little insane

[14:29:51 CDT(-0500)] <Justin_o> i was hoping to also support regex but you can't specify them in transformation spec

[14:29:58 CDT(-0500)] <Bosmon> I thought you were going to use Fluid's string templater

[14:30:54 CDT(-0500)] <Justin_o> Bosmon: lneresting.. how would that work for transformations though.. since they won't be tokenized.. or is there a generic form of the stringTemplate i can use

[14:31:48 CDT(-0500)] <Bosmon> Justin_o - can you describe which part of the system requires general string replacement?

[14:32:05 CDT(-0500)] <Bosmon> Isn't it just a matter of adding prefixes? Plus the use of your existing "." to "_" replacement?

[14:33:32 CDT(-0500)] <Justin_o> Bosmon: so this is for rebasing the protoTrees.. for change to handle the new selectors.. i've done that with the standard value transform... but I'll also have to change the model paths, and IoC references in the prototrees as well

[14:34:04 CDT(-0500)] <Bosmon> Justin_o - can't you use model relay to take care of the model paths? And arrange for the IoC references to remain stable?

[14:34:13 CDT(-0500)]

<Justin_o> since the old prototree will have refered to model values in the subPanel, which have different paths in the parent.. and similarly references to

Unknown macro: {that}

will need to be rebound to the correct component

[14:34:35 CDT(-0500)] <Bosmon> I see

[14:34:41 CDT(-0500)]

<Bosmon> Why is

Unknown macro: {that}

no longer the correct component?

[14:34:52 CDT(-0500)] <Bosmon> Surely all panels still mean themselves when they refer to themselves (smile)

[14:35:19 CDT(-0500)] <Justin_o> Bosmon: it wont' be correct in the parentPanel which is the one doing the rendering

[14:35:52 CDT(-0500)] <Bosmon> Justin_o - you will have to "make it correct" - what's the alternative?

[14:36:01 CDT(-0500)]

<Justin_o>

Unknown macro: {that}

will need to be changed to refer to the subPanel instead, or else it will reference the parent panel

[14:36:19 CDT(-0500)] <Bosmon> Justin_o - I suggest you deal with this issue by expanding the protoTrees by hand

[14:36:50 CDT(-0500)] <Justin_o> Bosmon: hmm.. what does that mean exactly.. changing them into the fully hydrated form?

[14:36:58 CDT(-0500)] <Bosmon> There's no need to pervert the meaning of the configuration because we have a broken Renderer : P

[14:37:44 CDT(-0500)] <Justin_o> how would i go about expanding the prototree manually?

[14:37:46 CDT(-0500)] <Bosmon> Justin_o - well, all you really need to do is just call the "produceTree" member of the subcoponents by hand

[14:38:00 CDT(-0500)] <Bosmon> And then collect the results together

[14:38:54 CDT(-0500)] <Bosmon> Optionally calling the results of "expander" on the output

[14:39:15 CDT(-0500)] <Bosmon> Just follow the workflow of fluid.renderer.createRendererSubcomponent, after all you wrote most of it yourself : P

[14:40:25 CDT(-0500)] <Justin_o> (smile) okay.. and then i'd just change the selectors to use those from the parent instead

[14:40:38 CDT(-0500)] <Bosmon> yes

[14:40:48 CDT(-0500)] <Bosmon> And that should just be a matter of adding scoping to them

[14:41:58 CDT(-0500)] <Justin_o> okay great thanks.. i've been stumbling over this for a bit.. i'll do this instead now