Software Engineering Intern - 2012, Kude Labs

Kude Labs (酷德实验室) is a growing software development firm focused on building high quality web applications. Our office is located in Guangzhou Wuyang New Town (广州市五羊新城).

We are happy to offer internship positions for students looking to improve their skills and gain some practical experience working on real-world projects. Intern positions are part time and can transition into a full time position after graduation. The majority of our full-time employees joined our team first as interns.

1. Software Development Intern- Web Applications, Ruby on Rails

We are looking for smart software engineers with experience and interest in Web applications. We develop in Ruby on Rails with a distributed team partly in China, partly in the US.

Ideal candidates would have:

  • Outstanding analytical thinking and software design skills
  • Computer Science background, or other Engineering degree and significant programming experience
  • Experience with Ruby on Rails, or possibly other Web App framework and ability to learn quickly
  • Experience using Linux or some other flavor of Unix
  • Deep understanding of HTML and CSS
  • Experience with modern Javascript and AJAX techniques
  • Good written and oral communications skills
  • Open-minded and willing to share ideas with others
  • Self-motivated, cheerful, friendly, upbeat outlook

2. Software Testing Intern - Web applications

We are also looking for smart QA engineers for testing the Web Applications we develop.

Ideal candidates would have:

  • Outstanding analytical thinking abilities
  • Patient and precise work style
  • Engineering background
  • Experience with open source tools
  • Some experience using Linux or some other flavor of Unix
  • Excellent written and oral communications skills
  • Self motivated and able to work independently
  • Nonjudgemental, welcoming attitude

To Apply:
Please send an ENGLISH letter of interest, references and resume to: intern2012@kudelabs.com.
We look forward to working with you and welcoming you as a part of the Kudelabs family.

Posted by 潘小园 18 Apr 2012 at 05:05AM


rails 3.2: cap deploy with assets

In rails 3.2, you need to precompile your assets (javascripts, stylesheets & images) when doing your deployment to server. There are couple ways to do this:


Add public/assets into your git branch before deployment.

You need to run the rake assets:precompile task locally, and then commit it into your staging or production branch. Note that you cannot commit into your development branch, otherwise, you have problem in development mode, e.g. javascript function got included twice.

The problem is obvious, you end up with extra files in your git repository, and your staging or production branch cannot be merged back into development branch.


Use Capistrano deploy/assets to precompile automatically on server.

This is quite easy to do. You just need to modify your Capfile:


# Uncomment if you are using Rails' asset pipeline
# load 'deploy/assets'

I use this method if the assets is quite tiny. However, it's not something super smart that will detect if your assets content really changes. It just simple precompile every time when you do cap deploy. So, it your assets is pretty large, your every deployment will be very slow. And if your server is quite cheap, you will notice that the server CPU is very high for a while.


I end up to write a cap task, cap deploy:assets, to do with it.

My idea is we don't deal with any assets precompile if just cap deploy, since it might be quite expensive. We wrote another deploy task deploy:assets for it, similar to the deploy:migrations.

  • first, we precompile locally, to avoid high cpu on server, and I actually found that my MacBook Pro is much powerful than some of our servers.
  • zip the whole public/assets directory as public/assets.tar.gz
  • upload the public/assets.tar.gz to shared directory
  • unzip the assets.tar.gz to shared/assets
  • remove the public/assets & public/assets.tar.gz locally, so that we won't have problem in the development mode below is the task I wrote for this deployment behavior.


namespace :deploy do
  task :ln_assets do
    run <<-CMD
      rm -rf #{latest_release}/public/assets &&
      mkdir -p #{shared_path}/assets &&
      ln -s #{shared_path}/assets #{latest_release}/public/assets
    CMD
  end

  task :assets do
    update_code
    ln_assets
    
    run_locally "rake assets:precompile"
    run_locally "cd public; tar -zcvf assets.tar.gz assets"
    top.upload "public/assets.tar.gz", "#{shared_path}", :via => :scp
    run "cd #{shared_path}; tar -zxvf assets.tar.gz"
    run_locally "rm public/assets.tar.gz"
    run_locally "rm -rf public/assets"
    
    create_symlink
    restart
  end

end


Posted by Shaokun 28 Mar 2012 at 07:11AM


Teatime at Kudelabs

teatime at kudelabs

We just set up a new tea corner to enjoy some winter sunshine.

