npm version behind bower

https://www.npmjs.com/package/tether is at 1.0.3, bower is at 1.1.0. Any reason?
tether-drop are similarly out of sync.

bower packages relies on git tags while npm packages have to be explicitly published. I'll go ahead and publish both now. Thanks for the heads up! :+1:


Bump rivian-python-client to 1.3.0

This will resolve https://github.com/bretterer/home-assistant-rivian/issues/175


During the exercise, I got this issue...

File "........\load_MNIST.py", line 18, in load_MNIST_images
images = images.reshape((num_images, num_rows * num_cols)).transpose()
ValueError: total size of new array must be unchanged

Hi, Have you solve the problem? I have meet the same problem with you.

load_MNIST_images()
change
-with open(filename, "r") as f:-
to
-with open(filename, "rb") as f:-


Add eve unit tests and update tool configs

Description
Migrate missing eve unit tests from gtc repository and update tooling configurations accordingly.

I merged the gitlabci PR. There is now a conflict. Also we should run bors try after conflict resolution to be sure changes don't break it.

bors try


Abnormal Security apps doc

Purpose of this pull request
This pull request is to create new doc for Abnormal Security app.
Select the type of change

[ ] Minor Changes - Typos, formatting, slight revisions
[ ] Update Content - Revisions, updating sections
[x] New Content - New features, sections, pages, tutorials
[ ] Site and Tools - .clabot, version updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

Ticket (if applicable)
Abnormal Security App - Create Dochub Page

Thanks John. I don't know why I keep missing to add in the Product list. I will add this to my checklist, so that I don't miss it from next time.


Parameter update

Changed the kind to be string instead of integer.
This is because the page numbers can occasionally be in roman numerals and we need to handle this accordingly.

Would you be able to remove your first commit e2f212f from the pull request which introduces a typo (that the second fixes again)?

Your second commit negates the change in the first commit. Please remove the first commit

Please follow best practice for commit messages: https://chris.beams.io/posts/git-commit/

additionally, please prefix the summary line with the name of the workload, e.g.
googleplaybooks: do stuff

explain more about what is being done and why

In this case especially, as the change is counter intuitive (why does a page number need to be a string?), it is important to give explanation for the change in the commit body.

The change of the kind of the parameter is wrong. This change means that "banana" is a valid value for the parameter. Even if the value passed to UIAutomator, for whatever reason, needs to be a string, the kind of the workload parameter should be an integer. If it cannot be an integer (e.g. you want to support roman numerals for pages), then I would add a new type for this in wlauto/utils/types.py and specify that as the kind; it would then be up to the type implementation to handle appropriate validation/conversion.


Ponzu is now unmaintained / failing to build

https://github.com/ponzu-cms/ponzu/issues/349
I would like to see an example alternative golang cms used with hugo and snipcart

Hi @0pcom !
Would you have a golang CMS to recommend?


feat: add type icons

Fixes #63

In src/components/team_member_selector the types also need to be changed to icons.

Fixed


Сheck for OBSTRUCTSBUILDING instead of RECLAIMABLE

Allow building on props except ones with OBSTRUCTSBUILDING categoty

Add it to the readme.

@KionX done!


[Potential bug] Grouping changes x values in unexpected way

Describe the bug
What I do is the following: I train a model for 200 epochs and log several metrics (like train.accuracy, test.accuracy..) using wandb.log and everything works as expected. I do not pass a different step argument than the default. Then after training, I save the model and loop over a list of desired sparsities: self.desired_sparsities = [0, 0.3, 0.5, 0.7, 0.9, 0.95, 0.98]. For each of the sparsities, I jump back to the saved model checkpoint, remove as many parameters as desired (e.g. 0,3 = 30%), finetrain the pruned model (without logging anything to wandb). After finetuning it, I use wandb.log to log the current desired_sparsity and training metrics using a different name (e.g. finetune.train.accuracy, finetune.test.accuracy). Then I redo the same steps for the next sparsity in the list. Hence, the new metrics finetune.test.accuracy as well as desired_sparsity are associated with step =201, 202, 203, ...
What I want to achieve: My goal is then to have a line plot in the webinterface which shows desired_sparsity on the x-axis and finetune.test.accuracy on the y axis. I simply add the plot via the Webinterface. This works just fine without grouping of runs, but as soon as I group them together to analyze different hyperparameters, I get weird behaviour: the x-values (i.e. desired_sparsity) seem to allow values greater than 1, even though I fixed the list of values above (see pictures below). I still can't explain why, but this might be because wandb also averages my x-axis (i.e. desired_sparsity).
Expected behavior
I expect to see a correct plot finetune.test.accuracy vs. desired_sparsity, even when I group the runs. When grouping, I'd expect to see some sort of average over the groups, even in this plot. With sparsities between 0 and 1 it is not possible to obtain values greater than 1. Grouping should yield a plot of average finetune.test.accuracy's for each step/desired_sparsity.
Screenshots

The expected and good result:

The unexpected and bad result after grouping:

Operating System

OS: Ubuntu 20.04
Browser: Firefox
Version: 83

Additional context
I hope the above was not diffuse and it was understandable what my problem is, if not feel free to ask. This issue is related to the workaround I proposed here https://github.com/wandb/client/issues/1557#issue-753345198.
Thanks!

Not sure if this is of any help, but I was able to circumvent the problem by plotting finetune.test.accuracy vs step (instead of vs. desired_sparsity). Then I selected desired_sparsity as the X-Axis-Expression, and not the values are at least correct. It would be nice of someone could elaborate on what is happening here, as I seem to have some misunderstandings of the core functionality of lineplot.
How it looks now after grouping:

Can't find a way to scale the x-axis to [0,1] without destroying the plot again.

Hey @zimmer-m , thanks for writing in. @cvphelps can you please help here?

Hey @zimmer-m
I was able to reproduce your issue.
The code
import wandb
import math
import random
for runs in range(10):
  run = wandb.init(project="xxx",entity="xxx")
  for step in range(10):
    wandb.log({
        "train.acc": math.log(.1 + random.random() + step * 0.01),
        "test.val_acc": math.log(.1 + random.random() + step *0.01)
        })
  desired_sparsities = [0, 0.3, 0.5, 0.7, 0.9, 0.95, 0.98]
  for step in desired_sparsities:
    wandb.log({
        "finetune.train.acc": math.log(.1 + random.random() + step * 0.01),
        "finetune.train.val_acc": math.log(.1 + random.random() + step *0.01),
        "desired_sparsities": step
        })
  run.finish()

This is a minimal implementation of your issue. I am considering 10 epochs and then later iterating over the desired_sparsities.
Web-interface
The link to the project page: https://wandb.ai/repro/grouping
My observations:

Line Plots are perfectly fine without grouping. I have made two kinds of line plots, one where the x-axis comes from desired_sparsities and the other where it comes from step. As expected, both the charts have their dissimalirites quite evident. On the one hand step lies in the range of [10-16] and on the other hand desired_sparsities iterate over = [0, 0.3, 0.5, 0.7, 0.9, 0.95, 0.98].
Line Plots plays funny with grouping. The problem for me was to be confused in the two fields namely X and X Axis Expression.

These play an interesting role in the grouping mechanism. As @zimmer-m has mentioned, with X=Step and X Axis Expression=desired_sparsities we get the plots as we would expect, where the x axis has values corresponding desired_sparsity list.

But here we cannot specify the range of the x values.

Hey @zimmer-m
I was able to reproduce your issue.
Thanks for the MWE, appreciate it!

I have the same issue. I'm plotting a certain metric every 5000 steps. When the runs aren't group, the x-values are correct:

But when I group them, the x-values change to fractional values that don't align with the 5000 tick marks:

I can't tell if this is a bug, or if it's intentional behavior from wandb (e.g. an interpolation strategy to efficiently implement the average when there are many runs grouped together). It would be nice to see some documentation about this.

Same problem over here, 0-1 metric used as X-axis hallucinates a value for 1.005, are there any updates on this?

@cvphelps is there any update on this?

+1, facing the same bug with some grouped runs.


Only import java.utils.List when needed

Optimize the import for classes where List is not used.

This was essentially solved when model.mustache was removed. There are still many imports that are unused, but that is because of openapi-generator-maven-plugin's templates.


How programmatically onCompleted call

In last Step i want to done payment procedure on click on Complete button if payment done succesfully then it's call onComplete method code how can i do this can you please guide me with this ? Through any custom method

Hi,
You can implement StepperListener to be notified when the Complete button gets clicked, e.g.
    public void onCompleted(View completeButton) {
        // call the payment API, show some progress indicator to the user, etc.
    }

Please see https://github.com/stepstone-tech/android-material-stepper/blob/master/sample/src/main/java/com/stepstone/stepper/sample/AbstractStepperActivity.java for an example. I'm not sure if this answers your question though?

