No Comments

Firefox Bug with clip-path

{}
June 4th, 2020

Firefox has a rather silly bug with overlapping clip-path. Instead of hiding content it start showing content with overlapping clip-path.

In short:

.clip {
clip-path: inset(400px);
}

on a 600px image should not show any content. In Firefox it does.

You can see the problem here.

3 Comments

Macro Photography with the Raspberry Pi HQ camera and reversing the lens

{}
June 3rd, 2020

The Raspberry Pi is a small computer, but it is a great machine for experimenting with all sorts of technology. The Raspberry Pi Foundation just introduced a new High Quality camera with changeable lenses, so let’s find out if that new camera board can be used for photographing small objects.

FruitflyRaspberry Pi HQ Camera

Fruitfly

And I’m gone a use a rather surprising but cheap technique: reversing the lens.

Read the rest of this entry »

No Comments

Ubuntu 20.04 is running great (again) on older hardware

{}
May 20th, 2020

When Ubuntu made the move from Unity to Gnome3, with 18.04, my old su4100 laptop from 2010, did not run the new Gnome3 really well. So I tried out Mate, and in the end Kubuntu.

I was surprised that KDE was much smoother experience than Gnome3 on 18.04. At that moment.

Things improved with Gnome3 with 19.10, but now with 20.04 Ubuntu is running nice again on lower spec hardware.

Still a SSD is much needed, but my old su4100 2 core processor, is delivering a nice and smooth feeling with a fresh Ubuntu 20.04 install.

Great.

That’s why I like Linux. Free, open source, and more sustainable than Apple OS or Microsoft Windows.

 

No Comments

Upgrade deepspeech 0.7 on a Raspberry Pi 4

{}
April 25th, 2020

In an earlier post I described how to install deepspeech on a Raspberry Pi 4. That wasn’t exactly a really smooth install, but I managed in the end.

Upgrading to deepspeech 0.7 is much easier:

Activate the virtual environment:

source dev/deepspeech-train-venv/bin/activate

Upgrade deepspeech

pip install --upgrade deepspeech 
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting deepspeech
Downloading https://files.pythonhosted.org/packages/fc/e6/3bee97bf20761b9930d46638f4b8d96b3fcb84e1843d59e25c4b19f88acc/deepspeech-0.7.0-cp37-cp37m-linux_armv7l.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 258kB/s 
Requirement already satisfied, skipping upgrade: numpy>=1.14.5 in ./dev/deepspeech-train-venv/lib/python3.7/site-packages (from deepspeech) (1.18.0)
Installing collected packages: deepspeech
Found existing installation: deepspeech 0.6.0
Uninstalling deepspeech-0.6.0:
Successfully uninstalled deepspeech-0.6.0
Successfully installed deepspeech-0.7.0
No Comments

Firefox Preview on Android (Preview)

{}
April 24th, 2020

Trying out Firefox Preview on Android.

What I miss now at the moment, two major (deal-breaking) things:

No support for extensions (yet)

No support for extensions, except uBlock Origin, which is a great extension. But I don’t need uBlock anymore, because I have my own (IMHO superior) extension. But I can’t install it, so can’t really use Firefox Preview. I need my extensions!!

No keyword search

A hidden gem in Firefox, just type your keyword of choice and  a search-term and search anything you want. Really really productive!!!!

An example, use g chair for searching in your favorite search engine to search for a chair. If you switch from google to bing or duckduckgo there is not change in habit, except changing your bookmark from:

https://www.google.com/search?q=%s

to

https://www.bing.com/search?q=%s

That is a usability gem in Firefox Desktop, but also on Firefox Android.

If you like searching only in a domain, you can setup that as well. Absolutely superior to adding search engines as an extension. Well for the user, probably not for Mozilla/Firefox. Yes, you can monitor and monetize search engine extensions, but they are INFERIOR!!!!! to keyword search in most cases.

Keyword search is easier, than adding search engines by right-clicking on search field in most cases, and add search engine, which doesn’t work on sites that have only Javascript driven search fields (again don’t break the internet!!), and on sites that use url based searches like: example.com/search/keyword

Use-cases:

  • site search, search easily in a domain
    https://www.bing.com/search?q=%s%20site:www.nrc.nl
  • search for certain file-types in domain
    https://www.google.com/search?client=ubuntu&q=%s+site:nl.hardware.info&as_filetype=pdf
  • search with an easy to remember letter/keyword, easier than scrolling a long list with confusing icons
  • search in sites that don’t have a proper search field, or a Javacript driven search field:
    https://caniuse.com/%s
    https://caniuse.com/#search=%s

 

Mozilla probably doesn’t like keyword search bookmarks, because they can’t sell it. Officially they don’t like it because maintaining the code is to complex, and they claim it is not much used.

Well I use it everyday 1000+. I guess Mozilla doesn’t know about, because, how do they know how I organize my bookmarks? Privacy first, so no tele-metrics send to Mozilla by default, that’s the first thing I do in every browser. Disable telemetrics/analytics. Should be off by default by law nowadays (GDPR), but isn’t always.

Normally on my Linux box searching with Google I see something like:

https://www.google.com/search?client=ubuntu
https://www.bing.com/search?form=MOZLBR&pc=MOZI&q=chair

You see the client or `pc` parameters, that is added by default install. Probably that is a way money can be made, like pushing Facebook bookmarks on a default install. I don’t mind that much I remove them instantly.

I stopped using Opera, when they started to push default commercial bookmarks with every update, and started to push Alibaba/Aliexpress and Amazon extensions. And when they blocked extensions to work on third party commercial urls (Google/Bing).  Opera was sold to Chinese investors a couple of years ago.

I really do not hope that Firefox is heading that way, because keyword search is really nice to have, as extensions on Desktop/Android.

And I use Android AOSP, so the open source operating system WITHOUT Google services, like Google Play. I’m limited to writing my own apps, or using F-Droid/Github builds. No Google Play.

Made Firefox my favorite app on Android. And I need support for keyword search and self-made extensions, not only a Recommended Extensions  selection made by Mozilla. Keyword search and self-made extensions are by far the most productive features of Firefox nowadays for me.

 

 

No Comments

Fixing Firefox: Failed to register/update a ServiceWorker for scope

{}
February 1st, 2020

For users that take privacy serious, Progressive Web Apps and the Push API and Notifications API are a real headache. They offer good performance and service, but privacy wise they are not that nice. Something like a supercookie. You like them but somewhere you know, you don’t really want them.

So in Firefox, Service Worker APIs are hidden and cannot be used when the user is in private browsing mode.

But also when users have Delete cookies and site data when Firefox is closed checked, sites can not register a Service Worker.

An error in the Javascript console will show up:

Failed to register/update a ServiceWorker for scope ‘https://domain/path’: Storage access is restricted in this context due to user settings or private browsing mode.

SecurityError: The operation is insecure.

Most solutions  suggest that the user should change or uncheck that setting, but that is not necessarily needed. A better solution is to create an exception for a that particular site. Like there own. Or they want a limited set of sites they trust to enable service workers.

Press the Manage Permissions button and add an exception for your domain.

That way you can use Progressive Web Apps or service workers on a selected collection  of trusted sites, and still keep your privacy settings on a high level.