Fun With Programming Languages

Tonight, a Facebook thread got a little out of control after I posted a status update that I was “mentally bankrupt.” It was a long day working on client work – a project that is just about done but past due.

After some commentary by Facebook friends, we got to writing little scripts that would take a random selection from a group of adjectives and adverbs and put similar phrases together randomly.

What came of this exercise was a fun little jaunt into a variety of programming languages.

PHP

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
$adverbs = array(
    'mentally',
    'morally',
    'emotionally',
    'socially',
    'psychologically'
);

$adjectives = array(
    'devoid',
    'bankrupt',
    'empty',
    'hollow',
    'vacant',
    'sleeping with fishes',
    'taking a dirt nap',
    'shallow'
);

echo $adverbs[array_rand( $adverbs )] . ' '
    . $adjectives[array_rand( $adjectives )];
?>

Ruby

1
2
3
4
5
6
7
8
9
10
11
adj = [ "mentally", "morally",
    "emotionally", "socially",
    "psychologically" ]

adv = [ "devoid","bankrupt",
    "empty", "hollow","vacant",
    "sleeping with fishes",
    "taking a dirt nap","shallow" ]

print adj[rand(adj.length)] + " "
    + adv[rand(adv.length)] + "n"

Python

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import random

def popchoice(seq):
    return seq.pop(random.randrange(len(seq)))

adj = [ 'mentally', 'morally',
    'emotionally', 'socially',
    'psychologically' ]

adv = [ 'devoid','bankrupt','empty',
    'hollow','vacant','sleeping with fishes',
    'taking a dirt nap','shallow' ]

print popchoice(adj) + " "
    + popchoice(adv)

SQL

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
CREATE TEMPORARY TABLE adjectives (
    adjective VARCHAR (30) NOT NULL
    );

CREATE TEMPORARY TABLE adverbs (
    adverb VARCHAR (30) NOT NULL
    );
   
INSERT INTO adjectives (adjective)
    VALUES
    ('mentally'),
    ('morally'),
    ('emotionally'),
    ('socially'),
    ('psychologically');
   
INSERT INTO adverbs (adverb)
    VALUES
    ('devoid'),
    ('bankrupt'),
    ('empty'),
    ('hollow'),
    ('vacant'),
    ('sleeping with fishes'),
    ('taking a dirt nap'),
    ('shallow');
   
SELECT CONCAT_WS(
    ' ',
        ( SELECT adjective FROM adjectives ORDER BY 1 LIMIT 1 ),
        ( SELECT adverb FROM adverbs ORDER BY 1 LIMIT 1 ) )
    AS RandomStuff;

The Rules for Entrepreneurs

Venture Files founder and former curator, Steven Fisher, wrote a series last year that remains one of the best of its time. Even though he has moved on and is working with Network Solutions, I think it’s as important now (if not more so) than it was last year at this time. This is a consolidated (and updated) version of that series.

Pay Yourself First

Over the last 9 years and two startups I have learned many things and screwed up royally in some cases. This series is about providing you best practices of lessons learned and avoiding the mistakes I have already made.

In the past, I have had good years and bad years. When you have employees, they expect to be paid and when you mess with payroll (and payroll taxes, but that is a post for another time) you create such a negative culture that nothing will get done.

With that said, when you are starting your business regardless if it is a service or product company, you will have startup costs and probably forgo paying yourself for 6-12 months to keep growing the business. That is fine and to be expected. What you should not do (and what I did) is keep adding staff and sacrifice your own salary in the name of growth. If you keep going like that and have a bad quarter you will have nothing saved for a rainy day and if the business fails you will probably be in immense debt and got nothing out of the business.

Granted, the balance between growth and cash flow is a tenuous one but it is one thing you should never defer to someone else in beginning. Plus, there is a difference between creating a lifestyle business and an enterprise. A lifestyle business is really making enough money for yourself and having some contractors or 1-2 people that gives you a good salary but is more about freedom. An enterprise is a business that scales and gets big over time but you will be working intense amounts in the beginning but will need to hire those smarter than you with the intention that you are looking for an exit and will have time for freedom when you cash out.

