Push的原理:Push的工作机制可以简单的概括为下图 图中,Provider是指某个iPhone软件的Push服务器,这篇文章我将使用.net作为Provider。APNS是ApplePushNotificationService(ApplePush服务器)的缩写,是苹果的服务器。上图可以分为三个...
分类:
移动开发 时间:
2014-07-16 19:44:49
阅读次数:
396
All good so far. We next want to delete the branch on github. However, if we do this the naive way:git push origin :masterwe just get an error like th...
分类:
其他好文 时间:
2014-07-16 19:33:09
阅读次数:
231
这次我们来说下列排序:通过使用 .col-md-push-* 和 .col-md-pull-* 类就可以很容易的改变列(column)的顺序。 Bootstrap-Template-07 ...
分类:
其他好文 时间:
2014-07-14 22:44:53
阅读次数:
269
var projectMemberGrid = Ext.getCmp("projectMemberGrid");
var selFuns = [];
projectMemberGrid.store.each(function(rec){
selFuns.push(Ext.encode(rec.data));
});...
分类:
Web程序 时间:
2014-07-14 11:01:59
阅读次数:
267
写c++程序时我们经常会把函数的定义写在xxx.h中,把函数的实现写在xxx.cpp, 但是当我们写带模版的函数和类时,这样写
就会出现问题,如下:
stack.h
//stack.h
#ifndef STACK_HPP
#define STACK_HPP
#include
#include
template>
class CStack
{
public:
void push(co...
分类:
其他好文 时间:
2014-07-13 18:30:56
阅读次数:
214
近期工作中,发现了一个bug,是和ListView Adapter有关的。产生了FC,描写叙述信息大约是"The content of the adapter has changed but ListView did not receive a notification. Make sure the...
分类:
其他好文 时间:
2014-07-13 17:51:11
阅读次数:
273
1.设置对话框为无边框方法
ModifyStyle(WS_CAPTION | WS_THICKFRAME, 0, SWP_FRAMECHANGED);
2.设置控件灰色与不灰色
void CMthread1Dlg::OnStop()
{
// TODO: Add your control notification handler code here
m_bRun = FA...
1)话筒
权限:telephony
api:navigator.moztelephony
链接参考:https://wiki.mozilla.org/WebAPI/WebTelephony
2) 扬声器
权限:audio
channels选项:["normal", "content",""notification", "alarm", "telephony","ringer"]
使用...
分类:
移动开发 时间:
2014-07-12 20:09:29
阅读次数:
228
好吧。。
直接上模板。。。
queue q;
memset(flow,0,sizeof(flow));
int f = 0;
while(true){
memset(a,0,sizeof(a));
a[s] = INF;
q.push(s);
while(!q.empty)){ //BFS找增广路...
分类:
其他好文 时间:
2014-07-12 20:03:00
阅读次数:
244
首先以示例代码为例:
vector v;
//添加一些元素
fir(int i=0; i<10; ++i)
v.push_back(i);
int* my_favorite_element_ptr = &v[3];
cout<<"My favorite element = "<<(*my_favorite_element_ptr)<<endl;
cout<<"Its address = "...
分类:
其他好文 时间:
2014-07-12 18:34:32
阅读次数:
250