Posted by adevadeh 12 Jan 2012 at 01:35AM


Looking for an Admin Assistant

We think Kudelabs is a great place to work. Luckily for you, we are looking for someone to join our team. The position available is Administration Assistant. To apply please send your ENGLISH cover letter and resumè to admin2012@kudelabs.com.

Task scope:

  • Support and assist in HR, Accounting, and office administration
  • Translating English-Chinese for alien employees/visitors
  • Maintaining office place, organizing accommodation for visitors
  • Assisting with travel arrangements and visa
  • Procuring office supplies and special items
  • Offering support to company events

Education and skills:

  • Major in English, Business Administration, HR related disciplines
  • Good command of English in speaking and writing
  • Proficiency with basic office software
  • Must be a true qi-gong master, able to perform the 42 katas while playing ukulele
  • Smart, independent, and flexible/adaptable
  • Self-motivated, competent with communicating via email

Others:

  • Students graduating in 2012 are welcome to apply
  • Be really interested in Office job and accountant business.
  • Local resident is preferable but not a must.

Terms:

  • Full time
  • Salary will depend on experience and ability (RMB2500-3500)
  • Company lunch provided
  • Flexible working hours

Posted by adevadeh 27 Dec 2011 at 02:41AM


tags in git for sane version numbers

The problem

In the svn days, branching was expensive, repositories were centralized ... life was hard. But one thing was easy; each revision had a number and that number went up each time a change was committed to the repository. This made versioning easy: v1, then v2, later v345, finally v1202, anyone can see this and understand.

When switching to git, there is a bit of a learning curve, as each commit is named with an unpronounceable 40 character hexidecimal hash. It's really easy to tell a client, "I just deployed v434, it has all the features we talked about yesterday" Or, "Yeah, you're looking at v57, the new features are in v62" . Its much more difficult to tell a client, "Sorry for the mixup, you are looking at gdac40b3 but the bug is fixed in 616f65bb". I can already see eyes glazing over in confusion.

git has a really handy tags feature. It is perfect for large complicated projects where several commits go into each new release, and the release schedule is on the scale of weeks rather than days. You tag 1.0, then 1.1, 1.1.1 - and so on. These are sane version numbers and are easy to talk about. The problem is that they take work. When you are working on something uncomplicated and the release cycle measures in days or hours, nothing beats the old commit by commit versioning system.

The solution

To get automatic revision numbers in git, we use the native tags, but in a slightly different way. The git describe, command has a handy feature, it can figure out how many commits your repository has after the last tag. What this means is that when you create a tag, say 1.0, 4 commits later git describe will call this "1.0-4-616f65bb". What I propose is to use this feature to our advantage. Rather than tag at the end of a target version, say 1.1.1, we tag at the beginning, and let git to the work. And rather than 1.1.1, we use a meaningful name. So for example, I might use a tag like this:

$ git tag -a 'milestone1' -m 'starting work for milestone 1, due in 2 weeks'
$ git push --tags

From here on out, git will automatically count the commits for us, so we have a sane version number to talk about with clients. If we want to see it, all we need to do is this:

$ git describe
milestone1-34-g4a1e1d4

Which I can then use to tell the client, "Ok, I just deployed milestone1-34, we added the feature to read your thoughts, please check it out and let me know - oh wait ... the software can tell me."

Something that we always do is embed the current revision somewhere into the software so that we know what version the user is seeing. In Rails, I just added this to config/initializers/git_helper.rb

# VERSIONING
git_version_cmd = "git describe"
$revision = `#{git_version_cmd}`
$revision = $revision.strip
puts "starting version: #{$revision}"

I can now put $revision in the footer, or hide it in a comment somewhere on the page. This helps keep everyone in the loop and prevent misunderstandings about what version someone may be looking at.

This is just one way to manage versions in git, we'd love to hear yours!

Posted by adevadeh 22 Dec 2011 at 07:50AM


conflict-when-git-up

When I started to use Git, I felt really pain for it. The problem is that when your team mate told you that he has checked in, and you are willing to see the update right away. So you just 'git up', and then you probably see something like 'you need to commit first before merging'. Oops, but I am just in the middle of modifying something, I am not ready at all to check in.

Well, that's what git up are different from svn up. Here, one tips is:

