问题描述:我有一个类foo.bar.Baz,我想让Baz这个类的日志输出到指定的日志文件中,其它的就使用默认的配置。log4j.rootLogger=ERROR, logfilelog4j.appender.logfile=org.apache.log4j.DailyRollingFileAppen...
分类:
其他好文 时间:
2015-01-08 10:59:15
阅读次数:
2740
报错信息ActionBarImpl can only be used with a compatible window decor layout原因:1:requestWindowFeature(Window.FEATURE_ACTION_BAR);与android:theme="@android:...
分类:
其他好文 时间:
2015-01-08 09:31:48
阅读次数:
138
第一种方法:就是list中对象(bean文件)实现Comparable接口,代码如下:package com.mapred.entity;public class Bar implements Comparable{ private String id; private String hexVal....
分类:
编程语言 时间:
2015-01-07 18:42:49
阅读次数:
200
1.向下取整var a = ~~1.2;2.转数字var time = + new date();3.设置默认值var a = bar || "default" //当bar 为undefined,null,"",0,false,Nan时,a的值为default4.isNaN 的坑isNaN(a) ...
分类:
Web程序 时间:
2015-01-07 18:41:38
阅读次数:
185
ios7以后的标题栏默认风格显示式文字黑色,背景是浅色,但是很多时候我们希望是改成深色背景,白色文字的,怎么改呢在plist里面设置View controller-based status bar appearance 为 NO;设置statusBarStyle 为 UIStatusBarStyle...
分类:
移动开发 时间:
2015-01-07 18:26:35
阅读次数:
226
1,Search Bar 怎样去掉背景的颜色(storyboard里只能设置background颜色,可是发现clear Color无法使用)。其实在代码里还是可以设置的,那就是删除背景view[[self.searchBar.subviews objectAtIndex:0] removeFrom...
分类:
移动开发 时间:
2015-01-07 12:31:21
阅读次数:
253
按字母顺序axis:数轴或坐标轴表示两个维度上数据尺度的直线bar chart:条形图 (参见Excel)以矩形宽度反映数值大小的图表形式bar:条形以宽度反映数值大小的矩形(rect)bind:绑定把数据和视觉元素联系在一起的函数column chart:柱形图 (参见Excel)以矩形高度反映数...
分类:
其他好文 时间:
2015-01-07 12:31:03
阅读次数:
97
元素控件 尺寸(pts) Window(含状态栏) 320 x 480 Status Bar的高度 ...
分类:
移动开发 时间:
2015-01-05 18:15:21
阅读次数:
171
本篇文章由:http://www.sollyu.com/cocos2d-x-2-0-4-ios7-cannot-be-full-screen-problem/说明▼ 症状如下图解决打开你工程的.plist配置文件,然后添加View controller-based status bar appear...
分类:
移动开发 时间:
2015-01-05 12:29:51
阅读次数:
161
#绘制条形图
import numpy as np
import matplotlib.pyplot as plt
y=[]
plt.figure(1)
width=1
for i in range(len(y)):
plt.figure(1)
plt.bar(i*width,y[i],width)
plt.xlabel("X")
plt.ylabel("Y")
plt.show(...
分类:
其他好文 时间:
2015-01-04 17:13:16
阅读次数:
169