Dim cars
Dim filefullname : filefullname = "C:\testenv\test.txt"
'If you can, create an instaneous read for text file data for better memory handling.
'Unless it's a large file and that's impossible.
cars = Split(CreateObject("Scripting.FileSystemObject").OpenTextFile(filefu...
Dim copycars(), cars(2), x
Redim copycars(0)
x = 0
cars(0) = "Ford"
cars(1) = "Audi"
cars(2) = "Prius"
Do Until x = ubound(cars)
copycars(ubound(copycars)) = cars(x)
redim preserve copycars(ubound(copycars)+1)
x = x + 1
Loop
redim preserve copycar...
First Execute
CREATE EXTENSION DBLINK;
Then
INSERT INTO
<SCHEMA_NAME>.<TABLE_NAME_1>
SELECT *
FROM
DBLINK(
'HOST=<IP-ADDRESS> USER=<USERNAME> PASSWORD=<PASSWORD> DBNAME=<DATABASE>',
'SELECT * FROM <SCHEMA_NAME>.<TABLE_NAME_2...
Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
CocoaPods 1.1.0+ is required to build Alamofire 4.0.0+.
To integrate Alamofire into your Xcode project using CocoaPods, specify it in your Po...
A very useful and logical follow-up to histograms and density plots would be the Empirical Cumulative Distribution Function. We can use the function ecdf() for this purpose. A basic plot produced by the command
plot(ecdf(rnorm(100)),main="Cumulative distribution",xlab="x")
wo...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Cron extends CI_Controller
{
/**
* This is default constructor of the class
*/
public function __construct()
{
parent::__construct();
$this->load->library('input'...
In application/hooks folder, create a file with name Blocker.php and paste the below code.
<?php
class Blocker {
function Blocker(){
}
/**
* This function used to block the every request except allowed ip address
*/
function requestBlocker(){
...
Android supports fingerprint api from Android 6.0 (Marshmallow) SDK 23
To use this feature in your app, first add the USE_FINGERPRINT
permission in your manifest.
<uses-permission
android:name="android.permission.USE_FINGERPRINT" />
Here the procedure to follow
...
Apache JMeter segregated all the components into following groups based on their functionality:
Test Plan: Starting point for scripting. JMeter saves the Test Plan in .jmx format. You add components to the Test Plan by Right Click on the Test Pand and navigating to the component you want to add.
...
When creating the project
You should check "Include UI Tests" in the project creation dialog.
After creating the project
If you missed checking UI target while creating project, you could always add test target later.
Setps:
While project open go to File -> New -> Target
Fi...
When Accessibility enabled in Utilities
Select storyboard.
Expand the Utilities
Select Identity Inspector
Select your element on storyboard
Add new Accessibility Identifier (in example addButton)
When Accessibility disabled in Utilities
Select storyboard.
Expand the Utilities
Select...
In a test you can disable animations by adding in setUp:
app.launchEnvironment = ["animations": "0"]
Where app is instance of XCUIApplication.
Snippet from MyExampleFile.xaml
<TextBlock Foreground="{ThemeResource SystemControlBackgroundAccentBrush}"
Text="This is a colored textbox that use the Accent color of your Windows 10"/>
<TextBlock Foreground="{ThemeResource SystemControlBackgroundBa...
Snippet from MyExampleFile.xaml
<TextBlock x:Name="MyTextBlock"
Text="This is a TextBlock colored from the code behind"/>
Snippet from MyExampleFile.xaml.cs
// We use the application's Resource dictionary to get the current Accent of your Windows 10
...
sample json to update
{
"student":{"name":"Rahul", "lastname":"sharma"},
"marks":{"maths":"88"}
}
To update the elements value in the json we need to assign the value and update.
try {
// Create a new in...
if( function_exists('acf_add_options_page') ) {
acf_add_options_page();
}
Add the above code to functions.php and an options page named 'Options' will appear in your Wordpress admin area. You now need to asign some custom fields to the page.