Displaying 20 results from an estimated 5000 matches similar to: "[PATCH] Builder with hash for style attribute"
2005 Aug 13
4
Timing out ajax requests?
Has someone come up with a generic way to handle ajax requests that
exceed a certain time?
In my concrete case, I have several select boxes for drilling down a
hierarchy. When the user clicks an option, the next deeper level is
retrieved. To avoid multiple concurrent requests, I disable the select
box. As the request may take too long or cause an error, I set a
timeout that re-enables the
2005 Aug 31
11
Documentation generator?
I''m looking for a documentation generator for JavaScript code that can
handle the coding style used in prototype.js and script.aculo.us. Any
recommendations for such a tool?
In a similar vein, does it make a noticeable difference in production
when comments are removed and several script files are combined into a
single one?
Michael
--
Michael Schuerig Most people
2005 Oct 09
1
Setting the user for FastCGI processes?
I''d like to run the FastCGI as a different user than the Apache2 server
(www-data on Debian). I take it this is possible in some way with
suExec2, but so far I haven''t figured out how to do it.
Michael
--
Michael Schuerig Life is just as deadly
mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org As it looks
2006 Jul 28
4
Validation Reflection plugin
The validation reflection plugin adds three things
(1) Reflective access to validations
- ModelClass.reflect_on_all_validations
- ModelClass.reflect_on_validations_for(:property)
(2) It provides "declarative" methods for defining
validations based on database metadata
- validates_presence_of_mandatory_content_columns
- validates_lengths_of_string_attributes
-
2005 Jun 29
2
Unit testing
Recently, I''ve started to write unit tests for some of my scripts. In
general,it''s no worse in JavaScript than in Ruby or Java. I didn''t have
the courage to try Selenium, but had a look at JsUnit. Unfortunately,
in Konqueror it produces unfathomable errors and in Firefox it is slow
beyond imagination.
Anyway, writing tests for functions that are computational or
2005 Sep 13
3
Alternatives to Rico LiveGrid?
I''m no friend of paging, but I have to somehow deal with lists of
potentially large numbers of objects. The Rico LiveGrid[*] at first
blush seems attractive, but has some major drawbacks. It doesn''t work
with Safari/Konqueror, not yet anyway. It can only handle fixed-size
tables and requires that widths, including column widths, are
hand-crafted.
I''m looking for a
2005 Aug 22
8
Observing changes to a text field
I''ve noticed that using several TimedObservers (prototype.js) on a page
to watch for changes to text fields (haven''t tried forms) can have a
non-negligible effect on the CPU cycles used by the browser process.
Nothing dramatic, to be sure, but unnecessary.
Autocompleter.Base (controls.js) follows a smarter strategy to watch for
changes. Currently this functionality is tied
2010 Sep 01
2
Undefined methods: has_selector? and flunk
I''m in the process of updating an app for Rails 3.0 and rspec-rails
2.0.0.beta20. When I''m running my specs (rake spec) I get a large number
of errors caused by two undefined methods
undefined method `has_selector?'' for #<String:0x7fdbd0b5b270>
undefined method `flunk'' for
2009 Jan 23
2
[LLVMdev] Reading recommendations?
[I sent this already two days ago, but apparently the message didn't get
through. It is not in the archive either.]
I've read through the Programmer's Manual, Language Reference, and
Kaleidoscope Tutorial, still I'm struggling to get started hands-on
with LLVM. This may just be a passing phase and I'm in no hurry, so I'd
like to take the time to read up some more on
2006 Aug 19
1
Re: DB Auditing
On Saturday 19 August 2006 11:25, Jeremy Cowgar wrote:
> A recent thread titled "DB record versioning/audit" made me post this
> message:
>
> I''ve created a plugin called "acts_as_logged".
There already is acts_as_audited.
Michael
--
Michael Schuerig
mailto:michael@schuerig.de
http://www.schuerig.de/michael/
2005 Jul 10
1
Konqueror compatibility
Thomas,
currently the script.aculo.us scripts have some workarounds for Safari
that should be extended to more generally cover all khtml-based
browsers, Konqueror in particular.
In prototype.js, there is a workaround for an addEventListener bug that
affects Konqueror as well as Safari, controls.js has a similar
workaround, and the special case in dragdrop.js doesn''t hurt anyway.
In
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
2010 Jul 04
2
Rendering a different format in the implementation of a renderer
Yehuda has a nice article on implementing a custom renderer for PDF at
http://www.engineyard.com/blog/2010/render-options-in-rails-3/
I''ve tried to follow the example and I''m not sure I see how to get it to
work. If I understand things correctly, the format(s) usable in this
render call
respond_with(@resource) do |format|
format.xyz { render :xyz => ... }
end
2005 Jun 28
2
Problems with repeated calls to setTimeout?
Prototype.js and Thomas''s effects scripts use repeated setTimeout calls
for timed looping, for instance in time-based observers.
On Konqueror 3.4.1 (possibly other khtml-based browsers, too), these
observers reproducibly crash the browser. Just keeping open a browser
with such an observer is enough. After some time it invariably
segfaults. When I substitute setInterval for setTimeout
2005 Sep 25
1
Prototype "classes" and inheritance
JavaScript doesn''t (yet) have a notion of classes. Prototype.js just
adds a suitable convention for implementing them. It provides a way to
create a new class by extending a base class using Object.extend, but
it doesn''t handle method inheritance. There are ways of doing
implementing this through traversing the chain of prototypes, but I''m
not sure they are
2008 May 03
9
Any news on the rSpec books?
I admit it, when it comes to rSpec, I''m lazy. I''ve made a few feeble
attempts to use it, but for once I''m waiting for a book-length
treatment. At least two books were announced, I think. Can anyone in
the know please report on their progress?
Thanks
Michael
--
Michael Schuerig
mailto:michael at schuerig.de
http://www.schuerig.de/michael/
2009 Jan 19
4
[LLVMdev] PATCH: llvm-top git support and out-of-tree building for llvm
What: The original scripts in llvm-top assume that they're dealing with
a subversion working copy. The patch adds support for a git repository
cloned using git svn.
The other two patches make llvm (core) do an out-of-tree build, i.e.,
the source tree is kept clean, and tells llvm-gcc-4.2 to find llvm in
the right (new) place.
Why: Using git it is possible to fiddle locally with the code,
2005 Aug 16
1
Defining model classes for enumerations
I have several tables for enumerations. They all have the same content:
id, name, position. I''d like to avoid the tedious work of defining a
class for each one explicitly. Not least, in order to avoid clutter in
the model directory.
Here''s what I''ve come up with:
class EnumRecord < ActiveRecord::Base
def self.define_enums(*enums)
enums.each do |spec|
2005 Aug 28
8
Save and delete buttons: POST vs. proximity dilemma
I''m in a dilemma: In order to keep GET requests from deleting objects,
I''d like to use the button_to helper to get "something" that generates
a POST request. Unfortunately, that something is a form and forms can''t
be nested.
I''d also like to place buttons related to the same form close to each
other. At the top are some navigational buttons
2010 Jun 20
10
RSpec 2 view example: render_template
On http://github.com/rspec/rspec-rails under "View specs" there''s an
example
describe "events/index.html.erb" do
it "renders _event partial for each event" do
assign(:events, [stub_model(Event), stub_model(Event)])
render
view.should render_template(:partial => "_event", :count => 2)
end
end
Is this indeed correct? From the