- 博客(22)
- 资源 (14)
- 收藏
- 关注
原创 Ubuntu 14.04下怎么使用chroot创建另外一个系统
Ubuntu 14.04下怎么使用chroot创建另外一个系统说明:你是否因为某个命令的误操作导致系统崩溃,比如修改/etc/sudoes文件无法使用sudo,删除某个so文件,误用autoremove命令等。最难受的就是重装系统,原来的原件等各种文件备份或者重装,比较难。有时候某个命令不熟悉,可以使用chroot创建的文件系统里操作而不会影响原系统。sudo apt-ge
2017-04-28 21:19:33 1848
原创 ubuntu14.04安装搜狗
ubuntu14.04安装搜狗本文介绍搜狗在Ubuntu14.04上的安装过程,记录学习使用。去官网下载deb包 http://pinyin.sogou.com/$ sudo dpkg -i sogou_pinyin_linux_1.0.0.0033_amd64.deb ;;安装,如果出现依赖,执行下面的命令$ sudo apt-get install -f
2017-04-28 17:24:45 502
原创 Ubuntu14.04源码编译安装CPU版本的tensorflow
Ubuntu14.04源码编译安装CPU版本的tensorflow说明:由于某种原因,我们需要编译tensorflow的源码包来进行安装环境说明:os:Ubuntu 14.04arch:x86_64kernel:4.2.0-27-generic提前安装第三方依赖包1.安装anaconda(Python一个科学计算的发行版,里面含有许多现成的库)官网(ww
2017-04-26 11:46:30 4445
原创 SPEC2000程序编译和性能热点分析
本文包括perf查找热点函数,分析cpu和cache的请况,最后使用gprof把程序的调用图显示出来
2017-04-24 20:11:06 3326 6
原创 shell 5设置内网上网代理
我们有时候在公司的内网,上网必须设置代理服务器,浏览器的话简单就可以设置,如果使用像shell5这样的链接工具,该如何设置上网代理呢文件-->新建,此时,代理一项不能点击,先填上欲链接的服务器主机名称(为了后期链接数多好区分,尽量起个)独特的名字,主机一项设置服务器的IP,一般远程链接使用ssh协议,默认的端口号为22,别急着确定完成上一步,此时可以点击代理了,如果
2017-04-19 09:40:01 1210
原创 TensorFlow 白皮书的翻译(未翻译完请绕行)
最近,正在初学TensorFlow,不知从何开始,先翻译白皮书开始,来了解它。能力有限,读者多包涵。白皮书是在一个博客下载的,附上下载链接 tensorflow白皮书TensorFlow:Large-Scale Machine Learning on Heterogeneous Distributed Systems 大型机器学习异构分布式系统摘要Tensorflow是一
2017-04-18 21:09:35 1657 4
原创 leetcode 104. Maximum Depth of Binary Tree
104. Maximum Depth of Binary Tree 求二叉树的深度 c语言实现 DescriptionGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the lon
2017-04-17 18:34:22 445
原创 leetcode 101. Symmetric Tree
101. Symmetric Tree对称树判断c语言实现DescriptionGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3
2017-04-14 11:45:55 357
原创 一个简单的扫描目录的程序
这是一个简单的扫描目录并打印出来的程序,有点类似 tree命令。#include#include#include#include#include#include#include#includevoid scan_dir(char *dir, int depth){ DIR *dp; struct dirent *entry; struct stat
2017-04-13 16:32:33 1194
原创 leetcode 100. Same Tree
100. Same Tree 是不是同一棵树DescriptionGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally
2017-04-12 20:02:51 341
原创 leetcode 88. Merge Sorted Array
88. Merge Sorted Array DescriptionGiven two sorted integer arrays nums1 andnums2, merge nums2 into nums1 as one sorted array.Note:You may assume that nums1 has enough space
2017-04-12 19:49:45 351
原创 leetcode 83. Remove Duplicates from Sorted List
leetcode 83. Remove Duplicates from Sorted List DescriptionGiven a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given 1->1->2, r
2017-04-11 17:14:25 369
原创 leetcode 70. Climbing Stairs
70. Climbing Stairs 爬楼梯问题DescriptionYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many disti
2017-04-10 18:11:20 418
原创 leetcode 69 sqrt(x)
69. Sqrt(x) 实现整数的平方根DescriptionImplement int sqrt(int x).Compute and return the square root of x.思路:使用牛顿切线法的方式来实现。假定要求整数n的平方根x,即 x^2 = n 。记成函数的方式就是f(x) = x^2 - n。先在点(x0,f(x0)
2017-04-10 16:52:42 365
原创 leetcode 67. Add Binary 二进制相加
67. Add Binary二进制相加DescriptionGiven two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".本体有点像leetcode 66 plus one,但本题中你需要处
2017-04-07 19:33:34 333
原创 leetcode 66. Plus One
66. Plus One(整数字符加一操作) c语言实现DescriptionGiven a non-negative integer represented as a non-empty array of digits, plus one to the integer.You may assume the integer do not contai
2017-04-07 12:28:54 468
原创 leetcode 58. Length of Last Word
58. Length of Last Word DescriptionGiven a string s consists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If
2017-04-06 15:27:45 249
原创 leetcode 53. Maximum Subarray
53. Maximum Subarray c语言实现 DescriptionFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-
2017-04-06 14:44:42 417
原创 leetcode 38. Count and Say
leetcode 38. Count and Say 计数和报数(c语言实现)DescriptionThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1
2017-04-05 19:44:17 276
原创 leetcode 28. Implement strStr()
[Leetcode 28] Implement strStr() 字串匹配,返回第一次出现的位置,C语言实现DescriptionImplement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of
2017-04-05 17:08:44 417
原创 rpmbuild编译一个软件时如何加入自己的补丁patch
场景有许些时候,服务源没有平台的软件,需下载一个SRC的源码包,重新制作,但有时在制作的过程中涉及修改src的源码,怎么办?直接修改BUILD下的源码显然是不可以的,因为每次执行 rpmbuild -ba xxx.spec的时候,会自动解压源码将你修改的文价覆盖,始终是达不到效果,此时,只能打补丁patch例子本帖以 编译mips平台 docker.spec 其中一个错误为例
2017-04-01 16:41:53 3883
Google code Style xml
2018-11-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人