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.



blue sea shell featured
August 23rd, 2014 Featured, Projects

This is a script that I used throughout all my programming classes last year at UCSD and will most likely continue to use. It is easy to change to fit most of my testing needs.

The script takes one file containing sample cases which serve as input for a solution program (a program produced by the instructor) and a students program and compares the output of the two.

When one of the cases fails to match the solution program the offending case can be easily found by matching the number that is printed before each sample output to the line number of the test case.

sea shell
The script and a README that has a little bit more of specifics of how to install and run the program can be found following this link.

The code is short enough that I included the script below.

And to finish off, a little angry cat. Thanks for reading!

bash mime
August 22nd, 2014 Featured, Projects

Time Clock is a java application that helps employees track their hours at their workstation. Time Clock runs in the background tracking the amount of time the user has been idle.

Time Clock dialog.

Dialog generated by Time Clock when the user returns to their workstation.

Time Clock reports idle time by using the same native Windows utilities that tells the computer to sleep or turn on a screen saver. Approximately every minute the program reports the amount of time the each user has been inactive to a server. When the number of minutes of inactivity exceeds the threshold determined by the administrator, the user’s browser will automatically be opened by Time Clock. When the user is active again at their workstation, the user is presented with three option, “Taking a break”, “Working diligently”, or “Let me explain”. At that point they will click the most appropriate option and if necessary add a comment. This information can then be used by the administrator and user a like to better keep track of performance in the office.

Time Clock Screenshot

Screenshot of Time Clock dashboard.

JNA Logo


One of the biggest challenges of this project was making the Java application able to detect activity of the user. Java applications, traditionally can only track activity within widows created by the Java Virtual Machine (JVM) for reasons security and the portability. I was able to overcome these shortcoming by Java Native Library (JNA) which allows the program to access Widows native libraries. By using JNA package Time Clock was able to use the core functionality that determines if the computer has been idle.

You can read more about the JNA here.

Time Clock was commissioned by Source Consulting who now use it in their corporate office in Irvine CA.

August 16th, 2014 Featured, Projects

Provides a simple way to incorporate and customize your Gravatar profile.

This WordPress plugin is designed to be used with WordPress 3.9 sites, and requires
having a Gravatar profile. Me Widget is similar to Jetpacks Gravatar Profile Widget but provides extra customization like using a avatar not on your Gravatar profile or adding custom class tag to your avatar image easily from your widget panel.

Me Widget is available on the wordpress plugin repostiory.




  • Avatar : Display your Gravatar or a custom avatar.
  • Profile Info : Display some, all, or none of the personal information
    from your Gravatar profile.
  • Customize : the way your avatar and profile data is displayed using
    preset styles.
  • CSS : Easy to edit or make your own styles by adding the style
    template to your existing style sheet
  • Social Icons : Displays icons for your verified accounts from your
    Wordpress profile.
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.

%d bloggers like this: