Tutorial by Examples: am

using System; using System.IO; using System.IO.Compression; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string zipPath = @"c:\example\start.zip"; string extractPath = @"c:\example\extract...
We can load the model by pointing using the ID to an that specifies the src to a file: <a-scene> <a-assets> <!-- At first we load skeletal animation blending JSON as asset --> <a-asset-item id="hand" src="/path/to/hand.json"></a-asset-i...
Step 1: Add ScriptManager to your page <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> Step 2: Add UpdatePanel to your page just after ScriptManager. <asp:UpdatePanel ID="UpdatePanel1" runat="server"...
Ambient lights globally affect all entities in the scene. The color and intensity properties define ambient lights. Additionally, position, rotation, and scale have no effect on ambient lights. We recommend to have some form of ambient light such that shadowed areas are not fully black and to mimic...
This example shows how to create a custom dragging behavior by Subclassing UIDynamicBehavior and subclassing UICollectionViewFlowLayout. In the example, we have UICollectionView that allows for the selection of multiple items. Then with a long press gesture those items can be dragged in an elastic, ...
Command git cherry shows the changes which haven't yet been cherry-picked. Example: git checkout master git cherry development ... and see output a bit like this: + 492508acab7b454eee8b805f8ba906056eede0ff - 5ceb5a9077ddb9e78b1e8f24bfc70e674c627949 + b4459544c000f4d51d1ec23f279d9cdb19c1d32b...
The API call avio_alloc_context, which sets up a custom IO context, takes in a pointer to a Read function. If you are reading from an IStream, you can use the following: /** * Reads from an IStream into FFmpeg. * * @param ptr A pointer to the user-defined IO data structure. * @param b...
The API call avio_alloc_context, which sets up a custom IO context, takes in a pointer to a Seek function. If you are reading from an IStream, you can use the following: /** * Seeks to a given position on an IStream. * * @param ptr A pointer to the user-defined IO data structure. * @pa...
Media stream containers usually have a several streams, such as a video stream and an audio stream. For example, you can get the audio stream using the following: // A Format Context - see Reading Data for more info AVFormatContext *formatContext; // Inspect packets of stream to determine prope...
Given a codec context and encoded packets from a media stream, you can start decoding media into raw frames. To decode a single frame, you can use the following code: // A codec context, and some encoded data packet from a stream/file, given. AVCodecContext *codecContext; // See Open a codec cont...
AxWindowsMediaPlayer1.URL = "C:\My Files\Movies\Avatar.mp4" AxWindowsMediaPlayer1.Ctlcontrols.play() This code will play Avatar in the axWindowsMediaPlayer.
Lets say we want to build a paginated list of products, where the number of the page is passed as a query string parameter. For instance, to fetch the 3rd page, you'd go to: http://example.com/products?page=3 The raw HTTP request would look something like this: GET /products?page=3 HTTP/1.1 Ho...
Installation or Setup Slim framework Install Composer Open cmd Go to Root directory of your Project Folder and Run Following Command. composer require slim/slim "^3.0" Now you will have vendor directory in your project Next Create Index.php in root folder and add following co...
private void loadData(){ DatabaseReference dbRef = FirebaseDatabase.getInstance().getReference(); Query dataQuery = dbRef.child("chat").orderByChild("id").equalTo("user1"); dataQuery.addListenerForSingleValueEvent(new ValueEventListener() { ...
Prior to iOS 7 when you want to scan a QR code, we might need to rely on third party frameworks or libraries like zBar or zXing. But Apple introduced AVCaptureMetaDataOutput from iOS 7 for reading barcodes. To read QR code using AVFoundation we need to setup/create AVCaptureSession and use captureO...
Suppose you want the user to select keywords from a menu, we can create a script similar to #!/usr/bin/env bash select os in "linux" "windows" "mac" do echo "${os}" break done Explanation: Here select keyword is used to loop through a list ...
Templates/Text.html <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> <f:layout name="Default" /> <f:section name="Main"> <f:format.html>{data.bodytext}</f:format.html&gt...
Since Git 2.13, multiple usernames and email addresses could be configured by using a folder filter. Example for Windows: .gitconfig Edit: git config --global -e Add: [includeIf "gitdir:D:/work"] path = .gitconfig-work.config [includeIf "gitdir:D:/opensource/"] ...
You can dynamically fork a flow in multiple subflows using groupBy. The continuing stages are applied to each subflow until you merge them back using mergeSubstreams. val sumByKey: Flow[(String, Int), Int, NotUsed] = Flow[(String, Int)]. groupBy(Int.maxValue, _._1). //forks the flow ...
<template> <div class="nice">Component {{title}}</div> </template> <script> export default { data() { return { title: "awesome!" }; } } </script> <style> .nice { background-col...

Page 121 of 129