<?xml version="1.0" encoding="utf-8" ?><?xml-stylesheet type="text/xsl" href="http://www.daniweb.com/js/rss.xsl"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community
								</title>
		<link>http://www.daniweb.com/</link>
		<description>Online discussion community for IT professionals and enthusiasts. Technology publication meets social media.</description>
		<language>en-US</language>
		<ttl>60</ttl>
		<!-- PubSubHubbub Discovery -->
		<link rel="hub" href="http://daniweb.superfeedr.com/" xmlns="http://www.w3.org/2005/Atom" />
		<link rel="self" href="http://www.daniweb.com/rss/pull" xmlns="http://www.w3.org/2005/Atom" />
		<!-- End Of PubSubHubbub Discovery -->
				<item>
			<title>upon loading , form autosubmits empty fields to database</title>
			<link>http://www.daniweb.com/web-development/php/threads/455250/upon-loading-form-autosubmits-empty-fields-to-database</link>
			<pubDate>Fri, 24 May 2013 13:40:05 +0000</pubDate>
			<description>this is link to code http://jsbin.com/ixupuk/4/edit when my form is loaded into browser OR refreshed, all fields are auto-submitted to mysql database.. i included at the bottom, an if(isset) statement that i couldnt get to work. thanx</description>
			<content:encoded><![CDATA[ <p>this is link to code <a href="http://jsbin.com/ixupuk/4/edit" rel="nofollow">http://jsbin.com/ixupuk/4/edit</a><br />
when my form is loaded into browser OR refreshed, all fields are auto-submitted to mysql database..<br />
i included at the bottom, an if(isset) statement that i couldnt get to work.<br />
thanx</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>amkaos</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455250/upon-loading-form-autosubmits-empty-fields-to-database</guid>
		</item>
				<item>
			<title>c programming language</title>
			<link>http://www.daniweb.com/software-development/c/threads/455249/c-programming-language</link>
			<pubDate>Fri, 24 May 2013 13:29:14 +0000</pubDate>
			<description>how to check for a input num if it is negative or zero? and repeat this process until a positive value is entered</description>
			<content:encoded><![CDATA[ <p>how to check for a input num if it is negative or zero? and repeat this process until a positive value is entered</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>nitish.mohiputlall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455249/c-programming-language</guid>
		</item>
				<item>
			<title>Web application run only 2hr daily</title>
			<link>http://www.daniweb.com/web-development/jsp/threads/455248/web-application-run-only-2hr-daily</link>
			<pubDate>Fri, 24 May 2013 13:09:35 +0000</pubDate>
			<description>hi I want to create an application which contain servlet and jsp and also connected with database but i only want that login page will be open from 05:00hr to 10:00 hr before and after nobody able to access/login the page if they do that it reject the request how ...</description>
			<content:encoded><![CDATA[ <p>hi<br />
I want to create an application which contain servlet and jsp and also connected with database<br />
but i only want that login page will be open from 05:00hr to 10:00 hr before and after nobody able to access/login the page<br />
if they do that it reject the request<br />
how it is possible</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/jsp/24">JSP</category>
			<dc:creator>bhallarahul</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/jsp/threads/455248/web-application-run-only-2hr-daily</guid>
		</item>
				<item>
			<title>Using C language</title>
			<link>http://www.daniweb.com/software-development/c/threads/455247/using-c-language</link>
			<pubDate>Fri, 24 May 2013 13:03:14 +0000</pubDate>
			<description>write a program that prompts the user to input a positive integer , if the user enters zero or a negative value for nu, it prompts user to input num again and repets this process untill unser inputs a correct value. it then display the sum of the numbers 1 ...</description>
			<content:encoded><![CDATA[ <p>write a program that prompts the user to input a positive integer , if the user enters zero or a negative value for nu, it prompts user to input num again and repets this process untill unser inputs a correct value. it then display the sum of the numbers 1 to num</p>

<p>i am having difficulties to do the loop on how the program will check whether the entered num is 0 or negative...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>nitish.mohiputlall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455247/using-c-language</guid>
		</item>
				<item>
			<title>Setup Using Ms Access Database</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455246/setup-using-ms-access-database</link>
			<pubDate>Fri, 24 May 2013 12:56:41 +0000</pubDate>
			<description> Hi All, I am developing a windows application which uses Ms Access Database. The code is working smoothly in Visual Studio. But, when I create a setup for that project and install it on any machine. I am not able to write data in that datbase. I think its because ...</description>
			<content:encoded><![CDATA[ <pre><code class="language-cs">Hi All,
      I am developing a windows application which uses Ms Access Database. The code is working smoothly in Visual Studio. But, when I create a setup for that project and install it on any machine. I am not able to write data in that datbase. I think its because of limited access permissions. But then I tried to apply access permissions through code. It runs good again on Visual Studio but after installation it shows error." Attempted to perform an unauthorized operation"

Can any one tell me how to solve this.

Thanks In Advance
Victoryy
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>Victoryy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455246/setup-using-ms-access-database</guid>
		</item>
				<item>
			<title>embedding video on webpage</title>
			<link>http://www.daniweb.com/web-development/php/threads/455245/embedding-video-on-webpage</link>
			<pubDate>Fri, 24 May 2013 12:54:18 +0000</pubDate>
			<description>Good Morning, I'v been combing through the net including many links on this site, trying to get the necessary information to make a video play on my webpage. No Luck I've tried multiple pieces of code to embed the video, but in each case I am faced with either a ...</description>
			<content:encoded><![CDATA[ <p>Good Morning,</p>

<p>I'v been combing through the net including many links on this site, trying to get the necessary information to make a video play on my webpage.  No Luck</p>

<p>I've tried multiple pieces of code to embed the video, but in each case I am faced with either a black screen or a note saying that a plugin is needed or No video with supported mime types found...  But never a functioning playback of the video.</p>

<p>When I click on the link to install the necessary plug in, I get a message that it is an unknown plugin...</p>

<p>What I have is a .wmv</p>

<p>this is the webpage  <a href="http://www.hctubs.com/syllent_vid.php" rel="nofollow">http://www.hctubs.com/syllent_vid.php</a></p>

<p>Here is the code that I currently have in place</p>

<pre><code>&lt;object width="300" height="250" type="video/x-ms-asf" url="video.wmv"
data="/downloads/video/Syllent.wmv" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"&gt;
&lt;param name="url" value="/downloads/video/Syllent.wmv"&gt;
&lt;param name="filename" value="/downloads/video/Syllent.wmv"&gt;
&lt;param name="autostart" value="1"&gt;
&lt;param name="uiMode" value="full"&gt;
&lt;param name="autosize" value="1"&gt;
&lt;param name="playcount" value="1"&gt;
&lt;embed type="application/x-mplayer2" src="/downloads/video/Syllent.wmv" width="300"
height="250" autostart="true" showcontrols="true"
pluginspage="<a href="http://www.microsoft.com/Windows/MediaPlayer/" rel="nofollow">http://www.microsoft.com/Windows/MediaPlayer/</a>"&gt;&lt;/embed&gt;
&lt;/object&gt;
</code></pre>

<p>Any suggestions on making this work or on other alternatives that may be better would be greatly appreciated.</p>

<p>Do I need a different format video?</p>

<p>thanks in advance<br />
Douglas</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>showman13</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455245/embedding-video-on-webpage</guid>
		</item>
				<item>
			<title>Web Scraping .net site</title>
			<link>http://www.daniweb.com/software-development/python/threads/455244/web-scraping-.net-site</link>
			<pubDate>Fri, 24 May 2013 12:54:09 +0000</pubDate>
			<description>Hello, I would like to scrape http://www.cpso.on.ca/publicregister/default.aspx?id=2048. by city. Specifically I have list of city names I would enter on the &quot;form&quot;, hit submit and then collect/ parse all the results (across all pages), and then repeat for each city. I have never had to do a &quot;post&quot; before and ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I would like to scrape <a href="http://www.cpso.on.ca/publicregister/default.aspx?id=2048." rel="nofollow">http://www.cpso.on.ca/publicregister/default.aspx?id=2048.</a>  by city. Specifically I have list of city names I would enter on the  "form", hit submit and then collect/ parse all the results (across all pages), and then repeat for each city. I have never had to do a "post" before and this one is unlike any thing I've ever seen. Not even sure where to begin. Not sure how mechanize would work (or could work) in such a situation.</p>

<p>Thanks for any help.</p>

<p>B</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>Diaphanosoma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455244/web-scraping-.net-site</guid>
		</item>
				<item>
			<title>How can I create 2 forms in java</title>
			<link>http://www.daniweb.com/software-development/java/threads/455243/how-can-i-create-2-forms-in-java</link>
			<pubDate>Fri, 24 May 2013 12:45:34 +0000</pubDate>
			<description>Hi DW Well I'm new in java I'm using Visual Basic the most so now I just decided to cross platforms and start doing java, so there is a project that I'm trying to create in jave (I'm sorry for the namings just in case I don't use the right ...</description>
			<content:encoded><![CDATA[ <p>Hi DW</p>

<p>Well I'm new in java I'm using Visual Basic the most so now I just decided to cross platforms and start doing java, so there is a project that I'm trying to create in jave (I'm sorry for the namings just in case I don't use the right java word it because I'm new and I'm famillier with VB.Net).</p>

<p>What I want is that I want to create 2 (Forms) I don't know whether you also call it forms in java or not but I want to create 2 forms in one project and what I want is that I want the first form to be the one that will be loaded when the program starts and it will wait for a Control Button Click event once this event happens it will then call or load the 2nd form and the 2nd form must set to always onTop and when I close the second form I want the first form not to close. what I also want is to hide the first form by removing it or hiding it icon on a task bar and on the processes and it also must be invisible. In vb.net I wrote it like this:</p>

<pre><code class="language-java">Public Class Form1
    ' Handling the key down and Load the 2nd form
    Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
        If My.Computer.Keyboard.CtrlKeyDown Then
            Form2.Show() ' Loading form2
            Form2.Visible = True ' Making it be visible
        End If
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.Visible = False ' Hiding the form1
        Me.ShowIcon = False ' Hiding the Icon from
        Me.ShowInTaskbar = False ' Hiding the form on taskbar
    End Sub

End Class
</code></pre>

<p>any one who can help me in this please.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>mr hacker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455243/how-can-i-create-2-forms-in-java</guid>
		</item>
				<item>
			<title>Java cmd command</title>
			<link>http://www.daniweb.com/software-development/java/threads/455242/java-cmd-command</link>
			<pubDate>Fri, 24 May 2013 12:39:33 +0000</pubDate>
			<description>I have a Java web application, which executes cmd command to load remote desktop window. Now I want everyone to load the remote resktop window from their pc through that web app. The problem is remote desktop window is loaded in the server NOT from the PC of the person ...</description>
			<content:encoded><![CDATA[ <p>I have a Java web application, which executes cmd command to load remote desktop window. Now I want everyone to load the remote resktop window from their pc through that web app. The problem is remote desktop window is loaded in the server NOT from the PC of the person who accessed the web app.<br />
How do I make the web app to execute the command in the users pc and not in the server.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>manaila</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455242/java-cmd-command</guid>
		</item>
				<item>
			<title>PostqreSQL Duplicate Values WHERE NOT EXISTS</title>
			<link>http://www.daniweb.com/web-development/databases/threads/455241/postqresql-duplicate-values-where-not-exists</link>
			<pubDate>Fri, 24 May 2013 12:09:58 +0000</pubDate>
			<description>I made this code: INSERT into author(authorfirstname1, authorlastname1,authorfirstname2, authorlastname2) select '&quot;.addslashes($_POST['authorfirstname1']).&quot;','&quot;.addslashes($_POST['authorlastname1']).&quot;','&quot;.addslashes($_POST['authorfirstname2']).&quot;','&quot;.addslashes($_POST['authorlastname2']).&quot;' from author where not exists(select authorfirstname1, authorlastname1, authorfirstname2, authorlastname2 from author where author.authorfirstname1='&quot;.addslashes($_POST['authorfirstname1']).&quot;' and author.authorlastname1='&quot;.addslashes($_POST['authorlastname1']).&quot;' and author.authorfirstname2='&quot;.addslashes($_POST['authorfirstname2']).&quot;' and author.authorlastname2='&quot;.addslashes($_POST['authorlastname2']).&quot;' ); The point of this code should be that it checks, if a value allready exists in database and if ...</description>
			<content:encoded><![CDATA[ <p>I made this code:</p>

<pre><code class="language-sql">INSERT into author(authorfirstname1, authorlastname1,authorfirstname2,  authorlastname2) 
    select '".addslashes($_POST['authorfirstname1'])."','".addslashes($_POST['authorlastname1'])."','".addslashes($_POST['authorfirstname2'])."','".addslashes($_POST['authorlastname2'])."'
  from author      
where not exists(select authorfirstname1, authorlastname1, authorfirstname2, authorlastname2 from author 
        where author.authorfirstname1='".addslashes($_POST['authorfirstname1'])."' 
            and author.authorlastname1='".addslashes($_POST['authorlastname1'])."' 
                and author.authorfirstname2='".addslashes($_POST['authorfirstname2'])."' 
                    and author.authorlastname2='".addslashes($_POST['authorlastname2'])."'
                     );
</code></pre>

<p>The point of this code should be that it checks, if a value allready exists in database and if it doesnt, then it enters it.<br />
This '".addslashes($_POST['authorlastname2'])."' represents an input, but could easyly be replaced with '%myentereddata%'</p>

<p>My problem is that it doesnt do anything...doesnt even give error message, its success, but it doesnt enter data if data doesnt exist in db allready and not sure if it stops entering data if data exists.</p>

<p>So I would be thankful if someone could help me to solve the problem with this code or give another example how to do it differently, so that it would work.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/16">Databases</category>
			<dc:creator>nao.chungs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/threads/455241/postqresql-duplicate-values-where-not-exists</guid>
		</item>
				<item>
			<title>Ensuring that a daily cron keeps executing within a given range of dates</title>
			<link>http://www.daniweb.com/web-development/php/threads/455240/ensuring-that-a-daily-cron-keeps-executing-within-a-given-range-of-dates</link>
			<pubDate>Fri, 24 May 2013 12:05:53 +0000</pubDate>
			<description>Hi, I am working on a code that dispatches airtime depending on a schedule that is specified. Now all works just fine. The only problem is that the code executes only once. To throw more light, here is how it is meant to work; 1. An administrator creates a schedule, ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I am working on a code that dispatches airtime depending on a schedule that is specified. Now all works just fine. The only problem is that the code executes only once.<br />
To throw more light, here is how it is meant to work;<br />
1. An administrator creates a schedule, specifying how frequently they want the airtime to be dispatched [working ok]<br />
2. The cron runs on a daily basis to find which airtime to send</p>

<p>Currently, I have a field called airtime status, whose default value is 0. But after sending the airtime, then the statusis updated to 1.</p>

<p>Now the real challenge is that; if this status is set to 1, it means that the script will not send that airtime again; yet it is supposed to be sent daily.</p>

<p>Any suggestions as to how I can go about this?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Webville312</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455240/ensuring-that-a-daily-cron-keeps-executing-within-a-given-range-of-dates</guid>
		</item>
				<item>
			<title>columns with div&#039;s</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/455238/columns-with-divs</link>
			<pubDate>Fri, 24 May 2013 11:40:15 +0000</pubDate>
			<description>Hi with the following code i am able to bring 3 Div's in a single row which are surrounded by a parent DIV. Now the problem is separating each div with a vertical line which makes it look like table cells in a single row. This can be done easily ...</description>
			<content:encoded><![CDATA[ <p>Hi with the following code i am able to bring 3 Div's in a single row which are surrounded by a parent DIV. Now the problem is separating each div with a vertical line which makes it look like table cells in a single row. This can be done easily by applying "border-right" on each DIV. But here there is a problem.</p>

<p>In these 3 div's Every div grows(height) independently based on the size of the content. So all the vertical lines should be of the height of the highest Div's height. I mean for example in the 3 div's suppose, first div height is 100px and second div height is 200px and third div height is 50px. Now all the vertical lines separating Div's should be of 200px. So it looks like real cells in a single row. Kindly help me in solving this problem?</p>

<pre><code class="language-xhtml">&lt;div style="border:2px solid red; overflow: hidden;"&gt;
   &lt;div style="width:100px;height:100px;border:2px solid yellow;float:left;"&gt;&lt;/div&gt;
   &lt;div style="width:100px;height:100px;border:2px solid black;float:left"&gt;   &lt;/div&gt;
   &lt;div style="width:100px;height:100px;border:2px solid black;float:left"&gt;   &lt;/div&gt;
 &lt;/div&gt;
</code></pre>

<p>Thanks in advance.</p>

<p>Thanks and Regards,<br />
Muralidhar Yaragalla.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/web-design-html-and-css/15">Web Design, HTML and CSS</category>
			<dc:creator>yaragalla_mural</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/455238/columns-with-divs</guid>
		</item>
				<item>
			<title>PDF edit</title>
			<link>http://www.daniweb.com/web-development/php/threads/455237/pdf-edit</link>
			<pubDate>Fri, 24 May 2013 10:45:36 +0000</pubDate>
			<description> Hello all, this might not be related to php (I don't know which forum I should post this topic) so I thought may be someone could help me out. How to edit pdf file ? Is there any specific software to edit adobe pdf file ? I have tried adobe ...</description>
			<content:encoded><![CDATA[ <p>Hello all,</p>

<p>this might not be related to php (I don't know which forum I should post this topic) so I thought may be someone could help me out.</p>

<p>How to edit pdf file ?  Is there any specific software to edit adobe pdf file ?</p>

<p>I have tried adobe acrobat x yet I do not know how to do it nor how to use the software.</p>

<p>Anyone could help me give any further recommendation?</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>davy_yg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455237/pdf-edit</guid>
		</item>
				<item>
			<title>would Penguine 2.0 stop spamming</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455236/would-penguine-2.0-stop-spamming</link>
			<pubDate>Fri, 24 May 2013 10:24:12 +0000</pubDate>
			<description>Most of Internet Marketing Company India are running hard to design the best offer to get morr client ensutring them safety from google updates. it seems that they are taking undue advantage of innocense of webowners. Actually, if a wenbsite is promoted genuineely, there is no risk of any uipdate.</description>
			<content:encoded><![CDATA[ <p>Most of Internet Marketing Company India are running hard to design the best offer to get morr client ensutring them safety from google updates. it seems that they are taking undue advantage of innocense of webowners. Actually, if a wenbsite is promoted genuineely, there is no risk of any uipdate.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>samyakonline</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455236/would-penguine-2.0-stop-spamming</guid>
		</item>
				<item>
			<title>Login to direct user type to a different page</title>
			<link>http://www.daniweb.com/web-development/php/threads/455235/login-to-direct-user-type-to-a-different-page</link>
			<pubDate>Fri, 24 May 2013 10:00:58 +0000</pubDate>
			<description>Hi I have some script that I have used for sometime so understand it is out of date code, but it works. I want to amend it so that it also checks a field user_type and on successful login directs each to a differnt page. The code at the moment ...</description>
			<content:encoded><![CDATA[ <p>Hi</p>

<p>I have some script that I have used for sometime so understand it is out of date code, but it works. I want to amend it so that it also checks a field user_type and on successful login directs each to a differnt page. The code at the moment takes username and password from a login page, checks it (code below) and either takes user to a main page if correct or tells them username or password is wrong.</p>

<pre><code>&lt;?php require_once('Connections/Connection1.php'); ?&gt;

&lt;?php
$tbl_name="users"; // Table name 



// Connect to server and select databse.
//mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
//mysql_select_db("$db_name")or die("cannot select DB");
mysql_select_db($database_Connection1, $Connection1);

// username and password sent from form 
$myusername=$_POST['myusername']; 
$mypassword=md5($_POST['mypassword']); 




// To protect MySQL injection (more detail about MySQL injection)
$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);
$myusername = mysql_real_escape_string($myusername);
$mypassword = mysql_real_escape_string($mypassword);

$sql="SELECT * FROM $tbl_name WHERE userid='$myusername' and 

password='$mypassword'";
$result=mysql_query($sql);


// Mysql_num_row is counting table row
$count=mysql_num_rows($result);

// If result matched $myusername and $mypassword, table row must be 1 row

if($count==1){

// Register $myusername, $mypassword and redirect to file "login_success.php"
session_register("myusername");
session_register("mypassword"); 
header("location:main.php?myusername=".$myusername);
}
else {
header("location:login_failed.php");
//echo "Wrong Username or Password";
}
?&gt;
</code></pre>

<p>Any help would be very much appreciated!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mdemetri2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455235/login-to-direct-user-type-to-a-different-page</guid>
		</item>
				<item>
			<title>another HQL statement question</title>
			<link>http://www.daniweb.com/software-development/java/threads/455234/another-hql-statement-question</link>
			<pubDate>Fri, 24 May 2013 09:42:10 +0000</pubDate>
			<description>hey there, I am working on this project where I need to retreive merchant objects and their corresponding number of failed transactions. In pure SQL, I'd just write : &quot;select merchant_id , count(merchant_id) from Transactions where status = 'failed' group by merchant_id&quot; however, the only way I managed to write ...</description>
			<content:encoded><![CDATA[ <p>hey there, I am working on this project where I need to retreive merchant objects and their corresponding number of failed transactions.</p>

<p>In pure SQL, I'd just write :</p>

<pre><code class="language-java">"select merchant_id , count(merchant_id) from Transactions where status = 'failed' group by merchant_id"
</code></pre>

<p>however, the only way I managed to write the query and have something returned for hql is:</p>

<pre><code class="language-java">select max(T.merchant), count(T.merchant) from Transaction  T where T.status = 'failed' group by T.merchant
</code></pre>

<p>now, max(T.merchant) is where I am afraid I could do better. but without it, I get a "not a group by statement" error. Although my query seems to work well, I am wondering if I can do this better. MAX(T.merchant) is not limiting the number of rows to 1, which is what I want, but contrary to my expectation for how MAX would work. Anyone?<br />
Thanks in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>bibiki</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455234/another-hql-statement-question</guid>
		</item>
				<item>
			<title>Problem in Lan</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455233/problem-in-lan</link>
			<pubDate>Fri, 24 May 2013 09:31:28 +0000</pubDate>
			<description>Friends, I am Developing a Windows Application For Lan, I am able to Scaning Pc's Name Which Are Connected on My Lan on Same Workgroup, But I have Problem That If Sudden I Get Lost Connection With any Client Pc, or Client Pc Become Shut Down So it Should Make ...</description>
			<content:encoded><![CDATA[ <p>Friends,</p>

<p>I am Developing a Windows Application For Lan, I am able to Scaning Pc's Name Which Are Connected on My Lan on Same Workgroup, But I have Problem That If Sudden I Get Lost Connection With any Client Pc, or Client Pc Become Shut Down So it Should Make a Indication, How Can I Do That.<br />
I Were Thinking to Ping Every Pc On Timer Event But In this Condition I am Able to Scanning The Ip Address of Client Pc's, Please Suggest How Can i Do This or The Other Way to Solve My Problem, Please Help Me...........</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>manoj_582033</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455233/problem-in-lan</guid>
		</item>
				<item>
			<title>extern</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455230/extern</link>
			<pubDate>Fri, 24 May 2013 09:18:47 +0000</pubDate>
			<description>Hi. In a project of mine, I have many different files 1.h, 1.cpp, 2.h, 2.cpp, 3.h, 3.cpp etc. Some of the functionality in them depend on veriables or functions in the others. If I juggle the #includes around I can get around most of it, for instance, if functionality in ...</description>
			<content:encoded><![CDATA[ <p>Hi.</p>

<p>In a project of mine, I have many different files 1.h, 1.cpp, 2.h, 2.cpp, 3.h, 3.cpp etc.<br />
Some of the functionality in them depend on veriables or functions in the others.<br />
If I juggle the #includes around I can get around most of it, for instance, if functionality in 2.cpp requires a variable from 3.cpp, then #include "3.h" goes first.</p>

<p>Sometimes however I can not do that, and use global variables and the extern keyword which works fine.<br />
However, I am at a point (very deep into my project) where I could do with, not a variable but a function from another file, the function is not within a class.</p>

<p>My question is, is there a similar method for functions as there is with extern keywaod for variables.</p>

<p>I know my project might not have been thought thougrily through and some things are afterthoughts you see. So until I re-design it I'm hoping there is a workaround.</p>

<p>Thanks for reading.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Suzie999</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455230/extern</guid>
		</item>
				<item>
			<title>Web CartBean problems</title>
			<link>http://www.daniweb.com/software-development/java/threads/455229/web-cartbean-problems</link>
			<pubDate>Fri, 24 May 2013 09:09:00 +0000</pubDate>
			<description>i am a beginner here, now i am having trouble adding function to the buttons.(i have no idea what to do so might need deep explaination on everything) i totally don't know how to add function onto the button. here is my code: Second part is servlet &lt;%@page import=&quot;ejb.CartServlet&quot;%&gt; &lt;%@page ...</description>
			<content:encoded><![CDATA[ <p>i am a beginner here, now i am having trouble adding function to the buttons.(i have no idea what to do so might need deep explaination on everything)<br />
i totally don't know how to add function onto the button.<br />
here is my code:<br />
Second part is servlet</p>

<pre><code class="language-java">&lt;%@page import="ejb.CartServlet"%&gt;
&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
&lt;!DOCTYPE html&gt;

&lt;html&gt;
    &lt;head&gt;
        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
        &lt;title&gt;JSP Page&lt;/title&gt;
        &lt;script&gt;
            function appleFunction()
            {
                alert("Apple is added!");
            }
            function grapeFunction()
            {
                alert("Grape is added!");
            }
            function peachFunction()
            {
                alert("Peach is added!");
            }
            function kiwiFunction()
            {
                alert("Kiwi is added!");
            }
        &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;h1&gt;Fruits Corder&lt;/h1&gt;
        &lt;h6&gt;Customer Name:&lt;/h6&gt;
        &lt;form action="CartServlet" method="post"&gt;
        &lt;input type ="text" name="customerName1"&gt;
        &lt;input type="button" name="login" value="Login" onclick=""&gt;&lt;/input&gt;
        &lt;h5&gt;Adding fruits to cartBean for a customer&lt;/h5&gt;
        &lt;table&gt;
            &lt;th&gt;Item&lt;/th&gt;
            &lt;th&gt;Item Name&lt;/th&gt;            
            &lt;tr&gt;
                &lt;td&gt;&lt;img src="apple.jpg" alt="applePic" width="100" height="100"&gt;&lt;/td&gt;                
                &lt;td&gt;&lt;input type="text" name="appleName" value="Apple"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="button" name="addbut1" value="Add" onclick=""&gt;&lt;/td&gt;                
                &lt;td&gt;&lt;input type="button" name="remove1" value="Remove" onclick=""&gt;&lt;/td&gt;              
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;&lt;img src="grape.png" alt="grapePic" width="100" height="100"&gt;&lt;/td&gt;              
                &lt;td&gt;&lt;input type="text" name="grapeName" value="Grape"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="button" name="addbut2" value="Add"&gt;&lt;/td&gt;                    
                &lt;td&gt;&lt;input type="button" name="remove2" value="Remove" onclick=""&gt;&lt;/td&gt;
            &lt;/tr&gt;  
            &lt;tr&gt;
                &lt;td&gt;&lt;img src="peach.jpg" alt="peachPic" width="100" height="100"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="text" name="peachName" value="Peach"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="button" name="addbut3" value="Add"&gt;&lt;/td&gt;    
                &lt;td&gt;&lt;input type="button" name="remove3" value="Remove" onclick=""&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;&lt;img src="kiwi.jpg" alt="kiwiPic" width="100" height="100"&gt;&lt;/td&gt;               
                &lt;td&gt;&lt;input type="text" name="kiwiName" value="Kiwi"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="button" name="addbut4" value="Add"&gt;&lt;/td&gt;    
                &lt;td&gt;&lt;input type="button" name="remove4" value="Remove" onclick=""&gt;&lt;/td&gt;
            &lt;/tr&gt;

        &lt;/table&gt;
        &lt;h1&gt;Cart List&lt;/h1&gt;
        &lt;input type="submit" name="update" value="Update"&gt;
        &lt;input type="button" name="refresh" value="Refresh"&gt;
        &lt;/form&gt;
    &lt;/body&gt;
&lt;/html&gt;


package ejb;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ejb.EJB;


/**
 *
 * @author chiewwei
 */
@WebServlet(name = "CartServlet", urlPatterns = {"/CartServlet"})
public class CartServlet extends HttpServlet {

    @EJB
    private CartBeanRemote myCartBean;

  //  CartBeanRemote cartBean = lookupCartBeanRemote();
    public void login(){
        myCartBean.initialize("ken", "189");
    }

    public void addApple(HttpServletRequest request,HttpServletResponse response){
        String name = request.getParameter("appleName");
        myCartBean.addItem(name);
    }

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {

        String name1 = request.getParameter("grapeName");
        String name2 = request.getParameter("peachName");
        String name3 = request.getParameter("kiwiName");

        myCartBean.addItem(name1);
        myCartBean.addItem(name2);
        myCartBean.addItem(name3);

        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
            /* TODO output your page here. You may use following sample code. */
            out.println("&lt;!DOCTYPE html&gt;");
            out.println("&lt;html&gt;");
            out.println("&lt;head&gt;");
            out.println("&lt;title&gt;Servlet CartServlet&lt;/title&gt;");            
            out.println("&lt;/head&gt;");
            out.println("&lt;body&gt;");
            out.println("&lt;h1&gt;" + myCartBean.getItems() + "&lt;/h1&gt;");
            out.println("&lt;/body&gt;");
            out.println("&lt;/html&gt;");
        } finally {            
            out.close();
        }
    }

    // &lt;editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code."&gt;
    /**
     * Handles the HTTP
     * &lt;code&gt;GET&lt;/code&gt; method.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        processRequest(request, response);
    }

    /**
     * Handles the HTTP
     * &lt;code&gt;POST&lt;/code&gt; method.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        processRequest(request, response);
    }

    /**
     * Returns a short description of the servlet.
     *
     * @return a String containing servlet description
     */
    @Override
    public String getServletInfo() {
        return "Short description";
    }// &lt;/editor-fold&gt;

 /**   private CartBeanRemote lookupCartBeanRemote() {
        try {
            Context c = new InitialContext();
            return (CartBeanRemote) c.lookup("java:global/EJBCartApp/EJBCartApp-ejb/CartBean!ejb.CartBeanRemote");
        } catch (NamingException ne) {
            Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception caught", ne);
            throw new RuntimeException(ne);
        }
    }*/
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>ocw91</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455229/web-cartbean-problems</guid>
		</item>
				<item>
			<title>Social Media relies on Cloud Computing</title>
			<link>http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455228/social-media-relies-on-cloud-computing</link>
			<pubDate>Fri, 24 May 2013 08:57:30 +0000</pubDate>
			<description>What do you think? Everywhere there is buzz about cloud computing.How is it helpful to business?</description>
			<content:encoded><![CDATA[ <p>What do you think?<br />
Everywhere there is buzz about cloud computing.How is it helpful to business?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/social-media-and-communities/50">Social Media and Communities</category>
			<dc:creator>zCloudCommerce</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455228/social-media-relies-on-cloud-computing</guid>
		</item>
				<item>
			<title>for loop in php </title>
			<link>http://www.daniweb.com/web-development/php/threads/455227/for-loop-in-php-</link>
			<pubDate>Fri, 24 May 2013 08:56:27 +0000</pubDate>
			<description>If I have dropdownlist as below &lt;select onChange=&quot;this.value;&quot;&gt; &lt;option value=&quot;Volvo&quot; id=&quot;volvo&quot;&gt;Volvo&lt;/option&gt; &lt;option value=&quot;Saab&quot; id=&quot;saab&quot;&gt;Saab&lt;/option&gt; &lt;option value=&quot;VW&quot; id=&quot;vw&quot;&gt;VW&lt;/option&gt; &lt;option id=&quot;audi&quot; value=&quot;Audi&quot; selected&gt;Audi&lt;/option&gt; &lt;/select&gt; I want to display discription of item selectd so I have below code &lt;div id=&quot;boxpopup&quot; class=&quot;box&quot;&gt; &lt;a onClick=&quot;closeOffersDialog('boxpopup');&quot; class=&quot;boxclose&quot;&gt;&lt;/a&gt; &lt;div id=&quot;content&quot;&gt; This is popupbox of Audi &lt;/div&gt;&lt;!--end of ...</description>
			<content:encoded><![CDATA[ <p>If I have dropdownlist as below</p>

<pre><code>&lt;select onChange="this.value;"&gt;  
  &lt;option value="Volvo" id="volvo"&gt;Volvo&lt;/option&gt;    
  &lt;option value="Saab" id="saab"&gt;Saab&lt;/option&gt;    
  &lt;option value="VW" id="vw"&gt;VW&lt;/option&gt;    
  &lt;option id="audi" value="Audi" selected&gt;Audi&lt;/option&gt;                  
&lt;/select&gt; 
</code></pre>

<p>I want to display discription of item selectd so I have below code</p>

<pre><code>&lt;div id="boxpopup" class="box"&gt;  
    &lt;a onClick="closeOffersDialog('boxpopup');" class="boxclose"&gt;&lt;/a&gt;  
    &lt;div id="content"&gt;  
    This is popupbox of Audi   
    &lt;/div&gt;&lt;!--end of content --&gt; 
&lt;/div&gt;&lt;!--end of popupbox --&gt;     
</code></pre>

<p>now in content can I give If else  as below</p>

<pre><code>    &lt;div id="boxpopup3" class="box"&gt;  
        &lt;a onClick="closeOffersDialog('boxpopup');" class="boxclose"&gt;&lt;/a&gt;  
        &lt;div id="content"&gt; 
            &lt;?php if($id=="volvo"){ ?&gt; 
            This is popupbox of Volvo
            &lt;?php } elseif($id=="saab"){ ?&gt;
            This is popupbox of Saab 
            &lt;?php } elseif($id=="vw"){ ?&gt;
            This is popupbox of VW 
            &lt;?php } else { ?&gt;
            This is popupbox of Audi
            } ?&gt;
        &lt;/div&gt;&lt;!--end of content --&gt; 
    &lt;/div&gt;&lt;!--end of popupbox --&gt;
</code></pre>

<p>The error is occurs<br />
Notice: Undefined variable: id<br />
please help me :(</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>shilu2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455227/for-loop-in-php-</guid>
		</item>
				<item>
			<title>What assembly language is friendly to beginners?</title>
			<link>http://www.daniweb.com/software-development/assembly/threads/455224/what-assembly-language-is-friendly-to-beginners</link>
			<pubDate>Fri, 24 May 2013 07:58:14 +0000</pubDate>
			<description>I am have been programming in C++ for a few years now. Now I would like to also learn assembly language. I have tried NASM, but I dont like it, it works better on linux and my main development platform is windows. I have also tried FASM, its better but ...</description>
			<content:encoded><![CDATA[ <p>I am have been programming in C++ for a few years now. Now I would like to also learn assembly language.</p>

<p>I have tried NASM, but I dont like it, it works better on linux and my main development platform is windows.<br />
I have also tried FASM, its better but I couldnt find good documentation on it.<br />
I dont care for the syntex although I like the Intel syntex more e.g.</p>

<pre><code class="language-cpp">mov eax, 4
</code></pre>

<p>I want an assembler that is easy to learn, and have good documentation from which I can learn and that I can program bootloaders and other chipset based stuff like writing drivers for security cameras etc.</p>

<p>I am currently developing from an 64 bit cpu, so the assembler should support atleast 32 bit / 64 bit.<br />
My main platform is 64-bit windows 7.</p>

<p>Thanks...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/assembly/125">Assembly</category>
			<dc:creator>MasterHacker110</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/assembly/threads/455224/what-assembly-language-is-friendly-to-beginners</guid>
		</item>
				<item>
			<title>Cannot understand object</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455223/cannot-understand-object</link>
			<pubDate>Fri, 24 May 2013 07:57:05 +0000</pubDate>
			<description>Hi all, I have taken from net drop down menu script my web page is medistyle.az. It works perfectly but when i look up code i cannot understand one thing there below is code (js. file) var menu=function(){ var t=15,z=50,s=6,a; function dd(n){this.n=n; this.h=[]; this.c=[]} dd.prototype.init=function(p,c){ a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, ...</description>
			<content:encoded><![CDATA[ <p>Hi all,<br />
I have taken from net drop down menu script<br />
my web page is medistyle.az. It works perfectly<br />
but when i look up code i cannot understand one thing there<br />
below is code (js. file)</p>

<pre><code class="language-js">var menu=function(){
    var t=15,z=50,s=6,a;
    function dd(n){this.n=n; this.h=[]; this.c=[]}
    dd.prototype.init=function(p,c){
        a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
        for(i;i&lt;l;i++){
            var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];
            h.onmouseover=new Function(this.n+'.st('+i+',true)');
            h.onmouseout=new Function(this.n+'.st('+i+')');
        }
    }
    dd.prototype.st=function(x,f){
        var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0];
        clearInterval(c.t); c.style.overflow='hidden';
        if(f){
            p.className+=' '+a;
            if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0}
            if(c.mh==c.offsetHeight){c.style.overflow='visible'}
            else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)}
        }else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)}
    }
    function sl(c,f){
        var h=c.offsetHeight;
        if((h&lt;=0&amp;&amp;f!=1)||(h&gt;=c.mh&amp;&amp;f==1)){
            if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'}
            clearInterval(c.t); return
        }
        var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh;
        c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')';
        c.style.height=h+(d*f)+'px'
    }
    return{dd:dd}
}();
</code></pre>

<p>Here i dont understand what does <strong>return{dd:dd}</strong> mean. I understand dd is name of function(class) but i couldnt understand what does syntax mean (return{dd:dd})<br />
Thanks in advance for attention !!!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>azegurb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455223/cannot-understand-object</guid>
		</item>
				<item>
			<title>open file</title>
			<link>http://www.daniweb.com/software-development/c/threads/455221/open-file</link>
			<pubDate>Fri, 24 May 2013 07:30:40 +0000</pubDate>
			<description>hi all i want to open a file but this file in other directory.and i want to use this function: int open( char *filename, int access, int permission ); i can not use other function, because i have use only system call function. when file exists beside of my code, ...</description>
			<content:encoded><![CDATA[ <p>hi all<br />
i want to open a file but this file in other directory.and i want to use this function:</p>

<pre><code class="language-c">int  open(  char  *filename,  int  access,  int  permission  );
</code></pre>

<p>i can not use other function, because i have use only system call function.</p>

<p>when file exists beside of my code, there isn't problem. but when exist in other drectory can not open that.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>ferizhandi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455221/open-file</guid>
		</item>
				<item>
			<title>Reading text file for specific areas in VB</title>
			<link>http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/455220/reading-text-file-for-specific-areas-in-vb</link>
			<pubDate>Fri, 24 May 2013 06:46:21 +0000</pubDate>
			<description>I'm pretty stumped. I need to read a textfile using Streamreader in VB but not reall every single line I have to look for the line that has a specific character in a specific position to indicate that this is a start point, then read that line and the remaining ...</description>
			<content:encoded><![CDATA[ <p>I'm pretty stumped.  I need to read a textfile using Streamreader in VB but not reall every single line<br />
I have to look for the line that has a specific character in a specific position to indicate that this is a start point, then read that line and the remaining lines after until it hits the line with a specific character as a terminator.  Then find the next set of lines that match until there are no more lines to read...?  Can anyone hel?  I thought I had it but for some reason the data uploading to the DB wasn't correct  :(</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/visual-basic-4-5-6/4">Visual Basic 4 / 5 / 6</category>
			<dc:creator>loso09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/455220/reading-text-file-for-specific-areas-in-vb</guid>
		</item>
				<item>
			<title>Java Process</title>
			<link>http://www.daniweb.com/software-development/java/threads/455219/java-process</link>
			<pubDate>Fri, 24 May 2013 05:58:00 +0000</pubDate>
			<description>I hava a simple Java application which uses the `ProcessBuilder` and `Process` classes to execute **cmd** commands. The commands just load a window. Now the problem is when the window is closed, the process remains running. Below is the code snippet I have used: try { ProcessBuilder pb = new ...</description>
			<content:encoded><![CDATA[ <p>I hava a simple Java application which uses the <code>ProcessBuilder</code> and <code>Process</code> classes to execute <strong>cmd</strong> commands. The commands just load a window. Now the problem is when the window is closed, the process remains running. Below is the code snippet I have used:</p>

<pre><code class="language-java">        try {
            ProcessBuilder pb = new ProcessBuilder(commands);//command to load a gui app
            Process process = pb.start();
            process.waitFor();
        } 
        catch (IOException ioEx) {
            ioEx.printStackTrace();
        }
        catch (InterruptedException iEx) {
            iEx.printStackTrace();
        }
</code></pre>

<p>How do I make the process to stop when the window is closed?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>manaila</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455219/java-process</guid>
		</item>
				<item>
			<title>Would like some help with a C worksheet.</title>
			<link>http://www.daniweb.com/software-development/c/threads/455217/would-like-some-help-with-a-c-worksheet</link>
			<pubDate>Fri, 24 May 2013 03:58:41 +0000</pubDate>
			<description>Yeah, basically I'm asking if anyone could either walk me through a solution of a problem, or if it would be easier to simply do it themselves. I'm &quot;taking&quot; a C class, and would love it if I could get pointed in the right direction with a certain problem. All ...</description>
			<content:encoded><![CDATA[ <p>Yeah, basically I'm asking if anyone could either walk me through a solution of a problem, or if it would be easier to simply do it themselves. I'm "taking" a C class, and would love it if I could get pointed in the right direction with a certain problem.</p>

<p>All of the sorting algorithms encountered so far in this course are known as Comparison<br />
Sorting Algorithms because they order by directly comparing integers in a given array.<br />
Other Sorting algorithms sort by different methods. Often, you are given an array and<br />
asked to place the elements in their correct position. One such method is BucketSort.<br />
Your task is to implement a very simple BucketSort. It is described below.</p>

<p>You are given the birth years of fifteen random people who were born in the twentieth<br />
century (1900 - 1999). You are given the data as the following array, which is to be the<br />
only argument used in your BucketSort function:<br />
birthYears[] = {84, 51, 92, 72, 17, 62, 1, 16, 10, 28, 99, 71, 45, 18, 61};</p>

<p>Your function will have return type void and will work in the following manner:</p>

<p>• Create a 10x 10 array, which will represent the decades, and call it decade. Thus<br />
decade[0][1] -&gt; decade[0][9] will represent the 00’s, decade[1][0] -&gt; decade[1][9]<br />
will represent the 10’s, and so on up to decade[9][0] -&gt; decade[9][9] which will<br />
represent the 90’s.</p>

<p>• Initialize your array so that it contains only -1’s.</p>

<p>• Now go through the array birthYears and put each element in its appropriate<br />
bucket, and in its appropriate index (WATCH THE INDICES) in your decade<br />
array.</p>

<p>• Finally, trawl through decades, removing the elements one at a time and put back<br />
into the array birthYears. They should already be in the correct order.</p>

<p>Yeah... just any guidance at all, that'd be great.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>blackcathacker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455217/would-like-some-help-with-a-c-worksheet</guid>
		</item>
				<item>
			<title>VBscript to find duplicates within an array and increment it by 1</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455216/vbscript-to-find-duplicates-within-an-array-and-increment-it-by-1</link>
			<pubDate>Fri, 24 May 2013 03:54:43 +0000</pubDate>
			<description>Hi, I have a scenario where in I had to sort an array, find duplicates and increment one or the other by 1. So, Eg: An array has 22, 23, 21, 21, 24 within it then, an array should be able to find 21 and increment it by 1 i.e. ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I have a scenario where in I had to sort an array, find duplicates and increment one or the other by 1.<br />
So, Eg: An array has 22, 23, 21, 21, 24 within it then, an array should be able to find 21 and increment it by 1 i.e. 22. Also, on the other hand, it should now go scanning from the start and find 22 already present and increment that by 1. So, far had managed to sort an array which is just a part of the entire project.<br />
Anyone too good in VBscript, please?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>mith_cool</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455216/vbscript-to-find-duplicates-within-an-array-and-increment-it-by-1</guid>
		</item>
				<item>
			<title>category and subcategory in oracle</title>
			<link>http://www.daniweb.com/web-development/databases/oracle/threads/455215/category-and-subcategory-in-oracle</link>
			<pubDate>Fri, 24 May 2013 03:50:42 +0000</pubDate>
			<description>what is the SQL command (Query) to create category and subcategory in oracle thanks for your time.</description>
			<content:encoded><![CDATA[ <p>what is the SQL command (Query) to create category and subcategory in oracle</p>

<p>thanks for your time.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/oracle/129">Oracle</category>
			<dc:creator>ganges</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/oracle/threads/455215/category-and-subcategory-in-oracle</guid>
		</item>
				<item>
			<title>Left Speaker is not working</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455214/left-speaker-is-not-working</link>
			<pubDate>Fri, 24 May 2013 03:48:11 +0000</pubDate>
			<description>hi, I am using Acer aspire 4730z and Ubuntu 12.04 LTS left speaker is not working and it is working in windows 7 give me valueable tips thanks in advance</description>
			<content:encoded><![CDATA[ <p>hi,<br />
I am using Acer aspire 4730z and Ubuntu 12.04 LTS</p>

<p>left speaker is not working and it is working in windows 7<br />
give me valueable tips</p>

<p>thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>ganges</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455214/left-speaker-is-not-working</guid>
		</item>
				<item>
			<title>computer logging on and off in safe mode</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/455213/computer-logging-on-and-off-in-safe-mode</link>
			<pubDate>Fri, 24 May 2013 02:50:43 +0000</pubDate>
			<description>my friend is having a problem with his pc. he says its xp service pack 3 but is not sure if its home or pro. he says one day he logs on and gets to blue screen and then computer logs right back off. he mentions that the blue screen ...</description>
			<content:encoded><![CDATA[ <p>my friend is having a problem with his pc. he says its xp service pack 3 but is not sure if its home or pro. he says one day he logs on and gets to blue screen and then computer logs right back off. he mentions that the blue screen incident only happens once now he says when he logs on it logs right back off and he is even logging in safe mode. what could be his problem and how should he fix it. also does it matter if its on a tower pc vs a lap top?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/10">Windows NT / 2000 / XP</category>
			<dc:creator>maracuya</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/455213/computer-logging-on-and-off-in-safe-mode</guid>
		</item>
				<item>
			<title>Android and Python and Games</title>
			<link>http://www.daniweb.com/software-development/python/threads/455212/android-and-python-and-games</link>
			<pubDate>Fri, 24 May 2013 01:53:27 +0000</pubDate>
			<description>I am intereseted in writing a game or two for the android platform but am much more comfortable and knowledgable about python than I am about Java. I was curious if python is used for android games and if so some basic points of advice.</description>
			<content:encoded><![CDATA[ <p>I am intereseted in writing a game or two for the android platform but am much more comfortable and knowledgable about python than I am about Java.  I was curious if python is used for android games and if so some basic points of advice.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>reddsoxy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455212/android-and-python-and-games</guid>
		</item>
				<item>
			<title>Internet Explorer keeps starting on its own.  HELP!</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/455211/internet-explorer-keeps-starting-on-its-own.-help</link>
			<pubDate>Fri, 24 May 2013 01:46:31 +0000</pubDate>
			<description>Okay, so I am horrible with computers so this may be just an easy fix. For the past two days Internet Explorer keeps on starting on its own. It does not open to an actual website but in the search bar there are always random, incomplete urls (the most recent ...</description>
			<content:encoded><![CDATA[ <p>Okay, so I am horrible with computers so this may be just an easy fix.  For the past two days Internet Explorer keeps on starting on its own.  It does not open to an actual website but in the search bar there are always random, incomplete urls (the most recent example: <a href="http://nskduikwwxzkok/" rel="nofollow">http://nskduikwwxzkok/</a>).  It's my laptop for class so it is unbelievably annoying.</p>

<p>Please, please help me out.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/64">Viruses, Spyware and other Nasties</category>
			<dc:creator>kays109</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/455211/internet-explorer-keeps-starting-on-its-own.-help</guid>
		</item>
				<item>
			<title>toggle buton problem</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455210/toggle-buton-problem</link>
			<pubDate>Fri, 24 May 2013 00:25:47 +0000</pubDate>
			<description> html &lt;div class=&quot;example2&quot;&gt; &lt;p&gt;This is some text This is some textThis is some textThis is some textThis is some text This is some textThis is some textThis is some textThis is some textThis is some text&lt;/p&gt; &lt;/div&gt; Css .button{ -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; -moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);-webkit-box-shadow:0 1px 1px rgba(0, ...</description>
			<content:encoded><![CDATA[ <pre><code class="language-js">html


&lt;div class="example2"&gt;
    &lt;p&gt;This is some text This is some textThis is some textThis is some textThis is some text
    This is some textThis is some textThis is some textThis is some textThis is some text&lt;/p&gt;
&lt;/div&gt;


Css


.button{
    -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;
    -moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);-webkit-box-shadow:0 1px  1px rgba(0, 0, 0, 0.2);box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);
    background:#eee;
    border:0;
    color:#333;
    cursor:pointer;
    font-family:"Lucida Grande",Helvetica,Arial,Sans-Serif;
    margin:0;padding:6px 4px;
    text-decoration:none;
    position:relative
}
.example1 p, .example2 p{
    border:1px solid #eee;background:#eee;
    -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;
    width:400px;
    padding:10px;
    margin:10px 0
}




Javascript code


$(document).ready(function() {
    $('.example2').hide().before('&lt;a href="#" id="toggle-example2" class="button"&gt;Open/Close&lt;/a&gt;');
    $('a#toggle-example2').click(function() {
        $('.example2').slideToggle(1000);
        return false;
    });
});
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>andi.andiiimintoyouu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455210/toggle-buton-problem</guid>
		</item>
				<item>
			<title>Need to know font name from picture</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/455209/need-to-know-font-name-from-picture</link>
			<pubDate>Fri, 24 May 2013 00:01:15 +0000</pubDate>
			<description>Hi, I'm suppose to design a page based on this image: http://postimg.org/image/il4632gjh/ I've so far recreated the menu bar on the side, but I don't know what type of font is being used. Can anyone help me out? Thanks</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I'm suppose to design a page based on this image: <a href="http://postimg.org/image/il4632gjh/" rel="nofollow">http://postimg.org/image/il4632gjh/</a><br />
I've so far recreated the menu bar on the side, but I don't know what type of font is being used. Can anyone help me out?</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/web-design-html-and-css/15">Web Design, HTML and CSS</category>
			<dc:creator>louie540</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/455209/need-to-know-font-name-from-picture</guid>
		</item>
				<item>
			<title>compare $_GET with array existence</title>
			<link>http://www.daniweb.com/web-development/php/threads/455207/compare-_get-with-array-existence</link>
			<pubDate>Thu, 23 May 2013 23:49:27 +0000</pubDate>
			<description>If I have a array: $myarray = array(&quot;10&quot;=&gt;&quot;apple&quot;, &quot;20&quot;=&gt;&quot;banana&quot;, etc..) up to 15 values. and I use $_GET['category'] to get my value from url for instance &quot;10&quot; How do I echo $myarray to be &quot;apple&quot;?</description>
			<content:encoded><![CDATA[ <p>If I have a array:<br />
$myarray = array("10"=&gt;"apple", "20"=&gt;"banana", etc..) up to 15 values.</p>

<p>and I use $_GET['category'] to get my value from url for instance "10"</p>

<p>How do I echo $myarray to be "apple"?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mjsmitten</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455207/compare-_get-with-array-existence</guid>
		</item>
				<item>
			<title>how to delete a token when cancel is clicked</title>
			<link>http://www.daniweb.com/web-development/php/threads/455206/how-to-delete-a-token-when-cancel-is-clicked</link>
			<pubDate>Thu, 23 May 2013 23:13:38 +0000</pubDate>
			<description>how can i get a token that a user has requested if he/she clicks cancel NOTE the user doesnt have to input anything if cancel is clicked that particular token is deleted from the d.b and the user is redirected to index.php i really dont know where and how to ...</description>
			<content:encoded><![CDATA[ <p>how can i get a token that a user has requested if he/she clicks cancel NOTE the user doesnt have to input anything if cancel is clicked that particular token is deleted from the d.b and the user is redirected to index.php i really dont know where and how to start so bear with me thanks anyway below is the token.php</p>

<pre><code>&lt;?php
error_reporting(0);
session_start();
$token=$_GET['token'];
include("settings.php");
connect();
if(isset ($_POST['submit'])){
$q="select email from tokens where token='".$token."' and used=0";
$r=mysql_query($q);
while($row=mysql_fetch_array($r))
   {
$email=$row['email'];
   }
If ($email!=''){
          $_SESSION['email']=$email;
}
else die("Invalid link or Password already changed  &lt;a href='../index.php'&gt;Click here to go back to the HOME PAGE&lt;a/&gt;");}

$pass=$_POST['password'];
$email=$_SESSION['email'];

if(isset($_POST['password'])&amp;&amp;isset($_SESSION['email']))
{
$q="update registration set password='".md5($pass)."' where email='".$email."'";
$r=mysql_query($q);
if($r)mysql_query("update tokens set used=1 where token='".$token."'");echo "Your password is changed successfully  &lt;a href='../index.php'&gt;Click here to go back to the HOME PAGE&lt;a/&gt;";
if(!$r)echo "An error occurred";
    }
</code></pre>

<p>and below is the formreset.php</p>

<pre><code>&lt;h3&gt;&lt;strong&gt;Forgot Password&lt;/strong&gt;&lt;/h3&gt;
      &lt;form name="forgot" method="POST" id="forgot" action="includes/reset.php?token=&lt;?php echo $_GET['token']; ?&gt;"&gt;
        &lt;div align="center"&gt;
          &lt;table width="372" border="0"&gt;
            &lt;tr&gt;
              &lt;td width="181"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
              &lt;p&gt;&lt;strong&gt;Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;
              &lt;td width="181"&gt;&lt;span id="sprytextfield1"&gt;&lt;span id="sprypassword1"&gt;
              &lt;label for="password2"&gt;&lt;/label&gt;
              &lt;br /&gt;
            &lt;input type="password" name="password" id="password2" /&gt;
                &lt;br /&gt;
                &lt;span class="passwordRequiredMsg"&gt;Your PASSWORD is need&lt;/span&gt;&lt;/span&gt;
&lt;label for="label"&gt;&lt;/label&gt;
              &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
            &lt;tr&gt;
              &lt;td height="22"&gt;&lt;p&gt;&amp;nbsp;
              &lt;p&gt;&lt;strong&gt;Confirm Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;
              &lt;td&gt;&lt;span id="spryconfirm2"&gt;
              &lt;label for="password"&gt;&lt;/label&gt;
              &lt;span id="spryconfirm1"&gt;
              &lt;label for="password1"&gt;&lt;/label&gt;
              &lt;br /&gt;
              &lt;input type="password" name="password1" id="password1" /&gt;
              &lt;br /&gt;
              &lt;span class="confirmRequiredMsg"&gt;Please re-confirm your PASSWORD&lt;/span&gt;&lt;span class="confirmInvalidMsg"&gt;The PASSWORDS don't match.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
    &lt;div align="center"&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;table width="372" border="0"&gt;
        &lt;tr&gt;
          &lt;th width="132" scope="row"&gt;&lt;input type="submit" name="submit" id="submit" value="submit" /&gt;&lt;/th&gt;
          &lt;th width="113" scope="row"&gt;&lt;a href="includes/cancel.php?token=&lt;?php echo $_GET['token']; ?&gt;"&gt;Cancel&lt;/a&gt;&lt;/td&gt;&lt;/th&gt;
          &lt;th width="113" scope="row"&gt;&lt;input type="reset" name="clear" id="clear" value="Clear" /&gt;&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/table&gt;

    &lt;/div&gt;
    &lt;div align="center"&gt;
      &lt;table width="372" border="0"&gt;
        &lt;tr&gt; &lt;/tr&gt;
        &lt;tr&gt; &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/div&gt;thanks in advance
  &lt;/form&gt;
</code></pre>

<p>so how do i go about this</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>php.coder</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455206/how-to-delete-a-token-when-cancel-is-clicked</guid>
		</item>
				<item>
			<title>&lt;unresolved overloaded function type&gt; on supposed bool</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455205/unresolved-overloaded-function-type-on-supposed-bool</link>
			<pubDate>Thu, 23 May 2013 23:09:26 +0000</pubDate>
			<description>Please consider the code below. This is a smaller version of what I'm trying to accomplish. Point instances will get random values to be printed in a 2D grid. In order not to have duplicates, I'm inserting them in `positions`. `ret` pair is used by me in order to know ...</description>
			<content:encoded><![CDATA[ <p>Please consider the code below.  This is a smaller version of what I'm trying to accomplish.</p>

<p>Point instances will get random values to be printed in a 2D grid. In order not to have duplicates, I'm inserting them in <code>positions</code>.</p>

<p><code>ret</code> pair is used by me in order to know whether a new element was inserted (<code>ret.second == true</code>) or not (<code>ret.second == false</code>).</p>

<p>The problem is that I get the message:</p>

<pre><code class="language-cpp">a.cpp:59:77: error: invalid operands of types 'bool' and '&lt;unresolved overloaded function type&gt;' to binary 'operator&lt;&lt;'
</code></pre>

<p>when try to compare <code>ret.second</code> with <code>true</code> or <code>false</code>.</p>

<p>What am I doing wrong?</p>

<pre><code class="language-cpp">#include &lt;iostream&gt;
using std::cout; using std::cerr; using std::endl; using std::cin;
#include &lt;string&gt;
using std::string;
#include &lt;vector&gt;
using std::vector;
#include &lt;map&gt;
using std::map;
#include &lt;set&gt;
using std::set;
#include &lt;utility&gt;
using std::pair; using std::make_pair;
#include &lt;cmath&gt;
#include &lt;cstdlib&gt;


class Point
{

public:
    unsigned int x_pos;
    unsigned int y_pos;
};

int main ()
{
    std::vector&lt;Point *&gt; stream;
    std::set&lt;std::pair&lt;unsigned int, unsigned int&gt; &gt; positions;
    pair&lt;set&lt;pair&lt;unsigned int, unsigned int&gt; &gt;::iterator, bool&gt; ret;

    Point * p = new Point;
    p-&gt;x_pos = 3;
    p-&gt;y_pos = 4;
    stream.push_back(p);

    p-&gt;x_pos = 1;
    p-&gt;y_pos = 1;
    stream.push_back(p);

    unsigned int x_rand;
    unsigned int y_rand;

    unsigned int i (0);    // Assign a position for every point in the stream not yet assigned to the 2D world.               
    for (vector&lt;Point *&gt;::iterator it = stream.begin(); it != stream.end(); ++it) {

        cout &lt;&lt; "iteration: " &lt;&lt; i &lt;&lt; endl;
        ret.second = false;

        while ( ret.second == false ) {
            x_rand = rand() % 2;
            y_rand = 0; // this would be another nr.                                                                          

            pair &lt;unsigned int, unsigned int&gt; p (x_rand, y_rand);
            cout &lt;&lt; "    try to insert pair x,y = " &lt;&lt; x_rand &lt;&lt; "," &lt;&lt; y_rand &lt;&lt; endl;
            ret = positions.insert (p);

            if (ret.second == false) { cout &lt;&lt; "element already present: " &lt;&lt; endl; }
            else { cout &lt;&lt; "   just inserted new element. " &lt;&lt; ret.second==true &lt;&lt; endl; }   // ERROR IN THIS LINE.
        }
        ++i;
    }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>luislupe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455205/unresolved-overloaded-function-type-on-supposed-bool</guid>
		</item>
				<item>
			<title>Interpreting pseudocode to Flowchart</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455204/interpreting-pseudocode-to-flowchart</link>
			<pubDate>Thu, 23 May 2013 22:49:05 +0000</pubDate>
			<description>When there is a if while else in pseudocode how do you interpret it in a flow chart. For example, a1 if c1 { a2 while c2 { a3 } } else { a4 } is the else statement connected to the if statement or the while statement and if ...</description>
			<content:encoded><![CDATA[ <p>When there is a if while else in pseudocode how do you interpret it in a flow chart. For example,</p>

<pre><code class="language-cpp">a1 
if c1
{
    a2
    while c2
      {
          a3 
      }
}
else 
{ 
    a4
}
</code></pre>

<p>is the else statement connected to the if statement or the while statement and if it is connected to the if statement what happens to false output for the while statement. I am new here so my apologies if this is in the wrong forum.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>pipsy17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455204/interpreting-pseudocode-to-flowchart</guid>
		</item>
				<item>
			<title>if certain words are in url</title>
			<link>http://www.daniweb.com/web-development/php/threads/455203/if-certain-words-are-in-url</link>
			<pubDate>Thu, 23 May 2013 22:38:05 +0000</pubDate>
			<description>My url's are similar like this: website/search/category,Room/region,Oregon/ website/search/category,Room/ website/search/category,Room/city,Palm Bay/ website/search/city,Palm Bay/ website/search/region,Florida/ It always contains single or combination of CATEGORY CITY REGION I want to echo in an if statement, for example: if url contains &quot;category,xxx&quot; then echo &quot;category is xxx&quot;. (xxx can be anything) I found this code: ...</description>
			<content:encoded><![CDATA[ <p>My url's are similar like this:</p>

<p>website/search/category,Room/region,Oregon/<br />
website/search/category,Room/<br />
website/search/category,Room/city,Palm Bay/<br />
website/search/city,Palm Bay/<br />
website/search/region,Florida/</p>

<p>It always contains single or combination of CATEGORY CITY REGION</p>

<p>I want to echo in an if statement, for example:<br />
if url contains "category,xxx" then echo "category is xxx".<br />
(xxx can be anything)</p>

<p>I found this code:</p>

<pre><code>                &lt;?php $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
                if (false !== strpos($url,'Room')) {
                    echo 'Room';
                } 
                    echo 'No Room';
                } ?&gt;
</code></pre>

<p>But this method is large when I have 12 or more category words, 50 region names, and hundreds of city words to compare. How to make this more easy?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mjsmitten</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455203/if-certain-words-are-in-url</guid>
		</item>
				<item>
			<title>SQL Databases</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455202/sql-databases</link>
			<pubDate>Thu, 23 May 2013 21:50:32 +0000</pubDate>
			<description>Hey all, Sorry if this is really simple but I couldn't think how to phrase what I'm looking for on google. I've designed a piece of software for a friend for their business. When I learned VB we were always taught how to use it with Access Databases. I've decided ...</description>
			<content:encoded><![CDATA[ <p>Hey all,</p>

<p>Sorry if this is really simple but I couldn't think how to phrase what I'm looking for on google.<br />
I've designed a piece of software for a friend for their business. When I learned VB we were always taught how to use it with Access Databases. I've decided this isnt very practical if: a) They have a ton of information they want to be secure (Access Databases can be cracked in seconds!) and b) If I were to market the software (it's a very unique idea which could be popular), access isnt the best to go with.</p>

<p>So i've been rewriting it to use SQL databases. However! When the software is given to the client, would they need to configure a SQL server on their PC etc? I basically want it so they can install it (using a prebuilt installer), and then they're literally good to go. With access they just need to install the Access Runtime (which I made the installer install) and then the program is able to communicate with the .mdb file in the files. What needs to be packaged with it, so even a complete idiot on a PC could use the program. If it starts asking them about MySQL configs they'll probably be stumped? I'm only just learning to use SQL, so i'm not sure if there's some runtime equivalent? Also, is SQL the best way to even do this? It's my first experience with something like this so im a bit stumped.</p>

<p>Sorry if i havent explained it brilliantly!</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Ariah17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455202/sql-databases</guid>
		</item>
				<item>
			<title>HELP -Two Monitors - Indepedent Display connected only to one tower/desktop</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455200/help-two-monitors-indepedent-display-connected-only-to-one-towerdesktop</link>
			<pubDate>Thu, 23 May 2013 20:55:25 +0000</pubDate>
			<description>Is there a software that can run two instances of windows 7 or windows 8 seperated onto two monitors and running/connected only two one desktop computer. Im not talking about hyper v or extended display. Im looking for the monitors thats running differently from one another. Can anybody help me ...</description>
			<content:encoded><![CDATA[ <p>Is there a software that can run two instances of windows 7 or windows 8 seperated onto two monitors and running/connected only two one desktop computer. Im not talking about hyper v or extended display. Im looking for the monitors thats running differently from one another. Can anybody help me out with this one?</p>

<p>Also. Software or hardware that i need to be able to do this and use two keyboards and two mouse for each display.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38">Windows Vista and Windows 7 / 8</category>
			<dc:creator>ToiNKieZ</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455200/help-two-monitors-indepedent-display-connected-only-to-one-towerdesktop</guid>
		</item>
				<item>
			<title>cfselect and cfinput type date</title>
			<link>http://www.daniweb.com/web-development/coldfusion/threads/455199/cfselect-and-cfinput-type-date</link>
			<pubDate>Thu, 23 May 2013 20:44:31 +0000</pubDate>
			<description>Is it possible to display a text box next to a cfselect upon selection in the cfselect. If someone selects an option from the dropdown I need a date type field to be display. Is this possible perhaps with coldfuision and ajax?</description>
			<content:encoded><![CDATA[ <p>Is it possible to display a text box next to a cfselect upon selection in the cfselect.</p>

<p>If someone selects an option from the dropdown I need a date type field to be display. Is this possible perhaps with coldfuision and ajax?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/coldfusion/19">ColdFusion</category>
			<dc:creator>jencinas69</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/coldfusion/threads/455199/cfselect-and-cfinput-type-date</guid>
		</item>
				<item>
			<title>CyberzHub is Mining Daniweb Data</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455198/cyberzhub-is-mining-daniweb-data</link>
			<pubDate>Thu, 23 May 2013 20:41:09 +0000</pubDate>
			<description>To Daniweb Administrators, I've just found a website which appears to be mining Daniweb data, by this I mean it has an exact replication of articles posted on Daniweb including the same usernames as those relating to members who posted content. The website is [Cyberzhub.com](http://www.cyberzhub.com) I thought I probably should ...</description>
			<content:encoded><![CDATA[ <p>To Daniweb Administrators,</p>

<p>I've just found a website which appears to be mining Daniweb data, by this I mean it has an exact replication of articles posted on Daniweb including the same usernames as those relating to members who posted content.</p>

<p>The website is <a href="http://www.cyberzhub.com" rel="nofollow">Cyberzhub.com</a></p>

<p>I thought I probably should notify you, as I'm sure it is rather stressful on your servers and is potentially stealing visitors.</p>

<p>From what I can gather, the content is posted as a Guest username of the account. Simply searching for Daniweb on the website brings up just a handful of articles originally posted on Daniweb.com but replicated on this other website.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/daniweb-community-feedback/26">DaniWeb Community Feedback</category>
			<dc:creator>AHarrisGsy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455198/cyberzhub-is-mining-daniweb-data</guid>
		</item>
				<item>
			<title>Wrap or Split DataGrid View Rows?</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455197/wrap-or-split-datagrid-view-rows</link>
			<pubDate>Thu, 23 May 2013 20:30:46 +0000</pubDate>
			<description>I am attempting to replicate the grid you see below taken from a popular accounting software program. I'm not after the title bar or any of the other controls, just a data grid view that behaves like the one shown, kinda like a check register. Does anyone know if this ...</description>
			<content:encoded><![CDATA[ <p>I am attempting to replicate the grid you see below taken from a popular accounting software program. I'm not after the title bar or any of the other controls, just a data grid view that behaves like the one shown, kinda like a check register. Does anyone know if this is possible with the DataGridView control or if a custom control needs to be built for this:</p>

<p><img src="/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8yLzBmOWUxZWU2MWJlZWU2ZDJjNDljNjFlOWU0MDkxYjJhLlBORw%3D%3D/500" alt="0f9e1ee61beee6d2c49c61e9e4091b2a" title="0f9e1ee61beee6d2c49c61e9e4091b2a" /></p>

<p>I have looked online for this, and maybe I'm searching for the wrong thing because everything talks about wraping text in a cell, I don't care about that, I'm after wraping cells in a row.</p>

<p>Forgive the black marks, they are there to protect the innocent and to hide irrelevant stuffs.</p>

<p>I appreciate any feedback.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>zachattack05</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455197/wrap-or-split-datagrid-view-rows</guid>
		</item>
				<item>
			<title>PC will not start</title>
			<link>http://www.daniweb.com/hardware-and-software/pc-hardware/threads/455196/pc-will-not-start</link>
			<pubDate>Thu, 23 May 2013 19:47:30 +0000</pubDate>
			<description> I will start this story from the beginning. My buddy gave me his pc to work on with the issues being it will no longer turn on. You push the power button and nothing happens. 1st I bench tested his PSU and it worked properly. Just to make sure I ...</description>
			<content:encoded><![CDATA[ <p>I will start this story from the beginning. My buddy gave me his pc to work on with the issues being it will no longer turn on. You push the power button and nothing happens. 1st I bench tested his PSU and it worked properly. Just to make sure I installed a known good PSU and still would not fire up. I swapped out all of his RAM with known good RAM. Still nothing, I even went as far as to swap CPU's and again still nothing. At this point I had decided on a Mobo issue as he has stated it had overheated in the past.</p>

<p>So I order him a new old mobo. Swap it all in and the issue still remains the same. At this point I realize I had overlooked the fact that it had a aftermarket GPU. I removed it and PC fired right up. He had a 9800GT and it was pretty scorched once pulled apart. I plugged a monitor directly to the board and recieved no signal to the monitor. I installed a known good GPU into the board and used that and still no signal going to the monitor. (light never turns green)</p>

<p>At this point I figure I am either clearly looking over something or the issue is just beyond my grasp. Either way it is frustrating. I will appreciate any attempt at a response if it leads me the right way.</p>

<p>Specs:<br />
Mobo - Asus M4A77<br />
PSU  - OCZ 500w also tested silverstone 500w<br />
CPU  - AMD Athlon II x2<br />
RAM  - Corsair 1gb x 4 also tested Ballistix 2gb x 2 DDR2<br />
HDD  - (1) 500gb Seagate (2) 50gb Seagate<br />
GPU  - 8500GT also tested a GTS250</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/pc-hardware/7">PC Hardware</category>
			<dc:creator>darksyderydaz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/pc-hardware/threads/455196/pc-will-not-start</guid>
		</item>
				<item>
			<title>[ASK] Postfix login first before</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/455195/ask-postfix-login-first-before</link>
			<pubDate>Thu, 23 May 2013 18:59:11 +0000</pubDate>
			<description>hello all, how to configuring postfix to login valid account first before sending mail ? thanks before</description>
			<content:encoded><![CDATA[ <p>hello all,<br />
how to configuring postfix to login valid account first before sending mail ?<br />
thanks before</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>goesseog</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/455195/ask-postfix-login-first-before</guid>
		</item>
				<item>
			<title>WPF ImageBrush TileMode question</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455194/wpf-imagebrush-tilemode-question</link>
			<pubDate>Thu, 23 May 2013 18:32:56 +0000</pubDate>
			<description>I've created my first WPF form, and the ImageBrush XAML is giving me trouble. The XAML I have is: &lt;Grid.BackGround&gt; &lt;ImageBrush ImageSource=&quot;ImageFile.png&quot; TileMode=&quot;Tile&quot; /&gt; &lt;/Grid.Background&gt; It displays the correct image - but it's stretched instead of tiled! The image is 127x127; the window is 660x808; a single instance of the ...</description>
			<content:encoded><![CDATA[ <p>I've created my first WPF form, and the ImageBrush XAML is giving me trouble.</p>

<p>The XAML I have is:</p>

<pre><code class="language-cs">&lt;Grid.BackGround&gt;
    &lt;ImageBrush ImageSource="ImageFile.png" TileMode="Tile" /&gt;
&lt;/Grid.Background&gt;
</code></pre>

<p>It displays the correct image - but it's stretched instead of tiled!  The image is 127x127; the window is 660x808; a single instance of the image is stretched to fill the window instead of multiple tiles of the image filling the window.</p>

<p>What am I doing wrong?!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>GhostWolf</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455194/wpf-imagebrush-tilemode-question</guid>
		</item>
				<item>
			<title>Programming in C</title>
			<link>http://www.daniweb.com/software-development/c/threads/455193/programming-in-c</link>
			<pubDate>Thu, 23 May 2013 18:32:05 +0000</pubDate>
			<description>(i)Write a function in C Programming Language, isEven(), that takes an integer value as argument and returns 1 if the latter is even, otherwise returns 0 (zero). (ii)The function isEven() is saved to the file 'usefulfunctions.h'. You are required to write a C program that allows the user to enter ...</description>
			<content:encoded><![CDATA[ <p>(i)Write a function in C Programming Language, isEven(), that takes an<br />
integer value as argument and returns 1 if the latter is even, otherwise<br />
returns 0 (zero).</p>

<p>(ii)The function isEven() is saved to the file 'usefulfunctions.h'. You are<br />
required to write a C program that allows the user to enter integer<br />
numbers. To end we use 0 (zero) as the last number. Your program<br />
should make use of the isEven() function from 'usefulfunctions.h' and print<br />
the odd numbers on screen.</p>

<p>I am having difficuty to answer the second part. I can not even start it. Help?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>nitish.mohiputlall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455193/programming-in-c</guid>
		</item>
				<item>
			<title>Find sub image in a large image using JAVA and FAST algorithm</title>
			<link>http://www.daniweb.com/software-development/java/threads/455192/find-sub-image-in-a-large-image-using-java-and-fast-algorithm</link>
			<pubDate>Thu, 23 May 2013 18:17:52 +0000</pubDate>
			<description>Hi All, I am very new to image processing and my requirement is to detect whehter the given large image consist the given subimage (small image) using Java and FAST algorithm. I have found the java lib (jfeaturelib) which support APIs for FAST algorithms and other descriptors etc. Follwing link ...</description>
			<content:encoded><![CDATA[ <p>Hi All,</p>

<p>I am very new to image processing and my requirement is to detect whehter the given large image consist the given subimage (small image) using Java and FAST algorithm. I have found the java lib (jfeaturelib) which support APIs for FAST algorithms and other descriptors etc.</p>

<p>Follwing link is from jfeaturelib which explaing how to get features of a image using decriptors and I cound run this code and get the features of both the images.<br />
<a href="https://github.com/locked-fg/JFeatureLib-Demo/tree/master/src/main/java/de/lmu/dbs/ifi/jfeaturelib/examples" rel="nofollow">https://github.com/locked-fg/JFeatureLib-Demo/tree/master/src/main/java/de/lmu/dbs/ifi/jfeaturelib/examples</a></p>

<p>But as jfeaturelib documention didn't provide sufficient information on useage of the API I feel helpless.<br />
It would be a great help if some one can guide me on how to use these set of APIs to achive my requiement.</p>

<p>If some one can atleast tell me the major steps which are requied to deal with this task.( That is getting the images features etc.)</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>emily.webb.9026</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455192/find-sub-image-in-a-large-image-using-java-and-fast-algorithm</guid>
		</item>
				<item>
			<title>Anyone recovered from Panda after March 2013??</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455191/anyone-recovered-from-panda-after-march-2013</link>
			<pubDate>Thu, 23 May 2013 18:01:19 +0000</pubDate>
			<description>As we all know, the latest version of Panda (hit in March 2013) was the last one to be pushed out manually. Google announced that from now on, Panda will be integrated into the main Google algorithm and will be a rolling update. As someone who was hit in November ...</description>
			<content:encoded><![CDATA[ <p>As we all know, the latest version of Panda (hit in March 2013) was the last one to be pushed out manually. Google announced that from now on, Panda will be integrated into the main Google algorithm and will be a rolling update.</p>

<p>As someone who was hit in November (Panda 22) and hasn't recovered since, I was just wondering if anyone actually recovered in April or May with this new Panda format?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>Dani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455191/anyone-recovered-from-panda-after-march-2013</guid>
		</item>
				<item>
			<title>MSIL</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455190/msil</link>
			<pubDate>Thu, 23 May 2013 18:00:55 +0000</pubDate>
			<description>I know that C# is translated to MISL which is run by the CLR into machine code. .Net provides different languages such as VB and F# and C++. Are the different high level languages translated into the same MSIL language? Is there a difference between MSIL of C# and MISL ...</description>
			<content:encoded><![CDATA[ <p>I know that C# is translated to MISL which is run by the CLR into machine code.</p>

<p>.Net provides different languages such as VB and F# and C++.</p>

<p>Are the different high level languages translated into the same MSIL language?</p>

<p>Is there a difference between MSIL of C# and MISL of VB or other languages?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>treasure2387</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455190/msil</guid>
		</item>
				<item>
			<title>Lycos anyone?</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455189/lycos-anyone</link>
			<pubDate>Thu, 23 May 2013 17:56:54 +0000</pubDate>
			<description>Recently read somewhere that some sites are starting to see Lycos.com (yes, the one that fell off the face of the earth a decade ago) pop up as a main referer for them according to G Analytics. I'm not seeing ANY traffic at all from them, but was wondering if ...</description>
			<content:encoded><![CDATA[ <p>Recently read somewhere that some sites are starting to see Lycos.com (yes, the one that fell off the face of the earth a decade ago) pop up as a main referer for them according to G Analytics. I'm not seeing ANY traffic at all from them, but was wondering if anyone else has and I'm just in the wrong niche?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>Dani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455189/lycos-anyone</guid>
		</item>
				<item>
			<title>NetShelter sold to Ziff Davis</title>
			<link>http://www.daniweb.com/internet-marketing/advertising-sales-strategies/threads/455188/netshelter-sold-to-ziff-davis</link>
			<pubDate>Thu, 23 May 2013 17:50:35 +0000</pubDate>
			<description>Anyone around here own a tech publication and use NetShelter. They just announced earlier this week that they were sold to Ziff Davis. They're a big player in the industry so just wondering if it impacts anyone out there in Internet land?</description>
			<content:encoded><![CDATA[ <p>Anyone around here own a tech publication and use NetShelter. They just announced earlier this week that they were sold to Ziff Davis. They're a big player in the industry so just wondering if it impacts anyone out there in Internet land?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/advertising-sales-strategies/30">Advertising Sales Strategies</category>
			<dc:creator>Dani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/advertising-sales-strategies/threads/455188/netshelter-sold-to-ziff-davis</guid>
		</item>
				<item>
			<title>&lt;m /&gt; or michael</title>
			<link>http://www.daniweb.com/community-center/geeks-lounge/threads/455187/m-or-michael</link>
			<pubDate>Thu, 23 May 2013 17:37:27 +0000</pubDate>
			<description>Anyone seen or heard from him lately? I was just thinking, since I saw on the BBC about the California fires, he hasn't been as prolific, hopefully just exams or something mundane......</description>
			<content:encoded><![CDATA[ <p>Anyone seen or heard from him lately? I was just thinking, since I saw on the BBC about the California fires, he hasn't been as prolific, hopefully just exams or something mundane......</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/geeks-lounge/6">Geeks' Lounge</category>
			<dc:creator>TonyG_cyprus</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/geeks-lounge/threads/455187/m-or-michael</guid>
		</item>
				<item>
			<title>uncaught TypeError: Cannot read property &#039;0&#039; of null HELP</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455186/uncaught-typeerror-cannot-read-property-0-of-null-help</link>
			<pubDate>Thu, 23 May 2013 17:02:26 +0000</pubDate>
			<description>Hi anyone can help, am having this error on line 10: uncaught TypeError: Cannot read property '0' of null. I have use the same code other places, same array but never got this error. I dont know why am having this error here. this.addEventListener(&quot;message&quot;,function(e){ importScripts('test.js'); var object=e.data; object=JSON.parse(object); mArray=object.array; var ...</description>
			<content:encoded><![CDATA[ <p>Hi anyone can help, am having this error on line 10: uncaught TypeError: Cannot read property '0' of null.<br />
I have use the same code other places, same array but never got this error. I dont know why am having this error here.</p>

<pre><code class="language-js">this.addEventListener("message",function(e){
    importScripts('test.js');
    var object=e.data;
    object=JSON.parse(object);

    mArray=object.array;
    var test=new test();
    for (var y=0;y&lt;8;y++){
        for (var x=0;x&lt;4;x++){
            word="" + mArray[y][x]+ mArray[y][x+1] + mArray[y][x+2] + mArray[y][x+3] + mArray[y][x+4];
            var object={test:word}
            this.postMessage(JSON.stringify(object));
        }
    }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>techyworld</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455186/uncaught-typeerror-cannot-read-property-0-of-null-help</guid>
		</item>
				<item>
			<title>form validation: php validates for email, but not database submissions</title>
			<link>http://www.daniweb.com/web-development/php/threads/455184/form-validation-php-validates-for-email-but-not-database-submissions</link>
			<pubDate>Thu, 23 May 2013 16:26:05 +0000</pubDate>
			<description>Hi: i have contact form that i thought the validation (.js + php) worked fine because i received emails that were only submitted w/ all fields correctly filled in. i added submission to mysql database, then found out that empty fields were being submitted to database -- but not email.. ...</description>
			<content:encoded><![CDATA[ <p>Hi:<br />
i have contact form that i thought the validation (.js + php) worked fine because i received emails<br />
that were only submitted w/ all fields correctly filled in. i added submission to mysql database, then<br />
found out that empty fields were being submitted to database -- but not email..<br />
this is how validation behaves::</p>

<p>fill in name only == js blocks</p>

<p>fill in valid email only == js blocks</p>

<p>fill in bad email format == js doesnt block</p>

<p>fill in name + email wrong format == js blocks</p>

<p>fill in name + email correct format == js blocks</p>

<p>this link has both .js and php validation files..<br />
<a href="http://jsbin.com/ixupuk/1/edit" rel="nofollow">http://jsbin.com/ixupuk/1/edit</a></p>

<p>i dont understand how validation would work for email but not database...<br />
thanx for any help</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>amkaos</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455184/form-validation-php-validates-for-email-but-not-database-submissions</guid>
		</item>
				<item>
			<title>My date picker</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455183/my-date-picker</link>
			<pubDate>Thu, 23 May 2013 15:40:54 +0000</pubDate>
			<description>Hello, Whilst writing this I actually fixed the issue but I thought I'd post anyway as this technique might be useful to others... I have a javascript class I wrote (alas I can't post the whole code as the IP technically belongs to the company I work for) which presents ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>Whilst writing this I actually fixed the issue but I thought I'd post anyway as this technique might be useful to others...</p>

<p>I have a javascript class I wrote (alas I can't post the whole code as the IP technically belongs to the company I work for) which presents 3 drop down boxes, 1 for day, 1 for month and 1 for year. If you select an invalid date (eg 30th feb), it automatically updates itself to a near correct date (eg 28th feb) the class handles leap years.</p>

<p>This sadly doesn't work in chrome and I'd appreciate if anyone is interested could offer some small amount of guidance to get me going in the right direction....</p>

<p>You add your date picker to your form like this:</p>

<pre><code class="language-js">        &lt;script type="text/javascript"&gt; 
            var processDateVbl = new dateDropper('processDate', "&lt;?php echo $currentDate; ?&gt;");
        &lt;/script&gt;
</code></pre>

<p>The class definition itself is pretty weird and works perfectly on IE.</p>

<p>Its constructor sets a few variables like how many days there are in each month and the min and max years to be added to the year select box etc and does some validation on the date string passed to it (in the php echo). Importantly, the constructor uses the first parameter (processDate) and suffixes it with Vbl and stores it as a parameter so that it can call itself later on...</p>

<p>It then calls a method called drawFields()</p>

<p>drawFields uses document.write to output form elements to the page;</p>

<pre><code class="language-js">    document.write ("&lt;input type=\"hidden\" name=\"" + this.formId + "\" value=\"" + this.defaultDate + "\"&gt;");
</code></pre>

<p>This line in particular creates a hidden form element with the name from the first parameter used to call dateDropper, so, when the form is submitted, the next page's php can use $_POST['processDate'] to reference the whole date and not access all 3 fields separately.</p>

<p>Next is where the class can 'call itself' for want of a better expression...</p>

<pre><code class="language-js">    document.write ("&lt;select name=\"" + this.formId + "Day\" onchange=\" " + this.variableName + ".dayChange() \"&gt;");
</code></pre>

<p>this.formId is processDate and this.variableName is processDateVbl.</p>

<p>So when the object is instantiated it creates select boxes whose onchange command is to refer back to the object's dayChange method. This works fine.</p>

<p>however, the first thing that the dayChange (also monthChange and yearChange) does when you change the select box value is to getElementById("processDateDay").options to find what you have changed it to.</p>

<p>This is where things go wrong. This works fine in internet explorer (7 and 8) but does not work in chrome or firefox. The javascript console there essentially tells me that getElementById("processDateDay") is null.</p>

<p>At this point I realised I was searching by element ID and had defined element names... What a twit.</p>

<p>I updated my drawFields() method to output like so:</p>

<pre><code class="language-js">        document.write ("&lt;select id=\"" + this.formId + "Day\" onchange=\" " + this.variableName + ".dayChange() \"&gt;");
</code></pre>

<p>now it all works!</p>

<p>I'm unsure where else anyone might want to do this, it's a pretty unusual concept so far as I know.</p>

<p>Hope this is of assistance!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>BenWard</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455183/my-date-picker</guid>
		</item>
				<item>
			<title>CRM integration and SEO impact</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455182/crm-integration-and-seo-impact</link>
			<pubDate>Thu, 23 May 2013 15:13:44 +0000</pubDate>
			<description>If I integrate a CRM (customer relationship managementn program) with my exisitng website, would its serp be affceted? How to save curent rankibng? The professional of a company says it would not be; is he right?</description>
			<content:encoded><![CDATA[ <p>If I integrate a CRM (customer relationship managementn program) with my exisitng website, would its serp be affceted? How to save curent rankibng? The professional of a company says it would not be; is he right?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>samyakonline</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455182/crm-integration-and-seo-impact</guid>
		</item>
				<item>
			<title>dbonekrosha</title>
			<link>http://www.daniweb.com/community-center/community-introductions/threads/455181/dbonekrosha</link>
			<pubDate>Thu, 23 May 2013 14:45:11 +0000</pubDate>
			<description>hello...my name is bennett,i've got time,a PC and determination,i want to learn php...i'ld appreciate help/mentorship from anyone.Thanks!</description>
			<content:encoded><![CDATA[ <p>hello...my name is bennett,i've got time,a PC and determination,i want to learn php...i'ld appreciate help/mentorship from anyone.Thanks!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/community-introductions/165">Community Introductions</category>
			<dc:creator>dbonekrosha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/community-introductions/threads/455181/dbonekrosha</guid>
		</item>
				<item>
			<title>Penguin 2.0</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455180/penguin-2.0</link>
			<pubDate>Thu, 23 May 2013 14:28:24 +0000</pubDate>
			<description>In case you've missed the news, Google finished rolling out Penguin 2.0 yesterday. They're expecting the algorithm change to have a noticeable affect on 2.3% of US English queries. Further info on Google's Webmaster Central Blog: [Another step to reward high-quality sites](http://googlewebmastercentral.blogspot.hk/2012/04/another-step-to-reward-high-quality.html) Do we have any winners and losers here?</description>
			<content:encoded><![CDATA[ <p>In case you've missed the news, Google finished rolling out Penguin 2.0 yesterday. They're expecting the algorithm change to have a noticeable affect on 2.3% of US English queries. Further info on Google's Webmaster Central Blog: <a href="http://googlewebmastercentral.blogspot.hk/2012/04/another-step-to-reward-high-quality.html" rel="nofollow">Another step to reward high-quality sites</a></p>

<p>Do we have any winners and losers here?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>LaxLoafer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455180/penguin-2.0</guid>
		</item>
				<item>
			<title>working slideshow killed when loaded</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455179/working-slideshow-killed-when-loaded</link>
			<pubDate>Thu, 23 May 2013 14:25:33 +0000</pubDate>
			<description>I have a carousel that works fine on it's own, but something's killing it when I load its page into my main page. Not sure what would cause it? i'm using &quot;Caroufredsel&quot;. Here's the main page, with script to load page based on which navigation selected. If the user selects ...</description>
			<content:encoded><![CDATA[ <p>I have a carousel that works fine on it's own, but something's killing it when I load its page into my main page. Not sure what would cause it? i'm using "Caroufredsel".</p>

<p>Here's the main page, with script to load page based on which navigation selected. If the user selects "portfolio" it should load a page that includes my slider. Below this is the loaded page.</p>

<pre><code class="language-js">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;


    &lt;link rel="stylesheet" href="css/styles_default.css" type="text/css" media="screen"/&gt;

    &lt;script type="text/javascript" language="javascript" src="js/jquery-2.0.0.js"&gt;&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

    &lt;!-- the beginning background, logo and "menu" link: this disappears to reveal full site //////////////////////////////////////// --&gt;

     &lt;div id="full-size-background"&gt;
        &lt;div id="starting_point"&gt;
            &lt;img id="start_logo" src="images/logo.png"&gt;
            &lt;a href="#" id="starting_point_link"&gt;MENU&lt;/a&gt;
            &lt;div id="rotated_text"&gt;Title&lt;/div&gt;
        &lt;/div&gt;
     &lt;/div&gt;

     &lt;!-- NAV  below //////////////////////////////////////////////////////////////////////////////////////////////////// --&gt;

    &lt;div class="header_content" style="opacity:0;display:none;"&gt;
        &lt;br/&gt;


        &lt;ul id="top_nav"&gt;
            &lt;li class="nav_item logo_li"&gt;
                &lt;a id="home" class="logo" href="index.php" name="index"&gt;
                    &lt;img src="images/logo.png"&gt;
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_item"&gt;
                 &lt;a  id="xx" class="link1" href="#" name="index" rel="address:/xx"&gt;xx&lt;/a&gt;
            &lt;/li&gt;            

            &lt;li class="nav_separator"&gt; / &lt;/li&gt;    

            &lt;li class="nav_item"&gt;
                &lt;a id="new_sites" class="link1" href="#" name="new_sites" rel="address:/new_sites"&gt;
                NOW RELEASING
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_separator"&gt; / &lt;/li&gt;    

            &lt;li class="nav_item"&gt;
                &lt;a id="portfolio" class="link1" href="#"  name="portfolio" rel="address:/portfolio"&gt;
                PORTFOLIO
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_separator"&gt; / &lt;/li&gt;    

            &lt;li class="nav_item"&gt;
                &lt;a id="strategy" class="link1" href="#" name="strategy" rel="address:/strategy"&gt;
                STRATEGY
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_separator"&gt; / &lt;/li&gt;    

            &lt;li class="nav_item"&gt;
                &lt;a id="vip_first" class="link1" href="#" name="vip_first" rel="address:/vip_first"&gt;
                VIP FIRST
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_separator"&gt; / &lt;/li&gt;    

            &lt;li class="nav_item"&gt;
                &lt;a id="contact" class="link1" href="#" name="contact" rel="address:/contact"&gt;
                CONTACT
                &lt;/a&gt;
            &lt;/li&gt;

            &lt;li class="nav_separator"&gt; // &lt;/li&gt;   

            &lt;li class="nav_item"&gt;
                &lt;a id="login" class="link1" href="#" name="login" rel="address:/login"&gt;
                LOGIN
                &lt;/a&gt;
            &lt;/li&gt;


    &lt;/ul&gt;


    &lt;/div&gt;

         &lt;!-- MAIN SITE content below //////////////////////////////////////////////////////////////////////////////////////////////////// --&gt; 



     &lt;div id="main_center_box" class=""&gt;

        &lt;!-- here's where the content loads in //////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////--&gt;


        &lt;?php include 'inc/footer.php'; ?&gt;
    &lt;/div&gt;

    &lt;a id="walsh_link" href="<a href="http://www.thewalshgroup.ca/" rel="nofollow">http://www.thewalshgroup.ca/</a>" target="_blank"&gt;POWERED BY THE WALSH GROUP &lt;/a&gt;


&lt;script&gt;

$(document).ready(function() {

    // the script that determines which page to load.  My problem page is "portfolio"


    $("#top_nav li a, #footer_info").on("click", function(e){

                // prevent the a href from doing what it naturally does.
                e.preventDefault();

                // highlight active nav link &amp; turn off others              
                $('.current').attr('class','link1');
                $(this).attr('class','current');

                // set the hashtag in url
                window.location.hash = $(this).attr('name');

                // which page chosen?
                var loadpage = 'inc/'+$(this).attr('name')+'.php';
                var footer = 'inc/footer.php';

                // fade out the main box            
                $('#main_center_box').stop().animate({ opacity: 0, zIndex:0 }, 700, function() { 
                    $('#main_center_box2').css({opacity:1}).stop().animate({ opacity: 0 }, 700, function() { /* animation complete */ });
                    // now load the page that matches navigation selected
                    $('#main_center_box').css({zIndex:1 }).load(loadpage).stop().animate({ opacity: 1}, 700, function() { /* animation complete */ });

                });

    });
});
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt; 

&lt;!-- include jQuery + carouFredSel plugin --&gt;
&lt;script type="text/javascript" language="javascript" src="jquery-1.8.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript" src="jquery.carouFredSel-6.2.1-packed.js"&gt;&lt;/script&gt;

&lt;!-- optionally include helper plugins --&gt;
&lt;script type="text/javascript" language="javascript" src="helper-plugins/jquery.mousewheel.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript" src="helper-plugins/jquery.touchSwipe.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript" src="helper-plugins/jquery.transit.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript" src="helper-plugins/jquery.ba-throttle-debounce.min.js"&gt;&lt;/script&gt;

&lt;!-- fire plugin onDocumentReady --&gt;
        &lt;script type="text/javascript" language="javascript"&gt;
        (function($, window, document) {

    var $doc = $(document),
        $win = $(window);
        wWidth = $win.width();



    $win.on('load', function() {
        function move() {
            $paging.removeClass('selected');
            $current.addClass('selected');
            $carousel.stop().animate({left:-(index*(wWidth&lt;=1200?wWidth:1200))});
        }
        function reset() {
            if (timer!==false) {
                clearInterval(timer);
            }

            timer = setInterval(function(){
                index++;

                if (index&gt;=$img.length) {
                    index=0;
                }

                $current=$paging.eq(index);
                move();
            }, 8000);
        }


        if ( $('.slideshow').length ) {
            var h = 532;
            var $img = $('.slideshow .carousel img');
            var $paging = '';
            var $carousel = $('.slideshow .carousel div');

            if ( $('.residence-slideshow').length ) {
                h = 644;
            }


            $carousel.width(($img.length * 1200)+60);

            for (var i=0; i&lt;$img.length;i++) {
                var c = i===0?' class="selected" ':'';
                $paging += '&lt;a href="#" '+c+'&gt;&lt;/a&gt;';
            }

            $paging = $($paging);

            var index = 0;
            var $current = $paging.eq(index);
            var timer = false;

            $('.slideshow-paging').append($paging);


            $paging.on('click', function(e){
                e.preventDefault();
                index = $paging.index(this);
                $current=$(this);
                move();
                reset();
                return false;
            });

            $('.slideshow .arrows').on('click', function(){
                index = $(this).hasClass('arrows-left')?index-1:index+1;
                index = (index&lt;0)?$img.length-1:(index&gt;$img.length-1?0:index);
                $current=$paging.eq(index);
                move();
                reset();
            });


            $img.on('mouseover', function(){
                clearInterval(timer);
            })
            .on('mouseout', reset);


            reset();
        }

        if ( $('.places-slideshow').length ) {
            $('.places-slideshow .carousel').fadeIn().carouFredSel({
                align: 'left',
                responsive: true,
                items: {
                    visible: 1
                },
                scroll: {
                    items: 1,
                    fx: 'directscroll',
                    duration: 500,
                    timeoutDuration: 5000,
                    pauseOnHover: true,
                    onAfter: function( data ) {
                        data.items.visible.find('.slide-text').fadeIn('slow');

                        setTimeout(function() {
                            data.items.visible.find('.slide-text').fadeOut('slow');
                        }, 4500);
                    }
                },

                auto: {
                     timeoutDuration: 2000,
                     delay: 3500
                },


                prev: {
                    key: 'left',
                    button: '.places-slideshow .prev-slide'
                },
                next: {
                    key: 'right',
                    button: '.places-slideshow .next-slide'
                },
                onCreate: function() {
                    var firstRound = $(this).find('.slide:eq(0) .slide-text');

                    firstRound.fadeIn('fast');

                    setTimeout(function() {
                        firstRound.fadeOut('slow');
                    }, 3350);
                }
            });
        }
    });

}(jQuery, window, document));
        &lt;/script&gt;



&lt;div class="places-slideshow"&gt;


    &lt;div class="carousel"&gt;
        &lt;div class="slide"&gt;
            &lt;img src="images/slideshow/slide1.jpg" alt="" /&gt;

            &lt;div class="slide-text"&gt;
                &lt;h2&gt;&lt;a href="#" target="_blank"&gt;TOWNHOME DEVELOPMENT&lt;/a&gt;&lt;/h2&gt;
                &lt;p&gt;367 asdf Avenue&lt;/p&gt;
                &lt;p&gt;ASDFADFASFAADFSADF&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class="slide"&gt;
            &lt;img src="images/slideshow/slide2.jpg" alt="" /&gt;

            &lt;div class="slide-text"&gt;
                &lt;h2&gt;&lt;a href="#" target="_blank"&gt;CUSTOM HOME&lt;/a&gt;&lt;/h2&gt;
                &lt;p&gt;365 asdf Avenue&lt;/p&gt;
                &lt;p&gt;ASDFASDFASF&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class="slide"&gt;
            &lt;img src="images/slideshow/slide3.jpg" alt="" /&gt;

            &lt;div class="slide-text"&gt;
                &lt;h2&gt;&lt;a href="#" target="_blank"&gt;DETACHED HOME&lt;/a&gt;&lt;/h2&gt;
                &lt;p&gt;341 HILLDOWN Avenue&lt;/p&gt;
                &lt;p&gt;ASDFASDFAFs&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div class="slide"&gt;
            &lt;img src="images/slideshow/slide4.jpg" alt="" /&gt;

            &lt;div class="slide-text"&gt;
                &lt;h2&gt;&lt;a href="#" target="_blank"&gt;LOREM IPSUM&lt;/a&gt;&lt;/h2&gt;
                &lt;p&gt;361asfdasdf&lt;/p&gt;
                &lt;p&gt;asdfasdf&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;span class="arrow-overlay"&gt;&lt;/span&gt;

    &lt;a href="#" class="prev-slide"&gt;prev&lt;/a&gt;
    &lt;a href="#" class="next-slide"&gt;next&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>Here's the page that get's loaded in, including the slideshow. This page will work when I test it by itself. But</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>turpentyne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455179/working-slideshow-killed-when-loaded</guid>
		</item>
				<item>
			<title>Update Table - Need to Know Which Update for Future Queries</title>
			<link>http://www.daniweb.com/web-development/databases/ms-sql/threads/455178/update-table-need-to-know-which-update-for-future-queries</link>
			<pubDate>Thu, 23 May 2013 14:21:10 +0000</pubDate>
			<description>Hi All, I'm a little stuck with one table's design. I have a table called tblConference_Board that will be updated approximately 3 to 4 times per year. The following is my table design: `CB_ID int (PK)` `CB_Mnemonic_ID int (FK)` `CB_Value decimal (18,10)` `CB_Year int` `CB_Quarter int` This table is loaded ...</description>
			<content:encoded><![CDATA[ <p>Hi All,</p>

<p>I'm a little stuck with one table's design.</p>

<p>I have a table called tblConference_Board that will be updated approximately 3 to 4 times per year.  The following is my table design:<br /><code>CB_ID int (PK)</code><br /><code>CB_Mnemonic_ID int (FK)</code><br /><code>CB_Value decimal (18,10)</code><br /><code>CB_Year int</code><br /><code>CB_Quarter int</code><br />
This table is loaded from a staging table called tblConference_Board_Staging.</p>

<p>When there is an update (say in the spring), the values will either be in quarters or annual values.  The year range has been consistently the same and usually starts from 1961 to 2035.  When the next update comes (in the summer), the yearly range will be the same but the actual values will change.  What I'm stuck on is how to determine which data set is from which update?  I thought that another field like maybe <code>CB_Modified date</code> which would populate with the date that update takes place would be a good idea but that way may be tricky to query after the updates.</p>

<p>It's hard for me to summarize my question but it should be something like: How do I populate my table and know which values represent which update?  I'm really hoping someone can make sense of my confusion and if you require more information please ask.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/ms-sql/127">MS SQL</category>
			<dc:creator>Stuugie</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/ms-sql/threads/455178/update-table-need-to-know-which-update-for-future-queries</guid>
		</item>
				<item>
			<title>How often do you upgrade your VS software?</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455177/how-often-do-you-upgrade-your-vs-software</link>
			<pubDate>Thu, 23 May 2013 14:15:54 +0000</pubDate>
			<description>There have been a total of 9 different versions of Visual Studio now going all the way back to 1995. My question is for those of you who use Visual Studio, how often have you upgraded your Visual Studio version? Going from 2005 to 2012 for example, not applying updates, ...</description>
			<content:encoded><![CDATA[ <p>There have been a total of 9 different versions of Visual Studio now going all the way back to 1995. My question is for those of you who use Visual Studio, how often have you upgraded your Visual Studio version? Going from 2005 to 2012 for example, not applying updates, but actually buying a different version?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>zachattack05</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455177/how-often-do-you-upgrade-your-vs-software</guid>
		</item>
				<item>
			<title>DataGrid returns Empty</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/455176/datagrid-returns-empty</link>
			<pubDate>Thu, 23 May 2013 14:08:00 +0000</pubDate>
			<description>Hey Guys! ive been stuggling with this for a while I Have a Datagrid and a few comboboxes the one combobox should populate the Grid when an Item is selected I debugged my code , and it seemd that all the correct data is being pulled through but i keep ...</description>
			<content:encoded><![CDATA[ <p>Hey Guys! ive been stuggling with this  for a while</p>

<p>I Have a Datagrid and a few comboboxes the one combobox should populate the Grid when an Item is selected<br />
I debugged my code , and it seemd that all the correct data is being pulled through but i keep getting an empty Grid!!<br />
Can someone please go through my code , maybe i just missed something</p>

<p>Thanks</p>

<p>-CSS-</p>

<pre><code>&lt;asp:DataGrid ID="dtgDealsEdit" runat="server" CssClass="grid" AutoGenerateColumns="False"
                                Style="border-top-left-radius: 5px; border-top-right-radius: 5px; background-color: White; padding: 0px;"&gt;
                                &lt;AlternatingItemStyle CssClass="gridViewRowAlternating" /&gt;
                                &lt;HeaderStyle CssClass="DataGridFixedHeader" Height="40px"&gt;&lt;/HeaderStyle&gt;
                                &lt;Columns&gt;
                                 &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblCaseCodeHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Case Code"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:Label ID="lblCaseCode" CssClass="gridLabels" Width="50px" runat="server" Text='&lt;%# Eval("CaseCode") %&gt;'&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Right" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblUnitCodeHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Unit Code"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:Label ID="lblUnitCode" CssClass="gridLabels" Width="50px" runat="server" Text='&lt;%# Eval("UnitCode") %&gt;'&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Right" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblCasePriceHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Cash Price"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:TextBox ID="txtCasePrice" CssClass="gridTextBox" Width="50px" runat="server"
                                                onchange="return addCommas(this.value)"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Left" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblCategoryHeader" CssClass="gridLabels" Width="100px" runat="server" Text="Category"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:Label ID="lblCategory" CssClass="gridLabels" Width="100px" runat="server" Text='&lt;%# Eval("Category") %&gt;'&gt;&lt;/asp:Label&gt;
                                            &lt;asp:Label ID="lblCategoryID_FK" CssClass="gridLabels" Width="100px" runat="server" Visible="false" Text='&lt;%# Bind("CategoryID_FK") %&gt;'&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="100px" HorizontalAlign="Left" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblProductHeader" CssClass="gridLabels" Width="150px" runat="server" Text="Product"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:Label ID="lblProduct" CssClass="gridLabels" Width="150px" runat="server" Text='&lt;%# Eval("ProductDescription") %&gt;'&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="150px" HorizontalAlign="Left" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblPacksizeHeader" CssClass="gridLabels" Width="45px" runat="server" Text="Packet Size"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:Label ID="lblPacksize" CssClass="gridLabels" Width="45px" runat="server" Text='&lt;%# Eval("PackSize") %&gt;'&gt;&lt;/asp:Label&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="45px" HorizontalAlign="Left" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblExclusivePriceHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Exclusive Price"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:TextBox ID="txtExclusivePrice" Text='&lt;%# Eval("Exclusive Price") %&gt;' CssClass="gridTextBox" Width="50px" runat="server"
                                                onchange="return addCommas(this.value)"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Right" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblSUGGHeader" CssClass="gridLabels" Width="50px" runat="server" Text="SUGG RSP"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;

                                        &lt;ItemTemplate&gt;
                                            &lt;asp:TextBox ID="txtSUGG" Text='&lt;%# Eval("SUGG") %&gt;' CssClass="gridTextBox"  Width="50px" runat="server" onchange="return addCommas(this.value)"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Right" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblVolumeHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Volume"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:TextBox ID="txtVolume" Text='&lt;%# Eval("VolumeSpike") %&gt;' CssClass="gridTextBox" Width="50px" runat="server" onchange="return addCommas(this.value)"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="50px" HorizontalAlign="Right" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;
                                    &lt;asp:TemplateColumn&gt;
                                        &lt;HeaderTemplate&gt;
                                        &lt;asp:Label ID="lblCommentsHeader" CssClass="gridLabels" Width="50px" runat="server" Text="Comments"&gt;&lt;/asp:Label&gt;
                                    &lt;/HeaderTemplate&gt;
                                        &lt;ItemTemplate&gt;
                                            &lt;asp:TextBox ID="txtComments"  Text='&lt;%# Bind("Comments") %&gt;' CssClass="gridTextBox" Width="100px" runat="server"
                                                TextMode="MultiLine"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/ItemTemplate&gt;
                                        &lt;ItemStyle Width="100px" HorizontalAlign="Left" Font-Size="Small" CssClass="dtgDealstrtdStyle"/&gt;
                                    &lt;/asp:TemplateColumn&gt;

                                &lt;/Columns&gt;
                &lt;/asp:DataGrid&gt;
</code></pre>

<p>-CodeBehind-</p>

<pre><code>public void PopulateGridData(int intDealsID)
    {
        clsDeals clsDeals = new clsDeals();



    using (DealsDatabaseEntities DealsDB = new DealsDatabaseEntities())
    {
        try
        {
            List&lt;DealsGetEdit_Result&gt; lstDealsedit = DealsDB.DealsGetEdit(intDealsID).ToList();
            if (lstDealsedit.Count &gt; 0)
            {
                dtgDealsEdit.DataSource = FillInGrid("CaseCode", "UnitCode", "Category", "ProductDescription", "PackSize", "Exclusive Price", "SUGG", "VolumeSpike", "Comments");
                dtgDealsEdit.DataBind();
                dtgDeals.Visible = false;

            }
        }
        catch (Exception ex)
        {
            throw;
        }
        finally
        {
            DealsDB.Dispose();
        }
    }
}



public DataTable FillInGrid(String strCol1, String strCol2, String strCol4, String strCol5, String strCol6, String strCol7, String strCol8, String strCol9, String strCol10)
    {
        Int32 cnt = 0;

        int intDealsID = (Convert.ToInt32(CmbExist.SelectedValue));

        using (DealsDatabaseEntities DealsDB = new DealsDatabaseEntities())
        {
            List&lt;DealsGetEdit_Result&gt; lstDealsedit = DealsDB.DealsGetEdit(intDealsID).ToList();

            DataTable dt = new DataTable();

            dt.Columns.Add(strCol1);
            dt.Columns.Add(strCol2);
            dt.Columns.Add(strCol4);
            dt.Columns.Add(strCol5);
            dt.Columns.Add(strCol6);
            dt.Columns.Add(strCol7);
            dt.Columns.Add(strCol8);
            dt.Columns.Add(strCol9);
            dt.Columns.Add(strCol10);


            Int32 totalRows = Convert.ToInt32(Decimal.Ceiling(Decimal.Divide(cnt, 13)));
            totalRows = (totalRows == 0) ? 13 : totalRows * 13;

            for (int x = 0; x != totalRows; x++)
            {
                dt.Rows.Add();
                dt.Rows[x][strCol1] = (cnt &gt; x) ? lstDealsedit[x].CaseCode.ToString() : "";
                dt.Rows[x][strCol2] = (cnt &gt; x) ? lstDealsedit[x].UnitCode.ToString() : "";
                dt.Rows[x][strCol4] = (cnt &gt; x) ? lstDealsedit[x].Category.ToString() : "";
                dt.Rows[x][strCol5] = (cnt &gt; x) ? lstDealsedit[x].ProductDescription.ToString() : "";
                dt.Rows[x][strCol6] = (cnt &gt; x) ? lstDealsedit[x].PackSize.ToString() : "";
                dt.Rows[x][strCol7] = (cnt &gt; x) ? lstDealsedit[x].Exclusive_Price.ToString() : "";
                dt.Rows[x][strCol8] = (cnt &gt; x) ? lstDealsedit[x].SUGG.ToString() : "";
                dt.Rows[x][strCol9] = (cnt &gt; x) ? lstDealsedit[x].VolumeSpike.ToString() : "";
                dt.Rows[x][strCol10] = (cnt &gt; x) ? lstDealsedit[x].Comments.ToString() : "";
            }

            return dt;
        }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>NyQii</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/455176/datagrid-returns-empty</guid>
		</item>
				<item>
			<title>confusing myself with arrays</title>
			<link>http://www.daniweb.com/web-development/php/threads/455175/confusing-myself-with-arrays</link>
			<pubDate>Thu, 23 May 2013 13:52:30 +0000</pubDate>
			<description>hey guys, I've been working on that moodle database link and I have it somewhat working! I have it logging in and echoing the username. This is the login section: $query = &quot;SELECT * FROM moodle_user WHERE username = '{$_POST['username']}' AND password = '$password'&quot;; $result = mysqli_query($con,$query) or die(mysqli_error($con)); //setup ...</description>
			<content:encoded><![CDATA[ <p>hey guys,</p>

<p>I've been working on that moodle database link and I have it somewhat working!</p>

<p>I have it logging in and echoing the username. This is the login section:</p>

<pre><code>  $query = "SELECT * FROM moodle_user WHERE username = '{$_POST['username']}' AND password = '$password'";
    $result = mysqli_query($con,$query) or die(mysqli_error($con));

    //setup row
    if ($_POST['submit']) {
        $Row = mysqli_fetch_assoc($result);
        $username = $_POST['username'];
        $firstname = $_Row['firstname'];
        $lastname = $_Row['lastname'];
        $name = print_r($_Row['firstname']);

    }



&lt;div id="Header"&gt;&lt;div class="user_details"&gt;

  &lt;?php 
  if ($_POST['submit']) {
     echo 'Logged in as: ' . $username . '&lt;br&gt;';
     echo 'Your name: ' . $firstname;
    } else {
     echo 'Not logged in';
     }
   ?&gt; 
</code></pre>

<p>The problem I am having is that the echo 'Your name: ' . $firstname;</p>

<p>isn't echoing anything. However I was able to echo the array earlier.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>bradly.spicer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455175/confusing-myself-with-arrays</guid>
		</item>
				<item>
			<title>Conversion from string &quot;&quot; to type &#039;Double&#039; is not valid</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455174/conversion-from-string-to-type-double-is-not-valid</link>
			<pubDate>Thu, 23 May 2013 13:46:34 +0000</pubDate>
			<description>i have decleared all variables as double. Sub kaat() goldkaatinratti = (Val(txtbox_tolagoldweight.Text * 96) + Val(txtbox_mashagoldweight.Text * 8) + Val(txtbox_rattigoldweight.Text)) * 8 / 96 End Sub but when i leave the textboxes empty it gives ma the error (Conversion from string &quot;&quot; to type 'Double' is not valid.) i CANNOT ...</description>
			<content:encoded><![CDATA[ <p>i have decleared all variables as double.<br />
Sub kaat()</p>

<pre><code class="language-vb">    goldkaatinratti = (Val(txtbox_tolagoldweight.Text * 96) + Val(txtbox_mashagoldweight.Text * 8) + Val(txtbox_rattigoldweight.Text)) * 8 / 96
</code></pre>

<p>End Sub</p>

<p>but when i leave the textboxes empty it gives ma the error (Conversion from string "" to type 'Double' is not valid.)<br />
 i CANNOT give this statement as this all ruins my future calculation.</p>

<pre><code class="language-vb">        'If txtbox_tolagoldweight.Text = "" Then
        '    txtbox_tolagoldweight.Text = 0
        'End If
        'If txtbox_mashagoldweight.Text = "" Then
        '    txtbox_mashagoldweight.Text = 0
        'End If
        'If txtbox_rattigoldweight.Text = "" Then
        '    txtbox_rattigoldweight.Text = 0
        'End If
</code></pre>

<p><a href="http://postimg.org/image/scu2n8bvl/" rel="nofollow">here is the screenshot</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Affable zaki</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455174/conversion-from-string-to-type-double-is-not-valid</guid>
		</item>
				<item>
			<title>Get value of text box store in php array variable</title>
			<link>http://www.daniweb.com/web-development/php/threads/455173/get-value-of-text-box-store-in-php-array-variable</link>
			<pubDate>Thu, 23 May 2013 13:11:44 +0000</pubDate>
			<description>I have a table like code html belows I want to store value of check box and corresponding text value into 2 array in PHP For example if i check box ID_1, ID_2 the values of these check box are stored in $array_box ( 74, 75) and values of corresponding ...</description>
			<content:encoded><![CDATA[ <p>I have a table like code html belows<br />
I want to store value of check box and corresponding text value into 2 array in PHP<br />
For example<br />
if i check box ID_1, ID_2<br />
the values of these check box are stored in $array_box ( 74, 75)<br />
and values of corresponding text box are stored in $array_text ("iOS","Android")<br />
Do you have any idea? thank you very much</p>

<pre><code>&lt;table width="341" border="1"&gt;
  &lt;tr&gt;
    &lt;th width="20" scope="row"&gt;&lt;input name="target" type="checkbox" value="74" checked /&gt;&lt;/th&gt;
    &lt;td width="155"&gt;ID_1&lt;/td&gt;
    &lt;td width="144"&gt;&lt;form id="form1" name="form1" method="post" action=""&gt;
      &lt;label&gt;
        &lt;input type="text" name="os[]" id="os" value="iOS" /&gt;
      &lt;/label&gt;
    &lt;/form&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;th scope="row"&gt;&lt;input name="target" type="checkbox" value="75" checked /&gt;&lt;/th&gt;
    &lt;td&gt;ID_2&lt;/td&gt;
    &lt;td&gt;&lt;form id="form2" name="form1" method="post" action=""&gt;
      &lt;label&gt;
        &lt;input type="text" name="os[]" id="os2" value="Andoird"/&gt;
      &lt;/label&gt;
    &lt;/form&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;th scope="row"&gt;&lt;input name="target" type="checkbox" value="76" checked /&gt;&lt;/th&gt;
    &lt;td&gt;ID-3&lt;/td&gt;
    &lt;td&gt;&lt;form id="form3" name="form1" method="post"  action=""&gt;
      &lt;label&gt;
        &lt;input type="text" name="os3" id="os3" value="Beta" /&gt;
      &lt;/label&gt;
    &lt;/form&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;th scope="row"&gt;&lt;input name="target" type="checkbox" value="77" checked /&gt;&lt;/th&gt;
    &lt;td&gt;ID-4&lt;/td&gt;
    &lt;td&gt;&lt;form id="form4" name="form1" method="post" action=""&gt;
      &lt;label&gt;
        &lt;input type="text" name="os[]" id="os4" value="Window" /&gt;
      &lt;/label&gt;
    &lt;/form&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>giao.can</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455173/get-value-of-text-box-store-in-php-array-variable</guid>
		</item>
				<item>
			<title>Web 2.0 Properties</title>
			<link>http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455172/web-2.0-properties</link>
			<pubDate>Thu, 23 May 2013 13:00:37 +0000</pubDate>
			<description>What is Web 2.o Properties... Please describe in details.</description>
			<content:encoded><![CDATA[ <p>What is Web 2.o Properties... Please describe in details.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/social-media-and-communities/50">Social Media and Communities</category>
			<dc:creator>Bharti Sharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455172/web-2.0-properties</guid>
		</item>
				<item>
			<title>Would SSL Be Worth It</title>
			<link>http://www.daniweb.com/web-development/threads/455171/would-ssl-be-worth-it</link>
			<pubDate>Thu, 23 May 2013 12:19:15 +0000</pubDate>
			<description>Hello Community, I was wondering if getting an SSL certificate be worth it for my new website it the website doesn't store users personal details all it will hold is users links that would be counted but the thing is i don't know if it would be worth it or ...</description>
			<content:encoded><![CDATA[ <p>Hello Community,<br />
I was wondering if getting an SSL certificate be worth it for my new website it the website doesn't store users personal details all it will hold is users links that would be counted but the thing is i don't know if it would be worth it or not because I'm not dealing with personal details.</p>

<p>So what do you think would it be worth it?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>joshl_1995</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/455171/would-ssl-be-worth-it</guid>
		</item>
				<item>
			<title>Help me, how to install MS SQL Server in Laptop!</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455170/help-me-how-to-install-ms-sql-server-in-laptop</link>
			<pubDate>Thu, 23 May 2013 12:10:36 +0000</pubDate>
			<description>My Laptop Specs: **i3 2.40Ghz 2048MB RAM Sony VAIO E Series Intel(R) HD Graphics 4000 64-bit OS** I had tried installing **Microsoft SQL Server 2008** for about 3 times now on my laptop. I still can't install it. Please help me. What to do? I really need the software for ...</description>
			<content:encoded><![CDATA[ <p>My Laptop Specs:<br /><strong>i3 2.40Ghz<br />
2048MB RAM<br />
Sony VAIO E Series<br />
Intel(R) HD Graphics 4000<br />
64-bit OS</strong></p>

<p>I had tried installing <strong>Microsoft SQL Server 2008</strong> for about 3 times now on my laptop. I still can't install it. Please help me.</p>

<p>What to do? I really need the software for my project.<br />
Please Please Please.</p>

<p>THANKS, MORE POWER and GOD BLESS.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38">Windows Vista and Windows 7 / 8</category>
			<dc:creator>shenn.to</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455170/help-me-how-to-install-ms-sql-server-in-laptop</guid>
		</item>
				<item>
			<title>Smooth movement of non hidden div</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455168/smooth-movement-of-non-hidden-div</link>
			<pubDate>Thu, 23 May 2013 11:58:40 +0000</pubDate>
			<description>I have some div's one after another. When i click anywhere the first div hides and other div's shifts to fill the empty space. But the movement of other div which aren't hidden are not satisfying as it takes the place but not smoothly. I have no idea as how ...</description>
			<content:encoded><![CDATA[ <p>I have some div's one after another.<br />
When i click anywhere the first div hides and other div's shifts to fill the empty space.<br />
But the movement of other div which aren't hidden are not satisfying as it takes the place<br />
but not smoothly.<br />
I have no idea as how should i approach this problem</p>

<p>Here's a link of current scenario<br />
<a href="http://jsfiddle.net/code_rum/Xb4ZX/" rel="nofollow">http://jsfiddle.net/code_rum/Xb4ZX/</a></p>

<p>Thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>code_rum</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455168/smooth-movement-of-non-hidden-div</guid>
		</item>
				<item>
			<title>General</title>
			<link>http://www.daniweb.com/web-development/threads/455166/general</link>
			<pubDate>Thu, 23 May 2013 11:42:37 +0000</pubDate>
			<description>Hai everyone. I am new to this discussion. Can anyone tell me about xml site map creation.</description>
			<content:encoded><![CDATA[ <p>Hai everyone. I am new to this discussion. Can anyone tell me about xml site map creation.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>peterson10012</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/455166/general</guid>
		</item>
				<item>
			<title>php not updating password nor token in the d.b</title>
			<link>http://www.daniweb.com/web-development/php/threads/455163/php-not-updating-password-nor-token-in-the-d.b</link>
			<pubDate>Thu, 23 May 2013 11:39:44 +0000</pubDate>
			<description>My forgot password is not updating the token table nor is it updating the password when changes it keeps echoing the error message below is the form code: Forgot Password&lt;/strong&gt;&lt;/h3&gt; &lt;form name=&quot;forgot&quot; method=&quot;POST&quot; id=&quot;forgot&quot; action=&quot;includes/reset.php&quot;&gt; &lt;div align=&quot;center&quot;&gt; &lt;table width=&quot;372&quot; border=&quot;0&quot;&gt; &lt;tr&gt; &lt;td width=&quot;181&quot;&gt;&lt;p&gt; &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt; &lt;td width=&quot;181&quot;&gt;&lt;span id=&quot;sprytextfield1&quot;&gt;&lt;br /&gt; &lt;label for=&quot;label&quot;&gt;&lt;/label&gt; ...</description>
			<content:encoded><![CDATA[ <p>My forgot password is not updating the token table nor is it updating the password when changes it keeps echoing the error message below is the form code:</p>

<pre><code>Forgot Password&lt;/strong&gt;&lt;/h3&gt;
      &lt;form name="forgot" method="POST" id="forgot" action="includes/reset.php"&gt;
        &lt;div align="center"&gt;
          &lt;table width="372" border="0"&gt;
            &lt;tr&gt;
              &lt;td width="181"&gt;&lt;p&gt; &lt;/p&gt;
                &lt;p&gt;&lt;strong&gt;Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;
              &lt;td width="181"&gt;&lt;span id="sprytextfield1"&gt;&lt;br /&gt;
                &lt;label for="label"&gt;&lt;/label&gt;
                &lt;input type="password" name="passsowrd" id="password" /&gt;
                &lt;span class="textfieldRequiredMsg"&gt;Your password is required&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
            &lt;tr&gt;
              &lt;td&gt;&lt;p&gt; &lt;/p&gt;
                &lt;p&gt;&lt;strong&gt;Confenter code hereirm Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;
              &lt;td&gt;&lt;span id="spryconfirm2"&gt;
                &lt;label for="password"&gt;&lt;/label&gt;
                &lt;input type="password" name="password2" id="password" /&gt;
                &lt;span class="confirmRequiredMsg"&gt;A value is required.&lt;/span&gt;&lt;span class="confirmInvalidMsg"&gt;The values don't match.&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
    &lt;div align="center"&gt;
      &lt;p&gt; &lt;/p&gt;
      &lt;table width="98" border="0"&gt;
        &lt;tr&gt;
          &lt;th width="44" scope="row"&gt;&lt;input type="submit" name="submit" id="submit" value="submit" /&gt;&lt;/th&gt;
          &lt;th width="44" scope="row"&gt;&lt;input type="reset" name="clear" id="clear" value="Clear" /&gt;&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/div&gt;
    &lt;div align="center"&gt;
      &lt;table width="372" border="0"&gt;
        &lt;tr&gt; &lt;/tr&gt;
        &lt;tr&gt; &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/div&gt;
  &lt;/form&gt;
</code></pre>

<p>and the reset.php is:</p>

<pre><code>&lt;?php
session_start();
error_reporting(0);
$token=$_GET['token'];
include("settings.php");
connect();
if(!isset($_POST['password'])){
$q="select email from tokens where token='".$token."' and used=0";
$r=mysql_query($q);
while($row=mysql_fetch_array($r))
   {
$email=$row['email'];
   }
If ($email!=''){
          $_SESSION['email']=$email;
}
else die("Invalid link or Password already changed  &lt;a href='../index.php'&gt;Click here to go back to the HOME PAGE&lt;a/&gt;");}

$pass=$_POST['password'];
$email=$_SESSION['email'];

if(isset($_POST['password'])&amp;&amp;isset($_SESSION['email']))
{
$q="update registration set password='".md5($pass)."' where email='".$email."'";
$r=mysql_query($q);
if($r)mysql_query("update tokens set used=1 where token='".$token."'");echo "Your password is changed successfully  &lt;a href='../index.php'&gt;Click here to go back to the HOME PAGE&lt;a/&gt;";
if(!$r)echo "An error occurred";
    }
</code></pre>

<p>so the issue is the following error message is echoed all the time: Invalid link or Password already changed.</p>

<p>also if i add the following to the php code:</p>

<pre><code>if(!isset($pass)){
echo '&lt;form method="post"&gt;
enter your new password:&lt;input type="password" name="password" /&gt;
&lt;input type="submit" value="Change Password"&gt;
&lt;/form&gt;
';}
</code></pre>

<p>then it works but opens it in new blank page which is un professional thats y am trying to add it to the html. any suggestions thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>php.coder</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455163/php-not-updating-password-nor-token-in-the-d.b</guid>
		</item>
				<item>
			<title>Stored Procedure Error</title>
			<link>http://www.daniweb.com/web-development/databases/mysql/threads/455162/stored-procedure-error</link>
			<pubDate>Thu, 23 May 2013 11:12:51 +0000</pubDate>
			<description>Hi all, I'm trying to run a stored procedure: BEGIN SELECT YFR_Master_Fundraisers.FRName, YFR_Master_Fundraisers.FRActive FROM YFR_Master INNER JOIN YFR_Master_Fundraisers ON YFR_Master.FundRaiser = YFR_Master_Fundraisers.FRNameCode GROUP BY YFR_Master.FundRaiser HAVING MAX(YFR_Master.CollectionDate) &lt; DATE_SUB(CURDATE(),INTERVAL 2 MONTH) AND YFR_Master_Fundraisers.FRActive = 1; END But I'm getting the following error: Procedure execution failed 1312 - PROCEDURE db355379982.Deactivate can't ...</description>
			<content:encoded><![CDATA[ <p>Hi all,</p>

<p>I'm trying to run a stored procedure:</p>

<pre><code class="language-sql">BEGIN

SELECT YFR_Master_Fundraisers.FRName, YFR_Master_Fundraisers.FRActive
FROM YFR_Master
INNER JOIN YFR_Master_Fundraisers
ON YFR_Master.FundRaiser = YFR_Master_Fundraisers.FRNameCode
GROUP BY YFR_Master.FundRaiser
HAVING MAX(YFR_Master.CollectionDate) &lt; DATE_SUB(CURDATE(),INTERVAL 2 MONTH)
AND YFR_Master_Fundraisers.FRActive = 1;

END
</code></pre>

<p>But I'm getting the following error:</p>

<p>Procedure execution failed<br />
1312 - PROCEDURE db355379982.Deactivate can't return a result set in the given context</p>

<p>Does anyone know why I might be getting this?</p>

<p>I've never used stored procedures before.</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/mysql/126">MySQL</category>
			<dc:creator>Tinnin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/mysql/threads/455162/stored-procedure-error</guid>
		</item>
				<item>
			<title>How to get current Selected Row in dataGridview and print using crystal rep</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455161/how-to-get-current-selected-row-in-datagridview-and-print-using-crystal-rep</link>
			<pubDate>Thu, 23 May 2013 10:27:10 +0000</pubDate>
			<description>How to get current Selected Row in dataGridview and print using crystal report? Print Only selected current row in data gridview</description>
			<content:encoded><![CDATA[ <p>How to get current Selected Row in dataGridview and print using crystal report?<br />
Print Only selected current row in data gridview</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>ranTHE</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455161/how-to-get-current-selected-row-in-datagridview-and-print-using-crystal-rep</guid>
		</item>
				<item>
			<title>styling tooltip based on title attribute</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/455160/styling-tooltip-based-on-title-attribute</link>
			<pubDate>Thu, 23 May 2013 10:17:32 +0000</pubDate>
			<description>Hi, Is there a way to style tooltips that appear by using title attribute? So far I have been able to find out that its div but cant find out if its associated with any class. And on other site answer I got was No and work around it using ...</description>
			<content:encoded><![CDATA[ <p>Hi,<br />
 Is there a way to style tooltips that appear by using title attribute? So far I have been able to find out that its div but cant find out if its associated with any class. And on other site answer I got was No and work around it using jQuery or something.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/web-design-html-and-css/15">Web Design, HTML and CSS</category>
			<dc:creator>Sahil89</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/455160/styling-tooltip-based-on-title-attribute</guid>
		</item>
				<item>
			<title>CrossTab Query</title>
			<link>http://www.daniweb.com/web-development/databases/ms-sql/threads/455157/crosstab-query</link>
			<pubDate>Thu, 23 May 2013 09:57:21 +0000</pubDate>
			<description>Need help! As you can see, I'm working with a crosstab report that will display the product's &quot;Total Sales&quot; or &quot;Quantity Sold&quot; on a particular year in a monthly basis. Now my problem is, I can't figure it out how I can display the monthly total sales or quantity sold ...</description>
			<content:encoded><![CDATA[ <p>Need help!</p>

<p>As you can see, I'm working with a crosstab report that will display the product's "Total Sales" or "Quantity Sold" on a particular year in a monthly basis. Now my problem is, I can't figure it out how I can display the monthly total sales or quantity sold for a particular product on a grid. I've tried using WHILE statement on SQL but still I wasn't able to get the ideal output.</p>

<p>Here is my SQL Query:</p>

<pre><code class="language-sql">DECLARE @Month int
SET @Month =1

WHILE (@Month &lt;= 12)
BEGIN 
SELECT P.Name AS 'Product Name'
    ,SUM(SOIL.QuantityDisplay) AS 'Qty'
    ,SUM(UnitPrice) AS 'Amount'
FROM BASE_Product P
    INNER JOIN SO_SalesOrderInvoice_Line SOIL
    ON SOIL.ProductId = P.ProductId
WHERE DATEPART(m, SOIL.CreatedDateTime) = @Month
    AND DATEPART(YY, SOIL.CreatedDateTime) = 2013
GROUP BY P.Name, SOIL.QuantityDisplay, SOIL.UnitPrice
SET @Month += 1
END
</code></pre>

<p>Please enlighten me what's wrong!<br /><img src="/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zLzkxYzI1MzI4NjI3MzkxY2ViY2JkNWY3YmI5ZDMyNTlkLlBORw%3D%3D/500" alt="91c25328627391cebcbd5f7bb9d3259d" title="91c25328627391cebcbd5f7bb9d3259d" /></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/ms-sql/127">MS SQL</category>
			<dc:creator>draven07</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/ms-sql/threads/455157/crosstab-query</guid>
		</item>
				<item>
			<title>media player with taskbar toolbar / deskband?</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455156/media-player-with-taskbar-toolbar-deskband</link>
			<pubDate>Thu, 23 May 2013 09:50:04 +0000</pubDate>
			<description>Hello, anyone knows a media player, similar to the old WMP 11 - which had the taskbar toolbar, to be used with Windows 7? The current WMP12 does not support this feature :(</description>
			<content:encoded><![CDATA[ <p>Hello, anyone knows a media player, similar to the old WMP 11 - which had the taskbar toolbar, to be used with Windows 7? The current WMP12 does not support this feature :(</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38">Windows Vista and Windows 7 / 8</category>
			<dc:creator>lordrt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455156/media-player-with-taskbar-toolbar-deskband</guid>
		</item>
				<item>
			<title>Do you know a framework that converts pdf to pps in Java?</title>
			<link>http://www.daniweb.com/software-development/java/threads/455155/do-you-know-a-framework-that-converts-pdf-to-pps-in-java</link>
			<pubDate>Thu, 23 May 2013 09:29:05 +0000</pubDate>
			<description>Do you know how to convert PDF to PPT|PPS documents in Java? I generated a PDF document with IText and now I want to put an option for users to save as ppt|pps</description>
			<content:encoded><![CDATA[ <p>Do you know how to convert PDF to PPT|PPS documents in Java?<br />
I generated a PDF document with IText and now I want to put an option for users to save as ppt|pps</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>m1051f</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455155/do-you-know-a-framework-that-converts-pdf-to-pps-in-java</guid>
		</item>
				<item>
			<title>Tkinter not sending widgets in self</title>
			<link>http://www.daniweb.com/software-development/python/threads/455154/tkinter-not-sending-widgets-in-self</link>
			<pubDate>Thu, 23 May 2013 09:21:06 +0000</pubDate>
			<description>Hey, when I execute the following code I get &quot;App instance has no attribute rolls&quot; I have no clue as to why this is and any help would be awesome, Thanks. import Tkinter class App: def __init__(self, master): self.sticky_all = Tkinter.N+Tkinter.W+Tkinter.E+Tkinter.S self.frame = Tkinter.Frame(master) self.frame.pack() # Dice Buttons. self.bd4 = ...</description>
			<content:encoded><![CDATA[ <p>Hey, when I execute the following code I get "App instance has no attribute rolls" I have no clue as to why this is and any help would be awesome, Thanks.</p>

<pre><code class="language-py">import Tkinter

class App:

    def __init__(self, master):
        self.sticky_all = Tkinter.N+Tkinter.W+Tkinter.E+Tkinter.S
        self.frame = Tkinter.Frame(master)
        self.frame.pack()

        # Dice Buttons.
        self.bd4 = Tkinter.Button(self.frame, text="D4", command = self.roll_dice()) # Button for D4.

        # Text Field.
        self.rolls = Tkinter.Text(self.frame, width=15, height=1)
        self.rolls.tag_configure("center", justify='center')

        # Grid.
        self.rolls.grid(row=0, column=1)
        self.bd4.grid(row=0, column=0)

    def roll_dice(self):
        self.rolls.insert('end', 'text', 'center')

root = Tkinter.Tk()
app = App(root)
root.mainloop()
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>happymadman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455154/tkinter-not-sending-widgets-in-self</guid>
		</item>
				<item>
			<title>Create Oracle Table in C#</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455153/create-oracle-table-in-c</link>
			<pubDate>Thu, 23 May 2013 08:51:43 +0000</pubDate>
			<description>Hey everyone I need some urgent help please. I don't know how but I need make a Time Dimension of an Oracle Table using c#. What needs to happen is: -I want to use Order_Table's Date Column to Create a new table Time_Dim with columns OrderID, Year, Month, Week, Day. ...</description>
			<content:encoded><![CDATA[ <p>Hey everyone</p>

<p>I need some urgent help please.<br />
I don't know how but I need make a Time Dimension of an Oracle Table using c#.</p>

<p>What needs to happen is:</p>

<p>-I want to use Order_Table's Date Column to Create a new table Time_Dim with columns OrderID, Year, Month, Week, Day.</p>

<p>If anyone can help it would be appreciated:)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>ScubaSam</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455153/create-oracle-table-in-c</guid>
		</item>
				<item>
			<title>Simple mySQL query failing</title>
			<link>http://www.daniweb.com/web-development/databases/mysql/threads/455152/simple-mysql-query-failing</link>
			<pubDate>Thu, 23 May 2013 08:39:59 +0000</pubDate>
			<description>I have the following mySQL query, and for some reason I can't get it working. I have two tables: exp_competition_purchase_upload_total contains a member id and total_uploads column. exp_channel_titles has lots of columns, but the two I need to check is author id and channel id. My aim is to query ...</description>
			<content:encoded><![CDATA[ <p>I have the following mySQL query, and for some reason I can't get it working.</p>

<p>I have two tables:</p>

<p>exp_competition_purchase_upload_total contains a member id and total_uploads column. exp_channel_titles has lots of columns, but the two I need to check is author id and channel id.</p>

<p>My aim is to query the first table and locate any rows, find the member_id and take the upload_total associated with it. Then go to the second table, count the rows that have an author id that matches the member id from table one, and has a channel id of 1.</p>

<pre><code class="language-sql">SELECT COUNT(*) AS uploads, c.upload_total 
FROM exp_competition_purchase_upload_total AS c
LEFT JOIN exp_channel_titles AS t ON c.member_id = t.author_id
WHERE c.member_id = '1'
AND t.channel_id = '1'
</code></pre>

<p>Currently the count is returning, but not the upload_total number. The following works:</p>

<pre><code class="language-sql">SELECT upload_total 
FROM exp_competition_purchase_upload_total
WHERE member_id = '1'
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/mysql/126">MySQL</category>
			<dc:creator>sathishnaidu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/mysql/threads/455152/simple-mysql-query-failing</guid>
		</item>
				<item>
			<title>Laptop touchpad  driver issue</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455151/laptop-touchpad-driver-issue</link>
			<pubDate>Thu, 23 May 2013 08:13:36 +0000</pubDate>
			<description>My acer laptop touchpad doesn`t work; but when I uninstall PS/2 mouse driver and restart or shutdown it works perfectly after next windows boot. I have re-intsalled Windows 7. Also when Windows instalation started touchpad was working; but when almost finished it stopped working.</description>
			<content:encoded><![CDATA[ <p>My acer laptop touchpad doesn`t work; but when I uninstall PS/2 mouse driver and restart or shutdown it works perfectly after next windows boot. I have re-intsalled Windows 7. Also when Windows instalation started touchpad was working; but when almost finished it stopped working.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38">Windows Vista and Windows 7 / 8</category>
			<dc:creator>Prasad Thale</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455151/laptop-touchpad-driver-issue</guid>
		</item>
				<item>
			<title>C++ 3DProgramming, Collision Detection Problem against Model</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455150/c-3dprogramming-collision-detection-problem-against-model</link>
			<pubDate>Thu, 23 May 2013 07:35:01 +0000</pubDate>
			<description>Hi Im a student and just started 3D programming 2 weeks ago. I have this problem: I got a working collision detection against models created in Maya. But: The collision is only inside the model, with the normals on the model pointing out as it should be. If I revers ...</description>
			<content:encoded><![CDATA[ <p>Hi Im a student and just started 3D programming 2 weeks ago. I have this problem:</p>

<p>I got a working collision detection against models created in Maya. But:</p>

<p>The collision is only inside the model, with the normals on the model pointing out as it should be.<br />
If I revers the normals on the model(so you can se inside it but not inside out) the collision works great from the outside.<br />
I don't know if my Maya is configured wrong or if I did wrong, or is it my collision? Any idéa?</p>

<p>The collision is only intersecting the triangles inside for an example a box. Not from the outside...<br />
And I cant have reversed normals on models in the game, it dosent look well.</p>

<p>To mention the collision is against a world. WorldCollision.</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>shadyreal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455150/c-3dprogramming-collision-detection-problem-against-model</guid>
		</item>
				<item>
			<title>include() error :(</title>
			<link>http://www.daniweb.com/web-development/php/threads/455149/include-error-</link>
			<pubDate>Thu, 23 May 2013 07:21:30 +0000</pubDate>
			<description>when include file to dreamweaver i cant edit anything in design view. &lt;?php require('header.php');?&gt; What should i do?</description>
			<content:encoded><![CDATA[ <p>when include file to dreamweaver i cant edit anything in design view.<br />
&lt;?php require('header.php');?&gt;</p>

<p>What should i do?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Shalomd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455149/include-error-</guid>
		</item>
				<item>
			<title>Mysql IF Condition</title>
			<link>http://www.daniweb.com/web-development/databases/mysql/threads/455148/mysql-if-condition</link>
			<pubDate>Thu, 23 May 2013 06:22:42 +0000</pubDate>
			<description> CASE WHEN ((SELECT COUNT(id) FROM users) &gt; 0) THEN BEGIN INSERT INTO users(username,password) VALUES('Moshe','Ahuva'); END ELSE BEGIN INSERT INTO users(username,password) VALUES('Zvi','Idan'); END END My aim is to save with a condition. but it fails and says: &quot;Check the manual that correponds to the right syntax near ELSE BEGIN ....&quot;. please ...</description>
			<content:encoded><![CDATA[ <pre><code class="language-sql">CASE WHEN ((SELECT COUNT(id) FROM users) &gt; 0) THEN
    BEGIN
       INSERT INTO users(username,password) VALUES('Moshe','Ahuva');
   END
ELSE 
    BEGIN
       INSERT INTO users(username,password) VALUES('Zvi','Idan');
    END
END
</code></pre>

<p>My aim is to save with a condition. but it fails and says: "Check the manual that correponds to the right syntax near ELSE BEGIN ....". please re-write it better.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/mysql/126">MySQL</category>
			<dc:creator>mogaka</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/mysql/threads/455148/mysql-if-condition</guid>
		</item>
				<item>
			<title>cron job to copy files from server to server</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455147/cron-job-to-copy-files-from-server-to-server</link>
			<pubDate>Thu, 23 May 2013 06:06:03 +0000</pubDate>
			<description>Hello guys, I need to create a daily backup for files and save them on another server I use rsync -av --progress --inplace --rsh='ssh -p22' /var/www/html/product root@37.101.11.144:/var/www/html/backup/ but this ask me for password , I want to create a cron job to copy files automatically at midnight. how can I ...</description>
			<content:encoded><![CDATA[ <p>Hello guys, I need to create a daily backup for files and save them on another server<br />
I use</p>

<pre><code>rsync -av --progress --inplace --rsh='ssh -p22' /var/www/html/product root@37.101.11.144:/var/www/html/backup/
</code></pre>

<p>but this ask me for password , I want to create a cron job to copy files automatically at midnight.<br />
how can I baypass the password ?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>OsaMasw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455147/cron-job-to-copy-files-from-server-to-server</guid>
		</item>
				<item>
			<title>Indentation question</title>
			<link>http://www.daniweb.com/software-development/python/threads/455146/indentation-question</link>
			<pubDate>Thu, 23 May 2013 05:35:16 +0000</pubDate>
			<description>Hi * I'm trying to make a program that converts a vertical list to a horizontal one which works. But am trying to build in check for some correct user input an I get an Indentation error File &quot;.\dairymaster.py&quot;, line 19 pn_test = check_input('1', '2') ^ IndentationError: expected an indented ...</description>
			<content:encoded><![CDATA[ <p>Hi *<br />
I'm  trying to make a program that converts a vertical list to a horizontal one which works. But am trying to build in check for some correct user input an I get an Indentation error</p>

<p>File ".\dairymaster.py", line 19<br />
pn_test = check_input('1', '2')<br />
^<br />
IndentationError: expected an indented block</p>

<p>If I run this piece of code seperate it works fine but combination with the rest I get the above error</p>

<pre><code class="language-py">import sys

action = "draft"

#print ('Please enter which pen:')
#pn = raw_input()
def check_input(a, b):
    """
    check the input 
    """
    prompt = "Please enter which pen %s or %s: " % (a, b)
    while True:
        try:
            pn = str(raw_input(prompt))
            if pn == '1' or pn == '2':
                return pn
        except StringError:

pn_test = check_input('1', '2')
print(pn_test)

#print ('Please enter AM or PM:')
#moa = raw_input('Please enter AM or PM:')
def check_input(c, d):
    """
    check the input 
    """
    prompt = "Please enter either %s or %s: " % (c, d)
    while True:
        try:
            moa = str(raw_input(prompt))
            if moa == 'am' or moa == 'pm':
                return moa
        except StringError:

moa_test = check_input('am', 'pm')
print(moa_test)

#print ('Please enter how many days from now, enter = 0:')
#dfn = raw_input()
def check_input(e, f):
    """
    check the input 
    """
    prompt = "Please enter either %s or %s for today or tomorrow: " % (e, f)
    while True:
        try:
            dfn = str(raw_input(prompt))
            if dfn == '0' or dfn == '+1':
                return dfn
        except StringError:

dfn_test = check_input('0', '+1')
print(dfn_test)

print ('Please enter the filename:')
fname = raw_input()


handle = open(fname, "r")
list = handle.readlines()

combine = ''.join(list).replace("\n", " ")

if dfn == '0'
    return dfn == ' '

oname = "copyme.txt"
fout = open(oname, "w")
fout.write(action + pn + moa + ' ' + dfn + ' ')
fout.write(combine)
fout.close()
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>douwe1971</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455146/indentation-question</guid>
		</item>
				<item>
			<title>yahoo news </title>
			<link>http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455145/yahoo-news-</link>
			<pubDate>Thu, 23 May 2013 05:13:55 +0000</pubDate>
			<description>hello yahoo purchased tumblr in 1.1 billion</description>
			<content:encoded><![CDATA[ <p>hello yahoo purchased tumblr in 1.1 billion</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/social-media-and-communities/50">Social Media and Communities</category>
			<dc:creator>spyindiarahul</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455145/yahoo-news-</guid>
		</item>
				<item>
			<title>scanf help</title>
			<link>http://www.daniweb.com/software-development/c/threads/455143/scanf-help</link>
			<pubDate>Thu, 23 May 2013 02:59:03 +0000</pubDate>
			<description>Hi, I am trying to write a program which read a certain input in a particular format and then gives an ouput. I wrote a code to read the file. Input is something like this. X 20 60 80 90 X 78 98 97 96 X 34 35 43 23 ...</description>
			<content:encoded><![CDATA[ <p>Hi,<br />
I am trying to write a program which read a certain input in a particular format and then gives an ouput. I wrote a code to read the file. Input is something like this.<br />
X 20 60 80 90<br />
X 78 98 97 96<br />
X 34 35 43 23<br />
Y 76 87 34<br />
Y 65 76 72<br />
Z 13 70 39<br />
So my reading function read the input and then it counts the number lines with X and Y. Now, when I wrote two different funcions to read X and Y lines. When I am finished reading the X lines, I go to read Y lines. The code skips the first Y line, because it has already read it without realising that it is a Y line, and then it read the next line while skipping the first Y line. Can I avoid that?</p>

<p>I use scanf to read the first character and then it is true I used scanf in a while loop to read the rest of the numbers and I store those numbers in an array.</p>

<p>As I know that it has already read the next character, can I test it if the character is Y? Because the input may not contain the Y line.</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>sourabhyogi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455143/scanf-help</guid>
		</item>
				<item>
			<title>Java Trident library issue</title>
			<link>http://www.daniweb.com/software-development/java/threads/455141/java-trident-library-issue</link>
			<pubDate>Thu, 23 May 2013 00:49:15 +0000</pubDate>
			<description>So, i have made a small test application attempting to learn and get used to the Trident library. I use a Timeline to alter the position of a JPanel. I was really impressed with how well it worked, until i added a background color to the moving panel, its all ...</description>
			<content:encoded><![CDATA[ <p>So, i have made a small test application attempting to learn and get used to the Trident library. I use a Timeline to alter the position of a JPanel. I was really impressed with how well it worked, until i added a background color to the moving panel, its all fun and games, until you use alpha!</p>

<p>Its such a strange issue, on the way up, the panel goes completely opaque, but then on the way back down, it gets its correct alpha value back and settles with that value.</p>

<p>the timeline code:</p>

<pre><code class="language-java">JPanel text = new JPanel();
text.setVisible(true);
text.setLocation(0, 150);
text.setSize(200, 150);
text.setBackground(new Color(0, 0, 0, 180));

final Timeline rolloverTimeline = new Timeline(text);
rolloverTimeline.addPropertyToInterpolate("location", new Point(0, 150), new Point(0, 50));
rolloverTimeline.setDuration(1000);

this.addMouseListener(new MouseAdapter() {
    @Override
    public void mouseEntered(MouseEvent e) {
        rolloverTimeline.play();
    }

    @Override
    public void mouseExited(MouseEvent e) {
        rolloverTimeline.playReverse();
    }
});

this.add(text);
</code></pre>

<p>Any help would be greatly appreciated, thanks</p>

<p>PS. i'd have posted it on the Trident forums, but that place is a ghost town</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>jasonw749</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455141/java-trident-library-issue</guid>
		</item>
				<item>
			<title>Algorithm for maximization</title>
			<link>http://www.daniweb.com/software-development/python/threads/455140/algorithm-for-maximization</link>
			<pubDate>Wed, 22 May 2013 23:24:14 +0000</pubDate>
			<description>Hello everyone, I have multiple lists of variables. Every list contains the variables corresponding to a single/unique entity. listVar_Entity1 = [x1, x2, x3, x4] listVar_Entity2 = [x5, x6, x7] listVar_Entity3 = [x8, x9, x10, x11, x12] # and so on Every member in a list has a mapping to each ...</description>
			<content:encoded><![CDATA[ <p>Hello everyone,<br />
I have multiple lists of variables. Every list contains the variables corresponding to a single/unique entity.</p>

<pre><code class="language-py">listVar_Entity1 = [x1, x2, x3, x4]
listVar_Entity2 = [x5, x6, x7]
listVar_Entity3 = [x8, x9, x10, x11, x12]
# and so on
</code></pre>

<p>Every member in a list has a mapping to each member of every other list for example:</p>

<pre><code class="language-py">mapping(x1,x9) = some_value
</code></pre>

<p>but there is no relation between variables within a list. I want to find the combination of members of different lists such that the addition of mapping between those variable is maximized assuming mapping(x1, x9) = mapping(x9, x1).<br />
Please help me writing this algorithm.<br />
Thanks<br />
sincerely,<br />
Himanshu</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>superbhimanshu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455140/algorithm-for-maximization</guid>
		</item>
				<item>
			<title>Creating an autobalancer</title>
			<link>http://www.daniweb.com/software-development/java/threads/455139/creating-an-autobalancer</link>
			<pubDate>Wed, 22 May 2013 23:22:31 +0000</pubDate>
			<description>Hello! I've been busy passing exams, but now I'm free to code around again. So, in my usual style! **The goal:** I've been playing some Battlefield 3 during study breaks, and I've often been pissed off by BF3's autobalance mechanism. It's bad. Horrible. It makes me sad. I usually have ...</description>
			<content:encoded><![CDATA[ <p>Hello!<br />
I've been busy passing exams, but now I'm free to code around again.<br />
So, in my usual style!</p>

<p><strong>The goal:</strong><br />
I've been playing some Battlefield 3 during study breaks, and I've often been pissed off by BF3's autobalance mechanism. It's bad. Horrible. It makes me sad. I usually have to watch cat videos for an hour to recover from being autobalanced.<br />
But, it gave me the idea to code my own autobalancer! :D</p>

<p><strong>The problem:</strong><br />
To me, my logic seems fine, but the code breaks when I try to call the methods and objects in my main class.</p>

<p><strong>The code (Player.class):</strong></p>

<pre><code class="language-java">package autobalance;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;

public class Player {

    private Random R = new Random();
    private String name;
    private int team;
    private int score;
    List&lt;Player&gt; allPlayers;

    public Player() {
        this.name = "Soldier ";
        this.score = this.R.nextInt(10000);
        this.team = this.R.nextInt(2) + 1;
    }

    public Player addPlayer(String soldierName) {
        this.allPlayers = new ArrayList&lt;&gt;();
        Player P = new Player();
        P.setName(this.name + soldierName);
        allPlayers.add(P);
        return P;
    }

    public void showTeam(int T) {
        Iterator&lt;Player&gt; IT = this.allPlayers.iterator();
        while (IT.hasNext()) {
            Player temp = IT.next();
            if (temp.getTeam() == T) {
                System.out.println(temp.getName() + "-" + temp.getScore());
            }
        }
    }


    public void setName(String name) {
        this.name = name;
    }   

    public String getName() {
        return name;
    }

    public int getScore() {
        return score;
    }

    public int getTeam() {
        return team;
    }
}
</code></pre>

<p><strong>The code (main Autobalance.class):</strong></p>

<pre><code class="language-java">package autobalance;
public class Autobalance {
    public static void main(String[] args) {

        Player P = new Player();

        P.addPlayer("Mirza");
        P.addPlayer("Asmir");
        P.addPlayer("Ljubo");
        P.addPlayer("Slađo");
        P.addPlayer("Khan");
        P.addPlayer("Vpa");
        P.addPlayer("Marin");

    System.out.println("Team 1:");
        P.showTeam(1);
        System.out.println("Team 2:");
        P.showTeam(2);
    }
}
</code></pre>

<p><strong>Error report:</strong><br />
No red lines in the code, but when I run it, this happens:</p>

<pre><code class="language-java">Exception in thread "main" java.lang.RuntimeException: 
Uncompilable source code - constructor Player in class autobalance.
Player cannot be applied to given types;
  required: no arguments
  found: java.lang.String
  reason: actual and formal argument lists differ in length
    at autobalance.Autobalance.main(Autobalance.java:5)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 s
</code></pre>

<p>It says line 5 in Autobalance.class is broken, does that mean all of Player.class is broken? :S<br />
I'd really appreaciate gurus' help. :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>Pobunjenik</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455139/creating-an-autobalancer</guid>
		</item>
				<item>
			<title>Accessing Data from Terminal and Making Available</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455138/accessing-data-from-terminal-and-making-available</link>
			<pubDate>Wed, 22 May 2013 21:10:30 +0000</pubDate>
			<description>Hello all, I'm both new to the forum, and to C++. The only languages I know (and not extremely well) are CLISP, ICARUS, and MatLab. I'm planning on learning C++, but I was wondering if this problem could be solved without a full-fledged understanding of C++ for the time being. ...</description>
			<content:encoded><![CDATA[ <p>Hello all, I'm both new to the forum, and to C++. The only languages I know (and not extremely well) are CLISP, ICARUS, and MatLab. I'm planning on learning C++, but I was wondering if this problem could be solved without a full-fledged understanding of C++ for the time being.</p>

<p>My current problem lies within access to data from a program that's already been written. This program is for a MAV Quadcopter and utilizes this code that can be found at the link here <a href="https://code.google.com/p/arducopter/downloads/list" rel="nofollow">https://code.google.com/p/arducopter/downloads/list</a></p>

<p>Arducopter 2.9.1b is the version we're working with as a team.</p>

<p>I'm trying to get the data to be accessed through the terminal, and thus able to utilize in real-time for other programs. I know the Arducopter program provides me with the data necessary as I can access it from programs like ArducopterMissionPlanner10 (Mission Planner 1.2.52 mav 1.0) and call it from test mode and setup modes within the terminal of that application.</p>

<p>Odds are I will get a C++ book here in the next couple of days or seek out an online route, so if you cannot help me initially, but have a good book to suggest or route to learn, I'd be appreciative in the same.</p>

<p>I appreciate any and all help in advance, and I'm looking forward to learning!</p>

<p>Best regards,</p>

<p>B</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>pbsarg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455138/accessing-data-from-terminal-and-making-available</guid>
		</item>
				<item>
			<title>Undefined offset? Why?</title>
			<link>http://www.daniweb.com/web-development/php/threads/455136/undefined-offset-why</link>
			<pubDate>Wed, 22 May 2013 20:57:22 +0000</pubDate>
			<description>Why does this code snippet keep getting Undefined offset: 2, Undefined offset: 7, Undefined offset: 11, respectively? I'm not sure where I'm going wrong, for($i = 0; $i &lt; $user_length; $i++) // CHECKS IF THE USERNAME, FIRST NAME, IC NUMBER AND CONTACT NUMBER IS ALREADY BEEN REGISTERED AS A MEMBER ...</description>
			<content:encoded><![CDATA[ <p>Why does this code snippet keep getting Undefined offset: 2, Undefined offset: 7, Undefined offset: 11, respectively? I'm not sure where I'm going wrong,</p>

<pre><code>for($i = 0; $i &lt; $user_length; $i++) // CHECKS IF THE USERNAME, FIRST NAME, IC NUMBER AND CONTACT NUMBER IS ALREADY BEEN REGISTERED AS A MEMBER
                    {
                        $userdetail = explode(":", $user[$i]);
                        if ($_POST['ic'] == $userdetail[2])
                        {
                            echo "&lt;h2&gt;Sorry!&lt;/h2&gt;&lt;p&gt;The ic no is already in use!&lt;/p&gt;";
                            $error = 1;
                            $i = $user_length;
                        }
                        else if ($_POST['phone'] == $userdetail[7])
                        {
                            echo "&lt;h2&gt;Sorry!&lt;/h2&gt;&lt;p&gt;phone no is already in use!&lt;/p&gt;";
                            $error = 1;
                            $i = $user_length;
                        }
                        else if ($_POST['facename'] == $userdetail[10])
                        {   
                            echo "&lt;h2&gt;Sorry!&lt;/h2&gt;&lt;p&gt;The Username you provided is already in use!&lt;/p&gt;";
                            $error = 1;
                            $i = $user_length;
                        }

                    }
</code></pre>

<p>Here's the text file format the explode is reading from:</p>

<p>u0003:omied:123456-12-1234:male:married:privatesector:dfsfsdf:603-32323242:6016-2343432:omied@gmail.com:omeid123:dingo1234</p>

<p>as you can see, ic, phone, and facename are defined as 2, 7 and 10 following the format of the loop and array.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>xianamersu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455136/undefined-offset-why</guid>
		</item>
				<item>
			<title>taking input from command line and outputting to a .txt file</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455134/taking-input-from-command-line-and-outputting-to-a-.txt-file</link>
			<pubDate>Wed, 22 May 2013 19:43:10 +0000</pubDate>
			<description>I have been getting used to c++ as I have been trying various scenarious on programs and exand on them with new concepts. This is my first try at exporting data from command line to a text file and the program runs fine with all the calculations. The real issue ...</description>
			<content:encoded><![CDATA[ <p>I have been getting used to c++ as I have been trying various scenarious on programs and exand on them with new concepts. This is my first try at exporting data from command line to a text file and the program runs fine with all the calculations. The real issue is that none of the outputs are exported to the text file. It is probably some simple oversight and want to say thanks in advance for helping me. Note- This program is supposed to take the inputs of a teacher and export the individual grade w/ letter the number of assignments and class average with letter to the text file.</p>

<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cmath&gt;
#include &lt;cfloat&gt;
#include &lt;fstream&gt;

int i;
float testScore[100];
float sum = 0;
float clavg;
char grade;
int main()
{
    std::fstream myfile;
    myfile.open("grades.txt"); //name of file 
    std::cout&lt;&lt;"Please Enter Your Students Grades."&lt;&lt;std::endl;
    std::cout&lt;&lt;"Type 999 to get Avg"&lt;&lt;std::endl;
    for (i=0; i&lt;100; i++)
    {
        std::cin&gt;&gt;testScore[i];
        if(testScore[i] == 999)
        {
            break;
        }
            if (testScore[i] &gt;= 90 &amp;&amp; testScore[i]&lt;=100)
            {
                grade = 'A';

            }

            if (testScore[i] &gt;= 80 &amp;&amp; testScore[i]&lt;=89)
            {
                grade = 'B';

            }

            if (testScore[i] &gt;= 70 &amp;&amp; testScore[i]&lt;=79)
            {
                grade = 'C';

            }

            if (testScore[i] &gt;= 60 &amp;&amp; testScore[i]&lt;=69)
            {
                grade = 'D';

            }

            if (testScore[i] &gt;=0 &amp;&amp; testScore[i]&lt;=59)
            {
                grade = 'F';

            }

            sum+=testScore[i];
            myfile&lt;&lt;testScore[i]&lt;&lt;" "&lt;&lt;grade&lt;&lt;std::endl;
    }
    clavg = (sum/i);

    if (clavg &gt;= 90 &amp;&amp; clavg&lt;=100)
            {
                grade = 'A';

            }

            if (clavg&gt;= 80 &amp;&amp; clavg&lt;=89)
            {
                grade = 'B';

            }

            if (clavg &gt;= 70 &amp;&amp; clavg&lt;=79)
            {
                grade = 'C';

            }

            if (clavg&gt;= 60 &amp;&amp; clavg&lt;=69)
            {
                grade = 'D';

            }

            if (clavg &gt;=0 &amp;&amp; clavg&lt;=59)
            {
                grade = 'F';

            }
            myfile&lt;&lt;"Total Number of Assignments = "&lt;&lt;i&lt;&lt;std::endl;
            myfile&lt;&lt;"Find Grade = "&lt;&lt;clavg&lt;&lt;" "&lt;&lt;grade&lt;&lt;std::endl;

            myfile.close();

            system("pause");
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>gobiking</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455134/taking-input-from-command-line-and-outputting-to-a-.txt-file</guid>
		</item>
				<item>
			<title>foreach loop issues.</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455133/foreach-loop-issues</link>
			<pubDate>Wed, 22 May 2013 19:24:32 +0000</pubDate>
			<description>Ok the output of this code is Element[0] = 100 Element[0] = 101 Element[0] = 102 Element[0] = 103 Element[0] = 104 Element[0] = 105 Element[0] = 106 Element[0] = 107 Element[0] = 108 Element[9] = 109 its supposed to be Element[0] = 100 Element[1] = 101 Element[2] = 102 ...</description>
			<content:encoded><![CDATA[ <p>Ok the output of this code is<br />
Element[0] = 100<br />
Element[0] = 101<br />
Element[0] = 102<br />
Element[0] = 103<br />
Element[0] = 104<br />
Element[0] = 105<br />
Element[0] = 106<br />
Element[0] = 107<br />
Element[0] = 108<br />
Element[9] = 109</p>

<p>its supposed to be</p>

<p>Element[0] = 100<br />
Element[1] = 101<br />
Element[2] = 102<br />
Element[3] = 103<br />
Element[4] = 104<br />
Element[5] = 105<br />
Element[6] = 106<br />
Element[7] = 107<br />
Element[8] = 108<br />
Element[9] = 109</p>

<p>The code is below. I fixxed the issue, but this code snippet comes straight from a tutorial website.<br />
What I don't know is why doesn't the foreach()  loop add the Element numbers in? I had to change<br />
the  i = 0;   to  i = j - 100; in order to make it output properly. Is anyone else getting the zero's<br />
on their output? Again I am using Visual Studio Express 2012. Why doesn't their code snippet work? What's<br />
wrong with that foreach loop to cause i not to increment and display properly?</p>

<pre><code class="language-cs">foreach statement to iterate through an array.
using System;

namespace ArrayApplication
{
   class MyArray
   {
      static void Main(string[] args)
      {
         int []  n = new int[10]; /* n is an array of 10 integers */


         /* initialize elements of array n */         
         for ( int i = 0; i &lt; 10; i++ )
         {
            n[i] = i + 100;
         }

         /* output each array element's value */
         foreach (int j in n )
         {
            int i = 0;    //&lt;--- I changed this to int i = j - 100;  and the code works properly.
            Console.WriteLine("Element[{0}] = {1}", i, j);
            i++;
         }
         Console.ReadKey();
      }
   }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>CodyOebel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455133/foreach-loop-issues</guid>
		</item>
				<item>
			<title>Passing variable through URL</title>
			<link>http://www.daniweb.com/web-development/php/threads/455132/passing-variable-through-url</link>
			<pubDate>Wed, 22 May 2013 19:12:12 +0000</pubDate>
			<description>I want to pass a combo box value from url in php. I have no idea how to do it. I just try like this. This my combo box html code. &lt;select id=&quot;ID1&quot; name=&quot;place&quot; &gt; &lt;option value=&quot;Colombo&quot; selected=&quot;selected&quot;&gt;Colombo&lt;/option&gt; &lt;option value=&quot;Matara&quot;&gt;Matara&lt;/option&gt; &lt;option value=&quot;Galle&quot;&gt;Galle&lt;/option&gt; &lt;/select&gt; //What i want is pass selected value ...</description>
			<content:encoded><![CDATA[ <p>I want to pass a combo box value from url in php. I have no idea how to do it. I just try like this.<br />
This my combo box html code.</p>

<pre><code> &lt;select id="ID1" name="place" &gt;
&lt;option value="Colombo" selected="selected"&gt;Colombo&lt;/option&gt;
&lt;option value="Matara"&gt;Matara&lt;/option&gt;
&lt;option value="Galle"&gt;Galle&lt;/option&gt;
&lt;/select&gt;

//What i want is pass selected value through URL

   &lt;div style="float:right; padding-right:1px; padding-bottom:2px;"&gt; &lt;a href="MyCity.php?city1= &lt;?php echo $_GET["place"] ; ?&gt; &gt; Click here &lt;/a&gt;&lt;/div&gt;
</code></pre>

<p>I'm bit new to php and what is wrong with this code?<br />
im sure that 'MyCity.php' coding is correct, because i pass, hard coded value throgh above URL and could get that value from MyCity.php</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>weeraa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455132/passing-variable-through-url</guid>
		</item>
				<item>
			<title>Trying to learn Classes</title>
			<link>http://www.daniweb.com/software-development/python/threads/455131/trying-to-learn-classes</link>
			<pubDate>Wed, 22 May 2013 19:02:29 +0000</pubDate>
			<description>Hey guys, I'm trying to learn how to use classes and work with seperate files, and I been reading about it and now I tryed making a little short &quot;Hello World&quot; thingy but I don't really understand the self. things, I thought I did but it's not working so I ...</description>
			<content:encoded><![CDATA[ <p>Hey guys, I'm trying to learn how to use classes and work with seperate files, and I been reading about it and now I tryed making a little short "Hello World" thingy but I don't really understand the self. things, I thought I did but it's not working so I guess I diden't</p>

<p>Heres the code anyways:<br />
HelloWorld.py</p>

<pre><code class="language-py">class HelloWorld :

        def __init__(self):

            print("Hi")

        def Talk(self ,name):

            self.nameA = name
            print("Hello",self.nameA)
</code></pre>

<p>Main.py</p>

<pre><code class="language-py">import HelloWorld

HelloWorld.HelloWorld.Talk("Kevin")
</code></pre>

<p>I get the error:</p>

<pre><code class="language-py">Traceback (most recent call last):
  File "D:\PygameSpel\Test med klasser\Main.py", line 3, in &lt;module&gt;
    HelloWorld.HelloWorld.Talk("Kevin")
TypeError: Talk() takes exactly 2 arguments (1 given)
</code></pre>

<p>what am I missing?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>Necrozze</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455131/trying-to-learn-classes</guid>
		</item>
			</channel>
</rss>