Archive for November 2011
-
jQuery Rambling Slider v0.2.1 released!
November 30, 2011
This post was originally published in the Rambling Labs Blog on November 30, 2011.
This one, as opposed to version 0.2.0 is mostly tests added, refactoring and one bug fix. Also, changed some parameters order to have a more consistent API, for the transition extensibility. You can download it from GitHub, browse the tags and read the project’s wiki for documentation.
This release includes:
- Fixed the flash flickering before initializing.
- Added tests for ‘slideUpDownSlices’, ‘foldSlices’ and ‘fadeSlices’ (#6).
- Added tests for ‘slideUpSlices’ and ‘slideDownSlices’.
- Added tests for the ‘animateBoxes’ helper.
- Added ‘sliceFade’ to the transition groups.
- Changed the parameters order for the ‘animateSlices’ helper.
- Added tests for the ‘animateSlices…
-
Extending the jQuery Rambling Slider
November 30, 2011
This post was originally published in the Rambling Labs Blog on November 30, 2011.
One of the core features added in version 0.2.0 of the jQuery Rambling Slider is the ability to customize the transitions between images, between flash elements and between an image and a flash element.
As it is described in the Adding and Overriding Transitions page in the project’s wiki, in order to do this you have to something like this:
$(window).load(function(){ $('#slider').ramblingSlider({ imageTransitions: { /* Add a 'fadeInSlices' transition */ fadeInSlices: function() { /* ... */ }, /* Override the 'sliceUpRight' transition */ sliceUpRight: function() { /* ... */ } /* ... */ …
-
jQuery Rambling Slider v0.2.0 is out!
November 28, 2011
This post was originally published in the Rambling Labs Blog on November 28, 2011.
It’s been a long way to this one, but I’m proud to announce that version 0.2.0 of the jQuery Rambling Slider has been released!
So far, the most stable release had been the version 0.1.2 and its patches. But I assure you that this is now the most stable one :).
Be free to download it from GitHub and test it out.
You can also browse the tags, and submit any issue or feature request to the project’s issues on GitHub.
UPDATE For documentation on how to use, you can read the project’s wiki, which has been updated for these changes.
This release includes:
- Updated readme information.
- Added support for jQuery 1.7.1.
- Changed the ‘effect’ setter to return…
-
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…
-
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 theobject
tag, with a name ofwmode
and value oftransparent
oropaque
and to add… -
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
-
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…
-
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…
-
jQuery Rambling Slider v0.1.2 patches
November 13, 2011
This post was originally published in the Rambling Labs Blog on November 13, 2011.
I didn’t have enough time to post this before, but here it is. I’ve made some patches for the jQuery Rambling Slider. You can see the tags on GitHub. These include (the key features are bolded):
jQuery Rambling Slider v0.1.2.1 (patch 1, you can download it from GitHub):
- Enabled method chaining on ‘start’ and ‘stop’.
- Changed ‘animSpeed’ option to ‘speed’.
- Added the ‘option’ and ‘effect’ methods.
jQuery Rambling Slider v0.1.2.2 (patch 2, you can download it from GitHub), includes patch 1 and:
- Some html validation.
- Added the supported jQuery versions information.
- Removed jQuery. Pulling it from the google cdn now.
- Fixed issue with ‘getRandomAnimation…
-
The jQuery 1.7 .animate() method and percentages
November 13, 2011
This post was originally published in the Rambling Labs Blog on November 13, 2011.
As you may know, the jQuery Rambling Slider contains several animations. Some of them depend on changing the height of a div using percentages. Like this one:
slice.animate { height: '100%', opacity: '1.0' }, settings.speed
The problem with this is that with jQuery 1.7, the ‘100%’ was getting parsed to just ‘100’, so the height ended up being ‘100px’.
Thankfully, there’s an easy workaround:
slice.animate { height: "#{slider.height()}px", opacity: '1.0' }, settings.speed
In this case, the slider is the container for the slice. So I just made the slice’s height to be animated to the slider’s total height instead of using percentages.
I submitted a bug