 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible wrote:
> 2 hours to figure that out. Fantastic. >_<
I converted the script to JScript. This is much more familiar.
Apparently the conversion isn't too difficult; you've got to replace
"CreateObject" with "new ActiveXObject", and that's about it. The method
syntax is also more regular.
I especially love the way that I get a different answer this way... (The
date is formatted totally differently!)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible wrote:
> Invisible wrote:
>
>> 2 hours to figure that out. Fantastic. >_<
>
> I converted the script to JScript. This is much more familiar.
> Apparently the conversion isn't too difficult; you've got to replace
> "CreateObject" with "new ActiveXObject", and that's about it. The method
> syntax is also more regular.
>
> I especially love the way that I get a different answer this way... (The
> date is formatted totally differently!)
In case you didn't see it, I translated scott's VBScript example:
http://news.povray.org/4bd01976%241%40news.povray.org
into JScript:
http://news.povray.org/4bd20e90%40news.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible wrote:
> Apparently you have to delete the word "set" on line 4. And then it
> works perfectly. WTF?
Yes. "Set" assigns objects. "Let" (or nothing) assigns non-objects. Welcome
to OO BASIC. ;-)
> 2 hours to figure that out. Fantastic. >_<
That wasn't too bad.
> CN=Andrew, OU=Information Technology, OU=Departments, OU=Regular
> Users, OU=UK, OU=Sites, OU=Managed, DC=foo, DC=com
Welcome to X.500. (OR is it X.400?)
> I much prefer referring to my user account by username. It's only 8
> characters. :-P
And you can, until you want to know the *distinguished* name of the user.
That's why they call it that. It's distinguished from all other users.
That list of names at the top will normally walk up the heirarchy of naming
authorities, so it'll be you, at your department, at your company, as seen
in Windows, in the UK, in the World.
> (WHY is this not in the GUI in the first place??)
Don't you start.
--
Darren New, San Diego CA, USA (PST)
Linux: Now bringing the quality and usability of
open source desktop apps to your personal electronics.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible escreveu:
> OK, so I decided to try to use X to actually do something *useful*.
>
> Big mistake.
there, made a template for your posts.
--
a game sig: http://tinyurl.com/d3rxz9
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible escreveu:
> Invisible wrote:
>
>> set trans = CreateObject("NameTranslate")
>> trans.Init 3, ""
>> trans.Set 3, "domain\user"
>> set name = trans.Get(1)
>> WScript.Echo name
>>
>> Only trouble is... it doesn't work.
>
> Oh my god.
>
> Apparently you have to delete the word "set" on line 4. And then it
> works perfectly. WTF?
>
> 2 hours to figure that out. Fantastic. >_<
yeah, nothing like good ol' RTFM instead of trial and error...
--
a game sig: http://tinyurl.com/d3rxz9
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
nemesis wrote:
> Invisible escreveu:
>> OK, so I decided to try to use X to actually do something *useful*.
>>
>> Big mistake.
>
> there, made a template for your posts.
I'm now tempted to feed Invisible's posts to a markov chain algorithm and
see what comes out of it...
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
nemesis wrote:
> yeah, nothing like good ol' RTFM instead of trial and error...
To be fair, this is old tech, so MS doesn't exactly make it easy to find the
documentation when you could be upgrading to VBNET.AWSOME.
--
Darren New, San Diego CA, USA (PST)
Linux: Now bringing the quality and usability of
open source desktop apps to your personal electronics.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nicolas Alvarez escreveu:
> nemesis wrote:
>> Invisible escreveu:
>>> OK, so I decided to try to use X to actually do something *useful*.
>>>
>>> Big mistake.
>> there, made a template for your posts.
>
> I'm now tempted to feed Invisible's posts to a markov chain algorithm and
> see what comes out of it...
I'm sure he already did that in Haskell and we fools keep replying for
his amusement.
--
a game sig: http://tinyurl.com/d3rxz9
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
>>>> OK, so I decided to try to use X to actually do something *useful*.
>>>>
>>>> Big mistake.
>>> there, made a template for your posts.
>>
>> I'm now tempted to feed Invisible's posts to a markov chain algorithm
>> and see what comes out of it...
>
> I'm sure he already did that in Haskell and we fools keep replying for
> his amusement.
You know, I don't make a habit of telling everybody what an idiot *you* are.
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Orchid XP v8 escreveu:
>>>>> OK, so I decided to try to use X to actually do something *useful*.
>>>>>
>>>>> Big mistake.
>>>> there, made a template for your posts.
>>>
>>> I'm now tempted to feed Invisible's posts to a markov chain algorithm
>>> and see what comes out of it...
>>
>> I'm sure he already did that in Haskell and we fools keep replying for
>> his amusement.
>
> You know, I don't make a habit of telling everybody what an idiot *you*
> are.
good, I'll keep them from knowing how little sense of humor you have.
--
a game sig: http://tinyurl.com/d3rxz9
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |