Borderlands 2 Shift Codes

Posted: 14th November 2012 by Hammer Bro in Random
Tags: , , , , , , , ,
Comments Off
Post Closed

Check out the source links at the bottom of the post to find the codes from the various places I used to find them.

Here is a list of shift codes for borderlands 2 that I’ve found to date.  Some might be expired, if they are, let me know and I’ll cross them off.  If you find one that isn’t here, let me know as well and I’ll add it!

Read the rest of this entry »

Mixed Company Theatre Poster

Posted: 14th November 2012 by Hammer Bro in Graphic Design
Tags: , ,
Comments Off

Recently I was contacted by a good buddy of mine to do some poster art for an upcoming event in November. It focuses on Cyber Bullying and the harsh effects it has on today’s teens.

Here’s the link to the event if you’d like to go!  http://mixedcompanytheatre.eventbrite.ca/

It’ll be a great show. I’ve personally had the opportunity to see one of these shows live, and I was blown away. Great actors, awesome audience interaction, with a fun and upbeat vibe.

Here’s an excerpt from some of the marketing material that outlines what SHOWDOWN 2.0 is exactly.

SHOWDOWN 2.0 is an interactive, Forum Theatre performance that tackles the issue of bullying in a hyper-connected, ever-changing technological landscape. Developed in consultation with High school students, SHOWDOWN 2.0 is a hard-hitting and realistic portrayal of bullying, exploring how technology is influencing the actions and outcomes of violence and harassment.

 

Comments Off

I’m using this method to setup an array for use with multiple lists.  Generally when you have multiple lists of data over a bunch of pages that require editing, it becomes a pain in the ass to work with rows, one at a time.  With this method, you’ll be able to check off multiple html checkboxes and carry out bulk actions (like, delete all these selected rows).  Now I know… why not just add a <form> tag at the beginning of the list and then </form> at the end, and submit right?  Well, this method is fine, but what happens when you want to select rows on other pages?  Lets say you have 3 pages worth of rows, each containing 10 rows (30 total, yay math!).  Now lets say that the rows you want to edit are on page 1, 2 and 3… you would have to carry out bulk actions 3 times.  With the method I’m about to discuss, you won’t need to do this.   We’ll be saving the selected ID’s in a session allowing you to go through multiple pages (saving the checked boxes in an array).

First of all, we’ll need a list with checkboxes.

list.php

<tr class="row1">
    <td onclick="bulkSelect('leads-index.php', 'check1');" class="check1">
        <input type="checkbox" value="1" name="bulkAction[]" id="check1">
    </td>
    <td>List Item 1</td>
</tr>
<tr class="row2">
    <td onclick="bulkSelect('leads-index.php', 'check2');" class="check2">
        <input type="checkbox" value="2" name="bulkAction[]" id="check2">
    </td>
    <td>List Item 2</td>
</tr>
<tr class="row3">
    <td onclick="bulkSelect('leads-index.php', 'check3');" class="check3">
        <input type="checkbox" value="3" name="bulkAction[]" id="check3">
    </td>
    <td>List Item 3</td>
</tr>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
session_start(); //start session
 
if (!isset($_SESSION['bulkSelect'])) {
    $_SESSION['bulkSelect'] = array();
}
 
/* STANDALONE FUNCTION */
/* CREATE A LIST OF SELECTED ID'S */
//   Use this function to create an array of ids for rows that are selected. Used for bulk actions.
//   Sample array:
//
//		Array
//		(
//			[Email_Blaster] =&gt; Array
//				(
//					[1] =&gt; 34
//					[3] =&gt; 43
//					[5] =&gt; 45
//				)
//		
//			[Leads_Manager] =&gt; Array
//				(
//					[1] =&gt; 33
//					[2] =&gt; 34
//					[3] =&gt; 45
//				)	
//		)
 
