Categories

Archives

Syndication


Archive for October, 2007

Google, yahoo msn and ask search engine market share

30
Oct
Posted in Internet

The w3counter has published a report of the search engine market shares.

Note that there only are four “big” search engines and in practical there are only one big and two smaller engines.

The differences of the search engines may vary but google is consider the better in the majority of the results, but with that market share Google should have the most information and with more information you will easier know which information is the most interesting for a user.

Here are the top 4 search eninges ordered by market share:

1 	Google 	86.21%
2 	Yahoo! 	7.90%
3 	Live Search 	3.90%
4 	Ask 	0.25%

There were rumors that Microsoft wanted to compete with google by buying Yahoo! which means that they would have a total of 11.8% of the total market share. Google has 86.21% of the search enine market share, which is almost 7.5 times more then what Microsoft would have if the purchased Yahoo!.

Google search keyboard shortcuts (BETA)

26
Oct
Posted in Internet

Google have a very cool feature called “Keyboard shortcuts” which most people have never seen.

Instead of using the mouse to scroll and check the results, you can now use the keyboard to do it.

You don’t need to use the mouse anymore now! It’s perfect for those who uses a laptop and don’t have an external mouse.

The interface is the same as the original but there is a kind of arrow that points at the result you have selected, which will give you the possibility to open the result or just continue to the next.

Key	Action
J	Selects the next result.
K	Selects the previous result.
O	Opens the selected result.
<Enter>	Opens the selected result.
/	Puts the cursor in the search box.
<Esc>	Removes the cursor from the search box.

All you have to do is to add “&esrch=BetaShortcuts” in the end of the url of the search to enable this feature.

Please try it, it is very cool!

Crime fighting 21th century

23
Oct
Posted in Internet

This is a pretty funny picture of what crime fighting could be in the 21th century:
Crime fighting

We’re not far from that as the Swedes and the turkish people are showing with their attacks and re-attacks. We shouldn’t be that suprised if WW3 was started on the internet with a religous motive like that.

For those who don’t know, there was a Swedish artist that wrote a satire picture of the prophet Mohammed and therefore thousends of Swedish websites were hacked. As a retal, Swedish hackers hacked a Turkish hacker-forum to prove that they wouldn’t tollerate it.

Why ruby?

18
Oct
Posted in Programming

Ruby is a programming language that has been placed in the shade of languages like php and java.

So why are people afraid of ruby?
Obviously there is no answer to that question, but one could be the “strange” syntax. Or in fact, it has a nonstrange syntax and all other programming languages has a strange syntax.

The coolest part abour ruby that it is 100% object oriented (OO). Check these differences between a php source and a ruby source. Both lines of code will output the same line but in lowcase intead.

1
"THIS IS A NORMAL STRING IN UPPER LETTERS".lowcase

That’s because all string, integers and bools are objects.

Then, if you’re using PHP, you would have to place the string into a function like this:

1
strtolower("YOU SHOULDN'T ALWAYS USE CAPITALS");

In fact you save some time using ruby in this case..

There are cool things about Ruby but since the syntax is so easily human-read, I believe programmers have difficulties of writing it. They want the strange syntax that no one will understand.

Geek clothing!

8
Oct
Posted in Internet

The webshop Thinkgeek.com offers several cool geek clothes.

One of my favourites is the Wi-Fi tshirt which is powered by three batteries and shows if theres any Wi-Fi signals nearby.
http://www.thinkgeek.com/tshirts/generic/991e/

Another cool product is the “There is no place like 127.0.0.1″ tshirt which can be found here:
http://www.thinkgeek.com/tshirts/generic/5d6a/

That’s some great geek clothes!

External content in DIV

4
Oct
Posted in Internet, PHP

Ever thought of having external content in a DIV without using iframes?

Iframes are ugly and will not validate properly in strict XHTML so therefore a solution for this is needed.
The solution we will use is a very simple PHP function that will grab the content from the page and then display it properly.

So how do we replace that iframe with something else? How can we create an iframe without an iframe?

This solution is widely used as proxy-scripts around the web and it is by far the most simple.

If you’re only aiming to replace an iframe you can do it easily with the file_get_content PHP function.

1
2
3
4
5
6
7
<?php
function displaycontent($url)
{
$content = file_get_content($url);
echo $content;
}
?>

And if you are aiming for a simple proxy-script, you can just add a str_replace command and replace all hrefs with some additional characters:

1
2
3
4
5
function displaycontentproxy($url)
{
$content = file_get_content($url);
$content = str_replace('href="', 'href='proxy.php?url=', $content);
}

A very simple solution to the iframe problem. Solved?