<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog on Karen Avetyan</title><link>https://avetyan.com/blog/</link><description>Recent content in Blog on Karen Avetyan</description><generator>Hugo</generator><language>en-US</language><managingEditor>karen@avetyan.com (Karen Avetyan)</managingEditor><webMaster>karen@avetyan.com (Karen Avetyan)</webMaster><lastBuildDate>Mon, 18 Sep 2023 23:37:05 +0400</lastBuildDate><atom:link href="https://avetyan.com/blog/index.xml" rel="self" type="application/rss+xml"/><item><title>How To Install PostgreSQL 16 on Ubuntu 22.04</title><link>https://avetyan.com/blog/how-to-install-postgresql-16-on-ubuntu-22-04/</link><pubDate>Mon, 18 Sep 2023 23:37:05 +0400</pubDate><author>karen@avetyan.com (Karen Avetyan)</author><guid>https://avetyan.com/blog/how-to-install-postgresql-16-on-ubuntu-22-04/</guid><description>&lt;p&gt;If you want to install the latest version of Postgres on Ubuntu, you may have tried the script from the Postgres website. It warns that &lt;code&gt;apt-key&lt;/code&gt; is deprecated, and so I don&amp;rsquo;t have to modify the script every time, I decided to write it down here.&lt;/p&gt;&#10;&lt;figure x-data="copyCode" class="not-prose group/code my-6 overflow-hidden rounded-[10px] border border-line bg-code-bg shadow-sm max-md:-mx-5 max-md:rounded-none max-md:border-x-0"&gt;&#10; &lt;div class="flex h-11 items-center justify-between border-b border-line pr-1.5 pl-5 md:h-9"&gt;&#10; &lt;figcaption class="truncate font-mono text-[13px] text-muted"&gt;install-postgresql-16.sh&lt;/figcaption&gt;&#10; &lt;button type="button" x-cloak @click="copy($refs.code)"&#10; class="inline-flex h-8 items-center gap-1.5 rounded-md border border-line-strong bg-surface px-2.5 text-[14px] font-semibold text-body transition-quiet hover:bg-band hover:text-head max-md:min-h-11 max-md:border-0 max-md:bg-transparent"&gt;&#10; &lt;span x-show="!copied" class="inline-flex items-center gap-1.5"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"&gt;&lt;rect width="14" height="14" x="8" y="8" rx="2" ry="2"/&gt;&lt;path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/&gt;&lt;/svg&gt;Copy&lt;/span&gt;&#10; &lt;span x-show="copied" class="inline-flex items-center gap-1.5 text-success"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"&gt;&lt;path d="M20 6 9 17l-5-5"/&gt;&lt;/svg&gt;Copied&lt;/span&gt;&#10; &lt;/button&gt;&#10; &lt;span class="sr-only" aria-live="polite" x-text="copied ? &amp;#34;Copied to clipboard&amp;#34; : ''"&gt;&lt;/span&gt;&#10; &lt;/div&gt;&#10; &lt;div x-ref="code" class="overflow-x-auto px-5 py-4 font-mono text-[length:var(--text-code-block-size)] leading-[var(--text-code-block-line)] [&amp;_pre]:bg-transparent!"&gt;&lt;div class="highlight" title="install-postgresql-16.sh"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Install the prerequisites:&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Import the repository signing key:&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl https://www.postgresql.org/media/keys/ACCC4CF8.asc &lt;span class="p"&gt;|&lt;/span&gt; gpg --dearmor &lt;span class="se"&gt;\&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;|&lt;/span&gt; sudo tee /usr/share/keyrings/postgresql-archive-keyring.gpg &amp;gt;/dev/null&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Create the file repository configuration:&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo sh -c &lt;span class="s1"&gt;&amp;#39;echo &amp;#34;deb [signed-by=/usr/share/keyrings/postgresql-archive-keyring.gpg] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main&amp;#34; &amp;gt; /etc/apt/sources.list.d/pgdg.list&amp;#39;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Update the package lists:&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt update&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Install the latest version of PostgreSQL.&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Or any other version:&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt -y install postgresql-16 postgresql-client-16&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/figure&gt;</description></item><item><title>Armenian Phonetic Keyboard Layout for Mac OS X</title><link>https://avetyan.com/blog/armenian-phonetic-keyboard-layout-for-mac-os-x/</link><pubDate>Thu, 07 Jul 2011 17:51:44 +0400</pubDate><author>karen@avetyan.com (Karen Avetyan)</author><guid>https://avetyan.com/blog/armenian-phonetic-keyboard-layout-for-mac-os-x/</guid><description>&lt;p&gt;If you are switching from Windows and used to the phonetic keyboard layout, you will notice that Mac OS X doesn&amp;rsquo;t have it preinstalled. Google didn&amp;rsquo;t help me find a solution, so I created my own, and now I can share it with you.&lt;/p&gt;&#10;&lt;h2 id="update-15072018"&gt;Update 15.07.2018&lt;/h2&gt;&#10;&lt;p&gt;The bundle was updated, so it is now compatible with the latest OS X versions.&lt;/p&gt;&#10;&lt;h2 id="installing"&gt;Installing&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;a href="armenian-phonetic.zip"&gt;Download the ZIP file&lt;/a&gt; to your machine.&lt;/li&gt;&#10;&lt;li&gt;Extract the &lt;code&gt;Armenian Phonetic.bundle&lt;/code&gt; file to the &lt;code&gt;/Library/Keyboard Layouts/&lt;/code&gt; folder.&lt;/li&gt;&#10;&lt;li&gt;Open System Preferences → Keyboard → Input Sources and select Armenian Phonetic from the Armenian section.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;On older systems, open System Preferences → Language &amp;amp; Text → Input Sources and select Armenian Phonetic from the input methods list.&lt;/p&gt;</description></item></channel></rss>