StackOverflow.com

VN:F [1.9.22_1171]
Rating: 8.5/10 (13 votes cast)

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

Eglot-jl fails to index my imported julia packages

10 March 2026 @ 6:51 pm

Julia 1.12 with my .emacs config, where I placed in my .../lsp-isolated my LanguageServer.jj and SymbolServer.jl : (use-package eglot-jl :after julia-mode :config (eglot-jl-init) (setq eglot-jl-language-server-project "~/.julia/environments/lsp-isolated") ) (add-hook 'julia-mode-hook 'eglot-ensure) (setq eglot-connect-timeout 1200) However, I got no luck in making recongize my packages, and eglot says this: [jsonrpc] e[19:46:51.136] <-- $/progress {"method":"$/progress","params":{"token":"83b1829c-5d1d-4644-b5fc-afc5af7a5300","value":{"kind":"report","message":"Processing Graphs... (33%)"}},"jsonrpc":"2.0"} [stderr] [ Info: Processing Graphs... (33%) [stderr] nil [stderr] nil [stderr] nil [stderr] ERROR: LoadError: UndefVarError: `Graphs` not defined

How to store Google Cloud Run config in version control: Terraform or Kubernetes?

10 March 2026 @ 6:43 pm

At work we use Google Cloud Run (a wrapper around Knative). All our infrastructure is provisioned via Terraform. We provision a Cloud Run service via Terraform in the following way: resource "google_cloud_run_v2_service" "my_service" { name = "my-service" lifecycle { ignore_changes = all } template { containers { image = "gcr.io/cloudrun/hello" } } } ... and we deploy a new Cloud Run revision in our CI/CD pipelines via the gcloud CLI: gcloud run deploy $SERVICE \ --image=$IMAGE:$TAG \ --cpu=$CPU_UNITS \ --memory=$MEMORY \ ... The environment variables you see above are taken from JSON files. Each service has its own JSON files that specify image name, image tag, CPU, memory, and

Issue with powerbi card visual and not showing the full number once in the thousands [closed]

10 March 2026 @ 6:38 pm

I am using powerbi and the card visual and I wanted to know why it no longer has the option to remove the thousand k character and show the full number any more. I have tried to adjust the data format to whole number and it still doesn't work. Is there a different way to make it show the full number. enter image description here

The request was aborted because there was no available instance -- Code 429

10 March 2026 @ 6:25 pm

I have a Firebase Function v2 running with Node.js 24 using the following global configuration: setGlobalOptions({ memory: "512MiB", timeoutSeconds: 540, maxInstances: 20, }); Today (March 10, 2026) in the morning the service suddenly started responding with HTTP 429 (Too Many Requests). The traffic to this service is very low. The application has a closed group of about 20 users, and normally there are only a few requests per minute. To rule out scaling issues, I updated the configuration to keep one instance always running and increased the maximum instances: setGlobalOptions({ memory: "512MiB", timeoutSeconds: 540, minInstances: 1, maxInstances: 100, }); However, the 429 errors are still occurring. From the logs I can see the incoming reque

How to cryptographically prove a file existed at a specific time?

10 March 2026 @ 6:24 pm

I need to prove that a specific file (e.g. a PDF contract or build artifact) existed at a certain point in time, in a way that is independently verifiable after anchoring, without requiring the verifier to trust the issuing platform. Requirements: The proof must be tied to the file's content, not metadata It must survive the issuing platform (no vendor lock-in) A third party must be able to verify it without an account I can compute a SHA-256 hash in Python: import hashlib with open("contract.pdf", "rb") as f: sha256 = hashlib.sha256(f.read()).hexdigest() print(sha256) But a hash alone doesn't prove when it was created. Filesystem timestamps are editable. Platform timestamps are internal. What is the standard cryptographic approach to anchor a file hash to a publicly verifiable, immutable timeline?

How to combine an Image Button, Action and Navigation Link together?

10 March 2026 @ 6:08 pm

I am trying to understand how to make a button execute an action and navigate to a new UI, like so (the code below is inside a simple Struct): Button(action: { print("I am new to SwiftUI!") buttonFunction() }) { NavigationLink { NewUI() } label: { Image(buttonImage) .resizable() .frame(maxWidth:50, maxHeight:50) } With the above, I get the navigation to the NewUI to execute, but the button's action does not. The print statement never prints. In then tried to inverse it like so: NavigationLink { NewUI() } label: { Button(action: { print("Oh no, this only prints!") buttonFunction() }) { Image(buttonImage) .resizable() .frame(maxWidth:50, maxHeight:50) } But this time it only prints the statement (b

Setting up posts alphabetically within a tag

10 March 2026 @ 5:41 pm

I would like to be able to set my website so that all posts are sorted in alphabetical order. However, I also have these posts separated by tags, so basically if you click a tag it will only show you the posts containing that tag. Is there a way to do this globally without having to set extra steps to filter per tag? This is my current setup for this (which has all posts show up on every tag category, but does have them sorted alphabetically): eleventyConfig.addCollection("postsAscending", (collection) => collection.getFilteredByGlob("gallery/*.md", "blog/*.md").sort((a, b) => { if (a.data.title > b.data.title) return -1; else if (a.data.title < b.data.title) return 1; else return 0; }) ); And some important info you might need to help with the problem: As shown above, I'm using 11ty. I am also using Liquid to set up templa

Google ads api issue [closed]

10 March 2026 @ 5:21 pm

I have a conversion action which is not getting uploaded to the google ads account and the following error shows? The conversion for this conversion action and conversion identifier can't be found. Make sure your conversion identifiers are associated with the correct conversion action and try again how can I verify this or solve this knowing the customer account number where I am uploading the conversion is correct. Also how can I verify the following ? The adjustment fails with a CONVERSION_NOT_FOUND error if the conversion was never uploaded, or was uploaded, but discarded due to being deemed invalid or spam. A conversion corresponding to the order_id was not found. Verify the conversion is a Google Ads conversion for t

Why the title doesn't follow the navigation inline state in iOS 26

10 March 2026 @ 5:21 pm

I'm working on iOS 26 support, and the navigation titles aren't appearing on screens that were aligned with the safeArea Top. Is there a way to make the titles appear when the screen is large and inline? Example code is below. self.view.backgroundColor = .white navigationItem.title = "AVC" navigationItem.largeTitleDisplayMode = .always guard let navBar = navigationController?.navigationBar else { return } navBar.prefersLargeTitles = true navigationItem.largeTitleDisplayMode = .always navigationItem.title = "AVC" navigationItem.largeTitle = "AVC" let standard = UINavigationBarAppearance() standard.configureWithDefaultBackground() standard.backgroundColor = .clear standard.titleTextAttributes = [.foregroundColor: UIColor.black] standard.largeTitleTextAttributes = [.foregroundColor: UIColor.black] navBar.standardAppearance = standard let largeAppearance = UINavigationBarAppearance() largeAppearance.configureWithDefaultBackgrou

How I can perform spellcheck in a TkInter Entry:

10 March 2026 @ 4:58 pm

I made this type of input: class PasteableEntry(tk.Entry): def __init__(self, master=None,initial_value:str="", **kwargs): super().__init__(master, **kwargs) self.initial_value = initial_value self.insert(tk.END, self.initial_value) # Clipboard bindings self.bind("<Control-c>", self.copy) self.bind("<Control-x>", self.cut) self.bind("<Control-v>", self.paste) # Undo binding self.bind("<Control-z>", self.reset_value) # Border self.configure(highlightthickness=2, highlightbackground="gray", highlightcolor="blue") # --- Clipboard overrides --- def copy(self, event=None): try: selection = self.selection_get() self.clipboard_clear() self.clipboard_append(selection) except tk.TclError: pass return "brea