<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>brook (brookzhang)</title>
    <link>https://ruby-china.org/brook</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>IT 高管武汉会女网友遭劫持 发 5 封藏头邮件求救</title>
      <description>&lt;p&gt;本报讯 (记者张延 通讯员张昕)26 岁的小顾是江苏人，从某重点大学毕业进入深圳一家 IT 公司工作，收入颇丰。今年 1 月，感觉婚姻生活不幸福的他在网上认识了 23 岁的女网友“爱上你”聊出感情，来汉见面，不料被劫持，讹走 18 万元存款还被限制人身自由。所幸机智的小顾发出 5 封藏头信，同事看明后报警。&lt;/p&gt;

&lt;p&gt;  昨日，武汉化学工业区公安分局抓获该团伙 14 名嫌疑人。这帮人借用传销组织管理形式，内部层级森严，先骗人后洗脑，不少嫌疑人都曾是受害人。这是我市破获的首个采用传销管理模式的侵财团伙案件。&lt;/p&gt;

&lt;p&gt;&lt;a href="http://hb.sina.com.cn/news/sh/2013-06-05/055979857.html" rel="nofollow" target="_blank"&gt;http://hb.sina.com.cn/news/sh/2013-06-05/055979857.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;好奇的是，那 5 封邮件是怎么藏头的？&lt;/p&gt;</description>
      <author>brook</author>
      <pubDate>Wed, 05 Jun 2013 12:29:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/11506</link>
      <guid>https://ruby-china.org/topics/11506</guid>
    </item>
    <item>
      <title>如果像招聘程序员那样招聘木匠</title>
      <description>&lt;p&gt;面试官：您是木匠了，对吧？
木匠：是的，我就是干这个的。&lt;/p&gt;

&lt;p&gt;面试官：您做木匠有多长时间了？
木匠：10 年。&lt;/p&gt;

&lt;p&gt;面试官：嗯，很好。那现在我有一些技术问题想问问您，看看您是否适合我们团队。可以吧？
木匠：没问题，问吧。&lt;/p&gt;

&lt;p&gt;面试官：首先，我们目前正在做很多棕色房子的构件。不知您之前建过很多棕色的房子么？
木匠：我是个木匠，我当然会建房子。不过人们更愿意刷自己喜欢的颜色。&lt;/p&gt;

&lt;p&gt;面试官：嗯，我理解，不过您是否告知，您有多少建棕色房子的经验呢？
木匠：囧，我真不知道啊。房子建好了，我又不关心刷什么颜色的漆。或许有六个月的经验吧&lt;/p&gt;

&lt;p&gt;面试官：六个月？噢，我们在找有更多棕色房子经验的人了，但是否允许我再问问其他问题呢？
木匠：嗯，没问题。但粉刷是粉刷，你应该懂的。&lt;/p&gt;

&lt;p&gt;面试官：好。能聊聊胡桃木么？
木匠：您想了解什么呢？&lt;/p&gt;

&lt;p&gt;面试官：您做木匠时，经常用胡桃木的木材么？
木匠：当然了，胡桃木、松树、橡树、桃花心木都用过。&lt;/p&gt;

&lt;p&gt;面试官：那您用胡桃木的时间，又多少年呢？
木匠：天哪，我真的不知道。难道我应该要统计胡桃木的数量么？&lt;/p&gt;

&lt;p&gt;面试官：嗯，您估算一下吧。
木匠：好不，那我就说有一年半时间在用胡桃木。&lt;/p&gt;

&lt;p&gt;面试官：那您认为您是处于一个什么级别？普通胡桃木木匠，还是胡桃木大师么？
木匠：胡桃木大师？什么是胡桃木大师啊？当然了，我以前是用过胡桃木的。&lt;/p&gt;

&lt;p&gt;面试官：那您不是胡桃木大师了？
木匠：这个，我就是个木匠，所以我用过很多类型的木材了，你知道的，木材都是有区别的，如果您是一位出色的木匠……&lt;/p&gt;

&lt;p&gt;面试官：嗯嗯，我懂。但我们目前在用胡桃木了，这没问题吧？
木匠：胡桃木很好的！不管您要什么。我是一个木匠。&lt;/p&gt;

&lt;p&gt;面试官：咱能聊聊黑色的胡桃木么？
木匠：怎么了？&lt;/p&gt;

&lt;p&gt;面试官：虽然我们现在已经有了几位用过胡桃木的木匠，但他们都没有用过黑色的胡桃木。您有黑色胡桃木的经验吧？
木匠：当然了，有一些。如果我有更多的经验，是会更好吧。&lt;/p&gt;

