The forum's search function is useless

General discussion for topics related to the FreeBASIC project or its community.
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

The forum's search function is useless

Post by j8w344c6 »

Search result will only return recent posts which contains only parts of the search phrase. Even if it contains only a word of the search phrase then it could be considered as an candidate? If you break the search phrase into words, isn't the word is so common so the search result will be confused?

Take this as an example:

search.php?keywords=fbc+can%27t+see+header

Any posts, matched any words of the search phrase, for example, "header", are returned. This pretty much make the search function useless.
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: The forum's search function is useless

Post by j8w344c6 »

BTW, google.com returned the correct thread right away:

viewtopic.php?t=29519

What about integrate Google search into this forum? It's called Google CSE as I recall.
jj2007
Posts: 2326
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: The forum's search function is useless

Post by jj2007 »

A known issue. The easiest workaround is indeed to use Google, e.g. as site:freebasic.net opengl
j8w344c6
Posts: 184
Joined: Oct 25, 2021 10:18

Re: The forum's search function is useless

Post by j8w344c6 »

jj2007 wrote:A known issue. The easiest workaround is indeed to use Google, e.g. as site:freebasic.net opengl
Yeah. I already use Google ^^
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: The forum's search function is useless

Post by fxm »

The forum search function ignores any colored text !
dodicat
Posts: 7983
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: The forum's search function is useless

Post by dodicat »

So we have a racist forum, or have I been watching too much football?
deltarho[1859]
Posts: 4310
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: The forum's search function is useless

Post by deltarho[1859] »

Coloured text matters. :)

'colored' is American English. Dear, oh dear fxm.
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: The forum's search function is useless

Post by fxm »

deltarho[1859] wrote: Dec 05, 2022 15:09 'colored' is American English.

I usually use it, like with 'behavior' for example.
deltarho[1859]
Posts: 4310
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: The forum's search function is useless

Post by deltarho[1859] »

fxm wrote:I usually use it, like with 'behavior' for example.
I regard that as an absolute disgrace of being neighbours unless you are an American in France, in which case we would be neighbors. :)

Some PowerBASIC members used to criticize me for using British English. I responded with, “Yorkshire is my first language and British English is my second language.” Funnily, quite a few of them knew where Yorkshire was, which is surprising since most of them don't know where countries are, let alone where counties are within countries. Actually, “most of them” is a little unfair – it is more like a half, as in the half who believe everything Donald Trump says. :) Having said that, Biden's knowledge of countries leaves a lot to be desired.
Linuxbob
Posts: 60
Joined: Sep 01, 2010 1:03
Location: Ohio, USA

Re: The forum's search function is useless

Post by Linuxbob »

Any language that can't make up its mind how "ough' is pronounced is a bit silly anyway.
dodicat
Posts: 7983
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: The forum's search function is useless

Post by dodicat »

An oldie oldie

Code: Select all

 
screen 19,32
data 83,112,101,108,108,32,112,97,105,110,116,44,32,79,75,44,32,101,114,46,46,46,32,119,104,97,116,32,99,111,108,111,117,114,63
dim as string g=string(35,0)
for n as long=0 to 34
    read g[n]
next
dim as any ptr i=imagecreate(800,600,0)
for n as long=0 to len(g)-1
      draw string i,(n*8,300),chr(g[n]),rgb(rnd*255,rnd*255,rnd*255)
      next
put(0,0),i

#define map(a,b,x,c,d) ((d)-(c))*((x)-(a))/((b)-(a))+(c)

Type d2
    As Single mx,my
    As Single mw
End Type

Sub Blow(b As d2,i as any ptr=0)
        static  As Ulong _colour(81,81)
        static as long result
        #macro rotate(pivotx,pivoty,px,py,a,scale)
        var Newx=scale*((px-pivotx))+pivotx
        var Newy=scale*((py-pivoty))+pivoty
        #endmacro
        #macro incircle(cx,cy,r,mx,my,a)
        If a<=1 Then
        result=a*(cx-mx)*a*(cx-mx) +1*(cy-my)*1*(cy-my)<= r*r*a*a
        Else
        result=a*(cx-mx)*a*(cx-mx) +1*(cy-my)*1*(cy-my)<= (r)*(r)
        End If
        #endmacro
       
        If b.mw=0 Then b.mw=1
        b.mw=Abs(b.mw)
        For x As long=b.mx-40 To b.mx+40
            For y As long=b.my-40 To b.my+40
                incircle(b.mx,b.my,40,x,y,1.5)
                If result Then
                    _colour(x-b.mx+40,y-b.my+40)=Point(x,y,i)
                End If
            Next y
        Next x
        
        static As Single dil
        For x As long=b.mx-40 To b.mx+40
            For y As long=b.my-40 To b.my+40
                incircle(b.mx,b.my,40,x,y,1.5) 
                If result Then 
                    rotate(b.mx,b.my,x,y,0,dil)
                    var dist=Sqr((b.mx-newx)*(b.mx-newx)+(b.my-newy)*(b.my-newy))
                    dil=(b.mw+(.5-b.mw)*dist/(40*b.mw))
                    incircle(b.mx,b.my,(20*b.mw),newx,newy,1.5)
                    If result Then
                        Line(NewX-dil/2,NewY-dil/2)-(NewX+dil/2,NewY+dil/2),_colour(x-b.mx+40,y-b.my+40),BF
                    End If
                End If
            Next y
        Next x
    End Sub
    
    sub mapper(i as any ptr)
        dim as single yp
        for x as long=0 to 600
            for y as long=290 to 310
                yp=map(290,310,y,297,303)
                pset(x,yp),point(x,y,i)
            next
            next
        end sub
        
    dim as long mx,my,mw
    dim as d2 b
    windowtitle "Mouse magnifier reader"
    do
        getmouse mx,my,mw
        b=type(mx,my,mw)
        screenlock
        cls
        mapper(i)
        Blow(b,i)
        screenunlock
        sleep 1,1
        loop until len(inkey)
        
imagedestroy(i)
sleep
   
Last edited by dodicat on Dec 06, 2022 13:20, edited 1 time in total.
marcov
Posts: 3462
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: The forum's search function is useless

Post by marcov »

deltarho[1859] wrote: Dec 05, 2022 16:23 where Yorkshire was
It is something you put in pudding or so. :D
deltarho[1859]
Posts: 4310
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: The forum's search function is useless

Post by deltarho[1859] »

marcov wrote:It is something you put in pudding or so. :D
No it is the pudding itself. All they need is a drop of gravy. :)

Usually served with a Sunday roast.

Yorkshire pudding:

Image
marcov
Posts: 3462
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: The forum's search function is useless

Post by marcov »

You don't know how lucky you are. Our most wellknown regional delicacy is used as a biological weapon in Roadrunner and other cartoons:

Image
deltarho[1859]
Posts: 4310
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: The forum's search function is useless

Post by deltarho[1859] »

Yorkshire has a well-known cheese from Wensleydale, at the top end of the Yorkshire Dales National Park.

We are a bit off-topic here marcov - getting nearly as bad as dodicat who reigns supreme. :lol:
Post Reply