Page 1 of 2

RSS type thing?

Posted: Sat Feb 26, 2011 8:57 am
by N64vSNES
Okay I've started planning on a side project that I think will be pretty fun to work on.

The project itself is a kinda a secret thing right now but here is a example of my question:

Suppose I have a website set up with data on a web page like so:

Code: Select all

          --------------------------
             My Awesome Projects!
          --------------------------
*The Eternal Quest Engine
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH

*Cross platform library for embedded systems
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH

*The Adventures Of Square Head for the Xbox 360
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH

*A top secret project that this page is for
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH
      -BLAH BLAH BLAH

Now in this project I'm doing something similar where I want to get this information and display it. Sure I could hard-code it or save it as a document. However this is more than likely to be updated every day with various information so I'm looking for some sort of embedded RSS feed in my application.

1- Is this possible?
2- Is C++ a good language of choice for this?

Thanks in advanced and any questions appreciated :)

Re: RSS type thing?

Posted: Sat Feb 26, 2011 11:01 am
by eatcomics
PHP or Perl would be great for that. At least the way I'm understanding it. So what are you working on like an application for a checklist? I know c++ can read from sites and I think you could rig it up to speak with a server, but honestly I think php/perl would be easier and make more sense ;)

Re: RSS type thing?

Posted: Sat Feb 26, 2011 12:59 pm
by N64vSNES
I'll die before php, so I guess it's perl. ;)

The application is somewhat graphics intensive so I guess embedding a perl interpretor would be the way?

Also I've not done anything past IO/File IO/Text formatting in Perl...So uh...Yeah feel free to help me get my foot in the door for this one. :lol:

Re: RSS type thing?

Posted: Sat Feb 26, 2011 1:50 pm
by dandymcgee
N64vSNES wrote:The application is somewhat graphics intensive so I guess embedding a perl interpretor would be the way?
Graphics intensive? Could you explain into a bit more detail what your trying to accomplish?

Re: RSS type thing?

Posted: Sat Feb 26, 2011 2:23 pm
by N64vSNES
dandymcgee wrote:
N64vSNES wrote:The application is somewhat graphics intensive so I guess embedding a perl interpretor would be the way?
Graphics intensive? Could you explain into a bit more detail what your trying to accomplish?
Haha, like I said it's a secret project.

Like I said, it's secret for now.
But the main gist of it is:

I want to be able to walk around in a 3D world were you can examine items and collect information about it. So the are various items that you can go click on and then it will bring up something like this:

Code: Select all

---Slime---
It's a dragon quest slime
Crappy example I know, but the list of items will be added/removed/edited etc on a regularly. So it makes more sense to have it download from a website/sever or just some place so that it gets updated anybody anywhere using this software will have it updated.

..I hope that made sense :S

Re: RSS type thing?

Posted: Sat Feb 26, 2011 5:10 pm
by eatcomics
I'm confused. I thought you were reading/writing to a server... that's why I suggested perl/php xD

Re: RSS type thing?

Posted: Sat Feb 26, 2011 10:16 pm
by k1net1k
this post doesnt even make sense.

Re: RSS type thing?

Posted: Sun Feb 27, 2011 12:30 am
by dandymcgee
Well if you want help your secret project is going to have become somewhat less of a secret, because I still have no idea what the hell you are trying to do.. :|

Re: RSS type thing?

Posted: Sun Feb 27, 2011 4:56 am
by ismetteren
I don't really see why you would embed a scripting language into your application just so you could pull data(text?) from a server.

To me it looks like what you are trying to do is just that, client says "hello server" server says "[text formatted so you can parse it into headlines and normal text]". Then the client would have the necessary data to continue. You can do that with sockets, and C++ does that just fine...

If you want to reed it from an actual RSS feed, it seems you just need to get some XML and parse it(http://stackoverflow.com/questions/4598 ... ss-library). As seen in the link, there are plenty of ways to do that with C++.

What would he get from using Perl or PHP?

Re: RSS type thing?

Posted: Sun Feb 27, 2011 7:56 am
by N64vSNES
I didn't think it made much sense.

Hopefully this will help:
Image

Basically I want this data stored on a web page so that even if 200000 people are using this application they will all automatically be updated.

Re: RSS type thing?

Posted: Sun Feb 27, 2011 10:21 am
by k1net1k
there are lots of ways to get this data to and from client/server
you need to be more clear about how exactly this data is going to be updated, by who, automatically, how often, secure, etc..

is the website and data the same thing ? eg can you use a html/xml file for the website and also for the data to go out to the client apps? or is the website going to show other things. i assume with 200000 connections you are going to want to be very clever with your protocol so that you arent downloading a whole webpage if all you need is a couple of numbers back to the client

rss is published once on the server and the client apps have to go and check for changes

so you could just publish a .html / .php page / rss feed / xml file and have the client apps periodically check for this file at regular intervals. these will all achieve the same outcome if you know the protocol of the message (you will as you will be creating it)

if you want it to be pushed out to all the clients instantly, then they need to have some sort of listening socket connection open to your server, and you would broadcast this event through a collection of clients connected or something.

Re: RSS type thing?

Posted: Tue Mar 01, 2011 10:13 am
by lotios611
How about an SQL database that your application can connect to. That way the website can display the data however it wants and the game can display it however it wants.

Re: RSS type thing?

Posted: Thu Mar 03, 2011 6:14 pm
by eatcomics
A database is actually a great idea. It would make sending and retrieving only the data you need that much easier.

Re: RSS type thing?

Posted: Sat Mar 05, 2011 5:24 am
by N64vSNES
SQL Database?.......TO GOOGLE!

Re: RSS type thing?

Posted: Sat Mar 05, 2011 9:23 am
by N64vSNES
Image

Where would I be without you guys :lol: