StackOverflow.com

VN:F [1.9.22_1171]
Rating: 9.2/10 (11 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

ConcreteCMS Error: A potentially dangerous Request.Path value was detected from the client (:),

7 November 2025 @ 11:43 pm

I am running Version 9.4.6 of ConcreteCMS and the PHP Version is 7.4. Each time I want to edit the website, or add a page, this error comes: Server Error in '/' Application. A potentially dangerous Request.Path value was detected from the client (:). Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: A potentially dangerous Request.Path value was detected from the client (:). Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).] System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +9923

What happened to the Z Score Probability Indicator?

7 November 2025 @ 11:31 pm

What happened to the Z Score Probability Indicator? I can't seem to locate it and it has disappeared from my favorites list and the search box.

Omit properties from Intersection and Union types [duplicate]

7 November 2025 @ 11:25 pm

Playground I have the following snippet: type Tab = { id: string; } & ( | { type: "interactive"; enabled: boolean; } | { type: "static"; } ); type TabWithoutId = Omit<Tab, "id">; const omitted: TabWithoutId = { type: "interactive", enabled: false, // <--- 'enabled' does not exist in type 'TabWithoutId' };

col function error type mismatch: found string required Int

7 November 2025 @ 11:06 pm

I am attempting to programmatically remove specific columns/fields from a dataframe (anything that starts with _), whether the field is in the root or in a struct, using the dropFields method. For example, if I had "foo._baz", the syntax would be: df.withColumn("foo",col("foo").dropFields("_baz")) Hard coded this works fine. When I try to do this in a loop, generating the strings "foo" and "_baz", I get a type mismatch. I've got a function that parses the columns to find any starting with _, that's working fine. Here's the (hopefully) relevant bit of my code: var (baseCol, dropCol) = getColumnNodes(col) df2 = df2.withColumn(baseCol,col(baseCol).dropFields(dropCol) That results in: error: type mismatch; found : String required: Int df2 = df2.withColumn(baseCol,col(baseCol).dropFields(dropCol))

UPDATE with LEFT JOIN and condition IS NULL

7 November 2025 @ 10:39 pm

I have the following example table definitions: Table "public.messages" Column Type Collation Nullable Default ip text msg text ignore boolean Table "public.host" Column Type Collation Nullable Default ip text name text Yes, I could set Type as IP for the ip, but for this example it doesn't matter. I run this query: S

Ipq50xx-ipq508 U-boot

7 November 2025 @ 9:43 pm

I have a router base of ipq508 I got serial connected to modem when i interrupt u boot In bootcmd:bootipq I researched and got its a function that hande changing u boot and run modem but when i like to write a partition in mtd partition Three is 21 mtd partition i backuped all but my problem is even if u write nand the own stock MTD like 15 that is rootf contain 5 ubi the modem on first start will come online and its ok after even one restart the modem will fail to start and give me some uart error about squashfs error any here got any experience with this kinda u-boot?

How to remove default background modifier for the items inside the toolbars in SwiftUI?

7 November 2025 @ 5:47 pm

I am trying to create a unified toolbare for my macos app using SwiftUI. In the apps main thread I used this modifier :- import SwiftUI import AppKit @main struct PhiaApp: App { var body: some Scene { DocumentGroup(newDocument: PhiaProjectDocument()) { file in ContentView(document: file.$document, rootURL: file.fileURL) .background(Color.black) // This now applies to the whole window } .windowStyle(.hiddenTitleBar) .windowToolbarStyle(.unified) } } and here is the design for the ContentView :- import SwiftUI struct ContentView: View { var body: some View { VStack { Text("Main Application Content Goes Here") .foregroundColor(.white) .frame(maxWidth: .infinity, maxHeight: .infinity) } .toolbar {

Robot for Websites

7 November 2025 @ 5:14 pm

Hi I need to create a robot that opens a website, does the sign procedure, then open another form and fill the data before sending the data to a post command by clicking on a button. What is the best tool for this kind of operation, I tried playwright, selenium and puppetter but they all seem to be unreliable. Any ideas?

StoreKit Configuration Simulated Failure Options All Disabled

7 November 2025 @ 5:00 pm

I have a question concerning Xcode version 26. Ever since I installed this version on my Mac I have been having trouble using the storeKit configuration file. The Storefront and Localization is ok, as well as the Purchase Option features. The Simulated StoreKit Failures check boxes and selections are all grayed out. Once in a while I see a pop-up stating "The document "TaConfig.storekit" could not be autosaved. The file has been changed by another application. The pop-up Save as... points to where my config file is located but the config file is grayed out. I thought maybe the directory where the file is located is write protected, but I have been able to save other files to the same directory. The Edit Scheme... -> Run -> Options has the StoreKit Configuration set for my file TaConfig.storekit.

MacOS Bus Error and app crash when using PyQt6

7 November 2025 @ 2:55 pm

I've been hobby writing a little budget tool for myself over the last few months, and have finally gotten some ok functionality. Decided to polish it a bit and make it act more like a GUI app. Running Python 3.13.7, and PyQt6 6.6.0. It was going fine until I tried to give some menuBar functionality. The menubar finally shows my app's name, and has the options I was trying to set, but when I actually try to interact with the bar, I get an app crash and this output: zsh: bus error python3 I did some searching and made sure that all packages are the ARM64 variety, but cannot figure out what else could be causing this. Any ideas? Code for launching the app window is pasted below. main.py if __name__ == '__main__': if platform.system() == "Darwin": # Make sure to allow native menu bar BEFORE QApplication is created QApplication.set