Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gregarican

Pages: [1] 2
1
Python / Xmlrpclib For Python
« on: January 03, 2006, 04:19:36 pm »
Please disregard, as I discovered http://pyqplayer.sourceforge.net/cgi-bin/b...thonZaurusImage, which fits the bill nicely!

2
Python / Xmlrpclib For Python
« on: January 03, 2006, 12:38:35 pm »
Happy New Year everyone! After trying out Ruby and Squeak Smalltalk with varying success on the Zaurus I am looking to try some Python coding. I have installed Python 2.2.2 on my SL-5500 along with various Python modules and the Python 0.8 IDE. All of these were installed from IPK files.

I was looking to try some XMLRPC calls and noticed that the Python implementation is missing xmlrpclib. Is there an IPK floating around out there somewhere that I could install? I do have zgcc 2.95 on a CF card and could try to compile one myself. But if there was an IPK file I could definitely save some time.

Anyone know of such a thing?

3
5x00 Hardware / Linksys Wcf54g Card
« on: November 01, 2005, 12:49:05 pm »
I ran across a thread on the forum that was about a year old stating that there were no Linux drivers or support yet available for this CF wifi card. I guess this still appears to be the case ::sigh:::

4
5x00 Hardware / Linksys Wcf54g Card
« on: November 01, 2005, 12:15:23 pm »
I run Sharp 3.10 ROM on my SL-5500. My old Linksys WCF12 wifi card works okay but now I tried a new Linksys WCF54G wifi card. The Sharp ROM doesn't recognize it. There are a couple of apps I developed that are standardized to run on the Sharp 3.10 ROM. Does anyone know of a patch I can apply or some tweak I can perform to get the ROM to recognize my new wifi card?

