Roots of a Quartic Function

I came across a situation doing some advanced collision detection, where I needed to calculate the roots of a quartic function. I wrote a function that seems to work fine using Ferrari's general...

How to create full transparency in a QTextEdit

I have been trying for many days to figure out a way to create a transparent Qtextedit with opaque text. Because the term "transparency" is often ambiguous, I define Qtextedit"transparency" as...

Send image file using java HTTP POST connections

I'm trying to send an image to a website using Java HTTP POST requests. I'm using the base code used here https://stackoverflow.com/questions/2469451/upload-files-with-java: This is my...

What to return when overriding Object.GetHashCode() in classes with no immutable fields?

Ok, before you get all mad because there are hundreds of similar sounding questions posted on the internet, I can assure you that I have just spent the last few hours reading all of them and have...

Wordpress Nav Menu page items disappearing randomly

(I'm sorry for the long post, see conclusion below) I have a WP multisite set up, with some sites in production mode (with domain aliases) and some still not "launched". At the moment there are...

Unmap project without physical deletion in VS2013 + Visual Studio Team Services (was TFS Online)

I have Team project in TFS, and I map it to folder "Common projects" with many projects inside, by example Common projects prj1 prj2 .. prjn TFS adds all of them and it slows my machine. I...

Twenty Thirteen Footer Widgets Not Aligning

I have a dev site here that is using a child theme of twenty thirteen. http://unitedconstruction.com/dev/ I have 3 footer widgets but they won't line up on one line, even though their width is...

Login with Facebook javascript SDK does work on certains browsers cause of SSL

The context a facebook web app facebook SDK 2.5 loaded asynchronously login with facebook feature into Angular 1.5 application localhost and ssl domains to test ssl domains on production all...

Concrete5 - Change location of images

Currently images are located in /files/ in the root directory is it possible to host the images else where? for example currently hosted onhttp://www.domain1.com/files/ and want them to be located...

What's the default load balancing algorithm in GLBC L7 in GKE?

I have a simple ingress resource and two services: ess-index and ess-query. Services has been exposed with type NodePort with --session-afinity=None. Ingress resource has the following...

Making every a href on my site a different color

Currently, I am doing this with just static CSS using something that looks like the code displayed below. #main-content >...

How to save TextView/Array in Android and Retrieve it later?

I am really new to this and making steady progress in regards to making an application. I want to create an app that allows the user to generate a random password using a slider to set the length...

Complex "featured product" model using query-time ranking (optional filters)

I have a products index that displays filtered results on category pages. For a given category, any amount of products may be flagged as featured, meaning it displays first. When products are...

How do you force a session created by IIS Windows Authentication to timeout?

I have a website which is accessed via Windows Authentication and Active Directory and currently it seems to have much longer timeouts than I set. I am trying to create this to be shorter to help...

Wordpress, ACF relationship array & Post Expirator plugin weird behavior - items in array get lost somehow

Ok, I'll try my best to explain this. We (my team) built a custom functionality for our client that combines Advanced Custom Fields and Post Expirator in a way that if posts are scheduled to...

Posts randomly moved to trash automatically

Posts randomly moved to trash automatically in Wordpress. When i am restoring posts after some time again they are going to trash automatically. I have deactivated all plugins, does not help. The...

How can I set the multipart boundary with JMeter

I'm using this guide to send a multipart POST request to a server with JMeter: https://www.blazemeter.com/blog/testing-advanced-rest-api-file-uploads-jmeter In this request there are several parts...

redux-thunk and handling exceptions inside dispatch results

I have a basic thunk action creator and reducer adapted from the Redux documentation: http://redux.js.org/docs/advanced/AsyncActions.html // action creator function fetchPosts () { return...

Excel consolidate yields incorrect list of unique values

I have two columns that look like this: Make/Model Parc Abarth*500 15 Abarth*500 19 Abarth*500 2 Abarth*500 14 Abarth*500 15 Abarth*500 25 Abarth*500 ...

Pact-jvm java noob questions

I have a few noob questions about Pact JVM (Java); If the providers json structure response is already known (for example by querying the api with Postman) ,is it possible to convert Postman json...

How to handle multiple sprites' zPositions as they move around each other?

I'm new to programming in Swift. I'm trying to create a game where I have a bunch of sprites that move randomly around the screen. Let's say I have a bunch of simple 2D image sprites. As a sprite...

What is the random string I am seeing when I use get_query_var?

I am setting up an advanced search page with ACF fields with a custom post type in wordpress. In my example I am sending 'Students' in ?licenseType=Students I have registered my query_vars ...

Ultra high speed SQL queries for nearest colour match using k - Nearest Neighbour

Background I have an SQL database table set-up on "SQLite" with over 100,000 colour codes stored in the form of colour space parameters L, a, b...

R - Join Dataframes using a key and then Approximate Dates

The Problem I am trying to merge two dataframes using 3 ID columns (Or 1 column, if I paste the 3 together), one of which is a datetime variable and can vary between the two dataframes by up to 1...

Malloc error: incorrect checksum for freed object - object was probably modified after being freed

I've been trying to fix this for 2 days now. I really don't understand what is going on. I wrote a function to read from a file line per line. It's called get_next_line(). This is a project for...

Wordpress + ACF, display random post images from each post on home page

I’m new to Advanced Custom Fields and a novice in WP, I'm interested in creating a random slider in my homepage where each post has many images. I’m not 100% sure how to combine the wp_query...

MAC address randomizer - MAC Address does not change?

I've tried to create a small and basic bash script to change my MAC address on MacOS, upon reboot. The script trows no errors, however nor does it change my mac address. The...

golang client side load balancer when not serving http

As a golang n00b, I have a go program that reads messages into kafka, modifies them then post them to one of the http endpoints in a list. As of now we do some really basic round robin with...

Flutter - how do I make a widget draw only after shared preferences have been read?

I'm trying to get to grips with Flutter by creating an app which draws a random path (it will get more advanced before it's finished!). The user can change the number of tiles in the path, and...

Fetching data from a server (API?) and displaying it on an HTML page

This is my first post on Stack Overflow, so please excuse any ignorance from my end. I have been pursuing HTML & JS for about 2 months now. I am having trouble with a question I've been given for...