« first day (1740 days earlier)      last day (2040 days later) » 

12:00 AM
I want to implement some of @HostileFork's preferred failsafe features before I do that so that he can sleep better without nightmares of the bot taking over the room
bbl
 
Is rebolbot really 2 years old?
@HostileFork doesn't have nightmares, he has lucid scary moments in his sleep
 
12:14 AM
If anyone has the time I could use a hand with this code...
https://github.com/JacobGood1/reds-sdl-bindings/blob/master/main.reds

I have an illegal access violation, the offending function is this one

sdl-map-rgb screen-surface/format FFh FFh FFh ;line 245

I am trying to convert this tutorial to reds: http://lazyfoo.net/tutorials/SDL/01_hello_SDL/index2.php
 
Uint32 SDL_MapRGB(const SDL_PixelFormat* format,
                  Uint8                  r,
                  Uint8                  g,
                  Uint8                  b)
@JacobGood1 Those are unsigned 8-bit integers. You're passing INTEGER! which is presumably larger. You should use a character type for your r, g, b
So there's at least one issue.
 
As usual you are a great friend
=)
 
@JacobGood1 I don't know about that. But I've been around computers long enough to answer a lot of questions, even about things I'm not really working with. :-)
 
I was hoping that integer! would magically cover all ints
too much high level programming leads to assume such dumb things
@HostileFork I bet you are happy just to see me actually coding
in rebol/red
 
12:29 AM
@JacobGood1 All that makes it into the library itself, for C functions, is the name of the function (for cdecl). It's assumed that the caller knows how to arrange the parameters for the callee to read them, and the only place that is "encoded" is in the .h file. Without the .h file, you are on your own to recreate the sizes accurately.
Other calling conventions decorate the name a bit to say the total number of bytes. But C++ has what is called Name Mangling. See article for details.
@JacobGood1 Yup, coding is good... I'm doing low level data structure coding right now, and it's not my favorite thing to do.
 
12:54 AM
@HostileFork
in kaj's binding for the old sdl he made this file...
http://red.esperconsultancy.nl/Red-SDL/artifact/c794f67660c943c2

in the file I notice that there are unsigned16/32 etc "types", I am assuming that he pulled them from #include %../common/common.reds... anyway way would you know where that source code is or how to make a unsigned16/32/etc! ?
 
Linux question here. I'm trying to get my r3-view program to start automatically upon boot on the Raspberry Pi. The following line works from an SSH session to display it on the SPI display:
DISPLAY=:2.0 /home/pi/r3-view /home/pi/clock.r3
However, when I add that line to crontab -e as follows:
@reboot DISPLAY=:2.0 /home/pi/r3-view /home/pi/clock.r3
It doesn't start up automatically.
I also tried adding the following line to /etc/rc.local before "exit 0", but it still doesn't start up on boot:
DISPLAY=:2.0 /home/pi/r3-view /home/pi/clock.r3 &
 
@JacobGood1 integer! in Red/System is 32-bit, and there looks to be an int16. I don't know if there is any unsigned integer support in the language. Unsigned and signed integers can be passed in the same size parameter slots, and you should only have trouble if you need a large unsigned w.r.t. not having the math behave as you want.
@Respectech If it's raspberry pi related you might get away with formulating and asking there. If you can phrase it as a pure linux question not using Raspberry Pi, you might try SuperUser or similar.
 
@HostileFork I forgot about that. I guess I have a rep of 41 on that site and didn't even remember I had an account there. :-O
 
1:14 AM
@JacobGood1 See my response over on gitter.
 
1:33 AM
@Respectech this may be relevant
15
Q: crontab's @reboot only works for root?

Withheldman 5 crontab is pretty clear on how to use crontab to run a script on boot: These special time specification "nicknames" are supported, which replace the 5 initial time and date fields, and are prefixed by the `@` character: @reboot : Run once after reboot. So I happily added a...

When launching things from crontab you have a minimal set of environment variables set up which has tripped me up on a number of occasions
It may be better to write an init script, but I have to admit that I find them to be quite hard work
I can send you the one I have for starting altme on the digitalocean box for rebol.info/altme as it seems to be reliable although it does a lot more as it has to set up a start Xvfb and a window manger. It is not the greatest script, but it works
 
I'd be interested to see this too. I need to launch rebol at times on boot
 
1:50 AM
If you want it launched at boot depending on the distro you can write a systemd service for it.
 
@iceflow19 I haven't written systemd services, but the snippets I have seen they look very clean
 
The files aren't that bad either, heck of alot simpler then initd
@johnk I have written some before and that has been my impression too.
 
2:49 AM
posted on August 06, 2015 by qtxie

