leetcode.com – Next Closing Time

I’ve been having problems with recursive problems lately so I’ve been studying them. I found a good one on leetcode.com(2) and I want to document it.

Given a time represented in the format “HH:MM”, form the next closest time by reusing the current digits. There is no limit on how many times a digit can be reused.


You may assume the given input string is always valid. For example, “01:34”, “12:09” are all valid. “1:34”, “12:9″ are all invalid.”

Problem #1:


Intro to Abstract Art with HTML5 Canvas & Javascript

I was showing my cousin how to do some fun things with canvas and realized that what we went over needs to be publically accessible. I’m going to try to keep this as non-programmer friendly as I can so follow along as far as you can go. Feel free to comment with questions.


What is an HTML5 Canvas?

Running Ogre 3d on iOS

Getting OGRE3D to run on iOS was a pain at first but after I got the hang of it things went rater smoothly. Here are the steps I took to get things running.

First of all, here are my devices:

– Xcode Version 7.3.1 on 15″ 2015 MPB OSX 10.11.3

– iOS 9.3.1 on iPhone 6s+

Start Installing:

Set Windows 10 Basecamp partition back to GPT (advanced)

Is windows telling you it can install because your drive contains an MBR when it should contain a GPT? Here’s how you can get around that:

Use an Ubuntu Live CD. I personally use an EFI thumb drive.

Stick the drive in, reboot, then press & hold `option` once you here the Apple boot chime. You’ll get a few options and you can select EFI then boot into live mode.

Once in the Ubuntu OS open up a terminal and do the following commands:

Jetson TK1 Disable USB Autosuspend

If you want to disable auto suspend indefinitely then do this:

$ sudo chown your_user /sys/module/usbcore/parameters/autosuspend

I use `vi` but you can use `nano`, `gedit` or whatever you fancy:

nano ~/.bashrc

and add this line at the end of the file:

bash -c 'echo -1 > /sys/module/usbcore/parameters/autosuspend'

And for good measure you’ll want to source the new script:

Installing Windows On Mac

So this process has changed a lot since I last did it and it’s painful. So I’m going to help you out with what I did to combat a few errors.

First and foremost, if you have El Capitan installed – DO NOT USED BOOTCAMP TO INSTALL WINDOWS!


Item List For Building A Quadcopter

Here’s a list of all the parts (from amazon) you are going to need to build a quadcopter. I’ve listed only amazon prime sellers so if you don’t mind waiting you can save some $$ by looking around at related sellers/products, that’s a good idea anyway since parts come and go. It won’t take too much imagination to do any popular model of drone as the flight controllers support all of popular models, just add / re-arrange the motors for h6, x6, x8, etc…