- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I work as a software engineer at Next Jump in NYC. I work on the architecture team and we deal primarily with code optimization and security, as well as broader issues like the scalability and flexibility of the code base. In my spare time, I enjoy web…
- Interests
- Code architecture, design patters, web development, web design, and in my spare time video games, sports,…
46 Posted Topics
Re: The site is pretty rough, but that is understandable since you are just learning. I basically started by doing a website for my parents and took like 3 months to do it from scratch. I learned a ton in the process. But if the person you are doing this for … | |
Re: These are a bit tricky. I would actually guess C for question one, because I know that google uses bots that save every link they hit (that passes their spam filters) for future crawling. So that makes the most sense to me. Saying they get webpages by analyzing all the … | |
Re: Perhaps you have some URL re-write rules in your .htaccess that are causing the problem? | |
Re: You could simply add the values together. You don't need to worry about ignoring the variables where the value is 0 because they wont' affect the total anyway. | |
Re: If the code works perfectly on your local server but not on the site, it seems like you may not have your database set up properly on the site. Have you created a database on the live site that is identical to the one on your local server? Also, are … | |
Re: It would probably help us get a better idea of how to help you if we saw the rest of your code relevant to your problem. | |
Re: Ardav is right, there isn't any one magic method that is best. One possible solution (and easier to do although not the best for every user) is to use a fixed width approach. So basically you design your website to look best on the most common screen size. This will … | |
Re: The code: [CODE]preg_replace('#[^A-Za-z0-9]#i', '',[/CODE] Just removes every character in a string that is not a letter or number. The "^" means not in regular expressions, so [CODE][^A-Za-z0-9][/CODE] means not anything inside the brackets. | |
Re: You can simply modify your .htaccess file if you are using an Apache server. If your host provides you with cpanel they provide an easy tool to do url redirects. If not, here is a good link that shows you how to [URL="http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html"][COLOR="Green"]do it on your own[/COLOR][/URL] | |
Re: You need to add a $ in front of the strSQL variable in line 6. | |
Re: Just from glacing at the page you should remove the clear: left from jquery.ad-gallery.css line 171 [CODE] #wrapper #gallery { clear: left; //remove this float: right; height: 600px; width: 600px; }[/CODE] | |
Re: First of all, if please wrap any code with the code-tags so it's formatted and we can read it. Second, are you asking for an explanation of how the game works or how the code works? | |
Re: When I checked it out it seems like when you click a "+" button to expand a news story, you get an error that the files "http://www.sahara-online.co.uk/src/jquery.cookie.js" and "http://www.sahara-online.co.uk/src/jquery.collapse.js" couldn't be loaded. That is most likely your problem so check that you have those files in the correct location as … | |
Re: Your function [CODE] public function setPageHeading($theMast) { return $theMast; } [/CODE] Doesn't actually set $pageHeading, it only returns the value passed in. It should be: [CODE] public function setPageHeading($theMast) { $this->pageHeading = $theMast; } [/CODE] That should stop the null problem as long as you are calling the function properly. | |
Re: I don't think that is possible. CSS defines how to display HTML elements, so at the very least the site needs to contain HTML. Your friend may be referring to sites that contain no flash or javascript. | |
Re: For you syntax error, I think you might have an extra ")" in [CODE] (DateTime >= GetDate())) [/CODE] | |
Re: My guess is that some of the functionality he is using may be deprecated, or no longer supported by modern browsers. That is assuming you aren't making any mistakes. However, for something like the onunload method, I believe it is still supported by most modern browsers. Look [URL="http://help.dottoro.com/ljflhicd.php"]here[/URL] for examples. … ![]() | |
Re: Make sure you are either destroying or unsetting your session variable on user logout. If not, they will still be able to access that page after they have logged in once. [CODE] <? //In your logout.php script session_start(); unset($_SESSION['login']); header("location: login.php"); ?> [/CODE] Or you can destroy the current session: … | |
Re: One of your problems is your nav bar. Since it has the attribute position: absolute, it won't flow with the rest of the content when you have screens of different sizes. You probably have this problem with other divs on the site as well. You can test this on your … | |
Re: [URL="http://psd.tutsplus.com/category/tutorials/icon-design/"]Photoshop tutorials[/URL] | |
Re: [QUOTE=nexter;1666619]hello stoopkid so how can solve this problem? please help me[/QUOTE] He asked what the code is supposed to do. If you want help, you are going to need to clarify what you are trying to do because the code is just a mess right now. | |
Re: Sorry but I don't understand what you're asking. Are you asking for help in creating a highlight effect on your nav menu? Because I don't see where you implemented the highlighting of a current page. | |
Re: I'm guessing you mean you can still hit back on the browser and see welcome.php even though you've logged out? This is a simple matter of checking if session variables have been set at the top of each page that you don't want somebody who isn't logged in to see. … | |
![]() | Re: You are probably saving the the top code as a .html file, but you need to save it as a .php file if you are going to include php in it. The html will all still work perfectly fine, but you'll be able to execute php inside of the html … ![]() |
Re: When you return the value from findLowest() you aren't assigning that value to anything. You should have in main: lowest = findLowest(lowest); Setting the variable "lowest" to anything in the function findLowest() will not affect your global variable "lowest" because you did not pass it in by reference. You are … | |
Hello all, I have a script that displays the graphs of the rain gauges that the user selects on my site. They check all the gauges they want to see, and then when they click submit, my script then searches another site for the graph for each gauge using that … | |
Hi all, I am looking to pass a javascript array that is created by the user (through checking different boxes and populating the array with id numbers) to a php script which this uses the id's in the array to make url calls. I am having difficulty passing the array … | |
Hey guys, I am currently looking into making my own flash game. I'll have my bachelor's degree in computer science next year so I am pretty familiar with programming. I am pretty bogged down with school work, but I still want to be able to create a few simple games … | |
Re: If you have the money to afford a macbook pro then go for it. Boot camp works just fine in my opinion. Once that is up and running, you should be able to run any windows program on your macbook pro. You don't need a windows machine, just a windows … | |
Hey guys, I am working on a page that works perfectly in firefox, chrome, safari, and opera, but not in IE. I am trying to make the page semi-fluid, that is you can minimize the content of the page to an extent before the content stops getting smaller. That's where … | |
Re: Can you be a little more specific on what you are confused about? I don't think your link() function works correctly, so that may be your problem. | |
Re: Or you could use Windows Visual Studios 2010 Express. [URL="http://www.microsoft.com/express/Downloads/#2010-Visual-CPP"]http://www.microsoft.com/express/Downloads/#2010-Visual-CPP[/URL] A great website for learning C++: [URL="http://cplusplus.com/"]http://cplusplus.com/[/URL] (Not a book but still helpful) Good luck! | |
Re: I would recommend learning C++. It's the most common language used in programming. You can program games in a lot of different languages (including C++) but I think it would be good for a beginner to start with the most widely known language and then branch out as you become … | |
Re: Maybe if you could be more specific about what errors your are getting, or what specific parts of the code you are confused about. Everything below the red text is too broad, a lot of us don't want to look through all the code. Start with a specific function you … | |
Re: What is the class (NoClass?) at the bottom of your post for? And not to be picky but this is the C++ forum and you're posting C code :) | |
Re: I would start off with a 2-D game first. Making a 3-D game involves a lot of linear and vector algebra, and can be a daunting task for someone just starting. You can try something like a simple 2D shooter as your first game. Do you already have experience programming … | |
Re: thelamb is right, if you didn't create a new instance of your class (by using the new keyword) then you shouldn't have to manually delete it. You only need to delete something if you dynamically created space for it yourself. Try looking [URL="http://www.cplusplus.com/doc/tutorial/dynamic/"]here[/URL]. Hope this helps. | |
Re: You're problem is you never give the user a chance to re-enter a new solution. After your while(userAnswer != correctAnswer && userAnswer != -1) you check if the solution is correct (and in the case where it's wrong) it will pop back up to the same while loop and print … | |
Re: Your problem with the generateOutput() function is that you are returning randomnumber, which is of type int, but you have the return type of the function as void. So you are probably getting an error there. As a side note, please surround your code with the code tags like this: … | |
Re: I can see several errors in the code, have you tried compiling it so you can see what errors you have? | |
Re: Try some tutorials online. There are a couple of programs that allow you to model something in a 3d environment and then import that into OpenGl. Maya is an example of a 3D editor that you can model something in, then import into OpenGl. With that you can make a … | |
Re: Nobody is going to solve this problem for you. You need to show some effort before we will provide any assistance. | |
Re: Did you try using passing matrix as matrix[3][3] instead of matrix[][3]? I don't know if it would help or not, but it's worth a shot as I remember possibly encountering the same problem. | |
Hey Guys, I have a theoretical question, I can't really post my code. But I have four results from reads to a database using php. I then read from an xml file using javascript using a loop. I am basically creating a chart of four variables with several different values … |
The End.