search for: find_

Displaying 14 results from an estimated 14 matches for "find_".

Did you mean: find
2006 Jun 07
2
Are the find_ methods strictly a SQL thing?
I''ve had a number of occasions now where I want to find something in my model that is not on the primary object. For instance I''ve got a class Alert that has_one Status. Status has a "label". I want to find all of my Alert objects and order the results alphabetically by status label. Can I do that without going into SQL? Right now I find myself doing an
2006 Aug 02
2
Hiding Model Attribute
I have a model object for which I would like to effectively hide one attribute (a password hash) so that it is never returned by a find_* call. I have tried several unsuccessful means. Is there a simple way to do this that I am overlooking? Thanks, Doug
2006 Aug 01
2
HOWTO? security based on data values
...thing for each). So basically, I am trying to implement a ''view'' of the data once an employee logs in, which shows only those transactions, which correspond to the employee''s companies. The simple (and tedious way) is to modify all controllers options and change all find_* methods to take an appropriate ID to restrict the records it returns. Given that there are several entities, this is a tedious approach. Is there some other way to configure this ''data based security'' ? A simple way which causes the model to restrict the records it throws out...
2006 Jul 14
5
Acts_As_Taggable Plugin multiple controllers.
I have Acts_As_Taggable Plugin working. I have a HR controller and a sales controller. I have a document in hr tagged whitepaper and a differnent document in sales tagged whitepaper when I am in hr I see the hr document tagged with whitepaper and not the sale document (what I want). but if I click on the tag whitepaper I return two documents, hr and sales. I just want to return the hr document
2017 Feb 14
3
(RFC) JumpMaps: switch statement optimization
I wonder if it would make sense to emit the jumpmap_find_ functions in IR rather than in compiler-rt. Many targets don't link against compiler-rt, e.g. x86 Linux typically uses libgcc. If they're emitted in IR, the functions could potentially be inlined. For example if the size of the switch is known to be small so no binary search is done, coul...
2018 Feb 23
1
StringRef hasAnyOf/hasAllOf
Hi, a downstream consumer of llvm I'm currently working provides the following two functions: static bool StringHasAllOf(const llvm::StringRef &s, const char *which); static bool StringHasAnyOf(const llvm::StringRef &s, std::initializer_list<const char *> which, size_t &where); https://github.com/apple/swift-lldb/blob/stable/source/Target/SwiftLanguageRuntime.cpp#L691
2006 Aug 02
2
Ajax_Scaffold display from link table
...val => "document.category.name", :sortable => false }) ] end _form.rhtml <div class="form-element"> <label for="document_category">Category</label> <%= select ''document'', ''category_id'' , Document.find_{[p.id ] } %> </div> documents_controller.rb @paginator, @documents = paginate(:documents, :order => @sort_by, :include => :category, :per_page => default_per_page) I keep getting the following error: ActiveRecord::StatementInvalid in DocumentsController#component Mysql::Error:...
2006 Aug 05
5
RESTful Nesting issue
I?m having a strange issue with nested routes though, and was wondering if anyone could shed some light on this? If I have: map.resources :users do |users| users.resources :items end When I try to call <%= link_to_remote ''Delete'', :url => item_url(@item), :with => "''_method=delete''", :confirm => ''Are you sure?''
2019 Jan 20
5
[PATCH nbdkit 0/4] partition: Support MBR logical partitions.
This implements support for MBR logical partitions in nbdkit-partition-filter, complementing existing support in the partitioning plugin. Rich.
2017 Feb 14
2
(RFC) JumpMaps: switch statement optimization
JumpMap lowering is nearly identical to that of JumpTables with the exception of lack of range-check basic-block. We introduce JumpMapInfo structure which follows the same flow as JumpTableInfo and is finally emitted by AsmPrinter. There are many ways a Target may want to encode jumpmaps (deltas, compression, relative vs absolute), so we plan to keep this flexible and target-driven when
2013 Apr 03
0
[PATCH] Btrfs-progs: add a free space cache checker to fsck
...+#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) +#define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64)) +#define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u32)) + +#define for_each_set_bit(bit, addr, size) \ + for ((bit) = find_first_bit((addr), (size)); \ + (bit) < (size); \ + (bit) = find_next_bit((addr), (size), (bit) + 1)) + +/* same as for_each_set_bit() but use bit as value to start with */ +#define for_each_set_bit_from(bit, addr, size) \ + for ((bit) = find_next_bit((addr), (size), (bit)); \ +...
2018 Jan 19
9
[PATCH nbdkit filters-v3 0/7] Introduce filters.
This is still tentative and needs a lot of work, but: - partition filter works, supporting MBR & GPT - prepare and finalize methods fixed - open method can now be changed (allowing readonly flag to be modified) - thread_model can be limited I believe I made most of the changes which were previously suggested in email. I think the only one I didn't was preventing inclusion of both
2013 Feb 22
48
[PATCH v3 00/46] initial arm v8 (64-bit) support
This round implements all of the review comments from V2 and all patches are now acked. Unless there are any objections I intend to apply later this morning. Ian.
2013 Jan 23
132
[PATCH 00/45] initial arm v8 (64-bit) support
First off, Apologies for the massive patch series... This series boots a 32-bit dom0 kernel to a command prompt on an ARMv8 (AArch64) model. The kernel is the same one as I am currently using with the 32 bit hypervisor I haven''t yet tried starting a guest or anything super advanced like that ;-). Also there is not real support for 64-bit domains at all, although in one or two places I