Tools Blog Learn Quizzes Smile API Log In / Sign Up
Tools Blog Learn Quizzes Smile API Log In / Sign Up
We have updated our privacy policy to let you know that we use cookies to personalise content and ads. We also use cookies to analyse our traffic and we share information about your use of our site and application with our advertising and analytics partners. By using this website or our application you agree to our use of cookies. Learn more about the way this website uses cookies or remove this message.

Proper communication between JavaScript in WKWebView and SWift 3.0

October 14, 2016 Difficulty: 20 / 50
swift-js-wkwebview-poker-game

In this tutorial I want to share my experience related to WebViews in Swift 3.0 and explain how I managed to communicate back and forth between the JavaScript and native code.

In my project I needed to be able to store content in the UserDefaults persistent storage and later make that available to the JavaScript code for off-line usage

Read Full Article...

3D Cube Flip Effect for WOW.js

November 12, 2015 Difficulty: 10 / 50
cubes

Hi there, It’s cool CSS animations day!
I did this for a customer a few days ago and thought it would be nice to share it.
For those of you who are not familiar with WOW.js, it is a cool JavaScript plugin, created by Matt Aussaguel that reveals animations when you scroll.
While Wow.js plays nicely with animate.css the former CSS generator doesn’t have a 3D flip effect and that’s what I needed for my project. So… here’s the demo

Read Full Article...

How to backup Ubuntu and restore it using "dd"

October 26, 2015 Difficulty: 20 / 50
Codepunker-dead-hard-drive

DD is a Unix and Unix-like utility that is primarily used to convert and copy files. One really useful use-case for dd is that it can "pack" entire partitions into one single image file, thus allowing users to recover entire disks by "unpacking" and restoring a file-system in case of hardware failure.

To create a full backup for a partition the command you need to run is straight-forward. The size of the resulting image file will be the same as the size of your partition so make sure you have enough free space on the drive you are placing your backup... also, please avoid placing your image file on the same drive that you're backing up.

Read Full Article...

The Basics of Time and Date in PHP and MySQL

July 14, 2015 Difficulty: 20 / 50
date-time-php-mysql

In this tutorial we will go through doing basic operations with Date/Time functions in PHP and MySQL and learn how to keep time zones in sync inside an application. We'll start by understanding why application level synchronization between the MySQL and PHP time zones is necessary.

Read Full Article...

Basics of class visibility and Object Inheritance

June 14, 2015 Difficulty: 20 / 50
inheritance

In today's tutorial I will try to explain two of the basic principles of Object Oriented Programming in PHP - class visibility and object inheritance.

I remember that when I started out I had difficulties understanding these things, so in this tutorial I'll try to expose a different angle for looking at some of the confusing aspects of OOP. Hopefully this approach will make everything clearer for you as it did for me ages ago.

Read Full Article...

1 2 3 4 5 6 7 8 9 10
Better Docs For A Better Web - Mozilla Developer Network

Alerts

2017-01-17 - The php_wddx_push_element function in ext/wddx/wddx.c in PHP before 5.6.29 and 7.x before 7.0.14 allows remote attackers to cause a denial of service (out-of-bounds read and memory corruption) or possibly have unspecified other impact via an empty boolean element in a wddxPacket XML document. Read more ...
2017-01-17 - The get_icu_value_internal function in ext/intl/locale/locale_methods.c in PHP before 5.5.36, 5.6.x before 5.6.22, and 7.x before 7.0.7 does not ensure the presence of a '\0' character, which allows remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via a crafted locale_get_primary_language call. Read more ...

See All Entries...