2024-02-29

This commit is contained in:
Gennadiy 2024-02-29 22:55:26 +03:00
parent fa2b8dd384
commit 4c6eb04cdd
13 changed files with 24 additions and 44 deletions

View file

@ -3,9 +3,6 @@
<pre> <pre>
<a href='.'>.</a> <a href='.'>.</a>
├─ <a href='jekyll_site'>jekyll_site</a> ├─ <a href='jekyll_site'>jekyll_site</a>
│ ├─ <a href='jekyll_site/_includes'>_includes</a>
│ │ ├─ <a href='jekyll_site/_includes/counters_body.html'>counters_body.html</a>
│ │ └─ <a href='jekyll_site/_includes/counters_head.html'>counters_head.html</a>
│ ├─ <a href='jekyll_site/css'>css</a>/<a href='jekyll_site/css/pomodoro5.css'>pomodoro5.css</a> │ ├─ <a href='jekyll_site/css'>css</a>/<a href='jekyll_site/css/pomodoro5.css'>pomodoro5.css</a>
│ ├─ <a href='jekyll_site/en'>en</a> │ ├─ <a href='jekyll_site/en'>en</a>
│ │ ├─ <a href='jekyll_site/en/2023'>2023</a> │ │ ├─ <a href='jekyll_site/en/2023'>2023</a>

View file

@ -1,4 +1,4 @@
© Головин Г.Г., 2021-2023 © Головин Г.Г., 2021-2024
Опубликовано под [Открытой лицензией 1.1](OPEN_LICENSE.txt) Опубликовано под [Открытой лицензией 1.1](OPEN_LICENSE.txt)
@ -8,7 +8,7 @@
--- ---
© Golovin G.G., translation from Russian, 2021-2023 © Golovin G.G., translation from Russian, 2021-2024
Published under the [Open License 1.1](OPEN_LICENSE.txt) Published under the [Open License 1.1](OPEN_LICENSE.txt)

View file

@ -6,7 +6,6 @@ rm -rf _site_older
rm -rf _site_color rm -rf _site_color
echo "Сборка старого помидора." echo "Сборка старого помидора."
mkdir -p _site_older mkdir -p _site_older
cp -r jekyll_site/_includes _site_older
cp -r jekyll_site/ru _site_older cp -r jekyll_site/ru _site_older
cp -r jekyll_site/en _site_older cp -r jekyll_site/en _site_older
cp -r jekyll_site/ru/index.md _site_older cp -r jekyll_site/ru/index.md _site_older
@ -18,7 +17,6 @@ cp -r _site ..
cd .. cd ..
echo "Сборка цветного помидора." echo "Сборка цветного помидора."
mkdir -p _site_color mkdir -p _site_color
cp -r jekyll_site/_includes _site_color
cp -r jekyll_site/ru _site_color cp -r jekyll_site/ru _site_color
cp -r jekyll_site/en _site_color cp -r jekyll_site/en _site_color
cp -r jekyll_site/ru/index.md _site_color cp -r jekyll_site/ru/index.md _site_color

View file

@ -20,6 +20,8 @@ author: "Головин Г.Г."
author_translated: "Golovin G.G." author_translated: "Golovin G.G."
# дополнение к подписи в футере для переведённых страниц # дополнение к подписи в футере для переведённых страниц
translation_caption: "translation from Russian" translation_caption: "translation from Russian"
# номер счётчика для страниц
yandex_metrika: "95699485"
# тема оформления для сборки # тема оформления для сборки
theme: color-tomato-theme theme: color-tomato-theme
# макет для сборки # макет для сборки

View file

@ -20,6 +20,8 @@ author: "Головин Г.Г."
author_translated: "Golovin G.G." author_translated: "Golovin G.G."
# дополнение к подписи в футере для переведённых страниц # дополнение к подписи в футере для переведённых страниц
translation_caption: "translation from Russian" translation_caption: "translation from Russian"
# номер счётчика для страниц
yandex_metrika: "95699485"
# тема оформления для сборки # тема оформления для сборки
theme: older-tomato-theme theme: older-tomato-theme
# макет для сборки # макет для сборки

View file

@ -1,2 +0,0 @@
<noscript><div><img src="https://mc.yandex.ru/watch/95699485" style="position:absolute; left:-9999px;" alt=""></div></noscript>
<!-- /Yandex.Metrika counter -->

