自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Vinllen Chen

新博客地址:vinllen.com

  • 博客(41)
  • 资源 (2)
  • 收藏
  • 关注

原创 Linux socket跨局域网聊天和文件传输

自己写的小软件,基于linux socket的跨局域网聊天和文件传输

2015-01-02 13:15:51 4674 2

原创 Leetcode Find Peak Element

原题:A peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may contain multiple pea

2014-12-16 20:38:47 738

转载 linux 新建用户、用户组 以及为新用户分配权限

一、Linux系统用户账号的管理 用户账号的管理工作主要涉及到用户账号的添加、修改和删除。添加用户账号就是在系统中创建一个新账号,然后为新账号分配用户号、用户组、主目录和登录Shell等资源。刚添加的账号是被锁定的,无法使用。1、添加新的用户账号使用 useradd命令,其语法如下: 代码:useradd 选项 用户名其中各选项含义如下:代码:-c

2014-11-23 11:55:44 895

转载 渗透测试工具Nmap从初级到高级

Nmap是一款网络扫描和主机检测的非常有用的工具。 Nmap是不局限于仅仅收集信息和枚举,同时可以用来作为一个漏洞探测器或安全扫描器。它可以适用于winodws,linux,mac等操作系统。Nmap是一款非常强大的实用工具,可用于:检测活在网络上的主机(主机发现)检测主机上开放的端口(端口发现或枚举)检测到相应的端口(服务发现)的软件和版本检测操作系统,硬件地址,以及软件版本

2014-11-22 19:36:06 932

转载 以 vim 的方式来使用 chrome 浏览器(利用 vimium 插件)

不仅可以更改 shell 终端的默认键绑定为 vi 模式,还能用 vim 的模式来浏览网页,用的是 chrome 的 vimium 插件。1.安装打开 vimium插件,再单击安装即可。2.使用(1) 页面浏览j、k、h、l:向下/上/左/右滚动gg 和 G:移至页顶/页底d 和 u:下/上翻页zi 和 zo:

2014-11-21 21:17:51 2103

转载 关于RabbitMQ

1      什么是RabbitMQ?RabbitMQ是实现AMQP(高级消息队列协议)的消息中间件的一种,最初起源于金融系统,用于在分布式系统中存储转发消息,在易用性、扩展性、高可用性等方面表现不俗。消息中间件主要用于组件之间的解耦,消息的发送者无需知道消息使用者的存在,反之亦然: 单向解耦 双向解耦(如:RPC)    例如一个日志系统,很容易使用RabbitM

2014-11-21 20:51:17 681

转载 Quagga 简介

Quagga 简介什么是Quagga  Quagga软件原名是Zebra是由一个日本开发团队编写的一个以GNU版权方式发布的软件。Quagga项目开始与1996年,当前版本是0.98.4版 可以使用Quagga将linux机器打造成一台功能完备的路由器。Quagga支持的路由协议  Quagga能够同时支持RIPv1、RIPv2、RIPng、OSPFv2、OSPFv3、BGP-4和

2014-11-20 23:51:07 14415 1

原创 linux pdb调试总结

1.首先gdb编译:gcc -g xxx.c -o xxx2.然后 gdb xxx进入调试break 行号添加断点(1)然后run就可以跑到下一个断点(2)step(或s)单步跟踪(3)print可(或p)以查看当前程序的运行数据 比如:print a 输出a变量的值 输出格式可以设置:比如p/d a 十进制输出a变量的值

2014-11-19 21:57:15 2318

原创 正则表达式总结

正则表达式总结

2014-11-19 21:51:58 1434

转载 P2P架构

P2P 架构是两个或多个客户端不经过服务器而直接通信的架构。可能首先会使用服务器以让客户端间能查找到对方,但在此之后就不再需要服务器了。具体也分两种不同的形式:一种是完整连接拓扑架构,指的是每个客户端与其他每个客户端之间都必须有连接,信息可以直接在用户间交换;另一种是环状拓扑架构,指的是信息只有流经一个或多个客户端后才能传递过来的架构。本章中当谈到P2P 架构时,指的是完整连接拓扑架构。注

2014-11-18 23:17:34 12734 1

原创 linux下基于socket的聊天软件

自己写的linux下聊天软件

2014-11-18 14:14:36 4170 4

原创 Codeforces Round #277.5 解题报告

又熬夜刷了cf,今天比正常多一题,比赛还没完但我知道F过不了了,一个半小时贡献给F还是没过……应该也没人Hack,写写解题报告吧= =!解题报告如下:A题:选择排序直接搞,因为不要求最优交换次数,代码:#include #include #include #include #include #include #include #include #includ

2014-11-18 01:53:55 979

原创 socket编程里connect函数与qt冲突

类中使用了connect,一直报错:

2014-11-12 20:49:22 3666

转载 IPtables中SNAT, DNAT和MASQUERADE的区别

解决方案IPtables中可以灵活的做各种网络地址转换(NAT)  网络地址转换主要有两种:SNAT和DNAT  SNAT是source network address translation的缩写,即源地址目标转换  比如,多个PC机使用ADSL路由器共享上网,每个PC机都配置了内网IP  PC机访问外部网络的时候,路由器将数据包的报头中的源地址替换成路由器的ip

2014-11-04 21:12:05 694

原创 Linux下安装docker

