Tutorial by Examples: st

- name: Installing Oracle Java and support libs apt: pkg={{ item }} with_items: - python-software-properties - oracle-java8-installer - oracle-java8-set-default - libjna-java
We have a table that includes of countries so we create a model that called countrylist model <?php namespace app\models; use Yii; /** * This is the model class for table "countrylist". * * @property integer $id * @property string $iso * @property string $name * @p...
The following procedure is a generic one which will be used to log all errors in an application to a common error log table. CREATE OR REPLACE PROCEDURE log_errors ( p_calling_program IN VARCHAR2, p_error_code IN INTEGER, p_error_description IN VARCHAR2 ) IS PRAGMA AUTONOMOUS_TRANSAC...
Open a new command line or terminal window and create a clean folder for testing. Protractor needs two files to run, a spec file and a configuration file. Let's start with a simple test that navigates to the todo list example in the AngularJS website and adds a new todo item to the list. Copy the...
TestNG allows defining groups which can include other groups. MetaGroups logically combine one or more group(s) and control the execution of the @Testmethods belonging to those groups. In below example there are various @Test methods belonging to different group(s). Few are specific to particular s...
Create a new browser bookmark, for example, in Chrome click the star icon at the right in the address bar, make sure the Folder is Bookmarks Bar, and then click the Edit... button: In the edit box that opens paste the following code as the URL: javascript:(function(){var root=(window.location.pa...
If you were to hide a link by setting display: none in the CSS then screen readers wouldn’t find it. Instead, we position it absolutely, with clipping. CSS .offscreen { position: absolute; clip: rect(1px 1px 1px 1px); /* for Internet Explorer */ clip: rect(1px, 1px, 1px, 1px); padding: 0; b...
There are a few way's to install WebSocket's to your project. Here are some example's: npm install --save ws or inside your package.json using: "dependencies": { "ws": "*" },
To add ws to your file's simply use: var ws = require('ws');
1. Include the font in your Xcode project. 2. Make sure that they are included in the Target Membership column Click on the font from the navigator, and check if the font included. 3. Check if the font included as Resource in your bundle click on your Xcode project file, select "Build P...
Install symfony correctly as guided above. Start symfony server if you are not installed in www directory. Ensure http://localhost:8000 is working if symfony server is used. Now it is ready to play with simplest example. Add following code in a new file /src/AppBundle/Controller/MyController.p...
You can create a new cron entry by simply typing crontab -e on the command line. If it's the first time you want to edit your crontab(le), you will be prompted with an editor selection: no crontab for <user> - using an empty one Select an editor. To change later, run 'select-editor'. ...
Using the Swift class Mirror works if you want to extract name, value and type (Swift 3: type(of: value), Swift 2: value.dynamicType) of properties for an instance of a certain class. If you class inherits from NSObject, you can use the method class_copyPropertyList together with property_getAttrib...
If you want to upload .ipa file to itunesconnect without integrating developer account in Xcode and you want to use application loader. then you can generate .ipa with iTunes . Step 1 :- Select device inplace of simulator. Step 2 :- Go to Product -> select Archive Step 3 :- After complited...
<ul> <li v-for="n in 10">{{11 - n}} pigs are tanning at the beach. One got fried, and </ul> https://jsfiddle.net/gurghet/3jeyka22/
Before we begin, let's define some CSS for the examples. This is the head section of our sample. I always use border-radius and background-color when I'm testing, because it makes seeing cell divisions simple without adding any border size which could affect the size of the cells. <head> ...
using NUnit.Framework; namespace MyModuleTests { [TestFixture] public class MyClassTests { [TestCase(1, "Hello", true)] [TestCase(2, "bye", false)] public void MyMethod_WhenCalledWithParameters_ReturnsExpected(int param1, string para...
Some examples to understand the workflow of using Go C Bindings What In Go you can call C programs and functions using cgo. This way you can easily create C bindings to other applications or libraries that provides C API. How All you need to do is to add a import "C" at the beginning o...
Prerequisites git clang and clang++ 3.4^ or gcc and g++ 4.8^ Python 2.6 or 2.7 GNU Make 3.81^ Get source Node.js v6.x LTS git clone -b v6.x https://github.com/nodejs/node.git Node.js v7.x git clone -b v7.x https://github.com/nodejs/node.git Build cd node ./configure make -jX su...
If we are using method sendStickyBroadcast(intent) the corresponding intent is sticky, meaning the intent you are sending stays around after broadcast is complete. A StickyBroadcast as the name suggests is a mechanism to read the data from a broadcast, after the broadcast is complete. This can be ...

Page 232 of 369