Title: Program and Question: The Commentator Post by: kutto on 2009 April 14, 23:16:56 Here is a little program I made in Fortran for my own use, but decided to share. It's The Commentator. You place it a folder with pictures named 1, 2, 3, etc., run it, and it will make a web slideshow with comments out of them. It is not at all confined to sims pictures, either. However, it is non-Awesome at the moment. Here are the problems you might run into:
1. Comments must be typed with quotes or apostrophes around them. This can cause problems with comments that contain both quotes and contractions. 2. And this is the big one, it is a .out file and can only be run in a UNIX environment or emulator. I have searched, but I cannot find a reliable way to compile this program into something windows executable. This is where my question comes in. Does anyone know a way to compile Fortran into a .exe file? I'll settle with a way to compile C in Windows; rewriting the program isn't a huge problem. If someone shows me how, or I figure it out, I will post a windows version here. Also, if you have any suggestions on features you want, ways to make it run better, or whatever, please tell me. I just hope at least one person can find some use in this. Title: Re: Program and Question: The Commentator Post by: rufio on 2009 April 16, 06:20:55 I currently use MinGW (http://www.mingw.org/) to compile C++ in Windows, and since it's gcc it will probably compile C too. You could escape the "s and 's that don't delimit the ends of the string, right?
Title: Re: Program and Question: The Commentator Post by: CatOfEvilGenius on 2009 April 18, 08:34:58 There's also Micro$oft's Visual C++, if you're willing to port to C as you said. You can get the Express edition for free from their website.
You might also try Cygwin, a free UNIX emulator for windows. There are several GNU compilers for it, I believe Fortran is among them. I use cygwin's C/C++ compilers, they make exe files. Title: Re: Program and Question: The Commentator Post by: J. M. Pescado on 2009 April 18, 13:15:05 What does it *DO*, and how does one compile this without the source, anyway?
Title: Re: Program and Question: The Commentator Post by: kutto on 2009 April 20, 01:41:22 What does it *DO*, and how does one compile this without the source, anyway? You start with a folder full of pictures named "1", "2", etc. in the order you want them. They can be of any extension. Then, you copy the program to the folder where the pictures are stored. I have uploaded the compiled version, but if you want the source, then I'll attack to this post. Once the program is started, you input the number of pictures, the extension of the files, the title of the pages/chapter, and then the program will ask for a comment for each picture. The caveat is that all comments need to be enclosed in either apostrophes or quotes, or the program will only use the first word. This can cause problems with comments that contain both quotes and contractions, but this is easily fixed in notepad. Like I said, this is non-awesome and mostly for my own amusement, but I decided to share it. Source attached in f95 format. Title: Re: Program and Question: The Commentator Post by: J. M. Pescado on 2009 April 26, 10:34:21 This code is crap, Kutto. I'm not certain what exactly it's supposed to offer that SIMPLY TYPING THE CAPTIONS INTO NOTEPAD doesn't! What exactly is the point?
|