Categories
Uncategorized

Found Lost Dog

This dog was found wandering around the “Birds” area, 4th of July evening. A bicyclist rang our doorbell, asking if we lost our dog. The dog really wanted to come in, so after going around with the bicyclist for a while, we took the dog in. He looks as though one of his legs is hurt, and he is mostly walking on only 3 legs. He is really well behaved! We are going to take him to a pet place today to see if he has a chip that can be scanned.
Categories
Blog

Install Latest neovim (nvim)

Thanks to AppImage, the nvim application can be downloaded directly from the releases section of the neovim git repo, made executable, and used. I learned about this, from this DEV post. Simply, use curl to download nvim to the location you want (in my case, I used /usr/bin/nvim , but in the post, they put it somewhere else.
# get the latest stable build
sudo curl -o /usr/bin/nvim -LO https://github.com/neovim/neovim/releases/download/stable/nvim.appimage

# make it exectuable
sudo chmod +x /usr/local/bin/nvim
Note:
I have made small changes to the commands from the original post, to fit my own needs.
Categories
Blog

Mount an FTP Server as a Drive in Ubuntu

I do sidework for a company, that for certain reasons, I am unable to git clone a local copy of the site. So when I do work on their site, I need to FTP in. However, my editor of choice is VIM. Until today, I was using filezilla to connect to their FTP, and using the rightclick > View/Edit in order to open a local copy of the file, and was using VIM locally to edit the file, then going back to filezilla (that is listening for changes) and clicking ok to let it upload the modified file. I know that VIM actually does have the ability to connect and browse an FTP, but for some reason with this FTP server it was not working. So today, I found a way to mount an FTP server as a drive in Ubuntu, using a utility named curlftpfs.

Installation

Installation was pretty simple, using apt-get:
sudo apt-get install curlftpfs

Connection

  1. Create a directory to mount. I personally used ~/mnt/directoryname/:
    mkdir ~/mnt/directoryname
  2. My password for this FTP had special characters in it, so I had to use a special switch to be able to quote my username and password:
    curlftpfs -o user='username:passwordwithspecialcharacters' thefptserver.com ~/mnt/directoryname/
  3. From here, I was able to browse ~/mnt/directoryname as a directory, and can use VIM . to browse it as though its local.

Umount

It’s proably not secure to leave an FTP server mounted, so you can unmount when you’re done:
sudo umount ~/mnt/directoryname

That’s It!

This made my workflow for this particular situation waaaaaaay better than the filezilla solution!
sources:
– https://linuxconfig.org/mount-remote-ftp-directory-host-locally-into-linux-filesystem
– https://stackoverflow.com/questions/8959905/linux-curlftpfs-password-with-symbols
Categories
Job

Staged Homes

Staged Homes

The World Leader in Home Staging Training

I help maintain this site, convert old pages to the new style template, and implement new functionality. Coding the backend is done in PHP, and the front end is done with Bootstrap.
Categories
Job

IAHSP®, The International Association of Home Staging Professionals®

IAHSP®, The International Association of Home Staging Professionals®

The largest and longest running Home Staging Industry Trade Association with thousands of members worldwide

I help maintain this site as well as implement new sections. I code in angular in the front end, and communicate with a Firebase Firestore database. I also worked on migrating the back-end data from the Firebase Realtime database to the Firebase Firestore database. I have also implemented several pages with angular forms, and a password reset, that communicate with a Google Cloud Function server running as a REST server.
Categories
Job

IAHSP® Conference and EXPO

IAHSP® Conference and EXPO

A high level educational event for top Home Staging business owners worldwide!

I help maintain this site as well as implement new sections, coding in angular.
Categories
Job

IAHSP Foundation, Inc

IAHSP Foundation, Inc

The IAHSP Foundation, Inc. is dedicated to serving those in need in our communities throughout the United States and Canada through the gift and magic of ASP Home Staging

Using angular, I set up the donation forms, that when submitted, communicate with a Google Cloud Function server running as a REST server.
Categories
Job

Orta Brothers

Orta Brothers

Orta Brothers is a family owned business, serving residents and commercial clients alike since 2002

As a team, we were given separate pages to work on, on this site. I was specifically given the /software-engineers page, that lists all of our team members. I created a component that is reused multiple times, for each person listed on the page. I also was given the /contact/quote page, where I created an interactive quote form, again making use of a component that is reused.
Categories
Job

SHIRTMEUPTEES

SHIRTMEUPTEES

Drupal E-commerce Web Store

I built this drupal 7 site to make use of drupal commerce. I’ve customized a lot of things on this site, including a custom module that outputs data via XML to shipstation. It contains CSV upload functionality in order to fill in all the variants of each commerce item. It also contains an image generator that can generate images on demand (via PHP), as well as a new free-form text tool that lets you put any text you want on your product. The front-end template makes use of Bootstrap, JS, Jquery, and CSS Grid on the product page. I have this site running behind Cloudflare, to protect my server, provide good SSL (https), and provide DDOS protection.
Categories
Job

STAYFROSTEES

STAYFROSTEES

Drupal E-commerce Web Store

I built this drupal 7 site to make use of drupal commerce. I’ve customized a lot of things on this site, including a custom module that outputs data via XML to shipstation. It contains CSV upload functionality in order to fill in all the variants of each commerce item. The front-end template makes use of bootstrap, JS, and Jquery. I have this site running behind Cloudflare, to protect my server, provide good SSL (https), and provide DDOS protection.
Categories
Job

WEDOTHELEAN

WEDOTHELEAN

Bay Area Inspired Gear – T-Shirts, Hoodies & More

I built this drupal 7 site to make use of drupal commerce. I’ve customized a lot of things on this site, including a custom module that outputs data via XML to shipstation. It contains CSV upload functionality in order to fill in all the variants of each commerce item. The front-end template makes use of bootstrap, JS, and Jquery. I have this site running behind Cloudflare, to protect my server, provide good SSL (https), and provide DDOS protection.
Categories
Job

Perazza Prints

Perazza Prints

Perazza Prints specializes in the embellishment of products for universal needs

This is a simple drupal 7 website, that is mostly just an informative site. The front-end template makes use of bootstrap, JS, and Jquery. I have this site running behind Cloudflare, to protect my server, provide good SSL (https), and provide DDOS protection.
Categories
Blog

Installing Node.js and NPM on Windows Subsystem Linux

UPDATE

Original Post

Today I ran through quite a bit of trouble getting the most current version of nodejs and npm installed in my Ubuntu 16 (on windows 10). It turns out, the normal way of using apt-get to install it, installs a pretty old version. The workaround, I found on a github gist here.
$ touch ~/.bashrc
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
// restart bash
$ nvm install node
It’s a simple curl command that will download and run a bash script that will install NVM (Node Version Manager), and then you use NVM to install the latest and greatest node and npm. Here is the actual github page for nvm itself, if you’re curious:
https://github.com/creationix/nvm/blob/master/README.md As of writing this article, this worked for me, and I was able to proceed working on my angular project originally started on my Macbook Pro.
Categories
Blog

CSS Form Validation

So, I had no idea that we had new CSS Pseudo classes for form validation in HTML5 :o.
For example, you can create an input field of type “email”:
<input id="myEmail" type="email" required>
And use CSS to style it if it is invalid:
input:invalid {
  border-color: red;
}
This blew my mind! lol. BUT, to take it even further, you can use JS to verify your form, simply by checking validity.valid on the element. Below is a short example:
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title></title>
    <style>
      input {
        border: solid 1px black;
      }
      input:invalid {
        border-color: red;
      }
    </style>
</head>
<body>
  <form>
    <input id="myEmail" type="email" required>
  </form>
  <button onclick="checkIfValid()">Check Validity</button>

  <script>
    const element = document.getElementById('myEmail');

    const checkIfValid = () => {
      const myAnswer = (element.validity.valid) ? "its valid!" : "not valid...";
      console.log(myAnswer);
    }


  </script>
</body>
</html>

sources:
– https://css-tricks.com/form-validation-ux-html-css/
Categories
Blog

Tail PHP error logs in Docker

FIRST – Docker PHP Setup!

Before you can actually see the docker php error logs, you have to enable php error logging in the php.ini file. I use an Ubuntu php image, and my php.ini location was here:
/usr/local/etc/php/
note: if you don’t know where your php.ini location is, you can create a TEMPORARY php file with this command in it:
<?php phpinfo(); ?>
REMEMBER that you should not leave this file existing in your site, because its insecure and will give public access to your server info!

I noticed that my php.ini file didn’t exist there, so I had to create it. Then I added this:
log_errors = On
error_log = /dev/stderr

Tailing the Logs

To tail the docker logs, use this command:
docker logs -f DOCKER_CONTAINER_NAME

To tail just the error logs:

docker logs -f your_php_apache_container >/dev/null

To tail just the access logs:

docker logs -f your_php_apache_container 2>/dev/null

Exta Note!

In PHP, you can also use the error logs as a debug console. Send info to it with:
<?php
  error_log('debug message goes here');
?>

sources:
– https://github.com/docker-library/php/issues/212
Categories
Uncategorized

my cool 3rd post

the body of my 3rd post

Categories
Uncategorized

this is another post

this is a test for a 2nd post.

 

i hope it works…

Categories
Job

Centrifugal Force Productions

Centrifugal Force Productions

A group of fun-loving individuals who all have day jobs, and do Photobooth and DJing on the side

This is a simple website built utilizing bootstrap, making it responsive. It is making use of HTML5 audio tags for embeded mp3 playback. It is making use of an iframe that is using a service called embed social to embed particular facebook photo albums on this site, and remains responsive. It also has an embedded spreadshirt ecommerce store, that too remains responsive.