<?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, 21 Nov 2009 09:35:04 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>Custom event</title>
			<link>http://www.daniweb.com/forums/thread240200.html</link>
			<pubDate>Sat, 21 Nov 2009 09:23:05 GMT</pubDate>
			<description>Hi, 
 
using old pure C, I was able to define a custom windows message. Once done, it was possible to broadcast the message across my application. Any object, with defined listener was able to receive and process the message. OK, right now, I need to do the same in C#. I have a class (let’s call it...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
using old pure C, I was able to define a custom windows message. Once done, it was possible to broadcast the message across my application. Any object, with defined listener was able to receive and process the message. OK, right now, I need to do the same in C#. I have a class (let’s call it ABC), which should broadcast a message in case something happens. The application has multiple forms (some of the are active, some of them not - that’s why I need general broadcast message/event instead of call a specific method). In case, something happens (e.g. ABC finishes some calculation), I want ABC to send a broadcast message (by broadcast I mean, the ABC class doesn’t know, who will receive it). The message will be processed by all active forms with defined listener. Please, could you let me know, how to send the message and how to define the listeners?<br />
<br />
Marek</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>mstrop</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240200.html</guid>
		</item>
		<item>
			<title>pleas</title>
			<link>http://www.daniweb.com/forums/thread240199.html</link>
			<pubDate>Sat, 21 Nov 2009 09:18:07 GMT</pubDate>
			<description>please can some one soluation this programmm???? i need tomrrow 