FEAT: use DirectShow to preview camera by qtxie

 
3:36 AM
@HostileFork after I get that first part of the tut running I want to try and do the same with renc to see the differences in feeling for the two methods of binding
 
@JacobGood1 Having not done anything with the FFI in Rebol myself, it would be interesting to know your results. Note that doing an FFI-enabled build involves additional steps and dependencies, as you may have seen @Respectech going through.
 
 
2 hours later…
TGD
5:12 AM
@all: I have developed a smart driver for HD44780 LCD completly written in Rebol3 for the Raspberry Pi. The Rebol skript displays the message on the LCD as an optional marquee or scrolling text. Here is a short video at YT showing the results.
2
Take a look at TGD-Consulting.de/REBOL/PiLCDisplay.r to get the code running at your Raspberry Pi.
 
@TGD Interesting to see more work on the raspberry pi! Well, in the meantime, if you've missed it: Ren/C. Rebol stability and features advancing in the here and now...
 
TGD
@HostileFork Is Ren/C available for the Pi too?
 
Speaking of which, @iceflow19... here is the chunked call stack header and implementation. We had discussed this a while ago, and now it's gotten to the point of doing it.
Jul 20 at 17:55, by Respectech
Well, that was easy! (At least on a stock ODROID)

1. git clone https://github.com/metaeducation/ren-c
2. cd ren-c/make
3. wget http://respectech.com/odroid/r3
4. chmod 755 r3
5. mv r3 r3-make
6. make -f makefile.boot

Less than 3 minutes later, a working R3!
Same instructions more or less on all.
Just use an existing Rebol3 pi binary in place of the odroid/r3
 
TGD
5:30 AM
@Respectech I am using the /etc/inittab for things like that. E.g. add those lines at the end of inttab:

# r3 clock
clk:2:respawn:/bin/su pi -c "DISPLAY=:2.0 /home/pi/r3-view /home/pi/clock.r3"
But make the sure that a X server is running.
@HostileFork I will give it a try...
 
@TGD The most noticeable things from the outset would be HTTPS support and CALL with INPUT/OUTPUT/ERROR. As you work with hardware, you might be interested in the serial port support also.
 
 
1 hour later…
6:44 AM
@earl Uh... I'm confused as to what has just happened on Travis. It seems to think ren/c's master is somewhere it is not. I checked in a detached head submodule of test on accident somehow, so I can fix that on hostilefork/rebol/stable-stack...but what's it doing to metaeducation/ren-c
 
FYI If anyone is trying to work out http headers and cookies for a site like SO then I can highly recommend Firefox. In the developer tools / network tab you can easily take a previous http request and "Edit & resend" it to look at the impact of adding and removing headers/cookies etc.
 
Reference to master looks fine.
 
@earl Oh, I see, it built the pull request.. to master.
 
The Travis repository start page shows the most recent build, which is the one for your PR#34.
 
posted on August 06, 2015 by hostilefork

This commit is a train of changes which were building up to a finale of stable guarantees from the call stack and data stack. THE CALL STACK PROBLEM A general issue with Rebol's implementation is that series are implemented roughly like a C++ vector. They are dynamically sized and can give back a pointer to their internal buffer. But if you perform any operations that can expand them then

 
6:52 AM
@HostileFork Good catch about the NDEBUG builds. Sorrily, they seem to be broken.
 
7:12 AM
Further work I have and intend to do pretty much all depends on the StableStack stuff. So the sooner we can get it vetted and checked the better. @rgchris, @draegtun, @rebolek, anyone else who can pull that branch and report issues with it... would be appreciated.
I know it's going to set off some alarms when running in real code about imbalanced stacks and other things, which are hard to catch ahead of time by inspection. That's about reigning in the native code a bit more tightly, and it will just be a matter of time until those have been gotten.
@earl The last thing I did there was the chunked stack, which is new (as in wrote that today) so a reading there would be useful. Not too complex and checks itself mostly, but still.
 
7:30 AM
Need help for this...
1
Q: Upload file with Azure Mobile Storage using SAS (Shared Access Signature)

iDroid ExplorerI know that there is library available for uploading the file using AzureMobileStoragee. I have refer this for same. But, They have not give information for how to use SAS with that. I have account name, and sas url for access and upload file there. But i don't know how to use that for uploading...

 
@iDroidExplorer ...and I suppose I'd ask: "What leads you to believe that we would know what to do about it." As a general rule of process on StackOverflow, when you ask a question on a topic... that is your way of asking it. The tags put it in front of the people who read those tags. It's considered poor practice to go around posting the question lots of other unrelated places to try and get a "faster" answer.
Though sometimes we do know. In this case, I sure don't.
But that's not really the point.
 
