Tutorial by Examples: st

To install/update MVC version, follow these steps: In visual studio, open the Package Manager console (use CTRL + Q, and type package manager console) In the console appearing, enter the following after the console cursor showing PM>: Install-Package Microsoft.AspNet.Mvc -Version 5.2.3...
load($id); // or load it by SKU // $sku = "microsoftnatural"; // $_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $sku); $stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product); print_r($stock->getData()); echo $stoc...
override func viewDidLoad() { super.viewDidLoad() NotificationCenter.default.addObserver(self, selector: Selector(("batteryStateDidChange:")), name: NSNotification.Name.UIDeviceBatteryStateDidChange, object: nil) NotificationCenter.default.addObserver(self, selector: Selecto...
SVN FreeBSD project use SVN as default SCM. Source could be download with svnlite software. Get Current cd /usr/src svnlite checkout https://svn.freebsd.org/base/head . Get Releases cd /usr/src svnlite checkout https://web.freebsd.org/base/release/11.0.0 . Tarball (http & ftp) You c...
Let's configure the destination directory for the root filesystem of your new FreeBSD (for example /usr/home/beastie/MODEDKERNEL). Add the following lines to /etc/src.conf to set it up: .if ${KERNCONF} == "MODEDKERNEL" DESTDIR?=/usr/home/beastie/MODEDKERNEL MODULES_OVERRID...
Install the world sudo make installworld KERNCONF=MODEDKERNEL Estimated time on Hasee Q540S: 5 minutes. Install the kernel sudo make installkernel KERNCONF=MODEDKERNEL Estimated time on Hasee Q540S: a few seconds.
// Default UINavigationBar appearance throughout the app [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor], NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-CondensedBold...
Tested with A.S. v1.4.1 but should work with newer versions too. Create a new Android Studio project using the project wizard (Menu:/File/New Project): Call it "cvtest1" Form factor: API 19, Android 4.4 (KitKat) Blank Activity named MainActivity You should have a cvtest1 dire...
Expression<Func<int, bool>> checkEvenExpression = i => i%2 == 0; // lambda expression is automatically converted to an Expression<Func<int, bool>>
Portsnap portsnap fetch portsnap extract updating ports tree with portsnap portsnap update schedule cron job for daily updates 0 3 * * * root /usr/sbin/portsnap cron SVN head cd /usr/ports svnlite checkout https://svnweb.freebsd.org/ports/head . quaterly FreeBSD Ports team freeze...
If you have found your software in the ports tree, now its the time to build it. Simple build and install with manual configuration cd /usr/ports/www/apache24 make make install Simple build and install with automatic configuration cd /usr/ports/www/apache24 make BATCH=yes make install ...
Three basic tools. nginx - free, open-source, high-performance HTTP server and reverse proxy, with high performance; gunicorn - 'Green Unicorn' is a Python WSGI HTTP Server for UNIX (needed to manage your server); supervisor - a client/server system that allows its users to monitor and control ...
cordova plugin add <plugin-name> Example: cordova plugin add cordova-plugin-camera The plugin should be installed in the root directory of the project. Note: Before adding the plugin replace the platform specific www folder content with the outer www folder in the root directory. Th...
cordova-plugin-battery-status - used for monitoring device's battery status. cordova-plugin-camera - provides an API for taking pictures and for choosing images from the system's image library. cordova-plugin-contacts - provides access to the device contacts database. cordova-plug...
[TestFixture] public class Tests { [Test] public void Test1() { Assert.That(true, Is.EqualTo(true)); } } A test fixture marks a class as containing tests.
This example implements a custom binding that toggles visibility (similar to the existing visible binding), but will utilize jQuery's fading API to animate the transition from visible to invisible. Custom binding definition: //Add a custom binding called "fadeVisible" by adding it as a p...
DIVIDE a INTO b c d Data item b, c, and d are changed as b/a, c/a and d/a. DIVIDE a INTO b GIVING c Data item c is changed as b/a. DIVIDE a BY b GIVING c Data item c is changed as a/b. DIVIDE a INTO b GIVING q REMAINDER r Data items q and r are set with results of b/a DIVIDE a BY b G...
PERFORM VARYING counter FROM 1 BY 1 UNTIL counter > 10 IF debug-override THEN EXIT PERFORM IF counter = 5 THEN EXIT PERFORM CYCLE PERFORM some-miracle END-PERFORM
This example is a custom binding that replaces text whenever an input value is updated. In this case, spaces will be replaced with "+". It is intended to be used alongside the existing value binding, and shows binding with an object literal. Sample markup with the replaceText binding: &l...
Using the IntDef#flag() attribute set to true, multiple constants can be combined. Using the same example in this topic: public abstract class Car { //Define the list of accepted constants @IntDef(flag=true, value={MICROCAR, CONVERTIBLE, SUPERCAR, MINIVAN, SUV}) //Tell the compi...

Page 259 of 369