paste

Paste two text lists (one list a file) into one list separated by commas

An example of the process/output would be: File1: hello world File2: foo bar Resulting file after concatenation: File3: hello;foo world;bar For a large list of non-predictive text (no-wild cards - but lines are aligned as above). I cannot figure out how to do this with the paste command under Ubuntu. ...

starting my own threads within python paste

I'm writing a web application using pylons and paste. I have some work I want to do after an HTTP request is finished (send some emails, write some stuff to the db, etc) that I don't want to block the HTTP request on. If I start a thread to do this work, is that OK? I always see this stuff about paste killing off hung threads, etc. Will...

vba excel how to paste values without font/color/bg color formatting

Got a macro to copy a summary row from each of a series of worksheets. Summary row is specially formatted with font/font color/bg color, but when pasted into the 'sumamry sheet' needs to just paste values without formatting. For LoopIndex = StartIndex To EndIndex ' start in a task sheet Sheets(LoopIndex).Select CopiedCells ...

Any way to add paste multiple row data into an InfoPath repeating table?

My users use Excel to come up with some ad-hoc lists of buildings we own. I'm building an InfoPath form to manage contracts on those buildings. I'm looking for a way to let my users specify the buildings they need in Excel, and paste that list into the InfoPath form Repeating Table control. The table has multiple fields; the users woul...

Excel Macro Match and Copy/Paste

Hi! I'm trying to build an Excel macro that will allow me to do the following: I have two excel sheets. I want the macro to match all the values in Sheet1, col A against cell A1 in Sheet2. If it matches, copy cell Dx from Sheet1 to cell D1 in Sheet2, if it doesn't just move on to cell A2 in Sheet2 and do the same, but copy cell Dx fro...

How to read copied html text from clipboard with its html tags?

Hi, When a user selects and copies a text from a web page, I need to get that text with all the html tags included so that I can select some specific attributes etc. Is it possible to read it from .NET application? thanks ...

Is there a Perl substitute for the cut and paste shell commands?

I saw once a quick and dirty Perl implementation for the cut and paste linux commands. It was something like perl 'print "$F1"' filename to substitute a cut -f1 filename command Can someone tell me how was this Perl way? Specifically, I'm interested because this, unlike cut/paste, will work the same also in Windows environments. ...

python paste using global egg instead of local one

I'm using Paste to run a Pylons application. Is there a way to specify in my paste config file to use the egg from the current directory (the same dir as the config file) instead of looking in global site-packages? For example, right now the config file has: [app:main] use = egg:example This definitely looks to site-packages. This ...

paste.httpserver and slowdown with HTTP/1.1 Keep-alive; tested with httperf and ab

I have a web server based on paste.httpserver as an adapater between HTTP and WSGI. When I do performance measurements with httperf, I can do over 1,000 requests per second if I start a new request each time using --num-conn. If I instead reuse the connection using --num-call then I get about 11 requests per second, 1/100th of the speed....

Paste into SQL Server table via Management Studio 2005 and keep line endings

I cannot get this to work. I have opened a SQL Server Express table in SQL Server Management Studio 2005. When I try to paste a multiline text snippet into an NTEXT field it gets truncated to only include the first line. In Access these kind of things works, what should i do? ...

What is paste script ?

I'm trying to understand what paste script and paster are. The website is far from clear. I used paster to generate pre-made layouts for projects, but I don't get the big picture. As far as I understand, and from the wikipedia entry, it says it's a framework for web frameworks, but that seems reductive. paster create seems to be able t...

Paste text from Clipboard using button

I have control bar buttons Copy, Cut, and Paste and they suppose to copy/paste some text/objects from and to clipboard. Copy/Cut works fine. Paste using CTRL+V and context menu works fine as well. But when I'm trying to access Clipboard via control bar button click handler it throws error SecurityError: Error #2179: The Clipboard.gene...

Copy/Paste in windows forms with custom controls

I am writing a small app in C# using windows forms. I want to let my users copy and paste data around the app and there are some custom controls, for example one is a colour picker. Some of the default controls (well at least the TextBox) have a copy and paste functionality already. I want to have the same thing with my colour picker, a...

Wrap long lines in Vim?

I've noticed that gq does not work when I paste in a long line. For example, with a textwidth=72 and formatoptions=tcroqbnl, gq refuses to wrap this (in insert mode, I pasted the entire label contents, and then exited insert mode with ESC): <label for="contact_reason_1">To get assistance with or to confirm a tire replace...

Copy/Paste in JavaScript?

I know this question was asked like a million times by now, but I couldn't really find a good up-to-date solution. I've implemented my own menu to provide the user the ability to Cut, Copy and Paste into my WebApp. But I'm not sure how to actually work with the clipboard on Firefox, IE, Safari/Chrome. Thank you for your help. ...

ckeditor - onpaste event

Does anyone know how i can attach an onpaste event in CKEditor 3.x? I basically want to grab CTRL+V data and add few text to it and then add it to the editor. I have looked around but have not found a definitive answer. CKEditor forum is of not much help. Thanks a lot in advance. ...

TCP connection reset occurs when WSGI app responds before consuming environ['wsgi.input']

For our webservice, I wrote some logic to prevent multipart/form-data POSTs larger than, say, 4mb. It boils down to the following (I've stripped away all WebOb usage and just reduced it to plain vanilla WSGI code): import paste.httpserver form = """\ <html> <body> <form method="post" enctype="multipart/form-data" action="/"> <in...

Is there a way to capture x-browser paste events in mootools?

I want to capture when a user pastes data into a text input field using mootools event system. Anyone have experience of this? ...

Hook paste event to hidden textarea

I want to hook paste event for <input type="text"> and force this text to be pasted into hidden textarea (then I want to parse textarea's text and perform 'paste data from excel to gridview' action). Something like: $('#input1').bind('paste', function(e) { // code do paste text to textarea instead of originally targeted input }); ...

How to check Data Set In The Clipboard

Im copying data (text) to a clipboard but the data that I'm copying to the clipboard has a length of 30,500,000. This text is stored in a StringBuilder. These are may codes: StringBuilder sbText = new StringBuilder(); // Append text to sbText here!!! Clipboard.SetDataObject(sbText.ToString()); // In this line...