Shineyrock web design & consultancy

Shineyrock

Searched for: "using" / 1124 results

Site Authentication in Node.js: User Signup

…using MongoDB as your database. You will need to store user information in the database. To work with MongoDB, you will make use of Mongoose—a MongoDB modelling tool for Node.js. Setting up Mongoose is easy, like this.#app.js mongoose.Promise = global.Promise mongoose.connect('mongodb://localhost:27017/site-auth')At this point, let's set up our middleware.// 1 const…


10 Best HTML5 Sliders for Images and Text

…using an HTML5 slider. Because there are such a large number of sliders out there to choose from, I've pulled together, just for you, a list of the 10 best HTML5 sliders for images and text available at CodeCanyon.1. Ultimate 3D CarouselIf you’ve ever seen or used an actual slide carousel,…


Components in Vue.js

…using your code throughout your application.Let's say you have a blog application, and you would like to display a list of blog posts. Using a Vue component, you can do:<blog-post></blog-post>Vue handles the rest.Create a simple HTML page that mounts a Vue instance to your DOM element. You will use this…


Handling Forms in Vue.js

…using Vue-CLI. If you do not have Vue-CLI installed on your machine, you can do so by running:npm install -g vue-cliThat will install Vue-CLI globally on your machine. You can go ahead to create the project by running:vue init webpack vue-formsThat will create a new Vue project, using the Webpack…


Eloquent Mutators and Accessors in Laravel

…using the Post model. It should set the value of the name column to post title value since we've used the strtolower function in the corresponding mutator method. Accessors in Action To see accessors in action, let's go ahead and create a controller file app/Http/Controllers/AccessorController.php with the following contents: <?php…


Custom Events in Laravel

…using some other method to plug in your code that sends an email. In fact, you're on the luckier side as Laravel helps you to solve this problem using the event listener. Let's revise the app/Providers/EventServiceProvider.php file to look like the following. <?php namespace App\Providers; use Illuminate\Auth\Events\Registered; use Illuminate\Auth\Listeners\SendEmailVerificationNotification; use…


How to Download Files in Python

…using the urllib package or the requests library. This tutorial will discuss how to use these libraries to download files from URLs using Python.REQUESTS The requests library is one of the most popular libraries in Python. Requests allow you to send HTTP/1.1 requests without the need to manually add query…


How to Auto Update WordPress Salts

…using the URL above, which utilizes the secure HTTP protocol.This will effectively eliminate the chance of anyone intercepting the generated keys/salts when they are returned to you before being displayed in the browser.If your site is hosted on a remote server then to update the keys/salts you'll need to either…


Understanding Recursion With JavaScript

…using recursion. For example, a sequence like the Fibonacci sequence has a recursive definition. Each number in the sequence is the sum of the previous two numbers in the sequence. Problems that require you to build or traverse a tree-like data structure can also be solved with recursion. Training yourself…


Getting Started With Redux: Why Redux?

…using a counter, but usually state is an object const initialState = 0 const store = configureStore(reducer, initialState); Now we're going to listen to any changes in the store, and then console.log() the current state of the store. store.subscribe( () => { console.log("State has changed" + store.getState()); }) So how…


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.