Blog Archives

Unix-Apache .htaccess

September 9, 2012
Unix-Apache .htaccess

hacking, error pages, redirection, time zone, add-on & sub domains & SEO, hot linking – bandwidth stealing. .htaccess files (or “distributed configuration files”) allow you to do many different things, … commonly, to have your own custom 404 error pages, to redirect pages, and to enhance security. (for security, see Internet Security Note 1: Unix used .filename extensions before Microsloth Windoze or even DOS...

Read more »

Faster Booting: from SysVInit to systemd

July 16, 2012

* Systemd * Systemd is a new, faster, system and service manager for Linux, compatible with SysV and LSB init scripts. systemd provides aggressive parallelization capabilities, uses socket and D-Bus activation for starting services, offers on-demand starting of daemons, keeps track of processes using Linux cgroups, supports snapshotting and restoring of the system state, maintains mount and automount points and implements an elaborate transactional...

Read more »

Aerial Photos of Fort Lauderdale

June 26, 2012
Aerial Photos of Fort Lauderdale

April 16th 2012 flight along the Gold Coast – Fort Lauderdale, Florida. Updated 02-05-2014. Fort Lauderdale beach Beach Place Mall, Ft Lauderdale beach Fort Lauderdale Fort Lauderdale beach at A1A and Las Olas Pompano Beach (looking south)   Lighthouse Point Lighthouse Point Pompano Beach Deerfield Beach Boca Raton beach the 4 pilots who took turns flying the ‘copter the photographer  

Read more »

How to switch to Gnome 3, Cinnamon

June 1, 2012

updated 2016-09-20 How to make Gnome 3 look and work almost like Gnome 2: Cinnamon dnf install @cinnamon-desktop-environment note: MATE was built on gnome-2 CINNAMON was built on gnome-3 Once installed, on the next login, notice and click on the little gear icon next to the Sign In button. A drop-down list will show up providing the potion to use Cinnamon [ or Cinnamon...

Read more »

in SQL, first, select, then insert, update, or delete

May 9, 2012

updated 2019-04-19 My notes and sample code from experimenting and cleaning-up data. Always run a select statement before running an update or delete. Note: The phpMyAdmin tool, which is very valuable, adds “limit 0,30” to the end of most SELECT statements so don’t be tricked into thinking you have been shown all the selected records. You can change it by setting the config variable...

Read more »

A Few Puzzles for Thought and a Challenge

April 30, 2012
A Few Puzzles for Thought and a Challenge

updated 2019-06-11 How many cookies could you eat on an empty stomach? (1) letters: It occurs once in a minute, twice in a week, and once in a year. What is it? Here are a few “level 1” (easy?) puzzles   12 ?   Assuming all blocks that are not visible from this angle are present, how many blocks have been removed from this...

Read more »

how to boot up Fedora (any linux) without password prompting

April 26, 2012

updated 2021-10-19 If you always turn on your personal computer and “boot up” in Fedora 11-34 with the same user-id and don’t want the computer stopping at your user-id and password prompt every time, then, open a terminal session and edit /etc/gdm/custom.conf as root. You can insert 2 lines under the heading AutomaticLoginEnable=True AutomaticLogin= Users -> Automatic login -> on Debian and...

Read more »

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 05-08-2018 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 2019-09-21 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 leading 0....

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 2020-02-03 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

updated 2018-09-15 Just like Windoze, Fedora (and Ubuntu) throws in a 100 fonts you don’t want and will never use. All, system-wide, fonts in Fedora, Linux, are in /usr/share/fonts/ for example /usr/share/fonts/google* /usr/share/fonts/kacst/ /usr/share/fonts/smc/ /usr/share/fonts/stix/ How to remove many extra Linux fonts fedora 27-28 : The biggest block of unwanted fonts is “Noto Sans …” It is a GOOGLE collection of fonts for many...

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_ALL); “PHP 5.3 breaks AtMailOpen.” “I tried...

Read more »