Categories
Mastering Development

ValueError: Dimensions must be equal, but are 1 and 28 for ‘ is occurring

I really don’t have much understanding with Neural Network. What kind of other needs should be done in the following code snippet? Error: ValueError: Dimensions must be equal, but are 1 and 28 for ‘ = BatchMatMulV2[T=DT_FLOAT, adj_x=false, adj_y=false](Reshape_11, Variable_318/read)’ with input shapes: [60000,28,28,1], [28,256]. Code: # Parameters learning_rate = 0.001 training_epochs = 2000 cost_history […]

Categories
Mastering Development System & Network

Testing TLS1.2 support on both client and remote server (SQL)

I am trying to verify that both my linux client and windows SQL server support TLS1.2. but not quite certain what to make of the results. I am hoping for some guidance. On the linux client I am running openssl command against the remote server on default SQL port: openssl s_client -connect winsrv2019.domain.com:1433 -tls1_2 The […]

Categories
Mastering Development

How do I install numpy in windows successfully [duplicate]

I have tried installing numpy from my terminal and it is giving me complicated error message. PLease somebody help me, am very new to pythoin and pycharm Executing pip3 install numpy command: C:\Users\Benedict\PycharmProjects\Example1>pip3 install numpy Collecting numpy Using cached numpy-1.19.2.zip (7.3 MB) Installing build dependencies … done Getting requirements to build wheel … done Preparing […]

Categories
Mastering Development

Efficiently append an element to each of the lists in a large numpy array

I have a really large numpy of array of lists, and I want to append an element to each of the arrays. I want to avoid using a loop for the sake of performance. The following syntax is not working. a=np.array([[],[1],[0,1]]) [j.append(3) for j in a] The expected result for this example would be np.array([[3],[1,3],[0,1,3]) […]

Categories
Mastering Development System & Network

Cannot sign in to aws console

I’m having problems getting to the signin page of aws in Ubuntu 20.04 with latest updates. As I suspect this to be a network problem, I’ve tried accessing with curl and openssl. Sometimes (randomly) following commands doesn’t fail and I get successful responses, but most of the time I’m getting following responses: ~ curl -vvv […]

Categories
Mastering Development

Fast way to remove array of specific row values from 2D numpy array

I have a 2D array like this: a = np.array([[25, 83, 18, 71], [75, 7, 0, 85], [25, 83, 18, 71], [25, 83, 18, 71], [75, 48, 8, 43], [ 7, 47, 96, 94], [ 7, 47, 96, 94], [56, 75, 50, 0], [19, 49, 92, 57], [52, 93, 58, 9]]) and I want to […]

Categories
Mastering Development

Down below is my code my why i don’t know their is a problem in it can someone help me out

THIS IS THE ERROR MESSAGE : Traceback (most recent call last): File "import.py", line 23, in n[0],n[1],n[2],row["house"],row["birth"] TypeError: ‘NoneType’ object is not subscriptable from cs50 import SQL from sys import argv import csv # checking if code is executed properly else exit if len(argv) < 2: print("usage error, import.py characters.csv") exit(1) # Open the database […]

Categories
Mastering Development

cant run a django project

just starting with django, it is a bit too much for me reading this error log. if anyone has any opinions it would be much appreciated. thanks in advance. Traceback (most recent call last): File "c:\users\deanpc\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\deanpc\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\deanPC\AppData\Local\Programs\Python\Python39\Scripts\django-admin.exe\__main__.py", line […]

Categories
Mastering Development

pip cannot install external modules (ERROR: Command errored out with exit status 1) [duplicate]

I used to have python installed in the folder: C:\USers\Christian\AppData\Local\Programs\Python\Python39 (the default location of the python installer) However, I tried to update things, uninstalled python and reinstalled the latest version to C:\Python. Then, to set the paths, I typed the two commands in the powershell: [Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python") [Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python\Scripts") When I just write code it […]

Categories
Mastering Development

Getting an error with a multi-input Keras model related to the input dimension

I have a multi input Keras model. Here the inputs: [<tf.Tensor ‘input_1:0’ shape=(None, 256, 256, 3) dtype=float32>, <tf.Tensor ‘input_2:0’ shape=(None, 256, 256, 3) dtype=float32>, <tf.Tensor ‘input_3:0’ shape=(None, 256, 256, 3) dtype=float32>, <tf.Tensor ‘input_4:0’ shape=(None, 256, 256, 3) dtype=float32>] And here the input shape of the model : [(None, 256, 256, 3), (None, 256, 256, 3), […]