writing

How do you write a technical book?

I want to write a technical book. What is a good way/software to write it? What is important to me, I want to be editing text, not fighting formating. So no word like systems. Automatic syntax highlighting. Templatable. A way for users to leave feedback on specific parts of the book. Like Djangobook Not a wiki. (I don't think a wiki i...

What best practices do you recommend for safeguarding user data while writing to a file?

Let's say you have a program, like a text editor or a word processor, that writes to user-created files. What steps should be taken to guarantee the minimum risk of data loss or corruption in the face of crashes, out-of-space errors, sudden power loss, race conditions, etc? ...

What is the best (computer book) publisher to write for and why?

I have written a book for Packt publishing because they asked me too. Having gone through a year long experience with them I found that there were many pros and cons to having written for them - a fairly new publisher (upstart built from the staff that fell out of the Wrox buy out). Question: Having enjoyed the writing process quite a ...

Self publishing a programming book

I was wondering if any SO members have had the opportunity to self publish a programming related book. Do you have any advice regarding the process? I don't have any problem maintaining the structure of my book, table of contents, and actually pumping out the chapters. But what does one do for technical reviews, editing, proofing, etc...

Programmer Guide structure

Hello, I have to write a programmer guide. What is the general structure of the programmer guide? ...

Fastest way to write a large file on the iPhone?

This app i'm working on allows the user to take pictures, and saves them locally (a small thumbnail image via Core Data, and the full-size image in the documents directory). I'm finding that writing the image file to the documents directory takes a long time, though -- 8 seconds on my iPhone 3GS, even longer on my iPhone 3G and first-gen...

Visual Studio C++ 2008 Manipulating Bytes?

I'm trying to write strictly binary data to files (no encoding). The problem is, when I hex dump the files, I'm noticing rather weird behavior. Using either one of the below methods to construct a file results in the same behavior. I even used the System::Text::Encoding::Default to test as well for the streams. StreamWriter^ binWriter =...

Using Java PDFBox library to write Russian PDF

Hello , I am using a Java library called PDFBox trying to write text to a PDF. It works perfect for English text, but when i tried to write Russian text inside the PDF the letters appeared so strange. It seems the problem is in the font used, but i am not so sure about that, so i hope if anyone could guide me through this. Here is the i...

Is there a standout programming language to write a virus?

Hi, Just for curiosity; I wonder what is the most popular programming language to write a computer virus? May the most popular one could be considered as the most capable for manipulating vital data and sources? Thanks ...

Developing ebooks- software?

I've written a few documents for friends or blogs on software testing, job hunting and android development. I've been toying with the idea of producing some programming-related ebooks. However, developing these in Word or OpenOffice seems too amateurish compared to some of the fantastically produced books out there. I'm proficient in ...

overwriting a specific line on a text file?

Hello again,how do I go about overwriting a specific line on a text file in c?. I have values in multiple variables that need to be written onto the file. ...

Tool for improving your text in blog

I remember that I saw a tool for improving your language while blogging some time ago. It was included in an umbrella suite of tools some months ago. Does anyone rememeber the name of this umbrella tool suite and the name of the tool? ...

file reading and writting inside asp.net web application

Hi friends, I have developed a web application in visual studio 2008 its in asp.net c#. i have user a html page and one txt file in that application but both are not inside my application bot are outside so when i try to run the same application in another system i will get error because of that files. i want to include that fil...

How to write dot notation in xml file?

I am writing an XML file in C# using XmlWriter. I am able to write Elements using WriteStartElement() method and I can add attributes to this element using WriteAttributeString() method. But if I want to add attribute using dot notation then how to do that? <Element Attribute1="Value"> <Element.Attribute2> //How can i add attr...

C#: Whats the fastest way of reading and writing binary?

I'm currently optimizing an application, one of the operations that is done very often is reading and writing binary. I need 2 types of functions: Set(byte[] target, int index, int value); int Get(byte[] source, int index); These functions are needed for signed and unsigned short, int and long in big and little endian order. Here ar...

Bit aligned reading and writing from binary files

I would like to read and write n bits from/to binary files. For example, read the next n bits into an integer or the next n bits to a char. I need the data to be bit aligned and not byte aligned. Are there C++ libraries that allow me to do that? When I use ostream/istream, I seem to be restricted to using byte aligned data. This is no...

Designing software at complex levels?

Hi, I'm writing a software that appears to be quite a lot more complex than I realized earlier. It performs several sub-tasks, has a set of entirely different tasks and integrates itself to other applications, modules and programming languages. There are hundreds of todo's I need to do, and everything seems a bit too complex to think st...

Trying to write a video file using OpenCV

Hi , I’m trying to use OpenCV to write a video file. I have a simple program that loads frames from a video file then accepts to save them At first the cvCreateVideoWrite always return NULL. I got a answer from your group saying it returns separate images and to try to change the file name to test0001.png, this worked. But now the cv...

How to check whether your work on WP or WPMU ?

right now, i use global variable $table_prefix to differ whether i work on WP or WPMU. I need this global for my plugin. But is there any better way to check whether your pluggin is working on wp or wpmu ? any suggestion will be great ...

How to Format Code in Research Reports

I am currently writing a formal research report, and I'll be including code with this report. Question: Is there an accepted way of displaying code in research reports? I'm thinking both in terms of font, spacing, et cetera, and whether the code should be displayed inside the document, or in an appendix. The code will be JavaScript and...