hericles 289 Master Poster Featured Poster

You'll get a lot of differing views on this but my take is that the code should be self-documenting i.e. it is written well enough that its purpose can be easily seen by reading it.
This is by no means always possible so if you have a chunk of complicated code your comments should be sufficient to explain how it works.
There is nothing worse then getting someone else's code (or your own after a few months) and finding a complicated section with a comment at the top that says,
for example, "this parses the data into the correct format".

Traevel commented: // TODO javadoc +5
hericles 289 Master Poster Featured Poster

Is the data for the questions already part of the page or is it being retrieved from a server? If the questions are already part of the page you can use jquery to show/hide the sections in order as the user progresses through the survey.
If the data is being retrieved from a server you'll need to use AJAX to fetch the next chunk of data and then reload the correct section of the page.

hericles 289 Master Poster Featured Poster

Initialise the string sql to some value and the warning will go away.
Even this is fine:
string sql = null;
The compiler simply wants to know that not initialising the variable was a deliberate action rather than a mistake.

hericles 289 Master Poster Featured Poster

I'm not too good with Python myself but I think you'll getting the index wrong because Python uses zero based indexes.
You're setting the number of rows the list has with
self.rows += 1
but then using that same amount to locate the element in the list:
self.add_programs[self.rows].append(ProgramControls(program_controls, program))

So, if you set self.rows = 4, that means the elements 0,1,2,3 exist but 4 does not. Try [self.rows-1] for line 28.

hericles 289 Master Poster Featured Poster

It doesn't appear in the add/remove software list of the control panel?
If you look in the installed folder you may find an uninstall.exe in there. If yes, then just run that.
If its a simple aplication (I'm not familar with Zwinky) it could just be a matter of deleting the application folder.

hericles 289 Master Poster Featured Poster

Travel overseas while you are young. I spent 3 years tripping around the place and while your career is on hold during that time the results in terms of maturity and experience and well worth it. If you're money or career focuseed then don't, you'll just regret it later.
Get fit and stay fit. It doesn't matter what you do but get to a decent level of cardio fitness and muscular development (and I don't mean bodybuilder level). Your ability to build muscle and reach a decent level of fitness decline as you age. So get fit now as its easier to maintain fitness than acquire it. It'll help you age well.

RikTelner commented: Thank you! Precisely what I meant! +0
hericles 289 Master Poster Featured Poster

You need to realise that the steps you have taken that you've outlined above, your competition has done too.You can't just tick the boxes and sit back and wait to appear on page 1 for a contested search term. It just won't happen.
Alexa scores that site at 20 million. The top result for your search terms scores 45000 (the rest keep increasing from there).
You say its been a month which is not very long to generate a lot of usage data, build up back links or gain credibility with the search engines.
Scooter, the second website, has 45000 back links going by an online tool, your site has none. You can start to see the difference now?
SEO takes a lot of work and time.

hericles 289 Master Poster Featured Poster

You're need to quote the path if it has spaces. The command line treats a space as a delimiter so it would think something like Documents and Settings, for example, is a command with 3 parameters,'document', 'and', and 'settings'

hericles 289 Master Poster Featured Poster

Your last IF statement checks for the status of IsValidFile and if is true (line 52) you direct the code into displaying "You have not specified a file", which is obviously incorrect as IsValidFile is true;
If you haven't uploaded a file then IsValidFile must be false so it is correctly, by your code, displaying the 'Invalid file' message.
Basically, your loop construction around IsValidFile is incorrect.

hericles 289 Master Poster Featured Poster

The PictureBox has a ImageLocation property. You set that to be the URL of the image. Are you storing the URL as text in the db or the image itself?

hericles 289 Master Poster Featured Poster

Not sure if this is the solution but I found this on SOClick Here

This can happen, for example, if you are using mysql_use_result() and try to execute a new query before you have called mysql_free_result(). It can also happen if you try to execute two queries that return data without calling mysql_use_result() or mysql_store_result() in between.

Maybe worth a go.

hericles 289 Master Poster Featured Poster

The simple stuff first: Does this
"select code, name from hvomaster where TYPE=1"
actually return a populated result set? I.e. is there data to put into the drop down?

