ndeniche 402 Posting Virtuoso Featured Poster

There's a way to prevent automatic photo uploads by Dropbox, right there in the settings.

ndeniche 402 Posting Virtuoso Featured Poster

my internet is slow at the moment... still downloading the installer

ndeniche 402 Posting Virtuoso Featured Poster

I had already heard about this service, though I didn't know that they had already laucnhed the Windows and Mac clients.

I have 50Gb on Dropbox (thanks to my Samsung purchase). Still, there's never "too much" cloud storage space. Here's my referral link.

ndeniche 402 Posting Virtuoso Featured Poster

You should try implementing a triple nested loop: one that calls for the C and Y values, one for the X values and one for the D values, in that order of nesting.

Until you show us the code you tried, can we help you with some code. Do your own homework.

ndeniche 402 Posting Virtuoso Featured Poster

Sure! It can happen to anyone :P

ndeniche 402 Posting Virtuoso Featured Poster

An exception? Or a warning?

Also, I suggest you put the else return value outside of the loop. If you're trying to check wether a string is inside an array, putting the second return into the else statement will quit your loop right after the validation didn't get the searched value in the first try (given that it is not on the first position in the array). This may also solve your "unreachable code detected" warning.

public static int search(string Registration)
    {
        // this method will search for registration, if found it will return the index value , else it will return max value + 1          
        for (int x = 0; x < numOfRowsCars; x++)
        {
            reg = ds1.Tables["tblCars"].Rows[x][2].ToString();
            MessageBox.Show(reg);
            if (Registration == reg)
            {
                // Then return the index of the registration number 
                return x;
            }//move else to end of row
        }
        // Then return the max index + 1
        return numOfRowsCars;
    }
ndeniche 402 Posting Virtuoso Featured Poster

oh, you mean the size changing on hover? Maybe just change the color of the text and a text-shadow... Also, the last lines of your code are unnecessary: you're giving the same properties to every nth-child, so a simple ul.main_menu li a:hover at line 32 and removing lines 36+ should do

ndeniche 402 Posting Virtuoso Featured Poster

What exactly d you want to do? "Fluid" layouts are supposed to adapt to window size, which your navbar does.

ndeniche 402 Posting Virtuoso Featured Poster
<?php
session_start();
if(isset($_SESSION['views']))
  unset($_SESSION['views']);
?>
ndeniche 402 Posting Virtuoso Featured Poster

How about a session variable?

ndeniche 402 Posting Virtuoso Featured Poster

Add this:

#navMenu ul li{
    float: left;
}

Since your submenu elements are not floated, they will just overflow all over the place.

ndeniche 402 Posting Virtuoso Featured Poster

First of all, you should get familiarized with mysql_fetch_array, since mysql_fetch_assoc is getting dropped in php5...

Second, check your mysql syntax for any errors. Does $row['dateCreated'] print any value?

ndeniche 402 Posting Virtuoso Featured Poster

For future reference, Alt + 7 (or Alt + Shift + 3 on a Mac)

ndeniche 402 Posting Virtuoso Featured Poster

Assuming your a.project content is inside your #shownews, you should use $('a.project').on('click', function(e){...}); instead of the click function, since it will only work for the content you load the first time, and is not binded to dynamically created objects.

ndeniche 402 Posting Virtuoso Featured Poster

TextBox1.PasswordChar = "*"

More like = "•", but yeah xD

ndeniche 402 Posting Virtuoso Featured Poster

You could extend the submenu width to make it fit... Oooor, you could wrap the text in the submenu item so it won't overflow from the box by assigning a width to the <li> element

ndeniche 402 Posting Virtuoso Featured Poster

Did you try scrolling to the bottom of the page?

ndeniche 402 Posting Virtuoso Featured Poster

Well, you could create a function in MYSQL that would return the next number in the database. That way, when you open a new citation, it will load the next number. If you look back to an old citation,once you close it and open a new one, just call the function and the next number should show up.

ndeniche 402 Posting Virtuoso Featured Poster

You can do this by using AJAX. It's an incredibly useful tool.

ndeniche 402 Posting Virtuoso Featured Poster

You can create an array that tracks which items have been selected, so everytime an item is selected it adds +1 to the item's value in the array. Then, after the form is submitted (or in the form submit action) you call the function that stores the data into de db, so that it runs the database update for every element in the array.

