search for: t_data

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

Did you mean: i_data
2014 Feb 03
1
[PATCH] hivex: python: value_value no longer generates Unicode strings
...b, value1) +h.node_set_value (B, value1) value1 = { "key": "Key1", "t": 3, "value": "JKL" } -h.node_set_value (b, value1) +h.node_set_value (B, value1) -val = h.node_get_value (b, "Key1") +val = h.node_get_value (B, "Key1") t_data = h.value_value (val) assert t_data[0] == 3 -assert t_data[1] == "JKL" +assert t_data[1] == b("JKL") -val = h.node_get_value (b, "Key3") +val = h.node_get_value (B, "Key3") t_data = h.value_value (val) assert t_data[0] == 3 -assert t_data[1] == "GHI...
2014 Jan 15
0
[PATCH 4/4] hivex: python: Get rid of to_string function in test script
...s returned as a string. In Python3, it is -# returned as bytes. Provide a function to convert either to a string. -def to_string (data): - if sys.version_info[0] == 2: - return data - else: - return str (data, "utf-8") - val = h.node_get_value (b, "Key1") t_data = h.value_value (val) assert t_data[0] == 3 -assert to_string (t_data[1]) == "JKL" +assert t_data[1] == "JKL" val = h.node_get_value (b, "Key3") t_data = h.value_value (val) assert t_data[0] == 3 -assert to_string (t_data[1]) == "GHI" +assert t_data[1]...
2014 Jan 15
4
[PATCH 1/4] hivex: Python 2.6 does not have sysconfig.
--- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6785037..203f34f 100644 --- a/configure.ac +++ b/configure.ac @@ -329,8 +329,8 @@ AS_IF([test "x$enable_python" != "xno"], AC_MSG_CHECKING([for Python extension suffix (PEP-3149)]) if test -z "$PYTHON_EXT_SUFFIX"; then
2007 Oct 17
19
1.9.2, OpenGL
[third sending attempt...] I''m going to try and test out the samples on MSW over the next few days and if things look good I think we should release 1.9.2. Might try and fix the bugs related to TreeCtrl#get_first_child as these might involve minor API changes. So if anyone has any time to test out SVN HEAD and look for anything funny, please do. Also, we have an anonymous patch
2011 Aug 25
4
[PATCH 0/3] ruby: Fix event handler failure
...t log callback goes out of scope and is garbage collected. (This is despite the fact we registered it as a global root). When we invoke the callback later, rb_funcall raises this exception: wrong argument type Proc (expected Data) I checked the type of the callback, and indeed it changes from T_DATA (normal) to T_NONE (raises this exception). My workaround simply checks that the type != T_NONE before calling. Rich.
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi, This patch series is based on a prior patch[1], splitting off changes as requested and incorporating feedback from Richard Jones. It introduces type validation to avoid segmentation faults (instead, it reports an exception) and fixes handling of the bytes type in Python 3. Major changes since that series: - Drop newly introduced support for integer types for DWORD/QWORDS - Reject Unicode
2008 May 20
7
Problems sending large results with backgroundrb
I''m working on an application that does extensive database searching. These searches can take a long time, so we have been working on moving the searches to a backgroundrb worker task so we can provide a sexy AJAX progress bar, and populate the search results as they are available. All of this seems to work fine until the size of the search results gets sufficiently large, when we start
2007 May 22
0
[1028] trunk/wxruby2/swig/classes/App.i: Fix some GC-mark crashes when SWIG trackings return an unexpected object
...nbsp&nbsp&nbsp// expecting), a descendant of Wx::Window, and if it has not yet been +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// deleted by WxWidgets; if so, mark it. +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( TYPE(rb_obj) == T_DATA && +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_obj_is_kind_of(rb_obj, cWxWindow.klass) && </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&...
2007 Jul 21
0
[1136] trunk/wxruby2/swig/classes/App.i: Note when the Wx::App is exiting and avoid doing GC if in process of
...</span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// deleted by WxWidgets; if so, mark it. </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( TYPE(rb_obj) == T_DATA && </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_obj_is_kind_of(rb_obj, cWxWindow.klass) && </span><del>-&nbsp&nb...
2000 Apr 01
1
Bug ? mine or ? in R core
...*/ /* */ /*******************************************************************************/ SEXP RODBCFetchRows(SEXP sock,SEXP max,SEXP tx,SEXP bs,SEXP dbg) { SEXP data,t_data,names,ans,stat,dim; int status=1, i, /* col counter */ NCOLS, channel=INTEGER(sock)[0], /* not used here */ debug=INTEGER(dbg)[0], transposing=(int)LOGICAL(tx)[0]; /*true if transposing, not used here*/ long maximum=(long)REAL(max)[0]; long j=1,k=1, /* row counters*/ buffsize=(long)R...
2009 Jul 07
3
rake db:create:all error
Hi, I am getting this error when i execute rake db:create:all /opt/gitorious/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:569: [BUG] unknown type 0x22 (0xc given) any clues ? -Manish -- Posted via http://www.ruby-forum.com/.