## visual basic – My snippets are not working

I saw a sniipet on making a simple calculator with vb, but its code is not working.

Buttonno1(… Declarations…)
Textbox1.text = textbox1.text = “¹”

But its not displaying that on the text box please I need recommendations that might work or even snippets thank you.
Am a beginner in VB

## machine learning – Basic exercises on decision trees

I am a pure math person doing some ML self-study and I am pretty lost.

I am trying to solve the following exercises on decision trees:

Exercise 1. Consider the following training set where
$$X_1,X_2,X_3,X_4$$ are the attributes and $$Y$$ is the class variable.
$$begin{matrix} Y & X_1 & X_2 & X_3 & X_4 \ 1 & 0 & 1 & 0 & 1 \ 1 & 1 & 0 & 1 & 0 \ 1 & 1 & 1 & 1 & 0 \ 1 & 0 & 0 & 0 & 1 \ 1 & 1 & 1 & 1 & 0 \ -1& 0 & 0 & 1 & 1 \ -1& 0 & 0 & 0 & 0 \ -1& 0 & 0 & 1 & 0 \ -1& 1 & 0 & 0 & 0 \ -1& 0 & 0 & 1 & 1 \ end{matrix}$$

• Learn a decision tree using the ID3 algorithm.
• Draw a decision tree having only 4 leaf nodes, 3 internal nodes and depth bounded by 2, that has 100% accuracy on the given dataset.

Exercise 2. Let $$x$$ be a vector of $$n$$ Boolean variables
$${X_1,…,X_n}$$ and let $$k$$ be an integer less than $$n$$. Let $$f_k$$ be
a target concept which is a disjunction consisting of $$k$$ literals.
State the size of the smallest possible consistent decision
tree (namely a decision tree that correctly classifies all
possible examples) for $$f_k$$ in terms of $$n$$ and $$k$$ and describe its shape.

Now, I’ve done the first part of Exersice 1 as follows: first I noticed that $$X_2$$ is pure and so I chose it as root; then I used Information Gain to find the nodes. The second question confuses me: my understanding was that ID3 already gives the smallest tree, so how am I supposed to make it smaller? Or if am I wrong can anybody help me clarify?

For the second problem, I really don’t know where to start from, so any hint would be appreciated.

## testing – Basic kernel test in Drupal 9 fatal errors with Type of DrupalKernelTestsCoreEntityEntityKernelTestBase::\$modules must be array

Trying to port a Drupal 7 module to 9 with accompanying test and getting this error immediately when running it:

``````PHP Fatal error:  Type of DrupalKernelTestsCoreEntityEntityKernelTestBase::\$modules must be array (as in class DrupalKernelTestsKernelTestBase) in /var/www/html/docroot/core/tests/Drupal/KernelTests/Core/Entity/EntityKernelTestBase.php on line 12
``````

The test:

``````class MyModuleTest extends EntityKernelTestBase {

use NodeCreationTrait;

/**
* @var DrupalmymoduleQueryYearsQuery
*/
protected \$query;

/**
* @var array \$modules
*/
protected static \$modules = (
'node',
'mymodule',
'mymodule_test',
);

/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
...
``````

I checked around some of the core classes – the \$modules declaration looks the same. Note that I am using PHPUnit 9.

## Most basic outcome of democracy…?

Hello Friends,

Please tell me, what is the most basic outcome of democracy…?

.

## What additional (probably basic) configuration do I need to do to enable CGI execution under Apache 2.4?

I’m setting up a system, and I seem to be missing a basic aspect of Apache configuration. I am getting a 403 error when I attempt to load 127.0.0.1/index.cgi.

My sites-enabled conf file is:

``````<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

#DocumentRoot /var/www/html
<Directory />
Options None
AllowOverride None
</Directory>
AllowOverride None
</Directory>

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog \${APACHE_LOG_DIR}/error.log
CustomLog \${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
``````

## Color Calibrating – the display? or the output? Key Basic Issues – help!

I have the Xrite i1Profiler and there are several things I need to understand.

1.) Calibration seems to mean running the software and creating a profile. The profile seems to be located on the computer. Which raises a slew of questions. First of all, it means that you’re not calibrating the screen – you’re calibrating the computer output. Second, it therefore means that the program would have to be run separately for every computer (output device). Third, if there’s no output device that can run a computer program (a DVD player, for instance), then calibration isn’t practically possible. but that can’t be right, can it?

2.) …and fourth, it means that you’re limiting the signal, and therefore not using the hardware potential to its maximum. THIS video https://www.youtube.com/watch?v=h_TT9O2I1b4 has an Xrite expert talking about what sounds like just that – that the calibration can end up in the hardware calibration of the screen. What I want is that: to calibrate the monitor/projector/TV, not to adjust (limit) the output to that screen. I don’t see how this process could be doing that, but I’d like that to be the case.

SO THE ULTIMATE QUESTIONS ARE:
A. if I have to use my Xrite i1Profiler to calibrate a screen for use with a game player or DVD-player that can’t run software, how do I do that?
B. If I have to use my Xrite i1Profiler to calibrate a wall-sized plasma TV (for example) for use without a player at all, how do I do that?

I’d really love to have a thorough grasp of the principles and possibilities (minus impossibilities) involved. My thanks in advance!

## How to set up a recurrence relation to analyze number of execution of the basic operation of this algorithm?

This an algorithm to count `inversions` in an `array`, this is a `divide and conquer` algorithm, I want to know what is the `basic operation` of the this algorithm and how do I set up a `recurrence relation` to analyze `number of execution` of the basic step?

