Categories
Mastering Development

Modify graph (with plotly)

This is small example of my data set.This set contain weekly data about 52 weeks.You can see data with code below: # CODE #Data library(tidyverse) library(plotly) ARTIFICIALDATA<-dput(structure(list(week = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, […]

Categories
Cryptocurrency Ethereum Mastering Development

Openzeppelin Crowdsale

Ok so Ive found Openzeppelin a slightly easier Code to use, it explains better than Solidity does. But now my problem is the Math bit. Im no mathematician neither and cannot get my head around how it works. So if I want 3 ether per token at 18 decimals for the one example, and 8 […]

Categories
Mastering Development

How to access coordinates inside a list in python?

I have a list containing coordinates of a polygon inside a list .How do i access x and y points present in this list .Basically i have to use these points and plot.I have to extract all_points_x and all_points_y enter code here [{‘shape_attributes’: {‘name’: ‘polygon’, ‘all_points_x’: [35, 28, 27, 31, 40, 51, 62, 72, 74, […]

Categories
Mastering Development

WebGL Point Lighting Issue

I have attempted to create a rotating cube in WebGL and texture it by using the texture mapping technique, which I think worked fine. The cube rotates so as to try and demonstrate the (point) lighting I have tried to implement, but it seems to act in an unexpected fashion and I’m not really sure […]

Categories
Mastering Development

Modify a list based on another list and additional criteria

I have deleted the previous question and rewritten it I have 2 lists of size n (let’s assume it is 5): List a which consists of non-zero random integers List b which consists of random non-negative integers falling under these criteria: The elements of this list are in descending order. ith element is greater or […]

Categories
Mastering Development

Difference of list of dictionaries

I’ve searched quite a lot but I haven’t found any similar question to that one. I have two lists of dictionaries in following format: data1 = [ {‘id’: 4, ‘date_time’: datetime.datetime(2020, 4, 3, 12, 34, 40)}, {‘id’: 4, ‘date_time’: datetime.datetime(2020, 4, 3, 12, 34, 40)}, {‘id’: 6, ‘date_time’: datetime.datetime(2020, 4, 3, 12, 34, 40)}, {‘id’: […]

Categories
Mastering Development

Converting PCM 16khz to PCMU/A 8Khz introducing “crackles” – can I improve this?

I’m attempting to convert in real-time to/from PCM (16khz, 16bit, mono) to PCMA or PCMU (8khz, 8bit, mono). This post just focuses on the encoding (PCM-PCMA/U), but ultimately I need to go both ways. I initially tried a straight encode (ALawEncoder.LinearToALawSample), but ended up with great quality half-speed audio. So I’m now looking at downsampling […]

Categories
Mastering Development

how to make it popup like other websites subscription form? [closed]

how to make it popup like other website use it for subscribe us form can anyone help me.can we do it by modal if yes then tell me how? i have tried to implement on my website but its only showing above my carousel and doesn’t pop up why?? I have also seen that the […]

Categories
Mastering Development

how to summarise multiple logistic regression models in a table?

I have a dataset with age as continuous and as a factor, sex as a factor and 4 groups. logistic_s <- data.frame( ID = c(1:6), Age = c(9, 12, 16, 57, 29, 24), Age1 = factor(c(1, 2, 2, 6, 3, 3)), Sex = factor(c(“F”, “M”, “F”, “M”, “F”, “F”)), N = c(rep(1, 6)), G = […]

Categories
Mastering Development

How To Make this table

I wish i can make this table Table that’s my array $column1=array(1,9,17,25,33,41,49,57); $column2=array(2,10,18,26,34,42,50,58); $column3=array(3,11,19,27,35,43,51,59); $column4=array(4,12,20,28,36,44,52,60); $column5=array(5,13,21,29,37,45,53,61); $column6=array(6,14,22,30,38,46,54,62); $column7=array(7,15,23,31,39,47,55,63); $column8=array(8,16,24,32,40,48,56,64); $totalArray=count($column1);