摘要: 解决办法:找到android studio 安装目录下bin目录中(D:\Android\Android Studio\bin)的idea.properties文件,在文件末尾处添加disable.android.first.run=true然后再打开android studio就不会再去fetch... 阅读全文
posted @ 2015-05-08 18:36 xiulug 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 读者/写者问题读者进程:只读数据区中的数据写者进程:只往数据区中写数据要求满足条件:允许多个读者同时执行读操作不允许多个写者同时操作不允许读者、写者同时操作 阅读全文
posted @ 2015-04-30 18:28 xiulug 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 进程互斥的软解决方案Dekker Peterson 阅读全文
posted @ 2015-04-30 18:00 xiulug 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 今天登陆MIT的网站看一篇文章,在进入到页面的时候,网页就会自动跳转到wpkg.org这个网页,查了下据说是DNS被污染了,暂时还是不是很清楚,先把问题解决了。方法:在C:\WINDOWS\system32\drivers\etc\hosts文件中添加下面一行127.0.0.1 wpkg.org在手... 阅读全文
posted @ 2015-04-27 19:18 xiulug 阅读(285) 评论(0) 推荐(0) 编辑
摘要: Description:Count the number of prime numbers less than a non-negative number,nHint:The number n could be in the order of 100,000 to 5,000,000.#define... 阅读全文
posted @ 2015-04-27 18:24 xiulug 阅读(345) 评论(0) 推荐(0) 编辑
摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ... 阅读全文
posted @ 2015-04-27 17:33 xiulug 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu... 阅读全文
posted @ 2015-04-27 17:30 xiulug 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 在UNIX/LINUX当中是不存在libsocket的。传说中,socket的功能库是放在libc当中的,所以如果需要连接的话修改成-lc就可以了。 阅读全文
posted @ 2015-04-26 20:36 xiulug 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 1、使用QQ电脑管家或者360的,一般都有小工具。2、管理注册表█以WindowsXP(SP2)为例,有些右键菜单中的选项你并不常用,或者有些软件已被删除,但其仍然占据着右键菜单。要删除这些无用的右键菜单项,操作步骤如下:●运行regedit打开注册表编辑器。●展开[HKEY_CLASSES_ROO... 阅读全文
posted @ 2015-04-13 21:40 xiulug 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 以前一直在用statdict,突然发现了一个好用的东西Goldendict.转载丁香园上一篇文章:http://www.dxy.cn/bbs/topic/20455142Goldendict话说国内的lingoes一直以来是我的最爱,然而几次升级之后,出现强制升级和广告的问题实在让人恼火,加上词库是... 阅读全文
posted @ 2015-04-11 17:34 xiulug 阅读(5859) 评论(0) 推荐(1) 编辑
摘要: csh@csh-laptop:~/ejabberd-15.03$ sudo apt-get install mysqlReading package lists... DoneBuilding dependency tree Reading state information... Do... 阅读全文
posted @ 2015-04-09 00:36 xiulug 阅读(620) 评论(0) 推荐(0) 编辑
摘要: YOUR ERLANG COMMUNITY SITEWelcome to erlangcentral.org, the Erlang community site where you can read news and weblogs related to Erlang/OTP, discuss p... 阅读全文
posted @ 2015-04-08 20:50 xiulug 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 1、下载node.js安装包,请参考网址:http://nodejs.org/download/在这个网址里面提供了几种node.js安装的方式https://github.com/joyent/node/wiki/Installation#installing-on-linuxhttp://my.... 阅读全文
posted @ 2015-02-04 15:40 xiulug 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 先附上代码,测试通过#include #include #include "libavutil/avstring.h"//修改colorspace.h中的inline为__inline#include "libavutil/colorspace.h"#include "libavutil/pixdesc.h"#include "libavutil/imgutils.h"#include "libavutil/dict.h"#include "libavutil/parseutils.h 阅读全文
posted @ 2013-06-28 16:59 xiulug 阅读(4429) 评论(0) 推荐(0) 编辑
摘要: 函数简介 函数名: time 头文件:time.h 函数原型:time_t time(time_t * timer) 功能: 获取当前的系统时间,返回的结果是一个time_t类型,其实就是一个大整数,其值表示从CUT(Coordinated Universal Time)时间1970年1月1日00:00:00(称为UNIX系统的Epoch时间)到当前时刻的秒数。然后调用localtime将time_t所表示的CUT时间转换为本地时间(我们是+8区,比CUT多8个小时)并转成struct tm类型,该类型的各数据成员分别表示年月日时分秒。 补充说明:time函数的原型也可以理解为 lo... 阅读全文
posted @ 2012-11-12 16:49 xiulug 阅读(65982) 评论(0) 推荐(2) 编辑