World: r3wp
[Linux] group for linux REBOL users
older newer | first last |
Alan 24-Jul-2009 [3031] | I am using Ultimate Extreme-a custom Ubuntu-under VmPlayer and installed View. It works fine. Then I emailed my license and put it in the root of .rebol but when I start View it does not see the license ? Ideas ? Thanks ! |
Graham 24-Jul-2009 [3032] | why do you need a license for rebol? |
Alan 24-Jul-2009 [3033] | Well for Linux, not really but Windows,yes. Just wondering why it does not show as registered on Ubuntu ? |
Gabriele 24-Jul-2009 [3034x2] | Ashley, normally Ubuntu has the 32bit libs installed by default - REBOL worked out of the box for me here. |
In any case, it's easier to do a "sudo apt-get install ia32-libs" than do a new installation, no? :) | |
Ashley 25-Jul-2009 [3036] | OK, I've got it running under a clean install of Ubuntu 32bit. Now, how do I determine what scaleable fonts REBOL can actually use? (%/usr/share/fonts/truetype/freefont/ doesn't seem to have all that many ... and they look pretty ordinary atsize: 72). |
Gabriele 25-Jul-2009 [3037] | Are you talking about AGG or standard View text? For the latter, anything that X can use REBOL can use, in principle at least. For the former, I think any TTF file will work (notice that you can install the MS Core Fonts package). |
Ashley 25-Jul-2009 [3038] | The later. Windows fonts are easy enough to find (c:\windows\fonts) as are Mac (/System/Library/Fonts & /Library/Fonts) ... I was hoping there was a simple "they're located here" equivalent for X11-based *nix. |
Graham 25-Jul-2009 [3039] | if you add fonts I believe you have to rebuild the font map ie. fonts can be scattered over different directories. |
Ashley 25-Jul-2009 [3040] | All I want is a simple way of finding out what fonts REBOL can access on a clean install of Ubuntu. |
Gabriele 26-Jul-2009 [3041] | a simple way from REBOL? you probably have to parse the fontconfig files. |
Reichart 26-Jul-2009 [3042] | (and all I want is the clean install of Ubuntu to use a good looking font) |
Ashley 27-Jul-2009 [3043] | OK, got it working on Ubuntu (and Mac) with: fonts: copy [] foreach [font-name style] parse/all (call/output "fc-list" s: copy "" s) ":^/" [ all [ not find fonts font-name (size-text make face [text: "A" font: make face/font [name: font-name size: 10]]) <> size-text make face [text: "A" font: make face/font [name: font-name size: 12 style: 'bold]] insert tail fonts font-name ] ] sort fonts |
Anton 27-Jul-2009 [3044x3] | Nice one. |
Do you say that the above code works on Mac as well as Ubuntu ? | |
It seems to work well here on my older Kubuntu 7.10 32-bit. | |
Ashley 27-Jul-2009 [3047] | Should work on any *nix based distro with X11/fontconfig installed ... which is about as close to a "standard" as I've come across in *nix land! (and yes, Mac is *nix for this purpose). |
Anton 27-Jul-2009 [3048] | That's not a bad little piece of code then. |
Graham 2-Aug-2009 [3049] | Anyone know of any issues getting the time and date under Wine? |
Kaj 3-Aug-2009 [3050] | AltME is not doing it right, in any case |
Graham 3-Aug-2009 [3051x2] | I've got a user reporting that my app under puppylinux is reporting the wrong time when compared vs NIST time. |
Perhaps the easiest thing to do is to redefine NOW based on a NIST offset. | |
Anton 14-Aug-2009 [3053x2] | Woohoo! Just came across a way to make Ctrl-V work in the bash shell. You need 'xclip' installed. To install, I did $ sudo apt-get install xclip then I pasted Josh Triplett's nice short code at http://bash-hackers.org/wiki/doku.php/snipplets/xclip into the bash shell, and then Ctrl-V started working! |
Ahh, pity it doesn't seem to work in the rebol shell... | |
Dockimbel 14-Aug-2009 [3055] | Maybe you could write a simple proxy for system/ports/input, catch CTRL-V then redirect clipboard:// content to console? |
Izkata 14-Aug-2009 [3056] | Any particular reason middle-click wouldn't work? |
Anton 15-Aug-2009 [3057x6] | Doc, yeah I was wondering about system/ports/input... Izkata, middle-click doesn't access the same clipboard. |
Actually, it looks like read clipboard:// accesses the same clipboard as middle-click, which is better than nothing, but still doesn't make it perfect... | |
Wait a minute, I can call xclip to get the right clipboard contents... >> call "xclip -o" | |
That prints the clipboard contents into the rebol shell. | |
Oops, that should actually be: >> call "xclip -o -selection clipboard" | |
Doc, or anyone, do you know how to write a proxy for system/ports/input ? | |
Dockimbel 15-Aug-2009 [3063] | I would try to wrap a custom port wiring all methods to the console port then I would replace system/ports/input with that new one and see if the "proxy" port works. If it works, then you can intercept the incoming events and add your own handlers. But that's only theory, as much other low-level parts of REBOL, it's not documented, so I'm not sure it would work. |
Anton 15-Aug-2009 [3064] | Hmm.. sounds a bit too complicated for now - might have to wait for another day... but, how do you think I would replace system/ports/input ? By just : system/ports/input: my-port ? |
Dockimbel 15-Aug-2009 [3065] | Yes. |
Anton 15-Aug-2009 [3066x6] | Ok, I'll give it a quick go to see how feasible it is. My first try about an hour and half ago, just using the console port looks like this: |
console-port: open/binary/no-wait console:/ console-port/awake: func [port /local ch][ if ch: pick port 1 [ ;print ["Console awake trapped key:" to-char ch "(" ch ")"] either ch = #"^V" [ ; Ctrl+V call "xclip -o -selection clipboard" ; Three different types of clipboards: "primary", "secondary" or "clipboard". ][ insert system/ports/output to-char ch ] ] return false ; Does not cause return from WAIT (DO-EVENTS). ;true ; Does cause return from WAIT (DO-EVENTS). ] insert system/ports/wait-list console-port if error? set/any 'err try [ do-events ][ print mold disarm err ] close console-port remove find system/ports/wait-list console-port | |
I've tried replacing system/ports/input/awake with an awake function similar to above, and it doesn't seem ever to be called. If it's possible at all I think making a handler object with all the functions (open close write etc.) *might* work. | |
I don't really know what I'm doing with ports. I need more information. All I can get it to do is shutdown rebol on keypress. | |
I tried making a handler object with stub functions. | |
No joy. | |
Gabriele 17-Aug-2009 [3072x3] | awake is only called if you use WAIT (which the native console does not use - indeed you don't get other port events while at the console prompt) |
i did replace system/ports/input and output and it works, i used that to "broadcast" what is typed at the console to other listener (eg. for online demos or lessons or things like that). | |
http://www.colellachiara.com/soft/Misc/broadcast-console.r | |
Graham 17-Aug-2009 [3075] | Is this a key logger? |
Gabriele 17-Aug-2009 [3076] | lol, you can see it this way. |
Anton 17-Aug-2009 [3077] | Gabriele, thanks, that's very interesting, I will check it out. (Aha make Root-protocol, I forgot about that.) |
Anton 18-Aug-2009 [3078] | I had a go at it again with Gabriele's way of doing it. So far I can only intercept input and output when enter is pressed, not at individual key presses. I think I can only open system/ports/input in lines mode, the same as the default. From memory, now, I seem to remember somebody having a go at this and arriving at the same point. (Can anybody verify that?) |
Pekr 18-Aug-2009 [3079x2] | Not sure I heard anything like that. The only thing I remember is that we got some advanced console mode, where you could use any key IIRC. There was even some animation done by Bo. The article was at rebolforces.com somewhere - not sure it could help your case though .. |
Ah, that is something different than what you need - http://www.rebolforces.com/articles/tui-dialect/ ... but it reminded me to remember, how badly the windows console sucks :-( | |
older newer | first last |