Archive for the 'Random Stuff' Category

Helicopter deliverying A/C unit to Miami Downtown Building

Saturday, March 13th, 2010

Helicopter delivering A/C equipment
At first we thought the helicopter was there to pick somebody that had an accident, it was really cool to see that it wasn’t a person it was carrying but what looks like Air Conditioning Equipment.

See more pictures after the break
(more…)

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)

Top 10 “Why” Questions on Google

Saturday, September 26th, 2009

I often play around with keywords in Google Suggest to see what could be what most people type.

It’s very interesting and sad to see what are the top 10 “why” questions from about 148 million people that used Google as of last month.

Top 10 “Why” questions in English

Why Poems?
I guess some people are very jaded, or don’t get why do we have poems. I’d say this would be the same as “Why Music”, “Why Movies”. Sad… or maybe they’re looking for poems that ask the question “why”? I don’t get this one.

The top 3 US states asking “Why Poems” are Mississippi, Alabama and Louisiana.

why live
A lot of suicidal people looking for answers in Google, crazy shit. Let’s hope Google’s first result page is very encouraging to keep living. The first result goes to suicide.com. Again, Sad, but interesting to see that there’s a lot of people who ask themselves that question. I must be one very happy person, never crossed my mind such a thing.

The top 3 states with suicidal tendencies on Google seem to be Kentucky, Iowa and Rhode Island. Things must be hard in those places these days.

why jokes
There seems to be a bunch of “why” jokes around. The first search result takes you to a long ass list of jokes that start with the word “why”. For example:

Why is “abbreviated” such a long word?

The top 3 states in need of why jokes are currently Michigan, Indiana and Iowa.

why jason aldean
No clue who’s this dude, but let’s see why they ask why him…
First search result takes you to a YouTube Music video of a country love song. Good choice of a word, I bet there’s been lots of “Why” songs, but this one is the one kicking ass now.

The top 3 states where this question comes from are, West Virginia, Kentucky and Maine.

why is the sky blue
This is a very popular one, and Google often uses it on it’s PSAs for Google Adsense.
The answer lies in light and the atmosphere.

The top 3 states wondering about the color of the sky are Michigan, Kentucky and Utah. They must have pretty blue skies over there.

why to men have nipples
Good one! This is a very tough to answer, there’s really no definite explanation, mine would be that we have still a few thousand or more years to go until we mutate and get rid of them, pretty much evolution in the process is my belief.

Top 3 states wondering about man nipples are Nevada, Tennessee and Indiana.

why did michael jackson turn white
This one truly cracked me up. Out of all why questions in the world, the majority of people using google are wondering about what happen to one man. Leave the poor guy alone. The first search result takes you to a cronological essay about Michael Jackson’s morphosis, I bet it does answer it. The second result is an answer in Wiki Answers which tells us 3 theories, but in the end none knows how he actually did it, it’s all rumors that eventually will come out unless all the parties involved die and no documentation is left behind about the procedures.

I guess if someone knew how to do this and it was an easy process there would already be one huge industry for self-racists to convert to white. I know a few myself that would be inline as soon as they’d have the money.

The top 3 states wondering about Michael Jackson’s pigmentation changes are Florida, New York and New Jersey.

why do dogs eat grass
So I guess a lot of Dog owners can’t figure out why their carnivore pets tend to be mowing the lawn or eating grass and then vomiting.

Top 3 dog owner states wondering about this behaviour are Oklahoma, Louisiana and Kentucky.

I’m starting to think that people in Kentucky need to have a lot of questions answered, where the hell did we ask for questions before Google, I guess we lived in a world ruled by rumors and miss-information since most people didn’t really go to the library to have mundane questions answered.

why did I get married
Again, some people think of Google as their psychologist or as a frustration release text box… or maybe they’re just looking to find out about a movie, which comes up as the first search result.

Top 3 states having second thoughts about their marriage are Mississippi, Louisiana and Georgia.
What’s with the people in the south of this country?

why is my poop green
This tendency seemed to have picked up towards the end of 2008 on Google trends. The first result takes us to a Yahoo! Answers page, and it seems to be related with vegetarians pooping green, with iron, with colorants in food, or deficiencies in the digestive process.

Top 3 states pooping green are Wisconsin, Missouri and Indiana.

Sources: Google and Google Trends.

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)

If I Ruled The World – Driving Edition

Thursday, September 3rd, 2009

- All traffic lights would have regressive timers to let drivers know when the light will switch from Green to Red and from Red to Green. No more guessing, and no more honking on people to move their clueless asses.

- Traffic lights would have sensors for about a mile before each on every direction, no need to have people sitting at red lights when there are no cars coming. Current sensors suck balls.

