Displaying 20 results from an estimated 8000 matches similar to: "distributing iconv.dll"
2006 May 24
7
migrations and SQLite
I read in the instructions of Tracks that "upgrading via the rake
migrate command is quite a bit more tricky currently with SQLite and
SQLite3". Is there any gotcha regarding migrations and SQLite3?
-- fxn
2006 Feb 19
4
is "display" a reserved name of some sort?
A view display.rhtml sees no controller state variables set in the
corresponding display action. Why?
-- fxn
2006 Mar 19
4
elemental race conditions question
What''s the standard way to prevent race conditions in controllers?
Say user has many posts.
Post controller has action add_post that receives user id, post
controller find()s the user and while he is creating the post entry
an administrator deletes that user in a separate session. We cannot
assume the database checks foreign key integrity. How do you get that
right?
-- fxn
2006 Apr 05
5
when is model() needed?
I have just some vague and thus probably wrong ideas about when to
use model() in controllers, and by now I err on being redundant. I
don''t post them here to avoid leaving anything that may be false in
the archives.
Can anyone explain exactly in which cases one should use model()?
-- fxn
2006 Feb 11
5
after_(read|find) callback?
I am pondering the possibility of encrypting/decrypting some fields
in a SQLite backend on-the-fly.
The point of the message is not security, I know that''s broken, but
whether there''s a technique that provides on-the-fly save/read
filters. Of course the solution would need to work transparently in
joins, so
user.posts.last.title
would do the right thing if title
2006 Feb 04
22
What''s the best way to embed a form?
I would like to embed my login form on my app''s home page. What''s the best way to render the login action of member controller from another action?
Thanks
Frank
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2004 Aug 05
2
libiconv problems
Hello all,
OK - Im kind of stumped on this one and google wasnt much help. Its
probably something stupid and obvious, but I could use another pair of
eyeballs.
When compiling Samba 3.0.5 on Solaris 9 (using the Sun directory server
5.1 as the LDAP, but compiled against the OpenLDAP libraries in
/usr/local/lib) I got the following error during the make:
lib/iconv.c: In function `sys_iconv':
2006 May 15
11
can you explain this benchmark?
I want to load about 14000 words (a subset of /usr/share/dict/words)
into a MySQL table in a migration:
class CreateWords < ActiveRecord::Migration
def self.up
create_table :words, :force => true do |t|
t.column :word, :string
end
say_with_time ''loading words...'' do
words = File.join(RAILS_ROOT, ''db'',
2007 Jan 19
3
How to have 'o' == 'ö'
Greetings,
(using acts_as_ferret)
So I have a book title "M?ngrel ?Horsemen?" in my index.
Searching for "M?ngrel" retrieves the document.
But I would like searching for "Mongrel" to also retrieve the document.
Which it does not currently.
Anyone have any good solutions to this problem?
I suppose I could filter the documents and queries first which something
2006 Mar 04
5
SQlite3 hoopup issues on mac os x
friends of the int-arweb.
what does this mean:
(in bold) ActiveRecord::StatementInvalid in Contact#create
SQLite3::SQLException: SQL logic error or missing database: INSERT
INTO contacts
Context:
this happened after I had finished setting up RoR as per the tutorial
at http://maczealots.com/tutorials/ruby-on-rails/
the database, is like, there. is there a nice ruby command like deal
to
2006 Apr 10
4
has render_component changed?
I have an application that worked fine, but after the recent updates
has broken in some calls to render_component from views. I might be
missing something but as far as I remember Rails updates is the only
thing I''ve done in between. See the log:
*** START LOG SNIPPET
Start rendering component ({:params=>
{:center_id=>10, :id=>25},
2006 Feb 15
1
where to set $KCODE
My application uses only UTF-8. Which is the canonical place to do
something global like setting $KCODE?
-- fxn
2006 Dec 07
17
compress and max upload size?
I am using mongrel_cluster with mod_proxy_balancer and would like to
enable compression (assuming it improves throughtput) and limit file
size upload. I configured mod_deflate and LimitRequestSize in Apache,
but in my trials looks like the proxied calls bypass those directives
(the conf goes below).
Is there a way to get this?
-- fxn
# Adapt this .example locally, as usual.
#
# To be
2013 Nov 06
6
Feature: make capitalization optional in *humanize*
According to the documentation<http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html#method-i-humanize> of
ActiveSupport::Inflector:
*humanize*(lower_case_and_underscored_word)
Capitalizes the first word and turns underscores into spaces and strips
a trailing “_id”, if any.
* Example: humanize("employee_salary") # => "Employee salary"*
I would
2006 Mar 04
13
Using helpers from controllers ?
There is a solution to use helpers from controllers ?
I have an error :
|undefined method `content_tag''|
class ApplicationController < ActionController::Base
def test
return content_tag("a","test")
end
end
2010 May 29
1
iconv issues with samba-3.2.15
Hello Experts:
I upgraded from 3.0.25 to 3.2.15 - the compilation went thru fine but I get
segmentation fault during runtime. It dumps core when function lp_load_ex
(in file param/loadparm.c) calls init_iconv().
I'm using GCC 4.3.3 to compile samba.
I tried google search but couldn't find anything relevant. Can somone please
suggest what could be going wrong.
Thanks,
Marty
2008 Jan 04
1
eager loading and polymorphic associations
There is a dedicated section about eager loading in the docs. A
coworker discovered eager loading does not work in polymorphic
associations the hard way :-) so I''ve written a patch that documents it:
http://dev.rubyonrails.org/ticket/10610
There are at least a couple of tickets that implement something that
would change that though:
http://dev.rubyonrails.org/ticket/9640
2005 Mar 12
2
UTF-8 problem when not using UTF-8, but Umlauts
On Sat, Mar 12, 2005 at 12:12:27PM +0100, Gerhard Strangar wrote:
> High,
>
> I'm running some Windows 9x Clients which don't use Unicode for SMB. It
> didn't cause any problems when using Samba 2, because the UNIX machines
> use ISO8859-1 and the Windows 9x use CP850 and no conversion was
> neccessary, German Umlauts like ?, ?, ?, ?, ?, ? and ? were the same on
>
2006 Jul 17
18
Inserting datetime value into SQL Server
I have a SQL Server column named StartTime of (SQL Server) type datetime
If I attempt to set the attribute using
public
def StartTime=(time)
write_attribute(:StartTime, "{ts ''1899-12-30
#{time.hour}:#{time.min}:#{time.sec}''}")
end
it''s inserting a NULL value.
Anyone else able to successfully insert a date time value into a SQL
Server table using
2006 Feb 07
3
help with relationship
Let''s imagine we are modelling a company that have several shops. I
have a Worker model and a Shop model. A worker belongs_to a shop, and
each shop has_many workers. But, in a shop there''s a distinguished
worker that is the supervisor
create table shops (
...
worker_id integer -- the supervisor
);
How would you express this relationship?