Tutorial by Examples

Format and Usage: echo %cd% %cd% is a system variable that contains the current directory path
Format: cd "<path>" Example: cd "C:\Program Files (x86)\Microsoft Office" cd is an abbreviation for chdir and the two commands behave in the exact same way. For the sake of consistency, cd will be used throughout this topic. To navigate to the directory one leve...
cd by itself will not allow a user to move between drives. To move to a different drive, the /d option must be specified. e.g. Moving from C:\Users\jdoe\Desktop to D:\Office Work cd /d "D:\Office Work"
Usage to list all folders and files in the current directory: dir A target directory can also be specified: dir C:\TargetPath When specifying a path with spaces, it must be surrounded by quotes: dir "C:\Path With Spaces"
Install the NLog.Config package. (NuGet 3 users should install NLog and add the config manually.) Write to logger: using NLog; public class MyClass { private static Logger logger = LogManager.GetCurrentClassLogger(); public void MyMethod1() { logger.Trace("Sample trace mess...
layout.scss nav { ul { margin: 0; padding: 0; list-style: none; li { margin: 0 5px; } } } output nav ul { margin: 0; padding: 0; list-style: none; } nav ul li { margin: 0 5px; }
The following should be added to your global .gitconfig file [merge] tool = kdiff3 [mergetool "kdiff3"] path = D:/Program Files (x86)/KDiff3/kdiff3.exe keepBackup = false keepbackup = false trustExitCode = false Remember to set the path property to point to th...
[diff] tool = kdiff3 guitool = kdiff3 [difftool "kdiff3"] path = D:/Program Files (x86)/KDiff3/kdiff3.exe cmd = \"D:/Program Files (x86)/KDiff3/kdiff3.exe\" \"$LOCAL\" \"$REMOTE\"
[merge] tool = intellij [mergetool "intellij"] cmd = cmd \"/C D:\\workspace\\tools\\symlink\\idea\\bin\\idea.bat merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REM...
[diff] tool = intellij guitool = intellij [difftool "intellij"] path = D:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.2/bin/idea.bat cmd = cmd \"/C D:\\workspace\\tools\\symlink\\idea\\bin\\idea.bat diff $(cd $(dirname "$LOCAL") && pwd)/$(ba...
In C++, looping through a sequence container c can be done using indexes as follows: for(size_t i = 0; i < c.size(); ++i) c[i] = 0; While simple, such writings are subject to common semantic errors, like wrong comparison operator, or wrong indexing variable: for(size_t i = 0; i <= c.size(...
Options are used for adding capabilities such as "User-Agent". Example in C#: var options = new PhantomJSOptions(); options.AddAdditionalCapability("phantomjs.page.settings.userAgent", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0&qu...
First, add the following permissions to the manifest of your project in order to enable device storage access: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> ...
When updating multiple rows with different values it is much quicker to use a bulk update. UPDATE people SET name = (CASE id WHEN 1 THEN 'Karl' WHEN 2 THEN 'Tom' WHEN 3 THEN 'Mary' END) WHERE id IN (1,2,3); By bulk updating only one query can be sent to the ser...
GNU awk supports a sub-string extraction function to return a fixed length character sequence from a main string. The syntax is *substr(string, start [, length ])* where, string is source string and start marks the start of the sub-string position you want the extraction to be done for an optio...
To Convert you date in dd/MM/yyyy format into milliseconds you call this function with data as String public long getMilliFromDate(String dateFormat) { Date date = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy"); try { date = formatter.p...
Turn on Debug from menu - view > debug it return some error during start debug, show pop out notification and open launch.json from this popup notification It is just because of launch.json not set for your workspace. copy and paste below code in to launch.json //new launch.json your old lau...
If the response has already been created and set on the response object outside the regular rendering process (e.g., in an observer), the 'no-renderLayout' flag can be set on the action controller using Mage::app()->getFrontController()->getAction()->setFlag('','no-renderLayout'); ...
Mage_Core_Block_Template Mage_Core_Block_Text_List Mage_Core_Block_Messages Mage_Core_Block_Text_Tag Mage_Core_Block_Text Mage_Page_Block_Template_Links All blocks are either structural blocks or All blocks are either structural blocks or content blocks. Example: core/text_list Example ...
From an action controller: $this->getLayout()->getBlock('head')->getTemplate(); /** * Get specified tab grid */ public function gridOnlyAction() { $this->_initProduct(); $this->getResponse()->setBody( $this->getLayout()->createBlock('adminhtml/catalog_product_edit_...

Page 958 of 1336