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.

Send emails with attachments using JavaScript

October 16, 2016 Difficulty: 15 / 50
mail-with-javascript

A few days ago a client asked me if I could send out emails with attachments using client side code only. At first I laughed, asking myself why would anyone want to do that, but then I thought: "Who cares! Whatever the client wants!". In the end I did find out that this was caused because of the hosting environment that he used which didn't allow any type of server-side code to be executed (Sooo weird!).

Read Full Article...

Develop your own MVC application in PHP

October 14, 2016 Difficulty: 35 / 50
railroad-traffic-controller-lights

In this tutorial I will show you how easy it is to create your own MVC application in PHP without using a framework. MVC or model-view-controller is an architectural pattern which is a fancy phrase for 'a method of structuring your application' so that you can write reusable code and maintainable code.

Read Full Article...

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...

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

Alerts

2017-05-23 - The zend_string_extend function in Zend/zend_string.h in PHP through 7.1.5 does not prevent changes to string objects that result in a negative length, which allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact by leveraging a script's use of .= with a long string. Read more ...
2017-02-16 - The bcpowmod function in ext/bcmath/bcmath.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 accepts a negative integer for the scale argument, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted call. Read more ...

See All Entries...