Tutorial by Examples: ant

Consider this example: private void button1_Click(object sender, EventArgs e) { label1.Text = RunTooLong(); } This method will freeze UI application until the RunTooLong will be completed. The application will be unresponsive. You can try run inner code asynchronously: private void butt...
Suppose, that we have three users : The Administrator of the database > admin The application with a full access for her data > read_write The read only access > read_only With below queries, you can set access privileges on objects created in the future in specified schema. ALTER ...
XML <House> <LivingRoom> <plant name="rose"/> </LivingRoom> <TerraceGarden> <plant name="passion fruit"/> <plant name="lily"/> <plant name="golden duranta"/> ...
Open Visual Studio 2015, navigate to Tools → Extensions → Online and search for Antlr. Download the extension ANTLR Language Support (Created by Sam Harwell) and restart Visual Studio. Create new Console Application Project. Right click on the Solution → Manage Nuget Packages for Solution → Brows...
From android 6.0 this permission needs to grant dynamically, <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> Throwing below permission denied error on 6.0, Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRoo...
[![Sample equation][1]][1] sympy provides its solution as a Python set of expressions in terms of parametric variables, as shown here in the final line. >>> from sympy.solvers.diophantine import diophantine >>> from sympy import var >>> x,y,z=var('x y z') >>>...
grant all privileges on schema_name.* to 'new_user_name'@'%' identified by 'newpassword'; Attention: This can be used to create new root user
Avoid this Anti-Pattern var myDeferred = $q.defer(); $http(config).then(function(res) { myDeferred.resolve(res); }, function(error) { myDeferred.reject(error); }); return myDeferred.promise; There is no need to manufacture a promise with $q.defer as the $http service alread...
A constant expression is an expression that yields a primitive type or a String, and whose value can be evaluated at compile time to a literal. The expression must evaluate without throwing an exception, and it must be composed of only the following: Primitive and String literals. Type ca...
From Xcode menu open: Product > Scheme > Edit Scheme. On your Environment Variables set OS_ACTIVITY_MODE = disable
Pre build controls to handle Grids, Inputs, Graphs, Trees, and so on. It supports an event model that preserves state over HTTP, which benefits line-of-business Web application development. The Web Forms-based application provides dozens of events that are supported in hundreds of server co...
It makes it easier to manage complexity by dividing an application into the model, the view, and the controller (Separation of concerns). It does not use view state or server-based forms. This makes the MVC framework ideal for developers who want full control over the behavior of an applica...
Web Forms: Complex Page Life Cycle, whenever a Request is made to the server there are at least 5 methods to execute previous to the event handler. Dificult to work with Client-Side frameworks like JQuery or Angular. Hard to work with Asyncronous Javascript and XML (AJAX) Viewstate handling T...
Locking on an stack-allocated / local variable One of the fallacies while using lock is the usage of local objects as locker in a function. Since these local object instances will differ on each call of the function, lock will not perform as expected. List<string> stringList = new List<st...
Bullet This one particularly blew my mind. The bullet gem helps you kill all the N+1 queries, as well as unnecessarily eager loaded relations. Once you install it and start visiting various routes in development, alert boxes with warnings indicating database queries that need to be optimized will p...
A phantom type parameter has a phantom role. Phantom roles cannot be declared explicitly.
Navigate to phpMyAdmin by URL http://your_ip/phpmyadmin or http://localhost/phpmyadmin Login using username root and root password. Click on Databases tab. Enter database name, select collation (you may leave it to default) and click create. Click on Privileges tab and select "Add user a...
This is probably the most famous example of a sort optimization making use of Perl's functional programming facilities, to be used where the sort order of items depend on an expensive function. # What you would usually do @sorted = sort { slow($a) <=> slow($b) } @list; # What you do to ma...
Host: server.example.com HTTP/1.1 GET /authorize?response_type=token&client_id=[APP_KEY]&state=[OPTIONAL_STATE] &redirect_uri=https%3A%2F%2Fclient%2Eexample%2Ecom%2Fcb&scope=[OPTIONAL_SCOPES] Source
Ant provides some built-in properties Property NameValuebasedirthe absolute path of the project's basedirant.filethe absolute path of the buildfile.ant.versionthe version of Antant.project.default-targetthe name of the currently executing project's default targetant.project.namename of the projecta...

Page 10 of 11