View file

@ -1,15 +0,0 @@
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6JWKSPRME0"></script>
<script>
window.dataLayer=window.dataLayer||[];
function gtag(){dataLayer.push(arguments);}
gtag('js',new Date());gtag('config','G-6JWKSPRME0');
</script>
<!-- Yandex.Metrika counter -->
<script>
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();for(var j=0;j<document.scripts.length;j++){if(document.scripts[j].src===r){return;}}
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window,document,"script","https://mc.yandex.ru/metrika/tag.js","ym");
ym(95699485,"init",{clickmap:true,trackLinks:true,accurateTrackBounce:true,webvisor:true});
</script>

View file

@ -16,10 +16,10 @@ and digits with the *Comic Sans* font — we will draw a simple captcha for a we
{% include picture.html id="captcha.png" src="/img/captcha.png" alt="Drawing simple captcha" %} {% include picture.html id="captcha.png" src="/img/captcha.png" alt="Drawing simple captcha" %}
We'll also consider special characters, but we won't use them, because it will be difficult for We'll also consider special characters, but we won't use them, because it will be difficult for the
the user to guess them with such a text decoration. For example, the plus `+` is still possible user to guess special characters with such a text decoration. For example, the plus `+` is still
to guess, but the minus `-` or the underscore `_` is already with difficulty, and even if you possible to guess, but the minus `-` or the underscore `_` is already with difficulty, and even if
guess right, then to find these buttons with difficulty, especially on the phone. Therefore, you guess right, then to find these buttons with difficulty, especially on the phone. Therefore,
for captcha we'll use a combination of only capital latin letters and digits. for captcha we'll use a combination of only capital latin letters and digits.
Rendering special characters in a monospaced font: [Drawing heart in console]({{ '/en/2023/03/08/drawing-heart-in-console.html#text-as-picture-and-picture-as-text' | relative_url }}). Rendering special characters in a monospaced font: [Drawing heart in console]({{ '/en/2023/03/08/drawing-heart-in-console.html#text-as-picture-and-picture-as-text' | relative_url }}).

View file

@ -1,7 +1,7 @@
--- ---
title: Drawing heart in console title: Drawing heart in console
description: Let's write two versions of the algorithm in Java to output a heart to the console in the form of a text image let's congratulate women on the eighth of... description: Let's write two versions of the algorithm in Java to output a heart to the console in the form of a text image let's congratulate women on the eighth of...
sections: [Geometric figures,Font rendering,Text image] sections: [Geometric figures,Text image,Font rendering]
tags: [java,awt,console,rhombus,circumference,circle,text,image,font] tags: [java,awt,console,rhombus,circumference,circle,text,image,font]
canonical_url: /en/2023/03/08/drawing-heart-in-console.html canonical_url: /en/2023/03/08/drawing-heart-in-console.html
url_translated: /ru/2023/03/08/drawing-heart-in-console.html url_translated: /ru/2023/03/08/drawing-heart-in-console.html

View file

@ -58,10 +58,10 @@ Let's write an algorithm for displaying text as an image using the Java AWT libr
and font can be any, but for this example we will use a combination of uppercase latin letters and font can be any, but for this example we will use a combination of uppercase latin letters
and digits with the *Comic Sans* font — we will draw a simple captcha for a website or blog. and digits with the *Comic Sans* font — we will draw a simple captcha for a website or blog.
We'll also consider special characters, but we won't use them, because it will be difficult for We'll also consider special characters, but we won't use them, because it will be difficult for the
the user to guess them with such a text decoration. For example, the plus `+` is still possible user to guess special characters with such a text decoration. For example, the plus `+` is still
to guess, but the minus `-` or the underscore `_` is already with difficulty, and even if you possible to guess, but the minus `-` or the underscore `_` is already with difficulty, and even if
guess right, then to find these buttons with difficulty, especially on the phone. Therefore, you guess right, then to find these buttons with difficulty, especially on the phone. Therefore,
for captcha we'll use a combination of only capital latin letters and digits. for captcha we'll use a combination of only capital latin letters and digits.
{%- endcapture %} {%- endcapture %}
{%- assign articles = articles | push: article_brief %} {%- assign articles = articles | push: article_brief %}

View file

