by kiru (23.1010.2021)

Create Empty File to Avoid Out of Space

tl;dr

Nice trick to deal with disk full issues on a server:

After setting it up, create an empty 8GB file in /spacer.img.

That’s it. Don’t forget the file when the problem occurs.

by clemens (21.1010.2021)

Running Erlang and Elixir as Apps on Android or iOS

tl;dr

The guys at diode.io have build a wrapper around the BEAM so that you can run it as a native app on Android and iOS, using LiveView locally on the device.

by clemens (07.1010.2021)

Cleaning Up Digest Files in Phoenix

tl;dr

Digested files in priv/static can be cleaned up using mix phx.digest.clean --all.

by clemens (06.1010.2021)

Beware of Zombie Watchers in Elixir

tl;dr

Running custom background watchers with e.g. watchexec will lead to zombie processes if not wrapped in custom shell script that kills the process once elixir quits.

by clemens (06.1010.2021)

Use the unary plus operator in JS to parse numbers

tl;dr

Of the dozens of variants to parse a number in JS, the unary plus operator is the preferred method.

by clemens (04.1010.2021)

Nesting Anchors not Working in Firefox

tl;dr

Do not try to nest <a> tags in Firefox, that will cause Firefox to mangle up the layout.

by clemens (04.1010.2021)

Find all Elements at Mouse Position in Javascript

tl;dr

Get an array of all elements at the specified coordinates, relative to the viewport, using Document.elementsFromPoint().

by clemens (29.99.2021)

Explizite Ansprache in Stellenanzeige ist Besser als Binnen-I

tl;dr

Eine Studie hat gezeigt, dass eine Stellenanzeige mit der Formulierung “Geschäftsführerin oder Geschäftsführer (m/w/d)" mehr Bewerbungen von Frauen und insgesamt mehr Bewerbungen bringt als die Formulierung “Geschäftsführer (m/w/d)".

by clemens (29.99.2021)

Copy Android App Data Using Backup

tl;dr

When migrating to a new phone, you can copy most app data using the apt backup and restore function.

by clemens (27.99.2021)

For With Reduce in Elixir

tl;dr

You can perform a reduce using for by using the reduce: [] opt.

by clemens (23.99.2021)

beforeunload Deactivated on iOS

tl;dr

On Safari in iOS the event beforeunload does not exist, but it does on Safari for MacOS. Add a global event listener on all clicks on anchor tags as a workaround.

by clemens (23.99.2021)

Using Different Erts Version With Mix Release

tl;dr

If you are using mix release with a different erts version, the path must point to the erts-x.x.x directory inside the erlang installation.

by clemens (23.99.2021)

You Can Simulate iOS Devices on Macos

tl;dr

Use simulator.app from XCode to test your websites on iOS devices.

by clemens (23.99.2021)

Migrations Are Silently Skipped if They Do Not Have an Exs Extension

tl;dr

If you’ve got a migration that has ex as its extension instead of exs its silently skipped.