- Strength to Increase Rep
- +11
- Strength to Decrease Rep
- -2
- Upvotes Received
- 202
- Posts with Upvotes
- 177
- Upvoting Members
- 108
- Downvotes Received
- 25
- Posts with Downvotes
- 22
- Downvoting Members
- 18
Hi I'm Phillip, I'm currently a student, who specialises in Signal Processing / Speech Analysis and Recognition. You can find me coding C++, PHP and Matlab really.
- Interests
- PHP/C#/C++/MatLab/jQuery/
569 Posted Topics
Re: This is always a good project (http://en.wikipedia.org/wiki/P_%3D_NP_problem) .... Joke. @dean makes some valid points ;D | |
Re: >> university they would briefly cover each of these fields. This totally depends on the University and/or the choice of course you study. Most are programming based (in the UK) but it's very unlikly (unless you study a Games related course) that they will cover "Graphics Porgramming" however, Web Developer … | |
![]() | |
I'm having the following difficultly: I have a table `rates` which contains the follow: -> id -> rate_from -> rate_to -> price A `user` can have many rates, and for an example: between 0 - 10 hours the `user` charges `10.00` an hour between 10 - 100 hours the `user` … ![]() | |
Re: huuhaa. Delete please ![]() | |
Re: Hello, some compilers (especially with C++) only allow this: #include <iostream> .... Could try taking the .h. Is there no way you cannot install GCC? | |
Hi all, I think I might have missed something, I have been away for sometime. I was visiting the site and noticed that I had access to area 51. But I don't seem to recall having any of the privileges mentioned in the description. Is this an error or has … | |
Re: Have you made sure that the file is being included? | |
Re: You have not declared the method prototype correctly in your class. static std::map<std::pair<u32, u32>, CreateSessInfo> m_mSessionId2CCRNum2DefaultBearerId; Shoudl be: static std::map<std::pair<u32, u32>, CreateSessInfo> m_mSessionId2CCRNum2DefaultBearerId() { // Logic here return map; } Then you can access it as: `Foo::m_mSessionId2CCRNum2DefaultBearerId();` Here, I did a similar example: http://ideone.com/NelSt9 no logic is there, but, I … | |
Re: Assuming that it is what I think you are doing: int** DATA = new int*[10]; // This has now got 10x0 This initialises a 2D array called `DATA` with 10 columns. You will need to therefore set the rows when you are iterating through the array. Each row `(0.....9)` will … | |
Re: Your problem does not seem like it is on line "4", more of the line above, below. You have not specified the error, what does the error say is the problem? | |
Re: You are kind of doing it wrong.. What you want to do, is create an Array of objects, the size of this array can then be determined at run-time.. Something like the following: #include <iostream> using namespace std; class Foo { public: static int count; Foo() { } Foo(int i) … | |
![]() | Re: If you have a key pair value, then surely the best possible structure to use would be a hash table over a binary tree? Give some sample output of the file, please. |
Re: Well, this function: bool (LineSegment &ls) { int dist; ls.p1 = ls.p1 + dist; ls.p2 = ls.p2 + dist; } If you look at a method, in terms of some pseudocode: function [type] [name] (parameters) [ //... implementation return [typy] ] Therefore, you can think of it like this: bool … | |
Re: Hello, Ateficial intelligence is a broad scope, and does not just depend on the algorithms and software based solutions as you're pointint out. There are other aspects, in terms of Robotics which contains primarly a hardware approach to solving these tasks. Understanding robotics, for example, does not really depend on … | |
Re: Please define "Rubbish" in terms of what you actually get, please. | |
Re: Hey, what the problem is asking you is to count the total number of times an element exists inside an array. Assume the following: `A = [1, 2, 3, 4]` `B = [2, 1, 2, 4]` Then you can do the following: `AϵB` This is going to either give you … | |
| |
Re: Have you tried: $query="INSERT INTO users ('firstname', 'lastname', 'username', 'confirmusername', 'password', 'confirmpassword', 'email' ,'confirmemail') VALUES ('$firstname', '$lastname', '$username', '$password', '$confirmpassword', '$email' , '$confirmemail')"; ? ![]() | |
Re: Please do not create a new topic with the same question; this can be classed as spam and your question will be deleted. What you are doing here is using the same array, which, in tern most likely segment and thus time out. Try, something like the following: for(int n … | |
Re: What do you mean by "Tune", what it looks like you're doing is creating a sine wave at a particular frequency Htz. Where do you declae the sampling rate? If you're talking about creating a "tune" in terms of a synthesizer then this is a lot more complex and you … | |
Re: First off, your question is quite confusing. I can't gather what it is what you're trying to do, let me try with a different example, see if it makes sense to what I think they are wanting you to do. Let's assume that you have a Person, each person therefore, … | |
Re: What the hell is this: // new averaging system float pp; float x; float xx; float xxx; float xxxx; float xxxxx; float xxxxxx; float xxxxxxx; float xxxxxxxx; float xxxxxxxxx; float xxxxxxxxxx; float xxxxxxxxxxx; float xxxxxxxxxxxx; float xxxxxxxxxxxxx; float xxxxxxxxxxxxxx; float xxxxxxxxxxxxxxx; float xxxxxxxxxxxxxxxx; float xxxxxxxxxxxxxxxxx; float xxxxxxxxxxxxxxxxxx; float xxxxxxxxxxxxxxxxxxx; float … | |
Re: What is the question? Your conditional statement is wrong. Look on line 15, why would you need `;`? | |
Re: Because not many people have access to this library, please could you specify some expected input and outputs? Also, what is the data type of `MInput`? | |
Re: I'm sure I've seen someone else ask this question on here, I might be wrong! Please show that you have at least tried :P | |
Re: Try this: $add=mysql_query("INSERT INTO contact VALUES ('','$salutation','$fname','$lname','$houseone','$housetwo','$housethree',$tel','$off')") or die(mysql_error()); | |
Re: I should have really done some work today, instead I stare looking at work that could have been done. | |
Re: You have just copied the code from somewhere in a hope that it will work? This is a very bad way to solve a problem, and, this has obviously been shown here. From what I can see, skim reading of the code, you seem to have a mixture of C … | |
Re: I believe, from what I can see is that the validation requires a `.` followed by between two or three characters `(\.[a-z]{2,3})` so email addresses like: `[email protected]` would valid true, whereas email addresses containing a `.` with only one character, would throw up an error. There are some pre-built functions: … | |
Re: Hey, No-one would give you their email and you sending them across any source code. You haven't answered the right questions; or, given any indication in your post. Why doesn't it compile? There must be a reason, or, give an error (This is why error messages are generated because in … | |
Re: I have no idea what you are trying to do, or, what you are trying to convey in this post. Are you trying to calculate the velocity, or change in time on 2 vectors (matrices)? | |
Re: What are you actually simulating though? This would help | |
| |
Re: Might be asking a stupid question here, but, why is this in server-side? Since, I'm pretty sure it goes off the time and date set in the server, over what is on the local machine. Since it's a day out, probably your problem is that you're not setting a default … ![]() | |
Re: First off, please note that `mysql_*` functions are soon to be removed from the standards. To answer your question, you can do the following: <?php $email = $_SESSION['email']; $query = "SELECT * FROM tbl_student_master WHERE email='$email'"; $result = mysql_query($query) or die(mysql_error()); Or just the following: <?php $email = $_SESSION['enail']; $query … | |
![]() | |
Re: What is it that you are trying to do? If you are trying to square each element in the vector/array then it would be `y[i]*y[I]` but I doubt that's your problem but I don't exactly know what it is you want to do so can you be more specific? | |
Re: It really depends on the things that you are wanting to do. Programming in general is a very broad subject. If you are into web development then it might be an idea to choose something small, such as HTML.before tackling more dynamic and sophisticated languages such as PHP. If your … | |
Assume that I have a vector: x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] What I need to do is split this vector into block sizes of `blocksize` with an `overlap` `blocksize = 4` `overlap = 2` The result, would be a … | |
Re: Yes. Of course you should get Ubuntu. I was a mac user, now have completely gone with Ubuntu/Gnome. Go for it! | |
![]() | Re: Going with @Jorge here, let's say you had just a service where you can only sign in using your username, atleast have an option where the users can enter some information to retrieve what their username is. I.e. "I've forgotten my username" ![]() |
Re: @Abdul - I find it really surprising that you have managed to "dig" up a post from 6 years ago | |
![]() | Re: Would it not just be as effective to write your own? |
Re: To me, it appears that you are passing in too many variables. What do these do? Another thing: //check input is not empty if (String == "") { return 0; } Here, in your comments you say "check if a string is not empty" but, in actual fact, you're checking … | |
Re: Yeah, Matlab provides the full source code as well as the algorithms/equations used for FFT. `Open('fft')` `edit fft` | |
Re: I don't think your query is valid: `$query = "SELECT DVD ID, Name Of the DVD, Quantity FROM DVD";` looks too plain english. | |
Re: First off, right click. Is the HTML code being populated with "eventName" if this is a no, then you should attempt to look at the querying of the database (I'm guessing that you have mysqladmin or w.e.) try and run this query within that client and see what results show … | |
Re: Turning it off. It doesn't work through web (using google mail) and it just sends me so many emails. :( Good idea tho. |
The End.