<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Official Blog</title>
    <description>Official Blog of Logdown</description>
    <link>http://blog.logdown.com/</link>
    <item>
      <title>Using Rails 4 asset pipeline on Rails 3 for faster deploy</title>
      <description>&lt;p&gt;We recently suffered from asset pipeline performance issues. In order to boost deploying, we decide to switch to &lt;a href="https://github.com/spagalloco/capistrano-local-precompile"&gt;capistrano-local-precompile&lt;/a&gt; strategy.&lt;/p&gt;

&lt;p&gt;However, local asset compiling in Rails 4 is blazing fast, but in Rails 3 is not.&lt;/p&gt;

&lt;p&gt;And much nightmare is if we can &lt;a href="https://gist.github.com/xdite/3072362"&gt;skip compiling prcoess if assets weren't changed when we compiling at remote&lt;/a&gt;, but we need to compile asset everytime if we choose to compile locally.&lt;/p&gt;

&lt;p&gt;So we comes out this crazy idea: How about running Rails 4 asset pipeline in Rails 3 project.&lt;/p&gt;

&lt;p&gt;Here is how:&lt;/p&gt;
&lt;h4&gt;1. modify Gemfile&lt;/h4&gt;
&lt;figure class="figure-code code"&gt;&lt;figcaption&gt;&lt;span&gt;Gemfile
&lt;/span&gt;&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre&gt;group :assets do
  gem 'sprockets', '2.2.2.backport2'
  gem 'sprockets-rails', :require =&amp;gt; 'sprockets/railtie', :git =&amp;gt; "git@github.com:logdown/sprockets-rails.git"

  gem 'sass-rails',   '~&amp;gt; 4.0.1', :git =&amp;gt; "git@github.com:logdown/sass-rails.git"
  gem "compass-rails", "~&amp;gt; 1.1.2", :git =&amp;gt; "git@github.com:logdown/compass-rails.git"
 
  gem 'coffee-rails', '~&amp;gt; 3.2.1'

  gem 'uglifier', '&amp;gt;= 1.0.3'
end
&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;h4&gt;2. edit config/enviorments/production.rb&lt;/h4&gt;
&lt;figure class="figure-code code"&gt;&lt;figcaption&gt;&lt;span&gt;config/enviorments/production.rb
&lt;/span&gt;&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre&gt;  # Disable Rails's static asset server (Apache or nginx will already do this)
  config.serve_static_assets = true

  # Compress JavaScripts and CSS
  config.assets.compress = true


  # Generate digests for assets URLs
  config.assets.digest = true
  
  config.assets.js_compressor = :uglifier
  config.assets.css_compressor = :sass


&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;h4&gt;3. change config/deploy.rb&lt;/h4&gt;
&lt;p&gt;You should install &lt;code&gt;capistrano-local-precompile&lt;/code&gt; first, and override precompile command. It's d because the precompile machism in different versions are different.&lt;/p&gt;

&lt;figure class="figure-code code"&gt;&lt;figcaption&gt;&lt;span&gt;config/deploy.rb
&lt;/span&gt;&lt;/figcaption&gt;&lt;div class="highlight"&gt;&lt;pre&gt;set :precompile_cmd, "bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;h3&gt;Behinde the scene&lt;/h3&gt;
&lt;p&gt;Basically we are doing serveral things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;make &lt;code&gt;sprockets-rails&lt;/code&gt; edge running with &lt;code&gt;sprockets&lt;/code&gt; 2.2&lt;/li&gt;
&lt;li&gt;make &lt;code&gt;sass-rails&lt;/code&gt; edge running under rails 3&lt;/li&gt;
&lt;li&gt;make &lt;code&gt;compass-rails&lt;/code&gt; edge running with rails 4 strategy&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;to resolve asset_paths, SASS resolver issue...etc.&lt;/p&gt;
&lt;h3&gt;Warning&lt;/h3&gt;
&lt;p&gt;Before doing this, make sure you really understand what your are doing. And it exists many different between sprockets 1 &amp;amp; 2.&lt;/p&gt;
</description>
      <pubDate>Wed, 01 Jan 2014 15:12:00 +0800</pubDate>
      <author>rocodev_tech</author>
      <link>http://blog.logdown.com/posts/171593-using-rails-4-asset-pipeline-on-rails-3-for-faster-deploy</link>
      <guid>http://blog.logdown.com/posts/171593-using-rails-4-asset-pipeline-on-rails-3-for-faster-deploy</guid>
    </item>
    <item>
      <title>CodeMirror with IME mod</title>
      <description>&lt;p&gt;Recently, we implement a major features in CodeMirror while building  &lt;a href="http://logdown.com/demo"&gt;Logdown editors&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;That's Codemirror Composition Mod. &lt;/p&gt;

