« first day (1 day earlier)    last day (202 days later) » 
13:00 - 21:0021:00 - 00:00

14:13
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
RewCie has made a change to the feeds posted into this room
14:30
Hello World
0
Q: Home page and cards Overlay styles for my React app being totally ignored in my production build of my project

The Benny WayHalo 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...

1
Q: Incorporating SVG into Object HTML tag is not working

mfaccordI'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...

0
Q: .Net Entity Framework MySql Migration

Ramazan BozkurtI 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

0
Q: 2's complemented sum of the 8-bit binary checksum

Иван Демидов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...

0
Q: How to make a function with dynamic variables to add rows in pandas?

Klevtsov AndreyI'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...

2
Q: How is Google Translate able to convert texts of different lengths?

GavinAccording 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?

1
Q: Why weight updates should be proportional to input?

user42191I'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...

0
Q: Problem with move ordering in Minimax/Negamax algorithm

EliI 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...

0
Q: Need suggestion for Reinforcement Learning based visual landing system for quadcopters (UAVs)

dasmehdixI 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...

0
Q: How to evaluate Heatmap prediction

dato nefaridzeproducing 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...

4
Q: XOR linked list implementation

Erdenebat UlziisaikhanI 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...

3
Q: Intcode computer in Rust

Nikola KasevThis 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,...

1
Q: Minecraft Code That Gives Player God Like Abilities

Boneless Cheese FlameHere'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...

1
Q: Automate the Boring Stuff with Python 2nd Edition - Sandwich Maker Practice Project

Muhammad AhmadI 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...

0
Q: Why python chess bot is very slow and abnormal?

JeniaI 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 ...

RewCie has made a change to the feeds posted into this room
posted on November 04, 2020

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.

posted on November 04, 2020

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

posted on November 04, 2020

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.

posted on November 06, 2020

Attempts to fix clinical prediction algorithms to make them fair also make them less accurate.

posted on November 09, 2020

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.

posted on November 05, 2020

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.

posted on November 09, 2020

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.

posted on November 09, 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.

posted on November 10, 2020

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.

posted on November 10, 2020

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.

posted on November 05, 2020

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.

posted on November 09, 2020

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

posted on November 09, 2020

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.

posted on November 09, 2020

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.

posted on October 23, 2020

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

posted on October 26, 2020

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.

posted on October 30, 2020

New software developed at EPFL can help architects to design building structures that incorporate both new and reused components, thereby lowering their environmental impact.

posted on November 02, 2020

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.

posted on July 06, 2018

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.

posted on August 23, 2018

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

posted on September 21, 2018

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.

posted on November 28, 2018

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.

posted on May 31, 2019

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.

posted on November 07, 2018

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.

posted on June 10, 2019

Machine learning has the potential to vastly advance medical imaging, particularly computerized tomography (CT) scanning, by reducing radiation exposure and improving image quality.

posted on September 08, 2018

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.

posted on November 27, 2018

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.

posted on November 30, 2018

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.

posted on February 22, 2019

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.

posted on July 11, 2019

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.

posted on September 02, 2017

Microsoft on Friday announced that a major update to its Windows operating system will be released globally on October 17.

posted on January 10, 2018

Netherlands-based startup Travis is out to make people understood no matter what language they speak.

posted on July 24, 2018

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.

posted on September 15, 2018

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.

posted on June 06, 2019

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.

posted on October 21, 2020 by Adam Conner-Simons | MIT CSAIL

System developed at MIT CSAIL aims to help linguists decipher languages that have been lost to history.

posted on October 26, 2020 by Lori LoTurco | School of Engineering

Company announces a five-year collaboration.

posted on October 26, 2020 by Rachel Gordon | MIT CSAIL

Five years in the making, MIT’s autonomous floating vessels get a size upgrade and learn a new way to communicate aboard the waters.

posted on October 28, 2020 by Scott Murray | Institute for Data, Systems, and

Letting an algorithm decide which maintenance holes to test for evidence of coronavirus could improve pandemic containment efforts.

posted on November 05, 2020 by Adam Conner-Simons | Rachel Gordon | MIT CSAIL

