David Walsh

IP Geolocation and Threat Intelligence API: ipdata (Sponsored)

An IP address is a simple, numeric piece of information that gets passed to a server, but that IP address can provide a wealth of information with ipdata. With ipdata you can learn user location, language, currency, and much more! Quick Hits ipdata is an IP Geolocation and Threat Intelligence API. It helps you locate […]

The post IP Geolocation and Threat Intelligence API: ipdata (Sponsored) appeared first on David Walsh Blog.

Duplicated Argument Names

Oftentimes we override or monkey patch functions and, in many cases, there are arguments we don’t care too much about. A common practice for those arguments is using _ for argument names — it’s a generally accepted and known practice for “this isn’t important”. I started thinking about multiple useless arguments and if you could […]

The post Duplicated Argument Names appeared first on David Walsh Blog.

Validate CSP from Command Line

The content security policy spec has been an amazing front-end security tool to help prevent XSS and other types of attacks. I’d go as far to say that every site should implement as specific CSP as possible. If you aren’t familiar with CSPs, here’s a quick example: Content-Security-Policy: default-src ‘self’; img-src *; media-src media1.com media2.com; […]

The post Validate CSP from Command Line appeared first on David Walsh Blog.

Goals For 2020

Every new year brings about a sense of optimism that the next 365 can bring about big, positive changes in different phases of life. That’s no exception for me and this blog. I did pretty well with last year’s goals, so I thought I’d push myself again with a new set of goals. Be a […]

The post Goals For 2020 appeared first on David Walsh Blog.

JavaScript ~~

JavaScript is loaded with tiny syntax tricks to accomplish useful effects. For example, explore any codebase to see !! being used to convert a value to a boolean value. Have you seen ~~ before? Let’s have a look at what it does! We can employ ~~ to trigger a Math.floor operation with those special characters: […]

The post JavaScript ~~ appeared first on David Walsh Blog.

2019 Year in Review

The beginning of every year starts out with all of us setting ambitious goals — goals being personal and professional. Many of us rarely complete half of those goals, most abandoning them by the end of the year. In January of this year I published my list of goals for the year. Let’s have a […]

The post 2019 Year in Review appeared first on David Walsh Blog.