git stash save   # this will save your local changes to a temporary place, and clean up your workspace
git up                 # here, you could just update to the HEAD of your branch, probably master
git stash pop    # then you could get your local change back, and you probably need to fix the conflicts here

http://lists-archives.org/git/708097-you-have-local-changes-cannot-switch-branches-error-question.html

Posted by Shaokun 22 Dec 2011 at 07:49AM


地球人已经无法阻止ukulele了

Ukulele

自从@americanfood从夏威夷带了一把ukulele回来,ukulele的发展势头在Kudelabs就一发不可收拾。如果你来到Kudelabs, 也许你第一句话会问,"你们这儿是卖Ukulele的么?",我们也不会感到奇怪,因为确实有人这样问过!而昨天更有6个ukulele到货,上图为Jevgenij与其中一部分小U的合照。

Kudelabs已经无法阻止Ukulele了,地球人已经无法阻止Ukulele了!让ruby 和 ukulele 欢乐地融合起来吧!

Since @americanfood brought a Ukulele back from Hawaii, Kudelabs has been caught up in a Ukulele fever. Visitors to the office sometimes ask if we are a musical instrument company. Yesterday we got another shipment, and now the office really does look like an instrument shop!

We love our ukes! The world can't stop the Uke!

In the photo above, Ukulele learner @jevgz practices his moves. Photo by @littlepxy.

Posted by 潘小园 08 Dec 2011 at 08:25AM


Rails on Campus: 华农版 - Session #3

The excellent students at South China Agriculture University

Rails on Campus Roundup / Rails on Campus 大聚集


Last Saturday we concluded the Rails on Campus: 华农版 (SCAU) program with session #3. We wish to thank Dean Song, Professor Sun, and all the students who took the time to attend. We really appreciate working with such amazing students, and we were very happy to be able to come to your school.

上周六我们在华农顺利地进行了Rails on Campus 第三期活动。在此非常感谢宋主任,孙教授以及所有到场的学生。 真的很难得可以跟这么多这么优秀的学生一起分享和学习, 我们也很高兴能够来到你们学校。

And special congratulations to 欧振聪 Clarence Au (@onionou) the winner of our coding competition!

同时,我们在这里恭喜欧振聪同学@onionou赢了我们组织的这场代码比赛!

Over the course of 3 sessions, we've introduced the students to the basics of Rails, and hopefully they will be able to keep learning about Rails and ruby. To recap, here's what we've gone over:

通过这三次活动,我们向学生们分享了一些Rails的基本知识,希望他们可以在课余时间继续学习Rails和Ruby。概括一下,我们谈及的有以下方面的话题:

  • Getting the Rails environment - RailsInstaller.org, ruby-lang.org, SublimeText
  • Basic ruby syntax - messages.each {|m| puts m}, hash = {:key1=>'val1'}
  • Creating a new Rails app from scratch - rails new miniblog
  • Using scaffolding to get started quickly - rails generate scaffold message body:text
  • Creating associations between models - message: has_many :replies, reply: belongs_to :message
  • Using Rails view helpers to build forms - form_for [:message, Reply.new]
  • How to access the Rails session - session[:user_id]
  • Writing filters to manage authentication - before_filter :require_login
  • Custom routes for easy URLs - match 'login' => 'sessions#new'
  • Deploy your app to share with the world - heroku, DotCloud

The result of our work in class should be a working miniblog that you can share with your friends. Anyone can login, post messages, and reply to other users' messages.

在课堂上我们的练习任务是:创建一个miniblog, 通过这个miniblog 你可以跟朋友分享,每个人都可以登录, 发表信息同时也可以回复其他用户的信息。

We'd love to see you continue with your code. Add more features, improve the design, and put it up on heroku! Make sure to let us know via the Rails on Campus Weibo account.

我们非常希望你们可以继续写代码,让你的miniblog变得更好。 增加更多的功能,做更好的设计,然后放上heroku! 在微博上@RailsOnCampus 展示你的成果吧!

We also would appreciate any feedback, so please let us know how we can make the event go more smoothly next time, or if there's anything else we should cover. We hope to take this program to other universities in the area, and perhaps come back to SCAU for a second season next year.

欢迎对我们的活动提出您的宝贵意见! 这对我们很重要,希望我们下一次可以组织得更好,活动开展得更顺利。如果你有感兴趣的话题希望我们可以分享,欢迎给我们来信! 我们希望到广州更多的大学去分享,可以的话也希望明年回到华农分享更多有趣的话题!

