Showing posts with label Think Pascal. Show all posts
Showing posts with label Think Pascal. Show all posts

Tuesday, July 21, 2009

Grackle68k v0.0.2ß

Here's Grackle68k v0.0.2 for you to download if you like...

Download Grackle68k v0.0.2ß

Features:
  • You can post a Tweet.
  • Small amount of sanity/error checking.
  • Crashes less*
Todo:
  • Save encoded username/password.
  • Refine look and feel.
  • Character limits.
  • More error checking.
  • Display tweets.
  • etc etc etc
  • DA version.
If you try it out, let me know if it works. The authentication code isn't well tested. You can post bug reports here, or send me an email. Let me know what model of Macintosh, system version and amount of memory you're using.

I've tested it with on a 2MB SE running system 6.0.5 and an LC475 running System 7.5.3.

I need some time away from this project. I feel like I should have a lot more to show for my efforts. The Macintosh Toolbox *and* pascal wear me out. However, I expect to keep working on it. It's a good excuse to keep pushing my classic mac programming skills and keep what little I have sharp.

* My previous TCP app mpc68k crashed a lot (always). Starting again from Peter Lewis's OOP TCP libs, this time I took the time to create my own objects, and pulling the address object out of the main TCP objects seems to have made things more modular and more stable. I also put some time into planning how to use both the OOP TCP libs and TransSkel. Theoretically development should be more rapid because of this.

Sunday, July 19, 2009

So Close...

I have succesfully posted a tweet from a Mac SE running system 6.0.5 using a dialog to input the tweet, and Base64 encoding for the authentication. Woo.

How you ask?

I've spent an ungodly amount of time over the last 4 days working on a System 6, 68000 compatible twitter client. The application, called "Grackle68k", isn't ready, but I feel the need to post an update for you all. It's been a long weekend with many ups and downs. There was some serious head-on-desk moments. Writing software for modern systems is so much easier.

First of all, I may have written the most retarded Base64 encoding function ever created. One way to authenticate with Twitter is through the http header. Base64 encoding is used so that the username and password aren't plaintext when sent. Some day I'd like to document my hacky solution (it involves bit manipulation and storing binary numbers as a giant string of ones and zeros. Go on, shake your head in disbelief). For now, it works, and I'm more than fine with that.

Ah, before I forget... for the future me that forgets... I'm not positive, but it seems like 68000 macs need code segments that are under 32k. Otherwise they freak out. Try to keep that in mind.

I've been writing every line of code on an LC475 with 36 Megabytes of memory, running system 7.5.3, using an original Apple ADB keyboard. It's been a bit of an endurance run. I don't love the feel of the keyboard; it's very slow to type on. I miss having a scroll-wheel on my mouse. I miss editing with vim. I miss a high resolution screen. I miss alt-tab.

So that's about it. I set up a twitter account to test the client. You can see it here. It is a small record of my trials and tribulations, although I did purge many of them at one point. The official twitter link for the sofware is here.

I expect to release a beta version on Tuesday. I'll need help verifying that the authentication works.

Wednesday, July 9, 2008

68k Greets App

The Overview

Well, it took several days longer that I expected, but I've finished my RetroChallenge "Greets" app. I've tested it on System 6 & 9. All the app does is display a list of participants and let you see the equipment they reported they would use in the challenge.

RetroChallenge-2008.hqx

The Hiccup

The worst thing is when one's code builds and runs fine within the development environment, but when you compile the application and run it on it's own: shit hits the fan.

I know what kinds of things cause this behavior, but that doesn't mean it's easy to track down. In this case it was an un-initialized Cell type passed to LGetSelect(). I just don't understand why it worked in the first place within Think Pascal.

TextToSTR#

This was an interesting find (found at Merlin's Cavern)... It's an application that takes a tab delimited file and creates a STR# of each row of data for each row in the text file. I thought this would be very useful, but it was only moderately useful as it truncates the data even shorter than the limits of an STR# string.

On the upside, it comes with Think Pascal and CodeWarrior sources so one can modify it for their needs. Anyway, I can see it being very useful, and I post it here with a thumbs up...

texttostr.hqx [2]

Thoughts

What I have now is the basic structure of a simply useful user-interface. This model, a list and window, can fit many needs for simple applications. While by no means revolutionary, it does scream very "Macintosh".

With a grasp of LDEFs, I think I'll revisit my MPD client and add playlist functionality.

Let me know if you run it. Especially if you have any problems or catch a bug. Thanks.