Tutorial by Examples: er

Let's create a new project, I'm choosing Single View Application for better demonstration Drag a page view controller to the storyboard, there are 2 things you should change after that: Set the page view controller as initial view controller Change the transition style to scroll ...
<cfscript> api_request = GetHttpRequestData(); api = createObject("component","myAPI").init(); </cfscript> <cfif api_request.method is 'GET'> <cfoutput>#api.welcome()#</cfoutput> <cfelseif api_request.method is 'POST'> ...
Components and functions variables this local arguments Custom tags attributes thisTag caller Global Scopes Server Application Session Request Scopes request variables form url cgi
Getting all serial ports information from Windows is often necessary, you may want to give the user a choice of ports to open, or check if your device is connected. In addition, some ports just cannot be opened using a "COMx" string and need to be opened using a device name. Some older v...
As the powershell is installed by default on every windows system from 7/2008 and above it can be used for more complex calculations: @echo off set "expression=(2+3)*10/1000" for /f %%# in ('"powershell %expression%"') do set result=%%# echo %result% Mind the additional do...
Here can be found the most comprehensive math library that emulates pen and paper calculations and allows working with bigger numbers. Here are another examples of pen and paper emulations: ADD , Comparison , Multiply Some math functions implementations can be found here.
File structure / -src/ awesome.service.ts another-awesome.service.ts awesome.module.ts -index.ts -tsconfig.json -package.json -rollup.config.js -.npmignore Service and module Place your awesome work here. src/awesome.service.ts: export ...
The same URl for different http methods acts differently. Below is a table depicting the same. HTTP VERBURLDESCRIPTIONGET/api/studentsReturns all studentsGET/api/students/5Returns details of Student Id =5POST/api/studentsAdd a new studentPUT/api/students/5Update student with Id=5DELETE/api/students...
<?php // if device exists, update timestamp $stmt = $mysqli->prepare("UPDATE new_devices SET nd_timestamp=? WHERE nd_deviceid=?"); $stmt->bind_param('ss', $now, $device); $stmt->execute(); //echo "Affected Rows: ".$stmt->affected_rows; // T...
Each scenario tests one behaviour Scenarios are written in a declarative way Avoid incidental details inside the scenario Omit the obvious Avoid conjunctive steps Keep your scenarios short Don’t have to many scenarios in the same feature Use descriptive scenario names Have only one When st...
You can re-set variables within media queries and have those new values cascade wherever they are used, something that isn't possible with pre-processor variables. Here, a media query changes the variables used to set up a very simple grid: HTML <div></div> <div></div> &...
Celery requires a broker to handle message-passing. We use RabbitMQ because it’s easy to setup and it is well supported. Install rabbitmq using the following command sudo apt-get install rabbitmq-server Once the installation is complete, create user, add a virtual host and set permissions. sud...
When trying to filter some record using multiple value in a selector. First you must use the px:PXMultiSelector in the aspx page instead of the normal px:PXSelector. Then after you must create yourself a graph containing at least three views and a view delegate. you will also need at least a basic ...
This example shows how to override ToString method in generated class // create an Assembly and new type var name = new AssemblyName("MethodOverriding"); var dynAsm = AppDomain.CurrentDomain.DefineDynamicAssembly(name, AssemblyBuilderAccess.RunAndSave); var dynModule = dynAsm.DefineDyn...
Following example will help to give equal space to an item in GridLayout. ItemOffsetDecoration.java public class ItemOffsetDecoration extends RecyclerView.ItemDecoration { private int mItemOffset; private int spanCount = 2; public ItemOffsetDecoration(int itemOffset) { ...
This example will help to have the Edit text with the icon at the right side. Note: In this just I am using setCompoundDrawablesWithIntrinsicBounds, So if you want to change the icon position you can achieve that using setCompoundDrawablesWithIntrinsicBounds in setIcon. public class MKEditTe...
This method will help to get the Java string from C++ string. jstring getJavaStringFromCPPString(JNIEnv *global_env, const char* cstring) { jstring nullString = global_env->NewStringUTF(NULL); if (!cstring) { return nullString; } jclass strC...
Here we can find some useful method using PackageManager, Below method will help to get the app name using package name private String getAppNameFromPackage(String packageName, Context context) { Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATE...
with the number 100 in cell A1, the results of these calculations =DEC2BIN(A1) =DEC2OCT(A1) =DEC2HEX(A1) =BIN2DEC(A1) =OCT2DEC(A1) =HEX2DEC(A1) is 1100100 144 64 4 64 256 note that the first 3 functions are left justified, as they are strings, and the last 3 are r...
This has been mentioned in other hybrid topics again and again. The old-school, but easy method to run Powershell is by: echoing the Powershell script into a temporary script Execute the temporary script Optionally remove the temporary script This is a sample script. @echo off echo power...

Page 407 of 417