I am the one who uses package managers to install/update software and believes that is actually a good way. There are some people who don't use them at all and relay on manual installation only using make, make install. Well, this approach works perfectly until software doesn't have a lot of dependencies which are difficult to carry out manually.. That happened to me when I tried manually to install dsniff under Debian. The command apt-cache search dsniff didn't find the required package and therefore I downloaded sources and tried to install them manually. No success, coz there were required many other libraries to be installed which on the other hand couldn't not be installed due to conflicts with already installed software..
Since I am a newbie to debian I didn't know that there are stable and unstable branches in the package manager and so didn't find dsniff under stable branch. Here is a way how to install dsniff:
first update your package list with unstable software:
Recently on the project I am working on we had a problem regarding changing stylesheets. There was a big tree and we needed to have as fast as possible way of changing styles of all nodes in the tree. One solution is to construct a jquery selector, iterate through all the nodes and change styles respectively. It is a nice approach at the first hand but it turns out to be an inefficient one. For this reason we decided to change global styles, thereby not spending running time on js loops.
I measured performance for different approaches. Below are results. First I generated a page with 10 thousand div tags on it:
Then I tested running time in IE7 and Mozilla 3.5:
jQuery selectors
global styles
jQuery.rule
IE7
2834 ms
15 ms
17 ms
Mozilla
1108 ms
10 ms
6 ms
Personally I prefer "global styles" approach cause in case when one has to change many styles at once it works faster than other methods and forces browser to update its stylesheet collection only once. Used libraries:
For a long time I wanted to open my own blog but because of lack of time couldn't do that until now. Congratulations, first step is done! Hopefully I'll keep this blog updated in the future. lets see...