A free tool to check C/C++ source code against a set of coding standards?

It looks quite easy to find such a tool for Java (Checkstyle, JCSC), but I can't seem to find one for C/C++. I am not looking for a lint-like static code analyzer, I only would like to check...

Muliple Plots in R - How to place segments and avoid space on the right

I have the following lines of code in R: dat <- data.frame(mse=rnorm(1000), m1=c(rep("A",333),rep("B",333),rep("C",334)), ...

Match labels to arrows in Excel flowchart using VBA

I'm writing a code generation tool using VBA in Excel (don't ask why—long story). I need to be able to "parse" a flowchart. The problem is that Excel allows shapes to contain text, with the...

Prototype not defined when accessing children on creation of custom-tag

____What I am trying todo______ Right now I am working with custom HTML5 tags. I am trying to create a tab-control element that is easy to set up. Todo this I create a parent element called...

Latex table rotate is not working

I am trying to rotate table but I could not do that. See my code below, I tried with rotate, sidewaystable and landscape. Nothing is working for me. Either it gives me error or work like the...

How can I rotate an overlay image on Google Maps?

I'm trying to place a series of overlays onto a Google Map. I'm following along with the sample code for ground overlays, but that only allows me to dictate image placement using...

Why does VBA code run faster when called from a standard module (instead of a userform)?

Alternate Title: Why does pressing Esc make my MS-Word macro run faster While waiting for some code to run I stumbled across something interesting. Code runs slow... press Esc code runs fast....

Place child widget in certain location on parent

I'm trying to make a QT application that works as a Dungeons and Dragons character sheet. As a result, I need to have a widget inside another widget. For example, a stat block needs to look like...

ImportError: No module named 'environ' with gunicorn on django

I'm using Ubuntu 14.04 with Django 2.0.5 with Django Cookiecutter. I am trying to start a Django server on DigitalOcean and trying to bind gunicorn to 0.0.0.0:8000. python manage.py runserver...

Three.js OrbitControls with azimuth close to +/-180 degrees

I have a situation where I use an OrbitControls to have a limited view in a room/space. The OrbitControls gets min/max values for azimuth and polar angles to control the view. The OrbitControls'...

Create a Multi-Layer Tiff image through Pillow?

I've been trying to see if I can speed up a part of a pipeline where we're atlassing images (previously using Photoshop which is horrendously slow due to GUI updates) and I'm looking to see if I...

Object or With Variable Not Set

Option Explicit Public Sub consolidateList() DeleteTableRows (ThisWorkbook.Worksheets("Master").ListObjects("MasterSheet")) FillTableRows End Sub Private Sub FillTableRows() 'set...

What did super.paintComponent(g) do?

So in the past few days I've tried to implement an easier version of a graph plotter. One big problem I was confronted with was a bug that occured on repainting. Basically I've designed my program...

Pandas DataFrame to Excel report using a template

Is there a Python library that allows me to export a Pandas DataFrame to an "Excel report" using some sort of template to format the Excel file (conditionally colourise cells, customise fonts and...

Konva Textpath: how does it calculate x and y position

EDIT: there was a bug in the code, so this question is not valid. I'm trying hard to get Konva.textpath to work. The problem is that the x & y point seems completely random. There are 3 examples....

Trying to improve my backup GUI in Python

I'm trying to make a program to help me backup in one click, i've been on youtube and site trying to understand how to write this and so far it ok. my code is super sample and i just wanted to...

How do you unserialize multiple strings of data with a loop?

Problem I have a large csv file that I've exported from a mysql database. One of the file's columns has serialized strings in it. I'm trying to find a way to: Unserialize each string (which lives...

Alternative to sscanf that makes both Linux and Windows happy

I have a truly ancient punch-card format and a C++ code that reads it using sscanf as follows, sscanf(longstr1,"%2d %5ld %1c %10s %2d %12lf %11lf %7lf %2d %7lf %2d %2d %6ld ", ...

XPath how to select specific div inside of table row

I am trying select specific div located in <td></td> tags mark based on text located in another <td></td> tag. Probably html code will describe it easier: <tr> <td> <div...

Areas covered by Flexbox which are difficult or impossible to achieve with Grid

It is wildly highlighted that Flexbox is for 1-D and Grid for 2-D but I have not found a clear explanation why Grid could not be used for 1-D and replace Flexbox. The closest I came to is But you...

How to use tf.keras Sequential with tf.distribute.ParameterServerStrategy and tf.train.MonitoredSession?

I'm trying to set up a really easy Minimal Working Example for the following: Use a model built with tf.keras in a tf.train.MonitoredSession using a tf.Server with a...

How to re-enable or use storyboard in Xcode?

I inherited an app to work on and the previous engineers didn’t use the storyboard and instead hard coded everything in. Now I’m at the point where I’m I have to change format and placement...

Turning matplotlib grid of shaded values into a series of bar charts, one per row?

Using matlotlib, I can create figures that look like this: Here, each row consists of a series of numbers from 0 to 0.6. The left hand axis text indicates the maximum value in each row. The...

Placing Labels in nested categorical stacked bar with Bokeh and Pandas

I am trying to replicate a chart like the following using a pandas dataframe and bokeh vbar.: [Objective] 1 So far, I´ve managed to place the labels in their corresponding height but now I can't...

Can we neatly align the regression equation and R2 and p value?

What is the best (easiest) approach to add neatly to a ggplot plot the regression equation, the R2, and the p-value (for the equation)? Ideally it should be compatible with groups and...

Angular FxFlex Layout

I'm learning FxFlex instead of using Bootstrap, along with Angular Material. And, I'm pulling my hair out. Not a lot of documentation and examples online and the ones that exist aren't as helpful....

Plotly Sankey: how to avoid autoplacing all nodes to the right?

Plotly Sankeys fill all the available space. If some "branches" have 3 levels (Node 0 -> Node 1 -> Node 3) and others only two (Node 0 -> Node 2), the final nodes (Node 2 and Node 3) are...

Let's Encrypt SSL with NGINX + Apache Docker swarm NET::ERR_CERT_INVALID

I was wanting to setup Let's Encrypt on docker swarm with NGINX and Apache2... The stack was working before ssl. And the classic NOW ITS NOT WORKING! So I have listed my configs and what I'm...

Improving MLKit Object Detection

Question: Using MLKit, I am familiar with how to customize the classifier model, but is there any way to customize or retrain the object detection model? Background I'm working on a robotics...

Creating a new column in a Pandas DF that groups by age category

I am new to coding so I apologize for asking what could be a dumb and easy question. I have searched the web and read documents but I could not find an answer and after 4 hours I am hoping for...