vineri, 28 ianuarie 2011

oile ca element de trafic

Oaia, ca animal, este foarte simpatic.
Oaia, ca metafora, nu. Metafora se foloseste cu sens peiorativ pentru indivizii care se bulucesc la un punct de trecere care se aglomereaza.
Acestia pot fi intalniti:
-la metrou - stau in dreptul usilor, desi nu coboara curand, iar culoarul din vagon este liber
-la escalantoare - se gramadesc la urcare sau coborare
-in traficul rutier - la intersectii blocate sau la cozile de la accidente cand incearca sa se bage in fata tuturor, de pe alta banda (bineinteles ca se incalca legislatia, dar cine sa-i amendeze?)

miercuri, 15 decembrie 2010

Despre case

Cu multumiri pentru Cip care a furnizat urmatoarele date:
- casa in "camp", destul de departe de Bucuresti
- alarma cu mai multe tipuri de senzori, informare prin SMS si control telefonic
- incalzire cu centrala cu peleti. Problema este ca atunci cand se opreste curentul, produce fum, nu stim daca mult sau putin.

vineri, 10 decembrie 2010

Browser History stealing for ad networks

http://www.h-online.com/security/news/item/History-stealing-for-ad-networks-1147735.html

History stealing for ad networks

Espionage Teaser It has been known for several years, that web sites can snoop around in visitors' browser history. This summer, two developers found a way of refining and simultaneously speeding up the method. History stealing is based on the marking of links clicked on in a browser. Clicked on links are indicated by a different colour than those not yet clicked on. While the web sites visited cannot be read out via JavaScript, a list of sites can be investigated to see whether visitors have already been there. The optimised JavaScript presented in May reportedly allows up to 30,000 URLs to be queried per second.

According to a report in Forbes, these approaches are now in active use. The most prominent example is YouPorn, which checks what other pornographic web sites its visitors have already been to. Overall, the research group from the University of California at San Diego, found an additional 46 sites employing this method in the fields of news, financial reports, sports and games. The university's research reportPDF not only describes the method, but also lists web sites using it.

Forbes says there is a tremendous difference between sites like YouPorn and the photo service PixMac, on the one hand, and the other services investigated. The first two included the scripts on their web sites themselves, while advertising service providers had added the script to the other web sites.

Advertising sellers are probably the ones most interested in surfer histories. If surfers come across a web site, they may not be interested in a particular topic; they may have only landed there from a search engine query. However, if their browser history contains other web sites of the same kind, it pays for advertisers to present the right ads.

Some web site operators were apparently surprised when the report found this code in their web sites. Interclick, which markets advertising, told Forbes it had used such a script for a limited time between March and October as an experimental method of checking some data sets it had purchased. Interclick stated that the results from this method proved not to be useful so they stopped using it. Such tests are quite common, though not usually as hidden. YouPorn also told Forbes it has since stopped snooping around in its surfers' histories.

miercuri, 3 noiembrie 2010

Music player in Ubuntu

The default one is Rythmbox.
You have to add the MP3 Plugin (when it starts for 1st time it says they aren't and shows a button to get them).

Besides the common features, it's not obvious how to repeat same melody.
Well, the solution I have is to search for it until remains the only one in list.
Then just Play.

It will be repeated if you have Repeat activated (CTRL+R).

luni, 1 noiembrie 2010

Replace with appereance number

Using Jedit, at replace can be put a BeanShell snippet.
If you have a file with:
a
ba
abaa

And want to be like:
a1
ba2
a3ba4a5

(eg: a file with same error message in many places and you want to uniquely identify them)

Then in Jedit do:
- in search field enter: a
- change the option to use BeanShell instead of text
- enter in replace field: i=1
- press replace all
- click on main window press undo
- back, in replace field put: _0+i++
(_0 is the searched string ; + is for unification of the strings, i++ increases the value of i by 1)
- press replace all

The every appearance of the searched text is replaced with the text and the number of appearance.

joi, 7 octombrie 2010

Alte aplicatii

Care ne fac munca mai usoara in Ubuntu:
- pentru ca folosesc intens partea de sus a ecranului, sters Panel-ul din partea de jos si aplicatiile se minimizeaza in partea de sus.
- am scos meniul text de pornit aplicatiile si
- Gnome Do
- Search, Recoll

vineri, 1 octombrie 2010

Bookmarks si RSS oriunde

Folosesc Google Bookmarks and Reader astfel incat am acces la acestea de oriunde am intrat pe Internet.
In FF mi-am pus 2 butoane aferente (bookmarklet) pentru a salva situl in contul meu de la Google.

Butonu de Bookmark are acest cod:
javascript:(function(){var%20a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();

Butonul de Subscribe are atasat acest cod:
javascript:var%20b=document.body;var%20GR________bookmarklet_domain='http://www.google.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.src='http://www.google.com/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{location='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)}