PlayMaps—an unobtrusive embedded map concept for your web application

Download PlayMaps ZIP archivePlayMaps is a web component based on Google Static Maps API and Google Map Search interface. It displays a static map picture—that might have been previously cached—based on coordinates of specified location, and places a Play button over it. Whenever the user presses the button, it calls the interactive Google Map Search interface with a search query according to the geocodes of the location, and renders it above the static map picture.

Users with no or JavaScript support disabled, see the informative static map which, in addition, can be downloaded for latter usage or printing purpose. Users with JavaScript enabled are encouraged to “play the map” and enjoy the searchable map interface.

(tovább…)

Get Picasa Web Albums work under (Fedora) Linux

At present, the official Linux release of Google Picasa (2.2) photo management desktop application has no builtin support for uploading photos to the Picasa Web Albums, and there’s no any other open source alternative to do that*. Though, packages for Picasa 2.7 Beta for Linux, which feature the upload process, are no longer available. (The official download site still keeps promoting them.) Since the Linux version of the software is, indeed, just a slightly modified Windows executable on top of Wine, a workaround for the problem may be to install the native Windows version then. It may worth a try, but it won’t help.

Picasa 2.7 with builtin Web Albums support running on Fedora Linux

After a half an hour of googling the problem, I’d just found a post on Ubuntuforums, where—by following egoldtech’s instructions—got Picasa authenticate itself and allow to upload photos via the software, at last. Let’s see how it worked.

First, install the Linux package for your distribution as normal. Fedora users may create a new repository entry for Google products as it follows:

name=Google - i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Type sudo yum -y install picasa to pull Picasa off the repo.

Run the program, quit it, and make sure that the Media Detector was closed both. Install Wine if needed, get the Windows binary and run the setup wizard by typing wine picasaweb-current-setup.exe to the shell prompt.

Start Picasa up, and exit again. Now change to the directory where the Linux version was installed, backup its folder for any case, and move there the recently installed Windows version from your fake drive.

# cd /opt/picasa/wine/drive_c/Program Files
# sudo mv Picasa2 Picasa2.bkp
# sudo cp -R home/USERNAME/.wine/drive_c/Program\ Files/Picasa2/ .

Simply bring Picasa up again, and there you go. The Web Albums button now appears, and it works.

Any feedbacks, or comments are welcome at Digg.


*According to F-Spot feature sheet, the open source photo manager has ability to export photos to your Picasa web space, though I had never found a way to do that. In other words, that function does not work. Not to mention that on my Fedora box the Export menu of F-spot is simply empty.

Congratulations, you’ve reached the End of the Internet.

Míg kölyökkoromban azon ment a harc, hogy ki tud minél több magazinműsort megnézni a tévében, most a weben elérhető temérdek hírforrás között megy a verseny, melyeket tartom érdemesnek a rendszeres figyelemmel kíséréshez. Az RSS (továbbiakban értem ez alatt az Atom és harmadik feed formátumokon érkező értesítőket) már nem újdonság, hanem eszköz, amelyet párosítva egy olvasóval, válik lehetővé relatív nagy információ halmaz relatív és lehetőleg minél rövidebb időn belüli megemésztése.

Az első ízben RSS olvasóként elterjedt NetVibes kitűnő felület kellően sok forrás áttekintéséhez. A közel kétéves használata folyamán azonban több olyan kívánalom is megfogalmazódott bennem – RSS olvasási szokásaim rigolyosodása folyamán –, amelyek egy más termék képében fogalmazódtak végül meg. (tovább…)

Loading Google Analytics dynamically on document load

The following method is out-of-date. Better check the anwsers for the Stack Overflow question ‘How do I dynamically load Google Analytics JavaScript?’ for up-to-date instructions.

According to the Google Analytics Help Center, the tracking code segment of your Analytics website profile must be added into the bottom of your content, immediately before the </body> tag. Sure you remember those days when you were told to put it in the <head>, and to many people’s astonishment when Analytics had an outage of its service loads of websites were just loading and loading while the user were getting no response – kinda new shade of screen death.

Gluing a remote functionality of your website with JavaScript and handling it by your document load event handler ain’t a scrapped idea as Analytics tracking itself stands of a remote JS call. Then why to take risks?

The base functionality of a web application heavily based on JavaScript may require that the whole content, or at least the DOM to be loaded. If Analytics remains still embed in the HTML code another outage would obstruct the running of your JavaScript code attached to document or DOM load event hence breaking down your app. So how to separate essential functions from remote web statistics?

There are several ways to load and call Analytics on document load. In the following example I use Scott Andrew’s great addEvent wrapper to handle event attaching.

Tested under Internet Explorer, Mozilla compatibles and Opera. May not work under certain versions of Konqueror and Safari. To address this issue you can use delayed function call.

Function loadGA is responsible for loading the remote Analytics API. After browser responsed the proper status, we call callGA, which create another script container using DOM methods, which forces browser to run its content.

function callGA() {
    var s2 = document.createElement('script');
    s2.setAttribute('type', 'text/javascript');
    s2.text = '_uacct="UA-xxxx-x"; urchinTracker();';
    document.getElementsByTagName('body').item(0).appendChild(s2);

}

function loadGA() {
    var s1 = document.createElement('script');
    s1.setAttribute('id', 'googleanalytics');
    s1.setAttribute('src', 'http://www.google-analytics.com/urchin.js');
    s1.setAttribute('type', 'text/javascript');

    addEvent(s1, 'readystatechange', function () {
	    if ((s1.readyState == 'complete') || (s1.readyState == 'loaded')) {
		callGA();
	    }
	});

    addEvent(s1, 'load', callGA);
    document.getElementsByTagName('head').item(0).appendChild(s1);
}

addEvent(window, 'load', loadGA);

A pro of this method is that allows further refinement of your logic – e.g. you can now serve different Analytics code depending on the protocol if you use secure channel.

And that’s all, folks. Comments are welcome at DZone.

everybody in the house of love

Várom azt a világot, amikor a Critical Mass végre csinál magának egy publikus Google Calendart ahogy csinált a Hajó, várom, amikor a Zsófinak is végre eres lesz, várom, amikor az Est.hu redesigned kilép saját árnyékából és a tiniknek kiadott interjúk helyett a NetVibes-ba is betehetem a DunaTV késő esti műsorkínálatát, várom, amikor mondjuk ugyanezt Icalba is kiadják, hogy ne nekem kelljen kopizni az SMS értesítőhöz, várom, amikor nem egy újabb domén alá húznak fel egy újabb webkettes mashupként kikiáltott Google Maps layert, hanem ugyanezt teszik bele mondjuk az Est.hu-ba, én várom, de nentó vazi, oké hogy East 17-t hallgatok mostanában mer’ retró, de ’96 elmúlt már.

egy ilyen kislánnyal csupa derű a világ

Nem tudom, mennyiben lenne jobb egy EU-s mail szolgáltatónál, én nem parázok amiatt, hogy a Google kinyeri a gémélemből, hogy miket dumálok a csajommal, meg hogy kúrogatos videókat is nézegetek néha, inkább lássa, hogy tinédzseresen a nemi betegségek-re kerestem, minthogy tudatlanságom miatt huszonkétévesen egy jópofa kór vigyen el, mert amit parázol megadni a Google-nek, azokat gépeled sebesen a fake MySpace loginboxba. Aki lemaradt volna A Google kulisszatitkai-ról (M2, holland dokumentumfilm), beszerezhető Fereetől (~sok mega), letölthető torrentől (innen mégsem tölthető le, mert Adrián azt mondta, ez titkos torrent), mert hát a technika csodálatos!