Arrrgh! Do I really have to vote for Donald Trump?

screen-shot-2016-10-14-at-6-03-41-am

I’m not a sports fan, but I really enjoy following politics. To prove it, I recently saw a ‘W’ flag on a couple of friends’ Facebook posts who I knew weren’t normally political. I remember first seeing the ‘W’ flag when George W Bush was in office. So naturally, I thought it was a W flag for him. But, now I just started to have second thoughts.

So, you don’t know what you don’t know.

Many of you are I’m sure really tired of all of the politics between Trump and Clinton, but to me, this is the Super Bowl or maybe the World Series. Whatever sports analogy fits because I just had to ask Sara what the big game is for baseball.

When this political season started I was supporting, volunteering and even spoke (poorly) for Ted Cruz on caucus night. While volunteering, I really enjoyed talking to some of the people who wanted to share their thoughts about the different Republican candidates.

The entire time leading up to caucus night, I’ve been spent many months trying to figure out why anyone, even my neighbors would vote for Donald Trump. How could anyone support someone so repulsive, rude and obnoxious. After Ted lost, I wasn’t sure what to do. I looked at the Libertarian Party, the Constitution party and thought will my third party vote be a waste. Or will this year be the beginning of a new era that brings credibility to 3rd parties and finally end this two party juggernaut.

I really tried to understand what people saw in Donald. Slowly and I mean really slowly after several months of listening it started to sink in.

It was actually really simple: he is the bull in the china shop politically speaking. His qualities that I found repulsive are the same reasons why his supporters like him. He says . . . everything. That’s it. That’s what people like. He says what no one else will. He says what’s politically incorrect, he says what people are too afraid to say, he says what every one hasn’t heard in a really long time and he says things that make people upset, embarrassed, ashamed and repulsed.

Of course he does. He’s rich. He’s been rich all his life and had to answer to no one. He could say anything to anyone and always has. He has no filter. He’s never needed one.  And now this unfiltered vulgarian is running for President.

But, is that what I want for a President?  No! No way. Never.

But what about Hillary, she’s really, really, really bad.  A Criminal.  I have to vote for Donald because Hillary is really, really, really bad.

So how can I support Donald Trump. I’m still struggling with that until tonight. I still can’t say that I support Donald, but I can finally say for certain that I will vote for him.

And this is why . . .

“You will look back and realize that you made most important vote in history that turned our country around.”  Donald Trump, Ohio Oct. 13, 2016

Most of these items listed below are from the speech in Ohio on Oct 13, 2016.

What he and his supporters are against:

  • against DC incompetence
  • against political corruption
  • against political correctness
  • against GOP establishment
  • against Hillary Clinton the liar, the criminal, the racist
  • against Bernie Sanders the Communist
  • against Tim Kaine the Marxist radical
  • against Democrats
  • against the media
  • against IRS
  • against the UN
  • against globalism governance
  • against illegal immigrants stealing our jobs
  • against NAFTA
  • against a hemispheric common market
  • against open borders (look at France, Germany)
  • against massive trade deficits
  • against radical Islam (stay the hell out of our country)
  • against unvetted Syrian refugees
  • against 45 million on food stamps
  • against companies leaving the US
  • against Obamacare
  • against Trans-Pacific Partnership TPP (Hillary’s “gold standard”)

70K factories have shut down in the USA, the greatest jobs theft in history

What Trump is For:

  • For a wall (paid for by Mexico 100%)
  • Make things again – Made In The USA
  • Rebuild the military
  • Build the missile defense system
  • Peace through strength
  • A strong country and a rich country (you need both so you’re not a debtor nation)
  • Fixing the horrible trade deals
  • 35% tax on USA companies that bring their manufactured products back into the country
  • Renegotiate NAFTA
  • School choice
  • Biggest tax cut since Ronald Reagan
  • Protect religious liberty
  • Free speech on college campus
  • Take care of our veterans
  • Save the 2nd amendment
  • Supreme Court Justices who will uphold the constitution
  • Give America back to the American people
  • Lower business tax from 35% to 15%
  • Wages will rise, jobs will return and factories will rebuild
  • Inner cities will be rebuilt

