Displaying 20 results from an estimated 400 matches similar to: "Problems with mongrel on NetBSD"
2013 Mar 05
4
searching model and has_one association
Howdy.
I have these models:
User, field "mundane_name"
user has_one :instructor_profile (may or may not exist)
instructor_profile, field "sca_name"
belongs_to :user
I would like to craft a search on these fields, which is effectively this,
but in one go:
matching_users = User.where("mundane_name ILIKE ?", "%#{target}%")
matching_profiles =
2007 Oct 23
11
validates_confirmation_of not working?
I just can''t get validates_confirmation_of working for the life of
me!...
It''s not the first time I''m having problems with it but I just never
understand why!... This time I pretty much followed *exactly* the
example in Agile Rails Development and still...it just won''t work! I put
2 different passwords in the form and it doesn''t trigger an error,
2007 Nov 10
1
Upgrade on windows to 1.1
Attempting remote update of mongrel
Select which gem to install for your platform (i386-mswin32)
1. mongrel 1.1 (java)
2. mongrel 1.1 (mswin32)
3. mongrel 1.1 (ruby)
4. mongrel 1.0.4 (ruby)
5. mongrel 1.0.4 (mswin32)
6. Skip this gem
7. Cancel installation
2
> ERROR: While executing gem ... (OpenURI::HTTPError)
404 Not Found
This is using the NetBean IDE''s ''ruby
2008 Jul 18
2
disabled save button when pdf generated
Hi
I m new in Ireport, I want to dasabled the save button for generated
PDF file and also not allowed to copy past.
can any body help me.
Thanks and Regards
Kundan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2007 Oct 27
8
mongrel 1.0.3
Hello!
Run problems after upgrading to mongrel 1.0.3 from 1.0.1:
# uname -sr
FreeBSD 7.0-BETA1
# mongrel_rails start
** Starting Mongrel listening at :3000
** Starting Rails with development environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
** Rails signals registered. HUP => reload
2007 Oct 15
6
SQL injection with :order, :limit, :group
I know how to avoid SQL injection attacks when you use :conditions
User.find :first, :conditions => ["login=?", params[:username]]
but how about with :order, :limit or :group?
# uh-oh...spaghetti-oh
User.find :first, :order => "login; delete from users; select * from users"
Pat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
2007 Oct 24
3
Bizarre log file permissions
When I create a new app with the rails command, it creates a log
directory. You must chmod that to 666 according to the error message I
get whenever anything (like script/generate) tries to log a message.
Fine ...
... But, what the hell is this about???
$ ls -la log/
ls: cannot access log/.: Permission denied
ls: cannot access log/..: Permission denied
ls: cannot access log/development.log:
2009 Mar 15
3
Capistrano deploy errors
Hi, when I do cap deploy:cold I get this error:
rake aborted!
undefined local variable or method `acts_as_commentable'' for #<Class:
0x7fa1c34a2f10>
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:1833:in `method_missing_without_paginate''
/usr/local/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.8/lib/
will_paginate/finder.rb:170:in
2009 Feb 26
11
OpenSSL::Cipher decrypt returns 'wrong final block length'
I just want to encrypt a string submitted through a form before saving
it to the DB. And then decrypt it again when I need to retrieve and
use it.
Im trying to use the OpenSSL::Cipher library. I have the following
module for encryption/decryption
[code]
require ''openssl''
module AESCrypt
# Decrypts a block of data (encrypted_data) given an encryption key
# and an
2007 Oct 30
5
Using UUID in a Migration
Has anyone ever used UUID in a migration?
I thought I could set the default value of a field to be UUID but that
only sets the value the string instead of executing the function to
create a new unique identifier.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
2012 Nov 23
1
Bug?
root@graff:~# xm usb-list-assignable-devices
1-6 : ID 14dd:0002 Peppercon AG Multidevice
2-2 : ID 051d:0002 American Power Conversion Smart-UPS 3000 RM XL FW:691.16.I USB FW:7.3
root@graff:~# xm usb-hc-create bosch-w2k3-pv 1 1
root@graff:~# xm usb-list bosch-w2k3-pv
Idx BE state usb-ver BE-path
0 0 1 USB1.1 /local/domain/0/backend/vusb/55/0
2010 Oct 20
4
How to select not continous rows?
Hello
How can I select several not continuous rows ?
If I wanted to select rows 1 to 7 I'll write
mydata[,1:7]
But what if I need to select rows 1 to 5 and 10 to 15?
--
View this message in context: http://r.789695.n4.nabble.com/How-to-select-not-continous-rows-tp3003840p3003840.html
Sent from the R help mailing list archive at Nabble.com.
2010 Nov 16
4
plot vs print ??
Hello
What's the differente betwen using "plot" and using "print" in order to
plot a graph?
For example in order to plot the result of a histogram.
cheers
--
View this message in context: http://r.789695.n4.nabble.com/plot-vs-print-tp3045256p3045256.html
Sent from the R help mailing list archive at Nabble.com.
2010 Jun 15
6
working with zoo time index ??
Hello
Where could I find examples on how to work with the time index in a
timeseries or zoo series?
Let say I've got this series
DATA
1990-01-01 10:00:00 0.900
1990-01-01 10:01:00 0.910
1990-01-01 10:03:00 0.905
1990-01-01 10:04:00 0.905
1990-01-01 10:05:00 0.890
.......................
2000-12-31 20:00:00 0.992
How do I make simple calculations such as ... ?
Calculate the
2010 Sep 10
6
adding zeroes after old zeroes in a vector ??
Hello
Imagine I have a vector with ones and zeroes
I write it compactly:
1111111100001111111111110000000001111111111100101
I need to get a new vector replacing the "N" ones following the zeroes to
new zeroes.
For example for N = 3
1111111100001111111111110000000001111111111100101 becomes
1111111100000001111111110000000000001111111100000
I can do it with a for loop but I've read
2009 Oct 20
8
Stub that returns hash values
Is it possible to create a stub that returns hash values.
For example I would like to convert this:
@siteItem = stub(''plmSiteItem'', :one => "uno")
To something like this:
@siteItem = stub(''plmSiteItem'', {''one'' => ''uno'', ''two'' => ''dos''} )
So that I can do this:
2010 Aug 18
2
Different way of aggregating
Hi
Usually "aggregate" is used to calculate things such as the sum of all data
on the first day, the sum next day, and so on.
But how can I calculate the mean of the first hour of all days, the mean of
the second hour of all days, and so on. ???
That's
Most examples:
today at 1am + today at 2am + today at 3am +.... -> sum
today
tomorrow at 1am + tomorrow at
2010 Jun 19
3
R vs SAS and Revolution R
Hello
How do you compare R to SAS in terms of speed and management of large
datasets?
What about Revolution R?
I've seen on their site, they claim that Revolution R is much faster than R
and it's multithread...
Can you really notice the difference?. What dissadvantage does it have?
I think it's based on R 2.10. but R already issued the version 2.12
Regards
What alternative
2006 Nov 25
3
[PATCH] HTTP accept filter support for FreeBSD
This small patch extends configure_socket_options to support FreeBSD''s
accf_http(9), which defers accept() until there''s a full HTTP request
to read.
Seems to work fine on 6.1-STABLE. DragonflyBSD should work too provided
the /freebsd/ line is modified to match it.
accf_http(9): http://www.freebsd.org/cgi/man.cgi?query=accf_http&sektion=9
--
Thomas
2014 Jan 21
2
After USB boot problems on Gigabyte GA-M55Plus-S3G
the closest i have gotten to a consistent way to test a MS-DOS filesystem
setup is:
dd if=/dev/zero of=binary.img bs=1M count=500
i="$(losetup -f --show binary.img )"
parted binary.img mklabel msdos -s -m
dd if=/usr/lib/syslinux/mbr.bin of="${i}"
parted binary.img mkpart primary -a optimal -s -m 0% 100%
parted binary.img set 1 boot on
mkfs.ext4 $(kpartx -savu "${i}"