Questions by Geraldine Russel
Python truncate a long string?
How does one truncate a string to 75 characters in Python? This is how it is done in JavaScript: var data="saddddd...
How to use Gnupg's passphrase-fd argument??
I would like to use GnuPG´s decrypt command without any user interation. The script's --passphrase-fd argument seem...
Pylint invalid function name?
I'm running Pylint 1.7.2 with Python 3.6.2. Pylint is showing the following error: Invalid function name "create_ma...
Passing data between a fragment and its container activity?
How can I pass data between a fragment and its container activity? Is there something similar to passing data betwee...
How can I generate GUIDs in Excel??
I have an excel file with one order on each row, and I want each order to have a unique identifier, so there will be...
Dropdown using javascript onchange?
I have a simple drop down and I want to have it so that if the user selects Have a Baby the message changes to Have ...
Createuser: could not connect to database postgres: FATAL: role “tom” does not exist?
I'm trying to set up Postgres for the first time, and I need to create a user with permissions to read and create da...
Understanding torch.nn.Parameter?
I am new to pytorch and I have difficulty in understanding how torch.nn.Parameter() works. I have gone through the ...
Reading an integer from user input?
What I am looking for is how to read an integer that was given by the user from the command line (console project). ...
MySQL update conditions in one query (UPDATE, SET & CASE)?
I'm trying to update a set of records (boolean fields) in a single query if possible. The input is coming from pagi...
Modify table: How to change 'Allow Nulls' attribute from not null to allow null?
How to change one attribute in a table using T-SQL to allow nulls (not null --> null)? Alter table maybe? ...
What is the complexity of this nested triple for loop??
I have searched a bit on StackOverflow and have understood the complexity up to the point of the j-loop, which is O(...
Scanner doesn't read whole sentence - difference between next() and nextLine() of scanner class?
I'm writing a program which allows the user to input his data then outputs it. Its 3/4 correct but when it arrives a...
Django - filtering on foreign key properties?
I'm trying to filter a table in Django based on the value of a particular field of a ForeignKey. For example, I hav...