Displaying 20 results from an estimated 10000 matches similar to: "Call a script after every file modification"
2004 Oct 04
1
Problem with incremental backup - copies instead of hard links
Hi there,
I'm using this version of rsync:
localhost:~ mzehetle$ /usr/local/bin/rsync --version
rsync  version 2.6.0  protocol version 27
Copyright (C) 1996-2004 by Andrew Tridgell and others
HFS+ filesystem support for OSX (C)2004 Kevin A. Boyd
<http://rsync.samba.org/>
Basically incremental backup (--link-dest option) works with a 
destination on my local volume but not with a
2006 May 18
3
access to an ApplicationController property from a view
Hi there,
How is it possible to get access to an ApplicationController property 
from a view?
Consider this (simplified) situation:
class ApplicationController < ActionController::Base
   def folder_id
     @folder_id = params[:id]
     return @folder_id
   end
end
class FolderController < ApplicationController
   def show
     @folder = Folder.find_by_id(folder_id)
   end
end
So far,
2006 Mar 13
6
:dependent => :destroy
Hi,
There is something I don''t understand about :dependent => :destroy. I 
hope someone can help me. Consider this code:
class Folder < ActiveRecord::Base
   has_many :myfiles
   has_many :folders
   has_many :group_folders, :dependent => :destroy
   validates_uniqueness_of :name, :scope => "folder_id"
   validates_presence_of :name
   before_destroy
2008 Dec 04
2
Cucumber and Rcov
I am now trying to get rcov to work for me, without much success.  I
stole the rake task code from the cucumber site:
desc "Run all features"
task :features => "features:all"
task :features => ''db:test:prepare''
require ''cucumber/rake/task'' #I have to add this -mischa
namespace :features do
  Cucumber::Rake::Task.new(:all) do |t|
   
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
2006 Jan 16
4
Question about self and private
Hi!
There''s something I don''t understand yet about static/private methods. I 
hope someone can explain...
E.g.:
class SayHello
   def hello(who)
     puts "Hello, " + who + "!"
   end
   def self.say(words)
     puts words
   end
end
hello = SayHello.new
hello.hello "World"	: Hello World!
hello.say "hi"		: Error
SayHello.say
2006 Jan 11
3
Just update 1 field
Hi All,
I wonder how I can get rails to update just one field when I do Myfile.save.
Right now this happens when I do a Myfile.save:
UPDATE myfiles SET `folder_id` = 0, `filesize` = 1, `data` = 
''2f7573722f6c6f63616c2f6d ... f7061636b65743d33324d'', `user_id` = 0, 
`date_modified` = ''2006-01-11T23:33:57+0100'', `filename` = 
''mysqlscripts.sql''
2006 Feb 23
13
Check if a saved user''s name is admin
Hi all,
I have a question about this method in my User model:
# Returns true for the (saved) user called "admin"
def is_the_administrator
  true if save and name == "admin"
end
The method returns true if the user''s name is admin. However, I only want to 
return true if the state of the object is "saved", so I call the save method 
first.
I''m
2009 Jan 19
3
Radeon 4800 or Ati in general viable for wine?
Longtime lurker and user of wine, but I'm about to replace my old nvidia card with a newer model and seeing as Ati is open sourcing their drivers. I was wondering if I should get a 4800 card, but only if the fglrx or x86-radeon driver is up to the task :)
Like can it run direct3d 9 games like Eve?
How about 2d performance in games like fallout 2 and planescape torment?
2005 Oct 23
12
Showing a neat error message
Hi All,
I''m trying to prevent users from deleting a folder that has contents 
like this:
class Folder < ActiveRecord::Base
	has_many :myfiles
	has_many :folders
	belongs_to :folder
	validates_uniqueness_of :name, :scope => "folder_id"
	
	before_destroy :dont_destroy_folder_with_contents
	def dont_destroy_folder_with_contents
	  if Folder.find(id) != nil ||
