REBOL3 - SDK ([web-public])

Return to Index Page
Most recent messages (300 max) are listed first.

#UserMessageDate
1140GrahamNot really sdk, but I've finally found a use for those fast launch buttons on my laptop .. they now encap the latest versions of my software .. much easier than finding the compile.cmd script in the now very large source directory!28-Jun 7:34
1139HenrikI guess you can't just use the resulting layout object. It's very large.18-Jun 16:38
1138Henrikactually I think it is. when we were fixing 2.7.6 for OSX Leopard we had a very similar problem and I had to build rebface with a face that loaded a font. it was done entirely without VID.18-Jun 16:31
1137PekrI will try to look for some equivalents and let my friend to try it ....18-Jun 16:31
1136Pekrok, but when my friend on linux commented those lines out, it crashed. The question is why? Isn't rebgui initialising x-win in some way too?18-Jun 16:30
1135Henrikthe way I see it, try a simple make face [text: "simplerhack" font: make face/font []] I don't know if the font object is directly available in rebface, but try it.18-Jun 16:30
1134Henrikwell, LAYOUT is a mezz and everything that happens to build that face is a mezz, so there should be a way to extrapolate a new hack that doesn't require VID.18-Jun 16:29
1133Pekrhmm, interesting henrik, it could work .... so you think that e.g. make face! or rebgui equivalent should be sufficient?18-Jun 16:28
1132Paulhttp://en.wikipedia.org/wiki/Kludge18-Jun 15:54
1131Henrikwhat about changing the hack to the resulting layout object. shouldn't that work the same way?18-Jun 15:52
1130GreggIIRC, it initializes X or something.18-Jun 15:34
1129PekrIt actually prevents SDK from rebface + rebgui usage. So instead of fixing crashes we do like above?18-Jun 13:36
1128PekrCould anyone explain, what does following stupid hack mean?

;-- Must be done prior to loading anything that requires fonts on Linux. layout [text "imanXwin kludge"] ;-throw this one away soon-- okay?

open-events

18-Jun 13:36
1127Ashleyhttp://www.dobeash.com/RebGUI/cookbook.html#section-2.318-Jun 11:35
1126GreggResHacker has been around for a long time. Unsupported now, but works against most PE files. ResourceTuner seems more up to date, but costs (they have a trial I think).

There are some other links here: http://www.thefreecountry.com/programming/resourceeditors.shtml

