- 博客(15)
- 收藏
- 关注
原创 go语言之异常捕获
go没有php java nodejs python的try catch让我这个写习惯了try的人怎么办…和异常捕获有关的几个内置函数defer 析构,函数结束时候调用panic 抛出致命错误,同throwrecover 恢复,go语言中的defer就像c++中的析构函数,但是go语言中defer的对象是函数(或者对象的方法),defer能保证在函数结束最后执行该方法(函数),...
2018-10-11 13:31:38
1268
原创 深入理解Bigpipe与Chunked transfer encoding
深入理解Bigpipe与Chunked transfer encodingBigpipe原理借助于:Transfer-Encoding: chunked一、什么Chunked transfer encoding我们看到 www.baidu.com www.weibo.com 的response中都加有HeaderTransfer-Encoding: chunked,首先先理解一下什么是Chu...
2018-10-08 13:02:18
601
原创 容器监控与排错
容器监控与排错sysdig系统发掘工具的集大成者。常见的系统挖掘工具有:网络 netstat/tcpdump/iftop/nload/traceroute跟踪 strace/lsof容器 docker statDisk stat/iostat进程/CPU ps -auxf/pstree/top/htop/pmapPerformancesysdig基本覆盖上述工具的很多功能...
2018-09-25 18:59:58
510
原创 zsh经典配置与常用plugins
zsh经典配置与常用plugins##安装zsh自centos高版本以来,都自带了zsh.cat /etc/shells/bin/sh/bin/bash/sbin/nologin/bin/zsh/bin/tcsh/bin/cshchsh -s /bin/zsh如果没有则使用brew 或者其他工具##oh-my-zsh由于zsh的配置是很复杂的,所以有这个一个开源项目o...
2018-09-20 23:51:54
2497
原创 centos yum使用手册,如何搜索rpm包
一、yum使用手册 search 与 listyum search gcc 查找范围更大,包括摘要。yum list gcc\* 查看gcc开头的包 已经安装yum list installed | grep libreoffice 下载源码包 yumdownloader libreoffice http://www.cnblogs.com...
2018-09-18 14:03:19
2169
原创 linux下实现doc转html
1. 概述windows下借助.net好解决这个问题.尝试python java php 都被坑了,尤其是docx之前的word版本。最终解决办法:libreoffice2. 安装yum install libreoffice libreoffice-headless源码:http://downloadarchive.documentfoundation.org/lib...
2018-09-15 21:57:37
2115
原创 深入理解file-max与ulimit的差别
file-max与ulimit的关系与差别两者查看命令:sysctl -a | grep filecat /etc/security/limits.confulimit -a #查看当前用户当前shell的ulimit参数 file-max与file-nr/proc/sys/fs/file-max 决定了当前内核可以打开的最大的文件句柄数,系统所有进程一共可以打开的文件...
2018-09-09 22:54:34
2796
转载 You can’t open the Trash because it’s being emptied
Trash is not working, with the message saying: "You can’t open the Trash because it’s being emptied." at the same time not able to shut down my computer... What may I do?One thing to try: H
2013-04-02 10:21:27
727
转载 关于sudo与cd的
http://askubuntu.com/questions/57789/how-to-enter-to-the-directory-with-cd-command-if-it-has-700-permissionsudo cd won't work because the cd command is built into the shell. So you are sayin
2013-04-01 13:33:30
563
转载 网络问题
最近差不多快一个星期了,一直不能正常连上有线网络。从开始认为是网线的问题,然后去别人的网口试试,没有好转。然后认为是网卡的问题,重启了之后还是很慢。发现国外的网站完全打不开,国内的网站部分能打开。以为是有线网络的设置的问题,然后试试用cmcc,果然畅通无比,开始把注意力集中在网络的配置上。IP与DNS都动了动,还是卡得不行。以为是我账号的问题,换成了室友的,还是一样。今天,
2013-03-31 13:52:36
466
转载 汇编中断处理
这几天在复习汇编的知识,中断过程是这样的(1)取得中断类型码N(2)pushf(3)TF=0, IF=0(4)push CS(5)push IP(6)(IP)=(N*4), (CS)=(N*4)+2在最后一步完成后,CPU开始执行由程序员编写的中断处理程序。一直在疑惑,为什么这里只让标志寄存器入栈,而没有考虑其他的寄存器。看到后面明白了,原来这部分在后面中断处
2013-03-29 12:58:21
699
转载 network company or national enterprise?
I have a discus with a friend on the phone for a long time about finding jobs. He tell me a lot.As he says,"network company paid you 1.5 piece of salary but ask you to do double works". I need to th
2013-03-13 10:18:19
588
转载 first internship interview
I get an internship interview yesterday. After one and an half written examination, five people met me face to face. Finally I got an offer with an pay of 20 yuan an hour. More unfortunately, I have t
2013-03-12 23:15:37
453
转载 how to solve vim settings like highlight in iOS
点击打开链接点击打开链接点击打开链接In the three links above show how to set vim more efficient for programmers. Take highlight for example:1. If you only want to highlight temporarily, just type "syn
2013-03-11 11:10:58
459
转载 第一天
今天注册了一个新的账号,当然是希望有一个新的开始。在最近的学习过程中,总是会遇到一些大大小小的问题。找到答案,解决问题,然后忘记,这不是一个好的程序员该做的事情。一直都在学习英语,会强迫自己看英文的资料,如果可以,会试着用英文写博客。
2013-03-11 10:53:52
407
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人