The method convert(String) of type DateConverter must override a superclass method那是因为你的Compiler 是jdk1.5,只要把它改为 1.6就可以了方法:j2ee换成 7
分类:
其他好文 时间:
2014-07-22 22:52:59
阅读次数:
154
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.题解:转换的方法:从左往右扫描罗马字符,如果当前的字符对应的数字比上一个数字小,就直接加...
分类:
其他好文 时间:
2014-07-21 10:05:42
阅读次数:
223
string colorstr = "#FF4D4D4D";string hex = colorstr.ToString().Replace("#", "");byte alpha;byte pos = 0;if (hex.Length == 8){ alpha = System.Convert.ToByte(hex.Substring(pos, 2), 16); pos = 2;}else{ a...
分类:
其他好文 时间:
2014-07-20 09:15:00
阅读次数:
345
When i run svn up in the folder, i got these error:svn: Error converting entry in directory 'XXXXX' to UTF-8svn: Can't convert string from native enco...
分类:
其他好文 时间:
2014-07-19 21:20:46
阅读次数:
247
创建testimg.pyimport sysfrom PIL import Image img = Image.open(sys.argv[1]).convert('YCbCr') w, h = img.size data = img.getdata() cnt = 0 ...
分类:
编程语言 时间:
2014-07-18 19:19:52
阅读次数:
358
class TreeViewLineConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.Culture...
分类:
其他好文 时间:
2014-07-18 13:39:42
阅读次数:
319
之前解析json一直用get的方法,但是如果抛异常会让解析中断很烦人,今天发现了JSONObject还提供了一个更好用的方法opt,看来以后文档还是要认真的读的,下面是文档中的原文。
A JSONObject constructor can be used to convert an external form JSON text into an internal form whose valu...
分类:
Web程序 时间:
2014-07-18 12:32:58
阅读次数:
285
bool iconv_convert(const std::string& in, std::string& out, const char* fromcode, const char* tocode)
{
char buffer[128];
auto cd = iconv_open(tocode, fromcode);
if (cd != nullptr)
{...
分类:
其他好文 时间:
2014-07-18 11:15:10
阅读次数:
188
现在的.net or构架,大家认同的各种大大小小,ef,subsonic,nhibernate,甚至小一些的petapoco这种,但用过的人我想他们考虑的是比较多。小一些的Petapoco也有几千行的代码。而有一些或是配置困难,或是脱离不了一些sql,而我一直在寻找一种更简便的方法简化自己的开发,使...
分类:
Web程序 时间:
2014-07-18 10:14:10
阅读次数:
204
--获取当前日期(如:yyyymmdd) select CONVERT (nvarchar(12),GETDATE(),112)--获取当前日期(如:yyyymmdd hh:MM:ss) select GETDATE()--获取当前日期(如:yyyy-mm-dd) Select Datename(y...
分类:
其他好文 时间:
2014-07-16 18:25:28
阅读次数:
212