<?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>How to sum two column</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455284/how-to-sum-two-column</link>
			<pubDate>Sat, 25 May 2013 09:48:55 +0000</pubDate>
			<description>I choose a program that can read data from a txt file. Now, I input two column from txt file and i want to substract first value of 2nd column to every value of 2nd column. finally I want the sum of substracted values. Can anyone please help me. Actually, ...</description>
			<content:encoded><![CDATA[ <p>I choose a program that can read data from a txt file. Now, I input two column from txt file and i want to substract first value of 2nd column to every value of 2nd column. finally I want the sum of substracted values. Can anyone please help me. Actually, i did like substract(1)+substract(2)+substract(3)+.........substract(n). But these becomes so long and mistaken can happened. So, I want a shot rules like    h= sum(test[i]-test[0]).</p>

<h1>include&lt;iostream&gt;</h1>

<h1>include&lt;fstream&gt;</h1>

<h1>include&lt;string&gt;</h1>

<h1>include&lt;cstdlib&gt;</h1>

<h1>include&lt;cmath&gt;</h1>

<h1>include&lt;iomanip&gt;</h1>

<h1>include &lt;windows.h&gt;</h1>

<pre><code class="language-cpp">using namespace std;
//void calculateAverage();
//int calculateGrade();
//void updateFrequency();
int main()
{
const int size=25;
int debug=size;
double test1[size], test2[size],h;
ifstream infile;
for(int i=0;i&lt;size;i++)
{
test1[i]=0;
test2[i]=0;
}
cout&lt;&lt;"Reading from file ''input.txt''..."&lt;&lt;endl;
infile.open("input.txt");
while(size==debug)
{
for(int i=0;i&lt;size;i++)
{
infile&gt;&gt;test1[i];
infile&gt;&gt;test2[i];
}
debug--;
}
for(int i=0;i&lt;size;i++)
{
h=(test[i]-test[0]);
cout&lt;&lt;test1[i]&lt;&lt;" "&lt;&lt;test2[i]&lt;&lt;" "&lt;&lt; h &lt;&lt;" "&lt;&lt;endl;
}
infile.close();
system("pause");
return 0;
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>siddiquedu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455284/how-to-sum-two-column</guid>
		</item>
				<item>
			<title>about BCNF</title>
			<link>http://www.daniweb.com/web-development/databases/threads/455283/about-bcnf</link>
			<pubDate>Sat, 25 May 2013 08:40:54 +0000</pubDate>
			<description>For each of the following sets of functional dependencies on a schema r(A, B, C, D, E) AB --&gt; C, D --&gt; E, B --&gt; E A --&gt; CD, B --&gt; DE AB --&gt; C, C --&gt; D For each of the above set of functional dependencies, decompose relation r ...</description>
			<content:encoded><![CDATA[ <p>For each of the following sets of functional dependencies on a schema r(A, B, C, D, E)</p>

<p>AB --&gt; C, D --&gt; E, B --&gt; E<br />
A --&gt; CD, B --&gt; DE<br />
AB --&gt; C, C --&gt; D</p>

<p>For each of the above set of functional dependencies, decompose relation r into BCNF</p>

<p>how to decompose r into BCNF of above relation r?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/16">Databases</category>
			<dc:creator>jalpesh_007</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/threads/455283/about-bcnf</guid>
		</item>
				<item>
			<title>SEO Plan and Recover Google Panda &amp; Penguin Updates</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455282/seo-plan-and-recover-google-panda-penguin-updates</link>
			<pubDate>Sat, 25 May 2013 08:38:16 +0000</pubDate>
			<description>Hello, I hope you are doing fine. Do you want to see your website in Top 10 position in Google or other major search engine? Do you want more targeted visitors on your website? If yes, then please let us know your domain name which you want to optimize. We ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I hope you are doing fine.</p>

<p>Do you want to see your website in Top 10 position in Google or other major search engine?<br />
Do you want more targeted visitors on your website?</p>

<p>If yes, then please let us know your domain name which you want to optimize. We will analysis your website and send full SEO proposal with plan and activity which will implement on your website. We also provide you "SEO Plan and Recover Google Panda Penguin Updates" You can see recovery activity here <a href="http://www.successsign.com/seo-services/seo-plans-for-recover-from-google-new-updates-panda-penguin.aspx" rel="nofollow">http://www.successsign.com/seo-services/seo-plans-for-recover-from-google-new-updates-panda-penguin.aspx</a></p>

<p>Thanks &amp; Regard<br />
Satyendra Kumar</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>satyendrasony</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455282/seo-plan-and-recover-google-panda-penguin-updates</guid>
		</item>
				<item>
			<title>File Streaming- Basics</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455281/file-streaming-basics</link>
			<pubDate>Sat, 25 May 2013 07:18:54 +0000</pubDate>
			<description>**Create a class Employee with name, Id and salary as data members. Provide appropriate constructors, set, get and display methods in the class. In the main program, use a do-while loop to enter data for employees as long as the user desires and save all data to a file. Once ...</description>
			<content:encoded><![CDATA[ <p><strong>Create a class Employee with name, Id and salary as data members. Provide appropriate<br />
constructors, set, get and display methods in the class.<br />
In the main program, use a do-while loop to enter data for employees as long as the user<br />
desires and save all data to a file.<br />
Once the user is done with data entry, read the data for employees from the file and<br />
display the information of each employee.</strong></p>

<pre><code class="language-cpp">// Lab_13_A.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include&lt;iostream&gt;
#include&lt;conio.h&gt;
#include&lt;string&gt;
#include&lt;fstream&gt;
using namespace std;

class emp
{
private:
    int id,sal;
    string name;
public:
    emp (int i=0,int sa=0,string s=""){id=i;sal=sa;name=s;}
    void set(int i=0,int sa=0,string s=""){id=i;sal=sa;name=s;}
    string getname(){return name;}
    int getid(){return id;}
    int getsal(){return sal;}
    void display()
    {
        cout&lt;&lt;"\nName: "&lt;&lt;name&lt;&lt;endl;
        cout&lt;&lt;"\nID: "&lt;&lt;id&lt;&lt;endl;
        cout&lt;&lt;"\nSalary: "&lt;&lt;sal&lt;&lt;endl;
    }
};


int _tmain(int argc, _TCHAR* argv[])
{
    int i,s;
    string n;
    char ch;
    ofstream inf("abc.txt");
    emp e;
    do
    {
        cout&lt;&lt;"Enter Name: ";
        cin&gt;&gt;n;
        cout&lt;&lt;"Enter ID: ";
        cin&gt;&gt;i;
        cout&lt;&lt;"Enter Salary: ";
        cin&gt;&gt;s;
        e.set(i,s,n);
        inf.write(reinterpret_cast&lt;char *&gt;(&amp;e),sizeof(e));
        inf.close();
        cout&lt;&lt;"\nWant to add more: ";
        cin&gt;&gt;ch;
    }while(ch!='n');

    ifstream outf("abc.txt");
    while(!outf.eof())
    {
        outf.read(reinterpret_cast&lt;char *&gt;(&amp;e),sizeof(e));
        e.display();
    }
    outf.close();

    getch();
}
</code></pre>

<p>The output is wrong.<br />
 When I Input more than one record, It shows just the first record in output.<br />
 Secondly It shows the same record 2 times, in the output.<br />
 Please Help people.<br />
 I have ( OOP/C++ ) semester exam in a week and I am very weak in file handling.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>aslam.junaid786</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455281/file-streaming-basics</guid>
		</item>
				<item>
			<title>PR 3 Dofollow Web Directory</title>
			<link>http://www.daniweb.com/internet-marketing/threads/455280/pr-3-dofollow-web-directory</link>
			<pubDate>Sat, 25 May 2013 06:44:28 +0000</pubDate>
			<description>I want to share a PR3 Dofollow web directory with you guys. Click here =&gt; [Internet Web Directory](http://www.find-on-google.com)</description>
			<content:encoded><![CDATA[ <p>I want to share a PR3 Dofollow web directory with you guys.</p>

<p>Click here =&gt; <a href="http://www.find-on-google.com" rel="nofollow">Internet Web Directory</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/25">Internet Marketing</category>
			<dc:creator>kim85</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/threads/455280/pr-3-dofollow-web-directory</guid>
		</item>
				<item>
			<title>ageing report in php</title>
			<link>http://www.daniweb.com/web-development/php/threads/455279/ageing-report-in-php</link>
			<pubDate>Sat, 25 May 2013 05:11:54 +0000</pubDate>
			<description>hi I tried to generate ageing reports in php. But I could not get result and even error. it is my code. Pls help me connection.inc.php try { $hostname = &quot;server&quot;; //host $dbname = &quot;database&quot;; //db name $username = &quot;user&quot;; // username like 'sa' $pw = &quot;password&quot;; // password for ...</description>
			<content:encoded><![CDATA[ <p>hi<br />
I tried to generate ageing reports in php. But I could not get result and even error.<br />
it is my code. Pls help me</p>

<p>connection.inc.php</p>

<pre><code>  try {
        $hostname = "server";            //host
        $dbname = "database";            //db name
        $username = "user";            // username like 'sa'
        $pw = "password";                // password for the user
        $dbh = new PDO ("mssql:host=$hostname;dbname=$dbname","$username","$pw");
    } 

  catch (PDOException $e) 
    {
        echo "Not found " . $e-&gt;getMessage() . "\n";
        file_put_contents('PDOErrors.txt', $e-&gt;getMessage(), FILE_APPEND);
        exit;
    }
</code></pre>

<p>index.php</p>

<pre><code>&lt;?php

include_once '../inc/connection.inc.php';
include 'searchform.html.php';
?&gt;
&lt;?php

/*

if (isset($_POST['datefrom']) &amp;&amp; $_POST['datefrom']  != "" )
    {

       $datefrom = $_POST["datefrom"];

       $stmt = $dbh-&gt;query("SELECT Code,Name,
              SUM(CASE WHEN DocDate &gt;= '$datefrom' - 30 THEN Balance ELSE 0 END) AS d30, 
              SUM(CASE WHEN DocDate BETWEEN '$datefrom' - 60 AND '$datefrom' - 31  THEN Balance ELSE 0 END) AS d60, 
              SUM(CASE WHEN DocDate &lt; '$datefrom' - 60 THEN Balance ELSE 0 END) AS above61,
              SUM(Balance) AS total_outstanding FROM AgeingReport GROUP BY Code");  

      $stmt-&gt;setFetchMode(PDO::FETCH_ASSOC);           
    }
    include 'view.html.php';
    exit();
*/
?&gt;

&lt;?php

if (isset($_POST['datefrom']) &amp;&amp; $_POST['datefrom']  != "" )
    {

    $datefrom = $_POST["datefrom"];

    $stmt=$dbh-&gt;prepare(" SELECT Code, Name, DATEDIFF('$datefrom', DocDate) AS days_past_due,
                        SUM(IF(days_past_due = 0, Balance, 0) As curent),
                        SUM(IF(days_past_due BETWEEN 1 AND 30, Balance, 0) As d30),
                        SUM(IF(days_past_due BETWEEN 31 AND 60, Balance, 0) As d60),
                        SUM(IF(days_past_due BETWEEN 61 AND 90, Balance, 0) As d90),
                        SUM(IF(days_past_due &gt; 90, Balance, 0) As d90above)
                        FROM AgeingReport GROUP BY Code");

    $stmt-&gt;setFetchMode(PDO::FETCH_ASSOC);  
  }
    include 'view.html.php';
    exit();

?&gt;
</code></pre>

<p>searchform.html.php</p>

<pre><code>&lt;?php
include '../templete/header.php';
?&gt;
&lt;div&gt;
&lt;h6&gt;Ageing Report&lt;/h6&gt;
&lt;/div&gt;

&lt;form action="" method="post"&gt;
&lt;table class="tdtable" id="tdtable"&gt;

  &lt;tr&gt;
    &lt;td&gt;As on:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" id="datepicker1" name="datefrom" /&gt;&lt;/td&gt;
  &lt;/tr&gt;

&lt;/table&gt;
&lt;div&gt;
    &lt;input type="submit" value="Search"&gt;
&lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>view.html.php</p>

<pre><code>&lt;?php //include '../templete/header.php'; ?&gt;


&lt;table width="100%" align="center" cellpadding="4" cellspacing="1" class=tbl_table"&gt;
  &lt;tr&gt;
    &lt;td class="tbl_header"&gt;MV CODE&lt;/td&gt;
    &lt;td class="tbl_header"&gt;MV NAME&lt;/td&gt;
    &lt;td class="tbl_header"&gt;Current&lt;/td&gt;
    &lt;td class="tbl_header"&gt;30-days&lt;/td&gt;
    &lt;td class="tbl_header"&gt;60-days&lt;/td&gt;
    &lt;td class="tbl_header"&gt;90-days&lt;/td&gt;
    &lt;td class="tbl_header"&gt;90-days above&lt;/td&gt;


  &lt;/tr&gt;
        &lt;?php 
          if(isset($stmt))
            { 
                while($row = $stmt-&gt;fetch())
            {?&gt;
    &lt;tr&gt;
      &lt;td class="tbl_content"&gt;&lt;?php echo $row['Code'];?&gt;&lt;/td&gt;
      &lt;td class="tbl_content"&gt;&lt;?php echo $row['Name'];?&gt;&lt;/td&gt;
      &lt;td class="tbl_content"&gt;&lt;?php echo $row['SONo'];?&gt;&lt;/td&gt;
      &lt;td class="tbl_content_right"&gt;&lt;?php echo number_format(current,2) ;?&gt;&lt;/td&gt;
      &lt;td class="tbl_content_right"&gt;&lt;?php echo number_format(d30,2) ;?&gt;&lt;/td&gt;
      &lt;td class="tbl_content_right"&gt;&lt;?php echo number_format(d60,2) ;?&gt;&lt;/td&gt;
      &lt;td class="tbl_content_right"&gt;&lt;?php echo number_format(d90,2) ;?&gt;&lt;/td&gt;
      &lt;td class="tbl_content_right"&gt;&lt;?php echo number_format(d90above,2) ;?&gt;&lt;/td&gt;

    &lt;/tr&gt;

    &lt;?php 

    }}?&gt; 




&lt;tr&gt;&lt;td colspan="9"&gt;&lt;hr /&gt;&lt;/tr&gt;

&lt;tr&gt;
&lt;/tr&gt;
&lt;/table&gt;


&lt;?php unset($dbh); unset($stmt); ?&gt;

&lt;?php
include '../templete/footer.php';
?&gt;
</code></pre>

<p>Pls help me</p>

<p>Maideen</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Maideen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455279/ageing-report-in-php</guid>
		</item>
				<item>
			<title>BIOS password</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455278/bios-password</link>
			<pubDate>Sat, 25 May 2013 04:45:28 +0000</pubDate>
			<description>hi i have forgotten my BIOS password ( I am using aspire 4730z and windows 7 32 bit) i tried D:\&gt;cmos&gt;windows&gt;ioperm.exe -i OpenSCManager function call failed. Error: ioperm.sys installation failed. how to fix this error there is any other way to remove BIOS password thanks for your time</description>
			<content:encoded><![CDATA[ <p>hi<br />
i have forgotten my BIOS password ( I am using aspire 4730z and windows 7 32 bit)</p>

<p>i tried<br />
D:&gt;cmos&gt;windows&gt;ioperm.exe -i</p>

<p>OpenSCManager function call failed.<br />
Error: ioperm.sys installation failed.</p>

<p>how to fix this error<br />
there is any other way to remove BIOS password</p>

<p>thanks for your time</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>ganges</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455278/bios-password</guid>
		</item>
				<item>
			<title>remote custom server access in PHP</title>
			<link>http://www.daniweb.com/web-development/php/threads/455277/remote-custom-server-access-in-php</link>
			<pubDate>Sat, 25 May 2013 04:13:38 +0000</pubDate>
			<description>I am new to web developing but do code in c++ I wanna develop scenario as: I have a database server that has its own query instruction sets and reply mechanism.. So I want php to connect to this server and execute the queries and get the results out of ...</description>
			<content:encoded><![CDATA[ <p>I am new to web developing but do code in c++</p>

<p>I wanna develop scenario as:<br />
I have a database server that has its own query instruction sets and reply mechanism.. So I want php to connect to this server and execute the queries and get the results out of it.. I appreciate the ODBC layer....but ain't php flexible to support my scenario?.....Please help me out...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>sbibek</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455277/remote-custom-server-access-in-php</guid>
		</item>
				<item>
			<title>How can i auto click on a link after x amount of time?</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455276/how-can-i-auto-click-on-a-link-after-x-amount-of-time</link>
			<pubDate>Sat, 25 May 2013 03:30:21 +0000</pubDate>
			<description>Hello, I want to click the skip ad buttom when the buttom appears, can someone please explain me how this can be done using jquery? Here is the Code &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body style=&quot;margin:0px;padding:0px;&quot;&gt; &lt;iframe src=&quot;http://bc.vc/7VsNj6&quot; style=&quot;width:100%; height:100%; border:none;&quot; id=&quot;frame&quot;&gt; &lt;p&gt;Your browser does not support iframes.&lt;/p&gt; &lt;/iframe&gt; &lt;/body&gt; &lt;/html&gt; Thanks ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I want to click the skip ad buttom when the buttom appears, can someone please explain me how this can be done using jquery?</p>

<p>Here is the Code</p>

<pre><code class="language-js">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body style="margin:0px;padding:0px;"&gt;

&lt;iframe src="<a href="http://bc.vc/7VsNj6" rel="nofollow">http://bc.vc/7VsNj6</a>" style="width:100%; height:100%; border:none;" id="frame"&gt;
  &lt;p&gt;Your browser does not support iframes.&lt;/p&gt;
&lt;/iframe&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<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>spyece</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455276/how-can-i-auto-click-on-a-link-after-x-amount-of-time</guid>
		</item>
				<item>
			<title>database</title>
			<link>http://www.daniweb.com/software-development/objective-c/threads/455275/database</link>
			<pubDate>Sat, 25 May 2013 03:20:15 +0000</pubDate>
			<description>I had an exam in database. during the tutorials we were instructed to create a query and run it. The exam question only asked to create a query. I did just that n got it wrong. Would u say that a create query question always expects the query to run? ...</description>
			<content:encoded><![CDATA[ <p>I had an exam in database.<br />
during the tutorials we were instructed to create a query and run it.<br />
The exam question only asked to create a query. I did just that n got it wrong.<br />
Would u say that a create query question always expects the query to run?<br />
The other anomoly was Append.<br />
Is it data base language that these words mean to create the action as well as execute them?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/objective-c/34">Objective-C</category>
			<dc:creator>Kimsheron</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/objective-c/threads/455275/database</guid>
		</item>
				<item>
			<title>First AMD based &lt;budget&gt; gaming rig (650$)</title>
			<link>http://www.daniweb.com/hardware-and-software/threads/455274/first-amd-based-budget-gaming-rig-650</link>
			<pubDate>Sat, 25 May 2013 02:40:56 +0000</pubDate>
			<description> I'm planning to make a new budget gaming pc. I saw AMD had better performance at low budget. So this is what I have deciced: HERE IS MY WISHLIST: http://amzn.com/w/IOVE5X6Q4M85 **CPU: AMD FX 6300 GPU: Visiontek Radeon HD 7850 2GB GDDR5 Mobo: Gigabyte GA-970A-D3 RAM: Corsair Vengeance 8GB (2x4) HDD: ...</description>
			<content:encoded><![CDATA[ <p>I'm planning to make a new budget gaming pc. I saw AMD had better performance at low budget.</p>

<p>So this is what I have deciced:<br />
HERE IS MY WISHLIST: <a href="http://amzn.com/w/IOVE5X6Q4M85" rel="nofollow">http://amzn.com/w/IOVE5X6Q4M85</a></p>

<p><strong>CPU: AMD FX 6300<br />
GPU: Visiontek Radeon HD 7850 2GB GDDR5<br />
Mobo: Gigabyte GA-970A-D3<br />
RAM: Corsair Vengeance 8GB (2x4)<br />
HDD: Seagate Barracuda 1TB<br />
PSU: Corsair 600CX<br />
ODD: Samsung SH-224DB/IDDS DVD Burner optical drive<br />
Cab: Cooler Master Elite 310 (OR) Thermaltake V3 Red-Black AMD Gaming edition<br />
Monitor: Viewsonic VX2370SMH-LED 23 inch IPS LED monitor</strong></p>

<p>Q1. How is this configuration?<br />
Q2. How is the monitor? Is it worth the price?<br />
Q3. Will this configuration be future proof for at least 3 years?<br />
Q4. Can it run games like Battlefield 3, NFS Most Wanted 2, Black Ops 2, GTA 4, Mafia 2, Crysis 3 on maximum settings in 1920 x 1080 resolution?<br />
Q5. This rig is costing me about 740$ (with monitor) on amazon and here in INDIA, it costs me like 1000$ (With Monitor). But if I buy it from amazon and send it to my uncle's place in the states, can I reduce the cost? I hope there is no extra charges for amazon in the states. Right?</p>

<p>PS: Please rate this rig out of 100.   Thanks to all!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/1">Hardware and Software</category>
			<dc:creator>nmakes</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/threads/455274/first-amd-based-budget-gaming-rig-650</guid>
		</item>
				<item>
			<title>Hi, I&#039;m Renato </title>
			<link>http://www.daniweb.com/community-center/community-introductions/threads/455272/hi-im-renato-</link>
			<pubDate>Fri, 24 May 2013 22:16:04 +0000</pubDate>
			<description>Hi, I'm Renato. I'm about to graduate with a CS major an would love to create more contacts for the real world. I would love to share more knowledge and get alot from the forum. Let's give our best :)</description>
			<content:encoded><![CDATA[ <p>Hi, I'm Renato.<br />
I'm about to graduate with a CS major an would love to create more contacts for the real world. I would love to share more knowledge and get alot from the forum.<br />
Let's give our best :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/community-introductions/165">Community Introductions</category>
			<dc:creator>renato_francia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/community-introductions/threads/455272/hi-im-renato-</guid>
		</item>
				<item>
			<title>ARRAY/LIST?</title>
			<link>http://www.daniweb.com/software-development/python/threads/455271/arraylist</link>
			<pubDate>Fri, 24 May 2013 22:00:11 +0000</pubDate>
			<description>in my code (below) im looking to stop using long list of if statements to randomly select a phrase, how would i use an array to accomplish the same task? link to code http://ideone.com/0l8xiI</description>
			<content:encoded><![CDATA[ <p>in my code (below) im looking to stop using long list of if statements to randomly select a phrase, how would i use an array to accomplish the same task?<br />
link to code <a href="http://ideone.com/0l8xiI" rel="nofollow">http://ideone.com/0l8xiI</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>daniel.king.39794</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455271/arraylist</guid>
		</item>
				<item>
			<title>Can PhoneGap actually accelerate my mobile development needs?</title>
			<link>http://www.daniweb.com/software-development/mobile-development/threads/455270/can-phonegap-actually-accelerate-my-mobile-development-needs</link>
			<pubDate>Fri, 24 May 2013 21:34:42 +0000</pubDate>
			<description>Hi, I'm new to mobile development. I recently came across phonegap and i wanted to know if PhoneGap would actually be able to build my mobile apps faster. I'm a PHP developer and i use CI for my development. So is PhoneGap something like CI for mobile app development? I ...</description>
			<content:encoded><![CDATA[ <p>Hi,<br />
I'm new to mobile development. I recently came across phonegap and i wanted to know if PhoneGap would actually be able to build my mobile apps faster. I'm a PHP developer and i use CI for my development. So is PhoneGap something like CI for mobile app development? I wanted to know if the apps built by PhoneGap can only be accessed by a mobile browser or does it open like any other mobile app? Thanks in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/mobile-development/181">Mobile Development</category>
			<dc:creator>unikorndesigns</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/mobile-development/threads/455270/can-phonegap-actually-accelerate-my-mobile-development-needs</guid>
		</item>
				<item>
			<title>append data to memory mapped file in MapViewOfFile</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455269/append-data-to-memory-mapped-file-in-mapviewoffile</link>
			<pubDate>Fri, 24 May 2013 18:49:51 +0000</pubDate>
			<description>Hello guys, I'm using MapViewOfFile to map a file and try to edit its data and save it on the file. The problem I have extra data to the file required to expand its size. So, how to append data to the end of memory mapped file using CreateFileMapping and ...</description>
			<content:encoded><![CDATA[ <p>Hello guys,<br />
I'm using MapViewOfFile to map a file and try to edit its data and save it on the file.<br />
The problem I have extra data to the file required to expand its size.<br />
So, how to append data to the end of memory mapped file using CreateFileMapping and MapViewOfFile?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Rasool Ahmed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455269/append-data-to-memory-mapped-file-in-mapviewoffile</guid>
		</item>
				<item>
			<title>reloading previous page with popstate</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455268/reloading-previous-page-with-popstate</link>
			<pubDate>Fri, 24 May 2013 18:14:49 +0000</pubDate>
			<description>I've gotten this far on setting up popstate() - a totally new thing for me. I have loaded content for each click of the navigation, and pushstate() changes the url. But it doesn't load anything when the back button is pressed. Only when I've pressed the back button enough, that ...</description>
			<content:encoded><![CDATA[ <p>I've gotten this far on setting up popstate() - a totally new thing for me. I have loaded content for each click of the navigation, and pushstate() changes the url.</p>

<p>But it doesn't load anything when the back button is pressed. Only when I've pressed the back button enough, that the url shows the index page again, then it reloads the page.</p>

<p>Here's what I have so far:</p>

<pre><code class="language-js">$("#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');


                href = $(this).attr("href");

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

                // fade out the main box                
                if(loadpage == "inc/index.php"){

                    $('#main_center_box,.header_content').css({opacity:1}).stop().animate({ opacity: 0 }, 700, function() { /* animation complete */ });
                    $('#starting_point, .places-slideshow,#full-size-background').css({display:"block"}).stop().animate({ opacity: 1 }, 1400, function() { /* animation complete */ });
                    $('#main_center_box').css({zIndex:"-1"});
                    $("#starting_point_link").attr('class','');

                } else {
                    $('#main_center_box,#footer_links').stop().animate({ opacity: 0, zIndex:0 }, 700, function() { 
                        $(this).attr('class','current');

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

                        window.history.pushState('', 'New URL: '+href, href);

                    });
                }
    });




    // researching deeplinking solutions

    function change(state) {
    if(state === null) {
        $("#main_center_box").load('inc/mazenga.php');
    } else {

        $("#main_center_box").load(state.url);
    }
}

$(window).bind("popstate", function(e) {
    change(e.originalEvent.state);
});



(function(original) {
    history.pushState = function(state) {
        change(state);
        return original.apply(this, arguments);
    };
})(history.pushState);
</code></pre>
 ]]></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/455268/reloading-previous-page-with-popstate</guid>
		</item>
				<item>
			<title>Deleting from an array</title>
			<link>http://www.daniweb.com/web-development/php/threads/455267/deleting-from-an-array</link>
			<pubDate>Fri, 24 May 2013 18:09:17 +0000</pubDate>
			<description>I have an array that looks like this: `Array ( [0] =&gt; Array ( [id] =&gt; 2 [name] =&gt; test product1 [description] =&gt; test [quantity] =&gt; 1 [price] =&gt; 188 [status] =&gt; Brand New [category] =&gt; Computer Software [subcategory] =&gt; Music Software [postdate] =&gt; 2013-05-19 [prodimage] =&gt; [user] =&gt; admin ...</description>
			<content:encoded><![CDATA[ <p>I have an array that looks like this:<br /><code>Array ( [0] =&gt; Array ( [id] =&gt; 2 [name] =&gt; test product1 [description] =&gt; test [quantity] =&gt; 1 [price] =&gt; 188 [status] =&gt; Brand New [category] =&gt; Computer Software [subcategory] =&gt; Music Software [postdate] =&gt; 2013-05-19 [prodimage] =&gt; [user] =&gt; admin ) 
[1] =&gt; Array ( [id] =&gt; 2 [name] =&gt; test product1 [description] =&gt; test [quantity] =&gt; 1 [price] =&gt; 188 [status] =&gt; Brand New [category] =&gt; Computer Software [subcategory] =&gt; Music Software [postdate] =&gt; 2013-05-19 [prodimage] =&gt; [user] =&gt; admin )</code><br />
I want to be able to delete an entire row e.g Array[0] which would mean deleting this;<br /><code>Array ( [0] =&gt; Array ( [id] =&gt; 2 [name] =&gt; test product1 [description] =&gt; test [quantity] =&gt; 1 [price] =&gt; 188 [status] =&gt; Brand New [category] =&gt; Computer Software [subcategory] =&gt; Music Software [postdate] =&gt; 2013-05-19 [prodimage] =&gt; [user] =&gt; admin )</code>.<br />
I tried the following:</p>

<pre><code>$delid = $_GET['delid']//the product id of the element on which DELETE link was clicked.
if($delid){
    $contents = count($_SESSION['cartItems']);//$_SESSION['cartItems'] is the array shown above.
    for($i=0; $i &lt; $contents $i++){
        foreach($_SESSION['cartItems'] as $products){
        if($products['id'] == $delid){
            unset($products[$i]);
           }
        }
    }
}
</code></pre>

<p>But it doesn't delete the specified item form the array. Never implemented such a thing before so i'm a bit confused. How do i go about this? thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>dhani09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455267/deleting-from-an-array</guid>
		</item>
				<item>
			<title>Click date link doesn&#039;t work right</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455266/click-date-link-doesnt-work-right</link>
			<pubDate>Fri, 24 May 2013 18:01:07 +0000</pubDate>
			<description>Click the date link should take me directly to the last post of the thread, but it doesn't do that any more.</description>
			<content:encoded><![CDATA[ <p>Click the date link should take me directly to the last post of the thread, but it doesn't do that any more.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/daniweb-community-feedback/26">DaniWeb Community Feedback</category>
			<dc:creator>Ancient Dragon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455266/click-date-link-doesnt-work-right</guid>
		</item>
				<item>
			<title>Insert functions not working properly?</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455265/insert-functions-not-working-properly</link>
			<pubDate>Fri, 24 May 2013 17:37:00 +0000</pubDate>
			<description>When I use the insert function I can see new data at the front end. But I cannot see the new data in Access. Other times when I close the application and restart, new recorded is not there. If I look in Access application and closed it then open VS2010 ...</description>
			<content:encoded><![CDATA[ <p>When I use the insert function I can see new data at the front end. But I cannot see the new data in Access. Other times when I close the application and restart, new recorded is not there. If I look in Access application and closed it then open VS2010 application new data is not there. What is going on?</p>

<p>this is my code:</p>

<pre><code class="language-cs">usersTableAdapter1.InsertUser(UserNameTextBox.Text.Trim(), PasswordTextBox.Text.Trim());
</code></pre>

<p>userTableAdapter is a tabel adapter insid DataSet.xsd i created insid my windows Application<br />
have this query "InsertUser" with tow paramter</p>

<p>then I try another code but does not work :</p>

<pre><code class="language-cs">                                        OleDbCommand oleDbCMD = new OleDbCommand();
                                        oleDbCMD.CommandText = "INSERT INTO Users([UserName],[Password]) VALUES (@UserName,@Password)";

                                        oleDbCMD.Connection = conn;
                                        oleDbCMD.CommandType = CommandType.Text;

                                        oleDbCMD.Parameters.AddWithValue("@UserName", UserNameTextBox.Text.Trim());
                                        oleDbCMD.Parameters.AddWithValue("@Password", PasswordTextBox.Text.Trim());

                                        OleDbDataAdapter dAdapter = new OleDbDataAdapter();
                                        dAdapter.InsertCommand = oleDbCMD;

                                        oleDbCMD.ExecuteReader();
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>IT_Techno</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455265/insert-functions-not-working-properly</guid>
		</item>
				<item>
			<title>Android: How to not get focus from edit text</title>
			<link>http://www.daniweb.com/software-development/mobile-development/threads/455264/android-how-to-not-get-focus-from-edit-text</link>
			<pubDate>Fri, 24 May 2013 17:33:44 +0000</pubDate>
			<description>Hello, I am creating my app and whenever a page loads it instantly focuses on the edit text. How do i stop this? - Mat</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I am creating my app and whenever a page loads it instantly focuses on the edit text. How do i stop this?</p>

<ul><li>Mat</li>
</ul> ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/mobile-development/181">Mobile Development</category>
			<dc:creator>mat1998x</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/mobile-development/threads/455264/android-how-to-not-get-focus-from-edit-text</guid>
		</item>
				<item>
			<title>C++ language</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455263/c-language</link>
			<pubDate>Fri, 24 May 2013 16:25:49 +0000</pubDate>
			<description>Can we declare objects of type Person, when Person is a class?</description>
			<content:encoded><![CDATA[ <p>Can we declare objects of type Person, when Person is a class?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>nitish.mohiputlall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455263/c-language</guid>
		</item>
				<item>
			<title>Crayon Help</title>
			<link>http://www.daniweb.com/software-development/java/threads/455262/crayon-help</link>
			<pubDate>Fri, 24 May 2013 16:13:05 +0000</pubDate>
			<description>I have to do a project where the imust create a class that draws a crayon and then an applet that draws a box of those crayons. I can get the box to draw, just not the crayons. Help? CLASS import java.awt.*; public class Crayon { private final int BOTTOM ...</description>
			<content:encoded><![CDATA[ <p>I have to do a project where the imust create a class that draws a crayon and then an applet that draws a box of those crayons. I can get the box to draw, just not the crayons. Help?</p>

<p>CLASS</p>

<pre><code class="language-java">import java.awt.*;
public class Crayon
{
    private final int BOTTOM = 150;
    private final int WIDTH = 25;
    private Color color;
    private int length, location;
    //----------------------------------------------------------------------------------------------
    //  Crayon's characteristics.
    //----------------------------------------------------------------------------------------------
    public Crayon (Color color, int length, int position)
    {
        color = color;
        length = length;
        location = position;
    }
    //----------------------------------------------------------------------------------------------
    //  Draws crayon.
    //----------------------------------------------------------------------------------------------
    public void draw (Graphics page)
    {
        System.out.println();
        page.setColor (color);
        page.fillRect (location, BOTTOM - length, WIDTH, length);
    }
}
</code></pre>

<p>APPLET</p>

<pre><code class="language-java">import java.awt.*;
import java.applet.*;
public class BoxOfCrayons extends Applet
{
    private final int APPLET_WIDTH = 350;
    private final int APPLET_HEIGHT = 300;
    Crayon c1 = new Crayon (Color.cyan, 100, 50);
    Crayon c2 = new Crayon (Color.blue, 75, 80);
    Crayon c3 = new Crayon (Color.gray, 100, 110);
    Crayon c4 = new Crayon (Color.green, 90, 140);
    Crayon c5 = new Crayon (Color.magenta, 82, 170);
    Crayon c6 = new Crayon (Color.orange, 100, 200);
    Crayon c7 = new Crayon (Color.pink, 70, 230);
    Crayon c8 = new Crayon (Color.red, 100, 260);
    //----------------------------------------------------------------------------------------------
    //  Draws crayon box.
    //----------------------------------------------------------------------------------------------
    public void paint (Graphics page)
    {
        c1.draw (page);
        c2.draw (page);
        c3.draw (page);
        c4.draw (page);
        c5.draw (page);
        c6.draw (page);
        c7.draw (page);
        c8.draw (page);
        page.setColor (Color.yellow);
        page.fillRect (45, 150, 245, 90);
    }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>nicfred</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455262/crayon-help</guid>
		</item>
				<item>
			<title>WORKING ON NOTEPAD</title>
			<link>http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/455261/working-on-notepad</link>
			<pubDate>Fri, 24 May 2013 15:53:42 +0000</pubDate>
			<description>Hi, I WANT TO WRITE/READ DATA IN PARTICULAR COLUMN NO. IN NOTEPAD BY USING VB 6.0. CAN ANYBODY SEND ME THE CODING FOR THAT.</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I WANT TO WRITE/READ DATA IN PARTICULAR COLUMN NO. IN NOTEPAD BY USING VB 6.0.<br />
CAN ANYBODY SEND ME THE CODING FOR THAT.</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>rohit.dudhbhate</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/455261/working-on-notepad</guid>
		</item>
				<item>
			<title>Reading text file for specific areas in VB</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455260/reading-text-file-for-specific-areas-in-vb</link>
			<pubDate>Fri, 24 May 2013 15:44:10 +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 help? I thought I had it but for some reason the data uploading to the DB wasn't correct :(</p>

<p>(sorry I originally posted this in the wrong area)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>loso09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455260/reading-text-file-for-specific-areas-in-vb</guid>
		</item>
				<item>
			<title>Get Values to var in Jquery</title>
			<link>http://www.daniweb.com/web-development/php/threads/455259/get-values-to-var-in-jquery</link>
			<pubDate>Fri, 24 May 2013 15:29:36 +0000</pubDate>
			<description>Hi, I'm creating a mentionInput, a textarea where i can identify people writing &quot;@NAME&quot; (like facebook) I have a this js file where i tell the info of the names i can identify: $(function () { $('textarea.mention').mentionsInput({ onDataRequest:function (mode, query, callback) { var data = [ { id:1, name:'Kenneth Auchenberg', ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I'm creating a mentionInput, a textarea where i can identify people writing "@NAME" (like facebook)</p>

<p>I have a this js file where i tell the info of the names i can identify:</p>

<pre><code>$(function () {

  $('textarea.mention').mentionsInput({
    onDataRequest:function (mode, query, callback) {
      var data = [
        { id:1, name:'Kenneth Auchenberg', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:2, name:'Jon Froda', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:3, name:'Anders Pollas', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:4, name:'Kasper Hulthin', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:5, name:'Andreas Haugstrup', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:6, name:'Pete Lacey', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:7, name:'kenneth@auchenberg.dk', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:8, name:'Pete Awesome Lacey', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:9, name:'Kenneth Hulthin', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' }
      ];

      data = _.filter(data, function(item) { return item.name.toLowerCase().indexOf(query.toLowerCase()) &gt; -1 });

      callback.call(this, data);
    }
  });

  $('.get-syntax-text').click(function() {
    $('textarea.mention').mentionsInput('val', function(text) {
      alert(text);
    });
  });

  $('.get-mentions').click(function() {
    $('textarea.mention').mentionsInput('getMentions', function(data) {
      alert(JSON.stringify(data));
    });
  }) ;

});
</code></pre>

<p>But i want to get those values to my MySQL Table "Artists", how do i do that?</p>

<p>And than i want to insert some of those values in another table!</p>

<p>Can you help me?</p>

<p>Here's the index.php:</p>

<pre><code>&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;jquery.mentionsInput&lt;/title&gt;
  &lt;meta http-equiv="content-type" content="text/html;charset=UTF-8"/&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="chrome=1"&gt;
  &lt;link href='<a href="https://fonts.googleapis.com/css?family=PT+Sans&amp;subset=latin" rel="nofollow">https://fonts.googleapis.com/css?family=PT+Sans&amp;subset=latin</a>' rel='stylesheet' type='text/css'&gt;
  &lt;link href='assets/style.css' rel='stylesheet' type='text/css'&gt;
  &lt;link href='../jquery.mentionsInput.css' rel='stylesheet' type='text/css'&gt;

  &lt;script src='<a href="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" rel="nofollow">https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js</a>' type='text/javascript'&gt;&lt;/script&gt;
  &lt;script src='<a href="http://documentcloud.github.com/underscore/underscore-min.js" rel="nofollow">http://documentcloud.github.com/underscore/underscore-min.js</a>' type='text/javascript'&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;


&lt;div class="examples"&gt;
  &lt;textarea class='mention' placeholder='Try to mention me, by typing @ken'&gt;&lt;/textarea&gt;
&lt;/div&gt;

  &lt;/div&gt;

  &lt;script src='../lib/jquery.events.input.js' type='text/javascript'&gt;&lt;/script&gt;
  &lt;script src='../lib/jquery.elastic.js' type='text/javascript'&gt;&lt;/script&gt;
  &lt;script src='../jquery.mentionsInput.js' type='text/javascript'&gt;&lt;/script&gt;
  &lt;script src='assets/examples.js' type='text/javascript'&gt;&lt;/script&gt;
  &lt;script src='assets/example2.js' type='text/javascript'&gt;&lt;/script&gt;

  &lt;script&gt;!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");&lt;/script&gt;

  &lt;script type="text/javascript"&gt;

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-27763738-1']);
    _gaq.push(['_trackPageview']);

    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? '<a href="https://ssl" rel="nofollow">https://ssl</a>' : '<a href="http://www" rel="nofollow">http://www</a>') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

  &lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Thank you.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>PF2G</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455259/get-values-to-var-in-jquery</guid>
		</item>
				<item>
			<title>how to incorporate &quot;pushstate()&quot;</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455258/how-to-incorporate-pushstate</link>
			<pubDate>Fri, 24 May 2013 15:27:53 +0000</pubDate>
			<description>Hi... I have a simple function for loading php pages into the index.php file. I'm wanting to incorporate pushstate() so I can start making the page crawlable. But not sure how. Here's my starting point (which just gives me &quot;http://www.site.com/undefined&quot; // function for navigation clicks $(&quot;#top_nav li a, #footer_info&quot;).on(&quot;click&quot;, function(e){ ...</description>
			<content:encoded><![CDATA[ <p>Hi...</p>

<p>I have a simple function for loading php pages into the index.php file. I'm wanting to incorporate pushstate() so I can start making the page crawlable. But not sure how.</p>

<p>Here's my starting point (which just gives me "<a href="http://www.site.com/undefined" rel="nofollow">http://www.site.com/undefined</a>"</p>

<pre><code class="language-js">// function for navigation clicks

    $("#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');



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



                    $('#main_center_box,#footer_links').stop().animate({ opacity: 0, zIndex:0 }, 700, function() { 
                        $(this).attr('class','current');

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

                        // not sure how to do this part...
                        href = $(this).attr(loadpage);
                        history.pushState('', 'New URL: '+href, href);
                    });

    });
</code></pre>
 ]]></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/455258/how-to-incorporate-pushstate</guid>
		</item>
				<item>
			<title>Prevent user from typing text in combobox</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455257/prevent-user-from-typing-text-in-combobox</link>
			<pubDate>Fri, 24 May 2013 15:16:55 +0000</pubDate>
			<description>for my combobox i want to prevent user from typing **further text** if the typed text **do not match part** of combobox items i.e from starting Autocomplete mode set to SuggestAppend Autocompletesource set ot Listitems Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress Dim i As ...</description>
			<content:encoded><![CDATA[ <p>for my combobox i want to prevent user from typing <strong>further text</strong> if the typed text <strong>do not match part</strong> of combobox items i.e from starting</p>

<p>Autocomplete mode set to SuggestAppend<br />
Autocompletesource set ot Listitems</p>

<pre><code class="language-vb">  Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress
    Dim i As Integer   
    For i = 0 To ComboBox1.Items.Count - 1
     'required code
     e.Handled = True      
    Next i
    End Sub
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>PM312</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455257/prevent-user-from-typing-text-in-combobox</guid>
		</item>
				<item>
			<title>delete and upload images</title>
			<link>http://www.daniweb.com/web-development/php/threads/455256/delete-and-upload-images</link>
			<pubDate>Fri, 24 May 2013 15:07:32 +0000</pubDate>
			<description>Hallo, i ve made a script that uploads an image in a web site and then show that image (admin site). when i upload the file i rename it with a specific name. The user may delete the image he uploaded. Everything works fine. If he tries to upload another ...</description>
			<content:encoded><![CDATA[ <p>Hallo,</p>

<p>i ve made a script that uploads an image in a web site and then show that image (admin site). when i upload the file i rename it with a specific name. The user may delete the image he uploaded. Everything works fine. If he tries to upload another image (the rename takes place like mentioned) the pictured that shown is the first one!! the one he deleted a few minutes ago.</p>

<p>I used me ftp client to see if the first image deleted and it did. When i upload the second image (the same name as the first) the image appears but it is not the one i just uploaded but the one i ve just deleted.</p>

<p>Obviously is something the server does and i was wondering if i could stop it...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>dourvas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455256/delete-and-upload-images</guid>
		</item>
				<item>
			<title>How to know on which combo box event fired</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455255/how-to-know-on-which-combo-box-event-fired</link>
			<pubDate>Fri, 24 May 2013 14:48:09 +0000</pubDate>
			<description>I have 84 combo box inside 12 group box, in a group of 12. Combo Box are named as cb1,cb2,cb3,cb4,cb5,cb6,...... Group Box are named as gBox1,gBox2,gBox3,gBox4,gBox5,.... Now I want to save the item name in a variable when I select or change item of any combo box. I know that ...</description>
			<content:encoded><![CDATA[ <p>I have 84 combo box inside 12 group box, in a group of 12. Combo Box are named as cb1,cb2,cb3,cb4,cb5,cb6,...... Group Box are named as gBox1,gBox2,gBox3,gBox4,gBox5,.... Now I want to save the item name in a variable when I select or change item of any combo box. I know that if I use SelectedIndexChanged for each combo box then I can get what I want, I am wondering that is the only way to do.... OR there is any simplified way to achieve the above mentioned purpose.</p>

<p>I welcome any suggestion/advice/guidance.</p>

<p>Regards to all</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>vishalonne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455255/how-to-know-on-which-combo-box-event-fired</guid>
		</item>
				<item>
			<title>Using C language</title>
			<link>http://www.daniweb.com/software-development/c/threads/455254/using-c-language</link>
			<pubDate>Fri, 24 May 2013 14:37:49 +0000</pubDate>
			<description>FUNCTIONS the question is as follows: write a function, ComputeAmount, that takes as input the quantity of an item and the item unit price, and returns the net amount to be paid by customer. my program is working correctly please advise me what i did wrong here are the codes: ...</description>
			<content:encoded><![CDATA[ <p>FUNCTIONS<br />
the question is as follows: write a function, ComputeAmount, that takes as input the quantity of an item and the item unit price, and returns the net amount to be paid by customer.</p>

<p>my program is working correctly please advise me what i did wrong here are the codes:</p>

<pre><code class="language-c">#include&lt;stdio.h&gt;
#include&lt;stdlib.h&gt;
int ComputeAmount(int x, int y);
int main()
{
    int q, amt;


    printf("Enter quatity: ");
    scanf("%d", &amp;q);
    printf("Enter amount: ");
    scanf("%d", &amp;amt);

    system("pause");
    return 1;
}
int ComputeAmount(int x, int y)
{
    int amt, q;
    float netAmount;
    if(amt&lt;=100){
        netAmount=q*amt;
        return("%.2f", netAmount);
        }
        else
        if(amt&lt;=200){
            netAmount=q*(amt*(5/100));
            return("%.2f", netAmount);

        }
        else
        if(amt&lt;=300){
            netAmount=q*(amt*(7.5/100));
            return("%.2f", netAmount);
        }
        if(amt&gt;300){
            netAmount=q*(amt*(15/100));
            return("%.2f", netAmount);
        }
        else
        printf("wrong purchase\n");
    }
</code></pre>
 ]]></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/455254/using-c-language</guid>
		</item>
				<item>
			<title>Microsoft Access Query problem</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455253/microsoft-access-query-problem</link>
			<pubDate>Fri, 24 May 2013 14:21:26 +0000</pubDate>
			<description>I am trying to create a form that allows the user to search (Access database) for a record by last name or customer number. It can be a partial last name or customer number. The SQL statement and code are below. This is the same method used successfully for a ...</description>
			<content:encoded><![CDATA[ <p>I am trying to create a form that allows the user to search (Access database) for a record by last name or customer number. It can be a partial last name or customer number.</p>

<p>The SQL statement and code are below. This is the same method used successfully for a SQL Server database, but it is not working with Access. The error message I am receiving is "Argument not specified for parameter 'Customer_Number' of 'Public Overridalbe Overloads Function Fill(dataTable As FindAccountDataSet.CustomerAccountsDataTable, Last_Name As String, Customer_Number As Integer) As Integer".</p>

<p>Can someone explain how to correct?</p>

<p>SELECT        [Customer Number], [Last Name], [First Name], Address, City, State, [ZIP Code], [Telephone Number], [Account Balance], [Date Last Payment]<br />
FROM            CustomerAccounts<br />
WHERE        ([Last Name] LIKE ?) OR ([Customer Number] LIKE ?)</p>

<p>Note: I have tried using the astericks and percentage symbols as well.</p>

<pre><code class="language-vb">    Private Sub btnSearchLastName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearchLastName.Click
        'Search by last name
        Me.CustomerAccountsTableAdapter.Fill(Me.FindAccountDataSet.CustomerAccounts, txtLastName.Text)
    End Sub

    Private Sub btnSearchCustomerNum_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearchCustomerNum.Click
        'Search by customer number
        Me.CustomerAccountsTableAdapter.Fill(Me.FindAccountDataSet.CustomerAccounts, txtAccountNum.Text)
    End Sub
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>SLMQC</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455253/microsoft-access-query-problem</guid>
		</item>
				<item>
			<title>simplify script</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455252/simplify-script</link>
			<pubDate>Fri, 24 May 2013 14:17:08 +0000</pubDate>
			<description>For the sake of learning, I'm just curious how I can simplify these functions? Open to any suggestions... Please forgive all the over-commenting. $(document).ready(function() { // code for random backgorund image on page load $(&quot;#full-size-background&quot;).css(&quot;background-image&quot;, &quot;url(images/backgrounds/&quot; + Math.floor(Math.random()*3) + &quot;.jpg)&quot;); // starting point fade when &quot;menu&quot; clicked $(&quot;#starting_point_link&quot;).on(&quot;click&quot;, function(){ $('#starting_point, ...</description>
			<content:encoded><![CDATA[ <p>For the sake of learning, I'm just curious how I can simplify these functions? Open to any suggestions...<br />
Please forgive all the over-commenting.</p>

<pre><code class="language-js">$(document).ready(function() {

// code for random backgorund image on page load
$("#full-size-background").css("background-image", "url(images/backgrounds/" + Math.floor(Math.random()*3) + ".jpg)");



// starting point fade when "menu" clicked

    $("#starting_point_link").on("click", function(){

            $('#starting_point, .places-slideshow,#full-size-background').stop().animate({ opacity: 0 }, 1400, function() {
                $('#starting_point').css({display:"none"});
                $('#main_center_box').css({zIndex:"1"});
                $('.header_content, #main_center_box').css({display:"block"}).stop().animate({ opacity: 1 }, 800, function() { 

                    //  $(' #main_center_box').load('mazenga.php');

                    $('#main_center_box2').stop().animate({ opacity: 1 }, 700, function() { /* animation complete */ });
                    $('.places-slideshow').stop().animate({ opacity: 1 }, 2100, function() { /* animation complete */ });

                }); 

                $("#starting_point_link").attr('class','visited');
                $("#full-size-background,.header_content").css('opacity','0').css("background-image", "url(images/BG1a.jpg)");
                $('#full-size-background').stop().animate({ opacity: 1 }, 700, function() { /* animation complete */ });
                $('.header_content').stop().animate({ opacity: 1 }, 800, function() { /* animation complete */ });
            });
    });



// function for navigation clicks

    $("#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');



                // 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    


                if(loadpage == "inc/index.php"){

                    $('#main_center_box,.header_content').css({opacity:1}).stop().animate({ opacity: 0 }, 700, function() { /* animation complete */ });
                    $('#starting_point, .places-slideshow,#full-size-background').css({display:"block"}).stop().animate({ opacity: 1 }, 1400, function() { /* animation complete */ });
                    $('#main_center_box').css({zIndex:"-1"});
                    $("#starting_point_link").attr('class','');

                } else {
                    $('#main_center_box,#footer_links').stop().animate({ opacity: 0, zIndex:0 }, 700, function() { 
                        $(this).attr('class','current');
                        // now load the page that matches navigation selected
                        $('#main_center_box').css({zIndex:1 }).load(loadpage).stop().animate({ opacity: 1}, 700, function() { /* animation complete */ });
                        $('html,body').scrollTop(0);
                    });
                }
    });




$('.slider .slide:eq(0)').addClass('active').fadeIn(200);

$('.slider-nav li a').click(function() {    
    var index = $(this).parent().index('li');

    $('.slider .slide.active').removeClass('active').fadeOut(200, function() { 
            $('.slider .slide:eq(' + index + ')').addClass('active').fadeIn(200);
        });

    return false;
});

$('.slide').click(function() {
    if($(this).hasClass('active')){
        $(this).removeClass('active').fadeOut(200, function() {
            if($(this).is(':last-child')){
                $('.slider .slide:first-child').addClass('active').fadeIn(200);
            }else{
                $(this).next().addClass('active').fadeIn(200);
            }
        });
    } 
}); 





// 'scroll to' code

$('.portfolio_links').live('click', function(){ 
    var whichTag = $(this).attr('id');
    val = whichTag.split("_");
    thisTag = "#position_"+val[1];

    $('html, body').animate({scrollTop: $(thisTag).offset().top - 100}, 2000);

});

}); // document ready ending brackets



// the form label controls

(function($) {
    function toggleLabel() {
        var input = $(this);
        setTimeout(function() {
            var def = input.attr('title');
            if (!input.val() || (input.val() == def)) {
                input.prev('span').css('visibility', '');
                if (def) {
                    var dummy = $('&lt;label&gt;&lt;/label&gt;').text(def).css('visibility','hidden').appendTo('body');
                    input.prev('span').css('margin-left', dummy.width() + 3 + 'px');
                    dummy.remove();
                }
            } else {
                input.prev('span').css('visibility', 'hidden');
            }
        }, 0);
    };

    function resetField() {
        var def = $(this).attr('title');
        if (!$(this).val() || ($(this).val() == def)) {
            $(this).val(def);
            $(this).prev('span').css('visibility', '');
        }
    };

    $('input, textarea').live('keydown', toggleLabel);
    $('input, textarea').live('paste', toggleLabel);
    $('select').live('change', toggleLabel);

    $('input, textarea').live('focusin', function() {
        $(this).prev('span').css('color', '#000');
    });
    $('input, textarea').live('focusout', function() {
        $(this).prev('span').css('color', '#fff');
    });

    $(function() {
        $('input, textarea').each(function() { toggleLabel.call(this); });
    });

})(jQuery);
</code></pre>
 ]]></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/455252/simplify-script</guid>
		</item>
				<item>
			<title>Message Box appearing at inappropriate time</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455251/message-box-appearing-at-inappropriate-time</link>
			<pubDate>Fri, 24 May 2013 14:10:15 +0000</pubDate>
			<description>I am trying to create a form that allows a user to enter information and saves information to a file. Every item must be complete and the account balance must not be negative or error messages pop up. I have the form working, but when you click on the clear ...</description>
			<content:encoded><![CDATA[ <p>I am trying to create a form that allows a user to enter information and saves information to a file. Every item must be complete and the account balance must not be negative or error messages pop up. I have the form working, but when you click on the clear and reset button, the error message "The file cannot be saved. Please confirm customer information has been entered in all boxes" appears, but it should not. Can someone show me where I'm going wrong and how to correct?</p>

<p>I would also prefer that instead of random Customer Numbers they are sequential, but the method I tried didn't work. Suggestions for that change would also be appreciated.</p>

<pre><code class="language-vb">Imports System.IO
Public Class AddAccountsForm
    Dim strCustomerNumber As Integer    'Customer's number
    Dim strFirstName As String          'Customer's first name
    Dim strLastName As String           'Customer's last name
    Dim strAddress As String            'Customer's address
    Dim strCity As String               'Customer's city of residence
    Dim strState As String              'Customer's state of residence
    Dim strZip As String                'Customer's zip code
    Dim strTeleSphone As String          'Customer telephone number
    Dim intAccountBalance As Integer   'Customer's account balance


    Private Sub CustomerAccountsBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CustomerAccountsBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.CustomerAccountsBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.AllAccountDataSet)
    End Sub

    Private Sub AddAccountsForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.CustomerAccountsBindingSource.AddNew()
        txtLastPaymentDate.Value = Today()
    End Sub

    Private Sub SaveCloseToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveCloseToolStripMenuItem.Click

        Dim Save As New SaveFileDialog()
        Dim CustomerDataFile As StreamWriter


        'Configure Save Record
        Save.Filter = "Access files (*.accdb)|*.accdb|All Files (*.*)|*.*"
        Save.InitialDirectory = "C:\"
        Save.ShowDialog()


        'Get customer information from user
        Try
            CustomerDataFile = System.IO.File.AppendText(Save.FileName)
            CustomerDataFile.WriteLine(txtFirst_Name.Text)
            CustomerDataFile.WriteLine(txtLast_Name.Text)
            CustomerDataFile.WriteLine(txtCustomer_Number.Text)
            CustomerDataFile.WriteLine(txtAddress.Text)
            CustomerDataFile.WriteLine(txtCity.Text)
            CustomerDataFile.WriteLine(txtState.Text)
            CustomerDataFile.WriteLine(txtZIP_Code.Text)
            CustomerDataFile.WriteLine(TxtPhone.Text)
            CustomerDataFile.WriteLine(txtAccount_Balance.Text)
            CustomerDataFile.WriteLine(txtLastPaymentDate.Text)
            CustomerDataFile.Flush()
        Catch ex As Exception
            'Error message
            MessageBox.Show("The file cannot be saved. Please confirm customer information has been entered in all boxes ")
        End Try


        Try
            Me.CustomerAccountsBindingSource.EndEdit()
            Me.CustomerAccountsTableAdapter.Update(AllAccountDataSet.CustomerAccounts)
            Me.Close()
        Catch ex As Exception
            MessageBox.Show("Error saving the new customer account.")
        End Try

    End Sub

    Private Sub SaveWithoutClosingToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveWithoutClosingToolStripMenuItem.Click
        Me.CustomerAccountsBindingSource.CancelEdit()
        Me.Close()
    End Sub

    Private Sub Customer_NumberTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtCustomer_Number.TextChanged
        'Assign account number
        Dim intNum As Integer
        Dim rand As New Random
        intNum = rand.Next(1000)
        txtCustomer_Number.Text = intNum
    End Sub

    Private Sub txtAccount_Balance_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAccount_Balance.TextChanged
        Dim intAccountBalance As Integer   'Customer's account balance

        'Get account balance from user
        If Integer.TryParse(txtAccount_Balance.Text, intAccountBalance) Then
            'Validate entry
            If intAccountBalance &gt;= 0 Then
                intAccountBalance = CInt(txtAccount_Balance.Text)
            End If
        Else
            'Error message
            MessageBox.Show("Account balance must be an integer and must not be negative.")
        End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click

        'Prepare form for next extry
        txtFirst_Name.Clear()
        txtLast_Name.Clear()
        txtAddress.Clear()
        txtCity.Clear()
        txtState.Clear()
        txtZIP_Code.Clear()
        TxtPhone.Clear()
        txtAccount_Balance.Clear()
        txtFirst_Name.Focus()
    End Sub
End Class
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>SLMQC</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455251/message-box-appearing-at-inappropriate-time</guid>
		</item>
				<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>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>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>
			</channel>
</rss>