Random snippets of all sorts of code, mixed with a selection of help and advice.
Issue with running 'yarn start:dev'
29 April 2026 @ 3:09 pm
So I'm trying to run 'yarn start:dev' which keeps instant failing with the following error;
[nodemon] restarting due to changes...
[nodemon] starting `./bin/generate-ssl-options.sh && ts-node ./src/main/server.ts`
Error: Cannot find module 'src\main\routes\home.ts'
Require stack:
- C:\Users\supri\Documents\GitHub\hmcts-dev-test-frontend\src\main\app.ts
- C:\Users\supri\Documents\GitHub\hmcts-dev-test-frontend\src\main\server.ts
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (C:\Users\supri\Documents\GitHub\hmcts-dev-test-frontend\node_modules\@cspotcode\source-map-support\source-map-support.js:811:30)
at Function.Module._load (node:internal/modules/cjs/loader:901:27)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at C:\Users\supri\Doc
Microsoft SSIS 2019/2022 - Microsoft Teradata Connector for Teradata 20.00 - Source and Destination Tools not showing in VS2022
29 April 2026 @ 3:04 pm
I have to upgrade to Teradata 20.00 and cannot get the Teradata Source and Destination Tools to show up in SSIS 2022 with VS2022. I have tried with the packages targeting 2019 and 2022. The installation of the connector itself claims to have been successful.
I have currently installed (In the order listed):
Microsoft Visual Studio Community 2022 Version 17.14.31 (April 2026)
SQL Server Data Tools 17.14.26.0
SQL Server Integration Services 17.0.1016.0
Teradata Tools And Utilities (all modules) 20.00.34.00
MicrosoftTeradataConnector_SQL2019_r285
MicrosoftTeradataConnector_SQL2022_r285
Based on past experience this is likely due to one of the following reasons:
One or more of the components installed do not have the build version that the connector needs.
The connector does not work in Visual Studio Community Edition.
Old registry entries from either SSIS or Teradata that did no
Get transitivity ratio, instead of a single number, from network in R
29 April 2026 @ 3:00 pm
I'm working with social networks in R. I would like to get the full transitivity ratio each of my networks, rather than just the transitivity/clustering coefficient. That is the number of triangles, and the number of connected triangles, as separate values. I wan't to do this because I would like to use a binomial model for some statistical analysis.
WE310F5 HTTPS connection
29 April 2026 @ 2:51 pm
I'm trying to establish an https connection to a server using the telit we310F5 module.
Is there a specific sequence of commands needed to make it work? do I need a specific way to store the CA root on the module (i'm thinking about the special characters inside the CA)?
The sequence i'm now using is this
loading certificate
AT+NSSLCERTSTORE=0,1,1,"cacert",<len>,<certificate PEM>
Verify certificate
AT+NSSLCERTLIST=0
Connection
AT+NHTTPCINIT=1,100,1440,1440,1440
AT+NSSLCFG=<cid>,2,"cacert"
AT+NSSLCFG=<cid>,9,"1"
AT+NHTTPCCO=<cid>,"<url>",443
i get all "OK" responses, only the last command (open connection) gives me ERROR
Where is the problem?
Thanks
Microsoft GraphRAG having problems reading JSON
29 April 2026 @ 2:48 pm
python -m graphrag index --root runs/Test01/2004.Smith.1 --verbose
/home/charles/.local/lib/python3.10/site-packages/litellm/litellm_core_utils/logging_worker.py:75: RuntimeWarning: coroutine 'Logging.async_success_handler' was never awaited
self._queue = None
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Starting pipeline with workflows: load_input_documents, create_base_text_units, create_final_documents, extract_graph, finalize_graph, extract_covariates, create_communities, create_final_text_units, create_community_reports, generate_text_embeddings
Starting workflow: load_input_documents
Pipeline complete
I am at a lost. I have tried every free AI.
Error 405 when redirecting to a URL after submitting a form
29 April 2026 @ 2:47 pm
I'm using Laravel + PHP + DataTables. I have a page with DataTables, and when I select one or more checkboxes, I use a form to send it to another page.
However, after sending, the page displayed continues to be the DataTables page. In debug mode, the data and the page to be redirected appear, but error 405 seems to occur.
configuration of my routes
Route::get('/distribuicao/multidistribuicao', [DistribuicaoController::class, 'multidistribuicao'])->name('distribuicao.multidistribuicao')->middleware(['auth','BloqueioHorario']);
Route::post('/distribuicao/distribuirmulticheck', [DistribuicaoController::class, 'distribuirmulticheck'])->name('distribuicao.distribuirmulticheck')->middleware(['auth','BloqueioHorario']);
Route::post('/distribuicao/distribuidomulticheck', [DistribuicaoController::class, 'distribuidomulticheck'])->name('distribuicao.distribuidomulticheck')->middleware(['auth','BloqueioHorario']);
Why is undoManager of NSTextView subclass always nil when testing?
29 April 2026 @ 2:43 pm
I have a subclass (MyTextView) of NSTextView. When i try to test its (working) undo/redo using Swift Testing its undoManager property is always niland the test fails.
@MainActor
struct Undo {
let mtv: MyTextView
init() throws {
mtv = MyTextView()
mtv.insertText("Lorem ipsum dolor sit amet")
mtv.moveToBeginningOfDocument(self)
mtv.moveWordRightAndModifySelection(self)
}
@Test func roundtrip() async throws {
#expect(mtv.selections == [(0, 5)])
mtv.delete(self)
#expect(mtv.selections == [(0, 0)])
#expect(mtv.allowsUndo)
mtv.undoManager?.undo() // undoManager is always nil
#expect(mtv.selections == [(0, 5)])
let strings = mtv.getSelectedText()
#expect(strings == ["Lorem"])
}
}
Apparently the full machinery (run loop?) is not set up by the test. Is t
Same Room db from Remote Service and Activity
29 April 2026 @ 2:42 pm
I wonder if it is okay to use the same Room db in Activity and Remote Service.
Since the Service is remote it resides in a separate process. Is it okay to open the same sqlite db file simultaneously from the Remote Service and the Activity itself? Whether their operations must be manually synchronized via some sort of IPC ?
I mean imagine two writes at the same time initiated by the Remote Service and the Acitivity. Is it error prone or it is handled properly by the Room itself ?
Mac App starts in light mode before switching to dark
29 April 2026 @ 2:41 pm
I recently added a setting to my Mac app that allows the use to select between a light, dark, or automatic appearance. While this works overall, if you select dark and relaunch the app while the system is in light mode, the window initially appears as light before changing to dark, giving the appearance of a momentary flash. I am setting up an NSApp.appearance in viewDidLoad:
override func viewDidLoad() {
super.viewDidLoad()
...
NSApp.appearance = NSAppearance(named: .darkAqua)
I've tried moving this up to windowDidLoad() and even applicationDidFinishLaunching() but no change. Other apps do this, so I know it's possible. What am I doing wrong? Thanks!
Using Xcode 26.4.1, macOS 26.4.1, using AppKit (not SwiftUI).
Python layout: how to draw a box around a frame?
29 April 2026 @ 2:18 pm
I'm new to Python and am working with GUI's and layouts. I've got the hang of the basic layout widgets and adding buttons and things to them. How would I make a classic box around a layout of buttons or indicators? Just a bezel to set off one group of controls from another. I would think that the QBoxLayout would have some function that says "draw a box around the outside", but there doesn't seem to be one.