Pseudocode supposedly has an error

I recently finished an exam in which I had to detect several errors, it seems that I can not find one in the pseudocode:

Account = 1
Entry number
High = Number
Low = number
Repeat
Entry number
Yes Number> High
High = Number
It will end if
If number < Low
    Low = Number
  End If
  Count = Count + 1
Until Count > 99
Print High
Print low

The goal of the program is to find the highest and lowest numbers of 100 entries, errors are not related to syntax or efficiency.

Thanks in advance

I can not get the correct output. Is there an error in this code? Please give me your answers

def sumOfDiv (x):

sum = 1
for i in range (2, x):
yes x% i == 0:
sum + = i
sum of return

Check if the pair is friendly

def isAmicable (a, b):
for i in rank (a, b + 1):
if sumOfDiv (a) == b and sumOfDiv (b) == a:

                    print (list (a, b))

plus:
returns "none"

a = int (entry ("enter the number:"))
b = int (entry (" nenter the number2:"))
isAmicable (a, b)

oracle – RMAN restores the error to restore archivelogs

I have this backup piece with the archivelogs:

BS Key size Device type Elapsed time Completion time
------- ---------- ----------- ------------ ---------- ---------
54 1.01M DISC 00:00:00 05/19/2019 9:08:06 PM
Key BP: 60 State: AVAILABLE Compressed: NO Label: TAG20190519T210805
Part name: /u01/app/oracle/recovery_area/ORCL/backupset/2019_05_19/o1_mf_annnn_TAG20190519T210805_gg3vz6gy_.bkp

List of records archived in the backup set 54
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- ------------------- ---------- ---------
1 31 1463875 19/05/2019 16:57:15 1465051 05/19/2013 21:05:39
1 32 1465051 05/19/2019 21:05:39 1465055 05-19-2015 21:05:44
1 33 1465055 19/05/2019 21:05:44 1465135 19/05/2019 21:08:05

When I try to restore, I get this error:

RMAN> restore archivelog all;

From restoration to 05/19/2019 21:17:30
using the channel ORA_DISK_1

RMAN-00571: ============================================================================= = =============
RMAN-00569: =============== THE BATTERY OF ERROR MESSAGES CONTINUES ===============
RMAN-00571: ============================================================================= = =============
RMAN-03002: failure of the restoration command at 05/19/2019 21:17:31
RMAN-06026: some targets were not found - canceling the restoration
RMAN-06025: A backup of the archived log for thread 1 with sequence 30 and the initial SCN of 1463817 was not found to restore
RMAN-06025: A backup of the archived log for thread 1 was not found with sequence 29 and the initial SCN of 1463680 to restore
RMAN-06025: A backup of the archived log for thread 1 with sequence 28 and the initial SCN of 1463670 was not found to restore
RMAN-06025: A backup of the archived log for thread 1 with sequence 27 and the initial SCN of 1462759 was not found to restore
RMAN-06025: A backup copy of the archived record for thread 1 with sequence 26 and the initial SCN of 1462719 was not found to restore
RMAN-06025: A backup of the archived log for thread 1 with sequence 25 and the initial SCN of 1462616 was not found to restore
RMAN-06025: A backup copy of the archived record for thread 1 was not found with sequence 24 and the initial SCN of 1462599 to restore
RMAN-06025: A backup of the archived log for thread 1 was not found with sequence 23 and the initial SCN of 1462595 to restore
RMAN-06025: A backup copy of the archived record for thread 1 was not found with sequence 22 and the initial SCN of 1462486 to restore
RMAN-06025: A backup copy of the archived record for thread 1 was not found with sequence 21 and the initial SCN of 1462440 to restore
RMAN-06025: A backup copy of the archived record for thread 1 was not found with sequence 20 and the initial SCN of 1462386 to restore
RMAN-06025: A backup of the archived log for thread 1 with sequence 19 and the initial SCN of 1462373 was not found to restore
RMAN-06025: A backup copy of the archived record for thread 1 was not found with sequence 18 and the initial SCN of 1461676 to restore
RMAN-06025: A backup of the archived record for thread 1 was not found with sequence 17 and the initial SCN of 1461633 to restore
RMAN-06025: A backup of the archived log for thread 1 with sequence 16 and the initial SCN of 1461616 was not found to restore
RMAN-06025: A backup of the archived record was not found for thread 1 with sequence 15 and the initial SCN of 1461603 for restore
RMAN-06025: A backup copy of the archived record for thread 1 was not found with sequence 14 and the initial SCN of 1461553 to restore
RMAN-06025: A backup copy of the archived record was not found for thread 1 with sequence 13 and the initial SCN of 1461539 to restore
RMAN-06025: A backup of the archived log for thread 1 with sequence 12 and the initial SCN of 1461536 was not found to restore
RMAN-06025: A backup of the archived log for thread 1 with sequence 11 and the initial SCN of 1461526 was not found to restore
RMAN-06025: A backup of the archived log for thread 1 with sequence 10 and the initial SCN of 1461522 was not found to restore
RMAN-06025: A backup copy of the archived record for thread 1 was not found with sequence 9 and the initial SCN of 1460508 to restore
RMAN-06025: A backup copy of the archived record for thread 1 was not found with sequence 8 and the initial SCN of 1460423 to restore
RMAN-06025: A backup copy of the archived record was not found for thread 1 with sequence 7 and the initial SCN of 1460381 to restore
RMAN-06025: A backup copy of the archived record was not found for thread 1 with sequence 6 and the initial SCN of 1460371 to restore
RMAN-06025: A backup of the archived record was not found for thread 1 with sequence 5 and the initial SCN of 1459846 for restore
RMAN-06025: A backup of the archived log for thread 1 with sequence 4 and the initial SCN of 1437555 was not found to restore

