Displaying 20 results from an estimated 1000 matches similar to: "Myowndb: a web database built with rails"
2006 Mar 31
2
[Howto] custom and translated AR validation error messages
Hi,
I''m putting the finishing touches on a multi-lingual application, and
just posted a blog entry on how I did translate validation errors
generated by ActiveRecord at: http://www.myowndb.com/blog/?p=4
I found it surprisingly easy, and thought I''d document it.
The translation is based on a plugin I plan to publish really really
soon, more info whith the upcoming announcement.
2014 Mar 20
2
io mode=native precisions
Hi,
Before switching to io mode=native, I wanted to check if there are any
disadvantages or potential problem with this setting.
I virtio-blk data plane required to use this setting effectively? (as
illustrated here:
http://blog.vmsplice.net/2013/03/new-in-qemu-14-high-performance-virtio.html)
Is there a requirement on the host kernel (eg minimum version)?
Thanks in advance
Raph
2009 Dec 03
1
Ann: ArEvents
Hi,
I needed to be able to add actions to be taken during the lifecycle of
ActiveRecord object, but needed to configure it dynamically.
Observers were not flexible enough and I ended up developing ArEvents,
which lets you easily attach and detach event listeners, the events
correspond to the active record callbacks.
If you have an existing model, just include the ArEvents module:
2014 Mar 24
1
Re: io mode=native precisions
On 03/24/2014 03:57 AM, Raphael Bauduin wrote:
>
>
>
> On Thu, Mar 20, 2014 at 9:13 AM, Raphael Bauduin <rblists@gmail.com
> <mailto:rblists@gmail.com>> wrote:
>
> Hi,
>
> Before switching to io mode=native, I wanted to check if there are any
> disadvantages or potential problem with this setting.
> I virtio-blk data plane required
2005 Dec 19
1
multiple databases
Hi,
I''m writing a translation plugin which takes the translations from a
database that is different than the application''s main database.
When in my plugin''s models I put this code:
ActiveRecord::Base.establish_connection(
RAILS_ENV+"-translations"
)
all my application''s models use the plugin''s database....
Why are my
2006 Jan 07
1
datetime returned as string, sometimes....
Hi,
I''m using postgresql 8.1, rails 1.0, and I have a strange problem on a
datetime field (timestamp without time zone in postgresql).
As shown below, the field "value" sometimes returns a string, and
sometimes a Time instance, depending of where the value is used....:
* breakpoint session _from inside an instance method_ of the object:
value
=> "1996-05-01
2006 Apr 05
7
AdminPages Rails CMS is now an engine
Hi all, I just released the new version of my CMS AdminPages as a Rails
engine.
It uses the Dojo Toolkit for UI elements.
Features:
Manipulate pages and content with Drag n Drop,
Pages in a sortable tree,
easy to define new page elements,
"Nice" URLs,
Page Caching,
Rich Text Editor,
multiple columns per page,
custom content types,
Layout scaffolding
BSD license
2005 Mar 07
3
exclude an attribute from save
Hi,
I''ve used .save to save the attributes, but on my table there is an
autoincrementing id (not the primary key) that doesn''t need to be
inserted... but save try to INSERT it anyway... is there a way to
avoid save from acting this way or to whisper him to be more polite
this time? ;)
Thanks,
Enrico
--
"The only thing necessary for the triumph of evil
is for good men to do
2006 Jan 15
1
how to provide plugin configuration?
Hi,
I''m finalising a translation plugin I use in one app. I''d like the
plugin the be configurable but am not sure how to provide this
configurability. For example, there''s a setting for the cookie name to
use when saving user''s prefered language. I thought of having a class
TranslationConfig like this:
class TranslationsConfig
def self.cookie_name
2006 Jan 02
3
ANN: new rails site/RoR praise
Hi,
>From idea to launch in less than 48 hours (those 48 hours including
the new year party ;) , rails once again showed its effectiveness.
Last friday I read the news about a guy who sold a million pixels for
1$ each on his homepage. After slamming my head during half an hour
for not having thought of it [1], I thought I''d better spend some time
on a rails project, and more as a
2014 Mar 26
1
host crashes "unable to handle paging request"
Hi,
we have regular crashed of a kvm host with the error "unable to handle
paging request".
Can this be due to memory over-commitment even if some memory is still used
by the kernel for caches and buffers? (collectd graph shows no free
memory, with 15G used, very little buffers, and 1G cache). There are 32GB
of swap, of which only 150MB are used.
I suspect might be the direction to
2005 Mar 02
3
uprgrade to 0.10: uninitialized constant Class::Object
Hi,
I installed rails 0.10 with ruby gem, and upgraded my application as
described at http://manuals.rubyonrails.com/read/book/15 .
Now, when accessing the action index of the controller rss_feed, I get
this error in the terminal when I started the server:
#<NameError: uninitialized constant Class::Object>
2006 Apr 16
1
plugins problems with RoR 1.1 in production
Hi,
I''m looking to upgrade an application based on rails 1.0, and I have a
problem with plugins working fine in development, but not in
production or test. Actually, it happens in all environments with
their dependency mechanism set to :load.
For example for the selenium on rails plugin, it needs the class
SeleniumOnRailsConfig, which triggers the dependency on
2006 Apr 11
6
Google Base... in Rails?
Ok, so this is kinda out of the blue... but I''ve been looking at
Google Base and thinking that it''s got some really good ideas in it.
Especially the way you can create your own "type" of item with its own
custom attributes, like date range, location, number, text, etc. Kind
of like defining a database with a GUI, but not exactly.
It seems really interesting to me, from
2012 Jan 26
1
adding additional information to histogram
Hi,
I am a beginner with R, and I think the answer to my question will
seem obvious, but after searching and trying without success I've
decided to post to the list.
I am working with data loaded from a csv filewith these fields:
order_id, item_value
As an order can have multiple items, an order_id may be present
multiple times in the CSV.
I managed to compute the total value and the
2005 Dec 28
1
advice needed: damagecontrol or CIA?
Hi,
I''m looking to set up a continuous integration server for a rails
application. This application is under source control with darcs.
I''ve read about damagecontrol and CIA, and wonder what experience you
can share so I can make my mind.
CIA seems to work with a post-commit so I should be able to use it
with darcs. And as it is in the rails svn repository, I have good hope
2012 Nov 13
1
help formatting data for clustering
Hi,
I'm a R beginner. I have data of this form:
user_id, brand_id1, brand_id2, .....
for example:
1 , 45 , 32, 45, 23
2 , 34
4, 11, 43, 45
I'm looking for the right procedure to be able to cluster users. I am
especially interested to know which functions to use at each step.
I am currently able to load the data in a data frame, each row's name being
the user id.
#extract user
2005 Nov 28
5
Rails on lighttpd through proxy
Hi All,
We have a PHP site running on apache 1.3 and Im trying to graft typo
onto it at /blog/. Ive got the running using the symlink method but
apache/fastcgi are clunky to say the least so I want to move typo over
to lighttpd. Ive got this all working and Im now trying to get a
proxy working through from apache. Im using this:
RewriteRule ^/blog/?(.*)$ http://blog.myorg.net:8080/$1 [P]
2005 Sep 06
4
url_for: :overwrite_params went missing
Somewhere between 0.13.1 and the current SVN version
the :overwrite_params option to url_for (and related methods) went
missing. I can''t tell whether this was deliberate or by mistake, and I
have no idea how to get the same functionality in some other way
either.
Michael
--
Michael Schuerig Life is what happens
2014 Mar 24
0
Re: io mode=native precisions
On Thu, Mar 20, 2014 at 9:13 AM, Raphael Bauduin <rblists@gmail.com> wrote:
> Hi,
>
> Before switching to io mode=native, I wanted to check if there are any
> disadvantages or potential problem with this setting.
> I virtio-blk data plane required to use this setting effectively? (as
> illustrated here:
>