Tutorial by Examples: l

This is a just a simple example of how to use GooglePlay Service's ActivityRecognitionApi. Although this is a great library, it does not work on devices that do not have Google Play Services installed. Docs for ActivityRecognition API Manifest <!-- This is needed to use Activity Recognition! -...
Add repository repositories { maven { url "https://github.com/QuickBlox/quickblox-android-sdk-releases/raw/master/" } } Add in Project Gradle for Chat Functionality dependencies { compile("com.quickblox:quickblox-android-sdk-chat:2.6.1&...
Create session with User & Sign In to QuickBlox Chat // Initialise Chat service QBChatService chatService = QBChatService.getInstance(); final QBUser user = new QBUser("garrysantos", "garrysantospass"); QBAuth.createSession(user, new QBEntityCallback<QBSession>()...
Detailed instructions on getting internet-explorer set up or installed.
First, create a new console project using Visual Studio and add the following .dlls to your project: DocumentFormat.OpenXml WindowsBase Next, compile and execute the following code: static void Main(string[] args) { // Create a Wordprocessing document. using ( WordprocessingDocumen...
You may find yourself needing to clone a row, maybe change a few attributes but you need an efficient way to keep things DRY. Laravel provides a sort of 'hidden' method to allow you to do this functionality. Though it is completely undocumented, you need to search through the API to find it. Using ...
Sherlock captures all your crashes and reports them as a notification. When you tap on the notification, it opens up an activity with all the crash details along with Device and Application info How to integrate Sherlock with your application? You just need to add Sherlock as a gradle dependency i...
A for loop iterate through items in an enumeration program EnumLoop; uses TypInfo; type TWeekdays = (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday); var wd : TWeekdays; begin for wd in TWeekdays do WriteLn(GetEnumName(TypeInfo(TWeekdays), Ord(wd))); ...
CREATE SCHEMA IF NOT EXISTS `backgammon`; USE `backgammon`; DROP TABLE IF EXISTS `user_in_game_room`; DROP TABLE IF EXISTS `game_users`; DROP TABLE IF EXISTS `user_in_game_room`; CREATE TABLE `game_users` ( `user_id` BIGINT NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(255) NOT N...
@SpringBootApplication @RestController public class SpringBootJdbcApplication { @Autowired private JdbcTemplate template; @RequestMapping("/cars") public List<Map<String,Object>> stocks(){ return template.queryForList("select * from c...
insert into game_users values(..., ..., ..., ...); insert into game_users values(..., ..., ..., ...); insert into game_users values(..., ..., ..., ...);
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...
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...
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...
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...
this will accept any type with a method named GetLength that takes nothing and returns an int: ((^a : (static member GetLength : int) ()))

Page 794 of 861