——————————————————-

So with this list do you really need to struggle to make up your mind? Yes, he did say some bad things 10 years ago and apologized. Hillary left 4 soldiers dead and never apologized.

Trump is a bull in the china store . . . I say turn him loose.

How to download an MP3 file for offline use in iOS or Android

I took a look at a WordPress plugin, Easy Media Download, and it has a feature that adds a parameter to the <a> tag that forces a download. However, that only works for desktops browsers. If you are wanting to download the file in iOS or Android, you’re going to run into problems. That’s because they don’t have a file system like a computer that let’s you put files anywhere you like.

There are ways around this though. The mobile device wants to secure the phone by keeping files only associated with the apps that use them. So you could build your own app to download an mp3 file and store that file to be use only with that app. Not a quick or cheap solution. Another alternative is using Dropbox to store your mp3 files and share them. When you share the file Dropbox gives you an URL. Use this URL in your easy_media_download shortcode. What this will do (as long as the user has the Dropbox app installed on their phone) is download the file into their Dropbox account. From there they have the option to download the file for offline use.

Sample URL for a mp3 file in Dropbox used in the easy media shortcode:

[easy_media_download url=”https://www.dropbox.com/s/{{SOME_RANDOM_GENERATED_FILE_NAME.mp3?dl=1″ text=”Download TEST” color=”red” force_dl=”1″]

Using Easy Media Download shortcode to force a download at least for the desktop. Notice the extra force_dl=”1″ at the end. Probably not quite the answer you were looking for, but at least you know.

An abstract factory could not create an instance of UserTable

Zend Framework 2

This is a second time in a day that I got this error message:

An abstract factory could not create an instance of UserTable

This is what I had to change to fix it (old code):

file: module.config.php

    'di' => array(
        'services' => array(
            // 'StillReCAPTCHA\Model\UserTable' => 'StillReCAPTCHA\Model\UserTable',
            'StillReCAPTCHA\Model\UserMetaTable' => 'StillReCAPTCHA\Model\UserMetaTable',
        )
    ),

then replace it with this (new code):

file: module.php

'factories' => array(
	 'StillReCAPTCHA\Model\UserTable' => function($sm) {
		$tableGateway = $sm->get('UserTableGateway');
		$table = new UserTable($tableGateway);
		return $table;
	},
	 'UserTable' => function($sm) {
		$tableGateway = $sm->get('UserTableGateway');
		$table = new UserTable($tableGateway);
		return $table;
	},
	 'UserTableGateway' => function($sm) {
	 	$dbAdapter = $sm->get('Zend\Db\Adapter\Adapter');
		$resultSetPrototype = new HydratingResultSet();
		$resultSetPrototype->setObjectPrototype(new User());
		$tableName = 'users';
		return new TableGateway($tableName, $dbAdapter, null, $resultSetPrototype);
	 },
),

Not Every Linux Command Is Good for You

Screen Shot 2016-03-24 at 9.27.42 AM

This is something I ran into lately on my Mac.  I know what you’re thinking . . . um, that’s not a Linux.  You’re right, but using the line command can still mess things up if you don’t know what you’re doing.  Messed up stuff is exactly what I did.

While trying to configure Compass and Sass to work with grunt I found some stupid suggestion to perform the following command:

sudo chown -R $(whoami):admin /usr/local

 

The problem with this is that not only did it not fix my Compass and Sass configuration issues, it messed up the permissions of my MySQL database tables.  My local WordPress sites stopped working and I couldn’t access my data using PHPMyAdmin.  “Oh crap! Now what?,” I thought.  After my initial panic, I realized I just need to figure out what my permissions used to be and set them back.

On my Mac, my data for MySQL is located at /usr/local/mysql-5.7.9-osx10.9-x86_64 and an alias /usr/local/mysql -> /usr/local/mysql-5.7.9-osx10.9-x86_64.

To set the permissions back I did the following commands:

sudo su -
chown root:wheel /usr/local/mysql
chown -R root:wheel /usr/local/mysql-5.7.9-osx10.9-x86_64/
cd /usr/local/mysql-5.7.9-osx10.9-x86_64/
chown -R _mysql:wheel data

 

There we go, back to normal

No Posts Found When Viewing Custom Taxonomy Archive Page

The problem: you know you have posts associated with a custom taxonomy, but they aren’t showing up. So you do a var_dump on the wp_query. You notice that the SQL query includes an odd statment: wp_posts.ID IN (0). That will always return 0 results. I thought I’ve seen this error before, but not remembering for sure, I disabled all the plugin. It worked.  Then narrowed it down to a single plugin. The culpurit: Fantastic Elasticsearch.

The solution: re-index elasticsearch

SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  
	INNER JOIN wp_term_relationships ON 
		(wp_posts.ID = wp_term_relationships.object_id) 
	WHERE 1=1
		AND wp_posts.ID IN (0) 
		AND ( wp_term_relationships.term_taxonomy_id IN (1140) ) 
		AND wp_posts.post_type = 'article' 
		AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') 

	GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10

 

enable-for-all-custom-post-types-archives

The option to enable for all custom post types archives might also help too.

Adding a web server in Zend Studio 12

I’m using Zend Server Version 8.0.2, Developer Standard Edition

 

When following a tutorial like Mobile App Development Zend Studio, I get stuck on adding a server.  Here are the steps I’m taking:

Here the “Deploy to:” dropdown is missing, so I press the “Add Server” button.

deploy-to

 

Since I am running Zend Server locally, I select “Local Zend Server” and then press “Next.”

local-zend-server

 

When I get to the next screen anything I put in the “Server Name:” field, I get the error: “Detected base URL is in conflict with existing “Local Zend Server” server.”

So, is this a bug or a misconfiguration on my part?

server-name

Summer Chicken Care When Not at my Linux

water valve

Once a day either in the morning or at dusk, turn on the water to rinse and fill the water containers.

spray-clean


Rinse and fill the water container. On occasion you may need to scrub or lightly bleach the containers. If you do use bleach, be sure to rinse thoroughly. There is a utility sink in the garage where you can give both the waterer and feeders a good scrubbing.

fill-water

TIP: Filling the waterer. You might to tip the waterer sideways as spraying directly into it will give you a face full of water.

light switch

The light switch controls three areas of the coop. The large bottom button is the lights. The two smaller switches are for heat lamps and water warmer which are only used in the winter.

escape-latch

Escape latch – if the door closes behind you, don’t worry, you can unlatch the door by pulling in this string and washer.

empty-chicken-feeder

When the feeder is empty, fill it with chicken feed. Since the chickens are still young you will be using chick feed.

full-chicken-feeder

When you place the feeders back on the chain the higher they are the cleaner they be, but keep them at a comfortable height to reach. Breast high is good.

chicken-door-open

This rope opens and closes the little chicken door. Sometimes it’s easier to reach up and pull the rope towards the pulley instead of pulling down on the rope.

chicken-door-closed

Loop the rope over this nail to open the chicken coop.

chicken-door-2

On hot days it very imported to have the little door open. If you are around in middle of a hot day, the chickens will enjoy fresh cool water.

double-check-door

At dusk, I always just check the outside of the coop. Since I often become distracted when inside watching the chickens, I double check the doors and  check for any stray chickens. Currently there are 8 Rhode Island Reds and 2 California Whites.If you’re curious, the larger door was for ducks which I had when I built the coop. Now I just use it to isolate any chickens if needed.