Search found 725 matches

by fweil
Mon Jan 08, 2024 9:30 pm
Forum: Tricks 'n' Tips
Topic: Hiparcos and Tycho starts catalogs display
Replies: 5
Views: 1257

Re: Hiparcos and Tycho starts catalogs display

feel free to play with this code, adapt it, and just let me know the good work !

Don't know where I put it, but some years ago I had a 3D demo with a stars catalog. Hipparcos and Tycho data are not adapted for 3D, but just 2D.

Enhancements are numerous even with 2D. Maybe you will find a way to ...
by fweil
Mon Jan 08, 2024 6:56 pm
Forum: Tricks 'n' Tips
Topic: Hiparcos and Tycho starts catalogs display
Replies: 5
Views: 1257

Re: Hiparcos and Tycho starts catalogs display

Sad to see you cannot get it work fine, but maybe you could check it using debugger and see if something is easier to catch as error condition ?

By the way, if you get catalogs ready in memory, without drawing anything, first, maybe you will understand what's wrong on your deployment. On my PC I ...
by fweil
Sun Dec 31, 2023 5:05 pm
Forum: Tricks 'n' Tips
Topic: Hiparcos and Tycho starts catalogs display
Replies: 5
Views: 1257

Hiparcos and Tycho starts catalogs display

Duno about 2024, but the previous one was not so funny. I hope and wish the best for you all.

Read comments in source code to know more about this post card.


;
; https://www.cosmos.esa.int/
; https://www.cosmos.esa.int/web/hipparcos/links
; http://cdsarc.u-strasbg.fr/viz-bin/Cat?cat=I%2F239 ...
by fweil
Tue Oct 04, 2016 11:12 pm
Forum: Tricks 'n' Tips
Topic: About prime numbers
Replies: 10
Views: 5380

Re: About prime numbers

Code update and some more ...


This link https://drive.google.com/open?id=0BwEUr ... VFZVmo0QmM should give you access to the installation package of the full toolbox and documentation.
by fweil
Mon Sep 26, 2016 3:11 pm
Forum: Tricks 'n' Tips
Topic: About prime numbers
Replies: 10
Views: 5380

Re: About prime numbers

Thank you Starwolf20 for posting also some results.

Keya, I will update the code in this thread in some days, with more comments and explanation. I probably will add some documentation and a package download link.

In a few words, about the algorithm, I start from a sieve of Erathostenes basic code ...
by fweil
Fri Sep 23, 2016 4:55 pm
Forum: Tricks 'n' Tips
Topic: About prime numbers
Replies: 10
Views: 5380

Re: About prime numbers

This case is becoming very serious :)

Will we find some friends here to fall within 0,5 sec ?

Well maybe some of you will accept a part of 1e15 to run. I suggest to interested people to check the test package accessible with G.Drive link above.

Thank you for feedback anyway.
by fweil
Fri Sep 23, 2016 2:47 pm
Forum: Tricks 'n' Tips
Topic: About prime numbers
Replies: 10
Views: 5380

Re: About prime numbers

I run 1E11 faster ... about 200 seconds. Possibly your mainframe was busy on some other tasks at the same time ?

Anyway, it is possible to tune some parameters in this program to adapt it on different hardware. This is one of the points I am investigating indeed.

About the increasing time when ...
by fweil
Fri Sep 23, 2016 2:26 pm
Forum: Tricks 'n' Tips
Topic: About prime numbers
Replies: 10
Views: 5380

Re: About prime numbers

Hey Blueb, I am really happy to know you have such a box to play !

Nice to read you here.

Your time for processing 1E9 is less half mine, my PC is a 2,8GHz 4 cores.

Well if you do not use all your CPU time, I can provide a bunchof the process for 1E15 !

By the way, feedback from others does make ...
by fweil
Fri Sep 23, 2016 10:10 am
Forum: Tricks 'n' Tips
Topic: About prime numbers
Replies: 10
Views: 5380

About prime numbers

Hello all.

Nice to write some words here.

I am working, among other tricks, on a project consisting in editing some statistics about "primes gaps". The gaps between primes does matter to some scientists I know, and they asked me for some help in designing fast process to embed their database.

The ...
by fweil
Sat Dec 16, 2006 5:36 am
Forum: Tricks 'n' Tips
Topic: Edit a banner
Replies: 6
Views: 3042

Updated banner tip

Code updated for 5.20+

Procedure.s Banner(String.s, FontID.l)
ImageNumber = CreateImage(#PB_Any, 100, 100)
StartDrawing(ImageOutput(ImageNumber))
DrawingFont(FontID)
DrawingMode(#PB_2DDrawing_Outlined)
StringWidth = TextWidth(String)
StringHeight = TextHeight(String)
StopDrawing ...
by fweil
Sun Aug 20, 2006 10:09 pm
Forum: Tricks 'n' Tips
Topic: RIPE request for a given IP address
Replies: 1
Views: 1598

RIPE request for a given IP address

Code updated For 5.20+
May you wish to know more about a given IP address, ie when analyzing a log file of your server, you can send a request to the RIPE organization. This can be done using http://www.ripe.net/.

But the RIPE allows, under certain condition of use to request directly to the ...
by fweil
Thu Nov 03, 2005 5:10 pm
Forum: Coding Questions
Topic: how to add the PUBLISHER info in an exe!!??
Replies: 3
Views: 1464

My misunderstanding ... sorry

In this case we have to buy AFAIK a Verisign or like key ?

Nah ... I can't believe this.
by fweil
Thu Nov 03, 2005 9:59 am
Forum: Coding Questions
Topic: SelfE by Dare2 help (pb 2 vb)
Replies: 12
Views: 2816

Just my cent with PB optimized code :


Structure Bytes
b.b[0]
EndStructure

Procedure.s Encod_Decod(String.s, Encode.l)
lString = Len(String)
If lString > 0
lString1 = lString - 1
*p.Bytes = @String
Byte.l = *p\b[0]
XORByte = lString ! Byte
If r <> 0
*p\b[0] = XORByte
EndIf
For i = 1 To ...
by fweil
Thu Nov 03, 2005 8:26 am
Forum: Coding Questions
Topic: how to add the PUBLISHER info in an exe!!??
Replies: 3
Views: 1464

Maybe you could use Compiler / Compiler options / Version info to feed information at compile time ?
by fweil
Tue Oct 18, 2005 1:35 am
Forum: Coding Questions
Topic: Email
Replies: 6
Views: 2230

Josh,

Just you may first use the search link on this forum asking for sendmail.

There lots of posts will help you, especially those from the tricks and tips section.

Rgrds