I had a similar situation because the last step doesnt have its blocking step working. The nextButtonClicked isnt even called. I worked around this by adding an extra step for "Done"

Hi @sam4444 @qymspace,
The nextButtonClicked isn't called when clicking the Complete button since it's a complete button and not a next button technically speaking ;)
The reason for this is that there is no next step to go to once on the last step. Therefore, the blocking method used for previous steps is not actually required and the same could be accomplished by using onCompleted(..) from the _ StepperListener_. So e.g. if you have an API call to make once you click Complete, then do that in onCompleted(View completeButton).
@sam4444 Does that answer your question?

Makes sense. Thanks for your kindness and awesome lib @zawadz88


You need to have a .git repo in to find the correct root_dir

nvim can't find the correct root directory and is currently solved by just creating a git repo in the desired directory.

Not a bug.


[BUG] Miami Sprint Qualifying: failure in quali results

Describe the issue:
Every time I load the session this error appears on my computer. Hopefully fastf1 is managing the error properly and it does not affect in my case.
TypeError: bad operand type for unary ~: 'NoneType'
I attach the complete error below:
Thanks
Reproduce the code example:
2024-05-04 00:14:46,448 - fastf1.fastf1.core - DEBUG - Traceback for failure in quali results
Traceback (most recent call last):
  File 	  .venv\Lib\site-packages\fastf1\logger.py", line 151, in __wrapped
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File 	  .venv\Lib\site-packages\fastf1\core.py", line 1861, in _calculate_quali_like_session_results
    session[~session['LapTime'].isna() & ~session['Deleted']]
                                         ^^^^^^^^^^^^^^^^^^^
  File 	  .venv\Lib\site-packages\pandas\core\generic.py", line 1570, in __invert__
    new_data = self._mgr.apply(operator.invert)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 	  .venv\Lib\site-packages\pandas\core\internals\managers.py", line 362, in apply
    applied = b.apply(f, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^
  File 	  .venv\Lib\site-packages\pandas\core\internals\blocks.py", line 393, in apply
    result = func(self.values, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: bad operand type for unary ~: 'NoneType'

Error message:
2024-05-04 00:14:46,448 - fastf1.fastf1.core - DEBUG - Traceback for failure in quali results
Traceback (most recent call last):
  File 	  .venv\Lib\site-packages\fastf1\logger.py", line 151, in __wrapped
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File 	  .venv\Lib\site-packages\fastf1\core.py", line 1861, in _calculate_quali_like_session_results
    session[~session['LapTime'].isna() & ~session['Deleted']]
                                         ^^^^^^^^^^^^^^^^^^^
  File 	  .venv\Lib\site-packages\pandas\core\generic.py", line 1570, in __invert__
    new_data = self._mgr.apply(operator.invert)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 	  .venv\Lib\site-packages\pandas\core\internals\managers.py", line 362, in apply
    applied = b.apply(f, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^
  File 	  .venv\Lib\site-packages\pandas\core\internals\blocks.py", line 393, in apply
    result = func(self.values, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: bad operand type for unary ~: 'NoneType'

Please ensure that you are using the newest version of FastF1. It contains some required bug fixes to support this years modified sprint weekend format.
If this does not fix the problem, please post the full output as well as a short snippet of code that allows me to reproduce the problem.

I'm using version 3.3.5 which is the lastest, I have deleted the cache but error persists
Code
import fastf1 as ff1
session = ff1.get_session(2024, 'Miami', 'SQ')
session.load(laps=True, telemetry=False, weather=False, messages=False, livedata=None)
Error
core           INFO 	Loading data for Miami Grand Prix - Sprint Qualifying [v3.3.5]
2024-05-04 11:55:56,997 - fastf1.fastf1.core - INFO - Loading data for Miami Grand Prix - Sprint Qualifying [v3.3.5]
req            INFO 	No cached data found for session_info. Loading data...
2024-05-04 11:55:56,998 - fastf1.fastf1.req - INFO - No cached data found for session_info. Loading data...
_api           INFO 	Fetching session info data...
2024-05-04 11:55:56,998 - fastf1.api - INFO - Fetching session info data...
req            INFO 	Data has been written to cache!
2024-05-04 11:55:57,873 - fastf1.fastf1.req - INFO - Data has been written to cache!
req            INFO 	No cached data found for driver_info. Loading data...
2024-05-04 11:55:57,874 - fastf1.fastf1.req - INFO - No cached data found for driver_info. Loading data...
_api           INFO 	Fetching driver list...
2024-05-04 11:55:57,874 - fastf1.api - INFO - Fetching driver list...
req            INFO 	Data has been written to cache!
2024-05-04 11:55:58,804 - fastf1.fastf1.req - INFO - Data has been written to cache!
core        WARNING 	No result data for this session available on Ergast! (This is expected for recent sessions)
2024-05-04 11:55:59,729 - fastf1.fastf1.core - WARNING - No result data for this session available on Ergast! (This is expected for recent sessions)
req            INFO 	No cached data found for session_status_data. Loading data...
2024-05-04 11:55:59,785 - fastf1.fastf1.req - INFO - No cached data found for session_status_data. Loading data...
_api           INFO 	Fetching session status data...
2024-05-04 11:55:59,786 - fastf1.api - INFO - Fetching session status data...
req            INFO 	Data has been written to cache!
2024-05-04 11:56:00,698 - fastf1.fastf1.req - INFO - Data has been written to cache!
req            INFO 	No cached data found for track_status_data. Loading data...
2024-05-04 11:56:00,701 - fastf1.fastf1.req - INFO - No cached data found for track_status_data. Loading data...
_api           INFO 	Fetching track status data...
2024-05-04 11:56:00,702 - fastf1.api - INFO - Fetching track status data...
req            INFO 	Data has been written to cache!
2024-05-04 11:56:01,634 - fastf1.fastf1.req - INFO - Data has been written to cache!
req            INFO 	No cached data found for _extended_timing_data. Loading data...
2024-05-04 11:56:01,637 - fastf1.fastf1.req - INFO - No cached data found for _extended_timing_data. Loading data...
_api           INFO 	Fetching timing data...
2024-05-04 11:56:01,637 - fastf1.api - INFO - Fetching timing data...
_api           INFO 	Parsing timing data...
2024-05-04 11:56:02,961 - fastf1.api - INFO - Parsing timing data...
req            INFO 	Data has been written to cache!
2024-05-04 11:56:03,422 - fastf1.fastf1.req - INFO - Data has been written to cache!
req            INFO 	No cached data found for timing_app_data. Loading data...
2024-05-04 11:56:03,422 - fastf1.fastf1.req - INFO - No cached data found for timing_app_data. Loading data...
_api           INFO 	Fetching timing app data...
2024-05-04 11:56:03,422 - fastf1.api - INFO - Fetching timing app data...
req            INFO 	Data has been written to cache!
2024-05-04 11:56:04,582 - fastf1.fastf1.req - INFO - Data has been written to cache!
core           INFO 	Processing timing data...
2024-05-04 11:56:04,582 - fastf1.fastf1.core - INFO - Processing timing data...
logger      WARNING 	Failed to calculate quali results from lap times!
2024-05-04 11:56:05,145 - fastf1.fastf1.core - WARNING - Failed to calculate quali results from lap times!
2024-05-04 11:56:05,145 - fastf1.fastf1.core - DEBUG - Traceback for failure in quali results
Traceback (most recent call last):
File ".venv\Lib\site-packages\fastf1\logger.py", line 151, in __wrapped
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\fastf1\core.py", line 1861, in _calculate_quali_like_session_results
session[~session['LapTime'].isna() & ~session['Deleted']]
^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\pandas\core\generic.py", line 1570, in invert
new_data = self._mgr.apply(operator.invert)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\pandas\core\internals\managers.py", line 362, in apply
applied = b.apply(f, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File ".venv\Lib\site-packages\pandas\core\internals\blocks.py", line 393, in apply
result = func(self.values, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: bad operand type for unary ~: 'NoneType'
core           INFO 	Finished loading data for 20 drivers: ['1', '81', '55', '63', '18', '11', '44', '22', '31', '10', '3', '20', '27', '23', '24', '4', '77', '2', '14', '16']
2024-05-04 11:56:05,147 - fastf1.fastf1.core - INFO - Finished loading data for 20 drivers: ['1', '81', '55', '63', '18', '11', '44', '22', '31', '10', '3', '20', '27', '23', '24', '4', '77', '2', '14', '16']
I don't know I am able to see the full error. Maybe because I am using try, except and this error is due to Ergast but the normal output is:
core           INFO 	Loading data for Miami Grand Prix - Sprint Qualifying [v3.3.5]
req            INFO 	Using cached data for session_info
req            INFO 	Using cached data for driver_info
core        WARNING 	No result data for this session available on Ergast! (This is expected for recent sessions)
req            INFO 	Using cached data for session_status_data
req            INFO 	Using cached data for track_status_data
req            INFO 	Using cached data for _extended_timing_data
req            INFO 	Using cached data for timing_app_data
core           INFO 	Processing timing data...
logger      WARNING 	Failed to calculate quali results from lap times!
core           INFO 	Finished loading data for 20 drivers: ['1', '81', '55', '63', '18', '11', '44', '22', '31', '10', '3', '20', '27', '23', '24', '4', '77', '2', '14', '16']

You need to use .load(..., messages=True) (which is the default by the way). I will investigate what specifically causes the problem. But it is possible, that there is no fix and FastF1 simply needs the data.
Race control messages are not just loaded for so that users can access them. They are also parsed to get additional information that isn't available otherwise.
You are seeing the full error, because apparently something else in Python environment reconfigures the logger to show the DEBUG level as well. But I have no idea what package might be doing that or if you configured it this way.

Ok, after a quick check, this basically needs to fail without race control messages being loaded. Without the messages, FastF1 cannot reliably know which laps were deleted. But then, it is impossible to accurately calculate qualifying results because the deleted laps are still included in the data.
A better error message would be helpful here though.

I added a better warning message for this.


Let users use a custom merge function

What: Let's a user pass a custom merging function

Why: Because current deepmerge library doesn't support circular object merging and in the case someone wants to use their own merging strategy it isn't possible regardless

How: Forked the master branch and made the simple changes

Checklist:

[x] Documentation
[x] Tests
[x] Ready to be merged

[ ] Added myself to contributors table

@lopugit thank you for your PR! Can you add a testcase?

@lopugit thank you for your PR! Can you add a testcase?

Sure thing

Hi @lopugit, what is an update on this? I found what you did here really useful.
Would be awesome to have it merged.
cc @robinvdvleuten


Add support to save if the user has seen the bubble before

Could use shared prefs, and pass in a key name. If the user has seen the bubble before don't show again.

Hi wezley98,
Good idea! I have just updated a new version adding this feature.
implementation 'com.elconfidencial.bubbleshowcase:bubbleshowcase:1.1.0'

Now, you could add a keyname for your BubbleShowCase to avoid showing it more than one time.
BubbleShowCaseBuilder(this)
                .title("foo")
                .showOnce("BUBBLE_SHOW_CASE_ID") //Id to show only once the BubbleShowCase
                .targetView(view)
                .show()

Enjoy! :)


New version: Opera.OperaGX version 112.0.5197.74

Created by 🥟 Dumplings in workflow run #7447.

Log
Updated: 112.0.5197.60 → 112.0.5197.74
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

/azp run

This package installs and launches normally on a Windows 10 VM.

This package installs and launches normally on a Windows 10 VM.


Using xule within a Python script

Hi, I wish to use xule to extract pertinent data from SEC 10-Q filings but I'm not finding any documentation on how to do so strictly within Python. Is it possible, given that this project is written in Python?

Hi @micmalti - check out https://xbrl.us/xule linked in the about detail for this repository - documentation for the spec is posted in the sidebar there.

Hi @micmalti - apologies, as I should have also referenced an issue in this repository. See #5


Add remark that keepNull: false does not affect attributes in arrays

https://github.com/arangodb/arangodb/issues/19017
Upstreams:

3.12: https://github.com/arangodb/arangodb/pull/19296
3.11: https://github.com/arangodb/arangodb/pull/19297
3.10: https://github.com/arangodb/arangodb/pull/19298

https://jenkins.arangodb.biz:3456/view/Documentation/job/arangodb-ANY-examples/3322/


Feat/3630 custom search category renderer

POC for: #3630

Codecov Report

Merging #3672 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3672      +/-   ##
==========================================
- Coverage   99.81%   99.81%   -0.01%
==========================================
  Files         174      175       +1
  Lines        2755     2750       -5
==========================================
- Hits         2750     2745       -5
  Misses          5        5

Impacted Files
Coverage Δ

src/modules/Search/Search.js
99.46% <100%> (ø)
:arrow_up:

src/modules/Search/SearchCategory.js
100% <100%> (ø)
:arrow_up:

src/modules/Search/SearchCategoryLayout.js
100% <100%> (ø)

src/modules/Popup/Popup.js
98.24% <0%> (-0.17%)
:arrow_down:

src/modules/Dropdown/Dropdown.js
100% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 00659bd...8dea123. Read the comment docs.

Hey @layershifter!
We would love to hear your feedback on this PR. This is a customization we have been looking for for a while!
Thank you,
Patrick

This is really fantastic, thanks for the great work.  I'll get this merged and shipped.


Discrepency between vacuum & spectral rule evaluation

Given an openapi spec:
openapi: 3.0.0
#... brevity
paths:
  /startz:
    get:
      tags:
        - Health Checks
      summary: Startup Probe
      description: |
        This endpoint is used by kubernetes to determine when the application has started up
      operationId: startup
      responses:
        "200":
          $ref: "#/components/responses/HealthCheckOK"
        "500":
          $ref: "#/components/responses/InternalServerError"

And a custom ruleset:
extends: [["spectral:oas", recommended]]

rules:
  common-responses-server-error:
    description: Missing required response
    severity: error
    given: $.paths./startz.get.responses
    then:
      field: "500"
      function: truthy

When running vacuum lint --ruleset .spectral.yml --details openapi/spec.yml the following error is generated:
# Validation Issues
Line / Column | Severity | Message                                      | Path
(31:9)        | error    | Missing required response: `500` must be set | $.paths./startz.get.responses

Whereas the same files executed by spectral returns no error. Is this a bug in vacuum, or a misunderstood difference between the two solutions?

I will be going on a bug run at the end of this month, I will include this in that run.

This seems to have been resolved; I cannot re-create this issue.


[mvn] Update maven wrapper to 0.5.6 and maven to 3.6.3

Coverage remained the same at 100.0% when pulling aefaabe6b35267270b927c44227833e30222feca on hazendaz:master into 01c4e8eec6b1785865a7454d6a40d2c312f60f66 on mybatis:master.


Pushing ipu-nf-cni

This PR adds the ipu-nf-cni code.

tested locally - APF's moved to container, and made the dummy calls to dummy ipu manager printing the HW address and Interface name.

Is this PR valid anymore?

Is this PR valid anymore?

DPU Operator will have separate CNI for NF. So, we probably don't need this. But we can merge this PR and keep in the repo.

Is this PR valid anymore?

DPU Operator will have separate CNI for NF. So, we probably don't need this. But we can merge this PR and keep it in the repo.

@davecremins @ahalimx86 If this functionality is enable through the DPU Operator then I can close the PR. The branch will still be available for review at a later date.

Closing as functionality has been provided by the DPU operator.


Update Azure Key Vault Config Provider topic and sample

cc/ @anurse (partner in crime on this topic), @blowdart, @pakrym, @olavt, @Coderrob
Fixes #3369
:fire: HOT! :fire: updates in this one:

Sample added to demo the prefix key vault secret manager for different app versions, not app names.
2.0 samples added. Note that tabs aren't required because the topic's example code is the same across 1.x and 2.x versions. However, the 1.1 and 2.0 samples are linked separately when mentioning to the reader what they can download.
Reacted to the feedback in #3369 and the discussion in https://github.com/aspnet/Docs/pull/3525, including adding a security note that it isn't recommended to prefix app names or environments to secrets in the same vault.

@Rick-Anderson @tdykstra
Update: Almost done ... The text is ready, and I'm just waiting for a dev team answer on a config question to finish the samples. I'll let u know when it's ready for :eyes:.

@anurse @blowdart 🎉🎈 We're off WIP now. 🎈🎉 Do u want to review the updates?
Couple of known things to address:

Getting away here from environmental config as a security best practice. The samples go with merely an app version prefix. There's a warning now not to stuff dev/prod and secrets for multiple apps into the same vault.
I think the config here in the 2.0 samples is as clean and neat as it gets right now. I wish I could pull down those appsetting.json values for the config provider in ConfigureAppConfiguration from CreateDefaultBuilder, but that probably ain't gonna happen. See what u think about my approach, and this might get more discussion generally on https://github.com/aspnet/Configuration/issues/707.
I use the WebHost directly in Main. I was warned off of the NutJob:tm: programming pattern that I like :grinning: (i.e., minimizing the number of files and lines of code used) by our good friend @ctolkien on Slack. I need more feedback tho: If I don't use BuildWebHost().Run(); and public static IWebHost BuildWebHost(string[] args) => WebHost.XXXX and just go directly with WebHost.XXXX.Run() in Main, what problems might that create? ... is that approach just a big 'ole :bomb:?

@anurse can you do a quick review (or recommend someone)?

Ugh ... In spite of the 2.0 sample just working on the prerelease packages, the sample is breaking now with 2.0 release packages. I'll see if I can sort it out.
I need to sort out the cross-targeting situation (netcoreapp2.0 and net461). Something changed ... this just worked prior to release, but it chokes now ...

error NU1202: Package Microsoft.AspNetCore.All 2.0.0 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Microsoft.AspNetCore.All 2.0.0 supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)

@anurse, they have the Hackathon sample with the following pattern. Where have they published the hosting startup pattern? I don't see it in the Hosting repo startup sample on the rel/2.0.0 branch.
public static void Main(string[] args)
{
    BuildWebHost(args).Run();
}

public static IWebHost BuildWebHost(string[] args) =>
    WebHost.CreateDefaultBuilder(args)
    ...

Let's see if conditioning that <ItemGroup> is the right way to go there.
As for the WebHost prob ... no prob. Needed to wait for the Omnisharp extension to catch up to me! :grinning:
It's happy now.

It's all sorted out now thanks to Kevin @PinpointTownes.
In the first case, I was using a :beetle: bug as a "feature" to cross-target net461 and netcoreapp2.0 without conditioning the All package: https://github.com/aspnet/MetaPackages/issues/142
In the second case, Microsoft.AspNetCore isn't a metapackage ... it has real implementation goodness in it. The ticket to getting access to the public WebHost is either using that or using the All package, which has it.
We're good now! ... first day fun with 2.0 release bits. This PR is ready for :eyes:.

@scottaddie :+1: Try that list revision ... I think it works.

I don't think you need that much detail.  I use sample1 and sample2 for 1.x and 2.x.

If they only say "sample1," "sample2," etc. it might be harder to grok what those are. I'll put in a plug for something like (depending on minor version handling) ...
samples
    1.x
    2.x
    3.x

or
sample
    1.1
    2.0
    2.1
    3.0

However if u met and figured it out that they should just be "sampleX," then I'll just do that here and on the upcoming PR's.

I wouldn't say we settled on a rule for everyone to follow; you're welcome to adopt your own pattern here unless Rick/Scott think otherwise.  But I think single digits work generally because it's not likely we have to maintain multiple minor versions very often.

I though we were only maintaining one sample. Why do we need more than the current?

If we decide to maintain more than 1 sample, then I prefer the 1.x, 2.x, 3.x convention.

I like the 1.x, 2.x, 3.x. It may solve a few problems:

When someone just lands in the samples folder, they can immediately grok what those are.
Samples can easily be x.1, x.2,. x.3 at any time on demand with little topic attention required for the samples. The author can just update the sample and concentrate on the topic language for whatever the minor version is offering.
It limits in a good way what has to be maintained. No worries on keeping samples until the major version reaches the end of support (3 years IIRC). Probably limits total samples per topic to no more than four ... totally manageable I suspect.

I thought we were only maintaining one sample. Why do we need more than the current?

Another great option, but I have a feel'in in my bones: Some enterprise devs will get handed projects and told "add this thing to the project," and it will be, say, a 1.x-era project. Assume that the docs have rolled forward to version 3.0 with only a 3.0 sample showing. They aren't allowed (lack of time and resources) to upgrade the whole project 1.x to 3.0. They could face a big pain point trying to find a 1.x sample from repo history or hitting up random blogs from the era to help them.
But I took your point well on the tutorial comment: I totally get that. NO point in showing a 1.1 tutorial in the 2.0 or 3.0 era! lol
Stand-by for a sec before merging this. I'll have an update here shortly ... need to just touch it a hair for this. Will ping u soon!

ok. The "1.1" could have stayed over going to "1.x", except that would make this topic inconsistent with the next three I plan to tackle. In the topic, there's already a note about this feature's first arrival at 1.1. I add a similar note to the 1.x samples. Wherever the reader lands in folders or samples (README files), it should be super-clear what they're seeing.

The line on dependencies really doesn't work well after all ...

The provider depends on .NET Framework 4.5.1 (ASP.NET Core 1.1), .NET Framework 4.6.1 (ASP.NET Core 2.x), or .NET Standard 1.5 or higher.

The deps for 1.x are netfx 4.5.1+ or netstd 1.5+; for 2.x just netstd 2.0+ (which implicitly results in netfx 4.6.1+).
In addition to making the sentence (or list or table) hairy to display/grok, this is going to get out of control as new deps appear with future releases.

... the dev should follow the link and use nuget.org to get the deps ... it's just "a thing" in the new world order.

WIP for a sec ... I have a few more sample tweaks.

@guardrex  what do we need to finish this?

If he's available, I was hoping @anurse would TAL.

@guardrex  can you provide a TLDR; executive overview of what should be reviewed?

@Rick-Anderson There's really one important thing: The new 2.0 sample. It works, but it could benefit from an [@]anurse or other dev team review. We already know that [@]blowdart is good with dropping the "environment" prefix approach of the sample and going with prefixes for the app version (https://github.com/aspnet/Docs/pull/3525#issuecomment-319228567; however, their sample still needs work imo https://github.com/aspnet/Configuration/issues/708).
The diff here has a lot in it, but flipping over to the diff view and searching the page with key-name-prefix-sample/2.x will show the files at the bottom of the 2.0 sample.
I feel good with @scottaddie's review on the rest of it.

@Rick-Anderson Samples updated here. :+1:

@guardrex  ready to merge?

@Rick-Anderson Yes, ready to 🎸!


Merge pull request #1 from Seitanas/master

Extending Lithuanian translation

Quote the 4726ad6 URL:

This merge commit was added into this branch cleanly.
There are no new changes to show, but you can still view the diff.

But then if leads to normal, non-empty diff.  WTF?

Its magic!
(just ignore this)


PLT-7238 Migration of create_post.jsx to redux

Summary
WIP: Migration of create_post.jsx to redux
Ticket Link
https://github.com/mattermost/mattermost-server/issues/7238
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[ ] Added or updated unit tests (required for all new features)
[ ] Has redux changes (please link)
[ ] Touches critical sections of the codebase (auth, posting, etc.)

Hey @sudheerDev, just checking in on how this is going. Let us know if you need any help and when you're ready for review :)

@jwilander I need to make few changes and add test cases as well. I will have a look at it over the weekend and let you know if I need any help.

Hi, I have changed a thing in create_post.jsx to fix the arrow up to edit. the PR is #339.

@saturninoabril @jwilander Still working on this. Need to add some more test cases and will be done. While writing test i am finding things that could be fixed :).

This PR is a dependency for this PR.
And this PR is good to have so i can remove the dependency of postStore for the component.

@saturninoabril @jwilander If this PR is merged then i will change that to bind the actionCreator and add last couple of test cases for this PR.

Said PR is now merged.

Awesome, I'll take a look over the weekend :D

I rebased and resolved conflicts with other PR's.

Setup Test Server label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).

Spinmint test server created at: http://i-00a6be6a11e401b82.spinmint.com
Test Account 1: Email<EMAIL_ADDRESS>| Password: passwd
Test Account 2: Email<EMAIL_ADDRESS>| Password: passwd
Instance ID: i-00a6be6a11e401b82

@saturninoabril The test server is not working as this PR is a dependency and as of now
package.json points to
https://github.com/mattermost/mattermost-webapp/blob/70cecc31fb493a6f0ae7173eccf6df4350e281a0/package.json#L30

Yup, I see it. I'll send update to webapp to bump commit for mattermost-redux.

@saturninoabril Fixed review comments :)

@sudheerDev Thanks, all look good to me!
It failed on unit test. Just need to update test props.

Spinmint test server destroyed

Can you also give this a rebase?

@jwilander rebased.

@lindalumitchell can you give this a test pass once the build passes? Just looking at functionality in the post textbox (and please try with multiple tabs open similar to the RHS comment box)

Setup Test Server label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).

