FAQ Database Discussion Community


Add Header and Footer Image in PDF using docraptor c#

c#,pdf,header,footer
I am using docraptor (https://docraptor.com/samples) for creating the PDF but I am not able to add Image as Header and Footer into generated PDF. I have below Html and I am using AJAX to call the API and passing below HTML as content to crate a pad but its not...

Import Header Error Swift when relaunching app

ios,swift,header
I imported a header file to a swift project. The header file contained inputs to Parse obj c libraries. Everything worked fine I tested with Parse no problem. When I saved then closed the project then re-opned I get a compiler error saying the Header file cannot be found. Here...

Sticky header jumps (Wordpress theme)

jquery,html,css,wordpress,header
I'm a complete beginner in HTML/CSS/PHP; I'm building a website from an existing WP theme that uses a sticky header. The theme is onetone. I've been able to heavily customize it, but can't find a solution to the problem the header is giving me. Here is the site: http://firstinkstudios.com/ When...

In JQGrid, How can I dynamically get the column header label when validating a filtertoolbar field?

javascript,jqgrid,header,label
I have a jqGrid with the filtertoolbar option enabled. For a column or columns in the grid, I want to validate the column in some fashion, e.g., if an input field exceeds a certain length, display an alert. When I display an alert, I want to display the column header...

What is it that forces a normal header to become a mobile header?

jquery,css,wordpress,header
If you're a Wordpress website developer/designer/programmer, you've probably run into this issue multiple times, like I have. There are several great premium Responsive themes that have a "desktop" header at <981px width and a mobile header at >980px width. The "desktop" header style is with the logo on the left...

Fixed secondary Nav bar after scrolling

javascript,jquery,header,navbar,sticky
I was looking through some of the posts and I found most my answer however it's still not working properly for me. http://jsfiddle.net/5n5MA/619/ The bar you see on the jsfiddle should be catching lower than the top because there is a fixed header that will be there on my main...

Avoid multiple definitions of headers

c++,header
I've spent like 2 days researching to avoid the multiple definition of some arrays and I found #ifdef and bla bla. So I tried to test my program with that #ifdef and it doesn't do anything, the debugger is still saying that there are multiple definitions. My programs works like...

How to use views / layouts in different modules

php,header,zend-framework2,footer
i am new to Zend Framework 2 and try to set up my first project. I set up the skelleton Application and now i try to create a "header" and "footer" that can be used in every module. As a header and footer i mean normal html text that includes...

error C2447: '{' : missing function header — Can't resolve this error, what's wrong?

c,function,validation,input,header
#include <stdio.h> #include <stdlib.h> #include <conio.h> #include <string.h> #include "bcio2.h" int error, x; char totalimpulse[80], averageimpulse[80]; void validate_number(); int main(void) { clrscr(); do{ printf("\nTotal Impulse delivered: "); gets(totalimpulse); validate_number(); } while (error != 0); printf("You entry %d was valid\n", x); getch(); return 0; } { //error C2447 clrscr(); do{ printf("\nAverage...

UDP payload length and packet transmission

networking,header,udp,packet,payload
I have data 1245 MB for trasmission via UDP over IPv4. For calculation of expected number of packet transmission from A to B then B relay to C, if the data transmitted in blocks of size 320bytes (i.e; payload = 320bytes), and header is 20 bytes, do we minus 20...

Why the difference of set-cookie after curl call in php

php,curl,cookies,header,web-crawler
I have two pages http://site.aspx?page=AddressData2&AddressID=298587,466579,66052 http://site.aspx?page=AddressData2&ShowPanel=EID second link meant to maintain the same cookie / session info that stored in the first link after it was accessed. I stored the cookie from the first one by: $cookies =array( $cookies[0]=>$cookies[1], "__utma"=>"250300755.603693956.1425821004.1425827777.1425854702.4", "__utmb"=>"250300755", "__utmc"=>"250300755",...

Allow access to protected file through PHP

php,curl,header,tar,gz
I have a set of tar.gz files inside a folder protected against http access via .htaccess. I wish to allow direct curl downloading of these files via http. I have done this to things like images by setting the header information to something like: $file='/some/file/protected/by/htaccess.png'; header("Content-type: image/png"); readfile($file); My question:...

Namespaces with multiple cyclic inclusion

c++,header,namespaces,include,forward-declaration
I've 3 classes that belong to a namespace "MyNS". "A" uses the "B" and "C", while both "B" and "C" use "A". Here are the structure of my headers: //mynamespace.h #ifndef SOMENAMESPACE_H #define SOMENAMESPACE_H namespace MyNS { class A; class B; class C; } #endif /*******************************************************/ //A.h #ifndef A_H #define...

how to make php' curl output all http requests (not only last) in case of redirect(s)?

php,curl,header,request,request-headers
Problem is that I can't get all sequential request headers with php curl. Curl returns only last request' headers. Please check php code below: $curl = curl_init('http://yandex.com'); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_BINARYTRANSFER, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_VERBOSE, true); curl_setopt($curl, CURLOPT_COOKIEFILE, ''); curl_setopt($curl, CURLOPT_HEADER, true); //include the header in the...

