diff --git a/_layouts/paper.html b/_layouts/paper.html
index bb2dab7..f340d81 100644
--- a/_layouts/paper.html
+++ b/_layouts/paper.html
@@ -48,7 +48,7 @@ layout: default
{{ page.description }} First install recommended minima: pkgfile is a very useful utility. Also this command will install shell, additional completion and syntax highlighting. All options are avaible here. Set history file and number of commands in cache of the current session and in the history file: In first line highlighting is turned on. Next main, brackets and pattern highlighting are turned on. Patterns are set below ( The general idea is the use single My RPROMPT shows current time, battery change and last returned code. Copy only those aliases that you need. If any alias uses application that is not installed it will leads to fail of loading of configuration file. Small useful (or maybe not) function: Here is a special function for It is recommended to set own variables in Here are path, mask of new files, editor and pager:
{% assign scrdesc = "Zsh demonstation" %}
{% assign scrname = "zshrc_demo" %}
{% include prj_scr.html %}
Here is my This package uses qbs for building, which is a bit strange IMHO. A package, which is necessary for building, is in AUR . I recommend to use git version of the package. When I asked Andrea Scarpino (who maintains KDE and Qt packages into the official repos) about qbs, he told me "we will support it in time". And I agree with him, the project seems to be a little unstable. Install dependences. I had used You may read about qbs on the link or see examples which are provides by the package. qbs uses configuration file that firstly you must create and secondly it is stored in your home directory. In theory a configuration file creating (( The first problem is I want to create a universal recipe for the building, thus we must set We must set root directory ( First find a server and desire to have sex with it. It is recommended to use Archlinux on it, but it is not necessarily - because you may create special root for Archlinux. Also you need two packages, Create directory, share it (using ftp, for example). It has two subdirectories - Updating repository may be split into the following steps: Download source tarballs from AUR: Build each package automatically: It is recommended to configure gpg-agent. Here is a function for removal packages from database and repository: You may want to create a directory, which will contain symlinks on actual packages with names, which does not contain version: Here is the scripts. Download source tarballs and run script (editing variables if it is necessary). Just add following lines to When the war of the beasts brings about the world's end Infinite in mystery is the gift of the Goddess There is no hate, only joy My friend, do you fly away now? My friend, the fates are cruel Even if the morrow is barren of promises Shell is zshrc and nothing else. You may find a small description of my settings here. It is stored here (or here). I do not use a special settings, thus I get you a list of used add-ons: Adblock plus. I do not use this patch, since I prefer less destructive methods. However, apparently all works fine, because there is no any claims. Since this patch was created in a few minutes, it removes all baloo's calls from source files (maybe I'll create a normal patch sometime). On other hand, I highly recommend to people, who do not use baloo for some reason, disable it from the settings menu (it was added it 4.13.1) or read this article. In Archlinux gwenview and kdepim (and baloo-widgets) depend on baloo currently (2014-05-18). In the version 4.13.0 kactivities depends on baloo too (and I don't know why); but this dependency was not required explicitly, so it was enough just to rebuild the package by removing baloo from the list of dependencies. It's all quite simple. Developers have taken care of the wishes of ordinary users and added a special flag: Since everything was done in a hurry, I prefer to look at the source code using grep and to find all references to baloo. Needed strings (they are links to ballo in CMakeLists.txt, baloo's function calls and header declarations) were commented (I added some fake calls to the source code). You may find the patch here (4.13.3). Download the patch, apply it to the source code and recompile kdepim. All Archlinux packages for both architectures may be found in my repository. While developing one of my projects I have wanted to add completion files. I have already tried to create these files, but I was too lazy to read some manuals about it. There are some possible ways to create zsh completion file. In this article I will describe only one of them, which provides a lot of opportunities, but does not require a lot of costs (such as regular expressions). Lets consider the example of my application, which has a part of help message that looks like this:{{ page.title }}
+{{ page.title }}
Ссылки
+ Ссылки
Links
+ Links
.zshrc and explain what it does and why it is needed. Also any comments or additions are welcome. It is a translated paper from Russian (original).
---
-Prepare
+Prepare
Shell configuration
+Shell configuration
Syntax highlighting
+Syntax highlighting
{% highlight bash %}
# highlighting
@@ -189,7 +189,7 @@ ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=yellow'
rm -rf * in the example). Also root and cursor highlighting may be turned on. Colors syntax is understandable, fg is font color, bg is background color.$PROMPT and $RPROMPT
+$PROMPT and $RPROMPT
.zshrc for root and normal user:precmd() is necessary for automatic updating. The construct $(if.true.false) is conditional statement in zsh.Aliases
+Aliases
Functions
+Functions
xrandr:Variables
+Variables
~/.zshenv. But I have everything stored in the single file.Screenshot
+Screenshot
File
+File
.zshrc.CPP using Qt library. The project is actively developed. In this paper I will say about building this package in Archlinux using Qt5 library (instead of Qt4 which is used in current AUR packages).
---
-What's wrong?
+What's wrong?
Prepare
+Prepare
namcap, so maybe I missed something:qbs settings
+qbs settings
~/.config/QtProject/qbs.conf)) looks like this:Patch for sources
+Patch for sources
clang (at least in Archlinux):Get sources
+Get sources
{% highlight bash %}
# clone repo
@@ -128,7 +128,7 @@ cd ..
patch -p0 -i qutim-qbs-1.1.patch
{% endhighlight %}
-Building
+Building
{% highlight bash %}
cd qutim
@@ -137,7 +137,7 @@ HOME=$(pwd) qbs -j $(nproc) -d ../build release profile:qutim
$HOME directory. Flag -j means number of jobs, -d means build directory, release means building type (debug, release), profile is used profile, which is described in the configuration file.Installation
+Installation
{% highlight bash %}
HOME=$(pwd) sudo qbs install -d ../build --install-root "/usr" profile:qutim
@@ -145,7 +145,7 @@ HOME=$(pwd) sudo qbs install -d ../build --install-root "/usr" profile:qutim
--install-root), because without this option the package will be installed into / (/bin and /lib).PKGBUILD
+PKGBUILD
{% highlight bash %}
pkgname=qutim-qt5-git
diff --git a/_posts/2014-03-06-site-changes.html b/_posts/2014-03-06-site-changes.html
index 80135d9..1874c44 100644
--- a/_posts/2014-03-06-site-changes.html
+++ b/_posts/2014-03-06-site-changes.html
@@ -8,7 +8,7 @@ title: Site changes
short: site-changes
description: I decided to change my site. You may find short list of changes below.
---
-The list of changes:
+The list of changes:
arcanis.name domain. Now I have a normal address, as well as all normal people have it. Small description of how to do it. Firstly, you should rent domain and activate DNS editing (it is called DNS-master for Ru-center). I pay about $30 in year. Then you should create CNAME file in your repository; this file has line with your domain name. And finally you should create two DNS records for your domain:
diff --git a/_posts/2014-03-23-creating-custom-repo.html b/_posts/2014-03-23-creating-custom-repo.html
index c3104f1..cdd7b05 100644
--- a/_posts/2014-03-23-creating-custom-repo.html
+++ b/_posts/2014-03-23-creating-custom-repo.html
@@ -8,7 +8,7 @@ title: Creating own repository
short: creating-custom-repo
description: It is a short paper devoted to creation own ArchLinux repository.
---
-Prepare
+Prepare
devtools and pacman:${REPODIR}/{i686,x86_64} are directories for repository, ${PREPAREDIR} is directory where compiled packages will be stored, ${STAGINGDIR} is one where packages will be built.A bit of theory
+A bit of theory
i686 and x86_64 - for each architecture respectively. And fill them with a set of packages.Creating PKGBUILDs
+Creating PKGBUILDs
Packages building
+Packages building
Packages signing
+Packages signing
{% highlight bash %}
# signing
@@ -146,7 +146,7 @@ fi
Creating the list of packages
+Creating the list of packages
{% highlight bash %}
# creating packages list
@@ -157,7 +157,7 @@ echo -e "${bwhite}[II] ${bblue}=>${cclose} i686 packages: \n${bwhite}${i686_PACK
echo -e "${bwhite}[II] ${bblue}=>${cclose} x86_64 packages: \n${bwhite}${x86_64_PACKAGES}${cclose}"
{% endhighlight %}
-Repository update
+Repository update
Cleaning
+Cleaning
{% highlight bash %}
# clear
@@ -215,7 +215,7 @@ cd "${STAGINGDIR}"
/usr/bin/rm -rf *
{% endhighlight %}
-Creating symlinks
+Creating symlinks
File
+File
Repository usage
+Repository usage
/etc/pacman.conf:Prologue
+Prologue
The goddess descends from the sky
Wings of light and dark spread afar
She guides us to bliss, her gift everlasting.Act I
+Act I
We seek it thus, and take to the sky
Ripples form on the water's surface
The wandering soul knows no rest.Act II
+Act II
For you are beloved by the goddess
Hero of the dawn, Healer of worlds
@@ -28,7 +28,7 @@ Dreams of the morrow hath the shattered soul
Pride is lost
Wings stripped away, the end is nigh.Act III
+Act III
To a world that abhors you and I?
All that awaits you is a somber morrow
@@ -38,7 +38,7 @@ Is the bringer of life, the gift of the goddess
Even if the morrow is barren of promises
Nothing shall forestall my return.Act IV
+Act IV
There are no dreams, no honor remains
The arrow has left, the bow of the goddess
@@ -50,7 +50,7 @@ Legend shall speak
Of sacrifice at world's end
The wind sails over the water's surface.Act V
+Act V
Nothing shall forestall my return
To become the dew that quenches the land
diff --git a/_posts/2014-05-07-my-desktop.html b/_posts/2014-05-07-my-desktop.html
index 63047af..3782832 100644
--- a/_posts/2014-05-07-my-desktop.html
+++ b/_posts/2014-05-07-my-desktop.html
@@ -8,7 +8,7 @@ title: Apps which I use
short: my-desktop
description: Here is a short paper devoted to the set of applications and extensions that I use everyday on my home computer.
---
-Applications
+Applications
-KDE settings
+KDE settings
Firefox settings
+Firefox settings
Disclaimer
+Disclaimer
Introduction
+Introduction
gwenview
+gwenview
kdepim
+kdepim
Packages
+Packages

