AltME groups: search
Help · search scripts · search articles · search mailing listresults summary
world | hits |
r4wp | 5907 |
r3wp | 58701 |
total: | 64608 |
results window for this page: [start: 23901 end: 24000]
world-name: r3wp
Group: Linux ... [web-public] group for linux REBOL users | ||
DideC: 27-Mar-2009 | I give Ubuntu a go. I can reinstall Fedora if I'm not satisfied. | |
amacleod: 1-Apr-2009 | Has anyone been successfull displaying a rebol window without dragbar or borders using view/options [no-title no-border] It does not work with gnome kde but perhaps some other window manager? or is it the window manager or Xwindows itself? | |
amacleod: 1-Apr-2009 | Is that a problem with the manager or Xwindows system? | |
Anton: 1-Apr-2009 | I just compiled window2.c from http://www.unix-manuals.com/tutorials/xlib/xlib.html and it opens a window without titlebar, and can open a borderless window (with BORDER_WIDTH 0). I'm not so familiar with X Windows programming, but the above example appears to be just making use of the X Windows system, not going via the window manager... (not sure). | |
Anton: 1-Apr-2009 | Anyone know how to obtain the X Window pointer for a Rebol window? | |
Anton: 1-Apr-2009 | It appears that I can get the process id using a DLL. | |
Anton: 1-Apr-2009 | I've got a shell/rebol script (test-get-process-id.r) which starts with a shebang line, then the rebol header etc. : #!/home/anton/dev/rebol/view/rebview2.7.006.4.2 -cswq --script test-get-process_id.r rebol [ ... what's strange is that rebol starts up in trace mode, so it outputs a lot of trace information to the bash shell. I'd like to suppress the trace mode, and it's strange that it is switched on without me asking for it. Anybody have any information on this? | |
Anton: 2-Apr-2009 | I now seem to be able to list windows associated with a given process id. I've tried the konsole pid, and I get five result windows... | |
Anton: 2-Apr-2009 | Gabriele, thanks, I'm having a look inside. Do you know if associated windows can be found? | |
Anton: 2-Apr-2009 | I'm still looking for a way to identify the windows opened by a rebol process... Lots of info to wade through. | |
Anton: 2-Apr-2009 | Well, there could be something there (I had a quick look), but I probably want to target the X Window core system, or, look at all resources allocated by a process and then see which ones are opened windows. | |
Pekr: 2-Apr-2009 | I will ask one person tomorrow whom I do regard being a guru. Not sure he is working with windows - he's a typical kernel and console guy :-) | |
Pekr: 2-Apr-2009 | I got reply from my other colleague who started to write video player upon ffmpeg. He uses SDL, and there is a parameter called - SDL_NOFRAME. Maybe you could look, how SDL handles it? What is more - their wrappers should be cross-platform, so we might find solution for more than one OS actually .... | |
Anton: 3-Apr-2009 | Right, but before I get to manipulating the window, I need to have the window pointer. If I don't have a way of getting that from the process id, then it remains hypothetical. | |
Anton: 3-Apr-2009 | X.org maillist doesn't have any easy answers to this, either. Looks like it really is time to hack. This will be a big job. | |
Anton: 3-Apr-2009 | -f file True if file exists and is a regular file. | |
Anton: 3-Apr-2009 | There's a whole host of other one-letter variants for checking other types of objects that may be present in the filesystem. It's completely brain-damaged for bash to use one-letter options for this - but that's the situation. | |
Anton: 3-Apr-2009 | Probably that env var is set up by SDL, and only for a window which the SDL system knows about. Since rebol doesn't use SDL to open its windows, SDL (most likely) won't know about those windows. | |
Anton: 3-Apr-2009 | But anyway, I'm heading down the DLL injection path, using LD_PRELOAD. I have a simple LD_PRELOAD example working, which intercepts calls to the time() function (and works with rebol). The next example I'll try will intercept X window calls. | |
Anton: 3-Apr-2009 | Not Rebol callbacks. A DLL built using C is injected using LD_PRELOAD when running any executable. The executable I'm interested in is Rebol, of course. This injected code intercepts calls to XCreateSimpleWindow (which creates the X Windows window), and adds some properties to it, including one which stores the process id of the application opening the window. This means that each X window can be ensured to have the process id of the application that opened it (which is otherwise not mandated by X). So I could do that to any program and it would ensure that there is a way to get the process id. I'm doing it to Rebol, and this means it is now possible for another DLL function (called from Rebol) to scan all the windows opened on the X display and see which one has the Rebol process id. All you need is the process id, and this is easy to do with a very small DLL function call. | |
Anton: 3-Apr-2009 | I was starting to think about how I could possibly get a rebol callback happening, though. That should obviate the need to scan all open windows, which is a crude way of getting information. | |
Anton: 4-Apr-2009 | I've just got another method of passing the Window XID to Rebol, obviating the need to scan all open windows. Much more direct, it sets an environment variable, which Rebol can read with get-env after VIEWing a window. | |
Anton: 5-Apr-2009 | But I think I caught up to where RT left off on the hunt to implement NO-TITLE and NO-BORDER. It looks like there is no window manager agnostic way of separately specifying these window decorations. I will investigate some more, though. I have managed to open a window with no title and no border, but it doesn't respond to events at all, because this was achieved by basically telling the window manager not to manage the window at all when X is opening it. | |
amacleod: 5-Apr-2009 | I have a program I would like to run on a netbook (Small screen 800x480) so I do not want to lose any realestate to title bar... (I know it can come with XP but for another $50) Also, I like the idea of the application "taking over" the netbook as if this device and the App are one. It's for use by non-techies so as little interaction with linux as possible is desired... | |
amacleod: 5-Apr-2009 | Sort of like an appliance... The perfect setup would be to boot into a slim xwindows environment with no or minimal wmanger running my app but have key combo at start up to boot into full linux desktop | |
Anton: 7-Apr-2009 | I've just opened a little Rebol window without title bar or border, but it can be moved around and handles events as a normal window does (eg. view layout [button area] works). | |
Anton: 7-Apr-2009 | I think this method, which uses a small amount of code, may be window manager agnostic too. | |
Anton: 7-Apr-2009 | On KDE here, I can press and hold Alt key, then left-click drag a window with the mouse. | |
Anton: 7-Apr-2009 | For R3, it looks like a very similar trick should work, even through wine. | |
Geomol: 7-Apr-2009 | This window without title bar can be moved in R2: main: layout [origin 0 box "Drag me!" feel [engage: func [f a e] [if a = 'down [pos: e/offset] if find [over away] a [main/offset: main/offset - pos + e/offset show main]]]] view/options main [no-title] | |
Geomol: 7-Apr-2009 | So you can build your own title-bar and make it behave like a normal title bar. | |
Pekr: 9-Apr-2009 | In two weeks I am going to set-up new Linux server finally. I have got the HW - SuperMicro board. I will install Mikrotik RouterOS on it, and it allows me to serve as a FW/router, and iside of it I want to install Ubuntu server in XEN | |
Izkata: 9-Apr-2009 | Tested with a simple "view layout [box]" on Ubuntu Hardy with the wmii window manager, View does not crash when using xrandr to change resolution. | |
amacleod: 17-Apr-2009 | I've tried ubuntu many times with the latest trying ubuntu server edition. I installed webmin (not too hard). I ended up installing a low-end desktop environment... But as usual I hit too many walls... It also ran like a dog on this low end PC. It was a slow 800mhz but should have been fast enougg..I probably need more memory as I thing there was alot of disk swaping going on.. Now, I'm using ms server 2003...Atleast now I can go to my brother if I have a problem...He does not know linux. I want to support Linux but I'm never happy with it in the end. Perhaps, Syllable can one day be my server of choice .. | |
Izkata: 17-Apr-2009 | Don't know anything about the server questions, but Ubuntu by default doesn't have a root password - use "sudo su" to get a root terminal, then passwd if you want to give root a password | |
Pekr: 17-Apr-2009 | OK, so you are saying that I need to use some older Ubuntu version? They officially release 8.10 version and some main packages don't even work? I thought that by going Ubuntu I would be more safe from such a hassle. I probably need to go with LTS version then? | |
Gabriele: 18-Apr-2009 | Petr, on Ubuntu there's no root password, unless you set that manually. On a server, this is debatable, but on workstations/desktops (which is Ubuntu's focus) it makes no sense to have two passwords for what is basically the same user. | |
Robert: 30-Apr-2009 | I now have several entries in Grub to boot different Kernel versions. Can someone explain to me how this works with all the rest of the applications and libraries? I can imagine that you just use a different boot image to get a different kernel. But how does Linux handle all the "kernel dependent" libraries? | |
Robert: 30-Apr-2009 | IIRC VMS had a very cool method to handle different version if the same file in a transparent way. | |
Gabriele: 1-May-2009 | Brian: still, distributions would not send out a kernel update that would break the userland. If there's an incompatible kernel, it simply never gets into that distribution, until next version of the whole distro | |
Gabriele: 1-May-2009 | the only case when i had problems upgrading a kernel was when i was on Gentoo, and the new kernel would use different names for my hd partitions (switched from /dev/hdX to /dev/sdX), which meant that I had to fix the /etc/fstab for it to boot. these things don't happen on normal distributions, and even on Gentoo I could have avoided it if I paid attention I guess. | |
Robert: 3-May-2009 | Gab, ah, sorry I didn't mean going from 2.6.a to 2.6.b I mean having 2.4.x and 2.6.y on one system. | |
Robert: 4-May-2009 | It's not, but it looks like using dist-upgrade on Debian ADDs a new kernel and release without removing the old kernel (and maybe old apps). At least you get a new entry in Grub. | |
Gabriele: 5-May-2009 | even when going from 2.4 to 2.6? I guess that if they do that, they must have tested it. i'm not aware of debian being able to keep multiple versions of programs though, so if it's installing a new version of a program, most likely it will remove the old one. (it can keep multiple versions of the same library, but not always) | |
Anton: 6-May-2009 | I am interested in improving the display of fonts by R2 on Kubuntu Gutsy 7.10. I am not yet aware of what font rendering systems are used by Kubuntu, but I can see lots of True Type Font (.ttf) files anyway. I can get R2 View to display a font (eg. gentium), but the scaling looks pretty bad. eg. view layout [text "Hello" font-name "gentium" font-size 16] | |
Anton: 6-May-2009 | Actually, what I'm primarily after is a fixed-sized font that looks nice at different scales. | |
PeterWood: 8-May-2009 | Thanks Gabriele. I wanted to know in case we convert the Script library to utf-8 what conversions we would need to support Library Data Services. I already have a utf-8 to iso-8859-1 conversion function.(It on't be as good as yours or one of Oldes but it works). (When I say if we convert the script library, I really mean Sunanda as he does all the hard work). | |
Janko: 8-May-2009 | hi, has anyone had this problem before? I got to a new VPS .. I downloaded rebol and cheyenne and I can't run them ... - when they weren't chmod +x if I did ./rebol ./cheyenne I get Permission denied - once I make them executable I get No such file or directory .. If I type ls they are there in both cases, I also copied them into bin and tried to run them there but same thing, I could run neighbour files in bin like ./readlink but not ./rebol and by the looks of ls -l they had the same rights/owner everything .. I also copied and renamed both files and the same .. any ideas how this can happen .. file is there | |
kcollins: 8-May-2009 | There is a way to hack the executable. It's been discussed previously on this AltME world. You should be able to Google it. | |
kcollins: 8-May-2009 | Although you might want to consider just switching to 32 bit if you don't have a specific reason to use 64 bit Linux. | |
kcollins: 8-May-2009 | 64 bit uses more memory, and memory is usually the most significant constraint on a VPS. | |
Janko: 8-May-2009 | kcollins ... this VPS was given to me as a present by long time customer ... I said I wanted 32 bits but I guess his admin mixed up things | |
Janko: 8-May-2009 | I will try getting 32 bits, if it won't be possible I will google for hack .. Doc : I tried ldd and it said >> not a dynamic executable (so I guess that isn't the problem) | |
Janko: 8-May-2009 | [root-:-www]:/usr/bin# ./rebol -bash: ./rebol: No such file or directory [root-:-www]:/usr/bin# ldd ./rebol not a dynamic executable [root-:-www]:/usr/bin# ldd ./who linux-vdso.so.1 => (0x00007fffe89fd000) libc.so.6 => /lib/libc.so.6 (0x00007ff4e02bc000) /lib64/ld-linux-x86-64.so.2 (0x00007ff4e060f000) | |
Janko: 8-May-2009 | client said that reinstalling linux would be a little problem, so this will do for now ... I installed the ia32-libs ( apt-get install ia32-libs ) and now rebol works | |
Janko: 8-May-2009 | rebol now works, but I have a problem with cheyenne , something similar to what Doc said before -------------- [root-:-www]:/usr/share/cheyenne# ./cheyenne ** Script Error: Library error: /lib/libc.so.6: wrong ELF class: ELFCLASS64 ** Where: do-cache ** Near: all [ any [ exists? libc: %/lib/libc.so.6 exists? libc: %/lib/libc.so.5 ] libc: load/libra... [root-:-www]:/usr/share/cheyenne# ldd ./cheyenne libm.so.6 => /lib32/libm.so.6 (0xb7ef7000) libdl.so.2 => /lib32/libdl.so.2 (0xb7ef3000) libc.so.6 => /lib32/libc.so.6 (0xb7da1000) /lib/ld-linux.so.2 (0xb7f24000) [root-:-www]:/usr/share/cheyenne# | |
Dockimbel: 8-May-2009 | I fix that issue in my developement version of Cheyenne a week ago. Just edit %misc/unix.r and change the access path to libc like this : any [ exists? libc: %libc.so.6 exists? libc: %/lib32/libc.so.6 exists? libc: %/lib/libc.so.6 exists? libc: %/lib/libc.so.5 ] | |
Henrik: 8-May-2009 | ManuM, can you do something similar for a file manager window? That would solve a bug in R3 Chat. Thanks. | |
ManuM: 9-May-2009 | Henrik: If you are talking about bug#779 I have added a comment at bug http://curecode.org/rebol3/ticket.rsp?id=779&cursor=1 Something similar can be: open-file-manager: funct [ dir ][ call reform [ "xdg-open" dir ]] | |
ManuM: 9-May-2009 | Robert: I work with kubuntu 8.10 but I think that can help This is one line from my "/etc/fstab" file. It mounts a fat filesystem at /media/DESARROLLO ( dir /media/DESARROLLO already exists ) /dev/sda7 /media/DESARROLLO vfat rw,utf8,umask=000 0 0 With umask=000 the access to /media/DESARROLLO will be rwxrwxrwx ( the owner is root and the group is root, I don't know how to change it ) | |
Robert: 9-May-2009 | There is a tool to convert filenames (convmv) to UTF8. I'm wondering, what influence this has on running programs? | |
Robert: 9-May-2009 | For example: IOS has a registry, if I conver the filesystem names to UTF8, will this render the registry entries invalid? | |
Gabriele: 12-May-2009 | re: ios, if you have non-ascii chars, it could be a problem. | |
Gabriele: 13-May-2009 | most programs do not check that the file name is valid utf-8. normally, you're using a utf-8 terminal so there is no way you can type an invalid filename. but you can easily create one using rebol for eg. or using escape sequences in the shell and so on | |
Maxim: 17-May-2009 | I haven't played with unix for so long I'm a bit (very :-) rusty. when doing an 'ls -al' I get: total 20 drwxr-xr-x 2 root root 4096 May 16 05:37 . drwxr-xr-x 21 root root 4096 May 16 12:10 .. -rw------- 1 root root 437 May 17 09:35 .bash_history -rw-r--r-- 1 root root 412 Dec 15 2004 .bashrc -rw-r--r-- 1 root root 140 Nov 19 2007 .profile I can't remember what the "total 20" stands for. it doesn't map to file numbers, block counts used by files, or anything I can gather... is this some type of millisecond count of time it took to perform the file list? | |
Maxim: 17-May-2009 | I used to be an IRIX certified integration expert... working on 1M$ + systems ... this feels strange...I feel like a newbie all over again :-) | |
Maxim: 18-May-2009 | I never really liked linux... (being a fan of "real" unixes which actually do work all the time ;-) and now I am remembering why. | |
Maxim: 18-May-2009 | I got a bare-bones debian install, and am trying to add X11 to it. can any one point me to a real link with explicit instructions? | |
Henrik: 18-May-2009 | apt-get install xserver-xorg might be a good place to start | |
Maxim: 18-May-2009 | I've tried following instructions from a few sites which show a 3 command line install, but that fails, since it doesn't install x11 , only xwindows, and then it reports its missing about 2% of the files from the distribution server itself. | |
Maxim: 18-May-2009 | yep that fails so far. getting a number of missing packages. | |
Maxim: 18-May-2009 | there are a few missing files, but so far it at least was able to get to the point where it actually installed the X 11 apps and utilities... not just a few libs | |
Maxim: 18-May-2009 | this is an exciting time for me... I've been inching my way to this point for almost a decade. building libs and tools one by one with a precise vision in mind. I am now at the point where I can start integrating all of that into "products", and so far there is very little things to change, all the lego bricks fit together :-D | |
Maxim: 18-May-2009 | there is a !remark group.. more details are there, ask remark questions there ;-) | |
Maxim: 24-May-2009 | I am sourcing a file with alias commands in them, but they aren't actually being applied. typing those exact commands directly in the shell works. I know alias is not a file command, but a bash internal operation, but how can I get bash to source the files and apply the aliases to my login automatically? the echo within the file IS printing on the shell, so its not just chmod thing... any linux gurus can help me? | |
Maxim: 24-May-2009 | maybe the originally sourced files are executed a bit differently. on sgi IRIX I never had any issue with sourcing files into the .cshrc files... I was using tcsh, which I usually prefer over bash, but isn't included by default in all flavors of unix. | |
Maxim: 24-May-2009 | I remember that things like aliases are a bit more flexible (dangerous too) in csh and tcsh | |
Maxim: 24-May-2009 | its soo cool my ssh based tool reports the login errors in a nice rebol alert box hehehe | |
Maxim: 24-May-2009 | what's strange to me is that the echo within my sourced file was sent to the console, clearly indicating it was being call as a script, unless there are different bash script evaluation levels and I don't know how to set it up. | |
Janko: 30-Jun-2009 | Any idea how to start a rebol script via ssh (I have a VPS) .. and detach it from my console so when I close it it won't stop running? cheyene executable file does this automagically (I have no idea how) .. if I run cheyenne through .r script it exits with me .. but my problem now is not with cheyenne but I have a custom script that should run in the background. After googling yesterday I found out about >> nohup script-to-run & which seemed to still work if I closed ssh and started another one but now I see for the second time that after a while it exited as it isn't running any more ... | |
Janko: 30-Jun-2009 | btw ... I have a wiki where I write down these things so I don't forget .. http://www.manage-websites.com/doku.php?id=tutorial-linux-shell .. if you are linux-stupid like me maybe you can find something helpfull.. or you can add something :) | |
Kaj: 30-Jun-2009 | You can use screen to detach a session and reconnect with it later, possibly from an entirely different machine | |
Kaj: 30-Jun-2009 | Another way is to have the program detach itself, possibly switching to running onder a different user account | |
Janko: 30-Jun-2009 | yes, nohup is very usefull too , with & .. for example nohup some-longer-tast & .. but for my concrete example I wasn't able to figure out why rebol script terminated after a while, not on every exit but at some point I just saw it wasn't running any more .. and by the look of nohup.out file there was no error .. but "rebol terminated" | |
Graham: 30-Jun-2009 | Janko, it's just that everytime I learn something that I know I will forget .. I write it in a wiki somewhere :) | |
Brock: 30-Jun-2009 | what I am missing is a synch with a server so I can always have the same info everywhere... which AltME works nice for as would the wiki. | |
Gabriele: 1-Jul-2009 | Janko, basically the thing is, if you want to see the program's output, you need to use screen. This allows you to have output and detach it. Otherwise, you can just redirect the output to a file (or to /dev/null), then you can exit your ssh session without problems. | |
Gabriele: 1-Jul-2009 | i'm not sure if it's installed by default anymore, but there also used to be a "nohup" program which would redirect your program's io and detach it (run it in the background). | |
Janko: 1-Jul-2009 | Gabriele: I was using nohup like this >> nohup /.../rebol script.r & << but at 2 times rebol script got terminated for some reason after a while.. it did stay alive after I closed and reopened ssh but when I came later it wasn't running any more and by looking at output file nohup.out last thing was "rebol terminated" so it didn't exit on error but got terminated in the same way if I press Ctrl+C (maybe I just need to read more about nohup) | |
Gabriele: 2-Jul-2009 | Janko, it's hard to say what could have sent a sigint or similar to the rebol process. you could though catch those signals from REBOL if you wanted, via the system port. | |
Ashley: 23-Jul-2009 | OK, so I've downloaded Ubuntu 9.04 (64bit) and got it running under VirtualBox, then I download and untar/zip the REBOL SDK and open a console session. cd to the REBOL dir and do a chmod +x and type ./rebview ... which comes back with a "file or dir not found message" ... anything else I need to do to get REBOL working? Oh, and what font looked best with RebGUI in your opinion? | |
Alan: 24-Jul-2009 | 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 | why do you need a license for rebol? | |
Gabriele: 24-Jul-2009 | 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 | 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). | |
Ashley: 25-Jul-2009 | 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. | |
Ashley: 25-Jul-2009 | 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 | a simple way from REBOL? you probably have to parse the fontconfig files. | |
Reichart: 26-Jul-2009 | (and all I want is the clean install of Ubuntu to use a good looking font) | |
Ashley: 27-Jul-2009 | 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 |
23901 / 64608 | 1 | 2 | 3 | 4 | 5 | ... | 238 | 239 | [240] | 241 | 242 | ... | 643 | 644 | 645 | 646 | 647 |