Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: ciVic on February 24, 2012, 05:36:14 PM
-
Hi all,
in the past weeks I've written a new client for twitter for classic Amigas. You [strike]will be [/strike] are able to download it from aminet:
[size=+1]http://aminet.net/package/comm/misc/twittAmiga[/size]
If you experience problems please start it from a shell
twittamiga debug
or try the version with ixemul:
http://d-fence.cjb.net/twittAmiga.lha
Why did I do this? Well, Amiga was my main computer in the nineties, MUI has its 20th anniversary next year, and my latest amiga program is also 20 years old. Time to write a new one, this time using MUI, which I never used before. So i thought about what kind of program I could write this time and I thought a twitter client would be a cool thing.
Since twitter requires OAuth it is not easy to write a client from scratch. Therefore I used some libs like libcurl and libxml2 to get it working. This makes the exe quite large, sorry for that. And since I wanted to have a working client first there are only a few features. But when I'm in the mood to make updates I will make a poll which new featuers would be interesting. E.g. the streaming API (something like push mail) or a user timeline in a threaded view known from forums.
If you find bugs (and I think there will be some) you can post them here. I also do not know what exactly are the minimum requirements. Some MUI classes for sure, and some MB of RAM, but which OS version I'm not sure. Remember to set your username and password in the tooltypes before the first start.
Happy testing :-)
Edit: Version 1.35 is out. Changes:
- Changed from libxml2 to xml2.library, no more ixemul!
- Less RAM needed
- Debug output optional
-
Screenshots :-)
-
Very nice, we can test it for you. It's cool that you created this.
-
Will DL it when I get home and try it out for you. Love trying out new stuff :)
-
Nice work, look forward to trying it...
-
Trying it out now. I'm surprised you didn't simply fix the server login issues with AmiTwitter rather than write a whole client from scratch, but good work anyway! If you'd like I can make some GUI images and an icon for the program, I was going to make some for AmiTwitter but since that's still dead in the water I'd be happy to move on to this.
Here's AmiTwitter anyway, in case you hadn't already checked ito ut and looked through the source code for something useful: http://sourceforge.net/projects/amitwitter/
-
Can this program run on my Amiga 1200? I have a 68030 with 16 MB of RAM and AGA, does it work on it? Thanks in advance.
-
It works on my A1200 with 8MB RAM card (although I can't go online at the same time since using the PCMCIA slot reduces the RAM to 5.5MB and that's not quite enough). You should have no problem with 16MB RAM.
-
Here's a screenshot of twittAmiga running on my 030 A1200. I was able to send a "tweet" but it failed and gave me this error message when attempting to load the feed...
(http://www.amiga.org/gallery/images/2061/1_twittAmigaScreenshot.png)
-
Here's a screenshot of twittAmiga running on my 030 A1200. I was able to send a "tweet" but it failed and gave me this error message when attempting to load the feed...
(http://www.amiga.org/gallery/images/2061/1_twittAmigaScreenshot.png)
If I want to have the same theme as yours...how do I go about doing it? Thanks in advance.
-
It looks well done. If I used Twitter I'd certainly give this a whirl.
-
Very Nice!
I will try tomorow and will give my feedback!.. Looks Great!
-
If I want to have the same theme as yours...how do I go about doing it? Thanks in advance.
There are a bunch of patches and bitmap images you will have to install, but Cammy is working on a theme manager program which will let you easily install and switch between themes. It will be included in our upcoming Workbench pack, you're welcome to test out the current build if you'd like, it will boot up looking like the screenshot. Let me know if you're interested and I'll upload the LHA of the whole system we're building.
-
Here's a screenshot of twittAmiga running on my 030 A1200. I was able to send a "tweet" but it failed and gave me this error message when attempting to load the feed...
(http://www.amiga.org/gallery/images/2061/1_twittAmigaScreenshot.png)
Since you already said, that you only have 8 MB RAM I think that it is not enough to load the timeline. I think this needs a lot of RAM since I use the libxml2 to parse the whole thing.
That's too bad, I hoped 8 MB is enough. I will see if I can reduce the memory usage. If you think there must an other reason for this error you could start it from a shell:
twittamiga >debug.log
Then I can see at which state it crashes. But before sending the log to me check if there isn't anything private inside (I hope I do not log passwords ;-) ).
And yes, it would be very nice if you could create some icons for it. I also see on your screenshot, that the icon I made for the exe does not work (oh I think now I know what the switch OS 3.9 icon is for *lol*). I'm a programmer, not an icon expert. So I think you can make much nicer icons.
-
Sorry, I should have mentioned that I was trying this on my other A1200 with 64MB RAM. We have several Amigas set up for software development and testing here. If I can figure out a way to go online through a null-modem cable on the 8MB A1200 I could test if it worked or not since the program loads up in that much RAM, but using my PCMCIA network card reduces it to 5.5MB.
I'm running the same Workbench 3.1 setup on both machines I've tested it on so far. Cammy is also testing it on her 030 A1200 with 64MB so hopefully she'll feel up to posting her results too.
Edit: Here's the log file from the results, the program failed again after trying to load the feed: http://pastebin.com/VTmiKTue
-
Edit: Here's the log file from the results, the program failed again after trying to load the feed: http://pastebin.com/VTmiKTue
It really looks like a problem with the libxml2. Page loading was successful, but when the xml file is passed to the libxml2 it crashes before anything can be found in the file. Ok many thanx, I will try to find a setup where I have the same problem, maybe I should try OS 3.1.
-
very good job!
btw ... what version of ixemul.library are you using?
-
Version of my ixemul.library is 63.1. Maybe your ixemul is too old, Rebel-CD32?
-
There are a bunch of patches and bitmap images you will have to install, but Cammy is working on a theme manager program which will let you easily install and switch between themes. It will be included in our upcoming Workbench pack, you're welcome to test out the current build if you'd like, it will boot up looking like the screenshot. Let me know if you're interested and I'll upload the LHA of the whole system we're building.
I am indeed interested, yes please. I just want a program where if I want to change the entire theme of my system I just go to a website, pick a cool theme I like download it, open the program select this theme, click use...couple of seconds bang my entire OS looks different with a new theme. So if this does it, please, please upload the lha and can you direct me to the location where I can download it? Thanks in advance.
-
I am indeed interested, yes please. I just want a program where if I want to change the entire theme of my system I just go to a website, pick a cool theme I like download it, open the program select this theme, click use...couple of seconds bang my entire OS looks different with a new theme. So if this does it, please, please upload the lha and can you direct me to the location where I can download it? Thanks in advance.
That's the idea behind it, at least it should be a lot like you describe by the time we're finished, however the current build doesn't have the theme manager because I have only made one theme so far, and I don't think anyone else on the planet wants to make more that will work. I do plan on having at least three themes to choose from including the Silver theme in the screenshot (loosely based on an OS4.1 theme) and I'll include an Ubuntu and Windows XP style theme too, which I made a while ago and just need to touch up a bit before I bundle them up.
I just checked ixemul.library and it's an older version, not sure why I would have such an old version installed, but I guess that's what you get from Aminet these days. I just downloaded the latest version from SourceForge and am about to test it on the Amigas now...
-
I am looking completely forward for this program....are you going to post the link download in this forum here? Thanks!!!
-
Awesome program! I'll be downloading this to test when i get home.
I wish someone would make a client for wordpress, I post all my classic computer activity on there and would love to type stuff up on my Amiga for a change :)
-
Awesome program! I'll be downloading this to test when i get home.
I wish someone would make a client for wordpress, I post all my classic computer activity on there and would love to type stuff up on my Amiga for a change :)
Use a feed importer to import your Twitter status feed. If you'd tweet from your Amiga, it'll be posted automatically on your wordpress blog.
-
Since twitter requires OAuth it is not easy to write a client from scratch. Therefore I used some libs like libcurl and libxml2 to get it working.
Have a look at liboauth (http://liboauth.sourceforge.net/), might make things easier.
If you find bugs (and I think there will be some) you can post them here. I also do not know what exactly are the minimum requirements. Some MUI classes for sure, and some MB of RAM, but which OS version I'm not sure. Remember to set your username and password in the tooltypes before the first start.
I tried it here on OS4, not expecting it to work due to the ixemul dependency. After a couple of Grim Reaper alerts (one from bsdsocket, one for HTMLview) which I ignored past, it actually logged me in successfully. I proceeded to load my timeline, which got partway through, and then ixemul threw up an "Abort Trap" error.
Any way you can get rid of the dependency on ixemul?
-
I tried it here on OS4, not expecting it to work due to the ixemul dependency. After a couple of Grim Reaper alerts (one from bsdsocket, one for HTMLview) which I ignored past, it actually logged me in successfully. I proceeded to load my timeline, which got partway through, and then ixemul threw up an "Abort Trap" error.
Any way you can get rid of the dependency on ixemul?
I'm using libxml2 for parsing the timeline. And libxml2 needs ixemul. So to get rid of ixemul means that libmxl2 must be compiled without.
But these days I'm trying to install OS 4 on my classic Amiga. When it was successful i will try to make a native OS 4 version. As far as I know OS 4 has also a libxml2?
Edit: I've found the xml2.library, seems to be a newer and native version of libxml2. Should try it out.
-
I figured out why I had an older version (48.3) of ixemul.library installed, it was the last version to support Amigas without FPUs, and I'm trying to run this on a 56Mhz 030 without FPU. So I installed the latest version of ixemul.library (63.1) on my other A1200, which has a 50Mhz 030 and 128MB RAM and FPU. This time it crashed while it was loading. The main window came up but I got a software failure. I tried it a few times after reboots and still failed.
I have a feeling it's ixemul.library. The current version was made for WinUAE and AFAOS, not real Amigas. It seems these days like the only way to run new Amiga software is with Amikit on a Windows PC, which I don't own and don't want to use.
Here's the debug log from my A1200 with the FPU and the latest ixemul.library. It's odd that the program crashes before I even have a chance to type, send a tweet or click any of the buttons, but it still seems to be trying to retrieve the feed. I don't know... http://pastebin.com/9eVey1RF
-
I developed it on an emulated Amiga with Amikit, but also tested it many times on my real A4000D with OS 3.9. As I can see in the log, it started normally, you pressed home, the timeline was loaded and it crashed again when it was passed to libxml2. What about the others here? Same problems with libxml2?
Edit: Seems to be an old log. It is 18 h old.
-
I developed it on an emulated Amiga with Amikit, but also tested it many times on my real A4000D with OS 3.9. As I can see in the log, it started normally, you pressed home, the timeline was loaded and it crashed again when it was passed to libxml2. What about the others here? Same problems with libxml2?
Edit: Seems to be an old log. It is 18 h old.
Wait. You are making Amiga software on a PC? What kind of treachery is this? This i do not approve :madashell:
I mean, now we are going to see Amiga software that only works on emulated Amiga's? Genius.
-
Arghh, sorry about that mate, I pasted the old log accidently. Here's the new log: http://pastebin.com/Jn2HH0Xx
Definitely shorter than the last one.
-
Yes that's really short and strange. In line 8 you can see the time twittAmiga retrieved from the OS. It is needed for the signature sent with each twitter request. In line 16 a line of such a request is printed. The line is the string within the brackets. I can see the opening bracket, but it seems that twittAmiga crashed during printing this string on the screen as there is no closing bracket and the time stamp is too short. It should be printed completely on the screen since, as far as I know, the \n at the end of the line causes a flush. So the function that crashed here is the printf. This can happend if there is code that overwrites memory at wrong addresses, like uninitialized pointers.
I will set up an emulated :biglaugh: Amiga with OS 3.1 now and see what happens.
Edit: Blank 3.1 installed (including MUI and ixemul 63.1). Everything works. I admit that an emulated Amiga is not a good test, since some things cannot be tested, e.g. there is no real Amiga TCP/IP stack. Even though I can say the stack of OS 3.9 does not make any problems on my A4000.
Maybe I should take time to set up a real Amiga with 3.1. Which stack do you use?
-
I'm using libxml2 for parsing the timeline. And libxml2 needs ixemul. So to get rid of ixemul means that libmxl2 must be compiled without.
But these days I'm trying to install OS 4 on my classic Amiga. When it was successful i will try to make a native OS 4 version. As far as I know OS 4 has also a libxml2?
Yes, it does. Fab, I look forward to seeing an OS4 native version then :)
-
New version is out. This new one no more needs the ixemul.library, since I switched from libxml2 to xml2.library (Version 4.0, you can find it on amiga.sf). It also need less RAM and should be faster, because the debug output is now optional.
So maybe it runs now also on OS4, but not sure, will test it.
-
Ok..
Not work Here..
Display this: " Error Creating HTMLViewer"
-
Ok..
Not work Here..
Display this: " Error Creating HTMLViewer"
Do you have HTMLview.mcc installed?
-
Works on MorphOS, no errors, everything seems to work, but the app does lock up a fair bit. First time I ran it, it locked up when receiving images from tweets, I reopened it, worked fine and received my friend's statuses, I tried to post a status, it locked up while posting it, restarted it and then tried again and the status went through.
Screen-shot of it on MorphOS 2.7
http://i.imgur.com/bZho4.jpg
-
Can you send me an error log when this happends? Or maybe when it locks up in different situations? You can do it by typing
twittamiga debug >debug.log
Thank you!
-
So maybe it runs now also on OS4, but not sure, will test it.
It doesn't; very similar problem to before. Two Grim Reapers (one bsdsocket.library, the other htmlview.mcc) you can ignore past both of them and then it crashes again (can't remember what crashed there, but given i've ignored past two errors already it probably isn't important!)
-
Yesterday I was able to test it for myself on my new OS 4 installation, and I have exactly the same problems. I found on the sourceforge page of HTMLView bug reports for the OS 4 Version. It seems, that the parser thread of the HTMLView does not work in the OS 4 Version.
But I do not know why the bsdsocket.library crashed. I'm using libcurl, and libcurl uses the bsdsocket.library. So two possibilities, bsdsocket has a bug, or libcurl, I would say libcurl. Would be no problem to use the OS4 native curl, but I do not know how to fix the HTMLView problems. Maybe it was not a good idea to use HTMLView or maybe a simple recompile on OS4 solves it. Currently I'm installing the OS4 SDK.
-
Might be a silly suggestion but how about debugging the application rather than guessing?
-
Will be a good idea as soon as my SDK is installed :) On the other hand, debugging HTMLView or curl/bsdsocket.library is not my intention.
-
Yesterday I was able to test it for myself on my new OS 4 installation, and I have exactly the same problems. I found on the sourceforge page of HTMLView bug reports for the OS 4 Version. It seems, that the parser thread of the HTMLView does not work in the OS 4 Version.
Is that an OS4 problem, or just the OS4 version of HTMLview? Of course it's no problem to install the 68k version if that doesn't have the bug in it.
But I do not know why the bsdsocket.library crashed. I'm using libcurl, and libcurl uses the bsdsocket.library. So two possibilities, bsdsocket has a bug, or libcurl, I would say libcurl.
libcurl's threaded resolver does not work in OS4 (bsdsocket.library crashes). If the 68k build of libcurl you are using has the threaded resolver enabled that is almost certainly the cause.
-
I'm currently porting it to OS4. Don't know how long it takes, there are some small differences in using libraries. But I know that I love CodeBench :)
Hopefully HTMLView works in a native version, is there any OS4 software using it?
-
While programming for a new version, I recently got this returned by twitter:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>503 Service Unavailable</title>
</head>
<body>
<h1>Error 503 Service Unavailable</h1>
<p>Service Unavailable</p>
<h3>Guru Meditation:</h3>
<p>XID: 888401680</p>
<address>
<a href="http://www.varnish-cache.org/">Varnish</a>
</address>
</body>
</html>
I like twitter and varnish cache :biglaugh: Feels like home
-
I'm currently porting it to OS4. Don't know how long it takes, there are some small differences in using libraries. But I know that I love CodeBench :)
Hopefully HTMLView works in a native version, is there any OS4 software using it?
This might be a problem. AFAIK the current (last) version of HTMLview.os4 doesn't run and seems to be severe broken. The 68k (OS3.x) version doesn't behave really better. I tried to test your 68k (OS3.x) build with OS4.1 - no way, it crashes unrecoverable while trying to start/use HTMLview...
-
This might be a problem. AFAIK the current (last) version of HTMLview.os4 doesn't run and seems to be severe broken. The 68k (OS3.x) version doesn't behave really better. I tried to test your 68k (OS3.x) build with OS4.1 - no way, it crashes unrecoverable while trying to start/use HTMLview...
Yes, the OS 4 native version is really a problem. But I was able to start an OS 4 native twittAmiga with the OS 3 HTMLView (the OS 3 libcurl also causes crashes, therefore twittAmiga must be native).
-
Hello
My machine is an A4000 Cyberstorm PPC/060 CVppc and its running WB3.9 bb2 with MiamiDX
It loads the GUI of twittamiga but freezes completly the system.
Here you have attached the log (zipped because its really large and amiga.org does't allow them)
I'm using tiwittamiga 1.35 from aminet (not ixemul)
If you need something more, snoopdos , etc plase ask.
I'm really interested in a twitter account con amiga.
If you want to followme on twitter: @doraemonppc
A lot of thanks and sorry for my bad english
PD: The old ixemul version loads fine, I can read my timeline but post my status doesn't work)
-
@ciVic
Keep Up Good Work!
Hope to see an Os4.x fully working version soon :)
-
It loads the GUI of twittamiga but freezes completly the system.
PD: The old ixemul version loads fine, I can read my timeline but post my status doesn't work)
Thank you for this log. Really stupid bug found, and a strange one. I'm wondering how this can work on my and other machines. And note for me: Do not use sprintf on Amigas, it does not work. I think I will release an update in the next days.
Can you also send me a log of a failing status update? That could be something else.
-
Hello.
I've tested another time with twitt amiga (ixemul) and now it sends my twitts (WTF?)
The only extrange thing is that in my avatar puts the afatar of a friend that i follow
A lot of thanks, a small dream comes true.
BTW, I have the htmlview mcc from aminet.
Its a beta versiona and all the time asks for update, but I can't find a stable version.
Any link with a stable version that works fine?
Thanks!
-
Hello.
BTW, I have the htmlview mcc from aminet.
Its a beta versiona and all the time asks for update, but I can't find a stable version.
Any link with a stable version that works fine?
Thanks!
The newest version is from 2007 and it shows also this message (can be found on sourceforge). I think the version on aminet is this newest.
-
Do you have HTMLview.mcc installed?
Yes sr! .. and not working!
-
Just had a go with the new version on Aminet and using the 68k htmlview.mcc. I now get this:
parser error : Memory allocation failed
parser error : Memory allocation failed
noname.xml:2: parser error : Memory allocation failed
<statuses type="array">
^
parser error : Memory allocation failed
noname.xml:35: parser error : out of memory error
<time_zone>Eastern Time (US & Canada)</time_zone>
^
Plus a lovely recoverable alert 8000009 (I think).
-
The xml2.library is not the perfect solution for OS4 I think. In the OS4 version I use the OS4 native libxml2. But sorry, at the moment I'm not able to continue the development on the OS4 version, since I've bought a broken Mediator board and currently I'm waiting for the confirmation that I can send it back to Elbox. So no OS4 ready machine at the moment.
-
twittAmiga is working fine for Cammy and I now. Here's a screenshot from her Workbench running a few internet applications including twittAmiga:
(http://home.exetel.com.au/~amiga/WorkbenchScreen.png)
-
It seems to be largely working on OS4 now too. There's a DSI (from bsdsocket.library) that can be ignored past, and for some reason the tweet field takes up half the screen, but it is working (for reading anyway):
(http://homepage.ntlworld.com/cdyoung/tmp/twittamiga.jpg)
-
Thats great. The editor is so large simce the map can only be as large as the viewed image, so it cannot grow any further if you resize the window. It you disable the map view it should have normal size.
-
Thats great. The editor is so large simce the map can only be as large as the viewed image, so it cannot grow any further if you resize the window. It you disable the map view it should have normal size.
Resizing the window works, I'd missed the balance gadgety thing between the text field and the tweets/map. I can't disable the map because the menu item is a MX item with no other choices (so it won't let me deselect it). That should be easy to fix.
I have to delete the .secret and .key files every time I launch it, as the .key file isn't getting written (it's a 0 byte file). If I leave it in place then it fails to authenticate - which makes sense as it's trying to use an empty string as the key.
-
Hey guys can this work on an Amiga 500? How can I get my Amiga 500 to go online?
-
You mean the switch is a radio button with only one choice? It should be a checkbox like on OS3 and MorphOS. Anyway, you can change that in the icon properties.
Maybe the empty files are a bug that is not a problem under OS3 and MorphOS. Probably I can find that.
-
You mean the switch is a radio button with only one choice? It should be a checkbox like on OS3 and MorphOS.
Yes. The behaviour of MX menu items changed in OS4 so it is now impossible to deselect all items of a group. I don't know how menus are created in MUI, but in GadTools adding the flag MENUTOGGLE fixes this problem (I've seen it in quite a lot of OS3 software - including my own! - it's easy to miss as the visual appearance and functionality on OS3 is the same if there's only one item in the MX group).
-
Hi:
Why do I always have "Error Loading TimeLine?. I only could connect once, this is on WinUAE and enough fast ram.
-
You could try to delete the secrect.txt and key.txt files in the twittAmiga dir. Check username and password afterwards and try again.
-
Hehe. Yes, it works perfect. Thank you :knuddel:
-
The problem persists if I reboot, so the best will be to start from an script that deletes both files and starts the program.
-
So you can start twittAmiga multiple times till you reboot the machine? Or does it happen every time you restart twittAmiga? Sounds similar to the problem under OS4, where key and secret are simply empty.
-
So you can start twittAmiga multiple times till you reboot the machine? Or does it happen every time you restart twittAmiga? Sounds similar to the problem under OS4, where key and secret are simply empty.
Yes, it seems I can start it multiple times till I reboot, when I should have to delete the files again. But it seems it doesn't always start the first time; dunno why.
I want to try a simple script the kind:
Delete >NIL: SYS:Internet/twittAmiga/*.txt
Run >NIL: SYS:Internet/twittAmiga/twittAmiga-AmigaOS
And perhaps try with different stacks, or perhaps priority.
Edit: It isn't it doesn't work; it works, but sometimes it hangs the first time or it "breaks" WinUAE.