Archive for category General

Finally gave my blog a much needed face lift!

So what do you guys think? Does it look better now? It is not finished, I still need to tweak some graphics and colors but overall I’m very pleased. I started out with a new theme: Arclite by digitalnature. It has many customization options so I haven’t had to do too much tweaking of the .css files but there has been some. Since I blog so much about code, I finally stopped being lazy and got a code highlighter. I’m using: Dean’s Code Highlighter by Dean Lee. It’s very easy to use and supports a range of different code syntax such as PHP and Actionscript. One of the reasons I decided to update my look was because I have been running an older version of WordPress and it was about time to upgrade. I’m now running 2.9.1 and it looks great. I really like the new admin back office and it is so easy to use and setup.

I also created my first widgets! The ‘Interesting Links’ and ‘Interesting Images’ on the sidebar are no longer hacks done on the themes sidebar.php file. I learned how to create a plugin in WordPress and make it into a widget. Here is what one of the widgets looks like:

/*
Plugin Name: JR-Images
Plugin URI: http://www.joeyrivera.com
Description: Show my images
Version: 0.1
Author: Joey Rivera
Author URI: http://www.joeyrivera.com

  Copyright 2010  Joey Rivera  (email : joey1.rivera@gmail.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
 
function show_images()
{
        global $wpdb;
       
        $query =
                SELECT image_file, image_origin, image_thumbnail
                FROM wp_images
                ORDER BY image_id DESC
                LIMIT 6′
;
       
        $results = $wpdb->get_results($query);
       
        if(!$results)
        {
                return;
        }
        echo ‘<li class="block widget widget_images"><div class="box"> <div class="wrapleft"><div class="wrapright"><div class="tr"><div class="bl"><div class="tl"><div class="br the-content"><div class="titlewrap"><h4><span>Interesting Images</span></h4></div>’;
        echo ‘<ul class="blank">’;
        foreach($results as $row)
        {
                echo ‘<li><a href="/uploader/sample/’ . $row->image_file . ‘" title="’ . $row->image_origin . ‘" rel="lightbox"><img src="/uploader/sample/’ . $row-/>image_thumbnail . ‘" /></a></li>’, "\n";
        }
        echo ‘</ul>’;
        echo ‘</div></div></div></div></div></div> </div></li>’;
}
 
function register_images()
{
        register_sidebar_widget("JR-Images", "show_images");    
}
 
add_action("plugins_loaded", "register_images");

I had to go back to all my old posts and make updates. If you find any issues anywhere, please let me know so I can fix it asap. I’ve found instances in code where there should be two && and instead the code blocks shows &amp;&amp;. I’m currently trying to figure out why my preview button doesn’t work, hopefully I’ll figure that out soon so I can move on to changing some colors around and finally updating my ‘About Me’ page. I hope to have some content in that page by the end of this weekend. Other than that, I hope you all enjoy the new look and am looking forward to hearing some feedback!

Tags:

Sony’s Motion Controller for PS3

Soon after Microsoft showed off project Natal, Sony introduced their own motion controllers they’ve been working on. Both seem very cool and just from watching these videos it seems to me that the Microsoft technology is more sophisticated but the Sony controllers would be more fun to play with. And like they said in the video below, sometimes it feel more natural to push a button.

 

Tags: , ,

Microsoft Project Natal for Xbox 360 looks neat

I must say I’m very impressed with what I’m seeing. Microsoft announced Project Natal at E3 and it’s a control/camera that detects sound and motion for the Xbox 360 so the user can play a game without ever holding a remote control. It’s easier to understand through these videos:

And here is a bit more info:
http://e3.gamespot.com/story/6210641/microsofts-project-natal-3d-camera-system

I personally don’t own a console but am very eager to try this one out.

Tags: , ,

EQ vs IQ: Emotional Intelligence (also know an EI or EQ)

Ever talked to a neighbor that won’t stop talking no matter how many hints you give that you want to leave? Are you giving the right clues? Ever talked to people that don’t care what you have to say and only want to tell you about themselves? Ever talked to someone at work that snapped at you for no reason? Did you notice them before to see if they seemed stressed or were having a bad day?

If you aren’t familiar with Emotional Intelligence I recommend you read some more about it. I recently learned about EQ at a work seminar and thought it’s a great concept that others should know about as well. Here’s are a couple resources:

http://en.wikipedia.org/wiki/Emotional_intelligencehttp://www.time.com/time/classroom/psych/unit5_article1.html

If you like psychology you will probably enjoying learning more about this.

Taken from the wiki page:

“The model introduced by Daniel Goleman [16] focuses on EI as a wide array of competencies and skills that drive leadership performance. Goleman’s model outlines four main EI constructs:[1]

Self-awareness — the ability to read one’s emotions and recognize their impact while using gut feelings to guide decisions.

Self-management — involves controlling one’s emotions and impulses and adapting to changing circumstances.

Social awareness — the ability to sense, understand, and react to others’ emotions while comprehending social networks.

Relationship management — the ability to inspire, influence, and develop others while managing conflict.”

Some of you may find some of this common sense but others may not. Why is this important? Because even the smartest person in the world (IQ) will have problems succeeding if he/she can’t manage their emotions or the way they interact and are perceived by others (EQ). I think the more understanding a person has of EQ, the easier life becomes. There are various situations that can be avoided or easily overcome just by paying attention causing less unnecessary stress.

Here is an example of where I think I use EQ relating to technology. When I go to speak to a person about say coding, I have to ask myself – “Do I know this person and if so, how tech savy are they?”. Based on that answer, I’ll adjust the way I speak to this person and use wording and or acronyms that I think this person would understand. If I don’t know this person and don’t know enough of their background to guesstimate, I’ll start talking to this person in a very general level (not too low to insult them if they are techy but not too detailed to lose them from the start if they aren’t) and based on the way this person interacts with me, see if I can go more tech details or if I need to get more generic and use none-tech related examples.

From then I also try to pay attention to see if this is a person that really truelly understands what I’m saying or is just knoding since many, including myself, are guilty to this. And finally based on the interaction or lack of I know if it’s time to change the subject or if we can keep going. All that just to have a conversation…

Have any similar experiences to share? Please do! We can all learn from each other.

Tags: , ,

How to recognize a good programmer

I just found this link on twitter and it’s a really good read. The author mentions a few points on how to identify a good programmer and I agree with all of them. Check it out:

http://www.inter-sections.net/2007/11/13/how-to-recognise-a-good-programmer/

Tags: ,

Atlanta PHP User Group – 11/06/2008

So I attended my first Atlanta PHP user group thanks to Moses nagging me about going :p. I’m glad I went, I had a great time. I really enjoyed being there listening and even sharing a little. The things I took with me that I’m going to mention are:

Atlanta Startup Weekend
During the meeting I found out about this really neat event. The objective of the Atlanta Startup Weekend is to get a bunch of people together, divide them into groups (developers, marketing people, business people, etc) and in one weekend finalize a product from a concept. Tickets are already sold out so I’ll have to try for next year. I’m sure I could learn a lot.

PHP Wiki
I didn’t know about this page: http://wiki.php.net/. You can get lots of neat information from the PHP group. The rfc (request for comments) section is also very informative. You can see what requests have been made, which request are going to be implemented and which have already been implemented. It’s a good way to stay ahead of the curve since you would know what’s coming out before it’s out.

REST
Don’t quote me on any of this, this is just bits and pieces that I think I gathered from listening to others talk. If I understand correctly, REST is a standard for creating RESTful url/url/web services that are efficient and scalable… maybe? I heard REST mentioned a lot during the <head> conference a couple weekends ago and I heard it mentioned a few times last night during this meeting. So, now I need to go do some more research and figure out what this REST thing is all about. Seems like it’s something worth knowing about and maybe even following? If you have any info or resources you can recommend please do.

Tags: , , , , ,

<head> conference 2008

So I attended the <head> conference a couple weekends ago and I’m glad I did.  There were a ton of knowledgeable speakers covering many interesting topics. The following are the sessions I enjoyed the most so far:

Read the rest of this entry »

Tags: ,

Finally!

I’ve been resisting for the longest time to start blogging but with the help of my friend and co-worker Moses I’ve decided it’s about time. My thoughts at the time are to blog about my interests such as coding (mainly PHP and Flash), current projects, and every once in a while about my car. I think this will be a good way to organize myself (having a centralized location for my ideas, thoughts, projects) as well as a good way to get to know more people out there. Help me via comments on what you would like to see more or less about. Would you like things more or less technical etc. Thanks for reading!