HAProxy – How to suppress HTTP/1.1 503 from being sent to the client when in maintenance mode

I’m having problems trying to suppress HTTP/1.1 503 from being sent upstream from HAProxy. In my environment clients first hit an ELB (classic) instance before traffic is sent on to HAProxy. When we place the backend server/service in maintenance mode by updating the status (MAINT) of the server in the HAProxy backend, HAProxy sends HTTP/1.1…

change the cell color of a StringGrid when entering data in the cell. Delphi

Good evening, I would like to know how to change the color of a cell when writing data in it I have this… procedure TFrmReportes.SGDrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState); begin if (gdSelected in State) then begin SG.Canvas.Brush.Color := rgb(255,119,119); SG.Canvas.FillRect(SG.CellRect(ACol, ARow)); SG.Canvas.TextOut(Rect.Left+2,Rect.Top+2, SG.Cells[ACol, ARow]); end; end; but when entering data in…

Using Swift 5.1 Property Wrapper seems to break SwiftUI updates. Known issue?

Here’s a head-scratcher: implementing a simple wrapper on an ObservableObject property negates SwiftUI updates. The purpose of the property wrapper is to provide a getter / setter to UserDefaults. The property wrapper works fine. But it stifles SwiftUI updates. Things I’ve tried: -Adding @Published wrapper in addition to my custom wrapper. But Swift at the…

Messed up my bash_profile and bashrc files – reset to default?

I think I messed up my .bash_profile and .bashrc file. Is there any way I can reset them to default? When I want to access them through the terminal I get: Permission denied. If I open them using sublime text, my .bashrc is completely empty and my .bash_profile contains the following code: PATH=”/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}” export PATH=/usr/local/bin:$PATH…