Yaoyao's Blog

  • Home

  • Archives

  • Categories

  • Tags

  • Search

How to block updates to macOS by terminal

Posted on 28 Mar 2020 | In Technology | | Views:

Open the terminal, and check macOS updates with the following command:

sudo /usr/sbin/softwareupdate -l

You may see the following information in the terminal:

Software Update Tool

Finding available software
Software Update found the following new or updated software:
* Label: macOS Catalina 10.15.4 Update-
Title: macOS Catalina 10.15.4 Update, Version: , Size: 4937259K, Recommended: YES, Action: restart,

Read more »

Meta-transfer Learning for Few-shot Learning

Posted on 3 May 2019 | In Academic | | Views:

Abstract

Meta-learning has been proposed as a framework to address the challenging few-shot learning setting. The key idea is to leverage a large number of similar few-shot tasks in order to learn how to adapt a base-learner to a new task for which only a few labeled samples are available. As deep neural networks (DNNs) tend to overfit using a few samples only, meta-learning typically uses shallow neural networks (SNNs), thus limiting its effectiveness. In this paper we propose a novel few-shot learning method called meta-transfer learning (MTL) which learns to adapt a deep NN for few shot learning tasks. Specifically, meta refers to training multiple tasks, and transfer is achieved by learning scaling and shifting functions of DNN weights for each task. In addition, we introduce the hard task (HT) meta-batch scheme as an effective learning curriculum for MTL. We conduct experiments using (5-class, 1-shot) and (5-class, 5-shot) recognition tasks on two challenging few-shot learning benchmarks: miniImageNet and Fewshot-CIFAR100. Extensive comparisons to related works validate that our meta-transfer learning approach trained with the proposed HT meta-batch scheme achieves top performance. An ablation study also shows that both components contribute to fast convergence and high accuracy.

Read more »

How to use the tensorboard on a remote server

Posted on 7 Mar 2019 | In Academic | | Views:

Tensorboard is a very convenient tools for tensorflow, whihc allows us to view the summaries of the running experiments in the browser. However, for the people who study the DNNs, it is very common to run the experiment on a remote server with GPUs. So how could we use tensorboard on our own PC to monitor the experiment on the server?

Read more »

Debian用户添加sudo权限

Posted on 14 Feb 2019 | In Technology | | Views:

启动root用户:

su

修改 /etc/sudoers 文件属性为可写:

chmod +w /etc/sudoers

编辑 /etc/sudoers 文件,加入如下内容:

root ALL=(ALL) ALL
user ALL=(ALL) ALL 用户user执行sudo时需要密码
#user ALL=NOPASSWD:ALL 用户user执行sudo时不需要密码
Read more »

Debian/Ubuntu 设置硬盘开机自动挂载

Posted on 14 Feb 2019 | In Technology | | Views:

查看硬盘信息:

sudo fdisk -l

格式化硬盘为ext4格式:

sudo mkfs.ext4 /dev/sda1

查看硬盘UUID:

sudo blkid
Read more »

关于Markdown的一些技巧(转)

Posted on 26 Jan 2019 | In Technology | | Views:

本文转自:https://mazhuang.org/2017/09/01/markdown-odd-skills/

自从几年前开始在 GitHub 玩耍,接触到 Markdown 之后,就一发不可收拾,在各种文档编辑上,有条件用 Markdown 的尽量用,不能用的创造条件也要用——README、博客、公众号、接口文档等等全都是,比如当前这篇文章就是用 Markdown 编辑而成。

这几年也发现越来越多的网站和程序提供了对 Markdown 的支持,从最初接触的 GitHub、Jekyll,到简书、掘金、CSDN 等等,由此也从别人做得好的文档中,学到了一些『奇技淫巧』,所以本文不是对 Markdown 基础语法的介绍,而是一些相对高级、能将 Markdown 玩出更多花样的小技巧。