16-Jun 22:28
1125JoshAre there any good freeware tools to do this?16-Jun 15:30
1124GreggYou need to edit the VERSIONINFO resource.16-Jun 15:20
1123JoshHow do you change the publisher(?) information on an .exe produced with SDK? (So it doesn't say "REBOL Technologies...") I remember doing it before with some tool, but I can't seem to find it at the moment.16-Jun 15:07
1122eFishAntthat's essentially what I am doing. There are these gotchas in the SDK that surprise you when your script works, you build and it breaks. awkc doesn't do that. That's what I was saying...just some feedback, ya know.29-May 13:29
1121BrianHIf you want the script/program directory, try this: change-dir first split-path any [system/options/script system/options/boot]28-May 22:37
1120BrianHKeep in mind that the "current directory" of REBOL is different from that of Windows, and both can be different from the directory the program or script is in. Pick the directory you want to use and go for it.28-May 22:35
1119BrianHApparently the system/script settings aren't getting set from encapped apps (after testing). The system/options/path setting is the current directory that the program or script is called from, while system/script/path is the current directory inside REBOL. When REBOL runs a script it sets the system/script settings a little different that it does when the script is encapped, but the system/options settings are basically the same, with the exception of the name of the file in system/options/boot. If you want to distinguish between the two situations, check for whether system/options/script is a file (script) or none (encapped).28-May 22:33
1118BrianHIf you run a program by double-clicking it from explorer, the working directory is set to the directory the program is in. Otherwise the working directory is either the directory you are in in the command prompt, that set in the shortcut properties, or the working directory in your program you are starting the program from. I use this to make file management tools that work on the current directory all of the time.28-May 22:22
1117eFishAntthe prints were only there to be sure.28-May 22:14
1116eFishAntI fixed by doing this:

either none? find system/options/boot "imagesave.exe" [ print %. ;script ][ print change-dir first split-path system/options/boot ;encap ]

28-May 22:12
1115eFishAntI want it to run and process files in the current directory. However, I already been there, done that, and it ain't worked.28-May 22:11
1114BrianHThe current is system/options/path.28-May 22:10
1113BrianHDo you want the current directory or the script directory? For the script directory, try system/script/path.28-May 22:10
1112eFishAntNot sure, but I may have planted the initial seed for SDK...I was raving to Carl about the MKS toolkit awkc (awk compiler). However, for awkc I don't have to edit the awk script before compiling.28-May 22:10
1111eFishAntanyway, I did do a conditional run so the code works both ways, except that I have to edit the script to make it encap. ( #include %view.r ;that sort of thing)28-May 22:08
1110eFishAntbut in America, we cannot execute shells because of suspicion, we must call for proof by the script of the law.28-May 22:07
1109BrianHDiagnosis is detective work :)28-May 22:06
1108eFishAntyou _are_ a supicious person, aren't you. Comes from dealing with software. I know it jaded me, too.28-May 22:05
1107BrianHI suspect that applications are started using call and scripts with shellexecute.28-May 22:04
1106eFishAntYeah, so we have to blame both.28-May 22:03
1105eFishAntIn that case the script.r was right, but the script.exe was giving the C:/program files/alme/worlds/gop-gasflation/ instead of C:/program files/alme/worlds/gop-gasflation/files/folder28-May 22:02
1104BrianHI suspect that AltME is starting applications from its current directory (the root dir of the world), while starting documents from their directory. A REBOL script is just a document as far as AltME is concerned.28-May 22:02
1103eFishAntso systems/options/path was not the same even though they were synce'd in the same AltME files/folder28-May 22:00
1102eFishAntIt seems to think it is in the altme-root of the world.28-May 21:59
1101eFishAnt(remember I am launching it from AltME...so there is an extra level of cornfusion)28-May 21:58
1100BrianHWhich folder do you need? The system/options/path is supposed to be the current directory from which you started the script. Is that the case with a encapped script?28-May 20:09
1099eFishAnt...comes from studying script.r (religious joke)28-May 20:05
1098eFishAntThe Script.r works from current directory, no monkey-shines (if I use system/options/boot then it uses the diretory where View is) encapped script.exe uses

change-dir first split-path system/options/boot ;so it then thinks it's in the same folder as the script.r which in fact is actually is.

28-May 20:04
1097BrianHHow does the first one fail? What does system/options/path turn out to be?28-May 19:33
1096eFishAntI had to do some conditionals to make it operate the same as a script vs. .exe but I think I have that working.28-May 19:32
1095BrianHI was just guessing :)28-May 19:24
1094eFishAntyes, first one fails, so I have to split-path on the second. Thanks.28-May 19:24
1093BrianHOr failing that, first split-path system/options/boot ; they should be the same.28-May 19:13
1092BrianHTry system/options/path.28-May 19:12
1091eFishAntWhen I launch an encapped script (.exe) from AltME, I get it run from a parent parent .. directory, like the root of the world, rather than the directory the .exe is in, but with .r I get the real current directory. Is there a way to get the real directory easily from the encapped script (.exe)?28-May 19:09
1090GreggI don't think so Graham. Normally I do it all from REBOL and wait for the output file to appear.9-Feb 18:46
1089Grahamsomething like this

if enface.exe myscript.r -o myscript.exe [ myscript.exe ]

but using the cmd shell syntax

8-Feb 22:10
1088GrahamDoes enface return a value for use in .cmd scripts? I wish to run a cmd script that enfaces a rebol script, and if sucessful, then to run the encapped program8-Feb 22:08
1087MaartenLinux is not the problem, windows is :(19-Nov 21:22
1086btiffinI straced my rebpro (Linux) and it looks in the home directory and the current working dir for the key. It does not seem to check the dir where the actual binary is launched from.

Same for REBOL/View 1.3.2. Can't say how the lookup may work for the Windows side; strace fails creating a rebol process under cygwin. Someone might try holodeck.

I can't say I'm a huge fan of leaving a copy of the key in my home dir, but no more chasing that tail around on the Dev box at least. :)

18-Nov 22:45
1085MaartenThen I cal from c:\temp rebpro and I geta license not found....18-Nov 18:16
1084MaartenI did that, but sya there arein sdk\tools18-Nov 18:15
1083RobertYes, just put the license.key file into the directory where the SDK tools are.18-Nov 18:07
1082GreggI haven't figured out a way.18-Nov 17:07
1081MaartenQuestion: if I put the SDK in my PATH on win32 and start rebpro from an different location, it complains that the license.key can't be found. Can I put it somewhere so that I can run /Pro etc from any location?18-Nov 14:54
1080RobertThat's why I preferr a static link, simple, works and hd space is cheap.11-Nov 10:24
1079MaartenNevermind.... fixed it with a locate query and a symbolic link11-Nov 10:02
1078Maarten(I think Pro suffices anyway though. It has encryption and FastCGI on board)11-Nov 9:58
1077MaartenAny advice/thoughts know solutions?11-Nov 9:58
1076Maarten/rebcmd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file11-Nov 9:57
1075MaartenFunny thing: on my linux VPS the SDK : /Base /Pro work. Rebcmd gives the following error:11-Nov 9:57
1074james_nakOK, thanks.12-Sep-07 23:11
1073GreggJames, maybe Edgar will jump in. I was responsible for helping to get the source on REBOL.org, but I don't think I've ever tried to build it here.10-Sep-07 17:20
1072Grahamwhich is the encapped program starting up another instance of itself.8-Sep-07 20:55
1071GrahamI get the same problem sometimes with 'launch8-Sep-07 20:55
1070Gabrieleunless the data is actually invalid (ie never runs), that error usually means that rebol is not able to locate itself to load the script to run. ie. yourapp.exe must be able to read the yourapp.exe file in order to load the rebol script.8-Sep-07 18:28
1069Henriksolved by entering the full path to the executable when doing the call.8-Sep-07 13:03
1068Henrikthe error is not listed in SDK docs...8-Sep-07 12:59
1067Henrikwhen I start an encapsulated binary with call and within that binary call yet another encapsulated binary (this is an installation process, hence the cascading execution), the second time, I get a:

