PHP INTRO, debugging, html quotes, email, closing tags, security, if, cookies, alt. syntax

December 12, 2016

updated 2020-05-11. PHP is now the most popular servers-side scripting language in the world. It is, in fact, the programming component of the “LAMP” environment: Linux, Apache, MySql, Php and is built in to all major linux distributions. PHP is surprisingly more popular than Microsoft’s own ASP web scripting language! PHP initially started on Linux/unix environment but today there are more PHP developers on...

Read more »

Linux: No WiFi on a LAPTOP {unless Intel}

September 12, 2023

Linux is not “laptop ready” PROBLEM WITH LINUX ON A LAPTOP : NO WiFi! wifi does not work on my laptop Most laptops come with Realtek Wifi – They don’t work in Linux! The depressing Linux advice is: ONLY get a laptop with an Intel board for...

Read more »

Unix-Linux vs. Windows networking, communications, the internet

October 24, 2021

Networking support in Linux-Unix is superior to most other operating systems. Linux is without doubt the most secure kernel out there, making Linux based operating systems secure and suitable for servers. Note: Linux is Unix with added support for pc hardware. Of the top twenty-five websites in the world...

Read more »

how to copy files on a Linux server to windows

March 9, 2021

how to copy files from linux to windows copy file from linux to windows using ssh copy file from remote server to local machine windows If your local OS is Windows, then you should use pscp.exe utility. -stackoverflow.com go to www.puttyssh.org/latest.html and download the 64 bit pscp.exe it should...

Read more »

Testing as a Service (TaaS)

May 22, 2020

For IT organizations that develop and maintain proprietary software applications, software testing is a crucial component of ensuring that releases are functional and meet the quality and performance demands of customers. For organizations that focus on DevOps or Agile development methodologies, testing is a frequent activity that takes place...

Read more »

Moodle: a few common queries

May 2, 2020

php command to see a lot of moodle global variables in memory echo '< pre >'; #var_dump ( get_defined_vars($CFG) ); print_r($CFG); echo '< /pre > '; examples $CFG->dbname $CFG->release ex: “3.3.4 (Build: 20180115)” echo '< pre >'; #var_dump ( get_defined_vars($USER) ); print_r($USER); echo '< /pre > '; example: $USER->id...

Read more »

if chrome or Firefox will not save id’s and passwords

December 29, 2016

“help: I tell chrome to save my password but it does not do it” It offers the option to do it but then, it does not. (since it offers to do it, the browser settings are certainly proper) There are some, not all, websites were Chrome, or Firefox, will...

Read more »

MySQL Debug: How to log all queries of an event

December 6, 2016

updated 12-14-2016 MySQL – DEBUG example: You are running a software package – which hides its queries so far down in so many included and-or overriding class-function (php?) files it is not worth any more effort trying to find the right one(s). The easiest method to find all the...

Read more »

mySQL common string & math functions

November 26, 2016

updated 2021-01-06 POSITION() returns the position of the first occurrence of a substring within a string. Syntax : POSITION(substr IN str) Example : SELECT POSITION("ou" IN "w3resource"); Output : 6 Example : SELECT POSITION("w" IN "w3rewind"); Output : 1 LOCATE() Syntax : LOCATE(substr, str, pos) returns the position of...

Read more »

How to create bootable USB’s in Fedora and boot them

November 15, 2016
How to create bootable USB’s in Fedora and boot them

how to create and use bootable USB flash chips. I have read to use the “disks” utility but I would always get an error when trying to boot the chip after creating it that way. “The best tool to create a Fedora USB stick is the Fedora Media Writer...

Read more »

Space bar not working in Fedora, keyboard hesitating

November 15, 2016
Space bar not working in Fedora, keyboard hesitating

I just installed Fedora 24 on a new pc (Alienware) and with installing additional software and enhancing settings, I unexpectedly discovered that the space bar was no longer working. With checking, I discovered that the shift-spacebar did work, but that was all. I put the keyboard on another computer...

Read more »

moodle: Time Spent in a lesson saved in the lesson timer table is distorted, wrecked

October 29, 2016

updated 2020-05-17 Moodle: Time Spent in a lesson is being falsified since mdl 2.3 note: As of moodle 3.0, a time limit on the lesson can be seconds, minutes, hours, days or weeks. A person can leave and re-enter a lesson at will, but the termination time is set...

Read more »

Introduction to DNS

June 27, 2016

Domain Name (website name) A domain name is the human-friendly name that we are used to associating with an internet resource (website). For instance, “google.com” is a domain name. The URL “google.com” is associated with the servers owned by Google Inc. The domain name system allows us to reach...

Read more »

php basic String functions

June 6, 2016

updated 2020-08-28 strlen, strcmp, substring, strtoupper, strtolower, str_replace, addslashes, trim, strstr, strpos, str_repeat, strrev, explode, implode, chunk_split, . . .   string length $length = strlen($str); an empty string if( empty($string) ) : A variable is empty if it’s undefined, null, false, 0 or an empty string.   substring...

Read more »

mysql: how to update replace all, case insensitive, text substrings

May 6, 2016

in this select statement, SELECT pageid, title, SUBSTRING(contents, POSITION("one two three" IN contents) -0, 13) AS pageContents FROM pagetable WHERE contents LIKE '%one two three%' ; ‘%one two three%’ is case insensitive however, the Position function used to display just that part of “contents” (as pageContents) IS case sensitive...

Read more »

how to switch from default FTP port in linux

April 20, 2016

updated 2016-07-26 how to change the FTP port (21) in Linux The default port for FTP is # 21. Don’t use FTP.   (use SFTP)   FTP sends usernames and passwords in the clear, which isn’t secure. Instead, look at SFTP which uses the SSH protocol or vsFTPd (Very...

Read more »

Sizing Images for Computers and Phones

November 18, 2015

Responsive Web Design – Images. One solution is to use the max-width property example: max-width: 100%; height: auto;   background images If the background-size property is set to “contain”, the background image will scale, and try to fit the content area, and the image will keep its aspect ratio....

Read more »

how to force mobile phones into landscape mode

August 31, 2015

updated 2019-12-29 How to force horizontal or landscape layout on mobile devices How to force a mobile device into landscape-horizontal mode or view all without javascript. add this to your style sheet .css #container { display:block; } @media only screen and (orientation:portrait){ #container...

Read more »

PHP: Deleting Files

July 14, 2015

To delete all files of a particular extension, or in fact, delete a group with any wildcard, echo `rm -f path/to/*.jpg`; # note the backquotes, not single nor double quotes or foreach (glob("*.jpg") as $filename) { echo "$filename size " . filesize($filename) . "\n"; unlink($filename); } sometimes, the function...

Read more »

GeForce vs. Radeon Graphics cards on Fedora 28-33

June 13, 2015

Updated 2021-02-22 NVIDIA GeForce GTX vs. AMD Radeon graphics cards. Fedora 28 and beyond   it appears that Fedora 28 and beyond DOES support NVIDIA cards Install an NVIDIA GPU on almost any machine use Fedora 28’s brand-new third-party repositories This process works for any UEFI-enabled computer, and any...

Read more »

Goodbye Flash plug-in!

December 5, 2014

updated 2016-09-11 by PAUL WAGENSEIL Jun 17, 2016 You Should Disable Adobe Flash Player Now: Here’s How a large chunk of the malware attacking web browsers worldwide is dependent on Flash Player flaws. – tomsguide.com/us/disable-flash-how-to,news-21335.html … the Flash plugin is entirely unnecessary nowadays and serves only as a ...

Read more »