User Tools

Site Tools


perso:dump:mess

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== A big mess ====== Things I want to store (like a brain extension), but that fits in no particular place... ===== Hardware information on Linux ===== Albeit not as graphical as the Windows counterpart CPU-Z, the following command is rich in information about your hardware: <code>$ sudo dmidecode -d /dev/mem | less</code> ===== WordPress tips and tricks ===== If you do not like that when you upload transparent PNG to WordPress admin area and have a black background where you had a transparent area in the generated thumbnail, you might want to look at this: in the file wp-admin/admin-functions.php, after line 2294 in release 2.2.1, add the following lines (marqued with '+++'): <code> 2294 $thumbnail = imagecreatetruecolor( $image_new_width, $image_new_height); 2295 +++ if ( $type[2] == 3 AND function_exists( 'imagesavealpha' ) ) { 2296 +++ imagesavealpha( $thumbnail, TRUE ); 2297 +++ $trans_colour = imagecolorallocatealpha($thumbnail, 0, 0, 0, 127); 2298 +++ imagefill($thumbnail, 0, 0, $trans_colour); 2299 +++ } 2300 @ imagecopyresampled( $thumbnail, $image, 0, 0, 0, 0, $image_new_width, $image_new_height, $image_attr[0], $image_attr[1] ); </code> ===== Font / Police ===== font-family:Georgia,Lucida Bright,Times New Roman,serif; New proposed CSS: [[new CSS root]], [[new CSS wiki]] ==== Better font in Opera on Linux ==== Apply to Opera 9.64 and previous versions. Open this link in Opera: opera:config Under User Prefs, disable (uncheck) the preference about ''Enable Core X Font'' and click the Save button (at the end of the 'User Prefs' section). ==== See also ==== * http://en.wikipedia.org/wiki/Typeface * http://en.wikipedia.org/wiki/Category:Serif_typefaces * http://www.informationarchitects.jp/the-web-is-all-about-typography-period * http://www.baekdal.com/articles/Usability/new-minimum-font-size ===== Screen resolution of my computers ===== * L0514: 285x215mm => 91,3x90,78dpi or **~91dpi** * Thorsmork (Siemens LCD): 377x303mm => 86,25x85,83dpi or **~86dpi** ===== Allowing secure download via HTTPS with wget on Ubuntu Server Edition ===== Using Ubuntu Server Edition, no "root certificates" are installed thus downloading a page like https://wiki.ubuntu.com/Huygens is not allowed with wget. Instead of taking the unsafe path to ignore the warning that wget emits, I took the other way which includes installing root certificates that Ubuntu trust (and I trust them... one of my weak points ;-)). So you basically juts have to execute: <code>$ sudo apt-get install ca-certificates</code> ===== Viewing films on Linux ===== In Europe, numbers cannot be copyrighted nor can someone try to stop spreading them. So here is the lucky number that might help you watch films on Linux:\\ 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 In case, you do not understand it ;-) if you have bought an HD-DVD and want to watch it on your computer, you will need this number! It might even give you some more freedom... Check for more information here: [[http://rudd-o.com/archives/2007/04/30/spread-this-number/|Spread this number]] ===== Miscellaneous ===== [[perso:dump:mess:checkSystem]] ===== Repository for Red Hat EL 5.3 or CentOS 5.3 ===== <code>[atrpms] name=EL $releasever - $basearch - ATrpms baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms gpgcheck=1 enabled=1 exclude=*kmdl*i586* includepkgs=*nvidia-graphics*</code> ===== Mac OS X Firefox settings optimisation ===== Code taken from Ubuntu: [[http://ubuntuforums.org/showthread.php?t=1088094]] to be adapted to Mac OS... <code>#!/bin/bash username=$(whoami) proc="$(ps aux | grep $username | grep -v $0 | grep firefox | grep -v grep)" if [ "$proc" != "" ] then echo "shutdown firefox first!" exit 1 fi curdir=$(pwd) for dir in $(cat ~/.mozilla/firefox/profiles.ini | grep Path= | sed -e 's/Path=//') do cd ~/.mozilla/firefox/$dir 2>/dev/null if [ $? == 0 ] then echo "i'm in $(pwd)" echo -e " running...\n" for F in $(find . -type f -name '*.sqlite' -print) do sqlite3 $F "VACUUM;" done echo -e "done in $(pwd) ...\n" else echo -e "\n !!!! Nisam uspio uci u direktorij $dir, preskacem ga !!!!\n" fi done echo "Job finished"; cd $curdir</code>

perso/dump/mess.1251022974.txt.gz · Last modified: 2015/05/01 23:32 (external edit)