Blog
Adegga Wine Market 2011
On 14, Jan 2012 | No Comments | In Photography | By csrui
This years Wine Market was even more packed than last year.
Check out the great environment in these pictures.
It’s here, my first published mobile app
On 11, Jan 2012 | No Comments | In News, Projects | By csrui
It’s finally here, approved by Apple, my little app to consume bus schedules in Portugal.
A nodejs app from ground up – part 1
On 09, Jan 2012 | No Comments | In News | By csrui
I’ve been a developer for many years and I’ve been fortunate enough to have built projects in several different languages, but lately I’ve been working mostly with PHP and Javascript and wondering about the PHP part.
Synology 411j review
On 29, Dec 2011 | No Comments | In News | By csrui
Today arrived my new NAS box from Synology. It’s supposed to replace a custom made box running FreeNas 7.2 that has been giving me a bit of a hard time with the RAID.
Deploy a git repository and it’s submodules without SSH keys for the submodules.
On 16, Dec 2011 | One Comment | In rants | By csrui
How to deploy a git repository and it’s submodules into a production server without worrying about SSH keys access for the submodules.
This weekend I was able to fit into my schedulle some time to try out the awesome service that pagodabox.com is becoming.
For those that don’t know what pagodabox.com is and if you like automated deployment do take the time to check them out.
Services like pagodabox.com let you publish your app just by pushing commits onto a remote. Then, after the server side magic happens your app is ready to use.
If you are not happy with the changes, just select a different commit to deploy and your app will return to a previous state. It’s great, no FTP and you get to keeps versions of your code.
If you use submodules like me, you’ll have a pretty big list pointing to several different places. Making this even harder to maintain is if you need write access to commit changes to these submodules inside your main project.
Since pagoda tries to initialize and update your submodules uppon deploy, it would fail miserably because of the lack of access. Probably in most cases you’ve had to preconfigure SSH keys to be able to push your changes.
I found a nice little change that allows you to add submodules to your project, deploy smoothly and still be able to push changes from your developement environment. How is this done you ask?
It’s very easy, it’s about replacement:
First when adding submodules always go for the read only access and this takes care of the silky smooth deployment.
Then, and here is the twist, you add to your global .gitconfig a sort of replace for when you want to push. Let’s see the example.
[user] name = Rui Cruz email = something@ruicruz.com [mergetool] keepBackup = true [url "git@github.com:csrui/cron-mailer.git"] insteadOf = "git://github.com/csrui/cron-mailer.git" [url "git@github.com:corefactor/CakePHP-Oauth-Plugin.git"] insteadOf = "git://github.com/corefactor/CakePHP-Oauth-Plugin.git"
Look at my github.com repositories, this file is telling GIT that it should use the SSH read and write URL x insteadOf plain read only URL y.
Since this works on a local development environment only, I will be able to push and pull at will and it won’t affect my read only URLs outside my dev box.
Hope this helps and if you have a different approach I’d love to hear about it.
Adegga Wine Market 2010
On 31, Dec 2010 | No Comments | In Photography | By csrui
In last November, Teatro Aberto in Lisbon held the Adegga Wine Market hosted by the Adegga.com crew. The event is a giant tasting ground for wine lovers and it’s gaining more and more fans.
Transfering a SVN repository to GIT (and keeping all revisions)
On 12, Dec 2010 | No Comments | In News | By csrui
For those of you out there wanting to move from Svn to Git and you don’t want start with clean repositories, this post is the reference.
Review: Tower – Git client for mac
On 11, Dec 2010 | No Comments | In News | By csrui
When I started working for CoreFactor, roughly a year ago, we made a decision to start using GIT for our revision system. At first I wasn’t to happy about it since I am a SVN kind of guy but these days, GIT and me are getting along ok.
But still one thing bothered me… The lack of a good graphical interface.
A few days ago, a designer that shares the office sent me a link www.git-tower.com and having a very pretty homepage I subscribed to the beta.
Man was I surprised! The app is very easy to use, the developers are launching updates on a daily basis.
Check out some screens.
Milk – Marina Martins
On 21, Nov 2010 | No Comments | In Photography | By csrui
I’ve been wanting to have some fun throwing milk at someone. Marina, thank you so much for letting me.










