r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Core] Discuss core issues

Ladislav
24-Oct-2005
[2503]
so if you want it to start at -110, it can go to -10 maximum
Graham
24-Oct-2005
[2504]
Well, I think the vets can argue their own case,  I can work with 
a 100 year window.
Ladislav
24-Oct-2005
[2505]
this is not about computers, it is about the fact, that two-digit 
years can represent only 100 years, i.e. no "window trick" can give 
you more than 100 years
Volker
24-Oct-2005
[2506]
with all those extinctions that -10 window may be ok.. :(
Graham
24-Oct-2005
[2507]
If there is a 4 digit field, then birthdates pre last century would 
normally be added in 4 digits by most people.
BrianH
24-Oct-2005
[2508]
Why don't you implement the window yourself with a parse rule? It 
wouldn't be difficult to parse the date yourself.
Graham
24-Oct-2005
[2509]
because although I can do it, someone else may not be able to do 
so.
Ladislav
24-Oct-2005
[2510]
I think, that we have successfully proven, that two digit dates are 
insufficient for human medicine regardless what window we choose
Graham
24-Oct-2005
[2511]
to-date/birth
Ladislav
24-Oct-2005
[2512]
but still, is a "24/Oct/05" a newly born or a 100 years old?
BrianH
24-Oct-2005
[2513]
Either way congratulations are in order :)
Ladislav
24-Oct-2005
[2514]
:-))
Graham
24-Oct-2005
[2515x2]
to-date/newborn
for pediatric applications
Ladislav
24-Oct-2005
[2517x2]
Brian: did you notice my suggestion to write a RAMBO request for 
IF and USE in PARSE dialect?
for pediatric applications you may need 24/Jul/06 to be next year, 
may you not?
BrianH
24-Oct-2005
[2519]
Ladislav, I did notice. I'll do it later, after I get some sleep 
- I want to think about the phrasing.
Graham
24-Oct-2005
[2520]
yeah .. EDD are in the future.
Ladislav
24-Oct-2005
[2521]
glad I am not supposed to solve this :-P
Sunanda
24-Oct-2005
[2522]
Dates have natural ranges depending on their domain.

An expected due date of an unborn baby is (in theory) no more than 
9 months away.

The expected due date assigned to my mother before I was born is, 
now, a long time ago.


I don't'see how you can get around applying all due diligence to 
*any* input field. That may include asking for 4-digit dates on some 
occassions or disambiguating 24/oct/05 to ensure you know which part 
is the year.


Validation is one of the hardest parts of any real-world application, 
and one of the parts that most languages -- REBOL included -- offer 
only token support for.
Ideally, we'd have a range of to-xxx? words, like:
to-date? "29-feb-03"
== [false  "no such date"]
to-date?/strict "29-feb-04"    
== [false "ambiguous year/day]
to-date?/window "29-feb-04" [1975 2074]
== [true 29-feb-2004]
Benjamin
24-Oct-2005
[2523]
how can a call rebol from a PHP page ?
Sunanda
24-Oct-2005
[2524]
Does this help?
http://www.hudzilla.org/phpbook/read.php/4_12_0
Graham
24-Oct-2005
[2525]
there's a php implementation in rebol on the rebol france page
Benjamin
24-Oct-2005
[2526x4]
thanks Sunanda, exec() is a bit slow
im using exec("rebol.exe -sc test.r", $output, $return); it worked 
well im going to check the php implementation
im adding a module to phpAdsNew and i need to make it in rebol because 
my php skills are soooo bad
i cant find the implementation any where, in rebol france site, can 
you point me to the link ?
Graham
24-Oct-2005
[2530x2]
http://www.xgarreau.org/zazouminiwebserver/
close .. the docs are in French.
Pekr
24-Oct-2005
[2532x2]
as for dates, I once coded an algorithm to tell me the week. I sometimes 
miss date/week, date/day-of-year (number of days since the beginning 
of the year)
Ladislav - you mentioned IF in regards to parse. I thought it is 
a part of your REP you was supposed to post to RT? If not, and if 
it is not in Rambo yet, I may submit it then, cutting your request 
from here :-)
Sunanda
24-Oct-2005
[2534]
Dates: many useful conversion functions here:
http://www.codeur.org/forum/edit_msg.php?ID=10636&theme=17
Ladislav
24-Oct-2005
[2535]
Pekr: don't, I wanted Bryan to do it on purpose
Pekr
24-Oct-2005
[2536]
why? :-) you expect him, while submitting it, to come to some ideas? 
:-)
Ladislav
24-Oct-2005
[2537x2]
yes
eh, sorry, I wanted to say Brian, of course
Pekr
24-Oct-2005
[2539]
Ladislav: you should not use Rambo for puzzles :-))
Graham
24-Oct-2005
[2540]
what happens to the series if you insert elements  into the list 
while you're in a forskip loop?

what position are you at  now?
Ladislav
24-Oct-2005
[2541]
Graham: FORSKIP is a mezzanine, so it is easy to check
Pekr
24-Oct-2005
[2542]
that is the similar question of what happens to parse input stream 
:-) I did some inline changes, it seemed to work, but I probably 
confused indexing somehow not returning to proper position, after 
I did some replacing in it :-)
Chris
24-Oct-2005
[2543]
Graham, re. dates, though likely redundant, you could add an 'age' 
field...
BrianH
24-Oct-2005
[2544]
Ladislav, Petr: It is all right to use ME for puzzles though, time 
permitting :)
Ladislav
24-Oct-2005
[2545]
I just wanted to give you the opportunity to write it, because I 
knew you were thinking about it,...
james_nak
25-Oct-2005
[2546]
Is there a way to read the dates when a file was created? I'd like 
to add a "newest" file choice to one of my apps. Thanks.
Geomol
25-Oct-2005
[2547]
James:
probe info? %rebol.exe
Volker
25-Oct-2005
[2548]
creation, not modified? depends on os. look for get-modes.
james_nak
25-Oct-2005
[2549]
Thank you. How you all know this stuff amazes me! Again thanks.
Volker
25-Oct-2005
[2550]
We are all role-players, and after some years of trying alll doors.. 
;)
james_nak
25-Oct-2005
[2551]
Yeah, I see what you mean. It takes that kind of person. I just keep 
on staying in the same room until I give up and ask for the "cheat 
code."
Brock
25-Oct-2005
[2552]
The difference between 'real programmers' , language junkies and 
us newbies.  I fall into your category as well James.