output

List the names of all the classes within a VS2008 project

Is there a quick & dirty way of obtaining a list of all the classes within a Visual Studio 2008 (c#) project? There are quite a lot of them and Im just lazy enough not to want to do it manually. ...

Capture console output for debugging in VS?

Under VS's external tools settings there is a "Use Output Window" check box that captures the tools command line output and dumps it to a VS tab. The question is: can I get the same processing for my program when I hit F5? Edit: FWIW I'm in C# but if that makes a difference to your answer then it's unlikely that your answer is what I'm...

How can I capture the result of var_dump to a string?

I'd like to capture the output of var_dump to a string. The PHP docs say As with anything that outputs its result directly to the browser, the output-control functions can be used to capture the output of this function, and save it in a string (for example). Can someone give me an example of how that might work? print_r() isn't a...

How to format Oracle SQL text-only select output.

I am using Oracle SQL (in SQLDeveloper, so I don't have access to SQLPLUS commands such as COLUMN) to execute a query that looks something like this: select assigner_staff_id as staff_id, active_flag, assign_date, complete_date, mod_date from work where assigner_staff_id = '2096'; The results it give me look something like this: S...

SQL Server: Is it possible to insert into two tables at the same time?

My database contains three tables called Object_Table, Data_Table and Link_Table. The link table just contains two columns, the identity of an object record and an identity of a data record. I want to copy the data from DATA_TABLE where it is linked to one given object identity and insert corresponding records into Data_Table and Link_T...

Print spinning cursor in a terminal running application using C

How would I print a spinning curser in a utility that runs in a terminal using standard C? I'm looking for something that prints: \ | / - over and over in the same position on the screen? Thanks ...

What is the simplest way to get indented XML with line breaks from XmlDocument?

When I build XML up from scratch with XmlDocument, the OuterXml property already has everything nicely indented with line breaks. However, if I call LoadXml on some very "compressed" XML (no line breaks or indention) then the output of OuterXml stays that way. So ... What is the simplest way to get beautified XML output from an instan...

Programmer's Notepad not Capturing Make Output?

I've been using Programmer's notepad for a while now, I find it to be an amazingly simple tool and I prefer to use it on projects where I know I don't need most of the standard IDE overhead. However, I've recently run into this problem when running the program on Windows Vista. I find that when running the built in "make" command, the o...

Need to do old fashioned input/output in Cocoa.

I am new to Cocoa and need to capture input using scanf to run a program that requires input of four variables one at a time. Is there any console, window class, canvas, memo class (as in delphi) that will llow me to do this. Earl Cenac ...

Copy Directory to Output Directory - Console Application .NET

Is there a way to copy an entire directory to the output directory in a console application in C#.NET? I know for files you can right click them, properties and mark copy to output directory. But I'm not going to do that for 20.000 files... Thx, Lieven Cardoen aka Johlero ...

cout Formatting

Hi, I'm pretty sure this is a simple question in regards to formatting but here's what I want to accomplish: I want to output data onto the screen using cout. I want to output this in the form of a table format. What I mean by this is the columns and rows should be properly aligned. Example: Test 1 Test2 ...

Convert Sandcastle Help File Builder Output (Web site) to MediaWiki format

I need to convert my Sandcastle Help File Builder (SHFB) output that is a Web site (HTML) to Media wiki format Find a way to transfer/include the converted pages directly into the MediaWiki we have set up. Any ideas? we have over 1000 pages of HTML files inthe Website (output of SHFB). I thought of using a html2wiki converter ....

How to capture and display output from a task via Windows CMD

Hi, I've got a PHP script which I'm running from a command line (windows) that performs a variety of tasks, and the only output it gives is via 'print' statements which output direct to screen. What I want to do is capture this to a log file as well. I know I can do: php-cli script.php > log.txt But the problem with this approach...

How to stop a PHP output buffer from going over the memory limit?

Most of my PHP apps have an ob_start at the beginning, runs through all the code, and then outputs the content, sometimes with some modifications, after everything is done. ob_start() //Business Logic, etc header->output(); echo apply_post_filter(ob_get_clean()); footer->output(); This ensures that PHP errors get displayed within the ...

AWK: redirecting script output from script to another file with dynamic name

Hi all, I know I can redirect awk's print output to another file from within a script, like this: awk '{print $0 >> "anotherfile" }' 2procfile (I know that's dummy example, but it's just an example...) But what I need is to redirect output to another file, which has a dynamic name like this awk -v MYVAR"somedinamicdata" '{print $0 ...

Do you generate nicely formatted HTML?

When using some server-side technology which is outputting HTML, do you try to format the output nicely? For example, adding line breaks and indentation? What are the pros and cons of either style? ...

Output single character in C

When printing a single character in a C program, must I use "%1s" in the format string? Can I use something like "%c"? ...

Where can I find the official description of Flex html-template and output folder structure?

I'm looking for an official Adobe page explaining the ins and outs of the various directories used in Flex Builder, namely html-template, bin-debug and bin-release. There's a lot happening in these folder: folders get created and deleted, files get copied around automatically, or not, as seems to be the case with AIR apps. I'm looking f...

Input and Output Stream Pipe in Java

Does anyone have any good suggestions for creating a Pipe object in Java which is both an InputStream and and OutputStream since Java does not have multiple inheritance and both of the streams are abstract classes instead of interfaces? The underlying need is to have a single object that can be passed to things which need either an Inpu...

Creating xml from with java

Hi folks, I need your expertise once again. I have a java class that searches a directory for xml files (displays the files it finds in the eclipse console window), applies the specified xslt to these and sends the output to a directory. What I want to do now is create an xml containing the file names and file format types. The format ...