search for: hardware_id

Displaying 11 results from an estimated 11 matches for "hardware_id".

Did you mean: hardware_
2009 Feb 07
0
wice grid
...n_name =>''Software:'', :attribute_name => ''name'', :no_filter => true, :model_class => Software do |isoftware| isoftware.software.name end g.column do |isoftware| link_to "Show", hardware_installed_softwares_path (:hardware_id,isoftware) end end %> here is controller view: class InstalledSoftwaresController < ApplicationController def index # @hardware = Hardware.find(params[:hardware_id]) # @softwares = @hardware.find(:hardware_id).installed_softwares @installed_softwares = initialize_grid(InstalledSof...
2006 Apr 02
2
Blank image for non-existant image URLs
...to invalid images (ie images that result in a 404 error) via routes.rb or a similar method? If possible I would like it to be based on the url so I can have different blank pictures for different directories (ie /images/people/user_id.jpg => /images/people/blank.jpg and /images/hardware/hardware_id.jpg => /images/hardware/blank.jpg) For example: an image of a persons silhouette will appear if a User hasnt uploaded a picture for their profile Any ideas? - Michael -- Posted via http://www.ruby-forum.com/.
2008 Dec 25
0
[PATCH 1/4] dom0 linux: Expose HID, UID, SEG, BBN of PCI root bridge via sysfs.
...pedef void acpi_device_sysfs_files(struct kobject *, const struct attribute *); @@ -111,6 +105,42 @@ .uevent_ops = &namespace_uevent_ops, }; +static ssize_t +acpi_device_hid_show(struct acpi_device *acpi_dev, char *buf) +{ + return sprintf(buf, "%s\n", acpi_dev->pnp.hardware_id); +} +ACPI_DEVICE_ATTR(hid, 0444, acpi_device_hid_show, NULL); + +static ssize_t +acpi_device_uid_show(struct acpi_device *acpi_dev, char *buf) +{ + return sprintf(buf, "%s\n", acpi_dev->pnp.unique_id); +} +ACPI_DEVICE_ATTR(uid, 0444, acpi_device_uid_show, NULL); + +static int acpi_de...
2014 Jan 27
1
AsteriskNOW with AX1600P card
...oot at pbx ~]# dahdi_genconf Empty configuration -- no spans /usr/sbin/dahdi_span_types: l?nea 158: cd: /sys/bus/dahdi_devices/devices/*: No existe el fichero o el directorio cat: /sys/bus/dahdi_devices/devices/*/location: No existe el fichero o el directorio cat: /sys/bus/dahdi_devices/devices/*/hardware_id: No existe el fichero o el directorio cat: /sys/bus/dahdi_devices/devices/*/spantype: No existe el fichero o el directorio Empty configuration -- no spans /usr/sbin/dahdi_span_assignments: l?nea 183: cd: /sys/bus/dahdi_devices/devices/*: No existe el fichero o el directorio cut: /sys/bus/dahdi_d...
2015 Mar 05
0
DAHDI 2.10 on CentOS 5.11
...ed DAHDI 2.10.0.1 on a system running CentOS 5.11 (let's not get sidetracked into discussing the version of CentOS - there are reasons for using it in this case). The system has a TE220 card with 2xE1. It has been working fine, but when booting, the udev startup gives out warnings about ATTRS{hardware_id} and ATTRS{location} not being found. After doing some research, I changed ATTRS to SYSFS in the file /etc/udev/rules.d/dahdi.rules, and the warnings went away. Although I did notice that after making the change and rebooting, /dev/dahdi/devices only contained the symbolic link @Board, pointing to...
2006 Mar 28
4
Problem with ActiveRecord, create, save, and Oracle adapter?
...#{RAILS_ROOT}/app/controllers/schedules_controller.rb:158:in `create'' Parameters: {"commit"=>"Create", "schedule"=>{"start_date_id"=>"30", "clli_code"=>"TEST", "slot_id"=>"1", "hardware_id"=>"6", "state_id"=>"6"}} Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} Any ideas? Thanks, Dan
2008 Dec 25
0
[PATCH 2/4] dom0 linux: Add "guestdev=" boot parameter.
...all(acpi_pci_root_init); + +int acpi_pci_get_root_seg_bbn(char *hid, char *uid, int *seg, int *bbn) +{ + struct list_head *entry; + + list_for_each(entry, &acpi_pci_roots) { + struct acpi_pci_root *root; + root = list_entry(entry, struct acpi_pci_root, node); + if (!root->device->flags.hardware_id) + continue; + + if (strcmp(root->device->pnp.hardware_id, hid)) + continue; + + if (!root->device->flags.unique_id) { + if (strlen(uid)) + continue; + } else { + if (strcmp(root->device->pnp.unique_id, uid)) + continue; + } + + *seg = (int)root->id.segment;...
2006 May 02
1
SOAP client not seeing all of my AWS service methods
Hi all, Ruby 1.8.4 Rails 1.1.2 I''m a newb when it comes to SOAP, but I thought I''d give it a shot. I have several web services defined. However, when I try to connect with a SOAP client it seems the client is only picking up one of the services, called Hardware. require ''soap/wsdlDriver'' wsdl_url =
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...device information status=0x%x\n", - __func__, status); + pr_err("%s: Failed to get device information status=0x%x\n", + __func__, status); return retval; } @@ -413,7 +413,7 @@ static acpi_status __init ibm_find_acpi_device(acpi_handle handle, (!strcmp(info->hardware_id.string, IBM_HARDWARE_ID1) || !strcmp(info->hardware_id.string, IBM_HARDWARE_ID2))) { dbg("found hardware: %s, handle: %p\n", - info->hardware_id.string, handle); + info->hardware_id.string, handle); *phandle = handle; /* returning non-zero causes the search t...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...device information status=0x%x\n", - __func__, status); + pr_err("%s: Failed to get device information status=0x%x\n", + __func__, status); return retval; } @@ -413,7 +413,7 @@ static acpi_status __init ibm_find_acpi_device(acpi_handle handle, (!strcmp(info->hardware_id.string, IBM_HARDWARE_ID1) || !strcmp(info->hardware_id.string, IBM_HARDWARE_ID2))) { dbg("found hardware: %s, handle: %p\n", - info->hardware_id.string, handle); + info->hardware_id.string, handle); *phandle = handle; /* returning non-zero causes the search t...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...device information status=0x%x\n", - __func__, status); + pr_err("%s: Failed to get device information status=0x%x\n", + __func__, status); return retval; } @@ -413,7 +413,7 @@ static acpi_status __init ibm_find_acpi_device(acpi_handle handle, (!strcmp(info->hardware_id.string, IBM_HARDWARE_ID1) || !strcmp(info->hardware_id.string, IBM_HARDWARE_ID2))) { dbg("found hardware: %s, handle: %p\n", - info->hardware_id.string, handle); + info->hardware_id.string, handle); *phandle = handle; /* returning non-zero causes the search t...