Displaying 9 results from an estimated 9 matches for "attr_valu".
Did you mean:
attr_value
2019 Jan 20
0
[klibc:master] resume: Write resume_offset attribute
...644
--- a/usr/kinit/resume/resumelib.c
+++ b/usr/kinit/resume/resumelib.c
@@ -44,8 +44,8 @@ int do_resume(int argc, char *argv[])
int resume(const char *resume_file, unsigned long long resume_offset)
{
dev_t resume_device;
- int powerfd = -1;
- char device_string[64];
+ int attr_fd = -1;
+ char attr_value[64];
int len;
resume_device = name_to_dev_t(resume_file);
@@ -55,30 +55,50 @@ int resume(const char *resume_file, unsigned long long resume_offset)
goto failure;
}
- if ((powerfd = open("/sys/power/resume", O_WRONLY)) < 0)
- goto fail_r;
+ if ((attr_fd = open("/sys/...
2005 Dec 21
2
ActiveRecord Error with << in Collection
...ollers/cmdb_controller.rb:24:in `new''
#{RAILS_ROOT}/app/controllers/cmdb_controller.rb:24:in `create''
=============== Controller =================
def create
@ci = ConfigurationItem.new(params[:ci])
if(params[:attribute_id])
params[:attribute_id].each_pair{ |attr_id, |attr_value_id|
attribute = ConfigurationItemAttributeValue.new
attribute.attribute_id= attr_id
attribute.value_id= attr_value_id
@ci.attributes << attribute
}
end
if(params[:attribute_value])
params[:attribute_value].each_pair{ |attr_id, |attr_value|
attribute = Configu...
2010 May 13
6
to "loop through" the instance variables of ActiveRecord?
to wrap each instance variable of an ActiveRecord object between "<td>"
and "</td>", is there a way to "loop through" them, at least in the
debug mode, no matter there is getter methods to get them or not, or at
least the ones with the getter methods?
Such as
<% @stories.each do |s| %>
<%= "<tr>" %>
<% s.each_property
2006 Jul 26
4
MasterView rails-optimize (x)html friendly template engine - Release 0.2.4
.../learning how
masterview directives work.
Release 0.2.3
Changed default development settings for enable_admin_pages and
enable_view_rhtml = true (false in production) to make it easy
for new users to get up and running. Added check_box, radio_button,
select, collection_select directives. Refactor attr_value parsing
to be more robust taking into account nested objects. Internal rework
of directive handling to support alternate namespaces for directives.
Std app directives dir at rails app/masterview/directives will be
automatically added to MasterView load path if exists.
Release 0.2.2
Fixes problem...
2006 Jul 05
0
MasterView rails-optimized (x)html friendly template engine - Release 0.2.3
...ance equal to ERb (rhtml)
Release Notes
Release 0.2.3
Changed default development settings for enable_admin_pages and
enable_view_rhtml = true (false in production) to make it easy
for new users to get up and running. Added check_box, radio_button,
select, collection_select directives. Refactor attr_value parsing
to be more robust taking into account nested objects. Internal rework
of directive handling to support alternate namespaces for directives.
Std app directives dir at rails app/masterview/directives will be
automatically added to MasterView load path if exists.
Release 0.2.2
Maintenance r...
2020 May 29
3
Extended attributes not working on mac
...all last):
File "/usr/local/bin/xattr", line 11, in <module>
load_entry_point('xattr==0.9.7', 'console_scripts', 'xattr')()
File "/usr/local/lib/python3.8/dist-packages/xattr-0.9.7-py3.8-linux-x86_64.egg/xattr/tool.py", line 196, in main
attr_value = attr_value.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9a in position 33: invalid start byte
Please help - thank you in advance!
Martin
2006 Sep 04
2
"include" versus "extend" - what's the difference
...? user.id : nil)
end
# clears current changed attributes. Called after save.
def clear_changed_attributes
@changed_attributes = {}
end
# overload write_attribute to save changes to audited
attributes
def write_attribute(attr_name, attr_value)
attr_name = attr_name.to_s
if audited_attributes.include?(attr_name)
@changed_attributes ||= {}
# get original value
old_value = @changed_attributes[attr_name] ?
@changed_attributes[attr_name].first : self[attr_name]...
2019 Feb 19
2
samba acl it
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Andrew Bartlett via samba
> Verzonden: dinsdag 19 februari 2019 18:40
> Aan: Rowland Penny; samba at lists.samba.org
> Onderwerp: Re: [Samba] samba acl it
>
> On Tue, 2019-02-19 at 17:29 +0000, Rowland Penny wrote:
> > On Wed, 20 Feb 2019 06:15:17 +1300
> >
2006 Dec 07
0
答复: Re: [patch 2/2]OCFS2: allow the ocfs2 heartbeat thread to prioritize I/O
...heh <mark.fasheh@oracle.com> 06?12?08? ?? 8:20 >>>
>> +errcode_t o2cb_get_hb_thread_pid (const char *cluster_name, const char *region_name,
>> + pid_t *pid)
>> +{
>> + char attr_path[PATH_MAX];
>> + char _fake_cluster_name[NAME_MAX];
>> + char attr_value[16];
>> + errcode_t ret;
>> +
>> + if (!cluster_name) {
>> + ret = _fake_default_cluster(_fake_cluster_name);
>> + if (ret)
>> + return ret;
>> + cluster_name = _fake_cluster_name;
>> + }
>Hmm, I don't see any other test for cluster_name...