Displaying 20 results from an estimated 900 matches similar to: "download manager?? anyone?"
2006 May 22
3
STI, HABTM & counter_cache
Hello world...
I have an interesting issue that the online docs aren''t helping me with.
In my app I have 4 models
Item < ActiveRecord
Deal < Item
Product < Item
Category < ActiveRecord
Item has_and_belongs_to_many :categories...
On each category record I''d like to maintain a product_count and deal_count
to increase performance. This doesn''t appear
2006 May 05
1
Adding methods to model based on foreign table rows
Hi all,
I wondered if the following is implemented in ActiveRecord:
I have three tables: "products", "properties" and "product_properties"
the products table holds base information for the product, like
product_id, name etc.
>> Product.column_names
=> ["product_id", "name"]
the properties table holds extra "columns" for the
2005 Dec 22
1
How to write unit tests with respect to model callbacks?
Hello,
I am exploring the "Testing" part of Rails, but It seems some things
work differently than I thought it would.
Consider the following model:
class Client < ActiveRecord::Base
has_one :project
def after_create
Project.new(:name => self.name, :is_client => true, :client_id
=> self.id).save
end
def after_update
2005 Dec 27
1
SOAP + HTTP authentication
Hey,
Just had a question. Been pulling out my hair all weekend trying to get SOAP
to work properly in Rails and even straight on Ruby. I started with Rails''
AWS and moved to Ruby''s internal libraries, after which I tried out SOAP4R.
Now, my question is, does Rails or even Ruby itself support SOAP client
calls through basic HTTP Authentication? From the research I''ve
2006 Jun 08
2
counter_cache is not looking for children_count with acts_as_tree
Hi there, the acts_as_tree API says that I can set a counter cache and
that it will automatically increment the "children_count" column. I
did that but when I create a new page it asks for a "pages_count"
column instead.
Here is the relevant part of page.rb model:
class Page < ActiveRecord::Base
acts_as_tree :order => :position, :counter_cache => true
2012 Jan 05
2
CentOS6 and tilde expansion
Set up NIS and autofs on this new CentOS6 box, but it seems tilde
expansion no longer works in bash?
[root at frodo ~]# cd ~john
-bash: cd: ~john: No such file or directory
[root at frodo ~]# cd /home/john
[root at frodo john]# pwd
/home/john
[root at frodo john]#
It still works in t/csh:
[root at frodo ~]# /bin/csh
[root at frodo ~]# cd ~john
[root at frodo ~john]# pwd
/home/john
[root at
2006 Oct 16
10
Sorting by score
Hi I think this is a very easy question but here goes:
I want to sort my results by a boolean field and then by score, I
thought this would be a default configuration but apparently not.
sort_fields = []
sort_fields << Ferret::Search::SortField.new(:sponsored, :reverse =>
:true)
that is my current code, how do iu alter it so that the results are then
sorted by highest score first?
2003 Oct 20
1
Getting a list of all possible smb mounts (and bug report on smbtree)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Message: 36
> Date: Sat, 18 Oct 2003 12:26:02 +0200 (CEST)
> From: Bernhard Rosenkraenzer <bero@arklinux.org>
> Subject: [Samba] Getting a list of all possible smb mounts
> To: samba@lists.samba.org
> Message-ID: <Pine.LNX.4.56.0310181208330.21409@dot.kde.org>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
>
2006 Jul 06
4
LVM Input/output error
Hi,
I recently installed centos for the first time and I like it!
Also, I just started working with lvm. The following warnings
are genertated whenever I run one of lvm commands on the external
usb disk (MyBook by Western Digital).
* What could be the source for those messages?
* Should I worry about them (writing into the created LV's
seems to work)?
* If yes, how to fix them?
[root
2006 Apr 07
2
Dealing with missing values in HeatMap generation
Hi,
I want to generate a heatmap for my data (in a matrix). However, the
data has some missing values (represented as blank).
I get the following errors (with the blanks and with blanks replaced by
NA and including the option rm.na = TURE):
> filename = "input_heatmap.txt"
> g <- as.matrix(filedata)
> fg <- rainbow(nrow(g), start=0, end=.3)
> gg <-
2007 May 18
4
No return status from mongrel upload progress (and thus no updates on the bar)
Hi all,
I''m using Boxroom (http://boxroom.rubyforge.org/) and trying to get
upload progress working. I''ve also been testing the sample code at
http://itblog.mcgeecorp.com/2007/5/15/mongrel-upload-progress-demo/.
I run a Mongrel cluster, and so am using drb (as per
http://mongrel.rubyforge.org/docs/upload_progress.html). Starting up
rails, I get lots of useful-sounding output:
2008 May 09
1
FLAC__metadata_get_picture()
Hi all!
I have a problem to get _all_ images from flac file.
I have flac file with 3 images inside ( FLAC__METADATA_TYPE_PICTURE )
How to get _all_ images with bool FLAC::Metadata::get_picture() func?
This function is wrapper FLAC__bool FLAC__metadata_get_picture().
flac-1.2.1/src/libFLAC/metadata_iterators.c:
...
285 FLAC_API FLAC__bool FLAC__metadata_get_picture(const char *filename,
2016 May 13
2
4.4.3 on CentOS 6: no guest login
I have built 4.4.3 on CentOS 6, with a fairly minimalist smb.conf,
provisioned the domain as per the wiki [1], and cannot get past test one:
[root at frodo ~]# smbclient -L localhost -U%
Domain=[ADTEST] OS=[Windows 6.1] Server=[Samba 4.4.3]
tree connect failed: NT_STATUS_CONNECTION_DISCONNECTED
I can get output if I specify a username, and give a password, but
anonymous access seems to be
2020 May 27
2
Adobe digital editions?
On Wed, 27 May 2020 14:13:34 -0500
Jon Pruente wrote:
> A major issue is that it's not just reading the file, it's that ADE is
> needed to even authorize and fulfill the download. Then the possibility of
> DRM on top of that.
While I've never tried it, it's my understanding that you can use calibre to remove the drm encryption on a purchased ebook so you can read it with
1998 Apr 03
3
smbd not loading
When I try and load smbd I get this error in the log :-
bind failed on port 139 socket_addr=0.0.0.0 (Address already in use)
Closing connections 04/02/1998 14:02:01 Server exit (caught signal)
I am using Slackware 3 with Linux kernel 2.0.33, and
Samba-1.9.18p4. there is no problem with Netbios naming as I can see th
Linux machine in Network Neighbourhood and my samba client seems to be
2010 Dec 06
1
help getting data in correct format
>> Dear All,
>>
>> I am having trouble getting my data into R as i need it! I am used to using read.delim("") to open .txt files to do work on. The function i am using requires a matrix like the one below.
>>
>> My data is from excel and then saved as a txt file. I have tried the usual read.delim("") approach but the function doesn't like it, i
2003 Oct 14
1
strange behaviour with ssh / stdin
hi,
i noted the following strange behaviour using ssh and linux. this is
probably a low-priority bug:
# ssh -V
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
# uname -a
Linux funnyfarm 2.4.21-20.1.2024.2.1.nptl #1 Fri Jul 11 06:04:52 EDT 2003 i686 i686 i386 GNU/Linux
# echo Hello | ssh frodo 'cat'
Hello
# echo Hello | ssh frodo 'cat /proc/self/fd/0'
cat:
2007 Feb 28
5
How to use find_options in multi_search
Hello everyone,
I''m using multi-search to search in some attributes of two classes. One
of the attributes is the id of the customer. For each multi_search I
want to do a give the id of the current customer as a parameter. This
should only return results for the given customer.
My current code looks like this:
Folder.multi_search(@search_query, [Myfile])
I noticed in the API you can
2004 Feb 10
4
Auto mapping to windows home drives?
This could be quite simple but I don't know how to do it.
Does anyone know how I can automatically mount a users home drive (which is
located on a windows server) when they log in? Is there a pam module for
that?
Thanks very much,
Sapan
2014 Oct 15
1
syslinux efi configuration file name proposal
On Wed, Aug 27, 2014 at 2:08 AM, Prof. Dipl.-Ing. Klaus Knopper
<syslinux at knopper.net> wrote:
> Apparently, the rename of ldlinux.e32 to ldlinux.e64 for the 64bit
> variant is already in the mainline git, so the only change left for
> automatically chosing a different config file is the tiny patch attached
> here, which will
>
> - prepend syslnx64.cfg to the config file