Franc Gossin Blog

Franc Gossin Blog by Franc Gossin is licensed under CC BY-NC-ND 4.0

2025-07-25

The Usage of the Volume of Lead in Pencil


$\tan{\theta}={{r}\over{l}}={{\Delta r}\over{\Delta l}}$


The used volume $V_1 = {1 \over 3}\pi {{\Delta l}^{3}} \tan ^ {2} \theta$.

The removed volume $V_2 = \pi \Delta l^3 \tan ^ 2 \theta + {1 \over 3} \pi l ^ 3 \tan ^ 2 \theta - {1 \over 3} \pi \Delta l^3 \tan ^ 2 \theta - {1 \over 3} \pi l^3 \tan ^ 2 \theta \\ = {2\over 3}\pi \Delta l^3 \tan ^2 \theta$

${{\Delta V_2}\over{\Delta V_1}} = 2$

${{\Delta V_2}\over{\Delta V_1 + \Delta V_2}} = {2\over 3}$

${{\Delta V_1}\over{\Delta V_1 + \Delta V_2}} = {2\over 3}$

This shows that only $1\over 3$ of pencil is used.

2025-06-09

Install v2ray on VPS in China Mainland

For those Chinese who often travel abroad, it would be better to have a VPN server that routes the internet traffic back to China. For example, some music or government website will reject requests outside China.

2025-04-02

Removing Vivo System App Causes Problems

These apps can be successfully removed with

pm uninstall -k user 0

e in Python function

Here is a function written in Python. It is used to randomly choose at least one from a list.

import random
import math
def choose_at_least_one(list_items):
    chosen_items = [i for i in list_items if random.random() <= (1/len(list_items))]
    if len(chosen_items) == 0:
        return choose_at_least_one(list_items)
    else:
        return chosen_items

2025-03-24

Making Anki card by yourself

Making Anki card by yourself is usually a very annoying process. However with some programming technology you can make it faster and easier.

2025-03-23

Mailvelope setup on Linux Mint

Unlike the easy installation process on Windows platform, on linux to make Mailvelope use GnuPG you have to follow the official instructions.

2024-11-18

Use Windows 7 in 2024 as a nerd

As we all know, Microsoft no longer has ended its extended support to Windows 7 since 2020. However I have a low-end laptop with i3-6006U, which is not fluent when running Windows 10. I have tried several linux distributions but none of them works perfectly. So I turned to Windows 7. Although the end of support of this system means that the potential safety and privacy issues may occur, I have no other choice.

2024-11-08

Single-chip microcomputer | Use buzzer play music

The buzzer in the microcomputer can be controlled by setting its value repeatedly. However if we want to make it beep in a certain frequency, we need to do something more.