YouTube Doge Easter Egg

Just found this hilarious doge dog meme on YouTube.

http://www.youtube.com/results?search_query=doge%20meme&sm=3

doge-sun-meme[1]

Tagged with: , , , , , , ,
Posted in Games

Leaving in 6 Days!

Yes! That is right ladies and gentlemen. I leave July 28th to the hotel and then I’ll be at Lackland AFB in 6 days time, being yelled at most likely.

This post isn’t much. Just really excited. The next post will contain a couple videos I’ve made so far, and it’s playlist.

Peace!

Posted in Military, My Life

Boot from SD but use a thumb drive as RootFS

I found this solution at http://raspberrypi.stackexchange.com/questions/6638/boot-from-sd-but-use-a-thumb-drive-as-rootfs while having the same issue.

Rather than moving the whole root partition, you could create a partition on the USB stick, and then pick a mount point for this where the space is required. For example, if you needed more space for downloaded apt packages, which live in /var/cache then you could mount the new partition on /var meaning that everything under this path would be stored in the USB drive.

Basically you need to:

Create a partition on the USB stick (This is well documented), and format that partition, for example # mke2fs -j /dev/sdb1 to create an ext3 partition, assuming the USB device is /dev/sdb

Mount it in a temporary location, and copy the existing contents of /var to that location. Something like:

# mkdir /mnt/temp

# mount /dev/sdb1 /mnt/temp

# mv -v /var/* /mnt/temp

# umount /mnt/temp

Set up an entry in /etc/fstab so that the file system is mounted at boot time. Something like this would work:

/dev/sdb1 /var ext3 defaults 0 0

Reboot the RaspberryPi, and when the system starts up /var should be on the external partition. You can verify this with the mount or df commands.

Posted in Computers

Things For Air Force Basic (BMT)

Below is a very thorough but roughly thrown together list of things to bring to Air Force BMT. I’ll be leaving soon so I thought I’d drop my list here. Obviously I don’t have everything on this list but I’ll hopefully be making a video soon on what I am bringing. I’ll update this when it’s uploaded. I’ll be updating the list too. It’s was compiled from different sources.

Delayed Entry Program
-Air Force Fundamentals App
-Find your shipping facebook group (Mine is called USAF BMT July 2013)
-Things to bring:
-Paperwork
-Twenty copies of orders/Enlistment Contract (Reserves/ANG item)
-Unit Personnel Records (Reserves/ANG item)
-Social Security Card
-Driver’s License/ID/Military ID (Military ID is for Reserves/ANG, AD are issued theirs at BMT)
-Birth Certificate
-High School Diploma
-College Transcripts
-Marriage License
-Glasses Prescription/Contact Lenses Prescription
-Medical Prescriptions (To include Birth Control)
-Dependents’ Birth Records
-JROTC/ROTC Certificates
-Civil Air Patrol Certificates
-Naturalization Papers
-Alien Card

-Clothing
-3 Days of Civilian Clothing (Ex: 1 pair of jeans, 3 T-Shirts, 3 pairs of socks, 3 pairs of underwear for men, since you are issued yours.)*
-6 pairs of underwear (Females)*
-6 Sports Bras (Females)*
-3 pairs of compression shorts/spandex (Black)
-1 “Regular” Bra in nude or white for Blues (Females)
-Shower Shoes (Plain black (if you can find them) flip flops from Wal-Mart, Target, or Old Navy will suffice)
-Running Shoes (Wear these down there, your MTI may let you keep them)
-Cell phone and charger

-Toiletries
-Shampoo/Conditioner**
-Flip lid, easier for inspections
-Body Wash**
-Or bar soap, but also bring soap tray
-Shaving Cream (Males)**
-Flip lid, easier for inspections
-Toothpaste**
-Flip lid, easier for inspections
-Toothbrush (full size)***
-Toothbrush holder
-Tampons/Pads for one cycle (Females)
-Deodordant**
-Hairspray (Females)**
-Brush/Comb
-Hair Ties/Bobby Pins/Conair Bunmaker(Females; this MUST match your hair color)
-Lint Brush
-Sewing Kit

*Keep these in neutral colors, just in case (Black, White, Gray, and Nude)
**If you’re flying there, these items MUST be 3 oz or less! Buy them in a clear/white color if possible. Aerosol products are also a no-no.
***Non-electric! These MUST be regular, disposable type products.

-Do Not Bring:
-Over-sized luggage or bags
-Knives, guns, brass knuckles or anything that may be used as a weapon.
-Dice, playing cards or anything that may be used to gamble.
-Magazines, books, crossword puzzles or any other media that is not of a religious nature.
-Cigarettes, dip, lighters or any other tobacco products.
-Large photo albums. A few photos are permitted but space is limited.
-Material that is pornographic or can be considered questionable.
-Any over-the-counter medications to include vitamins and supplements.
-Aerosol sprays of any kind (i.e. hairspray, deodorant, starch)
-No doo rags

