Google+ vs. Facebook: Mark Zuckerberg’s Reaction

Alright, so I watched this video about 10 times now and I know I'm gonna be watching this one tomorrow and in the future. Hahaha!

This one really makes me laugh. Well I know some of you might not find it funny but this one is really hilarious for me! I mean, I was like ROFL! This is about MySpace, Facebook, and Google+.

We all know the competition they had or they're having. The actors are really good.

Real Tom, Fake Tom :))

Fake Zuck, Real Zuck.

The movie clip was made by the Rooster Teeth. Thanks to them for making my day. :))

Here are some of my favorite lines on that video:

------

Zuck: Listen, we're friends right?
Guy: Sure yeah, we're on the same, circle of friends.

------

Zuck: Do I know you from somewhere?
Tom: Let me give you a hint.

------

Tom: I'm sorry I didn't get your name
Zuck: It's not important, listen, I have to go.

------

Tom: I'm not gonna hurt you, you know why Zuckerberg? I don't have to.

------

There's a lot more. Well, to understand those lines more, just watch it:

The real Tom Anderson had his personal comment on this video:

"G+ / FB / MySpace Parody :-) Takes a while to get goin' :) Sorta a video version of the comic I shared a few days ago.

Update: Some people reacted to this post by suggesting I'm eager to see Zuckerberg / Facebook go down. You're not reading my posts at all if you think that. As I've started a few times, Mark has always been a gentleman to me, and I admire what he's done, and am looking forward to what he will do.

The competition between G+, Twitter, and Facebook will make all three companies better. Who wins? Us, the users. Did Facebook even have a "status update" before Twitter? FB grew and became better because of that competition.

And as for me, my ownership of MySpace was sold in the initial 2005 sale, not in the recent fire sale (see the previous post). From my perspective, I'm grateful and feel lucky both for the money I made and the long run MySpace did have (I left in early 2009)."

He said that on his Google+ account. Yes, he posted it in his personal G+ account. I admire Tom for being really cool, he has such a great sense of humor. He's a good sport. Tom, "Invented Friends" should be one of your bragging rights in your Google Plus account!

1st TIP Student Congress with the Alumni – 2011

Technological Institute of the Philippines Student Congress

 
In line with this, we would like to invite you to be the guest/ resource speaker of your department to give a 20-minute talk about the nature of your work, the company you are connected with and your experiences from the time you graduated up to your present position. You may opt to use a PowerPoint presentation in your discussion."
 
I felt happy when I received this invitation. It will enable me to share something that could be useful or helpful to our college students. But at the same time, I felt surprised. I thought "What? I'm almost like a fresh graduate! (I graduated college on April 2010)". Anyway, I still want to thank my former professors who qualified me to give a talk in this special event.
 
My talk that day went something like this...
 
Good afternoon everyone.
 
I wanna thank the Office of Student Affairs and Alumni & Placement Office for inviting me here to see and speak to you guys. I hope everyone is having a great day so far.
 
Okay, so let's get in, I have a date today. Just kidding. In my short talk with you, I wanna tell you about the nature of my job, the company I am connected with and my experiences in it and then go back to my college life here in this institute.
 
I wanna tell you first about the nature of my job. Currently I'm a Junior Software Developer, which means, I'm a member  of a team who develops software products. This also refer to the activity of computer programming, which is the process of writing and maintaining the source code. But in a broader sense, it includes all that is involved between the conception of the desired software through to the final manifestation of the software, ideally planned and structured process. (Yes, the definition comes from Wikipedia, but I must say that this is exactly what I do right now. I memorized it and explained it more to the students. Haha!). And the company I'm connected with is an IT Solutions Corporation... (Then I presented slides about our company)
 
I feel glad everyday with my job, because, this is the job that I really love doing. This is the job where I can express myself, use my core skills and enjoy a good company (My co workers are really cool!). This is my career.
 
Let's define "Career" - It is an individual's work and life roles over their life span. A person is required to have some level of skill or training. This means that having a career is a serious matter. You have to work on it over your life span. A skill or training is truly required, and these things should be hone while you are here in our college. You have to use all our resources here. We have lots of IT related books in the library, we have free Internet, etc. You have all the advantage and all you have to do is to use them wisely. Do not waste you time for you cannot bring back your time here.
 