2012 Oct 18
1
GlusterFS failover with UCarp
Hi,
we've successfully configured GlusterFS mirroring across two identical 
nodes [1].
We're running the file share under a Virtual IP address using UCarp.
We have different clients connected using NFS, CIFS and GlusterFS.
When we simulate a node failure, by unplugging it, it takes about 5 
seconds for the CIFS and GlusterFS clients to refresh the connection and 
continue operation. The
2015 Mar 23
2
Dovecot Oy merger with Open-Xchange AG
To Timo and the Dovecot guys - congratulations!  I'm sure this merger with OpenXchange is going to provide you with a lot of resources and opportunities.
As a longtime user of dovecot, I do have a few concerns.  I wonder if you can answer some questions for me.
You say that OpenXchange really likes open source and shares your plans for the future.  Is this a commitment that future versions
2010 Aug 16
1
Split number of imap-login and pop3-login processes
Hi All,
Is there a way to define the number for imap-login processes and pop3-login processes separately?
My mail server is getting more IMAP clients and much less POP3 clients these days and it continues to run out of authentication processes.
I have been increasing login_max_processes_count the last couple of days and I noticed that it's split between IMAP and POP3.
All 129 imap-login
2007 Feb 06
2
Which method to use to get content from index with a_a_f?
Hi everybody,
After staring at the a_a_f API for quite sometime now, I decided it''s
time to ask...
Which method should I use to get content from the index without using
highlight? Consider the following controller action:
def preview
  if params[:search].blank? # normal case
    @text = @myfile. # which method do I use here to get the :text from
the index???
  else # if we come from
2008 Feb 27
1
Danish callerid on a x100p card
Hi
I've got a cheap card from x100p.com for my pots line. I haven't found a
definate answer if it is possible to get danish(DTMF without signaling
before it). I have had a look at bug #9 but that is
written longtime ago.
I am running zaptel 1.4.7 and asterisk 1.4.14 BRIstuffed 0.4.0-test4 both
from the xorcom debian packages. I believe they should contain some kind
functionality for DTMF
2016 Dec 07
1
Kernel Panic at Boot
John R Pierce wrote:
> On 12/7/2016 12:09 PM, Ken Smith wrote:
>> Gigabyte Technology Co., Ltd P43-ES3G
>
> thtas a rather old motherboard, like circa 2008?    my longtime 
> experiences with consumer desktop grade hardware suggest that at 5 
> years, 50% of them go flaky.   that one is about 8 years old now.
>
>
I know its old. I have quite a few (5) PCI video capture
2020 Oct 19
2
Is there any way to check the class of an ALTREP?
Benjamin,
You happened to send a link which points to the OP's own package :) I 
think Jiefei would like to know how one can "officially" determine if an 
arbitrary ALTERP object belongs to a class that he owns.
Regards,
Denes
On 10/19/20 10:22 AM, Benjamin Christoffersen wrote:
> It seems as if you can you use the ALTREP macro as done in this
> package:
2020 Oct 17
2
Install Icecast server with SSL - please help
I tried that, but i'm not sure what´s supposed to happen after "make
install" is done?
Making install in examples
make[1]: Entering directory '/home/pi/icecast-2.4.4/examples'
make[2]: Entering directory '/home/pi/icecast-2.4.4/examples'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]:
2015 Jul 28
1
[LLVMdev] [IMPORTANT] Mailing list Move & Downtime (Tuesday, August 4th)
On August 4th (~9AM PDT, exact time TBD), all LLVM related mailing lists will move to a new mailing list server and will change to listname at lists.llvm.org. LLVMDev will probably change to LLVM-Dev to preserve consistency.
This means a couple of things:
1) All mailing lists will be down on August 4th. We anticipated at least the full day of downtime (hopefully less if things go well).
2) SVN
2020 Oct 25
2
Socket is busy: Success?
Both icecast and ices are on the same server.
Where shall i change to "localhost"?
/Daniel
Den sön 25 okt. 2020 kl 18:49 skrev Kwame Bahena <informatux at gmail.com>:
> Is your icecast server in another server?
> If not, if you are running ices on the same server as your icecast, try
> using localhost instead of "bananradion.bananklubben.se"
>
>
>