November 11, 2019

Programming - DO Server

everythingelse is being really cachey

This has been going on since at least June. PHP needs to be restarted to get any changes to show up. Database stuff is fine. Wordpress sites have a lot of issues. enstars sever does not have this issue

Some how I had set opcache.validate_timestamps=0 in /etc/php/7.1/fpm/php.ini. I commented that back out to match enstars and actually got an error message on Wordpress!

Next steps:

Time Spent: 3 hours 34 minutes


October 17, 2019

Programming - Local Enviornment

Replicating Macbook's Vagrant Enviornment on Pancake (Window's Box)

It looks like I started doing this sometime in the past. The Homestead repo is there as well as the development domains in the hosts file. Not working when I try vagrant up though

Time Spent: 7 minutes


September 8, 2019

Programming - Weather Station

Weather Station Working!!!!

Woo got it working today and feeding data to this page!

Using the Huzzah and not the Arduino at all

Getting temp, humidity, and pressure

Anemometer needs a separate setup as it needs a 9V Vin and outputs up to 2V analog which Huzzah cannot handle

Time Spent: 10 hours 27 minutes


September 7, 2019

Programming - Weather Station

Setting up Https

My original setup was trying to reach this website's endpoint which is over https.

I tried to create some crazy work between but was encouraged to just do it the right way

The https library for the huzzah? wasn't bad at all and I was able to get it working.

[flesh this out]

Hunting down a https library

Pulling the needed code out of a more complicated example

Figuring out the sha

Success!

[add code here]

Time Spent: 2 hours


August 21, 2019

Programming - Weather Station

Create Endpoint to Add Data To Database

Built a quick GET endpoint to put data into the database from a URL with the parameters:

Time Spent: 20 minutes


July 30, 2019

Programming - Weather Station

Test Program on the Adafruit HUZZAH ESP8266 breakout

Following this tutorial https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide

I got the blinking light program to work but only after I pulled the USB out of the computer. I tried the same approach with the wifi test and there is no result in the serial monitor.

Time Spent: 1 hours 57 minutes


May 6, 2019

Programming - Weekly Log

2019 Week 19

Monday 2019-05-06

Tuesday2019-05-07

Time Spent: 6 days


April 22, 2019

Programming - Weekly Log

Week 17 2019

Time Spent: 7 days


April 1, 2019

Programming - Weekly Log

2019 Week 14

2019-04-01

2019-04-02

2019-04-03

Time Spent: 6 days


March 25, 2019

Programming - Weekly Log

2019 Week 13 - March 25 to March 31

2019-03-27

2019-03-29

2019-03-30

Time Spent: 6 days


March 14, 2019

Programming - enstars.info

Laravel error email stopped working

OK SO, it was using env() to read the email from the .env file BUT this doesn't work when things are cached which usually happens on production

SO I created a new config file enstars.php and created a mail address in there that reads from the .env file, this way even the cached ones know it

it is sending the emails out i see them in mailgun but only one has shown up in my mailbox so far??? Maybe this is some gmail rate limiting thing? cause one worked the next day

Time Spent: 1 days 4 hours 40 minutes


February 21, 2019

Programming - Local Enviornment

phpmyadmin just says "No input file specified."

I don't think I did anything so why is this showing this.

I did break it when I

 rm -rf *
d my home directory. phpMyAdmin was living in the Code directory I deleted. I redownloaded it and followed the steps here: https://stackoverflow.com/questions/23788096/how-to-setup-phpmyadmin-on-a-laravel-homestead-box but it is not working still.

Time Spent: 1 hours 9 minutes


August 10, 2018

Programming - ccmakesthings.com

Setting up a LEMP Digital Ocean Droplet

Create new Droplet

Log into new Droplet for initial setup

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04

Time Spent: 3 months 26 days 11 hours 46 minutes


November 19, 2018

Programming - Weekly Log

2018 Week 47 - November 19 to November 25

2018-11-20

2018-11-25

Time Spent: 6 days 23 hours 59 minutes


November 20, 2018

Programming - Enstars Bad Translations

Status Update

