RSS type thing?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

RSS type thing?

Post 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 :)
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: RSS type thing?

Post 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 ;)
Image
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: RSS type thing?

Post 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:
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: RSS type thing?

Post 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?
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: RSS type thing?

Post 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
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: RSS type thing?

Post by eatcomics »

I'm confused. I thought you were reading/writing to a server... that's why I suggested perl/php xD
Image
User avatar
k1net1k
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 563
Joined: Sun Nov 07, 2010 2:58 pm
Contact:

Re: RSS type thing?

Post by k1net1k »

this post doesnt even make sense.
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: RSS type thing?

Post 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.. :|
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
ismetteren
Chaos Rift Junior
Chaos Rift Junior
Posts: 276
Joined: Mon Jul 21, 2008 4:13 pm

Re: RSS type thing?

Post 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?
Image ImageImage Image
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: RSS type thing?

Post 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.
User avatar
k1net1k
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 563
Joined: Sun Nov 07, 2010 2:58 pm
Contact:

Re: RSS type thing?

Post 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.
User avatar
lotios611
Chaos Rift Regular
Chaos Rift Regular
Posts: 160
Joined: Sun Jun 14, 2009 12:05 pm
Current Project: Game engine for the PC, PSP, and maybe more.
Favorite Gaming Platforms: Gameboy Micro
Programming Language of Choice: C++

Re: RSS type thing?

Post 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.
"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: RSS type thing?

Post by eatcomics »

A database is actually a great idea. It would make sending and retrieving only the data you need that much easier.
Image
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: RSS type thing?

Post by N64vSNES »

SQL Database?.......TO GOOGLE!
N64vSNES
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Thu Aug 12, 2010 11:25 am

Re: RSS type thing?

Post by N64vSNES »

Image

Where would I be without you guys :lol:
Post Reply