<?xml version="1.0" encoding="utf-8"?>

<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/forums/</link>
		<description>Tech support, programming, web development, and internet marketing community. Forums to get free computer help and support.</description>
		<language>en-US</language>
		<lastBuildDate>Sat, 07 Nov 2009 08:59:34 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Difference between Title and META tags</title>
			<link>http://www.daniweb.com/forums/thread236739.html</link>
			<pubDate>Sat, 07 Nov 2009 08:55:11 GMT</pubDate>
			<description><![CDATA[6 month before I start my SEO carrier as a Off page Optimization, now I start work on on-opage optimization but i don't understand the difference between Title or meta tags. Please help me]]></description>
			<content:encoded><![CDATA[<div>6 month before I start my SEO carrier as a Off page Optimization, now I start work on on-opage optimization but i don't understand the difference between Title or meta tags. Please help me</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum45.html">Search Engine Optimization</category>
			<dc:creator>surindersharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236739.html</guid>
		</item>
		<item>
			<title>error message when booting pc</title>
			<link>http://www.daniweb.com/forums/thread236737.html</link>
			<pubDate>Sat, 07 Nov 2009 08:54:28 GMT</pubDate>
			<description><![CDATA["windows could not start because the following file is missing or corrupt: 
<windows root>/system32/hal.dll. 
Please re-install a copy of the above file." 
i have pentium 4 processor 
os-windows xp professional  
 
i hav tried with d xp cd......wen i kept it n den rebooted d above same message came.]]></description>
			<content:encoded><![CDATA[<div>&quot;windows could not start because the following file is missing or corrupt:<br />
&lt;windows root&gt;/system32/hal.dll.<br />
Please re-install a copy of the above file.&quot;<br />
i have pentium 4 processor<br />
os-windows xp professional <br />
<br />
i hav tried with d xp cd......wen i kept it n den rebooted d above same message came.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum10.html">Windows NT / 2000 / XP</category>
			<dc:creator>AnimeKing</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236737.html</guid>
		</item>
		<item>
			<title>automation scripts--help needed urgent</title>
			<link>http://www.daniweb.com/forums/thread236736.html</link>
			<pubDate>Sat, 07 Nov 2009 08:53:36 GMT</pubDate>
			<description>Hi team, 
 
Well i have been asked to make use of automation  scripts for my host production box.. .And i hope u will help me with the same. 
 
#script as below: 
a)when i run  script it should ask the person to key in..(means should be interactive) 
b) it should search a file  
c) it should...</description>
			<content:encoded><![CDATA[<div>Hi team,<br />
<br />
Well i have been asked to make use of automation  scripts for my host production box.. .And i hope u will help me with the same.<br />
<br />
#script as below:<br />
a)when i run  script it should ask the person to key in..(means should be interactive)<br />
b) it should search a file <br />
c) it should replace a word/ multiple word in a file and prompt user for more changes once he done with<br />
and finally..<br />
D) delete the line rows... (any rows- mentioned by the user on files)<br />
<br />
I am done with the 1st script but i am having probs with the second and third<br />
<br />
2)I knw sed will replace <br />
 sed 's/(word)/(with-word)'/ file name<br />
<br />
3)and sed 'line,lined' file<br />
<br />
but how to use in the below script and ask the user for more inputs..<br />
Please provide me with the earliest.. <br />
thankin you once again<br />
<br />
PS: Moderator pls dont treat this mail as repetative <br />
<br />
regards<br />
whizkidash<br />
<br />
<br />
<br />
<br />
vi showme.sh(script name)<br />
<br />
echo &quot;type the file to be search&quot;<br />
 read fname<br />
