January 1st, 2015 wordpress

Bootstrap 3 Carousel is slick and lightweight and easy to implement in your WordPress site.


For this tutorial you need to have a basic understanding of PHP, CSS, and WordPress. You will also need to have Bootstrap 3 installed on your WordPress site. If you have a customized Bootstrap installation make sure you have included Carousel.js.

You can have a look at the final product here on my home page, also if you just want to see the completed source code scroll to the bottom of the page or follow this link.

Carousel Template

This tutorial will go through how to implement Bootstrap 3 Carousel in your WordPress site. Bootstraps Carousel is well documented on their site so all we have to do is tweak it to make it work with the WordPress Loop.

January 1st, 2015 Ubuntu

Got myself a new computer and now it’s time to party! Got all the basic installed, got all my git repositories cloned but I’m not quite ready to let the party begin. This is a quick list of how to get all the party goodies I need (i.e. Java, python, C/C++, Haskell). I will install a few other applications along the way that I find useful like valgrind and gdb for C/C++ development, and bpython for python development.

I don’t really cover anything too tricky here. Mostly just the commands to run to get what is readily made available by using apt-get install, if you need some more in-depth instruction I a added a few links to some helpful resources.

September 4th, 2014 Regular Expression

This tutorial shows how to use the Lookahead and Lookbehind Zero-Length Assertions using Sublime Text 3.

Here are a few helpful regular expression resources.

Fun With Regular Expression
This is a quick little intro to using regular expression. This little tutorial includes a hands on demo using jQuery that allows you to try out a little of what you learned.
This tutorial is 15 parts, which may sound long but each part is easy and fast, you should be able to get the whole thing in about 10 minutes. I would definitely recommend giving it a try.
Whenever I need to look something up on regular expression this is usually the place I end up finding what I need. This site is easy to understand and comprehensive, any question you have about regex can probably be answered here.


September 3rd, 2014 linked physics tutorials, Tutorials, Ubuntu

There is one of things I didn’t mention in the video. If you don’t have ~/.bash_aliases in your home folder you may need to make it. Before you can use the .bash_aliases file you need to make sure you have the following in your ~/.bashrc .

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases

Then all you need to do is create ~/.bash_aliases and start adding aliases.

Follow this link to check out the Alias Man Page


August 29th, 2014 Tutorials

I had a little project recently where I had to extract a lot of data out of lists on a few websites. Although there are a handful of ways I could have done this, using Regular Expression (regexp) did the trick in a matter of seconds. This is not the first time regexp has been a life saver nor will it be the last, when it works it’s like magic. It’s definately a tool every programmer should know how to use.


What is Regular Expression

Regexp is a very powerful tool. If you have used a computer then you have come into contact with regexp in one form or another whether you knew it or not. Regular Expression arose of Steven Kleene’s formalized description of a regular language in the 1950’s. Regexp is a sequence of characters that form a search pattern that can be either extremely broad or specific. Unix adopted regexp early on, using it in some of their core utilities like grep (global regular expression print), since it has been adopted into most major programming languages in one form or another it has become an integral part of all operating systems.



November 20th, 2013 Physics, Tutorials


This is a step by step list on how to solve about any mechanics problem, provided by Prof. Hans P. Parr at UCSD. Good stuff, been a real life saver.

How To Do a Mechanics Problem


  1. Stay cool.
  2. Read the problem twice: Once for an overview and once for the details.
  3. Make a drawing of the problem showing the given quantities. Make it large so that there is space to enter information in the figure without cluttering it. If an angle is arbitrary, do not make it 45 degrees. This make it harder to recognize similar triangles.
  4. Choose a coordinate system with an origin and positive directions. Show this coordinate system in the drawing.
  5. Decide what kind of situation you are dealing with and what equations might be needed to solve the problem. Write these equations down in their most general form without making simplifications that the problem might allow.
  6. Assign a letter symbol to all numerical values that are given in the problem and use these the make the equations specific to the problem at hand. Do not substitute numbers yet.
  7. Count unknowns and equations. Only when these are equal can the equations be solved. If you have more unknowns than equations try to find more equations.
  8. Solve the equations for the unknowns.
  9. Check that the units are correct in your answers. If they are not you probably made an arithmatical error.
  10. Substitute the numerical values for the letter symbols that you have introduced in 5).
  11. Look at the solutions in 8) and take limiting cases: Set some quatities to zero or let them get very large and verify that the answers change as expected.