Your task is to implement a program that displays the calendar for a specific 
month in the Hijri year. The program prompts for the month number and the 
first day of the week for the given month. For example, if the user entered 9...</description>
			<content:encoded><![CDATA[<div><span style="color:Red">please can some one soluation this programmm???? i need tomrrow</span><br />
Your task is to implement a program that displays the calendar for a specific<br />
month in the Hijri year. The program prompts for the month number and the<br />
first day of the week for the given month. For example, if the user entered 9<br />
for the month (Ramadan) and 6 for the first day (Thursday) then the output<br />
should be similar to the following.<br />
Ramadan<br />
Sun Mon Tue Wed Thu Fri Sat<br />
1 2 3<br />
4 5 6 7 8 9 10<br />
11 12 13 14 15 16 17<br />
18 19 20 21 22 23 24<br />
25 26 27 28 29 30<br />
You may assume that all Hijri months have fixed 30 days and first day of the<br />
week (day 1) is Saturday. In fact, use the tables below to guide you.<br />
Month Name Month Number<br />
Muharram 1<br />
Safar 2<br />
Rabi’ al-awwal 3<br />
Rabi’ al-thani 4<br />
Jumada al-awwal 5<br />
Jumada al-thani 6<br />
Rajab 7<br />
Sha’aban 8<br />
Ramadan 9<br />
Shawwal 10<br />
Dhu al-Qi’dah 11<br />
Dhu al-Hijjah 12<br />
Day Number<br />
Saturday 1<br />
Sunday 2<br />
Monday 3<br />
Tuesday 4<br />
Wednesday 5<br />
Thursday 6<br />
Friday 7</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>spiritsad</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240199.html</guid>
		</item>
		<item>
			<title>Countdown Timer Forms</title>
			<link>http://www.daniweb.com/forums/thread240198.html</link>
			<pubDate>Sat, 21 Nov 2009 09:12:51 GMT</pubDate>
			<description>hey 
 
just wondering how i can make a countdown timer in a windows forms app 
 
or just how to display an updating value onto the form. 
 
wanted to make a countdown for number of seconds the user inputs. 
 
thnx.</description>
			<content:encoded><![CDATA[<div>hey<br />
<br />
just wondering how i can make a countdown timer in a windows forms app<br />
<br />
or just how to display an updating value onto the form.<br />
<br />
wanted to make a countdown for number of seconds the user inputs.<br />
<br />
thnx.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>evilguyme</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240198.html</guid>
		</item>
		<item>
			<title>web content management</title>
			<link>http://www.daniweb.com/forums/thread240197.html</link>
			<pubDate>Sat, 21 Nov 2009 09:11:29 GMT</pubDate>
			<description>Im learning to design a web site. I would like some one teach me how to design a form to obtain information from visitors to the site. I know how to create the form but I dont know how to make it retrieve the information or where the information should be.</description>
			<content:encoded><![CDATA[<div>Im learning to design a web site. I would like some one teach me how to design a form to obtain information from visitors to the site. I know how to create the form but I dont know how to make it retrieve the information or where the information should be.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum130.html">Site Layout and Usability</category>
			<dc:creator>umsatek</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240197.html</guid>
		</item>
		<item>
			<title>web content management</title>
			<link>http://www.daniweb.com/forums/thread240196.html</link>
			<pubDate>Sat, 21 Nov 2009 09:00:17 GMT</pubDate>
			<description>Im learning to design a web site. I would like some one teach me how to design a form to obtain information from visitors to the site. I know how to create the form but I dont know how to make it retrieve the information or where the information should be.</description>
			<content:encoded><![CDATA[<div>Im learning to design a web site. I would like some one teach me how to design a form to obtain information from visitors to the site. I know how to create the form but I dont know how to make it retrieve the information or where the information should be.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum130.html">Site Layout and Usability</category>
			<dc:creator>umsatek</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240196.html</guid>
		</item>
		<item>
			<title>HELP!!!</title>
			<link>http://www.daniweb.com/forums/thread240193.html</link>
			<pubDate>Sat, 21 Nov 2009 08:49:56 GMT</pubDate>
			<description>There anyone who can share me about HashMap.</description>
			<content:encoded><![CDATA[<div>There anyone who can share me about HashMap.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science</category>
			<dc:creator>ZER09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240193.html</guid>
		</item>
		<item>
			<title>VB.NET Deployment</title>
			<link>http://www.daniweb.com/forums/thread240191.html</link>
			<pubDate>Sat, 21 Nov 2009 08:43:46 GMT</pubDate>
			<description>Where should i store MS Access database after publishing my VB.NET Application.  
 
Database in bin folder before deployment.  
 
I am using connection string. 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Where should i store MS Access database after publishing my VB.NET Application. <br />
<br />
Database in bin folder before deployment. <br />
<br />
I am using connection string.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>adonweb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240191.html</guid>
		</item>
		<item>
			<title>Strange Error (Internet Error)</title>
			<link>http://www.daniweb.com/forums/thread240189.html</link>
			<pubDate>Sat, 21 Nov 2009 08:25:06 GMT</pubDate>
			<description>Ethernet Card has been Sending and Receiving a Byte.But internet 
is not working when i plug my rj45 Cable in another switch .Instead 
of Adsl Router.Router is also not pinging when i put cable in switch. 
I Am Getting Exclamation Mark.Kindly find the attachment also. 
Kindly let me know the...</description>
			<content:encoded><![CDATA[<div>Ethernet Card has been Sending and Receiving a Byte.But internet<br />
is not working when i plug my rj45 Cable in another switch .Instead<br />
of Adsl Router.Router is also not pinging when i put cable in switch.<br />
I Am Getting Exclamation Mark.Kindly find the attachment also.<br />
Kindly let me know the Idea.Any help would be highly appreciated.</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=12662&amp;d=1258791832" target="_blank">Switch.jpg</a> (51.6 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum23.html">Networking Hardware Configuration</category>
			<dc:creator>firoz.raj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240189.html</guid>
		</item>
		<item>
			<title><![CDATA[[Linker error] undefined reference to...]]></title>
			<link>http://www.daniweb.com/forums/thread240187.html</link>
			<pubDate>Sat, 21 Nov 2009 08:08:45 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 />
/////counter.h file/////<br />
////////////////////////<br />
#ifndef _COUNTER_H<br />
#define _COUNTER_H<br />
class Counter{<br />
<br />
&nbsp; &nbsp; private:<br />
&nbsp; &nbsp; &nbsp;  int counter;<br />
&nbsp; &nbsp; &nbsp;  int limit;<br />
&nbsp; &nbsp; &nbsp;  static int nCounters;<br />
&nbsp; &nbsp; public:<br />
&nbsp; &nbsp; &nbsp; &nbsp; Counter(int arg, int arg);<br />
&nbsp; &nbsp; &nbsp; &nbsp; void increment();<br />
&nbsp; &nbsp; &nbsp; &nbsp; void decrement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; int getValue();<br />
&nbsp; &nbsp; &nbsp; &nbsp; static int getNCounters();<br />
};<br />
#include &quot;counter.cpp&quot;<br />
#endif<br />
<br />
//////////////////////////<br />
/////counter.cpp file/////<br />
//////////////////////////<br />
#include &lt;string&gt;<br />
#include &quot;counter.h&quot;<br />
<br />
Counter::Counter(int a, int b){<br />
&nbsp;  counter=a;<br />
&nbsp;  limit=b;<br />
&nbsp;  if (&amp;nCounters==NULL){<br />
&nbsp;  nCounters=0;<br />
&nbsp;  }&nbsp; <br />
&nbsp;  nCounters++;<br />
}<br />
<br />
void Counter::increment()<br />
{<br />
&nbsp; &nbsp; if (counter&lt;limit) counter++;<br />
<br />
&nbsp;}<br />
void Counter::decrement()<br />
{<br />
&nbsp; if(counter&gt;0) counter--;<br />
}<br />
<br />
int Counter::getValue(){<br />
return counter;<br />
}<br />
<br />
int Counter::getNCounters(){<br />
int dummy=nCounters;<br />
return dummy;<br />
}</pre><br />
I'm getting a linker error every time I try to access nCounters.<br />
so i get this result when compiling:<br />
  [Linker error] undefined reference to `Counter::nCounters' <br />
  [Linker error] undefined reference to `Counter::nCounters' <br />
  [Linker error] undefined reference to `Counter::nCounters' <br />
  ld returned 1 exit status</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>bamcclur</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240187.html</guid>
		</item>
		<item>
			<title>Understandin numbers in programming.</title>
			<link>http://www.daniweb.com/forums/thread240186.html</link>
			<pubDate>Sat, 21 Nov 2009 08:07:48 GMT</pubDate>
			<description><![CDATA[I have some pretty basic questions about the different types of numbers in python (and other languages). 
What is the difference between an integer and a floating point number? I'd appreciate a detailed answer explaining some of the fundamentals.]]></description>
			<content:encoded><![CDATA[<div>I have some pretty basic questions about the different types of numbers in python (and other languages).<br />
What is the difference between an integer and a floating point number? I'd appreciate a detailed answer explaining some of the fundamentals.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>mahela007</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240186.html</guid>
		</item>
		<item>
			<title>welcome ...</title>
			<link>http://www.daniweb.com/forums/thread240185.html</link>
			<pubDate>Sat, 21 Nov 2009 07:51:52 GMT</pubDate>
			<description><![CDATA[I'm very hapy to be a member in this form 
 
I'm a student in Sultan Qaboos University 
 
I'm trying to use currect English word becuse my initail language is Arabic Language  
:) 
welcome agin]]></description>
			<content:encoded><![CDATA[<div>I'm very hapy to be a member in this form<br />
<br />
I'm a student in Sultan Qaboos University<br />
<br />
I'm trying to use currect English word becuse my initail language is Arabic Language <br />
:)<br />
welcome agin</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum165.html">Community Introductions</category>
			<dc:creator>aksn315</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240185.html</guid>
		</item>
		<item>
			<title>Please ... help me !!</title>
			<link>http://www.daniweb.com/forums/thread240184.html</link>
			<pubDate>Sat, 21 Nov 2009 07:40:58 GMT</pubDate>
			<description><![CDATA[welcome .... 
 
I'm starting learn java langauge , it is very intresting langauge .... 
 
I have this problem and I need your help... 
 
(( 
Write a java applet that will animate an analogue clock. The clock should look like the one shown in Figure 1. The background color of the clock, the color of...]]></description>
			<content:encoded><![CDATA[<div>welcome ....<br />
<br />
I'm starting learn java langauge , it is very intresting langauge ....<br />
<br />
I have this problem and I need your help...<br />
<br />
((<br />
<span style="color:Green">Write a java applet that will animate an analogue clock. The clock should look like the one shown in Figure 1. The background color of the clock, the color of the text, the color of the clock arms, the color of the clock ticks, the text that appears above the clock and the initial time should be read from a text file each time your applet starts. The clock should then be updated every second indefinitely. Figure 2 shows a sample input configuration file. Please note that the arms will be moving while the applet is running.<br />
<br />
 Figure 1: Sample run of the applet.</span><br />
<br />
see attached..<br />
<br />
Figure 2: Sample input configuration file.<br />
((<br />
<span style="color:green">Clock color: RED<br />
Font color: BLACK<br />
Clock arms color: YELLOW<br />
Clock ticks color: BLUE<br />
Top text: Welcome to clock animation<br />
Initial time: 06 50 00 PM<br />
<br />
))</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/png.gif" alt="File Type: png" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12661&amp;d=1258789118" target="_blank">Picture1.png</a> (10.7 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>aksn315</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240184.html</guid>
		</item>
		<item>
			<title>show full path in title bar</title>
			<link>http://www.daniweb.com/forums/thread240182.html</link>
			<pubDate>Sat, 21 Nov 2009 07:33:44 GMT</pubDate>
			<description><![CDATA[hi again every one ... 
in my computer , 
tools -> folder option ... we can select check box like show full path in address bar or show full path in titlebar. 
 
that same thing i want to do it through code or thorugh API?? 
 
how can i achieve this in C#?? 
 
can set any parameter or call any api...]]></description>
			<content:encoded><![CDATA[<div>hi again every one ...<br />
in my computer ,<br />
tools -&gt; folder option ... we can select check box like show full path in address bar or show full path in titlebar.<br />
<br />
that same thing i want to do it through code or thorugh API??<br />
<br />
how can i achieve this in C#??<br />
<br />
can set any parameter or call any api to show full path in title bar or can get path from address bar through code??<br />
<br />
any help please ...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>crazyboy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240182.html</guid>
		</item>
		<item>
			<title>Help please with JavaScript</title>
			<link>http://www.daniweb.com/forums/thread240181.html</link>
			<pubDate>Sat, 21 Nov 2009 07:33:41 GMT</pubDate>
			<description>Hi. I am new to this site so I hope you will all be able to help me with my problem. I am just starting to learn JavaScript so any help/feedback would be greatly appreciated. 
 
I have to make a form that if you put a temperature in a textbox (either Celsius or Fahrenheit) and you click on a button...</description>
			<content:encoded><![CDATA[<div>Hi. I am new to this site so I hope you will all be able to help me with my problem. I am just starting to learn JavaScript so any help/feedback would be greatly appreciated.<br />
<br />
I have to make a form that if you put a temperature in a textbox (either Celsius or Fahrenheit) and you click on a button (To Celsius or To Fahrenheit) it will convert it to the corresponding temperature which will appear in another textbox.<br />
<br />
I have gotten this far but am getting a NaN value in the coverted temperature<br />
<br />
I have been trying to work this out for over a week so any help would be really appreciated.<br />
<br />
My code is:<br />
<br />
&lt;/form&gt;<br />
<br />
&lt;!-- used to calculate the temperature conversion from Celcius to Farenheit and Farenheit to Celcius<br />
!--&gt;<br />
	&lt;script&gt;<br />
<br />
		function celcius()<br />
		{<br />
			document.getElementById(&quot;answers&quot;).value = parseFloat(document.getElementById(&quot;input&quot;).value) + Math.round(100/(212-32) * (this.value - 32 ));<br />
		}<br />
<br />
		function farenheit()<br />
		{<br />
			document.getElementById(&quot;answers&quot;).value = parseFloat(document.getElementById(&quot;input&quot;).value) + Math.round((212-32)/100 * this.value + 32);<br />
		}<br />
	&lt;/script&gt;<br />
&lt;h1&gt;Temperature Conversion Tool&lt;/h1&gt;<br />
&lt;h3&gt;Enter a value into the first box below, then click on what it is to be converted to<br />
Temperature&lt;/h3&gt;<br />
&lt;form name=&quot;temperature&quot;&gt;<br />
&amp;nbsp;&lt;input id=&quot;input&quot; value=&quot;0&quot; type=&quot;text&quot;&gt; <br />
&amp;nbsp;&lt;input id=&quot;answers&quot; value=&quot;0&quot; type=&quot;text&quot;&gt;<br />
&lt;br&gt;<br />
&lt;input value=&quot;To Celcius&quot; onClick=&quot;celcius() &quot; type=&quot;button&quot;&gt;<br />
&lt;input value=&quot;To Farenheit&quot; onClick=&quot;farenheit()<br />
&quot; type=&quot;button&quot;&gt;<br />
&lt;input name=&quot;reset&quot; value=&quot;Reset&quot; type=&quot;reset&quot;&gt;&lt;br&gt;<br />
&lt;/form&gt;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>LizzyJo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240181.html</guid>
		</item>
		<item>
			<title>how to find recent external links in yahoo?</title>
			<link>http://www.daniweb.com/forums/thread240180.html</link>
			<pubDate>Sat, 21 Nov 2009 07:25:41 GMT</pubDate>
			<description>hi, 
i use* linkdomain:domain.com -site:domain.com* to get external links for a domain in Yahoo! . 
my question is how i can find recent results in this case? i mean 1-2 days ago results . 
in advance option of Yahoo the minimum duration is 2 months ago.but i need 1-2 days ago.</description>
			<content:encoded><![CDATA[<div>hi,<br />
i use<span style="font-weight:bold"> linkdomain:domain.com -site:domain.com</span> to get external links for a domain in Yahoo! .<br />
my question is how i can find recent results in this case? i mean 1-2 days ago results .<br />
in advance option of Yahoo the minimum duration is 2 months ago.but i need 1-2 days ago.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum45.html">Search Engine Optimization</category>
			<dc:creator>fumnimda</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240180.html</guid>
		</item>
		<item>
			<title>Uploading my website</title>
			<link>http://www.daniweb.com/forums/thread240179.html</link>
			<pubDate>Sat, 21 Nov 2009 06:57:41 GMT</pubDate>
			<description>I have a web application that I create that works great on my computer. I have an account with 1and1, so I uploaded the database and the files. 
 
I am also using Linq to SQL, so I have a dbml file. But, everytime I run a function that needs the database, I get a file not found error. 
 
I have...</description>
			<content:encoded><![CDATA[<div>I have a web application that I create that works great on my computer. I have an account with 1and1, so I uploaded the database and the files.<br />
<br />
I am also using Linq to SQL, so I have a dbml file. But, everytime I run a function that needs the database, I get a file not found error.<br />
<br />
I have doubts that it has to do something with Web.config file. This is the snippet for the connection part<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;add name=&quot;dbEntities&quot; connectionString=&quot;metadata=res://*/common.dbModel.csdl|res://*/common.dbModel.ssdl|res://*/common.dbModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;Data Source=****.net,1433;Initial Catalog=db****;Persist Security Info=True;User ID=dbo*****;MultipleActiveResultSets=True&amp;quot;&quot; providerName=&quot;System.Data.EntityClient&quot; /&gt;<br />
<br />
&lt;add name=&quot;dbRxReliefConnectionString&quot; connectionString=&quot;Data Source=*****.net,1433;Initial Catalog=db*****;Persist Security Info=True;User ID=dbo******;Password=*******&quot; providerName=&quot;System.Data.SqlClient&quot; /&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum18.html">ASP.NET</category>
			<dc:creator>all4peace</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240179.html</guid>
		</item>
		<item>
			<title>IIS deadlock issue</title>
			<link>http://www.daniweb.com/forums/thread240178.html</link>
			<pubDate>Sat, 21 Nov 2009 06:51:22 GMT</pubDate>
			<description>hello buddies.. 
i am facing a serious issue with my live site,the site runs smooth for say 1-2hrs or even days,but all of a sudden (not able to reproduce the event on which this is happening)it hangs sometime .And any http request to the site results in IIS hang.the browser progress bar stuck ....</description>
			<content:encoded><![CDATA[<div>hello buddies..<br />
i am facing a serious issue with my live site,the site runs smooth for say 1-2hrs or even days,but all of a sudden (not able to reproduce the event on which this is happening)it hangs sometime .And any http request to the site results in IIS hang.the browser progress bar stuck . when i check the event view i found following messages<br />
<br />
'c:\windows\microsoft.net\framework64\v2.0.50727\aspnet_isapi.dll' reported itself as unhealthy for the following reason: 'Deadlock detected'.<br />
and<br />
'a process serving application pool '..' exceed time limits during shut down.The process id was '3576'<br />
<br />
i tried<br />
#1. checking the database connection and i found there are no open connection everything looks fine in sql server<br />
#place the dispose() method every where ,just to stop the memory leak issue<br />
i am using visual studio 2008 c# and its a web application in c#<br />
Can there be issue with HTTP Compression as iam using deflate HTTP comression<br />
also i ma using sql server for session managment<br />
<br />
i request all of u to help me on this issue what could be the cause</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum18.html">ASP.NET</category>
			<dc:creator>hello.vickey</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240178.html</guid>
		</item>
		<item>
			<title>HijackThis log--anything bad?</title>
			<link>http://www.daniweb.com/forums/thread240177.html</link>
			<pubDate>Sat, 21 Nov 2009 06:45:49 GMT</pubDate>
			<description><![CDATA[I've had my laptop since June or July of 2008 and realised I've never posted a HJT log anywhere, nor even downloaded it until tonight, so here's my log.  Anything I should get rid of?  I'm trying to make my laptop run faster (I just did a clean-up and defrag tonight and it seems to have helped). 
...]]></description>
			<content:encoded><![CDATA[<div>I've had my laptop since June or July of 2008 and realised I've never posted a HJT log anywhere, nor even downloaded it until tonight, so here's my log.  Anything I should get rid of?  I'm trying to make my laptop run faster (I just did a clean-up and defrag tonight and it seems to have helped).<br />
<br />
Logfile of Trend Micro HijackThis v2.0.2<br />
Scan saved at 10:23:45 PM, on 11/20/2009<br />
Platform: Windows XP SP3 (WinNT 5.01.2600)<br />
MSIE: Internet Explorer v6.00 SP3 (6.00.2900.5512)<br />
Boot mode: Normal<br />
<br />
Running processes:<br />
C:\WINDOWS\System32\smss.exe<br />
C:\WINDOWS\system32\winlogon.exe<br />
C:\WINDOWS\system32\services.exe<br />
C:\WINDOWS\system32\lsass.exe<br />
C:\WINDOWS\system32\svchost.exe<br />
C:\WINDOWS\System32\svchost.exe<br />
C:\Program Files\AVG\AVG9\avgchsvx.exe<br />
C:\Program Files\AVG\AVG9\avgrsx.exe<br />
C:\Program Files\AVG\AVG9\avgcsrvx.exe<br />
C:\WINDOWS\system32\spoolsv.exe<br />
C:\WINDOWS\System32\atievxx.exe<br />
C:\Program Files\AVG\AVG9\avgwdsvc.exe<br />
C:\Program Files\Java\jre6\bin\jqs.exe<br />
C:\WINDOWS\System32\svchost.exe<br />
C:\WINDOWS\Explorer.EXE<br />
C:\Program Files\Google\Update\GoogleUpdate.exe<br />
C:\Program Files\AVG\AVG9\avgemc.exe<br />
C:\Program Files\AVG\AVG9\avgnsx.exe<br />
C:\Program Files\AVG\AVG9\avgcsrvx.exe<br />
C:\Program Files\CyberLink\PowerDVD\PDVDServ.exe<br />
C:\Program Files\Google\Gmail Notifier\gnotify.exe<br />
C:\Program Files\Java\jre6\bin\jusched.exe<br />
C:\PROGRA~1\AVG\AVG9\avgtray.exe<br />
C:\Program Files\DNA\btdna.exe<br />
C:\Program Files\Spybot - Search &amp; Destroy\TeaTimer.exe<br />
C:\WINDOWS\System32\svchost.exe<br />
C:\Program Files\Last.fm\LastFM.exe<br />
C:\Documents and Settings\TX\Desktop\HijackThis.exe<br />
<br />
R3 - URLSearchHook: AVG Security Toolbar BHO - {A3BC75A2-1F87-4686-AA43-5347D756017C} - C:\Program Files\AVG\AVG9\Toolbar\IEToolbar.dll<br />
R3 - URLSearchHook: (no name) - *{CFBFAE00-17A6-11D0-99CB-00C04FD64497} - (no file)<br />
O2 - BHO: RealPlayer Download and Record Plugin for Internet Explorer - {3049C3E9-B461-4BC5-8870-4C09146192CA} - c:\program files\real\realplayer\rpbrowserrecordplugin.dll<br />
O2 - BHO: WormRadar.com IESiteBlocker.NavFilter - {3CA2F312-6F6E-4B53-A66E-4E65E497C8C0} - C:\Program Files\AVG\AVG9\avgssie.dll<br />
O2 - BHO: AVG Security Toolbar BHO - {A3BC75A2-1F87-4686-AA43-5347D756017C} - C:\Program Files\AVG\AVG9\Toolbar\IEToolbar.dll<br />
O2 - BHO: Java(tm) Plug-In 2 SSV Helper - {DBC80044-A445-435b-BC74-9C25C1C588A9} - C:\Program Files\Java\jre6\bin\jp2ssv.dll<br />
O2 - BHO: Google Gears Helper - {E0FEFE40-FBF9-42AE-BA58-794CA7E3FB53} - C:\Program Files\Google\Google Gears\Internet Explorer\0.5.33.0\gears.dll<br />
O2 - BHO: JQSIEStartDetectorImpl - {E7E6F031-17CE-4C07-BC86-EABFE594F69C} - C:\Program Files\Java\jre6\lib\deploy\jqs\ie\jqs_plugin.dll<br />
O3 - Toolbar: AVG Security Toolbar - {CCC7A320-B3CA-4199-B1A6-9F516DD69829} - C:\Program Files\AVG\AVG9\Toolbar\IEToolbar.dll<br />
O4 - HKLM\..\Run: [QuickTime Task] &quot;C:\Program Files\QuickTime\QTTask.exe&quot; -atboottime<br />
O4 - HKLM\..\Run: [RemoteControl] &quot;C:\Program Files\CyberLink\PowerDVD\PDVDServ.exe&quot;<br />
O4 - HKLM\..\Run: [lxczbmgr.exe] &quot;C:\Program Files\Lexmark 1200 Series\lxczbmgr.exe&quot;<br />
O4 - HKLM\..\Run: [FaxCenterServer] &quot;C:\Program Files\Lexmark Fax Solutions\fm3032.exe&quot; /s<br />
O4 - HKLM\..\Run: [{0228e555-4f9c-4e35-a3ec-b109a192b4c2}] C:\Program Files\Google\Gmail Notifier\gnotify.exe<br />
O4 - HKLM\..\Run: [SunJavaUpdateSched] &quot;C:\Program Files\Java\jre6\bin\jusched.exe&quot;<br />
O4 - HKLM\..\Run: [AVG9_TRAY] C:\PROGRA~1\AVG\AVG9\avgtray.exe<br />
O4 - HKCU\..\Run: [BitTorrent DNA] &quot;C:\Program Files\DNA\btdna.exe&quot;<br />
O4 - HKCU\..\Run: [SpybotSD TeaTimer] C:\Program Files\Spybot - Search &amp; Destroy\TeaTimer.exe<br />
O8 - Extra context menu item: E&amp;xport to Microsoft Excel - res://C:\PROGRA~1\MICROS~2\OFFICE11\EXCEL.EXE/3000<br />
O9 - Extra button: (no name) - {09C04DA7-5B76-4EBC-BBEE-B25EAC5965F5} - C:\Program Files\Google\Google Gears\Internet Explorer\0.5.33.0\gears.dll<br />
O9 - Extra 'Tools' menuitem: &amp;Gears Settings - {09C04DA7-5B76-4EBC-BBEE-B25EAC5965F5} - C:\Program Files\Google\Google Gears\Internet Explorer\0.5.33.0\gears.dll<br />
O9 - Extra button: Research - {92780B25-18CC-41C8-B9BE-3C9C571A8263} - C:\PROGRA~1\MICROS~2\OFFICE11\REFIEBAR.DLL<br />
O9 - Extra button: (no name) - {e2e2dd38-d088-4134-82b7-f2ba38496583} - C:\WINDOWS\Network Diagnostic\xpnetdiag.exe<br />
O9 - Extra 'Tools' menuitem: @xpsp3res.dll,-20001 - {e2e2dd38-d088-4134-82b7-f2ba38496583} - C:\WINDOWS\Network Diagnostic\xpnetdiag.exe<br />
O9 - Extra button: Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:\Program Files\Messenger\msmsgs.exe<br />
O9 - Extra 'Tools' menuitem: Windows Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:\Program Files\Messenger\msmsgs.exe<br />
O18 - Protocol: linkscanner - {F274614C-63F8-47D5-A4D1-FBDDE494F8D1} - C:\Program Files\AVG\AVG9\avgpp.dll<br />
O18 - Protocol: skype4com - {FFC8B962-9B40-4DFF-9458-1830C7DD7F5D} - C:\PROGRA~1\COMMON~1\Skype\SKYPE4~1.DLL<br />
O20 - Winlogon Notify: avgrsstarter - C:\WINDOWS\SYSTEM32\avgrsstx.dll<br />
O23 - Service: AVG Free E-mail Scanner (avg9emc) - AVG Technologies CZ, s.r.o. - C:\Program Files\AVG\AVG9\avgemc.exe<br />
O23 - Service: AVG Free WatchDog (avg9wd) - AVG Technologies CZ, s.r.o. - C:\Program Files\AVG\AVG9\avgwdsvc.exe<br />
O23 - Service: Java Quick Starter (JavaQuickStarterService) - Sun Microsystems, Inc. - C:\Program Files\Java\jre6\bin\jqs.exe<br />
<br />
--<br />
End of file - 4975 bytes</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum64.html">Viruses, Spyware and other Nasties</category>
			<dc:creator>MysticalChicken</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240177.html</guid>
		</item>
		<item>
			<title>Help with coloring JButtons</title>
			<link>http://www.daniweb.com/forums/thread240176.html</link>
			<pubDate>Sat, 21 Nov 2009 06:39:44 GMT</pubDate>
			<description>Okay so far this is what i have, i havent really gotten very far but id like to  get the layout all set before i try to tie things together. The problem im having is getting the JButtons colored. In order for my game to be like the     game simon with the four colors, i have the make the JButtons...</description>
			<content:encoded><![CDATA[<div>Okay so far this is what i have, i havent really gotten very far but id like to  get the layout all set before i try to tie things together. The problem im having is getting the JButtons colored. In order for my game to be like the     game simon with the four colors, i have the make the JButtons those colors. I have tried to use setBackRound but it didnt work. Any help will do.<br />
<br />
 <pre style="margin:20px; line-height:13px">public class Project extends JFrame {<br />
&nbsp;  public Project() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; super();<br />
&nbsp; &nbsp; &nbsp; &nbsp; JPanel works = new JPanel();<br />
&nbsp; &nbsp; &nbsp; &nbsp; JButton red = new JButton(&quot;RED&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; JButton green = new JButton(&quot;GREEN&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; JButton blue = new JButton(&quot;BLUE&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; JButton white = new JButton(&quot;WHITE&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; red.addActionListener(new ButtonHandler());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; add(new JLabel());<br />
&nbsp; &nbsp; &nbsp; &nbsp; setLayout(new GridLayout(3,2));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; works.setBackground(Color.yellow);<br />
&nbsp; &nbsp; &nbsp; &nbsp; add(red);<br />
&nbsp; &nbsp; &nbsp; &nbsp; add(green);<br />
&nbsp; &nbsp; &nbsp; &nbsp; add(blue);<br />
&nbsp; &nbsp; &nbsp; &nbsp; add(white);<br />
&nbsp; &nbsp; &nbsp; &nbsp; add(works);<br />
&nbsp; &nbsp;  }<br />
&nbsp;  private class ButtonHandler implements ActionListener {<br />
&nbsp; &nbsp; &nbsp; &nbsp; public void actionPerformed(ActionEvent e){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
}</pre><br />
As yo can see i can add color to the panel but not the button</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>c.pentasuglia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240176.html</guid>
		</item>
		<item>
			<title>how do i get expandable veritical menu  with stable  in navigation</title>
			<link>http://www.daniweb.com/forums/thread240175.html</link>
			<pubDate>Sat, 21 Nov 2009 06:31:52 GMT</pubDate>
			<description>hi all, i want  expandable veritical menu . when click on header it will another page with expandable state is same as previous one. any one having this script help me.......</description>
			<content:encoded><![CDATA[<div>hi all, i want  expandable veritical menu . when click on header it will another page with expandable state is same as previous one. any one having this script help me.......</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/thread240175.html</guid>
		</item>
		<item>
			<title>Hardware and software inventory.</title>
			<link>http://www.daniweb.com/forums/thread240174.html</link>
			<pubDate>Sat, 21 Nov 2009 06:29:54 GMT</pubDate>
			<description><![CDATA[Hardware Inventory - enables you to collect hardware and software inventory data from remote computers. It's free program. Home page: Hardware and software inventory (http://hardwareinventory.net) .]]></description>
			<content:encoded><![CDATA[<div>Hardware Inventory - enables you to collect hardware and software inventory data from remote computers. It's free program. Home page: <a rel="nofollow" class="t" href="http://hardwareinventory.net" target="_blank">Hardware and software inventory</a> .</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum37.html"><![CDATA[Windows tips 'n' tweaks]]></category>
			<dc:creator>Nick77</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240174.html</guid>
		</item>
		<item>
			<title>wondering some things about lists</title>
			<link>http://www.daniweb.com/forums/thread240173.html</link>
			<pubDate>Sat, 21 Nov 2009 06:25:37 GMT</pubDate>
			<description><![CDATA[for example if i wanted to add a list to another list, like: 
a = [a,b,c] 
b = [1,2,3] 
my code: 
  <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...]]></description>
			<content:encoded><![CDATA[<div>for example if i wanted to add a list to another list, like:<br />
a = [a,b,c]<br />
b = [1,2,3]<br />
my code:<br />
 <pre style="margin:20px; line-height:13px">def add(a, b):<br />
<br />
&nbsp; &nbsp; a = a.append(b)</pre><br />
it would output ['a', 'b', 'c', [1, 2, 3]]<br />
what do i have to change to make it output ['a', 'b', 'c', 1, 2, 3] without using the .extend() method?<br />
<br />
---<br />
how can i create a function that can split a list into two lists with like equal elements in each list, which in the end both lists together would have all the elements in the original list?<br />
like:<br />
original = [1,2,3,4,5,6]<br />
<br />
it would output something like<br />
[1,2,3] [4,5,6]<br />
<br />
 <pre style="margin:20px; line-height:13px">def half(l):<br />
&nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; a = []<br />
&nbsp; &nbsp; b = []<br />
<br />
&nbsp; &nbsp; for i in range(len(l)/2):<br />
&nbsp; &nbsp; &nbsp; &nbsp; a = a + l[i]<br />
<br />
&nbsp; &nbsp; for i in range(len(l)/2 - 1):<br />
&nbsp; &nbsp; &nbsp; &nbsp; b = b+ l[i]<br />
<br />
<br />
&nbsp; &nbsp; return a, b</pre>I know it's something wrong with my for loops, the range?<br />
<br />
---<br />
<br />
Also just wondering is there any way to sort a list without using the .sort method?<br />
like <br />
[1,2,4,3,2] <br />
will output<br />
[1,2,2,3,4]<br />
<br />
Thanks for any hints/help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>saikeraku</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240173.html</guid>
		</item>
		<item>
			<title>can anybody help me with this problem?</title>
			<link>http://www.daniweb.com/forums/thread240172.html</link>
			<pubDate>Sat, 21 Nov 2009 06:24:39 GMT</pubDate>
			<description><![CDATA[i keeps getting error i going to break my head to solve this problem =.= 
 
what i am doing is using the a[3][3] to minus 128 but seem i get the problem in minus 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>i keeps getting error i going to break my head to solve this problem =.=<br />
<br />
what i am doing is using the a[3][3] to minus 128 but seem i get the problem in minus<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
#include &lt;iomanip&gt;<br />
#include &lt;cmath&gt;<br />
#include &lt;cstdlib&gt;<br />
using namespace std;<br />
<br />
double shifted_block(double array[3][3]);<br />
<br />
<br />
int main ()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
// input number in 3X3 array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; double a[3][3];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; double zero_zero;<br />
&nbsp; &nbsp; &nbsp; &nbsp; *(a+0)[0] = zero_zero;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double zero_one;<br />
&nbsp; &nbsp; &nbsp; &nbsp; *(a+0)[1] = zero_one;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double zero_two;<br />
&nbsp; &nbsp; &nbsp; &nbsp; *(a+0)[2] = zero_two;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Enter 1st row&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; zero_zero &gt;&gt; zero_one &gt;&gt; zero_two;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; double&nbsp; one_zero;<br />
&nbsp; &nbsp; &nbsp; &nbsp; *(a+1)[0] = one_zero;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double one_one;<br />
&nbsp; &nbsp; &nbsp; &nbsp; *(a+1)[1] = one_one;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double one_two;<br />
&nbsp; &nbsp; &nbsp; &nbsp; *(a+1)[2] = one_two;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Enter 2nd row&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; one_zero &gt;&gt; one_one &gt;&gt; one_two;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; double two_zero;<br />
&nbsp; &nbsp; &nbsp; &nbsp; *(a+2)[0] = two_zero;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double two_one;<br />
&nbsp; &nbsp; &nbsp; &nbsp; *(a+2)[1] = two_one;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double two_two;<br />
&nbsp; &nbsp; &nbsp; &nbsp; *(a+2)[2] = two_two;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;enter 3nd row&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; two_zero &gt;&gt; two_one &gt;&gt; two_two;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; zero_zero &lt;&lt; &quot; &quot; &lt;&lt; zero_one &lt;&lt; &quot; &quot; &lt;&lt; zero_two &lt;&lt; &quot; &quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; one_zero&nbsp; &lt;&lt; &quot; &quot; &lt;&lt; one_one&nbsp; &lt;&lt; &quot; &quot; &lt;&lt; one_two&nbsp; &lt;&lt; &quot; &quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; two_zero &lt;&lt; &quot; &quot; &lt;&lt; two_one &lt;&lt; &quot; &quot; &lt;&lt; two_two &lt;&lt; &quot; &quot; &lt;&lt; endl;<br />
<br />
//display out<br />
<br />
&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; cout &lt;&lt; shifted_block(zero_zero) &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
// to minus 128 of the value input<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
double shifted_block(double array[3][3])<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; for (int countrow = 0; countrow &lt; 3; countrow++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; for (int countcolumn = 0; countcolumn &lt; 3; countcolumn++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; return array[countrow][countcolumn] = array[countrow][countcolumn] - 128;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
}<br />
<br />
<br />
<br />
<br />
<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>bestnone</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240172.html</guid>
		</item>
		<item>
			<title>Error in simple C menu</title>
			<link>http://www.daniweb.com/forums/thread240171.html</link>
			<pubDate>Sat, 21 Nov 2009 06:21:58 GMT</pubDate>
			<description><![CDATA[If I run the program, and select q, it will quit correctly.  If I select e it goes to the edit menu *but prints it twice*.  If I then select q it goes to the main menu *and prints the default case, "please select from menu", then prints the main menu again*.  If I select q now, it goes to the *edit...]]></description>
			<content:encoded><![CDATA[<div>If I run the program, and select q, it will quit correctly.  If I select e it goes to the edit menu <span style="font-weight:bold">but prints it twice</span>.  If I then select q it goes to the main menu <span style="font-weight:bold">and prints the default case, &quot;please select from menu&quot;, then prints the main menu again</span>.  If I select q now, it goes to the <span style="font-weight:bold">edit menu</span>, not quitting the program like it did before. So now it's stuck in a loop between main and edit when I select q.<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;stdio.h&gt;&nbsp; <br />
#include &lt;stdlib.h&gt;<br />
<br />
void edit(void){<br />
<br />
printf (&quot;\nEDIT MENU\n&quot;);<br />
printf (&quot;&nbsp; (a)Add\n&quot;);<br />
printf (&quot;&nbsp; (p)Display\n&quot;);<br />
printf (&quot;&nbsp; (i)Reutrn\n&quot;);<br />
printf (&quot;&nbsp; (o)Check Out\n&quot;);<br />
printf (&quot;&nbsp; (d)Delete\n&quot;);<br />
printf (&quot;&nbsp; (q)Main Menu\n&quot;);<br />
<br />
<br />
char choice;<br />
scanf (&quot;%c&quot;,&amp;choice); <br />
<br />
switch (choice) {<br />
<br />
case 'a':<br />
&nbsp; system(&quot;./add&quot;);<br />
&nbsp; break;<br />
&nbsp; <br />
<br />
case 'p':<br />
&nbsp; system(&quot;./display&quot;);<br />
&nbsp; break;<br />
<br />
case 'i':<br />
&nbsp; system(&quot;./return&quot;);<br />
&nbsp; break;<br />
<br />
case 'o':<br />
&nbsp; system(&quot;./checkout&quot;);<br />
&nbsp; break;<br />
<br />
case 'd':<br />
&nbsp; system(&quot;./delete&quot;);<br />
&nbsp; break;<br />
<br />
case 'q':<br />
&nbsp; main();<br />
<br />
default:<br />
&nbsp; edit();<br />
<br />
}<br />
<br />
}<br />
<br />
void reports(void)<br />
{<br />
<br />
}<br />
<br />
void add(void)<br />
{<br />
}<br />
<br />
void del(voi)<br />
{<br />
}<br />
<br />
int main(void){<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
printf (&quot;MAIN MENU\n&quot;);<br />
printf (&quot;&nbsp; (e)Edit\n&quot;);<br />
printf (&quot;&nbsp; (r)Reports\n&quot;);<br />
printf (&quot;&nbsp; (q)Quit\n&quot;);<br />
<br />
char choice;<br />
scanf (&quot;%c&quot;,&amp;choice); <br />
<br />
switch (choice) {<br />
&nbsp; case 'e':<br />
&nbsp; edit();<br />
&nbsp; break;<br />
&nbsp; <br />
&nbsp; <br />
&nbsp; case 'r':<br />
&nbsp; reports();<br />
&nbsp; break;<br />
&nbsp; <br />
<br />
&nbsp; case 'q':<br />
&nbsp; break;<br />
<br />
&nbsp; default: <br />
&nbsp; printf(&quot;Choose from the menu\n&quot;);<br />
&nbsp; main();<br />
}<br />
return 0;<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>Mattpd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240171.html</guid>
		</item>
		<item>
			<title>pthread_create call fell into a black hole</title>
			<link>http://www.daniweb.com/forums/thread240169.html</link>
			<pubDate>Sat, 21 Nov 2009 06:12:18 GMT</pubDate>
			<description><![CDATA[Hi, 
 
The problem I am facing is that I don't understand the code mentioned in the following: 
 
  <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...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
The problem I am facing is that I don't understand the code mentioned in the following:<br />
<br />
 <pre style="margin:20px; line-height:13px">25: /******** this is the main thread's code */<br />
26: int main(int argc, char *argv[])<br />
27: {<br />
28:&nbsp;  int i;<br />
29:&nbsp;  int retvals[NTHREADS];<br />
30: <br />
31:&nbsp;  /* init retvals */<br />
32:&nbsp;  for (i=0; i&lt;NTHREADS; i++) retvals[i]=-1;<br />
33: <br />
34:&nbsp;  /* do it */<br />
35:&nbsp;  <span style="font-weight:bold">pt_fork(NTHREADS,&nbsp; &nbsp; /* # of threads to create&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */<br />
36:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  hola,&nbsp; &nbsp; &nbsp; &nbsp; /* routine they execute&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */<br />
37:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  retvals,&nbsp; &nbsp;  /* a piece of global data they all share */<br />
38:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  NULL);&nbsp; &nbsp; &nbsp;  /* ignore exit codes&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  */</span><br />
39: <br />
40:&nbsp;  /* check return values */<br />
41:&nbsp;  for (i=0; i&lt;NTHREADS; i++)<br />
42:&nbsp; &nbsp;  if (retvals[i]!=i) {<br />
43:&nbsp; &nbsp; &nbsp;  fprintf(stderr,&quot;thread %d didn't return a value\n&quot;,i);<br />
44:&nbsp; &nbsp; &nbsp;  exit(1);<br />
45:&nbsp; &nbsp;  }<br />
46:&nbsp;  return(0);<br />
47: }</pre><br />
The pt_fork's source is given as:<br />
<br />
[<a rel="nofollow" class="t" href="http://math.arizona.edu/~swig/documentation/pthreads/pt.h]" target="_blank">http://math.arizona.edu/~swig/docume...pthreads/pt.h]</a><br />
 <pre style="margin:20px; line-height:13px">extern void _pt_fork(int nthreads,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  pt_startroutine_t start,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  pt_addr_t arg,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  pt_addr_t *exitcodes);<br />
<br />
#define pt_fork(nt,start,arg,codes) \<br />
&nbsp; _pt_fork(nt,(pt_startroutine_t) start, \<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  (pt_addr_t) arg,(pt_addr_t *) codes)</pre><br />
As can be seen from the &quot;pt.h&quot;, the function body of _pt_fork is empty. I am not convinced where the pthread_create is being called from within _pt_fork. Ultimately, threads must be created by calling pthread_create. But the main function above calls the pt_fork(), and the call to pthread_create seems to go into a black hole defined by pt_fork.<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>johndoe444</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240169.html</guid>
		</item>
		<item>
			<title>Windows 7 update this week</title>
			<link>http://www.daniweb.com/forums/thread240168.html</link>
			<pubDate>Sat, 21 Nov 2009 06:04:25 GMT</pubDate>
			<description>After the update the Broadband connection went down.  No link to the modem according to the modem light. 
 
Is there something in the update that might affect the networking capabilities of windows 7 ultimate. It was working fine prior to that without question</description>
			<content:encoded><![CDATA[<div>After the update the Broadband connection went down.  No link to the modem according to the modem light.<br />
<br />
Is there something in the update that might affect the networking capabilities of windows 7 ultimate. It was working fine prior to that without question</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum38.html">Windows Vista and Windows 7</category>
			<dc:creator>Renshi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240168.html</guid>
		</item>
		<item>
			<title>internal mail</title>
			<link>http://www.daniweb.com/forums/thread240167.html</link>
			<pubDate>Sat, 21 Nov 2009 06:01:05 GMT</pubDate>
			<description><![CDATA[hello, 
  i want to build a internal mailing system in website. 
only registered users can send mails to each other. 
i have taken "compose mail","inbox","sent items","trash". 
i want to create database now. can you please tell me cloumn names for this]]></description>
			<content:encoded><![CDATA[<div>hello,<br />
  i want to build a internal mailing system in website.<br />
only registered users can send mails to each other.<br />
i have taken &quot;compose mail&quot;,&quot;inbox&quot;,&quot;sent items&quot;,&quot;trash&quot;.<br />
i want to create database now. can you please tell me cloumn names for this</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>muralikalpana</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240167.html</guid>
		</item>
		<item>
			<title><![CDATA[I can't understand.]]></title>
			<link>http://www.daniweb.com/forums/thread240166.html</link>
			<pubDate>Sat, 21 Nov 2009 05:59:28 GMT</pubDate>
			<description>Plz help me. I am unable to understand this problem statement. Can Plz someone help me? 
 
 
*Problem Statement: File Handling in C/C++* 
On the basis of the given scenario create a file Expenses.txt, Open the file and copy into another  Expenses2.txt, Also show output on screen 
A college has...</description>
			<content:encoded><![CDATA[<div>Plz help me. I am unable to understand this problem statement. Can Plz someone help me?<br />
<br />
<br />
<span style="font-weight:bold">Problem Statement: File Handling in C/C++</span><br />
On the basis of the given scenario create a file Expenses.txt, Open the file and copy into another  Expenses2.txt, Also show output on screen<br />
A college has announced the total budget of 50,000Rs.for each game. Games are done four times in a year. Take expenses as an input from user. <br />
Calculate the average expenses for a game:<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-weight:bold">1.</span>	If the expenses greater than 80% show as” Very Expensive”.<br />
<span style="font-weight:bold">2.</span>	If the expenses  are greater than 60% and less than 80% than show “Expensive ”<br />
<span style="font-weight:bold">3.</span>	If the expenses  are greater than 50% and less than 60% than show “Less Expensive ”<br />
<span style="font-weight:bold">4.</span>	If the expenses are greater than 40% and less than 50% than show “Not Costly”.<br />
<span style="font-weight:bold">5.</span>	If the expenses are less than 40% than show “Best”.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>zemly</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240166.html</guid>
		</item>
		<item>
			<title>Computer randomly turs it self off whenever it wants.</title>
			<link>http://www.daniweb.com/forums/thread240165.html</link>
			<pubDate>Sat, 21 Nov 2009 05:52:55 GMT</pubDate>
			<description>I dont know much about operating systems so i wonder if it would be some process that is running in the backround or what, but mostly when i am playing games the whole laptop will just turn off. No messages or anything, just close. And i have allready checked the battery and allways leave it...</description>
			<content:encoded><![CDATA[<div>I dont know much about operating systems so i wonder if it would be some process that is running in the backround or what, but mostly when i am playing games the whole laptop will just turn off. No messages or anything, just close. And i have allready checked the battery and allways leave it plugged in just in case. The games i am running are not high end either. They are all ten plus years old. (But not dos old.) Please help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum38.html">Windows Vista and Windows 7</category>
			<dc:creator>jamonkeya50</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240165.html</guid>
		</item>
		<item>
			<title>Exchange link with Article based sites</title>
			<link>http://www.daniweb.com/forums/thread240164.html</link>
			<pubDate>Sat, 21 Nov 2009 05:52:17 GMT</pubDate>
			<description>If you are interested in exchanging link with a PR 2 Articles website, You can contact me at  
info@plutoscript.com</description>
			<content:encoded><![CDATA[<div>If you are interested in exchanging link with a PR 2 Articles website, You can contact me at <br />
<a href="mailto:info@plutoscript.com">info@plutoscript.com</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum158.html">Relevant Link Exchanges</category>
			<dc:creator>plutoscript.com</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240164.html</guid>
		</item>
		<item>
			<title>Confusion about one of my project about security</title>
			<link>http://www.daniweb.com/forums/thread240163.html</link>
			<pubDate>Sat, 21 Nov 2009 05:36:08 GMT</pubDate>
			<description>I got this project about building a secure communication between 2 user, with the help of a server. And I was confused. 
-------------------------------------------------------------------------------- 
The description said: 
􀂙 You should implement a chat server and a chat client; two online...</description>
			<content:encoded><![CDATA[<div>I got this project about building a secure communication between 2 user, with the help of a server. And I was confused.<br />
--------------------------------------------------------------------------------<br />
The description said:<br />
􀂙 You should implement a chat server and a chat client; two online clients can talk to<br />
each other with the help of the server.<br />
􀂙 A new user should register with the chat server (after registration, the user gets the<br />
public key of the server).<br />
􀂙 Secure all traffic afterwards between the chat client and the server as well as between<br />
the chatting clients.<br />
􀂙 Both public-key and private-key encryption algorithms should be involved.<br />
--------------------------------------------------------------------------------<br />
<br />
A new user should register with the chat<br />
server (after registration, the user gets the<br />
public key of the server).&quot; Should this registration done in 2<br />
seperate machine, the user and the server, through internet? But<br />
before this , the user and the server do not have a compromised shared<br />
key for communiation, if this message was send in plain text, surely<br />
any people can intercept this. Should we hardcode this part?<br />
                  What I interpret from the project description, I<br />
should use a KDC(key distribution center) for distributing session key between 2 users. Then I<br />
refer to the notes in the chapter about KDC, it mention the<br />
communication involved not only the public key of server, but also a<br />
Ka and a Kb known to the KDC, then I assume these 2 key- Ka and Kb(The notes said&quot;Assume that A and B have keys kA and kB respectively that are shared with the KDC.&quot;),<br />
was transferred during the registration process. But the registration<br />
process is not secure....What is your opinion?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum167.html">Network Security</category>
			<dc:creator>gunbuster363</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240163.html</guid>
		</item>
		<item>
			<title>dictionaries, iteration code</title>
			<link>http://www.daniweb.com/forums/thread240162.html</link>
			<pubDate>Sat, 21 Nov 2009 05:28:55 GMT</pubDate>
			<description>Hi! 
I was wondering if someone could help with writing the code for the following function. I am having trouble with dictionaries and would greatly appreciate some hints! 
 
thanks! 
 
 
Write a function build_car_maker, which consumes a car registry dictionary, and produces a car maker...</description>
			<content:encoded><![CDATA[<div>Hi!<br />
I was wondering if someone could help with writing the code for the following function. I am having trouble with dictionaries and would greatly appreciate some hints!<br />
<br />
thanks!<br />
<br />
<br />
Write a function build_car_maker, which consumes a car registry dictionary, and produces a car maker dictionary, leaving the original dictionary unchanged. The car registry dictionary stores key:value pairs of the form licence_plate:car_maker, where both the key and the value are strings, for example &quot;ABC 123&quot;:&quot;Ford&quot;.<br />
<br />
The new dictionary will be produced from the consumed dictionary, and its key:value pairs will be of the form <br />
car_maker:[licence_plate, licence_plate, ...], i.e. the value associated with the car_maker name is the list of licence plates keys in the original dictionary which have that car_maker as their values.<br />
While the dictionaries themselves are unsorted, the produced dictionary should have the list<br />
of licence plate values stored in alphabetical order (you can use a built-in sorting method to<br />
do this, or write you own helper function).<br />
<br />
For example, suppose you have the car registry dictionary cars:<br />
{&quot;ABCD 123&quot;:&quot;Mazda&quot;, &quot;LFS 000&quot;:&quot;Kia&quot;, &quot;WINNR&quot;:&quot;Ford&quot;, &quot;XTRA&quot;:&quot;Ford&quot;, &quot;UR GR8&quot;:&quot;Mazda&quot;}<br />
and you call build_car_maker(car), then the produced dictionary should be:<br />
{&quot;Kia&quot;:[&quot;LFS 000&quot;], &quot;Ford&quot;:[&quot;WINNR&quot;, &quot;XTRA&quot;], &quot;Mazda&quot;:[&quot;ABCD 123&quot;, &quot;UR GR8&quot;]}<br />
<br />
thanks a lot for any help! :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>Mona1990</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240162.html</guid>
		</item>
		<item>
			<title>Best Laptop to Buy at this Black Friday?</title>
			<link>http://www.daniweb.com/forums/thread240161.html</link>
			<pubDate>Sat, 21 Nov 2009 05:07:35 GMT</pubDate>
			<description><![CDATA[I am planning on buying a new laptop..What can you guys recommend that I buy? 
Laptops with 
-built in camera 
-lots of memory 
-lightweight (I'm tiny so I want to carry something small and handy) 
-fast 
-not too expensive (about $300 - $500) 
 
My friend recommend this black friday sales:...]]></description>
			<content:encoded><![CDATA[<div>I am planning on buying a new laptop..What can you guys recommend that I buy?<br />
Laptops with<br />
-built in camera<br />
-lots of memory<br />
-lightweight (I'm tiny so I want to carry something small and handy)<br />
-fast<br />
-not too expensive (about $300 - $500)<br />
<br />
My friend recommend this black friday sales: <a rel="nofollow" class="t" href="http://blackfriday2009sale.info/index.php?keywords=computer,laptop&amp;store=10" target="_blank">http://blackfriday2009sale.info/inde...aptop&amp;store=10</a> @ bestbuy<br />
<br />
what should I watch out and which one should i choose? <br />
<br />
Please help. I am clueless about buying laptops.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science</category>
			<dc:creator>dirt14</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240161.html</guid>
		</item>
		<item>
			<title>DirectX 9 Help Needed.</title>
			<link>http://www.daniweb.com/forums/thread240160.html</link>
			<pubDate>Sat, 21 Nov 2009 04:59:31 GMT</pubDate>
			<description>How do I load 3D meshes from a .x file, and extract the material data from it? Also, how do I apply a texture to the loaded mesh?</description>
			<content:encoded><![CDATA[<div>How do I load 3D meshes from a .x file, and extract the material data from it? Also, how do I apply a texture to the loaded mesh?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>tomtetlaw</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240160.html</guid>
		</item>
		<item>
			<title>How to center a Label with a Form</title>
			<link>http://www.daniweb.com/forums/thread240159.html</link>
			<pubDate>Sat, 21 Nov 2009 04:59:17 GMT</pubDate>
			<description><![CDATA[---Quote--- 
Hi 
I need help to center a label with a form.  
I have tried with the following code but was unsuccessful. 
---End Quote--- 
   <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div><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 />  Hi<br />
I need help to center a label with a form. <br />
I have tried with the following code but was unsuccessful.  <hr /> </td> </tr> </table> </div>  <pre style="margin:20px; line-height:13px">Me.Width = 135<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Height = 38<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim w As Integer = Me.Width / 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim h As Integer = Me.Height / 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim lblw As Integer = Me.lblnumber.Width / 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim lblh As Integer = lblnumber.Height / 2<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ttw As Integer = w - lblw<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim tth As Integer = h - lblh<br />
&nbsp; &nbsp; &nbsp; &nbsp;  lblnumber.Location = New Point(ttw, tth)</pre></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/thread240159.html</guid>
		</item>
		<item>
			<title>Keep track of deletion and creation of file.</title>
			<link>http://www.daniweb.com/forums/thread240158.html</link>
			<pubDate>Sat, 21 Nov 2009 04:57:46 GMT</pubDate>
			<description>hi friends ... 
i want help regarding file management in windows. 
 
what i want to do is , 
Keep track of all files and folders created or deleted during a period of time. 
 
for example , 
during 5 to 6 pm somebudy else is using my computer. so at that time  
i want to track whatever action...</description>
			<content:encoded><![CDATA[<div>hi friends ...<br />
i want help regarding file management in windows.<br />
<br />
what i want to do is ,<br />
Keep track of all files and folders created or deleted during a period of time.<br />
<br />
for example ,<br />
during 5 to 6 pm somebudy else is using my computer. so at that time <br />
i want to track whatever action performed by that user reagarding files like deletion of some file or creation of some files etc.<br />
<br />
i have done a lot googling but not ot any solution.<br />
i also tried to get through system message queue.but still i m not getting wht i want.<br />
<br />
any one knows how can i achieve this??<br />
i just want to track that creation and deletion of file in database.<br />
<br />
or<br />
<br />
any one knows wht actually happen in system when user create any file or delete any file.i mean wht apis are call wht processes are called??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>crazyboy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240158.html</guid>
		</item>
		<item>
			<title>Check each input integer digit by digit</title>
			<link>http://www.daniweb.com/forums/thread240157.html</link>
			<pubDate>Sat, 21 Nov 2009 04:57:03 GMT</pubDate>
			<description>I am having an issue. I need to check whether the user enters a digit greater than 0. If so the user needs to be reprompted.  If 23409932 is entered then the 0 entered should be caught and the proper messaage displayed. Here is my code and please somebody help. 
 
 
int userInput (int numberInput)...</description>
			<content:encoded><![CDATA[<div>I am having an issue. I need to check whether the user enters a digit greater than 0. If so the user needs to be reprompted.  If 23409932 is entered then the 0 entered should be caught and the proper messaage displayed. Here is my code and please somebody help.<br />
<br />
<br />
int userInput (int numberInput)<br />
<br />
{   <br />
    int index;<br />
    int remains;<br />
    <br />
    cout &lt;&lt; endl;<br />
    cout &lt;&lt; &quot; Enter a positive number count: &quot;;<br />
    cin  &gt;&gt; numberInput;<br />
    <br />
    while (numberInput &gt; 0) {<br />
       index = numberInput % 10;<br />
    <br />
       if (index == 0) {<br />
          cout &lt;&lt; &quot; Error! Enter a positive number count: &quot;;<br />
          cin  &gt;&gt; numberInput;<br />
          numberInput = numberInput / 10;<br />
       }<br />
       else {<br />
          return numberInput;<br />
       }<br />
    }</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>drake2212</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240157.html</guid>
		</item>
		<item>
			<title>ASP.NET partially Running in IIS7</title>
			<link>http://www.daniweb.com/forums/thread240156.html</link>
			<pubDate>Sat, 21 Nov 2009 04:44:39 GMT</pubDate>
			<description>First I apologize to the moderator, I am not sure if this is more than a WINDOWS 7 topic or IIS or a ASP.NET topic. 
 
MY SETUP: WINDOWS 7 ULTIMATE + IIS 7 + WEB PLATFORM INSTALLER 
+ XAMPP 
 
MY IIS7 : RUNS in PORT8080 
MY APACHE RUNS in PORT8070 
 
I have VS2005 + MSSQLSERVER2005 + ASP.NET MVC...</description>
			<content:encoded><![CDATA[<div>First I apologize to the moderator, I am not sure if this is more than a WINDOWS 7 topic or IIS or a ASP.NET topic.<br />
<br />
MY SETUP: WINDOWS 7 ULTIMATE + IIS 7 + WEB PLATFORM INSTALLER<br />
+ XAMPP<br />
<br />
MY IIS7 : RUNS in PORT8080<br />
MY APACHE RUNS in PORT8070<br />
<br />
I have VS2005 + MSSQLSERVER2005 + ASP.NET MVC 1.0 + .NET FRAMEWORKS SDK v2.0<br />
<br />
ON VS2005 I have compatibility issues when I search online still and downloaded the SOFTWARE still the problem persists.<br />
<br />
The bottomline, I want my APP work, I saw the login page but when I logged I get ERROR 500.<br />
<br />
Thank you for the responses!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum62.html">ASP</category>
			<dc:creator>php_noob</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240156.html</guid>
		</item>
		<item>
			<title>Oracle 11 release 1 on Fedora 12 installation failed</title>
			<link>http://www.daniweb.com/forums/thread240155.html</link>
			<pubDate>Sat, 21 Nov 2009 04:37:42 GMT</pubDate>
			<description><![CDATA[Has someone managed to install Oracle 11.1 on Fedora 12 ? 
 
The following packages failed to install : 
 
Checking for libaio-0.3.106-i386; Not found. Failed <<<< 
Checking for libstdc++-4.1.1-i386; Not found. Failed <<<< 
Checking for libgcc-4.1.1-i386; Not found. Failed <<<< 
Checking for...]]></description>
			<content:encoded><![CDATA[<div>Has someone managed to install Oracle 11.1 on Fedora 12 ?<br />
<br />
The following packages failed to install :<br />
<br />
Checking for libaio-0.3.106-i386; Not found. Failed &lt;&lt;&lt;&lt;<br />
Checking for libstdc++-4.1.1-i386; Not found. Failed &lt;&lt;&lt;&lt;<br />
Checking for libgcc-4.1.1-i386; Not found. Failed &lt;&lt;&lt;&lt;<br />
Checking for glibc-devel-2.5-i386; Not found. Failed &lt;&lt;&lt;&lt;<br />
Checking for compat-libstdc++-33-3.2.3-i386; Not found. Failed &lt;&lt;&lt;&lt;<br />
<br />
I couldn't find any of these packages in the x64_86 or i386 DVD.<br />
i686 version of the above packages are already installed, but I still get the error while installation.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum111.html">*nix Software</category>
			<dc:creator>vasanth19</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240155.html</guid>
		</item>
		<item>
			<title>Which News Reader do you use?</title>
			<link>http://www.daniweb.com/forums/thread240154.html</link>
			<pubDate>Sat, 21 Nov 2009 04:23:54 GMT</pubDate>
			<description><![CDATA[I just read on Mashable the top ten news reader. I personally use Google Reader which was rated #1. Which one would you use and why?  
 
http://mashable.com/2009/11/20/top-10-news-readers/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Mashable+%28Mashable%29&utm_content=Google+Reader]]></description>
			<content:encoded><![CDATA[<div>I just read on Mashable the top ten news reader. I personally use Google Reader which was rated #1. Which one would you use and why? <br />
<br />
<a rel="nofollow" class="t" href="http://mashable.com/2009/11/20/top-10-news-readers/?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+Mashable+%28Mashable%29&amp;utm_content=Google+Reader" target="_blank">http://mashable.com/2009/11/20/top-1...=Google+Reader</a></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/thread240154.html</guid>
		</item>
		<item>
			<title>Function problems</title>
			<link>http://www.daniweb.com/forums/thread240153.html</link>
			<pubDate>Sat, 21 Nov 2009 04:21:49 GMT</pubDate>
			<description><![CDATA[In this code I want to have a function to show average of movies saw by students, how to define and declare and call it in this program: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>In this code I want to have a function to show average of movies saw by students, how to define and declare and call it in this program:<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
#include &lt;iomanip&gt;<br />
<br />
using namespace std;<br />
<br />
/****************Function Prototypes******************/<br />
<br />
void displayList(int [], int);&nbsp; &nbsp; &nbsp; &nbsp;  //function to display array<br />
<br />
void getAverage (int [], int);&nbsp; &nbsp; &nbsp; &nbsp; <br />
void getMedian (int [] , int);<br />
int getMode (int [], int);<br />
<br />
<br />
/***************main***********************/<br />
<br />
int main()<br />
{<br />
&nbsp;  int *movies, <br />
&nbsp; &nbsp; &nbsp; &nbsp; total = 0, <br />
&nbsp; &nbsp; &nbsp; &nbsp; average,<br />
&nbsp; &nbsp; &nbsp; &nbsp; numDays,<br />
&nbsp; &nbsp; &nbsp; &nbsp; count,<br />
&nbsp; &nbsp; &nbsp; &nbsp; numStudent;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // desired size of the array 'students'<br />
&nbsp; &nbsp; &nbsp; &nbsp; int* students = NULL;&nbsp; &nbsp; &nbsp; &nbsp; // pointer to an int, initially to nothing<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;&nbsp; *** Student Movie Analysis ***\n\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Enter the number of Students: &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; numStudent;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // ** Dynamic allocation of Array size 'n' **<br />
&nbsp; &nbsp; &nbsp; &nbsp; students = new int[numStudent];&nbsp; &nbsp; &nbsp; &nbsp; // Allocate 'numStudent' ints and save in ptr 'students'<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (int i=0; i&lt;numStudent; i++)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; students[i] = 0;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // initialize all elements to zero<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; Get the number of movies from the user<br />
&nbsp; &nbsp; cout&lt;&lt;&quot;Enter the num. of movies&nbsp; below.\n&quot;;<br />
&nbsp;  <br />
&nbsp; &nbsp;  for (count = 0; count &lt; numStudent; count++)<br />
&nbsp; &nbsp;  {<br />
&nbsp; &nbsp;  cout &lt;&lt; &quot;Student # &quot; &lt;&lt; (count + 1) &lt;&lt; &quot; : &quot;;<br />
&nbsp; &nbsp;  cin &gt;&gt; students[count];<br />
&nbsp; &nbsp;  }<br />
<br />
&nbsp;  //Calculate the total movies<br />
&nbsp; &nbsp; &nbsp; for (count = 0; count &lt; numStudent; count++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total += students[count];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
//Calculate the average movies per month<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  average = total / numStudent;&nbsp; <br />
&nbsp; &nbsp;  <br />
//Display the results<br />
<br />
cout &lt;&lt; &quot;\n\nTotal Movies: &quot; &lt;&lt; total &lt;&lt; endl;<br />
cout &lt;&lt; &quot;Average : &quot;&lt;&lt; average &lt;&lt; endl; */<br />
<br />
delete [] students;&nbsp; &nbsp; &nbsp; &nbsp; // When done, free memory pointed to by 'students'<br />
&nbsp; &nbsp; &nbsp; &nbsp; students = NULL;&nbsp; &nbsp; &nbsp; &nbsp; // Clear 'students' to prevent invalid memory reference<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;End of Program.\n&quot;;<br />
&nbsp;  system(&quot;PAUSE&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
}</pre><br />
here is my average Function but it shows overloading error why i dont know<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">void getAverage( int list[], int numStudent)<br />
{<br />
&nbsp; &nbsp; &nbsp; for (count = 0; count &lt; numStudent; count++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total += students[count];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp;  // Calculate the average movies in a month<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  average = total / numStudent;</pre><br />
<br />
how to call it @ main</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>rafta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240153.html</guid>
		</item>
		<item>
			<title>Strange compiler bug</title>
			<link>http://www.daniweb.com/forums/thread240152.html</link>
			<pubDate>Sat, 21 Nov 2009 04:05:01 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm having a rather strange problem with the Java compiler.  
 
I'm trying to compile a simple hello world program and I can compile it perfectly within NetBean but when I try to use the commandline javac command I get a error.  
 
The error says the there is something wrong with the...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm having a rather strange problem with the Java compiler. <br />
<br />
I'm trying to compile a simple hello world program and I can compile it perfectly within NetBean but when I try to use the commandline javac command I get a error. <br />
<br />
The error says the there is something wrong with the parameters for my main.<br />
<br />
 <pre style="margin:20px; line-height:13px">public class hello {<br />
&nbsp; &nbsp; public static void main(String args&#91;&#93;){<br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Hello Mugambo&quot;);<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>kenji</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240152.html</guid>
		</item>
		<item>
			<title>Strange php behaviour</title>
			<link>http://www.daniweb.com/forums/thread240151.html</link>
			<pubDate>Sat, 21 Nov 2009 03:53:56 GMT</pubDate>
			<description>I have a site that I am working on, and I got tired of having to change the root path every time I uploaded the script from the local to on-line server.  
 
I tested the following code on both local (XAMPP under Windows) and web (shared Linux hosted on GoDaddy) server, and both returned the proper...</description>
			<content:encoded><![CDATA[<div>I have a site that I am working on, and I got tired of having to change the root path every time I uploaded the script from the local to on-line server. <br />
<br />
I tested the following code on both local (XAMPP under Windows) and web (shared Linux hosted on GoDaddy) server, and both returned the proper path.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
<br />
echo $_SERVER['DOCUMENT_ROOT'];<br />
<br />
?</pre><br />
So, I added a way for the script to detect and automatically use the appropriate server path. <br />
<br />
This required changing 3 include files: <br />
<span style="text-decoration:underline"><span style="font-weight:bold">In myapp.inc:</span></span><br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
require_once 'db.inc';<br />
require_once 'customHandler.inc';<br />
<br />
// Switch between local &amp; server<br />
// - local - //define(&quot;D_INSTALL_PATH&quot;, &quot;c:/xampp/htdocs&quot;);<br />
// - server - //define(&quot;D_INSTALL_PATH&quot;, &quot;/home/content/o/r/c/myapp/html&quot;);<br />
define(&quot;D_INSTALL_PATH&quot;, $_SERVER['DOCUMENT_ROOT']);</pre><br />
<br />
<span style="font-weight:bold"><span style="text-decoration:underline">In template.inc:</span></span><br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;?php<br />
<br />
// ITX template class extensions for the myapp<br />
// -- myappTemplate is a generic page<br />
// -- myappFormTemplate is a &lt;form&gt; page (and extends myappTemplate)<br />
<br />
require_once &quot;MDB2.php&quot;;<br />
// Switch between local &amp; server<br />
if (D_INSTALL_PATH == &quot;c:/xampp/htdocs&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; require_once &quot;C:/xampp/htdocs/PEAR/HTML/Template/ITX.php&quot;;<br />
else<br />
&nbsp; &nbsp; &nbsp; &nbsp; require_once &quot;HTML/Template/ITX.php&quot;;</pre>	<br />
<span style="text-decoration:underline"><span style="font-weight:bold">In db.inc:</span></span><br />
	<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Database parameters<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Switch between local &amp; server<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (D_INSTALL_PATH == &quot;c:/xampp/htdocs&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $hostname = &quot;localhost&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $username = &quot;********&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $hostname = &quot;myapp.db.5158902.hostedresource.com&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $username = &quot;********&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
****************************************<br />
<br />
When I run this on the on-line server, it runs quite well - with little lag time between pages.<br />
<br />
But, when I run this on the local server, it spins it's wheels for over a minute before giving me the requested page - or, on the one page where I request an MySQL query, I get the following errors...<br />
<br />
 <pre style="margin:20px; line-height:13px">Notice: Use of undefined constant D_INSTALL_PATH - assumed 'D_INSTALL_PATH' in C:\xampp\htdocs\myapp\includes\template.inc on line 9<br />
<br />
Notice: Use of undefined constant D_INSTALL_PATH - assumed 'D_INSTALL_PATH' in C:\xampp\htdocs\myapp\includes\db.inc on line 4</pre><br />
So what am I missing?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>OrcaSoul</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240151.html</guid>
		</item>
		<item>
			<title>Form Mailer</title>
			<link>http://www.daniweb.com/forums/thread240150.html</link>
			<pubDate>Sat, 21 Nov 2009 03:45:35 GMT</pubDate>
			<description>hi guys, need your help on this..any ideas is greatly appreciated..i got this form mailer from this site: 
http://www.dtheatre.com/scripts/sour...e/formmail.txt 
 
but how to configure in php the form mailer that if in my form got two options (like the code below) that if the user choose this...</description>
			<content:encoded><![CDATA[<div>hi guys, need your help on this..any ideas is greatly appreciated..i got this form mailer from this site:<br />
<a rel="nofollow" class="t" href="http://www.dtheatre.com/scripts/sour...e/formmail.txt" target="_blank">http://www.dtheatre.com/scripts/sour...e/formmail.txt</a><br />
<br />
but how to configure in php the form mailer that if in my form got two options (like the code below) that if the user choose this particular option then it will go to that particular e-mail. <br />
<br />
So basically, got two options on the site but will have two e-mails also but not both of them will receive the mail, when the user press the submit button then it will go only to that particular mail in which the user selected. <br />
<br />
please help... <br />
<br />
but this one works if data is sent to one e-mail<br />
here's the code on my form:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;formmail.php&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table width=&quot;90%&quot;&nbsp; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th width=&quot;42%&quot; valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt; Type &lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;58%&quot;&gt;&lt;select name=&quot;Appt_Type&quot; size=&quot;1&quot; class=&quot;entries&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Karate&quot;&gt;Karate&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Judo&quot;&gt;Judo&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;&lt;/label&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Preferred Schedule Date &lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;P_Date&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;P_Date&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Preferred Schedule Time &lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;P_Time&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;P_Time&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Preferred Location &lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;select name=&quot;Location&quot; class=&quot;entries&quot; id=&quot;Location&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Kar_Vill&quot;&gt;The Karate Village&lt;/option&gt; 'problem here if the user choose this<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;  'then it will go to preferred e-mail<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;Judo_Mount&quot;&gt;The Judo Mountain&lt;/option&gt;'if the user choose this option<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'then will go to particular e-mail&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Name&lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;Name&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;Name&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Tel&lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;Tel&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;Tel&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Email&lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;Email&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;Email&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;Member No. &lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;Mem_No&quot; type=&quot;text&quot; class=&quot;entries&quot; id=&quot;Mem_No&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th valign=&quot;middle&quot; scope=&quot;row&quot;&gt;&lt;div align=&quot;right&quot;&gt;&lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;Submit&quot; type=&quot;submit&quot; class=&quot;entries&quot; value=&quot;Book Now&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;Reset&quot; type=&quot;reset&quot; class=&quot;entries&quot; value=&quot;Reset&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;subject&quot; value=&quot;The Karate_Appt&quot; /&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;recipient&quot; value=&quot;karate@karatexyz.com.ph&quot; /&gt; 'problem here I want to put another e-mail<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'depending on what option the user choose<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'from above selection<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;required&quot; value=&quot;Appt_Type,Pref_Date,Pref_Time,Location,Name,Tel,Email&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;missing_fields_redirect&quot; value=&quot;http://www.masterxyz.com/error.html&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;redirect&quot; value=&quot;http://www.masterxyz.com/thankyou.html&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/table&gt;</pre><br />
getting the form's data is done by a function by php on the form mailer that i found on the link given above.. <br />
<br />
can anyone help on how to do  if there's two e-mail on the form..<br />
below is the php code of the form's mailer to get the data..<br />
<br />
thanks..<br />
 <pre style="margin:20px; line-height:13px">// This function takes the sorts, excludes certain keys and <br />
// makes a pretty content string.<br />
function parse_form($array, $sort = &quot;&quot;) {<br />
&nbsp;  // build reserved keyword array<br />
&nbsp;  $reserved_keys[] = &quot;MAX_FILE_SIZE&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;required&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;redirect&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;require&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;path_to_file&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;recipient&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;subject&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;sort&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;style_sheet&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;bgcolor&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;text_color&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;link_color&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;vlink_color&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;alink_color&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;title&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;missing_fields_redirect&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;env_report&quot;;<br />
&nbsp;  $reserved_keys[] = &quot;submit&quot;;<br />
&nbsp;  if (count($array)) {<br />
&nbsp; &nbsp; &nbsp; if (is_array($sort)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  foreach ($sort as $field) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $reserved_violation = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($ri=0; $ri&lt;count($reserved_keys); $ri++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if ($array[$field] == $reserved_keys[$ri]) $reserved_violation = 1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($reserved_violation != 1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (is_array($array[$field])) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($z=0;$z&lt;count($array[$field]);$z++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $content .= $field.SEPARATOR.$array[$field][$z].NEWLINE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  } else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $content .= $field.SEPARATOR.$array[$field].NEWLINE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; while (list($key, $val) = each($array)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $reserved_violation = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for ($ri=0; $ri&lt;count($reserved_keys); $ri++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($key == $reserved_keys[$ri]) $reserved_violation = 1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for ($ri=0; $ri&lt;count($sort); $ri++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($key == $sort[$ri]) $reserved_violation = 1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  // prepare content<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if ($reserved_violation != 1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (is_array($val)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  for ($z=0;$z&lt;count($val);$z++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $content .= $key.SEPARATOR.$val[$z].NEWLINE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $content .= $key.SEPARATOR.$val.NEWLINE;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;  }<br />
&nbsp;  return $content;<br />
}<br />
<br />
// mail the content we figure out in the following steps<br />
function mail_it($content, $subject, $email, $recipient) {<br />
&nbsp;  global $attachment_chunk, $attachment_name, $attachment_type, $attachment_sent, $bcc;<br />
<br />
&nbsp;  $ob = &quot;----=_OuterBoundary_000&quot;;<br />
&nbsp;  $ib = &quot;----=_InnerBoundery_001&quot;;<br />
&nbsp;  <br />
&nbsp;  $headers&nbsp; = &quot;MIME-Version: 1.0\r\n&quot;; <br />
&nbsp;  $headers .= &quot;From: &quot;.$email.&quot;\n&quot;; <br />
&nbsp;  $headers .= &quot;To: &quot;.$recipient.&quot;\n&quot;; <br />
&nbsp;  $headers .= &quot;Reply-To: &quot;.$email.&quot;\n&quot;;<br />
&nbsp;  if ($bcc) $headers .= &quot;Bcc: &quot;.$bcc.&quot;\n&quot;; <br />
&nbsp;  $headers .= &quot;X-Priority: 1\n&quot;; <br />
&nbsp;  $headers .= &quot;X-Mailer: DT Formmail&quot;.VERSION.&quot;\n&quot;; <br />
&nbsp;  $headers .= &quot;Content-Type: multipart/mixed;\n\tboundary=\&quot;&quot;.$ob.&quot;\&quot;\n&quot;;<br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  $message&nbsp; = &quot;This is a multi-part message in MIME format.\n&quot;;<br />
&nbsp;  $message .= &quot;\n--&quot;.$ob.&quot;\n&quot;;<br />
&nbsp;  $message .= &quot;Content-Type: multipart/alternative;\n\tboundary=\&quot;&quot;.$ib.&quot;\&quot;\n\n&quot;;<br />
&nbsp;  $message .= &quot;\n--&quot;.$ib.&quot;\n&quot;;<br />
&nbsp;  $message .= &quot;Content-Type: text/plain;\n\tcharset=\&quot;iso-8859-1\&quot;\n&quot;;<br />
&nbsp;  $message .= &quot;Content-Transfer-Encoding: quoted-printable\n\n&quot;;<br />
&nbsp;  $message .= $content.&quot;\n\n&quot;;<br />
&nbsp;  $message .= &quot;\n--&quot;.$ib.&quot;--\n&quot;;<br />
&nbsp;  if ($attachment_name &amp;&amp; !$attachment_sent) {<br />
&nbsp; &nbsp; &nbsp; $message .= &quot;\n--&quot;.$ob.&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; $message .= &quot;Content-Type: $attachment_type;\n\tname=\&quot;&quot;.$attachment_name.&quot;\&quot;\n&quot;;<br />
&nbsp; &nbsp; &nbsp; $message .= &quot;Content-Transfer-Encoding: base64\n&quot;;<br />
&nbsp; &nbsp; &nbsp; $message .= &quot;Content-Disposition: attachment;\n\tfilename=\&quot;&quot;.$attachment_name.&quot;\&quot;\n\n&quot;;<br />
&nbsp; &nbsp; &nbsp; $message .= $attachment_chunk;<br />
&nbsp; &nbsp; &nbsp; $message .= &quot;\n\n&quot;;<br />
&nbsp; &nbsp; &nbsp; $attachment_sent = 1;<br />
&nbsp;  }<br />
&nbsp;  $message .= &quot;\n--&quot;.$ob.&quot;--\n&quot;;<br />
&nbsp;  <br />
&nbsp;  mail($recipient, $subject, $message, $headers);<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>cguan_77</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240150.html</guid>
		</item>
		<item>
			<title>Converting this SH script to C (not .</title>
			<link>http://www.daniweb.com/forums/thread240148.html</link>
			<pubDate>Sat, 21 Nov 2009 03:40:42 GMT</pubDate>
			<description>In the title I was going to write (not C script) but they are essentially the same I think. My bad, anyway... 
 
I recently wrote a some SH scripts to manage lines of text in a separate txt file.  Now my new assignment is to convert the whole thing to C.  Any ideas on how to convert these lines to...</description>
			<content:encoded><![CDATA[<div>In the title I was going to write (not C script) but they are essentially the same I think. My bad, anyway...<br />
<br />
I recently wrote a some SH scripts to manage lines of text in a separate txt file.  Now my new assignment is to convert the whole thing to C.  Any ideas on how to convert these lines to C?<br />
<br />
 <pre style="margin:20px; line-height:13px">grep -w &quot;^$npname.*&quot; parts.txt</pre><br />
 <pre style="margin:20px; line-height:13px">echo $npname:$noname:in &gt;&gt; parts.txt</pre><br />
 <pre style="margin:20px; line-height:13px"> sed '/'^&quot;$npname&quot;:'/d' parts.txt &gt; parts.tmp<br />
&nbsp;<br />
&nbsp;mv parts.tmp parts.txt</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum113.html">Shell Scripting</category>
			<dc:creator>Mattpd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240148.html</guid>
		</item>
		<item>
			<title>user designed house through GUI interfaces</title>
			<link>http://www.daniweb.com/forums/thread240147.html</link>
			<pubDate>Sat, 21 Nov 2009 03:35:22 GMT</pubDate>
			<description>okay the point of the program is to have the user select two points which would be the points that make up the base of the house, then they select a point inside the house that will serve as the center of a door, however if they click outside of the house my program should ask them to click a point...</description>
			<content:encoded><![CDATA[<div>okay the point of the program is to have the user select two points which would be the points that make up the base of the house, then they select a point inside the house that will serve as the center of a door, however if they click outside of the house my program should ask them to click a point a different point, that's where i'm having problems.<br />
<br />
 <pre style="margin:20px; line-height:13px">from graphics22 import *<br />
<br />
def main():<br />
&nbsp; &nbsp; win = GraphWin('House Builder', 800,600)<br />
&nbsp; &nbsp; message = Text(Point(400,10),'Please click two points to make the body of the house')<br />
&nbsp; &nbsp; message.draw(win)<br />
&nbsp; &nbsp; p1 = win.getMouse()<br />
&nbsp; &nbsp; p1.draw(win)<br />
&nbsp; &nbsp; p2 = win.getMouse()<br />
&nbsp; &nbsp; p2.draw(win)<br />
<br />
&nbsp; &nbsp; base = Rectangle(p1,p2)<br />
&nbsp; &nbsp; base.setFill(&quot;green&quot;)<br />
&nbsp; &nbsp; base.draw(win)<br />
<br />
&nbsp; &nbsp; distance = (p2.x - p1.x)<br />
&nbsp; &nbsp; d = (distance/10)<br />
<br />
&nbsp; &nbsp; message.setText('Please click inside the house to open a door')<br />
<br />
&nbsp; &nbsp; p3 = win.getMouse()<br />
&nbsp; &nbsp; p3.draw(win)<br />
&nbsp; &nbsp; p4 = Point(p3.x-d,p1.y)<br />
&nbsp; &nbsp; p5 = Point(p3.x+d,p3.y)<br />
<br />
&nbsp; &nbsp; door = Rectangle(p4,p5)<br />
&nbsp; &nbsp; door.setFill(&quot;orange&quot;)<br />
<br />
&nbsp; &nbsp; for i in range(1):<br />
&nbsp; &nbsp; &nbsp; &nbsp; if p4.x &lt;= p1.x or p5.x &gt;= p2.x:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; else:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; door.draw(win)<br />
&nbsp; &nbsp; message.setText('Please click two points inside the house to open a window')<br />
&nbsp; &nbsp; p6 = win.getMouse()<br />
&nbsp; &nbsp; p6.draw(win)<br />
&nbsp; &nbsp; p7 = win.getMouse()<br />
&nbsp; &nbsp; p7.draw(win)<br />
&nbsp; &nbsp; window = Rectangle(p6,p7)<br />
&nbsp; &nbsp; window.setFill(&quot;lightblue&quot;)<br />
&nbsp; &nbsp; for i in range(1):<br />
&nbsp; &nbsp; &nbsp; &nbsp; if p6.getX() &lt; p1.getX() or p7.getX() &gt; p2.getX():<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message.setText('Please click two points INSIDE the house to open a window')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; else:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; window.draw(win)<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; win.getMouse()<br />
&nbsp; &nbsp; win.close()<br />
&nbsp; &nbsp; <br />
main()</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>KidBuddha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240147.html</guid>
		</item>
		<item>
			<title>Hibernate does not return any result</title>
			<link>http://www.daniweb.com/forums/thread240146.html</link>
			<pubDate>Sat, 21 Nov 2009 03:27:58 GMT</pubDate>
			<description><![CDATA[I've been trying to get a list of values from database using hibernate. 
I'm using MS SQL Server XE 2005 and using Hibernate 3.2.2 to fetch DB rows. I've tried JDBC drivers provided by Microsoft as well as jTDS but all I get is an empty list.  
 
Here is my hibernate configuration file. 
  <div...]]></description>
			<content:encoded><![CDATA[<div>I've been trying to get a list of values from database using hibernate.<br />
I'm using MS SQL Server XE 2005 and using Hibernate 3.2.2 to fetch DB rows. I've tried JDBC drivers provided by Microsoft as well as jTDS but all I get is an empty list. <br />
<br />
Here is my hibernate configuration file.<br />
 <pre style="margin:20px; line-height:13px">&lt;?xml version='1.0' encoding='utf-8'?&gt;<br />
&lt;!DOCTYPE hibernate-configuration PUBLIC<br />
&nbsp; &nbsp; &nbsp; &nbsp; &quot;-//Hibernate/Hibernate Configuration DTD 3.0//EN&quot;<br />
&nbsp;<br />
&nbsp;&quot;http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd&quot;&gt;<br />
&nbsp;<br />
&lt;hibernate-configuration&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;session-factory&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;hibernate.connection.driver_class&quot;&gt;net.sourceforge.jtds.jdbc.Driver&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;hibernate.connection.url&quot;&gt;jdbc:jtds:sqlserver://localhost:1433;databseName=SQLTutorial;integratedSecurity=true;&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--property name=&quot;hibernate.connection.username&quot;&gt;&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;hibernate.connection.password&quot;&gt;&lt;/property--&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;dialect&quot;&gt;org.hibernate.dialect.SQLServerDialect&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;show_sql&quot;&gt;true&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;transaction.factory_class&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; org.hibernate.transaction.JDBCTransactionFactory<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;hibernate.cache.provider_class&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; org.hibernate.cache.HashtableCacheProvider<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;current_session_context_class&quot;&gt;thread&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;hibernate.hbm2ddl.auto&quot;&gt;update&lt;/property&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;mapping resource=&quot;hibernate\tutorials\Department.hbm.xml&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;/session-factory&gt;<br />
&nbsp; &nbsp; <br />
&lt;/hibernate-configuration&gt;</pre>Am I missing something here?<br />
And my hbm mappings are<br />
 <pre style="margin:20px; line-height:13px">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;!DOCTYPE hibernate-mapping PUBLIC<br />
&nbsp; &nbsp; &nbsp; &nbsp; &quot;-//Hibernate/Hibernate Mapping DTD 3.0//EN&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &quot;http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;hibernate-mapping package=&quot;hibernate.tutorials&quot;&gt;<br />
&nbsp; &nbsp; &lt;class name=&quot;Department&quot; table=&quot;Department&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;id name=&quot;id&quot; column=&quot;DEPT_ID&quot; type=&quot;long&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;generator class=&quot;native&quot;/&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/id&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;departmentName&quot; column=&quot;DEPT_NAME&quot;/&gt;<br />
&nbsp; &nbsp; &lt;/class&gt;&nbsp; <br />
&nbsp; &nbsp; &lt;class name=&quot;Employee&quot; table=&quot;EMPLOYEE&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;id name=&quot;id&quot; column=&quot;EMP_ID&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;generator class=&quot;native&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/id&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;firstName&quot; column=&quot;FIRST_NAME&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;property name=&quot;lastName&quot; column=&quot;LAST_NAME&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--one-to-one name=&quot;department&quot; class=&quot;Department&quot;/--&gt;<br />
&nbsp; &nbsp; &lt;/class&gt;<br />
&lt;/hibernate-mapping&gt;</pre><br />
The output that I always get is<br />
 <pre style="margin:20px; line-height:13px">Hibernate: select this_.EMP_ID as EMP1_1_0_, this_.FIRST_NAME as FIRST2_1_0_, this_.LAST_NAME as LAST3_1_0_ from EMPLOYEE this_</pre>Also, I have successfully retrieved the result sets using plain JDBC</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>lookof2day</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240146.html</guid>
		</item>
		<item>
			<title>How to Make Custom iPhone Ringtone on Mac for Free</title>
			<link>http://www.daniweb.com/forums/thread240143.html</link>
			<pubDate>Sat, 21 Nov 2009 03:00:22 GMT</pubDate>
			<description>There are normally 2 ways that we can get iPhone ringtones from our favorite music since the release of iTunes 8. The first one is buying directly from iTunes store; alternatively, we can use iTunes to create custom iPhone ringtones. But keep in mind that all the music must have already been...</description>
			<content:encoded><![CDATA[<div>There are normally 2 ways that we can get iPhone ringtones from our favorite music since the release of iTunes 8. The first one is buying directly from iTunes store; alternatively, we can use iTunes to create custom iPhone ringtones. But keep in mind that all the music must have already been purchased, and after making a ringtone, we still have to pay another $0.99. <br />
<br />
Although these two methods are convenient, they all come with fees. No one wants to pay for a song twice to get a ringtone. What’s more, some music, including the free one in iTunes or any song ripped from a CD cannot be used to make ringtones, as well as Video clips or Movies. All these money thing and limitations are really my headache.<br />
<br />
A few days ago, I found a software called <a rel="nofollow" class="t" href="http://www.imediacreator.com/mac-iphone-ringtone-maker.html#191" target="_blank"><span style="font-weight:bold">iPhone Ringtone Maker for Mac</span></a>, which I am no using, on Macnn.com, it says: “The app enables users to convert almost any audio or video file for use on the iPhone. It’s equipped with a wave-form function, an editor which allows users to choose what specific sections of files they want. The utility provides control over both the starting and stopping time of ringtones.Additionally, users can add fade-in and fade-out effects to their edited audio or video clips. The software enables the transfer of files from either an iPhone or directly from iTunes, with an iTunes library located within the interface to simplify creating and managing ringtones, with all these functions, it will help you create custom but free iPhone ringtone from any song or video you like in only 4 easy steps etc.”<br />
<br />
More information about <a rel="nofollow" class="t" href="http://www.imediacreator.com/tutorial-ringtone/how-to-make-iphone-ringtone-on-mac.html#191" target="_blank"><span style="font-weight:bold">How to Make Custom but Free iPhone Ringtone on Mac</span></a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum102.html">Mac Software</category>
			<dc:creator>Kevisty</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240143.html</guid>
		</item>
		<item>
			<title>Trouble with switching to and from directorys</title>
			<link>http://www.daniweb.com/forums/thread240142.html</link>
			<pubDate>Sat, 21 Nov 2009 02:44:40 GMT</pubDate>
			<description><![CDATA[hi everyone. Say I have my project directorys set up like so: 
 
/glider 
   /libs 
      classes.py 
   /graphics 
      /rooms 
          room images go here 
 
I'm trying to access a image from graphics/rooms, but from classes.py. I'm using pygame, and I know to go back a folder in a dir; you...]]></description>
			<content:encoded><![CDATA[<div>hi everyone. Say I have my project directorys set up like so:<br />
<br />
/glider<br />
   /libs<br />
      classes.py<br />
   /graphics<br />
      /rooms<br />
          room images go here<br />
<br />
I'm trying to access a image from graphics/rooms, but from classes.py. I'm using pygame, and I know to go back a folder in a dir; you use:<br />
 <pre style="margin:20px; line-height:13px">#&nbsp; go back a folder and load an image<br />
pygame.image.load( '..\image.bmp' )</pre><br />
but how would I go from classes.py to graphics/rooms/room.bmp? I thought of using:<br />
<br />
 <pre style="margin:20px; line-height:13px">pygame.image.load( '..\graphics/rooms/room.bmp' )</pre><br />
you think you could use that, but it doesn't work... anyone know what could be the problem? any comments or help would be great. Thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>fallopiano</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240142.html</guid>
		</item>
		<item>
			<title>Insertion Sort Issues</title>
			<link>http://www.daniweb.com/forums/thread240141.html</link>
			<pubDate>Sat, 21 Nov 2009 02:41:53 GMT</pubDate>
			<description><![CDATA[Hi all,  
 
I'm having a heck of a time with our latest assignment.  I've tried everything I can possibly think if to make this work, but with no luck.  We need to Load an inventory text file, sort it, search it(haven't even got to that portion of the code).  I can't seem to get my insertion sort...]]></description>
			<content:encoded><![CDATA[<div>Hi all, <br />
<br />
I'm having a heck of a time with our latest assignment.  I've tried everything I can possibly think if to make this work, but with no luck.  We need to Load an inventory text file, sort it, search it(haven't even got to that portion of the code).  I can't seem to get my insertion sort to work properly.  I can get it to sort the item number, which is an int array named items.  I cannot get it to sort the corresponding item names though.  Also, for some reason when it loads the text file, it prints out the last line of the file twice.  Anyone who is willing to look at the code, I would very much appreciate it.    Thanks.<br />
<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;cstdlib&gt;<br />
#include &lt;iostream&gt;<br />
#include &lt;fstream&gt;<br />
#include &lt;iomanip&gt;<br />
using namespace std;<br />
<br />
int load (char filename[], int items[], string names[], int&amp; n);<br />
int add(char filename[], int items[], string names[], int&amp; n);<br />
void sort(int items[], string names[], int n);<br />
const int SIZE = 500;<br />
int main(int argc, char *argv[])<br />
{<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; char filename[20], answer = 'n';<br />
&nbsp; &nbsp; int items[SIZE];<br />
&nbsp; &nbsp; string names[SIZE];<br />
&nbsp; &nbsp; int selection, n = 0;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Enter a filename to load: &quot;;<br />
&nbsp; &nbsp; cin &gt;&gt; filename;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; do {<br />
&nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;----INVENTORY MENU----&quot; &lt;&lt; endl &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;1.&nbsp; Load Inventory&quot;&lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;2.&nbsp; Add to Inventory&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;3.&nbsp; Search Inventory&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  cin &gt;&gt; selection;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  if (selection == 1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; load(filename, items, names, n);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt;&quot;There are &quot; &lt;&lt; n &lt;&lt; &quot; items in &quot; &lt;&lt; filename &lt;&lt; &quot;.&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp;  if (selection == 2) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; add(filename, items, names, n);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;Would you like to make another menu selection? [Y/N] &quot;;<br />
&nbsp; &nbsp; &nbsp;  cin &gt;&gt; answer;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; }while(answer == 'y' || answer == 'Y');<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; system(&quot;PAUSE&quot;);<br />
&nbsp; &nbsp; return EXIT_SUCCESS;<br />
}<br />
<br />
int load(char filename[], int items[], string names[], int&amp; n) {<br />
&nbsp; &nbsp; ifstream in_stream;<br />
&nbsp; &nbsp; in_stream.open(filename);<br />
&nbsp; &nbsp; string data;<br />
&nbsp; &nbsp; n = 0;<br />
&nbsp; &nbsp; char next_symbol, number[15];<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; do {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int i = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; do {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in_stream.get(next_symbol);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; number[i] = next_symbol;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; } while (next_symbol != ' ');<br />
&nbsp; &nbsp; &nbsp; &nbsp; items[n] = atoi(number);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; getline(in_stream, data);<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; data &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ( data != &quot;&quot;) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; names[n] = data;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; endl &lt;&lt; items[n];<br />
&nbsp; &nbsp; &nbsp; &nbsp;  n++;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; } while (! in_stream.eof());<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; in_stream.close();<br />
}<br />
<br />
int add(char filename[], int items[], string names[], int&amp; n){<br />
&nbsp; &nbsp; ofstream out_stream(filename, ios::app);<br />
&nbsp;  <br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Enter an item number: &quot;;<br />
&nbsp; &nbsp; cin &gt;&gt; items[n];<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Enter an item name: &quot;;<br />
&nbsp; &nbsp; cin &gt;&gt; names[n];<br />
&nbsp; &nbsp; cout &lt;&lt; endl &lt;&lt; &quot;Load section n is &quot; &lt;&lt; n &lt;&lt; endl;<br />
&nbsp; &nbsp; out_stream &lt;&lt; items[n] &lt;&lt; setw(15) &lt;&lt; names[n] &lt;&lt; endl;<br />
&nbsp; &nbsp; out_stream.close();<br />
&nbsp; &nbsp; sort(items, names, n);<br />
}<br />
&nbsp; &nbsp; &nbsp; <br />
void sort(int items[], string names[], int n){<br />
<br />
cout &lt;&lt; &quot;BEFORE THE SWAP&quot; &lt;&lt; endl;<br />
for (int i = 0; i &lt;n; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; items[i] &lt;&lt; setw(15) &lt;&lt; names[i]&lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
int key,i;<br />
<br />
for(int j=1;j&lt;n;j++) {<br />
<br />
key=items[j];<br />
i=j-1;<br />
<br />
&nbsp; &nbsp; &nbsp; while(items[i]&gt;key &amp;&amp; i&gt;=0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; items[i+1]=items[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; names[i+1]=names[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i--;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; items[i+1]=key;<br />
}<br />
cout &lt;&lt; &quot;AFTER THE SWAP&quot; &lt;&lt; endl;<br />
<br />
for (int i = 0; i &lt;= n; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; items[i] &lt;&lt; setw(15) &lt;&lt; names[i]&lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
return;<br />
}</pre></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/thread240141.html</guid>
		</item>
		<item>
			<title>ASP site for newbie</title>
			<link>http://www.daniweb.com/forums/thread240140.html</link>
			<pubDate>Sat, 21 Nov 2009 02:25:51 GMT</pubDate>
			<description>Just got the ASP download for websites.  Have no experience but would like to create a website on a spare drive on a desktop only to be accessible when the machine is on and only for colleagues.  This is just for experience and testing.  Looking for tutorials and best advice</description>
			<content:encoded><![CDATA[<div>Just got the ASP download for websites.  Have no experience but would like to create a website on a spare drive on a desktop only to be accessible when the machine is on and only for colleagues.  This is just for experience and testing.  Looking for tutorials and best advice</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum62.html">ASP</category>
			<dc:creator>mnewsome</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240140.html</guid>
		</item>
		<item>
			<title>Posting formdata onto webpage and into file</title>
			<link>http://www.daniweb.com/forums/thread240139.html</link>
			<pubDate>Sat, 21 Nov 2009 02:23:46 GMT</pubDate>
			<description><![CDATA[I am posting form data into a file and also on the web page. Could please tell me how do i do that with ruby. This is my code for html form 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I am posting form data into a file and also on the web page. Could please tell me how do i do that with ruby. This is my code for html form<br />
 <pre style="margin:20px; line-height:13px">#!/usr/bin/ruby<br />
print &quot;Content-type:text/html\n\n&quot;;<br />
&nbsp; &nbsp; # Display the form<br />
&nbsp; &nbsp; print &lt;HTML;<br />
&nbsp; &nbsp; &lt;html&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &lt;form action=&quot;form1.rb&quot; method=&quot;post&quot;&gt;<br />
&nbsp; &nbsp; &lt;p&gt;Your Name:&lt;input type=&quot;text&quot; name=&quot;name&quot;&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot;&gt; &lt;/form&gt;<br />
&nbsp; &nbsp; &lt;/body&gt;&lt;/html&gt;<br />
&nbsp; &nbsp; HTML</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum73.html">Ruby</category>
			<dc:creator>cutekate</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240139.html</guid>
		</item>
		<item>
			<title>how to use the local variable form one function to other function</title>
			<link>http://www.daniweb.com/forums/thread240138.html</link>
			<pubDate>Sat, 21 Nov 2009 02:21:55 GMT</pubDate>
			<description><![CDATA[Here is the problem:write in saparate function without using global variable 
1/(function input)enter N in the range [0,20], then enter N numbers 
2/(function display)Display N numbers in 2 columns 
Here is my source code 
 
#include<stdio.h> 
#include<conio.h> 
void Input(int *p,int n) 
{ 
    int...]]></description>
			<content:encoded><![CDATA[<div>Here is the problem:write in saparate function without using global variable<br />
1/(function input)enter N in the range [0,20], then enter N numbers<br />
2/(function display)Display N numbers in 2 columns<br />
Here is my source code<br />
 <pre style="margin:20px; line-height:13px">#include&lt;stdio.h&gt;<br />
#include&lt;conio.h&gt;<br />
void Input(int *p,int n)<br />
{<br />
&nbsp; &nbsp; int i;<br />
&nbsp; &nbsp; do<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp;  printf(&quot;Enter N numbers u want to input: &quot;);<br />
&nbsp; &nbsp;  scanf(&quot;%d&quot;,&amp;n); <br />
&nbsp; &nbsp; }while ( (n&lt;0) || (n&gt;20) );<br />
&nbsp; &nbsp; p =(int *)malloc(n*sizeof(int));<br />
&nbsp; &nbsp; printf(&quot;Ennter %d numbers: &quot;,n);<br />
&nbsp; &nbsp; for( i=0; i&lt;n; i++)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  printf(&quot;\nNumber%: &quot;,i);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  scanf(&quot;%d&quot;,p+i);<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
}<br />
<br />
void Display(int *p, int n)<br />
{<br />
&nbsp; &nbsp;  int i;<br />
&nbsp; &nbsp;  printf(&quot;test&quot;);<br />
&nbsp; &nbsp;  for( i=0; i&lt;n; i++)<br />
&nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot; %d&quot;,p&#91;i&#93;);&nbsp; <br />
&nbsp; &nbsp;  }<br />
}<br />
<br />
int main()<br />
{<br />
&nbsp; int *a, *N;<br />
&nbsp; Input(a,&amp;N);<br />
&nbsp; Display(a,&amp;N);<br />
&nbsp; getch();<br />
&nbsp; return 0;<br />
}</pre>I don't know how can I use the variable N in function input for the next function.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>thebluestar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240138.html</guid>
		</item>
		<item>
			<title><![CDATA[Help me print '*' digit]]></title>
			<link>http://www.daniweb.com/forums/thread240135.html</link>
			<pubDate>Sat, 21 Nov 2009 01:42:54 GMT</pubDate>
			<description>I want to write using loop . I TRY AND TRY AGAIN BUT unsuccessful. 
Please help me. HOW CAN I DO THAT ?  
 
* 
** 
*** 
**** 
***** 
******</description>
			<content:encoded><![CDATA[<div>I want to write using loop . I TRY AND TRY AGAIN BUT unsuccessful.<br />
Please help me. HOW CAN I DO THAT ? <br />
<br />
*<br />
**<br />
***<br />
****<br />
*****<br />
******</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum125.html">Assembly</category>
			<dc:creator>manhit45</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240135.html</guid>
		</item>
		<item>
			<title>Data entry Job</title>
			<link>http://www.daniweb.com/forums/thread240145.html</link>
			<pubDate>Sat, 21 Nov 2009 01:39:31 GMT</pubDate>
			<description>Online Income opportunity available for all. Work 2- 3 hours per day on internet and earn up to 10000-20000 Rs per month by doing simple copy- paste job from anywhere. Only basic knowledge of computer and internet is required. For more details www.payformoney.com Email:- support@payformoney.com...</description>
			<content:encoded><![CDATA[<div>Online Income opportunity available for all. Work 2- 3 hours per day on internet and earn up to 10000-20000 Rs per month by doing simple copy- paste job from anywhere. Only basic knowledge of computer and internet is required. For more details <a rel="nofollow" class="t" href="http://www.payformoney.com" target="_blank">www.payformoney.com</a> Email:- <a href="mailto:support@payformoney.com">support@payformoney.com</a> Call: 0353-6410665,<br />
Posted Id- UISN –    102032G</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum63.html">Tech / IT Consultant Job Offers</category>
			<dc:creator>amsonsunitha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240145.html</guid>
		</item>
		<item>
			<title>Trouble understanding MouseListener</title>
			<link>http://www.daniweb.com/forums/thread240133.html</link>
			<pubDate>Sat, 21 Nov 2009 01:36:55 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">public void init() <br />
&nbsp;{<br />
&nbsp; // Assign values to the rectanagle coordinates.<br />
<br />
&nbsp; // Add the MouseListener to your applet<br />
&nbsp;}<br />
<br />
&nbsp;public void paint(Graphics g) <br />
&nbsp;{<br />
&nbsp; // Rectangle's color<br />
&nbsp; g.setColor(Color.green);<br />
<br />
&nbsp; g.fillRect(rect1xco,rect1yco,rect1width,rect1height);<br />
<br />
&nbsp; g.setColor(Color.red);<br />
<br />
&nbsp; // When the user clicks this will show the coordinates of the click<br />
&nbsp; // at the place of the click..........<span style="font-weight:bold">Why SO???</span><br />
&nbsp; g.drawString(&quot;(&quot;+xpos+&quot;,&quot;+ypos+&quot;)&quot;,xpos,ypos);<br />
<br />
}</pre><br />
This is just a part of the code.......I deleted the non essential code....<br />
<br />
What the code is supposed to do is to listen to mouseclicks inside the green rectangle and give out the co-ordinates......<br />
<br />
First we select green color using g.setColor(Color.green)<br />
then we create or fill up the rectangle with green<br />
<br />
now after selecting red color, how does the program understand that g.drawString(......) implies co-ordinates of the mouse pointer? why can't assume an arbitrary value of xpos, ypos say 0,0</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>redmaverick</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240133.html</guid>
		</item>
		<item>
			<title>The big bang theory</title>
			<link>http://www.daniweb.com/forums/thread240132.html</link>
			<pubDate>Sat, 21 Nov 2009 01:26:59 GMT</pubDate>
			<description>Hi and have been thinking about the big bang and wonder how did it all really start. Was it really like this theory (http://foxygoddess.multiply.com/video/item/11) or the effect of somebody doing an intergalactic experiment in the parallel universe. So many theories some based on science some based...</description>
			<content:encoded><![CDATA[<div>Hi and have been thinking about the big bang and wonder how did it all really start. Was it really like <a rel="nofollow" class="t" href="http://foxygoddess.multiply.com/video/item/11" target="_blank">this theory</a> or the effect of somebody doing an intergalactic experiment in the parallel universe. So many theories some based on science some based on religion and yet there seems to be no true answer. Most scientists say it started with two gas particles colliding at supersonic speeds. However how were these gas particles created - perhaps by god farting.<br />
<br />
I believe in the theory of gods fart created the universe where in the Pegasus galaxy life was immediately created and that life (Atlantians) explored the universe creating other species and Stargates that the US is probably hiding or hasn't found then life from the Pegasus galaxy had eventually been transfered to Earth via Stargate. Also since the universe is always expanding you will find that the universe would have been relatively small back then. So what is your theory?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum6.html"><![CDATA[Geeks' Lounge]]></category>
			<dc:creator>cwarn23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240132.html</guid>
		</item>
		<item>
			<title>DHTMLDialog Interaction VC++ 2008</title>
			<link>http://www.daniweb.com/forums/thread240130.html</link>
			<pubDate>Sat, 21 Nov 2009 01:20:15 GMT</pubDate>
			<description><![CDATA[I built a Visual Studio 2008 VC++ project, dialog based using HTML. 
In my HTML I have: 
  <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>I built a Visual Studio 2008 VC++ project, dialog based using HTML.<br />
In my HTML I have:<br />
 <pre style="margin:20px; line-height:13px">&lt;form name=&quot;loadExcel&quot;&gt;<br />
&nbsp; &nbsp; Choose the file which contains the information:&lt;br /&gt;<br />
&nbsp; &nbsp; &lt;input type=&quot;file&quot; name=&quot;myFile&quot; value=&quot;Search&quot; id=&quot;myFileInput&quot; /&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &lt;input type=&quot;button&quot; class=&quot;Upload&quot; name=&quot;loadExcel&quot; title=&quot;Import&quot; id=&quot;loadExcelButton&quot; /&gt;<br />
&lt;/form&gt;</pre><br />
The user is supposed to browse to a valid Excel file which I will work using the excellent <span style="font-weight:bold">ExcelFormat library by Martin Fuchs</span> to produce a XML output.<br />
So, I try to capture the path to the file or at least something using the button loadExcel that will trigger a function:<br />
 <pre style="margin:20px; line-height:13px">BEGIN_DHTML_EVENT_MAP(CGeneraliDMDlg)<br />
&nbsp; &nbsp; &nbsp; &nbsp; DHTML_EVENT_ONCLICK(_T(&quot;ButtonOK&quot;), OnButtonOK)<br />
&nbsp; &nbsp; &nbsp; &nbsp; DHTML_EVENT_ONCLICK(_T(&quot;ButtonCancel&quot;), OnButtonCancel)<br />
&nbsp; &nbsp; &nbsp; &nbsp; DHTML_EVENT_ONCLICK(_T(&quot;loadExcelButton&quot;), OnLoadExcel)<br />
END_DHTML_EVENT_MAP()</pre><br />
And here is the code to my function so far:<br />
 <pre style="margin:20px; line-height:13px">HRESULT CGeneraliDMDlg::OnLoadExcel(IHTMLElement* pElement){<br />
&nbsp; &nbsp; &nbsp; &nbsp; BSTR bstrText = NULL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; GetElement(_T(&quot;myFileInput&quot;), &amp;pElement);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(pElement){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pElement-&gt;get_innerText(&amp;bstrText);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; char *Text = _com_util::ConvertBSTRToString(bstrText);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AfxMessageBox(Text);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return S_OK;<br />
}</pre><br />
For some reason I don't understand, the Message box is empty, does it mean I'm not capturing anything? can someone give me a little help with this?<br />
To tell the truth, I found the code for the OnLoadExcel function doing some research, but it does not work.<br />
If I do something like  <pre style="margin:20px; line-height:13px">pElement-&gt;put_outerHTML(blah)</pre>, it works perfect, so i think somehow i'm loosing my information in the way.<br />
<br />
In advance, thanks for any help you can give me :D</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Tales</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240130.html</guid>
		</item>
		<item>
			<title>Python file not working</title>
			<link>http://www.daniweb.com/forums/thread240129.html</link>
			<pubDate>Sat, 21 Nov 2009 01:11:26 GMT</pubDate>
			<description><![CDATA[Trying to make a file that tests how many seconds it takes for python to use a while loop to count how many seconds 1000 loops takes. Not working, I don't know why. Every time I run this it outputs "('It took 0,0')"...The while loop didn't start.  
 
  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>Trying to make a file that tests how many seconds it takes for python to use a while loop to count how many seconds 1000 loops takes. Not working, I don't know why. Every time I run this it outputs &quot;('It took 0,0')&quot;...The while loop didn't start. <br />
<br />
 <pre style="margin:20px; line-height:13px">import time<br />
import math<br />
<br />
count = 0<br />
PrevTime = time.time()<br />
<br />
while count &lt; 1000:<br />
&nbsp; &nbsp; count +=1<br />
&nbsp; &nbsp; if count == 1000:<br />
&nbsp; &nbsp; &nbsp; &nbsp; print (&quot;It took &quot;, time.time() - PrevTime)<br />
&nbsp; &nbsp; &nbsp; &nbsp; raw_input()</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>ffs82defxp</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240129.html</guid>
		</item>
		<item>
			<title>Crawler</title>
			<link>http://www.daniweb.com/forums/thread240128.html</link>
			<pubDate>Sat, 21 Nov 2009 00:56:00 GMT</pubDate>
			<description>hey, so for my first project in my class, I need to build a crawler 
this is what I need it to do: 
 
- crawl and follow all urls on a domain (not go out into other websites) 
- get the title of the page 
- get the meta tag keywords of the page 
- get the meta tag description of the page 
- get the...</description>
			<content:encoded><![CDATA[<div>hey, so for my first project in my class, I need to build a crawler<br />
this is what I need it to do:<br />
<br />
- crawl and follow all urls on a domain (not go out into other websites)<br />
- get the title of the page<br />
- get the meta tag keywords of the page<br />
- get the meta tag description of the page<br />
- get the url of the page<br />
- store all of this information in a MySQL database<br />
- then follow the url's on the page and do the same thing on those pages<br />
<br />
- if possible, I would also like to get the full index of the page and store it into the MySQL database as well (we are going to make a script for our next project to search for keywords of what we crawled, but I can do that myself after I have the data).<br />
<br />
I'm not planning to create a public website or anything, just something for private testing. if you cannot help with this but you know of other scripts with similar features to use as reference, that would be huge help as well.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>taminder</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240128.html</guid>
		</item>
		<item>
			<title>How to remove an item from a list?</title>
			<link>http://www.daniweb.com/forums/thread240126.html</link>
			<pubDate>Sat, 21 Nov 2009 00:44:36 GMT</pubDate>
			<description>I require some help on how to go about writing a function that removes an item from a list along with how to return a list with an item removed. Any help would be gladly appreciated.</description>
			<content:encoded><![CDATA[<div>I require some help on how to go about writing a function that removes an item from a list along with how to return a list with an item removed. Any help would be gladly 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/thread240126.html</guid>
		</item>
		<item>
			<title>Enterprise MicroBlogging</title>
			<link>http://www.daniweb.com/forums/thread240125.html</link>
			<pubDate>Sat, 21 Nov 2009 00:40:32 GMT</pubDate>
			<description>I was on one of my Linkedin Forums and I saw a question about people who are using SocialText or SocialCast, both of which offer enterprise collaboration software for large companies and corporation who want to centralize all of their social media efforts and encourage collaboration. 
 
Has anyone...</description>
			<content:encoded><![CDATA[<div>I was on one of my Linkedin Forums and I saw a question about people who are using SocialText or SocialCast, both of which offer enterprise collaboration software for large companies and corporation who want to centralize all of their social media efforts and encourage collaboration.<br />
<br />
Has anyone here used or seen a demo of either of these and what were your impressions?  I ask because while these are enterprise products targeted at large companies I can easily see these two products offered in smaller versions to try to capture the larger companies in the SMB market.  And if I am right I want to build a knowledgebase now because I know some of my clients will ask about them.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum50.html">Growing an Online Community</category>
			<dc:creator>MktgRob</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240125.html</guid>
		</item>
		<item>
			<title>getline with for a string with two letters?</title>
			<link>http://www.daniweb.com/forums/thread240124.html</link>
			<pubDate>Sat, 21 Nov 2009 00:37:07 GMT</pubDate>
			<description><![CDATA[Hello all, 
I'm trying to parse a file, but for some reason, getline is combining my two letter words with other words. 
 
Here is the portion of code I'm working with: *note*: my program will always ignore the first word in a line 
  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
I'm trying to parse a file, but for some reason, getline is combining my two letter words with other words.<br />
<br />
Here is the portion of code I'm working with: <span style="font-weight:bold">note</span>: my program will always ignore the first word in a line<br />
 <pre style="margin:20px; line-height:13px">char line[256];<br />
string word;&nbsp; <br />
char *line2=new char(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; fgets(line, 256, in); //get the line from the in stream (which contains the file)<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (feof(in))<br />
&nbsp; &nbsp; &nbsp; &nbsp;  return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;%s&quot;,line); //print first line<br />
&nbsp; &nbsp; &nbsp; &nbsp; strncpy(line2,line,(strlen(line)-1)); //copy the line into a char pointer, minus the newline char<br />
&nbsp; &nbsp; &nbsp; &nbsp; string str;<br />
str.assign(line2); //copy the line2 char* into a string, this maybe be redundent<br />
<br />
stringstream s(str); //set s as a sstream reading from the str<br />
getline(s, word, ' '); //gets the first word, which I do not use<br />
while (getline(s, word, ' ')){ //gets the following words in the line in order and parses<br />
cout&lt;&lt;&quot;word is &quot; &lt;&lt; word &lt;&lt; endl;<br />
<br />
//pseudo code here where if the current parsed word is recognized, then the program prints something, otherwise it will recurse to the next line, not really important here<br />
}</pre><br />
For example, say in my file I have<br />
pet CAT AB<br />
<br />
When I use my cout to check my parsed words, I would see CAT, then ABCAT. Any reason why? Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Deadmon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240124.html</guid>
		</item>
		<item>
			<title>How to run a lisp prorgram in emacs?</title>
			<link>http://www.daniweb.com/forums/thread240123.html</link>
			<pubDate>Sat, 21 Nov 2009 00:36:31 GMT</pubDate>
			<description>I currently have a LISP program that is complete and from another source, and I would like to run it and view the output all within Emacs, if anyone could help me I would greatly appreciate it</description>
			<content:encoded><![CDATA[<div>I currently have a LISP program that is complete and from another source, and I would like to run it and view the output all within Emacs, if anyone could help me I would greatly appreciate it</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science</category>
			<dc:creator>slenno1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240123.html</guid>
		</item>
		<item>
			<title>New site needing reviews</title>
			<link>http://www.daniweb.com/forums/thread240122.html</link>
			<pubDate>Sat, 21 Nov 2009 00:28:29 GMT</pubDate>
			<description>I set up this site to help new internet entrepreneurs. 
Please let me know what you think.  
Thanks  
 
 http://www.onlineallstar.com</description>
			<content:encoded><![CDATA[<div>I set up this site to help new internet entrepreneurs.<br />
Please let me know what you think. <br />
Thanks <br />
<br />
 <a rel="nofollow" class="t" href="http://www.onlineallstar.com" target="_blank">http://www.onlineallstar.com</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum55.html">Website Reviews</category>
			<dc:creator>evan101</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240122.html</guid>
		</item>
		<item>
			<title>SWT Text.append() does not update</title>
			<link>http://www.daniweb.com/forums/thread240121.html</link>
			<pubDate>Sat, 21 Nov 2009 00:27:40 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I'm a newbie for SWT, all was fine until now. 
I got a simple app with some buttons and text fields. I'd like to update the text field with incoming messages and show it to the user. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I'm a newbie for SWT, all was fine until now.<br />
I got a simple app with some buttons and text fields. I'd like to update the text field with incoming messages and show it to the user.<br />
<br />
 <pre style="margin:20px; line-height:13px">Display display = new Display();<br />
Shell shell = new Shell(display);<br />
<br />
messageField = new Text (shell, SWT.BORDER);<br />
messageField.setBounds(10, 100, 150, 100);<br />
messageField.setEditable(false);<br />
<br />
messageField.append(&quot;1st&quot;);<br />
<br />
<br />
shell.setBounds(10, 10, 600, 1400);<br />
shell.pack ();<br />
<br />
shell.open ();<br />
while (!shell.isDisposed ()) {<br />
if (!display.readAndDispatch ()) display.sleep ();<br />
}<br />
<br />
display.dispose ();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
messageField.append(&quot;2nd&quot;);</pre><br />
<br />
Now, I can see &quot;1st&quot; but not &quot;2nd&quot; because it's called after the display.dispose ();<br />
OK, but how can I update a text field after the app is shown on the screen?<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>robv</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240121.html</guid>
		</item>
		<item>
			<title>memcpy with int clears entire buffer</title>
			<link>http://www.daniweb.com/forums/thread240119.html</link>
			<pubDate>Sat, 21 Nov 2009 00:21:09 GMT</pubDate>
			<description>Hi, 
 
I have a char* buffer that is 1024 bytes in size, and am trying to write an int to a particular offset in the buffer, in this case 0, but all offsets have the same problem. 
 
I initialize the buffer to some values when I first start up.  For example, the first 8 bytes contain two separate...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a char* buffer that is 1024 bytes in size, and am trying to write an int to a particular offset in the buffer, in this case 0, but all offsets have the same problem.<br />
<br />
I initialize the buffer to some values when I first start up.  For example, the first 8 bytes contain two separate ints, followed by 2 chars.  When I print this out, it shows up as full.<br />
<br />
However, when I try to add another value as shown in the code below, it completely destroys all the other data in the buffer.<br />
<br />
 <pre style="margin:20px; line-height:13px">char* buffer = new char[1024];<br />
<br />
***buffer initialization code***<br />
<br />
int fd = 4;<br />
int bufferOffset = 0;<br />
<br />
memcpy(buffer + bufferOffset, &amp;fd, 4);<br />
<br />
cout &lt;&lt; buffer &lt;&lt; endl;</pre><br />
Does anyone know why this could be happening?  I'm under the impression that the above code should copy the 4 bytes of an int to my buffer, not completely destroy it.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>cmk2901</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240119.html</guid>
		</item>
		<item>
			<title>Organic vs Paid</title>
			<link>http://www.daniweb.com/forums/thread240118.html</link>
			<pubDate>Sat, 21 Nov 2009 00:20:35 GMT</pubDate>
			<description>I was just reading an interesting column that was discussing how to choose where to use certain keywords, whether it be in organic search efforts or PPC.  While the authors present a hypothetical scenario of a company with mutiple products/business units fighting for ownership of certain keywords...</description>
			<content:encoded><![CDATA[<div>I was just reading an interesting column that was discussing how to choose where to use certain keywords, whether it be in organic search efforts or PPC.  While the authors present a hypothetical scenario of a company with mutiple products/business units fighting for ownership of certain keywords and how to approach the decision of who gets the keywords. I am curious to know if outside of large companies is there really an issue or can you easily use the same keywords for both organic search and PPC?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum45.html">Search Engine Optimization</category>
			<dc:creator>MktgRob</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240118.html</guid>
		</item>
		<item>
			<title>live chat support website</title>
			<link>http://www.daniweb.com/forums/thread240116.html</link>
			<pubDate>Fri, 20 Nov 2009 23:25:51 GMT</pubDate>
			<description><![CDATA[Hi 
 
I've been glazing websites for quite sometime now but this is my first post here.... 
 
Please review my website.We are a vendor who offers a unique service, we are offering live 24-hour chat support on company websites. We don’t just offer the software; we also do the customer service work...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
I've been glazing websites for quite sometime now but this is my first post here....<br />
<br />
Please review my website.We are a vendor who offers a unique service, we are offering live 24-hour chat support on company websites. We don’t just offer the software; we also do the customer service work for our clients. <br />
<br />
I would like to hear what you think about it.<br />
Any constructive comments will be welcomed.<br />
<br />
The site can be viewed at <a rel="nofollow" class="t" href="http://live247Support.com" target="_blank">http://live247Support.com</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum55.html">Website Reviews</category>
			<dc:creator>livechat</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240116.html</guid>
		</item>
		<item>
			<title><![CDATA[Not sure if my "for" statment code is correct.....]]></title>
			<link>http://www.daniweb.com/forums/thread240115.html</link>
			<pubDate>Fri, 20 Nov 2009 23:23:33 GMT</pubDate>
			<description><![CDATA[My question: 
What is the output of the code corresponding to the following pseudocode?  
 
 
Set y = 0 
For (i = 0; i<=6; i=i+3) 
For (j = 0; j<=15; j=j+5) 
Set y = y + 1; 
End For (j) 
End For (i)]]></description>
			<content:encoded><![CDATA[<div>My question:<br />
What is the output of the code corresponding to the following pseudocode? <br />
<br />
 <pre style="margin:20px; line-height:13px">Set y = 0<br />
For (i = 0; i&lt;=6; i=i+3)<br />
For (j = 0; j&lt;=15; j=j+5)<br />
Set y = y + 1;<br />
End For (j)<br />
End For (i)<br />
Output y</pre><br />
This is what I have so far but I'm not sure if it's right/complete:<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
<br />
int main()<br />
{<br />
int y = 0;<br />
for(int i = 0; i &lt;= 6; i+= 3)<br />
for(int j = 0; j&lt;= 15; j+=5)<br />
++y;<br />
<br />
std::cout &lt;&lt; y &lt;&lt; &quot;\n&quot;;<br />
}</pre><br />
Thanks in advance!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>confusedndazed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240115.html</guid>
		</item>
		<item>
			<title>Bubble and Selection sort</title>
			<link>http://www.daniweb.com/forums/thread240114.html</link>
			<pubDate>Fri, 20 Nov 2009 23:08:56 GMT</pubDate>
			<description><![CDATA[here is my codes  
basicallysorting works  
but now i have to set a counter to display out the  contents of array1 and array2 each pass of the sort. the problem is where to put that counter???? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>here is my codes <br />
basicallysorting works <br />
but now i have to set a counter to display out the  contents of array1 and array2 each pass of the sort. the problem is where to put that counter????<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
#include &lt;iomanip&gt;<br />
<br />
using namespace std;<br />
// Function prototypes<br />
void showArray1(int [], int);<br />
void bubbleSortArray1(int [], int);<br />
void showArray2(int [], int);<br />
void selectionSortArray2(int [], int);<br />
<br />
&nbsp;int main()<br />
&nbsp;{<br />
&nbsp;const int SIZE = 8;&nbsp; //size of the arrays<br />
&nbsp;//two identical arrays of 8 integers <br />
&nbsp;<br />
&nbsp;int array1[SIZE] = {7, 2, 3, 8, 9, 1, 5, 4};<br />
&nbsp;int array2[SIZE] = {1, 5, 7, 8, 9, 3, 2, 0};&nbsp; //??<br />
&nbsp;<br />
&nbsp;//display First array<br />
&nbsp;cout &lt;&lt; &quot;The unsorted values in array1 are:\n&quot;;<br />
showArray1(array1, SIZE);<br />
&nbsp; <br />
&nbsp;//*call the function to sort array 1[ Binary sort]<br />
bubbleSortArray1(array1, SIZE);<br />
cout &lt;&lt; &quot;The Bubble sorted values of array1 are:\n&quot;;<br />
showArray1(array1, SIZE);<br />
&nbsp; <br />
&nbsp;//display second array<br />
&nbsp;cout &lt;&lt; &quot;The unsorted values in array2 are:\n&quot;;<br />
<br />
&nbsp;showArray2(array2, SIZE);<br />
&nbsp;<br />
//call the function to selection sort array2 in ascending order<br />
&nbsp;<br />
selectionSortArray2(array2, SIZE);<br />
cout &lt;&lt; &quot;The Selection sorted values of array2 are:\n&quot;;<br />
<br />
showArray2(array2, SIZE);<br />
<br />
&nbsp;cout &lt;&lt; &quot;End of Program.\n&quot;;<br />
&nbsp;  system(&quot;PAUSE&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
}<br />
/**********Function to display array1***************/<br />
void showArray1(int array1[], int elems)<br />
{<br />
for (int count = 0; count &lt; elems; count++)<br />
cout &lt;&lt; array1[count] &lt;&lt; &quot; &quot;;<br />
cout &lt;&lt; endl;<br />
}<br />
&nbsp; /**********Function to display array2***************/<br />
void showArray2(int array2[], int elems)<br />
{<br />
&nbsp; &nbsp;  for (int count = 0; count &lt; elems; count++)<br />
&nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; array2[count] &lt;&lt; &quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; endl;<br />
}<br />
//**********Function to BUBBLE sort array1***************/<br />
//***********Modified to print elements position after each pass*****/<br />
/***********************************************************<br />
This function performs an ascending-order bubble sort on *<br />
&nbsp;array1. The parameter elems holds the number of elements *<br />
in the array. *<br />
***********************************************************/<br />
void bubbleSortArray1(int array[], int elems)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bool swap;<br />
&nbsp; &nbsp;  do<br />
&nbsp; &nbsp;  { swap = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int count = 0; count &lt; (elems - 1); count++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (array[count] &gt; array[count + 1])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp = array[count];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[count] = array[count + 1];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[count + 1] = temp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; swap = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp;  } while (swap);<br />
} <br />
//**********Function to selection sort array2***************/<br />
//***********Modified to print elements position after each pass*****/<br />
void selectionSortArray2(int array[], int elems)<br />
{<br />
&nbsp; &nbsp;  int startScan, minIndex, minValue;<br />
<br />
&nbsp; &nbsp; &nbsp; for (startScan = 0; startScan &lt; (elems - 1); startScan++)<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; minIndex = startScan;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; minValue = array[startScan];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  for (int index = startScan + 1; index &lt; elems; index++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (array[index] &lt; minValue)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  minValue = array[index];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  minIndex = index;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[minIndex] = array[startScan];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[startScan] = minValue;<br />
&nbsp; &nbsp; &nbsp;  }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>rafta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240114.html</guid>
		</item>
		<item>
			<title><![CDATA[Google's new vertical targeted Search engine]]></title>
			<link>http://www.daniweb.com/forums/thread240113.html</link>
			<pubDate>Fri, 20 Nov 2009 22:56:32 GMT</pubDate>
			<description>It was reported today on searchengineland.com that Google has rolled out a Real Estate-focused search engine.  On the site there are individual property pages for every property listed on Google Maps.  According to the article, this part of an ongoing initiative by google to improve how real estate...</description>
			<content:encoded><![CDATA[<div>It was reported today on searchengineland.com that Google has rolled out a Real Estate-focused search engine.  On the site there are individual property pages for every property listed on Google Maps.  According to the article, this part of an ongoing initiative by google to improve how real estate info is presented in Google Maps.<br />
<br />
As I do not work with any real estate clients, does anyone know if these pages are automatically generated by Google and if they are can the real estate agents perform SEO work on these pages.  Also, how much control and imput to the real estate agents have over the pages for properties they are actively marketing?<br />
<br />
Here is the link to the original article:<br />
<br />
<a rel="nofollow" class="t" href="http://searchengineland.com/google-builds-out-a-national-real-estate-search-engine-30232" target="_blank">http://searchengineland.com/google-b...h-engine-30232</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum45.html">Search Engine Optimization</category>
			<dc:creator>MktgRob</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240113.html</guid>
		</item>
		<item>
			<title>With permission  pLeAsE...</title>
			<link>http://www.daniweb.com/forums/thread240112.html</link>
			<pubDate>Fri, 20 Nov 2009 22:40:46 GMT</pubDate>
			<description>Give me convience or give me death! 
 
The would-be programmer is 
introduced in some way to what could 
be compared to a CS101 course. 
He is taught about algorithms, 
variables, procedures, recursive 
functions, data structures and arrays. 
One of the fundamental steps for 
any program...</description>
			<content:encoded><![CDATA[<div>Give me convience or give me death!<br />
<br />
The would-be programmer is<br />
introduced in some way to what could<br />
be compared to a CS101 course.<br />
He is taught about algorithms,<br />
variables, procedures, recursive<br />
functions, data structures and arrays.<br />
One of the fundamental steps for<br />
any program development is ease of<br />
program development through<br />
incremental stages of implementation<br />
and testing and the all to important<br />
methods for procedural abstraction.<br />
This world is indefinitely growing,<br />
complicated, complex and diverse.<br />
But it doesn't require a genuis to<br />
be a programmer, nearly anyone can<br />
be trained to be a programmer and the<br />
computer science courses offered by<br />
universities train a person with<br />
no knowledge of programming from the<br />
ground up.<br />
Coding is complex but there are many<br />
steps that are technically<br />
unnecessary but make programming<br />
easier, these steps become<br />
necessities and there are very few<br />
programmers that can go without them.<br />
Convience is necessary to make<br />
programming even practical, the<br />
more convience a programmer has the<br />
better programmer he can be.<br />
Compilers, linkers, libraries,<br />
loaders, operating enviroments,<br />
device independence, all these things<br />
are for convience and without them<br />
the world would not be what we see<br />
today.<br />
<br />
In the end its just electromagnetic<br />
radiation messing with your brain.<br />
<br />
Coder 3y3ty, &quot;Give me convience or give me death!&quot;<br />
happy coding,<br />
and good day.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum125.html">Assembly</category>
			<dc:creator>NotNull</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240112.html</guid>
		</item>
		<item>
			<title>structs and functions</title>
			<link>http://www.daniweb.com/forums/thread240111.html</link>
			<pubDate>Fri, 20 Nov 2009 22:34:43 GMT</pubDate>
			<description>I am working on some homework right now and the program has to return two specified values depending on the key value the user enters. I only had to write the bottom portion of the program as the top portion was given to me as a shell.  
 
It runs but is not returning the correct values, can anyone...</description>
			<content:encoded><![CDATA[<div>I am working on some homework right now and the program has to return two specified values depending on the key value the user enters. I only had to write the bottom portion of the program as the top portion was given to me as a shell. <br />
<br />
It runs but is not returning the correct values, can anyone give me any insight as to why it is not returning the correct vaues? I am not sure if I am understanding completely how structs pass values and such...<br />
<br />
Thanks<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream.h&gt;<br />
<br />
// Definition of the PhoneTones struct<br />
<br />
struct PhoneTones<br />
{<br />
&nbsp;  int rowTone,&nbsp;  // Frequencies of the tones generated by a key press<br />
&nbsp; &nbsp; &nbsp;  colTone;<br />
};<br />
<br />
// Function prototype<br />
<br />
PhoneTones keyToTones ( char key );<br />
<br />
//--------------------------------------------------------------------<br />
<br />
int main()<br />
{<br />
&nbsp; &nbsp; char inputKey;&nbsp; &nbsp; &nbsp; &nbsp;  // Input key<br />
&nbsp; &nbsp; PhoneTones keyFreqs;&nbsp;  // Frequencies of the corresponding tones<br />
<br />
&nbsp; &nbsp; // Read in a series of keys and output the corresponding tones.<br />
<br />
&nbsp; &nbsp; cout &lt;&lt; endl &lt;&lt; &quot;Enter key pressed (0-9, *, or #): &quot;;<br />
&nbsp; &nbsp; cin &gt;&gt; inputKey;<br />
&nbsp; &nbsp; keyFreqs = keyToTones(inputKey);<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Tones produced at &quot; &lt;&lt; keyFreqs.rowTone &lt;&lt; &quot; and &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;&lt; keyFreqs.colTone &lt;&lt; &quot; Hz&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; system(&quot;pause&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
}<br />
<br />
//--------------------------------------------------------------------<br />
// Insert your keyToTones function here.<br />
//--------------------------------------------------------------------<br />
<br />
PhoneTones keyToTones ( char key )<br />
{<br />
&nbsp; &nbsp; PhoneTones Freqs;<br />
<br />
&nbsp; &nbsp; switch (key)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; case '1': case '2': case '3': Freqs.rowTone = 697; break;<br />
&nbsp; &nbsp; &nbsp; case '4': case '5': case '6': Freqs.rowTone = 770; break;<br />
&nbsp; &nbsp; &nbsp; case '7': case '8': case '9': Freqs.rowTone = 852; break;<br />
&nbsp; &nbsp; &nbsp; case '*': case '0': case '#': Freqs.rowTone = 941; break;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; switch (key)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; case '1': case '4': case '7': case '*': Freqs.colTone = 1209; break;<br />
&nbsp; &nbsp; case '2': case '5': case '8': case '0': Freqs.colTone = 1336; break;<br />
&nbsp; &nbsp; case '3': case '6': case '9': case '#': Freqs.colTone = 1477; break;<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>plobby</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240111.html</guid>
		</item>
		<item>
			<title>Tweet Dani Tweeted on Twitter</title>
			<link>http://www.daniweb.com/twitter/thread240107.html</link>
			<pubDate>Fri, 20 Nov 2009 22:30:08 GMT</pubDate>
			<description><![CDATA[DaniWeb: Just realized I ignored Twitter all week ... but that's okay because I just got out of PR Camp where half the day was spent on twitter (http://twitter.com/DaniWeb/statuses/5902183077)]]></description>
			<content:encoded><![CDATA[<div><a rel="nofollow" class="t" href="http://twitter.com/DaniWeb/statuses/5902183077" target="_blank">DaniWeb: Just realized I ignored Twitter all week ... but that's okay because I just got out of PR Camp where half the day was spent on twitter</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum27.html"><![CDATA[Dani's Updates]]></category>
			<dc:creator>cscgal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240107.html</guid>
		</item>
		<item>
			<title>Need a little help with delivery date</title>
			<link>http://www.daniweb.com/forums/thread240104.html</link>
			<pubDate>Fri, 20 Nov 2009 22:09:25 GMT</pubDate>
			<description>the problem I am having is in getting my page to produce an expected delivery date. The calculation function is working fine. I want to use the same id to figure out when the product will be delivered. I know my second set of if statements is wrong but I cant figure out how to take my current date...</description>
			<content:encoded><![CDATA[<div>the problem I am having is in getting my page to produce an expected delivery date. The calculation function is working fine. I want to use the same id to figure out when the product will be delivered. I know my second set of if statements is wrong but I cant figure out how to take my current date and add days to it and have it output the delivery date. This is not a homework assignment. It is a practice for our final and I know the instructor is going to include it. Any help will be appreciated.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;<br />
&nbsp;<br />
&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;New Page 1&lt;/TITLE&gt;<br />
&lt;META http-equiv=Content-Language content=en-us&gt;<br />
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=iso-8859-1&quot;&gt;<br />
&lt;META content=&quot;MSHTML 6.00.2900.3492&quot; name=GENERATOR&gt;<br />
&lt;META content=FrontPage.Editor.Document name=ProgId&gt;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&lt;script&gt; <br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //function getTax()<br />
&nbsp; &nbsp; &nbsp; &nbsp; //{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;get tax function&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; //}<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; function calculatePrice()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;inside calculate price&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var inPrice = parseFloat( document.getElementById(&quot;price&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(inPrice);<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; var inQuantity = (document.getElementById(&quot;quantity&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(inQuantity);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var shipping = parseFloat( document.getElementById(&quot;shipping&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var inTax = parseFloat( document.getElementById(&quot;state&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(inTax);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var state;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var totalPrice;&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; &nbsp; &nbsp; &nbsp; &nbsp; //alert(document.getElementById(&quot;state&quot;).selectedIndex);<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(document.getElementById(&quot;state&quot;).selectedIndex==0)<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; &nbsp; &nbsp; &nbsp; &nbsp; state = 0.06;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //document.getElementById(&quot;state&quot;).option[0].value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // alert(&quot;Iowa 0.06&quot;);<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==1)<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; &nbsp; &nbsp; &nbsp; &nbsp; state = 0.085;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Illinois 0.085&quot;);<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==2)<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; &nbsp; &nbsp; &nbsp; &nbsp; state = 0.7;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Indiana 0.7&quot;);<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;state&quot;).selectedIndex==3)<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; &nbsp; &nbsp; &nbsp; &nbsp; state = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Other&quot;);<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var shipping = parseFloat( document.getElementById(&quot;shipping&quot;).value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(shipping);&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(document.getElementById(&quot;shipping&quot;).selectedIndex==0)<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; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0.02;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;standard ups 0.02&quot;);<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==1)<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; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0.01;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;US Mail 0.01&quot;);<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==2)<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; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0.05;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Overnight 0.05&quot;);<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==3)<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; &nbsp; &nbsp; &nbsp; &nbsp; shipping = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(&quot;Pick up no charge&quot;);<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; <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;  inTax = inPrice * state ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //alert(inTax);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  totalPrice = inTax + (inPrice * shipping) + inPrice ;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  document.getElementById(&quot;total&quot;).value = totalPrice;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //alert(&quot;intax&quot; + inTax + &quot;qty&quot; + inQuantity + &quot;del&quot; + shipping)<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;  var now = new date()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  var expectedDate <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==0)<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; &nbsp; &nbsp; &nbsp; &nbsp;  now + 3;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //document.getElementById(&quot;state&quot;).option[0].value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;option 1&quot;);<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==1)<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; &nbsp; &nbsp; &nbsp; &nbsp;  now + 5;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;option 2&quot;);<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==2)<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; &nbsp; &nbsp; &nbsp; &nbsp;  now + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;option 3&quot;);<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.getElementById(&quot;shipping&quot;).selectedIndex==3)<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; &nbsp; &nbsp; &nbsp; &nbsp;  now;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;get it yourself&quot;);<br />
&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; }<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; document.getElementById(&quot;delivery&quot;).value = ExpectedDate;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&lt;/script&gt;<br />
&lt;/HEAD&gt;<br />
&lt;BODY text=#330000 bgColor=#00ccff ;&gt;<br />
&lt;H1 align=center&gt;Calculate Your Order&lt;/H1&gt;<br />
&lt;FORM name=frmProd&nbsp; method=GET&gt;<br />
&lt;P&gt;Price: &lt;input type=&quot;text&quot; name=&quot;price&quot; value=&quot;&quot; id=&quot;price&quot; /&gt;&lt;/P&gt;<br />
&lt;P&gt;Quantity: &lt;SELECT size=1 type=&quot;text&quot; name=&quot;quantity&quot; id=&quot;quantity&quot; /&gt; &lt;OPTION value=1 selected&gt;1&lt;/OPTION&gt; <br />
&nbsp; &nbsp;  &lt;OPTION value=2&gt;2&lt;/OPTION&gt; &lt;OPTION value=3&gt;3&lt;/OPTION&gt; &amp;nbsp;&lt;/SELECT&gt;&lt;/P&gt;<br />
&lt;P&gt;State: &lt;SELECT size=1 type = &quot;text&quot; name=&quot;state&quot; id = &quot;state&quot;&nbsp; onChange =&quot;getTax()&quot;/&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION selected value=0.06&gt;Iowa&lt;/OPTION&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION value=0.085 &gt;Illinois&lt;/OPTION&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;OPTION value=0.7&gt;Indiana&lt;/OPTION&gt; <br />
&nbsp; &nbsp; &lt;OPTION&nbsp; value=0&gt;Other&lt;/OPTION&gt; &amp;nbsp;&lt;/SELECT&gt;&lt;/P&gt;<br />
&lt;P&gt;Delivery &lt;SELECT size=1 name=shipping id=&quot;shipping&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION value=0.02 selected&gt;Standard UPS - 3 Days&lt;/OPTION&gt;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &lt;OPTION value=0.01&gt;US Mail - 5 Days&lt;/OPTION&gt;<br />
&nbsp; &nbsp; &lt;OPTION value=0.05&gt;Overnight - 1 Day&lt;/OPTION&gt; <br />
&nbsp; &nbsp; &lt;OPTION value=0&gt;Pickup&lt;/OPTION&gt;<br />
&nbsp;  &lt;/SELECT&gt;&lt;BR&gt;Method:&lt;/P&gt;<br />
&lt;P&gt;Your Total is: &lt;INPUT value=0.00 name=&quot;total&quot; id = &quot;total&quot; /&gt;&lt;/P&gt;<br />
&lt;P&gt;Expected Delivery Date:&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &lt;input type=&quot;text&quot; name=&quot;delivery&quot; id=&quot;delivery&quot;&gt;<br />
&lt;/P&gt;<br />
&lt;P&gt;&lt;INPUT type=&quot;button&quot; name = &quot;button&quot; id = &quot;button&quot; value=&quot;Calculate My Order Now!&quot;&nbsp; onclick = &quot;calculatePrice()&quot; name=btnSubmit&gt;&lt;/P&gt;&lt;/FORM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>carlcarman</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240104.html</guid>
		</item>
		<item>
			<title>window office 2003</title>
			<link>http://www.daniweb.com/forums/thread240103.html</link>
			<pubDate>Fri, 20 Nov 2009 21:57:27 GMT</pubDate>
			<description><![CDATA[I can't get window office to except the key code to load office 2003 into windows 7.  any help? 
 
Thanks]]></description>
			<content:encoded><![CDATA[<div>I can't get window office to except the key code to load office 2003 into windows 7.  any help?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum38.html">Windows Vista and Windows 7</category>
			<dc:creator>golf15</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240103.html</guid>
		</item>
		<item>
			<title>One DB record from two HTML forms</title>
			<link>http://www.daniweb.com/forums/thread240102.html</link>
			<pubDate>Fri, 20 Nov 2009 21:52:18 GMT</pubDate>
			<description>I have two HTML pages, each has a form. 
The user is supposed to fill out the input fields in one, then click a submit button that will send him to the next page, where he would fill out the rest of the fields of his questionaire, click a submit button. 
After that I need all the input data...</description>
			<content:encoded><![CDATA[<div>I have two HTML pages, each has a form.<br />
The user is supposed to fill out the input fields in one, then click a submit button that will send him to the next page, where he would fill out the rest of the fields of his questionaire, click a submit button.<br />
After that I need all the input data collected from both pages (forms) to be inserted into one record in the database.<br />
How would I achieve that?<br />
<br />
Thanks a million in advance!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>levsha</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240102.html</guid>
		</item>
		<item>
			<title>I am getting an error with the INSERT command from a form</title>
			<link>http://www.daniweb.com/forums/thread240101.html</link>
			<pubDate>Fri, 20 Nov 2009 21:45:57 GMT</pubDate>
			<description><![CDATA[hey all, 
 
I'm using a form to throw info straight into a database. i know it isn't the best way but i'm new and all other implementations have confused me (i've been reading and watching tutorials for 2 weeks) but anyway i'm going to take the info straight from the form. 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>hey all,<br />
<br />
I'm using a form to throw info straight into a database. i know it isn't the best way but i'm new and all other implementations have confused me (i've been reading and watching tutorials for 2 weeks) but anyway i'm going to take the info straight from the form.<br />
<br />
 <pre style="margin:20px; line-height:13px">Imports System<br />
Imports System.Data<br />
Imports System.Data.SqlClient<br />
<br />
Public Class frmClassAdd<br />
<br />
&nbsp; &nbsp; Dim m_intClassId As Integer = 0<br />
<br />
#Region &quot; Form Controls &amp; Events &quot;<br />
<br />
&nbsp; &nbsp; Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Close()<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click<br />
&nbsp; &nbsp; &nbsp; &nbsp; If ValidateData() &lt;&gt; True Then Exit Sub<br />
&nbsp; &nbsp; &nbsp; &nbsp; Call AddClassRecord()<br />
&nbsp; &nbsp; &nbsp; &nbsp; Call AddClass2db()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Me.Close()<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
#End Region 'Form Controls &amp; Events<br />
&nbsp; &nbsp; 'Contains submit and cancel buttons<br />
<br />
<br />
#Region &quot; Form Subs &amp; Functions &quot;<br />
<br />
&nbsp; &nbsp; Private Sub AddClassRecord()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim row As DataRow = Nothing<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; row = g_dsGradeList.Classes.NewRow<br />
&nbsp; &nbsp; &nbsp; &nbsp; row(&quot;ClassId&quot;) = nudClassId.Value<br />
&nbsp; &nbsp; &nbsp; &nbsp; row(&quot;ClassName&quot;) = txtClassName.Text.Trim<br />
&nbsp; &nbsp; &nbsp; &nbsp; row(&quot;Department&quot;) = txtDepartment.Text.Trim<br />
&nbsp; &nbsp; &nbsp; &nbsp; g_dsGradeList.Classes.Rows.Add(row)<br />
<br />
&nbsp; &nbsp; End Sub<br />
<br />
&nbsp; &nbsp; Private Sub AddClass2db()<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'this block below is to add the record straight into the database when<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'the user inserts the validated info<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim myConnection As SqlConnection<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim myCommand As SqlCommand<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ra As Integer 'integer holds the number of records inserted<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ClassId As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim ClassName As String<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dim Department As String<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'you need to provide password for sql server <br />
&nbsp; &nbsp; &nbsp; &nbsp; myConnection = New SqlConnection(&quot;Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Ein05\Documents\dbGradeListApplication.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; myConnection.Open()<br />
&nbsp; &nbsp; &nbsp; &nbsp; myCommand = new SqlCommand INSERT INTO tblClasses (ClassId,ClassName,Department)VALUES &quot;('&quot; + nudClassId.Value + &quot;,&quot; +txtClassName.Text + &quot;,&quot; + txtDepartment.Text &quot;')&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; ra = myCommand.ExecuteNonQuery()<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(&quot;New Row Inserted&quot; &amp; ra)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; myConnection.Close()<br />
<br />
&nbsp; &nbsp; End Sub</pre><br />
<br />
but the only problem i'm coming into is where the line<br />
<br />
 <pre style="margin:20px; line-height:13px">myCommand = new SqlCommand INSERT INTO tblClasses (ClassId,ClassName,Department)VALUES &quot;('&quot; + nudClassId.Value + &quot;,&quot; +txtClassName.Text + &quot;,&quot; + txtDepartment.Text &quot;')&quot;;</pre><br />
comes into play.<br />
<br />
the error states that<br />
End of statement expected.<br />
<br />
i've been overlooking this over and over but i can't find my error.<br />
<br />
help?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>leroi green</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240101.html</guid>
		</item>
		<item>
			<title>Why my site is not indexed ?</title>
			<link>http://www.daniweb.com/forums/thread240098.html</link>
			<pubDate>Fri, 20 Nov 2009 21:25:39 GMT</pubDate>
			<description>It has been 2 weeks since I launched my website. I have done everything by book, added a sitemap, registered the site with google, yahoo and bing. Put the title and description meta tag. 
 
My site is still not indexed .. 
Please advise what I can do so that google indexes it. 
dealpigeon.com 
...</description>
			<content:encoded><![CDATA[<div>It has been 2 weeks since I launched my website. I have done everything by book, added a sitemap, registered the site with google, yahoo and bing. Put the title and description meta tag.<br />
<br />
My site is still not indexed ..<br />
Please advise what I can do so that google indexes it.<br />
dealpigeon.com<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum43.html">Promotion and Marketing Plans</category>
			<dc:creator>omsoni</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240098.html</guid>
		</item>
		<item>
			<title>News Story Inventing A New Linux User Interface</title>
			<link>http://www.daniweb.com/news/story240097.html</link>
			<pubDate>Fri, 20 Nov 2009 21:19:12 GMT</pubDate>
			<description><![CDATA[If you weren't already familiar with the likes of GNOME, KDE, XFCE, LXDE, Enlightenment and others, what would you like to see in a Linux User Interface? Whether you call it a desktop manager, a window manager, an XGUI or user interface; what do you think it needs to be successfully adopted for...]]></description>
			<content:encoded><![CDATA[<div>If you weren't already familiar with the likes of GNOME, KDE, XFCE, LXDE, Enlightenment and others, what would you like to see in a Linux User Interface? Whether you call it a desktop manager, a window manager, an XGUI or user interface; what do you think it needs to be successfully adopted for regular users instead of Mac OS or Windows? Before you answer, assume that the end user is a non-technical person who just wants to turn on the computer and become productive right away.<br />
<br />
Think in terms of applications, installing new applications, help files, updating, patching, malware prevention and customizing the desktop look and feel.<br />
<br />
When you choose from all of the available window managers and desktops, what do you look for?<br />
<br />
Personally, I'd like a system that is lightweight and fast like XFCE or LXDE but with the stability of GNOME, plus the KDE and GNOME libraries so that I can install any app available at any time. I'd like a smart system that incorporates artificial intelligence (AI) into the desktop by learning the way I work and responding to those subtle and individual differences.<br />
In fact, a system that incorporates AI into the core of the operating system is a good idea and one that's long overdue. If a car's internal computer can learn the way I drive and respond to that, then surely we should create a computer that does that for users. But these are just my thoughts on the subject.<br />
<br />
Write back and tell me what you think the Linux user interface needs to make it compete more effectively against the competition.<br />
Is such a system possible to create?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum108.html">Window and Desktop Managers</category>
			<dc:creator>khess</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240097.html</guid>
		</item>
		<item>
			<title>Fibonacci Search Logic/Algorithm</title>
			<link>http://www.daniweb.com/forums/thread240096.html</link>
			<pubDate>Fri, 20 Nov 2009 21:17:22 GMT</pubDate>
			<description><![CDATA[Hello Friends! 
 
As the topic name is clearing, I need help regarding how this "Fibonacci Search" works? *The basic concept behind introducing this Fibonacci Search?* 
 
_I neither want replies telling it's based on Fibonacci Series nor the code but the actual logic behind it._ 
 
As of now I've...]]></description>
			<content:encoded><![CDATA[<div>Hello Friends!<br />
<br />
As the topic name is clearing, I need help regarding how this &quot;Fibonacci Search&quot; works? <span style="font-weight:bold">The basic concept behind introducing this Fibonacci Search?</span><br />
<br />
<span style="text-decoration:underline">I neither want replies telling it's based on Fibonacci Series nor the code but the actual logic behind it.</span><br />
<br />
As of now I've clearly understood the two searching algorithms viz. Sequential Search and Binary Search.<br />
<br />
As the Fibonacci Search is mostly based on Binary Search(As my professor said) it'd be better if you explain with that reference.<br />
<br />
It'll be good to have visual aid if possible!(as I'm a visual learner)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science</category>
			<dc:creator>Acquiring</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240096.html</guid>
		</item>
		<item>
			<title>perfect numbers . . !</title>
			<link>http://www.daniweb.com/forums/thread240095.html</link>
			<pubDate>Fri, 20 Nov 2009 21:14:26 GMT</pubDate>
			<description><![CDATA[Can any one help me with this exercise . . ! 
I did not understnd it . ? 
 
 
 
 
 
* A number  is called a proper divisor of N if M < N and M divides N. A positive integer is called perfect if it is the sum of its positive proper divisors. For example, the positive proper divisors of 28 are 1, 2,...]]></description>
			<content:encoded><![CDATA[<div>Can any one help me with this exercise . . !<br />
I did not understnd it . ?<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-weight:bold"> A number  is called a proper divisor of N if M &lt; N and M divides N. A positive integer is called perfect if it is the sum of its positive proper divisors. For example, the positive proper divisors of 28 are 1, 2, 4, 7, and 14 and 1+2+4+7+14=28. Therefore, 28 is perfect. Write a program to display the first 4 perfect integer  .. </span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>alreem</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240095.html</guid>
		</item>
		<item>
			<title>Inheritance</title>
			<link>http://www.daniweb.com/forums/thread240094.html</link>
			<pubDate>Fri, 20 Nov 2009 21:13:08 GMT</pubDate>
			<description><![CDATA[Okay where should I begin....  I have this rather asinine program that as of right now only asks the user what quantity of dollars and particular coins they have then just spits out what was imputed. I need to add in a 'child' class that does all the following 
 
-Add a new private or protected...]]></description>
			<content:encoded><![CDATA[<div>Okay where should I begin....  I have this rather asinine program that as of right now only asks the user what quantity of dollars and particular coins they have then just spits out what was imputed. I need to add in a 'child' class that does all the following<br />
<br />
-Add a new private or protected data member for a cents. This should be a floating point variable.<br />
<br />
-Add the appropriate accessor and mutator methods to the class<br />
<br />
-It needs to have its own no argument constructor that calls the base class constructor and then initializes cents to 0. <br />
<br />
-The new class should override the inputInfo method of Money. This new method will use the base class method to retrieve the data from the user as dollars, quarters, dimes, nickels and pennies. After the data has been retrieved the method should convert and store the value of the dollars, quarters, dimes, nickels and pennies as a floating point value in cents.<br />
<br />
-The new class should override the outputInfo method so that in additional to calling the base classes method, it prints an additional line showing the amount of money as a decimal value. <br />
<br />
I attached a UML (i think)<br />
<br />
And heres the code:<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
using namespace std;<br />
<br />
class Money<br />
{<br />
private:<br />
// Private data members<br />
int dollars, quarters, dimes, nickels, pennies;<br />
public:<br />
// Default constructor<br />
Money() : dollars(0),quarters(0),dimes(0),nickels(0),pennies(0)<br />
{}<br />
// User input/output methods<br />
void inputInfo();<br />
void outputInfo();<br />
// Accessor methods<br />
int getDollars() { return(dollars); }<br />
int getQuarters() { return(quarters); }<br />
int getDimes() { return(dimes); }<br />
int getNickels() { return(nickels); }<br />
int getPennies() { return(pennies); }<br />
// Mutator methods<br />
void setDollars(int data) { dollars = data; }<br />
void setQuarters(int data) { quarters = data; }<br />
void setDimes(int data) { dimes = data; }<br />
void setNickels(int data) { nickels = data; }<br />
void setPennies(int data) { pennies = data; }<br />
};<br />
int main()<br />
{<br />
Money money;<br />
money.inputInfo ();<br />
money.outputInfo ();<br />
return 0;<br />
}<br />
void Money::outputInfo()<br />
{<br />
cout &lt;&lt; &quot;\n\nYou have &quot; &lt;&lt; getDollars() &lt;&lt; &quot; dollars, &quot;<br />
&lt;&lt; getQuarters() &lt;&lt; &quot; quarters, &quot;<br />
&lt;&lt; getDimes() &lt;&lt; &quot; dimes, &quot; &lt;&lt; getNickels()<br />
&lt;&lt; &quot; nickels and &quot; &lt;&lt; getPennies()<br />
&lt;&lt; &quot; pennies.\n&quot;;<br />
}<br />
void Money::inputInfo()<br />
{<br />
int input;<br />
cout &lt;&lt; &quot;Enter the number of dollars you have (whole numbers only): &quot;;<br />
cin &gt;&gt; input;<br />
setDollars(input);<br />
cout &lt;&lt; &quot;Enter the number of quarters you have (whole numbers only): &quot;;<br />
cin &gt;&gt; input;<br />
setQuarters(input);<br />
cout &lt;&lt; &quot;Enter the number of dimes you have (whole numbers only): &quot;;<br />
cin &gt;&gt; input;<br />
setDimes(input);<br />
cout &lt;&lt; &quot;Enter the number of nickels you have (whole numbers only): &quot;;<br />
cin &gt;&gt; input;<br />
setNickels(input);<br />
cout &lt;&lt; &quot;Enter the number of pennies you have (whole numbers only): &quot;;<br />
cin &gt;&gt; input;<br />
setPennies(input);<br />
}</pre><br />
Now what I need is some help as to how to implement this new derived class into my code.<br />
<br />
And please try to keep any explanations simple I am rather &quot;challenged&quot; in this field.</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/png.gif" alt="File Type: png" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12658&amp;d=1258751196" target="_blank">UML.png</a> (61.1 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>itzaaron</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240094.html</guid>
		</item>
		<item>
			<title>Link Exchange</title>
			<link>http://www.daniweb.com/forums/thread240093.html</link>
			<pubDate>Fri, 20 Nov 2009 21:12:10 GMT</pubDate>
			<description>I just launched my website 2 weeks back. My Alexa ranking was 27 million at launch and is now 7 million. My site is not indexed by google yet. I will like to share link with professionally done websites. Please let me know if you are interested.  
 
www.dealpigeon.com 
 
 
Thanks</description>
			<content:encoded><![CDATA[<div>I just launched my website 2 weeks back. My Alexa ranking was 27 million at launch and is now 7 million. My site is not indexed by google yet. I will like to share link with professionally done websites. Please let me know if you are interested. <br />
<br />
<a rel="nofollow" class="t" href="http://www.dealpigeon.com" target="_blank">www.dealpigeon.com</a><br />
<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum158.html">Relevant Link Exchanges</category>
			<dc:creator>omsoni</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240093.html</guid>
		</item>
		<item>
			<title>News Story Woman Loses Insurance for Posting Happy Vacation Photos on Facebook</title>
			<link>http://www.daniweb.com/news/story240092.html</link>
			<pubDate>Fri, 20 Nov 2009 21:04:37 GMT</pubDate>
			<description><![CDATA[We're already heard about people being fired for calling in sick and then posting on Facebook (http://www.daniweb.com/news/post977333.html). 
 
Now a woman has lost her insurance.  
 
According to CBCNews (http://www.cbc.ca/canada/montreal/story/2009/11/19/quebec-facebook-sick-leave-benefits.html),...]]></description>
			<content:encoded><![CDATA[<div>We're already heard about people being fired for calling in sick and then <a rel="nofollow" class="t" href="http://www.daniweb.com/news/post977333.html" target="_blank">posting on Facebook</a>.<br />
<br />
Now a woman has lost her insurance. <br />
<br />
According to <a rel="nofollow" class="t" href="http://www.cbc.ca/canada/montreal/story/2009/11/19/quebec-facebook-sick-leave-benefits.html" target="_blank">CBCNews</a>, Nathalie Blanchard, 29, has been on leave from her job at IBM for the past year and a half after she was diagnosed with major depression. She was receiving monthly sick-leave benefits from Manulife, her insurance company. When the payments stopped, she called the insurance company and was told she was &quot;available to work, because of Facebook.&quot;<br />
<br />
The insurance agent reportedly described several pictures Blanchard had posted, including ones showing her at a Chippendales bar show, at her birthday party, and at the beach — evidence that she is no longer depressed.<br />
<br />
Blanchard said she had taken the vacation on her doctor's advice and that she had informed the company of the trip. <br />
<br />
In addition, Blanchard said she didn't understand how Manulife accessed her photos, because her Facebook profile is locked and only people she approves can look at what she posts. Ironically, it was due to pressure from the Canadian government that Facebook recently <a rel="nofollow" class="t" href="http://www.daniweb.com/news/story220779.html" target="_blank">revised</a> its privacy policy. Online speculation is that one of the woman's coworkers at IBM may have turned her in.<br />
<br />
The company confirmed that it uses the social networking site to investigate clients but said it would not deny or terminate a valid claim solely based on information published on websites such as Facebook.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum50.html">Growing an Online Community</category>
			<dc:creator>slfisher</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240092.html</guid>
		</item>
		<item>
			<title>Annoying javascript error in homepage</title>
			<link>http://www.daniweb.com/forums/thread240091.html</link>
			<pubDate>Fri, 20 Nov 2009 21:01:26 GMT</pubDate>
			<description>Hi, 
 
I have a javascript error in my home page. 
Which is annoying. I am having hard time debugging it. 
Please help. www.dealpigeon.com 
 
FF is not showing it. IE7, 8 shows the error. I just launched the website and I do not want users noticing an error. 
 
Thanks in advance.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I have a javascript error in my home page.<br />
Which is annoying. I am having hard time debugging it.<br />
Please help. <a rel="nofollow" class="t" href="http://www.dealpigeon.com" target="_blank">www.dealpigeon.com</a><br />
<br />
FF is not showing it. IE7, 8 shows the error. I just launched the website and I do not want users noticing an error.<br />
<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum117.html">JavaScript / DHTML / AJAX</category>
			<dc:creator>omsoni</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240091.html</guid>
		</item>
		<item>
			<title><![CDATA[separating left & right channels in array using libsndfile]]></title>
			<link>http://www.daniweb.com/forums/thread240084.html</link>
			<pubDate>Fri, 20 Nov 2009 20:48:10 GMT</pubDate>
			<description><![CDATA[Hi- 
 
I'm really new to c+ (this is day two) and I'm trying to write a program that will allow me to write audio data from a wave file into two arrays for the left channel and the right channel, i've pieced together this code so far and its definitely grabbing something from the wave file however...]]></description>
			<content:encoded><![CDATA[<div>Hi-<br />
<br />
I'm really new to c+ (this is day two) and I'm trying to write a program that will allow me to write audio data from a wave file into two arrays for the left channel and the right channel, i've pieced together this code so far and its definitely grabbing something from the wave file however i've no idea if its writing out left or right data or even a combination of the two.<br />
<br />
any ideas what I could be doing wrong?<br />
<br />
thanks<br />
<br />
domm<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">int ReadWave::waveFileToArray(){<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //sndfile obj + soundfile info object<br />
&nbsp; &nbsp; &nbsp; &nbsp; SNDFILE *sf;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  SF_INFO info;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  int num;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int num_items;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; int numFrames;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int sampleRate;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int channels;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; int i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int j;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  FILE *out;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; SNDFILE *outWave;<br />
&nbsp; &nbsp; &nbsp; &nbsp; // open the wave<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; info.format = 0;<br />
&nbsp;  sf = sf_open(filePath, SFM_READ,&amp;info);<br />
&nbsp;  if (sf == NULL)<br />
&nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp;  printf(&quot;Failed to open the file.\n&quot;);<br />
&nbsp; &nbsp; &nbsp;  exit(-1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; numFrames = info.frames;<br />
&nbsp;  sampleRate = info.samplerate;<br />
&nbsp;  channels = info.channels;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; num_items = numFrames * channels;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; vector &lt;int&gt; buffer(num_items);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; num = sf_read_int(sf, &amp;buffer[0], num_items);<br />
&nbsp; &nbsp; &nbsp; &nbsp; sf_close(sf);<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; for (i = 0; i &lt; num; i += channels){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rawWaveDataArray.push_back(buffer[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;the array size is: %d \n&quot;, rawWaveDataArray.size());<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  printf(&quot;frames=%d\n&quot;, numFrames);<br />
&nbsp;  printf(&quot;samplerate=%d\n&quot;, sampleRate);<br />
&nbsp;  printf(&quot;channels=%d\n&quot;,channels);<br />
<br />
&nbsp;  printf(&quot;num_items=%d\n&quot;,num_items);<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;Read %d items\n&quot;, num);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; for(i = 0; i &lt; rawWaveDataArray.size(); i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;%d\n&quot;, rawWaveDataArray[i]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp;  fclose(out);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>debugdom</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240084.html</guid>
		</item>
		<item>
			<title>2 DVD Drives not working</title>
			<link>http://www.daniweb.com/forums/thread240083.html</link>
			<pubDate>Fri, 20 Nov 2009 20:47:07 GMT</pubDate>
			<description>Hi all 
 
I just installed my new motherboard, along with RAM and Processor 
 
Motherboard: http://www.ebuyer.com/product/167782# 
Processor: http://www.ebuyer.com/product/168970/show_product_reviews 
 
Ram: http://www.crucial.com/uk/store/mpartspecs.aspx?mtbpoid=4B84BC76A5CA7304 
 
I have had a...</description>
			<content:encoded><![CDATA[<div>Hi all<br />
<br />
I just installed my new motherboard, along with RAM and Processor<br />
<br />
Motherboard: <a rel="nofollow" class="t" href="http://www.ebuyer.com/product/167782#" target="_blank">http://www.ebuyer.com/product/167782#</a><br />
Processor: <a rel="nofollow" class="t" href="http://www.ebuyer.com/product/168970/show_product_reviews" target="_blank">http://www.ebuyer.com/product/168970...roduct_reviews</a><br />
<br />
Ram: <a rel="nofollow" class="t" href="http://www.crucial.com/uk/store/mpartspecs.aspx?mtbpoid=4B84BC76A5CA7304" target="_blank">http://www.crucial.com/uk/store/mpar...84BC76A5CA7304</a><br />
<br />
I have had a problem in that I cant get windows to see my drives in &quot;My Computer&quot;. <br />
<br />
I had first of my DVD/RW Writemaster SH-S222 which is seen in BIOS and device manager although it has the yellow mark by it.<br />
<br />
Then i tried my other DVD, not a R or RW drive, same result. So i put the non writer drive on a usb external kit and it worked but due to installing updates etc due to new build, after 2 restarts it was no longer working, yellow mark in device manager. <br />
Both drives are in device manager but with yellow mark.<br />
<br />
I have spent 2 hours swopping these drives around. I have uninstalled re-installed, tried updating, using different IDE cable tried nearly everything. <br />
<br />
I even tried this registry fix I found <a rel="nofollow" class="t" href="http://forums.techguy.org/windows-xp/607659-solved-computer-doesnt-recognize-cd.html" target="_blank">http://forums.techguy.org/windows-xp...ognize-cd.html</a> 3rd post down<br />
<br />
I do not know what to do know, new board, x4 processor and I cant even load COD 4 onto the machine, :-(<br />
<br />
Can anyone help me please?<br />
<br />
Many thanks<br />
<br />
HLA91</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum105.html">Storage</category>
			<dc:creator>HLA91</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240083.html</guid>
		</item>
		<item>
			<title>simulating alt+2 (keypad) combination</title>
			<link>http://www.daniweb.com/forums/thread240082.html</link>
			<pubDate>Fri, 20 Nov 2009 20:47:06 GMT</pubDate>
			<description><![CDATA[I am trying to print the corresponding Unicode character for alt+2 to the Windows console window. (the console doesn't display the character, but should display ^B instead) 
The following doesn't seem to work. Just prints "2". 
 
keybd_event(VK_MENU,0 ,0 , 0); //Alt Press 
 
Sleep(10);...]]></description>
			<content:encoded><![CDATA[<div>I am trying to print the corresponding Unicode character for alt+2 to the Windows console window. (the console doesn't display the character, but should display ^B instead)<br />
The following doesn't seem to work. Just prints &quot;2&quot;.<br />
<br />
keybd_event(VK_MENU,0 ,0 , 0); //Alt Press<br />
<br />
Sleep(10);<br />
keybd_event(VK_NUMPAD2,0, 0 , 0); // 2 Press<br />
<br />
Sleep(10);<br />
keybd_event(VK_NUMPAD2,0, KEYEVENTF_KEYUP,0); // 2 Release<br />
<br />
Sleep(10);<br />
keybd_event(VK_MENU,0,KEYEVENTF_KEYUP,0); // Alt Release<br />
<br />
Sleep(10);<br />
<br />
Neither does this work. Again, just prints &quot;2&quot;.<br />
<br />
        INPUT inputs = {0}; <br />
	inputs.type = INPUT_KEYBOARD; <br />
<br />
	KEYBDINPUT ki = {0}; <br />
	ki.wVk = VK_LMENU;<br />
<br />
	inputs.ki = ki;<br />
	SendInput(1, &amp;inputs, sizeof(INPUT)); // Left alt<br />
<br />
	ki.wVk = VK_NUMPAD2;<br />
	inputs.ki = ki;<br />
	SendInput(1, &amp;inputs, sizeof(INPUT)); // Numpad 2<br />
<br />
	ki.dwFlags = KEYEVENTF_KEYUP;<br />
<br />
	ki.wVk = VK_NUMPAD2;<br />
	inputs.ki = ki;<br />
	SendInput(1, &amp;inputs, sizeof(INPUT)); // Numpad 2<br />
<br />
	ki.wVk = VK_LMENU;<br />
	inputs.ki = ki;<br />
	SendInput(1, &amp;inputs, sizeof(INPUT)); // Left alt</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>kangekraam</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240082.html</guid>
		</item>
		<item>
			<title>about this function..</title>
			<link>http://www.daniweb.com/forums/thread240081.html</link>
			<pubDate>Fri, 20 Nov 2009 20:33:24 GMT</pubDate>
			<description><![CDATA[I just want to know what does the below mentioned function means? 
 
  <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 just want to know what does the below mentioned function means?<br />
<br />
 <pre style="margin:20px; line-height:13px"><span style="color:Green">void swap(char&amp; a, char&amp; b)</span></pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>maverick405</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240081.html</guid>
		</item>
		<item>
			<title>News Story Does Linus Torvalds Hate Freedom?</title>
			<link>http://www.daniweb.com/news/story240080.html</link>
			<pubDate>Fri, 20 Nov 2009 20:28:08 GMT</pubDate>
			<description><![CDATA[According to an ongoing debate over the GPL version 3, he does. How can this be, since Linus Torvalds, creator and chief architect of the Linux kernel, knows about software freedom and free software? He doesn't have a problem with what Richard Stallman refers to as "tivoization," which is the...]]></description>
			<content:encoded><![CDATA[<div>According to an ongoing debate over the GPL version 3, he does. How can this be, since Linus Torvalds, creator and chief architect of the Linux kernel, knows about software freedom and free software? He doesn't have a problem with what Richard Stallman refers to as &quot;tivoization,&quot; which is the practice of using software available under the terms of a copyleft license but prevents the user/owner from modifying that code through the use of protections. Stallman believes that this is a blatant violation of your freedom. Linus disagrees.<br />
<br />
Stallman's argument: <br />
<span style="color:Green"><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 />  One major danger that GPLv3 will block is tivoization. Tivoization means computers (called “appliances”) contain GPL-covered software that you can't change, because the appliance shuts down if it detects modified software. The usual motive for tivoization is that the software has features the manufacturer thinks lots of people won't like. The manufacturers of these computers take advantage of the freedom that free software provides, but they don't let you do likewise.<br />
<br />
Some argue that competition between appliances in a free market should suffice to keep nasty features to a low level. Perhaps competition alone would avoid arbitrary, pointless misfeatures like “Must shut down between 1pm and 5pm every Tuesday”, but even so, a choice of masters isn't freedom. Freedom means you control what your software does, not merely that you can beg or threaten someone else who decides for you.  <hr /> </td> </tr> </table> </div></span><br />
<br />
Torvald's rebuttal:<br />
<span style="color:Red"><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 />  [Stallman] calls it &quot;tivoization&quot;, but that's a word he has made up, and a term I find offensive, so I don't choose to use it. It's offensive because Tivo never did anything wrong, and the FSF even acknowledged that. The fact that they do their hardware and have some DRM issues with the content producers and thus want to protect the integrity of that hardware.<br />
The kernel license covers the *kernel*. It does not cover boot loaders and hardware, and as far as I'm concerned, people who make their own hardware can design them any which way they want. Whether that means &quot;booting only a specific kernel&quot; or &quot;sharks with lasers&quot;, I don't care.  <hr /> </td> </tr> </table> </div></span><br />
<br />
Who's right? Well, I hate to say it but they both are. Stallman, however, is more correct.<br />
<br />
Stallman is correct when he states that freedoms are restricted when someone uses code that is distributed under a copyleft license, such as the GPL. To me, and to him, this is wrong because you can't use code that is unrestricted and then restrict its use. That violates the license because under the GPL, you must be able to inspect and modify the code, if you choose to. Tivoized devices make this impossible.<br />
<br />
Linus is correct when he says that manufacturers can design their devices any which way they want. Where he deviates from accuracy is when he says that the manufacturer can use Linux or any other code that's unrestricted and then restrict it. Manufacturers have choices with which to work that don't include GPL software. Minix, for example, uses a BSD license. A version of Windows or Mac OS would be two other good choices--except there are of course those nasty license fees one would have to pay.<br />
<br />
It seems to me that manufacturers want the best of both worlds: They want to use something free but then want to turn around and violate the license by making it impossible for you to exercise that freedom. This is wrong. And I'm surprised that the <a rel="nofollow" class="t" href="http://www.fsf.org" target="_blank">FSF</a> hasn't taken these manufacturers to task and to court over such practices.<br />
<br />
What do you think--do you think that appliances like the TiVo violates the terms of the GPL? What do you think should be done about it?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum33.html">Linux Servers and Apache</category>
			<dc:creator>khess</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240080.html</guid>
		</item>
		<item>
			<title>lamp</title>
			<link>http://www.daniweb.com/forums/thread240079.html</link>
			<pubDate>Fri, 20 Nov 2009 20:21:55 GMT</pubDate>
			<description><![CDATA[hi friends, 
I've come across a word LAMP while searching for some php codes.Can someone kindly tell what does this mean and what type of application can be developed from it. And how to begin  learning it(sources which provide complete information).]]></description>
			<content:encoded><![CDATA[<div>hi friends,<br />
I've come across a word LAMP while searching for some php codes.Can someone kindly tell what does this mean and what type of application can be developed from it. And how to begin  learning it(sources which provide complete information).</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>coolbuddy059</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240079.html</guid>
		</item>
		<item>
			<title>Create vector of strings with alphabet</title>
			<link>http://www.daniweb.com/forums/thread240078.html</link>
			<pubDate>Fri, 20 Nov 2009 20:12:47 GMT</pubDate>
			<description><![CDATA[So here is the question and it is really stumping me because I can print the alphabet once but cant figure out how to repeat it. 
 
First create a character array that contains the 26 letters as shown here. //Easy I can copy and paste ha. 
 
	  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>So here is the question and it is really stumping me because I can print the alphabet once but cant figure out how to repeat it.<br />
<br />
First create a character array that contains the 26 letters as shown here. //Easy I can copy and paste ha.<br />
<br />
	 <pre style="margin:20px; line-height:13px">char cAlphabet[] = {'a','b','c','d','e','f',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'g','h','i','j','k','l','m','n','o','p',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'q','r','s','t','u','v','w','x','y','z'};</pre><br />
Then create a vector of strings where the first string is 'a' and the second is 'bc', the third, 'def', etc. Create the number of strings requested by the user. Once you reach the letter z, start again with first letter in the alphabet. When you are done, print each vector to the screen.<br />
<br />
How many strings would you like to create?<br />
8<br />
<br />
a<br />
bc<br />
def<br />
ghij<br />
klmno<br />
pqrstu<br />
vwxyzab<br />
cdefghij<br />
<br />
<br />
<br />
Here is what I have so far it works up until 6 or 7 strings but I dont know how to fix it so that it will continue to print strings with the alphabet starting over. Anything helps, Thanks.<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
#include &lt;vector&gt;<br />
#include &lt;string&gt;<br />
using namespace std;<br />
<br />
<br />
void printVector( vector&lt;string&gt; v )<br />
{<br />
&nbsp; for(unsigned int i = 0; i &lt; v.size(); i++)<br />
&nbsp; {<br />
&nbsp; &nbsp; cout &lt;&lt; v[i] &lt;&lt; &quot;\t&quot;;<br />
&nbsp; }<br />
&nbsp; cout &lt;&lt; endl;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; return;<br />
}<br />
<br />
int main()<br />
{<br />
int nStrings=0;<br />
<br />
string str1=&quot; &quot;;<br />
<br />
vector&lt;string&gt; myVector;<br />
<br />
char cAlphabet[] = {'a','b','c','d','e','f',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'g','h','i','j','k','l','m','n','o','p',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'q','r','s','t','u','v','w','x','y','z'};<br />
<br />
str1=cAlphabet;<br />
string str=&quot; &quot;;<br />
str= str1.substr(0,26);<br />
cout&lt;&lt;str&lt;&lt;endl;<br />
<br />
cout&lt;&lt;&quot;How many strings would you like?&quot;&lt;&lt;endl;<br />
cin&gt;&gt;nStrings;<br />
<br />
for(int i=0; i &lt; nStrings; i++)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; static int j=0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; j= j + i;<br />
<br />
myVector.push_back(str.substr( j, (i+1) ));<br />
<br />
printVector(myVector);<br />
myVector.clear();<br />
<br />
}<br />
<br />
<br />
return 1;<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>wh33lz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240078.html</guid>
		</item>
		<item>
			<title>Code Snippet Wer wei?, wo zum Download XRumer 5,0 Palladium?</title>
			<link>http://www.daniweb.com/code/snippet240077.html</link>
			<pubDate>Fri, 20 Nov 2009 20:10:21 GMT</pubDate>
			<description>Wer wei?, wo zum Download XRumer 5,0 Palladium?  
Hilfe, bitte. Alle empfehlen dieses Programm, um effektiv werben im Internet, das ist das beste Programm!</description>
			<content:encoded><![CDATA[<div>Wer wei?, wo zum Download XRumer 5,0 Palladium? <br />
Hilfe, bitte. Alle empfehlen dieses Programm, um effektiv werben im Internet, das ist das beste Programm!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum113.html">Shell Scripting</category>
			<dc:creator>ValeryZew</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240077.html</guid>
		</item>
		<item>
			<title>2 dimensional array issue</title>
			<link>http://www.daniweb.com/forums/thread240076.html</link>
			<pubDate>Fri, 20 Nov 2009 20:07:24 GMT</pubDate>
			<description><![CDATA[So here's the code: 
 
 
function procRestSearch($searchQuery){  
		//Don't forget to have $searchquery defined before calling this function 
		$intSearchCounter = 0; //Used to set the arrays 
		$searchResult = mysql_query($searchQuery); 
		while($searchRow = mysql_fetch_array($searchResult,...]]></description>
			<content:encoded><![CDATA[<div>So here's the code:<br />
<br />
 <pre style="margin:20px; line-height:13px">function procRestSearch($searchQuery){ <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Don't forget to have $searchquery defined before calling this function<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $intSearchCounter = 0; //Used to set the arrays<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $searchResult = mysql_query($searchQuery);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while($searchRow = mysql_fetch_array($searchResult, MYSQL_ASSOC)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Change/Add/Delete the variables below to match what data needs to be returned<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $strRest = array($intSearchCounter =&gt; array('restID' =&gt; $searchRow&#91;'rest_id'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restName' =&gt; $searchRow&#91;'rest_name'&#93;, 'restAddress' =&gt; $searchRow&#91;'rest_address'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restAddress2' =&gt; $searchRow&#91;'rest_address2'&#93;, 'restCity' =&gt; $searchRow&#91;'rest_city'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restState' =&gt; $searchRow&#91;'rest_state'&#93;, 'restZip' =&gt; $searchRow&#91;'rest_zip'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restCC' =&gt; $searchRow&#91;'rest_country_code'&#93;, 'restAC' =&gt; $searchRow&#91;'rest_area_code'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restPhone' =&gt; $searchRow&#91;'rest_phone_no'&#93;, 'restFAC' =&gt; $searchRow&#91;'rest_fax_no'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restManager' =&gt; $searchRow&#91;'rest_manager'&#93;, 'restAsManager' =&gt; $searchRow&#91;'rest_assistant_manager'&#93;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'restWebsite' =&gt; $searchRow&#91;'rest_website'&#93;));<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; $intSearchCounter++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $strRest;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
the problem is when I call this function I get a <span style="font-weight:bold">Notice: Undefined offset: 0 in...</span> error.  However, if I replace $intSearchCounter with a static value, such as just replacing it with 0, it works but then I only get the last result from the query returned.  What am I doing wrong?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>loligator</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240076.html</guid>
		</item>
		<item>
			<title>How to split new line character?</title>
			<link>http://www.daniweb.com/forums/thread240074.html</link>
			<pubDate>Fri, 20 Nov 2009 19:59:50 GMT</pubDate>
			<description><![CDATA[Hi I have a text file which has the following: 
 
'username=sonia\n', 'password=password' 
 
I want to split sonia and place it in a variable called username. 
 
I was able to accomplish the following but could not remove the new line characters. 
 
text = 'username=sonia\n', 'password=password']]></description>
			<content:encoded><![CDATA[<div>Hi I have a text file which has the following:<br />
<br />
'username=sonia\n', 'password=password'<br />
<br />
I want to split sonia and place it in a variable called username.<br />
<br />
I was able to accomplish the following but could not remove the new line characters.<br />
<br />
text = 'username=sonia\n', 'password=password'<br />
<br />
text[0].split('=')[1]<br />
<br />
This returns 'sonia\n'<br />
<br />
So now how do I get rid of the \n?<br />
<br />
What should be modified to also remove the new line '\n'?<br />
<br />
<br />
Thanks in advance.<br />
<br />
Sonia</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>sonial8</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240074.html</guid>
		</item>
		<item>
			<title>Site Optimization</title>
			<link>http://www.daniweb.com/forums/thread240073.html</link>
			<pubDate>Fri, 20 Nov 2009 19:56:27 GMT</pubDate>
			<description>I recently designed a website and was asked to optimize it! what is site optimization? How can i go about it? HELP</description>
			<content:encoded><![CDATA[<div>I recently designed a website and was asked to optimize it! what is site optimization? How can i go about it? HELP</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum148.html">Pay-Per-Click Advertising</category>
			<dc:creator>WEPrimo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240073.html</guid>
		</item>
		<item>
			<title>Random.choice, A Pronouncing Dictionary, The Polysemy</title>
			<link>http://www.daniweb.com/forums/thread240072.html</link>
			<pubDate>Fri, 20 Nov 2009 19:55:18 GMT</pubDate>
			<description><![CDATA[People, please help me! 
I must write 30 programs on python but not well understand this program. I don't know how to write 4 programs which are simple.  
*1)* The polysemy of a word is the number of senses it has. Using WordNet, we can determine that the noun dog has 7 senses with:...]]></description>
			<content:encoded><![CDATA[<div>People, please help me!<br />
I must write 30 programs on python but not well understand this program. I don't know how to write 4 programs which are simple. <br />
<span style="font-weight:bold">1)</span> The polysemy of a word is the number of senses it has. Using WordNet, we can determine that the noun dog has 7 senses with: len(wn.synsets('dog', 'n')). Compute the average polysemy of nouns, verbs, adjectives and adverbs according to WordNet.<br />
<span style="font-weight:bold">2)</span> Use one of the predefined similarity measures to score the similarity of each of the following pairs of words. Rank the pairs in order of decreasing similarity. How close is your ranking to the order given here, an order that was established experimentally by (Miller &amp; Charles, 1998): car-automobile, gem-jewel, journey-voyage, boy-lad, coast-shore, asylum-madhouse, magician-wizard, midday-noon, furnace-stove, food-fruit, bird-cock, bird-crane, tool-implement, brother-monk, lad-brother, crane-implement, journey-car, monk-oracle, cemetery-woodland, food-rooster, coast-hill, forest-graveyard, shore-woodland, monk-slave, coast-forest, lad-wizard, chord-smile, glass-magician, rooster-voyage, noon-string.<br />
<span style="font-weight:bold">3)</span> Modify the text generation program, to do the following tasks:<br />
Store the n most likely words in a list words then randomly choose a word from the list using random.choice(). (You will need to import random first.)<br />
<span style="font-weight:bold">4)</span> To analyze a Pronouncing Dictionary. Find how much different words it contains. What percent of words from this dictionary may have a different pronunciation?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>olganneke</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240072.html</guid>
		</item>
		<item>
			<title>Parent and Childs, menustrip</title>
			<link>http://www.daniweb.com/forums/thread240071.html</link>
			<pubDate>Fri, 20 Nov 2009 19:45:53 GMT</pubDate>
			<description>Hello! 
 
I have one main form (parent) which contains others child forms. The first child form is a login form, that after correct autentication opens another child form.  
 
Depending on the user (operator or supervisor) some items of menustrip in form Parent should be available or not. The...</description>
			<content:encoded><![CDATA[<div>Hello!<br />
<br />
I have one main form (parent) which contains others child forms. The first child form is a login form, that after correct autentication opens another child form. <br />
<br />
Depending on the user (operator or supervisor) some items of menustrip in form Parent should be available or not. The supervisor will have full menu available, the user only some items.<br />
<br />
How can I do that? Any ideias?<br />
<br />
Thanks a lot.<br />
Tiago</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>chromatinpt</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread240071.html</guid>
		</item>
	</channel>
</rss>
