header

Data is not sent with http response in my http server

Hi, I'm working on making an HTTP server for my class. But, the returned file is not being displayed by firefox. I construct a response header and put in the right content-length of the file I want to send, then I send the response headers with a call to send(). Next I use send() again to send the file, why is firefox not displaying t...

Difference between implementing a class inside a .h file or in a .cpp file

Hello, I was wondering which are the differences between declaring and implementing a class solely in a header file, compared with normal approach in which you protype class in the header and implement in effective .cpp file. To explain better what I'm talking about I mean differences between normal approach: // File class.h class MyCl...

Android NDK: Autogenerate function declarations?

I am trying to use a pre-existing native C library in my android project.. The library builds just fine with the NDK tools... Now what I've come to understand is that I cannot just call into the library, but my library needs to include jni.h and add specific function declarations, like for example: JNIEXPORT jint JNICALL Java_com_MultP...

How to read HTTP response headers from web service response?

Hi, How can i read HTTP response headers from web service response in C#? Best Regards, Guy Bertental ...

C#: How can I create a header in a table for each new page with Word interop?

I am trying to create a table with a header. I want this header to be repeated for each new page that the table takes. How can I do this in C# with Word 2007 Interop? ...

Objective C Printing: How to set header content?

Hi there, I want to print a specific NSView. When I do this, I wish to add content to the header of the print page. e.g. If the NSView contains a picture of a cat, when I press print, print preview shows up with the picture of the cat. I want the print out to be a picture of a cat, with the caption: "Cat" in the header, which I do not...

Questions About The Foundation And NS Library

Hello, I'm a Objective-C learner and I don't have a Mac, then I need to use my Linux with GNUStep, but if I develop my own program on it, the end-user will need to have GNUStep(like .Net) installed and then I started thinking how can I solve this, then I had an idea: "Create this from scratch!", but now to do this I need to know: What ar...

secure email form, header injection query

I'm using the following to clean up input from my contact form: <?php $name = strip_tags(stripslashes($_POST['name'])); //this is repeated for several other fields, then: if(isInjected($name)) { die(); } /* see isInjected function below */ // send the mail ?> I'm using this function: <?php /* function from http://phpsense.com/p...

Date formatting inside the uitableview section heading, PLEASE HELP

Let me start off by saying Im VERY new to iphone development, but Im trying really hard to learn, so any help any of you professionals out there are willing to share is greatly appreciated! So I have a question that would be SO awesome if someone could answer for me. I am studying up more one core data and have been using the core data b...

Proper layout of a C++ header file

What is the proper layout of a C++ .h file? What I mean is header guard, includes, typedefs, enums, structs, function declarations, class definitions, classes, templates, etc, etc I am porting an old code base that is over 10 years old and moving to a modern compiler from Codewarrior 8 is proving interesting as things seem all over th...

What headers does a SWF file send when requesting data from a URL

When requesting data with: <param value="data-file=http://url-to-my/json.script" name="flashvars"> via an SWF file, what request type would "http://url-to-my/json.script" receive. It doesn't seem to be a "xmlhttprequest". Is it the same as a request from a browser? ...

Repeating the Header of a DataList

I'm using an asp:DataList. I have the HeaderTemplate and the ItemTemplate, and those both work fine. However, I'd like to be able to repeat the Header above each Item, rather than just once at the top. Is this possible? Would I be better off using a different control? Can I make this configurable (ie, can it be turned on & off in th...

In which header file c++ STL hash function object is declared?

If I want to use the hash function object provided in STL, which header file I should include on Linux? e.g. hash Hf; ...

NSDateFormatter: I Don't want the time!

I am playing around with the coredatabooks source code example from the apple website, or here. I am trying to set the books copyright date attribute value to replace the author as the tableview section header, and I need the date value to be static, meaning I don't need the time, otherwise all of the date values are different, and no tw...

Clarification on a header without #includes

Hi all :) I was reading some code from the Doom 3 SDK ( in a VS solution ) when I found a header like this: #ifndef __PLAYERICON_H__ #define __PLAYERICON_H__ class idPlayerIcon { public: idPlayerIcon(); ~idPlayerIcon(); ...... // omitted public: playerIconType_t iconTyp...

Xcode header files

This is a simple question - or maybe not - how do I add external headers to my project (C++ command line tool) in Xcode? How do I also add external dynamic libraries to it? any help greatly appreciated. I am new to xcode. Max. ...

Consume RESt API from .NET

Hi All, I am trying to consume REST API from my .NET Application. This API's are all written in JAVA. I am asked to pass the authentication credentials vis HTTP headers. How can I pass these authentication credentials like 'DATE', 'AUTHORIZATION' and 'Accept' via HTTP headers. Which class in .NET can I use to accomplish this task. Can...

OpenCV C++ error in Xcode

I have built the OpenCV libraries using the cmake build system as described here and have added the header, '.a' and '.dylib' files to my terminal c++ project. However when I run the code below (got it from http://iphone-cocoa-objectivec.blogspot.com/2009/01/using-opencv-for-mac-os-in-xcode.html), it gives me the errors below. Has anyone...

WPF DataGrid: ColumnHeaderStyle ContentTemplate is not shown in full height until after resizing

This might be a bug in the WPF Toolkit DataGrid. In my Windows.Resources I define the following ColumnHeaderStyle: <Style x:Name="ColumnStyle" x:Key="ColumnHeaderStyle" TargetType="my:DataGridColumnHeader"> <Setter Property="ContentTemplate"> <Setter.Value> <DataTemplate> <StackPanel Orientation=...

C++ : How to include boost library header in VC++6?

I used this guide to rebuild the boost library in VC++6 under windows XP. But is having problems trying to include the header files. By default, the boost library makes use of point 1 as follows to declare the header files. But if I used point 1, I get "fatal error C1083: Cannot open include file...". I tried using point 2 to declare and...