Displaying 20 results from an estimated 39 matches for "bini".
Did you mean:
bind
2006 Jul 14
8
CAS Authentication filter.
...ins/cas_auth
and a homepage with some information can be found at
http://opensource.ki.se/casauth.html
For use, just install the plugin in your application and set these
attributes in your environment.rb
CAS::Filter.login_url
CAS::Filter.validate_url
CAS::Filter.server_name
--
Ola Bini (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)
"Yields falsehood when quined" yields falsehood when quined.
2006 Jul 21
4
Autocompleting InPlaceEditor
...nPlaceEditor, allowing
the use of either server-driven, or local autocompletion. I''ve also
created new helper methods in Rails for this functionality.
My question is, is there any interest that I package this and make it
available as a plugin, or something like that?
Regards
--
Ola Bini (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)
"Yields falsehood when quined" yields falsehood when quined.
2007 Dec 28
1
JtestR 0.1 released
...st/Unit, RSpec, dust, Mocha and ActiveSupport
- Customizes Mocha so that mocking of any Java class is possible
- Background testing server for quick startup of tests
- Automatically runs your JUnit codebase as part of the build
Getting started: http://jtestr.codehaus.org/Getting+Started
Team:
Ola Bini - ola.bini at gmail.com
Anda Abramovici - anda.abramovici at gmail.com
--
Ola Bini (http://ola-bini.blogspot.com)
JRuby Core Developer
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)
"Yields...
2006 Aug 06
6
Having Problem w/ Agile Web Development book
I get this error ...
NoMethodError in StoreController#index
undefined method `salable_items'' for Product:Class
and here is my store_controller.rb ...
class StoreController < ApplicationController
def index
@products = Product.salable_items
end
def self.salable_items
find(:all, :conditions => "date_available <= now()", :order =>
"date_available
2006 Aug 07
5
Store SOAP::RPC::Driver in user session throws TypeError
Hi All
I have a
requirement to consume a 3rd party web service from my Rails
application. I am doing this
in my action
require ''soap/wsdlDriver''
factory = SOAP::WSDLDriverFactory.new(TRANSIDIOM_WSDL_URL)
soap = factory.create_rpc_driver
soap.wiredump_file_base="#{RAILS_ROOT}/log/transidiom.log"
param = %(<Request
2006 Aug 03
3
Swedish Rails
...the module name and you''re set to go. (Of course you''ll have to
know the language you''re porting too, though).
The plugin can be found at:
http://svn.ki.se/rails/plugins/swe_rails
and some information here:
http://opensource.ki.se/swe_rails.html
Regards
--
Ola Bini (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)
"Yields falsehood when quined" yields falsehood when quined.
2006 Jul 14
4
sending additional parameters to before_filter
i am trying to create a system so that different users have different
priviliges on my application. i was going to modify my authorize
function so that i could pass the required role to it and have it check
the current user for that role.
i am using before_filter and would like to have just one function
instead of writing one for each role like so:
authorize(role)
instead of:
2006 Jul 14
2
Configuration search order
...question hadn''t been loaded yet. So I guess
my question is in which order the global environment.rb, the
environtments/$RAILS_ENV.rb and plugins/*/init.rb gets run... Is there
any good way to add env-specific configuration to a plugin? Would kinda
come in handy, actually...
--
Ola Bini (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)
"Yields falsehood when quined" yields falsehood when quined.
2006 Jul 22
1
InPlaceEditor with Autocompletion
...eatures. So,
just install the plugin, include the JavaScript file and use the helpers.
You can install the plugin from:
http://svn.ki.se/rails/plugins/in_place_completer
More information:
http://opensource.ki.se/inplacecompleter.html
Usage is provided in the README and RDoc.
Regards
--
Ola Bini (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)
"Yields falsehood when quined" yields falsehood when quined.
2006 Aug 16
4
Plugins and svn
Hi railers,
What do you do when you must use a plugin in a rails app that is under
subversion?
I think that an approach is simply install a version of the plugin, and once
all the test pass, commit the plugin itself to the repository, inside the
/vendor/ of the app. If a new version of the plugin is released, your app is
still using the working one (although the new version could work too).
2006 Jul 13
2
EmacsRails cheat sheet
Hi
I''ve compiled a small cheat sheet for Emacs-Rails. It can be found here:
http://os.ologix.com/emacs-rails-cheat.pdf
--
Ola Bini (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)
"Yields falsehood when quined" yields falsehood when quined.
2005 Nov 09
2
help with legacy R code
...false * (pgamma(goodhist$breaks[i+1],wrongshape,
wrongrate)-pgamma(goodhist$breaks[i],wrongshape, wrongrate))
if (goodhist$counts[i] == 0)
binprob[i] = 0
else
binprob[i] = (goodhist$counts[i] - expnegative) / goodhist$counts[i]
}
result = data.frame(newx)
prob = c(1)
for (i in 1:totalx) {
bini = which ((goodhist$breaks < newx[i]) & (goodhist$breaks > newx[i]-0.15
))
if ((binprob[bini] < 0.8) | (newx[i] < wrongmean))
prob[i] = -1
else
prob[i] = binprob[bini]*100
}
result = data.frame(result, prob)
write.table(result, file="probwrong.txt", sep=" "...
2008 Jan 30
2
Testing a call to super
Did any further discussion ever come of this? I take it is officially
not supported currently? I just get an odd error when I try it (it
throws a "0 expected 1 received", no matter what stubbing/expectation
combo I use), so came looking around on google, and finally the
mailinglist.
Here''s my stripped down example: http://pastie.caboo.se/145603 (it
fails with expects too)
2006 Aug 03
5
Rails - forms
Currently I have a registration form that is built like this:
<label for="First name">First name</label>
<%= text_field "user", "first_name" %><br>
<label for="Last name">Last name</label>
<%= text_field "user", "last_name" %><br>
<label for="Email">Email</label>
2006 Aug 03
5
Database configuration across developers!
Hi,
I have what might be a silly question but is there any way to put some
of the database configuration information into a separate file? For
instance, in config/database.yml I have:
developer_database: &developer_database
adapter: mysql
username: me
password: something
host: 127.0.0.1
development:
<<: *developer_database
database: foobar_development
test:
<<:
2006 Jul 14
6
Don''t understand :: in ActionController::Base
Maybe this should apply to Ruby forums directly, but I''ll try here.
I understand the concept of classes and subclasses thanks to the
excellent "Programming Ruby - The Pragmatic Programmer''s Guide".
However, I don''t understand what :: signify in terms of inheritance,
parent and child in e.g.
ActionController::Base
--
Posted via http://www.ruby-forum.com/.
2008 Oct 31
4
RedCloth 4.1.0 released with JRuby support
Sorry it took me a week to release the JRuby version. I was out sick
most of the week.
Thanks a million, Ola Bini, for implementing the Java code!
Give it a go:
Ruby:
gem install RedCloth
JRuby:
jgem install RedCloth
Let me know how it goes for you.
Jason
2006 Sep 04
8
ActiveRecord-JDBC is coming along
The ActiveRecord-JDBC adapter is rapidly maturing these days. I got the full
set of AWDwR2 migrations to run with it against MySQL last night, and Ola
Bini has gotten migrations working well against Oracle and Firebird. We also
have SQL Server support running most of our test cases (under non-Windows
environments too!) and have started adding support for Derby and HSQLDB
(Java-based DBs). Things are looking very good.
However we have a very small req...
2007 Aug 04
1
ActiveRecord gotcha with references?
I have this situation:
class Employee < ActiveRecord::Base
belongs_to :designation
end
class Designation < ActiveRecord::Base
end
I do the following at the irb console:
Step 1: Find an employee
>> emp = Employee.find 3
=> #<Employee:0x35a7d34 @attributes={"designation_id"=>"3", "id"=>"3",
2006 Jul 17
3
Extending Ruby classes in Rails
Hi.
I''ve placed the following in lib/mods.rb:
class String
def String.foo
"bar"
end
def bar
"baz"
end
end
But it does not get picked up:
white:~/svn/tagticks morten$ script/console
Loading development environment.
>> String.foo
NoMethodError: undefined method `foo'' for String:Class
from (irb):1
>>