Machine learning model predicts probability that a particular urinary tract infection can be treated by specific antibiotics.

posted on November 09, 2020 by Jeanne Erdmann

Researchers have located a shared hot spot — on the HLA-B gene — in the immune system in people who say they have penicillin allergies.

posted on November 09, 2020 by Maria Temming

Europa’s potential “ice glow” could help scientists map the chemical composition of its surface — and the ocean underneath.

posted on November 09, 2020 by Erin Garcia de Jesus

An analysis of 94 COVID-19 cases shows that the mRNA-based vaccine can protect people from getting sick, though the trial is ongoing.

posted on November 10, 2020 by Tom Siegfried

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.

posted on November 10, 2020 by Erin Garcia de Jesus

The “Chilica-pod” measures levels of the fiery capsaicin compound in peppers.

posted on November 05, 2020 by Lily Hay Newman

The popular encrypted messaging app now lets you automatically make chats vanish after a week, but look out for a few caveats.

posted on November 05, 2020 by Andy Greenberg

A hacker identified only as Individual X had been sitting on a cryptocurrency gold mine for seven years before the IRS came knocking.

posted on November 07, 2020 by Brian Barrett

Plus: Ransomware hits Capcom, the US seizes Iranian domains, and more of the week’s top security news.

posted on November 07, 2020 by Lily Hay Newman

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.

posted on November 08, 2020 by David Nield

Each of the big three offers a wealth of options to limit screen time, find lost devices, and more.

15:01
1
Q: Is it possible to send an array in a php header (like you can with a form)?

J SimmonsI 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...

0
Q: Cannot read property 'username' of undefined when array reaches the end of iteration

Allan RiversI'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...

0
Q: SQL If field is '*' then select from another table

Altan AsdI 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 ...

0
Q: Powrshell Set-AIPAuthentication returns "error":"invalid_client"

arich.netI 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...

0
Q: HOW TO REMOVE HTML TAGS FORM RESPONSE JSON LARAVEL

