Quantcast
Channel: Recent Questions - Stack Overflow

Reading filenames into an array

I want to get a list of files and then read the results into an array where each array element corresponds to a file name. Is this possible?

View Article


Changing polygons' colors in Maya via Python

The only way I know is to use a slider:import maya.cmds as cmdscmds.colorSliderGrp( 'polygonColour', label = "Colour", hsv = ( 1, 1, 1 ) )Then taking the RGB value from that:rgb = cmds.colorSliderGrp(...

View Article


Jboss GC not freeing up memory

We have an an enterprise application deployed in wildfly 8.2 with min & max heap set to 1.5 GB. One of the actions is causing too much objects to be loaded into the heap. Although the object is...

View Article

Init firebase with FirebaseOptions

I want to initialise Firebase with FirebaseOptions without google-services.json, I'm following the blog post here https://firebase.googleblog.com/2017/03/take-control-of-your-firebase-init-on.html. I...

View Article

SBOMAILER configuration sap business one

I'm just curious about the SBO Mailer and gmail smtp server setting. How can I send email directly from sap users email id instead of only using the sbomailer username email id?Thanks.Regards

View Article


Laravel "Symfony\Component\HttpKernel\Exception\HttpException" error

In my Laravel, Vue JS application, I'm getting this type of error after I transferred my application to our server.Symfony\Component\HttpKernel\Exception\HttpExceptionI saw the same problem here but...

View Article

How can I use page break in react-to-print?

I have a requirement to turn some print a page which is created using Material UI react components. It's working well and I'm able to go to the print screen. The document I need to get printed goes to...

View Article

How can I generate a QR code from an URL?

so i building a url shortner which takes the url from python and generates a QR code in along with the shortUrl, i am using jinja2template for the UI, as i am very new to JavaScript the below code is...

View Article


How to use numeric value in WHERE clause using dynamic query

I use a dynamic query:DECLARE @p_Prefix = 'SIN', @p_DetId bigint = 1243, @sql nvarchar(max);SET @sql = 'SELECT * FROM cds'+ @p_Prefix +'Det WHERE sindetid = '+ @p_DetId;I get this error:Msg 8114, Level...

View Article


AssertJ Java: multiple conditions assertion

is it possible to write in Java AssertJ multi-conditions assertion which will pass if at least one of conditions met? (similar to OR operator)I want something like this:assertThat(listOfStrings)...

View Article

Working on an interesting problem in a parent child object relationship...

Both the parent and child have different validators via validate… or validates…I want to store the result of each validator across all of themThe valid? command is run on the parent (edited)When I run...

View Article

Retrieve schema name created with databricks asset bundles

I´ve created a schema in DAB with this code in my yml file.resources: schemas: my_schema: name: my_schema_name catalog_name: my_catalogThe schema is created with a prefix that is a combination of the...

View Article

Image may be NSFW.
Clik here to view.

SPI Communication Issue: MISO Frame Corruption or Overlap Between Two...

I’m currently working on SPI communication between two microcontrollers.The MOSI frames are working as expected; however, I’m facing an issue on the MISO line. It appears that the end of the frame is...

View Article


Unable to import pyspark.pipelines module

What could be a cause of the following error of my code in a Databricks notebook, and how can we fix the error?ImportError: cannot import name 'pipelines' from 'pyspark'...

View Article

Adjacent linear gradients have small gaps after scaling

.bg { position: relative; --r: 32px; --corner-size: var(--r) var(--r); --corner-gradient: black 0%, black calc(var(--r) - var(--r)), transparent var(--r); --fill-gradient: transparent 0%, black...

View Article


Fortran: “Type mismatch in argument ‘iwk’; passed REAL(8) to INTEGER(4)” when...

I’m trying to compile myradex (a Fortran-based molecular excitation code, part of the pyradex package) using gfortran on macOS.During compilation, I get this kind of error:opkda1.f:1309:72: 1309 | 2...

View Article

Is it possible to auto-adjust the zoom when rendering large leaflet maps into...

With the following code one can generate a leaflet map:library(leaflet)library(mapview)library(dplyr)library(sf)bbox <- st_bbox(my_polygon)print(bbox) xmin ymin xmax ymax -0.5509286 39.4419540...

View Article


PlayerPrefs won't update between simultaneous players

I am currently developing a WebGL app with Unity and using PlayerPrefs to try and make it so that a unique user id is generated for a player and used to connect to a remote lobby system.The problem I'm...

View Article

Continue in C jumps the iteration of the outer loop?

I'm implementing the K&R Exercise 3-3 (expand()) that expands shorthand notations like a-z into full ranges.In this version, I'm trying to handle overlapping ranges like a-b-c by using a last...

View Article

How can I keep track of expired time in a timeout{} step?

Say I have this recursive function in a Jenkins pipeline. It's initially called by another function, but then calls itself recursively.def recursiveFunction(final Integer timeout) { static Integer...

View Article

Troubleshooting Pelican error: 'article' is undefined

I tried to create a simple article template for my Pelican blog. However, it keeps throwing the error:"'article' is undefined."Why is this happening? I've traced the problem to the article.title and...

View Article


Define a concept in C++ for specific members

I have several structs in the formstruct MyStruct1 { std::string myName; // ...}but not all of them have a member of type std::string and variable name myName.I'm writing a template function, but I...

View Article


Aggregate a group by queryset in Ddjango?

I'm working with time series data which are represented using this model:class Price: timestamp = models.IntegerField() price = models.FloatField()Assuming timestamp has 1 min interval data, this is...

View Article

memcpy_async does not work with pipeline roles

If I do a memcpy_async on a per thread basis, everything works fine.However, if I do a memcpy_async on a thread_block` granularity, then I cannot get it to work.I based my code on the CUDA pipeline...

View Article

Image may be NSFW.
Clik here to view.

Ngx-image-cropper - Zooming out scales the photo down instead of keeping...

I have been using ngx-image-cropper library for a few days now to crop images with a certain aspect ratio. Since I want to prevent uploading low-quality images, I continuously check whether the cropped...

View Article


Prevent a SQL Trigger Results to be shown on targeted database

I have created a AFTER INSERT, UPDATE, DELETE Trigger in SQL Server in Database 1 on Payment table which checks existence of Payment Id in Database 2 Voucher Table. This prevents accidental changes...

View Article

In a concept, how to check that a member is static?

This is similar to Understanding concepts. Check if a member is static, but that Q&A only asks why it doesn't work, and here I'm asking how to fix it.Consider the following code:struct A{ static...

View Article

How to get the number of rows from multiple related tables with one query

Sorry if this has been asked before, but I'm a little stumped here.I have four tables, one primary and three dependents, let's call them A, B, C and D.All tables have the column ID, with ID being the...

View Article

Show a LocalHost page when clicked on URL/123

So I know how to force a URL to localhost but it's very cringe to download the full site and show the modification I want it done on it.So instead of copying and downloading the whole site, I want to...

View Article



Redirect stderr in callr::r_bg to file without locking the log file

My task is rather simple, I want to push a long running function to the background using callr::r_bg. This function makes heavy use of cli functions which outputs to stderr.Thus, I want to redirect...

View Article


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>