Displaying 20 results from an estimated 80 matches for "get_nam".
Did you mean:
get_name
2006 Jun 13
5
strange RJS behavior
I used RJS extensively in my last web app with no problem.
I''m just beginning a new one and having a very odd problem.
The called method, get_names, retrieves some values from the database,
then ends:
render :layout => false
the get_names.rjs file is rendered into Javascript, but then is just
dumped as Javascript (text) into the browser:
e.g:
try {
Element.update("this_panel", "");
new Insertion.Bottom( ... );...
2007 Mar 21
4
Bug in TextCtrl constructor
...'s the output from irb:
# ------
irb(main):001:0> require ''wx'';
irb(main):002:0* ctl =
Wx::TextCtrl.new(nil,-1,"",Wx::DEFAULT_POSITION,Wx::DEFAULT_SIZE,0,Wx::DEFAULT_VALIDATOR,"my_name")
=> #<Wx::TextCtrl:0x2e7a188>
irb(main):003:0> puts ctl.get_name
=> nil
# That should have printed "my_name"
# -----
It''s not a show-stopper, though, as you can just assign to ctl.name.
This bug shows up when you are trying to do
<Wx::Window>.find_window_by_name() and searching for a specific
control
Cheers
--
-Phil <><...
2011 Jan 20
1
[PATCH] Don't display a progress bar if stderr isn't on a tty
...20..5216503 100644
--- a/lib/Sys/VirtV2V/Connection/Source.pm
+++ b/lib/Sys/VirtV2V/Connection/Source.pm
@@ -126,9 +126,20 @@ sub _volume_copy
# Copy the contents of the source stream to the destination stream
my $total = 0;
- my $progress = new Term::ProgressBar({name => $src->get_name(),
- count => $expected,
- ETA => 'linear' });
+
+ # Initialize a progress bar if STDERR is on a tty
+ my $progress;
+ if (-t STDERR) {
+ $progress = new Term::ProgressBar({name => $s...
2014 Aug 25
1
tinc 1.1 - Improve Hostname Support
Currently, the tinc application which is part of tinc 1.1 does not support
the ability to handle `Name = $HOST` lines in tinc.conf. This set of
patches refactors get_name in order to be able to support this
configuration option in the tinc binary.
After having read through the codebase, it seems like we could really do
for a heavy refactoring as there is a lot of poorly coupled and duplicated
code. Unfortunately I don't have much time at the moment to look int...
2010 Nov 17
0
[PATCH] Btrfs: handle NFS lookups properly
...ng for the inode of
the child. So in this case the parent being / and the child being foo. Well
subvols all have the same inode number, so doing a readdir of / looking for
inode 256 will return ''.'', which obviously doesn''t match foo. So instead we
need to have our own .get_name so that we can find the right name.
Our .get_name will either lookup the inode backref or the root backref,
whichever we''re looking for, and return the name we find. Running the above
reproducer with this patch results in everything acting the way its supposed to.
Thanks,
Signed-off-by...
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
...;
return (void *)ConstantInt::get(Type::getInt1Ty(getGlobalContext()), value, false);
}
return (void *)ConstantInt::get(Type::getInt16Ty(getGlobalContext()), value, false);
}
void *visit(symbolic_variable_c *symbol) {
std::string varName;
AllocaInst *alloc;
varName = get_var_name_c::get_name(symbol->var_name)->value;
alloc = locals[varName];
return (void *)alloc;
}
void *visit(equ_expression_c *symbol) {
Value *lValue;
Value *rValue;
lValue = (Value *)symbol->l_exp->accept(*this);
rValue = (Value *)symbol->r_exp->accept(*this);
return Builder.CreateICm...
2006 Nov 13
2
catch event when workspace is changing
Hi,
how do you do that? In normal session, this is how you do it with python:
import gtk
import wnck
def workspace_changed(screen):
workspace = screen.get_active_workspace()
print workspace.get_name()
screen = wnck.screen_get_default()
screen.connect("active_workspace_changed", workspace_changed)
gtk.main()
With compiz, that code does not work because compiz use only one
workspace (that is very very big). So how do you catch event when
workspace is changing in compiz session? Pyt...
2006 Mar 08
1
Poor Man''s Continuations
...the main loop does not
need to know about what goes on within the continuation_calls, also
note the simple conditional logic for stating the flow of the
applictaion).
class MyController < ApplicationController
has_continuations
def main
item = conitnuation_call :action => ''get_name''
if item == ''frank''
item += '' '' + continuation_call :action => ''get_frank_extra''
end
end
def get_name
if params[:name] and params[:name].size > 10
if continuation_call :action => ''confirm_...
2020 Jan 17
1
[v2v PATCH] -o libvirt: read pool name from object
...ng "/pool/name/text()" with
- | None ->
- error (f_"-o libvirt: output pool ā%sā does not have /pool/name element. See virt-v2v-output-local(1)") output_pool
- | Some name -> name in
- pool_name <- Some name;
+ pool_name <- Some (Libvirt.Pool.get_name (Libvirt.Pool.const pool));
(* Set up the targets. *)
List.map (
--
2.24.1
2012 Dec 11
1
Need help regarding perl sys::virt
...::Virt->new(uri => $uri, readonly => 1);
};
if ($@) {
print "Unable to open connection to $uri: " . $@->message . "\n";
}
for my $dom ($vmm->list_domains, $vmm->list_defined_domains) {
## see perldoc Sys::Virt::Domain
print "name: ", $dom->get_name, "\n";
print "uuid: ", $dom->get_uuid_string(), "\n";
## $dom->get_info returns a hash reference
dump $dom->get_info;
print "\n";
}
Regards,
Rawat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://li...
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
...}
> return (void
> *)ConstantInt::get(Type::getInt16Ty(getGlobalContext()), value,
> false);
> }
>
> void *visit(symbolic_variable_c *symbol) {
> std::string varName;
> AllocaInst *alloc;
>
> varName = get_var_name_c::get_name(symbol->var_name)->value;
> alloc = locals[varName];
>
> return (void *)alloc;
> }
>
> void *visit(equ_expression_c *symbol) {
> Value *lValue;
> Value *rValue;
>
> lValue = (Value *)symbol->l_exp->ac...
2010 Jan 29
4
[FOR REVIEW ONLY] ESX work in progress
The following patches are where I'm currently at with ESX support. I can now
import a domain from ESX along with its storage. Note that I'm not yet doing any
conversion. In fact, I've never even tested past the import stage (I just had an
exit in there).
The meat is really in the 4th patch. The rename of MetadataReader->Connection
was because the Connection is now really providing
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
...()),
> value, false);
> }
> return (void *)ConstantInt::get(Type::**
> getInt16Ty(getGlobalContext())**, value, false);
> }
>
> void *visit(symbolic_variable_c *symbol) {
> std::string varName;
> AllocaInst *alloc;
>
> varName = get_var_name_c::get_name(**symbol->var_name)->value;
> alloc = locals[varName];
>
> return (void *)alloc;
> }
>
> void *visit(equ_expression_c *symbol) {
> Value *lValue;
> Value *rValue;
>
> lValue = (Value *)symbol->l_exp->accept(*this)**;
>...
2009 Oct 12
1
First draft: node storage admin
This patch provides the ability to create a "dir" type storage pool, and to add
and remove volumes for existing pools.
2008 Sep 12
7
embedding wxruby?
Hello,
is it possible to code a wxWidgets GUI in C++ and pass the whole wxApp or just single windows to embedded Ruby code? This would be very nice to provide a scriptable plugin system.
Greetings,
Niklas
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2009 Oct 27
1
Storage admin patches
This set of patches supercedes the previous set, and has been rebased
with changes from upstream.
2009 Nov 09
1
Rebased again...
This patch again rebases on upstream and should apply on next as of right now.
2010 Feb 01
9
[ESX support] Working ESX conversion for RHEL 5
With this patchset I have successfully[1] imported a RHEL 5 guest directly from
ESX with the following command line:
virt-v2v -ic 'esx://yellow.marston/?no_verify=1' -op transfer RHEL5-64
Login details are stored in ~/.netrc
Note that this is the only guest I've tested against. I haven't for example,
checked that I haven't broken Xen imports.
Matt
[1] With the exception of
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
...}
>> return (void
>> *)ConstantInt::get(Type::getInt16Ty(getGlobalContext()), value, false);
>> }
>>
>> void *visit(symbolic_variable_c *symbol) {
>> std::string varName;
>> AllocaInst *alloc;
>>
>> varName = get_var_name_c::get_name(symbol->var_name)->value;
>> alloc = locals[varName];
>>
>> return (void *)alloc;
>> }
>>
>> void *visit(equ_expression_c *symbol) {
>> Value *lValue;
>> Value *rValue;
>>
>> lValue = (Value *)symbol->...
2005 Sep 09
1
1.0alpha1: stack frame core
...20 "\"name\" {539}\r\n", dirty = 36, alloc = 256,
pool = 0x984d0, alloced = 1, dynamic = 1}
(gdb) print *(buf->w_buffer)
$2 = 34 '"'
(gdb) print *(buf->r_buffer)
$3 = 34 '"'
(gdb) print buf->pool
$4 = 0x984d0
(gdb) print *(buf->pool)
$5 = {get_name = 0x70198 <pool_data_stack_get_name>,
ref = 0x701a4 <pool_data_stack_ref>,
unref = 0x701dc <pool_data_stack_unref>,
malloc = 0x70244 <pool_data_stack_malloc>,
free = 0x70290 <pool_data_stack_free>,
realloc = 0x702bc <pool_data_stack_realloc>,
clear =...