Tutorial by Examples

Suppose you want to see if a certain set of sales prices makes sense for a store. The items originally cost $5, so you don't want to accept the sale if the sales price is less for any of them, but you do want to know what the new price is otherwise. Calculating one price is easy: you calculate the...
Detailed instructions on getting php-7 set up or installed.
To open a link call openURL. Linking.openURL(url) .catch(err => console.error('An error occurred ', err)) The preferred method is to check if any installed app can handle a given URL beforehand. Linking.canOpenURL(url) .then(supported => { if (!supported) { console.log('Unsuppor...
You can detect when your app is launched from an external URL. componentDidMount() { const url = Linking.getInitialURL() .then((url) => { if (url) { console.log('Initial url is: ' + url) } }).catch(err => console.error('An error occurred ', err)) } To enable this...
You can set flash data in controller just using this syntax $this->session->set_flashdata('message', 'Message you want to set'); Here 'message' is identifier for access data in view. You can Set more than one message by just changing identifier. for ex $this->session->set_flashdata...
You can simply access the fashdata in view like this <?php echo $this->session->flashdata('message'); ?> For access multiple message just change identifier For Ex. <?php echo $this->session->flashdata('my_alert'); ?> <?php echo $this->session->flashdata('my_wa...
If you have multiple asynchronous tasks that needs to occur one after the other, you will need to chain together their promise objects. Here is a simple example: function First() { console.log("Calling Function First"); return $.get("/ajax/GetFunction/First"); } fu...
/// <summary> /// Simple Get method /// </summary> /// <returns> Json formated data </returns> public string GetJsonData1() { IOperations _Obj = ClsOperations.GetOperations(); string url = "http://1.2.3.4:1234/Services/rest/Call...
/// <summary> /// Post Method with input parameter /// </summary> /// <returns> Json formated data </returns> public string GetJsonData2() { IOperations _Obj = ClsOperations.GetOperations(); string url = "http://1.2.3.4:...
/// <summary> /// Post Method with Input/ data to post in JSON format /// </summary> /// <returns> Json formated data </returns> public string GetJsonData3() { IOperations _Obj = ClsOperations.GetOperations(); string url = "htt...
/// <summary> /// Post Method with Input/ data to post in JSON format Or you can send dictionary as shown in previous methods /// </summary> /// <returns> Json formated data </returns> public void GetJsonData4() { IOperations _Obj = ClsOpera...
/// <summary> /// Post Method with Input/ data to post in JSON format Or you can send dictionary as shown in previous methods /// </summary> /// <returns> Json formated data </returns> public DataTable GetJsonData6() { ...
/* By Default if you send only url then automatically it will recognize as GET Method and if service having parameters with, Then automatically will convert to POST Method. But I observed some of the services having only URL but are POST Type. For the purpose you can forcefully make the method as yo...
First, why do we need lxml ? lxml.etree is a generic API for XML and HTML handling. It aims for ElementTree compatibility and supports the entire XML infoset. It is well suited for both mixed content and data centric XML. Its generality makes it the best choice for most applications. The lxml libr...
ng-inspect is a light weight Chrome extension for debugging AngularJS applications. When a node is selected from the elements panel, the scope related info is displayed in the ng-inspect panel. Exposes few global variables for quick access of scope/isolateScope. $s -- scope of the select...
Any Acumatica application developer spends a great deal of their time writing BQL code. At the same time, not everybody knows the underlying details of how BQL types work under the hood. At the heart of BQL lay two key methods: Parse() and Verify(), declared by the IBqlCreator interface. Most of th...
Attoparsec makes parsing binary data trivial. Assuming these definitions: import Data.Attoparsec.ByteString (Parser, eitherResult, parse, take) import Data.Binary.Get (getWord32le, runGet) import Data.ByteString (ByteString, readFile) import ...
Here is a list of actions which can be triggered in the Midnight Commander filesystem browsing mode by using function keys on your keyboard. F1 Displays help F2 Opens user menu F3 Displays the contents of the selected file F4 Opens the selected file in the internal file editor F5 Copies th...
There is a container view S which width is 100 and height is wrap to all subviews height. there are four subviews A,B,C,D arranged from top to bottom. Subview A's left margin is 20% width of S, right margin is 30% width of S, height is equal to width of A. Subview B's left margin is 40, width...
Midnight Commander has a built in editor which is started by F4 function key when over the desired file in the browse mode. It can also be invoked in standalone mode by executing mcedit <filename> Here is a list of actions which can be triggered in the edit mode. F1 Displays help F2 Saves ...

Page 1216 of 1336