Is there a good way to perform WPF/C# object dereferencing, for garbage collection?

Application Background Our platform is a click-once WPF application. We have a "shell" that contains a navigation menu structure and it hosts our own custom "page" classes. When you navigate to a...

http basic authentication "log out"

HTTP basic authentication credentials are stored until the browser is closed, but is there a way to remove the credentials before the browser is closed? I read about a trick with HTTP 401 status...

Redis + ActionController::Live threads not dying

Background: We've built a chat feature in to one of our existing Rails applications. We're using the new ActionController::Live module and running Puma (with Nginx in production), and subscribing...

Return message to Android client from java Server via tcp sockets

I am trying to make a very simple client/server connection. I have Android app as a client and trying to pass message to Java program on PC and then return a message back to the android...

Cancel SQL Statement with JDBC

I am stuck with this problem here. I am running an application on my Tomcat Application Server. As a frontend I am using an HTML site with javascript in it, in the backend i am using Java. When...

MFC Child Dialog that behaves like a popup (upgrade From VC6 change)

I have a MFC project I maintain, that recently got upgraded from VC6->2013, and apparently some core Windows code become stricter with regards WS_POPUP and WS_CHILD, can no longer be mixed. I have...

Can you make a computed goto in C++

Fortran has a computationally efficient called a 'computed goto'. The construct uses an index into a branch table to perform a direct goto. If I remember correctly the syntax is: go to index...

Umbraco / Azure Blob Storage - Able to upload images & view in Umbraco, but getting 404 Errors on front-end

I recently began integrating UmbracoFileSystemProviders.Azure from https://github.com/JimBobSquarePants/UmbracoFileSystemProviders.Azure and am able to do the following on my local machine & a dev...

Installing GTK for use in Code::Blocks on Windows 10

Original Question I am having trouble installing gtk to start building GUIs in C++ on Code::Blocks. Could anyone nudge me in the right direction? I'm running Windows 10 (64-bit) on a Lenovo. I...

How to find out why application crashes - Win 10 LTSB

I have application built with VS 2017 15.7.4, it is 64-bit command-line C++ app. I have copied it with all dependency DLL's to machine with Windows 10 Enterprise 2016 LTSB 64bit (ver says Version...

React Native 0.57.x <Image/> large images low quality

There is really low quality when loading large bundled images, even when using resizeMethod="resize". This happens only on Android, not on any iOS simulator/device. Have tested it on Android 8.1...

Doxygen & (La)Tex - Cannot create PDF when using param-tags

I'm trying to generate PDF from source files using Doxygen and MikTex (also Tex Live tested) but with no success. Here is an example file which from I'm trying to generate the documentation: /** ...

SSH doesn't run commands following sudo

I'm trying to execute multiple commands on a remote server. The issue I'm having is that after the sudo command is ran, the ssh connection gets closed automatically. The main test that is...

JavaFX : How to close a sub window without getting focus on main window

I am trying to close a sub window programatically after certain time. This sub window initOwner is set with main stage. But on closing this sub window, the main window is getting focused. Is there...

Microsoft Graph API Batch limit

This question is about two questions about JSON Batching I found out the batch limit is 15 instead of the mentioned 20, why is the limit not mentioned on the page of JSON Batching is a question...

Error - linker command failed with exit code 1

I'm new to XCode Mac and IPhone development. So probably I'm missing something obvious here. While trying to build the project I'm getting the following warnings and error. I can't figure out what...

nginx reverse proxy not detecting dropped load balancer

We have the following config for our reverse proxy: location ~ ^/stuff/([^/]*)/stuff(.*)$ { set $sometoken $1; set $some_detokener "foo"; proxy_set_header Host $host; ...

Strange NSOpenPanel accessory view behaviour in Safari App Extension

I am writing a settings popover for a Safari App Extension. This consists of an table view with an segmented control underneath containing Add, Remove, and Action templates. The latter reveals a...

C# WPF Memory leak when Window has a TabControl with a TabItem (or delayed memory reclaim?)

I experienced what appears to be a very obvious memory leak in an application that would open a settings window containing a TabControl with a number of TabItems. Initially believing that one of...

How can I get Twilio webhooks to work with Heroku?

Hi I am using Twilio to send text messages to several phone numbers. When the user gets the text message from my React.js application, I would like them to be able to respond back to that text...

EntityException: The underlying provider failed on Open. Can one server closing a db connection, make another server fail on opening?

I am experiencing database connection errors with an ASP.NET application written in VB, running on three IIS servers. The underlying database is MS Access, which is on a shared network device. It...

Why does constexpr context make the compiler fail, while w/o it optimizes perfectly?

I played around with constexpr and realized some interesting behavior: In some situations adding constexpr in front of a function enables GCC to try optimizing harder which results in fully...

Android - "firebase.test.lab" setting fails to exclude play store testing activity from firebase analytics

Each time upon uploading a new release to the google play store, I get about 8 new users logged in my Firebase analytics console within around 10 minutes. I have not released my app publicly yet,...

How is a TCP "Connection" maintained, and how does HTTP Keep-Alive affect it?

I'm an application developer looking to learn more about the transport layer of my requests that I've been making all these years. I've also been learning more of the backend and am building my...

How to remove Angular empty <style> tag in header?

I'm using Angular 8 and I'm having problem with it's <style>. I have an old question about how to extract css into a single file in Angular. We can definetely do that with a single configuration...

EF Core scaffold-dbcontext custom namespace

This is a follow-up to a similar question which was answered with a reference to this issue, which has since been closed and migrated to 2.1.0 milestone according to the linked page but I can't...

Flutter Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified

Launching lib/main.dart on iPhone 11 Pro Max in debug mode... Running pod install... CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using `ARCHS`...

Flutter pod install issue and ios app not running

I tried to run my project and get this error with Ios Launching lib/main.dart on iPhone 11 in debug mode... Running pod install... CocoaPods' output: ↳ Preparing Analyzing...

python 3.9.0 smtplib.SMTPNotSupportedError: STARTTLS extension not supported by server

I am trying to send emails with gmail using the smtp module for an amazon price tracker. A few days ago, it was working perfectly but today it came up with this error: File...

33% less instructions, 17% less mem access, but 4x as fast?

Summary I have two pieces of c++ code which do the same calculation. Code B does result in about 33% less instructions, about 17% less memory access than code A, but runs four times as fast...