Categories
Mastering Development

SQL: convert military time to standard time

I’m creating a SQL report that tracks agent login and logout times. The request is to add a threshold to login time to track agents coming in late. I’ve separated the DATETIME field to be able to add the threshold, but now I only get military time instead of standard time. Here’s my query: SELECT […]

Categories
Mastering Development

R: data.frame will not accept row input and changes my variables into N/A values

New to R. I’m trying to read in excel file names and populate a data.frame: Let’s say I’ve already read in a file name counter <- 1 #simplifying as this would be a for loop that would start with a counter at 1 file_name <- “excel file name” extension <- “xlsx” status <-“successful” I initialize […]

Categories
Ask Games RPG Games

What does the OGL mean for things based on d20 elements, but which aren’t games?

I’ve been thinking lately about how the Overlord novels/manga/anime are so clearly based on 3e/3.5e/d20/whatever, yet were still commercially published–and, as far as I’m aware, suffered no legal action from Wizards of the Coast. Much of the “mechanics” of the series (at least from what I’ve seen) are entirely possible within the parts of d20 […]

Categories
Mastering Development

How to fix this? My flexbox does not shrink correctly

I want my audio-player to shrink correctly to the full-width of my page. I did not figure out what I have missed or what I do wrong… (How it looks now) I want to use HTML custom controls to draw my JSON Audio-player. Instead of putting an array of pre-made properties, I try in the […]

Categories
User Help

Session problems with User ID [closed]

I’ve been trying to make a request.php that requires the UserID of the session to proceed, but the problem is that session doesn’t recognize the UserID from my Users table. When I try to output session variables, the UserID value is blank array(6) { [“Email”]=> string(20) “garr251225@gmail.com” [“UserID”]=> string(0) “” [“Full name”]=> string(13) “Bulatov Timur” […]

Categories
Mastering Development

Failling to generate and scp a CSV from browser app in PHP

I am trying to create a CSV file from an array to be sent via SCP to another machine to be stored and executed using a crontab. The issue I face lies in the fact that the CSV is always downloading from the browser instead of following the direction I gave in the function. It […]

Categories
Mastering Development

“command ‘gcc’ failed with exit status 1” when running %%cython in jupyter notebook

I have installed cython with conda cython installation After restarting the kernel, I have also loaded it without error using %reload_ext Cython. However, when I try to run the following code %%cython import numpy as np cdef int a = 0 cdef int g[10] cdef int i for i in range(10): g[i] = a a […]

Categories
Mastering Development

Missing and inaccurate payload in Rails with ActiveModel and Forms

I have a model for Organisation like class Organisation include ActiveModel::Model attr_accessor :orguid, :title, :firstname, :lastname, :role, :telephone, :extension, :email, :name, :branch, :address1, :address2, :address3, :city, :state, :country, :zip end In my controller I have the following actions: # frozen_string_literal: true require ‘cgi’ require ‘json’ class OrganisationsController < ApplicationController include Secured before_action :set_api, only: %i[dashboard […]

Categories
Development

How to fix the error No serializer found for class java.util.logging.SimpleFormatter and no properties discovered to create BeanSerializer

In java, I am trying to access a Spring Boot Microservice using the following code: try { CircularsSaveParams circularsSaveParams; circularsSaveParams= new CircularsSaveParams( request, principal, session, locale, mav,souqBean); //creating microservice params HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); HttpEntity<?> entity = new HttpEntity<Object>(circularsSaveParams,headers); ResponseEntity<Boolean> responseEntity = restTemplate.exchange(“http://localhost:8084/circular-save”, HttpMethod.POST, entity, Boolean.class); //String employeeDivision= restTemplate.getForObject(“http://employee-division-service/”+id+d, String.class); status= responseEntity.getBody(); } […]

Categories
Development

How to get input text from html form with Google Apps?

My Google Apps script submits form inputs from an html file onto the specified Google Sheets spreadsheet. Once this is done, it runs a function that sends an email notification to the specified recipient onFormSubmit. Everything works fine, but I’m trying to get the specific form inputs (name, phone, extension, email, etc.) and send them […]