03.30.10

Another WordPress Issue – The Blank Admin Page

Oh man. Can I say right now that I feel stupid? So I had this blank admin page problem in wordpress. I tried everything that everyone had recommended on the wordpress forums. I deactivated all plugins, scrubbed mysql clean, reinstalled MAMP (thats right, reinstalled) and changed the name of the theme I was working on.

So what was the solution? Well after three days of working on it, I decided I would just remove my functions.php from the theme directory. Bamn! It started working again. So I took a look at the file and what do you know? Two line breaks at the end. It was two little line breaks that caused all the problem.

03.23.10

This is Steve

This is Steve. He like balloons, video games and choppers. He rides like a maniac. He rocks. If you see Steve, give him a hug. He’ll appreciate it.

| Posted in general | No Comments »
03.20.10

jQuery Headaches with WordPress

So everything with jquery and wordpress works smoothly if you’re using plugins downloaded from the codex. Genreally these plugins use their own version of jquery min and get along quite well. But what happens if you want to put a custom script in your theme and NOT use a plugin? It can be quite frustrating.

So here is a use case scenario. I wanted to have a sliding featured content section on a landing page for this theme I was building. I had it working but wanted to use the google version of jquery min to minimize load on my server.  I chose easySlider because I have used it before and its very easy to use.  Here is how I got it working in my theme.

First step, in your functions.php deregister wordpress jquery and register google jquery:

<?php
function my_init_method() {

wp_deregister_script( ‘jquery’ );
wp_register_script(   ‘jquery’
, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js’);
}    

add_action(‘init’, ‘my_init_method’);
?>

Second step, use the wp_ enqueue_script in header.php:

<?php wp_enqueue_script(‘easySlider’, get_bloginfo(‘stylesheet_directory’) . ‘/js/easySlider1.7.js’, array(‘jquery’), true); ?>

I put the easySlider js in a js folder inside of my theme directory.  I use the stylesheet_directory location though you can also use the template_directory location.

Thirdly, add in your custom strings:

This is where I got tripped up.  I kept trying to use the examples and it wasnt working.  I was getting an error that said “$ is not a valid function”.  I scoured the net for a solution and came across a useful tip from devoracles:

The jQuery team was smart enough to realize that there will be conflicts between frameworks, especially the $ will cause massive headaches since it’s the basic of each framework. $ is the shortcut for the word “jQuery”

That was the missing key!  I just had to change the function reference in the custom array from “$” to “jQuery”.  Here is an example of my code:

<script type=”text/javascript”>
jQuery(document).ready(function(){    
jQuery(“#slider”).easySlider({
auto: true,
continuous: true,
speed: 400,
pause: 9000,
numeric: true,
numericId: ‘controls’
});
});
</script>

After that, it worked! And I had a new method for adding custom scripts to my wordpress themes!

I hope this helps. I am not the best at javascript, but I know enough to get myself in trouble. Feel free to leave me comments with ideas and corrections.

| Posted in general | No Comments »
02.13.10

Larouchentines Party

Headed to Spikes in Rosemead for the Douche Larouche MC party. Black Tibetians rocked the stage. Those Douches know how to throw a great party.

| Posted in news | No Comments »
02.12.10

Colorvision and Im with CoCo

Headed down to Long Beach today to pick up the Pandaclaw cards from Color Vision Printing. Leo tol me all about this Im with Coco campaign one his friend started a la facebook. They were working hard, pushing out shirts and posters like crazy. I am a huge fan of Conan and thought it was great that there is a whole movement behind his latest late night coup.

By the way, Leo rocked the pandaclaw cards quick and they look good. Have to stock up before J and I head to Magic next week.

| Posted in news | No Comments »
02.4.10

Bob and his Big Boy

Met up with my good buddy John Sagredo who I never get to see sinc he moved to Phoenix. We headed over to the new Bobs Big Boy in Downey, that is actually a renovation of the old Johnny’s Broiler. It was Decked out in 50′s diner fashion and stayed true to the old school decor. It was good seeing John and talking web with him. Feels like old times.

