push certificate

摘要: developer_identity.cer <= download from Applemykey.p12 <= Your private keyopenssl x509 -in developer_identity.cer -inform DER -out developer_identity.... 阅读全文
posted @ 2015-07-03 11:21 archie2010 阅读(159) 评论(0) 推荐(0) 编辑

Xcode The operation couldn’t be completed. (NSURLErrorDomain error -1012.)

摘要: 使用Xcode SVN 出现问题The operation couldn’t be completed. (NSURLErrorDomain error -1012.)解决方法:打开终端 然后输入如下命令svn ls xxxx(xxx是你SVN Server的地址)这里询问你是否允许这个地址的访问,... 阅读全文
posted @ 2014-07-02 08:03 archie2010 阅读(601) 评论(0) 推荐(0) 编辑

jsoup解析html

摘要: 介绍Jsoupjsoup 是一款 Java 的 HTML 解析器,可解析某个 URL 地址、HTML 文本内容,然后生成 Document 对象提供了类似CSS或jQuery的语法来查找和操作元素查找元素生成Document对象 Document doc = Jsoup.connect("http://www.cnblogs.com/archie2010/") .get();查看本网页的源代码,找比较有特征的元素进行操作1、查找网页的<title>元素,即网页标题 Elements title=doc.select("title"); ... 阅读全文
posted @ 2013-04-10 14:07 archie2010 阅读(1961) 评论(1) 推荐(3) 编辑

MongoDB学习(四)SpringData与MongoDB集成

摘要: 1、配置文件mongo-config.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns: 阅读全文
posted @ 2012-12-22 19:43 archie2010 阅读(1390) 评论(0) 推荐(0) 编辑

MongoDB学习(三)MongoDB shell 命令行的使用

摘要: 首先要启动MongoDB shell工具,即bin下的mongo.exe常用shell命令如下:1、查询本地所有数据库名称> show dbs;2、切换至指定数据库环境(若无指定的数据库,则创建新的库)> use dbtest;切换至dbtest库或创建名为dbtest的库3、查询当前库下的所有聚集集合collection(相当于table)> show collections;4、创建聚集集合> db.createCollection('employee');创建了一个名为'employee'的聚集集合5、插入数据> db.emp 阅读全文
posted @ 2012-10-07 09:29 archie2010 阅读(4324) 评论(0) 推荐(3) 编辑

MongoDB学习(二)MongoDB Java增删查改

摘要: 相关资料1、MongoDB for Java的驱动包 https://github.com/mongodb/mongo-java-driver/downloads2、在线文档 http://www.mongodb.org/display/DOCS/Java+Language+Center操作1、查询某张表(在MongoDB中称之为集合)的所有数据Java代码DBTest.javapackage com.archie.mongodb;import java.net.UnknownHostException;import com.mongodb.DB;import com.mongodb.DBC. 阅读全文
posted @ 2012-09-29 23:06 archie2010 阅读(5243) 评论(1) 推荐(1) 编辑

MongoDB学习(一)安装配置

摘要: 介绍MongoDB是一个基于分布式文件存储的数据库。旨在为WEB应用提供可扩展的高性能数据存储解决方案。它是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的。他支持的数据结构非常松散,是类似json的bson格式,因此可以存储比较复杂的数据类型。Mongo最大的特点是他支持的查询语言非常强大,其语法有点类似于面向对象的查询语言,几乎可以实现类似关系数据库单表查询的绝大部分功能,而且还支持对数据建立索引特点 *高性能、易部署、易使用,存储数据非常方便。 *面向集合存储,易存储对象类型的数据。 *模式自由。 *支持动态查询。 ..... blah... 阅读全文
posted @ 2012-09-29 22:10 archie2010 阅读(604) 评论(0) 推荐(1) 编辑

Titanium下拉框效果

摘要: 运行效果:app.js代码:Titanium.UI.setBackgroundColor('#000');var win1 = Titanium.UI.createWindow({ backgroundColor:'#000'});//创建2D矩阵var tr = Titanium.UI.create2DMatrix();tr = tr.rotate(90);//创建下拉效果的Buttonvar drop_button = Titanium.UI.createButton({ style:Titanium.UI.iPhone.SystemButton.DISCL 阅读全文
posted @ 2012-08-03 13:58 archie2010 阅读(943) 评论(0) 推荐(0) 编辑

Titanium 列表显示TableView

摘要: 效果:Titanium中列表显示需要创建TableView var tableView = Ti.UI.createTableView({ style: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE //TableView样式 });TableView的每一个行叫做TableViewRow设置TableViewRow的hasChild为true便可显示这样的效果:点击HasChild行进入列表显示画面(图2)需要添加点击事件 tablerow.addEventListener('click', function() ... 阅读全文
posted @ 2012-07-08 20:56 archie2010 阅读(1409) 评论(2) 推荐(2) 编辑

Titanium环境搭建for mac

摘要: 关于TitaniumAbout Appcelerator Appcelerator’s Titanium is the leading mobile platform of choice for thousands of companies seizing the mobile opportunity. With more than 35,000 applications deployed on 40 million devicesTitanium号称是领先的移动开发平台,成为成千上万的企业移动开发选择。已经超过35,000个应用程序部署在40万台设备上下载地址:https://my.appc 阅读全文
posted @ 2012-06-30 09:15 archie2010 阅读(1711) 评论(1) 推荐(2) 编辑