上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 152 下一页
摘要: 我的Android进阶之旅 >怎样将Activity变为半透明的对话框?能够从两个方面来考虑:对话框和半透明。 在定义Activity时指定Theme.Dialog主题就能够将Activity设置为对话框风格。 通过改动Theme.Dialog主题的android:windowBackground属 阅读全文
posted @ 2017-06-19 08:18 cxchanpin 阅读(1514) 评论(0) 推荐(0)
摘要: 使用包管理器 在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)
摘要: 如果读者已经知道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)
上一页 1 ··· 69 70 71 72 73 74 75 76 77 ··· 152 下一页