Skip to content

[Solved] ‘Object arrays cannot be loaded when allow_pickle=False’

[Solved] ‘Object arrays cannot be loaded when allow_pickle=False’

Last Updated on 2021-02-20 by Clay

Display Python code on the screen

Introduction

I often got this error message when I learning about machine learning by Python, recently.

'Object arrays cannot be loaded when allow_pickle=False'

The reason for this message is actually very clearly. In fact, it’s just that “allow_pickle” is adjusted to False after Numpy package is upgraded.

And it caused us to be hindered when reading some pickle-encapsulated training data.

Read More »[Solved] ‘Object arrays cannot be loaded when allow_pickle=False’

[Linux] Using RDP to connect Windows OS

Last Updated on 2021-02-11 by Clay

Linux is an operating system that can do all the functions you imagine
Courtesy of Wiki

Introduction

For a long time, if we want to use Linux OS to connect to Windows with graphic user interface, we have many choices, such as Chrome remote, Teamviewer, RDP … etc.

Today I want to record how to configure Linux to use RDP software to connect to Windows. At the beginning, I want to say that these two different operating systems might be in conflict with each other, and they are not so easy to configure. In fact, it takes less than 20 minutes to configure.

So, let’s go.

Read More »[Linux] Using RDP to connect Windows OS

[Linux] How to upgrade sudo package

Last Updated on 2021-02-09 by Clay

Linux is an operating system that can do all the functions you imagine

Introduction

Today I saw the news and found the sudo tool commonly used in unix-liked operating systems has a heap overflow BUG (number CVE-2021-3156).

At present, it has been confirmed that full root permissions can be obtained in the following version:

  • Ubuntu 20.04(sudo 1.8.31)
  • Debian 10(sudo 1.8.27)
  • Fedora 33(sudo 1.9.2)\

According the news, as well as several discussion forums I have roughly read, almost all of them are suggesting that everyone quickly upgrade the package version. This bug was be found in 2021/01 and was notified to the sudo development group.

After a week, the new version of the fix was already online.

And then, I record how to upgrade our sudo package version.

Read More »[Linux] How to upgrade sudo package

Cancel HTTP website to redirect to HTTPS website

  •  
  • Uncategorized

Last Updated on 2021-02-08 by Clay

Cryptocurrency mining equipment, isometric ethereum digital currency extract, blockchain system dark blue vector illustration

Introduction

When we using Chrome browser, sometimes if we went to HTTP website, the browser will redirect to the HTTPS website. (I’m not sure other browser will help us to do it)

Sure, if it can help us to redirect the SSL website is better, but when we are develop a new website and we need to test it step by step, redirect to HTTPS website is trouble. It may be make us can’t test our website.

Read More »Cancel HTTP website to redirect to HTTPS website

[Python] Use zipfile to compress or decompress file

Last Updated on 2021-01-21 by Clay

Python is the most popular programming language!

Introduction

Everyone is familiar with the compressed file. These compressed file means that we compress one or more files and folders into a file, which is also call archiving.

In addition to archiving, according to the different compression format algorithms, some can even compress the file size to help us better store and transmit these files.

But what if we need to restore the compressed file back to the original file? At this time, we need to decompress according to different compression formats.

Today I want to record how to use Python module zipfile to compress or decompress some fiile as ZIP format.

Read More »[Python] Use zipfile to compress or decompress file

Easy way to remove CUDA

Last Updated on 2021-01-20 by Clay

Cryptocurrency mining equipment, isometric ethereum digital currency extract, blockchain system dark blue vector illustration

Introduction

If you are familiar with the deep learning and its environment, you may often hear “CUDA“. Before we starting to train our model, maybe we need to install GPU driver, CUDA and cuDNN toolkits. They can make our training have the best effect.

Read More »Easy way to remove CUDA

[Python] Convert Glove model to a format Gensim can read

Last Updated on 2021-01-02 by Clay

Python is the most popular programming language!

Introduction

Those who are familiar with natural language processing (NLP) must be familiar with Glove and Python package Gensim.

GloveGlobal Vectors for Word Representation)is a paper published by Stanford NLP Group, and it is also an open source pre-trained word embedding model. The Glove that you often see on the Internet now refers to this open source pre-trained model.

Gensim is a Python implementation of the Word2Vec paper proposed by Google in 2013, allowing us to easily train the word vector model using our own corpus via this package.

Read More »[Python] Convert Glove model to a format Gensim can read

[PyTorch] A progress bar using Keras style: pkbar

Last Updated on 2020-12-29 by Clay

PyTorch is a famous Python deep learning framework

Introduction

I have been studying about pointer-generator network lately, and I found a package “pkbar“can let us to use keras style progress bar in our tasks.

In fact, it can be used not only in the code of PyTorch framework but also in any loop.

Read More »[PyTorch] A progress bar using Keras style: pkbar
Exit mobile version