ndeniche 402 Posting Virtuoso Featured Poster

Well, your tag names are all wrong. Try this:

HTML

<div id="wrapper">
    <div class="logo"><img src="meshomagic_logo.jpg" width="559" height="280" alt="meshomagic logo"></div>
    <div class="bgShape"><img src="images/logo_bg.png" width="1000" height="114"></div>
</div>

CSS

#wrapper .bgShape {
position: absolute;
left: 0px;
top: 0px;

}
#wrapper .logo {
background-color: #000;
position: relative;
top: 0px;
z-index: 2;
}
ndeniche 402 Posting Virtuoso Featured Poster

You could make the dropdown to collect the data from a dataset with a select command that selects unique records for the CellName:

SELECT UNIQUE CellName FROM Table
ndeniche 402 Posting Virtuoso Featured Poster

Reputation indicates how "trustable" your posts are according to Daniweb community. These points are awarded in support forums, and there are no points for upvoted or downvoted posts in the lounge or other community forums.

You get reputation when someone upvotes a comment you made on an article, and negative reputation is awarded when you're downvoted.

ndeniche 402 Posting Virtuoso Featured Poster

well, the main() function, the int main() and the void main() all do the same, which is process the main process of the program. The difference is int main() is the only right way of calling it, since every program, when called, returns an "error message" that the OS interprets, in which case, closing the program with a return 0; tells the process calling your program that it ended without a problem.

As for include <iostream> and using namespace std;, the first one calls the library to be used in the program... There's A LOT of libraries you can use, and there's infinite possibilities of libraries you can create to use in your program. The second one declares the namespace to be used from the libraries you are calling, in this case, the std namespace of the iostream library.

ndeniche 402 Posting Virtuoso Featured Poster

Also, you can refer to this post for more info on setting up a visit counter (contains information about website, address, etc.)

ndeniche 402 Posting Virtuoso Featured Poster

Have you any knowledge of php sessions? If so, create a session variable for every user that logs in, adding up to the counter stored in your database. Assing a timeout period for the session, so that once the user has been away for that time period (say, 30 minutes), another logon to the site will count as a new visit.

ndeniche 402 Posting Virtuoso Featured Poster

If you're looking for a blog layout of some sort (three columns, and such) you should consider setting the widths by percentage, thus making the sizes relative to the column container (the outer div).

As for the column alignment, you could float all the columns left. That way, the left one goes first, the middle one in the middle, and the last one to the right.

ndeniche 402 Posting Virtuoso Featured Poster

If you're promting the user to enter a filename to which you'll save the information, I'd recommend you ask for it in a separate function, since reading it from the main() function means sending the parameters when executing the program, either from a shortcut link or a shell call from another program.

Just use a function prompting the user (via printf or cout) to enter a filename.

ndeniche 402 Posting Virtuoso Featured Poster

Use DataGridView1.Rows.RemoveAt(DataGridView1.SelectedRows(0).Index) and remove the allow multiples rows selection from the properties of the datagrid. That should do it.

ndeniche 402 Posting Virtuoso Featured Poster

Also, shouldn't you specify what king of db variable you are adding with values? The way you're doing it, you are going to need some single quotes in the text fields.

ndeniche 402 Posting Virtuoso Featured Poster

So, in the end, your formulas are as follows:

decTotalPercentage = decPercentage / 100 * intMonths
decFinalPercentage = decMoney * decTotalPercentage

In which, if you replace and resume, it is

decFinalPercentage = decMoney + decMoney * (decPercentage / 100 * intMonths)
'OR
decFinalPercentage = 300 + 300 * (0.3 / 100 * 10)

And the result is 309

ndeniche 402 Posting Virtuoso Featured Poster

Your formula for percentage is wrongly stated, since you are multiplying the percentage to the months and adding it to the total, so the total is not actually participating in the percentage.

Besides, your percentage conversion is wrong. Remember 0.3% != 0.3 but 0.3% = 0.003 .

So, that said, your formula should be 300 + (0.003 * 10) the way you stated it. And, to take the percentage of the amount you want to operate, change the '+' for an '*', and you're set. Like this:

300 * (0.003 * 10)
ndeniche 402 Posting Virtuoso Featured Poster

You can check out this snippet and edit it for email validation.

ndeniche 402 Posting Virtuoso Featured Poster