@ -15,11 +15,10 @@ date: 2023.01.03
{% include picture.html id="captcha.png" src="/img/captcha.png" alt="Рисуем простую капчу" %} {% include picture.html id="captcha.png" src="/img/captcha.png" alt="Рисуем простую капчу" %}
Спецсимволы тоже рассмотрим, но пользоваться ими не будем, потому что угадать их с таким оформлением Спецсимволы тоже рассмотрим, но использовать их не будем, потому что угадать спецсимволы пользователю
текста будет сложно для пользователя. Например, плюс `+` угадать ещё можно, а вот минус `-` или будет сложно с таким оформлением текста. Например, плюс `+` угадать ещё можно, а вот минус `-` или
нижнее подчёркивание `_` уже с трудом, и даже если угадаешь, тогда найти эти кнопки с трудом, нижнее подчёркивание `_` уже с трудом, и даже если угадаешь, тогда найти эти кнопки с трудом, особенно
особенно на телефоне. Поэтому для капчи будем использовать комбинацию только из заглавных на телефоне. Поэтому для капчи будем использовать комбинацию только из заглавных латинских букв и цифр.
латинских букв и цифр.
Отрисовка спецсимволов моноширинным шрифтом: [Рисуем сердечко в консоли]({{ '/ru/2023/03/08/drawing-heart-in-console.html#text-as-picture-and-picture-as-text' | relative_url }}). Отрисовка спецсимволов моноширинным шрифтом: [Рисуем сердечко в консоли]({{ '/ru/2023/03/08/drawing-heart-in-console.html#text-as-picture-and-picture-as-text' | relative_url }}).

View file

@ -1,7 +1,7 @@
--- ---
title: Рисуем сердечко в консоли title: Рисуем сердечко в консоли
description: Напишем два варианта алгоритма на Java для вывода сердечка в консоль в форме текстового изображения поздравим женщин с восьмым марта. Нарисуем график... description: Напишем два варианта алгоритма на Java для вывода сердечка в консоль в форме текстового изображения поздравим женщин с восьмым марта. Нарисуем график...
sections: [Геометрические фигуры,Отрисовка шрифта,Текстовое изображение] sections: [Геометрические фигуры,Текстовое изображение,Отрисовка шрифта]
tags: [java,awt,консоль,ромб,окружность,круг,текст,изображение,шрифт] tags: [java,awt,консоль,ромб,окружность,круг,текст,изображение,шрифт]
canonical_url: /ru/2023/03/08/drawing-heart-in-console.html canonical_url: /ru/2023/03/08/drawing-heart-in-console.html
url_translated: /en/2023/03/08/drawing-heart-in-console.html url_translated: /en/2023/03/08/drawing-heart-in-console.html

View file

@ -56,11 +56,10 @@ JavaScript, чтобы далеко не ходить.
Символы и шрифт могут быть любыми, но для этого примера будем использовать комбинацию заглавных Символы и шрифт могут быть любыми, но для этого примера будем использовать комбинацию заглавных
латинских букв и цифр со шрифтом *Comic Sans* — будем рисовать простую капчу для сайта или блога. латинских букв и цифр со шрифтом *Comic Sans* — будем рисовать простую капчу для сайта или блога.
Спецсимволы тоже рассмотрим, но пользоваться ими не будем, потому что угадать их с таким оформлением Спецсимволы тоже рассмотрим, но использовать их не будем, потому что угадать спецсимволы пользователю
текста будет сложно для пользователя. Например, плюс `+` угадать ещё можно, а вот минус `-` или будет сложно с таким оформлением текста. Например, плюс `+` угадать ещё можно, а вот минус `-` или
нижнее подчёркивание `_` уже с трудом, и даже если угадаешь, тогда найти эти кнопки с трудом, нижнее подчёркивание `_` уже с трудом, и даже если угадаешь, тогда найти эти кнопки с трудом, особенно
особенно на телефоне. Поэтому для капчи будем использовать комбинацию только из заглавных на телефоне. Поэтому для капчи будем использовать комбинацию только из заглавных латинских букв и цифр.
латинских букв и цифр.
{%- endcapture %} {%- endcapture %}
{%- assign articles = articles | push: article_brief %} {%- assign articles = articles | push: article_brief %}
{%- include main_page.html articles = articles -%} {%- include main_page.html articles = articles -%}