similar to: Preventing data being written to the database on error

Displaying 20 results from an estimated 20000 matches similar to: "Preventing data being written to the database on error"

2007 Jul 25
5
set_default_values rocket science - continuing after_initialize/after_find misfeature
Just starting a new thread so that it''s easy to follow. I just submitted a patch at trac to add a new class method called "set_default_values" ( not a great name I think ), which lets you do all kinds of crazy stuff with setting default values. This ticket is at http://dev.rubyonrails.org/ticket/9093 and example pastie is at http://pastie.caboo.se/81925 It also lets you make
2007 Dec 04
6
Problem preventing double click with ajax submit button
For a regular form I use the :onlick option to disable the submit button after the first click in order to prevent double clicks (leading to double entries): <% form_tag :action => ''create'' do %> <%= submit_tag "Create", :onclick => "this.disabled=true,this.form.submit();"%> I''m having trouble using this same method to prevent
2011 Apr 12
1
How to rebuild database from scratch without preventing searches
I have a process which wants to recreate a database nightly (it takes ~10 minutes, and is much faster than trying to figure out what to remove and add from the existing contents). However, opening the database with the flag DB_CREATE_OR_OVERWRITE destroys the existing database and prevents searches from taking place until the rebuild process is finished. We'd like to rebuild the database
2006 Apr 23
5
Newbie Ajaxy Question
Hi all, I''ve been trying to figure this out by myself and while I feel I''ve made some progress, I feel kind of stuck. Let me see if I can explain what I''m trying to do. I have a very simple form with a text box and a text area. The text in each of these will eventually make it into a row in a table in my database. For now, the value in the text box represents a
2015 Apr 17
0
Why is CDR(recordingfile) not being written to the database despite being set in the dialplan?
I am using Asterisk 11.17.1 with my program that uses AMI Originate calls to generate a bunch of calls for a callcenter. The PBX configuration is handled by FreePBX 2.11. I want to understand the dialplan behavior in order to figure out why the CDR(recordingfile) is blank on the CDR records despite the dialplan setting it. My program generates the calls by setting Channel=Local/NUMBERTODIAL at
2012 Jul 16
1
[LLVMdev] Preventing pure function declarations from being removed
Hi all, is there any way to mark a non-referenced function declaration as "used" in any way (by using the C++ code generator) so that it will be ignored by the stripDeadPrototypes and globalDCE pass (and any other pass that possibly might remove seemingly unused functions)? Basically, my modules have a set of function declarations (without an actual body, just a global mapping
2012 Jul 18
0
[LLVMdev] Preventing pure function declarations from being removed
Hi Duncan, > Hi Marcus, > >> is there any way to mark a non-referenced function declaration as "used" >> in any way (by using the C++ code generator) so that it will be ignored >> by >> the stripDeadPrototypes and globalDCE pass (and any other pass that >> possibly might remove seemingly unused functions)? > > try adding it to the llvm.used
2006 Nov 17
4
set empty values as null in the database
Le''s say that I have a table called people and the column middle_name is nullable. If the user enters say blank or empty space then in the database it is recorded as empty space. I would like in all my models all empty spaces to be recorded as null. I guess I can write a plugin which will do so for all the models but I''m sure something like that should already be existing.I
2017 Jul 10
2
[ThinLTO] Making ThinLTO functions not fail hasExactDefinition (specifically preventing it from being derefined)
Hey all, I'm working on adding interprocedural FunctionAttrs optimization ( http://llvm-cs.pcc.me.uk/lib/Transforms/IPO/FunctionAttrs.cpp) to ThinLTO so it does something similar to what LTO is doing ( https://bugs.llvm.org/show_bug.cgi?id=33648). I've hit a problem with how the FunctionAttrs optimization expects linkage types. In ThinLTO since the linkage type is set to External or
2006 Jul 14
2
Per Session Database Connection
Hi, I am creating a Rails front-end for a legacy application. For this application the username and password for the database must be provided by the user. i.e. each session needs a separate connection to the database using the credentials of the user logged in to that session. Does anyone have any idea where to even start? It seems like Rails won''t boot without a database
2017 Jul 11
2
[ThinLTO] Making ThinLTO functions not fail hasExactDefinition (specifically preventing it from being derefined)
Hi Charles, On Tue, Jul 11, 2017 at 12:27 PM, Davide Italiano <davide at freebsd.org> wrote: >> I'm working on adding interprocedural FunctionAttrs optimization >> (http://llvm-cs.pcc.me.uk/lib/Transforms/IPO/FunctionAttrs.cpp) to ThinLTO >> so it does something similar to what LTO is doing >> (https://bugs.llvm.org/show_bug.cgi?id=33648). I've hit a problem
2013 Mar 03
6
preventing apache from being a mail relay
I am trying to recall back at least 2 years, and my notes are poor, and my searching appears to be worst... Seems I recall that last when I set up my apache server, the spammers were posting to it so it would send out the spam on port 25. There was some conf that I did to block this, but I did not document it, and I can't find any reference to this. I don't think my memory is that
2020 Jun 09
5
Preventing function call from being optimized out in LTO
Hello, I am adding function calls to an LLVM link-time optimization (LTO) pass, using the IRBuilder::CreateCall method. I want these calls to remain in the final x86 binary at any optimization level, but on levels -O2 and -O3, some of these calls are being optimized out. So far, I've tried adding each function in the program (excluding LLVM intrinsics) to the llvm.used set, and I've also
2009 Nov 04
1
Incremental file list is being sent, but no new files are being written
Hi all I am trying to backup via ssh the complete contents of a hard drive, but I'm running into some trouble. The source is an ext3 drive on an Ubuntu 9.10, and contains various files with sizes ranging from several KB to 5GB to a total of approximately 250GB. The source is a modified LaCie NetworkSpace 500GB on which I've opened a new root user and installed tools such as ssh and
2018 Dec 05
2
how to use a database (was: figuring out what happened to a call)
On 12/05/2018 01:19 PM, Antony Stone wrote: > On Wednesday 05 December 2018 at 13:04:57, hw wrote: > >> On 12/04/2018 07:07 PM, Antony Stone wrote: >>> On Tuesday 04 December 2018 at 16:11:39, hw wrote: >>>> On 12/01/2018 05:30 PM, Marcelo Terres wrote: >>>>> Queue_log >>>> >>>> Thanks! >>>> >>>>
2006 Nov 02
3
Safe to read index while it is being written to?
Is it safe to open the index to do searches on while another process is writing to the index? -- Posted via http://www.ruby-forum.com/.
2007 Dec 14
0
Reading a file being written to
Can you read from a file that is currently being written to in an Samba environment? I tried it on a Buffalo Terastation and a Windows NT File server and got the message "file in use" every time. Imagine recording a TV show from 8pm to 9pm onto an Samba server. If I come home at 8:15, can I start watching it immediately, or do I have to wait until 9:00?
2005 Jun 16
1
using rsync on files that are being written to
I know people who shutdown the services on their *nix box before backing up with rsync. this is to avoid accidentily backing up files that are being written to, which might result in a corrupt backup of that file. is this even a concern? if it is, what methods are available for a small shop to schedule regular backups but still maintain uptime? thanks!
2006 Mar 17
2
Validation not working.......
HI, I am new to ruby. I am developing small application in ROR. Following is code for my rHtml , Controller & Model. PLease see it & let me know why data in form is not get validated & also how to check for whether data i have entered in form (username) is present in database or not? (Like Login form). following is my code:- ---index.rhtml-------- <%= start_form_tag(:action
2007 Feb 23
1
How to make Rails send a file that is being written
I''m trying to build a simple proxy to Amazon S3 that would allow a client to request a url that gets mapped to a S3 Object by Rails and streamed back to the client. For S3 integration, I use the highly recommended gem AWS::S3 (http://amazon.rubyforge.org/), and to send a file, I simply use the send_file function. The concept works BUT the I can''t get the file to be sent as