|
That's easy. If you want it in C here it is, day of the week from day, month year:
int dow (int y, int m, int d)
{
static char const t[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};
y -= m < 3;
return (y + y/4 - y/100 + y/400 + t[m-1] + d) % 7;
}
I know I'm not supposed to post code in the lounge but it's for a good cause
Mircea
|
|
|
|
|
Thanks! But I got it all in one single line of Turbo Pascal code. That's what I wanted to replicate, just because. 
|
|
|
|
|
|
|
Thanks! Been there before. Got the distributable but not the source code.
|
|
|
|
|
I'm not a hoarder or a nostalgic kind of guy.
Scrap and Recycle all that crap.
There's no value in any of that; technology does not age well.
Schools use free stuff or educational products.
And amateurs also free code tools and languages.
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
I've been getting back into old systems; Z80, want to do 8085 or 8086, 8051, etc..
I'm a book lover, would love to know what you have.
As far as software I don't know if I could use it or not.
Would be more than willing to pay postage and incidentals.
Give me coffee to change the things I can and wine for those I can not!
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
Latest Article: Simon Says, A Child's Game
|
|
|
|
|
I'll make a note of that, Mike. At the moment, I'm staring at VS 2008 Standard edition and VS 2010 Professional edition (Academic) taking up space on my shelf, but there's a ton more. When I get it all into a list, I'll put it up here, or contact you if you have email enabled.
Will Rogers never met me.
|
|
|
|
|
For a long time, i had a Visual C++ installer CD, the 16-bit version. Must be still at home.
|
|
|
|
|
Somewhere around here, I think I still have Visual C++ 1.2. Or was it 1.4? I don't remember, but I still have the Scribble tutorial book that came with it. What a useless scrap of paper... When MS discovered that they have no talent for writing technical manuals, instead of hiring people who can write, they just quit providing documentation. I despise them for that, and always will. A light went out in the Universe when printed knowledge ceased to exist, and MS started it.
Will Rogers never met me.
|
|
|
|
|
Roger Wright wrote: When MS discovered that they have no talent for writing technical manuals, instead of hiring people who can write, they just quit providing documentation. Well, the first thing that happened was that the users stopped reading the documentation.
Old memory: I was working in an office landscape then, and heard the guy in the cubicle across the walkway receive a phone call - he was a support guy for the Fortran compiler (it is that long ago!). Obviously I could hear only one side of the conversation- It went like this:
Yes, what is your problem?
I understand ... Do you have a Fortran manual at hand?
Could you open it on page 147?
Good. Will you read out to me the first paragraph on that page?
Oh sure, that's what we are here for, to help you with your problems. Have a good day!
The fun thing is that this support man never picked up his own Fortran manual to find the right page; he took it all from memory.
So all companies stopped writing manuals, more or less. (Some environments never had any - I refuse to call *nix man pages 'technical manuals'). Those companies providing 'something' on paper should be ashamed for calling it 'documentation'. More than 30 years ago, I saved in my scrapbook a comic drawing of a totally broken down man, weeping at the psychiatrists desk. The psychiatrist tries to comfort him: "Having been diagnosed as a dyslectic doesn't mean that you have to give up a writing profession - you can still make a great career in computer documentation!"
Practically speaking, no companies provide good documentation, and hasn't done so for several decades. If you ask for manuals, textbooks, tutorials, they say that they leave that kind of stuff to independent writers and publishing houses. But even those writers usually deliver mediocre quality. One part of it is the readers' expectations: I buy several books that have a very high rating and lots of recommendations on Amazon and other sites, and when I get the book, it proves to be a mess, poorly organized, terribly useless examples, extremely wordy with lots of unnecessary repetitions yet missing essential information, usually with a useless index (sometimes not updated from the previous edition, so the references are all wrong!)
I never had the impression that MS documentation is (/was) any worse than the others. They are all that bad!
|
|
|
|
|
Technical authorship is a highly skilled job, one that developers are hopeless at (and unwilling to do anyway, if they can avoid it). The trouble is that it is the code that purchasers buy, so the first cost to be stripped away by software houses was the quality documentation created by the skilled technical authors, replaced by rubbish "online" documentation provided by reluctant developers. There's a whole generation of users now who have never experienced anything else and know no different. No doubt some claim this is progress!
|
|
|
|
|
haughtonomous wrote: first cost to be stripped away by software houses was the quality documentation created by the skilled technical authors,
So back in the good ol' days it was better right?
When exactly was that? What year?
I remember using a library in the 90s (probably latter half.) Best documentation I had ever seen. That one library. Obviously I had seen other libraries, quite a few, which had miserable documentation. So certainly those did not have those great authors.
In the 80s I learned C++ and OO programming from 3 books. One wasn't even for C++. The C++ compilers, at least two or perhaps three, that I used had virtually no documentation. One of the C++ compilers deliberately did not even match what Stroustrup (one of the books) documented and creator of C++. That 'feature' was not in any of the documentation.
In the 70s the only programming book at all of any sort available to me for Fortran and Pascal were manuals that were chained to an operations desk. Those were not learning tools at all. Just a listing of methods and parameters for each. (In another post today I figured that one of those manuals, in current dollars would have cost about $1000 to buy.)
Today I can probably buy 50 real books, on paper, that cover C++ in various forms.
I can buy at least 10 books, again on paper, that cover Object Oriented Cobol.
To me it certainly seems like there is no lack of documentation now versus way back when.
|
|
|
|
|
Technical authorship is a highly skilled job, one that developers are hopeless at (and unwilling to do anyway, if they can avoid it). The trouble is that it is the code that purchasers buy, so the first cost to be stripped away by software houses was the quality documentation created by the skilled technical authors, replaced by rubbish "online" documentation provided by reluctant developers. There's a whole generation of users now who have never experienced anything else and know no different. No doubt some claim this is progress!
|
|
|
|
|
CD I have for Visual Studio is 1.52c which is for MS-DOS and Windows (no stated version on the CD itself). It has a copyright date on it where the last year is 1995.
|
|
|
|
|
Couldn't have put it better myself. I used to hate the MS hierarchical online documentation tier upon tier of web pages that offered nothing useful other than more links to ever more such pages until one was completely lost. I used to yearn back to the days when I worked on Apollo Domain workstations that came with a stack of thick books that were stuffed with useful and in-depth detail that you could actually read and learn from!
|
|
|
|
|
Me too, the VC++ IDE ver 6.0 holds a warm place in my little black heart
|
|
|
|
|
Roger -- the honest answer you may be seeking is that you're hoarding junk.
Sticking to an area I know, consider compilers, IDEs, associated software, and topical books. Relatively few people are using out-of-support software, and if they are, they already have what they need. If they don't, how are you going to find them?
If you want to try, catalog part of the materials, and post on Facebook Marketplace -- there's a buy-it-for-free (can't recall what the name is). List lots of materials and give it away. If after a month, there's no takers, it's junk. Recycle books, CDs/DVDs go in the landfill (sadly). If you still have floppy disks? They fizzle after 10 years-ish, so they are probably not readable, assuming you can find someone with a working floppy drive.
There are other online avenues to give things away, but FB has an active market, so it came to mind.
Regarding your buried container -- why don't you unblock the entrance and let folks steal what they want? It saves you a lot of hassle, and it's doing what you want -- giving it to someone who wants it.
About 15 years ago I went on a cleaning binge of computer junk. I had shelves of books, containers of CDs/DVDs, and boxes of old parts. In my binge I wiped out a quarter of the hoard, things I knew was never gonna be useful again. Probably only a quarter was actually useful, half was questionable, but it was a start.
I do this every 2 or 3 years. It's taken numerous iterations, but the clutter is greatly reduced.
Although I see I have C# 2008, ASP.NET v2, and WordPress v2 books on my shelf, so it's time to make another stab at it ...
|
|
|
|
|
BryanFazekas wrote: why don't you unblock the entrance and let folks steal what they want?
Probably won't be stealing (at least not when they figure out what is there) but will trash it and/or attempt to live there.
|
|
|
|
|
One possibility is to establish build your own computer (software) museum
The only remaining issue is that nowadays, noone really cares for history, computer guys even less than the man in the street. Maybe you can get a journalist to write a story for your local (web) newspaper. Maybe a few people will read past the story of the headline, but very few (if any at all) will come to see your museum. If anyone comes, they will walk one short round with a blank face, and leave the place without a single question. Maybe they ask if there is a place where they can buy a cup of coffee or a coke.
It really doesn't make a difference if you establish that museum or not: In either cases, people have no real interest in it. So why bother. It is the same with your old photo albums, your library, your recipe collection, your Super-8 and VHS movies from when your kids (/grandkids) where little: The only person caring for it is yourself. When your heirs come to clean up after you, they'll throw all of it in the garbage. Even childhood movies of themselves: How many years (/decades) have passed since you last watched old family movies with them?
When you realize that you will never yourself ever take something old stuff into use, then you can be assured that noone else will care for it, either.
|
|
|
|
|
I have a saying.
Nostalgia is a prison if you choose to live there.
Thanksgiving (USA) week 2008 a fire started in a home two doors down from us. The fire damaged seven homes including the back half of mine. Turns out those fiberglass shower remodels are very flammable. My office shared a common wall with the bathroom and most of my computer documentation, books, magazines, and physical software was destroyed.
I had been a bit of a hoarder regarding computer stuff. After the fire I ended up throwing away a lot of PC XT/AT clone boards and things that I salvaged from customer upgrades over the years. Basically, I started fresh moving forward.
But there are some things that I really do wish I could find a dozen years after the fact. It’s almost all documentation and some software.
I had user guides and service guides for older equipment that I have seen people ask in vintage computer forums. I had never digitized them and now can’t. This isn’t older versions of current items, but unique items when CP/M, Flex and OS/9 were popular, in the late 70’s and very early 80’s. There was a lot of history there.
I had a collection of manuals from the late 80’s and 90’s for PC multi-function cards and motherboards. I see retro computer channels that could have used that information.
The other stuff I really haven’t missed or really would have been able to do anything with today.
One recuring thought I do have is that I had a Motorola/Hitachi 6809 based PC from Canon. Same Canon that makes cameras, copiers, calculators, etc. I would have liked to see if I could have gotten OS9 or Flex running on it. All I really need is the memory map of the computer to answer the question, but I haven’t found any documentation.
I keep looking.
Rich Shealer
|
|
|
|
|
I bought my son an old IBM Selectric typewriter for $3 that was supposedly in working condition, but back home, the main shaft was frozen. I used to fix them, but forgot a lot of details, especially about timing, and could not find an IBM manual, even from IBM, that described how to service it, so after describing to my son how it was supposed to work, I threw the IBM Selectric away. The end.
|
|
|
|
|
Most companies keep a very limited history of their products. Information, like history, is ephemeral.
|
|
|
|
|
Bruce Patin wrote: I threw the IBM Selectric away
Why didn't you let him tear it apart? At least under the suggestion that he try to fix it himself?
|
|
|
|
|
I think I did suggest that, but he wasn't interested.
|
|
|
|
|