&lt;p&gt;面试官：好的。请稍等，我查一下收件箱……
木匠：嗯，您查吧。&lt;/p&gt;

&lt;p&gt;面试官：好了，今天还有件事要问您。我们在用 Rock 5.1 敲钉子。您用过 Rock 5.1 么？
木匠： [囧] 自从 Craftsman 买了一个石场，我知道很多木匠开始用石头敲钉子，但是你知道，说实话，我用射钉枪用的更多。铁锤也用过。我发现我用石头，经常伤到我手指，我手上其他地方也受过伤，因为石头太大了。&lt;/p&gt;

&lt;p&gt;面试官：但是其他木匠都在用石头了。您是说石头不起作用么？
木匠：没有啊，我没说石头没用，确切地说，我认为我的射钉枪更好。&lt;/p&gt;

&lt;p&gt;面试官：嗯。我们的建筑师全部都在用石头，并且他们都喜欢用石头。
木匠：额，他们当然喜欢，但我整天都要敲钉子，这个…… 我需要工作，如果您想用我的花，我肯定愿意用石头。我尽量别禁锢我的思维吧。&lt;/p&gt;

&lt;p&gt;面试官：好的，我们还有其他一些应聘者，我还要……到时候会通知您。
木匠：嗯，感谢您。很荣幸与您会面。&lt;/p&gt;

&lt;p&gt;第二天：&lt;/p&gt;

&lt;p&gt;电话响了……&lt;/p&gt;

&lt;p&gt;面试官：您好？
木匠：您好。还记得我么？您之前在找有黑色胡桃木经验的木匠，我是您之前面试过的那个木匠。我打电话是想看看你们是否已确认人选了。&lt;/p&gt;

&lt;p&gt;面试官：嗯，实际上我们已有人选了。总体来说，我们喜欢您的经验，不过我们决定，还是雇用有很多棕色房子经验的木匠。
木匠：这样啊？那我就丢掉这份工作了，就因为我没有足够多的棕色（房子）经验？&lt;/p&gt;

&lt;p&gt;面试官：嗯，这是部分原因，另外部分原因是，我们找到了薪资要求更低的候选人。
木匠：真的吗，那那位有多少经验呢？&lt;/p&gt;

&lt;p&gt;面试官：其实他根本就不是木匠，他是一位汽车销售，不过他卖过很多棕色的汽车，并且他常和胡桃木内饰打交道。
木匠： [卡] （木匠同学挂了）&lt;/p&gt;</description>
      <author>brook</author>
      <pubDate>Wed, 05 Jun 2013 10:44:49 +0800</pubDate>
      <link>https://ruby-china.org/topics/11501</link>
      <guid>https://ruby-china.org/topics/11501</guid>
    </item>
    <item>
      <title>分享一个好用的 Rails 编辑器-Komodo 支持 windows&amp;linux</title>
      <description>&lt;p&gt;Komodo 是一款 Free 的 Editor，此公司主要靠 Komodo IDE 收费赚钱，Komodo editor 纯免费，但是已经非常好用了 
Komodo 支持 windows,linux,mac ,下载地址&lt;a href="http://www.activestate.com/komodo-edit/downloads" rel="nofollow" target="_blank"&gt;http://www.activestate.com/komodo-edit/downloads&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;我配置了在 railscast 里面看到的 textmate 风格，感觉很舒服。
&lt;img src="https://github.com/brookzhang/komodo-rubyonrails/raw/master/screen.jpg" title="" alt="Screenshot"&gt;&lt;/p&gt;

&lt;p&gt;虽然没有 IDE 复杂，但是简单实用，且 windows linux 通用，大家可以试试看。&lt;/p&gt;

&lt;p&gt;搬到了 github, 欢迎访问 &lt;a href="https://github.com/brookzhang/komodo-rubyonrails" rel="nofollow" target="_blank" title=""&gt;komodo-rubyonrails&lt;/a&gt;&lt;/p&gt;</description>
      <author>brook</author>
      <pubDate>Fri, 02 Nov 2012 10:42:37 +0800</pubDate>
      <link>https://ruby-china.org/topics/6476</link>
      <guid>https://ruby-china.org/topics/6476</guid>
    </item>
    <item>
      <title>在 windows 上做 rails 开发的经验</title>
      <description>&lt;p&gt;作者是 engine yard 上的 Evan Machnic.
    关于在 window 上做 ruby on rails，无论是出自偏爱还是被迫，都值得赞叹支持，并乐见其成，至于自己用什么，仍然是自己做主。这种心态应成为一种品质，而不是原教旨般的偏执狂.
    仍在 windows 下努力的人们，支持你们，让更多的 win 平台的人更容易接触和学习 ror，也让 ror 更有活力更大的世界，加油！&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.engineyard.com/blog/2012/rails-development-on-windows-seriously/?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed%3A+engineyard+%28Engine+Yard%29" rel="nofollow" target="_blank"&gt;http://www.engineyard.com/blog/2012/rails-development-on-windows-seriously/?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed%3A+engineyard+%28Engine+Yard%29&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Rails Development on Windows. Seriously.&lt;/p&gt;

