How to unload a mvvmcross v3 plugin (e.g MvxMessenger )? - mvvmcross

the Messenger Plugin run Mvx.RegisterSingleton(new MvxMessengerHub()); in the first load, but I can't dispose it.

Related

Cannot open Arelle menu view to use SEC's EdgarRenderer

I have installed Arelle through git and using master branch.
Further on I am looking to use "SEC's EdgarRenderer" and made a git clone (also from it's master branch).
I copied in the EdgarRenderer folder structure into location of Arelle/plugins/EdgarRendered and selected the plugin from Arelle.
...after reload of Arelle, (recommended by the GUI) I do not see the window menu for "view", thus I cannot start to view a iXBRL document from a browser. Still the plugin shows status enabled.
From terminal session from where I triggered Arelle to open, I do see an error:
Exception loading plug-in Edgar Renderer: No module named 'matplotlib'
Issue solved by loading the module 'matplotlib'

Run Chromium with fake webcam and real micro

I can run the Google Chrome with the fake webcam using this command:
$ google-chrome-stable --use-fake-device-for-media-stream --use-file-for-fake-video-capture=video.mjpeg
This works fine, but I can only use fake audio sources using this configuration. How to run Chromium/Google Chrome with fake video stream and real audio stream?
Also you can use any Python modules you want.
With --use-fake-device-for-media-stream it is not possible, Chrome will always use fake audio:
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kUseFakeDeviceForMediaStream)) {
params_.set_format(media::AudioParameters::AUDIO_FAKE);
}
Use a virtual webcam and your real microphone instead.
A quick selection from searching:
Webcamoid, Windows/macOS/Linux
OBS Virtualcam, plugin for OBS Studio, Windows/macOS/Linux
Syphon Virtual Webcam, plugin for Isadora, macOS

Polymer serve and service worker

I am trying to get started on debugging my Polymer application. I have hand crafted it by copying what I think the PolymerCLI Polymer init does.
I am not sure what is loading service worker. The default one for development just does a console.info() call saying its been disabled for development.
When I use Polymer serve to serve my application on localhost: 8080, I get the console.info message, despite there being nowhere where I actually load the file service-worker.js . Because the application is much more complex (and I am trying to use http/2) I have my own node based server as well. When I run that and then fetch my application in the browser, service-worker.js does not get loaded and run.
What is Polymer serve doing to enable it?
It could be that a different application which used the same source (e.g. localhost:8080) registered and installed a service worker.
Open up the Application panel in Chrome Canary to inspect / delete the service worker.
If you can't access Chrome Canary, open chrome://serviceworker-internals, find the scope that matches your app, and click Unregister. There's also an option at the top of serviceworker-internals which lets you open a DevTools window and pause JS on the SW. Enable that option and you'll be able to see which SW is running.

Difference between after_setup_theme and init action hooks?

I am new to WordPress development. I just got confused b/w after_setup_theme and init hook
after_setup_theme runs before init and is generally used to initialize theme settings/options before a user is authenticated. According to the Codex:
This is the first action hook available to themes, triggered immediately after the active theme's functions.php file is loaded.
On the other hand, init runs after a user is authenticated:
Typically used by plugins to initialize. The current user is already authenticated by this time.

chrome extension unload event in background js

I have created a chrome extension which is connected to Native messaging application. Native messaging app needs to know if the extension is unchecked or unloaded. Is there any event by which i can catch that the extension is uninstalled or unchecked? So that i can send message to my native messaging app to notify
This can simply be detected if reading from STDIN when listening for messages from the browser in the native messaging host fails (e.g. fread returns not the buffer length passed in). Google Chrome disconnects STDIN when it unloads the extension.