(MongoDB) How to use –fork On Windows for multiple servers

Although for most of developers, deploying database On Windows is not advised. For beginners like me, always need do some practise on Windows.

Currently I am studying replica sets, which asks me to run multiple servers at the same time with following commands.

Continue reading “(MongoDB) How to use –fork On Windows for multiple servers”

Logistic Regression with a Neural Network mindset

Logistic Regression with a Neural Network mindset

Welcome to your first (required) programming assignment! You will build a logistic regression classifier to recognize cats. This assignment will step you through how to do this with a Neural Network mindset, and so will also hone your intuitions about deep learning.
Continue reading “Logistic Regression with a Neural Network mindset”

NameError: name ‘urllib2’ is not defined

I am studying mongoDB with python, I met this problem.

When I tried to open a url by python, I copied some code from internet like following:

and met this error:
NameError: name urllib2 is not defined

Then I found that ‘urllib2’ is a lib for python2 while I use python3

Solution is easy by changing import lib

Running Hadoop program on google cloud platform

Creating a Hadoop Cluster on Google Cloud Platform

At first, you need a sign up for the Google Cloud Platform
https://console.cloud.google.com/freetrial?pli=1&page=0
With this url, you can get two month free trial with a $300 credit for one year.

Continue reading “Running Hadoop program on google cloud platform”

(crawler4j)SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.

While using crawler4j to crawl some data, I met errors as following:

Based on the official document I found solution:

https://www.slf4j.org/codes.html#StaticLoggerBinder

Then I downloadedlogback and import logback-classic.jar.

Perfect!

Azure Function Error: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

These days, I changed one of my Node.js Application from AWS to Azure. However, some functions do not work after migrating.

Continue reading “Azure Function Error: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.”