Creating an X509 Certificate in Java without BouncyCastle?

Is it possible to sanely create an X509 Certificate in Java code without using the Bouncy Castle X509V*CertificateGenerator classes?

Ruby on Rails: Where to define global constants?

I'm just getting started with my first Ruby on Rails webapp. I've got a bunch of different models, views, controllers, and so on. I'm wanting to find a good place to stick definitions of truly...

Sane way to define default variable values from within a jinja template?

I'd like to set default values for variables used in my Jinja template inside of the template itself. Looking at the Jinja2 documentation, I don't see any way to do this. Have I missed something?...

Create (sane/safe) filename from any (unsafe) string

I want to create a sane/safe filename (i.e. somewhat readable, no "strange" characters, etc.) from some random Unicode string (mich might contain just anything). (It doesn't matter for me wether...

Matching the same word twice with a regular expression, not caring what the word is

Take the following input: foo.foo aefhiuafhiauefheiauh bar.bar jgoeiajgoieajogiae baz.foo ogiejaogijaeoigjea Say I want to match x.x where x is the same both sides of the dot. So I don't want to...

Phonegap Android permissions, config.xml and plugins

I have a Phonegap app that I'm currently developing and testing for Android. Problem is, when I publish to device, the Android Manifest is full of permission requests that I did not ask for. I...

What does "(tried to allocate 16777216 bytes)" mean?

I really need some help on this one. My PHP program (it's a bit large, so I can't show all of it here) errors out with Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to...

Configure options for building MinGW-64 on linux-64 for linux-64 (ultimately targetting windows-64)

I want to build MinGW-w64 where: A: I want to compile MinGW itself on Linux (64-bit). B: I want the MinGW tools (compiler, etc) to run on Linux (64-bit). C: I want the MinGW tools (compiler, etc)...

What is a safe way to create a Temp file in Java?

I'm looking for a safe way to create a temp file in Java. By safe, I mean the following: Name should be unique, even under potential race conditions (e.g. another Thread calls the same func at...

Properly enable AccessibilityChecks for multi-file test suite

I'm trying to wrap my head around the proper way to set up Android Espresso's AccessibilityChecks. Documentation suggests I just call AccessibilityChecks.enable() in a @Before setup method. The...

Where does Github desktop install command line version of Git

According to https://git-scm.com/book/en/v2/Getting-Started-Installing-Git The installer includes a command line version of Git as well as the GUI. It also works well with Powershell, and sets up...

How to make Gradle fail the build if a file dependency is not found?

I have a Gradle build that has some dependencies of the form compile files('path/to/local/lib.jar') (the build is being migrated - eventually these will be replaced) The build failed because one...

Is there a way to tell aws-cli to run a command to get a new session token if the current token is expired?

At my work, our AWS authentication is integrated with our corporate sign-sign-on (SSO) system. In other words, when we want to access AWS, we do something that authenticates to our corporate...

MacOS Mojave: ./configure script fails when checking the archiver (ar) interface

I am running the ./configure command before building the OpenFST package, which uses autoconf. The script fails when checking for the ar interface: $ ./configure checking for a BSD-compatible...

React Native Error: ENOSPC: System limit for number of file watchers reached

I have setup a new blank react native app. After installing few node modules I got this error. Running application on PGN518. internal/fs/watchers.js:173 throw error; ^ Error: ENOSPC:...

EF Core 3.0 nullable navigational properties

So EF Core preview 7 was released and I decided to use it along with C# 8 previews and .NET Core 3.0 preview 7. Let's say I have a class representing a many-to-many relationship: public class A...

How to fix pod install error glog is too old or missing react native ios in windows 10

I wanted to detach expo in my expo project to get the bare react native project after expo detach i run pod install bring me this error that during installing glog that script is too old or is...

Error: EMFILE: too many open files - React Native CLI

I try to run a react-native-cli project using react-native start, and the metro bundler fails, saying the following: events.js 187 throw er; //Unhandled 'error' event Error: EMFILE: too many open...

String together responsive classes in TailwindCSS

I've been trying to Google this, but I'm either not using the right terms or nobody has asked my question yet. Question: Is there a way to stack responsive classes in TailwindCSS? What I'd like to...

SwiftUI changing the position of a view programmatically

Swift 5, iOS 13 A SwiftUI question I want to record the position of a view when it is created. I want to save the position cause I want the ability to move it back there if I hit the reset...

SwiftUI - how to avoid navigation hardcoded into the view?

I try to do the architecture for a bigger, production ready SwiftUI App. I am running all the time into the same problem which points to a major design flaw in SwiftUI. Still nobody could give me...

React Native - Constant errors like "Error: EPERM: operation not permitted, lstat ..."

I am fairly new to React Native, and it appears my app is crashing prior to executing my primary app code, but I cannot figure out where. In VSCode, I see the following in my Output: Error:...

xcrun: error: SDK "iphoneos" cannot be located

I'm not experienced so I can't really pinpoint what is the problem. Thanks for the help. I cloned this repo: https://github.com/flatlogic/react-native-starter.git And was trying to follow the...

React npm warn deprecates how to deal with it?

npm WARN deprecated [email protected]: flatten is deprecated in favor of utility frameworks such as lodash. npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer...

julia not finding "standard" packages (or LOAD_PATH)?

Upgraded [from 1.5.3] to Julia 1.6.3 on Ubuntu 20.04 [Windwos 10 WSL2] info: building from julia github repo and not via apt My local clone resides on the Windows filesystem and I navigated there...

wxPython not installing via PIP on Apple Silicon M1 Max

Have a project that is written in Python 3.8.x and wxPython. It was developed on an Apple MacBookPro (Intel-based). wxPython installed via PIP inside a virtual environment without problems. Life...

workspaces internal error when running "yarn dev"

I have a project I cloned from GitHub that was created in Vite+react+tailwind When I run “yarn dev” I receive the following error Internal Error: [email protected]:.: This package doesn't...

npm install issue : 27 vulnerabilities (16 moderate, 9 high, 2 critical) To address all issues , run: npm audit fix --force

When I enter npm install in the relevant react project folder, it gives back this error after installing node modules => 27 vulnerabilities (16 moderate, 9 high, 2 critical) To address all...

Is NULL data-pointer the same as NULL function-pointer?

POSIX requires (I think) that function pointers can be stored in a variable of type void* and/or passed to functions expecting a void* argument, even though this is strictly non-standard. My...

Is it legal for the compiler to assume that a static variable will not be modified by another thread?

I'm a bit surprised that the compiler (gcc) is simply assuming that a static variable will never be touched by other threads even with the lowest optimization level. I was trying to read a value...