-
GUIDE: Automatically resize phpBB avatars in post displays
- Open the includes/functions_display.php file in a text editor.
- 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
-
FIX: Steam crashes when using radeon driver
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/bash
if [[ $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 -
FIX: LoL errors on (PlayOn) Linux
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:… » -
Adventures in Arch: Part 3.5 - Note to Self
Note to self:
mount /dev/sdb2 /opt/chroot/home/is a bad idea
…
rm -rf /opt/chroot -
GUIDE: Convert book-style SWFs to PDFs with gfx2gfx
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… »