Tutorial by Examples

Pipes supports simple binary communication between a client and a server In this example: a client connects and sends a FirstMessage the server receives and answers DoSomething 0 the client receives and answers DoNothing step 2 and 3 are repeated indefinitely The command data type exchange...
Just type below one line code from where you want user to rate/review your application. SKStoreReviewController.requestReview()
During coding, unexpected errors do arise frequently enough, which requires debugging and testing. But sometimes the errors are indeed expected and to bypass it, there is the Try..Catch..Throw..Finally..End Try block. To manage an error correctly, the code is put into a Try..Catch block, whereby th...
Storyboard: Initial viewController: an empty viewController with a button to present the GameViewController GameViewController: the typical GameViewController of the "Hello World" Sprite-kit template. Goal: I want to present the first viewController from my SKScene game with the corre...
validate Validates whether the project is correct and all the required information are available for the build. initialize Initializes the build environment, e.g. sets properties or creates directories. generate-sources Generates source code to be processed in the 'compile' phase. proces...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <grou...
Parsing input is best achieved through larger parser functions that are composed of smaller, single purpose ones. Let's say we wished to parse the following text which represents working hours: Monday: 0800 1600. We could split these into two "tokens": the day name -- "Monday&q...
Support Portrait and Landscape both type of image Drawing and other subviews can be merged in my case I'm adding label to draw { CGSize fullSize = getImageForEdit.size; CGSize sizeInView = AVMakeRectWithAspectRatioInsideRect(imgViewFake.image.size, imgViewFake.bounds).size; CGFl...
Here is an example of a test using Pax Exam. package com.example.project.test; import static org.junit.Assert.*; import static org.ops4j.pax.exam.CoreOptions.*; import javax.inject.Inject; import org.junit.Test; import org.junit.runner.RunWith; import org.ops4j.pax.exam.Configuration;...
To create a TCP connection in Qt, we will use QTcpSocket. First, we need to connect with connectToHost. So for example, to connect to a local tcp serveur: _socket.connectToHost(QHostAddress("127.0.0.1"), 4242); Then, if we need to read datas from the server, we need to connect the signal...
Create a TCP server in Qt is also very easy, indeed, the class QTcpServer already provide all we need to do the server. First, we need to listen to any ip, a random port and do something when a client is connected. like that: _server.listen(QHostAddress::Any, 4242); connect(&_server, SIGNAL...
One of the best Linux distributions currently for Raspberry Pi (from now on, "RPi") is Arch Linux. This web shows the installation for: RPi2. ARMv7 architecture (32 bits). RPi3. There are two options: ARMv7 architecture (32 bits) or AArch architecture (64 bits). This t...
You can configure your Linux (or macOS) system in order to tie in an identifier <hostname> to some other system's IP address in your network. You can configure it: Systemwide. You should modify the /etc/hosts file. You just have to add to that file a new line containing: the remote sys...
In Ubuntu and Debian sudo apt-get install tmux In macOS brew install tmux
This example will show how get started with Inverion of Control using Autofac with a relatively simple project, closely following the official getting started docs. Create a console application from File -> New -> Project -> Console Application Install Autofac for this project. Yo...
ProGuard is a tool used in the building process to optimize and obfuscate the Java code of your APK, and also remove unused classes. The resulting APK when using ProGuard will have a smaller size and will be harder to reverse-engineer (decompilation). ProGuard can be used too in Xamarin.Android app...
You made a great app and tested it in Debug, with good results. Everything was working fine! But then, you decided to prepare your app for release. You set up MultiDex, ProGuard and Linker, and then, it stopped working. This tutorial aims to help you to find out common problems related to ProGuard...
Inspect ssl certificate openssl x509 -in server.crt -noout -text Generate server key openssl genrsa -out server.key 2048 Generate csr openssl req -out server.csr -key server.key -new
PowerShell looks for modules in the directories listed in the $Env:PSModulepath. A module called foo, in a folder called foo will be found with Import-Module foo In that folder, PowerShell will look for a module manifest (foo.psd1), a module file (foo.psm1), a DLL (foo.dll).
By default, only functions defined in a module are visible outside of the module. In other words, if you define variables and aliases in a module, they won't be available except in the module's code. To override this behavior, you can use the Export-ModuleMember cmdlet. It has parameters called -F...

Page 1215 of 1336