Tutorial by Examples: dc

Laravel News Podcasts The Laravel Podcasts
With the virtual hard drive just created, boot the virtual machine with the android-x86 image in the optical drive. Once you boot, you can see the grub menu of the Live CD Choose the Debug Mode Option, then you should see the shell prompt. This is a busybox shell. You can get more shell by swi...
Create new instance of UISegmentedControl filled with 3 items (segments): let mySegmentedControl = UISegmentedControl (items: ["One", "Two", "Three"]) Setup frame; mySegmentedControl.frame = CGRect(x: 0.0, y: 0.0, width: 300, height: 50) Make default s...
To list the available databases, use the following command: $ show databases name: databases name ---- _internal devices ... list of your databases You can connect to one specific database: $ use <database_name> By using a single database, the scope for each subsequent query wi...
Assume that, we implement a simple API and we have the following models. class Parent(models.Model): name = models.CharField(max_length=50) class Child(models.Model): parent = models.ForeignKey(Parent) child_name = models.CharField(max_length=80) And we want to return a respo...
`To calculate 1D convolution by hand, you slide your kernel over the input, calculate the element-wise multiplications and sum them up. The easiest way is for padding=0, stride=1 So if your input = [1, 0, 2, 3, 0, 1, 1] and kernel = [2, 1, 3] the result of the convolution is [8, 11, 7, 9, 4], whic...
Similar to aggregation methods also by the find() method you have the possibility to limit, skip, sort and count the results. Let say we have following collection: db.test.insertMany([ {name:"Any", age:"21", status:"busy"}, {name:"Tony", age:"...
Methods used: .DeleteFolder(FileSpec, Force (True/False)) .CreateFolder(Path) .DeleteFile(FileSpec, Force (True/False)) The following example illustrates the Deletion and creation of a folder using the methods "DeleteFolder" and "CreateFolder". Code: Dim strFolderPath, ob...
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...
Detailed instructions on getting windows-installer set up or installed.
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 ...
The wasd-controls component controls an entity with the W, A, S and D or arrow keyboard keys. The wasd-controls component is commonly attached to an entity with the camera component. <a-entity camera look-controls wasd-controls></a-entity> For azerty keyboards, you could use Z, Q, S...
A-Frame 0.x0.3 A-Frame provides an implementation for supporting multiple types of 6DoF controllers (Vive, Oculus Touch) via the hand-controls component. The hand-controls component is primarily for 6DoF controllers since it’s geared towards room scale interactions such as grabbing objects. The han...
A-Frame 0.x0.3 The tracked-controls component is A-Frame’s base controller component that provides the foundation for all of A-Frame’s controller components. The tracked-controls component: Grabs a Gamepad object from the Gamepad API given an ID or prefix. Applies pose (position and orien...
The StandardClaims type is designed to be embedded into your custom types to provide standard validation features. You can use it alone, but there's no way to retrieve other fields after parsing. See the custom claims example for intended usage. mySigningKey := []byte("AllYourBase") //...
// Token from another example. This token is expired var tokenString = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIiLCJleHAiOjE1MDAwLCJpc3MiOiJ0ZXN0In0.HE7fK0xOQwFEr4WDgRWj4teRPZ6i3GLwD5YCm6Pwu_c" token, err := jwt.Parse(tokenString, func(token *jwt.Token) (interface{}, error...
For C# there exist many wrappers that offer an interface to communicate with OpenCL. OpenCL.NET: This is one of the most low level wrappers out there. It offers a complete implementation of the OpenCL API for C# without adding any abstraction at all. So C\C++ examples are easily ported for this ...
Also known as gaze-based cursor. If we set the cursor to be fuse-based, the cursor will trigger a click if the user gazes at an entity for a set amount of time. Imagine a laser strapped to the user’s head, and the laser extends out into the scene. If the user stares at an entity long enough (i.e., t...
public void setCardColorTran(CardView card) { ColorDrawable[] color = {new ColorDrawable(Color.BLUE), new ColorDrawable(Color.RED)}; TransitionDrawable trans = new TransitionDrawable(color); if(Build.VERSION.SDK_INT > Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) { card.setB...
public void setCardColorTran(View view) { ColorDrawable[] color = {new ColorDrawable(Color.BLUE), new ColorDrawable(Color.RED)}; TransitionDrawable trans = new TransitionDrawable(color); if(Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN) { view.setBackgrou...

Page 27 of 28