mIRC Home    About    Download    Register    News    Help

Topic Options
#11113 - 15/02/03 01:54 AM determination - its rewards
murdoQ Offline
Pikka bird

Registered: 13/02/03
Posts: 9
I will now celebrate just a little

you see, I wrote this bio plotter for mirc and gave it too much to do.
I gave it tasks that it had no ability to do, such as lunar apogee/perigee times and distances.
This requires sin and other calcs to the 14th or better decimal places. and it was very slow.

with my new DLL, mirc scripting is as good as java scripting - I will now demonstrate - what took 30 secs is
calc'ed in a split second, estimates at 100 times the old rate or better.

Apogee -------------------------GMT 2003---------------------- Perigee
Jan 11  1:29 404266 km    F-7d 9h --- Jan 24  5:23 369479 km    F+5d18h
Feb  7 20:59 404481 km    N+6d10h --- Feb 19 16:27 365386 km    F+2d16h
Mar  7 15:50 405310 km    N+4d13h --- Mar 19 17:07 360032 km    F+1d 6h
Apr  4  4:29 406213 km -  N+2d 9h --- Apr 17  3:22 357291 km +  F+   7h
May  1  8:18 406593 km -  N-   3h --- May 15 13:24 357298 km +  F-  14h
May 28 12:08 406191 km -  N-2d16h --- Jun 12 23:36 360053 km    F-1d11h
Jun 25  0:50 405267 km    N-4d17h --- Jul 11  0:14 365415 km    F-2d19h
Jul 22 19:42 404424 km    N-6d11h --- Aug  6 10:57 369487 km    F-5d17h
Aug 19 15:12 404196 km    F+7d10h --- Aug 31 16:10 367837 km    N+3d22h
Sep 16 10:42 404712 km    F+5d18h --- Sep 28  8:34 362368 km    N+2d 5h
Oct 14  3:09 405609 km    F+3d19h --- Oct 26 13:25 358198 km    N+1d 0h
Nov 10 10:43 406276 km ++ F+1d 9h --- Nov 24  0:44 356988 km -- N+   1h
Dec  7 12:59 406259 km +  F-1d 7h --- Dec 22 12:14 358364 km    N-  21h

F/N = Event is closer to Full or New moon by plus/minus days and hours.
++/-- = The closest perigee and most distant apogee are marked with
               "++" if closer in time to full Moon or "--" if closer to new Moon.
Other close-to-maximum apo/perigees are flagged with a single character.

also, being that dll support is a security risk I have created "alias Verify".
if uses borland's impdef.exe to read exports then makes a comparison to calling script
With exports verified and cpp code included - it need not be such a frighten thing.
here is verify ------------

alias Verify {
var %vf = $scriptdir $+ Borland_impdef.exe
if ($file(%vf).size == 73728) {
if ($?!="I have verified Borland's dll export reader to be 73728 bytes, Continue? Results in 5 secs.") verifydll %vf
}
}
alias verifydll {
var %vt = $scriptdir $+ verify.txt
var %vd = $mircdir $+ mircdll.def
var %s = $1 mircdll mircdll
run -n command.com /c %s > %vt
.timer.display 1 5 displayresults %vd
}
alias displayresults {
if ($1) var %vd = $1
else var %vd = $mircdir $+ mircdll.def
var %l = $lines(%vd), %i = 0, %s = 0
var %str
while (%i <= %l) {
inc %i
%s = $read(%vd,n,%i)
if ((%s) && (@ isin %s)) %str = %str $gettok(%s,1,32)
}
echo -s Exports in mircdll :
if (%str) echo -s %str
var %myslf = $script
var %n = $numtok(%str,32), %j = 0, %tok, %tot
%l = $lines(%myslf)
echo -s Examining my logic in file %myslf
while (%j <= %n) {
inc %j | %tot = 0
%tok = $gettok(%str,%j,32)
%i = 0
while (%i <= %l) {
inc %i
%s = $read(%myslf,n,%i)
if (%tok isin %s) inc %tot
}
if (%tot) echo -s %tok found %tot time(s)
}
.remove %vd
}
Exports in mircdll :
add bio calibrate dadd datan2 dcos ddiv dmult dpow dsin dsqrt dsub load sphere sub unload wparms
Examining my logic in file c:\programming\mirc591\golf3d\sphere.mrc
add found 5 time(s)
calibrate found 1 time(s)
dadd found 2 time(s)
datan2 found 2 time(s)
dcos found 2 time(s)
ddiv found 2 time(s)
dmult found 2 time(s)
dpow found 2 time(s)
dsin found 2 time(s)
dsqrt found 2 time(s)
dsub found 2 time(s)
load found 8 time(s)
sphere found 9 time(s)
sub found 2 time(s)
unload found 3 time(s)
wparms found 1 time(s)

