Configuring VSCode to work with Minted (LaTeX), Conflict packages

This blog documents a latex fix for users who are using VSCode and Minted package.

Problem

I’m using VSCode to write my latex documents, and I’m using the minted package to highlight my code. However, I found that the minted package is not working. The error that I got was

1
2
3
\usepackage{enumitem}
Package minted: You must invoke LaTeX with the -shell-escape flag.
LaTeX

It works fine on overleaf. But I personally like to work on vscode for additional vscode extensions and shortcuts.

Link for reading of the fix: https://leportella.com/minted-vscode/

Thanks for reading

Command nvidia-smi not found on my linux machine

This blog documents a strange thing that strikes me, and how I fixed it.

Problem

While I’m doing CS 285 homework, my own remote server ssh stopped its remote connection, caused me to go back home to check. After rebooting my ubuntu machine, I found that nvidia-smi is not found. I made some attempts, but it seems to not be an easy fix.

Attempts

https://blog.csdn.net/fovever_/article/details/114015983

https://blog.csdn.net/weixin_39379635/article/details/130271608?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-1-130271608-blog-122925528.235^v38^pc_relevant_yljh&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-1-130271608-blog-122925528.235^v38^pc_relevant_yljh&utm_relevant_index=2

There’s something that relates to the kernel, I tried to reinstall the kernel, but it didn’t work.

Solution

https://blog.csdn.net/weixin_43670251/article/details/124923778?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-1-124923778-blog-130271608.235^v38^pc_relevant_yljh&spm=1001.2101.3001.4242.2&utm_relevant_index=4

It’s related to grub.

Thanks for being a part of my memory.

visual-studio-align-words-tricks

In Visual Studio Code, you can wrap lines of code or text in a few different ways to make them easier to read. Here are the common methods to wrap lines in Visual Studio Code:

  1. Word Wrap:
    • Visual Studio Code has a “Word Wrap” feature that allows lines to wrap at the viewport’s edge. To enable it, go to the menu:
      • View > Toggle Word Wrap
    • You can also use the keyboard shortcut Alt + Z (Windows/Linux) or Option + Z (macOS) to toggle word wrap.

https://www.youtube.com/watch?v=ZnpRcl1TeIs

科目一 | 上海

94/100 一遍 -> PASS

科目一 Resources

Sources helped me prep 科目一 in Shanghai, China (C2 licence in China).
大部分除了标志的考点这边总结的很全

交通标志的 source(全的

Preparation Process (about 3~4 whole days)

我精简 500 道(一开始刷要多理解理解,会比较慢)完,然后模考了 10 次(三天每天 3 套,然后总结总结,后面很多题目重复的多了就变快很多)。上海题和新规题多看(我把上海题刷完了,没多少道,比较 tricky)

CS 189 Intro to Learning Theory

CS 189 Learning Theory blog

This is a blog post for CS 189 lecture on Learning Theory, contents are organized in the flow of the lecture. This blog isn’t the final version yet.

A range space is a pair $P$, $H$:

$P$ is set of all possible test/training points (can be infinite)

$H$ is a hypothesis class (set the boundary of legal classifiers), a set of hypotheses (classifiers)

  • e.g. all the linear classifiers
Read more

Latex aligning equations

latex equation align

Daily tip of new latex skills.

I was search for ways to align multiple parts of an equation, and found this post on stackexchange.

The align environment is the vanilla way to align equations, and the & symbol is used to specify the point of alignment.

Read more

Build a deep-learning workstation

Build a deep-learning workstation

Motivation:
not rely on any lab’s computing resource, learn & experiment with public deep learning repos. I can’t replicate the results on my XPS 15 RTX 3050TI 4GB GPU, which forces me to look at other resources. Looking at the pricing and setup needed to work with cloud computing, I found better returns by building my own deep-learning workstation. Trying and replicating the results of these repos are absolutely important for learning and creativity. Crazy GPU Speed isn’t my focus at the moment, but large GPU mem is the key. 3060 seems to be the most price efficient one in the market at this point.


Read more

template post with syntax

Source
This is a page that showcases all the syntax that are supported by fluid and hexo.

Index image in home page

1
2
3
4
5
6
7
8
---
title: 文章标题
tags: [Hexo, Fluid]
index_img: /img/example.jpg
date: 2019-10-10 10:00:00
---

以下是文章内容
Read more
Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×