Search found 52 matches

by Clutch
Wed May 02, 2007 6:03 pm
Forum: Coding Questions
Topic: DATE issues (solved) but BUG uncovered!
Replies: 13
Views: 3016

PB's debugger and variable viewer get the credit on this one. I looked at and ran that snip four or five times throughout the day and didn't see the bug until I set a breakpoint and did some steppin'. Self-explanatory variable names are your friend. :)
by Clutch
Mon Apr 30, 2007 10:53 pm
Forum: Coding Questions
Topic: DATE issues (solved) but BUG uncovered!
Replies: 13
Views: 3016

The problem is that the variable 'd' is first used to store the value of the selected date, then it is used almost immediately after to store the day value of that date. The subsequent calls to get values for 'h', 'i', and 's' are then going to be incorrect. See the following:

OpenWindow(0,0,0,200 ...
by Clutch
Fri Apr 27, 2007 5:52 pm
Forum: Tricks 'n' Tips
Topic: [OOP] Interface IEMAIL for sending mails.
Replies: 5
Views: 3311

Thank you for this contribution. It has worked well so far in my tests, and I intend to incorporate this into our office's appserver as my notifications mailer. Very nice work!
by Clutch
Tue Apr 24, 2007 10:41 pm
Forum: Coding Questions
Topic: How to reference a String as both a string and an array
Replies: 5
Views: 1169

I'm not sure what memory leaks there may be in doing this, but running this code does what you indicate:

Code: Select all

string.s="Sample string" 
dim array.s{1}(0) 
array()=@string
debug array(5) ;displays an  "e" 
for i.l=8 To 3 Step -1  ;displays "ts elp" 
  debug array(i)
next i
by Clutch
Fri Apr 13, 2007 7:22 pm
Forum: Windows
Topic: Opening Windows explorer and closing it after a few seconds?
Replies: 8
Views: 4250

Will 'NET USE' work better than opening/closing explorer.exe?

Procedure netUse(dvc$, unc$)
RunProgram("cmd.exe", "/c net use " + dvc$ + " /delete", "")
Delay(250)
RunProgram("cmd.exe", "/c net use " + dvc$ + " " + unc$ + " /persistent:yes", "")
Delay(250)
EndProcedure

netUse("K ...
by Clutch
Wed Apr 11, 2007 8:18 pm
Forum: Coding Questions
Topic: PB NO
Replies: 24
Views: 4311

Codefire,
'Long' and 'Quad' are structures. Defining 'myVariable.Long' is not the same as 'myVariable.l'. What you can't do is 'SizeOf(.l)' and the like (although you can get the SizeOf() the variables themselves if the base type is not included, i.e. 'Debug SizeOf(myVariable)' ). ;)

;Base type ...
by Clutch
Wed Apr 11, 2007 7:57 pm
Forum: Coding Questions
Topic: Division problems
Replies: 3
Views: 1239

There are two changes you need to make in order to get this to work. One involves the fact that the value for 'x' is not evenly divisible by 60, and any remainder is being ignored. Change 'y' from a quad to a double, and the calculation will be correct. The second part has to see with using Str() on ...
by Clutch
Mon Apr 09, 2007 9:59 pm
Forum: Tricks 'n' Tips
Topic: Ruler Gadget - Beta 1 sourcecode library
Replies: 56
Views: 26324

:shock: Very nice! Awesome job, net'.
by Clutch
Mon Apr 02, 2007 4:51 pm
Forum: Windows
Topic: Changing mouse sensitivity on the fly.
Replies: 11
Views: 5355

...
Microsoft's docs say that the third parameter has to be a pointer so I put the @ sign in there.

...
Notice that you need the @ when getting the parameters, but don't need it when you are setting them.... weird....

It's specified that way in the documentation:

...
The pvParam parameter must ...
by Clutch
Mon Mar 26, 2007 3:45 pm
Forum: Coding Questions
Topic: Google PR checksum
Replies: 14
Views: 4502

You're welcome! :)
by Clutch
Thu Mar 22, 2007 6:27 pm
Forum: Coding Questions
Topic: Google PR checksum
Replies: 14
Views: 4502

Thanks! :)
by Clutch
Thu Mar 22, 2007 6:16 pm
Forum: Coding Questions
Topic: Google PR checksum
Replies: 14
Views: 4502

@thefool

:lol:
Pantcho is a scammer by his own admission. I'm just echoing his sentiment:
Pantcho!! wrote:...

Code: Select all

var GPR_HASH_SEED = “Mining PageRank is AGAINST GOOGLE’S TERMS OF SERVICE. Yes, I’m talking to you, scammer.”;
@dige

You're welcome. :)
by Clutch
Thu Mar 22, 2007 4:45 pm
Forum: Coding Questions
Topic: Google PR checksum
Replies: 14
Views: 4502

I had only done the testing by typing the address into the browser, but I suppose this would do it:

Macro Hex8(expr)
RSet(Hex(expr), 2, "0")
EndMacro

Macro Hex32(expr)
Hex8((expr) >> 24 & $FF) + Hex8((expr) >> 16 & $FF) + Hex8((expr) >> 8 & $FF) + Hex8((expr) & $FF)
EndMacro

Procedure.s ...
by Clutch
Thu Mar 22, 2007 4:02 pm
Forum: Coding Questions
Topic: Google PR checksum
Replies: 14
Views: 4502

@dige
I can't say I know that much about the process of getting Google's PageRank. The result of 8FDF03E58 was taken from a comment posted in the link provided by Pantcho above:

Comment by cadet354
2006-10-19 06:58:41
You script don’t work with long url.
For example:
http://office.microsoft.com ...
by Clutch
Wed Mar 21, 2007 4:43 pm
Forum: Coding Questions
Topic: Google PR checksum
Replies: 14
Views: 4502

Here is a rough approximation of the Javascript version. I don't have a means of verifying the correct checksum, though a posted comment in the link you gave provided what is supposedly a correct one (8FDF03E58) given the URL 'http://office.microsoft.com/en-us/default.aspx', and this code matches ...