I have just begun trudging my way through calculus based physics at UCSD. My teacher and TA are great but I need all the help I can get, so I end up finding myself fishing around for good tutorial videos. This is a list of some of the best physics video tutorial sites I have found.

  1. Open Yale: FUNDAMENTALS OF PHYSICS I– This is an open course from Yale and it is really top-notch. The videos are high quality, its free, the lectures are awesome, and it comes with a bunch of extra stuff like course work, sample problems, and html transcripts. The videos are long (2 hours) but they are all bookmarked so you can quickly navigate to the portions of the lecture that you want to hear.
  2. Khan Academy: Physics– This site really breaks things down to its simplest and most digestible form. The videos have a bunch of examples, and once you’re done watching you can even work on some examples yourself on the site. He doesn’t follow any particular curriculum so you may have to do some digging to find what you need.
  3. Patrick JMT Physics– This guy is really my favorite for anything having to do with math. He helped me through calculus and linear algebra. This is his YouTube channel that focuses on Physics. He also has a great web site at but it doesn’t feature a physics section, not sure why.
  4.– These guys are really funny and super clear. I think these videos are really meant for high school AP students, which is fine by me because they keep it simple. Their site has a star track theme which is cool but I’ve had more luck browsing their videos on their YouTube channel here
  5. mooseythejuiceman– This guy’s good, his videos are clean and clear which makes things much easier to follow. He speeds up the video through the portions that you may want to see but you don’t need the play by-play which can save time when you need and overview on how to solve a problem. All together this guy has helped me out a lot so far.

I can’t find all my help from these for sites but it’s usually a good place to start my search. I hope this list helps and good luck.

October 21st, 2013 Physics, Tutorials

This is a problem from the Fundamental of Physics by Halliday & Resnick. It deals with kinetic friction and setting up free body diagrams. The first half is setting up the force equations and second half is just doing the math to solve for the coefficient of friction.

October 20th, 2013 Tutorials, Ubuntu

I have a remote control app for my phone that controls the TV in my living that is hooked up to an old laptop (a little getto, but it works great). The app requires that I have a .jar file running on my computer. To make everything run smooth, I wanted to have the .jar file run at start-up so when I turn on the computer everything is ready to go. I had a hard time finding out how to do this online so I wanted go over quickly how I ended up doing it. It’s actually really easy.

First make sure you have a Java runtime installed. If you don’t have one yet, open your terminal by pressing ctl+alt+T and copy and paste the following line.

sudo apt-get install openjdk-7-jre

Right click on the jar file you would like to run at start-up, then find properties at the bottom of the list. Once your in the dialog, click on the tab that says permissions.

Check the box that says “Allow executing as a program.” This does exactly what it sounds like it would do, it will simply allow you to run the program.


Next open unity and type “Startup Applications” and click on the application.


Click on add.


You can name your launcher whatever you like then click on the browse button and fin your .jar file. Your not done yet, you will also need to add java -jar in front of the files location in the command window. The command field should have something like the following in it.

java -jar /home/myName/Desktop/MyJarName.jar

Click add, then close the Startup Application dialog window and your done. Next time you start-up your computer, your jar file should run.

October 18th, 2013 Java, Tutorials

This is a program I made for my probability and statistics class that shows how the Monty Hall problem works. It is surprisingly basic, if you pick the right door and stay you win, if you pick the wrong door and switch you win. This program outputs the result for staying and winning and switching and winning, which is just the inverse of the later, so I can graph it in R.

%d bloggers like this: