similar to: ActiveRecord model relationship with YAML file

Displaying 20 results from an estimated 10000 matches similar to: "ActiveRecord model relationship with YAML file"

2010 Feb 16
7
YAML, UTF-8, TextMate, Notepad
This is not a question but a report on the difficulties I had and the solution I found with respect to UTF-8, YAML::load, and Ruby/Rails. Comments are appreciated. - - - I had been struggling for two days to get UTF-8 working in my Rails app. I had/have a localization file, lib\locale\de.yml, that had iso-8859-1 encoding. I could not get that to display properly. Marnen, quite correctly,
2007 Oct 08
5
Escaping colons in YAML
Hello, Does anyone know how to escape colons in YAML? The key in my yml is the domain with port number, but the yml file isn''t working with this setup: ###BEGIN production: ### THIS IS THE ONE I''m HAVING TROUBLE WITH ### 8.11.32.120:8000: GoogleMapsKeyforThisDomain exampledomain.com: GoogleMapsAPIKeyforThatDomain development: GoogleMapsAPIKeyforDevelopmentDomain ###END
2010 Dec 12
3
Toto blog date issue - production only, localhost fine
I have this listed in the Toto Issues list on Git and know that it is affecting one other person and so far no ideas... just want to throw it out here if anyone else has had the issue or better yet has a fix: I have a pretty stock instance of Toto. Locally I run it on thin and everything works. When I push it to heroku, the index loads but on every article, instead of showing the date in the
2010 May 25
1
using the name of an argument in a function
Hi all, In a function, I need to get the name of a variable that has been used to call the function. For example, I want: --- 8< ------ toto <- 3 fun <- function(y){ nameOfY <-deparse(substitute(y)) cat("name is ",nameOfY) } fun(toto) # [1] name is toto --- 8< ---- But deparse(substitute(y)) does not work all the time, especially when we use generic function.
2020 Oct 02
1
adding sAMAccountType to an user
Hi all, having by mistake deleting some of my users, i have allmost raise them from dead by doing ldbrename -H /var/lib/samba/private/sam.ldb CN=titi toto\0ADEL:63c1e1b1-09ea-4fd7-8a95-c68a82fd92a2,CN=Deleted Objects,DC=local,DC=domain,DC=fr "CN=titi toto,OU=here-here,DC=ietr,DC=univ-rennes1,DC=fr" and adding the missing property by using an old ldb backup. BUT some property are
2011 Mar 09
1
ActiveRecord serialize method not returning YAML array in test environment.
Hello, I''ve got a problem with deserialization of AR "serialize" method (http://apidock.com/rails/ActiveRecord/Base/serialize/class) in my tests. It just gives me pure String instead of my data Array. Example: User > AR::Base serialize :roles, Array end Console: u = User.new u.roles = ["admin", "support"] u.save # => true User.first.roles # =>
2006 Mar 07
2
Building tkentry dynamicly
Dear R-users, I would like to build N "tkentry" compounds in the same window, with default text for each. As N is variable I need to construct them in an iterative way : library(tcltk) main<-tktoplevel() tktitle(main)<-"My Tool" filenames<-c("toto","tata","titi") N<-length(filenames) for (i in 1: N) {
2015 Feb 25
2
getent passwd not return the same number of records from a call to another call
really, this getent with grep should not return anyting. because : 700001 is not 70001 ;-) >getent group | grep 700001 gives : >domain users:x:70001: >info:x:70001:toto,titi,tutu exist both groups only in the AD DC directory, or are ther also linux groups here. are both assigned a GID how? Greetz, Louis >-----Oorspronkelijk bericht----- >Van: h.henoch at isc84.org
2015 Feb 25
2
getent passwd not return the same number of records from a call to another call
I know that ID. I had this 70001 too sometime. It was a cache problem. Try "net cache flush" and after this getent once more. This should work. Regards Tim Am 25. Februar 2015 09:45:40 MEZ, schrieb "Herv? H?noch" <h.henoch at isc84.org>: >Both groups are Samba groups > >wbinfo --group-info gives for each group : >GID of domain users is 513 >GID of info is
2010 Feb 22
3
Multidimensional dynamic Hash
OK I give up, how do I do this... I have a DB that stores dynamic variables with I group into group_id''s. For instance here are a couple examples of db rows: title="name", description = "john", grouping_id = "1" title="location", description = "USA", grouping_id = "1" title="comment", description = "hello",
2024 Feb 06
1
[EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments
Here's a dummy example that I think illustrates the problem: toto <- function() { if (runif(1) < 0.5) function(a) a else function(a,b) a+b } > fcn <- toto() > fcn(1,2) [1] 3 > fcn <- toto() > fcn(1,2) [1] 3 > fcn <- toto() > fcn(1,2) Error in fcn(1, 2) : unused argument (2) How can you use the returned function, if you get different arguments?
2009 Apr 06
3
how to subsample all possible combinations of n species taken 1:n at a time?
Hello I apologise for the length of this entry but please bear with me. In short: I need a way of subsampling communities from all possible communities of n taxa taken 1:n at a time without having to calculate all possible combinations (because this gives me a memory error - using combn() or expand.grid() at least). Does anyone know of a function? Or can you help me edit the combn or
2010 May 12
6
dynamic searchable fields, best practice?
I have a Lexicon model, and I want user to be able to create dynamic feature to every lexicon. And I have a complicate search interface that let user search on every single feature (including the dynamic ones) belonged to Lexicon model. I could have used a serialized text field to save all the dynamic information if they are not for searching. In case I want to let user search on all fields, I
2010 Oct 08
2
vfs_acl_xattr issue
Hello, I'm using samba 3.4.8~dfsg-2 with "vfs objects = acl_xattr". [share] path = /home/users/xxxx valid users = xxxx read only = No create mask = 0666 directory mask = 0770 vfs objects = acl_xattr Here is my problem, i'm connecting to my share, which have a folder 'f01' with some acl. I created a folder and broke inherit 'f02'.
2002 Jul 16
2
5 non-answered questions.
Hello, We have just migrated our large dev file server on linux+samba (Mandrake8.2+samba2.2.3a). It works almost fine but here are some question asked by some users I can't answer, after reading the manuals, the FAQs...and reading this list for a while : 1. Why can't NT clients do several levels mkdir ? I mean doing a mkdir toto/titi would create first a toto directory and then a
2015 Feb 25
2
getent passwd not return the same number of records from a call to another call
Here is my smb.conf (on member domain) : idmap config * : backend = tdb idmap config * : range = 2000-9999 idmap config * : schema_mode = rfc2307 idmap config DOMAIN : backend = ad idmap config DOMAIN : schema-_mode = rfc2307 idmap config DOMAIN : range = 10000-999999 winbind nss info = rfc2307 winbind trusted domains only = no winbind use default domain = yes winbind enum users = yes winbind
2015 Feb 24
4
getent passwd not return the same number of records from a call to another call
Hello On AD Server : -------------------- We have migrated from S3 to S4 with samba-tools classicupgrade. All is ok : bind9, winbind but getent has a strange behavior. getent passwd doesn't return the same number of records. So a AD user can be not present in the response of getent !!!! it can have a big difference of records returned from a call to another call of getent passwd ... On
2008 Aug 07
1
package.skeleton does invalide regular name, bis... (PR#12020)
Hi the list, I guess I find an other bug (the first one is at the end off this mail) in package.skeleton. It occurs when we give as code_file some file that are not in the current directories. If we give a single file to code_file (like code_file=3D"riri/fifi.R"), it does not reconize fifi.R as a regular name and change it to riri/zfifi.R If we give several file to code_file (like
2007 Oct 05
5
PostgreSQL, templates, and test databases
Hi everyone. I''m having a bit of a problem with an application I''m currently developing with Rails 1.2.3 and PostgreSQL, attempting to use test-first development. Here''s the scenario: * I have the usual three databases, with migrations. Testing has been working beautifully. * I need to store geographic data, so I add PostGIS to all three databases (along with
2012 Jul 19
6
Remove leading and trailing spaces from folder names?
Hi! Anybody got a doveadm script which can remove leading and trailing spaces from folder names? Right now we're migrating mailboxes from dovecot -> Exchange, and Exchange cannot handle leading and trailing spaces in Folder names. -- Ralf Hildebrandt Gesch?ftsbereich IT | Abteilung Netzwerk Charit? - Universit?tsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203