Apartment on Fire with Obama

I live in an apartment building in London. The flat is dirty and disheveled. There are anonymous roommates and my room is full of expensive electronics and equipment. The back wall of my room has a window that reveals a view of the internal wall. We are moving out today. Everyone is packing up their stuff and I go into my room to pack my belongings. In the window that views into the wall, there is a fire. I start to panic and call 911. The line is busy. I call back and get an operator and tell her that my apartment is on fire, send the fire department. “My fucking apartment is on fire! Help! Send help!” The operator is uninterested and annoyed that a Yankee doodle is bothering her.

I go outside and cross the street to wait for the fire department and see president Obama on the sidewalk.”My apartment is on fire and the 911 operator doesn’t care. I’m not sure the fire department is going to come,” I say.

He looks into my eyes and earnestly speaks, “we must intercede in these times of crisis.”

WP SQL Categories

Here is how to get WordPress Post categories via straight SQL query:

 

SELECT 
	wp_term_taxonomy.description, 
	wp_terms.term_id, 
	wp_terms.name, 
	wp_terms.slug
FROM wp_term_taxonomy
	JOIN wp_terms ON ( wp_term_taxonomy.term_id = wp_terms.term_id )
WHERE wp_term_taxonomy.taxonomy = 'category'

Getting Category Info in WP Theme

In WordPress, there isn’t a simple template tag to get the category slug or description if you’re making a category.php template. Here is a little work-around:

$cat = get_query_var ( 'cat' );
$catslug = get_category ( $cat )->slug;
$catdesc = get_category ( $cat )->description;

 

AS3 Naming and Retrieving Elements Dynamically

Recently ran across this problem in Actionscript 3 with dynamically naming and retrieving child elements. Created a loop to name sprites and add using the name property and addChild method:

for ( var i:int = 1;  i <= 3;  i++ ) {
	var bkgd:Sprite = new Sprite ();
	bkgd.name = "bkgd" +i;
	addChild ( bkgd );
}

 

Now these sprites are accessible via getChildByName and are retrieved as DisplayObject by default. But when retrieved as DisplayObject, you can not add children via addChild method. The trick is to cast the DisplayObject as a Sprite:

var addBkgd:Sprite = Sprite ( this.getChildByName( "bkgd" +layerNum ) );
addBkgd.addChild ( layerSprite );

 

hexbkgd

My Phone Speaks French

Recently got the myTouch G3 phone with Android OS by Google. It is a lot of fun. I got it to speak French. There is an application that you can get from the Market called Rings Extended. It is free to download and install. Rings Extended allows you to assign ringtones from all of the audio files on the phone, not just the default Android ringtones.

Next, I went to Yahoo! Babel Fish since I can’t actually speak French myself. It traslates as best as it can from one language to another. Translate phrases like “incoming telephone call” to “appel téléphonique entrant”, etc. Copy the French phrase from Babel Fish and go over to AT&T’s speech-to-text demo page (see the links below). You can paste the text in and select to have it spoken in French by the Juliette voice and it will create a .wav audio file for you to download.

From here it gets pretty obvious… USB or Bluetooth your phone to your computer, copy the files over and then choose the ringtones for your different applications.

Now my phone sounds sexy and everyone thinks I’m super-cool when I get a call or (nerd) alert….

Links

Android OS by Google
Yahoo! Babel Fish
AT&T’s Text-to-Speech Demo

Random Disorder with Glasses

My glasses where could they be?
My glasses parted my face without me?
I search the loss of origins very high and barely low
My glasses then can allow me show
I struggle for structure here
In this simple soliloquy and prose
But where are my fucking glasses?
O hey, wait… they were on the fucking stove
Seriously, what the fuck?

God in School

Religious freedom is protected by the constitution of the United States along with freedom of speech. Anyone has the right to proclaim, discuss, or speak about their “god” in any public place in the United States. To make any certain “god” or any certain “religion” a mandatory requirement would be an oppressive infringement on the rights of others to retain their own beliefs without suffering the implied fear of conformity to the established rites of the dominant culture. Pray to your “god”, it is legal. Enforce rules to make me pray to your “god” instead of my “god”, it is not legal. Remove “god” from public school curriculum entirely and therefore remove the struggle of dominance and intimidation. It clears the way for learning, as school is meant to be an institution for education and not an institution for endorsing religious beliefs, dogma, or doctrine. Mandating a definition of “god” does not belong in school. Grammar and math and geology and physics and chemistry belong in school. The belief in “god” is something that is inherited through the family and traditions of each individual citizen. If a person wants their children to learn about their “god”, they should take them to their church or temple or synagogue or mosque or full moon bonfire. Send them to school to get educated about communicating and perceiving the world around them.

When my Grandmother died, I cried my fucking face off for days… and drank a lot of whiskey. I loved her more dearly than anyone and it was the greatest loss that I have suffered in my short life here on earth. When we got to the funeral, to my heartbreaking dismay, I was not allowed to grieve her death and mourn with my family. Instead I was made to suffer through a brimstone hellfire sermon and sternly told that I will burn and be tortured to suffer in hell for eternity for not being a believer in my family’s faith of choice. I was denied my emotions. I was denied being a human being. I was castigated and cast apart from life and family by that ceremony. I was infuriated and disgusted and remain so to this day. I do not believe in my family’s “god”. The personal denial that I suffered at my Grandmother’s funeral is allowed and accepted among family but that level of struggle, denial and rejection does not belong in any school or public establishment.

My own personal belief is that my family’s brand of religion is a social and psychological control mechanism to keep the congregation complacent and passive and disconnected from their true selves. It helps society to run along smoothly and keeps the humble cogs from finding their higher selves and breaking out of the machinery. Breaking out of the machinery is freedom for some and destruction for others… it’s been a lot of both for me personally. I can not deny that doctrine is a good and helpful thing for those who cannot perceive its true purpose or muster the bravery of accepting the unknown that lies beyond abandoning faith. But if you are able to see beyond the comfort of its oppression, you can find the truth. It is difficult. It is painful. It is real. It is freedom. It is my god.

Griffith Park Hike to the Summit

The view was pretty amazing so I took a quick vidy on me celly. The higher you go, the more bones and charred trees you see, the tighter the buzzards start to circle. Also, I made this hike on no sleep the night before so I was having a vision quest sort of experience at the time.


(more)