iBlog random » Whatever http://blog.zurka.us Just another WordPress weblog Tue, 28 May 2013 20:28:47 +0000 en-US hourly 1 http://wordpress.org/?v=3.6 Google+ invites and blahblah http://blog.zurka.us/google-invites-and-blahblah/ http://blog.zurka.us/google-invites-and-blahblah/#comments Tue, 02 Aug 2011 13:38:12 +0000 nasal http://blog.zurka.us/?p=1134

So, hello again!

After a long time here comes another post on this lonely blog, and I kind of thought about rere(re)*re-starting to write more regularly, maybe complain about the world, so I don’t bother people that don’t care directly and give the chance to comment my thoughts to other haters like me. Or something. I think I am becoming stupid and don’t know how to write in English any more so excuse me for my mistakes.

And maybe it is time for a redesign and a separate domain as I see some of the posts are still being read quite a lot and maybe it would help grabbing a nice name somehow related to me or something. Maybe my name + surname to show off a little bit? Why am I still writing this?

Anyway, as the post title is suggesting I am on G+ and can invite you, in case you still didn’t manage to join us 31337 h4x9rz (it is still closed right? I don’t even know that). Post a comment or send me an email (via the about.me page) with your mail so I can invite you.

So that was it for now, I could write something about Windows 8 or my new Samsung Omnia 7 (running the beta Windows 7.5 Mango release) but I guess I will do it tomorrow.

Have a great day!

PS: feel free to check my about.me page. It is kind of lame but who cares right? I am lame.
PPS: happy wifi day! (8.02.11 for American date style)

]]>
http://blog.zurka.us/google-invites-and-blahblah/feed/ 3
Lockerz.com invites http://blog.zurka.us/lockerz-com-invites/ http://blog.zurka.us/lockerz-com-invites/#comments Wed, 03 Feb 2010 10:35:36 +0000 nasal http://blog.zurka.us/?p=1070

Anybody wants a lockerz.com invitation?

Leave a Comment!

]]>
http://blog.zurka.us/lockerz-com-invites/feed/ 0
Michael Jackson is ALIVE! http://blog.zurka.us/michael-jackson-is-alive/ http://blog.zurka.us/michael-jackson-is-alive/#comments Mon, 07 Sep 2009 19:24:00 +0000 nasal http://blog.zurka.us/michael-jackson-is-alive/

Ninjas got LEGIT video showing he’s really alive.

Keep the poor man resting in peace, damn.

]]>
http://blog.zurka.us/michael-jackson-is-alive/feed/ 6
Make Your Titles Dynamic with PHP http://blog.zurka.us/make-your-titles-dynamic-with-php/ http://blog.zurka.us/make-your-titles-dynamic-with-php/#comments Tue, 26 May 2009 15:25:00 +0000 nasal http://blog.zurka.us/?p=938

When developing your website, if you want to rank well in search engines it is crucial that you use different titles for every sub-page you’ve got online. This is because these search engines (Google, MSN etc) love your titles and categorize your site based on them. This is good for SEO.

This is a simple thing to accomplish using PHP but it really is very effective. I will put dumb text into them but you should use titles rich with keywords related to your niche.

$title = 'Welcome to our website!';
if (key($_REQUEST) == 'register') { $title = 'Register now'; }
if (key($_REQUEST) == '404') { $title = 'Error 404: The page is unavailable'; }
if (key($_REQUEST) == 'about') { $title = 'Who we are, what we do'; }
if (key($_REQUEST) == 'news') { $title = 'Recent news'; }

This would work if you are using urls like yoursite.com/?register, ?news etc. What it does is set a variable $title which will include the text your define according to the page we are watching. Now we need to display it in our browser.

<head>
    <title><?= $title; ?> - Your Company Name</title>
</head>

Pretty easy, isn’t it?

Oh and today I’ve found a FREE product that helps you make some money with google, all you have to pay is less then $3 for shipping and handling and they mail it to you. The offer is only valid for the US though. Click here if you are interested. It can do no harm if you’re serious about making some money online and $3 really isn’t something you could not afford!

Have swing!

]]>
http://blog.zurka.us/make-your-titles-dynamic-with-php/feed/ 2
Use PHP to Fetch an Album Artwork From Amazon http://blog.zurka.us/use-php-fetch-artwork-cd-from-amazon/ http://blog.zurka.us/use-php-fetch-artwork-cd-from-amazon/#comments Sun, 17 May 2009 22:59:16 +0000 nasal http://blog.zurka.us/?p=930

It’s actually pretty easy once you find out how to do it. By having the artist and album name you can fetch the album artwork from Amazon in three different sizes.

With php5 it’s very easy since it has an integrated xml parser. All we have to do is this:

$url = simplexml_load_file('http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=12DR2PGAQT303YTEWP02&Operation=ItemSearch&SearchIndex=Music&Artist=ARTIST&ResponseGroup=Images&Keywords=ALBUMNAME');

Please note that in the url I’ve put ARTIST and ALBUMNAME, which you should replace with what you’re searching for. Doing so, we get an xml file from which we can display the image like this:

echo '<img src="' . $url->Items->Item[0]->LargeImage->URL . '" />';

If we want the large one, that is. If we would like the medium one we would use MediumImage and SmallImage for the small one.

That’s it, it’s very useful if you are organizing your mp3 files or maybe building an online community or something.

