
Halo guys. So I am trying to finish up my portfolio website which is being done in React by running the build command. The build runs just fine but the issue comes in the output. My homepage and the cards I use in my about page initially have a text overlay but in the build version the overlay is...

I've been attempting to clean up my HTML file by separating a 2.5k line SVG into it's own file. However, using the tag has been unsuccessful so far. I attempted and succeeded having the the SVG appear with an tag, but it had none of my CSS animations working. Any pointers on how to get this wor...

I have an error about MySql migration in my .net core entity framework issue.
Versions
dotnet - version = 3.1.403
mysql version = 6.10.4
I would be glad if you could help, thank you.
Error Code

Please, can any explane what i have to do?
There is such task:
The Checksum is a series of four ASCII-hexadecimal characters which provide a check on the
integrity of all the characters preceding it, including the control characters. The four characters
represent a 16-bit binary count which is th...

I'm trying to make a table from a list of data using pandas.
Originally I wanted to make a function where I can pass dynamic variables so I could continuously add new rows from data list.
It works up until a point where adding rows part begun. Column headers are adding, but the data - no. It eith...

According to my experience with Tensorflow and many other frameworks, neural networks have to have a fixed shape for any output, but how does Google translate convert texts of different lengths?

I'm reading the book Grokking Deep Learning. Regarding weight updates during training, it has following code and explanation:
direction_and_amount = (pred - goal_pred) * input
weight = weight - direction_and_amount
It explains the motivation behind multiplying the prediction difference with inpu...

I have implemented a Negamax algorithm with alpha beta pruning which seems to work fine in its basics. However, by adding some move ordering with internal iterative deepening it somehow gives me a different outcome at depth 6. So my question is simply, can move ordering change the outcome of an a...

I have deep interest in quadcopters. I need ideas for designing of an experiment. I have a programmable quadcopter. I can autonomously land it on a staitonary landing pad with a vision algorithm. Assume that, this algorithm is simply detecting markers. So, my vision algorithm is correctly working...

producing heatmaps from a deep neural network is a famous task. your input image, then take gradient and produce heatmap. Now what I want to do is to evaluate how accurate these heatmaps are. for example, I want to produce heatmaps from 2 networks and compare which one produces better results. Do...

I am trying to resolve below question in order to prepare for an interview xD
An XOR linked list is a more memory efficient doubly linked list.
Instead of each node holding next and prev fields, it holds a field
named both, which is an XOR of the next node and the previous node.
Implement an XOR...

