<?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>Handles</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/456967/handles</link>
			<pubDate>Wed, 19 Jun 2013 03:39:34 +0000</pubDate>
			<description>IntPtr objects can also be used to hold handles. For example, instances of IntPtr are used extensively in the System.IO.FileStream class to hold file handles. What is handles mean?</description>
			<content:encoded><![CDATA[ <p>IntPtr objects can also be used to hold handles. For example, instances of IntPtr are used extensively in the System.IO.FileStream class to hold file handles.</p>

<p>What is handles mean?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>AmrMohammed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/456967/handles</guid>
		</item>
				<item>
			<title>2D vector</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456966/2d-vector</link>
			<pubDate>Wed, 19 Jun 2013 02:23:29 +0000</pubDate>
			<description>I want to write a class that do operation on two matrices by 2D vector but i have some problems with the 2D vector , any one can help me?</description>
			<content:encoded><![CDATA[ <p>I want to write a class that do operation on two matrices by 2D vector but i have some problems with the 2D vector , any one can help me?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>islam.fci.3</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456966/2d-vector</guid>
		</item>
				<item>
			<title>Want to insert name of employee from database to combobox</title>
			<link>http://www.daniweb.com/software-development/java/threads/456965/want-to-insert-name-of-employee-from-database-to-combobox</link>
			<pubDate>Wed, 19 Jun 2013 01:58:33 +0000</pubDate>
			<description>I want to add employee name from database to combobox and i am using the coding while(rs.next()) combobox.addItem(rs.getString(&quot;Emp_name&quot;)); but the combobox appears consisting elements as Item1,Item2,Item3...and so on how I can add employees names in combobox</description>
			<content:encoded><![CDATA[ <p>I want to add employee name from database to combobox<br />
and i am using the coding</p>

<p>while(rs.next())<br />
combobox.addItem(rs.getString("Emp_name"));</p>

<p>but the combobox appears consisting elements as Item1,Item2,Item3...and so on<br />
how I can add employees names in combobox</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>Sweksha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456965/want-to-insert-name-of-employee-from-database-to-combobox</guid>
		</item>
				<item>
			<title>read from file into an array</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/456964/read-from-file-into-an-array</link>
			<pubDate>Wed, 19 Jun 2013 01:10:09 +0000</pubDate>
			<description> How do you read data from a file and fill an array?</description>
			<content:encoded><![CDATA[ <p>How do you read data from a file and fill an array?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>anf39</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/456964/read-from-file-into-an-array</guid>
		</item>
				<item>
			<title>std::copy and operator&lt;&lt; overload for ostream</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456963/stdcopy-and-operator-overload-for-ostream</link>
			<pubDate>Wed, 19 Jun 2013 01:04:35 +0000</pubDate>
			<description>Hi, I've been learning about the std::copy function in the &lt;algorithm&gt; header and I'm stuck on this exercise that I gave my self. Let's see the code snippet first: #include &lt;iostream&gt; #include &lt;vector&gt; #include &lt;algorithm&gt; #include &lt;iterator&gt; using namespace std; ostream&amp; operator&lt;&lt;(ostream&amp; os, const int p_val) { os.put( p_val*2); return ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I've been learning about the std::copy function in the &lt;algorithm&gt; header and I'm stuck on this exercise that I gave my self.</p>

<p>Let's see the code snippet first:</p>

<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;vector&gt;
#include &lt;algorithm&gt;
#include &lt;iterator&gt;
using namespace std;

ostream&amp; operator&lt;&lt;(ostream&amp; os, const int p_val)
{
    os.put( p_val*2);
    return os;
}

int main(/*const int argc,const char* const argv[]*/)
{
    std::vector&lt;int&gt; myVector = {34,54,43,2,7,87};

    std::copy(myVector.begin(), myVector.end(), ostream_iterator&lt;int&gt;(std::cout, " "));

    cin.get();
    return 0;
}
</code></pre>

<p>Basically what I'm trying to achieve is: I have a vector full of integers. I want to print the mutiply of 2 of these integers to std::cout using std::copy(). I learnt that I would have to overload operator&lt;&lt;(). But as you can see from my failed attempt above, I'm at a complete lost as to what I need to do insife operator&lt;&lt;().</p>

<p>Any help's much appreciated.</p>

<p>Cheers,<br />
Ben</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>yxBen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456963/stdcopy-and-operator-overload-for-ostream</guid>
		</item>
				<item>
			<title>Tales from the interview: malloc(0)</title>
			<link>http://www.daniweb.com/software-development/c/threads/456962/tales-from-the-interview-malloc0</link>
			<pubDate>Tue, 18 Jun 2013 22:33:49 +0000</pubDate>
			<description>I was asked this in an interview today: Q: `malloc(0); /* What does it do? */` It's a great question because it covers a subtlety in the standard and a condition that not many people will consider. Unfortunately, I wasn't 100% confident that I remembered what the standard said about ...</description>
			<content:encoded><![CDATA[ <p>I was asked this in an interview today:</p>

<p>Q: <code>malloc(0); /* What does it do? */</code></p>

<p>It's a great question because it covers a subtlety in the standard and a condition that not many people will consider. Unfortunately, I wasn't 100% confident that I remembered what the standard said about it. With full understanding that I brought the question on myself by arrogantly describing myself as an expert in C, I gave my answer as follows: "<em>A valid pointer will be returned, but that pointer cannot be dereferenced.</em>"</p>

<p>My answer was <strong>wrong</strong>. The interviewer said that the result was undefined behavior, which seemed slightly off to me at the time though I didn't challenge him on a nuance I wasn't assured of. As it turns out, my answer was partially correct, though in being partially correct it was still wrong. However, the interviewer wasn't correct either. The standard states the condition of a zero size request as follows:</p>

<p>"<em>If the size of the space requested is zero, the behavior is implementation-deﬁned: either a null pointer is returned, or the behavior is as if the size were some nonzero value, except that the returned pointer shall not be used to access an object.</em>"</p>

<p>Note that implementation-defined is very different from undefined. Undefined means that the very act of calling <code>malloc(0)</code> invokes undefined behavior and as a result makes the entire program henceforth undefined as well. Implementation-defined means that <code>malloc(0)</code> is legal and doesn't affect the legality of the rest of the program, but you must take all possible results into account when making the call if you want your code to be portable. As such, the following is portable and legal, but completely useless because the pointer cannot be dereferenced:</p>

<pre><code class="language-c">p = malloc(0);

if (!p)
{
    /* Don't dereference p */
}
else
{
    /* Still don't dereference p */
}
</code></pre>

<p>If <code>malloc(0)</code> were undefined, the above code would be horribly broken...and still completely useless. ;) The reason my partially correct answer was wholely wrong is I neglected to account for one of two possible outcomes. And while the interviewer was technically incorrect in saying that <code>malloc(0)</code> is undefined, he was <strong>practically</strong> correct because thinking of a useless situation as being undefined keeps you from creating that situation. In practice, he'd potentially write better code by avoiding sending in a zero size than by accounting for the implementation-defined behavior of sending in a zero size.</p>

<p>Robust code is the goal. I'm not sure there's a lesson to be learned from this interview, but it is what it is. Discuss. :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>deceptikon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/456962/tales-from-the-interview-malloc0</guid>
		</item>
				<item>
			<title>JavaScript Not Working When Included Elsewhere</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/456961/javascript-not-working-when-included-elsewhere</link>
			<pubDate>Tue, 18 Jun 2013 22:00:28 +0000</pubDate>
			<description>I have a script which is a simple HTML/JS contact form. The site is based on Joomla. Specifically, one of the YooTheme Templates. It is also running WidgetKit. I have had issues before which have been solved on here which were to do with my script including JS and WidgetKit ...</description>
			<content:encoded><![CDATA[ <p>I have a script which is a simple HTML/JS contact form. The site is based on Joomla. Specifically, one of the YooTheme Templates. It is also running WidgetKit.</p>

<p>I have had issues before which have been solved on here which were to do with my script including JS and WidgetKit including JS.</p>

<p>I removed my JS inclusion.</p>

<p>However, now the JS does not actually work on my script. The form gets emailed without validation.</p>

<p>The script works when not put into Joomla, IE, in its own PHP file so i know the code is ok.</p>

<p>It just does not work when added to Joomla. I suspect its some kind of conflict.</p>

<p>What i need is for the JS to validate the form AND send the email. At the moment it just sends the email.</p>

<p>Here is the code i have at the moment:</p>

<pre><code class="language-js">&lt;!DOCTYPE HTML&gt;
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml" rel="nofollow">http://www.w3.org/1999/xhtml</a>"&gt;
&lt;head&gt;

&lt;meta charset="utf-8" /&gt;

&lt;link href='<a href="http://fonts.googleapis.com/css?family=PT+Sans+Narrow" rel="nofollow">http://fonts.googleapis.com/css?family=PT+Sans+Narrow</a>' rel='stylesheet' type='text/css'&gt;
&lt;link href='<a href="http://fonts.googleapis.com/css?family=Droid+Sans" rel="nofollow">http://fonts.googleapis.com/css?family=Droid+Sans</a>' rel='stylesheet' type='text/css'&gt;
&lt;link rel="stylesheet" href="rppalmer12/style.css"&gt;


&lt;script type="text/javascript"&gt;
//$.noConflict();
$(document).ready(function() {

function isInt(n) {
return typeof n === 'number' &amp;&amp; n % 1 == 0;
}

// Form validation
$(".darkBtn").click(function(e) {
e.preventDefault();
var email_check = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i;
var email = $("form.form_contact .email").val();

var zipCheck = /[A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][ABD-HJLNP-UW-Z]{2}/i;
var zip = $("form.form_contact .zipcode").val();

var phoneCheck = /^\d+$/;
var phone = $("form.form_contact .phone").val();

var error = "";

if(!email_check.test(email))
{
error = "Please give a valid email address.";
}

if(!zipCheck.test(zip))
{
error = "Please give a valid postcode.";
}

if(!phoneCheck.test(phone) || phone.length != 11)
{
error = "Please give a valid phone number.";
}

// Check if all is filled
if($(".gender").val() == 0 || $(".title").val() == 0 || $(".fname").val() == "" || $(".sname").val() == "" || $(".phone").val() == "" || $(".email").val() == "" || $(".zipcode").val() == "" || $(".dday").val() == 0 || $(".dmonth").val() == 0 || $(".dyear").val() == 0 || $(".insurance").val() == 0 || $(".sday").val() == 0 || $(".smonth").val() == 0 || $(".syear").val() == 0 || $(".hear").val() == 0) {
error = "Please fill in all the form.";
}

// No error ? -&gt; Submit
if(error == "")
{

$("form#contact_form").submit();$(".form_error").hide();
} else {
$(".form_error").empty().text(error);
$(".form_error").show();
}
});
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;&lt;?php  if (isset($_POST['action'])) {     $to = "test@test.com";  $emailfrom = "test@test.com";   $subject = "Insurance Quote";   $message = "\r\n Title:" . $_POST['title'] . "\r\n First Name:" . $_POST['fname'] . "\r\n Surname:" . $_POST['sname'] . "\r\n Gender:" . $_POST['gender'] . "\r\n Number: " . $_POST['number'] . "\r\n Email: " . $_POST['email'] . "\r\n Post: " . $_POST['post'] . "\r\n DOB:Day: " . $_POST['dobday'] . "\r\n DOB:Month: " . $_POST['dobmonth'] . "\r\n DOB:Year:" . $_POST['dobyear'] . "\r\n Hear: " . $_POST['hear'] . "\r\n Insurance Type:" . $_POST['type'] . "\r\n START:Day:" . $_POST['startday'] . "\r\n START:Month:" . $_POST['startmonth'] . "\r\n START:Year:" . $_POST['startyear'];  $headers = "From:" . $emailfrom;        if (mail($to, $subject, $message, $headers)) {      echo "Thankyou for using B";    }   echo "done";} else {    ?&gt;
&lt;div class="menu_contact"&gt;
&lt;h3&gt;Get A Quote&lt;/h3&gt;
&lt;hr /&gt;
&lt;form action="" method="POST" class="form_contact" id="contact_form"&gt;

&lt;label&gt;Title:&lt;/label&gt;
&lt;select class="input title" name="title"&gt;
&lt;option value="0"&gt;Please select&lt;/option&gt;
&lt;option value="Mr"&gt;Mr&lt;/option&gt;
&lt;option value="Mrs"&gt;Mrs&lt;/option&gt;
&lt;option value="Miss"&gt;Miss&lt;/option&gt;
&lt;option value="Ms"&gt;Ms&lt;/option&gt;
&lt;/select&gt;
&lt;label&gt;First name:&lt;/label&gt;
&lt;input type="text" class="input fname" placeholder="John" name="fname"/&gt;
&lt;label&gt;Surname:&lt;/label&gt;
&lt;input type="text" class="input sname" placeholder="Doe" name="sname" /&gt;
&lt;label&gt;Gender:&lt;/label&gt;
&lt;select class="input gender" name="gender"&gt;
&lt;option value="0"&gt;Please select&lt;/option&gt;
&lt;option&gt;Male&lt;/option&gt;
&lt;option&gt;Female&lt;/option&gt;
&lt;/select&gt;
&lt;label&gt;Contact Number:&lt;/label&gt;
&lt;input type="text" class="input phone" placeholder="Your number" name="number" /&gt;
&lt;label&gt;Email:&lt;/label&gt;
&lt;input type="email" class="input email" placeholder="something@domain.com" name="email"/&gt;
&lt;label&gt;Postcode:&lt;/label&gt;
&lt;input type="text" class="input zipcode" placeholder="CW3 9SS" name="post"/&gt;
&lt;label&gt;Date of birth:&lt;/label&gt;
&lt;select class="input dateDay bday" name="dobday"&gt;
&lt;option value="0"&gt;Day&lt;/option&gt;
&lt;option value="1"&gt;1&lt;/option&gt;
&lt;option value="2"&gt;2&lt;/option&gt;
&lt;option value="3"&gt;3&lt;/option&gt;
&lt;option value="4"&gt;4&lt;/option&gt;
&lt;option value="5"&gt;5&lt;/option&gt;
&lt;option value="6"&gt;6&lt;/option&gt;
&lt;option value="7"&gt;7&lt;/option&gt;
&lt;option value="8"&gt;8&lt;/option&gt;
&lt;option value="9"&gt;9&lt;/option&gt;
&lt;option value="10"&gt;10&lt;/option&gt;
&lt;option value="11"&gt;11&lt;/option&gt;
&lt;option value="12"&gt;12&lt;/option&gt;
&lt;option value="13"&gt;13&lt;/option&gt;
&lt;option value="14"&gt;14&lt;/option&gt;
&lt;option value="15"&gt;15&lt;/option&gt;
&lt;option value="16"&gt;16&lt;/option&gt;
&lt;option value="17"&gt;17&lt;/option&gt;
&lt;option value="18"&gt;18&lt;/option&gt;
&lt;option value="19"&gt;19&lt;/option&gt;
&lt;option value="20"&gt;20&lt;/option&gt;
&lt;option value="21"&gt;21&lt;/option&gt;
&lt;option value="22"&gt;22&lt;/option&gt;
&lt;option value="23"&gt;23&lt;/option&gt;
&lt;option value="24"&gt;24&lt;/option&gt;
&lt;option value="25"&gt;25&lt;/option&gt;
&lt;option value="26"&gt;26&lt;/option&gt;
&lt;option value="27"&gt;27&lt;/option&gt;
&lt;option value="28"&gt;28&lt;/option&gt;
&lt;option value="29"&gt;29&lt;/option&gt;
&lt;option value="30"&gt;30&lt;/option&gt;
&lt;option value="31"&gt;31&lt;/option&gt;
&lt;/select&gt;
&lt;select class="input dateMonth bmonth" name="dobmonth"&gt;
&lt;option value="0"&gt;Month&lt;/option&gt;
&lt;option value="January"&gt;January&lt;/option&gt;
&lt;option value="February"&gt;February&lt;/option&gt;
&lt;option value="March"&gt;March&lt;/option&gt;
&lt;option value="April"&gt;April&lt;/option&gt;
&lt;option value="May"&gt;May&lt;/option&gt;
&lt;option value="June"&gt;June&lt;/option&gt;
&lt;option value="July"&gt;July&lt;/option&gt;
&lt;option value="August"&gt;August&lt;/option&gt;
&lt;option value="September"&gt;September&lt;/option&gt;
&lt;option value="October"&gt;October&lt;/option&gt;
&lt;option value="November"&gt;November&lt;/option&gt;
&lt;option value="December"&gt;December&lt;/option&gt;
&lt;/select&gt;
&lt;select class="input dateYear byear" name="dobyear"&gt;
&lt;option value="0"&gt;Year&lt;/option&gt;
&lt;option value="1996"&gt;1996&lt;/option&gt;
&lt;option value="1995"&gt;1995&lt;/option&gt;
&lt;option value="1994"&gt;1994&lt;/option&gt;
&lt;option value="1993"&gt;1993&lt;/option&gt;
&lt;option value="1992"&gt;1992&lt;/option&gt;
&lt;option value="1991"&gt;1991&lt;/option&gt;
&lt;option value="1990"&gt;1990&lt;/option&gt;
&lt;option value="1989"&gt;1989&lt;/option&gt;
&lt;option value="1988"&gt;1988&lt;/option&gt;
&lt;option value="1987"&gt;1987&lt;/option&gt;
&lt;option value="1986"&gt;1986&lt;/option&gt;
&lt;option value="1985"&gt;1985&lt;/option&gt;
&lt;option value="1984"&gt;1984&lt;/option&gt;
&lt;option value="1983"&gt;1983&lt;/option&gt;
&lt;option value="1982"&gt;1982&lt;/option&gt;
&lt;option value="1981"&gt;1981&lt;/option&gt;
&lt;option value="1980"&gt;1980&lt;/option&gt;
&lt;option value="1979"&gt;1979&lt;/option&gt;
&lt;option value="1978"&gt;1978&lt;/option&gt;
&lt;option value="1977"&gt;1977&lt;/option&gt;
&lt;option value="1976"&gt;1976&lt;/option&gt;
&lt;option value="1975"&gt;1975&lt;/option&gt;
&lt;option value="1974"&gt;1974&lt;/option&gt;
&lt;option value="1973"&gt;1973&lt;/option&gt;
&lt;option value="1972"&gt;1972&lt;/option&gt;
&lt;option value="1971"&gt;1971&lt;/option&gt;
&lt;option value="1970"&gt;1970&lt;/option&gt;
&lt;option value="1969"&gt;1969&lt;/option&gt;
&lt;option value="1968"&gt;1968&lt;/option&gt;
&lt;option value="1967"&gt;1967&lt;/option&gt;
&lt;option value="1966"&gt;1966&lt;/option&gt;
&lt;option value="1965"&gt;1965&lt;/option&gt;
&lt;option value="1964"&gt;1964&lt;/option&gt;
&lt;option value="1963"&gt;1963&lt;/option&gt;
&lt;option value="1962"&gt;1962&lt;/option&gt;
&lt;option value="1961"&gt;1961&lt;/option&gt;
&lt;option value="1960"&gt;1960&lt;/option&gt;
&lt;option value="1959"&gt;1959&lt;/option&gt;
&lt;option value="1958"&gt;1958&lt;/option&gt;
&lt;option value="1957"&gt;1957&lt;/option&gt;
&lt;option value="1956"&gt;1956&lt;/option&gt;
&lt;option value="1955"&gt;1955&lt;/option&gt;
&lt;option value="1954"&gt;1954&lt;/option&gt;
&lt;option value="1953"&gt;1953&lt;/option&gt;
&lt;option value="1952"&gt;1952&lt;/option&gt;
&lt;option value="1951"&gt;1951&lt;/option&gt;
&lt;option value="1950"&gt;1950&lt;/option&gt;
&lt;option value="1949"&gt;1949&lt;/option&gt;
&lt;option value="1948"&gt;1948&lt;/option&gt;
&lt;option value="1947"&gt;1947&lt;/option&gt;
&lt;option value="1946"&gt;1946&lt;/option&gt;
&lt;option value="1945"&gt;1945&lt;/option&gt;
&lt;option value="1944"&gt;1944&lt;/option&gt;
&lt;option value="1943"&gt;1943&lt;/option&gt;
&lt;option value="1942"&gt;1942&lt;/option&gt;
&lt;option value="1941"&gt;1941&lt;/option&gt;
&lt;option value="1940"&gt;1940&lt;/option&gt;
&lt;option value="1939"&gt;1939&lt;/option&gt;
&lt;option value="1938"&gt;1938&lt;/option&gt;
&lt;option value="1937"&gt;1937&lt;/option&gt;
&lt;option value="1936"&gt;1936&lt;/option&gt;
&lt;option value="1935"&gt;1935&lt;/option&gt;
&lt;option value="1934"&gt;1934&lt;/option&gt;
&lt;option value="1933"&gt;1933&lt;/option&gt;
&lt;option value="1932"&gt;1932&lt;/option&gt;
&lt;option value="1931"&gt;1931&lt;/option&gt;
&lt;option value="1930"&gt;1930&lt;/option&gt;
&lt;option value="1929"&gt;1929&lt;/option&gt;
&lt;option value="1928"&gt;1928&lt;/option&gt;
&lt;option value="1927"&gt;1927&lt;/option&gt;
&lt;option value="1926"&gt;1926&lt;/option&gt;
&lt;option value="1925"&gt;1925&lt;/option&gt;
&lt;option value="1924"&gt;1924&lt;/option&gt;
&lt;option value="1923"&gt;1923&lt;/option&gt;
&lt;option value="1922"&gt;1922&lt;/option&gt;
&lt;option value="1921"&gt;1921&lt;/option&gt;
&lt;option value="1920"&gt;1920&lt;/option&gt;
&lt;option value="1919"&gt;1919&lt;/option&gt;
&lt;option value="1918"&gt;1918&lt;/option&gt;
&lt;option value="1917"&gt;1917&lt;/option&gt;
&lt;option value="1916"&gt;1916&lt;/option&gt;
&lt;option value="1915"&gt;1915&lt;/option&gt;
&lt;option value="1914"&gt;1914&lt;/option&gt;
&lt;option value="1913"&gt;1913&lt;/option&gt;
&lt;/select&gt;
&lt;label&gt;Insurance Type:&lt;/label&gt;
&lt;select class="input insurance" name="type"&gt;
&lt;option value="0"&gt;Please select&lt;/option&gt;
&lt;option&gt;Type 1&lt;/option&gt;
&lt;option&gt;Type 2&lt;/option&gt;
&lt;/select&gt;
&lt;label&gt;Start Date:&lt;/label&gt;
&lt;select class="input dateDay sday" name="startday"&gt;
&lt;option value="0"&gt;Day&lt;/option&gt;
&lt;option value="1"&gt;1&lt;/option&gt;
&lt;option value="2"&gt;2&lt;/option&gt;
&lt;option value="3"&gt;3&lt;/option&gt;
&lt;option value="4"&gt;4&lt;/option&gt;
&lt;option value="5"&gt;5&lt;/option&gt;
&lt;option value="6"&gt;6&lt;/option&gt;
&lt;option value="7"&gt;7&lt;/option&gt;
&lt;option value="8"&gt;8&lt;/option&gt;
&lt;option value="9"&gt;9&lt;/option&gt;
&lt;option value="10"&gt;10&lt;/option&gt;
&lt;option value="11"&gt;11&lt;/option&gt;
&lt;option value="12"&gt;12&lt;/option&gt;
&lt;option value="13"&gt;13&lt;/option&gt;
&lt;option value="14"&gt;14&lt;/option&gt;
&lt;option value="15"&gt;15&lt;/option&gt;
&lt;option value="16"&gt;16&lt;/option&gt;
&lt;option value="17"&gt;17&lt;/option&gt;
&lt;option value="18"&gt;18&lt;/option&gt;
&lt;option value="19"&gt;19&lt;/option&gt;
&lt;option value="20"&gt;20&lt;/option&gt;
&lt;option value="21"&gt;21&lt;/option&gt;
&lt;option value="22"&gt;22&lt;/option&gt;
&lt;option value="23"&gt;23&lt;/option&gt;
&lt;option value="24"&gt;24&lt;/option&gt;
&lt;option value="25"&gt;25&lt;/option&gt;
&lt;option value="26"&gt;26&lt;/option&gt;
&lt;option value="27"&gt;27&lt;/option&gt;
&lt;option value="28"&gt;28&lt;/option&gt;
&lt;option value="29"&gt;29&lt;/option&gt;
&lt;option value="30"&gt;30&lt;/option&gt;
&lt;option value="31"&gt;31&lt;/option&gt;
&lt;/select&gt;
&lt;select class="input dateMonth smonth" name="startmonth"&gt;
&lt;option value="0"&gt;Month&lt;/option&gt;
&lt;option value="January"&gt;January&lt;/option&gt;
&lt;option value="February"&gt;February&lt;/option&gt;
&lt;option value="March"&gt;March&lt;/option&gt;
&lt;option value="April"&gt;April&lt;/option&gt;
&lt;option value="May"&gt;May&lt;/option&gt;
&lt;option value="June"&gt;June&lt;/option&gt;
&lt;option value="July"&gt;July&lt;/option&gt;
&lt;option value="August"&gt;August&lt;/option&gt;
&lt;option value="September"&gt;September&lt;/option&gt;
&lt;option value="October"&gt;October&lt;/option&gt;
&lt;option value="November"&gt;November&lt;/option&gt;
&lt;option value="December"&gt;December&lt;/option&gt;
&lt;/select&gt;
&lt;select class="input dateYear syear" name="startyear"&gt;
&lt;option value="0"&gt;Year&lt;/option&gt;
&lt;option value='2013'&gt;2013&lt;/option&gt;
&lt;option value='2014'&gt;2014&lt;/option&gt;

&lt;/select&gt;
&lt;label&gt;Where did you hear about us:&lt;/label&gt;
&lt;select class="input hear" name="hear"&gt;
&lt;option value="0"&gt;Please select&lt;/option&gt;
&lt;option value="google"&gt;Google&lt;/option&gt;
&lt;option value="recommendation"&gt;Recommendation&lt;/option&gt;
&lt;option value="email"&gt;Email&lt;/option&gt;
&lt;option value="Magazine"&gt;Magazine&lt;/option&gt;
&lt;option value="Facebook"&gt;Facebook&lt;/option&gt;
&lt;option value="Other"&gt;Other&lt;/option&gt;
&lt;/select&gt;
&lt;div class="form_error" style="display:none;color:red;text-align:center;text-shadow:none;width:278px;"&gt;&lt;/div&gt;&lt;input type="hidden" name="action" value="postform" /&gt;
&lt;input class="darkBtn submit" type="submit" value="Get A Quote &gt;" name="test"&gt;
&lt;/form&gt;
&lt;/div&gt;&lt;?php } ?&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I have tried the "var $j = jQuery.noConflict();" Trick but to no avail.</p>

<p>Any help would be appreciated.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>rosstafarian</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/456961/javascript-not-working-when-included-elsewhere</guid>
		</item>
				<item>
			<title>Bind unknown number of buttons to Click event</title>
			<link>http://www.daniweb.com/software-development/python/threads/456960/bind-unknown-number-of-buttons-to-click-event</link>
			<pubDate>Tue, 18 Jun 2013 21:29:42 +0000</pubDate>
			<description>hi, I want to load an unknown number of buttons (20 max) into a panel. When clicking a button, some other code should be executed. Below code shows my attempt at solving the problem. Unfortunately execution results in an assertion error. Any help in pointing me in the right direction ...</description>
			<content:encoded><![CDATA[ <p>hi,</p>

<p>I want to load an unknown number of buttons (20 max) into a panel.<br />
When clicking a button, some other code should be executed.<br />
Below code shows my attempt at solving the problem. Unfortunately execution results in an assertion error. Any help in pointing me in the right direction is much appreciated:</p>

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

"""trying to bind an unknown number of images to click event"""

class MyApp(wx.App):

    def OnInit(self):
        frame = MyFrame(None, -1)
        frame.Show()
        self.SetTopWindow(frame)
        return True

class MyFrame(wx.Frame):

    def __init__(self, parent, id):
        wx.Frame.__init__(self, parent, id, 'Bind unknown number of images', size=(1000, 500))
        panel = wx.Panel(self)

        mainSizer = wx.GridBagSizer(hgap=5, vgap=5)
        testSizer = wx.GridSizer(cols = 4, rows =0 )

        images = "g1 g2 g3 g4 g5 ".split()
        n=0

        for image in images:
            n=n+1
            path = 'O:\Python Programming Bits\bind test\%s.gif' % image
            image= wx.Image(path, wx.BITMAP_TYPE_ANY).Scale(80, 80).ConvertToBitmap()
            button = wx.BitmapButton(panel,  -1, bitmap=image, name=image)
            button.Bind(wx.BitmapButton, self.OnButton)
            testSizer.Add(button, flag=wx.EXPAND)

        mainSizer.Add(testSizer, pos=(2, 2), span=(2, 5 ), flag=wx.EXPAND)
        panel.SetSizer(mainSizer)
        mainSizer.Fit(self)
        mainSizer.SetSizeHints(self)

    def OnButton(self, event):
        print "you clicked on ... " + button_by_id.GetName()

    def OnQuit(self, event):
        self.Close()

if __name__ == '__main__':
    app = MyApp(False)
    app.MainLoop()    


app.MainLoop()    
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>No_idea</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/456960/bind-unknown-number-of-buttons-to-click-event</guid>
		</item>
				<item>
			<title>QT5 and Encoding Again</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456959/qt5-and-encoding-again</link>
			<pubDate>Tue, 18 Jun 2013 21:25:44 +0000</pubDate>
			<description>Hey! When i compile my code in Qt5, i get an weird symbol of triangle with an &quot;?&quot; at place of an french À. I try to chaqnge encoding to Latin1: no changes. UTF-8 it's same and i can't edit it. I tried many encoding but no changes. Weirdly months ...</description>
			<content:encoded><![CDATA[ <p>Hey!</p>

<p>When i compile my code in Qt5, i get an weird symbol of triangle with an "?" at place of an french À. I try to chaqnge encoding to Latin1: no changes. UTF-8 it's same and i can't edit it. I tried many encoding but no changes. Weirdly months ago all worked and after i come back to the project it's dosen't work anymore and i changed nothing. Maybe an glitch/bug of Qt? Theres goes an picture of what i mean</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>J-P1988</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456959/qt5-and-encoding-again</guid>
		</item>
				<item>
			<title>Get Variables from same page with out submitting</title>
			<link>http://www.daniweb.com/web-development/php/threads/456957/get-variables-from-same-page-with-out-submitting</link>
			<pubDate>Tue, 18 Jun 2013 20:56:57 +0000</pubDate>
			<description>There is two sections i need it to update. When they hover over the members name listed below, I need it to show their details. When the user(one who submitted the content) posts its going to have a hidden value to update the field in the form that i have ...</description>
			<content:encoded><![CDATA[ <p>There is two sections i need it to update.  When they hover over the members name listed below, I need it to show their details.  When the user(one who submitted the content) posts its going to have a hidden value to update the field in the form that i have a 1 in now.  Look for bolded items below.</p>

<p>This is all on the same form, and I would like for the PHP code above to get the userID=???? from the link listed below.  Is this possible?</p>

<pre><code>&lt;?PHP
require_once("include/membersite_config.php");

if(!$fgmembersite-&gt;CheckLogin())
{
    $fgmembersite-&gt;RedirectToURL("login.php");
    exit;
}

?&gt;
    &lt;?php
require_once 'include/myacctconfig.php';
include 'vars.php';
    $id = $_GET['userID'];** &lt;-----Value Needed**

    $query="SELECT * FROM fgusers3 WHERE id_user = $id.";
    $rs = mysql_query($query);
    $details = mysql_fetch_array($rs);


    $query="SELECT * FROM moredetails WHERE id_user = $id." ;
    $rs = mysql_query($query);
    $mdetails = mysql_fetch_array($rs);


?&gt;
&lt;!DOCTYPE html&gt;
&lt;head&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;script type='text/javascript' src='<a href="http://code.jquery.com/jquery-1.8.3.js" rel="nofollow">http://code.jquery.com/jquery-1.8.3.js</a>'&gt;&lt;/script&gt;
&lt;style type="text/css"&gt;
.theDiv {
    display: none;
    margin-top:-7px;
    background-color:#fff;
    width: 500px;
    line-height:100%;
    border:1px solid #c3c3c3;
    background:#fff;
    -moz-border-radius:3px;
    -webkit-border-radius:3px;
    border-radius:3px;
    position: relative;
    padding: 10px;
}
&lt;/style&gt;
&lt;script type='text/javascript'&gt;//&lt;![CDATA[ 
$(window).load(function(){
$('.theLinks').hover(
    function () {
        $(this).closest('.content3').next('.theDiv').fadeIn();
    },
    function () {
        $(this).closest('.content3').next('.theDiv').hide();
});
});//]]&gt;  

&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div&gt;
    &lt;div class="content3"&gt;
        &lt;div&gt;
            &lt;div class="theLinks"&gt;
                &lt;div&gt;&lt;a href="&lt;?php echo $_SERVER['PHP_SELF']?&gt;?userID=1"&gt;Members Name&lt;/a&gt;**&lt;----where it is stored...**
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="theDiv"&gt;
    &lt;table&gt;
        &lt;tr&gt;
                &lt;td&gt;&lt;img class="imgb" align="top" src="profilepics/&lt;?php echo $details['profilepic']; ?&gt;" width="100" height="100"&gt;
        &lt;/td&gt;
                &lt;td valign="top"&gt;Name: &lt;?php echo $details['name'] ?&gt;&lt;br&gt;&lt;br&gt;Email: &lt;?php echo $details['email'] ?&gt;&lt;br&gt;&lt;br&gt;Username: &lt;?php echo $details['username'] ?&gt;&lt;br&gt;&lt;br&gt;Favorite Exercise: &lt;?php echo $mdetails['favexercise']; ?&gt;&lt;br&gt;&lt;br&gt;Years Exercising: &lt;?php echo $mdetails['yearsexercise']; ?&gt;
        &lt;/td&gt;
    &lt;/table&gt;
    &lt;/div&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>patk570</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456957/get-variables-from-same-page-with-out-submitting</guid>
		</item>
				<item>
			<title>Adsense</title>
			<link>http://www.daniweb.com/internet-marketing/advertising-sales-strategies/threads/456956/adsense</link>
			<pubDate>Tue, 18 Jun 2013 20:32:37 +0000</pubDate>
			<description>okay so i was an administrator of a family members adsense account and it was banned will it affect me in anyway if i apply for an adsense account?</description>
			<content:encoded><![CDATA[ <p>okay so i was an administrator of a family members adsense account and it was banned will it affect me in anyway if i apply for an adsense account?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/advertising-sales-strategies/30">Advertising Sales Strategies</category>
			<dc:creator>sidneyvan94</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/advertising-sales-strategies/threads/456956/adsense</guid>
		</item>
				<item>
			<title>Multi-level Marketing</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/456955/multi-level-marketing</link>
			<pubDate>Tue, 18 Jun 2013 19:58:58 +0000</pubDate>
			<description>Dear friends, I am interested in creating a tree structure like the image attacched using jquery and json data. datasets: [{'name':'xxx', position:'left','parent': 0}, {'name':'yyy', position:'left','parent': 1}, {'name':'yyy', position:'middle','parent': 1}, {'name':'yyy', position:'right','parent': 1}, {'name':'yyy', position:'left','parent': 2}, {'name':'yyy', position:'right','parent': 2}, {'name':'yyy', position:'left','parent': 3}] Where, name - specifies name of the node parent ...</description>
			<content:encoded><![CDATA[ <p>Dear friends, I am interested in creating a tree structure like the image attacched using jquery and json data.</p>

<p>datasets:</p>

<pre><code class="language-xhtml">[{'name':'xxx', position:'left','parent': 0},
{'name':'yyy', position:'left','parent': 1},
{'name':'yyy', position:'middle','parent': 1},
{'name':'yyy', position:'right','parent': 1},
{'name':'yyy', position:'left','parent': 2},
{'name':'yyy', position:'right','parent': 2},
{'name':'yyy', position:'left','parent': 3}]
</code></pre>

<p>Where,<br />
name - specifies name of the node<br />
parent - node will be given number nodes direct child<br />
position: [left/right/middle]position of the node to the parent</p>

<p>How to achieve this structure??.. Please suggest me.. Thank you in advance..</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>javalover</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/456955/multi-level-marketing</guid>
		</item>
				<item>
			<title>Is it hard to learn JAVA?</title>
			<link>http://www.daniweb.com/web-development/threads/456954/is-it-hard-to-learn-java</link>
			<pubDate>Tue, 18 Jun 2013 19:51:32 +0000</pubDate>
			<description>Recently I have been asked to do a web-based login and register system using **JAVA**. But I haven't learnt java before and had absolutely no idea how java works or to write java codes. They told me that I have to learn Java quickly as possible. Currently looking some java ...</description>
			<content:encoded><![CDATA[ <p>Recently I have been asked to do a web-based login and register system using <strong>JAVA</strong>. But I haven't learnt java before and had absolutely no idea how java works or to write java codes. They told me that I have to learn Java quickly as possible. Currently looking some java stuff on the internet. Honestly, my head spins when i look at the codes. However, I do know PHP(intermediate level)(wihtout OOP). Really having a hard times learning java. How long will it take normally to learn java? Is it worth to learn java instead of PHP?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>layman114</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/456954/is-it-hard-to-learn-java</guid>
		</item>
				<item>
			<title>SSL Certificate Server 2012 Essentials</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-servers/threads/456953/ssl-certificate-server-2012-essentials</link>
			<pubDate>Tue, 18 Jun 2013 19:47:53 +0000</pubDate>
			<description>How can I get my SSL certificate to work correctly with Windows 2012 Essentials (specifically the remote web access feature). I *think* I installed the certificate correctly but it's not working :(</description>
			<content:encoded><![CDATA[ <p>How can I get my SSL certificate to work correctly with Windows 2012 Essentials (specifically the remote web access feature). I <em>think</em> I installed the certificate correctly but it's not working :(</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-servers/115">Windows Servers</category>
			<dc:creator>Dani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-servers/threads/456953/ssl-certificate-server-2012-essentials</guid>
		</item>
				<item>
			<title>Hacked Website how to retrieve/fix</title>
			<link>http://www.daniweb.com/web-development/threads/456952/hacked-website-how-to-retrievefix</link>
			<pubDate>Tue, 18 Jun 2013 19:34:58 +0000</pubDate>
			<description>Hello everyone! Webdesign isn't my thing but i know enough to help maintain a website for a church, it is a small scale and all i do is post events and upload pictures. a few days ago the site's ftp account got hacked and all the files been modified. i ...</description>
			<content:encoded><![CDATA[ <p>Hello everyone!</p>

<p>Webdesign isn't my thing but i know enough to help maintain a website for a church, it is a small scale and all i do is post events and upload pictures. a few days ago the site's ftp account got hacked and all the files been modified. i reset all the passwords and regained access but now i can't even download the files to my computer.</p>

<p>I finally was able to zip the index.html using the filebrowser on the host control panel and downloaded it that way then i used a virtual machine to open the file in notepad and found a script i didnt add in there with a lot of numbers.</p>

<p>my question is if i remove the script from the code and saved it is that good enough to make it safe for use or what should i do?</p>

<p>another question, is there anything i can do on my end to prevent things like that from happening?<br />
(my password was 12 chars long had capital, lower, numbers and special characters)</p>

<p>i can provide more details if needed such as the log i got from the host company if that helps<br />
thanks in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>Captain119</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/456952/hacked-website-how-to-retrievefix</guid>
		</item>
				<item>
			<title>ph</title>
			<link>http://www.daniweb.com/web-development/php/threads/456951/ph</link>
			<pubDate>Tue, 18 Jun 2013 19:20:40 +0000</pubDate>
			<description>hi guys, am working on a phpscript and have a date form, am lacking a php/javascript code to validate my date form. please help with the code.</description>
			<content:encoded><![CDATA[ <p>hi guys, am working on a phpscript and have a date form, am lacking a php/javascript code to validate my date form. please help with the code.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>murugami eric</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456951/ph</guid>
		</item>
				<item>
			<title>Advice on returning an array needed</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456950/advice-on-returning-an-array-needed</link>
			<pubDate>Tue, 18 Jun 2013 18:58:25 +0000</pubDate>
			<description>Hello programmers! I am trying to return an array, made up of 7 members, all type ints via a pointer from a function. Here is a prototype of a function that does this: `int[7] colCountArray={0,0,0,0,0,0,0} //array saved in Board obj.` int* Board::accessColCount() { return &amp;colCountArray; } However, my compiler dosnt ...</description>
			<content:encoded><![CDATA[ <p>Hello programmers! I am trying to return an array, made up of 7 members, all type ints  via a pointer from a function. Here is a prototype of a function that does this:</p>

<p><code>int[7] colCountArray={0,0,0,0,0,0,0}  //array saved in Board obj.</code></p>

<pre><code class="language-cpp">int* Board::accessColCount()
{
    return &amp;colCountArray;
}
</code></pre>

<p>However, my compiler dosnt like this. How can I fix this problem?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>nathan.pavlovsky</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456950/advice-on-returning-an-array-needed</guid>
		</item>
				<item>
			<title>Cannot get external links in TinyMCE</title>
			<link>http://www.daniweb.com/web-development/threads/456949/cannot-get-external-links-in-tinymce</link>
			<pubDate>Tue, 18 Jun 2013 18:51:33 +0000</pubDate>
			<description>Hi, I've added the TinyMCE plugin to my website to change all textareas to the editor. Upon completing, the values from the editor get stored in the database. When adding a link via the button in the editor, the link appears as normal (when checked in the HTML), eg. http://www.google.co.uk ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I've added the TinyMCE plugin to my website to change all textareas to the editor.<br />
Upon completing, the values from the editor get stored in the database.</p>

<p>When adding a link via the button in the editor, the link appears as normal (when checked in the HTML), eg. <a href="http://www.google.co.uk" rel="nofollow">http://www.google.co.uk</a></p>

<p>However, when checking the database, it becomes apparent that the editor is changing my entry on submission, as it now appears as /<a href="http://www.google.co.uk" rel="nofollow">http://www.google.co.uk</a> therefore meaning that when clicked, the website interperts it as a part of the current site (so when actually clicked it goes to <a href="http://www.clickteesside.com/http://www.google.co.uk" rel="nofollow">http://www.clickteesside.com/http://www.google.co.uk</a> - a none existent page).</p>

<p>In the TinyMCE_src.js file the sections that I have read about changing (However can't seem to find the correct combination) are:</p>

<pre><code>document_base_url : tinymce.documentBaseURL,
convert_urls : 1,
relative_urls : 1,
remove_script_host : 0,
</code></pre>

<p>If someone could assist me with this, I'd be grateful!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>maharrington</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/456949/cannot-get-external-links-in-tinymce</guid>
		</item>
				<item>
			<title>2 Cisco 2600 Routers 1 Cable modem connection</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/456948/2-cisco-2600-routers-1-cable-modem-connection</link>
			<pubDate>Tue, 18 Jun 2013 18:42:15 +0000</pubDate>
			<description>Internetwork to the Internet I have Router1 a Cisco 2600 and Router2 a Cisco 2600 with both running IOS 12.4. On Router1 serial interface I have configured: ip address 192.168.2.1 no shutdown clock rate 64000 On Router 1 ethernet interface I have configured: ip address dhcp no shutdown And it ...</description>
			<content:encoded><![CDATA[ <p>Internetwork to the Internet</p>

<p>I have Router1 a Cisco 2600 and Router2 a Cisco 2600 with both running IOS 12.4.</p>

<p>On Router1 serial interface I have configured:</p>

<p>ip address 192.168.2.1<br />
no shutdown<br />
clock rate 64000</p>

<p>On Router 1 ethernet interface I have configured:</p>

<p>ip address dhcp<br />
no shutdown</p>

<p>And it has recieved DCHP information from my Charter cable modem router of IP address, gateway, subnet mask.</p>

<p>On Router2 serial interface I have configured:</p>

<p>ip address 192.168.2.2<br />
no shutdown</p>

<p>I've also configured on Router1:</p>

<p>ip route 0.0.0.0 0.0.0.0 fastethernet 0/0<br />
ip default-network 97.0.0.0</p>

<p>I'm able to ping Google 74.125.225.113 from Router1 but not Router2.</p>

<p>Also, I don't see the advertised route in Router2 from show ip route.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>haulover</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/456948/2-cisco-2600-routers-1-cable-modem-connection</guid>
		</item>
				<item>
			<title>Error 91</title>
			<link>http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/456947/error-91</link>
			<pubDate>Tue, 18 Jun 2013 18:14:39 +0000</pubDate>
			<description>I've fought the Error 91 problem for years programing (self taught) in VB 6. Below is a simple example of a program getting data from a database and putting it into a grid. I know I'm supposed to use Dim and Set statements, but I've never figured it out. Can ...</description>
			<content:encoded><![CDATA[ <p>I've fought the Error 91 problem for years programing (self taught) in VB 6. Below is a simple example of a program getting data from a database and putting it into a grid. I know I'm supposed to use Dim and Set statements, but I've never figured it out. Can you help me??</p>

<p>Private Sub FormLoad()<br />
Data1.Recordset.MoveFirst<br />
R = 1: grdData.Col = 0<br />
Do Until Data1.Recordset.EOF = True<br />
   grdData.Row = R<br />
   grdData.Text = Data1.Recordset.Fields("Name")<br />
   R = R + 1<br />
   Data1.Recordset.MoveNext<br />
Loop<br />
End Sub</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>DickEM</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/456947/error-91</guid>
		</item>
				<item>
			<title>EXE Problem</title>
			<link>http://www.daniweb.com/software-development/python/threads/456946/exe-problem</link>
			<pubDate>Tue, 18 Jun 2013 17:51:29 +0000</pubDate>
			<description>I compiled a program in python, but the second I open it, there is a flash of the error, but then the cmd window closes.</description>
			<content:encoded><![CDATA[ <p>I compiled a program in python, but the second I open it, there is a flash of the error, but then the cmd window closes.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>Jacklittle01</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/456946/exe-problem</guid>
		</item>
				<item>
			<title>Porter Stemming algorithm</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456945/porter-stemming-algorithm</link>
			<pubDate>Tue, 18 Jun 2013 17:33:59 +0000</pubDate>
			<description>I have successfully implemented Porter Stemming Algorithm. I wanted to project ideas, as to where I could apply it, a more practical application?</description>
			<content:encoded><![CDATA[ <p>I have successfully implemented Porter Stemming Algorithm. I wanted to project ideas, as to where I could apply it, a more practical application?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>rash_13</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456945/porter-stemming-algorithm</guid>
		</item>
				<item>
			<title>JDBC - See changes on data while the application is running</title>
			<link>http://www.daniweb.com/software-development/java/threads/456943/jdbc-see-changes-on-data-while-the-application-is-running</link>
			<pubDate>Tue, 18 Jun 2013 16:44:14 +0000</pubDate>
			<description>Hi, I was wondering why my application doesn't list the changes while the application is running. For e.g I create a new job and then my application should show the new job in the list that is provided. I used **ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE** this but doesn't seem to work. Thanks Kru</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I was wondering why my application doesn't list the changes while the application is running. For e.g I create a new job and then my application should show the new job in the list that is provided. I used <strong>ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE</strong> this but doesn't seem to work.</p>

<p>Thanks</p>

<p>Kru</p>
 ]]></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/456943/jdbc-see-changes-on-data-while-the-application-is-running</guid>
		</item>
				<item>
			<title>search listview with textbox text on windows form</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/456942/search-listview-with-textbox-text-on-windows-form</link>
			<pubDate>Tue, 18 Jun 2013 16:03:33 +0000</pubDate>
			<description>Hello After two days of struggling I have come for some help. I have a listview of contact names that I want to search with text added into a textbox. It can either filter these as the text is entered or by a button search ... I haven't got anywhere ...</description>
			<content:encoded><![CDATA[ <p>Hello</p>

<p>After two days of struggling I have come for some help. I have a listview of contact names that I want to search with text added into a textbox. It can either filter these as the text is entered or by a button search ... I haven't got anywhere with either so far.</p>

<pre><code class="language-cs">  private void btnSearch_Click_1(object sender, EventArgs e)
        {

            for (int i = 0; i &lt; lvContacts.Items.Count; i++)

                if (lvContacts.Items[i].ToString().Contains(txtSearch.Text.ToLower()))
                {
                    //lvContacts.Items[i].Selected; // THIS DOESNT WORK ... as I'm sure you know
                    lvContacts.Items[i].BackColor = Color.CornflowerBlue;
                }    

        }

        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            lvContacts.SelectedItems.Clear();

            for (int i = 0; i &lt; lvContacts.Items.Count; i++)

                if (lvContacts.Items[i].ToString().Contains(txtSearch.Text.ToLower()))
                {
                    lvContacts.Items[i].BackColor = Color.CornflowerBlue;
                }
        }
</code></pre>

<p>Help thank fully received   ... John.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>johnt68</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/456942/search-listview-with-textbox-text-on-windows-form</guid>
		</item>
				<item>
			<title>PHP and HTML form to update a mysql database</title>
			<link>http://www.daniweb.com/web-development/php/threads/456940/php-and-html-form-to-update-a-mysql-database</link>
			<pubDate>Tue, 18 Jun 2013 15:06:55 +0000</pubDate>
			<description>Hi. I have HTML form and i need php code when i want to subtract something from coulmn in mysql database. Something like http://www.daniweb.com/web-development/php/threads/101739/using-php-and-html-forms-to-update-a-mysql-database MY FORM - HTML &lt;form action=&quot;objednat_potvrdenie.php&quot; method=&quot;post&quot;&gt; Meno: &lt;input type=&quot;text&quot; name=&quot;meno&quot;&gt;&lt;br&gt; Priezvisko: &lt;input type=&quot;text&quot; name=&quot;prie&quot;&gt;&lt;br&gt; Mesto: &lt;input type=&quot;text&quot; name=&quot;mesto&quot;&gt;&lt;br&gt; Ulica: &lt;input type=&quot;text&quot; name=&quot;ulica&quot;&gt;&lt;br&gt; PSČ: &lt;input type=&quot;text&quot; ...</description>
			<content:encoded><![CDATA[ <p>Hi. I have HTML form and i need php code when i want to subtract something from coulmn in mysql database.<br />
Something like</p>

<pre><code><a href="http://www.daniweb.com/web-development/php/threads/101739/using-php-and-html-forms-to-update-a-mysql-database" rel="nofollow">http://www.daniweb.com/web-development/php/threads/101739/using-php-and-html-forms-to-update-a-mysql-database</a>
</code></pre>

<p>MY FORM - HTML</p>

<pre><code>&lt;form action="objednat_potvrdenie.php" method="post"&gt;

Meno: &lt;input type="text" name="meno"&gt;&lt;br&gt;
Priezvisko: &lt;input type="text" name="prie"&gt;&lt;br&gt;
Mesto: &lt;input type="text" name="mesto"&gt;&lt;br&gt;
Ulica: &lt;input type="text" name="ulica"&gt;&lt;br&gt;
PSČ: &lt;input type="text" name="psc"&gt;&lt;br&gt;
Počet kusov: &lt;input type="text" name="p_k" id="p_k"&gt;&lt;br&gt;
Kód produktu: &lt;input type="text" name="k_p" id="k_p"&gt;&lt;br&gt;

&lt;input type="submit" value="Objednať"&gt;

&lt;/form&gt; 
</code></pre>

<p>I want ask for sql, php, and demo pleaseee.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>careaa.fractal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456940/php-and-html-form-to-update-a-mysql-database</guid>
		</item>
				<item>
			<title>put python variable into sqlite3</title>
			<link>http://www.daniweb.com/software-development/python/threads/456939/put-python-variable-into-sqlite3</link>
			<pubDate>Tue, 18 Jun 2013 14:50:01 +0000</pubDate>
			<description>I have 2 functions, one of which works and one of which doesn't. I do not understand this, because the only difference is that the second function puts in just the name of the variable, where the 1st function puts in the value. There is only one line to build ...</description>
			<content:encoded><![CDATA[ <p>I have 2 functions, one of which works and one of which doesn't.  I do not understand this, because the only difference is that the second function puts in just the name of the variable, where the 1st function puts in the value.</p>

<p>There is only one line to build for the test from a given dataset, but the content function has several lines.  I am using a for loop to handle the iteration through the csv to get content, but it fails to get anything but the first line.  There is no error traceback from this code, unless I take the quotes from around the vuln_0 variable name <code>cur.execute("INSERT INTO vulnerabilities(IP) VALUES ('vuln_0');")</code><br />
With no quotes, it errors out in sqlite3, saying "there is no column vuln_0."</p>

<pre><code class="language-py">def load_titles(f, d):
    print("This is da 'd,' y\'all! ", d )
    filename = f
    titles=[]
    with open(filename, 'rb') as mycsv:
            reader = csv.reader(mycsv)
            counter = 0
            for counter,row in enumerate(reader):
                if counter &lt; 1: continue
                if counter &gt; 6: break
                titles.append(row)

            tests = (1, titles[0][0], titles[0][1], titles[0][2], titles[0][3], titles[0][4], titles[0][5], titles[0][6], titles[1][0], titles[1][1], titles[1][2], titles[4][0], titles[4][1], titles[4][2], titles[4][3], titles[4][4], titles[4][5], titles[4][6]),

    try:
        con = lite.connect(d)
        with con:
            cur = con.cursor()    
            cur.execute("DROP TABLE IF EXISTS tests")
            cur.execute("CREATE TABLE tests(Id INTEGER PRIMARY KEY, Corp TEXT, Address_1 TEXT, Address_2 TEXT, City TEXT, State TEXT, Country TEXT, Postal_Code TEXT, Requester TEXT, Code_1 TEXT, Role TEXT, Asset_Groups TEXT, IPs TEXT, Active_Hosts INT, Hosts_Matching_Filters INT, Trend_Analysis TEXT, Date_Range TEXT, Asset_Tags TEXT)")
            cur.executemany("INSERT INTO tests VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", tests)

    except lite.Error, e:
        if con:
            con.rollback()
        print "Error %s:" % e.args[0]
        sys.exit(1)

    finally:
        if con:
            con.close() 

def load_content(f, d):
    filename = f

    with open(filename, 'rb') as mycsv:
        print(filename)
        id = 1
        reader = csv.reader(mycsv)
        counter = 0
        for counter,row in enumerate(reader):
#           con = lite.connect(d)
            if counter &gt; 8: 
                continue
            print(row)
#           chine = (test.tests.id, row[0],row[2], row[4])
#           vuln = (id, row[0],row[1], row[2], row[3], row[4], row[5], row[6], row[7], row[8], row[9], row[10], row[11], row[12], row[13], row[14], row[15], row[16], row[17])

            vuln_0 = str(row[0])
            vuln_1 = str(row[1])
            vuln_2 = str(row[2])
            vuln_3 = str(row[3])
            vuln_4 = str(row[4])
            vuln_5 = str(row[5])
            vuln_6 = str(row[6])
            vuln_7 = str(row[7])
            vuln_8 = str(row[8])
            vuln_9 = str(row[9])
            vuln_A = str(row[10])
            vuln_B = str(row[11])
            vuln_C = str(row[12])
            vuln_D = str(row[13])
            vuln_E = str(row[14])
            vuln_F = str(row[15])
            vuln10 = str(row[16])
            vuln11 = str(row[17])

            try:
                con = lite.connect(d)

                with con:
                    cur = con.cursor()    

                    cur.execute("DROP TABLE IF EXISTS vulnerabilities")
                    cur.execute("CREATE TABLE vulnerabilities(Id INTEGER PRIMARY KEY, IP TEXT, CVSS_Base TEXT, NetBIOS TEXT, OS TEXT,  QID TEXT, First_Detected TEXT, Last_Detected TEXT, Port TEXT, CVE_ID TEXT, Vendor_Reference TEXT, Bug_traq_ID TEXT, Threat TEXT, Impacts TEXT, Solution TEXT, Exploitability TEXT, Associated_Malware TEXT, Results TEXT, PCI_Vuln TEXT)")

                    cur.execute("INSERT INTO vulnerabilities(IP) VALUES ('vuln_0');")
                    con.commit()

            except lite.Error, e:
                if con:
                    con.rollback()
                    print "Error %s:" % e.args[0]
                    sys.exit(1)

            finally:
                if con:
                    con.close() 

#
</code></pre>

<p>There are 19 values I want to enter, but for now, only 0th value is being entered into the db.<br />
The first iteration of the for loop runs, but nothing else.</p>

<p>A data file you could use: <a href="https://github.com/wolf29/csv-edit/blob/master/mouse.csv" rel="nofollow">https://github.com/wolf29/csv-edit/blob/master/mouse.csv</a><br />
The source: <a href="https://github.com/wolf29/csv-edit/blob/master/test0813.py" rel="nofollow">https://github.com/wolf29/csv-edit/blob/master/test0813.py</a></p>

<p>This is python 2.7.3.  It has occurred to me that I might be mixing ver 2.x and 3.x in my code.</p>
 ]]></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/456939/put-python-variable-into-sqlite3</guid>
		</item>
				<item>
			<title>how to convert hex to arabic string ?</title>
			<link>http://www.daniweb.com/software-development/c/threads/456938/how-to-convert-hex-to-arabic-string-</link>
			<pubDate>Tue, 18 Jun 2013 14:46:02 +0000</pubDate>
			<description>I need help writing a function to convert hex to arabic string to Example get string this : &quot;D8B1D8B5D98AD8AFD8A7D984D8B1D982D985&quot; and return this : رصيد الرقم in english-(Balance figure). **only c code** TNX</description>
			<content:encoded><![CDATA[ <p>I need help writing a function to convert hex to arabic string</p>

<p>to Example get string this : "D8B1D8B5D98AD8AFD8A7D984D8B1D982D985" and return this : رصيد الرقم in english-(Balance figure).<br /><strong>only c code</strong><br />
TNX</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>eladt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/456938/how-to-convert-hex-to-arabic-string-</guid>
		</item>
				<item>
			<title>Is DaniWeb *VERY* slow for you?</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/456936/is-daniweb-very-slow-for-you</link>
			<pubDate>Tue, 18 Jun 2013 14:20:37 +0000</pubDate>
			<description>Is DaniWeb extremely slow for you?? It's alternating for me between pages being speedy and taking absolutely forever to load. Is this on my end with my ISP?</description>
			<content:encoded><![CDATA[ <p>Is DaniWeb extremely slow for you?? It's alternating for me between pages being speedy and taking absolutely forever to load. Is this on my end with my ISP?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/daniweb-community-feedback/26">DaniWeb Community Feedback</category>
			<dc:creator>Dani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/daniweb-community-feedback/threads/456936/is-daniweb-very-slow-for-you</guid>
		</item>
				<item>
			<title>How to insert data into database using asp.net c# ?</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456935/how-to-insert-data-into-database-using-asp.net-c-</link>
			<pubDate>Tue, 18 Jun 2013 14:01:00 +0000</pubDate>
			<description>Hello friends...here i contribute code of how to insert data into database using asp.net c#. Click on the following link [Click Here](http://dotnet-php.blogspot.com/2013/05/insert-data-into-database-using-aspnet-c.html)</description>
			<content:encoded><![CDATA[ <p>Hello friends...here i contribute code of how to insert data into database using asp.net c#.</p>

<p>Click on the following link</p>

<p><a href="http://dotnet-php.blogspot.com/2013/05/insert-data-into-database-using-aspnet-c.html" rel="nofollow">Click Here</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>vatsal193</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456935/how-to-insert-data-into-database-using-asp.net-c-</guid>
		</item>
				<item>
			<title>in html web design</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/456934/in-html-web-design</link>
			<pubDate>Tue, 18 Jun 2013 12:51:41 +0000</pubDate>
			<description>hello guys i ask question it easy to use html language to web design? or they have other language that easy to use guyz i ask question again they have site that i can learn about html web design??</description>
			<content:encoded><![CDATA[ <p>hello guys</p>

<p>i ask question it easy to use html language to web design? or they have other language that easy to use</p>

<p>guyz  i ask question again they have site that i can learn about html web design??</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>Shierlyn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/456934/in-html-web-design</guid>
		</item>
				<item>
			<title>More/Less menu</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/456933/moreless-menu</link>
			<pubDate>Tue, 18 Jun 2013 12:44:42 +0000</pubDate>
			<description>I want vertical menu with More or Less option same like in http://www.bayt.com/en/international/jobs/ I tried to find out.. but no luck..</description>
			<content:encoded><![CDATA[ <p>I want vertical menu with More or Less option same like in <a href="http://www.bayt.com/en/international/jobs/" rel="nofollow">http://www.bayt.com/en/international/jobs/</a></p>

<p>I tried to find out..  but no luck..</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>edwin.thomson1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/456933/moreless-menu</guid>
		</item>
				<item>
			<title>Difference between instance and object in .NET</title>
			<link>http://www.daniweb.com/software-development/threads/456932/difference-between-instance-and-object-in-.net</link>
			<pubDate>Tue, 18 Jun 2013 12:38:16 +0000</pubDate>
			<description>Hi, Plz explain the difference between instance and object in .NET, if possible explain with example. Thanks in Advance</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>Plz explain the difference between instance and object in .NET, if possible explain with example.</p>

<p>Thanks in Advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>virendra_sharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/threads/456932/difference-between-instance-and-object-in-.net</guid>
		</item>
				<item>
			<title>Random Images from shake Detector</title>
			<link>http://www.daniweb.com/software-development/mobile-development/threads/456931/random-images-from-shake-detector</link>
			<pubDate>Tue, 18 Jun 2013 12:09:08 +0000</pubDate>
			<description>This is the code I have built so far. The shake detector is complete and works, I just don't know what to write for the execution code at line 26. I have 10 images stored in my res/drawable-hdpi folder, entitle 1-10 and I want to change between them randomly when ...</description>
			<content:encoded><![CDATA[ <p>This is the code I have built so far. The shake detector is complete and works, I just don't know what to write for the execution code at line 26. I have 10 images stored in my res/drawable-hdpi folder, entitle 1-10 and I want to change between them randomly when I shake it. I will eventually try and implement some transistions betwen images, so any advice on that would be amazing!</p>

<pre><code>import java.util.Random;

import android.os.Bundle;

import android.app.Activity;

import android.view.Menu;


public class MainActivity extends Activity {

    private ShakeDetector mShaker;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);


        //Shake Detection
         mShaker = new ShakeDetector(this);
            mShaker.setOnShakeListener(new ShakeDetector.OnShakeListener () {
              public void onShake()
              {
                //Code here is processed after shake.  

              }
            });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/mobile-development/181">Mobile Development</category>
			<dc:creator>snapper1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/mobile-development/threads/456931/random-images-from-shake-detector</guid>
		</item>
				<item>
			<title>View Excel spreadsheet in ASP.net with dynamic labels</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456930/view-excel-spreadsheet-in-asp.net-with-dynamic-labels</link>
			<pubDate>Tue, 18 Jun 2013 11:51:08 +0000</pubDate>
			<description>My company is using a simple spreadsheet to write down things from control surveys. Then the data is beeing saved in a big and useless program. Since the data is beeing saved to a database, I want to view this same spreadsheet in a ASP.NET page, with the textboxes filled ...</description>
			<content:encoded><![CDATA[ <p>My company is using a simple spreadsheet to write down things from control surveys. Then the data is beeing saved in a big and useless program. Since the data is beeing saved to a database, I want to view this same spreadsheet in a ASP.NET page, with the textboxes filled in. The spreadsheet is so complex graphicly, so i don't think gridview would be the way to go.</p>

<p>Is there anybody that have done something similar. I've been thinking about make a picturebox of the spreadsheet and then have dynamic labels upon it, but I think there should be smarter ways.</p>

<p>I have atatched the file. The survey is beeing done multiple times on the same area, so i wan't the user to be able to choose which date he want to view. But of course this is done simple in SQL.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>rubenrav</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456930/view-excel-spreadsheet-in-asp.net-with-dynamic-labels</guid>
		</item>
				<item>
			<title>Application Exit</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/456929/application-exit</link>
			<pubDate>Tue, 18 Jun 2013 11:36:19 +0000</pubDate>
			<description>Greetings I have a MDI application that when run for the first time it asks for the activation code by showing the main Windows Form (MDI parent) and another activation acquire code Windows Form showed above the main Windows Form using the ShowDialog() method. The main Windows Form including a ...</description>
			<content:encoded><![CDATA[ <p>Greetings</p>

<p>I have a MDI application that when run for the first time it asks for the activation code by showing the main Windows Form (MDI parent) and another activation acquire code Windows Form showed above the main Windows Form using the ShowDialog() method. The main Windows Form including a tool strip button when I exit the activation Windows Form by clicking the X upper right corner button, that tool strip is disabled and I cannot use it to exit the application and when I click the X upper right corner button of the main Windows Form to exit the application it gives me an error Windows report message informing that "vshost-clr2.exe has stopped working" when I looked for the main Windows form FormClosed event I found that line of code</p>

<pre><code class="language-cs">System.Environment.Exit(0)
</code></pre>

<p>What is the problem the causing such error "vshost-clr2.exe has stopped working" when clicking the X upper right corner of the main Windows Form (the MDI parent)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>AmrMohammed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/456929/application-exit</guid>
		</item>
				<item>
			<title>Java source code for school project</title>
			<link>http://www.daniweb.com/software-development/game-development/threads/456928/java-source-code-for-school-project</link>
			<pubDate>Tue, 18 Jun 2013 11:31:12 +0000</pubDate>
			<description>Hello, I am a 3rd year Computer Science major and taking a introduction to game design course. The project from this week is defined as follows: 1. Java game 2. Use the jMonkey SDK 3. &quot;use an existing game engine and map to modify and create your own level&quot; 4. ...</description>
			<content:encoded><![CDATA[ <p>Hello, I am a 3rd year Computer Science major and taking a introduction to game design course. The project from this week is defined as follows:</p>

<ol><li>Java game</li>
<li>Use the jMonkey SDK</li>
<li>"use an existing game engine and map to modify and create your own level"</li>
<li>"The level you create must be unique, realistic and playable by multiple players"</li>
</ol>

<p>My problem: I have spent 2 days looking for source code for java games and have not found any that fit the criteria, or are on sites that require a monthly subscription. I found some games, but they are JAR files and I don't know a way to change the files from that format. I HAVE looked at the jMonkey help files and didn't find anything.</p>

<p>A website, thread or instructions on how to modify a JAR file would be appreciated.</p>

<p>Thank you</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/game-development/71">Game Development</category>
			<dc:creator>Stachys</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/game-development/threads/456928/java-source-code-for-school-project</guid>
		</item>
				<item>
			<title>hp pavillon g6 will not charge and displays plugged in, charging</title>
			<link>http://www.daniweb.com/hardware-and-software/threads/456927/hp-pavillon-g6-will-not-charge-and-displays-plugged-in-charging</link>
			<pubDate>Tue, 18 Jun 2013 11:23:14 +0000</pubDate>
			<description>hi y'all, my hp pavillon g6, displays plugged in, charging. but never increases. changed the battery and charger, still wont work. i've tried the powerbutton for 30secs stuff any help will be appreciated</description>
			<content:encoded><![CDATA[ <p>hi y'all,<br />
my hp pavillon g6, displays plugged in, charging. but never increases. changed the battery and charger, still wont work.<br />
i've tried the powerbutton for 30secs stuff<br />
any help will be appreciated</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/1">Hardware and Software</category>
			<dc:creator>akinfemi.aluko</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/threads/456927/hp-pavillon-g6-will-not-charge-and-displays-plugged-in-charging</guid>
		</item>
				<item>
			<title>Search Engine Submission</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456926/search-engine-submission</link>
			<pubDate>Tue, 18 Jun 2013 11:19:10 +0000</pubDate>
			<description>What is Search Engine Submission?</description>
			<content:encoded><![CDATA[ <p>What is Search Engine Submission?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>Lisabraker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456926/search-engine-submission</guid>
		</item>
				<item>
			<title>Deduct food recipes from the main inventroy?</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/456925/deduct-food-recipes-from-the-main-inventroy</link>
			<pubDate>Tue, 18 Jun 2013 11:12:25 +0000</pubDate>
			<description>Hi all! I'm stuck somewhere. I have a table for Inventory (which contains the available amount of each food component) What I want to do: If I select a certain food (say salad) I want to be able to deduct the components (amount) of 'salad' from the inventory table. Consider ...</description>
			<content:encoded><![CDATA[ <p>Hi all!</p>

<p>I'm stuck somewhere. I have a table for Inventory (which contains the available amount of each food component)<br />
What I want to do: If I select a certain food (say salad) I want to be able to deduct the components (amount) of 'salad' from the inventory table.</p>

<p>Consider this:<br />
Salad is made up of 20mil of water, 50 of oil and 100gm of onion (just an example)<br />
When I give someone a Salad, I want to be able to deduct 20mil of water, 50 of oil and 100gm of onion from the inventory table. (So that I know how much of each item in my inventory is left)</p>

<p>The code is to allow these recipes of Salad to be changed/deleted/some others added into it. (Flexibility). I've found this difficult since in order to allow this flexibility, I can't just write that deduction in code as something that won't change forever.(More recipes can be added in the future)</p>

<p>Does anyone has an idea on how to do this?</p>

<p>I use MySQL with VB.NET</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>savedlema</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/456925/deduct-food-recipes-from-the-main-inventroy</guid>
		</item>
				<item>
			<title>Allocate handle</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/456923/allocate-handle</link>
			<pubDate>Tue, 18 Jun 2013 11:08:17 +0000</pubDate>
			<description>What are the function of SQLAllocHandle() SQLSetEnvAttr() SQLFreeHandle() SQLBrowseConnect() Can any onw help me understand them in detail I searched and understood them slightly. However, I'm reading a project without a documentation in which they are used and I'm confused too.... much. Thanks in advance</description>
			<content:encoded><![CDATA[ <p>What are the function of</p>

<p>SQLAllocHandle()<br />
SQLSetEnvAttr()<br />
SQLFreeHandle()<br />
SQLBrowseConnect()</p>

<p>Can any onw help me understand them in detail I searched and understood them slightly. However, I'm reading a project without a documentation in which they are used and I'm confused too.... much.</p>

<p>Thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>AmrMohammed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/456923/allocate-handle</guid>
		</item>
				<item>
			<title>LAPTOP</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/456922/laptop</link>
			<pubDate>Tue, 18 Jun 2013 11:03:42 +0000</pubDate>
			<description>Hi to everyone! Long time hasn't been here. I have just purchassed new Laptop / Samsung 17&quot; NP350V5C-S09AU-Intel® Core i7 8GB Memory_1TB HDD 3.4GHz, WINDOW 8 / and for my surprise it's working very slow, even have not installed any program. Take ages to boot, and when tried to run ...</description>
			<content:encoded><![CDATA[ <p>Hi to everyone! Long time hasn't been here. I have just purchassed new Laptop / Samsung 17" NP350V5C-S09AU-Intel® Core i7 8GB Memory_1TB HDD 3.4GHz, WINDOW 8 / and for my surprise it's working very slow, even have not installed any program. Take ages to boot, and when tried to run anything have to waiting long time. My old Toshiba with W7 is 10 times faster. Please, what's the problem? I paid 1K for it.</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>SerbOz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/456922/laptop</guid>
		</item>
				<item>
			<title>how get values for table from text files?</title>
			<link>http://www.daniweb.com/software-development/java/threads/456921/how-get-values-for-table-from-text-files</link>
			<pubDate>Tue, 18 Jun 2013 10:53:26 +0000</pubDate>
			<description>Hi, i making a program where I would read data from text files and store them in tables in myslq. In my program I would create the table with the fields and in these fields I would insert the values from the text file. My issue is that i don't ...</description>
			<content:encoded><![CDATA[ <p>Hi,<br />
i making a program where I would read data from text files and store them in tables in myslq.<br />
In my program I would create the table with the fields and in these fields I would insert the values from the text file.<br />
My issue is that i don't know how! I would explain you why! In my program I would create table with fields (ID, Name). The values of these fields must be taken from the text file. The form of the text file is the below:<br /><img src="/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy80Lzc3NjZiODYyMmQ2YWYzYjQ0NTAxYzc5YWNhNWZjNTI5LnBuZw%3D%3D/109" alt="7766b8622d6af3b44501c79aca5fc529" title="align-right" /></p>

<p>As you can see the ID is in the third row of the file and the Name is in the fifth. Could anyone help me how can I import the values for ID and Name in the table?How can i get these values?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>ef_mag</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456921/how-get-values-for-table-from-text-files</guid>
		</item>
				<item>
			<title>auto update Gridview </title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456920/auto-update-gridview-</link>
			<pubDate>Tue, 18 Jun 2013 10:51:37 +0000</pubDate>
			<description>Hi all i stuck with one problem i have gridview and values continuesly changing in database so i wanto to that it should automaticaly update that value in grid without making screen flik or postback to server scenario like stock market even if any value exeed then its max value ...</description>
			<content:encoded><![CDATA[ <p>Hi all</p>

<p>i stuck with one problem i have gridview and values continuesly changing in database so i wanto to that it should automaticaly update that  value in grid without making screen flik or postback to server scenario like stock market even if any value exeed then its max value it should be change cell colour to red i know use of timmer but it makes screen flik i want smooth flow so any body has any idea Please help me out</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>hirenpatel53</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456920/auto-update-gridview-</guid>
		</item>
				<item>
			<title>print text to form</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/456919/print-text-to-form</link>
			<pubDate>Tue, 18 Jun 2013 10:50:56 +0000</pubDate>
			<description>we use `Print` to print text to form in vb6 and dont know how to print text to window form in vb.net please explain how to achieve it . . .</description>
			<content:encoded><![CDATA[ <p>we use <code>Print</code> to print text to form in vb6<br />
and dont know how to print text to window form in vb.net<br />
please explain how to achieve it . . .</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Learner010</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/456919/print-text-to-form</guid>
		</item>
				<item>
			<title>How Convert Dynamic Asp into HTML?</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/456918/how-convert-dynamic-asp-into-html</link>
			<pubDate>Tue, 18 Jun 2013 10:48:49 +0000</pubDate>
			<description>Hello All, My friend just made one dynamic website in Asp.net but after the complete development he want to change complete website in HTML. So please suggest me any tools in a market that can replace to complete dynamic website into HTML. Please suggest me how we can do that? ...</description>
			<content:encoded><![CDATA[ <p>Hello All,</p>

<p>My friend just made one dynamic website in Asp.net but after the complete development he want to change complete website in HTML. So please suggest me any tools in a market that can replace to complete dynamic website into HTML. Please suggest me how we can do that?</p>

<p>Regards,<br />
David Kroj</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>davidkroj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/456918/how-convert-dynamic-asp-into-html</guid>
		</item>
				<item>
			<title>&#039;you are not connected to a network&#039;</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/456917/you-are-not-connected-to-a-network</link>
			<pubDate>Tue, 18 Jun 2013 10:46:07 +0000</pubDate>
			<description>`Inline Code Example Here` I I have a win xp3 desktop connected to internet but laptop win 7, 32 bit, wireless router belkin n 150,get error 'you are not connected to a network' Kindly suggest solutions to overcome this problem. ipconfig/all results are given below: Microsoft Windows [Version 6.1.7601] Copyright ...</description>
			<content:encoded><![CDATA[ <p><code>Inline Code Example Here</code></p>

<p>I</p>

<p>I have a win xp3 desktop connected to internet but laptop win 7, 32 bit, wireless router belkin n 150,get error 'you are not connected to a network' Kindly suggest solutions to overcome this problem. ipconfig/all results are given below:</p>

<pre><code>Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\hp&gt;ipconfig/all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : hp-HP
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Wireless LAN adapter Wireless Network Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter
   Physical Address. . . . . . . . . : 66-6D-57-70-16-0D
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
   Physical Address. . . . . . . . . : 44-6D-57-70-7C-3D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Realtek PCIe FE Family Controller
   Physical Address. . . . . . . . . : A0-B3-CC-BF-4C-C0
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Atheros AR9485 802.11b/g/n WiFi Adapter
   Physical Address. . . . . . . . . : 44-6D-57-70-16-0D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::18a1:ebb1:fc35:b94e%11(Preferred)
   Autoconfiguration IPv4 Address. . : 169.254.185.78(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 289697111
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-18-06-78-71-A0-B3-CC-BF-4C-C0

   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.{BC87B9EE-6294-46F9-8281-3209E970681E}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{F09597A5-6735-4C8D-B0E3-1B87FBD21A6E}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{243CB3CB-BC45-4EA0-A276-BFC9016732D5}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter 6TO4 Adapter:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft 6to4 Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{FDD9C01F-CA31-42CB-B25E-E702B250F62A}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

C:\Users\hp&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>manitm16</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/456917/you-are-not-connected-to-a-network</guid>
		</item>
				<item>
			<title>php code</title>
			<link>http://www.daniweb.com/web-development/php/threads/456915/php-code</link>
			<pubDate>Tue, 18 Jun 2013 10:26:34 +0000</pubDate>
			<description>hi guys i need help, i need php code about how to put a sound in website... thanks!!!</description>
			<content:encoded><![CDATA[ <p>hi guys<br />
i need help, i need php code about how to put a sound in website...<br />
thanks!!!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Ericson27</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456915/php-code</guid>
		</item>
				<item>
			<title>Comma Delimited String as Parameter in T-SQL</title>
			<link>http://www.daniweb.com/web-development/databases/ms-sql/threads/456914/comma-delimited-string-as-parameter-in-t-sql</link>
			<pubDate>Tue, 18 Jun 2013 10:23:05 +0000</pubDate>
			<description>Need some help here. I was trying to make a Stored Procedure in MS SQL 2008 which will make use of comma delimited string as Parameter in my WHERE [COLUMN] LIKE [PARAMETER] condition. Somehow, I was able to select rows of data from my DB table that matches the set ...</description>
			<content:encoded><![CDATA[ <p>Need some help here.</p>

<p>I was trying to make a Stored Procedure in MS SQL 2008 which will make use of comma delimited string as Parameter in my WHERE [COLUMN] LIKE [PARAMETER] condition.</p>

<p>Somehow, I was able to select rows of data from my DB table that matches the set of values I passed to the parameter however, Im not getting the ideal output from it.</p>

<p>Supposed I have a product 'BOLT &amp; CAP ORANGE' and 'BOLT &amp; CAP RED' in my PRODUCTS Table. Using C# as front end, if I typed "BOLT, ORANGE" in the search field I provided on my windows form, both products are being displayed. But what I need is that, whenever I type a string separated by comma in the search field, ONLY those products that has a "BOLT" and "ORANGE" words should be displayed, 'BOLT &amp; CAP ORANGE' for instance.</p>

<p>Is this possible?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/ms-sql/127">MS SQL</category>
			<dc:creator>draven07</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/ms-sql/threads/456914/comma-delimited-string-as-parameter-in-t-sql</guid>
		</item>
				<item>
			<title>worm duplicating a file</title>
			<link>http://www.daniweb.com/software-development/c/threads/456913/worm-duplicating-a-file</link>
			<pubDate>Tue, 18 Jun 2013 10:00:22 +0000</pubDate>
			<description>Hi all, I wanted to create a computer warm which create a file all over a network for learning purpose. But have no idea where to start. Can anyone guide me through how to create a simple one?. Any examples would be great.. thanks..</description>
			<content:encoded><![CDATA[ <p>Hi all,</p>

<p>I wanted to create a computer warm which create a file all over a network for learning purpose. But have no idea where to start. Can anyone guide me through how to create a simple one?. Any examples would be great.. thanks..</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>baby_c</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/456913/worm-duplicating-a-file</guid>
		</item>
				<item>
			<title>my project on visual basic</title>
			<link>http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/456911/my-project-on-visual-basic</link>
			<pubDate>Tue, 18 Jun 2013 09:49:27 +0000</pubDate>
			<description>I have a problem during making my project . the problem is I programmed it like if we press 123 a message box pops saying something when I type 456 I programmed it like a msgbox pops up and says something but when I run it the first time I ...</description>
			<content:encoded><![CDATA[ <p>I have a problem during making my project . the problem is I programmed it like if we press 123 a message box pops saying something when I type 456 I programmed it like a msgbox pops up and says something but when I run it the first time I press 123 the thing pops up but when I type 456 the 123 msgbox pops up and then 456 msgbox pops up HELP!!!!</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>rushimaadhav</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/456911/my-project-on-visual-basic</guid>
		</item>
				<item>
			<title>Without Backlinks - How website can be PR3</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456903/without-backlinks-how-website-can-be-pr3</link>
			<pubDate>Tue, 18 Jun 2013 08:32:16 +0000</pubDate>
			<description>hi chap: I completely confused, how can website be pr3 without any backlinks. Guys can you help me out, what will be the reasons. i can clearly see, there is no backlinks for the website and its pr3. how?</description>
			<content:encoded><![CDATA[ <p>hi chap:<br />
I completely confused, how can website be pr3 without any backlinks. Guys can you help me out, what will be the reasons. i can clearly see, there is no backlinks for the website and its pr3. how?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>lara1anjela</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456903/without-backlinks-how-website-can-be-pr3</guid>
		</item>
				<item>
			<title>How important are meta tags now?</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456902/how-important-are-meta-tags-now</link>
			<pubDate>Tue, 18 Jun 2013 08:30:38 +0000</pubDate>
			<description>How important are meta tags now? Should we use Meta keyword and description in websites?</description>
			<content:encoded><![CDATA[ <p>How important are meta tags now?<br />
Should we use Meta keyword and description in websites?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>lara1anjela</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456902/how-important-are-meta-tags-now</guid>
		</item>
				<item>
			<title>pr backlinks good or bad?</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456901/pr-backlinks-good-or-bad</link>
			<pubDate>Tue, 18 Jun 2013 08:28:29 +0000</pubDate>
			<description>pr backlinks good or bad? Hi friends: pr back-links getting good or Google penalize my sites?</description>
			<content:encoded><![CDATA[ <p>pr backlinks good or bad?<br />
Hi friends:</p>

<p>pr back-links getting good or Google penalize my sites?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>lara1anjela</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456901/pr-backlinks-good-or-bad</guid>
		</item>
				<item>
			<title>IP blacklisted</title>
			<link>http://www.daniweb.com/hardware-and-software/networking/threads/456899/ip-blacklisted</link>
			<pubDate>Tue, 18 Jun 2013 07:59:40 +0000</pubDate>
			<description>I was registering on joomla.org and I got errors as blacklisted ip/username/email and after that I registered from mobile and did fine with same details. After searching for a while it looked like my ISP is blocked?! Its totally new to me, can anyone tell me whats this exactly and ...</description>
			<content:encoded><![CDATA[ <p>I was registering on joomla.org and I got errors as blacklisted ip/username/email and after that I registered from mobile and did fine with same details. After searching for a while it looked like my ISP is blocked?!<br />
Its totally new to me, can anyone tell me whats this exactly and if I can do something as some sites say that my IP is at risk.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/networking/13">Networking</category>
			<dc:creator>Sahil89</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/networking/threads/456899/ip-blacklisted</guid>
		</item>
				<item>
			<title>Making a dvd management using C++</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456898/making-a-dvd-management-using-c</link>
			<pubDate>Tue, 18 Jun 2013 07:30:05 +0000</pubDate>
			<description>friends please do me a help, please solve this: All class must have encapsulation, constructor, destructor and in any one solution you must have to use operator overloading 1) Define a class name DVD_DB. Include the following members. `DATA MEMBERS:` Name of DVD – private character array, size 10 Price ...</description>
			<content:encoded><![CDATA[ <p>friends please do me a help, please solve this:<br />
All class must have encapsulation, constructor, destructor and in any one solution you must have to use operator overloading</p>

<p>1) Define a class name DVD_DB. Include the following members.<br /><code>DATA MEMBERS:</code><br />
Name of DVD – private character array, size 10<br />
Price – private double variable<br />
Quantity – private int variable<br />
A private static int variable to keep track of how many DVD have been created so far.<br /><code>MEMBER FUNCTIONS:</code><br />
To assign initial values<br />
To set price and quantity<br />
To get price and quantity<br />
To Print DVD<br />
To display how many DVD has been created so far.</p>

<p>In main function use a DVD array and demonstrate a DVD shop. i.e. User can choose a DVD &amp; buy it, when a DVD is sold the Quantity goes down.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>rakibtg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456898/making-a-dvd-management-using-c</guid>
		</item>
				<item>
			<title>Extract Image and text from xml files</title>
			<link>http://www.daniweb.com/software-development/python/threads/456897/extract-image-and-text-from-xml-files</link>
			<pubDate>Tue, 18 Jun 2013 07:26:31 +0000</pubDate>
			<description>Hello guys, Please how can I read xml files and extract image store in it and save it as .jpeg in a specified folder. Also how to export all the other fields to .csv or .txt file. Thank you.</description>
			<content:encoded><![CDATA[ <p>Hello guys,</p>

<p>Please how can I read xml files and extract image store in it and save it as .jpeg in a specified folder. Also how to export all the other fields to .csv or .txt file.</p>

<p>Thank you.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>ibpet11</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/456897/extract-image-and-text-from-xml-files</guid>
		</item>
				<item>
			<title>Problems using JAX-WS 2.1 and JAXB 2.1 with JDK 6</title>
			<link>http://www.daniweb.com/software-development/java/threads/456896/problems-using-jax-ws-2.1-and-jaxb-2.1-with-jdk-6</link>
			<pubDate>Tue, 18 Jun 2013 06:34:23 +0000</pubDate>
			<description>When using JAX-WS 2.1 and JAXB 2.1 with JDK 6, im faced with lot of issues. To use JAX-WS 2.1 with JDK 6, newer versions of API jars (JAX-WS 2.1 and JAXB 2.1 API jars) need to be in bootclasspath before rt.jar.The only way to achieve this would be by ...</description>
			<content:encoded><![CDATA[ <p>When using JAX-WS 2.1 and JAXB 2.1 with JDK 6, im faced with lot of issues.<br />
To use JAX-WS 2.1 with JDK 6, newer versions of API jars (JAX-WS 2.1 and JAXB 2.1 API jars) need to be in bootclasspath before rt.jar.The only way to achieve this would be by endorsing<br />
To do this you can use Java endorsed mechanism to override whats in Java platform. See <a href="http://java.sun.com/j2se/1.5.0/docs/guide/standards/." rel="nofollow">http://java.sun.com/j2se/1.5.0/docs/guide/standards/.</a></p>

<p>As in my case doing so can have unintended consequences on other applications or other areas of the server, so it bares some risk.<br />
Hence could please advice if there is an alternative to the above query without having to add an endorsed folder in my tomcat directory.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>screenedcreamy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456896/problems-using-jax-ws-2.1-and-jaxb-2.1-with-jdk-6</guid>
		</item>
				<item>
			<title>rpm</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/456895/rpm</link>
			<pubDate>Tue, 18 Jun 2013 06:30:53 +0000</pubDate>
			<description>can someone really explain to me what rpm command does in linux</description>
			<content:encoded><![CDATA[ <p>can someone really explain to me what rpm command does in linux</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>emenyke</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/456895/rpm</guid>
		</item>
				<item>
			<title>Pwning DaniWeb: the search is on for the God of Code</title>
			<link>http://www.daniweb.com/software-development/news/456894/pwning-daniweb-the-search-is-on-for-the-god-of-code</link>
			<pubDate>Tue, 18 Jun 2013 06:24:44 +0000</pubDate>
			<description>DaniWeb, the 10 year old IT discussion community with more than a million members, is always looking forward and never stops introducing new features and functions for users. When spammers managed to get the better of the (highly customised) vBulletin forum platform which had been driving DaniWeb since the get ...</description>
			<content:encoded><![CDATA[ <p>DaniWeb, the 10 year old IT discussion community with more than a million members, is always looking forward and never stops introducing new features and functions for users. When spammers managed to get the better of the (highly customised) vBulletin forum platform which had been driving DaniWeb since the get go, founder and CEO Dani Horowitz got the better of the spammers by re-coding the entire forum platform from the ground up. As a result, DaniWeb users not only got the benefit of a much slicker interface designed specifically for their needs, but the team of volunteer moderators got to go back to spending their time helping the community instead of fighting spam fires.</p>

<p>Being primarily a community of developers and programmers, DaniWeb was historically missing one rather obvious feature: an Application Programming Interface. That glaring gap was plugged recently when Dani announced the arrival of an official DaniWeb API that enables members to put their coding skills to good use and build the DaniWeb app that they have always wanted, access DaniWeb the way they want and manipulate DaniWeb data in new and creative ways. Creativity that quickly became apparent when, within days of the API being made public, a DaniWeb moderator known as <a href="http://www.daniweb.com/members/120589/diafol" rel="nofollow">diafol</a> (which means Devil in Welsh, and this guy is certainly a coding devil that's for sure) <a href="http://dw.diafol.org/en/home/" rel="nofollow">showcased a number of applications</a> including a badge builder for example.</p>

<p><img src="/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8wLzNiOTA0OTM2ZWNjODk2YTljMzJiYjYxYzcxZTlkYTQwLmpwZw%3D%3D/500" alt="3b904936ecc896a9c32bb61c71e9da40" title="3b904936ecc896a9c32bb61c71e9da40" /></p>

<p>The API is very robust and capable of duplicating most read capabilities of the website itself. Additionally, there is some limited write functionality. API requests return either JSON or JSONP (for Javascript compatibility), and there is also support for OAuth 2.0 (both serverside and clientside implementations).</p>

<p>So what is all that stuff about 'Pwning DaniWeb' and being the 'God of Code' about then? Well, in order to help get the creative coding juices flowing, DaniWeb has launched a competition to find the best use of that newly launched API.  As well as the kudos of exposing those programming skills to your peers in the DaniWeb community, the winners will also share in a $500 prize fund. The winner gets a $300 Amazon gift certificate, with a second place prize of a $125 Amazon gift certificate and third place gets a $75 Amazon gift certificate.</p>

<p>"There's a lot that you can do with our API. Essentially it allows your application (web, desktop, mobile, etc) to tap into DaniWeb's back end" says DaniWeb Founder and CEO, Dani Horowitz "Your own application can use DaniWeb's login mechanism, you can write a native mobile app for DaniWeb, you can create your own completely unique front-end for the site, there really are limitless possibilities". Limitless indeed. The only boundary to what can be done is your own creative flair. So whether you fancy developing an Android or iOS mobile app for DaniWeb, turning the award winning DaniWeb IT news editorial into a standalone digital newspaper, or something altogether more surprising, now is the opportunity to put your programming skills to the test.</p>

<p>Entry is open to all members of DaniWeb, old and new, with entries accepted until the end of August 31st, 2013 and voting taking place in September. Code submissions should be posted within the relevant code snippet library for their language whereas downloadable apps, websites, etc. should be posted within the Show Off Your Projects forum in the Business Exchange section. All submissions must be tagged with both 'daniweb-api' and 'daniweb-api-contest-submission' in order to be eligible.</p>

<p>More information, including usage examples, about the API is <a href="http://www.daniweb.com/api/home" rel="nofollow">available here</a>, and full documentation <a href="http://www.daniweb.com/api/documentation" rel="nofollow">can be found here</a>. There's also a busy thread <a href="http://www.daniweb.com/community-center/geeks-lounge/threads/451027/daniweb-api-developer-competition/" rel="nofollow">about the competition</a> itself in case you have any technical questions.</p>

<p>Remember though, the competition is only open to DaniWeb members, but as registration is free that really shouldn't be a problem for anyone who wants to get involved. So, will you pwn DaniWeb and be crowned the God of Code?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>happygeek</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/news/456894/pwning-daniweb-the-search-is-on-for-the-god-of-code</guid>
		</item>
				<item>
			<title>Backlings Got deleted</title>
			<link>http://www.daniweb.com/internet-marketing/threads/456893/backlings-got-deleted</link>
			<pubDate>Tue, 18 Jun 2013 06:20:48 +0000</pubDate>
			<description>From last few days my backlings has got reduced from 500 to just 5. This is showing in the links to my site in the webmaster tool. How is it happening?? Does google automatically deletes backlings??? What should i do know???</description>
			<content:encoded><![CDATA[ <p>From last few days my backlings has got reduced from 500 to just 5. This is showing in the links to my site in the webmaster tool. How is it happening?? Does google automatically deletes backlings???<br />
What should i do know???</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/25">Internet Marketing</category>
			<dc:creator>rambofen044</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/threads/456893/backlings-got-deleted</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> 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>
			</channel>
</rss>