AltME groups: search
Help · search scripts · search articles · search mailing listresults summary
world | hits |
r4wp | 443 |
r3wp | 4402 |
total: | 4845 |
results window for this page: [start: 1 end: 100]
world-name: r4wp
Group: #Red ... Red language group [web-public] | ||
Kaj: 4-Jun-2012 | Printing is included in Red/System. Reading environment variables is in my C library binding. The only problem is standard input. I think it can be bound on Windows to platform specific functions, but on Unix platforms it requires importing the standard file descriptor data, which Red/System can't do yet. So that would be the only limitation to wait for here, but it can already be done on Windows | |
BrianH: 15-Jun-2012 | You can make a port work a lot like a series, and you mostly did with the virtual block scheme. FOREACH and PARSE not working on ports can be a bit annoying, but they would only work on a subset of the port types that either work like series or (theoretically) like files (like open/direct file ports in R2). | |
Rebolek: 2-Aug-2012 | Doc, have a look at http://box.lebeda.ws/~rebolek/sintezar.zip Compile file %sintezar.reds and see function ADSR in %env.reds. Even when I pass TRUE, EITHER always executes FALSE block. I tried to simplify it, but I wasn't succesfull, so it's bit bigger project than just few lines, sorry :) | |
DocKimbel: 8-Aug-2012 | Kaj: since latest commits in `namespaces` branch, you can now do: ctx: context [ #import [ LIBM-file cdecl [ sin: "sin" [ x [float!] return: [float!] ] ] ] ] print ctx/sin 1.0 ;-) | |
ACook: 16-Aug-2012 | I actually had to do something like that once, a configuration file contained a bunch of strings in english and they needed them in spanish but weren't willing to actually get someone to translate them. So.. I used Google Translate. | |
PeterWood: 17-Aug-2012 | I suspect that the Red runtime will be linked into Red executables rather than exist as a separate file. | |
PeterWood: 19-Aug-2012 | Or for me on OS X : Schulz:Red peter$ rebol -qs red-system/rsc.r red-system/tests/hello.reds Cannot access source file: red-system/tests/hello.reds | |
Kaj: 20-Aug-2012 | I can start rsc.r from any directory, but then it fails to find the source file in that directory | |
DocKimbel: 20-Aug-2012 | Peter: the lib-test file is crashing here on my OS X 10.6.2 image with following error: dyld: lazy symbol binding failed: Symbol not found: _strnlen Referenced from: /Users/dk/Desktop/Red/red-system/tests/runnable/lib-test Expected in: flat namespace After researching a bit about it, it seems that strnlen() is (was?) not supported by OS X. | |
Andreas: 20-Aug-2012 | And if we want to keep the "nice" exe names (which would be my guess), what to do if the target file already exists? | |
PeterWood: 20-Aug-2012 | Nenad" "Peter: the lib-test file is crashing here on my OS X 10.6.2 image with following error:" Did you install Xcode including the Unix libs? I wrote the tests under OS X 10.6 but am now running on 10.7. | |
PeterWood: 20-Aug-2012 | What we want is ability to call %rsc.r from anywhere, compiling a program from working dir (or relative to working dir) and producing the binary in the working dir. Please can we also supply a second argument to rsc.r for the output dir/file name (the gcc -o option with improvements). If the second argument is a dir then the executable is written to that dir instead of the current working dir. If the second argument is a file then the executable is saved with that name. | |
Rebolek: 23-Aug-2012 | How do I generate DLL? I added #export but it stills create .EXE file. Should I just rename it, or is there some compiler switch? | |
Endo: 23-Aug-2012 | Try to watch what happens when loading the dll using Process Monitor and File Monitor from System Internals. | |
Pekr: 23-Aug-2012 | No, I mean the source code file ... but not sure it matters. E.g. for R3, I had difficulcy running some scripts, unless I re-saved the source file to UTF8. Some strange chars appeared in the console and apps crashed | |
Endo: 23-Aug-2012 | I've uploaded a file on Altme, DLLFunc, it loads a dll and prints the function names. It works with temp.dll, shows "f1" function. | |
Pekr: 23-Aug-2012 | Other libraries have rather extensive file type info, temp.dll has no such info. Don't want to spam it here .... | |
Pekr: 23-Aug-2012 | E.g. libiconv: file type: Dynamic Link Library (0x2) .... is such info just some metadata, which is not needed? | |
DocKimbel: 23-Aug-2012 | Ah ok, the info you get there are Windows file metadata (probably a resource section in the file), these are not from DLL core structures. | |
DocKimbel: 23-Aug-2012 | REBOL does not return an accurate error msg when failing to find a DLL file: >> lib: load/library %xyz.dll ** Access Error: Cannot open xyz.dll as library ** Near: lib: load/library %xyz.dll This can be misleading thinking that %xyz.dll exists but is invalid, while it doesn't exists at all. So for the people having issue with %temp.dll, check if the DLL is present in the working folder and that you have correctly CD to that folder in your REBOL session. | |
Pekr: 25-Aug-2012 | what is now latest temp.reds source? I got: Compiling tests/temp.reds ... Script: "Red/System IA-32 code emitter" (none) *** Compilation Error: missing argument *** in file: %runtime/win32.reds *** in function: ***-dll-entry-point *** at line: 204 *** near: [hinstDLL] | |
DocKimbel: 25-Aug-2012 | For static libs linking, if someone could contribute by providing a .lib and .a file reader/parser, that would help get that feature implemented sooner. | |
Jerry: 1-Sep-2012 | Doc, will you extract all the information string of Red source code into a file, so I can translate them into Chinese without modifying the source code. | |
DocKimbel: 4-Sep-2012 | So far, my short-list of encodings to support are UTF-8 and UTF-16LE. UTF-32 might be needed at some point in the future, but for now, I'm not aware of any system that uses it? The Unicode standard by itself is not the problem (having just one encoding would have helped, though). The issue lies in different OSes supporting different encodings, so it makes the choice for an internal x-platform encoding hard. It's a matter of Red internal trade-offs, so I need to study the possible internal resources usage for each one and decide which one is the more appropriate. So far, I was inclined to support both UTF-8 and UTF-16LE fully, but I'm not sure yet that's the best choice. To avoid surprizing users with inconsistent string operation performances, I thought to give users explicit control over string format, if they need such control (by default, Red would handle all automatically internally). For example, on Windows:: s: "hello" ;-- UTF-8 literal string print s ;-- string converted to UCS2 for printing through win32 API write %file s ;-- string converted back to UTF-8 set-modes s 'encoding 'UTF-16 ;-- user deciding on format or s/encoding: 'UTF-16 print length? s ;-- Length? then runs in O(1), no surprize. Supporting ANSI as internal encoding seems useless, being able to just export/import it should suffice. BTW, Brian, IIRC, OS X relies on UTF-8 internally not UTF-16. | |
DocKimbel: 14-Sep-2012 | (BTW, please read the content of the README file displayed at the above link.) | |
DocKimbel: 15-Sep-2012 | # rebol -qw red.r %red/tests/hello.red -= Red Compiler =- Compiling red/tests/hello.red ... ...compilation time: 30 ms Compiling to native code... ...compilation time: 1282 ms ...linking time: 25 ms ...output file size: 30912 bytes # ./hello 42 | |
DocKimbel: 17-Sep-2012 | The included file paths are left unchanged. | |
Kaj: 17-Sep-2012 | The path of the source file they came from is lost | |
Kaj: 17-Sep-2012 | It would be easer if #system-include would be like #system so that you could wrap an extra context around Red/Sytsem code, without introducing an extra wrapper file. Would that be hard? | |
DocKimbel: 19-Sep-2012 | I've been very busy since yesterday on a new tool for Red: I've built a proper REBOL code profiler! (I wonder why I haven't done that since a long time...). I went through the profiler scripts on rebol.org and couldn't one suitable for my needs or that works with complex code, so I wrote one. It is able to deal with complex code, all datatypes, recursive calls and it's very simple to use. Here's a demo profiling Red compiler (output is properly aligned when monospace font is used): -= Red Compiler =- Compiling red/tests/test.red ... ...compilation time: 40 ms Compiling to native code... ...compilation time: 10189 ms ...linking time: 60 ms ...output file size: 37888 bytes >> profiler/report/time Function Count Elapsed Time % of ET ------------------------------------------------------------------------ compile 1 0:00:10.249 100.0 comp-dialect 205 0:00:09.659 94.24 fetch-expression 7505 0:00:09.628 93.94 comp-word 5668 0:00:08.209 80.09 fetch-into 427 0:00:07.519 73.36 comp-assignment 597 0:00:07.049 68.77 run 3 0:00:06.492 63.34 comp-context 21 0:00:06.398 62.42 comp-with 1 0:00:05.565 54.29 comp-expression 3172 0:00:04.479 43.70 ns-find-with 24277 0:00:03.962 38.65 finalize 1 0:00:03.327 32.46 comp-natives 1 0:00:03.274 31.94 comp-func-body 180 0:00:03.271 31.91 comp-call 2775 0:00:02.732 26.65 comp-func-args 2861 0:00:01.862 18.16 find-aliased 9650 0:00:01.86 18.14 resolve-type 8032 0:00:01.799 17.55 get-type 10758 0:00:01.546 15.08 ns-prefix 21765 0:00:01.518 14.81 check-enum-symbol 7509 0:00:01.241 12.10 comp-block 283 0:00:01.05 10.24 comp-variable-assign 417 0:00:01.034 10.08 | |
DocKimbel: 19-Sep-2012 | REBOL code profiler released: https://github.com/dockimbel/Red/blob/v0.3.0/red-system/utils/profiler.r Should work with any REBOL app. Documentation, comments and example included in file header. Hope someone will pick it up and improve it (like adding functions sub-tree stats and a GUI). This is github, so feel free to fork then fix/improve. | |
DocKimbel: 23-Sep-2012 | It can be a CREDITS file distributed with your app. | |
PeterWood: 26-Sep-2012 | Is the source file of your Czech version UTF-8 encoded? | |
Pekr: 26-Sep-2012 | Above works ... but when I write it directly in Notepad (and the file claims it is UTF-8), it does not work ... strange then ... | |
Pekr: 26-Sep-2012 | sent new file to Doc. Doc - btw - the last sentence (which prints correctly), means something like "Way too much yellow horse groaned devilish odes" :-) That sentece is known in our language to test all possible special chars in Czech language and still have some meaning ... | |
MagnussonC: 26-Sep-2012 | Tested "Hallå Världen!" on Win 7 (UTF-8) and it works. Saving the file as Notepads "Unicode" doesn't work, but I understand "Unicode" isn't supposed to be UTF. | |
MagnussonC: 26-Sep-2012 | Yes, I testad with UTF-8 encoded file | |
Andreas: 26-Sep-2012 | I noticed that the red/tests/hello.red file is UTF-8 with a BOM -- I'd suggest dropping the BOM, as using a BOM with UTF8 is not recommended. | |
Kaj: 26-Sep-2012 | CGI is based on the same principle. It's supposed to be a gateway from a Unix web server to a Unix file system, so you can secure it with operating system tools | |
Pekr: 30-Sep-2012 | Well, what I would like to see is the ability to have one file per table, without artificial limits like having to attach databases, to some artificial number of 9, or what was the limit. Second - SQLite 4 to have encryption storage option .... | |
BrianH: 30-Sep-2012 | If you want one file per table, pick another engine. For the rest of that stuff SQLite is OK. | |
Pekr: 30-Sep-2012 | Yes, it would really help to more easily backup at the file level - not just one monstrous file each time, but certain tables ... | |
kensingleton: 1-Oct-2012 | >> do/args %rsc.r "%tests/mine/fibonacci.reds" Script: "Red/System compiler wrapper" (none) -= Red/System Compiler =- Compiling tests/mine/fibonacci.reds ... Script: "Red/System IA-32 code emitter" (none) *** Compilation Error: alias name already defined as: [str uct! [ item [c-string!] ]] *** in file: %runtime/common.reds *** at line: 61 *** near: [ str-array!: alias struct! [ item [c-string!] ] typed-value!: alias struct! [ type [integer!] value [integer!] _padding [integer!] ] ] | |
kensingleton: 1-Oct-2012 | Kaj, downloaded the Zip file from Fossil and re-ran (after sorting paths to files) and get the same problem as already posted. The problem is not file locations as that results in a different compiler error which is easily sorted. It seems to me in the problem I have posted, the compiler thinks there is already an alias called str-array! - however I have searched every reds file and there is no other with that name! Anyway, it is not urgent but I just wanted to feed back my findings to you. | |
kensingleton: 1-Oct-2012 | Under windows there is no common folder where the common.reds file resides - on windows common.reds resides in the runtime folder, so the #include file in the c-library.reds file needs to point to where that file resides. Likewise on fib and mand - they point to the c-library which I put into the library folder that exists in the Red/System folder on the windows version. | |
Group: Announce ... Announcements only - use Ann-reply to chat [web-public] | ||
Arnold: 4-Jul-2012 | Hello I have a new version 1.05 'ready'. Added languages and a preferences panel. Only the save option to save preferences I did not fill in this one, because first of all location of this file and secondly I had doubts if it is needed. http://www.arnoldvanhofwegen.com/stuff/mirror.zip It contains 3 files. | |
Arnold: 11-Jul-2012 | A new version of the mirror game is available as a zipped file at http://www.arnoldvanhofwegen.com/stuff/mirror.zip This time it is version 1.07. I put a beam in. Click on a label and a beam will show up,right click the label or just click the box for a new mirror and it disappears again. (It is also becoming a showcase for different REBOL techniques applied, though maybe not the best (: ) Have fun with this version! | |
Arnold: 26-Aug-2012 | Oh and you need the chessimages.r file I just uploaded too. | |
Group: Ann-Reply ... Reply to Announce group [web-public] | ||
james_nak: 15-Mar-2012 | Robert, good job. I've been trying to open the test file, assuming that's necessary, but clicking on open does nothing for me. | |
Maxim: 15-Mar-2012 | strange, I just re-downloaded at it was empty... will check if its not something with browser caching... though it shouldn't if the file date changed on the server. | |
Arnold: 3-Jul-2012 | This is the benefit of speaking another language than English that is the base for so many computerlanguages. You can say things like rij: array [100] where array: array [100] would be a sure syntax error, and rij means array in Dutch off course. If you are in need of additional translations, just say so. Next I will build a multi-lang support lbl-something/text: lbl-something-tekst and a preferences panel with file (mirror.ini or mirror-pref.ini) for language (En De Nl Fr Es Pt additional wishes?), mirror line-width normal(1)/bold(3 wide) for placed or both kinds and/or the grid, color of added mirrors, color for ok color for not ok. | |
Arnold: 25-Jul-2012 | Looks great Max, maybe all the docs make for a large script/download? The syntax highlighting, yes,the syntax file for UltraEdit is here for inspiration: http://www.ultraedit.com/files/wf/rebol.uew | |
Endo: 5-Aug-2012 | Red Compiler: Nice work Arnold. Quick feedback: Need error handing (compiler not found etc.), config file to remember previous settings. | |
Endo: 7-Aug-2012 | Hi Doc, it is a great piece of code! Thanks a lot. in readme file it says: http://raw.github.com/dockimbel/printer-driver/master/printer-scheme.r but it doesn't work. I think it should be https instead of http, then it works: https://raw.github.com/dockimbel/printer-driver/master/printer-scheme.r | |
Group: Rebol School ... REBOL School [web-public] | ||
Sujoy: 3-May-2012 | beginner question: i'm opening a file using d: open/direct/lines %bigfile.nt i am then looping through each line using: while [ln: first d] [ ;do something here ] i need to record the byte position of the start and end of each line... how? | |
Maxim: 3-May-2012 | basically... just find crlf in the file. | |
Endo: 8-May-2012 | Hmm.. LOAD might load the file even if it is not an image. So you may need to TO-IMAGE, or check the datatype after loading: attempt [img: load %file if image! = type? img [...]] | |
Endo: 8-May-2012 | Try to WRITE to a file the text you read from the web, it might be VERY long? | |
Endo: 9-May-2012 | BrianH: Thanks for the info. It corrupts when I try it on objects. And wierd effects on blocks.. I've added "unset 'path" to my rebol.r file, so I won't be confused anymore. | |
Arnold: 19-May-2012 | Hi, I have a small problem playing an mp3 file I have so far player: "/Applications/Vox.app/Contents/MacOS/Vox" thissong: "/Users/Arnold/Music/A song.mp3" thatsong: "/Users/Arnold/Music/A-song.mp3" And then call reform [player thissong] call reform [player thatsong] Playing thissong will start the musicplayer, but no music was found and playing thatsong starts the player and is being played without problem. Because most of my mp3's and directories they are in have spaces in their names so starting to play them from REBOL gets hard this way. I tried to-file thissong but this produces "%/......&20song.mp3" so it was not successful. (Allthough thatsong just played without a problem) :( Any ideas please? | |
Arnold: 19-May-2012 | Another thing, I want to make an 'application' using REBOL that plays an mp3, an mp3 with a story for kids and I want to display the pictures from the book depending on maybe a timer(file) so the pictures are displayed acoording to the storyline. This also could be a helping aid for making presentations. I do not want to binary save my mp3 in the source of the application or in any other rebol-script so I just want to use the mp3 file and not convert it. Furthermore I do not want an external app to be started unless it can be done under the hood and/or it can be controlled by my app because the presentation could be paused by the user. Any ideas where and how to start such script. | |
Arnold: 19-May-2012 | Found the answer to my first task: Had to read the documentation a little further and needed a function localize-file: func [file] [ rejoin [{"} to-local-file clean-path file {"}] ] Now call reform [player localize-file to-file thissong] does play the song! | |
Sunanda: 19-May-2012 | A slightly shorter version that does the same, I think: localize-file: func [file [file!] ][ mold to-local-file clean-path file ] I added [file!] to the parameter.....You get the parameter type-checked, hence a better error message if you pass it something that is not a file name. | |
james_nak: 23-May-2012 | Arnold, you can also take a look at an .xml file that Excel produces and see how that is configured. I've had better success with xml files than csv (though I use those as well) since you can add all kinds of formatting with XML. | |
Arnold: 24-May-2012 | I had the cvs file (one at a time is easiest) read/lines, parsed the comma's and then depending on the record with the key name = currentrecname being already in the table an insert or an update. But the update using db-update/where just gave me trouble beyond belief. Trying update within SQL (I am talking about Rebdb here) was no problem at least using 1 property at a time (had no more time testing). But how to do it using db-update is a mystery to me. Tried many things to no avail. My table I created using db-create bt [name additive papertype department weight weightline] How do I update the record where name = ABCD and I need only to update columns weight and weigthline, both integer (but that's a coincidence, don't mind if it could be anything)? | |
Arnold: 24-May-2012 | Any clues if it is possible to test a file for EOF? | |
Arnold: 7-Jun-2012 | When I use rename function to rename a file, the file date on my Mac OS X changes too. When I change a name using finder, carefully clicking the file and renaming it, the date does not change. Doe sthis happen on other platforms too? How to steer this behaviour? | |
Evgeniy Philippov: 10-Jun-2012 | I got an idea from a friend. So I got ready to start my two scripts (maybe someone wrote smth similar???) - one window; left pane has file system folders tree with top at the script's dir, right pane has some content. I want two scripts, every of them is a standalone app for its own like-minded audience: 1) plaintext.r, and 2) activetext.r. The plaintext.r will have right pane editor for plain text, saving it on the fly while editing (when the window is navigated away or closed, the text is saved); and activetext.r which has a plaintext-with-rebol-applets or .r content at the right pane. | |
Pekr: 20-Jun-2012 | I mean - text I need to input into the resulting file (UTF-8) is ANSI. I do print to-string read %text-slider.html, and in R3 console, Czech text is not correct .... | |
Pekr: 20-Jun-2012 | in editor, it's correct. Simply put - I read czech text from an ansi file, and it is distorted in console, ditto when writing it back to file of course .... | |
Kaj: 20-Jun-2012 | So you're saying the input file is not UTF-8? | |
Pekr: 20-Jun-2012 | Yes, ANSI. I solved it by re-saving the same source file as UTF-8 istead of ANSI. Still a bad complication, as by default, Windows sets Notepad to ANSI, so it is a bit inconvenient ... | |
Pekr: 20-Jun-2012 | I am surprised R3 is not able to properly read/decode ANSI file with Czech alphabet ... | |
Arnold: 22-Jun-2012 | Why isn't there to-dir when there is to-file? Would adding to-dir: :dirize do the trick of making a to-dir function? Why isn't it implemented as a standard? | |
BrianH: 22-Jun-2012 | It doesn't really matter though; these aren't keywords. If you want to-dir: :dirize in your own code, put it in. Or put it in your rebol.r file. | |
Arnold: 23-Jun-2012 | I have a problem renaming files. rename does not change the filename on MacOSx. In the terminal it is no problem but in my script the filenames are not changed. fileo: to-file rejoin [what-dir add-suffix naam-oud-z-ext extensie] filen: to-file add-suffix naam-oud-z-ext extensie rename fileo filen I have tested with probe that the types are ok and with the resulting values for fileo and filen the rename command worked like a charm. Any more ideas what is happening and how to debug this further? Thanks. | |
Arnold: 23-Jun-2012 | In the original script I use a change-dir to get into the right directory. Then renaming is just the rename filename newname. I stuffed the renaming into a function and changed the variable names. Everywhere but in this place where I wanted to rename the file for real and I forgot to change old to new.... so here I tried debugging it while using the complete path and filename, because I was afraid there could be an issue there. | |
Sujoy: 3-Jul-2012 | apologies again - extracted this fragment from a gzillion mb file - there should be ]]]] at the end | |
Maxim: 4-Jul-2012 | yeah, well, all I can say is that whenever view or more specifically VID is frustrating, you should just mold the face which is aggravating you, save the code to a file and read it in your favorite syntax highlighted editor. you will learn A LOT about how VID.view works and learn quite a few Reboling techniques too. | |
BrianH: 11-Aug-2012 | The advantages of == or =? comparison over PARSE QUOTE would be lost if you serialize the data and save it to a file or send it over a network. REBOL syntax doesn't keep track of those distinctions. | |
Endo: 28-Aug-2012 | Let me simplify: REBOL [] print "ok" print system/script/args ask "test" When I encap this script and run with a parameter like "-cxx" it doesn't print ANYTHING. no "ok" no "test" nothing. BUT when I WRITE system/script/args to a file it looks it is there. REBOL [] print "ok" write %test.txt system/script/args ;there is "-cxx" in test.txt file. | |
Endo: 11-Sep-2012 | this works for me on free version of View: (XP) sound-port: open sound:// play: func [file] [ wait sound-port clear sound-port insert sound-port file wait sound-port ] | |
MagnussonC: 18-Sep-2012 | I read a file, line by line and want parts of each line in certain variables. First is an integer then a space and then a 3-4 character word then a space and then the rest of the line in a string. I guess there is no way like in Perl to match those variabels at once and put the value in numbered variables. I suppose I need to parse that line with something like (thru "a" copy b to "c") once for each variable (or perhaps first char with line/1)!? | |
Ladislav: 5-Oct-2012 | Rebol [ Title: "Catch" File: %catch.r Date: 5-Oct-2012/17:49:58+2:00 Author: "Ladislav Mecir" Purpose: { Catches local throw' Ignores non-local throws } ] ; Error definition system/error: make system/error [ throw': make object! [ code: system/error/throw/code + 50 type: "throw' error" not-caught: ["throw' not caught"] ] ] catch': func [ {Catches a throw' from a block and returns the value.} [throw] block [block!] "Block to evaluate" /local err disarmed ] [ use [throw'] copy/deep compose/only [ ; "localize" 'throw' in the block block: (block) throw': func [[catch] value [any-type!]] [ disarmed: disarm err: make error! [throw' not-caught] set/any in disarmed 'arg1 get/any 'value disarmed/arg2: 'throw' throw err ] get/any either all [ error? set/any 'err try block ( disarmed: disarm err disarmed/type = 'throw' ) disarmed/id = 'not-caught disarmed/arg2 =? 'throw' ] [ in disarmed 'arg1 ] [ 'err ] ] ] | |
Group: Databases ... group to discuss various database issues and drivers [web-public] | ||
Arnold: 27-Apr-2012 | Hi I found something in the config.inc.php file and documentation that says "$cfg['Servers'][$i]['AllowDeny']['order'] string If your rule order is empty, then IP authorization is disabled." | |
james_nak: 30-Apr-2012 | Perhaps you can check the config file and make sure you are logged in as the admin. | |
Endo: 16-May-2012 | In rebdb.r file, db-update function takes columns parameter as word! or block! and says "Columns to set". So I think it supports updating multiple columns at once. | |
Pekr: 21-Jul-2012 | After some time, I gave a try to the Sqlite DB. It kind of improved in some areas, even locking, so it is even more useable in concurrent environment. However - it still uses per file lock, and although it uses just milliseconds to lock the file, I have a problem with one aproach I am trying to take, and hence maybe the Sqlite is not right DB for my purpose, or my aproach is not correct. The reason why I wanted to use sqlite DB is, that it is easily movable to other target, and its performance is fine for even semi heavy solutions. I don't want to be dependant upon the some kind of "server", which stores its files who knows where, and to which I don't have proper access in cgi environment, unless I am a DB admin or server admin ... | |
Pekr: 21-Jul-2012 | Simply put - millisecond lock time is enough fine grained for my purposes, but - let's assume you have several ppl working on some customer list, where each customer has some orders. Those ppl do select particular customer, and work with orders. What I want is - when some user selects particular customer, I need its record being locked. The trouble is, that when I use BEGIN transaction for sqlite, it locks all the file, and does not allow other process to do write to the DB. I wonder, if I can somehow obey it, not really having per record locking. I would have to implement my own lock mechanism (not locking in fact), not allowing others select/enter customer record, when some other person is working on it? | |
afsanehsamim: 9-Nov-2012 | my understanding of work steps is : i have two files *.cgi and *.r ,in cgi file i created crossword that shows on web page ... in data.r i have made connectivity with database and create table ... and my codes are as following : in cgi file: | |
afsanehsamim: 9-Nov-2012 | the second file is only exaple of connectivity | |
afsanehsamim: 9-Nov-2012 | i do not know how should i mix cgi file with database file | |
Pekr: 11-Nov-2012 | there are two things - 1) you have to write a form, basically a html file, with fields, etc., and submit button, linking it to your cgi script 2) you have to write a CGI script, being able to read submitted values ... | |
Pekr: 12-Nov-2012 | Create 2 files. Call the first one e.g. cgi-test.html, and upload it to your server. The only thing you have to change is the link to your .cgi script in there: <HTML> <TITLE>Simple Web Form</TITLE> <BODY> <b>Simple Web Form</b><p> <FORM ACTION="http://www.xidys.com/cgi-bin/cgi-test.cgi"> <INPUT TYPE="TEXT" NAME="Field" SIZE="25"><BR> <INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Submit"> </FORM> </BODY> </HTML> Create a second file, called cgi-test.cgi (it has to align to how you name it in the above source file). Upload it to your cgi working directory. Remember to change the first line to contain the path, where your REBOL executable is placed: #!/usr/local/bin/rebcmd -sqc REBOL [] print join "Content-type: text/plain" newline start: now/time/precise submitted: decode-cgi read-cgi values: construct submitted prin "Submitted: " print mold submitted prin "values: " print mold values prin "values/field: " print mold values/field print now/time/precise - start print newline Now go to your URL, and try to submit some values. You can test it on my site at: http://www.xidys.com/cgi-test.html | |
Group: !Syllable ... Syllable free operating system family [web-public] | ||
Arnold: 13-Apr-2012 | This is the same file as last week(s) right? So I do not need to download it again? | |
Arnold: 14-Apr-2012 | If so mail me that file and I will do some extra editing on it. | |
Arnold: 14-Apr-2012 | I can not copy any file by dragging and dropping also ctrl-c ctrl-v didn't work. Copying a file should be easy? | |
Arnold: 14-Apr-2012 | I think delete should not be in the right-click menu only if you push shift or alt maybe. And there should definitely be an option to select move or copy a file. | |
Kaj: 14-Apr-2012 | Dragging moves a file. Hold Control to copy or Alt to make a symlink | |
Group: Web ... Anything related to the WWW [web-public] | ||
Arnold: 17-Sep-2012 | Chris, I am stil figuring this out. I want bold/italic/(underline)/(em) paragrapphs separated with a blank line (easier to understand and no need to delete a routinely typed 'return'-key) h1/h2/h3 img (inline/left right center aligned) and a-href, only 1 level of bullits, and I think I can come along without numbered sections. I was thinking about mark-up delimiters on the beginning of the line like === ==+ ==- ==* ==# I kind of liked \note and /note or /code but everybody will forget if the first one will be fore or backslashed so I guess the indented version to produce code. Plus I want the markup to be from a css file. No need to make this within the script because the template/and a script can take care of where and which to link to. That's about it. |
1 / 4845 | [1] | 2 | 3 | 4 | 5 | ... | 45 | 46 | 47 | 48 | 49 |