Make your own Table of Contents in Google with Bookmarks

I never remember how to do this so I’m adding the quick steps here. I know there are ways of auto generating a Table of Contents in Google Docs, but I don’t know, I just like making my own. Don’t judge me.

  1. Go through your body of text and Select the headers/text you want to link to in your hand-spun TOC.
  2. Select Insert > Bookmark
  3. Go to the top of your doc and make a little list of things you want in your TOC
  4. Select one, Hit Command + K
  5. Click the Bookmarks > to expand the available bookmarks list
  6. Click on the bookmark you want to link to.
  7. Enjoy!

Here’s mine!

How to stop an iframe video when closing modal

Needed to stop a video from playing and was impatient and having trouble getting it to work using YouTubes APIs. Found this solution and it worked right off the bat.

https://gomakethings.com/stopping-youtube-vimeo-and-html5-videos-with-javascript/

Add this method to your script:

var stopVideo = function ( element ) {
var iframe = element.querySelector( 'iframe');
var video = element.querySelector( 'video' );
if ( iframe !== null ) {
var iframeSrc = iframe.src;
iframe.src = iframeSrc;
}
if ( video !== null ) {
video.pause();
}
};

Call the function as needed, passing the container element into the function:

stopVideo( tab );

Dragged a hard drive icon into infinity

Also though it was another lifetime ago, I used to work at Apple, so when I have issues with my Mac, it bruises my ego. Lucky for me, the internets are full of answers to questions. My hard drive disappeared from the finder. I knew it was ok, I could get to it through the Terminal, but how to get it back up in my finder window. Here’s the answer I needed today:

Show missing hard disks in the Finder sidebar
The Finder sidebar is a convenient location to access frequently used items such as hard drives, various folders in your home directory, network shares, and any custom items you drag there. If you use the sidebar for accessing hard disks, then there may be times when certain hard disks do not show up here, while others do.

The likely reason for this occurring is if you have removed that specific hard drive from the sidebar. Even though the Finder has a sidebar setting you can check or uncheck to globally show or hide all external hard disks, there is a gray area where only some of these enabled items will be shown. This happens when you select and drag items off of your sidebar manually.”

https://www.macissues.com/2014/10/23/show-missing-hard-disks-in-the-finder-sidebar/

wordpress localhost subpages not working

I’ve been banging my head against the wall because a local install of a wordpress I’m developing would for some reason not let me go to any wordpress subpages. I kept looking at my permalink settings, they looked fine, tried adding mod_rewrite to my htaccess file. It didn’t make sense because the admin pages were working. Then I found this tip on Stack Overflow. Sometimes all it takes is going to the permalinks page and hitting the save button to regenerate the permalinks. Thank you Enniu!

https://stackoverflow.com/a/17623426/8061436

Forever Stubborn

I was reading a Twitter conversation between two programmers a couple months ago. One of them said “I’m not a good programmer, I’m just stubborn.” I completely related and I’ve had that statement on my mind ever since. Despite the dozens and dozens of tutorials over the last few months, despite building my own projects, writing out code with pen and paper, dreaming nonsensical dreams about key-value pairs, playing coding games with my kid, reading at night until my eyes close on me, I still feel like a bad programmer. But I am not giving up, ever. OK? Never. Never ever.

I had an interview today. I was given a logic test. I eventually answered it but I’m embarrassed at how long it took me to answer it. After the interview I went on Amazon and looked up logic puzzle books. I looked for websites with logic puzzles. I thought, well, I’ve uncovered this inadequacy and now I know it’s there, have to do something about it. Stubborn. Stubborn. Stubborn. Determined and stubborn until the day I die.

I’d love to sit and chat some more about my stubbornness, but I have to get back to my umpteenth Javascript class.

Dino-Chomp

I’m having too much fun with Scratch. I just started this dinosaur chomping apple game. Need to add some dangerous objects to avoid and maybe a winning score. For now, time for bed.

Jolene Kelley website is live

Jolene Kelley is a Craniosacral Therapist in Portland, OR. She hadn’t updated her site in several years. Her previous site was not responsive and while it did a good job of delivering information, it needed a refresh. Jolene was also frustrated that she was unable to update the site other than adding and editing posts and pages. In order to save time and money, I found a template (Colorist by <span class=”author”><a href=”https://wordpress.org/themes/author/webulous/”>Venkat Raj</a>) </span>with a great customizer and used that as my starting point.

There’s a funny story about how I met Jolene. I’ve been job hunting for several months off and on. It’s been stressful to say the least. I needed to give myself a day off so I headed to the soaking pools at <a href=”https://www.mcmenamins.com/kennedy-school”>McMenamin’s Kennedy School</a> for a soak. Jolene was there with her 4 year old daughter. Her daughter to a liking to me, it happens a lot to me, whether Juniper’s with me or not, kids tend to like me. Jolene and I started chatting about life and work. She asked me if I was looking for small website work and I said yes! Her beautiful site is the result. She had a big hand in the design, I just made the code magic happen. She threw in a Craniosacral appointment as a thank you and, let me tell you, this woman has a real gift. I’m so proud of how great the site turned out and I’m extra lucky that I met a great person.

Check out her site!

Double Bind

Book: Double Bind – First Glance, but mostly about me and how it’s not about me.

First, before I tell you about this cool, new book, I’ll give you a snapshot of my life as I see it pertaining to the book’s subject.

After umpteen years in the tech industry, I left my career as a web developer to go back to school and pursue a career in art. I earned my Masters Degree hoping to become an art teacher. I needed to find a career that didn’t take me for granted. I needed to feel like my ambitions and skills appreciated and not squandered. I needed to feel like I mattered to the world. I’d been feeling mostly like a cog. Continue reading “Double Bind”

Quick Start Guide for WordPress development on OSX

I found this great WordPress guide on installing a local development environment using brew and npm for wordpress, php and mysql. With the db running through brew services. Loving it. Install was fairly easy, with a little bit of troubleshooting (why oh why did I not document the troubleshooting part!).

Here’s the site: http://www.brodybits.com/wordpress/osx/homebrew/2016/03/09/quickstart-wordpress-testing-with-osx-homebrew.html

I cannot for the life of me remember how to create a new db, the instructions in the quick start aren’t working for me.

This post shows a much better method for creating new databases once you’ve gotten everything else running from the quick start guide above.

http://russianz.blogspot.com/2010/07/how-to-create-database-for-mac-os-x.html

Step 1
mysql.server start
Step 2:
Type:
shell> mysql -u root -p

Response: 
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.88-log Source distribution
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

shell>  create database db_wordpress;
Response: Query OK, 1 row affected (0.08 sec)

shell> GRANT ALL ON wordpress.* TO admin@localhost IDENTIFIED BY “YourPWHere”;
Response: Query OK, 0 rows affected (0.08 sec)