World: r3wp
[Core] Discuss core issues
older newer | first last |
Geomol 2-Apr-2009 [13513] | Eh, most of the developers in the world, it seems? ;-) |
eFishAnt 2-Apr-2009 [13514x2] | Note that the UNC with core works perfect. Better than Windoze console on a Windoze server! Kudo's to Carl for integrating repulsive technology with a beautiful console! Windows cmd does not let you cd to the UNC drive! |
...but I can change-dir to the UNC drive inside REBOL/Core's console. | |
Maxim 2-Apr-2009 [13516] | unc root... wow! |
Izkata 2-Apr-2009 [13517x2] | So, question. I know rebol has difference, intersect, and union - but is there a subtract for sets built in? |
I know "difference a intersect a b" works, just wondering, though.. | |
Maxim 2-Apr-2009 [13519] | >> help exclude USAGE: EXCLUDE set1 set2 /case /skip size DESCRIPTION: Return the first set less the second set. EXCLUDE is a native value. ARGUMENTS: set1 -- First data set (Type: series bitset) set2 -- Second data set (Type: series bitset) REFINEMENTS: /case -- Uses case-sensitive comparison. /skip -- Treat the series as records of fixed size size -- (Type: integer) |
Izkata 2-Apr-2009 [13520] | Thankies, never saw the name before |
Maxim 2-Apr-2009 [13521x2] | :-) rebol stays fresh for YEARS. I've been using it since the betas for first view, and I still discover new things now and then. :-) |
(sorry v1 core betas :-) | |
eFishAnt 2-Apr-2009 [13523x2] | now where did I put my Lava alphas ... ;-) |
I wish I knew the best way to install a Core script as a "service" (service in the Windoze sense so it has a specific login rights, which map up to a UNC share rights) | |
[unknown: 5] 2-Apr-2009 [13525] | http://softinnov.org/rebol/nt-services.shtml |
eFishAnt 2-Apr-2009 [13526] | Ask, and you shall receive. Knock and the door will be opened. Thanks, Paul! |
[unknown: 5] 2-Apr-2009 [13527] | Your welcome - thank Doc for the work on that. |
eFishAnt 2-Apr-2009 [13528] | I was going to thank God, but Doc will do. |
[unknown: 5] 2-Apr-2009 [13529] | Thanks them both! |
Geomol 4-Apr-2009 [13530] | I wrote: " --1:23 should be of type url!, shouldn't it?" Actually, it's not a valid url according to the definition: http://en.wikipedia.org/wiki/URI_scheme The scheme name consists of a letter followed by any combination of letters, digits, and the plus ( +"), period ("."), or hyphen ("-") characters; and is terminated by a colon (":")." So it should probably just be an invalid time. |
Janko 4-Apr-2009 [13531] | in R2.. can the object ( via make object! ) know the name ot itself somehow? |
Gregg 4-Apr-2009 [13532] | Only if you add it as a field yourself. |
Geomol 4-Apr-2009 [13533] | An object can refer to itself with SELF, like: o: make object! [a: 1 b: self/a] (maybe not a very useful example.) |
Janko 4-Apr-2009 [13534x2] | Gregg.. aha, yes that was the option if there is no way.. Geomol .. thanks I wasn't avare of self.. but this probably doesn't enable me to see my name either because name of the object is name of the word is was asigned too .. so even if I do >> probe self << I dont have it ... looks like I really need to add it as a field |
I wanted it for debugging and reporting purposes.. btw so I could get messages and see from which object they come from | |
Anton 4-Apr-2009 [13536x2] | a: b: c: make object! [val: 1] 3 words point to the same object. What should its name be? |
(Hypothetical question, obviously.) | |
Janko 4-Apr-2009 [13538] | yes :) I thought of it too ... I will try to make something like a object factory function so I won't have to repeat myself ... to not do big-dog: make dog-agent [ name: "big-dog" .... ] I will see |
Anton 4-Apr-2009 [13539x2] | I believe that since the extra information can so easily get out of sync with reality, that it will just end up causing problems for you. Better to accept that there is no "reverse lookup" (not a quick one, anyway) of objects to words, and just adjust your debugging method somehow. |
(Of course, it depends what you're doing. If you can be strict with managing the objects, then it could be alright. I'd avoid it, though. Less is more, usually.) | |
Graham 4-Apr-2009 [13541x3] | more timezone issues. Switched clocks back last night as daylight savings ended. now still says we are at +13:00 even though we are now +12:00 ... and my PC clock is correct. |
If I turn off adjust for daylight savings in the vista clock settings, then 'now says we are at +12:00 | |
This is really annoying :( | |
Henrik 4-Apr-2009 [13544] | so Vista has clock problems too? very odd. |
Graham 4-Apr-2009 [13545] | well, if anyone is on Vista, and wants to try, just set your timezone to New Zealand and set to automatic daylight savings adjustment. |
Graham 10-Apr-2009 [13546x4] | Anyone got a script to encode html entities ?s |
this is this | |
encode-html: func [ "Make HTML tags into HTML viewable escapes (for posting code)" text ][ foreach [from to] ["&" "&" "<" "<" ">" ">" {"} """ "'" "'" "€" "€" ] [ replace/all text from to ] ] | |
but I think I have to encode accented characters as well ... | |
Ammon 10-Apr-2009 [13550] | Yeah, you need to be escaping a lot more than just those characters to really do it right. I can't help you with building the table of escapes, but this version should be a lot faster if you're escaping large quantities of text... encode-html: func [ "Make HTML tags into HTML viewable escapes (for posting code)" text ][ parse/all text [ any [ h: #"&" (h: change/part h "&" 1) :h | h: #"<" (h: change/part h "<" 1) :h | h: #">" (h: change/part h ">" 1) :h | h: #""" (h: change/part h """ 1) :h | h: #"'" (h: change/part h "'" 1) :h | h: #"€" (h: change/part h "€" 1) :h | skip ] ] text ] |
PeterWood 10-Apr-2009 [13551] | I have one which converts iso-8859-1 to html and escapes characters where necessary. |
Ammon 10-Apr-2009 [13552] | Are you using Parse in that Peter? |
PeterWood 10-Apr-2009 [13553] | Yes |
Ammon 10-Apr-2009 [13554] | Sweet. Is it available on REBOL.org? |
PeterWood 10-Apr-2009 [13555] | Not yet. It is part of some encoding utilities that I am writing to help resolve the character encoding issues in REBOL.org. I have a number of other conversion functions to wrtie. I will then publish them on REBOL.org |
Ammon 10-Apr-2009 [13556] | Good to know. I'll be watching for them! |
Graham 10-Apr-2009 [13557x2] | me 2 |
Ammon, 'replace is native .. are you sure parse will be faster? | |
Dockimbel 10-Apr-2009 [13559] | Graham: you can find such function in Cheyenne sources in %UniServe/libs/html.r. It supports iso-8859-1 entities. |
Ammon 10-Apr-2009 [13560] | Yes. I've tested it heavily. Well, not this particular implementation but one that's a lot similar. |
Dockimbel 10-Apr-2009 [13561] | 'replace is not native in R2. |
PeterWood 10-Apr-2009 [13562] | Romano once wrote "if you need speed, parse is you friend. Smart fellow Romano, much smarter than me. So I'd never question parse's speed. |
older newer | first last |