Tutorial by Examples: dis

This option disables the fat lock spin code in Java, allowing threads that block trying to acquire a fat lock go to sleep directly. Objects in Java become a lock as soon as any thread enters a synchronized block on that object. All locks are held (that is, stayed locked) until released by the locki...
This option disables the garbage collector strategy changes. Compaction heuristics and nursery size heuristics are not affected by this option. By default, the garbage collection heuristics are enabled. Usage: -XXdisableFatSpin
Global basis: Blueprint API configuration is defined in /config/blueprint.js file. You can enable or disable all three types of blueprint routes for all controllers from there. As example, if you want to disable blueprint shortcut routes for all of your controllers but want to keep both acti...
The current frame rate (in FPS, Frames Per Second) and total number of SKNodes in the scene (nodeCount, each sprite is an SKNode but other objects in the scene are also SKNodes) can be shown in the bottom right hand corner of the view. These can be useful when turned on (set to true) for debugging ...
One Button Swift class ViewController: UIViewController { @IBAction func showAlertButtonTapped(sender: UIButton) { // create the alert let alert = UIAlertController(title: "My Title", message: "This is my message.", preferredStyle: UIAlertCo...
class MyDataObject extends DataObject { private static $singular_name = 'My Object'; private static $plural_name = 'My Objects'; ... }
class MyDataObject extends DataObject { private static $db = array( 'Name' => 'Varchar' ); private static $has_one = array( 'OtherDataObject' => 'OtherDataObject' ); private static $summary_fields = array( 'Name', 'OtherDat...
Hadoop Distributed File System (HDFS) is a Java-based file system that provides scalable and reliable data storage that is designed to span large clusters of commodity servers. HDFS, MapReduce, and YARN form the core of Apache™ Hadoop®. HDFS is designed to be highly fault-tolerant, which is achieve...
Use the yum command to manage packages in Enterprise Linux-based operating systems: yum install php This installs a minimal install of PHP including some common features. If you need additional modules, you will need to install them separately. Once again, you can use yum to search for these pac...
To display "Some Text", use the command: echo Some Text This will output the string Some Text followed by a new line. To display the strings On and Off (case insensitive) or the empty string, use a ( instead of white-space: echo(ON echo( echo(off This will output: ON off ...
The DISTINCT clause after SELECT eliminates duplicate rows from the result set. CREATE TABLE `car` ( `car_id` INT UNSIGNED NOT NULL PRIMARY KEY, `name` VARCHAR(20), `price` DECIMAL(8,2) ); INSERT INTO CAR (`car_id`, `name`, `price`) VALUES (1, 'Audi A1', '20000'); INSERT INTO CA...
Enabled directory index means that if someone access to any folder which don't contains index.php , index.html, index.htm or any other default file defined in DirectoryIndex in apache configuration then all files in that folder will be listed in browser if you try to visit that page. Often director...
One potential implementation of Redis as a backend caching utility is the django-redis-cache package. This example assumes you already have a Redis server operating. $ pip install django-redis-cache Edit your settings.py to include a CACHES object (see Django documentation on caching). CACHES ...
One potential implementation of Redis as a backend caching utility is the django-redis package. This example assumes you already have a Redis server operating. $ pip install django-redis Edit your settings.py to include a CACHES object (see Django documentation on caching). CACHES = { 'de...
ARC can be disabled for individual files by adding the -fno-objc-arc compiler flag for each file. Conversely it can be added in Targets ▸ Build Phases ▸ Compile Sources
If you just want to get data, but not modify anything, you can turn off change tracking and proxy creation. This will improve your performance and also prevent lazy loading. Bad Example: using(var context = new Context()) { return await context.Set<MyEntity>().ToListAsync().ConfigureAw...
The advantages of using Session State are 1)Better security 2)Reduced bandwidth The disadvantages of using Session state are 1)More resource consumption of server. 2)Extra code/care if a Web farm is used(we will discuss this shortly) **Session State Modes** ...
Developing Meteor apps usually means developing multi-client reactivity, which requires collaboration tools. The following tools have proven to be popular within the Meteor community. Google Hangouts - Video conferencing and chat. Zenhub.io - Kanban boards for GitHub. InVision - Collaborative ...
Some applications that use Hibernate generate a huge amount of SQL when the application is started. Sometimes it's better to enable/disable the SQL log in specific points when debugging. To enable, just run this code in your IDE when you are debugging the aplication: org.apache.log4j.Logger.getLog...

Page 7 of 18