Questions tagged [header]

This tag is deprecated because it lacks discriminating power. Please use a more specific tag instead, e.g.: html-heading, email-header etc.

This tag is deprecated because it lacks discriminating power. Please use a more specific tag instead, e.g.: , etc.

12624 questions
111
votes
9 answers

Where to put include statements, header or source?

Should I put the includes in the header file or the source file? If the header file contains the include statements, then if I include that header file in my source, then will my source file have all of the included files that were in my header? Or…
Mohit Deshpande
  • 48,747
  • 74
  • 187
  • 247
110
votes
20 answers

Remove Server Response Header IIS7

Is there any way to remove "Server" response header from IIS7? There are some articles showing that using HttpModules we can achieve the same thing. This will be helpful if we don't have admin right to server. Also I don't want to write ISAPI…
ram
105
votes
11 answers

X-Frame-Options Allow-From multiple domains

I have an ASP.NET 4.0 IIS7.5 site which I need secured using the X-Frame-Options header. I also need to enable my site pages to be iframed from my same domain as well as from my facebook app. Currently I have my site configured with a site headed…
user1340663
  • 1,051
  • 2
  • 7
  • 3
104
votes
5 answers

How to add an Access-Control-Allow-Origin header

I am designing a website (e.g. mywebsite.com) and this site loads font-face fonts from another site (say anothersite.com). I was having problems with the font face font loading in Firefox and I read on this blog: Firefox (which supports…
Mazatec
  • 10,573
  • 23
  • 65
  • 106
104
votes
9 answers

Python Pandas Replacing Header with Top Row

I currently have a dataframe that looks like this: Unnamed: 1 Unnamed: 2 Unnamed: 3 Unnamed: 4 0 Sample Number Group Number Sample Name Group Name 1 1.0 1.0 s_1 g_1 2 2.0 …
Jeremy G
  • 1,269
  • 2
  • 10
  • 14
102
votes
8 answers

Auto generate function documentation in Visual Studio

I was wondering if there is a way (hopefully keyboard shortcut) to create auto generate function headers in visual studio. Example: Private Function Foo(ByVal param1 As String, ByVal param2 As Integer) And it would automagically become something…
Ryan M
  • 1,571
  • 2
  • 14
  • 22
102
votes
16 answers

Splitting templated C++ classes into .hpp/.cpp files--is it possible?

I am getting errors trying to compile a C++ template class which is split between a .hpp and .cpp file: $ g++ -c -o main.o main.cpp $ g++ -c -o stack.o stack.cpp $ g++ -o main main.o stack.o main.o: In function `main': main.cpp:(.text+0xe):…
exscape
  • 2,057
  • 4
  • 21
  • 24
101
votes
6 answers

Where does Visual Studio look for C++ header files?

I checked out a copy of a C++ application from SourceForge (HoboCopy, if you're curious) and tried to compile it. Visual Studio tells me that it can't find a particular header file. I found the file in the source tree, but where do I need to put it,…
Brian Sullivan
  • 25,394
  • 22
  • 73
  • 88
99
votes
2 answers

Content Transfer Encoding 7bit or 8 bit

While sending email content, it is required to set "Content Transfer Encoding" header. I observed many headers of emails that I received. Some emails using "7bit" and some are using "8bit". What is the difference between these two? Which is…
mahi
  • 991
  • 1
  • 7
  • 3
98
votes
4 answers

Removing newline after

tags?

I am having a problem with removing linebreaks after the

tag, as everytime it prints, it adds a line break straight after it, so something like

Hello World!

Hello Again World!

prints out like this: Hello World! Hello Again…
Jack Wilsdon
  • 5,963
  • 8
  • 41
  • 81

97
votes
20 answers

How should I detect unnecessary #include files in a large C++ project?

I am working on a large C++ project in Visual Studio 2008, and there are a lot of files with unnecessary #include directives. Sometimes the #includes are just artifacts and everything will compile fine with them removed, and in other cases classes…
shambolic
  • 973
  • 1
  • 8
  • 5
95
votes
11 answers

iOS - 'MyProject-Swift.h' file not found when running Unit Tests for Swift

I am trying to setup Unit Testing for my project. It is an existing Objective-C app, that I have recently added one Swift class to. I have setup the 'MyProject-Swift.h' and Swift Bridging files (both 'MyProject' and 'MyProjectTest') and I am able to…
JimmyJammed
  • 9,308
  • 17
  • 74
  • 140
94
votes
3 answers

Add custom header in HttpWebRequest

I need to add some custom headers to the HttpWebRequest object. How can I add Custom Header to HttpWebRequest object in Windows Phone 7.
Nelson T Joseph
  • 2,403
  • 5
  • 35
  • 51
94
votes
2 answers

Difference between and

I noticed that there was (at least on Mac OS X) both a header and a header. man 3 string reveals that they contain different functions. Is there any reason for this?
icktoofay
  • 117,602
  • 18
  • 233
  • 223
93
votes
9 answers

How can I have a Makefile automatically rebuild source files that include a modified header file? (In C/C++)

I have the following makefile that I use to build a program (a kernel, actually) that I'm working on. Its from scratch and I'm learning about the process, so its not perfect, but I think its powerful enough at this point for my level of experience…
Nicholas Flynt
  • 6,608
  • 12
  • 47
  • 69