if (!function_exists('bulkSelect')) {
	function bulkSelect($array, $page, $child, $type) {
 
		//Add to the array
		if ($type == "add") {
 
			//Check to see if the keyname exists, and if not, create it
			if (array_key_exists($page, $array) == false) {
 
				//The key does not exist, create it and add a child id
				$array[$page] = array($child);				
 
			} else {
 
				//The key does exist, check for an id
				if (in_array($child, $array[$page]) == false) {
 
					//ID was not found, push it to the current array (with associated page name)
					array_push($array[$page], $child);
				}
 
			}	
 
			//Add everything back into the session
			$_SESSION['bulkSelect'] = $array;		
 
		} 
 
		//Remove from the array	
		if ($type == "remove") {
 
			$pos = array_search($child, $array[$page]);
			unset($array[$page][$pos]);
 
			//Add everything back into the session
			$_SESSION['bulkSelect'] = $array;
 
		}
 
		//Return a JSON formatted string (for use with jQuery)
		if ($type == "return") {
 
			//{"html":["45197","45196","45078","45077","3424"]}
			$return = '{"html":["';
			$total = count($_SESSION['bulkSelect'][$page]);	
			for($i = 0; $i &lt; $total; $i++) {
 
				$return .= $_SESSION['bulkSelect'][$page][$i];				
				if ($i != $total-1) { $return .= '","'; }
 
			}	
			$return .= '"]}';
			return $return;
		}
 
		//Kill the session and start over
		if ($type == "kill") {
			unset($_SESSION['bulkSelect']);
			$_SESSION['bulkSelect'] = array();
		}
 
	}
}
//END FUNCTION///////////////////////////////////////////////////////
 
bulkSelect($_SESSION['bulkSelect'], "Leads_Manager", "111", "add");
bulkSelect($_SESSION['bulkSelect'], "Leads_Manager", "444", "add");
bulkSelect($_SESSION['bulkSelect'], "Leads_Manager", "333", "add");
bulkSelect($_SESSION['bulkSelect'], "Leads_Manager", "222", "add");
 
bulkSelect($_SESSION['bulkSelect'], "Leads_Manager", "222", "add");
 
bulkSelect($_SESSION['bulkSelect'], "Email_Blaster", "111", "add");
bulkSelect($_SESSION['bulkSelect'], "Email_Blaster", "222", "add");
bulkSelect($_SESSION['bulkSelect'], "Email_Blaster", "333", "add");
 
echo '&lt;pre&gt;';
 
print_r($_SESSION['bulkSelect']);
 
echo '&lt;br/&gt;&lt;br/&gt;JSON ENCODED STRING&lt;br/&gt;-------------------&lt;br/&gt;';
 
echo bulkSelect($_SESSION['bulkSelect'], "Leads_Manager", NULL, "return");
 
echo '&lt;/pre&gt;';

Returns 

Array
(
    [Leads_Manager] => Array
        (
            [0] => 111
            [2] => 444
            [3] => 333
        )

    [Email_Blaster] => Array
        (
            [0] => 111
            [1] => 222
            [2] => 444
        )
)

JSON ENCODED STRING
-------------------
{"html":["111","444","333"]}


.

Getting a face lift!

Posted: 11th April 2012 by Hammer Bro in About the Author
Tags:
Comments Off

Since the transition of moving my website from one web host to another, I haven’t really been able to grab the time to put my portfolio back online.  I’ve been juggling a few other side projects as well, trying to get them out of the door…  and I work full time…  and my house is 120 years old and requires maintenance… and you get the picture.  In light of this I’ve decided to just recreate my portfolio site and have this blog as a little side project.  I was hoping to give more time to the this but it just seems that with my current lifestyle, blogging just isn’t really a great fit yet.

This new portfolio site could also take some time too, so I’m going to be using some simple yet effective techniques to present my portfolio.  I currently have 3 projects on the go, so once these are out of the door, I’ll be refocusing inwards again on Mancini Media (perhaps maybe another campaign like the last one??).

Comments Off

Fast, Cheap, or Great?

If you missed part one of Do I know a ‘guy’, head over to How to choose a web designer part one.

I’m going to cover a few more things to consider when going with the right guy.

A good ‘web guy’ will be able to fit your website into your marketing strategy if you have one. Sometimes you’ve already started a marketing strategy and you’re looking to continue where you’ve left off.  You might have a logo already, and printing material that you’ll want to work from.  In this case, finding someone that can fit into the mix might be a little difficult but it can be done.  You’ll need to look for someone that isn’t head strong and is open to suggestion. willing to roll with what you have already and make decisions based on that.  A good sign of this is someone who listens.  If you’re doing most of the talking during your meetings, that’s a good sign.  This shows that the ‘web guy’ is willing to sit back and let you stir for a bit.  Someone that cuts you off all the time is not going to produce something that you’re looking for because they are usually too busy trying to shove their ideas in your face.  Bad designer… NO!

