Securely enforcing user-input file paths within subdirectories

I know the solid security recommendation of avoiding accepting user input that you then use to choose a path to read/write a file. However, assuming you have a base directory you want to keep...

App Engine : 400 - Your client has issued a malformed or illegal request

I have been running into this error for the last 3 or 4 weeks making requests to app engine. Certain requests - especially HTTP DELETE requests, are having this error returned from the google...

Facial manipulation - remove / change hair style

I have a client who would like an iphone app that allows users to take a portrait picture of themselves, then try on different hair styles. I have been experimenting with the opencv framework and...

game of tetris in python using pygame

I've just implemented a very rudimentary game of tetris in python using pygame and would like anybody to constuctively criticize me. It's my first program of substantial length so there are bound...

How to add a custom Ribbon tab using VBA?

I am looking for a way to add a custom tab in the Excel ribbon which would carry a few buttons. I chanced on some resources addressing it via Google but all look dodgy and outrageously...

Python IDLE. Auto-complete/Show completions not working

IDLE is being very dodgy as to when it will actually show an Auto-complete menu. As of late it hasn't been working at all, or, more specifically, only works during an interactive session. I've...

Can dup2 really return EINTR?

In the spec and two implementations: According to POSIX, dup2() may return EINTR. The linux man pages list it as permitted. The FreeBSD man pages indicate it's not ever returned. Is this a bug -...

Chrome basic auth and digest auth issue

I'm having some issues with Chrome canceling some HTTP requests and I'm suspecting cached authentication data to be the cause. Let me first write down some important factors about the application...

SFML 2.1 "setFont" unhandled exception

So I'm trying to use the .setFont(sf::Font) method from SFML, and it seems to somehow break the rest of the sf::Text object. I'm using the following function to do this: sf::Text...

Documentation for PyCFunction_New / PyCFunction_NewEx

I'm struggling to understand some PyCXX code (C++ Python wrapper) that revolves around PyCFunction_New. Could someone explain how this function works? (I can't figure it out from the CPython...

NSToolbar in Xcode 7 using Storyboards (NSWindowController -> NSSplitViewController)

Hi I've seen this question asked a few times already but with no definite answer yet so I created it for xcode 7 and swift2 (which may have changed things a bit anyway). I created a project using...

What to do when REST POST provides an ID?

I'm developing a JAX-RS API that includes a simple "Person" table with fields "id" and "name", where the "id" is tied to an autonumber in a mysql database. A typical use case would be to POST a...

Exception is caught when Exception is not thrown

I have the following code and findbugs complains that "Exception is caught when Exception is not thrown" under dodgy code. I do not understand how to solve this. getPMMLExportable throws a...

npm equivalent of yarn resolutions?

Is there an npm equivalent of the yarn resolutions functionality? There is no mention of it in the npm package.json docs. For example, I want to install [email protected] and one of its dependencies...

how do I get over parted confirmation request in a script

I wonder if anybody has done this sort of stuff: I need to use parted in a script doing a bit of a dodgy operation. I am trying to modify an extended partition that contains the partition I have...

Latest Google Play Game Service Plugin For Unity Not Working

I have started using Google Play Game Services plugin for unity lately in my game Dodgy for android and the plugin doesn't seem to work! I have tried following what they say on GitHub installed...

How to build sphinx docs for micropython

How do I configure sphinx to document modules intended for a MicroPython interpreter? The fundamental problem I'm facing is that sphinx gets the information it documents from the imported module....

EF Core - Create a migration without connection string

I have been ranging across multiple questions, tutorials and examples for something that fits this problem. What if I don't know my connection string at the time I want to create my first initial...

How can I insert a Google Analytics snippet into my Mediawiki wiki pages?

This is turning out to be much more challenging than I expected. There is a Google Analytics Integration extension: https://www.mediawiki.org/wiki/Extension:Google_Analytics_Integration But for...

Allow mklink for a non-admin user

In Linux/Unix, the command to create a symbolic link is called ln. The user doesn't need any special privileges to use it. In the Windows (from 7 onwards) the equivalent is called mklink. It...

Maven doesn't recognize jaxws-ri version

I'm very new to Web development, but I can't figure out what's happening here: pom.xml file not recognizing version I'm working on a project with multiple repositories, that depend on each other....

Lighhouse server invalid token - LHCI invalid token

I have installed LHCI(Light House CI) server on an AWS EC2 instance(or my own home-server). The server is up and running. I have the url I can add projects to the CI server with @lhci/[email protected]

How do I fix CalledProcessError problem with precommit and hook prospector?

details: -Python 3.7.5 -Precommit 2.6.0 -prospector 1.1.7 -VScode editor I have a problem with the hook prospector.I have installed pre-commit using pip, and when I use its CLI without hook...

Running through an environmental error during deploying django app on heroku

I have created virtual env with anaconda prompt and created my django project in that env. I have created repository on github and push my code there and also create app on heroku but when i am...

Corrupt video uploads when chunking MediaRecorder to Google Cloud platform

I currently am using react hook powered component to record my screen, and subsequently upload it to Google Cloud Storage. However, when it finishes, the file created inside Google Cloud appears...

Laravel Sanctum Vuejs verify email auto logged in

I have a Laravel 7 API with Sanctum authentication, VueJS (Nuxt SPA) frontend. After registration (Laravel auth scaffolding) the user must verify their email address. Generally the app+auth is...

How do I enforce 2FA in .Net Core Identity?

Question: How can I enforce existing users to set up 2FA in .Net Core 3.1 Identity? I have seen a couple of answers here already, but I have issues with them as follows: Redirect user to set up...

C++ Confused by epoll and socket fd on Linux systems and async threads

I am trying to understand how to use the epoll library (Linux) in combination with socket file descriptors. There is limited information about epoll available online as far as I can tell. So far...

Quartz.net Scheduler.Shutdown(true) not killing jobs

I have a running quartz job and terminating my BackgroundService, for some reason despite calling scheduler.Shutdown(true) the job remains running. Even when looping through and interrupting jobs,...

Making an axios call inside my express controller, how do I return the status?

I'm not sure I am setting up my express controller to properly return the correct response. When the endpoint is hit, I want to call the address service with axios and return the data, or return...