How to easily Set Up your Fedora-Linux Home Network

January 25, 2012
By
How to easily Set Up your Fedora-Linux Home Network

How To copy and share files between linux (Fedora and Ubuntu) computers and share a printer How to set up a home network on Fedora 11, 12, 13 or 14 (or Ubuntu 8.4 to 10.10) with a router. (At the begining of this article, I was still using Fedora 11,13, and 14 on different...

Read more »

PHP Intro

December 29, 2011
By

PHP is perhaps the most widely-used general-purpose scripting language*, especially suited for Web development. It is, in fact, the programming component of the “LAMP” environment: Linux, Apache, MySql, Php. PHP is surprisingly more popular than Microsoft’s own ASP web scripting language! PHP runs lot...

Read more »

How To automate Linux backups to a remote pc

November 29, 2011
By

passwordless ssh: automated Linux shell backups to another computer ssh remote login without a password Accessing a remote site through ssh without a password How to do unattended backups to a remote linux computer Quite often, you want a shell script to ssh into...

Read more »

moodle: Time Spent in a lesson, not being added

October 29, 2011
By

Moodle: To require a minimum time spent in a lesson The lesson dependency, time spent, is not being added up to determine if a student has spent the required time in the previous lesson. (previous or some other dependent-lesson) Also, in the first page...

Read more »

moodle lessons: grades and time spent errors

October 11, 2011
By

Unreliable time 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...

Read more »

sequential hard disk access speed vs. solid state drives

September 5, 2011
By

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...

Read more »

Stopping Website Visitor Blog Spam

August 20, 2011
By

Stopping Website Visitor Comment Spam. (ex: wordpress) 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,...

Read more »

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

July 10, 2011
By

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...

Read more »

moodle 2.0 installation problems and more

July 2, 2011
By
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...

Read more »

php 5.3: Speed Optimizations for Strings and Arrays

June 27, 2011
By

NOTE: the ereg… functions have been removed from PHP6 {ereg, eregi, ereg_replace, ereg_replacei }! An “ereg is depreciated” warning is in php 5.3 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 ^...

Read more »

ILLEGAL CHARACTERS in Filenames

June 21, 2011
By

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 “/”...

Read more »

Internet, Web Site, Security with .htaccess

June 19, 2011
By

The surest control over security is with /etc/httpd/conf/httpd.conf when you have the entire server, or in .htaccess files otherwise – if you are on shared hosting. Read the post “Unix-Apache .htaccess” for basic information first, if you are not familiar with this. It will...

Read more »

hanging sculptures

June 18, 2011
By
hanging sculptures

In an art shop near Ft. Lauderdale beach we saw some interesting hanging sculptures. (“Seldom Seen”, at Galeria mall) I photographed several of them and bought one. I was told that a couple in Columbia are the artists and that the store’s buyer bought...

Read more »

Structured display of All Variables in memory

June 16, 2011
By

“The function, get_defined_vars(), returns a multidimensional array containing a list of all defined variables at that location in your program.” To get ALL variables, list ALL variables, display ALL variables, in memory and available at the point where you request it, your scope, (not...

Read more »

Programming and or Photography Around the Beach

June 11, 2011
By
Programming and or Photography Around the Beach

With a Laptop and a wireless internet connection you can program on the beach – but take your camera. Most of these pictures can be clicked on to see them enlarged. Fort Lauderdale beach from in front of Beach Place Mall (3264×1200) On Fort...

Read more »

PHP DATE and TIME Functions, warnings

June 11, 2011
By
PHP DATE and TIME Functions, warnings

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') ; ex: October 01st 2010, 05:05 pm EDT   (ex: USA Eastern time zone during DST) date("F dS Y, h:i a T", time() ) ex:...

Read more »

php 5.3 strtotime() error

June 10, 2011
By
php 5.3 strtotime() error

Warning: date(): It is not safe to rely on the system’s timezone settings “Warning: strtotime(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.” @date_default_timezone_set (date_default_timezone_get()); It IS safe to...

Read more »

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

June 5, 2011
By
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...

Read more »

Internet Hacking 101, with PHP

June 1, 2011
By

The point is, a web site (blog?) with an option or requirement to login before commenting (or blogging) and no captcha, may be easy to get into as an admin. Make sure your web site is secure. Micah Lee, in 2600, The Hacker Quarterly...

Read more »

linux shell command line prompt, history, and editing

May 31, 2011
By

How to Retrieve and Edit Commands in Linux All this information assumes the default “bash” shell. If hitting the up arrow does not retrieve the previous command, or the command “history” does not get a list of your previous commands, then you do not...

Read more »

SQL: date – time displays, conversions

May 25, 2011
By

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....

Read more »