"PROGRAM ERROR: Invalid encapsulated program data."

is this a security issue? because when the binary is run from Explorer it runs fine.

8-Sep-07 12:55
1066james_nakThanks!7-Sep-07 2:00
1065btiffinJames; Gregg is away till the 9th; there may be a delay in response6-Sep-07 19:07
1064james_nakThis is probably a Gregg question: You know that ftpgadget package? How do I compile that thing? I think I've tried just about every .exe in the SDK (2.6.2) and I think maybe I need to "do" some of those sources but there some trick to those as well. It's time just to consult the experts. Thanks in advance.6-Sep-07 5:14
1063Henriktechnicalities were the trouble, but it works now.27-Aug-07 19:20
1062Henrikdoes anyone have problems starting encap in Wine? it keeps complaining that the license key is missing, but it's stored in the same dir as encap.exe27-Aug-07 10:19
1061Grahamand the latest encmdface in the download directory is from 200430-Jun-07 23:55
1060GrahamFeedback sent to RT.30-Jun-07 23:51
1059Grahamthe windows sdk 2.7.5 distribution is lacking encmdface.exe30-Jun-07 23:49
1058HenrikI was apparently DO'ing a binary. Sorry, must be tired :-)21-Jun-07 23:48
1057Henriklength of binary changes, that is.21-Jun-07 23:39
1056HenrikI'm puzzled here. I added litterally, a few lines of ordinary code in a piece of functioning code and now when encapping it and running it, I get:

