attach

Linq sql Attach, Update Check set to Never, but still Concurrency conflicts

In the dbml designer I've set Update Check to Never on all properties. But i still get an exception when doing Attach: "An attempt has been made to Attach or Add an entity that is not new, perhaps having been loaded from another DataContext. This is not supported." This approach seems to have worked for others on here, but there must be ...

Session resume problem with Strophe attach and Ejabberd

I'm having a lot of difficulty getting strophe's 'attach()' function working. I am working on a social network where users will be surfing pages and at the same time keep their chat connection on. I don't want to reconnect/reauthorize on every page so as per this link (http://groups.google.com/group/strophe/browse_thread/thread/430da5e...

shell command to find a process id and attach to it?

Hello I want to attach to a running process using 'ddd', what I manually do is: # ps -ax | grep PROCESS_NAME Then I get a list and the pid, then I type: # ddd PROCESS_NAME THE_PID Is there is a way to type just one command directly? Remark: When I type ps -ax | grep PROCESS_NAME, grep will match both the process and grep command ...

What's the advantage for 'attach to process' compared with 'Start Debugging'?

Hi. I am new to programming. I know only Start debug before. Maybe start debug suit for some small application develop better. I found Visual studio IDE provide another method of attach to process for using. When & Why must I use the attach debugging? Such as multi-threading application debugging. Client/Service application debugging...

Attach file to mail using php

Hi all, I've created a form which contains an upload field file and some other text fields. I'm using php to send the form's data via email and attach the file. This is the code I'm using but it's not working properly. The file is normally attached to the message but the rest of the data is not sent. $body="bla bla bla"; $attachment ...

How to attach a file to an email using SQL stored procedure?

Can't seem to find much information about how to attach a file that's been stored as a BLOB as part of an email. I know you can attach files from the file system (C:\temp...) to email that are being setup in DBMAIL or custom stored procedures. However, I haven't seen any references to attaching something such as a PDF that's been store...

Drupal views add form to add record

Hi! I have some view which lists my module table entries. What is the most elegant way to attach a form below the view to add record? Waht I am trying to do know is: I created dedicated form in my module: function my_module_form_add_record($form_state) { form fields..... } I added to the view theme file: $add_form = drupal_get_form...

Sending a simple attached file via PHP mail() function

Hi all, I'm going to give this another try because my last question might have been confusing. I have a simple web form consisting of the following some inputs (for now, pretend i have two inputs, name and file input). I want the user to upload a document (if possible restrict to .doc, .docx, .pdf, if this is not possible to accomplish,...

Recover postgreSQL databases from raw physical files

Hello all, I have the following problem and I need to know if there´s a way to fix it. I have a client who was cheap enough to decline buying a backup plan for his postgreSQL databases on the main system that runs his company and as I thought it would happen some day, some OS files crashed during a blackout and the OS needs to be reins...

Copying data across databases with Entity Framework

Hey guys, I'm trying to use the entity framework to take data (nested relationships) from one DB and insert it into another. The idea is you download the data as an XML file and then upload it and it gets inserted into the new DB. The download to XML is simple: var BoroughQuery = from b in Context.Borough.Include("User").Include("Loc...

Why can't I step into/over Java source code in NetBeans Debugger?

I have a Java project which I am debugging in NetBeans (versions 6.8 and 6.9) and I am unable to step into or step over the code. I can only set breakpoints and then continue to the breakpoints. This is not very convenient. I'd like to be able to step through the code without setting breakpoints everywhere and running to them. I am a...

Cannot Attach or Add an entity that is not new??

I have read the various posts regarding this error message and have typically avoided this problem in the past, but still haven't been able to figure this one, why am I getting this error: System.NotSupportedException: An attempt has been made to Attach or Add an entity that is not new, perhaps having been loaded from another DataContex...

How can i prevent gdb from attaching to an exe?

I'd like to prevent would-be hackers from attaching to my binary on Linux systems. I see that ptrace DENY_ATTACH can be used on OSX. Is there such option that can be used on linux? How about on Windows? Thanks for any info! ...

Automatically attaching and emailing a zipped file to PHP with no User input

I have a program I wrote that when it has an error, it saves infomation of the error in a zip file in their TEMP directory, and then opens their browser to my PHP file. I want the PHP file to automatically go to a specific location (their temp zip) that will be passed via HTTP POST arguments and attach the zip folder to an email to myse...

Timeout by attaching a process in visual studio

Hello everyone, I am creating a webpage in Visual Studio 2005, and I attach that project to a process like Firefox or whatever. If I create a breakpoint in the code (for example to a click event), and I am too much time looking at the code, suddenly the process unattach and I cannot continue looking the code. Question: Does anyone know...

How can I use assign to change variables within a dataframe in R?

I tried to do something like this: x <- data.frame(1:20) attach(x) assign("x2",1:20,pos="x") However, x$x2 gives me NULL. With x2 I get what I want but it is not part of the data.frame. Attaching x2 to x manually would work in this simple case but not in the more complex one I need. I try to assign in a loop where I loop over...

What am I missing out? (An entity with the same identity already exists in this EntitySet.)

I am using DTOs and converters in an entity framwork scenario. I want to update an entity. So I put this statement: databasecontext.Tablename(s).Attach(entityobj); Whenever it gets here the program ends with this error: An entity with the same identity already exists in this EntitySet. I felt i could get around this by saying:databaseco...

Entity Framework 4 - AddObject vs Attach

Hi All, I have been working with Entity Framework 4 recently, and am slightly confused as to when to use ObjectSet.Attach, and ObjectSet.AddObject. From my understanding: Use "Attach" when an Entity already exists in the system Use "AddObject" when creating a brand new Entity So, if i'm creating a new Person, i do this. var ctx = ...

Attach to process WCF service from another machine

I'm trying attach to WCF service which is published at Windows Server 2008. I have this WCF at my machine with XP. I have some weird errors at server and I want to attach to this wcf from server with Windows Server 2008. I can't find good tutorial aobut this issue. Could you recommend me good tutorial ? ...

Using VS2010 to debug code executed in Linqpad

I am trying to attach VS2010 debugger to Linqpad so that when I use classes from my c# project I can add breakpoints and have Linqpad execution halt. But this does not work, Linqpad happily executes and finishes without hitting my breakpoints. Now, I read a bit on Linqpad and it executes every "query" in its own process, does this in a...