Tutorial by Examples: a

Consider the array declared as real x(10) Then we have three aspects of interest: The whole array x; Array elements, like x(1); Array sections, like x(2:6). Whole arrays In most cases the whole array x refers to all of the elements of the array as a single entity. It may appear in exec...
Create new script section. I call that sa(Script Anonymuos) that meens for me generate JavaScript section with anonymuous function call inside. <script type="text/javascript"> $(function () { $END$ }); </script> If in your project still use old jQuery you c...
var _activitiesGridName = ''; function SetupActivityGridOnload(gridName) { var btnsToHide = [ 'AddserviceappointmentButton', 'AddcampaignresponseButton', 'AddappointmentButton' ]; _activitiesGridName = gridName; setTimeout(function () { //...
Firstly it's important to note that when a new socket is created it is assigned a unique Id which is retrieved by calling socket.id. This id can then be stored within a user object and we can assign an identifier such as a username which has been used in this example to retrieve user objects. /** ...
QBChatDialog dialog = DialogUtils.buildPrivateDialog("USER_ID of other user"); QBRestChatService.createChatDialog(dialog).performAsync(new QBEntityCallback<QBChatDialog>() { @Override public void onSuccess(QBChatDialog result, Bundle par...
Code to receive Chat dialogs from Quickblox server of Logged in user (Example with listview) private void receiveChatList() { QBRequestGetBuilder requestBuilder = new QBRequestGetBuilder(); requestBuilder.setLimit(100); QBRestChatService.getChatDialogs(null, requestBuilder).performAsync( ...
To achieve this objective what we need is Foreach Loop Container: To Iterate over a directory to pick files. Data Flow Task: To load data from the CSV (Flat File Source) to the database table (OLE DB Destination). Flat File Source: For text or csv files. OLE DB Destination: To select the dest...
Here is what is require to complete this Objective. Data Flow Task: Inside this task we will perform data import. OLE DB Source: To select the source of data i.e SQL server database table. Flat File Destination: Destination in which we want to load the data. Steps Drag and drop a Data Flo...
The following example sets a promise to be consumed by another thread: { auto promise = std::promise<std::string>(); auto producer = std::thread([&] { promise.set_value("Hello World"); }); auto fut...
This code implements a version of std::async, but it behaves as if async were always called with the deferred launch policy. This function also does not have async's special future behavior; the returned future can be destroyed without ever acquiring its value. template<typename F> auto asyn...
std::packaged_task bundles a function and the associated promise for its return type: template<typename F> auto async_deferred(F&& func) -> std::future<decltype(func())> { auto task = std::packaged_task<decltype(func())()>(std::forward<F>(func)); aut...
<h:form> <p:dialog widgetVar="myDialog"></p:dialog> <p:commandButton onclick="PF('myDialog').show();" /> </h:form>
datatable.js in GitHub Reporitory FunctionDetailsbindPaginator: function()Binds the change event listener and renders the paginatorloadLiveRows: function()Loads rows on-the-fly when scrolling livepaginate: function(newState)Ajax paginationfetchNextPage: function(newState)Loads next page asynchronou...
# install sbt with homebrew (if you didn't) brew install sbt # - create a new scala project # - name your project name when asked like: hello-world sbt new sbt/scala-seed.g8 # go to the new project directory that you named cd hello-world # run sbt to open the sbt shell sbt # run you...
In general, there are two types of Bash scripts: System tools which operate from the current working directory Project tools which modify files relative to their own place in the files system For the second type of scripts, it is useful to change to the directory where the script is stored. T...
this will accept any type with a method named GetLength that takes nothing and returns an int: ((^a : (static member GetLength : int) ()))
Such a group is made of radiobuttons that share a control variable so that no more than one can be selected. # control variable var = tk.IntVar(parent, 0) # group of radiobuttons for i in range(1,4): tk.Radiobutton(parent, text='Choice %i' % i, value=i, variable=var).pack() tk.Button(p...
Yank all lines containing TODO into a register by using append operation :global/TODO/yank A Here, we are searching for a TODO keyword globally, yanking all lines into register a (A register appends all lines to a register). NOTE: It is in general a good practice to clear a register before perf...
If constraints for std::promise and std::future are not met an exception of type std::future_error is thrown. The error code member in the exception is of type std::future_errc and values are as below, along with some test cases: enum class future_errc { broken_promise = /* the t...
How can I print hello world 5 times? 5.times{ println "hello world" }

Page 1012 of 1099