moodle 2 & 3: exclude my-moodle from admin

November 16, 2014

updated 2018-06-20 How to re-exclude admin, administrators, from the my-moodle dashboard. The moodle Administrator is no longer excluded from the my-moodle module. Starting with moodle 2.0, if we activate the my-moodle {dashboard in mdl 3} front page for students, administrators get thrown into it also upon logging in and it, awkwardly, becomes the admin home page. Throughout the moodle 1.x versions, you could turn...

Read more »

TAKE jpg webcam PHOTO with HTML5

July 5, 2014
TAKE jpg webcam PHOTO with HTML5

updated 2016-03-03 How to take-upload your visitors webcam photo How to upload a jpg photo on your website with your visitors webcam html5 webcam getUserMedia examples and demo How to take a jpg webcam photo with html5 One of the really cool things that has come from HTML5 is the ability to access a website visitor’s webcam and upload a snapshot through the browser...

Read more »

moodle: A query to see where course lessons are in the database

June 18, 2014

updated 2019-11-06 To see where-how the modules for each “Topic” are stored and kept in order. To see the record-id (instance) for the particular lesson, questionnaire, feedback request, or etc. The instance is the mdl_{MODULE}.id for a long time, if the module id is 11, it is the lesson module; if the module id is 19, it is the feedback module; etc. 1st query...

Read more »

how to add and edit reports in zencart

May 16, 2014

updated 2014-06-21 How To Create Your Own Reports in ZenCart I have done google searches on how to create my own reports in zencart and searches on how to edit the reports that are there and got no worthwhile information. There is a plugin zencart offers under “Admin Tools”, called “Graphical Sales Report” and another simply called “Sales Report”. They look helpful but are...

Read more »

MySQL: Some complex syntax

February 17, 2014

updated 2020-08-16 note: “Using comma separated lists in a database field is an anti-pattern and should be avoided at all costs.” “properly normalize the table structure” “I strongly advise that you fix your current database structure so you are not storing the data in a comma separated list.” – from www.stackoverflow.com If you cannot alter your table, then you should be able to query...

Read more »

Moodle: config.php, for debugging and flexible control

December 13, 2013

updated 2018-06-19 If you do not hard-code anything that is not necessary, you can avoid having multiple copies of files. If you have a test copy of moodle in a different folder (ex: mdl-test), add an if statement to handle it. if (stripos(dirname(__file__), 'mdl-test') ) {$CFG->dbname = 'mdl_backup'; } else {$CFG->dbname = 'mdl_production'; } I broke wwwroot up into 2 steps: $wwwroot = 'http://'...

Read more »

How to easily Set Up your Fedora-Linux Home Network

May 19, 2013
How to easily Set Up your Fedora-Linux Home Network

updated 2019-11-20 How To copy and share files between Fedora computers and share a printer How to set up a home network on Fedora (or Ubuntu) with a router. (At the begining of this article, I was still using Fedora 11, 13, and 14 on different pc’s and had live copies of Ubuntu 8.4, 9.4, 9.10, and 10.10 that I had looked at). Since...

Read more »

Flash takes over your camera and microphone and writes permanent cookies!

May 4, 2013

REMOVE FLASH! Flash takes control of your webcam and mike. without permission! Web sites advertisers can now silently access your camera and/or microphone and write up to 13 copies of a new type of cookie that was quietly introduced “last year” = 2009. It’s officially called the Local Shared Object (LSO), commonly called a Flash cookie. More persistent and much more dangerous than HTTP...

Read more »

basic loops in PHP

February 10, 2013

Loops execute a block of code a specified number of times, or while a specified condition is true. for for ($i = 1; $i

Read more »

Dual desktop computer monitors in Fedora 17+…F22+…

February 5, 2013
Dual desktop computer monitors in Fedora 17+…F22+…

updated 07-20-2016 How to set up dual or triple desktop computer monitors in Fedora 17+ Go to “System Settings” >> Display . . . to see-arrange your monitors. My laptop handled 2 monitors with only a hassle of being only able to put the external monitor on the right side and still keep the internal, laptop, monitor established as the “primary” monitor. On a...

Read more »

How To automate Linux backups to a remote pc

November 25, 2012

updated 2018-05-03 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 a remote server (your web site?) unattended and do a (regularly scheduled, cron job?) backup, for instance. SSH...

Read more »

LibreOffice restricting spaces between words to 1

November 22, 2012

LibreOffice restricting multiple spaces between words LibreOffice restricting multiple spaces in text LibreOffice restricting spaces in text I did google searches on all these things and got nowhere! For no known reason, LibreOffice had started not letting me type a second space after a word … unless I backed the cursor up before the one space I had entered and then I could enter...

Read more »

SQL: some basic JOIN syntax

November 15, 2012

updated 2019-04-20 INNER JOIN and , (comma) are equivalent in the absence of a join condition and “JOIN” is defined to be equivalent to an “INNER JOIN” Examples: SELECT * FROM customer AS c, orders AS o WHERE c.custkey = o.custkey or (same): SELECT * FROM customer AS c JOIN orders AS o WHERE c.custkey = o.custkey or (same): SELECT * FROM customer AS...

Read more »

SQL: date – time displays, conversions

November 1, 2012
SQL: date – time displays, conversions

updated 10-28-2019 The CURDATE(), 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. The output of CURRENT_DATE has the format: YYYY-MM-DD The DATE_FORMAT() function allows you to return a date in a...

Read more »

Internet, Web Site, Security with .htaccess

October 27, 2012

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 be best if you have your site duplicated on your home pc, where you can test out any changes to...

Read more »

Delete the Zen-Cart Store Demo files, images, and Data

October 11, 2012
Delete the Zen-Cart Store Demo files, images, and Data

How to get rid of zen-carts demo store – including version 1.5.0. “How to clean up default install and remove example store related files.” How to remove, or delete, the “Zen Cart demonstration categories and products”. Help with installing Zen-cart, help removing Zen-cart’s demo store. How to Delete all the Zen-Cart Sample Store files, images, and Data. Install Zen-Cart and choose “NO” to the...

Read more »

make your Zen-Cart 1.5.0+ configuration.php files flexible

September 28, 2012

On you backup or testing server, for development, (not your live, commercial, site!!) you can create a fake SSL certificate (for free, of course!) officially called a “Self Signed Certificate” and operate with SSL turned on everywhere. Regardless! In your zen-cart configuration files, do not hard-code any settings that might be different on your backup or testing server or that you might want to...

Read more »

linux shell command line prompt, history, and editing

September 25, 2012

updated 2016-09-20 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 have the Bash shell. And, if ctrl-p is the only way to get your previous command, then you...

Read more »

zen-cart v.150: cannot test off-site, “not accepting payments from your region”

September 25, 2012

“Sorry, we are not accepting payments from your region at this time” Problems with testing Zen-Cart 1.5.0 off-site updated Sept. 25th 2012 SSL certificate required for zen-cart on a development server? You’re kidding! I just started testing an upgrade (to v.150) on one of our development servers. I made sure it was working properly as is (v.138a in “test mode”) before starting the upgrade...

Read more »

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 »