Stopping Website Visitor Blog Spam

April 9, 2012

Stopping Website Visitor Comment Spam. IF you have a blog and want visitors to easily add a comment to an item, you will also get spam – lots of it – unless you, traditionally, forced visitors to create a login before commenting, or you used a captcha. As one guy said, "It’s really disgusting the stuff I have to block from my blog every...

Read more »

How to save all Power Point (.ppt) slides as .jpg’s in Libre or Open Office

April 9, 2012
How to save all Power Point (.ppt) slides as .jpg’s in Libre or Open Office

updated 07-29-2017 How to save, export, all Libre Office or Open Office, Impress slides to images, all at once www.OpenOffice.org www.LibreOffice.org "I would like to save my presentation (.ppt) as all .jpg or .gif or .png files. (which is a feature available in Microsoft Powerpoint) Is there any option comparable to this in Libre Office and Open Office (Impress)?" YES, in a round-about way....

Read more »

PHP DATE and TIME Functions, warnings

March 22, 2012
PHP DATE and TIME Functions, warnings

updated April 17th 2014 The Current Date, Time today (yyyy-mm-dd): echo date("Y-m-d") ; today (mm-dd-yyyy): echo date("m-d-Y") ; this year (yyyy): echo date('Y') ; date("F jS Y, h:i:s a T", time() ) ex: October 1st 2012, 05:05:31 pm EDT (ex: USA Eastern time zone during DST) j = day of the month 1-31 without leading 0. d = day of the month 01-31 with...

Read more »

php, Arrays

March 12, 2012

updated 2016-04-09 Array keys start from 0, not 1. In an associative array a key is associated with a value. An array in PHP is actually an ordered map. (each key is mapped to a value). array values can be other arrays, trees and multidimensional arrays are also possible. A value can be any PHP type. A key may be either an integer or...

Read more »

php 5.3: Speed Optimizations for Strings and Arrays

January 27, 2012

updated 2014-09-12 str, ctype, preg, explode, etc.. example: switch y-m-d to m-d-y list($YY,$mm,$dd) = explode("-",$date_stored); $displaydate = $mm."/".$dd."/".$YY; Real-World Experience Buffering A customer I contracted with had the experience of rare cases where visitors to his site would experience the computer starting to process their page request and then being sidelined while the cpu co-processed other visitors page requests – for as much as...

Read more »

php 5.3: how to stop strtotime(), date(), error

January 15, 2012
php 5.3: how to stop strtotime(), date(), error

Warning: date(): It is not safe to rely on the system’s timezone settings

Read more »

How to install and remove FONTS in Linux; UTF-8

January 14, 2012