I have a node js script (that isn't up to date on github) that is ripping text out of screenshots, sending them to google translate API, and then creating a JSON file

To DO:

Time Spent:


November 20, 2018

Programming - figurerant.com

Status Update

Current goal of getting all past orders into a database. Detoured in adding goods and updating Laravel versions.

Time Spent: 1 minutes


November 12, 2018

Programming - Weekly Log

2018 Week 46 - November 12 to November 18

2018-11-18

Time Spent: 6 days 11 hours


October 5, 2018

Programming - ccmakesthings.com

Moving WordCount UI

I finally moved the wordcount UI off of my personal site, that has been on my todo list FOREVER!

Time Spent: 32 minutes


October 1, 2018

Programming - DO Server

ccmakesthings has been moved!

FINALLY

And it's so much faster!

Time Spent: 3 days 10 hours 19 minutes


August 6, 2018

Programming - Weekly Log

2018 Week 32 - August 6 to August 12

2018-08-09

Time Spent: 6 days


July 23, 2018

Programming - Weekly Log

2018 Week 30 - July 23 to July 29

ccmake 2018-07-29

Time Spent: 6 days


July 16, 2018

Programming - Weekly Log

2018 Week 29 - July 16 to July 22

ccmakesthings.com

2018-07-21

Time Spent: 6 days


May 31, 2018

Programming - enstars.info

Pulling text out of story screen shots

I looked into this project last night, and finally got a working concept tonight!

Steps of mostly failure:

  1. Look for a way to pull text from images in PHP
  2. Find stack overflow mentioning Tessarect OCR https://stackoverflow.com/questions/2024238/read-text-from-an-image-with-php
  3. Go to wrapper mentioned https://github.com/thiagoalessio/tesseract-ocr-for-php
  4. Not understanding how it worked at all, I added it to my Laravel project through composer, but that didn't work.
  5. I then downloaded it on my mac through homebrew, this took a long time
  6. Decided to move this process to my windows box with more power
  7. Now late Thursday night
  8. Install Chocolatey package manager for windows through power shell
  9. Install the recommended windows package for tesseract
  10. Try to boot up my local xampp install, its completey broken.
  11. Abandon PHP, look for node package.
  12. There is one! http://tesseract.projectnaptha.com/
  13. Create a new project folder and install it
  14. Can't remember how to create projects from scratch in node, eventually remember how to run just the file name.
  15. Download example image, run test code, ERROR! Eng not found.
  16. Google around, no luck, just look through recent github issues and bingo! https://github.com/naptha/tesseract.js/issues/194
  17. Add in missing file
  18. rerun AND IT READS ENGLISH!!!
  19. Okay lets try Japanese, change language to Jpn, get language file
  20. Run and its completely garbled
  21. Move to browser as ghetto windows node shell probably can't handle Japanese font
  22. Some success but mostly garbled result!
  23. Crop picture so it's just the text
  24. Rerun - IT WORKS O M G

I can't believe I got it working! It was probably 3 hours of messing around over two nights, switching to JavaScript was the solution all along!

Next step is to start automating things, image cropping, file running, and then saving the text!

Time Spent: 2 hours 16 minutes


May 24, 2018

Programming - Status

2018-05-23

Time Spent: 5 minutes


May 4, 2018

Programming - Errors

A non-numeric value encountered

Broken:

$userteam->da = '';

$userteam->da + $userteam->da_2 + $userteam->da_3;

Fix:

$userteam->da = 0;
$userteam->da + $userteam->da_2 + $userteam->da_3;

Time Spent: 3 minutes


May 4, 2018

Programming - Errors

[] operator not supported for strings

After my week of broken environments, I get enstars back up and boom this error.

The PHP version of the live version is 5.6 while the new dev environment is 7.2

Old code:

$allcards = '';
 $allcards[] = $card;

Fixed Code

 $allcards = [];
 $allcards[] = $card;

https://stackoverflow.com/questions/5879675/problem-with-fatal-error-operator-not-supported-for-strings-in

Time Spent: 4 minutes


May 4, 2018

Programming - ccmakesthings.com

Upgrading PHP to 7.2

It was 7.1 so 7.2 upgrade seems to have caused no issues! Excellent!

Time Spent: 2 minutes


April 16, 2018

Programming - Weekly Log

2018 Week 16 - April 16 to April 22

figurerant.com

enstars.info

Time Spent: 6 days


April 9, 2018

Programming - Weekly Log

2018 Week 15 - April 9 to April 15

enstars.info

figurerant.com

ccmakesthings.com

Time Spent: 6 days 12 minutes


October 11, 2017

Programming - London Trip Scrapbook

Writing Up My Travel Journal

When I was going through my closet for moving I found my shoebox full of London things I had kept. I had always wanted to make a scrapbook with the things but I was terrible at finishing scrapbooks and then you had to actually physically hold the scrapbook to look at it so why not create a digital one!

I have not figured out where this project will live or how exactly I will do it but my first step is writing up my journal I kept of my London and Paris trip in 2003. I'm five pages in so far and it has involved a lot of wandering and being lost. I want to figure out the path we took and take pictures of all the random stuff I have saved, in the end creating some fun scrollytelling/data story webpage

Time Spent: 17 minutes


May 19, 2017

Programming - Travel Site

Status

I downloaded a CRUD template and was using that to build out the site. It's been so long though should probably just remake the same pattern I've been using.

Time Spent: 1 hours


October 3, 2017

Programming - General

Macbook Dependant

My Macbook's keyboard deicded to all the way break on Tuesday night and I realized just HOW much time I spent on it. Working on projects, writing, reading, wasting reddit time, all on the Macbook! Even when I took breaks from my phone in Japan and NY I STILL had the Macbook there.

It's still mostly useable with an external keyboard and wireless mouse but I'm about to not have it at all for two days, What will I do???? Can I handle it???? I should be able to, being so depedant on one object I can break easily is not good.