由于之前电脑坏了,又得重新安装ubuntu,搭建嵌入式开发环境,故做一个小结,方便自己看,也方便给其他的同学。
1、tftp 环境搭建
TFTP(Trivial File Transfer Protocol,简单文件传输协议),是一个基于UDP协议实现的用于在客户机和服务器之间进行简单文件传输的协议,适合于开销不大、不复杂的应用场合。TFTP协议专门为小文件传输而设计,只能从服务器上获取文件,或者向服务器写入文件,不能列出目录,也不能进行认证。
sudo apt-get install tftp-hp...
分类:
其他好文 时间:
2015-06-03 10:06:30
阅读次数:
169
今天刚把Xcode升级到6.3.2,结果写swift的时候界面各种问题频出,一会代码行数没了,一会整个屏幕没有代码了,一会从这里突然跳到那里。。。简直不能忍。后来才知道是自定义主题的问题。当自定义主题中:
字体大小不一致
出现斜体
出现粗体
时就可能产生这种问题,所以解决方法非常简单,直接选用系统默认主题,或者把自定义主题
字体大小设为一样
把所有斜体和粗体移除
即可...
分类:
其他好文 时间:
2015-06-03 10:04:19
阅读次数:
108
Given a collection of intervals, merge all overlapping intervals.
For example,
Given [1,3],[2,6],[8,10],[15,18],
return [1,6],[8,10],[15,18].
分析:
题目要求对区间进行合并,首先必须对区间按照左边元素的大小进行排序,然后对排...
分类:
其他好文 时间:
2015-06-03 10:05:58
阅读次数:
115
题目链接题目大意:
一个有向图中, 有若干条连接的路线, 问最少放多少个机器人,可以将整个图上的点都走过。 最小路径覆盖问题。分析:
这时最小路径覆盖问题, 最小路径覆盖 = |V| - 最大匹配数。 (有关最小路径覆盖,最大匹配问题,相关概念不懂得点这里) 当然做这道题还有一个坑!! 如果有向图的边有相交的情况,那么就不能简单的对原图求二分匹配了 详细讲解看这
#include<iost...
分类:
其他好文 时间:
2015-06-03 10:05:47
阅读次数:
149
How Many Answers Are Wrong
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3472 Accepted Submission(s): 1326
Problem Description
TT...
分类:
其他好文 时间:
2015-06-03 10:05:48
阅读次数:
126
用FFMPEG做基于图像变形的视频处理
在图像变形算法已知的情况下,我们已求得BMP图像的变形效果。因此,要处理视频,也需要把图像的帧提取出来。这里我使用的是FFMPEG。
步骤如下:
1. 分离音视频工a 和 v
2.将视频v的每一帧提取出来,打包成YUV文件
3.读YUV,将每一帧转成BMP图像,进行图像变形或其它处理,再转回YUV。
4.将新得到的所有YUV...
分类:
其他好文 时间:
2015-06-03 10:05:16
阅读次数:
221
Given an array S of n integers, are there elements a,
b, c, and d in S such that a + b +
c + d = target? Find all unique quadruplets in the array which gives the sum of target.
Note:
Elements ...
分类:
其他好文 时间:
2015-06-03 10:03:01
阅读次数:
100
分析:暴力,注意有公共点是指两个城池是否相邻。
#include
#include
using namespace std;
bool map[505][505];
vector vx;
vector vy;
int n,m;
bool judge(int x,int y)
{
bool t1,t2,t3,t4;
t1=t2=t3=t4=0;
if(x>1 && map[x-1][y...
分类:
其他好文 时间:
2015-06-03 10:04:18
阅读次数:
115
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the l...
分类:
其他好文 时间:
2015-06-03 10:03:29
阅读次数:
108
Given a string containing just the characters '(', ')',
'{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are all valid b...
分类:
其他好文 时间:
2015-06-03 10:02:51
阅读次数:
141
这水题也是用了不少时间。...
分类:
其他好文 时间:
2015-06-03 10:04:44
阅读次数:
131
解题思路:
广度遍历而且要记录每一层。广度遍历利用队列实现,记录用列表实现
使用一个列队,一个列表。 列队用于记录每一层节点,列表用于存储每一层的节点
Binary Tree Level Order Traversal Total Accepted: 51429 Total Submissions: 174478
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to rig...
分类:
其他好文 时间:
2015-06-03 10:03:00
阅读次数:
129
题目描述:
Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17}...
分类:
其他好文 时间:
2015-06-03 10:01:08
阅读次数:
92
题意:一个数列,a1,a2,a3,a4,---,an,需要最少修改多少个元素,使得这个序列严格递增?
分析:因为a[i]=a[i],整理得a[i+1]-(i+1)>=a[i]-i。令b[i]=a[i]-i。则可以求出b[i]的最长不下降子序列的长度len,最后用n-len即为需要改变的最少的元素个数。
#include
#include
using namespace std;
int a[...
分类:
其他好文 时间:
2015-06-03 10:03:00
阅读次数:
121
centos7默认的是用firewalld进行管理防火墙的。
在安装完centos7后,安装了nginx服务器,但是同在一个局域网却访问不到,哥哥告诉我应该是防火墙开了。将防火墙关了就可以了。
果断一试。
但是每次防火墙总是自起动。
然后哥哥告诉我两种选择,要么继续用firewalld进行管理,要么用iptables。
在之前用的都是iptables,升级到7后,将firewalld换成...
分类:
其他好文 时间:
2015-06-03 10:00:10
阅读次数:
210
哈佛委员会著
【内容简介】
1943年,哈佛大学众多学科领域里的12位著名教授组成委员会,旨在对“民主社会中的通识教育目标问题”进行研究。该委员会历经两年的潜心研究后,形成了以“民主社会中的通识教育”为题的总结报告,1945年由哈佛大学出版社出版,俗称“红皮书”。
【序言】
1.《哈佛通识教育红皮书》有助于我们在教育哲学层面上正确的理解高等教育要培养什么样的人以及如何培养这样的人才...
分类:
其他好文 时间:
2015-06-03 09:59:38
阅读次数:
220
HBase - Hadoop Database
hbase的设计思想来自于google的bigtable
主键:Row Key
主键是用来检索记录的主键,访问Hbase table 中的行,只有三种方式
通过单个Row Key 访问
通过Row Key 的range
全表扫描
列族:Column Family
列族...
分类:
其他好文 时间:
2015-06-03 09:59:11
阅读次数:
106