注:如下技巧大多是利用 Markdown 兼容部分 HTML 标签的特性来完成,不一定在所有网站和软件里都完全支持,主要以 GitHub 支持为准。

在表格单元格里换行

借助于 HTML 里的 <br /> 实现。

示例代码:

| Header1 | Header2                          |
|---------|----------------------------------|
| item 1 | 1. one<br />2. two<br />3. three |

示例效果:

Header1 Header2
item 1 1. one 2. two 3. three
Read more »

博客园自定义样式修改标签页的icon图标(转)

Posted on 25 Jan 2019 | In Technology | | Views:

有没有发现大多数的博客园标签右上角都是一个小矿工,千篇一律没有什么特色,想不想设置一个像我一样的个性化icon图标呢?

按照以下四步你也可以实现自定义标签图标。

第一步:挑挑拣拣

选一张icon图标(尺寸不要太大)不然加载会很慢

如果想通过自己的图片生成favicon,可以使用这个网站:

Favicon Generator. For real.

Read more »

使用 GPG 加密 GitHub commits (转)

Posted on 18 Jan 2019 | In Technology | | Views:

1. 背景

GnuPG(简称 GPG),它是目前最流行、最好用的开源加密工具之一。

要了解什么是GPG,就要先了解 PGP。

1991年,程序员 Phil Zimmermann 开发了加密软件PGP。这个软件非常好用,迅速流传开来,成了许多程序员的必备工具。但是,它是商业软件,不能自由使用。所以,自由软件基金会决定,开发一个PGP的替代品,取名为GnuPG。这就是GPG的由来。

GPG 有许多用途,比如对文件,邮件的加密。而本文要说的是,如何使用 GPG 来加密 Github Commits。

在 Github 上查看一些项目的 Commits 时,会发现「This commit was signed with a verified signature.」字样,具体来说,就是下图示例那样:

image

Read more »

我的博客园css模板美化的经验分享

Posted on 6 Jan 2019 | In Technology | | Views:

作为一个搞CS的人,如果你只是想找个地方发博客,那么博客园还是个不错的平台。虽然现在的自建博客工具多的不得了,动态的有WordPress、Ghost,静态的有hexo、jekyll等等;虽然对于一个码农而言捣鼓这些东西也算不上太难,不过终归是要浪费时间的。所以本着一切从简的原则,我也很支持从博客园这样现成的平台上写博客。

博客园的优点很多,比如支持css、支持Markdown、支持页首html代码,也支持侧边栏JS代码。缺点当然也不少,后台界面样式古板,相对于自己建站能设置的选项还是太少,而且也不支持绑定自有域名。不过总体上来说,我还是非常喜欢博客园的,这也是我所使用的第一个技术博客平台。

使用博客园是为了从简,但是博客园提供的官方模板确实不够美观。作为一个码农,在这些模板上发表技术博客,显得low了一点,对不起自己的专业,所以这里我就介绍一下我折腾博客园美化的经历。如果你觉得我的博客园设置的还算美观,按照接下来的教程一步步来,就可以做出一样的效果。

我的博客园博客:https://www.cnblogs.com/yaoyaoliu/

Read more »

使用hexo+GitHub搭建个人博客的心得(含教程)

Posted on 5 Jan 2019 | In Technology | | Views:

前言

对于广大CS专业的学生和码农,找一个地方写博客,记录一些编程、配置环境、阅读论文的心得体会是一个很常见的习惯。当然想搭建个人博客,就需要找个靠谱的平台,主要就是以下的两种方式:

  • 使用网站提供的博客平台,例如国内的CSDN、博客园;国外的Blogger、Wordpress
  • 自己建站,发布到自己的服务器上,或者发布到GitHub、GitLab、Bitbucket等支持静态网页发布的git平台
Read more »
12
Yaoyao Liu

Yaoyao Liu

18 posts
2 categories
16 tags
RSS
Creative Commons
Netlify
Copyright © 2017 - 2021 Yaoyao Liu
Powered by Hexo and NexT