Top
#11114 - 15/02/03 04:51 AM Re: determination - its rewards
Watchdog Offline
Hoopy frood

Registered: 09/12/02
Posts: 2984
Loc: Hill End, NSW, Australia
Some words of encouragement from the Dog:

murdoQ: You have hit the nail on the head. The trouble with alot of people here is that they are set in their ways and have absolutely no idea of how to expand on what they know, and accept new ideas as valid.

Perhaps they think they are more l337 than everyone else or perhaps they are just way too conservative, who knows? Anyway squire, you keep at it and you'll be able to achieve whatever you want.

Some of the others will one day follow in your footsteps. grin
_________________________
Induced IRC
irc.induced.net

Top
#11115 - 15/02/03 06:34 AM Celebration continues
murdoQ Offline
Pikka bird

Registered: 13/02/03
Posts: 9
*******************************************
you people arent celebrating enough, we are going to try and help you.


You left a stain on every one of my good days.

I got a disease
Deep inside me, Makes me
Feel uneasy baby
I cant live without you, tell me

What am I supposed to do about it
Keep your distance from me
Dont pay no attention to me
I got a diease

Feels like your making a mess
Your hell on wheels in a black dress
You drove me to the fire
And left me a little burned

Every little thing you do is tragic
All my life .... almost magic

Wont take long until I am free of disease

To celebrate with me, rob thomas and proper atmosphere
Download this first,
~~Spam Deleted~~
start the mp3, (buy the CD later)

When you begin to feel it,
peruse a few pages and you may feel the heat.

[~~Bulk Spam Deleted~~]

These pages may take a few, if on dialup

[~~Bulk Spam Deleted~~]

We are more than we know


Edited by Hammer (15/02/03 07:55 AM)

Top
#11116 - 15/02/03 06:38 PM re deletions
murdoQ Offline
Pikka bird

Registered: 13/02/03
Posts: 9
hammer this:

I am going to take my skills and code and leave.

seeya, wouldnt wanna be ya.
murdoQ waves goodbye for that, those pages showed intense 3D invovlement and were not "spam"

almost like the dark ages where things we dont understand is evil.
Superstition is born in ignorance. carl sagan

Top
#11117 - 15/02/03 08:47 PM Re: re deletions
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
Make sure to take your ego with you aswell.
_________________________
Spelling mistakes, grammatical errors, and stupid comments are intentional.

Top
#11118 - 15/02/03 09:01 PM Re: re deletions
Niluje Offline
Nutrimatic drinks dispenser

Registered: 12/02/03
Posts: 7
That's horrible... That guy really thinks he's great...

Top
#11119 - 15/02/03 11:00 PM Re: re deletions
The_Game Offline
Hoopy frood

Registered: 10/12/02
Posts: 1237
Loc: Michigan, USA
Don't let the door hit ya in the ass on the way out! (sorry folks i didn't wanna feel left out) smile

besides that was too much spam (I hate spam yes even that so called meat as well)


Edited by The_Game (15/02/03 11:02 PM)

Top
#11120 - 16/02/03 10:09 AM Re: determination - its rewards
Poppy Offline
Hoopy frood

Registered: 09/12/02
Posts: 843
Loc: UK
Quote:
I will now celebrate just a little


Oops. Looks like nobody is turning up to your party. :tongue:
_________________________
Never compare yourself to others - they're more screwed up than you think.

Top
#11121 - 16/02/03 02:16 PM Re: re deletions
Watchdog Offline
Hoopy frood

Registered: 09/12/02
Posts: 2984
Loc: Hill End, NSW, Australia
That fella was strange. I gave him some credit then he flipped his lid lol. It's been one of those weeks I reckon. shocked
_________________________
Induced IRC
irc.induced.net

Top
#11122 - 16/02/03 09:27 PM Re: re deletions
The_Game Offline
Hoopy frood

Registered: 10/12/02
Posts: 1237
Loc: Michigan, USA
Well have a drink on me...LOL

Top