| Posted in food, opinion | No Comments »
02.2.10

Grand National Roadster Show 2010

Headed to the GNR on Sunday to catch a glimpse of Chris Richardson’s from LA Speed Shop and to check out some amazing cars. I was chilling with photobyjj most of the time, checking put the scene. I got to meet a lot of cool people and hope to see them again. Got into a crazy love triangle with Dean and Matt from DicE mag and took a closeup of the sweet silver inlay work that James did on Chris’ chopper. Good experience overall.

| Posted in news, opinion | No Comments »
01.15.10

Why Americans should care more about Haiti

The recent disaster in Haiti has prompted me to learn more about the island country. It seems overly apparent that the media is trying to bolster support for Haiti by texting campaigns (Im sure the cell providers love this) and regular donations to the salvation army. Throwing money at a problem sometimes does help bring about solutions, and in this case it might generate enough public and private funds to help the nation rebuild.

But why should Americans care about Haiti? Well, here is a nicely put sentence from Wikipedia that says it all: “It was the first independent nation in Latin America, the first post-colonial independent black-led nation in the world, and the only nation whose independence was gained as part of a successful slave rebellion”. The history and rise of this island nation from the depths of slavery make it a prime example of the triumphs achieved through democracy and a positive outcome in the fight for independence.

Because Haiti came to rise independently, it has sustained much of its cultural heritage through the years. Their culture serves as a look into the history of European exploration / exploitation, the forced migration of Africans and the strong influence of other Latin American customs that have spread throughout the world.

However, if we really want to save Haitians, we cannot simply through money at the problem, or worse yet, let the IMF come in and restructure the nation. There needs to be some serious thought put into how we help rebuild this country, and the UN needs to step up and guide this mission. The US has a lot on their plate right now, and can offer much in terms of food and finance, but cannot have all its attention diverted from other pressing issues.

How I wish we could just end those wars against terror to help battle real terror when it strikes, like a natural disaster that kills over 50,000 people and leaves hundreds of thousands stranded without shelter, food and water. America definitely needs to get its priorities straight if we want to return to being a beacon of hope to the rest of the world.

Tags:
| Posted in news, opinion | No Comments »
01.15.10

Boxee Owns Windows Media Center

Took a quick look at Boxee.tv today. Wow, it is more than amazing. I have a dedicated machine just to my TV that doesnt get as much use as I would like. I have been using media center quite extensively to watch instant movies via Netflix and to watch DVDs I’ve bought and backed up onto my PC. But now that I have seen what Boxee has to offer, its going to be a an easy switch to Boxee. The integration with social nets (and netflix) is a smart feature for TV based PCs. It basically does everything that media center can do, but runs on any platform. So if I wanted to plug my laptop into my tv, it wouldn’t be hard to set it up for quick movie watching or for a family photo slideshow.

When you get a chance, check out Boxee.tv.

Here’s a quick Howcast video on how to get started with Boxee.

01.10.10

Why white people don’t like to say Latino

So I was listening to NPR and there was an interview with a sports columnist who was talking about Mark Sanchez, the quarterback for the Jets. He said something to the effect that he is good for football because he is a “Latino”. It seemed hard for him to say the word and I was surprised he used that term instead of “Hispanic” which is widely misused by many people. But the next sentence he came back and said how Mr Sanchez would be a great role model for “Hispanics”. I found it odd that he used one term to describe the man himself and then another to describe an ethnic group as a whole.

So why didn’t he just say “Latinos”? Well I have a theory that white people in general don’t know what to say when referring to Latinos. When I was young, I was taught that Hispanic was the correct term to use when referring to anyone coming from central or south america. However, after taking a Chicano studies class at UCSB I learned that it should only be Hispanic if it’s someone from Spain. And even then it is an antiquated term.

I think white people (or Caucasians) just don’t know what to call Latinos and so they just revert back to what they learned as kids. I catch myself saying it from time to time and always correct myself.

| Posted in opinion | No Comments »