Posts by 'Xiaohong Deng'

Xiaohong Deng

Github: Add a Project Page to Your Personal Page

Say you have a blog backed by Github personal or organization page which is one per account only. You have a custom domain name for it served by some DNS service. Now you want to use the same custom domain name to serve a project page to showcase your projects …

Xiaohong Deng

Pelican: Python 3 or Upgrading to Python 3

Making a Static Blog with Pelican is a great tutorial for beginners to start with Pelican. It was in Python 2 because back then fabric is incompatible with Python 3. Now Pelican has moved to invoke by default which is very similar to fabric which supports Python 3 now. Both …

Xiaohong Deng

Jasmine Setup in UCB CS169x and SaaS Book

You can use either gem jasmine or gem jasmine-rails to set up Jasmine framework in your rails apps. In the SaaS book, it uses the latter. gem jasmine-jquery-rails is one way to exploit the extra matchers and fixtures loading feature from jasmine-jquery. It needs jquery as a prerequisite.

You won't …

Xiaohong Deng

Set Up Disqus With Pelican

There are a few variables in pelicanconf.py involved in this problem, there are a few that break your app in other ways. I'm gonna concentrate on those directly involved and traps you might get caught up with.

  • This Disqus comment feature can not be previewed locally, I will explain …

Xiaohong Deng

Rails ActionMailer: Explain Why Calling Class Methods That Do Not Exist on Mailers Works

Here is an article from Karol Galanciak you can refer to as a start. I'm gonna rewrite his article in a way that conveys pretty much the same information with addditional detail generated by me reading the Rails source code. Hopefully it would crystalize your understanding on the subject further …