The `definition` of `basic step`: The operation contributing the most to the total running time of an algorithm.
– It is typically the most time consuming operation in the algorithm’s innermost loop.
• Examples: Key comparison operation; arithmetic operation (division being
the most time-consuming, followed by multiplication)

this is the algorithm

``````  public static int merge(int() arr, int() aux, int low, int mid, int high)
{
int k = low, i = low, j = mid + 1;
int inversionCount = 0;

// while there are elements in the left and right runs
while (i <= mid && j <= high)
{
if (arr(i) <= arr(j)) {
aux(k++) = arr(i++);
}
else {
aux(k++) = arr(j++);
inversionCount += (mid - i + 1);    // NOTE
}
}

// copy remaining elements
while (i <= mid) {
aux(k++) = arr(i++);
}

// no need to copy the second half

// copy back to the original array to reflect sorted order
for (i = low; i <= high; i++) {
arr(i) = aux(i);
}

return inversionCount;
}

// Sort array `arr(low…high)` using auxiliary array `aux`
public static int mergeSort(int() arr, int() aux, int low, int high)
{
// Base case
if (high == low) {    // if run size == 1
return 0;
}

// find midpoint
int mid = (low + ((high - low) >> 1));
int inversionCount = 0;

// recursively split runs into two halves until run size == 1,
// then merges them and return up the call chain

// split/merge left half
inversionCount += mergeSort(arr, aux, low, mid);

// split/merge right half
inversionCount += mergeSort(arr, aux, mid + 1, high);

// merge the two half runs
inversionCount += merge(arr, aux, low, mid, high);

return inversionCount;
}
``````

how do I set up a recurrence relation to analyze number of execution of the basic operation? Please also provide explanation!!

## Looking for an assistant that understands basic server operations

Hi All,

I'm looking to hire an assistant on an hourly basic that understands the basics of windows or linux servers. Also someone who is willing to learn. This would involve:

• writing or re-writing content I give you with direction
• forum posting on forums I give you
• Supporting live chat of my web hosting
• Also fixing very basic server issues

I am posting here as this is the kind of crowd I'd like this person to be from.
Please PM me if you are interested and I will…

Looking for an assistant that understands basic server operations

## windows 10 – WinRM – Basic Authentication Issue – Unencrypted traffic is currently disabled in the client configuration

I am not exactly sure what is my issue, I think I have everything set correctly. I am trying to test WinRM with simple basic authentication using HTTP (unencrypted) to a Windows 10 machine that has HyperV enabled. This HyperV server is just a system located in my home lab. There is no domain controller/active directory in my setup.

I followed online tutorials to 1) enable basic authentication on both service and client, 2) set allow unencrypted to true and 3) set trusted hosts.

Below is my configuration on the server end on 192.168.98.* subnet.

``````PS WSMan:localhostClient> winrm get winrm/config/service/auth
Auth
Basic = true
Kerberos = true
Negotiate = true
Certificate = false
CredSSP = false
CbtHardeningLevel = Relaxed

PS WSMan:localhostClient> winrm get winrm/config/client
Client
NetworkDelayms = 5000
URLPrefix = wsman
AllowUnencrypted = true
Auth
Basic = true
Digest = true
Kerberos = true
Negotiate = true
Certificate = true
CredSSP = false
DefaultPorts
HTTP = 5985
HTTPS = 5986
TrustedHosts = 192.168.98.86,192.168.20.*
``````

I verified that my listener on 5985 is enabled.

However, when I try to execute a sample command from a client located on 192.168.20.* subnet, I got the following:

``````PS C:Usersdchu> winrm identify -r:http://192.168.98.86:5985 -auth:basic -u:beyonddc -p:fooPassword -encoding:utf-8
WSManFault
Message = The WinRM client cannot process the request. Unencrypted traffic is currently disabled in the client configuration. Change the client configuration and try the request again.

Error number:  -2144108322 0x803380DE
The WinRM client cannot process the request. Unencrypted traffic is currently disabled in the client configuration. Change the client configuration and try the request again.
PS C:Usersdchu>
``````

Much appreciated if someone can shed me some light. Thanks!!!

## Basic overview of fees – Bitcoin Stack Exchange

Can someone explain fees in layman’s terms

I thought I would throw a few dollars into bitcoins more for a laugh than anything – but the fees are confusing me.

I googled best wallet for newbies & most people suggested Exodus as simple and easy for beginners.

Using Apple Pay I bought \$100 at around 44k – I got \$99 worth of coins and paid \$1 fee (seems fair)

They are now at 48k and my \$99 is up to about \$109

I have no interest in cashing out, but still leaning my way around so thought I would check how much the fee would be to cash out.

From what I can tell, I have to use a company like coin base to convert to hard cash and so I’m looking at paying a transaction fee to send the money to coin base plus a fee to coin base for converting my Bitcoin to hard cash / depositing in my bank account.

The transaction fee exodus shows me to send my coins anywhere is \$15 which seems a bit steep.

Would I be better off having a coin base wallet so I’m not having to pay that \$15 when I want to cash out on top of cashing out fees?

Looking online people say coin base fees are a few % and exodus is 5% plus – but they are quoting me 15% (or is that just because I only have small amounts & it would be cheaper if I had \$1,000)

I may throw \$50 or \$100 a month into BC moving forwards, nothing big, an amount I can afford to forget about for years or even lose large amounts of, but don’t want to lose 20% when I cash out between transfer & cash out fees!

Any help would be much appreciated