Crickets

Crickets
On the topic of crickets, you know those crickets that live in your basement that look like they were crossed with a spider on some alien planet, well… they weren’t but they are a special species that prefer basements. But I digress. But really not so much. The fact that I wondered about that for about a decade off and on and before the internet, it would have been one of those things that just stuck in the back of my head. But the other day, after cleaning my basement out after a flood, I just had to know and I found that out. They are also cannibals.
So back when I started this blog, I thought I had a golden ticket and for a while, it was pretty magic to make 40-60k a year from 10-16 hours of work a week (inflation has been bad). You could say I was cocky. You could say I was naive. I will say it. Making bets about ranking for keywords that didn’t make me money other than the bet. Turning a $400k a year business into a $3 million a year business, making chump change because I didn’t want to make more at my day job. It wasn’t a pride thing. It was a “having a pretty good idea of what I would be in that situation” thing. Though the tactics I used there for that job are still viable. Turning a friends side project web site into enough income to quit his day job. I was finally validated for knowing something.
This blog got about 1400 unique visitors a day for almost 4 years straight. Not huge, but it surprised me. My affiliate sites made on average, 25 cents per unique visitor. They flew under Google radar up until the death knoll because I didn’t need massive traffic, only targeted traffic. And yes, I will still brag about that shit and ask anyone to beat it with “passive” traffic. There was one mothership site that made the most money, digitalproductsreview.net which migrated from clickbankebook.com after a trademark dispute. A redirect for 5 years fixed that when dealing with a less than complete legal investigation. Before than, it was profit-ware.com, my first domain and only domain for many years. It made the down payment for my first house and then got blacklisted for years. It never quite recovered. I keep it because my oldest non free email addresses are attached to it.
That lasted almost eight years. And then came massive changes in Google’s algorithm, just as my family was getting bigger and my day job hit a dead end and there was no time and the money was disappearing. And then a divorce. Those sites are now dead, I think. I can’t say all the affiliate links are down. For a while there, I was spreading a few hundred every day and there are a lost of my parasitic affiliate enclaves on various sites, a few edu profiles, even some .gov stuff. I took the last site down a few months ago and still make about $40 a week in reoccuring payments.
But I had tunnel vision, and it fucked up a lot of things. Not that I could have fixed some things that happened, but I held on to a dream for too long. It started as a necessity. I went from being a single guy to a father of two in a few months. So one weekend I sat down and wrote my first php code. Because I had an idea about the gap between products coming into the Clickbank marketplace and the 10 links on the google serps for the first few days after a product launch and the product names sticking in people’s head from marketing campaigns. I had written basic and vb6 in the past, but this was the first code I wrote for the web. Monday, money started trickling in and by the weekend, I projected I had added 35k to my yearly income in 3 days. The concept with a few algorithmic and automation tweaks flew under Google’s and competition radar for 8 years. Code was the route to finish my idea, not my mission.
Back when I was high on being able to wave Google like a magic wand at my affiliate links, I kind of thought of this blog as my legacy. I grew up pretty damn poor. I didn’t believe to much in my abilities, because I just did things because I like them and geeked out on them. I had no one to compare my skills too, only myself, which, now that I do have comparison, is still the highest bar. And then shit hit the fan and it was sort of my embarrassment. Yup, that’s were I failed. See that day right there where Dad loses his shit. Hey, and just just back here a few months and see his cockiness being a dick to the person his is now. Future Stephan will forgive. But a necessity stop gap turned into my career. It was only recently I realized how small that was, when I finally took down the last site. But anything you excel at requires that. In fact, focus blows the whole 10,000 hour to expert formula out of the water, look it up, on Google of course. I could say that and you won’t because it’s too hard. Yeah, imagine that. You just have to know when you’re being a tweaker. No, you have to know when your tweaking out, outweighs the benefits of said tweaking out. Because that may just be your natural mode, your groove.
Oh, finally got to this. About tweaking out. I’m a geek. At a young age, I realized, if I was interested in something, I was exhaust every source I knew for knowledge about the thing. When I learned about the library, this turned into a stack of books over my head a week until I would I run out of something that I was interested in and pick something else random. Up until ebooks were invented, I wanted to own a library someday. Now, fuck it. Solar charger and ebooks are fine. Technology is where I need it. A library in my pocket. Again, with the digressing. So around 16, I realized money would be a good thing. By then, I had observed myself enough to figure out the whole tweaking out thing. So I considered a short of rabid hound dog. If I give a scent, it’s going to tree that bitch up ahead somewhere. Then magically, if I get the scent right, I could let myself go on the problem and wake up Dr. Jekyll again and deal with much nicer consequences. It was years before I got the scent right. 
The filtering of human action through code was my key to success. When the internet is the medium and you are competing with an algorithm meant to be the lowest common denominator, the game is easy. Any small edge scales in the mass of the internet. In the end, I lost track of the scale. Niches became markets and the shotgun approach I was using just wasn’t going to pay the bills.