This is my first attempt to learn Rust by applying it for a problem that I assume is suitable for the language. It's the Intcode computer from https://adventofcode.com/2019.
I've implemented all the features of the computer, and the result is the following:
use crate::ComputeResult::{CanContinue,...

Here's Some Context
So I was messing around in Minecraft and decided to make some code that basically makes you god. While making the code and testing it I noticed there were some problems that I didn't know how to fix, and came here to see if there were at least a semi-professional coder that co...

I am in learning process, even though its a very easy project, I still want experts to please review it and share the improvement that can be done, if anyone wants to use other modules to shorten the code then you can also use them, I already thank you to the people who wants to spend their preci...

I was making a python chess bot backend. Target was that it can works like a Stockfish(works from console), but another way. A brute-force way.
So the idea was that bot has complexity variable(which defines how many layers deep bot needs to calculate). From results bot needs to choose the option ...
Artificial intelligence helps scientists make discoveries, but not everyone can understand how it reaches its conclusions. One UMaine computer scientist is developing deep neural networks that explain their findings in ways users can comprehend, applying his work to biology, medicine and other fields.
Scientists from the University of Granada have applied artificial intelligence techniques to the analysis of huge volumes of data from Twitter, during the previous U.S. election campaign to create a political forecasting system
In recent years, artificial intelligence (AI) tools, including natural language processing (NLP) techniques, have become increasingly sophisticated, achieving exceptional results in a variety of tasks. NLP techniques are specifically designed to understand human language and produce suitable responses, thus enabling communication between humans and artificial agents.
Attempts to fix clinical prediction algorithms to make them fair also make them less accurate.
A pre-emptive memory management system developed by KAUST researchers can speed up data-intensive simulations by 2.5 times by eliminating delays due to slow data delivery. The development elegantly and transparently addresses one of the most stubborn bottlenecks in modern supercomputing—delivering data from memory fast enough to keep up with computations.
Intrusion detection systems are the invisible intelligence agencies in computer networks. They scan every packet of data that is passed through the network, looking for signs of any one of the tens of thousands of different types of cyberattacks they're aware of.
Ph.D. candidate Eunice Njeri Mwangi of the department of Industrial Design has investigated how intuitive gaze-based interactions between robots and humans can help improve the effectiveness of robot tutors. The researcher successfully defended her PHD-thesis on Wednesday 28th of October 2020.
From 'The Terminator' and 'Blade Runner' to 'The Matrix,' Hollywood has taught us to be wary of artificial intelligence. But rather than sealing our doom on the big screen, algorithms could be the solution to at least one issue presented by the climate crisis.
An artificial intelligence technique—machine learning—is helping accelerate the development of highly tunable materials known as metal-organic frameworks (MOFs) that have important applications in chemical separations, adsorption, catalysis, and sensing.
Most modern phones and cars are programmed to "learn" from their environment—sounds, facial features, and even common driving routes. Patterns of recognition allow these systems to accurately predict and suggest preferred options in the blink of an eye.
The Internet of Things (IoT) is already all around us. Online devices have become essential in industries from manufacturing and healthcare to agriculture and environmental management, not to mention our own homes. Digital consulting firm Ovum estimates that by 2022 Australian homes will host more than 47 million IoT devices, and the value of the global market will exceed US$1 trillion.
Computer scientists at Columbia Engineering have shown for the first time that it is possible to analyze how thousands of Android apps use cryptography without needing to have the apps' actual codes. The team's new tool, CRYLOGGER, can tell when an Android app uses cryptography incorrectly—it detects the so-called 'cryptographic misuses' in Android apps. When given a list of rules that should b…
Researchers at the Cambridge Cybercrime Centre have revealed what they've learned from analyzing hundreds of thousands of illicit trades that took place in an underground cybercrime forum over the last two years.
Engineers at Southwest Research Institute were able to interfere with the charging process of an electric vehicle (EV) by simulating a malicious attack as part of an automotive cybersecurity research initiative.
Jan Boromeusz is a recognized Nest Home hacker with what many in the press describe as a proven track record in discovering new Google Nest features before they are announced or released by Google. He makes his announcements via YouTube videos. In his latest effort, he has created a video that shows what he describes as Google considering the possibility of eliminating the "Hey Google" hot word…
Motorists with smartphones could help highway chiefs maintain road quality by sending "crowdsourced" data from their mobiles that would allow engineers to assess when carriageway repairs are needed, according to a new study.
New software developed at EPFL can help architects to design building structures that incorporate both new and reused components, thereby lowering their environmental impact.
Google reported a new zero-day vulnerability in Windows Friday that allows for privilege escalation and sometimes resulted in a crash. The vulnerability is a buffer overflow type in a driver found in Windows versions 7 and newer.
Artificial intelligence (AI) holds real potential for improving both the speed and accuracy of medical diagnostics. But before clinicians can harness the power of AI to identify conditions in images such as X-rays, they have to 'teach' the algorithms what to look for.
A team of researchers affiliated with several institutions in Germany and the U.S. has developed a deep learning algorithm that can be used for motion capture of animals of any kind. In their paper published in the journal Nature Neuroscience, the group describes their tracking tool called DeepLabCut, how it works and how to use it. Kunlin Wei and Konrad Kording with the University of Peking an…
Combining multiple poor quality CCTV images into a single, computer-enhanced composite could improve the accuracy of facial recognition systems used to identify criminal suspects, new research suggests.
Japanese computer scientists have developed a special purpose computer that can project high-quality three-dimensional (3-D) holography as video. The research team led by Tomoyoshi Ito, who is a professor at the Institute for Global Prominent Research, Chiba University, has been working to increase the speed of the holographic projections by developing new hardware.
According to the latest research results, the presence of simple hyphens in the titles of academic papers adversely affects the citation statistics, regardless of the quality of the articles. The phenomenon applies to all major subject areas. Thus, citation counts and journal impact factors, commonly used for professorial evaluations in universities worldwide, are unreliable.
Researchers at Hong Kong Baptist University (HKBU) have partnered with a team from Tencent Machine Learning to create a new technique for training artificial intelligence (AI) machines faster than ever before while maintaining accuracy.
Machine learning has the potential to vastly advance medical imaging, particularly computerized tomography (CT) scanning, by reducing radiation exposure and improving image quality.
As facial recognition technology use generates intense scrutiny, a new system unveiled at Washington's Dulles airport is being touted as a "user friendly" way to help ease congestion for air travelers.
Seven European consumer groups filed complaints against Google with national regulators Tuesday, accusing the internet giant of covertly tracking users' movements in violation of an EU regulation on data protection.
A security breach inside the Marriott hotel empire compromised the information of as many as 500 million guests worldwide, exposing their credit card numbers, passport numbers and birth dates for as long as four years, the company said Friday.
A news report Friday said many smartphone apps were sending highly personal information such as menstrual cycles and body weight to Facebook, without notifying users.
Malicious apps from a campaign called "Agent Smith" have been downloaded to 25 million Android devices, according to new research by cyber-security firm Check Point.
Microsoft on Friday announced that a major update to its Windows operating system will be released globally on October 17.
Netherlands-based startup Travis is out to make people understood no matter what language they speak.
A new video game, designed by researchers at the University of Cambridge, gives teenagers an understanding of electricity by solving a series of puzzles in a bid to encourage more of them to study engineering at university.
Since designing and launching a specialized workflow management system in 2010, a research team from the US Department of Energy's Oak Ridge National Laboratory has continuously updated the technology to help computational scientists develop software, visualize data and solve problems.
Google will kick off its Stadia streaming service to challenge the video game industry in November—but initially only as part of a $130 bundle that includes hardware and a pass for a friend.
System developed at MIT CSAIL aims to help linguists decipher languages that have been lost to history.
Company announces a five-year collaboration.
Five years in the making, MIT’s autonomous floating vessels get a size upgrade and learn a new way to communicate aboard the waters.
Letting an algorithm decide which maintenance holes to test for evidence of coronavirus could improve pandemic containment efforts.
Machine learning model predicts probability that a particular urinary tract infection can be treated by specific antibiotics.
Researchers have located a shared hot spot — on the HLA-B gene — in the immune system in people who say they have penicillin allergies.
Europa’s potential “ice glow” could help scientists map the chemical composition of its surface — and the ocean underneath.
An analysis of 94 COVID-19 cases shows that the mRNA-based vaccine can protect people from getting sick, though the trial is ongoing.
A weird form of life, a weird form of water and faster-than-light neutrinos are among the science findings that have not survived closer scrutiny.
The popular encrypted messaging app now lets you automatically make chats vanish after a week, but look out for a few caveats.
A hacker identified only as Individual X had been sitting on a cryptocurrency gold mine for seven years before the IRS came knocking.
Plus: Ransomware hits Capcom, the US seizes Iranian domains, and more of the week’s top security news.
Donald Trump has not yet conceded the presidential race, and may not any time soon. But there's no evidence whatsoever of a “stolen” election.

I am trying to make a dynamically sized form for a web-page I am creating! I have had no issue passing the information needed to the 'action' page through a form (including two arrays), by setting the name of all dynamically created forms to be name[i].
To get the data from the array in the 'acti...

I'm trying to make a dynamic testimonial review page that shows a new review after you click the arrows.
I Can't figure out why after you click through the array, it pushes an error of "Uncaught TypeError: Cannot read property 'userName' of undefined"
I've tried using users.length - 1, but that s...

I have a table with the name "order". There is a field with 1 character with the name adressFinder('*', '%', '+') in my table. If there is a '+' I want to Select the field "adress" from the table "customer". If there is a '%' I want to Select "adress" from the table "customerTwo" and if there is ...

I have strictly followed the Application Registration for AIP Scanner detailed on the following link.
https://docs.microsoft.com/en-us/azure/information-protection/rms-client/client-admin-guide-powershell#how-to-label-files-non-interactively-for-azure-information-protection
But every time i ran t...

I am working on the Laravel rest api project project and came across a problem. I would like my function on my ApiController.php to bring me json object and remove html tags,. so i tried this method, How to remove html tags form response json laravel
class ApiControllerextends Controller
{
//...

When I drag and drop some file on any file with .xyz file extension, my .exe should be started with both files as parameters.
However, whats happens when I double click the same .xyz file, should not be changed (some other application opens it).
Can this be done just by registry settings, without...

I'm playing around with making a Lambda that forwards records from one Kinesis stream to another. The other stream being in another AWS account. The code is the following:
import base64
import os
import boto3
def get_kinesis_writer_credentials():
sts_client = boto3.client('sts')
assumed...

I have the following service implementation:
'''
@Transactional
@Override
public Contract createContract(ContractResource resource) {
Integer companyId = companyService.getUserCompanyIdBy(resource.getUserId());
Contract contract = Contract.builder()
.contractTitle("Contrato ...

I'm a newbie in Twig's world so i have a question. I'm trying to make a dynamic "Request Price" form for every product. Should be like: Frist Name, Last Name etc. and last case will be a text area sounds like "I want a price for this: PRODUCT ID"...
The problem is i can't find a way to pass a jqu...

MainActivity.java
I'm new to android studio and I'm trying to make a simple slideshow app with a spinner that sets the duration of the slideshow. I followed a couple YouTube videos to the dot and they didn't have any errors. The only thing I changed is setting the period in the handler taking it ...

We are doing OpenShift Container Platform 4.3 using bare metal installation on VMWare environment.
As per procedure, we have created all 3 master node, 2 worker nodes and 1 bootstrap node with IGN file and RH CORE image.
We can see container download image in bootstrap and master node.
DNS and HA...

We have some tables in our database-design which include a column named "PK_ID". This columns are from type "uniqueidentifier" (Guid). The uniqueidentifier points to an entity in another table. So it is basically a Foreign Key column.
The special thing is that there is no constraint on this colum...
Erica Klarreich has been writing about mathematics and science for more than 15 years. She has a doctorate in mathematics from Stony Brook University and is a
A small community of mathematicians is using a software program called Lean to build a new digital repository. They hope it represents the future of their field
Kevin Hartnett is a senior writer at Quanta Magazine covering mathematics and computer science. His work has been collected in the “Best Writing on Mathematics”
To tame urban traffic, the computer scientist Carlos Gershenson finds that letting transportation systems adapt and self-organize often works better than trying to predict and control them.

I am currently working with a categorical-binary RBM, where there are 50 categorical visible units and 25 binary hidden units. The categorical visible units are expressed in one-hot encoding format, such that if there is 5 categories, then the visible units are expressed as a $50 \times 5$ array,...

I have a random forest model I built to predict if NFL teams will score more combined points than the line Vegas has set. The features I use are Total - the total number of combined points Vegas thinks both teams will score, over_percentage - the percentage of public bets on the over, and under_p...

I am just starting out in C++.
I am writing a console application, to "read in" an .evt file (custom, not to be confused with Event viewer files in Windows) and its contents but now I need to write a method to.
a) Store each block of 'EVENT X' including but also ending at 'END'.
b) Make the conte...

Today i spend 6 hours trying to figure this out, this is kind of my last resort.
I want to switch screens with react navigate. It works when all the screens are in the same file. but when i seperate them into multiple files (1 file for every screen) it gives me the error 'undefined is not an obje...

I hope my title is enough to understand what i want, i have this form in my html where the data updating in my database,
<form method="POST" id="form" >{% csrf_token %}
<input type="hidden" value="{{bought.id}}" name="itemID">
<div class="order-option">
<span id="quantity-field">...

I have an API that reads data from an application and have the possibility to export that data to an excel file as a csv.
I know its possible to do a one time import of flat files in SQL Server Express but can i make it do this every week or so?

Can someone explain to me what this line of code is doing?
def count_sentences
new_array = self.split(/[.?!]/).reject {|string| string.empty?}
return new_array.length
end
end

I have a script using os.system(cmd) to run a pipe. I need the pipe to run in a specific Conda environment, so I tried to do something like this:
cmd = 'conda activate base && ' + cmd
os.system(cmd)
However, I get:
CommandNotFoundError: Your shell has not been properly configured to use 'conda a...

I'm trying my best to articulate this, so here goes.
I have a table of gene information. However, I am going to be using a generic example for the sake of this question.
> test_dt <- data.table(c("b", "a", "a", "b"), c(1, 4, 1, 5), c(4, 6, 4, 8))
> colnames(test_dt) <- c("category", "start", "end")

I've been using modulo % and i noticed some discrepancy. Can anyone explain why this happens:
# ruby
-123 % 10
> 7
-7 % 10
> 3
Then in Java:
// Java
System.out.println(-123 % 10); // -3
System.out.println(-7 % 10); // -7

So i want to create a simple download eta calculator, and here is my code for it
import PySimpleGUI as sg
layout = [[sg.Text('What is your download speed in MB/s?')],
[sg.InputText()],
[sg.Text('What is the size of the file in GB?')],
[sg.InputText()],
[sg...

I am trying to retrieve a specific document in collection called entires which has a particular timestamp as one of its property.. I want to display the content property of this collection
This the code used for creating that collection on firebase:
firebaseApp.db.collection("entries").add({
...

The Problem:
I have encountered a scenario using Javascript in NW.js whereupon setTimeout() will experience arbitrarily long delays instead of executing the callback after the requested duration. Generally anywhere from a few dozen milliseconds to thousands of milliseconds of unexpected delay.
Of...

I am Trying to get the current date
This is my code
import datetime
x = datetime.datetime.now()
print(x)
But I need Only Date not date and Time both

My page keeps on reloading when I press submit even with e.preventDefault(); so I´m not able to see an error message. My goal is to have the user input there text have be displayed in a div (To Do List) and if they click a button on the other page (iframe) they will get there inputs in another t...

I installed Eclipse 2020-09 using the Installer with JVM 14.0.2. I'm having trouble configuring it to use a local Glassfish 4.1 server.
I installed the Glassfish server adapter using Install New Software and URL https://download.eclipse.org/glassfish-tools/1.0.1/repository/. This includes Sapphir...

I have nested observables and I want to define an new array with the nested observable.
The nested observables:
children: Observable {
source: Observable {
operator: ScanOperator {
seed: Array(2) [
{ ObservableTree
value: ItemModel {
...

I have a pretty simple query that should return a bunch of records, but nothing is actually returned. My SQL looks like this.
Select fsm.date, fsm.eno, nat.`PS Loc Code`, nat.Site
FROM v_fsm as fsm
INNER JOIN national as nat
ON fsm.eno = cast(nat.Site as int)
WHERE (fsm.date >= '2020-12-01' AND ...

I am getting this error message when compiling this code. "The method main cannot be declared static; static methods can only be declared in a static or top level type"
I assume that it is saying this because it is in the class Earth...? Help a new java student out, please!
public class Human {
...

When I have a dict like:
dict = {'xyz': 'Sooo ein schönes Bild von dir 😍👌💋💋', 'xyz2': '✨✨✨', 'xyz3': 'toll, super schön'}
How can I use "emoji" to just find the element with emojis only (namely here the value of key xyz2) and delete it from the dict?
I use the emoji module for Python. https:...

I have a pandas dataframe with UNIX timestamps (these are integers and not time objects). The observations occur in multiple geographic locations, and therefore multiple timezones. I'd like to convert the UNIX timestamp into local time (in a new column) for each of these timezones, based on the g...

I have a textview that i would like to scale as the container grows. i need to maintain the aspect ratio of it as the container gets bigger. how can this be done ?
usually we give a textview size in sp but for this i want the textview to be proportioned based on the size of its container. In con...

i think this is silly question, but i cant find any solution for this problem, maybe you guys can help me out. so i have a string like this:
str = "my name is \"leo\""
and i want to pass the value to other variable, so the new variable will have value like this:
"my name is "leo""
i already use...

I have a database with two tables called cards and details
cards:
persnr | id | lastchecked | lastcheckedby_user|
00123 |1061| 2020-10-21 | me
00124 |1062| 2020-10-21 | you
details:
ID_Card | License | Valid_till | Valid_from | Details_description
1061 | A | 2022-01-01 | 2018-...

using Quarkus 1.9.1
I have a command line application as follows...
@CommandLine.Command
public class MyCommandApp {}
The application starts a server connection using a 3rd party lib.
At some point when the server accepts a connection it dynamically attaches a listener. For example:
if(server.ac...

I am currently struggling with the data visualisation tools that R provides.
I am using the dataframe:
Code Country Date Continent NewCases NewDeaths Recovered
1 ARG Argentina 2020-03-04 South America 1 0 0
2 ARG Argentina 2020-03-06 South America 1 ...

I need to convert date to any format:
today
and setTime for 8:00 AM
Example if i want to set snack for 8:00 am
I am try but got 'Invalid Date'
let breakFastFormatedTime: any = new Date();
breakFastFormatedTime = moment().set({"hour": 8, "minute": 0}).format('YYYY-MM-DD hh:mm A');
I am also tr...

I have a bytearray:
s = b'\x01\x80\x00\x04_\xa9\xa20\x01\x19\x00'
I want to search and find:
\xa9\xa20
Then once found I want to get the next 2 bytes after that. In this case:
\x01\x19
I've tried:
m = re.search(b'[(?:\xa9\xa20)]{2}',s,re.DOTALL).group(1)
But get an Index error:
m = re.search...

I have a dataframe as follows:
x <- data.frame("A" = c(1.23, 2.43, 6.5, NA), "B" = c(6.7, 8.4, 8.9, NA), "C" = c(9.1, 12, 13.5, 15))
And I need to arrange to something like this:
xR <- data.frame("A" = c(1.23, 2.43, 6.5, NA, NA, NA, NA), "B" = c(NA, NA, 6.7, 8.9, 9.2, NA, NA), "C" = c(NA, NA, NA...

I have a JS function, ShowResults, that pushes a set of text input field values into an array and then converts it to a string:
function showResults(myQuestions, quizContainer, resultsContainer){
var answerContainers = quizContainer.querySelectorAll('.answers');
var toSearch = [];
f...

I have file in this format:
4651
9537
8154
I have to calculate a sum of each row. I try something like this:
string[] files = File.ReadAllLines(@"myPath"); // put each row of file in the array
for(int i = 0; i < files.Length; i++) {
string[] subFiles = files[i].Split(','); // try to mak...

I have a struct which holds 3 char pointers (arbitrary length strings) and I created a dynamic array with malloc since It can have an arbitrary amount of entries.
This is my struct data type:
typedef struct student{
char* name;
char* phoneNumber;
char* department;
}STUDENT;
I used a ...

I'm trying to randomly select an individual cell from a column of an excel worksheet in Tkinter. I have tried a few different ways:
1st, I tried:
wb = load_workbook('Test_Workbook.xlsx')
ws = wb.active
range = ws['A2':'A7']
for cell in range:
for x in cell:
print(random.choices((x.v...

Is there a difference in terms of results in using a condition in where versus in join? In my actual query, I can put AND "noteReads"."id" IS NULL in where or in join. Does this matter?
First version with AND "noteReads"."userId" = 1 in where clause:
SELECT count(distinct("notes"."id")) FROM "notes"

I have a .NET MVC application and I cannot connect to the SQL local database that is hosted on my machine.
I get the following error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that t...

My DatagramChannel cannot join more then 19 multicast groups. It throws the java.net.SocketException: No buffer space available exception on 20th attempt.
My code:
DatagramChannel channel = DatagramChannel.open(StandardProtocolFamily.INET);
channel.setOption(StandardSocketOptions.IP_MULTICAST_LOO...

I'm using TYPO3 7.6.32 where I have a problem with my editor in the backend with the Safari browser. In all other browsers this does not appear.
Does anyone know this problem and know how to fix it?
This is the screenshot of the backend in the Safari browser:
Best Regard

I am running into an issue where files created by one process in a docker container are not always immediately "seen" by another process running in the same container.
The issue manifests randomly when running round-trip tests with PHPUnit started via docker-compose exec in already running PHP-FP...

When I try to zip my file, I get zip that does not contain any content (0 bytes), however the txt file does contain everything I need.
[
I read somewhere (I can't find where anymore ...) that the SAS %bquote function solves some minor problems in the %quote function and that it is more robust. Is it true? What were the problems with %quote?
Thanks in advance

This is a follow-up question for A filled_multi_array Template Function for Boost.MultiArray in C++. Based on G. Sliepen's answer, there is another get_extents template function mentioned for handling retrieving boost::detail::multi_array::extent_gen<NumDims> type size information from a multi_ar...
Researchers have found that using multiple patterns to unlock an Android phone provides significantly more security than the current single-pattern method, and, in some cases, may be more secure than the four- and six-digit PIN unlocking method commonly used on Apple devices.

If I pick any (random or not) 256 bits number, is it always the SHA256 hash of some input, whatever that input might be ? Related to this subject (I guess), can I identify a 256 bits number as being a SHA256 hash (or not) ?

I'm trying to count the number of words in two different columns and safe the result of the addition in an extra column.
Example of the data and desired result:
id question answer word_count
1 Lorem ipsum dolor sit amet Lorem ipsum dolor 8
2 Lorem ipsum ...

I'm trying to get vendor id from this restaurant page using xpath but I don't know how to get that cause it's inside dictionary. And this is what I tried //*[@class="vendor"] then confused
<section class ="vendor" data-vendor="{"id":20707,"name":"Beard Papa\u0027s (Novena)","code":"x1jg","category":

I wanted to edit data and show the data in select option.
Heres my controller code:
public function edit($id)
{
$user = User::findOrFail($id);
return view('user.edit', compact('user'));
}
I'm trying like this but getting an error
<select class="form-control" name="level" id="level">
...

I run this script and I don't understand how the list reversal works.
class Queue:
def __init__(self):
self._push_stack = list()
self._pop_stack = list()
def push(self, x):
self._push_stack.append(x)
self._pop_stack.append(x)
self._pop_stack.rever...

The following tests are failing due to following error. I don't know what i should compare in the test method.
Misplaced or misused argument matcher detected here:
-> at az.iba.ms.account.dto.AccountDtoTest.testAccontListDto(AccountDtoTest.java:68)
You cannot use argument matchers outside of ver...

In the doc's it say this about UiAutomation
Class for interacting with the device's UI by simulation user actions
and introspection of the screen content. It relies on the platform
accessibility APIs to introspect the screen and to perform some
actions on the remote view tree. It also allows inj...

Following up on earlier post, I am trying to calculate the diversity in the sequence
So I have three alphabets like this (13 states) which are possible:
CCE CRE DEE FOE GOE ICE ISE MEE PCE PRE PSE RLE WAE
For example,
A<- c('CCE-CRE-DEE-DEE', 'FOE-FOE-GOE-GOE-...

trying to add the element just after the UL > LI having a class
$("#div ul li.ui-state-active").insert('<span class="ui-icon ui-icon-info" ></span>');
but i am getting insert is not a function, definitely i am sure i a doing something wrong.
want to place the icon just besides the tab which is s...

I started to learn Java in my computer science studies, and I need a lot to use printing methods System.out.print();, System.out.println();, and System.out.printf();, I searched in Google and I didn't find the right answer maybe cause I don't know how to ask it. Anyway, I'm looking for a way to ...

I'm trying to format a string containing a number as below (with 2 decimal points). However if the string is "", I don't want the format to occur and the output to be blank.
var myString: String
cell.myLabel.text = String(format: "%.2f", myString)
I've tried testing for "", eg
if myString == "" ...

I'm trying to refactor the feature of the application responsible for sharing certain entities.
As of now it works as follows:
Every entity has a field with coOwnerIds (a list of ids of the users that this entity has been shared with), it also has a field called syncedWith that contains a list o...

I have a GUI with multiple tabs. On several of the tabs I have a pulldown (combo box) that is just a clone of the ones on the other tabs (kept in sync, same functionality). If the user changes any of them, I want the same callback function to be used. How can this be done? My problem is that I...

I have an Angular library that includes its own routing.
The expected scenario is:
The user clicks on the 'Add remote component' button.
The CurrentCasesComponent component (library) loads, then it redirects to the login screen.
The user clicks 'Authenticate', the RemoteBComponent displays insid...

I created a repo on github and want to add couple of friends to review my pull requests.
I suppose it's an easy operation but I failed.
I used this source
and Reviewers bar is empty even I enter there names of github users
How to add arbitrary reviewers to my github repository?

I have a simple stream of a DocumentSnapshot:
This stream gives me all the IDs of a user's work shifts.
Stream<DocumentSnapshot> _personalShifts =
_dataBaseReference.doc("personalScheduledShift/$_empId").snapshots();
But for each field (ID of a shift) of the document of this stream, I n...

In react js, my report is not printing well format. I am attaching the screenshot, I am generating the report with a component in a blank page. Please let me know any other detail information needed.
[![Available Data][1]][1]
[![Printing Data using Browser Print ][2]][2]
Available Data on Page
[1...

Somebody please tell me the data structure of WebRequest function at MQL4 ?
I try to create send GET/POST http request from mql4 to php,
first, for simple api.php at localhost, I create this :
<?php
header('Content-type: application/json');
$arr[0]="0";
if(isset($_REQUEST['user'])){
$arr[0]="1"...

It's on Elementor. The maximum space between is only 50px which is not enough.
I wanna add more space by CSS but I don't know which selector and what property to use.
I've tried .swiper-slide or .swiper-slide .swiper-slide-active ,if it exceed 50px, the box will be distorted. But then if I change...
Power plants generate electricity and send it into power lines that distribute energy to nodes, or sites, where it can be used. But if the electricity load is more than the system's capacity, transmission can fail, leading to a cascade of failures throughout the electric grid.
The research suggests that teaching materials science, mechanical engineering, computer science, biology and chemistry as a combined discipline could help students develop the skills they need to create lifelike artificially intelligent (AI) robots as researchers.

I am getting this error:
System.Data.SqlClient.SqlException: 'The parameterized query '(@inputKarakterSoort varchar(8000))SELECT TOP 2 * FROM Karakter ' expects the parameter '@inputKarakterSoort', which was not supplied.
But I think I have given the parameterized query.
My DAL:
public class So...

A data set to work with:
df <- tibble::tribble(~person, ~age, ~height,
"John", 1, 20,
"Mike", 3, 50,
"Maria", 3, 52,
"Elena", 6, 90,
"Biden", 9, 120)
I am trying to get a data ...

I am trying to write a custom Linq extension, which can also be performed within the DB.
Basically, what I want to do is collectionOfStrings.Where(x => !x.IsNullOrWhiteSpace) Unfortunately it's not supported.
=============== What I've tried so far =============
This part is only interesting to th...

I have a login box with id and a password input. It opens when hovering over a div. The problem is that when I mouseover the autocomplete field the div closes.
.header-compte:hover .header-compte__content {
display: block;
}
<div class="header-compte__content">
<div class="header-compte_...

In the code below, I need to print out the first 5 lines from the CSV file "winners.csv" and I don't know how to do it. I just know that lines 4-5 will cause all lines in the csv file to print.
The code in question:
wins = open("winners.csv", "r")
csv1 = csv.reader(wins, delimiter=",")
sort = sor...

Using webbrowser module and webbrowser.open method, we can open URL in new tab.
However, is there any way we can open a secret tab in Google by using Python?
import webbrowser
webbrowser.open_new("http://google.com")

I have some issue on connect to mongodb with docker and NodeJS driver.
Here is my docker-compose.yml file:
version: "3.3"
services:
mongodb:
image: mongo:4.0.20
ports:
- 27017:27017
command: mongod --replSet rs0
deploy:
replicas: 1
restart_policy:
con...
I moved one of my functions into a separate PHP file that will be used by several variants of the same application. However, the function doesn't seem to be showing up as part of the script. There is an API call following the 'required' call so the rest of the program is working. I just have no output as it's all inside of this function. We don't usually work with multiple nested P…

It's stated that fn offchain_worker function is called every time by all nodes after a block import. Imagine the case where in fn offchain_worker we make a http call to fetch some not deterministic value from a remote server, and once we get the result we call to pub fn onchain_callback to sign a...

I have the following script on my Nginx server. It backups my websites every day. It keeps the latest 6 backups but this is too much space on my disk so I need to reduce the amount of backups from 6 to 2 only.
How can I do that?
Here is my Script:
#!/bin/bash
DATE=`date +%Y%m%d`
EXCLUDE="html|ph...

I have a failing Azure logic app that was previously working. I've inherited both the .NET core MVC application and logic app in Azure. Not having developed the entire solution (logic apps, API, DB SPs, etc.) I'm having some difficulty tracking down all the moving parts and fixing the problem.
Be...

I need to do something like Stackoverflow autoresolution. select the tag by which we are looking, for example "[numpy]". insert our code and if there is a similar problem, then you need to show the answer with the best rating. should work in Python in jupyter notebook
example question from Stacko...

saver = tf.train.import_meta_graph(args.ckpt_path+".meta")
temperature, output, length, mz_cont = tf.get_collection("restore_ops")
tf_config = tf.ConfigProto()
tf_config.allow_soft_placement = True
tf_config.gpu_options.allow_growth = True
sess = tf.Session(config=tf_config)
saver.restore(sess, a...

I have runned the webpack --mode production to build the dist folder, but it is showing this error when i run the server, the app is running on the developer mode.
I got this error:
C:\Users\Bymet\Documents\Gestor de Inventario\frontend-admin\node_modules\webpack\lib\webpack.js:31
throw new Webp...

I could really do with some help with one call to the Bandcamp API. For every request I make to /http://bandcamp.com/api/sales/1/sales_report/ the response contains:
/"error_message":"JSON parse error: 757: unexpected token at ''/
Here's an example of an unsuccessful call:
var artistId = <my band_id

Im doing a project on the esp32 using the ESP-IDF plateform. this plateform propose a wrapper around
cmake but i dont really find documentation on the thing so i decided to use directly cmake.
Im watching some video and i dont really understand how to use this. I need concrete example. Here is my...

Is it possible in XSD to define an enumeration restriction based also on content of the XML document?
e.g. I want this XML to be valid:
<object>
<command name="add">
<param name="layer" type="int" />
<param name="position" type="point" />
</command>
<struct name="point">...

I'm fairly new to c++ programming. It would be helpful if I could get a feedback on a dice game I wrote.
I would really appreciate some tips as well as your opinions.
This program will begin by asking the user to enter an amount to bet (from $1- $1000).
Next, the user is asked to guess the total ...

I am quite new to python and need your help.
I have a small python script, which copies files in intervals to S3. The script runs in a "endless" while loop.
Now I would like to write a rest api to start the script, check the status (if it is still running) and to stop it.
I have already tried sev...

I am trying to install fastparquet in Anaconda on Windows 10. I tried fixing the expected errors by installing Visual Studio Build Tools by following this question
Steps taken when installing Build To:
Visual C++ Build tools core features.
VC++ 2017 v141 toolset (x86,x64)
Visual C++ 2017 Redistr...

We have an issue in Elastic Search whereby it doesn't seem to escape the slash in a query and seems to match cases even if they are exact matches.
These are the 2 cases in the database:
Case1:
caseReference: AB/19/001
Case2:
caseReference: AB/20/001
Running a query searching for AB/20/001 retu...

I have the following code:
# capture the number of players
def people():
users = (input("how many players? "))
while users.isdigit() == False:
users = (input("how many players? "))
users = int(users)
# capture each player's name
def player_name():
for person in range(peop...

I want to Programatically trigger .editingChanged for a UITextField
Defining the UITextField as:
let test = UITextField()
I've tried the following:
test.pressesChanged(Set(_immutableCocoaSet: UIPress()), with: .some(UIPressesEvent()))
test.didChange(.replacement, valuesAt: IndexSet(), fo...

I am making a program that checks for anagrams in python but it isn't working. I think it is only checking for the length of strings rather than comparing elements as well. But I might be wrong. (I can not use sorting method or .counter)
Here is the code:
word = input("\nEnter a word:")
while not...

I've got a string of data that have random CRLF inserted in the lines which I need to remove and proper CRLF ending the data which I need to keep.
I've tried using Notepad++ regex trying to replace the following with empty:
[^NULL]\r\n
However, it does not remove the inserted CRLFs. Any thoughts...

In C I know that one uses format specifiers to indicate a data type or to specify, which data one should expect from Input. My question would be what the difference between a format specifier and conversion specification is?

I have the following code to iterate over each file in a folder and run the pdfplumber module on it:
#Import required packages:
import os
import pdfplumber
#Iterate over pdf's
os.chdir(r'C:\MyDocuments\PDF')
directory = r'C:\MyDocuments\PDF'
for filename in os.listdir(directory): ...

GFG Parenthesis Checker showing wrong answer at test case "[][]" but when i go with custom test case it shows the correct answer. I am not getting whats wrong in my code.
Here is my code in c++.
#include <bits/stdc++.h>
using namespace std;
int main(){
int t;
cin >> t;
while(t--){
string s;
...

I have created a new docker container from official Ubuntu image. I opened bash using docker exec and installed openssh-server. After this I updated the user password using passwd command. However, when I try to ssh to localhost, it fails password authentication even though I enter the newly conf...

I installed .NET 5.0 SDK. I've also enabled 'Use previews of the .NET Core SDK' in the Options of Visual Studio (v16.7.7). When I try changing the Target framework of an already existing Blazor App (created using .NET Core 3.1), I don't see .NET Core 5.0 .

I am assisting with computers for a small private school. On each computer, I've created an admin account and a student account. The latter has almost no permissions to do anything. We lend these computers out to students when they need a computer to use for homework purposes, and I'm trying t...

ID posts to the sheet but email doesn't send with onEdit function but does send when run in its own independent function. Probably made a dumb mistake somewhere, someone please help.
function generateUID () {
var ID_LENGTH = 4
var ALPHABET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var rtn =...

I would like to generete something like a template that I could fill out with code. Also, I will add new parts on it and regerate without losing the code (something like STM32Cube has). I found information about jinja2, cog, and mako. I think the more or less that I need is cog, but I'm not sure ...

Having in account my last question, another problem emerged: I also need to find a pattern for any number, with no limit of digits. I also made some changes: I now have a test table with a column containing only numbers and what I intend to do is to those records who do not match the pattern in t...

I am new to PLINK and GWAS studies. I am unsure how to write a script to convert my INFO file or dosage data into a MAP file for an association study between genotype and 1 phenotype. So, first thing: I have an INFO file with dosage information and information on the SNPs, the ID, position, allel...

I want to drag and drop item from listbox to existing item in listview and for example increment his subitem called "value". Can someone show me way how to solve this?

We're using the Docusign API to create a new template from a custom document and signer definition. Everything was working before, but then we switched over to the JWT Authentication flow instead of the Authorization Code Grant (so users could impersonate our admin Docusign account without having...

I need a way to put an identifier inside a jar file when someone downloads it. I can't do this manually, since it will be different for each user. How should I insert the watermark, preferably using node.js?

I'm trying to add a new record to a DBF table using ADODB connection in VBA. There are numeric (decimal) fields which size were set at 4 at table construction and I can't write to those.
Run-time error '-2147217887 (80040e21)': The size of a field is too long.
I've tried to push all types of vba ...
Many smartphone applications, such as speech-to-text program and Google Assistant, are powered by Artificial Intelligence (AI). Companies also use AI to improve marketing strategies, recommend products and services to users, or even generate predictions about possible health risks for patients.

I'm trying to write an app that prints everything after the last occurrence of 2 colons "::", so if it's 3 ":::" it won't count. if the string is "He::ll::o" it should print out "o" and if it's "12312::233" it should print out "233", I have to use char* extract(char* input); and a Pointer functio...

i want to sort all posts elements by the "Title" element through an xsl, but I am stuck.
<data>
<post>
<Title>AMNOG</Title>
<Content>text</Content>
</post>
<post>
<Title>Supply</Title>
<Content>text</Content>
</post>
<post>
<Title>Byw</T...

I receive the following error when trying to load a font in my globals.styl file
./styles/globals.styl
ModuleParseError: Module parse failed: Unexpected character '' (1:4)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See ht...

SSMS SQL Database, Compatibility version 140.
Context: I have created a simple stored procedure for users to search their own data sets, the relationship is as follows:
A Client has many Areas, An Area has many Sites, A Site has many Datas. The aim for this search is to return the ID of any match...

I do not know where to get the following variables
REQUESTED WMID
FULL PATH TO THE KEY FILE
KEY FILE PASSWORD
Has anyone used these codes?
https://github.com/baibaratsky/php-webmoney
Can you help?
<?php
require_once(__DIR__ . '/vendor/autoload.php'); // Require autoload file generated by compos...

I have two different models, Users and Teams where Teams has reference to Users.
I am trying to get all the teams that a user belongs and then get all the users that are members in those teams and merge them in one array without duplicates. I have only managed to get the teams that a user belong...

I'm making a pong game, and everything was going fine until I coded the scoring system, which has two variables, one for the player's score, another for the ai's score. When the ball goes past a paddle, it will detect which wall it hit and add 1 to the right score variable, then alert the score. ...

I tried to use the C.M.D too but it didn't work and all it said was that i had an error eclipse said I never had. I got rid of 3 buffered images and it worked on my desktop
the ones that don't work are the ones that are commented.
https://i.sstatic.net/so5tP.png
This is my catch block that i...

I have a following question:
Is it any way or app (with context manager preferable) that would allow to ‘lock’ all files (or all files with specific pattern)in folder in order to prevent them being modified/deleted?
Use case: There are few CSV files in folder and script reads them and writes thei...

I am a newbie to xamarin forms and always want to learn to simplify solutions, so please be a bit considerate to my questions.
I need a sample custom class to animate any view using boolean property in mvvm using xamarin forms.

Through data they offer me the data to make a background to a 512x512 card.
But I don't understand how to express it. (Maybe my little knowledge of English or I don't understand how gradients work and that).
Note: In some cases, there is no color A
`https://pastebin.com/sz1fJ9cx`
It is difficult...

I'm trying to create a Multi Auth laravel project, but I'm facing this issue.
[Error][1]
[Providers folder][2]
[AuthServiceProvider][3]
[CustomUserProvider.php][4]
[auth.php][5]
[app.php][6]
[ApiUser model][7]
[1]: https://i.sstatic.net/GJA1T.png
[2]: https://i.sstatic.net/XapD5.png
[3]: ...

I have been working with a container running Virtuoso. Suddenly it stopped
accepting connections from the host:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...

i am generating signed apk in my react native typescript project on running " react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res" and "cd android ./gradlew bundleRelease" ...

I am working on a Dating App which has Instagram Story like features.Here is when you press the middle button you will see peoples profile like an Instagram story where you can slide if you want to move to the next profile or just tap when you want to see the next picture
So the other button on ...

I have a problem. i have designed a network that takes in as input a segment of the output vector. The problem is, depending on the eigenvectors of the weight matrix, the series converges to a constant output. I need to generate unique outputs at each stage.
In the network i form a binary vector ...

I have a function where the first argument must be a string. There can be an unlimited number of arguments after that or none at all:
const myFunction = (arg1: string, ...rest: any) {
// do stuff
}
Can I make a type or interface that specifies both arg1 and ...rest? I'm asking as other functio...

I'm writing a batch to install a TeamViewer host (MSI), right after having closed and uninstalled the current/old host (still MSI).
The first part is the easiest one and it works.
taskkill /IM "TeamViewer.exe" /F && start msiexec.exe /uninstall
"%~dp0\TeamViewer_Host.msi" /passive PING 127.0.0.1 ...

I want to change the variable types of strings whenever possible. ('6' will be converted to 6, '7.8' will be converted to 7.8, 'true' will be converted to True, and 'null' or an empty string will be converted to None)
Here is my code so far:
def change_variable_type(variables: List[List[str]]) ->...

I am working on an Excel switch funciton but something is not working.
I have 2 tables. This is my table 1 -
And this is my Table 2 -
Now, what is want is - when the table 1 "Pick value" Column has a value of A it should enter code herepick the value from Table 2 column value A Value when the ...

I have a background service; the example shows a simple program echoing input to both stdout and stderr. Usually this is a server process that takes some time to launch.
I want to make separate calls to this service and be able to grab the output – as if the service was launched for every call. ...

Say I have a string like
http://somerandomwebsite.com/345345/465645456546
This string matches the pattern
http://somerandomwebsite.com/:userId/:gameId
From the above string, how do I extract the userId and gameId values no matter their length(so not substring)
I know in ExpressJS you can do
app...

Question: Write a query that selects all columns from benn.college_football_players and adds an additional column that displays the player's name if that player is a junior or senior.
My answer:
SELECT *,
CASE
WHEN year = 'JR' OR 'SR' THEN player_name
ELSE NULL
END AS highlighted_player
FROM benn...

I have created a dynamic table by using this api : https://bi.syncfusion.com/northwindservice/api/orders
https://jsoneditoronline.org/#left=local.wusodi&right=local.fenuzo
Service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from "@angular/common/http";
import { map }...

I am new to developing a plugin and new to Pipedrive.
I know how to get information on a deal, once I have the ID. But I obviously can't write a static ID into the code. So my question is: A user has my plugin installed and are visiting a deal. My plugin will GET information from the deal's detai...

I am having a problem with converging my geeglm function.
fit.marital1a <- geeglm(as.numeric(anydepress)~as.factor(group5en_maritalfactor), family=poisson(link="log"), maxit = 653, data=Datamarital1a, id=site, corstr = "exchangeable", std.err="san.se")
It gives me the following error:
Error in mo...

I'm trying to animate a map graph using gganimate but am running into the following error:
Error in seq.default(range[1], range[2], length.out = nframes) :
'from' must be a finite number
Seems like this usually occurs when the variable used for "transition_time" isn't numeric or the data's in t...

I have this controller:
@RestController("ThresholdAdapter")
@RequiredArgsConstructor
@Component
public class ThresholdAdapter {
@Autowired
ThresholdQuery thresholdQuery;
@RequestMapping(value = "/jbdj", method = RequestMethod.GET)
public String testaux() {
return "lkajdfladjlksj";
}
@...

There are a lot of examples of how to do this without using and instead using like the docs listed here: https://v9.material.angular.io/components/table/examples. Is there a way to do this with the flex version of the table? If you use and take away all the and then the expandedDetails row i...

I'm trying to download png image from this page
link
using java.
If i try to parse HTML img tag with Jsoup
for future conversions and i have a problem with encoding:
IHDR ��Z �PL many symbols...
The encoding is not specified on the page and I have no idea how to download this image ...

Sorry, I want to ask a question that has troubled me for several days.
My current project is stuck in ContentView and cannot be compiled, and there is no error message. Task is stuck, but other pages with the same implementation concept are executed normally. I can't find the reason. I would like...

I'm trying to pass a variable from a PHP script I've written to a function in WordPress functions.php.
The code is being called all the time and the variable is not being passed.
Any idea what and doing wrong?
$mycountry="GB";
my_function($mycountry);
// functions.php code
add_action( 'wc_price_b...

/Please understand that English is awkward because I am Korean./
Ubuntu:20.04, opencv:4.0
[https://github.com/lee-taekyun/calibrate]
This site has code and images.
I cailbrate and now I want to rectification.
but, result image isenter image description here
and
The lines(epipolar lines?) are also...

I have a paginated list of data that I am updating based on a filter and an offset (page)
When the offset is updated (next/prev page) I hit the API and get new data. When the filter is updated I reset the offset to 0.
The problem is, when the filter is updated and the offset is updated it causes ...

essentially, I'm making a class that takes a BMP file for the constructor. From THIS POST I get all of the header data out of the way and then read RGB data into a vector. I then calculate the intensities as 0.25R + 0.5G + 0.25B. I put these numbers into a space-separated file, line by line. With...

i have a node.js back-end with express sever.
i have routes called templete.rpoutes.js:
const express = require("express");
const templateCtrl = require("../controllers/template.controller");
const router = express.Router();
router.route("/createtemplate").post(templateCtrl.createTemplate);
ro...

I am trying to pass required named parameter "currentAccount".I am running into this issue without any luck. I get an error that 'currentAccount' isnt defined . Throws the error is not defined despite it being defined right above. I cannot tell what mistake I am making. Any ideas how I can tackle...

I just migrated a flutter app made on Windows10, to the Mac, and had problems with the app's execution. I searched the internet for similar errors and found several solutions, but none of them solved my case. I tried to delete the files podfile.lock, Podfile, .symlinks, Flutter.Frameword, Fullet....

I have a dynamically generated html table, it shows values from a database.
It hosts some information and some values about a few people. The catch is that the first column of the table corresponds to a family number and when two people share it they merge together into one single cell.
So, if th...

I've created a class to manage my connection as follows:
class DB(object):
def __init__(self):
JHOME = jpype.getDefaultJVMPath()
# ojdbc path should be added to classpath
jpype.startJVM(JHOME, r'-Djava.class.path=..\ojdbc8-full\ojdbc8.jar')
# Might need error handling here
sel...

sushi = ["Kappa Maki", "Tekka Maki", "Salmon Maki","Negi Toro Maki","California Roll","Philadelphia Roll"]
num = input("ORDER SUSHI IN SUNNY SUSHI! Please enter the number of your dish:")
if num in sushi:
answer= "{} Thank you for ordering Negi Toro Maki! Enjoy your food! {}"
print(...

I am trying to apply the multiple filter (daterange and selectinput filter together) and I have tried couple of methods like passing multiple conditions in filter function by using | and one of the method that I have given below. but somehow it is throwing error, I don't know why it is happening,...

I want to dynamically add and remove nodes and edges from a directed graph with an arbitrary amount of nodes while making sure each node has at least one path to every other one. Is/Are there any constraint/s I can use to encode this property and ensure it remains true after edge additions and de...

I am working on versioning, We have documents based on UUIDs and jobUuids, and jobUuids are the documents associated with the currently working user. I have some aggregate queries on these collections which I need to update it based on the job UUIDs,
The results fetched by the aggregate query sho...

I am trying to publish message to RabbitMQ using API. My question is, is it possible to send same message to one queue in loop?
I am currently using /api/exchanges/vhost/name/publish endpoint to publish messages via API.
I need an automated method to publish messages in loop without having to sen...

I build a web application. User can use the web application to read their google Adwrods accounts information( include account's inforamation, campagins and budgets ).
And I developed with gem "google-ads-googleads", and followed Quickstart, got Developer token( had been reviewed and was basic ac...

I can't use the csv module.
I have multiple text files, which look something like that:
File 1:
John
01012020
A
File 2:
Jack
01012020
B
File 3:
Joe
01022020
C
etc.
I want to extract the month from the date and then print a list wit the count of how many people came in the store in that month,...

I have problems working wiht kivy on spyder ide via anaconda installation of python
the app runs when i execute the code but i can't close the kivy.application window effortlessly:
(Picture:Freezing App). I found some code for a close button. It closes the app without freezing now, but it created...

I am getting started with grpcweb and react-js, and I am stuck while configuring envoy and cannot continue. Can someone help me with config files for envoy CORS and TLS?

Okay I have the following problem:
On a button click, I want to do a GET-Request to retrieve lat/lon data of a address, update the state of the component and then move on to the next page with the updated state as passed data.
My code looks like this:
// useState setup
const [lat, setLat] = use...

I have a shiny app that is running on an EC2 instance that I'd like to deploy in docker. Running the shiny app on localhost (so the EC2 instance) works fine, albeit it takes ~5 minutes to load.
However, I've been told to run the following command to get the website running:
sudo docker run --rm -...

I'm trying to run (locally) a sample dash app code but I'm always getting a mistake while opening the window.
I'm using Jupyter Notebook and sometimes PyCharm for testing. The code I'm running is this:
import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_...

Is it possible to take a string like this:
string code = "std::cout<<"Hello World";"
And somehow make the code within the string run?

Which of these variations do you think is the best way to write a function that returns True based on multiple conditions?
Variation 1:
def is_trial_plan(order):
return (
"shipping" not in order
and order["amount"] == 0
and order["description"] == "Affiliate"
)
Va...

Would you help me? I want to make this code efficient and simple.
Frodo, a backcountry explorer, came to explore an underground cave with n rooms during his expedition. All rooms are numbered 0 through n-1. There are many, the only entrances are connected with 0 rooms. Each room is connected to e...

I figured out how to get max and min as a touple from vector:
maxminv (x:xs) = foldl (\(big,small) y -> (max big y, min small y )) (x,x) xs
For example
maxminv [1,2,3,4,5,6]
>>> (6,1)
Now, most probably using this function, I want to get max and min as a touple again, from matrix.
For example
m...

Overview of the problem:
Function name:
def check_meal(animal, dish):
Here is what I am trying to do: Each animal must bring a dish that starts and ends with the same letters as the animal's name.
For example
"The timber rattlesnake can bring tuna casserol."
The brown bear can bring baked pear."...

I implemented a Paypal HTML button (payment and subscription) to direct the client to the Paypal site to make a payment. Also, I pass the invoice # as a parameter. According to the following documents, invoice is a pass-through variable.
https://developer.paypal.com/docs/paypal-payments-standard/...

I am trying to create an android app that will be used to make a payment with an Ingenico terminal. I added the react-native-nfc-manager (https://github.com/whitedogg13/react-native-nfc-manager) to my project an followed the v2-ios+android-write-ndef example. I also enabled NFC on my phone. I bou...

UPDATE: I did NOT ask the question that somebody redirected my question to. Please stop.
When my system gets inputted a potential "wall of text", it does the following to the string:
$string = preg_replace('#(.{500})#u', '$1' . PHP_EOL . PHP_EOL, $string);
(chunk_split isn't used because it does...

I have an excel sheet like this.
If I search using the below method I got only 1 row.
df4 = df.loc[(df['NAME '] == 'HIR')]
df4
But I want to get all rows connecting with this name (same for birthdate and place).
expected output:
How can I achieve this? how can I bind these things

I'm soliciting a reply from someone with expertise in design.
The following HTML index page is the root page for a site.
.box {
background-color: #ddd; color: #000; padding: 5px;
}
.main-head { grid-area: hd; }
.content { grid-area: ct; }
.main-nav { grid-area: nv; }
.main-footer ...

I have a cube in armadillo (i.e. 3d-matrix), and would like to do an FFT over each z-vector. For that I am iterating over each row and column entry, extract the "tube", apply the FFT, and re-insert it again in the cube. This is done using the following code:
arma::cx_cube test_mat = arma::randu<a...

I am trying to achieve a fill animation similar to the GIF below but inside a non circular boundary similar to the second image. Can this be done over a UIImage of just the drop?

I am working on an access database that has data going back roughly 17 years. The tables of note are a job log, basically data on the actual job we perform, and a project tracking log, this is the data on work that is covered under POs or pay periods. The problem resides in the fact that the pr...

j=1
for i=1,10 do
j=j-0.1
print(j)
end
the output is:
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
1.3877787807814e-16
where the last entry should be 0
Note: 0.1-0.1 returns 0.0
but, repeatedly doing j=j-0.1 from j>=0.3 produces this result

I'm using fromArray to load data into a worksheet. This is working fine. After doing so, getHighestColumn and getHighestRow do not seem to be updated. I tried getHighestDataColumn and getHighestDataRow, but they do not update either. Is there a way to force PHPSpreadsheet to recalculate these val...

How to i update a certain value in the database?
class Userdata(models.Model):
user = models.OneToOneField(User, on_delete= models.CASCADE)
faculty = models.ForeignKey(Fakultas,on_delete=models.CASCADE,default= 1)
is_voted = models.BooleanField(default=False)
def __str__(self):r...

So I wrote a code and when I start it, it runs for 1-2 seconds but then it eventually stops.
Here is the problem: I press start then the window pops up with the name of the code/game and with the background color, but nothing else happens. Then it closes.
I get this exit code every time:
Process...

I have found several answers to this, but none of them have worked for me. The go something like this:
velocityX = (int) (velocity*Math.cos(angle));
velocityY = (int) (velocity*Math.sin(angle));
posX += velocityX;
posY += velocityY;
This does not work for me, the angle 0 moves it direct...

I am sure this question has been asked stacks of time but I couldn't find a solution.
I'm trying to replace the values of several variables with values that are present in other variables, based on one condition. My dataframe looks something like this:
z <- data.frame (ID = c(23,24,25,26,27),
...

I created a new project in ruby on rails and I'd like to make a toggle menu, but this function doesn't work.
I added it on my head in views/layouts/application.html.erb
<script>
$('.expandContent').click(function(){
$('.showMe').toggle();
});
</script>
and then in body
<div class=

I would appreciate if someone would help me with accessin this json.
{
"message": {
"dog1": [],
"dog2": [],
"dog3": ["dec3"],
"dog4": ["des4"]
},
"status": "success"
}
I need to access dog1...dog4 and also if dog has desc I should be able to access it...

My task is to use self-supervised learning (SSL) to find features - labels from pictures (dataset consist of similar pictures with small differences) and then self label it - create annotations.
So I want to ask, which method from SSL should I use (SimCLR, MoCo, or other?) and what is more import...

I have following code when I was able to break type safety.
private static <T extends Number> ArrayList<T> cast2() {
return (ArrayList<T>) new ArrayList<Integer>();
}
private static ArrayList<Double> cast3() {
// does not compile (3)
return (ArrayList<Double>) new ArrayList<Integer>(...

I have one (very long) boolean array a with k True entries, and one boolean array b of length k. I would like to get a boolean array c that is True if and only if a "and" b are True:
import numpy
a = numpy.array([False, False, True, False, True, False])
b = numpy.array([True, False])
assert num...

Symfony version: 5.1.8
When using a form authenticator (AbstractFormLoginAuthenticator), the method "onAuthenticationSuccess" output a redirection.
After this redirection, I would like to display a message of success for the user who successfully logged in.
The use of the flashbag from the authen...

I have total 6 screens, however I only want to put 4 screens(Tutorial, File Upload, Details Search, and Profile) in the bottom tab navigation below the screen. I use " tabBarLabel: () => null " to hide label for login and register screens.
My bottom tab now has 4 labels, but only the label has di...

I have a simple redis server running with a password. I want to talk with it from my spring boot app. I look here and see there is a spring.redis.password so my application-local.yml (running with -Dspring.profiles.active=local) looks like...
spring:
redis:
password: ...
but when I run I ...

https://ibb.co/DkKdpnL
This is the code im using in the Database controller. Im sure there is nothing wrong with this code but i keep on getting the error message when I select a date from the Monthly calender Picker.
{
SqlDataReader reader;
SqlCommand command;
...

I am looking to compare a users input to an integer once they enter it in to the command line. If the input is not an integer, i want to produce an error message. I have tried using isdigit() and if(atoi(argv[i])>=1) but have had no luck. How do i go about doing this? Thanks in advance.

I am writing client-server program in C.
When I run my program and use a specific command, I sometimes get a segmentation fault after doing it a couple times (it's very inconsistent when it happens, sometimes it takes 50 tries and sometimes it takes 2).
When I try and run the program with valgrin...

why list object is not callable inside a function ??
CODE:
def unique_list(list1):
sets=set(list1)
u_list=(list(sets))
print("old list",list1)
print('unique list',u_list)
list1=[1,1,2,3,4,4,5]
unique_list(list1)
when i did this.. I got the exact output [1,2,3,4,5]...

Trying to have a counter on a web page that does not restart on each different page view within the same user session. Currently using this code (thanks to @PraveenKumarPurushothaman) but this counter resets every time a different page is viewed.
setTimeout(start, 0);
var i = 0;
var num = documen...

Hello I have two components and a redux store. The first component; "MusicList" uses the lifecycle method "componentDidMount()" to run the function "getItems()" which gets an array of items from a database and adds it to the redux store. This same component then uses the redux store and the array...

I have to study how to design a simulation software in order to check functionalities provided by another software. So, for example, my software provides APIs and I can perform request using these APIs.
I have to design a software able to test APIs automatically. I also need to analyze the respon...

class Signup extends React.Component {
constructor() {
super();
this.state = {
username: '',
email: '',
password: ''
}
}
onChange = (e) => {
this.setState({ [e.target.name]: e.target.value });
}
onSubmit = (...

I'm trying to share the active view from my phone to the internet but I'm unsure how to proceed from here. Right now I have a camera working and it's able to flip back and forth. I was thinking maybe just sharing the screen, but again, I was unsure about how to do this. Are there any suggestions ...

I have 100 students. 40% can study English, math, science. 20% can study only English. 10% can study English and Hindi. Rest 30% can study Math and science. I have five teachers. 1 can teach only English. 2nd can teach hindi and math,3rd can teach science and Hindi,4th can teach english and scien...

I've been doing a lot of Power BI work lately and has been a bit since I've had to right any Flows. In fact, it was still MS Flow before renamed to PowerAutomate.
Anyways, I could have sworn there was a DateDiff() function which is not there now. So I need a bit of help.
I built a scheduled flow ...

Hi I'm sure I've written this code properly as I followed a tutorial. I want the #Booking-button to be clicked which should 'toggle' the #btn class to disappear. Essentially one is a box which contains information about a car and when user clicks 'Click here to Book' it should open the form. But ...

I have read that heap memory can grow up or down depending on the system. I wrote some C++ code to test the heap memory allocation direction, and it seems to be random. Can someone explain why this happens? I also tested stack memory and it always grows in one direction (up).
int* B = new int;
in...

i have a simple state and a function that runs in useEffect,
i setup the useEffect second argument to my updating state but seems to run in an endless loop
causing endless re-renders
const [file, setFile] = useState({audioFile: {} })
const loadAudioFromPath = (path) => {
import(`../compone...

I'm making a game in a webpage using the html canvas element, and I have put all of the code for my game inside of a function called playPong(), and when the code is not stored inside of a function, it works perfectly fine, but when the function is called from the onclick event, all of the elemen...

I have tried using the methods "Transform.scale" (for "zooming" ) and "Transform.translate" (for the moving), but they seem to trigger the paint method in the CustomPainter.
(even though the method "shouldRepaint" returns false, but that method is not even invoked)
Maybe there is some other way o...

I have a function f with a variable number of parameters. I also have an array of arguments params that I want to pass it. I can ensure params has exactly the correct number of arguments if necessary, but I want to write code that doesn't assume what the number of parameters is.I know some front-...

In Angular 10 I have a component that calls a service. The service has a function getData that returns this.http.get(url), and that's all. The component just loads the service. I'm trying to run the default jasmine tests and after getting the service to pass, the component fails on the httpcli...

Consider example of initialization
new_list = [1, 2, 3, 4, 5]
I know [1, 2, 3, 4, 5] is list object but new_list only pointer.
And my question is what function exactly return in below example?
Pointer or list?
def sanction():
l = [1,2,3,4,5]
return l
f = sanction()

This question is about adapting to the change in semantics from lock step to independent program counters. Essentially, what can I change calls like int __all(int predicate); into for volta.
For example, int __all_sync(unsigned mask, int predicate);
with semantics:
Evaluate predicate for all non...

I am trying to get weight data from google fit REST API. I see that weight data in the google fit app (65-70kg in the month of October) but I am getting empty data in the API response.
API URL: https://www.googleapis.com/fitness/v1/users/me/dataset:aggregate
BODY:
{
"aggregateBy": [{
"dataT...

Help me get a block diagram of 32 bit ALU that can execute the following operations (add, sub, and or, xor, nor and slt.)from a 1 bit ALU in Quartus/Logisim.

I have two DataFrame that look like this:
bin last_4 brand name chargeback
0 112233 1234 visa Joe 0
1 445566 5678 visa Susy 0
2 778899 9012 mastercard James 0
bin last_4 chargeback
0 112233 1234 1
1 445566 5678 1
I...

I'm currently using a Django backend, with a React/Redux frontend. When I try to add a new "Day" to my database, I get:
psycopg2.errors.NotNullViolation: null value in column "day_date" ... violates not-null constraint
DETAIL: Failing row contains (2, null, Tu).
django.db.utils.IntegrityError: ...

Hey so I am trying to set my express-session cookie maxAge, so it is giving me that deprecation warning.
So I see that I have to be using milliseconds however what I fail to achieve is how can I get the current date using milliseconds?
I looked at MDN Docs unless I did not understand I thought if...

Before I begin, I have read similarly worded posts like this one, but they are not working for me.
As I explain in the title, I get an NPE when I click the positive button ("ok" in this case). If anybody can point out what I am doing incorrectly that'll be great! Below is a abstracted version of ...

I would like to make a richtextbox with Autocomplete. Everything I tried by far works only on TextBox and I need to use a richtextbox.
The richtextbox name is richTextBox2

I am new to the AGOL API and am having an issue. I am creating a popup for a polygon featurelayer. Often there will be overlapping polygons, whenever I click through all of the features in the popup, it only displays popup information for the first one that is clicked, any remaining polygons the ...

It may sound obvious, but just out of curiosity: is program translation direction well-defined (i.e. top-to-bottom, left-to-right)? Is it explicitly defined in the standard?

Question description
I am currently developing an RPG to gain programming experience. An RPG consists of many individual components such as the combat system, quest system and the item system. I decided to develop an item system first, before I develop the other parts.
I have made some philosophi...

I am trying to create a form where the user selects one of 2 radio buttons, "fast" and "slow", then presses a "go" button on the form. It should work as follows:
When "fast" is selected and "go" is pressed, the user needs to continue holding down the button in order to make the player move and t...

I have these two tables:
User:
=======================
id | Name | Email
=======================
1 | User-A| a@mail
2 | User-B| b@mail
=======================
Entry:
=================================================
id | agree | createdOn | userId
==================...

I am trying to spread my rows over multiple columns based on a particular column.
The result should be a dataframe with a unique recordid and a group of columns
based on the unique values in another column.
recordid location measA measB measC
1 body <NA> 5 <NA>
2 body <NA>...

My high level goal is to convert any string (can include non-ascii characters) into a vector of integers by converting each character to integer.
I already have a python code snippet for this purpose:
bytes = list(text.encode())
Now I want to have a C++ equivalent. I tried something like
int mai...

I would like to print documents to my POS printer from my local server automatically.
I have tried Mike's method https://github.com/mike42/escpos-php but to no avail, this is my code.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Mike42\Escpos\PrintConnectors\FilePrintC...

Starting pandas df is:
df = pd.DataFrame({'event': ['caller', 'x', 'y', 'caller', 'caller', 'x', 'x', 'z', 'caller'], 'value':['c1', 'x1', 'yy', 'c2', 'c3', 'x1', 'x2', 'z1', 'c4']})
df
Out[17]:
event value
0 caller c1
1 x x1
2 y yy
3 caller c2
4 caller c3
5 ...

I have to calculate the price based on multiple input variables
public class Model
{
public int Account { get; set; }
public long Related{ get; set; }
public int TransactionType { get; set; }
public string detail{ get; set; }
public int PlanId { get; set; }
}
First swit...

I currently have a web platform in production and for some reason when entering the user credentials or password to log in, the URL changes and causes an error, the same thing happens when sending the registration form, I must mention that the URL is internationally encoded with punycode since it...

I am trying to order documents by lastModifiedDateTime in Graph API.
But it says The property Modified is not supported for OrderBy..
I use the following API since I need to use folder-id.
https://graph.microsoft.com/v1.0/sites/{site-id}/drive/items/{folder-id}/children?orderby=lastModifiedDateT...

How can I responsive my flutter app with MediaQuery?
This is all my code:
Please if you know another way to do this
lines 3 and 4 are wrong.
What can I do?
return MaterialApp(
var **wi** = *MediaQuery*.of(context).size.**width**;
var **he** = *MediaQuery*.of(context).size.**height**;
...

I have successfully uploaded four images on firebase storage but when I get the download url for the four images and store in firebase database, I get the same image stored in the four json field names I created for it. Attached below are screenshots of the activity codeenter image description he...

I am writing a choose your own adventure type story for a course I am doing and I am noticing that inputs apparently have a character limit? I have done a search here and on google but can't seem to find any documentation on it. Is there actually a character limit and, if so, is there any way to ...

I am trying to implement Websocket client in android and everything is working fine but after some time the connection with the websocket server is automatically closing.
Same thing has happened with me when I was implementing websocket client on node.js and that time I came to know that this is ...

I'm a beginner in Java and I'm trying to use an example in the chapter 9 in the book: Big Java: Early objects from Cay Horstmann to try to understand the concept of inheritance. I'm trying to make a simple program which asks a choice question and sees if it's true or false. first, I made a genera...

I have a grandfathered code which looks as follows:
$response = wp_remote_post( $url, array(
'method' => 'POST',
'body' => $data,
)
);
$spreadrReply = json_decode($response['body'],true);
if ($spreadrReply['status'] ...

I have problem in shown paginate link in normal size.
I wrote my project with laravel 7 . And I update my project to laravel 8.
When I use paginate in blade , The icon of of paginate shown in big size.
Are there anyone can fix it???
this is my code.
And I dont use any css style in page
...

I'm setting up a k8s cluster using a scaleway machine (4cpu & 8g memory) using microk8s with following add-on:
microk8s is running
high-availability: no
addons:
enabled:
dns # CoreDNS
helm3 # Helm 3 - Kubernetes package manager
registry # ...

I want a functionality like when you press 'Win' and 'd' where you see the desktop and if you press it again it restores all windows.
How would one implement that in AHK but with only the active window?
Thanks

So I understand how to normalize binary and ternary relationships, but when it comes to recursive (unary) relationships I don't seem to know the rules in normalizing this specific relationship into a Logical ERD.
Here's a recursive relationship example, I just need to know should another entity b...

I am using simple autoencoders for the task of semantic segmentation on the VOC2012 dataset. I am currently using a simple auto encoder based model. It is trained on adam optimizer with cross-entropy loss on 21 classes 0 - 20. You can find the code here: https://github.com/parthv21/VOC-Semantic-S...

I wrote a script that places documents to the folders they should be (based on my preferences of course).
It even creates the folder if it doesn't exists.
Here's how it works:
You run de script by clicking on it. (idk if I should let this run in the background constantly, I don't use it that muc...

I have a Vue component which renders an image based on a prop. So whenever this prop changes the image should change. The prop itself is the name of the image, I construct the asset path inside that component. Since it's not possible to validate the asset path (check if the image exists) I'm usin...

So I have been trying to make it so that my player would use logs/Platform to go up higher and higher but I'm having I problem, I want make logs/Platform to be a good distance away from my player so I can jump to it and go up higher using the randomizer but for me, The logs/Platform sometimes get...

I am running an executable (simulation) that generates each interval a new output-file. I want to check every output file for a certain value and when this value is exceeded, the simulation should stop. I am running this from a python script. I thought about using the subprocess but I am not quit...

I have a fixed Navbar at the bottom and I would like to make it fade out when it meets the Footer element.
I followed this answer: Fade out Div / Section in vue.js when reaching target section
<template>
<div id="app">
<transition name="fade">
<Navbar :nav-links="navLinks" v-show="show">

I have the following file:
> cat hit.txt | head
gene.69778.3.0.p1
gene.65186.0.2.p1
chr11_pilon3.g961.t1
gene.3169.3.4.p1
chr11_pilon3.g3568.t1
gene.1708.8.0.p1
gene.41465.0.3.p1
chr04_pilon3.g11582.t1
gene.101930.0.1.p1
gene.93918.0.0.p1
gene.65186.8.2.p1
and I would like to get this output:
ge...

I try to run this code but it does not work
a,b = input().split()
print(a)
print(b)
Traceback (most recent call last): File "e:/Projekte/Kickstart/KickstartProblems/test.py", line 1, in <module>
a,b = input().split() File "<string>", line 1
3 4
^ SyntaxError: unexpected EOF whi...

I am calculating date using case
select a,b,c,
case when <condition 1> then x
when <condition 2> then y
end as date
i want the date to be of the format 'yyyy-mm-dd'
how do i set the format

I'm trying to multiply two numbers without operators. I'm aware there might be more efficient ways, but I'm just trying to work from the ground up (start off with something inefficient, create something efficient myself afterwards).
The way I've set this up is so that, to determine x * y, I add y...

I am using Django 3.1 and Python 3.6
I have an app that I want to run both functional and unit tests for, by running ./manage.py test myapp
/path/to/project/myapp/test.py
import os
from django.test import TestCase
from selenium import webdriver
from django.contrib.staticfiles.testing import Stati...

In my first view controller, i try to perform a segue after an animation with alpha method.
I specify in the segue, that the modalTransitionStyle is .crossDissolve
but he didn't do it. he performs like push method.
The two viewControllers are under navigationController and are in the same storybo...

Context: I try to create Linux container from docker file, given below:
Build environment: Windows Server 2019
Enabled LCOW on WS2019 per https://sebastiangogola.com/lcow-linux-containers-on-windows/
Dockerfile
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-focal
WORKDIR /app
# Copy build
COPY ./...

the OUTLOOK.HOL (holiday) file structure looks like this:
[Portugal] 207
All Saints' Day,2021/11/1
All Saints' Day,2022/11/1
Assumption,2021/8/15
Assumption,2022/8/15
Carnival,2021/2/16
Carnival,2022/3/1
[Puerto Rico] 489
Birthday of Eugenio María de Hostos,2021/1/11
Birthday of Eugenio María de...

I know google bot load javascript and execute it. for example react app can be SEO friendly if I use react router and ...
But does google bot execute websocket (socket.io) and get result and crawl that?
For example if have /products route and after socket connect an event with name product_list c...

I’m analyzing river streamflow data with R language and I have a list of data frames. Each data frame represents a subbasin (910, 950, 1012 and 1087) and has the exact same structure and number of variables and contains a value of IHA indicators (IHA1, IHA2) per Year (2004:2007)
Flowtest <- list("...

I am currently creating a tool for inventory management.
Currently I have managed to create QR code in order to open a google form and provide information of a specific batch. The google form provide me the id of the batch and the quantity in stock of the batch.
However, currently in my form, I a...

Hi Guys please assist,
I have an HTML form the submit button works on desktop but not on mobile any suggestions?
HTML:
<form id="contact" action="mailto:[email protected]" method="post">
<h3>Complete the below form!</h3>
<fieldset>
<input placeholder="Your name" type="name" tabindex="1"...

I'm trying to get familiar with dependency injection in a layered solution that uses .Net Core's MVC and a Data Layer to process MongoDB information following this tutorial: https://code-maze.com/getting-started-aspnetcore-mongodb/
My .sln is set up like this:
Project A ---- MVC Layer
Project B -...

I'd like to be able to great a figure that incorporates a geom_boxplot(), geom_histogram(), and geom_rug() call to ggplot(). I wasn't sure how to go about moving the position of the geom_boxplot() output to the top of the figure without hard-coding the ymax and ymin values. It would be great to k...

I have the following data frame:
library(tidyverse)
library(tibble)
data_frame <-
tribble(
~id, ~date, ~boolean_value,
"1", as.Date("2020-01-01"), TRUE,
"2", as.Date("2020-01-02"), TRUE,
"2", as.Date("2020-01-02"), TRUE,
"

How could I write a method that returns the average weight of an array boxes. Assume that the array boxes has been constructed. Also can not assume that every element of the array has been constructed. If the array is empty the method should return 0.0. This is what I have at the moment but I am ...

In my parent component i have an click event.The click event should display either student or staff pages based on condition.The child component should pass the method to parent which page should display.How can i pass the child methods to parents ?
Parent Component
<student @getStudent="getInfo"/

I recently used fullpage.js plugin.
I have a slide into section, the first item has an image and a lot of text, second has a list of images. In mobile, the second slide has more content (taller with inner height) and the first has a lot of white space under content.
An example of that is in http:...

i implemented listView in flutter and it shows product count=5 , but i wanted these 5 items to be generated randomly , is there a way to do it? thanks in advance
return ListView.separated(
separatorBuilder:
(BuildCo...

I have used git reset --hard however it has left files the were just created and not committed. Is that by design? Is there an easy way to clear all these files as well?

I have a list of tuples where I need to increment each third element of the tuple to a variable for a predetermined amount of indexes, then reset the increment value and add the next length of elements and so on. I'm finding it hard to clearly explain this issue but here is the code I have:
f...

I would like to transpose multiple columns in pairs of two
I have the following columns:
user_id', 'fullname', 'email', 'handle', 'audience_ethnicities_code0', 'audience_ethnicities_weight0', 'audience_ethnicities_code1', 'audience_ethnicities_weight1', 'audience_ethnicities_code2', 'audience_eth...

I have RESTful web service which uses Jersey and I need to create a background task which will do some actions (calling DB, etc.).
I found some examples which use ServletContextListener and it works.
public class Scheduler implements ServletContextListener {
private ScheduledExecutorService sche...

I have a situation where a tenant has their own office 365 instance for exchange emails using a custom domain. They have a family of app services within a single resource family in another azure account. I want to make the administrator of the office 365 account the billing manager in the azure t...

I'm trying to to find a solution how I could change my pandas dataframe.
I have a dataset with news headlines. There are multiple headlines per day. I would like to have the date(day) as rows and each headline gets assigned to a new column per day.
In other words I would like to combine all the h...

I am using veins simulator version 5.0 i2 and inetmanet4.x library. I run the example of veins and inetmanet and they worked but when I run the veins_inet example I got run time error:A runtime error occurred: Tag 'inet::Ipv4InterfaceData' is present – in module (inet::Ipv4NodeConfigurator) Scena...

I am working on a project with a third party website, in which I will create a membership recurrent plan, gather customer's information, store it, and charge the customer. Upon subscribing, the customer's credentials and information will be passed via an API to a third party website, where they w...
« first day (1 day earlier) next day → last day (202 days later) »