hericles 289 Master Poster Featured Poster

post up some code, I'm flying blind here

hericles 289 Master Poster Featured Poster

A background image will be cropped by the actual height/width of the div it is in. if you wanted to see the full image the div would need to have a height and width specified of 800x600. background images don't imply their size on their container

hericles 289 Master Poster Featured Poster

Um, screenshot? Are you saying you have specified an image that is 600x800px but you can only see one text row worth of the image?
That would imply the div is only the size of the text row, not the size of the image. if you're familar with chrome developer tools you could inspect the element to see what was going wrong.

hericles 289 Master Poster Featured Poster

Is there an apache error log? It should have the actual reason for the failure. What you have posted looks like the XAMPP log.

hericles 289 Master Poster Featured Poster

Simply put, you aren't restricting the query you are sending to the database.
SELECT * FROM members
selects everything. You need to add a where clause and pass in whatever value you want to use as a criteria. For example, to get members in a particular ZIP code:
SELECT * FROM members WHERE zip_code = 89102;
The column name would have to match of course, it may not be called zip_code.
And the actual number would come from the input the user filled out.

hericles 289 Master Poster Featured Poster

You will need to convert the number into a character array and then loop through it, outputting each character at a time.

hericles 289 Master Poster Featured Poster

Is there a question here? Anything you want help on?

hericles 289 Master Poster Featured Poster

No, it opens on touch and thats it. No further activity no matter what you do

hericles 289 Master Poster Featured Poster

iPhone 4 - the menu unfolds correctly on click

hericles 289 Master Poster Featured Poster

OK, time to post up some code I think. This is a java project?
No matter what the language a blank page is generally caused by a code error. Are you using try/catch blocks?

hericles 289 Master Poster Featured Poster

404 means page not found so check your URLs are correct. You'll have a typo or misconfigured URL somewhere. Or the file doesn't actually exist of course...

hericles 289 Master Poster Featured Poster

MailChimp or ConstantContact. I've used both and slightly prefer MailChimp. Both have good APIs available too.

hericles 289 Master Poster Featured Poster

A double loop should do the trick

For Each house as string in housing
    For Each person as string in people
        Dim s as string = house + "-" + person
    Next
Next

My VB.Net is a little rusty so my syntax maybe off but that should be the general idea.

hericles 289 Master Poster Featured Poster

The first parameter of ArrayList.set() is an integer. Client is clearly not an integer and so you are getting that error.

hericles 289 Master Poster Featured Poster

Seeing as your select statement doesn't include a WHERE statement I'm going to assume the query is returning more than one row. You are then looping through all returned rows and setting all of your variables.
At the end of this loop your variables are equal to the LAST row returned from the database. It's pretty unlikely that this row ID will match your $id variable.
Should your query be using a WHERE to get all rows matching $id?

hericles 289 Master Poster Featured Poster

You need to set display: inline-block for the li elements of the ul.
At the moment you have only told the ul to display inline with other sibling elements, which won't affect its children.

hericles 289 Master Poster Featured Poster

The basic problem is that it uses :hover to determine when to display the menu. Touch devices have no equivalent to :hover as it is meaningless. They only respond to touches.
Adding JS onclick or something similar is required.

hericles 289 Master Poster Featured Poster

Hmmm, a down and no comment. Wish whoever did those could at least explain themselves.

Anyway, I'm not sure what trouble you are having now. I'll see if I can find the time to put a sample of what I mean together. Probably be easier.

hericles 289 Master Poster Featured Poster

I don't understand what you mean. What is data record vice and row vice?
What data from the table do you want to display on the screen?

hericles 289 Master Poster Featured Poster

Add a jquery function to each checkbox in the first group, either as a click or change function, and from that click/change call a method that examines each checkbox and if they are all checked, displays the second set.
Something like:

$(document).ready(function() {
    $('#checkbox1').change(function() {
        checkCheckboxes();
    });
    // or the click method
    $('#checkbox1').click(function() {
        if ($(this).is(':checked')) {
            checkCheckboxes();;
        }
    });
});

function checkCheckboxes() {
    if (all checkboxes are checked) {
        $('.secondSet').css('display', 'block');
    }
}
hericles 289 Master Poster Featured Poster

