World: r3wp
[Ann-Reply] Reply to Announce group
older newer | first last |
Will 1-Sep-2009 [1786] | That is a great idea! |
james_nak 3-Sep-2009 [1787] | Pekr, et. al, how do you use that tray.r? |
Pekr 3-Sep-2009 [1788] | Cyphre should upload some examples, till that time, you are on your own. I don't use the SW myself .... |
james_nak 3-Sep-2009 [1789] | Thx. |
Micha 4-Sep-2009 [1790x6] | how to create threads in REBOL? |
I wrote this code | |
rebol[] ;------------------ system/words/&: func [ "Return the memory address of a binary, string or struct as a binary value" b [binary! string! struct!] ][ to-integer reverse third make struct! [s [string!]] reduce [either struct? b [third b][b]] ] ;---------- integer: make struct! [ value [integer!] ] none ;------------------- kernel32: load/library %kernel32.dll CreateThread: make routine! [ pThreadAttributes [integer!] dwStackSize[integer!] lpStartAddress [callback [int return: [int]]] lpParameter[integer!] dwCreationFlags[integer!] lpThreadId [integer!] return: [integer! ] ] kernel32"CreateThread" ;---------- i: 0 thread: func [ n ][ i: i + 1 ] ;----------------- loop 10 [ print t: CreateThread 0 0 :thread 0 0 & integer wait 0.1 print i ] halt | |
as I add features until the thread does not works | |
if i change "thread: func [ n ][ i: i + 1 ] " on "thread: func [ n ][ for m 1 10 1 [] i: i + 1 ] " | |
this code not work | |
Graham 4-Sep-2009 [1796x4] | Alan, "integrated" is the correct spelling. |
I think you need to thumbnail those images .. they're just not downloading for me. | |
What is FNDY ?? | |
Something to do with fire fighting? | |
amacleod 4-Sep-2009 [1800x2] | FDNY New York City Fire Department |
images download fast here but I'm sure you are right..they are full size. | |
Graham 4-Sep-2009 [1802x2] | Yeah .. you need to thumbnail them. |
Use imagemagick or something ... | |
amacleod 4-Sep-2009 [1804] | My server seems to be crawling right now...don't know why. Usually flys |
Graham 4-Sep-2009 [1805x3] | check the server logs |
maybe a bot is crawling your site | |
do you have a robots.txt file? | |
amacleod 4-Sep-2009 [1808] | No, I just threw it up...noit ready for prime time yet |
Graham 4-Sep-2009 [1809] | google will crawl your site if you have the google toolbar |
amacleod 4-Sep-2009 [1810] | google toolbar? |
Graham 4-Sep-2009 [1811] | now that I have visited ... google knows about your site |
amacleod 4-Sep-2009 [1812] | Oh, Tool bar in your browser...really? So if I have the bar in my browser I can visit my own sites to get them goolge aware? |
Graham 4-Sep-2009 [1813] | I think so |
amacleod 4-Sep-2009 [1814x2] | intergrated fixed..thanks. I've missed that same typo before |
Server is still slow but it might be my internet connection as another computer running at the same location is also super slow....unless my bandwidth is getting eaten up with server access...an attack?? I cannot get into the server to check the logs.. | |
amacleod 5-Sep-2009 [1816] | Server logs looked light - low traffic- so it must have been a slow connection...working fine now |
Maxim 21-Sep-2009 [1817x2] | nice stuff Chris. |
replying to (http://www.ross-gill.com/r/altwebform.r) | |
Chris 21-Sep-2009 [1819x2] | Thanks, Max! I do wonder if I could do the same in less, but for now it works as advertised... |
Should work on blocks and objects too. >> load-webform "name.first=Chris&name.last=RG" == [name [first "Chris" last "RG"]] | |
Maxim 21-Sep-2009 [1821] | is there a javascript way to formulate the above url based of from nested JSON objects? |
Chris 21-Sep-2009 [1822] | or >> to-webform context [name: context [first: "Chris" last: "RG"]] == "name.first=Chris&name.last=RG" |
Maxim 21-Sep-2009 [1823] | for ajax, this system could be really handy :-) |
Chris 21-Sep-2009 [1824] | I don't think it'd be difficult. |
Maxim 21-Sep-2009 [1825] | I don't think either... I guess I was wondering if such a lib already existed, from which you ported a rebol server-side equivalent. |
Chris 21-Sep-2009 [1826x3] | The goal is to make them interchangeable. You could set up a service that took the same structured data in JSON as it does from a web form... |
Which (when fixed), 'import (see r.org filtered-import) can validate. | |
i.e. submit to service from Ajax, use JSON ( http://bit.ly/altjson ), or build a web form with the 'name.first' style keys. | |
Mchean 28-Sep-2009 [1829] | amacleod - nice |
Graham 28-Sep-2009 [1830] | Chris, is your Rebol <-> Json converter better than the others? Why rewrite? |
Chris 28-Sep-2009 [1831] | It wasn't so much a rewrite as following on from code I'd written prior. Whether it's better, I don't know - I was going for cleaner, and the /flat option. |
amacleod 28-Sep-2009 [1832] | Thanks, Michael |
Maxim 1-Oct-2009 [1833] | amacleod - your C.A.P.T.A.I.N. app is quite impressive... congrats, its fun to see what people are doing with REBOL and to know that all the help going around here leads to amazing stuff ! |
amacleod 1-Oct-2009 [1834] | Thanks Maxim, Waiting for your GLass/Liquid stuff to be completed...I would love to get a better inface on my app...right now I feel its full of hacks to get R2 view to do what I need it to do... I looked at GLayout (and REBGUI) but I thought pure VID would be easier for me to make any needed workarounds to missing needed compoments. Once I get a solid version 1 out I will look into porting to R3 (If new VID is ready) or your stuff again if you release a new version... |
Graham 28-Dec-2009 [1835] | We already have a R2beta world ... why not use that? |
older newer | first last |