similar to: very easy ruby lang question...

Displaying 20 results from an estimated 1100 matches similar to: "very easy ruby lang question..."

2006 May 23
2
Overriding validation?
Is there a "normal" way to override the behavior of validator methods (like validates_presence_of) for updates vs. creation? For example, in the AWDR example store program, the User class validates the presence of the password and its length - which makes sense when the user entry is created. But what if you wanted to provide an update form that updates just certain items
2006 Apr 23
2
Check if current route == some route
I have a before_filter in ApplicationController in which I want to check if the current location is the same as a certain route, so that I only redirect non-logged in visitors to the "join" page if they''re not on that page already. The code I came up with is a bit ugly: redirect_to join_url unless (@logged_in or action_name == "join") I''m pretty sure
2006 Apr 08
16
International characters
I am new to Ruby on Rails. I have read a lot, and bought several books, and now I have started to implement a modified "shopping cart", following the AWDWR-book, with modifications to suit our application (subscriptions and memberships). Having done up to chapter 7 I have had no real problems, except one: Since our customers are Swedish I need the screen names, texts etc to be in
2019 Jul 27
2
Problems with replication in the Samba 4
Hi, I noticed that my Samba 4 DC isn't OK, because the are differences between the data storaged int he Schema on my Windows Server 2008 (isn't R2) DC and Samba 4 DC. This way, I performed several tests on my servers as shown below. Follow the results of command repadmin in the Windows Server 2008: C:\Windows\system32>repadmin /showreps /verbose Default-First-Site-Name\WIN-DC1
2011 Dec 31
2
read.csv error: invalid multibyte string
R version: 2.13.1 OS X Colleagues, I am working with a CSV file; for testing purposes, I created an XLS version of the file. When I read these files using read.xls (gdata) or read.csv, I encounter an error: Error in type.convert(data[[i]], as.is = as.is[i], dec = dec, na.strings = character(0L)) : invalid multibyte string at '<b0>C' The error occurs whether or not I invoke
2007 Apr 13
2
R on Solaris 10 x64
Hi R Developers, Greg is helping me with debugging R on Solaris 10 x64. Please let us know if you have any thoughts or tips that can help us debug this. Thanks, David ************ Using default transfer plist in vector_io: permuting About to write *** caught segfault *** address e8554000, cause 'memory not mapped' Traceback: 1: .External("do_hdf5save", call,
2015 May 12
1
FW: ERR_DS_DRA_SCHEMA_MISMATCH after join samba 4.2.1 to existing domain
Hi I have multi domain environment with root domain and subdomain. Forest and domain level windows 2003 native. Also forest prep and domain prep did for sccm 2007 ocs 2007 and Exchange 2003. After join Samba to domain like ad dc I had some problem with replication: ################################################# [root at dc03 ~]# samba-tool drs replicate dc02 dc03
2004 Aug 09
1
linear regression
Dear Consultant I've done linear regression successfully on R a few times before. But this time it keeps telling me:- "Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : 0 (non-NA) cases" The model is:- fm1 <- lm(TS.CM ~ AGE + SEX + HFE.Y.01 + TFC2B.01 + HFE.Y.01*TFC2B.01, data = IRONresults, subset = DIAG2.1D == 0) summary (fm1) TS.CM is a
1997 Feb 14
0
Linux NLSPATH buffer overflow (fwd)
[Mod: Forwarded from bugtraq -- alex] Hi! I''m sorry if the information I''m going to tell about was already known, but I hope it wasn''t... I just occasionally found a vulnerability in Linux libc (actually, some of the versions seem not to be vulnerable; my Slackware 3.1 box was though). Unfortunately, I have no time for a real investigation right now, but
2004 Apr 08
3
Asterisk Server Crashing with New Application
Dear All, I have been running a successful and very stable call center PBX based on 0.7.1 release. I need to be on this release because of a number of features that I have complied from 3rd party patches, for the call center. I will not be able to upgrade to release 1 until the patches catch up and I have done the required testing. The system was very stable until two days ago. The changes made
2012 Dec 15
1
virt-resize Fatal error: exception Guestfs.Error("e2fsck_f
We?ve been seeing this a lot lately on generic CentOS 6 rpm installs: rpm -qa | grep libguestfs libguestfs-java-1.16.19-1.el6.x86_64 libguestfs-java-devel-1.16.19-1.el6.x86_64 libguestfs-1.16.19-1.el6.x86_64 libguestfs-tools-1.16.19-1.el6.x86_64 libguestfs-javadoc-1.16.19-1.el6.x86_64 libguestfs-devel-1.16.19-1.el6.x86_64 libguestfs-tools-c-1.16.19-1.el6.x86_64
2019 Jul 29
0
Problems with replication in the Samba 4
Hi, Please, Would anyone help me? Regards, M?rcio Bacci Em s?b, 27 de jul de 2019 ?s 16:13, Marcio Demetrio Bacci < marciobacci at gmail.com> escreveu: > Hi, > > I noticed that my Samba 4 DC isn't OK, because the are differences between > the data storaged int he Schema on my Windows Server 2008 (isn't R2) DC and > Samba 4 DC. > > This way, I performed
2004 Mar 18
5
Samba and Active Directory Permissions
All, I am currently running Samba 3.0.2a on a RHEL3 server. I would like to use the extended file systems permissions through windows, but I haven't had much luck. Here is how I am set up.... My linux box is joined to my AD domain and appears to be functioning correctly. I also have winbind set up, and functioning, although I still have some tweaking to do, it is assigning user and
2017 Mar 13
2
virt-customize fail to inject firstboot script when running it from script.
Hello, We have a nodejs app which is injecting first boot scripts using virt-customize however the exact same commands are working when triggered manually. Here is the debug output of the commands Regards, Peter [ 0.0] Examining the guest ... libguestfs: trace: set_network true libguestfs: trace: set_network = 0 libguestfs: trace: add_drive
2006 May 30
7
Stripping HTML tags from a string
Hello, Is there a common way of stripping html tags from a string? Right now I''m just calling gsub!(/<.*?>/, ''''), but with a background in PHP and always having used its strip_tags() method, I wonder if the Rails community has standardized this fairly common task with something a bit less simpleminded than my quick fix. Thanks! Zack -------------- next part
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web Development with Rails. In interation E1 NoMethodError in Admin#checkout Showing app/views/admin/checkout.rhtml where line #12 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.include? Extracted source (around line #12):
2001 Nov 22
3
Compiling winelib on SPARC
Does the latest winelib compile and work on the Sparc? Are there any special patches/instructions for this? Are there any mirrors that have the precompiled binary winelib for Sparc? Thanks in advance.
2009 May 01
6
Trying to install WINE getting an error message
hello helpers, When I follow the instruction to install wine on intrepid ibex (ubuntu 8.10) from this web page: http://www.winehq.org/download/deb when I reload, after key authentication I get this error message: W: GPG error: http://ppa.launchpad.net intrepid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 71346C8340130828 W: GPG
2004 Mar 19
1
Samba and Active Directory Permissions RESOLUTION
All, Thanks for the responses. There were two things I had to do to get this to work. The first thing was I had to change the readonly attribute in the smb.conf to NO. I also noticed that there was an error in my /etc/fstab so that the options were not read in for some reason. Once I fixed this and re-mounted the filesystem with the ACL option, I was able to do what I needed to do. Thanks
2004 May 08
2
List of online sip users
Hello list, is it possible to see all online users? I have configure a isdn2sip gateway in the company I work. Now, the question: Is it possible to show all colleague which people where reachable with this gateway? greetings and thanks, Holger _____________________________________________________________________ Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P! Kostenfrei