Author Archives: Mario Lurig

Free eBay Template Built with Bootstrap

Special Thanks to Phil Cryer for the initial idea and code.

This no longer works on eBay due to conflicting CSS with Bootstrap 3

There are two types of listings on eBay you see the most: Casual sellers using the simple text editor for their description, and power sellers using outdated non-responsive templates that are distracting and dated. Here comes Bootstrap to save the day for either one of those customers.

Continue reading

How to Stop Email Spoofing in G Suite

G Suite, formerly Google Apps, offers many tools, but most importantly it offers branded Gmail for your domain; critical for any real business. However, if you’ve had an established domain for a long time, it’s likely you have started to see bounces or spam responses with FROM addresses @yourdomain.com. However, the first part of the email is gibberish and not a real email address from your account.

This behaviour is called email spoofing and can be harmful to your brand and your email deliverability. However, removing this is relatively simple. It needs to be completed in 3 steps.

Login to the admin console got G Suite and adjust the following settings:

  • Disable outbound gateways (Settings for Gmail > Advanced settings)
  • Discard the email; Catch-all address (Settings for Gmail > Advances settings)
  • Authenticate email with DKIM (Settings for Gmail > Authenticate Email)

Tip: Use the search bar to quickly access Settings for Gmail. The DKIM setup is more involved, but Google’s help can assist you with those changes which need to be done with your domain name hosting company.

Selectize.js ComboBox: Cloning and Destroying

Selectize.js is a javascript library that allows you to offer more complex HTML select boxes, such as combining a select and an input box, commonly known as an autocomplete combobox. Most importantly, they have a built-in stylesheet for Bootstrap 3. However, I discovered a problem when you are trying to add another form field dynamically, specifically using jQuery’s .clone() function.

However, selectize() does not clone well… it breaks horribly. The key you must .destroy() the selectize() prior to cloning. Of course, another problem occurs then: The select element, upon selectize.destroy(), will reset the value to the last option. Solution? Store the value, destroy(), then set the value.

// When add button is clicked
$('#add').on('click',function(){
   $('.combobox').each(function(){ // do this for every select with the 'combobox' class
      if ($(this)[0].selectize) { // requires [0] to select the proper object
         var value = $(this).val(); // store the current value of the select/input
         $(this)[0].selectize.destroy(); // destroys selectize()
         $(this).val(value);  // set back the value of the select/input
      }
   });
   $('#monsters .form-group:first')
      .clone() // copy
      .insertAfter('#monsters .form-group:last'); // where
      selectizeme(); // reinitialize selectize on all .combobox
});

Here’s a working demo of the functionality.

Pokémon Go for Business: A Guide to Capturing New Customers (Kindle)

“Pokémon Go for Business” is a new ebook dedicated to helping every consumer facing business attract new customers. Well researched and full of specific, qualified ideas, the book helps explain the mobile game obsession to those who may never have heard of Pokémon before. Most importantly, it breaks down marketing ideas based on specific criteria, such as: Lure Modules, Gyms, and five distinct business types (e.g. Active Shopper, such as a retail store).

Available now on Amazon sites worldwide.

Included with this book are free Pokéstop icon templates (external download) and an employee handout (external download); the resources you need to get started DOING, not just thinking. The first layer of the table of contents is listed below for your convenience:

  • Introduction to Pokémon Go
  • Lure Modules: Who, When, and How Often
  • Marketing Toward Pokémon Go Players Without Lure Modules
  • Category Specific Marketing
  • Promotional/Guerrilla Marketing
  • Future Pokémon Go Features
  • Pokémon Go Quick Player Guide

PHP Alternatives for Nested IF Statements

We’ve all done it. It starts as a single IF statement:

if (empty($var)){ // does it exist?
   $error = 'No username entered';
   return $error;
}
// everything is OK

Then we decide, we need to check something else, so we just add in one more IF statement:

if (empty($var)){ // does it exist?
   $error = 'No username entered';
   return $error;
   if (strlen($var) > 20){ // Is it too long?
      return 'Invalid username';
   }
}
// everything is OK

Continue reading

Install Apache, MySQL, PHP5, and PHPMyAdmin on Debian “Jessie”

This is a quick guide to getting an Amazon EC2 server up and running with LAMP and PHPMyAdmin based on the LTS (Long Term Support) Debian version 8.5 “Jessie”. This guide was written using the Community AMI image debian-jessie-amd64-hvm-2016-04-03-ebs for Debian “Jessie” and assumes you are able to launch the server and connect via SSH.

Amazon assumes an EBS volume of 8GB (t2.nano) or 10GB (t2.micro), but if the server will be storing very little, the real minimum size of the EBS can be calculated safely as:
1.5GB + (RAM x 2)
That is roughly 3GB EBS for t2.nano, and 4GB EBS for t2.micro.

Continue reading

Change the Legal Name of Your S-Corporation in 5 Steps | USA, Colorado

After recently selling all of the assets of Dice Candies, it was time to change the name of my umbrella S-corporation from Dice Candies Inc to Slowpreneur Inc. These steps are here to help ensure you don’t miss a step.

One quick note: While many of the links are specific to the state of Colorado, the steps are the same anywhere in the United States.

1) Articles of Amendment

The Articles of Amendment are an official document submitted to the Secretary of State’s office, where the corporation is registered, declaring the name change. Usually there is a small fee involved ($25 for Colorado). This first step is critical because the document is later used as proof for all other agencies and companies.
Continue reading