5
Qt/Qtopia / Vanishing App?
« on: October 04, 2005, 10:35:59 am »
Finally figured it out. Checking another forum on this site I ran across a similar Python scripting issue (https://www.oesf.org/forums/index.php?showtopic=5626&hl=). Making the Exec= value in the .desktop exactly match the QPEApplication.new() parameter in my Ruby script caused there to be a corresponding taskbar icon instance for my application. Now it doesn't disappear when Hancom Word exits. This seemed like a needle in a haystack, so I am going to post these results to a Ruby board or two just in case some Qtopia developer using Ruby runs into similar issues....

6
Qt/Qtopia / Vanishing App?
« on: October 04, 2005, 09:44:36 am »
As a follow up I read about similar behavior when a script creates a new QPEApplication instance. Apparently since the script doesn't have a taskbar instance associated with it, when another Qtopia app is launched and exits the scripted QPEApplication object just disappears into the background. See http://lists.trolltech.com/qt-embedded-int...ead00043-0.html for details.

So if I launch my Ruby script from a Terminal session it will stay visible after Hancom Word exits. But the load that it adds having a Terminal session up is considerable. Is there an easy way to just create a taskbar instance for my Ruby script?

7
Qt/Qtopia / Vanishing App?
« on: October 03, 2005, 02:53:02 pm »
I have a QPEApplication object created as a Ruby script. The object and its various children's objects, methods, etc. work fine. There is a suspect area. I have a series of push buttons that launch various documents various using Hancom Word. The code that I have to accomplish the actual launching is similar to:
Code: [Select]
system("qcop QPE/Application/HancomMobileWord 'setDocument(QString)' '/path/to/myDocument.doc'")The Ruby system() method that wraps the qcop call simply launches a sub-shell that loads up Hancom Word set to a particular document. The problem is when I close Hancom Word the QPEApplication object disappears. When I check the active processes I see that my Ruby script is running but I can't seem to recover the GUI app I created. If I try to issue something like:
Code: [Select]
qcop QPE/Application/myGUIApp 'setDocument()'there is a brand new instance of the GUI app I have. The original one still doesn't appear. Or if I try:
Code: [Select]
qcop QPE/Application/myGUIApp 'raise()'nothing happens.

Since my Ruby script doesn't have anything displayed on the task bar I can't figure out a way to bring it back after exiting Hancom Word. Any suggestions?

8
5x00 General discussions / Startup Script On Sharp 3.10 Rom
« on: October 03, 2005, 12:03:05 pm »
The tiff angle still isn't too feasibile. Even with a large swapfile on my SD card I can't open the images. They are too large it seems. But I know with smaller images the tiff viewer app works.

A new problem arose using the qcop method. When I bring up the Hancom Word app with the document I want and then close Hancom Word, my Ruby/Qtopia application disappears from the screen. I do see the active process listed running the ps command, however. Is there an easy way to make it visible again? I am passing along the Ruby system() method to bring up Hancom Word. Something like:
Code: [Select]
system("qcop QPE/Application/HancomMobileWord 'setDocument(QString)' '/path/to/myDocument.doc'")This system() methods forks out a subshell and should return back to the main Ruby/Qtopia application. Although the Ruby script is still an active process the Qtopia app has disappeared. How can I bring it back?

9
5x00 General discussions / Startup Script On Sharp 3.10 Rom
« on: October 03, 2005, 10:13:12 am »
Quote
No problem, glad it worked,


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=98000\"][{POST_SNAPBACK}][/a][/div]
And as a follow up for anyone who's interested there is a tiff viewer available for the Zaurus. It's part of zfax (http://www.iaccarino.de/silvio/zfax.htm). After installing that and having a nicely sized swapfile I should be over than hurdle as well...

10
5x00 General discussions / Startup Script On Sharp 3.10 Rom
« on: October 03, 2005, 08:50:00 am »
As a follow-up on this, now it's first thing Monday morning here and I tried the qcop QPE/Application/HancomMobileWord 'setDocument(QString)' '/tmp/thisDocument.doc' command. Worked like a champ. Thanks for the help!

11
5x00 General discussions / Startup Script On Sharp 3.10 Rom
« on: October 01, 2005, 10:09:54 pm »
Quote
Though from my understanding each app can have it's own calls (there was an app floating round a while back which listed all of the calls being made - Japanese iirc, anyone remember what it was?)
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Actually I found the app that you are talking about. It's here.. [a href=\"http://www2.gol.com/users/ikezawa/zaurus/qcoptest.html]http://www2.gol.com/users/ikezawa/zaurus/qcoptest.html[/url]
. I am going to give it a go Monday to see what methods I can pass along to HancomMobileWord. As much as I like to Microsoft bash, at least my Ruby/Qt app on win32 can launch the documents by just passing the document name as the first command line argument. Like
Code: [Select]
c:\program files\microsoft office\office\winword.exe myDocument.docAppreciate the help though. This should get me going.

12
5x00 General discussions / Startup Script On Sharp 3.10 Rom
« on: October 01, 2005, 06:05:09 pm »
Quote
I think you'd start Hancom Word, then issue the QCop call separately (though it's only a guess).

Here's a list of some commands: http://doc.trolltech.com/qtopia2.1/html/qcop.html

Though from my understanding each app can have it's own calls (there was an app floating round a while back which listed all of the calls being made - Japanese iirc, anyone remember what it was?)

In any case you may be okay with a plain "setDocument()" call.


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=97795\"][{POST_SNAPBACK}][/a][/div]
So it looks as if I would issue something like
Code: [Select]
qcop QPE/Application/HancomMobileWord 'setDocument(QString)' 'thisDocument.doc'in order to have HancomMobileWord launch the document I want. Since my Z is back at the office I will have to wait until Monday to play around with qcop some. Hopefully it won't take too much fiddling. That will leave me with the tiff image viewing as the only thing I need in order to have my Ruby/Qt app fully ported over from its native win32 platform. Since I installed the libtiff ipk the other day maybe looking at it closer will close that gap as well.

I can say that after experimenting with a couple of the GUI toolkits (Tk, Qt, and GTK) so far I find Qt the best fit for my needs. It's relatively object-oriented and seems to be portable enough for my needs. The fact I prefer using Ruby and am limiting my PDA choice to the Z makes this all the much better I guess...

13
5x00 General discussions / Startup Script On Sharp 3.10 Rom
« on: October 01, 2005, 10:29:58 am »
Quote
Quote
looking for a way to run a script as root when the PDA finshes loading Qtopia

iirc the init scripts stop when Qtopia is loaded so you can't use them.

Can you not do this before Qtopia is loaded? In which case add it to the init scripts, otherwise I'd add it to /etc/init.d/qpe (I think that's the name of the script which is used to start Qtopia - I'm not running it so this is from memory).

Quote
Is there a way to launch HancomMobileWord from the command line with a filename as the argument?

I imagine it requires a QCOP call to tell it which file to open.

No idea about the TIFFs I'm afraid.


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=97770\"][{POST_SNAPBACK}][/a][/div]
Thanks for the reply. I will check regarding the /etc/init.d/qpe file to see if I can start Samba and mount my network Samba shares that way. I did a ps -ax and saw that the HancomMobileWord process was followed by a qcop argument. What is the syntax if I wanted to launch a specific document? Something like /tmp/thisDocument.doc? Would I issue a command line of
Code: [Select]
HancomMobileWord -qcop /tmp/thisDocument.docIf you could provide me an example I'd be eternally grateful. Sorry for my ignorance. I used the Z back in 2002-2003 and just picked it up again for some Ruby/Qt projects I've been working on. Very rusty to say the least :-)

14
X/Qt / Getting Started With Development
« on: September 30, 2005, 04:02:35 pm »
Quote
Now I have to learn C and Perl to write apps for the Zaurus 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=97644\"][{POST_SNAPBACK}][/a][/div]
Actually I am just finishing a CRM application where one of the client choices is a Sharp Zaurus SL-5500 (Sharp 3.10 ROM). And the Zaurus version of the application was creating using Ruby with Qt/Embedded bindings. Other than a few tweaks here and there the code is the same between the Zaurus version and the Ruby/Qt version I have running on Windows 2000/XP. I am not much of an IDE guy, as I coded everything using Scite. But if I wanted to I could've used Qt Designer and ported things into Ruby using some utilities that come with the Ruby Qt bindings. In any event, I really enjoy coding in Ruby and was glad that I could use the language for my Zaurus work :-)

15
5x00 General discussions / Startup Script On Sharp 3.10 Rom
« on: September 30, 2005, 03:27:58 pm »
Here are two other questions related to my SL-5500 that I was wondering about:

1) Is there a way to launch HancomMobileWord from the command line with a filename as the argument? Something like

Code: [Select]
HancomMobileWord /home/zaurus/myDocument.doc
2) I would like to view TIF/TIFF files on the Zaurus. When I attempt to do so with the ImagePad application that comes with the Sharp ROM 3.10 I receive an error message stating 'The file wasn't opened.' Is there a recommended image viewer that I can use to view TIF/TIFF files?

Any pointers would be greatly appreciated.

Thanks!

Pages: [1] 2