optic4predator1I 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 { //...

0
Q: How can I configure an .exe file as Windows Explorer DropHandler that is different from opening the file?

maf-softWhen 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...

0
Q: Boto3 request latency in a Lambda

eofI'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...

0
Q: How can I mock a toBuilder constructor with Junit and Mockito?

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

0
Q: Passing Jquery Variables to twig

Mina DominicI'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...

0
Q: java.lang.ClassCastException: com.example.slideshowapp.MainActivity cannot be cast to android.widget.AdapterView$OnItemClickListener

4gentPMainActivity.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 ...

0
Q: Openshift v 4.3- x509: certificate has expired or is not yet valid

bamishrWe 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...

0
Q: Handle "dynamic Foreign Key columns" with Entity Framework Core and scaffolding

OPunktSchmidtWe 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...

posted on November 10, 2020 by Administrator

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

posted on November 10, 2020 by Administrator

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

posted on November 10, 2020 by Administrator

posted on November 10, 2020 by Administrator

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”

posted on November 10, 2020 by Administrator

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.

0
Q: How can I avoid overfitting a generative network (e.g. VAE, RBM) on one-hot encoded data?

mhdadkI 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,...

2
Q: How to handle overfitting in Random Forest

Austin JohnsonI 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...

0
Q: Interpreting / Reading text files written for Assembly application

PhoxehI 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...

15:26
0
Q: Calling navigation.navigate from another component

Joris van AkenToday 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...

0
Q: django how to update data without refreshing the page?

marvinI 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">...

0
Q: Regularlyimport CSV flat files in SQL

Majd NakhlehI 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?

0
Q: Ruby//I’m not understanding this line of code

Liz GoodmanCan 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

1
Q: How to activate a Conda environment within a Python script?

alec_djinnI 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...

1
Q: How to create a logical vector that indicates whether the values in two columns are the same across categorical factors in R?

CelineDionI'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")

0
Q: Discrepancies in Ruby vs Java when using modulo %

MatthewI'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

-2
Q: How to convert minutes to hours and minutes in python?

Dave BrouwerSo 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...

0
Q: How to use queries to retrieve specific items from firestore collection in react

ProI 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({ ...

0
Q: Is there a reason using setTimeout within an on-data event from a child process causes arbitrarily long delays?

r00xThe 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...

-2
Q: How to get date in python?

YashodhararajeI 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

0
Q: Page reloading after clicking submit in form even with e.preventDefault();

hp672My 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...

0
Q: Problem configuring Eclipse to use Glassfish

SteveI 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...

1
Q: How to subscribe to the nested observables in RxJs?

CanI 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 { ...

1
Q: Can we Join an INT to a Varchar in MySQL?

ASHI 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 ...

-1
Q: Where do I put the main method when working with constructors?

Zach BeckI 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 { ...

15:51
0
Q: How to delete elements with just emojis in a dictionary with Python

ChrissiWhen 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:...

0
Q: Pandas convert UNIX time to multiple different timezones depending on column value

amquackI 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...

1
Q: Android textview - how to scale text based on size of container

j2emanueI 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...

0
Q: remove "\" character in ruby string

Ahmad Leo Yudantoi 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...

0
Q: Pivot function in MS SQL Server

ChristianI 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-...

0
Q: Can Panache entities be used in non Quarkus managed services?

user432024using 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...

0
Q: Using ggplot function to create plot based on cumulative data

JazI 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 ...

0
Q: How to format date to today date and example 8:00 AM or 9:00 PM ? Moment JS

wamovecI 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...

0
Q: how to get the next 2 bytes from a bytearray after a match

magicswordI 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...

0
Q: Re arrange rows in a dataframe - R

user1655130I 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...

0
Q: How can I display YouTube search results for a string of words in HTML/JS?

Shield77I 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...

0
Q: Problem with how to calculate sum of integers from file

Lacko35I 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...

0
Q: Struct array realloc in function - produces undefined behaviour

lowkeyhumanI 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 ...

0
Q: How to randomly select an excel cell from a column using Python, Tkinter

Garret ListoI'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...

0
Q: Does the result differs when writing condition in JOIN over in WHERE clause?

rap-2-hIs 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"

0
Q: .NET MVC Cannot Connect to my Local SQL Database

GeorgeBI 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...

0
Q: Change the limit of multicast groups to join for DatagramChannel?

SergeiKMy 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...

0
Q: Problems with html RTE Editor in TYPO3 7.6 with Safari Browser

blackplanI'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

0
Q: Files created on bind-mounted volume by one process not immediately "seen" by another process in the same container

Szczepan HołyszewskiI 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...

0
Q: GZipStream MacOS Catalina

Tim MarkinWhen 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. [![0 Bytes My program: string startPath = "ResultsFile.txt"; string zipPath = "ResultsFile.zip"; using (FileStream r = new F...

0
Q: SAS %QUOTE vs %BQUOTE

C.BaroniI 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

1
Q: A get_extents helper function for Boost.MultiArray in C++

JimmyHuThis 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...

posted on November 10, 2020

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.

16:16
0
Q: Is any 256 bits number the SHA256 hash of something?

bm842If 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) ?

1
Q: Count words in two different columns and sum them by row

jonasI'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 ...

0
Q: How do I get data from dict using xpath (Scrapy)

booleantrueI'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":

0
Q: Trying to get property 'level' of non-object when trying to edit data and showing it in select option

OrigamiI 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"> ...

-2
Q: Weird performance of list reversal in Python

alekscooperI 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...

0
Q: Mockito argument matcher

NesThe 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...

0
Q: Android UiAutomation vs AccessibilityService

Anton ToshikIn 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...

0
Q: unique string count in a sequence

user3570187Following 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-...

0
Q: trying to insert the span just after the li of selected tab

Jantrying 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...

0
Q: How to make default codes to appear when you type a keyword and hit tab in Eclipse

Ayoub KhadraniI 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 ...

0
Q: Can I conditionally format a String variable in Swift 5?

ICT1901I'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 == "" ...

0
Q: What is the best synchronisation strategy to use when you have different entity clones whose certain fields should always be in sync

AlbertI'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...

0
Q: In pyQt4, how can I connect multiple similar widgets to same function?

MastiffI 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...

0
Q: Angular routing setup issue

CyrilI 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...

0
Q: How to add reviewers to github repository?

Alexey SimchenkoI 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?

0
Q: How to deal with "async" Streams in Flutter?

LateBoyI 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...

0
Q: In react js, I am trying to print report but It is not printing in right format

GagandeepIn 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...

0
Q: What kind of data structure at MQL4 WebRequest GET/POST variable : the array of the HTTP message body

Helgeduelbeck PrabuSomebody 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"...

0
Q: Adding more spaces between boxes by CSS

AceIt'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...

posted on November 10, 2020

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.

posted on November 10, 2020

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.

16:42
2
Q: C# | Parameterized query given, but code does not recognise it

LardinoisJI 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...

0
Q: Counting number of elements based on two parameters in R

CroatiaHRA 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 ...

0
Q: Custom Query Extension, which works with NHibernate

PaulI 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...

0
Q: Div disapears when hovering over autocomplete input

cyrilbI 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_...

0
Q: How to print first 5 lines in a csv file in python?

AlexIn 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...

2
Q: How to open a secret tab in Chrome?

ConstantUsing 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")

0
Q: MongoServerSelectionError: getaddrinfo ENOTFOUND

AurélienI 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...

posted on November 10, 2020 by linuxgx

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

0
Q: Offchain Workers & Signed Transactions

Dan ForbesIt'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...

-2
Q: Python Script to Backup files from 6 to 2

Alejo_BlueI 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...

0
Q: How to configure Azure Certificate(s) for iterating cert store?

RichPI 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...

0
Q: Stackoverflow autoresolution or Github autoresolution

iostream cI 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...

0
Q: How to get the encoded matrix from trained variational auto encoder in tensorflow?

Syed Rifat Mahmud Rafeesaver = 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...

0
Q: WebpackOptionsValidationError: Invalid configuration object. I cant deploy my server to try my bundle

Felipe Olaya OspinaI 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...

0
Q: Bandcamp API sales_report endpoint

horseloafI 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

0
Q: CMake and sub directory

JonathanIm 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...

0
Q: xsd "semantic" restriction based on both predefined values and values from the XML document

fferriIs 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">...

1
Q: c++ dice game using random numbers

Axel BozicI'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 ...

17:07
0
Q: Rest API for python

Thomas PisterI 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...

0
Q: Error installing fastparquet in windows 10

Murtaza HajiI 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...

0
Q: Escape slash in POST elastic search query

maloneyWe 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...

0
Q: Python TypeError: 'function' object cannot be interpreted as an integer

belmer01I 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...

0
Q: Programatically trigger editingChanged for a UITextField

WishIHadThreeGunsI 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...

0
Q: Anagram checker in python only comparing word length(?)

joomnuI 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...

0
Q: Removing CRLF NOT preceded by NULL

Shaun BadertscherI'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...

0
Q: What is the difference between conversion specification and format specifier in C?

GregoryIn 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?

0
Q: Python OS For Loop - TypeError: 'module' object is not callable

jl_1995_95I 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): ...

0
Q: GFG Parenthesis Checker problem in C++ giving wrong answer

divyanshu agarwalGFG 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; ...

0
Q: SSH to localhost in a Ubuntu container fails password authentication

himI 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...

0
Q: How to change Target framework of a Blazor App to .NET Core 5.0?

JerryI 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 .

0
Q: Add New Local User Without "User must change password at next logon"

Christopher CassI 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...

0
Q: Email not sending when using onEdit()

Kyle FeuerhelmID 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 =...

0
Q: How to generate C code from Python? Leaving legacy code

r142431I 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 ...

0
Q: Index matching patter to any digit

Miguel FerreiraHaving 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...

0
Q: How to create a MAP/PED file from a dosage file on PLINK 2.0

HKJ3I 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...

0
Q: Drag and drop item from the listbox to the item from listview

JohnyCage2020I 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?

0
Q: 404 Not Found error when creating a new template using Python Docusign Templates API

user2677054We'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...

0
Q: Watermark jar file on download

ee eI 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?

0
Q: Writing to a DBF decimal field with vba ADO connection

Dominic GagnonI'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 ...

posted on November 10, 2020

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.

posted on November 10, 2020 by Curtis Segarra

Climate change is expected to fuel fewer — yet more intense — Atlantic storms. With a whopping 29 storms but few strong ones, 2020 may be an outlier.

17:32
0
Q: App that prints everything after the last occurrence of :: in a string ( C )

HaembinaI'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...

0
Q: XML sort by element

ima gicai 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...

0
Q: NextJS Module Parse Error when trying to load fonts

ContainLettersI 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...

0
Q: How to filter CTE results with ANDs not ORs

HumbleDevSSMS 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...

0
Q: how to use webmoney api (baibaratsky - php webmoney)

ebrahimI 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...

0
Q: Merge arrays without duplicates | nodejs | mongoDb

Stef20I 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...

1
Q: Elements not rendering on canvas

LlamaButtI'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. ...

0
Q: My jar is running in Eclipse just fine but not on desktop

Sly BotI 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...

0
Q: Context manger for locking folder on delete/update operations with files inside

Aleksei KhatkevichI 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...

-1
Q: Custom Class To Animate Any VisualElement Using Boolean in Xamarin forms

Derick MarfoI 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.

0
Q: How can I generate a database background from a json in Pillow

Jose KassThrough 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...

0
Q: Laravel 7: Custom User Provider not found

EmilioI'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]: ...

0
Q: Docker containers do not reply to client applications in the host

Luís de SousaI 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 ...

0
Q: how to generate signed apk in react native typescript project

MUHAMMED SAJID ALI SHAIKHi 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" ...

0
Q: Instagram features in Tinder (Android App)

Rakhmatillokhon KhoshimovI 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 ...

0
Q: Cyclic network's output converges to a constant

Tofara MoyoI 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 ...

17:57
0
Q: Interface for function with multiple arguments?

EvanssI 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...

0
Q: How execute different MSI with batch?

ItaloI'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 ...

0
Q: How to change the variable type for values inside nested lists

Bruce K.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]]) ->...

0
Q: switch function Excel

Istiak MahmoodI 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 ...

0
Q: Making calls to a background service with stream redirection

Andi 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. ...

0
Q: Get req params in client Javascript

Coder Gautam YTSay 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...

0
Q: SQL: Why must I use IN function here instead of an equals sign and OR?

dswaineQuestion: 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...

0
Q: Build Facebook connector for Google Data Studio

HichamHow to build my own Facebook connector for Google Data Studio please? Thanks,

0
Q: Getting row value of a dynamic table

mosesI 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 }...

0
Q: How to get current active/open deal ID in pipedrive?

MähnenwolfI 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...

0
Q: Error in model.frame.default(formula = as.numeric(BINOMIAL) ~ as.factor(FACTOR), : variable lengths differ (found for '(maxit)')

ADHummelI 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...

0
Q: gganimate error with long-format data and plot_usmap

Devin WernerI'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...

0
Q: How to get a route

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

0
Q: Mat Flex Table Expandable Row

MartheliThere 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...

0
Q: How i can download png from page?

trepegorkaI'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 ...

0
Q: After using Combine, Some files cannot be compiled

Stance LiSorry, 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...

0
Q: Pass a variable from a PHP script to WordPress functions.php

MickI'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...

0
Q: cailbration, rectification. Strange results

tg l/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...

0
Q: TicTacToe in Python OOP

KerdiorpI did this Tic Tac Toe as exercice for OOP. I would like to know possible improvements (the method main loop is too rock and roll, if you have suggestion to reduce it and improve readibility...) Thank you in advance Best regards import numpy as np class Game(): """Core of the game, contains ...

18:23
1
Q: React - update multiple useEffect / useCallback dependencies but only call effect once

Shawn NorthropI 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 ...

0
Q: Why is the Right Side of my Image Being Wrapped Around?

mitchell ruffingessentially, 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...

0
Q: express cant find route

Haroon Azhar Khani 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...

0
Q: The named parameter 'currentAccount' isn't defined

blackbirdI 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...

0
Q: Migration from Windows to Mac: Error on Podfile installation

Kaya RyuunaI 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....

0
Q: Compare values of table row and hide empty ones, the catch is that the first column uses rowspan

Maximiliano CorboI 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...

0
Q: How should I handle a oracle database connection class using jaydebeapi and jpype

PhishI'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...

0
Q: how to translate these numbers to the names in python lists?

Can Kaplansushi = ["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(...

0
Q: multiple filter is not working in r somehow and it keeps on throwing error

siddharthI 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,...

0
Q: Are there any properties/constraints to encode in integer programming to ensure a directed graph is strongly connected?

VTDracI 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...

0
Q: mongo aggregate based on conditions to filter the document

kgangadharI 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...

0
Q: Publish message to RabbitMQ queue in loop for specified duration

user3019243I 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...

0
Q: How to get adword account inform from Google Adwords Api

Huang Yu TiI 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...

-1
Q: Count the number of times a value appears in multiple files

Man MI 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,...

0
Q: I can't close the kivy app when i run it on spyder ide

DerEddieI 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...

0
Q: envoyV3 api configuration for grpc-web with react-js

VikashsurinI 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?

0
Q: Ionic React Promise not waiting after setting State on button click

Jule WolfOkay 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...

0
Q: How can I deploy shiny in docker?

WorkhorseI 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 -...

0
Q: Error while running Dash app locally, "This site can’t be reached"

GerardoI'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_...

0
Q: Is it possible to convert a c++ string into actual code?

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

1
Q: Python explicit or implicit boolean return

caseymWhich 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...

1
Q: Graph: A backcountry explorer

sherloockWould 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...

18:48
0
Q: haskell min and max from matrix as touple

densal03I 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...

-5
Q: Beginner python coder, and I am having some trouble with functions in python

TestyOverview 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."...

0
Q: PayPal HTML Button Missing Invoice Parameter

vickiI 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/...

0
Q: React-Native NFC Reader returns: The NFC tag's type is not supported

Patrick SimardI 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...

-1
Q: Is there a more intelligent (yet reasonable simple) way to "split up" a wall of text than this?

user14430182UPDATE: 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...

0
Q: Bind one row cell with multiple rows cell for excle sheet in panda jupyter notebook

Bhagi20I 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

0
Q: Are there design-patterns for page design?

CalafI'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 ...

0
Q: Optimization of iteration over rows and columns in armadillo-cube

arc_lupusI 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...

0
Q: Swift/ios wave fill animation inside custom layer/shape

varoonsI 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?

0
Q: Access query of linked tables does not return values from before 2nd linked table existed

lewpI 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...

0
Q: why does decrementing by 0.1 within for loop produce this undesired result in lua

oh_cakesj=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

0
Q: PHPSpreadsheet: getHighestRow/getHighestColumn after fromArray

EMFI'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...

0
Q: Update Django Model

FARHANDIKA ZAHRIR MUFTI GUENIAHow 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...

0
Q: My code (pygame) stops working after 1 or 2 seconds of runtime. Why?

AlreadyTakenSo 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...

0
Q: how to get velocity x and y from angle and speed?

TolkienPotatI 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...

0
Q: Conditionally replace values of one variable with values of another variable

Gigi39I 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), ...

0
Q: Jquery toggle function on Ruby on Rails project

bubuq3I 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=

-1
Q: How would I access this JSON in PHP

FallenChargeI 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...

0
Q: Create Annotations with Self-Supervised Learning

Timco VancoMy 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...

19:13
0
Q: Breaking Type Safty Using Generics

TrismegistosI 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>(...

1
Q: logical and with nested boolean arrays

Nico SchlömerI 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...

0
Q: Access flashbag form AbstractFormLoginAuthenticator

MattSymfony 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...

0
Q: react-native Hide specific label of screen in the bottom tab navigation

KimI 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...

0
Q: Why am I getting "NOAUTH Authentication required" with Spring Boot?

JGleasonI 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 ...

0
Q: How would you go about debugging Specified Cast is not valid, using dates?

Furqaanhttps://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; ...

0
Q: Compare integer to a non integer input in command line. C

CipherI 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.

0
Q: Segmentation Fault does not happen with valgrind/gdb, can't debug

André CostaI 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...

0
Q: function calling by rigid python keyword

mas883why 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]...

0
Q: Perpetual counter within the same web session

Cherubrock74Trying 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...

0
Q: Passing redux store to sub component makes redux store undefined

LeToucanHello 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...

0
Q: Design Software Simulation Best Practices

Rosanero4EverI 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...

0
Q: Data coming from frontend duplicates in backend twice

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

0
Q: Expo: How can I share my camera view to the internet in a live stream sort of fashion?

Jonah GI'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 ...

0
Q: How to assign teacher teaching multiple subjects to students when students can study multiple subjects but have to study only 1

Neetu kumariI 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...

0
Q: DateDiff() Function in PowerAutomate: Where is it?

Squ1rr3lzI'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 ...

0
Q: Toggle Button doesn't seem to be working?

Mo MiahHi 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 ...

19:38
-2
Q: I dont understant heap memory allocation

Zevile 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...

0
Q: useEffect causing an endless loop

Lamis Abouzinai 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...

1
Q: Game stuck on first frame when triggered by onclick event

LlamaButtI'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...

0
Q: Flutter - How to move and zoom Canvas drawings without AGAIN running something like the CustomPainter paint method?

user743436I 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...

-2
Q: Applying an array of arguments to a function in python?

iceplantI 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-...

0
Q: nullinjection error in httpclient from angular service

Bob RamseyIn 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...

0
Q: What function returns when working with iterables

oleksiiConsider 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()

0
Q: Cuda _sync functions, how to handle unknown thread mask?

Jon ChesterfieldThis 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...

0
Q: Unable to retrieve weight, heart rate data from google fit rest api

ManoI 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...

0
Q: How to create Block diagram of A 32 bit ALU in quartus

IsabellakordeiHelp 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.

0
Q: How to merge Pandas DataFrames with row replication?

mickuzI 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...

0
Q: Integrity & NotNull errors for null value in DateField column, but null=True, and blank=True

FlamePrinzI'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: ...

0
Q: How to resolve: express-session deprecated maxAge as Date; pass number of milliseconds instead

Ntshembo HlongwaneHey 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...

0
Q: kotlinx.android.synthetic returns null in DialogFragment

El SushiboiBefore 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 ...

0
Q: Autocomplete in RichTexbox WindowsForms C#

DucklettI 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

0
Q: feature layer popup properties showing unidentified when polygons overlap

blg2I 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 ...

0
Q: Is program translation direction well-defined?

pmorIt 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?

0
Q: (RPG, game development) Is my code concept for items resilient and fit for the future?

Dexter ThornQuestion 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...

20:04
0
Q: Activate Click and MouseDown events at the same time?

Rachael SarahI 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...

0
Q: Selecting the most recent entry on a timestamp cell

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

0
Q: Cases to variables in R (like SPSS)

user14613972I 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>...

0
Q: How to properly convert std::string to an integer vector

ireneisgoodMy 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...

0
Q: PHP Printing - How do I print directly from PHP on local server printer?

Cristian CutiteiI 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...

1
Q: Aggregate values of a column in a pandas df based on multiple filters of a different column - python2.7

flamencoStarting 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 ...

0
Q: Replace switch statement in C#

user641812I 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...

0
Q: login and registration redirect to wrong url in php

Erick91I 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...

0
Q: How to order by lastModifiedDateTime or lastModifiedBy user displayName in Graph API?

hotcakedevI 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...

0
Q: How can I responsive my flutter app with MediaQuery?

mmdrezaahmiHow 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**; ...

0
Q: How to upload multiple files in firebase storage

kceeI 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...

0
Q: Default character limit for an input function in python?

MamdlvI 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 ...

0
Q: android websocket client connection is closing automatically

SachinI 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 ...

0
Q: SwiftUI and Socket.io

SercanKayaHow to connection SwiftUI and Socket.io. enter image description here enter image description here

0
Q: Cannot invoke "java.util.ArrayList.add(Object)

user804406I'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...

0
Q: Unable to modify PHP code for wordpress plugin

ZanamI 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'] ...

0
Q: problem on show paginate style in normal size

Farhad Vakili jamilI 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 ...

0
Q: MicroK8s Metallb random error when calling a service

GregoireI'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 # ...

0
Q: How can hide and unhide the active window with AutoHotKey?

denniskladI 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

0
Q: How do you normalize a one to many recursive relationship?

Genesis_KittySo 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...

0
Q: Help with improving performance on unseen data for semantic segmentation using auto encoder

Parth TamaneI 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...

0
Q: File mover based on document name

BetraxI 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...

20:29
0
Q: How to dynamically require assets from inside a function?

Question3rI 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...

0
Q: How do I make my platforms a far distance away from each other using randomizer

Window manSo 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...

-1
Q: How to write a python code that terminates a process when a condition is met?

GrapheneerI 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...

0
Q: Hide Navbar component when it reaches Footer component in VueJS

GeorgicaFaraFricaI 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">

0
Q: extracting substrings with regex

user977828I 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...

-4
Q: SyntaxError: unexpected EOF while parsing when reading in 2 numbers

Floria GoggI 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...

0
Q: Teradata using CASE statement need to change the date format

SarasI 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

0
Q: Why am I off by 1-2 when trying to multiply without operators? (Bit Manipulation)

rexorsistI'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...

0
Q: Django - running both Functional and Unit test in a single test file

Homunculus ReticulliI 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...

0
Q: In swift, how to perform a segue with .crossDissolve animation?

MonicaIn 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...

0
Q: Linux container start-up issue in LCOW WS2019: error during CreateProcess: failure in a Windows system call: Unspecified error (0x80004005)

AbinContext: 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 ./...

0
Q: Parse the OUTLOOK.HOL file into CSV

Michal Z.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...

0
Q: Is socket.io web site SEO friendly?

sadeghproI 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...

0
Q: transform list of data frames to obtain means for df names and yearly means

Joanna OKI’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("...

0
Q: Google form - inventory management

babujhi saspaanithyI 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...

0
Q: contact form submit button works on desktop but NOT on mobile

ThysHi 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"...

0
Q: Adding a number into a string in C

Haise SasakiI have the following code snippets: student_t students[10]; char *name = "Student"; and this one for (int i = 0; i < STUDENT_COUNT; i++) { students[i].id = i; students[i].note = 1.0 + (i%4); strcpy(students[i].name, name); students[i].name[7] = (char) i + '0'; students[i].n...

20:54
0
Q: Dependency Injection of MongoDB Connection Information in View Layer of MVC

36m_901gsI'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 -...

0
Q: positioning geom_boxplot to top of figure

Devon O'RourkeI'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...

0
Q: Group by and summarise number of boolean values of a column corresponding to each unique value of another column on a specific date

Usman KhaliqI 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, "

-1
Q: How to find the average number in an array that has already been constructed

Will ColumbiaHow 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 ...

0
Q: Passing child component method to parent component on click event vue.js

user2410266In 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"/

0
Q: Slide item auto height in fullpage.js

shahin cheraghiI 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:...

0
Q: flutter: randomize item count in list View

rayai 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...

0
Q: Git Reset --hard leaves newly added files

kevinI 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?

0
Q: adding values of a list for a defined length

Candi00I 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...

0
Q: Transpose multiple columns in pairs of two - pandas python

Giuseppe GiobbeI 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...

0
Q: Create scheduled background task with Jersey

user23I 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...

0
Q: Is it possible to link a separate office 365 account to an azure tenant?

Ben QuirkI 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...

0
Q: Sort pandas by Date, custom aggregator: combine all the data for each date

liaisonI'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...

0
Q: Run time error while running example veins_inet with inetmanet

ProfBI 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...

0
Q: How do I use a web hook using Stripe and ARMember in Wordpress

Constantine CostopoulosI 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...

13:00 - 21:0021:00 - 00:00

« first day (1 day earlier)    last day (202 days later) »