<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Tzero's blog]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Return_0_</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Return_0_]]></copyright><item><title><![CDATA[Linux误删/var/lib/dpkg/info]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/117301216</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/117301216</guid><author>Return_0_</author><pubDate>Wed, 26 May 2021 18:38:50 +0800</pubDate><description><![CDATA[https://www.cnblogs.com/zgq123456/p/10238395.html

今晚在ubuntu上安装一个软件时，出现这样的错误提示：
E: Sub-process /usr/bin/dpkg returned an error code (1)
然后在网上找了查找问题原因及解决方法，很多都说是因为系统中的某个软件有问题，而解决方法好像有不少，但是否奏效就不得而知了。
我试了下面的这个比较好操作的方法。
sudo dpkg --configure -a
sudo apt-get u.]]></description><category></category></item><item><title><![CDATA[使新版Edge支持iCloud同步]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/110420092</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/110420092</guid><author>Return_0_</author><pubDate>Tue, 01 Dec 2020 08:44:12 +0800</pubDate><description><![CDATA[使新版Edge支持iCloud同步
导入注册表文件(xx.reg)
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe]
@="C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
"Path"="C:\\Progra]]></description><category></category></item><item><title><![CDATA[Dell Inspiron 3670装机记录]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/109749626</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/109749626</guid><author>Return_0_</author><pubDate>Tue, 17 Nov 2020 19:02:58 +0800</pubDate><description><![CDATA[Windows10
选择版本cn_windows_10_consumer_edition_version_1803

高版本无法直接安装！
该主机主板仅支持legacy boot！

Ubuntu
选择18.04

]]></description><category></category></item><item><title><![CDATA[用VSCode编写LaTeX]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/109563752</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/109563752</guid><author>Return_0_</author><pubDate>Sun, 08 Nov 2020 19:56:09 +0800</pubDate><description><![CDATA[转载自 https://zhuanlan.zhihu.com/p/43133114

]]></description><category></category></item><item><title><![CDATA[用GNU Radio写一个block]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/108996762</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/108996762</guid><author>Return_0_</author><pubDate>Sat, 10 Oct 2020 14:42:32 +0800</pubDate><description><![CDATA[How to write a block with GNU Radio

Construct OTT folder

gr_modtool newmod tutorial


Add cpp block

gr_modtool add xxx



Modify files


makexml


gr_modtool makexml square_ff


Install block

mkdir build
cd build
make
sudo make install
sudo ldconfig


]]></description><category></category></item><item><title><![CDATA[Ubuntu1804安装UHD和gnuradio踩坑记录]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/108863396</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/108863396</guid><author>Return_0_</author><pubDate>Wed, 30 Sep 2020 14:36:37 +0800</pubDate><description><![CDATA[Ubuntu1804安装UHD和gnuradio
方法1.直接安装

此方法不推荐，因为无法修改源代码，对后续开发有影响

sudo apt-get install gnuradio

方法2.脚本安装
wget http://www.sbrac.org/files/build-gnuradio &amp;&amp; sudo chmod a+x build-gnuradio &amp;&amp; ./build-gnuradio

方法3.下载编译
安装依赖
sudo apt-get -y install]]></description><category></category></item><item><title><![CDATA[解决虚拟机下git出现Could not resolve proxy: https的错误]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/108862273</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/108862273</guid><author>Return_0_</author><pubDate>Tue, 29 Sep 2020 10:05:32 +0800</pubDate><description><![CDATA[解决虚拟机下git出现Could not resolve proxy: https的错误
一、环境
VMWare+Ubuntu1604
二、解决方法
方法1
查看是否使用git代理
git config --global http.proxy 
git config --global https.proxy 

若有，则unset
git config --global --unset http.proxy
git config --global --unset https.proxy

方法2
查询系统代]]></description><category></category></item><item><title><![CDATA[Ubuntu1604安装Docker记录]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/108735423</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/108735423</guid><author>Return_0_</author><pubDate>Tue, 22 Sep 2020 16:42:32 +0800</pubDate><description><![CDATA[Ubuntu1604安装Docker

For document only.

Installation
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

sudo curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repositor]]></description><category></category></item><item><title><![CDATA[(Leetcode-Python) - 数据结构：链表]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107908673</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107908673</guid><author>Return_0_</author><pubDate>Mon, 10 Aug 2020 11:58:00 +0800</pubDate><description><![CDATA[数据结构：链表
常用方法


迭代法


递归法


双指针法


快慢指针法


头插法


堆栈法


例题
1. 找出两个链表的交点

160. Intersection of Two Linked Lists

class Solution(object):
    def getIntersectionNode(self, headA: ListNode, headB: ListNode) -&gt; ListNode:
        """
        :type head1, head1]]></description><category></category></item><item><title><![CDATA[(Python Primary) - 廖雪峰Python3 - 14.常用内建模块]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107485969</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107485969</guid><author>Return_0_</author><pubDate>Tue, 21 Jul 2020 12:07:29 +0800</pubDate><description><![CDATA[14.常用内建模块
14.1 datetime
from datetime import datetime

获取当前日期时间
&gt;&gt;&gt; now = datetime.now()	# 获取当前datetime，返回datetime类型
&gt;&gt;&gt; print(now)
2015-05-18 16:28:07.198690
&gt;&gt;&gt; print(type(now))
&lt;class 'datetime.datetime'&gt;

获取指定日期和时间
dt =]]></description><category></category></item><item><title><![CDATA[(Python Primary) - 廖雪峰Python3 - 13.正则表达式]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107177594</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107177594</guid><author>Return_0_</author><pubDate>Tue, 07 Jul 2020 11:20:15 +0800</pubDate><description><![CDATA[13.正则表达式


用于匹配字符串


\d可以匹配一个数字，\w可以匹配一个字母或数字，用*表示任意个字符（包括0个），用+表示至少一个字符，用?表示0个或1个字符，用{n}表示n个字符，用{n,m}表示n-m个字符


e.g.\d{3}\s+\d{3,8}。
我们来从左到右解读一下：

\d{3}表示匹配3个数字，例如'010'；
\s可以匹配一个空格（也包括Tab等空白符），所以\s+表示至少有一个空格，例如匹配' '，' '等；
\d{3,8}表示3-8个数字，例如'1234567'。

综合起]]></description><category></category></item><item><title><![CDATA[(Python Primary) - 廖雪峰Python3 - 12.进程和线程]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107164463</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107164463</guid><author>Return_0_</author><pubDate>Mon, 06 Jul 2020 17:57:51 +0800</pubDate><description><![CDATA[12.进程和线程
多任务的三种方式

多进程模式；
多线程模式；
多进程+多线程模式。

12.1多进程 multiprocessing
12.1.1fork

Unix/Linux系统中，fork()函数调用一次在子进程返回0，在父进程返回子进程ID。（父进程可fork出多个子进程，记下其ID，子进程调用getppid()就可以拿到父进程ID

import os

print('Process (%s) start...' % os.getpid())
# Only works on Unix/Linu]]></description><category></category></item><item><title><![CDATA[(Python Primary) - 廖雪峰Python3 - 11.IO编程]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107142788</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107142788</guid><author>Return_0_</author><pubDate>Sun, 05 Jul 2020 18:28:57 +0800</pubDate><description><![CDATA[11.IO编程

本章IO编程都是同步IO

11.1文件读写
11.1.1读文件
&gt;&gt;&gt; f = open('/Users/michael/test.txt', 'r')	# r表示读，若不存在则抛出IOError


如果打开成功，则可以调用read()函数一次性读取全部文件内容，用一个str对象表示

&gt;&gt;&gt; f.read()


最后调用close()

&gt;&gt;&gt; f.close()


结合try...catch语句/with语句

with o]]></description><category></category></item><item><title><![CDATA[(Python Primary) - 廖雪峰Python3 - 10.错误、调试和测试]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107141027</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107141027</guid><author>Return_0_</author><pubDate>Sun, 05 Jul 2020 16:45:43 +0800</pubDate><description><![CDATA[10.错误、调试和测试
10.1错误处理

try...catch机制

try:
    print('try...')
    r = 10 / 0
    print('result:', r)
except ZeroDivisionError as e:
    print('except:', e)
else:
    print('no error!')		#如果没有错误发生
finally:
    print('finally...')
print('END')



所有的错误类型都继承自]]></description><category></category></item><item><title><![CDATA[(Python Primary) - 廖雪峰Python3 - 9.面向对象高级编程]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107115834</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107115834</guid><author>Return_0_</author><pubDate>Fri, 03 Jul 2020 21:39:24 +0800</pubDate><description><![CDATA[9.面向对象高级编程
9.1使用__slots__

在动态语言中，实例可以轻松绑定一个属性，但直接绑定一个方法，对另一个实例是不起作用的

&gt;&gt;&gt; def set_age(self, age): # 定义一个函数作为实例方法
...     self.age = age
...
&gt;&gt;&gt; from types import MethodType
&gt;&gt;&gt; s.set_age = MethodType(set_age, s) # 给实例绑定一个方法
&gt;]]></description><category></category></item><item><title><![CDATA[(Python Primary) - 廖雪峰Python3 - 8.面向对象编程]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107107768</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107107768</guid><author>Return_0_</author><pubDate>Fri, 03 Jul 2020 16:03:21 +0800</pubDate><description><![CDATA[8.面向对象编程
8.1类和实例

__init__用于给类绑定属性

class Student(object):

    def __init__(self, name, score):
        self.name = name
        self.score = score
    def print_score(self):
        print('%s: %s' % (self.name, self.score))

8.2访问限制

名称前加__就变成了私有变量，只有内部可]]></description><category></category></item><item><title><![CDATA[(Python Primary) - 廖雪峰Python3 - 7.模块]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107102441</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107102441</guid><author>Return_0_</author><pubDate>Fri, 03 Jul 2020 11:36:42 +0800</pubDate><description><![CDATA[7.模块
7.0介绍

模块mycompany的结构如下，注意不可与python自带模块名称冲突

mycompany
├─ __init__.py
├─ abc.py
└─ xyz.py

7.1使用模块
7.1.1 自主编写一个hello模块
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

' a test module '

__author__ = 'Michael Liao'

import sys

def test():
    args = s]]></description><category></category></item><item><title><![CDATA[(Python Primary) - 廖雪峰Python3 - 6.函数式编程]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107058721</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107058721</guid><author>Return_0_</author><pubDate>Wed, 01 Jul 2020 10:53:37 +0800</pubDate><description><![CDATA[6.函数式编程
6.1高阶函数Higher-order function

简单高阶函数：传入函数

def add(x, y, f):
    return f(x) + f(y)

6.1.1 map/reduce

map(function, Iterable) -&gt; Iterator
e.g. 要把函数f(x)=x^2作用在一个list上

def f(x)
	return x ** 2
r=map(f, [1, 2, 3, 4])
list(r)


reduce(function, seq]]></description><category></category></item><item><title><![CDATA[(Python Primary) - 廖雪峰Python3 - 5.高级特性]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/107051106</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/107051106</guid><author>Return_0_</author><pubDate>Tue, 30 Jun 2020 21:33:15 +0800</pubDate><description><![CDATA[5. 高级特性
5.1 切片（Slice）


L[m:n]表示取索引为m到n-1的三个元素，若m=0则可省略为L[:n]


L[:10:2]表示前10个元素，每两个取一个


L[::5]表示所有元素每5个取一个


L[:]可复制一个list


L[::-1]表示list翻转


list、tuple、字符串都可用切片的方法


5.2 迭代

采用for...in来完成遍历迭代
dict的迭代

for key in dict迭代的是key
for value in dict.values()迭代]]></description><category></category></item><item><title><![CDATA[(David Silver深度强化学习) - Lecture2 - Markov Decision Processes]]></title><link>https://blog.youkuaiyun.com/Return_0_/article/details/106985630</link><guid>https://blog.youkuaiyun.com/Return_0_/article/details/106985630</guid><author>Return_0_</author><pubDate>Sat, 27 Jun 2020 17:47:59 +0800</pubDate><description><![CDATA[David Silver deep reinforcement learning course in 2019. For document and discussion.

Lecture2: Markov Decision Processes
Ⅰ Markov Processes (Markov Chain)
1.Introduction to MDPs

MDP描述的是RL中的环境(environment)，且该环境是fully observable
MDP中的state完全描述了这个过程
几乎所有的.]]></description><category></category></item></channel></rss>