HazardBoy
Members-
Posts
46 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by HazardBoy
-
Congratulations Kyle, if you ever need help. Shout. Also install StyleCop and get reSharper or CodeRush trials to help you learn fast. Keep in mind win form is dedicated for building tools-form driven applications and if you want to customize it (visual) it's going to be a hell. I would suggest do the same calculator but in WPF, code resembles and you will enjoy it even more as you can customize everything. Have fun!
-
Why would you feel offended or invaded of people asking you for help?
-
So which one? I'm curios.
-
Then you don't pass the params or pass a different array on init. The "detour" I see there makes the data verification to be called twice. Once on instance and once on the method call. I should have explained why before. Sorry/
-
You can pass the prams in constructor no need to detour. $usr = new Users( $_POST ); Glad you solved it.
-
Another solution to this error: Add start of the script ob_start(); and at the end ob_end_flush();
-
adding href="#" has the same effect <a onclick="window.history.go(-1); return false" href="#">
-
Hello guys, I have a frustrating problem. I want to stop the caret from changing input focus (jump outside) when I press tab. Instead remain in the input field. Basically I want to create an auto-complete word when I press tab. What I've tried something similar to this: <input type="text" onKeyUp="preventTab(e)" onKeyPress="preventTab(e)" onKeyDown="preventTab(e)"> <script> function preventTab(e){ e.preventDefault(); documentQuery(...).focus(); return false; } </script> All keys trigger this function except tab key. - Please delete the thread. The code worked on KeyDown, no idea why it didn't worked before.
-
It may be a little off topic but it does have to do with deflation. For big competitors Like EA browser games purchasing power grows and thus makes start-ups hard to reach audience. Also proof that Inflation is not as people buy virtual stuff.
-
I saw some people having issues with php and don't know what is wrong. And I believe that php tells you where it hurts just like JavaScript. if something is not working and you can't see why. Make sure you have error reporting on. :) <?php ini_set('display_errors', 'On'); error_reporting(E_ALL); I also use print_r() and var_dump(); to see if print is reach and data is there. What else is there to debug php and track errors?
-
If you have more than 3 keys to verify is good to use a loop to avoid messy code. If you know the keys you can define at first an array and loop the post with verification of in_array and is empty. You can also sanitize your post without knowing the keys. here I'll write some example: function sanitizer( $postData, $recursive = true ) { $sanitized =array(); foreach($postData as $key => $value) { if($recursive && is_object($value)) { $sanitized[$key] = sanitizer($value, $recursive); } else { // YOUR CLEAN-UP METHODS HERE // example: $sanitized[$key] = escapeshellarg(escapeshellcmd(mysql_real_escape_string(addslashes(strip_tags($value))))); // } } return $sanitized; } $clearPost = sanitize($_POST); // sanitize($_SESSION); // sanitize($_FILE); Same technique different utility function IsValid( $postData, $checkArray) { foreach($postData as $value) { if(!in_array($value)) { return false; break; } else if(empty($value)) { return false; break; } } return true; } $allowOnly= array('Name','Email','Password'); if(IsValid($_POST,$allowOnly)) { // code run } Cheers!
-
Like BlackScorp sad Architectures is a must! If you want to work in a large company: MVC, MVVM and MVP must mean something to you and you must have experience with at least one of them. Work OOP along with collaboration tools. Do team work and start working on a portfolio were you can mention collab work. Get certifications. Specially if you don't a have a degree in engineering/Info. How well do you master JavaScript? Everything is drifting towards JavaScript as clients machines get more and more powerful. Today big websites use PHP/.NET as service (back-end) and front is pure JavaScript with ajax. If you thirst for more I recommend Node.js with express js, were you will write back-end and front-end with pure js. Again you must be familiar with those terms: Web performance. PHP with 10.000 users. SAAS Apache and IIS. Agile (SCRUM) Depending on your age, you might want to consider starting an internship, this is a good way to enter a big company. Make a linkedin account and make it your career journal. And sooner than you know it recruit companies will hunt you. Good luck, and the enthusiasm may never fade you!
-
Get some sleep mate! I once read an article about a genius programmer that worked non stop and made millions of dollars. One day he went to sleep and never woke up. Find an idea and do small sprints of coding that give you results.
-
CyberWarfare TheRedButton BorderPatrol DiplomacyWar TheFactory GunsGunsGuns Generals PeaceKeepers etc... :) all sexy
-
Best easy and fast way to learn is to hack other's code. Like a ninja! Take a sample see how it's made and break it apart, make something else. Use editor dedicated to web design, and you'll learn even faster. And the secret of how it's made is "F12". :) Start learning from the start with developer console by your side. Know that the skill and level of a programmer is not given by the language that he knows but by the framework that he masters! So your journey is just started. The path is long and well rewarded. :) Good luck, and have fun!
-
I spent money on browser games before and that's why I think it's possible to make money with browser games. Plus companies like EA stepped in this area so there must be money.
-
Nice landing page and complex site you have, I just made and account and played a few minutes. I haven't played any mafia-text based games before, so after login I got a little confuse of what role I am playing and what I need to do. So I suggest instead or after TOS some basic guidelines would help newbies. What I felt strange is the transition from that cool login to the site content. But I get its under development. One thing is for sure and you might not agree: Too many links on your menu. It takes time to find a page, maybe move the actions as top-header menu ? Some other geeky stuff that could just be my bad taste: landing page: Background is smaller than my screen resolution. gets tiled. Form labels are not the same size. Not sexy. use *{ outline: none;} to hide the browser input focus outline Redirect to Login after registration successful. Make the success message more visible. The TOS should be visible before register. Where is my logout button ? To avoid having hard time using images to create rounded corners and inner shadow inputs use CSS. input[type=text]{ border-radius: 10px; height: 30px; border: 0; box-shadow: inset 2px 2px 5px #666; } This code will give you the exact look as your input background for your login page. And the best part is that you can have it whatever width and height you want. So you are not bounded by the background image. More feedback as I play. :)