Spinmint test server created at: http://i-0c5a7646e01aa9346.spinmint.com
Test Account 1: Email<EMAIL_ADDRESS>| Password: passwd
Test Account 2: Email<EMAIL_ADDRESS>| Password: passwd
Instance ID: i-0c5a7646e01aa9346

@jwilander @sudheerDev sorry for the delay on testing this; it looks good to me!
Did a bunch of testing, including having multiple tabs open. Tested posts, replies, editing, deleting, long messages, formatted messages, pinning, flagging, autocomplete for emoji, users, channel names, emoji reactions, mentions, DMs, permalinks, all in combinations between two users and in center and RHS. No issues found!

@sudheerDev Please give this a rebase and we're good to merge this. Thanks!

Spinmint test server destroyed


Make runserver_plus command survive syntax and configuration errors

This will make it behave like the standard runserver command which doesn't
exit when we have a syntax or configuration error but simply wait for the
error to be fixed before the site is accessible again.
This should solve #1081
The solution turned out to be quite simple. Does it seem acceptable to you?

Coverage decreased (-71.2%) to 0.0% when pulling ca148ab75987c09643da5960c2494e0998af4f42 on Jenselme:feat/1081-runserver_plus-syntax-error into 51fef746bafb6cffa12a47a069f2baaa4370b74f on django-extensions:master.