&lt;p&gt;The original problem in CodeMirror is when users are using IME to input CJK words in edit area, people can't rechoose the word due to keyboard event.&lt;/p&gt;

&lt;iframe width="420" height="315" src="//www.youtube.com/embed/GrU9FHHk_p0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;

&lt;p&gt;Our team solve this issue by using Composition Event API to bypass keyboard event. If you are interested in implementation detail. Here is the article : &lt;a href="http://blog.zhusee.in/post/146553/enhance-ime-support-of-codemirror-with-composition-events"&gt;用 Composition Event 改進 CodeMirror 對輸入法的支援&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Plugin: &lt;a href="https://github.com/zhusee2/codemirror-composition-mod" rel="nofollow" target="_blank"&gt;https://github.com/zhusee2/codemirror-composition-mod&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Demo: &lt;a href="http://logdown.com/demo"&gt;Logdown editors&lt;/a&gt;.&lt;/p&gt;
</description>
      <pubDate>Mon, 14 Oct 2013 17:38:00 +0800</pubDate>
      <author>rocodev_tech</author>
      <link>http://blog.logdown.com/posts/147071-codemirror-with-ime-mod</link>
      <guid>http://blog.logdown.com/posts/147071-codemirror-with-ime-mod</guid>
    </item>
    <item>
      <title>Announcing Premium Plan </title>
      <description>&lt;p&gt;Hi, Thanks everyone who trying Logdown in these past two months.&lt;/p&gt;

&lt;p&gt;Logdown have Premium plan ( $49.99 USD /yr , ~$4.2 USD /month) now.&lt;/p&gt;

&lt;p&gt;With Premium plan, you can get custom domains, multi blogs / collaborators, almost unlimited photo uploading, 24/7 supports and among other new features.&lt;/p&gt;

&lt;p&gt;We are working hard to deliver more and more features. This month we have shipped 6+ beautiful themes , and continue to make more.&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/138076/P1OSdMZTTMKjK34g7vtg_%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202013-09-08%20%E4%B8%8B%E5%8D%886.52.47.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;p&gt;In order to thank our early users, we decide to give you half price discount.&lt;/p&gt;

&lt;p&gt;By upgrading to &lt;code&gt;Beta Plan&lt;/code&gt;, you can continue upgrading to "Premium plan" with half price (which is $24.95 USD/year, ~$2.1 USD/month).&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/138076/WjLhsfROKET0kp0Efy9w_%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202013-09-08%20%E4%B8%8B%E5%8D%886.42.38.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;p&gt;The Beta plan will sunset at 9/13, besure to upgrade you account as soon as possible. &lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;
</description>
      <pubDate>Sun, 08 Sep 2013 18:38:00 +0800</pubDate>
      <author>rocodev_tech</author>
      <link>http://blog.logdown.com/posts/138076-announcing-premium-plan</link>
      <guid>http://blog.logdown.com/posts/138076-announcing-premium-plan</guid>
    </item>
    <item>
      <title>New Feature: Custom Theme</title>
      <description>&lt;p&gt;Hi, everyone&lt;/p&gt;

&lt;p&gt;We are proud to announce Logdown has &lt;code&gt;Custome Themes&lt;/code&gt; !!&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/317/post/92917/RbZ1iQ8TZWOYDiQlVntf_%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202013-08-26%20%E4%B8%8A%E5%8D%885.24.35.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;p&gt;You can enable this feature from Blog &amp;gt; Settings &amp;gt; Themes&lt;/p&gt;

&lt;p&gt;&lt;a href="http://logdown.com/account/blogs/your_blog/themes" rel="nofollow" target="_blank"&gt;http://logdown.com/account/blogs/your_blog/themes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Currently Logdown has three pre-configed themes, and we are also provide &lt;code&gt;Custom HTML&lt;/code&gt; option. &lt;/p&gt;

&lt;p&gt;We will release more themes next follwing weeks. Stay tuned!&lt;/p&gt;
&lt;h3&gt;API Documents&lt;/h3&gt;
&lt;p&gt;API documents are aviable at &lt;a href="http://github.com/logdown/themes-guide" rel="nofollow" target="_blank"&gt;http://github.com/logdown/themes-guide&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Submit your theme&lt;/h3&gt;
&lt;p&gt;Our theme repo is at &lt;a href="http://github.com/logdown/themes" rel="nofollow" target="_blank"&gt;http://github.com/logdown/themes&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;If you want to submit a new theme, please fork this repo and submit a pull request. After reviewing thme source codes, we will merge them as soon as possible!&lt;/p&gt;

&lt;p&gt;Thanks for your support!&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;hr&gt;

