• ### 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… »

• ### Optimisation of a composite function involving a differentiable monotonic component

While doing optimisation problems with calculus I often find myself needing to optimise expressions such as $$\sqrt{\sin x}$$, though often more complicated. Using the chain rule on the square root is time-consuming, and it seems logical that as a monotonically increasing function, the… »
• ### GUIDE: Automatically resize phpBB avatars in post displays

1. Open the includes/functions_display.php file in a text editor.
2. Above the return '<img src="' . (str_replace( … line, insert the code:
$inputwidth = 100;$inputheight = 100;// So then if the image is wider rather than taller, set the width and figure out the height
»

## Symptoms

Steam crashes upon opening, after verifying the installation and before opening the main interface, with something about the OpenGL context not supporting direct rendering. Soon afterwards, the X server crashes. (I'm not crashing my computer again just to find the exact error message, thank… »
• ### 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
»

## Problem

‘The game has crashed. Please try to reconnect.’ immediately after champion select.

### Solution

Open /etc/hosts on the host computer in the text editor of your choice.
On the line that resembles:
127.0.0.1   localhost.localdomain   localhost
add the name of your computer (found in /etc/hostname). For example:… »