Skip to main content

Programming

warning: Creating default object from empty value in /home/kevin/public_html/modules/taxonomy/taxonomy.pages.inc on line 34.

Seven Sites in Seven Days - My Personal Challenge

I feel like I need to challenge myself. Since I moved last month, I have been doing a lot of little things here and there (see: consulting, freelancing). My own projects have stagnated and I haven't been nearly as productive as I would like.

I have a lot of ideas for different websites I own but have had a very hard time committing to one. I enjoy projects, building a first implementation and testing a concept.

In an effort to try and get creative and find a project or two to really work on, I decided why not build a lot of websites/projects and see what happens?

Seven Sites in Seven Days Challenge:
1. I will try and build 7 websites in 7 days.
2. There is no limitation/minimum requirement on what each will be.
3. Some will probably suck (likely most/all of them).
4. I may get help from freelancers (paid).
5. I may use existing resources - old code, domains, servers, etc.

Detecting Trademark Infringement Domains using Levenshtein Distance

I just finished reading The Domain Game by David Kesmodel and it was a very fun read (A huge thanks goes to Tim Davids who sent me a copy of this book!). I am in awe of how Kesmodel found enough material to write so much. It was published in ~2007 which made it especially interesting because not much has changed since he has written it. The biggest thing that came to mind was the domain tasting loophole was closed and the new gTLDs. Other than that, it's still relevant.

The same issues plague us, mainly surrounding trademark infringement / cybersquatting. I kept reading statement's from these big portfolio holders over and over about how it's hard to actually filter an entire portfolio and keep it clean.

Drupal Taxonomy-Based Menu Block

Posted in

I failed with Taxonomy Menu and Menu Block. I couldn't get them to work, the menu appeared in the admin but never showed up in the menu block. I am not sure where the problem was but I wasn't alone with this issue.

I thought perhaps Views could create a view based on taxonomy terms. Failure.

What I did find was some nice code that allowed you to create a PHP code block that did exactly what I wanted.

Simply create a new block, paste in this code, make sure $vid is set to your proper taxonomy, change input type to PHP (enable php filter in modules if it's not showing), save. Add the block wherever you like!


<?php
 
$vid = 1;  // Set the vid to the vocabulary id of the vocabulary you wish to list the terms from
$items = array();
$terms = taxonomy_get_tree($vid);

Twitter Basic Auth Still Working, sometimes?

Posted in

I was talking with a friend last night and some of the Twitter Bots I wrote in the past came up (i.e. @StupidBot) and I noticed some odd behavior. First, they seemed broken.

I started to try and fix them today and found out basic authentication has been deprecated and can no longer be used since August 16, 2010.

But wait?

I noticed some of my bots posted after that.

It worked
August 16-31
September 1,14,28
October 21-22
November 5-8

August and September 1 they probably didn't turn it off at the deadline. Now the rest of the updates... the September 14,28 are 2 weeks apart exactly. Maybe some type of update/test? After that, I cannot explain. There is no obvious pattern, it seems to turn on for different lengths of time.

For now though, I need to go back and figure out OAuth and re-write a bunch of my applications so they start working again. :(

Anyone know any more about this? Any theories?

Syndicate content