copy-paste

How do you stop Copy/Paste in a flash form

I work for a medical transcription company and our medical transcription test we administer to our applicants is an older flash forms app that stops copy and paste by emptying the clipboard when you enter the form. This worked great in IE 7, but recently it has come to my attention that it does not work so well in Firefox. Or perhaps it ...

Paste an image from clipboard using java script

Hi all, How do we paste an image from clipboard into a custom rich text editor using javascript? (ctrl+c and ctrl+v or a snapshot). Has anyone used Ajax's rich text editor? Does pasting an image from clipboard to Ajax RTE work? Please do share your thoughts! Thanks! ...

Equivalent of ctrl c in command to cancel a program

Hello, I am running a long program in a remote machine, and I want to stop it, but my problem is that if I use the kill command then the program will exit without saving results. Normally what I do to finish the program is using ctrl c and in that case the program saves the results, but right now I am not in the machine that is running ...

Copy-paste code from Visual Studio, but paste UNFORMATTED code

Is there any way to force Visual Studio to copy selected code to the clipboard as unformatted text? When I am copy-pasting code into Word or more often Outlook I have to do it via Notepad to get rid of the formatting...there has to be an easier way! ...

Software for multiple copy/paste?

While coding I find that often it is needed to copy several parts of the code from one place to another (no, it is not copy/paste antipattern) and you end up switching back and force between files. Does anyone know any good windows-wide software (or Eclipse plugin) that can handle multiple copy/paste? So I can copy several different thi...

How to deal with duplicate code under Linux?

I'm looking for the best approach to dealing with duplicate code in a legacy PHP project with about 150k lines of code. Is this something best approached manually or are there standalone duplicate code detectors that will ease the pain? ...

Debugging a segmentation fault when I do ctrl c

I get a segmentation fault when I cancel my program. I am using gdb for debugging, the problem is that when I press Ctrl-C while I am debugging gdb does not cancel the program and do what it is supposed to do that is stop it. What I want is do the Ctrl-C and do not allow gdb to stop it. Is there any way to do this? Any other recommendat...

Vim copy and paste

My previous question seems to be a bit ambiguous, I will rephrase it: I have a file like this: copythis abc replacethis1 xyz qwerty replacethis2 hasfshd replacethis3 fslfs And so on... NOTE: replacethis1, replacethis2, replacethis3, ... could be any words How do I replace "replacethis1","replacethis2","replacethis3",.. word by "copy...

Ignoring ctrl-c

I'm trying to write a shell and I'm at the point where I want to ignore ctrl-c. I currently have my program ignoring SIGINT and printing a new line when the signal comes, but how can I prevent the ^C from being printed? When pressing ctrl-c, here is what I get: myshell>^C myshell>^C myshell>^C but I want: myshell> myshell> myshell>...

QTextEditor returns quotes as question marks in QT Ruby

When I copy and paste from a Word document into a QT TextEditor, It seems to look fine. But when I try to access the text using toPlainText or toHTML, it returns the text with all of the quotes (double and single) as question marks. Is there a way around this? I am using the qt4-qtruby bindings. ...

vim copy and replace text

Lets say that i have this text: $test = 'lorem'; $test2= 'ipsum'; and I want to copy lorem and paste into ipsum. I tried to do yi' on lorem and then went on ipsum and did ci' but that replaced my pastebin with ipsum. and my previous copy was lost. ...

vim pastebin workflow

Hello i have recently started using vim editor ( actually the plugin for netbeans ) and i am having trouble with the pastebin. What would happen is i would yunk something in, and then do some deletes with dd and so i lose my initial yunk content. So for me as a beginner with vim its very confusing that delete actually does cut. How do...

Clipboard management with websites

Hello, I would like to know how to put text into the clipboard like some popular sites are able to do. I saw a cross browser way to do it using flash, but it wont work with the current version? I have seen sites like www.photobucket.com and www.hulu.com have made copying to the clipboard automatic and cross browser. Please help. Thanks ...

How do you copy and paste rich text to and from the wxRichTextCtrl?

I am using wxruby but as far as I can tell its not only a ruby problem. If I try to copy and paste rich text into the wxRichTextCtrl it loses all the formatting. What am I missing? Is there any way to make this work? ...

Removing created temp files in unexpected bash exit

I am creating temporary files from a bash script. I am deleting them at the end of the processing, but since the script is running for quite a long time, if I kill it or simply CTRL-C during the run, the temp files are not deleted. Is there a way I can catch those events and clean-up the files before the execution ends? Also, is there s...

What's the best way of stopping users from copying and pasting text from a web app?

The site I'm working on displays some proprietary 3rd party data that's quite valuable. As such they want to stop people copying and pasting their information. They understand that, of course, there's nothing we can do to stop users just writing down info or printing it off, but they want to make it as difficult as possible for their dat...

How can I terminate a process started from an Ant task if the script is cancelled?

I've created an Ant task to compile VB6 applications. After some preprocessing of the source files, I start VB6.exe with the appropriate parameters using Process p = Runtime.getRuntime().exec(...); p.waitFor(); But when I press Ctrl+C while Ant is running, the script and my task are terminated but the spawned process is still runnin...

copy and paste from terminal with keyboard in linux (ubuntu)

Heyas So I'm trying to move away from using the mouse as much as I can (just a pet project). I know that in the terminal you can do c-k to cut a line and c-u to paste that line back into that same terminal, but I'm looking for something where I can copy a line in the terminal into gnomes clipboard so I can paste it into say a browser o...

Is there a way to completely disable copy/paste functionality in Visual Studio?

Hello, I'm looking for a way to completely disable the copy/paste functionality in Visual Studio (2005 if it matters). The reason behind this request is that I want to prevent myself from doing too much copy/paste while coding. Thanks to all for your answers! ...

copying from a tab delimited text file to itself

I have a tab delimited text file as so : name \t loan period \t loan amount John \t 5 years \t 6000 Sarah \t 5 years \t 6000 Jane \t 1 month \t 100 I'm looking to copy the lines where "loan period" = "5 years" to where "loan period" = "1 month", in order to show the comparison. The new lines would be appended at...