# General syntax:
# grep(<pattern>, <character vector>)
mystring <- c('The number 5',
'The number 8',
'1 is the loneliest number',
'Company, 3 is',
'Git SSH tag is [email protected]',
'My personal site is w...
This configuration lets' you run your total spec files in two browser instances in parallel. It helps reduce the overall test execution time. Change the maxInstances based on your need.
Note: Make sure your tests are independent.
var config = {};
var timeout = 120000;
config.framework = 'jasmi...
In this example 2000 bytes will be transfered using DMA, Transmit Half Complete and Transmit Complete interrupts achieving the best performance.
The first half of the transmit buffer is loaded with new data by the CPU in the Transmit Half Complete interrupt callback while the second half of the buf...
Tkinter support .ppm files from PIL(Python Imaging Library), .JPG, .PNG and .GIF.
To import and image you first need to create a reference like so:
Image = PhotoImage(filename = [Your Image here])
Now, we can add this image to Button and Labels like so using the "img" callback:
Lbl ...
Next we need to tell Minecraft what we want our block to look like.
{
"parent": "block/cube_all",
"textures": {
"all": "example:blocks/decorative"
}
}
That's pretty much all that's needed for it to work once the block is ...
Sometimes, you need to override one or more attributes of a particular Data Access Class (DAC) field just for a particular screen, without changing the existing behavior for other screens.
Replacing All Attributes
Suppose the original DAC field attributes are declared as shown below:
public class...
To illustrate this, here is a function that has 3 different "wrong" behaviors
the parameter is completely stupid: we use a user-defined expression
the parameter has a typo: we use Oracle standard NO_DATA_FOUND error
another, but not handled case
Feel free to adapt it to your standa...
Each standard Oracle error is associated with an error number. It's important to anticipate what could go wrong in your code. Here for a connection to another database, it can be:
-28000 account is locked
-28001 password expired
-28002 grace period
-1017 wrong user / password
Here is a way ...
The idea behind the AdhocWorkspace is to create a workspace on the fly.
var workspace = new AdhocWorkspace();
string projectName = "HelloWorldProject";
ProjectId projectId = ProjectId.CreateNewId();
VersionStamp versionStamp = VersionStamp.Create();
ProjectInfo helloWorldProject = P...
The MSBuildWorspace is built around the concept of handling MSBuild solutions (.sln files) and their respective projects (.csproj, .vbproj).
Adding new projects and documents to this workspace is not supported.
string solutionPath = @"C:\Path\To\Solution\Sample.sln";
MSBuildWorkspace ...
In contrast to the other types of workspaces, the VisualStudioWorkspace, cannot be created manually. It can be accessed when building a Visual Studio extension.
When inside your extension package project, go to [YourVSPackage]Package.cs file. There you can acquire the workspace in two ways:
protec...
success and Error :
A success callback that gets invoked upon successful completion of an Ajax request.
A failure callback that gets invoked in case there is any error while making the request.
Example:
$.ajax({
url: 'URL',
type: 'POST',
data: yourData,
datat...