« first day (3241 days earlier)      last day (539 days later) » 

1:30 AM
@Edoc - with Graham out for another month, why don't we get your project up and running on Travis next. Email me the files you have and we'll set you up.
@rgchris For your most relevant project beyond httpd that you don't want under Redbol, same. Minus the email I mean. I'm just going to be a stickler on Travis, because I see no path forward without CI.
 
1:49 AM
@HostileFork Will do. Sounds good. I think my code can be at best regarded as proof-of-concept. Bounties will be attached to making my code more production quality.
2
 
 
2 hours later…
3:25 AM
posted on September 15, 2019 by @hostilefork Brian Dickens

@hostilefork wrote: There was an old bug raised by @Respectech on Atronix's repo, which I will digest as: On Windows: >> write %test.txt "a^/b^/c" When opening %test.txt in Notepad, for instance, you'll see: abc But then... >> read %test.txt == #{610A620A63} Either I expect 'write itself to convert "^/" to "^M^J", or I expect there to

 
 
7 hours later…
10:38 AM
Hey @GrahamChiu. How's your vue.js study abroad program going? :-)
 
@HostileFork no where
been doing family stuff
getting ready for step son's wedding
too much stuff to do
 
I've been Travis-ing things. This morning I'm fixing httpd.reb handling of large files and making sure it can pass stress tests.
 
@HostileFork Thanks, well, that's what I presumed. For experimenting, I'll try to set up a cors enabled server.
 
So, apk can now be created by Travis?
but can't be uploaded to s3??
Or was that something else?
 
@GrahamChiu Yes, I think you're going to have to make another key specifically for the metaeducation/rebol-server instance... the metaeducation/ren-c one is not working.
 
10:44 AM
@HostileFork where's the travis site?
the encryption key is linked to the travis site
so it should work if it's going to the same travis site
@HostileFork that github, like all, is blocked for me
 
# See the notes on the Ren-C .travis.yml for these Amazon AWS keys.  The
# most important thing to note is that the Travis "deploy" feature is not
# used by this script, but uploads are manual via the `aws` command-line
# tool, to get more control over the upload ordering and MIME types.
#
- secure: 'Bex3tqrlsnv+t3+AJu6nG8bcbfHXeBNWIUUdcEeyB8gWnWnVuBsC5hTw9cUhEWJchJSsV4LeWVL51harzOQRntszyfjeNvPQozCXbTQVGd1tn5Rpt1QKN9VBK007c+ERj9L8JzFkM2HdeVusYY4Bz5tI883DSJkydyJpJp21mG9i8a17bqJsgBW0JmMsMsdv1ilaeb8/Luo8bn0ObIWTTz+4/6RF4XU9UcWLH7I4HlGb3qufR9chWCX7jTT0SLRkEgfudr+KVrY4xIspiPlVwrKvagnOTFcYLxN4JpG
@GrahamChiu ^-- that's public information, published... it's a contract between Travis-CI and that repo to write to s3 for the metaeducation bucket. Clearly it can't be used by just anyone on Travis-CI or they could use their own script to upload/delete/etc. files.
So there must have been some step in the process to specifically encrypt a contract for metaeducation/ren-c and that bucket.
That process needs to be done again for rebol-server. It can use the same bucket.
 
@HostileFork Yes, it's the encryption key under your account on travis
and github is blocked
it's a public key but I can't login to see it because it needs github to login
 
@GrahamChiu Hm... actually @giuliolunati, did you not ever push to metaeducation/rebol-server, and only have it fail to do the upload from your local branch?
@GrahamChiu If it is tied to metaeducation overall, then maybe the problem is that Giulio was testing but never pushed to the main.
 
I documented it somewhere
 
Well don't worry about it for the moment, either way. Maybe what I just said is what the problem was. It's a branch, not master, and maybe branches don't count.
In any case, people don't need to be downloading .APKs just yet ; I want to keep the focus on testing.
 
10:56 AM
1
Q: How to encrypt your Travis keys

Graham ChiuThe Travis docs say that the easiest way to encrypt keys eg. To upload to S3, is to use their command line tool. Are there other ways to do this that doesn't involve installing Ruby etc just to use their command line tool?

 
But it looks like we probably could do some rather cool scripting access to phone features via an "Android extension". Basically just keep pushing the pattern, make some Java natives...
@GrahamChiu Cool, great (I should link that in the .travis.yml)
 
So, you can see it's travis-ci/userid/repo specific
 