Hope it helps somebody! If you find it useful, digg it!

ps: I forgot to mention that if you are using php4 this wont work, you will have to use another xml parser to fetch the image location from the xml provided by Amazon.

Have swing!

]]>
http://blog.zurka.us/use-php-fetch-artwork-cd-from-amazon/feed/ 5
MSG Plus! Live 4.80.356 http://blog.zurka.us/msg-plus-live-480356/ http://blog.zurka.us/msg-plus-live-480356/#comments Tue, 03 Feb 2009 00:18:01 +0000 nasal http://blog.zurka.us/?p=846

The new Plus! edition, fully compatible with Windows Live Messenger 2009, is finally out!

This version includes more than 500 updates and most of them (as I noticed) in the skin section of the addon.

Go on and download it, it rocks.

Download | Changelog

]]>
http://blog.zurka.us/msg-plus-live-480356/feed/ 0
Use PHP To Display Page Content (LMAWT part 2) http://blog.zurka.us/use-php-to-display-page-content-lmawt-part-2/ http://blog.zurka.us/use-php-to-display-page-content-lmawt-part-2/#comments Fri, 23 Jan 2009 15:27:16 +0000 nasal http://blog.zurka.us/?p=826

If you missed the previous posts, you can read the Introduction and First part to catch with us.

What we are going to do today is make our links work and display the content depending on what link we click.

First let’s make our links go live. In our final result of part 1, our links were dead. To make a link work, we must use this syntax:

<a href="./">Home</a>
<a href="./?news">News</a>
<a href="./?contact">Contact</a>
*** notice we use ?news for the news, ?contact for the contact page etc, will be explained later ***

So let’s change all of our links to this. Our final result will be this. As you can see, the links are underlined and you can click on them. But if you click on them you will notice nothing really changes on the page, except for the URL in the browser.. that’s because we need our PHP code that will “read” the URL and display the content that comes along.

Let’s see the PHP code that we put into our #main-content div. To load different contents depending on what click we link on, we are going to use the switch function, which is not hard to understand, is very useful and works fast!

<?php
switch (key($_REQUEST)) {

	case 'news':
		echo 'We will display our news here';
	break;

	case 'members':
		echo 'This will be the member list';
	break;

	// we continue like this for all our links
	// and finish with the default statement

	default:
	echo 'Welcome to my first website';

}
?>

As I said before, put this code between inside your #main-content DIV.

<div id=”main-content”>
<?php switch () {} ?>
</div>

What will this piece of code do?
It will display different contents based on the page we are on. If, for example, we will click on our “news” link, the URL will change to “domain.com/?news” and the content that will be shown will be “news.php“, because of the ‘case’ we wrote. In this case, what comes after the question mark in the URL is called a “query string” and we will work with these.

In this example we are using the “key($_REQUEST)” but we could change this to react to something like “domain.com/?page=news” and in this case we would use a different switch. Tell me if you want to know about it and I’ll write an example for this.

Anyway, check what we accomplished now. We made our first working website, we could actually put whatever we would like inside, we are done. The content is changing and everything is working fine.

Any questions? Feel free to ask!

]]>
http://blog.zurka.us/use-php-to-display-page-content-lmawt-part-2/feed/ 4
Crazy American marines :)) http://blog.zurka.us/crazy-american-marines/ http://blog.zurka.us/crazy-american-marines/#comments Fri, 31 Oct 2008 00:47:51 +0000 nasal http://blog.zurka.us/?p=636

]]>
http://blog.zurka.us/crazy-american-marines/feed/ 0
Create an Alexa Widget for your site http://blog.zurka.us/create-an-alexa-widget-for-your-site/ http://blog.zurka.us/create-an-alexa-widget-for-your-site/#comments Wed, 08 Oct 2008 11:13:50 +0000 nasal http://blog.zurka.us/?p=684

It is actually very easy:

  1. Visit the Alexa Developer’s Corner
  2. Select the widget that you like the most and write your site url into the field
  3. Copy the code snippet they give you
  4. Paste it into your website

Do you use the Alexa Widget on your site?

]]>
http://blog.zurka.us/create-an-alexa-widget-for-your-site/feed/ 1
Vic o tašči http://blog.zurka.us/vic-o-tasci/ http://blog.zurka.us/vic-o-tasci/#comments Wed, 24 Sep 2008 23:27:30 +0000 nasal http://blog.zurka.us/?p=508

Par je šel zvečer na zabavo. Pokličeta taxi, peljeta psičko ven in čakata na taxi.

Psička medtem spizdi nazaj v hišo. Mož jo gre iskat, ker ni hotel da
ostane zaprta v hiši cel večer.

Žena gre do taksista, ki je že nestrpno čakal, da ju odpelje, ter zanj
najde izgovor. “Veste, samo k moji materi se je Å¡el Å¡e poslovit!”, je rekla.

Mož čez nekaj časa pride, se vsede v taksi in pravi:
“Oprostite, ker je trajalo tako dolgo. Blesava kuzla se je skrila pod
posteljo, pa sem jo moral dvakrat mahnt z metlo, da je prilezla ven,
pol sem jo moral zavit v plašč, da me ni spraskala, ker se je upirala
ko sem jo vlekel po štengah in jo privezal na dvorišču. Tako da mi ne
bo spet srala po vrtu kot včeraj!”

]]>
http://blog.zurka.us/vic-o-tasci/feed/ 1