So when you are growing the business you should work the first 6-12 months paying off the initial capital expenses and getting about 6 months of cashflow for yourself before you hire anyone else. Once you have that done, start paying yourself something, even if it is small and will ramp up over six months, pay yourself first. This will get you in the habit of being committed to making the business pay for itself and you so you are not worrying about living month to month and let you find some resources to help you deliver while you continue to sell and grow the business.

Once you are looking at hiring someone use these two rules as a starting basis:

– Have six months of payroll for that person in the bank on top of your salary

– Have 90 days of projects or sales committed for that person to deliver so they not only have something to do but are earning their keep.

You may have to be conservative at first in your growth but in the end you will scale better and create a business that is focused on delivery and customer service without putting you and your employees on a cash flow roller coaster.

Own Your Travel Itinerary with TripIt

In October 2006, a new service appeared on the web that promised to make it easy to manage all the fine travel details of a trip. As a frequent traveler, I signed up for TripIt in November of 2006, shortly after they launched, and have never looked back.

The concept is really simple. A traveler is headed to Austin, Texas (as I will be for SXSW Interactive in a few weeks). He books his flight on Southwest airlines and gets an email confirmation with ticket reservation, itinerary, etc. Sight unseen, he forwards this email to plans@tripit.com and moves on to reserving his rental car and hotel.

On the backend, TripIt recieves the forwarded confirmation email and knows exactly how to read it into their master database. The email can even be forwarded from an unregistered email address which you can claim later.

The beautiful next step is the organizing of all this information. TripIt sorts your travel plans out into “Trips” and will give you everything in chronological order. This traveler going to SXSW, for instance, has a chronological listing that shows his departing flight, his rental car pickup, his hotel information and his return flight. As a bonus, Tripit gives him a Google Map of the area you’re staying on.

picture-6

Now, I don’t like just plugging services for the sake of plugging services. You can go to Mashable if you want to be filled with nonsense. However, TripIt actually is a useful web product, but more than that, it’s a useful mobile product. If you have a smartphone (Blackberry, Treo, iPhone, etc) then TripIt becomes infinitely more useful.

For mobile users, you can access all of your itineraries by browsing to m.tripit.com, something that has become the defacto reference point for all of my travelling and checking in. It literally, if you’re a smartphone user, eliminates the need for a stack of trifolded paper printouts from 6 different reservations.

If you really want to own your travel itinerary and you own an iPhone, consider buying the “TravelTracker – with Tripit” iPhone app. While everything about TripIt is completely free, this app costs $19.99.

Facebook Rescinds Their New Terms Of Service, Reverts to Old

Yesterday, we talked about the huge terms of service nightmare that Facebook created for itself. They noticed the uproar, fortunately, but did little more than assure it’s user-base that they had our best interest in mind. At the time of yesterday’s blog post from Facebook CEO Mark Zuckerberg, the new terms of service remained in place.

As of today, however, that has changed. It is now reverted to what it was before.

Indeed, it seems Facebook lives in a village, and not just a bubble.

Many of us at Facebook spent most of today discussing how best to move forward. One approach would have been to quickly amend the new terms with new language to clarify our positions further. Another approach was simply to revert to our old terms while we begin working on our next version. As we thought through this, we reached out to respected organizations to get their input.

Lesson to be learned: Your users are your blood. Do not spring things on them without their knowledge, especially when it involves their content.

Twitter is Life

