Archive for the ‘Webtechnology’ Category

No Comments

Getting the date right in Javascript in your language of choice

Thursday, August 20th, 2020

The Internationalization API provides language number formatting, string comparison, and date/time formatting in Javascript. It’s a global object.

day: '2-digit',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
weekday: 'long',
era: 'long',
year: 'numeric' ,
month: 'long',
timeZoneName: 'long',
hour12: false

What is the time today?

No Comments

Macro Photography with the Raspberry Pi HQ camera and reverse mounted lens III

Saturday, June 6th, 2020

Another try with some extra lighting, and post-processing with Darktable. See my earlier posts about photographing with the Raspberry Pi HQ Camera: part I and part II.

This time I used a special build of raspistill that offers a Field of Merit function to assist focusing. The Raspberry Pi Forum is full of helpful people and is very informative.

Fruit-fly taken with a Raspberry Pi HQ Camera and a reverse mounted Pentax 35mm lens

Fruitflies are the really minuscule flies that hang around you garbage bin, or home plants in the windowsill.

Not sure what the yellow blob is, maybe I caught the fly eating a piece of banana.


No Comments

Install Firefox Android on Android AOSP

Saturday, June 6th, 2020

A small update on an older post Install Android browsers without Google Play because the download link on Mozilla’s pages has changed. (direct download)

Also F-droid is highly recommended for free and open-source software.

F-Droid is a community-maintained software repository for Android, similar to the Google Play store. The main repository, hosted by the project, contains only free/libre apps. Applications can be browsed, downloaded and installed from the F-Droid website or client app without the need to register for an account. “Anti-Features” such as advertising, user tracking, or dependence on nonfree software are flagged in app descriptions.



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

Thursday, June 4th, 2020

In a first post about Macro photography with the Raspberry Pi HQ camera I showed some pictures made with the reverse mounted lens technique and the new Raspberry Pi HQ camera.

But you might wonder what the exact setup was. So I show and describe it here. Yes, the 16mm lens is used upside down, or the wrong way. 😉

As I explained earlier. Normally you catch a big world in a small photo, and by reversing the lens you’ll get the opposite. You can make a small world big.

Exactly what you want for macro-photography.


Macro photography setup with the Raspberry Pi HQ camera and a reversed 16mm lens


No Comments

Firefox Bug with clip-path

Thursday, 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.

No Comments

Firefox Preview on Android (Preview)

Friday, 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:


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:


  • site search, search easily in a domain
  • search for certain file-types in domain
  • 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:


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:

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.