Latest Questions

SQL Server : unable to save decimal digits

I am facing a peculiar problem. I have a few tables in SQL Server where I have properly declared a few columns as decimal(18, 2). Unfortunately, whenever, I sav

Encrypting a video file with the 3DES algorithm

I am encrypting a video file using 3DES algorithm and ffmpeg library.In my program, I use two channels, each connected to its own instance of FFmpeg. Basically,

Why do new variable names need to be on the left of the equals (=)?

I am curious as to why a certain format produces an error while the other doesn't. Code that works: name = input().split() if len(name) == 3: first_name, mid

Measure bandwidth usage of application using C#

My application uses two separate ethernet-based devices. Each device is assigned a static IP. I want to show the bandwidth usage by each device separately. The

How to combine lines of code into one line?

I have 2 lines of code here but i want to combine all 2 lines into 1 // How to combine these 2 lines here $product = $this->productService->searchProduct(

ERROR LARAVEL EMAIL: Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1

Greetings to the community! I have recently developed a web page with Laravel 9.X, which works correctly in local, but when I upload it to my Host, I am having

meta description tag automatically

I am trying to add meta tag for description when it is missing in the posts. I want first 150 characters to be considered as description. I tried with multiple

How to change the aspect ratio of image and upload to Imgur?

I have a drop zone where you can drop or select images. And I am using a background-image property to display the image. I am building a post scheduler for Inst

How to get Enum values Array in PHP

I have Enum Class. <?php namespace Enum; enum Status:string { case ACTIVE = 'active'; case ARCHIVE = 'archive'; case INACTIVE = 'inactive'; }

Does Okta Sign In Widget Validation Summary Error Message support hyperlink?

We need to customize the Okta Sign In Widget Validation Error for user account locked out. we have updated the error below: ‘error.auth.lockedOut’:

SOAP url to service

I have to make an SOAP web-service and struggles to get the path right: I am bound to use SOAP and I wish (The requirement states) the path to be: http://localh

Data structure for iterating between players

I am new to programming, so I started working on a small guessing game for n players In theory they are supposed to take turns trying to guess some String, I've

Can't set default image django

I was create a profile for user. I done set up all the Media and Static. But when I set default and upload_to in image field, it error not found image. I had tr

How bad it is to lock a mutex in an infinite loop or an update function

std::queue<double> some_q; std::mutex mu_q; /* an update function may be an event observer */ void UpdateFunc() { /* some other processing */ std

Anylogic transitions - Rate condition

I was trying to create a transition between two states with a rate logic: I want that event to happen x times randomly, but only for a limited model time interv

minimum value in dataframe greater than 0 in R

I have a dataset with ~2500 columns in R, and I am trying to find the minimum value greater than zero from the entire data frame. Once I have found this number,

is it possible to insert a gzipped string (Json string) as a varchar in postgres

Will I run into any weird byte sequence if I attempt to store a binary (a gzipped Json string) in a varchar column. Or Should I base64 encode it after compressi

How to add GCP role to the grantable list?

I am trying to get a service account set up in GCP so I can use docker pull from my personal shell as well as from Google Cloud Shell, where it works automagica

Select image for flutter web on mobile device

Im currently using https://pub.dev/packages/file_picker for this function FilePickerResult result = await FilePicker.platform.pickFiles(); if (result != nu

Can't edit Definded step filters in eclipse

I want add aop packages to improve debug experience, so i go to Preferences -> Java -> Debug -> Step Filtering, enable the "Use Step Filters" and add a

How to make GPR accept multiple sources in the same project having the same file name?

I set out to rewrite an OSS project in C piece by piece to Ada. First stop being to replace the build system with GPR. On doing so I stumbled upon a problem: it

How to make where query in HttpGet request in .net core web api

I'm trying to make a HttpGet request in my ASP.NET Core Web API. The problem is that I don't know how to make get request with query. This is my model: public c

'WordListCorpusReader' object has no attribute 'add'

enter image description here Code: import re import nltk nltk.download('stopwords') stopwords = stopwords stopwords.add('will') wordcloud = WordCloud(width = 3

Adjust place of downloading buttons of a DT table in Shiny

please see this picture I have a DT table in the shiny. I added buttons for downloading the content of the table (Copy, CSV, Excel, PDF). But I would like to ch

Sampling texture with MTLPixelFormat.r32Float

I have a texture with MTLPixelFormat.r32Float, and I would like to sample it with linear interpolation using texture.sample(mySampler, float2(u, v)). I am confi

Call setState from class that extends StatefulWidget

If I update a variable using class object, the build method should get called, but I am unable to call setState from the StatefulWidget class. class CustomError

get a blank white screen with only app.vue items but not other component

i have an app build on vuejs and build with cordova. after i cordova build ios it successfully build the app but when i cordova emulate ios it is only showing a

fread a float array after a fwrite immediately will cause a file offset problem

Initial the integer array[] right line 21 will cause the failure of the data[] array fread from data.txt . int main() { FILE * file0 = NULL;

Avoid using deprecated API for UtteranceProgressListener

I am using android.speech.tts.TextToSpeech and would like to have an UtteranceProgressListener that does not override the deprecated onError but rather uses the

Xamarin Shell: Redirect to different page and remove current page from nav stack

I imagine this is pretty straightforward, but I'm struggling to make sense of how to do it via the documentation... I've got a tab page, that is opened from a f