Goodbye Slovenia

David Lednik (red_mamba) migrating to New Zealand

Archive for July, 2008

28. Jul 2008

rtcw_piramida

I was looking for some pictures on my disk and look what I found. Screen capture from hard trainig in RTCW :D

My good friend Mitja reminded me of a real life RTCW photo, so here it is ;)

Laser games



.ME Domains

Author: admin
23. Jul 2008

.me domainsSince Macedonia separated from ex. Yugoslavia they changed the *.yu domains to *.me and I tried to get some good domains to sell them to others :)

Here are some of the new domains that are for sell:

informiraj.me
chiptune.me
skypesex.me
thedo.me
vxml.me

Some other domains i’m selling for the right price :)

mikrosoft.biz
mikrosoft.net
mikrosoft.info
bitorrentz.net
circenses.net
paybookers.com
skzpe.org
visoord.info



16. Jul 2008

I posted this to CakePHP team an they rejected the modification because you have to change the core of the CakePHP frame work. So I’m posting this on my blog if someone finds it useful.

First thing is to change the default.ctp layout in the <head>;
java script does the actual ajax calls, in code we just change the url address, javascript calls the actual cake functions via ajax; it periodicaly scans for URL address changes, this way we have history in browser:

<script src=”http://www.google-analytics.com/urchin.js” type=”text/javascript”></script>
<script type=”text/javascript”>_uacct = “UA-XXXXXXX-X”;</script>
<script language=”javascript”>
var oldURL = ”;
var ignore = false;
function PhpAJAX(URL)
{
urchinTracker(URL);
oldURL = document.location.hash = URL;
}

//new PeriodicalExecuter(pollChatRoom, 1);
new PeriodicalExecuter(function(pe)
{
if (ignore == false)
{
if (oldURL != document.location.hash)
{
oldURL = document.location.hash;
new Ajax.Updater(’go’, oldURL.replace(/^.*#/, ”), {asynchronous:true, evalScripts:true, requestHeaders:['X-Update', 'go']});
}
}
}, 1);
</script>

Right before </body> tag (still in default.ctp) we add:
<script type=”text/javascript”>urchinTracker();</script>

Now we edit core.php file, at the end add the line:
define(’AJAX_ANALYTICS’, true);

Now lets edit ajax.php file, you’ll find it under
cake/libs/view/helpers:
function remoteFunction($options = null)
{
$func=”;

if (isset($options['update']))
{
/* TRACKING AJAX URLs FOR GOOGLE ANALYTICS */
if ( defined(’AJAX_ANALYTICS’) )
{
if (!isset($options['oldstyle']))
{
if (AJAX_ANALYTICS && $options['update']==’go’)
{
$func .= “PhpAJAX(’$options[url]‘);”;
return $func;
}
}
else
$func .= “urchinTracker(’$options[url]‘); “;
}
/**/

if (!is_array($options['update'])) {
$func .= “new Ajax.Updater(’{$options['update']}’,”;
} else {
$func .= “new Ajax.Updater(document.createElement(’div’),”;
}
if (!isset($options['requestHeaders'])) {
$options['requestHeaders'] = array();
}
if (is_array($options['update'])) {
$options['update'] = join(’ ‘, $options['update']);
}
$options['requestHeaders']['X-Update'] = $options['update'];
/**/
}
else
{
$func .= “new Ajax.Request(”;
}

$func .= “‘” . $this->url(isset($options['url']) ? $options['url'] : “”) . “‘”;
$func .= “, ” . $this->__optionsForAjax($options) . “)”;

if (isset($options['before'])) {
$func = “{$options['before']}; $func”;
}

if (isset($options['after'])) {
$func = “$func; {$options['after']};”;
}

if (isset($options['condition'])) {
$func = “if ({$options['condition']}) { $func; }”;
}

if (isset($options['confirm'])) {
$func = “if (confirm(’” . $this->Javascript->escapeString($options['confirm'])
. “‘)) { $func; } else { return false; }”;
}

//echo $func;
return $func;
}

That’s it :D

You can see this in action on my web hosting (gostovanje strani) pages.



Tunnel Šentvid-Koseze

Author: admin
1. Jul 2008

Well there it finaly is. After god knows how many years of building his majesty Koseze-Šentvid tunnel.

It was opened today at 10:30. This is a huge + for all the tourists that are crossing Slovenia to Adriatic sea. But it costed Slovenian tax payers 3-times the original price :(

I feel Slovenia but Slovenia doesn’t feel me.