Tagged with: , , , , , , , , ,
Posted in Military, My Life

Project: Raspberry Pi to 4 TB NAS with 1.5 TB Backup Storage

Raspberry Pi

I’ll be turning my lovely Raspberry Pi into an even lovelier 4 TB network attached server with periodic backups to my 1.5 TB hard drive, also attached to the Pi.

I want to blog all of this so that others doing the same thing can follow along, and so I can remember to do this again for later, if needed.

So to begin, I’ve formatted my new 4 TB hard drive. I then moved all my data (1 TB) from my 1.5 TB drive to the 4 TB drive. I’ll be formatting the 1.5 TB to make room for perodic backups.

Now I’ll be connecting the 4 TB drive to the Pi. I’ll then install and configure SAMBA to share it over the network to my Windows machines. That’ll be a pain because of all the permission and configuration junk.

Then after all that crap, I’ll be popping the 1.5 TB drive, which was internal into an external powered enclosing. Then I’ll connect that to the Pi. I’ll then set up a cron job or something to make backups to the 1.5 TB from the 4 TB. These backups will simply be in case the 4 TB becomes corrupt or broken for some reason.

Tagged with: , , , , , , , ,
Posted in Computers

Gay Google is Awesome!

Wow! This is just amazing. Good for you Google.
Gay Google

Posted in Politics

PHP MySQL PDO Super Noob Easy Querying Function

This function is super easy and very efficient in moderation. When I say in moderation, I mean it shouldn’t be called too much every page. Nothing bad would really happen, it’s just bad programming etiquette to open a MySQL socket too many times.

Just like everything else on this site, you’re free to use it, modify it, etc. just please give me credit for anything I do to help

So without further adieu, I give you:

function qDB($query){
	//Database Information
	$host = '[host]';
	$user = '[user]';
	$db = '[database]';
	$pass = '[password]';

	try{
		$odb = new PDO("mysql:host=" . $host . ";dbname=" . $db, $user, $pass);
	}
	catch(PDOException $e){
		echo $e->getMessage();
	}

	$result = $odb->query($query);

	return $result;
}

Then to access the database with this function, we can simply do this:

This example simply pulls a few rows from the database to list links. Very easy to read.

$dbresult = qDB('SELECT `ID`,`Page`,`Name`,`Link` FROM `Links`');

if ($dbresult -> rowCount() > 0) {
	$row = $dbresult -> fetchAll();
	for ($i = 0; $i < $dbresult -> rowCount(); $i++) {
		echo '<li>';

		if ($row[$i]['Name'] == $pageTitle)
			echo '<strong>';

		echo '<a href="' . $row[$i]['Link'] . '">' . $row[$i]['Name'] . "</a>";

		if ($row[$i]['Name'] == $pageTitle)
			echo '</strong>';

		echo '</li>';
	}
} else
	echo 'No Links';

Good luck! Comment if you have any questions. I respond quickly.

Posted in Computers

What To Do, With My Remaining Time?

It seems like it’d be really easy to decide, possibly do nothing?

I can’t do that. I have to always be doing something, in the time I’m not sleeping. I play games, code, hangout with people, anything!

I leave  a little bit before this August. There’s a lot of crap I have to do before then. I need to arrange storage, fill out paper work, move all my stuff into storage, work out, buy stuff needed for basic training, and tons of other stressful stuff. I’m very excited for basic though, it’s just the time between there and now that makes me kinda stressed and anxious.

On things that I don’t need to do but want to before I leave, include coding, learning, working on my server, and enjoying the rest of my time as a civilian.

It really reminds me how little time I have.

Posted in Military, My Life

BrandonMXB.com’s Home Page

I’ve been very slowly developing the homepage. I’ve been extremely busy with life, volunteering at Wolf PAC, and doing other crap.

I’m starting to get interested again in developing the front page into more than it currently is. I want it to be a complete power house of current web technologies and innovations. I have high aspirations for the front page. I want to combine everything I know into the single front page, while keeping it compatible, dynamic, and fluid. I’ll always have my installation of WordPress in the /blog folder. I like WordPress because it can be simple to setup and stable, so I don’t have to worry about it while I’m working on other things. I can also post, with ease, what I’m working on here. It’ll also allow me to post snippets of code that I think would help other codes too.

The homepage is an ongoing project. I’ll probably implement a feature to display when each page was last edited, for funzies.

Posted in Computers, My Life, Notices

The World’s Most Humbling Comic

Hey guys. This has to be one of the most humbling comic’s I have ever read in my entire life. Of course it is Carl Sagan’s Pale Blue Dot, made into comic form.

2013-01-21-sagan[1]

Found at Zen Pencils.

Posted in Art, Computers, Military, My Life, Philosophy, Politics, Science