Looks good, did you more or less copy this solution from the run server code ?

Not sure if catching the exception and ignoring the exception is the right thing to do here....
I regretfully do not have the time right now but I would like to see how exactly runserver handles this. From first glance it does not seem to capture any SystemCheckError so don't think it should get passed ./core/management/commands/runserver.py lines 118-154/158... Think runserver just lets the thread exit but the reloader stays active
I agree there are issues with this in runserver_plus currently... For example in my tests I could not see a simple exception message because of the clearing of line endings at runserver_plus.py:128... (sigh, so much to improve ;-) )
But I am not sure that ignoring the error and continuing is the best solution...

Not sure if catching the exception and ignoring the exception is the right thing to do here....

Neither am I. But I didn't see any other way to solve this.

From first glance it does not seem to capture any SystemCheckError so don't think it should get passed ./core/management/commands/runserver.py lines 118-154/158... Think runserver just lets the thread exit but the reloader stays active

I didn't really look on this was done. I just witnessed the behavior and tried to reproduce it. It seemed like the most obvious way to change this.
From what I see here, I should catch a bit more errors to correctly match runserver. From what I see, once the error is catch, they just add the problematic files to a list so the watcher correctly watches them. Since werkzeug seems to be doing this just fine, I don't see what we can do besides ignoring it.

