Warning: Cannot modify header information - headers already sent by (output started at /home/veljko62/public_html/dragan.yourtree.org/blog/en/wp-includes/default-filters.php:153) in /home/veljko62/public_html/dragan.yourtree.org/blog/en/wp-atom.php on line 8
AXXT - Web development and more Dragan's blog programming, design, fun and other stuff 2010-03-09T21:30:59Z Copyright 2009 WordPress Dragan <![CDATA[Installing mytop on Mac OS 10.5.5 wit XAMPP]]> http://dragan.yourtree.org/blog/en/2009/01/30/installing-mytop-on-mac-os-1055-wit-xampp/ 2009-01-30T14:49:16Z 2009-01-30T14:49:16Z mac mysql If you ever done some MySQL profiling you probably used Mytop.

When i transferred to my new job in November, my job was to develop web services and applications using Ajax and other RIA technologies, but all development was done using
Mac computers. Coming from the PC world it was little strange experence in first couple of days and then i get used to it, altrough i still sometimes try to save document using ctrl+s. :)

Mytop require perl to work, and Mac OS X 10.5.5 comes with the perl already installed, but you will probably need DBD::mysql module to run mytop.

Also, standard XAMPP install dir is not in PATH, so you should add it to /etc/paths
here is how my /etc/paths file looks now:

/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/Applications/xampp/xamppfiles/bin/

Now we can start install procedure:

1)Create a mysql directory in /usr/local:

sudo mkdir /usr/local/mysql

2)Create symlinks to the mysql

sudo ln -s /Applications/xampp/xamppfiles/lib/mysql/ lib

For the next step you should have xampp developer package
http://www.apachefriends.org/en/xampp-macosx.html

sudo ln -s /Applications/xampp/xamppfiles/include include

sudo ln -s /Applications/xampp/xamppfiles/var/mysql/mysql.sock /tmp/mysql.sock

3) Now install DBD::mysql module (if you don't have one)

perl -MCPAN -e 'install DBD::mysql'

4) Now extract and install mytop


tar -zxvf mytop-.tar.gz
cd mytop-
perl Makefile.PL
make
sudo make install

and that's it..

you should be able to run mytop now.

]]>
Dragan <![CDATA[map - filter - reduce in Javascript]]> http://dragan.yourtree.org/blog/en/2008/09/06/map-filter-reduce-in-javascript/ 2008-09-06T03:13:45Z 2008-09-06T03:13:45Z Programming Javascript map - filter - reduce in Javascript using prototype.js

I wrote little tutorial on functional programming techniques using javascript and prototype.

map reduce

view demo

]]>
Dragan <![CDATA[Last.fm - Re-Designed]]> http://dragan.yourtree.org/blog/en/2008/07/18/lastfm-re-designed/ 2008-07-18T05:56:04Z 2008-07-18T05:56:04Z internet On jul 17. last.fm released new version of their interface to general audience.
It looks like there are moving from music oriented service to social network kinda service.

Comments(shoutbox), Recent activity list (new?) and friends are now almost main feature of the site. Sure, charts are still there, but now it shows only 15 entries by default in top artists and top tracks section.

Also, ajax tabs are charts are really useful (prototype ftw!),and I like that they did not go wild with ajax features and that kept thing nice and minimalistic.

Only thing i hated from on first sight is the player, damn what is with that brushed metal texture?
It looks like some ancient photoshop tutorial from 5-6 years ago

Old player was like 10 times better. :/

last fm player

Don't get me wrong, design it self is pretty good, and i even like the but there is an obvious intention to make last.fm more social, and i don't know is that good thing or bad, i always have doubts in radical changes like this one.
For one you will always get a ton of angry users (scroll down) when you make this kind of changes. Also i think they should include dark theme like in old version, i didn't use it but i know many people that did.

But anyway, there is nothing else that we can do, but to (try to) enjoy the brand new last.fm

]]>
Dragan <![CDATA[Busby SEO Challenge]]> http://dragan.yourtree.org/blog/en/2008/06/22/busby-seo-challenge/ 2008-06-22T17:18:17Z 2008-06-22T17:18:17Z internet Here is an interesting find : Busby SEO Challenge.

Friend of mine is participating in challenge where you are competing with other participants on who will score no.1 position on Google for "Busby SEO Challenge" phrase, and award is quite nice too - $5000 :)

]]>
Dragan <![CDATA[Firefox3 download day side effects - getfirebug.com is down]]> http://dragan.yourtree.org/blog/en/2008/06/17/firefox3-download-day-side-effects-getfirebugcom-is-down/ 2008-06-17T22:01:12Z 2008-06-17T22:01:12Z internet Getfirebug.com is currently unavailable from Europe.
It seams that FF3 is not compatible with latest stable version of firebug (1.0) but you must use some of the beta versions.

At least, it seams that firebug has a lot of users, ant that certainly is a good thing.

]]>
Dragan <![CDATA[Erlang, the future of Web Apps?]]> http://dragan.yourtree.org/blog/en/2008/06/08/erlang-the-future-of-web-apps/ 2008-06-08T06:40:02Z 2008-06-08T06:40:02Z internet Programming erlang There is a lot of buzz around Erlang these days, and there is a reason to it - Erlang has native solutions for most common problem of todays large web apps:

