<?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>Wed, 25 Nov 2009 09:45:49 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>How to create a variable in a class to be seen in report viewer</title>
			<link>http://www.daniweb.com/forums/thread241240.html</link>
			<pubDate>Wed, 25 Nov 2009 09:43:35 GMT</pubDate>
			<description>I have a class which is used as a object for my reportviewer control in C#. The Datatable in that class is used by the control to show a  table. 
I have two issues. 
1  How to create a varibale  in that class that can be accessed by the reportviewer? The purpose is to send some calculated results...</description>
			<content:encoded><![CDATA[<div>I have a class which is used as a object for my reportviewer control in C#. The Datatable in that class is used by the control to show a  table.<br />
I have two issues.<br />
1  How to create a varibale  in that class that can be accessed by the reportviewer? The purpose is to send some calculated results to report. I created a property (get ,set) but it shows some stack overflow in class constructer. How to do that?<br />
2.I tried to create another table in the class but all the colums I load in one table appears in next also.<br />
<br />
Any help for me?<br />
<br />
Thanks<br />
Roy Thomas</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>RoyMicro</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241240.html</guid>
		</item>
		<item>
			<title>help with db design...</title>
			<link>http://www.daniweb.com/forums/thread241239.html</link>
			<pubDate>Wed, 25 Nov 2009 09:42:59 GMT</pubDate>
			<description>I am designing a database system to store salary information. It includes different tables (salary,personal info , ect) 
 
I want to make it use for different companies. Also i want each set of data to be separated. (by company wise). {i.e. i dnt want all the employee names of every company in one...</description>
			<content:encoded><![CDATA[<div>I am designing a database system to store salary information. It includes different tables (salary,personal info , ect)<br />
<br />
I want to make it use for different companies. Also i want each set of data to be separated. (by company wise). {i.e. i dnt want all the employee names of every company in one table!!}<br />
what would be the best database structure for that.?? <br />
<br />
i tried 1. one db for 1 company<br />
          That looks like invain.  <br />
<br />
<br />
please help me. I jst want an idea. thankx in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum126.html">MySQL</category>
			<dc:creator>jrosh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241239.html</guid>
		</item>
		<item>
			<title>Need SERIOUS Investors</title>
			<link>http://www.daniweb.com/forums/thread241238.html</link>
			<pubDate>Wed, 25 Nov 2009 09:39:39 GMT</pubDate>
			<description>I am launching a big social networking site with features like job posting , event posting in groups or outside groups and more features. 
 
I have developed it to 90% extent and looking for some investors to invest in it ,so that marketing can be done globally to make it big product.The product...</description>
			<content:encoded><![CDATA[<div>I am launching a big social networking site with features like job posting , event posting in groups or outside groups and more features.<br />
<br />
I have developed it to 90% extent and looking for some investors to invest in it ,so that marketing can be done globally to make it big product.The product has all qualities to be a strong contender.<br />
<br />
So if any body want to invest with me in this project can contact me directly at &quot;ror.php@gmail.com&quot; with subject (&quot;Investor&quot;),all legal formalities will be taken care of.<br />
<br />
Regards</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum133.html">Project Partners Wanted</category>
			<dc:creator>amithasija</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241238.html</guid>
		</item>
		<item>
			<title>20% Off hosting and domain names prices</title>
			<link>http://www.daniweb.com/forums/thread241235.html</link>
			<pubDate>Wed, 25 Nov 2009 09:30:59 GMT</pubDate>
			<description>Velnet Hosting Solutions 
 
Velnet web is one of the most experienced web hosting companies in the UK (http://www.velnetweb.co.uk/), we have been hosting websites for personal users and small businesses for over 10 years. Your website is hosted on a RAID server to ensure your website is available...</description>
			<content:encoded><![CDATA[<div><span style="color:Red">Velnet Hosting Solutions</span><br />
<br />
Velnet web is one of the most experienced <a rel="nofollow" class="t" href="http://www.velnetweb.co.uk/" target="_blank">web hosting companies in the UK</a>, we have been hosting websites for personal users and small businesses for over 10 years. Your website is hosted on a RAID server to ensure your website is available all the time.<br />
We give huge disk space and generous bandwidth with all our hosting packages. If you do not already have a web hosting with Velnet, here is your change to host your website with us at 20% less than the usual cost.<br />
<br />
<span style="color:Red">20% Off hosting and domain names prices. Just use the coupon: 2009November</span><br />
<br />
Here is example of some of our packages<br />
-----------------------------------------------<br />
<span style="color:Red">VELNET BASIC PACKAGE</span><br />
-----------------------------------------------<br />
100 MB Disk Space.<br />
4 Gb Data Transfer.<br />
Email accounts 10<br />
Databases 1.<br />
Free Features.<br />
Sub domains 1.<br />
PHP, MySQL, Perl, Cron, Python .<br />
Frontpage.<br />
Auto responder.<br />
Spam filter.<br />
Private Webmail.<br />
Control Panel.<br />
Online backup.<br />
File manager.<br />
Web stats.<br />
£29 per year<br />
Full details here<br />
ORDER Now!<br />
<br />
-----------------------------------------------<br />
<span style="color:Red">VELNET BUSINESS PACKAGE</span><br />
-----------------------------------------------<br />
400 MB Disk Space.<br />
Unlimited Data Transfer.<br />
Email accounts 40<br />
Databases 4.<br />
Free Features.<br />
Sub domains 4.<br />
Add-on Domains.<br />
PHP, MySQL, Perl, Cron, Python .<br />
Frontpage.<br />
Auto responder.<br />
Spam filter.<br />
Private Webmail.<br />
Control Panel.<br />
Online backup.<br />
File manager.<br />
Web stats.<br />
£100 per year<br />
Full details here<br />
ORDER Now!<br />
<br />
Payment Methods<br />
----------------------------<br />
PayPal<br />
All Major Credit Cards<br />
Cheque<br />
Bank Transfers<br />
<br />
<br />
Customer Support<br />
-----------------------------------<br />
Live Chat: Yes<br />
Ticketing System: Yes<br />
Skype : Yes<br />
<br />
Feel free to contact us at any time if you have any question. <a rel="nofollow" class="t" href="https://customers.velnetweb.co.uk/contact.php" target="_blank">https://customers.velnetweb.co.uk/contact.php</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum154.html">Web Hosting Deals</category>
			<dc:creator>Hafsoh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241235.html</guid>
		</item>
		<item>
			<title>what is picture/image in computer..</title>
			<link>http://www.daniweb.com/forums/thread241234.html</link>
			<pubDate>Wed, 25 Nov 2009 09:29:38 GMT</pubDate>
			<description>I wonder, what is picture/ image especially JPEG n GIF format ?? 
Is it lines of bit, byte, or binary ?? 
 
thanks...</description>
			<content:encoded><![CDATA[<div>I wonder, what is picture/ image especially JPEG n GIF format ??<br />
Is it lines of bit, byte, or binary ??<br />
<br />
thanks...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science</category>
			<dc:creator>murid</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241234.html</guid>
		</item>
		<item>
			<title>HttpWebRequest,HttpWebResponse</title>
			<link>http://www.daniweb.com/forums/thread241233.html</link>
			<pubDate>Wed, 25 Nov 2009 09:29:36 GMT</pubDate>
			<description><![CDATA[Hi 
I attached here a code that i have a problem with. 
the function CheckStatusCode() suppose to connect to uri and check the http response status. 
it should display on the screen the status received. usually the status is "OK" (200). but for instance if the page doesn't exist the status should...]]></description>
			<content:encoded><![CDATA[<div>Hi<br />
I attached here a code that i have a problem with.<br />
the function CheckStatusCode() suppose to connect to uri and check the http response status.<br />
it should display on the screen the status received. usually the status is &quot;OK&quot; (200). but for instance if the page doesn't exist the status should be &quot;NOT FOUND&quot; (404).<br />
the function works fine with uri that returns status 200.<br />
in any other status, i.e 404, the method throws exception.<br />
basically i can parse the the exception message and understand the status from there, but i don&quot;t see a reason to do so.<br />
<br />
please help me understand why i'am getting exception and the function doesn't do what it supposed to do.<br />
<br />
 <pre style="margin:20px; line-height:13px">using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using System.Net;<br />
using System.Windows.Forms;<br />
using System.IO;<br />
namespace Configurator<br />
{<br />
&nbsp; &nbsp; class Navigation<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; public void CheckStatusCode()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HttpWebRequest request=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HttpWebResponse response=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; request = (HttpWebRequest)WebRequest.Create(&quot;http://www.ynet.co.il&quot;);//OK 200<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //request = (HttpWebRequest)WebRequest.Create(&quot;https://yedion.afeka.ac.il/yedion/dxcbfgdfsg&quot;);//NOT FOUND 404<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response = (HttpWebResponse)request.GetResponse();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(response.StatusCode.ToString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MessageBox.Show(e.Message);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; finally<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.Close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>igalbk</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241233.html</guid>
		</item>
		<item>
			<title>Adaptive thresholding</title>
			<link>http://www.daniweb.com/forums/thread241232.html</link>
			<pubDate>Wed, 25 Nov 2009 09:27:53 GMT</pubDate>
			<description>Hi, 
 
I am implementing a project where I have to use adaptive thresholding on an image. That is, the threshold value must not be global, but must adapt itself with the image. I have thought a lot, but am unable to get a logic. It would be really helpful if someone can help me with the code, or...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am implementing a project where I have to use adaptive thresholding on an image. That is, the threshold value must not be global, but must adapt itself with the image. I have thought a lot, but am unable to get a logic. It would be really helpful if someone can help me with the code, or atleast the logic</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>sathya8819</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241232.html</guid>
		</item>
		<item>
			<title>Does your Website need a Redesign?</title>
			<link>http://www.daniweb.com/forums/thread241228.html</link>
			<pubDate>Wed, 25 Nov 2009 09:23:44 GMT</pubDate>
			<description>You may have a beautiful website, it may win awards for excellence in design, but unless the designer has taken into account the principles of Search Engine Optimization (SEO), you may need to consider a redesign. You may have an old website, it does its job, it tells people about your company, but...</description>
			<content:encoded><![CDATA[<div>You may have a beautiful website, it may win awards for excellence in design, but unless the designer has taken into account the principles of Search Engine Optimization (SEO), you may need to consider a redesign. You may have an old website, it does its job, it tells people about your company, but it's slow and the content, it's a bit out of date. In both cases, you definitely need to consider a redesign. <br />
Both websites will struggle to get the volume of traffic that they could receive. The new well-designed site may get traffic for those looking specifically for that site, but anyone using a keyword search for your product or services won't find you. <br />
The older site with out of date content loses out because the Search Engines think (due to the lack of fresh content) that the site is dormant or dead. Both of these websites could receive great traffic and a potentially lucrative increase in business, but without consideration of SEO, they won't get any share of that possible income. <br />
So what should one look for in a site that might need a redesign? <br />
All Flash <br />
Although there have been significant advances in Search Engine technology and they are beginning to read some flash, a site that's all flash is likely to be dreadful for Search Engines. They will be pretty, but the Search Engines won't rank them highly because the content is essentially unreadable. But what about major corporations that rank highly but have flash-only sites? These sites have such a high rate of linkage that their flash content probably doesn't matter, unless you can compete with a major corporation, an all flash sites is a no go. <br />
Frames <br />
Frames in your website make it difficult for search engines to index its pages. What's more, human visitors really struggle with frames, they're difficult to read and it's hard to get an impression of the site. Some browsers don't even support frames, meaning your site is entirely unreadable for those potential customers. <br />
Splash Pages <br />
Web designers using splash pages really make a visual impact on the visitor. Imagine the entire webpage as an animated page, straight out of a cartoon. Very impressive. Unfortunately, from an SEO point of view, they're horrible. Splash pages generally contain little or no text content; have no links and full of flash and other software which the Search Engines still find difficult to assess for a ranking. You may impress with your Splash Pages, but kiss goodbye to many potential customers. <br />
Slow Loading <br />
Very simply, a slow loading page puts off both human visitors and search engine crawlers. Human visitors may not have the patience to wait for the pages to load and search engines almost always rank the faster loading pages above the slower ones. If your site has slow loading pages, they need replacing. <br />
Out of Date Content <br />
First, the Search Engines will simply ignore this site as if it no longer exists. It may have been ok in the past to leave your content for months without updating it, but these days, it will soon slip off the radar without regularly updated content. What's more, nothing puts off a human visitor more than out of date content. <br />
If your site contains any of the above SEO problems, you need to implement a redesign; it's costing you potential income.<br />
Author: Ben Norman<br />
For more visit our website or<br />
Request your free quote<br />
<a rel="nofollow" class="t" href="http://www.rcginfotech.com/" target="_blank">http://www.rcginfotech.com/</a><br />
<a href="mailto:a.garg@rcginfotech.com">a.garg@rcginfotech.com</a><br />
<a href="mailto:himanshu.gupta@rcginfotech.com">himanshu.gupta@rcginfotech.com</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum143.html">HTML and CSS</category>
			<dc:creator>rcgitsolutions</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241228.html</guid>
		</item>
		<item>
			<title>Simple Steps for Web Designing</title>
			<link>http://www.daniweb.com/forums/thread241227.html</link>
			<pubDate>Wed, 25 Nov 2009 09:22:15 GMT</pubDate>
			<description>These days where it is almost better to call the world as online world it is always better that you have the best web design for your site that connects you with the online world. There are different steps of designing a website which have been listed below.  
•	Try and find out what is the focus...</description>
			<content:encoded><![CDATA[<div>These days where it is almost better to call the world as online world it is always better that you have the best web design for your site that connects you with the online world. There are different steps of designing a website which have been listed below. <br />
•	Try and find out what is the focus point of the website<br />
•	What are the unique features that you are looking in your website<br />
•	Describe the sections that you want in your website<br />
•	Finalize the content of your website<br />
•	Look in for a style that matches as per the industry standards<br />
•	Build the website<br />
•	Evaluate it and make the desired modifications<br />
•	Go live register a domain for yourself, find a host and even upload the website<br />
Focus of website: <br />
This is the first and foremost step that you need to take into account, it is important that you need to decide the main purpose of the website you are intending to launch. So it is important that you decide the important concept that you want to focus and even the terms of subject. It is important that you remember the fact that you need to list down the main focus and this will determine the impact on the whole project. You need to decide the web store, the information that you are intending to provide to the established clients and you also need to decide on how you are intending to brand the website. <br />
<a rel="nofollow" class="t" href="http://www.rcginfotech.com/portfolio.html" target="_blank">Website features: </a><br />
The website features will be decided in the first step itself however in this step it is important that the specific website features are decided like the shopping cart for an online store and even the password protection section of the website. It is important that you decide the features of eth website with greater depth. <br />
Describe the major sections of the website: <br />
It is important to note that as you are done with the first two steps, you are almost done with half of the web designing, in this step it is important to note that you need to specify the different sections of the website, it will be good if you decide the different sections by drawing further it will be an useful tool. The diagram can easily show you the different hierarchy order of the website and even the relation between the different sections. <br />
Draft the final content: <br />
It is important to note the fact that the final content of the website has to drafted at this stage so that there can be proper web designing done further. Hence it is important that you draft the content at this point so that you don't have to rethink on the website design later. It is the content that actually makes the website become successful and valuable. <br />
Find a style: <br />
After the content has been finalized it is the time to look in for the exact visual presentation of the site. For better results you can higher a web designer which will help you to generate greater and efficient output. <br />
<a rel="nofollow" class="t" href="http://www.rcginfotech.com/post-requirements.html" target="_blank">Develop the website:</a> <br />
This is the stage wherein you need to finally start building the website. <br />
Evaluate the website: <br />
After the website is done it is the point wherein you need to evaluate the content and modify the content then and there. <br />
The last and the final step is to go live and register a domain for yourself and then go in for the search engine optimization.<br />
Author: Michael Horny<br />
For more visit our website or<br />
Request your free quote<br />
<a rel="nofollow" class="t" href="http://www.rcginfotech.com/" target="_blank">http://www.rcginfotech.com/</a><br />
<a href="mailto:a.garg@rcginfotech.com">a.garg@rcginfotech.com</a><br />
<a href="mailto:himanshu.gupta@rcginfotech.com">himanshu.gupta@rcginfotech.com</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum45.html">Search Engine Optimization</category>
			<dc:creator>rcgitsolutions</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241227.html</guid>
		</item>
		<item>
			<title>Printing and Saving into a database</title>
			<link>http://www.daniweb.com/forums/thread241226.html</link>
			<pubDate>Wed, 25 Nov 2009 09:22:00 GMT</pubDate>
			<description>I am developing a software for a restaurant which is owned by my sister. I would like a functionality that will make her send all purchased items into a listbox,and afterwards which will calculate for the total plus VAT. Whereby, there will be another button which will print out a items and the...</description>
			<content:encoded><![CDATA[<div>I am developing a software for a restaurant which is owned by my sister. I would like a functionality that will make her send all purchased items into a listbox,and afterwards which will calculate for the total plus VAT. Whereby, there will be another button which will print out a items and the total from the listbox to a POS printer, and at the same time save into the sales database.<br />
<br />
I'm badly of you Support.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>manste</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241226.html</guid>
		</item>
		<item>
			<title>Bios rom checksum error</title>
			<link>http://www.daniweb.com/forums/thread241225.html</link>
			<pubDate>Wed, 25 Nov 2009 09:21:28 GMT</pubDate>
			<description><![CDATA[Am having the following error on switching on the comp. , anybody has got a clue on how to safely flash the BIOS. 
 
--------------------------------------------------------- 
"Award BootBlock BIOS.V1.8 
copyright (c) 2000, Award Software, Inc 
 
BIOS ROM checksum error 
 
Detecting floppy drive A...]]></description>
			<content:encoded><![CDATA[<div>Am having the following error on switching on the comp. , anybody has got a clue on how to safely flash the BIOS.<br />
<br />
---------------------------------------------------------<br />
&quot;Award BootBlock BIOS.V1.8<br />
copyright (c) 2000, Award Software, Inc<br />
<br />
BIOS ROM checksum error<br />
<br />
Detecting floppy drive A media...<br />
Insert system disk and press enter&quot;<br />
---------------------------------------------------------</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum104.html">Motherboards, CPUs and RAM</category>
			<dc:creator>shakazulu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241225.html</guid>
		</item>
		<item>
			<title>Hi everyone</title>
			<link>http://www.daniweb.com/forums/thread241223.html</link>
			<pubDate>Wed, 25 Nov 2009 09:17:25 GMT</pubDate>
			<description>I already feel welcome on this forum.  My first post was answered within 1 hour. 
 
Programming is not new to me.  I mostly use it for personal projects.  My career has taken a turn to teaching various skills and find that programming is still useful.  I am still learning more VB to help develop...</description>
			<content:encoded><![CDATA[<div>I already feel welcome on this forum.  My first post was answered within 1 hour.<br />
<br />
Programming is not new to me.  I mostly use it for personal projects.  My career has taken a turn to teaching various skills and find that programming is still useful.  I am still learning more VB to help develop apps I can use in the classroom.  Perhaps one day it may help others to teach as well.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum165.html">Community Introductions</category>
			<dc:creator>michellspijkers</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241223.html</guid>
		</item>
		<item>
			<title>the problem of the blog Indexed</title>
			<link>http://www.daniweb.com/forums/thread241222.html</link>
			<pubDate>Wed, 25 Nov 2009 09:07:12 GMT</pubDate>
			<description><![CDATA[recently, I found that many of my blogs can't Indexed by google. can't you tell wht happenf this?]]></description>
			<content:encoded><![CDATA[<div>recently, I found that many of my blogs can't Indexed by google. can't you tell wht happenf this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum45.html">Search Engine Optimization</category>
			<dc:creator>risahe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241222.html</guid>
		</item>
		<item>
			<title>Error in program</title>
			<link>http://www.daniweb.com/forums/thread241236.html</link>
			<pubDate>Wed, 25 Nov 2009 08:58:00 GMT</pubDate>
			<description><![CDATA[Hello... 
 
I try to do like this.. 
 
But I still ther are some errors...... I don't know how I solve them 
 
Could healp me.. please 
 
This is my code]]></description>
			<content:encoded><![CDATA[<div>Hello...<br />
<br />
I try to do like this..<br />
<br />
But I still ther are some errors...... I don't know how I solve them<br />
<br />
Could healp me.. please<br />
<br />
This is my code<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
<br />
import javax.swing.JApplet;<br />
import java.awt.Color;<br />
import java.awt.Graphics;<br />
import java.io.IOException;<br />
import java.io.*;<br />
import java.util.Scanner;<br />
import java.awt.*;<br />
import java.io.FileNotFoundException;<br />
<br />
public class colok__ extends JApplet {<br />
&nbsp;  String Colors;&nbsp; &nbsp; <br />
&nbsp;  String Font1;&nbsp; &nbsp; <br />
&nbsp;  String arm;&nbsp; &nbsp;  <br />
&nbsp;  String ticks ; <br />
&nbsp;  String txts;&nbsp; <br />
&nbsp;  String Time; <br />
&nbsp;  String str=&quot; Time now is :&nbsp; &quot;;&nbsp; <br />
&nbsp;  int hr=0;<br />
&nbsp;  int min=0;<br />
&nbsp;  int sec=0;<br />
&nbsp;  String brid;<br />
&nbsp;  int sX = 5, sY = 10 ;<br />
&nbsp;  <br />
&nbsp;  <br />
&nbsp;  public void ree()<br />
&nbsp;  {<br />
&nbsp; &nbsp; &nbsp;  try <br />
&nbsp;{<br />
<br />
setSize(800,800);&nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp;  File inputFile = new File(&quot;t.txt&quot;);&nbsp; <br />
Scanner scan =new Scanner(inputFile);&nbsp; &nbsp; <br />
<br />
while(scan.hasNext()){&nbsp;  <br />
&nbsp; &nbsp; &nbsp; scan.next();&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; scan.next();&nbsp; &nbsp; &nbsp; &nbsp;  <br />
Colors = scan.next();&nbsp; &nbsp;  <br />
<br />
&nbsp; scan.next();&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; scan.next();&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; Font1 = scan.next();&nbsp; <br />
&nbsp;<br />
&nbsp;scan.next();&nbsp; &nbsp; <br />
&nbsp;scan.next();&nbsp; &nbsp; <br />
&nbsp;scan.next();&nbsp; &nbsp; <br />
arm = scan.next(); <br />
<br />
scan.next();&nbsp;  <br />
&nbsp;scan.next();&nbsp;  //read the secand word<br />
&nbsp;scan.next();&nbsp;  //read the therd word<br />
ticks =scan.next(); //read the coler of the arm frome the fill<br />
<br />
//Top text: Welcome to clock animation<br />
&nbsp;scan.next();&nbsp; //read the first word<br />
&nbsp;scan.next();&nbsp; //read the secand word<br />
txts= scan.nextLine();&nbsp; //read unteil end line<br />
<br />
//Initial time: 06 50 00 PM<br />
scan.next();&nbsp; //read the first word<br />
scan.next();&nbsp; //read the first word<br />
Time= scan.nextLine();&nbsp; <br />
scan.next();<br />
scan.next();<br />
hr=scan.nextInt();<br />
min=scan.nextInt();<br />
sec=scan.nextInt();<br />
brid=scan.next();<br />
<br />
}<br />
}<br />
&nbsp; &nbsp;  // thro FileNotFoundException if file has error..<br />
&nbsp; &nbsp;  catch( FileNotFoundException e){<br />
&nbsp; &nbsp; &nbsp; &nbsp;  e.printStackTrace();<br />
&nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  }&nbsp;  <br />
<br />
<br />
&nbsp; &nbsp; public void paint(Graphics g)<br />
&nbsp; &nbsp; {&nbsp; &nbsp; &nbsp;  <br />
&nbsp;super.paint(g);&nbsp;  <br />
g.setColor(colors(Font1));&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
Font formts =new Font(&quot;&quot;,Font.BOLD,12 );// formate the font<br />
g.setFont(formts);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g.drawString(txts, 335, 80);&nbsp; &nbsp; &nbsp; <br />
g.drawString(str+Time, 350,230);&nbsp; &nbsp; <br />
<br />
<br />
<br />
&nbsp; &nbsp; g.setColor(colors(ticks));&nbsp; <br />
for ticks ;<br />
// drow the ticks<br />
&nbsp;  g.fillRect(sX+330,sY+ 145,20,8 );<br />
&nbsp;  g.fillRect(sX+420,sY+ 150,20,8 );<br />
&nbsp;  g.fillRect(sX+380,sY+ 90,8,20 );<br />
&nbsp;  g.fillRect(sX+380,sY+ 185,8,15 );<br />
<br />
<br />
g.setColor(colors(arm));//call fincatin coler and take the coker for arm ;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arms(2*Math.PI*sec/60, sX/2,g);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arms(2*Math.PI*min/60, sY/3,g);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arms(2*Math.PI*hr/12, sY*2/4,g);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;if (sec == 60 ){<br />
<br />
&nbsp; &nbsp;  min++;<br />
<br />
&nbsp; &nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp; &nbsp;  if (min == 60){<br />
&nbsp; &nbsp; &nbsp;  hr++;<br />
&nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (hr == 12){<br />
&nbsp;if(brid==(&quot;am&quot;))<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  brid = &quot;pm&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  else<br />
brid = &quot;am&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp;  sec++;<br />
&nbsp;  try<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Thread.sleep( (int)(&nbsp; 1000 ) );<br />
&nbsp;}<br />
&nbsp; &nbsp; &nbsp; &nbsp;  catch ( InterruptedException e )<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp;}<br />
&nbsp; &nbsp; &nbsp;  repaint();<br />
<br />
}&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  <br />
// fincation coled colerto set the coler for applat;s wiil used<br />
&nbsp; &nbsp; Color colors (String a)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (a.equalsIgnoreCase(&quot;green&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.GREEN;<br />
&nbsp; if (a.equalsIgnoreCase(&quot;Black&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.BLACK;<br />
&nbsp; if (a.equalsIgnoreCase(&quot;blue&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.BLUE;<br />
&nbsp; &nbsp; &nbsp; if (a.equalsIgnoreCase(&quot;cyan&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.GRAY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (a.equalsIgnoreCase(&quot;Drk_Gery&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.DARK_GRAY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (a.equalsIgnoreCase(&quot;gray&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.GRAY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (a.equalsIgnoreCase(&quot;light_gry&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.LIGHT_GRAY;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (a.equalsIgnoreCase(&quot;magenta&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.MAGENTA;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (a.equalsIgnoreCase(&quot;orange&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.ORANGE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (a.equalsIgnoreCase(&quot;pink&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.PINK;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (a.equalsIgnoreCase(&quot;red&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.RED;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (a.equalsIgnoreCase(&quot;whit&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.WHITE;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Color.yellow;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; public void arms(double angle , int radius , Graphics g){<br />
<br />
&nbsp; &nbsp; angle =angle - 0.5 *Math.PI;<br />
&nbsp; &nbsp; int x = (int)(radius * Math.cos(angle));<br />
&nbsp; &nbsp; int y = (int)(radius * Math.sin(angle));<br />
<br />
&nbsp; &nbsp; g.drawLine(150+radius/2, 150+radius/2,150+ radius/2 + x,150+radius/2 +y);<br />
<br />
}<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>sheehab</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241236.html</guid>
		</item>
		<item>
			<title>Out of memory Exception</title>
			<link>http://www.daniweb.com/forums/thread241221.html</link>
			<pubDate>Wed, 25 Nov 2009 08:50:54 GMT</pubDate>
			<description>We have .net application installed on production server. It is using .net FrameWork 3.0 on windows server 2003 with RAM 4 GB. 
 
But there is a problem in application while running sometimes it throws system out of memory exception. I am very frustrating with this. Also I am unable to simulate the...</description>
			<content:encoded><![CDATA[<div>We have .net application installed on production server. It is using .net FrameWork 3.0 on windows server 2003 with RAM 4 GB.<br />
<br />
But there is a problem in application while running sometimes it throws system out of memory exception. I am very frustrating with this. Also I am unable to simulate the issue. I had checked all the possibilities which can cause the problem but didn’t get any thing which solve the issue<br />
<br />
 I checked on production server event log found the Out Of Memory Exception also INVALID VIEW STATE logs are there.<br />
Look at the following event log which may help to find solutions.<br />
<br />
 <br />
Exception information:<br />
Exception type: HttpException<br />
Exception message: Invalid viewstate.<br />
Request information:<br />
Request path: /zContest/ScriptResource.axd<br />
User: LisaA<br />
Is authenticated: True<br />
Authentication Type: Forms<br />
Thread information:<br />
 Thread ID: 10<br />
 Is impersonating: True<br />
Stack trace:    at System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType)<br />
 at System.Web.UI.Page.DecryptString(String s)<br />
 at System.Web.Handlers.ScriptResourceHandler.DecryptParameter(NameValueCollection queryString)<br />
  at System.Web.Handlers.ScriptResourceHandler.ProcessRequestInternal(HttpResponse response, NameValueCollection queryString, VirtualFileReader fileReader)<br />
 at System.Web.Handlers.ScriptResourceHandler.ProcessRequest(HttpContext context)<br />
at System.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)<br />
<br />
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()<br />
<br />
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)<br />
<br />
------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------<br />
<br />
Event code: 3005<br />
<br />
Event message: An unhandled exception has occurred.<br />
<br />
Process information:<br />
<br />
    Process ID: 5388<br />
<br />
    Process name: w3wp.exe  <br />
<br />
Exception information:<br />
<br />
    Exception type: OutOfMemoryException<br />
<br />
    Exception message: Exception of type 'System.OutOfMemoryException' was thrown.<br />
<br />
------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------<br />
<br />
 <br />
<br />
Please help me out on this</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum18.html">ASP.NET</category>
			<dc:creator>rahultorka</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241221.html</guid>
		</item>
		<item>
			<title>VB.Net 2003 Window Application DataGrid Pagination</title>
			<link>http://www.daniweb.com/forums/thread241220.html</link>
			<pubDate>Wed, 25 Nov 2009 08:42:12 GMT</pubDate>
			<description><![CDATA[Hi there, 
 
VB.Net 2003 Window Application DataGrid Paging. 
Need your help  
 
The users instead of using Vertical ScrollBar in DataGrid1 they requested for NEXT and PREV buttons  for paging the display on DataGrid. I have added the NEXT Button and PREV Button but doesn't know how to create the...]]></description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
VB.Net 2003 Window Application DataGrid Paging.<br />
Need your help <br />
<br />
The users instead of using Vertical ScrollBar in DataGrid1 they requested for NEXT and PREV buttons  for paging the display on DataGrid. I have added the NEXT Button and PREV Button but doesn't know how to create the script to perform the function of NEXT Page and PREV Page. <br />
Please Help me. Thanks.</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/gif.gif" alt="File Type: gif" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12703&amp;d=1259138521" target="_blank">DataGridPage.GIF</a> (25.5 KB)</td> </tr> </table> </fieldset>   </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>LennieKuah</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241220.html</guid>
		</item>
		<item>
			<title>ide with advanced code complation</title>
			<link>http://www.daniweb.com/forums/thread241219.html</link>
			<pubDate>Wed, 25 Nov 2009 08:37:17 GMT</pubDate>
			<description><![CDATA[I'm writing some basic programs on python and I need an IDE with advanced code completion(like bpython). 
 
I've tried eric, eclipse, IDLE but those are not good at code completion, I need something like bpython(if you don't know, just try, it's great at code completion and hints)]]></description>
			<content:encoded><![CDATA[<div>I'm writing some basic programs on python and I need an IDE with advanced code completion(like bpython).<br />
<br />
I've tried eric, eclipse, IDLE but those are not good at code completion, I need something like bpython(if you don't know, just try, it's great at code completion and hints)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>bsod1</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241219.html</guid>
		</item>
		<item>
			<title>PLEASE HELP. The right way for chatting over Internet</title>
			<link>http://www.daniweb.com/forums/thread241218.html</link>
			<pubDate>Wed, 25 Nov 2009 08:35:57 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I'm trying to develop a chat application over internet. First I want to send just strings... later files. I want to have a client that is a java applet that connects to the server - a java desktop application. I waould like to send files later over applet and server application. *Is this...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I'm trying to develop a chat application <span style="font-style:italic">over internet</span>. First I want to send just strings... later files. I want to have a client that is a java applet that connects to the server - a java desktop application. I waould like to send files later over applet and server application. <span style="font-weight:bold">Is this possible or the applet could be limited?</span> I use Socket connection for tha application. <span style="font-weight:bold">Is this the right approach?</span><br />
I struggled a lot trying to send string data between to computers on the internet but I could not. I only can comunicate on LAN between to desktop applications. With the applet I have problems connecting to desktop appplication.<br />
<br />
So can someone give ma hints? An example? Advices? What I am trying to do, overall, is to control my computer (which has the desktop application installed) <span style="font-weight:bold">over internet</span> (with the applet client).<br />
<br />
Thanks you. I need your advices.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>Clawsy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241218.html</guid>
		</item>
		<item>
			<title>Why XML with XSLT?</title>
			<link>http://www.daniweb.com/forums/thread241217.html</link>
			<pubDate>Wed, 25 Nov 2009 08:20:09 GMT</pubDate>
			<description><![CDATA[I wonder (as I couldn't find anything either on DaniWeb or anywhere else) why should one use XML and XSLT rather than plain XHTML? 
 
I couldn't find a rationale arguing for the use of XML and XSLT in connection with dynamic web content stored in a database. 
 
Zend does provide a tutorial...]]></description>
			<content:encoded><![CDATA[<div>I wonder (as I couldn't find <span style="font-style:italic">anything</span> either on DaniWeb or anywhere else) why should one use XML and XSLT rather than plain XHTML?<br />
<br />
I couldn't find a rationale arguing for the use of XML and XSLT in connection with dynamic web content stored in a database.<br />
<br />
Zend does provide a <a rel="nofollow" class="t" href="http://devzone.zend.com/article/1302" target="_blank">tutorial</a> for &quot;Using PHP and XSL to Transform XML into Web Content&quot; but no reason of why should anyone want to use this combination.<br />
<br />
I can guess reasons <span style="font-weight:bold">pro</span> but I'd like to know why shouldn't it be used to create web content.<br />
<br />
My reason for the use is that XML and XSLT furthers the separation of plain content (data) from style (XSLT and CSS) thus makes maintenance easier.<br />
<br />
Please, argue <span style="font-style:italic">pro</span> and <span style="font-style:italic">contra</span> as a simple &quot;anything has its advantages and weaknesses&quot; (an answer I found here on DaniWeb regarding a similar question) are self-evident and not helpful.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum134.html">XML, XSLT and XPATH</category>
			<dc:creator>Alba Ra</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241217.html</guid>
		</item>
		<item>
			<title>LIMIT Results from query !HELP</title>
			<link>http://www.daniweb.com/forums/thread241215.html</link>
			<pubDate>Wed, 25 Nov 2009 08:15:53 GMT</pubDate>
			<description><![CDATA[I can't seem to limit the result to a desired number. I have this 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 with Code Tags"...]]></description>
			<content:encoded><![CDATA[<div>I can't seem to limit the result to a desired number. I have this code:<br />
<br />
 <pre style="margin:20px; line-height:13px">//GET THE TOTAL OF LEVEL 2<br />
$result = mysql_query(&quot;SELECT COUNT(*) FROM agents WHERE (sponsor = '1' or sponsor =&nbsp; '2' or sponsor = '3') LIMIT 0,1&quot;)or die(mysql_error());&nbsp; <br />
while($row = mysql_fetch_array( $result )) {<br />
$lvl2parent = $row['COUNT(*)'];<br />
echo &quot;&lt;b&gt;Total Level 2 &lt;/b&gt; : &quot;;<br />
echo &quot;$lvl2parent &lt;br&gt;&lt;br&gt;&quot;;</pre><br />
On the code above, the sponsors 1, 2, 3 has 2 records each. And as I see it, the LIMIT 0,1 applies to each instead of giving me ONLY 1 RESULT from the overall. I thought of using an array to echo all results and then choose 1 from that but I am not too familiar with it.<br />
<br />
Hope you can help me. this is the final function to finish my project. Thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>codewalkz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241215.html</guid>
		</item>
		<item>
			<title>Help With Open File Notification</title>
			<link>http://www.daniweb.com/forums/thread241214.html</link>
			<pubDate>Wed, 25 Nov 2009 08:11:24 GMT</pubDate>
			<description>hi frds ... 
 
I want to notify my application whenver user open any file. 
i just want to notify the name of that file, which is opend by user. 
 
how can achive this. 
 
FileSystemWatcher class is not giving this facilities. 
 
I want only notification for opening any file..</description>
			<content:encoded><![CDATA[<div>hi frds ...<br />
<br />
I want to notify my application whenver user open any file.<br />
i just want to notify the name of that file, which is opend by user.<br />
<br />
how can achive this.<br />
<br />
FileSystemWatcher class is not giving this facilities.<br />
<br />
I want only notification for opening any file..<br />
<br />
please reply whaterver you know.IF any trick or logic is there than also let me know....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/thread241214.html</guid>
		</item>
		<item>
			<title>Creating and running Java .ini files</title>
			<link>http://www.daniweb.com/forums/thread241213.html</link>
			<pubDate>Wed, 25 Nov 2009 08:05:22 GMT</pubDate>
			<description><![CDATA[Hi there 
 
Iam busy creating an .ini file for an application, but it is throwing a null pointer exception the whole time and can't seem to figure out what the problem is. 
 
Why would it throw such an error and what does it mean? 
 
Could you please help me? 
Will appreciate it... 
 
Here is the...]]></description>
			<content:encoded><![CDATA[<div>Hi there<br />
<br />
Iam busy creating an .ini file for an application, but it is throwing a null pointer exception the whole time and can't seem to figure out what the problem is.<br />
<br />
Why would it throw such an error and what does it mean?<br />
<br />
Could you please help me?<br />
Will appreciate it...<br />
<br />
Here is the code for the .ini file InteractiveScreen.ini:<br />
<br />
;@InteractiveScreen<br />
;<br />
;This interactive screen shows the general information on SmartVillage and Neotel.<br />
;Smart Village<br />
;<br />
;Set page properties<br />
[PortalPage]<br />
OnShow=focus:buttonInformation<br />
Type=com.mca.portal.PortalPage<br />
;<br />
;Places the logo onto the screen<br />
;<br />
;Create the complex logo image<br />
[iconLogo1]<br />
Graphic=Normal, images/smartVillage.jpg<br />
Location=50, 50<br />
Size=150, 150<br />
Type=org.havi.ui.HStaticIcon<br />
;<br />
;Places text content on to the screen<br />
;<br />
;Set the page header<br />
[textHeader1]<br />
Text=Smart Village<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent1]<br />
Text=Smart Village™ is South Africa’s leading, next generation network and infrastructure solutions provider.<br />
Location=50, 60<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent2]<br />
Text=By utilising state-of-the-art fibre optic networks, Smart Village is able to deliver fully integrated multimedia,telecommunication and security solutions to residential, commercial and hospitality developments.<br />
Location=50, 61<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent3]<br />
Text=Our competitive advantage draws its strength from the diversity and technical capabilities of our networks, which guarantees a solid base for our core and value added service offerings.<br />
Location=50, 62<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent4]<br />
Text=From humble beginnings in 2004, the company has grown from a small start-up venture, into South Africa’s premier multi-play service provider.<br />
Location=50, 63<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent5]<br />
Text=Smart Village has a very strong national footprint, with over a thousand homes and businesses already connected.<br />
Location=50, 64<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent6]<br />
Text=Having already secured a significant portion of the market, accelerated growth is expected as Multichoice has acquired a controlling stake in Smart Village to broaden its core DStv offerings, by using Smart Village's next generation networks.<br />
Location=50, 65<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent7]<br />
Text=By providing a totally unique turnkey solution, Smart Village enables clients to deal with a single provider for multimedia, telecommunication, data and security services.<br />
Location=50, 66<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent8]<br />
Text=Smart Village also offers all the necessary service, maintenance and support that clients require, ensuring complete and total peace of mind.<br />
Location=50, 67<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Contact details<br />
;<br />
;Set the page text content<br />
[textContent9]<br />
Text=Smart Village Head Office<br />
Location=50, 68<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent10]<br />
Text=Tel : +27 (0) 12 679 3400<br />
Location=50, 69<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent11]<br />
Text=Fax : +27 (0) 12 679 3401<br />
Location=50, 70<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent12]<br />
Text=Post Box : ////////throws an error right here!!!!!!!!!!!!!!<br />
Location=50, 71<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent13]<br />
Text=Postnet Suite 422<br />
Location=50, 72<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent14]<br />
Text=Privatebag x 108<br />
Location=50, 73<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent15]<br />
Text=Centurion<br />
Location=50, 74<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent16]<br />
Text=0046<br />
Location=50, 75<br />
Size=90, 90<br />
Type=otg.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent17]<br />
Text=Physical Address :<br />
Location=50, 76<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent18]<br />
Text=Centurion Gate Complex<br />
Location=50, 77<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent19]<br />
Text=2nd Floor<br />
Location=50, 78<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent20]<br />
Text=Cnr John Vorster &amp; Akkerboom Street<br />
Location=50, 79<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
;Set the page text content<br />
[textContent21]<br />
Text=Centurion<br />
Location=50, 80<br />
Size=90, 90<br />
Type=org.havi.ui.HStaticText<br />
;<br />
<br />
Here is the code that gets the text content from the .ini file and places it on the page<br />
<br />
private void SetHStaticText(HStaticText component, String name, ArrayList&lt;Property&gt; propertyList)<br />
    {<br />
        //gets the text content from the .ini file<br />
        //places the text content on the page<br />
        if (component == null)<br />
        {<br />
            component = new HStaticText();<br />
            component.setName(name);<br />
            _owner.AddComponent(component);<br />
        }<br />
<br />
        // Set base class properties first<br />
        SetHVisible((HVisible)component, name, propertyList);<br />
<br />
    }<br />
<br />
Thanx<br />
Camzie</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>Camzie</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241213.html</guid>
		</item>
		<item>
			<title>Pass javascript variable to php.</title>
			<link>http://www.daniweb.com/forums/thread241216.html</link>
			<pubDate>Wed, 25 Nov 2009 08:04:26 GMT</pubDate>
			<description><![CDATA[Hello all, 
I have same problem. 
in javascript i called php fun using <?php fun1()?>. it run successfully. But i want to pass  variable to that function which is a value of input text box. 
i.e var tt=document.getElementById('cname');  
and i want to pass that tt value to php function.  
 
How to...]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
I have same problem.<br />
in javascript i called php fun using &lt;?php fun1()?&gt;. it run successfully. But i want to pass  variable to that function which is a value of input text box.<br />
i.e var tt=document.getElementById('cname'); <br />
and i want to pass that tt value to php function. <br />
<br />
How to do this?<br />
Please help...<br />
<br />
Thanks,<br />
Shubhada</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>ShubhadaLitke</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241216.html</guid>
		</item>
		<item>
			<title><![CDATA[strategy->sort(students);]]></title>
			<link>http://www.daniweb.com/forums/thread241212.html</link>
			<pubDate>Wed, 25 Nov 2009 07:55:08 GMT</pubDate>
			<description><![CDATA[Hello everyone, 
 
I'm trying my hand at the strategy design pattern.  I've got most of my code working, however, I keep running into two errors  
 
"invalid use of undefined type `struct sortStrategy' " 
 
strategy->sort(students); 
 
"forward declaration of `struct sortStrategy'  "]]></description>
			<content:encoded><![CDATA[<div>Hello everyone,<br />
<br />
I'm trying my hand at the strategy design pattern.  I've got most of my code working, however, I keep running into two errors <br />
<br />
&quot;invalid use of undefined type `struct sortStrategy' &quot;<br />
<br />
strategy-&gt;sort(students);<br />
<br />
&quot;forward declaration of `struct sortStrategy'  &quot;<br />
<br />
strategy = s;}<br />
<br />
I did a google search on both errors and it was suggested to do a forward declaration of my sortStrategy class, but that didn't solve the problem.  <br />
<br />
I've included my code below...thanks for the help!<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
#include &lt;fstream&gt;<br />
#include &lt;string&gt;<br />
<br />
<br />
using namespace std;<br />
<br />
enum sortStrategyOption {bubble, quick, merge, heap};<br />
<br />
class ClassRecord {<br />
&nbsp; &nbsp; &nbsp; <br />
public:<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; void buildClassBook (string students[100]) {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // do other things to prep class book <br />
&nbsp; &nbsp; <br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; void sort(string students[]) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // sort students alphabetically<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sortStrategyOption options;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  strategy-&gt;sort(students);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; void setStrategy (class sortStrategy* s) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strategy = s;}<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
private:<br />
class sortStrategy* strategy;<br />
};<br />
<br />
<br />
class sortStrategy&nbsp; {<br />
&nbsp; &nbsp; &nbsp; public:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; virtual sortStrategyOption sort(string students[100]) = 0;<br />
&nbsp; &nbsp; &nbsp;  <br />
};<br />
&nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
class BubbleSort: public sortStrategy {<br />
&nbsp; &nbsp; &nbsp; public:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sortStrategyOption sort(string students[100]) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //bubble sort<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;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
};<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
class QuickSort: public sortStrategy {<br />
&nbsp; &nbsp; &nbsp; public:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sortStrategyOption sort(string students[100]){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //quick sort<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;  }<br />
};<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; <br />
class MergeSort: public sortStrategy {<br />
&nbsp; &nbsp; &nbsp; public:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sortStrategyOption sort(string students[100]){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //merge sort<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;  }<br />
};<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;  <br />
class HeapSort: public sortStrategy {<br />
&nbsp; &nbsp; &nbsp; public:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sortStrategyOption sort(string students[100]){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //heap sort<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;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
};<br />
<br />
<br />
<br />
int main () {<br />
&nbsp; &nbsp; &nbsp; &nbsp; ClassRecord record;<br />
&nbsp; &nbsp; &nbsp; &nbsp; string students [100] = {&quot;Bill&quot;, &quot;Jose&quot;, &quot;Philipe&quot;, &quot;Chaing&quot;, &quot;Louise&quot;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Mary&quot;, &quot;Lisa&quot;};<br />
&nbsp; &nbsp; &nbsp; &nbsp; record.buildClassBook(students);<br />
&nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Trekker182</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241212.html</guid>
		</item>
		<item>
			<title>screen resolution</title>
			<link>http://www.daniweb.com/forums/thread241211.html</link>
			<pubDate>Wed, 25 Nov 2009 07:55:07 GMT</pubDate>
			<description>Hi, 
 
Is there some way by which a web application design view should remain the same even if the resolution of the screen is changed? 
 
 
 
Please reply 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Is there some way by which a web application design view should remain the same even if the resolution of the screen is changed?<br />
<br />
<br />
<br />
Please reply<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum18.html">ASP.NET</category>
			<dc:creator>shankbond</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241211.html</guid>
		</item>
		<item>
			<title>Home Based Job</title>
			<link>http://www.daniweb.com/forums/thread241210.html</link>
			<pubDate>Wed, 25 Nov 2009 07:44:12 GMT</pubDate>
			<description>Unitech Info Service Data Entry Job... Anyone can do it - It is really easy! ... Display your Ad on our website in an affordable budget. Over 50 million Ad impressions. More details:- Visit- www.payformoney.com Email:- support@payformoney.com  
Call: 0353-6410665,PostedId- UISN 532506</description>
			<content:encoded><![CDATA[<div>Unitech Info Service Data Entry Job... Anyone can do it - It is really easy! ... Display your Ad on our website in an affordable budget. Over 50 million Ad impressions. More details:- Visit- <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> <br />
Call: 0353-6410665,PostedId- UISN 532506</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum52.html">Post your Resume</category>
			<dc:creator>hamsonkurian</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241210.html</guid>
		</item>
		<item>
			<title>Q. Dynamic allocated array</title>
			<link>http://www.daniweb.com/forums/thread241209.html</link>
			<pubDate>Wed, 25 Nov 2009 07:41:57 GMT</pubDate>
			<description><![CDATA[Hi I've been struggling with this for a very long time now. And I can't seem to get it done. 
 
I want to make an array, dynamic allocted array. Which act something like an vector (I know c++ has vector). So my approach was to create a *list_add() *function. Its purpose is to add new integer values...]]></description>
			<content:encoded><![CDATA[<div>Hi I've been struggling with this for a very long time now. And I can't seem to get it done.<br />
<br />
I want to make an array, dynamic allocted array. Which act something like an vector (I know c++ has vector). So my approach was to create a <span style="font-weight:bold">list_add() </span>function. Its purpose is to add new integer values to the array, and to increase the array size if it hits end of it.<br />
<br />
Here's the problem. What I want to do in the code is to create a new dynamic allocated array, and rellocate the values from the old array to the new one. After that I want the new array to be recognized as the old one. However it does not seem to do it.<br />
<br />
Can anyone point out to be if this is the correct approach, and what I did wrong in the code?<br />
<br />
This is the test main<br />
 <pre style="margin:20px; line-height:13px">int main()<br />
{<br />
&nbsp; &nbsp; const int N = 7;<br />
<br />
&nbsp; &nbsp; //declaring dynamic array allocation<br />
&nbsp; &nbsp; int* list = new int&#91;N&#93;;<br />
<br />
&nbsp; &nbsp; int used = 0;//, a_val;<br />
<br />
&nbsp; &nbsp; //and some scrap values<br />
&nbsp; &nbsp; for(int i=0;i&lt;11;i++)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; list_add(list, used, N, i);<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; cout &lt;&lt; endl &lt;&lt; &quot;Size: &quot; &lt;&lt; N &lt;&lt; endl &lt;&lt; endl;<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Prints the list &quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; for(int i=0;i&lt;used;i++)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; list&#91;i&#93; &lt;&lt; &quot;. &quot;;<br />
&nbsp; &nbsp; }<br />
<br />
}</pre><br />
This is the function<br />
 <pre style="margin:20px; line-height:13px">bool list_add(int list&#91;&#93;, int&amp; space_used, int max_size, int value)<br />
{<br />
<br />
<br />
&nbsp; &nbsp; if(max_size-space_used &gt; 0)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; list&#91;max_size-space_used-1&#93; = value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; space_used++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Increasing size of array!&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int new_max_size = space_used+1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; int *list_new = new int&#91;new_max_size&#93;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; //this loop is only to check whether values are copied to the new array with bigger size.<br />
&nbsp; &nbsp; &nbsp; &nbsp; for(int i=0; i&lt;new_max_size; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list_new&#91;i&#93; = i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; list_new&#91;i&#93; &lt;&lt; &quot;. &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; delete &#91;&#93; list;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; space_used++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; list = list_new;<br />
&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>ganmo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241209.html</guid>
		</item>
		<item>
			<title>File can encrypt data but I want to compress the size of encrypted file also</title>
			<link>http://www.daniweb.com/forums/thread241208.html</link>
			<pubDate>Wed, 25 Nov 2009 07:41:44 GMT</pubDate>
			<description><![CDATA[Hello Helper, 
This is my code. 
I want to compress the file encrypted and then decrypt the same original file.Can you help ? 
/* 
#include<iostream.h> 
#include<conio.h> 
#include<fstream.h> 
#include<stdio.h> 
 
#define ENCRYPTION_FORMULA (int)Byte+25]]></description>
			<content:encoded><![CDATA[<div>Hello Helper,<br />
This is my code.<br />
I want to compress the file encrypted and then decrypt the same original file.Can you help ?<br />
/*<br />
#include&lt;iostream.h&gt;<br />
#include&lt;conio.h&gt;<br />
#include&lt;fstream.h&gt;<br />
#include&lt;stdio.h&gt;<br />
<br />
#define ENCRYPTION_FORMULA (int)Byte+25<br />
#define DECRYPTION_FORMULA (int)Byte-25<br />
<br />
int Encrypt(char *FILENAME,char *NEW_FILENAME)<br />
{<br />
	ifstream fin;<br />
	ofstream fout;<br />
	char Byte;<br />
	char NewByte;<br />
<br />
	fin.open(FILENAME,ios::in,ios::binary);<br />
	fout.open(NEW_FILENAME,ios::out,ios::binary);<br />
<br />
	if(!fin)<br />
	{<br />
		cout&lt;&lt;&quot;Error in opening the file:&quot;&lt;&lt;endl;<br />
		return 1;<br />
	}<br />
<br />
	while(!fin.eof())<br />
	{<br />
		Byte = fin.get();<br />
		if(fin.fail())<br />
		{<br />
			return 0;<br />
		}<br />
<br />
		NewByte = ENCRYPTION_FORMULA;<br />
		fout.put(NewByte);<br />
	}<br />
<br />
	fin.close();<br />
	fout.close();<br />
	return 1;<br />
}<br />
<br />
int Decrypt(char *FILENAME,char *NEW_FILENAME)<br />
{<br />
	ifstream fin;<br />
	ofstream fout;<br />
	char Byte;<br />
	char NewByte;<br />
<br />
	fin.open(FILENAME,ios::in,ios::binary);<br />
	fout.open(NEW_FILENAME,ios::out,ios::binary);<br />
<br />
	if(!fin)<br />
	{<br />
		cout&lt;&lt;&quot;Error in opening the file:&quot;&lt;&lt;endl;<br />
		return 1;<br />
	}<br />
<br />
	while(!fin.eof())<br />
	{<br />
		Byte = fin.get();<br />
		if(fin.fail())<br />
		{<br />
			return 0;<br />
		}<br />
<br />
		NewByte = DECRYPTION_FORMULA;<br />
		fout.put(NewByte);<br />
	}<br />
<br />
	fin.close();<br />
	fout.close();<br />
	return 1;<br />
}<br />
<br />
void main()<br />
{<br />
	clrscr();<br />
	int option;<br />
<br />
	char encfile[200];<br />
	char new_encfile[200];<br />
	char new_decfile[200];<br />
	char decfile[200];<br />
<br />
	cout&lt;&lt;&quot;Enter 1 to ENCRYPT the file&quot;&lt;&lt;endl;<br />
	cout&lt;&lt;&quot;Enter 2 to DECRYPT the file:&quot;&lt;&lt;endl;<br />
	cout&lt;&lt;&quot;option:&quot;&lt;&lt;endl;<br />
	cin&gt;&gt;option;<br />
<br />
	switch(option)<br />
	{<br />
		case 1:<br />
		cout&lt;&lt;&quot;Enter the filename to be encrypted:&quot;&lt;&lt;endl;<br />
		cin&gt;&gt;encfile;<br />
		cout&lt;&lt;&quot;Enter the new filename:&quot;&lt;&lt;endl;<br />
		cin&gt;&gt;new_encfile;<br />
		Encrypt(encfile,new_encfile);<br />
		cout&lt;&lt;&quot;ur file is encrypted now:&quot;&lt;&lt;endl;<br />
		break;<br />
<br />
		case 2:<br />
		cout&lt;&lt;&quot;Enter the filename to be decrypted:&quot;&lt;&lt;endl;<br />
		cin&gt;&gt;decfile;<br />
		cout&lt;&lt;&quot;Enter the new filename:&quot;&lt;&lt;endl;<br />
		cin&gt;&gt;new_decfile;<br />
		Decrypt(decfile,new_decfile);<br />
		cout&lt;&lt;&quot;ur file is decrypted now:&quot;&lt;&lt;endl;<br />
		break;<br />
	}<br />
<br />
	getch();<br />
}<br />
*/<br />
<br />
<br />
<br />
Thanks And Regards.<br />
kawal</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>kawal.singh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241208.html</guid>
		</item>
		<item>
			<title>Student having frustrating problem creating two vectors of objects in c++</title>
			<link>http://www.daniweb.com/forums/thread241207.html</link>
			<pubDate>Wed, 25 Nov 2009 07:20:55 GMT</pubDate>
			<description><![CDATA[I'm a student having trouble with creating two vectors of objects for a homework assignment.  The first vector creates fine, and prints out the values it imports (readM).  The program hangs on the second vector(readT).  I've checked the text files and they seem ok.  I even tried substituting a...]]></description>
			<content:encoded><![CDATA[<div>I'm a student having trouble with creating two vectors of objects for a homework assignment.  The first vector creates fine, and prints out the values it imports (readM).  The program hangs on the second vector(readT).  I've checked the text files and they seem ok.  I even tried substituting a simple vector object that only read one field per [i] (and made sure the text file matched), and the program still hangs.  It seems only to want to read one vector object.  What in the @!@@@ am I doing wrong???  Any help much appreciated!<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
#include &lt;vector&gt;<br />
#include &lt;string&gt;<br />
#include &lt;fstream&gt;<br />
using namespace std;<br />
<br />
ifstream in;<br />
<br />
struct Master&nbsp; &nbsp; {&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int custnum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string fcustname;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string lcustname;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float balanceDue;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
};&nbsp; <br />
<br />
struct Trans&nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int trannum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int custnum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string ordertype;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string item;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int quantity;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float money;&nbsp;  // Holds item cost or payment<br />
};&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
void readM(vector&lt;Master&gt;&amp; mastlist)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp;  struct Master p;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  in.open(&quot;master.txt&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp;  while(!in.eof())<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in&gt;&gt;p.custnum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in&gt;&gt;p.fcustname;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in&gt;&gt;p.lcustname;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in&gt;&gt;p.balanceDue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  mastlist.push_back(p);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for(int i=0; i&lt; mastlist.size(); i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;mastlist[i].custnum&lt;&lt;&quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;mastlist[i].fcustname&lt;&lt;&quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;mastlist[i].lcustname&lt;&lt;&quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;mastlist[i].balanceDue&lt;&lt;endl;&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  in.close();&nbsp; &nbsp;  <br />
}&nbsp; &nbsp;  <br />
<br />
void readT(vector&lt;Trans&gt;&amp; translist)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp;  struct Trans q;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  in.open(&quot;trans.txt&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  while(!in.eof())<br />
&nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in&gt;&gt;q.trannum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in&gt;&gt;q.custnum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in&gt;&gt;q.ordertype;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in&gt;&gt;q.item;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in&gt;&gt;q.quantity;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in&gt;&gt;q.money;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  translist.push_back(q);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for(int i=0; i &lt; translist.size(); i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;translist[i].trannum&lt;&lt;&quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;translist[i].custnum&lt;&lt;&quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;translist[i].ordertype&lt;&lt;&quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;translist[i].item&lt;&lt;&quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;translist[i].quantity&lt;&lt;&quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;translist[i].money&lt;&lt;endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  in.close();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
}&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
int main()<br />
{&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  vector&lt;Master&gt; arrM;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  vector&lt;Trans&gt; arrT;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  readM(arrM);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  readT(arrT);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;endl&lt;&lt;endl&lt;&lt;endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  cout&lt;&lt;&quot;End of Master Record&quot;&lt;&lt;endl;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  system(&quot;pause&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  return 0;<br />
}</pre></div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12701&amp;d=1259133625">trans.txt</a> (297 Bytes)</td> </tr><tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12702&amp;d=1259133635">master.txt</a> (241 Bytes)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>ivanhny</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241207.html</guid>
		</item>
		<item>
			<title>Bussiness directory and xing clone for sale</title>
			<link>http://www.daniweb.com/forums/thread241206.html</link>
			<pubDate>Wed, 25 Nov 2009 07:13:37 GMT</pubDate>
			<description><![CDATA[I have a bussinees/classified directory and xing clone site for sale,please contact me if intereted. 
 
Regards 
"ror.php@gmail.com"]]></description>
			<content:encoded><![CDATA[<div>I have a bussinees/classified directory and xing clone site for sale,please contact me if intereted.<br />
<br />
Regards<br />
&quot;ror.php@gmail.com&quot;</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum164.html">Websites for Sale</category>
			<dc:creator>amithasija</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241206.html</guid>
		</item>
		<item>
			<title><![CDATA[Drop down works but the I can't see the options]]></title>
			<link>http://www.daniweb.com/forums/thread241204.html</link>
			<pubDate>Wed, 25 Nov 2009 07:08:39 GMT</pubDate>
			<description>hello. I have a drop down menu that pulls from a mysql database. I know its connecting fine and there is actual items in the drop down menu because I echoed them. 
 
However when I look at my drop down box, you cannot see the options! I know the items are there but its simply not visible. HOw can I...</description>
			<content:encoded><![CDATA[<div>hello. I have a drop down menu that pulls from a mysql database. I know its connecting fine and there is actual items in the drop down menu because I echoed them.<br />
<br />
However when I look at my drop down box, you cannot see the options! I know the items are there but its simply not visible. HOw can I alter my code so that its visible.<br />
<br />
php:<br />
 <pre style="margin:20px; line-height:13px">$sql=&quot;SELECT title FROM Election&quot;;<br />
$result= mysql_query($sql);<br />
$options=&quot;&quot;;<br />
while ($row=mysql_fetch_array($result)) {<br />
&nbsp; $title=$row[&quot;title&quot;];<br />
&nbsp; &nbsp; $options.=&quot;&lt;OPTION VALUE=\&quot;$title\&quot;&gt;&quot;;<br />
&nbsp; &nbsp;  }<br />
<br />
}</pre><br />
HTML:<br />
 <pre style="margin:20px; line-height:13px">&lt;SELECT NAME=&quot;title&quot; style=&quot;font-size:11pt; font-family: arial,helvetica,sans-serif; color:#080000&quot;&gt;<br />
&lt;OPTION VALUE=&quot;0&quot; style=&quot;font-size:11pt; font-family: arial,helvetica,sans-serif; color:#080000&quot;&gt;View an election<br />
<br />
&lt;?=<br />
$options<br />
?&gt;<br />
&lt;/SELECT&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>loveisblind</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241204.html</guid>
		</item>
		<item>
			<title>Regular expressions - need help</title>
			<link>http://www.daniweb.com/forums/thread241203.html</link>
			<pubDate>Wed, 25 Nov 2009 06:59:07 GMT</pubDate>
			<description><![CDATA[I have to read through a text file and replace all occurences of  
 
  <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 have to read through a text file and replace all occurences of <br />
<br />
 <pre style="margin:20px; line-height:13px">%%CNT1%%</pre><br />
with the value of a counter.<br />
<br />
The part of my code that does the actuall replacements looks like this:<br />
<br />
 <pre style="margin:20px; line-height:13px">for i in range(1, (count1 + 1)):<br />
&nbsp; &nbsp; out.writelines(re.sub(&quot;%%CNT1%%&quot;, str(i), text))</pre><br />
This works fine. Now what I need to do is to still replace all te occurences of %%CNT1%%, but there are places where it looks like this: A%%CNT1%%. My code does not replace %%CNT1%% with the ount value if there is an A in front of it (eg A%%CNT1%%)<br />
<br />
Is there any way for me to fix this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>P00dle</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241203.html</guid>
		</item>
		<item>
			<title>Image panel not loading my image...</title>
			<link>http://www.daniweb.com/forums/thread241202.html</link>
			<pubDate>Wed, 25 Nov 2009 06:53:53 GMT</pubDate>
			<description><![CDATA[Please someone help me... why image panel not showing that image in the frame: 
  <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>Please someone help me... why image panel not showing that image in the frame:<br />
 <pre style="margin:20px; line-height:13px">//image panel class<br />
import java.awt.*;<br />
import java.awt.image.BufferedImage;<br />
import javax.swing.*;<br />
<br />
public class ImagePanel extends JPanel {<br />
<br />
&nbsp; &nbsp; private BufferedImage&nbsp; img;<br />
<br />
<br />
<br />
&nbsp; &nbsp; public ImagePanel(BufferedImage img) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.img = img;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Dimension size = new Dimension(500,500);<br />
&nbsp; &nbsp; &nbsp; &nbsp; setPreferredSize(size);<br />
&nbsp; &nbsp; &nbsp; &nbsp; setMinimumSize(size);<br />
&nbsp; &nbsp; &nbsp; &nbsp; setMaximumSize(size);<br />
&nbsp; &nbsp; &nbsp; &nbsp; setSize(size);<br />
&nbsp; &nbsp; &nbsp; &nbsp; setLayout(null);<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public void paintComponent(Graphics g) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; g.drawImage(img,0,0,null);<br />
&nbsp; &nbsp; }<br />
<br />
}<br />
<br />
<br />
<br />
<br />
//the code for adding the ImagePanel to the frame<br />
try {<br />
&nbsp; &nbsp; this.image = ImageIO.read(chatClient.class.getResource(&quot;abc.JPG&quot;));<br />
} catch (IOException e) {<br />
&nbsp; &nbsp; e.printStackTrace();<br />
}<br />
<br />
this.setLayout(new FlowLayout());//!!!!!!!!!!!<br />
this.add(new ImagePanel(image));<br />
this.validate();</pre>Another problem si if I try this in ImagePanel class:<br />
 <pre style="margin:20px; line-height:13px">//gives null pointer exception:<br />
&nbsp;  Dimension size = new Dimension(img.getWidth(),img.getHeight());</pre>It simply does nothing... really annoying. There's no big deal but I just can't see the bug.<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>Clawsy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241202.html</guid>
		</item>
		<item>
			<title>chating</title>
			<link>http://www.daniweb.com/forums/thread241201.html</link>
			<pubDate>Wed, 25 Nov 2009 06:51:59 GMT</pubDate>
			<description>hello, 
           i want to do chat script in php. actual requirement is user chat with only with admin. if admin is in online user chats directly. otherwise that chat msg will go to admin mail. at this time another user may come to chat with admin another chat box will come in admin site.  
     ...</description>
			<content:encoded><![CDATA[<div>hello,<br />
           i want to do chat script in php. actual requirement is user chat with only with admin. if admin is in online user chats directly. otherwise that chat msg will go to admin mail. at this time another user may come to chat with admin another chat box will come in admin site. <br />
         i am not an expert to this task myself. thats why i am looking for help, suggestions from my sweetest communication &quot;daniweb&quot;. any free chat scripts relatedto this reqirement plz send details.<br />
thanks 2 all.</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/thread241201.html</guid>
		</item>
		<item>
			<title>PC Start Up</title>
			<link>http://www.daniweb.com/forums/thread241199.html</link>
			<pubDate>Wed, 25 Nov 2009 06:37:36 GMT</pubDate>
			<description><![CDATA[How do you make a C++ Program run at start up? I'm using Vista, and when I right click the start button and press open, it comes up with my programs in the start menu, how do I get to the Start up Folder?:S]]></description>
			<content:encoded><![CDATA[<div>How do you make a C++ Program run at start up? I'm using Vista, and when I right click the start button and press open, it comes up with my programs in the start menu, how do I get to the Start up Folder?:S</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Dannyo329</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241199.html</guid>
		</item>
		<item>
			<title>20 Domains for auction: WealthyPlans.com, LimitedParts.com, SkiingTeam.com, etc...</title>
			<link>http://www.daniweb.com/forums/thread241198.html</link>
			<pubDate>Wed, 25 Nov 2009 06:30:47 GMT</pubDate>
			<description>20 premium domain names now available on eBay for a limited time and these unique auctions start at only $9.99 each with no reserve! 
 
 
EBAY AUCTION LINK (http://shop.ebay.com/merchant/trendy_people) 
 
 
These domain name auctions start to end every 30 minutes on Wednesday, November 25th at...</description>
			<content:encoded><![CDATA[<div>20 premium domain names now available on eBay for a limited time and these unique auctions start at only $9.99 each with no reserve!<br />
<br />
<br />
<a rel="nofollow" class="t" href="http://shop.ebay.com/merchant/trendy_people" target="_blank">EBAY AUCTION LINK</a><br />
<br />
<br />
These domain name auctions start to end every 30 minutes on Wednesday, November 25th at 14:00 - 23:30 PDT<br />
<br />
<br />
MoviesRetail.com<br />
	<br />
NewPyjamas.com<br />
	<br />
TrillionCash.com<br />
	<br />
Tippled.com (true dictionary one word)<br />
	<br />
SearchVirus.com<br />
	<br />
WebsitePays.com<br />
	<br />
BuyTandems.com<br />
	<br />
Dextrally.com (true dictionary one word)<br />
	<br />
AccountQuick.com<br />
	<br />
CasinoAmused.com<br />
	<br />
RetailWater.com<br />
	<br />
Sturdily.com (true dictionary one word)<br />
	<br />
JobGoodbye.com<br />
	<br />
RetailPlease.com<br />
	<br />
AccountsFirm.com<br />
	<br />
Soberer.com (true dictionary one word)<br />
	<br />
SkiingTeam.com<br />
	<br />
LimitedParts.com<br />
	<br />
WealthyPlans.com<br />
	<br />
Sabered.com (true dictionary one word)<br />
<br />
<br />
The winning bidders get a FREE domain name push to their GoDaddy account within 24 hours of receiving payment!<br />
<br />
<br />
<a rel="nofollow" class="t" href="http://shop.ebay.com/merchant/trendy_people" target="_blank">EBAY AUCTION LINK</a><br />
<br />
<br />
20 investment opportunity domain names - No reserve - Free push<br />
<br />
<br />
Thanks for looking and hope to see you at our domain name auctions.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum116.html">Domain Names for Sale</category>
			<dc:creator>mikenormal</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241198.html</guid>
		</item>
		<item>
			<title>emachine desktop trouble</title>
			<link>http://www.daniweb.com/forums/thread241197.html</link>
			<pubDate>Wed, 25 Nov 2009 06:27:59 GMT</pubDate>
			<description>my destop was working fine and i shut it down every night like I always do by clicking turn off. The next day we tried turning the pc back on and the monitor came on but the brainbox will not power on at all. what do you think is wrong with it?</description>
			<content:encoded><![CDATA[<div>my destop was working fine and i shut it down every night like I always do by clicking turn off. The next day we tried turning the pc back on and the monitor came on but the brainbox will not power on at all. what do you think is wrong with it?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum122.html">Troubleshooting Dead Machines</category>
			<dc:creator>luv2fl21</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241197.html</guid>
		</item>
		<item>
			<title>get the array length from command line</title>
			<link>http://www.daniweb.com/forums/thread241196.html</link>
			<pubDate>Wed, 25 Nov 2009 06:25:39 GMT</pubDate>
			<description><![CDATA[I am trying to use an array that can change in length by the number in the command line. Arrays must be constant at the time of declaration. Can anyone help? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>I am trying to use an array that can change in length by the number in the command line. Arrays must be constant at the time of declaration. Can anyone help?<br />
<br />
 <pre style="margin:20px; line-height:13px">using namespace std;<br />
<br />
int main (int argc, char *argv[])<br />
{<br />
int nulls=atoi(argv[2]);<br />
int arry[nulls];<br />
<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>T-Dogg3030</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241196.html</guid>
		</item>
		<item>
			<title>highlighting cells with certain number</title>
			<link>http://www.daniweb.com/forums/thread241195.html</link>
			<pubDate>Wed, 25 Nov 2009 06:18:22 GMT</pubDate>
			<description>Hi, just a quick question..  
 
say a user enters a number in a cell how would i be able to get all cells that contained that number to be highlighted? 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Hi, just a quick question.. <br />
<br />
say a user enters a number in a cell how would i be able to get all cells that contained that number to be highlighted?<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum38.html">Windows Vista and Windows 7</category>
			<dc:creator>firefly91</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241195.html</guid>
		</item>
		<item>
			<title>Friends database program.</title>
			<link>http://www.daniweb.com/forums/thread241194.html</link>
			<pubDate>Wed, 25 Nov 2009 06:06:09 GMT</pubDate>
			<description><![CDATA[I'm suppose to do this using sorting algorithm..so it asks to creat a friends database application that maintains a file of friend objects that contain names, telephone numberrs, and email adresses..etc. The friends application should load friend records from a file and then allow the user to add...]]></description>
			<content:encoded><![CDATA[<div>I'm suppose to do this using sorting algorithm..so it asks to creat a friends database application that maintains a file of friend objects that contain names, telephone numberrs, and email adresses..etc. The friends application should load friend records from a file and then allow the user to add new friends, delete friends, display a list of all friends by either first naem or last name, and search for a friend. When The program runs it displays the menu, where add a friend(prompts the user to enter a name) and then delete, search(removes a friend off the list) and stuff...<br />
<br />
<span style="font-weight:bold">The program is not done yet.... and I think I should seperate this into two files. can someone help me correct this, like the methods and constructors so that at least it compiles. ...</span><br />
<br />
 <pre style="margin:20px; line-height:13px">import java.util.Scanner; <br />
import java.util.Math;<br />
import java.util.ArrayList; <br />
<br />
public class FriendsMain { <br />
&nbsp; public static void main(String[] args) { <br />
&nbsp; &nbsp; String friend; <br />
&nbsp; &nbsp; String lastName; <br />
&nbsp; &nbsp; String firstName; <br />
&nbsp; &nbsp; String telephone;<br />
&nbsp; &nbsp; String email; <br />
&nbsp; &nbsp; Scanner input = new Scanner(System.in); <br />
&nbsp; &nbsp; ArrayList = new ArrayList(); <br />
&nbsp; &nbsp; <br />
&nbsp;  <br />
&nbsp; &nbsp; do { <br />
&nbsp; &nbsp; &nbsp; System.out.println(&quot;\n1. Add a friend. &quot;); <br />
&nbsp; &nbsp; &nbsp; System.out.println(&quot;2. Display friends by last name. &quot;); <br />
&nbsp; &nbsp; &nbsp; System.out.println(&quot;3. Display friends by first name. &quot;);&nbsp; <br />
&nbsp; &nbsp; &nbsp; System.out.println(&quot;4. Find a friend&quot;); <br />
&nbsp; &nbsp; &nbsp; System.out.println(&quot;5. Delete a friend&quot;); <br />
&nbsp; &nbsp; &nbsp; System.out.println(&quot;6. Quit&quot;); <br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; choice = input.nextInt(); <br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; if (choice == 1) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Enter a friend by their first name&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; firstName = input.nextLine(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; friendList.add(firstName); <br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Enter a friend by their last name: &quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; lastName = input.nextLine(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; friendList.add(lastName); <br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Enter their telephone number: &quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; telephone = input.nextLine(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; telephoneList.add(telephone); <br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Enter their email address: &quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; email = input.nextLine(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; emailList.add(email); <br />
&nbsp; &nbsp; &nbsp; } else if ( choice == 2) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; friendList.remove(lastName); <br />
&nbsp; &nbsp; &nbsp; } else if (choice == 3) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; displayArray(friendList); <br />
&nbsp; &nbsp; &nbsp; } else if ( choice == 4) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot; Enter a friend to search for: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; searchName = input.nextInt(); <br />
&nbsp; &nbsp; &nbsp; } else if ( choice == 5) { <br />
&nbsp; &nbsp; &nbsp; &nbsp; friendList.remove(friend); <br />
&nbsp; &nbsp; &nbsp; } while (!= 6) <br />
&nbsp; &nbsp; } <br />
&nbsp; } <br />
}</pre><br />
thank you!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>StarZ</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241194.html</guid>
		</item>
		<item>
			<title>Scrabble Program</title>
			<link>http://www.daniweb.com/forums/thread241193.html</link>
			<pubDate>Wed, 25 Nov 2009 05:55:40 GMT</pubDate>
			<description><![CDATA[The board game scrabble works by assigning points to wooden tiles arranged in cells on a board. It's described here:http://en.wikipedia.org/wiki/Scrabble. We'll simplify this considerably, and consider the following question. We begin with the letter-scoring scheme from Scrabble: a = 1, b = 3, c =...]]></description>
			<content:encoded><![CDATA[<div>The board game scrabble works by assigning points to wooden tiles arranged in cells on a board. It's described here:<a rel="nofollow" class="t" href="http://en.wikipedia.org/wiki/Scrabble" target="_blank">http://en.wikipedia.org/wiki/Scrabble</a>. We'll simplify this considerably, and consider the following question. We begin with the letter-scoring scheme from Scrabble: a = 1, b = 3, c = 3, d = 2, ..., z = 10. Given a text file - a novel for example, what is the highest-(or a highest-) scoring line in the the file? In keeping with the Scrabble style, we'll add double and triple letter scores: any letter that falls at a line (String) position that's evenly divisible by 4 will have its score doubled; and any letter that falls at a line (String) position that's evenly divisible by 9 will have its score tripled. A letter at a position that's evenly divisible by 4 and 9 will have its score doubled, not tripled. All non-letters (e.g., space, comma, etc.) have score 0.<br />
<br />
Example: the line &quot;now is the time&quot; has a Scrabble score (by our rules) of 29. (Verify this with pencil and paper. Note that &quot;n&quot; is at position 0, which is a double letter score.)<br />
<br />
Your solution should include two files: A driver called LineScrabbleDriver, and a file called LineScrabble.java which does the heavy lifting for the application. The LineScrabble file should extend Echo, in the standard way we've indicated (it could also extend the LineReader class).<br />
<br />
(Echo Class)<br />
 <pre style="margin:20px; line-height:13px">import java.util.Scanner;<br />
import java.io.*;<br />
<br />
public class Echo{<br />
String fileName; // external file name<br />
Scanner scan; // Scanner object for reading from external file<br />
<br />
public Echo(String f) throws IOException<br />
{<br />
fileName = f;<br />
scan = new Scanner(new FileReader(fileName));<br />
}<br />
<br />
public void readLines(){ // reads lines, hands each to processLine<br />
while(scan.hasNext()){<br />
processLine(scan.nextLine());<br />
}<br />
scan.close();<br />
}<br />
<br />
public void processLine(String line){ // does the real processing work<br />
System.out.println(line);<br />
}<br />
}</pre><br />
(LineReader Class)<br />
 <pre style="margin:20px; line-height:13px">import java.util.Scanner;<br />
import java.io.*;<br />
<br />
public abstract class LineReader{<br />
String fileName; // external file name<br />
Scanner scan; // Scanner object for reading from external file<br />
<br />
public LineReader(String f) throws IOException<br />
{<br />
fileName = f;<br />
scan = new Scanner(new FileReader(fileName));<br />
}<br />
public void readLines(){ // reads lines, hands each to processLine<br />
while(scan.hasNext()){<br />
processLine(scan.nextLine());<br />
}<br />
scan.close();<br />
}<br />
public abstract void processLine(String line);<br />
}</pre><br />
Output: Program should report the (or a) highest scoring line in the input file, along with the score for that line.<br />
<br />
Tips:<br />
<br />
Here is a list from a to z of the letter scores from Scrabble:<br />
<br />
{1,3,3,2,1,4,2,4,1,8,5,1,3,1,1,3,10,1,… Notice that this list is in proper format for copying and pasting directly into your program as an int array.<br />
<br />
It's far easier to convert lines of text to lowercase before processing.<br />
<br />
You MUST use a try-catch harness in driver class.<br />
<br />
You MUST comment every method with a one line description of the job that method does, and your description must be placed just below the method header line.<br />
<br />
Two sample files are provided below, sampletext.txt is silly but useful, and HeartOfDarkness.txt is the Conrad novella.<br />
<br />
Some sample output:<br />
<br />
enter file name<br />
<br />
sampletext.txt<br />
<br />
winner:<br />
<br />
and aid. their. party?<br />
<br />
winning score: 40<br />
<br />
-------------------------------<br />
<br />
enter file name<br />
<br />
HeartOfDarkness.txt<br />
<br />
winner:<br />
<br />
plenty time. i can manage. you take kurtz away quick--quick--i tell<br />
<br />
winning score: 192<br />
<br />
(HeartOfDarkness.txt)<br />
<a rel="nofollow" class="t" href="http://twiki-edlab.cs.umass.edu/pub/Moll121/AssignSix/HeartOfDarkness.txt" target="_blank">http://twiki-edlab.cs.umass.edu/pub/...OfDarkness.txt</a><br />
(sample.txt)<br />
<a rel="nofollow" class="t" href="http://twiki-edlab.cs.umass.edu/pub/Moll121/AssignSix/sampletext.txt" target="_blank">http://twiki-edlab.cs.umass.edu/pub/...sampletext.txt</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>lacompsr</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241193.html</guid>
		</item>
		<item>
			<title>MMcontrol does not play previously played .wav file</title>
			<link>http://www.daniweb.com/forums/thread241192.html</link>
			<pubDate>Wed, 25 Nov 2009 05:52:39 GMT</pubDate>
			<description><![CDATA[Hi!  
I'm a newbie in this community. 
I am developing a VB6 app which displays 100 pictures one at a time at random using a button click event.  This works fine so far.  Using the same random number generated to display the picture using a ' select case' routine, it needs to play a wave file...]]></description>
			<content:encoded><![CDATA[<div>Hi! <br />
I'm a newbie in this community.<br />
I am developing a VB6 app which displays 100 pictures one at a time at random using a button click event.  This works fine so far.  Using the same random number generated to display the picture using a ' select case' routine, it needs to play a wave file representing a question for that picture using the mmcontrol1 play button. This is then followed with playing an answer using the mmcontrol2 play button<br />
I am using mmcontrol1 for playing the question and mmcontrol2 for the answer.<br />
The problem is this; When the random number has caused a picture and wave file to be executed,it will continue to work fine until the current random number is a number that has already been used once before. When this happens the picture displays correctly but the sound file does not play.<br />
How can I trap this and correct it.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>michellspijkers</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241192.html</guid>
		</item>
		<item>
			<title>Is vb.net capable to do this?</title>
			<link>http://www.daniweb.com/forums/thread241191.html</link>
			<pubDate>Wed, 25 Nov 2009 05:51:38 GMT</pubDate>
			<description>Hi All, 
 
Thanks for your continuing helps and supports, I really love this forum. (and somewhat depended on it). 
 
I have got program written in vb6, this program provide the calculation and links to microsoft access and microsoft words. 
This program soon will be integrated with microsoft visio...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
Thanks for your continuing helps and supports, I really love this forum. (and somewhat depended on it).<br />
<br />
I have got program written in vb6, this program provide the calculation and links to microsoft access and microsoft words.<br />
This program soon will be integrated with microsoft visio or other drawing tool.<br />
<br />
The thing that I want to do is:<br />
I want to have a program which can be used by everyone (including linux and mac users).  <br />
Will vb.net able to do it? (I have heard that vb.net can be used easily to make an online application)<br />
<br />
I will use mySQL for the database in the server. <br />
But will vb6 able to cope with this?<br />
And also if I need to scan a house plan (and do calculation in it), which program is the best to do it?<br />
<br />
Thanks a lot, I really appeciate your help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>neosonic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241191.html</guid>
		</item>
		<item>
			<title>Is vb6 suitable for this kind of program?</title>
			<link>http://www.daniweb.com/forums/thread241190.html</link>
			<pubDate>Wed, 25 Nov 2009 05:48:24 GMT</pubDate>
			<description>Hi All, 
 
Thanks for your continuing helps and supports, I really love this forum. (and somewhat depended on it). 
 
I have got program written in vb6, this program provide the calculation and links to microsoft access and microsoft words. 
This program soon will be integrated with microsoft visio...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
Thanks for your continuing helps and supports, I really love this forum. (and somewhat depended on it).<br />
<br />
I have got program written in vb6, this program provide the calculation and links to microsoft access and microsoft words.<br />
This program soon will be integrated with microsoft visio or other drawing tool.<br />
<br />
The thing that I want to do is:<br />
I want to have a program which can be used by everyone (including linux and mac users).  <br />
Is vb6 able to make that kind of stuff?<br />
Or do I need to publish online? Or should I upgrade it in vb.net (then again, will vb.net able to do it)?<br />
<br />
I will use mySQL for the database in the server. <br />
But will vb6 able to cope with this?<br />
And also if I need to scan a house plan (and do calculation in it), which program is the best to do it?<br />
<br />
Thanks a lot, I really appeciate your help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>neosonic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241190.html</guid>
		</item>
		<item>
			<title>DOMAIN error problem</title>
			<link>http://www.daniweb.com/forums/thread241189.html</link>
			<pubDate>Wed, 25 Nov 2009 05:39:17 GMT</pubDate>
			<description>Hey there, first time posting.  I have a program that is kinda put together from a program to generate polynomials and evaluate them and a program to do bisection to solve for the root. 
 
It may be a mess.  The problem is, i believe, when I try to use the evalPoly in the bisection function and it...</description>
			<content:encoded><![CDATA[<div>Hey there, first time posting.  I have a program that is kinda put together from a program to generate polynomials and evaluate them and a program to do bisection to solve for the root.<br />
<br />
It may be a mess.  The problem is, i believe, when I try to use the evalPoly in the bisection function and it gives a DOMAIN error, and sometimes just doesn't do anything (pauses when executed).<br />
<br />
Any insight would be  helpful.<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
#include&lt;iostream&gt;<br />
#include&lt;cmath&gt;<br />
#include &lt;math.h&gt;<br />
<br />
#define FALSE 0<br />
#define TRUE 1<br />
using namespace std;<br />
typedef short Boolean;<br />
<br />
class Polynomial {<br />
&nbsp; &nbsp; <br />
&nbsp; private:<br />
&nbsp; &nbsp; int n;<br />
&nbsp; &nbsp; float *coeff;<br />
&nbsp; &nbsp; <br />
&nbsp; public:<br />
&nbsp; &nbsp; zeroPoly();<br />
&nbsp; &nbsp; void ReadPoly();<br />
&nbsp; &nbsp; void PrintPoly();<br />
&nbsp; &nbsp; double EvalPoly(double x);<br />
};<br />
<br />
<br />
<br />
<br />
<br />
zeroPoly(){<br />
&nbsp; &nbsp; return 0;<br />
}<br />
<br />
//ReadPoly -- read and store the contents of a polynomial along with its degree.<br />
<br />
void Polynomial::ReadPoly(){<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; Boolean b;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; int i;<br />
<br />
&nbsp; &nbsp; // Enter the degree of the polynomial<br />
&nbsp; &nbsp; // See if the degree is postive integer<br />
&nbsp; &nbsp; b = FALSE;<br />
&nbsp; &nbsp; while (!b){<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;What is the degree of your polynomial? &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; n;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (n &lt; 0){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Only positve integer values for the degree!&quot;&lt;&lt;endl&lt;&lt;endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = TRUE;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // Allocate memory for the coeff array<br />
&nbsp; &nbsp; coeff = new float[n+1];<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; // Enter the coefficients of the polynomial<br />
&nbsp; &nbsp; for (i = n; i &gt;= 0; i--){<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Enter the coefficient for the degree &quot; &lt;&lt; i &lt;&lt; &quot; term: &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; coeff[i];<br />
&nbsp; &nbsp; }<br />
}&nbsp; &nbsp; <br />
<br />
<br />
<br />
// Print out the Polynomial<br />
<br />
void Polynomial::PrintPoly(){<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; int i;<br />
<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;f(x) =&quot;;<br />
&nbsp; &nbsp; for (i = n; i &gt;= 0; i--){<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot; + &quot; &lt;&lt; coeff[i] &lt;&lt; &quot;x^&quot; &lt;&lt; i;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; cout &lt;&lt;endl&lt;&lt;endl;<br />
}<br />
<br />
<br />
<br />
double Polynomial::EvalPoly(double x){<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; double temp;<br />
&nbsp; &nbsp; int j;<br />
&nbsp; &nbsp; double sum = 0;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; for(j=0; j&lt;=n; j++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; temp = (pow(x, j)*(coeff[j]));<br />
&nbsp; &nbsp; &nbsp; &nbsp; sum = sum + temp;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; return sum;<br />
<br />
}<br />
<br />
<br />
<br />
double bisect1(double xL, double xR, double accuracy, double maxiter){<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; int i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; double c;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Polynomial poly;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if(xL*xR &lt; 0){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(i=0; i&lt;maxiter; i++){<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; c=(xL + xR)/2.0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(fabs((poly.EvalPoly(c)) &lt; accuracy )){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //break if solution becomes close to the convergence point(root)<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if((poly.EvalPoly(xL))*(poly.EvalPoly(c))&lt;0.0){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xR = c;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else xL = c;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return c;<br />
}<br />
<br />
<br />
<br />
int main(void){<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; double xL, xR, root1, accuracy, maxiter;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Polynomial poly;<br />
&nbsp; &nbsp; &nbsp; &nbsp; poly.ReadPoly();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;Enter 2 bracketing values : &quot;&lt;&lt;endl;&nbsp; &nbsp; &nbsp; &nbsp; //define the two starting points<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;xL : &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin&gt;&gt;xL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;xR : &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin&gt;&gt;xR;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;Enter the accuracy : &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin&gt;&gt;accuracy;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;Enter the maximum iteration value : &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin&gt;&gt;maxiter;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; root1 = bisect1(xL, xR, accuracy, maxiter);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if(xL*xR&lt;0){&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(fabs(poly.EvalPoly(root1)) &gt; accuracy ){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;ERROR: Could not compute root of X^2 - 4 within accuracy.&quot;&lt;&lt;endl&lt;&lt;endl&lt;&lt;endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;&quot;The root for X^2 - 4 is : &quot;&lt;&lt;root1&lt;&lt;endl&lt;&lt;endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;ERROR: Improper interval, try again!&quot; &lt;&lt;endl&lt;&lt;endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<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>basilc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241189.html</guid>
		</item>
		<item>
			<title>Help, Arrange 5 numbers from highest to lowest</title>
			<link>http://www.daniweb.com/forums/thread241188.html</link>
			<pubDate>Wed, 25 Nov 2009 05:34:30 GMT</pubDate>
			<description><![CDATA[Hello, 
i'm a new member here in this forum.. 
and i think lot of programmers may help me here.. 
i'm a newbie also in java programming.. 
 
my teacher wants us to make a program that accepts 5 integers and then arrange it from highest to lowest.. 
i have an idea how to do it but it is on a hard...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
i'm a new member here in this forum..<br />
and i think lot of programmers may help me here..<br />
i'm a newbie also in java programming..<br />
<br />
my teacher wants us to make a program that accepts 5 integers and then arrange it from highest to lowest..<br />
i have an idea how to do it but it is on a hard way.. my teacher wants us to do it in a short way.. i dont have much idea in doing it on that way.. (because my logic is POOR..T-T)<br />
but i tried my best i try to figure out last night until now i cant get it.. here's my code..<br />
<br />
 <pre style="margin:20px; line-height:13px">/**<br />
&nbsp;* @(#)highest.java<br />
&nbsp;*<br />
&nbsp;* highest application<br />
&nbsp;*<br />
&nbsp;* @o0sample0o<br />
&nbsp;* @version 1.00 2009/11/24<br />
&nbsp;*/<br />
&nbsp;import javax.swing.JOptionPane;<br />
import javax.swing.JTextArea;<br />
import javax.swing.JScrollPane;<br />
<br />
public class highest {<br />
&nbsp; &nbsp; public static void main(String[] args) {<br />
&nbsp; &nbsp; JTextArea myTextArea = new JTextArea(5,10);<br />
&nbsp; &nbsp; JScrollPane myScrollBar = new JScrollPane(myTextArea);<br />
&nbsp; &nbsp; int number[],&nbsp; first=0, second=0, third=0,fourth=0,fifth=0;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; for( int x=1;x&lt;=5;x++)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  number[x] = Integer.parseInt(JOptionPane.showInputDialog(&quot;Enter Number&quot;+x+&quot;: &quot;));<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; if(number[1]&gt;first)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; first=number[1];<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else if(number[2]&gt;second)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; second=number[2];<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else if(number[3]&gt;third)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; third=number[3];<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else if(number[4]&gt;fourth)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fourth=number[4];<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fifth=number[5];<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; myTextArea.setText(&quot;The 1st largest is: &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +first+&quot;\nThe 2nd largest is: &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +second+&quot;\nThe 3rdnd largest is: &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +third+&quot;\nThe 4th largest is: &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +fourth+&quot;\nThe 5th largest is: &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +fifth);<br />
&nbsp; &nbsp;  <br />
&nbsp; &nbsp; JOptionPane.showMessageDialog(null, myScrollBar);<br />
&nbsp; &nbsp; System.exit(0);<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</pre><br />
oh.. and one more question..<br />
i try to use an one dimensional array..<br />
i there anyway to execute it here in java? i have small knowledge in c++.. so i think the syntax here in java have lot different on c++?<br />
thanks for reading my problem..<br />
Thanks DANIWEB!:)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>o0sample0o</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241188.html</guid>
		</item>
		<item>
			<title>Restricting Sprite location</title>
			<link>http://www.daniweb.com/forums/thread241187.html</link>
			<pubDate>Wed, 25 Nov 2009 05:21:26 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I am currently making a game in my Java programming course 
 
My game is similar to Guitar Hero where the sprites will come down 4 different lines. 
 
What I am trying to do is make them come down those lines at random 
 
So far, I have made them come down in random locations, but can't...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I am currently making a game in my Java programming course<br />
<br />
My game is similar to Guitar Hero where the sprites will come down 4 different lines.<br />
<br />
What I am trying to do is make them come down those lines at random<br />
<br />
So far, I have made them come down in random locations, but can't restrict them, could anyone please help me?<br />
<br />
I set up the code to be:<br />
<br />
 <pre style="margin:20px; line-height:13px">sprite.setLocation(randomDouble(), 0.00);</pre><br />
the lines are located:<br />
0.1, 0.1<br />
0.35, 0.1<br />
0.65, 0.1<br />
0.9, 0.1<br />
<br />
Should I make separate sprites and restrict them to these locations and try to control the time in which they fall down the lines?<br />
<br />
Thanks again!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>MSoul</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241187.html</guid>
		</item>
		<item>
			<title>Enovia Matrix and Remote JSP debugging</title>
			<link>http://www.daniweb.com/forums/thread241186.html</link>
			<pubDate>Wed, 25 Nov 2009 05:19:48 GMT</pubDate>
			<description><![CDATA[Hi,  
I'm a developer with little experience in J2EE. I'm working with an Application called Enovia Matrix, which is an N-Tiers System composed by an oracle database, an RMI server, some "thick-client" applications and a Web-Based interface. 
I develop using Eclipse, in which I imported the War...]]></description>
			<content:encoded><![CDATA[<div>Hi, <br />
I'm a developer with little experience in J2EE. I'm working with an Application called Enovia Matrix, which is an N-Tiers System composed by an oracle database, an RMI server, some &quot;thick-client&quot; applications and a Web-Based interface.<br />
I develop using Eclipse, in which I imported the War File generated for the Web-App. I set up a remote debugging action in eclipse to Debug the JSPs I develop (due to license constraints I can't have a local copy of the application) and it works pretty well.<br />
Recently I came across a situation in which I had to analyze the code from some libraries whose java files aren't provided, a problem which I've overcome by decompiling the ensemble of jar files delivered with the application and importing them into another eclipse project, which is referenced by the web-app project (imported from the war).<br />
I soon realized I must have missed several things, especially in what concerns the build path. Both projects are filled with millions of errors, but, since they're just an alias of what's in the server, I still manage to run the remote debugging task without problems, except when I jump into the decompiled code. For starters, I can no longer follow the code through it's execution (step by step). The class is correctly shown, but as I step over the lines, the display of the debugger window remains in the classe's first line. This does not happen with the JSPs.<br />
Another weird thing I noticed is that the decompiled libraries contain these syntax errors which I never came accross like:<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; return sParValue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Exception ex;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ex;<br />
&nbsp; &nbsp; &nbsp; &nbsp; return getParameter(request, parameter);</pre>After a return statement, more code comes without any change in the scope. Moreover, the second line contains only a variable name and eclipse accuses the error, so how come this line gets executed on the server side? Is it some kind of different code I'm unfamiliar with?<br />
Hope I managed to introduce my problem correctly and that any of you could provide with some insights so that I may improve my knowledge little by little.<br />
<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>gaudi_br</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241186.html</guid>
		</item>
		<item>
			<title>Searching a Text File</title>
			<link>http://www.daniweb.com/forums/thread241183.html</link>
			<pubDate>Wed, 25 Nov 2009 05:05:05 GMT</pubDate>
			<description>I have file with a list of names in it and next to the names is a series of digits. The digits represent its level of popularity per every 10 years. 
 
The program I have asks the user to input the file path, then it asks for the user to input a name.  The program needs to search the file for the...</description>
			<content:encoded><![CDATA[<div>I have file with a list of names in it and next to the names is a series of digits. The digits represent its level of popularity per every 10 years.<br />
<br />
The program I have asks the user to input the file path, then it asks for the user to input a name.  The program needs to search the file for the name that was entered. Once the name has been located it needs to print out the name and the numbers on separate lines.<br />
<br />
Ex.<br />
file has:<br />
Laura 0 0 1 143 443 100 3 43 12 555 0 0<br />
Lisa 900 1 200 22 4 1 1 45 89 0 0 2<br />
<br />
User Input:<br />
Enter Name: Lisa<br />
Name found - Lisa<br />
1900: 900<br />
1910: 1<br />
1920: 200<br />
1930: 22<br />
1940: 4<br />
etc, etc.<br />
<br />
I can get it to read the file, but it prints the entire file. I need it to just read out the name that was entered (if it exists) and the stats with it.<br />
<br />
Here is my code (I have also included the txt file):<br />
<br />
What are the best changes to make? I am new to doing this in any code language.<br />
<br />
 <pre style="margin:20px; line-height:13px">package babynames;<br />
<br />
import java.util.*;<br />
import java.io.*;<br />
<br />
public class BabyNames<br />
{<br />
&nbsp; &nbsp; public static void main(String[] args)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; Scanner userInput = new Scanner(System.in);<br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.print(&quot;Enter file path: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; File file = new File(userInput.nextLine());<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Scanner userInput2 = new Scanner(System.in);<br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.print(&quot;Enter name: &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String name = userInput2.nextLine();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; StringBuffer contents = new StringBuffer();<br />
&nbsp; &nbsp; &nbsp; &nbsp; BufferedReader reader = null;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reader = new BufferedReader(new FileReader(file));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String text = null;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while ((text = reader.readLine()) != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; contents.append(text).append(System.getProperty(&quot;line.separator&quot;));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(FileNotFoundException e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(IOException e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; finally<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(reader != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reader.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch(IOException e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(contents.toString());<br />
<br />
&nbsp; &nbsp; }//close main<br />
}</pre></div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12700&amp;d=1259125806">names.txt</a> (168.0 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>_dragonwolf_</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241183.html</guid>
		</item>
		<item>
			<title>Upload XML file and Run XSLT to Produce HTML through JSP</title>
			<link>http://www.daniweb.com/forums/thread241181.html</link>
			<pubDate>Wed, 25 Nov 2009 04:58:26 GMT</pubDate>
			<description>How to upload an XML file through JSP web interface and transform that XML using XSLT and return the HTML file for download.</description>
			<content:encoded><![CDATA[<div>How to upload an XML file through JSP web interface and transform that XML using XSLT and return the HTML file for download.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>atuleshchand</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241181.html</guid>
		</item>
		<item>
			<title>ie opens at star up with porno pages help</title>
			<link>http://www.daniweb.com/forums/thread241178.html</link>
			<pubDate>Wed, 25 Nov 2009 04:48:00 GMT</pubDate>
			<description>This is my HJT  any one can help  
 
Logfile of Trend Micro HijackThis v2.0.2 
Scan saved at 10:39:11 p.m., on 24/11/2009 
Platform: Windows Vista SP2 (WinNT 6.00.1906) 
MSIE: Internet Explorer v8.00 (8.00.6001.18828) 
Boot mode: Normal 
 
Running processes: 
C:\Windows\system32\taskeng.exe</description>
			<content:encoded><![CDATA[<div>This is my HJT  any one can help <br />
<br />
Logfile of Trend Micro HijackThis v2.0.2<br />
Scan saved at 10:39:11 p.m., on 24/11/2009<br />
Platform: Windows Vista SP2 (WinNT 6.00.1906)<br />
MSIE: Internet Explorer v8.00 (8.00.6001.18828)<br />
Boot mode: Normal<br />
<br />
Running processes:<br />
C:\Windows\system32\taskeng.exe<br />
C:\Windows\system32\Dwm.exe<br />
C:\Windows\Explorer.EXE<br />
C:\Program Files\Symantec\Symantec Endpoint Protection\SmcGui.exe<br />
C:\Program Files\Windows Defender\MSASCui.exe<br />
C:\Windows\System32\igfxtray.exe<br />
C:\Windows\System32\hkcmd.exe<br />
C:\Windows\System32\igfxpers.exe<br />
C:\Program Files\CONEXANT\cAudioFilterAgent\cAudioFilterAgent.exe<br />
C:\Program Files\Synaptics\SynTP\SynTPEnh.exe<br />
C:\Program Files\VideoWebCamera\VideoWebCamera.exe<br />
C:\Windows\system32\igfxsrvc.exe<br />
C:\Program Files\Launch Manager\LManager.exe<br />
C:\Program Files\CyberLink\PowerDVD8\PDVD8Serv.exe<br />
C:\Program Files\CyberLink\Power2Go\CLMLSvc.exe<br />
C:\Program Files\NewTech Infosystems\Gateway MyBackup\BackupManagerTray.exe<br />
C:\Program Files\Common Files\Nokia\MPlatform\NokiaMServer.exe<br />
C:\Program Files\Common Files\Symantec Shared\ccApp.exe<br />
C:\Program Files\Gateway\Gateway PowerSave Solution\ePowerTray.exe<br />
C:\Program Files\Java\jre6\bin\jusched.exe<br />
C:\Program Files\iTunes\iTunesHelper.exe<br />
C:\Program Files\Ares\Ares.exe<br />
C:\Program Files\Google\GoogleToolbarNotifier\GoogleToolbarNotifier.exe<br />
C:\Program Files\Nokia\Nokia PC Suite 7\PCSuite.exe<br />
C:\Program Files\Windows Media Player\wmpnscfg.exe<br />
C:\Windows\system32\wbem\unsecapp.exe<br />
C:\Windows\system32\igfxext.exe<br />
C:\Windows\system32\igfxsrvc.exe<br />
C:\Windows\system32\igfxext.exe<br />
C:\Program Files\Synaptics\SynTP\SynTPHelper.exe<br />
C:\Program Files\PC Connectivity Solution\Transports\NclIrSrv.exe<br />
C:\Windows\System32\mobsync.exe<br />
C:\Windows\system32\conime.exe<br />
C:\Program Files\Spybot - Search &amp; Destroy\TeaTimer.exe<br />
C:\Program Files\Internet Explorer\iexplore.exe<br />
C:\Program Files\Internet Explorer\iexplore.exe<br />
C:\Program Files\Google\Google Toolbar\GoogleToolbarUser_32.exe<br />
C:\Windows\system32\Macromed\Flash\FlashUtil10c.exe<br />
C:\Windows\system32\SearchProtocolHost.exe<br />
C:\Windows\system32\SearchFilterHost.exe<br />
C:\Program Files\Trend Micro\HijackThis\HijackThis.exe<br />
<br />
R1 - HKCU\Software\Microsoft\Internet Explorer\Main,Default_Page_URL = <a rel="nofollow" class="t" href="http://homepage.gateway.com/rdr.aspx?b=ACGW&amp;l=080a&amp;s=2&amp;o=vp32&amp;d=0609&amp;m=nv54_series" target="_blank">http://homepage.gateway.com/rdr.aspx...&amp;m=nv54_series</a><br />
R1 - HKCU\Software\Microsoft\Internet Explorer\Main,Search Bar = Preserve<br />
R0 - HKCU\Software\Microsoft\Internet Explorer\Main,Start Page = <a rel="nofollow" class="t" href="http://m.www.yahoo.com/" target="_blank">http://m.www.yahoo.com/</a><br />
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Page_URL = <a rel="nofollow" class="t" href="http://homepage.gateway.com/rdr.aspx?b=ACGW&amp;l=080a&amp;s=2&amp;o=vp32&amp;d=0609&amp;m=nv54_series" target="_blank">http://homepage.gateway.com/rdr.aspx...&amp;m=nv54_series</a><br />
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Search_URL = <a rel="nofollow" class="t" href="http://go.microsoft.com/fwlink/?LinkId=54896" target="_blank">http://go.microsoft.com/fwlink/?LinkId=54896</a><br />
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Search Page = <a rel="nofollow" class="t" href="http://go.microsoft.com/fwlink/?LinkId=54896" target="_blank">http://go.microsoft.com/fwlink/?LinkId=54896</a><br />
R0 - HKLM\Software\Microsoft\Internet Explorer\Main,Start Page = <a rel="nofollow" class="t" href="http://homepage.gateway.com/rdr.aspx?b=ACGW&amp;l=080a&amp;s=2&amp;o=vp32&amp;d=0609&amp;m=nv54_series" target="_blank">http://homepage.gateway.com/rdr.aspx...&amp;m=nv54_series</a><br />
R0 - HKLM\Software\Microsoft\Internet Explorer\Search,SearchAssistant = <br />
R0 - HKLM\Software\Microsoft\Internet Explorer\Search,CustomizeSearch = <br />
R1 - HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyOverride = *.local<br />
R0 - HKCU\Software\Microsoft\Internet Explorer\Toolbar,LinksFolderName = <br />
O1 - Hosts: ::1 localhost<br />
O2 - BHO: AcroIEHelperStub - {18DF081C-E8AD-4283-A596-FA578C2EBDC3} - C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroIEHelperShim.dll<br />
O2 - BHO: Spybot-S&amp;D IE Protection - {53707962-6F74-2D53-2644-206D7942484F} - C:\Program Files\Spybot - Search &amp; Destroy\SDHelper.dll<br />
O2 - BHO: (no name) - {5C255C8A-E604-49b4-9D64-90988571CECB} - (no file)<br />
O2 - BHO: Search Helper - {6EBF7485-159F-4bff-A14F-B9E3AAC4465B} - C:\Program Files\Microsoft\Search Enhancement Pack\Search Helper\SEPsearchhelperie.dll<br />
O2 - BHO: Aplicación auxiliar de inicio de sesión de Windows Live ID - {9030D464-4C02-4ABF-8ECC-5164760863C6} - C:\Program Files\Common Files\Microsoft Shared\Windows Live\WindowsLiveLogin.dll<br />
O2 - BHO: Google Toolbar Helper - {AA58ED58-01DD-4d91-8333-CF10577473F7} - C:\Program Files\Google\Google Toolbar\GoogleToolbar_32.dll<br />
O2 - BHO: Google Toolbar Notifier BHO - {AF69DE43-7D58-4638-B6FA-CE66B5AD205D} - C:\Program Files\Google\GoogleToolbarNotifier\5.4.4525.1752\swg.dll<br />
O2 - BHO: Google Dictionary Compression sdch - {C84D72FE-E17D-4195-BB24-76C02E2E7C4E} - C:\Program Files\Google\Google Toolbar\Component\fastsearch_B7C5AC242193BB3E.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: Windows Live Toolbar Helper - {E15A8DC0-8516-42A1-81EA-DC94EC1ACF10} - C:\Program Files\Windows Live\Toolbar\wltcore.dll<br />
O3 - Toolbar: Google Toolbar - {2318C2B1-4965-11d4-9B18-009027A5CD4F} - C:\Program Files\Google\Google Toolbar\GoogleToolbar_32.dll<br />
O3 - Toolbar: &amp;Windows Live Toolbar - {21FA44EF-376D-4D53-9B0F-8A89D3229068} - C:\Program Files\Windows Live\Toolbar\wltcore.dll<br />
O4 - HKLM\..\Run: [Windows Defender] %ProgramFiles%\Windows Defender\MSASCui.exe -hide<br />
O4 - HKLM\..\Run: [cAudioFilterAgent] C:\Program Files\Conexant\cAudioFilterAgent\cAudioFilterAgent.exe<br />
O4 - HKLM\..\Run: [SynTPEnh] C:\Program Files\Synaptics\SynTP\SynTPEnh.exe<br />
O4 - HKLM\..\Run: [VideoWebCamera] &quot;C:\Program Files\VideoWebCamera\VideoWebCamera.exe&quot; -a<br />
O4 - HKLM\..\Run: [LManager] C:\Program Files\Launch Manager\LManager.exe<br />
O4 - HKLM\..\Run: [RemoteControl8] &quot;c:\Program Files\CyberLink\PowerDVD8\PDVD8Serv.exe&quot;<br />
O4 - HKLM\..\Run: [PDVD8LanguageShortcut] &quot;c:\Program Files\CyberLink\PowerDVD8\Language\Language.exe&quot;<br />
O4 - HKLM\..\Run: [CLMLServer] &quot;c:\Program Files\CyberLink\Power2Go\CLMLSvc.exe&quot;<br />
O4 - HKLM\..\Run: [Acer ePower Management] C:\Program Files\Gateway\Gateway PowerSave Solution\ePowerTrayLauncher.exe<br />
O4 - HKLM\..\Run: [BackupManagerTray] &quot;C:\Program Files\NewTech Infosystems\Gateway MyBackup\BackupManagerTray.exe&quot; -k<br />
O4 - HKLM\..\Run: [NokiaMServer] C:\Program Files\Common Files\Nokia\MPlatform\NokiaMServer /watchfiles<br />
O4 - HKLM\..\Run: [NokiaMusic FastStart] &quot;C:\Program Files\Nokia\Nokia Music\NokiaMusic.exe&quot; /command:faststart<br />
O4 - HKLM\..\Run: [ccApp] &quot;C:\Program Files\Common Files\Symantec Shared\ccApp.exe&quot;<br />
O4 - HKLM\..\Run: [SunJavaUpdateSched] &quot;C:\Program Files\Java\jre6\bin\jusched.exe&quot;<br />
O4 - HKLM\..\Run: [Adobe Reader Speed Launcher] &quot;C:\Program Files\Adobe\Reader 9.0\Reader\Reader_sl.exe&quot;<br />
O4 - HKLM\..\Run: [Adobe ARM] &quot;C:\Program Files\Common Files\Adobe\ARM\1.0\AdobeARM.exe&quot;<br />
O4 - HKLM\..\Run: [QuickTime Task] &quot;C:\Program Files\QuickTime\QTTask.exe&quot; -atboottime<br />
O4 - HKLM\..\Run: [iTunesHelper] &quot;C:\Program Files\iTunes\iTunesHelper.exe&quot;<br />
O4 - HKCU\..\Run: [ares] &quot;C:\Program Files\Ares\Ares.exe&quot; -h<br />
O4 - HKCU\..\Run: [SpybotSD TeaTimer] C:\Program Files\Spybot - Search &amp; Destroy\TeaTimer.exe<br />
O4 - HKCU\..\Run: [swg] &quot;C:\Program Files\Google\GoogleToolbarNotifier\GoogleToolbarNotifier.exe&quot;<br />
O4 - HKCU\..\Run: [PC Suite Tray] &quot;C:\Program Files\Nokia\Nokia PC Suite 7\PCSuite.exe&quot; -onlytray<br />
O4 - HKCU\..\Run: [WMPNSCFG] C:\Program Files\Windows Media Player\WMPNSCFG.exe<br />
O4 - HKUS\S-1-5-19\..\Run: [Sidebar] %ProgramFiles%\Windows Sidebar\Sidebar.exe /detectMem (User 'SERVICIO LOCAL')<br />
O4 - HKUS\S-1-5-19\..\Run: [WindowsWelcomeCenter] rundll32.exe oobefldr.dll,ShowWelcomeCenter (User 'SERVICIO LOCAL')<br />
O4 - HKUS\S-1-5-20\..\Run: [Sidebar] %ProgramFiles%\Windows Sidebar\Sidebar.exe /detectMem (User 'Servicio de red')<br />
O9 - Extra button: Agregar entrada - {219C3416-8CB2-491a-A3C7-D9FCDDC9D600} - C:\Program Files\Windows Live\Writer\WriterBrowserExtension.dll<br />
O9 - Extra 'Tools' menuitem: &amp;Agregar entrada en Windows Live Writer - {219C3416-8CB2-491a-A3C7-D9FCDDC9D600} - C:\Program Files\Windows Live\Writer\WriterBrowserExtension.dll<br />
O9 - Extra button: Referencia - {92780B25-18CC-41C8-B9BE-3C9C571A8263} - C:\PROGRA~1\MICROS~3\OFFICE11\REFIEBAR.DLL<br />
O9 - Extra button: (no name) - {DFB852A3-47F8-48C4-A200-58CAB36FD2A2} - C:\Program Files\Spybot - Search &amp; Destroy\SDHelper.dll<br />
O9 - Extra 'Tools' menuitem: Spybot - Search &amp;&amp; Destroy Configuration - {DFB852A3-47F8-48C4-A200-58CAB36FD2A2} - C:\Program Files\Spybot - Search &amp; Destroy\SDHelper.dll<br />
O13 - Gopher Prefix: <br />
O16 - DPF: {8100D56A-5661-482C-BEE8-AFECE305D968} (Facebook Photo Uploader 5 Control) - <a rel="nofollow" class="t" href="http://upload.facebook.com/controls/2009.07.28_v5.5.8.1/FacebookPhotoUploader55.cab" target="_blank">http://upload.facebook.com/controls/...Uploader55.cab</a><br />
O23 - Service: Apple Mobile Device - Apple Inc. - C:\Program Files\Common Files\Apple\Mobile Device Support\bin\AppleMobileDeviceService.exe<br />
O23 - Service: Servicio Bonjour (Bonjour Service) - Apple Inc. - C:\Program Files\Bonjour\mDNSResponder.exe<br />
O23 - Service: Symantec Event Manager (ccEvtMgr) - Symantec Corporation - C:\Program Files\Common Files\Symantec Shared\ccSvcHst.exe<br />
O23 - Service: Symantec Settings Manager (ccSetMgr) - Symantec Corporation - C:\Program Files\Common Files\Symantec Shared\ccSvcHst.exe<br />
O23 - Service: Acer ePower Service (ePowerSvc) - Acer Incorporated - C:\Program Files\Gateway\Gateway PowerSave Solution\ePowerSvc.exe<br />
O23 - Service: GameConsoleService - WildTangent, Inc. - C:\Program Files\Gateway Games\Gateway Game Console\GameConsoleService.exe<br />
O23 - Service: Google Software Updater (gusvc) - Google - C:\Program Files\Google\Common\Google Updater\GoogleUpdaterService.exe<br />
O23 - Service: Servicio del iPod (iPod Service) - Apple Inc. - C:\Program Files\iPod\bin\iPodService.exe<br />
O23 - Service: LiveUpdate - Symantec Corporation - C:\PROGRA~1\Symantec\LIVEUP~1\LUCOMS~1.EXE<br />
O23 - Service: NTI IScheduleSvc - NewTech Infosystems, Inc. - C:\Program Files\NewTech Infosystems\Gateway MyBackup\IScheduleSvc.exe<br />
O23 - Service: Partner Service - Google Inc. - C:\ProgramData\Partner\partner.exe<br />
O23 - Service: SBSD Security Center Service (SBSDWSCService) - Safer Networking Ltd. - C:\Program Files\Spybot - Search &amp; Destroy\SDWinSec.exe<br />
O23 - Service: ServiceLayer - Nokia - C:\Program Files\PC Connectivity Solution\ServiceLayer.exe<br />
O23 - Service: Symantec Management Client (SmcService) - Symantec Corporation - C:\Program Files\Symantec\Symantec Endpoint Protection\Smc.exe<br />
O23 - Service: Symantec Network Access Control (SNAC) - Symantec Corporation - C:\Program Files\Symantec\Symantec Endpoint Protection\SNAC.EXE<br />
O23 - Service: Symantec Endpoint Protection (Symantec AntiVirus) - Symantec Corporation - C:\Program Files\Symantec\Symantec Endpoint Protection\Rtvscan.exe<br />
<br />
--<br />
End of file - 10525 bytes</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum64.html">Viruses, Spyware and other Nasties</category>
			<dc:creator>lxherrer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241178.html</guid>
		</item>
		<item>
			<title>What is wrong with this program? (for-loops/factorials/BLUEJ)</title>
			<link>http://www.daniweb.com/forums/thread241174.html</link>
			<pubDate>Wed, 25 Nov 2009 04:35:08 GMT</pubDate>
			<description>This program is supposed to ask the user to input a number and the print will read out the factorial.  This code is wrong how do I fix it? Maybe not add much just jumbled up variables? Help! This was given to me created in BLUE J software 
 
i know the reader should equal the number  
and for...</description>
			<content:encoded><![CDATA[<div>This program is supposed to ask the user to input a number and the print will read out the factorial.  This code is wrong how do I fix it? Maybe not add much just jumbled up variables? Help! This was given to me created in BLUE J software<br />
<br />
i know the reader should equal the number <br />
and for (x=number, x&lt;=1;x++) but im not sure.. <br />
<br />
 <pre style="margin:20px; line-height:13px">import java.io.*;<br />
import java.util.*;<br />
class Problem3<br />
{<br />
public static void main(String args[])<br />
{<br />
Scanner aReader = new Scanner(System.in);<br />
System.out.print(&quot;Enter an integer you want to find the factorial for &quot;);<br />
int a = aReader.nextInt();<br />
<br />
int fact=1;<br />
<br />
for (inti=1;1&lt;=a;i++)<br />
fact=fact*i;<br />
{<br />
System.out.println(fact);<br />
}<br />
}<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>dorotalp91</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241174.html</guid>
		</item>
		<item>
			<title>Problem with innerHTML in php page</title>
			<link>http://www.daniweb.com/forums/thread241167.html</link>
			<pubDate>Wed, 25 Nov 2009 04:17:08 GMT</pubDate>
			<description><![CDATA[hi experts, 
 
Here i have a problem with innerHTML in php page. 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags"...]]></description>
			<content:encoded><![CDATA[<div>hi experts,<br />
<br />
Here i have a problem with innerHTML in php page.<br />
 <pre style="margin:20px; line-height:13px">&lt;script type=&quot;text/javascript&quot;&gt; <br />
function GetInner(sid)<br />
{<br />
document.getElementById(&quot;sid&quot;).innerHTML='&lt;?php $id='+sid+'?&gt;';<br />
}<br />
}<br />
&lt;/script&gt;<br />
<br />
&lt;body&gt; <br />
&lt;p id=&quot;sid&quot;&gt;&amp;nbsp;&lt;/p&gt;<br />
&lt;/body&gt;</pre><br />
it doesn't give any result.<br />
<br />
Please help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>Narayan15</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241167.html</guid>
		</item>
		<item>
			<title>need help to correct java code</title>
			<link>http://www.daniweb.com/forums/thread241166.html</link>
			<pubDate>Wed, 25 Nov 2009 04:13:30 GMT</pubDate>
			<description><![CDATA[hi everyone 
 this is 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 with Code Tags" target="_blank">Help with Code Tags</a> </div>...]]></description>
			<content:encoded><![CDATA[<div>hi everyone<br />
 this is my code.<br />
 <pre style="margin:20px; line-height:13px">public class Qustion3B{<br />
&nbsp;<br />
public static void main (String args[]){<br />
<br />
&nbsp;double sinx = Math.sin(0.5236);<br />
&nbsp;double cosx = Math.cos(0.5236);<br />
<br />
sinx = Math.pow(0.5236,2);<br />
cosx = Math.pow(0.5236,2);<br />
double sum=sinx+cosx;<br />
<br />
System.out.println(&quot;sine: &quot; + sinx+&quot;cosine: &quot; + cosx +&quot;sum: &quot; + sum );<br />
}<br />
}</pre><br />
<br />
it continue to show me that i have mistake in (pow.,) but i can't see it.<br />
:(<br />
please help me</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>girl.java</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241166.html</guid>
		</item>
		<item>
			<title>Download File from Database (SQL Server 2005 - C#)</title>
			<link>http://www.daniweb.com/forums/thread241164.html</link>
			<pubDate>Wed, 25 Nov 2009 04:06:40 GMT</pubDate>
			<description><![CDATA[Hi ..  
 
I have been asked to create a new thread rather than recurrent on old post (http://www.daniweb.com/forums/thread116468-2.html), hope to get some help here... :) 
 
 
I would like to have a "Extract" button which then open a Save As dialog to save the file from the Database into local pc,...]]></description>
			<content:encoded><![CDATA[<div>Hi .. <br />
<br />
I have been asked to create a new thread rather than recurrent on old post (<a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread116468-2.html" target="_blank">http://www.daniweb.com/forums/thread116468-2.html</a>), hope to get some help here... :)<br />
<br />
<br />
I would like to have a &quot;Extract&quot; button which then open a Save As dialog to save the file from the Database into local pc, the SqlFileHolder provided in <a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread116468-1.html" target="_blank">http://www.daniweb.com/forums/thread116468-1.html</a> , work nice for me, but just wanted to have additional stuff by downloading the file.<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
private void saveFile(object sender, System.EventArgs e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // open SaveFileDialog so the user can save the file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SaveFileDialog saveFileDialog1 = new SaveFileDialog();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saveFileDialog1.Title = &quot;Save File..&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saveFileDialog1.ShowDialog();<br />
...<br />
}</pre><br />
How could i proceed to get the file from the database and save into my local pc from the code above?<br />
<br />
Thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>eURe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241164.html</guid>
		</item>
		<item>
			<title>Need help starting dice problem</title>
			<link>http://www.daniweb.com/forums/thread241163.html</link>
			<pubDate>Wed, 25 Nov 2009 03:56:27 GMT</pubDate>
			<description>Hey everyone, I am stuck on the last function of my problem, could someone help me get started by helping me on the first part of function? 
 
Question: 
I need to write a random function to get 2 numbers from 1-6, and needs to be in a loop 25 times or until both numbers are 6 
 
Thanks For Any...</description>
			<content:encoded><![CDATA[<div>Hey everyone, I am stuck on the last function of my problem, could someone help me get started by helping me on the first part of function?<br />
<br />
Question:<br />
I need to write a random function to get 2 numbers from 1-6, and needs to be in a loop 25 times or until both numbers are 6<br />
<br />
Thanks For Any Help.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>applesplz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241163.html</guid>
		</item>
		<item>
			<title>Sigh</title>
			<link>http://www.daniweb.com/forums/thread241162.html</link>
			<pubDate>Wed, 25 Nov 2009 03:53:07 GMT</pubDate>
			<description><![CDATA[Hi everybody, I have a problem with output files.  I have installed Code::Blocks and MinGW, replacing my old Borland compiler.  I am trying to make a program that uses arrays and files: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi everybody, I have a problem with output files.  I have installed Code::Blocks and MinGW, replacing my old Borland compiler.  I am trying to make a program that uses arrays and files:<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
#include &lt;fstream.h&gt;<br />
#include &lt;conio.h&gt;<br />
#include &lt;string&gt;<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;cassert&gt;<br />
<br />
using namespace std;<br />
<br />
void Save(ofstream&amp; f, int Array[], int NumUsed, char fileName[], int Cursor);<br />
void Load(ifstream&amp; f, ofstream&amp; g, int Array[], int NumUsed, int&amp; Cursor, char fileName[]);<br />
void Insert(int Array[], int&amp; NumUsed, int&amp; Position, int Num);<br />
void Delete(int Array[], int&amp; NumUsed, int Position);<br />
void Sort(int Array[], int NumUsed, bool Ascending = false);<br />
int Search(int Array[], int NumUsed, int Num);<br />
int SmallestIndex(int Array, int NumUsed, int Index);<br />
string getBoolString(bool B);<br />
void displayArray(int Array[100], int numUsed, int Cursor);<br />
<br />
int main()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; char fileName[27] = &quot;Num.txt&quot;, ch;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ifstream Input;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ofstream Output;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int numUsed = 0, Cursor = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int Array[100] = {-1};<br />
&nbsp; &nbsp; &nbsp; &nbsp; bool Circulating = false, Descending = true;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Load(Input, Output, Array, numUsed, Cursor, fileName);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; clrscr();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;[F]ilename&nbsp;  [I]nsert&nbsp;  [S]earch&nbsp;  [D]elete&nbsp;  S[o]rt&nbsp;  [C]ircular? &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; getBoolString(Circulating)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; &quot;&nbsp;  Descending? &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; getBoolString(Descending)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; &quot;&nbsp;  E[x]it&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; endl &lt;&lt; endl;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;{&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (Array[numUsed] != -1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; numUsed++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; displayArray(Array, numUsed, Cursor);<br />
<br />
&nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;}&quot; &lt;&lt; endl &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ch = getch();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (toupper(ch))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'C':&nbsp; &nbsp; //Circulating?<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Circulating)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Circulating = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Circulating = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 0:&nbsp; &nbsp; //Special key pressed<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ch = getch();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (ch)<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; case 'P':&nbsp; &nbsp;  //Down<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Descending = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'H':&nbsp; &nbsp;  //Up<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Descending = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'K':&nbsp; &nbsp;  //Left<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Cursor &gt; 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; Cursor--;<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; else<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; if (Circulating)<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cursor = numUsed;<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; gotoxy(Cursor, 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'M':&nbsp; &nbsp;  //Right<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Cursor &lt; numUsed)<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; Cursor++;<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; else<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; if (Circulating)<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cursor = 1;<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; gotoxy(Cursor, 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'F':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;\n\nCurrent Filename:&quot; &lt;&lt; fileName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;\nNew Filename: &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; fileName;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  break;<br />
&nbsp; &nbsp; &nbsp; case 'X':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Save(Output, Array, numUsed, fileName, Cursor);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  exit(1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;\n--------------------------------------------\n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
<br />
void Save(ofstream&amp; f, int Array[], int NumUsed, char fileName[], int Cursor)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; f.open(fileName);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (f.fail())<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; endl &lt;&lt; endl &lt;&lt; &quot;Error writing file!&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; getch();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit(1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; cout &lt;&lt; f.failbit;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; NumUsed; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; f &lt;&lt; Array[i] &lt;&lt; &quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; f.close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; f.open(&quot;Array.ini&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; f &lt;&lt; fileName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; f &lt;&lt; Cursor;<br />
}<br />
<br />
void Load(ifstream&amp; f, ofstream&amp; g, int Array[], int NumUsed, int&amp; Cursor, char fileName[])<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; int i = 0;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; f.open(&quot;Array.ini&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (f.fail())&nbsp; //Array.ini does not exist<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g.open(&quot;Array.ini&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g &lt;&lt; &quot;Num.txt&quot; &lt;&lt; ' ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g &lt;&lt; -1;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g.clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; f &gt;&gt; fileName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; f &gt;&gt; Cursor;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; f.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; f.clear();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; f.open(fileName);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (f.fail())&nbsp; //Num.txt does not exist<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g.open(&quot;Num.txt&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g &lt;&lt; -1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; f.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; f.open(&quot;Num.txt&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; while ((f &gt;&gt; Array[i]) &amp;&amp; (Array[i] != -1))<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; f &gt;&gt; Array[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; i++;<br />
&nbsp; &nbsp; }<br />
<br />
<br />
&nbsp;  f.close();<br />
&nbsp;  g.close();<br />
}<br />
<br />
<br />
string getBoolString(bool B)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (B)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return &quot;Yes&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return &quot;No&quot;;<br />
}<br />
<br />
void displayArray(int Array[100], int numUsed, int Cursor)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int j = 0; j &lt; numUsed; j++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (j != Cursor)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; Array[j] &lt;&lt; ' ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; '[' &lt;&lt; Array[j] &lt;&lt; &quot;] &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
}</pre><br />
This compiles fine, but when i exit and call the save function, f.fail evaluates to true.  I have tried the bad function and it returns false, so i know that badbit is not the problem, so failbit must be true.  I have displayed failbit, and it's value is 4. Why does failbit evaluate to true?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Doughnuts</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241162.html</guid>
		</item>
		<item>
			<title>Simple proxy for redirection</title>
			<link>http://www.daniweb.com/forums/thread241161.html</link>
			<pubDate>Wed, 25 Nov 2009 03:51:22 GMT</pubDate>
			<description>Hi all, 
 
I just want to write a simple proxy to redirect client to different URLs. Say all users call the proxy server with the same URL and the proxy server redirect them to different URLs. How can I do such thing, can you please anyone comment on this. 
 
Thanks a lot</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I just want to write a simple proxy to redirect client to different URLs. Say all users call the proxy server with the same URL and the proxy server redirect them to different URLs. How can I do such thing, can you please anyone comment on this.<br />
<br />
Thanks a lot</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>eranga262154</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241161.html</guid>
		</item>
		<item>
			<title>Script to Detect Keystrokes</title>
			<link>http://www.daniweb.com/forums/thread241160.html</link>
			<pubDate>Wed, 25 Nov 2009 03:42:59 GMT</pubDate>
			<description>Okay, so I am writing a media player and I would like to be able to control the entire thing without the use of a GUI. So...are there any libraries or anything that would allow me to collect keystrokes on any OS (not just Windows)? 
 
Thanks in advance.</description>
			<content:encoded><![CDATA[<div>Okay, so I am writing a media player and I would like to be able to control the entire thing without the use of a GUI. So...are there any libraries or anything that would allow me to collect keystrokes on any OS (not just Windows)?<br />
<br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>SoulMazer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241160.html</guid>
		</item>
		<item>
			<title>A Pre-Christmas Survey</title>
			<link>http://www.daniweb.com/forums/thread241156.html</link>
			<pubDate>Wed, 25 Nov 2009 03:27:09 GMT</pubDate>
			<description>*Christmas is getting near and I suddenly felt asking : 
 
What do you want to receive this Christmas? Why? 
 
Hope to hear from you.. :)** 
 
My answer: 
 
I want to receive a more reliable and updated computer.. lol..*</description>
			<content:encoded><![CDATA[<div><span style="color:Green"><span style="font-weight:bold">Christmas is getting near and I suddenly felt asking :<br />
<br />
What do you want to receive this Christmas? Why?<br />
<br />
Hope to hear from you.. :)</span></span><span style="font-weight:bold"><br />
<br />
<span style="color:Red">My answer:</span><br />
<br />
<span style="color:Green">I want to receive a more reliable and updated computer.. lol..</span></span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum6.html"><![CDATA[Geeks' Lounge]]></category>
			<dc:creator>saisai81</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241156.html</guid>
		</item>
		<item>
			<title>hi everyone</title>
			<link>http://www.daniweb.com/forums/thread241155.html</link>
			<pubDate>Wed, 25 Nov 2009 03:22:16 GMT</pubDate>
			<description>*Hello everyone,,. I am saisai81.. i am a newbie of course,, i run my own small business. i am looking forward to learning and contributing something as well.. Thanks..*</description>
			<content:encoded><![CDATA[<div><span style="font-weight:bold"><span style="color:Red">Hello everyone,,. I am saisai81.. i am a newbie of course,, i run my own small business. i am looking forward to learning and contributing something as well.. Thanks..</span></span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum165.html">Community Introductions</category>
			<dc:creator>saisai81</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241155.html</guid>
		</item>
		<item>
			<title>how to display random ASCII letters</title>
			<link>http://www.daniweb.com/forums/thread241154.html</link>
			<pubDate>Wed, 25 Nov 2009 03:20:27 GMT</pubDate>
			<description><![CDATA[Part of the assignment I'm working on is to display random letters between my good letters to encode text. Right now I can make it display random numbers. How can I change this to out put random letters? 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Part of the assignment I'm working on is to display random letters between my good letters to encode text. Right now I can make it display random numbers. How can I change this to out put random letters?<br />
 <pre style="margin:20px; line-height:13px"><br />
<br />
#include &lt;iostream&gt;<br />
#include &lt;fstream&gt;<br />
#include &lt;ctype.h&gt;<br />
#include &lt;ctime&gt;<br />
#include &lt;cstdlib&gt;<br />
#include &quot;stdafx.h&quot;<br />
<br />
using namespace std;<br />
<br />
int main () <br />
{<br />
int i;<br />
int array[10];<br />
char words;<br />
<br />
do<br />
{ <br />
cin&gt;&gt;words;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(i =0; i&lt;5; i++)<br />
&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; array[i] = rand ()%9;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout&lt;&lt;array[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cout.put(words);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp;  } while (c != EOF) ;<br />
&nbsp; return 0;&nbsp; <br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>T-Dogg3030</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241154.html</guid>
		</item>
		<item>
			<title><![CDATA[[Quick Help]Implementing a timer in a for loop, or just making the loop wait a sec?]]></title>
			<link>http://www.daniweb.com/forums/thread241153.html</link>
			<pubDate>Wed, 25 Nov 2009 03:19:25 GMT</pubDate>
			<description><![CDATA[Hey I want to simulate a knight moving in my Knight Tour Gui,  
 
this is the display code, the moves are stored in the arraylist moves. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hey I want to simulate a knight moving in my Knight Tour Gui, <br />
<br />
this is the display code, the moves are stored in the arraylist moves.<br />
<br />
 <pre style="margin:20px; line-height:13px">public void display()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int i = 0; i &lt; moves.size(); i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Gets the correct button<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JButton button = square.get(moves.indexOf(i+1));<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; button.setText(&quot;&quot; + i);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
<br />
I had something like this, but wasnt implementing the timer correctly I think because it didnt work.<br />
<br />
Any help on this or other ways to do it<br />
<br />
 <pre style="margin:20px; line-height:13px">public void display()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timer = new Timer(2000, new ActionListener() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public void actionPerformed(ActionEvent evt) {<br />
&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; }});<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int i = 0; i &lt; moves.size(); i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Gets the correct button<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JButton button = square.get(moves.indexOf(i+1));<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; timer.setDelay(1500);<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; button.setText(&quot;&quot; + i);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>.11</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241153.html</guid>
		</item>
		<item>
			<title>I need some string help plz!</title>
			<link>http://www.daniweb.com/forums/thread241152.html</link>
			<pubDate>Wed, 25 Nov 2009 03:17:18 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">string lastNames(string name[],int SIZE){<br />
&nbsp; stringstream ss;<br />
&nbsp; for(int i = 0; i &lt; SIZE; i++){<br />
&nbsp; &nbsp; ss &lt;&lt; '&quot;' &lt;&lt; name[i].substr(0) &lt;&lt; name[i].erase(name[i].find(',')) &lt;&lt; '&quot;' &lt;&lt; &quot; &quot;;<br />
&nbsp; &nbsp; <br />
&nbsp; }&nbsp; <br />
&nbsp; return ss.str();<br />
}</pre><br />
this is outputting my list of names correctly other than all the names come out twice like              &quot;namename&quot;               <br />
how can i stop this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Sseeth</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241152.html</guid>
		</item>
		<item>
			<title>How to split results into multiple pages?</title>
			<link>http://www.daniweb.com/forums/thread241150.html</link>
			<pubDate>Wed, 25 Nov 2009 02:26:40 GMT</pubDate>
			<description>Hi, 
 
I had developed a viewing table from mysql database using php and it is showing me the whole list of contents in a single webpage. I would like to know if there anyway i can actually split the contents into multiple pages for easy viewing?? 
 
Your help is greatly appreciated. 
 
Cheers :)</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I had developed a viewing table from mysql database using php and it is showing me the whole list of contents in a single webpage. I would like to know if there anyway i can actually split the contents into multiple pages for easy viewing??<br />
<br />
Your help is greatly appreciated.<br />
<br />
Cheers :)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>futhonguy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241150.html</guid>
		</item>
		<item>
			<title>after Form resize event..(pls help)</title>
			<link>http://www.daniweb.com/forums/thread241149.html</link>
			<pubDate>Wed, 25 Nov 2009 02:19:50 GMT</pubDate>
			<description>Hi guys.!! 
 
Good day.! 
 
I just want to know on how to execute an event or function call after the resize event of the Form had been triggered!.. 
 
Thank you for giving time on this post.!</description>
			<content:encoded><![CDATA[<div>Hi guys.!!<br />
<br />
Good day.!<br />
<br />
I just want to know on how to execute an event or function call after the resize event of the Form had been triggered!..<br />
<br />
Thank you for giving time on this post.!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum4.html">Visual Basic 4 / 5 / 6</category>
			<dc:creator>blocker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241149.html</guid>
		</item>
		<item>
			<title>SEO for blogs, better to use plug-ins for Wordpress or to do the SEO manually</title>
			<link>http://www.daniweb.com/forums/thread241141.html</link>
			<pubDate>Wed, 25 Nov 2009 02:01:59 GMT</pubDate>
			<description>I have been playing with SEO plug-ins for my Wordpress blogs but I am wondering if anyone has any experience with this and if they have an opinion of which is better, using the SEO plug-ins or do it by hand?</description>
			<content:encoded><![CDATA[<div>I have been playing with SEO plug-ins for my Wordpress blogs but I am wondering if anyone has any experience with this and if they have an opinion of which is better, using the SEO plug-ins or do it by hand?</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/thread241141.html</guid>
		</item>
		<item>
			<title>State Emergency Alerts on your Video Games</title>
			<link>http://www.daniweb.com/forums/thread241140.html</link>
			<pubDate>Wed, 25 Nov 2009 01:49:57 GMT</pubDate>
			<description>I just read an article that said NYS is planning to issue Emergency Alerts on the XBOX Live. So will this type of interrutption cause you to stay away from that video game? Or will it increase your chances of playing online games? ...</description>
			<content:encoded><![CDATA[<div>I just read an article that said NYS is planning to issue Emergency Alerts on the XBOX Live. So will this type of interrutption cause you to stay away from that video game? Or will it increase your chances of playing online games? <br />
<a rel="nofollow" class="t" href="http://www.joystiq.com/2009/11/24/new-york-state-will-issue-emergency-alerts-via-xbox-live/" target="_blank">http://www.joystiq.com/2009/11/24/ne...via-xbox-live/</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/thread241140.html</guid>
		</item>
		<item>
			<title>Creating an array of objects</title>
			<link>http://www.daniweb.com/forums/thread241137.html</link>
			<pubDate>Wed, 25 Nov 2009 01:37:14 GMT</pubDate>
			<description>Hello there, 
 
 
I am working on an assignment for school and I am having a hard time understanding the concept of an array of objects.  I am required to create an array of Music objects so that I can search through them via a binary search and make changes as stipulated by reading a .txt file.  
...</description>
			<content:encoded><![CDATA[<div>Hello there,<br />
<br />
<br />
I am working on an assignment for school and I am having a hard time understanding the concept of an array of objects.  I am required to create an array of Music objects so that I can search through them via a binary search and make changes as stipulated by reading a .txt file. <br />
<br />
My problem is, I do not think I understand Object arrays properly. I can not seem to populate the array from the Music class. Do I populate in the instanceOf if block? Does it matter? I have two test populations of the array under the music instance of RockSong block and on trying to System.out.println() the output for accuracy I just get a null result. Any shove in the right direction would be most appreciated. Thank you.<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
<br />
public class Main<br />
{<br />
&nbsp; &nbsp; private TextFileReader listenFile;<br />
&nbsp; &nbsp; private ListenFile currentRecord, nextRecord;<br />
&nbsp; &nbsp; private Music music;<br />
<br />
&nbsp; &nbsp; String listenDate = &quot;&quot;;<br />
&nbsp; &nbsp; String listenName = &quot;&quot;;<br />
&nbsp; &nbsp; String musicType =&quot;&quot;;<br />
&nbsp; &nbsp; String rockGroup = &quot;&quot;;<br />
&nbsp; &nbsp; String musicName = &quot;&quot;;<br />
&nbsp; &nbsp; Calendar date;<br />
&nbsp; &nbsp; Calendar closeDate;<br />
&nbsp; &nbsp; Date df;<br />
<br />
&nbsp;  public static void main (String args[])<br />
&nbsp;  {<br />
&nbsp; &nbsp; (new Main()).DisplayFile();<br />
&nbsp;  }<br />
<br />
&nbsp;  private void DisplayFile()<br />
&nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp;  int count =0;<br />
<br />
<br />
&nbsp; &nbsp;  ObjectInputStream inFile = null;<br />
&nbsp; &nbsp;  try<br />
&nbsp; &nbsp;  { inFile = new ObjectInputStream (new FileInputStream(&quot;music.dat&quot;));}<br />
&nbsp; &nbsp;  catch (IOException ioex) { System.out.println (&quot;ERROR Opening&quot;); System.exit(1); }<br />
<br />
&nbsp; &nbsp;  try<br />
&nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  while (true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Music music = (Music)inFile.readObject();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Music[] musicArray= new Music[300];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (music instanceof RockSong){<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  musicArray[0].name = music.name;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  muiscArray[1].timesPlayed = music.timesPlayed;<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; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (music instanceof ClassicalPiece){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (music instanceof Musical){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; closeDate = (((Musical)music).close);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (closeDate == null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ((Musical)music).close=Calendar.getInstance();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(musicArray[count]);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count++;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp;  catch (EOFException eofex) { System.out.println (&quot;\nDONE&quot;);}<br />
&nbsp; &nbsp;  catch (IOException ioex) { System.out.println (&quot;ERROR Reading&quot;); System.exit(1); }<br />
&nbsp; &nbsp;  catch (ClassNotFoundException cnfex) { System.out.println (&quot;ERROR class&quot;); System.exit(1); }<br />
<br />
&nbsp;  }</pre><br />
And here are my classes:<br />
<br />
 <pre style="margin:20px; line-height:13px">class Music implements Serializable<br />
{<br />
&nbsp; &nbsp;  String name;<br />
&nbsp; &nbsp;  int timesPlayed;<br />
&nbsp; &nbsp;  Calendar lastTime;<br />
}<br />
<br />
class RockSong extends Music<br />
{<br />
&nbsp; &nbsp;  String group;<br />
}<br />
<br />
class ClassicalPiece extends Music<br />
{<br />
&nbsp; &nbsp;  String composer;<br />
&nbsp; &nbsp;  String type;<br />
}<br />
<br />
class Musical extends Music<br />
{<br />
&nbsp; &nbsp;  Calendar open;<br />
&nbsp; &nbsp;  Calendar close;<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>nobodycool</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241137.html</guid>
		</item>
		<item>
			<title>When to say when?</title>
			<link>http://www.daniweb.com/forums/thread241132.html</link>
			<pubDate>Wed, 25 Nov 2009 01:26:12 GMT</pubDate>
			<description>Many companies bring products to market and they either go straight to an e-commerce strategy or they build up to an e-commerce strategy.  But is there a time when you decide that you have gotten all you can out of an e-commerce strategy and move that product back to a direct marketing strategy of...</description>
			<content:encoded><![CDATA[<div>Many companies bring products to market and they either go straight to an e-commerce strategy or they build up to an e-commerce strategy.  But is there a time when you decide that you have gotten all you can out of an e-commerce strategy and move that product back to a direct marketing strategy of stocked shelves in brick &amp; mortar environments?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum46.html">eCommerce</category>
			<dc:creator>MktgRob</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241132.html</guid>
		</item>
		<item>
			<title>Would JFK, MLK, Churchill or some other historical figures use social media?</title>
			<link>http://www.daniweb.com/forums/thread241131.html</link>
			<pubDate>Wed, 25 Nov 2009 01:23:02 GMT</pubDate>
			<description>I saw this topic on Linkedin and I decided to take it a bit further.  Think of the various historical figures who were known as great orators and communicators (JFK, Martin Luther King, Churchill, Reagan, etc) and of the various types of social media.  Who do you think would use what and why?</description>
			<content:encoded><![CDATA[<div>I saw this topic on Linkedin and I decided to take it a bit further.  Think of the various historical figures who were known as great orators and communicators (JFK, Martin Luther King, Churchill, Reagan, etc) and of the various types of social media.  Who do you think would use what and why?</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/thread241131.html</guid>
		</item>
		<item>
			<title><![CDATA[Paying for Online news - Not a story about NewsCorp & Google]]></title>
			<link>http://www.daniweb.com/forums/thread241129.html</link>
			<pubDate>Wed, 25 Nov 2009 01:14:23 GMT</pubDate>
			<description><![CDATA[Here on Long Island, the local newspaper Newsday recently began a policy that if you are not a subscriber to Newsday and are not an Optimum Cable customer of their parent company, Cablevision, you will have to pay $5 per week to access the newspaper's website.   
I think this is a case of a dying...]]></description>
			<content:encoded><![CDATA[<div>Here on Long Island, the local newspaper Newsday recently began a policy that if you are not a subscriber to Newsday and are not an Optimum Cable customer of their parent company, Cablevision, you will have to pay $5 per week to access the newspaper's website.  <br />
I think this is a case of a dying newspaper (Newsday has been losing readership and subscribers at a steady rate over the last few year) owned by a company that is notorious for jacking up the rates on their cable services because they are the only cable provider on LI, using e-commerce to try to drive business to the brick &amp; mortar side of the business.  As there are many things wrong with Newsday and the parent company, I cannot see this being a successful strategy.<br />
<br />
But if they were a better run company with better content and a better reputation, does anyone think a policy like this would work?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum46.html">eCommerce</category>
			<dc:creator>MktgRob</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241129.html</guid>
		</item>
		<item>
			<title>Please review my social community website</title>
			<link>http://www.daniweb.com/forums/thread241128.html</link>
			<pubDate>Wed, 25 Nov 2009 00:47:17 GMT</pubDate>
			<description><![CDATA[Hello, 
I need some help on the reviews for my website (http://youtipz.com).  It's an online social media community for helpful and useful tips. Submit tips about the  business, internet, travel, health, money, interview, and many more.   “Vote” the tips you like, and discuss the tips that have...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
I need some help on the reviews for my <a rel="nofollow" class="t" href="http://youtipz.com" target="_blank">website</a>.  It's an online social media community for helpful and useful tips. Submit tips about the  business, internet, travel, health, money, interview, and many more.   “Vote” the tips you like, and discuss the tips that have been posted.<br />
<br />
Thanks,</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum55.html">Website Reviews</category>
			<dc:creator>driftholic</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241128.html</guid>
		</item>
		<item>
			<title>Referencing duplicate controls on multiple tabpages</title>
			<link>http://www.daniweb.com/forums/thread241127.html</link>
			<pubDate>Wed, 25 Nov 2009 00:40:09 GMT</pubDate>
			<description><![CDATA[I have a program that allows the user to add steps to a process (tabpages in a control). All tabpages are generated on the fly by duplicating a "template" tabpage and consequently have the same control names such as textboxStepDesc. Here is the hierarchy of the controls to get to textboxStepDesc....]]></description>
			<content:encoded><![CDATA[<div>I have a program that allows the user to add steps to a process (tabpages in a control). All tabpages are generated on the fly by duplicating a &quot;template&quot; tabpage and consequently have the same control names such as textboxStepDesc. Here is the hierarchy of the controls to get to textboxStepDesc. Both TabPage1 and TabPage2 are in TabControl1<br />
<br />
TabPage1<br />
Panel1<br />
textboxStepDesc<br />
other fields<br />
<br />
TabPage2<br />
Panel1<br />
textboxStepDesc<br />
other fields<br />
<br />
Since textboxStepDesc exists in Panel1 in both TabPage1 and TabPage2, how do I specify that I want to retrieve the value of textboxStepDesc.text on tabpage2 vs. textboxStepDesc.text on tabpage1?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum58.html">VB.NET</category>
			<dc:creator>Smith5646</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241127.html</guid>
		</item>
		<item>
			<title>TV Tuner setup</title>
			<link>http://www.daniweb.com/forums/thread241126.html</link>
			<pubDate>Wed, 25 Nov 2009 00:32:50 GMT</pubDate>
			<description><![CDATA[I'm a bit confused with what I need to get what I want here. 
 
Fist I should let you know about the setup here. 
My house has only normal cable, so for any HD content I would net to get the broadcast version. 
 
Do TV tuner cards include a built-in antenna? Or would I need to get one and plug it...]]></description>
			<content:encoded><![CDATA[<div>I'm a bit confused with what I need to get what I want here.<br />
<br />
Fist I should let you know about the setup here.<br />
My house has only normal cable, so for any HD content I would net to get the broadcast version.<br />
<br />
Do TV tuner cards include a built-in antenna? Or would I need to get one and plug it in to the card?<br />
<br />
And of that's the case, I'm having trouble finding cards with 2 inputs. In this case I would need the antenna input (so I could get the broadcast channels in HD instead of SD) as well as one for cable (which I realize is only SD, but better then no-D lol).<br />
<br />
All the cards I've found from poking around Newegg have only the one input, which leads me to believe they all assume everyone who wants a TV tuner card has digital cable/satellite.<br />
<br />
So, can anyone recommend (preferably from Newegg) a TV card that either has a built-in antenna or has 2 inputs that would accommodate an antenna input as well as a standard cable input?<br />
<br />
I don't care about is having more than one tuner- I don't plan on recording. I do prefer PCI-e over standard PCI, obviously. System req's are not a concern as I have a rather beastly machine.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum106.html">PCI and Add-In Cards</category>
			<dc:creator>WheelDawg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241126.html</guid>
		</item>
		<item>
			<title>Reading data into array of structures</title>
			<link>http://www.daniweb.com/forums/thread241125.html</link>
			<pubDate>Wed, 25 Nov 2009 00:09:46 GMT</pubDate>
			<description>I have a file of data that was put into a data file by another program with the same struct. for this program i want to take that data out of the .txt file and put it back into the struct array. is there any big code that is wrong that is popping out? i keep getting a segmentation fault during the...</description>
			<content:encoded><![CDATA[<div>I have a file of data that was put into a data file by another program with the same struct. for this program i want to take that data out of the .txt file and put it back into the struct array. is there any big code that is wrong that is popping out? i keep getting a segmentation fault during the while loop in the build array function. any ideas why? or any code that would lead to this? (i know i could probably use some more advanced code but this is all i have to work with from class)<br />
<br />
if anything, is it correct how i am laying stuff out in the build arrays function?<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;iostream&gt;<br />
#include &lt;iomanip&gt;<br />
#include &lt;fstream&gt;<br />
#include &lt;string&gt;<br />
<br />
using namespace std; <br />
<br />
const int num = 36;<br />
<br />
struct teamInfo<br />
{<br />
&nbsp; &nbsp; &nbsp;  char schoolName[20];<br />
&nbsp; &nbsp; &nbsp;  char teamName[20];<br />
&nbsp; &nbsp; &nbsp;  int game1score;<br />
&nbsp; &nbsp; &nbsp;  int game2score;<br />
&nbsp; &nbsp; &nbsp;  int game3score;<br />
};<br />
<br />
//Function prototype<br />
int buildArray( teamInfo teamAr[] );<br />
<br />
<br />
<br />
int main()&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
{&nbsp; &nbsp; &nbsp; <br />
&nbsp;  //Declarations <br />
&nbsp;  int numTeams;<br />
&nbsp;  teamInfo teamAr[num];&nbsp; &nbsp; //array of structs<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; numTeams = buildArray(teamAr);<br />
&nbsp; &nbsp; &nbsp; displayArray(teamAr, numTeams);<br />
<br />
<br />
&nbsp;  <br />
&nbsp; system(&quot;pause&quot;);&nbsp; &nbsp;  <br />
&nbsp; return 0;<br />
&nbsp; <br />
}<br />
<br />
<br />
***********************************************/<br />
int buildArray( teamInfo teamAr[] )<br />
{<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; ifstream inFile;<br />
&nbsp; &nbsp; ofstream outFile;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp;  inFile.open(&quot;results.txt&quot;, ios::binary);<br />
&nbsp; <br />
&nbsp;  //test if input file opened correctly<br />
&nbsp;  if (inFile.fail() )<br />
&nbsp;  {<br />
&nbsp;  cout &lt;&lt; &quot;input file did not open&quot;;&nbsp; &nbsp;  <br />
&nbsp;  }<br />
<br />
&nbsp;  int i = 0;<br />
&nbsp;  <br />
&nbsp;  inFile.read( (char *) &amp;teamAr, sizeof(teamAr) );&nbsp; //primary read<br />
&nbsp;  while(inFile)<br />
&nbsp;  {<br />
&nbsp;  inFile.read( (char *) &amp;teamAr[i], sizeof(teamAr) );&nbsp; &nbsp;  <br />
&nbsp;  i++; //increments to next spot in array<br />
&nbsp;  }<br />
&nbsp; <br />
&nbsp; &nbsp; inFile.close();<br />
&nbsp; &nbsp; return (i);&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>cnote1287</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241125.html</guid>
		</item>
		<item>
			<title>Help with absolute positioning</title>
			<link>http://www.daniweb.com/forums/thread241124.html</link>
			<pubDate>Wed, 25 Nov 2009 00:08:46 GMT</pubDate>
			<description>Hi 
i came across a problem with for my GUI project.  
for my class project i am designing an appointment calendar. for the layout i am using absolute positioning. so when i run my login class, some times the frame pops-up to a weird default Java frame (not re sizable) there is nothing one can do...</description>
			<content:encoded><![CDATA[<div>Hi<br />
i came across a problem with for my GUI project. <br />
for my class project i am designing an appointment calendar. for the layout i am using absolute positioning. so when i run my login class, some times the frame pops-up to a weird default Java frame (not re sizable) there is nothing one can do except close it and run it again. and it decides to pop-up weird randomly i don't notice a pattern.<br />
not sure if the problem is with the absolute positioning layout or something else. will really appreciate if any one can help <br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>sufi8</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241124.html</guid>
		</item>
		<item>
			<title>Oracle Service Start up</title>
			<link>http://www.daniweb.com/forums/thread241123.html</link>
			<pubDate>Tue, 24 Nov 2009 23:27:15 GMT</pubDate>
			<description>I currently run an installer app that will install a DB on a VM server. However this fails because the when oracle is called to begin the oracle services start up but the newly installed DB will not. It works on a physical machine but not on the virtual server. Any ideas on why this configuration...</description>
			<content:encoded><![CDATA[<div>I currently run an installer app that will install a DB on a VM server. However this fails because the when oracle is called to begin the oracle services start up but the newly installed DB will not. It works on a physical machine but not on the virtual server. Any ideas on why this configuration will not work. I am working with Oracle 10 xe although it does work on the Standard edition.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum129.html">Oracle</category>
			<dc:creator>Blaine Tuisee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241123.html</guid>
		</item>
		<item>
			<title>Making an extendable program?</title>
			<link>http://www.daniweb.com/forums/thread241122.html</link>
			<pubDate>Tue, 24 Nov 2009 23:27:01 GMT</pubDate>
			<description><![CDATA[Hello all, 
  As you may know by now, from my previous posts recently, I am working on a Paint application.  My question, then, surprisingly does not involve Graphics or Swing. 
   
  So my question is this:  I would like to be able to have a directory such as "APP_HOME\tools" or something similar,...]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
  As you may know by now, from my previous posts recently, I am working on a Paint application.  My question, then, surprisingly does not involve Graphics or Swing.<br />
  <br />
  So my question is this:  I would like to be able to have a directory such as &quot;APP_HOME\tools&quot; or something similar, and I would like to have in it some .class files, that the program doesn't necessarily know anything about, perhaps except a known implemented interface, that will be loaded on start of application.<br />
<br />
  Can anyone give me a suggestion? Perhaps an overview of how a program like NetBeans or BlueJ handles plugins? Any information would be welcome.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum9.html">Java</category>
			<dc:creator>sciwizeh</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241122.html</guid>
		</item>
		<item>
			<title>strange problem in parameter passing</title>
			<link>http://www.daniweb.com/forums/thread241121.html</link>
			<pubDate>Tue, 24 Nov 2009 23:23:07 GMT</pubDate>
			<description>here is the thing i am trying to do . I have a system variable called $OOCEA_INCOMING_READY, I want to be able to construct this variable name inside the script and use it. I am passing part of the variable name OOCEA as parameter but i am not able to use this variable after constructing the name ,...</description>
			<content:encoded><![CDATA[<div>here is the thing i am trying to do . I have a system variable called $OOCEA_INCOMING_READY, I want to be able to construct this variable name inside the script and use it. I am passing part of the variable name OOCEA as parameter but i am not able to use this variable after constructing the name , see below :<br />
----------------- code a.sh ----------------------------------------------<br />
#!/usr/bin/ksh<br />
set -x <br />
AGENCY=$1<br />
AGENCY_CODE=$2<br />
FILE_TYPE=$3<br />
#<br />
echo \$${AGENCY}_INCOMING_READY <br />
ls \$${AGENCY}_INCOMING_READY <br />
ls $OOCEA_INCOMING_READY<br />
exit<br />
-------------------------------------------------------------------------<br />
<br />
<br />
./a.sh OOCEA 05 ITRN<br />
<br />
+ AGENCY=OOCEA<br />
+ AGENCY_CODE=05<br />
+ FILE_TYPE=ITRN<br />
+ echo $OOCEA_INCOMING_READY &lt;&lt;&lt;&lt; does not work<br />
$OOCEA_INCOMING_READY<br />
+ ls $OOCEA_INCOMING_READY &lt;&lt;&lt;&lt; does not work <br />
$OOCEA_INCOMING_READY: No such file or directory <br />
+ ls /u02/oocea/incoming/ready &lt;&lt;&lt; this works if i hard code the<br />
ITRN_20090430_0030.ZIP ITRN_20090430_1230.ZIP variable name .<br />
+ exit</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum113.html">Shell Scripting</category>
			<dc:creator>aliyesami</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241121.html</guid>
		</item>
		<item>
			<title>Career change from Accounting to Computer Science.</title>
			<link>http://www.daniweb.com/forums/thread241118.html</link>
			<pubDate>Tue, 24 Nov 2009 23:03:06 GMT</pubDate>
			<description>Hi, 
 
I am 26 years old and right now I am a laid off accountant.  I am starting to get pretty good at Java as a hobby and want to get into software development or information security, but I am not sure where to go from here. 
 
I have been think about trying to get back into another accounting...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am 26 years old and right now I am a laid off accountant.  I am starting to get pretty good at Java as a hobby and want to get into software development or information security, but I am not sure where to go from here.<br />
<br />
I have been think about trying to get back into another accounting job and taking night classes or should I go to school full time for 2-3 years to get my computer science degree?<br />
<br />
Since I have a bachelors degree already. Should I just take the prerequisites to get into a masters program in computer science, or should I just work on getting my bachelors?<br />
<br />
I am trying to find the best route into computer science given where I am now.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum14.html">Computer Science</category>
			<dc:creator>ragnarok511</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241118.html</guid>
		</item>
		<item>
			<title>Knoppix vs SP3</title>
			<link>http://www.daniweb.com/forums/thread241117.html</link>
			<pubDate>Tue, 24 Nov 2009 22:55:38 GMT</pubDate>
			<description><![CDATA[Is there a way to uninstall SP3 using knoppix? My brother had some issues with one of his mmo games so he thought he would just update his OS he didn't tell me what he was doing so i couldn't get the fix for sp3 on his PC b4 he did it ( I know i should have done it a while ago but I'm a big...]]></description>
			<content:encoded><![CDATA[<div>Is there a way to uninstall SP3 using knoppix? My brother had some issues with one of his mmo games so he thought he would just update his OS he didn't tell me what he was doing so i couldn't get the fix for sp3 on his PC b4 he did it ( I know i should have done it a while ago but I'm a big procrastinator ) i was going to do what i did with my PC but either it got scratched or something happened with my XP CD it wont enter Recovery Mode on his PC.<br />
<br />
I can use my knoppix cd on his so i was wondering if there is a way to delete,remove,rename what ever file it is but I'm not sure what file's or where they are located at. I tried looking though the web but still haven't had any luck.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum10.html">Windows NT / 2000 / XP</category>
			<dc:creator>andyhop</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241117.html</guid>
		</item>
		<item>
			<title>File Reading problem</title>
			<link>http://www.daniweb.com/forums/thread241116.html</link>
			<pubDate>Tue, 24 Nov 2009 22:41:33 GMT</pubDate>
			<description>Could anyone tell me why this code read an extra line?  It duplicates some of the last line, only it changes the number.   For example, the text file (set up as an inventory file) reads: 
 
45               car 
23               bus 
1                 truck 
4                 van 
 
After running...</description>
			<content:encoded><![CDATA[<div>Could anyone tell me why this code read an extra line?  It duplicates some of the last line, only it changes the number.   For example, the text file (set up as an inventory file) reads:<br />
<br />
45               car<br />
23               bus<br />
1                 truck<br />
4                 van<br />
<br />
After running the program, it displays that, but the last line it adds:<br />
<br />
0                 van<br />
<br />
Here's the code I have so far:<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 />
#include &lt;string&gt;<br />
<br />
using namespace std;<br />
<br />
const int SIZE = 500;<br />
<br />
struct Inventory <br />
{<br />
&nbsp; &nbsp; &nbsp;  int itemNumber;<br />
&nbsp; &nbsp; &nbsp;  string itemName;<br />
};<br />
<br />
int main(int argc, char *argv[])<br />
{&nbsp;  <br />
&nbsp; &nbsp; char filename[20];<br />
&nbsp; &nbsp; ifstream in_stream;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; struct Inventory items[SIZE];<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Enter a filename to load: &quot;;<br />
&nbsp; &nbsp; cin &gt;&gt; filename;<br />
<br />
&nbsp; &nbsp; in_stream.open(filename);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; if (in_stream.fail()) {<br />
&nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;Failed&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  cout &lt;&lt; &quot;File opened sucessfully.&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; string data, junk;<br />
&nbsp; &nbsp; int 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].itemNumber = atoi(number);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; getline(in_stream, data);<br />
&nbsp; &nbsp; &nbsp; &nbsp; items[n].itemName = data;<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; endl &lt;&lt; items[n].itemNumber &lt;&lt; setw(15) &lt;&lt; items[n].itemName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; n++;<br />
&nbsp; &nbsp; } while (! in_stream.eof());<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; in_stream.close();<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; system(&quot;PAUSE&quot;);<br />
&nbsp; &nbsp; return EXIT_SUCCESS;<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/thread241116.html</guid>
		</item>
		<item>
			<title>An intorduction to netizen</title>
			<link>http://www.daniweb.com/forums/thread241115.html</link>
			<pubDate>Tue, 24 Nov 2009 22:38:16 GMT</pubDate>
			<description><![CDATA[Name: Netizen Loki Newbie 
Nickname: netizen, newbie, loki 
Height: 5'10'' 
Weight: 178 
Hair: Brown 
Eyes: blue 
Location: BC, Canada 
Age: more than you 
Hobbies: go to work, complete honeydew, yell at my kids, woodworking, Search and Rescue, pyro]]></description>
			<content:encoded><![CDATA[<div>Name: Netizen Loki Newbie<br />
Nickname: netizen, newbie, loki<br />
Height: 5'10''<br />
Weight: 178<br />
Hair: Brown<br />
Eyes: blue<br />
Location: BC, Canada<br />
Age: more than you<br />
Hobbies: go to work, complete honeydew, yell at my kids, woodworking, Search and Rescue, pyro<br />
<br />
Relationship Status: committed relationship<br />
<br />
Fav Music: rap and hip hop are not music, the rest is all good and I listen to CBC Radio 1 and 2, classic rock, Taylor swift, bif naked, street heart, billy idol, just about anything but (c)rap or hip hop <br />
<br />
Education: Business Computer Information Systems, Microsoft products, Novel 4 CNA, <br />
<br />
Work: Network administrator<br />
Favorite Food: Real home made Chinese Food - not the crap served in restaurants, rice, Chicken, pork, No beef and turkey is too metro for real men<br />
<br />
Favorite Movies: star wars, start trek, battle star galactica, star man, hackers, anything with robin williams<br />
<br />
Favorite TV Shows: The Family Guy, The Simpsons, X-Files, guy stuff<br />
<br />
Favorite Video Games: lots of boom, FPS, daddy go fast games, adrenalin and testosterone<br />
<br />
Stuff you Dislike: twitter and anyone that uses or promotes it, face book and anyone that uses or promotes it, social networking of any kind (get a life), teeny text messaging (again, get a life), cell phones, teenage boys, the American way and life style especially bigotry and racism (time for America to grow up), sleds and other gas burners for the sake of burning up the last of that resource, government interference in developing an alternative to petroleum fuels, marketing on websites, msn, bing, &quot;enthusiasts&quot; that purport to know anything, skanky clothes on a girl of any age</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum165.html">Community Introductions</category>
			<dc:creator>netizen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241115.html</guid>
		</item>
		<item>
			<title>different way to calc. direction</title>
			<link>http://www.daniweb.com/forums/thread241112.html</link>
			<pubDate>Tue, 24 Nov 2009 22:07:08 GMT</pubDate>
			<description>right now I am using slope calculations to determine the direction a selected unit needs to go 
basically the equation is (x2 - x1) / (x2 - x1) + (y2 - y1)to calculate the ratio of change in x to the total change in position. 
(y2 - y1) / (x2 - x1) + (y2 - y1)to calculate the ratio of change in y...</description>
			<content:encoded><![CDATA[<div>right now I am using slope calculations to determine the direction a selected unit needs to go<br />
basically the equation is (x2 - x1) / (x2 - x1) + (y2 - y1)to calculate the ratio of change in x to the total change in position.<br />
(y2 - y1) / (x2 - x1) + (y2 - y1)to calculate the ratio of change in y to the total change in position<br />
<br />
I want to see other options of handling direction just to see if I can find a better working way. All I need is to move one point towards the second. I am using C++ of course and the graphics library SFML for rendering and input.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>noey699</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241112.html</guid>
		</item>
		<item>
			<title>plsss help me with my homework</title>
			<link>http://www.daniweb.com/forums/thread241111.html</link>
			<pubDate>Tue, 24 Nov 2009 22:00:38 GMT</pubDate>
			<description>i have to write a program in c++ that reads numbers(weight of an item) from a file until now i got it:) 
and then place this items in boxes.the goal is to use as less boxes as possible.Each box can weight no more than 10. 
place each new item in the most-filled box. 
use a priority queue to...</description>
			<content:encoded><![CDATA[<div>i have to write a program in c++ that reads numbers(weight of an item) from a file until now i got it:)<br />
and then place this items in boxes.the goal is to use as less boxes as possible.Each box can weight no more than 10.<br />
place each new item in the most-filled box.<br />
use a priority queue to determine the box that an items goes in.<br />
<br />
<br />
pls someone help me<br />
thanks!!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>miag</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241111.html</guid>
		</item>
		<item>
			<title>Tweet Dani Tweeted on Twitter</title>
			<link>http://www.daniweb.com/twitter/thread241107.html</link>
			<pubDate>Tue, 24 Nov 2009 21:50:05 GMT</pubDate>
			<description><![CDATA[DaniWeb: Trying to come up with unique ways to promote DaniWeb's #hardware and #software forums <plug> http://bit.ly/4U8UP5 </plug> (http://twitter.com/DaniWeb/statuses/6020148337)]]></description>
			<content:encoded><![CDATA[<div><a rel="nofollow" class="t" href="http://twitter.com/DaniWeb/statuses/6020148337" target="_blank">DaniWeb: Trying to come up with unique ways to promote DaniWeb's #hardware and #software forums &lt;plug&gt; http://bit.ly/4U8UP5 &lt;/plug&gt;</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/thread241107.html</guid>
		</item>
		<item>
			<title>News Story Linux in 5 Easy Steps</title>
			<link>http://www.daniweb.com/news/story241106.html</link>
			<pubDate>Tue, 24 Nov 2009 21:45:16 GMT</pubDate>
			<description><![CDATA[Hey Windows fans, would you like to take Linux for a spin to see what everyone's buzzing about? It's easy to do in just five easy steps. You can test Linux for yourself without having to setup multibooting, worry about partitioning or installing over your current Windows system. That's right, you...]]></description>
			<content:encoded><![CDATA[<div>Hey Windows fans, would you like to take Linux for a spin to see what everyone's buzzing about? It's easy to do in just five easy steps. You can test Linux for yourself without having to setup multibooting, worry about partitioning or installing over your current Windows system. That's right, you can. Try out that Linux power and coolness for yourself using these five easy steps. Don't worry, you'll never have to leave the comfort of Windows to do any of them--not even to a command line. Let's get started!<br />
<br />
<span style="font-weight:bold">1.  Download Virtual PC 2007</span> - <a rel="nofollow" class="t" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=28C97D22-6EB8-4A09-A7F7-F6C7A1F000B5&amp;displaylang=en" target="_blank">Virtual PC 2007</a> allows you to install various operating systems as virtual machines and run them simultaneously with Windows. No rebooting required. Download this free application from Microsoft, install it and then proceed to Step 2.<br />
<br />
<span style="font-weight:bold">2.  Download Ubuntu 9.10</span> - Everyone agrees that <a rel="nofollow" class="t" href="http://www.ubuntu.com" target="_blank">Ubuntu</a> Linux is the great Windows contender, especially for those who are new to Linux. Go to the Ubuntu <a rel="nofollow" class="t" href="http://www.ubuntu.com/getubuntu/download" target="_blank">Downloads</a> page to download your free copy. The download is large (~600MB) so it might take a while, so be patient.<br />
<br />
<span style="font-weight:bold">3.  Create a New Virtual Machine</span> - To install Ubuntu Linux, you'll need to setup a new virtual machine (VM) for it. This is just like building a PC on which to install a new operating system except that the hardware is virtual.<br />
Open Virtual PC, click the New button, click Next, Create a Virtual Machine, name the new VM something like Ubuntu and click Next, select Other for operating system, click Next, Adjusting the RAM, change the 128 to 256 and click Next, A new virtual hard disk, click Next, change 16384 to 4000 (Hopefully you have 4GB free space--if not, change the location to a drive where you do), click Next to finish. You should see your new Ubuntu VM listed in the Virtual PC console.<br />
<br />
<span style="font-weight:bold">4.  Boot the ISO Image</span> - The file that you downloaded in Step 2 is delivered to you as an ISO image, which means that it is an entire CD image in a single file. You do not have to burn the image to CD disk and boot from it. You can boot directly from the ISO image file.<br />
With Virtual PC still open, click Start. A black box opens. This is your VM booting up. While the screen is still black, click CD on the menu bar, click Capture ISO image, browse to the Ubuntu ISO image that you downloaded in Step 2, select it, and click Open. Your VM will now boot to the ISO image.<br />
<br />
<span style="font-weight:bold">5.  Install</span> - Ubuntu installation is easy. Press the ENTER key to begin. Follow the prompts to install your new system. If you come across something you don't understand, just accept the default value and click Forward to continue. When Ubuntu is finished installing to the new VM, there is a prompt to restart, click Restart. This will reboot your VM and bring it up to the desktop or the desktop login. If you are presented with a login prompt, type in the username and password you used during installation.<br />
<br />
Congratulations, you just installed Ubuntu Linux into a virtual machine! What you have in that VM is a fully-functional desktop operating system that compares favorably to Windows. Go ahead, give it a try. <br />
You'll find that it works almost exactly like Windows and is loaded with all kinds of software. You don't have to pay for Ubuntu or any of the programs that you use.<br />
Next, check out the Linux forums here on DaniWeb to ask questions and find out how powerful your new system is and what you can do with it.<br />
Write back and let me know how you like your new Ubuntu system.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum120.html">Getting Started and Choosing a Distro</category>
			<dc:creator>khess</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241106.html</guid>
		</item>
		<item>
			<title>Convert String to Datetime?</title>
			<link>http://www.daniweb.com/forums/thread241105.html</link>
			<pubDate>Tue, 24 Nov 2009 21:43:37 GMT</pubDate>
			<description><![CDATA[I have a String stored in this format "10/10/2009 12:00:00". 
I would like to convert this into a DateTime object so I can add it into the Outlook calender.  
I have tried using the following code but it doesnt seem to work. 
DateTime startDate = DateTime.Parse(appointments[i]);  
(where...]]></description>
			<content:encoded><![CDATA[<div>I have a String stored in this format &quot;10/10/2009 12:00:00&quot;.<br />
I would like to convert this into a DateTime object so I can add it into the Outlook calender. <br />
I have tried using the following code but it doesnt seem to work.<br />
DateTime startDate = DateTime.Parse(appointments[i]); <br />
(where appointments[i] is a string in a point in an array)<br />
<br />
I have also tried using the following code to parse butit hasnt lead to anything for me: <br />
System.Globalization.DateTimeFormatInfo info = new System.Globalization.DateTimeFormatInfo();<br />
<br />
Can somebody show me how to parse the above format or by another method i cant seem to get to work either way. Many thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum61.html">C#</category>
			<dc:creator>Drahmina</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241105.html</guid>
		</item>
		<item>
			<title>Finding and explain the error</title>
			<link>http://www.daniweb.com/forums/thread241102.html</link>
			<pubDate>Tue, 24 Nov 2009 21:24:23 GMT</pubDate>
			<description><![CDATA[computeCube function is correct, but the main function has a problem. Explain why it doesn't work and show how to fix it. Your fix must be to the main function only; you must not change computeCube.  
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>computeCube function is correct, but the main function has a problem. Explain why it doesn't work and show how to fix it. Your fix must be to the main function only; you must not change computeCube. <br />
 <pre style="margin:20px; line-height:13px"> void computeCube(int n, int* ncubed)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; *ncubed = n * n * n;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; int main()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int* ptr;<br />
&nbsp; &nbsp; &nbsp; &nbsp; computeCube(5, ptr);<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Five cubed is &quot; &lt;&lt; *ptr &lt;&lt; endl;<br />
&nbsp; &nbsp; }</pre>Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>icygalz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241102.html</guid>
		</item>
		<item>
			<title>Macro, need help</title>
			<link>http://www.daniweb.com/forums/thread241101.html</link>
			<pubDate>Tue, 24 Nov 2009 21:21:45 GMT</pubDate>
			<description><![CDATA[I'm making a macro in python and I need some help. 
 
Basically, it just loads up 4 line entries from a text file and just attaches those 4 things to the end of a URL, and opens firefox to that URL. It then waits a random time between 3min-8min and terminates firefox and loops again. 
 
I think i...]]></description>
			<content:encoded><![CDATA[<div>I'm making a macro in python and I need some help.<br />
<br />
Basically, it just loads up 4 line entries from a text file and just attaches those 4 things to the end of a URL, and opens firefox to that URL. It then waits a random time between 3min-8min and terminates firefox and loops again.<br />
<br />
I think i did something wrong because I'm trying to run it and its not running.<br />
<br />
 <pre style="margin:20px; line-height:13px">import os,sys<br />
import random<br />
import webbrowser<br />
import time<br />
import subprocess as sp<br />
<br />
cls=os.system(&quot;cls&quot;)<br />
title=os.system('title Hit any key to start searhing!')<br />
<br />
def main():<br />
&nbsp; &nbsp; cls<br />
&nbsp; &nbsp; print &quot;&quot; <br />
&nbsp; &nbsp; title<br />
&nbsp; &nbsp; raw_input()<br />
&nbsp; &nbsp; getRandEntry()<br />
<br />
def getRandEntry(): #this function gets 4 random line entries from wordlist.txt<br />
&nbsp; &nbsp; &nbsp; &nbsp; WordList = open(&quot;wordlist.txt&quot;,&quot;r&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; randomEntry1 = random.choice(WordList.readlines())<br />
&nbsp; &nbsp; &nbsp; &nbsp; randomEntry2 = random.choice(WordList.readlines())<br />
&nbsp; &nbsp; &nbsp; &nbsp; randomEntry3 = random.choice(WordList.readlines())<br />
&nbsp; &nbsp; &nbsp; &nbsp; randomEntry4 = random.choice(WordList.readlines())<br />
&nbsp; &nbsp; &nbsp; &nbsp; WordList.close()<br />
&nbsp; &nbsp; &nbsp; &nbsp; startLink()<br />
<br />
&nbsp; &nbsp; <br />
def startLink():<br />
&nbsp; &nbsp; QuadEntry = randomEntry1 + &quot;+&quot; + randomEntry2 + &quot;+&quot; + randomEntry3 + &quot;+&quot; + randomEntry4<br />
&nbsp; &nbsp; child = sp.Popen(['firefox', '-p',&nbsp; 'myprofile', '-no-remote', &quot;http://swagbucks.com/?t=w&amp;p=1&amp;q=&quot; + `QuadEntry`])<br />
&nbsp; &nbsp; time.sleep(15)<br />
&nbsp; &nbsp; child.terminate() #where taskkill for python goes<br />
&nbsp; &nbsp; for interval in range(180, 481): #180 seconds = 3 mins, 480 seconds = 8 min<br />
&nbsp; &nbsp; &nbsp; &nbsp; #for loop is to make the random 3min-8min interval between searches<br />
&nbsp; &nbsp; &nbsp; &nbsp; time.sleep(interval)<br />
&nbsp; &nbsp; &nbsp; &nbsp; getRandEntry()</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/thread241101.html</guid>
		</item>
		<item>
			<title><![CDATA[root finding - function won't exit?]]></title>
			<link>http://www.daniweb.com/forums/thread241100.html</link>
			<pubDate>Tue, 24 Nov 2009 20:59:33 GMT</pubDate>
			<description><![CDATA[I'm trying to implement the algorithm described here under 'definition', http://en.wikipedia.org/wiki/Laguerre%27s_method 
 
To summarise it takes an initial guess 0, and then iterates to find the root. 
 
In lines 68 to 71 I was hoping this would exit the function, i.e. when the root is...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to implement the algorithm described here under 'definition', <a rel="nofollow" class="t" href="http://en.wikipedia.org/wiki/Laguerre%27s_method" target="_blank">http://en.wikipedia.org/wiki/Laguerre%27s_method</a><br />
<br />
To summarise it takes an initial guess 0, and then iterates to find the root.<br />
<br />
In lines 68 to 71 I was hoping this would exit the function, i.e. when the root is found...but it's still carrying on.<br />
<br />
Can anyone please explain why?<br />
<br />
Thanks in advance!<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px"> #include &lt;iostream&gt;<br />
#include &lt;cmath&gt;<br />
#include &lt;vector&gt;<br />
#include &lt;iomanip&gt;<br />
<br />
using namespace std;<br />
<br />
//Declare functions<br />
void poly(vector&lt;double&gt; A, double x, double&amp; p, double&amp; px, double&amp; pxx, double a, double G, double H, double denom1, double denom2, int degree, int max);<br />
<br />
//---------------------------------------------------------------------------------------<br />
<br />
int main()<br />
{<br />
&nbsp; &nbsp; vector&lt;double&gt; A;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // vector of coefficients a^degree...a^0<br />
&nbsp; &nbsp; int degree;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // highest degree<br />
&nbsp; &nbsp; int max = 0;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // maximum number of iterations<br />
&nbsp; &nbsp; double x;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // value of x, initial guess<br />
&nbsp; &nbsp; double p;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // p(x)<br />
&nbsp; &nbsp; double px;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // p'(x)<br />
&nbsp; &nbsp; double pxx;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // p''(x)<br />
&nbsp; &nbsp; double a;<br />
&nbsp; &nbsp; double G;<br />
&nbsp; &nbsp; double H;<br />
&nbsp; &nbsp; double denom1;<br />
&nbsp; &nbsp; double denom2;<br />
<br />
&nbsp; &nbsp; poly(A, x, p, px, pxx, a, G, H, denom1, denom2, degree, max);<br />
&nbsp; &nbsp; return 0;<br />
}<br />
<br />
//---------------------------------------------------------------------------------------<br />
<br />
void poly(vector&lt;double&gt; A, double x, double&amp; p, double&amp; px, double&amp; pxx, double a, double G, double H, double denom1, double denom2, int degree, int max)<br />
{<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;For polynomial p(x) = a0 + a1x + a2x^2 + ... + anx^n&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Enter the polynomial degree, n&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Example:&nbsp; 2 for a quadratic, 3 for a cubic...&quot; &lt;&lt; endl;<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Degree: &quot;;<br />
&nbsp; &nbsp; cin &gt;&gt; degree;<br />
<br />
&nbsp; &nbsp; A.resize (degree + 1);<br />
<br />
&nbsp; &nbsp; for (int i = degree; i &gt;= 0; i--)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Enter coefficient a&quot; &lt;&lt; i &lt;&lt; &quot;: &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cin &gt;&gt; A&#91;i&#93;;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Enter the initial guess x: &quot;;<br />
&nbsp; &nbsp; cin &gt;&gt; x;<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;Enter the maximum number of iterations allowed: &quot;;<br />
&nbsp; &nbsp; cin &gt;&gt; max;<br />
<br />
<br />
&nbsp; &nbsp; for (int i = 1; i &lt;= max; i++)<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; //Calculations for p(x)<br />
<br />
&nbsp; &nbsp; p = A&#91;degree&#93;;<br />
&nbsp; &nbsp; for (int i = (degree - 1); i &gt;= 0; i--)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; p = p*x;<br />
&nbsp; &nbsp; &nbsp; &nbsp; p = p+A&#91;i&#93;;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; if (p==0)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; //First differentiation on the coefficients<br />
&nbsp; &nbsp; for (int i = 1; i &lt;= degree; i++)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; A&#91;i - 1&#93; = i * A&#91;i&#93;;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; //Horner's Method - calculations for p'(x)<br />
&nbsp; &nbsp; px = A&#91;degree - 1&#93;;<br />
&nbsp; &nbsp; for (int i = (degree - 2); i &gt;= 0; i--)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; px = px*x;<br />
&nbsp; &nbsp; &nbsp; &nbsp; px = px+A&#91;i&#93;;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; //Second differentiation on the coefficients<br />
&nbsp; &nbsp; for (int i = 1; i &lt;= degree-1 ; i++)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; A&#91;i - 1&#93; = i * A&#91;i&#93;;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; //Horner's Method - calculations for p''(x)<br />
&nbsp; &nbsp; pxx = A&#91;degree - 2&#93;;<br />
&nbsp; &nbsp; for (int i = (degree - 3); i &gt;= 0; i--)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; pxx = pxx*x;<br />
&nbsp; &nbsp; &nbsp; &nbsp; pxx = pxx+A&#91;i&#93;;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; //Laguerre's Method<br />
&nbsp; &nbsp; G = px/p;<br />
&nbsp; &nbsp; H = G*G - pxx/p;<br />
&nbsp; &nbsp; denom1 = (G + sqrt((degree-1)*(degree*H - G*G)));<br />
&nbsp; &nbsp; denom2 = (G - sqrt((degree-1)*(degree*H - G*G)));<br />
<br />
&nbsp; &nbsp; if ( abs(denom1) &gt;= abs(denom2) )<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; a = degree/denom1;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; else<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; a = degree/denom2;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; cout &lt;&lt; &quot;The root approximation for x = &quot; &lt;&lt;fixed&lt;&lt;setprecision(7)&lt;&lt; x &lt;&lt; &quot; is &quot; &lt;&lt;fixed&lt;&lt;setprecision(7)&lt;&lt; a &lt;&lt; endl;<br />
<br />
&nbsp; &nbsp; x = x - a;<br />
}<br />
return;<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>sexyzebra19</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241100.html</guid>
		</item>
		<item>
			<title>Good Day!</title>
			<link>http://www.daniweb.com/forums/thread241099.html</link>
			<pubDate>Tue, 24 Nov 2009 20:56:27 GMT</pubDate>
			<description>Hello all, good to be with you! My name is Antony and I am a sys admin by trade. I hope to contribute greatly to this site and I ready to get to work ! 
 
C Ya 
 
Noncentz</description>
			<content:encoded><![CDATA[<div>Hello all, good to be with you! My name is Antony and I am a sys admin by trade. I hope to contribute greatly to this site and I ready to get to work !<br />
<br />
C Ya<br />
<br />
Noncentz</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum165.html">Community Introductions</category>
			<dc:creator>noncentz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241099.html</guid>
		</item>
		<item>
			<title>need help with searching function for string</title>
			<link>http://www.daniweb.com/forums/thread241098.html</link>
			<pubDate>Tue, 24 Nov 2009 20:52:17 GMT</pubDate>
			<description>Hi, I am trying to search for a word I have entered into a list.  I could list all entries  so far.  But I am having a hard time figuring out a function that can search for a particular word on the list.  Below are the codes. I commented out different functions I have tried.  Thank you!    
    ...</description>
			<content:encoded><![CDATA[<div>Hi, I am trying to search for a word I have entered into a list.  I could list all entries  so far.  But I am having a hard time figuring out a function that can search for a particular word on the list.  Below are the codes. I commented out different functions I have tried.  Thank you!   <br />
    <pre style="margin:20px; line-height:13px">boolean searchWord (VOCAB V[])<br />
<br />
&nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  int i;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  char target[LENGTH];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  printf(&quot;\nEnter the Word you want to search: &quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  fflush (stdin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  gets (target);&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ( i=0; i&lt;SIZE; i++) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // if ( target == V[i].Word )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //if ( strcmp( target, V[i].Word ) == 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (strncmp (V[i].Word,&quot;target&quot;) == 0)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  return 1;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp;  }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>student1t</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241098.html</guid>
		</item>
		<item>
			<title>Finding maximum value in array with pointer</title>
			<link>http://www.daniweb.com/forums/thread241097.html</link>
			<pubDate>Tue, 24 Nov 2009 20:49:11 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">void findMax(int arr[], int n, int* pToMax)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (n &lt;= 0) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;&nbsp; &nbsp; &nbsp; // no items, no maximum!<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; int max = arr[0];<br />
&nbsp; &nbsp; &nbsp; &nbsp; pToMax = &amp;arr[0];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; for (int i = 1; i &lt; n; i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (arr[i] &gt; max)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  max = arr[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  pToMax = (arr+i);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; int main()<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int nums[4] = { 5, 3, 15, 6 };<br />
&nbsp; &nbsp; &nbsp; &nbsp; int *ptr;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; findMax(nums, 4, ptr);<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;The maximum is at address &quot; &lt;&lt; ptr &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;It's at index &quot; &lt;&lt; ptr - nums &lt;&lt; endl;<br />
&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; &quot;Its value is &quot; &lt;&lt; *ptr &lt;&lt; endl;<br />
&nbsp; &nbsp; }</pre>It shows some error. I don't understand. I need to change the findMax function only. I cannot change the main function<br />
Is there anyone tho can explain me why? <br />
<br />
Thank You!!^_^</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>icygalz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241097.html</guid>
		</item>
		<item>
			<title>Should I learn WinApi or?</title>
			<link>http://www.daniweb.com/forums/thread241096.html</link>
			<pubDate>Tue, 24 Nov 2009 20:34:57 GMT</pubDate>
			<description><![CDATA[I got a plenty of free time now and interested in GUI developement, I got expirience in C++, thats not the problem. I've done apps in wxWidgets before which I got bored to. Would it be learning to learn winApi or do you guys got better suggestions, as I said I am interested in making GUI:s with C++...]]></description>
			<content:encoded><![CDATA[<div>I got a plenty of free time now and interested in GUI developement, I got expirience in C++, thats not the problem. I've done apps in wxWidgets before which I got bored to. Would it be learning to learn winApi or do you guys got better suggestions, as I said I am interested in making GUI:s with C++ and expirience is not a problem.<br />
<br />
Thanks!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>Silvershaft</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241096.html</guid>
		</item>
		<item>
			<title>Assignment in C help ( factorial)</title>
			<link>http://www.daniweb.com/forums/thread241094.html</link>
			<pubDate>Tue, 24 Nov 2009 20:27:19 GMT</pubDate>
			<description><![CDATA[Hi i'm having some trouble getting my head around this assignment... 
which is :  
Design, write and test a program to print a table of factorials. The program should read in two values: a maximum factorial value and a minimum factorial value.  
It must then print a table, as illustrated below,...]]></description>
			<content:encoded><![CDATA[<div>Hi i'm having some trouble getting my head around this assignment...<br />
which is : <br />
Design, write and test a program to print a table of factorials. The program should read in two values: a maximum factorial value and a minimum factorial value. <br />
It must then print a table, as illustrated below, with one column for the factorial number, one column for the factorial expression and a third column showing the result. The program must produce this table from maximum factorial value to the minimum factorial value; e.g. if the maximum factorial value is 5 and the minimum factorial value is 3 the program produces a table like the following:  <br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">Factorial value&nbsp; &nbsp; &nbsp; &nbsp; Factorial Expression&nbsp; &nbsp; &nbsp; &nbsp;  Result<br />
-----------------------------------------------------------------------------------<br />
5!&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  5*4*3*2*1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 120<br />
4!&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4*3*2*1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 24<br />
3!&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3*2*1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  6<br />
<br />
------------------------------------------------------------------------------------</pre><br />
<br />
The program must repeatedly ask the user to input data and print a table of factorials, as illustrated above, until the user decides to exit the program. <br />
<br />
<br />
so far i have been succesfull in creating the table reading in a maximum and min factorial and creating a list downwards to the left<br />
<br />
what im finding hard is placing the 5*4*3 etc into the middle column<br />
<br />
here is my code so far<br />
<br />
 <pre style="margin:20px; line-height:13px">#include &lt;stdio.h&gt;<br />
#include&lt;conio.h&gt;<br />
<br />
void main()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; // defining and initialising variables<br />
&nbsp; &nbsp; int max , factorial;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int min=0;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; //enters a maximum factorial<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;Please enter a Maximum Factorial:&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%d&quot;, &amp;max);<br />
&nbsp; &nbsp; fflush(stdin);<br />
&nbsp; &nbsp; //enters a minimum factorial<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\nPlease enter a Minimum factorial:&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; scanf(&quot;%d&quot;, &amp;min);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; fflush(stdin);<br />
&nbsp; &nbsp; //handles an input error<br />
&nbsp; &nbsp; if (max&gt;min)<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;----------------------------------------------------------------------&quot;);<br />
&nbsp; &nbsp; &nbsp; else <br />
&nbsp; &nbsp; &nbsp; &nbsp;  printf(&quot;\nyou have entered an invalid number\n&quot;);<br />
&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\nFactorial Value&nbsp; &nbsp; &nbsp; &nbsp; Factorial expression&nbsp; &nbsp; &nbsp; &nbsp; Factorial Result&quot;);<br />
&nbsp; &nbsp; printf(&quot;\n----------------------------------------------------------------------&quot;);<br />
&nbsp; &nbsp; //creating a list from max to min factorials<br />
&nbsp; &nbsp; &nbsp; &nbsp; factorial=max;<br />
&nbsp; &nbsp; &nbsp; &nbsp; while ( factorial&gt;=min){<br />
&nbsp; &nbsp; &nbsp; &nbsp; printf(&quot;\n%d!&quot; ,max);<br />
&nbsp; &nbsp; &nbsp; &nbsp; max=max-1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; factorial=factorial-1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
getch();<br />
}</pre><br />
if anyone could help it would be hugely appreciated</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum118.html">C</category>
			<dc:creator>John-5-</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241094.html</guid>
		</item>
		<item>
			<title>Scorecard</title>
			<link>http://www.daniweb.com/forums/thread241093.html</link>
			<pubDate>Tue, 24 Nov 2009 20:20:30 GMT</pubDate>
			<description>I need to make a score table function which keeps a track of the points. the first player to reach 11 points wins, however the game must be won by aleast a 2 point margin.  
 
the players points should be displayed on two halves of the graphic window. for example:...</description>
			<content:encoded><![CDATA[<div>I need to make a score table function which keeps a track of the points. the first player to reach 11 points wins, however the game must be won by aleast a 2 point margin. <br />
<br />
the players points should be displayed on two halves of the graphic window. for example:<br />
<a rel="nofollow" class="t" href="http://img413.imageshack.us/i/boxz.jpg/" target="_blank">http://img413.imageshack.us/i/boxz.jpg/</a><br />
<br />
the player should clicj on there side of the window to increase the point. after the players wins, a wins message should be displayed under the winner. the next click should close the window<br />
<br />
def main():<br />
<br />
I am not sure how to start the code, any help would be great</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>Musafir</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241093.html</guid>
		</item>
		<item>
			<title>Shared hosting plans- 50% off +  free 100 dollar facebook ad credit</title>
			<link>http://www.daniweb.com/forums/thread241089.html</link>
			<pubDate>Tue, 24 Nov 2009 20:06:18 GMT</pubDate>
			<description>ZombiesHost – Black Friday Ad 
_zombieshost.net – website (http://zombieshost.net)_ 
 
Hello my friends. Today I would like to release our Black Friday deals. These deals are valid till Midnight of Nov. 24, 2009. For Black Friday Zombies Host is offering 50% of yearly shared hosting plans And 20%...</description>
			<content:encoded><![CDATA[<div>ZombiesHost – Black Friday Ad<br />
<span style="color:Green"><span style="text-decoration:underline"><a rel="nofollow" class="t" href="http://zombieshost.net" target="_blank">zombieshost.net – website</a></span></span><br />
<br />
Hello my friends. Today I would like to release our Black Friday deals. These deals are valid till Midnight of Nov. 24, 2009. For Black Friday Zombies Host is offering 50% of yearly shared hosting plans And 20% of year for reseller plans, VPS plans, and dedicated hosting. Hurry before the slots on our servers fill up!!<br />
<br />
<span style="font-weight:bold">Simply use the coupon code </span><span style="font-weight:bold"><span style="color:Red">BlackFriday</span></span><br />
<br />
Shared Hosting Plans <br />
<a rel="nofollow" class="t" href="http://zombieshost.net/shared.htm" target="_blank">http://zombieshost.net/shared.htm</a><br />
<br />
Receive a free $100 FaceBook  AdCredit when you purchase a shared hosting plan. <br />
<br />
<span style="color:Red">Lil Zombie</span> - Plan Details <br />
Quota (MB) - 4GB <br />
Bandwidth (MB) - 40 GB <br />
Max FTP Accounts - unlimited <br />
Max Email Accounts - unlimited <br />
Max Email Lists - unlimited <br />
Max Databases - unlimited <br />
Max Sub Domains - unlimited <br />
Max Parked Domains - unlimited <br />
Max Addon Domains – 1<br />
<span style="font-weight:bold"><a rel="nofollow" class="t" href="http://zombieshost.net/shared.htm" target="_blank">ORDER - $14.97 /year</a></span><br />
<br />
<br />
<span style="color:red">Big Zombie</span> - Plan Details <br />
Quota (MB) - 12GB <br />
Bandwidth (MB) - 120 GB <br />
Max FTP Accounts - unlimited <br />
Max Email Accounts - unlimited <br />
Max Email Lists - unlimited <br />
Max Databases - unlimited <br />
Max Sub Domains - unlimited <br />
Max Parked Domains - unlimited <br />
Max Addon Domains - 8<br />
<span style="font-weight:bold"><a rel="nofollow" class="t" href="http://zombieshost.net/shared.htm" target="_blank">ORDER - $29.97 /year</a></span><br />
<br />
<br />
<span style="color:red">Mega Zombie</span> - Plan Details <br />
Quota (MB) - 24GB <br />
Bandwidth (MB) - 240 GB <br />
Max FTP Accounts - unlimited <br />
Max Email Accounts - unlimited <br />
Max Email Lists - unlimited <br />
Max Databases - unlimited <br />
Max Sub Domains - unlimited <br />
Max Parked Domains - unlimited <br />
Max Addon Domains - unlimited <br />
Jailed SSH <br />
<span style="font-weight:bold"><a rel="nofollow" class="t" href="http://zombieshost.net/shared.htm" target="_blank">ORDER - $54.97 /year</a></span><br />
<br />
<br />
<a rel="nofollow" class="t" href="http://zombieshost.net/shared.htm" target="_blank">http://zombieshost.net/shared.htm</a><br />
<br />
Zombies Host servers are located at SoftLayer D.C. Datacenter. SoftLayer D.C. is located in a private N+1 data center facility just 7 miles from Dulles airport in Chantilly, Virginia. The facility is also home to data centers belonging to AT&amp;T and Verizon Business, and receives power from two redundant Dominion Virginia Power grids. It includes three on-site, 600-ton cooling towers, fully meeting N+1 cooling requirements.<br />
<br />
<a rel="nofollow" class="t" href="http://zombieshost.net/network.htm" target="_blank">http://zombieshost.net/network.htm</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum154.html">Web Hosting Deals</category>
			<dc:creator>zombieshost</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241089.html</guid>
		</item>
		<item>
			<title><![CDATA[Can't create DLL with String as paramater in class members]]></title>
			<link>http://www.daniweb.com/forums/thread241088.html</link>
			<pubDate>Tue, 24 Nov 2009 19:52:55 GMT</pubDate>
			<description>I am trying to create a dll project using VS2005 (C++.NET).  It is going to be used to access a database to store records w/o having to know how to actually create records (i.e. just pass info, and the dll classes will create a row in db). 
 
I want to be able to use a String as a pass parameter...</description>
			<content:encoded><![CDATA[<div>I am trying to create a dll project using VS2005 (C++.NET).  It is going to be used to access a database to store records w/o having to know how to actually create records (i.e. just pass info, and the dll classes will create a row in db).<br />
<br />
I want to be able to use a String as a pass parameter but I am getting the following error:<br />
&quot;&quot;__declspec(dllexport) cannot be applied to a function with the __clrcall calling convention&quot;<br />
<br />
I have read some stuff on /clr option, managed and unmanaged stuff but its not very clear.  I have also tried to create the project as a Win32 dll and as a CLR dll.  What is the proper way to create a dll project that can accept the String type as a pass parameter (and return a String if necessary would also be nice).<br />
<br />
Here is what I have so far.  Obviously it doesn't actually insert anything into the db yet, just want to get the basics going first.<br />
<br />
myApp.h:<br />
 <pre style="margin:20px; line-height:13px">#include &lt;stdexcept&gt;<br />
#using &quot;system.dll&quot;<br />
#include &lt;string&gt;<br />
using namespace std;<br />
using namespace System;<br />
<br />
namespace myAppClass<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; class myApp<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; public:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Returns info msg<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; static __declspec(dllexport) int InsertMsg(String^ myTable);<br />
&nbsp; &nbsp; &nbsp; &nbsp; };<br />
}</pre><br />
myApp.cpp:<br />
 <pre style="margin:20px; line-height:13px">#include &quot;myApp.h&quot;<br />
#include &lt;stdexcept&gt;<br />
#using &quot;system.dll&quot;<br />
#include &lt;string&gt;<br />
using namespace std;<br />
using namespace System;<br />
<br />
namespace myAppClass<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; int myApp::InsertMsg(String^ myTable)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (myTable == &quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; throw new invalid_argument(&quot;Table name cannot be blank!&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum8.html">C++</category>
			<dc:creator>rciprogrammer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread241088.html</guid>
		</item>
	</channel>
</rss>