For the sake of argument, say I wrote a check: ( https://docs.djangoproject.com/en/3.1/topics/checks/ )
@register()
def make_very_sure_runserver_does_not_use_production_database(app_configs, **kwargs):
    ...

Now it fails... displays the warning but continuous running runserver_plus and potentially doing nasty things to our production systems ;-)

Could you please try https://github.com/django-extensions/django-extensions/commit/ae42e864438b2ec42202f608240ceb3bc4e57f58
Does this solve the issue for you ?

The command doesn't crash but once we have a syntax error, even if I fix it, I have to kill the command and restart it for the fix to be taken into account. So it isn't really better than before.
BTW, I noticed that the standard runserver kills the server on syntax error and wait for the error to be fixed before to restart the server. I don't know whether it helps.

I can reproduce the issue with SyntaxError... not entirely sure how to fix it quickly :-)
For now I removed the check for SyntaxError so it only catches SystemCheckError.
Think it's better to stop runserver_plus then showing an error which does not auto reload....

Think for now we can close the PR...
If you might find a way to also support SyntaxError or other exceptions please submit another PR !
Thanks for all the help on this and making Django Extensions better !

No idea right now. I'll think I'll just rely on bash in the short term to relaunch runserver_plus when need. What I find strange is that with my patch it worked. Since both are very close, I don't understand why. On syntax error, I never got a message about the code being reloaded though :thinking:
Thanks anyway!

In https://github.com/pallets/werkzeug/blob/7f6088d7f774bd6e7d3f6cede0d7a284ba5f734c/src/werkzeug/_reloader.py#L13 sys.modules is used, I bet after the SyntaxError that that module is not on the list ;-)
A solution might be to just pass the file for the module that yielded the syntax error to extra_files in run_simple. However I guess it will still not trigger reload on other files that where still not loaded since the SyntaxError interrupted the process.

Since the server can't start with the syntax error in that file, is it a big issue? That should be testable too. I'll try to test this tomorrow to see how it goes.

Based on your last patch, this seems to work perfectly:
diff --git i/django_extensions/management/commands/runserver_plus.py w/django_extensions/management/commands/runserver_plus.py
index 560d13bc..c205c45b 100644
--- i/django_extensions/management/commands/runserver_plus.py
+++ w/django_extensions/management/commands/runserver_plus.py
@@ -4,6 +4,7 @@ import os
 import re
 import socket
 import sys
+import traceback

 import django
 from django.conf import settings
@@ -276,9 +277,21 @@ class Command(BaseCommand):
         if self.show_startup_messages:
             print("Performing system checks...\n")

+        files_in_error = set()
         try:
             self.check(display_num_errors=self.show_startup_messages)
-        except SystemCheckError as exc:
+        except (ImportError, IndentationError, SyntaxError, NameError,
+                TypeError, AttributeError, SystemCheckError) as exc:
+            # Inspired by https://github.com/django/django/commit/c2a6b2a43fb8f32cff078c823054e2e65f325464#diff-46e69f287173eef41fcbfeba05501954R89  # noqa: E501
+            et, ev, tb = sys.exc_info()
+            if getattr(ev, 'filename', None) is None:
+                # get the filename from the last item in the stack
+                filename = traceback.extract_tb(tb)[-1][0]
+            else:
+                filename = ev.filename
+            if filename not in files_in_error:
+                files_in_error.add(filename)
+
             self.stderr.write("SystemCheckError occurred during system checks: " + str(exc), ending="\n\n")
             handler = self.get_systemcheckerror_handler(str(exc), error_class=type(exc), **options)
         else:
@@ -364,7 +377,7 @@ class Command(BaseCommand):
             handler,
             use_reloader=use_reloader,
             use_debugger=True,
-            extra_files=self.extra_files,
+            extra_files=self.extra_files.union(files_in_error),
             reloader_interval=reloader_interval,
             reloader_type=reloader_type,
             threaded=threaded,

Even if I modify files other than the one with the error, the project is correctly reloaded.

Taking inspiration from your last comment I tried to get even closer to runserver :-)
Could you please check with latest master ( https://github.com/django-extensions/django-extensions/commit/6fdddd39b12674f60b8f92191a7b68c8a55a7ae5 ) if this works for you ?

@trbs it seems to work perfectly. Do you plan to make a new release with it soon?

FYI: New release should be out shortly :-)


Why do .hover-bg-black- and .hover-bg-white- classes specify color instead of background-color?

Is this a bug or intentional? If intentional, can anyone explain why?
https://github.com/tachyons-css/tachyons/blob/master/css/tachyons.css#L1318-L1353

Nope that's a bug! Thanks for catching.

Fixed in 4.6.1


impl from for TimeVal

This should make working with various functions that take TimeVals more ergonomic
Resolves #494.

@Roguelazer See the CI failures.  i64 is not correct on all platforms for these casts.

I'm pretty sure I fixed it, although CI for OS X is hanging trying to set up the build VM.

Maybe add Into<Duration> as well?

As with #511, shall we hold off on this while #516 gets decided on?

@kamalmarhubi I agree with your last comment, so let's go ahead and close this in favor of sorting all that out in one single issue.


Provide overview of solvers

The MO-book uses many different solvers to tackle a large variety of optimization problems. Besides a brief introduction of what a solver is in 01/A Basic Pyomo Model, the rest of the notebooks don't mention anything about these solvers. This can be confusing to readers, especially starting from chapter 5, because then ipopt or mosek are used instead of highs to solve the resulting non-linear optimization problems. There's a brief section on why this non-linear optimization solver is used but it's not explicit enough about why it can then be used to solve convex optimization problems. Moreover, there's even a notebook in chapter 5 on using cvxpy, which also adds confusion to why there's another solver for convex optimization problems.
My suggestion is to:

Make a page that lists all important solvers, categorized/labeled by which types of optimization problems they can solve.
A paragraph about how each solver will be used throughout the book.

The actual book talks more about this (section 5.1). Probably good to take inspiration from there.


Cuda issues.

Installed with the latest instructions and received the following.  It seems that it is having trouble accessing CUDA although it is installed.
/usr/local/bin/luajit: /usr/local/share/lua/5.1/trepl/init.lua:383: lib/w2nn.lua:18: Failed to load CUDA modules. Please check the CUDA Settings.
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/trepl/init.lua:383: in function 'require'
web.lua:7: in main chunk
[C]: in function 'dofile'
/usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00404270

I added more informative error message at https://github.com/nagadomi/waifu2x/commit/958dcfaeb8dfd3c71df65282168b211f745ff970.
Could you retry and post the error message?

A little more information on this machine;
This machine uses a 550ti and has been running Waifu2x just fine for some time.  I recently had a driver issue and had to purge and reinstall the nvidia drivers.  The latest 352.63 drivers along with CUDA 7..5.18 is installed.  There may be remnants of the older install still there.
/usr/local/bin/luajit: /usr/local/share/lua/5.1/trepl/init.lua:383: lib/w2nn.lua:18: Failed to load CUDA modules. Please check the CUDA Settings.
/usr/local/share/lua/5.1/trepl/init.lua:383: /usr/local/share/lua/5.1/cutorch/init.lua:2: cannot load '/usr/local/lib/lua/5.1/libcutorch.so'
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/trepl/init.lua:383: in function 'require'
web.lua:7: in main chunk
[C]: in function 'dofile'
/usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00404270

