码迷,mamicode.com
首页 >  
搜索关键字:convert standalone    ( 5511个结果
The method convert(String) of type DateConverter must override a superclass method
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
【leetcode刷题笔记】Roman to Integer
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
【leetcode刷题笔记】Integer to Roman
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.题解:基本的罗马字符和数字对应如下表所示:罗马字符数字I1V5X10L50C100D50...
分类:其他好文   时间:2014-07-21 10:05:16    阅读次数:286
Ubuntu Linux 批量修改图片大小以及文件重命名
0x00本文属于随笔, 仅供作者学习记录.0x01 批量修改图片大小:root@host:~/$ find ./ -name '*.jpg' -exec convert -resize 220X520! {} {} \;备注: 上述命令中,find 路径 -name 匹配.jpg后缀的文件-exec...
分类:系统相关   时间:2014-07-21 09:35:06    阅读次数:334
string 到 Color 的转换示例:
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
Mongoid Without Rails
questionI'm playing with a standalone ruby application and can't configure Mongoid 3.0.13 to work.I've run across a couple example apps that have conf...
分类:其他好文   时间:2014-07-19 15:29:05    阅读次数:260
TreeView
class TreeViewLineConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.Culture...
分类:其他好文   时间:2014-07-18 13:39:42    阅读次数:319
JSONObject 解析
之前解析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
iconv 用法封装
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实现 最简 优化法。knock out type convert 与我之简化orm的实现原理及实现细则,最简化开发法
现在的.net or构架,大家认同的各种大大小小,ef,subsonic,nhibernate,甚至小一些的petapoco这种,但用过的人我想他们考虑的是比较多。小一些的Petapoco也有几千行的代码。而有一些或是配置困难,或是脱离不了一些sql,而我一直在寻找一种更简便的方法简化自己的开发,使...
分类:Web程序   时间:2014-07-18 10:14:10    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!