<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tingnoy on Medium]]></title>
        <description><![CDATA[Stories by Tingnoy on Medium]]></description>
        <link>https://medium.com/@thingnoy?source=rss-595fdf054b8f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ix8xNM-7NqH0e9k5.</url>
            <title>Stories by Tingnoy on Medium</title>
            <link>https://medium.com/@thingnoy?source=rss-595fdf054b8f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:59:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thingnoy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why Your npm install Keeps Breaking (And How I Fixed Mine)]]></title>
            <link>https://thingnoy.medium.com/why-your-npm-install-keeps-breaking-and-how-i-fixed-mine-dd026ad4e8ef?source=rss-595fdf054b8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd026ad4e8ef</guid>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[electronjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Tingnoy]]></dc:creator>
            <pubDate>Mon, 08 Sep 2025 23:21:32 GMT</pubDate>
            <atom:updated>2025-09-08T23:25:21.288Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A simple guide to solving those annoying Node.js and Python errors</em></p><p>Ugh, npm install errors. We&#39;ve all been there, right? You clone a repo, run the magic command, and BAM! Your terminal explodes with red text that makes absolutely no sense.</p><p>I just went through this nightmare with an Electron app, and honestly? It was way simpler to fix than I thought. Let me save you some headache and show you what worked for me.</p><h3>What Went Wrong?</h3><p>So I’m trying to set up this cool app called <a href="https://github.com/requestly/requestly-desktop-app">Requestly</a> (it lets you mess with HTTP requests — pretty neat!). Should be easy, right? Just npm install and we&#39;re good to go.</p><p>Nope. Here’s what happened instead:</p><pre>npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1<br>npm ERR! ModuleNotFoundError: No module named &#39;distutils&#39;<br>npm WARN EBADENGINE Unsupported engine {<br>npm WARN EBADENGINE   package: &#39;isbinaryfile@5.0.2&#39;,<br>npm WARN EBADENGINE   required: { node: &#39;&gt;= 18.0.0&#39; },<br>npm WARN EBADENGINE   current: { node: &#39;v16.15.0&#39;, npm: &#39;8.5.5&#39; }<br>npm WARN EBADENGINE }</pre><p>Yeah, that looks scary. Basically, the app was trying to compile some low-level stuff and everything was falling apart.</p><h3>Why This Happened (The Detective Work)</h3><p>After some digging (and a lot of googling), I found two problems:</p><h3>1. My Node.js Was Too Old</h3><p>The app wanted Node.js version 20 or higher:</p><pre>&quot;devEngines&quot;: {<br>  &quot;node&quot;: &quot;&gt;=20.x&quot;,<br>  &quot;npm&quot;: &quot;&gt;=9.x&quot;<br>}</pre><p>But I was stuck on Node.js 16.15.0. Oops! Some packages just won’t work with older versions because they need newer JavaScript features.</p><h3>2. Python Got Too Smart For Its Own Good</h3><p>Here’s the sneaky one. Python 3.13 decided to remove something called distutils (basically a build tool), but Node.js still needs it to compile certain packages.</p><p>So you have:</p><ul><li>Python 3.13: “We don’t need distutils anymore!”</li><li>Node.js: “Wait, where’s distutils? I can’t build anything!”</li><li>Me: 😭</li></ul><h3>How I Fixed It (Super Easy!)</h3><h3>Step 1: Upgrade Node.js</h3><p>Time to get with the times! I needed Node.js 20.something. I use <a href="https://asdf-vm.com/">asdf</a> to manage versions, so here’s what I did:</p><pre># Check available Node.js versions<br>asdf list nodejs</pre><pre># Switch to Node.js 20.18.1<br>asdf set nodejs 20.18.1</pre><pre># Verify the update<br>node --version  # v20.18.1<br>npm --version   # 10.8.2</pre><p>Don’t have asdf? No worries! Here are other ways:</p><p><strong>With nvm (most common):</strong></p><pre>nvm install 20.18.1<br>nvm use 20.18.1</pre><p><strong>With Homebrew (Mac users):</strong></p><pre>brew install node@20<br>brew link node@20</pre><h3>Step 2: Give Python Back Its Missing Piece</h3><p>Remember that missing distutils thing? We can fix it by installing setuptools (which includes the stuff Python threw away):</p><pre>pip3 install setuptools --break-system-packages</pre><p><em>Note: If you’re on Mac with Homebrew, you need that scary </em><em>--break-system-packages flag. It&#39;s fine, just Python being overprotective.</em></p><h3>Step 3: Try Again (Fingers Crossed!)</h3><p>Now let’s clean house and try again:</p><pre># Delete the broken stuff<br>rm -rf node_modules package-lock.json</pre><pre># Fresh start!<br>npm install</pre><p>And… IT WORKED! 🎉 No more angry red text!</p><h3>What I Learned From This Mess</h3><p>Here’s the thing — this whole experience taught me some stuff:</p><h3>1. Version Requirements Actually Matter</h3><p>When a project says “Node.js 20+”, they’re not just being picky. Newer packages literally won’t work on older versions because they use features that didn’t exist back then. It’s like trying to run a 2024 video game on a 2010 computer.</p><h3>2. Node.js + Python = Complicated</h3><p>A lot of Node.js projects need to compile some low-level code, which means they secretly depend on Python too. When Python changes things (like removing distutils), it can break your JavaScript project. Weird, right?</p><h3>3. Documentation Is Your Friend</h3><p>Good projects tell you exactly what you need:</p><ul><li>Which Node.js version to use</li><li>What Python version works</li><li>Any weird system requirements</li></ul><h3>How to Avoid This Headache Next Time</h3><h3>1. Set Up Version Files</h3><p>Save future you some trouble! Create these files in your project:</p><p><strong>.nvmrc (for nvm users):</strong></p><pre>20.18.1</pre><p><strong>.tool-versions (for asdf users):</strong></p><pre>nodejs 20.18.1<br>python 3.11.9</pre><h3>2. Write Better READMEs</h3><p>If you’re making a project, just tell people what they need upfront:</p><pre>## What You Need</pre><pre>- Node.js 20+<br>- npm 9+<br>- Python 3.11+ (yes, really!)</pre><h3>3. When All Else Fails: Docker</h3><p>For really complicated projects, Docker can save your sanity:</p><pre>FROM node:20-alpine<br>RUN apk add --no-cache python3 py3-pip build-base<br>WORKDIR /app<br>COPY package*.json ./<br>RUN npm ci</pre><h3>4. Be Specific About Requirements</h3><p>If you’re building something, put this in your package.json:</p><pre>{<br>  &quot;engines&quot;: {<br>    &quot;node&quot;: &quot;&gt;=20.0.0&quot;,<br>    &quot;npm&quot;: &quot;&gt;=9.0.0&quot;<br>  }<br>}</pre><h3>The Real Talk</h3><p>Look, JavaScript development is getting more complicated. Everything’s connected to everything else, and when one thing breaks, it’s like a domino effect.</p><p>This one “simple” npm install error involved:</p><ul><li>Node.js versions</li><li>Python changes</li><li>Build tools</li><li>Native code compilation</li></ul><p>It’s a lot! But once you know what to look for, it’s not that scary.</p><h3>Bottom Line</h3><p>What seemed like a nightmare turned out to be pretty straightforward once I understood what was happening.</p><p>Here’s what I’ll remember:</p><ol><li><strong>Version requirements exist for a reason</strong> — don’t ignore them!</li><li><strong>Keep your tools updated</strong> — but watch out for breaking changes</li><li><strong>Node.js projects can need Python too</strong> — weird but true</li><li><strong>Good documentation saves everyone time</strong></li></ol><p>Got your own npm horror stories? I’d love to hear them! Drop a comment and let’s suffer together. 😄</p><p><em>Found this helpful? Follow me for more development debugging adventures and tips!</em></p><h3>References</h3><ul><li><a href="https://nodejs.org/en/about/releases/">Node.js Release Schedule</a></li><li><a href="https://peps.python.org/pep-0632/">PEP 632 — Deprecate distutils module</a></li><li><a href="https://github.com/nodejs/node-gyp#installation">node-gyp Installation Guide</a></li><li><a href="https://docs.npmjs.com/cli/v9/configuring-npm/package-json#engines">npm Engine Compatibility</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd026ad4e8ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install a specific version of SwiftLint]]></title>
            <link>https://thingnoy.medium.com/install-a-specific-version-of-swiftlint-23e23dea7a1e?source=rss-595fdf054b8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/23e23dea7a1e</guid>
            <dc:creator><![CDATA[Tingnoy]]></dc:creator>
            <pubDate>Wed, 16 Oct 2024 04:40:33 GMT</pubDate>
            <atom:updated>2024-10-16T04:40:33.942Z</atom:updated>
            <content:encoded><![CDATA[<p>a step-by-step guide to installing a specific version of SwiftLint using Mint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ob09IRaxo8fUCDV7" /></figure><h3>Step 1: Install Mint</h3><p>First, you need to install Mint, which is a package manager for Swift command-line tools.</p><pre>brew install mint</pre><h3>Step 2: Install a Specific Version of SwiftLint</h3><p>Use Mint to install the specific version of SwiftLint you need. For example, to install version 0.53.0:</p><pre>mint install realm/SwiftLint@0.53.0</pre><h3>Step 3: Make Mint Globally Available</h3><p>To ensure Mint binaries are globally available, add Mint’s bin directory to your PATH:</p><pre>echo &#39;export PATH=&quot;$HOME/.mint/bin:$PATH&quot;&#39; &gt;&gt; ~/.zshrc<br>source ~/.zshrc</pre><h3>Step 4: Test the Installation</h3><p>Verify the installation by checking SwiftLint’s version:</p><pre>swiftlint --version</pre><p>This should display the installed version of SwiftLint, confirming it’s ready for use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23e23dea7a1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Environment Variables in SvelteKit and Adapter-Node]]></title>
            <link>https://thingnoy.medium.com/environment-variables-in-sveltekit-and-adapter-node-f6dfce05e73a?source=rss-595fdf054b8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6dfce05e73a</guid>
            <category><![CDATA[env]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[sveltekit]]></category>
            <category><![CDATA[svelte]]></category>
            <dc:creator><![CDATA[Tingnoy]]></dc:creator>
            <pubDate>Thu, 27 Jan 2022 17:51:37 GMT</pubDate>
            <atom:updated>2022-01-27T17:51:37.097Z</atom:updated>
            <content:encoded><![CDATA[<p>Our topic for today is “How to change env config without rebuild app?”.</p><ol><li><strong>Create .env file in root project</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*N6Kdf0ZPnKaqVZdt3GiOaw.png" /><figcaption>.env file</figcaption></figure><p><strong>2. Set config in svelte.config.js</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tr6Y6lz6nQuqhYt2D_2XrA.png" /><figcaption>add vite config to define global variable</figcaption></figure><p><strong>3. Convert your environment to constant</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*9_8LfQ0azGHUusEw_dR1AQ.png" /><figcaption>convert from env to constant variable</figcaption></figure><p><strong>4. Install env-cmd </strong>to load .env file to environment variable</p><p>npm install env-cmd</p><p><strong>5. use env-cmd</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*uBTb8Y73-34tWo5EwHHuMA.png" /><figcaption>use env-cmd to load env config</figcaption></figure><h3><strong>Conclusion</strong></h3><p>You can try to build app and run with env-cmd node build/index.js process.env.XXX should be work. Now you can change config in .env file and restart app without rebuild app.</p><p>reference:<br><a href="https://dev.to/hideckies/environment-variables-in-sveltekit-and-vercel-52jc">https://dev.to/hideckies/environment-variables-in-sveltekit-and-vercel-52jc</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6dfce05e73a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DNS]]></title>
            <link>https://thingnoy.medium.com/dns-e7ade3d7ce86?source=rss-595fdf054b8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7ade3d7ce86</guid>
            <category><![CDATA[dns]]></category>
            <dc:creator><![CDATA[Tingnoy]]></dc:creator>
            <pubDate>Sun, 26 Sep 2021 17:25:09 GMT</pubDate>
            <atom:updated>2021-09-26T17:25:09.378Z</atom:updated>
            <content:encoded><![CDATA[<p>DNS stands for <strong>Domain Name System</strong>, and is a protocol for forwarding your domain, or part of it elsewhere.<br>DNS is an intricate part of how the internet works. It is often compared to a phone book, but instead of connecting phone numbers to people, it connects IP addresses to domain names</p><h3><strong>TTL</strong></h3><p><strong>TTL (time-to-live)</strong> indicates how long a record is cached by a DNS server, like your ISP (Internet Service Provider).</p><p>TTL is set in seconds, and the lowest value possible is 600 seconds (10 minutes). The highest possible value is 86400 seconds (24 hours). If you leave the field empty, the default value is 3600 seconds (1 hour).</p><h3><strong>Type of DNS Record</strong></h3><p>This is a partial of list. see more <a href="https://en.wikipedia.org/wiki/List_of_DNS_record_types">List of DNS Record Types</a></p><ol><li><strong>A</strong> Record<br>With an A (Address) record, you point a domain or a subdomain to an IP address. An A record is one of the most fundamental types of DNS record you can create because it connects a domain name that is easy to remember, to an internet address.<br>You use an A record, often in combination with a <strong>CNAME</strong>, when you want to connect your (sub)domain to an external service, like Blogger.<br>With an A record, you can only point to an IPv4-address. If you want to point to an IPv6-address you need to <strong>create an AAAA record</strong>.</li><li><strong>AAAA</strong> Record<br>With an AAAA record, you can point a domain to an IPv6-address. It is the same as an <strong>A record</strong>, but instead of pointing to an IPv4-address, it’s used to point to an IPv6-address.<br>An AAAA record isn’t very common, because most services still use IPv4 addresses, but as the use of Ipv6 grows, so will AAAA records.</li><li><strong>CNAME</strong> Record<br>A CNAME (Canonical name) record, is basically an alias or nickname for another domain. It is often used instead of an <strong>A record</strong> to point different hostnames to the same location. The difference between the record types is that an A record always points to an IP address, while a CNAME always points to another name.<br>A CNAME is often used to point a subdomain on your domain to an external service, like for example Office 365 or Blogger.</li><li><strong>TXT</strong> Record<br>A TXT (Text) record doesn’t really do anything in itself, but can be used to relay information. For example <strong>SPF</strong> (Sender Policy Framework) information.<br>TXT records can also be used to verify that you are the owner of your domain, for example when you want to set up your domain with Office 365.</li><li><strong>SRV</strong> Record<br>With an SRV (Server) record you can specify a host and a port for specific services, like for example Lync/Skype for business with Office 365. In most cases, a third party service will tell you what the record should contain.<br>When you need to enter the value or the location where you want to direct to, it will typically consist of a port weight and target. Looking something like this: <em>1 443 sipdir.online.lync.com</em>.</li><li><strong>MX</strong> Record<br>An MX (Mail Exchange) record tells a sending mail server where to deliver email that is sent to your (sub)domain. By default, this is set to the one.com servers, but you can change them to other external servers.<br>If you have a web hosting subscription with us, then you would only change the MX records if you want to receive your email through another provider, for example, Google or Office 365.</li><li><strong>TLSA</strong> Record<br>With a TLSA (TLS Authentication) record your can store the fingerprint of a TLS/SSL certificate in the DNS on your domain. It is commonly used for <a href="https://en.wikipedia.org/wiki/DNS-based_Authentication_of_Named_Entities"><strong>DANE</strong></a>.<br>TLSA records can only be trusted if DNSSEC is enabled on your domain. We are in the process of enabling DNSSEC for as many domains as possible. You can check if DNSSEC is enabled for your domain</li><li><strong>SSHFP</strong> Record<br>With an SSHFP (SSH Fingerprint) record your can store an SSH Fingerprint in the DNS on your domain. It can be used to verify the SSH server’s key.<br>SSHFP records can only be trusted if DNSSEC is enabled on your domain. We are in the process of enabling DNSSEC for as many domains as possible. You can check if DNSSEC is enabled for your domain</li></ol><p>Ref:<br><a href="https://help.one.com/hc/en-us/articles/115005587829-Which-DNS-records-are-available-">https://help.one.com/hc/en-us/articles/115005595925-Manage-your-DNS-settings-</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7ade3d7ce86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Regex lookaheads in JavaScript]]></title>
            <link>https://thingnoy.medium.com/regex-lookaheads-in-javascript-39e27ebaa093?source=rss-595fdf054b8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/39e27ebaa093</guid>
            <category><![CDATA[regex]]></category>
            <category><![CDATA[js]]></category>
            <dc:creator><![CDATA[Tingnoy]]></dc:creator>
            <pubDate>Sun, 04 Jul 2021 19:07:29 GMT</pubDate>
            <atom:updated>2021-09-26T17:27:22.312Z</atom:updated>
            <content:encoded><![CDATA[<p>You can define patterns that only match when they’re followed or not followed by another pattern with lookaheads.</p><p><strong>Positive and negative lookaheads:<br></strong> x(?=y) – positive lookahead (matches &#39;x&#39; when it&#39;s followed by &#39;y&#39;)<br>x(?!y) – negative lookahead (matches &#39;x&#39; when it&#39;s not followed by &#39;y&#39;)</p><p><strong>Positive and negative lookbehinds:<br></strong>(?&lt;=y)x – positive lookbehind (matches &#39;x&#39; when it&#39;s leading by &#39;y&#39;)<br>(?&lt;!y)x – negative lookbehind (matches &#39;x&#39; when it&#39;s not leading by &#39;y&#39;)</p><p><strong>Conclusion</strong>:<br><strong>Lookaheads</strong> consider the <strong>patterns after</strong> the matching part whereas <strong>lookbehinds</strong> consider the <strong>patterns before</strong>.</p><p><strong>Ref:</strong><br><a href="https://www.stefanjudis.com/today-i-learned/the-complicated-syntax-of-lookaheads-in-javascript-regular-expressions/">https://www.stefanjudis.com/today-i-learned/the-complicated-syntax-of-lookaheads-in-javascript-regular-expressions/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39e27ebaa093" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Github Desktop Not Launching UI]]></title>
            <link>https://thingnoy.medium.com/github-desktop-not-launching-ui-d4e17564968e?source=rss-595fdf054b8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4e17564968e</guid>
            <category><![CDATA[not-have-ui]]></category>
            <category><![CDATA[github-desktop]]></category>
            <dc:creator><![CDATA[Tingnoy]]></dc:creator>
            <pubDate>Sun, 13 Dec 2020 15:55:44 GMT</pubDate>
            <atom:updated>2020-12-13T16:01:43.751Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Problem</strong> :</h3><p>I found problem when open Github Desktop application but app not have any UI. I try to uninstall and reinstall but problem still persists.</p><h3><strong>Solution</strong>:</h3><ol><li>Uninstall Github Desktop fallow these steps: <a href="https://docs.github.com/en/free-pro-team@latest/desktop/installing-and-configuring-github-desktop/uninstalling-github-desktop">https://docs.github.com/en/free-pro-team@latest/desktop/installing-and-configuring-github-desktop/uninstalling-github-desktop</a></li><li>Remove Application Support with command</li></ol><pre>$ rm -rf ~/Library/Application\ Support/GitHub\ Desktop/</pre><p>3. ReInstall Github Desktop</p><p>Hope this helps!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4e17564968e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build and delete all console.* in Quasar framework]]></title>
            <link>https://thingnoy.medium.com/how-to-build-and-delete-all-console-in-quasar-framework-97ae324451b2?source=rss-595fdf054b8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/97ae324451b2</guid>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[quasarframework]]></category>
            <category><![CDATA[console-log]]></category>
            <category><![CDATA[quasar]]></category>
            <dc:creator><![CDATA[Tingnoy]]></dc:creator>
            <pubDate>Sun, 02 Aug 2020 11:09:19 GMT</pubDate>
            <atom:updated>2021-09-26T17:32:49.272Z</atom:updated>
            <content:encoded><![CDATA[<p>The solution in <a href="https://quasar.dev/quasar-cli/quasar-conf-js#property-build">build config</a> use uglifyOptions property</p><p>Config uglifyOptions (<a href="https://github.com/webpack-contrib/terser-webpack-plugin#terseroptions">terserOptions</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gices-sH8cWWCMqAO9yV6Q.png" /><figcaption><a href="https://gist.github.com/thingnoy/9f533370b2f3a30542b6abdc677febee#file-quasar-conf-js">quasar.conf.js</a></figcaption></figure><p>That will work when you run quasar build.</p><h4>Behind the scene is webpack compile<br>in node_modules/@quasar/app/lib/webpack/create-chain.js</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eE3V-cJNDXBOELBltMpOUQ.png" /><figcaption><a href="https://gist.github.com/thingnoy/9f533370b2f3a30542b6abdc677febee#file-create-chain-js">create-chain.js</a></figcaption></figure><p>*** If you set es-lint to no-console like:<br> <em>“no-console”: process.env.NODE_ENV === “production” ? “error” : “off”,</em></p><p>it still error because es-lint compile before webpack compile</p><p>Hope this helps!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97ae324451b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install java on macOs]]></title>
            <link>https://thingnoy.medium.com/install-java-on-macos-4193f446c6bf?source=rss-595fdf054b8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4193f446c6bf</guid>
            <category><![CDATA[bashprofile]]></category>
            <category><![CDATA[brew]]></category>
            <category><![CDATA[install-java]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Tingnoy]]></dc:creator>
            <pubDate>Fri, 26 Jul 2019 10:59:04 GMT</pubDate>
            <atom:updated>2019-10-31T03:53:32.055Z</atom:updated>
            <content:encoded><![CDATA[<p>How to install multi versions of java on mac</p><h3><strong>Step 1 check your java &amp; install</strong></h3><ul><li><strong>If already install</strong></li></ul><p>Check java home :</p><pre>$ /usr/libexec/java_home -V</pre><ul><li><strong>If never install</strong></li></ul><p>Install by brew</p><p>Java last version :</p><pre>$ brew cask install java</pre><p>Java 11 :</p><pre>$ brew cask install homebrew/cask-versions/java11</pre><p>Java 8 :</p><pre>$ brew cask install adoptopenjdk/openjdk/adoptopenjdk8</pre><p>Java 6 :</p><pre>$ brew cask install homebrew/cask-versions/java6</pre><ul><li><strong>Check your java after install :</strong></li></ul><pre>$ /usr/libexec/java_home -V</pre><h3><strong>Step 2 Switching versions</strong></h3><p>Create bash profile &amp; open for edit :</p><pre>$ touch ~/.bash_profile; open ~/.bash_profile</pre><p>Now you have .bash_profile is created in /Users/&lt;user&gt;/.bash_profile</p><ul><li>Copy command below and paste to .bash_profile for creating shell aliases</li></ul><pre>export JAVA_8_HOME=$(/usr/libexec/java_home -v 1.8.0)</pre><pre>export JAVA_11_HOME=$(/usr/libexec/java_home -v 11.0.2)</pre><pre>export JAVA_12_HOME=$(/usr/libexec/java_home -v 12.0.1)</pre><pre>alias java8=’export JAVA_HOME=$JAVA_8_HOME’</pre><pre>alias java11=’export JAVA_HOME=$JAVA_11_HOME’</pre><pre>alias java12=’export JAVA_HOME=$JAVA_12_HOME’</pre><pre># default java version</pre><pre>java8</pre><p>Updater .bash_profile :</p><pre>$ source ~/.bash_profile</pre><p>Then try to switch version with :</p><pre>$ java8</pre><p>And check java version :</p><pre>$ java -version</pre><p>Ref:</p><p><a href="https://stackoverflow.com/questions/52524112/how-do-i-install-java-on-mac-osx-allowing-version-switching">https://stackoverflow.com/questions/52524112/how-do-i-install-java-on-mac-osx-allowing-version-switching</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4193f446c6bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to set directory permission in java]]></title>
            <link>https://thingnoy.medium.com/how-to-set-directory-permission-in-java-3bf8643cd64e?source=rss-595fdf054b8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bf8643cd64e</guid>
            <category><![CDATA[directory]]></category>
            <category><![CDATA[nio]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[permission]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Tingnoy]]></dc:creator>
            <pubDate>Thu, 25 Jul 2019 08:35:42 GMT</pubDate>
            <atom:updated>2019-07-25T08:35:42.686Z</atom:updated>
            <content:encoded><![CDATA[<p>set permission to directory or file in java</p><p><strong>1.Check permission by command line</strong></p><p>ref: <a href="https://www.cyberciti.biz/faq/get-octal-file-permissions-from-command-line-on-linuxunix/">s</a>ee more <a href="https://www.cyberciti.biz/faq/get-octal-file-permissions-from-command-line-on-linuxunix/">this</a></p><p>On Linux:</p><blockquote>stat -c ‘%A %a %n’ /etc/testDir</blockquote><p>On MacOs/BSD:</p><blockquote>stat -f “%Sp %OLp %N” /etc/testDir</blockquote><p><strong>2.Set permission in java</strong></p><ul><li>set permission by <strong>java.io.File</strong></li></ul><pre>public boolean setReadable(boolean readable, boolean ownerOnly)<br>public boolean setWritable(boolean writable, boolean ownerOnly)<br>public boolean setExecutable(boolean executable, boolean ownerOnly)</pre><pre>example:</pre><pre>private void makeDirectory(File dir) {</pre><pre>  if (!dir.exists()) {// check existing</pre><pre>    dir.mkdir();// create directory</pre><pre>    dir.setReadable(true, false); // set readable</pre><pre>    dir.setWritable(true, false); // set writable</pre><pre>    dir.setExecutable(true, false); // set executable</pre><pre>  }</pre><pre>}</pre><ul><li>set permission<strong> </strong>by <strong>java.nio.file.Files</strong> (available in java 7 or newer)</li></ul><pre>public boolean setExecutable(boolean executable, boolean ownerOnly)</pre><pre>example:</pre><pre>private void makeDirectory(File dir) {</pre><pre>if (!dir.exists()) {// check existing</pre><pre>dir.mkdir();// create directory</pre><pre>// must be 9 digit<br>String perm = &quot;rwxrwx---&quot;;// in octal = 770</pre><pre>  try {</pre><pre>    Set&lt;PosixFilePermission&gt; permissions =         PosixFilePermissions.fromString(perm);</pre><pre>Files.setPosixFilePermissions(dir.toPath(), permissions);</pre><pre>  } catch (IOException e) {</pre><pre>    // logger.warning(&quot;Can&#39;t set permission &#39;&quot; + perm + &quot;&#39; to &quot; +   dir.getPath());</pre><pre>    e.printStackTrace();</pre><pre>  }</pre><pre>}</pre><pre>}</pre><p>ref:<br><a href="https://stackoverflow.com/questions/664432/how-do-i-programmatically-change-file-permissions/7551297#7551297">https://stackoverflow.com/questions/664432/how-do-i-programmatically-change-file-permissions/7551297#7551297</a><br><a href="https://www.cyberciti.biz/faq/get-octal-file-permissions-from-command-line-on-linuxunix/">https://www.cyberciti.biz/faq/get-octal-file-permissions-from-command-line-on-linuxunix/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bf8643cd64e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Forward Delete on Mac]]></title>
            <link>https://thingnoy.medium.com/delete-button-on-mac-980b21dc2cf6?source=rss-595fdf054b8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/980b21dc2cf6</guid>
            <dc:creator><![CDATA[Tingnoy]]></dc:creator>
            <pubDate>Thu, 11 Jul 2019 06:58:40 GMT</pubDate>
            <atom:updated>2021-09-26T17:48:08.827Z</atom:updated>
            <content:encoded><![CDATA[<p>How to use the forward delete on Mac</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XpzFwDtwnvZxbuI0A2NBbw.jpeg" /></figure><p><strong>The Forward Delete</strong><em> </em>⌦ <em>: Press </em><strong>Fn + Backspace</strong> <br>It deletes the character ahead of the cursor</p><p><strong>The Backward Delete</strong><em> </em>⌫ <em>: Press </em><strong><em>Backspace</em></strong><em> <br></em>It removes the character left of the cursor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=980b21dc2cf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>