And that, of course, is exactly what I meant. "db\" <- TWO back slashes!!

hericles 289 Master Poster Featured Poster

That \ is the .Net escape character.
Say you wanted to split a string on the double quote you would write it as
split("\"") otherwise the second quote gets detected as the end of the string.

Which means you need to have ("db\") to stop the \ being the escape character and be read as the character you actually want.

hericles 289 Master Poster Featured Poster

I saw this straight away:

$children = $_POST['children'];
$cge = $_POST['age'];
$children = implode(',',$children);
$age = implode(',',$age);

Line 4 should refer to $cge as the $age variable in the implode parameters is probably null at that point. that or rename $cge to $age.

hericles 289 Master Poster Featured Poster

you can either do multiple conditions in the WHERE statement:
WHERE id = x OR id = y etc
or you can use the in statement if you would rather pass in a group of values:
WHERE id in (x,y,z, etc)
and, of course, you could combine them if that works better:
WHERE id = x OR id in (a,b,c,d)

Obviously, the values from the datagrid would need to be passed in as parameters.

hericles 289 Master Poster Featured Poster

You could just rename or delete the favicon. Or do you not have access to it?

hericles 289 Master Poster Featured Poster

There's no specified way to do that (as far as I know). Any diagram that indicates the various components and where they sit in relation to each other should be fine.
Just google 'n tier diagram' and you'll find plenty of examples.

strRusty_gal commented: Thank You! +3
hericles 289 Master Poster Featured Poster

And it tells you exactly why it failed.
Add the xlmns to the html element and adjust the DOCTYPE as it suggests.
You did read the output from the validator didn't you?

hericles 289 Master Poster Featured Poster

A primary index cannot be a sparse index as primary indexes cannot hold NULL values.
You can use a sparse column as part of a clustered key though.
Is that what you are asking?

hericles 289 Master Poster Featured Poster

Both of those should work. Is your actual table different from this one? Because if you only have one row and one cell and no other styling how are you observing the width of the cell?

hericles 289 Master Poster Featured Poster

Firstly, i is just an integer that you use to loop through with. It isn't the collection of numbers that the user entered. So checking
if(i % 2 == 1)
doesn't help you with your average because it has nothing to do with the input.

hericles 289 Master Poster Featured Poster

The default width of your inputs is the problem. Specify a shorter width for all of your textboxes and you'll be able to make the table narrower. I think the default width of a text input is 20 characters if you don't specify a value and so that will be limiting how narrow your table can be.

hericles 289 Master Poster Featured Poster

You could use AJAX and when the response comes back use jQuery to alter the CSS on the form and the message.
Unless you have some extra code somewhere, your method will display the thank you message regardless of how the submit process goes e.g. the code fails behind the scenes for whatever reason, the data isn't saved and the thank you message appears. User leaves happy thinking everything worked.

hericles 289 Master Poster Featured Poster

A 404 is fairly straightforward. I couldn't access that javascript file either but can reach others used by www.rovespier.com located in the same directory. I would conclude that jquery.dropdown.js doesn't exist.

hericles 289 Master Poster Featured Poster

Access denied for user at least means you are connecting to the server. You're getting denied due to either the user name or the password. Have you tried just
$username="mydbphp";

Drop the host part. That might help. Although you create a user in mysql specifying the host it normally isn't part of the login user name.

hericles 289 Master Poster Featured Poster

I'm assuming you removed the password for this post and it is being included in the actual config.
The only advice I can give is to double check what you should be passing in. In particular the db name and server. Are you sure it shouldn't be localhost or include a port number?

hericles 289 Master Poster Featured Poster

What do you mean "won't play"? Is the site appearing without any styling?
I'm pretty sure chrome reads CSS and javascript locations correctly.

hericles 289 Master Poster Featured Poster

You have a return statement before other code you want to run.
Code after a return statement gets skipped because the return state redirected back to wherever it was called from immediately.
If you have:

return true;
disable = false;  // this line never gets read

You haven't posted up actual code however but if this mimics your live code I'd say that is your problem.

hericles 289 Master Poster Featured Poster

Sure, I added:
line-height: 20px; // or whatever you need
to the <ul> element.