Session #3 / 第三届


The third session in our program focused on completing the feature set to make our miniblog a full web application. Of course we needed a way for users to log in, so that we know who says what. To that end, we went over how to track user sessions, and how to use before_filters to manage users and make sure they log in when they need to.

在第三期我们会分享一些关于如何给我们的miniblog添加新功能新应用,使其变成一个更加完整的网络应用。 首先,我们必须想个办法让用户可以登录,这样我们才知道谁说了什么。然后我们也分享了如何去追踪用户及其发表的信息,以及如何使用before_filters 去管理用户,让他们在必要时进行登录。

Links:


Rails on Campus is a program started by Leon Du and Shaokun Wu, 2 ruby developers in Guangzhou, China. The idea is to build a good set of material for introduction courses that can be used to teach Rails on college campuses. College students are often not exposed to the latest development techniques, and are left to learn on the job. The goal of this program is to introduce students to the world of open source development frameworks to help prepare them for a good job.

Rails on Campus是由中国广州两位Ruby 开发者, Leon Du和伍少坤发起的。活动的初衷是为大学Rails的教学积淀一些有价值的学习材料。大学学生接触新技术的机会不十分多,而常常要上到工作岗位才开始学习。希望通过这次活动,可以为同学们带来更多开源的开发框架,以此为将来的好工作更好地准备自己。

Rails on Campus is sponsored by:

Rails on Campus的赞助团队有:

Posted by adevadeh 08 Dec 2011 at 04:08AM


Introducing gems.gzruby.org

gems.gzruby.org

As those of us living and working in China know,sometimes the internet can be troublesome . At some point last month, installing gems from the command line - something we do almost every day if not many times a day - no longer worked seamlessly. For whatever unknown reason, the rubygems production server is currently inaccessible or extremely unstable from within mainland China.

In discussions with the gzruby group, we tried to find workable solutions to this problem. One idea is to set up a reverse proxy. This solves the issue, but installing gems is still really slow. Another proposal is to set up a mirror, as described in this post by sachin. But rather than set up a local server, why not set up the proxy somewhere the greater community can use it.

Thus, gems.gzruby.org was born.

Setup

Add the following line to your Gemfile:

source "http://gems.gzruby.org/"

And change your ~/.gemrc to something like this:

---
:sources:
- http://gems.gzruby.org/
gem: --no-rdoc --no-ri

Code

The project was started by fnando. Our fork contains cosmetic changes only. If you want to set up your own proxy/cache, we recommend that you start from this fork by akitaonrails.

The app itself is a simple rack app that either serves a cached version of the gem, or fetches the gem from production.cf.rubygems.org. So the server on which you install must have access to this address.

If you already have a rails server running passenger on any VPS outside of china, setup is very easy. Simply clone the project into a new directory, and add a config to apache or nginx just as you would for any rails app.

Posted by adevadeh 28 Nov 2011 at 05:22AM


gzruby meetup #3

Image of Seb with a slide

Thanks to everyone who attended the gzruby meetup last wednesday night. It was great to get a chance to meet up with our ruby friends and we also met a lot of new people. It‘s exciting to see how the community is growing as we gain new members and introduce more people to the joys of ruby.

非常感谢大家抽空过来参加昨晚的gzruby聚会。不仅可以跟使用ruby的老友记们交流,而且也是一次认识新朋友的好机会。很高兴看到使用ruby的朋友越来越多,并且可以相互分享当中的快乐。

The presentations included:

以下是大家的一些分享:

  • Launch of http://gems.gzruby.org, the GZRUBY rubygems mirror
  • Real Life Rails Scaling, by Seb. Scaling your app, your team ... yourself. (slides)
  • method_proxy - some fun with ruby's dynamic programming, by Jev. A look at how we can utilize ruby's meta-programming features to get deep insight into our code. (method_proxy sample code, slides)
  • Cloud Service API design, by Chance Jiang

Really looking forward to the next meeting, planned for Jan 18, 2012! See you all next year.

让我们一起期待下一次gzruby聚会,2012年1月18日(预计)。 明年见!

Photo by littlepxy

照片提供:littlepxy

Posted by adevadeh 28 Nov 2011 at 03:39AM



>