Skip to content

Instantly share code, notes, and snippets.

@starlinq
starlinq / pweave-noweb-tex.md
Last active Oct 5, 2022
Writing paper, report or presentation using Pweave noweb syntax
View pweave-noweb-tex.md

Writing paper, report or presentation using Pweave noweb syntax

As soon as you know, at least to some reasoble extent, a power of LaTeX, you can extend its capabilities even to higher level. One of possible ideas is to integrate some code into your publication according to concept of literate programming.

There are many ways to do that in practice. In first, I would like to introduce you a way of integrating a Python code into LaTeX document. In second, we will talk about tools which can help us to impelement all the ideas.

We are going to use so called 'noweb' syntax for embedding Python code into LaTeX document. The 'noweb' syntax has some distinctive advantages: no need for own 'Pweave' LaTeX package installation, after Pweave pass before LaTeX compilation - final document is a vanilla TeX document, which can be compiled into PDF on any computer with only required TeX packages and user sources.

The basic noweb code chunk is marked as:

@starlinq
starlinq / cloud.mail.ru-webdav-ubuntu-20.04.md
Last active Nov 20, 2022
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04
View cloud.mail.ru-webdav-ubuntu-20.04.md
title date
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04
2020-10-16

Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04

Инструкцию для Убунту 18.04 см. здесь.

@starlinq
starlinq / nuc7refusestoboot.md
Last active May 18, 2022
How to fix Intel NUC that refuses to boot
View nuc7refusestoboot.md

Recently I have got a problem. My NUC7 refused to boot OS. The sympthom was exact as in this posting. The power button turned to solid amber/orange color (no blinking).

I've tried holding the power button for any length between 3 to 15 seconds, no changes.

Fortunately I solved the problem following an advice from Intel NUC community. The link to possible solutions is here.

I diassembled the NUC7 to reach an opposite side of the main board (with cooling fan and CMOS battery). I disconnected the battery for 15 minutes, and then connected it again. It solved the problem with power indicator and booting.

@starlinq
starlinq / onedrive.md
Last active Nov 17, 2022
How to Sync Microsoft OneDrive with Ubuntu 18.04 and 20.04 (64 bit)
View onedrive.md
layout title tags date
post
How to Sync Microsoft OneDrive with Ubuntu 18.04 and 20.04 (64 bit)
ubuntu-18.04, ubuntu-20.04
2020-04-23

There are many instructions to syncronize your files with OneDrive cloud-based storage in Linux. However they typically address multiple Linux distributions that often causes a confusion or an use of some commands which have not been actually tested before publishing. This instruction is for Ubuntu 18.04 and 20.04 (64 bit) only.

In order to install onedrive, first you need to install some dependencies and set up git.

@starlinq
starlinq / cloud.mail.ru-webdav.md
Last active Jun 19, 2022
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 18.04
View cloud.mail.ru-webdav.md
title date
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 18.04
2019-02-06

Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 18.04

Инструкцию для Убунту 20.04 см. здесь.

@starlinq
starlinq / java-setup.md
Last active Apr 18, 2022
How to install Java JDK8 in Ubuntu 16.04
View java-setup.md

How to install Java JDK8 in Ubuntu 16.04

Let's consider a JDK8 installation using 2 different versions: default and Oracle. The default version is easiest because it is packaged with Ubuntu.

There is default Java installation called the JDK (Java Development Kit). The JDK is usually only needed if you are going to to do some software developmwent using Java or if some software requires it. The JDK does contain the JRE.

Installing the default JDK