- All highways would have 50mph minimum speed limit, and optionally a 90mph speed limit.

- To get a driver license you’d have to complete an obstacle course at a speed of at least 60mph. People who can’t do this should not be allowed to drive.

- Cars would Jam Cellphones Signals as soon as they start moving. I’m sick of stupid people on zombie mode when driving, they’re damn dangerous for everyone around, not to mention the ones texting while driving, those probably deserve to have accidents and die or get a big scare as a process of natural selection, too bad that when it happens they kill innocent people along the way.

- If you waste 3 seconds to get your car moving when a light turns green, the traffic light will take a picture of your license plate and send you a ticket for wasting 3 seconds times the number of people you have behind you.

- Drawbridges would be disabled everywhere between 7-10am and between 4-7pm. It’s ridiculous how many man/years in productivity are wasted everyday when these things open up and hold up hundreds of cars so that one stupid boat can pass, specially at peak hours.

- In the future, if cars are to drive themselves, there’d be controlling computers at intersections making sure cars don’t have to ever stop, coordinating car speeds, making them go from all directions at the same time and trying to keep a minimum separation between them only by a few feet. It’d be pretty exciting to go through an intersection on a world like this. No more stupid traffic lights.

If I think of more I’ll keep updating this list.

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)

Digg Dialogg: Sir Richard Branson

Friday, May 8th, 2009

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)

Swine Flu FML

Monday, April 27th, 2009

Today, I took my kid to a pig farm near Mexico City, I think I let him get a little too close to the animals, FML

But more seriously, leave a comment if you think the whole Swine Flu is total BS to keep once again the world in fear and have them worry about stuff that doesn’t really matter.

Just check the price of oil today (dropping), and the prices of small pharmaceutical companies on the stock market (some doubling today)

World Domination BS… don’t fall for it.

Who benefits from Swine Flu

  • The US tourism industry by keeping millions of dollars from going to mexico. Just one airplane going to Cancun from say Florida, will take about 300 passengers. In average each passenger will spend at least about $1,000. That’s $300k a pop. I’d imagine there’s at least 10 flights a day going to Cancun from several destinations in the US. That’s $3MM that stay in the US or go somewhere else. Now multiply this by the number of touristic destinations in Mexico plus flights that come from other countries. Their economy must be bleeding tens of millions a day because of this.
  • Companies that use pork derived products, now they can get pork for a lot cheaper. Think McDonalds, Wendy’s, Burguer King, Super market chains. Buy low, sell high
  • 3M has had to step up their mask production to keep up with the demand coming from CVS, Walgreens, Rite Aid, etc.
  • Pharmaceutical companies related to vaccine R&D

In the meantime, I see nothing but a pattern of destructive media against mexico, first it was the Drug lord wars, then Swine Flu, and more recently an Earth Quake (I totally believe the US must have weapons to produce earthquakes, it’s the perfect attack, you can blame it on mother nature)

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)

How to make your own Quick & Dirty Hex File Viewer in Java

Saturday, April 18th, 2009

Update: You might want to read this new version of the code instead. Thanks ispak

I was playing with a hex editor recently and then I thought it would be pretty easy to make a program to output what you see on a text editor. Here’s a quick & dirty Hex Visor I wrote in like 5 minutes with Java. It shows 15 bytes per line, and on the right side it prints all the visible characters of the ascii table, the non-visible ones are replaced with “.”

Enjoy:

//HexViewer.java
import java.io.*;

public final class HexViewer {
    public final static void printFile(String filePath) {
        File f;
        try {
            f = new File(filePath);
        } catch (Exception e) {
            return;
        }

        try {

            FileInputStream fis = new FileInputStream(f);
            while (fis.available() > 0) {
                char[] line = new char[16];
                for (int i=0; i < 16; i++) {
                    int readByte = fis.read();
                    String paddingZero = (readByte < 16) ? "0" : "";
                    System.out.print(paddingZero + Integer.toHexString(readByte) + " ");
                    line[i] = (readByte >= 33 && readByte <= 126) ? (char) readByte : '.';
                }
                System.out.println(new String(line));
            }
        } catch (Exception e1) { e1.printStackTrace(); }
    }

    public final static void main(String[] args) {
        if (args.length == 0)
            return;

        printFile(args[0]);
    }
}

Usage:

java HexViewer <path to file> | less

java HexViewer Desktop/Puppet.wmv | less

