Search found 5722 matches

by dodicat
Jun 16, 2019 11:58
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 38
Views: 880

Re: FBC's Cairo clock example error

I tried to install cairo on scientific linux (Red hat). I did su - to root in the terminal, typed yum install cairo. I got about 8 MB in total of downloaded files, then at the last bit the terminal said: cairo latest version already installed, nothing to do. Needless to say cairo doesn't work. (32 b...
by dodicat
Jun 16, 2019 9:26
Forum: General
Topic: Squares
Replies: 6589
Views: 373161

Re: Squares

After watching last night's film (San Andreas), I have decided I don't want to create an earthquake. (In case Hollywood decides to make a movie about it). The general drift of your proposal does not conflict with physics, because that is what physics is all about, trying to rationalise natural event...
by dodicat
Jun 15, 2019 18:55
Forum: General
Topic: Squares
Replies: 6589
Views: 373161

Re: Squares

The movie San Andreas is on at this very minute (channel 5).
I'll watch it to get some ideas.
by dodicat
Jun 15, 2019 16:05
Forum: General
Topic: Squares
Replies: 6589
Views: 373161

Re: Squares

If you place an equal bowl of water at either end of a balance (seesaw), and you push your finger into one bowl it will go down. It feels as though you are pushing the water down. But actually the water level rises as you push in a finger, then the pressure at the bottom of the cup increases (pressu...
by dodicat
Jun 15, 2019 12:06
Forum: General
Topic: Squares
Replies: 6589
Views: 373161

Re: Squares

It is an odd function in as much as f1(-x) =-f1(x)
At it's heart is a square.
by dodicat
Jun 15, 2019 11:50
Forum: General
Topic: Squares
Replies: 6589
Views: 373161

Re: Squares

You have to be a bit thick to be in squares anyway. Jeepers creepers. Dim Shared As Integer _w,_h Type V3 As Single x,y,z End Type Type screendata As Integer w,h,depth,bpp,pitch As Any Pointer row As Ulong Pointer pixel32 End Type Type Wrm As Single x,y Dim As Single dx,dy Dim As Long kx,ky Declare ...
by dodicat
Jun 14, 2019 8:59
Forum: General
Topic: Squares
Replies: 6589
Views: 373161

Re: Squares

@Albert. You do not seem to be thinking clearly. Have you changed or reviewed your medication lately? @dodicat. Sandy Kidd, as a Scottish inventor, would be more successful if he carried out his experiments on the shores of Loch Ness. Such a fabulous device must be seen to be believed; Alas, it has...
by dodicat
Jun 13, 2019 22:41
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 38
Views: 880

Re: FBC's Cairo clock example error

I have changed my mind about cairo.
With only one dll (~2 mb) from srvaldez to do all the work, it is a nice tool for windows.
The next time I fire up my Linux box I'll try to get cairo from the repository (via yum).
Thank you everybody.
by dodicat
Jun 13, 2019 22:09
Forum: General
Topic: Squares
Replies: 6589
Views: 373161

Re: Squares

I guess you are correct jj2007.
I was looking at
https://en.wikipedia.org/wiki/Hardnesses_of_the_elements_(data_page)
by dodicat
Jun 13, 2019 21:48
Forum: General
Topic: Squares
Replies: 6589
Views: 373161

Re: Squares

I was going to say that the Moh's hardness scale only applies to solids, but I see mercury documented as hardness 1.5.
The other liquid element at room temperature is bromine, but it is not listed.
by dodicat
Jun 13, 2019 20:39
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 38
Views: 880

Re: FBC's Cairo clock example error

Plain no frills cairo clock. #include once "cairo/cairo.bi" Dim Shared As cairo_font_extents_t _fonts ' Dim Shared As cairo_text_extents_t _text Const pi=4*Atn(1) Sub InitFonts(surf As cairo_t Ptr,fonttype As String="times new roman") If Len(fonttype) Then cairo_select_font_face ...
by dodicat
Jun 13, 2019 10:04
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 38
Views: 880

Re: FBC's Cairo clock example error

With the 32 bit dll in Win 10 I put a copy of srvaldez's cairo.dll into windows/sysWOW64 I made an import lib from the original cairo.dll (With the help of minGW) gendef cairo.dll ---- to get cairo.def dlltool -d cairo.def -l libcairo.dll.a ----to get libcairo.dll.a I put libcairo.dll.a into the fre...
by dodicat
Jun 12, 2019 10:23
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 38
Views: 880

Re: FBC's Cairo clock example error

srvaldez.
Amazing, one dll for Cairo.
Tested my own clock and badidea's clock, both work perfectly (tested 64 bits)
Now it is simple for anybody on the forum to use cairo (windows anyway).
Just pop that dll beside your source code.
by dodicat
Jun 12, 2019 9:27
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 38
Views: 880

Re: FBC's Cairo clock example error

jj2007.
Strange, I have tried 32 bit and 64 bit fb 1.06. -gen gas and -gen gcc with and without optimisation flags.
Also an old 32 bit fb 24.
All seem OK.
Maybe you could try with that that little quick runner I posted the other week, which is more or less command line level.
by dodicat
Jun 12, 2019 1:38
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 38
Views: 880

Re: FBC's Cairo clock example error

Try to keep the pendulum in period with the seconds. #include "vbcompat.bi" #include once "cairo.bi" Type d2 As Single x,y End Type Operator + (v1 As d2,v2 As d2) As d2 Return Type<d2>(v1.x+v2.x,v1.y+v2.y) End Operator Operator -(v1 As d2,v2 As d2) As d2 Return Type<d2>(v1.x-v2.x...

Go to advanced search