search for: media_fil

Displaying 7 results from an estimated 7 matches for "media_fil".

Did you mean: media_file
2007 Dec 13
4
please explain find_with_ferret, retrieve_records, :include and :conditions
...del search? # First Try. This syntax with using a hash to contain the include params works with regular active_record calls. @results = Inventory.find_with_ferret( @query, { :multi => [ Artist], :page => params[ :page ], :per_page => 10 }, { :include => {:media_files => {}}, :conditions => [ "media_files.file and inventories.status = ''donated''" ] } ) # Resulting Error undefined method `to_sym'' for [:media_files, {}]:Array # Second try. I put the :include params in [] array brackets to see if that would help...
2007 May 04
1
habtm and also has_many of the same things
Hi, our app is a situation where users can upload files and also mark files uploaded by other users as their favorites. So for the favorites we are using a simple many-to-many with a tie table. So in attempting that it looks like class User < ActiveRecord::Base has_and_belongs_to_many :media_file has_many :media_file end class MediaFile < ActiveRecord::Base has_and_belongs_to_many :user belongs_to :user end but that won''t work because obv. if you call current_user.media_file.find(:all) there is no way to specify which association you are looking for. Or is there? if...
2018 Aug 08
0
[ANNOUNCE] igt-gpu-tools 1.23
...GPU Tools, docs and install paths are now "igt-gpu-tools". (Arkadiusz Hiler) - Added a blacklist for the Intel CI. (Petri Latvala) Library changes: - i915_pciids.h updated to include KBL, ICL, WHL and AML. (José Roberto de Souza, Paulo Zanoni) - Overhaul of gpu_cmds, gpgpu_fill, media_fill and rendercopy. (Katarzyna Dec, Lukasz Kalamarz) - Added igt_matrix and igt_color_encoding helper libraries. (Ville Syrjälä) - IGT now shows the kernel stack trace when reporting a GPU hang. (Chris Wilson) - Added Icelake platform support. (Arkadiusz Hiler, Paulo Zanoni) Tools changes: - i...
2012 Jan 27
2
to_json performance
...Hash with keys mapped, like so: class Hash def self.transpose(keys, values) self[*keys.zip(values).flatten] end end keys = %W{token artist album genre release_year title duration duration_in_seconds position play_count favorited disc_number} my_hash = @playlist.media_files.ordered.values_of(*keys).collect{ | v| Hash.transpose(keys, v) } Nice, now we have a Array of Hash without instantiating AR objects but with all the info we need about our objects. This operation proved to be _extremely_ fast even if we are transforming and inserting 50k records. Now, on to the...
2004 Nov 19
18
SingleTableInheritance Considered Harmful
Here''s the text of a quick note I''ve added to the Inheritance wiki page. I''m actually proposing that it would be a good idea to drop automatic single table inheritance and force people to declare it explicitly. There are two reasons for this: 1. Implicitly doing it unnecessarially limits your use of inheritance where you really need it: in your object-oriented
2017 Oct 04
0
[ANNOUNCE] intel-gpu-tools 1.20
...ne.sh: Fix bashism meson.sh: Invoke meson correctly meson: Also build kms_atomic_interruptible benchmarks: Actually build LIBDRM_INTEL_BENCHMARKS benchmarks: Add wsim files to dist benchmarks: Add ezbench.d files to dist demos: Remove final file lib: Remove media_fill.c lib: Handle intel_aub.h like the other stub files docs: Distribute audio.txt and chamelium.txt meson: Distribute meson build system files meson: Follow suit with the renaming of kms_pipe_color kms_atomic_interruptible: Add missing #include gem_exec_schedule: A...
2020 Mar 20
0
[ANNOUNCE] igt-gpu-tools 1.25
...sts on TGL Karthik B S (2): tests/kms_dp_tiled_display: Request a mode on resolution that matches tile size tests/kms_dp_tiled_display: Skip the test when all the tiled connectors are not connected Katarzyna Dec (2): lib/gpgpu_fill/tgl: Implement gpgpu_fillfunc for TGL lib/media_fill/tgl: Implement media_fillfunc for TGL Kunal Joshi (4): lib/chamelium: Add a non-asserting frame match function Moved common function in kms_color and kms_color_chamelium to kms_color_helper.c tests/kms_color_chamelium: add subtests to validate color tests/kms_chamelium: Ad...