&lt;ul&gt;
&lt;li&gt;See also Chinese version: &lt;a href="http://blog.xdite.net/posts/2013/08/25/logdown-custom-theme"&gt;Logdown 現在支援 Custom Theme 了！&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;/p&gt;&lt;hr&gt;

&lt;p&gt;If you hit any problems, please don't hesitate to tell us. &lt;/p&gt;
&lt;h3&gt;Follow latest news of Logdown&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blog.logdown.com"&gt;Logdown Official Blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/logdowninc"&gt;Twitter:@logdowninc&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Support Email: &lt;a href="mailto:support@lgodown.com"&gt;support@lgodown.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
      <pubDate>Sun, 25 Aug 2013 17:20:00 +0800</pubDate>
      <author>rocodev_tech</author>
      <link>http://blog.logdown.com/posts/93556-new-feature-custom-theme</link>
      <guid>http://blog.logdown.com/posts/93556-new-feature-custom-theme</guid>
    </item>
    <item>
      <title>Default OpenGraph Image</title>
      <description>&lt;p&gt;Tired of default Logdown logo ?&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/65196/8h1TycKaRe2eGpW9acH1_%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202013-07-26%20%E4%B8%8B%E5%8D%882.51.22.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;p&gt;Logdown now support &lt;code&gt;Custom Opengraph Image&lt;/code&gt; for each blog. Just go to &lt;code&gt;Blog &amp;gt; Settings&lt;/code&gt; to change your default image.&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/65196/H6RiXZPpR5GSFGyqynhc_%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202013-07-26%20%E4%B8%8B%E5%8D%882.48.02.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;p&gt;Then you can past blog link on Facebook with your own og:image&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/65196/ggy9yuEtSlSg5hI5JhCI_%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202013-07-26%20%E4%B8%8B%E5%8D%882.49.51.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;
</description>
      <pubDate>Fri, 26 Jul 2013 14:53:00 +0800</pubDate>
      <author>rocodev_tech</author>
      <link>http://blog.logdown.com/posts/65196-default-opengraph-image</link>
      <guid>http://blog.logdown.com/posts/65196-default-opengraph-image</guid>
    </item>
    <item>
      <title>More Themes</title>
      <description>&lt;p&gt;Hi, we are happy to announce Logdown has more than 300+ themes. ( Blog background )&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/65191/fT3xsTt6T32BzRZRDfE2_%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202013-07-26%20%E4%B8%8B%E5%8D%882.44.42.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;iframe width="420" height="315" src="//www.youtube.com/embed/4_ZShK-g1qA" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;

&lt;p&gt;You can enable this feature from &lt;code&gt;Blog &amp;gt; Settings &amp;gt; Themes&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://logdown.com/account/blogs/your_blog/themes" rel="nofollow" target="_blank"&gt;http://logdown.com/account/blogs/your_blog/themes&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;If you hit any problems, please don't hesitate to tell us. &lt;/p&gt;
&lt;h3&gt;Follow latest news of Logdown&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blog.logdown.com"&gt;Logdown Official Blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/logdowninc"&gt;Twitter:@logdowninc&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Support Email: &lt;a href="mailto:logdown@rocodev.com"&gt;logdown@rocodev.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
      <pubDate>Fri, 26 Jul 2013 14:37:00 +0800</pubDate>
      <author>rocodev_tech</author>
      <link>http://blog.logdown.com/posts/65191-more-themes</link>
      <guid>http://blog.logdown.com/posts/65191-more-themes</guid>
    </item>
    <item>
      <title>Xanga Importing</title>
      <description>&lt;p&gt;Hello, Xanga Users!&lt;/p&gt;

&lt;p&gt;We now support importing from Xanga.&lt;/p&gt;
&lt;h3&gt;Step1 : export wordpressWXR.zip&lt;/h3&gt;
&lt;p&gt;Just go your &lt;a href="http://www.xanga.com/private/archives.aspx"&gt;archives page on Xanga&lt;/a&gt;, and download &lt;code&gt;wordpressWXR.zip&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.xanga.com/private/archives.aspx" rel="nofollow" target="_blank"&gt;http://www.xanga.com/private/archives.aspx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/42462/LD6imf9TUWKQ1sAZIXX8_xanga-exporting.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;
&lt;h3&gt;Step2 : Import to Logdown&lt;/h3&gt;
&lt;p&gt;And go to your blog importing page, choose &lt;code&gt;Wordpress&lt;/code&gt; to import.&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/374/blog/374/post/2518/hAAr6cOmSU6UOJ7zHmIa_Import_2.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;p&gt;Everything will be all set.&lt;/p&gt;

