Categories
Mastering Development

ctime functions in C returns same string for differing values of atime, mtime, and ctime?

When using the stat() function in minGW-W64, and the struct it returns, here info, why does ctime return the same exact strings for info.st_atime, mtime, and ctime, even though the their integer values are different? If localtime is used to get each time component separately, the results differ and appear accurate; that is, they match […]

Categories
Mastering Development

FFmpeg HLS select streams and only retrieve their data

Opening a HLS stream using avformat_open_input retrieves data from all streams and I would like to only retrieve data from some of them. Is that possible? Consider the following MWE: #include <libavformat/avformat.h> int main(int argc, char **argv) { AVFormatContext *inFmtCtx = NULL; AVPacket packet; const char *inUrl; int ret; if (argc < 2) { return […]

Categories
Mastering Development

Covid Death Predictions gone wrong [closed]

I’m attempting to write a code that will predict fatalities in Toronto due to Covid19…with no luck. I’m sure this has an easy fix that I’m over looking, but I’m too new to spark to know what that is… does anyone have any insight on making this code run-able? Data set is here:https://open.toronto.ca/dataset/covid-19-cases-in-toronto/ Here is […]

Categories
Mastering Development

R Shiny: Switching between tabPanels causes errors

I have created an App that will use an randomforest model to predict the type of Species in the Iris dataset. The idea is that a user can select a value for the other varaibles using input widgets, which the model then use to give a prediction. This all works fine. I recently decided to […]

Categories
Arduino Ask Engineering

Read Comma Separated String

I have a string that looks like this "10.00,20.00,-50.00," in which these are angle values and they have 2 decimals and can be negative. I want to separate them into 3 separate floats. Here is my current code in which I use sscanf. All I get is 0.00 and have no idea why. Any help […]

Categories
Mastering Development

rearranging cell content based on their position

All data in the column A, content in each cell separated by comma. The numbers are from 1 to 4 or 1 to 1 to 5. I would like to create the column B from column A. Content of A2 is "4,1,2,3". I have to generate the content of B2 in the following way: Searching […]

Categories
Mastering Development

How to add close or back button in Xcode using swift language when a file such as pdf, ppt .. etc. is opened?

First of all I’m new in swift and objective c languages. My problem is that I have a WebView app for iOS device using swift language , the app when opens a document file such as pdf, ppt,…etc. there is no option to close the file or back to previous. Just googled the problem and […]

Categories
Mastering Development

Novice C question concerning building strings using pointers in sprintf and snprintf

In C, if j is a pointer to the first position of the numerical representation of a date held in a portion of a JSON string such as "{\"date\":1605924795664}" held in a character array (thus, pointing to "1"), in the code below, is there a way to build the string in sprintf using the pointer […]

Categories
Mastering Development

Loop Function to find 14 digit numbers and run a script for those results – Javascript

Preface: I have two textareas. I want to paste a list of unformatted phone numbers to produce a list of phone numbers in a certain format. I figured out how to remove dashes, commas, spaces and letters to just produce the format I need. (I made it add a comma and a space and remove […]

Categories
User Help Web Apps

How do I combine multiple results of two filter formulas in Sheets?

Share Link: https://docs.google.com/spreadsheets/d/1-SoQS5Y4EvExbYTOjBGdx7EAq4OYlS0sPENFsblrTr4/edit?usp=sharing Formula Currently: =CONCATENATE("[",FILTER(‘BLS – Occupational Employment Statistics’!B:B,’BLS – Occupational Employment Statistics’!H:H=A2),",",FILTER(‘BLS – Occupational Employment Statistics’!Z:Z,’BLS – Occupational Employment Statistics’!H:H=A2),"]") Situation I have a spreadsheet from the Department of Labor. In in is the wages for all the careers they track broken out by state. The careers are signified with a SOC Code. […]