Tutorial by Examples: er

If you're in a hurry and want to quickly get a speed boost PLUS save some power, go into Power Save Mode. It's in the File menu, bottom-most option in that menu. File -> Power Save Mode Note: this will disable some powerful features like syntax highlighting, code analysis, auto-completing thing...
let label = UILabel.init(frame: CGRect(x: 0, y:0, width: 100, height: 40)) label.backgroundColor = .lightGray let attributedString = NSMutableAttributedString.init(string: "Apply UnderLining") attributedString.addAttribute(NSUnderlineStyleAttributeName, value: 1, range: NSRange.init...
Simply add an attribute to the controller action [Route("product/{productId}/customer")] public IQueryable<Product> GetProductsByCustomer(int productId) { //action code goes here } this will be queried as /product/1/customer and productId=1 will be sent to the controll...
Everything in Python is an object. Each object has some special internal methods which it uses to interact with other objects. Generally, these methods follow the __action__ naming convention. Collectively, this is termed as the Python Data Model. You can overload any of these methods. This is comm...
HTMLUnitDriver HTMLUnitDriver is the most lightweight implementation of headless(GUI-less) browser for Webdriver based on HtmlUnit. It models HTML documents and provides an API that allows you to invoke pages, fill out forms, click links, etc. just like you do in your normal browser. It supports J...
Changing the order (or position) was possible in Bootstrap 3 using the push pull classes. In Bootstrap 4, the push pull classes still work, and additionally flexbox order can be used. In Bootstrap 4, the push pull classes are now push-{viewport}-{units} and pull-{viewport}-{units} and the xs- infix...
Given that the data directory of the server is empty: The server is initialized. SSL certificate and key files are generated in the data directory. The validate_password plugin is installed and enabled. The superuser account 'root'@'localhost' is created. The password for the superuser is set ...
To reveal the default "root" password: shell> sudo grep 'temporary password' /var/log/mysqld.log Change the root password as soon as possible by logging in with the generated temporary password and set a custom password for the superuser account: shell> mysql -uroot -p mysql...
It is a good practice to add comments that describe the code. It is helpful for others and even for the coder when returned later. A single line can be commented using the % symbol or using the shortkey Ctrl+R. To uncomment a previously commented line remove the % symbol or use shortkey Crtl+T. W...
While handling not in sub-query with null in the sub-query we need to eliminate NULLS to get your expected results create table #outertable (i int) create table #innertable (i int) insert into #outertable (i) values (1), (2),(3),(4), (5) insert into #innertable (i) values (2), (3), (null) s...
It's possible to pass variables from your server into Pug for dynamic content or script generation. Pug templates can access variables passed to the res.render function in Express (or pug.renderFile if you are not using Express, the arguments are identical). index.js let colors = ["Red",...
Content interpolated with bracket syntax will be evaluated for code, the output of which is included in your HTML output. title follows the basic pattern for evaluating a template local, but the code in between #{and } is evaluated, escaped, and the result buffered into the output of the template...
Interpolating values is helpful if you need to pass a server-side variable to client-side JavaScript (or other languages that require it). In the case of variables, numbers, strings, and the like, you can pass these types of variables directly into your JavaScript with bracket syntax plus an explan...
It may be necessary to nest HTML tags inside of each other. Element interpolation is done in a syntax similar to variable interpolation; square brackets instead of curly braces are used here. The syntax of interpolated HTML elements is identical to the implementation of normal HTML elements. index....
function a(x = 5) { "use strict"; } is invalid JavaScript and will throw a SyntaxError because you cannot use the directive "use strict" in a function with Non-Simple Parameter list like the one above - default assignment x = 5 Non-Simple parameters include - Default a...
Use case: just one action which should return a plain (text) content as-is: public function actionAsXML() { $this->layout = false; Yii::$app->response->format = Response::FORMAT_XML; return ['aaa' => [1, 2, 3, 4]];; } Pre-defined response formats are: FORMAT_HTM...
In the following we will install Plesk Onyx on Windows Server (2016) using the Plesk Installer GUI. Preparations For installing Plesk we need a running Windows Server (2012/2016) installation. The Hardware recommendation is a minimum of 2GB RAM and 30GB free disk space. Have a look at the official...
strComputer = "." instances = 0 processName = "chrome.exe" Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colProcess = objWMIService.ExecQuery("Select * from Win32_Process") For Each objProcess in colP...
The sample command can be used to simulate classic probability problems like drawing from an urn with and without replacement, or creating random permutations. Note that throughout this example, set.seed is used to ensure that the example code is reproducible. However, sample will work without expl...
One of the most critical parts of dealing with NMS code is being able to support mulitple Minecraft versions. There are numerous ways to do this, but a simple solution is to use this code to store the version as a public static field: public static final String NMS_VERSION = Bukkit.getServer().getC...

Page 376 of 417