Category Development

Why Is Curl 52 Empty Reply From Server?

When a website is receiving an empty reply from a server, curl will return an empty response. This error can be caused by a conflicting set of factors. If the HTTPS connection is enabled, curl will also give the error…

How to Prevent Default Inside a Passive Event Listener

When writing a code that binds to an event, you need to make sure that you have passed the target parameter in the addEventListener() function. The target must be a mousewheel or scroll event to trigger the bind() method. If…

YouTube No-Cookie Option

YouTube No-Cookie Option YouTube has rolled out several new privacy features in the past couple weeks. One of these is a YouTube no-cookie option. By default, YouTube will leave no cookies in browsers of visitors who haven’t clicked play on…

Can’t PreventDefault Inside Passive Event Listener

The simplest way to fix this issue is to mark your events passive. In the case of a mouse wheel scroll event, you can use the ‘passive’ option and prevent default. If your target is passive, the scroll event will…

How to Use Friendly Captcha

Friendly Captcha is a proof-of-work based anti-bot solution that protects online services from spam and abuse. It is simple to use, and respects user privacy. It is a free service. It is also available for web developers to use in…