Category Archives: Computing

Featured image missing WordPress

Add to a theme’s functions.php file: // add featured image support add_theme_support( ‘post-thumbnails’ );

Posted in WordPress | Leave a comment

Mac safe boot

Hold down shift key after startup tone.

Posted in apple, Computing | Leave a comment

Apache reset/delete logs

http://httpd.apache.org/docs/1.3/misc/howto.html#logreset The correct procedure is to move the logfile, then signal Apache to tell it to reopen the logfiles. Apache is signaled using the SIGHUP (-1) signal. e.g. mv access_log access_log.old kill -1 `cat httpd.pid` Note: httpd.pid is a file containing the process id of the Apache httpd … Continue reading

Posted in Computing, Linux | Leave a comment

WordPress

CSS drop downs – drop down menus

Posted in Computing | Leave a comment

Low Power PCs

Low power PCs: Tiny Green PC Raspberry Pi – approx 2 – 3.5 watts Aleutia – approx 10 watts Intel NUC – approx 11 watts LIVA Mini PC – approx 15 watts Asus Eee Box – idle approx. 20w, running approx. 22.7 – … Continue reading

Posted in Computing | Leave a comment

Samsung Note 2 unfortunately s note has stopped working

This obscure error can sometimes be fixed by the following steps: Go to Settings Click on Language and Input Click the cog image next to the Samsung keyboard options (even if greyed out) Click on Input Languages On English (UK), … Continue reading

Posted in android, Computer Gremlins, Computing | Leave a comment

Vi Commands

Movement: h, j, k, l  – left, down, up, right spacebar – right Copy/paste: Y – copy one or more lines p – paste line below current cursor P – paste line above current cursor Line numbers: :set number

Posted in Computing, Linux | Leave a comment

Linux Notes

Hard links: ln /path/file1 /path/file2 Associates one physical file with another name (file2). Both access the same file. Can’t be used with directories. Can’t cross file system boundaries. Soft (symbolic) links: ln -s /path/source /path/alias Creates an alias to a … Continue reading

Posted in Computing, Linux | Leave a comment

PHP Regular Expressions

Notes: A regular expression is enclosed between two forward slashes “//“. Hash signs # or tildes ~ can also be used (these characters are called delimiters). eg. $exp = “/php/“;    – search for the occurence of string ‘php’ Special/meta-characters: * Match … Continue reading

Posted in Computing, web development | Leave a comment

Google translate Firefox problem (not working on Apple Mac)

If the Google Translate drop down menu of languages does not open, or appears empty when the Google Translate tool is clicked in Firefox, the problem is usually caused by an issue with the Flash plugin, or the Flash plugin … Continue reading

Posted in Computing, web development | Leave a comment