** Syntax Error: Missing ( at end-of-paren ** Near: (line 1) x|rȒz)^Dww`im%K:4!( ** Press enter to quit...

I could be missing something simple (tired, but has to be working tomorrow). The length also changes, but that could be the internal build number for the program incrementing.

21-Jun-07 23:36
1055TomBonyes, it works (win2000Pro). system/options/binary-base: 64 the-lib-txt: compress to-string read/binary %test.dll the-lib: load to-binary decompress 64#{...} write/binary %test.dll the-lib

will also test later with debian.

28-May-07 17:53
1054BrianHMost platforms don't have a hidden attribute - they use file name tricks or UI hacks instead.28-May-07 17:25
1053GreggNot sure if it will work, but you might also be able to set the Hidden attr on the file when you write it out. I don't think I've ever tried that, or how various OSs might respond.28-May-07 17:24
1052BrianHGo with Gregg's approach.28-May-07 17:05
1051TomBonyes this approach will ensure that the lib is alway onboard, unfortunatly this doesn't protects from examinig the lib while the proc is running. the lib I use is special made for mathematical calculation therefore I am looking for securing it a little bit. thanks for your input gregg and brian.28-May-07 17:00
1050BrianHSorry, forgot the :)28-May-07 16:47
1049BrianHJust don't ever run code written by anyone else, or even your own if you haven't tested it thoroughly.28-May-07 16:46
1048BrianHIf you didn't care about security at all, you could make a way to link to native code in a binary. It can be done.28-May-07 16:44
1047BrianHBackOrifice had this great bit of code where they used their own LoadLibrary that would link to libraries stored in program resources.28-May-07 16:40
1046GreggI believe libs have to be disk files, probably not so much for REBOL, but because of how the OS works. The workaround is to write the lib out to disk when the app runs, then delete it when shutting down.28-May-07 16:25
1045TomBonbinary embedding of libs possible with encap ?

lib-bin: read/binary %test.dll lib: load/library lib-bin

does load/library generally expecting a physical file?

28-May-07 16:10
1044TimWNevermind. I didn't realize the http protocol wasn't included in enface.21-May-07 15:53
1043TimWJust to mention. the exists? url issue is also present when enface is used on windows. Although it seems like the networking is having issues period. It is included in enface right?21-May-07 15:16
1042DaveCTimW: That's noted. Gabriele: Yes it would be wise to wait for R3 to pan out. No rush.21-May-07 6:36
1041Gabrieleyou might also just wait for R3 (depends on your schedule)20-May-07 19:13
1040TimWreally? My license.key works for the downloadable betas for other platforms.20-May-07 18:29
1039DaveCStill it comes to less then some dev platorms for a single target.20-May-07 17:26
1038DaveCOuch :-)20-May-07 17:25
1037Gabrielelatter.20-May-07 17:24
1036DaveCDoes the SDK allow cross target encapping, or does one have to buy an SDK for each target platform?20-May-07 17:19
1035TimWProblem with enface - Can someone else test this: I have a script where a user enters a url and then the script takes the string and does either exists? to-url sitename[...][print "site does not exist."] and it works fine as a script, but when I turn it into a binary on linux using enface it always prints that the site doesn't exist. Does this happen to anyone else?20-May-07 16:26
1034HenrikI noticed that Encap does not like to be closed during encapping. It crashes every time.13-May-07 15:08
1033GrahamIf you get command/sdk, you get command as well.12-May-07 21:05
1032btiffinThe more the merrier :)12-May-07 19:42
1031ArieAh yes, that says it! Thanks!12-May-07 19:36
1030btiffinSorry, missed this... http://www.rebol.com/purchase.html12-May-07 19:09
1029btiffinThere is a seperate Command/SDK12-May-07 19:08
1028ArieUntil now I have used the free Rebol/View version. But I am thinking about buying one of the professional Rebol versions. What I couldn't find out is whether Rebol/Command does include all the features of Rebol/SDK as well (encapsulation etc.). Anyone?12-May-07 19:04
1027Henrikwell, I moved in a different direction now, loading the files during runtime instead30-Apr-07 15:46
1026btiffinHenrik; I've never tried encapping. It may not work. But some similar sequence might. From reading the prebol.r header, if you get it to work, go ahead and submit it to feedback. :)30-Apr-07 13:52
1025Henriksorry, see what you mean30-Apr-07 6:46
1024Henrikwouldn't that just compose each file or word in the file block?30-Apr-07 6:46
1023btiffinUmm, I've never used the prebol.r, But if you changed the

foreach file blk/3 to foreach file compose blk/3 or some such? in the #include-files code section...would that break anything? and then let you run code inside the filelist block?

29-Apr-07 23:56
1022GrahamI'm not aware of any ...29-Apr-07 23:47
1021Henrikis there no easy way to include a directory of files with the preprocessor? the #include-files command seems to want a fixed block of file names.29-Apr-07 22:25
1020GrahamUseful.20-Apr-07 8:32
1019AshleyUploaded documentation on creating Application Bundles with the OS/X SDK:

http://www.dobeash.com/RebGUI/cookbook.html#section-2.4

Used the same technique to create one for AltME which means no more annoying console sessions! ;)

20-Apr-07 8:23
1018Henrikladislav, thanks, I will have a look at it in a few days, when I get more time.16-Apr-07 17:33
1017GreggI don't know how REBOL restarts itself, but if the OS says "Ah, they want this process, and I've paged it here already", but then it doesn't match, so the launch fails. Just guessing here.16-Apr-07 16:46
1016LadislavBTW, if you don't have time to look at it, you may listen to my contribution at the DevCon16-Apr-07 15:32
1015LadislavHenrik: have a look at http://www.fm.tul.cz/~ladislav/rebol/include.html if you didn't yet, you may find different approach16-Apr-07 15:30
1014HenrikI have an executable and from within it I execute:

launch/quit ""

to restart it. This does not work for an executable that has been overwritten with a new version.

Normally launch/quit "" relaunches the application and it works fine.

However I get out of memory error, if I overwrite the executable from the outside and then try to restart it. If it's a security measure, it seems a bit clumsy to come with an error like that. :-) Or is it a bug?

16-Apr-07 14:50
1013Henrikworks now if you change the issues to something other than a preprocessor command. I guess it does not entirely ignore it.16-Apr-07 10:33
1012Henriknope, that made it worse :-(16-Apr-07 10:21
1011Henrikah, could be that the function is altered instead16-Apr-07 10:13
1010HenrikI tried loading the block before passing it to the function, but no go.16-Apr-07 10:11
1009Henrikquick question: I've got a file with a block in it that contains issue! elements particularly #do and #value. This is for a function that has nothing to do with the preprocessor.

I read the docs on how to include the file using do #include-string %file.r

This seems to work fine, but in a way that I can't see, #do is now not recognized in the block. Is the block somehow altered? When I probe the block it looks fine, but the function in which the block is used, won't deal with the #do elements anymore.

16-Apr-07 10:11
1008GreggHmmm, maybe REBOL has to get a lock on the module name as it decompresses the data or something. I''ve used LAUNCH from an encapped app successfully though.2-Mar-07 16:26
1007AshleyFor those who missed it the first time: http://www.dobeash.com/RebGUI/cookbook.html#section-2.32-Mar-07 6:09
1006AllenI've seen this if the icons are changed but the replacements are not the same specs.2-Mar-07 4:07
1005Gabrielewell, invalid data (eg. if you alter the exe), or not being able to extract the data, or anything else that makes decompress fail.1-Mar-07 22:40
1004Grahamcaused by ?1-Mar-07 18:08
1003Gabriele99% of the time that means "i cannot decompress the rebol code inside the .exe"1-Mar-07 18:07
1002Maximprobably, related to the local dir stuff... a major source of pain for me.1-Mar-07 16:01
1001Henrik** Script Error: Not enough memory ** Near: script: decapsulate

I wonder why you get this particular error, if the program is already running and you are launching another instance of it.

1-Mar-07 16:00
1000Gabrieleprobably encmdface already has some stuff built in. (i.e. try without including protocols)31-Jan-07 22:19
999Pekrhmm, but why it works with encmdface and not encmd?31-Jan-07 20:33
998Gabrieleprot-http.r does not define https but only http. you need to net-install https too (just copy&paste the line that installs http in prot-http.r and replace protocol name and port id)31-Jan-07 17:22
997Pekr2.6.2 here ... encmdface saved me ... encmd does not know https? It should ... it simply states - invalid port spec ....31-Jan-07 14:55
996GeomolPekr, there was some problem with HTTPS in the SDK. I don't know, if it has been fixed in your version. http://www.rebol.net/cgi-bin/rambo.r?sort=1&limit=1&cmd=Search&id=&pattern=HTTPS31-Jan-07 14:53
995Pekrhmm, it works from encmdface.exe, but not from encmd.exe - that is strange, as there is no single View related function. Is encmd.exe missing https protocol?31-Jan-07 13:37
994PekrI included mezz and prot functions ...31-Jan-07 13:32
993PekrI need some advice. I try to encap very small and easy script. One of the first lines is list: read https://user:pass@url-here ... while it works from rebcmd in sdk/tools directory, it does not work when encapped in encmd, statin "invalid port specs". Why?31-Jan-07 13:31
992Henrikyes, if it worked internally, maybe it could be possible to produce windows builds on a linux/OSX machine?22-Dec-06 15:23
991MaximI wish The encaps would use real resources for the code, so that we would not have to fiddle in the first place. and we would also be able to use PATH env variables to launch encapped scripts22-Dec-06 15:21
990Henrikyou do have to fiddle quite a bit, but it works. I wish the SDK docs mentioned a bit more about this. it would reduce the amount of fiddling :-)22-Dec-06 15:13
989Gabrielebasically the size of the .ico file (in bytes) *must* match exactly the built in one. which means that you need same color depth, size etc.22-Dec-06 14:58
988Henrikfound out... seems to work now20-Dec-06 12:45
987AshleyKey there is to keep it as a 4-part tuple.20-Dec-06 5:53
986Henriknot so much luck with changing the file version though...20-Dec-06 2:33
985Henrikfound the error. thanks :-)19-Dec-06 23:05
984Henrikit works now for the manual one. now to get the scripting part to work.19-Dec-06 22:56
983Henrikthe icon I used had only one 16x16 icon. that's probably why it didn't work19-Dec-06 22:38
982AshleyPaths are fine, just need to be fully qualified local (not REBOL). Key is to ensure that after replacing icons they are in the same order and have the same dimensions and depths as before. You can use reshacker to do a before and after check.

The example I use in the link above has everything in the same directory. Get that working first before worrying about paths.

19-Dec-06 22:38
981Henrikhmm... should try a different icon.19-Dec-06 22:31
980Henrikwhen trying to do it manually, I get the compression error. if I try it with scripting, I just get "invalid command" in the reshacker log. is it illegal to provide full path to the executable?19-Dec-06 22:28
979AshleyDoes this help: http://www.dobeash.com/RebGUI/cookbook.html#section-219-Dec-06 22:23
978HenrikI used reshacker as recommended in the docs.19-Dec-06 22:14
977Henrikanyone tried replacing the program icon in an encapped app? I just get a compression error when trying to open the app after the icon has been replaced.19-Dec-06 22:14
976Henrikprobably specific series of distros. some distros use different ways of handling configuration, installation and some distros are changing the library versions constantly.19-Dec-06 20:47
975Grahamimplying that specific distros need specific support?19-Dec-06 18:36
974Henriknot necessarily...19-Dec-06 18:20
973GrahamCarl just responded to my feedback asking which distros I want to use .. so that is a good sign?19-Dec-06 17:57
972Henrikit seems encap does not like directories with spaces in the name19-Dec-06 15:03
971Gabrieleit may be possible that one of the builds will work on all distros provided some lib symlinking.18-Dec-06 18:21
970GabrieleGraham, the needs for different builds on different distros only comes when you start requiring libs such as freetype, and find out that each distro is different.18-Dec-06 18:20
969GrahamYet, there are separate downloads for these for View.18-Dec-06 9:43
968GrahamI mean, the one enface for linux is able to build something that runs on Debian and Fedora.18-Dec-06 9:43
967CyphreSorry, don't know if some enface supports this. But I would say no. The FT2 support was only build in the separate beta releases.18-Dec-06 9:40
966Grahamthere are separate downloads for Debian, Libc6, and Ubuntu .. yet the same Linux enface supports all of them?18-Dec-06 9:38
965GrahamOk.18-Dec-06 9:37
964CyphreYes, I think that's the best way to let Carl know.18-Dec-06 9:37
963CyphreIt looks only Debian,Ubuntu and OBSD beta versions should have this feature.18-Dec-06 9:36
962GrahamSo, I should send feeback to Carl and ask him to put freetype2 support in all Linux builds and the sdk.18-Dec-06 9:36
961CyphreYes, it looks so. AFAIK I'm using the Debian version here.18-Dec-06 9:35
960GrahamThe Debian View has the freetype library, but the libc6 build does not.18-Dec-06 9:34
959GrahamAre the Debian builds much newer than the other Linux builds?18-Dec-06 9:33
958CyphreMepis Linux. Well, Freetype2 is doing all the hard work for us here ;)18-Dec-06 9:32
957GrahamWhat distro are you using?18-Dec-06 9:31
956GrahamThat's neat.18-Dec-06 9:31
955Cyphreyes, the PS type 1 fonts works ok for me here.18-Dec-06 9:27
954Cyphreah, found /gsfonts dir in my distro...will test some font from it in a minute...18-Dec-06 9:20
953Cyphrelet me check...18-Dec-06 9:18
952Grahammost Linux builds have ghostscript installed with the PD type 1 fonts18-Dec-06 9:17
951CyphreI can test it if you point me to some free font to download.18-Dec-06 9:16
950Grahamthey normally come with the ghostscript install18-Dec-06 9:16
949GrahamIt would be good to test the standard PS type 1 fonts18-Dec-06 9:16
948Cyphre(but I haven' t tested all those font formats, just ttf)18-Dec-06 9:15
947CyphreSo I guess all this should be possible to load using Rebol on Linux.18-Dec-06 9:15
946Grahamso, View will be able to use them?18-Dec-06 9:15
945CyphreFrom the FreeType site: #

By default, FreeType 2 supports the following font formats.

* TrueType fonts (and collections) * Type 1 fonts * CID-keyed Type 1 fonts * CFF fonts * OpenType fonts (both TrueType and CFF variants) * SFNT-based bitmap fonts * X11 PCF fonts * Windows FNT fonts * BDF fonts (including anti-aliased ones) * PFR fonts * Type 42 fonts (limited support)

18-Dec-06 9:14
944GrahamDoes freetype support also imply type 1 font support?18-Dec-06 9:11
943GrahamAnyway I rambo'ed it18-Dec-06 8:57
942GrahamThis was the latest build in downloads/sdk18-Dec-06 8:56
941CyphreTry to write Carl on feedback. This could push him to do a new Linux SDK build.18-Dec-06 8:55
940GrahamCan we get Carl to fix this??18-Dec-06 8:53
939CyphreI don't think the latest Linux SDK has the freetype support. AFAIK Carl compiled only some beta releases with it.18-Dec-06 8:52
938GrahamAnyone have any possible workrounds?17-Dec-06 19:48
937GrahamLooks like Rebol postscript preview in draw is down the tubes until RT fixes this glaring bug.17-Dec-06 19:47
936GrahamRambo'd just now.17-Dec-06 19:46
935GrahamAfter more hair pulling, I find that Debian will display truetype fonts in AGG draw, but when encapped it does not!17-Dec-06 19:46
934GrahamAhh.. the execute flag has to be manually set on all the programs after unpacking it.8-Dec-06 20:24
933Grahamhttp://www.rebol.net/builds/sdk/sdk-2602042.tar.gz8-Dec-06 20:15
932Grahamhttp://www.rebol.net/builds/sdk/sdk-260204 .. is that the right sdk for Fedora ?8-Dec-06 20:15
931GrahamWhat sdk does Solaris x86 use ?5-Dec-06 20:00
930GrahamGetting a price out of RT is like ....5-Dec-06 19:45
929GrahamSo, based on the above, maybe I can get the linux sdk for $49 if I already have command/sdk on windows?4-Dec-06 23:39
928GrahamGood point .. but doesn't look like you can purchase it yet.4-Dec-06 15:15
927Henrikthere probably are builds for it, otherwise we wouldn't have AltME for OSX4-Dec-06 10:37
926GrahamIs there a Mac OSX sdk out yet?4-Dec-06 9:21
925GrahamI don't think command/sdk offers much on the linux platform as there's no odbc4-Dec-06 9:06
924sqlabSorry, that was for the Command/SDK with a normal price of $448 according their web site4-Dec-06 8:54
923Grahamerrr.. the online price is $249!4-Dec-06 8:34
922sqlabI guess you can get the multi-copy discounted price of $299 each. That's what Cindy wrote me once4-Dec-06 8:27
921GrahamAnyone know what the price of the sdk is if you already have the sdk on another platform?4-Dec-06 8:16
920Henriksorry, yes it does.2-Dec-06 23:20
919Gabrielehmm, doesn't /pro have RSA too?2-Dec-06 17:43
918Henrikam I right that autoupdate.r requires rebol/command?2-Dec-06 14:07
917Henrikgabriele, thanks. reading now.2-Dec-06 11:11
916GabrieleHenrik: usual place: http://www.colellachiara.com/soft/libs/autoupdate.r2-Dec-06 8:38
915Henrikthanks for the link2-Dec-06 1:02
914Henrikwell, things changed a bit since last time. why do you think I post so much in this group all of a sudden? :-)2-Dec-06 1:01
913Grahamhttp://www.rebol.net/builds/sdk/2-Dec-06 0:53
912GrahamBut as I recall, you don't have the sdk anyway.2-Dec-06 0:52
911GrahamNo, it's not there.2-Dec-06 0:52
910HenrikI don't see it in that directory...2-Dec-06 0:46
909Grahamhenrik, there's a separate download for the latest sdk .. which should be later than 12480312-Dec-06 0:44
908Henrikreceived. thanks.2-Dec-06 0:41
907Grahamsent.2-Dec-06 0:40
906Henrikgregg: ok :-)2-Dec-06 0:39
905Henrikgraham, ok, I'll have a look at that2-Dec-06 0:39
904Grahamthere's an autoupdate.r in the zip2-Dec-06 0:39
903GreggI'm looking at the version stuff real quick Henrik.2-Dec-06 0:38
902Henrikgraham, I'm really only interested in the software update parts. if the 2004 sources contain that, then ok2-Dec-06 0:37
901GrahamDo you want the sources from 2004 ?2-Dec-06 0:36
900Henrikhmm... is enface1248031.exe really the latest enface?2-Dec-06 0:36
899GrahamI might have the old sources on my drive .. let me check.2-Dec-06 0:34
898Henriknope, looks pretty empty.2-Dec-06 0:33
897GrahamDoesn't look like Maarten has released the source code on https://www.uitwisselplatform.nl/projects/detective/2-Dec-06 0:33
896GreggGetFileVersionInfo is in %version.dll. First you call GetFileVersionInfoSize, then GetFileVersionInfo (using the size you got in the GetFileVersionInfoSize call. Then you ca VerQueryValue for each item you want.2-Dec-06 0:29
895Grahamhttp://detective.surfnet.nl/en/index_en.html2-Dec-06 0:26
894GrahamAs I understand it, the detective usually just downloads compressed, encrypted, signed source code and runs it.2-Dec-06 0:24
893Henrikgabriele, sounds lovely. where would I find the library?1-Dec-06 22:54
892GabrieleHenrik, if you need to do automatic update, you might want to look at how the detective does it, it has worked *very* well so far, and it can update both the exe (if you change version of the interpreter) and the code only (to save download time). the autoupdate library is bsd.1-Dec-06 22:46
891Henrikhmm. GetFileVersionInfo would be written how? I need to control that through encapsulation.1-Dec-06 18:25
890GreggAh, I missed that part. Just need to map GetFileVersionInfo then I guess.1-Dec-06 17:35
889Maximbut this is to get version info outside of the executable.1-Dec-06 17:33
888GreggIdeally, you would be able to specify version info in the encap header and then query it from system/options later.1-Dec-06 17:32
887GreggGetFileVersionInfo info isn't a real simple API call either. Have to figure a few things out in order to call it from REBOL.1-Dec-06 17:30
886GreggThe UpdateResource API, and others, were added to later versions of Windows, but I've never used them. Might not be too hard, but I can't say.1-Dec-06 17:27
885GreggYou need to use the API to get the version resource from a PE file. It might be a standard resource , but I haven't touched that in a long time so I can't remember.

As an aside, this feature was so requested in the VB world, years ago, that Desaware created a commercial product called VersionStamper that did just that; and they sold a lot of them.

1-Dec-06 17:26
884Maximwhich would allow you to stamp the version (maybe) within the bin automagically.1-Dec-06 16:13
883Maximwell you know the version from the source, and as you say, can resolve a checksum from the output bin. but you must keep a table of all the builds somewhere... I wonder if there are any commandline resource hackers?1-Dec-06 16:12
882Henrikyes, no human involvement between initiating build and finished executable and knowing the version1-Dec-06 16:10
881Maximon encap you mean?1-Dec-06 16:10
880Henrikexcept it has to be fully automatic...1-Dec-06 16:09
879Maximthis has the added benefit of being precise within the icons and shortcuts... and may remove the reference to REBOL within which is a bit annoying when you release stuff and its not labeled as per your output names ' :-/1-Dec-06 16:09
878Maximif you have full control on the app sources... using a resource editor (on windows), you could probably edit the rebol version data included in the binary metadata and then there are probably os calls to get that natively.1-Dec-06 16:07
877Henrikyes, the app and updates come from me and so I'll know which version it is if I just have a checksum on the executable.1-Dec-06 16:07
876Maximbut for that you have to have access to the version info from the outside, meaning you already know it... but I guess this is not such an issue depending on why you want version info..1-Dec-06 16:06
875HenrikI guess it would be possible to do a checksum and correlate that against a version list.1-Dec-06 16:03
874Maximnot AFAICT cause its always the same wrapper, and the content is encrypted, so you can't just read and parse the binary !1-Dec-06 15:28
873Henrikare there ways to extract version information about an encapped binary from REBOL? I'm building a software update tool and want to read the version information about a specific binary.1-Dec-06 11:12
872Maximfor view windows, there is a title field in the encap part of the rebol header

rebol [ encap: [title "NOT REBOL"] ]

10-Nov-06 17:01
871Maximwhen not in view: (on windows) Graham posted this a while back:

win-lib: make object! [ user-lib: load/library %user32.dll

SetWindowText: make routine! [ handle [integer!] Title [string!] return: [integer!] ] user-lib "SetWindowTextA" set 'WindowTitle func [ Title [string!] ] [ SetWindowText get-modes system/ports/system 'window Title ] ]

10-Nov-06 17:00
870Maximdepends if you are in view or not.10-Nov-06 16:59
869RobertHow can I change/get rid of the REBOL word in the title?10-Nov-06 15:32
868Maartenhttp://unxutils.sourceforge.net/9-Nov-06 11:00
867Maximhum... cat.exe probably exists maybe less.exe also...9-Nov-06 8:19
866Tomcor has some kind soul implemented unix cat for dos9-Nov-06 8:19
865Tomccan you pipe to copy con9-Nov-06 8:18
864Maxim?9-Nov-06 8:17
863Tomcgrasping at very old straws here9-Nov-06 8:17
862Tomc... | copy con9-Nov-06 8:17
861Maximis there any way to use class methods from C++ implemented external libraries?9-Nov-06 8:16
860Maximtype doesn't seem to work for me :-( it expect a file name as an argument...9-Nov-06 8:11
859TomcMaxim Im pretty sure windows has always woked this way , can you also pipe to TYPE to avoid stopping at 1 page?9-Nov-06 8:04
858Maximand could wrap my app in a little batch file... to make it invisible ...9-Nov-06 7:02
857Maximthanks, Unless RT fixes this long-standing issue for the next R2 bug fixes I'll at least try this :-)9-Nov-06 7:02
856PeterWood..but it needs to recieve all the output at once.9-Nov-06 7:01
855PeterWoodHere's a quicker one that buffers all the output: var si = WScript.StdIn; var so = WScript.StdOut; so.Write(si.ReadAll());9-Nov-06 7:00
854PeterWoodMax: Perhaps you could come up with a nomore for clients. I came up with one in JScript (as it is pre-installed on all Windows 98 & NT 5.0 onwards).

Usage: test.exe. | cscript\\Nologo nomore.js

Script: var si = WScript.StdIn; var so = WScript.StdOut; var line; while (!si.AtEndOfStream) {so.WriteLine(line = si.ReadLine());}

9-Nov-06 6:49
853GreggI thought the API approach would at least work, but I don't know if doing it inside a process that has already opened the console in a non-shared mode would cause the issues I saw or not. And I would think that CGI mode would work too.8-Nov-06 22:30
852MaartenI have no idea aither, but code bloat seems unlikely here.8-Nov-06 20:04
851MaximI wonder if this limitation is only due to the fact that Carl does not want the rebol executable to be bloated... cause I see no reason why this limitation exists... even python works directly in the console... maybe RT should look at python's startup code to see how they did it?8-Nov-06 20:04
850MaartenYes, but in my particular case, that is not a problem8-Nov-06 20:02
849Maximbut the more serious limitation is not being able to ask a question on the command-line ;-(8-Nov-06 20:02
848MaartenNow I can either create a wrapper program that can do this and runs my rebol program in the background, or ask my users to use 'more8-Nov-06 20:01
847MaartenWell.... you must have been mistaken8-Nov-06 20:00
846Maximfor some reason, I am sure I had it working... I did so many tests.8-Nov-06 20:00
845MaartenYep. It's not what I want my customers to show as well8-Nov-06 19:59
844Maximand its not very professional for clients...8-Nov-06 19:59
843Maximbut more will jam at first page full...8-Nov-06 19:58
842Maartenworks when you pipe to more :-)8-Nov-06 19:58
841MaartenLet me check the Detective source...8-Nov-06 19:54

Return to Index Page