How does my code know which .dll it adress?

c++,dll,header
I have a sample.dll file and a corresponding sample.h header file. I add both into references and include the header in my c++ code. How this program knows that header file corresponds that particular .dll?

How to retrieve Ajax header in this asp.NET web api method?

c#,asp.net,asp.net-web-api,header,asp.net-ajax
[Route("api/test")] public IEnumerable<Tests> GetTests() { //Retrieve ajax header here?? return ClassTestfuntions.Testmethod(); } I have this asp.net web api method that i use to GET a list of rows from my db, im now also sending an header to this method within my ajax http get call but im not...

VBA Excel: Make header depend on filename

excel,vba,excel-vba,header,filenames
I've created a Macro that takes care of a document's lay-out, print properties, etc. Now I'd like to add a way to make the header depend on the filename. If there is a W to be found in the filename, the header should read "Weekly report", in any other case...

how to include header correctly in the opencl kernel

header,kernel,opencl
I am writing an opencl kernel with many helper function in the same .cl file. I want to package the helper function into a header file. I read the spec and see I should pass -I Dir in the clCreateProgram function call. I am still confused here. When I crate...

Determine .lib / .dll with header file

c++,dll,header,static-libraries
I have 3rd party library in my program. For example : #INCLUDE <3rdPartyHeaderA.h> #INCLUDE <3rdPartyHeaderB.h> int main(int argc, char** argv) { // some stuff } How do i know 3rdPartyHeaderA.h is using which particular .lib or .dll. I looked over 3rdPartyHeaderA.h but there is no information. I'm asking this question...

Place navigation bar at bottom of header

html,css,replace,header,navigation
I have made a navigation bar which functions as I want it to, the only problem is that the bar is placed on the top of my black header, where I would like it to be placed at the bottom of the header. How do I fix this? My code...

Keeping middle item centered horizontally

html,css,header
I'm trying to make my first custom header. I want the middle item (eg. the logo) to stay centered regardless of how much content is on either side. I tried using z-index but I believe that was wrong. HTML: .flex-container { padding: 0; margin: 0; list-style: none; display: -webkit-box; display:...

Passing defined type in main to header in C

c,header,typedef
So, as the title says, I am supposed to define a type in main file and, somehow, pass it to header. I tried to do that in any way, but I am out of ideas. I define it like this: "typedef int DATA;" and use it in header as a...

table header in pdf getting displayed using itextpdf5.1.1 but not in itextpdf5.5.3

pdf,header,landscape
We have generated a pdf in landscape mode with header and footer as part of the pdf. The header table and footer display fine in pdf using itextpdf5.1.1 jar. However when we update the jar to 5.5.3, the header table does not show only the footer shows. Below is the...

Is it possible create a “variable” header guard name in C?

c,header,c-preprocessor
fellow programmers, I'm new to the C preprocessor and have been recently trying to create a generic-like library in C (as an exercise), and I've come upon a little problem when creating header guards. All the preprocessor macros are set up so I can include and use my headers like...

include same header in 2 files .c

c,header,include
c files : Primitives.c, bloc.c and main.c And 2.h headers: bloc.h and primitives.h I want to work on Primitives.c and use bloc.c functions i made#include "primitives.h"in primitives.c In primitives.h I have : #ifndef PRIMITIVES_H_ #define PRIMITIVES_H_ #include "bloc.h" #endif In bloc.h : #ifndef BLOC_H_ #define BLOC_H_ ... #endif In primitives.c:...

Getting a mobile site to display as a desktop site, mine isn't, any ideas?

css,header,website,resize
Please take into consideration I am pretty new to programming and only know basic things! Currently, the header on my shop has not got a width set and works fine on the desktop site > feel free to visit to view www.Part-Box.com However, when the site is loaded on a...

How to insert type 0 block along with data in zlib

c,linux,header,zlib
I have to insert uncompressed data in between the compressed data bytes. Type 0 header in zlib allows me to do that. But How can i do that ? any clues ?

How to achieve the following in extjs

extjs,layout,header,panel
--Title------------------------------- | | | | | <Content> | | | |_____________________________________| How to achieve the above panel in extjs? Edit: It should look something like this: http://oi57.tinypic.com/eiw49.jpg...

How to declare extern class pointers in C++?

c++,pointers,header,extern
The following is declared variable in the cpp file but I get an error, so I have conducted a research and I found that I need to declare it in the header file. therefore how can I declare and an extern class pointer in the header file extern AnimationController* g_pAnimationController;...

PHP redirection not working on login page

php,session,header,syntax-error,session-variables
I have created a login.php page and used php code to check the credentials from database. If the entered credentials are incorrect it shows the error (thats perfect). But if the entered credentials are correct, it do not redirect to the index.php page. Kindly check the php code of login.php:...

read headers in html page with javascript

javascript,html,header
i want to read specific headers for current html page, this code below read all headers, how i can read a specific header having the tag? var req = new XMLHttpRequest(); req.open('GET', document.location, false); req.send(null); var headers = req.getAllResponseHeaders().toLowerCase(); alert(headers); This code return this result: date: mon, 11 may... last-modified:...

Class enumerator values cannot be passed as parameters to another class's function

c++,class,parameters,header,enumerator
In a program I'm making, I'm trying to get a certain class to pass data to another class's function as a parameter. This data happens to be a variable from the first class's member enumerator. But I'm getting a lot of errors. The code below is an example of what...

Full width header won't work

html,css,background,header,size
I am trying to make a full width (100%) header in black on the top of my page, the problem is that there is a border around it, which isn't blackwhat am I doing wrong? This is my code (html): <head> <link rel="stylesheet" type="text/css" href="mainColorTest.css" /> <title>Home Color Test</title> <div...

Why isn't any basic html content showing up in my body?

html,css,header
I've begun making a basic porfolio page and I'm starting with a simple header that I want at the top center of the white space of the page, and it seems to be hidden or just not there at all. Can anybody see what I'm doing wrong? Link to site:...

Adding headers to a export CSV file from StreamWriter C# application

c#,sql-server,csv,header,export
I have a C# application and this outputs into a CSV file some parameters from a SQL server. I have all the data inside separated by comma but I am missing the headers, do you have any ideas how to add the column headers? Here you have my code. SqlDataReader...

Namespace, class and compiler order…

c++,class,header,namespaces,source
I'm experiencing with OpenGL and I built and edit a Vector3 header that works perfectly that works with struct Vector3 but the problem starts when I tried create a Vector3 zero = Vector3(0,0,0) variable, the compiler doesn't let me build due to the compiling order so I copied a new...

“Cannot modify header information - headers already sent by” error.How to redirect upon successful submission of the form

php,header
My code below uses header for redirection upon successful submission of the form and checks if all error variables are set to NULL for redirecting to another php page. Please help me out as I have tried many ways but none seems to work for conditional redirection. <?php $proName=$proNameErr=$email=$emailErr=$catErr=''; if(isset($_POST["submit"]))...

Adding header and .cpp files in a project built with cmake

c++,visual-studio-2010,header,cmake,project
I have built a project using cmake and some libraries.I want however to add some header and .cpp files in the project which I am going to code.What is the easiest way to do it?Can I just create a .cpp and header files and then build again project in Visual...

Adding a preprocessor #define to change which headers are included and witch functions that is called

c++,function,header,preprocessor,multiplatform
So, I'm developing a game engine for Sega Dreamcast and windows, implemented my own library for the Dreamcast hardware which pretty much does the same thing as OpenGL for PC. Now, I want to merge the two builds into one project, so I doesn't need to dev to different project...

Passing MyClass defined in header as function argument to other file

c++,function,header,arguments
I've spent around an hour and couldn't find anything helpful on the Web. The problem is that I've got some files like a.h, b.h, a.cpp, b.cpp and main.cpp. In a.h I've got declared a container with attributes defined by myself. I would like to pass this container as and argument...

Changing The Current Time of a JavaScript Audio Object, When Getting the audio file from a PHP script

javascript,php,header,mp3
I have built a PHP script that sends *.MP3 files form outside the public_html directory, it works OK and sends the file. The problem is that I have a JavaScript script which should change the current time of the audio file (audioFile.currentTime = 25;). When I do this(Get the file...

PHP - Redirect back to previous page, without any form [closed]

php,html,redirect,header,website
On my website I offer the visitors 4 languages. I have a dropdown list at the top-right of the site where they can choose their language. When you press an item in the dropdown list you get sent to /en, /pl, /pt, /se (depending on which language you chose). Inside...

multiple header files redefinition error in C

c,header,redefinition
When including multiple header files #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include "stackADT.h" #include "queueADT.h" redefinition error occurs In file included from graphTraverse3.c:10: ./queueADT.h:10:16: error: redefinition of 'node' typedef struct node ^ ./stackADT.h:9:16: note: previous definition is here typedef struct node ^ In file included from graphTraverse3.c:10: ./queueADT.h:69:20: warning: incompatible...

Force Outlook to display from display name in header

email,header,outlook
I'm sending an email with .net SmtpClient and MailMessage. I set the from to be From: Something Else <[email protected]>. Note that [email protected] is a valid user on the domain and its display name is "My SMTP Relay". When I get the email in Outlook 2013, the email from name is...

Need to Print a Custom Header using obj-c

objective-c,header,nsprintoperation,nsprintinfo
I am creating an NSView and it prints fine with this piece of code : NSPrintInfo *printInfo = [NSPrintInfo sharedPrintInfo]; [printInfo setHorizontalPagination:NSFitPagination]; [printInfo setHorizontallyCentered:YES]; [printInfo setVerticallyCentered:YES]; NSPrintOperation *operation = [NSPrintOperation printOperationWithView:printView printInfo:printInfo]; NSPrintPanel *printerPanel = operation.printPanel; printerPanel.options = NSPrintPanelShowsPaperSize | NSPrintPanelShowsPageRange | NSPrintPanelShowsOrientation |...

header( 'Location: XXXXX );

header,location
If I have a php page that will save data from a form to the database then I want to forward that person to another place, do I have to put header( 'Location: URL ); at the end of the PHP script, or can I put it at the begining...

Wordpress: track down and remove pseudo element from wp_head [closed]

php,css,wordpress,header,styling
I have a site visible here where I have created a child theme in order to add a custom header and footer from the rest of the (non blog) website. I've removed everthing from the existing header apart from <?php wp_head(); ?> as this is required to call many other...

Append WAV Header in NAudio

c#,header,wav,naudio
I am trying to convert audio MP3 files to WAV with a standard rate (48 KHz, 16 bits, 2 channels) by opening with "MediaFoundationReaderRT" and specifying the standard settings in it. After the file is converted to PCM WAV, when I try to play the WAV file, it gives corrupt...

How to import efficiently values in Python from a list of global variables in a C header file

python,header,global-variables,readfile
I would like to find an efficient and quick way to load the values of a list of global variables from a C header file into Python. For instance, suppose I have the file header.h: /* comments */ int param_nx=2049; // comment int param_ny=2049; // comment double param_dt=0.01; // comment...

can I add an image header in navigation drawer layout

android,android-studio,header,navigation-drawer,expandablelistadapter
how can i add an image header to my navigation drawer layout like this one and this is my code : MainActivity.java package com.webileapps.navdrawer; import android.app.AlarmManager; import android.app.AlertDialog; import android.app.PendingIntent; import android.content.Context; import android.content.DialogInterface; import android.content.res.Configuration; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.v4.app.ActionBarDrawerToggle; import android.support.v4.app.Fragment; import...

C++ header file parsing

c++,parsing,header,structure
I need to parse a header file. My goal is to search the specific structure from the header file and extract the values and offsets of the structure variables. Can any one please suggest the best way for parsing the header file by omitting the comments and how to parse...

I want to include BluetoothManager framework in swift or objective-c, having problems

objective-c,swift,header,iphone-privateapi
I am having problems including frameworks in my project. I have downloaded the private APIs from https://github.com/nst/iOS-Runtime-Headers/tree/master/PrivateFrameworks This gives me header files to use with the framework already in xcode as I understand it. I have added the header files to the framework folder in xcode for bluetoothmanager. I have...

Visual C++: Cannot open include file

c++,header
I'm new here, so hello world! I'm working on a big project in C++. I'm using Visual Studio 2015 Ultimate RC. I got 2 projects in same solution: MyProgram and MyProgram.Input It is something like that: Mouse.h in MyProgram.Input: #include "SDL.h" class Mouse { public: int x, y; void Update();...

Add gesture for the imageView in tableView's Section Header

ios,swift,header,tableview,gesture
I want to implement a tableview with a header look like this. I want to implement a function that it segue to another view controller when i press the icon in this header. But it seems the gesture recognizer doesn't work. The recognizer would give no response at all The...

Header moves to the right because of padding

wordpress,header,center,padding
I want my header in Wordpress to center in the body-content. Now the Page-id Div has a padding of 40px both left and right. When adding my Header in the Header.php with a width of 960 + 40 + 40 = 1040, the Header is centered within the body-content, but...

query for two tables and have one column populate based on first match

sql-server,join,header,match
This is one of those things I am sure has been discussed 1000 times, but all my searches have come just short of me understanding what I need. Two tables: ledger and patient I want to select several columns from ledger, and add one column from patient based on two...

HTTP GET Server - Incorrect Header

c#,header
I am coding a HTTP Server, but when I create the header and send it. It returns: The connection to 127.0.0.1 was interrupted. My code to make the header is: string header = "\r\n"; header += "HTTP/1.1 200 OK\r\n"; header += "Content-Type: text/html\r\n"; header += "\r\n"; header += "<html><head><title>Test</title></head><body>Testing</body></html>"; ...

using a struct that is defined in another header

c++,header
I have 2 header files. My code is similar to the following: file1.h #include "file2.h" struct foo{ int one; }; //compiles if I add the following line. //struct bar; void dosomething(bar* param); foo* dosomething1(); file2.h #include "file1.h" struct bar{ int two; struct foo* two; }; //also error in compilation time...

Since there are some different headers of arches that NDK gave, which directory should I use

android,android-ndk,header
In the path $NDK_ROOT/platforms/android-[n]/, there are some sub-directories, such arch-arm, arch-arm64, arch-mips, can I simply use the header files of arch-arm/usr/include/? If the answer is yes, and then, does the compiler replace these headers for each platforms at compile time?

Aligning header in CSS with logo image

html,css,header
I have this header that i've been working on trying to align it correctly has been a nightmare for me. I'm a CSS noob and here is what i have so far i don't know if im just not calling the right css tags or something but i can never...

Loop for reading txt file with multiple headers and detail items in php [closed]

php,file,header,flat
I have the following incoming txt file: H header1 yyyy I detailofheader1 I detailofheader1 H header2 xxxx I detailofheader2 I detailofheader2 And the following code: $action = substr($line_of_text, 0, 1); if (($action == 'H') ) { //STORE IN VARIABLES ; } if (($action == 'I') ) { //store in variables...

Entire Headerline acts as link and not only where the text is

html,css,header
Sorry if I'm doing something wrong here, I'm kinda new to coding and this website. Anyways, here goes I want to implement ads into my website on the left and right of the centered "Logo" on top. However, the Header Logo acts as a link for the entire line in...

Build libfreenect on ubuntu

build,header,cmake,make,openkinect
I built the libfreenect (Open Kinect) library from sorce, but the libraries and headers are nowhere to be found. I have checked the paths specified in the configuration step, i.e., /usr/local, /usr/local/lib, usr/local/include. Has anyone faced this problem with libfreenect or any other library? ~/libfreenect/build\ $ cmake -L .. -DBUILD_AUDIO=ON...

How to fill entire calendar header from border to border?

html,css,background,header,fill
I can't fill all header, for example, with red color, because it's filling only in the area of text and I need to be filled from top left corner grey area to where days are starting. Here is html: <div id="calendar-container"> <div id="calendar-header"> <span id="calendar-month-year"></span> <div id="calendar-dates"></div> </div> </div> and...

Office 365 unified api Object reference not set to an instance of an object

php,curl,header,office365
I'm trying to use the new office365 unified api to query the users list and user file. I've created the application in azure management portal, and I gave the permission to the new api application (with the directory and files read) I've created both a client and a webapi application,...

Javascript Sticky nav scrollTo

javascript,header,sticky
so I got this sticky header that works great the only problem I have is when I press a link and the screen scrolls down it overlaps my content so I need to set a -47px height or something like that so the # it scrolls to get below the...

Different logo page wordpress

php,css,wordpress,header
I trying to display a different logo for a page in a wordpress site. I have the default Logo theme, and i want to insert a different logo for a page. here is the code that manage the logo display in the theme file: <a href="<?php echo home_url() ?>/" title="<?php...

Compiler error “name in formal parameter list illegal”

c,header,syntax-error,missing-data
I am writing a program in C, and I have some errors which I don't understand. Here is my main: #include "res.h" #include <stdio.h> #include <conio.h> int main(){ Kitchen List; char *name = "Productname"; float price = 5.6, qwan = 4; List.head = NULL; CreateProduct(name, price, qwan, &List); getch(); return...

Retrieveing curl header values in php

php,curl,header
am hitting an api call using curl and I am sending "X_ACCESSKEY" as header. Following is my code $url = "http://127.0.0.1:8080/user/getheader"; $data=array(); $data = json_encode($data); $ch = curl_init($url); curl_setopt( $ch, CURLOPT_POSTFIELDS, $data ); $headers = array('Content-Type:application/json','X_ACCESSKEY: 1234'); curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers); # Return response instead of printing. curl_setopt( $ch, CURLOPT_RETURNTRANSFER,...

R, importing as matrix data, calculate sums of rows but exclude headers

r,matrix,header
I'm a student and working on a project and I fail to do a basic thing in R and its very frustrating. data <- read.xlsx("dataset.xlsx",1, header=1) #Creating a matrix with headers. matrix <- as.matrix(data, row.names=1, col.names=1) Sum <- rowSums(matrix, na.rm = FALSE, dims = 1) The data looks something like...

write a simple c preprocessor

c,header,include,preprocessor
I am trying to write a program that immitats the functions of the C preprocessor. So my question is about expanding #include "header.h" statments. I have a FILE * pointer to the source file, so I need to scan for all the header files included in the source file, and...

Which C++ standard header defines SIZE_MAX?

c++,header,size-t,stdint
I'm working on an existing C++ codebase that happens to use SIZE_MAX in a couple of places. I did some refactoring and now SIZE_MAX is not defined in one of the modules. This problem appeared when Travis-CI attempted to build the project on Linux. It worked fine before I refactored...

Using “extern” command in c for sharing a variable [duplicate]

c,header,extern
This question already has an answer here: How do I use extern to share variables between source files in C? 13 answers I have the following codes: (1) extern_test.h: extern int give_something; (2) extern_test.c: #include <stdio.h> #include "extern_test.h" int give_something = 10; (3) extern_test2.c: #include <stdio.h> #include "extern_test.h" int...

How to enable CORS on DIVSHOT?

angularjs,wordpress,header,cors,divshot
I've been struggling with the Access-Allow-Control-Origin, I am using Divshot. In my mobile app I am displaying the posts of WordPress Account, when I test my app in the browser, I can see the posts, but once I open the app in Chrome for mobile, I am unable to see...

call a function from a header file

c,function,macros,header
I have a question regarding header files in C. I need to initialize a variable but depending on a condition. In order to evaluate that condition I need to call a function, see code below: I have the following function-like-macro in header.h where I need to call function(): #define func_like_macro()...

read HTK binary file in matlab

matlab,header,big-endian,htk
I run HTK package to extract MFCC features from my data. But now this features are stored in .mfc file format which is according to the htk book, big endian binary file. When I open these files in matlab there is some values which seems to be header values or...

HTTP2 headers compatibility with older browsers

php,header,compatibility,http-1.1
I heard today that soon the http2 protocol will be implemented in modern browsers. More information: https://en.wikipedia.org/wiki/HTTP/2, I know wikipedia is not the best resource, but it will give a little clue about what is going on. The question is: How will old browsers respond to http2 headers? I mean...

Issue with hiding header of Header Grid view

android,gridview,header
I have implemented HeaderGridView using this class. Upon search filter, i have to hide header view to be re-shown at removing search filter. I have tried many approaches, but issue is, when header is hidden, height of gridview is reduced to barely 20-40dp even for 10+ rows in grid view....

What headers must be processed in a specific order in an HTTP response?

http,header,httpresponse
I am trying to identify what three headers, if present in an HTTP response, always have to be processed in a specific order. I have done a good amount of reading in my text: Web Application Architecture by Shklar and Rosen, and I have done research online but my research...

Preprocessor directives in C : macros using __LINE__

c,header,preprocessor-directive
I find it difficult to understand the working of a macro defined with the help of preprocessor directives. The macro, TRXEM_SPI_BEGIN() is defined with the help of two preprocessor directives refereed from two header files. Firstly, I wish to state the declaration of the said macro. #define TRXEM_SPI_BEGIN() st( TRXEM_PORT_OUT...

Show page title for all pages when we print XSLT Report using XML

xml,xslt,header,report,title
I want to print report by having PatientID in all pages as heading or title so that it will print page title in all the pages when we print I'm not sure how to write XSLT for showing title in all pages Any help will be really appreciated Below is...

Prestashop remove the call us info header

templates,header,task-parallel-library,prestashop
In which module and tpl file I can delete the "call us" info and number phone that appear in the Header template I'm using? Using Prestashop 1.6...

Redirect header function to replace a poll “thank you” page already in place with PHP

php,jquery,html,function,header
I have a PHP Poll already in place, but I've set it up to have multiple (10), after each Poll submission instead of it saying "Thank You, blah blah"... I am wanting to go right to the next Poll questions. This is what I have. The poll already has a...

C++ API implementation in heade file LNK2019

c++,header,lnk2019
I've 3 projects in my solution: Project_I, Project_A, Project_B Project_I contains header files only (no cpp), this projects defines interfaces in the header files that Project_A and Projects_B derive from and implement. Since I want default behavior in Project_I interfaces methods to throw NOT_IMPLEMENTED_EXCEPTION (my std::exception subtype), for each method...

jscript header reload same page

php,header,jscript
In my PHP site, I am using script alert for checking invalid username and password. If username and password are wrong, it shows a message box. When I click ok to it, user will be redirected to index.php page. But I want reload same page, like header('Location: '.$_SERVER['PHP_SELF']);. This is...

How to get tableview header to adjust font to fit width

ios,uitableview,header
I am using the following line of code to adjust my tableview header font. [[UILabel appearanceWhenContainedIn:[UITableViewHeaderFooterView class], nil] setFont:[UIFont boldSystemFontOfSize:16]]; How can I adjust this font to fit width? The line below does not work? [UILabel setAdjustsFontSizeToFitWidth:YES];...

How to exclude header from reloading when using reloadData in UICollectionView

ios,header,uicollectionview,uicollectionviewlayout,uicollectionreusableview
I have an UICollectionView using CSStickyHeaderFlowLayout to mimic header behavior in UITableView. Inside the header there is SegmentedControl to control data on the UICollectionView. So what I want is to reload the data when I tap the segment (calling API) and perform the reloadData but it always called the -...

Wordpress Analytics snippet in header

wordpress,google-analytics,header,analytics
I have integrated my google analytics snippet in my wordpress CMS for quite some time with a plugin. A content supplier then asked me to insert the snippet in the header and not in the body or footer area. So I inserted the snippet through header.php in the head area...

How to zip a whole directory and download using php [duplicate]

php,file,download,header,zip
This question already has an answer here: ZIP all files in directory and download .zip generated 4 answers I am self studying php and I am creating a sample test site which lets the user input the file code which will be used to determine the file path of...

My header keep disappearing and it not fix to the correct row

vba,excel-vba,header
This page is supposed to show the selected policy number/plan details. Like the different components such. But it varies based on the policy number. Some can have 1 or some may have more than that. I managed to get the plan/component to work based on the number of component per...

Common header with active class change

javascript,jquery,html,header
Hi I have a set of webpages for my websites i tried to create a common header for all the three pages and added a click function but when i click on that link it takes me to that page but the active class function is not working. help me...

How to seperate wordpress header navigation into side to side by edition Php files?

php,css,wordpress,header,navigation
I want to separate my WordPress menu navigation into both left and right, i have put the menu function into "functions.php" which added the menu from the backend, and frontend will be edited by the "header.php", but i couldn't retrieve the result, can anyone help me ? my function.php: register_nav_menus(...

Mapping from One Sheet to Another Fill Unfilled chracter

excel,excel-vba,printing,header,mapping
So I have one excel document that has partially filled character array ("|" shows excel column line): Current Result ("_" is a space): 1111GGH80100022190 1112QQH80100023201 1113GGH80100045201 1114AAH80100025190 So my current code outputs this above result. The problem is that characters 1-5 and 21-24 get skipped over. In general if there...

adding header and append incoming string data into csv python

python,csv,header,append
I received an error message when trying create header and adding incoming data in the next row def copy_real_data(real_curData, real_curTime): real_el_data = open(temp_path, "a") real_prev_data = open(temp_path, "r").read() header = ["Reading Right Shoulder Pitch Data", "ReadingTime"] if real_prev_data =='': real_el_data.write(header) real_el_data.write(','.join([real_curData, real_curTime])) real_el_data.write('\n') real_el_data.close() calling from outside: simulation.copy_real_data(str(0.76575), str(565657.989)) it...

what does php's header function do?

php,function,http,header,content-type
I can't find any solutions to this problem. I'm having hard time with this code. Based on what I searched: HTTP/1.1 200 OK - means that the page is good or OK. I don't understand this header function parts only. It is actually part of code. My questions are: Why...

Why class declaration ordering still matters with prototyping?

c++,class,header,dependencies
I was struggling with a 'field "player" has incomplete type" error with my code. My class "game_session" contains a single "player" and I declare them both in the same header file as shown below: #ifndef HEADER_H #define HEADER_H #include <iostream> #include <vector> using std::vector; class Player; class GameSession; class GameSession{...

Headers for security

security,http,header
I've been reading articles about the protection of your website and they say to place these 3 headers: X-Frame-Options: DENY X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff In my website to protect it from Website attacks, but I dont know how to declare it in my header, can someone help me with...

Getting a variable from a link PHP

php,variables,hyperlink,get,header
I have two files, one called test3.php, and another called test4.php. I'm trying to echo the variable in the link of the file test4.php, but it's echoing unexpected results. Please take a look. In the file called test3.php: <?php $text = "Good morning."; header('Location:test4.php?text=$text'); ?> In the file called test4.php:...

Pure functions file with header file always resulting in undefined reference

c++,function,c++11,header,undefined-reference
I'm trying to create a general functions file for myself. I want to do it right so no #include .cpp but .h files. However I result in undefined references all the time. I reproduced it with the following three files: main.cpp : #include <iostream> #include "functions.h" using namespace std; int...

Add class to element when user scrolls up to certain point

javascript,jquery,html,css,header
So I have created a sticky header using jQuery, which adds a class to the header when the user scrolls past it. However, I want to know how I can add another class to the header when the user is scrolling back up and reaches 50px before the top of...