30 26 b2 75 8e 66 cf 11 a6 d9 00 aa 00 62 ce 6c 0&.u.f.......b.l
74 14 00 00 00 00 00 00 07 00 00 00 01 02 a1 dc t...............
ab 8c 47 a9 cf 11 8e e4 00 c0 0c 20 53 65 68 00 ..G.........Seh.
00 00 00 00 00 00 f4 10 68 f9 49 76 2e 43 b5 9f ........h.Iv.C..
09 0a 2d 19 45 7c 32 3a 24 00 00 00 00 00 70 ee ..-.E|2:$.....p.
14 06 fb da c7 01 28 01 00 00 00 00 00 00 00 8c ......(.........
bb 53 00 00 00 00 10 88 dd 52 00 00 00 00 b8 0b .S.......R......
00 00 00 00 00 00 02 00 00 00 40 1f 00 00 40 1f ..........@...@.
00 00 90 50 02 00 b5 03 bf 5f 2e a9 cf 11 8e e3 ...P....._......
00 c0 0c 20 53 65 61 10 00 00 00 00 00 00 11 d2 ....Sea.........
d3 ab ba a9 cf 11 8e e6 00 c0 0c 20 53 65 06 00 ............Se..
33 10 00 00 a9 46 43 7c e0 ef fc 4b b2 29 39 3e 3....FC|...K.)9>
de 41 5c 85 27 00 00 00 00 00 00 00 01 00 0c 65 .A\.'..........e
00 6e 00 2d 00 61 00 75 00 00 00 5d 8b f1 26 84 .n.-.a.u...]..&.
45 ec 47 9f 5f 0e 65 1f 04 52 c9 1a 00 00 00 00 E.G._.e..R......
00 00 00 02 01 ea cb f8 c5 af 5b 77 48 84 67 aa ..........[wH.g.
8c 44 fa 4c ca 62 01 00 00 00 00 00 00 06 00 00 .D.L.b..........
00 01 00 0c 00 02 00 02 00 00 00 49 00 73 00 56 ...........I.s.V
00 42 00 52 00 00 00 00 00 00 00 01 00 34 00 00 .B.R.........4..
00 06 00 00 00 44 00 65 00 76 00 69 00 63 00 65 .....D.e.v.i.c.e
00 43 00 6f 00 6e 00 66 00 6f 00 72 00 6d 00 61 .C.o.n.f.o.r.m.a
00 6e 00 63 00 65 00 54 00 65 00 6d 00 70 00 6c .n.c.e.T.e.m.p.l
00 61 00 74 00 65 00 00 00 4c 00 31 00 00 00 00 .a.t.e...L.1....
00 02 00 0c 00 02 00 02 00 00 00 49 00 73 00 56 ...........I.s.V
00 42 00 52 00 00 00 01 00 00 00 02 00 34 00 00 .B.R.........4..
00 0c 00 00 00 44 00 65 00 76 00 69 00 63 00 65 .....D.e.v.i.c.e
00 43 00 6f 00 6e 00 66 00 6f 00 72 00 6d 00 61 .C.o.n.f.o.r.m.a
00 6e 00 63 00 65 00 54 00 65 00 6d 00 70 00 6c .n.c.e.T.e.m.p.l
00 61 00 74 00 65 00 00 00 4d 00 50 00 40 00 4d .a.t.e...M.P.@.M
00 4c 00 00 00 00 00 01 00 2e 00 03 00 04 00 00 .L..............
00 57 00 4d 00 2f 00 57 00 4d 00 41 00 44 00 52 .W.M./.W.M.A.D.R
00 43 00 50 00 65 00 61 00 6b 00 52 00 65 00 66 .C.P.e.a.k.R.e.f
00 65 00 72 00 65 00 6e 00 63 00 65 00 00 00 a7 .e.r.e.n.c.e....
3f 00 00 00 00 01 00 34 00 03 00 04 00 00 00 57 ?......4.......W
00 4d 00 2f 00 57 00 4d 00 41 00 44 00 52 00 43 .M./.W.M.A.D.R.C
00 41 00 76 00 65 00 72 00 61 00 67 00 65 00 52 .A.v.e.r.a.g.e.R
00 65 00 66 00 65 00 72 00 65 00 6e 00 63 00 65 .e.f.e.r.e.n.c.e
00 00 00 b0 06 00 00 74 d4 06 18 df ca 09 45 a4 .......t......E.
ba 9a ab cb 96 aa e8 a4 0d 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

This how it looks on a full blown hex editor like HexEdit:
Same file on HexEdit

The Code of HexViewer.java on emacs:
HexViewer.java on emacs

Screenshot of the output:
HexViewer in action

Homework
Hack the code so that it ouputs the first column shown on the HexEdit screenshot. That column represents the byte position of each row. It's basically a counter incremented 16 units at the time, and shown in Hex.

Post on Twitter
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Google Buzz (aka. Google Reader)