Jason Hu

Results 21 comments of Jason Hu

@disophisis the [2nd patch](https://github.com/SeleniumHQ/selenium/pull/5759) just got merged few days ago. Don't know when it will be released. No update for the first patch.

@andredesousa no update and protractor is dying. My two patches worked very well in last few years. You can copy my patches into a js file, for example, `scripts/postinstall.js`, then...

My application is super simple, just a systemd services state monitor. User can set which services they want to monitor, and get "real time" notification when the service state changed.

@aleivag Thank you very much for the sample code. I am just following your code and hit that error. Do I have to be root? I don't need that for...

Googling told me that: [ref] >Unfortunately, the default D-Bus policy (at least on Ubuntu) prevents most of the messages (except signals) that goes through system bus from being viewable by...

@aleivag here is my implementation base on [pydbus](https://github.com/LEW21/pydbus), it doesn't need root, and passed on Ubuntu. Subscribe to signal https://github.com/awarecan/home-assistant/blob/a9dd02ff0c0a1c9091f3908030e2ad0d28764ae4/homeassistant/components/binary_sensor/systemd.py#L172-L191 Run GLib MainLoop https://github.com/awarecan/home-assistant/blob/a9dd02ff0c0a1c9091f3908030e2ad0d28764ae4/homeassistant/components/binary_sensor/systemd.py#L118-L137

I am following your example, had met several bumps 1. The callback parameter only accept function, not method. 2. Several different error I got ``` Assertion 'm->n_ref > 0' failed...

For `Assertion 'm->n_ref > 0' failed` issue, I already reduced my code to very simple level, but it still happens when I stop or start service. Meanwhile the try/catch didn't...

Shall we follow the principle "whoever alloc the memory should dealloc it" (Don't know if there is a fancy word for this) here? https://github.com/facebookincubator/pystemd/blob/ef980e702053555a3f1577be612c34a54630fda2/pystemd/dbuslib.pyx#L776-L782 m was alloc-ed in libsystemd, so...

Comment out https://github.com/facebookincubator/pystemd/blob/ef980e702053555a3f1577be612c34a54630fda2/pystemd/dbuslib.pyx#L77-L78 Everything worked