Detect iPad Mini in HTML5

Play a stereo audio file and compare the accelerometer response when volume is high on the right channel and on the left channel – iPad2 had mono speakers whereas iPad Mini has built-in stereo speakers. Need your help to gather the data please visit this page and help me collect data for this crazy idea. … Read more

How to hide UINavigationBar 1px bottom line

For iOS 13: Use the .shadowColor property If this property is nil or contains the clear color, the bar displays no shadow For instance: let navigationBar = navigationController?.navigationBar let navigationBarAppearance = UINavigationBarAppearance() navigationBarAppearance.shadowColor = .clear navigationBar?.scrollEdgeAppearance = navigationBarAppearance For iOS 12 and below: To do this, you should set a custom shadow image. But for … Read more

What is the difference between screenX/Y, clientX/Y and pageX/Y?

Here’s a picture explaining the difference between pageY and clientY. Same for pageX and clientX, respectively. pageX/Y coordinates are relative to the top left corner of the whole rendered page (including parts hidden by scrolling), while clientX/Y coordinates are relative to the top left corner of the visible part of the page, “seen” through browser … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)