Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 01 2018 17:34
    @greggirwin banned @BIjeuca_twitter
  • Dec 03 2017 05:53
    @PeterWAWood banned @matrixbot
  • Sep 28 2016 12:20
    @PeterWAWood banned @TimeSeriesLord
Qingtian
@qtxie
The new plugin should have better understand of the red code than the older one. It should be able to show refinements for user defined functions too. The older one is quite simple and only be able to complete built-in functions.
ams02468
@ams02468
@qtxie Maybe what you are saying is true and does not make a difference for professional users, but showing the details in the old extension is much more than the new type, which increases the speed of work and familiarity with red codes for novice users. my purpose It's not a comparison, I just wanted to raise this issue because it's very annoying for me personally
ams02468
@ams02468
Hi all I have a problem with a CMD command that runs well in CMD or batch file well, but whenever I run it in red, the order runs, but nothing happened after i tried to Write the command inside a BAT file and run it by red, but not working
call { Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Embedded\EmbeddedLogon" /v "BrandingNeutral" /t REG_DWORD /d "1" /f  }
hiiamboris
@hiiamboris
are you sure it's not working?
and are you sure it's working in cmd with that extra space before it?
ams02468
@ams02468
ye
ams02468
@ams02468

I tried these too

call {cmd /c Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Embedded\EmbeddedLogon" /v "BrandingNeutral" /t REG_DWORD /d "1" /f  }
call/console {cmd /c Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Embedded\EmbeddedLogon" /v "BrandingNeutral" /t REG_DWORD /d "1" /f  }
write %z.bat {Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Embedded\EmbeddedLogon" /v "BrandingNeutral" /t REG_DWORD /d "1" /f  }
call/console %z.bat

but still not working

hiiamboris
@hiiamboris
idk, works for me just fine:
>> call/console {Reg.exe /?}

REG Operation [Parameter List]

  Operation  [ QUERY   | ADD    | DELETE  | COPY    |
               SAVE    | LOAD   | UNLOAD  | RESTORE |
               COMPARE | EXPORT | IMPORT  | FLAGS ]

...
Gregg Irwin
@greggirwin
@ams02468 or others who might know, since I may not have time to test anytime soon, could it be that your Red doesn't have enough permissions, and those are inherited when call is used?
ams02468
@ams02468
@hiiamboris Go into the registry and check from there. You probably saw the message (The operation completed successfully.) And thought it worked, but this is not the case. No changes have been made to the registry.
hiiamboris
@hiiamboris
I don't have "Windows Embedded" key so start with, but for an existing path it works.
Gregg Irwin
@greggirwin
@ams02468 if the message Red gets back says "It worked!", but it didn't, I think that falls outside Red's responsibility.
ams02468
@ams02468
@greggirwin But why does it not work only on red? If you mean that there is a problem with the operating system, then it should have the same problem when using it in cmd or bat file, but their procedure works. I even put this command in red command line. I also ran the administrator, but it didn't work. Regarding access to Windows system's, I must say that the entire Windows partition has full access.
Gregg Irwin
@greggirwin
If running as admin didn't work, then I don't have any other ideas. When we issue a call, we can only know what the OS tells us about success. That said, it's quite possible that something internal to Red's call implementation has some effect. If it works for Boris then it will take some research. Feel free to search for tickets and open a new one if needed.
XavierFVJDebecq
@XavierFVJDebecq
Hello everybody, does anyone has ever used logical programming with RED ? I would like to code a prolog 4 interpreter (or any logical programming with constraint langage) in Red in order to use it as a dialect, i am looking if its feasible. My long term objective is to have a dialect that enable declarative programmation with the possibility of generating a part of the code with Red by parsing information on any type of support (net, documents , ...)
zentrog
@zentrog:matrix.org
[m]
@ams02468: Did you check in the 32-bit registry hive?
ne1uno
@ne1uno
@XavierFVJDebecq, have you seen http://www.rebol.org/view-script.r?script=prolog.r
ams02468
@ams02468

@zentrog:matrix.org well done, but now that as you said I check it, but why does it change? I give it a 32-bit address, but why does it change to 64-bit?
The order I give him

call/console {Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows Embedded\EmbeddedLogon" /v "BrandingNeutral" /t REG_DWORD /d "13" /f }

The command that is executed

call/console {Reg.exe add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows Embedded\EmbeddedLogon" /v "BrandingNeutral" /t REG_DWORD /d "13" /f }
hiiamboris
@hiiamboris
Interesting. WOW6432 is for 32-bit apps. So perhaps reg knows it's invoked by a 32-bit process and transforms the address accordingly.
What if you add /shell to call?
hiiamboris
@hiiamboris
There seems to be two reg commands, one in System32, another in SysWOW64. Maybe you simply need to run the other one?
ams02468
@ams02468
I also used call / shell but it did not work. Now how can I execute this command as 32 bits?
yc
@cloutiy
Hello, maybe its just me but i seem to be seeing more and more propaganda about web3, blockchain and dapps. In the Red Fundamentals book by Ivo there is mention about Red's intended role in this space. Would be interested in getting on the Web3 train early, and was wondering how red was progressing towards this emerging trend.
zentrog
@zentrog:matrix.org
[m]
@ams02468: It looks like you can specify /reg:32 or /reg:64 to target the appropriate side. https://stackoverflow.com/a/51594448/116311
My best guess is maybe 32bit vs 64bit processes have different PATH variables defined, so a different reg.exe is found. I'm not sure if that is the case though...
Gregg Irwin
@greggirwin
@cloutiy that's where C3 comes in. It's not "early" anymore, but the train only runs between a couple towns so far. :^)
ams02468
@ams02468
@zentrog:matrix.org Thank you very much. And to thank all the friends who helped, I must say that Red had no problem and the problem was the details of my order.
Gregg Irwin
@greggirwin
Something we may want to note in a wiki page. @zentrog:matrix.org any idea what page might be best, or do we need an "OS Tips and Tricks" page?
duskhorn
@duskhorn:matrix.org
[m]

Hello everyone!
I am having a problem loading an image using the load function; the console just says

*** Access Error: cannot open: %file.png
*** Where: decode
*** Stack: load

and I really don't know what I could be doing wrong

Boleslav Březovský
@rebolek

Hi @duskhorn:matrix.org

The error message is really not very helpful and should be improved. Can you check if it’s really a PNG file? Maybe it has the wrong extension.

duskhorn
@duskhorn:matrix.org
[m]

It is a png file, I can use GIMP or Firefox to open it and it displays fine.
I even checked I entered the path correctly

What I'm doing is just

>> load %file.png

And I have file.png in the folder I'm running the red console in

hiiamboris
@hiiamboris
type probe read/binary/part %file.png 4
what's it saying?
duskhorn
@duskhorn:matrix.org
[m]
It displays
#{89504E47}
hiiamboris
@hiiamboris
that's not a PNG file
nor jpeg or gif
wait I may be wrong
it is a PNG alright ;)
forgot it starts with a strange symbol
Petr Krenzelok
@pekr
upload the png file somewhere then, so that others can test too ....
hiiamboris
@hiiamboris
yes
duskhorn
@duskhorn:matrix.org
[m]
Let me try this in the latest automated build first, I noticed mine is a cuple weeks old
hiiamboris
@hiiamboris
nothing has changed in the image codec I believe
duskhorn
@duskhorn:matrix.org
[m]
oh well, I just updated it nonetheless
hiiamboris
@hiiamboris
I suggest opening an issue and attaching that PNG
duskhorn
@duskhorn:matrix.org
[m]
it still doesn't work, same error, opening an issue
François Jouen
@ldci
@duskhorn:matrix.org Try this in red console
view layout [image %file.png]
1 reply
François Jouen
@ldci
@duskhorn:matrix.org Did you try to just open a basic terminal and launch red?
2 replies
Gregg Irwin
@greggirwin
@duskhorn:matrix.org can you load other image files successfully? If so, there's something about that specific image causing the problem.
Ah, I see this chat continued in red/bugs.
2 replies
XavierFVJDebecq
@XavierFVJDebecq
@ne1uno That sounds interesting. i go to check it and eventually adapt it. Thanks for the advice. Did you use it ?