Categories
Development

Creating Columns of PV on Python

1.4.1 Print PV for a range of rates Compute the present value for a range of discount rate from 0% to 1% in increments of 1%. Produce a three-column output that looks as follows: See Picture Each column is 25 characters wide and right aligned. The numbers have comma as thousands separator and two decimals. […]

Categories
Development

Create 2D image with black and white squares

The first column of A consists of the source node and the second column consists of the target node. I want to convert the the list to an image format of size N by N similar to the one in the link (http://www.dontveter.com/basisofai/char.html) with black and white squares. The user inputs the size of the […]

Categories
Development

Two-Way Repeated Measures ANOVA: Error in lm.fit()… 0 non-na cases (rstatix)

I am trying to run a Two-Way Repeated Measures ANOVA using the R Statix package based on the description from here however I am running into the subject error with my dataset. The data consist of 10 replicate biomass measurements recorded at each of 8 Locations across 5 months (10 reps x 8 locations x […]

Categories
Development

React Native: Scrollview doesn’t work correctly

I make a sign up page of an app with react-native, and because there can be small smartphone, so I want to give keyboardAvoidingView and ScrollView. If it adjusted correctly, it should look like the photo below, But, when I adjusted scrollview,it looked like the photo below, So, I tried various things, but I don’t […]

Categories
Development

How to minimize the sum of the elements in the final array after performing k number of operation

This question is asked in my interview coding and there were 12 test cases and i am only able to pass 8 of them. minSum(List values, int k) method need to complete. Example : nums = [10,20,7] and k=4 ans answer for this array is 5+5+4=14. Each operation consists of removing element from the array, […]

Categories
Development

how to set up laravel cron job in cpanel?

In my local system cron job is working perfectly when calling php artisan schedule:run. but when i upload laravel project into my cpanel, the cron job is not working. Below is my cpanel cron job path. * * * * * php -d register_argc_argv=On /home/techworld/public_html/hubli-betting/artisan schedule:run > /dev/null 2>&1 This command generates below mention error […]

Categories
Development Python

Parsing a .pdb file in Python and creating a dictionary for specific record types

First, let me start by saying that I’m doing this as a Python exercise and I’m not allowed to use Biopython. I am writing a script that will help me parse any .pdb file generated from a trajectory. I am trying to create a dictionary that would link the chain variable with the resNumber variable. […]

Categories
Development

How to make an image fit the browser window using grid?

I want to fit a picture into a website that still works when you scale it, but my picture is gigantic and I can’t seem to make it fit. I tried to put a restriction on the wrapper div (here called “innpakning”) on the picture itself, and the surrounding div. Nothing seems to work. And […]

Categories
Development

How to get extremes from already determined groups of peak/valley indexes? [python]

I’m sorry if i’m butchering the question but essentially i have 3 arrays. One array which is the signal data, and an array of peak indexes and an array of valley indexes. The problem however is that sometimes there will be multiple indexes for a peak in a row before there is a valley index. […]

Categories
Development

  ignoring whitespace and not working

I am trying to increase the space between the image and text in this link top bar. Link: https://pushdaddy2.myshopify.com/ I tried &nbsp; which is normal to use for increasing the whitespace but it just prints the &nbsp; character. <span id=”pab_message” style=”color:inherit;”>&amp;nbsp;&amp;nbsp;All t-shirts are 15% off </span> Can anyone say is there any criteria to use […]