• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red] Red language group

Bo
27-Jun-2013
[8958]
Can Red/System read a directory listing?
Kaj
27-Jun-2013
[8959x3]
It should, but you have to interpret the data manually
I haven't looked into it yet
I see you'd need some extra definitions that aren't in my C library 
binding yet
Pekr
28-Jun-2013
[8962x2]
james & kaj: I have JDK installed too, you should be sure, that you 
can call java, javac from whatever dir = it is in the system lookup 
PATH. And - Rebol was downloading supporting tools, then it hang 
in console, but in fact, there was a dialog box hidden in the background, 
asking me for write permission. Unless you allow that, the tools 
are not going to be saved into requested directory ...
My directory structure is:

build\tools:

\api\android.jar
jli.dll
aapt.exe
keytool.exe
zipalign.exe
DocKimbel
28-Jun-2013
[8964]
@james_nak, first delete any jarsigner exe you might have downloaded 
or copied outside of the java folders. Then try to run jarsigner 
from the Red folder, if it says it can't be found, then you have 
to add to your PATH environment variable, the path to the java/bin/ 
folder of your installed JDK.
Pekr
28-Jun-2013
[8965]
Doc - how do your slides go? :-) I hope you have prepared many questions 
for Carl :-)
DocKimbel
28-Jun-2013
[8966x2]
Barely started, gone to see "Man of Steel" yesterday night to get 
some inspiration. ;-)
I'm trying to extend the build script for other platforms, but my 
Ubuntu 11.04 image somehow got stuck with old source repository versions 
and no way to install/update any packages...So I now need to install 
a 12.04 package in order to check the requirement for the build script 
and test it. I'm baffled that the support for a 2 years old Ubuntu 
version is so bad...
Pekr
28-Jun-2013
[8968]
How was the movie? Seen trailer, liked it ...
DocKimbel
28-Jun-2013
[8969x3]
I've found the trailer better than the movie, I was quite disappointed 
(I'm a huge DC comics fan)...the "epic" moments weren't that much 
epic to me, so the whole movie (2h30) was a bit borring...The Krypton 
civilisation and display technology were the most interesting parts 
to me. ;-) Actually, the movie reminded me a lot the "Tree of Life", 
like a mosaic of sequences, and with almost the same soporific audio 
track... No real breathtaking moments...Even the mandatory "love 
story" sounds fake... The fx +  3D was too much to me, you're quickly 
lost in the fight sequences. But that's just my opinion, others might 
like it very much. ;-)
If only Zack Snyder had chosen to adapt the "Red Son" instead...*that* 
would have been epic! ;-)
(Or "DC 1million" instead, with the original Superman coming out 
from the Sun core after 80k years of hibernation and meeting with 
the 843th Century's Superman with its incredibly enhanced abilities) 
;-)
Andreas
28-Jun-2013
[8972x2]
11.04 is a non-LTS release, support officially ended Oct 2012.
For out-of-support distros, the package sources move to a different 
server.
DocKimbel
28-Jun-2013
[8974]
Yes, I tried every 11.04 moved repo URL I could found online, none 
worked for me.
Andreas
28-Jun-2013
[8975]
If you switch your apt sources to old-releases.ubuntu.com, things 
should work again.
DocKimbel
28-Jun-2013
[8976x2]
Tried that, didn't work...
But I did it through Synaptic, I might try to do it manually...
Andreas
28-Jun-2013
[8978x2]
deb http://old-releases.ubuntu.com/ubuntu/natty main restricted
(A correct entry for /etc/apt/sources.list, for reference.)
DocKimbel
28-Jun-2013
[8980]
Yes, that's what I've inputted (though, I missed the "restricted" 
part).
Andreas
28-Jun-2013
[8981x2]
restricted is not strictly necessary.
Different package sections; for all of them it'd be "main restricted 
universe multiverse".
DocKimbel
28-Jun-2013
[8983x2]
I'll check the sources.list file in 11.04 once I finish installing 
12.04.
I can't even find a way to open a terminal in 12.04...why do they 
need to mess up things like that on new versions...
Andreas
28-Jun-2013
[8985x2]
Because they decided to switch to "Unity" ...
(Which isn't unequivocally liked or well-received ...)
DocKimbel
28-Jun-2013
[8987x2]
Synaptic wasn't updating the sources.list file correctly, changing 
it manually seems to have fix it. At least, I can now install a JDK 
package.
It's funny that they consider opening a terminal, a 2nd class feature 
while LibreOffice comes preinstalled (thanks for the bloat) and many 
icons shortcut are present right on the desktop...I can understand 
now why old linux users got pissed off...
Kaj
28-Jun-2013
[8989x2]
Bo, after sleep, here's one last optimisation for you grayscale comparison 
loop:
img1: img1 + 1
...
im1: (as-integer img1/1) + img1/2 + img1/3 / 3
img1: img1 + 4
Bo
28-Jun-2013
[8991]
Thanks!
DocKimbel
28-Jun-2013
[8992]
APK build script now works on Linux!
Kaj
28-Jun-2013
[8993]
Very cool
Arnold
28-Jun-2013
[8994]
I am facing this terrible message again and again.
*** Error: word has no value!
I want to know the name of the troublemaker!!
Kaj
28-Jun-2013
[8995x2]
That would be the word you're trying to access before it's defined
It would indeed help if its name were printed
Arnold
28-Jun-2013
[8997x5]
Yes and it is before any print I built in and I am sure there are 
prints before it comes there....
redefining sure.. :)
messed up something completely different along the way. But indeed 
naming the evildoer would have saved a lot of energy.
Is there a difference calling function from Red in included reds 
script vs calling it from a fellow reds script?
Does the #system-global [#include %random-taocp.reds] change 
random-seed: function [seed [integer!]][
    random-taocp/ran_start seed
]
to not longer working?
Bo
28-Jun-2013
[9002]
Sorry.  I don't know anything about that.
Arnold
28-Jun-2013
[9003x2]
Could it have to do with the context random-taocp ?
Have put some files in the folder Red/random compiled randomtest1.reds 
just yet and it still works. But the red script rndtst003.red compiles 
to give an error and not even print the line that was printed in 
ran_start function
ran_start in random-taocp.reds value seed: 310952
Add this to the issue list?
Kaj
28-Jun-2013
[9005x2]
A Red program is very different, because it includes the entire Red 
environment and runtime, which is much larger than the Red/System 
environment
How are you calling your Red/System function from Red?
Arnold
28-Jun-2013
[9007]
exactly like I do as I would from the reds counterpart.