header

C++ Headers - Best practice when including

C++ headers If I have A.cpp and A.h as well as b.h, c.h, d.h Should I do: in A.h: #include "b.h" #include "c.h" #include "d.h" in A.cpp: #include "A.h" or in A.cpp: #include "A.h" #include "b.h" #include "c.h" #include "d.h" Are there performance issues? Obvious benefits? Is something bad about this? ...

Can i reduce the font size of iphone tableview header

Hi All, I need to reduce the font size of the table view header. My string value is a little bit longer and it doesnot fit in to the header. so planning to reduce the size. Any one knows how to reduce the size, so that i can add the string to my table view header. Thanks in advance, Shibin ...

MVC for footer-header-sidebar at codeigniter.

Hi friends, I use codeigniter. I have footer_view.php, header_view.php and other view php files for pages like aboutus, contactus, etc... for example for about us page, I create model for db actions, than I create a controller to get db variables and send variable to about us view as: $this->load->view('aboutus/',$data); everthing is...

Using PHP to print out a downloadable text file

My script puts together a set of htaccess rules based on information passed into it and gives the user a downloadable text file with the rules printed out inside. The idea is that an administrator fills out some form information, clicks a downloadable link, gets a text file with the rules printed out inside, opens the file, copies the r...

Can 'make' check if mtime of a dependency is *different* between runs, not just if it's newer than target?

If foo_user.cpp depends on foo.h, then foo_user.cpp is built, and then foo.h's modification time is set to further in the past, make will not rebuild foo_user.cpp (because foo.cpp is 'newer'). I'd prefer it if make recorded the modification times of dependencies, and if they changed at all (newer or older), to consider targets of that de...

Help needed in iPhone TableView

Hi all, Insted of the default header in the UITableView i implemented a custom table header using - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section I used this method because i need to view my lengthy string within that header, so that i can reduce the size of the header font size. But when i im...

Image doesn't display using readfile / file_get_contents

if(preg_match('/^[a-zA-Z0-9]+\.(gif|jpe?g)$/',$row['filename'],$matches) && is_readable($row['filepath'].$row['filename'])){ echo header('Content-Type: image/'.$matches[1]); echo header('Content-Length: '.filesize($row['filepath'].$row['filename'])); echo file_get_contents($row['filepath'].$row['filename']); } else ...

How to make only specific text clickable on accordion header - jquery?

I added delete and edit link to the accordion header, yet those links are not working since every time i click on them the accordion open. And advice on how can I do it? Note that I'm doing nested accordion. this is how i defined it on js: $("#acc2").accordion({ alwaysOpen: false,active: false,autoheight: false, header: 'h3.ui-accor...

How do I prevent duplicate headers when dealing with threads in PHP?

I've written a PHP script that has to fork and do some processing in parallel, and then the main page returns data after processing. I'm currently using the pcntl functions to do this. I need to run anywhere between 2 and 10 threads to work in parallel, and I have to wait until I get a result from all of the threads before the script out...

Persisting data cross domains?

I have 2 applications, each in different domains. When a user comes to the first application, clicks a link, the user is sent to the second application. My problem is as follows: I need to persist a sessionId from the first application to the second application. Simple enough but here's the catch. I can't use query string and I ca...

Duplicate Referrer Header - HTTP.sys barfs

I have been testing the PS3 browser (NetFront) with embedded Flash components on a web page and there seems to be a rather serious bug with the way that any requests from Flash are issued. The browser is adding a referrer (referer) and so is the Flash player resulting in duplicate headers. This is actually OK if the referrer headers are ...

how can i read the header text from a datagrid when autogeneratedcolumns="true"

I have chosen to use a datagrid with the autogeneratecolumns="true" because I do not know in advance how many columns will be loaded. I've also included an item template to allow selection of a row for editing. When the edit item command fires, the datagrid is hidden and a new panel made visible where dropdownlist controls are genearte...

How to auto-sync Header in Visual Studio ?

Do you know if there is a build-in feature or free add-in for Microsoft Visual Studio 2008 that easily generates C-Headers and keeps them in sync with their .c counterparts? I have already looked at Visual Assist X, but I'm not really willing to pay money at the moment. ...

how to tell clicking "back" to load cache?

I would like for my site when someone clicks "Back" or "Forward" for the server to tell the browser to load the cache instead of reloading the entire page. I've tested some headers and done research, but I can't seem to get this to function as intended. Update: The if-modified since header is not something I'd like to do. There's got ...

How do I redirect values from a PHP page to another?

I'm trying to post XML data from a PHP page to another (not necessarily PHP-based) one without a form post. Is it possible to say do a POST via the header() function? If so, how? ...

Is there a way to get a web page header/footer printed on every page?

Hello all: Based on my research, it seems that what I want to do is not possible, but in case something has changed, I wanted to check to see if anyone had come up with a way to do this. I have a web app that generates reports for print based on user selections in the browser window. I have a custom header and footer that, when the rep...

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

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): undefined reference to 'stack::stack()' main.cpp:(.text+0x1c): undefined reference to 'stack::~stack()' collect2: ld returned 1 exit status make: *** [program] Error 1 stack.hpp: #ifndef _STACK_HPP #defin...

Reporting Services - Header Columns not showing?

I'm using Reporting Services 2008 and Report Builder 2.0. I've used a tablix to display my data in a simple way - essentially each row in the database receives a row in the tablix - nothing fancy. I have a header row with a name for each column. I also have a super-header which groups together a few of the columns into logical groups (e....

Better way to share header file between separate vc project?

How would you organize your vc projects source code to share the same header file? put the header in a common folder, and have every vc projects include it. put the header in a vc project, and have the other projects include it as a link. copy the header file into every vc project any better solution? ...

how to stop floating (sliding) div at footer

http://stackoverflow.com/questions/225843/how-can-i-have-a-sliding-menu-div-that-doesnt-move-unless-the-page-is-scrolled-d i used the code from this link for a floating menu. it has how to stop the stop float at the header, but not at the footer. how can i modify this code to stop at the footer? //// CONFIGURATION VARIABLES: var n...