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

World: r4wp

[#Red] Red language group

Kaj
30-Oct-2012
[3128]
An Internet connection for a Windows machine is close to a lethal 
injection
AdrianS
30-Oct-2012
[3129]
why don't you just disable the auto  downloading?
Kaj
30-Oct-2012
[3130]
It would need to start up first to reach that...
AdrianS
30-Oct-2012
[3131x3]
well, that's the first thing I do when I set up a Windows machine
but then, I'm pretty anal about keeping the system up-to-date
what happens if you go to the "last known good configuration" - F8 
on startup?
DocKimbel
30-Oct-2012
[3134]
I do as Adrian: first thing when installing any Windows version, 
disable auto-updating.
Pekr
30-Oct-2012
[3135]
I never ever had issue caused by Windows auto-updating. You guys 
don't like Windows so much, that you are seeing a ghosts :-)
DocKimbel
30-Oct-2012
[3136]
Second thing I do: install Microsoft Security Essential (it's free) 
and forget about all common antivirus issues (slowness, instability, 
intrusive ads, false positives, ...).
Kaj
30-Oct-2012
[3137x2]
It's not my machine, and safe mode or F8 doesn't provide an option 
to restore the configuration
Petr, this machine just became a ghost
Pekr
30-Oct-2012
[3139x2]
format C:
:-)
Kaj
30-Oct-2012
[3141]
It's already planned to install Linux Mint
DocKimbel
30-Oct-2012
[3142]
Kaj: I get a lot of type casting warnings since the last commit on 
GTK-widget.reds, could you please check if they are legitimate or 
not?
Kaj
30-Oct-2012
[3143]
I get one on the GTK binding and one on WebKit. I haven't seen them 
before the 0.3.0 merge
NatasjaK
30-Oct-2012
[3144x2]
All that talk about my machine, I touched one button and it awoke 
again ;-)
Wich doesn't mean the problems are solved, but it's a start ;-\
DocKimbel
30-Oct-2012
[3146x2]
Kaj: the changes I did today are generating a lot of warnings with 
GTK binding, I will have a look at it later to see if it's a bug 
or if the binding code needs some minor changes.
Natasja: seems that you'll have a brand new system soon. :-)
Kaj
30-Oct-2012
[3148]
Is it correct that Red/System can't print Unicode on Windows like 
the other systems?
NatasjaK
30-Oct-2012
[3149]
DocKimbel: That would be very welcome :-)
PeterWood
30-Oct-2012
[3150]
AFAIK, windows consoles only supporting Windows 8-bit codepages or 
UTF16. Red/System can print the full range of UTF-8 characters (as 
can REBOL) but the console can't display them.
Kaj
30-Oct-2012
[3151]
Ah, right, I'd have to use UTF-16 source text
PeterWood
30-Oct-2012
[3152x3]
Probably the easiiest way would be to inculde the Red runtime and 
use red/unicode/load-utf8 to create a Red string and Red/Platform/print-ucs4 
to print it.
You would need to check that the Windows console is set to display 
UTF-16B.


This commit ( https://github.com/dockimbel/Red/commit/be271889ff03e44bdb55af04b60ea2bb280cb18f
) shows how.
) shows how.
Kaj
30-Oct-2012
[3155]
Thanks
PeterWood
30-Oct-2012
[3156]
The other way is to convert the utf-8 c-string! to  UTF-16E integers 
on the fly  and feed them into llibc putwchar yourself. More work 
upfront but may be easier in the long term.


The code in red/runitme/platform/win32.reds is a pretty clear exmpale 
of how to do it but you wuld still need to write the UTF-8 to UTF16-LE 
on the fly conversion yourself. (That one is UCS-4 to UTF16LE).
DocKimbel
31-Oct-2012
[3157x2]
Kaj: you can switch the Windows console to an UTF-8 compatible mode 
using _setmode():
http://msdn.microsoft.com/en-us/library/tw4k6df8.aspx


I haven't test it but it should work. Windows uses natively UTF-16LE, 
so you would probably have a speed penalty using that mode.
Question for everyone: I was thinking since a while to publish on 
red-lang.org the donations I get, including donator names (unless 
they want to remain anonymous). Is that ok? Are they best practices 
for doing that?
Pekr
31-Oct-2012
[3159x2]
I would not mind. Something like "sponsored by" or any other text 
would be ok with me ... not sure about the amounts of money displayed, 
but maybe then two lists - top donators, others who contributed too. 
Dunno - simply put - someone might make one donation for higher amount 
of money, so ask such person, if he would mind if only one list is 
available ...
The trouble with amounts displayed might be twofold - 1) legal one 
2) personal one - e.g. your girlfriend/wife noticing, that instead 
of going to vacation, you are sponsoring Red :-)
Henrik
31-Oct-2012
[3161]
That should be an opt-in thing. I'm not sure I'd want donations to 
be public.
DocKimbel
31-Oct-2012
[3162]
So, maybe just an anonymous list?
Pekr
31-Oct-2012
[3163]
what do you mean by anonymous? What I think is OK is to display list 
of donators, in no respective order. It is the same like list of 
eventual top frequent code contributors. I think that ppl could be 
ok with that. Of course, if someone opts to stay "hidden", you will 
not list him/her ....?
Endo
31-Oct-2012
[3164x2]
You can put something like: "thanks to those people for supporting" 
etc. and put their names if they don't want to be anonymous.
It looks better to not put  then amount of money.
* then = the
DocKimbel
31-Oct-2012
[3166]
My concern was to be transparent about the donations I get, so that 
people know how much I receive each month.
Bas
31-Oct-2012
[3167]
It can also stimulate people to give more.
Endo
31-Oct-2012
[3168]
So you can share the total donation amount (per month, or all), and 
"thanks to those people" text on the web site. Put people to the 
list if they donate even once.

There is something similar on C64 Scene Database: http://noname.c64.org/csdb/donate.php
ICarii
31-Oct-2012
[3169]
The other option is to do categories like kickstarter does and just 
indicate a number of donations in a certain range
Kaj
31-Oct-2012
[3170x2]
Indeed, executables for the Windows target don't use stdin/out like 
the MSDOS target does
The new casting warnings seem to assume that all structs are equal. 
Especially in GTK, many objects are both generic widgets and a specific 
class of widget. They need to be passed in different identities to 
different functions, even if those structs are only defined with 
the same dummy content
Bas
31-Oct-2012
[3172x2]
Here are the two movies of the presentation "Red running on the Raspberry 
Pi" done by Kaj during the first Hardware Freedom Day 2012 at the 
TkkrLab Hackerspace Enschede on saturday the sixth of october
http://www.youtube.com/watch?v=9eQPtrw8rIQ&list=PLN-OHO8jjoowvi5peIoOp_E05wpf2YQVh&index=1&feature=plpp_video
DocKimbel
31-Oct-2012
[3174]
Great, thanks Bas!
Gabriele
1-Nov-2012
[3175x2]
Nenad, I think the best for donations would be what they do here: 
https://www.humblebundle.com/
when you donate, you can choose to appear in the list or not, and 
if yes, what name to appear as.
Pekr
1-Nov-2012
[3177]
posted in ann-reply group, but really - could we stop calling those 
app being an MSDOS? That's absolutly innacurate imo ...