Categories
Linux Mastering Development

Arch Linux – Boot stucked after installing SDDM on amd laptop

newbie here, after installing SDDM booting is stuck at: Starting version 245.7-1-arch.When i boot without quiet parameter it’s stuck on Finished| Load/Save random seed. When i boot with loglevel=7 no errors show after Load/Save random seed line. I tried – reinstalling sddm, plasma. Installing rng-tools, haveged UPDATE: Running sddm-greeter returns: GREETER: Could not load the […]

Categories
Linux Mastering Development

Arch Linux – Boot stucked after installing SDDM on amd laptop

newbie here, after installing SDDM booting is stuck at: Starting version 245.7-1-arch.When i boot without quiet parameter it’s stuck on Finished| Load/Save random seed. When i boot with loglevel=7 no errors show after Load/Save random seed line. I tried – reinstalling sddm, plasma. Installing rng-tools, haveged UPDATE: Running sddm-greeter returns: GREETER: Could not load the […]

Categories
Cryptocurrency Ethereum Mastering Development

Can I give multiple address parameters to a payable function?

Newbie here, making my very 1st Smart Contract (a rock/paper/scissors game). I’m using 0.5.11 because that’s what the tutorial I’m learning from is taught in. Here is my code: pragma solidity ^0.5.11; contract rps { enum Moves{ROCK, PAPER, SCISSORS} struct Player { uint id; address payable addr; Moves choice; } struct Game { uint wager; […]

Categories
Mastering Development

CSS not responsive to certain range

newbie here, but I actually did go through many forums here but can’t seems to find the solution. I’m trying to make three and responsive to 3 different dimensions of screens. The smaller one**(col-md)** and the bigger one**(col-lg)** works but not the middle one (col-md) I don’t know what I missed out but the middle […]

Categories
Mastering Development

How to assign variables to each number from an input from the user?

Newbie here, and I want to ask this question. If I have a string, how do I assign many variables corresponding to each number in that string? ( c language) For example, my string is “12345”, how do I assign a = 1; b= 2; c =3; d = 4; e =5? considering that “12345” […]

Categories
Mastering Development

pip3 installs python modules to python 2.7 by default

Newbie here, trying to import selenium. First time importing modules (outside of built-ins). My issue is whenever I pip3 install selenium it installs correctly to python 2.7.16 rather than 3.7.3. I found this out by running python3 in the terminal with no success importing selenium however just running the regular python can import selenium. More […]

Categories
Development

open and plot several data file on same plot Python

Newbie here, first question. I have several data files, that I want to open, get the relevant data (x and y) and plot on the same plot. I know how to do it if I type out a plot statement for each of them, but what I would want to create is a single function […]

Categories
Development PHP

How can i Redirect to error page using PHP?

Newbie here, I’m trying to redirect to a error page if a controller isn’t found from the url. I’m still learning and I have a long way to go and I am really lost on this one. code <?php Class App{ protected $controller = ‘home’; protected $method = ‘index’; protected $params = []; public function […]

Categories
Development

“TypeError: only integer scalar arrays can be converted to a scalar index” when operating on array of strings

I will preface by saying that I am very new to python and Stack Overflow. I am attempting to do an operation on a bunch of different arrays. An example of one of these arrays would be s2 = np.array( [‘e’,’e’,’e’,’k’,’k’,’k’,’e’,’e’,’e’,’k’,’k’,’k’,’e’,’e’,’e’,’k’,\ ‘k’,’k’,’e’,’e’,’e’,’k’,’k’,’k’,’e’,’e’,’e’,’k’,’k’,’k’,’e’,’e’,\ ‘e’,’k’,’k’,’k’,’e’,’e’,’e’,’k’,’k’,’k’,’e’,’e’,’e’,’k’,’k’,’k’,’e’,’k’]) I am attempting to do a summation using nested for loops, but […]

Categories
Development

stackdriver: how to share a particular dashboard ONLY

newbie here, created a dashboard with a few charts, intended to share with another team of users, however, have other dashboard within the same workspace, the intention is to only share a particular dashboard not the others. Scanning through the documentation only says an IAM controls the monitoring viewer, but how to further constraint to […]