情况是这样的,我的wordpress并不是放在网站的根目录的,而是放在/blog目录下的,然后在wordpress中设置固定链接的时候,每次都出错,用了网上几个方法都不行,后来在http://codex.wordpress.org/Nginx找到一个解决办法。我正好安装了wp super cache...
分类:
其他好文 时间:
2014-08-02 12:36:03
阅读次数:
207
这样来写:
public void onCreate() {
super.onCreate();
ntfmngr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
setNotifyType(R.drawable.logo,"aaaaaaaaaaa",3);
}
private void setN...
分类:
移动开发 时间:
2014-08-02 07:42:43
阅读次数:
218
publicclassMyClassLoaderextendsClassLoader{
Stringpath;//自定义类加载器所负责的文件夹
publicMyClassLoader(Stringpath){
super();
this.path=path;
}
@SuppressWarnings("deprecation")
@Override
protectedClass<?>findClass(Stringname)throwsClass..
分类:
其他好文 时间:
2014-08-01 23:21:32
阅读次数:
466
效果图:
这样来写:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.test);
ListView list = (ListView)findViewById(R.i...
分类:
移动开发 时间:
2014-08-01 23:15:32
阅读次数:
346
public class ItemAdapter extends ArrayAdapter { private final List items;public AnswerItemAdapter(Context c, List items) { super(c, 0, items...
分类:
移动开发 时间:
2014-08-01 19:25:52
阅读次数:
239
创建工程Box2DTest,去掉背景和精灵对象等。首先在HelloWorldScene.h头文件定义一个屏幕像素与物理世界长度转换宏,并引入box2D头文件 #define PIXEL_TO_METER 30 #include "Box2D/Box2D.h" 再声明几个函数与变量 void crea...
分类:
其他好文 时间:
2014-08-01 15:22:01
阅读次数:
196
个人觉得通过自定义listView控件比较简单,可以解决在scrollView中嵌套listview的问题。
代码如下:
public class MyListView extends ListView {
public MyListView(Context context) {
super(context);
}
public MyListView(Context conte...
分类:
其他好文 时间:
2014-08-01 13:45:12
阅读次数:
224
当Activity的高度不够滑动的时候,ImageView会盖掉ScrollView的OnTouchListener监听。
这个时候需要设置Activity的
@Override
public boolean dispatchTouchEvent(MotionEvent ev){
super.dispatchTouchEvent(ev);
return productG...
分类:
其他好文 时间:
2014-08-01 10:52:01
阅读次数:
266
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self request];}- (voi...
分类:
其他好文 时间:
2014-08-01 10:27:41
阅读次数:
247
简单DP,可以理解为背包问题的变式。(想当初苯渣会错题意,以为只要输出任意一组解啊!结果一趟DFS在第14个点上WA三次啊!TUT)(第14个点上WA的一定是用贪心或一趟DFS做的!)首先找到10000以内的super_prime,共201个。(不是打表- -)这部分代码可以在行到行找到。然后DP:...
分类:
其他好文 时间:
2014-07-31 16:35:46
阅读次数:
199