Posts

Flutter Web and QR code scanning

One common application feature is QR code scanning. This is now possible on the Web so I played around with some jsQR scanning library (ended up choosing Cozmo jsQR since it was working on iOS and Android). And since Flutter Web is making some progress that starts to make it a real solution for apps on the Web, I wrote a simple package to scan QR code on the Web. The code is available here  with a simple online demo that should work on iOS and Android.

Solving: insufficient permissions for device: user in plugdev group; are your udev rules wrong

This happens on Ubuntu almost each time I add a new device: Check that your are in plugdev group $ id uid=1000(alex) gid=1000(alex) groups=1000(alex),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),126(sambashare),127(kvm),129(libvirt),134(chrome-remote-desktop) If not (i.e. plugdev not displayed), add it: $ sudo usermod -aG plugdev alex If you get 'insufficient permissions for device: user in plugdev group; are your udev rules wrong' when trying to debug, you'll need to add your device: First i used lsusb to find my vendor id (here I guess google) $ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub ... Bus 001 Device 025: ID 18d1:4ee7 Google Inc. .. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub .. Bus 001 Device 020: ID 05e0:2106 Symbol Technologies USB2.1 Hub As suggested in https://developer.android.com/studio/run/device.html the solution was to sudo gedit /etc/udev/rules.d/51-android.rules Add th...

Enable autoplay videos onChrome

Image
By default now Chrome block all video playback if there was no use interraction. You can change this behavior by going to (need to copy/paste in Chrome Address bar): chrome://flags/#autoplay-policy You then get to the following settings: That you need to change to 'No user gesture is required' and restart Chrome x

Fixing "DerInputStream.getLength(): lengthTag=109, too big" in Android Studio

This happened to me in Android Studio after AndroidX migration and using the new testing framework. Even deleting the existing ~/.android/debug.keystore was failing for me The solution was regenerate it manually (accept all questions as empty and say yes at the last one) $ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 And copy it $ rm ~/.android/debug.keystore $ cp debug.keystore ~/.android/debug.keystore

Android Studio showing red alerts while gradle compile succeeds

This can happen when you change your gradle distribution. Clean build does succeed but the IDE still shows some missing import. One solution from Android Studio: Go to File | Invalidate Cache/Restart | Invalidate and Restart

Fixing blank developer tools windows Edge

I recently started developing again on Windows (after 10 years on Ubuntu) after getting a PC with Windows 10 installed on it. As a dart developer the first thing I did was to try some web apps on Edge...trying to get console..F12..nothing, just the screen split in 2 with a blank/grey windows on the right. After digging I found a solution deep in the following issue . Start a power shell console in administrative mode than use the following command: Add-AppxPackage -register "C:\windows\SystemApps\Microsoft.MicrosoftEdgeDevToolsClient_8wekyb3d8bbwe\AppxManifest.xml" -DisableDevelopmentMode -Confirm:$false Restart Edge, press F12, that's it!

Cannot close bracket on Intellij IDEA (and WebStorm) with a French Keyboard

It was impossible for me to enter the '}' sign on Intellij IDEA and WebStorm with my French keyboard. The solution was to look for any keyboard shortcut associated to it: Settings | KeyMap then look for a given shortcut by pressing the magnifying classes (find action by shortcut) to find the culprit shortcut (in my case Ctrl + Alt + =) and simply removing this shortcut