Stressful times... but with good news! Yes, sometimes (or most of the times for some people), my job is stressful. In my case, I am stressed when I have to talk to the client. To tell you the truth I don't like talking to clients, all I want is to do programming with a team.  Sometimes, the client and I have misunderstandings because of some factors for example, they are not that literate yet with our software or they are not our direct contact personnel with the project we are working with. The good news is, as time goes by, I learn lots of things about communication and business (This is your advantage if you want your own business someday!).
 
Another is when you are assigned to a module or project where you have no idea how to code them because you haven't done it before and you are not sure if you can do it. I must advice you to believe in yourself. Besides, we have our best-friend Google, Stack Overflow and our Senior Software Developers. Do not quit and never give up easily.
 
Happy times. Yes!
  • Software Development. This is what I love doing. I help the team to design or engineer software applications.
  • Bonding with Co-Workers. We share some common interests. For example, they love music. I love music. I love reading, they love reading too. Eating, swimming, etc.
  • Flexible time in. I can go to the office anytime between 8 am and 10 am. (Well, this depends to your company policy, luckily, we have this one!)
  • Acquire new knowledge. I love learning new things.
  • Cool bosses. I feel like my superiors are also my friends. Even at stressful times, it doesn't matter. We still do some jokes that makes us smile and chill. We laugh at problems while enjoying the process of getting solutions. At the end, we are able to solve the problems together.
  • Makes me a better person everyday. I do my job with passion. It makes me fee fulfilled everyday.
  • Help support my family. Yes, I can now give something for my family. Unlike before, all I can give are lots of moral support. But now, I can do financial support.
  • Becoming more thankful to God, thus being closer to God. I believe that without Him, we are nothing.
I hope I was able to give you a picture of my professional life now. As I've said, we're going back to my college life here.
 
Tips for you students. I wanna give you a quote. 
 
"For changes to be of any true value, they've got to be lasting and consistent" - Anthony Robbins
 
Many youth today said that they want to change for the better. We can say that we give our efforts to change. But the question is, is it lasting and consistent? Think about it.
 
Plan. I have two simple rules of planning:
  1. All important or difficult decisions must be made on paper. If you're just gonna think about it, nothing will happen. It will just create an infinite loop inside your big head.
  2. Be clear about WHAT you really want (Objective) and WHY you want it (Reason), and HOW you will get it (Action Plan). We also call it the OPA step (Objective - Reason - Action Plan).
Prevent Distractions. Most people fall in life because they major in minor things. Please note that we work with computers, the Internet, gadgets, etc. which gives us lots of entertainment. They are not bad. They just got to be controlled, or else, they will be a distraction which will make it difficult for us to achieve our goals.
 
Be Thankful.

 

The healthiest of all is from roids - steroids online - Zig Ziglar. I believe this one too. Gratitude makes us feel humble and well loved.

 
Don't blame. Instead of complaining. Start working, so you can achieve more, do more and have more free time. Isn't it great? Free Time? haha!
 
Befriend Failure. "Failure is a detour, not a dead end street" - Zig Ziglar. Most of our life long learning came from our failures. Don't be afraid to fail, it is perfectly natural. Remember that failure is an event, not a person. It would be much better if you know how to calculate risks.
 
Pray. It works! Just add... of course, your efforts. :)
 
I think that ends my short talk. I don't remember if someone reacted violently or asked a question there. Anyway, I enjoyed the event. I met new friends, most are former students too, ahead of my batch, who are also invited to give a short talk. The event ended with a dinner with the school officials.
Thanks for reading!

 

Update: I didn't get a copy of any pictures from this event. I didn't have my own camera and I have a low-tech phone that time. All I got is this page from a TIP magazine. Good thing I found one.

Yeah, I was the one pointed by the red arrow. By the way, I was invited again to the 4th TIP Student Congress with the Alumni - 2014.

Firefox Is Running Very Slow!

I was into a situation where I have no other choice but to use the Firefox web browser for blogging. I have another important Google account opened in Chrome.

I was wondering why this super fast Firefox is running too slow in my computer. Then I found out that it is because of my slow performing add-ons. Some add-ons can even slow Firefox to a crawl and make it difficult to use for regular web browsing.

According to Firefox, here are the top add-ons that can make your web browsing with Firefox slow to crawl.

Firefox Is Running Very Slow!
Click to enlarge.

