Category Archives: JavaScript

Javascript related article and solutions

#HACKDEV17 project SPID smart button

The web has revolutionized most aspects of our daily life in the private sector, the speed and ease that today’s big platforms provide for exchanging information to send messages and process purchases are proof of how these systems have made great strides in the last 20 years, unfortunately the same cannot be said for the … Continue reading #HACKDEV17 project SPID smart button

Chrome changes its center of gravity, reference is not the document but the viewport

Each system needs coordinates and references rules, when speaking ofĀ two dimensional systems we have for the Cartesian one a source point starting from which the elements grow positively to the right and upwards, if you remove height units you move down. Take for example the famous puzzle game Tetris, as the blocks pile up, when … Continue reading Chrome changes its center of gravity, reference is not the document but the viewport

Lunh valid Credit Card number generator, for arbitrary BIN

If you run your own payment page, you probably know by now that MasterCard’s new 2-seriesĀ BINs ranges are coming, andĀ having some test cards to run against validators is always good in order to check that front end update is going well, but where to get them? There are many websites that provideĀ generators that produce test … Continue reading Lunh valid Credit Card number generator, for arbitrary BIN

Mind the dollar while debugging, jQuery vs Command Line API

The number one reason jQuery is the most loved and usedĀ front end library of the wholeĀ internet is the handy DOM selection API that allows to use the CSS syntax to interact with page elements, andĀ the otherĀ convenient factor isĀ the alias $ (dollar sign) that is was unique and short enough (one character, dhu) to make it … Continue reading Mind the dollar while debugging, jQuery vs Command Line API

You have not misunderstood closures and variables scope, Chrome debugger is trolling you

Suppose you need to add a new feature to an existing and relatively complex module, inside you will find already declared several local variables such as external dependencies, and aliases for paths of particularly lengthy objects. The approach that I use when I have to explore a new component or flow is to set a … Continue reading You have not misunderstood closures and variables scope, Chrome debugger is trolling you

YOURLS spam clean up with a few lines of JavaScript

YOURLS, which stands forĀ Your Own URL Shortener, is a great open source platform to run a private URL shortener (a la bitly), itĀ allows great control over links structure and traffic monitoring for each short url, plus giving a “brand feeling” to links shared. I like things that work fast and simple, which is why Iā€™ve … Continue reading YOURLS spam clean up with a few lines of JavaScript

Eight things to care about for a mobile site on Windows Phone 8

Developing for the mobile web so far has been like exploring a small happy island, with some hidden dangers of course due to the high fragmentation of Android, but since the Android and iOS systems got the leading of the mobile market, with their default browsers based of WebKit, we had a moment to breath. … Continue reading Eight things to care about for a mobile site on Windows Phone 8

Windows XP Bookmarks ā˜…

End of support has come for Windows XP, onĀ 8th of April 2014Ā Microsoft officially discontinued critical security updates for the platform thus declaring its death, and now that it is gone…it has becomeĀ vintage! It was the most loved (not much maybe) and hated (a lot) OS worldwide for 12 long years, so paying a memory tribute … Continue reading Windows XP Bookmarks ā˜…

Random latins generator to fast fill form

When developing a web form, either for texting, buying or payment tasks we almost always have to manage a confirmation page that comes after the successful submit of the form data. If the page we have to manage is being built from scratches we have the opportunity to work on the html/css structure in a … Continue reading Random latins generator to fast fill form

Apply CSS styles based on device orientation

When developing web-apps for mobile a need that we encounter sooner or later is to supply specific styles to certain elements when the device rotates either in portrait or landscape mode. Being a CSS need the first method we will likely find while googling the subject is a CSS approach which uses the famous media … Continue reading Apply CSS styles based on device orientation