@GrahamChiu Ok, so we need to do that again for metaeducation/rebol-server
 
Yes
 
88
Q: Calling a java method from c++ in Android

Denys S.I'm trying to get a simple Java method call from C++ while Java calls native method. Here's the Java code: public class MainActivity extends Activity { private static String LIB_NAME = "name"; static { System.loadLibrary(LIB_NAME); } /** Called when the activity is firs...

So... now we need an Android extension, where the body of a function can be Java code, and use the libRebol API in Java.
And make the rebol-server willing to register them for you. So you can write these Java-natives in your same client that has the JavaScript natives, except the Java natives are proxied.
So maybe it breaks down in two parts. The Java extension which uses JNI built into the android-based executable, then an Android extension which is loaded into the WASM build which knows how to talk to the rebol-server equipped with that Java extension.
Meanwhile, I do not understand what is going on with this httpd.reb transfer bug, but I imagine I will get it tracked down soonly.
 
 
2 hours later…
1:21 PM
posted on September 15, 2019 by hostilefork

The http protocol does not honor the Content-Length header field, and instead reads data as much data as a socket provides. This was discovered when the httpd.reb server was using length of a string in codepoints for the Content-Length, instead of the length of the binary encoded UTF-8. So for instance, the header claimed a content length of 19 when serving the string HighCodepointCat(😺), wh

 
@rgchris httpd.reb was giving a bad content-length for text, and this didn't always cause a problem for the http protocol due to the above compensating bug...but it could sometimes cause problems. I figured this out by doing some varying size stress tests and it just kind of erratically caused a problem here or there.
I don't know if that is the only reason the internal chunking sometimes appeared to not work correctly or not. My tests are on a localhost speaking to itself over a local socket, and using the manual chunking appeared to make no difference, but maybe it could have if you had some delays over a network.
 
 
3 hours later…
4:34 PM
All right, I get it. I understand the fatal chunking flaws now. Ugh.
 
 
2 hours later…
6:46 PM
@rgchris @giuliolunati Ok, well I have addressed that problem I believe...and manual chunking is no longer needed. I've added a stress test that doubles the size of the information transfer each step: travis-ci.org/metaeducation/rebol-httpd/jobs/585276449#L556
 
7:25 PM
@HostileFork GREEEEAT!!
 
posted on September 15, 2019 by noreply

Hello to all the great makers, doers and creative people who are using Red, helping the Red Language grow and improve! As always, there's a standing invitation for you to join us on Gitter, Telegram or Github (if you haven't already) to ask questions and tell us about your Red-powered projects. Here are some recent highlights we’d like to share with you: 1. Tickets Get Priority In the last m

 
 
2 hours later…
9:41 PM
@HostileFork I certainly don't know enough about that code, but is it possible to quickly explain why you are still clearing port/locals/wire on line 483 of httpd.reb? You have removed all other accesses of it ...
 
10:30 PM
@MarkI Correct, just noticed that. But I have another commit coming to try and take care of the asynchronous error problem, which is about to clean that up. (Then, there will be a forced error test with the webserver added as well... where the connection gets dropped.)
In the process of doing what I'm having to do to make this work, we're getting pretty close to full duplex ports working.
3
(e.g. historically you can only be doing either one READ or one WRITE on an async port at the same time. This is because there's a single BINARY! as the port state, which holds a copy of whatever the last request was. But I'm switching it so that the individual requests can hold their own copies as rebUnmanage()'d API handles, letting multiple ones be in flight at the same time.)
Not being able to do this is a big complaint of @ShixinZeng's ... and it's a reason historically that we haven't had things like a CALL port where you can do a sort of remote-control style interaction with a process where you read and write it a bit at a time.
Imagine parse c: open call://... [some ["foo" (write c "response-to-foo") | "bar" (write c "response-to-bar")]]. Like Tcl's "expect" library back in the day, but Rebol-powered...
2
Hm, though there's more than just stdout on the read side of such a port...you'd also have stderr. Not sure how that would factor in.
A fundamental issue we run across with multiple requests in flight is how you know which request it is that errored or got processed. If the only abstraction you have is PORT!, then that's not really good enough. So asynchronous WRITE would have to return something like a REQUEST! (or perhaps EVENT! could be extended to serve this role, and you could WAIT on an event or attach a handler function to it to run when it completes or errors)
(Wasn't Red going to design all this like, years ago, so we could just copy it?)
 

« first day (3241 days earlier)      last day (539 days later) »