World: r3wp
[SDK]
older newer | first last |
Volker 5-Jul-2006 [562] | load each of the files on each own, using 'load and a loop? 'load should fail on unloadable things. |
Graham 6-Jul-2006 [563x2] | the 14,000 lines or so are assembled together into one file for encapping. Hard to split up again .. but I found the fault eventually. |
But it would be nice if encap gave a line error instead of just complaining it can't load | |
Gabriele 6-Jul-2006 [565x2] | load would give you the line number |
(well, if a ] is missing then will give the end of file of course.) | |
Anton 6-Jul-2006 [567x2] | You could load each file until the one with missing bracket is found, then copy chunks of text and try to load them in the console repeatedly, eg: load read clipboard:// |
Or just keep trying to load the file while commenting smaller and smaller chunks of code. That's what I usually do. | |
Sunanda 6-Jul-2006 [569] | Doesn't the Official Guide have a "debug loader" that islotes the missing bracket to the nearest object/function? |
Gregg 6-Jul-2006 [570] | Yes. It has some limitations, but there is one there. |
Gabriele 6-Jul-2006 [571] | you can also use just parse for brackets, almost a parse one liner :) but the accuracy depends on what bracket is missing. if it's the closing bracket, you can only guess by indentation. |
Graham 6-Jul-2006 [572] | A one liner?? Let's see :) |
Gabriele 7-Jul-2006 [573] | if you know that the problem is [, just count up on [ and down on ] and stop when count < 0. or you can just print only the lines with [ or ] in them so you get a "compressed" view of the source and look for the missing bracket visually. |
Graham 7-Jul-2006 [574] | The problem actually turned out to be Leo ... and the way I was using it. I commented out a block of code using ; when I should have used @, and @c .. so it only commented out the first line of the included block :( |
Josh 27-Jul-2006 [575] | I've read through the SDK docs and am probably missing it, but how can you set the Company name, Description and version numbers on an encapped app? (So it doesn't say REBOL Technologies in the file properties |
BrianH 27-Jul-2006 [576] | Do you mean, other than with third-party tools? |
Josh 27-Jul-2006 [577x4] | I was assuming there was a way to do this using encap, yes |
This is totally fun. I made new icons for an application and put them in with Resource Hacker (suggested by the documentation), but the icons change back and forth between mine and REBOLs based when I change the name of the .exe file. Any explanation | |
? | |
Maybe it's some sort of cache, I haven't tried a reboot | |
[unknown: 9] 27-Jul-2006 [581] | I recall (poorly perhaps) that you need to recalc a checksum for the whole EXE. |
Ashley 27-Jul-2006 [582] | Nope. You just need to make sure that your icon replacements are the same size and bit depth. You can then put your replacement icons in a .ico file and automate the build process with code like: call rejoin ["c:\rebol\bin\ResHacker.exe -addoverwrite " encap-exe "," encap-exe "," to-local-file ico-file ",ICONGROUP,REBOL,1033"] You can also do the same thing with Company/Version info and a .res file: call rejoin ["c:\rebol\bin\ResHacker.exe -addoverwrite " encap-exe "," encap-exe "," to-local-file res-file ",VERSIONINFO,1,1033"] The "switching icons" problem is a Windows thing. Highlight your newly created .exe file and select View|Refresh from the file explorer menu. This should cycle the Windows icon cache. |
Gabriele 28-Jul-2006 [583x2] | Josh: what you see is a Windows icon cache. as long as the program name stays the same, windows won't update the icon. i think there's a way to force it to flush the cache but i don't know how. |
ashley: i'll try your refresh suggestion next time, i remember trying it and it didn't work (but maybe i'm wrong) | |
BrianH 28-Jul-2006 [585] | You can flush the icon cache with TweakUI: In the "Repair" section, choose "Rebuild Icons". |
Pekr 1-Aug-2006 [586x2] | What does this mean, please? I just tried to upgrade to latest SDK, as I use Command on my Linux Fedora Core 1, and older Rebol does not know 'unless (which is used in sqlite.r driver). But I got following error: ./rebcmd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory |
I get it only for rebcmd, rebbase, rebol, rebpro are working ... | |
BrianH 1-Aug-2006 [588] | Perhaps only /Command is loading that library. Do you have that library on your system? |
Pekr 1-Aug-2006 [589x3] | yes, but pro already works ... |
I wonder if I will have to upgrade my old Fedora Core 1, or I just can grab the library and put it somewhere? :-) | |
or I will miss fastcgi .... | |
BrianH 1-Aug-2006 [592x2] | Does /Pro load that library? |
Fedora Core 1 is a bit old... | |
Pekr 1-Aug-2006 [594x3] | but not needed now .... (fast cgi), I get my sql query result in some 0.03 sec even for plain cgi ...., which is nice |
yes, pressing enter under the linux midnight commander runs cgi in console. I just can't get it to work from browser, but that might be another problem ... | |
btw, here is ldd rebcmd: [[root-:-linux] bin]# ldd rebcmd# libstdc++-libc6.2-2.so.3 => not found libm.so.6 => /lib/tls/libm.so.6 (0x00d40000) libdl.so.2 => /lib/libdl.so.2 (0x00d64000) libc.so.6 => /lib/tls/libc.so.6 (0x00c05000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00bed000) | |
BrianH 1-Aug-2006 [597] | On Windows, /Pro supports fastcgi - what about on Linux? |
Pekr 1-Aug-2006 [598] | not sure, not tried yet, but good suggestion ... so what is the difference then? Encryption, odbc? |
BrianH 1-Aug-2006 [599] | Command adds encryption, ODBC, Oracle, (slower native) MySQL, and SSL. |
Pekr 1-Aug-2006 [600] | isn't encryption part of /pro too? |
BrianH 1-Aug-2006 [601x2] | After checking, it appears to be. |
Command seems to have an "Encryption Level 2" though, which I would guess is better. | |
Gabriele 2-Aug-2006 [603x2] | libstdc++ is required by AGG |
most likely you just need a symlink from your version of libstdc++ | |
Pekr 2-Aug-2006 [605x2] | dunno what is symlik, so .... :-) well, my friend suggested me to find the library in some rpm and unpack it .... I found it via rmpfind.net |
rebcmd is linked towards AGG? So I can use draw for effects, etc, to produce on images, even if no X-Win is installed? | |
BrianH 2-Aug-2006 [607] | By symlink, he means symbolic link. Enter "man ls" on your Linux command line without the quotes for more info. |
Gabriele 3-Aug-2006 [608x2] | man ln ;) |
petr, yes, it should have the DRAW native afaik. never used command for images myself so i haven't tested any of this. | |
Cyphre 3-Aug-2006 [610] | Pekr: yes, you can use DRAW native in this version of Rebol without X-Win. |
Pekr 7-Aug-2006 [611] | how to prevent security dialog in SDK generated app? I surely don't want end user to answer security dialog with mine app :-) |
older newer | first last |