Preamble
+Preamble
Introduction
+Introduction
It must be specified in the header that it is a completion file and application for which it will complete (may be string if this file provides completions for several applications): {% highlight bash %} @@ -68,7 +68,7 @@ esac
-As it was said above, there are some different ways to create these files. In particular they differ in the flag declaration and their further processing. In my case I will use _arguments command, which require a specific format of variables: FLAG[description]:MESSAGE:ACTION. The last two fields are not required and, as you will see below, are not needed in some cases. If you want to add two flags for an action (short and long format), then the format is a little bit complicated: {(FLAG_2)FLAG_1,(FLAG_1)FLAG_2}[description]:MESSAGE:ACTION. It should be noted that if you want to create completions for two flags but some flags have not a second format. you will should to add following line: {FLAG,FLAG}[description]:MESSAGE:ACTION. MESSAGE is a message which will be shown, ACTION is an action which will be performed after this flag. In this tutorial ACTION will be following: ->STATE.
So, according to our requirements, flags declaration will be following: @@ -86,7 +86,7 @@ _netctl_gui_arglist=(
-In my case there are two static arrays (which will not be changed): {% highlight bash %} @@ -111,7 +111,7 @@ _netctl_profiles() {
-Remember, there was something about a state above? It is stored in the variable $state and in this function we will check what it is to choose the appropriate action. At the beginning of the function we should call _arguments with our flags.
{% highlight bash %}
@@ -146,7 +146,7 @@ _netctl-gui() {
File should be places to /usr/share/zsh/site-functions/ with any name (it is recommended to set prefix to _). You may found the example in my repository.
The additional information may be found in zsh-completions repository. For example there is this How-To. And also there are a lot of examples.
diff --git a/_posts/2014-07-17-writting-own-completions-p2.html b/_posts/2014-07-17-writting-own-completions-p2.html index 7f19b3e..4a38cc3 100644 --- a/_posts/2014-07-17-writting-own-completions-p2.html +++ b/_posts/2014-07-17-writting-own-completions-p2.html @@ -8,10 +8,10 @@ title: Writting own Shell completions. Bash short: writting-own-completions-p2 description:
While developing one of my projects I have wanted to add completion files. I have already tried to create these files, but I was too lazy to read some manuals about it.
-Bash, unlike zsh, demands some dirty workarounds for completions. Cursory have Googled, I have not found a more or less normal tutorials, so it is based on the available pacman completion files in my system.
Lets consider the example of the same my application. I remind you that a part of help message is as follows:
@@ -32,7 +32,7 @@ netctl-gui [ -h | --help ] [ -e ESSID | --essid ESSID ] [ -с FILE | --config FI -Here all variables must return an array. And there no specific formats. First we declare the flags and then we describe all other variables. As I am not going to describe the functions in more detail below I remind you that _netctl_profiles() should be generated each time:
{% highlight bash %}
@@ -58,7 +58,7 @@ complete -F _netctl_gui netctl-gui
As it was said above there is no specific format, so all available flags declare by array: {% highlight bash %} @@ -79,7 +79,7 @@ _netctl_gui_arglist=(
-I just give a function that looked like this in zsh: {% highlight bash %} @@ -98,7 +98,7 @@ _netctl_profiles() {
-The variable COMPREPLY responds for completion in Bash. To keep track of the current state function _get_comp_words_by_ref must be called with parameters cur (current flag) and prev (previous flag, it is the state). Also some point for case are needed (variables want*). Function compgen is used for completion generation. A list of words is given after flag -W. (Also there is flag -F which requires a function as argument, but it gives warning for me.) The last argument is a current string to which you want to generate completion.
So, here is our function: @@ -140,5 +140,5 @@ _netctl_gui() {
-File should be places to /usr/share/bash-completion/completions/ with any name. You may found the example in my repository.
{{ post.date | date_to_string }}
diff --git a/index.html b/index.html index bfba645..0fa6d58 100644 --- a/index.html +++ b/index.html @@ -42,8 +42,8 @@ title: arcanis' homepageWelcome to my homepage, `echo $USERNAME`. You may read about me on the link. I'm sorry I don't know html/php/ruby/etc (but I know GoogleFOO! At least, I think so), therefore this page may not look very pretty. But I tried (or may be not). In the blog I will write some papers about science, programming, living in Archlinux system and may be package maintaining. Also I will create pages for some of my projects.
If you have a question or something else you may contact me. If you want to suggest a pull request or to create a bug report for these pages feel free to visit its GitHub repository and do it.
diff --git a/projects/git-etc.html b/projects/git-etc.html index 03e06bf..cca3a9a 100644 --- a/projects/git-etc.html +++ b/projects/git-etc.html @@ -13,7 +13,7 @@ links: - Archlinux AUR package --- -Simple daemon that automatically creates git repository in the given directory and creates commit at the specified time interval.
{% highlight bash %} @@ -44,23 +44,23 @@ Additional parametrs: See "man 1 ctrlconf" for more details {% endhighlight %} -Download an archive with latest version of source files.
Extract it and install the application:
@@ -78,7 +78,7 @@ sudo ./install.shIf no path is specified it will be installed to / by default.
I want note that all were tested on latest version of dependencies.
If you want to start the daemon into /etc just run
All settings are stored in /etc/git-etc.conf. After edit them you must restart daemon
| DIRECTORY | @@ -159,13 +159,13 @@ systemctl restart git-etc -
|---|
| CUSTOM | @@ -145,7 +145,7 @@ sudo make install
|---|
For edited output you must open Settings window and setup output format in lines. Label order will changed if you change slider position. HTML tags in label work normally.
NOTE You do not may set to show $cpu in swap label for example. $cpu will work only in cpu label.
Enable background: Uncheck to disable default background and set transparent one.
Vertical layout: Use vertical layout instead of horizontal one.
@@ -500,10 +500,10 @@ sudo make installAC device: File with AC information. The file (/sys/class/power_supply/AC/online by default) should contain 1 if AC is online.
Since version 1.7.0 CPU, CPU clock, memory, swap and network labels support graphical tooltip. To enable them just make the needed checkboxes a fully checked. The number of stored values can be set in the tab. Colors of graphs are configurable too.
-Custom command: NOTE this label may cause the computer freeze. Commands, which will be run for custom label. For example, wget -qO- http://ifconfig.me/ip will return external IP.
Desktop cmd: Type a command which will be run for desktop DataEngine. Default is qdbus org.kde.kwin /KWin currentDesktop.
Music player: Select one of supported music playes for player label.
-Since version 1.11.0 PyTextMonitor provides a minimalistic panel for monitoring on desktops written on C++. And yes, it looks like the same panel in Awesome.
Enable background: Uncheck to disable default background and set transparent one.
Vertical layout: Use vertical layout instead of horizontal one.
@@ -595,9 +595,9 @@ sudo make install -Daemon for starting jobs to queue of calculations. It was written as proof-of-concept.
{% highlight bash %} @@ -38,23 +38,23 @@ Parameters: -h --help - show this help and exit {% endhighlight %} -Download an archive with latest version of source files.
Extract it and install the application:
@@ -72,7 +72,7 @@ sudo ./install.shIf no path is specified it will be installed to / by default.
I want note that all were tested on latest version of dependencies.
If you want to start the daemon just run
{% highlight bash %} @@ -118,7 +118,7 @@ ExecStart=/usr/bin/queued ExecStart=/usr/bin/queued -c /path/to/new/queued.conf {% endhighlight %} -script.sh).script.sh.pr) with the job priority if it is needed.Also you may use add_queued.
All settings are stored in /etc/queued.conf. After edit them you must restart daemon
| WORKDIR | diff --git a/projects/reportabug.html b/projects/reportabug.html index 7cbbb84..26f2c5f 100644 --- a/projects/reportabug.html +++ b/projects/reportabug.html @@ -12,27 +12,27 @@ license: LGPLv3 links: --- -
|---|
| DIRECTORY | @@ -160,14 +160,14 @@ systemctl restart git-etc -
|---|
| CUSTOM | @@ -146,7 +146,7 @@ sudo make install
|---|
Для настройки внешнего вида Вы должны открыть окно настроек и установить требуемый формат. Порядок меток изменится, если Вы измените положение слайдера. В метках работают HTML теги.
ЗАМЕЧАНИЕ Вы не можете, например, заставить его показывать Вам $cpu в метка swap. $cpu будет работать только в метке cpu.
Включить фон: Снимите галочку, чтобы отключить стандартный фон виджета и установить прозрачный.
Вертикальная разметка: Использовать вертикальную разметку вместо горизонтальной.
@@ -501,10 +501,10 @@ sudo make installУстройство AC: Файл, содержащий информацию об адапторе питания. Данный файл (/sys/class/power_supply/AC/online по умолчанию) должен содержать 1, если устройство подключено.
Начиная с версии 1.7.0, поля CPU, частота CPU, память, swap, сеть поддерживают графический тултип (всплывающая подсказка). Чтобы включить их, просто сделайте требуемые чекбоксы полностью чекнутыми. Число хранимых значений может быть установленно во вкладке. Цвета графиков настраиваются тоже.
-Своя команда: ЗАМЕЧАНИЕ это поле может привести к "зависанию" компьютера. Команды, которые будут запущены для соответствующего поля. Например, wget -qO- http://ifconfig.me/ip вернет внешний IP.
Комадна для определения рабочего стола Введите команду, которая будет запущеная для desktop DataEngine. По умолчанию qdbus org.kde.kwin /KWin currentDesktop.
Музыкальный плеер: Выберете один из поддерживаемых музыкальных плееров для соответствующего поля.
-Начиная с версии 1.11.0 PyTextMonitor предоставляет минималистичную панель для мониторинга за рабочими столами, написанный на C++. И да, он выглядит, как аналогичная панель в Awesome.
Включить фон: Снимите галочку, чтобы отключить стандартный фон виджета и установить прозрачный.
Вертикальная разметка: Использовать вертикальную разметку вместо горизонтальной.
@@ -596,9 +596,9 @@ sudo make install -Демон для запуска задач в очередь вычислений. Был создан, как proof-of-concept.
{% highlight bash %} @@ -39,23 +39,23 @@ Parameters: -h --help - show this help and exit {% endhighlight %} -Скачайте архив с актуальной версией исходных файлов.
Извлеките из него файлы и установите приложение:
@@ -73,7 +73,7 @@ sudo ./install.shЕсли путь не указан, пакет будет установлен в /.
Все было протестировано на последних версиях зависимостей.
Если Вы хотите запустить демон, просто запустите
{% highlight bash %} @@ -119,7 +119,7 @@ ExecStart=/usr/bin/queued ExecStart=/usr/bin/queued -c /path/to/new/queued.conf {% endhighlight %} -script.sh).script.sh.pr) для данной задачи, если это необходимо.Также Вы можете воспользоваться add_queued.
Все настройки хранятся в /etc/queued.conf. После редактирования, Вы должны перезапустить демон
| WORKDIR | diff --git a/ru/projects/reportabug.html b/ru/projects/reportabug.html index 13778dd..44ab291 100644 --- a/ru/projects/reportabug.html +++ b/ru/projects/reportabug.html @@ -13,27 +13,27 @@ license: LGPLv3 links: --- -
|---|