Skip to content

BitBook

  • Online Tools
  • Dev
  • Sysadmin
  • Reviews
  • Machine Learning
  • Home
  • Dev
  • Page 5

Dev

Developer tips, functions, and how-tos.

How to Insert on Duplicate Key Update (an upsert)

December 10, 2016 mike MySQL

This example of a upsert, an on duplicate key insert statement in MySQL. What it does is if the table zipcode_population has a unique index

Function to Remove Dollar Signs and Commas From a Number

December 8, 2016 mike PHP

I needed a function to turn a string value dollar with commas into a decimal I could insert into MySQL. This function below will take

php-pathinfo

Using pathinfo Function to Detect File Extention

December 1, 2016 mike PHP

Sometimes that’s not necessary to check a file’s mime type and you only need to check the file extension. To do that we can use

Function to Parse URLs From a PDF Document

November 30, 2016 mike PHP

You don’t have to actually programmatically read a PDF to parse out the links in them. This simple routine below will parse out all the

learn-pdo-php

Learn PDO In 30 Seconds

November 29, 2016 mike PHP

phpdelusions is my main go to guide for everything php/pdo. But to just get started with PDO you really only need to know a few

collaborative-filtering

A Simple Slope One User Item Recommender In PHP/MySQL

November 27, 2016 mike Machine Learning, PHP

Big fan of user/item recommenders, which is also known as collaborative filtering. Slope one is a very basic but reasonably accurate recommender algorithm which makes

Parse Emails From a String

November 24, 2016 mike Parser Tools, PHP

Handy one for all sorts of reasons, just don’t use it for evil : \. I also did an online working version of this function.

Big List of Code Snippet & Playground Sites

November 22, 2016 mike Dev

Code playground sites are awesome for front end developers. They let users collaborate and teach unlike ever before. If you’ve ever been on StackOverflow for

Massive List Of Responsive Email Templates & Frameworks

November 20, 2016 mike HTML & UI

I’ve compiled a list of all responsive html email frameworks and templates. If you know of any missing from this list or want to include

Properly testing for request variables

November 19, 2016 mike PHP

When you’re starting out in PHP you might find sometimes variables don’t exist when you want them to and you’ll get the NOTICE message from

Posts navigation

«Previous Posts 1 … 3 4 5 6 Next Posts»

Bitbook

  • About
  • Privacy Policy
  • Terms of Service