@HostileFork OK I will do that and take care of it.
 
 
1 hour later…
8:56 AM
@earl @ShixinZeng this commit regarding what to do about the debug/release build I haven't done anything about... I don't remember why, but I think there were some questions about how that was going to be done. We should process it one way or another. Is there any other plan?
 
 
2 hours later…
11:04 AM
My review process with StableStack is going to be basically the same as with the error overhaul branch. Which is: put the branch out there in an early form for people to look at, stop rebasing and tweaking it so people can pull it, continue work on the next thing and if I find any problems add patch commits. Integrate if I haven't found much problems in O(1 week)
Everyone is welcome and encouraged to give as much feedback as possible, but if I do not push the buttons and go ahead then this will take literally years, and that is not an amount of time I'm going to take.
The two biggest stability steps to take remaining are going to be the corrected manual/managed memory model for series, and getting rid of the memory zero fill...which is another swath of bugs. I'll probably do a couple of features before grinding on those, just to get some benefit from what's been done.
 
11:46 AM
posted on August 06, 2015 by qtxie

FEAT: added support for do %file by qtxie

 
 
1 hour later…
12:47 PM
posted on August 06, 2015 by qtxie

FIX: camera widget crashs on some devices by qtxie

 
1:14 PM
@HostileFork I think I will recall this one. I am working on a cmake based build system, which will support different build types, and some of them may be incorporated into the current make system
 
 
2 hours later…
3:11 PM
Repost from the red channel...

PROGRAMMER PRO TIP: make sure you are using the right api... I have been trying to make bindings for sdl2 with the sdl1 api, hopefully someone can have a laugh at my expense
Things are magically working better now
never assume the nice web site with all the docs is up to date basically
 
 
3 hours later…
6:10 PM
@HostileFork I'll look over the chunking implementation when I get home tonight and build it. I'm both glad and thankful you finally got to implementing it in Ren/C. Myself and others have been looking forward to this, as it will be a foundation for increased stability and performance gains.
 
 
2 hours later…
8:21 PM
@JacobGood1 Nice websites are harder to update because you feel pressure to keep them nice...an ugly website can be updated more easily. :-)
@ShixinZeng Very good, glad you are doing this. I think CMake is the way forward, and it may be (as @earl suggests) that if we have a Rebol-driven build possible, that we drop the makefile support altogether and have CMake / Rebol only.
 
@TGD Thanks for the suggestion, but it still doesn't work using this method (/etc/inittab). An X server is running because Raspbian's desktop is showing on the display.
@johnk Thanks. I ran

sudo crontab -e

so it should have worked, but didn't.
 
8:50 PM
Gabriele on AltME had the answer which I posted to my own question at raspberrypi.stackexchange.com/questions/34153/…
 
9:40 PM
Greetings @XinWang! As I said, it's pretty easy to get 20 points... just ask a question or answer one. There's a bunch of old rebol questions, and even if one already has an answer you can add your own spin if you have a different one...
@XinWang And if you haven't read "what is the difference between the Rebol branches" it might be informative...
@ShixinZeng As you instrumented the memory pools with ASAN poison/unpoisoning, I'm wondering if you get what they're doing well enough to know what would stop one from implementing a debug build non-ASAN poison/unpoison that just xor'd the memory with a repeating pattern. That way you could scramble it when you don't want it to be used, and unscramble it when it was okay again.
It wouldn't stop bad writes, but it would cause havoc for unwanted reads during the poisoned times. But I find it isn't working, and found another couple of suspicious things. For one, the memory given back by the allocator doesn't seem to always be aligned, not even to 4-byte boundaries...which is worrisome:
10
A: how does malloc understand alignment?

ruakhI think the most relevant part of the Herb Sutter quote is the part I've marked in bold: Alignment. Any memory Alignment. Any memory that's allocated dynamically via new or malloc is guaranteed to be properly aligned for objects of any type, but buffers that are not allocated dynamically have...

 
10:17 PM
@Respectech if the raspbian desktop is started then there are other options to autostart aps such as an autostart/matchbox-keyboard file raspberrypi.org/forums/viewtopic.php?f=26&t=18968 (I need to do this as well so let me know if it works!)
 
10:27 PM
I got it to work easily by this:

Created the following file:
/etc/X11/Xsession.d $ sudo vi 98-r3-view-clock

Entered the following into that file:
# R3-View Clock.r3

/home/pi/r3-view /home/pi/clock.r3 &
---
Rebooted, and voila!
 

« first day (1740 days earlier)      last day (2040 days later) »