When you are in a Slim Twig template you can access the query string by using the get_uri() method:
{% set query = get_uri().getQuery() %}
{% set query = query|length ? '?'~query %}
When you are in a Slim Twig template you can access the query string by using the get_uri() method:
{% set query = get_uri().getQuery() %}
{% set query = query|length ? '?'~query %}
You can use rclone to sync your data with Proton Drive and vice versa. But the chances are high, that you also have Proton VPN, which ironically will not let you use access your Proton Drive through VPN! But there is a simple solution. You can use rclone’s --bind
argument with your local IP address to bypass the VPN.
The following synchronizes the remote drive with the local drive in home:
rclone sync ProtonDrive: ~/ProtonDrive/ --verbose --bind 192.168.1.xy
You can use the superfast esbuild instead of uglifyjs-folder and csso-cli to copy (and minify) your JavaScript and/or CSS files (without having to bundle the files) in your npm scripts.
Continue reading “Use esbuild instead of uglifyjs-folder and csso-cli”If you try to open a catalog stored on a network drive, Adobe Lightroom will complain about “Lightroom can not be opened on network volumes, removable storage or read on read only volumes.” You can easily overcome this by assigning the network drive to a drive letter using the subst
command:
C:\Windows\System32\subst.exe L: \\ERITHACUS\IMAGES
This is especially useful if you want to run Lightroom on Linux in a virtual Windows machine with VirtualBox, but want to keep your photos on a mounted drive (in my case /media/simon/IMAGES
).
First you need to add your mounted image folder to VirtualBox as a shared folder:
To improve paging loading performance across multiple devices, web developers can provide each image in different resolutions using the srcset
attribute and let the browser choose which one to load e.g.:
// on the page, where we want to display the image e.g.,
// index.php
<figure><img src="images/photo-1200.jpg"
srcset="images/photo-1200.jpg 1200w,
images/photo-1024.jpg 1024w,
images/photo-800.jpg 800w,
images/photo-600.jpg 600w" width="1200" height="800">
<figcaption>the description of the photo</figcaption>
</figure>
Continue reading “Create responsive images on the fly with php and Imagick” If the KEF LSX II speakers are connected to your Linux (Mint) PC via Digital Output (USB audio) instead of WiFi and the audio volume is not loud enough, it might be, that the gain of the internal sound card of the LSX II is set too low:
This is an example about how to create vector tiles with PostGIS 3.3 (and PostgreSQL 15.3), serve them with PHP 8.1 and use them in OpenLayers 7.5. In contrast to the few tutorials available on the internet, it not only uses the latest PostGIS version 3.3, which further simplified the generation of vector tiles by introducing the new function ST_TileEnvelope, but also shows the use case, when you want to create the tiles in a projection other than the default Spherical Mercator coordinate system (EPSG:3857).
Adobe Lightroom only writes changes to Metadata such as geolocation into the XMP sidecar files and not directly into the EXIF tags of the image. If you add coordinates via the map module, then you will need to copy that information from the sidecar files back into your raw files (in my case Nikon NEF). With the excellent ExifTool, this is pretty simple and straightforward:
$ /pathToExifTool/exiftool -tagsfromfile ./%d%f.xmp -ext NEF .
Google has a new experimental feature that proposes content for your website based on search queries that might not have good enough results. For this website and the category photography, it suggests to answer the following questions:
Continue reading “Nikon D800 questions”