• ### Welcome to the new look Inane Observations! And a trip down memory lane

A slightly belated welcome from me to the new look Inane Observations blog! The new theme has been created from scratch, using resources from the Jekyll Minima theme, and aims to be clean, minimalist and responsive. In accordance with this style, the tagline has also… »

• ### GIF scrolling text marquee with ImageMagick (or: DIY X'trapolis PIDs)

#!/bin/bash

IMWIDTH=336
IMHEIGHT=24
STEP=2 #pixels per frame
FRAMERATE=50 #frames per second

OUTPUT="scroll.gif"
FONT_PATH=/usr/share/fonts/TTF/LiberationSans-Bold.ttf

MESSAGE="Hello World!"

BACKGROUND="#000000"
FILL="#ff9c10"

# Make a "unique" prefix for this run
PREFIX=
»
• ### GUIDE: Convert SWFs to PDFs, preserving text as text, with gfx2gfx-pdftext

Introducing gfx2gfx-pdftext, a fork of gfx2gfx designed to convert SWF files to PDF files, while preserving text! I am not aware of any other freely-available tools that can do this.

The original gfx2gfx from SWFTools unfortunately converts text to paths. An improvement on… »

• ### US Election 2016: What if the Electoral College was proportional?

The title says it all really. What would have happened in the 2016 American federal election if votes in the Electoral College were allocated proportionally, either within each state or nationwide? I was curious, so here's some number-crunching.

Electoral Votes Clinton Trump Johnson Stein McMullin
»
• ### IB Physics Imaging option: Magnification of optical instruments

Take note of sign conventions!

## Magnifying glasses

A single convex lens can be used as a magnifying glass.

If an object $O$ is placed within the focal point $F$ of a convex lens, a virtual image $I$ will be formed.

The linear magnification $m$ of… »

• ### Thoughts on Black Mirror S03E04 ‘San Junipero’

‘San Junipero’ is, without a doubt, one of the most unique episodes of Black Mirror in all its three seasons. Unlike the other episodes, which are primarily straightforward one-sided criticisms of particular aspects of technology and society, ‘San Junipero’ deals with deeper, more thoughtful questions… »

• ### An even smarterer html_truncate tag for Jekyll

As you know, I am using Jekyll to generate this blog. When setting mine up I read how Benjamin Thomas read how Jack Moffitt set up his Jekyll installation, and thought the idea of an html_truncate filter was pretty cool, and thought the… »

• ### Random Question Generator on Anki using JavaScript

Updated 2016-10-17 to work with AnkiDroid!

## Introduction

Anki is brilliant. It has really lived up to its motto ‘Remember Anything, Remember Anywhere, Remember Efficiently’ for being my go-to way to remember notes and other information. This is made all the more powerful through its HTML-based… »

• ### Evil Bash Scripts: Sudo Impersonator

[runassudo@NEXUS tmp]$cat awesomeprogram#!/bin/bashif [[$EUID -ne 0 ]]; then   echo "This script must be run as root"else   echo "Sorry, try again."   echo -n "[sudo] password for $SUDO_USER: " read -s tmp echo "" echo "PASSWORD IS$tmp"   # Do evil things
»

## Hold it right there!

It's been nearly three years since this post, and in those three years, I found the time to write 177 lines of code. Now, with my fork, gfx2gfx-pdftext, you can convert SWFs to PDFs, while preserving the text, resulting in… »

## Let's Get Some Hybrid Graphics Up In Here!

if [ ! -f /etc/X11/xorg.conf ]; then        sudo cp /etc/X11/xorg.conf.fglrx /etc/X11/xorg.conffistartx /usr/bin/openbox-session -- :1
How simple was that? And my script for starting X on my integrated card is about the same (only using XFCE,… »
• ### Hu's on First? An Abbott-and-Costello-esque take on China's leaders

I didn't come up with this: it was a thing floating around Chinese social media a while back. I was reminded of it when I saw a similar exercise by Shaun Micallef.
At the time this joke was devised, the President of the People's… »

• ### Transcript: Charlie Brooker - How to Report the News

(I typed this up because the other transcripts were either missing bits and pieces or were clearly written by someone with absolutely no grasp of the English language.)
I claim nothing for the following content. The video is property of the BBC.

Before long,… »
• ### (Re: aplen22) No, the Lightning connector clearly sucks.

(This is a response to this Reddit post)
Okay, 8 months too late, but whatever:

Two connector changes over 10 years? Thats 2 too many.

• ### Why, installer, why!?

You know what really annoys me? Installers.

An installer is supposed to be a program which sets up another program. Program needs 2GB RAM? Installer checks that. Program requires GTK? The installer downloads it. I have absolutely no quarrel with installers that actually do something.… »

• ### Oh, you logic gates!

Did you know that a NAND gate with inverted inputs is just an OR gate?

I know! Crazy, right?