Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

orders of business

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> Paradox Lounge
View previous topic :: View next topic  
Author Message
AJHunter
Probably Naked




Joined: 04 Dec 2009
Posts: 131
Location: Usually bed

PostPosted: Mon Mar 08, 2010 10:09 am    Post subject: orders of business Reply with quote

First order of business:
I would like to apologise for the rant in my previous topic, "I Has A Forum". I was mad and I had a keyboard. That's never a good combination. It was a slip in judgement for which I am embarrassed Crying. It will not happen again.

###

Second order of business:
It's not so clear weather the HELP! section is for OHR-related stuff exclusively or not, so, to be on the safe side, I'm asking for some non-OHR help here...
I need to know how to, if it's possible, use C++ to get a picture from the Internet and display it in a window (not a DOS box or a console, but an actual program window) so I can get the latest xkcd without having to use a web browser and actually type in that long, tedious, gargantuan url. Also, I need to know how to make a install package for Ubuntu, so I can get the first-ever xkcd Ubuntu package on the Ubuntu software centre.
_________________
*snap*
*wink*
*finger-guns*
Back to top
View user's profile Send private message
TwinHamster
♫ Furious souls, burn eternally! ♫




Joined: 07 Mar 2004
Posts: 1352

PostPosted: Mon Mar 08, 2010 10:51 am    Post subject: Reply with quote

This works better

[Edit]
Ohh, totally misread your post.
I thought you wanted to get into C++ to get (understand) the latest XKCD.


Last edited by TwinHamster on Mon Mar 08, 2010 11:44 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail AIM Address
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Mon Mar 08, 2010 11:18 am    Post subject: Re: orders of business Reply with quote

AJHunter wrote:

I need to know how to, if it's possible, use C++ to get a picture from the Internet and display it in a window (not a DOS box or a console, but an actual program window) so I can get the latest xkcd without having to use a web browser and actually type in that long, tedious, gargantuan url.


Yes, you can write a program that downloads a url and shows it in a window. I wouldn't do it in C++ personally. I would use python. Python's urllib library would make it easy to download the file. As for showing it in a window, you have a couple options. One would be to create a window with a windowing toolkit like pygtk or wxpython and show the image in it. Another method would be to just save the image to a file, and then use python's subprocess.Popen to spawn an external image viewer.

Although you might want to look into comic-reading utilities like buoh or dailycomics, since they probably already do what you want.


AJHunter wrote:
Also, I need to know how to make a install package for Ubuntu, so I can get the first-ever xkcd Ubuntu package on the Ubuntu software centre.


I only have minimal experience with creating deb packages, but this thread in the ubuntu forums might get you started: http://ubuntuforums.org/showthread.php?t=51003
Back to top
View user's profile Send private message Send e-mail Visit poster's website
AJHunter
Probably Naked




Joined: 04 Dec 2009
Posts: 131
Location: Usually bed

PostPosted: Mon Mar 08, 2010 10:55 pm    Post subject: Reply with quote

thanks! but I'm thinking more alomg the lines of not displaying the web page it's self, just the comic. Oh! There's gonna be a new one today! Big grin
_________________
*snap*
*wink*
*finger-guns*
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> Paradox Lounge All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group