Posts from MyOwnDB Blog...
Posted by rb 445 days ago
I recently had the opportunity to use YUI-Ext for a little application. I’ll focus on the creation of the context menus for the grid. If you’re discovering YUI-Ext’s layout approach, more information is available from Jack Slockum’s blog in Exploring Cross-browser Web 2.0 Layouts with Yahoo! UI and Cross-browser Web 2.0 Layouts (Part 2) [...]
Posted by rb 454 days ago
In your tests, you can easily access variables defined in your templates as:
@response.template_objects["key"]
and here’s a concrete example:
assert(@response.template_objects["user"].errors.invalid?("password")
levitra free shippingbuy levitrataking viagra cialis togetherbuy viagra pillsviagra soft tabs pricescialis professionalcheap generic cialischeap cialis soft tabscheap generic viagradiscount cialisgeneric cialiscialis professional onlinebuy viagra soft tabscheap viagraviagra professional onlinephentermine prescriptionphenterminetramadol prescriptioncheap tramadolsoma carisoprodolbuy somadiscount clomidbuy clomidindocin prescriptiondiscount [...]
Posted by rb 458 days ago
As I was looking to upgrade applications to rails 1.2, I wrote down all changes I had to do, and post those here in the hope it can be useful to anyone. I have skipped rails 1.1 for some apps and upgraded from rails 1.0, so some (all?) of the points could be from differences [...]
Posted by rb 465 days ago
After looking Douglas Crockford’s talks about javascript, I started experimenting to really understand javascript’s prototype. If you have downloaded the presentation’s slides, this is an illustration of slide 27. I’ve worked with the javascript interpreter included in the JDK6, based on Rhino. If you do this, just run $JAVA_HOME/bin/jrunscript and you get a prompt of [...]
Posted by rb 469 days ago
Until now I’ve been using javascript as a simple language to get Ajax features, but as I used it I discovered interesting features and got really interested to know more. As the JDK 6 has rhino included, you can also use javascript and get access too all Java libraries, which makes javascript knowledge even more [...]
Posted by rb 594 days ago
Jack Slocum mentioned in a comment the problem comes from the creation of a global variable. When you create a local variable, you don’t get the problematic behaviour. Thanks Jack for taking the time to correct me.
Intro
Here is the illustration of a bug that was present in version 0.1 of the yui slideshow. If you [...]
Posted by rb 594 days ago
As I wanted to add a slideshow on the MyOwnDB homepage, I started looking for a ready made solution, but as I didn’t find exactly what I wanted, but also because I was curious of how it could be done, I started coding one based on YUI. I wanted a slideshow that enabled me to:
load [...]
Posted by rb 623 days ago
I had event listeners set on elements added dynamically to the page not working:
When you click on the test_link, the content of the div is updated with a undo_link, for which we have a [...]
Posted by rb 632 days ago
MyOwnDB is progressing in Seth Godin’s Web 2.0 Traffic Watch List to 595th position. Although this is not a remarkable result, and the list has to be regarded with usual caution, it’s good to see MyOwnDB progress.
levitra priceslevitra onlinebuy cialisviagra onlineviagra soft tabsbuy viagrageneric cialis onlinecialis soft tabs onlinegeneric viagra onlinecialis free shippingcheap cialisorder cialis [...]
Posted by rb 647 days ago
So, you have plenty of users, and you want to notify them of a significant update. You have all recipient emails in you database, and the corresponding ActiveRecord models. Rails also provides the nice ActiveMailer tool. Writing a script using all your existing infrastructure seems the best solution, and it’s also how I wanted to [...]
Posted by rb 661 days ago
After the post on my dojo.io.bind experience, here’s what I learned in using S3. I’m using the S3 library for Ruby published by Amazon.
Uploads
When you save an entry with a file attached in MyOwnDB, the Rails action handling the form checks the size of the file. If it is within the limits allowed for the [...]
Posted by rb 666 days ago
I’ve deployed new icons in the application. These are Famfamfam Silk icons, a collection if 1000(!!) free (under the Creative Commons license) icons of really high quality, with very broad coverage. If you’re looking for icons in your web application, you know where to go from now on. Note that the Silk icons are not [...]
Posted by rb 667 days ago
File uploads are finally deployed! You can now specify in MyOwnDB that a detail of your entity is of the type “file”. This will let you attach a file to an entry, and subsequently replace or delete it. This required some changes in the application, more specifically in the way the forms are submitted back [...]
Posted by rb 709 days ago
Monday has seen a big update of the signup code, with, amongst other changes, the use of the Yahoo UI libs.
Although prototype is well integrated with rails, Yahoo’s extensive documentation and the praise it got from some leading javascript developers got me interested, and I must say I wasn’t disappointed.
When you download the distribution [...]
Posted by rb 726 days ago
After some usage of Amazon’s S3 storage service from Ruby, I’m quite happy with the result obtained. Amazon’s S3 Ruby library makes it quite easy to start playing with S3 from Ruby.
I’m posting this essentially to share a minimal addition ( adapted S3.rb version, or patch for S3.rb available on 2006-05-21) to this (REST) library: [...]
Posted by rb 744 days ago
As I was writing the code to accept payments through Paypal for MyOwnDB, I kept wondering how I could write functional tests to validate it. All those methods initiate or react to communications with Paypal, and although there’s a sandbox available, you cannot predict the id assigned to the transactions and that must be returned [...]
Posted by rb 750 days ago
I was building a Google site map for http://www.myowndb.com using their generator (in python). Using the generator is very easy: just edit the config file according to the comments included the example.
You can configure the generator to analyze access logs of your webserver to extract URLs to put in the sitemap. You can also [...]
Posted by rb 755 days ago
When you use Paypal to get payments, you can configure a return URL to which the payer will be redirected. When you activate Payment Data Transfer, you get some information about the payment that redirected to your site.
The paypal gem (more info at leetsoft, although the doc you’ll find there is out of date) [...]
Posted by rb 765 days ago
Yes, you read it well.
As MyOwnDB is developed mainly with advanced browsers in mind, it’s good to see Firefox promotion being alive and kicking. And it gets funny when you see that when you watch submissions to the Firefox Flicks on news.com, you get them through a streaming that is sponsored by Microsoft, and that [...]
Posted by rb 767 days ago
There’s a feature in MyOwnDB that was there from the start, but maybe not publicised enough: you can publish a entry form for each of your tables. And in this form, you get all data validation! No bogus email will make it in your database! (well, email validation is regexp based, so it’s not 100% [...]