• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Python

ValueError: Masked arrays must be 1-D

by admin

Scatter plot is a basic plot of dots. You can draw it by calling plt.scatter(x,y). The following example shows a scatter plot of random dots: import numpy as np import matplotlib.pyplot as plt # Set the random seed for NumPy function to keep the results reproducible np.random.seed(42) # Generate a 2 by 100 NumPy Array […]

Filed Under: DevOps, Python

How to Use External Python modules in MySQL Shell

by admin

MySQL Shell is a great tool for working with MySQL. One of the features that make it stand out compared to the traditional mysql command-line client is the support for JavaScript and Python in addition to SQL statements. This allows you to write code you otherwise would have had to write outside the client. This […]

Filed Under: DevOps, mysql, Python

Hello Newbies in Tech! Switching From Windows to Linux? Read This First

by admin

I am a newbie in tech. I have been using Linux and Windows side by side for quite some time now. This blog post is based on my personal experience. I love Windows. I have used Windows all my life. Once, I thought of trying out a Linux distribution. I installed Ubuntu, but then I […]

Filed Under: DevOps, Python

A Beginner’s Guide To Create Files & Folders Inside Windows Subsystem For Linux

by admin

In this blog, we will learn how to create or move files and folders to Linux root system from Windows. Familiarity with Windows Subsystem for Linux (WLS) is required. Please read my earlier blog post – Windows Subsystem For Linux – Run Linux on Windows (It’s FAST). This is part 3 of our 4 part […]

Filed Under: DevOps, Python

Windows Subsystem For Linux – Run Linux on Windows (It’s FAST)

by admin

I am a newbie in tech. I have been using Linux and Windows side by side for quite some time now. This blog post is based on my personal experience. Feedback Welcome. Would really appreciate your time. In my earlier blog post Linux Vs Windows – Why Linux Is Better for Programming & Web Dev, […]

Filed Under: DevOps, Python

The Ultimate Guide To Use VS Code With Windows Subsystem for Linux (WSL)

by admin

In this blog, we will learn how to use Visual Studio Code in Windows Subsystem for Linux (WSL). In case you have not heard about WSL before, please read my earlier blog posts – What is Windows Subsystem For Linux and How To Run Linux on Windows. This is part 5 of our 6 part […]

Filed Under: DevOps, Python

My Development Environment Set up on Windows to use Python for Web Dev & Data Science

by admin

Techies have different set-ups on a Windows machine to use Python for web development, machine learning or data science. For the newbies in tech, I recommend any one of the following two development environment set-ups (also recommended by Microsoft) to start their coding journey: Use Windows Subsystem for Linux (WSL) and VS Code This is […]

Filed Under: DevOps, Python

Set up Jupyter Notebook in VS Code for Data Science

by admin

Project Jupyter is a non-profit, 100% open-source project. It develops software and web applications to support interactive data science and scientific computing. JupyterLab, Jupyter Notebook, and Jupyter Hub are the three key open-source software developed by the team. The Jupyter Notebook is a web app that lets you easily create and share documents that contain […]

Filed Under: DevOps, Python

Strings and Variables in Python

by admin

Strings A string is simply a series of characters. Anything inside quotes is considered a string in Python,and you can use single or double quotes around your strings like this: This is a string.” ‘This is also a string.’ Changing Case in a String with Methods One of the simplest tasks you can do with […]

Filed Under: DevOps, Python

Python Quadratic Formula

by admin

An equation with the form ax^2+bx+c=0 is known as a quadratic equation. When plotted on a graph it will take the general shape of the graph seen below. The points at which the quadratic graph crosses the x-axis are known as the solutions of the quadratic equation. For this example, the quadratic crosses the x-axis […]

Filed Under: DevOps, Python

Next Page »

Primary Sidebar

Recent Posts

  • nitrogen Command Examples in Linux
  • nitrogen: command not found
  • nft: command not found
  • nft Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright