 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
AJHunter Probably Naked

Joined: 04 Dec 2009 Posts: 131 Location: Usually bed
|
Posted: Mon Mar 08, 2010 10:09 am Post subject: orders of business |
|
|
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 . 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 |
|
 |
TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
Posted: Mon Mar 08, 2010 10:51 am Post subject: |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Mon Mar 08, 2010 11:18 am Post subject: Re: orders of business |
|
|
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 |
|
 |
AJHunter Probably Naked

Joined: 04 Dec 2009 Posts: 131 Location: Usually bed
|
Posted: Mon Mar 08, 2010 10:55 pm Post subject: |
|
|
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!  _________________ *snap*
*wink*
*finger-guns* |
|
Back to top |
|
 |
|
|
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
|