Displaying 20 results from an estimated 21 matches for "rarray".
Did you mean:
array
2007 Feb 22
4
Ferret progress update
Hi folks,
Just thought I better let you all know that I''m still working on the
next release of Ferret. I''ve been working the last 7 days doing
nothing but Ferret development. The last iteration generated a diff of
almost 5000 lines so there are some pretty major changes. Most people
won''t notice these changes however as the API remains unchanged. But
if you were having
2006 Aug 24
4
typemap.i patch
This patch adds %directorout typemaps for the GetTextExtent functions
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Oct 10
4
Need help for coding an extension to ferret
...9;'t know how to load my
documents from this class... it''s really weirdo to me actually :\ hope
somebody can help !
Here is my code, situated in r_search.c :
static VALUE
frt_td_to_json(VALUE self)
{
int i;
VALUE rhits = rb_funcall(self, id_hits, 0);
VALUE rhit;
const int len = RARRAY(rhits)->len;
long pos;
for (i = 0; i < len; i++)
{
rhit = RARRAY(rhits)->ptr[i];
pos = FIX2INT(rb_funcall(rhit, id_doc, 0));
//
// HERE I WOUlD LIKE TO LOAD THE DOCUMENTS, ID IS THE GOOD DOC_ID..
// I WOULD LIKE TO GET THIS IN FACT (ruby):
// doc_id = INDEX.search(''q...
2008 Nov 11
6
Build problem with ruby-1.9.1-preview1
...; was not declared
in this scope
src/AboutDialogInfo.cpp: In function ''VALUE
_wrap_wxAboutDialogInfo_SetDevelopers(int, VALUE*, VALUE)'':
src/AboutDialogInfo.cpp:2407: warning: format not a string literal and
no format arguments
src/AboutDialogInfo.cpp:2417: error: ''struct RArray'' has no member named ''len''
src/AboutDialogInfo.cpp: In function ''VALUE
_wrap_wxAboutDialogInfo_AddDeveloper(int, VALUE*, VALUE)'':
src/AboutDialogInfo.cpp:2447: warning: format not a string literal and
no format arguments
src/AboutDialogInfo.cpp: In funct...
2009 Nov 12
1
[ win32utils-Bugs-27425 ] win32-open3 doesn't build with 1.9.1
...AVE_TYPE_RB_PID_T -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -Foopen3.obj -c -Tcwin32/open3.c
open3.c
warning: rubysig.h is obsolete
warning: use "ruby/io.h" instead of "rubyio.h"
win32/open3.c(88) : error C2039: ''ptr'' : is not a member of ''RArray''
c:\ruby19\include\ruby-1.9.1\ruby/ruby.h(607) : see declaration of ''RArray''
win32/open3.c(88) : error C2198: ''rb_funcall'' : too few arguments for call
win32/open3.c(89) : error C2039: ''ptr'' : is not a member of ''RArray...
2007 Jan 23
0
[853] trunk/wxruby2/swig: Replace deprecated STR2CSTR with StringValuePtr
...lt;span class="cx"> }
</span><span class="cx">
</span><span class="cx"> %typemap(out) wxChar const * {
</span><span class="lines">@@ -235,7 +235,8 @@
</span><span class="cx"> arr = new wxString[RARRAY($input)->len];
</span><span class="cx"> for (int i = 0; i < RARRAY($input)->len; i++)
</span><span class="cx"> {
</span><del>- arr[i] = wxString(STR2CSTR(rb_ary_entry($input,i)), wxConvUTF8);
</del><ins>+&am...
2006 Sep 30
3
fixmodule patches
These patches (should) give us support for compiling against Ruby 1.9.
Roy
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2009 Feb 17
2
install.rb:655:in `command'': system("make") failed (RuntimeError) (GatoLinux)
I am using ruby *1.8.4* (2005-12-24).
I added this code:
#define RARRAY_LEN(a) \
((RBASIC(a)->flags & RARRAY_EMBED_FLAG) ? \
(long)((RBASIC(a)->flags >> RARRAY_EMBED_LEN_SHIFT) & \
(RARRAY_EMBED_LEN_MASK >> RARRAY_EMBED_LEN_SHIFT)) : \
RARRAY(a)->as.heap.len)
#define RARRAY_PTR(a) \
((RBASIC(a)->flags & RARRAY_...
2004 Oct 23
0
win32-ipc, with blocks (code review please)
...f;
}
static VALUE ipc_allocate(VALUE klass){
IpcStruct* ptr = malloc(sizeof(IpcStruct));
return Data_Wrap_Struct(klass,0,ipc_free,ptr);
}
static VALUE wait_for_multiple(VALUE klass,VALUE arr,
BOOL fWaitAll,DWORD dwTimeOut)
{
DWORD dwWait;
static HANDLE *handles = NULL;
int i,len = RARRAY(arr)->len;
if(len==0){
rb_raise(cIpcError,"No objects to wait for");
}
REALLOC_N(handles,HANDLE,len);
for(i=0; i<len; i++) {
handles[i] = (HANDLE)NUM2UINT(RARRAY(arr)->ptr[i]);
}
dwWait = WaitForMultipleObjects(len,handles,fWaitAll,dwTimeOut);
// Yield...
2006 Dec 31
0
[816] trunk/wxruby2: Added AcceleratorTable and AcceleratorTable classes, plus documentation
...Wx::AcceleratorEntry objects
+%typemap(in,numinputs=1) (int n, wxAcceleratorEntry entries[]) (wxAcceleratorEntry *arr)
+{
+ if (($input == Qnil) || (TYPE($input) != T_ARRAY))
+ {
+ $1 = 0;
+ $2 = NULL;
+ }
+ else
+ {
+ wxAcceleratorEntry *wx_acc_ent;
+ arr = new wxAcceleratorEntry[RARRAY($input)->len];
+ for (int i = 0; i < RARRAY($input)->len; i++)
+ {
+         SWIG_ConvertPtr(rb_ary_entry($input,i), (void **) &wx_acc_ent, SWIGTYPE_p_wxAcceleratorEntry, 1);
+    &am...
2008 Jan 11
9
[ wxruby-Bugs-17013 ] Notebook#get_current_page
Bugs item #17013, was opened at 2008-01-11 06:00
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=17013&group_id=35
Category: Missing API call
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Daniel Brumbaugh Keeney (db-keen)
Assigned to: Nobody (None)
Summary: Notebook#get_current_page
Initial Comment:
Notebook#get_current_page
2005 Mar 23
0
Courses***April R/Splus Advanced and Intermediate level courses by XLSolutions
...lus Advanced Programming: March 31st - April 1st, San Francisco
http://www.xlsolutions-corp.com/Radv.htm
R/Splus Programming Techniques: April 14th - April 15th, New York City
http://www.xlsolutions-corp.com/Rfund.htm
Microarrays Data Analysis with R/S+ and GGobi
http://www.xlolutions-corp.com/Rarrays.htm: April 27th-28th, Princeton
Please email for our May & Summer schedule
Ask for group discounts.
Email Sue Turner: sue at xlsolutions-corp.com
Phone: 206-686-1578
Visit us: www.xlsolutions-corp.com/training.htm
Please let us know if you and your colleagues are interested in this
classt...
2007 Aug 31
0
[ win32utils-Bugs-13560 ] Service dependencies has wierd string.
...hile(*pszDepend != 0){
rb_ary_push(v_dependencies, rb_str_new2(pszDepend));
//i += _tcslen(lpDependencies) + 1; <-- Original code
i += _tcslen(&(lpDependencies[i])) + 1; // <-- Modified code
pszDepend = &lpDependencies[i];
}
}
if(RARRAY(v_dependencies)->len == 0)
v_dependencies = Qnil;
return v_dependencies;
}
The modified module displays as following and I think this change solves the problem.
---------------------------------------------
wscsvc - share process
RpcSs
winmgmt
---------------------------...
2006 Dec 07
0
Fwd: win32-service problems with patch
...d service_main thread to terminate
+ SetEvent(hStopEvent);
+
+ // wait for ALL ruby threads to exit
+
+ for(i=1;TRUE;i++)
+ {
+ VALUE list = rb_funcall(rb_cThread, rb_intern("list"), 0);
+
+ {
+ char buf[80];
+ sprintf(buf, "num_threads = %u\n", RARRAY(list)->len);
+ }
+
+ if (RARRAY(list)->len <= 1)
+ break;
+
+ // This is another ugly polling loop, be as polite as possible
+ rb_thread_polling();
+
+ SetTheServiceStatus(SERVICE_STOP_PENDING, 0, i, 1000);
+ }
+
+ // just one ruby thread
+ SetEvent(hS...
2007 Nov 18
18
mongrel and fastthread on ruby 1.9?
Is anybody testing mongrel on ruby 1.9. I just tried installing
mongrel on trunk 1.9 and trunk rubygems and got this error compiling
fastthread:
/Users/stephen/dev/ruby/1.9_trunk/bin/ruby extconf.rb install mongrel --no-rdoc
creating Makefile
make
gcc -I.
-I/Users/stephen/dev/ruby/1.9_trunk/include/ruby-1.9/i686-darwin8.10.1
-I/Users/stephen/dev/ruby/1.9_trunk/include/ruby-1.9 -I.
2007 Jan 08
0
[846] trunk/wxruby2/swig/classes/MultiChoiceDialog.i: Fixed - don''t use Ruby 1.9-style API calls cos this breaks older SWIGs
...8 23:12:07 UTC (rev 846)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> }
</span><span class="cx"> else
</span><span class="cx"> {
</span><del>- for (int i = 0; i < RARRAY_LEN($input); i++)
</del><ins>+ for (int i = 0; i < RARRAY($input)->len; i++)
</ins><span class="cx"> {
</span><span class="cx"> int item = NUM2INT(rb_ary_entry($input,i));
</span><span class="cx">...
2006 Sep 20
3
Fix for non-centered windows
Two patches here:
First one removes virtual from a function that shouldn''t have been virtual.
Second one applies a typemap to catch GetRectFromChildWindow. For
reasons that are completely beyond me the standard ruby OUTPUT typemaps
don''t define directorargouts. I will take a stab at patching SWIG''s
default typemaps someday so we get this fixed for free on all our
2011 Dec 07
1
[PATCH] hivex: Fix Ruby bindings for 1.9; let the user explicitly choose ruby, rake
...[test "x$RAKE" != "xno" && test -n "$HAVE_LIBRUBY"])
diff --git a/generator/generator.ml b/generator/generator.ml
index 065c25d..dd13d6a 100755
--- a/generator/generator.ml
+++ b/generator/generator.ml
@@ -3265,6 +3265,14 @@ and generate_ruby_c () =
#define RARRAY_LEN(r) (RARRAY((r))->len)
#endif
+#ifndef RSTRING_LEN
+#define RSTRING_LEN(r) (RSTRING((r))->len)
+#endif
+
+#ifndef RSTRING_PTR
+#define RSTRING_PTR(r) (RSTRING((r))->ptr)
+#endif
+
static VALUE m_hivex; /* hivex module */
static VALUE c_hivex; /* hive_h handle */
static VALUE e...
2007 Feb 21
0
Course*** R/S+: Fundamentals and Programming Techniques - Princeton, March 1-2
...can be easily
adapted to own data. In this course, we'll review R/S packages
(librairies) for microarray analysis. We'll also explore GGobi
interactive and dynamic graphics for microarrays analysis, statistical
learning methods and strategies for large data.
http://www.xlsolutions-corp.com/Rarrays.htm
Email us for group discounts: sue at xlsolutions-corp.com
Phone: 206 686 1578
Visit us: www.xlsolutions-corp.com/training.htm
Please let us know if you and your colleagues are interested in this
class to take advantage of group discount. Register now to secure your
seat!
Cheers,
Elvi...
2006 Apr 27
5
Major Breakthrough?
Attached are patches to make the textctrl.rb sample work fully. Note
the new %directorargout typemap I added to fix wxWindows calling into
SWIG. I don''t know if this can fix all such problems or not. Let me
know what you think.
I also rubified the sample a little bit more. Also, note that I fix the
<< operator so the function can be called. I hope I did this right.
Roy