Displaying 20 results from an estimated 28 matches for "rubyish".
Did you mean:
rubbish
2006 Apr 02
16
12 / 16 = 0
Hi,
Just thought it was weird that Ruby doesn''t automatically cast ints to
floats. Seems so un-rubyish
irb(main):006:0> 12/16
=> 0
irb(main):007:0> 12.to_f / 16.to_f
=> 0.75
Jeroen
2007 Apr 03
1
wxSugar 0.1.15 released
...ems and download from rubyforge.
This is a minor feature release which adds a couple of new facilities:
* enumerable_controls: treats ListCtrl and ControlWithItems classes,
such as ComboBox, ListBox, CheckListBox as Ruby enumerables
* adds Window#has_style?
The former is meant to give much more rubyish access to the contents of
GUI controls which present the user with a list of item to choose from:
# basic iteration
listbox.each { | i | puts listbox.string(i) }
# iterate with string labels
listbox.each | i, string, data |
puts "Item #{string} is at position #{i}, and has client data #{d...
2005 Nov 26
6
Fuzzy searching
Hi, everyone,
Just wondering if someone had come up with a good way to do fuzzy
searches if you use MySQL as your database (we tried switching to
PostgreSQL, but that ended up adding even more problems). Ferret sounds
great, but reading through the discussion it looks like we need to solve
the problem of write conflicts. I just wrote a post in ruby-talk about
using KirbyBase maybe to solve
2009 Dec 15
3
is there a profiling gem/plugin for Ruby on Rails?
Hi,
is there a profiling gem/plugin for Ruby on Rails?
That is, where I can then specify the point in a request I want to act
as milestones points for a time to be taken, and place them
strategically. Then ideally the plugin then works out and displays how
the overall response time was made up...
Tks
--
You received this message because you are subscribed to the Google Groups "Ruby on
2006 Oct 21
6
Window#paint patch
Attached is a patch and some extra files to fix our
ObjectPreviouslyDeleted crasher with the paint method. As discussed, it
just re-implements the method in Ruby.
I created a directory lib/wx/classes as a place to hold Ruby extensions
to the API. The attached app.rb and window.rb files should be added to
it. When this patch is applied, files in that directory are
automatically required on
2004 Apr 26
7
TRW: getters and setters
Hi all,
I mentioned this on the forum but wasn''t sure if
anyone was paying attention. I was just wondering if
it would be possible to replace the
get_something/set_something style methods with the
more Rubyish something/something= style (i.e. uniform
access).
For example, the Button class currently has
button.get_label and button.set_label("foo"). It
would give me warm, fuzzy feelings if I could do
button.label and button.label = "foo". :)
Just a thought.
Regards,
Dan
PS - TRW =...
2005 Jul 20
3
Plans to rename wxruby-swig to wxruby2
...x.dll or
wx.so, but it seems needlessly painful to make our users directly
require ''wxruby2'' in their apps.
4. This wx.rb file will also be a handy place to create pure ruby api
sugar. Eventually, one of the ways wxruby can really be valuable is to
provide an API that is more rubyish, and coding wrappers in ruby is far
easier than doing so in C++. Eventually, some of those wrappers could be
ported to C++ for speed, if necessary.
My goal is to release a beta version of wxruby2 within a few weeks.
Kevin
2006 Sep 07
2
A little bit of sugar
...It can be downloaded via gems (gem install wx_sugar) or from
http://rubyforge.org/frs/?group_id=665 . If you install the gem it will
automatically build docs for you.
This package is a set of pure ruby extensions to wxRuby that are meant
to make the syntax:
- more expressive
- more ''rubyish'' and less C++ish
- shorter
The main idea is to get a discussion going about how we want to develop
the wxRuby syntax. The extensions are designed to be modular (you can
use one and not the other) and to complement rather than replace the
existing syntax (so you can run existing wxRuby...
2007 Mar 22
0
[912] trunk/wxsugar/lib: Overview documentation moved to lib/wx_sugar.rb
...WxSugar is a set of additions to the WxRuby API, written in pure
-# ruby. They''re intended to:
-#
-# * Make some tricky WxWidgets things easier and more consistent
-# * Reduce repetitiveness and redundancy for common tasks
-# * Make code more expressive
-# * Make code more idiomatically Rubyish
-#
-# Not everyone will like all the extensions to WxRuby here. So the
-# Sugar modules:
-#
-# * Can generally be used separately, without depending on each other
-# * Supplement rather than replace the underlying ''raw'' API
-#
-# == Using WxSugar
-#
-# The extensions can current...
2006 Apr 24
9
Summer of Code for wxRuby?
Hi all,
You''ve probably heard of Google''s Summer of Code. As this year Ruby
Central is registered as a mentoring organisation, it is possible to do
Ruby projects or work on existing ones, for example wxRuby :).
I would be interested to work on wxRuby as a student. So, my question
is, are there tasks that need to be done and would be suitable for a
Summer of Code project? If
2006 Apr 07
0
acts_as_taggable and tag list
...1.1.1. I would like to get a list of all the tags for a particular model type, in my case "Post". I got it to work with:
Tag.find(:all,:include => :taggings, :conditions => "taggable_type=''Chunk''")
But I''m wondering if there''s a more Rubyish elegant way.
thanks, scott.
----------------------------------------------------------------------------------------------------
What''s an Intel chip doing in a Mac? A whole lor more that it''s ever done in a PC.
My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://s...
2006 Apr 19
1
AJAX, Response codes and Opera.
...] = true
redirect_to :controller => ''client'', :action => ''view'', :client_id
=> params[:client_id]
else
render :partial => ''new'', :client_id => params[:client_id],
:status => 403
end
end
Probably very un-rubyish but what the hell, I''m a noob. As you can see
what will happen is that if the submission is successful then the body
div will be updated with the content in the client/view action. If it
fails then the form partial is re-rendered in the content tag with a 403
HTTP code. (Which tells th...
2006 Feb 08
3
Extends ActiveRecord from the application ?
Hello,
I just want to create a method that will be available for all models. Is
it possible ?
2005 Jun 25
0
rubytorrent future plans
...to do my best to spend some time on RubyTorrent over the
next week or so. Here''s what I plan to accomplish:
1. gem packaging
2. Slight API changes: move to Net::BitTorrent rather than RubyTorrent;
remove the requirement for ''self'' being passed to on_event (not very
Rubyish IMO); etc.
3. Add UDP tracker support.
4. ri documentation
I was wondering if anyone has a UDP .torrent file for me to play with
(preferable one that''s still active).
Also, has anyone tried Ruby 1.8.3-preview on Windows? This allegedly
solves the 20-second global freeze issue.
Thanks,...
2007 Dec 28
2
controls within a wxTreeCtrl
What I''d like to be able to do is use a wxTreeCtrl to manage a tree layout
of not only text, but several buttons which would line up adjacent to the
text in the tree items. I''ve googled around a bit on this and it doesn''t
seem straightforward, if it is possible at all.
Can anyone provide any pointers for attempting this?
In a simple ASCI schematic, it would be like
2006 Jan 02
11
aligning Ferret''s IndexSearcher.search API with Lucene''s
...break people''s existing code?
* Where is the proper place to put these methods? Move the methods
that return TopDocs to a module, which is more or less the same as a
Java interface, and implement the methods that return Hits directly in
the class? What is a good way to do this that feels Rubyish and takes
advantage of its strengths and idioms?
* The options to limit the search (first_doc and num_doc) in
Search::IndexSearcher and the code that implements them should
probably be moved out of Search::IndexSearcher into Index::Index
* Are there lower level issues I am not aware of that would...
2006 Apr 17
4
Quick status report
Hi all,
I spent about 8 more hours tonight, and I think I''m close to having a
wxruby2 build that works with wxWidgets 2.6.3 and SWIG 1.3.29. It should
run bigdemo as well as the other samples. Unfortunately, I probably
won''t have much time to work on it until next weekend :-(
Tonight''s frustration was with wxART_INFORMATION. It''s sort of a wxArtID
and sort of
2006 May 01
17
Radiant CMS
I am pleased to announce that Radiant CMS is now publically available
from the Subversion repository at:
http://radiantcms.org/
What is Radiant?
----------------
Radiant is a no-fluff, open source content management system designed
for small teams. It is similar to Textpattern or MovableType, but is a
general purpose content management system (not a blogging engine).
Radiant features:
2006 Apr 03
4
Stop words in queries
I''ve run in to an issue that I''m not sure how to address. Basically, I''m
building queries with occur_default Search::BooleanClause::Occur::MUST,
and using the StandardAnalyzer which does stop filtering. The stop
filtering is working beautifully on the indexing side. The problem is
that when the query parser parses through a query with a stop word in
it, say
2006 Aug 12
7
Documentation for wxRuby
...ew it.
http://hailstonesoftware.com/_files/Ruby/wxruby/html/wx_contents.html.
I also have a zipped version if anyone wants to download a local copy.
http://hailstonesoftware.com/_files/Ruby/wxruby/wxRuby_docs.zip
The docs are generated by parsing the LaTeX originals from wxWidgets
and outputing a Rubyish version. These LaTeX files are then run thru
tex2rtf to create the HTML docs. The attached file shows all the
details, just drop it into the rake folder and add require
"rake/rakedocs" to the main rakefile and also add
create_documentation_tasks under all the other create_*_tasks in the
m...