Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks.
Using the following code, I'm setting up an auto-refresh on a div. Every 5 seconds, I want it to refresh the content. However, I don't want it to do that forever, so I put a countdown on it. The routeFrame function does the work of setting the div content, but I didn't include it because I don't think it's relevant. If you think it is, I'll show it. + Show Spoiler +
function startRefresh(remaining) { if (remaining > 0) { setTimeout(startRefresh, 5000, remaining - 1); } else { $('#refreshCount').html("<br />Refresh limit reached. Please refresh page to see further updates"); } routeFrameToPartialViewWithAnimator("#log", "/Packages/DisplayWorkLogForUserTest/", "/Content/ajax-loader.gif"); } }); </script>
It works great in Chrome - refreshes every 5 seconds and stops after 5 minutes. But in IE8 it runs once and then stops, and I have no idea why. I put in an alert of the "remaining" variable, and it first shows 60 then it shows 'undefined'. Any ideas?
Using the following code, I'm setting up an auto-refresh on a div. Every 5 seconds, I want it to refresh the content. However, I don't want it to do that forever, so I put a countdown on it. The routeFrame function does the work of setting the div content, but I didn't include it because I don't think it's relevant. If you think it is, I'll show it. + Show Spoiler +
function startRefresh(remaining) { if (remaining > 0) { setTimeout(startRefresh, 5000, remaining - 1); } else { $('#refreshCount').html("<br />Refresh limit reached. Please refresh page to see further updates"); } routeFrameToPartialViewWithAnimator("#log", "/Packages/DisplayWorkLogForUserTest/", "/Content/ajax-loader.gif"); } }); </script>
It works great in Chrome - refreshes every 5 seconds and stops after 5 minutes. But in IE8 it runs once and then stops, and I have no idea why. I put in an alert of the "remaining" variable, and it first shows 60 then it shows 'undefined'. Any ideas?
On October 03 2014 23:25 FFGenerations wrote: hi guys, can you please have a look at this and tell me why my Wscript.exe stays in task manager when i randomly close the application? I'm trying to figure out where to put this shit to catch whatever error it gets when you randomly close it..... it no longer shows an error message when you randomly close it, but wscript stays running in task manager
Now I haven't written templates yet and so I don't understand the return type. I am not sure, so, should s.erase(s.begin(),s.begin()+3) return an iterator? If I try to use the assign operator, gcc4.7.1 say no match and no possible candidates. Now I read in the fifth edition of the C++ primer on page 344 that the old version of insert that took an iterator range returns void, this is what I assume happens here. Does the gcc4.7.1 not support this particular part of the new standard?
I'm still learning C++ but as far as I know, both erase and insert return an iterator in your specific case. They may return something else as well and you may see that from the link you refer to. E.g. s.erase(0, 3) should return std::string with content "lo".
Yo what did you guys do for your Final Year Projects? I have to decide on something pretty fucking soon. I wanted to do a visual novel style game in actionscript/flash using OOP but my personal tutor (whose focus is databases I think) said
1) everyone does some OOP thing as default and its not gonna make me stand out and will be 2nd class stuff (he is the one marking it T_T ) 2) if i want to do games then maybe i should be in game dev not SE (lol did i get the right tutor?) 3) what PROBLEM am i solving with this piece of work?
He showed me a list of old projects he had archived things like "database for football manager system", "database for taking meeting minutes and sharing with certain peoples"
At that point I was like, "OK how about I integrate one of these database problem-solving ideas into my game?" (I could come up with something better but the first thing I thought of was the world being dynamic according to what other people have input). he didn't seem to give much input after that, like he just shut down.... idk??
I talked to another lecturer about our meeting and she suggested that by "what problem does it solve" he meant something like "what issues with latency will i have and how to deal with this?". Rather than just meaning a theoretical problem. Which sung well with me.
The other lecturer also said a project doesn't have to be amazingly original to get a good grade, it just has to be well constructed and have a well written/structured report. (this lecturer was the project coordinator but like i said the other guy does the marking for me)
My other idea was to (instead of making a visual novel RPG itself) make an application that allows a user to build a visual novel game by using dropdown/menus and input boxes. Just now having a quick look, someone has done this to great effect already
It still sounds like a pretty challenging thing to try to do myself?
Another random idea I had was for a mobile game where you create and shoot projectiles by drawing on the screen and which is heavily balanced to be competitive vs computer e.g. with projectiles that might speed up or slow down other projectiles, ones which are area of effect, ones which are fast, ones which don't collide with other projectiles and deal damage to opponent face but have opportunity cost etc. This is probably something that has been done to death (I honestly have no idea, i've never played or seen any mobile game in my life apart from a sonic the hedgehog version and Gems)
So yeah officially I have until 10th Oct to come up with a project that will get me 70%++ grade and be interesting to me BUT ALSO SOMETHING THAT IS VIABLE / NOT RETARDEDLY COMPLEX BECAUSE I AM CURRENTLY SHIT AT CODING AND DON'T KNOW WHAT IS VIABLE OR NOT lol.
On October 05 2014 08:02 FFGenerations wrote: Yo what did you guys do for your Final Year Projects? I have to decide on something pretty fucking soon. I wanted to do a visual novel style game in actionscript/flash using OOP but my personal tutor (whose focus is databases I think) said
1) everyone does some OOP thing as default and its not gonna make me stand out and will be 2nd class stuff (he is the one marking it T_T ) 2) if i want to do games then maybe i should be in game dev not SE (lol did i get the right tutor?) 3) what PROBLEM am i solving with this piece of work?
He showed me a list of old projects he had archived things like "database for football manager system", "database for taking meeting minutes and sharing with certain peoples"
At that point I was like, "OK how about I integrate one of these database problem-solving ideas into my game?" (I could come up with something better but the first thing I thought of was the world being dynamic according to what other people have input). he didn't seem to give much input after that, like he just shut down.... idk??
I talked to another lecturer about our meeting and she suggested that by "what problem does it solve" he meant something like "what issues with latency will i have and how to deal with this?". Rather than just meaning a theoretical problem. Which sung well with me.
The other lecturer also said a project doesn't have to be amazingly original to get a good grade, it just has to be well constructed and have a well written/structured report. (this lecturer was the project coordinator but like i said the other guy does the marking for me)
My other idea was to (instead of making a visual novel RPG itself) make an application that allows a user to build a visual novel game by using dropdown/menus and input boxes. Just now having a quick look, someone has done this to great effect already
It still sounds like a pretty challenging thing to try to do myself?
Another random idea I had was for a mobile game where you create and shoot projectiles by drawing on the screen and which is heavily balanced to be competitive vs computer e.g. with projectiles that might speed up or slow down other projectiles, ones which are area of effect, ones which are fast, ones which don't collide with other projectiles and deal damage to opponent face but have opportunity cost etc. This is probably something that has been done to death (I honestly have no idea, i've never played or seen any mobile game in my life apart from a sonic the hedgehog version and Gems)
So yeah officially I have until 10th Oct to come up with a project that will get me 70%++ grade and be interesting to me BUT ALSO SOMETHING THAT IS VIABLE / NOT RETARDEDLY COMPLEX BECAUSE I AM CURRENTLY SHIT AT CODING AND DON'T KNOW WHAT IS VIABLE OR NOT lol.
If you're shit at coding, what are you doing in a software engineering program at your senior year?
Anyways, you seem to like games and your tutor seems to like databases. How about a game about managing some big system? Maybe a country or a business or something.
Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.
My final year project has been a Sudoku game (implemented in Java purely because it's the language I know more, and that's ok for a university student). I think Sudoku could be challenging not as a game itself but as implementing certain things such as: sudoku solver, puzzle validation (I think minimal unique* puzzle has to have at least 17 cells), etc. You don't have to pick Sudoku though, any logic-based puzzle game is fine, especially if it involves lots of algorithms for the sake of demanding lecturers. :D
*unique as in 'having one solution only'
Edit: I think the previous student of my project's supervisor has done a Rush Hour game.
On October 05 2014 08:23 WolfintheSheep wrote: Wait, what kind of program are you completing?
Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.
SE see this is what he said but from my perspective IE WITH VERY LITTLE EXPERIENCE WITH SE (2 years at college where we done very basic application dev and some php AND LITERALLY ZERO MATH) i struggle to see what options i have
i thought "building something in OOP" would be sufficient to begin with but clearly i need to do more.
i do have like 4 months to solidly work on this so i'm quite capable of going above and beyond , but i need to start figuring out a starting point
On October 05 2014 08:23 WolfintheSheep wrote: Wait, what kind of program are you completing?
Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.
SE see this is what he said but from my perspective IE WITH VERY LITTLE EXPERIENCE WITH SE (2 years at college where we done very basic application dev and some php AND LITERALLY ZERO MATH) i struggle to see what options i have
As lecturers say, part of your project is research. If you don't know how to do stuff in a programming language X, then look it up and learn it.
On October 05 2014 08:23 WolfintheSheep wrote: Wait, what kind of program are you completing?
Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.
SE see this is what he said but from my perspective IE WITH VERY LITTLE EXPERIENCE WITH SE (2 years at college where we done very basic application dev and some php AND LITERALLY ZERO MATH) i struggle to see what options i have
As lecturers say, part of your project is research. If you don't know how to do stuff in a programming language X, then look it up and learn it.
yup i have 4+ months to do this solidly so that is all cool. but i need to choose something that will get me 70%+ grade , and having little experience means i'm throwing this out on forum for any tips :D cheers guys
ps: i finished my man's work so am starting up on this now, i couldnt sleep though so i come post thread before any research obviously
On October 05 2014 08:23 WolfintheSheep wrote: Wait, what kind of program are you completing?
Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.
SE see this is what he said but from my perspective IE WITH VERY LITTLE EXPERIENCE WITH SE (2 years at college where we done very basic application dev and some php AND LITERALLY ZERO MATH) i struggle to see what options i have
As lecturers say, part of your project is research. If you don't know how to do stuff in a programming language X, then look it up and learn it.
yup i have 4+ months to do this solidly so that is all cool. but i need to choose something that will get me 70%+ grade , and having little experience means i'm throwing this out on forum for any tips :D cheers guys
ps: i finished my man's work so am starting up on this now, i couldnt sleep though so i come post thread before any research obviously
Well, in this case, I suppose your project supervisor expects you not to draw 'cool' graphics with action-packed pew-pew (although that's still nice to do) but he/she rather cares about algorithms behind the scenes and the problems they solve. So in the case of Sudoku, that would be an algorithm to solve a puzzle by software itself (brute-force, dancing links, etc), an algorithm to check a puzzle for a unique solution, an algorithm for checking duplicates, etc.
Of course, if you choose OOP, then you may have to impress him/her with a thoroughly planned class design. I don't think you have to quit OOP for your project. You just have to explain why OOP would be necessary in your case and, as mentioned earlier, good class design.
Edit: Do you have to write a dissertation as well? If yes, it may be a good idea to say how your software compares to other applications if any. If there are any, you may have a look at existing ones for insights and ideas how to improve yours. I suppose it may also be nice if you say to your supervisor that 'application X presents a problem in scenario Y', and then describe how your program is going to solve it. It addresses his/her concerns about problem solving I think.
On October 05 2014 08:23 WolfintheSheep wrote: Wait, what kind of program are you completing?
Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.
SE see this is what he said but from my perspective IE WITH VERY LITTLE EXPERIENCE WITH SE (2 years at college where we done very basic application dev and some php AND LITERALLY ZERO MATH) i struggle to see what options i have
As lecturers say, part of your project is research. If you don't know how to do stuff in a programming language X, then look it up and learn it.
yup i have 4+ months to do this solidly so that is all cool. but i need to choose something that will get me 70%+ grade , and having little experience means i'm throwing this out on forum for any tips :D cheers guys
ps: i finished my man's work so am starting up on this now, i couldnt sleep though so i come post thread before any research obviously
Well, in this case, I suppose your project supervisor expects you not to draw 'cool' graphics with action-packed pew-pew (although that's still nice to do) but he/she rather cares about algorithms behind the scenes and the problems they solve. So in the case of Sudoku, that would be an algorithm to solve a puzzle by software itself (brute-force, dancing links, etc), an algorithm to check a puzzle for a unique solution, an algorithm for checking duplicates, etc.
Of course, if you choose OOP, then you may have to impress him/her with a thoroughly planned class design. I don't think you have to quit OOP for your project. You just have to explain why OOP would be necessary in your case and, as mentioned earlier, good class design.
Edit: Do you have to write a dissertation as well? If yes, it may be a good idea to say how your software compares to other applications if any. If there are any, you may have a look at existing ones for insights and ideas how to improve yours. I suppose it may also be nice if you say to your supervisor that 'application X presents a problem in scenario Y', and then describe how your program is going to solve it. It addresses his/her concerns about problem solving I think.
yes the dissertation is basically what is being marked i think . so there is a focus on the writeup/planning.
that's not a bad idea - to look at an existing software/game and see if i can find a shortcoming and try to improve this in my own product/version
this is probably what i'll be doing when try to research problems in SE that need solving/have various potential solutions that need to be justified
As darkness said, Sudoku is a great semester-long project. Gotta show foresight in planning your file format. You show algorithm understanding when you check the puzzle for validity and when you implement a solver. You show UI concepts when you make your menus and display the puzzle. You can show MVC by building the game with that in mind.
Really though, any similar puzzle is a good idea. Card games too can be good.
On October 05 2014 07:33 darkness wrote: I'm still learning C++ but as far as I know, both erase and insert return an iterator in your specific case. They may return something else as well and you may see that from the link you refer to. E.g. s.erase(0, 3) should return std::string with content "lo".
They should return. Finally found an answer to my question. One can look up the headers of the implementation of their standard library, in my case, using mingw with codeblocks, basic_string can be found here
So using gcc generally you can look up those headers which is nice when learning the language, because it allows you to see if it is your code or if the library is not up to the new standard yet.
ps: It got fixed by now, should update my compiler/library
If you want to do research that could be really interesting for some people, you could do a project about trying to optimize a CPU implementation of a sudoku solver by doing the work on the GPU instead. I assume there are some very interesting problem solutions you could come up with in regards to efficiently managing memory and splitting work between threads, threadgroups and warps.
And if you do the work in GLs or Direct3Ds compute shader instead of CUDA you get some experience on working with a game graphics API at the same time.
Or you could make a game about database management, where you have to choose between sqlite, mysql, postgresql, mongodb etc. and you do actual db design inside the game and measure performance on all dbs in order to pick one that is best Server/DB admin RPG.