The Fear and Awe of United States Social Politics in 2016

I mean if you really want to reach people. Use facebook. Believe me if you think people don’t want to read it, you’ve misread our times. If you think your friends and family aren’t your market? Go find the others.

I am seeing calls to war against ISIS. If I am wrong tell me. Did we not help dispose Asad providing them a home, destabilize Iraq providing them a base, and sell arms to all different kinds of rebel factions that in turn sold or lost them to ISIS, finally helping to arm them as well?

Did not America help create Al Qaeda by empowering Bin laden to resist Russian involvement in Afghanistan?

Did we not go to war in Iraq on a false claim of nukes while hijacking the hype of 911 to do it?

Does the arms industry not benefit the most off of our hate crimes and political gun debates? Does the military industrial complex not make the money off of all the war? Isn’t the truth of a war usually over resources and positioning? Isn’t war’s propsal always cloaked in an opportunistic emotional event?

If a person think mass shootings and bombings are enough to take this great nation to war you miss what it means to be truly powerful. Being truly powerful is being able to take the hit and and ignore it and ignore other people for calling you weak for allowing the injustice to happen without retaliation.

America is not desperate. I won’t promote a full scale war ever again when we can’t manage our Proxy wars with wisdom. Our full out wars have been full of deception. You know we guarded Poppy fields (heroin trade) with American soldiers in Afghanistan? Did you know the US CIA is known for gathering funding for globalization through selling drugs?

Have you seen how many people have died in service or opposition to the Clinton family who’s deaths have been labeled suicide? You trusted the integrity of the Bush Family? I saw them help perform gross magic on all of us!

If you don’t think America will murder people and start conflicts to secure natural resources and make western families richer then you’ve either forfeited your interest or have not been exposed to all the dirt that is really out there. It’s so dirty! No big deal. But clean we are not.

Nations are mafias. They should be respected as mafias. Just cause one mafia has better laws than another doesn’t mean they are not mafias. And we are asked and raised to have national pride for our dog collars? We are asked to celebrate a forfeited personal sovereignty while we, in hopes of safer travels, entrusted it to a nation?

I’m not going to lie, I have a little pride. I like where I am. America has very decent laws where it counts. It gives me the most leverage to say things like this, that challenge the concept of America itself.

I think it’s time to start thinking empathetically and globally. We have to do surgery when lopping off limbs is unacceptable and with the right leaders (or doctors), unnecessary.

If America needs to declare war on ISIS then so be it. But it better not be a war of the past. It better be a war of the future. With clear goals and based on non violent, defensive tactics. Something that satisfies this desire of mine. We don’t want another Iraq. Do you know how awful the destruction of a nations infrastructure is? We don’t want that ever again. The world cannot afford Diaspora. Just look at the horror there is now and you dare to drum for more based on emotional impulse? Where is my stick? You did a good job. You get knighted for putting pressure on the issue. But man the style is reckless and dangerous and is unworthy of the challenge of the task.

If we go to war with ISIS we may very well have to go to war with Saudi Arabia. Are they not already the entombment of Sharia? Is it Sharia we should hate? Or is it the spirit of aggression stirring in guts of Syria? Saudis have been funding terrorism for a long time but doing nothing out in the open but accepting our money and giving us our cheap oil and requiring others to buy their oil in US dollars. Sounds like a friend. I am sure they don’t want to be an Iraq, or a Syria. They have a beautiful country.

We are the free world. We should act like this kind of power enables us to place the double edged sword of death on the anvil. These are the times of banging. Strike while the iron is hot! bang bang.

Should WordPress developers use tempnam() PHP function?

Sometimes safemode happens and it’s a nightmare.

Warning: tempnam() [function.tempnam]: SAFE MODE Restriction in effect. The script whose uid is 10032 is not allowed to access /tmp owned by uid 0 in /var/www/vhosts/ on line 217

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /var/www/vhosts/ on line 225

Warning: fopen() [function.fopen]: Filename cannot be empty in /var/www/vhosts/ on line 234

Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/vhosts/ on line 235

Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/vhosts/ on line 236

