<?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="hub" href="http://pubsubhubbub.superfeedr.com/" xmlns="http://www.w3.org/2005/Atom" />
		<link rel="hub" href="http://pubsubhubbub.appspot.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>a progrram for salrry payable</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456891/a-progrram-for-salrry-payable</link>
			<pubDate>Tue, 18 Jun 2013 05:07:57 +0000</pubDate>
			<description>**how can i criete a salrry account for 10 person**</description>
			<content:encoded><![CDATA[ <p><strong>how can i criete a salrry account for  10 person</strong></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Md.yusuf ali</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456891/a-progrram-for-salrry-payable</guid>
		</item>
				<item>
			<title>a progrram for salrry account</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456888/a-progrram-for-salrry-account</link>
			<pubDate>Tue, 18 Jun 2013 05:00:58 +0000</pubDate>
			<description>**help me**</description>
			<content:encoded><![CDATA[ <p><strong>help me</strong></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Md.yusuf ali</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456888/a-progrram-for-salrry-account</guid>
		</item>
				<item>
			<title>ExecuteNonQuery() error in vb</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/456887/executenonquery-error-in-vb</link>
			<pubDate>Tue, 18 Jun 2013 05:00:43 +0000</pubDate>
			<description>Need some help with the code below. Getting and error at ExecuteNonQuery() Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnRoomSave.Click Dim con As New OleDbConnection Dim cmd As New OleDb.OleDbCommand cmd = New OleDbCommand(Command, con) con.ConnectionString = &quot;Provider=Microsoft.ACE.OLEDB.12.0;Data Source='C:\PATIENT_O\PATIENT_O\Patient-O.accdb'&quot; cmd.CommandType = System.Data.CommandType.Text cmd.Connection = con con.Open() cmd.CommandText = ...</description>
			<content:encoded><![CDATA[ <p>Need some help with the code below. Getting and error at ExecuteNonQuery()</p>

<p>Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnRoomSave.Click</p>

<pre><code class="language-vb">    Dim con As New OleDbConnection
    Dim cmd As New OleDb.OleDbCommand
    cmd = New OleDbCommand(Command, con)
    con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source='C:\PATIENT_O\PATIENT_O\Patient-O.accdb'"

    cmd.CommandType = System.Data.CommandType.Text
    cmd.Connection = con
    con.Open()

    cmd.CommandText = "INSERT INTO Rooms (RoomID, First Name, Middle Name, Last Name, Room Type, Amt/Day, Comments) VALUES ('@RoomID, @FirstName, @Middle Name, @Last Name, @Room Type, @Amt/Day, @Comments')"
    'cmd.CommandText = "INSERT INTO [Rooms] (]RoomID], [First Name], [Middle Name], [Last Name], [Room Type], [Amt/Day], [Comments]) VALUES (" &amp; txtRoomID.Text &amp; ", '" &amp; txtroomFName.Text &amp; "', '" &amp; txtroomMName.Text &amp; "', '" &amp; txtroomLName.Text &amp; "','" &amp; txtRoomtype.Text &amp; "', '" &amp; txtroomAmount.Text &amp; "', '" &amp; txtroomComment.Text &amp; "')"
    cmd.Parameters.AddWithValue("@RoomID", Val(txtRoomID.Text))
    cmd.Parameters.AddWithValue("@FirstName", txtroomFName.Text)
    cmd.Parameters.AddWithValue("@Middle Name", txtroomMName.Text)
    cmd.Parameters.AddWithValue("@Last Name", txtroomLName.Text)
    cmd.Parameters.AddWithValue("@Room Type", txtRoomtype.Text)
    cmd.Parameters.AddWithValue("@Amt/Day", txtroomAmount.Text)
    cmd.Parameters.AddWithValue("@Comments", txtroomComment.Text)


    cmd.ExecuteNonQuery()
    Try

        MsgBox("Record Added")
    Catch exceptionObject As Exception
        MessageBox.Show(exceptionObject.Message)
    Finally
        con.Close()
    End Try
End Sub
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>ZIPB</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/456887/executenonquery-error-in-vb</guid>
		</item>
				<item>
			<title>case sensitive comparisions</title>
			<link>http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/456886/case-sensitive-comparisions</link>
			<pubDate>Tue, 18 Jun 2013 04:42:30 +0000</pubDate>
			<description>hi when i'm giving some string to search in the data base, ms access, that search is going to be ignoring case. i want case sensitivity. how..? ex: if i would like to search for the word &quot;Done&quot;, if there is no that word, and &quot;DONE&quot; is available in the ...</description>
			<content:encoded><![CDATA[ <p>hi<br />
when i'm giving some string to search in the data base, ms access, that search is going to be ignoring case. i want case sensitivity. how..?<br />
ex: if i would like to search for the word "Done", if there is no that word, and "DONE" is available in the database, then it is treating both as same. how to avoid this.</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>baabjitvk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/456886/case-sensitive-comparisions</guid>
		</item>
				<item>
			<title>Constraint</title>
			<link>http://www.daniweb.com/web-development/databases/ms-sql/threads/456885/constraint</link>
			<pubDate>Tue, 18 Jun 2013 04:08:05 +0000</pubDate>
			<description>Dear All ! I have a table member_email. i have 4 columns in it. Id Email CellNumber Carrier I want to create constraint who check following conditions, 1-Email can be null if Cellnumber is given , and Cellnumber can be null if email is given. 2-both email and cell number ...</description>
			<content:encoded><![CDATA[ <p>Dear All !</p>

<p>I have a table member_email. i have 4 columns in it.<br />
Id<br />
Email<br />
CellNumber<br />
Carrier</p>

<p>I want to create constraint who check following conditions,<br />
1-Email can be null if Cellnumber is given , and Cellnumber can be null if email is given.<br />
2-both email and cell number can not be null in one record.<br />
3-If cellnumber is available then carrier should not be null. Carrier will be null if email is given and cellnumber is not available.</p>

<p>Need guidence.</p>

<p>Regards</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/ms-sql/127">MS SQL</category>
			<dc:creator>M.Waqas Aslam</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/ms-sql/threads/456885/constraint</guid>
		</item>
				<item>
			<title>CHANGE THE INDEX OF THE COLUMN IN DATATABLE</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/456884/change-the-index-of-the-column-in-datatable</link>
			<pubDate>Tue, 18 Jun 2013 03:41:05 +0000</pubDate>
			<description>I have a datatable with nth column. Now, I want to change the index of some columns. Need help</description>
			<content:encoded><![CDATA[ <p>I have a datatable with nth column. Now, I want to change the index of some columns. Need help</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>GeekPlease</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/456884/change-the-index-of-the-column-in-datatable</guid>
		</item>
				<item>
			<title>Output in polymorphism</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456883/output-in-polymorphism</link>
			<pubDate>Tue, 18 Jun 2013 03:36:41 +0000</pubDate>
			<description>How come foo(3,3.14); Doesn't work but Goo(3,3.14); works? Please reply. #include &lt;iostream&gt; using namespace std; double foo(double a, double b) { cout&lt;&lt;&quot;foo(double a, double b)&quot;&lt;&lt;endl; } int foo(int a, int b){ cout&lt;&lt;&quot;foo(int a, int b)&quot;&lt;&lt;endl; } double Goo(float a, float b){ cout&lt;&lt;&quot;Goo(float a, float b)&quot;&lt;&lt;endl; } int Goo(int a, int ...</description>
			<content:encoded><![CDATA[ <p>How come    foo(3,3.14); Doesn't work<br />
but Goo(3,3.14); works?<br />
Please reply.</p>

<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;
double foo(double a, double b) {
    cout&lt;&lt;"foo(double a, double b)"&lt;&lt;endl;
}
 int foo(int a, int b){
    cout&lt;&lt;"foo(int a, int b)"&lt;&lt;endl;
 }
double Goo(float a, float b){
    cout&lt;&lt;"Goo(float a, float b)"&lt;&lt;endl;
}
  int Goo(int a, int b){    
    cout&lt;&lt;"Goo(int a, int b)"&lt;&lt;endl; //this one
  }

int main()
{
    foo(3,3.14); // Doesn't work
    Goo(3,3.14); //Works
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>mahesh113</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456883/output-in-polymorphism</guid>
		</item>
				<item>
			<title>Hi,guys,here I am</title>
			<link>http://www.daniweb.com/community-center/community-introductions/threads/456879/higuyshere-i-am</link>
			<pubDate>Tue, 18 Jun 2013 02:18:00 +0000</pubDate>
			<description>Hello,I'm Luke,and I'm 28 now.I just built a blog all by myself.Eventhough it is simple but I enjoy it and I wish to learn more Here is my blog http://www.jppest.com</description>
			<content:encoded><![CDATA[ <p>Hello,I'm Luke,and I'm 28 now.I just built a blog all by myself.Eventhough it is simple but I enjoy it and I wish to learn more<br />
Here is my blog <a href="http://www.jppest.com" rel="nofollow">http://www.jppest.com</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/community-introductions/165">Community Introductions</category>
			<dc:creator>Ecig</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/community-introductions/threads/456879/higuyshere-i-am</guid>
		</item>
				<item>
			<title> ykmex here</title>
			<link>http://www.daniweb.com/community-center/community-introductions/threads/456878/-ykmex-here</link>
			<pubDate>Tue, 18 Jun 2013 02:07:51 +0000</pubDate>
			<description>glad to meet you all..... Its Me: ykmex.org</description>
			<content:encoded><![CDATA[ <p>glad to meet you all.....</p>

<p>Its Me:<br />
ykmex.org</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/community-introductions/165">Community Introductions</category>
			<dc:creator>ykmex</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/community-introductions/threads/456878/-ykmex-here</guid>
		</item>
				<item>
			<title>Comparing element</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456876/comparing-element</link>
			<pubDate>Tue, 18 Jun 2013 01:26:02 +0000</pubDate>
			<description>good morning guys, i'm developing a website. whereby have to move through records..next and previous...i did something like this public Product NextProduct(List&lt;Product&gt; products, Product product) { Product nextproduct = (Product)product; for (int i = 0; i &lt; products.Count; i++) { if (Equals(products[i].ProductId, product.ProductId)) { if (products[i + 1].ProductId == null) ...</description>
			<content:encoded><![CDATA[ <p>good morning guys, i'm developing a website. whereby have to move through records..next and previous...i did something like this</p>

<pre><code>public Product NextProduct(List&lt;Product&gt; products, Product product)
    {
        Product nextproduct = (Product)product;

        for (int i = 0; i &lt; products.Count; i++)
        {
            if (Equals(products[i].ProductId, product.ProductId))
            {
                if (products[i + 1].ProductId == null)
                {
                    return null;
                }
                else
                {
                    nextproduct = products[i + 1];
                }
            }
        }
        return nextproduct;
    }

    public Product PrevProduct(List&lt;Product&gt; products, Product product)
    {
        Product prevproduct = (Product)product;

        for (int i = 0; i &lt; products.Count; i++)
        {
            if (Equals(products[i].ProductId, product.ProductId))
            {
                if (products[i - 1].ProductId == null)
                {
                    return null;
                }
                else
                {
                    prevproduct = products[i - 1];
                }
            }
        }
        return prevproduct;
    }
</code></pre>

<p>this method is not working. giving error<br />
i just wanna return the new product. how do i accomplish this...thank u in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>goco17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456876/comparing-element</guid>
		</item>
				<item>
			<title>Problem with Anchor ID</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/456875/problem-with-anchor-id</link>
			<pubDate>Tue, 18 Jun 2013 01:03:57 +0000</pubDate>
			<description>Hi, I'm making a quick site and all the content is on one page, and I'm using a small menu with anchor links to make navigating to a certain part faster for the end user. I have two anchor links that work fine (About Me, My Projects) but the &quot;Contact ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I'm making a quick site and all the content is on one page, and I'm using a small menu with anchor links to make navigating to a certain part faster for the end user. I have two anchor links that work fine (About Me, My Projects) but the "Contact Me" link jumps to a random part of the "My Projects" section.</p>

<p>A preview of the site is available here : <a href="http://dev.cuonic.com/cuonic.com/" rel="nofollow">http://dev.cuonic.com/cuonic.com/</a></p>

<p>I have checked the IDs, they correspond, there is no random "contact-me" ID lying around in the "My Projects" section, I've changed the ID, still happens, and this in both Firefox and Chrome. Whats going on ? Any help is appreciated :)</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>cuonic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/456875/problem-with-anchor-id</guid>
		</item>
				<item>
			<title>Bad Google - didn&#039;t expect to get snowed in</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456874/bad-google-didnt-expect-to-get-snowed-in</link>
			<pubDate>Tue, 18 Jun 2013 00:02:42 +0000</pubDate>
			<description>Well looks like Google (the company whose corporate motto is &quot;Do no evil&quot;) was implicated by the Snowden leak as vastly co-operating with other Internet companies and the American government to find and collect as much international private data as possible about as many foreigners as posiible. Things like telephone ...</description>
			<content:encoded><![CDATA[ <p>Well looks like Google (the company whose corporate motto is "Do no evil") was implicated by the Snowden leak as vastly co-operating with other Internet companies and the American government to find and collect as much international private data as possible about as many foreigners as posiible. Things like telephone calls made, emails sent and recieved, social network activities, web searches and subsequent web page visits ...).</p>

<p>My question is about money. How much money was Google paid to spy on us for the Americans. Surely this incredibly heartless corporation did not barder our private lives out of the goodness of its heart. This spying by Google goes way back too, long before they captured all our home network passwords with their Google maps mobile, long before they introduced "personalised" search to tack search history, videos watched, web pages visits ... bad Google. This is only the tip of the iceberg. The implications about Google's obvious breach of public trust and even more damaging revelations about the search engine's covert activities will surely follow.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>canadafred</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456874/bad-google-didnt-expect-to-get-snowed-in</guid>
		</item>
				<item>
			<title>Reading hexadecimal numbers into shell</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456871/reading-hexadecimal-numbers-into-shell</link>
			<pubDate>Mon, 17 Jun 2013 23:20:50 +0000</pubDate>
			<description>Sorry for the confusing title, as I am new to C++ Basically, what I am trying to do is, to read a simple **test.txt** file's content, which are just two words actually: &quot;Hello World&quot; and desplay thier hexadecimal content in a shell, CMD or command line.(Whatever it is called), if ...</description>
			<content:encoded><![CDATA[ <p>Sorry for the confusing title, as I am new to C++</p>

<p>Basically, what I am trying to do is, to read a simple <strong>test.txt</strong> file's content, which are just two words actually: "Hello World" and desplay thier hexadecimal content in a shell, CMD or command line.(Whatever it is called), if the text thing is confusing you here, just think of it, as if I am trying to open a simple .wav file and read it's data and display it on CMD, like you would using</p>

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

using namespace std;

int main(){

  fstream myFile;

  myFile.open("test.txt");

  //reading goes here, the problem is displaying the hex data on the editor (CMD    )

  return 0;
}
</code></pre>

<p>I am new to this, and downloaded codeblocks, so I can only work with the CMD as of now. I can open files with the <strong>fstream</strong> class, and write in it, but sadly I can not read it's hexa content.</p>

<p>Is there anyway to do this by simple means in C++?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Vribium</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456871/reading-hexadecimal-numbers-into-shell</guid>
		</item>
				<item>
			<title>Adding a html hashtag to a automatic tweet</title>
			<link>http://www.daniweb.com/web-development/php/threads/456870/adding-a-html-hashtag-to-a-automatic-tweet</link>
			<pubDate>Mon, 17 Jun 2013 22:14:24 +0000</pubDate>
			<description>Hi everyone, I have created a twitter app to auto post to a number of twitter accounts. The auto tweet works great - but for one thing I am stuck on... I am trying to add a hashtag # (&amp;#35;) to the tweet but for some reason I'ts not working. ...</description>
			<content:encoded><![CDATA[ <p>Hi everyone, I have created a twitter app to auto post to a number of twitter accounts.<br />
The auto tweet works great - but for one thing I am stuck on...<br />
I am trying to add a hashtag # (&amp;#35;) to the tweet but for some reason I'ts not working.</p>

<p>Do I need to use urlencode? im not how that would work.</p>

<p>Here is the working auto tweet - What I am trying to do is add the hashtag before $wastteam<br />
So the tweet would look like this #Everton</p>

<pre><code>&lt;?php twitter_post($wastuname . ' ' . has . ' ' . just . ' ' . entered . ' ' . a . ' ' . competition . ' ' . to . ' ' . win . ' ' . a . ' ' . $wastteam . ' ' . season . ' ' . ticket . ' ' . at . ' ' .$link) ?&gt;
</code></pre>

<p>If anyone could help that would be great thanks -</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>lloyd.farrell.7</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456870/adding-a-html-hashtag-to-a-automatic-tweet</guid>
		</item>
				<item>
			<title>rel=author</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456869/relauthor</link>
			<pubDate>Mon, 17 Jun 2013 22:01:46 +0000</pubDate>
			<description>I heard in the latest Matt Cutts webmaster video that Google is trying to shift towards a non-anonymous web with the use of rel=author. However, how many people *really* use Google+?!?! I, for example, use Facebook and Twitter, but not Google+. Can *I* make use of rel=author or is it ...</description>
			<content:encoded><![CDATA[ <p>I heard in the latest Matt Cutts webmaster video that Google is trying to shift towards a non-anonymous web with the use of rel=author. However, how many people <em>really</em> use Google+?!?!</p>

<p>I, for example, use Facebook and Twitter, but not Google+. Can <em>I</em> make use of rel=author or is it reserved exclusively for Google+ users?</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/456869/relauthor</guid>
		</item>
				<item>
			<title>Create Excel file with multiple worksheets from delimited file</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/456868/create-excel-file-with-multiple-worksheets-from-delimited-file</link>
			<pubDate>Mon, 17 Jun 2013 21:22:02 +0000</pubDate>
			<description>Is it possible to create a delimited file and structure the delimited file in some way so that opening that file in Excel creates an Excel file with multiple worksheets with data on each worksheet?</description>
			<content:encoded><![CDATA[ <p>Is it possible to create a delimited file and structure the delimited file in some way so that opening that file in Excel creates an Excel file with multiple worksheets with data on each worksheet?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>spowel4</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/456868/create-excel-file-with-multiple-worksheets-from-delimited-file</guid>
		</item>
				<item>
			<title>compiler construction</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456867/compiler-construction</link>
			<pubDate>Mon, 17 Jun 2013 20:59:52 +0000</pubDate>
			<description>what are the rules of graph construction and using the example: S::= A/B A::=XA/Y B::=XB/Z</description>
			<content:encoded><![CDATA[ <p>what are the rules of graph construction and using the example:<br />
S::= A/B<br />
A::=XA/Y<br />
B::=XB/Z</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Nonye</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456867/compiler-construction</guid>
		</item>
				<item>
			<title>Next Last Record</title>
			<link>http://www.daniweb.com/web-development/php/threads/456866/next-last-record</link>
			<pubDate>Mon, 17 Jun 2013 20:50:48 +0000</pubDate>
			<description>Hi, I am trying to learn how to use a data base to store photos and such, I can now get info into the base and can get all the records to display , this is not what I had planed, So that lead me on a surch for answers ...</description>
			<content:encoded><![CDATA[ <p>Hi, I am trying to learn how to use a data base to store photos and such,<br />
I can now get info into the base and can get all the records to display , this is not what I had planed,<br />
So that lead me on a surch for answers and thus broght me here,</p>

<p>this code gets me a record on the screen,</p>

<pre><code>&lt;?php

  include('conect.php');

  $data = "select * from table1 where id = 1";

  $query = mysql_query($data);

  $data2 = mysql_fetch_array($query);


?&gt;&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;&lt;/TITLE&gt;&lt;META name=GENERATOR content="MSHTML 9.00.8112.16457"&gt;&lt;/HEAD&gt;&lt;BODY&gt;

// form to display record from database
&lt;FORM method=get action=next.php target=_self&gt;&lt;P align=center&gt;
  id: &lt;INPUT value="&lt;?php echo $data2[a]?&gt;"&gt; &lt;BR&gt;
  nick: &lt;INPUT value="&lt;?php echo $data2[b]?&gt;"&gt; &lt;BR&gt;
  a1: &lt;INPUT value="&lt;?php echo $data2[c]?&gt;"&gt; &lt;/P&gt;&lt;P align=center&gt;
  a2: &lt;INPUT value="&lt;?php echo $data2[d]?&gt;"&gt;
  a3: &lt;INPUT value="&lt;?php echo $data2[e]?&gt;"&gt;&lt;/P&gt;&lt;P align=center&gt;
  a4: &lt;INPUT value="&lt;?php echo $data2[f]?&gt;"&gt;
  a5: &lt;INPUT value="&lt;?php echo $data2[g]?&gt;"&gt;
  a6:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align=center&gt; &lt;INPUT value="&lt;?php echo $data2[h]?&gt;"&gt;
  a7: &lt;INPUT value="&lt;?php echo $data2[c]?&gt;"&gt;&lt;/P&gt;
  &lt;P align=center&gt;
  &lt;INPUT name=Last value=-1 type=submit&gt;          
  &lt;INPUT name=Next value=+1 type=submit&gt;&lt;/P&gt;

&lt;/FORM&gt;&lt;P align=center&gt;&lt;/P&gt;



&lt;/BODY&gt;&lt;/HTML&gt;
</code></pre>

<p>and now I have no clue on how to get the form to go collect the next or last record and post it back to the same form,  ,,, if I get id=1 then when next button is pressed it adds 1 to id and then over write the page ?<br />
hope you can help , thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>thearts.beach</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456866/next-last-record</guid>
		</item>
				<item>
			<title>PHP error / Warning</title>
			<link>http://www.daniweb.com/web-development/php/threads/456865/php-error-warning</link>
			<pubDate>Mon, 17 Jun 2013 20:43:52 +0000</pubDate>
			<description>Hi, I checked error log and found following php errors/warning, 1) File CODE: &lt;a href=&quot;http://&lt;?php echo $esrow_off['fld_company_url'].&quot;&quot;.stripslashes()?&gt;&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;&lt;?=$domain_url?&gt;/admin/partnerimages/&lt;?=$esrow_off['fld_partners_image']?&gt;&quot; border=&quot;0&quot; height=&quot;42&quot; /&gt;&lt;/a&gt; PHP error / Warning: [17-Jun-2013 23:31:59 Europe/Minsk] PHP Warning: stripslashes() expects exactly 1 parameter, 0 given 2) File CODE: $esq_row2=mysql_fetch_array(mysql_query(&quot;select * from esb2b_products where es_id=$id&quot;)); [16-Jun-2013 00:29:51 Europe/Minsk] ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I checked error log and found following php errors/warning,</p>

<p>1) File CODE:</p>

<pre><code>&lt;a href="http://&lt;?php  echo $esrow_off['fld_company_url']."".stripslashes()?&gt;" target="_blank"&gt;&lt;img src="&lt;?=$domain_url?&gt;/admin/partnerimages/&lt;?=$esrow_off['fld_partners_image']?&gt;" border="0"  height="42" /&gt;&lt;/a&gt;
PHP error / Warning:    [17-Jun-2013 23:31:59 Europe/Minsk] PHP Warning:  stripslashes() expects exactly 1 parameter, 0 given 
</code></pre>

<p>2) File CODE:</p>

<pre><code>$esq_row2=mysql_fetch_array(mysql_query("select * from esb2b_products where es_id=$id"));
[16-Jun-2013 00:29:51 Europe/Minsk] PHP Warning:  mysql_fetch_array() expects parameter 1 to be resource, boolean given 
</code></pre>

<p>Why i am having these errors/ warning? what is the solution. I will be thankful to you.</p>

<p>Regards,<br />
King</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>kingkong142</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456865/php-error-warning</guid>
		</item>
				<item>
			<title>Favorite song</title>
			<link>http://www.daniweb.com/community-center/geeks-lounge/threads/456864/favorite-song</link>
			<pubDate>Mon, 17 Jun 2013 20:23:42 +0000</pubDate>
			<description>Hi guys, Whats are favorite all time song and current song (one thats popular at the minute)? i.e. My all time favorite is [Phil collins - in the air tonight](http://www.youtube.com/watch?v=YkADj0TPrJA) My current favorite song is [Bastille - Pompeii](https://www.youtube.com/watch?v=F90Cw4l-8NY) Sorry for the awful videos aha</description>
			<content:encoded><![CDATA[ <p>Hi guys,</p>

<p>Whats are favorite all time song and current song (one thats popular at the minute)?</p>

<p>i.e. My all time favorite is <a href="http://www.youtube.com/watch?v=YkADj0TPrJA" rel="nofollow">Phil collins - in the air tonight</a><br />
My current favorite song is <a href="https://www.youtube.com/watch?v=F90Cw4l-8NY" rel="nofollow">Bastille - Pompeii</a></p>

<p>Sorry for the awful videos aha</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/geeks-lounge/6">Geeks' Lounge</category>
			<dc:creator>mattster</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/geeks-lounge/threads/456864/favorite-song</guid>
		</item>
				<item>
			<title>Pointers related ~_~</title>
			<link>http://www.daniweb.com/software-development/c/threads/456863/pointers-related-_</link>
			<pubDate>Mon, 17 Jun 2013 20:22:53 +0000</pubDate>
			<description>Hello, I'm a newbie in C/C++ programming and I wonder if you can make me understand the following, I have a small c++ statement, and the result is somehow weird for me: `char[10] arr=&quot;torino&quot;, *ptr; `ptr = arr;` `cout&lt;&lt;*&amp;*&amp;ptr;` and the result gives me the entire string.... PS: This is ...</description>
			<content:encoded><![CDATA[ <p>Hello, I'm a newbie in C/C++ programming and I wonder if you can make me understand the following, I have a small c++ statement, and the result is somehow weird for me:</p>

<p><code>char[10] arr="torino", *ptr;</code>ptr = arr;cout&lt;&lt;<em>&amp;</em>&amp;ptr;`<br />
and the result gives me the entire string....<br />
PS: This is not related to an assignment.<br />
Thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>costy.bogdan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/456863/pointers-related-_</guid>
		</item>
				<item>
			<title>Different date format</title>
			<link>http://www.daniweb.com/web-development/php/threads/456862/different-date-format</link>
			<pubDate>Mon, 17 Jun 2013 19:37:49 +0000</pubDate>
			<description>Hello, I call php from js file with parameter date. Date has other format when it run in IE and Mozzila. Whats problem ? IE : Tue Jun 18 19:00:00 UTC 0200 2013 Mozille : Thu Jun 20 2013 18:30:00 GMT 0200 (Central Europe Standard Time)</description>
			<content:encoded><![CDATA[ <p>Hello, I call php from js file with parameter date. Date has other format when it run in IE and Mozzila. Whats problem ?<br />
IE : Tue Jun 18 19:00:00 UTC 0200 2013<br />
Mozille : Thu Jun 20 2013 18:30:00 GMT 0200 (Central Europe Standard Time)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>luma64</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456862/different-date-format</guid>
		</item>
				<item>
			<title>Extending a Telephone Line</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/456861/extending-a-telephone-line</link>
			<pubDate>Mon, 17 Jun 2013 19:32:01 +0000</pubDate>
			<description>Hello Daniweb, I am planning on moving a telephone socket downstairs so that I can move the router from the back corner of a granite house into the middle of it, so hopefully the wireless signal shall be better for everyone. In the house there are two telephone lines, one ...</description>
			<content:encoded><![CDATA[ <p>Hello Daniweb,</p>

<p>I am planning on moving a telephone socket downstairs so that I can move the router from the back corner of a granite house into the middle of it, so hopefully the wireless signal shall be better for everyone.</p>

<p>In the house there are two telephone lines, one which is used solely for telephone calls and the other which is used for a mix between telephone and supplying broadband. The line which is supplying broadband has it's master, and only socket in the top corner of the house, which is where the router is at present (shall call it Socket1 from now on).</p>

<p>I have an "Extension Kit for NTE5 Line Box" and I was wondering whether wiring this up to the current master socket, dropping it through the eaves and running it to the more suitable location with a face plate would mean I can then attach an ADSL filter and use it as I would normally?</p>

<p>Is this how it works (I wouldn't be doing the wiring, I would use a telecomms engineering, but hopefully someone can tell me whether or not it is even worth phoning them)?<br />
Would there be any significant interferance and/or line quality issues for using this method for broadband?</p>

<p>And finally, the age old question... who actually owns the Master Socket? Me or my telecomms provider?</p>

<p>Thank you</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>AHarrisGsy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/456861/extending-a-telephone-line</guid>
		</item>
				<item>
			<title>Please resolve this bug!</title>
			<link>http://www.daniweb.com/software-development/c/threads/456860/please-resolve-this-bug</link>
			<pubDate>Mon, 17 Jun 2013 19:04:58 +0000</pubDate>
			<description>I have an array of elements. Think each of the element as competitors, and a tournament is going to rank them. The output of the program is showing elements at each level. Here's the code: #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; bool isPowerOfTwo (int x) { /* First x in the below ...</description>
			<content:encoded><![CDATA[ <p>I have an array of elements.<br />
Think each of the element as competitors, and a tournament is going to rank them.<br />
The output of the program is showing elements at each level.<br />
Here's the code:</p>

<pre><code class="language-c">#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

bool isPowerOfTwo (int x)
{
  /* First x in the below expression is for the case when x is 0 */
  return x &amp;&amp; (!(x&amp;(x-1)));
}
// modified
int log_2(unsigned int n) {
    int bits = 0;
    if (!isPowerOfTwo(n))
        bits++;
    if (n &gt; 32767) {
        n &gt;&gt;= 16;
        bits += 16;
    }
    if (n &gt; 127) {
        n &gt;&gt;= 8;
        bits += 8;
    }
    if (n &gt; 7) {
        n &gt;&gt;= 4;
        bits += 4;
    }
    if (n &gt; 1) {
        n &gt;&gt;= 2;
        bits += 2;
    }
    if (n &gt; 0) {
        bits++;
    }
    return bits;
}

int second_minima(int a[],unsigned int n) {
    int log_2n = log_2(n);
    int **p = (int **) (malloc(log_2n * sizeof(int *)));
    int i, j, k;
    for (i = 0, j = n; i &lt; log_2n; i++) {
        j = j&amp;1 ? j/2+1 : j/2;
        p[i] = (int *)(malloc(j * sizeof(int)));
    }
    for (i = 0; i &lt; n; i++)
        p[0][i] = a[i];
    for (i = 1, j = n; i &lt; log_2n; i++) {
        for (k = 0; k+1 &lt; j; k += 2) {
            if (p[i-1][k] &gt; p[i-1][k+1]) {
                p[i][k/2] = p[i-1][k];
                //printf("%d\n", p[0][n-1]);
            }
            else {
                p[i][k/2] = p[i-1][k+1];
            }
        }
        if (j&amp;1)
            p[i][j/2] = p[i-1][j-1];
        j = j&amp;1 ? j/2+1 : j/2;
    }
    for (i = 0, j = n; i &lt; log_2n; i++) {
        for (k = 0; k &lt; j; k++)
            printf("%d ",p[i][k]);
        printf("\n");
        j = j&amp;1 ? j/2+1 : j/2;
    }
    return 0;
}

main()
{
    int n;
    scanf("%d", &amp;n);
    int a[n];
    int i;
    for (i = 0; i &lt; n; i++)
        scanf("%d", &amp;a[i]);
    second_minima(a,n);
    return 0;
}
</code></pre>

<p>The problem is with this input instance:<br />
Input :<br />
13<br />
12 7 3 18 4 2 16 5 6 17 1 8 9<br />
Output :<br />
12 7 3 18 4 2 16 5 6 17 1 8 12<br />
12 18 4 16 17 8 12<br />
18 16 17 12<br />
18 17<br />
18<br />
Correct Output :<br />
12 7 3 18 4 2 16 5 6 17 1 8 <strong>9</strong><br />
12 18 4 16 17 8 <strong>9</strong><br />
18 16 17 <strong>9</strong><br />
18 17<br />
18</p>

<p>The problem is it is turning the last element of level 0 to first element.<br />
This is occuring at line 49. I dont know why it is changing p[0][n-1] to p[1][0].<br />
Can any one explain the fault.<br />
I have tested it with other inputs, its giving right answer.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>prakhs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/456860/please-resolve-this-bug</guid>
		</item>
				<item>
			<title>create a sqlite3 database from within a python script</title>
			<link>http://www.daniweb.com/software-development/python/threads/456859/create-a-sqlite3-database-from-within-a-python-script</link>
			<pubDate>Mon, 17 Jun 2013 18:32:58 +0000</pubDate>
			<description>I want to create sqlite3 databases from within a python script. I am currently running this code which does not pass the right variable content to the sqlite3 command prompt, so I have one issue there. I also do not want to have the user have an sqlite3 command shell ...</description>
			<content:encoded><![CDATA[ <p>I want to create sqlite3 databases from within a python script.<br />
I am currently running this code which does not pass the right variable content to the sqlite3 command prompt, so I have one issue there.<br />
I also do not want to have the user have an sqlite3 command shell open.  I just want to define the db, and have the tables created and populated later by the py script.<br />
I don't want to use a default sqlite3 db for this application, because I want to be able to save instances related to specific data sets.</p>

<pre><code class="language-py">import csv
import sqlite3 as lite
import os

con = None


def main():
    choice = "chew"
    filename=raw_input("enter the filename==&gt;  ")
    current_db = filename[:-4]+'.db' 
    print("The filename minus the extention is " + filename[:-4])
    print("This is the name of the current DB "  + current_db)
    os.system("sqlite3 $current_db")
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>wolf29</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/456859/create-a-sqlite3-database-from-within-a-python-script</guid>
		</item>
				<item>
			<title>Windows WINAPI button question</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456858/windows-winapi-button-question</link>
			<pubDate>Mon, 17 Jun 2013 18:03:51 +0000</pubDate>
			<description>in my code for what happens when I click on my MAIN BUTTON runs my function light hack. Inside my lighthack function is a for(;;) {} forever loop. Inside this forever loop is a break when a condition is met. The problem I am having is when I click on ...</description>
			<content:encoded><![CDATA[ <p>in my code for what happens when I click on my MAIN BUTTON runs my function light hack.<br />
Inside my lighthack function is a for(;;) {}  forever loop.  Inside this forever loop<br />
is a break when a condition is met. The problem I am having is when I click on this button<br />
my program goes none-responding until the condition in the forever loop has been met.<br />
Upon this time nothing else on my program works. How can I have this loop running<br />
and the program still respond to events?</p>

<pre><code class="language-cpp">case IDC_MAIN_BUTTON:
                {

                LightHack();  // Inside this function is a for(;;) loop
                ShowWindow(*phwnd,SW_HIDE);
                };
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>CodyOebel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456858/windows-winapi-button-question</guid>
		</item>
				<item>
			<title>Synchronise Mutliple JTable column Margins</title>
			<link>http://www.daniweb.com/software-development/java/threads/456857/synchronise-mutliple-jtable-column-margins</link>
			<pubDate>Mon, 17 Jun 2013 17:31:42 +0000</pubDate>
			<description>Hello good day. I am designing two JTables; one on top of the other. The first one has nine columns. And the second one has 8 columns (The first column spans the first columns of the topmost table). What I wish to do now is to make the bottom table ...</description>
			<content:encoded><![CDATA[ <p>Hello good day. I am designing two JTables; one on top of the other. The first one has nine columns. And the second one has 8 columns (The first column spans the first columns of the topmost table). What I wish to do now is to make the bottom table reactive to the movement of the margins in the topmost table. I wish for them to stay aligned.</p>

<p>How do I accomplish this please?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>CoilFyzx</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456857/synchronise-mutliple-jtable-column-margins</guid>
		</item>
				<item>
			<title>how to export input text from an input field?</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/456856/how-to-export-input-text-from-an-input-field</link>
			<pubDate>Mon, 17 Jun 2013 16:35:44 +0000</pubDate>
			<description>how to export text or any input that a user enters in an input field to a specific file say .txt file on the server. I want to try this on my laptop first.</description>
			<content:encoded><![CDATA[ <p>how to export text or any input that a user enters in an input field to a specific file say .txt file on the server. I want to try this on my laptop first.</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>shahaadilali</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/456856/how-to-export-input-text-from-an-input-field</guid>
		</item>
				<item>
			<title>how can i connect this string</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456855/how-can-i-connect-this-string</link>
			<pubDate>Mon, 17 Jun 2013 16:20:38 +0000</pubDate>
			<description>I am a new user of c++ and not really clear on pointers and the like , I have tried to search the web for some reasonable explanation but they just don't make much sense to me still. I would like to know what I need to do to pass ...</description>
			<content:encoded><![CDATA[ <p>I am a new user of c++ and not really clear on pointers and the like , I have tried to search the web for some reasonable explanation but they just don't make much sense to me still. I   would like to know what I need to do to pass this string to my boolcheckpassc(char *) function and if you just explain it in plain words that would be great cause I am lost. The bool code is from my book page 542 of starting out with c++ control structures. The other  code is from some other program I had with a dynamic array that I got an failure on anyway. I don't want you to write the code I just want someone to explain what I need to do to get it to work. like do I need to put in char instead of string? I am so confused. My instructor is of no help and he works for the air force.</p>

<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;iomanip&gt;
#include&lt;string&gt;

using namespace std;




/***************************************************************************/
/***************prototypes**************************************************/
void pause ();
int menu ();
string namePassword (string &amp;newuser, string &amp;pass);
void verifylogin();
bool checkpassc(char *);
int checkupperc(char *);
int checklowerc(char *);
int checknum(char *);
int checkspace(char *);





/****************************************************************************/
/******************main function*********************************************/

int main()
{
    int cont = 2;
   string *username;//ptr to dynamic array to hold names of products
   string *passwords; //ptr to dynamic array to hold prices of products
   int size =0;//hold the size of the dynamic array
   string s1;
   string s2;
    do        
   {// start do
      int choice=menu (); // call to the menu function
      switch (choice)
      { // Open switch statement

/******************************************************************************/
/**********switch case one register username password**************************/

         case 1: 

              //Get the information from the user for the product
              namePassword(s1,s2);
              cout&lt;&lt;"\n\n Enter a username:\n  ";
              cin&gt;&gt;s1;
              cout&lt;&lt; "\tEnter a password with the following criteria:\n";
              cout &lt;&lt; "8 to 15 characters\n"; 
              cout&lt;&lt; "2 uppercase\n2 lowercase\n2 numbers\n2 special characters:\n";
              cin &gt;&gt; s2; 

   int length;
    length = strlen(s2);

    if(length &gt;= 8 &amp;&amp; length &lt;= 15)
    {
        while (!checkpassc(s2))    
       {        
          cout &lt;&lt; "Invalid Password. try again\n";        
          cin &gt;&gt; s2;    
       }    
       cout &lt;&lt; "Your password: " &lt;&lt; s2 &lt;&lt; ", is valid\n";    
    }
    else
        cout &lt;&lt; "The password entered must be between 8-15 characters long\n";            

    system("pause");    


            pause();
            break;

/*****************************************************************************/
/******************switch case 2  login **************************************/ 

      case 2://get  the login information from the user
             case 2://get  the login information from the user
 char lookUp[user];
 char *strptr=null;
 int index
 cout&lt;&lt;"enter username\n:";
 cin.getline(lookUp,user);

 for (index=0; index&lt;user; index++)
 { 
     strPtr=strstr(user[index],lookup);
 if (strPtr !=Null
 cout&lt;&lt;"incorrect username\n";
 }
 if(strPtr!


            pause();
            break;

/******************************************************************************/
/******************************************************************************/

         case 3:cont=0;
                 break;
          } // Close switch statement

   }while (cont ==2);
   return 0;
}// STOP MAIN

/******************************************************************************/
/*******************void Pause function****************************************/

void pause ()
{//clears the last 80 on buffer
   cout &lt;&lt; "Press enter to continue " &lt;&lt; endl;
   cin.ignore (80, '\n');
}

/*****************************************************************************/
/**********int menu funtion********************************************/

int menu () 
{ // start int menu prototype

   int c = -1;
   while (c&lt;1 || c&gt;4)
   {  // start menu
      system ("cls");
      cout &lt;&lt; " 1. Register\n\n\n"
           &lt;&lt; " 2. Login\n\n\n"
           &lt;&lt; " 3. Exit\n\n\n";


      cin &gt;&gt; c;
      cin.ignore (80, '\n');
   }//end of while loop
   return c;
}// close int menu prototype

/******************************************************************************/
/******************user name function**********************************************/
string namePassword (string &amp;newuser, string &amp;pass);
{

} 
/****************************************************************************/
/*******************password registration*************************************/
bool checkpassc(s2 *str)
{    

    int length = strlen(str); //function to deterine the length of the cstring
    return checkupperc(str) &amp;&amp; checklowerc(str) &amp;&amp; checknum(str) &amp;&amp; checkspace (str);
}
//test for upper case 
int checkupperc(s2 *str)
{
    int user = 0;
    int length = strlen(str);

    for (int count = 0; count &lt; length; count++)
    {
        if (!isupper(str[count]))
        user++;
    }
        return user;    
}
//test for lower case
int checklowerc(s2 *str)
{
    int user = 0;
    int length = strlen(str);

    for (int count = 0; count &lt; length; count++)
    {
    if (!islower(str[count]))
    user++;
    }
    return user;
}
//test if it is a number or alphabet
int checknum(s2 *str)
{
    int user = 0;
    int length = strlen(str);

    for (int count = 0; count &lt; length; count++)
    {
        if (!isdigit(str[count]))
        user++;
    }
        return user;
}
//test if the argument is a whitespace character
int checkspace (s2 *str)
{
    int user=0;
    int length= strlen(str);

    for(int count=0; count&lt;length; count++)
    {
            if(!isspace(str[count]))
            user++;
            }
            return user;
            }

you can ignore the login function as  that is just  an idea I am currently working on for the login verification
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>cobaltfive</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456855/how-can-i-connect-this-string</guid>
		</item>
				<item>
			<title>COM and C++ programming</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456854/com-and-c-programming</link>
			<pubDate>Mon, 17 Jun 2013 16:16:09 +0000</pubDate>
			<description>WARNING: If you don't like horribly messy questions don't read on... Autodesk Inventor is a 3D parametric CAD program and plugins can be made using COM. I have no experience with COM and some of my naive COM type questions go ignored in the Inventor forums... Look at this: hRes ...</description>
			<content:encoded><![CDATA[ <p>WARNING: If you don't like horribly messy questions don't read on...</p>

<p>Autodesk Inventor is a 3D parametric CAD program and plugins can be made using COM. I have no experience with COM and some of my naive COM type questions go ignored in the Inventor forums...</p>

<p>Look at this:</p>

<pre><code class="language-cpp">  hRes = pSketches-&gt;Add (_variant_t((IDispatch *)pWorkPlane),
                         VARIANT_FALSE,
                         pSketch);
  wprintf (L"Sketch name: %s\n",pSketch-&gt;Name.GetBSTR()) ;

  pSketch-&gt;Name = L"Tube-Base" ;

  BSTR bstrSketchName ;
  pSketch-&gt;get_Name (&amp;bstrSketchName) ;
  wprintf (L"The sketch is now called %s\n",bstrSketchName) ;
</code></pre>

<p>The above code shows how to get and change the name of a "Sketch" in different ways.</p>

<p>Basically there is pSketch-&gt;Name which is read and write, while pSketch-&gt;get_Name(&amp;Name) is a read operation.</p>

<p>My question is: after using pSketch-&gt;Name do I have to do any .Release of smart pointers or anything?</p>

<p>Autodesk seems to have created double ways of accessing the same thing. With pointers you can use the</p>

<p>ptr = pObject-&gt;Get3D() ;</p>

<p>or</p>

<p>HRESULT hRes = pObject-&gt;get_3D(&amp;ptr) ;</p>

<p>They reccommend the later because it does not throw exceptions. And the former I think uses smart pointers which I'm too stupid to understand.</p>

<p>Has anybody come across this way of doing things in COM?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>owenransen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456854/com-and-c-programming</guid>
		</item>
				<item>
			<title>Hacking using utorrent ?</title>
			<link>http://www.daniweb.com/software-development/threads/456853/hacking-using-utorrent-</link>
			<pubDate>Mon, 17 Jun 2013 16:05:31 +0000</pubDate>
			<description>can they hack using utorrent or any torrent downloader software ?</description>
			<content:encoded><![CDATA[ <p>can they hack using utorrent or any torrent downloader software ?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>killer88</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/threads/456853/hacking-using-utorrent-</guid>
		</item>
				<item>
			<title>Java- How to get next data from a database</title>
			<link>http://www.daniweb.com/software-development/java/threads/456851/java-how-to-get-next-data-from-a-database</link>
			<pubDate>Mon, 17 Jun 2013 15:03:33 +0000</pubDate>
			<description>Hi, I'm having some issues with getting next data from the database, it seemed to be working before, but now it doesn't change the textfields to the next data just appends the data into TextArea1 and TextArea2, the other data TextField1 etc.. Doesn't even change, so I do not know ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I'm having some issues with getting next data from the database, it seemed to be working before, but now it doesn't change the textfields to the next data just appends the data into TextArea1 and TextArea2, the other data TextField1 etc.. Doesn't even change, so I do not know why this is happening. Been trying to figure out I can get the next data from the database for about 3 hours would really love some help.Anyone like to shine some light into this?</p>

<p>Thanks</p>

<p>Kru</p>

<p>` private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {<br />
        // Next Button</p>

<pre><code class="language-java">    Connection con = null;
    PreparedStatement ps = null;
    ResultSet rs = null; 



    String host = "xxxx";
    String uName = "xxxx"; 
    String uPass = "xxxx";


    try {
        con = DriverManager.getConnection(host,uName,uPass);

        ps = con.prepareStatement("SELECT * FROM Job",ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
        rs = ps.executeQuery();
       // String sql = "SELECT Customer.Firstname,Customer.Surname,Customer.TelephoneNo, ";
        if(rs.next()) {

       int id = rs.getInt("JobID");
       Date date =  rs.getDate("JobDate");
       String status = rs.getString("Status"); 
       String description = rs.getString("Description"); 
       String mechanic = rs.getString("Mechanic");
       Time duration = rs.getTime("Duration");
      // int customer = rs.getInt("CustomerID");
       String txtID = Integer.toString(id);



       jTextField1.setText(txtID);
       jTextField2.setText(date.toString());
       jTextArea1.append(status);
       jTextArea2.append(description);
       jTextField3.setText(mechanic);
       jTextField4.setText(duration.toString());

       System.out.println(id + "" +  date +  status  + description + mechanic +  duration );

        }
        } catch(SQLException e) {

        e.getMessage();

     } finally {
    try {
            if(con != null) {
                con.close();
                 System.out.println("CLOSED!!");
            }      
            if (ps != null) {
                ps.close();
            }
            if(rs != null) {
                rs.close();
            }

        } catch (SQLException e) {
            System.out.println("Exception has been caught");

        }   

    }

}  `
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>KRUX17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456851/java-how-to-get-next-data-from-a-database</guid>
		</item>
				<item>
			<title>Missing wallpaper</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/456850/missing-wallpaper</link>
			<pubDate>Mon, 17 Jun 2013 14:52:55 +0000</pubDate>
			<description>Wallpaper disapear and startpages in IE are empty after rebooting PC With Windows 7.</description>
			<content:encoded><![CDATA[ <p>Wallpaper disapear and startpages in IE are empty after rebooting PC With Windows 7.</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>Adam_Li</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/456850/missing-wallpaper</guid>
		</item>
				<item>
			<title>Image repeat, flip vertically</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/456849/image-repeat-flip-vertically</link>
			<pubDate>Mon, 17 Jun 2013 14:50:15 +0000</pubDate>
			<description>I have an image set as my background, which fades from blue to white and I'm just wondering if anyone knows how I can vertically repeat the image, but make the second one upside-down?</description>
			<content:encoded><![CDATA[ <p>I have an image set as my background, which fades from blue to white and I'm just wondering if anyone knows how I can vertically repeat the image, but make the second one upside-down?</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>snapper1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/456849/image-repeat-flip-vertically</guid>
		</item>
				<item>
			<title>how to make a list of number occurring in the same line with a word?</title>
			<link>http://www.daniweb.com/software-development/python/threads/456848/how-to-make-a-list-of-number-occurring-in-the-same-line-with-a-word</link>
			<pubDate>Mon, 17 Jun 2013 14:41:41 +0000</pubDate>
			<description>i have a text document 'topics.txt': 1~cocoa 2~ 3~ 4~ 5~grain~wheat~corn~barley~oat~sorghum 6~veg-oil~linseed~lin-oil~soy-oil~sun-oil~soybean~oilseed~corn~sunseed~grain~sorghum~wheat 7~ 8~ 9~earn 10~acq and so on.. here the numbers correspond to the file names, i have about 20000 files. import os import re import sys sys.stdout=open('f1.txt','w') from collections import Counter from glob import glob def removegarbage(text): text=re.sub(r'\W+',' ...</description>
			<content:encoded><![CDATA[ <p>i have a text document 'topics.txt':</p>

<p>1~cocoa</p>

<p>2~</p>

<p>3~</p>

<p>4~</p>

<p>5~grain~wheat~corn~barley~oat~sorghum</p>

<p>6~veg-oil~linseed~lin-oil~soy-oil~sun-oil~soybean~oilseed~corn~sunseed~grain~sorghum~wheat</p>

<p>7~</p>

<p>8~</p>

<p>9~earn</p>

<p>10~acq</p>

<p>and so on..<br />
here the numbers correspond to the file names, i have about 20000 files.</p>

<pre><code class="language-py">    import os
    import re
    import sys
    sys.stdout=open('f1.txt','w')
    from collections import Counter
    from glob import glob

    def removegarbage(text):
        text=re.sub(r'\W+',' ',text)
        text=text.lower()
        return text

    folderpath='d:/individual-articles'
    counter=Counter()


    filepaths = glob(os.path.join(folderpath,'*.txt'))

    num_files = len(filepaths)

    with open('topics.txt','r') as filehandle:
        lines = filehandle.read()
        words = removegarbage(lines).split()
       counter.update(words)


    for word, count in counter.most_common():
        probability=count//num_files
        print('{}  {} {}'.format(word,count,probability))
</code></pre>

<p>i need my output to be of the form:<br />
word,count of word in topics.txt,probability, list of files,number of files in list,</p>

<p>so far my program works fine till probability, but how do i get a list of the files belonging to a word?<br />
ex: 'grain' must contain the list(5,6,....)</p>

<p>would counting the line number for each word and storing the line number work?</p>

<p>how do i go about it?<br />
Plz help!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>farhaana.ahmed.58</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/456848/how-to-make-a-list-of-number-occurring-in-the-same-line-with-a-word</guid>
		</item>
				<item>
			<title>serialization of an abstract data type</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456847/serialization-of-an-abstract-data-type</link>
			<pubDate>Mon, 17 Jun 2013 13:56:10 +0000</pubDate>
			<description>Currently I have something like this: class FileWritter{ ofstream file; public: FileWritter(string filename,A_Class a){//A_Class is class which has defined the &gt;&gt; and the &lt;&lt; operators file.open(filename.c_str()); file&lt;&lt;a; } ~FileWritter(){ file.close(); } }; what I want is to have something like this: template &lt;class AbstractClass&gt; class FileWritter{ ofstream file; public: FileWritter(string ...</description>
			<content:encoded><![CDATA[ <p>Currently I have something like this:</p>

<pre><code class="language-cpp">class FileWritter{
    ofstream file;
public:
    FileWritter(string filename,A_Class a){//A_Class is class which has defined the &gt;&gt; and the &lt;&lt; operators
        file.open(filename.c_str());
        file&lt;&lt;a;
    }
    ~FileWritter(){
        file.close();
    }
};
</code></pre>

<p>what I want is to have something like this:</p>

<pre><code class="language-cpp">template &lt;class AbstractClass&gt;
class FileWritter{
    ofstream file;
    public:
    FileWritter(string fileName, AbstractClass ab){
        file.open(fileName.c_str());
        file&lt;&lt;ab;
    }
    ~FileWritter(){
        file.close();
    }
};
</code></pre>

<p>in this case, the compiller shows this error:</p>

<blockquote>
  <p>use of class template requires template argument list</p>
</blockquote>

<p>my question is how can I use an template class with FileWritter?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>CPT</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456847/serialization-of-an-abstract-data-type</guid>
		</item>
				<item>
			<title>divide by zero error in python</title>
			<link>http://www.daniweb.com/software-development/python/threads/456844/divide-by-zero-error-in-python</link>
			<pubDate>Mon, 17 Jun 2013 12:50:30 +0000</pubDate>
			<description> import os import re import sys sys.stdout=open('f1.txt','w') from collections import Counter from glob import glob def removegarbage(text): text=re.sub(r'\W+',' ',text) text=text.lower() return text folderpath='d:/induvidual-articles' counter=Counter() filepaths = glob(os.path.join(folderpath,'*.txt')) num_files = len(filepaths) with open('topics.txt','r') as filehandle: lines = filehandle.read() words = removegarbage(lines).split() counter.update(words) for word, count in counter.most_common(): probability=count//num_files print('{} {} {}'.format(word,count,probability)) ...</description>
			<content:encoded><![CDATA[ <pre><code class="language-py">import os
    import re
    import sys
    sys.stdout=open('f1.txt','w')
    from collections import Counter
    from glob import glob

    def removegarbage(text):
        text=re.sub(r'\W+',' ',text)
        text=text.lower()
        return text

    folderpath='d:/induvidual-articles'
    counter=Counter()


    filepaths = glob(os.path.join(folderpath,'*.txt'))

    num_files = len(filepaths)

    with open('topics.txt','r') as filehandle:
        lines = filehandle.read()
        words = removegarbage(lines).split()
       counter.update(words)


    for word, count in counter.most_common():
        probability=count//num_files
        print('{}  {} {}'.format(word,count,probability))
</code></pre>

<p>i am getting  a zero division error:float division by zero<br />
for the line<br />
probability=count//num_files</p>

<p>how do i rectify it?</p>

<p>i need my output to be of the form:<br />
word, count ,probability</p>

<p>Plz help!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>farhaana.ahmed.58</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/456844/divide-by-zero-error-in-python</guid>
		</item>
				<item>
			<title>Hi! Everybody</title>
			<link>http://www.daniweb.com/community-center/community-introductions/threads/456843/hi-everybody</link>
			<pubDate>Mon, 17 Jun 2013 12:25:13 +0000</pubDate>
			<description>Hi! I'm 14 years old and learning Web Designing and already own a wordpress blog; www.c-ation.com. I do have good computer knowledge but, do not think have much good like you people. So, lets become friends and help each other in this e-community.</description>
			<content:encoded><![CDATA[ <p>Hi! I'm 14 years old and learning Web Designing and already own a wordpress blog; www.c-ation.com. I do have good computer knowledge but, do not think have much good like you people. So, lets become friends and help each other in this e-community.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/community-introductions/165">Community Introductions</category>
			<dc:creator>oanahmed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/community-introductions/threads/456843/hi-everybody</guid>
		</item>
				<item>
			<title>extracting og tags  like facebook does</title>
			<link>http://www.daniweb.com/web-development/php/threads/456841/extracting-og-tags-like-facebook-does</link>
			<pubDate>Mon, 17 Jun 2013 12:22:31 +0000</pubDate>
			<description>Hello everyone, I am trying to find out how facebook extract information like image, title and description of a webpage using open graph tags. Please share you knowledge or any working scripts, tutorial. Thanks</description>
			<content:encoded><![CDATA[ <p>Hello everyone,</p>

<p>I am trying to find out how facebook extract information like image, title and description of a webpage using open graph tags.</p>

<p>Please share you knowledge or any working scripts, tutorial.</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>apnavarun</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456841/extracting-og-tags-like-facebook-does</guid>
		</item>
				<item>
			<title>Error Occuring On Logging Into &quot;Secure&quot; Area</title>
			<link>http://www.daniweb.com/web-development/php/threads/456840/error-occuring-on-logging-into-secure-area</link>
			<pubDate>Mon, 17 Jun 2013 12:21:04 +0000</pubDate>
			<description>Hi Everybody, Had a website transferred from Windows to Linux server, and ever since, I've had an error coming up when attempting to login - meaning that I can never actually enter the secure area of the website. I can login (i.e. press the login button) without error - however, ...</description>
			<content:encoded><![CDATA[ <p>Hi Everybody,</p>

<p>Had a website transferred from Windows to Linux server, and ever since, I've had an error coming up when attempting to login - meaning that I can never actually enter the secure area of the website.</p>

<p>I can login (i.e. press the login button) without error - however, when the script is checking the values against those in the database, it produces the following error:</p>

<pre><code>Warning: session_start() [function.session-start]: open(/var/chroot/home/content/96/9375396/tmp/sess_jleahbvtcmehn0b0plg6ktccr7, O_RDWR) failed: No such file or directory (2) in /home/content/96/9375396/html/console/include/code/checkDetails.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/96/9375396/html/console/include/code/checkDetails.php:3) in /home/content/96/9375396/html/console/include/code/checkDetails.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/96/9375396/html/console/include/code/checkDetails.php:3) in /home/content/96/9375396/html/console/include/code/checkDetails.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /home/content/96/9375396/html/console/include/code/checkDetails.php:3) in /home/content/96/9375396/html/console/include/code/checkDetails.php on line 72

Warning: Unknown: open(/var/chroot/home/content/96/9375396/tmp/sess_jleahbvtcmehn0b0plg6ktccr7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
</code></pre>

<p>Unfortunately, I cannot work out where I am going wrong - I had heard that it is possible something to do with an ini file (however I don't have one?), or to do with too many sessions being started, which I have checked and there isn't.<br />
I'd be grateful if you could help with my dilema! :D</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>maharrington</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456840/error-occuring-on-logging-into-secure-area</guid>
		</item>
				<item>
			<title>Counting the number of correct answers</title>
			<link>http://www.daniweb.com/web-development/jsp/threads/456839/counting-the-number-of-correct-answers</link>
			<pubDate>Mon, 17 Jun 2013 12:14:04 +0000</pubDate>
			<description> &lt;%@ page import = &quot;java.util.*&quot;%&gt; &lt;%@ page import = &quot;java.lang.*&quot;%&gt; &lt;%@ page import=&quot;java.sql.*&quot; %&gt; &lt;%@ page language=&quot;java&quot; import=&quot;java.sql.*&quot; errorPage=&quot;&quot; %&gt; &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt; &lt;title&gt;JSP Page&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;% String ans=&quot; &quot;; if(request.getParameter(&quot;correctAns&quot;)!=null) { ans=request.getParameter(&quot;correctAns&quot;).toString(); } Connection conn = null; ...</description>
			<content:encoded><![CDATA[ <pre><code>&lt;%@ page import = "java.util.*"%&gt;
&lt;%@ page import = "java.lang.*"%&gt;
&lt;%@ page import="java.sql.*" %&gt;
&lt;%@ page language="java" import="java.sql.*" errorPage="" %&gt;

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<a href="http://www.w3.org/TR/html4/loose.dtd" rel="nofollow">http://www.w3.org/TR/html4/loose.dtd</a>"&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;/head&gt;
&lt;body&gt;
&lt;% 
    String ans=" ";
if(request.getParameter("correctAns")!=null)
    {
        ans=request.getParameter("correctAns").toString();
    }
        Connection conn = null;
        String url = "jdbc:mysql://localhost:3306/";
        String db = "test";
        String driver = "com.mysql.jdbc.Driver";
        String userName ="root";
        String pass="password";
        Statement st = null;
        ResultSet qrst;
        ResultSet rs = null;



    String a,b;
   int count = 0;
    int items = 0 ;


try {

    Class.forName(driver);
    conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root", "password");

    st = conn.createStatement();
    rs = st.executeQuery("select * from questionnaires");

while(rs.next()) {
%&gt;
&lt;br&gt;
&lt;br/&gt;
&lt;center&gt;

&lt;table border="1" width="500px" bgcolor="white" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td width="100%"&gt;

&lt;form name="form1" &gt;

&lt;h2 align="center"&gt;&lt;font color="red"&gt;Online Quize Application&lt;/font&gt;&lt;/h2&gt;

&lt;b&gt;Select Correct Answer&lt;/b&gt;
&lt;table border="0" width="500px" cellspacing="2" cellpadding="4"&gt;
&lt;tr&gt;
&lt;td width="50%"&gt; Question Number: &lt;%= rs.getString("qid")%&gt;&lt;/td&gt;


&lt;input type="hidden" name="correctAns" value="&lt;%=rs.getString("correctAns")%&gt;" /&gt;
&lt;tr&gt;
&lt;td&gt;&lt;%= rs.getString("quest") %&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;

1: &lt;input type="radio" name="a" value= "QA" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;%= rs.getString("QA") %&gt;&lt;/td&gt;&lt;/tr&gt; 
&lt;tr&gt;
&lt;td&gt;
2: &lt;input type="radio" name="a" value="QB" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;%= rs.getString("QB") %&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
3: &lt;input type="radio" name="a" value="QC" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;%= rs.getString("QC") %&gt; &lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
4: &lt;input type="radio" name="a" value="QD" /&gt; &lt;/td&gt;
&lt;td&gt; &lt;%= rs.getString("QD") %&gt; &lt;/td&gt;&lt;/tr&gt;




&lt;tr&gt;
&lt;td&gt;
&lt;center&gt;
&lt;input type="submit" value="Submit" name="submit"&gt;&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;

&lt;/form&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/center&gt;
&lt;/body&gt;


&lt;%
}
     a=request.getParameter("a");

 if(a.equals(ans))
        {

        count++;
    items++;
        out.println("Correct");

         }
        else{
        out.println("wrong");
    items++;
    }

}

catch (Exception ex) {
ex.printStackTrace();

%&gt;

&lt;%
} finally {
if (rs != null) rs.close();
if (st != null) st.close();
if (conn != null) conn.close();
}
%&gt;


    &lt;% 







if(count &lt;= items)
    {
        //String strcount = Integer.toString(count);
        //String stritems = Integer.toString(items);
        //out.println("Score :" . count . "/" .items);

        out.print("Score :");
        out.print(count);
        out.print("/");
        out.println(items);
    }
%&gt;
&lt;/html&gt;
</code></pre>

<p>Hello, I'm creating a simple Online Exam System but i'm having some problem with my codes. I want to count all the correct answers and wrong answers. How should I do it? I mean, what code should I use? I'm a beginner in jsp. Please help. Thank you so much.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/jsp/24">JSP</category>
			<dc:creator>legendaddybok</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/jsp/threads/456839/counting-the-number-of-correct-answers</guid>
		</item>
				<item>
			<title>Any caveats for logging into text file?</title>
			<link>http://www.daniweb.com/web-development/php/threads/456837/any-caveats-for-logging-into-text-file</link>
			<pubDate>Mon, 17 Jun 2013 11:48:54 +0000</pubDate>
			<description>I'm wondering is there anything specific I should take into account when writing CMS logging (debug/alerts) into a plain text file? To specify more what I have in mind, think of logging into SQL database, and how stuff need to be escaped to be sure there won't be injection-attack thru ...</description>
			<content:encoded><![CDATA[ <p>I'm wondering is there anything specific I should take into account when writing CMS logging (debug/alerts) into a plain text file? To specify more what I have in mind, think of logging into SQL database, and how stuff need to be escaped to be sure there won't be injection-attack thru log-mechanisms.</p>

<p>In my personal project, there's logging into MySQL database, but I've left out plenty of (perhaps) useful data to minimize possibilities for security-holes, as I'm not entirely convinced that <em>mysqli_real_escape_string()</em> is "do it all"-solution. It's flawed too, so there's need for rewrite anyways. If it wouldn't be my CMS, I would find it extremely hilarious to read a log notation that user had no connection to database (probably a spider-flood).</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>F-3000</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456837/any-caveats-for-logging-into-text-file</guid>
		</item>
				<item>
			<title>Only allow 2 chars to be input in a console application</title>
			<link>http://www.daniweb.com/software-development/csharp/code/456836/only-allow-2-chars-to-be-input-in-a-console-application</link>
			<pubDate>Mon, 17 Jun 2013 11:40:45 +0000</pubDate>
			<description>Many situations arise when you have to choose between two options: true/false, male/female etc. This short snippet will only allow two chars to pass through: capital 'Y' or capital 'N'. The Read and ReadLine methods can serve also, but have the side effect you have to use Upper and Lower ...</description>
			<content:encoded><![CDATA[ <p>Many situations arise when you have to choose between two options: true/false, male/female etc.<br />
This short snippet will only allow two chars to pass through: capital 'Y' or capital 'N'.<br />
The Read and ReadLine methods can serve also, but have the side effect you have to use Upper and Lower case methods if-statements, or (with ReadLine) testing if only 1 char is input etc.<br />
Notice that the condition in the do - while has to be <strong>false</strong>.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>ddanbe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/code/456836/only-allow-2-chars-to-be-input-in-a-console-application</guid>
		</item>
				<item>
			<title>Weird SOAP Message Packaging</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/456834/weird-soap-message-packaging</link>
			<pubDate>Mon, 17 Jun 2013 11:13:32 +0000</pubDate>
			<description>I have a proxy generated class file as [System.SerializableAttribute()] { .. .. [System.Xml.Serialization.SoapTypeAttribute(Namespace=&quot;urn:issuing_v_01_02_xsd&quot;)] public class XXXX { private Nullable&lt;decimal&gt; income; private Nullable&lt;decimal&gt; expense; private String memeberName; ... //Properties section with decoration: [SoapElementAttribute(IsNullable=true)] } in my consumer class I obviously create an instance for this object, set all values via set ...</description>
			<content:encoded><![CDATA[ <p>I have a proxy generated class file as</p>

<pre><code class="language-cs">[System.SerializableAttribute()]
{
..
..
[System.Xml.Serialization.SoapTypeAttribute(Namespace="urn:issuing_v_01_02_xsd")]
public class XXXX
{
private Nullable&lt;decimal&gt; income;
private Nullable&lt;decimal&gt; expense;
private String memeberName;
...

//Properties section with decoration: [SoapElementAttribute(IsNullable=true)]

}
</code></pre>

<p>in my consumer class I obviously create an instance for this object, set all values via set properties but strangely after serialization, Property Income element is not present in the xml object graph. tried using various hacks to get this fixed an working but I'm running out of ideas because I believe theoretically and to my experience this should be working especially with SOAP serializer which serializes all public members unless cleared marked to be ignored.</p>

<p>tried using MustSerializeMember pattern but no luck. Has anyone ever came across such a situation or know of what could be causing this ?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>mshauny</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/456834/weird-soap-message-packaging</guid>
		</item>
				<item>
			<title>BufferedStream i/o</title>
			<link>http://www.daniweb.com/software-development/java/threads/456833/bufferedstream-io</link>
			<pubDate>Mon, 17 Jun 2013 10:47:26 +0000</pubDate>
			<description>Could you please explain me what is a BufferedStream (what is a buffer and how it should be used?)? I have used a code that uses bufferedstream to write to a .txt file. I got the code while googling but don't know the theory behind how it works... please explain.</description>
			<content:encoded><![CDATA[ <p>Could you please explain me what is a BufferedStream (what is a buffer and how it should be used?)? I have used a code that uses bufferedstream to write to a .txt file. I got the code while googling but don't know the theory behind how it works... please explain.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>abra_ka_dabra</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456833/bufferedstream-io</guid>
		</item>
				<item>
			<title>Sony VGP-BPS9/B  Battery and AC Adaptor problems</title>
			<link>http://www.daniweb.com/hardware-and-software/pc-hardware/usb-devices-and-other-peripherals/threads/456832/sony-vgp-bps9b-battery-and-ac-adaptor-problems</link>
			<pubDate>Mon, 17 Jun 2013 10:37:25 +0000</pubDate>
			<description>Hi I have a Sony VGP-BPS9/B laptop. It was working fine until I noticed that the battery wasnt charging. I heard the ac adaptor buzzing a bit so I figured the ac adaptor was on its last leg. So I ordered a new one. That didnt charge the battery. So ...</description>
			<content:encoded><![CDATA[ <p>Hi I have a Sony VGP-BPS9/B  laptop. It was working fine until I noticed that the battery wasnt charging. I heard the ac adaptor buzzing a bit so I figured the ac adaptor was on its last leg. So I ordered a new one. That didnt charge the battery. So I ordered a new battery. Still nothing charging.<br />
I shut the laptop down, removed the Sony VGP-BPS9/B battery(new and old) and tried running the laptop just off the old ac adaptor.<br />
It boots up fine and is usable but I cannot get the battery to charge whether its the new <a href="http://www.cbattery.co.uk/sony-vgp-bps9_b.html" rel="nofollow">Sony VGP-BPS9/B battery</a> /ac adaptor or the old ones.<br />
Is there anything that possibly went on the board itself?????<br />
I have been doing some research but cant find much answers out. I read some other people having the same problem but nothing answered in several forums I have read.<br />
Bonjour à tous,</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/pc-hardware/usb-devices-and-other-peripherals/107">USB Devices and other Peripherals</category>
			<dc:creator>tiankong</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/pc-hardware/usb-devices-and-other-peripherals/threads/456832/sony-vgp-bps9b-battery-and-ac-adaptor-problems</guid>
		</item>
				<item>
			<title>replace curdate() - interval with $variable - interval</title>
			<link>http://www.daniweb.com/web-development/php/threads/456831/replace-curdate-interval-with-variable-interval</link>
			<pubDate>Mon, 17 Jun 2013 10:28:37 +0000</pubDate>
			<description>The code below is to select and then echo stuff from my db grouped by either weeks or months. I have a couple of more of these and then use offset to get the second week etc. FROM my_db WHERE DATE &gt;= CURDATE() - INTERVAL 10 &quot;.$grouping1.&quot; GROUP BY &quot;.$grouping.&quot;(DATE) ...</description>
			<content:encoded><![CDATA[ <p>The code below is to select and then echo stuff from my db grouped by either weeks or months. I have a couple of more of these and then use offset to get the second week etc.</p>

<pre><code>FROM my_db WHERE DATE &gt;= CURDATE() - INTERVAL 10 ".$grouping1." GROUP BY ".$grouping."(DATE) order by DATE desc limit 1
</code></pre>

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

<p>I would like to exchange curdate() with a variable instead so that we are able to "pick a startdate" and then look 10 weeks/months back from that date.</p>

<p>Is there a simpler/better way to do this?</p>

<p>I've tried to exchange the curdate with a variable like this:</p>

<pre><code>FROM my_db WHERE DATE &gt;= '". $startdate ."' - INTERVAL 10 ".$grouping1." GROUP BY ".$grouping."(DATE) order by DATE desc limit 1
</code></pre>

<p>but the weeks/months stay the same even though the variable (start date) changes.</p>

<p>My $startdate variable is formatted like this 2013-05-07 and the DATE column in the mysql db is of date format.</p>

<p>Peace /Adis</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>adishardis</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456831/replace-curdate-interval-with-variable-interval</guid>
		</item>
				<item>
			<title>Disable past dates on a datepicker</title>
			<link>http://www.daniweb.com/web-development/php/threads/456830/disable-past-dates-on-a-datepicker</link>
			<pubDate>Mon, 17 Jun 2013 10:24:23 +0000</pubDate>
			<description>Hullo, I am working with a datepicker that allows users to enter a date schedule for given tasks. However, I want the dates that have passed to be disabled from the datepicker, so that the user only selects a future date. Here is what I am using currently; &lt;script type=&quot;text/javascript&quot;&gt; ...</description>
			<content:encoded><![CDATA[ <p>Hullo, I am working with a datepicker that allows users to enter a date schedule for given tasks.</p>

<p>However, I want the dates that have passed to be disabled from the datepicker, so that the user only selects a future date.<br />
Here is what I am using currently;</p>

<pre><code>&lt;script type="text/javascript"&gt;
                        $(function() {
                            //var altFormat = $( "#datepicker" ).datepicker( "option", "altFormat" );
                            $( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd',changeYear:true,changeMonth:true,yearRange:'1900:2002'});
                            //getter
                            var dateFormat = $( "#datepicker" ).datepicker( "option", "dateFormat" );
                            //setter
                            $( "#datepicker" ).datepicker( "option", "dateFormat", 'yy-mm-dd' );
                        });
</code></pre>
 ]]></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/456830/disable-past-dates-on-a-datepicker</guid>
		</item>
				<item>
			<title>Java JDK adn JRE</title>
			<link>http://www.daniweb.com/software-development/java/threads/456829/java-jdk-adn-jre</link>
			<pubDate>Mon, 17 Jun 2013 09:48:51 +0000</pubDate>
			<description>What is the difference between JDK and JRE? I know its silly to ask but i am shameless till i get my things get clarified... :D</description>
			<content:encoded><![CDATA[ <p>What is the difference between JDK and JRE? I know its silly to ask but i am shameless till i get my things get clarified... :D</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>abra_ka_dabra</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456829/java-jdk-adn-jre</guid>
		</item>
				<item>
			<title>web development or web designing </title>
			<link>http://www.daniweb.com/web-development/threads/456828/web-development-or-web-designing-</link>
			<pubDate>Mon, 17 Jun 2013 09:46:26 +0000</pubDate>
			<description>what is difference b/w web development &amp; web designing.In which we have better scope or income?</description>
			<content:encoded><![CDATA[ <p>what is difference b/w web development &amp; web designing.In which we have better scope or income?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>kshitij6857</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/456828/web-development-or-web-designing-</guid>
		</item>
				<item>
			<title>News Letter through outlook express</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/456827/news-letter-through-outlook-express</link>
			<pubDate>Mon, 17 Jun 2013 09:39:40 +0000</pubDate>
			<description>Hi , I am trying to send news letter through outlook express with html from my website as follows : I have a news letter icon in my website ,When I click , it will open outlook express with html (news letter) and just fill up the email id and ...</description>
			<content:encoded><![CDATA[ <p>Hi ,</p>

<p>I am trying to send news letter through outlook express with html from my website as follows :</p>

<p>I have a news letter icon in my website ,When I click , it will open outlook express with html (news letter) and just fill up the email id and send then some one will receive this news letter.</p>

<p>Thanks in advance ,</p>

<p>Subrata</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>subrata_ushasi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/456827/news-letter-through-outlook-express</guid>
		</item>
				<item>
			<title>Warning: mysql_fetch_array() expects parameter 1 to be resource</title>
			<link>http://www.daniweb.com/web-development/php/threads/456826/warning-mysql_fetch_array-expects-parameter-1-to-be-resource</link>
			<pubDate>Mon, 17 Jun 2013 08:51:18 +0000</pubDate>
			<description>Hi all I am experiencing the following error. Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean givenit refers to line 94 which is the while loop start point. Thanks in advance D &lt;?php $x=0; $remainder=0; $image_value = array(); $partners_id = array(); $description_value = array(); $url_value= array(); $image_filename_value = array(); ...</description>
			<content:encoded><![CDATA[ <p>Hi all I am experiencing the following error.</p>

<p>Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean givenit refers to line 94 which is the while loop start point.</p>

<p>Thanks in advance</p>

<p>D</p>

<pre><code>&lt;?php

                $x=0;
                $remainder=0;
                $image_value = array();
                $partners_id = array();
                $description_value = array();
                $url_value= array();
                $image_filename_value = array();
                $case_study_id = array();
                $CaseStudyTitle = array();
                $active = array();
                $show_in_banner = array();
                while($row = mysql_fetch_array($result))
                       {

                           //echo $row{'web_customised_partners_id'};
                           $partners_id[]= $row['web_customised_partners_id'];
                           $image_value[] = $row['image_id'];
                           $image_filename_value[] = $row['image_filename'];
                           $description_value[] = $row['description'];
                           $url_value[] = $row['url'];
                           $case_study_id[] = $row['web_customised_partners_case_study_id'];
                           $CaseStudyTitle[] = $row['CaseStudyTitle'];
                           $active[] = $row['active'];
                           $show_in_banner[]=$row['show_in_banner'];
                       }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>davidjennings</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456826/warning-mysql_fetch_array-expects-parameter-1-to-be-resource</guid>
		</item>
				<item>
			<title>Nothing is working</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456825/nothing-is-working</link>
			<pubDate>Mon, 17 Jun 2013 08:15:02 +0000</pubDate>
			<description>I have tried a lot of techniques to rank many keywords, all the techniques such as directory submission, ..... which one you will recommend after recent google update</description>
			<content:encoded><![CDATA[ <p>I have tried a lot of techniques to rank many keywords, all the techniques such as directory submission, ..... which one you will recommend after recent google update</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>jamesfrank101</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456825/nothing-is-working</guid>
		</item>
				<item>
			<title>My SQL</title>
			<link>http://www.daniweb.com/web-development/databases/mysql/threads/456824/my-sql</link>
			<pubDate>Mon, 17 Jun 2013 08:03:31 +0000</pubDate>
			<description>Hello Friends... How are you all ??? I want to learn SQL so please refer me some good books to learn SQL..</description>
			<content:encoded><![CDATA[ <p>Hello Friends...<br />
How are you all ???<br />
I want to learn SQL so please refer me some good books to learn SQL..</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/mysql/126">MySQL</category>
			<dc:creator>chrispitt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/mysql/threads/456824/my-sql</guid>
		</item>
				<item>
			<title>3D Background</title>
			<link>http://www.daniweb.com/web-development/php/threads/456823/3d-background</link>
			<pubDate>Mon, 17 Jun 2013 07:39:59 +0000</pubDate>
			<description>Hello Friends, lately I have found a few websites that use very beautiful background and its look like 3D, i see the background Like using 2 layers background, i just want too know the name of this type background and how can i make it, example java or flash. ONE ...</description>
			<content:encoded><![CDATA[ <p>Hello Friends,</p>

<p>lately I have found a few websites that use very beautiful background and its look like 3D, i see the background Like using 2 layers background, i just want too know the name of this type background and how can i make it, example java or flash.</p>

<p>ONE OF THE WEBSITE IS HERE ====&gt; <a href="http://www.tourism.gov.my/en/my" rel="nofollow">Click Here</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Hazuan Nazri</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456823/3d-background</guid>
		</item>
				<item>
			<title>get min value in array 2D and key </title>
			<link>http://www.daniweb.com/web-development/php/threads/456822/get-min-value-in-array-2d-and-key-</link>
			<pubDate>Mon, 17 Jun 2013 07:39:39 +0000</pubDate>
			<description> &gt; hey guys, how to get min value in array 2D except value zero '0'and also key ? &gt; i've try use min and array_filter function to solve it &gt; can you help me?please Array ( [0] =&gt; Array ( [0] =&gt; 0 [1] =&gt; 6 [2] =&gt; 4 ) ...</description>
			<content:encoded><![CDATA[ <blockquote>
  <p>hey guys, how to get min value in array 2D except value zero '0'and also key ?<br />
  i've try use min and array_filter function to solve it<br />
  can you help me?please</p>
</blockquote>

<pre><code>Array
(
[0] =&gt; Array
(
[0] =&gt; 0
[1] =&gt; 6
[2] =&gt; 4
)

[1] =&gt; Array
(
[0] =&gt; 6
[1] =&gt; 0
[2] =&gt; 2
)

[2] =&gt; Array
(
[0] =&gt; 4
[1] =&gt; 2
[2] =&gt; 0
)

)
i want result like this:
Array
(
[1] =&gt; Array
(
[2] =&gt; 2
)
)
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>cussel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456822/get-min-value-in-array-2d-and-key-</guid>
		</item>
				<item>
			<title>Learning PDO - Database ?</title>
			<link>http://www.daniweb.com/web-development/php/threads/456821/learning-pdo-database-</link>
			<pubDate>Mon, 17 Jun 2013 07:38:46 +0000</pubDate>
			<description>Hi all, I am looking into PDO, as I want to learn how to use it for future projects. I am fairly new to OOP, but got the basics by now.. All though I cant get this database class to work : class Database { private $host = 'localhost'; private ...</description>
			<content:encoded><![CDATA[ <p>Hi all,</p>

<p>I am looking into PDO, as I want to learn how to use it for future projects.</p>

<p>I am fairly new to OOP, but got the basics by now..</p>

<p>All though I cant get this database class to work :</p>

<pre><code>class Database {

private $host      = 'localhost';
private $user      = 'root';
private $pass      = '';
private $dbname    = 'cms';

private $dbh;
private $error;

public function __construct(){
    // DSN :
    $dsn = 'mysql:host=' . $this-&gt;host . ';dbname=' . $this-&gt;dbname;
    // Options :
    $options = array(
        PDO::ATTR_PERSISTENT    =&gt; true,
        PDO::ATTR_ERRMODE       =&gt; PDO::ERRMODE_EXCEPTION
    );
    // Opret nyt PDO instance :
    try {
        return $this-&gt;dbh = new PDO($dsn, $this-&gt;user, $this-&gt;pass, $options);
    }
    // Eventuelle fejl :
    catch(PDOException $e){
        $this-&gt;error = $e-&gt;getMessage();
    }
}
}

$db = new Database();

$db-&gt;query("SELECT link, url FROM pages WHERE publiceret = 'ja'");
</code></pre>

<p>What needs to be fixed in order to use the connection?</p>

<p>Also, I want to use a persistent connection, so I dont create a new connection each time, is this the correct approach to do that? AND is it a good approach to enhance performance? Or is it not really gaining a lot...?</p>

<p>The attempt on the query above results in the following error:</p>

<pre><code> Fatal error: 
 Call to undefined method Database::query() in C:\wamp\www\classLibrary\PDO\pdo_connection.php     
 on line 37
</code></pre>

<p>Best regards, Klemme</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>klemme</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456821/learning-pdo-database-</guid>
		</item>
				<item>
			<title>Script English to hindi for a website</title>
			<link>http://www.daniweb.com/web-development/php/threads/456820/script-english-to-hindi-for-a-website</link>
			<pubDate>Mon, 17 Jun 2013 07:32:46 +0000</pubDate>
			<description>I want to add a feature in which my website can translate from English to Hindi.. How it can done and there is any free script ?</description>
			<content:encoded><![CDATA[ <p>I want to add a feature in which my website can translate from English to Hindi..</p>

<p>How it can done and there is any free script ?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>edwin.thomson1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456820/script-english-to-hindi-for-a-website</guid>
		</item>
				<item>
			<title>Drop Database</title>
			<link>http://www.daniweb.com/web-development/php/threads/456819/drop-database</link>
			<pubDate>Mon, 17 Jun 2013 07:27:33 +0000</pubDate>
			<description>Hello, I am using xampp for mysql: When I try to delete a database : &quot;DROP DATABASE&quot; statements are disabled. That statement appears. Why is it? What other alternative I could use? Thanks.</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I am using xampp for mysql:</p>

<p>When I try to delete a database :</p>

<p>"DROP DATABASE" statements are disabled.</p>

<p>That statement appears.  Why is it?  What other alternative I could use?</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/456819/drop-database</guid>
		</item>
				<item>
			<title>black hat seo&#039;s?</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456818/black-hat-seos</link>
			<pubDate>Mon, 17 Jun 2013 07:26:12 +0000</pubDate>
			<description>hi what are black hat SEO's?</description>
			<content:encoded><![CDATA[ <p>hi<br />
   what are black hat SEO's?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>jaredsdirect</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456818/black-hat-seos</guid>
		</item>
				<item>
			<title>Back up database</title>
			<link>http://www.daniweb.com/web-development/databases/ms-sql/threads/456817/back-up-database</link>
			<pubDate>Mon, 17 Jun 2013 07:23:58 +0000</pubDate>
			<description>i have crated a job to backup automaticly my database , when procees happen failure message appear , anyone can help me ?? thx BACKUP DATABASE [MYDATABASE] TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup'</description>
			<content:encoded><![CDATA[ <p>i have crated a job to backup automaticly my database , when procees happen failure message appear , anyone can help me ?? thx</p>

<p>BACKUP DATABASE [MYDATABASE]<br />
TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup'</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/ms-sql/127">MS SQL</category>
			<dc:creator>HibaPro</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/ms-sql/threads/456817/back-up-database</guid>
		</item>
				<item>
			<title>Learning C</title>
			<link>http://www.daniweb.com/software-development/c/threads/456816/learning-c</link>
			<pubDate>Mon, 17 Jun 2013 07:17:01 +0000</pubDate>
			<description>Hello members... How are you all ??? I just started the programming and want to learn C for that.. so please tell me the best book to learn the C from the starting... Thank you in advance......</description>
			<content:encoded><![CDATA[ <p>Hello members...<br />
How are you all ???<br />
I just started the programming and want to learn C for that..<br />
so please tell me the best book to learn the C from the starting...<br />
Thank you in advance......</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>Aadhya169</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/456816/learning-c</guid>
		</item>
				<item>
			<title>Program crashes while getting char input</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456815/program-crashes-while-getting-char-input</link>
			<pubDate>Mon, 17 Jun 2013 07:06:02 +0000</pubDate>
			<description>Hi there, I am implementing simple student class when i run the program it crashes after getting input for char* name. Program is as follows. #include &lt;iostream&gt; using namespace std; class Student { private: char* name; int rollNo; float cgpa; public: Student() { name = &quot;&quot;; rollNo = 0; cgpa ...</description>
			<content:encoded><![CDATA[ <p>Hi there,</p>

<p>I am implementing simple student class when i run the program it crashes after getting input for char* name. Program is as follows.</p>

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

using namespace std;

class Student
{
    private:

        char* name;
        int rollNo;
        float cgpa;

    public:

        Student()
        {
            name = "";
            rollNo = 0;
            cgpa = 0.0;
        }

        void setName()
        {
            cout&lt;&lt;"Enter name : "&lt;&lt;flush;   //after input my program crashes
            cin &gt;&gt; name;
        }

        void setName(char* newName)
        {
            name = newName;
        }

        char* getName()
        {
            return name;
        }

        void setRollNo()
        {
            cout&lt;&lt;"Enter roll no : "&lt;&lt;flush;
            cin &gt;&gt; rollNo;
        }

        void setRollNo(int newRollNo)
        {
            rollNo = newRollNo;
        }

        int getRollNo()
        {
            return rollNo;
        }

        void setCgpa()
        {
            cout&lt;&lt;"Enter cgpa : "&lt;&lt;flush;
            cin &gt;&gt; cgpa;
        }

        void setCgpa(float newCgpa)
        {
            cgpa = newCgpa;
        }

        float getCgpa()
        {
            return cgpa;
        }
};

int main()
{

    Student s1;

    //s1.setName("Ahmad");
    s1.setName();
    cout&lt;&lt;"Name :\t\t"&lt;&lt;s1.getName() &lt;&lt;endl;
    //s1.setRollNo(23);
    s1.setRollNo();
    cout&lt;&lt;"Roll no :\t" &lt;&lt;s1.getRollNo() &lt;&lt;endl;
    //s1.setCgpa(3.45);
    s1.setCgpa();
    cout&lt;&lt;"Cgpa :\t\t" &lt;&lt;s1.getCgpa() &lt;&lt;endl;

    return 0;
}
</code></pre>

<p>Please see the comment where my program crashes, I don't know why ? Please help and explain, I am using Code Blocks. Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>new_developer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456815/program-crashes-while-getting-char-input</guid>
		</item>
				<item>
			<title>Problem while the installation of Windows XP</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/threads/456814/problem-while-the-installation-of-windows-xp</link>
			<pubDate>Mon, 17 Jun 2013 06:40:36 +0000</pubDate>
			<description>Hello Friends, How are you all ???? I have a problem with windows XP... While the installation of the Windows XP it shows an error message that &quot;asms file is needed&quot;... Please help what I will do to recover this error... Thank you in advance...</description>
			<content:encoded><![CDATA[ <p>Hello Friends,<br />
How are you all ????<br />
I have a problem with windows XP...<br />
While the installation of the Windows XP it shows an error message that "asms file is needed"...<br />
Please help what I will do to recover this error...<br />
Thank you in advance...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/99">Microsoft Windows</category>
			<dc:creator>jacksonbird03</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/threads/456814/problem-while-the-installation-of-windows-xp</guid>
		</item>
				<item>
			<title>ECommerce VS MCommerce </title>
			<link>http://www.daniweb.com/internet-marketing/ecommerce/threads/456812/ecommerce-vs-mcommerce-</link>
			<pubDate>Mon, 17 Jun 2013 06:13:56 +0000</pubDate>
			<description>ECommerce VS MCommerce : Hello frnds : define ECommerce &amp; MCommerce and tell me which is the best</description>
			<content:encoded><![CDATA[ <p>ECommerce VS MCommerce :<br />
 Hello frnds :<br />
  define ECommerce &amp; MCommerce and tell me which is the best</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/ecommerce/46">eCommerce</category>
			<dc:creator>lara1anjela</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/ecommerce/threads/456812/ecommerce-vs-mcommerce-</guid>
		</item>
				<item>
			<title>How To get Back my Rankings??</title>
			<link>http://www.daniweb.com/internet-marketing/ecommerce/threads/456811/how-to-get-back-my-rankings</link>
			<pubDate>Mon, 17 Jun 2013 06:11:21 +0000</pubDate>
			<description>How To get Back my Rankings?? Hi All, I have been Working with a &quot;US&quot; Site For the past 3months. I had Ranked all the Keywords in SERP. But last week i found a sudden Drop in all my keywords. i Checked my Back links and other stuffs everything was ...</description>
			<content:encoded><![CDATA[ <p>How To get Back my Rankings??</p>

<pre><code>Hi All,
I have been Working with a "US" Site For the past 3months.
I had Ranked all the Keywords in SERP.
But last week i found a sudden Drop in all my keywords.
i Checked my Back links and other stuffs everything was so clear...
i'm getting mobile version results in google serp" how do i solve it?
can any one suggest me any solution, To get back my Rankings in SERP???? 
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/ecommerce/46">eCommerce</category>
			<dc:creator>lara1anjela</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/ecommerce/threads/456811/how-to-get-back-my-rankings</guid>
		</item>
				<item>
			<title>Sitemaps Not Updating itself</title>
			<link>http://www.daniweb.com/internet-marketing/ecommerce/threads/456810/sitemaps-not-updating-itself</link>
			<pubDate>Mon, 17 Jun 2013 06:09:57 +0000</pubDate>
			<description>hey my website is indirimatic my sitemaps doesnt updated itself. do i need to resubmit them when i post new posts or what? how long does it take to get them updated?</description>
			<content:encoded><![CDATA[ <p>hey my website is indirimatic my sitemaps doesnt updated itself. do i need to resubmit them when i post new posts or what? how long does it take to get them updated?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/ecommerce/46">eCommerce</category>
			<dc:creator>lara1anjela</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/ecommerce/threads/456810/sitemaps-not-updating-itself</guid>
		</item>
				<item>
			<title>What wil be your favourite feature in upcoming iPhone?</title>
			<link>http://www.daniweb.com/hardware-and-software/apple/ios-iphone-os/threads/456808/what-wil-be-your-favourite-feature-in-upcoming-iphone</link>
			<pubDate>Mon, 17 Jun 2013 05:36:55 +0000</pubDate>
			<description>There are rumors that iPhone 5S or iPhone 6 (whatever it will be called) will be introduced in a number of colors, with big size, excellent 12 MP camera, thumb impression detection for security and will be a bit bigger in size. What will be your favourite feature among these ...</description>
			<content:encoded><![CDATA[ <p>There are rumors that iPhone 5S or iPhone 6 (whatever it will be called) will be introduced in a number of colors, with big size, excellent 12 MP camera, thumb impression detection for security and will be a bit bigger in size.<br />
What will be your favourite feature among these new inclusions?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/apple/ios-iphone-os/101">iOS (iPhone OS)</category>
			<dc:creator>adamhmiles</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/apple/ios-iphone-os/threads/456808/what-wil-be-your-favourite-feature-in-upcoming-iphone</guid>
		</item>
				<item>
			<title>my assignment</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456807/my-assignment</link>
			<pubDate>Mon, 17 Jun 2013 04:55:58 +0000</pubDate>
			<description>**PLS HELP ME, design a digitally controlled washing machine that sets the wash temperature to 80degree celcius for cotten clothes 40degree celcius per quick wash and 1000 revolution for rinse and dry only using MICRO SOFT V. STUDIO 2010 c++ programming, PLS ITS URGENT!</description>
			<content:encoded><![CDATA[ <p>**PLS HELP ME,  design a digitally controlled  washing machine that sets the wash temperature to 80degree celcius<br />
for cotten clothes 40degree celcius per quick wash and 1000 revolution for rinse and dry only using<br />
MICRO SOFT V. STUDIO 2010 c++ programming, PLS ITS URGENT!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>alaba81</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456807/my-assignment</guid>
		</item>
				<item>
			<title>Only works in Firefox but not IE (6,8)</title>
			<link>http://www.daniweb.com/web-development/php/threads/456806/only-works-in-firefox-but-not-ie-68</link>
			<pubDate>Mon, 17 Jun 2013 03:40:24 +0000</pubDate>
			<description>This tiny captcha code is kind of weird. Only works in Firefox but not IE (6,8) Hope someone may figure it out what's going on? Or you may download this code from Author. (demo included) [Click Here](http://codefuture.co.uk/projects/captcha/) exmple.php &lt;?php if(isset($_POST['setCaptcha'])){ include_once('./captcha/cf.captcha.php'); if(!check_captcha($_POST['setCaptcha'])){ echo 'CAPTCHA CHECK: &lt;span style=&quot;color:red&quot;&gt;'.$error_captcha.'&lt;/span&gt;'; //exit(); }else{ echo ...</description>
			<content:encoded><![CDATA[ <p>This tiny captcha code is kind of weird.   Only works in Firefox but not IE (6,8)<br />
Hope someone may figure it out what's going on?<br />
Or you may download this code from Author.  (demo included)<br /><a href="http://codefuture.co.uk/projects/captcha/" rel="nofollow">Click Here</a></p>

<p>exmple.php</p>

<pre><code>&lt;?php
    if(isset($_POST['setCaptcha'])){
        include_once('./captcha/cf.captcha.php');
        if(!check_captcha($_POST['setCaptcha'])){
            echo 'CAPTCHA CHECK: &lt;span style="color:red"&gt;'.$error_captcha.'&lt;/span&gt;';
            //exit();
        }else{
            echo 'CAPTCHA CHECK: &lt;span style="color:green"&gt;Correct&lt;/span&gt;';
            //proceed
        }
    }
?&gt;

&lt;form  method="post" action="" class="center"&gt;
    &lt;br/&gt;&lt;img id="captcha_img" src="./captcha/cf.captcha.php?img=&lt;?=time();?&gt;" /&gt;&lt;br/&gt;
    &lt;a href="#" onclick="document.getElementById('captcha_img').src = './captcha/cf.captcha.php?img=' + Math.random(); return false"&gt;Reload Captcha&lt;/a&gt;&lt;br/&gt;
    &lt;label for="setCaptcha"&gt;Verification code: &lt;/label&gt;&lt;br/&gt;
    &lt;input name="setCaptcha" type="text" id="setCaptcha" size="24" class="textbox" /&gt;&lt;br/&gt;&lt;br/&gt;
    &lt;input type="submit" value="Send" /&gt;&lt;br/&gt;
&lt;/form&gt;
</code></pre>

<p>cf.captcha.php</p>

<pre><code>&lt;?php
//
//   CF Captcha v0.9
//   -------------------------------
//
//   Author:    codefuture.co.uk
//   Version:   0.9
//   Date:      28-Apr-10
//
//   download the latest version from - <a href="http://codefuture.co.uk/projects/captcha/" rel="nofollow">http://codefuture.co.uk/projects/captcha/</a>
//   Copyright (c) 2010 codefuture.co.uk
//
//////////////////////////////////////////////////////////////////////////////////////////////////

//debug
//  error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

//////////////////////////////////////////////////////////////////////////////////////////////////
// settings

// Cookie timer
    define('COOKIE_TIMER', 5 );

// Cookie Salting Pick a random code
    define('SALTING', 'aeb1021e49282375948ac10004c2eb53ef9070e0');

// check_captcha() Error Messages
    define('ERROR_MESSAGE_CAPTCHA',             'Verification code can\'t be blank');
    define('ERROR_MESSAGE_CAPTCHA_INVALID',     'Verification code is invalid');
    define('ERROR_MESSAGE_CAPTCHA_TIMED_OUT',   'Sorry the verification code is only valid for '.COOKIE_TIMER.' minutes');
    define('ERROR_MESSAGE_CAPTCHA_COOKIE',      'No captcha cookie given. Make sure cookies are enabled.');


//////////////////////////////////////////////////////////////////////////////////////////////////
// Check Captcha


/**
 * Holds any errors from check_captcha
 * you could use it like this
 * &lt;div style="color:red"&gt;&lt;?=$error_captcha;?&gt;&lt;/div&gt;
 */
    $captcha_error = null;

/**
 * check_captcha()
 *
 * @param string $captcha
 * @param boolean $timer (on|off)(true|false)
 * @return boolean
 */
function check_captcha($captcha,$timer = true){
    global $error_captcha;

    $captcha = htmlspecialchars(stripslashes(trim($captcha)));

    if(empty($captcha)){
        $error_captcha = ERROR_MESSAGE_CAPTCHA;
        remove_cookie();
        return false;

    }elseif (isset($_COOKIE['Captcha']) ){
        list($Hash, $Time) = explode('.', $_COOKIE['Captcha']);
        if ( md5(SALTING.$captcha.$_SERVER['REMOTE_ADDR'].$Time) != $Hash ){
            $error_captcha = ERROR_MESSAGE_CAPTCHA_INVALID;
            remove_cookie();
            return false;
        }elseif( (time() - COOKIE_TIMER*60) &gt; $Time &amp;&amp; $timer){
            $error_captcha = ERROR_MESSAGE_CAPTCHA_TIMED_OUT;
            remove_cookie();
            return false;
        }

    }else{
        $error_captcha = ERROR_MESSAGE_CAPTCHA_COOKIE;
        return false;
    }

    return true;
}

function remove_cookie(){
    $domain = $_SERVER['HTTP_HOST'];
    if ( strtolower( substr($domain, 0, 4) ) == 'www.' )
        $domain = substr($domain, 4);
    if ( substr($domain, 0, 1) != '.' )
        $domain = '.'.$domain;
    setcookie('Captcha', '', time() - 3600, '/',$domain);
    unset($_COOKIE['Captcha']); 
}


//////////////////////////////////////////////////////////////////////////////////////////////////
// make image

/**
 * the time() at the end of the address is just to keep the image from being cached
 * &lt;img id="captcha_img" src="./captcha/cf.captcha.php?img=&lt;?=time();?&gt;" /&gt;
 *
 */
    if(isset($_GET['img'])){
        $capt = new captcha;
//      $capt-&gt;transparent_bg(false);
//      $capt-&gt;bg_color('cccccc');
        $capt-&gt;display();
        exit();
    }

//////////////////////////////////////////////////////////////////////////////////////////////////
// captcha Class


class captcha {

    private $UserString;
    private $transparent = true;
    private $bg_color = 'ffffff';

    private function font(){
        switch(rand(1,2)){
            case 1: return dirname(__FILE__).'/font/arial.ttf'; break;
            case 2: return dirname(__FILE__).'/font/verdana.ttf'; break;
            default : return dirname(__FILE__).'/font/arial.ttf'; break; 
        }
    }

    public function transparent_bg($var){$this-&gt;transparent = ($var != true ? false : true);}
    public function bg_color($var){$this-&gt;bg_color = $var;}

    private function LoadPNG(){
        $im = imagecreatetruecolor(130, 35);
        $rgb = $this-&gt;html2rgb($this-&gt;bg_color);
        $bgcolor = imagecolorallocate($im, $rgb[0], $rgb[1], $rgb[2]);
        imagefill($im, 0, 0, $bgcolor);
        if($this-&gt;transparent)imagecolortransparent($im, $bgcolor);
        return $im;
    }

    private function task_string(){
        $image = $this-&gt;LoadPNG(); 
        $string_a = array("a","b","c","d","e","f","g","h","j","k",
                          "m","n","p","r","s","t","u","v","w","x",
                          "y","z","2","3","4","5","6","7","8","9");
        $x = 0;
        for($i = 0; $i &lt; 5; $i++){
            $x += rand(16,18);
            $temp = $string_a[rand(0,29)];
            $this-&gt;UserString .= $temp;
            imagettftext($image, $this-&gt;rand_fontsize(), $this-&gt;rand_angle(), $x, $this-&gt;rand_Y(), $this-&gt;rand_color($image), $this-&gt;font(), $temp);
        }
        return $image;
    }

    private function rand_color($im){return imagecolorallocate($im, rand(0,155), rand(0,155), rand(0,155));}
    private function rand_angle(){return rand(-15,15);}
    private function rand_Y(){return rand(25,30);}
    private function rand_fontsize(){return rand(14,20);}

    private function task_sum(){
        $image  = $this-&gt;LoadPNG(); 
        $x      = rand(10,20);
        $sum    = rand(1,3);
        $number1= $sum != 3 ? rand(10,99) : rand(1,9);
        $number2= rand(1,9);
        imagettftext($image, $this-&gt;rand_fontsize(), $this-&gt;rand_angle(), $x, $this-&gt;rand_Y(), $this-&gt;rand_color($image), $this-&gt;font(),($sum ==3?'':substr($number1, 0,1)));
        imagettftext($image, $this-&gt;rand_fontsize(), $this-&gt;rand_angle(), ($x += 15), $this-&gt;rand_Y(), $this-&gt;rand_color($image), $this-&gt;font(),($sum ==3?$number1:substr($number1, -1)) );
        imagettftext($image, $this-&gt;rand_fontsize(), 0, ($x += 20), $this-&gt;rand_Y(), $this-&gt;rand_color($image), $this-&gt;font(),($sum ==1?'+':($sum ==2?'-':'*')));
        imagettftext($image, $this-&gt;rand_fontsize(), $this-&gt;rand_angle(), ($x += 18), $this-&gt;rand_Y(), $this-&gt;rand_color($image), $this-&gt;font(), $number2);
        imagettftext($image, $this-&gt;rand_fontsize(), $this-&gt;rand_angle(), ($x += 18), $this-&gt;rand_Y(), $this-&gt;rand_color($image), $this-&gt;font(),'=');
        imagettftext($image, $this-&gt;rand_fontsize(), $this-&gt;rand_angle(), ($x += 18), $this-&gt;rand_Y(), $this-&gt;rand_color($image), $this-&gt;font(),'?');
        $this-&gt;UserString = ($sum ==1?$number1+$number2:($sum == 2?$number1-$number2:$number1*$number2));
        return $image; 
    }

    private function cookie(){
        $time = time();
        $domain = $_SERVER['HTTP_HOST'];
        if ( strtolower( substr($domain, 0, 4) ) == 'www.' )
            $domain = substr($domain, 4);   // Fix the domain to accept domains with and without 'www.'. 
        if ( substr($domain, 0, 1) != '.' )
            $domain = '.'.$domain;  // Add the dot prefix to ensure compatibility with subdomains
        setcookie('Captcha', md5(SALTING.$this-&gt;UserString.$_SERVER['REMOTE_ADDR'].$time).'.'.$time, null, '/',$domain);
    }

    public function display(){
        switch(rand(1,2)){
            case 1:  $image = $this-&gt;task_string(); break;
            case 2:  $image = $this-&gt;task_sum();    break;
            default: $image = $this-&gt;task_sum();    break;
        }

        $this-&gt;cookie();
        header("Content-type: image/png");
        imagepng($image);
    }

    private function html2rgb($color){
        if ($color[0] == '#')
            $color = substr($color, 1);

        if (strlen($color) == 6)
            list($r, $g, $b) = array($color[0].$color[1],$color[2].$color[3],$color[4].$color[5]);
        elseif (strlen($color) == 3)
            list($r, $g, $b) = array($color[0].$color[0], $color[1].$color[1], $color[2].$color[2]);
        else
            return false;

        $r = hexdec($r); $g = hexdec($g); $b = hexdec($b);

        return array($r, $g, $b);
    }
}

?&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>dansonyun</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456806/only-works-in-firefox-but-not-ie-68</guid>
		</item>
				<item>
			<title>How to configure Squid with Filezilla?</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/456805/how-to-configure-squid-with-filezilla</link>
			<pubDate>Mon, 17 Jun 2013 03:39:08 +0000</pubDate>
			<description>I installed squid proxy server for windows. I want to connect to the FTP server via proxy. Can somebody provide me the proper configuration for both squid and filezilla?</description>
			<content:encoded><![CDATA[ <p>I installed squid proxy server for windows.</p>

<p>I want to connect to the FTP server via proxy. Can somebody provide me the proper configuration for both squid and filezilla?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>pmark019</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/456805/how-to-configure-squid-with-filezilla</guid>
		</item>
				<item>
			<title>How to configure squid proxy server?</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/456804/how-to-configure-squid-proxy-server</link>
			<pubDate>Mon, 17 Jun 2013 01:57:40 +0000</pubDate>
			<description>My OS is windows 7. Can somebody please teach me how to configure squid in this kind of scenario. I have a filezilla ftp server running in 127.0.0.1:14147 I want to make a proxy server (eg. 10.191.16.5) where in when somebody want to uplaod a file to my filezilla ftp ...</description>
			<content:encoded><![CDATA[ <p>My OS is windows 7.</p>

<p>Can somebody please teach me how to configure squid in this kind of scenario.</p>

<p>I have a filezilla ftp server running in 127.0.0.1:14147</p>

<p>I want to make a proxy server (eg. 10.191.16.5) where in when somebody want to uplaod a file to my filezilla ftp server, he will pass through 10.191.16.5.</p>

<p>SENDER -&gt; PROXY (10.191.16.5) -&gt; FTP SERVER (127.0.0.1)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>pmark019</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/456804/how-to-configure-squid-proxy-server</guid>
		</item>
				<item>
			<title>discussion thread</title>
			<link>http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/456803/discussion-thread</link>
			<pubDate>Mon, 17 Jun 2013 01:51:50 +0000</pubDate>
			<description>how to start a visual basic 6.0</description>
			<content:encoded><![CDATA[ <p>how to start a visual basic 6.0</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>alaya</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/456803/discussion-thread</guid>
		</item>
				<item>
			<title>login Error SQL Server Management 2008</title>
			<link>http://www.daniweb.com/web-development/databases/threads/456802/login-error-sql-server-management-2008</link>
			<pubDate>Mon, 17 Jun 2013 01:36:55 +0000</pubDate>
			<description>Group, I may have made a huge mistake repairing SQL Server Management 2008 Express. Here are the details: I'm running Windows 7 on a Toshiba Laptop. SQL Manager 2008 had been installed and was working fine. I had some registry errors popping up, so I ran ARO 2013 to do ...</description>
			<content:encoded><![CDATA[ <p>Group,</p>

<p>I may have made a huge mistake repairing SQL Server Management 2008 Express.  Here are the details:</p>

<p>I'm running Windows 7 on a Toshiba Laptop.<br />
SQL Manager 2008 had been installed and was working fine.<br />
I had some registry errors popping up, so I ran ARO 2013 to do a clean up.  Doing this caused SQL Server not to open.<br />
I downloaded and ran the repair portion of SQL Server Mngmnt.</p>

<p>This does allow the program to startup.  However I'm getting a error at login that says "A network-related or specific-instance error occured while establishing a connection to SQL Server was not found or was not accessible."</p>

<p>I've tried to open with both Windows Authentication and the Server Authentication with the password I had created orginally.  I still can't get this to open.</p>

<p>Can someone help??</p>

<p>In advance, thanks for your help.</p>

<p>Don</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/16">Databases</category>
			<dc:creator>doncwilson_1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/threads/456802/login-error-sql-server-management-2008</guid>
		</item>
				<item>
			<title>XSL Processor Stack has Overflowed</title>
			<link>http://www.daniweb.com/software-development/xml-xslt-and-xpath/threads/456801/xsl-processor-stack-has-overflowed</link>
			<pubDate>Mon, 17 Jun 2013 00:32:36 +0000</pubDate>
			<description>Not entirely sure what's happening. I've managed to narrow down the template where this error is occurring &lt;xsl:template match=&quot;Application/Comment&quot;&gt; &lt;xsl:copy&gt; &lt;xsl:choose&gt; &lt;xsl:when test=&quot;string($ImportXML/Application/Comment)&quot;&gt; &lt;xsl:apply-templates select=&quot;$ImportXML/Application/Comment/text()&quot;/&gt; &lt;/xsl:when&gt; &lt;xsl:otherwise&gt; &lt;xsl:apply-templates select=&quot;.&quot;/&gt; &lt;/xsl:otherwise&gt; &lt;/xsl:choose&gt; &lt;/xsl:copy&gt; &lt;/xsl:template&gt; $ImportXML/Application/Comment = &quot;test&quot;. Essentially, I'm trying to update my document so that the XPath Application/Comment is now ...</description>
			<content:encoded><![CDATA[ <p>Not entirely sure what's happening. I've managed to narrow down the template where this error is occurring</p>

<pre><code class="language-xml">&lt;xsl:template match="Application/Comment"&gt;
    &lt;xsl:copy&gt;
        &lt;xsl:choose&gt;
            &lt;xsl:when test="string($ImportXML/Application/Comment)"&gt;
                &lt;xsl:apply-templates select="$ImportXML/Application/Comment/text()"/&gt;
            &lt;/xsl:when&gt;
            &lt;xsl:otherwise&gt;
                &lt;xsl:apply-templates select="."/&gt;
            &lt;/xsl:otherwise&gt;
        &lt;/xsl:choose&gt;
    &lt;/xsl:copy&gt;
&lt;/xsl:template&gt;
</code></pre>

<p>$ImportXML/Application/Comment = "test". Essentially, I'm trying to update my document so that the XPath Application/Comment is now populated with "test". It is currently a blank element with no text or value but when I run the stylesheet over the xml, I am left with that error message</p>

<p>Can anyone help? Would be greatly appreciated.</p>

<p>By the way, I am using XSL version 1.0</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/xml-xslt-and-xpath/134">XML, XSLT and XPATH</category>
			<dc:creator>f_atencia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/xml-xslt-and-xpath/threads/456801/xsl-processor-stack-has-overflowed</guid>
		</item>
				<item>
			<title>Insert into sparse matrix as linked list</title>
			<link>http://www.daniweb.com/software-development/c/threads/456800/insert-into-sparse-matrix-as-linked-list</link>
			<pubDate>Sun, 16 Jun 2013 22:21:19 +0000</pubDate>
			<description>Can someone coment this code in detail, I can't quite understand algorithm behind this? typedef struct node{ int x; int y; int value; struct node* row; struct node* col; }node; typedef struct matrix{ int height; int width; node** rowList; node** colList; }matrix; void insert(matrix** M, int row_index, int col_index, int ...</description>
			<content:encoded><![CDATA[ <p>Can someone coment this code in detail, I can't quite understand algorithm behind this?</p>

<pre><code class="language-c">typedef struct node{
int x;
int y;
int value;
struct node* row;
struct node* col;
}node;

typedef struct matrix{
int height;
int width; 
node** rowList;
node** colList;
}matrix;

void insert(matrix** M, int row_index, int col_index, int value)
{
    node* currNode=(node*)malloc(sizeof(node));
    currNode-&gt;x=row_index;
    currNode-&gt;y=col_index;
    currNode-&gt;value=value;

    if ((*M)-&gt;rowList[row_index] == NULL) { 
        currNode-&gt;row = NULL;
        (*M)-&gt;rowList[row_index] = currNode;
    }
    else if ((*M)-&gt;rowList[row_index]-&gt;y &gt; col_index) {
        currNode-&gt;col = (*M)-&gt;rowList[row_index];
        (*M)-&gt;rowList[row_index] = currNode;
    }
    else if ((*M)-&gt;rowList[row_index]-&gt;y &lt; col_index) { 
        node* rowptr = (node*)malloc(sizeof(node));
        rowptr = (*M)-&gt;rowList[row_index];
        while(rowptr-&gt;col!=NULL&amp;&amp;rowptr-&gt;col-&gt;y &lt; col_index)
            rowptr=rowptr-&gt;col;     

        currNode-&gt;col=rowptr-&gt;col;
        rowptr-&gt;col=currNode;

    }

    if ((*M)-&gt;colList[col_index] == NULL) { 
        currNode-&gt;col = NULL;
        (*M)-&gt;colList[col_index] = currNode;
    }
    else
    if ((*M)-&gt;colList[col_index]-&gt;x &gt; row_index) { 
        currNode-&gt;row = (*M)-&gt;colList[col_index];
        (*M)-&gt;colList[col_index] = currNode;
    }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>suncica2222</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/456800/insert-into-sparse-matrix-as-linked-list</guid>
		</item>
				<item>
			<title>debugging css in IE8</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/456799/debugging-css-in-ie8</link>
			<pubDate>Sun, 16 Jun 2013 22:18:12 +0000</pubDate>
			<description>I am trying to debug some CSS in IE8 and the item I need to look at involes either hover or focus. The CSS has to be edited in IE8 for it is filters for IE browsers to achieve gradients. These filters are not showing in Firebug under FF or ...</description>
			<content:encoded><![CDATA[ <p>I am trying to debug some CSS in IE8 and the item I need to look at involes either hover or focus.  The CSS has to be edited in IE8 for it is filters for IE browsers to achieve gradients.  These filters are not showing in Firebug under FF or Chrome.</p>

<p>Attempts to examine this by using the Developer tools under F12 or the Debug Bar add-on have not been succesful for examining what is being applied in a hover state.  Is there an option such as the one in Firebug to lock the item in that state?</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>dwlamb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/456799/debugging-css-in-ie8</guid>
		</item>
				<item>
			<title>How do I access XML data in WebBrowser control?</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/456798/how-do-i-access-xml-data-in-webbrowser-control</link>
			<pubDate>Sun, 16 Jun 2013 22:09:01 +0000</pubDate>
			<description>Thanks to diafol for putting me wise to the imdb api. Unfortunately, due to my ignorance of all things related to web programming I am stuck. I fetch my information via the following Dim url As String = &quot;http://mymovieapi.com/?title=@title&amp;type=xml&amp;plot=full&amp;episode=0&amp;limit=1&amp;year=@year&amp;yg=1&amp;mt=M&amp;lang=en-US&amp;offset=&amp;aka=simple&amp;release=simple&amp;business=0&amp;tech=0&quot; url = Replace(url, &quot;@title&quot;, &quot;Star+Trek&quot;) url = Replace(url, &quot;@year&quot;, &quot;1979&quot;) WebBrowser1.Navigate(url) ...</description>
			<content:encoded><![CDATA[ <p>Thanks to diafol for putting me wise to the imdb api. Unfortunately, due to my ignorance of all things related to web programming I am stuck. I fetch my information via the following</p>

<pre><code class="language-vb">Dim url As String = "<a href="http://mymovieapi.com/?title=@title&amp;type=xml&amp;plot=full&amp;episode=0&amp;limit=1&amp;year=@year&amp;yg=1&amp;mt=M&amp;lang=en-US&amp;offset=&amp;aka=simple&amp;release=simple&amp;business=0&amp;tech=0" rel="nofollow">http://mymovieapi.com/?title=@title&amp;type=xml&amp;plot=full&amp;episode=0&amp;limit=1&amp;year=@year&amp;yg=1&amp;mt=M&amp;lang=en-US&amp;offset=&amp;aka=simple&amp;release=simple&amp;business=0&amp;tech=0</a>"

url = Replace(url, "@title", "Star+Trek")
url = Replace(url, "@year", "1979")

WebBrowser1.Navigate(url)
</code></pre>

<p>I fetch the result in the Navigated event handler as follows</p>

<pre><code class="language-vb">Dim result As String = WebBrowser1.DocumentText
</code></pre>

<p>That's when I run into problems. When I display the value of <strong>result</strong> in a textbox I get</p>

<pre><code class="language-vb">&lt;HTML&gt;&lt;HEAD&gt;
&lt;STYLE&gt;BODY{font:x-small 'Verdana';margin-right:1.5em}
.c{cursor:hand}
.b{color:red;font-family:'Courier New';font-weight:bold;text-decoration:none}
.e{margin-left:1em;text-indent:-1em;margin-right:1em}
.k{margin-left:1em;text-indent:-1em;margin-right:1em}
.t{color:#990000}
.xt{color:#990099}
.ns{color:red}
.dt{color:green}
.m{color:blue}
.tx{font-weight:bold}
.db{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;border-left:1px solid #CCCCCC;font:small Courier}
.di{font:small Courier}
.d{color:blue}
.pi{color:blue}
.cb{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;font:small Courier;color:#888888}
.ci{font:small Courier;color:#888888}
PRE{margin:0px;display:inline}&lt;/STYLE&gt;
&lt;SCRIPT&gt;&lt;!--
function f(e){
if (e.className=="ci"){if (e.children(0).innerText.indexOf("\n")&gt;0) fix(e,"cb");}
if (e.className=="di"){if (e.children(0).innerText.indexOf("\n")&gt;0) fix(e,"db");}
e.id="";
}
function fix(e,cl){
e.className=cl;
e.style.display="block";
j=e.parentElement.children(0);
j.className="c";
k=j.children(0);
k.style.visibility="visible";
k.href="#";
}
function ch(e){
mark=e.children(0).children(0);
if (mark.innerText=="+"){
mark.innerText="-";
for (var i=1;i&lt;e.children.length;i++)
e.children(i).style.display="block";
}
else if (mark.innerText=="-"){
mark.innerText="+";
for (var i=1;i&lt;e.children.length;i++)
e.children(i).style.display="none";
}}
function ch2(e){
mark=e.children(0).children(0);
contents=e.children(1);
if (mark.innerText=="+"){
mark.innerText="-";
if (contents.className=="db"||contents.className=="cb")
contents.style.display="block";
else contents.style.display="inline";
}
else if (mark.innerText=="-"){
mark.innerText="+";
contents.style.display="none";
}}
function cl(){
e=window.event.srcElement;
if (e.className!="c"){e=e.parentElement;if (e.className!="c"){return;}}
e=e.parentElement;
if (e.className=="e") ch(e);
if (e.className=="k") ch2(e);
}
function ex(){}
function h(){window.status=" ";}
document.onclick=cl;
--&gt;&lt;/SCRIPT&gt;
&lt;/HEAD&gt;
&lt;BODY class="st"&gt;&lt;DIV class="e"&gt;
&lt;SPAN class="b"&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;SPAN class="m"&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN class="pi"&gt;xml version="1.0" encoding="utf-8" &lt;/SPAN&gt;&lt;SPAN class="m"&gt;?&amp;gt;&lt;/SPAN&gt;
&lt;/DIV&gt;
&lt;DIV class="e"&gt;
&lt;DIV class="c" STYLE="margin-left:1em;text-indent:-2em"&gt;&lt;A href="#" onclick="return false" onfocus="h()" class="b"&gt;-&lt;/A&gt;
&lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;IMDBDocumentList&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;DIV class="e"&gt;
&lt;DIV class="c" STYLE="margin-left:1em;text-indent:-2em"&gt;&lt;A href="#" onclick="return false" onfocus="h()" class="b"&gt;-&lt;/A&gt;
&lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;item&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;DIV class="e"&gt;&lt;DIV STYLE="margin-left:1em;text-indent:-2em"&gt;
&lt;SPAN class="b"&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;rating&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tx"&gt;6.3&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;rating&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV class="e"&gt;&lt;DIV STYLE="margin-left:1em;text-indent:-2em"&gt;
&lt;SPAN class="b"&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;rating_count&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tx"&gt;37814&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;rating_count&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV class="e"&gt;&lt;DIV STYLE="margin-left:1em;text-indent:-2em"&gt;
&lt;SPAN class="b"&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;year&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tx"&gt;1979&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="t"&gt;year&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV class="e"&gt;&lt;DIV STYLE="margin-left:1em;text-indent:-2em"&gt;
&lt;SPAN class="b"&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;SPAN class="m"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="m"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tx"&gt;An alien phenomenon of unprecedented size and power is approaching Earth, destroying everything in its path. The only starship in range is the USS Enterprise--still in drydock after a ma
</code></pre>

<p>However, the actual text displayed in the WebBrowser control (which is what I want for parsing) is</p>

<pre><code class="language-vb">  &lt;?xml version="1.0" encoding="utf-8" ?&gt; 
- &lt;IMDBDocumentList&gt;
- &lt;item&gt;
  &lt;rating&gt;6.3&lt;/rating&gt; 
  &lt;rating_count&gt;37814&lt;/rating_count&gt; 
  &lt;year&gt;1979&lt;/year&gt; 
  &lt;plot&gt;An alien phenomenon of unprecedented size and power is approaching Earth, destroying everything in its path. The only starship in range is the USS Enterprise--still in drydock after a major overhaul. As Captain Decker readies his ship and his crew to face this menace, the legendary Admiral James T. Kirk arrives with orders to take command of the Enterprise and intercept the intruder. But it has been three years since Kirk last commanded the Enterprise on its historic five year mission... is he up to the task of saving the Earth?&lt;/plot&gt; 
- &lt;genres&gt;
  &lt;item&gt;Action&lt;/item&gt; 
  &lt;item&gt;Adventure&lt;/item&gt; 
  &lt;item&gt;Mystery&lt;/item&gt; 
  &lt;item&gt;Sci-Fi&lt;/item&gt; 
  &lt;/genres&gt;
  &lt;rated&gt;G&lt;/rated&gt; 
  &lt;title&gt;Star Trek: The Motion Picture&lt;/title&gt; 
  &lt;imdb_url&gt;<a href="http://www.imdb.com/title/tt0079945/" rel="nofollow">http://www.imdb.com/title/tt0079945/</a>&lt;/imdb_url&gt; 
- &lt;directors&gt;
  &lt;item&gt;Robert Wise&lt;/item&gt; 
  &lt;/directors&gt;
- &lt;writers&gt;
  &lt;item&gt;Gene Roddenberry&lt;/item&gt; 
  &lt;item&gt;Alan Dean Foster&lt;/item&gt; 
  &lt;item&gt;and 1 more credit&lt;/item&gt; 
  &lt;/writers&gt;
- &lt;actors&gt;
  &lt;item&gt;William Shatner&lt;/item&gt; 
  &lt;item&gt;Leonard Nimoy&lt;/item&gt; 
  &lt;item&gt;DeForest Kelley&lt;/item&gt; 
  &lt;item&gt;James Doohan&lt;/item&gt; 
  &lt;item&gt;George Takei&lt;/item&gt; 
  &lt;item&gt;Majel Barrett&lt;/item&gt; 
  &lt;item&gt;Walter Koenig&lt;/item&gt; 
  &lt;item&gt;Nichelle Nichols&lt;/item&gt; 
  &lt;item&gt;Persis Khambatta&lt;/item&gt; 
  &lt;item&gt;Stephen Collins&lt;/item&gt; 
  &lt;item&gt;Grace Lee Whitney&lt;/item&gt; 
  &lt;item&gt;Mark Lenard&lt;/item&gt; 
  &lt;item&gt;Billy Van Zandt&lt;/item&gt; 
  &lt;item&gt;Roger Aaron Brown&lt;/item&gt; 
  &lt;item&gt;Gary Faga&lt;/item&gt; 
  &lt;/actors&gt;
  &lt;plot_simple&gt;When a destructive space entity is spotted approaching Earth, Admiral Kirk resumes command of the Starship Enterprise in order to intercept, examine and hopefully stop it.&lt;/plot_simple&gt; 
  &lt;type&gt;M&lt;/type&gt; 
  &lt;poster&gt;<a href="http://ia.media-imdb.com/images/M/MV5BMTQ5MzM5ODk5OV5BMl5BanBnXkFtZTcwNDY1NDYyMQ@@._V1._SY317_.jpg" rel="nofollow">http://ia.media-imdb.com/images/M/MV5BMTQ5MzM5ODk5OV5BMl5BanBnXkFtZTcwNDY1NDYyMQ@@._V1._SY317_.jpg</a>&lt;/poster&gt; 
  &lt;imdb_id&gt;tt0079945&lt;/imdb_id&gt; 
- &lt;also_known_as&gt;
  &lt;item&gt;Star Trek: The Motion Picture - The Director's Edition&lt;/item&gt; 
  &lt;/also_known_as&gt;
- &lt;language&gt;
  &lt;item&gt;English&lt;/item&gt; 
  &lt;item&gt;Klingon&lt;/item&gt; 
  &lt;/language&gt;
- &lt;country&gt;
  &lt;item&gt;USA&lt;/item&gt; 
  &lt;/country&gt;
  &lt;release_date&gt;19791207&lt;/release_date&gt; 
  &lt;filming_locations&gt;Paramount Studios - 5555 Melrose Avenue, Hollywood, Los Angeles, California, USA&lt;/filming_locations&gt; 
- &lt;runtime&gt;
  &lt;item&gt;132 min&lt;/item&gt; 
  &lt;item&gt;USA: 136 min (director's cut)&lt;/item&gt; 
  &lt;item&gt;USA: 143 min (TV version)&lt;/item&gt; 
  &lt;/runtime&gt;
  &lt;/item&gt;
  &lt;/IMDBDocumentList&gt;
</code></pre>

<p>How do I get at the actual WebBrowser XML data? Bonus question - why is <strong>result</strong> truncated to 4095 characters (a very suspicious number, indeed)?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Reverend Jim</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/456798/how-do-i-access-xml-data-in-webbrowser-control</guid>
		</item>
				<item>
			<title>How to add JRadio Button at run time</title>
			<link>http://www.daniweb.com/software-development/java/threads/456797/how-to-add-jradio-button-at-run-time</link>
			<pubDate>Sun, 16 Jun 2013 21:02:00 +0000</pubDate>
			<description>I am using Netbeans 7.1 and MySQL. I need 1 column in jtable which will contain jradiobutton and user can select any 1 row's jradiobutton Please refer the fig for detail. After selecting RB further processing will be done on jbutton click event. ![64496cca6997d07cf995950d67a3e3f0](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8yLzY0NDk2Y2NhNjk5N2QwN2NmOTk1OTUwZDY3YTNlM2YwLkpQRw%3D%3D/500 &quot;64496cca6997d07cf995950d67a3e3f0&quot;) Here is the code - ...</description>
			<content:encoded><![CDATA[ <p>I am using Netbeans 7.1 and MySQL. I need 1 column in jtable which will contain jradiobutton and user can select any 1 row's jradiobutton Please refer the fig for detail. After selecting RB further processing will be done on jbutton click event.<br /><img src="/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8yLzY0NDk2Y2NhNjk5N2QwN2NmOTk1OTUwZDY3YTNlM2YwLkpQRw%3D%3D/500" alt="64496cca6997d07cf995950d67a3e3f0" title="64496cca6997d07cf995950d67a3e3f0" /></p>

<p>Here is the code -</p>

<pre><code class="language-java">    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        final Object[] columnNames=new String[] {"Date","Flight Name","Departure Time","BC Seats Available","XC Seats Available","EC Seats Available"};
        DefaultTableModel dtm=new DefaultTableModel(columnNames,0);        
        String origin=jComboBox3.getSelectedItem().toString();
        String target=jComboBox4.getSelectedItem().toString();
        String fclass=jComboBox1.getSelectedItem().toString();
        String search = "";
        Date dt;

        //Economy Class Processing

        try
        {
           smt=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
           rs = smt.executeQuery(sql);
           int i = 0;
           SimpleDateFormat sdf= new SimpleDateFormat("dd-MM-yyyy");
           boolean empty=true;
           String var1="", var2="", var3="", var4="", var5="";
           while(rs.next())
           {
               empty=false;
               var1=rs.getString(1);
               strdtver1=(String) sdf.format(rs.getDate(2));
               var2=Integer.toString(rs.getInt(3));
               var3=Integer.toString(rs.getInt(4));
               var4=Integer.toString(rs.getInt(5));
               var5=rs.getString(6);
               dtm.addRow(new Vector());
               dtm.setValueAt(strdtver1, i, 0);
               dtm.setValueAt(var1, i, 1);
               dtm.setValueAt(var5, i, 2);
               dtm.setValueAt(var2, i, 3);
               dtm.setValueAt(var3, i, 4);
               dtm.setValueAt(var4, i, 5);
               i++;

           }
           if(empty)
           {
               dtm.addRow(new Vector());
               strdtver2=(String) sdf.format(jDateChooser1.getDate());
               dtm.setValueAt(strdtver2, i, 0);
               dtm.setValueAt("No Flights", i, 1);
               dtm.setValueAt("No Flights", i, 2);
               dtm.setValueAt("0", i, 3);
               dtm.setValueAt("0", i, 4);
               dtm.setValueAt("0", i, 5);
           }
           jTable1.setModel(dtm);
           TableColumnModel m=jTable1.getColumnModel();
           TableColumn col=m.getColumn(3);
           TableColumn col1=m.getColumn(4);
           //List&lt;TableColumn&gt; removed=col;
           //removed.add(col);
           m.removeColumn(col);
           m.removeColumn(col1);
        }
        catch(Exception ex)
        {
            System.out.println(ex.getMessage());
            ex.printStackTrace();
        }
    }
</code></pre>

<p>I simply want to add JRadioButton and user can select any 1 row JRadioButto,</p>

<p>Thank you all in advance for any suggestion and guidance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>vishalonne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456797/how-to-add-jradio-button-at-run-time</guid>
		</item>
				<item>
			<title>UTF-8 to database</title>
			<link>http://www.daniweb.com/web-development/jsp/threads/456796/utf-8-to-database</link>
			<pubDate>Sun, 16 Jun 2013 20:30:07 +0000</pubDate>
			<description>Hello I have a form that a user insert some input form accept-charset='UTF-8' action=&quot;addcommentcheck.jsp&quot; method=&quot;post&quot; id=&quot;addcommentid&quot;&gt; ... &lt;/form&gt; and at addcommentcheck.jsp i do request.setCharacterEncoding(&quot;UTF-8&quot;); But when i try to insert it to database the only thing that i insert is ????? When i show to the user the input i ...</description>
			<content:encoded><![CDATA[ <p>Hello<br />
I have a form that a user insert some input</p>

<pre><code>form accept-charset='UTF-8' action="addcommentcheck.jsp" method="post" id="addcommentid"&gt;
...
&lt;/form&gt;
</code></pre>

<p>and at addcommentcheck.jsp i do<br />
request.setCharacterEncoding("UTF-8");<br />
But when i try to insert it to database the only thing that i insert is ????? When i show to the user the input i can see the correct input but when i insert to database i have the ??? What i am doing wrong?<br />
Thank you very much</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/jsp/24">JSP</category>
			<dc:creator>xxmp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/jsp/threads/456796/utf-8-to-database</guid>
		</item>
				<item>
			<title>calculate carbon footprint program</title>
			<link>http://www.daniweb.com/software-development/java/threads/456795/calculate-carbon-footprint-program</link>
			<pubDate>Sun, 16 Jun 2013 20:26:53 +0000</pubDate>
			<description>Chaps, I have just read about java interfaces and there is a nice exercise in my book that I would like to attempt, so I was wondering if you could help me to identify the best way to go about it. Here's the exercise: &quot;Create 3 small classes unrelated by ...</description>
			<content:encoded><![CDATA[ <p>Chaps, I have just read about java interfaces and there is a nice exercise in my book that I would like to attempt, so I was wondering if you could help me to identify the best way to go about it. Here's the exercise:<br />
"Create 3 small classes unrelated by inheritance - classes <code>Building</code>, <code>Car</code> and <code>Bicycle</code>. Give each class some unique appropriate attributes and  behaviours that it doesn't have in common with other classes. Write an interface <code>CarbonFootprint</code> with a <code>getCarbonFootprint</code> method. Have each of your classes implement that interface so that its <code>getCarbonFootprint</code> method calculates an appropriate carbon foorptint for that class (check out a few sites that explains how to calculate carbon footprint).<br />
Write an application that creates objects oh each of the 3 classes, places references to those objects in <code>ArrayLists&lt;CarbonFootprint&gt;</code>, then iterates through the <code>ArrayLists</code>, polymorphycally invoking each object's <code>getCarbonFootprint</code> method. For each object print some identifying information and the object's carbon footprint".</p>

<p>Now, first of all, let me say that I don't really care about the accuracy of the carbon footprint calculation, because I am not going to build an application that somebody will actually use (there are plenty of online calculators for that), this is just an exercise aimed at helping me to understand interfaces a bit more and the usage of <code>ArrayLists&lt;T&gt;</code> which I have never used.</p>

<p>I had a look at how the footprint is calculated and these are the formulas I was thinking to use:<br />
For a car:<br />
carbon footprint = ((averageYearlyMiles * AverageMPG) * 9kg/gallon) because allegedly one gallon of gas emits 9kg of co2. (source: <a href="http://www.motherearthnews.com/nature-and-environment/carbon-footprint-calculator.aspx#axzz2WOzrsqNS" rel="nofollow">http://www.motherearthnews.com/nature-and-environment/carbon-footprint-calculator.aspx#axzz2WOzrsqNS</a>)</p>

<p>For a house:<br />
carbon footprint = monthly electricity kWh * 12 source <a href="http://www.howany.com/how-to-calculate-carbon-footprint/" rel="nofollow">http://www.howany.com/how-to-calculate-carbon-footprint/</a></p>

<p>For a bike<br />
carbon footprint = miles * 34 (takes 34 calories to bike a  mile apparently) source: <a href="http://twtitw.firebus.com/node/100" rel="nofollow">http://twtitw.firebus.com/node/100</a></p>

<p>Obviously if you have any suggestion as to how to calculate that, let me know.<br />
The questions I have are:<br />
1) is it worth doing some pseudocode? I mean in this program I will only create some objects and then calculate the carbon footprint.<br />
2)what sort of relevant attribute and behaviours do you think each of the classes should have? I was thinking that there won't be many. For example:<br />
Car:<br />
-relevant behaviours? Can't think of any<br />
attributes:<br />
-miles in a year<br />
-MPG<br />
-kg of co2 (constant amounting to 9)</p>

<p>Bike:<br />
-relevant behaviours? Can't think of any<br />
attributes:<br />
-miles in a year<br />
-calories per mile (constant amounting to 34)</p>

<p>house<br />
-relevant behaviours? Can't think of any<br />
attributes:<br />
-monthly Kwh<br />
-months (constant amounting to 12)</p>

<p>Is there anything else I need?<br />
thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>Violet_82</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456795/calculate-carbon-footprint-program</guid>
		</item>
				<item>
			<title>Help me my pc wont let me do anything :/</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/456794/help-me-my-pc-wont-let-me-do-anything-</link>
			<pubDate>Sun, 16 Jun 2013 20:00:13 +0000</pubDate>
			<description>Hi, basically my laptop wont let me do anything. It wont connect to an internet connection, it does t recognise any USB, services wont work, system restore doesnt work, alot of settings doesnt work, most things i click on, a message pops up saying &quot;The specified service does not exist ...</description>
			<content:encoded><![CDATA[ <p>Hi, basically my laptop wont let me do anything. It wont connect to an internet connection, it does t recognise any USB, services wont work, system restore doesnt work, alot of settings doesnt work, most things i click on, a message pops up saying "The specified service does not exist as an installed service. Basically the only thing i can do is go through pictures and other files. I cant even create a new user or anything. Please help xX</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>clayden</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/456794/help-me-my-pc-wont-let-me-do-anything-</guid>
		</item>
				<item>
			<title>php div needs refreshing after jquery post</title>
			<link>http://www.daniweb.com/web-development/php/threads/456793/php-div-needs-refreshing-after-jquery-post</link>
			<pubDate>Sun, 16 Jun 2013 19:16:45 +0000</pubDate>
			<description>I have a online photo gallery and when you hover over a image an edit button appears that opens up a jquery prompt box in which you enter the caption after this has been entered i have the following code var caption=prompt(&quot;Please enter new caption&quot;,&quot; &quot;); if (caption!=null) { var ...</description>
			<content:encoded><![CDATA[ <p>I have a online photo gallery and when you hover over a image an edit button appears that opens up a jquery prompt box in which you enter the caption after this has been entered i have the following code</p>

<pre><code>var caption=prompt("Please enter new caption"," ");
    if (caption!=null)
    {
    var link = "?id="+ $(this).parents('.thumbnail').attr('id') + "&amp;c=" + caption;
    $.post("../photo_c.html"+link);
    //alert($(this).parents('.thumbnail').attr('id'));  

    $("#loaddiv").slideUp(300).delay(800).fadeIn('3000');
    }
</code></pre>

<p>This should refresh the div but it wont it flashes but the PHP caption that comes from the database wont change even tho the script at photo_c.html is changing it and working, i have been informed to change it to this</p>

<pre><code>var caption = prompt("Please enter new caption", " ");
if (caption != null) {
    var link = "?id=" + $(this).parents('.thumbnail').attr('id') + "&amp;c=" + caption;
    $.post("../photo_c.html" + link,function(){
        $("#loaddiv").html(caption).slideUp(300).delay(800).fadeIn('3000');
    });      
}
</code></pre>

<p>But that refreshes div but only shows the caption that was entered not the actual data that belongs in the div the content is</p>

<pre><code>&lt;ul class="thumbnails gallery" id="loaddiv"&gt;
&lt;?php 
$get_all_pics = mysql_query("SELECT * FROM gallery_photos");
while ($photos = mysql_fetch_array($get_all_pics)) {
    echo 
 '&lt;li id="'.$photos['photo_id'].'" class="thumbnail"&gt;
    &lt;a data-rel="popover" data-content="'.$photos['photo_caption'].'" style="background:url(/images/'.$photos['photo_filename'].')" title="Caption" href="/images/'.$photos['photo_filename'].'"&gt;&lt;img class="grayscale" src="/images/'.$photos['photo_filename'].'" alt="'.$photos['photo_caption'].'"&gt;&lt;/a&gt;
  &lt;/li&gt;';
}
?&gt;
&lt;/ul&gt;
</code></pre>

<p>as you can see i need to update the captions that show on the images by refreshing the div -</p>

<p>Any help would be greatly appricated</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>nats01282</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456793/php-div-needs-refreshing-after-jquery-post</guid>
		</item>
				<item>
			<title>Greek characters</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/456792/greek-characters</link>
			<pubDate>Sun, 16 Jun 2013 19:15:02 +0000</pubDate>
			<description>Hello I would like to write to a database a message that might be in greek. How i can do this? the form that i have is: &lt;form accept-charset='UTF-8' action=&quot;addcommentcheck.jsp&quot; method=&quot;post&quot; id=&quot;addcommentid&quot;&gt; .... &lt;/form&gt; and the database is utf8_unicode_ci for the name that could be in greek. How i can ...</description>
			<content:encoded><![CDATA[ <p>Hello<br />
I would like to write to a database a message that might be in greek. How i can do this?<br />
the form that i have is:<br />
&lt;form accept-charset='UTF-8' action="addcommentcheck.jsp" method="post" id="addcommentid"&gt;<br />
....<br />
&lt;/form&gt;<br />
and the database is utf8_unicode_ci for the name that could be in greek. How i can see the greek message at addcommentcheck.jsp?<br />
Thank you very much</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>xxmp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/456792/greek-characters</guid>
		</item>
				<item>
			<title>Create Setup exe</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/456791/create-setup-exe</link>
			<pubDate>Sun, 16 Jun 2013 19:00:43 +0000</pubDate>
			<description>I developed a software using VB.net. (With VS 2008 Professional edition) The Project has Crystal reports in a folder. I want to make a setup exe with that folder. there are few videos in youtube for this. But I couldnt find any form or video that adding folder to the ...</description>
			<content:encoded><![CDATA[ <p>I developed a software using VB.net. (With VS 2008 Professional edition) The Project has Crystal reports in a folder. I want to make a setup exe with that folder. there are few videos in youtube for this. But I couldnt find any form or video that adding folder to the setup file. Please tell me how to do this.<br />
This is what i did up to now.<br />
In project properties --&gt; Publish --&gt; Publish wizard button click --&gt; gave a path and NEXT --&gt; NEXT --&gt;NEXT --&gt;NEXT --&gt; Finish<br />
Setup is created without crystal report folder. Actually i have no any clear idea how to add a folder to setup project.<br />
Please tell the way of doing this......</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>weeraa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/456791/create-setup-exe</guid>
		</item>
				<item>
			<title>Writing PHP Source Formatter</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456790/writing-php-source-formatter</link>
			<pubDate>Sun, 16 Jun 2013 18:45:43 +0000</pubDate>
			<description>As heading shouts, I need to make source code formatter to format PHP Codes. RobertoP have written nice Lexical analyzer that means no need for me to tokenize file. I just do not know how to &quot;juggle&quot; with tokens to produce the formatted code. I appreciate any pointer especially simple ...</description>
			<content:encoded><![CDATA[ <p>As heading shouts, I need to make source code formatter to format PHP Codes.<br />
RobertoP have written nice Lexical analyzer that means no need for me to tokenize file.<br />
I just do not know how to "juggle" with tokens to produce the formatted code.<br />
I appreciate any pointer especially simple tutorial.<br />
Analyzer class is <a href="https://github.com/robertop/pelet/blob/master/src/LexicalAnalyzerClass.cpp" rel="nofollow">here</a><br />
TIA,<br />
Stefano</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Stefano Mtangoo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456790/writing-php-source-formatter</guid>
		</item>
				<item>
			<title>Help with JIT error</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/456789/help-with-jit-error</link>
			<pubDate>Sun, 16 Jun 2013 18:42:03 +0000</pubDate>
			<description>Hi All, Cannot for the life of me figure out what is wrong with application, when I run on laptop cannot get error to replicate however on tablet which application is designed to run on cannot figure it out. I have a windows form which is opened as an mdi ...</description>
			<content:encoded><![CDATA[ <p>Hi All,</p>

<p>Cannot for the life of me figure out what is wrong with application, when I run on laptop cannot get error to replicate however on tablet which application is designed to run on cannot figure it out.</p>

<p>I have a windows form which is opened as an mdi child, it contains lots of combo boxes, check boxes, radio buttons etc... Loads fine however when the cancel button is clicked (simple Me.Close) it throws up the following JIT error:</p>

<pre><code class="language-vb">See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at Microsoft.VisualBasic.PowerPacks.ShapeCollection.Dispose(Boolean disposing)
   at Microsoft.VisualBasic.PowerPacks.ShapeContainer.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at System.Windows.Forms.Form.Dispose(Boolean disposing)
   at BHXAOMS.WildlifeStrike.Dispose(Boolean disposing)
   at System.Windows.Forms.Form.WmClose(Message&amp; m)
   at System.Windows.Forms.Form.WndProc(Message&amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.296 (RTMGDR.030319-2900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
BHX AOMS
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Will%20Fuller/AppData/Local/Apps/2.0/Z74A4LDA.YC1/K3NK3V5E.WT8/bhxa..tion_2c24d50aa6120301_0001.0002_5f78faf5eabf05b2/BHX%20AOMS.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1001 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1002 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1001 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.237 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Transactions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.VisualBasic.PowerPacks.Vs
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.20911.1
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.PowerPacks.Vs/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.PowerPacks.Vs.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

&lt;configuration&gt;
    &lt;system.windows.forms jitDebugging="true" /&gt;
&lt;/configuration&gt;

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
</code></pre>

<p>Really stuck on this one, help.</p>

<p>Cheers Will</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>thewilf</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/456789/help-with-jit-error</guid>
		</item>
				<item>
			<title>USB XP features</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/456788/usb-xp-features</link>
			<pubDate>Sun, 16 Jun 2013 18:01:01 +0000</pubDate>
			<description>I write to inquire if drivers can be installed to a usb version of windows XP. Have a legacy scanner that could be used if the driver can be incorporated. Guidance sought</description>
			<content:encoded><![CDATA[ <p>I write to inquire if drivers can be installed to a usb version of windows XP.  Have a legacy scanner that could be used if the driver can be incorporated.  Guidance sought</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>mnewsome</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/456788/usb-xp-features</guid>
		</item>
				<item>
			<title>Want to learn Programming</title>
			<link>http://www.daniweb.com/software-development/threads/456786/want-to-learn-programming</link>
			<pubDate>Sun, 16 Jun 2013 17:23:36 +0000</pubDate>
			<description>Hi! I want to learn programming. I'm 14 years old and very fond of computing. The only problem I face is *Which programming language should I learn?* or should I learn *Programming* i.e I learn the basics of programming so that I will be capable of learning any programming language. ...</description>
			<content:encoded><![CDATA[ <p>Hi! I want to learn programming. I'm 14 years old and very fond of computing. The only problem I face is <em>Which programming language should I learn?</em> or should I learn <em>Programming</em> i.e I learn the basics of programming so that I will be capable of learning any programming language. Also, when you recommend me one of the choice I stated above then please give me resources for learning e.g book names or some websites which will start me learning from scratch. Furthermore, I want to state that I want to create cool games, softwares or even Operating Systems from programming, that might look very odd to some people. I have no previous experience of programming except I was taught GWBASIC in school and we were only taught only 4 to 5 commands and statements. I liked it a lot but, then realised that this programming language is not perfect for my ambitions. I like Python, C, Java and C++ programming language.So, please help me.<br />
Awaiting for your replies anxiously!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>oanahmed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/threads/456786/want-to-learn-programming</guid>
		</item>
				<item>
			<title>Problem with combo boxes in JSP</title>
			<link>http://www.daniweb.com/web-development/jsp/threads/456785/problem-with-combo-boxes-in-jsp</link>
			<pubDate>Sun, 16 Jun 2013 17:22:39 +0000</pubDate>
			<description>Hi to all, I want to create a jsp page where user will insert in second combo box his choice and then based on his selection, in the third combo box there will be only choices that are connected with choice from second combo-box. here is the code: &lt;%@ page ...</description>
			<content:encoded><![CDATA[ <p>Hi to all,</p>

<p>I want to create a jsp page where user will insert in second combo box his choice and then based on his selection, in the third combo box there will be only choices that are connected with choice from second combo-box.</p>

<p>here is the code:</p>

<pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%&gt;
    &lt;%@ taglib uri="<a href="http://java.sun.com/jsp/jstl/core" rel="nofollow">http://java.sun.com/jsp/jstl/core</a>" prefix="c" %&gt;   

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<a href="http://www.w3.org/TR/html4/loose.dtd" rel="nofollow">http://www.w3.org/TR/html4/loose.dtd</a>"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
&lt;title&gt;Unos kandidata&lt;/title&gt;
&lt;/head&gt;
&lt;jsp:useBean id="autoskole" class="autoskola.managers.SveAutoSkole" scope="page"/&gt;
&lt;jsp:useBean id="kategorije" class="autoskola.managers.SveKategorije" scope="page"/&gt;
&lt;jsp:useBean id="instruktori" class="autoskola.managers.SviInstruktori" scope="page"/&gt;


&lt;body&gt;
&lt;form action="/AutoSkola/KandidatServlet" method="post"&gt;
Unesite podatke za novog kandidata:
&lt;br&gt;
&lt;br&gt;
&lt;table&gt;

 &lt;tr&gt;&lt;td&gt;Ime&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="ime"&gt;&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;Prezime&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="prezime"&gt;&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;Adresa&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="adresa"&gt;&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;Telefon&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="telefon"&gt;&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;Jmbg&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="jmbg"&gt;&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="email"&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Izaberi autoskolu:&lt;/td&gt;
&lt;tr&gt;&lt;td&gt;
&lt;select name="bpautoskola"&gt;
&lt;c:forEach var="bpautoskola" items="${autoskole.sveAutoskole}"&gt;
&lt;option value="${bpautoskola.idSkole}" &gt;${bpautoskola.naziv}&lt;/option&gt;
&lt;/c:forEach&gt;
&lt;/select&gt;
&lt;/td&gt;

&lt;tr&gt;&lt;td&gt;Izaberi kategoriju:&lt;/td&gt;
&lt;tr&gt;&lt;td&gt;
&lt;select name="bpkategorija"&gt;
&lt;c:forEach var="bpk" items="${kategorije.sveKategorije}"&gt;
&lt;option value="${bpk.idKategorije}" &gt;${bpk.oznakaKategorije}&lt;/option&gt;
&lt;/c:forEach&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;&lt;td&gt;Izaberi instruktora:&lt;/td&gt;
&lt;tr&gt;&lt;td&gt;
&lt;select name="bpinstruktor"&gt;
&lt;c:forEach var="bpi" items="${instruktori.sviInstruktori}"&gt;
&lt;option value="${bpi.idInstruktora}" &gt;${bpi.ime} ${bpi.prezime}&lt;/option&gt;
&lt;/c:forEach&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;br&gt;
&lt;br&gt;
&lt;input type="submit" value="Sacuvaj"&gt;

 &lt;/form&gt;

${poruka} 


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

<p>He reads all from local database, and I'm trying to find a solution for my problem...  Language is Serbian, I have a Driving school where user will select category that he wants, then he will select driving school from combo box, and then he will have choice to select driver instructor who works at that school...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/jsp/24">JSP</category>
			<dc:creator>bamboocha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/jsp/threads/456785/problem-with-combo-boxes-in-jsp</guid>
		</item>
				<item>
			<title>auto links</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/456784/auto-links</link>
			<pubDate>Sun, 16 Jun 2013 17:17:41 +0000</pubDate>
			<description>When I post a URL such as www.programmersforum.org it would be nice if DaniWeb turned it into a clickable link. I thought it used to do that at one time.</description>
			<content:encoded><![CDATA[ <p>When I post a URL such as www.programmersforum.org it would be nice if DaniWeb turned it into a clickable link.  I thought it used to do that at one time.</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/456784/auto-links</guid>
		</item>
				<item>
			<title>automatic sftp (without prompt) in bash script?</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/456783/automatic-sftp-without-prompt-in-bash-script</link>
			<pubDate>Sun, 16 Jun 2013 17:13:33 +0000</pubDate>
			<description>I am trying to make something similar to a symbolic link type setup for a folder. I have a folder on my desktop, place_on_server, and several folders that match up to folders on my linux server so place_on_server/tutorials would match up to /var/www/media/tutorials or place_on_server translates to /var/www/media Basically I ...</description>
			<content:encoded><![CDATA[ <p>I am trying to make something similar to a symbolic link type setup for a folder. I have a folder on my desktop, place_on_server, and several folders that match up to folders on my linux server so place_on_server/tutorials would match up to /var/www/media/tutorials or place_on_server translates to /var/www/media</p>

<p>Basically I find a pdf or website I want to archive because I find it very informative (and I'm gonna be losing internet soon). I want to save it the the appropriate folder<br />
so for example: <a href="http://docs.python.org/release/2.5.2/lib/ctypes-pointers.html" rel="nofollow">http://docs.python.org/release/2.5.2/lib/ctypes-pointers.html</a></p>

<p>I'll save in place_on_server/python. When that happens, a series of scripts will run and the html archive will be placed on /var/www/media/python and be deleted from my computer (My main computer is a macbook).</p>

<p>I read somewhere that you can do something like <code>me$ sftp root@192.168.1.105 -d /var/www/media/python -f &lt;file name&gt;</code><br />
I can't find anything I'm just curious. I'm using RSA authentication so no password needed.</p>

<p>If not I was wondering if there are any workable solutions for this type of functionality. The only thing I can think is either I make a client script that puts the file in /home/root and then activates a script on the server that moves it to the proper folder or something. I don't know. I think I remember you can write a tiny command script that ssh/sftp will run.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>dancks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/456783/automatic-sftp-without-prompt-in-bash-script</guid>
		</item>
				<item>
			<title>Asus GTX 460 Driver for Fedora 18</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/456782/asus-gtx-460-driver-for-fedora-18</link>
			<pubDate>Sun, 16 Jun 2013 17:06:54 +0000</pubDate>
			<description>Hi! That's my first post in Daniweb Forums. If I go wrong in explaining something or violate rules of posting threads, give me assistance. Two days back, I installed Fedora 18 having KDE Desktop Environment on my Core i3 Computer. It was working smooth and fine. I have Intel HD ...</description>
			<content:encoded><![CDATA[ <p>Hi! That's my first post in Daniweb Forums. If I go wrong in explaining something or violate rules of posting threads, give me assistance.<br />
Two days back, I installed Fedora 18 having KDE Desktop Environment on my Core i3 Computer. It was working smooth and fine. I have Intel HD 2000 Graphics built-in in my computer but , I purchased Asus GTX 460 video card separately and plugged it in. I attached my LCD display to Asus GTX 460. Everything went smooth. The LCD is the size of 19 inches and is showing its max resolution of 1280X1024 without any blurriness. Only thing I want is that Fedora 18 is not detecting my Asus GTX 460 and instead showing that my video card is Gallium; which I do not know what it is. I want Fedora18 to utilize the full resources of my Computer and I might install some Autodesk 3d software in it. So, I want Asus GTX 460 driver but, do not know how to install it and how to get it.<br />
I'm a newbie to Linux and do not have much knowledge of it so, please help me!<br />
Following are the specs of my computer:<br />
Core i3, Inel HD 2000 GPU (Built-in), Intel DH67CL motherboard, 8GB Kingston DDR3 Ram,<br />
Asus GTX 460 video card, 80 GB Hard drive(on which fedora is installed) other than it I also have SUPER DVD.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>oanahmed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/456782/asus-gtx-460-driver-for-fedora-18</guid>
		</item>
				<item>
			<title>Comparator and Comparable</title>
			<link>http://www.daniweb.com/software-development/java/threads/456781/comparator-and-comparable</link>
			<pubDate>Sun, 16 Jun 2013 16:46:16 +0000</pubDate>
			<description>Hi, I have class of student object with the String student name and double GPA they are stored in array. My GUI have button for sort by name and sort by grade. I want to sort the name and the grade and I want to sort it using Comparator, but ...</description>
			<content:encoded><![CDATA[ <p>Hi,<br />
I have class of student object with the String student name and double GPA they are stored in array. My GUI have button for sort by name and sort by grade. I want to sort the name and the grade and I want to sort it using Comparator, but I don't know what is Comparator and when to use it. Also what is the diffrnet between Comparator and Comparable.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>sk8ergirl</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456781/comparator-and-comparable</guid>
		</item>
				<item>
			<title>Zend_Form_Element_Checkbox</title>
			<link>http://www.daniweb.com/web-development/php/threads/456780/zend_form_element_checkbox</link>
			<pubDate>Sun, 16 Jun 2013 16:29:09 +0000</pubDate>
			<description>Hi, all. I have a login form with a checkbox that needs to create cookies if checked. How is it possible to check after the form has been submitted if the checkbox has been checked? I have the following code in 'application/forms/Login.php': $remember = new Zend_Form_Element_Checkbox(&quot;remember&quot;, array('disableLoadDefaultDecorators' =&gt; true, 'required' ...</description>
			<content:encoded><![CDATA[ <p>Hi, all.</p>

<p>I have a login form with a checkbox that needs to create cookies if checked. How is it possible to check after the form has been submitted if the checkbox has been checked?</p>

<p>I have the following code in 'application/forms/Login.php':</p>

<pre><code>$remember = new Zend_Form_Element_Checkbox("remember", array('disableLoadDefaultDecorators' =&gt; true, 'required' =&gt; false));
$remember-&gt;setDecorators(array('ViewHelper', array('Description', array('escape' =&gt; false, 'tag' =&gt; 'span'))))-&gt;setDescription("Remember me");
</code></pre>

<p>And in 'application/controllers/Auth.php':</p>

<pre><code>$form = new Application_Form_Login();
$request = $this-&gt;getRequest();
if($request-&gt;isPost() &amp;&amp; $request-&gt;getPost('submit_login')) {
    if($form-&gt;isValid($request-&gt;getPost())) {
        if ($this-&gt;_process($form-&gt;getValues())) {
            $data = $form-&gt;getValues();
            if(isset($data['remember'])){
                setcookie("username", $data['username'], time()+60*60*24*100, "/");
                setcookie("password", $data['password'], time()+60*60*24*100, "/");
            }
        }
    }
}
</code></pre>

<p>The code works fine, but it creates cookis, no matter if checked or unchecked. Please advise. Thank you.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>eburlea</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456780/zend_form_element_checkbox</guid>
		</item>
				<item>
			<title>help please</title>
			<link>http://www.daniweb.com/hardware-and-software/threads/456779/help-please</link>
			<pubDate>Sun, 16 Jun 2013 16:23:25 +0000</pubDate>
			<description>Hi all, basically i would like to know if there is a keylogger software i can put on spouses phone wuthout actualy having VERY limited acess to the phone. Any help would be so greatfull. Cliffy</description>
			<content:encoded><![CDATA[ <p>Hi all, basically i would like to know if there is a keylogger software i can put on spouses phone wuthout actualy having VERY limited acess to the phone. Any help would be so greatfull. Cliffy</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/1">Hardware and Software</category>
			<dc:creator>cliffy1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/threads/456779/help-please</guid>
		</item>
				<item>
			<title>how to use &quot;into&quot;</title>
			<link>http://www.daniweb.com/software-development/assembly/threads/456777/how-to-use-into</link>
			<pubDate>Sun, 16 Jun 2013 16:18:03 +0000</pubDate>
			<description>how to use &quot;**into**&quot;?????? this is my example!!!!!! ......................................... add ax,bx into . . . . . . overflow:push ax push bx push cx push dx . . . pop dx pop cx pop bx pop ax iret .................................................... who has other examples of about &quot;**into**&quot;? i want to learn!!!!!! ...</description>
			<content:encoded><![CDATA[ <p>how to use "<strong>into</strong>"??????</p>

<p>this is my example!!!!!!</p>

<p>.........................................</p>

<pre><code>add ax,bx
into
.
.
.

.
.
.
overflow:push ax
         push bx
         push cx
         push dx
         .
         .
         .
         pop dx
         pop cx
         pop bx
         pop ax
         iret
</code></pre>

<p>....................................................</p>

<p>who has other examples of about "<strong>into</strong>"?</p>

<p>i want to learn!!!!!!</p>

<p><strong>i am sorry to disturb to you, and also sorry to ask such a simple question</strong>!!!!!!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/assembly/125">Assembly</category>
			<dc:creator>hellogoodday</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/assembly/threads/456777/how-to-use-into</guid>
		</item>
				<item>
			<title>Call script or css style in the update panel</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456776/call-script-or-css-style-in-the-update-panel</link>
			<pubDate>Sun, 16 Jun 2013 15:47:05 +0000</pubDate>
			<description>I am using a script on a page due to which the style of dropdown , checkbox and textbox is applied on them, but if i put dropdown or any other tool inside the updatepanel than only when the page gets load script is shown to that tool but whenever ...</description>
			<content:encoded><![CDATA[ <p>I am using a script on a page due to which the style of dropdown , checkbox and textbox is applied on them, but if i put dropdown or any other tool inside the updatepanel than only when the page gets load script is shown to that tool but whenever one of the tool gets refresh with the other selectchange of tool which is also inside the updatepanel than both of the script gets removed.</p>

<p><strong>For example:</strong></p>

<pre><code>       &lt;head runat="server"&gt;
        &lt;title&gt;script not working&lt;/title&gt;      
        &lt;script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
        &lt;link rel="stylesheet" href="jqtransformplugin/jqtransform.css" type="text/css" media="all" /&gt;
        &lt;script type="text/javascript" src="jqtransformplugin/jquery.jqtransform.js"&gt;&lt;/script&gt;

        &lt;script language="javascript"&gt;
            $(function() {
                $('form').jqTransform({ imgPath: 'jqtransformplugin/img/' });
            });
        &lt;/script&gt;
        &lt;/head&gt;
        &lt;body&gt;
        &lt;form id="form1" runat="server"&gt;    
            &lt;table cellpadding="0" cellspacing="0"&gt;
                &lt;tr&gt;
                    &lt;td&gt;
                        &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
                        &lt;/asp:ScriptManager&gt;                 
                    &lt;/td&gt;               
                &lt;/tr&gt;
                &lt;tr&gt;
                    &lt;td&gt;
                        &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
                            &lt;ContentTemplate&gt;
                                &lt;asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="DropDownList1_SelectedIndexChanged"&gt;
                                    &lt;asp:ListItem&gt;1&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;2&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;3&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;4&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;5&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;&lt;/asp:ListItem&gt;
                                &lt;/asp:DropDownList&gt;
                            &lt;/ContentTemplate&gt;
                        &lt;/asp:UpdatePanel&gt;
                    &lt;/td&gt;               
                &lt;/tr&gt;            
                &lt;tr&gt;               
                    &lt;td&gt;
                        &lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"&gt;
                            &lt;ContentTemplate&gt;
                                &lt;asp:DropDownList ID="ddtrial" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="ddtrial_SelectedIndexChanged"&gt;
                                    &lt;asp:ListItem&gt;1&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;2&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;3&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;4&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;5&lt;/asp:ListItem&gt;
                                    &lt;asp:ListItem&gt;&lt;/asp:ListItem&gt;
                                &lt;/asp:DropDownList&gt;
                            &lt;/ContentTemplate&gt;
                        &lt;/asp:UpdatePanel&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;           
            &lt;/table&gt;   
        &lt;/form&gt;
        &lt;/body&gt;
</code></pre>

<p>I am facing 1 problems:</p>

<p>1--When the page gets load script is applied to the dropdown is shown but whenever one of the dropdown selectchanges both of the dropdown script gets removed.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>mitesh.24jain</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456776/call-script-or-css-style-in-the-update-panel</guid>
		</item>
				<item>
			<title>calling refresh function of ie tab</title>
			<link>http://www.daniweb.com/hardware-and-software/threads/456775/calling-refresh-function-of-ie-tab</link>
			<pubDate>Sun, 16 Jun 2013 15:34:52 +0000</pubDate>
			<description>Hi, I'd like to write a code (like C++ or a script) that calls the refresh function of a internet explorer or firefox tab. So can I just write a short code including some Windows library and some database that includes pointers to the objects in the IE running process, ...</description>
			<content:encoded><![CDATA[ <p>Hi, I'd like to write a code (like C++ or a script) that calls the refresh function of a internet explorer or firefox tab. So can I just write a short code including some Windows library and some database that includes pointers to the objects in the IE running process, and have my code call the refresh function of the particular IE tab? or does the OS not keep track of objects/functions in a running proccess? or there's unavoidable access restrictions?</p>

<p>I just have theoretical understanding and general programming and front user experiece, but would be happy also for a practical reference text about how to do such things in Windows, and in particular understanding the OS arch. at that level. I'm guessing it's public info, and that that's part of what software developers do?</p>

<p>Thanks for you're time and help,<br />
Dani</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/1">Hardware and Software</category>
			<dc:creator>dyaniv2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/threads/456775/calling-refresh-function-of-ie-tab</guid>
		</item>
				<item>
			<title>Checking correct and wrong answer and adding the scores</title>
			<link>http://www.daniweb.com/web-development/jsp/threads/456774/checking-correct-and-wrong-answer-and-adding-the-scores</link>
			<pubDate>Sun, 16 Jun 2013 15:16:18 +0000</pubDate>
			<description> &lt;%@ page import = &quot;java.util.*&quot;%&gt; &lt;%@ page import = &quot;java.lang.*&quot;%&gt; &lt;%@ page import=&quot;java.sql.*&quot; %&gt; &lt;%@ page language=&quot;java&quot; import=&quot;java.sql.*&quot; errorPage=&quot;&quot; %&gt; &lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt; &lt;title&gt;JSP Page&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;% String ans=&quot; &quot;; if(request.getParameter(&quot;correctAns&quot;)!=null) { ans=request.getParameter(&quot;correctAns&quot;).toString(); } Connection conn = null; ...</description>
			<content:encoded><![CDATA[ <pre><code>&lt;%@ page import = "java.util.*"%&gt;
&lt;%@ page import = "java.lang.*"%&gt;
&lt;%@ page import="java.sql.*" %&gt;
&lt;%@ page language="java" import="java.sql.*" errorPage="" %&gt;

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<a href="http://www.w3.org/TR/html4/loose.dtd" rel="nofollow">http://www.w3.org/TR/html4/loose.dtd</a>"&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;/head&gt;
&lt;body&gt;
&lt;% 
    String ans=" ";
if(request.getParameter("correctAns")!=null)
    {
        ans=request.getParameter("correctAns").toString();
    }
        Connection conn = null;
        String url = "jdbc:mysql://localhost:3306/";
        String db = "test";
        String driver = "com.mysql.jdbc.Driver";
        String userName ="root";
        String pass="password";
        Statement st = null;
        ResultSet qrst;
        ResultSet rs = null;



    String a,b;
    int count = 0;


try {

    Class.forName(driver);
    conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root", "password");

    st = conn.createStatement();
    rs = st.executeQuery("select * from questionnaires");

while(rs.next()) {
%&gt;
&lt;br&gt;
&lt;br/&gt;
&lt;center&gt;

&lt;table border="1" width="500px" bgcolor="white" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td width="100%"&gt;

&lt;form name="form1" &gt;

&lt;h2 align="center"&gt;&lt;font color="red"&gt;Online Quize Application&lt;/font&gt;&lt;/h2&gt;

&lt;b&gt;Select Correct Answer&lt;/b&gt;
&lt;table border="0" width="500px" cellspacing="2" cellpadding="4"&gt;
&lt;tr&gt;
&lt;td width="50%"&gt; Question Number: &lt;%= rs.getString("qid")%&gt;&lt;/td&gt;


&lt;input type="hidden" name="correctAns" value="&lt;%=rs.getString("correctAns")%&gt;" /&gt;
&lt;tr&gt;
&lt;td&gt;&lt;%= rs.getString("quest") %&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;

1: &lt;input type="radio" name="a" value= "QA" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;%= rs.getString("QA") %&gt;&lt;/td&gt;&lt;/tr&gt; 
&lt;tr&gt;
&lt;td&gt;
2: &lt;input type="radio" name="a" value="QB" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;%= rs.getString("QB") %&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
3: &lt;input type="radio" name="a" value="QC" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;%= rs.getString("QC") %&gt; &lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
4: &lt;input type="radio" name="a" value="QD" /&gt; &lt;/td&gt;
&lt;td&gt; &lt;%= rs.getString("QD") %&gt; &lt;/td&gt;&lt;/tr&gt;




&lt;tr&gt;
&lt;td&gt;
&lt;center&gt;
&lt;input type="submit" value="Submit" name="submit"&gt;&lt;/center&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;

&lt;/form&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/center&gt;
&lt;/body&gt;
    &lt;% 
        a=request.getParameter("a");
    %&gt;
    &lt;% 


    int items = 0 ;
        if(a.equals(ans))
        {

        count++;
    items++;
        out.println("Correct");

         }
        else{
        out.println("wrong");
    items++;
    }

    if(count &lt;= items)
    {
        String strcount = Integer.toString(count);
        String stritems = Integer.toString(items);
        out.println("Score :" . strcount . "/" .stritems);
    }

     %&gt;

&lt;%
}}

catch (Exception ex) {
ex.printStackTrace();

%&gt;

&lt;%
} finally {
if (rs != null) rs.close();
if (st != null) st.close();
if (conn != null) conn.close();
}
out.println("Score="+count);
%&gt;
&lt;/html&gt;
</code></pre>

<p>Hello, I'm having some problem with my code here. Because I have 2 question in my database and I want to check whether I answered correctly or not and I want to add the number of correct answer. I know there is something wrong with my code. Im really new at using JSP. Please help me. Thank you so much.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/jsp/24">JSP</category>
			<dc:creator>legendaddybok</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/jsp/threads/456774/checking-correct-and-wrong-answer-and-adding-the-scores</guid>
		</item>
			</channel>
</rss>