Everyone loves Twitter. Some research reports seem to indicate that it was the number one most often used word on Twitter last year. That would be 1 in every 3 words written on Twitter are about Twitter. A sampling of these tweets would be:

  • Listen to our podcast about Twitter
  • 10 Reasons I Love Twitter
  • Twitter is my girlfriend
  • The only thing better than Twittering from my iPhone is Twittering from my iPhone while taking a crap
  • Twitter helped me make money
  • Twitter helped me find God
  • Twitter helped me find a #blinddate
  • Did you know Shaq was on Twitter?
  • We don’t talk to each other, even though we are in the same room. We twitter back and forth
  • Twitter is down! FAIL
  • Barack Obama is on Twitter, did you know that? Huh?
  • Tweetup!
  • Let’s talk about Twitter
  • Twitter me this, Twitter me that
  • Business are on Twitter too
  • How is Twitter making money anyway?
  • Twitter is bigger than FriendFeed

Friendfeed? Huh?

Anyways, my point is this. The most important thing on earth, if you want to tap into the collective conscience of the webgeeks is Twitter. It’s clear why. With so many mainstream people like Rick Sanchez of CNN, Shaq, Ashton Kutcher and of course, ROBERT SCOBLE (pant, pant, pant), it is clearly The Important Thing™ to be talking about.

Are you talking about Twitter? If not, you should be. It’s rewarding.

It's February 16. Do You Know Where Your Facebook Photos are?

On February 4th, the largest social network by all accounts, Facebook, quietly updated it’s terms of service to grant itself an unending and irrevocable license to use all content ever uploaded to its service.

Photo by  pshabThis is fundamentally not all that out of sorts from what most services do when licensing user content, but their lawyers are clearly a a few cards short of a full deck of 52. Consumerist says it best:

Want to close your account? Good for you, but Facebook still has the right to do whatever it wants with your old content. They can even sublicense it if they want.

I’ve begun advising people, clients and otherwise, not to upload any content to Facebook except links. Links merely point to the actual content. Most blogs and content site these days provide a “Share with Facebook” tool that will allow readers (or yourself) submit content to Facebook. The sticky point is that you are not actually uploading the photo, or the video to Facebook itself. Merely an excerpt and thumbnail.

If you run a blog and you use Facebook, drop everything you’re doing and go over to AddThis, sign up to use their free widget and install it. We have it here and it’s a great enabler for readers that allows readers to share with more than just Facebook. Try it on this post.

Unfortunately, there’s no retroactive immunity. Like Congress with the Patriot Act and Stimulus Bill, this thing slid through in the dead of night without so much as a peep and you’re expected to swallow the pill and be happy with it. Facebook never offered you a chance to decline the new TOS, nor did they offer to grandfather content previously uploaded. So feel free to delete stuff you never meant to give away for any constructive or nefarious purpose out there – it’s gone.

I would caution against simply abstaining from Facebook, however. It is the worlds largest social network for a reason and avoiding it will mean a significant cost to your company, brand, etc. However, be wise in how you actually share that content.
— Photo by Pshab

Update: Facebook CEO Mark Zuckerberg clarifies.

One of the questions about our new terms of use is whether Facebook can use this information forever. When a person shares something like a message with a friend, two copies of that information are created””one in the person’s sent messages box and the other in their friend’s inbox. Even if the person deactivates their account, their friend still has a copy of that message. We think this is the right way for Facebook to work, and it is consistent with how other services like email work. One of the reasons we updated our terms was to make this more clear

-snip-

We still have work to do to communicate more clearly about these issues, and our terms are one example of this. Our philosophy that people own their information and control who they share it with has remained constant. A lot of the language in our terms is overly formal and protective of the rights we need to provide this service to you. Over time we will continue to clarify our positions and make the terms simpler.

Whoops. Facebook fumbles again.

Proper Form Applies In 140 Characters or Less As Well

Twitter is often written about, often used and as often abused. Everyday, thousands of tweets fly by me at break neck speed due to the volume of people I follow. Many of these short form messages in 140 characters or less are eloquent and precise. Others constitute butchered English short form that demonstrates a lack of attention to detail.

