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.

Localhost applications failing after installing 2025-10 Cumulative Update for Windows 11 Version 24H2 for x64-based Systems (KB5066835) (26100.6899)""

15 October 2025 @ 5:38 am

I just installed the 2025-10 cumulative update for Windows 11 on my laptop and am now getting errors on trying to run applications on localhost. Does anybody else have the same problem and is there a way to fix this? I have one ASP.NET 4.6.2 application that I run as a site on my local IIS installation, via the hosts file, resolving the "app-name" there to 127.0.0.1. When I try to run it as http://, I get a "Site cannot be reached error" because of an "ERR_CONNECTION_RESET" error. I also use Visual Studio in building .NET (.NET 8) web applications and trying to run (debug) these using IIS Express also now fails, with an "ERR_HTTP2_PROTOCOL_ERROR". And all this after I "2025-10 Cumulative Update for Windows 11 Version 24H2 for x64-based Systems (KB5066835) (26100.6899)" and "2025-10 Cumulative Update for .NET Framework 3.5 and 4.8.1 for Windows 11, version 24H2 for x64 (KB5066131)". Is anybody else havin

.jsonDecode -> FormatException: Unexpected end of input (at character 1) ^. Error thrown

15 October 2025 @ 5:37 am

I keep facing same error seeing logs of firebase crashlytics. .jsonDecode FormatException: Unexpected end of input (at character 1) ^. Error thrown . .jsonDecode (dart:convert) JsonCacheInfoRepository._readFile (json_cache_info_repository.dart:143) JsonCacheInfoRepository.open (json_cache_info_repository.dart:40) _WebSocketConsumer.close.<fn>.<fn> (dart:_http) CacheStore._getCacheDataFromDatabase (cache_store.dart:112) CacheStore.retrieveCacheData.<fn> (cache_store.dart:73) As you can see from thread of this error, it points to cache part. I use data as decoding it from shared preference: Future<dynamic> requestCacheDioDiaryGroup( String uri, int page, Map<String, dynamic> requestBody) async { try { final uriKey = "$uri-$page"; bool exists = SharedPrefsHelper.prefs.containsKey(uriKey); if (exists) { final data = SharedPrefsHelper.prefs.getSt

How to pass P_map: dict[str, torch.Tensor] to PEFT (LoRA)?

15 October 2025 @ 5:25 am

My proxy goal is to change LoRA from h = (W +BA)x to h = (W + BAP)x. Preliminary code attached for your reference My actual goal is to train a model with the following loss: 〖Θ ̃=(arg min)┬Δ ̂ 〗⁡〖‖𝑓_(Θ+Δ ̂𝑃) (𝑋)−𝑌‖^2+‖Δ ̂𝑃‖^2 〗. The optimization objective is attached for your reference For context, this is the standard loss〖Θ ̃=(arg min)┬Δ ̂ 〗⁡〖‖𝑓_(Θ+Δ ̂ ) (𝑋)−𝑌‖^2 〗. To clarify, the standard loss can't regularize the gradient, is my assumption correct? What I did: Create NullSpaceLoraModel which subclass LoraModel and NullSpaceLinear which subclass Linear The problems I am not sure if this is the correct approach, whether we can regularize the gradient in the first place Tutorials always show to use get_peft_model function. I am not sure how to register

Getting Error while deploying IcebergSink Connector

15 October 2025 @ 5:22 am

I am trying to deploy icebergSinkConnector. but while connector trying to write data getting error Error: 'write.object-storage.path' has been depricated and will be removed in 2.0, use 'write.data.path' instead. I trie using write.data.path by instead of write.object-storage.path but still getting same error. also tried adding both property still getting same error. Currently using iceberg-core version 1.10.0 . Please suggest any solution or config changes we can use in this case.

How to make Azure Event Grid call a local Azure Function without using ngrok or third-party tunnels

15 October 2025 @ 5:16 am

Azure Storage is configured with an Event Grid subscription that triggers an Azure Function ( durable function) via a webhook. I’d like to test this function locally, but since it isn’t publicly accessible, how can Event Grid send events to my local function without relying on ngrok or other third-party tools?”. Is there a way to capture the request payload that Event Grid sends to an Azure Function webhook, so I can replay it locally using Postman? How can I get that payload, and what kind of HTTP request should I make to trigger my Durable Function locally?

I would like to get some insights of why is my code fails, because Ive tried so many things and i just cant get it to work somehow [closed]

15 October 2025 @ 5:02 am

` public function urlapMentes(Request $req){ This is to save the form $req->validate($this->validaciok,$this->validaciosUzenetek); $ugyfel1 = new Ugyfel; $ugyfel1->nev = $req->nev; $ugyfel1->email = $req->email; $ugyfel1->telefonszam = $req->telefonszam; $ugyfel1->szuletesi_ido = $req->szuletesi_ido; $ugyfel1->save(); return redirect()->route('ujugyfel')->with('kesz','1'); } public function getUgyfel(Request $req){ Getting back customer data $ugyfel = Ugyfel::find($req->uid); if(!$ugyfel){ $data['message'] = "Nincs ilyen ügyfél"; return response()->json($data,400); } $data['ugyfel'] = $ugyfel; return response()->json($data,200); } public function ugyfelLetrehozas(Request $req){ Making new customer using Thunder Client $validacio = Validator::make($re

Debugging EAS: find_energy_efficient_cpu never called on Arm heterogeneous platform

15 October 2025 @ 3:23 am

I'm testing EAS on an 8-core machine (2 big cores, 6 little cores) with kernel version 6.6. I've verified that the system configuration is correct, but the core EAS function is never called. I've exhausted several leads and have hit a wall in my investigation. I have examined the system configuration. The CPU is an Arm big.LITTLE architecture, running kernel version 6.6, and the energy model data is confirmed to be present. I used bpftrace to trace both find_energy_efficient_cpu and select_task_rq_fair - while CFS works normally, EAS has never been activated. I'm trying to understand why EAS isn't functioning. If I'm checking it incorrectly, I would appreciate guidance on the proper approach. If EAS is indeed not starting, I'd like to enable it to reduce system power consumption. uos@uos-PC:\~/Desktop$ cat /sys/devices/system/cpu/cpu\*/cpufreq/scaling_cur_freq 1800000 1800000 1800000 2600000 1800000 1800000 1800000 2600000 //查看cpu

InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Int32'. ASP.NET Core

15 October 2025 @ 1:25 am

How to fix this issue? When I run my code, from my home page, then when I go to suppliers page, the following error shows up: InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Int32'. Microsoft.Data.SqlClient.SqlBuffer.get_Int32() Microsoft.Data.SqlClient.SqlDataReader.GetInt32(int i) lambda_method37(Closure , QueryContext , DbDataReader , ResultContext , SingleQueryResultCoordinator ) Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable+AsyncEnumerator.MoveNextAsync() System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable+ConfiguredValueTaskAwaiter.GetResult() Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync(IQueryable source, CancellationToken cancellationToken) Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync(IQueryable source, CancellationToken cancellationToken) Liquidation.Controllers.SuppliersContr

r - ggplot stacked area plot with NAs using geom_area

14 October 2025 @ 6:55 pm

I'm creating a stacked area plot showing phytoplankton biovolume over time, and I have one year of missing data. I'd like my plot to show the break in the data as it would using geom_line, but I can't find a way to recreate that using geom_area. Example data: phyto_df <- data.frame( Date = rep(as.POSIXct(paste0(2005:2010, "-07-15")), each = 4), Division = rep(c("Bacillariophyta", "Cryptophyta", "Cyanophyta", "Other"), 6), Biovolume = c(570000, 190000, 880000, 220000, 360000, 570000, 910000, 210000, 430000, 880000, 980000, 310000, NA, NA, NA, NA, 230000, 750000, 800000, 160000, 260000, 240000, 570000, 170000) ) Here's the plot I'm currently producing: library(ggplot2) ggplot(phyto_df, aes(x = Date, y = Biovolume)) + geom_area(aes(fill = Division))

How can I make a child Image overflow beyond its parent Row bounds in Jetpack Compose (similar to SwiftUI behavior)?

14 October 2025 @ 4:37 pm

I’m building a dynamic Jetpack Compose UI where layouts are driven by JSON configuration. Each container can be either vertical (Column) or horizontal (Row), and components like text, icons, and images are rendered based on JSON attributes. Here’s a simplified example of my JSON: { "id": "productWrapper4", "direction": "horizontal", "components": [ { "id": "rockiesLogo", "width": 130, "component": "image", "url": "https://example.com/rockies-tv.png" }, { "id": "addIcon", "component": "icon", "name": "add" }, { "id": "mlbLogo", "width": "100%", "height": "100%", "alignment": "left", "component": &