World: r3wp
[Linux] group for linux REBOL users
older newer | first last |
Andreas 26-Feb-2011 [4013x4] | and if what he really needs is gcc 4.x, that first appeared in debian etch (debian 4.0). |
http://archive.debian.net/search?suite=all&arch=powerpc&searchon=names&keywords=gcc | |
for your convenience, here's an archive.debian.org apt sources line for etch: deb http://archive.debian.org/debian/etch main non-free contrib | |
(for carl's convenience, rather :) | |
BrianH 2-Mar-2011 [4017x3] | Just redid my netbook with Ubuntu Netbook 10.10, and it works much better than in did with WinXP. Had to partition manually as the tweak to make the installer SSD friendly is still a proposal. R2 and R3 work, though (as someone used to the Windows versions) I am having trouble with the console not opening a terminal when prompted to. I guess the button in the R2 View desktop doesn't work. Time to figure out the application shortcut creation method for this distro. |
Yes, I'm aware of the irony that of all the things I could have trouble with, it would turn out to be the console that works better on Windows :( | |
Going to try AltME next. Are there any known problems with using the 1.2.21 Linux version? I seem to have no font problems in View... | |
Andreas 2-Mar-2011 [4020x2] | 1.2.25 works fine here. |
Regarding the console, fire up REBOL directly from a terminal and you'll be fine. | |
BrianH 2-Mar-2011 [4022x2] | The main problem is that the netbook versions of Linux are more GUI oriented, so the question is how to open REBOL by clicking on it. |
Do we need to get debs in the multiverse repositories? | |
Andreas 2-Mar-2011 [4024] | Creating a "Application in Terminal" type launcher should do the trick. |
BrianH 2-Mar-2011 [4025x2] | Ah, don't know how to do that yet :( |
At least not in the netbook distro. | |
Andreas 2-Mar-2011 [4027x2] | No experience with the netbook edition either, sorry. |
If the Unity launcher (at least I think that's how the launchbar in the netbook thing is called) still uses .desktop files, it's probably only a matter of finding the associated .desktop file and modifying it to use Terminal=true | |
BrianH 2-Mar-2011 [4029] | Or rather making associated desktop files. It turns out that the menu editor included is for the GNOME menu, not the Unity menu. There is no editor for the Unity menu. I'm going to try to figure out what needs to be done. |
MaxV 8-Mar-2011 [4030] | Did you try http://www.maxvessi.net/rebsite/Linux/?? |
ddharing 8-Mar-2011 [4031] | Does anyone do anonymous pipes with REBOL? I've found that when doing an "insert system/ports/output my-data", that it won't actuallly send "my-data" until you halt or quit. Is there a way to force it to send so the script can continue to do other things and send more data later? |
MaxV 8-Mar-2011 [4032] | call function is not eough? call "cp source.txt dest.txt" |
Gregg 8-Mar-2011 [4033] | Have you tried UPDATE? Not sure on anonymous pipes though. |
ddharing 8-Mar-2011 [4034x2] | Gregg, I tried that and it generates an error -- Cannot use updae on this type port |
MaxV, It is possible to use call, but then the scripit would be executing like CGI. I wanted to pipe two REBOL scripts from the command line and have the first script periodically send data to the second. Of course I could use a socket, but that's a little more complex. | |
Maxim 8-Mar-2011 [4036x2] | actually, using sockets is really simple. |
I mean, its probably less hassle and you'd already have it working by now ;-) I mean TCP server/clients can be as little as 5 lines each in rebol. | |
ddharing 8-Mar-2011 [4038x2] | Maxim, you're absolutely right. I am just thinking in terms of being pipe friendly on the Linux command line. |
You know, the Unix way of doing things. | |
Maxim 8-Mar-2011 [4040x2] | did you try looking at the port states? |
don't know what can be manipulated on the i/o ports | |
ddharing 8-Mar-2011 [4042] | I'm not an expert on the port object, so I'm continuing to do research. |
Geocaching 8-Mar-2011 [4043x3] | Hello, I encounter a problem with the draw dialect under linux (rebol/view 2.7.8). I have tried the following code from the official documentation: view layout [ box black 100x100 effect [ draw [ pen red line 30x30 50x20 70x70 40x50 pen blue box 20x20 80x80 fill-pen 0.100.0 box 20x60 40x80 pen white text 8x25 "Example" fill-pen gold flood 2x2 ] ] ] |
Under windows, the text appears properly; but under linux, nothing appears. | |
Actally, it seems that the interpretation of the draw dialect stops when encountering the 'text. | |
Pekr 8-Mar-2011 [4046] | might be a font problem? Better wait for some real experts, though ... |
Geocaching 8-Mar-2011 [4047] | When you try this under linux view layout [ box snow 100x100 effect [ draw [ pen black text 10x10 "Red Box:" pen red fill-pen red box 10x30 80x50 ] ] ] Only the snow box appears! Nothing is drawn into it... and rebol does not launch an error. THis confirms that the interpretation of the dialect is stopped when the 'text is reached. Under windows, no problem! |
Cyphre 8-Mar-2011 [4048] | Under linux you need to setup the font object to be able use text rendered by DRAW dialect. So something like this should work: my-font: make face/font [ name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf" ;replace with your path to font you want to use size: 12 ] view layout [ box snow 100x100 effect [ draw [ font my-font pen black text 10x10 "Red Box:" pen red fill-pen red box 10x30 80x50 ] ] ] |
Geocaching 8-Mar-2011 [4049] | Cyphre... THANKS SO MUCH!! It works... But now, how I can make my script working on both linux and windows with the same fonts look and feel? |
Cyphre 8-Mar-2011 [4050] | you can put the os specific setup into something like: switch system/version/4 [ 4 [ ;Linux ] 3 [ ;Windows ] ] |
MaxV 9-Mar-2011 [4051] | What is the default Font for Rebol? I could add this font package in Rebol linux installer. |
Oldes 9-Mar-2011 [4052] | Better to choose a font which works on Linux... last time I used Rebol/View on linux, the default font look was very bad. |
Cyphre 9-Mar-2011 [4053] | yes, I'd suggest to choose some nice looking font(prefferably free one, but depends on you) on Linux and then use it with the app on all systems. |
MaxV 9-Mar-2011 [4054] | But newbies need a working rebol on Linux., then they will choose their font. So, what is the default font on Rebol? |
Oldes 9-Mar-2011 [4055x2] | On windows I think it's arial |
You can check it on linux using: ? system/view/vid/vid-styles/text/font | |
Cyphre 9-Mar-2011 [4057] | MaxV: the problem on Linux is that there is no easy way how to get font path just by giving the font name + font type.( Windows does that automatically) If you know how to do it in Linux so it works on all distributions that would be helpful. (Maybe it would be enough to write some parser in rebol to get the font information from some place in the system, but I have no time to investigate this as I'm not using Linux for desktop stuff.) |
MaxV 9-Mar-2011 [4058x2] | ? system/view/vid/vid-styles/text/font helvetica so, is it enogh having helvetica font? No, I made a link to FreeSans.ttf this way: ln -s FreeSans.ttf helvetica.ttf but it doesn't work. I think that the path is wrong. The standard linux path now is: /usr/share/fonts/truetype/freefont/ so if Rebol path would be /usr/share/fonts/truetype/freefont/FreeSans.ttf , we have resolved all problems! |
Is there a way to know Rebol font path? | |
Maxim 9-Mar-2011 [4060] | rebol uses system fonts, so its the other way round, is there a way to know system font path. on linux no one has done any in-depth assessment if there is a single way to find out what are the installed fonts for *any* linux. |
Tomc 10-Mar-2011 [4061] | I tend to use thing like stderr: open/direct/binary %/dev/stderr but am no longer petending to care about windows portability |
MaxV 10-Mar-2011 [4062] | My other question is: why Rebol find the fonts path for all dialects except DRAW? |
older newer | first last |