Uninstall Flash Builder 4.5 Burrito (and more adobe things)
When I tried to install adobe flash builder 4.5 final, I found a problem that it complains about having burrito (the pre-release) version of 4.5, I run the uninstall included in the burrito dmg but points me to an “adobe application manager” … to keep it short, it didn’t work.
The real deal is here
http://www.adobe.com/support/contact/cscleanertool.html
Just uninstall the flash buider and you are good to go
Happy coding
.
04.29.11Rails 3 STI
I was doing an ETL for a client, and I get into the issue of defining a way in the DB to define “tasks”, the main issue here is that many tasks have similar fields, so its useless to get them on different tables, a good friend told me about Single Table Inheritance , it was very useful and proved to work.
I decide to do an example of this, in Rails3 for sharing, the idea is basic, you have different tasks, right now it only have a mysql task, and a ftp task, in a very simple scaffolded app.
The interesting things get in the model, and the controller, you can see how the STI magic happens, I leave a lot of comments and links on the code, to better understand this.
I will update it to get more useful information on the github example, you can download it from here:
https://github.com/warstories/TheTasker
.
09.26.10Rails 3 on Mac OSX Snow Leopard
I used to work with rails 2.3.8 and I wanted to know all the buzz around Rails 3, everybody knows that it’s a new development beast.
So I decided to install it and after a lot of digging on the internet, I managed it to install it, one requirement for me its that I *need* both RoR running, so I go with the RVM approach, and even without this requirement, it’s the recommended approach (not by me but recommended by a good friend and a real ruby/ror expert).
Why RVM ? for certain gems you will need ruby version 1.9.2 (1.9.1 has known bugs, and rails will throw you a warning if you choose this), and the snow leopard version is 1.8.7, so you will need this. Explaining RVM goes beyond the scope of this tutorial, so I will recommend you to read the basics from the RVM page and also this tutorial of a good friend.
1. Before you start be sure that you have the xcode tools at least on version 3.2.1 (1613) you won’t be able to do anything without this, so go ahead to developer.apple.com and grab it, its a little big (2.9 gb the current version), so you better start right now.
2. You will need git and curl, so I recommend you to use macports, but you can also install it from different sources
3. Install RVM, the instructions are very strightforward and almost a copy & paste from this page, but I will wrote the commands here, just to make it as complete as possible
- bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
4. Configure RVM, this is open your .profile (this is the apple recommended, but if you override this, and used bashrc you will add it there), and then write this line at the end of the file (if you are a linux user and you are here for coincide please see the RETURN issue on the install page, specially ubuntu/debian ones)
- [[ -s "$HOME/.rvm/scripts/rvm" ]] && source “$HOME/.rvm/scripts/rvm” # This loads RVM into a shell session
After adding this, you know the steps, load a new console, and you can test it whit this command
- type rvm | head -n1
It *have* to return “rvm is a function” otherwise, please refer to the troubleshooting section of the RVM install page.
5. Now, time to install ruby 1.9.2.
- rvm install 1.9.2
6. Once is installed you can switch to this version with this command
- rvm 1.9.2
you can check the installed version with
- ruby –version
7. Create a new gemset (read more about gemsets here)
- rvm gemset create ror3
Switch to this gemset
- rvm gemset use ror3
8. Before installing the rails gem, you need 2 gems, rdoc and rubytree, otherwise the installation will fail
- gem install rdoc rubytree
9. Now install rails
- gem install rails
10. Bonus track, some commands don’t work well without this gem, install it also
- gem install sqlite3-ruby
And you are done!!! Happy coding
.
02.18.10Flex: Dynamic Background Image on Canvas (redraw version)
Today I tried to load an image form an url and apply it to a background, well appears like setStyle don’t have the ability to load an image from URL.
So I had to look another alternative, I load the image using an Loader, but I couldn’t found a way to apply it to the background style, I did a workaround, I draw it on the graphics object, I guess it is helpful because the image is titled, but I will try more options I didn’t quite like 100% this solution.
IMPORTANT : dont’ forget the security restrictions of doing this, remember that flash can’t load images from another domain, and www.zerokernel.com is different to zerokenel.com, see Adobe for more information ( Player 9 restrictions from Adobe – PDF )
Anyway, here is the demo:
http://zerokernel.com/demos/flex/backgroundChanger/
And the code:
http://zerokernel.com/demos/flex/backgroundChanger/BackgroundChanger.zip
02.3.09Json Navigator
Hey guys, to complement my other post of the json validator, here is the json “Navigator” (netscape anyone?), it’s very useful for anyone dealing with complex structures.
http://danml.com/pub/jsonBrowser.htm
01.8.09Json Validator
I’ve found a very useful json validator, specially when you are like me and forget to put the ” in the objects
| Posted in development, flex | No Comments »