Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4424546
  • 博文数量: 1214
  • 博客积分: 13195
  • 博客等级: 上将
  • 技术积分: 9105
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-19 14:41
个人简介

C++,python,热爱算法和机器学习

文章分类

全部博文(1214)

文章存档

2021年(13)

2020年(49)

2019年(14)

2018年(27)

2017年(69)

2016年(100)

2015年(106)

2014年(240)

2013年(5)

2012年(193)

2011年(155)

2010年(93)

2009年(62)

2008年(51)

2007年(37)

发布时间:2014-12-28 00:35:33

原文地址:http://www.cnblogs.com/darkbaby123/archive/2011/06/11/ruby_metaprogramming_file_line.html前言Ruby 元编程中,经常可以看到各种 eval 和 heredoc 的结合。其中很多用 heredoc 的位置都会出现 __FILE__ 和 __LINE__ 这两个变量。本文介绍一下它们的作用,以及为什么要这样做。正文先看一个用 .........【阅读全文】

阅读(1417) | 评论(0) | 转发(0)

发布时间:2014-12-27 23:02:21

原文地址:http://stackoverflow.com/questions/2191632/begin-rescue-and-ensure-in-rubyYes, ensure ensures that the code is always evaluated. That's why it's called ensure. So, it is equivalent to Java's and C#'s finally.The general flow of begin/rescue/else/ensure/end l.........【阅读全文】

阅读(1199) | 评论(0) | 转发(0)

发布时间:2014-12-27 22:56:20

原文地址:http://stackoverflow.com/questions/156362/what-is-the-difference-between-include-and-extend-in-rubyJust getting my head around Ruby metaprogramming... the mixin/modules always manage to confuse me.include : mixes in specified module methods as instance methods in t.........【阅读全文】

阅读(1317) | 评论(0) | 转发(0)

发布时间:2014-12-19 17:17:22

文章来源:http://ruby-journal.com/how-to-integrate-sidekiq-with-activejob/One of the hot thing in Rails 4.2 is the brand new ActiveJob gem, this gem consolidate the API for background job gems on the market such as DelayedJob, Resque, etc. Today I am going to guide you through how to integrate Si.........【阅读全文】

阅读(1598) | 评论(0) | 转发(0)

发布时间:2014-12-10 13:51:57

来源:http://programming-tut.blogspot.jp/2009/10/ruby-on-rails-for-loop.htmlMethodExample CodeOutputFor Loop<% for i in 0..9 %>Result: <%= i %>,<% end %>Result: 0,1,2,3,4,5,6,7,8,9.........【阅读全文】

阅读(1435) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

北大未名居士2013-03-08 10:16

回复  |  举报

北大未名居士2013-03-08 10:16

回复  |  举报

pureal2012-05-09 12:01

你好,看到一个帖子发现你看过APUE2英文版,我也刚好看到读写锁,写饿死的问题。所以想认识交流下,我没找到你的邮箱,我的是dwdang@126.com

回复  |  举报

大鬼不动2010-09-23 00:47

回复  |  举报

chinaunix网友2009-10-12 16:19

你好,你在Google Code上放的sg2fcitx的mainme.c源代码我下载编译会出现段错误。请问你的编译环境是什么?GCC版本是多少? 谢谢。

回复 |  删除 |  举报
留言热议
请登录后留言。

登录 注册