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

World: r4wp

[Rebol School] REBOL School

Ladislav
18-Jul-2013
[2072]
Endo, you may know this case:

my-code: [s: "" append s #"x"]

do my-code
do my-code ; == "xx"


my explanation is accurate for this case as well. You can see that 
the string (the "" value following the s: set-word) was created by 
LOAD only once, while append occurred twice expanding the string 
to contain "xx".
Endo
18-Jul-2013
[2073]
created by *LOAD* only once
, Ok I got it now. Thanks for the explanation.
Janko
18-Jul-2013
[2074x2]
I have a question about timezones. I need to make a selector for 
workonomic where user can set the TimeZone Like "Europe/Ljubljana" 
 instead of TZ offset which changes between summer/winter time depending 
on the timezone etc..
I assume rebol doesn't have "Labeled Timezon => current offset" capability 
so I am wondering if anybody had to do this and what (s)he found 
the best solution was? I see two ways, using external service in 
a lang that has such database/library (like php's ) or using the 
OS below (from bash) "TZ=":Pacific/Auckland" ; date +%z" ... also 
is there anything still I can do inside rebol, like getting some 
prefilled sqlite db using some lib I don't know of..
Gregg
18-Jul-2013
[2076]
QTask may have solved this, and the source should be available somewhere. 
It might have been Bolek that worked on it, but I can't remember.
Gabriele
20-Jul-2013
[2077]
Yes, it's in Qtask source. I used a script to translate the TZ database 
to REBOL, then made a REBOL function to convert between timezones.


Note, if you are using MySQL, you can have it handle timezone conversions 
too.
Janko
20-Jul-2013
[2078]
Thanks Gabriele, I found by googling that mysql can have timezone 
database installed and has the functions to handle it then. http://stackoverflow.com/questions/805538/in-mysql-caculating-offset-for-a-time-zone
(the second answer, with a link of how to install if anyone else 
will be looking)
Reichart
21-Jul-2013
[2079]
:)
Gerard
27-Jul-2013
[2080]
I always found I was missing some foundation about this Rebol's behaviour. 
I have to note it elsewhere in my own documentation system as to 
be able to report it someday when I'll be publishing some formal 
learning material about Rebol, Red and other Rebol-inspired languages. 
Thanks.
Kaj
28-Jul-2013
[2081x7]
>> import %./cURL-binding.so

** access error: cannot open: %./cURL-binding.so reason: "not found 
or not valid"
Sujoy, I've also had problems loading my cURL extension library
It seems to depend on the R3 version and the Linux system
Have you tried the latest community R3 build? If that doesn't work, 
perhaps Carl's last release?
These problems seem quite random, so I don't feel like doing more 
work on R3 extensions in C. I'm having similar problems with Red 
extensions for different R3 versions, but at least it solves most 
of the dependency problems with different Linuxes
If all else fails, you need to compile the cURL extension on your 
system from the C source code
You have a better chance of me seeing such a question if you pose 
it in !R3 Extensions
caelum
2-Aug-2013
[2088]
When R3 was open sourced, I presume the SDK was not also open sourced? 
I am looking for the 'C' source code for the RSA, AES and Blowfish 
encryption functions.
PeterWood
2-Aug-2013
[2089]
The SDK is only for REBOL2, which was not open sourced.
Arnold
2-Aug-2013
[2090:last]
To find source codes, you will need to search with google or so. 
"blowfish source code c" first result looks promising http://www.schneier.com/blowfish-download.html