Try storing the value for the div's id in a hidden input. This way, you can access the value by calling the hidden value associated with the div.

ndeniche 402 Posting Virtuoso Featured Poster

switch the quotation marks in the query, since mysql won't take quotations (" ").

$insertquery = "insert into users(Name, password, email) values('" . $_POST['Name']
               . "', '" . sha1($_POST['Password'] . "', '" . $_POST['email'] . "')";
ndeniche 402 Posting Virtuoso Featured Poster

You are just missing the validation

Dim check As Boolean
    For i as Integer = 0 To dataGrid1.rows.count

    check = DataGridView1.Rows(i).Cells(0).Value

    If check Then
        Exit For
    End If

    Next

    If Not check Then
        MessageBox.Show("You didn't check any checkbox")
    End If
ndeniche 402 Posting Virtuoso Featured Poster

can you post your latest code?

ndeniche 402 Posting Virtuoso Featured Poster

After changing the range for the cycle? Make sure it stops at dataGridView1.Rows.Count -1 .

Try putting a Breakpoint (for debugging) at the start of the cycle so you can check how many times it is repeating and thus identify the error's cause

ndeniche 402 Posting Virtuoso Featured Poster

Oh... I see the problem. Change the following line:

For i as Integer = 0 To dataGridView1.Rows.Count - 1

Since the array of rows starts from 0, and in the case of your datagridview ends in 3 (0, 1, 2, 3)

ndeniche 402 Posting Virtuoso Featured Poster

try switching "chk" for 0

ndeniche 402 Posting Virtuoso Featured Poster

Also, try to standarize your quotation marks and colons, since you tend to use both for the same thing:

$passwordHash = strip_tags($_POST["Password"]);
$repeatpassword= strip_tags($_POST['Password2']);

Try doing both like this always:

$passwordHash = strip_tags($_POST['Password']);
$repeatpassword= strip_tags($_POST['Password2']);

Or like this:

$passwordHash = strip_tags($_POST["Password"]);
$repeatpassword= strip_tags($_POST["Password2"]);

Besides, you declared the variables and assigned them the $_POST values, but you didn't use them.

ndeniche 402 Posting Virtuoso Featured Poster

You have to specify a connection to the mysql_query function:

mysql_query($insertquery, $connection);
ndeniche 402 Posting Virtuoso Featured Poster

how did you enter the .Cells() parameter?

ndeniche 402 Posting Virtuoso Featured Poster

the index is the column number in the cell array (which composes the row). Each cell has a header (or title) which was specified when you specified how many (or which) columns were in the datagrid.

If you don't know what's the name of the column, simply enter (instead of .Cells["checkbox"] ) the number of the column (starting your count by 0) .Cells[0]

ndeniche 402 Posting Virtuoso Featured Poster

Sorry... Let me correct that code. (I got mixed up the language :P)

Dim check As Boolean
For i as Integer = 0 To dataGrid1.rows.count
    check = DataGridView1.Rows(i).Cells("checkbox").Value 'checkbox being the name of the column
                                                        'you can access it by index as well
Next
If check Then
    MessageBox.Show("You didn't check any checkbox")
End If
ndeniche 402 Posting Virtuoso Featured Poster

Try Password , capitalizing the first letter, as in the input's name

ndeniche 402 Posting Virtuoso Featured Poster

Lol... Thought it was a more complex concept... I do recall the yellow design. (Actually tried to copy it once, I admit).

In accordance to the subject, why were the user badges removed from the certificates?. Why not show in them who is "special" in DW?

ndeniche 402 Posting Virtuoso Featured Poster

you can go through the whole datagrid (meaning the rows in the datagrid) assigning the checked of the checkbox column. At the end of the cycle, if any of the ceckboxes is checked, your boolean will be true.

Like this:

Dim check As Boolean
For i as Integer = 0 To dataGrid1.rows.count
    check = datagrid1.rows[i].cells["checkbox"].checked 'checkbox being the name of the column
Next
If check Then
    MessageBox.Show("You didn't check any checkbox")
End If
ndeniche 402 Posting Virtuoso Featured Poster

It seems to me i'm a little out of date... I don't recall the multiple badges to select from, neither the "purple wars"... Could someone explain plox? :P

ndeniche 402 Posting Virtuoso Featured Poster

Wouldn't it make your database more efficient if you stored the image file in the server and just stored the image's address in the database instead?