AVCaptureDevice requestAccessForMediaType:

MacOS 10.14 <key>NSMicrophoneUsageDescription</key> <string>Record audio!</string> This works in a swift project: AVCaptureDevice.requestAccess(for: .audio) { granted in if granted { //self.setupCaptureSession() } } But this does not work in an ObjectiveC project (Thread 8: signal SIGABRT) [AVCaptureDevice requestAccessForMediaType:AVMediaTypeAudio completionHandler:^(BOOL granted) { if (granted) { //self.microphoneConsentState = PrivacyConsentStateGranted; } else { //self.microphoneConsentState = PrivacyConsentStateDenied; } }]; What…

Details

How to make public facing ELB, private?

Below is the elastic load balancer, taken from here: “ElasticLoadBalancer”: { “Type”: “AWS::ElasticLoadBalancing::LoadBalancer”, “Properties”: { “CrossZone”: “false”, “SecurityGroups”: [ { “Ref”: “ElbSecurityGroup” } ], “Listeners”: [ { “LoadBalancerPort”: “80”, “InstancePort”: “8080”, “Protocol”: “http” } ], “Instances”: [ { “Ref”: “EC2Instance”} ], “Subnets”: [ { “Ref”: “SubnetId”} ] } } where ELB is behaving as public…

Details

Nginx phpmyadmin always returns 500 error

I configured phpmyadmin using nginxconfig.io phpmyadmin always returns 500 with this error in log PHP message: PHP Fatal error: require_once(): Failed opening required ‘/usr/share/php/php-gettext/gettext.inc’ (include_path=’.:/usr/share/php’) in /usr/share/phpmyadmin/libraries/common.inc.php on line 77″ while reading response header from upstream, client: 111.91.15.65, server: pma.example.com, request: “GET / HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php/php7.2-fpm.sock:”, host: “pma.example.com” The file actually exists /usr/share/php/php-gettext/gettext.inc But it…

Details

Stubbing lit-element method with sinon in open-wc test

I’m working on unit testing a custom element written with lit-element using open-wc. We are using Karma, Mocha, Sinon and Chai. I’m trying to test the element’s constructor: constructor() { super(); window.addEventListener( ‘click’, this._handleClickOutside ); } For reference, the functions used in the test are: _handleClickOutside = () => { console.log(‘calling real’) this.active = false;…

Details

Ubuntu Studio Installer and Ubuntu Studio Controls on Mint Cinnamon 19.3? [closed]

Hello lovely Ubuntu Studio Team, Happy New Year! Can I install Ubuntu Studio Installer and Ubuntu Studio Controls on Mint Cinnamon 19.3 ? …of course I tried 😉 Here’s what I get following this: https://help.ubuntu.com/community/UbuntuStudio/BackportsPPA sudo apt install ubuntustudio-installer get this in the middle and click Yes Ubuntu Studio Controls and Ubuntu Studio Installer installed…

Details