Tutorial by Examples: c

Input file Mary had a little lamb its fleece was white as snow and everywhere that Mary went the lamb was sure to go. Pig Word Count Code -- Load input from the file named Mary, and call the single -- field in the record 'line'. input = load 'mary' as (line); -- TOKENIZE splits the line...
View content: adb shell ls \$EXTERNAL_STORAGE adb shell ls \$SECONDARY_STORAGE View path: adb shell echo \$EXTERNAL_STORAGE adb shell echo \$SECONDARY_STORAGE
Goal: <FruitBasket xmlns="http://www.fruitauthority.fake"> <Fruit> <FruitName>Banana</FruitName> <FruitColor>Yellow</FruitColor> </Fruit> <Fruit> <FruitName>Apple</FruitName> <FruitColor>Red<...
GC (Garbage Collector) is responsible for cleaning our garbage. While GC cleans our garbage, he removes the unused objects from the managed heap which cause heap fragmentation. When GC is done with the removal, it performs a heap compression (defragmintation) which involves moving objects on the he...
You can select the last day of month. SELECT (date_trunc('MONTH', ('201608'||'01')::date) + INTERVAL '1 MONTH - 1 day')::DATE; 201608 is replaceable with a variable.
using System.ComponentModel.DataAnnotations.Schema; [ComplexType] public class BlogDetails { public DateTime? DateCreated { get; set; } [MaxLength(250)] public string Description { get; set; } } public class Blog { ... public BlogDetails BlogDetail { get...
Any attempt to modify a const object results in undefined behavior. This applies to const variables, members of const objects, and class members declared const. (However, a mutable member of a const object is not const.) Such an attempt can be made through const_cast: const int x = 123; const_cas...
The change the definition of a db column, the query below can be used for example, if we have this db schema users ( firstname varchar(20), lastname varchar(20), age char(2) ) To change the type of age column from char to int, we use the query below: ALTER TABLE users CHANGE age...
In Unix, files and directories beginning with a period usually contain settings for a specific program/a series of programs. Dot files are usually hidden from the user, so you would need to run ls -a to see them. An example of a dot file is .bash_history, which contains the latest executed commands...
You will need a domain name from a registrar. In the gh-pages branch of your project repository, or the main branch of your username.github.io repository, create a CNAME file with the contents www.yourdomain.com - the canonical domain. At your registrar's domain configuration page, point your doma...
Following function encapsulates code for using CreateProcess Windows API for launching other programs. It is configurable and can wait until calling process finishes or return immediately. Parameters: FileName - full path to executable Params - command line parameters or use empty string Fold...
C# Maximizing the window driver.Manage().Window.Maximize(); This is fairly straightforward, ensures that our currently active window is maximized. Position of the window driver.Manage().Window.Position = new System.Drawing.Point(1, 1); Here we essentially move the currently active window t...
Use the $Resource variable to reference static resources. <img src="{!$Resource.myImage}" /> Can be used in conjunction with the URLFOR function to reference files inside of a zipped static resource: <apex:includeScript value="{!URLFOR($Resource.myResources, 'js/app.js')...
Exec sp_configure 'show advanced options' ,1 RECONFIGURE GO -- Show all configure sp_configure
Exec sp_configure 'backup compression default',1 GO RECONFIGURE;
sp_configure 'fill factor', 100; GO RECONFIGURE; The server must be restarted before the change can take effect.
USE master; GO -- Set recovery every 3 min EXEC sp_configure 'recovery interval', '3'; RECONFIGURE WITH OVERRIDE;
EXEC sp_configure 'xp_cmdshell', 1 GO RECONFIGURE
EXEC sp_configure "number of checkpoint tasks", 4
This is the image of project structure in Android studio: This is the image of project structure of nativescript project: As you see they are same. so we can write java code in nativescript as we write in android studio. We want to Add Toast to the default app of nativescript. after creating...

Page 442 of 826