On a UILabel, how can I tell if text or attributedText was set?

I have a function that does the following: if let attributedText = attributedText { size = app_size(for: attributedText, withConstrainedWidth: constrainedWidth) } else if let text = text { size = app_size(for: text, withConstrainedWidth: constrainedWidth) } The respective app_size functions return CGSizes. Playing around with this in a Playground though, I realized that whether I set…

Details

Globally load Sass/Scss into a Vue Project

So, when I was using Vue-cli 3.X I used a method similar to This Thread to load my many style files globally. However, I have upgraded to Vue-cli 4.X and since then, have been unable to use this technique. I just get this error: ./src/App.vue?vue&type=style&index=0&lang=scss& (./node_modules/css-loader/dist/cjs.js??ref–8-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref–8-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref–8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=style&index=0&lang=scss&) Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: Undefined variable: “$grey-700”.…

Details

VirtualBox: Additional Network Interface configured in /etc/network/interfaces but can’t connect to Internet

I configured 2 network interfaces using VirtualBox for a Debian 9 Guest: 1) Host-Only-Adapter without DHCP to give the VM a static IP Address. In /etc/network/interfaces configured like this: auto enp0s3 iface enp0s3 inet static address: 192.168.57.5 network: 192.168.57.0 netmask: 255.255.255.0 gateway: 192.168.57.1 I can access the VM using SSH from the Host using this…

Details