ndeniche 402 Posting Virtuoso Featured Poster

I don't know, the contact info was blank after you told me to check... Thought I hadn't entered them, but halfaw through editing my profile I remembered I had. I then edited my profile again (the Google+ url was too long) and it had cleared the info again.

ndeniche 402 Posting Virtuoso Featured Poster

I did have to re-enter my info... And the textboxes for the contact info render empty when I go to the edit profile page.

ndeniche 402 Posting Virtuoso Featured Poster

There they are :D Everything else looks awesome!

ndeniche 402 Posting Virtuoso Featured Poster

Well, straight forward I can see something very wrong with your code: you didn't define any <head> tags, and you closed the <body> tag without opening it.

About the error, I just tried that exact same code and I had no problem. The only way that should give you trouble is if you try to access the home.php by itself, not through the form.

ndeniche 402 Posting Virtuoso Featured Poster

Just noticed, the contact info is now hidden... Any specific reason as to why?

ndeniche 402 Posting Virtuoso Featured Poster

Like it!! Specially the rankings on the headers of the sections

ndeniche 402 Posting Virtuoso Featured Poster

Well, this IS DANIweb... I think you should do it... A little nostalgia for cscgal though, but IMO you definitely should :)

ndeniche 402 Posting Virtuoso Featured Poster

YES!! That's exacty what I meant... Silly me for not mentioning the PM example :P

ndeniche 402 Posting Virtuoso Featured Poster

Agreed. I, for one, don't see a problem with the actual layout regarding Related Articles. I was just suggesting for other people's convenience :)

ndeniche 402 Posting Virtuoso Featured Poster

The other way around: I'd like to be notified by email (I could get a reply while I'm not logged in), but I also would like to get notified on-site. I'm aware of the "Watched Articles" link at the top of the page, but I think something can be added to let you know if a watched article has been updated since the last time you watched it. For example, the number notification in facebook.

The way I see it (maybe this makes my point any clearer), it's as if facebook didn't show the little red number besides the notification button. That way, you can't know straight forward when you have new updates.

ndeniche 402 Posting Virtuoso Featured Poster

Heh, yes I have the adblocker enabled... I KNEW something used to be there and was now missing xD

Ok, nevermind then. What about some AJAX? Perhaps locating the "Related Articles" spot below the reply spot, and after a reply has been made, move it below the latest post (the reply you just made).

ndeniche 402 Posting Virtuoso Featured Poster

Though, going all the way to my email to check when my article was updated seems to me like a way too long process. For instance, just now I was checking some old articles (remembering some old times) while expecting a response to this post. A notification system would've indicated me when your answer was posted. I am in favor to a weekly digest showing the posts in which you participated and such, but I also think a notification system would make things easier.

Perhaps it could be integrated as a number thingy (I don't know what's it called, but the same thing as in facebook, when a new notification is in order) in the "Watched Articles" link at the top? That way there's no major change in the interface.

ndeniche 402 Posting Virtuoso Featured Poster

Hey guys.

Although I've stated several times that I absolutely love the new DaniWeb, I feel that something big has been left out: a nofitication system. How can I know when someone has replied to a post I've made, or to a reply I made to a post? I feel the only way of knowing that is by watching the "All Articles" tab in the homepage, or the "Recently Updated Articles". Though, what happens if I go away for two days and want to check out which of the articles I recently posted in have had replies?

Therefore, I'd recommend adding a Notifications button in the lower menu bar (or in the upper menu, besides the username) showing how many articles have been updated (with replies, marked as solved) in a facebook/stack overflow manner. I think it'd make things easier for some of us.

Greetings to all, and as I said, I LOVE the new site :D

ndeniche 402 Posting Virtuoso Featured Poster

