SMASH CAEK

CAEK

Yesterday was the first birthday of my namesake. He’s getting so big, so quickly. I love my babies. It was a fun day even if he didn’t smash his face into his cake. I plan on uploading videos to youtube of him attempting unwrapping presents and eating cake.

Every week brings something new. He’s learning to walk, learning to talk, and getting the hang of everything. It’s still such a shock to me. The difference between having a son and a daughter is just so striking. My daughter becomes more emotionally dependent as she gets older. My son is very emotionally dependent now. He gives hugs and cuddles readily, whereas my daughter was very independent as a baby. He’ll become more independent and less emotionally attached as he gets older. I’m going to have to cherish this time. It’s going to be short lived.

[]

Done

I’m just throwing out finality. I need closure. So, for closure, I’m going to write this.

I’m done. I don’t need people to judge me and the way I live. I don’t need criticism. I don’t need bullshit about what I do, say, or things I think or feel. If you have an opinion- great. Keep it to yourself. I’m not a hoarder. I don’t keep every opinion everyone has ever had of me. They’re about as useful as assholes. Everyone has one, I don’t need to see it.

[]

Religion and Me

I have two problems. I have a religious person trying to tell me that I don’t live by a book I don’t care about. I have a non-religious person trying to criticize me for living by a book they don’t live by. I also have a serious anger problem that I likely learned from the non-religious person. Whenever I’m hurt by people I become completely unhinged. I’ve been like this as long as I can remember. I never get physical. I just say so many hurtful, regrettable things. I know my mother regrets things she says because I regret things I say. I’m always sorry for what I say. Always. I know my mother feels bad.

[]

Bleh

Finally bought a Moleskine to continue recording thoughts and feelings in. Journaling is pretty important. Whether you’re known to be insane or are a stable human being, it’s important to record things. What we say for future generations to consume is both important and ephemeral. I believe we can impact decisions made tomorrow with what we feel today.

In any case, I’m going to take a more active role in vomiting profusely into the ether what I feel the ether is missing. I’m going to write more about things that happen in my daily life and about things in which I find a great deal of passion for.

[]

Truth and Honesty

Five missed calls from my grandmother. Five. Someone must have died. No one ever has anything that urgent to call me about unless something at my employer broke and I need to drive in to fix it.

I return her call and I’m asked if I did my taxes yet. Of course. I’ve bought a good many things I’ve needed. It’s been a rough year. We’ve even spoiled ourselves for going without for so long. We have deserved it, having struggled through. Unlike my snake of an ex who has her rent paid in full with child support. I’ve had to put blood, sweat, and tears into everything I’ve earned. No free rides. I pay my dues, even if it’s just shoe money for a section 8 recipient.

[]

Tweet Scraper in Python

Code first, talk later.

#!/usr/bin/env python
# encoding: utf-8
 
import tweepy #https://github.com/tweepy/tweepy
import unicodecsv
import sys
 
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
access_secret = ""
 
 
def get_all_tweets(screen_name):
	#Twitter only allows access to a users most recent 3240 tweets with this method
	
	#authorize twitter, initialize tweepy
	auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
	auth.set_access_token(access_key, access_secret)
	api = tweepy.API(auth)
	
	#initialize a list to hold all the tweepy Tweets
	alltweets = []	
	
	#make initial request for most recent tweets (200 is the maximum allowed count)
	new_tweets = api.user_timeline(screen_name = screen_name,count=200)
	
	#save most recent tweets
	alltweets.extend(new_tweets)
	
	#save the id of the oldest tweet less one
	oldest = alltweets[-1].id - 1
	
	#keep grabbing tweets until there are no tweets left to grab
	while len(new_tweets) > 0:
		print "getting tweets before %s" % (oldest)
		
		#all subsiquent requests use the max_id param to prevent duplicates
		new_tweets = api.user_timeline(screen_name = screen_name,count=200,max_id=oldest)
		
		#save most recent tweets
		alltweets.extend(new_tweets)
		
		#update the id of the oldest tweet less one
		oldest = alltweets[-1].id - 1
		
		print "...%s tweets downloaded so far" % (len(alltweets))
	
	#transform the tweepy tweets into a 2D array that will populate the csv	
	outtweets = [[tweet.id_str, tweet.created_at, tweet.text.encode('utf-8'), tweet.geo, tweet.source] for tweet in alltweets]
	
	#write the csv	
	with open('%s_tweets.csv' % screen_name, 'wb') as f:
		writer = unicodecsv.writer(f)
		writer.writerow(["id","created_at","text","geo","source"])
		writer.writerows(outtweets)
	
	pass
 
 
if __name__ == '__main__':
	#pass in the username of the account you want to download
	get_all_tweets(sys.argv[1])

The entirety of this script doesn’t belong to me at all. My only contribution is fixing utf-8 issues. Requires tweepy and unicodecsv. Outputs tweets in a comma-delimited text file.

[]

Data Collection: SeriousMode

I’ve spent a long time trying to get together a twitter scraper. I haven’t had more than twenty minutes a day, at most, free time to spend doing it. I finally spent some time ripping apart a quick script written in python by someone else, using tweepy. It’s really damned handy. I’ve set it to grab the max allowable tweets from any given user and take data I find important, then format it for storage in a comma-separated value flat file. I spent maybe four hours dicking around with the thing to get it working as seamlessly as possible. Once the “eureka” moment hit, I only spent about twenty minutes to turn data collection on an irritating, but practical, exercise in identity concealment.

[]

Blueberries and Phil Shaltz

Twitter harbors some interesting people. Far more interesting people than most social networks such as Myspace and Facebook, perhaps in part because it’s not as popular as the aforementioned social networks. Individuals such as C1TYofFL1NT and TheLastBand1t are quite attentive to some fascinating goings-on in Flint. They’re more attentive to local politics than any other folks I’ve met.

Specifically, these two gentlemen are keen on blueberries. What does anything important have to do with blueberries? The answer probably won’t surprise you, because your gut instinct is quite correct when you assume nothing at all. That’s right, Phil Shaltz bought a billboard and had it say “I’m concerned about the blueberries.”

[]