Read the rest of this entry »

’250′

Posted: 14th February 2012 by Hammer Bro in About the Author
Tags: ,
Comments Off

250 Likes!

Yup… for real.  Click the picture to hit the Facebook page to participate.

Cheers,
Hammer Bro
@ManciniMedia

Comments Off

After a brief hiatus, I’m back on the band wagon with another installment of the startup series I’ve been writing.  If you missed the first two then head to the bottom part of this post to see the outline of the series, or click that link.

I started looking for "Super Nerds" online and got stuck on this website: http://freshpics.blogspot.com/2009/12/super-nerds.html, enjoy.

Today I’m covering “How to choose a web designer.”  This is a crucial step in the whole process as this will directly effect your online business.  In the end, the website that the designer creates is going to either bring in business or just stay stagnant, contributing nothing to your business whatsoever except a loss of money on building the thing in the first place.

The first thing to keep in mind is that the title “Web Designer” is sort of a vague title.  It encompasses so much and anyone who is on the web contributing to the creation of websites will probably consider themselves a “Web Designer.”  So it’s not going to be the title that matters, and in this case you simply cannot judge a book by its cover.  It’s going to be the type of work that they can produce and what they know about the web that differentiates the good from the not so good.  I’ll give you a few important things to consider and from now on I’m going to be calling this person, the ‘web guy/girl.’  But really just ‘web guy’ so it reads a little better.

Read the rest of this entry »

The History of Web Design

Posted: 2nd February 2012 by Hammer Bro in Infographics
Tags: , ,
Comments Off

This guy started with a little bit of HTML.

Read the rest of this entry »

Comments Off

Lifting babies is easy... right?Woke up today and decided to switch things up a bit.  I’m going to add a bit of ‘funny’ to your morning coffee.  I’m taking a break from the techie stuff for a bit because yesterday I apparently scared all my subs away (11 to 0… friggin’ rough man).  BUT I will switch back tomorrow.  I’ll probably just alternate from here on.  If there is anything to learn out of this, it’s to keep on keeping on with some minor adjustments.

Today you get to see 5 funny things that have made me actually laugh in front of the screen… yup, an actual LOL.  So if you’re reading this with your coffee, drink, then read and laugh.  Not read while drinking and spit all over the screen.  Or you can try it and let me know the results.

The first gem is the Do’s and don’ts with babies.  I’ve added a preview to give you a taste of what’s after the link.  This is worth about 15 minutes and someone needs to continue this series.  As per the website, the end has a blurb that mentions that the pictures are from a book by David and Kelly Sopp. Here’s the book, great for new baby owners.

Read the rest of this entry »

Comments Off

Before I get into this, if you want to learn about hosting, you can read the post, but if you want to kill some time and watch Freddiew be awesome, do that instead.

Alright, back on topic we go. In the first post within this Startup Series I talked a little bit about how your domain name ties into your niche, and how to choose a domain name that is right for your business in the online world.  I covered a couple tips when it comes to choosing and gave you a couple tools to use along the way.  Nothing over the top, but just enough to get you started.

You’ve come up with an awesome domain name and now you’re wondering what’s next, right?

Well person on the other side of the screen.  Your next step is going to be finding a place to store your website files so that people can look at them.  At this point we hit the next phase of the Startup Series and another question comes up that gets a little bit more technical.

“Hosting, do I even have a hosting provider?” And “What language should my website be in?”

I don’t mean English, French, Polish or Klingon.  I mean programming language and more specifically, server side programming languages.  Generally most web hosts will support the programming language you want to build your website from.  Just to give you an idea of what I’m talking about, an example of a server side language would be PHP (which actually stands for PHP: Hypertext Preprocessor, weird right?  It’s an acronym within an acronym within an acrony… you get the picture).  You might also hear ASP.NET or just .NET being tossed around, which stands for Active Server Pages, and uses the windows based .NET framework.

“Woah woah woah… I was promised kittens.”

Ok, I’m sorry, too technical.  Here, this should hold you over.

Read the rest of this entry »