- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Hi everyone, I need some help with the lookat matrix... This is my code [CODE] Matrix Matrix::CreateLookAt(Vector3 eye, Vector3 target, Vector3 up) { Vector3 forward = target - eye; forward.normalize(); Vector3 side = Vector3::cross(forward, up); side.normalize(); up = Vector3::cross(side, forward); Matrix m; // Defaults to identity matrix m.m11 = side.x; … |
|
I have around 20 tables in my database. I want to count every row of every table using COUNT and get a total. I have tried doing a separate select statement for each table then using UNION but I cannot find a way to join the results to get just … |
|
Hi, I am trying out a template architecture for php websites. What I am doing now is there is a .php file for processing "display" data and one or more .tpl template to do the layout and formatting. The interface between the .php and the .tpl is of course the … |
|
Hi, I have a table `Categories` with fields (category_id, category, parent_category_id) I want to write in a single query to replace the parent_category_id with the corresponding category_name. [CODE] // OBJECTIVE: To return all category names and parent category names // if category is root (no parent), parent category name is … |
|
Hi, Without first knowng what public class variables the class has, how can i display a list of all the variables in that class along with the values? [CODE]print_r(new MyClass());[/CODE] will display the public variables and values, plus some other unwanted entries, but I cannot do anything with them. I … |
|
Hi, This came from my network course, hope someone can explain what the hertz in this situation refers to and how to arrive at the result: "The minimum bandwidth required for a TV channel to be used as a 60Mbps (approx) network link is 6Mhz, assuming signal to noise ratio … |
|
When to use pointers and when to use references in c++. plz clear my doubt.. thnks in advance |
|
Hi folks, I have a mathematic Vector3 class that looks like [CODE] class Vector3 { public: union { struct { float x; float y; float z; // btw, if declared like // float x, y, z; // will there be a difference in packing order? }; float v[3]; }; // … |
|
Hi, I am currently trying to do a website with both chinese and englis text, and I have problems displaying chinese text. I uploaded a set of identical website files to 2 different servers and domains, and one displays chinese character but has messed up layout, the other does not … |
|
Hi, I am working on my web site and I ran into a peculiar problem... it seems that UTF-8 .php is creating some layout problems for me. Is this possble? I am creating the website in 2 version fully identical, except that one in chinese and the other in english. … |
|
Hi, I made uploaded 1 set of website sites to different domains (and server) using filezilla. The code is all manually typed using Notepad++. Now, one site jttech.com.hk show the chinese text, but the other sandbox.desk.vuox.com shows ???????? see [url]http://sandbox.desk.vuox.com/index.php[/url] and [url]http://jttech.com.hk/[/url] top right corner, the language selector. Anyone knows … |
|
Hi, I would like to learn how a VPN works, but all I could google up were phrases like "VPN creates a private [I]tunnel/road/connection [/I] between two points/LAN, [I]piggybacked [/I]on the internet, and making both LAN appear like a single one." However, the above does not explain anything useful at … |
|
Hi, I need some help on how to use the define a tab loop and making it work correctly in Flash AS3 CS4 FP9. Greatly appreciate any hinting or clue on how to solve this mind bogging issue. Thanks!! If you do not wish to read the details, my short … |
|
Hi, May I ask what is the correct syntax to achieve the following function pointer pattern? I keep getting error C2064: term does not evaluate to a function taking 0 arguments Thank you. [CODE] class Apple { public: Apple(int i) { if(i == 1) { juicer = &Apple::one; } else … |
|
Hi all, (sorry, I am not sure of the technical terms and jargon) I am currently using MySQL for an "inheritance pattern" (please advice on the correct terminology) where I have a "base table" with auto_increment and "sub_type table" that has id that reference the base id. I see the … |
|
I can't find, within my project directories, any option to specify where I want my .exe to start in. I want to do this for that sake of .dll and other file references. Any help? |
|
Hi there, I'm so frustrated now =( I have read the forums and this [URL="http://www.goingware.com/tips/member-pointers.html"]http://www.goingware.com/tips/member-pointers.html[/URL] But i still cannot get this to work: [CODE]class FileParser { public: void load(char* file) { MyDocumentClass _mDoc; _mDoc.LoadFile(file); // is this correct syntax? parse(_mDoc, &(FileParser::saveElement)); // or is this correct? parse(_mDoc, &(this->saveElement)); } private: … |
|
Hi, I have a Win32 + OpenGL sort of graphics engine I wrote myself for a simulation software project (still in progress). The problem is that this software must also have a linux version. Now this software is using MDI and Docking windows and what not so I am not … |
|
Hi, Can anyone help? I have 2 table each over 2M records and it is taking ages retrieving records. 1. A 'product' table that contains all products in store. 2. The second table is the 'offer' table which contains all offers related to the products (e.g price,store,product condition). 1. 'product' … |
|
I don't know if this is the right forum for this issue, but I will give it a try anyway. We have two computers laptops in our house, one that's pretty new and another one that's a few years old. I few weeks ago, god knows what caused it, the … |
|
how does the ramdomize function works?? does it have some formulae to bring out its output? |
|
Hi I am developing a web application in PHP, I need help in identifiying if a user has login to view a certain page. For example: If a user just type an address of a page that should ony be accessed by loged in user with out login on, he … |
|
Hi, I am playing around and trying to understand template singleton class and I accidentally created something that I am surprise it even runs. What I don't understand is when did Apple and Orange instances get created? Could you also comment on the good and bad of the Singleton class … |
|
Hi, This is a very convoluted problem I spent hours debugging to find that when I call std::vector<object>::push_back(Object()) destructor of previous Object is called. Is this the behaviour of std::vectors or is something wrong with my code? [CODE]#include <iostream> #include <vector> class Manager; class Entity { friend class Manager; private: … |
|
Hi, I am trying to set up a redirect 301 and have tried several methods which appears to be all wrong. Can anyone advice exactly how redirect 301 works? [CODE]redirect 301 http://newdomain.com/ redirect 301 / http://newdomain.com/ redirect 301 http://olddomain.com/ http://newdomain.com/ redirect 301 http://www.olddomain.com/ http://newdomain.com/ redirect 301 /^(.*)$ http://newdomain.com/$1[/CODE] Ideally, [url]http://olddomain.com[/url] … |
|
Hi matlab experts, I didn't think daniweb has a matlab forum so I went over to another math forum to ask for matlab help. but i think it's either I am too stupid for the mathematicians or they are too smart to realize that it is NOT obvious what i … |
|
hi, just want to ask, is it possible to restrict friend acess to a single class member function only? in other words, if class A grant class B friend access to class A member function, then class B can call that class A function. *note: this is suppose to be … |
|
Hi, I am trying to implement a Data Manager class (singleton) that initializes data, keep track of memory usage and acts as a data pool for other classes to share the data. My problem lies with the sharing. After considering serveral factors, I want to share data in the form … |
|
Hi, I have the following functions [CODE]void LoadData(char* file, float* data1, float* data2) { // read data size and contents from file data1 = new float[dataSize1]; data2 = new float[dataSize2]; // store data data1[0] = 1.0f; data1[1] = 2.0f; // etc ... } void ComputeData() { float *data1 = NULL; … |