&lt;p&gt;If you hit any problems, please don't hesitate to tell us. &lt;/p&gt;
&lt;h3&gt;Follow latest news of Logdown&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blog.logdown.com"&gt;Logdown Official Blog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://twitter.com/logdowninc"&gt;Twitter:@logdowninc&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Support Email: &lt;a href="mailto:logdown@rocodev.com"&gt;logdown@rocodev.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
      <pubDate>Sun, 21 Jul 2013 15:27:00 +0800</pubDate>
      <author>rocodev_tech</author>
      <link>http://blog.logdown.com/posts/42462-xanga-importing</link>
      <guid>http://blog.logdown.com/posts/42462-xanga-importing</guid>
    </item>
    <item>
      <title>Better SEO</title>
      <description>&lt;p&gt;This week, we also enable several features to get better SEO: Sitemap &amp;amp; Site Verification&lt;/p&gt;
&lt;h3&gt;Sitemap&lt;/h3&gt;
&lt;p&gt;&lt;a href="http://yourblog.com/robots.txt" rel="nofollow" target="_blank"&gt;http://yourblog.com/robots.txt&lt;/a&gt; now will display your sitemap url. And the sitemap will be updated every 12 hours.&lt;/p&gt;

&lt;figure class="figure-code code"&gt;&lt;div class="highlight"&gt;&lt;pre&gt;# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
#
# To ban all spiders from the entire site uncomment the next two lines:
# User-Agent: *
# Disallow: /

Sitemap: http://blog.xdite.net/sitemaps/xdite-ld.xml.gz
&lt;/pre&gt;&lt;/div&gt;
&lt;/figure&gt;
&lt;h3&gt;Support Google Webmaster Tool&lt;/h3&gt;
&lt;p&gt;If you want to install Google Webmaster to diagnose you blog, we also provide google site verification.&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/18860/uw9HpYiVTjeE05Ut7nCF_google_site_verify.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;p&gt;This option is at &lt;code&gt;Your Blog &amp;gt;&amp;gt; Setting&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you hit any problems, please don't hesitate to tell us.&lt;/p&gt;
</description>
      <pubDate>Sun, 14 Jul 2013 05:39:00 +0800</pubDate>
      <author>rocodev_tech</author>
      <link>http://blog.logdown.com/posts/18860-better-seo</link>
      <guid>http://blog.logdown.com/posts/18860-better-seo</guid>
    </item>
    <item>
      <title>Multiple Blogs &amp; Collaborators</title>
      <description>&lt;p&gt;We are very proud to announce these two powerful features&lt;/p&gt;
&lt;h3&gt;Multiple blog&lt;/h3&gt;
&lt;p&gt;You can create more than one blog in Logdown. Free user can have &lt;code&gt;2&lt;/code&gt;, Beta have &lt;code&gt;5&lt;/code&gt;, and Premium have &lt;code&gt;7&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/18859/XjTkTUd9RQ6sFSdGysby_multiple_blog.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;p&gt;Location:  &lt;code&gt;Settings &amp;gt;&amp;gt; Blog &amp;gt;&amp;gt; New Blog&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Collaborators&lt;/h3&gt;
&lt;p&gt;Logdown also allows multple collaborators, you can ask friends to join you blog :) &lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/18859/RJxCiN68TiWeVEZvBQs0_collaborators.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;p&gt;Location : &lt;code&gt;Your Blog &amp;gt;&amp;gt; Collaborators&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;
</description>
      <pubDate>Sun, 14 Jul 2013 05:27:00 +0800</pubDate>
      <author>rocodev_tech</author>
      <link>http://blog.logdown.com/posts/18859-multiple-blogs-collaborators</link>
      <guid>http://blog.logdown.com/posts/18859-multiple-blogs-collaborators</guid>
    </item>
    <item>
      <title>Blogger Importing</title>
      <description>&lt;p&gt;This week, we are releasing "Blogger Importing" feature&lt;/p&gt;

&lt;p&gt;&lt;figure&gt;&lt;img src="http://user-image.logdown.io/user/1/blog/374/post/18858/EEwcTIvTTOabtf2YqZMQ_blogger_importing.png" title=""&gt;&lt;/figure&gt;&lt;/p&gt;

&lt;p&gt;Please go to &lt;code&gt;Your Blog &amp;gt;&amp;gt; Settings &amp;gt;&amp;gt; Importers&lt;/code&gt; to try out.&lt;/p&gt;

&lt;p&gt;If you hit any problems, please don't hesitate to tell us.&lt;/p&gt;

&lt;p&gt;Thanks for your supporting.&lt;/p&gt;
</description>
      <pubDate>Sun, 14 Jul 2013 05:22:00 +0800</pubDate>
      <author>rocodev_tech</author>
      <link>http://blog.logdown.com/posts/18858-blogger-importing</link>
      <guid>http://blog.logdown.com/posts/18858-blogger-importing</guid>
    </item>
  </channel>
</rss>