Just like Windoze, Fedora (and Ubuntu) throws in a 100 fonts you don’t want and will never use. How to remove many extra Linux fonts the fonts that are used by fedora 24 are . . . abattis-cantarell, (default?), and dejavu I am not sure about fonts/default/* Fonts can be uninstalled like software: go to System -> Administration -> Add/Remove Software -> Fonts (click...

Read more »

PHP 5.3 Breaks "many things"

January 9, 2012

"PHP 5.3 brought many problems due to the PHP authors’ decisions to . . . break many things…" Also, they initiated the warnings of more things they intend to break in PHP 6. Be sure your error reporting is turned on: (for your testing copy or for your IP address) @ini_set('display_errors', '1'); error_reporting(E_ALL ^ E_NOTICE); # or error_reporting(E_ERROR); "PHP 5.3 breaks AtMailOpen." "I tried...

Read more »

Armitron watch 40/8246, M0935 (WR330FT) instructions, and the MD-365

December 28, 2011
Armitron watch 40/8246, M0935 (WR330FT) instructions, and the MD-365

2011-12-28 Armitron watch WR330FT owner’s manual. Armitron Digital Sport watch 40/8246, MO935, owner’s manual. Armitron watch MO935 owner’s manual.   How to set an Armitron WR330FT, MO935, All-Sport Watch. How do you set the time on an Armitron 40/8246 WR330FT? Armitron Men’s 40/8246 metal gray, or any of the other colors, Chronograph Digital Sport Watch. I bought a 2nd Armitron watch, the M0935, and...

Read more »

Armitron watch WR330 instructions manual

December 20, 2011
Armitron watch WR330 instructions manual

Armitron watch WR330 owner’s manual Armitron watch 40/8177 Red, owner’s manual Armitron watch M807 owner’s manual (Actually, it is an M807 but you would never know for sure without a manual). How to set an Armitron WR330 Watch. How do you set the time on an Armitron 408177red WR330? Armitron Men’s 408177RED Chronograph Black and Red Digital Sport Watch. The name, model, of this...

Read more »

PHP: Writing your own functions

December 16, 2011

"All custom functions should start with xxx_ so that the developer knows a native PHP function is not being called.* where xxx == your initials, or the project’s initials, or …" An example custom function style: function pwb_my_function($parameter1, $parameter2) { global $an_outside_variable; .... return true; } functions with optional parameters suppose you are using a function with 1 param, and in some new cases,...

Read more »

how to make one of your Fedora pc’s visible on the Internet

December 5, 2011
how to make one of your Fedora pc’s visible on the Internet

How Do I Make my Fedora pc behind my router Visible to the Internet? How to Connect your LAN web server to the Internet If you install the Apache software package on your pc, you can make your pc function like an Internet web site server, create an html page and see it out on the internet – from anywhere. If you have more...

Read more »

SQL: date – time displays, conversions

November 1, 2011

updated 09-22-2016 Unix Time UNIX TIME: the number of seconds since the first second of the first day of 1970. The CURRENT_TIMESTAMP(), CURRENT_TIME(), CURRENT_DATE(), and FROM_UNIXTIME() functions return values in the connection’s current time zone, which is available as the value of the time_zone system variable. In addition, UNIX_TIMESTAMP() assumes that its argument is a datetime value in the current time zone. Functions that...

Read more »

Enhancing, expanding limits, customizing, phpMyAdmin

October 29, 2011
Enhancing, expanding limits, customizing, phpMyAdmin

The database tool, phpMyAdmin is and has been, the most popular and most awarded among MySQL administrators and developers. It was mentioned by the author of the first php and MySQL book I read. The administrators and developers I have met since, all use it. It is also one which can be installed on the website. Over time, I have learned ways to customize...

Read more »

How to install and customize-personalize Zen-Cart

October 28, 2011
How to install and customize-personalize Zen-Cart

Tutorial help: how to find settings to set up, customize, Zen-Cart Fast. What Zen-Cart Won’t Tell You Running the installation program is easy. The time consuming part is removing their sample store demo files and changing ZC’s settings which are scattered all over. I made changes to the html several times because I did not know there was some setting in admin. The admin...

Read more »

moodle lessons: grade errors

October 11, 2011

Unreliable grade tracking in lesson module Also, moodle has known for years that their grades (course >> grades) are unreliable and that their calculations of "time spent in a lesson" are wrong, but have still, as of now, (moodle 2.1.2, October 10th, 2011) not done anything about it. Lesson Grades and Time Spent are incorrect when 1. a person starts a lesson and then...

Read more »

moodle 2.0 installation problems and more

October 2, 2011
moodle 2.0 installation problems and more

moodle developers are getting more demanding Good grief! Moodle 2.0 wrecks all your plug-ins and themes, demands PHP 5.2.8+ (PHP 5.3.3), DOM (not always included with 5.2.8). the lesson module is still as buggy as ever, … not to mention the sites that could but don’t need all the hassles, without a good reason – some fantastic new feature that they just HAVE to...

Read more »

sequential hard disk access speed vs. solid state drives

September 5, 2011

Important SSD notes: In Linux, the operating system keeps both HDD’s and SSD’s from becoming fragmented. Unix/Linux "uses a journal instead of writing directly to the disk in sequence. … It will then write the journaled file onto memory and then onto the true disk blocks, but in linear mode." In Windows, also, "Solid State Drives DO NOT require defragmentation. It may even decrease...

Read more »

How to keep a moodle database clean and trim

August 22, 2011

If your database is becoming very large "Help, my moodle database is huge!" How to delete old records in a huge moodle database How to clean moodle database tables. How to keep a moodle database clean and trimmed How to delete old log table records from a moodle database For example, we cleared a 500+ meg(!) mdl_event table … moodle does not use it....

Read more »

bash sub-stringing to put creation dates on .jpg and other files

July 10, 2011

to rename all my camera photos I need some string functions, to put the creation date on all the jpg files I need … jhead. Linux does not keep the creation date; it keeps the modified date. The date on the file changes as soon as you copy or edit it, like with a photo editor. if you have not modified the image so...

Read more »

ILLEGAL CHARACTERS in Filenames

June 21, 2011

There are a lot of existing Unix/Linux shell scripts that presume there are no space characters in filenames, including the default setting of the Bourne shell "IFS" variable. Each pathname component is separated by "/" therefore, filenames cannot contain "/". Neither filenames nor pathnames can contain the ASCII NUL character (\0), because that is the...

Read more »