You are here

development

Update a Git Repository from local versioned files

If you are new to using Git as a versioning tool, you might make a common mistake whilst managing local files - I know I did.
When you start working on a cloned remote git repository (created from the git clone command) all the following commits (done by the git commit command) are executed on your local repository.
To upload the commits to the remote repository you need to perform a push command, like the following using ssh:

Setting up a git server on MacOS X Lion

Recently I found this nice tutorial on how to setup a git server on a Mac OS X Lion.
It goes straight to the point and you can setup the server using apache real quick!

Enjoy!

Update on October, 15th 2011: Since the referred website has been down a few times the past few days, I have added below the most important steps for setting up the git server on a MacOS X Lion.

Developing Rails Application on Mac OS X Leopard

Apple provides a nice tutorial on how to start developing using Rails on a Mac OS.
If you are new to the Mac World, it is of great help.

Solve the "uninitialized constant ApplicationController" Problem

Have you just updated your rails version from 2.2.2 to 2.3.5 (or later) and you are getting the strange error message below?

uninitialized constant ApplicationController

This happens because the application controller is no longer called application.rb.
It is now know as application_controller.rb.

There is a rake task to do the renaming automatically for you. Simply run:

rake rails:update

PHP and Eclipse IDE Indigo - Missing Anything?

Due to lack of a package maintainer for the Eclipse Indigo release there is no PHP (PDT) package included. If you would like to install PDT into your Eclipse installation you can do so by using the Install New Software feature from the Help Menu and installing the PHP Development Tools (PDT) SDK Feature from the Eclipse Indigo Repo >> http://download.eclipse.org/releases/indigo

Evernote Developer Contest - Wanna make up to US$ 100k?

Evernote is having a developer contest where one can make up to US$ 100k in prizes - cash prizes. The most innovative and useful apps will be eligible for great cash prizes and will be showcased at their upcoming Evernote Trunk Conference in August.

Installing Rails Plugins in Windows

If you are using RoR (Ruby on Rails) and Windows to develop you probably ran into this problem. You want to install a Plugin and use it in your application, so you find some tutorial or links anywhere on the big WWW and when you copy/paste the links they do not work and you get an error message telling you that this is not an executable file. Much like this:

C:\repository\ruby\project>script\plugin install git://github.com/dougal/daemon_generator.git
'script\plugin' is not recognized as an internal or external command, operable program or batch file.

Rails Tricks

Do you know what the command below would do?

post.select(&:activated?).collect(&:title)


Do you want to get maximums, minimums, averages, or sums for data in your tables? Did you know ActiveRecord has a .to_xml() method?

Ruby Gem Update - RemoteSourceException

If you need to update any gem in your system and you get some strange error message like the one below, maybe all you need to do is upgrade your RubyGems component.

ERROR:  While executing gem ... (Gem::RemoteSourceException)
              HTTP Response 403


I got the above error message when running the following command:

gem update --system


Another symptom that you need to upgrade your RubyGem is if you notice that the system responds different versions for your components:.
For instance, if you get this...

Firefox Add-on Collections

The Firefox website now allows you to create a Collection (in a very slow site) of your favorite add-ons either to save for later reinstalling or sharing with everyone else. So I created two Collections (so far):

    Pages

    Subscribe to RSS - development