现在位置: 首页 > wolfram发表的所有文章
http_build_query — 生成 URL-encode 之后的请求字符串 说明 string http_build_query ( mixed $query_data [, string $numeric_prefix [, string $arg_separator [, int $enc_type = PHP_QUERY_RFC1738 ]]] )  使用给出的关联(或下标)数组生成一个经过 URL-encode 的请求字符串. 参数说明: query_data 可以是数组或是包含属性的对象, 若query_data是一个数组, 它可能是一维数组, 也可以是包含其它数组的数组. 若query_data是一个对象, 则只有公有的属生才能被合成到结果中.  numeric_prefix 若query_data是一个下标数组, 并且......
阅读全文
  • 10月
  • 01日
综合 ⁄ 共 737字 评论关闭
The navigation controller checks the following things when a new view controller is pushed: 1. If the new top-level view controller has a custom left bar button item, that item is displayed. To specify a custom left bar button item, set the leftBarButtonItem property of the view controller’s navigation item. 2. If the top-level view controller does not have a custom left bar button item, but the navigation item of the previous view controller has a valid item in its backBarButtonItem......
阅读全文
  肖锐(Cooki)个人原创,欢迎转载,转载请注明地址,肖锐(Cooki)的技术博客 http://blog.csdn.net/xiao0026 1. 在AndroidMainfest.xml中加入以下   <uses-permission android:name="android.permission.INTERNET"/>   2. AndroidMainfest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.Cooki.blackjack" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVe......
阅读全文
  • 06月
  • 05日
综合 ⁄ 共 1561字 评论关闭
浅谈BroadCast         上节回顾,上节博客浅谈了Intent是什么,有何作用,如何用。上节主要围绕Intent发送请求给activity做了说明,本节主要说明BroadCast如何使用。   一、广播                    前面已经看到,Intent可以启动新的应用程序组件,实际上他们也可以使用sendBroadcast方法在组件中匿名的广播消息。 在Android中,Broadcast是一种广泛运用的在应用程序之间传输信息的机制。而BroadcastReceiver是对发送出来的 Broadcast进行过滤接受并响应的一类组件。下面将详细的阐述如何发送Broadcast和使用BroadcastReceiver过......
阅读全文
  • 05月
  • 27日
综合 ⁄ 共 313字 评论关闭
转自:http://www.cnblogs.com/changefuture/archive/2011/09/20/2295989.html 方法一 try{ Field field=R.drawable.class.getField("icon"); int i= field.getInt(new R.drawable()); Log.d("icon", i + ""); }catch(Exception e){ Log.e("icon",e.toString()); } 方法二 Resources res=getResources(); int i=res.getIdentifier("icon","drawable",getPackageName());
阅读全文
  • 04月
  • 14日
综合 ⁄ 共 0字 评论关闭
  • 04月
  • 12日
综合 ⁄ 共 8605字 评论关闭
1、什么是Keep-Alive模式? 我们知道HTTP协议采用“请求-应答”模式,当使用普通模式,即非KeepAlive模式时,每个请求/应答客户和服务器都要新建一个连接,完成 之后立即断开连接(HTTP协议为无连接的协议);当使用Keep-Alive模式(又称持久连接、连接重用)时,Keep-Alive功能使客户端到服 务器端的连接持续有效,当出现对服务器的后继请求时,Keep-Alive功能避免了建立或者重新建立连接。 http 1.0中默认是关闭的,需要在http头加入"Connection: Keep-Alive",才能启用Keep-Alive;http 1.1中默认启用Keep-Alive,如果加入......
阅读全文
  • 02月
  • 18日
综合 ⁄ 共 1812字 评论关闭
ArcGIS for Adnroid的SDK版本从10.2开始,就可以更好的支持IntelliJ IDEA了。也就是可以同时良好支持Eclipse和IDEA两种主流的开发工具。 现在ArcGIS for Android的版本到了10.2.2,官方下载地址在: https://developers.arcgis.com/android/ 本文章会将在开发工具中的配置过程进行说明,详细说明在IntelliJ IDEA上的说明,Eclipse上的配置只简略说明。 下载          离线包的下载地址就是: https://developers.arcgis.com/android/         在eclipse上直接下载的话,地址为:http://developers.arcgis.com/android......
阅读全文
  • 01月
  • 18日
综合 ⁄ 共 688字 评论关闭
使用选择法进行排序,代码: #include<iostream> using namespace std; struct Students { int num; char name[20]; char sex; int score; }; int main() { struct Students su[5] ={ {1001,"xway",'M',93},{1002,"minve",'F',49},{1003,"glove",'F',43}, {1004,"sk",'M',65},{1005,"fys",'M',86} }; struct Students temp; const int n=5; int i,j,k; cout<<"before sort:"<<endl; for(i=0;i<......
阅读全文
  • 01月
  • 08日
综合 ⁄ 共 6273字 评论关闭
iOS开发之多媒体播放是本文要介绍的内容,iOS SDK中提供了很多方便的方法来播放多媒体。本文将利用这些SDK做一个demo,来讲述一下如何使用它们来播放音频文件。 AudioToolbox framework 使用AudioToolbox framework。这个框架可以将比较短的声音注册到 system sound服务上。被注册到system sound服务上的声音称之为 system sounds。它必须满足下面几个条件。 1、 播放的时间不能超过30秒 2、数据必须是 PCM或者IMA4流格式 3、必须被打包成下面三个格式之一:Core Audio Format (.caf), Waveform audio (.wav), 或者 Au......
阅读全文
  • 12月
  • 15日
综合 ⁄ 共 797字 评论关闭
Add Two Numbers You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)Output: 7 -> 0 -> 8 思路: 中小学竞赛题。 题解: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ cl......
阅读全文
  • 12月
  • 11日
综合 ⁄ 共 2990字 评论关闭
通常我们用到的只是activity之间的互相跳转和调用,很少会用到apk级别的互相调用。 往往在一些应用上会用到,比如一个支付系统,可能会有很多的一系列的程序调用到:彩票系统、订票系统、团购网……全部使用一个支付系统会显的更加专业,也能减少不必要的重复。 下面介绍两种方法从一个apk启动另一个apk。 两个互相调用的项目是:demoapk1和demoapk2                                demoapk2是被调用的,我们调用它的Pay_Activity.java 所有的界面都是最简单的 这是第一个demoapk1 这是demoapk2的主要activity 这是apk......
阅读全文