摘要:
使用包管理器 在local.conf中使能就可以: 然后编译后就会有rpm包了: 配置文件server 能够使用ngix和apache。可是我们也能够仅仅用使用python: python -m SimpleHTTPServer 打开浏览器能够看到: 在机器上面查看包的status smart st 阅读全文
posted @ 2017-06-18 21:59
cxchanpin
阅读(956)
评论(0)
推荐(0)
摘要:
import java.net.UnknownHostException; import com.mongodb.BasicDBList; import com.mongodb.BasicDBObject; import com.mongodb.DB; import com.mongodb.DBCo 阅读全文
posted @ 2017-06-18 20:21
cxchanpin
阅读(3537)
评论(0)
推荐(0)
摘要:
题目链接:http://poj.org/problem?id=3368 Description You are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to that 阅读全文
posted @ 2017-06-18 19:03
cxchanpin
阅读(354)
评论(0)
推荐(0)
iOS6和iOS7处理push不同之处,解决反复push,-(void) application: didReceiveRemoteNotification: fetchCompletionHandl
摘要:
如果读者已经知道push的基本知识,本文仅仅是解决一些适配,兼容问题。如果对push 不甚了解,參考以下的文章 1.【iOS push全方位解析】(一) push的概述 2.【iOS push全方位解析】(二) 生成push证书,生成Provisioning Profile 3. 【iOS push 阅读全文
posted @ 2017-06-18 19:02
cxchanpin
阅读(1120)
评论(0)
推荐(0)
摘要:
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <assert.h> #include <stdio.h> #include <unistd. 阅读全文
posted @ 2017-06-18 17:46
cxchanpin
阅读(224)
评论(0)
推荐(0)
摘要:
在Android里怎样使用正則表達式: 以验证username为例。username一般字母开头,同意字母数字下划线。5-16个字节: String regEx = "^[a-zA-Z][a-zA-Z0-9_]{4,15}$"; Pattern pattern = Pattern.compile(r 阅读全文
posted @ 2017-06-18 16:52
cxchanpin
阅读(196)
评论(0)
推荐(0)
摘要:
编写自己定义的JavaScript函数checkPhone(),在函数中应用正則表達式推断手机号码的格式是否正确,不对的给出提示 <script type="text/javascript"> function checkPhone(){ var mobile = document.getEleme 阅读全文
posted @ 2017-06-18 15:53
cxchanpin
阅读(1645)
评论(0)
推荐(0)
摘要:
先看一下standard启动模式的说明: 仅仅有一个实例。在同一个应用程序中启动他的时候。若不存在此Activity实例。则会在当前栈顶创建一个新的实例。若存在,则会把栈中在其上的其他Activity实例销毁掉,并调用此实例的OnNewIntent方法,假设实在别的应用实例中启动它。则会新建一个栈, 阅读全文
posted @ 2017-06-18 15:05
cxchanpin
阅读(1522)
评论(0)
推荐(0)
摘要:
Valid Sudoku Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells a 阅读全文
posted @ 2017-06-18 13:56
cxchanpin
阅读(464)
评论(0)
推荐(0)
摘要:
从词面上来讲。volatile的意思是易变的,也就是说。在程序执行的过程中,有一些变量可能会被莫名其妙的改变,而优化器为了节约时间。有时候不会重读这个变量的真实值,而是去读在寄存器的备份,这种话,这个变量的真实值反而被优化器给“优化”掉了,用时髦的词说就是被“被和谐”了。假设使用了这个修饰词,就是通 阅读全文
posted @ 2017-06-18 12:59
cxchanpin
阅读(518)
评论(0)
推荐(0)
摘要:
Fragment在3.0后增加:android.app.Fragment。在v4的兼容包里也有。 一般为了兼容性还是可能会用:android.support.v4.app.Fragment 生命周期: onAttach,onCreate,onCreateView,onActivityCreated, 阅读全文
posted @ 2017-06-18 11:57
cxchanpin
阅读(244)
评论(0)
推荐(0)
摘要:
动态标绘API 1.2,相较前一版本号(点击进入),该版本号新增对基本标绘符号的支持,包含: 单点、多点、折线、手绘线、多边形、手绘多边形、矩形,并提供对应的编辑功能。 例如以下图所看到的,对多点的编辑。 下图。用单点表示坦克,多点表示战斗机群。 实例代码例如以下: private var plot 阅读全文
posted @ 2017-06-18 11:08
cxchanpin
阅读(309)
评论(0)
推荐(0)
摘要:
模拟发放销售订单界面进行发放操作 PROCEDURE insert_row(x_batch_id OUT NUMBER) IS l_autopack_flag VARCHAR2(1 ); l_autopack_level NUMBER; l_release_method VARCHAR2(1 阅读全文
posted @ 2017-06-18 10:25
cxchanpin
阅读(663)
评论(0)
推荐(0)
摘要:
环境:Ubuntu 9.10 git-1.8.2.3.tar.bz2 1.将安装包下载到所选文件夹下,如:/tmp 2.tar -xjf git-1.8.2.3.tar.bz2 3.cd git-1.8.2.3 4.配置:./configure --prefix=/usr/bin 5.安装,假设直接 阅读全文
posted @ 2017-06-18 09:36
cxchanpin
阅读(794)
评论(0)
推荐(0)
摘要:
近期在做录制视频功能,在找一些资料时发现 要推断是否支持闪关灯,在这记录下来,怕以后忘记 public static boolean isSupportCameraLedFlash(PackageManager pm) { if (pm != null) { FeatureInfo[] featur 阅读全文
posted @ 2017-06-18 08:07
cxchanpin
阅读(309)
评论(0)
推荐(0)
浙公网安备 33010602011771号