-Erlang is distributed
-Thus, Erlang is easy to scale
-Erlang comes with built in mnesia database, which can also be distributed
(and it even comes with transaction support)

Erlang is process based language, and programmers from the world of sequential languages must change they mind set rapidly in order to fully understand and take advantage of Erlang.

On the other hand, Erlang is fairly simple language with just a few built in functions an it could take you just a few days to get a grip on it.

and if you dont trust me, you should probably trust guys at Google. Here is one of the topics form this years Google's scalability conference in Seattle:

Scalable Wikipedia with Erlang by Thorsten Schuett, Zuse Institute Berlin

Abstract:

Global online services at Amazon, eBay, Myspace, YouTube, or Google serve millions of customers with tens of thousands of servers located throughout the world. At this scale, components fail continuously and it is difficult to maintain a consistent state while hiding failures from the application.

Peer-to-peer protocols provide availability by replicating services among peers, but they are mostly limited to write-once/read-many data sharing. To extend them beyond the typical file sharing, the support of fast transactions on distributed hash tables (DHTs) is an important yet missing feature.

We will present a distributed key/value store based on a DHT that supports consistent writes. Our system comprises three layers:

* a DHT layer for scalable, reliable access to replicated data,
* a transaction layer to ensure data consistency in the face of concurrent write operations,
* an application layer with an extremely high access rate.

For the application layer, we selected a distributed, scalable Wiki with full transaction support. We will show that our Wiki outperforms the public Wikipedia in terms of served page requests per second and we will discuss how the development of the distributed code benefited from the use of Erlang.

Also Apache built their new document based database called Couch DB on top of Erlang, and Facebook implemented their online chat system in Erlang, so if you think about it, there must be something good about that language.
So why not learn it?

]]>
Dragan <![CDATA[Applying ajax to our applications]]> http://dragan.yourtree.org/blog/en/2008/06/02/applying-ajax-to-our-applications/ 2008-06-02T12:08:59Z 2008-06-02T12:08:59Z ajax personal Ajax

Is there a better way to start a week?
:)

]]>
Dragan <![CDATA[Quote of the day - Andy Budd on Usability]]> http://dragan.yourtree.org/blog/en/2008/06/02/quote-of-the-day-andy-budd-on-usability/ 2008-06-02T01:35:07Z 2008-06-02T01:35:07Z css usability Andy Budd on CSS, usability and stuff like that:

But I do think that in this world where I've got a PS3 at home that performs live texture-mapping rendering in 3D, on the fly, why we can't get a browser that can render rounded corners on a box in 2008. You know, we should all have jet packs here! A rounded corner box or multiple background images shouldn't be rocket science.

Rest of the article here..

]]>
Dragan <![CDATA[Fancy javascript intro in 55 lines of code]]> http://dragan.yourtree.org/blog/en/2008/05/26/fancy-javascript-intro-in-55-lines-of-code/ 2008-05-26T00:25:32Z 2008-05-26T00:25:32Z ajax Javascript Tonight I was supposed to do some boring database related stuff, but instead I got some ideas about
playing with table cells, random access and opacity.

Result is quite interesting, and it shows true power of Javascript. I suppose it would take lot more trouble to do something similar in flash, and if even if it could be done, this method gives you lot more control.
(For example you can add specific onmouse effects/events on some table cells ;) )

So, here it is, 55 linse of javascript, no framework used:

ss2

Demo:
http://dragan.yourtree.org/projects/javascript-intro/

UPDATE

and now something even more crazy than our last example:
really nice mouse effect in just 18 lines.
(using prototype though :) )

ww2

Demo:
http://dragan.yourtree.org/projects/js-mouse-grid/

I'm starting to wonder, is it possible to make, lets say 400x400 "display" made from 1x1 table cells and make an javascript demo, like they did in the 90's...
You know, plasmas, rotating cubes, etc.. :)

]]>
Dragan <![CDATA[rop off - part 2]]> http://dragan.yourtree.org/blog/en/2008/02/23/rop-off-part-2/ 2008-02-23T00:25:12Z 2008-02-23T00:25:12Z personal internet few months ago we wrote about guys that stole our design.

now, someone stole our entire copy :D

us:

DevPulse is web development and consulting agency based in Belgrade specialized to offer you highly professional web solutions and consulting services on building your Internet identity and your web applications.
Over last few years we had successfully worked with with clients in our country and abroad and gain serious amount of experience in managing medium to large web applications, interface design, rich Internet applications (RIA) and Ajax, search engine optimization (SEO) and building custom CMS solutions.

We can also offer you services in visual identity building (graphic and logo design) and Internet marketing

http://devpulse.net/

them:

Hyper Max is web development and consulting agency specialized to offer you highly professional web solutions and consulting services on building your Internet identity and your web applications.

Over last few years we had successfully worked with clients in our country and abroad and gain serious amount of experience in managing medium to large web applications, interface design, rich Internet applications (RIA) and PHP, Asp. net, search engine optimization (SEO), building custom CMS solutions and open source customizations .

We can also offer you services in visual identity...

http://www.hypermaxsolutions.com

rip_off2.jpg

come on guys, is it really that hard to sit down and write couple lines of original text?

]]>