http://ruby-doc.org/core-2.1.2/File.html#method-c-dirname(1)basename(file_name [, suffix] ) → base_nameReturns the last component of the filename give...
分类:
其他好文 时间:
2014-08-28 17:58:25
阅读次数:
202
<!--?Base?application?theme?is?the?default?theme.?-->
<style?name="Theme"?parent="android:Theme"></style>
<!--?Variation?on?the?Holo?Light?theme?that?styles?the?Action?Bar?...
分类:
其他好文 时间:
2014-08-28 17:04:11
阅读次数:
244
利用题目中给出的公式和hint可以得到两个有用的公式:
phi^(n) = phi^(n-1)+phi^(n-2)
2*(phi^n) = phi^(n+1)+phi^(n-2)
可以计算出phi^100远大于10^9,所以推测最后得到的phi进制的数整数和小数部分应该不会超过100位,事实表明,50位就能过。
所以最终变成了简单的模拟。
Golden Radio Base
...
分类:
其他好文 时间:
2014-08-28 00:56:08
阅读次数:
263
我们知道,在对话框中,屏蔽ESC键自己主动退出能够选择重载OnCancel为哑函数的方法: void CXXXXDlg::OnCancel() { // TODO: Add your specialized code here and/or call the base class //CD...
分类:
其他好文 时间:
2014-08-27 23:11:28
阅读次数:
295
/* 上传图片 */ //#define API_BASE_URL(_URL_) [NSURL URLWithString:[@"http://172.20.0.248:8080/BaiXin/mapi/" stringByAppendingString:_URL_]] ASIFormD...
分类:
移动开发 时间:
2014-08-27 18:25:38
阅读次数:
237
LOCAL_PATH := $(call my-dir)SDK_PATH := ../../..include $(CLEAR_VARS)LOCAL_MODULE := libiconv_staticLOCAL_SRC_FILES := $(SDK_PATH)/base/3dparty/libico...
分类:
其他好文 时间:
2014-08-27 18:10:18
阅读次数:
230
Jboss wildfly 添加 JDBC driver我这里使用的是wildfly-8.0.0.Final第一步:首先在modules里面添加mysql的驱动包例如:modules\system\layers\base\com 在这下面新建 mysql文件夹,然后在mysql下面建子文件夹main...
分类:
数据库 时间:
2014-08-27 18:02:58
阅读次数:
293
第一步先做一个备份#!/bin/shexport ORACLE_BASE=/home/oracle/appexport ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1export ORACLE_SID=orclexport LD_LIB...
分类:
数据库 时间:
2014-08-27 17:52:59
阅读次数:
201
直接看例子:#include#includeusing namespace std;struct Base{ int ba; int bb; void printB(){ coutb.ba = 12; a->b.bb = 34; a->aa = 65; ...
分类:
移动开发 时间:
2014-08-27 15:58:08
阅读次数:
177
一、返回类型为Map问题 cxf的restful实现已经实现返回类型为Map,不需要做任何的转换。 二、参数为Map问题 因为cxf不直接支持参数为Map情况,所以需要我们定义一个类型转换适配器 package com.winssage.base.modu...
分类:
其他好文 时间:
2014-08-27 14:52:39
阅读次数:
213