World: r3wp
[All] except covered in other channels
older newer | first last |
Pekr 9-Jun-2005 [1681x4] | heh, it looks being Czech software. Those cz guys, are sometimes good, right Cyphre? :-) |
Robert - look at that - looks good, it adds new things via plug-ins. And as those are czechs, maybe we could ask them, if kind of "command-line" utility would be possible at some good price :-) | |
they provide even SDK | |
they have message board, developers forum, per-phone forum etc. | |
MichaelB 9-Jun-2005 [1685] | Symbian OS not supported yet. And it wouldn't exactly be a "Rebol" solution, for the task Robert envisioned. :-( But interesting nevertheless. |
Pekr 9-Jun-2005 [1686] | but those guys could know how to actually do it :-) The question is, if they would be willing to share experience ... |
MichaelB 9-Jun-2005 [1687] | You might be right, but the fact that they're still working on a Symbian-version tells, that at least in this case it's not so simple or they want to offer all the data like in the other phones and it's much more work then. Who knows. :-) |
Pekr 9-Jun-2005 [1688] | yes, I just read some message board answers, and someone wanted to develop driver himself, but they told the guy that such thing is far from being trivial, as various phones use various techniques. |
MichaelB 9-Jun-2005 [1689] | that's what I was wondering, either Symbian is complicated or just a lot of work, because every phonemanufacturer has anyway his proprietary OS for the normal/cheaper phones, so should be a lot of work too, but on the other side these phones are still the majority and thus better to earn money on them as on relatively view Symbian smartphones now |
Robert 9-Jun-2005 [1690x2] | Good input. Petr, try to find out what it would need to code such an API with a scripting language. Just to get a better picture about the problem domain. |
I have a contact that makes the UI for new mobiles. I try to get some information from him. | |
Pekr 9-Jun-2005 [1692] | OK, I will write email tomorrow or give the folks a call. Hopefully they will be open-minded and kind of geeks so we will have good technology talk ... |
Cyphre 9-Jun-2005 [1693x3] | Robert, I think I can make such syncing tool in J2ME for all Java mobile phones. |
If you are interested just contact me privately. | |
I think the only way how to make some more compatiblem app for cell phone is Java as the Java VM is presented on most of current phones which cannot be said about Symbian and other OSes. | |
yeksoon 9-Jun-2005 [1696x2] | target the Series handphones. eg Series 60, from Nokia. isn't that the key idea for those 'Series' handphones from Nokia. ..so that developers can have single API to develop on and easily deploy on a large enough 'market share' |
and it's going to be Java...:) | |
Robert 11-Jun-2005 [1698x4] | Ok, I further investigate this mobil symbian stuff. It looks like some Linux guys have done a bit: http://multisync.sourceforge.net/news.php |
http://sync4j.funambol.com/main.jsp?main=theproject | |
SyncML DS (data synchronization) specifies a standard way to synchronize data between a mobile device and a server. SyncML DM (device management) specifies a way to remotely manage a mobile device from a server. So what we need first is SyncML DS. | |
This looks pretty promising. The sync4j server seems to be the thing we need to get access to the phone. And it can be expanded with connectors so others can use the server as a proxy. There exists an email connector. | |
Pekr 11-Jun-2005 [1702] | You mean creating such server in Rebol? But how does it communicate? Is that TCP? How is that abstracted on mobile phone itself? You can be connected in various ways - cable, infrared, bluetooth ... |
eFishAnt 11-Jun-2005 [1703x2] | I have shown the SyncML guys in Korea about REBOL/IOS...at the Korean Technology Center, several years ago...;-) |
(to the CEO. He understood the power which IOS brings to the table) | |
[unknown: 5] 13-Jun-2005 [1705x2] | Anyone know how to do simple arithmetic operations on tuples such as ip addresses? |
Ahh never mind looks like I have to add a complete tuple - actually that is rather a good idea instead | |
Vincent 13-Jun-2005 [1707] | Paul: you can + - * / // an integer!/decimal!/tuple! to any tuple, but for most operations the tuple! must be the first operand.. |
[unknown: 5] 13-Jun-2005 [1708x5] | Yeah I found that out |
I went ahead and made a quick increment function for it | |
Doesn't look very concise but works | |
increment: func [ip-addr][ either ip-addr/4 < 255 [ return ip-addr + 0.0.0.1 ][ either ip-addr/3 < 255 [ return ip-addr + 0.0.1.0 ][ either ip-addr/2 < 255 [ return ip-addr + 0.1.0.0 ][ either ip-addr/1 < 255 [ return ip-addr + 1.0.0.0 ][ ] ] ] ] ] | |
I'm curious about how try errors in tuple conversions - For example if I do a try [error? error: to-tuple "abcd"] it doesn't evaluate correctly | |
Vincent 13-Jun-2005 [1713] | and with error? error: try [to-tuple "abcd"] ? |
[unknown: 5] 13-Jun-2005 [1714x2] | I would assume that would work - let me try that |
Yes that works - thought I tried that already though. | |
JaimeVargas 13-Jun-2005 [1716x2] | next-ip: func [ip][to-tuple debase/base to-hex (to-integer to-binary ip) + 1 16] |
A one-liner. A bit more rebolish... ;-) | |
[unknown: 5] 13-Jun-2005 [1718x2] | yeah works Jaime - I knew there was a more elegant way - I was whipping up something fast |
Of course will REBOL it seems there always is | |
Pekr 13-Jun-2005 [1720] | more rebolish? :-) |
JaimeVargas 13-Jun-2005 [1721] | May be not? But definetely shorter... |
Pekr 13-Jun-2005 [1722] | kind of guru-level code, which even medium level reboller can't follow, what does it do in particular :-) |
[unknown: 5] 13-Jun-2005 [1723x4] | Yeah but carries a bit more overhead in a trace |
Pekr: I don't quite follow it myself | |
:) | |
But looks darn spiffy | |
JaimeVargas 13-Jun-2005 [1727x4] | IP addresses are just integers represented as tuples, where each section represents a byte value (0..255) |
So if you want if you want to increase a tuple but one, don't do the math in tuples. Do in integer space that is this line. (to-integer to-binary ip) + 1. | |
The parentheses statement gets the integer. The reas of the code transform the resulting integer to a tuple again. | |
Hope this helps you grok it. | |
older newer | first last |