<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Господин 42</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/</link><description>Ответ на главный вопрос жизни, Вселенной и всего сущего</description><atom:link href="https://xn---42-idd5c.xn--p1ai/feed/rss" rel="self" type="application/rss+xml"/><language>ru</language><copyright>2014-2026 Г-н. 42</copyright><pubDate>Sat, 19 Jul 2025 19:57:42 +0000</pubDate><lastBuildDate>Sat, 19 Jul 2025 19:57:42 +0000</lastBuildDate><image><title>Господин 42</title><url>https://mr42.me/images/logo-144.png</url><link>https://www.xn--42-glceu4aeait.xn--p1ai/</link><description>Ответ на главный вопрос жизни, Вселенной и всего сущего</description><height>144</height><width>144</width></image><item><title>Convert to FLAC</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/articles/11/Convert+to+FLAC</link><description><![CDATA[<p>Convert to FLAC is a BASH shell script, and was originally written for use under Linux. It should, however, run under any OS that supports BASH.</p>
<p>Convert to FLAC currently supports the following input formats:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Apple_Lossless">Apple Lossless</a> (ALAC) - requires <a href="https://web.archive.org/web/20150319040222/craz.net/programs/itunes/alac.html">alac</a> and <a href="http://mpeg4ip.sourceforge.net/">mp4info</a> (for metadata) binaries</li>
<li><a href="http://flac.sourceforge.net/">FLAC</a> (eg., for transcoding to a different compression ratio)</li>
<li><a href="https://en.wikipedia.org/wiki/Meridian_Lossless_Packing">Meridian Lossless Packing</a> (MLP) - commonly found on DVD-Audio and Blu-ray discs; requires <code>ffmpeg</code></li>
<li><a href="http://www.monkeysaudio.com/">Monkey's Audio</a> (APE) - requires <a href="http://www.supermmx.org/linux/mac/">mac</a> and <a href="http://legroom.net/software/apeinfo">apeinfo</a> (for metadata) binaries</li>
<li><a href="http://www.etree.org/shnutils/shorten/">Shorten</a> - requires <code>shorten</code> binary</li>
<li><a href="https://tausoft.org/en/true-audio-%d0%ba%d0%be%d0%b4%d0%b5%d0%ba-tta/">True Audio</a> (TTA) - requires <code>ttaenc</code> binary</li>
<li><a href="http://en.wikipedia.org/wiki/WAV">WAVE</a></li>
<li><a href="http://www.wavpack.com/">WavPack</a> - requires <code>wvunpack</code> binary</li>
<li><a href="https://en.wikipedia.org/wiki/Windows_Media_Audio#Windows_Media_Audio_Lossless">Windows Media Audio Lossless</a> (WMA) - requires <code>ffmpeg</code></li>
</ul>
<p>You can find the script on <a href="http://legroom.net/software/convtoflac">LegRoom.net</a> and <a href="https://github.com/Mister-42/convtoflac">GitHub</a>.</p>
<a href="https://www.xn--42-glceu4aeait.xn--p1ai/articles/11/Convert+to+FLAC">Читать статью &raquo;</a>]]></description><dc:creator>mr42</dc:creator><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/audio">audio</category><guid isPermaLink="true">https://xn---42-idd5c.xn--p1ai/art11</guid><pubDate>Tue, 01 Nov 2016 15:32:37 +0000</pubDate></item><item><title>PHP 7.4.16 &amp; 8.0.3 for 1&amp;1 IONOS</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/articles/13/PHP+7+CLI+for+1and1+IONOS</link><description><![CDATA[<h4>Downloads are no longer available!</h4>
<hr />
<p><a href="https://www.ionos.de/">1&amp;1 IONOS</a> has been a fairly early adopter to PHP&nbsp;7 in their Shared Webhosting and provides regular updates to the latest version in every 7.x branch. However, for some reason the latest version available in the shell is runnning behind. This could get you into trouble, for example when using composer, where your desired package has a requirement higher than the version available. This article delivers a solution.</p>
<p>Login to your environment with ssh and follow these steps:</p>
<ul>
<li><p>PHP 7.4</p>
<pre><code>wget --content-disposition https://mr42.me/dl/php74
tar xjf php74.tar.bz2
echo "alias php='LD_LIBRARY_PATH=~/bin/lib ~/bin/php74-cli'" &gt;&gt; ~/.bashrc
</code></pre>
</li>
<li><p>PHP 8.0</p>
<pre><code>wget --content-disposition https://mr42.me/dl/php80
tar xjf php80.tar.bz2
echo "alias php='LD_LIBRARY_PATH=~/bin/lib ~/bin/php80-cli'" &gt;&gt; ~/.bashrc
</code></pre>
</li>
</ul>
<p>You can either log out and log back in, or run <code>. ~/.bashrc</code> in order to run <code>php</code> on the command line.</p>
<a href="https://www.xn--42-glceu4aeait.xn--p1ai/articles/13/PHP+7+CLI+for+1and1+IONOS">Читать статью полностью &raquo;</a>]]></description><dc:creator>mr42</dc:creator><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/linux">linux</category><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/PHP">PHP</category><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/1und1">1und1</category><guid isPermaLink="true">https://xn---42-idd5c.xn--p1ai/art13</guid><pubDate>Mon, 25 Sep 2017 18:46:31 +0000</pubDate></item><item><title>NEWS: The Mystery of 42 is Solved!</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/articles/16/The+Mystery+of+42+is+Solved</link><description><![CDATA[<p>42 = (−80538738812075974)<sup>3</sup> + 80435758145817515<sup>3</sup> + 12602123297335631<sup>3</sup></p>
<p><div class="ratio ratio-16x9"><iframe allowfullscreen loading="lazy" src="https://www.youtube-nocookie.com/embed/zyG8Vlw5aAw?disablekb=1&amp;rel=0&amp;showinfo=0"></iframe></div></p>
<a href="https://www.xn--42-glceu4aeait.xn--p1ai/articles/16/The+Mystery+of+42+is+Solved">Читать статью &raquo;</a>]]></description><dc:creator>mr42</dc:creator><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/blog">blog</category><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/42">42</category><guid isPermaLink="true">https://xn---42-idd5c.xn--p1ai/art16</guid><pubDate>Sat, 07 Sep 2019 12:41:29 +0000</pubDate></item><item><title>Introducing extended line endings support in Notepad</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/articles/15/Introducing+extended+line+endings+support+in+Notepad</link><description><![CDATA[<p>For many years, Windows Notepad only supported text documents containing Windows End of Line (EOL) characters - Carriage Return (CR) &amp; Line Feed (LF). This means that Notepad was unable to correctly display the contents of text files created in Unix, Linux and macOS.</p>
<p>For example, here's a screenshot of Notepad trying to display the contents of a Linux .bashrc text file, which only contains Unix LF EOL characters:</p>
<p><img src="https://mr42.me/images/article/015_Notepad-before.png" alt="Before" /></p>
<p>As you can see, Notepad is incorrectly displaying the file's contents, making the file look garbled. This has been a major annoyance for developers, IT Pros, administrators, and end users throughout the community.</p>
<p><strong>Today, we're excited to announce that we have fixed this issue!</strong></p>
<a href="https://www.xn--42-glceu4aeait.xn--p1ai/articles/15/Introducing+extended+line+endings+support+in+Notepad">Читать статью полностью &raquo;</a>]]></description><dc:creator>mr42</dc:creator><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/Microsoft">Microsoft</category><guid isPermaLink="true">https://xn---42-idd5c.xn--p1ai/art15</guid><pubDate>Wed, 09 May 2018 21:06:44 +0000</pubDate><source url="https://blogs.msdn.microsoft.com/commandline/2018/05/08/extended-eol-in-notepad/">Source</source></item><item><title>Where is Elon Musk's Tesla Roadster with Starman?</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/articles/14/Where+is+Tesla+Roadster+with+Starman</link><description><![CDATA[<p>On February 6th, 2018, at 2045 UTC, the first <a href="https://en.wikipedia.org/wiki/Falcon_Heavy">Falcon Heavy</a> was launched in to space. It contained a very special payload: a <a href="https://en.wikipedia.org/wiki/Elon_Musk%27s_Tesla_Roadster">Tesla Roadster with Starman</a>.</p>
<p><img src="https://mr42.me/images/article/014_Elon_Musks_Tesla_Roadster.jpg" alt="Elon Musk's Tesla Roadster" title="Elon Musk's Tesla Roadster, with Earth in background. &quot;Spaceman&quot; mannequin wearing SpaceX Spacesuit in driving seat. &quot;Last image&quot; transmitted. Camera mounted on external boom." /></p>
<p>But where is this vehicle? <a href="http://www.whereisroadster.com/">WhereIsRoadster.com</a> will tell you!</p>
<a href="https://www.xn--42-glceu4aeait.xn--p1ai/articles/14/Where+is+Tesla+Roadster+with+Starman">Читать статью &raquo;</a>]]></description><dc:creator>mr42</dc:creator><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/blog">blog</category><guid isPermaLink="true">https://xn---42-idd5c.xn--p1ai/art14</guid><pubDate>Wed, 07 Feb 2018 15:20:04 +0000</pubDate><source url="http://www.whereisroadster.com/">Source</source></item><item><title>Delfinariumas, Klaipėda Lietuva 03.08.2017</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/articles/12/Delfinariumas</link><description><![CDATA[<p><div class="ratio ratio-16x9"><iframe allowfullscreen loading="lazy" src="https://www.youtube-nocookie.com/embed/oStEgckSYAg?disablekb=1&amp;rel=0&amp;showinfo=0"></iframe></div></p>
<a href="https://www.xn--42-glceu4aeait.xn--p1ai/articles/12/Delfinariumas">Читать статью &raquo;</a>]]></description><dc:creator>mr42</dc:creator><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/blog">blog</category><guid isPermaLink="true">https://xn---42-idd5c.xn--p1ai/art12</guid><pubDate>Thu, 03 Aug 2017 16:00:55 +0000</pubDate></item><item><title>What happened to PHP 6?</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/articles/10/What+happened+to+PHP+6</link><description><![CDATA[<p>PHP 6 was the major PHP version that never came to light. It was supposed to feature full support for Unicode in the core, but this effort was too ambitious with too many complications arising. The predominant reasons why version 6 was skipped for this new major version are as follows:</p>
<ul>
<li><strong>To prevent confusion.</strong> Many resources were written about PHP 6 and much of the community knew what was featured in it. PHP 7 is a completely different beast with entirely different focuses (specifically on performance) and entirely different feature sets. Thus, a version has been skipped to prevent any confusion or misconceptions surrounding what PHP 7 is.</li>
<li><strong>To let sleeping dogs lie.</strong> PHP 6 was seen as a failure and a large amount of PHP 6 code still remains in the PHP repository. It was therefore seen as best to move past version 6 and start afresh on the next major version, version 7.</li>
</ul>
<a href="https://www.xn--42-glceu4aeait.xn--p1ai/articles/10/What+happened+to+PHP+6">Читать статью &raquo;</a>]]></description><dc:creator>mr42</dc:creator><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/PHP">PHP</category><guid isPermaLink="true">https://xn---42-idd5c.xn--p1ai/art10</guid><pubDate>Tue, 04 Oct 2016 10:52:15 +0000</pubDate><source url="https://github.com/tpunt/PHP7-Reference#what-happened-to-php-6">Source</source></item><item><title>Android SDK permissions on Linux</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/articles/9/Android+SDK+permissions+on+Linux</link><description><![CDATA[<p>Installing the Android SDK might give some headaches when it comes to permissions. The commands below set the correct permissions to run the tools without further root requirements.</p>
<pre><code class="language-bash">sudo chown -R root:root android-sdk-linux/
sudo chmod -R a+r android-sdk-linux/
sudo chmod a+x android-sdk-linux/
sudo chmod a+x android-sdk-linux/*/
</code></pre>
<a href="https://www.xn--42-glceu4aeait.xn--p1ai/articles/9/Android+SDK+permissions+on+Linux">Читать статью &raquo;</a>]]></description><dc:creator>mr42</dc:creator><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/android">android</category><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/linux">linux</category><guid isPermaLink="true">https://xn---42-idd5c.xn--p1ai/art9</guid><pubDate>Sat, 03 Sep 2016 12:33:54 +0000</pubDate></item><item><title>Force https using .htaccess</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/articles/8/Force+https+using+htaccess</link><description><![CDATA[<p>If you want to enforce your visitors to access your site over a secure connection only, you can redirect all requests that are not secure to the secure protocol. An easy to way to do this can be accomplished with a <code>.htaccess</code> file containing the following lines.</p>
<pre><code class="language-apache">RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
</code></pre>
<p>The first line tells Apache we are going to use mod_rewrite. The second line only matches if SSL is not active on this request. If that second line matches then the third line kicks in, which simply redirects the visitor to the SSL version of the requested page.</p>
<a href="https://www.xn--42-glceu4aeait.xn--p1ai/articles/8/Force+https+using+htaccess">Читать статью &raquo;</a>]]></description><dc:creator>mr42</dc:creator><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/htaccess">htaccess</category><guid isPermaLink="true">https://xn---42-idd5c.xn--p1ai/art8</guid><pubDate>Thu, 02 Oct 2014 12:53:14 +0000</pubDate></item><item><title>Redirect based on browser language with .htaccess</title><link>https://www.xn--42-glceu4aeait.xn--p1ai/articles/7/Redirect+based+on+browser+language+with+htaccess</link><description><![CDATA[<p>To redirect users to the domain page of a website according to the browser default language setting you can use the following <code>.htaccess</code>.</p>
<pre><code class="language-apache"># French
RewriteCond %{HTTP:Accept-Language} ^fr [NC]
RewriteCond %{HTTP_HOST} !^(www\.)?domain\.fr$ [NC]
RewriteRule ^$ http://www.domain.fr/ [R,L,NC]

# German
RewriteCond %{HTTP:Accept-Language} ^de [NC]
RewriteCond %{HTTP_HOST} !^(www\.)?domain\.de$ [NC]
RewriteRule ^$ http://www.domain.de/ [R,L,NC]

# All other languages
RewriteCond %{HTTP_HOST} !^(www\.)?domain\.com$ [NC]
RewriteRule ^$ http://www.domain.com/ [R,L]
</code></pre>
<p>Of course you can add/change/delete languages and domains according to your own needs.</p>
<a href="https://www.xn--42-glceu4aeait.xn--p1ai/articles/7/Redirect+based+on+browser+language+with+htaccess">Читать статью &raquo;</a>]]></description><dc:creator>mr42</dc:creator><category domain="https://www.xn--42-glceu4aeait.xn--p1ai/articles/tag/htaccess">htaccess</category><guid isPermaLink="true">https://xn---42-idd5c.xn--p1ai/art7</guid><pubDate>Wed, 10 Sep 2014 11:22:29 +0000</pubDate></item></channel></rss>
