Skip to content

BitBook

  • Online Tools
  • Dev
  • Sysadmin
  • Reviews
  • Machine Learning

How to Insert Multiple Rows with MySQL (insert shortcut)

February 8, 2022 mike MySQL

Below is an example how to insert multiple values/rows into a table using a single insert statement shortcut. Versus individually listing out each insert statement

Find Directory Sizes in a Folder

October 16, 2019 mike Sysadmin

Finding the recursive sizes of folders and their contents in summary is easy with the disk usage (du) command. Output will look something like this.

Get the PHP Version at Command Line (3 examples)

January 19, 2019 mike PHP

To find the PHP version you can combine php and grep. Get the major/minor version only 7.2 Get full version number only 7.2.10 Get the

Find Ubuntu Version at the Command Line

January 18, 2019 mike Sysadmin

Finding your current version of Ubuntu is simple. Output will look something like this. No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1

Function to Calculate the Best Font Color for a Background Color

January 3, 2019 mike PHP

This PHP function tables a hexadecimal color code like “ff0000” and figures out what’s more color font text would be more readable, black or white.

Open Source Fast Sentiment Analysis (NLP) in Python

January 2, 2019 mike Machine Learning, Python

The Python Sentiment API Project will allow you to implement Natural Language Processing sentiment analysis in any programming language. That is, passing a piece of

Explode String by Any Whitespace

January 1, 2019 mike PHP

This one-liner function will turn a string into an array by its whitespace properly looking for full-width spaces and multi-byte whitespace characters.

while/foreach/for loop Skip to Next Iteration

December 31, 2018 mike PHP

If you need to skip to the next item inside of a PHP loop its simple with the continue; control keyword. You can also use

A Guide to Finding Files on Linux and Mac

December 30, 2018 mike Sysadmin

A few creative ways to use the find shell command. Case insensitively look for a file named your_file_name.txt Using wild cards – Case insensitively look

Command to Find Which Shell I’m Currently Using

December 29, 2018 mike Sysadmin

This will work on any linux/unix variety and mac os. Output will look something like this. -bash

Posts navigation

1 2 3 … 14 Next Posts»

Bitbook

  • About
  • Privacy Policy
  • Terms of Service