All Questions
20,603,747
questions
-1
votes
1answer
8 views
Running a php function in a new window when an option is chosen
<label>Choose a Pre-Defined Query:</label>
<select id="Queries" name="Queries">
<option value="" selected disabled hidden>...
0
votes
0answers
5 views
How to do parallel to increase loop speed on the function that already uses parallelization in R?
I tried to loop 20 samples to run a function that already uses the parallelization, for example paramSweep_v3(sample, num.cores = 1).
I know mclapply, so I tried nested mclapply (assuming I have 20 ...
0
votes
0answers
5 views
AttributeError: 'Image' object has no attribute 'save'
I am following the basic tutorial for RDKit.
p = Chem.MolFromSmiles('[nH]1cnc2cncnc21')
subms = [x for x in ms if x.HasSubstructMatch(p)]
len(subms)
AllChem.Compute2DCoords(p)
for m in subms: ...
0
votes
1answer
13 views
The last if statement will not be excecuted when the conditions of the list are met?
Console.WriteLine("Welcome to the game noughts and crosses")
While game = 1
While gameplay = 0
Console.WriteLine("Please choose a square to place X")
...
-2
votes
0answers
11 views
I have a string in fomat :foo(a,b),a,b,c,d. How can I convert this string to list such as: [foo(a,b),a,b,c,d]
stripped = s.replace(" ", "")
new_list = list(stripped)
#This is my code that and I am only removing all white spaces and type casting the stripped s to list
0
votes
0answers
3 views
Understanding the GIoU loss function in tensorflow
The custom Loss function I am looking at is as follows:
@tf.keras.utils.register_keras_serializable(package="Addons")
class GIoULoss(LossFunctionWrapper):
@typechecked
def __init__(
...
0
votes
0answers
4 views
Docker Compose and Django app using AWS Lighstail containers fail to deploy
I'm trying to get a Django application running on the latest version of Lightsail which supports deploying docker containers as of Nov 2020 (AWS Lightsail Container Announcement).
I've created a very ...
0
votes
0answers
5 views
how do I make sure a particular user is the one logged in?
so I have some code which creates a user but how do I make sure every url that the user goes to will be in his/her own user session such that request.user will be the user I created?
def liked(request)...
0
votes
1answer
7 views
How to display Username after login using anchor tag
I want to display the current users name by using anchor tag but it doesnt show the users name. I have already included the DB connection and sesstion_start at the very top of my code.
<li>
...
0
votes
0answers
7 views
Exclude files and folders when copying
This question has already been asked here, but it doesn't get me anywhere. I would like to be able to exclude certain files with relative paths from being copied, but the whole thing no longer works ...
0
votes
0answers
4 views
Display data from an Api in the V-CALENDAR Vuetify Vuejs
I have the following data coming from my api:
[
{
"id": 1,
"start": "2020-12-24 01:00",
"end": "2020-12-24 01:30",
...
0
votes
0answers
4 views
lock or hidde “create or modify customer/product” in sales order in odoo 13/11
firts sorry for my poor english, but i need help about odoo 13.
I try to delete the view with the
sales order
and
example of error
well and i wont lock user to create customer because some saleperson ...
0
votes
0answers
6 views
How to fix error of two bundle id in my mac project
My mac application project has two compiled binaries and the Sqlite mac framework. Each of these three items has its own info. plist
this is the plist of the main binary
this is the plist of the ...
0
votes
0answers
4 views
ValueError: Expected target size (128, 44), got torch.Size([128, 100]), LSTM Pytorch
I want to build a model, that predicts next character based on the previous characters.
I have spliced text into sequences of integers with length = 100(using dataset and dataloader).
Dimensions of my ...
0
votes
0answers
4 views
MVC select/deselect with infinite loop problem
I'm making a UML app. You can select/deselect any type, which changes an IsSelected property on the Type. The Project reacts to this event and changes the CurrentlySelected property.
The problem is ...