现在的位置: 首页 > 搜索结果
0℃
发表于11年前 移动开发 ⁄ 被围观 3,533+
想知道Android系统的关系过程么??? 本文将会展示一个完整的关机处理流程。 What happened when I long press power button ? What is shutdown sequence ? How is it different from desktop linux shutdown sequence? How to change shutdown menu ? Many questions pop-up in mind when we think about Android shutdown sequence. Before you read about shutdown sequence I suggest you to read about boot sequence article . Android is linux based open source operating system, x86 (x86 is a serie...
阅读全文
0℃
发表于11年前 移动开发 ⁄ 被围观 3,801+
开发过移动APP的同学都知道云推送,比如Google的后台服务,联系人同步,邮件同步,APK的自动升级等都是这个机制,其实利用云推送机制还可以实现消息的发送,本文介绍了一种基于PHP后台的推送机制,实现原理还是通过Google的云端服务(Google Cloud Messaging for Android service),android客户端采用的是phoneGap的PushPlugin。 Last days I’ve been working within a Phonegap project for Android devices using Push Notifications. The idea is simple. We need to use the Push Notification Plugin for Andr...
阅读全文
0℃
发表于11年前 程序设计 ⁄ 被围观 3,430+
怎么样打包自己的Python模块,并且分享到PyPI,相信下面的文章会给你一个满意的答案! A completely incomplete guide to packaging a Python module and sharing it with the world on PyPI. Abstract Few things give me caremads like Python modules I want to use that aren’t on PyPI (pronounced “pie pee eye”, or “cheese shop”, not “pie pie”!). On the other hand – aspydanny points out – the current situation on packaging is rather confusing. Therefore I want to help everyone who has some...
阅读全文
2℃
发表于12年前 Web设计 ⁄ 被围观 6,347+
熟悉wordpress建站的童鞋都知道sitemap的重要性,尤其是对网站的SEO以及各大重要搜索引擎的索引都有重要的作用,wordpress已经有许多优秀的sitemap生成插件可以使用,不过他们大部分生成的都只是xml格式的数据,可以直接提交到搜索引擎,方便搜索引擎的索引,但是不方便访客的阅读。 本文介绍一下怎样客制化和建立自己的Sitemap Page页面,可以包括或者排除特定的页面,特定的分类,加入自己定制的信息等等。 建立步骤 1. 为了代码的重用,我们需要利用wordpress主题模板的特性(theme partial),在当前的主题文...
阅读全文
0℃
发表于13年前 程序设计 ⁄ 被围观 4,736+
现在貌似只有人人网最开始使用了OAuth2.0的认证,估计后续这些SNS站点都开始实现了,相比较OAuth1.0来看,2.0的认证过程确实方便了很多。 OAuth2.0 认证流程: Java代码实现: package com.carey.renren.example;   import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URLEncoder; import java.util.Scanner; import java.util.TreeMap;   import com.carey.renren.RenRenHttpClient; import com.carey.renren.RenRenOAuth; import com.carey.renren.utils.RenRenHttpUtil;   ...
阅读全文
0℃
发表于13年前 程序设计 ⁄ 被围观 4,279+
在开发基于Google服务的应用程序中,有很多的情况都需要获取Auth Token。 本文编写了一个简单的shell脚本文件,可方便程序开发人员快速的获取到Auth Token来调试程序。  本示例程序获取的Googel服务为ah,即Google App Engine,如果需要获取其他服务的token,只要修改脚本中的 service=ah 为自己的服务即可。 Google 常用服务和Service Name 对照表 Google API Service name Google Analytics Data APIs analytics Google Apps APIs (Domain Information & Management) apps Google Base Data API gb...
阅读全文
×
腾讯微博