search for: get_count

Displaying 20 results from an estimated 20 matches for "get_count".

2008 Nov 07
0
[ wxruby-Bugs-22706 ] BitmapComboBox doesn''t work on Linux GTK+
....new.main_loop ------------------------------------- It worked correctly on Windows but froze on Linux. I use wxRuby 1.9.9, wxGTK 2.8.7, GTK+ 2.12.11, Ruby 1.8.6 and Gentoo Linux. I clicked BitmapComboBox on Linux and then it was frozen but sometimes these error messages was shown. app.rb:16:in `get_count'': stack level too deep (SystemStackError) from app.rb:16:in `process_event'' from app.rb:16:in `get_count'' from app.rb:16:in `process_event'' from app.rb:16:in `main_loop'' from app.rb:16 OR app.rb:16:in `get_count&...
2006 Dec 01
0
[766] trunk/wxruby2: Added item_data aliases for client_data functions, update doc & tests;
...tring":#ControlWithItems_findstring </span><del>-* "ControlWithItems#get_client_data":#ControlWithItems_getclientdata -* "ControlWithItems#get_client_object":#ControlWithItems_getclientobject </del><span class="cx"> * "ControlWithItems#get_count":#ControlWithItems_getcount </span><ins>+* "ControlWithItems#get_item_data":#ControlWithItems_getitemdata </ins><span class="cx"> * "ControlWithItems#get_selection":#ControlWithItems_getselection </span><span class="cx"&g...
2006 Aug 13
3
ruby and mysql syntax? tried single quotes, double, none, ...
Hi, how do i use passed in arguments and convert those to something sql can understand? do the aliases have to be double qouted? single qouted? i think i tried all but no avail...thanks! def get_count(doctype, towne) @profiles = Profile.count_by_sql("SELECT COUNT(*) from Profiles where Profiles.doctype_id = 1 and town_id = towne") end -- Posted via http://www.ruby-forum.com/.
2007 Sep 20
3
Bug? in wxSugar enumerable_controls.rb
...erable items_index = find_all { |i| checked?(i) } end end The problem I had is that checked_items raises an exception. In fact, the find_all method uses the each method defined in ''wx_sugar/wx_classes/enumerable_controls.rb'' as following : def each(&block) last = get_count - 1 case block.arity when 1 0.upto(last) { | i | yield i } when 2 0.upto(last) { | i | yield i, get_string(i) } when 3 0.upto(last) { | i | yield i, get_string(i), get_item_data(i) } else raise ArgumentError, "Invalid number of block parameters"...
2007 Apr 02
0
[937] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Initial commit of enumerable_controls.rb
...ith the string label of the item within the control. The third + # parameter is filled with the client data associated with the + # item. Note that if you don''t need the string or client data, it is + # more efficient to iterate over the indexes only. + def each(&block) + last = get_count - 1 + case block.arity + when 1 + 0.upto(last) { | i | yield i } + when 2 + 0.upto(last) { | i | yield i, get_string(i) } + when 3 + 0.upto(last) { | i | yield i, get_string(i), get_item_data(i) } + else + raise ArgumentError, "Invalid number of block paramet...
2007 Apr 03
0
[943] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Fix bug with false positives from #find_string, bounds-checking for
...;' in WxWidgets + if value.kind_of?(String) && ( i = find_string(value, true) ) && i > -1 </ins><span class="cx"> return i </span><span class="cx"> end </span><span class="cx"> indices = (0 ... get_count).to_a </span><del>- return indices.find { | i | get_item_data(i) == value } </del><ins>+ return indices.find { | i | get_item_data(i) == value } </ins><span class="cx"> end </span><span class="cx"> </span><span c...
2007 Apr 13
0
[956] branches/wxruby2/wxwidgets_282: Additions to TreeCtrl API 2.6->2.8
...><span class="cx"> of descendants, otherwise only one level of children is counted. </span><span class="lines">@@ -445,7 +492,7 @@ </span><span class="cx"> </span><span class="cx"> h3(#TreeCtrl_getcount). TreeCtrl#get_count </span><span class="cx"> </span><del>- Integer *get_count*() </del><ins>+ unsigned int *get_count*() </ins><span class="cx"> </span><span class="cx"> Returns the number of items in the control. </span>...
2006 Nov 23
0
[754] trunk/wxruby2/samples/bigdemo: Rubified samples and added in missing client data sample code
...: " + prefix.to_s()) </del><ins>+ @log.write_text("Looking for prefix: " + prefix.to_s) </ins><span class="cx"> if prefix </span><del>- prefix.downcase!() - length = prefix.length() - 0.upto(get_count()) do |x| - text = get_string(x).to_s().downcase() </del><ins>+ prefix.downcase! + length = prefix.length + 0.upto(get_count) do |x| + text = get_string(x).to_s.downcase </ins><span class="cx">...
2004 May 22
10
Tabbing between Notebook pages
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: wxTony.rbw Type: application/octet-stream Size: 10436 bytes Desc: not available Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040522/9c1889d0/wxTony.obj
2007 Apr 03
0
[942] trunk/wxsugar/lib/wx_sugar/wx_classes/listctrl.rb: Implement find_string method cognate with ControlWithItems
...t;cx"> collection :data, ItemDataCollection </span><span class="cx"> </span><span class="cx"> alias :get_string :get_item_text </span><span class="cx"> alias :set_string :set_item_text </span><ins>+ alias :get_count :get_item_count </ins><span class="cx"> </span><ins>+ # Appends </ins><span class="cx"> def <<(str) </span><span class="cx"> insert_item(get_item_count, str) </span><span class="cx">...
2011 Apr 20
4
files not moved immediately to final destination from temp location after rsync returns with success
...success the name of the file that has to be pulled by the first call is updated and the cycle continues. In case either of the rsync calls fail, the script starts with the first rsync call. <snippet of the script> while : do # get the name of the command file to pull next. CURR_Q_NUM=get_counter REMOTE_Q_FILE="${CURR_Q_NUM}.txt" LOCAL_Q_FILE="${Q_FOLDER}/${CURR_Q_NUM}.txt" # update the source and destination for rsync client SRC=$OPT_RSYNC_USER_NAME@ $OPT_RSYNC_DEV_NAME::$RSYNC_Q_MODULE/$REMOTE_Q_FILE DEST=$LOCAL_Q_FILE rsync --update...
2015 Dec 25
0
Wine release 1.9.0
...ekker (11): qmgr: Use the full path for HTTP downloads. dnsapi: Add a stub implementation of DnsFlushResolverCacheEntry_A/UTF8/W. winhttp: Don't drain content until authorization is handled successfully. wbemdisp: Calculate the object count returned from ISWbemObjectSet::get_Count just once. wbemprox: Support string literals in comparisons with integer properties. wbemprox: Implement Win32_NetworkAdapterConfiguration.Description. wbemprox: Implement Win32_NetworkAdapterConfiguration.DefaultIPGateway. wbemprox: Set correct variant type if array propert...
2018 Oct 12
0
Wine release 3.18
...i: Rename msi_reset_folders to msi_reset_source_folders. msi: Remove unused fields from MSIFOLDER. msi/tests: Add tests for directory properties. msi: Fix memory leaks. msi: Fix the remote case for MsiViewModify(MSIMODIFY_UPDATE). wbemdisp: Implement ISWbemPropertySet::get_Count. Henri Verbeet (4): d2d1: Do not release the "dxgi_target" interface on d2d_bitmap_render_target_init() error paths. wined3d: Also default to OpenGL core contexts on NVIDIA GPUs. wined3d: Add GPU information for NVIDIA GeForce GT 720. d3d11/tests: Add depth bias c...
2019 Aug 16
0
Wine release 4.14
...ling fix in a comment. server: A spelling and slight rewording fix in a comment. ntdll: Add a trailing '\n' to a TRACE(). jscript: Add a trailing '\n' to a WARN() message. Gijs Vermeulen (7): wmp: Improve playlist creation. wmp: Implement IWMPPlaylist::get_count. wmp: Fake success in IWMPPlaylist::appendItem. wmp: Implement IWMPPlaylist::[get|put]_name. wmp/tests: Add some IWMPPlaylist tests. wine.inf: Update E. South America Standard Time. wmp: Fix memory leak in IWMP[Media|Playlist]::put_name. Henri Verbeet (49): wine...
2018 Oct 26
0
Wine release 3.19
...dbg --gdb fails to create process 40470 Wine builtin wordpad.exe crashes with Wine 1.6.2 (out-of-bounds array access in registry_set_filelist) 40534 Advanced SystemCare 6.4 crashes while retrieving WMI class 'Win32_PhysicalMedia' properties due to unimplemented 'ISWbemPropertySet::get_Count' method 43177 ClassicStartMenu from Classic Shell 4.3.0 crashes on unimplemented function dwmapi.127 (undocumented DwmpGetColorizationParameters) 43848 Grand Theft Auto 5 and Tomb Raider 2013 need DepthBiasClamp 44052 Multiple applications and games fail to run due to missing D2D devic...
2020 Aug 14
0
Wine release 5.15
...x: Implement ScriptModule::get_CodeObject. msscript.ocx: Implement ScriptControl::get_CodeObject. msscript.ocx: Add IScriptProcedureCollection stub implementation. msscript.ocx/tests: Add initial tests for Script Procedures. msscript.ocx: Implement ScriptProcedureCollection::get_Count. msscript.ocx: Uncache the module objects when adding new code. msscript.ocx: Implement ScriptProcedureCollection::get_Item. msscript.ocx: Cache the procedures obtained from the ScriptProcedureCollection. msscript.ocx: Implement ScriptProcedure::get_Name. msscript.ocx:...
2006 Dec 03
0
[778] trunk/wxruby2: Remove broken and deprecated LayoutConstraints, update samples & docs
...ge, Image_Max = (0..6).to_a </span><span class="cx"> </span><del>-def Myset_client_data(name,control) - # NOTE: get_client_data and set_client_data have been removed from wxRuby 0.4 - # because they could cause crashes - return - -# count = control.get_count() -# for n in 0 ... count -# s = sprintf("%s client data for ''%s''", -# name, control.get_string(n)) -# control.set_client_data(n, s) - # NOTE: As of wxRuby 0.2, the following will demonstrate the - # set_client_data and get...
2020 Jun 19
0
Wine release 5.11
...gdi32: Skip scan conversion on overflow. msscript.ocx: Add IScriptModuleCollection stub implementation. msscript.ocx: Add initial IScriptModule stub implementation. msscript.ocx/tests: Add initial tests for Script Modules. msscript.ocx: Implement IScriptModuleCollection::get_Count. Gerald Pfeifer (2): ntdll: Replicate InterlockedCompareExchange64 to the Unix library. ntdll: Include <signal.h> where needed in the Unix library. Gijs Vermeulen (7): msado15: Ignore IRunnableObject interface in recordset/connection_QueryInterface. msado15: Improve...
2014 Feb 07
0
Wine release 1.7.12
...lection::get__NewEnum. taskschd: Implement IEnumVARIANT::Clone for a folder collection. taskschd: Add some tests for ITaskFolderCollection::get__NewEnum. scrrun/tests: Add more tests for IFolderCollection using a dedicated temporary directory. scrrun: Make IFolderCollection::get_Count use is_dir_data() helper. scrrun: Make IEnumVARIANT::Skip work after IEnumVARIANT::Reset for a folder collection. scrrun: IEnumVARIANT::Skip shouldn't skip anything if asked number of folder elements is 0. scrrun: IEnumVARIANT::Next shouldn't fetch anything if asked number...
2020 Nov 01
12
[PATCH mlx5-next v1 00/11] Convert mlx5 to use auxiliary bus
From: Leon Romanovsky <leonro at nvidia.com> Changelog: v1: * Renamed _mlx5_rescan_driver to be mlx5_rescan_driver_locked like in other parts of the mlx5 driver. * Renamed MLX5_INTERFACE_PROTOCOL_VDPA to tbe MLX5_INTERFACE_PROTOCOL_VNET as a preparation to coming series from Eli C. * Some small naming renames in mlx5_vdpa. * Refactored adev index code to make Parav's SF series