<?xml version="1.0" encoding="utf-8" ?><?xml-stylesheet type="text/xsl" href="http://www.daniweb.com/js/rss.xsl"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community
								</title>
		<link>http://www.daniweb.com/</link>
		<description>Online discussion community for IT professionals and enthusiasts. Technology publication meets social media.</description>
		<language>en-US</language>
		<ttl>60</ttl>
		<!-- PubSubHubbub Discovery -->
		<link rel="hub" href="http://daniweb.superfeedr.com/" xmlns="http://www.w3.org/2005/Atom" />
		<link rel="self" href="http://www.daniweb.com/rss/pull" xmlns="http://www.w3.org/2005/Atom" />
		<!-- End Of PubSubHubbub Discovery -->
				<item>
			<title>Can&#039;t figure out error</title>
			<link>http://www.daniweb.com/software-development/pascal-and-delphi/threads/455313/cant-figure-out-error</link>
			<pubDate>Sun, 26 May 2013 02:11:15 +0000</pubDate>
			<description>Hey guys... I keep getting an error(Error 26: Type Mismatch) in line 19(Until num='';) and I don't know how to fix it... Can you guys please assist me.....Thanks.... program sequence; uses wincrt; var num,count_zero,count_non_zero:integer; Begin count_non_zero:=0; Repeat writeln('Enter a number'); readln(num); IF num=0 then count_zero:=count_zero+1 Else count_non_zero:=count_non_zero+1; writeln('Non Zero Count: ...</description>
			<content:encoded><![CDATA[ <p>Hey guys... I keep getting an error(Error 26: Type Mismatch) in line 19(Until num='';) and I don't know how to fix it... Can you guys please assist me.....Thanks....</p>

<p>program sequence;</p>

<p>uses wincrt;</p>

<p>var  num,count_zero,count_non_zero:integer;</p>

<p>Begin</p>

<pre><code> count_non_zero:=0;
 Repeat
 writeln('Enter a number');
 readln(num);
 IF num=0 then
    count_zero:=count_zero+1
 Else
     count_non_zero:=count_non_zero+1;
 writeln('Non Zero Count: ',count_non_zero);
 writeln('Zero count: ',count_zero);
 Until num='';
</code></pre>

<p>End.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/pascal-and-delphi/124">Pascal and Delphi</category>
			<dc:creator>HelpWanted2115</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/pascal-and-delphi/threads/455313/cant-figure-out-error</guid>
		</item>
				<item>
			<title>Question for this Code.!!</title>
			<link>http://www.daniweb.com/software-development/java/threads/455312/question-for-this-code</link>
			<pubDate>Sun, 26 May 2013 02:04:15 +0000</pubDate>
			<description>Would someone please helpe me out and tell me where i'm missing up with this code.? I want the result(output) in order to be table of row and column. but i was trying and trying but i couldn't. import java.util.Scanner; public class MultiTable { public static void main(String[] args) { ...</description>
			<content:encoded><![CDATA[ <p>Would someone please helpe me out and tell me where i'm missing up with this code.? I want the result(output) in order to be table of row and column. but i was trying and trying but i couldn't.</p>

<pre><code class="language-java">import java.util.Scanner;

public class MultiTable {

public static void main(String[] args) {

    Scanner input = new Scanner(System.in); // here the program will start.

    int num = -1;
    while(num &lt;=0 || num &gt; 10){   // while loop and collecting numbers between 1 and 10.
    System.out.print("Enter an integer between 1 and 10:");

    num = input.nextInt();
   }
    System.out.println();

    for(int i = 1; i&lt;=num; i++)

    System.out.println("\t"+ i);
    System.out.println("\n");

    for(int row=1; row&lt;=num; row++){
    System.out.println(row + "\t");

    for(int tab=1; tab &lt; row; tab++)
    System.out.println("\t");

    for(int col=row; col&lt;=num; col++){
    System.out.println(row*col + "\t");

    }  //end inter for loop

        System.out.println();

    } //end outer for loop
 }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>Nomas11</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455312/question-for-this-code</guid>
		</item>
				<item>
			<title>dvd drives gives hard time loading discs.</title>
			<link>http://www.daniweb.com/hardware-and-software/threads/455311/dvd-drives-gives-hard-time-loading-discs</link>
			<pubDate>Sun, 26 May 2013 01:13:18 +0000</pubDate>
			<description>hi i ended up posting in here a while ago about the same problem i think but i cant remember. anyway my dvd drive is giving me a hard time loading any discs that will go in the drive. i try and burn dvds and it will only let me ...</description>
			<content:encoded><![CDATA[ <p>hi i ended up posting in here a while ago about the same problem i think but i cant remember. anyway my dvd drive is giving me a hard time loading any discs that will go in the drive. i try and burn dvds and it will only let me burn 1 dvd a day. 2 if i'm lucky. i tried cleaning the disc with a disc cleaner but it still does the same thing. i thought it was a bad drive but the only symptom i have is that i put it in and it starts to make the sound that its going to load but it sometimes doesn't load. the drives not loud or noisy. it registers with the computer and it shows i have a d drive. but i don't know whats wrong with it. i don't really have money to take it anywhere to get it fixed and looked at.</p>

<pre><code>                               would the drive do that if the software of the drive needed to be updated? how can you tell the drive would need to be updated or how would you even diagnose a software problem with the dvd drive? thank you in advanced to anyone that responds and helps. the laptop i have is a toshiba satellite L355(not sure if that helps either but ill give you that too). thank you.
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/1">Hardware and Software</category>
			<dc:creator>blaze420711</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/threads/455311/dvd-drives-gives-hard-time-loading-discs</guid>
		</item>
				<item>
			<title>Gui Help</title>
			<link>http://www.daniweb.com/software-development/python/threads/455310/gui-help</link>
			<pubDate>Sat, 25 May 2013 22:55:19 +0000</pubDate>
			<description>I am wondering on how to make a very simple gui with the ability for the user to click a button and perform the ability as if it were a user input. (ie raw_input). I would also like it to have the title of the program (game) on top and ...</description>
			<content:encoded><![CDATA[ <p>I am wondering on how to make a very simple gui with the ability for the user to click a button and perform the ability as if it were a user input. (ie raw_input). I would also like it to have the title of the program (game) on top and the ability to exit.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>Jacklittle01</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455310/gui-help</guid>
		</item>
				<item>
			<title>Help with code please :(</title>
			<link>http://www.daniweb.com/web-development/threads/455309/help-with-code-please-</link>
			<pubDate>Sat, 25 May 2013 22:54:49 +0000</pubDate>
			<description>SO friends... i had a fight with this code.. please help :( &lt;? ob_start(); ?&gt; &lt;?php // Make sure an ID was passed if(isset($_GET['id'])) { // Get the ID $id = intval($_GET['id']); // Make sure the ID is in fact a valid ID if($id &lt;= 0) { die('The ID is ...</description>
			<content:encoded><![CDATA[ <p>SO friends... i had a fight with this code.. please help :(</p>

<pre><code>&lt;? ob_start(); ?&gt;
&lt;?php

// Make sure an ID was passed
if(isset($_GET['id'])) {
// Get the ID
    $id = intval($_GET['id']);

    // Make sure the ID is in fact a valid ID
    if($id &lt;= 0) {
        die('The ID is invalid!');
    }
    else {
        // Connect to the database
        $dbLink = new mysqli('xxxxx', 'xxxx', 'xxxxx', 'xxxxx');
        if(mysqli_connect_errno()) {
            die("MySQL connection failed: ". mysqli_connect_error());
        }

        // Fetch the file information
        $query = "
            SELECT `mime`, `name`, `size`, `data`
            FROM `file`
            WHERE `id` = {$id}";
        $result = $dbLink-&gt;query($query);

        if($result) {
            // Make sure the result is valid
            if($result-&gt;num_rows == 1) {
            // Get the row
                $row = mysqli_fetch_assoc($result);

                // Print headers

                header("Location: ". $row['mime']);
                header("Location: ". $row['size']);
                header("Location: attachment; filename= ". $row['name']);


                // Print data
                echo $row['data'];
            }
            else {
                echo 'Error! No image exists with that ID.';
            }

            // Free the mysqli resources
            @mysqli_free_result($result);
        }
        else {
            echo "Error! Query failed: &lt;pre&gt;{$dbLink-&gt;error}&lt;/pre&gt;";
        }
        @mysqli_close($dbLink);
    }
}
else {
    echo 'Error! No ID was passed.';
}

?&gt;
&lt;? ob_flush(); ?&gt;



And the error..

Warning: Cannot modify header information - headers already sent by (output started at /home/topname/public_html/d/get_file.php:3) in /home/topname/public_html/d/get_file.php on line 34
</code></pre>

<p>Warning: Cannot modify header information - headers already sent by (output started at /home/topname/public_html/d/get_file.php:3) in /home/topname/public_html/d/get_file.php on line 35</p>

<p>Warning: Cannot modify header information - headers already sent by (output started at /home/topname/public_html/d/get_file.php:3) in /home/topname/public_html/d/get_file.php on line 36</p>

<p>What can i do?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/31">Web Development</category>
			<dc:creator>hades.edy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/threads/455309/help-with-code-please-</guid>
		</item>
				<item>
			<title>Why get Endorse</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455308/why-get-endorse</link>
			<pubDate>Sat, 25 May 2013 22:23:39 +0000</pubDate>
			<description>I went for an interveiw yesterday. and in my cv i had a link to my endorsment page. To my supreise i pass, all the others had better cv than me but i pass. I had something all of them didn't have endorsment from people i did not know and ...</description>
			<content:encoded><![CDATA[ <p>I went for an interveiw yesterday. and in my cv i had a link to my endorsment page. To my supreise i pass, all the others had better cv than me but i pass. I had something all of them didn't have endorsment from people i did not know and who were not in the county. Thank daniweb for this move i love it and please endorse me!!! hahaha.<br />
How do you get endorsment by the way.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/daniweb-community-feedback/26">DaniWeb Community Feedback</category>
			<dc:creator>otengkwaku</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455308/why-get-endorse</guid>
		</item>
				<item>
			<title>What&#039;s your favourite IDE</title>
			<link>http://www.daniweb.com/web-development/php/threads/455307/whats-your-favourite-ide</link>
			<pubDate>Sat, 25 May 2013 21:36:34 +0000</pubDate>
			<description>Hey guys, Just thought I'd throw this question out there out of curiousity. I've been through a few IDEs, to be honest I was rolling with notepad for the longest part, now I'm a hardcore sublime fan. I don't think I've ever used anything so streamlined. It just blows all ...</description>
			<content:encoded><![CDATA[ <p>Hey guys,</p>

<p>Just thought I'd throw this question out there out of curiousity.</p>

<p>I've been through a few IDEs, to be honest I was rolling with notepad for the longest part, now I'm a hardcore sublime fan. I don't think I've ever used anything so streamlined. It just blows all the other IDEs out of the water.</p>

<p>I'm also rolling with sqleo for a comprehensive drag and drop free query builder. What are you using?</p>

<p>What are you using and why?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>iamthwee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455307/whats-your-favourite-ide</guid>
		</item>
				<item>
			<title>.htaccess File</title>
			<link>http://www.daniweb.com/web-development/php/threads/455306/.htaccess-file</link>
			<pubDate>Sat, 25 May 2013 20:45:05 +0000</pubDate>
			<description>Hello Guys, I have tried to find an ultimate solution to my problem but I had no luck. Basically I am asking if someone would kindly do a .htaccess file for me that Rewrites like this: 1) If the url has www. remove it. 2) When the user access any ...</description>
			<content:encoded><![CDATA[ <p>Hello Guys,<br />
I have tried to find an ultimate solution to my problem but I had no luck.<br />
Basically I am asking if someone would kindly do a .htaccess file for me that Rewrites like this:</p>

<p>1) If the url has www. remove it.<br />
2) When the user access any URL (mydomain.com/one/two/three) the URL would be:<br />
index.php?site=one&amp;var2=two&amp;var3=three and so it would still works with $GET_['']; (If $GET_['var3']; is used then three would be the value of it)<br />
3) Also so it would work for the current folder only. (Does not affect child folders)</p>

<p>Is it possible for someone to do a .htaccess file for me which would work in this way?<br />
Thank you.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>donoskaro</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455306/.htaccess-file</guid>
		</item>
				<item>
			<title>php form submision stores value in the database and prints invoice same tim</title>
			<link>http://www.daniweb.com/web-development/php/threads/455305/php-form-submision-stores-value-in-the-database-and-prints-invoice-same-tim</link>
			<pubDate>Sat, 25 May 2013 20:07:09 +0000</pubDate>
			<description>hi can any one share some possible way to print an invoice when some thing is registered in a form using PHP and redirects it to html page for printing my form is ok and stores data.... redirects to the disered page as well now i have html lay out ...</description>
			<content:encoded><![CDATA[ <p>hi<br />
can any one share some possible way to print an invoice when some thing is registered in a form using PHP and redirects it to html page for printing</p>

<p>my form is ok and stores data.... redirects to the disered page as well now i have html lay out which needs to be filled in with the values stored or being posted .... OOP project how should i manage that the values that are being stored in the form should be visible on the page after redirection ..... I DONT KNOW AJAX at the moment</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>kakalahori</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455305/php-form-submision-stores-value-in-the-database-and-prints-invoice-same-tim</guid>
		</item>
				<item>
			<title>network programming</title>
			<link>http://www.daniweb.com/software-development/c/threads/455304/network-programming</link>
			<pubDate>Sat, 25 May 2013 19:40:34 +0000</pubDate>
			<description>i want to write a sever application.my sever have some service to client. some of the answer of my server is long(transfer file) and some of them is short(list of online client). when server transferring file to a client , other client request to get online client list. i want ...</description>
			<content:encoded><![CDATA[ <p>i want to write a sever application.my sever have some service to client. some of the answer of my server is long(transfer file) and some of them is short(list of online client).<br />
when server transferring file to a client , other client request to get online client list. i want first job pause and answer the second then return first job.</p>

<p>and my server code is below:<br />
what should i do?!</p>

<pre><code class="language-c">int runServer(char* pathDir, int portNum)
{
    int tcp_socket,maxSelect,activity,newSocket;
    struct sockaddr_in server_addr;
    int server_addr_length;

    tcp_socket = socket(AF_INET,SOCK_STREAM,0); // IPV4 , TCP , IP
    if ( tcp_socket==-1 )
    {
        char handle_error[] = "socket not created so application terminate, please run again.";
        write(1,handle_error,strlen(handle_error));
        return -1;
    }
    int opt=TRUE;
    if(setsockopt(tcp_socket,SOL_SOCKET,SO_REUSEADDR,(char*)&amp;opt,sizeof(opt))&lt;0)
    {
        char handle_error ="ERROR: problem in set socket option occurred\n";
        write(1,handle_error,strlen(handle_error));
    }
    server_addr.sin_family = AF_INET;                // family address ipv4
    server_addr.sin_port= htons(portNum);                    // port number
    server_addr.sin_addr.s_addr = INADDR_ANY;        // recieve message from all address

    int mybind = bind(tcp_socket,(struct  sockaddr*)&amp;server_addr,sizeof(server_addr));
    if(mybind==-1)
    {
        char handle_error[] = " ERROR in binding\n";
        write(1,handle_error,strlen(handle_error));
        return 0;
    }
    listen(tcp_socket,MAX_USER);
    while(TRUE)
    {
        FD_ZERO(&amp;readfd);//clear the socket set
        FD_SET(tcp_socket,&amp;readfd);//add socket
        maxSelect=tcp_socket;

        // add child socket
        int k;
        for(k=0;k&lt;MAX_USER;k++)
        {

            if(clientList[k].isThere==1)
            {
                FD_SET(clientList[k].userIdNumber,&amp;readfd);
                if(clientList[k].userIdNumber&gt;maxSelect)
                    maxSelect=clientList[k].userIdNumber;
            }
        }
        activity= select(maxSelect+1,&amp;readfd,NULL,NULL,NULL);

        if(FD_ISSET(tcp_socket,&amp;readfd))                                //request for connecting
        {
            function that answer conection request;
        }
        int y;
        for(y=0;y&lt;MAX_USER;y++)
        {
            find who request and answer to him
        }
    }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>ferizhandi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455304/network-programming</guid>
		</item>
				<item>
			<title>expandable input control</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/455303/expandable-input-control</link>
			<pubDate>Sat, 25 May 2013 19:07:59 +0000</pubDate>
			<description>I have a page in which users are an employee of a charity. They can / should enter information about their organization including phone numbers. It occurs to me that some organizations may have dozens or even hundreds of phone numbers. I do NOT want to have to place that ...</description>
			<content:encoded><![CDATA[ <p>I have a page in which users are an employee of a charity. They can / should enter information about their organization including phone numbers. It occurs to me that some organizations may have dozens or even hundreds of phone numbers. I do NOT want to have to place that many <code>&lt;input&gt;</code> tags on the page since most users will never need them. I thought it would be nice if there were some sort of input device that can be expanded as needed like a spreadsheet.<br />
If there is no such control, I want one. I want it very similar to an <code>&lt;input type=text&gt;</code> control because I want to limit the length of the user's input and even the content, if possible. Also, the cells need to be named as they are created so the server can know they exist and can extract their value.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/web-design-html-and-css/15">Web Design, HTML and CSS</category>
			<dc:creator>ffej2ffej</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/455303/expandable-input-control</guid>
		</item>
				<item>
			<title>Multiple Chat Programming</title>
			<link>http://www.daniweb.com/software-development/c/threads/455302/multiple-chat-programming</link>
			<pubDate>Sat, 25 May 2013 18:27:36 +0000</pubDate>
			<description>Hello everyone. I have to connect to a running server on another host [COMPLETED]. Then, I have to perform a webchat with any chosen single client in the server and I have some questions about that. I am able to connect to any chosen client in the server, I am ...</description>
			<content:encoded><![CDATA[ <p>Hello everyone. I have to connect to a running server on another host [COMPLETED]. Then, I have to perform a webchat with any chosen single client in the server and I have some questions about that. I am able to connect to any chosen client in the server, I am able to send my messages through and receive something back. However,</p>

<p>Problems faced: The messages I receive and sent are not what is expected to be. For instance, I sent "Hello" to the receiver and he receives jibberish codes. When the receiver replies to me, I only receive his username in his reply but not his message.</p>

<p>I hope that made sense. I really need help to solve this problem.. Here are my necessary codes for this issue:</p>

<p>`      #define MAX_MSG_LEN    1200 /* max size of any msg */</p>

<pre><code class="language-c">   struct UDP{ /*to perform chat*/
       char username[16];
       char msg[100];
       unsigned long userIP;
       unsigned short portnumber;
  } UDPchatee;    


  /************** UDP variables *************/
  int UDP_socketID;
  struct sockaddr_in serverAddr; //server details!
  struct RegMsg *RegMessage; //registration message sent to server
  int size = sizeof(serverAddr); //size of serverAddr
  RegRespMsg_t RespMessage; //this is the response message received from server after UDP connection
  struct in_addr userIP;
  /****************************************/


  /* variables used in both protocols */
  int i; //the for-loop counter
  int check; //this variable store the return values of sendto and receive functions to make sure
  transmission is correct


  /************ UDP variables for chat *****************/
  char username[14];
  int userfound; //flag that is set to 1 when user name type in exists
  char message_sent[MAX_MSG_LEN];
  int len; //message length
  int UDP_socket;
  struct sockaddr_in chateeAddr; //address of user you want to chat to
  struct UDP *UdpChat;
  int sizec = sizeof(chateeAddr);
  char prompt[10]; //user response when asked to continue chatting
  /*********************************************


  //* UDP Chat */

    //get the user name and IP you want to talk to
    for (i=0; i &lt; 16; i++)
      username[i]= '\0';
    printf("\nPlease type user name you want to talk to: ");
    fgets(username, MAX_MSG_LEN, stdin);
    strcpy(UDPchatee.username, username);
    UDPchatee.username[strlen(UDPchatee.username)-1] = '\0'; //remove the '\n' character

    userfound=-1;
    for(i = 0; i&lt; ntohl(RespMessage.nusers); i++)
     {
        if(strcmp(UDPchatee.username, RespMessage.user[i].username) == 0)
        {
            UDPchatee.userIP = RespMessage.user[i].ipAddr;
            UDPchatee.portnumber = RespMessage.user[i].udpPort;
            userfound = i;
        }
    }


    if(userfound == -1){
        printf("The username does not exist! Try again.\n\n");
        continue;
    }


    //(1) Get a UDP socket //
    UDP_socket = socket(AF_INET, SOCK_DGRAM, 0);
    char msg[100], b1[100];


    //(2) Store the information of server inside the chateeAddr structure,
    bzero((char *)&amp;chateeAddr,sizeof(chateeAddr));
    chateeAddr.sin_family = AF_INET;
    chateeAddr.sin_port = UDPchatee.portnumber; //get port number
    chateeAddr.sin_addr.s_addr = UDPchatee.userIP; //get ip address
    memset(chateeAddr.sin_zero, '\0', sizeof chateeAddr.sin_zero);

    while(1)
        {
                //get message you want to send
        printf("\nEnter a line of text as your message: ");
                fgets(msg,MAX_MSG_LEN,stdin);
        strcpy(UDPchatee.msg, msg);
                check = sendto(UDP_socket,UdpChat,sizeof(UDPchatee),0,(struct sockaddr *)&amp;chateeAddr,sizec);
        if (check == -1)
          printf("Sending is in error!\n\n");
                check = recvfrom(UDP_socket,b1,sizeof(b1),0,(struct sockaddr *)&amp;chateeAddr,&amp;sizec);
        if (check == -1)
          printf("Receiving is in error\n");
                printf("\nReply: %s",b1);
        }`
</code></pre>

<p>I guess my main problem area is the last part where I'm not too sure what are the proper struct to input in the sendto() and recvfrom(). I hope it made sense! Thank you in advanced! :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>broccoli</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455302/multiple-chat-programming</guid>
		</item>
				<item>
			<title>Printing from a JSON string</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455301/printing-from-a-json-string</link>
			<pubDate>Sat, 25 May 2013 18:23:28 +0000</pubDate>
			<description>I am having problems accessing what for me is a complex JSON object. I successfully interrogated the Open Weather API and received a good response. What I am not accessing, and don’t know how to, is the individual items of the weather portion of the list group while in a ...</description>
			<content:encoded><![CDATA[ <p>I am having problems accessing what for me is a complex JSON object.<br />
I successfully interrogated the Open Weather API and received a good response.<br />
What I am not accessing, and don’t know how to, is the individual items of the weather portion of  the list group while in a for loop.<br />
When printed the values are undefined.<br />
Thanks for any help!<br />
The Response from the open weather API</p>

<pre><code class="language-js">{
   "timestamp":1369498755320,
   "data":{
      "cod":"200",
      "message":0.0372,
      "city":{
         "id":5037649,
         "name":"Minneapolis",
         "coord":{
            "lon":-93.26384,
            "lat":44.979969
         },
         "country":"US",
         "population":382578
      },
      "cnt":10,
      "list":[
         {
            "dt":1369504800,
            "temp":{
               "day":291.59,
               "min":285.95,
               "max":291.59,
               "night":285.95,
               "eve":289.25,
               "morn":288.86
            },
            "pressure":1004.12,
            "humidity":62,
            "weather":[
               {
                  "id":800,
                  "main":"Clear",
                  "description":"sky is clear",
                  "icon":"01d"
               }
            ],
            "speed":7.27,
            "deg":154,
            "clouds":32
         },
         {
            "dt":1369591200,
            "temp":{
               "day":286.26,
               "min":285.08,
               "max":287.6,
               "night":285.8,
               "eve":286.83,
               "morn":285.08
            },
            "pressure":1001.63,
            "humidity":71,
            "weather":[
               {
                  "id":501,
                  "main":"Rain",
                  "description":"moderate rain",
                  "icon":"10d"
               }
            ],
            "speed":8.11,
            "deg":131,
            "clouds":92,
            "rain":3.5
         },
         ....
      ]
   }
}

In trying to print to the browser I use the following to access the weather section but this does not wok and gives me a value of undefined.


//Turn JSON string into a javaScript object
 weatherOutPut = JSON.parse(weather);

 $('#baker').append('weather.id = ' + weatherOutPut.data.list[i].weather.id + '&lt;br /&gt;');
 $('#baker').append('weather.main = ' + weatherOutPut.data.list[i].weather.main + '&lt;br /&gt;');
 $('#baker').append('weather.description = ' + weatherOutPut.data.list[i].weather.description + '&lt;br /&gt;');
 $('#baker').append('weather.icon = ' + weatherOutPut.data.list[i].weather.icon + '&lt;br /&gt;'); 

 //This returns undefined.
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>rouse</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455301/printing-from-a-json-string</guid>
		</item>
				<item>
			<title>How to add button to class?</title>
			<link>http://www.daniweb.com/software-development/python/threads/455300/how-to-add-button-to-class</link>
			<pubDate>Sat, 25 May 2013 17:41:47 +0000</pubDate>
			<description>I'm using cs1graphics module. I'm like really stuck as to what do next. What I'm attempting to do is create a handler that counts the number of clicks on the canvas and when the exit button is clicked it exits the canvas. I originally added the exit canvas outside of ...</description>
			<content:encoded><![CDATA[ <p>I'm using cs1graphics module. I'm like really stuck as to what do next. What I'm attempting to do is create a handler that counts the number of clicks on the canvas and when the exit button is clicked it exits the canvas. I originally added the exit canvas outside of the class before I realized that my class had no attribute to the exit button so I added the exit button in the class but it doesnt come out, nor does my program count the clicks. I've read countlessly on the topic of event handling and I am seriously just stuck. I really don't need anyone to do it for me, I just need to understand what it is that I'm doing wrong. Its driving me crazy!</p>

<pre><code class="language-py">from cs1graphics import*
class MouseHandler(EventHandler):
    def __init__ (self, textObj):
        EventHandler.__init__(self)
        self._text = textObj
        self._count = 0
        self._text.setMessage(str(self._count))

    def handle(self, event):
        if event.getDescription() == 'mouse click':
            self._counter &gt;= 1
            self._text.setMessage(str(self._count))




class ExitButtonHandler(EventHandler):
    def __init__(self, message='', centerPt=None):
        EventHandler.__init__(self)
        self._exitButton=Rectangle(60, 30)
        self._exitButton.setFillColor('grey')
        self._message='Exit'
        self.centerPt=Point(600,555)



    def handle(self, event):

        if event.getDescription() == 'mouse click':
            if event.getTrigger()in self._exitButton:
                exit()


def main():
    paper=Canvas(700, 600, 'white', 'Number of clicks')



    text1=Text('Times clicked:', 12, Point(140, 550))
    paper.add(text1)




    text2=Text('', 12, Point(300, 550))
    paper.add(text2)
    counter=MouseHandler(text2)
    paper.addHandler(counter)


    exitEvent = ExitButtonHandler()
    paper.addHandler(exitEvent)



main()
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>dp121307</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455300/how-to-add-button-to-class</guid>
		</item>
				<item>
			<title>Virus</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/threads/455298/virus</link>
			<pubDate>Sat, 25 May 2013 16:39:10 +0000</pubDate>
			<description>My pc was rinning slow so i scanned with malewarebytes. I found these viruses and deleted them but each time i use the computer they re-appear again . Trojan Facebook Trojan Agent</description>
			<content:encoded><![CDATA[ <p>My pc was rinning slow so i scanned with malewarebytes. I found these viruses and deleted them but each time i use the computer they re-appear again .</p>

<p>Trojan Facebook<br />
Trojan Agent</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/99">Microsoft Windows</category>
			<dc:creator>desmondo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/threads/455298/virus</guid>
		</item>
				<item>
			<title>simple calculation using stack  </title>
			<link>http://www.daniweb.com/software-development/java/threads/455297/simple-calculation-using-stack-</link>
			<pubDate>Sat, 25 May 2013 15:37:41 +0000</pubDate>
			<description>hi, I'm trying to write simple culaction programe using stack .. the GUI is simple one textField and one textBox for the outbut and one button this is what I wrote in the button I tried the first operation &quot;-&quot; and it work but I got stuck doing the other ...</description>
			<content:encoded><![CDATA[ <p>hi,<br />
I'm trying to write simple culaction programe using stack .. the GUI is simple one textField and one textBox for the outbut and one button<br />
this is what I wrote in the button I tried the first operation "-" and it work but I got stuck doing the other operations</p>

<pre><code class="language-java">  String input = txtInput.getText();
        Stack stack = new Stack();
        int temp = 0;


        Scanner sc = new Scanner(input);
        while (sc.hasNext()) {

            String token = sc.next();

            if (token.matches("-?\\d*")) {
                if (token.matches("\\d*")) {
                    int num = Integer.parseInt(token);
                    stack.push(num);

                } else if (token.matches("-?")) {
                    int num1 = (int) stack.pop();
                    int num2 = (int) stack.pop();
                    int total = num2 - num1;
                    temp = total; 
                    stack.push(total);
                    txtOutput.append(stack.peek() + "\n");
                } else if (token.matches("+?")) {

                } else if (token.matches("*?")) {
                } else if (token.matches("/?")) {
                }
            }
        }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>sk8ergirl</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455297/simple-calculation-using-stack-</guid>
		</item>
				<item>
			<title>opinions about a blog</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455296/opinions-about-a-blog</link>
			<pubDate>Sat, 25 May 2013 15:36:18 +0000</pubDate>
			<description>one of my good friends wrote [this](http://developertimes.wordpress.com/) blog here. he asked me for an opinion , however , i havent used linux much... only used centOS for about a semester in college for a networking course. i was hoping the members here could give some opinions about the blog. thanks ...</description>
			<content:encoded><![CDATA[ <p>one of my good friends wrote <a href="http://developertimes.wordpress.com/" rel="nofollow">this</a> blog here. he asked me for an opinion , however , i havent used linux much... only used centOS for about a semester in college for a networking course. i was hoping the members here could give some opinions about the blog.</p>

<p>thanks a lot :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>somjit{}</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455296/opinions-about-a-blog</guid>
		</item>
				<item>
			<title>form input field targeting</title>
			<link>http://www.daniweb.com/web-development/php/threads/455295/form-input-field-targeting</link>
			<pubDate>Sat, 25 May 2013 15:00:49 +0000</pubDate>
			<description>My software is using the following function to build the input field for in this case... input field name is Title: &lt;label for=&quot;Title&quot;&lt;/label&gt; &lt;?php ItemForm::title_input();?&gt; I do not know where it come from among the hundreds of files. All I want is to target this fields to set a maxlength. ...</description>
			<content:encoded><![CDATA[ <p>My software is using the following function to build the input field for in this case... input field name is Title:</p>

<pre><code>&lt;label for="Title"&lt;/label&gt;
&lt;?php ItemForm::title_input();?&gt;
</code></pre>

<p>I do not know where it come from among the hundreds of files. All I want is to target this fields to set a maxlength. Is this possible?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mjsmitten</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455295/form-input-field-targeting</guid>
		</item>
				<item>
			<title>php validate address</title>
			<link>http://www.daniweb.com/web-development/php/threads/455294/php-validate-address</link>
			<pubDate>Sat, 25 May 2013 14:48:38 +0000</pubDate>
			<description>Hi every one i want to validate postal address I require the text field should contains Alphabets in Upper and lower case, numbers, hyphen, fullstops forward and back slash and commas and spaces in it currently i am using this fucntion but its not getting me the same thing which ...</description>
			<content:encoded><![CDATA[ <p>Hi every one i want to validate postal address<br />
I require the text field should contains Alphabets in Upper and lower case, numbers, hyphen, fullstops forward and back slash and commas and spaces in it</p>

<p>currently i am using this fucntion but its not getting me the same thing which i require can anyone help me in this</p>

<pre><code>if(eregi("[0-9]+\s(\w)*(\W)(\s?)(\w)*(\W)(#[0-9])?(\W*)(\w)*(\W)(\s?)(\w)*(\s?)(\w)*", $address)) {

    $valid_address = $address;      


} else {
    $error_address = 'Street address must be valid';
}  
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>hallianonline</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455294/php-validate-address</guid>
		</item>
				<item>
			<title>How to make backlinks for my site please help</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455293/how-to-make-backlinks-for-my-site-please-help</link>
			<pubDate>Sat, 25 May 2013 14:30:02 +0000</pubDate>
			<description>i dont know how to increase back links for my site www.allgeektips.com its alexa backlink is 1 and not increasing can any body help me</description>
			<content:encoded><![CDATA[ <p>i dont know how to increase back links for my site www.allgeektips.com its alexa backlink is 1 and not increasing can any body help me</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>moneebyammu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455293/how-to-make-backlinks-for-my-site-please-help</guid>
		</item>
				<item>
			<title>Replacing groupbox automatically in foreach loop</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455292/replacing-groupbox-automatically-in-foreach-loop</link>
			<pubDate>Sat, 25 May 2013 14:25:53 +0000</pubDate>
			<description>Is it possible to iterate using foreach loop on multiple groupBox. I have 6 GroupBox named as gBox1,gBox2,gBox3,gBox4,gBox5,gBox6 AND each gBox contain 21 ComboBox named as slot1,slot2,slot3,slot4,slot5.... so on out of which I want to select only 7 comboBoxes for operation. For eaxmple if user enter 2 in textbox then ...</description>
			<content:encoded><![CDATA[ <p>Is it possible to iterate using foreach loop on multiple groupBox.</p>

<p>I have 6 GroupBox named as gBox1,gBox2,gBox3,gBox4,gBox5,gBox6 AND each gBox contain 21 ComboBox named as slot1,slot2,slot3,slot4,slot5.... so on out of which I want to select only 7 comboBoxes for operation.<br />
For eaxmple if user enter 2 in textbox then from gBox1-&gt;cb15,slot1,slot2,slot3,slot4,slot5,slot6,slot7 and from gBox2-&gt;slot8,slot9,slot10,slot11,slot12,slot13 text of all comboBox should be stored in a string array.</p>

<p>Now problem is I am able to Iterate on ComboBox like this</p>

<pre><code class="language-cs">    if (no_of_period == 2)
    {
      if (duration == 1)
      {
        foreach (var comboBox in gBox2.Controls.OfType&lt;ComboBox&gt;().OrderBy(m =&gt; m.Name))
        {
          if (comboBox.Name.Substring(0, 4).Equals("slot"))
          {
             comboBox.Text = i.ToString("HH:mm");
          }
        }
        i = i.AddMinutes(60);
        foreach (var comboBox in gBox3.Controls.OfType&lt;ComboBox&gt;().OrderBy(m =&gt; m.Name))
        {
          if (comboBox.Name.Substring(0, 4).Equals("slot"))
          {
              comboBox.Text = i.ToString("HH:mm");
          }
        }
     }
</code></pre>

<p>Now I have to write this code for all 6 gBox is there any way to automatically gBox should change... Something like this- NOT CORRECT CODE</p>

<pre><code class="language-cs">     foreach (var sgrpBox in batch_creation.ActiveForm.Controls.OfType&lt;GroupBox&gt;().OrderBy(g =&gt; g.Name))
     {
         string gname = null;
         if (sgrpBox.Name.Substring(0, 4).Equals("gBox"))
         {
              gname = sgrpBox.Name.Substring(0, 4) + G;
             foreach (var comboBox in ganme.Controls.OfType&lt;ComboBox&gt;().OrderBy(m =&gt; m.Name))
             {.......
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>vishalonne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455292/replacing-groupbox-automatically-in-foreach-loop</guid>
		</item>
				<item>
			<title>rewrite url words</title>
			<link>http://www.daniweb.com/web-development/php/threads/455291/rewrite-url-words</link>
			<pubDate>Sat, 25 May 2013 13:56:15 +0000</pubDate>
			<description>My url's look like this //classifieds/search/region,something/ I want it to rewrite to //classifieds/state/something/ note: If i look at the url in the browser the words after &quot;classifieds&quot; are greyed. my .htacces has this: &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ...</description>
			<content:encoded><![CDATA[ <p>My url's look like this //classifieds/search/region,something/</p>

<p>I want it to rewrite to //classifieds/state/something/</p>

<p>note: If i look at the url in the browser the words after "classifieds" are greyed.</p>

<p>my .htacces has this:</p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On    
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
&lt;/IfModule&gt;
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mjsmitten</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455291/rewrite-url-words</guid>
		</item>
				<item>
			<title>Linked list algorithm using nodes. How do you add new nodes to the list?</title>
			<link>http://www.daniweb.com/software-development/java/threads/455290/linked-list-algorithm-using-nodes.-how-do-you-add-new-nodes-to-the-list</link>
			<pubDate>Sat, 25 May 2013 13:01:52 +0000</pubDate>
			<description>How do you create a node with fullName and studentID in the &quot;add&quot; method and then put them into the correct positions which the name_first and name_second should move until the name in the name_first is larger than the new_Name and name_second is smaller than the new_Name? public class NodeDemo{ ...</description>
			<content:encoded><![CDATA[ <p>How do you create a node with fullName and studentID in the "add" method and then put them into the correct positions which the name_first and name_second should move until the name in the name_first is larger than the new_Name and name_second is smaller than the new_Name?</p>

<pre><code class="language-java">public class NodeDemo{
        private String fullName;
        private int studentID;
        private NodeDemo fullNameLink;
        private NodeDemo studentIDLink;

        public NodeDemo(String newName, int newStudentID, NodeDemo newFullNameLink, NodeDemo newStudentIDLink){
            fullName = newName;
            studentID = newStudentID;
            fullNameLink = newFullNameLink;
            studentIDLink = newStudentIDLink;
        }

        private static NodeDemo startPosition;

        public void add(String new_Name, int newStudentID){
            NodeDemo name_First = startPosition.fullNameLink;
            NodeDemo name_Second = startPosition;
            NodeDemo studentId_First = startPosition.studentIDLink;
            NodeDemo studentId_Second = startPosition;

            NodeDemo node = new NodeDemo(new_Name, newStudentID, null, null);

        }
    }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>boiishuvo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455290/linked-list-algorithm-using-nodes.-how-do-you-add-new-nodes-to-the-list</guid>
		</item>
				<item>
			<title>Responsive framework?</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/455287/responsive-framework</link>
			<pubDate>Sat, 25 May 2013 12:07:33 +0000</pubDate>
			<description>Can anyone recommend good framework?</description>
			<content:encoded><![CDATA[ <p>Can anyone recommend good framework?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/web-design-html-and-css/15">Web Design, HTML and CSS</category>
			<dc:creator>jonny22</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/455287/responsive-framework</guid>
		</item>
				<item>
			<title>Twitter Two-Factor Warnings</title>
			<link>http://www.daniweb.com/internet-marketing/social-media-and-communities/news/455286/twitter-two-factor-warnings</link>
			<pubDate>Sat, 25 May 2013 11:35:05 +0000</pubDate>
			<description>The news that, following a number of pretty high-profile password compromise cases, Twitter is adopting a two-factor authentication for account access is to be welcomed. 2FA, as it is known, applies the better security concept of something you know combined with something you own into the access equation. The thing ...</description>
			<content:encoded><![CDATA[ <p>The news that, following a number of pretty high-profile password compromise cases, Twitter is adopting a two-factor authentication for account access is to be welcomed. 2FA, as it is known, applies the better security concept of something you know combined with something you own into the access equation. The thing you know is your password, and the thing you own is your mobile phone.</p>

<p>Here's how it works, once 2FA has been enabled and you try to log into Twitter from a 'new' device a code will be sent by SMS to the mobile phone which you have registered with the service when setting up the two-factor security. This code has to be entered for access from the device to be granted, even if you have the correct password. Without the one, the other will fail. Twitter follows the likes of Dropbox, Facebook, Gmail and  iCloud in making 2FA available in order to protect users from the compromised password threat.</p>

<p>However, one security expert warns that 2FA is not a security panacea. David Emm, Senior Security Researcher at Kaspersky Lab, agrees that two-factor authentication will make it harder for accounts to be hijacked but points out that there are still some potential pitfalls with the new approach.</p>

<p>"Twitter’s use of two-factor authentication should be welcomed with open arms. Two- factor authentication makes it difficult for someone to hijack an account, by adding another method of validation. To-date a static password has been the only thing securing Twitter accounts, and all to often these are easy to guess" Emm says, continuing "It’s easy to see why Twitter has chosen to use SMS as the second authentication method. Nearly everyone today has a mobile phone, so this method doesn’t require people to carry around an extra token or device that generates the one-time passcode. Additionally, the cost of rolling out this technology is miniscule in comparison to investing in tokens and shipping them to its customers."</p>

<p>And now for the inevitable 'however' that follows all that:</p>

<p>“However, there are some potential pitfalls with using SMS as an authentication method. Many people log into their Twitter account from their smartphone via the Twitter app which doesn’t require login credentials to be entered each time" Emm stated, adding "this means that the same device is being used for both authentication factors and if this device is lost or stolen, whoever finds (or has stolen) it will be able to access the account. Therefore, in effect, there is no longer two-factor authentication."</p>

<p>We should also bear in mind that it's entirely possible that we will see the development of smartphone-based malware that is specifically designed to steal the SMS authentication code. This is also something that Emm warns users about, noting that Kaspersky has already seen similar malware designed to steal mTAN numbers for banking transactions.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/social-media-and-communities/50">Social Media and Communities</category>
			<dc:creator>happygeek</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/social-media-and-communities/news/455286/twitter-two-factor-warnings</guid>
		</item>
				<item>
			<title>Multiple C++ Arrays Within Each Other</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455285/multiple-c-arrays-within-each-other</link>
			<pubDate>Sat, 25 May 2013 11:20:43 +0000</pubDate>
			<description>What would be the best way to initialize a Multiple array (1,2,3) within an array (1,2,3) within an array(1,2,3)?</description>
			<content:encoded><![CDATA[ <p>What would be the best way to initialize a Multiple array (1,2,3) within an array (1,2,3) within an array(1,2,3)?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Lee Stone</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455285/multiple-c-arrays-within-each-other</guid>
		</item>
				<item>
			<title>How to sum two column</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455284/how-to-sum-two-column</link>
			<pubDate>Sat, 25 May 2013 09:48:55 +0000</pubDate>
			<description>I choose a program that can read data from a txt file. Now, I input two column from txt file and i want to substract first value of 2nd column to every value of 2nd column. finally I want the sum of substracted values. Can anyone please help me. Actually, ...</description>
			<content:encoded><![CDATA[ <p>I choose a program that can read data from a txt file. Now, I input two column from txt file and i want to substract first value of 2nd column to every value of 2nd column. finally I want the sum of substracted values. Can anyone please help me. Actually, i did like substract(1)+substract(2)+substract(3)+.........substract(n). But these becomes so long and mistaken can happened. So, I want a shot rules like    h= sum(test[i]-test[0]).</p>

<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;fstream&gt;
#include&lt;string&gt;
#include&lt;cstdlib&gt;
#include&lt;cmath&gt;
#include&lt;iomanip&gt;
#include &lt;windows.h&gt;

using namespace std;
//void calculateAverage();
//int calculateGrade();
//void updateFrequency();
int main()
{
    const int size=25;
    int debug=size;
    double test1[size], test2[size],h;
    ifstream infile;
    for(int i=0;i&lt;size;i++)
    {
        test1[i]=0;
        test2[i]=0;
    }
    cout&lt;&lt;"Reading from file ''input.txt''..."&lt;&lt;endl;
    infile.open("input.txt");
    while(size==debug)
    {
        for(int i=0;i&lt;size;i++)
        {
            infile&gt;&gt;test1[i];
            infile&gt;&gt;test2[i];
        }
        debug--;
    }
    for(int i=0;i&lt;size;i++)
    {
        h=(test[i]-test[0]);
        cout&lt;&lt;test1[i]&lt;&lt;" "&lt;&lt;test2[i]&lt;&lt;" "&lt;&lt; h &lt;&lt;" "&lt;&lt;endl;
    }
    infile.close();
    system("pause");
    return 0;
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>siddiquedu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455284/how-to-sum-two-column</guid>
		</item>
				<item>
			<title>about BCNF</title>
			<link>http://www.daniweb.com/web-development/databases/threads/455283/about-bcnf</link>
			<pubDate>Sat, 25 May 2013 08:40:54 +0000</pubDate>
			<description>For each of the following sets of functional dependencies on a schema r(A, B, C, D, E) AB --&gt; C, D --&gt; E, B --&gt; E A --&gt; CD, B --&gt; DE AB --&gt; C, C --&gt; D For each of the above set of functional dependencies, decompose relation r ...</description>
			<content:encoded><![CDATA[ <p>For each of the following sets of functional dependencies on a schema r(A, B, C, D, E)</p>

<p>AB --&gt; C, D --&gt; E, B --&gt; E<br />
A --&gt; CD, B --&gt; DE<br />
AB --&gt; C, C --&gt; D</p>

<p>For each of the above set of functional dependencies, decompose relation r into BCNF</p>

<p>how to decompose r into BCNF of above relation r?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/16">Databases</category>
			<dc:creator>jalpesh_007</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/threads/455283/about-bcnf</guid>
		</item>
				<item>
			<title>File Streaming- Basics</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455281/file-streaming-basics</link>
			<pubDate>Sat, 25 May 2013 07:18:54 +0000</pubDate>
			<description>**Create a class Employee with name, Id and salary as data members. Provide appropriate constructors, set, get and display methods in the class. In the main program, use a do-while loop to enter data for employees as long as the user desires and save all data to a file. Once ...</description>
			<content:encoded><![CDATA[ <p><strong>Create a class Employee with name, Id and salary as data members. Provide appropriate<br />
constructors, set, get and display methods in the class.<br />
In the main program, use a do-while loop to enter data for employees as long as the user<br />
desires and save all data to a file.<br />
Once the user is done with data entry, read the data for employees from the file and<br />
display the information of each employee.</strong></p>

<pre><code class="language-cpp">// Lab_13_A.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include&lt;iostream&gt;
#include&lt;conio.h&gt;
#include&lt;string&gt;
#include&lt;fstream&gt;
using namespace std;

class emp
{
private:
    int id,sal;
    string name;
public:
    emp (int i=0,int sa=0,string s=""){id=i;sal=sa;name=s;}
    void set(int i=0,int sa=0,string s=""){id=i;sal=sa;name=s;}
    string getname(){return name;}
    int getid(){return id;}
    int getsal(){return sal;}
    void display()
    {
        cout&lt;&lt;"\nName: "&lt;&lt;name&lt;&lt;endl;
        cout&lt;&lt;"\nID: "&lt;&lt;id&lt;&lt;endl;
        cout&lt;&lt;"\nSalary: "&lt;&lt;sal&lt;&lt;endl;
    }
};


int _tmain(int argc, _TCHAR* argv[])
{
    int i,s;
    string n;
    char ch;
    ofstream inf("abc.txt");
    emp e;
    do
    {
        cout&lt;&lt;"Enter Name: ";
        cin&gt;&gt;n;
        cout&lt;&lt;"Enter ID: ";
        cin&gt;&gt;i;
        cout&lt;&lt;"Enter Salary: ";
        cin&gt;&gt;s;
        e.set(i,s,n);
        inf.write(reinterpret_cast&lt;char *&gt;(&amp;e),sizeof(e));
        inf.close();
        cout&lt;&lt;"\nWant to add more: ";
        cin&gt;&gt;ch;
    }while(ch!='n');

    ifstream outf("abc.txt");
    while(!outf.eof())
    {
        outf.read(reinterpret_cast&lt;char *&gt;(&amp;e),sizeof(e));
        e.display();
    }
    outf.close();

    getch();
}
</code></pre>

<p>The output is wrong.<br />
 When I Input more than one record, It shows just the first record in output.<br />
 Secondly It shows the same record 2 times, in the output.<br />
 Please Help people.<br />
 I have ( OOP/C++ ) semester exam in a week and I am very weak in file handling.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>aslam.junaid786</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455281/file-streaming-basics</guid>
		</item>
				<item>
			<title>PR 3 Dofollow Web Directory</title>
			<link>http://www.daniweb.com/internet-marketing/threads/455280/pr-3-dofollow-web-directory</link>
			<pubDate>Sat, 25 May 2013 06:44:28 +0000</pubDate>
			<description>I want to share a PR3 Dofollow web directory with you guys. Click here =&gt; [Internet Web Directory](http://www.find-on-google.com)</description>
			<content:encoded><![CDATA[ <p>I want to share a PR3 Dofollow web directory with you guys.</p>

<p>Click here =&gt; <a href="http://www.find-on-google.com" rel="nofollow">Internet Web Directory</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/25">Internet Marketing</category>
			<dc:creator>kim85</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/threads/455280/pr-3-dofollow-web-directory</guid>
		</item>
				<item>
			<title>ageing report in php</title>
			<link>http://www.daniweb.com/web-development/php/threads/455279/ageing-report-in-php</link>
			<pubDate>Sat, 25 May 2013 05:11:54 +0000</pubDate>
			<description>hi I tried to generate ageing reports in php. But I could not get result and even error. it is my code. Pls help me connection.inc.php try { $hostname = &quot;server&quot;; //host $dbname = &quot;database&quot;; //db name $username = &quot;user&quot;; // username like 'sa' $pw = &quot;password&quot;; // password for ...</description>
			<content:encoded><![CDATA[ <p>hi<br />
I tried to generate ageing reports in php. But I could not get result and even error.<br />
it is my code. Pls help me</p>

<p>connection.inc.php</p>

<pre><code>  try {
        $hostname = "server";            //host
        $dbname = "database";            //db name
        $username = "user";            // username like 'sa'
        $pw = "password";                // password for the user
        $dbh = new PDO ("mssql:host=$hostname;dbname=$dbname","$username","$pw");
    } 

  catch (PDOException $e) 
    {
        echo "Not found " . $e-&gt;getMessage() . "\n";
        file_put_contents('PDOErrors.txt', $e-&gt;getMessage(), FILE_APPEND);
        exit;
    }
</code></pre>

<p>index.php</p>

<pre><code>&lt;?php

include_once '../inc/connection.inc.php';
include 'searchform.html.php';
?&gt;
&lt;?php

/*

if (isset($_POST['datefrom']) &amp;&amp; $_POST['datefrom']  != "" )
    {

       $datefrom = $_POST["datefrom"];

       $stmt = $dbh-&gt;query("SELECT Code,Name,
              SUM(CASE WHEN DocDate &gt;= '$datefrom' - 30 THEN Balance ELSE 0 END) AS d30, 
              SUM(CASE WHEN DocDate BETWEEN '$datefrom' - 60 AND '$datefrom' - 31  THEN Balance ELSE 0 END) AS d60, 
              SUM(CASE WHEN DocDate &lt; '$datefrom' - 60 THEN Balance ELSE 0 END) AS above61,
              SUM(Balance) AS total_outstanding FROM AgeingReport GROUP BY Code");  

      $stmt-&gt;setFetchMode(PDO::FETCH_ASSOC);           
    }
    include 'view.html.php';
    exit();
*/
?&gt;

&lt;?php

if (isset($_POST['datefrom']) &amp;&amp; $_POST['datefrom']  != "" )
    {

    $datefrom = $_POST["datefrom"];

    $stmt=$dbh-&gt;prepare(" SELECT Code, Name, DATEDIFF('$datefrom', DocDate) AS days_past_due,
                        SUM(IF(days_past_due = 0, Balance, 0) As curent),
                        SUM(IF(days_past_due BETWEEN 1 AND 30, Balance, 0) As d30),
                        SUM(IF(days_past_due BETWEEN 31 AND 60, Balance, 0) As d60),
                        SUM(IF(days_past_due BETWEEN 61 AND 90, Balance, 0) As d90),
                        SUM(IF(days_past_due &gt; 90, Balance, 0) As d90above)
                        FROM AgeingReport GROUP BY Code");

    $stmt-&gt;setFetchMode(PDO::FETCH_ASSOC);  
  }
    include 'view.html.php';
    exit();

?&gt;
</code></pre>

<p>searchform.html.php</p>

<pre><code>&lt;?php
include '../templete/header.php';
?&gt;
&lt;div&gt;
&lt;h6&gt;Ageing Report&lt;/h6&gt;
&lt;/div&gt;

&lt;form action="" method="post"&gt;
&lt;table class="tdtable" id="tdtable"&gt;

  &lt;tr&gt;
    &lt;td&gt;As on:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" id="datepicker1" name="datefrom" /&gt;&lt;/td&gt;
  &lt;/tr&gt;

&lt;/table&gt;
&lt;div&gt;
    &lt;input type="submit" value="Search"&gt;
&lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>view.html.php</p>

<pre><code>&lt;?php //include '../templete/header.php'; ?&gt;


&lt;table width="100%" align="center" cellpadding="4" cellspacing="1" class=tbl_table"&gt;
  &lt;tr&gt;
    &lt;td class="tbl_header"&gt;MV CODE&lt;/td&gt;
    &lt;td class="tbl_header"&gt;MV NAME&lt;/td&gt;
    &lt;td class="tbl_header"&gt;Current&lt;/td&gt;
    &lt;td class="tbl_header"&gt;30-days&lt;/td&gt;
    &lt;td class="tbl_header"&gt;60-days&lt;/td&gt;
    &lt;td class="tbl_header"&gt;90-days&lt;/td&gt;
    &lt;td class="tbl_header"&gt;90-days above&lt;/td&gt;


  &lt;/tr&gt;
        &lt;?php 
          if(isset($stmt))
            { 
                while($row = $stmt-&gt;fetch())
            {?&gt;
    &lt;tr&gt;
      &lt;td class="tbl_content"&gt;&lt;?php echo $row['Code'];?&gt;&lt;/td&gt;
      &lt;td class="tbl_content"&gt;&lt;?php echo $row['Name'];?&gt;&lt;/td&gt;
      &lt;td class="tbl_content"&gt;&lt;?php echo $row['SONo'];?&gt;&lt;/td&gt;
      &lt;td class="tbl_content_right"&gt;&lt;?php echo number_format(current,2) ;?&gt;&lt;/td&gt;
      &lt;td class="tbl_content_right"&gt;&lt;?php echo number_format(d30,2) ;?&gt;&lt;/td&gt;
      &lt;td class="tbl_content_right"&gt;&lt;?php echo number_format(d60,2) ;?&gt;&lt;/td&gt;
      &lt;td class="tbl_content_right"&gt;&lt;?php echo number_format(d90,2) ;?&gt;&lt;/td&gt;
      &lt;td class="tbl_content_right"&gt;&lt;?php echo number_format(d90above,2) ;?&gt;&lt;/td&gt;

    &lt;/tr&gt;

    &lt;?php 

    }}?&gt; 




&lt;tr&gt;&lt;td colspan="9"&gt;&lt;hr /&gt;&lt;/tr&gt;

&lt;tr&gt;
&lt;/tr&gt;
&lt;/table&gt;


&lt;?php unset($dbh); unset($stmt); ?&gt;

&lt;?php
include '../templete/footer.php';
?&gt;
</code></pre>

<p>Pls help me</p>

<p>Maideen</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Maideen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455279/ageing-report-in-php</guid>
		</item>
				<item>
			<title>BIOS password</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455278/bios-password</link>
			<pubDate>Sat, 25 May 2013 04:45:28 +0000</pubDate>
			<description>hi i have forgotten my BIOS password ( I am using aspire 4730z and windows 7 32 bit) i tried D:\&gt;cmos&gt;windows&gt;ioperm.exe -i OpenSCManager function call failed. Error: ioperm.sys installation failed. how to fix this error there is any other way to remove BIOS password thanks for your time</description>
			<content:encoded><![CDATA[ <p>hi<br />
i have forgotten my BIOS password ( I am using aspire 4730z and windows 7 32 bit)</p>

<p>i tried<br />
D:&gt;cmos&gt;windows&gt;ioperm.exe -i</p>

<p>OpenSCManager function call failed.<br />
Error: ioperm.sys installation failed.</p>

<p>how to fix this error<br />
there is any other way to remove BIOS password</p>

<p>thanks for your time</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38">Windows Vista and Windows 7 / 8</category>
			<dc:creator>ganges</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455278/bios-password</guid>
		</item>
				<item>
			<title>remote custom server access in PHP</title>
			<link>http://www.daniweb.com/web-development/php/threads/455277/remote-custom-server-access-in-php</link>
			<pubDate>Sat, 25 May 2013 04:13:38 +0000</pubDate>
			<description>I am new to web developing but do code in c++ I wanna develop scenario as: I have a database server that has its own query instruction sets and reply mechanism.. So I want php to connect to this server and execute the queries and get the results out of ...</description>
			<content:encoded><![CDATA[ <p>I am new to web developing but do code in c++</p>

<p>I wanna develop scenario as:<br />
I have a database server that has its own query instruction sets and reply mechanism.. So I want php to connect to this server and execute the queries and get the results out of it.. I appreciate the ODBC layer....but ain't php flexible to support my scenario?.....Please help me out...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>sbibek</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455277/remote-custom-server-access-in-php</guid>
		</item>
				<item>
			<title>How can i auto click on a link after x amount of time?</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455276/how-can-i-auto-click-on-a-link-after-x-amount-of-time</link>
			<pubDate>Sat, 25 May 2013 03:30:21 +0000</pubDate>
			<description>Hello, I want to click the skip ad buttom when the buttom appears, can someone please explain me how this can be done using jquery? Here is the Code &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body style=&quot;margin:0px;padding:0px;&quot;&gt; &lt;iframe src=&quot;http://bc.vc/7VsNj6&quot; style=&quot;width:100%; height:100%; border:none;&quot; id=&quot;frame&quot;&gt; &lt;p&gt;Your browser does not support iframes.&lt;/p&gt; &lt;/iframe&gt; &lt;/body&gt; &lt;/html&gt; Thanks ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I want to click the skip ad buttom when the buttom appears, can someone please explain me how this can be done using jquery?</p>

<p>Here is the Code</p>

<pre><code class="language-js">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body style="margin:0px;padding:0px;"&gt;

&lt;iframe src="<a href="http://bc.vc/7VsNj6" rel="nofollow">http://bc.vc/7VsNj6</a>" style="width:100%; height:100%; border:none;" id="frame"&gt;
  &lt;p&gt;Your browser does not support iframes.&lt;/p&gt;
&lt;/iframe&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Thanks in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>spyece</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455276/how-can-i-auto-click-on-a-link-after-x-amount-of-time</guid>
		</item>
				<item>
			<title>database</title>
			<link>http://www.daniweb.com/software-development/objective-c/threads/455275/database</link>
			<pubDate>Sat, 25 May 2013 03:20:15 +0000</pubDate>
			<description>I had an exam in database. during the tutorials we were instructed to create a query and run it. The exam question only asked to create a query. I did just that n got it wrong. Would u say that a create query question always expects the query to run? ...</description>
			<content:encoded><![CDATA[ <p>I had an exam in database.<br />
during the tutorials we were instructed to create a query and run it.<br />
The exam question only asked to create a query. I did just that n got it wrong.<br />
Would u say that a create query question always expects the query to run?<br />
The other anomoly was Append.<br />
Is it data base language that these words mean to create the action as well as execute them?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/objective-c/34">Objective-C</category>
			<dc:creator>Kimsheron</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/objective-c/threads/455275/database</guid>
		</item>
				<item>
			<title>First AMD based &lt;budget&gt; gaming rig (650$)</title>
			<link>http://www.daniweb.com/hardware-and-software/threads/455274/first-amd-based-budget-gaming-rig-650</link>
			<pubDate>Sat, 25 May 2013 02:40:56 +0000</pubDate>
			<description> I'm planning to make a new budget gaming pc. I saw AMD had better performance at low budget. So this is what I have deciced: HERE IS MY WISHLIST: http://amzn.com/w/IOVE5X6Q4M85 **CPU: AMD FX 6300 GPU: Visiontek Radeon HD 7850 2GB GDDR5 Mobo: Gigabyte GA-970A-D3 RAM: Corsair Vengeance 8GB (2x4) HDD: ...</description>
			<content:encoded><![CDATA[ <p>I'm planning to make a new budget gaming pc. I saw AMD had better performance at low budget.</p>

<p>So this is what I have deciced:<br />
HERE IS MY WISHLIST: <a href="http://amzn.com/w/IOVE5X6Q4M85" rel="nofollow">http://amzn.com/w/IOVE5X6Q4M85</a></p>

<p><strong>CPU: AMD FX 6300<br />
GPU: Visiontek Radeon HD 7850 2GB GDDR5<br />
Mobo: Gigabyte GA-970A-D3<br />
RAM: Corsair Vengeance 8GB (2x4)<br />
HDD: Seagate Barracuda 1TB<br />
PSU: Corsair 600CX<br />
ODD: Samsung SH-224DB/IDDS DVD Burner optical drive<br />
Cab: Cooler Master Elite 310 (OR) Thermaltake V3 Red-Black AMD Gaming edition<br />
Monitor: Viewsonic VX2370SMH-LED 23 inch IPS LED monitor</strong></p>

<p>Q1. How is this configuration?<br />
Q2. How is the monitor? Is it worth the price?<br />
Q3. Will this configuration be future proof for at least 3 years?<br />
Q4. Can it run games like Battlefield 3, NFS Most Wanted 2, Black Ops 2, GTA 4, Mafia 2, Crysis 3 on maximum settings in 1920 x 1080 resolution?<br />
Q5. This rig is costing me about 740$ (with monitor) on amazon and here in INDIA, it costs me like 1000$ (With Monitor). But if I buy it from amazon and send it to my uncle's place in the states, can I reduce the cost? I hope there is no extra charges for amazon in the states. Right?</p>

<p>PS: Please rate this rig out of 100.   Thanks to all!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/1">Hardware and Software</category>
			<dc:creator>nmakes</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/threads/455274/first-amd-based-budget-gaming-rig-650</guid>
		</item>
				<item>
			<title>Hi, I&#039;m Renato </title>
			<link>http://www.daniweb.com/community-center/community-introductions/threads/455272/hi-im-renato-</link>
			<pubDate>Fri, 24 May 2013 22:16:04 +0000</pubDate>
			<description>Hi, I'm Renato. I'm about to graduate with a CS major an would love to create more contacts for the real world. I would love to share more knowledge and get alot from the forum. Let's give our best :)</description>
			<content:encoded><![CDATA[ <p>Hi, I'm Renato.<br />
I'm about to graduate with a CS major an would love to create more contacts for the real world. I would love to share more knowledge and get alot from the forum.<br />
Let's give our best :)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/community-introductions/165">Community Introductions</category>
			<dc:creator>renato_francia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/community-introductions/threads/455272/hi-im-renato-</guid>
		</item>
				<item>
			<title>ARRAY/LIST?</title>
			<link>http://www.daniweb.com/software-development/python/threads/455271/arraylist</link>
			<pubDate>Fri, 24 May 2013 22:00:11 +0000</pubDate>
			<description>in my code (below) im looking to stop using long list of if statements to randomly select a phrase, how would i use an array to accomplish the same task? link to code http://ideone.com/0l8xiI</description>
			<content:encoded><![CDATA[ <p>in my code (below) im looking to stop using long list of if statements to randomly select a phrase, how would i use an array to accomplish the same task?<br />
link to code <a href="http://ideone.com/0l8xiI" rel="nofollow">http://ideone.com/0l8xiI</a></p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>daniel.king.39794</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455271/arraylist</guid>
		</item>
				<item>
			<title>Can PhoneGap actually accelerate my mobile development needs?</title>
			<link>http://www.daniweb.com/software-development/mobile-development/threads/455270/can-phonegap-actually-accelerate-my-mobile-development-needs</link>
			<pubDate>Fri, 24 May 2013 21:34:42 +0000</pubDate>
			<description>Hi, I'm new to mobile development. I recently came across phonegap and i wanted to know if PhoneGap would actually be able to build my mobile apps faster. I'm a PHP developer and i use CI for my development. So is PhoneGap something like CI for mobile app development? I ...</description>
			<content:encoded><![CDATA[ <p>Hi,<br />
I'm new to mobile development. I recently came across phonegap and i wanted to know if PhoneGap would actually be able to build my mobile apps faster. I'm a PHP developer and i use CI for my development. So is PhoneGap something like CI for mobile app development? I wanted to know if the apps built by PhoneGap can only be accessed by a mobile browser or does it open like any other mobile app? Thanks in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/mobile-development/181">Mobile Development</category>
			<dc:creator>unikorndesigns</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/mobile-development/threads/455270/can-phonegap-actually-accelerate-my-mobile-development-needs</guid>
		</item>
				<item>
			<title>append data to memory mapped file in MapViewOfFile</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455269/append-data-to-memory-mapped-file-in-mapviewoffile</link>
			<pubDate>Fri, 24 May 2013 18:49:51 +0000</pubDate>
			<description>Hello guys, I'm using MapViewOfFile to map a file and try to edit its data and save it on the file. The problem I have extra data to the file required to expand its size. So, how to append data to the end of memory mapped file using CreateFileMapping and ...</description>
			<content:encoded><![CDATA[ <p>Hello guys,<br />
I'm using MapViewOfFile to map a file and try to edit its data and save it on the file.<br />
The problem I have extra data to the file required to expand its size.<br />
So, how to append data to the end of memory mapped file using CreateFileMapping and MapViewOfFile?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Rasool Ahmed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455269/append-data-to-memory-mapped-file-in-mapviewoffile</guid>
		</item>
				<item>
			<title>reloading previous page with popstate</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455268/reloading-previous-page-with-popstate</link>
			<pubDate>Fri, 24 May 2013 18:14:49 +0000</pubDate>
			<description>I've gotten this far on setting up popstate() - a totally new thing for me. I have loaded content for each click of the navigation, and pushstate() changes the url. But it doesn't load anything when the back button is pressed. Only when I've pressed the back button enough, that ...</description>
			<content:encoded><![CDATA[ <p>I've gotten this far on setting up popstate() - a totally new thing for me. I have loaded content for each click of the navigation, and pushstate() changes the url.</p>

<p>But it doesn't load anything when the back button is pressed. Only when I've pressed the back button enough, that the url shows the index page again, then it reloads the page.</p>

<p>Here's what I have so far:</p>

<pre><code class="language-js">$("#top_nav li a, #footer_info").on("click", function(e){

                // prevent the a href from doing what it naturally does.
                e.preventDefault();

                // highlight active nav link &amp; turn off others              
                $('.current').attr('class','link1');


                href = $(this).attr("href");

                // page chosen...
                var loadpage = 'inc/'+$(this).attr('name')+'.php';
                var footer = 'inc/footer.php';

                // fade out the main box                
                if(loadpage == "inc/index.php"){

                    $('#main_center_box,.header_content').css({opacity:1}).stop().animate({ opacity: 0 }, 700, function() { /* animation complete */ });
                    $('#starting_point, .places-slideshow,#full-size-background').css({display:"block"}).stop().animate({ opacity: 1 }, 1400, function() { /* animation complete */ });
                    $('#main_center_box').css({zIndex:"-1"});
                    $("#starting_point_link").attr('class','');

                } else {
                    $('#main_center_box,#footer_links').stop().animate({ opacity: 0, zIndex:0 }, 700, function() { 
                        $(this).attr('class','current');

                        // now load the page that matches navigation selected, and fade back in.
                        $('#main_center_box').css({zIndex:1 }).load(loadpage).stop().animate({ opacity: 1}, 700, function() { /* animation complete */ });

                        window.history.pushState('', 'New URL: '+href, href);

                    });
                }
    });




    // researching deeplinking solutions

    function change(state) {
    if(state === null) {
        $("#main_center_box").load('inc/mazenga.php');
    } else {

        $("#main_center_box").load(state.url);
    }
}

$(window).bind("popstate", function(e) {
    change(e.originalEvent.state);
});



(function(original) {
    history.pushState = function(state) {
        change(state);
        return original.apply(this, arguments);
    };
})(history.pushState);
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>turpentyne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455268/reloading-previous-page-with-popstate</guid>
		</item>
				<item>
			<title>Deleting from an array</title>
			<link>http://www.daniweb.com/web-development/php/threads/455267/deleting-from-an-array</link>
			<pubDate>Fri, 24 May 2013 18:09:17 +0000</pubDate>
			<description>I have an array that looks like this: `Array ( [0] =&gt; Array ( [id] =&gt; 2 [name] =&gt; test product1 [description] =&gt; test [quantity] =&gt; 1 [price] =&gt; 188 [status] =&gt; Brand New [category] =&gt; Computer Software [subcategory] =&gt; Music Software [postdate] =&gt; 2013-05-19 [prodimage] =&gt; [user] =&gt; admin ...</description>
			<content:encoded><![CDATA[ <p>I have an array that looks like this:<br /><code>Array ( [0] =&gt; Array ( [id] =&gt; 2 [name] =&gt; test product1 [description] =&gt; test [quantity] =&gt; 1 [price] =&gt; 188 [status] =&gt; Brand New [category] =&gt; Computer Software [subcategory] =&gt; Music Software [postdate] =&gt; 2013-05-19 [prodimage] =&gt; [user] =&gt; admin ) 
[1] =&gt; Array ( [id] =&gt; 2 [name] =&gt; test product1 [description] =&gt; test [quantity] =&gt; 1 [price] =&gt; 188 [status] =&gt; Brand New [category] =&gt; Computer Software [subcategory] =&gt; Music Software [postdate] =&gt; 2013-05-19 [prodimage] =&gt; [user] =&gt; admin )</code><br />
I want to be able to delete an entire row e.g Array[0] which would mean deleting this;<br /><code>Array ( [0] =&gt; Array ( [id] =&gt; 2 [name] =&gt; test product1 [description] =&gt; test [quantity] =&gt; 1 [price] =&gt; 188 [status] =&gt; Brand New [category] =&gt; Computer Software [subcategory] =&gt; Music Software [postdate] =&gt; 2013-05-19 [prodimage] =&gt; [user] =&gt; admin )</code>.<br />
I tried the following:</p>

<pre><code>$delid = $_GET['delid']//the product id of the element on which DELETE link was clicked.
if($delid){
    $contents = count($_SESSION['cartItems']);//$_SESSION['cartItems'] is the array shown above.
    for($i=0; $i &lt; $contents $i++){
        foreach($_SESSION['cartItems'] as $products){
        if($products['id'] == $delid){
            unset($products[$i]);
           }
        }
    }
}
</code></pre>

<p>But it doesn't delete the specified item form the array. Never implemented such a thing before so i'm a bit confused. How do i go about this? thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>dhani09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455267/deleting-from-an-array</guid>
		</item>
				<item>
			<title>Click date link doesn&#039;t work right</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455266/click-date-link-doesnt-work-right</link>
			<pubDate>Fri, 24 May 2013 18:01:07 +0000</pubDate>
			<description>Click the date link should take me directly to the last post of the thread, but it doesn't do that any more.</description>
			<content:encoded><![CDATA[ <p>Click the date link should take me directly to the last post of the thread, but it doesn't do that any more.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/daniweb-community-feedback/26">DaniWeb Community Feedback</category>
			<dc:creator>Ancient Dragon</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455266/click-date-link-doesnt-work-right</guid>
		</item>
				<item>
			<title>Insert functions not working properly?</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455265/insert-functions-not-working-properly</link>
			<pubDate>Fri, 24 May 2013 17:37:00 +0000</pubDate>
			<description>When I use the insert function I can see new data at the front end. But I cannot see the new data in Access. Other times when I close the application and restart, new recorded is not there. If I look in Access application and closed it then open VS2010 ...</description>
			<content:encoded><![CDATA[ <p>When I use the insert function I can see new data at the front end. But I cannot see the new data in Access. Other times when I close the application and restart, new recorded is not there. If I look in Access application and closed it then open VS2010 application new data is not there. What is going on?</p>

<p>this is my code:</p>

<pre><code class="language-cs">usersTableAdapter1.InsertUser(UserNameTextBox.Text.Trim(), PasswordTextBox.Text.Trim());
</code></pre>

<p>userTableAdapter is a tabel adapter insid DataSet.xsd i created insid my windows Application<br />
have this query "InsertUser" with tow paramter</p>

<p>then I try another code but does not work :</p>

<pre><code class="language-cs">                                        OleDbCommand oleDbCMD = new OleDbCommand();
                                        oleDbCMD.CommandText = "INSERT INTO Users([UserName],[Password]) VALUES (@UserName,@Password)";

                                        oleDbCMD.Connection = conn;
                                        oleDbCMD.CommandType = CommandType.Text;

                                        oleDbCMD.Parameters.AddWithValue("@UserName", UserNameTextBox.Text.Trim());
                                        oleDbCMD.Parameters.AddWithValue("@Password", PasswordTextBox.Text.Trim());

                                        OleDbDataAdapter dAdapter = new OleDbDataAdapter();
                                        dAdapter.InsertCommand = oleDbCMD;

                                        oleDbCMD.ExecuteReader();
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>IT_Techno</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455265/insert-functions-not-working-properly</guid>
		</item>
				<item>
			<title>Android: How to not get focus from edit text</title>
			<link>http://www.daniweb.com/software-development/mobile-development/threads/455264/android-how-to-not-get-focus-from-edit-text</link>
			<pubDate>Fri, 24 May 2013 17:33:44 +0000</pubDate>
			<description>Hello, I am creating my app and whenever a page loads it instantly focuses on the edit text. How do i stop this? - Mat</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I am creating my app and whenever a page loads it instantly focuses on the edit text. How do i stop this?</p>

<ul><li>Mat</li>
</ul> ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/mobile-development/181">Mobile Development</category>
			<dc:creator>mat1998x</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/mobile-development/threads/455264/android-how-to-not-get-focus-from-edit-text</guid>
		</item>
				<item>
			<title>C++ language</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455263/c-language</link>
			<pubDate>Fri, 24 May 2013 16:25:49 +0000</pubDate>
			<description>Can we declare objects of type Person, when Person is a class?</description>
			<content:encoded><![CDATA[ <p>Can we declare objects of type Person, when Person is a class?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>nitish.mohiputlall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455263/c-language</guid>
		</item>
				<item>
			<title>Crayon Help</title>
			<link>http://www.daniweb.com/software-development/java/threads/455262/crayon-help</link>
			<pubDate>Fri, 24 May 2013 16:13:05 +0000</pubDate>
			<description>I have to do a project where the imust create a class that draws a crayon and then an applet that draws a box of those crayons. I can get the box to draw, just not the crayons. Help? CLASS import java.awt.*; public class Crayon { private final int BOTTOM ...</description>
			<content:encoded><![CDATA[ <p>I have to do a project where the imust create a class that draws a crayon and then an applet that draws a box of those crayons. I can get the box to draw, just not the crayons. Help?</p>

<p>CLASS</p>

<pre><code class="language-java">import java.awt.*;
public class Crayon
{
    private final int BOTTOM = 150;
    private final int WIDTH = 25;
    private Color color;
    private int length, location;
    //----------------------------------------------------------------------------------------------
    //  Crayon's characteristics.
    //----------------------------------------------------------------------------------------------
    public Crayon (Color color, int length, int position)
    {
        color = color;
        length = length;
        location = position;
    }
    //----------------------------------------------------------------------------------------------
    //  Draws crayon.
    //----------------------------------------------------------------------------------------------
    public void draw (Graphics page)
    {
        System.out.println();
        page.setColor (color);
        page.fillRect (location, BOTTOM - length, WIDTH, length);
    }
}
</code></pre>

<p>APPLET</p>

<pre><code class="language-java">import java.awt.*;
import java.applet.*;
public class BoxOfCrayons extends Applet
{
    private final int APPLET_WIDTH = 350;
    private final int APPLET_HEIGHT = 300;
    Crayon c1 = new Crayon (Color.cyan, 100, 50);
    Crayon c2 = new Crayon (Color.blue, 75, 80);
    Crayon c3 = new Crayon (Color.gray, 100, 110);
    Crayon c4 = new Crayon (Color.green, 90, 140);
    Crayon c5 = new Crayon (Color.magenta, 82, 170);
    Crayon c6 = new Crayon (Color.orange, 100, 200);
    Crayon c7 = new Crayon (Color.pink, 70, 230);
    Crayon c8 = new Crayon (Color.red, 100, 260);
    //----------------------------------------------------------------------------------------------
    //  Draws crayon box.
    //----------------------------------------------------------------------------------------------
    public void paint (Graphics page)
    {
        c1.draw (page);
        c2.draw (page);
        c3.draw (page);
        c4.draw (page);
        c5.draw (page);
        c6.draw (page);
        c7.draw (page);
        c8.draw (page);
        page.setColor (Color.yellow);
        page.fillRect (45, 150, 245, 90);
    }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>nicfred</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455262/crayon-help</guid>
		</item>
				<item>
			<title>WORKING ON NOTEPAD</title>
			<link>http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/455261/working-on-notepad</link>
			<pubDate>Fri, 24 May 2013 15:53:42 +0000</pubDate>
			<description>Hi, I WANT TO WRITE/READ DATA IN PARTICULAR COLUMN NO. IN NOTEPAD BY USING VB 6.0. CAN ANYBODY SEND ME THE CODING FOR THAT.</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I WANT TO WRITE/READ DATA IN PARTICULAR COLUMN NO. IN NOTEPAD BY USING VB 6.0.<br />
CAN ANYBODY SEND ME THE CODING FOR THAT.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/visual-basic-4-5-6/4">Visual Basic 4 / 5 / 6</category>
			<dc:creator>rohit.dudhbhate</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/455261/working-on-notepad</guid>
		</item>
				<item>
			<title>Reading text file for specific areas in VB</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455260/reading-text-file-for-specific-areas-in-vb</link>
			<pubDate>Fri, 24 May 2013 15:44:10 +0000</pubDate>
			<description>I'm pretty stumped. I need to read a textfile using Streamreader in VB but not reall every single line I have to look for the line that has a specific character in a specific position to indicate that this is a start point, then read that line and the remaining ...</description>
			<content:encoded><![CDATA[ <p>I'm pretty stumped. I need to read a textfile using Streamreader in VB but not reall every single line<br />
I have to look for the line that has a specific character in a specific position to indicate that this is a start point, then read that line and the remaining lines after until it hits the line with a specific character as a terminator. Then find the next set of lines that match until there are no more lines to read...? Can anyone help? I thought I had it but for some reason the data uploading to the DB wasn't correct :(</p>

<p>(sorry I originally posted this in the wrong area)</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>loso09</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455260/reading-text-file-for-specific-areas-in-vb</guid>
		</item>
				<item>
			<title>Get Values to var in Jquery</title>
			<link>http://www.daniweb.com/web-development/php/threads/455259/get-values-to-var-in-jquery</link>
			<pubDate>Fri, 24 May 2013 15:29:36 +0000</pubDate>
			<description>Hi, I'm creating a mentionInput, a textarea where i can identify people writing &quot;@NAME&quot; (like facebook) I have a this js file where i tell the info of the names i can identify: $(function () { $('textarea.mention').mentionsInput({ onDataRequest:function (mode, query, callback) { var data = [ { id:1, name:'Kenneth Auchenberg', ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I'm creating a mentionInput, a textarea where i can identify people writing "@NAME" (like facebook)</p>

<p>I have a this js file where i tell the info of the names i can identify:</p>

<pre><code>$(function () {

  $('textarea.mention').mentionsInput({
    onDataRequest:function (mode, query, callback) {
      var data = [
        { id:1, name:'Kenneth Auchenberg', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:2, name:'Jon Froda', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:3, name:'Anders Pollas', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:4, name:'Kasper Hulthin', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:5, name:'Andreas Haugstrup', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:6, name:'Pete Lacey', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:7, name:'kenneth@auchenberg.dk', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:8, name:'Pete Awesome Lacey', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' },
        { id:9, name:'Kenneth Hulthin', 'avatar':'<a href="http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif" rel="nofollow">http://cdn0.4dots.com/i/customavatars/avatar7112_1.gif</a>', 'type':'contact' }
      ];

      data = _.filter(data, function(item) { return item.name.toLowerCase().indexOf(query.toLowerCase()) &gt; -1 });

      callback.call(this, data);
    }
  });

  $('.get-syntax-text').click(function() {
    $('textarea.mention').mentionsInput('val', function(text) {
      alert(text);
    });
  });

  $('.get-mentions').click(function() {
    $('textarea.mention').mentionsInput('getMentions', function(data) {
      alert(JSON.stringify(data));
    });
  }) ;

});
</code></pre>

<p>But i want to get those values to my MySQL Table "Artists", how do i do that?</p>

<p>And than i want to insert some of those values in another table!</p>

<p>Can you help me?</p>

<p>Here's the index.php:</p>

<pre><code>&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;jquery.mentionsInput&lt;/title&gt;
  &lt;meta http-equiv="content-type" content="text/html;charset=UTF-8"/&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="chrome=1"&gt;
  &lt;link href='<a href="https://fonts.googleapis.com/css?family=PT+Sans&amp;subset=latin" rel="nofollow">https://fonts.googleapis.com/css?family=PT+Sans&amp;subset=latin</a>' rel='stylesheet' type='text/css'&gt;
  &lt;link href='assets/style.css' rel='stylesheet' type='text/css'&gt;
  &lt;link href='../jquery.mentionsInput.css' rel='stylesheet' type='text/css'&gt;

  &lt;script src='<a href="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" rel="nofollow">https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js</a>' type='text/javascript'&gt;&lt;/script&gt;
  &lt;script src='<a href="http://documentcloud.github.com/underscore/underscore-min.js" rel="nofollow">http://documentcloud.github.com/underscore/underscore-min.js</a>' type='text/javascript'&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;


&lt;div class="examples"&gt;
  &lt;textarea class='mention' placeholder='Try to mention me, by typing @ken'&gt;&lt;/textarea&gt;
&lt;/div&gt;

  &lt;/div&gt;

  &lt;script src='../lib/jquery.events.input.js' type='text/javascript'&gt;&lt;/script&gt;
  &lt;script src='../lib/jquery.elastic.js' type='text/javascript'&gt;&lt;/script&gt;
  &lt;script src='../jquery.mentionsInput.js' type='text/javascript'&gt;&lt;/script&gt;
  &lt;script src='assets/examples.js' type='text/javascript'&gt;&lt;/script&gt;
  &lt;script src='assets/example2.js' type='text/javascript'&gt;&lt;/script&gt;

  &lt;script&gt;!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");&lt;/script&gt;

  &lt;script type="text/javascript"&gt;

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-27763738-1']);
    _gaq.push(['_trackPageview']);

    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? '<a href="https://ssl" rel="nofollow">https://ssl</a>' : '<a href="http://www" rel="nofollow">http://www</a>') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

  &lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Thank you.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>PF2G</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455259/get-values-to-var-in-jquery</guid>
		</item>
				<item>
			<title>how to incorporate &quot;pushstate()&quot;</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455258/how-to-incorporate-pushstate</link>
			<pubDate>Fri, 24 May 2013 15:27:53 +0000</pubDate>
			<description>Hi... I have a simple function for loading php pages into the index.php file. I'm wanting to incorporate pushstate() so I can start making the page crawlable. But not sure how. Here's my starting point (which just gives me &quot;http://www.site.com/undefined&quot; // function for navigation clicks $(&quot;#top_nav li a, #footer_info&quot;).on(&quot;click&quot;, function(e){ ...</description>
			<content:encoded><![CDATA[ <p>Hi...</p>

<p>I have a simple function for loading php pages into the index.php file. I'm wanting to incorporate pushstate() so I can start making the page crawlable. But not sure how.</p>

<p>Here's my starting point (which just gives me "<a href="http://www.site.com/undefined" rel="nofollow">http://www.site.com/undefined</a>"</p>

<pre><code class="language-js">// function for navigation clicks

    $("#top_nav li a, #footer_info").on("click", function(e){

                // prevent the a href from doing what it naturally does.
                e.preventDefault();

                // highlight active nav link &amp; turn off others              
                $('.current').attr('class','link1');



                // which page chosen?
                var loadpage = 'inc/'+$(this).attr('name')+'.php';
                var footer = 'inc/footer.php';



                    $('#main_center_box,#footer_links').stop().animate({ opacity: 0, zIndex:0 }, 700, function() { 
                        $(this).attr('class','current');

                        // now load the page that matches navigation selected
                        $('#main_center_box').css({zIndex:1 }).load(loadpage).stop().animate({ opacity: 1}, 700, function() { /* animation complete */ });
                        $('html,body').scrollTop(0);

                        // not sure how to do this part...
                        href = $(this).attr(loadpage);
                        history.pushState('', 'New URL: '+href, href);
                    });

    });
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>turpentyne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455258/how-to-incorporate-pushstate</guid>
		</item>
				<item>
			<title>Prevent user from typing text in combobox</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455257/prevent-user-from-typing-text-in-combobox</link>
			<pubDate>Fri, 24 May 2013 15:16:55 +0000</pubDate>
			<description>for my combobox i want to prevent user from typing **further text** if the typed text **do not match part** of combobox items i.e from starting Autocomplete mode set to SuggestAppend Autocompletesource set ot Listitems Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress Dim i As ...</description>
			<content:encoded><![CDATA[ <p>for my combobox i want to prevent user from typing <strong>further text</strong> if the typed text <strong>do not match part</strong> of combobox items i.e from starting</p>

<p>Autocomplete mode set to SuggestAppend<br />
Autocompletesource set ot Listitems</p>

<pre><code class="language-vb">  Private Sub ComboBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox1.KeyPress
    Dim i As Integer   
    For i = 0 To ComboBox1.Items.Count - 1
     'required code
     e.Handled = True      
    Next i
    End Sub
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>PM312</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455257/prevent-user-from-typing-text-in-combobox</guid>
		</item>
				<item>
			<title>delete and upload images</title>
			<link>http://www.daniweb.com/web-development/php/threads/455256/delete-and-upload-images</link>
			<pubDate>Fri, 24 May 2013 15:07:32 +0000</pubDate>
			<description>Hallo, i ve made a script that uploads an image in a web site and then show that image (admin site). when i upload the file i rename it with a specific name. The user may delete the image he uploaded. Everything works fine. If he tries to upload another ...</description>
			<content:encoded><![CDATA[ <p>Hallo,</p>

<p>i ve made a script that uploads an image in a web site and then show that image (admin site). when i upload the file i rename it with a specific name. The user may delete the image he uploaded. Everything works fine. If he tries to upload another image (the rename takes place like mentioned) the pictured that shown is the first one!! the one he deleted a few minutes ago.</p>

<p>I used me ftp client to see if the first image deleted and it did. When i upload the second image (the same name as the first) the image appears but it is not the one i just uploaded but the one i ve just deleted.</p>

<p>Obviously is something the server does and i was wondering if i could stop it...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>dourvas</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455256/delete-and-upload-images</guid>
		</item>
				<item>
			<title>How to know on which combo box event fired</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455255/how-to-know-on-which-combo-box-event-fired</link>
			<pubDate>Fri, 24 May 2013 14:48:09 +0000</pubDate>
			<description>I have 84 combo box inside 12 group box, in a group of 12. Combo Box are named as cb1,cb2,cb3,cb4,cb5,cb6,...... Group Box are named as gBox1,gBox2,gBox3,gBox4,gBox5,.... Now I want to save the item name in a variable when I select or change item of any combo box. I know that ...</description>
			<content:encoded><![CDATA[ <p>I have 84 combo box inside 12 group box, in a group of 12. Combo Box are named as cb1,cb2,cb3,cb4,cb5,cb6,...... Group Box are named as gBox1,gBox2,gBox3,gBox4,gBox5,.... Now I want to save the item name in a variable when I select or change item of any combo box. I know that if I use SelectedIndexChanged for each combo box then I can get what I want, I am wondering that is the only way to do.... OR there is any simplified way to achieve the above mentioned purpose.</p>

<p>I welcome any suggestion/advice/guidance.</p>

<p>Regards to all</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>vishalonne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455255/how-to-know-on-which-combo-box-event-fired</guid>
		</item>
				<item>
			<title>Using C language</title>
			<link>http://www.daniweb.com/software-development/c/threads/455254/using-c-language</link>
			<pubDate>Fri, 24 May 2013 14:37:49 +0000</pubDate>
			<description>FUNCTIONS the question is as follows: write a function, ComputeAmount, that takes as input the quantity of an item and the item unit price, and returns the net amount to be paid by customer. my program is working correctly please advise me what i did wrong here are the codes: ...</description>
			<content:encoded><![CDATA[ <p>FUNCTIONS<br />
the question is as follows: write a function, ComputeAmount, that takes as input the quantity of an item and the item unit price, and returns the net amount to be paid by customer.</p>

<p>my program is working correctly please advise me what i did wrong here are the codes:</p>

<pre><code class="language-c">#include&lt;stdio.h&gt;
#include&lt;stdlib.h&gt;
int ComputeAmount(int x, int y);
int main()
{
    int q, amt;


    printf("Enter quatity: ");
    scanf("%d", &amp;q);
    printf("Enter amount: ");
    scanf("%d", &amp;amt);

    system("pause");
    return 1;
}
int ComputeAmount(int x, int y)
{
    int amt, q;
    float netAmount;
    if(amt&lt;=100){
        netAmount=q*amt;
        return("%.2f", netAmount);
        }
        else
        if(amt&lt;=200){
            netAmount=q*(amt*(5/100));
            return("%.2f", netAmount);

        }
        else
        if(amt&lt;=300){
            netAmount=q*(amt*(7.5/100));
            return("%.2f", netAmount);
        }
        if(amt&gt;300){
            netAmount=q*(amt*(15/100));
            return("%.2f", netAmount);
        }
        else
        printf("wrong purchase\n");
    }
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>nitish.mohiputlall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455254/using-c-language</guid>
		</item>
				<item>
			<title>Microsoft Access Query problem</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455253/microsoft-access-query-problem</link>
			<pubDate>Fri, 24 May 2013 14:21:26 +0000</pubDate>
			<description>I am trying to create a form that allows the user to search (Access database) for a record by last name or customer number. It can be a partial last name or customer number. The SQL statement and code are below. This is the same method used successfully for a ...</description>
			<content:encoded><![CDATA[ <p>I am trying to create a form that allows the user to search (Access database) for a record by last name or customer number. It can be a partial last name or customer number.</p>

<p>The SQL statement and code are below. This is the same method used successfully for a SQL Server database, but it is not working with Access. The error message I am receiving is "Argument not specified for parameter 'Customer_Number' of 'Public Overridalbe Overloads Function Fill(dataTable As FindAccountDataSet.CustomerAccountsDataTable, Last_Name As String, Customer_Number As Integer) As Integer".</p>

<p>Can someone explain how to correct?</p>

<p>SELECT        [Customer Number], [Last Name], [First Name], Address, City, State, [ZIP Code], [Telephone Number], [Account Balance], [Date Last Payment]<br />
FROM            CustomerAccounts<br />
WHERE        ([Last Name] LIKE ?) OR ([Customer Number] LIKE ?)</p>

<p>Note: I have tried using the astericks and percentage symbols as well.</p>

<pre><code class="language-vb">    Private Sub btnSearchLastName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearchLastName.Click
        'Search by last name
        Me.CustomerAccountsTableAdapter.Fill(Me.FindAccountDataSet.CustomerAccounts, txtLastName.Text)
    End Sub

    Private Sub btnSearchCustomerNum_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearchCustomerNum.Click
        'Search by customer number
        Me.CustomerAccountsTableAdapter.Fill(Me.FindAccountDataSet.CustomerAccounts, txtAccountNum.Text)
    End Sub
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>SLMQC</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455253/microsoft-access-query-problem</guid>
		</item>
				<item>
			<title>simplify script</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455252/simplify-script</link>
			<pubDate>Fri, 24 May 2013 14:17:08 +0000</pubDate>
			<description>For the sake of learning, I'm just curious how I can simplify these functions? Open to any suggestions... Please forgive all the over-commenting. $(document).ready(function() { // code for random backgorund image on page load $(&quot;#full-size-background&quot;).css(&quot;background-image&quot;, &quot;url(images/backgrounds/&quot; + Math.floor(Math.random()*3) + &quot;.jpg)&quot;); // starting point fade when &quot;menu&quot; clicked $(&quot;#starting_point_link&quot;).on(&quot;click&quot;, function(){ $('#starting_point, ...</description>
			<content:encoded><![CDATA[ <p>For the sake of learning, I'm just curious how I can simplify these functions? Open to any suggestions...<br />
Please forgive all the over-commenting.</p>

<pre><code class="language-js">$(document).ready(function() {

// code for random backgorund image on page load
$("#full-size-background").css("background-image", "url(images/backgrounds/" + Math.floor(Math.random()*3) + ".jpg)");



// starting point fade when "menu" clicked

    $("#starting_point_link").on("click", function(){

            $('#starting_point, .places-slideshow,#full-size-background').stop().animate({ opacity: 0 }, 1400, function() {
                $('#starting_point').css({display:"none"});
                $('#main_center_box').css({zIndex:"1"});
                $('.header_content, #main_center_box').css({display:"block"}).stop().animate({ opacity: 1 }, 800, function() { 

                    //  $(' #main_center_box').load('mazenga.php');

                    $('#main_center_box2').stop().animate({ opacity: 1 }, 700, function() { /* animation complete */ });
                    $('.places-slideshow').stop().animate({ opacity: 1 }, 2100, function() { /* animation complete */ });

                }); 

                $("#starting_point_link").attr('class','visited');
                $("#full-size-background,.header_content").css('opacity','0').css("background-image", "url(images/BG1a.jpg)");
                $('#full-size-background').stop().animate({ opacity: 1 }, 700, function() { /* animation complete */ });
                $('.header_content').stop().animate({ opacity: 1 }, 800, function() { /* animation complete */ });
            });
    });



// function for navigation clicks

    $("#top_nav li a, #footer_info").on("click", function(e){

                // prevent the a href from doing what it naturally does.
                e.preventDefault();

                // highlight active nav link &amp; turn off others              
                $('.current').attr('class','link1');



                // set the hashtag in url
                window.location.hash = $(this).attr('name');

                // which page chosen?
                var loadpage = 'inc/'+$(this).attr('name')+'.php';
                var footer = 'inc/footer.php';

                // fade out the main box    


                if(loadpage == "inc/index.php"){

                    $('#main_center_box,.header_content').css({opacity:1}).stop().animate({ opacity: 0 }, 700, function() { /* animation complete */ });
                    $('#starting_point, .places-slideshow,#full-size-background').css({display:"block"}).stop().animate({ opacity: 1 }, 1400, function() { /* animation complete */ });
                    $('#main_center_box').css({zIndex:"-1"});
                    $("#starting_point_link").attr('class','');

                } else {
                    $('#main_center_box,#footer_links').stop().animate({ opacity: 0, zIndex:0 }, 700, function() { 
                        $(this).attr('class','current');
                        // now load the page that matches navigation selected
                        $('#main_center_box').css({zIndex:1 }).load(loadpage).stop().animate({ opacity: 1}, 700, function() { /* animation complete */ });
                        $('html,body').scrollTop(0);
                    });
                }
    });




$('.slider .slide:eq(0)').addClass('active').fadeIn(200);

$('.slider-nav li a').click(function() {    
    var index = $(this).parent().index('li');

    $('.slider .slide.active').removeClass('active').fadeOut(200, function() { 
            $('.slider .slide:eq(' + index + ')').addClass('active').fadeIn(200);
        });

    return false;
});

$('.slide').click(function() {
    if($(this).hasClass('active')){
        $(this).removeClass('active').fadeOut(200, function() {
            if($(this).is(':last-child')){
                $('.slider .slide:first-child').addClass('active').fadeIn(200);
            }else{
                $(this).next().addClass('active').fadeIn(200);
            }
        });
    } 
}); 





// 'scroll to' code

$('.portfolio_links').live('click', function(){ 
    var whichTag = $(this).attr('id');
    val = whichTag.split("_");
    thisTag = "#position_"+val[1];

    $('html, body').animate({scrollTop: $(thisTag).offset().top - 100}, 2000);

});

}); // document ready ending brackets



// the form label controls

(function($) {
    function toggleLabel() {
        var input = $(this);
        setTimeout(function() {
            var def = input.attr('title');
            if (!input.val() || (input.val() == def)) {
                input.prev('span').css('visibility', '');
                if (def) {
                    var dummy = $('&lt;label&gt;&lt;/label&gt;').text(def).css('visibility','hidden').appendTo('body');
                    input.prev('span').css('margin-left', dummy.width() + 3 + 'px');
                    dummy.remove();
                }
            } else {
                input.prev('span').css('visibility', 'hidden');
            }
        }, 0);
    };

    function resetField() {
        var def = $(this).attr('title');
        if (!$(this).val() || ($(this).val() == def)) {
            $(this).val(def);
            $(this).prev('span').css('visibility', '');
        }
    };

    $('input, textarea').live('keydown', toggleLabel);
    $('input, textarea').live('paste', toggleLabel);
    $('select').live('change', toggleLabel);

    $('input, textarea').live('focusin', function() {
        $(this).prev('span').css('color', '#000');
    });
    $('input, textarea').live('focusout', function() {
        $(this).prev('span').css('color', '#fff');
    });

    $(function() {
        $('input, textarea').each(function() { toggleLabel.call(this); });
    });

})(jQuery);
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>turpentyne</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455252/simplify-script</guid>
		</item>
				<item>
			<title>Message Box appearing at inappropriate time</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455251/message-box-appearing-at-inappropriate-time</link>
			<pubDate>Fri, 24 May 2013 14:10:15 +0000</pubDate>
			<description>I am trying to create a form that allows a user to enter information and saves information to a file. Every item must be complete and the account balance must not be negative or error messages pop up. I have the form working, but when you click on the clear ...</description>
			<content:encoded><![CDATA[ <p>I am trying to create a form that allows a user to enter information and saves information to a file. Every item must be complete and the account balance must not be negative or error messages pop up. I have the form working, but when you click on the clear and reset button, the error message "The file cannot be saved. Please confirm customer information has been entered in all boxes" appears, but it should not. Can someone show me where I'm going wrong and how to correct?</p>

<p>I would also prefer that instead of random Customer Numbers they are sequential, but the method I tried didn't work. Suggestions for that change would also be appreciated.</p>

<pre><code class="language-vb">Imports System.IO
Public Class AddAccountsForm
    Dim strCustomerNumber As Integer    'Customer's number
    Dim strFirstName As String          'Customer's first name
    Dim strLastName As String           'Customer's last name
    Dim strAddress As String            'Customer's address
    Dim strCity As String               'Customer's city of residence
    Dim strState As String              'Customer's state of residence
    Dim strZip As String                'Customer's zip code
    Dim strTeleSphone As String          'Customer telephone number
    Dim intAccountBalance As Integer   'Customer's account balance


    Private Sub CustomerAccountsBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CustomerAccountsBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.CustomerAccountsBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.AllAccountDataSet)
    End Sub

    Private Sub AddAccountsForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.CustomerAccountsBindingSource.AddNew()
        txtLastPaymentDate.Value = Today()
    End Sub

    Private Sub SaveCloseToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveCloseToolStripMenuItem.Click

        Dim Save As New SaveFileDialog()
        Dim CustomerDataFile As StreamWriter


        'Configure Save Record
        Save.Filter = "Access files (*.accdb)|*.accdb|All Files (*.*)|*.*"
        Save.InitialDirectory = "C:\"
        Save.ShowDialog()


        'Get customer information from user
        Try
            CustomerDataFile = System.IO.File.AppendText(Save.FileName)
            CustomerDataFile.WriteLine(txtFirst_Name.Text)
            CustomerDataFile.WriteLine(txtLast_Name.Text)
            CustomerDataFile.WriteLine(txtCustomer_Number.Text)
            CustomerDataFile.WriteLine(txtAddress.Text)
            CustomerDataFile.WriteLine(txtCity.Text)
            CustomerDataFile.WriteLine(txtState.Text)
            CustomerDataFile.WriteLine(txtZIP_Code.Text)
            CustomerDataFile.WriteLine(TxtPhone.Text)
            CustomerDataFile.WriteLine(txtAccount_Balance.Text)
            CustomerDataFile.WriteLine(txtLastPaymentDate.Text)
            CustomerDataFile.Flush()
        Catch ex As Exception
            'Error message
            MessageBox.Show("The file cannot be saved. Please confirm customer information has been entered in all boxes ")
        End Try


        Try
            Me.CustomerAccountsBindingSource.EndEdit()
            Me.CustomerAccountsTableAdapter.Update(AllAccountDataSet.CustomerAccounts)
            Me.Close()
        Catch ex As Exception
            MessageBox.Show("Error saving the new customer account.")
        End Try

    End Sub

    Private Sub SaveWithoutClosingToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveWithoutClosingToolStripMenuItem.Click
        Me.CustomerAccountsBindingSource.CancelEdit()
        Me.Close()
    End Sub

    Private Sub Customer_NumberTextBox_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtCustomer_Number.TextChanged
        'Assign account number
        Dim intNum As Integer
        Dim rand As New Random
        intNum = rand.Next(1000)
        txtCustomer_Number.Text = intNum
    End Sub

    Private Sub txtAccount_Balance_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAccount_Balance.TextChanged
        Dim intAccountBalance As Integer   'Customer's account balance

        'Get account balance from user
        If Integer.TryParse(txtAccount_Balance.Text, intAccountBalance) Then
            'Validate entry
            If intAccountBalance &gt;= 0 Then
                intAccountBalance = CInt(txtAccount_Balance.Text)
            End If
        Else
            'Error message
            MessageBox.Show("Account balance must be an integer and must not be negative.")
        End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click

        'Prepare form for next extry
        txtFirst_Name.Clear()
        txtLast_Name.Clear()
        txtAddress.Clear()
        txtCity.Clear()
        txtState.Clear()
        txtZIP_Code.Clear()
        TxtPhone.Clear()
        txtAccount_Balance.Clear()
        txtFirst_Name.Focus()
    End Sub
End Class
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>SLMQC</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455251/message-box-appearing-at-inappropriate-time</guid>
		</item>
				<item>
			<title>upon loading , form autosubmits empty fields to database</title>
			<link>http://www.daniweb.com/web-development/php/threads/455250/upon-loading-form-autosubmits-empty-fields-to-database</link>
			<pubDate>Fri, 24 May 2013 13:40:05 +0000</pubDate>
			<description>this is link to code http://jsbin.com/ixupuk/4/edit when my form is loaded into browser OR refreshed, all fields are auto-submitted to mysql database.. i included at the bottom, an if(isset) statement that i couldnt get to work. thanx</description>
			<content:encoded><![CDATA[ <p>this is link to code <a href="http://jsbin.com/ixupuk/4/edit" rel="nofollow">http://jsbin.com/ixupuk/4/edit</a><br />
when my form is loaded into browser OR refreshed, all fields are auto-submitted to mysql database..<br />
i included at the bottom, an if(isset) statement that i couldnt get to work.<br />
thanx</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>amkaos</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455250/upon-loading-form-autosubmits-empty-fields-to-database</guid>
		</item>
				<item>
			<title>Web application run only 2hr daily</title>
			<link>http://www.daniweb.com/web-development/jsp/threads/455248/web-application-run-only-2hr-daily</link>
			<pubDate>Fri, 24 May 2013 13:09:35 +0000</pubDate>
			<description>hi I want to create an application which contain servlet and jsp and also connected with database but i only want that login page will be open from 05:00hr to 10:00 hr before and after nobody able to access/login the page if they do that it reject the request how ...</description>
			<content:encoded><![CDATA[ <p>hi<br />
I want to create an application which contain servlet and jsp and also connected with database<br />
but i only want that login page will be open from 05:00hr to 10:00 hr before and after nobody able to access/login the page<br />
if they do that it reject the request<br />
how it is possible</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/jsp/24">JSP</category>
			<dc:creator>bhallarahul</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/jsp/threads/455248/web-application-run-only-2hr-daily</guid>
		</item>
				<item>
			<title>Using C language</title>
			<link>http://www.daniweb.com/software-development/c/threads/455247/using-c-language</link>
			<pubDate>Fri, 24 May 2013 13:03:14 +0000</pubDate>
			<description>write a program that prompts the user to input a positive integer , if the user enters zero or a negative value for nu, it prompts user to input num again and repets this process untill unser inputs a correct value. it then display the sum of the numbers 1 ...</description>
			<content:encoded><![CDATA[ <p>write a program that prompts the user to input a positive integer , if the user enters zero or a negative value for nu, it prompts user to input num again and repets this process untill unser inputs a correct value. it then display the sum of the numbers 1 to num</p>

<p>i am having difficulties to do the loop on how the program will check whether the entered num is 0 or negative...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>nitish.mohiputlall</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455247/using-c-language</guid>
		</item>
				<item>
			<title>Setup Using Ms Access Database</title>
			<link>http://www.daniweb.com/software-development/csharp/threads/455246/setup-using-ms-access-database</link>
			<pubDate>Fri, 24 May 2013 12:56:41 +0000</pubDate>
			<description> Hi All, I am developing a windows application which uses Ms Access Database. The code is working smoothly in Visual Studio. But, when I create a setup for that project and install it on any machine. I am not able to write data in that datbase. I think its because ...</description>
			<content:encoded><![CDATA[ <pre><code class="language-cs">Hi All,
      I am developing a windows application which uses Ms Access Database. The code is working smoothly in Visual Studio. But, when I create a setup for that project and install it on any machine. I am not able to write data in that datbase. I think its because of limited access permissions. But then I tried to apply access permissions through code. It runs good again on Visual Studio but after installation it shows error." Attempted to perform an unauthorized operation"

Can any one tell me how to solve this.

Thanks In Advance
Victoryy
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/csharp/61">C#</category>
			<dc:creator>Victoryy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/csharp/threads/455246/setup-using-ms-access-database</guid>
		</item>
				<item>
			<title>embedding video on webpage</title>
			<link>http://www.daniweb.com/web-development/php/threads/455245/embedding-video-on-webpage</link>
			<pubDate>Fri, 24 May 2013 12:54:18 +0000</pubDate>
			<description>Good Morning, I'v been combing through the net including many links on this site, trying to get the necessary information to make a video play on my webpage. No Luck I've tried multiple pieces of code to embed the video, but in each case I am faced with either a ...</description>
			<content:encoded><![CDATA[ <p>Good Morning,</p>

<p>I'v been combing through the net including many links on this site, trying to get the necessary information to make a video play on my webpage.  No Luck</p>

<p>I've tried multiple pieces of code to embed the video, but in each case I am faced with either a black screen or a note saying that a plugin is needed or No video with supported mime types found...  But never a functioning playback of the video.</p>

<p>When I click on the link to install the necessary plug in, I get a message that it is an unknown plugin...</p>

<p>What I have is a .wmv</p>

<p>this is the webpage  <a href="http://www.hctubs.com/syllent_vid.php" rel="nofollow">http://www.hctubs.com/syllent_vid.php</a></p>

<p>Here is the code that I currently have in place</p>

<pre><code>&lt;object width="300" height="250" type="video/x-ms-asf" url="video.wmv"
data="/downloads/video/Syllent.wmv" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"&gt;
&lt;param name="url" value="/downloads/video/Syllent.wmv"&gt;
&lt;param name="filename" value="/downloads/video/Syllent.wmv"&gt;
&lt;param name="autostart" value="1"&gt;
&lt;param name="uiMode" value="full"&gt;
&lt;param name="autosize" value="1"&gt;
&lt;param name="playcount" value="1"&gt;
&lt;embed type="application/x-mplayer2" src="/downloads/video/Syllent.wmv" width="300"
height="250" autostart="true" showcontrols="true"
pluginspage="<a href="http://www.microsoft.com/Windows/MediaPlayer/" rel="nofollow">http://www.microsoft.com/Windows/MediaPlayer/</a>"&gt;&lt;/embed&gt;
&lt;/object&gt;
</code></pre>

<p>Any suggestions on making this work or on other alternatives that may be better would be greatly appreciated.</p>

<p>Do I need a different format video?</p>

<p>thanks in advance<br />
Douglas</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>showman13</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455245/embedding-video-on-webpage</guid>
		</item>
				<item>
			<title>Web Scraping .net site</title>
			<link>http://www.daniweb.com/software-development/python/threads/455244/web-scraping-.net-site</link>
			<pubDate>Fri, 24 May 2013 12:54:09 +0000</pubDate>
			<description>Hello, I would like to scrape http://www.cpso.on.ca/publicregister/default.aspx?id=2048. by city. Specifically I have list of city names I would enter on the &quot;form&quot;, hit submit and then collect/ parse all the results (across all pages), and then repeat for each city. I have never had to do a &quot;post&quot; before and ...</description>
			<content:encoded><![CDATA[ <p>Hello,</p>

<p>I would like to scrape <a href="http://www.cpso.on.ca/publicregister/default.aspx?id=2048." rel="nofollow">http://www.cpso.on.ca/publicregister/default.aspx?id=2048.</a>  by city. Specifically I have list of city names I would enter on the  "form", hit submit and then collect/ parse all the results (across all pages), and then repeat for each city. I have never had to do a "post" before and this one is unlike any thing I've ever seen. Not even sure where to begin. Not sure how mechanize would work (or could work) in such a situation.</p>

<p>Thanks for any help.</p>

<p>B</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>Diaphanosoma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455244/web-scraping-.net-site</guid>
		</item>
				<item>
			<title>How can I create 2 forms in java</title>
			<link>http://www.daniweb.com/software-development/java/threads/455243/how-can-i-create-2-forms-in-java</link>
			<pubDate>Fri, 24 May 2013 12:45:34 +0000</pubDate>
			<description>Hi DW Well I'm new in java I'm using Visual Basic the most so now I just decided to cross platforms and start doing java, so there is a project that I'm trying to create in jave (I'm sorry for the namings just in case I don't use the right ...</description>
			<content:encoded><![CDATA[ <p>Hi DW</p>

<p>Well I'm new in java I'm using Visual Basic the most so now I just decided to cross platforms and start doing java, so there is a project that I'm trying to create in jave (I'm sorry for the namings just in case I don't use the right java word it because I'm new and I'm famillier with VB.Net).</p>

<p>What I want is that I want to create 2 (Forms) I don't know whether you also call it forms in java or not but I want to create 2 forms in one project and what I want is that I want the first form to be the one that will be loaded when the program starts and it will wait for a Control Button Click event once this event happens it will then call or load the 2nd form and the 2nd form must set to always onTop and when I close the second form I want the first form not to close. what I also want is to hide the first form by removing it or hiding it icon on a task bar and on the processes and it also must be invisible. In vb.net I wrote it like this:</p>

<pre><code class="language-java">Public Class Form1
    ' Handling the key down and Load the 2nd form
    Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
        If My.Computer.Keyboard.CtrlKeyDown Then
            Form2.Show() ' Loading form2
            Form2.Visible = True ' Making it be visible
        End If
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.Visible = False ' Hiding the form1
        Me.ShowIcon = False ' Hiding the Icon from
        Me.ShowInTaskbar = False ' Hiding the form on taskbar
    End Sub

End Class
</code></pre>

<p>any one who can help me in this please.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>mr hacker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455243/how-can-i-create-2-forms-in-java</guid>
		</item>
				<item>
			<title>Java cmd command</title>
			<link>http://www.daniweb.com/software-development/java/threads/455242/java-cmd-command</link>
			<pubDate>Fri, 24 May 2013 12:39:33 +0000</pubDate>
			<description>I have a Java web application, which executes cmd command to load remote desktop window. Now I want everyone to load the remote resktop window from their pc through that web app. The problem is remote desktop window is loaded in the server NOT from the PC of the person ...</description>
			<content:encoded><![CDATA[ <p>I have a Java web application, which executes cmd command to load remote desktop window. Now I want everyone to load the remote resktop window from their pc through that web app. The problem is remote desktop window is loaded in the server NOT from the PC of the person who accessed the web app.<br />
How do I make the web app to execute the command in the users pc and not in the server.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>manaila</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455242/java-cmd-command</guid>
		</item>
				<item>
			<title>PostqreSQL Duplicate Values WHERE NOT EXISTS</title>
			<link>http://www.daniweb.com/web-development/databases/threads/455241/postqresql-duplicate-values-where-not-exists</link>
			<pubDate>Fri, 24 May 2013 12:09:58 +0000</pubDate>
			<description>I made this code: INSERT into author(authorfirstname1, authorlastname1,authorfirstname2, authorlastname2) select '&quot;.addslashes($_POST['authorfirstname1']).&quot;','&quot;.addslashes($_POST['authorlastname1']).&quot;','&quot;.addslashes($_POST['authorfirstname2']).&quot;','&quot;.addslashes($_POST['authorlastname2']).&quot;' from author where not exists(select authorfirstname1, authorlastname1, authorfirstname2, authorlastname2 from author where author.authorfirstname1='&quot;.addslashes($_POST['authorfirstname1']).&quot;' and author.authorlastname1='&quot;.addslashes($_POST['authorlastname1']).&quot;' and author.authorfirstname2='&quot;.addslashes($_POST['authorfirstname2']).&quot;' and author.authorlastname2='&quot;.addslashes($_POST['authorlastname2']).&quot;' ); The point of this code should be that it checks, if a value allready exists in database and if ...</description>
			<content:encoded><![CDATA[ <p>I made this code:</p>

<pre><code class="language-sql">INSERT into author(authorfirstname1, authorlastname1,authorfirstname2,  authorlastname2) 
    select '".addslashes($_POST['authorfirstname1'])."','".addslashes($_POST['authorlastname1'])."','".addslashes($_POST['authorfirstname2'])."','".addslashes($_POST['authorlastname2'])."'
  from author      
where not exists(select authorfirstname1, authorlastname1, authorfirstname2, authorlastname2 from author 
        where author.authorfirstname1='".addslashes($_POST['authorfirstname1'])."' 
            and author.authorlastname1='".addslashes($_POST['authorlastname1'])."' 
                and author.authorfirstname2='".addslashes($_POST['authorfirstname2'])."' 
                    and author.authorlastname2='".addslashes($_POST['authorlastname2'])."'
                     );
</code></pre>

<p>The point of this code should be that it checks, if a value allready exists in database and if it doesnt, then it enters it.<br />
This '".addslashes($_POST['authorlastname2'])."' represents an input, but could easyly be replaced with '%myentereddata%'</p>

<p>My problem is that it doesnt do anything...doesnt even give error message, its success, but it doesnt enter data if data doesnt exist in db allready and not sure if it stops entering data if data exists.</p>

<p>So I would be thankful if someone could help me to solve the problem with this code or give another example how to do it differently, so that it would work.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/16">Databases</category>
			<dc:creator>nao.chungs</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/threads/455241/postqresql-duplicate-values-where-not-exists</guid>
		</item>
				<item>
			<title>Ensuring that a daily cron keeps executing within a given range of dates</title>
			<link>http://www.daniweb.com/web-development/php/threads/455240/ensuring-that-a-daily-cron-keeps-executing-within-a-given-range-of-dates</link>
			<pubDate>Fri, 24 May 2013 12:05:53 +0000</pubDate>
			<description>Hi, I am working on a code that dispatches airtime depending on a schedule that is specified. Now all works just fine. The only problem is that the code executes only once. To throw more light, here is how it is meant to work; 1. An administrator creates a schedule, ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I am working on a code that dispatches airtime depending on a schedule that is specified. Now all works just fine. The only problem is that the code executes only once.<br />
To throw more light, here is how it is meant to work;<br />
1. An administrator creates a schedule, specifying how frequently they want the airtime to be dispatched [working ok]<br />
2. The cron runs on a daily basis to find which airtime to send</p>

<p>Currently, I have a field called airtime status, whose default value is 0. But after sending the airtime, then the statusis updated to 1.</p>

<p>Now the real challenge is that; if this status is set to 1, it means that the script will not send that airtime again; yet it is supposed to be sent daily.</p>

<p>Any suggestions as to how I can go about this?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>Webville312</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455240/ensuring-that-a-daily-cron-keeps-executing-within-a-given-range-of-dates</guid>
		</item>
				<item>
			<title>columns with div&#039;s</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/455238/columns-with-divs</link>
			<pubDate>Fri, 24 May 2013 11:40:15 +0000</pubDate>
			<description>Hi with the following code i am able to bring 3 Div's in a single row which are surrounded by a parent DIV. Now the problem is separating each div with a vertical line which makes it look like table cells in a single row. This can be done easily ...</description>
			<content:encoded><![CDATA[ <p>Hi with the following code i am able to bring 3 Div's in a single row which are surrounded by a parent DIV. Now the problem is separating each div with a vertical line which makes it look like table cells in a single row. This can be done easily by applying "border-right" on each DIV. But here there is a problem.</p>

<p>In these 3 div's Every div grows(height) independently based on the size of the content. So all the vertical lines should be of the height of the highest Div's height. I mean for example in the 3 div's suppose, first div height is 100px and second div height is 200px and third div height is 50px. Now all the vertical lines separating Div's should be of 200px. So it looks like real cells in a single row. Kindly help me in solving this problem?</p>

<pre><code class="language-xhtml">&lt;div style="border:2px solid red; overflow: hidden;"&gt;
   &lt;div style="width:100px;height:100px;border:2px solid yellow;float:left;"&gt;&lt;/div&gt;
   &lt;div style="width:100px;height:100px;border:2px solid black;float:left"&gt;   &lt;/div&gt;
   &lt;div style="width:100px;height:100px;border:2px solid black;float:left"&gt;   &lt;/div&gt;
 &lt;/div&gt;
</code></pre>

<p>Thanks in advance.</p>

<p>Thanks and Regards,<br />
Muralidhar Yaragalla.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/web-design-html-and-css/15">Web Design, HTML and CSS</category>
			<dc:creator>yaragalla_mural</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/455238/columns-with-divs</guid>
		</item>
				<item>
			<title>PDF edit</title>
			<link>http://www.daniweb.com/web-development/php/threads/455237/pdf-edit</link>
			<pubDate>Fri, 24 May 2013 10:45:36 +0000</pubDate>
			<description> Hello all, this might not be related to php (I don't know which forum I should post this topic) so I thought may be someone could help me out. How to edit pdf file ? Is there any specific software to edit adobe pdf file ? I have tried adobe ...</description>
			<content:encoded><![CDATA[ <p>Hello all,</p>

<p>this might not be related to php (I don't know which forum I should post this topic) so I thought may be someone could help me out.</p>

<p>How to edit pdf file ?  Is there any specific software to edit adobe pdf file ?</p>

<p>I have tried adobe acrobat x yet I do not know how to do it nor how to use the software.</p>

<p>Anyone could help me give any further recommendation?</p>

<p>Thanks.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>davy_yg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455237/pdf-edit</guid>
		</item>
				<item>
			<title>would Penguine 2.0 stop spamming</title>
			<link>http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455236/would-penguine-2.0-stop-spamming</link>
			<pubDate>Fri, 24 May 2013 10:24:12 +0000</pubDate>
			<description>Most of Internet Marketing Company India are running hard to design the best offer to get morr client ensutring them safety from google updates. it seems that they are taking undue advantage of innocense of webowners. Actually, if a wenbsite is promoted genuineely, there is no risk of any uipdate.</description>
			<content:encoded><![CDATA[ <p>Most of Internet Marketing Company India are running hard to design the best offer to get morr client ensutring them safety from google updates. it seems that they are taking undue advantage of innocense of webowners. Actually, if a wenbsite is promoted genuineely, there is no risk of any uipdate.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/search-engine-optimization/45">Search Engine Optimization</category>
			<dc:creator>samyakonline</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/search-engine-optimization/threads/455236/would-penguine-2.0-stop-spamming</guid>
		</item>
				<item>
			<title>Login to direct user type to a different page</title>
			<link>http://www.daniweb.com/web-development/php/threads/455235/login-to-direct-user-type-to-a-different-page</link>
			<pubDate>Fri, 24 May 2013 10:00:58 +0000</pubDate>
			<description>Hi I have some script that I have used for sometime so understand it is out of date code, but it works. I want to amend it so that it also checks a field user_type and on successful login directs each to a differnt page. The code at the moment ...</description>
			<content:encoded><![CDATA[ <p>Hi</p>

<p>I have some script that I have used for sometime so understand it is out of date code, but it works. I want to amend it so that it also checks a field user_type and on successful login directs each to a differnt page. The code at the moment takes username and password from a login page, checks it (code below) and either takes user to a main page if correct or tells them username or password is wrong.</p>

<pre><code>&lt;?php require_once('Connections/Connection1.php'); ?&gt;

&lt;?php
$tbl_name="users"; // Table name 



// Connect to server and select databse.
//mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
//mysql_select_db("$db_name")or die("cannot select DB");
mysql_select_db($database_Connection1, $Connection1);

// username and password sent from form 
$myusername=$_POST['myusername']; 
$mypassword=md5($_POST['mypassword']); 




// To protect MySQL injection (more detail about MySQL injection)
$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);
$myusername = mysql_real_escape_string($myusername);
$mypassword = mysql_real_escape_string($mypassword);

$sql="SELECT * FROM $tbl_name WHERE userid='$myusername' and 

password='$mypassword'";
$result=mysql_query($sql);


// Mysql_num_row is counting table row
$count=mysql_num_rows($result);

// If result matched $myusername and $mypassword, table row must be 1 row

if($count==1){

// Register $myusername, $mypassword and redirect to file "login_success.php"
session_register("myusername");
session_register("mypassword"); 
header("location:main.php?myusername=".$myusername);
}
else {
header("location:login_failed.php");
//echo "Wrong Username or Password";
}
?&gt;
</code></pre>

<p>Any help would be very much appreciated!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mdemetri2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455235/login-to-direct-user-type-to-a-different-page</guid>
		</item>
				<item>
			<title>another HQL statement question</title>
			<link>http://www.daniweb.com/software-development/java/threads/455234/another-hql-statement-question</link>
			<pubDate>Fri, 24 May 2013 09:42:10 +0000</pubDate>
			<description>hey there, I am working on this project where I need to retreive merchant objects and their corresponding number of failed transactions. In pure SQL, I'd just write : &quot;select merchant_id , count(merchant_id) from Transactions where status = 'failed' group by merchant_id&quot; however, the only way I managed to write ...</description>
			<content:encoded><![CDATA[ <p>hey there, I am working on this project where I need to retreive merchant objects and their corresponding number of failed transactions.</p>

<p>In pure SQL, I'd just write :</p>

<pre><code class="language-java">"select merchant_id , count(merchant_id) from Transactions where status = 'failed' group by merchant_id"
</code></pre>

<p>however, the only way I managed to write the query and have something returned for hql is:</p>

<pre><code class="language-java">select max(T.merchant), count(T.merchant) from Transaction  T where T.status = 'failed' group by T.merchant
</code></pre>

<p>now, max(T.merchant) is where I am afraid I could do better. but without it, I get a "not a group by statement" error. Although my query seems to work well, I am wondering if I can do this better. MAX(T.merchant) is not limiting the number of rows to 1, which is what I want, but contrary to my expectation for how MAX would work. Anyone?<br />
Thanks in advance.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>bibiki</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455234/another-hql-statement-question</guid>
		</item>
				<item>
			<title>Problem in Lan</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455233/problem-in-lan</link>
			<pubDate>Fri, 24 May 2013 09:31:28 +0000</pubDate>
			<description>Friends, I am Developing a Windows Application For Lan, I am able to Scaning Pc's Name Which Are Connected on My Lan on Same Workgroup, But I have Problem That If Sudden I Get Lost Connection With any Client Pc, or Client Pc Become Shut Down So it Should Make ...</description>
			<content:encoded><![CDATA[ <p>Friends,</p>

<p>I am Developing a Windows Application For Lan, I am able to Scaning Pc's Name Which Are Connected on My Lan on Same Workgroup, But I have Problem That If Sudden I Get Lost Connection With any Client Pc, or Client Pc Become Shut Down So it Should Make a Indication, How Can I Do That.<br />
I Were Thinking to Ping Every Pc On Timer Event But In this Condition I am Able to Scanning The Ip Address of Client Pc's, Please Suggest How Can i Do This or The Other Way to Solve My Problem, Please Help Me...........</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>manoj_582033</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455233/problem-in-lan</guid>
		</item>
				<item>
			<title>extern</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455230/extern</link>
			<pubDate>Fri, 24 May 2013 09:18:47 +0000</pubDate>
			<description>Hi. In a project of mine, I have many different files 1.h, 1.cpp, 2.h, 2.cpp, 3.h, 3.cpp etc. Some of the functionality in them depend on veriables or functions in the others. If I juggle the #includes around I can get around most of it, for instance, if functionality in ...</description>
			<content:encoded><![CDATA[ <p>Hi.</p>

<p>In a project of mine, I have many different files 1.h, 1.cpp, 2.h, 2.cpp, 3.h, 3.cpp etc.<br />
Some of the functionality in them depend on veriables or functions in the others.<br />
If I juggle the #includes around I can get around most of it, for instance, if functionality in 2.cpp requires a variable from 3.cpp, then #include "3.h" goes first.</p>

<p>Sometimes however I can not do that, and use global variables and the extern keyword which works fine.<br />
However, I am at a point (very deep into my project) where I could do with, not a variable but a function from another file, the function is not within a class.</p>

<p>My question is, is there a similar method for functions as there is with extern keywaod for variables.</p>

<p>I know my project might not have been thought thougrily through and some things are afterthoughts you see. So until I re-design it I'm hoping there is a workaround.</p>

<p>Thanks for reading.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>Suzie999</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455230/extern</guid>
		</item>
				<item>
			<title>Web CartBean problems</title>
			<link>http://www.daniweb.com/software-development/java/threads/455229/web-cartbean-problems</link>
			<pubDate>Fri, 24 May 2013 09:09:00 +0000</pubDate>
			<description>i am a beginner here, now i am having trouble adding function to the buttons.(i have no idea what to do so might need deep explaination on everything) i totally don't know how to add function onto the button. here is my code: Second part is servlet &lt;%@page import=&quot;ejb.CartServlet&quot;%&gt; &lt;%@page ...</description>
			<content:encoded><![CDATA[ <p>i am a beginner here, now i am having trouble adding function to the buttons.(i have no idea what to do so might need deep explaination on everything)<br />
i totally don't know how to add function onto the button.<br />
here is my code:<br />
Second part is servlet</p>

<pre><code class="language-java">&lt;%@page import="ejb.CartServlet"%&gt;
&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
&lt;!DOCTYPE html&gt;

&lt;html&gt;
    &lt;head&gt;
        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
        &lt;title&gt;JSP Page&lt;/title&gt;
        &lt;script&gt;
            function appleFunction()
            {
                alert("Apple is added!");
            }
            function grapeFunction()
            {
                alert("Grape is added!");
            }
            function peachFunction()
            {
                alert("Peach is added!");
            }
            function kiwiFunction()
            {
                alert("Kiwi is added!");
            }
        &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;h1&gt;Fruits Corder&lt;/h1&gt;
        &lt;h6&gt;Customer Name:&lt;/h6&gt;
        &lt;form action="CartServlet" method="post"&gt;
        &lt;input type ="text" name="customerName1"&gt;
        &lt;input type="button" name="login" value="Login" onclick=""&gt;&lt;/input&gt;
        &lt;h5&gt;Adding fruits to cartBean for a customer&lt;/h5&gt;
        &lt;table&gt;
            &lt;th&gt;Item&lt;/th&gt;
            &lt;th&gt;Item Name&lt;/th&gt;            
            &lt;tr&gt;
                &lt;td&gt;&lt;img src="apple.jpg" alt="applePic" width="100" height="100"&gt;&lt;/td&gt;                
                &lt;td&gt;&lt;input type="text" name="appleName" value="Apple"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="button" name="addbut1" value="Add" onclick=""&gt;&lt;/td&gt;                
                &lt;td&gt;&lt;input type="button" name="remove1" value="Remove" onclick=""&gt;&lt;/td&gt;              
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;&lt;img src="grape.png" alt="grapePic" width="100" height="100"&gt;&lt;/td&gt;              
                &lt;td&gt;&lt;input type="text" name="grapeName" value="Grape"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="button" name="addbut2" value="Add"&gt;&lt;/td&gt;                    
                &lt;td&gt;&lt;input type="button" name="remove2" value="Remove" onclick=""&gt;&lt;/td&gt;
            &lt;/tr&gt;  
            &lt;tr&gt;
                &lt;td&gt;&lt;img src="peach.jpg" alt="peachPic" width="100" height="100"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="text" name="peachName" value="Peach"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="button" name="addbut3" value="Add"&gt;&lt;/td&gt;    
                &lt;td&gt;&lt;input type="button" name="remove3" value="Remove" onclick=""&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;tr&gt;
                &lt;td&gt;&lt;img src="kiwi.jpg" alt="kiwiPic" width="100" height="100"&gt;&lt;/td&gt;               
                &lt;td&gt;&lt;input type="text" name="kiwiName" value="Kiwi"&gt;&lt;/td&gt;
                &lt;td&gt;&lt;input type="button" name="addbut4" value="Add"&gt;&lt;/td&gt;    
                &lt;td&gt;&lt;input type="button" name="remove4" value="Remove" onclick=""&gt;&lt;/td&gt;
            &lt;/tr&gt;

        &lt;/table&gt;
        &lt;h1&gt;Cart List&lt;/h1&gt;
        &lt;input type="submit" name="update" value="Update"&gt;
        &lt;input type="button" name="refresh" value="Refresh"&gt;
        &lt;/form&gt;
    &lt;/body&gt;
&lt;/html&gt;


package ejb;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ejb.EJB;


/**
 *
 * @author chiewwei
 */
@WebServlet(name = "CartServlet", urlPatterns = {"/CartServlet"})
public class CartServlet extends HttpServlet {

    @EJB
    private CartBeanRemote myCartBean;

  //  CartBeanRemote cartBean = lookupCartBeanRemote();
    public void login(){
        myCartBean.initialize("ken", "189");
    }

    public void addApple(HttpServletRequest request,HttpServletResponse response){
        String name = request.getParameter("appleName");
        myCartBean.addItem(name);
    }

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {

        String name1 = request.getParameter("grapeName");
        String name2 = request.getParameter("peachName");
        String name3 = request.getParameter("kiwiName");

        myCartBean.addItem(name1);
        myCartBean.addItem(name2);
        myCartBean.addItem(name3);

        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
            /* TODO output your page here. You may use following sample code. */
            out.println("&lt;!DOCTYPE html&gt;");
            out.println("&lt;html&gt;");
            out.println("&lt;head&gt;");
            out.println("&lt;title&gt;Servlet CartServlet&lt;/title&gt;");            
            out.println("&lt;/head&gt;");
            out.println("&lt;body&gt;");
            out.println("&lt;h1&gt;" + myCartBean.getItems() + "&lt;/h1&gt;");
            out.println("&lt;/body&gt;");
            out.println("&lt;/html&gt;");
        } finally {            
            out.close();
        }
    }

    // &lt;editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code."&gt;
    /**
     * Handles the HTTP
     * &lt;code&gt;GET&lt;/code&gt; method.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        processRequest(request, response);
    }

    /**
     * Handles the HTTP
     * &lt;code&gt;POST&lt;/code&gt; method.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        processRequest(request, response);
    }

    /**
     * Returns a short description of the servlet.
     *
     * @return a String containing servlet description
     */
    @Override
    public String getServletInfo() {
        return "Short description";
    }// &lt;/editor-fold&gt;

 /**   private CartBeanRemote lookupCartBeanRemote() {
        try {
            Context c = new InitialContext();
            return (CartBeanRemote) c.lookup("java:global/EJBCartApp/EJBCartApp-ejb/CartBean!ejb.CartBeanRemote");
        } catch (NamingException ne) {
            Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception caught", ne);
            throw new RuntimeException(ne);
        }
    }*/
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>ocw91</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455229/web-cartbean-problems</guid>
		</item>
				<item>
			<title>Social Media relies on Cloud Computing</title>
			<link>http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455228/social-media-relies-on-cloud-computing</link>
			<pubDate>Fri, 24 May 2013 08:57:30 +0000</pubDate>
			<description>What do you think? Everywhere there is buzz about cloud computing.How is it helpful to business?</description>
			<content:encoded><![CDATA[ <p>What do you think?<br />
Everywhere there is buzz about cloud computing.How is it helpful to business?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/internet-marketing/social-media-and-communities/50">Social Media and Communities</category>
			<dc:creator>zCloudCommerce</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/internet-marketing/social-media-and-communities/threads/455228/social-media-relies-on-cloud-computing</guid>
		</item>
				<item>
			<title>for loop in php </title>
			<link>http://www.daniweb.com/web-development/php/threads/455227/for-loop-in-php-</link>
			<pubDate>Fri, 24 May 2013 08:56:27 +0000</pubDate>
			<description>If I have dropdownlist as below &lt;select onChange=&quot;this.value;&quot;&gt; &lt;option value=&quot;Volvo&quot; id=&quot;volvo&quot;&gt;Volvo&lt;/option&gt; &lt;option value=&quot;Saab&quot; id=&quot;saab&quot;&gt;Saab&lt;/option&gt; &lt;option value=&quot;VW&quot; id=&quot;vw&quot;&gt;VW&lt;/option&gt; &lt;option id=&quot;audi&quot; value=&quot;Audi&quot; selected&gt;Audi&lt;/option&gt; &lt;/select&gt; I want to display discription of item selectd so I have below code &lt;div id=&quot;boxpopup&quot; class=&quot;box&quot;&gt; &lt;a onClick=&quot;closeOffersDialog('boxpopup');&quot; class=&quot;boxclose&quot;&gt;&lt;/a&gt; &lt;div id=&quot;content&quot;&gt; This is popupbox of Audi &lt;/div&gt;&lt;!--end of ...</description>
			<content:encoded><![CDATA[ <p>If I have dropdownlist as below</p>

<pre><code>&lt;select onChange="this.value;"&gt;  
  &lt;option value="Volvo" id="volvo"&gt;Volvo&lt;/option&gt;    
  &lt;option value="Saab" id="saab"&gt;Saab&lt;/option&gt;    
  &lt;option value="VW" id="vw"&gt;VW&lt;/option&gt;    
  &lt;option id="audi" value="Audi" selected&gt;Audi&lt;/option&gt;                  
&lt;/select&gt; 
</code></pre>

<p>I want to display discription of item selectd so I have below code</p>

<pre><code>&lt;div id="boxpopup" class="box"&gt;  
    &lt;a onClick="closeOffersDialog('boxpopup');" class="boxclose"&gt;&lt;/a&gt;  
    &lt;div id="content"&gt;  
    This is popupbox of Audi   
    &lt;/div&gt;&lt;!--end of content --&gt; 
&lt;/div&gt;&lt;!--end of popupbox --&gt;     
</code></pre>

<p>now in content can I give If else  as below</p>

<pre><code>    &lt;div id="boxpopup3" class="box"&gt;  
        &lt;a onClick="closeOffersDialog('boxpopup');" class="boxclose"&gt;&lt;/a&gt;  
        &lt;div id="content"&gt; 
            &lt;?php if($id=="volvo"){ ?&gt; 
            This is popupbox of Volvo
            &lt;?php } elseif($id=="saab"){ ?&gt;
            This is popupbox of Saab 
            &lt;?php } elseif($id=="vw"){ ?&gt;
            This is popupbox of VW 
            &lt;?php } else { ?&gt;
            This is popupbox of Audi
            } ?&gt;
        &lt;/div&gt;&lt;!--end of content --&gt; 
    &lt;/div&gt;&lt;!--end of popupbox --&gt;
</code></pre>

<p>The error is occurs<br />
Notice: Undefined variable: id<br />
please help me :(</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>shilu2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455227/for-loop-in-php-</guid>
		</item>
				<item>
			<title>What assembly language is friendly to beginners?</title>
			<link>http://www.daniweb.com/software-development/assembly/threads/455224/what-assembly-language-is-friendly-to-beginners</link>
			<pubDate>Fri, 24 May 2013 07:58:14 +0000</pubDate>
			<description>I am have been programming in C++ for a few years now. Now I would like to also learn assembly language. I have tried NASM, but I dont like it, it works better on linux and my main development platform is windows. I have also tried FASM, its better but ...</description>
			<content:encoded><![CDATA[ <p>I am have been programming in C++ for a few years now. Now I would like to also learn assembly language.</p>

<p>I have tried NASM, but I dont like it, it works better on linux and my main development platform is windows.<br />
I have also tried FASM, its better but I couldnt find good documentation on it.<br />
I dont care for the syntex although I like the Intel syntex more e.g.</p>

<pre><code class="language-cpp">mov eax, 4
</code></pre>

<p>I want an assembler that is easy to learn, and have good documentation from which I can learn and that I can program bootloaders and other chipset based stuff like writing drivers for security cameras etc.</p>

<p>I am currently developing from an 64 bit cpu, so the assembler should support atleast 32 bit / 64 bit.<br />
My main platform is 64-bit windows 7.</p>

<p>Thanks...</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/assembly/125">Assembly</category>
			<dc:creator>MasterHacker110</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/assembly/threads/455224/what-assembly-language-is-friendly-to-beginners</guid>
		</item>
				<item>
			<title>Cannot understand object</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455223/cannot-understand-object</link>
			<pubDate>Fri, 24 May 2013 07:57:05 +0000</pubDate>
			<description>Hi all, I have taken from net drop down menu script my web page is medistyle.az. It works perfectly but when i look up code i cannot understand one thing there below is code (js. file) var menu=function(){ var t=15,z=50,s=6,a; function dd(n){this.n=n; this.h=[]; this.c=[]} dd.prototype.init=function(p,c){ a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, ...</description>
			<content:encoded><![CDATA[ <p>Hi all,<br />
I have taken from net drop down menu script<br />
my web page is medistyle.az. It works perfectly<br />
but when i look up code i cannot understand one thing there<br />
below is code (js. file)</p>

<pre><code class="language-js">var menu=function(){
    var t=15,z=50,s=6,a;
    function dd(n){this.n=n; this.h=[]; this.c=[]}
    dd.prototype.init=function(p,c){
        a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
        for(i;i&lt;l;i++){
            var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i];
            h.onmouseover=new Function(this.n+'.st('+i+',true)');
            h.onmouseout=new Function(this.n+'.st('+i+')');
        }
    }
    dd.prototype.st=function(x,f){
        var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0];
        clearInterval(c.t); c.style.overflow='hidden';
        if(f){
            p.className+=' '+a;
            if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0}
            if(c.mh==c.offsetHeight){c.style.overflow='visible'}
            else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)}
        }else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)}
    }
    function sl(c,f){
        var h=c.offsetHeight;
        if((h&lt;=0&amp;&amp;f!=1)||(h&gt;=c.mh&amp;&amp;f==1)){
            if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'}
            clearInterval(c.t); return
        }
        var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh;
        c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')';
        c.style.height=h+(d*f)+'px'
    }
    return{dd:dd}
}();
</code></pre>

<p>Here i dont understand what does <strong>return{dd:dd}</strong> mean. I understand dd is name of function(class) but i couldnt understand what does syntax mean (return{dd:dd})<br />
Thanks in advance for attention !!!</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>azegurb</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455223/cannot-understand-object</guid>
		</item>
				<item>
			<title>open file</title>
			<link>http://www.daniweb.com/software-development/c/threads/455221/open-file</link>
			<pubDate>Fri, 24 May 2013 07:30:40 +0000</pubDate>
			<description>hi all i want to open a file but this file in other directory.and i want to use this function: int open( char *filename, int access, int permission ); i can not use other function, because i have use only system call function. when file exists beside of my code, ...</description>
			<content:encoded><![CDATA[ <p>hi all<br />
i want to open a file but this file in other directory.and i want to use this function:</p>

<pre><code class="language-c">int  open(  char  *filename,  int  access,  int  permission  );
</code></pre>

<p>i can not use other function, because i have use only system call function.</p>

<p>when file exists beside of my code, there isn't problem. but when exist in other drectory can not open that.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>ferizhandi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455221/open-file</guid>
		</item>
				<item>
			<title>Java Process</title>
			<link>http://www.daniweb.com/software-development/java/threads/455219/java-process</link>
			<pubDate>Fri, 24 May 2013 05:58:00 +0000</pubDate>
			<description>I hava a simple Java application which uses the `ProcessBuilder` and `Process` classes to execute **cmd** commands. The commands just load a window. Now the problem is when the window is closed, the process remains running. Below is the code snippet I have used: try { ProcessBuilder pb = new ...</description>
			<content:encoded><![CDATA[ <p>I hava a simple Java application which uses the <code>ProcessBuilder</code> and <code>Process</code> classes to execute <strong>cmd</strong> commands. The commands just load a window. Now the problem is when the window is closed, the process remains running. Below is the code snippet I have used:</p>

<pre><code class="language-java">        try {
            ProcessBuilder pb = new ProcessBuilder(commands);//command to load a gui app
            Process process = pb.start();
            process.waitFor();
        } 
        catch (IOException ioEx) {
            ioEx.printStackTrace();
        }
        catch (InterruptedException iEx) {
            iEx.printStackTrace();
        }
</code></pre>

<p>How do I make the process to stop when the window is closed?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/java/9">Java</category>
			<dc:creator>manaila</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/java/threads/455219/java-process</guid>
		</item>
				<item>
			<title>Would like some help with a C worksheet.</title>
			<link>http://www.daniweb.com/software-development/c/threads/455217/would-like-some-help-with-a-c-worksheet</link>
			<pubDate>Fri, 24 May 2013 03:58:41 +0000</pubDate>
			<description>Yeah, basically I'm asking if anyone could either walk me through a solution of a problem, or if it would be easier to simply do it themselves. I'm &quot;taking&quot; a C class, and would love it if I could get pointed in the right direction with a certain problem. All ...</description>
			<content:encoded><![CDATA[ <p>Yeah, basically I'm asking if anyone could either walk me through a solution of a problem, or if it would be easier to simply do it themselves. I'm "taking" a C class, and would love it if I could get pointed in the right direction with a certain problem.</p>

<p>All of the sorting algorithms encountered so far in this course are known as Comparison<br />
Sorting Algorithms because they order by directly comparing integers in a given array.<br />
Other Sorting algorithms sort by different methods. Often, you are given an array and<br />
asked to place the elements in their correct position. One such method is BucketSort.<br />
Your task is to implement a very simple BucketSort. It is described below.</p>

<p>You are given the birth years of fifteen random people who were born in the twentieth<br />
century (1900 - 1999). You are given the data as the following array, which is to be the<br />
only argument used in your BucketSort function:<br />
birthYears[] = {84, 51, 92, 72, 17, 62, 1, 16, 10, 28, 99, 71, 45, 18, 61};</p>

<p>Your function will have return type void and will work in the following manner:</p>

<p>• Create a 10x 10 array, which will represent the decades, and call it decade. Thus<br />
decade[0][1] -&gt; decade[0][9] will represent the 00’s, decade[1][0] -&gt; decade[1][9]<br />
will represent the 10’s, and so on up to decade[9][0] -&gt; decade[9][9] which will<br />
represent the 90’s.</p>

<p>• Initialize your array so that it contains only -1’s.</p>

<p>• Now go through the array birthYears and put each element in its appropriate<br />
bucket, and in its appropriate index (WATCH THE INDICES) in your decade<br />
array.</p>

<p>• Finally, trawl through decades, removing the elements one at a time and put back<br />
into the array birthYears. They should already be in the correct order.</p>

<p>Yeah... just any guidance at all, that'd be great.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/c/118">C</category>
			<dc:creator>blackcathacker</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/c/threads/455217/would-like-some-help-with-a-c-worksheet</guid>
		</item>
				<item>
			<title>VBscript to find duplicates within an array and increment it by 1</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455216/vbscript-to-find-duplicates-within-an-array-and-increment-it-by-1</link>
			<pubDate>Fri, 24 May 2013 03:54:43 +0000</pubDate>
			<description>Hi, I have a scenario where in I had to sort an array, find duplicates and increment one or the other by 1. So, Eg: An array has 22, 23, 21, 21, 24 within it then, an array should be able to find 21 and increment it by 1 i.e. ...</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I have a scenario where in I had to sort an array, find duplicates and increment one or the other by 1.<br />
So, Eg: An array has 22, 23, 21, 21, 24 within it then, an array should be able to find 21 and increment it by 1 i.e. 22. Also, on the other hand, it should now go scanning from the start and find 22 already present and increment that by 1. So, far had managed to sort an array which is just a part of the entire project.<br />
Anyone too good in VBscript, please?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>mith_cool</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455216/vbscript-to-find-duplicates-within-an-array-and-increment-it-by-1</guid>
		</item>
				<item>
			<title>category and subcategory in oracle</title>
			<link>http://www.daniweb.com/web-development/databases/oracle/threads/455215/category-and-subcategory-in-oracle</link>
			<pubDate>Fri, 24 May 2013 03:50:42 +0000</pubDate>
			<description>what is the SQL command (Query) to create category and subcategory in oracle thanks for your time.</description>
			<content:encoded><![CDATA[ <p>what is the SQL command (Query) to create category and subcategory in oracle</p>

<p>thanks for your time.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/databases/oracle/129">Oracle</category>
			<dc:creator>ganges</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/databases/oracle/threads/455215/category-and-subcategory-in-oracle</guid>
		</item>
				<item>
			<title>Left Speaker is not working</title>
			<link>http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455214/left-speaker-is-not-working</link>
			<pubDate>Fri, 24 May 2013 03:48:11 +0000</pubDate>
			<description>hi, I am using Acer aspire 4730z and Ubuntu 12.04 LTS left speaker is not working and it is working in windows 7 give me valueable tips thanks in advance</description>
			<content:encoded><![CDATA[ <p>hi,<br />
I am using Acer aspire 4730z and Ubuntu 12.04 LTS</p>

<p>left speaker is not working and it is working in windows 7<br />
give me valueable tips</p>

<p>thanks in advance</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/linux-and-unix/12">Linux and Unix</category>
			<dc:creator>ganges</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/455214/left-speaker-is-not-working</guid>
		</item>
				<item>
			<title>computer logging on and off in safe mode</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/455213/computer-logging-on-and-off-in-safe-mode</link>
			<pubDate>Fri, 24 May 2013 02:50:43 +0000</pubDate>
			<description>my friend is having a problem with his pc. he says its xp service pack 3 but is not sure if its home or pro. he says one day he logs on and gets to blue screen and then computer logs right back off. he mentions that the blue screen ...</description>
			<content:encoded><![CDATA[ <p>my friend is having a problem with his pc. he says its xp service pack 3 but is not sure if its home or pro. he says one day he logs on and gets to blue screen and then computer logs right back off. he mentions that the blue screen incident only happens once now he says when he logs on it logs right back off and he is even logging in safe mode. what could be his problem and how should he fix it. also does it matter if its on a tower pc vs a lap top?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/10">Windows NT / 2000 / XP</category>
			<dc:creator>maracuya</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-nt-2000-xp/threads/455213/computer-logging-on-and-off-in-safe-mode</guid>
		</item>
				<item>
			<title>Android and Python and Games</title>
			<link>http://www.daniweb.com/software-development/python/threads/455212/android-and-python-and-games</link>
			<pubDate>Fri, 24 May 2013 01:53:27 +0000</pubDate>
			<description>I am intereseted in writing a game or two for the android platform but am much more comfortable and knowledgable about python than I am about Java. I was curious if python is used for android games and if so some basic points of advice.</description>
			<content:encoded><![CDATA[ <p>I am intereseted in writing a game or two for the android platform but am much more comfortable and knowledgable about python than I am about Java.  I was curious if python is used for android games and if so some basic points of advice.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/python/114">Python</category>
			<dc:creator>reddsoxy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/python/threads/455212/android-and-python-and-games</guid>
		</item>
				<item>
			<title>Internet Explorer keeps starting on its own.  HELP!</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/455211/internet-explorer-keeps-starting-on-its-own.-help</link>
			<pubDate>Fri, 24 May 2013 01:46:31 +0000</pubDate>
			<description>Okay, so I am horrible with computers so this may be just an easy fix. For the past two days Internet Explorer keeps on starting on its own. It does not open to an actual website but in the search bar there are always random, incomplete urls (the most recent ...</description>
			<content:encoded><![CDATA[ <p>Okay, so I am horrible with computers so this may be just an easy fix.  For the past two days Internet Explorer keeps on starting on its own.  It does not open to an actual website but in the search bar there are always random, incomplete urls (the most recent example: <a href="http://nskduikwwxzkok/" rel="nofollow">http://nskduikwwxzkok/</a>).  It's my laptop for class so it is unbelievably annoying.</p>

<p>Please, please help me out.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/64">Viruses, Spyware and other Nasties</category>
			<dc:creator>kays109</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/viruses-spyware-and-other-nasties/threads/455211/internet-explorer-keeps-starting-on-its-own.-help</guid>
		</item>
				<item>
			<title>toggle buton problem</title>
			<link>http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455210/toggle-buton-problem</link>
			<pubDate>Fri, 24 May 2013 00:25:47 +0000</pubDate>
			<description> html &lt;div class=&quot;example2&quot;&gt; &lt;p&gt;This is some text This is some textThis is some textThis is some textThis is some text This is some textThis is some textThis is some textThis is some textThis is some text&lt;/p&gt; &lt;/div&gt; Css .button{ -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; -moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);-webkit-box-shadow:0 1px 1px rgba(0, ...</description>
			<content:encoded><![CDATA[ <pre><code class="language-js">html


&lt;div class="example2"&gt;
    &lt;p&gt;This is some text This is some textThis is some textThis is some textThis is some text
    This is some textThis is some textThis is some textThis is some textThis is some text&lt;/p&gt;
&lt;/div&gt;


Css


.button{
    -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;
    -moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);-webkit-box-shadow:0 1px  1px rgba(0, 0, 0, 0.2);box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);
    background:#eee;
    border:0;
    color:#333;
    cursor:pointer;
    font-family:"Lucida Grande",Helvetica,Arial,Sans-Serif;
    margin:0;padding:6px 4px;
    text-decoration:none;
    position:relative
}
.example1 p, .example2 p{
    border:1px solid #eee;background:#eee;
    -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;
    width:400px;
    padding:10px;
    margin:10px 0
}




Javascript code


$(document).ready(function() {
    $('.example2').hide().before('&lt;a href="#" id="toggle-example2" class="button"&gt;Open/Close&lt;/a&gt;');
    $('a#toggle-example2').click(function() {
        $('.example2').slideToggle(1000);
        return false;
    });
});
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/javascript-dhtml-ajax/117">JavaScript / DHTML / AJAX</category>
			<dc:creator>andi.andiiimintoyouu</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/455210/toggle-buton-problem</guid>
		</item>
				<item>
			<title>Need to know font name from picture</title>
			<link>http://www.daniweb.com/web-development/web-design-html-and-css/threads/455209/need-to-know-font-name-from-picture</link>
			<pubDate>Fri, 24 May 2013 00:01:15 +0000</pubDate>
			<description>Hi, I'm suppose to design a page based on this image: http://postimg.org/image/il4632gjh/ I've so far recreated the menu bar on the side, but I don't know what type of font is being used. Can anyone help me out? Thanks</description>
			<content:encoded><![CDATA[ <p>Hi,</p>

<p>I'm suppose to design a page based on this image: <a href="http://postimg.org/image/il4632gjh/" rel="nofollow">http://postimg.org/image/il4632gjh/</a><br />
I've so far recreated the menu bar on the side, but I don't know what type of font is being used. Can anyone help me out?</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/web-design-html-and-css/15">Web Design, HTML and CSS</category>
			<dc:creator>louie540</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/web-design-html-and-css/threads/455209/need-to-know-font-name-from-picture</guid>
		</item>
				<item>
			<title>compare $_GET with array existence</title>
			<link>http://www.daniweb.com/web-development/php/threads/455207/compare-_get-with-array-existence</link>
			<pubDate>Thu, 23 May 2013 23:49:27 +0000</pubDate>
			<description>If I have a array: $myarray = array(&quot;10&quot;=&gt;&quot;apple&quot;, &quot;20&quot;=&gt;&quot;banana&quot;, etc..) up to 15 values. and I use $_GET['category'] to get my value from url for instance &quot;10&quot; How do I echo $myarray to be &quot;apple&quot;?</description>
			<content:encoded><![CDATA[ <p>If I have a array:<br />
$myarray = array("10"=&gt;"apple", "20"=&gt;"banana", etc..) up to 15 values.</p>

<p>and I use $_GET['category'] to get my value from url for instance "10"</p>

<p>How do I echo $myarray to be "apple"?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mjsmitten</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455207/compare-_get-with-array-existence</guid>
		</item>
				<item>
			<title>how to delete a token when cancel is clicked</title>
			<link>http://www.daniweb.com/web-development/php/threads/455206/how-to-delete-a-token-when-cancel-is-clicked</link>
			<pubDate>Thu, 23 May 2013 23:13:38 +0000</pubDate>
			<description>how can i get a token that a user has requested if he/she clicks cancel NOTE the user doesnt have to input anything if cancel is clicked that particular token is deleted from the d.b and the user is redirected to index.php i really dont know where and how to ...</description>
			<content:encoded><![CDATA[ <p>how can i get a token that a user has requested if he/she clicks cancel NOTE the user doesnt have to input anything if cancel is clicked that particular token is deleted from the d.b and the user is redirected to index.php i really dont know where and how to start so bear with me thanks anyway below is the token.php</p>

<pre><code>&lt;?php
error_reporting(0);
session_start();
$token=$_GET['token'];
include("settings.php");
connect();
if(isset ($_POST['submit'])){
$q="select email from tokens where token='".$token."' and used=0";
$r=mysql_query($q);
while($row=mysql_fetch_array($r))
   {
$email=$row['email'];
   }
If ($email!=''){
          $_SESSION['email']=$email;
}
else die("Invalid link or Password already changed  &lt;a href='../index.php'&gt;Click here to go back to the HOME PAGE&lt;a/&gt;");}

$pass=$_POST['password'];
$email=$_SESSION['email'];

if(isset($_POST['password'])&amp;&amp;isset($_SESSION['email']))
{
$q="update registration set password='".md5($pass)."' where email='".$email."'";
$r=mysql_query($q);
if($r)mysql_query("update tokens set used=1 where token='".$token."'");echo "Your password is changed successfully  &lt;a href='../index.php'&gt;Click here to go back to the HOME PAGE&lt;a/&gt;";
if(!$r)echo "An error occurred";
    }
</code></pre>

<p>and below is the formreset.php</p>

<pre><code>&lt;h3&gt;&lt;strong&gt;Forgot Password&lt;/strong&gt;&lt;/h3&gt;
      &lt;form name="forgot" method="POST" id="forgot" action="includes/reset.php?token=&lt;?php echo $_GET['token']; ?&gt;"&gt;
        &lt;div align="center"&gt;
          &lt;table width="372" border="0"&gt;
            &lt;tr&gt;
              &lt;td width="181"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
              &lt;p&gt;&lt;strong&gt;Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;
              &lt;td width="181"&gt;&lt;span id="sprytextfield1"&gt;&lt;span id="sprypassword1"&gt;
              &lt;label for="password2"&gt;&lt;/label&gt;
              &lt;br /&gt;
            &lt;input type="password" name="password" id="password2" /&gt;
                &lt;br /&gt;
                &lt;span class="passwordRequiredMsg"&gt;Your PASSWORD is need&lt;/span&gt;&lt;/span&gt;
&lt;label for="label"&gt;&lt;/label&gt;
              &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
            &lt;tr&gt;
              &lt;td height="22"&gt;&lt;p&gt;&amp;nbsp;
              &lt;p&gt;&lt;strong&gt;Confirm Password&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;
              &lt;td&gt;&lt;span id="spryconfirm2"&gt;
              &lt;label for="password"&gt;&lt;/label&gt;
              &lt;span id="spryconfirm1"&gt;
              &lt;label for="password1"&gt;&lt;/label&gt;
              &lt;br /&gt;
              &lt;input type="password" name="password1" id="password1" /&gt;
              &lt;br /&gt;
              &lt;span class="confirmRequiredMsg"&gt;Please re-confirm your PASSWORD&lt;/span&gt;&lt;span class="confirmInvalidMsg"&gt;The PASSWORDS don't match.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
    &lt;div align="center"&gt;
      &lt;p&gt;&amp;nbsp;&lt;/p&gt;
      &lt;table width="372" border="0"&gt;
        &lt;tr&gt;
          &lt;th width="132" scope="row"&gt;&lt;input type="submit" name="submit" id="submit" value="submit" /&gt;&lt;/th&gt;
          &lt;th width="113" scope="row"&gt;&lt;a href="includes/cancel.php?token=&lt;?php echo $_GET['token']; ?&gt;"&gt;Cancel&lt;/a&gt;&lt;/td&gt;&lt;/th&gt;
          &lt;th width="113" scope="row"&gt;&lt;input type="reset" name="clear" id="clear" value="Clear" /&gt;&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/table&gt;

    &lt;/div&gt;
    &lt;div align="center"&gt;
      &lt;table width="372" border="0"&gt;
        &lt;tr&gt; &lt;/tr&gt;
        &lt;tr&gt; &lt;/tr&gt;
      &lt;/table&gt;
    &lt;/div&gt;thanks in advance
  &lt;/form&gt;
</code></pre>

<p>so how do i go about this</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>php.coder</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455206/how-to-delete-a-token-when-cancel-is-clicked</guid>
		</item>
				<item>
			<title>&lt;unresolved overloaded function type&gt; on supposed bool</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455205/unresolved-overloaded-function-type-on-supposed-bool</link>
			<pubDate>Thu, 23 May 2013 23:09:26 +0000</pubDate>
			<description>Please consider the code below. This is a smaller version of what I'm trying to accomplish. Point instances will get random values to be printed in a 2D grid. In order not to have duplicates, I'm inserting them in `positions`. `ret` pair is used by me in order to know ...</description>
			<content:encoded><![CDATA[ <p>Please consider the code below.  This is a smaller version of what I'm trying to accomplish.</p>

<p>Point instances will get random values to be printed in a 2D grid. In order not to have duplicates, I'm inserting them in <code>positions</code>.</p>

<p><code>ret</code> pair is used by me in order to know whether a new element was inserted (<code>ret.second == true</code>) or not (<code>ret.second == false</code>).</p>

<p>The problem is that I get the message:</p>

<pre><code class="language-cpp">a.cpp:59:77: error: invalid operands of types 'bool' and '&lt;unresolved overloaded function type&gt;' to binary 'operator&lt;&lt;'
</code></pre>

<p>when try to compare <code>ret.second</code> with <code>true</code> or <code>false</code>.</p>

<p>What am I doing wrong?</p>

<pre><code class="language-cpp">#include &lt;iostream&gt;
using std::cout; using std::cerr; using std::endl; using std::cin;
#include &lt;string&gt;
using std::string;
#include &lt;vector&gt;
using std::vector;
#include &lt;map&gt;
using std::map;
#include &lt;set&gt;
using std::set;
#include &lt;utility&gt;
using std::pair; using std::make_pair;
#include &lt;cmath&gt;
#include &lt;cstdlib&gt;


class Point
{

public:
    unsigned int x_pos;
    unsigned int y_pos;
};

int main ()
{
    std::vector&lt;Point *&gt; stream;
    std::set&lt;std::pair&lt;unsigned int, unsigned int&gt; &gt; positions;
    pair&lt;set&lt;pair&lt;unsigned int, unsigned int&gt; &gt;::iterator, bool&gt; ret;

    Point * p = new Point;
    p-&gt;x_pos = 3;
    p-&gt;y_pos = 4;
    stream.push_back(p);

    p-&gt;x_pos = 1;
    p-&gt;y_pos = 1;
    stream.push_back(p);

    unsigned int x_rand;
    unsigned int y_rand;

    unsigned int i (0);    // Assign a position for every point in the stream not yet assigned to the 2D world.               
    for (vector&lt;Point *&gt;::iterator it = stream.begin(); it != stream.end(); ++it) {

        cout &lt;&lt; "iteration: " &lt;&lt; i &lt;&lt; endl;
        ret.second = false;

        while ( ret.second == false ) {
            x_rand = rand() % 2;
            y_rand = 0; // this would be another nr.                                                                          

            pair &lt;unsigned int, unsigned int&gt; p (x_rand, y_rand);
            cout &lt;&lt; "    try to insert pair x,y = " &lt;&lt; x_rand &lt;&lt; "," &lt;&lt; y_rand &lt;&lt; endl;
            ret = positions.insert (p);

            if (ret.second == false) { cout &lt;&lt; "element already present: " &lt;&lt; endl; }
            else { cout &lt;&lt; "   just inserted new element. " &lt;&lt; ret.second==true &lt;&lt; endl; }   // ERROR IN THIS LINE.
        }
        ++i;
    }
}
</code></pre>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>luislupe</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455205/unresolved-overloaded-function-type-on-supposed-bool</guid>
		</item>
				<item>
			<title>Interpreting pseudocode to Flowchart</title>
			<link>http://www.daniweb.com/software-development/cpp/threads/455204/interpreting-pseudocode-to-flowchart</link>
			<pubDate>Thu, 23 May 2013 22:49:05 +0000</pubDate>
			<description>When there is a if while else in pseudocode how do you interpret it in a flow chart. For example, a1 if c1 { a2 while c2 { a3 } } else { a4 } is the else statement connected to the if statement or the while statement and if ...</description>
			<content:encoded><![CDATA[ <p>When there is a if while else in pseudocode how do you interpret it in a flow chart. For example,</p>

<pre><code class="language-cpp">a1 
if c1
{
    a2
    while c2
      {
          a3 
      }
}
else 
{ 
    a4
}
</code></pre>

<p>is the else statement connected to the if statement or the while statement and if it is connected to the if statement what happens to false output for the while statement. I am new here so my apologies if this is in the wrong forum.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/cpp/8">C++</category>
			<dc:creator>pipsy17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/cpp/threads/455204/interpreting-pseudocode-to-flowchart</guid>
		</item>
				<item>
			<title>if certain words are in url</title>
			<link>http://www.daniweb.com/web-development/php/threads/455203/if-certain-words-are-in-url</link>
			<pubDate>Thu, 23 May 2013 22:38:05 +0000</pubDate>
			<description>My url's are similar like this: website/search/category,Room/region,Oregon/ website/search/category,Room/ website/search/category,Room/city,Palm Bay/ website/search/city,Palm Bay/ website/search/region,Florida/ It always contains single or combination of CATEGORY CITY REGION I want to echo in an if statement, for example: if url contains &quot;category,xxx&quot; then echo &quot;category is xxx&quot;. (xxx can be anything) I found this code: ...</description>
			<content:encoded><![CDATA[ <p>My url's are similar like this:</p>

<p>website/search/category,Room/region,Oregon/<br />
website/search/category,Room/<br />
website/search/category,Room/city,Palm Bay/<br />
website/search/city,Palm Bay/<br />
website/search/region,Florida/</p>

<p>It always contains single or combination of CATEGORY CITY REGION</p>

<p>I want to echo in an if statement, for example:<br />
if url contains "category,xxx" then echo "category is xxx".<br />
(xxx can be anything)</p>

<p>I found this code:</p>

<pre><code>                &lt;?php $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
                if (false !== strpos($url,'Room')) {
                    echo 'Room';
                } 
                    echo 'No Room';
                } ?&gt;
</code></pre>

<p>But this method is large when I have 12 or more category words, 50 region names, and hundreds of city words to compare. How to make this more easy?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/php/17">PHP</category>
			<dc:creator>mjsmitten</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/php/threads/455203/if-certain-words-are-in-url</guid>
		</item>
				<item>
			<title>SQL Databases</title>
			<link>http://www.daniweb.com/software-development/vbnet/threads/455202/sql-databases</link>
			<pubDate>Thu, 23 May 2013 21:50:32 +0000</pubDate>
			<description>Hey all, Sorry if this is really simple but I couldn't think how to phrase what I'm looking for on google. I've designed a piece of software for a friend for their business. When I learned VB we were always taught how to use it with Access Databases. I've decided ...</description>
			<content:encoded><![CDATA[ <p>Hey all,</p>

<p>Sorry if this is really simple but I couldn't think how to phrase what I'm looking for on google.<br />
I've designed a piece of software for a friend for their business. When I learned VB we were always taught how to use it with Access Databases. I've decided this isnt very practical if: a) They have a ton of information they want to be secure (Access Databases can be cracked in seconds!) and b) If I were to market the software (it's a very unique idea which could be popular), access isnt the best to go with.</p>

<p>So i've been rewriting it to use SQL databases. However! When the software is given to the client, would they need to configure a SQL server on their PC etc? I basically want it so they can install it (using a prebuilt installer), and then they're literally good to go. With access they just need to install the Access Runtime (which I made the installer install) and then the program is able to communicate with the .mdb file in the files. What needs to be packaged with it, so even a complete idiot on a PC could use the program. If it starts asking them about MySQL configs they'll probably be stumped? I'm only just learning to use SQL, so i'm not sure if there's some runtime equivalent? Also, is SQL the best way to even do this? It's my first experience with something like this so im a bit stumped.</p>

<p>Sorry if i havent explained it brilliantly!</p>

<p>Thanks</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/software-development/vbnet/58">VB.NET</category>
			<dc:creator>Ariah17</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/software-development/vbnet/threads/455202/sql-databases</guid>
		</item>
				<item>
			<title>HELP -Two Monitors - Indepedent Display connected only to one tower/desktop</title>
			<link>http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455200/help-two-monitors-indepedent-display-connected-only-to-one-towerdesktop</link>
			<pubDate>Thu, 23 May 2013 20:55:25 +0000</pubDate>
			<description>Is there a software that can run two instances of windows 7 or windows 8 seperated onto two monitors and running/connected only two one desktop computer. Im not talking about hyper v or extended display. Im looking for the monitors thats running differently from one another. Can anybody help me ...</description>
			<content:encoded><![CDATA[ <p>Is there a software that can run two instances of windows 7 or windows 8 seperated onto two monitors and running/connected only two one desktop computer. Im not talking about hyper v or extended display. Im looking for the monitors thats running differently from one another. Can anybody help me out with this one?</p>

<p>Also. Software or hardware that i need to be able to do this and use two keyboards and two mouse for each display.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/38">Windows Vista and Windows 7 / 8</category>
			<dc:creator>ToiNKieZ</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/hardware-and-software/microsoft-windows/windows-vista-and-windows-7-8/threads/455200/help-two-monitors-indepedent-display-connected-only-to-one-towerdesktop</guid>
		</item>
				<item>
			<title>cfselect and cfinput type date</title>
			<link>http://www.daniweb.com/web-development/coldfusion/threads/455199/cfselect-and-cfinput-type-date</link>
			<pubDate>Thu, 23 May 2013 20:44:31 +0000</pubDate>
			<description>Is it possible to display a text box next to a cfselect upon selection in the cfselect. If someone selects an option from the dropdown I need a date type field to be display. Is this possible perhaps with coldfuision and ajax?</description>
			<content:encoded><![CDATA[ <p>Is it possible to display a text box next to a cfselect upon selection in the cfselect.</p>

<p>If someone selects an option from the dropdown I need a date type field to be display. Is this possible perhaps with coldfuision and ajax?</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/web-development/coldfusion/19">ColdFusion</category>
			<dc:creator>jencinas69</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/web-development/coldfusion/threads/455199/cfselect-and-cfinput-type-date</guid>
		</item>
				<item>
			<title>CyberzHub is Mining Daniweb Data</title>
			<link>http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455198/cyberzhub-is-mining-daniweb-data</link>
			<pubDate>Thu, 23 May 2013 20:41:09 +0000</pubDate>
			<description>To Daniweb Administrators, I've just found a website which appears to be mining Daniweb data, by this I mean it has an exact replication of articles posted on Daniweb including the same usernames as those relating to members who posted content. The website is [Cyberzhub.com](http://www.cyberzhub.com) I thought I probably should ...</description>
			<content:encoded><![CDATA[ <p>To Daniweb Administrators,</p>

<p>I've just found a website which appears to be mining Daniweb data, by this I mean it has an exact replication of articles posted on Daniweb including the same usernames as those relating to members who posted content.</p>

<p>The website is <a href="http://www.cyberzhub.com" rel="nofollow">Cyberzhub.com</a></p>

<p>I thought I probably should notify you, as I'm sure it is rather stressful on your servers and is potentially stealing visitors.</p>

<p>From what I can gather, the content is posted as a Guest username of the account. Simply searching for Daniweb on the website brings up just a handful of articles originally posted on Daniweb.com but replicated on this other website.</p>
 ]]></content:encoded>
			<category domain="http://www.daniweb.com/community-center/daniweb-community-feedback/26">DaniWeb Community Feedback</category>
			<dc:creator>AHarrisGsy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/community-center/daniweb-community-feedback/threads/455198/cyberzhub-is-mining-daniweb-data</guid>
		</item>
			</channel>
</rss>