Uploading Files With Rails and Dragonfly

Some time ago I wrote an article Uploading Files With Rails and Shrine that explained how to introduce a file uploading feature into your Rails application with the help of the Shrine gem. There are, however, a bunch of similar solutions available, and one of my favorites is Dragonfly—an easy-to-use uploading solution for Rails and…

Details

PyQuery: Python’s jQuery

In this tutorial, you’ll have a look at PyQuery, a Python library which allows you to make jQuery queries on XML documents. Syntactically it’s quite similar to jQuery, and if you are familiar with jQuery it should be easier to follow. Getting Started With PyQuery To get started with PyQuery, install the Python package using…

Details

My Laravel Package Building Workflow

Packages are a really important part of the Laravel experience (just like with any other framework). Whatever we need to do, there’s probably already a package for it out there; ready for a composer require to bring some magic in. Some weeks ago, I had an idea for a new one. I work for AdEspresso,…

Details

Managing Cron Jobs Using Python

In this tutorial, you’ll learn the importance of cron jobs and why you need them. You’ll have a look at python-crontab, a Python module to interact with the crontab. You’ll learn how to manipulate cron jobs from a Python program using the python-crontab module. What Is Cron? During system administration, it’s necessary to run background…

Details

Making a Sliding Side Navigation Menu for Responsive Designs

In this tutorial, you will be creating an expandable side navigation menu with JavaScript and CSS. The final product will appear as shown below: The Markup To get started, let’s add some markup for our side menu: <div id= »sideNavigation » class= »sidenav »> <a href= »javascript:void(0) » class= »closebtn » onclick= »closeNav() »>&times;</a> <a href= »# »>About</a> <a href= »# »>Features</a> <a href= »# »>Contact Us</a> </div> <nav class= »topnav »> <a…

Details

Les navigateurs supportent Grid Layout

L’une des spécifications CSS les plus attendues du moment, le module Grid Layout, vient tout juste d’être implémentée sur la dernière version du navigateur Safari (10.1 sur bureau et 10.3 sur mobile). À ce jour, ce module est donc officiellement reconnu sur l’ensemble des navigateurs les plus courants : Internet Explorer 10+ et Edge Chrome…

Details

How to Use OpenGL ES in Android Apps

Almost every Android phone available in the market today has a graphics processing unit, or GPU for short. As its name suggests, this is a hardware unit dedicated to handling calculations that are usually related to 3D graphics. As an app developer, you can make use of the GPU to create complex graphics and animations…

Details

How to Program With Yii2: Running Cron Services

What You’ll Be Creating If you’re asking, « What’s Yii? » check out my earlier tutorial: Introduction to the Yii Framework, which reviews the benefits of Yii and includes an overview of what’s new in Yii 2.0, released in October 2014. In this Programming With Yii2 series, I’m guiding readers in use of the Yii2 Framework for…

Details

How Does Git Reset Work?

Git Git Basics: The Three Trees Ed Wassermann The Different Reset Options Explained Now let’s look at the different options. Git reset –hard This goes the whole nine yards. It will first move HEAD and update the index with the contents of the commit HEAD is now pointing at. Then it will update the working…

Details