The rule of “Say it in 140″ is critical. If you cannot convey your thought in 140 characters or less the first time, chances are your audience will miss the next tweet that continues the thought. Clearly, there are exceptions to every rule and often entire dialogues will erupt between two ore more twitter users. However, in general, a thought should be expressed clearly, concisely and entirely in a single tweet. It’s good form and it’s also good practice.

I’ve noticed that, since my adoption of Twitter in November of 2006, I have gotten much better at formulating these thoughts. Let me say, for the record, it’s hard! Very involved concepts take utmost care and effort to convey in short form.

As difficult as it is, especially when it comes down to cutting and trimming words, to not butcher the English language. Like prose, journalism or poetry, lack of attention to these details may earn the tweeter a bad reputation, and could be seen as unprofessional.

Does that mean that perfect sentence structure is required? Hardly. Shortened sentences are perfectly fine. However, choppy thoughts that are merely chopped to cram – maybe not so much.

Other areas of concern for me, as a Twitter reader, are:

  • Automatically pushed messages that simply consume an RSS feed and push tweets out into the ether. Generally, these are not well formed (being formed for a Blog post and not a tweet, and are cut off. Incomplete thought = FAIL.
  • Multiple streams of thought in a single tweet. Usually, with the intention of efficiency, someone might respond to two tweets at once. Though I suggest eliminating multiple tweets above, that rule applies to tweets around a single thought. If you have two thoughts you want to respond to, send two tweets. It’s a commodity.
  • Retweets are awesome. They are tweets from someone else that you think are valuable enough to “REtweet” to your own followers. Usually, retweets are indicated with a preceding “RT”. The area of concern here, as it applies to format, surrounds multiple retweets. Example: “RT @UTexasMcCombs: RT @statesman The House passed the $787 billion stimulus bill 246-183″. Retweets should be limited to the original poster. Everything else is simply noise and unnecessary. Plus, it removes available characterage.
  • Prolific use of “U” and other shorthand. The shortened form of “You” came from text messaging where it was more difficult to actually type a word out. Thus, we have tragic sentences like, “OMG WTF R U asking?” – Folks, we’re talking two additional characters. For the love of all that is good and right in this world, type the word out and make a statement about your intelligence.

I write this post because there is a new book coming out entitled “140 Characters: A Style Guide for the Short Form” which seeks to help people understand this concept of form and style. It’s written by veteran Twitter users @dom and @adamjackson and thus comes from actual experience. Hat tip, by the way, to Jenna Wortham who covered this over at the New York Times Bits blog.

What are some of your Twitter form suggestions?

Vetoing FeedBurner

I’ve been a fan of FeedBurner for a long time. Going all the way back to the early days at b5media when they were a good company. Then they sold out to Google, and I warned any who would listen exactly who they would become. It was denied, though (most likely in good faith), and then they went down hill. Since the Google acquisition, they have slowly ported over to Google servers and infrastructure – an enhancement that was supposed to help. I can honestly not say if it has or it hasn’t. What I do know is that they are not noticeably better.

Then, of course, they had an outage today.

I’d call that the equivalent of calling out sick on the third day of a new job.

In the next 30 days, I have decided to remove all of my content from FeedBurner. They no longer have my vote of confidence, nor do I trust their competence. It’s probably a management thing more than technical. Much of the same team is still in place as was prior to the Google acquisition. You know, when they were good.

Please ensure that, if you subscribe to this feed using a feed reader (You really should use a feed reader… it does make blog reading so much easier. Despite my clear disdain for Google in this matter, I swear by Google Reader), you are subscribed to

1
http://technosailor.com/feed

For the time, this URL redirects to FeedBurner, but it will soon not and you don’t want to lose the feed subscription.

For a very long time, we have needed a viable alternative to FeedBurner. I don’t think we need all the bling that FeedBurner offered necessarily. But we do need an alternative to FeedBurner that will take a feed, normalize it for the most feed readers, provide some insight around readership (such as number of subscribers) and an extensible framework/API for using and publishing that data.

I’d very much like to talk to anyone who is developing options around this concept.

Nuke the Nukers (and other benefits of social media to Government)

Editor’s Note: I had a chance to meet a fantastic guy recently. He has very clear and vivid, if sometimes offensive, thoughts on the web space we live in. He’s actually a little crazy, so I thought he would make a great addition to the Technosailor.com family. Lou P. Nuts has a distinguishable voice and told me, over Prairie Fires shots (which he absolutely adores – I told you he was loopy!), that he is not in this business to make friends, but that he notches his belt when he makes enemies. I hope you’ll enjoy his writings that will be featured here.

This weekend, I spent a lot of time thinking about our government and the great democracy we live in. We have a new President who is going to save the planet from our greedy selves. He single handedly will stem all sorts of ungodliness in this world with his efficient, Messiah instincts. Obama is my hero, and if he isn’t yours, you should die a bloody death for your unpatriotism.

Already, he has promised that the technology created by an innovative private sector will be a key cornerstone of his administration. Social Media rocks and the Messiah plans to use us, his willing servants, to make change come to pass.

Our next challenge is proving our worth. Rohit Bhargava, of Ogilvy, has a great post today where he implores us to pray to the Messiah that we might be found worthy of his benevolence and servitude in helping.

There are so many areas of the government that require change that we can bring, if they will listen. For instance, we should suggest that all military and paramilitary operations be run through the Digg machine. There is no group better for vetting the enemies of the state, than the Digg crowd who, without filter, dictates to all who may listen exactly what should be targetted. For instance, Digg correctly identifies WordPress, Microsoft and Christians as “Great Satans”. Clearly, we must listen.

If we want to engage in GOA, as Rohit calls it, we should crowdsource White House photography. Clearly, hundreds of thousands of dollars of taxpayer money does not need to be spent on a staff photographer when Flickr exists.

And Twitter? @BarackObama is already the most followed man on Twitter. All we need to do, as social media gurus, is ensure that he is tweeting out links to his latest initiatives.

Put the TARP 2 stimulus package on WikiPedia to ensure that the citizens have an adequate chance to offer their own markup and amendments. Representative democracy in action!

I think Rohit is spot on. The more we make government understand social media, the more the power will rest on us. I’m waiting for August Capital to fund a startup that will bring “the keys” and “the suitcase” to us. No one should dictate how nuclear weapons are used or who they should be used on.

This is a parody.

Give and It Will Come Back to You

This morning, I caught wind of a very sad story. b5media blogger Cheril Vernon lost her home and pets to a devastating fire. As we all know, pets are like family members and with the economy the way it is, this is not the time to lose everything.

Over on Twitter, my former boss, Jeremy Wright started soliciting donations for Cheril. I sent him a message suggesting he set a goal of $5000 and let’s start pounding on Twitter to get that number. At this time, the donation level is approaching $2500. Jeremy is donating an hour of his time for every $100 donation that comes in.

Between him and I, and a handful of other people, we got to work turning out the vote, so to speak. Folks like Chris Brogan, Laura “Pistachio” Fitton, Erin Kotecki Vest and others rallied behind the cause, asking their own massive followings to help out.

This is social media for social good, as the phrase has been coined. It’s about those of us in the web community rallying behind causes that are beyond our simple worlds of marketing, business and technology. It’s about affecting change, as we voted for on November 5, and serving our fellow (wo)man.

And whether you ascribe to a Christian worldview or not, it’s the Gospel of Luke 6:38:

Give, and it will be given to you. A good measure, pressed down, shaken together and running over, will be poured into your lap. For with the measure you use, it will be measured to you.

It’s doing good deeds. It’s karma. It’s investing in something bigger than yourself. It’s all these things.

We have a ways to go. Please consider donating some money to help Cheril out. Go now, please.