Can somebody help me? I already looked for some solution but no solution solved this error.

Error after installing the Simiconnetor application generator in Magento 2

after the installation, when I am trying to access the general configuration n simi option, the following error appears

Exception # 0 (ReflectionException): Simi class  Simiconnector  Model  Config  Source  ViewType does not exist

query – PHP Fatal error: Error not detected: call a member function insert () in null

Hello, I have the error that it is: Call a member function insert () in null that function $ wpdb-> insert (); returns.

Now, this is my matrix: Array query - PHP Fatal error: Uncaught Error: Call to a member function insert() on null => Huqvarna 610 cross blocco motore [description] => I sell blocco motore husqvarna 610 cross tenuto di scorta semper in magazzino usato pochissimo perfetto [locale] => Riccione [timestamp] => Oggi, 19:15 [price] => 500 € [ad_type] => 1) and this is my code:

loadHTML ($ html); } else {$ response = wp_remote_request ($ url); $ body = wp_remote_retrieve_body ($ response); $ dom_document-> loadHTML ($ body); } $ li_elements = $ dom_document-> getElementsByTagName (& # 39; li & # 39;); foreach ($ li_elements as $ li_element) {$ pattern = & # 39; / item  sresult / & # 39 ;; $ class = $ li_element-> getAttribute (& # 39; class & # 39;); if (preg_match ($ pattern, $ class)) {$ classified = []; $ img_elements = $ li_element-> getElementsByTagName (& # 39; img & # 39;); $ h3_elements = $ li_element-> getElementsByTagName (& # 39; h3 & # 39;); $ h4_elements = $ li_element-> getElementsByTagName (& # 39; h4 & # 39;); $ p_elements = $ li_element-> getElementsByTagName (& # 39; p & # 39;); foreach ($ h3_elements as $ h3_element) {$ h3_class = $ h3_element-> getAttribute (& # 39; class & # 39;); if ($ h3_class == & # 39; title & # 39;) {$ classified['title'] = $ h3_element-> nodeValue; // echo "

$ h3_element-> nodeValue

";}} foreach ($ img_elements as $ img_element) {$ src = $ img_element-> getAttribute (& # 39; src & # 39;); if (strpos ($ src, & # 39; img & # 39;) &&! strpos ($ src, & # 39; no img & # 39;)) {$ classified['src'] = $ src; // echo "";}} foreach ($ p_elements as $ p_element) {$ p_class = $ p_element-> getAttribute (& # 39; class & # 39;); if ($ p_class == & # 39; description & # 39;) {$ classified['description'] = $ p_element-> nodeValue; // echo "

$ p_element-> nodeValue

";} elseif ($ p_class == & # 39; locale & # 39;) {$ classified['locale'] = $ p_element-> nodeValue; // echo "

$ p_element-> nodeValue

";} elseif ($ p_class == & # 39; timestamp & # 39;) {$ classified['timestamp'] = $ p_element-> nodeValue; // echo "

$ p_element-> nodeValue

";}} foreach ($ h4_elements as $ h4_element) {$ h4_class = $ h4_element-> getAttribute (& # 39; class & # 39;); if ($ h4_class == & # 39; price & # 39;) {$ classified['price'] = $ h4_element-> nodeValue; // echo "

$ h4_element-> nodeValue

";}} $ rated['ad_type'] = 1; print_r ($ classified); $ query = $ wpdb-> insert (& # 39; wp_classifieds & # 39 ;, $ classified); echo $ query; }}}}} $ urls = [ 'https://www.kijiji.it/motori/moto-e-scooter/', 'https://www.kijiji.it/elettronica/' ]; The_Crawler :: get_classifieds ($ urls);

The query that was passed to the insert function is not null, how can it be seen in the result of the previous matrix, but the error says that a member that was passed to the function is null: why? I did not understand something?

Update: I used

var_dump ()

work in

$ wpdb

Global variable and returns null. Why?

Apache Error httpd – Stack Exchange Webmasters

In the control panel of the shared hosting that I bought, sometimes I will see the last lines of the registry that contain errors.
Today I read this:

Saturday, May 18, 2019 13:09:00 GMT [notice] - www.example.com - AH00163: Apache / 2.4.39 (Unix) configured - resuming normal operations
Saturday, May 18, 2019 13:09:00 GMT [notice] - www.example.com - AH00094: Command line: & # 39; / apache / bin / httpd -D FOREGROUND & # 39;
Saturday, May 18, 2019 11:37:00 GMT [notice] - www.example.com - AH00163: Apache / 2.4.39 (Unix) configured - resuming normal operations
Saturday, May 18, 2019 11:37:00 GMT [notice] - www.example.com - AH00094: Command line: & # 39; / apache / bin / httpd -D FOREGROUND & # 39;

How should I interpret these lines? Is there anything I can do to investigate further?

Error when archiving from the Xcode project

I can not archive from an Xcode project. The compilation is failing with the following error:

enter the description of the image here

How do I solve it?

c # – How can I find out the root cause of the error "Out of range value for column" in MySQL?

I have a console application written with DO# On top of .Net Core 2.2 Frame with EntityFrameworkCore as ORM. My application executes several tasks that run every 15 minutes. Each task calls an external API server and updates my internal MySQL database (MySQL v8.16.) If the job fails for any reason, I receive an email with the error.

I received the error email with the following error

Error message: Value out of range for column & # 39; Value & # 39; in row 1

I'm trying to figure out that Value The column is causing this error and tries to find out which query caused this problem.

Because of its appearance, MySQL does not register invalid queries anywhere, which sends me to a wild search of the problem column.

I searched for all the columns that are named & # 39; Value & # 39; in my database using the following query

SELECT table_name, Is_nullable, data_type, column_type
FROM INFORMATION_SCHEMA.COLUMNS
WHERE Table_Schema = & # 39; my_table_name & # 39; and Column_Name = & # 39; Value & # 39;

The previous query gave me the following results.

table_name Is_nullable data_type column_type
field_values ​​DO NOT varchar varchar (128)
boolean_fields YES tinyint tinyint (1)
lookup_fields YES text text
numeric_fields YES decimal decimal (30.6)
text_fields YES text long text long
time_fields YES datetime datetime (6)
user_tokens YES long text long text

I think that if the error were caused by a column with the varchar / longtext type, it would get the error "Text truncated" and not "Value out of range". With that in mind, I'm left with the following columns as a suspect

table_name Is_nullable data_type column_type
boolean_fields YES tinyint tinyint (1)
numeric_fields YES decimal decimal (30.6)
time_fields YES datetime datetime (6)

Also, as my request is written in DO# and EntityFrameworkCore is used as my ORM to interact with the database, I trust that both boolean_fields.Value Y time_fields.Value They are not causing the problem. My conclusion is because the type of property is DataTime? at TimeField entity model where the type of property is bool for me Boolean field entity model.

With the above assumption in mind, I am in a field that could be causing my problem.

table_name Is_nullable data_type column_type
numeric_fields YES decimal decimal (30.6)

I keep all the numerical values ​​in numeric_fields.Value column (that is, int, decimal and long)

The API is expected to return numerical data using the following

data_type MinValue MaxValue
& # 39; & # 39 ;, & # 39; -2147483648.0000 & # 39 ;, & # 39; 2147483647.0000 & # 39;
& # 39; Decimal & # 39 ;, & # 39999999999999.00.00, & # 39; 999999999999.0000 & # 39;
& # 39; Long & # 39 ;, NULL, & # 39; 9223372036854775807.0000 & # 39;

It should be able to store all the previous numeric in decimal (30.6) Column without problem.

How can I identify what could be causing this problem?

magento2 – How did you resolve this error during installation magento 2?

[ERROR] Magento Framework Setup Exception: the state for the same indexer already exists. in C: xampp htdocs magento vendor magento framework Setup Patch PatchApplier.php: 167 Tracking the stack: # 0 C: xampp htdocs magento setup src Magento Setup Model Installer .php (1002): Magento Framework Setup Patch PatchApplier-> applyDataPatch (& # 39; Magento_Indexer & # 39;) # 1 C: xampp htdocs magento setup src Magento Setup Model Installer.php (874): Magento Setup Model Installer-> handleDBSchemaData (Object (Magento Setup Module DataSetup), & # 39; data & # 39 ;, Array) # 2 [internal function]: Magento Setup Model Installer-> installDataFixtures (Array) # 3 C: xampp htdocs magento setup src Magento Setup Model Installer.php (367): call_user_func_array (Array, Array) # 4 C: xampp htdocs magento setup src Magento Setup Controller Install.php (109): Magento Setup Model Installer-> install (Array) # 5 C: xampp htdocs magento provider zendframework zend-mvc src Controller AbstractActionController.php (84): Magento Setup Controller Install-> startAction () # 6 [internal function]: Zend Mvc Controller AbstractActionController-> onDispatch (Object (Zend Mvc MvcEvent)) # 7 C: xampp htdocs magento vendor zendframework zend-eventmanager src EventManager.php (490): call_user_func (Matrix, Object (Zend Mvc MvcEvent)) # 8 C: xampp htdocs magento vendor zendframework zend-eventmanager src EventManager.php (260): Zend EventManager EventManager-> triggerListeners (& # 39; dispatch & # 39 ;, Object (Zend Mvc MvcEvent), Object (Closure)) # 9 C: xampp htdocs magento vendor zendframework zend-mvc src Controller AbstractController.php ( 118): Zend EventManager EventManager-> triggerEventUntil (Object (Closure), Object (Zend Mvc MvcEvent)) # 10 C: xampp htdocs magento vendor zendframework zend-mvc src DispatchListener.php (118): Zend Mvc Controller AbstractController-> dispatch (Object (Zend Http PhpEnvironment Request), Object (Zend Http PhpEnvironment Response)) # 11 [internal function]: Zend Mvc DispatchListener-> onDispatch (Object (Zend Mvc MvcEvent)) # 12 C: xampp htdocs magento vendor zendframework zend-eventmanager src EventManager.php (490): call_user_func (Array ), Object (Zend Mvc MvcEvent) # 13 C: xampp htdocs magento vendor zendframework zend-eventmanager src EventManager.php (260): Zend EventManager EventManager-> triggerListeners (& # 39 ; dispatch & # 39; Object (Zend Mvc MvcEvent), Object (Closure) # 14 C: xampp htdocs magento vendor zendframework zend-mvc src Application.php (340): Zend EventManager EventManager-> triggerEventUntil (Object (Closure), Object (Zend Mvc MvcEvent)) # 15 C: xampp htdocs magento setup index.php (39): Zend Mvc Application-> run () # 16 {main}

linux – How do I correct the space allocation error on a machine with a lot of space?

I would like to run a model on RStudio Server, but I get this error.

Error: Unable to allocate a vector size of 57.8 Gb

This is how my data looks and has 10,000 rows.

            latitude longness close_dating close_price
1 1.501986 86.35068 2014-08-16 22: 25: 31.925431 1302246.3
2 36.367095 -98.66428 2014-08-05 06: 34: 00.165876 147504.5
3 36.599284 -97.92470 2014-08-12 23: 48: 00.887510 137400.6
4 67.994791 64.68859 2014-08-17 05: 27: 01.404296 -14112.0

This is my model.

library (caret)
training.samples <- data$close_price %>%
createDataPartition (p = 0.8, list = FALSE)
train.data <- data[training.samples, ]
test.data <- datatraining.samples,]model <- train (
close_price ~., data = train.data, method = "knn",
trControl = trainControl ("cv", number = 1),
preProcess = c ("center", "scale"),
tuneLength = 1
)

My instance of EC2 has more than 57 GB available. This is the memory.

                                                    total of free shared buffers used in cache
Mem: 65951628 830424 65121204 64 23908 215484
- / + buffers / cache: 591032 65360596
Swap: 0 0 0

And it has enough storage space, too. This is the hard drive space.

File system 1K-blocks used Available use% Assembled in
devtmpfs 32965196 64 32965132 1% / dev
tmpfs 32975812 0 32975812 0% / dev / shm
/ dev / xvda1 103079180 6135168 96843764 6% /

And these are details in the machine.

R version 3.5.3 (2019-03-11)
Platform: x86_64-pc-linux-gnu (64 bits)
Running under: Amazon Linux AMI 2018.03