Perhaps the related article could be relocated? For some time (I can't remember if it was only for non-registered viewers), the OP's first post had a reduced width to make space for ads. Why not make that space for related articles? That way, there can be a list of related articles, IMO non intrusive to the reader and at the same time only appealing to anyone interested in viewing that space. Related

ndeniche 402 Posting Virtuoso Featured Poster

Yay for me. It's my second day using it (I went away for a long time) and I'm absolutely loving it. pyTony has a point though, about long posts. Maybe make it somewhat scrollable, so it won't change the page size that much, scrolling as you type.

I'm also in favor of a toggle option. I agree with deceptikon in that an AJAX popup would be unintrusive, though I'd rather see my output as I write. Perhaps though this could be included in the options panel for the Preview Pane? Maybe options can be:

  • Off
  • On (live preview)
  • On (pop-up preview)
ndeniche 402 Posting Virtuoso Featured Poster

Question: Why do you need to use a frameset/iframe? Those are some quite obsolete methods that can now be replaced by client running processes, like javascript or ajax. There are only so many cases where you actually need to use iframes.

If this is so the case, you can always nest the iframe from inside the first document you are loading. That is: the first page loads a page in an iframe that also loads a page in an iframe.

ndeniche 402 Posting Virtuoso Featured Poster

It's uniquely Daniweb's. Dani and I wrote it from scratch over the course of last winter.

Kudos, It's absolutely amazing. You should consider releasing it as open source or something. I'll even consider going back to being a sponsor to thank you for your amazing job.

ndeniche 402 Posting Virtuoso Featured Poster

Check the data in the cell, since it probably has an error, so it displays the row as if it was a different entry. If it recognized the data as distinct, it probably is.

ndeniche 402 Posting Virtuoso Featured Poster

What is this new system we're talking about?

Absolutely LOVE the new Daniweb... I just returned today after a few months and oh my lord, it looks so different and so good!!

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

Here's a great website to learn asp.NET. On database, login and security you should find what you are looking for.

Have fun learning!

ndeniche 402 Posting Virtuoso Featured Poster

How are you controlling the student's access to the information? If you're using student number autentification, you can check if the parent has associated the student number he's trying to access. If so, grant acces, else access denied.

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

Uhh... DaniWeb? xD

happygeek commented: that made me smile today, which was no small feat +0
ndeniche 402 Posting Virtuoso Featured Poster

I once did this for a vote counting project on national elections. The users would send a SMS with a pre-established string format to a certain phone number, and a text file would be downloaded from the phone company owning the phone number receiving the SMSs to my server. The server would have a running program constantly processing the text file checking for new data entry, in which case it would update the database.

In your case, if I'm not mistaken, it's a similar case: you get data from the web, maybe it could update a text file or a separate database (which could contain some kind of sentinel variable, such as "checked" or something in a column of the table) which is constantly checked by the program running on the server. This program would then process the "unchecked" data in the file or database and add it along with the variables you need to insert to the database.

Hope this is of any help.

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

Hello guys

I've recently taken participation in a music project (feel free to check us out at @lettherebmusic) where we tweet music info about a certain topic every day. I actually use tweetdeck to schedule tweets for the whole day, so that content is available all day long. The thing is, it's exhausting to input every tweet individually, so I've thought of a way of inputting the whole content, and have a webpage process it to separate every tweet individually... All that I'm missing is the API call to schedule the tweet. Anyone know how?

Tl;dr I need to know what's the API call in software like tweetdeck or hootsuite that lets you schedule tweets.

P.S. I have thought of the possibility that this is a standalone software that loads tweets from a database and feeds them to the API to post them at the time they are programmed. Could there not be a schedule API call, and instead be this the way these softwares work?

ndeniche 402 Posting Virtuoso Featured Poster

Make sure your png files have a transparent background. If not so, edit them with an image editor (not paint) and remove the background and save them as png (make sure that all "include background color" options are NOT selected.

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
ndeniche 402 Posting Virtuoso Featured Poster
ndeniche 402 Posting Virtuoso Featured Poster

I'd rather be a wimp than a coward

ndeniche 402 Posting Virtuoso Featured Poster

Hello guys and girls

I couldn't hel to wonder what is daniweb's community position towards the Stop Online Piracy Act to be discussed today in the US Congress.

Is Dani censoring the logo tonight?

ndeniche 402 Posting Virtuoso Featured Poster

Also, this only happens to me while using Internet Explorer. Firefox works fine (chrome, Opera and Safari are not included because of the security block for javascript and file inputs. I know that's an issue, but I'll solve it later)

ndeniche 402 Posting Virtuoso Featured Poster

I'm developing a web app in which I have a file upload option. The thing is, my file input is hidden, and instead, a textbox and a button are used, in order to style the input, copy the file input's value and allowing the user write a link address into the textbox (the php upload page recognizes the text in the textbox and takes action if the text is a hyperlink or a file upload).

The problem is, when I submit the form, the php is catching the file input's value as empty. So I removed the hidden property of the file input, in order to check what was wrong, and I noticed the input's value is being reset on form submit. When not hidden it takes me two button clicks to submit the form, being the first one the responsible for cleaning the file input. Though, if I assign it's value directly from the input object, it works perfectly.

What is going on?

Here's the code:

<form name="frmProject" id="frmProject" method="post" target="uploadTrg" enctype="multipart/form-data" action="upload.php">
    <div>
        <input type="textbox" class="frmObject" name="fakeFile" id="fakeFile" />
        <button type="button" class="frmObject" id="btnFile" >
            <img src="images/open.png" height="20" />
        </button><br />
        <input type="file" id="trueFile" name="trueFile" />
    </div>
    <input type="button" class="frmObject" id="postDetailButton" value="Save" />
</form>

The javascript taking action into the submitting process (and form processing) is as follows:

$("#trueFile").live("change", function(){
    $("#fakeFile").val($(this).val());
});

$("#postDetailButton").live("click", function(){
    $("#frmProject").submit();
});

$("#btnFile").live("click", function(){
    $("#trueFile").trigger("click");    
});
ndeniche 402 Posting Virtuoso Featured Poster

Ok, found what is affecting my hover property... Seems like the z-index of the outer container of my table is affecting my row, so the hover propert only works over the text in the table.

How can I override this?

ndeniche 402 Posting Virtuoso Featured Poster

Hello guys

I have two table styles for a web application, in which the tables rows are clickable as objects (meaning, clicking anywhere in the <tr></tr> tag will send the click command.

The problem is, my two table styles behave differently. I want the row to change background color on hover, so that, if my cursor is anywhere on the row (any cell), the row will activate the on hover style.

The first style works perfectly, though the second not as much. My two styles are as follows:

#formProyectoContainer .form  .table
{
	background-color:#fff;
	background-image:url("images/tblBackground.png");
	background-repeat:no-repeat;
	background-position:bottom right;
	
	border:inset 2px #ccf;
	border-radius:5px;
	-moz-border-radius:5px;
	
	overflow:auto;
	width:100%;
	height:200px;
}

#formProyectoContainer .form  .table table
{
	background-repeat:no-repeat;
	background-position:bottom right;

	border-collapse:collapse;
	border-radius:5px;
	width:100%
}

#formProyectoContainer .form  .table table tr
{
	background-image:url("images/tblRowBackground.png");
	border: 1px solid #fff;
	cursor:pointer;
}

#formProyectoContainer .form  .table table thead tr th
{
	background-color:#bbc;
	cursor:default;
}

#formProyectoContainer .form  .table table tr:hover
{
	background-image:url("images/tblRowBackgroundHover.png");
}

#formProyectoContainer .form  .table table tr td, #formProyectoContainer .form  .table table thead tr th
{
	padding:8px;
}

This one above works fine. The one I have problems with is this one

.tableDetalle
{

	background-color:#fff;
	background-image:url("images/tblBackground.png");
	background-repeat:no-repeat;
	background-position:bottom right;
	
	border:inset 2px #ccf;
	border-radius:5px;
	-moz-border-radius:5px;
	
	overflow:auto;
	width:96%;
	height:85%;
	
	margin:20px;
	position:absolute;
	
	font-size:small;
	
}

.tableDetalle table
{
	border-collapse:collapse;
	border-radius:5px;
	width:100%
}

.tableDetalle table tr
{
	background-image:url("images/tableGrey.png");
	border:solid 1px #ccc;
	cursor:pointer;
}

.tableDetalle table thead tr th
{
	background-color:#ccc;
	text-align:left;
}

.tableDetalle table tr:hover
{
	background-image:url("images/tblRowBackgroundHover.png");
}

.tableDetalle table tr td, .tableDetalle table thead tr th
{
	padding-left:5px;
}

Where can …

ndeniche 402 Posting Virtuoso Featured Poster

Hey guys... It's been a long time since I've been at the lounge (or the site, for that matter). The thing is, I've been a bit busy with some things going on. The thing is, I'm finally starting my own company. My IT Consultant and software developer company.

The thing is, I'm stuck in that place many of other entrepreneurs have seen themselves stuck for a while: what the hell will I name it? Well, in service of the community, I thing it might be good to start a name thread so that people like myself can stop by and take a hint for a cool name, in accordance to what they are looking for.

In my case, I came up with the name "INTECS, Intelligent Technological Solutions", though in my country the name Intecs was already taken (lucky me, huh?).

So, whaddaya say? Lets help some fellow IT guys in this awfully hard step :)

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

Nichito,

What you listed is some of the information I'm looking for. Maybe if I get my own default stylesheet developed I'll post it here. What I see missing from your list is things like body and h tags.

Well, that is because I didn't include it.

The tags are as follows:

body
{
background-color:#ccc;
font-family:Helvetica;
color:#fff;
}

#wrapper
{
width:960px;

position:absolute;
left:0;
right:0;
margin-left:auto;
margin-right:auto;
}

#wrapper .header
{
width:100%;
}

#navbar
{
display:inline-block;
}

#content
{
width:100%;
}

#footer
{
width:100%
}

And so on and so on... This is the basic layout, where I specify the main containers of my web page. From here you may apply styles as you wish.

Hope this helps

ndeniche 402 Posting Virtuoso Featured Poster

I usually code my pages from the begginning, but the structure always remains the same:

- A wrapper,
- A header,
-Logo display
-Navigation bar
- A content wrapper,
-A column based layout
- A footer

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)