wannabit who do you wanna bit

15Mar/11Off

Google search options

I always wanted to learn more about how Google works.
here is an exaustive guide on how to give a boost to your searches:

http://www.googleguide.com/advanced_operators.htm

there are some useful operators like site: that allow you to see how many pages of your site are indexed by google and link: very useful to understand misteries of page rank getting all the sites that link to your site.

enjoy

Filed under: SEO Comments Off
14Feb/11Off

Getting ready for an interview

hard life...
I'm getting ready for an interview. I'm going to be interviewed for a new position and it will be a tough one because I'm looking towards the unexplored world of Java. I really don't know anything about it so I'm trying to be prepared as much as I can.
I than started browsing the web and I found this awesome site with all the possible questions they might ask you during an interview.
here it goes for your pleasure: http://dev.fyicenter.com/interview/index.html

12Feb/11Off

Which is the difference between event capture and event bubbling?

The DOM has two ways for objects to detect events: from the top down, and from the bottom up. The first method is known as event capture, the second is called event bubbling.

Event Capture
Let's say that your document contains a
<div> which contains a <span> which contains an <img alt="" />. Further, let's say you've added an event listener to all of them. When a user clicks on the image, a mouseclick event occurs.

Even though the user clicked the image, the image doesn't get the event first. Instead, the event listener attached to the document grabs the event first and processes it. The event is then passed down to the
<div>'s event listener. The event then goes to the <span>, and finally to the <img alt="" />. That is, all of the clicked-on object's "ancestors" higher up in the document capture the event for processing before sending it down the chain to its intended target.

Event Bubbling
Now let's look at the same situation from the inside out. You have an <img alt="" /> inside a
<span> , which is inside a <div>, which is inside your document. When a user clicks the image, this time the events rise like a bubble in a glass of water. The click's original target, the <img alt="" />, gets to see the event first, and then passes it upwards to the <span> for further processing, which passes it on to the <div> , which finally passes it up to the document.

18Jan/11Off

Paper size in pixels

I'm doing some work for printed graphic so I was wondering how big is in pixel a paper sheet?
Of course depends on DPI usuallly the standard DPI rate is 300 but also lower resulution are fine for what I'm doing so let's see what happen playing with resolutions.

paper size inch pixel 300dpi pixel 200dpi
A0 33.11 × 46.81 9933 x 14043 6622 x 9362
A1 23.39 × 33.11 6717 x 9933 4478 x 6622
A2 16.54 × 23.39 4962 x 6717 3308 x 4478
A3 11.69 × 16.54 3507 x 4962 2338 x 3308
A4 8.27 × 11.69 2481 x 3507 1654 x 2338
A5 5.83 × 8.27 1749 x 2481 1166 x 1654
A6 4.13 × 5.83 1239 x 1749 826 x 1166
Filed under: web design Comments Off
24Dec/10Off

Facebook vs twitter

Interesting overview of how the people are splitted between the two:

Filed under: social media Comments Off