Archive for November 23, 2011

  • Set up ssh public/private key for no password prompts

    November 23, 2011


    This post was originally published in the Rambling Labs Blog on November 23, 2011.


    It’s been a while since my last post. I’ve had a busy couple of weeks. But here I am again :).

    Last week, I was setting myself up for a couple of features that I have to add to a project. I had ssh access (which is a good thing), but I was getting tired of typing in my password each and everytime I tried to connect to the server. The solution to this is fairly simple.

    • First, be sure to have your public ssh key in hand or generate your own with:
    ssh-keygen -t rsa -C youremail@yourdomain.com
    

    Be sure to generate it with no passphrase (remember that our goal is never get prompted when connecting through ssh).

    • Then, on the server, make sure that there…

    Continue Reading →

  • IE and the flash "wmode" madness

    November 23, 2011


    This post was originally published in the Rambling Labs Blog on November 23, 2011.


    One of the reasons that didn’t allow me to release version 0.1.3 of the jQuery Rambilng Slider earlier this week was a really ugly bug with IE, flash and transitions from and image to a flash element and viceversa.

    The problem: There are some transitions on the slider that require an image (or several) to be on top of the flash, so that it fades out and reveals the flash. This works fine on Firefox and Chrome, but when the time arrived, it just didn’t work with IE.

    I did a lot of googling and the only thing that I found over and over again was to include a param tag inside the object tag, with a name of wmode and value of transparent or opaque and to add…

    Continue Reading →

  • jQuery Rambling Slider v0.1.3 is out!

    November 23, 2011


    This post was originally published in the Rambling Labs Blog on November 23, 2011.


    Yes, it took me a while, but the jQuery Rambling Slider v0.1.3 is out!

    You can download it from GitHub, test it out and report any issues you find. Go ahead and checkout all the tags.

    You can also see the project’s details on GitHub or read the project’s wiki.


    UPDATE 1 Unfortunately there was a critical bug with the links containing images/flash. But hey, it has been fixed already on v0.1.3 patch 1, available on GitHub.


    UPDATE 2 There was another ugly bug with the caption not showing. This has been fixed already on v0.1.3 patch 2, available on GitHub.

    END UPDATES


    The main functionality added includes flash support (find more about it on the wiki

    Continue Reading →

  • Stripping down Rails 3.1: Using only the database migrations

    November 23, 2011


    This post was originally published in the Rambling Labs Blog on November 23, 2011.


    The current project I’m working on is not using Ruby on Rails, but I still want to use ActiveRecord Migrations for the database changes.

    There are some options out there for this, and most people that I read about and had this issue just use the activerecord gem and set up their rake tasks.

    I don’t want to write my own rake tasks, since I feel that I would be reinventing the wheel. So what did I do? I created a new rails application, and stripped it down, removing everything that is not needed to run the migrations.

    First, I created a rails application called ‘deploy’ on the root folder of the application with:

    rails new deploy
    

    Then, I removed all the…

    Continue Reading →

  • Deploying on shared servers with git

    November 23, 2011


    This post was originally published in the Rambling Labs Blog on November 23, 2011.


    There’s a project I’m currently working on, which is right now hosted on shared servers. I worked for a little while before on this project, but just to add some tiny features and fix some bugs, so I didn’t have the need back then to have a deployment process all set up.

    But now, I’m probably going to be working for a couple of months on this, so I figured it would be better for my own sanity to just set everything up from the very beginning, to make the deployment process as easy as possible.

    I googled for a while and the people seem to be using git for this. Now, there are a couple of options out there. There’s resmo’s git-ftp which is a git powered…

    Continue Reading →