36 Archived Topics
Remove Filter This is possibly not the ideal place to post this; but I'm hoping someone with a good idea of 3D math can help me a bit. I'm planning something for a project, and am trying to find out how to implement some of the more neccessary parts. One of these … | |
Two quick, related, questions; totally unrelated to anything I'm doing or considering doing. I'm talking about C/C++ programs specifically, since I'm talking about header files, but, I guess the questions are development-platform independant. It's a violation of the GPL to release closed-source software that dynamically links to a GPL licensed … | |
For some reason, it's fasionable to abort tables even if a good situation exists for their usage. When did this happen? I like tables, and I don't think they should be overlooked. Most of the time, I create my pages with a huge table holding everything together. Sure, I could … | |
You want your object to do a number of different things when it's clicked, and you've used up onmouseup, onmousedown and onclick. There are some properietry solutions to this, but it's quite a simple thing really. Copy and paste the MultiHandle object into an empty js file, include it in … | |
Ever wanted to evaluate a user-provided expression, maybe from a form input or otherwise, and return the result? eval($expr) is dangerous because eval(open $out, "> file.what"); will open the file, infact, eval(everything) will pretty much do everything. checking though everything is tedious, and manually parsing everything seems like a waste … | |
If I add default arguments to the end of my copy constructor, is it still considered a copy constructor? E.g. will it still be used in the places where a copy constructor would normally be used (or automatically generated). I can verify that it works on one compiler (g++). That … | |
I have a few ( slightly related ) questions about binary i/o in C++, I can't seem to find full answers to these anywhere.. - Is there any way to tell if an i/ostream passed to a function has been opened in binary or text mode? - If not, are … | |
Really not sure if this a hardware or software issue.. My scrolllock seems to have gone AWOL. The indicator LED doesn't light up when I press the scrolllock key; but, occasionally, the LED lights up, stays on no matter how much I hit the scroll-lock key itself, and only turns … | |
I'm trying to work out what the best structure is for these requirements.. will happily work on it, just wondering on the best direction to go in / if anyone knows from experience or reason what the best type of storage structure is.. - I 'generate' up to 20,000 integers, … | |
When compiling under MSVC I get warnings about using 'this' explicitly in a constructor's initializer list. I don't get warnings if I use the return from member functions though, even member functions that return 'this'. I also experience no noticeable problems in any test* but; is using 'this' there bad, … | |
I'm working on a C++ module to read wavefront OBJ files; these are text files with many lines with either 2, 3, or more integer or floating point numbers; separated by spaces or tabs. It's not always possible to know how many numbers there will be in a single line … | |
Ok, so I use Windows Live Mail Beta, don't know why, but they "invited" me ages ago, and it looks quite attractive, so I keep it. Sometimes, I get these yellow errors: "Windows Live Mail was unable to complete this request", today though, they're not going away. Also I get … | |
Consider the following code: [code="PHP"] <?php function important_function( $i ) { printf ("<p>Called for the %sth time.</p>\n", $i); return ($i < 3); } function loop_with_and( ) { $ret = true; for( $i = 0; $i < 10; $i ++ ) { $ret = $ret && important_function( $i ); } return … | |
Is it incorrect to use the precompiler like a complicated copy-and-paste tool? I've been working on a system where a few objects are processed according to exactly the same 'pattern' so to speak; BUT they are not related objects. Although it would be possible to bring some of them back … | |
I'm carrying this around in my signature at the moment, because I found the statement somewhat amusing: [quote] class `Matt' is implicitly friends with itself. [/quote] (Of course, the class wasn't really called Matt. I like the look of my own name. Perhaps). Preamble aside; the more I think about … | |
Is there a standard way to make constants defined using the [inlinecode]use constant[/inlinecode] pragma available to all of the packages that are use'd from an executed file? Or even better, to make the constants defined in a package available to other packages that use that package? It seems like anything … | |
Relevant header definitions are as: [code] class XMLChain { private: Segment root; std::vector<XMLOpen*> chain; Segment * immediate; std::vector<XMLOpen> openers; [/code] The function in question is: [code] void XMLChain::open(std::string tag) { Segment * last_immediate = immediate; openers.push_back( XMLOpen ( tag ) ); XMLOpen * cast_immediate = &(openers.back()); (*last_immediate).setNext( cast_immediate ); immediate … | |
Alot of (mainly linux/perl/etc) documentation, websites and comments use this quoting style: [code] Type `hello' to invoke `system shutdown'. [/code] Is there any particular reason to start the quoted block with a backtick (`) and end with a single quote (') ? This isn't really a support question, I'm just … | |
Forum software solutions have a way of indicating whether threads (and in the case of Daniweb forums to) have had their content viewed by a user. How exactly is this done? Is reference to every page a user has explored stored somewhere, for every user (or for every page)? That … | |
hey all, I've never been in this forum before; but then I've only just got into using my Linux PC. I'm using Mandrake with mostly KDE sessions, and I'm having a bit of trouble figuring out how to do something that seems simple... I have only got old(er) web browsers … | |
In certain cases, it's correct for my app to die if it encounters a potentially dangerous condition... I'm working on a more detailed error reporting system, and among the things I want to list are; the object class that threw the error, and the method that threw the error. At … | |
is it possible, to use, or otherwise import and access the class in a .pm file by a suggested name (this would be after compilation)... here's the lowdown, I've been working on a project for a while now, it is an XML processor. One of the parts of a process … | |
Is it true that spiders and bots don't like document-root or relative paths? I read it somewhere just now; and I don't know whether "don't like" means a spider will act as if there's nothing there and prompty leave; or feel somewhat offended, but compensate and carry on... Do spiders … | |
I'm putting this here because I don't really know where would be best, if I could pick a language-categorised solution I probably wouldn't be asking atall...I don't need a solution so much as a pointer. How do you get a file from a user's computer to a server, from a … | |
Can it be done? I'm thinking along the lines of :hover.. :visited etc; Could I register my own psuedoclasses? ;) X.Y:Z would be handy for situations where X.Y isn't definitive enough, and X.Y#Z wont work because there's more than 1 Z-type thing on a page. Using Javascipt to bind objects … | |
I was playing around with XMLHTTPRequests recently, let me just start this by saying I prefer to never have a single JavaScript requirement... so my use of the request is merely... icing on a big webcake. anyway.. In offline testing I can create requests ONLY in IE... in online tests … | |
My custom error pages (via.htaccess) work for browser requests, but when I print out an error status code from a cgi script, it bypasses .htaccess. I can't see any problem with just reading in an "error page" and printing it to STDOUT... But, I have to use a Content-Type:text/html header … | |
When I was learning the basics of Perl CGI (well, any CGI) I vaugely remember something regarding a header or command that would invoke CGI script (using a standard GET request) WITHOUT changing the page that a user was on. Googling hasn't been fruitful, I only remember a brief mention, … | |
I've just registered a MIME handler for a custom filetype; I've got the basic redirection sorted, all files of type XRM get sent to a 'dumb' perl script that echos predefined values. But, how do I read in the contents of the XRM file that invoked the perl script? Does … | |
I'm not going to go into much detail here; I've knocked up a lil example application to show where I'm having trouble; I'd like to know why $REF_DREF_A != $REF_DREF_B (and equally why there isn't a "hippo" qualifier to the "hello" in @DREF_B)... But more importantly, can I easily make … | |
So, I got a GPRS/UMTS modem for my laptop 2 days ago. It's extremely cool, maybe I'm only posting this message to show off that I have one. But I'm honestly intriuged by an aspect of it. It renders pages (layout, style etc) exactly how a wireless modem would, and … | |
This isn't an SSI or a CGI board, but I hear ColdFusion is quite SSI related, and it's the best place for this question I hope. I'm wondering if it's possible to do something like this: "html" page (actually XSL transformed XML page) has an SSI #include or #exec, then … | |
The index page of my site is redirected permanently to another page on my site using .htaccess, I'm messing about with IBP9's spider simulator to see how a search engine would see it; apperently this is what they'd see from the index page: <html> <head> <meta http-equiv="refresh" content="0;url=./YaBB.pl"> </head> I've … | |
Either I'm doing something very wrong, or the XMLDocument component is a terribly written component. I keep getting Access violation at #ADDRESS Read Of #ADDRESS errors, no explanation just a peek at the CPU showing the error occurs all of the place depending on which test I'm doing. Basically, all … | |
Is it possible to make my computer both a server and a client in a LAN? Some of the projects I'm working on are internet based, and opening pages and scripts from disk doesn't have quite the same results as accessing it from a network; biggest difference is with Flash … | |
Hi there. I'm new to this forum, and new to Delphi, my programming experience goes from BASIC > Visual Basic, C++ (DirectX not MFC or GDI), and Java/Java3D. I did a little Pascal programming in college a few years ago, but what I remember isn't sufficient to help me much … |
The End.