Warning: Unknown: open(/var/lib/php/session/sess_urvaf1vnrouu4n0cmc23ll2p03, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0


Image attribution, how can we protect it?

I want a way to hover over an image and show the image meta data. I want this to be everywhere so there is always attribution and a chance for deeper understanding of every image. That way even open domain images can show more information about their origin. Social shares and memes would become more interesting. Not sure how it would affect personal photos.

Space Weather

If you like attempting to understand weather patterns through accountable data then check out the Suspicious0bservers YouTube channel for daily space and macro weather reports

Official Website:

Testing! Ignore this below!:

Open Broadcast Software – Plugin Request – Show active window / follow cursor

I am working with Open Broadcast Software and working with three monitors. I would like the active window to display at all times. That way when I move to another window to read and click the browser the viewer will be able to see the screen I am looking at as well.

If you know of something that can do this let me know @atwellpub

My thoughts on Sharia circa June 2015

I have to ask myself do we opt for peace and let the middle east stabilize under Sharia law? It might be the only power that can do it. Fear based politics says if we do this they will prosper and become strong and lead to more intense bloodshed at a later pinnacle moment.

Sharia is policy itself right? And Sharia is a never ending war/peace machine aimed at uniting the world, under Sharia, eventually right? That is a zero sum game.

I think about us (Spiritual America) and think it’s our belief that divinity best comes from free will and free will is best served by liberty. We use laws as we must and often judge our own laws and punishments as harsh and change them to become more moderate. We even aspire to decriminalize personal choices that would result in being executed under Sharia. Do I need to go into example?

Although Sharia’s harsh punishments piss Americans off , sometimes I feel a good public whipping is the answer and get upset that we are so weak stomached. Banking crimes… corruption crimes… these are crimes where public whipping seem appropriate. Let’s stripe them and release them. I’m not keen on prolonged periods of psychological torture with the threat of homosexual rape always lingering around the corner…. not for anyone.

No… what really pisses Americans off are theocratic statutes of legislation… not just Sharia’s, but any. Americans don’t want theocracy to rule because theocracy is often presumptuous and rude. We acknowledge that there are competing religious factions out there that would love to have totalitarian rule… and we must ignore them and promote the liberty of personal decision. Do I need to go into further example?

Same sex couples can now marry and peace is on them. With this seemingly anti-theocratic statute they will receive the same legal dignities offered to opposite sex couples. Should traditionalist Christians harbor murderous indignation? No the Jesus in us surely is too good. So we go with the flow. We let our government address the dignity issues of the free world. It’s not a perfect system but there is plenty of breathing room.

Foreign policy is very tough right now. We want to protect those being brutalized and persecuted. We want to meddle. Are we hegemonic? Are we forced into the zero-sum game of liberty versus Sharia law? Somewhere in the mafia novel of humanity we still find old prides and old ideas that inspire us to not keep to ourselves, to go out on a limb and challenge what might not accept our right to be sovereign and unmolested.

Will the Muslim nations give up their liberty in exchange for solidarity under their religious statues?  Or will there be mighty leaders of the same spirit of America’s founding fathers that denounce the perfection of Sharia law for the culturing of the freest possible will with the most limited coercion?

I am thirsting for answers and solutions and hopes. I do not want to see Americans wake up to find themselves in a zero sum game eager to see the end. I want them to wake up and find their roots, and learn to turn the other cheek and wax mighty because of it.

Why I left Notepad++ and moved to PHPStorm

logo-0aa107f965425de0266a7cf172ca0af8 notepad++ phpstorm

I write mostly PHP, Javascript, & Bash. Most of the time I am developing WordPress plugins for Inbound Now. Here’s a journal entry for my love and grievances. Hopefully it will be picked up and used for good.

What I like about NotePad++

  • Extremely fast when loading.
  • Love the GUI
  • Love the functions list (needs improvement for JS files)
  • Their line bookmarking system is fast and easy to use.

What don’t like about NotePad++

  • No setting to trim trailing slashes on save. Forces user to setup a macro.
  • Their functions list needs improving for JavaScript.
  • No support for running Gulp/Grunt tasks at the push of a button.
  • No easy access to command line console / terminal.

What I like about PHPStorm

  • They have a core setting to trim trailing slashes on save.
  • Their settings management system is of the best I have ever seen.
  • Their code tidy is very effective.
  • Their auto documenter is strong. (reads variables requirements and return variables)
  • I can read and run gulp/grunt tasks included in the project I am working on with the click of the mouse button.
  • I can save quick launch spots for bash scripts.
  • Very quick global search / global search & replace.
  • Function list for JavaScript works well.

What I don’t like about PHPStorm

  • Slow to load.
  • When loading slowly it hijacks my monitor several different times while I try to do other things.
  • Tabbing interface is not as good as Notepad++.
  • Often the UI has too many knickknacks eg: information overload and over stimulation.
  • Search & Replace component, although faster for large tasks, is not as intuitive as Notepad++’s. In my opinion it’s Search System’s  UI needs to be redeveloped to follow NotePad++’s example.
  • No matter what theme I use there is pixel blurring on my code text. This is not an issue for Notepad++. Pixels there are sharp. No matter the magnification.
  • Line bookmarking is more complicated and harder to use than with notepad++. With notepad++ it’s a click on the line number and then a function key press to cycle through marked line numbers. With PHPStorm its pressing a function key on a line and then navigating to a bookmarks list and double-clicking bookmarks to navigate to them. Bookmarks also persist after shutdown and startup, which means cleanup duties.
  • I can’t figure out how to turn inspections off by default. When they are on sometimes they help, but oftentimes they cause me to question and investigate my code needlessly and I’ve incorporated pressing cntrl+shift+alt+H on every file to turn inspections off.

I want to use Notepad++ but I can’t!

Don’t get me wrong PHPStorm is an incredibly powerful tool. And I’m using it.  I still miss Notepad++ though beacuse…

  • I refuse to make use of macros because Windows is already cluttered with Macros key combinations. There should be a settings level solution to ‘onsave’ processes.
  • I can live with a broken function/class viewer for Javascript files, but I really want a modern one that reads my js objects as well as it reads my php class objects.
  • I need to be able to run my gulp/grunt tasks quickly from GUI.
  • I also love having a command line utility + console in PHPStorm. Not only can you open one console but you can open as many as needed which is great for processes that require that the console stay open (node server, gulp watch, etc).

As a modern developer I need the Grunt + Gulp + Commandline tools that PHPStorm offers. But Notepad++ is still miles ahead of PHPStorm when it comes to simplicity, intuitive components, and speed. I really want to move back but I can’t.

In the meantime, I still use both side by side.

I’ve also my eye on Atom Editor, though at the time of this article it is not strong enough to replace either… I believe it’s appeal is in how easy it is to extend with self written and community contributed plugins. It will surely become a contender as it’s community empowers it.


Visual comparison between PHPStorm & Notepad++
Visual comparison between PHPStorm & Notepad++

Notes on working with Google Calendar API

Get a list of calendars

I want to get a list of google calendars for a google account. I am already authenticated and using the PHP library…. how?

public static function get_calendar_lists() {

    $client = Inbound_Google_Calendar_Connect::get_client();

    $service = new Google_Service_Calendar($client);
    $calendarList = $service->calendarList->listCalendarList();
    while(true) {
        foreach ($calendarList->getItems() as $calendarListEntry) {
            echo $calendarListEntry->getSummary();
        $pageToken = $calendarList->getNextPageToken();
        if ($pageToken) {
            $optParams = array('pageToken' => $pageToken);
            $calendarList = $service->calendarList->listCalendarList($optParams);
        } else {


Embed Calendar By ID

I’ve run into my first problem. I can get the list of calendars no problem, but when I try to get a calendar by id I am getting a ‘(401) Login Required’ error. I should be authenticated. Doesn’t make sense. My scopes seem right too.

Turns out I was not setting my access token correctly. Not sure I need this method anyway since the method above seems to return the same data for all calendars.

 * Get information given calendar id
public static function get_calendar( $calendar_id ) {


    $service = new Google_Service_Calendar( self::$client );
    $calendar = $service->calendars->get( $calendar_id );


Generating a Calendar Embed

My next task is to figure out how to take a calendar Id and turn it into an embed. Turns out I can’t find out how to do this. If the user is logged in they can read a normal embedded calandar. If they aren’t then the calendar won’t show.

I would think that we’d be able to render a private calendar using the API. I’ve opened up a git issue here.