user@Mami:~/.Waifu2X$ sudo apt-get install libsnappy-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsnappy-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@Mami:~/.Waifu2X$ sudo apt-get install libgraphicsmagick-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libgraphicsmagick1-dev' instead of 'libgraphicsmagick-dev'
libgraphicsmagick1-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@Mami:~/.Waifu2X$ sudo luarocks install graphicsmagick
Installing https://raw.githubusercontent.com/torch/rocks/master/graphicsmagick-1.scm-0.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/graphicsmagick-1.scm-0.rockspec... switching to 'build' mode
Cloning into 'graphicsmagick'...
remote: Counting objects: 29, done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 29 (delta 0), reused 19 (delta 0), pack-reused 0
Receiving objects: 100% (29/29), 788.37 KiB | 0 bytes/s, done.
Checking connectivity... done.
Updating manifest for /usr/local/lib/luarocks/rocks
graphicsmagick 1.scm-0 is now built and installed in /usr/local/ (license: BSD)
user@Mami:~/.Waifu2X$ sudo luarocks install lua-csnappy
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lua-csnappy-0.1.3-1.src.rock...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lua-csnappy-0.1.3-1.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/usr/local/include -c lsnappy.c -o lsnappy.o
gcc -shared -o snappy.so -L/usr/local/lib lsnappy.o
Updating manifest for /usr/local/lib/luarocks/rocks
lua-csnappy 0.1.3-1 is now built and installed in /usr/local/ (license: BSD)
user@Mami:~/.Waifu2X$ sudo luarocks install md5
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/md5-1.2-1.src.rock...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/md5-1.2-1.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/usr/local/include -c src/compat-5.2.c -o src/compat-5.2.o -Isrc/
gcc -O2 -fPIC -I/usr/local/include -c src/md5.c -o src/md5.o -Isrc/
gcc -O2 -fPIC -I/usr/local/include -c src/md5lib.c -o src/md5lib.o -Isrc/
gcc -shared -o md5/core.so -L/usr/local/lib src/compat-5.2.o src/md5.o src/md5lib.o
gcc -O2 -fPIC -I/usr/local/include -c src/compat-5.2.c -o src/compat-5.2.o -Isrc/
gcc -O2 -fPIC -I/usr/local/include -c src/des56.c -o src/des56.o -Isrc/
gcc -O2 -fPIC -I/usr/local/include -c src/ldes56.c -o src/ldes56.o -Isrc/
gcc -shared -o des56.so -L/usr/local/lib src/compat-5.2.o src/des56.o src/ldes56.o
Updating manifest for /usr/local/lib/luarocks/rocks
md5 1.2-1 is now built and installed in /usr/local/ (license: MIT/X11)
user@Mami:~/.Waifu2X$ sudo luarocks install uuid
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/uuid-0.2-1.src.rock...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/uuid-0.2-1.src.rock... switching to 'build' mode
Updating manifest for /usr/local/lib/luarocks/rocks
uuid 0.2-1 is now built and installed in /usr/local/ (license: Apache 2.0)
user@Mami:~/.Waifu2X$ sudo PREFIX=$HOME/torch/install luarocks install turbo
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/turbo-2.0-4.rockspec...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/turbo-2.0-4.rockspec... switching to 'build' mode
Cloning into 'turbo'...
remote: Counting objects: 165, done.
remote: Compressing objects: 100% (145/145), done.
remote: Total 165 (delta 28), reused 67 (delta 16), pack-reused 0
Receiving objects: 100% (165/165), 645.57 KiB | 0 bytes/s, done.
Resolving deltas: 100% (28/28), done.
Checking connectivity... done.
Note: checking out 'f43bffa558742548b4bba1f39ef2771d97d7041c'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
Warning: variable CFLAGS was not passed in build_variables
make -C deps/http-parser library
make[1]: Entering directory /tmp/luarocks_turbo-2.0-4-6086/turbo/deps/http-parser' gcc -I. -DHTTP_PARSER_STRICT=0  -fPIC -Wall -Wextra -Werror -O3  -c http_parser.c -o libhttp_parser.o gcc  -shared -Wl,-soname=libhttp_parser.so.2.1 -o libhttp_parser.so.2.1 libhttp_parser.o make[1]: Leaving directory /tmp/luarocks_turbo-2.0-4-6086/turbo/deps/http-parser'
gcc -Ideps/http-parser/ -shared -O3 -Wall -g -fPIC deps/http-parser/libhttp_parser.o deps/turbo_ffi_wrap.c -o libtffi_wrap.so -lcrypto -lssl
==== Installing Turbo.lua v2.0.4 to: ====
==== /home/user/torch/install/lib/lua/5.1 and ====
==== /home/user/torch/install/share/luajit-2.0.4 ====
mkdir -p /home/user/torch/install/lib
mkdir -p /home/user/torch/install/bin
mkdir -p /home/user/torch/install/share/lua/5.1/turbo
mkdir -p /home/user/torch/install/share/luajit-2.0.4/turbo
cp -r turbo/* /home/user/torch/install/share/lua/5.1/turbo
cp -r turbo.lua /home/user/torch/install/share/lua/5.1
cp -r turbovisor.lua /home/user/torch/install/share/lua/5.1
cp -r turbo/* /home/user/torch/install/share/luajit-2.0.4/turbo
cp -r turbo.lua /home/user/torch/install/share/luajit-2.0.4
cp -r turbovisor.lua /home/user/torch/install/share/luajit-2.0.4
install -m 0755 bin/turbovisor /home/user/torch/install/bin
==== Building 3rdparty modules ====
make -C deps/http-parser library
make[1]: Entering directory /tmp/luarocks_turbo-2.0-4-6086/turbo/deps/http-parser' gcc  -shared -Wl,-soname=libhttp_parser.so.2.1 -o libhttp_parser.so.2.1 libhttp_parser.o make[1]: Leaving directory /tmp/luarocks_turbo-2.0-4-6086/turbo/deps/http-parser'
gcc -Ideps/http-parser/ -shared -O3 -Wall -g -fPIC deps/http-parser/libhttp_parser.o deps/turbo_ffi_wrap.c -o libtffi_wrap.so -lcrypto -lssl
==== Installing libtffi_wrap ====
test -f libtffi_wrap.so &&
install -m 0755 libtffi_wrap.so /home/user/torch/install/lib/libtffi_wrap.so.2.0.4 &&
ldconfig -n /home/user/torch/install/lib &&
ln -sf libtffi_wrap.so.2.0.4 /home/user/torch/install/lib/libtffi_wrap.so
==== Successfully installed Turbo.lua 2.0.4 to /home/user/torch/install ====
Updating manifest for /usr/local/lib/luarocks/rocks
turbo 2.0-4 is now built and installed in /usr/local/ (license: Apache 2.0)
user@Mami:~/.Waifu2X$ th waifu2x.lua
/usr/local/bin/luajit: /usr/local/share/lua/5.1/trepl/init.lua:383: lib/w2nn.lua:18: Failed to load CUDA modules. Please check the CUDA Settings.
/usr/local/share/lua/5.1/trepl/init.lua:383: /usr/local/share/lua/5.1/cutorch/init.lua:2: cannot load '/usr/local/lib/lua/5.1/libcutorch.so'
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/trepl/init.lua:383: in function 'require'
waifu2x.lua:5: in main chunk
[C]: in function 'dofile'
/usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00404270

It seems to be a cutorch(cuda module of torch data structure) issue.
Please try to reinstall that.
luarocks cutorch
luarocks cunn

user@Mami:~/.Waifu2X$ luarocks cutorch
Error: Unknown command: cutorch
user@Mami:~/.Waifu2X$ luarocks cunn
Error: Unknown command: cunn
user@Mami:~/.Waifu2X$

Ah, just noticed I need to do a sudo luarocks install cutorch  Now I'm getting this.
user@Mami:~/.Waifu2X$ sudo luarocks install cutorch
Installing https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... switching to 'build' mode
Cloning into 'cutorch'...
remote: Counting objects: 107, done.
remote: Compressing objects: 100% (104/104), done.
remote: Total 107 (delta 8), reused 34 (delta 1), pack-reused 0
Receiving objects: 100% (107/107), 156.81 KiB | 0 bytes/s, done.
Resolving deltas: 100% (8/8), done.
Checking connectivity... done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/usr/local/bin/.." -DCMAKE_INSTALL_PREFIX="/usr/local/lib/luarocks/rocks/cutorch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Torch7 in /usr/local
CMake Error at /usr/share/cmake-2.8/Modules/FindCUDA.cmake:548 (message):
Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
CMakeLists.txt:7 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_cutorch-scm-1-6154/cutorch/build/CMakeFiles/CMakeOutput.log".
Error: Build error: Failed building.
user@Mami:~/.Waifu2X$ sudo luarocks install cunn
Installing https://raw.githubusercontent.com/torch/rocks/master/cunn-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/cunn-scm-1.rockspec... switching to 'build' mode
Cloning into 'cunn'...
remote: Counting objects: 76, done.
remote: Compressing objects: 100% (70/70), done.
remote: Total 76 (delta 20), reused 17 (delta 2), pack-reused 0
Receiving objects: 100% (76/76), 93.95 KiB | 0 bytes/s, done.
Resolving deltas: 100% (20/20), done.
Checking connectivity... done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/usr/local/bin/.." -DCMAKE_INSTALL_PREFIX="/usr/local/lib/luarocks/rocks/cunn/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Torch7 in /usr/local
CMake Error at /usr/share/cmake-2.8/Modules/FindCUDA.cmake:548 (message):
Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
CMakeLists.txt:7 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_cunn-scm-1-480/cunn/build/CMakeFiles/CMakeOutput.log".
Error: Build error: Failed building.

Sorry, luarocks install cutorch and luarocks install cunn are correct.
If you use sudo, Maybe root does not read environment variables from user.
sudo su
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export CUDA_BIN_PATH=/usr/local/cuda/bin
luarocks install cutorch
luarocks install cunn

I recommend you to reinstall torch with non root environment.
See http://torch.ch/docs/getting-started.html
Unstall command: https://github.com/torch/ezinstall#updating-from-a-previous-version

Reinstalled torch with non root environment.  Torch seems to have installed fine.  No errors.
user@Mami:~/.Waifu2X$ th web.lua
/home/user/torch/install/bin/luajit: /home/user/torch/install/share/lua/5.1/trepl/init.lua:384: lib/w2nn.lua:18: Failed to load CUDA modules. Please check the CUDA Settings.
/home/user/torch/install/share/lua/5.1/trepl/init.lua:384: module 'cutorch' not found:No LuaRocks module found for cutorch
no field package.preload['cutorch']
no file 'lib/cutorch.lua'
no file '/home/user/.luarocks/share/lua/5.1/cutorch.lua'
no file '/home/user/.luarocks/share/lua/5.1/cutorch/init.lua'
no file '/home/user/torch/install/share/lua/5.1/cutorch.lua'
no file '/home/user/torch/install/share/lua/5.1/cutorch/init.lua'
no file './cutorch.lua'
no file '/home/user/torch/install/share/luajit-2.1.0-beta1/cutorch.lua'
no file '/usr/local/share/lua/5.1/cutorch.lua'
no file '/usr/local/share/lua/5.1/cutorch/init.lua'
no file '/home/user/.luarocks/lib/lua/5.1/cutorch.so'
no file '/home/user/torch/install/lib/lua/5.1/cutorch.so'
no file '/home/user/torch/install/lib/cutorch.so'
no file './cutorch.so'
no file '/usr/local/lib/lua/5.1/cutorch.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/home/user/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
web.lua:7: in main chunk
[C]: in function 'dofile'
...user/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670

I'm not sure why this newer version failed but I've rolled back to an older version with success.

It seems that cutorch is still not installed. I guess that CUDA is not detected from torch installer.
Is there nvcc?
nvcc --version

Then install cutorch
luarocks install cutorch
luarocks install cunn

I got an older version up and going.  I'll copy the newer version and see if it'll run.

I found that FindCUDA didn't work if nvcc is in /bin - I had to put /usr/bin first in my PATH. This is because FindCUDA strips /bin/ from the directory when determining CUDA_HOME and if it's /bin then nothing is left.
I got everything built but then it wouldn't run; looks like my nvidia card is too old, as cutorch gives me Unsupported gpu architecture 'compute_52' - I gave up for now.

nvcc fatal   : Unsupported gpu architecture 'compute_52'

I don't know your GPU model but this error is caused by old nvcc(CUDA 6.5?).
CUDA 7.5 is required.

Thank you for replying. Yes, 6.5, since 7.5 doesn't support my GPU  - NVIDIA Corporation GT216GLM [Quadro FX 880M]. I did find a version that is patched (by NVidia) to support it, but it's a 1GByte download and unfortunately it also includes the kernel drivers, which will cause other problems on my system. So I gave up for now, will try on a different machine when I get the chance. I'd love to see waifu2x written as a GEGL operation by the way.
Bu fixing FindNVCC to work if nvcc is in /bin and not /usr/bin might be worthwhile as Linux systems are moving to have /usr/bin just be a symlink to /bin.

Try sudo bash /torch/update.sh


No pod usage instructions and link doesn't work in readme

Hi looking to get this working and we really need some documentation to get this going

We're supporting only SPM at this time, not Cocoapods. But I'll add instructions for SPM shortly. Thanks.

Added support for CocoaPods
try pod 'IOS-BLE-Library', '~> 0.1.2'


(Build) Fail on features/fmt branch.

This issue is created automatically by CI.
Linux Build State: failure
Windows Build State: success
Commit: 251d71c2d8a9cea3e74537537c649526b0990e9a
Commit Branch: features/fmt
Commit Author: Monika0000

Issue is closed automatically by CI. Commit: e87535af22cfb9252c28d1ee4382e362c96672d1


get dev dependencies from setup.cfg

As mentioned in https://github.com/WIPACrepo/keycloak-rest-services/pull/52, there are other ways to list requirements than in requirements-dev.txt, and we should install them if possible.
For example:
pip install -e .[tests]

or
pip install -e .[dev]

this is solved by https://github.com/WIPACrepo/wipac-dev-mypy-action/pull/2 + https://github.com/WIPACrepo/wipac-dev-py-setup-action/pull/22


Feature: Added an action to collapse/expand the sidebar

Added a ToggleSidebar action, imitating 4af2d59 as a template.
Resolved / Related Issues

Closes #16005

Steps used to test these changes

Launch Files.
Take visual note of the sidebar, its size, presentation and border.
Press [Ctrl]+[Alt]+[S] as the default keybinding for ToggleSidebar.
Observe the sidebar and note if it has either collapsed or expanded.
Repeat the keyboard input as in №3.
Observe the sidebar and note if the opposite of №4 occured.
Finally, repeat the input from №3 a third time to confirm that the toggle state machine survives a full loop onwards.
Additionally, you may try to unbind the ToggleSidebar action and rebind it to another keyboard input to repeat the test with a non-default input.

Not quite seeing how I could test this myself yet.
As for the callback contents, it seemed like there's three ways of doing this — through:

Ad-hoc proxy to SidebarResizer_DoubleTapped. Was my initial plan.

https://github.com/files-community/Files/blob/39df64d692a83f01eb69dab96dc261a3d0bc9976/src/Files.App/UserControls/Sidebar/SidebarView.xaml.cs#L193

SidebarDisplayMode.Expanded/SidebarDisplayMode.Compact. Seemed abstracted away.

https://github.com/files-community/Files/blob/39df64d692a83f01eb69dab96dc261a3d0bc9976/src/Files.App/UserControls/Sidebar/SidebarDisplayMode.cs#L9

AppearanceSettingsService.IsSidebarOpen. Gone with this one.

https://github.com/files-community/Files/blob/39df64d692a83f01eb69dab96dc261a3d0bc9976/src/Files.App/ViewModels/UserControls/SidebarViewModel.cs#L125

Used the latter for this PR to closely match the reference commit.

Using the 4af2d59 commit as a template betrayed me in the localization strings department, heh.
Well, it was a trivial fix.

Once the issue is marked as ready for PR, I'll make the draft ready for review.

Thanks for the suggestion. And as for…

However, note that this may be rejected after all because the linked issue is still marked as planning.

That's why I'm keeping it a draft. 💁♂

I think you misunderstood.

Press [Ctrl]+[Alt]+[S] as the default keybinding for ToggleSidebar.
Observe the sidebar and note if it has either collapsed or expanded.

I've tried these steps, and it doesn't look like anything changes.

I'll see if I can build in CLI…
Not installing MVS under any circumstances.
Is there a way to make portable builds for rapid iteration without reinstallation?

Wait, you didn't even test the changes 😬
And as for portable builds, you can download the AppxPackages archive generated from the CI pipeline.

I left it a draft, remember?
And included testing steps.
I did try the workflow artifact build under a sandbox but wasn't able to have it install.
Didn't want it to mess with my existing installation, but I guess I'm gonna get rid of Files anyway, so I'll replace it with a development/test build.
But waiting on GH actions to build the binaries might not make very rapid iteration of local development.

Installing versions of Files from different production channels would not affect other channels.

Didn't want it to mess with my existing installation, but I guess I'm gonna get rid of Files anyway, so I'll replace it with a development/test build.

The dev builds have a different package name so you can have both versions installed at the same time.

I left the PR a draft, remember?
And included testing steps.
It's a collaborative project.

No harm done, don't worry about it 🙂

Installed the artifact with Visual Studio 2022 Developer PowerShell v17.11.5.
PowerShell 7.4.6 couldn't install it, because M$ broke AppX in it.
Tested the action — it doesn't work.
Thinking if SidebarResizer_DoubleTapped can be helpful here.
https://github.com/files-community/Files/blob/39df64d692a83f01eb69dab96dc261a3d0bc9976/src/Files.App/UserControls/Sidebar/SidebarView.xaml.cs#L193
https://github.com/files-community/Files/blob/39df64d692a83f01eb69dab96dc261a3d0bc9976/src/Files.App/UserControls/Sidebar/SidebarView.xaml#L109

Erm, no.  Need to refer to the instance…

Wait, wasn't there an interface..? 🤔 I need rest…

Yeah, I'm definitely doing this wrong.
https://github.com/files-community/Files/blob/95c21898e656a12a2aef363491537d584ae9c1fd/src/Files.App/Actions/Show/ToggleSidebarAction.cs#L9
https://github.com/files-community/Files/blob/95c21898e656a12a2aef363491537d584ae9c1fd/src/Files.App/Actions/Show/ToggleSidebarAction.cs#L31
Please advise.

😂

@0x5bfa Well, that doesn't look like advice to me.

Why wouldn't you like to install Visual Studio?

Lets try to stay on topic

Aight, let's try that.


Added XMinerClient

Hello everyone! I have added a monero miner with some pre-maked UI. Feel free to test and play.
Project URL
https://github.com/Luccifer/XMinerClient
Category
It can be added to 'Utility'.
Description
Simple and optimized Monero miner little client. Some UI is already preinstalled, everything can be changed for your own purposes
Why it should be included to awesome-ios (optional)
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later
[x] Supports Swift 4 or later
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          2 Warnings

:warning:
Too many changes (when adding, please keep it to one project per Pull Request)

:warning:
Found 2 link issues, a project collaborator will take care of these, thanks :)

Link issues by awesome_bot

Line
Status
Link

711
Error
https://github.com/Proxitee/iOS-SDK  Net::ReadTimeout

1869
301
https://github.com/jackymelb/awesome-ios-animation redirects tohttps://github.com/jzau/awesome-ios-animation

  Generated by :no_entry_sign: Danger

Hey @Luccifer, thanks for contributing!
Unfortunately, I cannot approve your PR because Apple is not accepting apps that are mining cryptocurrencies

@ifarah, is that awesome-ios or awesome Apple rules for iOS?
Never mind, may be better to open some sort of category for such cases, they can be very helpful for IT research and etc.. but, who cares :)

I agree with you that the code is valuable, but unfortunately, we cannot accept to avoid people getting their apps rejected because they didn't know about these rules.


Have performance information in README

In #449 there was an ask for better information about the cpu used to get performance numbers.
In #730, instead of adding that information, all performance information was removed.
Now folks coming by really have absolutely no idea what performance is. Most users searching for performance (like I did) will find an old reddit thread quoting the readme when it said 480@5fps, versus the more recent & now removed 480@10fps, so this removal of all information was extra dangerous.
I would like performance information in the readme.

We could just dump this sort of thing in a wiki or somewhere more appropriate for "moving target" type info.

It's totally okay to have it in the repo (that way it's version tracked with the code), just someone needs to update it regularly. I don't have any particular preferences on what content is tested - though we may want to think about what default speed we advertise. -s 10 will give us the best fps number, though the quality is poor at that speed.

We have started documenting encoding performance in release announcements. See for example: https://github.com/xiph/rav1e/releases/tag/v0.4.0

We have started documenting encoding performance in release announcements. See for example: https://github.com/xiph/rav1e/releases/tag/v0.4.0


Swagger doesn't detect that the host is reachable via https

Start an arangod with ssl like this:
/bin/arangod /tmp/abc --server.endpoint ssl://<IP_ADDRESS>:8529 --ssl.keyfile `pwd`/UnitTests/server.pem

go into the swagger interface, try out random route.
Neither the sugested curl requests nor the browser requests will be attempted to be sent via https but rather http - and fail.

#9043 and #9044 fix the browser requests, but the Curl requests still display with http://.

hm, the option to ["http", "https"]  doesn't fix it.

Ok, its only the static examples that aren't fixed, but this is by design. Since the PRs have been merged, I'm closing this as fixed.


Fauce API returning code 200, but trxHash is invalid and never executed

Thank you so much for creating this faucet! I tried using the commandline API and got the following response:
<Response [200]>
{"address":"0x8b77b3d75b5c543c3ab9f947afd33d52e13ceb83","txhash":"0x3125f2d52c6189fbf1d72776fa4da29a8200f42661ce8aef1b1b25173f097e7a","amount":1000000000000000000}

I entered the txHash into etherscan but unfortunately that transaction doesn't seem to exist and the address's balance doesn't change. I've tried this on two separate machines with different addresses as receivers and encounter this each time.

Seconded—thanks for running this service 🙏
And yes, it seems that it stopped donating ETH. The last OUT transaction was almost a week ago: https://ropsten.etherscan.io/txs?a=0x687422eea2cb73b5d3e242ba5456b782919afc85&p=3.

Rebooted it & seems fine now..
On Tue, 9 Jun 2020, 12:24 pm Jason B<EMAIL_ADDRESS>wrote:

Seconded—thanks for running this service 🙏
And yes, it seems that it stopped donating ETH. The last OUT transaction
was almost a week ago:
https://ropsten.etherscan.io/txs?a=0x687422eea2cb73b5d3e242ba5456b782919afc85&p=3
.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sponnet/locals-faucetserver/issues/20#issuecomment-641194900,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAERV5T4NODBSVWIN6CF7STRVYEUNANCNFSM4NIPGHNA
.


[Dev UI] [Evals] Add "run eval" button to the dataset detail page

Overview
TL:DR: Add the ability to run an evaluation right from a dataset.
User goals
When you try to run an evaluation, you get taken to the dataset page for the first time. It would be nice to be able to close the loop and offer a way to run evals right from a dataset.
Requirements

Disable the button if there is no data in the dataset
Select the right type if possible: flow or modal
If there is a target flow, choose that as the flow in the new eval dialog.
Move the download button into the overflow

Mocks:

Notes:
We may revisit these buttons later, but this should be a quick solve for our dead-end problem.

As discussed in the meeting:
We want this button to redirect to the Create New Evaluation page, with the dataset filled out.


"use of closed network connection" error

If any one test fails, other tests fail with a "use of closed network connection" error.
Here's a small example:
[IPs]
  BASEIP = ["198.252.206."]
  FAILOVER = ["192.111.0."]
  '^(\d+)$' = ["*", "BASEIP$1", "BASEIP($1+124)", "FAILOVER$1"]

[[plan]]
  label = "stackoverflow_com"
  url = "http://stackoverflow.com"
  ips = ["16", "<IP_ADDRESS>"]
  text = "<title>Stack Overflow</title>"
[[plan]]
  label = "tls_stackoverflow_com"
  url = "https://stackoverflow.com"
  ips = ["16"]
  text = "<title>Stack Overflow</title>"

[[plan]]
  label = "stackexchange_com"
  url = "http://stackexchange.com/"
  ips = ["16"]
[[plan]]
  label = "tls_stackexchange_com"
  url = "https://stackexchange.com/"
  ips = ["16"]

# This will fail. That URL is a 301, not a 200.

[[plan]]
  label = "cnn"
  url = "http://cnn.com"

Usually it runs and gets the right output:
NB: The CNN domain has 2 "A" records, and the tests fail because the result code is 301, not the expected 200.
$ httpunit --toml fail.toml
35 of 35 done in 435.180421ms
==== cnn: http://cnn.com DNS=<IP_ADDRESS> (200)
ERROR: unexpected status code: 301
==== cnn: http://cnn.com DNS=<IP_ADDRESS> (200)
ERROR: unexpected status code: 301

However sometimes the failure of CNN leads to other tests failing too:
$ httpunit --toml fail.toml
34 of 35 done in 500.119688ms
34 of 35 done in 1.000271216s
34 of 35 done in 1.500407069s
34 of 35 done in 2.000538638s
34 of 35 done in 2.500672141s
35 of 35 done in 2.997600346s
==== tls_stackoverflow_com: https://stackoverflow.com DNS=<IP_ADDRESS> (200 T)
ERROR: read tcp <IP_ADDRESS>:443: use of closed network connection
==== cnn: http://cnn.com DNS=<IP_ADDRESS> (200)
ERROR: unexpected status code: 301
==== cnn: http://cnn.com DNS=<IP_ADDRESS> (200)
ERROR: unexpected status code: 301

The actual error here is i/o timeouts. Our mechanism for timing out does not give very good error messages. #4 should help with that.


componentDefaultLocation not working if parameter is a string

In this function the variable rootURL is used, but it doesn't exist.

Thanks for reporting this. A fix will be in the next release.