&lt;p&gt;I love Windows. I love how stupidly easy it is for browsing the web, checking email, or writing Word documents (if you actually still do that). I love that Windows is everywhere and even my grandmother can use it.
At the same time, I also HATE Windows. If you're trying to program anything besides .NET, it's an uphill battle.
The title of this post is 'Rails Development on Windows. Seriously.' I'm going to discuss the past, the present, and the future of being a Rails developer in a Windows world; and show you some of the tools you need to be successful.&lt;/p&gt;

&lt;p&gt;The Past
Don't tell anyone because it might ruin my street-cred, but I started programming Ruby on Rails in a Windows environment. At the time (fall 2008) I was using Windows Vista.
Yes, you can all shudder in fear.
As bad as that release was, I made the most of it. Having my only programming experience in a classroom-setting, I installed Aptana RadRails and hit the ground...stumbling.
Back then, there were basically two ways to install Rails on Windows:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Install JRuby and run on top of the Java Virtual Machine&lt;/li&gt;
&lt;li&gt; Download the RubyInstaller executable and the DevKit and install everything manually
I had no idea what JRuby really was or why I needed it and I really wasn't sure what I was doing in the first place so I opted for option two. I think there may have been a way to install through RadRails but it was a craps-shoot if it worked properly.
Everything installed fine and as long as you accepted all defaults then you were golden. Heaven help the programmer who wanted to install Ruby to a different path.
The biggest problem with having to install Ruby this way is that if you didn't grab the DevKit, you couldn't build any C extensions. By the way, Ruby is written in C and there are a wealth of libraries that require C extensions to build correctly. For beginners to run into these errors when all they want to do is write a web app, this sucked.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Present
Let's fast-forward to 2012 and the biggest savior to Rails developers who want to use Windows is RailsInstaller, created and maintained by Wayne E. Seguin.
If you don't know Wayne, he works non-stop on Ruby Version Manager, SM Framework, and RailsInstaller. He does it all for the good of the community, so buy him a beer next time you see him.
RailsInstaller is an amazing piece of software because it packages up everything you need to start programming Ruby on Rails. Out of the box, you get Ruby, Rails, Bundler, Git, Sqlite, TinyTDS, the DevKit for those pesky C extensions, and you actually get support for SQLServer. Trying to hunt down all of these components and installing them separately is a nightmare.&lt;/p&gt;

