1 yum -y groupinstall chinese-support 2 3 vim /etc/sysconfig/i18n 4 5 LANG="zh_CN.UTF-8" 6 LANGUAGE="zh_CN.UTF-8:zh_CN.GB2312:zh_CN" 7 SUPPORTED="z...
分类:
系统相关 时间:
2015-05-10 20:07:45
阅读次数:
185
In computer science, Deadlock is a naughty boy aroused by compete for resources. Even now, there isn't a valid method to deal with it. This is amazin....
分类:
其他好文 时间:
2015-05-10 20:09:25
阅读次数:
157
转自:http://www.cnblogs.com/wawlian/archive/2012/06/18/2554072.html 有改动!四、更新策略 史链更新是网络爬虫中很重要的一个环节,对于时效性比较高的数据来说,更新策略愈发重要。 互联网是实时变化的,具有很强的动态性。网页更新策略主要是决....
分类:
其他好文 时间:
2015-05-10 20:09:57
阅读次数:
158
好久没有使用MFC实现网络编程啦。如何实现MFC网络编程呢? 随着计算机网络化的深入,计算机网络编程在程序设计的过程中变得日益 重要。由于C++语言对底层操作的优越性,许多文章都曾经介绍过用VC++ 进行Socket编程...
分类:
编程语言 时间:
2015-05-10 19:06:37
阅读次数:
150
一、前提 ? ? ?1、我们的多个系统都需要推送功能,但是我们又不想每个系统都去实现这样一个推送功能。 ? ? ?2、推送作为一个服务后,可以方便切换,比如一开始我们使用的是极光推送,后来切换到gopush推送,...
分类:
其他好文 时间:
2015-05-10 19:04:26
阅读次数:
142
本地为Ubuntu系统, 本地系统字符编码为: echo $LANG zh_CN.UTF-8 而远程服务器(121.199.42.27)的字符编码为: zh_CN.GB18030 通过ssh登陆上该服务器后,查看tomcat中的catalina.out日志,发现中文是乱码。 以...
分类:
系统相关 时间:
2015-05-10 19:04:05
阅读次数:
350
1. 关于AngularJS AngularJS?是 Google 开源出来的一套 js 工具。下面简称其为?ng?。这里只说它是“工具”,没说它是完整的“框架”,是因为它并不是定位于去完成一套框架要做的事。更重要的,是它给我们揭示了...
分类:
Web程序 时间:
2015-05-10 19:04:08
阅读次数:
133
题意:典型的动态规划例题。又叫做双调欧几里得旅行商问题。算法导论里面的题目。
思路:
dp[i][j] 表示从 i 到 1,再从1到j的距离。在这个路径上,点 1 到 Pmax(i,j) 点之间的所有点有且仅有经过一次。
dp[i][j] = dp[i-1][j] + dis(i,i-1);
dp[i][i-1] = min (dp[i][i-1], dp[i-1][j] + dis(i, j));...
分类:
其他好文 时间:
2015-05-10 19:03:11
阅读次数:
203
问题 Median of Two Sorted ArraysThere are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log(m + n)).
分析本题更经...
分类:
编程语言 时间:
2015-05-10 19:03:48
阅读次数:
119
Problem:
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first
two lists.
Solution:
两个有序链表,每次取头部最小的那个元素,然后将这个元素从原来链表...
分类:
编程语言 时间:
2015-05-10 19:03:44
阅读次数:
119
问题:如何实现student a am i转换成为i am a student?
解析:可将语句完全倒置,成为i ma a tneduts,再将逐个单词倒置,成为i am a student
#include
#include
void reverse_string(char *l, char *r)
{
while (l < r)
{
char tmp = *l;
*l =...
分类:
其他好文 时间:
2015-05-10 19:03:01
阅读次数:
125
n大于一定的范围后,取近似值
1011: [HNOI2008]遥远的行星
Time Limit: 10 Sec Memory Limit: 162 MBSec Special Judge
Submit: 2350 Solved: 837
[Submit][Status][Discuss]
Description
直线上N颗行星,X=i处有行星i,行星J受到行星I的作用...
分类:
其他好文 时间:
2015-05-10 19:04:30
阅读次数:
137
前言
我使用的Android stuido开发android项目,现在有A项目和B项目,B项目中需要用到A项目的apk包(A项目的apk放到B项目的assets目录下)
代码apply plugin: 'com.android.application'
//这里是要输入的路径
def outputPathName = "/Users/zsl/Downloads/Bproject/assets/s...
分类:
其他好文 时间:
2015-05-10 19:01:40
阅读次数:
159
原来的驱动开发都是WDM(Windows Driver Model)的,那时微软推出DDK(Driver Developer Kit)工具。
现在微软进行了升级由WDF(Windows Driver Foundation)来替代WDM,同时推出WDK(Windows Driver Kit)工具。
安装WDK要求的最低系统为Win XP SP3以上。
推荐使用的IDE: VS2010...
/*
* file.cpp: for linux file methods
*/
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define UNIT_TEST 1
// file class
class File
{
pub...
分类:
系统相关 时间:
2015-05-10 19:03:32
阅读次数:
138
QCustomPlot基本用法...
分类:
其他好文 时间:
2015-05-10 19:02:27
阅读次数:
1271
#include
#include
int Read_array(char *str,char check_ch);
int main(void)
{
char *ptr="what are you doing ?";
char ch;
printf("请输入字符\n");
while((ch=getchar())!=...
分类:
其他好文 时间:
2015-05-10 19:02:26
阅读次数:
137