Skip to content

Instantly share code, notes, and snippets.

@starlinq
starlinq / pweave-noweb-tex.md
Last active October 5, 2022 05:41
Writing paper, report or presentation using Pweave noweb syntax

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 September 3, 2024 14:56
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04
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 September 6, 2024 13:25
How to fix Intel NUC that refuses to boot

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 November 2, 2024 12:26
How to Sync Microsoft OneDrive with Ubuntu 18.04 and 20.04 (64 bit)
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 October 8, 2024 22:40
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 18.04
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 January 27, 2024 19:11
How to install Java JDK8 in Ubuntu 16.04

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