So I shifted and became a developer, full time, creating other people’s ideas, sneaking time away to build my own and say fuck you to the man a few hours a week. And yes, I will taking those fucking hours, if it means I sleep 4 hours one night and I am the dick the next morning. And I have about 3 things going in the background now. And right now, I refer you back to my past self hating my future self. And I was very right about my reason for not taking a corporate job. Though what I’ve learned is, it is more effective to be subversive then revolutionary. So, sometimes you have to lay low, hide your real self in a bunker and wait for the next idea worth betting on.
 

It is only recently that I have learned that not only am I not a dumb ass, but that whatever I have been involved in, I have been at the top of my game and also the top of the game. A pile of books over my head has turned in a deep dive into unknowns until I can compete with people with more experience than me, using experiences I already have in other territories give me an advantage. New knowledge eventually becomes only a child of current knowledge and a template for future knowledge. Symbolic thought contains it’s own fractal compression algorithm. Words are only words and memorization and are mainly used for social battle not transfer of knowledge.
 

So, back to crickets, first this blog, 1400 a day to maybe 50, on one hand. And on the other. I got started in this shit because, at that time, if I had searched for “basement crickets” on the internet, I wouldn’t have found shit. So I would fucking research “basement crickets”, find a way to advertise something about “basement crickets”, and add a few bucks to the monthly income. Yeah, ok, that was the theory. But it was a valid theory. But the shotgun method I used proves my point more. An algorithm could rank me for product names running on daily autopilot with only slight intervention. It was easy to do that then. Find a gap and fill it with an algorithm.
 

What I’ve learned now, is use a different approach. If I love something I am creating because it does everything other tools don’t and I mention it to someone else and they have issues with it, it’s a winner. In fact, I wrote about this shit in 2004: http://www.articlesfactory.com/articles/marketing/take-it-to-the-net.html Because I have never left my roots. My life has more responsibilities now, but I don’t need to be rich. I was always looking for a way to live life the way I wanted without idiots getting in the way. Give me enough to live on and not answer to another person and I’m there. Keep it small and keep it all. In fact, I think that was in the book I read that got me interested in internet marketing.

Tags: journal, Blogging, Writing, Internet marketing, affiliate marketing
Using Display Suite View Mode Switcher Well, I happened to be looking at Display Suite Extras and found something I thought I might be able to use for a project I am working on. It creates a switch between view modes for a node and loads the changes via Ajax.

You can turn this on in the Display Suite Extras tab. And then on your displays, you can add a field for this switch to reside.

But that’s about it. If you want it to do anything special, you have to do it on your own.
One thing I had to do was switch the display a view field in the node when the display of the node switched. First I had to add the argument for the display switcher parameter to the view field: 

