Facebook reaches pagerank 10
Posted by klevisi - 05/06/10 at 04:06:08 pmIt is not a big surprise that with over 400 milion active users, facebook has made it to pagerank 10.
Facebook has reached google. I checked it today, althought posts on the web claim that this happened around april 2010. I did a pagerank check on Seostudio.pro for google, facebook, yahoo and youtube, with the following results:
Google = Pagerank 10
Facebook = Pagerank 10
Yahoo = Pagerank 9
Youtube = Pagerank 9
The Like Button Revolution
Posted by klevisi - 27/05/10 at 06:05:24 pmThe simple cute little button has made it through many websites and today I put it in my blog.
I was so amazed about the Like button being almost everywhere on the net.
It’s very simple, you just click the Like button and practically you are sharing on Facebook.com the link of the website the Like button is in.
That’s all about it, just as this simple.
Another thing I noticed was that there are 3 color schemes that you can choose for the button: light, dark, and evil. Evil??? What is that is that?
It looks like the same as light. What evil things has facebook in mind?
Google changed layout
Posted by klevisi - 07/05/10 at 09:05:42 amI noticed yesterday that google has changed his layout.
I don’t like it! I don’t like the homepage, neither do I like the search results.
In the search results it now displays a left column with additional options, so I think google has lost it’s simplicity.
Bayern Munich Hymn
Posted by klevisi - 23/04/10 at 07:04:30 amWilly Astor “Stern des Suedens”
Welche Münchner Fußballmannschaft kennt man auf der ganzen Welt?
Wie heißt dieser Klub, der hierzulande die Rekorde hählt?
Wer hat schon gewonnen, was es jemals zu gewinnen gab?
Wer bringt seit Jahrzenten unsre Bundesliga voll auf Trap?
Refrain: FC Bayern, Stern des Südens, du wirst niemals untergehn, weil wir in guten wie in schlechten Zeiten zu einander stehen.
FC Bayern, Deutscher Meister, ja so heißt er, mein Verein,ja so war es und so ist es und so wird es immer sein
Wo wird klar schon angegriffen, wo wird täglich spioniert?
Wo ist die Presse, wo ist Rummel, wo wird immer diskutiert?
Wer spiel in jedem Stadion vor ausverkauftem Haus?
Wer hält den Druck der Gegner aus?
Refrain
Ob Bundesliga im Pokal oder Champions League
ja gibt es denn was Schöneres als einen Bayern Sieg?
Hier ist Leben, hier ist Liebe, hier ist Feuer und drum bleibt München Deutschlands bester bis in alle Ewigkeit!
Refrain
DOCTYPE!’s
Posted by klevisi - 18/04/10 at 08:04:51 amHTML 4.01 Strict, Transitional, Frameset
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
XHTML 1.0 Strict, Transitional, Frameset
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
XHTML 1.1 DTD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
getElementsByClassName function
Posted by klevisi - 18/04/10 at 08:04:51 amSince there doesn’t exist something like a getElementByClassName function, I just tried the js prototype library which has a getElementsByClassName function. You can download it here.
Include it in the head like this:
<head> <script type="text/javascript" src="prototype.js"></script> </head>
Then use it like this:
var test = document.getElementsByClassName("test");
the variable test will be an array.
Make a linkable div
Posted by klevisi - 15/04/10 at 12:04:49 pmA div can be made into a link very simple using javascript using this code:
<div onclick="location.href='http://www.domain.com';" style="cursor:pointer;">CLICK ME</div>
Here everything that is inside this div will be clickable and will poing to http://www.domain.com.
Using cursor: pointer dhe mause will change when it is over the div, just like in a real link.
Phpfreechat Albanian language
Posted by klevisi - 13/04/10 at 07:04:26 pmI just translated phpfreechat version 1.2 into the albanian language.
Feel free to download and use.
Installation:
1. DOWNLOAD the language file.
2. extract it into /i18n/ folder
3. in your chat file (suppose it is chat.php) add the following code in the beginning:
$params['language'] = ‘sq_AL’;
Enjoy!
What are Design Patterns?
Posted by klevisi - 04/04/10 at 05:04:38 pm
“Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice” by Christopher Alexander, architect (the guy in the picture).
This is true in object oriented design patterns, even if he was talking about patterns in building design.
A pattern is made of four essential elements:
1. The pattern name
2. The Problem
3. The Solution
4. The Consequences
Cookies VS Sessions
Posted by klevisi - 05/02/10 at 08:02:59 pmThe main difference between cookies and sessions is that cookies are stored in the user’s browser, and sessions are not. This difference determines what each is best used for.
A cookie can keep information in the user’s browser until deleted. If a person has a login and password, this can be set as a cookie in their browser so they do not have to re-login to your website every time they visit. You can store almost anything in a browser cookie. The trouble is that a user can block cookies or delete them at any time. If, for example, your website’s shopping cart utilized cookies, and a person had their browser set to block them, then they could not shop at your website.
Sessions are not reliant on the user allowing a cookie. They work instead like a token allowing access and passing information while the user has their browser open. The problem with sessions is that when you close your browser you also lose the session. So, if you had a site requiring a login, this couldn’t be saved as a session like it could as a cookie, and the user would be forced to re-login every time they visit.
You can of course get the best of both worlds! Once you know what each does, you can use a combination of cookies and sessions to make your site work exactly the way you want it to.
Klevis Miho Copyright © 2010