代码改变世界

阅读排行榜

浅说ruby嵌套函数

2012-10-28 22:52 by java20130722, 231 阅读, 收藏,
摘要: 想到这个问题是因为看了网上的一个问题,大家可以先看看:http://pivotallabs.com/users/nick/blog/articles/302-ruby-quiz-a-trick-question我先从第二个问题开始讲起:下面的演示可以在irb中,也可以自己写一个main.rb之类的文件运行尝试(我的ruby是1.9.3)首先,开始看一个最简单的函数,def foo 1 end 我们知道ruby的顶级作用域是一个名叫main的Object,那么foo是在self为main中定义的,那它是存在于哪里的呢?增加两行代码puts private_methods.inc... 阅读全文

自定义Dialog之Progress(二)

2013-05-28 19:45 by java20130722, 230 阅读, 收藏,
摘要: 自定义Dialog之Progress(二)系统的Dialog一般是适合UI设计的需求,那么就需要自定义的ProgressDialog.第一想法就是能在应用级别全局改变应用的ProgressDialog的样式。(已经试过,没有成功)做法是:@style/theme.customer_progress_dialog@style/theme.customer_progress_dialog 是自定义的theme如果有成功的,希望能分享下,谢谢。第二种做法是自定义theme, 然后定义一个ProgressDialog:CustomProgressDialog. 在应用里面就用这个.自定义theme:@ 阅读全文

Hive官方手册翻译(Getting Started)

2013-02-27 15:58 by java20130722, 230 阅读, 收藏,
摘要: 翻译Hive官方文档系列,文中括号中包含 注: 字样的,为我自行标注的,水平有限,翻译不是完美无缺的。如有疑问,请参照Hive官方文档对照查看。内容列表Cloudera制作的Hive介绍视频安装与配置系统需求安装Hive发行版从Hive源码编译运行Hive配置管理概览运行时配置Hive, Map-Reduce 与本地模式错误日志DDL 操作元数据存储DML 操作SQL 操作查询示例SELECTS 和 FILTERSGROUP BYJOINMULTITABLE INSERTSTREAMINGSimple Example Use CasesMovieLens User RatingsApache 阅读全文

Head Fisrt Android Development读书笔记(7)Multi Screep Apps

2012-10-19 10:27 by java20130722, 229 阅读, 收藏,
摘要: Screen Navigation1.Create a new Activity and configure it to use a new Layout2.Create an Intent3.Call startActivity or startActvityForResult to launch a new screen4.onActivityResult to deal with data result from launched activityNew Menu Steps1.Create a new menu XML file from the new XML file wizard 阅读全文

SqlDataReader使用

2012-03-06 21:37 by java20130722, 229 阅读, 收藏,
摘要: using System.Data.SqlClient; namespace TestDB { class Program { static void Main(string[] args) { string strConn = @" server = (local); integrated security = true; database = Northwind "; ... 阅读全文
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 115 下一页