…using throughout, as it is consistent with the terminology used by the technologies discussed. What kind of tasks can be processed in the background? Tasks that: are not essential for the basic functionality of the web application can't be run in the request/response cycle since they are slow (I/O intensive,…
…using my Meeting Planner app as a real-life example. Every step along the way, I'll release the Meeting Planner code as open-source examples you can learn from. I'll also address startup-related business issues as they arise.Recently, I asked if our startup series has inspired any of your own entrepreneurial ideas…
…using package managers like NPM with the help of the following commands: npm install matter-js You can also get a link to the library from a CDN and directly include it in your projects like this: <script src="https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.18.0/matter.min.js"></script> Matter.js frequently releases updates which might require you to make slight modifications…
…using ngMessages, the markup for the input element will look similar to the following code:<form name="formValidation"> <label>Username</label> <input type="text" name="username" ng-model="inputname" ng-minlength="6" ng-maxlength="12" required> <p ng-show="formValidation.username.$error.minlength">Username should have at least 6 characters.</p> <p ng-show="formValidation.username.$error.maxlength">Username should have at most 12 characters.</p> <p ng-show="formValidation.username.$error.required">Providing a username is mandatory.</p> </form>You will also need…
…using just CSS. If you are using AngularJS in one of your projects, you can also use the ngAnimate module to add animation to it in the Angular way.The ngAnimate module allows you to add CSS as well as JavaScript-based animations to your projects. The CSS-based animations include keyframes and…
…using jQuery in your projects. First, we'll look at getting and setting up the library, and then we'll jump right into using it to change the content on a page. You'll learn how to use jQuery to manipulate elements, including changing styles and attributes, and then you'll go on to…
…using the set_userdata method. On the other hand, you can also mark an existing session variable as a flashdata variable. In that case, you need to use the mark_as_flash method, as shown in the above code.Finally, we redirect the user to the getflash method that shows how to use flashdata…
…using the rotate(body, rotation) method. The rotation is relative to the current angle of the body, and it will not impart any angular velocity to it. The rotation angle is specified in radians. You can also scale a body by using the scale(body, scaleX, scaleY, [point]) method. The parameters scaleX…
…using three Yii2 plugins: Chiliec's Yii2 Voting Extension 2Amigos Yii2 Disqus Comments Extension Kartik's Yii2 Social Extension They make it relatively fast and easy to build a powerful social community on Yii2. I've created a model called Item which represents an object that you want users to vote on, comment…
…using built-in CodeIgniter APIs. We’ll see how to create and save zip files on the server and how you can make them available for download to end users as well.The second half includes a discussion of how you can unzip the file. To demonstrate that, we’ll build a custom page…