{
    "version": "https:\/\/jsonfeed.org\/version\/1.1",
    "title": "Dev's notes: posts tagged how-to",
    "_rss_description": "macOS &amp; Linux tweaks, hacks, and some random thoughts",
    "_rss_language": "en",
    "_itunes_email": "",
    "_itunes_categories_xml": "",
    "_itunes_image": "",
    "_itunes_explicit": "",
    "home_page_url": "https:\/\/renset.dev\/tags\/how-to\/",
    "feed_url": "https:\/\/renset.dev\/tags\/how-to\/json\/",
    "icon": "https:\/\/renset.dev\/pictures\/userpic\/userpic@2x.jpg?1707008233",
    "authors": [
        {
            "name": "Renat",
            "url": "https:\/\/renset.dev\/",
            "avatar": "https:\/\/renset.dev\/pictures\/userpic\/userpic@2x.jpg?1707008233"
        }
    ],
    "items": [
        {
            "id": "7",
            "url": "https:\/\/renset.dev\/all\/how-to-shoot-the-milky-way-on-iphone-13-pro\/",
            "title": "📷 How to shoot the Milky Way on iPhone 13 Pro and iPhone 14 Pro",
            "content_html": "<p>Last weekend I could finally test the iPhone’s night photo capabilities. The night sky was clear and the Milky Way was slightly visible over my head.<\/p>\n<p>I tried to shoot the Milky Way on my iPhone for the first time and here is my first result:<br \/>\n<img src=\"\/pictures\/IMG_9867@2x.jpg\" style=\"width: 100%; max-width: 400px\" \/><\/p>\n<p>No stacking, no guiding, only built-in camera software and remote camera control from my Apple Watch (one can use a timer instead). To be honest, I was impressed. Did you?<\/p>\n<p>Well, that’s not that easy. Here is how the photo was looked like before editing:<\/p>\n<p><img src=\"\/pictures\/IMG_9877@2x.jpg\" style=\"width: 100%; max-width: 400px\" \/><\/p>\n<p>Slightly better than I could see with my own eyes – a good result, but a huge peace of magic should be made in photo processing software.<\/p>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"e2-text-table\">\n<tr>\n<td>💡<\/td>\n<td>Even photos made with professional DSLRs should be processed to get the best possible result.<\/td>\n<\/tr>\n<\/table>\n<p>Personally, I prefer <a href=\"https:\/\/www.pixelmator.com\/ios\/\">Pixelmator Photo for iOS<\/a>. This is a great one-time purchase alternative to Lightroom or similar software with a powerful set of coloring tools.<\/p>\n<h2>Shooting steps<\/h2>\n<p>To get started, point your camera at the Milky Way or just starry sky and hold your phone still (use tripod for the better fixation).<\/p>\n<p>In Camera app, select main camera and select night mode with longest exposure available (10 seconds).<\/p>\n<p>If the phone is stationary, exposure will be turned into max available – 30 seconds. Set timer or take a photo remotely from your Apple Watch Camera app.<\/p>\n<p>Once done, if everything is ok, you have to do final step.<\/p>\n<p>Processing photos – key points<\/p>\n<p>Sure, you can spend hours, playing with all available settings to achieve the best possible result – and this could be surprisingly interesting.<\/p>\n<p>However, there are 3 key settings which have the most impact on the result:<\/p>\n<ol start=\"1\">\n<li>Color temp<\/li>\n<li>Lightness settings<\/li>\n<li>Curves<\/li>\n<\/ol>\n<p>I suggest changing Curves first, then tuning Color temp and Lightness settings. Here are some settings for reference:<\/p>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"e2-text-table\">\n<tr>\n<td style=\"text-align: center\"><img src=\"\/pictures\/IMG_9929-2.PNG\" style=\"width: 100%\" \/><\/td>\n<td style=\"text-align: center\"><img src=\"\/pictures\/IMG_9930-2.PNG\" style=\"width: 100%\" \/><\/td>\n<td style=\"text-align: center\"><img src=\"\/pictures\/IMG_9931-2.PNG\" style=\"width: 100%\" \/><\/td>\n<\/tr>\n<\/table>\n<p>In addition, it could be useful to make changes in Selective color if your photo has unwanted glow at the center.<\/p>\n<p>Hope this guide was helpful! Feel free to <a href=\"https:\/\/renset.dev\/dl\/C004.adjustments.zip\">download my Pixelmator preset<\/a> and play around with settings.<\/p>\n",
            "date_published": "2022-07-18T23:27:27+01:00",
            "date_modified": "2024-02-04T15:08:31+01:00",
            "tags": [
                "how-to",
                "photos",
                "stars"
            ],
            "image": "https:\/\/renset.dev\/pictures\/IMG_9867@2x.jpg",
            "_date_published_rfc2822": "Mon, 18 Jul 2022 23:27:27 +0100",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "7",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [],
                "og_images": [
                    "https:\/\/renset.dev\/pictures\/IMG_9867@2x.jpg",
                    "https:\/\/renset.dev\/pictures\/IMG_9877@2x.jpg",
                    "https:\/\/renset.dev\/pictures\/IMG_9929-2.PNG",
                    "https:\/\/renset.dev\/pictures\/IMG_9930-2.PNG",
                    "https:\/\/renset.dev\/pictures\/IMG_9931-2.PNG"
                ]
            }
        },
        {
            "id": "6",
            "url": "https:\/\/renset.dev\/all\/how-to-force-the-macoss-photos-app-to-download-whole-icloud-libr\/",
            "title": "🏞 Force macOS Photos.app to download whole iCloud library",
            "content_html": "<h2>Problem<\/h2>\n<p>Many, many times I had issues with iCloud photos syncing. The last time I tried to save my whole Photos library (~180GB) on an external SSD drive with no luck: some originals for the latest photos were saved, while another 99% of data was still in the cloud only. What is important is that the settings were correct: I ticked ‘Download Originals to this Mac’, but this didn’t change anything.<\/p>\n<div class=\"e2-text-picture\">\n<img src=\"https:\/\/renset.dev\/pictures\/CleanShot-2022-06-10-at-16.23.49@2x.png\" width=\"700\" height=\"492\" alt=\"\" \/>\n<\/div>\n<p>It drove me nuts completely because I was planning to work with my new travel clip, so I needed all my photos and videos on hand, locally.<\/p>\n<p>After many attempts to find a workaround, I realized that ‘smart’ algorithms mainly cause these issues, but not poor Wi-Fi\/internet connection, or low bandwidth on iCloud infrastructure (ha-ha).<\/p>\n<p><i>At the same time, I’m still not ready to use another cloud storage to save & sync my photo library. iCloud’s native look & feel and fair monthly prices are the benefits that still make me use it for a while.<\/i><\/p>\n<p>Now I’m thinking about a pet project, that will allow me to force synchronization of the Photos library on my Mac using <a href=\"https:\/\/developer.apple.com\/documentation\/photokit\">Apple Photokit<\/a>. According to several forum threads, this app will be useful for many Apple users.<\/p>\n<h2>Solution<\/h2>\n<p>As for now, fortunately, I’ve finally found an easy way to download all my iCloud photos using 3rd party tool called <a href=\"https:\/\/github.com\/RhetTbull\/osxphotos\">osxphotos<\/a>. This is a powerful command-line utility to work with your iCloud photos. It doesn’t have a special command like ‘store all my photos locally’, or ‘force sync all my photos with iCloud’, however, you can run an export command with specific attributes which will allow you to download all photos without actual exporting, and it works!<\/p>\n<h2>6 easy steps<\/h2>\n<ol start=\"1\">\n<li>Open Terminal (search for Terminal in Spotlight or look in \/Applications\/Utilities)<\/li>\n<li>Download and install <a href=\"https:\/\/brew.sh\/\">Homebrew<\/a> – cool CLI package manager for Mac:<\/li>\n<\/ol>\n<pre class=\"e2-text-code\"><code class=\"\">\/bin\/bash -c &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)&quot;<\/code><\/pre><ol start=\"3\">\n<li>Using Homebrew, download and install pipx – package manager for python:<\/li>\n<\/ol>\n<pre class=\"e2-text-code\"><code class=\"\">brew install pipx<\/code><\/pre><ol start=\"4\">\n<li>Install osxphotos:<\/li>\n<\/ol>\n<pre class=\"e2-text-code\"><code class=\"\">pipx install osxphotos<\/code><\/pre><ol start=\"5\">\n<li>Once completed, create temp folder:<\/li>\n<\/ol>\n<pre class=\"e2-text-code\"><code class=\"\">mkdir ~\/osxphotosTemp<\/code><\/pre><ol start=\"6\">\n<li>Then run export command:<\/li>\n<\/ol>\n<pre class=\"e2-text-code\"><code class=\"\">osxphotos export ~\/osxphotosTemp --dry-run --download-missing --use-photokit --verbose<\/code><\/pre><p>Command explanation:<br \/>\n<b>osxphotos export<\/b> – run export command. In our case we don’t need to perform actual export, that’s why we also adding <b>--dry-run<\/b> param<br \/>\n<b>~\/osxphotosTemp<\/b> – we need to specify some folder for ‘export’. It’ll stay empty, since <b>--dry-run<\/b> param is provided<br \/>\n<b>--dry-run<\/b> – tell osxphotos to simulate the export process without actual exporting. Despite this, originals will still be downloaded from iCloud<br \/>\n<b>--download-missing<\/b> – our key to solving the issue – all missing photos and videos will be downloaded from iCloud servers<br \/>\n<b>--use-photokit<\/b> – Apple’s Photokit will be used<br \/>\n<b>--verbose<\/b> – make osxphotos display sync details<\/p>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"e2-text-table\">\n<tr>\n<td style=\"text-align: left\">ℹ️<\/td>\n<td>If you have a very large photo library, something could go wrong during command execution. You can re-run the command again and again until the whole library will be synced to your Mac.<\/td>\n<\/tr>\n<\/table>\n",
            "date_published": "2022-06-10T23:26:36+01:00",
            "date_modified": "2024-02-04T01:57:55+01:00",
            "tags": [
                "how-to",
                "icloud",
                "macos",
                "tips"
            ],
            "image": "https:\/\/renset.dev\/pictures\/CleanShot-2022-06-10-at-16.23.49@2x.png",
            "_date_published_rfc2822": "Fri, 10 Jun 2022 23:26:36 +0100",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "6",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [
                    "highlight\/highlight.js",
                    "highlight\/highlight.css"
                ],
                "og_images": [
                    "https:\/\/renset.dev\/pictures\/CleanShot-2022-06-10-at-16.23.49@2x.png"
                ]
            }
        },
        {
            "id": "5",
            "url": "https:\/\/renset.dev\/all\/how-to-delete-old-linux-kernels-in-boot-partition\/",
            "title": "🖥 Delete old Linux kernels in \/boot partition",
            "content_html": "<p>Sometimes one need to free up \/boot partition, for example, to perform release upgrade using do-release-upgrade command. \/boot partition may contain some outdated and unused kernels and here’s how to remove them:<\/p>\n<h2>Get current kernel<\/h2>\n<pre class=\"e2-text-code\"><code class=\"\">$ uname -r<\/code><\/pre><p>Note: this kernel shouldn’t be deleted.<\/p>\n<h2>List all installed kernels<\/h2>\n<pre class=\"e2-text-code\"><code class=\"\">$ dpkg --list &#039;linux-image*&#039; | grep ^ii<\/code><\/pre><h2>Manually delete all kernels except current kernel<\/h2>\n<pre class=\"e2-text-code\"><code class=\"\">$ sudo apt remove linux-image-&lt;version&gt;<\/code><\/pre><h2>Free up space<\/h2>\n<p>Finally, perform autoremove command to remove all unused files:<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">$ sudo apt --purge autoremove<\/code><\/pre><p>Check free space:<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">$ df -h<\/code><\/pre>",
            "date_published": "2022-03-26T20:02:00+01:00",
            "date_modified": "2022-10-16T21:47:48+01:00",
            "tags": [
                "debian",
                "how-to",
                "linux",
                "tips",
                "ubuntu"
            ],
            "_date_published_rfc2822": "Sat, 26 Mar 2022 20:02:00 +0100",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "5",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [
                    "highlight\/highlight.js",
                    "highlight\/highlight.css"
                ],
                "og_images": []
            }
        },
        {
            "id": "3",
            "url": "https:\/\/renset.dev\/all\/how-to-convert-heic-to-jpeg-in-one-click\/",
            "title": "🌅 Convert HEIC to JPEG in one click (macOS)",
            "content_html": "<p>By default, photos made with the iPhone camera app are saved in HEIC format. Your Apple devices can work with HEIC files like a charm, however, there are still many cases when you may need to convert these photos into JPEG or other popular formats.<\/p>\n<p>Fortunately, there is a simple way to do that with quick actions in the Finder context menu. Here is how we can add it.<\/p>\n<ol start=\"1\">\n<li>Open the <b>Automator<\/b> app<\/li>\n<li>Create a New document (select Quick Action as a type of document)<\/li>\n<li>Select the <b>Photos<\/b> category in <b>Library<\/b><\/li>\n<li>Drag’n’drop <b>Change Type of Images<\/b> into <b>Actions<\/b> area<\/li>\n<li>The <b>Alert<\/b> window may suggest you add an additional action to copy the original files. If you want to save the original files, click “Add”.<\/li>\n<li>Select JPEG as the target format<\/li>\n<li>Select the type of files (Images) and application<\/li>\n<li>Save and select the name of the quick action<\/li>\n<\/ol>\n<p>Steps 3-7 are explained in one <a href=\"https:\/\/renset.dev\/pictures\/CleanShot-2021-03-12-at-20.26.19@2x.png\">screenshot<\/a>.<\/p>\n<p>As a result, you’ll get the “Convert to JPEG” action in the image context menu:<\/p>\n<div class=\"e2-text-picture\">\n<img src=\"https:\/\/renset.dev\/pictures\/CleanShot-2021-03-12-at-20.38.55.gif\" width=\"800\" height=\"504\" alt=\"\" \/>\n<\/div>\n",
            "date_published": "2021-03-12T18:50:00+01:00",
            "date_modified": "2024-02-04T01:52:38+01:00",
            "tags": [
                "automator",
                "HEIC",
                "how-to",
                "macos",
                "tips"
            ],
            "image": "https:\/\/renset.dev\/pictures\/CleanShot-2021-03-12-at-20.38.55.gif",
            "_date_published_rfc2822": "Fri, 12 Mar 2021 18:50:00 +0100",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "3",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [],
                "og_images": [
                    "https:\/\/renset.dev\/pictures\/CleanShot-2021-03-12-at-20.38.55.gif"
                ]
            }
        }
    ],
    "_e2_version": 4134,
    "_e2_ua_string": "Aegea 11.3 (v4134)"
}