Displaying 20 results from an estimated 1000 matches similar to: "very basic newbie question!"
2006 Mar 09
1
OOP basics
I''ve got:
def new
@schoolclass = Schoolclass.new(:day=>1, :start_time=>"2006:01:01
00:00:00, :description=>"enter description here")
breakpoint()
end
after the breakpoint, I can @schoolclass.inspect and see the
@schoolclass attributes, however @schoolclass.day, @schoolclass[:day]
and @schoolclass["day"] all return NIL.
what am I doing wrong?
2006 Feb 18
6
Naming join models
I''ve been playing around with EdgeRails and checking out some of the
new features. The one that will probably have the biggest affect on
my designs is join models (or :through associations). For those not
familiar with this feature, it lets you replace your habtm
association with a pair of has_many associations indirected through
an intermediate model class.
Looks like good
2019 Jul 18
2
getent passwd shows old name for renamed user
On 18/07/2019 20:20, ?ukasz Michalski via samba wrote:
> W dniu 2019-07-18 o?18:46, Rowland penny via samba pisze:
>> On 18/07/2019 17:36, Kris Lou via samba wrote:
>>> Might have something to do with this bug:
>>> https://bugzilla.samba.org/show_bug.cgi?id=11482
>>>
>>> You can find and make the relevant changes with ADSI Edit.
>>>
2009 Jun 03
1
Cannot delete files in Samba
Hi,
I recently upgraded from Samba 3.0.31 to 3.3.2 on a FreeBSD 6.4
server, and since then, the Windows machines have no right to delete
files unless the directory is "chmod o+w"
I tried to play with "map read only" and 'store dos attribues" but not
to avail.
My FreeBSD server is quite standard, the Samba cnfiguration too.
I Googled with no succees.
Any clue is
2019 Jul 18
2
getent passwd shows old name for renamed user
W dniu 2019-07-18 o?21:39, ?ukasz Michalski via samba pisze:
> W dniu 2019-07-18 o?21:22, Rowland penny via samba pisze:
>
>> On 18/07/2019 20:20, ?ukasz Michalski via samba wrote:
>>> W dniu 2019-07-18 o?18:46, Rowland penny via samba pisze:
>>>
>>> I changed uid, sAMAccountName, msFU30Name from 'foo' to 'bar' using
>>> ADUC
2010 Feb 14
2
[LLVMdev] [cfe-dev] clang with pthread on mingw
Hi Vincent,
This is an LLVM issue, rather than a clang issue, so llvmdev is the appropriate mailing list for this report.
Your fix looks semantically valid, but it would be cleaner to only create and destroy the pthread_rwlockattr_t if it is actually needed, rather than creating it, initialising it, not using it, and then destroying it on mingw (and, as the code currently stands, *BSD).
The
2006 Jan 09
3
rails ignoring the migration file
I have a mysql database that I am trying to use migrations on. The
problem that I am having is that when I create a blob field in my
migration file like so:
t.column "data", :binary, :limit => 15.megabytes, :null => false
rails changes it to this in the schema:
t.column "data", :binary, :default => "", :null => false
not only is this not what I wanted
2006 Jan 10
5
problems overriding module with plugin
Hi I am trying to create a plug-in to fix the error in the rails core
produced by the multiple delete on a HABTM relationship. I have
confirmed that my plug-in is being included into the base during
runtime however the code does not seem to be overridding the base
class.
module ActiveRecord
module Associations
module ClassMethods
def has_and_belongs_to_many(association_id, options =
2010 Feb 14
0
[LLVMdev] [cfe-dev] clang with pthread on mingw
David,
Your fix sounds fine to me. Please apply.
--Owen
On Feb 14, 2010, at 6:30 AM, David Chisnall wrote:
> Hi Vincent,
>
> This is an LLVM issue, rather than a clang issue, so llvmdev is the appropriate mailing list for this report.
>
> Your fix looks semantically valid, but it would be cleaner to only create and destroy the pthread_rwlockattr_t if it is actually needed,
2006 Feb 02
3
acts_as_family_tree
For a project that I am working on I need to have a family tree. This
means that instead of having one parent each item has at most two. As
far as I know acts_as_tree only allows one parent_id. Any suggestions
on how to make a "acts_as_family_tree" ?
Thanks,
Mark
--
--------------------------------------------------------------------
I am Mark Daggett and I approve this message.
2005 Dec 02
3
Conceptual Design Question
Hi All,
I am making a DAM (seems to be the hip thing to do these days). It is
for the company that I work for. We have some really weird domain
rules that have prevented me from just using a simple directory
structure file permission system. I have come up with a solution but I
wanted to run it by you gurus to ensure that I am not recompiling the
wheel here.
Basically the domain rule is:
A user
2006 Mar 25
2
acts_as_tree wierdness with children.count and children.size
i am making a category tree and i iterate over the category using my
counter_cache however it would show a different number than what was
actually being represetned in the tree.
Here is an example
cat.children = [cat2, cat3]
puts cat.children.size 2
puts cat.children_count 2
cat4.parent_id = cat.id
cat4.save
puts cat.children.size
2006 Jan 12
3
url_for in tests
Hi there,
I''ve added an extra bunch of testing features for doing in-browser
testing with Selenium, and am having quite a time figuring out how to
use url_for with having a controller object present. I''ve tried using
ActionController::Base.url_for and
ActionView::Helpers::UrlHelper.url_for but haven''t been able to get
something that works.
What I want to be able
2005 Dec 22
3
acts_as_stateless ?
Is there such a thing that I could use to store sessions in the DB
instead of in a cookie so that I can ensure users will be able to
access their session data even across several load balancers? We use
totally stateless machines here at work and I am worried about
deploying a rails app in production that uses a volitile session
stored on the machine.
Any help is great!
Happy Holidays,
Mark
--
2008 May 05
2
I want to help translating articles
Hello to all those of the list, I introduce myself:
My name is Lester Espinosa Mart?nez, I live in Cienfuegos, a city of
Cuba. I am interested in helping Wiki of CentOS working in translating
from English to Spanish.
I met the Wiki of CentOS thanks for a great one my friends called: Alain
Reguera Delgado, and I also collaborated in translating articles of last
Wiki of CentOS in Spanish.
My
2006 Feb 10
7
convert rails object to javascript variables
Am i a total idiot to try and parse out a rails object for javascript
in this way?
<%
for i in interface_items[0].attributes
%>
var <%= i[0] %> = "<%=h( i[1] )%>"
<%
end
%>
Am I missing something really obvious?
Thanks,
Mark
--
--------------------------------------------------------------------
I am Mark Daggett and I approve this message.
2010 Apr 30
1
Possible bug in POSIX classes for R 2.11.0?
To the R development team;
I found an unusual behavior in zoo when I upgraded to R 2.11.0 - it abruptly terminated when I performed certain operations on large zoo objects. I sent an e-mail to Achim Zeileis and he said this was a potential bug that I should report to the R development team. The details are given below in the thread below. Basically, I can crash R with this code:
library(zoo)
2006 May 10
12
Strange Behavior on Non-Index Pages
If I browse to \myRoRApp, I get the "Welcome aboard" screen.
I''ve done the ruby scripts/generate controller MyTest, and "Rolling with
Ruby on Rails" tells me I should be able to browse to \myRoRApp\MyTest
and see an error page, but what I''m actually seeing is a fastcgi config
file!
I have installed fastcgi, but apache can''t "see" the
2007 Mar 07
10
Long URLs - New to Mongrel
My rails web app (rails 1.2.1) uploads an image from a Java applet by
encoding it into the URL. This works fine when I''m using Webrick. I''m
trying out Mongrel today, and I''m getting an error in Safari that
says ?lost network connection? (NSURLErrorDomain:-1005). I get
something similar in Firefox. Is there a way to make Mongrel accept a
really long URL like
2004 Nov 17
3
Samba share to access windows folders in linux.
Hi,
I am trying to access folders on a windows system on a linux system using
the command,
smbmount '//a.b.c.d/CCViews/abcd/abcd_Linux_dev' '/root/pqrs/LinuxDev' -o
username=abcd/<domain>,uid=abcd,gid=abcd
This prompts for a password and I give the correct domain password here. It
gives me the error:
21896: tree connect failed: ERRDOS - ERRnosuchshare (You specified an