Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II » Templates wanted!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Templates wanted! [message #276853] Sat, 27 December 2014 07:53 Go to next message
Harry Potter is currently offline  Harry Potter
Messages: 1304
Registered: March 2012
Karma: 0
Senior Member
I am looking for some Apple2 emulation-related templates to add to Template Creator for DOS. My e-mail address can be found in TmpCreat, and you can find TmpCreat at https:/sourceforge.net/projects/tmpcreat/files.
Re: Templates wanted! [message #276877 is a reply to message #276853] Sat, 27 December 2014 19:07 Go to previous messageGo to next message
Bill Buckels is currently offline  Bill Buckels
Messages: 1418
Registered: November 2012
Karma: 0
Senior Member
"Harry Potter" <rose.joseph12@yahoo.com> wrote:
> I am looking for some Apple2 emulation-related templates to add to Template
> Creator for DOS.

Shouldn't this be posted as a request to the experts in
comp.emulators.apple2? I am willing to bet that most of the folks in this ng
don't know much about Apple 2 emulation-related templates.

Bill
Re: Templates wanted! [message #276886 is a reply to message #276877] Sun, 28 December 2014 04:08 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: osgeld

On Saturday, December 27, 2014 6:07:27 PM UTC-6, Bill Buckels wrote:
> "Harry Potter" <rose.joseph12@yahoo.com> wrote:
>> I am looking for some Apple2 emulation-related templates to add to Template
>> Creator for DOS.
>
> Shouldn't this be posted as a request to the experts in
> comp.emulators.apple2? I am willing to bet that most of the folks in this ng
> don't know much about Apple 2 emulation-related templates.
>
> Bill

I still havent figured out what an MS Dos template is supposed to be, ran dos for decades never used one
Re: Templates wanted! [message #276894 is a reply to message #276877] Sun, 28 December 2014 06:04 Go to previous messageGo to next message
Harry Potter is currently offline  Harry Potter
Messages: 1304
Registered: March 2012
Karma: 0
Senior Member
On Saturday, December 27, 2014 7:07:27 PM UTC-5, Bill Buckels wrote:
> Shouldn't this be posted as a request to the experts in
> comp.emulators.apple2? I am willing to bet that most of the folks in this ng
> don't know much about Apple 2 emulation-related templates.
>
> Bill

Thank you, Bill. I didn't know about that news group.
Re: Templates wanted! [message #276903 is a reply to message #276886] Sun, 28 December 2014 06:08 Go to previous messageGo to next message
Harry Potter is currently offline  Harry Potter
Messages: 1304
Registered: March 2012
Karma: 0
Senior Member
On Sunday, December 28, 2014 4:08:33 AM UTC-5, osg...@cheesefactory.us wrote:
> I still havent figured out what an MS Dos template is supposed to be, ran dos for decades never used one

Basically, a template could be anything useful, i.e. a ProDOS disk image with software you need again and again, or a code module or snippet used often.
Re: Templates wanted! [message #276912 is a reply to message #276886] Sun, 28 December 2014 06:24 Go to previous messageGo to next message
Bill Buckels is currently offline  Bill Buckels
Messages: 1418
Registered: November 2012
Karma: 0
Senior Member
<osgeld@cheesefactory.us> wrote:
> I still havent figured out what an MS Dos template is supposed to be, ran
> dos for decades never used one

Using examples and samples is a good way to learn about writing programs.
Using someone else' s style stifles creativity and takes the fun out of
simple things like MS-DOS and Apple II programs.

When I worked in CAD/CAM/CAE in the mid-80's I wrote parametric drawing
script generators to output FORTRAN-like mini-computer based scripts for
creating manufacturing details from drawing libraries. Some of these could
output 1-2 million permutations of standard products that we produced in a
company of about 1000 people.

The script generators were compiled and run on a PC and then the scripts
were uploaded to a large mini to create and plot drawings and CNC layouts.

I did something similar in an early version of Autocad (version 2.1) on the
PC (Autolisp Scripts for Raster Image Overlays). I also wrote C code
generators for menu systems and stuff like that... more like CASE tools
really.

By the time I got into larger projects with greater complexity and teams of
up to 100 programmers, it became trivial to sit down with an empty screen
and cut thousands of lines of new code. We used something called programming
standards to make sure our code could be shared but stayed away from CASE
tools.

My MS-DOS work also included low-level code like TSR's and device drivers.

But I still used code generators in some emvironments like Clarion as a
starting point.

My Windows 3.1 code began in 1991-1992 in C and C++ using samples and
hand-coding in the API. Borland's C++ 3.1 IDE wasn't much to my liking so I
stuck with MSC++. Even in recent years with cross-platform development in Qt
I stayed away from designer code.

I think that a template must be some kind of primitive version of what I did
as a beginner in the industry. Before that it was just a hobby like it is
today. The only time I have used a screen designer in recent years is to do
WEB apps in vb.net or forms for MS-ACCESS but only as a proof of concept.

Templates are the last thing I would collect at this point in my life. As
far as emulator templates go, I couldn't begin to imagine what that even
means.

Here's what Wikipedia says:

http://en.wikipedia.org/wiki/Template

Computer science and information technology
Template (file format), a standardized non-executable file type used by
computer software as a pre-formatted example on which to base other files,
especially documents

1. Template (C++), a tool for generic programming especially in the C++
language

2. Template metaprogramming, a programming technique used by a compiler to
generate temporary source code

3. Template method, an object-oriented design pattern

4. Template processor, a system that combines a template with data to
produce an output.

5. Template (word processing), a standard document containing layout and
styles used to configure word processing software

6. Style sheet (web development) or master page on which you can globally
edit and format graphic elements and text common to each page of a document

7. Web template or web template system, a master page used to produce web
pages

8. A main document from which mail merge documents are created

Bill
Re: Templates wanted! [message #276921 is a reply to message #276912] Sun, 28 December 2014 06:57 Go to previous messageGo to next message
Harry Potter is currently offline  Harry Potter
Messages: 1304
Registered: March 2012
Karma: 0
Senior Member
If it helps, my definition of template is a file from which other files can be derived but is not limited to files.
Re: Templates wanted! [message #276984 is a reply to message #276903] Sun, 28 December 2014 09:30 Go to previous messageGo to next message
Bill Buckels is currently offline  Bill Buckels
Messages: 1418
Registered: November 2012
Karma: 0
Senior Member
"Harry Potter" <rose.joseph12@yahoo.com> wrote:
> Basically, a template could be anything useful

That's not what a template is at all.

"a standardized non-executable file type"

http://en.wikipedia.org/wiki/Template

> a ProDOS disk image with software you need again and again, or a code
> module or snippet used often.

http://en.wikipedia.org/wiki/Category:Computer_file_systems

"A file system in computing, is a method for storing and organizing computer
files and the data they contain to make it easy to find and access them."

As far as info goes, a Wiki is probably the best way to share information
today:

http://en.wikipedia.org/wiki/Wiki

Bill
Re: Templates wanted! [message #277663 is a reply to message #276877] Tue, 30 December 2014 14:13 Go to previous messageGo to next message
Michael AppleWin Debu is currently offline  Michael AppleWin Debu
Messages: 1262
Registered: March 2013
Karma: 0
Senior Member
On Saturday, December 27, 2014 4:07:27 PM UTC-8, Bill Buckels wrote:
> Shouldn't this be posted as a request to the experts in
> comp.emulators.apple2?

/me Glares at Bill ...

/sarcasm Great! Now we have this tool spamming THAT newsgroup as well ... Gee, "Thanks", Bill. Push him to "our" side. :-)

Although I can't stay TOO mad at you since you _did_ send a meet & great in your Bin2Rag Doc which I never saw until too. :-)
http://www.appleoldies.ca/graphics/hgr/Bin2Rag.pdf
Re: Templates wanted! [message #277664 is a reply to message #277663] Tue, 30 December 2014 14:24 Go to previous messageGo to next message
Bill Buckels is currently offline  Bill Buckels
Messages: 1418
Registered: November 2012
Karma: 0
Senior Member
"Michael 'AppleWin Debugger Dev'" <michael.pohoreski@gmail.com> wrote:
> /me Glares at Bill ...

Hahahahaha! <evil grin>

> /sarcasm Great! Now we have this tool spamming THAT newsgroup as well ...
> Gee, "Thanks", Bill. Push him to "our" side. :-)

Well he did say something about this being Apple II emulator related.

> Although I can't stay TOO mad at you since you _did_ send a meet & great in
> your Bin2Rag Doc which I never saw until too. :-)
http://www.appleoldies.ca/graphics/hgr/Bin2Rag.pdf

I wrote a million of 'em (Jimmy Durante) learning about the Apple II. Too
many to go back and correct at this point so I just keep writing new ones.
Mostly written in a dream state after all... with real work on the
back-burner and nothing of interest on TV.

The RAG file format goes into Bmp2DHR next. I have the DHGR image fragment
stuff mostly under control. This is like latin so I appreciate not needing
hit a moving target... but it isn't as easy as it looks. Or it wouldn't be
worth our whiles.

Bill
Re: Templates wanted! [message #277854 is a reply to message #276921] Mon, 05 January 2015 12:06 Go to previous messageGo to next message
scott is currently offline  scott
Messages: 4237
Registered: February 2012
Karma: 0
Senior Member
In article <24a2b16b-d9af-45cf-af3e-258fe4ee17d5@googlegroups.com>,
Harry Potter <rose.joseph12@yahoo.com> wrote:
> If it helps, my definition of template is a file from which other files
> can be derived but is not limited to files.

Even that sounds hopelessly vague. "A file from which other files can be
derived, but is not limited to files?" If you're looking to write out a
particular file format, I'd think it'd be better to either (1) find a system
call or library routine in your target environment that does what you want
or (2) dig into the documentation for the filetype in question and implement
it from the specs.

It's been a while since I've needed to do this, but as an example, a 24-bit
uncompressed BMP image can be created (IIRC) by populating BITMAPFILEHEADER
and BITMAPINFOHEADER structures, writing them to disk, and then writing the
bitmap data, scanning left-to-right and bottom-to-top (a quick experiment
suggests that you also need to align lines on DWORD boundaries). If you
don't have BITMAPFILEHEADER and BITMAPINFOHEADER defined for you already
(you probably don't if you're not compiling for Windows), you can
copy-and-paste from these definitions:

http://msdn.microsoft.com/en-us/library/windows/desktop/dd18 3374%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/dd18 3376%28v=vs.85%29.aspx

That would be more flexible and less prone to breakage than trying to
populate some sort of template file to generate a BMP.

Implementation of other formats is left as an exercise for the reader, but
would follow a similar process involving specifications and documentation.
Google is your friend.

_/_
/ v \ Scott Alfter (remove the obvious to send mail)
(IIGS( https://alfter.us/ Top-posting!
\_^_/ >What's the most annoying thing on Usenet?
Re: Templates wanted! [message #278026 is a reply to message #277854] Mon, 05 January 2015 18:38 Go to previous messageGo to next message
Michael AppleWin Debu is currently offline  Michael AppleWin Debu
Messages: 1262
Registered: March 2013
Karma: 0
Senior Member
On Monday, January 5, 2015 9:07:24 AM UTC-8, Scott Alfter wrote:
> If you
> don't have BITMAPFILEHEADER and BITMAPINFOHEADER defined for you already
> (you probably don't if you're not compiling for Windows), you can
> copy-and-paste from these definitions:
>
> http://msdn.microsoft.com/en-us/library/windows/desktop/dd18 3374%28v=vs.85%29.aspx
> http://msdn.microsoft.com/en-us/library/windows/desktop/dd18 3376%28v=vs.85%29.aspx

IMHO, those are shitty definitions.

From my 'hgr2rgb' project:
https://github.com/Michaelangel007/hgr2rgbntsc/blob/master/s rc/main.cpp

#include <stdint.h>

#if defined(_MSC_VER)
#define PACKED
#pragma pack(push,1)
#endif
#if defined(__GNUC__)
#define PACKED __attribute__ ((__packed__))
#endif

struct WinBmpHeader_t
{
// BITMAPFILEHEADER // Addr Size
uint8_t nCookie[2] ; // 0x00 0x02 BM
int32_t nSizeFile ; // 0x02 0x04 0 = ignore
int16_t nReserved1 ; // 0x06 0x02
int16_t nReserved2 ; // 0x08 0x02
int32_t nOffsetData ; // 0x0A 0x04
// == 0x0D (14)

// BITMAPINFOHEADER
int32_t nStructSize ; // 0x0E 0x04 biSize
int32_t nWidthPixels ; // 0x12 0x04 biWidth
int32_t nHeightPixels ; // 0x16 0x04 biHeight
int16_t nPlanes ; // 0x1A 0x02 biPlanes
int16_t nBitsPerPixel ; // 0x1C 0x02 biBitCount
int32_t nCompression ; // 0x1E 0x04 biCompression 0 = BI_RGB
int32_t nSizeImage ; // 0x22 0x04 0 = ignore
int32_t nXPelsPerMeter ; // 0x26 0x04
int32_t nYPelsPerMeter ; // 0x2A 0x04
int32_t nPaletteColors ; // 0x2E 0x04
int32_t nImportantColors; // 0x32 0x04
// == 0x28 (40)

// RGBQUAD
// pixelmap
} PACKED;

#ifdef _MSC_VER
#pragma pack(pop)
#endif // _MSC_VER
Re: Templates wanted! [message #278028 is a reply to message #277854] Mon, 05 January 2015 19:05 Go to previous messageGo to next message
Harry Potter is currently offline  Harry Potter
Messages: 1304
Registered: March 2012
Karma: 0
Senior Member
On Monday, January 5, 2015 12:07:24 PM UTC-5, Scott Alfter wrote:
> Harry Potter wrote:
>> If it helps, my definition of template is a file from which other files
>> can be derived but is not limited to files.
>
> Even that sounds hopelessly vague. "A file from which other files can be
> derived, but is not limited to files?" If you're looking to write out a
> particular file format, I'd think it'd be better to either (1) find a system
> call or library routine in your target environment that does what you want
> or (2) dig into the documentation for the filetype in question and implement
> it from the specs.
>
Okay, this is what TmpCreat does: let's say you have a form which you need many times. Or, maybe a C (or other computer language) module you may need again and again, with minor changes. Or some MS-Word document template as a basis for several short stories (Of course, MS-Word has its own template-handling.). TmpCreatDOS can do all that. What's more, you can even edit the templates, as TmpCreat doesn't attach any information to the templates. Rather, its information is stored in separate data files. Does this help? Sorry for the confusion. :(

BTW, Template Creator for Windows is currently under development. I will announce it when I upload it.
Re: Templates wanted! [message #278197 is a reply to message #278028] Wed, 07 January 2015 14:01 Go to previous messageGo to next message
D Finnigan is currently offline  D Finnigan
Messages: 1154
Registered: October 2012
Karma: 0
Senior Member
Harry Potter wrote:
>
> BTW, Template Creator for Windows is currently under development. I will
> announce it when I upload it.

You should make all your announcements in the comp.misc newsgroup. A lot of
people are in that group and so you will get a lot of useful feedback and
comments from those people.

Here is a link for you to that group:
http://groups.google.com/group/comp.misc
Re: Templates wanted! [message #278205 is a reply to message #278197] Wed, 07 January 2015 15:15 Go to previous message
Harry Potter is currently offline  Harry Potter
Messages: 1304
Registered: March 2012
Karma: 0
Senior Member
On Wednesday, January 7, 2015 2:01:58 PM UTC-5, D Finnigan wrote:
> Harry Potter wrote:
>>
>> BTW, Template Creator for Windows is currently under development. I will
>> announce it when I upload it.
>
> You should make all your announcements in the comp.misc newsgroup. A lot of
> people are in that group and so you will get a lot of useful feedback and
> comments from those people.
>
> Here is a link for you to that group:
> http://groups.google.com/group/comp.misc

Thank you! :D
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: A2SimpleIO?
Next Topic: Obtaining a null modem cable for my 2GS
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Mar 28 12:44:06 EDT 2024

Total time taken to generate the page: 0.04218 seconds