Feb 08

Here is the problem, you need to merge some works from “foo” branch in “repo1″ to your current default branch in “repo2″, let’s say branch “master”. Below are the steps you do.
First of all, add a remote repository

git remote add bar git@example.com:bar/repo1.git

then download objects and refs from another repository

git fetch

now checkout the branch which will you merge

git checkout --track -b foo bar/foo

swith to “foo” branch and check that everything is good to go

git checkout foo

then you move back to your current directory

Jan 16

Thanks to the guys that build BrowserCMS, our lives has just gotten easier!
No longer we have to stick with Radiant, BrowserCMS is, we think, easier and more robust.

This post is a simple getting started guide, that will help you to:

  1. Install the BrowserCMS
  2. Create a new page
  3. Add text content to the newly created page
  4. Publish your page
Dec 14

We have done multi-language feature for several Rails applications in the past, using gettext, gibberish, gibberish_db, etc. In this blog post I want to share the latest multi-language feature we built for our Netherland client recently, using Globalize2 plugin and Rails built-in I18n.

We used I18n for all our static contents, it’s a piece of cake. And all the client needs to do is to update that ymls files. For dynamic contents, we use Globalize2.

Dec 03

About a month ago one of our development teams is fortunate enough to have the chance implementing ServiceMerchant plugin
It is a plugin that makes use of ActiveMerchant, but designed specifically for recurring billing / subscription payment requirement.

As with all other gems, the best way to understand a gem, besides asking shifu Google, is to dig into the gem code itself and find sample apps, example usage, test units, etc

It’s pretty straightforward, and yet I feel like wanting to share some interesting things:

Nov 18

Probably you already know about n+1 queries problem, read this post if you want to learn how to detect those kind of queries.

Nov 11

If you’re using a lot JavaScript and CSS files on your application, you should consider this plugin to improve the perfomance your application, it will simply bundle your JavaScript and CSS in application.

Oct 21

jCarousel Lite is a jQuery plugin that carries you on a carousel ride filled with images and HTML content. It can be applied with some effects and other customization. Installation:

  1. Download Jquery
  2. Download JcarouselLite here – http://www.gmarwaha.com/jquery/jcarousellite/#download
  3. Include those files in your application layout

Optional:

  1. Download easing plugin – http://gsgd.co.uk/js/jquery.easing.1.1.js
  2. Download mousewheel plugin – http://brandonaaron.net/jquery/plugins/mousewheel/jquery.mousewheel.js
  3. Add to application layout
 
 

Usage : In your HTML file, provide the markup required by the carousel (a “div” enclosing an “ul”). You also need the navigation buttons, but these buttons need not be part of the carousel markup itself. Example:
html

Oct 16

Sometime we want to backup our databases for a reasons, like prevent the database deleted, move database to another server, etc. its very bored if we do it every day manually and sometime we forget to backup the database. so what we want is backup the database with something automatically with the time we have set, but how ? there is a lot of trick to do this, one of the is use shell script and cron.

ok, lets do it

1. Create Shell Script

$ vim backup.sh

in vim editor put this script

Oct 08

I found interesting pluginn for lightbox implementation with Facebook style, named Facebox. It allows us to use lightbox seamlessly in a Rails application.  You would use make a lightbox to display notice or error messages, form or even image without having to reload a page.

Sep 11

We also have a once-a-year long Indonesian holiday coming up soon next week :)All new contacts will still be responded within 24 work hours however.

Another thing is that the KT website’s design is now old – it’s been more than a year now. We are currently on a major design overhaul and the prototypes are looking good! Wait for the upcoming launch!