Then suddenly, I realized why my Firefox is very slow. I'm using Firebug, the number one add on (as of this posting) that can make Firefox performance thumbs down. So, what I did is I disabled my Firebug and all went to normal. You can check out this instruction on how to disable a plugin or extension in Firefox. Firefox is now running fast again. Firefox performance is great. :)

A Happy Developer, Android + CakePHP + jQuery

Hi there! Well, I don't have much posts few weeks ago since I'm kinda busy working on a project. I got good news and not-so-bad news, haha! This past few weeks, I've been working on an Android application which makes me so happy (though at first, kinda stressed, since I'm a beginner on this). Yes, it has been my dream to be a Java programmer since college. I can't believe that now, one of my dreams is coming true (Since Android is Java based).

A Happy Developer, Android + CakePHP + jQuery
There's more :)

I can say that now, I'm comfortable with developing an Android application. It is total object oriented, powerful, has lots of possibilities, useful, extensible, and almost anything you can think of. It can be integrated with other technologies like Web App Development (which is also what I'm working on now). Most of all, it is continuously developed by increasing hundreds of thousands of other developers around the world (I'm happy and grateful to be one of them). Another great thing is that, there are over 400,000 Android devices were activated everyday.I'm gonna tell you something about my current project. The Android application is run in a tablet device (I have Samsung Galaxy Tab, Android Froyo for now. But I'm delighted by it.). The Android App I'm doing is some sort of a content management system that syncs data from an encrypted XML stream. Those data include images, slideshows, flash games, videos, audios, websites, survey forms, sales data, etc. The XML stream is of course generated dynamically by a Web based content management system which is developed with some web development technologies like HTML5CakePHP and jQuery. Sounds simple right? But like any other software project, it will be from simple to complex. We will discover more about the client's business logic. The user of this application is in the retail industry. The Android App will be installed in tablet devices in different parts of the country (where they have market places).Here's the not-so-bad news: The web based CMS is developed by other programmer. And so now, it is assigned to be developed by me. So I got a lot of work to do. I thought I will concentrate on Android development, but it seemed like web app development always haunt me haha! Anyway the good news there is that, I'll have a lot of knowledge to share with you guys and of course the open-sourcecommunity.As of now, I'm the only programmer of this project. Good thing is I'm with a Systems Analyst who helps a lot. But the team will expand sooner or later. :)Just a piece of advice, to those who want to learn language frameworks such as CakePHP (for PHP) and jQuery (for JavaScript), you have to learn first its basic or native language: PHP and JavaScript. This will give you great development advantage. :)And oh, I got a late special announcement (or at-least for me), as you've noticed, you accessed this blog in a top level domain: https://www.codeofaninja.com which is before http://www.codeofaninja.blogspot.com. It's my dream to own a ".com" website before, and now, it just came true last June 2, 2011. I registered https://www.codeofaninja.com at Go Daddy.I'm also so happy to see that there are increasing number of traffic on this site (based on this blog's google analytics account). It makes my goal to help and share knowledge to other people in different parts of the world.

How To Parse RSS Feeds with MagpieRSS

Using MagpieRSS is one of the simplest ways to parse RSS feeds. One use of this is when you want to display updated contents from a site to your website. In this post, we are going to get the Top Stories news of "The Worldwide Leader in News", the CNN. We will just use one of their RSS feed links: http://rss.cnn.com/rss/cnn_topstories.rss. CNN provides all of their RSS feeds links, you can find them in this link http://edition.cnn.com/services/rss/. We just have to agree to their terms of use listed on that page.

How To Parse RSS Feeds with MagpieRSS
Want some feeds?

Step 1: Download MagpieRSS on sourceforge (I got magpierss-0.72) and place it in your web directory. I got the following files:



Step 2: Coding.

index.php

<html>
    <head>
        <title>Parsing RSS feeds with MagPie RSS</title>
    </head>
<body>
<?php

require_once('rss_fetch.inc');

//Specify the URL of RSS feeds
$rss = fetch_rss("http://rss.cnn.com/rss/cnn_topstories.rss");

foreach ( $rss->items as $item ) { //loop through the $rss array which contains the feeds
    echo "<div style='margin: 5px 0 5px 0;'>";
    echo "<div style='font-weight: bold;'>{$item['title']}</div>";
    echo "<div style=''>{$item['description']}</div>";
    echo "</div>";
}
?>
</body>
</html>

If we will take a look at http://rss.cnn.com/rss/cnn_topstories.rss, we have:

On our index.php code, title and description inside $item variable are from the XML tags of RSS feed. If you will view-source http://rss.cnn.com/rss/cnn_topstories.rss, you will see:

This is an item in our RSS feed. The values between title and description tags are echoed in our program. You can also echo the link, pubDate, etc. since those tags are there too.
Step 3: Run the program. The ouput of our code would be something like:

You may want to:

That's it! Now you can embed some contents from an RSS feeds to your website!

Social Network Integration

Social Network Integration
Familiar huh?

Facebook? Twitter? You are probably very familiar or even addicted to them. To date, it is almost impossible for people who use the internet to miss an account with them. They are free, easy to use and lets you connect with your friends or people no matter where on earth they are. Wikipedia defines social networking service as “…an online service, platform, or site that focuses on building and reflecting of social networks or social relations among people, e.g., who share interests and/or activities”. There are so many social networking service sites out there and two of the most popular includes facebook and twitter.

Most internet users are visiting their facebook account everyday. It just shows that the world has gone social. When you log in to your facebook account, you can check and see how many of your friends are online. Large number of people are getting online every day and make it as essential part of their life. They connect with each other, playing games, sharing activities, interests, etc. with their network of friends. They join conversations and discover contents that can be of meaningful value for them. The social network is active and authentic since it is made up of real people - and these people can be the consumers for your business.
With that said, we can conclude that it is beneficial for businesses to integrate social networks, such as facebook and twitter, to their web presence or websites. Once a user like, recommend or tweet your website, it will be shared to their network of friends and this personal recommendation is a powerful kind of endorsement. Your website will have more opportunity to be visited that offers your products and/or services to be known to customers.
Maybe you are aware of how many people can find your facebook page or tweets? According to Wikipedia, facebook now has over 600 million active users all over the world while twitter has 200 million (as of January 2011). It’s now a privilege for your business to join these social networking sites to keep in touch of your customers and get the edge by integrating it to your website.

I have the following tutorials related to Social Network Integration:

Online Code Highlighter Without JavaScript

Hi guys, I just want to share with you these two online code highlighters. On these sites, you can make the codes in your programming blog nicer.

We don't need JavaScript this time unlike the Syntax Highlighter and Prettify where you have to include lots of other CSS and JavaScripts.

In these two sites, we just have to enter our code > Hit a button > and then, you have your codes highlighted. And then you may now copy the highlighted code and paste it to your blog. You can also copy its HTML code if you want.

So here they are, (also serves as a demo) we have:

http://tohtml.com/ and
http://quickhighlighter.com/

But of those two, I prefer http://tohtml.com/

How To Center Popup Window With JavaScript

There was a time when I wanted the contact form of a website to be popped up in another window. I was able to pop up the window but it was not centered on the screen.

For me, it looks better when the window popup is at the center of your screen. So I found a way to do that. Today we're going to:

1. Create a file with a button and trigger the centered popup window (index.php)

2. Create a file that will serve as the popup window (contact_form.php)

<html>
   <head>
      <title>How To Center Screen Pop Up Window With JavaScript</title>
   </head>
<body>


<h3>Please click the button below</h3>


<!-- We will use a button to trigger the pop up window -->
<input type='button' value='Contact Us' onclick="showcontactusform()" align="center" /> 


<script type='text/javascript'>
   function showcontactusform() {
      //set the width and height of the 
      //pop up window in pixels
      var width = 500;
      var height = 500;
  
      //Get the TOP coordinate by
      //getting the 50% of the screen height minus
      //the 50% of the pop up window height
      var top = parseInt((screen.availHeight/2) - (height/2));
  
      //Get the LEFT coordinate by
      //getting the 50% of the screen width minus
      //the 50% of the pop up window width
      var left = parseInt((screen.availWidth/2) - (width/2));
  
      //Open the window with the 
      //file to show on the pop up window
      //title of the pop up
      //and other parameter where we will use the
      //values of the variables above
      window.open('contact_form.php', 
            "Contact The Code Ninja", 
            "menubar=no,resizable=no,width=500,height=500,scrollbars=yes,left="  
            + left + ",top=" + top + ",screenX=" + left + ",screenY=" + top);    
      }
</script>  
</body>
</html>

That's it! :)