search for: boilerpl

Displaying 20 results from an estimated 371 matches for "boilerpl".

Did you mean: boiler
2005 Jul 12
8
Tip Sheet for AJAX
Hi all, I''m making an Amy Hoy style tip sheet PDF for the Prototype and Scriptaculous AJAX stuff, to be used with Rails. Are there other resources you would suggest besides the websites themselves (the previous thread about Highlight reminded me of this)? Is there a particular focus that would be helpful for such a document? Preferred fonts or colors? I must say, once you get
2009 Apr 12
0
rails 2.3 nested forms with has_many through checkboxes
...small formElement" %><% end %> </li> <%- end -%> </ul> Right now, if I try and create or update a page I get the following error... ActiveRecord::UnknownAttributeError in Admin/pagesController#update unknown attribute: page_category RAILS_ROOT: /Users/rajo/Sites/boilerplate Application Trace | Framework Trace | Full Trace /Users/rajo/Sites/boilerplate/vendor/rails/activerecord/lib/ active_record/base.rb:2745:in `attributes='' /Users/rajo/Sites/boilerplate/vendor/rails/activerecord/lib/ active_record/base.rb:2741:in `each'' /Users/rajo/Sites/boilerp...
2018 Sep 06
2
Serializing LLVM IR in custom fashion
...ch, so it is almost 1-to-1 translation. Basically, I need to do what BitWriterPass does, but using different format for the resulting bytecode. The obvious solution is just to iterate over all Instructions and serialize them using giant switch(i->getOpcode()), however this involves writing much boilerplate code. And I would eventually need to write a deserializer too, so that doubles the boilerplate work. Any ideas how to do that easier way? How much of existing LLVM code can I reuse? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://li...
2009 Sep 15
1
RFC: boilerplate text in driver man pages
All, With AsciiDoc, we can make use of some macros to cut down on some of the repetition in the driver man pages. I don't want to go overboard on this, though - I know that drivers aren't meant to be invoked directly by users anyway. I propose that we put all of the gory details into the nutupsdrv(8) man page (mostly there anyway), and just add a few basic options to the
2016 Mar 01
3
Problem with mingw32 DLL build
Folks, there is an issue pretty buried in the commits list that I suspect should have wider visibility. See r262188 and subsequent discussion. To summarize: it appears that mingw32 was unable to correctly produce a static data member when instantiated as a base class. The "fix" is to then explicitly instantiate the base class separately from its use in a base class. I think this is
2018 Mar 30
0
[PATCH 00/24] drm_framebuffer boilerplate removal
On Fri, Mar 30, 2018 at 10:11 AM, Daniel Stone <daniels at collabora.com> wrote: > Hi, > I've been working on a getfb2[0] ioctl, which amongst other things > supports multi-planar framebuffers as well as modifiers. getfb > currently calls the framebuffer's handle_create hook, which doesn't > support multiple planes. > > Thanks to Noralf's recent work,
2015 Jun 16
4
[LLVMdev] AliasAnalysis refactoring for the new pass manager
...s. They are, IMO, completely useless at this point. It also turns out that it is *nearly* impossible to define a normal class and a collection of constants that behave in the way folks generally want a strongly typed enum to behave. It requires class templates, typedefs, constexpr, and like 3x the boilerplate code. Its nuts.[1] So the options I see are: 1) Commit the significant body of code necessary to emulate proper enum classes in C++, and document it as a boilerplate pattern. I might be able to shrink it with some clever macro tricks, but it looks pretty doubtful honestly. 2) Use "enum c...
2020 May 14
2
R 4.0.0
...so contribute changes to srpm generators like https://pagure.io/r2spec. This is a one-time change. Then when a new R version shows up it is enough to bump the release and rebuild the package. With the added advantage that all the cobwebs and dust are cleaned. :-) Another advantage is that the boilerplate code required to create a srpm package decreases. :-) Regards, -- Jos? Ab?lio
2006 Jul 27
9
CalendarHelper
Has anyone had any luck using the CalendarHelper plugin at http://wiki.rubyonrails.com/rails/pages/CalendarHelper recently? I''m scratching my head over the following error when I look at any page in my application: NameError in CalendarController#index undefined local variable or method `date_format'' for #<CalendarController:0x24ccd4c> RAILS_ROOT:
2005 Dec 01
1
service_cli.rb
Hi, I just got done using win32/service to run a very small/hack-ish "Riki" WEBrick service. Very cool stuff. Thanks. So, in the process, I noticed a lot of the "control" start/install/etc. command line parser stuff looked a bit boilerplate, so I pulled it out into a helper function "service_cli" (for lack of a better name). Its simple, but it allows me to do away with a Riki-specific control script. So I can just do: riki.rb: ---- $LOAD_PATH.unshift File.dirname(__FILE__) require ''service_cli'' class...
2020 Apr 15
2
Re: [PATCH nbdkit UNFINISHED] Add the ability to write plugins in golang.
...hey are standalone programs that compile into shared objects > that nbdkit can then load (so there is no "go plugin" between nbdkit > and the user plugin, unlike in scripting languages like Perl). Why did you choose this approach ? Looking at the code below there's the general boilerplate that will be approx the same for all plugins with cut+paste tedium across projects, and then there's the "interesting" code in test.go The methods in test.go though look quite unappealing from a Go programmer's POV, as the API contracts are full of CGo types and unsafe pointer...
2005 Aug 19
13
Enumerations (again): Comments please
...- It should be easy to define enumerations; in particular it should not be necessary to define a model class in a separate file for each enumeration. - It should be possible to store each enumeration in its own table or all enumerations in a single table. The resulting syntax looks like this: BoilerPlate::Enumerations::define_enums( ''FirstEnum'', {:class_name => ''AnotherEnum, :table_name => ''second_enum'' } ) Further options are :position for ordering and :conditions which can be used to map records from the same table to different enumerati...
2020 Jan 30
1
Re: [PATCH libnbd] python: Add AIO buffer is_zero method.
...rry for making you read all this, but I feel like you're very > knowledgeable and I struggle with this on a regular basis, so some > consensus would help me. Questions of a legal nature should be addressed to and answered by lawyers, but it's my current understanding that we need the boilerplate in files to make a cast iron assertion of copyright, licensing and warranty conditions. Until a lawyer (from RH Legal in this case) tells me otherwise, I'm afraid we need to keep the boilerplate. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read...
2006 Jul 27
9
Introspecting validates_presence_of
Hello people, I''d like to detect whether an attribute of a model has vaildates_presence_of applied to it so I can automatically apply a mandatory (*) to the field...it doesn''t look easy...any ideas? Cheers, -- Dan Webb http://www.danwebb.net
2005 Aug 16
1
Defining model classes for enumerations
...enum specification must contain a :class_name'' if class_name.empty? order = spec[:order] || ''position'' table_name = spec[:table_name] || class_name else class_name = spec end module_eval("class #{class_name} < BoilerPlate::EnumRecord; end") enum_class = const_get(class_name) enum_class.table_name = table_name enum_class.preload(:order => order) # mixed-in somewhere else end end end Used like this in, say, environment.rb EnumRecord::define_enums( ''Status...
2006 May 09
7
When to use optimistic locking?
Hi All, I''m having some trouble deciding when and how to implement optimistic locking. Let''s say I have a multiuser Rails app, and let''s say it stores, among other things "vital" customer information. The standard methods created by the Rails generate scaffold script look like this: def edit @customer = Customer.find(params[:id]) end
2008 Sep 18
4
Strange ! characters inserted into emails
I have never encountered anything like this before, so thought I'd post here and see if anyone can help. We have a java application that sends out notification emails to end-users. The body of the email is some boilerplate text and HTML that is pulled from a database. When the emails are received there are random instances of " !" (that's a space and a bang symbol) inserted into the email in various locations. For example a sentence that is supposed to read like this: The quick brown fox jumped ov...
2015 Jul 09
5
built kernel-3.10.0-229.7.2.el7 OK but install fails
Hi all - First the boilerplate: On centos-release.x86_64 7-0.1406.el7.centos.2.3 [root at localhost x86_64]# uname -a Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux [root at localhost x86_64]# rpm -qa kernel\* | sort kernel-3.10.0-123.el7.x...
2016 Jul 31
2
Letor: returning MSet after re-ranking
...sed to implement a diversification > feature or something like SQL "GROUP BY". Isn't the most common use going to be that the client (letor or whatever) knows what documents are in what order, possibly with what new weights? I'd have thought people will end up writing the same boilerplate code if they have only swap / set weight options, but maybe I'm not seeing something. J -- James Aylett, occasional trouble-maker xapian.org
2005 Aug 07
11
HABTM Movable Select Box
Hi, I found it a while ago, an add-on to Rails for supporting movable select boxes, but I searched through the wiki and the mailing list and couldnt find what I was looking for. I was hoping someone might know of or remember something about the project. Thanks, Dylan.