Posts

Showing posts from 2019

Tor hash-password for Windows 10

Image
Apparently this is a known bug that when your run tor.exe from the command line it is running but opens in a hidden window. To get around this, run the following:  tor --hash-password *your_password* | more . Hopefully this works. See more about the issue  here . And original poster  https://tor.stackexchange.com/a/9145. Credit goes to [ tomcraft ]

Open *.npy- Numpy file easy to read mode

Image
Sometimes its required to open Numpy file in easy to read mode but its challenging sometimes to find an editor or reader which can open. When you open the file and read the numpy array we see multiple error either display is not showing complete data, due to size. import numpy as np #from matplotlib import pyplot as plt #import matplotlib import glob #f= open("data.txt","w+") for filename in glob.glob( "*.*" ): if '.npy' in filename: load = np.load(filename) print (filename) print (load) Still the display on editor is : x_test.npy [[[0 0 0 ... 0 0 0]   [0 0 0 ... 0 0 0]   [0 0 0 ... 0 0 0]   ...   [0 0 0 ... 0 0 0]   [0 0 0 ... 0 0 0]   [0 0 0 ... 0 0 0]] Now I struggled to find the right way to open and see what's inside Numpy file. Then i found in blog, all windows based python installer comes with Spyder IDE. Open using Spyder with the following steps and load the Numpy file: ...