今天,daimajia推荐使用docker,其实一直都听过docker,但没用过,今天参考几篇文档把docker搞定了。果然起的速度比一般虚拟机快我的电脑是ubuntu14.04 安装的话用包源进行安装$ sudo apt-get install apt-transport-https$ sudo apt-key adv --keyserver hkp://keyserver.u

2014-11-04 17:45:40 3416

原创 linux qmake配置的一个小问题

之前安装了qt和qmake,完了自己搞一直不行,步骤如下:

2014-10-28 09:07:14 1882

原创 linux下qmake报错的问题

我安装了qt环境,其实只按qt5

2014-10-27 10:38:22 3028

原创 Leetcode Maximum Product Subarray

题目:Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4],the contiguous subarray [2,3] has the

2014-10-21 22:34:04 656

转载 Linux 各个发行版分支图

到荼

2014-10-17 22:38:29 7199

原创 Leetcode Simplify Path

题目:Given an absolute path for a file (Unix-style), simplify it.For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c"Corner Cases:Did you consider the case wh

2014-10-17 21:57:45 700

原创 Leetcode Merge k Sorted Lists

题目:Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.解题:维持一个xiaodin

2014-10-17 18:42:02 614

原创 2014年10月4399校招笔试--游戏岗

今天参加了4399的笔试,总的来说题目不难,不过有些题没答上来,特别是选择题最后4个图像的题目,真心不会最后几个图像选择题22-25基本不大确定11题后面应该是“调度”

2014-10-11 14:03:06 2591

原创 Leetcode Anagrams

题目:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.解题:这题态

2014-10-10 22:56:19 584

原创 Leetcode ump Game II

题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Yo

2014-10-10 22:39:20 620

原创 Leetcode Combination Sum II

题目:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in C may only be used once in th

2014-10-10 21:45:15 561

原创 Leetcode Reverse Nodes in k-Group

题目:Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then left-out nodes in the end should remain

2014-10-10 14:19:29 588

原创 Leetcode Palindrome Partitioning II

题目:Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning of s.For example, given s = "aa

2014-10-08 22:22:25 557

原创 Leetcode Palindrome Partitioning

题目:Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example, given s = "aab",Return

2014-10-08 21:55:54 586

原创 Leetcode Combination Sum

题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlim

2014-10-08 19:28:02 524

原创 电脑从开机加电到操作系统main函数之前执行的过程

总的来说在操作系统加电启动之后到main函数执行之前操作系统经历了以下3个大步骤1.启动BIOS。这个时候位于实模式下,加载中断向量和中断服务程序2.加载操作系统内核并为保护模式做准备。这个时候操作系统一共加载了3部分代码:引导程序bootsect,内核代码setup,内核代码system模块3.从实模式转换为32位保护模式。这个过程要做大量重建工作,并且持续工作到操作系统main函数

2014-10-07 23:20:27 4280

原创 2014年9月创新工场校招笔试题

今天参加了创新工场笔试,软件工程面试就一份试卷,总的来说题目不难,基本就是数据结构加一点网络

2014-09-25 22:11:10 1953

转载 硬中断与软中断的区别

硬中断:1. 硬中断是由硬件产生的,比如,像磁盘,网卡,键盘,时钟等。每个设备或设备集都有它自己的IRQ(中断请求)。基于IRQ,CPU可以将相应的请求分发到对应的硬件驱动上(注:硬件驱动通常是内核中的一个子程序,而不是一个独立的进程)。2. 处理中断的驱动是需要运行在CPU上的,因此,当中断产生的时候,CPU会中断当前正在运行的任务,来处理中断。在有多核心的系统上,一个中

2014-09-24 16:50:38 714

原创 windows与linux相互telnet/ssh

唉,windows主机想telnet到Linux上,搞了好一会,各种问题,不过,生命在于折腾嘛

2014-09-23 18:00:39 3161

原创 linux 虚拟机设置混合模式上网

内部虚拟机通过宿主机的网卡上网1.首先,假设内部虚拟机网络已经连通

2014-09-23 15:54:05 929

转载 fork()、 vfork()、 clone()的区别

原文地址:http://blog.chinaunix.net/uid-27164517-id-3281349.html

2014-09-21 21:28:50 747

原创 Codeforces Round #268 (Div. 2) 解题报告

为嘛每次D题图论的都过不了,难道3年没搞acm就退化成这样了。A题

2014-09-21 09:25:21 844

原创 Leetcode Unique Paths II

题目:Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space is marked as 1 and 0 respectively

2014-09-20 16:40:08 634

原创 Leetcode Trapping Rain Water

题目:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example, Given [0,1,0,2,1,0,1,3

2014-09-20 13:16:59 552

原创 Codeforces Round #267 (Div. 2) 解题报告

N久没做过cf了,今天心血来潮搞了一个,唉,坑爹的D题,卡了N久

2014-09-19 01:47:13 612

原创 Linux 不同网段两台主机相互ping通

刚搭的虚拟机无法Ping通某个ip,分属于不同网段比如:10.11.12.202 ping 10.11.13.102ssh到10.11.12.202中,route -n查看路由表项,发现没有默认路由:Destination     Gateway         Genmask         Flags Metric Ref    Use Iface10.11.12.0

2014-09-18 13:28:46 17341 4

chat_vinllen

自己使用socket写的聊天软件。 适用Linux环境。 所用界面:qt实现 语言:C/C++ 我的博客地址:http://blog.csdn.net/u011353822

2014-11-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除