if ls -lart | $fname<br />
then <br />
echo &quot; File exist&quot;<br />
else echo &quot; File fail&quot;<br />
------(uptil here it run fine)<br />
echo &quot; type the file to be replace/or substituted&quot;<br />
read tname</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum113.html">Shell Scripting</category>
			<dc:creator>whizkidash</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236736.html</guid>
		</item>
		<item>
			<title>Error!!!</title>
			<link>http://www.daniweb.com/forums/thread236735.html</link>
			<pubDate>Sat, 07 Nov 2009 08:49:21 GMT</pubDate>
			<description><![CDATA[My subscription system is now running though with errors here and there.the error that concerns me a lot is a runtime error that says  
 
---Quote--- 
multiple steps generated an error check value status 
---End Quote--- 
  
and points to this code....  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>My subscription system is now running though with errors here and there.the error that concerns me a lot is a runtime error that says <br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  multiple steps generated an error check value status  <hr /> </td> </tr> </table> </div>and points to this code.... <pre style="margin:20px; line-height:13px">r.Fields(&quot;companyphone&quot;) = txtcphone.Text<br />
r.Fields(&quot;companywebsite&quot;) = txtcwebsite.Text</pre>and this code is in my save button. at times the error doesnt show but at times it pops up when a user is testing...<br />
how best can i trap such an error because i know there must be  a way which i dont know.<br />
thank you in advance!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>Israelsimba</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236735.html</guid>
		</item>
		<item>
			<title>Help with script asp</title>
			<link>http://www.daniweb.com/forums/thread236733.html</link>
			<pubDate>Sat, 07 Nov 2009 08:47:05 GMT</pubDate>
			<description>I have the following script from a forum that collected  data from a form and inserted in the. Mdb  
These are displayed through a file that reads the database.  
At this time the display is text, URLs are not active.  
The script is not so do not really know what to do.  
I need that URLs appear...</description>
			<content:encoded><![CDATA[<div>I have the following script from a forum that collected  data from a form and inserted in the. Mdb <br />
These are displayed through a file that reads the database. <br />
At this time the display is text, URLs are not active. <br />
The script is not so do not really know what to do. <br />
I need that URLs appear as a link at this time does not happen.<br />
Can you help me?<br />
&lt;%<br />
IdMensaje = Request.QueryString(&quot;IdMensaje&quot;)<br />
busca = Trim(Request.QueryString(&quot;busca&quot;))<br />
Set oConn = Server.CreateObject (&quot;ADODB.Connection&quot;)<br />
Set RS = Server.CreateObject (&quot;ADODB.RecordSet&quot;)<br />
oConn.Open &quot;DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=&quot;&amp;Server.MapPath(&quot;.private//usuarios.mdb&quot;)<br />
sql = &quot;SELECT * FROM discusion WHERE IdMensaje=&quot;&amp;IdMensaje&amp;&quot;&quot;<br />
Rs.Open sql, oConn, 1, 1<br />
mensaje = RS(&quot;mensaje&quot;)<br />
%&gt;<br />
&lt;img src=&quot;anadir.gif&quot; width=&quot;16&quot; height=&quot;16&quot;&gt; &lt;A HREF=&quot;contestar.asp?idmensaje=&lt;%=IdMensaje%&gt;&quot;&gt;&lt;B&gt;Contestar <br />
este mensaje&lt;/B&gt;&lt;/A&gt;&lt;BR&gt;<br />
&lt;BR&gt;<br />
&lt;%'=== Muestro el mensaje padre. La pregunta inicial ======<br />
Response.Write &quot;&lt;B&gt;Nombre: &lt;/B&gt;&quot;&amp;RS(&quot;name&quot;)&amp;&quot;&lt;BR&gt;&quot;<br />
Response.Write &quot;&lt;B&gt;Email: &lt;/B&gt;&quot;&amp;RS(&quot;mail&quot;)&amp;&quot;&lt;BR&gt;&quot;<br />
Response.Write &quot;&lt;B&gt;Título del mensaje: &lt;/B&gt;&quot;&amp;RS(&quot;Title&quot;)&amp;&quot;&lt;BR&gt;&quot;<br />
Response.Write &quot;&lt;B&gt;Mensaje: &lt;/B&gt;&lt;BR&gt;&lt;P&gt;&lt;I&gt;&quot;&amp; AcomodarTXT(mensaje)&amp;&quot;&lt;/I&gt;&lt;/P&gt;&quot;<br />
Response.Write &quot;&lt;HR WIDTH=&quot;&quot;80%&quot;&quot;&gt;&quot;<br />
'===== Fin pregunta inicial ===== Set RS2 = Server.CreateObject (&quot;ADODB.RecordSet&quot;)<br />
sql2 = &quot;SELECT * FROM discusion WHERE IdCabeza=&quot;&amp;IdMensaje &amp;&quot; ORDER BY fecha&quot;<br />
RS2.Open sql2, oConn, 1, 1<br />
'===== Respuestas a la pregunta inicial<br />
Do While not RS2.EOF<br />
mensaje2 = RS2(&quot;mensaje&quot;)<br />
Response.Write &quot;&lt;BR&gt;&lt;B&gt;Nombre: &lt;/B&gt;&quot;&amp;RS2(&quot;name&quot;)&amp;&quot;&lt;BR&gt;&quot;<br />
Response.Write &quot;&lt;B&gt;Email: &lt;/B&gt;&quot;&amp;RS2(&quot;mail&quot;)&amp;&quot;&lt;BR&gt;&quot;<br />
Response.Write &quot;&lt;B&gt;Título del mensaje: &lt;/B&gt;&quot;&amp;RS2(&quot;title&quot;)&amp;&quot;&lt;BR&gt;&quot;<br />
Response.Write &quot;&lt;B&gt;Mensaje: &lt;/B&gt;&lt;BR&gt;&quot;%&gt;&lt;P&gt;&lt;I&gt;&lt;%= AcomodarTXT(mensaje2)%&gt;&lt;/I&gt;&lt;/P&gt;&lt;BR&gt;<br />
&lt;%<br />
Response.Write &quot;&lt;HR WIDTH=&quot;&quot;80%&quot;&quot;&gt;&quot;<br />
RS2.MoveNext<br />
Loop<br />
'===== Fin de respuestas ======<br />
RS2.Close<br />
Set RS2 = nothing<br />
RS.Close<br />
oConn.Close<br />
Set RS = nothing<br />
Set oConn = nothing<br />
<br />
Function AcomodarTXT(txt)<br />
txt = Replace (txt, &quot;&lt;&quot;, &quot;&amp;lt;&quot;)<br />
txt = Replace (txt, &quot;&gt;&quot;, &quot;&amp;gt;&quot;)<br />
txt = Replace (txt, vbCrLf, &quot;&lt;BR&gt;&quot;)<br />
txt = Replace (txt, &quot;''&quot;, &quot;'&quot;)<br />
acomodarTXT = txt<br />
End function<br />
%&gt;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum62.html">ASP</category>
			<dc:creator>Jhon100</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236733.html</guid>
		</item>
		<item>
			<title>To restrict users to choose date from date picker only</title>
			<link>http://www.daniweb.com/forums/thread236731.html</link>
			<pubDate>Sat, 07 Nov 2009 08:34:46 GMT</pubDate>
			<description>Hi all. 
 
I have two date input fields. Is there any way to restrict date input from only date picker (users are not allowed to input date through keyboard). The reason I want it this way is to prevent users from entering invalid dates. 
 
Any help provided is greatly appreciated. Thanks in...</description>
			<content:encoded><![CDATA[<div>Hi all.<br />
<br />
I have two date input fields. Is there any way to restrict date input from only date picker (users are not allowed to input date through keyboard). The reason I want it this way is to prevent users from entering invalid dates.<br />
<br />
Any help provided is greatly appreciated. Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>lcyew</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236731.html</guid>
		</item>
		<item>
			<title>Free IEEE Project Synopsis For BE,ME,MCA,BCA-2010 Batch Students</title>
			<link>http://www.daniweb.com/forums/thread236730.html</link>
			<pubDate>Sat, 07 Nov 2009 08:34:04 GMT</pubDate>
			<description>*Greetings from iGEEKS... 
Hope this mail finds you in good spirits.* 
 
*iGEEKS  is a company located in Bangalore, Malleswaram, India.  We have being recognized as a quality provider of hardware and software solutions for the students in order carry out their academic Projects. We offer academic...</description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold"><span style="color:red">Greetings from iGEEKS...<br />
Hope this mail finds you in good spirits.</span></span><br />
<br />
<span style="color:Green"><span style="font-weight:bold">iGEEKS  is a company located in Bangalore, Malleswaram, India.  We have being recognized as a quality provider of hardware and software solutions for the students in order carry out their academic Projects. We offer academic projects at various academic levels ranging from graduates to masters (Diploma, BCA, BE, M.Tech, MCA, M.Sc (CS/IT)). As a part of our vision to provide hands-on experience to the students we invite them from the stream of Electronics, Instrumentation, Computer Science &amp; Information Science to carry out their academic project work at our facility under the guidance of industry experts. The students will be working as Project Trainees. </span></span><br />
<br />
<span style="color:green"><span style="font-weight:bold">We attached the Proposed Synopsis for 2010 Batch. Find the Attachment. For Registration on Project, Contact @9739066172 or <a href="mailto:training@igeeks.in">training@igeeks.in</a></span></span></div>  <br /> <div style="padding:5px">    <fieldset class="fieldset"> <legend>Attached Images</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12476&amp;d=1257582754" target="_blank">Projects.jpg</a> (59.2 KB)</td> </tr> </table> </fieldset>   <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/pdf.gif" alt="File Type: pdf" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12477&amp;d=1257582776">project titles2010.pdf</a> (138.5 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science</category>
			<dc:creator>igeeks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236730.html</guid>
		</item>
		<item>
			<title>Unlimited Hosting+İnstallatron+Cpanel ONLY $6.99</title>
			<link>http://www.daniweb.com/forums/thread236729.html</link>
			<pubDate>Sat, 07 Nov 2009 08:15:52 GMT</pubDate>
			<description>*Linux: BİG 
	 
 
Unmetered Disk Space 
Unmetered Bandwidth 
 
Unlimited Pop3 E-Mail 
Unlimited Sub domain 
Unlimited MySQL 
Installatron</description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold">Linux: BİG<br />
	<br />
<br />
Unmetered Disk Space<br />
Unmetered Bandwidth<br />
<br />
Unlimited Pop3 E-Mail<br />
Unlimited Sub domain<br />
Unlimited MySQL<br />
Installatron<br />
Cpanel</span><br />
<br />
<a rel="nofollow" class="t" href="http://www.hostbaycan.com/web-hosting.php" target="_blank">ORDER NOW ONLY $6.99</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum154.html">Web Hosting Deals</category>
			<dc:creator>hostbaycan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236729.html</guid>
		</item>
		<item>
			<title>Forget Password in PHP</title>
			<link>http://www.daniweb.com/forums/thread236728.html</link>
			<pubDate>Sat, 07 Nov 2009 08:10:11 GMT</pubDate>
			<description>Hello Guys  
 
I am working on a website 
 
I am not getting the forget password  
 
can u please help me in solving problem please 
 
 
Thanks in advance</description>
			<content:encoded><![CDATA[<div>Hello Guys <br />
<br />
I am working on a website<br />
<br />
I am not getting the forget password <br />
<br />
can u please help me in solving problem please<br />
<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>knrakesh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236728.html</guid>
		</item>
		<item>
			<title>png image croping problem</title>
			<link>http://www.daniweb.com/forums/thread236727.html</link>
			<pubDate>Sat, 07 Nov 2009 08:02:16 GMT</pubDate>
			<description><![CDATA[hi all. i want to crop png  image. 
when i am croping the png image i got "Fatal error: imagepng() [<a href='function.imagepng'>function.imagepng</a>]: gd-png: fatal libpng error: zlib error in C:\wamp\www\taslan\admin\products.php on line 120" error message. at line no 120 shows...]]></description>
			<content:encoded><![CDATA[<div>hi all. i want to crop png  image.<br />
when i am croping the png image i got &quot;Fatal error: imagepng() [&lt;a href='function.imagepng'&gt;function.imagepng&lt;/a&gt;]: gd-png: fatal libpng error: zlib error in C:\wamp\www\taslan\admin\products.php on line 120&quot; error message. at line no 120 shows imagepng($bgim_new,$bgth_file_name,100); this function</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>rajabhaskar525</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236727.html</guid>
		</item>
		<item>
			<title>Questions on using the STL list sort method</title>
			<link>http://www.daniweb.com/forums/thread236726.html</link>
			<pubDate>Sat, 07 Nov 2009 07:49:16 GMT</pubDate>
			<description><![CDATA[I am very new to using the STL list library. From what I have been reading here and other places on the web is that I have to create a compare function to use within the sort member function of list. The reason being that the list node's contain structures. I have to sort the list by a few...]]></description>
			<content:encoded><![CDATA[<div>I am very new to using the STL list library. From what I have been reading here and other places on the web is that I have to create a compare function to use within the sort member function of list. The reason being that the list node's contain structures. I have to sort the list by a few different variables. Below is the class that controls my list. I am getting two errors.<br />
<br />
Error 1) error C3867: 'Standings::compareForSort': function call missing argument list; use '&amp;Standings::compareForSort' to create a pointer to member<br />
<br />
Error 2) error C2660: 'std::list&lt;_Ty&gt;::sort' : function does not take 1 arguments<br />
<br />
Any help here would be appreciated. <br />
<br />
 <pre style="margin:20px; line-height:13px">#ifndef STANDINGS_H<br />
#define STANDINGS_H<br />
<br />
#include &lt;iostream&gt;<br />
#include &lt;list&gt;<br />
#include &lt;fstream&gt;<br />
#include &lt;iomanip&gt;<br />
<br />
using namespace std;<br />
<br />
#define NAMELENGTH 20<br />
<br />
struct Records<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; int totalWin;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int totalLose;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double winPercentage;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double gamesBehind;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int streakWin;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int streakLose;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int streakLength;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int homeWin;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int homeLose;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int awayWin;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int awayLose;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int interWin;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int interLose;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int division;<br />
&nbsp; &nbsp; &nbsp; &nbsp; char teamName[NAMELENGTH];<br />
&nbsp; &nbsp; &nbsp; &nbsp; char streakType;<br />
<br />
};<br />
<br />
<br />
class Standings<br />
{<br />
private:<br />
&nbsp; &nbsp; &nbsp; &nbsp; list&lt;Records&gt; recordsList;<br />
&nbsp; &nbsp; &nbsp; &nbsp; friend class Team;<br />
public:<br />
&nbsp; &nbsp; &nbsp; &nbsp; Standings();<br />
&nbsp; &nbsp; &nbsp; &nbsp; ~Standings(){};<br />
&nbsp; &nbsp; &nbsp; &nbsp; void loadList();<br />
&nbsp; &nbsp; &nbsp; &nbsp; void saveList();<br />
&nbsp; &nbsp; &nbsp; &nbsp; void printStandings();<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool compareForSort (Records&amp;, Records&amp;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
};<br />
<br />
#endif<br />
<br />
#include &quot;standings.h&quot;<br />
<br />
Standings::Standings()<br />
{<br />
<br />
}&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
void Standings::loadList(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Create a variable of ifstream type names loadFile<br />
&nbsp; &nbsp; &nbsp; &nbsp; ifstream loadFile;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; //Open standings txt file<br />
&nbsp; &nbsp; &nbsp; &nbsp; loadFile.open(&quot;standings.txt&quot;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; //Temporary object of struct type Record<br />
&nbsp; &nbsp; &nbsp; &nbsp; Records r;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Loop to take from file put into class <br />
&nbsp; &nbsp; &nbsp; &nbsp; //and than put class into list<br />
&nbsp; &nbsp; &nbsp; &nbsp; while(!loadFile.eof()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loadFile &gt;&gt; r.teamName<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.totalWin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.totalLose<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.winPercentage<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.gamesBehind<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.streakWin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.streakLose<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.streakType<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.streakLength<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.homeWin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.homeLose<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.awayWin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.awayLose<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.interWin<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.interLose<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; r.division;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Checks to make sure its not the end of file.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //If its not the end of the file it inserts <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //the node at the end of the list<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!loadFile.eof())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; recordsList.push_back(r);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  //closing the text file<br />
&nbsp; &nbsp; &nbsp; &nbsp; loadFile.close(); <br />
}<br />
<br />
void Standings::saveList()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Sorts the List before saving to txt<br />
&nbsp; &nbsp; &nbsp; &nbsp; recordsList.sort(compareForSort);<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Create a variable of ofstream type names saveFile<br />
&nbsp; &nbsp; &nbsp; &nbsp; ofstream saveFile;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //Open standings txt file<br />
&nbsp; &nbsp; &nbsp; &nbsp; saveFile.open(&quot;standings.txt&quot;);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //Create an iterator to keep place of the nodes saved<br />
&nbsp; &nbsp; &nbsp; &nbsp; list&lt;Records&gt;::iterator i;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Loop through each node and save each member to that node<br />
&nbsp; &nbsp; &nbsp; &nbsp; for ( i=recordsList.begin(); i != recordsList.end(); ++i ) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saveFile &lt;&lt; right &lt;&lt; setw(13) &lt;&lt; i-&gt;teamName &lt;&lt; setw(4) &lt;&lt; i-&gt;totalWin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; setw(4) &lt;&lt; i-&gt;totalLose &lt;&lt; setw(7) &lt;&lt; setprecision(3) &lt;&lt; i-&gt;winPercentage <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; setw(6) &lt;&lt; i-&gt;gamesBehind &lt;&lt; setw(2) &lt;&lt; i-&gt;streakWin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; setw(2) &lt;&lt; i-&gt;streakLose&nbsp; &lt;&lt; setw(2) &lt;&lt; i-&gt;streakType <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; setw(2) &lt;&lt; i-&gt;streakLength&nbsp; &lt;&lt; setw(3)&lt;&lt; i-&gt;homeWin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; setw(3) &lt;&lt; i-&gt;homeLose&nbsp; &lt;&lt; setw(3) &lt;&lt; i-&gt;awayWin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; setw(3) &lt;&lt; i-&gt;awayLose&nbsp; &lt;&lt; setw(3)&lt;&lt; i-&gt;interWin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; setw(3) &lt;&lt; i-&gt;interLose&nbsp; &lt;&lt; setw(2) &lt;&lt; i-&gt;division <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
//Flush and Close txt file<br />
&nbsp; &nbsp; &nbsp; &nbsp; saveFile.flush();<br />
&nbsp; &nbsp; &nbsp; &nbsp; saveFile.close();<br />
<br />
}<br />
<br />
void Standings::printStandings()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; list&lt;Records&gt;::iterator i;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Looping through each node and printing each variable of each node<br />
&nbsp; &nbsp; &nbsp; &nbsp; for ( i=recordsList.begin(); i != recordsList.end(); ++i ) <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&nbsp; &lt;&lt; right &lt;&lt; setw(13) &lt;&lt; i-&gt;teamName &lt;&lt; setw(4) &lt;&lt; i-&gt;totalWin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; setw(4) &lt;&lt; i-&gt;totalLose &lt;&lt; right &lt;&lt; setw(7) &lt;&lt; i-&gt;winPercentage <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; right &lt;&lt; setw(6) &lt;&lt; i-&gt;gamesBehind &lt;&lt; right &lt;&lt; setw(2) &lt;&lt; i-&gt;streakWin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; right &lt;&lt; setw(2) &lt;&lt; i-&gt;streakLose &lt;&lt; right &lt;&lt; setw(2) &lt;&lt; i-&gt;streakType <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; right &lt;&lt; setw(2) &lt;&lt; i-&gt;streakLength &lt;&lt;right &lt;&lt; setw(3)&lt;&lt; i-&gt;homeWin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; right &lt;&lt; setw(3) &lt;&lt; i-&gt;homeLose &lt;&lt; right &lt;&lt; setw(3) &lt;&lt; i-&gt;awayWin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; right &lt;&lt; setw(3) &lt;&lt; i-&gt;awayLose &lt;&lt; right &lt;&lt; setw(3)&lt;&lt; i-&gt;interWin <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; right &lt;&lt; setw(3) &lt;&lt; i-&gt;interLose &lt;&lt; right &lt;&lt; setw(2) &lt;&lt; i-&gt;division <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
<br />
<br />
bool Standings::compareForSort(Records&amp; node1, Records&amp; node2)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; list&lt;Records&gt;::iterator i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; for ( i=recordsList.begin(); i != recordsList.end(); ++i ) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if((node1.totalWin &gt; node2.totalWin) &amp;&amp; (node1.winPercentage &gt; node2.winPercentage) &amp;&amp; (node1.division &lt; node2.division))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Afupi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236726.html</guid>
		</item>
		<item>
			<title>Windows XP Pro unable to install</title>
			<link>http://www.daniweb.com/forums/thread236725.html</link>
			<pubDate>Sat, 07 Nov 2009 07:48:33 GMT</pubDate>
			<description>Hi everyone, 
 
I am trying to fix a pc for a friend.  He has a HP Pavillion with a SATA HD (1) and SATA Lightscribe DVD Writer (2). 
 
System is set to Boot from DVD first then HD. 
 
The HD is the Primary Master and the DVD is the Primary Slave. 
 
Installation of XP Pro begins but at first...</description>
			<content:encoded><![CDATA[<div>Hi everyone,<br />
<br />
I am trying to fix a pc for a friend.  He has a HP Pavillion with a SATA HD (1) and SATA Lightscribe DVD Writer (2).<br />
<br />
System is set to Boot from DVD first then HD.<br />
<br />
The HD is the Primary Master and the DVD is the Primary Slave.<br />
<br />
Installation of XP Pro begins but at first reboot the installation process starts all over again rather than picking up from where it left off.<br />
<br />
Just to make sure I have taken the HD out an formatted (NTFS) it in my own machine to make sure it is empty.  I can write and save to the HD while it is in my PC without any problems.<br />
<br />
Does any one know what is going on and have some solutions?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum10.html">Windows NT / 2000 / XP</category>
			<dc:creator>Zeki</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236725.html</guid>
		</item>
		<item>
			<title>Help with Code</title>
			<link>http://www.daniweb.com/forums/thread236724.html</link>
			<pubDate>Sat, 07 Nov 2009 07:45:37 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I am an online student in an intro to Java programming course and am a little stuck on my current program. The program is supposed to prompt for the name of files until the user enters "stop" to quit and includes the following methods in addition to the main method: 
 
1. countLines(),...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am an online student in an intro to Java programming course and am a little stuck on my current program. The program is supposed to prompt for the name of files until the user enters &quot;stop&quot; to quit and includes the following methods in addition to the main method:<br />
<br />
1. countLines(), which takes a File object, and returns the number of lines of text in the file<br />
<br />
2. countLettersInLines(), which takes a File object, and returns an array of integers. In this array of integers, the first entry is the number of letters in the first line of the file, the second entry is the number of letters in the second line of the file, etc.<br />
<br />
3. countLetters(), which takes a File object, and returns the number of letters in the file<br />
<br />
4. countOneLetter() takes a File object and a letter, and returns the number of occurrences of the specified letter in the file (in uppercase or lowercase). This method and countLetters() can be used to determine the frequency of each letter in a text file.<br />
<br />
5. countAllLetters() takes a File object, and returns an array of 26 integers, such that the entries in the array contain the number of occurrences of each letter of the alphabet in the file, disregarding case. The first entry in the array will be the number of a's in the file (regardless of case), the second entry is the number of b's (regardless of case), and so on. This method should use countOneLetter().<br />
<br />
6. countIntegers() takes a File object, and returns the number of integers in the file<br />
<br />
An example to this program would be:<br />
Please enter the file name, or &quot;stop&quot; to end: short.txt<br />
<br />
Number of lines: 2<br />
Line with maximum number of letters: 1<br />
Line 1: 13 letters<br />
Line 2: 5 letters<br />
<br />
Number of letters: 18<br />
Frequency of a: 5.555555555555555<br />
Frequency of b: 0.0<br />
Frequency of c: 0.0<br />
Frequency of d: 0.0<br />
Frequency of e: 16.666666666666668<br />
Frequency of f: 0.0<br />
Frequency of g: 0.0<br />
Frequency of h: 5.555555555555555<br />
Frequency of i: 11.11111111111111<br />
Frequency of j: 0.0<br />
Frequency of k: 0.0<br />
Frequency of l: 16.666666666666668<br />
Frequency of m: 11.11111111111111<br />
Frequency of n: 5.555555555555555<br />
Frequency of o: 5.555555555555555<br />
Frequency of q: 0.0<br />
Frequency of r: 0.0<br />
Frequency of s: 11.11111111111111<br />
Frequency of t: 0.0<br />
Frequency of u: 0.0<br />
Frequency of v: 5.555555555555555<br />
Frequency of w: 0.0<br />
Frequency of x: 0.0<br />
Frequency of y: 5.555555555555555<br />
Frequency of z: 0.0<br />
<br />
Integers in the file: 2<br />
<br />
Please enter the file name, or &quot;stop&quot; to end: stop<br />
<br />
<br />
Thank you any help will be much appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>hedwards09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236724.html</guid>
		</item>
		<item>
			<title>Help with Code</title>
			<link>http://www.daniweb.com/forums/thread236723.html</link>
			<pubDate>Sat, 07 Nov 2009 07:26:58 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I am an online student in an intro to Java programming course and am a little stuck on my current program.  The program is supposed to prompt for the name of files until the user enters "stop" to quit and includes the following methods in addition to the main method: 
 
1. countLines(),...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am an online student in an intro to Java programming course and am a little stuck on my current program.  The program is supposed to prompt for the name of files until the user enters &quot;stop&quot; to quit and includes the following methods in addition to the main method:<br />
<br />
1. countLines(), which takes a File object, and returns the number of lines of text in the file<br />
<br />
2. countLettersInLines(), which takes a File object, and returns an array of integers. In this array of integers, the first entry is the number of letters in the first line of the file, the second entry is the number of letters in the second line of the file, etc.<br />
<br />
3. countLetters(), which takes a File object, and returns the number of letters in the file<br />
<br />
4. countOneLetter() takes a File object and a letter, and returns the number of occurrences of the specified letter in the file (in uppercase or lowercase). This method and countLetters() can be used to determine the frequency of each letter in a text file.<br />
<br />
5.  countAllLetters() takes a File object, and returns an array of 26 integers, such that the entries in the array contain the number of occurrences of each letter of the alphabet in the file, disregarding case. The first entry in the array will be the number of a's in the file (regardless of case), the second entry is the number of b's (regardless of case), and so on. This method should use countOneLetter().<br />
<br />
6. countIntegers() takes a File object, and returns the number of integers in the file<br />
<br />
An example to this program would be:<br />
Please enter the file name, or &quot;stop&quot; to end: short.txt<br />
<br />
Number of lines: 2<br />
    Line with maximum number of letters: 1<br />
    Line 1: 13 letters<br />
    Line 2: 5 letters<br />
<br />
Number of letters: 18<br />
    Frequency of a: 5.555555555555555<br />
    Frequency of b: 0.0<br />
    Frequency of c: 0.0<br />
    Frequency of d: 0.0<br />
    Frequency of e: 16.666666666666668<br />
    Frequency of f: 0.0<br />
    Frequency of g: 0.0<br />
    Frequency of h: 5.555555555555555<br />
    Frequency of i: 11.11111111111111<br />
    Frequency of j: 0.0<br />
    Frequency of k: 0.0<br />
    Frequency of l: 16.666666666666668<br />
    Frequency of m: 11.11111111111111<br />
    Frequency of n: 5.555555555555555<br />
    Frequency of o: 5.555555555555555<br />
    Frequency of q: 0.0<br />
    Frequency of r: 0.0<br />
    Frequency of s: 11.11111111111111<br />
    Frequency of t: 0.0<br />
    Frequency of u: 0.0<br />
    Frequency of v: 5.555555555555555<br />
    Frequency of w: 0.0<br />
    Frequency of x: 0.0<br />
    Frequency of y: 5.555555555555555<br />
    Frequency of z: 0.0<br />
<br />
Integers in the file: 2<br />
<br />
Please enter the file name, or &quot;stop&quot; to end: stop<br />
<br />
<br />
Thank you any help will be much appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>hedwards09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236723.html</guid>
		</item>
		<item>
			<title>URL Intranet</title>
			<link>http://www.daniweb.com/forums/thread236722.html</link>
			<pubDate>Sat, 07 Nov 2009 07:13:46 GMT</pubDate>
			<description><![CDATA[hi guys, i made a simple web intranet page..and it's being access by LAN using  the IP Address on the workstation where i configured the IIS. Like http://192.168.0.116/index.html.  
 
My question, instead of typing the machine's IP Address, i'd like to give some URL name. Like...]]></description>
			<content:encoded><![CDATA[<div>hi guys, i made a simple web intranet page..and it's being access by LAN using  the IP Address on the workstation where i configured the IIS. Like <a rel="nofollow" class="t" href="http://192.168.0.116/index.html" target="_blank">http://192.168.0.116/index.html</a>. <br />
<br />
My question, instead of typing the machine's IP Address, i'd like to give some URL name. Like <a rel="nofollow" class="t" href="http://mycompanyintranet.com" target="_blank">http://mycompanyintranet.com</a> something like that. is it possible? if possible can anyone give an idea on how to get started..thank you.  :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum150.html">Domains and DNS</category>
			<dc:creator>cguan_77</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236722.html</guid>
		</item>
		<item>
			<title>Visual C++ form question</title>
			<link>http://www.daniweb.com/forums/thread236721.html</link>
			<pubDate>Sat, 07 Nov 2009 07:05:32 GMT</pubDate>
			<description>Hi, 
 
I am creating a Visual C++ application with a bunch of forms. I would like one form to stay open the entire time (just a screen to show app is running), then I need one form with two radio buttons, an OK button and a Cancel. If the OK button is clicked I want to close the form and continue...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am creating a Visual C++ application with a bunch of forms. I would like one form to stay open the entire time (just a screen to show app is running), then I need one form with two radio buttons, an OK button and a Cancel. If the OK button is clicked I want to close the form and continue with the code in main, however, I can't seem to get this working.<br />
<br />
<br />
Any advice would be GREATLY appreciated.<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Laryssaparker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236721.html</guid>
		</item>
		<item>
			<title>Learn How can you earn 20 $ daily ?</title>
			<link>http://www.daniweb.com/forums/thread236720.html</link>
			<pubDate>Sat, 07 Nov 2009 07:01:11 GMT</pubDate>
			<description>http://www.earningways.com/</description>
			<content:encoded><![CDATA[<div><a rel="nofollow" class="t" href="http://www.earningways.com/" target="_blank">http://www.earningways.com/</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum43.html">Promotion and Marketing Plans</category>
			<dc:creator>usa6631</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236720.html</guid>
		</item>
		<item>
			<title>Retrieve all $_POST values...</title>
			<link>http://www.daniweb.com/forums/thread236719.html</link>
			<pubDate>Sat, 07 Nov 2009 06:50:32 GMT</pubDate>
			<description><![CDATA[I've been writing PHP for about two years now, nothing complex, mostly just HTML form processing scripts. 
 
My latest project for a customer has over 40 items in the form.  It's a dynamic form using some JavaScript and PHP that displays certain parts of the form based on other options selected. 
...]]></description>
			<content:encoded><![CDATA[<div>I've been writing PHP for about two years now, nothing complex, mostly just HTML form processing scripts.<br />
<br />
My latest project for a customer has over 40 items in the form.  It's a dynamic form using some JavaScript and PHP that displays certain parts of the form based on other options selected.<br />
<br />
My question is, due to the varying numbers of $_POST results that I may get, is there a more efficient way of getting the $_POST values?<br />
<br />
I've done a lot of searching here and on Google, but so far I've come up short.  This is the closest thing that I've found:<br />
<br />
 <pre style="margin:20px; line-height:13px">foreach($_POST as $name =&gt; $value) {<br />
&nbsp; &nbsp; print &quot;$name : $value&lt;br&gt;&quot;;<br />
}</pre><br />
Now, I wouldn't be printing the name and value, but would modifying this actually work?  Does anyone know of a more efficient way?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Hummdis</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236719.html</guid>
		</item>
		<item>
			<title>Help with choosing a Live Chat Support Software</title>
			<link>http://www.daniweb.com/forums/thread236718.html</link>
			<pubDate>Sat, 07 Nov 2009 06:37:44 GMT</pubDate>
			<description>Does anyone know of any Live Chat Software  that I can use, what I mean is Live chat software and/or live chat service where they do the customer service, I’m looking to outsource my customer service to a 24 hour live chat operator because they are cheaper than paying for staff myself, I found one...</description>
			<content:encoded><![CDATA[<div>Does anyone know of any Live Chat Software  that I can use, what I mean is Live chat software and/or live chat service where they do the customer service, I’m looking to outsource my customer service to a 24 hour live chat operator because they are cheaper than paying for staff myself, I found one website that was recommended to me called <a rel="nofollow" class="t" href="http://live247support.com" target="_blank">http://live247support.com</a>  This site seems to offer the Live Chat Support at a really good price. And id much rather go with a recommendation that just simply randomly searching on Google for it, If anyone in this forum is using a service like this, please let me know what they are like and then I can make a final decision who to use. Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum50.html">Growing an Online Community</category>
			<dc:creator>carollinehilton</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236718.html</guid>
		</item>
		<item>
			<title>dll error</title>
			<link>http://www.daniweb.com/forums/thread236717.html</link>
			<pubDate>Sat, 07 Nov 2009 06:32:36 GMT</pubDate>
			<description><![CDATA[hi guys, i need ur help..my computer is experiencing a dll error everytime i boot my computer and appear as "BHO.dll" it says like i deleted something and need to reinstall a particular file..can anybody suggest and help me??? thank u very much!!]]></description>
			<content:encoded><![CDATA[<div>hi guys, i need ur help..my computer is experiencing a dll error everytime i boot my computer and appear as &quot;BHO.dll&quot; it says like i deleted something and need to reinstall a particular file..can anybody suggest and help me??? thank u very much!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum38.html">Windows Vista and Windows 7</category>
			<dc:creator>johnspace27</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236717.html</guid>
		</item>
		<item>
			<title>Working with files</title>
			<link>http://www.daniweb.com/forums/thread236716.html</link>
			<pubDate>Sat, 07 Nov 2009 06:24:36 GMT</pubDate>
			<description><![CDATA[I have a file like this: 
a,z,1 
b,y 
c,x,1 
d,w,1 
e,v 
f,u 
What I need to do is to create a dictionary that has the characters in the first column as keys and characters in the third column as values. The rest should be ignored, i.e. {a:1, c:1, d:1}. This is what I have so far: 
  <div...]]></description>
			<content:encoded><![CDATA[<div>I have a file like this:<br />
a,z,1<br />
b,y<br />
c,x,1<br />
d,w,1<br />
e,v<br />
f,u<br />
What I need to do is to create a dictionary that has the characters in the first column as keys and characters in the third column as values. The rest should be ignored, i.e. {a:1, c:1, d:1}. This is what I have so far:<br />
 <pre style="margin:20px; line-height:13px">def create_dict(f):<br />
&nbsp; &nbsp; f = open(&quot;something.txt&quot;)<br />
&nbsp; &nbsp; d = {}<br />
&nbsp; &nbsp; for line in f:<br />
&nbsp; &nbsp; &nbsp; &nbsp; columns = line.split(&quot;,&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; letters = columns[0]<br />
&nbsp; &nbsp; &nbsp; &nbsp; numbers = columns[2]</pre><br />
I am confused about next steps. Please, help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>pyprog</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236716.html</guid>
		</item>
		<item>
			<title>Code required, please help</title>
			<link>http://www.daniweb.com/forums/thread236715.html</link>
			<pubDate>Sat, 07 Nov 2009 05:51:42 GMT</pubDate>
			<description><![CDATA[Hello, there is a site out there known as 'getref', I want to have a site like that, can anyone help me getting HTML code for that ? 
 
OR any help will be welcome.. 
I am new to this forum thats why I am not posting any links.... 
thanks at-least for reading this, have a terrific day(or night)...]]></description>
			<content:encoded><![CDATA[<div>Hello, there is a site out there known as 'getref', I want to have a site like that, can anyone help me getting HTML code for that ?<br />
<br />
OR any help will be welcome..<br />
I am new to this forum thats why I am not posting any links....<br />
thanks at-least for reading this, have a terrific day(or night) ahead...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum143.html">HTML and CSS</category>
			<dc:creator>galaji</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236715.html</guid>
		</item>
		<item>
			<title>Does anyone have the MSI P55-GD80 mobod?</title>
			<link>http://www.daniweb.com/forums/thread236714.html</link>
			<pubDate>Sat, 07 Nov 2009 05:51:09 GMT</pubDate>
			<description>What is your thought on this board.  I have read some good things about it.  What is the quality of this MSI board?  MSI P55-GD80</description>
			<content:encoded><![CDATA[<div>What is your thought on this board.  I have read some good things about it.  What is the quality of this MSI board?  MSI P55-GD80</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum104.html">Motherboards, CPUs and RAM</category>
			<dc:creator>ingeborgdot@yah</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236714.html</guid>
		</item>
		<item>
			<title>Senior Interactive Designer help</title>
			<link>http://www.daniweb.com/forums/thread236713.html</link>
			<pubDate>Sat, 07 Nov 2009 05:48:26 GMT</pubDate>
			<description>Hey Everyone, 
My company is looking to fill the following job in Austin, TX. Feel free to apply at the link below: 
 
Job Title: Senior Interactive Designer 
Company Name: Texas Association of School Boards 
 
Job Description: 
Seeking an energetic, experienced, customer-focused interactive...</description>
			<content:encoded><![CDATA[<div>Hey Everyone,<br />
My company is looking to fill the following job in Austin, TX. Feel free to apply at the link below:<br />
<br />
Job Title: Senior Interactive Designer<br />
Company Name: Texas Association of School Boards<br />
<br />
Job Description:<br />
Seeking an energetic, experienced, customer-focused interactive designer to collaborate in producing user-centric Web designs and application interfaces with a focus primarily on front-end design and development.<br />
<br />
The ideal candidate will have experience in:<br />
• User interface design, layout, typography, illustration, and multimedia<br />
• Exceptional design skills (portfolio demonstrating UI skills required)<br />
• Familiar with designing for Content Management Systems. Expertise in digital imaging software (PhotoShop, Fireworks), interactive software (Flash, Director), layout tools (Dreamweaver) and other creative and office tools<br />
• Proven experience executing cross-browser compatible HTML incorporating CSS, JavaScript and embedded multimedia<br />
• Working independently and as part of a team<br />
<br />
Requirements:<br />
• Minimum 5 years of web/interactive design experience<br />
• Bachelor's degree in interactive design or equivalent<br />
<br />
To apply, submit your cover letter, resume, and salary requirements as one document to: <a rel="nofollow" class="t" href="https://home.eease.com/recruit/?id=464602" target="_blank">https://home.eease.com/recruit/?id=464602</a><br />
<br />
Benefits include: Medical/dental/life insurance, Retirement, On-site childcare/cafeteria/fitness room, paid holiday/vacation/sick leave, and more!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum28.html">Graphics and Multimedia</category>
			<dc:creator>arezendes</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236713.html</guid>
		</item>
		<item>
			<title>Compiler inside a Interpreter</title>
			<link>http://www.daniweb.com/forums/thread236712.html</link>
			<pubDate>Sat, 07 Nov 2009 05:43:59 GMT</pubDate>
			<description>Hello All, 
 
I have a doubt...  
 
basically I worte my first interpreter in C (A very simple one though... ) 
 
I will take a input file and will pass as command line arguements to my interpreter . This file will convert the input file to standard C file and will store in .C extension. 
 
Now how...</description>
			<content:encoded><![CDATA[<div>Hello All,<br />
<br />
I have a doubt... <br />
<br />
basically I worte my first interpreter in C (A very simple one though... )<br />
<br />
I will take a input file and will pass as command line arguements to my interpreter . This file will convert the input file to standard C file and will store in .C extension.<br />
<br />
Now how do I call a C compiler insider my function itself, so that this generated C file will be compiled and executed at once.<br />
<br />
Eg.<br />
<br />
I create a text file test.txr as follows<br />
<br />
Hello PRINTA  ......<br />
<br />
Hello GETTA  .....<br />
<br />
I pass this file as a command line...<br />
<br />
conv text.txr  (In command line)<br />
<br />
This conv.C  takes this file as input and convert PRINTA as printf and GETTA as scanf etc . (As you know..... simple pre processor).<br />
<br />
So as the end, text.C will be generated.... All was fine till here.<br />
<br />
Now I wanna compile this text.C and execute inside this conv.C itself.<br />
<br />
Do you get my objective...............???????????/<br />
<br />
Is this possible??????????<br />
<br />
Waiting for your help guys......... I;m doing it for one charity process. I want this to happen ASAP.<br />
<br />
--Rigidboss</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science</category>
			<dc:creator>rigidboss</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236712.html</guid>
		</item>
		<item>
			<title>Cannot Open Flash Files From the VB.Net EXE</title>
			<link>http://www.daniweb.com/forums/thread236711.html</link>
			<pubDate>Sat, 07 Nov 2009 05:41:13 GMT</pubDate>
			<description>I have created a small application to open the Flash File from my VB.Net Windows Application. To open the Flash file - I have used the Shockwave Flash Object. When I run the application directly from the Solution, the flash files are opening perfectly. But, once I created the EXE and tried to open...</description>
			<content:encoded><![CDATA[<div>I have created a small application to open the Flash File from my VB.Net Windows Application. To open the Flash file - I have used the Shockwave Flash Object. When I run the application directly from the Solution, the flash files are opening perfectly. But, once I created the EXE and tried to open the same file, I could not. But I can still open other files such as XML, PDF, and Word file from the same directory. <br />
<br />
Can Anyone Help me?<br />
<br />
Thanks,<br />
<br />
ArunSankar</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>a_arunsankar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236711.html</guid>
		</item>
		<item>
			<title>website</title>
			<link>http://www.daniweb.com/forums/thread236710.html</link>
			<pubDate>Sat, 07 Nov 2009 05:39:48 GMT</pubDate>
			<description><![CDATA[i want to start a website, but i don't know how to. can anyone guide me with this process. thanks]]></description>
			<content:encoded><![CDATA[<div>i want to start a website, but i don't know how to. can anyone guide me with this process. thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum18.html">ASP.NET</category>
			<dc:creator>mshravs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236710.html</guid>
		</item>
		<item>
			<title>Array of structures not returning elements</title>
			<link>http://www.daniweb.com/forums/thread236708.html</link>
			<pubDate>Sat, 07 Nov 2009 05:22:07 GMT</pubDate>
			<description><![CDATA[Hi, 
The following code I've been working on (as hobbyist) compiles okay, buy at runtime it fails to output the dates that it is supposed to extract from a csv file. I've been staring at this forever and no progress. 
 
I am thinking that the problem occurs before the date verification function,...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
The following code I've been working on (as hobbyist) compiles okay, buy at runtime it fails to output the dates that it is supposed to extract from a csv file. I've been staring at this forever and no progress.<br />
<br />
I am thinking that the problem occurs before the date verification function, because  when the program gets to cout &lt;&lt; &quot;This is the first date in the database&quot; and cout &lt;&lt; dataArray[0].date &lt;&lt; endl, it does not output the date. This means that the first element in the array is empty, which means that the array did not populate for some reason.<br />
<br />
Would appreciate any suggestions to identify the problem.<br />
<br />
Thanks<br />
TR<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">// Dataprep.cpp : Defines the entry point for the console application<br />
<br />
#include &quot;stdafx.h&quot;<br />
#include &lt;vector&gt;<br />
#include &lt;fstream&gt;<br />
#include &lt;iostream&gt;<br />
#include &lt;string&gt; <br />
#include &lt;sstream&gt;<br />
#include &lt;math.h&gt;<br />
#include &lt;cstring&gt;<br />
using namespace std;<br />
int NumLines;<br />
void Error (int);<br />
int Open_Price_Data_File (char* filename);<br />
struct Bar* Define_Array (const char*);<br />
void Parse_Output_To_File (struct Bar* dataArray, const char*);<br />
void Date_Verification ();<br />
void ExitScreen ();<br />
<br />
<br />
<br />
//Structure Declaration and Array Initialization <br />
&nbsp; &nbsp; &nbsp;  struct Bar<br />
&nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  string date;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // date<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  double open;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // opening price<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  double high;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // high price<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  double low;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // low price <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  double close;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // closing price<br />
<br />
&nbsp; &nbsp; &nbsp;  };<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  struct Bar *bararray;<br />
<br />
//Error catching function<br />
void Error(int errorcode) <br />
{<br />
&nbsp;if(errorcode == 1) {<br />
&nbsp; &nbsp;  cout &lt;&lt; &quot;Error in opening file...&quot;;<br />
&nbsp;}<br />
&nbsp;else cout &lt;&lt; &quot;OK&quot;;<br />
}<br />
<br />
<br />
//Function to open price data file<br />
&nbsp;int Open_Price_Data_File (char* filename)<br />
&nbsp;{<br />
&nbsp;  cout &lt;&lt; &quot;Enter filename in the following&nbsp; format c: backslash filename.csv: &quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cin &gt;&gt; filename;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ifstream infile;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;Reading from the price data file&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  infile.open(filename); <br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!infile.is_open()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Error (1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else return 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; infile.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  return 1;<br />
&nbsp;}<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
// Function to count number of lines in file &amp; define the array of structures accordingly<br />
struct Bar* Define_Array (const char* filename)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; ifstream infile;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; infile.open(filename); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(!infile.is_open())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Error (1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  string line;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  while(getline(infile, line))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  NumLines++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;This is the total number of lines in the source file: &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; NumLines &lt;&lt; endl; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Bar *bararray = NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  bararray = new Bar[NumLines];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  infile.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  return bararray;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
// String Parsing to Skip Commas<br />
&nbsp;void Parse_Output_To_File (struct Bar *dataArray, char* filename)<br />
&nbsp;{<br />
&nbsp; &nbsp; &nbsp; &nbsp; ofstream outfile;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; outfile.open (&quot;c:\\Outputfile.txt&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!outfile.is_open())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;Error in opening file for writing!&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  else return;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ifstream redo;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  redo.open(filename);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  int i = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  while (!redo.fail())&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  {&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  int j = 0;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  string data, token;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  getline(redo, data);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  istringstream isstream (data);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  while (getline(isstream,token,',')) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  outfile &lt;&lt; token &lt;&lt; &quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(j == 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  dataArray[i].date = token;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  j++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  continue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(j == 1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  dataArray[i].open = atof( token.c_str());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  j++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  continue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(j == 2) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  dataArray[i].high = atof( token.c_str());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  j++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  continue; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(j == 3) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  dataArray[i].low = atof( token.c_str());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  j++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  continue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(j == 4) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dataArray[i].close = atof(token.c_str ());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; j++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  continue;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  i++&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; outfile &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; redo.close()&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; outfile.close(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;}<br />
<br />
// Date Verification Function<br />
<br />
void Date_Verification (struct Bar *dataArray)<br />
{<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;This is the first date in the database: &quot;;<br />
&nbsp; &nbsp; cout &lt;&lt; dataArray[0].date &lt;&lt; endl;<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;This is the last date in the database:&nbsp; &quot;;<br />
&nbsp; &nbsp; cout &lt;&lt; dataArray[NumLines - 1].date &lt;&lt; endl;<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Enter the start date for the analysis in the mm/dd/yyyy format: &quot;;<br />
&nbsp; &nbsp; string startdate;<br />
&nbsp; &nbsp; cin &gt;&gt; startdate;<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;The startdate you entered is: &quot; &lt;&lt; startdate &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; int i;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  for (i = 0; i &lt;= NumLines -1;)<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!strcmp(startdate.c_str(), dataArray[i].date.c_str()) == 0)&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i++;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (i == NumLines -1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Incorrect start date &quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Start date exists in the database&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
cout &lt;&lt; &quot;Enter the end date for the analysis in the mm/dd/yyyy format: &quot;;<br />
&nbsp; &nbsp; &nbsp;  string enddate;<br />
&nbsp; &nbsp; &nbsp;  cin &gt;&gt; enddate;<br />
&nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;The enddate you entered is: &quot; &lt;&lt; enddate &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp;  for (i = 0; i &lt;= NumLines -1;)<br />
&nbsp;{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!strcmp(enddate.c_str(), dataArray[i].date.c_str()) == 0)&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (i == NumLines -1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out &lt;&lt; &quot;Incorrect end date&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;End date exists in the database&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;}<br />
<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
<br />
// User Prompt to Retain Command Window <br />
void ExitScreen ()<br />
&nbsp;{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  char ch;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;Please press Q or q to quit: &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cin &gt;&gt; ch;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (ch=='Q' &amp;&amp; ch=='q') <br />
&nbsp; &nbsp; &nbsp; &nbsp; { <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Exiting...&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;Please press Q or q to quit: &quot;;<br />
&nbsp;}<br />
<br />
<br />
//Main Program<br />
int main ()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  char filename [80];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Open_Price_Data_File (filename);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  struct Bar* Array;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Array = Define_Array (filename);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Parse_Output_To_File (Array, filename);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Date_Verification (Array);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ExitScreen ();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  return 0;<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>toneranger</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236708.html</guid>
		</item>
		<item>
			<title>Earn $1 for Each Referrer - Paypal</title>
			<link>http://www.daniweb.com/forums/thread236707.html</link>
			<pubDate>Sat, 07 Nov 2009 05:13:42 GMT</pubDate>
			<description>Get a new Free Internet Marketing Report and Make $1 for Everyone you Refer! :D 
When join this internet marketing training, you will get a free 90 minute video, an ebook report and an affiliate link for making $1 for Everyone you Refer. Payment with Paypal. 
...</description>
			<content:encoded><![CDATA[<div>Get a new Free Internet Marketing Report and Make $1 for Everyone you Refer! :D<br />
When join this internet marketing training, you will get a free 90 minute video, an ebook report and an affiliate link for making $1 for Everyone you Refer. Payment with Paypal.<br />
<br />
----------------------------------------------------<br />
<a rel="nofollow" class="t" href="http://www.chotoan.com/12monthinternetmillionaire/" target="_blank">Get free video and ebook and your affiliate link</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum43.html">Promotion and Marketing Plans</category>
			<dc:creator>clickkt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236707.html</guid>
		</item>
		<item>
			<title>findall</title>
			<link>http://www.daniweb.com/forums/thread236706.html</link>
			<pubDate>Sat, 07 Nov 2009 04:52:17 GMT</pubDate>
			<description><![CDATA[hey guys, 
i have a problem.. i have this chunk of text like this..... 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags"...]]></description>
			<content:encoded><![CDATA[<div>hey guys,<br />
i have a problem.. i have this chunk of text like this.....<br />
<br />
 <pre style="margin:20px; line-height:13px">No.&nbsp; &nbsp;  Time&nbsp; &nbsp; &nbsp; &nbsp; Source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Destination&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Protocol Info<br />
&nbsp; &nbsp; &nbsp; 2 0.005318&nbsp; &nbsp; 192.168.110.33&nbsp; &nbsp; &nbsp; &nbsp; 192.168.110.44&nbsp; &nbsp; &nbsp; &nbsp; ICMP&nbsp; &nbsp;  Echo (ping) request<br />
<br />
Frame 2 (98 bytes on wire, 98 bytes captured)<br />
Ethernet II, Src: Cisco-Li_4d:e1:30 (00:1c:10:4d:e1:30), Dst: IntelCor_4d:77:83 (00:13:02:4d:77:83)<br />
Internet Protocol, Src: 192.168.110.33 (192.168.110.33), Dst: 192.168.110.44 (192.168.110.44)<br />
Internet Control Message Protocol<br />
<br />
No.&nbsp; &nbsp;  Time&nbsp; &nbsp; &nbsp; &nbsp; Source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Destination&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Protocol Info<br />
&nbsp; &nbsp; &nbsp; 3 0.998730&nbsp; &nbsp; 192.168.110.33&nbsp; &nbsp; &nbsp; &nbsp; 192.168.110.44&nbsp; &nbsp; &nbsp; &nbsp; DHCP&nbsp; &nbsp;  DHCP Offer&nbsp; &nbsp; - Transaction ID 0x9e0e832<br />
<br />
Frame 3 (347 bytes on wire, 347 bytes captured)<br />
Ethernet II, Src: Cisco-Li_4d:e1:30 (00:1c:10:4d:e1:30), Dst: IntelCor_4d:77:83 (00:13:02:4d:77:83)<br />
Internet Protocol, Src: 192.168.110.33 (192.168.110.33), Dst: 192.168.110.44 (192.168.110.44)<br />
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)<br />
Bootstrap Protocol<br />
<br />
No.&nbsp; &nbsp;  Time&nbsp; &nbsp; &nbsp; &nbsp; Source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Destination&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Protocol Info<br />
&nbsp; &nbsp; &nbsp; 4 0.998917&nbsp; &nbsp; 0.0.0.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  255.255.255.255&nbsp; &nbsp; &nbsp;  DHCP&nbsp; &nbsp;  DHCP Request&nbsp; - Transaction ID 0x9e0e832<br />
<br />
Frame 4 (348 bytes on wire, 348 bytes captured)<br />
Ethernet II, Src: IntelCor_4d:77:83 (00:13:02:4d:77:83), Dst: Broadcast (ff:ff:ff:ff:ff:ff)<br />
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)<br />
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)<br />
Bootstrap Protocol</pre><br />
basically i'm trying to extract the DHCP server and the the IP address its giving me... sp i want to look for the text between &quot;DHCP Offer&quot; and &quot;bootstrap&quot; and then from that chunk get the part between &quot;Internet Protocol) Src:&quot; and &quot;(&quot;<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; temp = re.findall(&quot;DHCP\s+Offer(.)Bootstrap&quot;, text)<br />
&nbsp; &nbsp; print (temp)<br />
&nbsp; &nbsp; name=re.findall(&quot;(Internet Protocol)\sSrc:.[(]&quot;, temp)<br />
&nbsp; &nbsp; print name</pre><br />
but i think its not reading past the 1st line between the srearch words</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>mitsuevo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236706.html</guid>
		</item>
		<item>
			<title>Blank JFrame</title>
			<link>http://www.daniweb.com/forums/thread236704.html</link>
			<pubDate>Sat, 07 Nov 2009 04:38:58 GMT</pubDate>
			<description><![CDATA[Hi guys, 
The following program works the way I want it to but there's one small problem; when it loads, it doesn't give a blank frame. It want it to show the output after I click on the blank area. Help me please. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
The following program works the way I want it to but there's one small problem; when it loads, it doesn't give a blank frame. It want it to show the output after I click on the blank area. Help me please.<br />
 <pre style="margin:20px; line-height:13px">import java.awt.*;<br />
import javax.swing.*;<br />
import java.awt.event.MouseAdapter;<br />
import java.awt.event.MouseEvent;<br />
<br />
public class TrackMouseMovementTest{<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; public static void main(String[] args){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EventQueue.invokeLater(new Runnable(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void run(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MouseFrame frame = new MouseFrame();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame.setVisible(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
<br />
class MouseFrame extends JFrame<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; public MouseFrame(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; setTitle(&quot;Mouse Movement Tracker&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; MouseComponent component = new MouseComponent();<br />
&nbsp; &nbsp; &nbsp; &nbsp; add(component);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static final int DEFAULT_WIDTH = 500;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static final int DEFAULT_HEIGHT = 500;<br />
}<br />
<br />
class MouseComponent extends JComponent{<br />
&nbsp; &nbsp; &nbsp; &nbsp; public MouseComponent(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addMouseListener(new MouseHandler());<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; private class MouseHandler extends MouseAdapter{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void mousePressed(MouseEvent event){&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x = event.getX();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y = event.getY();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; repaint();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void paintComponent(Graphics g){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g.drawString(&quot;X: &quot; + x + &quot;,Y: &quot; + y + &quot;&quot;,x,y);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g.drawString(&quot;Click #: &quot; + counter ++ ,x , y + 16);<br />
&nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; int x;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int y;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; private static int counter=-1;<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>babylonlion</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236704.html</guid>
		</item>
		<item>
			<title>php coding</title>
			<link>http://www.daniweb.com/forums/thread236703.html</link>
			<pubDate>Sat, 07 Nov 2009 04:32:09 GMT</pubDate>
			<description><![CDATA[<?php  
session_start(); 
//Check User Session 
include ("includes/check_session.php"); 
 
include 'includes/config.php'; 
$current_module = 'MATERIALREQ'; 
//$related_modules = array('BIDDINGENTRY','PIRRAISING','POLIST','BIDDINGSELECTION','GRV'); 
include ('includes/check_acl.php');]]></description>
			<content:encoded><![CDATA[<div>&lt;?php <br />
session_start();<br />
//Check User Session<br />
include (&quot;includes/check_session.php&quot;);<br />
<br />
include 'includes/config.php';<br />
$current_module = 'MATERIALREQ';<br />
//$related_modules = array('BIDDINGENTRY','PIRRAISING','POLIST','BIDDINGSELECTION','GRV');<br />
include ('includes/check_acl.php');<br />
<br />
//include 'includes/config.php';<br />
include 'includes/sqlquery.php';<br />
include 'includes/message.php';<br />
$valid = '';<br />
<br />
$current_user_id = $_SESSION['associate_id'];	<br />
<br />
//if the session value is present, set whether the last transaction is stored or not<br />
if (isset($_SESSION['mrmsg']) &amp;&amp; ($_SESSION['mrmsg']!='')) <br />
{<br />
	$valid = $_SESSION['mrmsg'];<br />
	$last_mr_id = $_SESSION['last_mr_id'];<br />
	$_SESSION['mrmsg']=''; //clear it <br />
	$_SESSION['last_mr_id']=''; //clear it <br />
}<br />
<br />
if(!empty($_POST['hdn_total'])){<br />
try {<br />
		begin();<br />
		<br />
		if(!$acl['MATERIALREQ']['write']) throw new Exception(&quot;You don't have rights to do Material Request&quot;);<br />
		<br />
		$valid = 'failure';<br />
		//$getVal['MRNo']			= mysql_real_escape_string($_POST['txtMatReqNo']);<br />
		$getVal['MRDate'] 		= mysql_real_escape_string(DBdate($_POST['txtMatReqDate']));<br />
		$getVal['PreperdBy'] 	= mysql_real_escape_string($_POST['cmbRequestedBy']);		<br />
		$getVal['StoreNo']  	= mysql_real_escape_string($_POST['cmbStoreID']);<br />
		$getVal['RequiredAt']  	= mysql_real_escape_string($_POST['cmbRequiredAt']);		<br />
		$getVal['Remarks']		= mysql_real_escape_string($_POST['txtRemarks']);<br />
<br />
		<br />
		$getError	=	addMaterialReq($getVal);<br />
		<br />
		if(!empty($getError)) throw new Exception($getError);<br />
		<br />
		if(empty($getError)){<br />
			$getVal[&quot;MRNo&quot;] = mysql_insert_id();<br />
			$hdnId	=	explode(&quot;,&quot;, $_POST['hdn_total']);<br />
			$count	=	count($hdnId);<br />
			$j=1;<br />
			for($i=0;$i&lt;$count;$i++){<br />
				$getVal['ItemCode'.$j] 		= mysql_real_escape_string($_POST['ItemCode'.$j]);<br />
				$getVal['ItemName'.$j] 		= mysql_real_escape_string($_POST['ItemName'.$j]);<br />
				$getVal['Description'.$j] 	= mysql_real_escape_string($_POST['Description'.$j]);<br />
				$getVal['Quantity'.$j] 		= mysql_real_escape_string($_POST['Quantity'.$j]);<br />
				<br />
				$getError	=	addMaterialReqItems($getVal, $i);<br />
				if(!empty($getError)) throw new Exception($getError);<br />
				$j++;<br />
			}<br />
			$valid = 'success';	<br />
		}<br />
		<br />
		$_SESSION['mrmsg'] = $valid;<br />
		$_SESSION['last_mr_id'] = $getVal[&quot;MRNo&quot;];<br />
		commit();<br />
		//header(&quot;Location: materialrequest.php&quot;);<br />
		echo &quot;&lt;META HTTP-EQUIV='Refresh' CONTENT='0;materialrequest.php'&gt;&quot;;<br />
	}<br />
	catch(Exception $s)<br />
	{<br />
		rollback();				<br />
		$errmsg = $s-&gt;getMessage();	<br />
		myExceptionHandler($s);<br />
		$valid = false;<br />
	}<br />
}	<br />
?&gt;<br />
<br />
<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;MintHome&lt;/title&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;javascripts/autosuggest.js&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;<br />
&lt;link href=&quot;css/style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;<br />
&lt;link href=&quot;css/autosuggest_inquisitor.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; charset=&quot;utf-8&quot; /&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
&lt;!--<br />
.style1 {color: #E78D2E}<br />
--&gt;<br />
&lt;/style&gt;<br />
<br />
<br />
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;javascripts/datetimepicker_css.js&quot;&gt;<br />
&lt;/script&gt;<br />
<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
<br />
function checkForm()<br />
{<br />
		return false;<br />
}<br />
<br />
 		function itemcode_checker()<br />
		{			<br />
			var invalid = false;<br />
			DGrid.setTotalRow();	<br />
			var rowNos = document.getElementById('hdn_total').value;	<br />
			indivRow = rowNos.split(',');<br />
			cnt_rows = indivRow.length;	<br />
			var cnt_itemTotalindb = itemIDS.length;<br />
			var itempresent_db = false;<br />
<br />
			for(i=0;i&lt;cnt_rows;i++)<br />
			{<br />
				itemcode_rowID = 'ItemCode'+indivRow[i];<br />
				itemcode_val = document.getElementById(itemcode_rowID).value;<br />
				if (itemcode_val != '')<br />
				{<br />
					itempresent_db = false;<br />
					for(j=0;j&lt;cnt_itemTotalindb;j++)<br />
					{<br />
						if (itemcode_val == itemIDS[j])<br />
						{<br />
							itempresent_db = true; <br />
							break;													<br />
						}<br />
					}<br />
<br />
					if (itempresent_db == false)<br />
					{<br />
						alert('Item Code Not Correctly Entered');	<br />
						document.getElementById(itemcode_rowID).focus();<br />
						break;<br />
					}<br />
				}<br />
			}<br />
			if (itempresent_db == false) return false;<br />
			return true;<br />
		}<br />
<br />
function validateGrid()<br />
{<br />
	var rowNos = document.getElementById('hdn_total').value;<br />
	//alert(rowNos);<br />
	indivRow = rowNos.split(',');<br />
	cnt_rows = indivRow.length;<br />
	atleast_oneitem = false;<br />
<br />
	for(i=0;i&lt;cnt_rows;i++)<br />
	{<br />
		itemcode_rowID = 'ItemCode'+indivRow[i];<br />
		itemqty_rowID = 'Quantity'+indivRow[i];<br />
		<br />
		itemcode_val = document.getElementById(itemcode_rowID).value;	<br />
		itemqty_val = document.getElementById(itemqty_rowID).value;	<br />
<br />
		if (itemqty_val &gt; 0 &amp;&amp; (itemcode_val == '' || itemcode_val &lt;= 0))<br />
		{<br />
			document.getElementById(itemcode_rowID).focus();	<br />
			alert('Enter Item code');<br />
			return false;<br />
		}<br />
<br />
<br />
		if (itemcode_val &gt; 0 &amp;&amp; (itemqty_val == '' || itemqty_val &lt;= 0))<br />
		{<br />
			document.getElementById(itemqty_rowID).focus();	<br />
			alert('Enter Item Code '+itemcode_val+': Quantity Level');<br />
			return false;<br />
		}<br />
<br />
		if (itemcode_val &gt; 0 &amp;&amp; itemqty_val &gt; 0)<br />
		{<br />
			atleast_oneitem = true;<br />
		}<br />
	}<br />
<br />
	//Check atleast one item is added to Grid<br />
	if (atleast_oneitem == false)<br />
	{<br />
		alert('No Items is added in the Grid to raise Purchase Indent');<br />
		itemcode_rowID = 'ItemCode'+indivRow[0];				<br />
		itemcode_val = document.getElementById(itemcode_rowID).value;	<br />
		return false;<br />
	}<br />
	return true;<br />
}<br />
<br />
function CompareDates()<br />
{<br />
   var str1  = document.getElementById(&quot;serverdate&quot;).value;<br />
   var str2  = document.getElementById(&quot;txtMatReqDate&quot;).value;<br />
   var date1 = str1.split(&quot;-&quot;, 3);<br />
   var dt1   = parseInt(date1[0]);<br />
   var mon1  = date1[1];<br />
 //  mon1 = parseInt(mon1);<br />
   var yr1   = parseInt(date1[2]);<br />
  // alert(dt1+&quot; &quot;+mon1+&quot; &quot;+yr1);<br />
   var date2 = str2.split(&quot;-&quot;, 3);<br />
   var dt2   = parseInt(date2[0]);<br />
   var mon2  = date2[1];<br />
 //  mon2 = parseInt(mon2);<br />
   var yr2   = parseInt(date2[2]);<br />
  // alert(dt2+&quot; &quot;+mon2+&quot; &quot;+yr2);<br />
   //var dt1   = parseInt(str1.substring(0,2),10);<br />
   //var mon1  = parseInt(str1.substring(3,5),10);<br />
   //var yr1   = parseInt(str1.substring(6,10),10);<br />
   //var dt2   = parseInt(str2.substring(0,2),10);<br />
   //var mon2  = parseInt(str2.substring(3,5),10);<br />
   //var yr2   = parseInt(str2.substring(6,10),10);<br />
   var date1 = new Date(yr1, mon1, dt1);<br />
   var date2 = new Date(yr2, mon2, dt2);<br />
<br />
   if(date2 &lt; date1)<br />
   {<br />
      alert(&quot;Request Date should be current or future date&quot;);<br />
	  document.getElementById(&quot;txtMatReqDate&quot;).focus();<br />
      return false;<br />
   }<br />
   return true;<br />
}<br />
<br />
function validateForm()<br />
{<br />
		valid = true;<br />
		<br />
		if ( document.MatReq_Form.txtMatReqDate.value == '')<br />
        {<br />
                alert ( &quot;Please Select PIR Transaction Date&quot; );<br />
				document.MatReq_Form.txtMatReqDate.focus();<br />
                return false;<br />
        }<br />
<br />
		if (!CompareDates()) return false;<br />
		<br />
        if ( document.MatReq_Form.cmbRequestedBy.selectedIndex &lt;= 0)<br />
        {<br />
                alert ( &quot;Please Select a Requested By User&quot; );<br />
				document.MatReq_Form.cmbRequestedBy.focus();<br />
                return false;<br />
        }<br />
        if ( document.MatReq_Form.cmbStoreID.selectedIndex &lt;= 0)<br />
        {<br />
                alert ( &quot;Please Select a Store name&quot; );<br />
				document.MatReq_Form.cmbStoreID.focus();<br />
                return false;<br />
        }<br />
        if ( document.MatReq_Form.cmbRequiredAt.selectedIndex &lt;= 0)<br />
        {<br />
                alert ( &quot;Please Select a Requested At&quot; );<br />
				document.MatReq_Form.cmbRequiredAt.focus();<br />
                return false;<br />
        }<br />
        if ( document.MatReq_Form.txtRemarks.value == '')<br />
        {<br />
                alert ( &quot;Please Enter Remarks&quot; );<br />
				document.MatReq_Form.txtRemarks.focus();<br />
                return false;<br />
        }<br />
		<br />
		DGrid.setTotalRow();<br />
<br />
		if (!itemcode_checker()) return false;<br />
		if (!validateGrid()) return false;<br />
		<br />
		document.MatReq_Form.action = &quot;materialrequest.php&quot;;<br />
		document.MatReq_Form.submit();<br />
		//location.href='materialapproval.php';<br />
		<br />
}<br />
<br />
function isNumberKey(evt)<br />
{<br />
 var charCode = (evt.which) ? evt.which : event.keyCode	<br />
 if (charCode &gt; 31 &amp;&amp; (charCode &lt; 48 || charCode &gt; 57) &amp;&amp; (charCode &lt; 96 || charCode &gt; 105))<br />
	{<br />
		if  (charCode &lt; 96 || charCode &gt; 105)<br />
		{<br />
			var keychar = String.fromCharCode(charCode);<br />
			reg = /\d/;<br />
			return reg.test(keychar);<br />
		}<br />
		return false;<br />
	}<br />
 return true;<br />
}<br />
<br />
function isNumberKey2(evt)<br />
{<br />
 var charCode = (evt.which) ? evt.which : event.keyCode	<br />
 if (charCode &gt; 31 &amp;&amp; (charCode &lt; 48 || charCode &gt; 57))<br />
	{<br />
		return false;<br />
	}<br />
 return true;<br />
}<br />
<br />
function checkForInvalid(obj)<br />
{<br />
	if( /[^0-9\-]|-{2,}/gi.test(obj.value) ) <br />
		{<br />
		  alert(&quot;Only Numbers Allowed !&quot;)<br />
		  obj.value=&quot;&quot;;<br />
		  obj.focus();<br />
		  obj.select();<br />
		  return false;<br />
	   }<br />
	return true;<br />
}<br />
<br />
function editpirForm()<br />
{<br />
window.location.href= (&quot;editmrlist.php&quot;);<br />
document.formname.submit();<br />
}<br />
<br />
&lt;/script&gt;<br />
<br />
&lt;/head&gt;<br />
&lt;body&gt; <br />
&lt;form name= &quot;MatReq_Form&quot; method=&quot;post&quot;  onsubmit=&quot;return checkForm();&quot;&gt; <br />
  &lt;div style=&quot;text-align:left; width:760px !important;&quot;&gt; <br />
   &lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; align=&quot;left&quot;&gt; <br />
     &lt;tr id=&quot;header&quot;&gt; <br />
      &lt;td width=&quot;481&quot;&gt; <br />
		&lt;?php include ('banner.php'); ?&gt;<br />
	  &lt;/td&gt; <br />
	  &lt;td width=&quot;519&quot; align=&quot;right&quot;&gt;	<br />
	 	&lt;?php include ('background.php'); ?&gt;<br />
	  &lt;/td&gt;<br />
     &lt;/tr&gt; <br />
	 &lt;tr&gt; <br />
	  &lt;td colspan=&quot;2&quot; valign=&quot;top&quot;&gt; <br />
		 &lt;table id=&quot;main&quot; width=&quot;1000&quot; height=&quot;333&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; align=&quot;left&quot;&gt; <br />
	    &lt;tr&gt; <br />
			&lt;td height=&quot;331&quot; valign=&quot;top&quot; id=&quot;leftside&quot;&gt;&lt;div class=&quot;box1&quot;&gt;&lt;?php include'leftmenu.php' ?&gt;&lt;/div&gt;<br />
            &lt;/td&gt;       <br />
			&lt;td valign=&quot;top&quot;&gt;<br />
   		&lt;table align=&quot;center&quot; &gt;<br />
  			&lt;tr&gt;<br />
  				  &lt;th scope=&quot;row&quot;&gt;&lt;font color=&quot;#000000&quot; size=&quot;2&quot;&gt;&lt;strong&gt;Material Request Screen&lt;/strong&gt;&lt;/font&gt;&lt;/th&gt;<br />
  			&lt;/tr&gt;<br />
		&lt;/table&gt;<br />
		&lt;br /&gt;<br />
		&lt;fieldset&gt;<br />
		&lt;table width=&quot;597&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;<br />
        	&lt;?php <br />
			if($valid!='')<br />
			{<br />
				if($valid=='failure') $Msg = &quot;FAIL&quot;;<br />
				if($valid=='success') $Msg = &quot;SUCCESS&quot;;				<br />
				if ($valid == 'success') <br />
				{<br />
				?&gt;<br />
					&lt;div align=&quot;center&quot; class=&quot;&lt;?php echo $Msg;?&gt;&quot; &gt;<br />
					&lt;?php echo $MRMessage['WARNNING'][&quot;MR&quot;.$Msg].&quot;, Your Request Number is &lt;strong&gt;&quot;.$last_mr_id.&quot;&lt;/strong&gt;&quot;;?&gt;&lt;/div&gt;<br />
				&lt;?php <br />
				}<br />
				else if ($valid == 'failure')<br />
				{	<br />
				?&gt;<br />
					&lt;div align=&quot;center&quot; class=&quot;&lt;?php echo $Msg;?&gt;&quot; &gt;<br />
					&lt;?php echo $MRMessage['WARNNING'][&quot;MR&quot;.$Msg];?&gt;&lt;/div&gt;<br />
				&lt;?php<br />
				}<br />
			} 	<br />
			?&gt;<br />
			&lt;?php if ($errmsg != '') { ?&gt;<br />
			&lt;div align=&quot;center&quot; class=&quot;FAIL&quot;&gt;<br />
				&lt;?php echo $errmsg;?&gt;<br />
			&lt;/div&gt;			<br />
			&lt;?php } ?&gt;<br />
        &lt;tr&gt;<br />
        <br />
&lt;?php /*?&gt;			&lt;td&gt;&lt;font size=&quot;2&quot;&gt;Material Request No&lt;/font&gt;&lt;/td&gt;<br />
			&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;txtMatReqNo&quot; id=&quot;txtMatReqNo&quot; value=&quot;&lt;?=$row['MRNO']?&gt;&quot; onkeypress=&quot;return isNumberKey2(event)&quot; onkeyup=&quot;checkForInvalid(this)&quot;&gt;&lt;/td&gt;&lt;?php */?&gt;<br />
			&lt;td&gt;&lt;font size=&quot;2&quot;&gt;Transaction Date&lt;/font&gt;&lt;/td&gt;<br />
			&lt;td&gt;&lt;p&gt;&lt;input type=&quot;text&quot; name=&quot;txtMatReqDate&quot; id=&quot;txtMatReqDate&quot; value=&quot;&lt;?php echo date('d-m-Y');?&gt;&quot; readonly onclick=&quot;alert('Click the image to change Date')&quot;&gt;<br />
          &lt;a href=&quot;javascript<b></b>:NewCssCal('txtMatReqDate','ddmmyyy','arrow')&quot;&gt;&lt;img src=&quot;images/cal.gif&quot; width=&quot;16&quot; height=&quot;16&quot; border=&quot;0&quot; alt=&quot;Pick a date&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td<br />
			&gt;<br />
			&lt;td&gt;&lt;font size=&quot;2&quot; color=&quot;&quot;&gt;Requested By&lt;/font&gt;&lt;/td&gt;<br />
            &lt;?php<br />
				$qry = &quot;select ASSOCIATEID,ASSOCIATENAME FROM associatemst WHERE STATUS = 1&quot;;<br />
				$result2 = mysql_query($qry);<br />
			?&gt;<br />
			&lt;td&gt;&lt;p&gt;&lt;select name=&quot;cmbRequestedBy&quot; readonly style=&quot;background-color:<br />
#ababab&quot; onFocus=&quot;this.blur(); return false;&quot;&gt; &lt;option&gt;Select Name&lt;/option&gt;<br />
			&lt;?php<br />
										<br />
				if (mysql_affected_rows()&gt;0)<br />
				{<br />
					while (list($k,$v) = mysql_fetch_array($result2))<br />
					{<br />
						$selected = ($current_user_id  == $k ) ? ' selected=&quot;selected&quot;' : '';<br />
						echo &quot;&lt;option value='&quot;.$k.&quot;' &quot;.$selected.&quot;&gt; (Id: $k) &quot;.$v.&quot;&lt;/option&gt;&quot;;	<br />
					}<br />
				}										<br />
			?&gt;<br />
				&lt;/select&gt;&lt;/p&gt; &lt;/td&gt;<br />
		<br />
        &lt;/tr&gt;<br />
        &lt;tr&gt;<br />
      &lt;td&gt;&lt;font size=&quot;2&quot; &gt;Store No&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/td&gt;<br />
      &lt;?php<br />
				$qry = &quot;select STORENO,STORENAME FROM storemst WHERE STATUS = 1&quot;;<br />
				$result2 = mysql_query($qry);<br />
			?&gt;<br />
			&lt;td&gt;&lt;select name=&quot;cmbStoreID&quot;&gt; &lt;option&gt;Select Name&lt;/option&gt;<br />
			&lt;?php<br />
										<br />
				if (mysql_affected_rows()&gt;0)<br />
				{<br />
					while (list($k,$v) = mysql_fetch_array($result2))<br />
					{<br />
						echo &quot;&lt;option value='&quot;.$k.&quot;'&gt; (Id: $k) &quot;.$v.&quot;&lt;/option&gt;&quot;;	<br />
					}<br />
				}										<br />
			?&gt;<br />
				&lt;/select&gt; &lt;/td&gt;<br />
       &lt;td&gt;&lt;font size=&quot;2&quot; &gt;Required At&lt;/font&gt;&lt;/td&gt;<br />
      &lt;?php<br />
				$qry = &quot;select LOCATIONID,LOCATIONNAME FROM location WHERE STATUS = 1&quot;;<br />
				$result2 = mysql_query($qry);<br />
			?&gt;<br />
			&lt;td&gt;&lt;p&gt;&lt;select name=&quot;cmbRequiredAt&quot;&gt; &lt;option&gt;Select Name&lt;/option&gt;<br />
			&lt;?php<br />
										<br />
				if (mysql_affected_rows()&gt;0)<br />
				{<br />
					while (list($k,$v) = mysql_fetch_array($result2))<br />
					{<br />
						echo &quot;&lt;option value='&quot;.$k.&quot;'&gt; (Id : $k) &quot;.$v.&quot;&lt;/option&gt;&quot;;	<br />
					}<br />
				}										<br />
			?&gt;<br />
				&lt;/select&gt;&lt;/p&gt; <br />
           &lt;/td&gt;<br />
        &lt;/tr&gt;		 <br />
		&lt;table width=&quot;817&quot;&gt;<br />
            &lt;tr&gt;<br />
                &lt;td width=&quot;225&quot;&gt;&lt;font size=&quot;2&quot;&gt;Remarks&lt;/font&gt;&lt;/td&gt;<br />
                &lt;td width=&quot;651&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;txtRemarks&quot; id=&quot;txtRemarks&quot;  size=&quot;106&quot;value=&quot;&lt;?=$row['REMARKS']?&gt;&quot;&gt;&lt;/td&gt;<br />
                &lt;td width=&quot;22&quot;&gt;&lt;p&gt;&lt;input type=&quot;hidden&quot; name=&quot;hdn_total&quot;  id=&quot;hdn_total&quot; value=&quot;test&quot;&gt;<br />
                &lt;input type=&quot;hidden&quot; value=&quot;&lt;?=date('d-m-Y')?&gt;&quot; name=&quot;serverdate&quot; id=&quot;serverdate&quot;/&gt;<br />
                &lt;/p&gt;&lt;/td&gt;<br />
            &lt;/tr&gt;<br />
		&lt;/table&gt;<br />
        &lt;br /&gt;<br />
        &lt;table&gt;<br />
        &lt;tr&gt;<br />
		  &lt;td&gt;<br />
	  &lt;div style=&quot;overflow:auto;width:820px;auto;height:280px;border:#E78D2E solid 1px;&quot;&gt;<br />
	  &lt;table width=&quot;100%&quot; border=&quot;0&quot; id=&quot;tableId&quot; cellspacing=&quot;0&quot;  class='' cellpadding=&quot;0&quot;&gt;<br />
          &lt;tr class=&quot;table_heading&quot;&gt; <br />
            &lt;td width=&quot;2%&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/td&gt;<br />
            &lt;td width=&quot;22%&quot;&gt;Item Code&lt;/td&gt;<br />
            &lt;td width=&quot;22%&quot;&gt;Item Name&lt;/td&gt;<br />
            &lt;td width=&quot;22%&quot;&gt;Description&lt;/td&gt;<br />
			&lt;td width=&quot;22%&quot;&gt;Unit&lt;/td&gt;<br />
            &lt;td width=&quot;22%&quot;&gt;Quantity&lt;/td&gt;<br />
          &lt;/tr&gt;<br />
        &lt;/table&gt;<br />
        &lt;script src=&quot;javascripts/dGrid.js&quot;&gt;&lt;/script&gt;<br />
		&lt;script language=&quot;javascript&quot;&gt;<br />
		var itemIDS = new Array();<br />
				&lt;?php<br />
				$sqlQry2		=	&quot;select ITEMCODE from itemmaster&quot;;<br />
				$getQry2		=	mysql_query($sqlQry2);<br />
				$count2			=	mysql_num_rows($getQry2); <br />
				$itr = 0;<br />
				while ($rows2 = mysql_fetch_array($getQry2))<br />
				{				<br />
					echo &quot;itemIDS[$itr] = '&quot;.$rows2['ITEMCODE'].&quot;';\n&quot;;<br />
					$itr++;<br />
				}<br />
		?&gt;<br />
		var error_onfield = null;<br />
		<br />
		<br />
		var Fileds 		=  ['ItemCode','ItemName','Description','Unit','Quantity'];<br />
		var Functions	=  ['showItemcode','showItemName',,'checkforerror','isNumberKey'];<br />
		//var Fileds 	=  ['ItemCode','ItemName','Description','unit','Quantity'];<br />
		//var Functions	=  ['showItemcode','showItemName','showDescription','showUnit'];<br />
		var DefaultRows	=	5;<br />
		//var UDefaultRows=	1;<br />
		<br />
		var Tbl	= new DGrid(&quot;tableId&quot;, DefaultRows, Fileds, Functions);<br />
		<br />
		function showItemcode(obj){<br />
			<br />
			var RowIndex  = obj.id.split('ItemCode');<br />
			var fillValue = &quot;ItemName&quot;+RowIndex[1];<br />
			var descr = &quot;Description&quot;+RowIndex[1];<br />
			var unit = &quot;Unit&quot;+RowIndex[1];<br />
			var options ={<br />
			script:&quot;autosuggest.php?limit=6&amp;searchby=ITEMCODE,ITEMNAME,DESCRIPTION,UNIT&amp;tablename=itemmaster&amp;orderby=ITEMCODE&amp;&quot;,<br />
			varname:&quot;input&quot;,<br />
			json:false,<br />
			shownoresults:false,<br />
			maxresults:6,<br />
			callback: function (obj) <br />
			{ <br />
				document.getElementById(fillValue).value = obj.info;<br />
				document.getElementById(descr).value = obj.desc;<br />
				document.getElementById(unit).value = obj.unit;<br />
				document.getElementById(unit).focus(); <br />
<br />
			}<br />
		};<br />
			<br />
		var as_json = new bsn.AutoSuggest(obj.id, options);<br />
			//alert(obj.name);<br />
		}<br />
		<br />
		function checkforerror()<br />
		{<br />
			if (error_onfield!= null)<br />
			{<br />
				error_onfield.focus();<br />
				error_onfield = null;<br />
			}<br />
		}<br />
		<br />
		function showItemName(obj){<br />
			<br />
			var RowIndex  = obj.id.split('ItemName');<br />
			var fillValue = &quot;ItemCode&quot;+RowIndex[1];<br />
			var descr = &quot;Description&quot;+RowIndex[1];<br />
			var unit = &quot;Unit&quot;+RowIndex[1];<br />
			var options ={<br />
			script:&quot;autosuggest.php?limit=6&amp;searchby=ITEMNAME,ITEMCODE,DESCRIPTION,UNIT&amp;tablename=itemmaster&amp;orderby=ITEMCODE&amp;&quot;,<br />
			varname:&quot;input&quot;,<br />
			json:false,<br />
			shownoresults:false,<br />
			maxresults:6,<br />
			callback: function (obj) <br />
			{ <br />
				document.getElementById(fillValue).value = obj.info;<br />
				document.getElementById(descr).value = obj.desc;<br />
				document.getElementById(unit).value = obj.unit;<br />
				document.getElementById(unit).focus(); <br />
<br />
			}<br />
		};<br />
			<br />
		var as_json = new bsn.AutoSuggest(obj.id, options);<br />
			//alert(obj.name);<br />
		}<br />
	&lt;/script&gt;<br />
<br />
		&lt;/div&gt;<br />
<br />
    <br />
<br />
&lt;table align=&quot;center&quot;&gt;<br />
&lt;tr&gt;<br />
		&lt;td width=&quot;1%&quot;&gt;&lt;div name=&quot;addtoGrid&quot; title=&quot;Add New Row&quot; onclick=&quot;javascript<b></b>:DGrid.addToGrid(UDefaultRows);&quot; id=&quot;addtoGrid2&quot; value=&quot;Add Row&quot;&gt;&lt;a class=&quot;actions&quot;&gt;&lt;img src=&quot;images/addrow.jpg&quot; width=&quot;20&quot; height=&quot;20&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;<br />
<br />
		&lt;td width=&quot;9%&quot;&gt;&lt;div name=&quot;addtoGrid&quot; title=&quot;Add New Row&quot; onclick=&quot;javascript<b></b>:DGrid.addToGrid(UDefaultRows);&quot; id=&quot;addtoGrid2&quot; value=&quot;Add Row&quot;&gt;<br />
        &lt;a class=&quot;actions&quot;&gt;Add Row&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;<br />
		&lt;td width=&quot;1%&quot;&gt;&lt;div onclick=&quot;validateForm();&quot; title=&quot;Raise Material Request&quot;&gt;&lt;a class=&quot;actions&quot;&gt;&lt;img src=&quot;images/add.jpg&quot; width=&quot;20&quot; height=&quot;20&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;<br />
		&lt;td width=&quot;15%&quot;&gt;&lt;div onclick=&quot;validateForm();&quot; title=&quot;Raise Material Request&quot;&gt;&lt;a class=&quot;actions&quot;&gt;Raise Request&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;<br />
        &lt;td width=&quot;1%&quot;&gt;&lt;div onClick=&quot;editpirForm()&quot; title=&quot;Edit a Material Request&quot;&gt;&lt;a class=&quot;actions&quot;&gt;&lt;img src=&quot;images/edit.jpg&quot; width=&quot;20&quot; height=&quot;20&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;<br />
		&lt;td width=&quot;8%&quot;&gt;&lt;div onClick=&quot;editpirForm()&quot; title=&quot;Edit a Material Request&quot;&gt;&lt;a class=&quot;actions&quot;&gt;Edit&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;<br />
		&lt;td width=&quot;1%&quot;&gt;&lt;div title=&quot;Close this Screen&quot;&gt;&lt;a class=&quot;actions&quot;&gt;&lt;img src=&quot;images/close.jpg&quot; width=&quot;20&quot; height=&quot;20&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;<br />
		&lt;td&gt;&lt;div width=&quot;73%&quot; title=&quot;Close this Screen&quot;&gt;&lt;a class=&quot;actions&quot;&gt;Close&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
			&lt;/td&gt;<br />
		 &lt;/tr&gt; <br />
        <br />
			&lt;/table&gt;<br />
	<br />
	&lt;/table&gt;<br />
	&lt;/fieldset&gt;<br />
    &lt;/td&gt;	<br />
    	&lt;/tr&gt;<br />
    &lt;/table&gt; <br />
	 	&lt;/td&gt;<br />
         &lt;/tr&gt;<br />
          	&lt;tr&gt; <br />
        	&lt;td colspan=&quot;2&quot;&gt;&lt;?php include'footer.php' ?&gt;&lt;/td&gt; <br />
 			&lt;/tr&gt;<br />
	   &lt;/table&gt; <br />
<br />
       &lt;/div&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum112.html">Perl</category>
			<dc:creator>sen1978</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236703.html</guid>
		</item>
		<item>
			<title>Hello All</title>
			<link>http://www.daniweb.com/forums/thread236702.html</link>
			<pubDate>Sat, 07 Nov 2009 04:25:41 GMT</pubDate>
			<description>My name is Chuck.  I am a semi-retired IT consultant.  I got started in the computer field when minicomputers were still hot.  Over the years I have done programming in a number of different languages, but my strength is probably more in financial application design.  Currently I am trying to learn...</description>
			<content:encoded><![CDATA[<div>My name is Chuck.  I am a semi-retired IT consultant.  I got started in the computer field when minicomputers were still hot.  Over the years I have done programming in a number of different languages, but my strength is probably more in financial application design.  Currently I am trying to learn more about Access and Visual Basic.<br />
<br />
I discovered DaniWeb while looking for a solution to a Window XP problem (which has not yet been solved), but I found DaniWeb to be an interesting place and I am looking forward to exploring it.<br />
<br />
Best Wishes,<br />
Chuck</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum165.html">Community Introductions</category>
			<dc:creator>chuckc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236702.html</guid>
		</item>
		<item>
			<title>Convert 1-Dim String Array to String</title>
			<link>http://www.daniweb.com/forums/thread236701.html</link>
			<pubDate>Sat, 07 Nov 2009 04:14:53 GMT</pubDate>
			<description><![CDATA[I'm working on a mass text replacer program because I'm sick of all the 10-day trial ones out there that aren't very good. 
 
The entire program is basically finished (All easy stuff), but now I need to code the actual replace/delete stuff, which I'm stuck on because apparently the way I originally...]]></description>
			<content:encoded><![CDATA[<div>I'm working on a mass text replacer program because I'm sick of all the 10-day trial ones out there that aren't very good.<br />
<br />
The entire program is basically finished (All easy stuff), but now I need to code the actual replace/delete stuff, which I'm stuck on because apparently the way I originally intended to do it is not possible.<br />
<br />
The way it works is you load a text file (.txt, .cfg, .ini, .doc, etc.) which opens a StreamReader which writes all the data into a listbox. Then you pick whether you want to replace or delete a string. If you select replace, then you enter the string to search for and in another textbox you enter the string to replace it with.<br />
<br />
The way I originally intended to do this was like this:<br />
<br />
 <pre style="margin:20px; line-height:13px">If o1.Text = &quot;Replace&quot; Then 'The option<br />
&nbsp; &nbsp; Replace(txtfile, str1, a1) 'txtfile is the data, str1 is the string to find and a1 is the replacement<br />
End If</pre><br />
The problem is, I believe this method requires txtfile, str1 and a1 to be strings, but they're all 1-dimensional string arrays, which cannot be converted to strings, or at least I don't know how to convert them.<br />
<br />
A friend told me one way I could do this is to open both a StreamReader and StreamWriter and do the replace/delete line by line as they are entered into the memory and write them to a temporary file which is then copied over the original. I can do this kind of, but I still don't know the proper way of doing the actual replace code because the string to find and the string to replace with are still 1-dimensional string arrays rather than strings.<br />
<br />
I can't think of any other way to do this, due to I'm not that experienced in VBNet. Any help is greatly appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Darkicon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236701.html</guid>
		</item>
		<item>
			<title>Complete newb needing help with drawing histograms.</title>
			<link>http://www.daniweb.com/forums/thread236700.html</link>
			<pubDate>Sat, 07 Nov 2009 03:45:30 GMT</pubDate>
			<description>Hello all. My name is Younis, I am a computer science newb. I occasionally browse this website reading some fascinating threads. I have a simple project at hand which i am finding the extra credit portion to be somewhat difficult.  
 
The project is very simple,  
the project takes a number from...</description>
			<content:encoded><![CDATA[<div>Hello all. My name is Younis, I am a computer science newb. I occasionally browse this website reading some fascinating threads. I have a simple project at hand which i am finding the extra credit portion to be somewhat difficult. <br />
<br />
The project is very simple, <br />
the project takes a number from the user and <br />
- if the number is one, it quits<br />
-if the number is even, we cut it in half<br />
-if the number is odd, multiply is by 3 and add 1<br />
<br />
so if we look at the number 13 it goes like this:<br />
13 -&gt; 40 -&gt; 20 -&gt; 10 -&gt; 5 -&gt; 16 -&gt; 8 -&gt; 4 -&gt; 2 -&gt; 1 <br />
<br />
so the length of the chain would be 10.<br />
<br />
So our job is to print a menu to the user.<br />
If the user enters &quot;I&quot;, ask the user for a number, print the chain and length of the chain for that number<br />
<br />
if the user enters &quot;R&quot;, ask the user for a range of numbers, and print the length and chain of each number<br />
<br />
If the user enters &quot;L&quot;, ask the user for a range of numbers, and print the number with the longest chain length. <br />
<br />
If the user enters &quot;Q&quot;, then quit. <br />
<br />
I have all of that working. now i the extra credit says:<br />
if the user enters a number, and the next 10 numbers after that and draw a histograms. <br />
<br />
so the x axis would be each of the number, and the y axis would be the chain length of that number. <br />
<br />
I can get the number and length of each number in a list. but i am a newb as to how to draw  this. <br />
so if the user entered 2, we would draw a histogram of 2-11 and each bar of the number would reach up to the chain length of that number.  <br />
<br />
here is my code:<br />
 <pre style="margin:20px; line-height:13px"># Filename:&nbsp; &nbsp; hw6.py<br />
# Date:&nbsp; &nbsp; &nbsp; &nbsp; 10/16/09<br />
# Section #:&nbsp;  06<br />
# Description:<br />
# This file contains python code for hailstone sequence.<br />
# It follows the rules, if a number is even, it will divide the<br />
# next number by two, if the number is odd, it will multiply the next<br />
# number by three and then add 1. This will continuie forming a chain<br />
# until the last number is 1. <br />
<br />
# this function prints the chain of numbers using the rules<br />
# also adds up the length chain<br />
# Inputs : n<br />
# Outputs : none<br />
<br />
import string<br />
# from graphics import *<br />
from graphics import *<br />
<br />
#Constant<br />
MAX = 10000<br />
<br />
# printing functions<br />
<br />
# this function prints a brief description of the program to the user<br />
# Inputs: none<br />
# Outputs : none<br />
def printGreeting():<br />
&nbsp; &nbsp; print &quot;&quot;<br />
&nbsp; &nbsp; print &quot; This program finds hailstones sequences of numbers&quot;<br />
&nbsp; &nbsp; print &quot; you choose. The next number in the sequence if found by&quot;<br />
&nbsp; &nbsp; print &quot; either dividing it by two(if even) or multiplying by 3&quot;<br />
&nbsp; &nbsp; print &quot; and adding 1(if odd).The program quits when the last&quot;<br />
&nbsp; &nbsp; print &quot; number in the sequence is 1\n&quot;<br />
<br />
# this functions prints the menu for the user <br />
# Inputs: none<br />
# Outputs : none<br />
def printMenu():<br />
&nbsp; &nbsp; print &quot;\n\tHere are your menu choices:&quot;<br />
&nbsp; &nbsp; print &quot;\n\tI - view squence for an individual value\n&quot;<br />
&nbsp; &nbsp; print &quot;\tR - veiw sequence for range of values\n&quot;<br />
&nbsp; &nbsp; print &quot;\tL - Find the longest chain\n&quot;<br />
&nbsp; &nbsp; print &quot;\tH - Print out the histogram\n&quot;<br />
&nbsp; &nbsp; print &quot;\tQ - Quit\n\n&quot;<br />
<br />
# end of printing funtions<br />
<br />
<br />
# hailstone(number) prints the hailstone sequence<br />
# Inputs: number<br />
# Outputs: none<br />
def hailstone(n):<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; length = 1<br />
&nbsp; &nbsp; print n,<br />
&nbsp; &nbsp; # checks if n is not sential <br />
&nbsp; &nbsp; while n != 1:<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; # if even, divide by 2 (rule). add 1 to length<br />
&nbsp; &nbsp; &nbsp; &nbsp; if n % 2 == 0:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n = n / 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print &quot;-&gt;&quot;,n,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; length = length + 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; # if odd, multiply by 3, add 1 (rule). add 1 to length<br />
&nbsp; &nbsp; &nbsp; &nbsp; elif n % 2 != 0:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n = ( 3 * n ) + 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print &quot;-&gt;&quot;,n,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; length = length + 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; # print the length at the end of each chain<br />
&nbsp; &nbsp; print &quot;; length =&quot;,length<br />
&nbsp; &nbsp; print &quot;----------------------------------------------------------------&quot;,<br />
&nbsp; &nbsp; print &quot;--------------\n&quot;<br />
&nbsp; &nbsp; return length<br />
<br />
# this function returns the length of each chain from the starting number, n<br />
# Inputs : n<br />
# Outputs : none<br />
def chain(n):<br />
&nbsp;  <br />
&nbsp; &nbsp; length = 1<br />
&nbsp; &nbsp; while n != 1:<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; # if even, divide by 2 (rule). add 1 to length<br />
&nbsp; &nbsp; &nbsp; &nbsp; if n % 2 == 0:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n = n / 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; length&nbsp; = length + 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; # if even, divide by 2 (rule). add 1 to length<br />
&nbsp; &nbsp; &nbsp; &nbsp; elif n % 2 != 0:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n = ( 3 * n ) + 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; length = length + 1<br />
&nbsp; &nbsp; return length<br />
<br />
# getValidInt() prompts the user to enter an integer in the specified range,<br />
# rejects values not in that range by requiring new input, and only returns<br />
# a valid integer.<br />
# Inputs: the question of the prompt,<br />
#&nbsp; &nbsp; &nbsp; &nbsp;  the minimum value in the range<br />
#&nbsp; &nbsp; &nbsp; &nbsp;  and the maximum value in the range<br />
# Output: an integer in the specified range<br />
def getValidInt(question, min, max):<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; # use a bad value to enter the loop<br />
&nbsp; &nbsp; value = max + 1<br />
<br />
&nbsp; &nbsp; # compose the prompt <br />
&nbsp; &nbsp; prompt = question + &quot; (&quot; + str(min) + &quot;-&quot; + str(max) + &quot;): &quot;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; # continue to get values until the user enters a valid one<br />
&nbsp; &nbsp; while value == &quot;&quot; or value &lt; min or value &gt; max:<br />
&nbsp; &nbsp; &nbsp; &nbsp; value = raw_input(prompt)<br />
&nbsp; &nbsp; &nbsp; &nbsp; if len(value) != 0:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value = int(value)<br />
<br />
&nbsp; &nbsp; # return a valid value<br />
&nbsp; &nbsp; return value<br />
<br />
<br />
# this function finds the longest chain<br />
# Inputs: none<br />
# Outputs : none<br />
def longChain():<br />
&nbsp; &nbsp;  begin = &quot;Please enter the begining integer for the range&quot;<br />
&nbsp; &nbsp;  end = &quot;Please enter the ending integer for the range&quot;<br />
<br />
&nbsp; &nbsp;  # calls to getValidInt for starting and ending values<br />
&nbsp; &nbsp;  beginNum = getValidInt(begin, 1, MAX)<br />
&nbsp; &nbsp;  endNum = getValidInt(end, beginNum + 1, MAX)<br />
<br />
&nbsp; &nbsp;  largestChain = beginNum<br />
<br />
&nbsp; &nbsp;  for i in range(beginNum, endNum+1):<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if largestChain &lt;= chain(i):<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  largestChain = i<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  length = chain(i)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp;  print largestChain, &quot; had the longest chain &quot;, length<br />
<br />
# this function finds the longest chain***************************8<br />
# Inputs: none*************<br />
# Outputs : none&nbsp; &nbsp; <br />
def histogram():<br />
&nbsp; &nbsp; # initialize variables&nbsp; <br />
&nbsp; &nbsp; longestLength = 1<br />
&nbsp; &nbsp; list = []<br />
<br />
&nbsp; &nbsp; start = input(&quot;Please enter the begining integer for the range: &quot;)<br />
&nbsp; &nbsp; for n in range (start, start + 10):<br />
&nbsp; &nbsp; &nbsp; &nbsp; length = chain(n)<br />
&nbsp; &nbsp; &nbsp; &nbsp; list.append(length)<br />
&nbsp; &nbsp; &nbsp; &nbsp; if longestLength &lt;= chain(n):<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; longestLength = n<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; length = chain(n)<br />
&nbsp; &nbsp; &nbsp; &nbsp; print longestLength<br />
&nbsp; &nbsp; &nbsp; &nbsp; print list<br />
<br />
def main():<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; # prints the greeting to the user<br />
&nbsp; &nbsp; printGreeting()<br />
<br />
&nbsp; &nbsp; # prints the menu to the user<br />
&nbsp; &nbsp; printMenu()<br />
<br />
&nbsp; &nbsp; # asks user the menu choice<br />
&nbsp; &nbsp; choice = raw_input(&quot;Please enter your choice : &quot;).upper()<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; # checks to see if choice entered is from the menu<br />
&nbsp; &nbsp; while choice != 'Q': <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; # if choice is &quot;I&quot; or &quot;i&quot;, proceeds to follow the individual steps<br />
&nbsp; &nbsp; &nbsp; &nbsp; if choice == 'I':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n = input(&quot;Please enter your integer (1-10000):&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hailstone(n)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; # if choice is &quot;R&quot; or &quot;r&quot;, proceds print each number and its sequence<br />
&nbsp; &nbsp; &nbsp; &nbsp; # until the last number is 1, uses getValidInt to get valid integers<br />
&nbsp; &nbsp; &nbsp; &nbsp; # for the function<br />
&nbsp; &nbsp; &nbsp; &nbsp; elif choice == 'R':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin = &quot;Please enter the begining integer for the range&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end = &quot;Please enter the ending integer for the range&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # calls to getValidInt for starting and ending values<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; beginNum = getValidInt(begin, 1, MAX)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endNum = getValidInt(end, beginNum + 1, MAX)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # for loop to get the values between starting and ending value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for n in range(beginNum,endNum+1):<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #call to the hailstone function<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hailstone(n)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; # if choice is &quot;L&quot; or &quot;l&quot;, proceeds to use getValidInt again to get the<br />
&nbsp; &nbsp; &nbsp; &nbsp; # range, error checks on the range, and then calls the function chain<br />
&nbsp; &nbsp; &nbsp; &nbsp; # to determine the length. <br />
&nbsp; &nbsp; &nbsp; &nbsp; elif choice == 'L':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # call to function longchain<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; longChain()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; elif choice == 'H':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; histogram()<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; # if niether of the menu choices, then it prints that the<br />
&nbsp; &nbsp; &nbsp; &nbsp; # entered text is not a valid choices<br />
&nbsp; &nbsp; &nbsp; &nbsp; else:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print choice, &quot;is not a valid choice&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; # prints the menu to the user<br />
&nbsp; &nbsp; &nbsp; &nbsp; printMenu()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; # asks user the menu choice<br />
&nbsp; &nbsp; &nbsp; &nbsp; choice = raw_input(&quot;Please enter your choice : &quot;).upper()<br />
&nbsp; &nbsp; &nbsp; <br />
main()</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>truekid</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236700.html</guid>
		</item>
		<item>
			<title>PHP to png, png to pdf</title>
			<link>http://www.daniweb.com/forums/thread236697.html</link>
			<pubDate>Sat, 07 Nov 2009 03:40:47 GMT</pubDate>
			<description><![CDATA[Hi All, 
I'm looking for a technique how to save image generated from php to png/jpg/gif, save the image to the server. Later, I want to include the image file to a pdf file generated from a php code. 
 
I'm referring the image generated php from HERE...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
I'm looking for a technique how to save image generated from php to png/jpg/gif, save the image to the server. Later, I want to include the image file to a pdf file generated from a php code.<br />
<br />
I'm referring the image generated php from <a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread199886.html" target="_blank">HERE</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>waknash</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236697.html</guid>
		</item>
		<item>
			<title>Web Browser Help.</title>
			<link>http://www.daniweb.com/forums/thread236696.html</link>
			<pubDate>Sat, 07 Nov 2009 03:37:16 GMT</pubDate>
			<description><![CDATA[I am currently trying to create a Web Design program, freeware, for use to help with the aid of web design.  I want it to be sorta like... "Web-Design-Toy"  by ACME, only with more features.  To where when you type in the textbox, it comes out in a live view using a web browser.  Anybody have any...]]></description>
			<content:encoded><![CDATA[<div>I am currently trying to create a Web Design program, freeware, for use to help with the aid of web design.  I want it to be sorta like... &quot;Web-Design-Toy&quot;  by ACME, only with more features.  To where when you type in the textbox, it comes out in a live view using a web browser.  Anybody have any ideas of how to code that with Visual Basic 2008 Express Edition!?!  Please and Thank-You!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Gangstafier</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236696.html</guid>
		</item>
		<item>
			<title>hung problem</title>
			<link>http://www.daniweb.com/forums/thread236695.html</link>
			<pubDate>Sat, 07 Nov 2009 03:19:58 GMT</pubDate>
			<description>ive got hung up problem, my mother board is sata 300, also hard drive, i can run some of the program like surfing, its just hung up, when i open some application/network....,  i tried cleaning up the processor, vedio card but same result.....,,, what could be the problem?</description>
			<content:encoded><![CDATA[<div>ive got hung up problem, my mother board is sata 300, also hard drive, i can run some of the program like surfing, its just hung up, when i open some application/network....,  i tried cleaning up the processor, vedio card but same result.....,,, what could be the problem?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum10.html">Windows NT / 2000 / XP</category>
			<dc:creator>andrewkho</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236695.html</guid>
		</item>
		<item>
			<title>Backlinks For SEO</title>
			<link>http://www.daniweb.com/forums/thread236694.html</link>
			<pubDate>Sat, 07 Nov 2009 03:08:57 GMT</pubDate>
			<description>Hello All, 
would u like to create Friends Sites on your sites? 
My web site:  
Free Classifieds Ads USA and Canada (http://www.FreeFastAds.com)</description>
			<content:encoded><![CDATA[<div>Hello All,<br />
would u like to create Friends Sites on your sites?<br />
My web site: <br />
<a rel="nofollow" class="t" href="http://www.FreeFastAds.com" target="_blank">Free Classifieds Ads USA and Canada</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum45.html">Search Engine Optimization</category>
			<dc:creator>freepost</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236694.html</guid>
		</item>
		<item>
			<title>ContextMenuStrip</title>
			<link>http://www.daniweb.com/forums/thread236691.html</link>
			<pubDate>Sat, 07 Nov 2009 02:52:20 GMT</pubDate>
			<description><![CDATA[HI 
 
I'm trying to use a menu on a datagridview, I have put a Contextmenutrip on the form. When I right click in a cell 
I would like a menu to pop up. but nothing happens. 
This is the code I have tried. 
 
[CODE]   Private Sub CustomerPopMenu_ItemClicked(ByVal sender As Object, ByVal e As...]]></description>
			<content:encoded><![CDATA[<div>HI<br />
<br />
I'm trying to use a menu on a datagridview, I have put a Contextmenutrip on the form. When I right click in a cell<br />
I would like a menu to pop up. but nothing happens.<br />
This is the code I have tried.<br />
<br />
[CODE]   Private Sub CustomerPopMenu_ItemClicked(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs)<br />
<br />
        Select Case e.ClickedItem.ToString()<br />
<br />
            Case &quot;Edit&quot;<br />
                MsgBox(&quot;Edit&quot;)<br />
<br />
            Case &quot;Delete&quot;<br />
                MsgBox(&quot;Delete&quot;)<br />
        End Select<br />
<br />
    End Sub/CODE]</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>VIPER5646</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236691.html</guid>
		</item>
		<item>
			<title>Guaranteed Income from online</title>
			<link>http://www.daniweb.com/forums/thread236686.html</link>
			<pubDate>Sat, 07 Nov 2009 02:41:31 GMT</pubDate>
			<description>Guaranteed Income from online 
Do you want to earn extra money from home? No matter, 
it is very easy, just click on the following link 
www.adwebfeed.com</description>
			<content:encoded><![CDATA[<div>Guaranteed Income from online<br />
Do you want to earn extra money from home? No matter,<br />
it is very easy, just click on the following link<br />
<a rel="nofollow" class="t" href="http://www.adwebfeed.com" target="_blank">www.adwebfeed.com</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum29.html">Web Browsers</category>
			<dc:creator>supriyamaji</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236686.html</guid>
		</item>
		<item>
			<title>Is calling Win32 API from Java possible??</title>
			<link>http://www.daniweb.com/forums/thread236683.html</link>
			<pubDate>Sat, 07 Nov 2009 02:32:04 GMT</pubDate>
			<description><![CDATA[Is there any other way besides Jawin to call Win32 API methods from within Java? I have the option of using C++ as im going to be using the API a fair amount however i'm also doing GUI stuff and i would prefer the Java GUI features over C++. 
 
If i can find a way to call the windows API from Java...]]></description>
			<content:encoded><![CDATA[<div>Is there any other way besides Jawin to call Win32 API methods from within Java? I have the option of using C++ as im going to be using the API a fair amount however i'm also doing GUI stuff and i would prefer the Java GUI features over C++.<br />
<br />
If i can find a way to call the windows API from Java then i can stick to Java.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>futureaussiecto</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236683.html</guid>
		</item>
		<item>
			<title>Cant find drivers for UFT06</title>
			<link>http://www.daniweb.com/forums/thread236682.html</link>
			<pubDate>Sat, 07 Nov 2009 02:23:38 GMT</pubDate>
			<description>Need help finding drivers for UFT06 guslink link cable...... for windows XP 
 
Thanks to everyone again</description>
			<content:encoded><![CDATA[<div>Need help finding drivers for UFT06 guslink link cable...... for windows XP<br />
<br />
Thanks to everyone again</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum107.html">USB Devices and other Peripherals</category>
			<dc:creator>stevenpetersen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236682.html</guid>
		</item>
		<item>
			<title><![CDATA[Windows & Linux VPS Hosting, Fully Managed, Free WHMCS, Free Plesk or cPanel, 50% Off]]></title>
			<link>http://www.daniweb.com/forums/thread236681.html</link>
			<pubDate>Sat, 07 Nov 2009 02:22:05 GMT</pubDate>
			<description>ScarabWeb is now offering Fully managed VPS servers at an affordable price. All our VPS packages are packed with great resources and many free beebies. Hosted on a Intel2Quad Xeon and up to 48 GB Ram nodes fully clustered managed by us. 
 
** Current Promotions ** 
 
Get WHMCS for free when buying...</description>
			<content:encoded><![CDATA[<div>ScarabWeb is now offering Fully managed VPS servers at an affordable price. All our VPS packages are packed with great resources and many free beebies. Hosted on a Intel2Quad Xeon and up to 48 GB Ram nodes fully clustered managed by us.<br />
<br />
<span style="font-weight:bold"><span style="color:green">* Current Promotions *</span></span><br />
<br />
Get WHMCS for free when buying selected VPS plans.<br />
Get 40% off your first billing cycle if paying monthly <span style="font-weight:bold"><span style="color:Red">(USE COUPON VPS40 )</span></span><br />
Get 50% off your first billing cycle if paying 3 months <span style="font-weight:bold"><span style="color:Red">(USE COUPON VPS50 )</span></span><br />
<br />
<span style="font-weight:bold">Linux VPS Plans</span><br />
<span style="font-weight:bold"><span style="color:green"><br />
[*]</span></span> INCLUDED WITH ALL LINUX VPS PLANS <span style="font-weight:bold"><span style="color:green">[*]</span></span><br />
<br />
* cPanel/ WHM / Fantastico/ RvSkin<br />
* Free WHMCS License<br />
* Fully Root Access<br />
* Fully Managed<br />
* Virtuozzo Enabled<br />
<br />
<span style="font-weight:bold"><span style="color:green">[*] Linux VPS-1[*]</span></span> <br />
    * 50 GB Disk Space<br />
    * 500 GB Bandwidth<br />
    * 512 MB RAM<br />
    * 1024 MB Burstable<br />
    * Price: $60.00/month  |  $60.00/month (3 months)  <br />
    * <a rel="nofollow" class="t" href="http://www.scarabweb.com/services/vps/linux.php" target="_blank">Order Now</a><br />
<br />
<span style="font-weight:bold"><span style="color:green">[*] Linux VPS-2[*]</span></span> <br />
    * 100 GB Disk Space<br />
    * 1000 GB Bandwidth<br />
    * 768 MB RAM<br />
    * 2048 MB Burstable<br />
    * Price: $75.00/month  |  $75.00/month (3 months)  <br />
    * <a rel="nofollow" class="t" href="http://www.scarabweb.com/services/vps/linux.php" target="_blank">Order Now</a><br />
<br />
<span style="font-weight:bold"><span style="color:green">[*] Linux VPS-3[*]</span></span> <br />
    * 200 GB Disk Space<br />
    * 1500 GB Bandwidth<br />
    * 1024 MB RAM<br />
    * 2048 MB Burstable<br />
    * Price: $99.00/month  |  $99.00/month (3 months)  <br />
    * <a rel="nofollow" class="t" href="http://www.scarabweb.com/services/vps/linux.php" target="_blank">Order Now</a><br />
<br />
<br />
<span style="font-weight:bold">Windows 2003 VPS Plans</span><br />
<br />
<br />
<span style="font-weight:bold"><span style="color:green">[*]</span></span> INCLUDED WITH ALL WINDOWS VPS PLANS <span style="font-weight:bold"><span style="color:green">[*]</span></span><br />
<br />
* Plesk 9<br />
* Site builder<br />
* Free WHMCS License<br />
* Fully Root Access<br />
* Fully Managed<br />
* Virtuozzo Enabled<br />
<br />
<span style="font-weight:bold"><span style="color:green">[*] Windows 2003 VPS-1[*]</span></span> <br />
* 50 GB Disk Space<br />
* 500 GB Bandwidth<br />
* 512 MB RAM<br />
* 1024 MB Burstable<br />
* Price: $75.00/month | $75.00/month (3 months) <br />
* <a rel="nofollow" class="t" href="http://www.scarabweb.com/services/vps/windows2003.php" target="_blank">Order Now</a><br />
<br />
<span style="font-weight:bold"><span style="color:green">[*] Windows 2003 VPS-2[*]</span></span> <br />
* 100 GB Disk Space<br />
* 1000 GB Bandwidth<br />
* 768 MB RAM<br />
* 2048 MB Burstable<br />
* Price: $90.00/month | $90.00/month (3 months) <br />
* <a rel="nofollow" class="t" href="http://www.scarabweb.com/services/vps/windows2003.php" target="_blank">Order Now</a><br />
<br />
<span style="font-weight:bold"><span style="color:green">[*] Windows 2003 VPS-3[*]</span></span> <br />
* 200 GB Disk Space<br />
* 1500 GB Bandwidth<br />
* 1024 MB RAM<br />
* 2048 MB Burstable<br />
* Price: $114.00/month | $114.00/month (3 months) <br />
* <a rel="nofollow" class="t" href="http://www.scarabweb.com/services/vps/windows2003.php" target="_blank">Order Now</a><br />
<br />
<span style="font-weight:bold">Windows 2008 VPS Plans</span><br />
<br />
<br />
<span style="font-weight:bold"><span style="color:green">[*]</span></span> INCLUDED WITH ALL WINDOWS VPS PLANS <span style="font-weight:bold"><span style="color:green">[*]</span></span><br />
<br />
* Plesk 9<br />
* Site builder<br />
* Free WHMCS License<br />
* Fully Root Access<br />
* Fully Managed<br />
* Virtuozzo Enabled<br />
<br />
<span style="font-weight:bold"><span style="color:green">[*] Windows 2008 VPS-1[*]</span></span> <br />
* 50 GB Disk Space<br />
* 500 GB Bandwidth<br />
* 512 MB RAM<br />
* 1024 MB Burstable<br />
* Price: $75.00/month | $75.00/month (3 months) <br />
* <a rel="nofollow" class="t" href="http://www.scarabweb.com/services/vps/windows2008.php" target="_blank">Order Now</a><br />
<br />
<span style="font-weight:bold"><span style="color:green">[*] Windows 2008 VPS-2[*]</span></span> <br />
* 100 GB Disk Space<br />
* 1000 GB Bandwidth<br />
* 768 MB RAM<br />
* 2048 MB Burstable<br />
* Price: $90.00/month | $90.00/month (3 months) <br />
* <a rel="nofollow" class="t" href="http://www.scarabweb.com/services/vps/windows2008.php" target="_blank">Order Now</a><br />
<br />
<span style="font-weight:bold"><span style="color:green">[*] Windows 2008 VPS-3[*]</span></span> <br />
* 200 GB Disk Space<br />
* 1500 GB Bandwidth<br />
* 1024 MB RAM<br />
* 2048 MB Burstable<br />
* Price: $114.00/month | $114.00/month (3 months) <br />
* <a rel="nofollow" class="t" href="http://www.scarabweb.com/services/vps/windows2008.php" target="_blank">Order Now</a><br />
<br />
All our reseller hosting plans are located in Ohio, USA. Placed on a cloud fully clustered Intel2Quad Xeon and  up to 48 GB Ram<br />
<br />
Any questions please visit <a rel="nofollow" class="t" href="http://www.scarabweb.com" target="_blank">www.scarabweb.com</a> to speak to a sales representative or email us at sales @ scarabweb.com</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum154.html">Web Hosting Deals</category>
			<dc:creator>ScarabWeb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236681.html</guid>
		</item>
		<item>
			<title>I require help with making 3 simple program/functions</title>
			<link>http://www.daniweb.com/forums/thread236680.html</link>
			<pubDate>Sat, 07 Nov 2009 01:46:33 GMT</pubDate>
			<description><![CDATA[1. I need to make a program that creates a list that contains the first n perfect squares. All I know is that it starts with 
 
n = int(raw_input("How many squares? ")) 
 
and ends with 
 
print squares 
 
An example of how this program should work is:]]></description>
			<content:encoded><![CDATA[<div>1. I need to make a program that creates a list that contains the first n perfect squares. All I know is that it starts with<br />
<br />
n = int(raw_input(&quot;How many squares? &quot;))<br />
<br />
and ends with<br />
<br />
print squares<br />
<br />
An example of how this program should work is:<br />
<br />
How many squares? 5<br />
[1, 4, 9, 16, 25]<br />
<br />
2. I need to create a function that takes a list as its only argument. It's needs to return a new list containing all (and only) the elements of 1 which are divisible by 2. The original list needs to remain the same.<br />
<br />
Example of how this works is:<br />
<br />
even_only([1, 3, 6, 10, 15, 21, 28])       should return<br />
[6, 10, 28]<br />
<br />
3. I need a function that translates a single English sentence into pig latin.<br />
<br />
I honestly have no idea how to start any of these and any help would be greatly appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>Judgment</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236680.html</guid>
		</item>
		<item>
			<title>Dynamic Array and tacking a linked list to array?</title>
			<link>http://www.daniweb.com/forums/thread236679.html</link>
			<pubDate>Sat, 07 Nov 2009 01:40:54 GMT</pubDate>
			<description><![CDATA[Ok, I am trying to figure out how to purse this current project which deals with dynamic allocation and linked list 
 
Here is the information I am given the following two structs  
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Ok, I am trying to figure out how to purse this current project which deals with dynamic allocation and linked list<br />
<br />
Here is the information I am given the following two structs <br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
struct employee<br />
{<br />
&nbsp; int ssn;<br />
&nbsp; string name;<br />
&nbsp; float hours;<br />
&nbsp; assignment * list;<br />
};<br />
<br />
struct assignment<br />
{<br />
&nbsp; string proj;<br />
&nbsp; float hours;<br />
&nbsp; assignment *next;<br />
};</pre><br />
Objectives:<br />
<br />
read from a file into a dynamic array of employee struct, size of array will be 3 when program starts, int ssn will serve as unique identifer. <br />
<br />
read the second file and add a new node to the employee's linked list of assigned projects. The final arrangement<br />
will be an array (dynamically allocated) of struct1 where each employee contains a pointer to a linked<br />
list of the projects to which they are assigned. The employees in the array will be in ascending order by<br />
SSN. The projects assigned to each employee will be in descending order by the hours assigned.<br />
<br />
Any tips to get me going?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>power_computer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236679.html</guid>
		</item>
		<item>
			<title>Reading data from a file and storing into seperate variables</title>
			<link>http://www.daniweb.com/forums/thread236678.html</link>
			<pubDate>Sat, 07 Nov 2009 01:34:01 GMT</pubDate>
			<description><![CDATA[Hi all, I am trying to write code that will read from a file that is set up as an inventory file.  So, on each line you'll have something similar to: 
 
1.               Toothpaste 
2.               Toothbrush 
etc... 
 
The problem I'm having is saving the numeric item number into one array index,...]]></description>
			<content:encoded><![CDATA[<div>Hi all, I am trying to write code that will read from a file that is set up as an inventory file.  So, on each line you'll have something similar to:<br />
<br />
1.               Toothpaste<br />
2.               Toothbrush<br />
etc...<br />
<br />
The problem I'm having is saving the numeric item number into one array index, then the item description into a different array index.  The user should be able to add to the file and the program will need to sort this based on item number.  I can use getline, but don't know how to delimit it based on this type of file.  I've tried using get, but don't know how to assemble the individual characters into one array index.  Any help would be greatly appreciated, I'm new to this.  Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Jalwes</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236678.html</guid>
		</item>
		<item>
			<title>Tipard iPod/iPhone Transfer Mac/Windows at lower Discount (29 Oct.-6 Nov.)</title>
			<link>http://www.daniweb.com/forums/thread236677.html</link>
			<pubDate>Sat, 07 Nov 2009 01:31:52 GMT</pubDate>
			<description>Tipard  iPod to PC Transfer (http://tipard.com/ipod-to-pc-transfer.html) ($19) and Tipard iPod Transfer for Mac  (http://tipard.com/ipod-transfer-for-mac.html) ($19), Tipard iPhone to Mac Transfer (http://tipard.com/iphone-to-mac-transfer.html) ($19) and Tipard iPhone Transfer...</description>
			<content:encoded><![CDATA[<div>Tipard <a rel="nofollow" class="t" href="http://tipard.com/ipod-to-pc-transfer.html" target="_blank"> iPod to PC Transfer</a> ($19) and Tipard <a rel="nofollow" class="t" href="http://tipard.com/ipod-transfer-for-mac.html" target="_blank">iPod Transfer for Mac </a> ($19), Tipard <a rel="nofollow" class="t" href="http://tipard.com/iphone-to-mac-transfer.html" target="_blank">iPhone to Mac Transfer</a> ($19) and Tipard <a rel="nofollow" class="t" href="http://tipard.com/iphone-transfer.html" target="_blank">iPhone Transfer</a> ($19) are at discount (25%) from <span style="font-weight:bold">29 Oct. to 6 Nov.</span> in order to express great gratitude to your support for a long time. <br />
<span style="font-weight:bold">Note:</span><br />
Both of the products have their own coupon codes. If you would like to have them, please write the coupon codes down to paper. But the coupon code is only valid to the official website.<br />
<span style="font-weight:bold">Coupon Code:</span><br />
Tipard iPod to PC Transfer:  TIPA-8LL9<br />
Tipard iPod Transfer for Mac: TIPA-Q6K6<br />
Tipard iPhone Transfer:   TIPA-4J67<br />
Tipard iPhone to Mac Transfer: TIPA-Q6K6<br />
<br />
<a href="http://www.tipard.com/guide/Halloween-1.jpg" target="_blank">http://www.tipard.com/guide/Halloween-1.jpg</a><br />
<br />
For more information, go to <span style="font-weight:bold"><a rel="nofollow" class="t" href="http://www.tipard.com/Hallowmas.html" target="_blank">Here</a></span>.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum102.html">Mac Software</category>
			<dc:creator>cappuccino</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236677.html</guid>
		</item>
		<item>
			<title>Interesting Finding: iPhone Users Are Mean</title>
			<link>http://www.daniweb.com/forums/thread236676.html</link>
			<pubDate>Sat, 07 Nov 2009 01:21:54 GMT</pubDate>
			<description><![CDATA[I just read on MediaPost about a study that found iPhone users are mean. I dont like that conclusion but it was probably based on  the fact that iPhone users watch porno. Who knows? So what do you think? 
http://www.mediapost.com/publications/?fa=Articles.showArticle&art_aid=116903 
 
Disclaimer: I...]]></description>
			<content:encoded><![CDATA[<div>I just read on MediaPost about a study that found iPhone users are mean. I dont like that conclusion but it was probably based on  the fact that iPhone users watch porno. Who knows? So what do you think?<br />
<a rel="nofollow" class="t" href="http://www.mediapost.com/publications/?fa=Articles.showArticle&amp;art_aid=116903" target="_blank">http://www.mediapost.com/publication...art_aid=116903</a><br />
<br />
Disclaimer: I am NOT involved in any way with this study nor with MediaPost.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum50.html">Growing an Online Community</category>
			<dc:creator>InsightsDigital</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236676.html</guid>
		</item>
		<item>
			<title>Problem with passing char arrays to functions</title>
			<link>http://www.daniweb.com/forums/thread236675.html</link>
			<pubDate>Sat, 07 Nov 2009 01:15:54 GMT</pubDate>
			<description><![CDATA[Hi there, I'm assuming the answer to this problem is really easy, but I just can't work out where the problem is. It's driving me insane and I'd really appreciate some help. I'm new to C++. 
 
My problem is this: I'm trying to pass a char array to a function, where a line is read from a file and...]]></description>
			<content:encoded><![CDATA[<div>Hi there, I'm assuming the answer to this problem is really easy, but I just can't work out where the problem is. It's driving me insane and I'd really appreciate some help. I'm new to C++.<br />
<br />
My problem is this: I'm trying to pass a char array to a function, where a line is read from a file and then the array is passed back. However, the function returns gibberish - but ONLY when returning a file-derived array element. Here is my code:<br />
<br />
 <pre style="margin:20px; line-height:13px">int main ()<br />
{<br />
&nbsp; &nbsp; char* tags[128];<br />
&nbsp; &nbsp; char* file=&quot;project3.xml&quot;;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; FILE *fp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  fp=fopen(file, &quot;r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  int tits = NextTag( fp, tags );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;tags[0] post-Fn = *&quot; &lt;&lt; tags[0] &lt;&lt; &quot;*\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;tags[1] post-Fn = *&quot; &lt;&lt; tags[1] &lt;&lt; &quot;*\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; system(&quot;PAUSE&quot;);<br />
&nbsp; &nbsp; return 0;<br />
}<br />
<br />
int NextTag( FILE* fp, char* tags[] )<br />
{<br />
&nbsp; &nbsp; int count2 = 0;<br />
&nbsp; &nbsp; char* pch;<br />
&nbsp; &nbsp; char rida1[512];<br />
&nbsp; &nbsp; fgets(rida1, sizeof(rida1), fp);<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;rida1 in-Fn = *&quot; &lt;&lt; rida1 &lt;&lt; &quot;*\n&quot;;<br />
&nbsp; &nbsp; tags[0] = &quot;bottoms&quot;;<br />
&nbsp; &nbsp; tags[1] = rida1;<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;tags[0] in-Fn = *&quot; &lt;&lt; tags[0] &lt;&lt; &quot;*\n&quot;;<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;tags[1] in-Fn = *&quot; &lt;&lt; tags[1] &lt;&lt; &quot;*\n&quot;;<br />
}</pre><br />
The .xml file it's reading from just contains the word 'bottoms'. Here is the output:<br />
<br />
 <pre style="margin:20px; line-height:13px">rida1 in-Fn = *bottoms*<br />
tags[0] in-Fn = *bottoms*<br />
tags[1] in-Fn = *bottoms*<br />
tags[0] post-Fn = *bottoms*<br />
tags[1] post-Fn = *L1&quot;*<br />
Press any key to continue. . .</pre><br />
Why the gibberish on line 5 of the output when it returns the manually entered entry fine? Any ideas? It's driving me insane!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>spankboy11</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236675.html</guid>
		</item>
		<item>
			<title>Do you feel the effects of unemployment online?</title>
			<link>http://www.daniweb.com/forums/thread236674.html</link>
			<pubDate>Sat, 07 Nov 2009 01:05:53 GMT</pubDate>
			<description>I read online that the unemployment rate for the month of October was at a high of 12%. Thus, I wonder if you have noticed an influx of activity, especially during the day time, during these times or a change of online behavior. I wonder post the link to that third party blog so this post wont get...</description>
			<content:encoded><![CDATA[<div>I read online that the unemployment rate for the month of October was at a high of 12%. Thus, I wonder if you have noticed an influx of activity, especially during the day time, during these times or a change of online behavior. I wonder post the link to that third party blog so this post wont get deleted.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum50.html">Growing an Online Community</category>
			<dc:creator>InsightsDigital</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236674.html</guid>
		</item>
		<item>
			<title>Which online research methods do you use for your marketing plan?</title>
			<link>http://www.daniweb.com/forums/thread236673.html</link>
			<pubDate>Sat, 07 Nov 2009 00:53:01 GMT</pubDate>
			<description>Online research may have made it easier to recruit subjects and develop insights, but I do wonder which methods have worked best for you and your clients? Do you use surveys? Polls? or even rich banner ads with an integrated survey? What has been the CTR and success metrics?</description>
			<content:encoded><![CDATA[<div>Online research may have made it easier to recruit subjects and develop insights, but I do wonder which methods have worked best for you and your clients? Do you use surveys? Polls? or even rich banner ads with an integrated survey? What has been the CTR and success metrics?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum43.html">Promotion and Marketing Plans</category>
			<dc:creator>InsightsDigital</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236673.html</guid>
		</item>
		<item>
			<title>Editing Textfiles</title>
			<link>http://www.daniweb.com/forums/thread236672.html</link>
			<pubDate>Sat, 07 Nov 2009 00:46:07 GMT</pubDate>
			<description>Hey 
im new here to excuse the nubneess 
i wanted to make a family tree thingy and wanted to do it in python  
i wanted to make a way so that it could read a text file and auto add a new entry called summary which would include the initials,yr of birth and the childnum could any one help me out? at...</description>
			<content:encoded><![CDATA[<div>Hey<br />
im new here to excuse the nubneess<br />
i wanted to make a family tree thingy and wanted to do it in python <br />
i wanted to make a way so that it could read a text file and auto add a new entry called summary which would include the initials,yr of birth and the childnum could any one help me out? at the moment ive gotten it to add the summary field but i cant figure out how to do the rest<br />
[exampletxt]<br />
Fname,LName,DOB,childnum<br />
bob,smith,17/08/99/1</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>Jewsy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236672.html</guid>
		</item>
		<item>
			<title>How do I find my threads?</title>
			<link>http://www.daniweb.com/forums/thread236671.html</link>
			<pubDate>Sat, 07 Nov 2009 00:31:16 GMT</pubDate>
			<description><![CDATA[For some reason I was unable to move directly to a thread that a user has responded to- notified by email to me. On logging in I was unable to find my threads. A site search with the terms "my threads" did not help. I solved this by selecting Control Panel. Not that obvious? Maybe it should be "My...]]></description>
			<content:encoded><![CDATA[<div>For some reason I was unable to move directly to a thread that a user has responded to- notified by email to me. On logging in I was unable to find my threads. A site search with the terms &quot;my threads&quot; did not help. I solved this by selecting Control Panel. Not that obvious? Maybe it should be &quot;My control Panel&quot;? Maybe when one logs in one should be taken directly to &quot;Control Panel&quot;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum26.html">DaniWeb Community Feedback</category>
			<dc:creator>ggeoff</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236671.html</guid>
		</item>
		<item>
			<title>Donations?</title>
			<link>http://www.daniweb.com/forums/thread236670.html</link>
			<pubDate>Sat, 07 Nov 2009 00:12:38 GMT</pubDate>
			<description><![CDATA[It seems a bit odd to me that one can't donate to Daniweb except as a monthly commitment. I am quite happy to donate but not monthly. So why not arrange a donation option for those who want to express their gratitude for being able to benefit from the service. Or perhaps the running costs are small...]]></description>
			<content:encoded><![CDATA[<div>It seems a bit odd to me that one can't donate to Daniweb except as a monthly commitment. I am quite happy to donate but not monthly. So why not arrange a donation option for those who want to express their gratitude for being able to benefit from the service. Or perhaps the running costs are small and there is no need to include occasional donations?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum26.html">DaniWeb Community Feedback</category>
			<dc:creator>ggeoff</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236670.html</guid>
		</item>
		<item>
			<title>Stamp text on an image.</title>
			<link>http://www.daniweb.com/forums/thread236668.html</link>
			<pubDate>Sat, 07 Nov 2009 00:08:39 GMT</pubDate>
			<description>I have images I would like to serve that will need individual information posted on them. Just a word or two. The information will be pulled from our database. The text will depend on the url that is entered. 
 
We tried just a simple echo but when you view just the image by right click the text...</description>
			<content:encoded><![CDATA[<div>I have images I would like to serve that will need individual information posted on them. Just a word or two. The information will be pulled from our database. The text will depend on the url that is entered.<br />
<br />
We tried just a simple echo but when you view just the image by right click the text disappears. And we want the text to stay on the image or dynamically create the images on the fly with the text when called.<br />
<br />
Does anyone have any idea how to accomplish this, Or does anyone know of a script that can do this.<br />
<br />
Thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>valonesal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236668.html</guid>
		</item>
		<item>
			<title>100,000 in 2 Days using this FREE TOOL</title>
			<link>http://www.daniweb.com/forums/thread236667.html</link>
			<pubDate>Sat, 07 Nov 2009 00:02:37 GMT</pubDate>
			<description>100,000 Real Visitors To My Site In This Short Time... 
 
Yes, It Is Possible! 
 
My primary goal was to get at least 100 personal referrals for my current business, because once those referrals had at least 1000 visitors going to their current business site I knew that 100,000 was already...</description>
			<content:encoded><![CDATA[<div>100,000 Real Visitors To My Site In This Short Time...<br />
<br />
Yes, It Is Possible!<br />
<br />
My primary goal was to get at least 100 personal referrals for my current business, because once those referrals had at least 1000 visitors going to their current business site I knew that 100,000 was already accomplished.<br />
<br />
Just 50 of my personal referrals having 2,000 visitors come to their current business site gives me 100,000 Visitors.<br />
<br />
To see exactly why hundreds of people are pouring into my business on a daily basis using this FREE TOOL visit the site to get yours.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum43.html">Promotion and Marketing Plans</category>
			<dc:creator>betterbusiness</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236667.html</guid>
		</item>
		<item>
			<title>Different Monitor resolutions changing layout! Help</title>
			<link>http://www.daniweb.com/forums/thread236666.html</link>
			<pubDate>Fri, 06 Nov 2009 23:55:48 GMT</pubDate>
			<description><![CDATA[I'm trying to launch my website <a href="http://www.ryankreeps.com">http://www.ryankreeps.com</a> 
 
It looks fine on my macbook, but when I open it on a computer with a different resolution it looks terrible.  Everything is out of place. 
 
This is based off a wordpress template that I've...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to launch my website &lt;a href=&quot;http://www.ryankreeps.com&quot;&gt;http://www.ryankreeps.com&lt;/a&gt;<br />
<br />
It looks fine on my macbook, but when I open it on a computer with a different resolution it looks terrible.  Everything is out of place.<br />
<br />
This is based off a wordpress template that I've customized a bit.  This is my first website and I'm pretty much clueless.  I know it has something to do with using absolute, relative, or float positioning.  Can anyone take a look and give me some hints what is wrong?!<br />
<br />
-Ryan</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum143.html">HTML and CSS</category>
			<dc:creator>ryankreeps</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236666.html</guid>
		</item>
		<item>
			<title>Warning: mysql_connect()</title>
			<link>http://www.daniweb.com/forums/thread236665.html</link>
			<pubDate>Fri, 06 Nov 2009 23:51:52 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>(<a href="#"...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;?<br />
$conn = mysql_connect(&quot;localhost&quot;, &quot;your_username&quot;,&quot;your_password&quot;) or die(mysql_error());<br />
mysql_select_db('your_database', $conn) or die(mysql_error());<br />
?&gt;</pre><br />
this is the code i have on database.php, when i run register page i get a erro.<br />
<br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'your_username'@'localhost' (using password: YES) in /home/a4595523/public_html/database.php on line 2<br />
Access denied for user 'your_username'@'localhost' (using password: YES)  <hr /> </td> </tr> </table> </div>what should i do / change?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Espanhol</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236665.html</guid>
		</item>
		<item>
			<title>I need help with deep copy constructors</title>
			<link>http://www.daniweb.com/forums/thread236664.html</link>
			<pubDate>Fri, 06 Nov 2009 23:41:23 GMT</pubDate>
			<description><![CDATA[I tried looking at the other examples on the site, but I still get segmentation errors whenever I run the file.  I need help with the constructors in *bold* in the "List" class. 
 
   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I tried looking at the other examples on the site, but I still get segmentation errors whenever I run the file.  I need help with the constructors in <span style="font-weight:bold">bold</span> in the &quot;List&quot; class.<br />
<br />
  <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
using std::cout;<br />
using std::endl;<br />
<br />
// forward declaration of List class, so ListElement can make <br />
// it a friend.&nbsp; NOTE: If List is a friend of ListElement, that<br />
// means that the List class has access to the private members<br />
// of the ListElement class, but no one else does (besides ListElement<br />
// itself). <br />
<br />
class List;<br />
class ListIterator;<br />
<br />
class ListElement {<br />
&nbsp;friend class List;<br />
&nbsp;friend class ListIterator;<br />
&nbsp;public:<br />
&nbsp;ListElement(): next(this), prev(this), isHeader(true) {}<br />
&nbsp;ListElement(int i): item(i), isHeader(false) {}<br />
&nbsp;~ListElement() {}&nbsp; // default destructor<br />
&nbsp;private:<br />
&nbsp; int item;<br />
&nbsp; ListElement *next;&nbsp; &nbsp; <br />
&nbsp; ListElement *prev;&nbsp; &nbsp; <br />
&nbsp; bool isHeader;<br />
};<br />
<br />
class ListIterator {<br />
&nbsp;friend class List;<br />
&nbsp;public:<br />
&nbsp; ListIterator() : currentPtr(NULL) { }<br />
&nbsp; ListIterator operator++(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;currentPtr-&gt;prev=this-&gt;currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;currentPtr-&gt;next=this-&gt;currentPtr-&gt;next-&gt;next;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  return *this;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; // advance iterator to the next list node; return value is iterator *after* advancing&nbsp; <br />
&nbsp; ListIterator operator--(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;currentPtr-&gt;next=this-&gt;currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;currentPtr-&gt;prev=this-&gt;currentPtr-&gt;prev-&gt;prev;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  return *this;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; // advance iterator to the previous list node; return value is iterator *after* advancing<br />
&nbsp; ListIterator operator++(int){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this-&gt;currentPtr-&gt;prev=this-&gt;currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;currentPtr-&gt;next=this-&gt;currentPtr-&gt;next-&gt;next;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  return *this;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; // advance iterator to the next list node; return value is iterator *before* advancing<br />
&nbsp; ListIterator operator--(int){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;currentPtr-&gt;next=this-&gt;currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;currentPtr-&gt;prev=this-&gt;currentPtr-&gt;prev-&gt;prev;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  return *this;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; // advance iterator to the previous list node; return value is iterator *before* advancing<br />
&nbsp; int operator*(){<br />
&nbsp; &nbsp; &nbsp;  if(currentPtr-&gt;isHeader){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;error\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit(1); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return currentPtr-&gt;item;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; } // return contents pointed to by iterator; print &quot;error\n&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // and terminate program if iterator refers to header node<br />
&nbsp;private:<br />
&nbsp; ListElement *currentPtr;<br />
};<br />
<br />
class List {<br />
&nbsp; public:<br />
&nbsp; &nbsp; List(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  listSize=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp;  // creates an empty list<br />
&nbsp; &nbsp; ~List(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; ListIterator *nodePtr, *nextNodePtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; nodePtr-&gt;currentPtr = head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (nodePtr-&gt;currentPtr != NULL)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; nextNodePtr-&gt;currentPtr = nodePtr-&gt;currentPtr-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; delete nodePtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; nodePtr = nextNodePtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; // *must* deallocate the entire list<br />
&nbsp; &nbsp; <span style="font-weight:bold">List(const List &amp;L){<br />
&nbsp; &nbsp; &nbsp;  ListIterator lTemp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int value;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  lTemp.currentPtr=L.head;<br />
&nbsp; &nbsp; &nbsp;  while(lTemp.currentPtr-&gt;next!=L.head){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  lTemp.currentPtr=lTemp.currentPtr-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ListElement *temp= new ListElement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp=lTemp.currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;head-&gt;next=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this-&gt;head-&gt;prev=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;next=this-&gt;head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;prev=this-&gt;head; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  listSize++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; // copy constructor (*must* be a deep copy)<br />
&nbsp; &nbsp; List &amp; operator =(List &amp;L){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }</span>&nbsp; // *must* (deep) copy list, and must avoid memory leak<br />
<br />
&nbsp; &nbsp; // these are functions to set and test the list iterator<br />
&nbsp; &nbsp; void SetStartList(ListIterator &amp;p) {p.currentPtr = head-&gt;next;}<br />
&nbsp; &nbsp; void SetEndList(ListIterator &amp;p) {p.currentPtr = head-&gt;prev;}<br />
&nbsp; &nbsp; bool IsUndefined(ListIterator p) {return (p.currentPtr == head);}<br />
&nbsp; &nbsp; bool AtEndList(ListIterator p) {return (p.currentPtr == head);}<br />
&nbsp; &nbsp; bool AtStartList(ListIterator p) {return (p.currentPtr == head);}<br />
&nbsp; &nbsp; bool AtFirstNode(ListIterator p) {return (p.currentPtr == head-&gt;next);}<br />
&nbsp; &nbsp; bool AtLastNode(ListIterator p) {return (p.currentPtr == head-&gt;prev);}<br />
&nbsp; &nbsp; // Insert integer at the beginning of the list&nbsp; <br />
&nbsp; &nbsp; void Prepend(int it){<br />
&nbsp; &nbsp; &nbsp; &nbsp;  ListIterator p;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr=this-&gt;head;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  ListElement *temp= new ListElement();&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;item=it;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(this-&gt;IsEmpty()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this-&gt;head-&gt;next=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this-&gt;head-&gt;prev=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;next=this-&gt;head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;prev=this-&gt;head;&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;prev=p.currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;next=p.currentPtr-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;next-&gt;prev=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;next=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  listSize++;<br />
}<br />
&nbsp; &nbsp; // Insert integer at the end of the list<br />
&nbsp; &nbsp; void Append(int it){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ListIterator p;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr=this-&gt;head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ListElement *temp= new ListElement();&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;item=it;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(this-&gt;IsEmpty()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this-&gt;head-&gt;next=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this-&gt;head-&gt;prev=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;next=this-&gt;head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;prev=this-&gt;head;&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{ <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;next=p.currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;prev=p.currentPtr-&gt;prev;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;prev-&gt;next=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;prev=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  listSize++;<br />
}<br />
&nbsp; &nbsp; // Remove first integer from list, return through first parameter.<br />
&nbsp; &nbsp; // Success is set to true if original list is nonempty, false if empty<br />
&nbsp; &nbsp; void Pop(int &amp;it, bool &amp;success){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(IsEmpty()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  success=false;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  success=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ListElement *temp= new ListElement(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp=this-&gt;head-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  it=temp-&gt;item;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;next-&gt;prev=this-&gt;head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;head-&gt;next=temp-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;prev=NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;next=NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; listSize--;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; <br />
&nbsp; &nbsp; // Remove last integer from list, return through first parameter.<br />
&nbsp; &nbsp; // Success is set to true if original list is nonempty, false if empty<br />
&nbsp; &nbsp; void Pull(int &amp;it, bool &amp;success){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(IsEmpty()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  success=false;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  success=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ListElement *temp= new ListElement(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp=this-&gt;head-&gt;prev;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  it=temp-&gt;item;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;prev-&gt;next=this-&gt;head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;head-&gt;prev=temp-&gt;prev;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;prev=NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;next=NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; listSize--;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; // Get first integer on list, return through first parameter<br />
&nbsp; &nbsp; // Success is set to true if original list is nonempty, false if empty<br />
&nbsp; &nbsp; void First(int &amp;it, bool &amp;success){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(IsEmpty()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  success=false;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  else{&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  success=true;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ListElement *temp= new ListElement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp=head-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  it=temp-&gt;item;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
}<br />
&nbsp; &nbsp; // Get last integer on list, return through first parameter<br />
&nbsp; &nbsp; // Success is set to true if original list is nonempty, false if empty<br />
&nbsp; &nbsp; void Last(int &amp;it, bool &amp;success){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(IsEmpty()){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  success=false;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  else{&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  success=true;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ListElement *temp= new ListElement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp=head-&gt;prev;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  it=temp-&gt;item;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
}<br />
&nbsp; &nbsp; // insert integer before list element referred to by p<br />
&nbsp; &nbsp; void InsertBefore(int it, ListIterator p){ //may need to check if 'p' is NULL<br />
&nbsp; &nbsp; &nbsp; &nbsp;  ListElement *temp= new ListElement();&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;item=it;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if(p.currentPtr-&gt;prev==head){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;prev=head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; head-&gt;next=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;next=p.currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;prev=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  else{&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;next=p.currentPtr-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr-&gt;next-&gt;prev=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;prev=p.currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr-&gt;next=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  listSize++;<br />
}<br />
&nbsp; &nbsp; // insert integer after list element referred to by p<br />
&nbsp; &nbsp; void InsertAfter(int it, ListIterator p){ //may need to check if 'p' is NULL<br />
&nbsp; &nbsp; &nbsp; &nbsp;  ListElement *temp= new ListElement();&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  temp-&gt;item=it;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if(p.currentPtr-&gt;next==head){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;next=head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; head-&gt;prev=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;prev=p.currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;next=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  else{&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;next-&gt;prev=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;next=p.currentPtr-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;next=temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp-&gt;prev=p.currentPtr;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  listSize++;<br />
}<br />
&nbsp; &nbsp; // delete list element referred to by p; print &quot;error\n&quot;<br />
&nbsp; &nbsp; // and exit if p refers to the header node<br />
&nbsp; &nbsp; // p is undefined after this function<br />
&nbsp; &nbsp; void Delete(ListIterator p){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(p.currentPtr==head){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;error\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit(1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(p.currentPtr-&gt;prev==head){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr-&gt;next-&gt;prev=head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  head-&gt;next=p.currentPtr-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr-&gt;next=NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr-&gt;prev=NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (p.currentPtr-&gt;next==head){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr-&gt;prev-&gt;next=head;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  head-&gt;prev=p.currentPtr-&gt;prev;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr-&gt;prev=NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr-&gt;next=NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;prev-&gt;next=p.currentPtr-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;next-&gt;prev=p.currentPtr-&gt;prev;<br />
&nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;next=NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; p.currentPtr-&gt;prev=NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; listSize--;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; // apply function &quot;func&quot; to each element on the list<br />
&nbsp; &nbsp; void MapFunction(void (*func)(int &amp;)){<br />
&nbsp; &nbsp; &nbsp; &nbsp;  ListIterator p;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  this-&gt;AtFirstNode(p);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for(int i=0;i&lt;listSize;i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  func(p.currentPtr-&gt;item);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr=p.currentPtr-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
}&nbsp; &nbsp;  <br />
&nbsp; &nbsp; // returns true if list empty, false otherwise<br />
&nbsp; &nbsp; bool IsEmpty(){<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if(listSize==0){<br />
&nbsp; &nbsp; &nbsp; &nbsp;  return true;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  return false;<br />
}<br />
&nbsp; &nbsp; int GetSize() {return listSize;}<br />
<br />
&nbsp; &nbsp; // must print out list elements, one per line<br />
&nbsp; &nbsp; void Print(){<br />
&nbsp; &nbsp; &nbsp; &nbsp;  ListIterator p;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr=this-&gt;head-&gt;next;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  for(int i=0;i&lt;listSize;i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; p.currentPtr-&gt;item &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  p.currentPtr=p.currentPtr-&gt;next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
}<br />
&nbsp; private:<br />
&nbsp; &nbsp; ListElement *head;<br />
&nbsp; &nbsp; int listSize;<br />
};</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>.:Pudge:.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236664.html</guid>
		</item>
		<item>
			<title>connecting with mysqli</title>
			<link>http://www.daniweb.com/forums/thread236663.html</link>
			<pubDate>Fri, 06 Nov 2009 23:31:59 GMT</pubDate>
			<description><![CDATA[This script works with require_once and produces warnings for line 6 when I try to use $mysqli = new... (which I've commented out). Please help me with this script: 
 
[codebox]<?php 
 
require_once "connect_to_mysql.php"; 
 
//$mysqli = new mysqli("localhost","user","pw","db"); 
 
$result =...]]></description>
			<content:encoded><![CDATA[<div>This script works with require_once and produces warnings for line 6 when I try to use $mysqli = new... (which I've commented out). Please help me with this script:<br />
<br />
[codebox]&lt;?php<br />
<br />
require_once &quot;connect_to_mysql.php&quot;;<br />
<br />
//$mysqli = new mysqli(&quot;localhost&quot;,&quot;user&quot;,&quot;pw&quot;,&quot;db&quot;);<br />
<br />
$result = mysql_query(&quot;SELECT * FROM example&quot;)<br />
<br />
or die(mysql_error());<br />
<br />
echo &quot;&lt;table border='1'&gt;&quot;;<br />
<br />
echo &quot;&lt;tr&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Age&lt;/th&gt; &lt;/tr&gt;&quot;;<br />
<br />
while($row = mysql_fetch_array( $result )) {<br />
<br />
echo &quot;&lt;tr&gt;&lt;td&gt;&quot;;<br />
<br />
echo $row['name'];<br />
<br />
echo &quot;&lt;/td&gt;&lt;td&gt;&quot;;<br />
<br />
echo $row['age'];<br />
<br />
echo &quot;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />
<br />
}<br />
<br />
echo &quot;&lt;/table&gt;&quot;;<br />
<br />
//mysqli_close($mysqli);<br />
<br />
?&gt; [/codebox]<br />
<br />
Thank-you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>niche1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236663.html</guid>
		</item>
		<item>
			<title>Unable to expand window</title>
			<link>http://www.daniweb.com/forums/thread236660.html</link>
			<pubDate>Fri, 06 Nov 2009 23:22:41 GMT</pubDate>
			<description>I have a GUI window with a JFrame. On this JFrame, I have a JPanel that completely covers the JFrame. I then have another JPanel within this first JPanel that contains a text box and 3 buttons.  Within an event handler, I want to expand the JFrame and 2 JPanels by a height of 20 px. I then want to ...</description>
			<content:encoded><![CDATA[<div>I have a GUI window with a JFrame. On this JFrame, I have a JPanel that completely covers the JFrame. I then have another JPanel within this first JPanel that contains a text box and 3 buttons.  Within an event handler, I want to expand the JFrame and 2 JPanels by a height of 20 px. I then want to  move down the text box and 3 buttons, 20 px.<br />
<br />
I can expand the JFrame and the first JPanel with the following code snip. But, it doesn't work on the second panel nor does it work to move the button  down.<br />
<br />
Appreciate your help. Thanks..<br />
<br />
 <pre style="margin:20px; line-height:13px">// Make room for an additional text box<br />
&nbsp; &nbsp; &nbsp; &nbsp; int heightInc = 20;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Dimension frameSize = new Dimension();<br />
&nbsp; &nbsp; &nbsp; &nbsp; Rectangle rectangle = new Rectangle();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; Adjust JFrame size (This Works)<br />
&nbsp; &nbsp; &nbsp; &nbsp; frameSize = this.getSize();<br />
&nbsp; &nbsp; &nbsp; &nbsp; frameSize.height += heightInc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.setSize(frameSize);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; Adjust the bounding JPanel size (This Works)<br />
&nbsp; &nbsp; &nbsp; &nbsp; frameSize = jplFrame.getSize();<br />
&nbsp; &nbsp; &nbsp; &nbsp; frameSize.height += heightInc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; jplFrame.setPreferredSize(frameSize);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; Adjust the AddSubtitle JPanel size&nbsp; (This doesn't work)<br />
&nbsp; &nbsp; &nbsp; &nbsp; frameSize = jplAddSubtitle.getSize();<br />
&nbsp; &nbsp; &nbsp; &nbsp; frameSize.height += heightInc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; jplAddSubtitle.setPreferredSize(frameSize);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; Move the &quot;Add Another&quot; button down (This doesn't work)<br />
&nbsp; &nbsp; &nbsp; &nbsp; rectangle = btnAddAnother.getBounds();<br />
&nbsp; &nbsp; &nbsp; &nbsp; rectangle.y += heightInc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; btnAddAnother.setBounds(rectangle);</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>bruceaj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236660.html</guid>
		</item>
		<item>
			<title><![CDATA[help with 'for' function to construct a diamond!]]></title>
			<link>http://www.daniweb.com/forums/thread236659.html</link>
			<pubDate>Fri, 06 Nov 2009 23:19:50 GMT</pubDate>
			<description><![CDATA[Hey guys, 
I justs started this code to make a diamond with stars (*), but I get confused how to print the spaces that I need, I don't know if you understant what I'm trying to say.  It is something like this: 
 
Prompt the user to enter (odd) height (of a diamond) and outputs the following: 
...]]></description>
			<content:encoded><![CDATA[<div>Hey guys,<br />
I justs started this code to make a diamond with stars (*), but I get confused how to print the spaces that I need, I don't know if you understant what I'm trying to say.  It is something like this:<br />
<br />
Prompt the user to enter (odd) height (of a diamond) and outputs the following:<br />
<br />
Example height = 7<br />
<br />
Output:<br />
<br />
<span style="color:green">****</span><span style="font-weight:bold">*</span><br />
<span style="color:green">***</span><span style="font-weight:bold">***</span><br />
<span style="color:green">**</span><span style="font-weight:bold">*****</span><br />
<span style="color:green">*</span><span style="font-weight:bold">*******</span><br />
<span style="color:green">**</span><span style="font-weight:bold">*****</span> <br />
<span style="color:green">***</span><span style="font-weight:bold">***</span><br />
<span style="color:green">****</span><span style="font-weight:bold">*</span><br />
<br />
and this is the code I'm working on, it is very basic but I'm struggling finding the mistakes and that is just the top part of the diamond:<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
#include &lt;string&gt;<br />
<br />
using namespace std;<br />
<br />
<br />
int main(){<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; int h; //height<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;Enter any positive number: &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin&gt;&gt;h;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; int str = 1; //stars<br />
&nbsp; &nbsp; &nbsp; &nbsp; int spc = h/2; //space<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; for(int k=0; k&lt;str; k++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;*&quot;&lt;&lt;endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int i=0; i&lt;spc; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot; &quot;&lt;&lt;endl;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; str = h/2+1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; spc--;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
system(&quot;PAUSE&quot;);<br />
return 0;<br />
<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>sebassn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236659.html</guid>
		</item>
		<item>
			<title>hELP! Blue Screen Ntfs.sys</title>
			<link>http://www.daniweb.com/forums/thread236658.html</link>
			<pubDate>Fri, 06 Nov 2009 23:17:18 GMT</pubDate>
			<description><![CDATA[hI 
 
I'm getting a persistent Blue Screen of Death which seems to kick in after the computer has been left idle for a while and the CPU starts racing and I get a blue screen. It first happened after I was watching a film off a friend's USB stick. 
 
This is the latest I got. 
 
"Windows Shut Down...]]></description>
			<content:encoded><![CDATA[<div>hI<br />
<br />
I'm getting a persistent Blue Screen of Death which seems to kick in after the computer has been left idle for a while and the CPU starts racing and I get a blue screen. It first happened after I was watching a film off a friend's USB stick.<br />
<br />
This is the latest I got.<br />
<br />
&quot;Windows Shut Down to Prevent Damage etc etc...<br />
<br />
Ntfs.sys<br />
<br />
page fault in Non-paged area<br />
<br />
tech info<br />
<br />
STOP: 0X00000050 (0XF1000009, 0X000000000, 0XB9D6AE16, 0X000000002)<br />
<br />
Ntfs.sys - Address BD96AE16 BASE AT B9D46000, DATESTAMP 48025BE5<br />
<br />
Beginning dump of physical memory&quot;<br />
<br />
I'm runniing windows xp home edition 2002 version service pack 3<br />
<br />
Any help much appreciated<br />
<br />
Thank you <br />
<br />
Hetixo</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum10.html">Windows NT / 2000 / XP</category>
			<dc:creator>hetixo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236658.html</guid>
		</item>
		<item>
			<title>Serial State Change Monitoring</title>
			<link>http://www.daniweb.com/forums/thread236657.html</link>
			<pubDate>Fri, 06 Nov 2009 23:16:18 GMT</pubDate>
			<description>HI, 
What I am trying to do is find a program that will track incoming information through a serial port and log any state changes. If anyone has any ideas on how to solve this problem please let me know.</description>
			<content:encoded><![CDATA[<div>HI,<br />
What I am trying to do is find a program that will track incoming information through a serial port and log any state changes. If anyone has any ideas on how to solve this problem please let me know.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>tyesbooks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236657.html</guid>
		</item>
		<item>
			<title>Message Queue Error</title>
			<link>http://www.daniweb.com/forums/thread236656.html</link>
			<pubDate>Fri, 06 Nov 2009 23:12:47 GMT</pubDate>
			<description>I am new to message queues and IPC in general.  I am trying to have a process establish the queue and send a message.  Then I fork and the child will read the message.  The goal is to measure the execution time for different sized messages. 
 
The msgsnd is returning a -1 and I have no idea as to...</description>
			<content:encoded><![CDATA[<div>I am new to message queues and IPC in general.  I am trying to have a process establish the queue and send a message.  Then I fork and the child will read the message.  The goal is to measure the execution time for different sized messages.<br />
<br />
The msgsnd is returning a -1 and I have no idea as to why its not sending anything.  Any help is appreciated.  Thanks in advance<br />
<br />
 <pre style="margin:20px; line-height:13px">int main() {<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //establish the character array to be passed around<br />
&nbsp; &nbsp; &nbsp; &nbsp; int msgSize = 1024;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; char charArray[msgSize];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; clock_t timeStampBegin;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; clock_t timeStampEnd;<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; key_t key = 1234; /* key to be passed to msgget() */ <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; int msqid; /* return value from msgget() */ <br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //establish the message queue and make sure that it properly established<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((msqid = msgget(key, IPC_CREAT)) == 1) {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; perror(&quot;msgget: msgget failed&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //exit(1);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (void) fprintf(stderr, &quot;msgget succeeded\n&quot;); <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //Take an initial timestamp<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; timeStampBegin = clock();<br />
&nbsp; &nbsp; &nbsp; &nbsp; //printf(&quot;\nTimeStampBegin = %d\n&quot;, timeStampBegin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; int amountSent = msgsnd(1234, &amp;charArray, msgSize, 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;%d bytes were sent&quot;, amountSent);<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(fork() == 0) {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //this is the child, this is the one that we want to recieve the info.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char recievedArray[100000];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if((size_t)msgSize == msgrcv(1234, &amp;recievedArray, msgSize, 0, 0))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;Mesage was recieved&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeStampEnd = clock();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //printf(&quot;Time for transit of size %d = %f&quot;, msgSize, (double)(timeStampEnd-timeStampBegin));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
<br />
<br />
<br />
}</pre><br />
Output<br />
 <pre style="margin:20px; line-height:13px">msgget succeeded<br />
-1 bytes were sent<br />
-1 bytes were sent</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>chunalt787</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236656.html</guid>
		</item>
		<item>
			<title>Password Generator</title>
			<link>http://www.daniweb.com/forums/thread236655.html</link>
			<pubDate>Fri, 06 Nov 2009 23:03:19 GMT</pubDate>
			<description><![CDATA[I know Remembering secure passwords is difficult. So I made this. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags"...]]></description>
			<content:encoded><![CDATA[<div>I know Remembering secure passwords is difficult. So I made this.<br />
 <pre style="margin:20px; line-height:13px">import random, os<br />
a= ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','1','2','3','4','5','6','7','8','9','{',':','&gt;','?','}','|','!','@','#','$','%','^','&amp;','*','(',')','-','+']<br />
<br />
z = int(raw_input(&quot;How many words in your password?: &quot;))<br />
os.system(&quot;clear&quot;)<br />
List = []<br />
for x in xrange(z):<br />
&nbsp; &nbsp; &nbsp; &nbsp; List.append(random.choice(a))<br />
print &quot;&quot;.join(List) <br />
print &quot;1) Yes&quot;<br />
print &quot;2) No&quot;<br />
b = int(raw_input(&quot;Would you like to save this password to a text file?: &quot;))<br />
if b == 1:<br />
&nbsp; &nbsp; &nbsp; &nbsp; c = raw_input(&quot;What is this password for?: &quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; x = open(&quot;%s.txt&quot; % c, &quot;w&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; y = &quot;&quot;.join(List)<br />
&nbsp; &nbsp; &nbsp; &nbsp; x.write(y)<br />
&nbsp; &nbsp; &nbsp; &nbsp; x.close<br />
&nbsp; &nbsp; &nbsp; &nbsp; x = open(&quot;%s.txt&quot; % c, &quot;r&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; x.read<br />
&nbsp; &nbsp; &nbsp; &nbsp; print &quot;Saved!&quot;<br />
elif b == 2:<br />
&nbsp; &nbsp; &nbsp; &nbsp; raw_input(&quot;Press Enter To Continue&quot;)</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>nevets04</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236655.html</guid>
		</item>
		<item>
			<title>int 21h/ah=09h string output</title>
			<link>http://www.daniweb.com/forums/thread236650.html</link>
			<pubDate>Fri, 06 Nov 2009 22:50:10 GMT</pubDate>
			<description><![CDATA[im using fasm (flat assembler 1.68), and im trying to output a string with int21h/ah=09h 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with...]]></description>
			<content:encoded><![CDATA[<div>im using fasm (flat assembler 1.68), and im trying to output a string with int21h/ah=09h<br />
<br />
 <pre style="margin:20px; line-height:13px">jmp main<br />
msg db &quot;hello world$&quot;<br />
main:<br />
mov dx, msg<br />
mov ah, 09<br />
int 21h</pre><br />
this code outputs &quot;hello world&quot;, but it outputs some control characters before it ([SOME WEIRD CONTROL CHARACTERS]hello world)<br />
<br />
so how can i fix this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum125.html">Assembly</category>
			<dc:creator>brando|away</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236650.html</guid>
		</item>
		<item>
			<title>Incompatible types found (HELP!)</title>
			<link>http://www.daniweb.com/forums/thread236649.html</link>
			<pubDate>Fri, 06 Nov 2009 21:52:29 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>(<a href="#"...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">/*<br />
&nbsp;* CensusCalculator.java<br />
&nbsp;* <br />
&nbsp;* Computer Science 111, Boston University<br />
&nbsp;*<br />
&nbsp;* This program performs various computations on census data stored in a text file.<br />
&nbsp;* It uses arrays in several ways, including for storage of the results of<br />
&nbsp;* the computations.<br />
&nbsp;* <br />
&nbsp;* modified by: [Daniel Sutton (dan13@bu.edu)]<br />
&nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; date: 11/4/09<br />
&nbsp;*/<br />
<br />
import java.util.*;<br />
import java.io.*;<br />
<br />
<br />
public class CensusCalculator {<br />
&nbsp;  <br />
&nbsp;  public static final String DATA_FILE_NAME = &quot;census.txt&quot;;<br />
&nbsp;  <br />
&nbsp;  /* The number of population counts for each county.<br />
&nbsp; &nbsp; * Changing the value of this constant should be all that is needed<br />
&nbsp; &nbsp; * to allow your program to handle a data file with a different<br />
&nbsp; &nbsp; * number of counts.<br />
&nbsp; &nbsp; */<br />
&nbsp;  public static final int NUM_POPULATION_COUNTS = 2;&nbsp; &nbsp; <br />
&nbsp;  <br />
&nbsp;  /* A class-constant array of Strings containing the names of the states<br />
&nbsp; &nbsp; * in the data file.<br />
&nbsp; &nbsp; * <br />
&nbsp; &nbsp; * The index of a given state name in the array is the<br />
&nbsp; &nbsp; * same as the numeric code of the state in the data file.<br />
&nbsp; &nbsp; * For example, Alaska has a state code of 1 in the data file, <br />
&nbsp; &nbsp; * so its name is at position 1 in this array.<br />
&nbsp; &nbsp; */<br />
&nbsp;  public static final String[] STATE_NAMES = {&quot;Alabama&quot;, &quot;Alaska&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;Arizona&quot;, &quot;Arkansas&quot;, &quot;California&quot;, &quot;Colorado&quot;, &quot;Connecticut&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;Delaware&quot;, &quot;Florida&quot;, &quot;Georgia&quot;, &quot;Hawaii&quot;, &quot;Idaho&quot;, &quot;Illinois&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;Indiana&quot;, &quot;Iowa&quot;, &quot;Kansas&quot;, &quot;Kentucky&quot;, &quot;Louisiana&quot;, &quot;Maine&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;Maryland&quot;, &quot;Massachusetts&quot;, &quot;Michigan&quot;, &quot;Minnesota&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;Mississippi&quot;, &quot;Missouri&quot;, &quot;Montana&quot;, &quot;Nebraska&quot;, &quot;Nevada&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;New Hampshire&quot;, &quot;New Jersey&quot;, &quot;New Mexico&quot;, &quot;New York&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;North Carolina&quot;, &quot;North Dakota&quot;, &quot;Ohio&quot;, &quot;Oklahoma&quot;, &quot;Oregon&quot;, <br />
&nbsp; &nbsp; &nbsp; &quot;Pennsylvania&quot;, &quot;Rhode Island&quot;, &quot;South Carolina&quot;, &quot;South Dakota&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;Tennessee&quot;, &quot;Texas&quot;, &quot;Utah&quot;, &quot;Vermont&quot;, &quot;Virginia&quot;, &quot;Washington&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;West Virginia&quot;, &quot;Wisconsin&quot;, &quot;Wyoming&quot;, &quot;District of Columbia&quot;};<br />
&nbsp;  <br />
&nbsp;  /* <br />
&nbsp; &nbsp; * A class-constant array of Strings containing the names of <br />
&nbsp; &nbsp; * the nine divisions used by the Census Bureau.<br />
&nbsp; &nbsp; * <br />
&nbsp; &nbsp; * The Census Bureau also numbers the divisions, and we have<br />
&nbsp; &nbsp; * used a division's number as its index in this array.<br />
&nbsp; &nbsp; * For example, New England is Division 1, so its name is at<br />
&nbsp; &nbsp; * position 1 in this array.<br />
&nbsp; &nbsp; * <br />
&nbsp; &nbsp; * Note that there is no division 0, so we have put the name<br />
&nbsp; &nbsp; * &quot;none&quot; in position 0 of the array.<br />
&nbsp; &nbsp; */<br />
&nbsp;  public static final String[] DIVISION_NAMES = {<br />
&nbsp; &nbsp; &nbsp; &quot;none&quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;New England (CT,ME,MA,NH,RI,VT)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;, <br />
&nbsp; &nbsp; &nbsp; &quot;Mid-Atlantic (NJ,NY,PA)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;, <br />
&nbsp; &nbsp; &nbsp; &quot;East North Central (IL,IN,MI,OH,WI)&nbsp; &nbsp; &nbsp; &nbsp; &quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;West North Central (IA,KS,MN,MO,NE,ND,SD)&nbsp; &quot;, <br />
&nbsp; &nbsp; &nbsp; &quot;South Atlantic (DE,FL,GA,MD,NC,SC,VA,WV,DC)&quot;, <br />
&nbsp; &nbsp; &nbsp; &quot;East South Central (AL,KY,MS,TN)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;,<br />
&nbsp; &nbsp; &nbsp; &quot;West South Central (AR,LA,OK,TX)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;, <br />
&nbsp; &nbsp; &nbsp; &quot;Mountain (AZ,CO,ID,MT,NV,NM,UT,WY)&nbsp; &nbsp; &nbsp; &nbsp;  &quot;, <br />
&nbsp; &nbsp; &nbsp; &quot;Pacific (AK,CA,HI,OR,WA)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;};&nbsp; <br />
&nbsp;  <br />
&nbsp;  /*<br />
&nbsp; &nbsp; * A class-constant array of integers that allows you to<br />
&nbsp; &nbsp; * determine the number of the division to which each<br />
&nbsp; &nbsp; * state belongs.<br />
&nbsp; &nbsp; * <br />
&nbsp; &nbsp; * For example, Alaska has a state code of 1.<br />
&nbsp; &nbsp; * Element 1 of this array is the integer 9, which indicates<br />
&nbsp; &nbsp; * that Alaska is in division 9 (Pacific).<br />
&nbsp; &nbsp; */<br />
&nbsp;  public static final int[] DIVISION_FOR_STATE = {6, 9,<br />
&nbsp; &nbsp; &nbsp; 8, 7, 9, 8, 1, 5, 5, 5, 9, 8, 3, 3, 4, 4, 6, 7, 1, 5, <br />
&nbsp; &nbsp; &nbsp; 1, 3, 4, 6, 4, 8, 4, 8, 1, 2, 8, 2, 5, 4, 3, 7, 9, 2,<br />
&nbsp; &nbsp; &nbsp; 1, 5, 4, 6, 7, 8, 1, 5, 9, 5, 3, 8, 5};<br />
&nbsp;  <br />
&nbsp;  /*<br />
&nbsp; &nbsp; * printOneDivision - prints the counts for a single division with the<br />
&nbsp; &nbsp; * specified name, old population (oldPop), and new population (newPop).<br />
&nbsp; &nbsp; * It computes the percent change for you. It displays the results so that<br />
&nbsp; &nbsp; * the full list of division results will be lined up in columns, and<br />
&nbsp; &nbsp; * it adds commas and rounds the percents to one place after the decimal.<br />
&nbsp; &nbsp; */<br />
&nbsp;  <br />
&nbsp;  public static void main(String[] args) throws FileNotFoundException {<br />
&nbsp; &nbsp; &nbsp; Scanner console = new Scanner(System.in);<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; System.out.println(&quot;MENU: &quot;);<br />
&nbsp; &nbsp; &nbsp; System.out.println(&quot;\t1. compute state totals&quot;);<br />
&nbsp; &nbsp; &nbsp; System.out.println(&quot;\t2. compute division totals&quot;);<br />
&nbsp; &nbsp; &nbsp; System.out.println(&quot;\t3. quit&quot;);<br />
&nbsp; &nbsp; &nbsp; System.out.print(&quot;Enter the number of your choice: &quot;);<br />
&nbsp; &nbsp; &nbsp; int choice = console.nextInt();<br />
&nbsp; &nbsp; &nbsp; console.nextLine();<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; if (choice == 1) {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  System.out.print(&quot;state name: &quot;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  String stateName = console.nextLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  getStateCode(stateName);<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; if (choice == 2) {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; if (choice == 3) {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  boolean end = true;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; if (choice &lt; 1 || choice &gt; 3) {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  System.out.println(&quot;Not a valid choice.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  System.out.print(&quot;Enter the number of your choice: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  choice = console.nextInt();<br />
&nbsp; &nbsp; &nbsp; &nbsp;  console.nextLine();<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp;  }<br />
&nbsp;  public static void printOneDivision(String name, int oldPop, int newPop) {<br />
&nbsp; &nbsp; &nbsp; double percChange = (newPop - oldPop) * 100.0 / oldPop;<br />
&nbsp; &nbsp; &nbsp; System.out.printf(&quot;%43s\t&nbsp; %,d\t&nbsp; %,d\t&nbsp; %4.1f%%\n&quot;, name, oldPop, newPop, percChange);<br />
&nbsp;  }<br />
&nbsp;  <br />
&nbsp;  /*<br />
&nbsp; &nbsp; * getStateCode - finds and returns the state code for<br />
&nbsp; &nbsp; * the specified state name, and -1 if the specified<br />
&nbsp; &nbsp; * state name is not found.<br />
&nbsp; &nbsp; * <br />
&nbsp; &nbsp; * You will complete this method so that it searches <br />
&nbsp; &nbsp; * through the STATE_NAMES array and returns the index<br />
&nbsp; &nbsp; * of stateName in that array, or -1 is stateName<br />
&nbsp; &nbsp; * is not found in that array.<br />
&nbsp; &nbsp; */<br />
&nbsp;  <br />
&nbsp;  public static int getStateCode(String stateName) {<br />
&nbsp; &nbsp; &nbsp; int stateCode = 0;<br />
&nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; STATE_NAMES.length; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if (stateName.equals(STATE_NAMES[i])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i = stateCode;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; return stateCode;<br />
&nbsp;  }<br />
&nbsp;  <br />
&nbsp;  public static int getStateInfo (int[] stateCode, int[] oldPop, int[] newPop) <br />
&nbsp; &nbsp; &nbsp; throws FileNotFoundException {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  Scanner input = new Scanner(new File(DATA_FILE_NAME));&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  input.useDelimiter(&quot;\t|\r\n|\n|\r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  boolean found = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int count=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  while (input.hasNextLine()) {<br />
<span style="color:Red">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  stateCode = input.nextInt();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  oldPop = input.nextInt();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  newPop = input.nextInt();</span>&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:Red"> return stateCode;</span><br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;  <br />
<br />
&nbsp;  }</pre><br />
When I try to compile this code (I am not finished with it yet) I get 4 error messages that all say incompatible types<br />
found   : int<br />
required: int[]<br />
<br />
directed toward the highlighted lines in the code. I feel like i've tried everything, but nothing is working. Any help would be greatly appreciated!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>DanieL34749</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236649.html</guid>
		</item>
		<item>
			<title>Using Javascript in seperate file.</title>
			<link>http://www.daniweb.com/forums/thread236646.html</link>
			<pubDate>Fri, 06 Nov 2009 21:35:49 GMT</pubDate>
			<description><![CDATA[I'm trying to do something very simple...just access a JavaScript function that exists in a separate file but I can't seem to get it to work.  
 
 
<form id="form1" runat="server"> 
    <script type="text/javascript" src="styleScript.js"></script>    
    <div id="container" class="container"> 
  ...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to do something very simple...just access a JavaScript function that exists in a separate file but I can't seem to get it to work. <br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;<br />
&nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot; src=&quot;styleScript.js&quot;&gt;&lt;/script&gt;&nbsp;  <br />
&nbsp; &nbsp; &lt;div id=&quot;container&quot; class=&quot;container&quot;&gt;<br />
&nbsp; <br />
&nbsp;&lt;button id=&quot;button1&quot; onmouseover=&quot;mouseOver('button1')&quot; style=&quot;margin-left:900px;width:200px;background-color:Transparent;height:100px;margin-top:120px;&quot;&gt;About Me&lt;/button&gt;<br />
<br />
&nbsp; &nbsp; &nbsp;  &lt;/div&gt;<br />
&nbsp; &nbsp;  &lt;/div&gt;<br />
&nbsp; &nbsp;  &lt;/div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;/form&gt;</pre><br />
My styleScript.js class:<br />
<br />
 <pre style="margin:20px; line-height:13px">function mouseOver(var b)<br />
{<br />
&nbsp; &nbsp; //do stuff<br />
}</pre><br />
Is there anything I need to do to have my html access this javascript function that exists in a separate file??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum18.html">ASP.NET</category>
			<dc:creator>RunTimeError</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236646.html</guid>
		</item>
		<item>
			<title>d.s. malik</title>
			<link>http://www.daniweb.com/forums/thread236645.html</link>
			<pubDate>Fri, 06 Nov 2009 21:34:13 GMT</pubDate>
			<description>salam, hope u people ll fine , any body have solved excercises of CHAP 2, CHAP 3,CHAP4 AND CHAP 5 BY D.S AMLIK book i need these urgent so kindly help me  my exams r very near n i w ant to prepare them</description>
			<content:encoded><![CDATA[<div>salam, hope u people ll fine , any body have solved excercises of CHAP 2, CHAP 3,CHAP4 AND CHAP 5 BY D.S AMLIK book i need these urgent so kindly help me  my exams r very near n i w ant to prepare them</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>IT seeker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236645.html</guid>
		</item>
		<item>
			<title>Error - Going from Java to C++</title>
			<link>http://www.daniweb.com/forums/thread236644.html</link>
			<pubDate>Fri, 06 Nov 2009 21:30:13 GMT</pubDate>
			<description><![CDATA[I have created a linked list in Java, and now I am trying to convert my program to C++.  
When I try to compile, it gives me the error saying that 'next' uses 'CarNode' which is being defined. I am wondering if there is any way around this? 
 
Java: 
  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>I have created a linked list in Java, and now I am trying to convert my program to C++. <br />
When I try to compile, it gives me the error saying that 'next' uses 'CarNode' which is being defined. I am wondering if there is any way around this?<br />
<br />
Java:<br />
 <pre style="margin:20px; line-height:13px">public class CarNode {<br />
&nbsp; public Car carObject;<br />
&nbsp; public CarNode next;<br />
<br />
&nbsp; public CarNode (Car newCar, CarNode newNext) {<br />
&nbsp; &nbsp; carObject = newCar;<br />
&nbsp; &nbsp; next = newNext;<br />
&nbsp; }<br />
}</pre><br />
<br />
C++:<br />
 <pre style="margin:20px; line-height:13px">class CarNode: public Car {<br />
&nbsp; public:<br />
&nbsp; &nbsp; Car carObject;<br />
&nbsp; &nbsp; CarNode next;<br />
<br />
&nbsp; &nbsp; CarNode(Car newCar, CarNode newNext) {<br />
&nbsp; &nbsp; &nbsp; carObject = newCar;<br />
&nbsp; &nbsp; &nbsp; next = newNext;<br />
&nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>icu222much</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236644.html</guid>
		</item>
		<item>
			<title>imLinks.com and other domains up for auction</title>
			<link>http://www.daniweb.com/forums/thread236642.html</link>
			<pubDate>Fri, 06 Nov 2009 21:23:57 GMT</pubDate>
			<description><![CDATA[imLinks.com is up for auction at SEDO (http://www.sedo.com/search/details.php4?domain=imlinks.com&tracked=&partnerid=&language=us). 
 
A great domain name for a dating site, social network, links service, directory, links portal, instant messaging or Isle of Man domains (.IM). SEDO's suggested...]]></description>
			<content:encoded><![CDATA[<div>imLinks.com is up for auction at <a rel="nofollow" class="t" href="http://www.sedo.com/search/details.php4?domain=imlinks.com&amp;tracked=&amp;partnerid=&amp;language=us" target="_blank">SEDO</a>.<br />
<br />
A great domain name for a dating site, social network, links service, directory, links portal, instant messaging or Isle of Man domains (.IM). SEDO's suggested price: over $2600. Make an offer now!<br />
<br />
Check out these other high-quality domains for sale:<br />
<br />
SantaNews.net<br />
HistoryDot.com<br />
ellTeacher.com<br />
imPets.com<br />
Read-On.com<br />
SinterKlaus.com<br />
FancyHalloween.com<br />
JackPumpkin.com<br />
HalloweenBatman.com<br />
MakeMasks.com<br />
BookLanding.com<br />
GhostGas.com<br />
imTEACHERS.com<br />
WhimsicalIllustrator.com<br />
WhimisicalIllustration.com</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum116.html">Domain Names for Sale</category>
			<dc:creator>imlinks</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236642.html</guid>
		</item>
		<item>
			<title>I really need help,please</title>
			<link>http://www.daniweb.com/forums/thread236641.html</link>
			<pubDate>Fri, 06 Nov 2009 21:18:38 GMT</pubDate>
			<description><![CDATA[heey all ,,  
I'v a question about the pow ,, but when I run the programe it didn't work =S  
I really need help because tomorrow I shloud give it to my teacher,,  
  
     ******************************************** 
import java.lang.Math; 
public class ques3 
{ 
public static void...]]></description>
			<content:encoded><![CDATA[<div>heey all ,, <br />
I'v a question about the pow ,, but when I run the programe it didn't work =S <br />
I really need help because tomorrow I shloud give it to my teacher,, <br />
 <br />
     ********************************************<br />
import java.lang.Math;<br />
public class ques3<br />
{<br />
public static void main(String[]args)<br />
{<br />
static Scanner console =  new Scanner(System.in);<br />
float a,b,c;<br />
System.out.println(&quot;Enter a &quot;);<br />
a=console.nextFloat();<br />
System.out.println(&quot;Enter b &quot;);<br />
b=console.nextFloat();<br />
System.out.println(&quot;Enter c &quot;);<br />
c=console.nextFloat();<br />
sum=Math.Pow((double)b*b-4*a*c,0.5);</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>somewhere</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236641.html</guid>
		</item>
		<item>
			<title>Hello everyone</title>
			<link>http://www.daniweb.com/forums/thread236640.html</link>
			<pubDate>Fri, 06 Nov 2009 21:09:18 GMT</pubDate>
			<description>I just joined this forum and so i decided to say a big HELLO to you all.</description>
			<content:encoded><![CDATA[<div>I just joined this forum and so i decided to say a big HELLO to you all.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum165.html">Community Introductions</category>
			<dc:creator>edosauyi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236640.html</guid>
		</item>
		<item>
			<title>hii all</title>
			<link>http://www.daniweb.com/forums/thread236639.html</link>
			<pubDate>Fri, 06 Nov 2009 21:06:25 GMT</pubDate>
			<description>Hii all, 
 
This is Abdullah from Turkey. I study electrical and electronics engineering.  I can use C,C++,and C#, my favorite is C#. And I know a bit ASP.NET. Besides, I am interested in robotics, pic programming. I know Pic Basic and Pic Assembly, I love to use Pic Assembly more. I want to learn...</description>
			<content:encoded><![CDATA[<div>Hii all,<br />
<br />
This is Abdullah from Turkey. I study electrical and electronics engineering.  I can use C,C++,and C#, my favorite is C#. And I know a bit ASP.NET. Besides, I am interested in robotics, pic programming. I know Pic Basic and Pic Assembly, I love to use Pic Assembly more. I want to learn developing digital image processing projects, unfortunately do not know nearly anything about it :):(:'( want to learn developing simulation projects, actually I do not know much about simulation too, unfortunately. <br />
But If you are interested in simulation , you can use XNA's libraries, or DirectX.<br />
 <br />
In digital image processing, as far as I saw, generally , MATLAB is used, but I guess we cannot create executable files with MATLAB, so , and since I want to use image processing in ,maybe, robotics and differrent branches, I would rather use C#, at least I love C# more. By the way, I do not know if we can create projects with MATLAB for robotics or similar things.<br />
<br />
Take care,<br />
Abdullah</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum165.html">Community Introductions</category>
			<dc:creator>m.a.u.</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236639.html</guid>
		</item>
		<item>
			<title>C++ internals</title>
			<link>http://www.daniweb.com/forums/thread236638.html</link>
			<pubDate>Fri, 06 Nov 2009 20:51:38 GMT</pubDate>
			<description><![CDATA[I'm trying to advance my understanding of how computers and compilers work. 
 
Given the C++ program bellow with exceptions and runtime typing turned off and no optimizing that removes main or makes it into a non-standard function. 
int main() {return0;} 
Produced an disassembly with the following...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to advance my understanding of how computers and compilers work.<br />
<br />
Given the C++ program bellow with exceptions and runtime typing turned off and no optimizing that removes main or makes it into a non-standard function.<br />
 <pre style="margin:20px; line-height:13px">int main() {return0;}</pre><br />
Produced an disassembly with the following code for main:<br />
 <pre style="margin:20px; line-height:13px">pushl&nbsp; &nbsp; &nbsp; &nbsp; %ebp ; pushes the stack frame<br />
xorl&nbsp; &nbsp; &nbsp; &nbsp; %eax, %eax&nbsp; ; sets the eax register to zero<br />
movl&nbsp; &nbsp; &nbsp; &nbsp; %esp, %ebp&nbsp; ; empties the stack frame<br />
leave<br />
ret ; return with 0 in eax</pre><br />
1. What will the assembly that calls the main function look like?<br />
2. What will be on the start before this code is run?<br />
3. What will EBP (the stack frame pointer) be at the start? Garbage values?<br />
4. What is in the accumulator at the start? Garbage values again?<br />
5. What does the leave function do? I've read around for this but I can't find anything that makes much sense.<br />
6. To what address will ret jump the instruction pointer to?<br />
7. What does the assembly look like for the code that is executed the main function exits?<br />
8. Another thing that is being getting at me is: why does C++ CDECL calling convention pass argument right to left? It seems counter intuitive to me as it rewards doing right to left as the order of evaluation of the parameters which is also counter intuitive to me.<br />
<br />
Thanks in advance, any help would be much appreciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science</category>
			<dc:creator>ganbree</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236638.html</guid>
		</item>
		<item>
			<title>IE can not display the web page ..?</title>
			<link>http://www.daniweb.com/forums/thread236637.html</link>
			<pubDate>Fri, 06 Nov 2009 20:51:02 GMT</pubDate>
			<description>hello every one.. 
im beginner in asp.net 
i made a simple page and debug it 
but it gave me that IE can not display the page 
coz it is not connected with internet 
 
although im connected to internet 
and it must work on local host 
 
any solutions ..?</description>
			<content:encoded><![CDATA[<div>hello every one..<br />
im beginner in asp.net<br />
i made a simple page and debug it<br />
but it gave me that IE can not display the page<br />
coz it is not connected with internet<br />
<br />
although im connected to internet<br />
and it must work on local host<br />
<br />
any solutions ..?<br />
thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum18.html">ASP.NET</category>
			<dc:creator>dima shawahneh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236637.html</guid>
		</item>
		<item>
			<title>Please Help Me Fix My PHP Register Form</title>
			<link>http://www.daniweb.com/forums/thread236636.html</link>
			<pubDate>Fri, 06 Nov 2009 20:44:57 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div>(<a href="#"...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;?php<br />
if(isset($_POST['register']))<br />
{<br />
$username = $_POST[&quot;username&quot;];<br />
$password = $_POST[&quot;password&quot;];<br />
$email = $_POST[&quot;email&quot;];<br />
$conf_pass = $_POST[&quot;confirm&quot;];<br />
$error = false;<br />
<br />
$connect = mysql_connect(&quot;localhost&quot;, &quot;stickmi1_data&quot;, &quot;electricCompany&quot;);<br />
$database = mysql_select_db(&quot;account&quot;, $connect);<br />
<br />
$usernameCheck = mysql_query(&quot;SELECT username FROM users WHERE username = '$username'&quot;);<br />
&nbsp;<br />
// Registration Form Validation Script<br />
<br />
if(!$username || !$password || !$email || !$conf_pass)<br />
{<br />
$error = true;<br />
$errorMessage = &quot;Please fill in any missing fields before continuing!&quot;;<br />
}<br />
else if($password != $conf_pass);<br />
{<br />
$error = true;<br />
$errorMessage = &quot;Your password and confirmation password don't match!&quot;;<br />
}<br />
if($usernameCheck &gt; 0)<br />
{<br />
$error = true;<br />
$errorMessage = &quot;The requested username is already in use, try another!&quot;;<br />
}<br />
if($error == false)<br />
{<br />
$password = md5($password);<br />
mysql_query(&quot;INSERT INTO users(username, password, email) VALUES($username, $password, $email)&quot;,$connect);<br />
}<br />
}<br />
?&gt;<br />
&lt;form name=&quot;register_form&quot; method=&quot;post&quot;&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Username: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;username&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Password: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;password&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Confirm Pass: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;conf_pass&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;Email: &lt;/td&gt;<br />
&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;email&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;input type=&quot;submit&quot; name=&quot;register&quot; value=&quot;Register&quot; /&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Chosen13</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236636.html</guid>
		</item>
		<item>
			<title>how to store data into a single file</title>
			<link>http://www.daniweb.com/forums/thread236635.html</link>
			<pubDate>Fri, 06 Nov 2009 20:28:58 GMT</pubDate>
			<description>hi..i am writng a program.....i have collected a lot of information(name,hobbies etc.....) of about a hundred students in my school.......i have also stored their photographs in .jpeg format.........i am using Dev c++ and windows xp..........i want to store all this info + photos in a single...</description>
			<content:encoded><![CDATA[<div>hi..i am writng a program.....i have collected a lot of information(name,hobbies etc.....) of about a hundred students in my school.......i have also stored their photographs in .jpeg format.........i am using Dev c++ and windows xp..........i want to store all this info + photos in a single file....how do i go about it............i started programmin a few days ago......so whatever u explain...please explain it in lay mans terms..........i dont want the entire code....but parts of the code ....it wud be great if you could explain it a bit n could give sources for me study it in greater detail</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>karanmehra18</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236635.html</guid>
		</item>
		<item>
			<title>Can I have some help on storing a running total and how to exit out for each section?</title>
			<link>http://www.daniweb.com/forums/thread236633.html</link>
			<pubDate>Fri, 06 Nov 2009 20:19:15 GMT</pubDate>
			<description><![CDATA[Hello Guys, 
 
I am trying to code this assignment below but I can't seem to get the running total 
stored for each user that I have listed below(A, B, E).  Can someone guide me on how 
I can store the running total for each user so that I can have it stored when the 
user enters "Z"?  I have...]]></description>
			<content:encoded><![CDATA[<div>Hello Guys,<br />
<br />
I am trying to code this assignment below but I can't seem to get the running total<br />
stored for each user that I have listed below(A, B, E).  Can someone guide me on how<br />
I can store the running total for each user so that I can have it stored when the<br />
user enters &quot;Z&quot;?  I have searched on different webpages and forums but I have yet<br />
to find one that helps?  I joined this forum to help me in my assistance to<br />
conquer .NET(C#)so that I can be a developer in this.  Can someone assist me kindly?<br />
(I am a current I.T. professional and this sucks that I can't seem to solve it, it seems<br />
so simple.)<br />
<br />
Assignment question:<br />
<br />
Three salespeople work at Sunshine Hot Tubs-Andrea, Brittany, and Eric.  <br />
Write a program that prompts the user for a salesperson’s initial (‘A’,’B’, or’E’). <br />
 While the user does not type ‘Z’, continue by prompting for the amount of <br />
a sale the salesperson made.  Calculate the salesperson’s commission as <br />
10 percent of the sale amount, and add the commission to a running total <br />
for that salesperson.  After the user types ‘Z’ for an initial, display each <br />
salesperson’s total commission earned.<br />
<br />
 <pre style="margin:20px; line-height:13px">using System;<br />
public class TubSales<br />
{<br />
&nbsp; &nbsp; public static void Main()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; string inputString;//This grabs the user's response for the salespersons initial.<br />
&nbsp; &nbsp; &nbsp; &nbsp; char response;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Please enter a salesperson's initial('A' for Andrea, 'B' for Brittany and 'E' for Eric and 'Z'to display each saleperson's total commmission earned)&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; inputString = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; response = Convert.ToChar(inputString);<br />
&nbsp; &nbsp; &nbsp; &nbsp; double saleAmount = new double();<br />
&nbsp; &nbsp; &nbsp; &nbsp; double saleAmount_A = new double();<br />
&nbsp; &nbsp; &nbsp; &nbsp; double saleAmount_B = new double();<br />
&nbsp; &nbsp; &nbsp; &nbsp; double saleAmount_E = new double();<br />
&nbsp; &nbsp; &nbsp; &nbsp; double commission = 0.10 * saleAmount;<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (response != 'Z')<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (response == 'A')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Permitted user please enter the sale amount that you made.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputString = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount = Convert.ToDouble(inputString);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_A = commission;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_A += saleAmount;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (response == 'B')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Permitted user please enter the sale amount that you made.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputString = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount = Convert.ToDouble(inputString);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_B = commission;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_B += commission;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (response == 'E')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;Permitted user please enter the sale amount that you made.&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inputString = Console.ReadLine();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount = Convert.ToDouble(inputString);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_E = commission;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saleAmount_E += commission;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (response == 'Z')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console.WriteLine(&quot;The total commission for each salesperson respectively is: Andrea with {0}, Brittany with {1} and Eric with {2}.&quot;, saleAmount_A.ToString(&quot;C&quot;), saleAmount_B.ToString(&quot;C&quot;), saleAmount_E.ToString(&quot;C&quot;));<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>choosenalpha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236633.html</guid>
		</item>
		<item>
			<title>Remote surveillance issues</title>
			<link>http://www.daniweb.com/forums/thread236632.html</link>
			<pubDate>Fri, 06 Nov 2009 20:13:26 GMT</pubDate>
			<description>How can I integrate an IP camera into an existing school network so it can be viewed on the existing school website?</description>
			<content:encoded><![CDATA[<div>How can I integrate an IP camera into an existing school network so it can be viewed on the existing school website?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum23.html">Networking Hardware Configuration</category>
			<dc:creator>edsimon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236632.html</guid>
		</item>
		<item>
			<title>can you explain ie7? (fixed position, width 100%)</title>
			<link>http://www.daniweb.com/forums/thread236631.html</link>
			<pubDate>Fri, 06 Nov 2009 20:04:45 GMT</pubDate>
			<description><![CDATA[I just spent several hours trying to figure out how to fix my websites appearance in ie7. I've found a solution, but I have no clue why it actually worked. I'm looking for an explanation if anyone has one. 
 
My goal was to have a fixed position div across the top of my website. It would have a...]]></description>
			<content:encoded><![CDATA[<div>I just spent several hours trying to figure out how to fix my websites appearance in ie7. I've found a solution, but I have no clue why it actually worked. I'm looking for an explanation if anyone has one.<br />
<br />
My goal was to have a fixed position div across the top of my website. It would have a solid image centered in it that was the width of the content not the screen. When you scroll the page the text should go underneath the bar. I also wanted the bar centered within the width of the screen (since my site is also centered). That way, if the screen was resized the bar would still be centered over the content.<br />
<br />
I tried several css methods to achieve this. What I tried worked in EVERY other browser, but not IE7 (don't ask about IE6, I don't develop for it anymore). Here's what I had:<br />
 <pre style="margin:20px; line-height:13px">#upperBarWrap {<br />
&nbsp; &nbsp; &nbsp; &nbsp; position:fixed;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; text-align:center;<br />
&nbsp; &nbsp; &nbsp; &nbsp; margin:0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:100%;<br />
}<br />
#upperBar {<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:1200px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; height:38px;<br />
&nbsp; &nbsp; &nbsp; &nbsp; margin:0px auto;<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-image:url(images/layout/upperBar1.png);<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-repeat:no-repeat;<br />
&nbsp; &nbsp; &nbsp; &nbsp; background-position:top left;<br />
&nbsp; &nbsp; &nbsp; &nbsp; text-align:left;<br />
}</pre><br />
Ie7 didn't know how to handle 100% width. my bar was always ~200 pixels to the right of where it should have been. With everything I tried the bar didn't budge from its off-center position. I finally decided I just needed to effect it somehow. What finally worked was adding a width that only 1e7 could read:<br />
<br />
 <pre style="margin:20px; line-height:13px">#upperBarWrap {<br />
&nbsp; &nbsp; &nbsp; &nbsp; text-align:center;<br />
&nbsp; &nbsp; &nbsp; &nbsp; margin:0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; position:fixed;<br />
&nbsp; &nbsp; &nbsp; &nbsp; width:100%;<br />
&nbsp; &nbsp; &nbsp; &nbsp; *width:1220px;<br />
}</pre>Note that 1220px is the size of the content container div.<br />
<br />
This solution really doesn't make any sense to me. Can anyone help me understand why this worked?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum143.html">HTML and CSS</category>
			<dc:creator>alipica</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236631.html</guid>
		</item>
		<item>
			<title>Multi-Threading</title>
			<link>http://www.daniweb.com/forums/thread236630.html</link>
			<pubDate>Fri, 06 Nov 2009 19:53:57 GMT</pubDate>
			<description><![CDATA[Hey guys, 
 
I'm about to start on a research project about multi-threading.  I'm very comfortable with c++ oop/data structures concepts, but am completely new to programming with multiple threads.   Does anyone have suggested resources for me to get started?]]></description>
			<content:encoded><![CDATA[<div>Hey guys,<br />
<br />
I'm about to start on a research project about multi-threading.  I'm very comfortable with c++ oop/data structures concepts, but am completely new to programming with multiple threads.   Does anyone have suggested resources for me to get started?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Duki</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236630.html</guid>
		</item>
		<item>
			<title>My cursor stopped working</title>
			<link>http://www.daniweb.com/forums/thread236629.html</link>
			<pubDate>Fri, 06 Nov 2009 19:49:41 GMT</pubDate>
			<description><![CDATA[Ok.  I have a Acer Laptop.  I don't have the make or model in front of me.  I'm actually at work.  The other night I had my laptop on and open.  My kitten was niffing around.  He walked across it, nothing new.  Then he laid down next to it.  I think he liked the warmth.  So I X'd out of the...]]></description>
			<content:encoded><![CDATA[<div>Ok.  I have a Acer Laptop.  I don't have the make or model in front of me.  I'm actually at work.  The other night I had my laptop on and open.  My kitten was niffing around.  He walked across it, nothing new.  Then he laid down next to it.  I think he liked the warmth.  So I X'd out of the internet so that if he touched any keys I wouldn't wind up on some crazy website.  So he laid very close to the laptop with probably a little bit of his upper body and lower body leaning on the leftside of the keypad.  I didn't think that he pressed anything because nothing was happening.  But when I waved him away and tried to get back on the curser wasn't moving. I tried it with both the pad and a wireless mouse.  I don't know if it's possible that the kitten may have leaned on a few keys that in succsession would cause the curser to become inactive.  Please advise if you can.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum122.html">Troubleshooting Dead Machines</category>
			<dc:creator>DawnMarieDuzan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236629.html</guid>
		</item>
		<item>
			<title>Reading from the Command line</title>
			<link>http://www.daniweb.com/forums/thread236628.html</link>
			<pubDate>Fri, 06 Nov 2009 19:32:50 GMT</pubDate>
			<description><![CDATA[Hey, 
How do you read from the command line in C? I need to read 10 arguments from the command line. Can I use char* argv[] as a parameter in the main function to do so? 
 
Thanks.]]></description>
			<content:encoded><![CDATA[<div>Hey,<br />
How do you read from the command line in C? I need to read 10 arguments from the command line. Can I use char* argv[] as a parameter in the main function to do so?<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>shakunni</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236628.html</guid>
		</item>
		<item>
			<title>String length problem</title>
			<link>http://www.daniweb.com/forums/thread236627.html</link>
			<pubDate>Fri, 06 Nov 2009 19:28:52 GMT</pubDate>
			<description><![CDATA[I understood that a string in VB .Net maximum length was quite large (could be way over 1000 characters) but do not know for sure.  I keep having a problem when I concatenate one string to another and the result is the second string.   
 
Example:  
Str1 = “this is the first test” 
Str1 &= “this is...]]></description>
			<content:encoded><![CDATA[<div>I understood that a string in VB .Net maximum length was quite large (could be way over 1000 characters) but do not know for sure.  I keep having a problem when I concatenate one string to another and the result is the second string.  <br />
<br />
Example: <br />
Str1 = “this is the first test”<br />
Str1 &amp;= “this is the second test”<br />
<br />
Now Str1 = “this is the second test”<br />
<br />
The lengths of the strings in the example are not correct (much longer) but are under 1000 characters.  Does anyone have a clue?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>glennt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236627.html</guid>
		</item>
		<item>
			<title>How to display a variable menber of one class iside other</title>
			<link>http://www.daniweb.com/forums/thread236626.html</link>
			<pubDate>Fri, 06 Nov 2009 19:28:12 GMT</pubDate>
			<description><![CDATA[Hi I want to display a variable menber  array queue, and the definitions of the class are   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code...]]></description>
			<content:encoded><![CDATA[<div><img src="/cgi-bin/mimetex.cgi?Hi I want to display a variable menber  array queue, and the definitions of the class are " alt="Hi I want to display a variable menber  array queue, and the definitions of the class are " border="0" /> <pre style="margin:20px; line-height:13px">The Array.h<br />
template &lt;class DataType&gt;<br />
class Array<br />
{<br />
public:<br />
Array( int size );<br />
<br />
private:<br />
T *ele;<br />
};</pre> <pre style="margin:20px; line-height:13px">[The Array.cpp<br />
Array&lt;T&gt;::Array( int size )<br />
{<br />
if ( size &lt; 1 ) {<br />
capacity = 1;<br />
<br />
}<br />
else {<br />
capacity = size;<br />
<br />
}<br />
<br />
ele = new T [capacity];<br />
}</pre> <pre style="margin:20px; line-height:13px">Q.h<br />
#include &quot;Array.h&quot;<br />
template &lt;class T&gt;<br />
class Queue<br />
{<br />
public:<br />
Queue( );<br />
void enqueue( T ele );<br />
private:<br />
Array&lt;T&gt; ele;<br />
int front;<br />
int back;<br />
};</pre> <pre style="margin:20px; line-height:13px">Q.cpp<br />
<br />
template &lt;class T&gt;<br />
Queue&lt;T&gt;::Queue( )<br />
: ele( 2 ), front( -1 ), back( -1 )<br />
{<br />
}<br />
template &lt;class T&gt;<br />
void Queue&lt;T&gt;::enqueue( T ele )]</pre><img src="/cgi-bin/mimetex.cgi? in the main I have" alt=" in the main I have" border="0" /><br />
 <pre style="margin:20px; line-height:13px">// I declare a function template fro display the queue<br />
template &lt;T&gt;<br />
void Disply(const DataType elem[] )<br />
{<br />
<br />
for( int i = 0; i&lt;6; i++)<br />
<br />
cout&lt;&lt; &quot;The elements of the Queue are:\n&quot;, i , elem[i]&lt;&lt;endl;<br />
<br />
}<br />
<br />
int main()<br />
{<br />
<br />
Queue&lt;int&gt; elementsArQueue;<br />
<br />
int array[]={1,2,3,4,5,6};<br />
<br />
for (int a=0;a&lt;6;a++)<br />
<br />
queue.enqueue(array);<br />
<br />
Display(elementsArQueue.);// give to me some errors like<br />
<br />
//P.cpp: In function âint main()â:<br />
P.cpp:48: error: no matching function for call to âDisplay(Queue&lt;int&gt;&amp;)â</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tina05</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236626.html</guid>
		</item>
		<item>
			<title>Help in C++ Program for a Novice</title>
			<link>http://www.daniweb.com/forums/thread236623.html</link>
			<pubDate>Fri, 06 Nov 2009 19:00:58 GMT</pubDate>
			<description>I have to submit this project by this weekend.Please help me.</description>
			<content:encoded><![CDATA[<div>I have to submit this project by this weekend.Please help me.</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12472&amp;d=1257534026">project.txt</a> (49.4 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>mrsrinath</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236623.html</guid>
		</item>
		<item>
			<title>calling different images from one php file</title>
			<link>http://www.daniweb.com/forums/thread236622.html</link>
			<pubDate>Fri, 06 Nov 2009 18:58:25 GMT</pubDate>
			<description><![CDATA[Ok so I wrote a little script that allows me to call information from my database. Basicly this. 
 
<table> 
<tr> 
<td id="seal"><?php 
include("sql.php"); 
echo "$websiteaddress"; 
?></td></tr> 
</table>]]></description>
			<content:encoded><![CDATA[<div>Ok so I wrote a little script that allows me to call information from my database. Basicly this.<br />
<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td id=&quot;seal&quot;&gt;&lt;?php<br />
include(&quot;sql.php&quot;);<br />
echo &quot;$websiteaddress&quot;;<br />
?&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
<br />
All this does is connects to the sql file echoing the users website address thus I type in mywebsite.com/index.php?name=aname and it returns their name now it also connects to a css file to display an image.<br />
<br />
What I want to be able to do is display a different image depending on the url such as mywebsite.com/index.php?name=aname=red or mywebsite.com/index.php?name=aname=blue and it displays a red or blue image depending.<br />
<br />
I thought about trying else elseif but can seem to get it to work.<br />
<br />
How would I go about doing this? Any help would be appreciated. Please remember I am still learning so take it easy on me and if possible post the code for examples so I can try it and better understand the idea and concept.<br />
<br />
Thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>valonesal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236622.html</guid>
		</item>
		<item>
			<title>need help!!! to fix my program please!!!</title>
			<link>http://www.daniweb.com/forums/thread236621.html</link>
			<pubDate>Fri, 06 Nov 2009 18:53:42 GMT</pubDate>
			<description><![CDATA[I made a program that inputs the radius of a circle, and then should output a circle of asterisks. however, I am just getting the fourth-quadrant part of the circle, and I need the whole circle to be printout. what do I need in my code? 
 
this is my code: 
 
#include <stdio.h> 
#define x 25 
 
int...]]></description>
			<content:encoded><![CDATA[<div>I made a program that inputs the radius of a circle, and then should output a circle of asterisks. however, I am just getting the fourth-quadrant part of the circle, and I need the whole circle to be printout. what do I need in my code?<br />
<br />
this is my code:<br />
<br />
#include &lt;stdio.h&gt;<br />
#define x 25<br />
<br />
int main()<br />
{<br />
char A[x][x];<br />
int r, i, j;<br />
<br />
printf(&quot;Radius: &quot;);<br />
scanf(&quot;%d&quot;, &amp;r);<br />
<br />
for(i=0; i&lt;=r; i++)<br />
{<br />
for(j=0; j&lt;=r; j++)<br />
{<br />
  if(i*i + j*j &lt;= r*r)<br />
  A[i][j]= '*'<br />
<br />
else<br />
  A[i][j]= ' ';<br />
}<br />
}<br />
<br />
for(i=o; i&lt;=r; i++)<br />
{  <br />
   for(j=o; j&lt;=r; j++)<br />
   printf(&quot;%c&quot;, A[i][j]);<br />
<br />
   printf(&quot;\n&quot;);<br />
}<br />
<br />
return 0;<br />
}</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>needhelpe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236621.html</guid>
		</item>
		<item>
			<title>variable concat and exec cmd question</title>
			<link>http://www.daniweb.com/forums/thread236620.html</link>
			<pubDate>Fri, 06 Nov 2009 18:40:42 GMT</pubDate>
			<description><![CDATA[basically i need to have 2 variables.. concat them and put them into use.  
 
here is what i have done so far:  
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680"...]]></description>
			<content:encoded><![CDATA[<div>basically i need to have 2 variables.. concat them and put them into use. <br />
<br />
here is what i have done so far: <br />
<br />
 <pre style="margin:20px; line-height:13px">#!/usr/bin/perl<br />
<br />
$stats = ':/var/tmp/RtcTestHarness/currentTransactionStats.txt';<br />
$console = ':/var/tmp/RtcTestHarness/TestHarnessConsole.log';<br />
<br />
$client_1 = '9.34.120.36';<br />
<br />
#$com = $client_1.$stats;<br />
#print $com;&nbsp; &nbsp; &nbsp; &nbsp;  the concat here looks fine...<br />
&nbsp;<br />
system (&quot;scp $client_1.$currentTranStats .&quot;);</pre><br />
<br />
anything wrong? missing the usage of chomp?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum112.html">Perl</category>
			<dc:creator>k2k</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236620.html</guid>
		</item>
		<item>
			<title>Some tutorials or material explaining the registry...?</title>
			<link>http://www.daniweb.com/forums/thread236617.html</link>
			<pubDate>Fri, 06 Nov 2009 18:14:26 GMT</pubDate>
			<description>hey guys, 
im new here and this is my first question. 
 
my pc runs a bit slow and im sick of trying all those system care products that people claim to work. ive tried so many but it just seems worthless. i know my best bet is to reinstall windows clean but i dont have an external hard drive and...</description>
			<content:encoded><![CDATA[<div>hey guys,<br />
im new here and this is my first question.<br />
<br />
my pc runs a bit slow and im sick of trying all those system care products that people claim to work. ive tried so many but it just seems worthless. i know my best bet is to reinstall windows clean but i dont have an external hard drive and cd's will be take alot of time. <br />
<br />
so i was wondering if some of you gurus out there can maybe spare some time and tell me where i can learn exactly how the registry works? alll those DWords and how it relates to your programs. what happens when you delete one of those keys and how you can manually clean your registry.<br />
ive noticed some programs that i uninstalled still have all their keys in the registry. i just dont want to delete them coz im scared. lol<br />
is there any resources that explain exactly how it works and how to manually fix it?<br />
im studying fo rmy CCNA to take the test next year. yaya.&quot;-)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum38.html">Windows Vista and Windows 7</category>
			<dc:creator>Grand666</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236617.html</guid>
		</item>
		<item>
			<title>Group with both Jcheckbox and Jbutton</title>
			<link>http://www.daniweb.com/forums/thread236615.html</link>
			<pubDate>Fri, 06 Nov 2009 18:05:51 GMT</pubDate>
			<description>Hi, 
 
I am trying to create a button group which can give me both Jcheckboxes as well as Jbuttons. The problem is that I am creating a button group and not able to fit the checkbox criteria into it. Actually I want to create 2 radiobuttons followed by one checkbox 
 
I mean something like like:- 
...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am trying to create a button group which can give me both Jcheckboxes as well as Jbuttons. The problem is that I am creating a button group and not able to fit the checkbox criteria into it. Actually I want to create 2 radiobuttons followed by one checkbox<br />
<br />
I mean something like like:-<br />
 <pre style="margin:20px; line-height:13px">No&nbsp; &nbsp; &nbsp;  Buttons<br />
1&nbsp; &nbsp; &nbsp; &nbsp;  jbutton1&nbsp; &nbsp; &nbsp; jbutton2&nbsp;  jcheckbox1&nbsp; &nbsp; <br />
2&nbsp; &nbsp; &nbsp; &nbsp;  jbutton1&nbsp; &nbsp; &nbsp; jbutton2&nbsp;  jcheckbox1&nbsp; &nbsp; <br />
3&nbsp; &nbsp; &nbsp; &nbsp;  jbutton1&nbsp; &nbsp; &nbsp; jbutton2&nbsp;  jcheckbox1</pre><br />
Here is how I am creating my button group:-<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; private JCheckBox[] buttons;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private JRadioButton noSelectionButton;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RadioButtonPanel(String[] str) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setLayout(new BoxLayout(this, BoxLayout.X_AXIS));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttons = new JCheckBox[str.length];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ButtonGroup group = new ButtonGroup();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noSelectionButton = new JRadioButton();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; group.add(noSelectionButton);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; buttons.length; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttons[i] = new JCheckBox(str[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttons[i].setFocusPainted(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add(buttons[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; group.add(buttons[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
I was trying to follow this example to fit my requirement but in this case I need to use CheckboxGroup whereas I am using ButtonGroup and since I am filling my buttongroup like this <br />
 <pre style="margin:20px; line-height:13px">group.add(buttons[i])</pre><br />
<br />
It is creating me problems when I declare CheckboxGroup instead of ButtonGroup.<br />
<br />
Here is the example I am talking about :-<br />
<a rel="nofollow" class="t" href="http://www.apl.jhu.edu/~hall/CWP-Chapter13/CWP-Chapter13.5.html" target="_blank">http://www.apl.jhu.edu/~hall/CWP-Cha...apter13.5.html</a><br />
<br />
Here is my full code <br />
 <pre style="margin:20px; line-height:13px">import java.awt.*;<br />
import java.awt.event.*;<br />
import javax.swing.*;<br />
import javax.swing.table.*;<br />
import javax.swing.JRadioButton;<br />
import javax.swing.JButton;<br />
&nbsp;<br />
public class MixedButtons extends javax.swing.JFrame {<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public MixedButtons() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; super(&quot;JRadioButtonTable Example&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DefaultTableModel dm = new DefaultTableModel(new Object[][]{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {new String(&quot;one&quot;)},<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {new String(&quot;two&quot;)},<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {new String(&quot;three&quot;)},<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {new String(&quot;four&quot;)},<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {new String(&quot;five&quot;)}},<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new Object[]{&quot;Question&quot;, &quot;Answer&quot;});<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JTable table = new JTable(dm);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String[] answer = {&quot;A&quot;, &quot;B&quot;, &quot;C&quot;};<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; table.getColumn(&quot;Answer&quot;).setCellRenderer(new RadioButtonRenderer(answer));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; table.getColumn(&quot;Answer&quot;).setCellEditor(new RadioButtonEditor(new RadioButtonPanel(answer)));<br />
&nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setContentPane(new JScrollPane(table));<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Cell base<br />
&nbsp; &nbsp; &nbsp; &nbsp; class RadioButtonPanel extends JPanel {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private JCheckBox[] buttons;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private JRadioButton noSelectionButton;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RadioButtonPanel(String[] str) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setLayout(new BoxLayout(this, BoxLayout.X_AXIS));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttons = new JCheckBox[str.length];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ButtonGroup group = new ButtonGroup();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noSelectionButton = new JRadioButton();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; group.add(noSelectionButton);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; buttons.length; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttons[i] = new JCheckBox(str[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttons[i].setFocusPainted(false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add(buttons[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; group.add(buttons[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void addActionListener(ActionListener anActionListener) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; buttons.length; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttons[i].addActionListener(anActionListener);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void removeActionListener(ActionListener anActionListener) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; buttons.length; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttons[i].removeActionListener(anActionListener);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void setSelectedIndex(int index) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (index &lt; 0 || index &gt;= buttons.length) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; noSelectionButton.setSelected(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; buttons.length; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (i == index) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buttons[i].setSelected(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public int getSelectedIndex() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; buttons.length; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (buttons[i].isSelected()) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return -1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public JCheckBox[] getButtons() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return buttons;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; class RadioButtonRenderer extends RadioButtonPanel implements TableCellRenderer {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RadioButtonRenderer(String[] strs) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; super(strs);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public Component getTableCellRendererComponent(JTable table,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Object value, boolean isSelected, boolean hasFocus, int row,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int column) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (value instanceof Integer) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setSelectedIndex(((Integer)value).intValue());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return this;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; class RadioButtonEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private RadioButtonPanel theRadioButtonPanel;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public RadioButtonEditor(RadioButtonPanel aRadioButtonPanel) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; theRadioButtonPanel = aRadioButtonPanel;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; theRadioButtonPanel.addActionListener(this);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public Component getTableCellEditorComponent(JTable table,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Object value, boolean isSelected, int row, int column) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (value instanceof Integer) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; theRadioButtonPanel.setSelectedIndex(((Integer) value).intValue());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return theRadioButtonPanel;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public Object getCellEditorValue() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return new Integer(theRadioButtonPanel.getSelectedIndex());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void actionPerformed(ActionEvent e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fireEditingStopped();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public static void main(String[] args) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MixedButtons frame = new MixedButtons();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame.addWindowListener(new WindowAdapter() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void windowClosing(WindowEvent e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.exit(0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame.setSize(230, 140);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frame.setVisible(true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}</pre><br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>Web_Sailor</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236615.html</guid>
		</item>
		<item>
			<title>News Story Avoid Windows Denial of Service</title>
			<link>http://www.daniweb.com/news/story236614.html</link>
			<pubDate>Fri, 06 Nov 2009 18:00:01 GMT</pubDate>
			<description>Microsoft on Tuesday is set to release six security updates, three of which it has deemed critical and apply only to versions of Windows other than Windows 7. Microsoft released advance notice of its Security Bulletin for November (http://www.microsoft.com/technet/security/Bulletin/MS09-nov.mspx),...</description>
			<content:encoded><![CDATA[<div>Microsoft on Tuesday is set to release six security updates, three of which it has deemed critical and apply only to versions of Windows other than Windows 7. Microsoft released advance notice of its <a rel="nofollow" class="t" href="http://www.microsoft.com/technet/security/Bulletin/MS09-nov.mspx" target="_blank">Security Bulletin for November</a>, on Nov. 5. The bulletin itself will be released on Tuesday along with remedies, as per its normal patch cycle. Other alerts are labeled &quot;important,&quot; one of which involves a denial of service vulnerability for Windows; the other two affect Excel. Redmond will reportedly release updates for Windows XP, 2003 and 2007 and Office 2004 and 2008 for Mac OS X.<br />
<br />
Save the one warning of DoS attacks, all the vulnerabilities involve remote code execution, as did the <a rel="nofollow" class="t" href="http://www.microsoft.com/security/updates/bulletins/200910.aspx" target="_blank">13 patches released by Microsoft on October 13</a>, fixing nearly three dozen flaws, all of them critical. A critical warning is one &quot;whose exploitation could allow the propagation of an Internet worm without user action,&quot; according to the company, while one that is one step down at important, is said to be one that &quot;could result in compromise of the confidentiality, integrity, or availability of users data, or of the integrity or availability of processing resources.&quot;<br />
<br />
Microsoft on Monday also released an <a rel="nofollow" class="t" href="http://support.microsoft.com/kb/976749" target="_blank">update to MS09-054</a>, the part of its October patch-fest that applied to Internet Explorer. This one, which went somewhat under the radar, as <a rel="nofollow" class="t" href="http://blogs.technet.com/msrc/archive/2009/11/02/update-released-for-ms09-054.aspx" target="_blank">explained on the company's technet Website</a>, addresses the way pages are rendered.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum10.html">Windows NT / 2000 / XP</category>
			<dc:creator>EddieC</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236614.html</guid>
		</item>
		<item>
			<title>Is .NET good option to make a GUI in C++?</title>
			<link>http://www.daniweb.com/forums/thread236613.html</link>
			<pubDate>Fri, 06 Nov 2009 17:57:36 GMT</pubDate>
			<description>Well I think title says it very well, how do you think, is it good option to make program with GUI?</description>
			<content:encoded><![CDATA[<div>Well I think title says it very well, how do you think, is it good option to make program with GUI?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Silvershaft</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236613.html</guid>
		</item>
		<item>
			<title>C++, Visual C++ or Java for Win32API firewall application?</title>
			<link>http://www.daniweb.com/forums/thread236612.html</link>
			<pubDate>Fri, 06 Nov 2009 17:50:41 GMT</pubDate>
			<description><![CDATA[Hey guys, im about to write an application which has a visual GUI doing representation of a system (lots of pretty colours and flashing objects etc), which represent what is happening with packets and external devices being inserted into the system. 
 
I need to use one of the Win32 APIs, "Windows...]]></description>
			<content:encoded><![CDATA[<div>Hey guys, im about to write an application which has a visual GUI doing representation of a system (lots of pretty colours and flashing objects etc), which represent what is happening with packets and external devices being inserted into the system.<br />
<br />
I need to use one of the Win32 APIs, &quot;Windows Filtering Platform&quot;, so what would be better to use, Visual C++ or C++? Also, as i am not quite sure between the difference, what is it?<br />
<br />
In the past i have done GUIs using java (repaint(), canvas etc) and wondered is it pretty much the same in C++?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>futureaussiecto</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236612.html</guid>
		</item>
		<item>
			<title><![CDATA[Fast VPS Servers -> 512Mb Ram - 20Gb HD - 1,000GB Bandwidth - from $12.95/mo Only]]></title>
			<link>http://www.daniweb.com/forums/thread236611.html</link>
			<pubDate>Fri, 06 Nov 2009 17:20:47 GMT</pubDate>
			<description><![CDATA[*Hello Members*, I am here to offer you the reliable and cheap virtual private servers. You can never see these kind of cheapest vps servers. All VPS's are powered by Ve Portal technology with Ve Portal Power control panel. Our VPS's are located in the USA. If you have ordered additional features...]]></description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold">Hello Members</span>, I am here to offer you the reliable and cheap virtual private servers. You can never see these kind of cheapest vps servers. All VPS's are powered by Ve Portal technology with Ve Portal Power control panel. Our VPS's are located in the USA. If you have ordered additional features they will be added to your VPS by one of our staff members within few hours.<br />
<br />
<span style="color:green"><span style="font-weight:bold">Features : </span></span><br />
<ul><li>Instant OS reloads and reboots from within control panel.</li>
<li>All vps come with Veportal Power Panel.</li>
<li>We have over 20 OS templates for clients to choose from, we also have many OS templates.</li>
<li>Support team to assist in any issues you may have!</li>
<li>Very low-cost, but powerful solutions.</li>
</ul><br />
<br />
 ========================================================<br />
<br />
-------------------<br />
 <span style="color:green"><span style="font-weight:bold">VPS Server 1</span></span><br />
 -------------------<br />
 <br />
 Ram/Memory: 512MB<br />
 Disk Space: 20GB<br />
 Bandwidth: 1,000GB<br />
 IP Addresses: 2<br />
 Price: $12.95/mo<br />
 <a rel="nofollow" class="t" href="http://www.regencyhost.com/vps.html" target="_blank">More Information.....</a><br />
 <a rel="nofollow" class="t" href="http://www.regencyhost.com/clients/cart.php?a=add&amp;pid=27" target="_blank">Order Now - Secure</a><br />
 <br />
<br />
<br />
-------------------<br />
<span style="color:green"><span style="font-weight:bold">VPS Server 2</span></span><br />
-------------------<br />
<br />
Ram/Memory: 1GB<br />
Disk Space: 50GB<br />
Bandwidth: 1,000GB<br />
IP Addresses: 2<br />
Price: $24.95/mo<br />
<a rel="nofollow" class="t" href="http://www.regencyhost.com/vps.html" target="_blank">More Information.....</a><br />
<a rel="nofollow" class="t" href="http://www.regencyhost.com/clients/cart.php?a=add&amp;pid=12" target="_blank">Order Now - Secure</a><br />
<br />
<br />
-------------------<br />
<span style="color:green"><span style="font-weight:bold">VPS Server 3</span></span><br />
-------------------<br />
<br />
Ram/Memory: 1.5GB<br />
Disk Space: 1,00GB<br />
Bandwidth: 2,000GB<br />
IP Addresses: 2<br />
Price: $34.95/mo<br />
<a rel="nofollow" class="t" href="http://www.regencyhost.com/vps.html" target="_blank">More Information...</a><br />
<a rel="nofollow" class="t" href="http://www.regencyhost.com/clients/cart.php?a=add&amp;pid=13" target="_blank">Order Now - Secure <br />
</a> <br />
========================================================<br />
<br />
<span style="color:green"><span style="font-weight:bold">Available Operating Systems</span></span><ul><li>CentOS 4, 5, 5.2, 5.3</li>
<li>Debian 4, 5</li>
<li>Fedora 9, 10</li>
<li>Gentoo</li>
<li>Ubuntu 7.10, 8.04, 8.10, 9.04</li>
</ul><span style="font-weight:bold"><span style="color:green">Available Control Panels</span></span><ul><li>cPanel License ( Unlimited Domains ): $14.95/mo</li>
<li>DirectAdmin License ( Unlimited Domains ): $9.95/mo</li>
<li>Plesk License ( 100 Domains ): $14.95/mo</li>
<li>Plesk License ( Unlimited Domains ): $19.95/mo</li>
<li>Webmin Control Panel : FREE + Free Installation</li>
<li>Kloxo Control Panel : FREE + Free Installation</li>
</ul><br />
<span style="font-weight:bold">Q: How long does it take to setup a VPS? </span><br />
A: On average, less than 12 hours since you ordered your VPS; however we won't take more than 24 hours. <br />
<br />
<span style="font-weight:bold">Q: Where are your servers located? </span><br />
A: Scranton PA, USA.<br />
 <br />
<span style="font-weight:bold">Q: What type of server are these VPS hosted on? </span><br />
A: Quad Core Xeon With Minimum 12 - 32GB RAM<br />
<br />
<span style="font-weight:bold">Q: How long have you been in business? </span><br />
A: Since May 2009<br />
<br />
<span style="font-weight:bold">Q: Can you help transfer our data? </span><br />
A: Actually we can do this as long as you have the data in a cPanel or DirectAdmin VPS.<br />
  <br />
  <span style="font-weight:bold">Q: What payment options do you have available? </span><br />
A: Currently we accept all Major <span style="font-weight:bold">Credit Cards, Paypal, Alertpay and MoneyBookers.</span><br />
<br />
<br />
<span style="color:Red"><span style="font-weight:bold">Not allowed</span></span><ul><li>Warez</li>
<li>Spamming</li>
<li>Peer-to-Peer (Torrents)</li>
<li>No IRC Server</li>
<li>No malicious activity that would affect our servers or anyone elses.</li>
</ul><span style="color:green"><span style="font-weight:bold">---------------------------------<br />
-----------<br />
END<br />
-----------<br />
---------------------------------<br />
<br />
</span></span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum154.html">Web Hosting Deals</category>
			<dc:creator>Wajdan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236611.html</guid>
		</item>
		<item>
			<title>LaTex::parser module problem</title>
			<link>http://www.daniweb.com/forums/thread236610.html</link>
			<pubDate>Fri, 06 Nov 2009 17:19:27 GMT</pubDate>
			<description><![CDATA[Hi everyone, 
 
I am using this code to parse data from latex files : 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags"...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone,<br />
<br />
I am using this code to parse data from latex files :<br />
 <pre style="margin:20px; line-height:13px">#!/Applications/xampp/xamppfiles/bin/perl<br />
use strict;<br />
use File::Copy;<br />
use LaTex::Parser;<br />
use Text::CSV_XS;<br />
use utf8;<br />
use Unicode::String;<br />
<br />
Unicode::String-&gt;stringify_as( 'utf8' ); # utf8 already is the default<br />
<br />
&nbsp; <br />
&nbsp;#see Ch 7.1 of Data Munging with Perl<br />
<br />
&nbsp;my $output = &quot;ID+add.txt&quot;;<br />
<br />
&nbsp;open (LAT_LON_OUT_FILE, &quot;&gt; $output&quot;) or die &quot;Couldn't open $output for writing: $!\n&quot;;<br />
&nbsp;binmode LAT_LON_OUT_FILE, &quot;:utf8&quot;;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
#This routine is supposed to work in the dir where the .tar.gz files are<br />
#It extracts each .tar.gz file into a temp directory<br />
my $tdir = 'temp';<br />
mkdir $tdir;<br />
<br />
my @flist=&lt;*.tar.gz&gt;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
chdir $tdir;<br />
my $not_processed = 0; #Number of files that the script cannot process<br />
my $number_of_papers = 0;<br />
my $file_cat = &quot; &quot;;<br />
<br />
#Go through all the .tar.gz files in current dir<br />
foreach my $item (@flist)<br />
{<br />
&nbsp; &nbsp; unlink glob &quot;*.*&quot;;&nbsp; &nbsp; &nbsp; #erase all files in dir $tdir&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; #go through .tar.gz files and uncompress them<br />
&nbsp; &nbsp; copy &quot;../$item&quot;, &quot;$item&quot;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #copy .gz file to temp dir ...<br />
&nbsp; &nbsp; print&quot;$item\n&quot;;<br />
&nbsp; &nbsp; system &quot;gzip -dnv $item&quot;;&nbsp; &nbsp; &nbsp; &nbsp;  #ungzip ...<br />
&nbsp; &nbsp; my $ftar = substr($item,0,-3);&nbsp; #remove extension .gz ...<br />
&nbsp; &nbsp; print&quot;$ftar\n&quot;;<br />
&nbsp; &nbsp; my $tar_error = system &quot;tar -xm -f $ftar&quot;;&nbsp; #and untar&nbsp; &nbsp; <br />
&nbsp;<br />
&nbsp; &nbsp;  #untar may not work if archive has only one file. In that case <br />
&nbsp; &nbsp;  #gzip gave already a tex file -just need to rename it.<br />
&nbsp; &nbsp;  if ($tar_error)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp;  {&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  rename &quot;$ftar&quot;, substr($ftar,0,-4).&quot;.tex&quot;;<br />
&nbsp; &nbsp;  }<br />
&nbsp; &nbsp;  else<br />
&nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  unlink $ftar;&nbsp; &nbsp; &nbsp;  #tar file needs to be deleted, otherwise it will be in @textlist<br />
&nbsp; &nbsp;  }<br />
&nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; # Let's extract the data of the corresponding ABS file first..<br />
<br />
&nbsp; &nbsp; my $file_ID = substr($ftar,0,-4);<br />
<br />
&nbsp; &nbsp; my $input_file = &quot;../&quot;. $file_ID . &quot;.abs&quot;;<br />
&nbsp; &nbsp; open (MYINPUTFILE, &quot;$input_file&quot;) or die &quot;Couldn't open $input_file for reading: $!\n&quot;; # open for input<br />
&nbsp; &nbsp; my $file_content = &quot;FILE: \n&quot;;<br />
&nbsp; &nbsp; while ( &lt;MYINPUTFILE&gt; )<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $file_content = $file_content . $_;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; close(MYINPUTFILE);<br />
&nbsp; &nbsp; &nbsp; &nbsp; #$file_content =~ s/\n/\t/g;&nbsp;  #to make more clear where are the separators..<br />
&nbsp; &nbsp; &nbsp; &nbsp; # print &quot;$file_content\n&quot;;sleep 5;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $file_content =~ /\nDate:\s\S+,\s([^\n]+)\s\s\(/;<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $file_date = $1;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $file_content =~ /\nTitle:\s([^\n]+)/;<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $file_tit = $1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $file_content =~ /\nAuthors:\s([^\n]+)/;<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $file_auth = $1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $file_content =~ /\nCategories:\s([^\n]+)/;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $file_cat = $1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; <br />
&nbsp; <br />
&nbsp; &nbsp;  #process TeX files. Note that some of the files had extension .tex whereas others had .latex or .txt<br />
&nbsp; &nbsp;  #note that there is a problem in looking just for &lt;*.*t*&gt; -you also get .sty files, which are style files!<br />
&nbsp; &nbsp;  my @texlist;<br />
&nbsp; &nbsp;  my @texlist1 = &lt;*.latex&gt;;<br />
&nbsp; &nbsp;  my @texlist2 = &lt;*.tex&gt;;<br />
&nbsp; &nbsp;  my @texlist3 = &lt;*.txt&gt;;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp;  push(@texlist, @texlist1);<br />
&nbsp; &nbsp;  push(@texlist, @texlist2);<br />
&nbsp; &nbsp;  push(@texlist, @texlist3);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp;  my $valid_zip = 0;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #Is zip code valid?<br />
&nbsp; &nbsp;  my @author;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #Array with authors/addresses<br />
&nbsp; &nbsp;  my $author_index = 0;&nbsp;  #Index into @author<br />
&nbsp; &nbsp;  my $aux1 = 0;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #American-like post code detected?<br />
&nbsp; &nbsp;  my $myflag = 0;<br />
&nbsp;<br />
&nbsp; print STDERR &quot;test100......................\n&quot;;<br />
&nbsp;  <br />
&nbsp; &nbsp;  #Go through .TeX files in dir $tdir and assign @author<br />
&nbsp; &nbsp;  foreach my $texfile (@texlist)<br />
&nbsp; &nbsp;  {&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  #print LAT_LON_OUT_FILE &quot;$ftar \n&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  my $l = new LaTeX::Parser 'file' =&gt; $texfile;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  printf(&quot;aaaa %s\n&quot;, $texfile);<br />
<br />
<br />
&nbsp;print STDERR &quot;test100......................\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  my $p = $l-&gt;latex;<br />
&nbsp; print STDERR &quot;test100......................\n&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  my $next_field = 0;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #if $next_field=1 then next field is author; $next_field=2 then next field is address<br />
&nbsp; &nbsp; &nbsp; &nbsp;  my $ambiguous_field = 1;&nbsp; &nbsp;  #sometimes the author and address are ambiguous. Detect these.<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  #Go through TeX fields in files and assign array @author<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for (my $i=0; $i&lt;=$#{$p}; $i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  my $authorfield = $p-&gt;[$i]; #contains LaTeX fields<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #Some author/address fields are empty others don't have a LateX field '{' -skip them<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  next if (($next_field == 1 || $next_field == 2) &amp;&amp; (!($authorfield =~ /\w/) || !($authorfield =~ /\{/)));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #Assign author field]<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if ($next_field == 1 || ($authorfield =~ /\\large/i) || ($authorfield =~ /\\small/i)) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $author[$author_index] = &quot;author: &quot;.$authorfield;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $next_field = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $author_index++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $ambiguous_field = 0;&nbsp;  #We have detected an author field, so file is unambiguous<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #Assign address field<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if ($next_field == 2)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $author[$author_index] = &quot;address: &quot;.$authorfield;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $next_field = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $author_index++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $ambiguous_field = 0;&nbsp;  #We have detected an address field, so file is unambiguous<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #next field to be read will be the author<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $next_field = 1 if (($authorfield =~ /\\aut(?:\w)+/) || ($authorfield =~ /\\large/i) || ($authorfield =~ /\\center/i) || ($authorfield =~ /\\small/i));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #next field to be read will be the address<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $next_field = 2 if ($authorfield =~ /\\add(?:\w)+/) || ($authorfield =~/\\affi(?:\w)+/) || ($authorfield =~ /\\inst(?:\w)*/) || (($authorfield =~/\{\d\}/) and ($myflag == 1));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #two fields after will be an address<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if ($authorfield =~/\\altaffiltext\s?/) { $myflag = 1;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #if (($authorfield =~/\{\d\}/) and ($myflag == 1)){ $myflag = 2;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (($authorfield =~/\{([^=]+,+[^=]+)\}/) and ($myflag == 1)) {$myflag = 0;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #we are only interested in the header of the paper, so if you find abstract<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #and you have found author/address then end loop&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  last if ($authorfield&nbsp; =~ /^\{abst(?:\w)+/ &amp;&amp; !$ambiguous_field);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  #Skip files that do not have author/address<br />
&nbsp; &nbsp; &nbsp; &nbsp;  next if ($ambiguous_field);&nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  #Check zip codes<br />
&nbsp; &nbsp; &nbsp; &nbsp;  my $author_only = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $aux1 = 0; my $aux2 = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $valid_zip = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  foreach my $adr (@author)<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #Look for zip code if field is address or if there is no address field in the @author array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #(in which case the address will be in the author field)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if ($adr =~ /address/ || !(grep {/address/} @author))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print STDERR &quot;test5......................\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #$adr =~ /address: \{([^=]+,+[^=]+)\}/;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $adr =~ /address: \{([^=]+,+[^=]+)\}/;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print STDERR &quot;test6......................\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($adr =~ /address: \{([^=]+,+[^=]+)\}/)&nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $adr = $1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  print STDERR &quot;test6......................\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\n/ /g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #$adr =~ s/\\/ /g;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/{//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/}//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\.$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\s+/ /g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\+\s*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  print STDERR &quot;test4......................\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #Let's check multiple adresses in a row..<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #if ( $adr =~ /\$\^\S+\$/){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  # These commands transform numbered separators into \instA. Further versions of the code could extract author-address relationship<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\$\^?\S+\s?\S*\$/\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\+\s?\d\./\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\+\s?\d\-/\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\+\s?\S\)/\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\+\s?\d\)/\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  print STDERR &quot;test3......................\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #These ones transform different usages of \and into \instA<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\+\s?and\s?/\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/,?\sand\s?\\+/\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\newline/\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/;\s\\+/\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/,\\+/\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\medskip/\\instA/g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if ( $adr=~/(\\inst)/ ){&nbsp; # Separates multiple addresses linked by a \inst<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  my $pos = rindex($adr, &quot;\\inst&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  while ($pos &gt; 0){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  my $resul = substr($adr,$pos+6);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/,?\s*\\\*s*\\\*s*\\*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/^\\,\s//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/(email|E-mail|e-mail):?\s*[^\s]+//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/[^\s]+\@[^\=]+//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/\\S+$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/\\\s\\[^=]+$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/\\+\s?\[\\affilskip\]\s*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/\,\s?$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/\.$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/\;$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/\;\s+\S+\.\S+\.?\S*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #$resul =~ s/\\+\s+\S+\.\S+\.?\S*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $resul =~ s/\\+\s*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (length($resul) &gt; 10) {print LAT_LON_OUT_FILE &quot;$file_ID\t$file_cat\t$resul\n&quot;;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr = substr($adr,0,$pos); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $pos = rindex($adr, &quot;\\inst&quot;, $pos+6);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (($pos == -1) and (length($adr) &gt; 10)) {&nbsp; #there is no \inst at the beginning. Print the remaining of the string and leave. <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $adr =~ s/(email|E-mail|e-mail):?\s*[^\s]+//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/[^\s]+\@[^\=]+//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\+\s?\[\\affilskip\]\s*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\S+$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\\s\\[^=]+$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\,\s?$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\.$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\;$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\;\s+\S+\.\S+\.?\S*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #$adr =~ s/\\+\s+\S+\.\S+\.?\S*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\+\s*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  print LAT_LON_OUT_FILE &quot;$file_ID\t$file_cat\t$adr\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/(email|E-mail|e-mail):?\s*[^\s]+//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/[^\s]+\@[^\=]+//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\S+$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\\s\\[^\=]+$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\+\s?\[\\affilskip\]\s*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\,\s?$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\.$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\;\s+\S+\.\S+\.?\S*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  #$adr =~ s/\\+\s+\S+\.\S+\.?\S*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $adr =~ s/\\+\s*$//g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  print LAT_LON_OUT_FILE &quot;$file_ID\t$file_cat\t$adr\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp;}<br />
<br />
close LAT_LON_OUT_FILE;</pre>But I am getting an error...like this:<br />
A \ Command I don't understand at /Applications/XAMPP/xamppfiles/lib/perl5/site_perl/5.10.0/LaTex/Parser.pm line 115.<br />
<br />
Can sumbody sugest what could be the problem and the solution to it,<br />
I am using XAMPP server, perl 5.10.1 and LaTex:: Parser module to do this. Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum112.html">Perl</category>
			<dc:creator>ajay_p5</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236610.html</guid>
		</item>
		<item>
			<title>Boolean class</title>
			<link>http://www.daniweb.com/forums/thread236609.html</link>
			<pubDate>Fri, 06 Nov 2009 17:10:52 GMT</pubDate>
			<description>Public final static Boolean FALSE=new Boolean(false); 
Public final static Boolean TRUE=new Boolean(true); 
what is the meaning of above two statements?</description>
			<content:encoded><![CDATA[<div>Public final static Boolean FALSE=new Boolean(false);<br />
Public final static Boolean TRUE=new Boolean(true);<br />
what is the meaning of above two statements?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>sridhar123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236609.html</guid>
		</item>
	</channel>
</rss>
