JavaScript Archives - Simone Rescio yet another coder blog Mon, 06 Feb 2023 14:54:51 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.1 #HACKDEV17 project SPID smart button https://simonerescio.it/en/2017/12/hackdev17-project-spid-smart-button https://simonerescio.it/en/2017/12/hackdev17-project-spid-smart-button#respond Fri, 08 Dec 2017 20:10:40 +0000 https://simonerescio.it/?p=3799 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

The article #HACKDEV17 project SPID smart button seems to be the first on Simone Rescio.

]]>
https://simonerescio.it/en/2017/12/hackdev17-project-spid-smart-button/feed 0
Chrome changes its center of gravity, reference is not the document but the viewport https://simonerescio.it/en/2017/03/chrome-changes-its-center-of-gravity-reference-is-not-the-document-but-the-viewport https://simonerescio.it/en/2017/03/chrome-changes-its-center-of-gravity-reference-is-not-the-document-but-the-viewport#respond Tue, 28 Feb 2017 23:13:58 +0000 https://simonerescio.it/?p=3173 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

The article Chrome changes its center of gravity, reference is not the document but the viewport seems to be the first on Simone Rescio.

]]>
https://simonerescio.it/en/2017/03/chrome-changes-its-center-of-gravity-reference-is-not-the-document-but-the-viewport/feed 0
Lunh valid Credit Card number generator, for arbitrary BIN https://simonerescio.it/en/2016/09/lunh-valid-credit-card-number-generator-for-arbitrary-bin https://simonerescio.it/en/2016/09/lunh-valid-credit-card-number-generator-for-arbitrary-bin#respond Wed, 21 Sep 2016 23:12:00 +0000 https://simonerescio.it/?p=2712 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

The article Lunh valid Credit Card number generator, for arbitrary BIN seems to be the first on Simone Rescio.

]]>
https://simonerescio.it/en/2016/09/lunh-valid-credit-card-number-generator-for-arbitrary-bin/feed 0
Mind the dollar while debugging, jQuery vs Command Line API https://simonerescio.it/en/2016/09/mind-the-dollar-in-chrome-inexistent-selector-differences-among-jquery-and-command-line-api https://simonerescio.it/en/2016/09/mind-the-dollar-in-chrome-inexistent-selector-differences-among-jquery-and-command-line-api#respond Sat, 03 Sep 2016 14:29:44 +0000 https://simonerescio.it/?p=2658 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

The article Mind the dollar while debugging, jQuery vs Command Line API seems to be the first on Simone Rescio.

]]>
https://simonerescio.it/en/2016/09/mind-the-dollar-in-chrome-inexistent-selector-differences-among-jquery-and-command-line-api/feed 0
You have not misunderstood closures and variables scope, Chrome debugger is trolling you https://simonerescio.it/en/2016/05/you-have-not-misunderstood-closures-and-variables-scope-chrome-debugger-is-trolling-you https://simonerescio.it/en/2016/05/you-have-not-misunderstood-closures-and-variables-scope-chrome-debugger-is-trolling-you#respond Sun, 22 May 2016 20:40:50 +0000 https://simonerescio.it/?p=2316 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

The article You have not misunderstood closures and variables scope, Chrome debugger is trolling you seems to be the first on Simone Rescio.

]]>
https://simonerescio.it/en/2016/05/you-have-not-misunderstood-closures-and-variables-scope-chrome-debugger-is-trolling-you/feed 0
YOURLS spam clean up with a few lines of JavaScript https://simonerescio.it/en/2014/10/yourls-spam-clean-up-with-few-lines-of-javascript https://simonerescio.it/en/2014/10/yourls-spam-clean-up-with-few-lines-of-javascript#respond Sun, 12 Oct 2014 22:10:16 +0000 https://simonerescio.it/?p=1377 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

The article YOURLS spam clean up with a few lines of JavaScript seems to be the first on Simone Rescio.

]]>
https://simonerescio.it/en/2014/10/yourls-spam-clean-up-with-few-lines-of-javascript/feed 0
Eight things to care about for a mobile site on Windows Phone 8 https://simonerescio.it/en/2014/09/eight-things-to-care-for-mobile-on-windows-phone-8 https://simonerescio.it/en/2014/09/eight-things-to-care-for-mobile-on-windows-phone-8#respond Mon, 22 Sep 2014 10:59:18 +0000 https://simonerescio.it/?p=1315 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

The article Eight things to care about for a mobile site on Windows Phone 8 seems to be the first on Simone Rescio.

]]>
https://simonerescio.it/en/2014/09/eight-things-to-care-for-mobile-on-windows-phone-8/feed 0
Windows XP Bookmarks ★ https://simonerescio.it/en/2014/07/windowsxp-bookmarks-%e2%98%85 https://simonerescio.it/en/2014/07/windowsxp-bookmarks-%e2%98%85#respond Tue, 22 Jul 2014 22:22:13 +0000 http://simonerescio.it/?p=1070 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 ★

The article Windows XP Bookmarks ★ seems to be the first on Simone Rescio.

]]>
https://simonerescio.it/en/2014/07/windowsxp-bookmarks-%e2%98%85/feed 0
Random latins generator to fast fill form https://simonerescio.it/en/2014/06/random-latins-generator-to-fast-fill-form https://simonerescio.it/en/2014/06/random-latins-generator-to-fast-fill-form#respond Fri, 06 Jun 2014 21:29:58 +0000 http://simonerescio.it/?p=971 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

The article Random latins generator to fast fill form seems to be the first on Simone Rescio.

]]>
https://simonerescio.it/en/2014/06/random-latins-generator-to-fast-fill-form/feed 0
Apply CSS styles based on device orientation https://simonerescio.it/en/2014/04/apply-css-styles-based-on-device-orientation https://simonerescio.it/en/2014/04/apply-css-styles-based-on-device-orientation#respond Wed, 09 Apr 2014 14:34:22 +0000 http://www.simonerescio.it/?p=126 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

The article Apply CSS styles based on device orientation seems to be the first on Simone Rescio.

]]>
https://simonerescio.it/en/2014/04/apply-css-styles-based-on-device-orientation/feed 0