<?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>Accelerated C++ 9-1. Exercise&#039;s context</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/457044/accelerated-c-9-1.-exercises-context</link>
			<pubDate>Thu, 20 Jun 2013 03:17:30 +0000</pubDate>
			<description>this is what the question said. // 9-1. Reimplement the Student_info class so that it calculates the // final grade when reading the student's record, and stores that grade // in the object. Reimplement the grade function to use this // precomputed value. this is what I thought! 1. Reimplement ...</description>
			<content:encoded><![CDATA[ <p>this is what the question said.</p>

<pre><code class="language-cpp">// 9-1. Reimplement the Student_info class so that it calculates the 
// final grade when reading the student's record, and stores that grade 
// in the object. Reimplement the grade function to use this
// precomputed value.
</code></pre>

<p>this is what I thought!</p>

<pre><code class="language-cpp">1. Reimplement Student_info class
1.1 calculate the final grade WHEN reading the student's record

2. store the result in an object.

3. reimplement grade function to use this precomputed value.
</code></pre>

<p>But, I thought the final grade is the returned result from the grade function. but now, on "3." it's telling me to reimplement grade function to use the "precomputed value".</p>

<p>There is also one variable named "final" referring to the final exam grade but the data taken raw from the user's input which is not seem to fit with "calculates" as it said in the exercise!</p>

<p>the code.<br />
<a href="http://speedy.sh/czKvs/Exercise2.9.1.rar" rel="nofollow">http://speedy.sh/czKvs/Exercise2.9.1.rar</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Vastor</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/457044/accelerated-c-9-1.-exercises-context</guid>
		</item>
				<item>
			<title>How to use .net matrik library</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/457043/how-to-use-.net-matrik-library</link>
			<pubDate>Thu, 20 Jun 2013 03:05:49 +0000</pubDate>
			<description>how to use .net matrik library to solve linear equation ?</description>
			<content:encoded><![CDATA[ <p>how to use .net matrik library to solve linear equation ?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>rizkiekaputra80</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/457043/how-to-use-.net-matrik-library</guid>
		</item>
				<item>
			<title>trung tam gia su tphcm</title>
			<link>http://www.daniweb.com/internet-marketing/promotion-and-marketing-plans/threads/457042/trung-tam-gia-su-tphcm</link>
			<pubDate>Thu, 20 Jun 2013 02:42:30 +0000</pubDate>
			<description> Trung tâm Gia sư Bảng Vàng là tập thể giáo viên nhiều kinh nghiệm, tâm huyết với nghề cùng các sinh viên giỏi, có năng khiếu sư phạm đến từ các trường đại học danh tiếng. Với phương châm không chỉ truyền đạt cho học sinh về mặt tri thức ...</description>
			<content:encoded><![CDATA[ <p>Trung tâm Gia sư Bảng Vàng là tập thể giáo viên nhiều kinh nghiệm, tâm huyết với nghề cùng các sinh viên giỏi, có năng khiếu sư phạm đến từ các trường đại học danh tiếng. Với phương châm không chỉ truyền đạt cho học sinh về mặt tri thức mà còn giáo dục những phẩm chất tốt đẹp nhằm giúp cho các em phát triển một cách toàn diện về cả tri thức và đạo đức tạo tiền đề cho sự thành công vượt bậc trong tương lai của con em quý vị.</p>

<ul><li>Bảng vàng là bảng danh dự lưu danh những người tài đức. Từ xa xưa, tên của các vị vua anh minh, trạng nguyên, hiền tài của đất nước được khắc ghi trên bảng vàng. Ngày nay, bảng vàng tượng trưng cho người thầy tài giỏi, tận tâm cũng là biểu tượng của danh dự, sự thành công và đỗ đạt...</li>
</ul>

<p><a href="http://giasudhsp.com/Trung-tam-gia-su-tphcm-806-tin-tuc.aspx" rel="nofollow">Click Here</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/promotion-and-marketing-plans/43">Promotion and Marketing Plans</category>
			<dc:creator>xuanhoa12345</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/promotion-and-marketing-plans/threads/457042/trung-tam-gia-su-tphcm</guid>
		</item>
				<item>
			<title>Spiceworks is using our API!!</title>
			<link>http://www.daniweb.com/community-center/threads/457041/spiceworks-is-using-our-api</link>
			<pubDate>Thu, 20 Jun 2013 02:35:12 +0000</pubDate>
			<description>Spiceworks, one of DaniWeb's advertisers, has just rolled out their DaniWeb API integration!! Check it out here: http://www.spiceworks.com/p/daniweb Please be sure to give suggestions :)</description>
			<content:encoded><![CDATA[ <p>Spiceworks, one of DaniWeb's advertisers, has just rolled out their DaniWeb API integration!!</p>

<p>Check it out here:</p>

<p><a href="http://www.spiceworks.com/p/daniweb" rel="nofollow">http://www.spiceworks.com/p/daniweb</a></p>

<p>Please be sure to give suggestions :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/3">Community Center</category>
			<dc:creator>Dani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/threads/457041/spiceworks-is-using-our-api</guid>
		</item>
				<item>
			<title>How to get content of input text from JSP to Java Class?</title>
			<link>http://www.daniweb.com/software-development/java/threads/457040/how-to-get-content-of-input-text-from-jsp-to-java-class</link>
			<pubDate>Thu, 20 Jun 2013 02:34:17 +0000</pubDate>
			<description>I have a JSP file and I want to get the value of the input text and send it to a java class. How can I do it? &lt;form name=&quot;boxSettingForm&quot; action=&quot;/ScanToBox/ScanJobServlet&quot; method=&quot;post&quot; &gt; &lt;div style=&quot;height: 417px; width: 790px; background-color: #ffffff; margin-left: 0px; margin-top: 0px;&quot;&gt; &lt;div style=&quot;height: 116px; &quot;&gt; &lt;br&gt;&lt;input id=&quot;boxName&quot; ...</description>
			<content:encoded><![CDATA[ <p>I have a JSP file and I want to get the value of the input text and send it to a java class. How can I do it?</p>

<pre><code class="language-java">&lt;form name="boxSettingForm" action="/ScanToBox/ScanJobServlet" method="post" &gt;
&lt;div style="height: 417px; width: 790px; background-color: #ffffff; margin-left: 0px; margin-top: 0px;"&gt;
&lt;div style="height: 116px; "&gt;
    &lt;br&gt;&lt;input id="boxName" value="BoxName" style="height: 49px; width:128px; font-size:16px; font-family:Albany; background-color:#D4D6D9" type="button" onfocus="this.blur()"&gt;
    *&lt;input id="boxName" style="text-align:left; font-size:24px; font-family:Albany; height: 47px; width: 624px" type="text" value="myBox"&gt;*
&lt;/div&gt;

&lt;input type="button" value="Start"
style="position: absolute; left: 250px; top: 220px; height: 80px; width: 280px; font-size: 16px; font-family: Albany; background-color: #D4D6D9"
onfocus="this.blur()" onclick="get_input()"&gt;&lt;/div&gt;
</code></pre>

<p>I want to get the value of the input text and send it to a java class.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>pmark019</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/457040/how-to-get-content-of-input-text-from-jsp-to-java-class</guid>
		</item>
				<item>
			<title>Hi , friends !!</title>
			<link>http://www.daniweb.com/community-center/community-introductions/threads/457039/hi-friends-</link>
			<pubDate>Thu, 20 Jun 2013 02:10:06 +0000</pubDate>
			<description>hi , i'm islam ,i'm studying computer science in faculty of computer and information, it's my first year , i'm 19 years old,i'm from egypt , i want to be professional in programming ,</description>
			<content:encoded><![CDATA[ <p>hi , i'm islam ,i'm studying computer science in faculty of computer and information, it's my first year , i'm 19 years old,i'm from egypt , i want to be professional in programming ,</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/community-introductions/165">Community Introductions</category>
			<dc:creator>islam.fci.3</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/community-introductions/threads/457039/hi-friends-</guid>
		</item>
				<item>
			<title>Removing Dual Boot.</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/457036/removing-dual-boot</link>
			<pubDate>Thu, 20 Jun 2013 00:21:31 +0000</pubDate>
			<description>I have Winodows 7 and 8 in dual boot. I wish to get rid of Windows 8. What should i do ?. I am aware that there are many tutorials available online. But I trust more on members of this forum. Please suggest a reliable link or steps to remove ...</description>
			<content:encoded><![CDATA[ <p>I have Winodows 7 and 8 in dual boot. I wish to get rid of Windows 8. What should i do ?.<br />
I am aware that there are many tutorials available online. But I trust more on members of this forum. Please suggest a reliable link or steps to remove Windows 8 without harming existing Windows 7.</p>

<p>Thanx.</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>Rahul47</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/457036/removing-dual-boot</guid>
		</item>
				<item>
			<title>Set cookie with an array as a value</title>
			<link>http://www.daniweb.com/web-development/php/threads/457035/set-cookie-with-an-array-as-a-value</link>
			<pubDate>Thu, 20 Jun 2013 00:11:44 +0000</pubDate>
			<description>I need to set a cookie with an array as a value. Is the best way to run serialize() on the data?</description>
			<content:encoded><![CDATA[ <p>I need to set a cookie with an array as a value. Is the best way to run serialize() on the data?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Dani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/457035/set-cookie-with-an-array-as-a-value</guid>
		</item>
				<item>
			<title>Comparing Arrays</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/457034/comparing-arrays</link>
			<pubDate>Wed, 19 Jun 2013 23:37:01 +0000</pubDate>
			<description>Hello, I'm having trouble with one of my coding assignments. I have to compare 2 arrays to see if they're identical. My code compiles fine, but i'm not getting the correct results. Mind you I'm in a beginner's course so I cannot have any advanced coding, I appreciate those suggestions, ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I'm having trouble with one of my coding assignments. I have to compare 2 arrays to see if they're identical. My code compiles fine, but i'm not getting the correct results. Mind you I'm in a beginner's course so I cannot have any advanced coding, I appreciate those suggestions, but again I cannot use them in my assignment.</p>

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

bool compare_arrays(int a[], int b[]);


int main()
{
    int i;
    int list1[5];
    int list2[5];

    cout &lt;&lt; "Please enter a series of numbers (up to 10) for your first array: " &lt;&lt; endl;
    cin &gt;&gt; list1[5];
    cout &lt;&lt; "Please enter a series of numbers (up to 10) for your second array: " &lt;&lt; endl;
    cin &gt;&gt; list2[5];

    cout &lt;&lt; "The arrays are: "
         &lt;&lt; compare_arrays(list1, list2)
         &lt;&lt; endl;

         return 0;
}

bool compare_arrays(int a[], int b[])
{

    bool answer = true;




    for (int i = 0; i &lt; a[i]; i++)
    {

        if(a[i] == b[i])
        {   
            return true;
        }

        else 
            return false;

    }




}
</code></pre>

<p>When I enter my array values, I keep getting "The arrays are: 0" I don't know what I'm doing wrong</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>eldiablo1121</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/457034/comparing-arrays</guid>
		</item>
				<item>
			<title>VB.NET/WPF: Loading image from a file (relative path)</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/457033/vb.netwpf-loading-image-from-a-file-relative-path</link>
			<pubDate>Wed, 19 Jun 2013 23:16:21 +0000</pubDate>
			<description>I'm having a heck of a time loading an image from the path where the program is being run. Dim image As New BitmapImage Dim imagePath As String = &quot;keepass.png&quot; image.BeginInit() image.UriSource = New Uri(imagePath, UriKind.Relative) image.EndInit() ProductImage.Source = image I can't seem to use a relative path to my ...</description>
			<content:encoded><![CDATA[ <p>I'm having a heck of a time loading an image from the path where the program is being run.</p>

<pre><code class="language-vb">    Dim image As New BitmapImage
    Dim imagePath As String = "keepass.png"
    image.BeginInit()
    image.UriSource = New Uri(imagePath, UriKind.Relative)
    image.EndInit()

    ProductImage.Source = image
</code></pre>

<p>I can't seem to use a relative path to my image. If I put an absolute value in there, it shows. I'm in debug mode and have the image in the debug folder. This <em>should</em> work, shouldn't it? I've had this problem in other projects too!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>ZeroZen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/457033/vb.netwpf-loading-image-from-a-file-relative-path</guid>
		</item>
				<item>
			<title>permission</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457031/permission</link>
			<pubDate>Wed, 19 Jun 2013 22:13:20 +0000</pubDate>
			<description>well how can i stop accessing a folder by using in vb in the page load(request.browser......etc) i used this before but i forgot how i m not talking about authentication but if u have other way or method to do that it would be better</description>
			<content:encoded><![CDATA[ <p>well<br />
how can i stop accessing a folder by using in vb in the page load(request.browser......etc)<br />
i used this before but i forgot how<br />
i m not talking about authentication<br />
but if u have other way or method to do that it would be better</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>samoslook</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457031/permission</guid>
		</item>
				<item>
			<title>running database on another computer</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/457030/running-database-on-another-computer</link>
			<pubDate>Wed, 19 Jun 2013 21:21:16 +0000</pubDate>
			<description>I've built an application that displays the contents of an access database in a datagrid and also a form which allows a user to add a new record to the database. When I tried to run the exe in the bin folder on another computer it displays an error when ...</description>
			<content:encoded><![CDATA[ <p>I've built an application that displays the contents of an access database in a datagrid and also a form which allows a user to add a new record to the database.<br />
When I tried to run the exe in the bin folder on another computer it displays an error when I try to add a new record to the database.<br />
It allows me to view the records in the datagrid no problem but will not run my query on a different computer. Any help would be greatly appreciated</p>

<p>This is the error that appears</p>

<blockquote>
<pre><code class="language-vb">Unhandled exception has occurred in your application. If you click continue the application will ignore this error and attempt to continue. if you click Quit the application will close immediately

Disk error

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.OleDb.OleDbException: Disk or network error.
   at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
   at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.OleDb.OleDbConnection.Open()
   at DTOptions.Options.Button1_Click(Object sender, EventArgs e) in D:\Visual Studio 2005\Projects\DTOptions\DTOptions\Options.vb:line 18
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message&amp; m)
   at System.Windows.Forms.ButtonBase.WndProc(Message&amp; m)
   at System.Windows.Forms.Button.WndProc(Message&amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
DTOptions
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///E:/DTOptions/DTOptions/bin/Debug/DTOptions.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------

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

For example:

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

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
</code></pre>
</blockquote>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>bryann</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/457030/running-database-on-another-computer</guid>
		</item>
				<item>
			<title>help read image and put pixel value to vector</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/457029/help-read-image-and-put-pixel-value-to-vector</link>
			<pubDate>Wed, 19 Jun 2013 20:56:45 +0000</pubDate>
			<description>hello everyone, I seek help please to find a program c + + that can read images from different types bmp, jpeg, png and put the pixels values in a vector, modified pixels valus, then saved the picture change to a different location, I inform you that I am working ...</description>
			<content:encoded><![CDATA[ <p>hello everyone, I seek help please to find a program c + + that can read images from different types bmp, jpeg, png and put the pixels values in a vector, modified pixels valus, then saved the picture change to a different location, I inform you that I am working on visual c + + 2010</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>one-unicorn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/457029/help-read-image-and-put-pixel-value-to-vector</guid>
		</item>
				<item>
			<title>Form action page</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/457028/form-action-page</link>
			<pubDate>Wed, 19 Jun 2013 20:52:23 +0000</pubDate>
			<description>Hello Now all the forms that i have made are like this &lt;form .... action=&quot;pagenamecheck.jsp&quot;&gt; ... &lt;/form&gt; So when someone send the form from the page 'pagename.jsp' i go to the 'pagenamecheck.jsp' and i do there the check and if there is something wrong i have to recreate all the ...</description>
			<content:encoded><![CDATA[ <p>Hello<br />
Now all the forms that i have made are like this</p>

<pre><code class="language-xhtml">&lt;form .... action="pagenamecheck.jsp"&gt;
...
&lt;/form&gt;
</code></pre>

<p>So when someone send the form from the page 'pagename.jsp' i go to the 'pagenamecheck.jsp' and i do there the check and if there is something wrong i have to recreate all the page 'pagename.jsp' to the 'pagenamecheck.jsp' to show the user the error. Is my way of having the form correct or i should change it?<br />
Thank you</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/web-design-html-and-css/15">Web Design, HTML and CSS</category>
			<dc:creator>xxmp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/457028/form-action-page</guid>
		</item>
				<item>
			<title>Displaying Data From A Drop Down List php</title>
			<link>http://www.daniweb.com/web-development/php/threads/457027/displaying-data-from-a-drop-down-list-php</link>
			<pubDate>Wed, 19 Jun 2013 20:25:58 +0000</pubDate>
			<description>I'm trying hard with displaying details from a selected option in a drop down list for my project. I have a drop down list which is populated from a MYSQLi query. I want the user to select an option and the values associated pulled from the database and displayed to ...</description>
			<content:encoded><![CDATA[ <p>I'm trying hard with displaying details from a selected option in a drop down list for my project.</p>

<p>I have a drop down list which is populated from a MYSQLi query. I want the user to select an option and the values associated pulled from the database and displayed to the user.</p>

<p>The dynamically populated drop down list is for "FirstName" of persons(Table Name) and when a user selects a name from the drop down list I want the record of that person to be to be displayed.</p>

<p>The code below is for dynamically populating the drop down list. The user clicks the button and goes on the next page which should create a table with the results. There is no Error, but no result as required too. I've tried alot now and don't know what to do.</p>

<p><strong>Drop Down list code</strong></p>

<pre><code>&lt;!DOCTYPE&gt;
&lt;html&gt;
&lt;head&gt;

&lt;title&gt;Update Data&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;form name="form_update" method="post" action="update_test.php"&gt;

&lt;?php
$con=mysqli_connect("localhost","root","","ismat_db");
//============== check connection
if(mysqli_errno($con))
{
    echo "Can't Connect to mySQL:".mysqli_connect_error();
}
else
{
    echo "Connected to mySQL&lt;/br&gt;";
}

//=============================

//This creates the drop down box

echo "&lt;select name= 'FirstName'&gt;";
echo '&lt;option value=""&gt;'.'--- Please Select Person ---'.'&lt;/option&gt;';

//$query=mysqli_query($con,"SELECT id,FirstName FROM persons");

$query = mysqli_query($con,"SELECT FirstName FROM persons");

$query_display = mysqli_query($con,"SELECT * FROM persons");

while($row=mysqli_fetch_array($query))
{
    echo "&lt;option value='". $row['id']."'&gt;".$row['FirstName']
 .'&lt;/option&gt;';

}

echo '&lt;/select&gt;';

?&gt; &lt;input type="submit" name="submit" value="Submit"/&gt;
&lt;/form&gt;

&lt;br/&gt;&lt;br/&gt;
&lt;a href="main.html"&gt; Go back to Main Page &lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p><strong>Display View Code</strong></p>

<pre><code>&lt;!DOCTYPE&gt;
&lt;html&gt;
&lt;head&gt;

&lt;title&gt;Update Data&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;!--&lt;table&gt;
&lt;tr&gt;
    &lt;td align="center"&gt; From Database &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;
        &lt;table border="1"&gt;
            &lt;tr&gt;
                &lt;td&gt;First Name&lt;/td&gt;
                &lt;td&gt;Last Name &lt;/td&gt;
                &lt;td&gt; Gender &lt;/td&gt;
                &lt;td&gt; Subject &lt;/td&gt;
                &lt;td&gt; Hobbies &lt;/td&gt;
            &lt;/tr&gt;
--&gt;

&lt;?php 
$con=mysqli_connect("localhost","root","","ismat_db");
if(mysqli_errno($con))
{
    echo "Can't Connect to mySQL:".mysqli_connect_error();
}


//$name = mysqli_real_escape_string($con,$_POST['select']);
//  $fetch = mysqli_query($con,"SELECT * FROM persons WHERE FirstName='".$name."'");
//  $row_display=mysqli_fetch_assoc($fetch);

if(isset($_POST['FirstName']))
{

$name = $_POST['FirstName'];
//$name = mysqli_real_escape_string($con,$_POST['select']);
//$fetch = "SELECT * FROM persons WHERE FirstName = '".$name."'";
//$fetch="SELECT 'Firstname' FROM persons WHERE Firstname = '".$name."'";

$fetch="SELECT Firstname FROM persons WHERE Firstname = '".$name."'";

$result = mysqli_query($con,$fetch);
if(!$result)
{
echo "Error:".(mysqli_error($con));
}


//display the table
echo '&lt;table border="1"&gt;'.'&lt;tr&gt;'.'&lt;td align="center"&gt;'. 'From Database'. '&lt;/td&gt;'.'&lt;/tr&gt;';
echo '&lt;tr&gt;'.'&lt;td&gt;'.'&lt;table border="1"&gt;'.'&lt;tr&gt;'.'&lt;td&gt;'.'First Name'.'&lt;/td&gt;'.'&lt;td&gt;'.'Last Name'.'&lt;/td&gt;'.'&lt;td&gt;'. 'Gender' .'&lt;/td&gt;'.'&lt;td&gt;'. 'Subject'. '&lt;/td&gt;'.'&lt;td&gt;'. 'Hobbies' .'&lt;/td&gt;'.'&lt;/tr&gt;';


//while($data = mysqli_fetch_row($fetch))
while($data=mysqli_fetch_row($result))  
    {
    echo ("&lt;tr&gt;&lt;td&gt;$data[0]&lt;/td&gt;&lt;td&gt;$data[1]&lt;/td&gt;&lt;td&gt;$data[2]&lt;/td&gt;&lt;td&gt;$data[3]&lt;/td&gt;&lt;td&gt;$data[4]&lt;/td&gt;&lt;/tr&gt;");


    }

echo '&lt;/table&gt;'.'&lt;/td&gt;'.'&lt;/tr&gt;'.'&lt;/table&gt;';


}


?&gt;

&lt;!--&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;--&gt;
&lt;br/&gt;
&lt;a href="update.php"&gt; Go back to Main Page &lt;/a&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>Abbas Ansari</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/457027/displaying-data-from-a-drop-down-list-php</guid>
		</item>
				<item>
			<title>Insert data from ListBox into SQLite</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/457026/insert-data-from-listbox-into-sqlite</link>
			<pubDate>Wed, 19 Jun 2013 20:09:53 +0000</pubDate>
			<description>My question is : how do I put the results that I have obtained into an SQLite Db after a click event. I do not have handy my code but will post it ASAP. Thanks</description>
			<content:encoded><![CDATA[ <p>My question is : how do I put the results that I have obtained into an SQLite Db after a click event.<br />
I do not have handy my code but will post it ASAP.</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>elvis1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/457026/insert-data-from-listbox-into-sqlite</guid>
		</item>
				<item>
			<title>New to Web development</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/457025/new-to-web-development</link>
			<pubDate>Wed, 19 Jun 2013 19:21:25 +0000</pubDate>
			<description>Hi Everyone, I'm new to Web design and i wanted to ask you for some advice on how to start to develop an online bussines. I know HTML and CSS but i think i might be outdated. Please, ANY pointers would be awesome!! Thanks! Renato</description>
			<content:encoded><![CDATA[ <p>Hi Everyone,</p>

<p>I'm new to Web design and i wanted to ask you for some advice on how to start to develop an online bussines.</p>

<p>I know HTML and CSS but i think i might be outdated. Please, ANY pointers would be awesome!!</p>

<p>Thanks!<br />
Renato</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>renato_francia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/457025/new-to-web-development</guid>
		</item>
				<item>
			<title>Moving to other field by pressing arrow button</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/457024/moving-to-other-field-by-pressing-arrow-button</link>
			<pubDate>Wed, 19 Jun 2013 19:15:35 +0000</pubDate>
			<description>Hi, I m using turbo c++. I need ur help by sharing the code for moving to the field on the output screen by pressing arrow button from the keyboard. Please help me out from the problem.</description>
			<content:encoded><![CDATA[ <p>Hi,<br />
   I m using turbo c++. I need ur help by sharing the code for moving to the field on the output screen by pressing arrow button from the keyboard.<br />
   Please help me out from the problem.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>subash sonar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/457024/moving-to-other-field-by-pressing-arrow-button</guid>
		</item>
				<item>
			<title>Giving menu bar to the program</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/457022/giving-menu-bar-to-the-program</link>
			<pubDate>Wed, 19 Jun 2013 19:03:19 +0000</pubDate>
			<description>Helo, I m using turbo c++. I want to give menu bar with drop down list. I actually don't know the code for this. So, can u plz. help me to this by giving the source code to this. I shall be thankful to u.</description>
			<content:encoded><![CDATA[ <p>Helo,<br />
   I m using turbo c++. I want to give menu bar with drop down list. I actually don't know the code for this.<br />
   So, can u plz. help me to this by giving the source code to this. I shall be thankful to u.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>subash sonar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/457022/giving-menu-bar-to-the-program</guid>
		</item>
				<item>
			<title>Inserting mouse pointer in the program</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/457021/inserting-mouse-pointer-in-the-program</link>
			<pubDate>Wed, 19 Jun 2013 18:47:02 +0000</pubDate>
			<description>Can any body help me in inserting mouse pointer in my program. I m using turbo c++ and i m a novic in this field.</description>
			<content:encoded><![CDATA[ <p>Can any body help me in inserting mouse pointer in my program. I m using turbo c++ and i m a novic in this field.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>subash sonar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/457021/inserting-mouse-pointer-in-the-program</guid>
		</item>
				<item>
			<title>Functions in Matlab </title>
			<link>http://www.daniweb.com/software-development/threads/457020/functions-in-matlab-</link>
			<pubDate>Wed, 19 Jun 2013 18:45:28 +0000</pubDate>
			<description>i have to write a function to evaluate the sine of any real number exactly 8 decimal number, using the given formula: [sin(x) = x - x^3/3! + x^5/5! - x^7/7! + ....] Anyone please help me i can not workout this question, atleast the body of the program or ...</description>
			<content:encoded><![CDATA[ <p>i have to write a function to evaluate the sine of any real number exactly 8 decimal number, using the given formula:<br />
[sin(x) = x - x^3/3! + x^5/5! - x^7/7! + ....]</p>

<p>Anyone please help me i can not workout this question, atleast the body of the program or how to start it, i thought to start with an array but i am lost with this. Thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>nitish.mohiputlall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/threads/457020/functions-in-matlab-</guid>
		</item>
				<item>
			<title>I get a nullpointerexception error but I don&#039;t know why</title>
			<link>http://www.daniweb.com/software-development/java/threads/457019/i-get-a-nullpointerexception-error-but-i-dont-know-why</link>
			<pubDate>Wed, 19 Jun 2013 18:29:46 +0000</pubDate>
			<description>Hey guys. I have a simple question about my android app. I know what you are thinking &quot; this dumbass just posted this in the wrong thread&quot;. But I did it for a reason. The error that I have is related to java...not android. (I will star every line of ...</description>
			<content:encoded><![CDATA[ <p>Hey guys. I have a simple question about my android app. I know what you are thinking " this dumbass just posted this in the wrong thread". But I did it for a reason. The error that I have is related to java...not android.</p>

<p>(I will star every line of code that I talk about)</p>

<p>So here is the problem:  I get a NullPointerException at line 75 in the MainActivity class. So what I do is look at that line. It reads:</p>

<pre><code class="language-java">if(number.length() == 0){
</code></pre>

<p>So what I'm thinking is that I forgot to set the value of number. Then I look right above that and it says:</p>

<pre><code class="language-java">SettingsActivity settings = new SettingsActivity();
number = settings.phone_number;
</code></pre>

<p>, and I find that I assigned the variable to phone_number, which if you are smart enough to figure out is a string with a phone number inside of it. At this point I don't know what to do. I made sure everything was public, but I'm sure it has to do with the placement of variables inside brackets but I am just not seeing it.</p>

<p>Here are the MainActivity and SettingsActivity classes:</p>

<p><strong><em>thanks in advance for anything that you guys do</em></strong></p>

<pre><code class="language-java">package com.bobrown101.gpsbuddy;

import java.util.Calendar;

import android.os.Bundle;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Switch;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.ToggleButton;
import android.telephony.SmsManager;

public class MainActivity extends Activity {

    public String Lat;
    public String Long;
    boolean toggleBtn = false;

    public int x = 7200;
    public long y;
    public String z;
    public String phone_number;
    boolean bool = false;

    public TextView t;
    public TextView s;
    public TextView state;
    public EditText edittext;
    public String number;
    public String notif;
    public String actual_number;
    public Button buttonOn;
    public Button buttonOff;





    @Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
         Button buttonStart = (Button)findViewById(R.id.button1);  
         buttonOn = (Button)findViewById(R.id.button4);
         buttonOff = (Button)findViewById(R.id.button5);
         edittext = (EditText)findViewById(R.id.editText1);
         buttonStart.setOnClickListener(startListener); // Register the onClick listener with the implementation above

         t=new TextView(this);
         s=new TextView(this);
         state=new TextView(this);
         t=(TextView)findViewById(R.id.textView3); 
         s=(TextView)findViewById(R.id.textView7);
         state=(TextView)findViewById(R.id.textView6);

         buttonOff.setEnabled(false);
         }

    public OnClickListener startListener = new OnClickListener() {

        public void onClick(View v) {
            SettingsActivity settings = new SettingsActivity();
            number = settings.phone_number;

            if(number.length() == 0){
                //Toast.makeText(getBaseContext(), "Please check to make sure you have chosen the recipients contact in the settings menu", Toast.LENGTH_LONG).show();
                System.out.println("here is the phone number that you were trying to send the message to: " + number);
            }else{
                doEverything();  
                Toast.makeText(getBaseContext(), "Manual message SENT!", Toast.LENGTH_SHORT).show();
            }
        }
    };


    public void button_on(View v) {
        if(!bool){
            Toast.makeText(getBaseContext(), "Please input a phone number, then press submit.", Toast.LENGTH_SHORT).show();
        }else{

            state.setText("On "); 
            Calendar cal = Calendar.getInstance();

            Intent intent = new Intent(this, MyService.class);
            PendingIntent pintent = PendingIntent.getService(this, 0, intent, 0);

            AlarmManager alarm = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
            System.out.println(x);
            alarm.setRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), x*1000, pintent);  //7200 is 2 hours 

            //toggleBtn = true;
             //System.out.println("On button pressed. Value of toggleBtn: " + toggleBtn);
            Toast.makeText(getBaseContext(), "Service is now ON!", Toast.LENGTH_SHORT).show();
             //Toast.makeText(getBaseContext(), String.valueOf(toggleBtn), Toast.LENGTH_SHORT).show();

            s.setText("");
            buttonOn.setEnabled(false);
            buttonOff.setEnabled(true); 
        }
    }


    public void button_off(View v) {
        MyService service = new MyService();
        Calendar cal = Calendar.getInstance();

         Intent intent = new Intent(this, MyService.class);
         PendingIntent pintent = PendingIntent.getService(this, 0, intent, 0);

         AlarmManager alarm = (AlarmManager)getSystemService(Context.ALARM_SERVICE);




        alarm.cancel(pintent); 
        Toast.makeText(getBaseContext(), "Service is now OFF!", Toast.LENGTH_SHORT).show();

        state.setText("Off");
        service.counter = 0;
        buttonOn.setEnabled(true);
        buttonOff.setEnabled(false);
    }

    @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;
    }


    public void sendSMS(String x) {
        String phoneNumber = number;
        String message = x;

        SmsManager smsManager = SmsManager.getDefault();
        smsManager.sendTextMessage(phoneNumber, null, message, null, null);
    }
    public void getLocation(){
        GPSTracker mGPS = new GPSTracker(this);

        if(mGPS.canGetLocation ){

        double mLat=mGPS.getLatitude();
        double mLong=mGPS.getLongitude();
        Lat = Double.toString(mLat);
        Long = Double.toString(mLong);      

        }else{
        // can't get the location
        }
    }

    public void doEverything(){
        getLocation();
        String text = Lat + "," + Long;
        sendSMS(text);
    }
    public void time_up(View v){  //stops the alarm and ads 30 minutes to the timer
        Calendar cal = Calendar.getInstance();

         Intent intent = new Intent(this, MyService.class);
         PendingIntent pintent = PendingIntent.getService(this, 0, intent, 0);

         AlarmManager alarm = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
         System.out.println(x);
         alarm.cancel(pintent);


         //alarm.setRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), x*1000, pintent);  //7200 is 2 hours 
        x = x +3600; 
        y = x/3600;
        z = y + " hours";
        t.setText(z);
        notif = s.getText().toString();
        if(!(notif == "The Service was turned off because you adjusted the time. Please press 'on' to restart")){
            Toast.makeText(getBaseContext(), "Service must be stopped to adjust time. If you would like GPS Buddy to restart, please pres 'ON' now", Toast.LENGTH_LONG).show();
            s.setText("The Service was turned off because you adjusted the time. Please press 'on' to restart");
        }else{
            s.setText("The Service was turned off because you adjusted the time. Please press 'on' to restart");
        }
    }
    public void time_down(View v){ //stops the alarm and subtracts 30 minutes to the timer

        if(x == 3600){
            x = 3600;
            Toast.makeText(getBaseContext(), "I'm sorry. The lowest interval is 1 hour.", Toast.LENGTH_LONG).show();
        }else{
            Calendar cal = Calendar.getInstance();

             Intent intent = new Intent(this, MyService.class);
             PendingIntent pintent = PendingIntent.getService(this, 0, intent, 0);

             AlarmManager alarm = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
             System.out.println(x);
             alarm.cancel(pintent);
            x = x -3600; 
            y = x/3600;
            z = y + " hours";
            t.setText(z);
            notif = s.getText().toString();
            if(!(notif == "The Service was turned off because you adjusted the time. Please press 'on' to restart")){
                Toast.makeText(getBaseContext(), "Service must be stopped to adjust time. If you would like GPS Buddy to restart, please pres 'ON' now", Toast.LENGTH_LONG).show();
                s.setText("The Service was turned off because you adjusted the time. Please press 'on' to restart");
            }else{
                s.setText("The Service was turned off because you adjusted the time. Please press 'on' to restart");
            }
        }
    }

    public void number_submit(View v){
        //number = edittext.getText().toString();
        SettingsActivity settings = new SettingsActivity();

    }
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle item selection
        switch (item.getItemId()) {
            case R.id.action_settings:
                Intent myIntent = new Intent(MainActivity.this, SettingsActivity.class);
                //myIntent.putExtra("key", value); //Optional parameters
                MainActivity.this.startActivity(myIntent);
                return true;

            default:
                return super.onOptionsItemSelected(item);
        }
    }


}
</code></pre>

<p>here is the other</p>

<pre><code class="language-java">import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import android.support.v4.app.NavUtils;
import android.provider.ContactsContract.CommonDataKinds.Email;
import android.provider.ContactsContract.Contacts; 
import android.provider.ContactsContract.CommonDataKinds.Phone;;

public class SettingsActivity extends Activity {




    String DEBUG_TAG = "CONTACT CHOOSER ERROR: ";
    private static final int CONTACT_PICKER_RESULT = 1001;
    public String phone_number;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);
        // Show the Up button in the action bar.
        setupActionBar();

    }

    /**
     * Set up the {@link android.app.ActionBar}.
     */
    private void setupActionBar() {

        getActionBar().setDisplayHomeAsUpEnabled(true);

    }

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

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
        case android.R.id.home:
            // This ID represents the Home or Up button. In the case of this
            // activity, the Up button is shown. Use NavUtils to allow users
            // to navigate up one level in the application structure. For
            // more details, see the Navigation pattern on Android Design:
            //
            // <a href="http://developer.android.com/design/patterns/navigation.html#up-vs-back" rel="nofollow">http://developer.android.com/design/patterns/navigation.html#up-vs-back</a>
            //
            NavUtils.navigateUpFromSameTask(this);
            return true;
        }
        return super.onOptionsItemSelected(item);
    }

    public void button_submit(View v){

        doLaunchContactPicker(v);

    }


    public void doLaunchContactPicker(View view) {  
        Intent contactPickerIntent = new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI);  

        startActivityForResult(contactPickerIntent, CONTACT_PICKER_RESULT);  
    }

    @Override  
    public void onActivityResult(int requestCode, int resultCode, Intent data) {  

        if (resultCode == RESULT_OK) {  
            switch (requestCode) {  
            case CONTACT_PICKER_RESULT:  
                Cursor cursor = null;  

                try {  
                    Uri result = data.getData();  
                    Log.v(DEBUG_TAG, "Got a contact result: " + result.toString());  
                    // get the contact id from the Uri  
                    String id = result.getLastPathSegment();  
                    // query for everything phone number
                    cursor = getContentResolver().query(Phone.CONTENT_URI, null, Phone.CONTACT_ID + "=?", new String[] { id }, null);  
                    int phoneIdx = cursor.getColumnIndex(Phone.DATA);  
                    // let's just get the first email  
                    if (cursor.moveToFirst()) {  
                        phone_number = cursor.getString(phoneIdx);  


                        Log.w(DEBUG_TAG, phone_number);
                    } else {  
                        Log.w(DEBUG_TAG, "No results");  
                    }  
                } catch (Exception e) {  
                    Log.e(DEBUG_TAG, "Failed to get phone data", e);  
                } finally {  
                    if (cursor != null) {  
                        cursor.close();  
                    }  
                    EditText phoneEntry = (EditText) findViewById(R.id.editText1);  
                    phoneEntry.setText(phone_number);  

                    if (phone_number.length() == 0) {  
                        Toast.makeText(this, "No phone number found for contact.",  Toast.LENGTH_LONG).show();  
                    }else{

                    }
                }  
                break;  
            }  
        } else {  
            Log.w(DEBUG_TAG, "Warning: activity result not ok");  
        }  
    } 

}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>bobrown101</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/457019/i-get-a-nullpointerexception-error-but-i-dont-know-why</guid>
		</item>
				<item>
			<title>Windows doesn&#039;t get past loading screen</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/457018/windows-doesnt-get-past-loading-screen</link>
			<pubDate>Wed, 19 Jun 2013 18:16:07 +0000</pubDate>
			<description> I think my computer has a virus; when I turn it on it has the options to start on normal, safe mode, safe with networking, or last known good configuration, etc. But no matter which option I try, when it gets to the loading screen, the loading doesn't stop, it ...</description>
			<content:encoded><![CDATA[ <p>I think my computer has a virus; when I turn it on it has the options to start on normal, safe mode, safe with networking, or last known good configuration, etc. But no matter which option I try, when it gets to the loading screen, the loading doesn't stop, it never gets to the desktop.<br />
Do you know of any website where I can download a repair or recovery or formatting disk from another computer? Or if anybody knows any other way to fix this I'd really appreciate your help.<br />
It's a laptop Panasonic "CF-52 personal computer" with windows vista.</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>VanessaGisel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/457018/windows-doesnt-get-past-loading-screen</guid>
		</item>
				<item>
			<title>What is the difference between MX and spark?</title>
			<link>http://www.daniweb.com/hardware-and-software/threads/457017/what-is-the-difference-between-mx-and-spark</link>
			<pubDate>Wed, 19 Jun 2013 17:56:09 +0000</pubDate>
			<description>I want to use MX and spark component with flex. I search on Google but no satisfactory article found. Could give me any idea how to use them. If you try to explain with example, it’s good for me.</description>
			<content:encoded><![CDATA[ <p>I want to use MX and spark component with flex. I search on Google but no satisfactory article found. Could give me any idea how to use them. If you try to explain with example, it’s good for me.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/1">Hardware and Software</category>
			<dc:creator>mikerock</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/threads/457017/what-is-the-difference-between-mx-and-spark</guid>
		</item>
				<item>
			<title>Random Number game, not working..</title>
			<link>http://www.daniweb.com/software-development/java/threads/457016/random-number-game-not-working</link>
			<pubDate>Wed, 19 Jun 2013 17:27:55 +0000</pubDate>
			<description>HI, I am new to java programming. So, while practicing some java programming. I got a very strange logical error. Does'nt matter what the user enters, the programm always returs the result as true. Please, tell where I am stuck: I will be positing my code here: import java.util.Random; import ...</description>
			<content:encoded><![CDATA[ <p>HI,<br />
I am new to java programming. So, while practicing some java programming. I got a very strange logical error.</p>

<p>Does'nt matter what the user enters, the programm always returs the result as true.<br />
Please, tell where I am stuck:</p>

<p>I will be  positing my code here:</p>

<p>import java.util.Random;<br />
import java.util.Scanner;</p>

<pre><code class="language-java">public class Tanmay {

    public static void main(String... asd) {
        int b = 0;
        Random randomGenerator = new Random();
        int a = randomGenerator.nextInt(10);
        System.out.println(a);
        network n = new network();
        n.setter(a);

        Scanner d = new Scanner(System.in);

        int c;
        System.out.print("\nplease enter your guess!\n");
        c = d.nextInt();
        n.getter(a);
        System.out.print(c + "\n");
        n.checker();


    }
}
_________________________________________

//the network class:


public class network {

    private int input=0;
    private int checker=1;
public boolean again = false;

    public void setter(int a) {
        input = a;
    }

    public void getter(int a) {
        checker = a;

    }
public void checker(){
    if(input==checker)
System.out.println("its true ");
    else 
        System.out.println("its false");
}


    }
</code></pre>

<p>_________________________</p>

<p>I know, they are many unused variables. Actually when the program was not working. I tried to check the errors, by making the code more simple. That is why I have so many unused variables.</p>

<p>please help out the noob, with this problem..</p>

<p>THank you in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>tanmay.majumdar2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/457016/random-number-game-not-working</guid>
		</item>
				<item>
			<title>How to get thumbs of wordpress quick gallery</title>
			<link>http://www.daniweb.com/web-development/php/threads/457015/how-to-get-thumbs-of-wordpress-quick-gallery</link>
			<pubDate>Wed, 19 Jun 2013 17:00:08 +0000</pubDate>
			<description>Hi friends, I'm using Wordpress 3.5.1 , and have created gallery from add media it works fine for this page but i have need to get thumbs of this inserted gallery in footer.As gallery is updated then thumbs in footer must be updated, Is there any function to get thumbs ...</description>
			<content:encoded><![CDATA[ <p>Hi friends,<br />
I'm using Wordpress 3.5.1 , and have created gallery from add media it works fine for this page but i have need to get thumbs of this inserted gallery in footer.As gallery is updated then thumbs in footer must be updated,  Is there any function to get thumbs for gallery. Actually my client wants these small thumbs like flicker. Every one is welcome to give suggesstions. Thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>engr_pir</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/457015/how-to-get-thumbs-of-wordpress-quick-gallery</guid>
		</item>
				<item>
			<title>Preview and spellchecker</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/457014/preview-and-spellchecker</link>
			<pubDate>Wed, 19 Jun 2013 16:41:31 +0000</pubDate>
			<description>As many of you know, we got rid of the live preview last week. Originally it was intended to just be a test to see if it was causing severe posting lags on very slow computers, but it turns out that most of the regulars prefer not having it (either ...</description>
			<content:encoded><![CDATA[ <p>As many of you know, we got rid of the live preview last week. Originally it was intended to just be a test to see if it was causing severe posting lags on very slow computers, but it turns out that most of the regulars prefer not having it (either that, or the original novelty of it greatly wore off).</p>

<p>Therefore, some of you may have discovered that for the past few days there is a little green checkmark in the top right of the editor toolbar. You can click it to generate a preview that also spellchecks. As before, click the preview to hide it.</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/457014/preview-and-spellchecker</guid>
		</item>
				<item>
			<title>Banner Rotator that connects to Database</title>
			<link>http://www.daniweb.com/web-development/php/threads/457013/banner-rotator-that-connects-to-database</link>
			<pubDate>Wed, 19 Jun 2013 16:18:30 +0000</pubDate>
			<description>Hi, I have done some research and have found an example of a banner rotator (that I'm presently using) - as you can see here: http://www.clickteesside.com/ What I'm wanting to do is like the imgsrc, links and message of the rotator to a database value, so that there are more ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I have done some research and have found an example of a banner rotator (that I'm presently using) - as you can see here: <a href="http://www.clickteesside.com/" rel="nofollow">http://www.clickteesside.com/</a></p>

<p>What I'm wanting to do is like the imgsrc, links and message of the rotator to a database value, so that there are more or less images in rotation based on the amount of records in the database.</p>

<p>I have already set up a table (click.click_banners):<br />
- id<br />
- bannerVisible (int)<br />
- bannerImagePath (varchar)<br />
- bannerLink (varchar)<br />
- bannerMsg (varchar)</p>

<p>And the original code for the banner is:</p>

<pre><code>            &lt;section id="bannerArea"&gt;
                &lt;script type="text/javascript"&gt;
                var imgs1 = new Array("images/banner/banner1.jpg","images/banner/banner2.jpg","images/banner/banner3.jpg","images/banner/banner4.jpg");
                var lnks1 = new Array("itunes.html","<a href="http://www.tees-su.org" rel="nofollow">http://www.tees-su.org</a>","<a href="http://jotformeu.com/31343187796362" rel="nofollow">http://jotformeu.com/31343187796362</a>","presenters.php");
                var alt1 = new Array("Download our iTunes app now!","We're at Final Fling!","Give your feedback on our website now!","View our presenters!");
                var currentAd1 = 0;
                var imgCt1 = 4;
                function cycle1() {
                if (currentAd1 == imgCt1) {
                currentAd1 = 0;
                }
                var banner1 = document.getElementById('adBanner1');
                var link1 = document.getElementById('adLink1');
                banner1.src=imgs1[currentAd1]
                banner1.alt=alt1[currentAd1]
                document.getElementById('adLink1').href=lnks1[currentAd1]
                currentAd1++;
                }
                window.setInterval("cycle1()",7000);
            &lt;/script&gt;
            &lt;a href="itunes.html" id="adLink1" target="_top"&gt;
                &lt;img src="images/banner/banner1.jpg" id="adBanner1" border="0" width="100%" height="100%"&gt;&lt;/a&gt;
            &lt;/section&gt;
</code></pre>

<p>I'm just wanting it so that they are uploadable (which I've managed to sort out, so isn't an issue in this matter), and then editable as to whether they're visible and the message/link changeable from the CMS.</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/457013/banner-rotator-that-connects-to-database</guid>
		</item>
				<item>
			<title>Populate Excel template with ASP.NET controls contents</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/457012/populate-excel-template-with-asp.net-controls-contents</link>
			<pubDate>Wed, 19 Jun 2013 15:27:53 +0000</pubDate>
			<description>Hello, I am working on a web form project in Visual Studio 2012 and MS SQL Server 2008 R2 using Visual Basic. I would like to place an Excel file template in my project folder which would then be modified using the ASP.NET controls on the page and prompt the ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I am working on a web form project in Visual Studio 2012 and MS SQL Server 2008 R2 using Visual Basic.</p>

<p>I would like to place an Excel file template in my project folder which would then be modified using the ASP.NET controls on the page and prompt the user to SaveAs wherever they like on BUTTON click.</p>

<p>Bear in mind the values form the server controls will go into specific cells (e.g Name.Text = "A5").</p>

<p>Can somebody please provide a basic example of how to do this? I can then build a complete one for my application.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>jagtar8642</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/457012/populate-excel-template-with-asp.net-controls-contents</guid>
		</item>
				<item>
			<title>traceback error</title>
			<link>http://www.daniweb.com/software-development/python/threads/457011/traceback-error</link>
			<pubDate>Wed, 19 Jun 2013 15:00:56 +0000</pubDate>
			<description>I have included the entire source. I am getting the traceback error. import os import sys import fileinput import datetime from time import localtime name = sys.argv[1] # log specifies the file that is supposed to be parsed by the script log = fileinput.input('/var/log/secure.log') L = localtime() CalendarMonth = L[1] ...</description>
			<content:encoded><![CDATA[ <p>I have included the entire source. I am getting the traceback error.</p>

<pre><code class="language-py">import os
import sys
import fileinput
import datetime
from time import localtime
name = sys.argv[1]
# log specifies the file that is supposed to be parsed by the script
log = fileinput.input('/var/log/secure.log')
L = localtime()
CalendarMonth = L[1]
today = L[2]
Month = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
MonthVar = CalendarMonth - 1
MonthName = Month[MonthVar]
#
#def timetest determines whether the user logged in within the last hour
#
def timetest(hour,min, sec, Hour, Min, Sec):


    x = (int(hour)*60)+int(min)+(int(sec)/60) - 180


        y = (int(Hour)*60)+int(Min)+(int(Sec)/60)
        if y &gt;= x:
                z = 'true'
        else:
                z = 'false'
        return z
login = 'User info context values set for'
logwindow = 'Showing Login Window'
failedauth = 'Failed to authenticate'
firstlist = []
for line in log:


    if MonthName in line:


                h = line.split()
                day = float(h[1])
                if day == today:
                        if login in line:
                                firstlist.append(line)
                        elif failedauth in line:
                                firstlist.append(line)
                        elif logwindow in line:
                                firstlist.append(line)
                        else: pass
                else: pass
        else: pass
firstlistlength = int(len(firstlist))
if firstlistlength == 0:


    pass


else:


            count1 = 0


        count2 = 0
        actuallist = []
        while count1 &lt;= count2:
                if count1 == count2:
                        tryline = firstlist[count1]
                        count3 = count1 + 1
                        try:
                                nextline = firstlist[count3]
                        except IndexError:
                                actuallist.append(tryline)
                                break
                        if login in tryline:
                                if failedauth in nextline:
                                        count1 = count1 + 1
                                        count2 = count2 + 1
                                else:
                                        actuallist.append(tryline)
                                        count1 = count1 + 1
                                        count2 = count2 + 1
                        else:
                                count1 = count1 + 1
                                count2 = count2 + 1
                else:
                        pass
if firstlistlength == 0:
 pass
else:
 actuallist.reverse()
 lastlogin = []
 namelist = []
 for line in actuallist:
  if name in namelist:
   pass
  elif name in line:
   lastlogin.append(line)
   namelist.append(name)
  else:
   lastlogin.append(line)
   intlastlogin = int(len(lastlogin))
   if int(len(namelist)) == 0:


          pass


 else:
  if intlastlogin == 1:
   #this is were the actual rsync command is executed
   rsync = 'rsync -rlptoDuz --ignore-errors --bwlimit=3000 --exclude-from=/home/shared/sync/exclude --delete /home/'+name+'/ /Volumes/local/io-works/home/'+name+'/'
   os.system(rsync)
  else:
   intnextline = int(intlastlogin - 2)
   nextline = lastlogin[intnextline]
   sys.stdout.write(nextline)
   sys.stdout.write('\n')
   tim = datetime.datetime.now()
   hour = '%d' %tim.hour
   min = '%d' %tim.minute
   sec = '%d' %tim.second
   index1 = nextline.split()
   Time = index1[2]
   Hour = Time[:2]
   Min = Time[3:5]
   Sec = Time[6:]
   test = timetest(hour,min, sec, Hour, Min, Sec)
if test == 'true':


                      #this is were the actual rsync command is executed


    rsync = 'rsync -rlptoDuz --ignore-errors --bwlimit=3000 --exclude-from=/home/shared/sync/exclude --delete /home/'+name+'/ /Volumes/local/io-works/home/'+name+'/'
    os.system(rsync)
else:


           pass




**Error:**
Traceback (most recent call last):
** IDLE Internal Exception: 
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/idlelib/run.py", line 334, in runcode


        exec(code, self.locals)


  File "/home/ldaniel/Desktop/run.py", line 6, in &lt;module&gt;

IndexError: list index out of range
</code></pre>

<p>Please help me</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>LincyDaniel</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/457011/traceback-error</guid>
		</item>
				<item>
			<title>Query Database Between Month Date Ranges</title>
			<link>http://www.daniweb.com/web-development/databases/ms-sql/threads/457010/query-database-between-month-date-ranges</link>
			<pubDate>Wed, 19 Jun 2013 14:52:28 +0000</pubDate>
			<description>Hi All, This is something I should know but for whatever reason today it is eluding my mind. I'm trying to query our database to provide me with data between March 2012 and March 2013. Initially, I had the following line: where a.IPI_Ref_Date between '2012' and GETDATE() and the output ...</description>
			<content:encoded><![CDATA[ <p>Hi All,</p>

<p>This is something I should know but for whatever reason today it is eluding my mind.  I'm trying to query our database to provide me with data between March 2012 and March 2013.  Initially, I had the following line:</p>

<pre><code class="language-sql">where a.IPI_Ref_Date between '2012' and GETDATE()
</code></pre>

<p>and the output was from Jan-2012 to our most recent April 2013.  The information request (IR) I received changed in that the person asking for the IR now wants the data to be from March to March but my statement is getting all messed up because I'm not querying this right.  I'd show what I've tried but I don't see a point in offering bad SQL statements.  Can someone please advise me so that I can do this right?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/ms-sql/127">MS SQL</category>
			<dc:creator>Stuugie</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/ms-sql/threads/457010/query-database-between-month-date-ranges</guid>
		</item>
				<item>
			<title>I could not show the bullet</title>
			<link>http://www.daniweb.com/software-development/java/threads/457009/i-could-not-show-the-bullet</link>
			<pubDate>Wed, 19 Jun 2013 14:10:32 +0000</pubDate>
			<description>Hi, I am making a simple game,this is my first time to develop java game,but i think i am lost in my code,i could not display or show my bullet when i pressed arrow up,can you help me please how can i achieve on this. here is my simple code. ...</description>
			<content:encoded><![CDATA[ <p>Hi, I am making a simple game,this is my first time to develop java game,but i think i am lost in my code,i could not display or show my bullet when i pressed arrow up,can you help me please how can i achieve on this.</p>

<p>here is my simple code.</p>

<pre><code class="language-java">import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.io.IOException;
import java.util.*;
import java.util.List;


public class Mygame{
    private Image ship;
    private boolean up;
    private boolean down;
    private boolean right;
    private boolean left;
    private int posX = 300;
    private int posY = 560;
    Graphics2D g2d;
    Thread gameloop;
    Bullet bb = new Bullet();
    Mypanel p = new Mypanel();



    public Mygame(){

        JFrame frame = new JFrame("Title");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Mypanel panel = new Mypanel();

        panel.setPreferredSize(new Dimension(600,600));
        frame.add(panel);
        frame.pack();
        frame.setVisible(true);
        panel.startGame();



    }

     class Mypanel extends JPanel{

        private List &lt;Bullet&gt; bullets = new ArrayList &lt;Bullet&gt;();

        public Mypanel() {

            try {
                ship = ImageIO.read(getClass().getResource("images/spaceship.png"));
            } catch (IOException exc) {
                exc.printStackTrace();
            }

            bullets = new ArrayList &lt;Bullet&gt;();

            bullets.add(new Bullet(posX,posY));

            getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0, false),
                    "arrowUP");
            getActionMap().put("arrowUP",
                    arrowUP);


            Action arrowUP = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                up = true;
                posY-=5;
                repaint();

            }
        };

          public void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2d = (Graphics2D) g;
            g2d.fillRect(0,0,600,600);
            g2d.setColor(Color.BLACK);
            g2d.drawImage(ship, posX, posY, null);

        }

    }



    class Bullet{
        final int speed = 2;
        int x,y;
        public Bullet(){}
         Bullet(int x, int y){
           this.x = x;
           this.y = y;

         }

        public void setX(int x){
            this.x = x;
        }


        public void setY(int y){
            this.y=y;
        }

        public int getX(){
            return x;
        }

       public int getY(){
           return y;
       }

       public void moveForward(){
           y-=speed;

       }

    }





       public static void main(String []args) {
          new Mygame();
    }   
}   
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>Huang xiao</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/457009/i-could-not-show-the-bullet</guid>
		</item>
				<item>
			<title>PHP Errors???</title>
			<link>http://www.daniweb.com/web-development/php/threads/457008/php-errors</link>
			<pubDate>Wed, 19 Jun 2013 14:00:35 +0000</pubDate>
			<description>Im writing some code to send out emails for work. And i've been stuck on with this error for a while nw. Any help will be greatly appreciated. Error message: Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\wamp\www\PHP\mailMany.php on line 21 Heres my code: &lt;?php // ...</description>
			<content:encoded><![CDATA[ <p>Im writing some code to send out emails for work. And i've been stuck on with this error for a while nw. Any help will be greatly appreciated.</p>

<p>Error message:  Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\wamp\www\PHP\mailMany.php on line 21</p>

<p>Heres my code:</p>

<pre><code>&lt;?php
// Check, if submitted.
//if($submit)
if(isset($_POST['submit'])){

// Get variables from POST method form.
$subject=$_POST['subject'];
$note=$_POST['note'];

$sender="joelyonswork@gmail.com"; // Your Email here.

echo "Email has been sent to:";

// Connect database
mysql_connect("localhost","root","");
mysql_select_db("commercialenterprise");

$rs=mysql_query("select CommercialEnterprise_Email from commercialenterprise WHERE 'town' = 'Killkee'");

// Do while loop to send email.
</code></pre>

<p>The Line below is where error is.</p>

<pre><code>while($row=mysql_fetch_assoc($rs)){
$to=$row['email'];
$mail_from="From:$email n";
$mail_from .="Content-Type: text/html; charset=utf-8 n";

mail($to,$subject,$note,$mail_from);

// Show sent emails.
echo "$row[email]&lt;br&gt;";
}
}
else{

// Do following codes if not found "Submit" value.(Not submitted)
?&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 http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;/head&gt;
&lt;title&gt;Email Form&lt;/title&gt;
&lt;body&gt;
&lt;form action="&lt;? echo $PHP_SELF; ?&gt;" method="post" name="form" id="form"&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td align="right"&gt;Subject : &lt;/td&gt;
&lt;td&gt;&lt;input name="email" type="text" id="email" /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="right" valign="top"&gt;Note : &lt;/td&gt;
&lt;td&gt;&lt;textarea name="comment" cols="60" rows="5" id="comment"&gt;&lt;/textarea&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;input type="submit" name="Submit" value="Send Email" /&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;?php } ?&gt;
</code></pre>

<p>Thanks in advance :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>joseph.lyons.754</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/457008/php-errors</guid>
		</item>
				<item>
			<title>Set preferred IPv4 address</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/457007/set-preferred-ipv4-address</link>
			<pubDate>Wed, 19 Jun 2013 13:59:35 +0000</pubDate>
			<description>I have a Windows 7 Pro machine and have two assigned IP addresses. One is the local IP address, set as a static, reserved on DHCP server, and needed for authentication to accesses certain network programs. This is the one I need to be the primary. However, I needed to ...</description>
			<content:encoded><![CDATA[ <p>I have a Windows 7 Pro machine and have two assigned IP addresses. One is the local IP address, set as a static, reserved on DHCP server, and needed for authentication to accesses certain network programs. This is the one I need to be the primary. However, I needed to add a second IP address, a 10.x.x.x which connects to another server to allow access to a remote program. The problem is, after adding this 2nd address, I cannot log in to MS Lync (which is not the program requiring the 10.x.x.x address). Running the ipconfig command reveals the 10.x.x.x is the primary IP address, with the 192.168.x.x address being listed secondarily. As soon as I delete off the 10.x.x.x address, MS Lync works again (by works I mean it logs in, otherwise it won't).</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>troverman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/457007/set-preferred-ipv4-address</guid>
		</item>
				<item>
			<title>Linq time searching</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/457006/linq-time-searching</link>
			<pubDate>Wed, 19 Jun 2013 13:41:31 +0000</pubDate>
			<description>So I have this linq code and I am trying to get it to look at the datbase and what it is doing is pulling back the last record put into the database. My asp page refreshes and displays the new information that was updated. What I want is to ...</description>
			<content:encoded><![CDATA[ <p>So I have this linq code and I am trying to get it to look at the datbase and what it is doing is pulling back the last record put into the database.<br />
My asp page refreshes and displays the new information that was updated.</p>

<p>What I want is to have it so when a row has not been updated in 5 minutes that it turns the textbox red. I know how to do the change the textbox but I do not know how to search if a row was updated in the last 5 minutes or not. I do not want it to check if the textbox has changed or not becuase we use a lot of the same numbers and will read it as not changing.</p>

<p>This is what I have.</p>

<pre><code class="language-cs">var RedLine4Sc1 = (from l in ***.***
                                       where l.**_Port == 4 &amp;&amp; l.**_Port == 1 &amp;&amp; l.***_Number == 1 &amp;&amp; l.Date_Processed &gt;= startDateTime
                                       select l.Date_Processed);
</code></pre>

<p>I know this is not correct because it is just seeing if the processed date is == to the time and I was just messing aorund with stuff.</p>

<p>Just tried this because figured it might be better but getting an error. Think it is because it does not see the datetime.</p>

<pre><code class="language-cs"> if (Convert.ToDateTime(RedLine4Sc1) &gt;= redDateTime)
</code></pre>

<p>Any help would be appriciative.<br />
Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>Kratoswoo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/457006/linq-time-searching</guid>
		</item>
				<item>
			<title>create sub selects with radio buttons in a form</title>
			<link>http://www.daniweb.com/web-development/php/threads/457005/create-sub-selects-with-radio-buttons-in-a-form</link>
			<pubDate>Wed, 19 Jun 2013 13:41:27 +0000</pubDate>
			<description>Good Morning, I am trying to create a dealer order form for products which occasionally have a sub selection for color available. It is always limited to 2 colors if there is an option, and the number of items is very limited (max of 8) What I would like to ...</description>
			<content:encoded><![CDATA[ <p>Good Morning,</p>

<p>I am trying to create a dealer order form for products which occasionally have a sub selection for color available.</p>

<p>It is always limited to 2 colors if there is an option, and the number of items is very limited (max of 8)</p>

<p>What I would like to do is have the primary items/ descriptions available with radio buttons to select a single item only.  Then, depending on which item was selected, if it has both color options, give them a secondary radio button to select that.  But if only one color is available, then not display anything regarding the color.</p>

<p>I'm assuming that it would take some sort of javascript to accomplish this, but looking for some direction so I'm heading in the right direction from the start.</p>

<p>Thanks,<br />
Douglas</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>showman13</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/457005/create-sub-selects-with-radio-buttons-in-a-form</guid>
		</item>
				<item>
			<title>Open up SaveAs dialog when exporting data to Excel</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/457004/open-up-saveas-dialog-when-exporting-data-to-excel</link>
			<pubDate>Wed, 19 Jun 2013 13:37:53 +0000</pubDate>
			<description>Hi All, Please help me with this task - this is the only thing stopping me from completing the project. Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ' Here we go. All the data in the form to an Excel sheet. Cross your fingers... Dim oExcel As ...</description>
			<content:encoded><![CDATA[ <p>Hi All,</p>

<p>Please help me with this task - this is the only thing stopping me from completing the project.</p>

<pre><code class="language-vb">Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click        
        ' Here we go. All the data in the form to an Excel sheet. Cross your fingers...
        Dim oExcel As Object
        Dim oBook As Object
        Dim oSheet As Object

        'Start a new workbook in Excel- this isn't really what I need though, I need it to open a template and populate it.
        oExcel = CreateObject("Excel.Application")
        oBook = oExcel.Workbooks.Open("C:\Users\jagtars\Desktop\HI Resources\HI.xlsx")


        'Add data to cells of the first worksheet in the new workbook
        oSheet = oBook.Worksheets(1)
        oSheet.Range("H5").Value = CustomerName.Text
        oSheet.Range("K5").Value = dropdown_serverVirtualisation.Value
        oSheet.Range("L5").Value = dropdown_desktopVirtualisation.Value
        oSheet.Range("M5").Value = dropdown_oracle.Value
        oSheet.Range("N5").Value = dropdown_sqlServer.Value
        'etc....


        'Save the Workbook and Quit Excel
        oBook.SaveAs("C:\Users\jagtars\Desktop\HI.xlsx")
        MessageBox.Text = "Exported!"
        MessageBox.Focus()
        oExcel.Quit()
    End Sub
End Class
</code></pre>

<p>This works but I have a few issues.</p>

<p>Firstly, I would like to reference the template file within the project folder and secondly I would like a prompt to for SaveAs.</p>

<p>Currently this code open up this files from a folder in my Desktop and saves it as a new file in my Desktop.</p>

<p>How can i modify this code to do the two things I require.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>jagtar8642</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/457004/open-up-saveas-dialog-when-exporting-data-to-excel</guid>
		</item>
				<item>
			<title>Pst corrupt</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-servers/threads/457003/pst-corrupt</link>
			<pubDate>Wed, 19 Jun 2013 13:36:35 +0000</pubDate>
			<description>guys, i have a pst file on a windows server 2003, this morning it gave issues connecting. when i checked it i realised that the size was 64 kb, run a scanpst and it became 254kb but still there is no information in it. how can i restore or repair ...</description>
			<content:encoded><![CDATA[ <p>guys, i have a pst file on a windows server 2003, this morning it gave issues connecting. when i checked it i realised that the size was 64 kb, run a scanpst and it became 254kb but still there is no information in it. how can i restore or repair it. please help</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-servers/115">Windows Servers</category>
			<dc:creator>darks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-servers/threads/457003/pst-corrupt</guid>
		</item>
				<item>
			<title>Divided Catergories/Directories in a listboz</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/457002/divided-catergoriesdirectories-in-a-listboz</link>
			<pubDate>Wed, 19 Jun 2013 13:10:11 +0000</pubDate>
			<description>Hi, I just finished making a program which displays all the files in a directory and lets me open them when selected. What I find is that I get every file found in the directory however not divided by sub-directory, is there a way i can do this showing it ...</description>
			<content:encoded><![CDATA[ <p>Hi, I just finished making a program which displays all the files in a directory and lets me open them when selected. What I find is that I get every file found in the directory however not divided by sub-directory, is there a way i can do this showing it on the listbox?</p>

<p>Heres my code so far.</p>

<pre><code class="language-cs">List&lt;FileInfo&gt; myBooks = new List&lt;FileInfo&gt;();

void fileInfoDelegate()
        {
            myBooks.Sort(
                delegate(FileInfo a, FileInfo b)
                {
                    return a.Name.CompareTo(b.Name);
                });
        }

//VideoTraining
        private void button8_Click(object sender, EventArgs e)
        {
            clear(); // clear lstbox b4 repopulate.
            myBooks.AddRange(new DirectoryInfo(@"C:VideoTraining\").GetFiles("*.*", SearchOption.AllDirectories));
            fileInfoDelegate();
            listBox1.DataSource = myBooks;
            boxempty();  // returns msg if lstbox is empty   
        }

        //OpenFile
    private void button13_Click(object sender, EventArgs e)
    {

        FileInfo TempInfo = myBooks[listBox1.SelectedIndex];
        System.Diagnostics.Process.Start(TempInfo.FullName);
    }
</code></pre>

<p>Thanks Guys.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>ogsirus</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/457002/divided-catergoriesdirectories-in-a-listboz</guid>
		</item>
				<item>
			<title>Could you answer this?</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/457001/could-you-answer-this</link>
			<pubDate>Wed, 19 Jun 2013 13:06:51 +0000</pubDate>
			<description>hi i would like to know how people make the litle blue bar at the top of the mojomarketplace site that someone can exit if they dont want it ?</description>
			<content:encoded><![CDATA[ <p>hi i would like to know how people make the litle blue bar at the top of the mojomarketplace site that someone can exit if they dont want it<br />
?</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>sidneyvan94</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/457001/could-you-answer-this</guid>
		</item>
				<item>
			<title>LINQ union problem</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/457000/linq-union-problem</link>
			<pubDate>Wed, 19 Jun 2013 12:38:12 +0000</pubDate>
			<description>Hi, I have two LINQ queries that produce two different results, but the fields, while having different names, are essentially the same. I am trying to union them together (although concat in this case should produce the same results), but I am getting an error. My thought is that I ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I have two LINQ queries that produce two different results, but the fields, while having different names, are essentially the same. I am trying to union them together (although concat in this case should produce the same results), but I am getting an error. My thought is that I somehow need to declare the type of the resulting fields, but I am not sure how to do that and if it is correct. Could anyone guide me down the right path to figure out what is wrong? Thanks very much. I have the code and the error below.</p>

<pre><code class="language-cs">        var gen= from g in db.tbl_Generator
                  join a in db.tbl_Gen_Allocation on g.Unit_ID equals a.Unit_ID
                  join t in strContractType on 1 equals 1
                  where a.Begin_Date &lt;= dteEnd &amp;&amp; a.End_Date &gt;= dteBegin
                  select new { g.Generator_Name, g.ISO_Asset_ID, a.Begin_Date, a.End_Date, a.System_ID };

        //Get all gen in this time frame
        var con = from c in db.tbl_Contracts
                  join a in db.tbl_Contracts_Allocation on c.Contract_ID equals a.Contract_ID
                  join t in strContractType on 1 equals 1
                  where a.Begin_Date &lt;= dteEnd &amp;&amp; a.End_Date &gt;= dteBegin
                  select new { c.Name, c.Contract_ID, a.Begin_Date, a.End_Date, a.System_ID };

        //union gens and contracts
        var unionResources = gen.Union(con);
</code></pre>

<p>Error   1   'System.Linq.IQueryable&lt;AnonymousType#1&gt;' does not contain a definition for 'Union' and the best extension method overload 'System.Linq.ParallelEnumerable.Union&lt;TSource&gt;(System.Linq.ParallelQuery&lt;TSource&gt;, System.Collections.Generic.IEnumerable&lt;TSource&gt;)' has some invalid arguments</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>jkvt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/457000/linq-union-problem</guid>
		</item>
				<item>
			<title>white hat tactic</title>
			<link>http://www.daniweb.com/internet-marketing/promotion-and-marketing-plans/threads/456998/white-hat-tactic</link>
			<pubDate>Wed, 19 Jun 2013 12:29:36 +0000</pubDate>
			<description>what are the white hat tectic through which we can use this.</description>
			<content:encoded><![CDATA[ <p>what are the white hat tectic through which we can use this.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/promotion-and-marketing-plans/43">Promotion and Marketing Plans</category>
			<dc:creator>madhvidesai</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/promotion-and-marketing-plans/threads/456998/white-hat-tactic</guid>
		</item>
				<item>
			<title>CPU Not Name but its name System Unit..</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/threads/456997/cpu-not-name-but-its-name-system-unit</link>
			<pubDate>Wed, 19 Jun 2013 12:27:27 +0000</pubDate>
			<description>FrienDs Why..We cAll system Unit To CPU.. Realy its Name System Unit Because it Contains (Storage+accesories+processing units) While CPU Stand For Central processing Unit..So its only Process While So its Our Right To Call Him SYSTEM Unit instead of CPU..</description>
			<content:encoded><![CDATA[ <p>FrienDs Why..We cAll system Unit To CPU..<br />
Realy its Name System Unit Because it Contains (Storage+accesories+processing units) While CPU Stand For Central processing Unit..So its only Process While So its Our Right To Call Him SYSTEM Unit instead of CPU..</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/99">Microsoft Windows</category>
			<dc:creator>Zubairnawaz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/threads/456997/cpu-not-name-but-its-name-system-unit</guid>
		</item>
				<item>
			<title>Free Java online course</title>
			<link>http://www.daniweb.com/software-development/java/threads/456996/free-java-online-course</link>
			<pubDate>Wed, 19 Jun 2013 12:14:55 +0000</pubDate>
			<description>Are you interested in java?? Join the free online java course and make java your cup of coffee. The course is totally free.It is spread over 128 lectures in 21 sections with practice problems in sections intended to enhance your practical knowledge of concepts learnt throughout the section. &lt;URL SNIPPED&gt;</description>
			<content:encoded><![CDATA[ <p>Are you interested in java?? Join the free online java course and make java your cup of coffee. The course is totally free.It is spread over 128 lectures in 21 sections with practice problems in sections intended to enhance your practical knowledge of concepts learnt throughout the section.</p>

<p>&lt;URL SNIPPED&gt;</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>rohansharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/456996/free-java-online-course</guid>
		</item>
				<item>
			<title>What is leverage browser caching?</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456995/what-is-leverage-browser-caching</link>
			<pubDate>Wed, 19 Jun 2013 12:10:31 +0000</pubDate>
			<description>Hello Friends Please tell me answer.</description>
			<content:encoded><![CDATA[ <p>Hello Friends<br />
Please tell me answer.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>Jenelia89</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/456995/what-is-leverage-browser-caching</guid>
		</item>
				<item>
			<title>Adding a class to all divs</title>
			<link>http://www.daniweb.com/web-development/php/threads/456994/adding-a-class-to-all-divs</link>
			<pubDate>Wed, 19 Jun 2013 12:02:30 +0000</pubDate>
			<description>hi guys, Do you guys have any php code where i could add a new class to a div element in a page? using my code am planning to read the file contents of an html page. I wanted to add a class &quot;modify&quot; to all DIVs which has a ...</description>
			<content:encoded><![CDATA[ <p>hi guys,<br />
Do you guys have any php code where i could add a new class to a div element in a page? using my code am planning to read the file contents of an html page. I wanted to add a class "modify" to all DIVs which has a class and those DIV without a class element will have 'class="modify" ' added to it.</p>

<p>Thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>unikorndesigns</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456994/adding-a-class-to-all-divs</guid>
		</item>
				<item>
			<title>how start simulation by c++</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456993/how-start-simulation-by-c</link>
			<pubDate>Wed, 19 Jun 2013 11:47:31 +0000</pubDate>
			<description>hi every ; i want to know how to start **simulation using c++** , i searched in many websites in order to find some hints about this subject but i found nothing . Best regards</description>
			<content:encoded><![CDATA[ <p>hi every ; i want to know how to start <strong>simulation using c++</strong> , i searched in many websites in order to find some hints about this subject but i found nothing .<br />
   Best regards</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>tooota</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456993/how-start-simulation-by-c</guid>
		</item>
				<item>
			<title>Works on MinGW, but not on my uni&#039;s computer</title>
			<link>http://www.daniweb.com/software-development/c/threads/456992/works-on-mingw-but-not-on-my-unis-computer</link>
			<pubDate>Wed, 19 Jun 2013 11:47:11 +0000</pubDate>
			<description>I have to make a program that calculates the integral of a function using the simpsons method and the trapezoid method. It works just fine on my computer using MinGW, but when I try to compile it in my uni's computer (GNU OS) I get: It = 0 (should be ...</description>
			<content:encoded><![CDATA[ <p>I have to make a program that calculates the integral of a function using the simpsons method and the trapezoid method. It works just fine on my computer using MinGW, but when I try to compile it in my uni's computer (GNU OS) I get:<br />
It = 0 (should be 0.954499)<br />
pn = 0 (should be 18)<br />
Is = 0 (should be 0.954500)<br />
pn = 0 (should be 6)</p>

<p>This is what I came up with (sorry the variables and comments are in portuguese, I'll fix it later after I get home):</p>

<p>integral.h:</p>

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

#define eps 1.e-6
#define kmax 20

double trapezio(double (*f)(double x), double a, double b, int *n);
double simpson(double (*f)(double x), double a, double b, int *n);
</code></pre>

<p>integral.c:</p>

<pre><code class="language-c">#include "integral.h"
#define xmin -2
#define xmax 2

double f(double x);

int main(){
    double It,Is;
    int n = 0;
    int *pn = NULL;

    pn = &amp;n;
    It = trapezio(f,xmin,xmax,pn)/sqrt(2*M_PI);
    printf("Pelo metodo dos trapezios a integral vale aproximadamente %lf\n", It);
    printf("O numero de iteracoes usadas foi %d\n\n",*pn);

    *pn = 0;
    Is = simpson(f,xmin,xmax,pn)/sqrt(2*M_PI);
    printf("Pelo metodo de simpson a integral vale aproximadamente %lf\n", Is);
    printf("O numero de iteracoes usadas foi %d\n",*pn);

    return 0;
}

double f(double x){
    return exp(-0.5*x*x); // Funcao que sera integrada
}
</code></pre>

<p>trapezio.c:</p>

<pre><code class="language-c">#include "integral.h"

double trapezio(double (*f)(double x), double a, double b, int *n){
    double To, Tk;
    double soma;
    int i, k = 1;
    Tk = 0.5*(f(a) - f(b))*(b - a);

    while (fabs((Tk-To)/To) &gt; eps &amp;&amp; k &lt; kmax){
        soma = 0; // Resetando variavel soma
        To = Tk; // To e' T(k - 1), caso o loop se repita o ultimo Tk vira To
        for (i = 1 ; i &lt;= (pow(2,k)-1) ; i += 2) soma += f(a + i*(b - a)/pow(2.,k));
        Tk = 0.5*To + soma*(b - a)/pow(2.,k);
        k++;
        *n += 1;
    }

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

<p>simpson.c:</p>

<pre><code class="language-c">#include "integral.h"

double simpson(double (*f)(double x), double a, double b, int *n){
    double So, Sk = 0;
    double somaimp, somapar;
    int i, k = 1;

    while (fabs((Sk-So)/So) &gt; eps &amp;&amp; k &lt; kmax){
        somaimp = 0;
        somapar = 0;
        So = Sk; // So e' S(k - 1)
        for (i = 1; i &lt;= (pow(2,k)-1); i += 2) somaimp += f(a + i*(b - a)/pow(2.,k));
        for (i = 2; i &lt;= (pow(2,k)-2); i += 2) somapar += f(a + i*(b - a)/pow(2.,k));
        Sk = (b - a)*(f(a) + 4*somaimp + 2*somapar + f(b))/(3*pow(2.,k));
        k++;
        *n += 1;
    }

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

<p>Edit: I forgot to mention that if I take the pointer out, trapezio works, but simpson still returns 0.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>Arroway</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/456992/works-on-mingw-but-not-on-my-unis-computer</guid>
		</item>
				<item>
			<title>logging out</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456991/logging-out</link>
			<pubDate>Wed, 19 Jun 2013 11:46:34 +0000</pubDate>
			<description>hello i m building a website with asp.net language and i have made the session and the login and log out but i have trouble that when i click back in the browser and return the session remain so my question how to end the session and return to the ...</description>
			<content:encoded><![CDATA[ <p>hello</p>

<p>i m building a website with asp.net language  and i have made the session and the login and log out<br />
but i have trouble that when i click back in the browser  and return the session remain<br />
so my question how to end the session and return to the main page (logon page) and  (my information about java is like a beginnner ) and i have read that i can make this by java to end the session<br />
hope i will have an answer :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/aspnet/18">ASP.NET</category>
			<dc:creator>samoslook</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/aspnet/threads/456991/logging-out</guid>
		</item>
				<item>
			<title>problem...</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-servers/threads/456990/problem</link>
			<pubDate>Wed, 19 Jun 2013 10:47:23 +0000</pubDate>
			<description>i am working in windows server 2003 and also have tele router for internate use. but the problems happens the router is not work the clinte pcs is not open the files from serve becuase of very slow how to solve the problems and how to give the dnsv and ...</description>
			<content:encoded><![CDATA[ <p>i am working in windows server 2003 and also have tele router for internate use. but the problems happens the router is not work the clinte pcs is not open the files from serve becuase of very slow how to solve the problems and how to give the dnsv and also the clinet pcs hint: router 192.168.1.1 server 192.168.1.2 dns 213.55.96.146 and 213.55.96.166 the defualt gateway 192.168.1.1</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-servers/115">Windows Servers</category>
			<dc:creator>حسنين_1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-servers/threads/456990/problem</guid>
		</item>
				<item>
			<title>python</title>
			<link>http://www.daniweb.com/software-development/python/threads/456989/python</link>
			<pubDate>Wed, 19 Jun 2013 09:40:59 +0000</pubDate>
			<description>Given: A string s of length at most 200 letters and four integers a, b, c and d. Return: The slice of this string from indices a through b and c through d (with space in between), inclusively.</description>
			<content:encoded><![CDATA[ <p>Given: A string s of length at most 200 letters and four integers a, b, c and d.</p>

<p>Return: The slice of this string from indices a through b and c through d (with space in between), inclusively.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>shahinalam07</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/456989/python</guid>
		</item>
				<item>
			<title>replace arrays issue</title>
			<link>http://www.daniweb.com/web-development/php/threads/456988/replace-arrays-issue</link>
			<pubDate>Wed, 19 Jun 2013 09:33:06 +0000</pubDate>
			<description>Hi I have been using a replace array which has worked wonders but now I have just added one and it wont work why is this please. I can understand why it wont work but do not know what i have to do to sort it. I added the last ...</description>
			<content:encoded><![CDATA[ <p>Hi I have been using a replace array which has worked wonders but now  I have just added one and it wont work why is this please. I can understand why it wont work but do not know what i have to do to sort it. I added the last one to replace a ' with a -</p>

<pre><code>$old = array(' ', '/', 'amp;', ''');
$new = array('-', '-', '-', '-');
</code></pre>

<p>Thanks for your help.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mpc123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456988/replace-arrays-issue</guid>
		</item>
				<item>
			<title>server</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/456987/server</link>
			<pubDate>Wed, 19 Jun 2013 09:32:02 +0000</pubDate>
			<description>steps of installing and configuring servers in linux</description>
			<content:encoded><![CDATA[ <p>steps of installing and configuring servers in linux</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>zeba.khan.71066700</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/456987/server</guid>
		</item>
				<item>
			<title>Appending an attribute to URL</title>
			<link>http://www.daniweb.com/web-development/aspnet/threads/456986/appending-an-attribute-to-url</link>
			<pubDate>Wed, 19 Jun 2013 08:59:58 +0000</pubDate>
			<description>i'm trying to append a bool variable zoom. zoom is set to true once the btnview is clicked. i did something but it's not working. can someone put me on the right path here. &lt;a id=&quot;btnview&quot; class=&quot;btnview&quot; data-href=&quot;&lt;%=HttpContext.Current.Request.QueryString.Add(&quot;zoom&quot;,true) %&gt;&quot; style=&quot;margin:60px 0 0 0;&quot;&gt;zoom&lt;/a&gt; some how it is not setting the ...</description>
			<content:encoded><![CDATA[ <p>i'm trying to append a bool variable zoom. zoom is set to true once the btnview is clicked. i did something but it's not working. can someone put me on the right path here.</p>

<pre><code>&lt;a id="btnview" class="btnview" data-href="&lt;%=HttpContext.Current.Request.QueryString.Add("zoom",true) %&gt;" style="margin:60px 0 0 0;"&gt;zoom&lt;/a&gt;
</code></pre>

<p>some how it is not setting the zoom value to true.</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/456986/appending-an-attribute-to-url</guid>
		</item>
				<item>
			<title>Fibonacci (Prolog)</title>
			<link>http://www.daniweb.com/software-development/legacy-languages/threads/456984/fibonacci-prolog</link>
			<pubDate>Wed, 19 Jun 2013 08:53:55 +0000</pubDate>
			<description>Can anybody explain why this is not working.Can someone help me. fib(0, 0). fib(1, 1). fib(N, NF) :- N&gt;=0, fib(N-1, AF), fib(N-2, BF), NF is AF + BF. .</description>
			<content:encoded><![CDATA[ <p>Can anybody explain why this is not working.Can someone help me.</p>

<pre><code>fib(0, 0).
fib(1, 1).
fib(N, NF) :-
  N&gt;=0,   fib(N-1, AF),    fib(N-2, BF),    NF is AF + BF.
</code></pre>

<p>.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/legacy-languages/42">Legacy Languages</category>
			<dc:creator>Dili1234</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/legacy-languages/threads/456984/fibonacci-prolog</guid>
		</item>
				<item>
			<title>html layout distrube</title>
			<link>http://www.daniweb.com/web-development/php/threads/456983/html-layout-distrube</link>
			<pubDate>Wed, 19 Jun 2013 08:28:54 +0000</pubDate>
			<description>i am showing the emails on my website php page through gamil api the api give me the html of the mails this mail html distrube my wesbite page html i am using below code for the displaying the html of the emails $doc = new DOMDocument(); $doc-&gt;loadHTML($body); $yourText=$doc-&gt;saveHTML(); $body=$yourText; ...</description>
			<content:encoded><![CDATA[ <p>i am showing the emails on my website php page through gamil api the api give me the html of the mails this mail html distrube my wesbite page html  i am using below code for the displaying the html of the emails</p>

<pre><code>$doc = new DOMDocument();
$doc-&gt;loadHTML($body);
$yourText=$doc-&gt;saveHTML();
$body=$yourText;
$body=htmlspecialchars($body);
$body=trim(preg_replace("/\r?\n/", " ",$body));
echo html_entity_decode($body);
</code></pre>

<p>can anybody help me in solving the above issue</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>asifnaveed44</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456983/html-layout-distrube</guid>
		</item>
				<item>
			<title>where to download g++ package for ubuntu 12.04 and how to install offline</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/456982/where-to-download-g-package-for-ubuntu-12.04-and-how-to-install-offline</link>
			<pubDate>Wed, 19 Jun 2013 07:10:28 +0000</pubDate>
			<description>where to download g++ package for ubuntu 12.04 and how to install offline</description>
			<content:encoded><![CDATA[ <p>where to download g++ package for ubuntu 12.04 and how to install offline</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>narlapavan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/456982/where-to-download-g-package-for-ubuntu-12.04-and-how-to-install-offline</guid>
		</item>
				<item>
			<title>search form jquery php</title>
			<link>http://www.daniweb.com/web-development/php/threads/456981/search-form-jquery-php</link>
			<pubDate>Wed, 19 Jun 2013 06:59:37 +0000</pubDate>
			<description>hi i want to create realestate search form. but i don't know how to do it . please help me. for example visit below site [Click Here](http://www.lankaland.lk/)</description>
			<content:encoded><![CDATA[ <p>hi i want to create realestate search form. but i don't know how to do it . please help me.<br />
for example  visit below site <a href="http://www.lankaland.lk/" rel="nofollow">Click Here</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>nishantharp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456981/search-form-jquery-php</guid>
		</item>
				<item>
			<title>import csv file in vb6.0 with ms-access</title>
			<link>http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/456979/import-csv-file-in-vb6.0-with-ms-access</link>
			<pubDate>Wed, 19 Jun 2013 06:39:36 +0000</pubDate>
			<description>Dear sir, i have desinged import application project in vb6.0 and data base connectivity ms-access using, But here first line may be problem importing because first line is information about the data then next numberical are imported properly,so my requirement is importing csv file and datareporting possibly can you sent ...</description>
			<content:encoded><![CDATA[ <p>Dear sir,<br />
i have desinged import application project in vb6.0 and data base connectivity ms-access using, But here first line may be problem importing because first line is information about the data then next numberical are imported properly,so my requirement is importing csv file and datareporting possibly<br />
can you sent me properly coding importing csv below file.</p>

<p>1, 00051873, 04/21/2013, 11:11:25, 04/21/2013, 181,Supplier No. 1, خلاص, 00249157, 307, NA, 25<br />
37.5,21.4,3103,1.75,38.1,41.1<br />
38.8,23.6,3780,1.64,44.4,54.0<br />
39.7,24.1,3893,1.64,40.6,47.1<br />
34.4,21.8,3151,1.55,39.4,44.5<br />
37.0,30.3,4351,1.21,42.2,48.0<br />
37.9,22.3,3387,1.69,44.7,51.4<br />
31.2,23.2,2878,1.35,37.5,42.3<br />
29.0,22.3,2637,1.29,42.7,49.7<br />
31.7,18.3,2361,1.70,44.2,50.9<br />
41.9,25.0,3965,1.67,45.4,54.0<br />
33.0,26.8,3254,1.23,44.0,51.9<br />
37.5,22.7,3486,1.62,39.8,43.8<br />
32.1,20.5,2772,1.53,51.7,59.6<br />
31.2,26.8,3304,1.16,35.9,38.9<br />
37.5,33.0,3713,1.13,47.1,52.9<br />
29.9,24.5,2825,1.21,41.2,46.2<br />
37.0,20.5,2742,1.79,41.0,46.9<br />
31.7,24.1,2829,1.29,46.9,56.9<br />
35.2,23.2,3356,1.50,42.2,49.2<br />
31.7,21.4,2599,1.47,43.3,47.4<br />
31.7,20.5,2741,1.51,50.8,58.8<br />
30.8,23.2,2883,1.32,42.0,46.8<br />
37.5,26.3,3586,1.43,45.5,52.8<br />
34.4,22.3,3106,1.53,42.1,48.0<br />
33.5,21.8,3039,1.52,47.8,54.3</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>mirzabaig</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/456979/import-csv-file-in-vb6.0-with-ms-access</guid>
		</item>
				<item>
			<title>Assembler using python?</title>
			<link>http://www.daniweb.com/software-development/python/threads/456978/assembler-using-python</link>
			<pubDate>Wed, 19 Jun 2013 06:23:53 +0000</pubDate>
			<description>Guys! I would like to know if it was possible to create an assembler using python since it has excellent string handling features. Any Ideas how it could be done?</description>
			<content:encoded><![CDATA[ <p>Guys! I would like to know if it was possible to create an assembler using python since it has excellent string handling features. Any Ideas how it could be done?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>m_ishwar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/456978/assembler-using-python</guid>
		</item>
				<item>
			<title>networking</title>
			<link>http://www.daniweb.com/internet-marketing/threads/456977/networking</link>
			<pubDate>Wed, 19 Jun 2013 06:07:45 +0000</pubDate>
			<description>hoe to make free networking communication sites like mig with free without any credit</description>
			<content:encoded><![CDATA[ <p>hoe to make  free networking communication sites like mig with free without any credit</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/25">Internet Marketing</category>
			<dc:creator>jokeeank</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/threads/456977/networking</guid>
		</item>
				<item>
			<title>stunnel in user mode</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/456976/stunnel-in-user-mode</link>
			<pubDate>Wed, 19 Jun 2013 06:06:48 +0000</pubDate>
			<description>Hi I want to install stunnel in user mode. By user mode I mean that I have created a user using adduser xyz. Now when I run the ps -aef | grep stunnel .. it should show in xyz and not in root. One school of thought was to use ...</description>
			<content:encoded><![CDATA[ <p>Hi</p>

<p>I want to install stunnel in user mode.<br />
By user mode I mean that I have created a user using adduser xyz.<br />
Now when I run the ps -aef | grep stunnel .. it should show in xyz and not in root.<br />
One school of thought was to use the parameters setuid and setgid in stunnel.conf by assigning them both "xyz".<br />
but when I run the daemon, the errors flash<br />
stunnel.pem: No such file or directory (2)<br />
Service [https]: Failed to initialize SSL context</p>

<p>Please drop in ur views :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>leghorn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/456976/stunnel-in-user-mode</guid>
		</item>
				<item>
			<title>please help .Having problem in playing the video in php</title>
			<link>http://www.daniweb.com/web-development/php/threads/456975/please-help-.having-problem-in-playing-the-video-in-php</link>
			<pubDate>Wed, 19 Jun 2013 05:57:55 +0000</pubDate>
			<description>view.php &lt;html&gt; &lt;head&gt; &lt;title&gt;Video Upload&lt;/title&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;styles.css&quot; /&gt; &lt;link href=&quot;http://vjs.zencdn.net/4.0/video-js.css&quot; rel=&quot;stylesheet&quot;&gt; &lt;script src=&quot;http://vjs.zencdn.net/4.0/video.js&quot;&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;?php include 'connect.php'; ?&gt; &lt;div id=&quot;box&quot;&gt; &lt;?php $video = $_GET['video']; ?&gt; &lt;video id=&quot;my_video_1&quot; class=&quot;video-js vjs-default-skin&quot; controls preload=&quot;auto&quot; width=&quot;500&quot; height=&quot;264&quot; poster=&quot;my_video_poster.png&quot; data-setup=&quot;{}&quot;&gt; &lt;source src=&quot;videos/&lt;?php echo $video; ?&gt;&quot; type='video/mp4' /&gt; &lt;/video&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</description>
			<content:encoded><![CDATA[ <p>view.php</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Video Upload&lt;/title&gt;
&lt;link rel="stylesheet" href="styles.css" /&gt;
&lt;link href="<a href="http://vjs.zencdn.net/4.0/video-js.css" rel="nofollow">http://vjs.zencdn.net/4.0/video-js.css</a>" rel="stylesheet"&gt;
&lt;script src="<a href="http://vjs.zencdn.net/4.0/video.js" rel="nofollow">http://vjs.zencdn.net/4.0/video.js</a>"&gt;&lt;/script&gt;


&lt;/head&gt;

&lt;body&gt;

&lt;?php 
    include 'connect.php';
?&gt;

&lt;div id="box"&gt;
    &lt;?php
        $video = $_GET['video'];
    ?&gt;  

    &lt;video id="my_video_1" class="video-js vjs-default-skin"
  controls preload="auto" width="500" height="264"
  poster="my_video_poster.png"
  data-setup="{}"&gt;
 &lt;source src="videos/&lt;?php echo $video; ?&gt;" type='video/mp4' /&gt;

&lt;/video&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>shhh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456975/please-help-.having-problem-in-playing-the-video-in-php</guid>
		</item>
				<item>
			<title>Implementing Java&#039;s &quot;Exceptions Thrown by a Method&quot; in C#</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/456974/implementing-javas-exceptions-thrown-by-a-method-in-c</link>
			<pubDate>Wed, 19 Jun 2013 05:53:25 +0000</pubDate>
			<description>I have been working on a conversion project for last few days where I need to convert a Java library to C#. At one point I came to java's certain feature called [Exceptions Thrown by a Method](http://docs.oracle.com/javase/tutorial/essential/exceptions/declaring.html). Here is a little glimpse of it: public boolean isRequest() throws NullPointerException { ...</description>
			<content:encoded><![CDATA[ <p>I have been working on a conversion project for last few days where I need to convert a Java library to C#. At one point I came to java's certain feature called <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/declaring.html" rel="nofollow">Exceptions Thrown by a Method</a>. Here is a little glimpse of it:</p>

<pre><code class="language-cs">public boolean isRequest() throws NullPointerException
   {  
    // blocks of code implementing isRequest() method;
   }
</code></pre>

<p>For the C# implementation of this code snippet, I searched the web and quite shockingly found that, <strong>C# does not support throwing exceptions in the compile time</strong>.</p>

<p>Now my question is, how can I implement this code portion in a C# library?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>mesbahuk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/456974/implementing-javas-exceptions-thrown-by-a-method-in-c</guid>
		</item>
				<item>
			<title>iTune VS Google Play</title>
			<link>http://www.daniweb.com/hardware-and-software/apple/ios-iphone-os/threads/456973/itune-vs-google-play</link>
			<pubDate>Wed, 19 Jun 2013 05:21:13 +0000</pubDate>
			<description>iTunes and Google Play are may be the toughest competitor, what is your choice?</description>
			<content:encoded><![CDATA[ <p>iTunes and Google Play are may be the toughest competitor, what is your choice?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/apple/ios-iphone-os/101">iOS (iPhone OS)</category>
			<dc:creator>adamhmiles</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/apple/ios-iphone-os/threads/456973/itune-vs-google-play</guid>
		</item>
				<item>
			<title>project</title>
			<link>http://www.daniweb.com/software-development/computer-science/threads/456972/project</link>
			<pubDate>Wed, 19 Jun 2013 05:02:09 +0000</pubDate>
			<description>i want help to write an algorithm for a wireless sensor network for use in matlab</description>
			<content:encoded><![CDATA[ <p>i want help to write an algorithm for a wireless sensor network for use in matlab</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/computer-science/14">Computer Science</category>
			<dc:creator>kuva</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/computer-science/threads/456972/project</guid>
		</item>
				<item>
			<title>search string in data using PHP</title>
			<link>http://www.daniweb.com/web-development/php/threads/456971/search-string-in-data-using-php</link>
			<pubDate>Wed, 19 Jun 2013 04:57:11 +0000</pubDate>
			<description>I have a problem in searching text in data, like search only street = Denover... Here is my code. Pls help me. if i click button nothing happend... Index.php &lt;?php include_once '../templete/header.php'; ?&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt; &lt;title&gt;Search&lt;/title&gt; &lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt; &lt;/head&gt; &lt;body&gt; &lt;form ...</description>
			<content:encoded><![CDATA[ <p>I have a problem in searching text in data, like search only street = Denover...<br />
Here is my code. Pls help me. if i click button nothing happend...</p>

<p>Index.php</p>

<pre><code>&lt;?php  include_once '../templete/header.php'; ?&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 http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Search&lt;/title&gt;
&lt;link href="style.css" rel="stylesheet" type="text/css" /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action="search.php" method="get" &gt;
&lt;table border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
    &lt;td&gt;&lt;input type="text" name="query" id="text"  /&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td&gt;&lt;input type="submit" name="submit" id="search" value="Search" /&gt;&lt;/td&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Search.php</p>

<pre><code>&lt;?php
 include_once '../templete/header.php';
 include_once '../inc/connection.inc.php';
?&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Search&lt;/title&gt;
&lt;link href="style.css" rel="stylesheet" type="text/css" /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table&gt;    
&lt;tr&gt;
  &lt;td&gt;Name&lt;/td&gt;
  &lt;td&gt;Address&lt;/td&gt;
  &lt;/tr&gt;   
&lt;?php
    $query = $_GET['query'];

    //$stmt = $dbh-&gt;prepare("SELECT * FROM CompanyInfo WHERE (Name LIKE '%".$query."%') OR (Address LIKE '%".$query."%')");
    $stmt = $dbh-&gt;prepare("SELECT * FROM CompanyInfo WHERE (Name LIKE '%".$query."%' OR Address LIKE '%".$query."%')");
    $stmt-&gt;setFetchMode(PDO::FETCH_ASSOC); 
    //$stmt-&gt;execute();
    if(isset($stmt))
        {
            while($row = $stmt-&gt;fetch()); ?&gt;
              &lt;tr&gt;
              &lt;td&gt;&lt;?php echo $row['Name'];?&gt;&lt;/td&gt;
              &lt;td&gt;&lt;?php echo $row['Address'];?&gt;&lt;/td&gt;
              &lt;/tr&gt;
        &lt;?php
        }
?&gt;
&lt;/table&gt;    
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Thanking you</p>

<p>maideen</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Maideen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/456971/search-string-in-data-using-php</guid>
		</item>
				<item>
			<title>Journal Article</title>
			<link>http://www.daniweb.com/web-development/jsp/threads/456970/journal-article</link>
			<pubDate>Wed, 19 Jun 2013 04:50:43 +0000</pubDate>
			<description>Can some one teach me how to change **getContent()** from **journal article xml to html**. **Here my code** &lt;% JournalArticle art = JournalArticleLocalServiceUtil.getArticle(journalrow.getGroupId(), journalrow.getArticleId()); String contentXML = &quot;&quot;; contentXML = art.getContent(); %&gt; &lt;tr&gt; &lt;td class=&quot;title&quot;&gt;&lt;A href=&quot;&lt;%=articleURL.toString()%&gt;&quot; onclick=&quot;window.open(this.href,'popupwindow', 'width=800,height=600,scrollbars,resizable'); return false;&quot;&gt;&lt;%=journalrow.getTitleCurrentValue() %&gt;&lt;/A&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;a class=&quot;date&quot;&gt;&lt;%= dateFormat.format(journalrow.getModifiedDate()) %&gt;&lt;/a&gt; - &lt;a class=&quot;content&quot;&gt;&lt;%= ...</description>
			<content:encoded><![CDATA[ <p>Can some one teach me how to change <strong>getContent()</strong> from <strong>journal article xml to html</strong>.<br /><strong>Here my code</strong></p>

<pre><code>&lt;%
JournalArticle art = JournalArticleLocalServiceUtil.getArticle(journalrow.getGroupId(), journalrow.getArticleId());
            String contentXML = "";
            contentXML = art.getContent();
%&gt;

&lt;tr&gt;
        &lt;td class="title"&gt;&lt;A href="&lt;%=articleURL.toString()%&gt;" onclick="window.open(this.href,'popupwindow', 'width=800,height=600,scrollbars,resizable'); return false;"&gt;&lt;%=journalrow.getTitleCurrentValue() %&gt;&lt;/A&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
        &lt;td&gt;&lt;a class="date"&gt;&lt;%= dateFormat.format(journalrow.getModifiedDate()) %&gt;&lt;/a&gt; - &lt;a class="content"&gt;&lt;%= journalrow.getContent()%&gt;&lt;/a&gt;&lt;/td&gt;  
&lt;/tr&gt;
&lt;tr&gt;
        &lt;td class="date"&gt;&lt;/td&gt;    
&lt;/tr&gt;
</code></pre>

<p><strong>output</strong></p>

<p>What is Lorem<br />
13/06/2013 - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br />
]]&gt;</p>

<p><strong>there are symbols at the end of content</strong></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/jsp/24">JSP</category>
			<dc:creator>bipi09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/jsp/threads/456970/journal-article</guid>
		</item>
				<item>
			<title>using statement</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/456968/using-statement</link>
			<pubDate>Wed, 19 Jun 2013 04:45:24 +0000</pubDate>
			<description>does any one experience this while using mdi the code is something like this using a as new form a.mdiparent = this a.showdialog() end using then when i tried to show the new form it will close automatically. why is that happening? thank you</description>
			<content:encoded><![CDATA[ <p>does any one experience this while using mdi</p>

<p>the code is something like this</p>

<pre><code class="language-vb">using a as new form
    a.mdiparent = this
    a.showdialog()
end using
</code></pre>

<p>then when i tried to show the new form it will close automatically.</p>

<p>why is that happening?</p>

<p>thank you</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>ZER09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/456968/using-statement</guid>
		</item>
				<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>thesis hardware/software/ android application</title>
			<link>http://www.daniweb.com/software-development/threads/456941/thesis-hardwaresoftware-android-application</link>
			<pubDate>Tue, 18 Jun 2013 15:38:53 +0000</pubDate>
			<description>good day. we are a group of 4 students. our school wants us to provide a unique and not yet existhing thesis proposal with hardware. do you any in mind? thank you!</description>
			<content:encoded><![CDATA[ <p>good day. we are a group of 4 students. our school wants us to provide a unique and not yet existhing thesis proposal with hardware. do you any in mind? thank you!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/2">Software Development</category>
			<dc:creator>bartman0901</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/threads/456941/thesis-hardwaresoftware-android-application</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>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>
			</channel>
</rss>