It took a while to find the right hook, but this works in a custom module:
function MODULENAME_core_views_pre_view(&$view, &$display_id, &$args){    if($view->tag == ‘view-field’){        if(in_array(‘list’, $args)){            $view->set_display(‘list’);        }        if(in_array(‘grid’, $args)){            $view->set_display(‘grid’);        }    }}
Another thing I had to do was use images instead of links for the switcher and style the active link, as well as make the javascript wait on the ajax to load the content first. I went to javascript for that to add a selected class to active view link:
$(‘.switch-view-mode-field span:not(:has(a))’).each(function () {            $(this).addClass(‘selected’);        });        $(‘.switch-view-mode-field a’).bind(‘click’, function () {            $(‘.view-content’).ajaxComplete(function () {                $(‘.switch-view-mode-field span:not(:has(a))’).each(function () {                    $(this).addClass(‘selected’);                    if ($(this).hasClass(‘switch-grid’)) {                        ssga.loadIsotope();                    }                });            });        });
Tags: Drupal, Display Suite
Phoenix Bear with me while I try to make this thing rise from the dust. After spending the time to convert it from WordPress to Drupal, I sort of let it sit stagnant, with broken links, broken pages, lots of broken stuff. Anyways, Drupal is up to date, in version 7 at least. I currently have Xenu attempting a DOS attack on the place while searching for broken links. I will then look through the report and fix what I can. 
And then, there’s the comments. About 200,000 to be moderated, which I am guessing about 199,990 of them to be spam. This happened while I attempt to get Mollum to work as a replacement for Akismet multiple times and gave up. Turns out that API’s get really pissed off if your time is off by more than 5 minutes. I have run into that twice now. First in the middle of a hackathon. Now again here. I now have my box making sure that the time stays up to date.
And then my whole reason for switching to Drupal in the first place. I was going to make some changes to this site and then I started doing this stuff full time andI actually wanted a break once and a while…for months at a time. And then there is the theme. I have grown to hate Bootstrap because the generic theme is generic and I really don’t want to spend the time to modify it. And I like sass, so I am switching to the Gumby2 framework.
And maybe I will try to write posts once and a while.
Tags: journal
So I Wrote a Book on the Phalcon Framework I have to admit I change my mind a lot. I started out rolling my own sites in PHP and MySql. Then I spent a lot of time with WordPress and various Ecommerce platforms. For a while it seemed quicker to do things that way. A when sites became a little more complex, I started using Drupal, which this site runs on. And now I’m using frameworks. I spent a little time with Lithium, a lot of time with Zend because my job required it and then I found Phalcon. Although I hate the bulkiness of the Zend framework, it is the time I spent developing in it that I learned the value of using a framework for PHP.
Some type of websites fit easily into WordPress’s structure and some require a little more finessing with plugins to get things to happen the way you want them to. Drupal allows for a little more complexity with less modules. But in developing custom applications that don’t really fit the “website” definition, true applications that do work, both WordPress and Drupal add a lot of overhead. No matter how slow Zend was, chances are that WordPress and Drupal were slower. Which brings me again to Phalcon.
I do really swear by rolling your own application when you have the time instead of using a CMS. But sometimes you really just want to get down to work on what your application will do. No need to reinvent the wheel. Things like routing, MVC patterns and authentication methods have been written and stand the test of time. You might as well reuse those and get down to the real work of your application.
The Phalcon Framework adds another advantage. It is written in C. So not only are you saving some time writing code, you may boost the performance of your application at the same time. In fact, I bet you will. So I decided to give Phalcon a try. I had a few ideas for applications and wanted to see how fast I could write them in Phalcon. Long story short, I like Phalcon. Here are some of the open source projects I have used Phalcon in

https://github.com/eristoddle/phalcon-gumby2-experiment

http://eristoddle.github.io/phalconBlog/

http://eristoddle.github.io/FOF/

And I ended up writing a book on the Phalcon Framework for Packt Publishing. It’s a short one, about 140 pages, but I tried to hit most of the features in the Phalcon framework while developing a simple blog. A blog is a boring application to build especially when there are things like WordPress and Blogger out there. Why roll your own blog in a book? I figured a blog is one of the most well know web application’s out there, with features that people are used to. And surprisingly, I could cover most of what Phalcon could do in a blog. Phalcon is not a huge, bloated framework. It does what it needs to do well and fast. You can use other PHP libraries if you want extra functionality.
Anyway you can find Getting Started with Phalcon here.
Tags: Php, Phalcon
Instant E-Commerce with Magento: Build a Shop Magento is a complex piece of software designed to do just about anything you might want to do with an online shopping cart. And while it is possible to customize Magento without code, just using the backend, that doesn’t mean it’s simple. But who wants to read a 200 page manual to learn how to use a website. But 52 pages is more manageable. If you need to set up a Magento store, Instant E-Commerce with Magento: Build a Shop by Branko Ajzele will take you from installation to a live store and covers the following topics in only 52 pages:
Installing Magento
Configuration
Setting up your categories
Creating product attributes and attributes sets
Adding products
Payment and shipping methods
Editing and customizing customer email
Setting catalog and shopping cart price rules
Managing orders
Customizing themes and appearance
While I don’t see it as a complete Magento guide, it will get you started. By the time you finish it, you will have your products in a live Magento store.
Tags: Magento