&lt;p&gt;The Future
Honestly, I don't know what's in store for the future right now, but it has to be better than the past. We've come a long way and there's still a lot of work to be done.
So you've installed RailsInstaller and now you have a Ruby on Rails environment but where do you go from here?
What do I need?
Here are some of the essential things you need to be a successful Rails developer in Windows
Git
If you aren't tracking your changes with Source Code Management, you need to get with the program. I don't care what anyone says, the best one is Git. The best thing about Git is that it's distributed. This means everyone has the full code repository so no waiting on the Subversion server! There's also Github and if you aren't familiar with it, it's amazing. Github brings a social aspect to coding and provides for easy collaboration.
Honestly, I don't care what SCM you use as long as you use something. Quit creating index.html.old. That isn't reliable and if you use a code-hosting service, then you don't need to worry about your computer crashing. And we're running Windows so this is something we probably worry about a few times a day.
Pik
Ruby Version Manager, or RVM, is another exceptional tool written by Wayne. It makes it easy to manage different versions of Ruby, provides sandboxed environments for different projects, and allows people to test software compatibility. Unfortunately it doesn't run on Windows.
The next best thing is a tool called Pik. Using Pik, you can install different versions of Ruby including JRuby and IronRuby. It doesn't have the bells-and-whistles that RVM does but trying to run mutliple Rubies without it would be a nightmare. You can grab Pik from the Github page.
IDE or Text Editor
Now you need a way to actually write your applications. No, we're not going to fire up Visual Studio; it doesn't tend to play well with Rails When choosing an editor, you can either go with a Text Editor or an Integrated Development Environment. All of the options I'll talk about run across platforms so you can use them on Windows, Mac, or Linux.
IDEs
If you're used to an all-in-one package, there are great offerings in JetBrains RubyMine and Aptana Studio. You have to pay for RubyMine but it is by far the most polished and has a ridiculous amount of features for editing, testing, and deploying your application.
Aptana Studio is a free option and if you don't want to shell out the money for RubyMine, is a great alternative. It's built on top of Eclipse so the Java developers will feel right at home.
Text Editors
My favorite and the option chosen by most Rails developers is just a Text Editor. There are a few different options that I recommend but the one thing I don't is Notepad.
Vim is tried and true and has been around forever. It's incredibly extensible, and very fast. People tend to say that learning Vim is hard but really there are a handful of commands to really need to know off the bat and the rest you can pick up as you go. The best thing about Vim is that you can launch it from the command line and start editing.
SublimeText is something that has a pretty big following. It costs a little bit of money and has support for Ruby and Rails baked in. I definitely encourage you to check this one out.
Redcar is a great editor that is actually written in Ruby. Because of this, extending it is easy since you can write the extensions and don't need to learn a separate syntax. Another nice thing is that Redcar has support for TextMate bundles so you can probably find extensions for anything you need.
Learn something
Rails has an incredible community. Learning how to write great Ruby on Rails applications has never been easier and there are resources for any type of learning style.
Screencasts
I have to mention Railscasts becuase the amount of knowledge is just amazing. Ryan Bates has been doing weekly screencasts on Rails topics since 2007(?). These are usually around 10-15 minutes and cover one thing each episode. If you want to learn how to add authenticationto your app quickly and easily, check out Railscasts.
Tutorials
By far, the best tutorial is RailsTutorial by Michael Hartl. He goes into detail on topics such as Ruby, Rails, and test-driven development. The HTML version of the book is free and you can also purchase the PDF. If you want even more instruction, he has some great screencasts there as well.
You can find many more tutorials, screencasts and documentation at rubyonrails.org and by searching Google.
Show the world
So you've written your first Ruby on Rails application and you're wondering where to go from here. Let's share this really cool application with the rest of the world. Save yourself a headache and a lot of work and don't think about deploying to a Windows server. Thankfully, there are multiple Cloud Platform providers these days so you don't even need to set up your own server. I'm obviously biased towards Engine Yard but there are other options and you can see which one fits you better.
Caveat
There's one major thing to know when writing Rails apps on Windows and it mainly comes into play when working across platforms. Because many Windows requires binaries many times for the gems to work correctly, gem developers will release different versions for Unix and Windows. If you're deploying to a Unix environment, you'll need to make sure to install the Unix versions wherever you're deploying.
Troubleshooting
Inevitably, you're going to run into trouble. Even with all of the documentation available, you still sould know where to go for help.&lt;/p&gt;

&lt;p&gt;Ruby on Rails Guides
The Ruby on Rails Guides are exactly what they say. They're basically the official documentation for Rails. Often times they are a great starting point if you need reference for standard Rails topics.
Forums
If you need help on something out of the scope of the guides, a good forum is your next best place. StackOverflow is probably the widest used forum site for programming help. You can ask and answer questions and there is a point system for your activity. The questions are also indexed by Google so a well-formed Google search returns great results.
IRC
The place I go when everything else fails is IRC, which stands for Internet Relay Chat. IRC has been around for years and though I've never been a huge fan, you can talk with people in real time about your issues.
If you're going to be in IRC rooms a lot, you need to find a good desktop client. I've used mIRC with decent success but I'm sure there are many more out there. Whichever you choose, there are a couple rooms that you need to hang out in: #Rails and #RailsInstaller.&lt;/p&gt;

&lt;p&gt;What's next
I know this seems like a lot of information up front and I could probably go into much more detail but I'm trying to save your sanity. If you want to check out the slides from my talk, you can go to emachnic.github.com/rails_dev_windows.
The best thing you can do is get the software and start building something. You can read all of the books and watch all the screencasts you want but until you build a real application, the information won't stick. If you need help, use the resources and you can find me online everywhere as emachnic. Good luck and most important, HAVE FUN!&lt;/p&gt;

&lt;p&gt;I'd like to thank everyone on the RailsInstaller and RubyInstaller teams (Wayne E. Seguin, Luis Lavena, Ken Collins, etc.), as well as anyone who has contributed to make Rails development on Windows at least somewhat bearable. This road would be much harder without your help and every developer owes you a debt of gratitude. &lt;/p&gt;</description>
      <author>brook</author>
      <pubDate>Thu, 01 Mar 2012 09:11:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/1518</link>
      <guid>https://ruby-china.org/topics/1518</guid>
    </item>
  </channel>
</rss>
