almost home

roma★
Sweet Seals For You, Always

Love Begins
taylor price

bliss lane
noise dept.
Noah Kahan
Lint Roller? I Barely Know Her
TVSTRANGERTHINGS

if i look back, i am lost
untitled
2025 on Tumblr: Trends That Defined the Year
Cosimo Galluzzi
Today's Document

Origami Around
Stranger Things

pixel skylines
h

@theartofmadeline

seen from Netherlands
seen from United Kingdom

seen from Malaysia
seen from Bangladesh

seen from Malaysia

seen from Malaysia

seen from United States
seen from Türkiye
seen from Canada
seen from United States
seen from United States
seen from South Africa
seen from Bangladesh

seen from Italy

seen from United States

seen from Malaysia
seen from United States

seen from United States
seen from Türkiye
seen from Brazil
@stuff-sean-knows-blog
Mathematically correct breakfast: How to cut a bagel into two linked halves.
Reset your password!
A/B Testing and Machine Learning
This blog post is a fascinating look at an alternative to traditional A/B testing for new web site features. It has an insightful look at the statistics behind the traditional method and proposes a very simple, and clearly superior, method for testing which is based on a simple algorithm that is trivial to implement.
CSS Shapes
This site has some extremely clever examples of drawing shapes with an HTML element and CSS.
Counting stuff in bash
I am the WORST at remembering the finer points of command line actions. Here is how you count the output from find (or ls or whatever):
find ./ -name *.pdf | wc -l
That hits so close to home.
Sorting multidimensional arrays in PHP5
Here is a small class used to sort by a key in a multidimensional array in PHP5
class MultiDimSortByKeyValue{
static private $key;
public static function sort(&$array, $key){
self::$key = $key;
usort($array,array('MultiDimSortByKeyValue','compare'));
}
private static function compare($a, $b){
return (strcasecmp( $a[self::$key], $b[self::$key] ));
}
}
Usage:
MultiDimSortByKeyValue::sort($array, $key)
Replace shebang!
I am sure that I am late to the game, but here is a solution to portability problems with shell/perl scripts. Instead of:
#!/bin/bash
start scripts with:
#!/usr/bin/env bash (or perl)
This will use the system paths for the interpreters and make the script more portable. Woohoo!