Questions

Simplest way to do a fire and forget method in C#?

I saw in WCF they have the `[OperationContract(IsOneWay = true)]` attribute. But WCF seems kind of slow and heavy just to do create a nonblocking function. Ideally there would be something like sta...

10 Jan at 13:29

How to get a path to a resource in a Java JAR file

I am trying to get a path to a Resource but I have had no luck. This works (both in IDE and with the JAR) but this way I can't get a path to a file, only the file contents: ``` ClassLoader classLo...

25 Dec at 03:20

How to find files that match a wildcard string in Java?

This should be really simple. If I have a String like this: ``` ../Test?/sample*.txt ``` then what is a generally-accepted way to get a list of files that match this pattern? (e.g. it should match ...

27 Apr at 21:3

Python speed testing - Time Difference - milliseconds

What is the proper way to compare 2 times in Python in order to speed test a section of code? I tried reading the API docs. I'm not sure I understand the timedelta thing. So far I have this code: ``...

How to wait in a batch script?

I am trying to write a batch script and trying to wait 10 seconds between 2 function calls. The command: ``` sleep 10 ``` Does not make the batch file wait for 10 seconds. I am running Windows XP...

2 Feb at 09:14

ObservableCollection Doesn't support AddRange method, so I get notified for each item added, besides what about INotifyCollectionChanging?

I want to be able to add a range and get updated for the entire bulk. I also want to be able to cancel the action before it's done (i.e. collection changing besides the 'changed'). --- Related Q...

DataTrigger where value is NOT null?

I know that I can make a setter that checks to see if a value is NULL and do something. Example: ``` <TextBlock> <TextBlock.Style> <Style> <Style.Triggers> <DataTrigger Binding="{...

How can I know if a process is running?

When I get a reference to a `System.Diagnostics.Process`, how can I know if a process is currently running?

30 Nov at 15:19

Launching an application (.EXE) from C#?

How can I launch an application using C#? Requirements: Must work on [Windows XP](http://en.wikipedia.org/wiki/Windows_XP) and [Windows Vista](http://en.wikipedia.org/wiki/Windows_Vista). I have see...

22 Sep at 22:4

Foreign Key naming scheme

I'm just getting started working with foreign keys for the first time and I'm wondering if there's a standard naming scheme to use for them? Given these tables: ``` task (id, userid, title) note (id...

How to deal with a slow SecureRandom generator?

If you want a cryptographically strong random numbers in Java, you use `SecureRandom`. Unfortunately, `SecureRandom` can be very slow. If it uses `/dev/random` on Linux, it can block waiting for suffi...

How do I retrieve my MySQL username and password?

I lost my MySQL username and password. How do I retrieve it?

14 May at 20:46

Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler

I have a framework (in this instance it's RxSwift) which I've compiled using Xcode 11.0 into the traditional `RxSwift.framework` style package This imported fine into Xcode 11.0 and also 11.1 never h...

1 Nov at 05:57

Environment.getExternalStorageDirectory() deprecated in API level 29 java

Working on android Java, recently updated SDK to API level 29 now there is a warning shown which states that `Environment.getExternalStorageDirectory()` is deprecated in API level 29 My code is ```...

What does null! statement mean?

I've recently seen the following code: ``` public class Person { //line 1 public string FirstName { get; } //line 2 public string LastName { get; } = null!; //assign null is poss...

8 Apr at 09:31

Flutter : Vertically center column

How to vertically center a column in Flutter? I have used widget "new Center". I have used widget "new Center", but it does not vertically center my column ? Any ideas would be helpful.... ``` @overr...

24 May at 19:48

image is being used by stopped container

I am trying to delete a docker container by this command: ``` docker rmi <Image-Id> ``` Obviously, I have replaced the Image-Id by the Id I get using: ``` docker images ``` But I see the error b...

5 Jul at 10:11

Read file from resources folder in Spring Boot

I'm using Spring Boot and `json-schema-validator`. I'm trying to read a file called `jsonschema.json` from the `resources` folder. I've tried a few different ways but I can't get it to work. This is m...

Why Python 3.6.1 throws AttributeError: module 'enum' has no attribute 'IntFlag'?

I just installed Python 3.6.1 for MacOS X When I attempt to run the Console(or run anything with Python3), this error is thrown: ``` AttributeError: module 'enum' has no attribute 'IntFlag' $ /Libr...

Installation failed with message Invalid File

> Installation failed with message Invalid File: K:\project\app\build\intermediates\split-apk\with_ImageProcessor\debug\slices\slice_0.apk. It is possible that this issue is resolved by uninstalli...

14 Feb at 06:59

Angular routerLink does not navigate to the corresponding component

My routing in the angular2 apps works well. But I am going to make some routeLink based on [this](https://angular.io/docs/ts/latest/guide/router.html): Here is my routing: ``` const routes: RouterConf...

15 Feb at 19:17

how to get docker-compose to use the latest image from repository

I don't know what I'm doing wrong, but I simply cannot get `docker-compose up` to use the latest image from our registry without first removing the old containers from the system completely. It looks ...

23 May at 10:31

Nuget re-targeting after upgrading from .Net Framework 4.5 to 4.6.1

I have a .net solution with approx 30 projects, all of them targeting .Net Framework 4.5. and each referencing at least 3-4 NuGet packages. We now need to update them to .Net Framework 4.6.1. So here...

Node.JS: Getting error : [nodemon] Internal watch failed: watch ENOSPC

I just installed `Node.js` on my `Ubuntu 14.04` operating system for the first time. I also installed `npm`. The next step in my installation process was installing `nodemon`. This all worked out fine...

7 Jan at 18:31

How to fix the error; 'Error: Bootstrap tooltips require Tether (http://github.hubspot.com/tether/)'

I'm using Bootstrap V4 and the following error is logged in the console; > Error: Bootstrap tooltips require Tether ([http://github.hubspot.com/tether/](http://github.hubspot.com/tether/)) I have ...