<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[IceTeaSet的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/IceTeaSet</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; IceTeaSet]]></copyright><item><title><![CDATA[Google Kickstart Round C 2018 Problem C. Kickstart Alarm]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/80472573</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/80472573</guid><author>IceTeaSet</author><pubDate>Sun, 27 May 2018 21:04:55 +0800</pubDate><description><![CDATA[Problem C. Kickstart Alarm

题目传送门： 
https://code.google.com/codejam/contest/4384486/dashboard#s=p2

题目理解有点麻烦，经过一些思考可以得到： 
ans[i] = a[i] * (n-i) * (1 ~ i+1的等比数列之和），  0 &amp;amp;lt;= i &amp;amp;lt; n

其中ans[i]表示所有与a[i]...]]></description><category></category></item><item><title><![CDATA[Google Kickstart Round C 2018 Problem B. Fairies and Witches]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/80472201</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/80472201</guid><author>IceTeaSet</author><pubDate>Sun, 27 May 2018 20:27:48 +0800</pubDate><description><![CDATA[Problem B. Fairies and Witches

题目传送门： 
https://code.google.com/codejam/contest/4384486/dashboard#s=p1

题目意思理解起来有点麻烦，简单说就是要选n条边(n&amp;gt;=3)，边与边之间不能有共同端点，并且要能组成一个面积不为0的多边形（即最长边的值小于其他所有边的和），求一共有多少种不同的选择方案。...]]></description><category></category></item><item><title><![CDATA[Google Kickstart Round C 2018 Problem A. Planet Distance]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/80472121</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/80472121</guid><author>IceTeaSet</author><pubDate>Sun, 27 May 2018 20:18:44 +0800</pubDate><description><![CDATA[Problem A. Planet Distance 
题目传送门：https://code.google.com/codejam/contest/4384486/dashboard#s=p0

我的做法是先用Kahn算法找出环中所有结点。然后用一遍BFS计算所有点到环的最近距离。

参考代码：

int main()
{
    int no;
    cin&amp;gt;&amp;gt;no;
    fo...]]></description><category></category></item><item><title><![CDATA[【C++细节】char**赋值给const char**]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/78288307</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/78288307</guid><author>IceTeaSet</author><pubDate>Thu, 19 Oct 2017 19:11:35 +0800</pubDate><description><![CDATA[平时经常把char*赋值给const char* 
于是想当然的以为可以把char**赋值给const char** 
结果报错了：error: cannot initialize a parameter of type 'const char **' with an rvalue of type 'char **'
看以下例子：int main() {
  const char c = 'c';]]></description><category></category></item><item><title><![CDATA[【栈/DP】LeetCode 32. Longest Valid Parentheses 八种解法]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/78113020</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/78113020</guid><author>IceTeaSet</author><pubDate>Wed, 27 Sep 2017 15:05:03 +0800</pubDate><description><![CDATA[Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.For “(()”, the longest valid parentheses substring is “()”, which has]]></description><category></category></item><item><title><![CDATA[配置OpenCV3 + Python3的简易方法（macOS）]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/76178652</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/76178652</guid><author>IceTeaSet</author><pubDate>Thu, 27 Jul 2017 11:38:56 +0800</pubDate><description><![CDATA[我的电脑本来是有用CMake安装的OpenCV3的，以及系统自带的python2.x，但是现在想用python3+OpenCV3。
安装Python3 
brew install python3 
没有homebrew的话请自行安装
不要使用pip3 
一开始我使用 
pip3 install numpy 
pip3 install opencv-python 
虽然成功了，但是不能使用imshow]]></description><category></category></item><item><title><![CDATA[【Git零基础教程】（8）Reset]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/75929143</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/75929143</guid><author>IceTeaSet</author><pubDate>Sun, 23 Jul 2017 16:50:04 +0800</pubDate><description><![CDATA[git reset命令用于将文件还原到历史版本。前面有提到过，一个Git工程可以大致分为三部分：现在我们用一个实例看看git reset命令如何对它们产生影响。建立文件： 
git add： 
git commit： 
edit： 
git add： 
git  commit： 
省略一些重复步骤后我们得到： 
git  reset有三种模式：–soft、–mixed、–hard假如我们进行git]]></description><category></category></item><item><title><![CDATA[【Git零基础教程】（7）改写历史（Rewriting History）]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/75912051</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/75912051</guid><author>IceTeaSet</author><pubDate>Sun, 23 Jul 2017 15:30:55 +0800</pubDate><description><![CDATA[第一种最简单的是使用git  commit  --amend它的作用是使本次commit和上一次commit合并在一块。也可以用它只修改上一次提交的log。用上一章我们讲过的rebase可以实现很多需求：git  rebase  -i  HEAD~3先不考虑-i，我们知道git rebase <branch>的意思是将当前分支rebase到<branch>，它其实相当于git  rebase  <b]]></description><category></category></item><item><title><![CDATA[【Git零基础教程】（6）Rebase]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/75909563</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/75909563</guid><author>IceTeaSet</author><pubDate>Sun, 23 Jul 2017 14:20:09 +0800</pubDate><description><![CDATA[Rebase的作用与之前提到的merge相似。它的作用是将一个分支的commits加到另一个分支上去。比如我们有： 
如果使用merge，结果如下图所示： 
而如果使用rebase：git  checkout  experiment
git  rebase  master
则结果如下图所示： 
C4的改动内容会在C3上进行重做，产生C4’，而C4会被“删除”（C4与C4’的hash值并不同） 
这时]]></description><category></category></item><item><title><![CDATA[【Git零基础教程】（5）Remote]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/75908278</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/75908278</guid><author>IceTeaSet</author><pubDate>Sun, 23 Jul 2017 14:06:29 +0800</pubDate><description><![CDATA[当你不仅仅是在本地单人工作时，就需要使用git remote、push、pull等命令来实现多人协作。当你使用clone命令从某个网络地址下载得到一个本地的git仓库： 
git  clone  <url> 
或者 
git  remote  add  <shortname>  <url> 
 git  pull <shortname>网络仓库的结构和你的本地仓库结构分别如下图所示： 
然后当你在本]]></description><category></category></item><item><title><![CDATA[【Git零基础教程】（4）分支]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/75647233</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/75647233</guid><author>IceTeaSet</author><pubDate>Fri, 21 Jul 2017 15:25:40 +0800</pubDate><description><![CDATA[分支在Git中是最常用的之一。顾名思义，分支们通常构成一个树型，树根通常是我们熟悉的master分支。显示当前本地的所有分支： 
git  branch新建一个分支，取名叫testing： 
git  branch  testing图中的每个5位编码代表一个commit，即它的hash码的前五位。HEAD相当于一个指针，指示当前所处的位置。使用checkout来切换branch：git  check]]></description><category></category></item><item><title><![CDATA[【Git零基础教程】（3）.gitignore]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/75644321</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/75644321</guid><author>IceTeaSet</author><pubDate>Fri, 21 Jul 2017 14:10:07 +0800</pubDate><description><![CDATA[.gitignore用来让Git不跟踪一些文件。它只对untracked文件有效，对tracked的文件无效，不能让它们变成untracked。它在Git工程的根目录下。# 忽略所有.a文件
*.a# 但是跟踪hello.a 
!hello.a# 如果加了/，就仅仅会忽略根目录下的README文件
/README# 忽略所有名为build的文件夹，包括不在根目录下的
build/# 忽略所有doc文]]></description><category></category></item><item><title><![CDATA[【Git零基础教程】（2）基本命令]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/75635752</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/75635752</guid><author>IceTeaSet</author><pubDate>Fri, 21 Jul 2017 12:06:35 +0800</pubDate><description><![CDATA[本章主要介绍Git的基本结构和基本指令。如下图（记为图1）所示，一个Git工程可以分为三个区域：工作目录，缓存区域，git仓库。 
工作目录就是你的所有文件，缓存区域是暂存下一次commit要更改的内容的区域，git仓库则存着所有的commits。在上图介于working directory 和 staging area之间的文件的状态大致可以分为如下几种（记为图2）： 
untracked表示该文]]></description><category></category></item><item><title><![CDATA[【Git零基础教程】（1）介绍/创建]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/75268459</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/75268459</guid><author>IceTeaSet</author><pubDate>Mon, 17 Jul 2017 21:40:04 +0800</pubDate><description><![CDATA[版本控制系统（Version Control System，VCS）可以分为集中式（Centralized Version Control System，CVCS）与分布式（Distributed Version Control System，DVCS）两大类。 
它们的区别主要在于版本管理数据库存在的位置。如图所示： 
 
集中式的版本数据库只存在于服务器上，而个人这里仅仅只有一份文件。而分布式的]]></description><category></category></item><item><title><![CDATA[【C++细节】友元函数]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/73187729</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/73187729</guid><author>IceTeaSet</author><pubDate>Tue, 13 Jun 2017 16:10:13 +0800</pubDate><description><![CDATA[概念
  A friend function is a function that is not a member of a class but has access to the class’s private and protected members. Friend functions are not considered class members; they are normal exte]]></description><category></category></item><item><title><![CDATA[macOS中使用meld作为git mergetool和difftool]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/69787473</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/69787473</guid><author>IceTeaSet</author><pubDate>Sat, 08 Apr 2017 21:11:03 +0800</pubDate><description><![CDATA[本文介绍通过下载meld应用的方式进行配置的过程，不适用于命令行安装的形式（命令行安装：brew install caskroom/cask/meld，之后自行尝试…）mergetool的选择参考下文： 
https://www.slant.co/topics/1324/~diff-tools-for-gitmeld截图： 
meld下载https://yousseb.github.io/meld/]]></description><category></category></item><item><title><![CDATA[MacOS下iTerm2 OhMyZsh Vim 安装、主题、配色]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/69668471</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/69668471</guid><author>IceTeaSet</author><pubDate>Sat, 08 Apr 2017 14:19:00 +0800</pubDate><description><![CDATA[安装iTerm2直接官网下载： 
http://www.iterm2.comOh My Zsh按照官网输入命令安装： 
http://ohmyz.sh推荐安装一个zsh插件autojump：
  安装了autojump之后，zsh 会自动记录你访问过的目录，通过 j + 目录名 可以直接进行目录跳转，而且目录名支持模糊匹配和自动补全，例如你访问过hadoop-1.0.0目录，输入j hado 即可正]]></description><category></category></item><item><title><![CDATA[使用Smart HTTP和Gitweb搭建简易个人git服务器]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/59157213</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/59157213</guid><author>IceTeaSet</author><pubDate>Wed, 01 Mar 2017 21:42:42 +0800</pubDate><description><![CDATA[使用Smart HTTP的git服务器搭建过程

原文地址：http://particle128.com/posts/2014/12/git-server.html


刚接手了老师的一个安卓项目，考虑到实验室闲置了一台PC，决定把这个pc配置成git服务器，用来进行版本控制。以为是分分钟钟的事儿呢，结果用了一整天才搞定。被网上残缺不全的新旧教程整懵了，决定自己写一个。

协议选择]]></description><category></category></item><item><title><![CDATA[C++虚函数在基类中不实现导致的报错]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/54584158</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/54584158</guid><author>IceTeaSet</author><pubDate>Tue, 17 Jan 2017 16:16:07 +0800</pubDate><description><![CDATA[今天遇到了一个BUG，出错如下图1所示，是什么matrix()函数未定义，引用自某类A（图1中PinholeCamera类）所在文件中的vtable。 
我搜了一下整个A所在的文件也没有找到vtable和有关matrix()函数的调用，感到莫名其妙。 
后来去看了一下A的基类B（也就是图1中AbstractCamera类），找到一个虚函数matrix()，将其注释后BUG消除。 
原来vtable指]]></description><category></category></item><item><title><![CDATA[iOS9及以下的自带词典无法下载问题的解决方法]]></title><link>https://blog.youkuaiyun.com/IceTeaSet/article/details/53823626</link><guid>https://blog.youkuaiyun.com/IceTeaSet/article/details/53823626</guid><author>IceTeaSet</author><pubDate>Thu, 22 Dec 2016 23:52:32 +0800</pubDate><description><![CDATA[我遇到的情景如下： 
iPhone上升级到了iOS10，并下载了英汉词典。iPad mini1升级到iOS9后（因为它无法升级到10），无法下载之前已经下载过的词典（一直显示一个圆圈图标），即使在iPhone中把词典删了或者重启iPad mini或者还原iPad mini的系统设置都没用。网上搜了一下，一堆遇到相同问题的人，这是一个苹果的一个到现在都没解决的Bug。大多数的人都无法解决或者解决方法并]]></description><category></category></item></channel></rss>