
I get the warning with uBlock the 1st time I access it. It improves the layout a bit also.

Just to add, 0.0005 seconds is 500 microseconds. But it's hella fast.idle wrote: Fri Sep 23, 2022 9:29 pm The cached responses take ~0.0005 seconds or around 5 micro seconds the difference is quite noticeable.
yes 500 micro seconds does sound right, the response time is ~half a milli second, it's not really fast at all but since it's on the wire, maybe it's ok. It will be much quicker once it's fully threaded the windows event loop is still a significant jitter in the over all time until I'm satisfied it's fully thread safe.jacdelad wrote: Sat Sep 24, 2022 6:11 amJust to add, 0.0005 seconds is 500 microseconds. But it's hella fast.idle wrote: Fri Sep 23, 2022 9:29 pm The cached responses take ~0.0005 seconds or around 5 micro seconds the difference is quite noticeable.
However, I'm new to this, so please excuse my surely simple question: I use adblockers in my browsers, on my phone and on my router. The one in the router applies to my whole network, sure. The one in the browser only to my browser, clear. The one on my phone my whole phone, also clear.
Can I use DNScope.io to affect my whole network? How do I do this, I can't run it on my router. I know a lot of people talk about things like "run pihole on a Raspi", yeah great, but where do I put it? Between router and modem?
Scopes up is currently x64 windows only and only tested on windows 11. Technically It will work on all 64 bit platforms supported by PB but not until I've backported the x64 asm to plane c, I got as far as porting the asm to suit gcc inline asm but I still need to provide either plain PB or c alternatives to the core structures.jacdelad wrote: Sat Sep 24, 2022 7:03 am My router has a built-in malware and adware protection. Works quite well, but hasn't been updated for 3 years.
I'm currently using 1.1.1.2 and 1.0.0.2, so if I plug a Raspi into my router, run DNScope, give it a static address and change the DNS in the router to <Raspi> and 1.1.1.2 it'll work for my whole network?
Code: Select all
EnableExplicit
InitSprite()
InitKeyboard()
InitMouse()
Global font = LoadFont(#PB_Any,"arial",72,#PB_Font_HighQuality)
Procedure DisplayMessageCenter(window,msg.s,color=255,scale.f=1.00)
Protected spriteNumber,tempImage,fontsTextWidth,fontsTextHeight,cx,cy
tempImage = CreateImage(#PB_Any,1,1) ;if you need to get the size of a font in pixels
If tempImage
If StartDrawing(ImageOutput(tempImage)) ;draw to the temp image
DrawingFont(FontID(font)) ;with the selected font
fontsTextWidth = TextWidth(msg) ;get the width and height in pixles
fontsTextHeight = TextHeight(msg)
StopDrawing()
spriteNumber = CreateSprite(#PB_Any,fontsTextWidth,fontsTextHeight) ;create the sprite of required size
If spriteNumber
If StartDrawing(SpriteOutput(spriteNumber)) ;now you can draw the text to the sprite
DrawingFont(FontID(font))
DrawText(0,0,msg,color)
StopDrawing()
TransparentSpriteColor(spriteNumber,0)
cx= (WindowWidth(window) - (fontsTextWidth*scale)) / 2
cy = (WindowHeight(window)- (fontsTextHeight*scale)) / 2
ZoomSprite(spriteNumber,fontsTextWidth*scale,fontsTextHeight*scale)
DisplayTransparentSprite(spriteNumber,cx,cy)
EndIf
FreeSprite(spriteNumber)
EndIf
EndIf
FreeImage(tempImage)
EndIf
EndProcedure
Global event,ct,sc,bput=-2
OpenWindow(0,0,0,800,600,"Putin de merde clock enter to escape",#PB_Window_ScreenCentered | #PB_Window_SystemMenu)
OpenWindowedScreen(WindowID(0),0,0,800,600)
Repeat
Repeat
event=WindowEvent()
If event=#PB_Event_CloseWindow
End
EndIf
Until event=0
ExamineKeyboard()
ExamineMouse()
If bput > 0
ClearScreen((ct%64)*2)
DisplayMessageCenter(0,FormatDate("%hh:%ii:%ss", Date()-ct),RGB(0,192,0),0.025*sc)
ct+1
Else
ClearScreen(0)
DisplayMessageCenter(0,FormatDate("%hh:%ii:%ss", Date()),RGB(0,192,0))
ct=0
EndIf
sc+1
sc%60
FlipBuffers()
If KeyboardInkey()
bput = 1
EndIf
Until KeyboardPushed(#PB_Key_Escape)
Code: Select all
Carte réseau sans fil Wi-Fi :
Suffixe DNS propre à la connexion. . . :
Description. . . . . . . . . . . . . . : Intel(R) Wi-Fi 6 AX201 160MHz
DHCP activé. . . . . . . . . . . . . . : Oui
Configuration automatique activée. . . : Oui
Adresse IPv4. . . . . . . . . . . . . .: 192.168.1.11(préféré)
Masque de sous-réseau. . . . . . . . . : 255.255.255.0
Bail obtenu. . . . . . . . . . . . . . : vendredi 30 septembre 2022 17:44:08
Bail expirant. . . . . . . . . . . . . : samedi 1 octobre 2022 17:57:40
Passerelle par défaut. . . . . . . . . : 192.168.1.1
Serveur DHCP . . . . . . . . . . . . . : 192.168.1.1
NetBIOS sur Tcpip. . . . . . . . . . . : Activé
Code: Select all
sc config Dnscache start=auto
[SC] OpenService failure(s) 5 :
Access denied.