search for: image_type

Displaying 20 results from an estimated 25 matches for "image_type".

Did you mean: image_types
2006 Sep 03
7
using polymorphic associations with acts_as_list
...has_many :photos, :as => :image end I want to be able to reorder the images. What I need is for the position of the photos to be set within the scope of the parent (ie. either the place or child). But when I tried it out, it is taking the "image_id" into account, but not the "image_type". This causes a problem when a child and a place have the same ID. Is there a way to set the scope differently? Is it possible to set the scope to two individual columns? This is what I tried and failed: acts_as_list :scope => "#{self.image_id}_#{self.image_type}" acts_a...
2006 May 30
1
Can''t read from file field second time around
...ller and it fails on the second attempt - to resize and save the medium size image: if @params[:listing_image] @thumbnail_image = ListingImage.new(@params[:listing_image]) @listing = @session[:listing] @thumbnail_image.listing_id = @listing.id @thumbnail_image.image_type = "thumb" @thumbnail_image.resize if @thumbnail_image.save! @med_image = ListingImage.new(@params[:listing_image]) @med_image.listing_id = @listing.id @med_image.image_type = "med" @med_image.resize if @med_imag...
2015 Oct 21
0
Bug#753358:
...till getting the same error in the bootloader.log: ---- Traceback (most recent call last): File "/usr/lib/xen-4.4/bin/pygrub", line 809, in <module> part_offs = get_partition_offsets(file) File "/usr/lib/xen-4.4/bin/pygrub", line 106, in get_partition_offsets image_type = identify_disk_image(file) File "/usr/lib/xen-4.4/bin/pygrub", line 48, in identify_disk_image fd = os.open(file, os.O_RDONLY) OSError: [Errno 2] No such file or directory: 'gd-test-domU-disk' --- --- Traceback (most recent call last): File "/usr/lib/xen-4.5/bin/pyg...
2014 Oct 13
2
[PATCH][git-pull] lua: fix broken bindings, switch to using methods, document things
...d772e4d62d3585b8f7bac43b4b: lua: simplify the function/value handling in the automenu test (2014-10-13 12:44:15 +0200) ---------------------------------------------------------------- Ferenc W?gner (25): lua: make kernel and initrd progress output match in sl_boot_linux lua: add the IMAGE_TYPE table to the syslinux module lua: share the export macro (CPP only change) lua: docs: do not reference removed example lua: docs: add new bindings to syslinux.asc lua: vesa: delete stray would-be-debug output lua: docs: bring documentation up to date lua: docs: r...
2018 May 27
1
Using libvirt to access Ceph RBDs with Xen
...(re-)build domain: -3 /var/log/xen/bootloader.14.log: -> Traceback (most recent call last): File "/usr/lib64/xen/bin/pygrub", line 896, in <module> part_offs = get_partition_offsets(file) File "/usr/lib64/xen/bin/pygrub", line 113, in get_partition_offsets image_type = identify_disk_image(file) File "/usr/lib64/xen/bin/pygrub", line 56, in identify_disk_image fd = os.open(file, os.O_RDONLY) OSError: [Errno 2] No such file or directory: 'rbd:devel-pool/testvm3.rbd:id=libvirt:key=AQBThwFbGFRYFxxxxxxxxxxxxxxx==:auth_supported=cephx\\;none:mon_h...
2012 Jul 19
2
[PATCH] pygrub: add syslog support to pygrub
...eturn slicesect * SECTOR_SIZE - raise RuntimeError, "No root slice found" + raise RuntimeError, "No root slice found" def get_fs_offset_gpt(file): fd = os.open(file, os.O_RDONLY) @@ -102,7 +103,7 @@ FDISK_PART_GPT=0xee def get_partition_offsets(file): image_type = identify_disk_image(file) if image_type == DISK_TYPE_RAW: - # No MBR: assume whole disk filesystem, which is like a + # No MBR: assume whole disk filesystem, which is like a # single partition starting at 0 return [0] elif image_type == DISK_TYPE_HYBRIDI...
2016 Mar 20
0
[PATCH 0/1] EFI image booting capabilities
....com> > --- > diff -uprN a/com32/elflink/ldlinux/execute.c b/com32/elflink/ldlinux/execute.c > --- a/com32/elflink/ldlinux/execute.c 2014-10-06 10:27:44.000000000 -0600 > +++ b/com32/elflink/ldlinux/execute.c 2015-02-18 18:46:02.193886584 -0700 > @@ -41,6 +41,7 @@ const struct image_types image_boot_type > { "fdimage", IMAGE_TYPE_FDIMAGE }, > { "com32", IMAGE_TYPE_COM32 }, > { "config", IMAGE_TYPE_CONFIG }, > + { "efi", IMAGE_TYPE_EFI }, > { NULL, 0 }, > }; > > @@ -89,6 +90,13 @@ __export void e...
2015 Sep 18
0
Bug#753358: Bug#743977: drbd8: Xen resource script fails when using the xl stack
...in that version at all. The actual error is: -- snip -- Traceback (most recent call last): File "/usr/lib/xen-4.4/bin/pygrub", line 809, in <module> part_offs = get_partition_offsets(file) File "/usr/lib/xen-4.4/bin/pygrub", line 106, in get_partition_offsets image_type = identify_disk_image(file) File "/usr/lib/xen-4.4/bin/pygrub", line 48, in identify_disk_image fd = os.open(file, os.O_RDONLY) OSError: [Errno 2] No such file or directory: 'foo1' -- snip -- when we try to boot a guest with /usr/lib/xen-4.4/bin/pygrub as bootloader....
2015 Oct 13
0
[PATCH 1/2] ldlinux: fix stack overflow when running COM32 modules
...28 ++++++++++++++++++++-------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/com32/elflink/ldlinux/execute.c b/com32/elflink/ldlinux/execute.c index 653c880..3955571 100644 --- a/com32/elflink/ldlinux/execute.c +++ b/com32/elflink/ldlinux/execute.c @@ -44,6 +44,7 @@ const struct image_types image_boot_types[] = { { NULL, 0 }, }; +extern jmp_buf __return_to_command_prompt; extern int create_args_and_load(char *); __export void execute(const char *cmdline, uint32_t type, bool sysappend) @@ -136,7 +137,8 @@ __export void execute(const char *cmdline, uint32_t type, bool sysap...
2006 Jun 22
3
Compare against array
I have a database field called file_type. I want to compare it against an array of types to either display it as an image or just create a link to it. I am sure there is an easy way to do this but I can''t think of it. I don''t want to do this: <% if resource.file_type == ".png" OR resource.file_type == ".jpg" ... %> I would like to do: <% if
2009 Apr 03
1
How to find out image width and height which is saved in database?
How to find out image width and height which is saved in database, with out using any applications or addons Please help --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe
2014 Oct 24
0
[PATCH][git-pull] lua: fix broken bindings, switch to using methods, document things
...gt; lua: simplify the function/value handling in the automenu test (2014-10-13 12:44:15 +0200) > > ---------------------------------------------------------------- > Ferenc W?gner (25): > lua: make kernel and initrd progress output match in sl_boot_linux > lua: add the IMAGE_TYPE table to the syslinux module > lua: share the export macro (CPP only change) > lua: docs: do not reference removed example > lua: docs: add new bindings to syslinux.asc > lua: vesa: delete stray would-be-debug output > lua: docs: bring documentation up t...
2015 Feb 20
6
[PATCH 0/1] EFI image booting capabilities
...asotta <masottaus at yahoo.com> --- diff -uprN a/com32/elflink/ldlinux/execute.c b/com32/elflink/ldlinux/execute.c --- a/com32/elflink/ldlinux/execute.c 2014-10-06 10:27:44.000000000 -0600 +++ b/com32/elflink/ldlinux/execute.c 2015-02-18 18:46:02.193886584 -0700 @@ -41,6 +41,7 @@ const struct image_types image_boot_type { "fdimage", IMAGE_TYPE_FDIMAGE }, { "com32", IMAGE_TYPE_COM32 }, { "config", IMAGE_TYPE_CONFIG }, + { "efi", IMAGE_TYPE_EFI }, { NULL, 0 }, }; @@ -89,6 +90,13 @@ __export void execute(const char *cmdlin do_sysapp...
2007 Jun 21
19
Writing a tool for Shared Persistent Windows Boot Image
Before, in my "Hard Problem" email I was trying to communicate a design issue were trying to solve with Xen. This is what we need to do: 1) Deploy 24 Windows XP VMs in parallel. 2) Boot them from a shared Windows XP C: drive. 3) Since this is a read-only shared image we obviously can''t have multiple VM''s writing to it. 4) All writes to the boot image for logging,
2007 Jun 21
19
Writing a tool for Shared Persistent Windows Boot Image
Before, in my "Hard Problem" email I was trying to communicate a design issue were trying to solve with Xen. This is what we need to do: 1) Deploy 24 Windows XP VMs in parallel. 2) Boot them from a shared Windows XP C: drive. 3) Since this is a read-only shared image we obviously can''t have multiple VM''s writing to it. 4) All writes to the boot image for logging,
2012 Nov 05
2
[PATCH] x86/ACPI: invalidate BGRT
...********** + * + * BGRT - Boot Graphics Resource Table (ACPI 5.0) + * Version 1 + * + ******************************************************************************/ + +struct acpi_table_bgrt { + struct acpi_table_header header; /* Common ACPI table header */ + u16 version; + u8 status; + u8 image_type; + u64 image_address; + u32 image_offset_x; + u32 image_offset_y; +}; + +/******************************************************************************* + * + * DRTM - Dynamic Root of Trust for Measurement table + * + ******************************************************************************/...
2015 Oct 13
5
[PATCH 0/2] Stack overflows when running commands
From: Sylvain Gault <sylvain.gault at gmail.com> Hello there, I propose 2 patches that fix two possible stack overflows either when running a COM32 module or when loading a new config file. I didn't find a better way to do this than to use the infamous setjmp/longjmp functions to restore the stack to a previous state. This makes the logic a bit more complex, but the behavior is not
2012 Jul 16
5
[PATCH 0/5] Deleting __intcall() from Syslinux
From: Matt Fleming <matt.fleming at intel.com> Since we can't use __intcall() for EFI, and since we can now have the ELF module code resolve all our symbols at runtime, we should delete as many references to __intcall() as possible and just access the symbols directly. The most interesting patch is the support for weak symbols. We need to be able to reference derivative-specific
2015 Jul 02
1
boot... round 2
...fic test. > > TIA, > Ady. > Are there any more questions, "Inspector Clouseau"? :) Perhaps this is actual "problem": 0001-Add-install-all-target-to-top-side-of-HAVE_FIRMWARE.patch 0001-lua-make-kernel-and-initrd-progress-output-match-in-.patch 0002-lua-add-the-IMAGE_TYPE-table-to-the-syslinux-module.patch 0003-lua-share-the-export-macro-CPP-only-change.patch 0004-lua-docs-do-not-reference-removed-example.patch 0005-lua-docs-add-new-bindings-to-syslinux.asc.patch 0006-lua-vesa-delete-stray-would-be-debug-output.patch 0007-lua-docs-bring-documentation-up-to-date.patc...
2012 Aug 14
1
[GIT PULL] elflink fixes
...const union syslinux_derivative_info *sdi; @@ -97,7 +98,7 @@ void chainboot_file(const char *file, enum kernel_type type) * superblock. */ if (sdi->c.filesystem == SYSLINUX_FS_SYSLINUX && - type == KT_BSS && this_fs->fs_ops->copy_super(buf)) + type == IMAGE_TYPE_BSS && this_fs->fs_ops->copy_super(buf)) goto bail; if (sdi->c.filesystem == SYSLINUX_FS_PXELINUX) { diff --git a/com32/elflink/ldlinux/config.h b/com32/elflink/ldlinux/config.h index 4583202..ea4736e 100644 --- a/com32/elflink/ldlinux/config.h +++ b/com32/elflink/ldlinux/...