• Branching Model: clean-up those repos

    Usually, most rookie developers don’t use a VCS (Versioning Control System), like SVN or GIT, in this post I won’t talk about the benefits of using one. This post is dedicated to who are already using a VCS without using a branching model. So, what’s a branch? A branch is a separate development line, where you or your […]

    /

  • Versioning Numbers, make them meaningful

    The version number itself, and more generally the way you manage it, is most of the time underestimated because it’s considered something trivial.It is used to give a chronological order to the software releases and it conveys the useful information about the state and the impact of the release. I can think only of two major way to assign a version number: […]

    /

  • Retrieve JS Events: how to get all of them

    I was trying to face an apparently huge problem, collect all the events bound to the DOM elements. Then I realised that the main obstacle was the browser, yes the browser.Because of the way the browser manage the events. So I started my research about it, nothing came from Google or StackOverflow. This answer made me think and […]

    /

  • Browser Fingerprinting: There’s no place where you can hide

    The EFF, The Electronic Frontier Foundation, did research about the users’ privacy and how it is possible to identify the user in a quite unique way.The concept is based on gathering as much information as possible, like user agent (browser and version), resolution, plugins installed, timezone, language, and so on to create a message digest to identify the user / […]

    /

  • [ITA] Gli eventi onMouseEnter & onMouseLeave su tutti i browser

    Utilizzare gli eventi onMouseEnter & onMouseLeave non solo su Internet Explorer non sarà più un problema! Basta una funzioncina javascript e prototype. function extendMouseEvents(e) { var elem = e.element(); var target = e.relatedTarget; var p = stop = null; if (!target || (elem !== target && !target.descendantOf(elem))) { if (target && elem.descendantOf(target)) stop = target.childElements(); […]

    /

  • [ITA] Rimuovere le entità HTML (unhtmlentities)

    Ecco un modo veloce per rimuovere tutte le entità html da una stringa: function unhtmlentities($string) { $string = preg_replace(‘~&#x([0-9a-f]+);~ei’, ‘chr(hexdec(“\\1”))’, $string); $string = preg_replace(‘~&#([0-9]+);~e’, ‘chr(“\\1”)’, $string); $trans_tbl = get_html_translation_table(HTML_ENTITIES); $trans_tbl = array_flip($trans_tbl); return strtr($string, $trans_tbl);} questa funzione sostituisce sia le entità numeriche che quelle testuali.

    /