Error: ImagineApi failed with status 400

Error: ImagineApi failed with status 400
at Midjourney.Imagine (/Users/username/github/midjourney-api/src/midjourney.ts:24:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at main (/Users/username/github/midjourney-api/example/imagine.ts:17:15)

Do you have a paid Midjourney account? I'm getting the same error, but my subscription has expired. I didn't try to run this API while my subscription was still active.

Do you have a paid Midjourney account? I'm getting the same error, but my subscription has expired. I didn't try to run this API while my subscription was still active.

It works now!
The problem was incorrect environment variables.
I have a subscription.
Thanks for reminding me about the problem!


easier way?

is there a easier way to self host this and on a chromebook on school wifi

Deploying is quick and easy. I would use replit

nothing happens


Fix inspector section iteration in update_tree

Fixes #99528

Thanks! Congratulations on your first merged contribution! 🎉


Cannot find code for p!help command

Title says it all. I would like to modify it so I can write the arguments needed for it. Also to make it look better

Yeah i never set up a help menu as i never expected someone to actually use this
You are free to modify it as much as you want


Making sure tests can be run and pass, on Linux

This patch fixes a few things around running tests + adds them to the GH Actions pipeline.
Specifically:

ant test-vscode-ext now passes on Linux (cannot try on Mac).
to do that, I needed this fix: https://github.com/apache/netbeans/pull/6771 , so including it as a patch.
the order of application of patches is becoming important, so manual git apply * may or may not work, depending on FS order. Tried to tweak the script to use git apply + avoiding duplication of the patch names (auto-reversing the list).
updates to BUILD.md to reflect all this + entry in the GH workflow

I tested patch application as well as build/test on Mac OS. All fine.
[exec]   12 passing (37s)
...
[exec] Module Build Harness
[exec] Module Build Harness
[exec]
[exec] Unpacking  org-netbeans-modules-apisupport-harness.nbm
[exec] Unpacking  org-netbeans-modules-apisupport-harness.nbm
[exec]
[exec] nbcode finished with status 0
[exec] Launching NBLS with user directory: /Users/sundarajanathijegannathan/Library/Application Support/Code/User/globalStorage/Oracle.oracle-java
[exec] WARNING: A terminally deprecated method in java.lang.System has been called
[exec] WARNING: System::setSecurityManager has been called by org.netbeans.TopSecurityManager (file:/Users/sundarajanathijegannathan/src/javavscode/vscode/nbcode/platform/lib/boot.jar)
[exec] WARNING: Please consider reporting this to the maintainers of org.netbeans.TopSecurityManager
[exec] WARNING: System::setSecurityManager will be removed in a future release
[exec]
[exec] Cannot enable Ant NetBeans Module Projects[org.netbeans.modules.apisupport.ant]
[exec]  - module org.netbeans.modules.ant.browsetask
[exec]
[exec]
[exec] nbcode finished with status 0


Updated watchmode.ts

removed the unneeded console.log on line 110(previosuly).
PR Checklist
Please check if your PR fulfills the following requirements:

[ ] The commit message follows our guidelines: https://github.com/scullyio/scully/blob/main/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hi @HANS-2002, thank you for your contribution. Could you sign the CLA and reference the issue in your PR?
Thank you


Expose missing method for searching playlists

Thanks for raising this @JMPerez :-) Added in 1.3.11!

Thanks for implementing it!


[Feature Request] Allow support for PowerLine Fonts in PowerShell

Could you please allow for PowerLine Patched fonts to be enabled in PowerShell so that customizations and interactivity such as Oh-My-Zsh could be brought right into PowerShell!

I don't think this is a PowerShell issue - we rely on the underlying console subsystem for fonts.
I thought powerline fonts worked, this comment suggests they do: https://github.com/Microsoft/BashOnWindows/issues/279#issuecomment-218726174
If you do have issues with the powerline fonts, I suggest searching https://github.com/Microsoft/BashOnWindows/issues to see if the issue is known/solved and open a new issue if you don't fine an existing one.

Yeah, they work. Some of them may not show up in the conhost properties dialog because they're not truly monospaced ... https://github.com/jaykul/powerline

Gotcha, sorry for misunderstanding the problem... I realized that PowerShell_ISE is able to render much more characters than the Shell counterpart, as it creates its own shell. Hence, the confusion.
Thanks, it still looks awesome!


Swipe options

Hi, I am trying to build something similar to iPhone maps app. The swippable modal opening when you click on map elements.
My question is:

If I start swiping down, I can't swipe up in the same motion (without release) anymore and vice versa. Any way around that?
On onSwipeMove I don't get a direction of the swipe along with percentage. This would be really useful and should be implemented.

Love the lib! :)

+1 on getting the swiping direction onSwipeMove. Or make the percentage read negative based on direction?

Hi!
I'm closing this issue because it's a question and not a bug report. Please don't take it personally, I'm just trying to make it easier to maintain this project by separating questions from bug reports 🙏.
If you're still looking for feedback/answers, could you please ask your question in a new discussion?
Thank you!


JetBrains: add .idea/httpRequests

Reasons for making this change:
This directory used by HTTP Client in IntelliJ IDEA (and other product), contains only requests history.
Links to documentation supporting these rule changes:
https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html#viewingResponse

@ikemo3 thanks for linking to the docs for this feature!


GET for target_id returns 404 when weight is set to 0

it works now with the default set to 0 !!!
The only thing to point out is that  a GET for http://adminapi:8001/upstreams//targets/<target_id> returns {"message":"Not found"} when weight is set to 0. Not sure if this is expected.
Originally posted by @osnm91 in https://github.com/Kong/deck/issues/364#issuecomment-926743090

@locao I would like to work on this issue, what file needs to be changed? and what message should target_id return when weight is 0?

@locao, I could not reproduce this with latest master.

The http://adminapi:8001/upstreams//targets/<target_id> is wrong URI, right would be: http://adminapi:8001/upstreams/<upstream_id>/targets/<target_id>?

Dear contributor,
We're closing this issue as there hasn't been any update to it for a long time. If the issue is still relevant in the latest version, please feel free to reopen it. We're more than happy to revisit it again.
Please have a look at our pledge to the community for more information.
Sincerely,
Kong Gateway Team


Nested parallel processes: how to handle them?

I couldn't find any satisfactory question (and answer) either in the opened issues or on stackoverflow, so I thought I might as well open an issue myself.
I'll illustrate the problem with my use-case (which is oversimplified below).

My dataset contains 30 observations which I divide in 3 subsamples of 10 observation each.
(the real dataset is much bigger and the number of subsamples is much higher)

>>> print(len(X))
>>> 30

     subsample1            subsample2            subsample3
x x x x x x x x x x | x x x x x x x x x x | x x x x x x x x x x |
0 1 2 3 4 5 6 7 8 9 | 0 1 2 3 4 5 6 7 8 9 | 0 1 2 3 4 5 6 7 8 9 |

For each subsample I train a model which needs to be tuned via cross-validation, for example using GridSearchCV or HyperbandSearchCV.
Say that I want to validate the l1 penalty of a Lasso regressor using a grid of 50 points, such that I train 50 models for every subsample.

from dask import compute, delayed
from dask_ml.model_selection import GridSearchCV
from sklearn.linear_model import Lasso

reg = Lasso()
param_space = np.logspace(1, -9, num=50)
param_grid ={'alpha': param_space}
model = GridSearchCV(reg)

In this case the schema would look something like:
              | model0
              | model1
subsample3 -> | ...
              | model49
------------------------
              | model0
              | model1
subsample3 -> | ...
              | model49
------------------------
              | model0
              | model1
subsample3 -> | ...
              | model49

As I said, in the real world application I have more than 100 subsamples on which I cross validate the model by training 50 different hyperparameter combinations for each subsample.
I could easily write a code like this:
from dask import compute, delayed
from . import load_data, get_subsample

X, y = load_dada()  # load_data is an imaginary function for loading the data
n_subsample = 100

results = []
for subsample in range(n_subsamples):
    X_train, y_train = get_subsample(X, y, subsample)  # get_subsample is an imaginary function which slices X and y
    results.append(delayed(model.fit)(X_train, y_train))
results = compute(*results)

To summarize:

Since I parallelized computations across subsamples dask is spawning one process for each subsample.
Since within each subsample I use GridSearchCV, which also makes use of multiprocessing, this will also try to spawn processes within the process.

In this case we could talk about nested processes.
My questions are:

How does dask handle this? If it doesn't handle it already, should it be able to?
Is this a bad design and does not have anything to do with dask in the first place?

Many thanks

I recommend using the dask.distributed scheduler for this.  It will route
dask calls back to the main scheduler when they are run, so everything will
share resources.
On Mon, Oct 5, 2020 at 11:54 AM gioxc88<EMAIL_ADDRESS>wrote:

I couldn't find any satisfactory question (and answer) either in the
opened issues or on stackoverflow, so I thought I might as well open an
issue myself.
I'll illustrate the problem with my use-case (which is oversimplified
below).

My dataset contains 30 observations which I divide in 3 subsamples
of 10 observation each.
(the real dataset is much bigger and the number of subsamples is much
higher)

print(len(X))
30

 subsample1            subsample2            subsample3

x x x x x x x x x x | x x x x x x x x x x | x x x x x x x x x x |
0 1 2 3 4 5 6 7 8 9 | 0 1 2 3 4 5 6 7 8 9 | 0 1 2 3 4 5 6 7 8 9 |

For each subsample I train a model which needs to be tuned via
cross-validation, for example using GridSearchCV or HyperbandSearchCV.
Say that I want to validate the l1 penalty of a Lasso regressor using
a grid of 50 points, such that I train 50 models for every subsample.

from dask import compute, delayed
from dask_ml.model_selection import GridSearchCV
from sklearn.linear_model import Lasso
reg = Lasso()
param_space = np.logspace(1, -9, num=50)
param_grid ={'alpha': param_space}
model = GridSearchCV(reg)
In this case the schema would look something like:
          | model0
          | model1

subsample3 -> | ...
| model49
          | model0
          | model1

subsample3 -> | ...
| model49
          | model0
          | model1

subsample3 -> | ...
| model49
As I said, in the real world application I have more than 100 subsamples
on which I cross validate the model by training 50 different hyperparameter
combinations for each subsample.
I could easily write a code like this:
from dask import compute, delayed
from . import load_data, get_subsample
X, y = load_dada()  # load_data is an imaginary function for loading the data
n_subsample = 100
results = []
for subsample in range(n_subsamples):
X_train, y_train = get_subsample(X, y, subsample)  # get_subsample is an imaginary function which slices X and y
results.append(delayed(model.fit)(X_train, y_train))
results = compute(*results)
To summarize:

Since I parallelized computations across subsamples dask is
spawning one process for each subsample.
Since within each subsample I use GridSearchCV, which also makes
use of multiprocessing, this will also try to spawn processes within the
process.

In this case we could talk about nested processes.
My questions are:

How does dask handle this? If it doesn't handle it already, should
it be able to?
Is this a bad design and does not have anything to do with dask in
the first place?

Many thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/6705, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACKZTDI7VUFQBQYJ6NA3MLSJII7LANCNFSM4SFBZROQ
.

I recommend using the dask.distributed scheduler for this. It will route dask calls back to the main scheduler when they are run, so everything will share resources.

Thanks so much for taking the time for looking into this.
I tried the approach you suggested but unfortunately it does not work.
For testing  I used dask_ml.model_selection.GridSearchCV as described above
Before that I started a local cluster by doing
from dask.distributed import Client
client = Client()

What happens is that the graph is computed but then the tasks never starts, they hang indefinitely.
Below the screen of what I see in the dashboard.

Do you think I can provide any additional information to help identify what causes the problem?
Many thanks
Gio

Hrm, that's odd.  To aid figuring out what's going on are you able to provide a minimal reproducer?  That would let maintainers run into the same problem that you're running into and more easily be able to see what is going on without guessing.  You might want to use some of the sklearn datasets to assist here.

Hrm, that's odd. To aid figuring out what's going on are you able to provide a minimal reproducer? That would let maintainers run into the same problem that you're running into and more easily be able to see what is going on without guessing. You might want to use some of the sklearn datasets to assist here.

I am very happy to provide a reproducible example.
I just tested this on  JupyterLab with:
python 3.8.6
dask 2.29.0
dask-ml 1.7.0
(even though I got the same problem with previous versions)
import numpy as np
import pandas as pd

from dask import compute, delayed
from dask.distributed import Client
from dask_ml.model_selection import GridSearchCV
from sklearn.linear_model import Lasso

# random number generator
rng = np.random.default_rng(7)

# client
client = Client()
client

# data
n_obs = 1000
n_features = 10
X = pd.DataFrame(rng.normal(size=(n_obs, n_features)))
y = pd.Series(rng.normal(size=(n_obs, )))

# estimators
estimator = Lasso()
param_grid = {'alpha': np.logspace(1, -5, num=10)}
search = GridSearchCV(estimator, param_grid=param_grid)

# subsamples
n_subsamples = 10
subsample_size = n_obs // n_subsamples
subsamples_starts = range(0, n_obs, subsample_size)

# parallel computation
results = []
for subsample_start in subsamples_starts:
    X_train = X[subsample_start:subsample_start+subsample_size]
    y_train = y[subsample_start:subsample_start+subsample_size]
    results.append(delayed(search.fit)(X_train, y_train))
results = compute(*results)

And this is what is shown on the dashboard. It's stuck and I need to interrupt the kernel as the cell never gets executed. The same behavior is present if I use PyCharm (just to say I don't think it is related to JupyterLab)

Thank you very much to anyone who will look into this.
Gio

Hrm, on a first attempt this unfortunately ran fine for me.
In [1]: import numpy as np
   ...: import pandas as pd
   ...:
   ...: from dask import compute, delayed
   ...: from dask.distributed import Client
   ...: from dask_ml.model_selection import GridSearchCV
   ...: from sklearn.linear_model import Lasso
   ...:
   ...: # random number generator
   ...: rng = np.random.default_rng(7)
   ...:
   ...: # client
   ...: client = Client()
   ...: client
   ...:
   ...: # data
   ...: n_obs = 1000
   ...: n_features = 10
   ...: X = pd.DataFrame(rng.normal(size=(n_obs, n_features)))
   ...: y = pd.Series(rng.normal(size=(n_obs, )))
   ...:
   ...: # estimators
   ...: estimator = Lasso()
   ...: param_grid = {'alpha': np.logspace(1, -5, num=10)}
   ...: search = GridSearchCV(estimator, param_grid=param_grid)
   ...:
   ...: # subsamples
   ...: n_subsamples = 10
   ...: subsample_size = n_obs // n_subsamples
   ...: subsamples_starts = range(0, n_obs, subsample_size)
   ...:
   ...: # parallel computation
   ...: results = []
   ...: for subsample_start in subsamples_starts:
   ...:     X_train = X[subsample_start:subsample_start+subsample_size]
   ...:     y_train = y[subsample_start:subsample_start+subsample_size]
   ...:     results.append(delayed(search.fit)(X_train, y_train))
   ...: results = compute(*results)
   ...:

In [2]: results
Out[2]:
(GridSearchCV(estimator=Lasso(),
              param_grid={'alpha': array([1.00000000e+01, 2.15443469e+00, 4.64158883e-01, 1.00000000e-01,
        2.15443469e-02, 4.64158883e-03, 1.00000000e-03, 2.15443469e-04,
        4.64158883e-05, 1.00000000e-05])}),
 GridSearchCV(estimator=Lasso(),
              param_grid={'alpha': array([1.00000000e+01, 2.15443469e+00, 4.64158883e-01, 1.00000000e-01,
        2.15443469e-02, 4.64158883e-03, 1.00000000e-03, 2.15443469e-04,
        4.64158883e-05, 1.00000000e-05])}),
 GridSearchCV(estimator=Lasso(),
              param_grid={'alpha': array([1.00000000e+01, 2.15443469e+00, 4.64158883e-01, 1.00000000e-01,
        2.15443469e-02, 4.64158883e-03, 1.00000000e-03, 2.15443469e-04,
        4.64158883e-05, 1.00000000e-05])}),
 GridSearchCV(estimator=Lasso(),
              param_grid={'alpha': array([1.00000000e+01, 2.15443469e+00, 4.64158883e-01, 1.00000000e-01,
        2.15443469e-02, 4.64158883e-03, 1.00000000e-03, 2.15443469e-04,
        4.64158883e-05, 1.00000000e-05])}),
 GridSearchCV(estimator=Lasso(),
              param_grid={'alpha': array([1.00000000e+01, 2.15443469e+00, 4.64158883e-01, 1.00000000e-01,
        2.15443469e-02, 4.64158883e-03, 1.00000000e-03, 2.15443469e-04,
        4.64158883e-05, 1.00000000e-05])}),
 GridSearchCV(estimator=Lasso(),
              param_grid={'alpha': array([1.00000000e+01, 2.15443469e+00, 4.64158883e-01, 1.00000000e-01,
        2.15443469e-02, 4.64158883e-03, 1.00000000e-03, 2.15443469e-04,
        4.64158883e-05, 1.00000000e-05])}),
 GridSearchCV(estimator=Lasso(),
              param_grid={'alpha': array([1.00000000e+01, 2.15443469e+00, 4.64158883e-01, 1.00000000e-01,
        2.15443469e-02, 4.64158883e-03, 1.00000000e-03, 2.15443469e-04,
        4.64158883e-05, 1.00000000e-05])}),
 GridSearchCV(estimator=Lasso(),
              param_grid={'alpha': array([1.00000000e+01, 2.15443469e+00, 4.64158883e-01, 1.00000000e-01,
        2.15443469e-02, 4.64158883e-03, 1.00000000e-03, 2.15443469e-04,
        4.64158883e-05, 1.00000000e-05])}),
 GridSearchCV(estimator=Lasso(),
              param_grid={'alpha': array([1.00000000e+01, 2.15443469e+00, 4.64158883e-01, 1.00000000e-01,
        2.15443469e-02, 4.64158883e-03, 1.00000000e-03, 2.15443469e-04,
        4.64158883e-05, 1.00000000e-05])}),
 GridSearchCV(estimator=Lasso(),
              param_grid={'alpha': array([1.00000000e+01, 2.15443469e+00, 4.64158883e-01, 1.00000000e-01,
        2.15443469e-02, 4.64158883e-03, 1.00000000e-03, 2.15443469e-04,
        4.64158883e-05, 1.00000000e-05])}))

That is super strange.
Both on my workstation and on my notebook the behavior is the same when I execute the code above. Maybe the problem is python 3.8?
Is there any other thing I can do to help you identify the problem?
Many thanks
Gio

I also saw he computation hanging. A couple things stand out:

You're delaying dask_ml.model_selection.GridSearchCV.fit. It's strange to wrap task-generating things like dask-ml's GridSearchCV inside a delayed object. Does just using sklearn.model_selection.GridSearchCV work?
Scikit-Learn's .fit API relies on mutation of the object to propagate return values. So delayed(search.fit) is delaying a reference to an object search that's mutated in each fit call. I'd recommend delaying fit on a cloned version

# parallel computation
results = []
for subsample_start in subsamples_starts:
    X_train = X[subsample_start:subsample_start+subsample_size]
    y_train = y[subsample_start:subsample_start+subsample_size]
    results.append(delayed(sklearn.base.clone(search).fit)(X_train, y_train))
results = compute(*results)

That completes for me.

I also saw he computation hanging. A couple things stand out:

You're delaying dask_ml.model_selection.GridSearchCV.fit. It's strange to wrap task-generating things like dask-ml's GridSearchCV inside a delayed object. Does just using sklearn.model_selection.GridSearchCV work?
Scikit-Learn's .fit API relies on mutation of the object to propagate return values. So delayed(search.fit) is delaying a reference to an object search that's mutated in each fit call. I'd recommend delaying fit on a cloned version

Dear @TomAugspurger, thank you very much for looking into this. I am aware of both points and I have an answer for all of them.
I'll address 2 first: very simply, for the sake of keeping the example minimal I did not clone the estimator here but in the original code it is deepcopied, but thanks for bringing that up.

The only difference in using dask GridSearchCV instead of sklearn GridSearchCV is that in the first case the process never starts (it hangs) in the second case it starts with a warning though:

loky-backed parallel loops cannot be called in a multiprocessing setting n_jobs=1
this means that effectively multiporcessing is not used even if I use sklearn GridSearchCV. Furthermore, I would prefer using  dask GridSearchCV because on the dashboard I got much more details about what task is being executed.
The reason why I want to do parallel computation both on the subsamples and on the parameter space is that in many case I could have a lot of subsamples but a parameter space which is not very broad so GridSeachCV or any other SearchCV instances might end up not using 100% of cpu for a single subsample.
Gio

any news on this?
Many thanks
Gio

I'm not sure, but the strangest thing I see is the delayed(search).fit(X, y). Typically you don't delay things that are already using dask.
If you're interested, you could try to get the raw dask graph out of https://github.com/dask/dask-ml/blob/master/dask_ml/model_selection/_search.py#L1230 to avoid the delay. And then do one big compute at the end on all of those.

Thank you for the answer
If you look carefully I am delaying search.fit and not search as your code implies.
After running additional tests I think I found a hint on what could be the cause of the problem.
Basically today I tested the code on linux and if works fine, whereas on Windows it hangs as described above.
Since @mrocklin you tested the code and it worked fine for you could you please confirm that you actually tested it on a linux machine?
also @TomAugspurger you said it was hanging for you, could you please confirm that you tested it on windows?
If that's the case I am afraid my knowledge is too limited to open on PR which could fix the problem on windows and I would ask help from the community to fix it.
Many thanks

Since @mrocklin you tested the code and it worked fine for you could you please confirm that you actually tested it on a linux machine?

Yes, I run Ubuntu 20.04 on a Lenovo Thinkpad.

any idea of why it hangs on windows?

I do not right now have such an idea.  It is unlikely that I personally
will test this out immediately.  I encourage others to though.
On Mon, Nov 9, 2020 at 4:10 AM gioxc88<EMAIL_ADDRESS>wrote:

any idea of why it hangs on windows?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/6705#issuecomment-723974326, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACKZTGQBNUMPRVHO54QWPLSO7L3JANCNFSM4SFBZROQ
.

@mrocklin I doing tests using nested calls to delayed and compute and I also came across the problem of work stealing.
This results in errors and the overall job fails with a traceback because some process has been closed. And I think is related to work stealing.
I wonder though can this be because I also call compute on multiple times so the scheduler is not able to make the whole computation graph in advance?
Would something returning the futures object for each nested function and then calling compute once solve the problem?
I was wondering if this nested problem can be attacked by using async def or using coroutines.
This would change my implementation by a lot so I wanted your opinion on this before diving into deep waters
Thanks
Gio


ROCm 3.1 OpenCL bad compilation

ROCm 3.1 OpenCL, Linux kernel 5.4.24, RadeonVII
This issue refers to this commit:
https://github.com/preda/gpuowl/commit/79ae868be3fa0f97eaa11a762d1a4bcf2926fb82
To repro, please create dump folders named e.g. "good" and "bad", and run:
./gpuowl -prp 94080289 -dump good
./gpuowl -prp 94080289 -dump bad -use ENABLE_ROCM_BUG
The only difference between the two is controlled by the define ENABLE_ROCM_BUG in gpuowl.cl (see the commit linked above), i.e.:
#if ENABLE_ROCM_BUG
  out += MIDDLE * (WIDTH * SIZEX * gx + WG * gy);
#else
  out += MIDDLE * WIDTH * SIZEX * gx + MIDDLE * WG * gy;
#endif

In the repro case above, those values are:
MIDDLE = 10
WIDTH = 1024
SIZEX = 32
WG = 256

(in particular, there should be no overflow on the additions or multiplications).
In this situation, the two expressions used in the two branches
MIDDLE * (WIDTH * SIZEX * gx + WG * gy);
MIDDLE * WIDTH * SIZEX * gx + MIDDLE * WG * gy;

should be equivalent. Yet one works and the other doesn't.
What's more, if in the "bad" case we enable "DEBUG" which consists in just sprinkling a few printf() in the code (that are not even executed), the "bad" case starts working, see e.g.:
./gpuowl -prp 94080289 -use ENABLE_ROCM_BUG,DEBUG
The bug is isolated to a single kernel "fftMiddleOut", this should make it easier to localize.
As this bug at first look seems to concern a bad compilation of simple arithmetic on a pointer, it seems rather severe (i.e. high priority) to me.

The above problem does not reproduce on ROCm 2.10

@preda do you have a unit test for fftMiddleOut?  How were you able to localize the problem?
Printf has a pretty big impact on the IR.  Have you tried cutting back on the optimization to see if that has an effect?  E.g. -O1, -O1, -O2?

@b-sumner I don't have a unit test (that executes only this kernel in isolation), that role is played by executing the program as instructed above -- it automatically detects whether the computation is correct or not ("self-validating"). Running
./gpuowl -prp 94080289 -use ENABLE_ROCM_BUG
on ROCm 3.1 will stop with an error message, but will proceed correctly on ROCm 2.10 or when run without the define. The problem is easy to reproduce, and it reproduces consistently and fast.
The behaviour with printf is just additional information; printf is not at the core of this issue which can be reproduced without any printf involvement.
Normally I compile without any -O, using the (OpenCL) default. I tried now with -O0 and the problem is still present.
I localized the problem in two ways: first, the define that switches on/off the bug is very small and localized, so the problem is linked to that change. Second, by doing diffs on the ISA dumps that are obtained with -dump as above, the ISA changes affect only that kernel (as expected based on the source changes).
IMO this could be a starting point to investigate this: compare the good ISA output with the bad one, and try to understand what is wrong there, next look for the cause of the difference.

Hi @preda
Thanks for reaching out.
Can you please check on ROCm 4.1 and share an update asap.
Thank you.


Update Blazor template package version in get started doc

Do you want this one to go now ... or later when I shoot the others in?

Let's wait for the announcements to go out first.


RecyclerView with Indexed Data

Hi All,
I'm currently using Firebase UI with indexed data in a recycler view. I want to show the latest post from the indexed data first, there for i'm using .setStackFromEnd(true) however when loading the recyclerview, it loads the first set of data from the first key in "setStackFromEnd" order, however I need to swipe the recycler to get the rest of keys data.
If I use .smoothScrollToPosition(mRecycler.getAdapter().getItemCount() -1)  in a button this will take me to the last position. However it loads ALL of the data inbetween and the can be very hefty on data.
Has anyone got a solution for the recyclerview to load the very last post of all the indexed data? Or is this a glitch in the system?
Thanks for your help

Classic SO question: https://stackoverflow.com/a/27727398/4548500

@joemerritt see the answer that was pointed out by @SUPERCILEX.

Hi Guys, I'm still struggling with this. I've read the solution posted but it's not answering my issue. When using:
    mLayoutManager.setReverseLayout(true);
    mLayoutManager.setStackFromEnd(true);

My recycler loads 3-4 post (incorrect order) however does not load at the very last post. Users have to swipe to get to the very last post.
I'm not sure if this is an issue of using indexed data?
Thanks for your time and help


Move to Bootstrap 5

Proposed Changes
Move to Bootstrap 5 when a stable release will be out.

[ ] Use Bootstrap 5
[ ] Change icon pack to use one with more network icons (Material Design maybe?)
[ ] Split base template into small ones like sidebar.html, navbar.html, …

Justification
Follow Bootstrap major release to use new enhancements it brings as we are currently bad at doing UI. We can take advantage of this work to change the icon pack to find one more suitable (with more network related icons). The base template must also be split into smaller ones to make it more maintainable (one for the sidebar, …)

Waiting for Bootstrap 5.3 to be released as stable to have native dark mode.


daterange ignored when getting videos from channel

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
I'm trying to download all the videos from a channel between two dates. I've tried with the python package and the CLI and the results are the same.
Here's my python code
import yt_dlp

start=datetime(2024, 7, 1)
end=datetime(2024, 7, 31)
start_str = start.strftime("%Y%m%d")
end_str = end.strftime("%Y%m%d")
ydl_opts = {
    "extract_flat": True,
    "quiet": True,
    "daterange": yt_dlp.utils.DateRange(start_str, end_str)
}

with yt_dlp.YoutubeDL(ydl_opts) as ydl:
    info = ydl.extract_info(f"https://www.youtube.com/@MrBeast/videos", download=False)
    list_of_videos_urls = [entry["url"] for entry in info["entries"]]
print(len(list_of_videos_urls))

Checking the channel from @MrBeast we see there are only 2 videos uploaded this month, however, the length of the script prints 753 (ie: all the videos uploaded in that channel).
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out UTF-8 (No ANSI), error UTF-8 (No ANSI), screen UTF-8 (No ANSI)
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp [89a161e8c] (pip) API
[debug] params: {'extract_flat': True, 'quiet': True, 'daterange': yt_dlp.utils.DateRange('2024-07-01', '2024-07-31'), 'verbose': True, 'compat_opts': set(), 'http_headers': {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.50 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': 'en-us,en;q=0.5', 'Sec-Fetch-Mode': 'navigate'}}
[debug] Python 3.12.4 (CPython arm64 64bit) - macOS-13.5.2-arm64-arm-64bit (OpenSSL 3.3.1 4 Jun 2024)
[debug] exe versions: ffmpeg 7.0.1 (setts), ffprobe 7.0.1
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.07.04, mutagen-1.47.0, requests-2.32.3, sqlite3-3.46.0, urllib3-2.2.2, websockets-12.0
[debug] Proxy map: {'no': '*'}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1829 extractors
[youtube:tab] Extracting URL: https://www.youtube.com/@MrBeast/videos
[youtube:tab] @MrBeast/videos: Downloading webpage
[debug] [youtube:tab] Selected tab: 'videos' (videos), Requested tab: 'videos'
[download] Downloading playlist: MrBeast - Videos
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 1: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 2: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 3: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 4: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 5: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 6: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 7: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 8: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 9: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 10: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 11: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 12: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 13: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 14: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 15: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 16: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 17: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 18: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 19: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 20: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 21: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 22: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 23: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 24: Downloading API JSON
[youtube:tab] UCX6OQ3DkcsbYNE6H8uQQuVA page 25: Downloading API JSON
[youtube:tab] Playlist MrBeast - Videos: Downloading 753 items of 753
[debug] The information of all playlist entries will be held in memory
[download] Downloading item 1 of 753
[download] Downloading item 2 of 753
[download] Downloading item 3 of 753
[download] Downloading item 4 of 753
[download] Downloading item 5 of 753
... (skipping +740 logs for readability)
[download] Downloading item 752 of 753
[download] Downloading item 753 of 753
[download] Finished downloading playlist: MrBeast - Videos

It doesn't work with 'extract_flat': True


Add Info about the OAuth2 Security Schemes to be used

Improved description of security schemas and application in Zalando. Also fixed a change log entry added in #632 with incorrect rule reference.

@tkrop merged your PR, thx.

👍

If you did, you forgot to push or overrode the changes.

:+1:

👍


The Paginated Report Icons are outdated.

The Paginated Report Icons are outdated.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 6a369b04-29d6-5ca9-f463-81eead1e4e7c
Version Independent ID: 1851712a-8d60-bd18-6e32-93026eeb91cf
Content: Paginated reports in the Power BI service - Power BI
Content Source: powerbi-docs/consumer/end-user-paginated-report.md
Service: powerbi
Sub-service: pbi-explore
GitHub Login: @maggiesMSFT
Microsoft Alias: maggies

Thanks for your comment, @gtherezan. This issue has been assigned to the doc author for review.


fix: project level assessment

Description of change
Issue
PR reviewer notes
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@saikiranakula-amzn please provide some basic description or tag issue....

Looks good, but we need to discuss how this will be consumed to finalize the APIs

I will schedule sometime today to go over it


rmaiya_solution-Parser1

@jaybobo @sjreich @sampriddy

Assuming this actually passes (I''m too lazy to clone it and everything), :+1: .
Two things to clean it up:
Markup:

calling #split on the string before checking it against the regex will drastically uncomplicate the regex you need.
using the regexp method === instead of String#match is a bit better, because the former returns a boolean directly, whereas the latter returns the index of the match, which gets cast into a boolean.

:+1: Noted!


stellar-hd-wallet probably shouldn't echo the passphrase

Currently, stellar-hd-wallet echos back the user-input during entry of their seed-protection password [1].
There are ways to prevent echo from stdin using already-dependent Go modules [2], so hopefully this should be a trivial enhancement to make.  It should probably also make the user enter it twice and diff to prevent typos.
I took a run at this in a personal fork, but I'm terrible with Go and couldn't get the desired result.
[1].  https://github.com/stellar/go/blob/master/tools/stellar-hd-wallet/commands/accounts.go#L43
[2].  https://godoc.org/golang.org/x/crypto/ssh/terminal#ReadPassword

Hi @kfiresmith this would be a nice feature to add, but I think stellar-hd-wallet is meant to be used as a reference implementation, not something to use in production. I'm closing this one and #276.


Rework LSP + Mason setup

Mason and lsp-config are separated though there exists mason-lspconfig.
Goal should be to spefiy LSPs in one place and Mason ensures that the LSPs are installed and mason-lspconfig wires the setting
https://github.com/williamboman/mason.nvim
https://github.com/williamboman/mason-lspconfig.nvim

Any plans to switch to LazyVim ?

Hi @flamedmg, I have no plans to switch to LazyVim. Of course, I do like LazyVim, as pretty much all of @folke's stuff, but I also like running my config with all its ups (and downs) ;)
Thanks for your hint!

solved


Move to go modules

Right now go is with go 1.13.6, many repos have been moved to go modules which is the future go toolchain. So suggesting move this repo to also use go modules and deprecate dep.

+1 on this. PR to do this is very welcome!

Should this be closed? 🤔

yeah, it can be closed now. thanks for the reminder. :)


Update supported LDC to v1.23 + v1.22

And it uncovered a bad bug!

Green, nice !
So just three things:

Remove the non-postfixed libs, it's redundant;
Fix the formatting of the array of versions to be somewhat readable;
Squash;

And we're g2g

Great, thanks!


update dev documentation to install bazel 0.2.3

dev setup docs have instructions to setup bazel 0.1.2.  But master uses 0.2.3.
http://twitter.github.io/heron/docs/developers/compiling/compiling/
http://twitter.github.io/heron/docs/developers/compiling/compiling/

Fixed in #942 in PR - we need to launch the site.

@lucperkins - can we relaunch the doc site?

This is completed.


[Blob][Bug]Fix Batch Set Tiers and Batch Delete Blobs Bug

Here is the list that batch operation doesn’t work in Python track2 this pr is to address them
Batch Authenticate using sas
Batch delete/set tier for blob with special characters in name
Batch delete/set tier for blobs in different containers
Batch delete snapshot
Batch Delete leased blobs,
Batch Delete blob with matching condition
Set batch operation timeout in sub request/ main request

/azp run python - storage - test

This pr is to address remaining comments https://github.com/Azure/azure-sdk-for-python/pull/11864


[WIP] Add Soft Actor-Critic agent

~Merge #453 before this PR.~

SoftActorCritic agent is added. It implements the variant of SAC described in https://arxiv.org/abs/1812.05905.
SquashedGaussianDistribution is added.
arctanh function is added.
examples/mujoco/soft_actor_critic/train_soft_actor_critic.py is added to reproduce the results reported by the paper.

As you can see from the tables in README, our results are competitive with theirs.
https://github.com/muupan/chainerrl/tree/soft-actor-critic/examples/mujoco/soft_actor_critic
TODO

[x] add tests of SoftActorCritic
[x] add tests of SquashedGaussianDistribution
[x] fix error with chainer v4

pfnCI, test this please.


Patch 5.1 changes

Patch 5.1 introduces dramatic crafting changes as follows:

Action Name

Description

Level 42 Final Appraisal

The next action that would complete item synthesis will instead leave one progress point remaining.Effect active for five steps.

Level 47 Waste Not II

Reduces loss of durability by 50% for the next eight steps.

Level 55 Careful Observation (Specialist)

Do nothing for one step, preserving the status of any actions presently in effect.A crafter's delineation is used upon execution.Can only be used up to three times per synthesis.This action does not increase step count.

Level 69 Reflect

Increases Inner Quiet stack by three (up to 11).Available only on the first step.

Action Name

Change

Rapid Synthesis

Now acquired at level 9 (previously level 15).

Hasty Touch

Now acquired at level 9 (previously level 15).Success rate has been increased from 50% to 60%.

Tricks of the Trade

Now acquired at level 13 (previously level 15).

Ingenuity

The effects of this action have been revamped.Ingenuity now functions as follows:For the next five steps, effectiveness of Touch and Synthesis actions is increased.

Innovation

Now acquired at level 26 (previously level 50).The effects of this action have been revamped.Innovation now functions as follows:Increases efficiency of Synthesis and Touch actions by 20% for the next four steps.Bonus no longer shares a cap with inner quiet.

Muscle Memory

The effects of this action have been revamped.Muscle Memory now functions as follows:Increases progress.Efficiency: 300%Success Rate: 100%Additional Effect: Efficiency of your next Synthesis action is increased by 100%Available only on the first step.Additional effect is active for five steps.

Great Strides

Increase to efficiency has been changed from double to an additive increase of 100%.

Name of the Elements

Number of active turns has been reduced from 5 to 3.Increase to efficiency is now capped at 200%.CP cost has been increased from 15 to 30.

Patient Touch

Increase to Inner Quiet stacks when successful has been increased from 1 to double current stacks.

Basic Synthesis

Success rate has been increased from 90% to 100%.

Basic Touch

Success rate has been increased from 70% to 100%.

Master's Mend

CP cost has been reduced from 92 to 88.

Inner Quiet

Bonus no longer shares a cap with Innovation.

Standard Touch

Success rate has been increased from 80% to 100%.

Brand of the Elements

Success rate has been increased from 90% to 100%.

Byregot's Blessing

Success rate has been increased from 90% to 100%.

Precise Touch

Success rate has been increased from 70% to 100%.Efficiency has been increased from 100% to 150%.

Prudent Touch

Success rate has been increased from 70% to 100%.CP cost has been increased from 21 to 25.

Preparatory Touch

Success rate has been increased from 70% to 100%.CP cost has been increased from 36 to 40.

Intensive Synthesis

Success rate has been increased from 80% to 100%.CP cost has been reduced from 12 to 6.

Trained Eye

Increase to quality has been increased from 50% to 100% of an item's quality.

Although most dramatically is...
The following crafter actions have been removed.
All Classes

Steady Hand
Master's Mend II
Steady Hand II
Standard Synthesis
Advanced Touch
Hasty Touch II
Initial Preparations
Rapid Synthesis II
Rapid Synthesis III
Trained Instinct
Satisfaction
Whistle While You Work
Finishing Touches
Innovative Touch
Nymeia's Wheel
Byregot's Miracle
Trained Hand
Specialty: Reinforce
Specialty: Refurbish
Specialty: Reflect

Carpenter

Rumination
Heart of the Carpenter

Blacksmith

Ingenuity II
Heart of the Blacksmith

Armorer

Piece by Piece
Heart of the Armorer

Goldsmith

Manipulation
Flawless Synthesis
Maker's Mark
Heart of the Goldsmith

Leatherworker

Waste Not II
Heart of the Leatherworker

Weaver

Careful Synthesis
Careful Synthesis II
Heart of the Weaver

Alchemist

Comfort Zone
Heart of the Alchemist

Culinarian

Reclaim
Heart of the Culinarian

Wow.
I’ll be back from vacation next weekend and I’ll take a look at this and your pull request then.
On Nov 3, 2019, 12:55 AM +0000, Alexander Bisset<EMAIL_ADDRESS>wrote:

Patch 5.1 introduces dramatic crafting changes as follows:
Action Name
Description
Level 42 Final Appraisal
The next action that would complete item synthesis will instead leave one progress point remaining.Effect active for five steps.
Level 47 Waste Not II
Reduces loss of durability by 50% for the next eight steps.
Level 55 Careful Observation (Specialist)
Do nothing for one step, preserving the status of any actions presently in effect.A crafter's delineation is used upon execution.Can only be used up to three times per synthesis.This action does not increase step count.
Level 69 Reflect
Increases Inner Quiet stack by three (up to 11).Available only on the first step.
Action Name
Change
Rapid Synthesis
Now acquired at level 9 (previously level 15).
Hasty Touch
Now acquired at level 9 (previously level 15).Success rate has been increased from 50% to 60%.
Tricks of the Trade
Now acquired at level 13 (previously level 15).
Ingenuity
The effects of this action have been revamped.Ingenuity now functions as follows:For the next five steps, effectiveness of Touch and Synthesis actions is increased.
Innovation
Now acquired at level 26 (previously level 50).The effects of this action have been revamped.Innovation now functions as follows:Increases efficiency of Synthesis and Touch actions by 20% for the next four steps.Bonus no longer shares a cap with inner quiet.
Muscle Memory
The effects of this action have been revamped.Muscle Memory now functions as follows:Increases progress.Efficiency: 300%Success Rate: 100%Additional Effect: Efficiency of your next Synthesis action is increased by 100%Available only on the first step.Additional effect is active for five steps.
Great Strides
Increase to efficiency has been changed from double to an additive increase of 100%.
Name of the Elements
Number of active turns has been reduced from 5 to 3.Increase to efficiency is now capped at 200%.CP cost has been increased from 15 to 30.
Patient Touch
Increase to Inner Quiet stacks when successful has been increased from 1 to double current stacks.
Basic Synthesis
Success rate has been increased from 90% to 100%.
Basic Touch
Success rate has been increased from 70% to 100%.
Master's Mend
CP cost has been reduced from 92 to 88.
Inner Quiet
Bonus no longer shares a cap with Innovation.
Standard Touch
Success rate has been increased from 80% to 100%.
Brand of the Elements
Success rate has been increased from 90% to 100%.
Byregot's Blessing
Success rate has been increased from 90% to 100%.
Precise Touch
Success rate has been increased from 70% to 100%.Efficiency has been increased from 100% to 150%.
Prudent Touch
Success rate has been increased from 70% to 100%.CP cost has been increased from 21 to 25.
Preparatory Touch
Success rate has been increased from 70% to 100%.CP cost has been increased from 36 to 40.
Intensive Synthesis
Success rate has been increased from 80% to 100%.CP cost has been reduced from 12 to 6.
Trained Eye
Increase to quality has been increased from 50% to 100% of an item's quality.
Although most dramatically is...
The following crafter actions have been removed.
All Classes
• Steady Hand
• Master's Mend II
• Steady Hand II
• Standard Synthesis
• Advanced Touch
• Hasty Touch II
• Initial Preparations
• Rapid Synthesis II
• Rapid Synthesis III
• Trained Instinct
• Satisfaction
• Whistle While You Work
• Finishing Touches
• Innovative Touch
• Nymeia's Wheel
• Byregot's Miracle
• Trained Hand
• Specialty: Reinforce
• Specialty: Refurbish
• Specialty: Reflect
Carpenter
• Rumination
• Heart of the Carpenter
Blacksmith
• Ingenuity II
• Heart of the Blacksmith
Armorer
• Piece by Piece
• Heart of the Armorer
Goldsmith
• Manipulation
• Flawless Synthesis
• Maker's Mark
• Heart of the Goldsmith
Leatherworker
• Waste Not II
• Heart of the Leatherworker
Weaver
• Careful Synthesis
• Careful Synthesis II
• Heart of the Weaver
Alchemist
• Comfort Zone
• Heart of the Alchemist
Culinarian
• Reclaim
• Heart of the Culinarian
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Another useful reference for these changes: https://www.xivcraftingguide.com/51-patch-changes

The initial set of patch 5.1 changes have been deployed to the beta site.

Are there any changes that still need to be done to adapt to 5.1?


markdown clean up

check markdownlint:
https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint
or
https://open-vsx.org/extension/DavidAnson/vscode-markdownlint

@redwerkz Thanks! Although it looks better in markdown while editing, it doesn't looks better for readers...

I borrowed a few changes... https://github.com/R0GGER/public-iperf3-servers/commit/ccff0f2d91c980e3be3a3761d812eefba381f7f5
Thanks for your recommendations.


It's throwing an error code after the interview

ERROR: Infinite loop: housing_authority already looked for, where stack is {‘housing_authority’} #1

I ended up starting over. #1 is resolved but the project is in a new repository.


Update README.md with minor text changes

Thanks @ricog! 🍻

Forgot to change the commit message 🤦♂


SMTP integration

With continue to https://github.com/hystax/optscale/issues/116
Hi, thank you, I managed to integrate with SMTP-SSL and managed to have server hello and client hello, cipher handskae, application data and all...
yet I'm getting a SMPT error Alert Message: Encrypted Alert
AS this is encrypted now, I cannot tell what is the issue.
Where in the optsclae, I can track the logs of the SNMP logic to see what the issue?

Hi @elikkatzgit
Please check Herald service logs (container_name:herald)in Kibana (port 30081) - they should describe what's happening there.

how to get the credentials for kibana.its asking for creds while accessing the port


Agrego preguntas a archivo json

Agrego preguntas

Codecov Report

Merging #67 into develop will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop      #67   +/-   ##
==========================================
  Coverage      92.83%   92.83%
  Complexity       208      208
==========================================
  Files             28       28
  Lines            377      377
  Branches          21       21
==========================================
  Hits             350      350
  Misses            27       27

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 2fcd71d...0184578. Read the comment docs.


⚠ Bofrost.be has degraded performance

In 003f476, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1509 ms

Resolved: Bofrost.be performance has improved in d303ed9 after 6 minutes.


more tutorial refactoring

follow-up to #4102. This reverts the combination of tutorial.open_dataset and tutorial.open_rasterio (the concept of tutorial.open_* is "cached download+open_*"), and updates the tests to not depend on a environment variable (which makes the tests also run on macos and windows).
In #4102 I added a list of available datasets, but it would be good to add a small description. I still need descriptions for:

[x] air_temperature
[x] rasm
[x] ROMS_example
[x] era5-2mt-2019-03-uk.grib
[x] RGB.byte (the readme says "derived from USGS Landsat 7 ETM imagery")

[x] Passes pre-commit run --all-files
[x] User visible changes (including notable bug fixes) are documented in whats-new.rst

Hello @keewis! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file xarray/backends/rasterio_.py:

Line 0:1: E902 FileNotFoundError: [Errno 2] No such file or directory: 'xarray/backends/rasterio_.py'

I decided to also make "shade.tif" from rasterio's test data available through tutorial.open_rasterio (doesn't have to be this file, though, I just wanted to make sure tutorial.open_rasterio can open more than one file).
This should be ready to merge as is (once the tests pass) but the dataset descriptions still need to be done.

ping. Should we try to silence the
Use this value as the 'known_hash' argument of 'pooch.retrieve' to ensure that the file hasn't changed if it is downloaded again in the future.

warning? Otherwise this should be ready for merging (but please do check the dataset descriptions, I'm really not sure about those).

Yes, we should silence this! And maybe make a feature request to Pooch
On Sat, Apr 17, 2021 at 3:15 PM keewis @.***> wrote:

ping. Should we try to silence the
Use this value as the 'known_hash' argument of 'pooch.retrieve' to ensure that the file hasn't changed if it is downloaded again in the future.
warning? Otherwise this should be ready for merging (but please do check
the dataset descriptions, I'm really not sure about those).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pydata/xarray/pull/5074#issuecomment-821895073, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJJFVST2EEKN3D4WK5EZQLTJIB77ANCNFSM4ZYJDKPQ
.

how, exactly? I can probably add a warnings filter, but we could also add tags to xarray-data and hard-code that together with the hash sums in xarray.tutorial (I think we talked about that in #4102). Thoughts, @andersy005?

how, exactly? I can probably add a warnings filter, but we could also add tags to xarray-data and hard-code that together with the hash sums in xarray.tutorial (I think we talked about that in #4102). Thoughts, @andersy005?

see here for an example: https://docs.python.org/3/library/warnings.html#temporarily-suppressing-warnings

oh, sorry. I actually meant to ask whether I should use the way recommend by pooch or simply suppress the warning. I guess that still answers that question, though.

We could do something like, which is a bit overbearing, but would solve this until it's unblocked by pooch:
logging.getLogger("google.cloud.bigquery.opentelemetry_tracing").setLevel(
    logging.CRITICAL
)

(there may well be ways of doing this only within our execution, which we could do if this is a long-term solution)

Pooch really shouldn't be registering it's own logger, since it's a library not an application: https://github.com/fatiando/pooch/pull/232
That said, for now I agree with @max-sixty's recommendation. It's recommended in the Pooch docs, too:
https://www.fatiando.org/pooch/dev/advanced.html#adjusting-the-logging-level

I didn't see that part of the documentation, this should be fixed now. Thanks for the hints, @max-sixty, @shoyer.

we have to make sure to deprecate / remove xr.tutorial.open_rasterio along with xr.open_rasterio, but otherwise this is ready.


Malformed calls from JS: field sizes are different.

var CookieManager = require("react-native-cookies")
CookieManager.clearAll((err, res) => {
  console.log(err);
  console.log(res);
});

Error logged in console-
Malformed calls from JS: field sizes are different.
[[77,42,33],[4,0,0],[[23,2000,1555083110439,false],[["cookie"],107]],51]

Try this:
CookieManager.clearAll()
  .then((res) => {
    console.log(res);
  });

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store
We can create issues and PRs there to continue the development of the project.


games: Grand Theft Auto Online has added BattlEye

Closes #1728

It's also unlikely that have any other anti-cheat than BattlEye, so I'm going to remove the other one.

It's also unlikely that have any other anti-cheat than BattlEye, so I'm going to remove the other one.

I think they still have their old AC in tact


Just Feedback Really

I quite like this but for what its worth this is my feedback.
Setup on Windows 10. No install issues on the whole. I did notice a few script errors by chance (as I was doing other stuff, its a long install) that I didnt read properly but saying that everything seems to work fine.
The README.txt on the desktop after installation:

requests spelt wrong "reqeuests"
Github URL is wrong "https://github.com/fireeye/commandovm"
should be "https://github.com/fireeye/commando-vm"

Visual Studio 2019 is out now so why install 2017. .Net Core really needs 2019 and it is the way forward, especially for cross platform.
In note of that why not add some sort of config file that lets you pick versions of everything.
Maybe I actually own "paid" for versions of software so I dont want the free versions. An extra config file I could change before running the installer would help. (I could change the installer but it gets a bit messy if you change stuff).
I think Ghidra "https://github.com/NationalSecurityAgency/ghidra" should be included. In fact I think "Hacking" and "Reversing" Installs should be on the same machine these days as they sort of go hand in hand now. Why not mix your other VM (that name escapes me this moment in time). And just have one.
Though a "little personal and you would expect somebody installing this to know how beforehand" but the VM recommended disk size is smaller than some of my password text files... VM's dont have to use the full size on install so I think it should be made much larger (with a note maybe as why relative to its install size"
I'm also surprised stuff like Wpscan, Nikto, Nessus and various other very common (but quick useful) scanning tools where not included.
On the whole though so far I like it.

@WHumphreys
Thank you for using and supporting Commando VM.
I have created #4 to track the issue with incorrect URL in readme.txt
The long term plan for Commando VM is, like you said, you merge with FLARE VM and allow a custom configuration for every user. However, that is way down the road.
Ghidra is strictly a reverse engineering tool. We include Ghidra in FLARE VM. However, within the context of red team engagement, I am not sure how often Ghidra, or IDA, comes in handy. Therefore, we do not include Ghridra at the moment.

@WHumphreys Thank you very much for the detailed feedback!
We will be expanding the tool set to include as much as we can based on user feedback. Of all of the tools you mentioned, Nessus might pose the only problem as far as easy install goes. I did look into this a few months ago, and Tenable generates some dynamic URLs and makes you agree to some terms before giving you the dynamic link, so it's not something that can be easily turned into a chocolatey package. It would be great to have though, I agree.
As far as Visual Studio is concerned I will look into 2019, I agree we need to keep tooling up-to-date with industry but this is a fairly large change especially as far as package management goes. I think we can add this to the roadmap and have it in one of the next version releases.
Let us know what other feedback you have as you use it! Really glad you like it so far, thanks for taking the time to get on and create this issue.

Although this is just my own personal opinion as it doesn't really have a right answer. But I never like the "script" that tries to be what I like to call a "forklifttruckbuscar".
Everybody has basic needs but very different objectives. If I was doing this I would have an extra layer over  the "install" mechanisms.
Maybe like an initial script that gets the ball rolling with some initial setup but then what is basically a simple package manager that simple sits on "top".
This has the advantage that I can actually choose what I want to install / remove / update and something that would also be great is good description of what said software is.  One of my gripes with Kali is having lots of command line tools that I wish I had known about that was there all along.
Then its easy to have many versions of software like "Visual Studio" so you can pick one. It means I can ignore free versions I may have full versions of, it may even include full versions but warn of requiring keys etc.
Being as I would assume that folk using this are pretty IT literate I think automating to much takes away to much control and assumes to much.

@WHumphreys We are looking to release some granular package management features in August. We submitted the tool to Black Hat USA and hope to release CVM 2.0 at that time, which will include Kali Linux on WSL, and the ability for users to create a custom package file that determines what tools to install for the user.
As for Visual Studio when deciding which version to install (pro or community) I found out that upgrading to the professional version was almost as simple as entering a product key on the community version, so decided to go with community. However, in the 2.0 release, that should be a non issue because we can create a "pro" package for people to install as well.
If you have anymore feedback just keep it coming!
Thanks again.

Closing this as we have introduced custom installs and added support for FLARE VM tools (like Ghidra) to be added to the install if a user so chooses.
Thanks for the feedback!


CONTRIBUTING.md: encourage linking release notes on updates

Makes it easier for reviewers to look through the changes and is a sane
default to reference if one exists.
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Fixed.


Image build fails with openjdk-17-runtime:latest

There were no issues found with  openjdk-17-runtime:1.17  openjdk image, but our build pipeline fails when we use the latest openjdk image i.e FROM registry.redhat.io/ubi8/openjdk-17-runtime:latest as runtime with the following error :
Image build failed. Error in binary-container-build-x86-64: BuildProcessError('Build failed (rc=3): Error: building at STEP "RUN useradd -c "Application User" -U -u ${USER} -m app && chown -R app:0 /home/app && chmod g+w /etc/passwd && ln -s /opt/kserve/mmesh /opt/kserve/tas && mkdir -p log && chown -R app:0 . && chmod -R 771 . && chmod 775 *.sh *.py && echo "v2.5.0"

Solution to implement:

modelmesh dockerfile has an ARG USER, which is conflicting with the env var in the latest openjdk image, so if we could rename that ARG to something like USERID to resolve the conflict

Ref: https://redhat-internal.slack.com/archives/C04L19SM13R/p1700478612859089
cc @dchourasia

PR: https://gitlab.cee.redhat.com/data-hub/rhods-cpaas-midstream/-/merge_requests/1407
Updated the USER to USERID and updated the openjdk image to latest per request from DevOps team.


Any interest in support for gpio-admin support?

I forked your code and changed it to use gpio-admin so you don't have to run your application as root. If there's enough interest, I'll go ahead and add it as a configurable option and pull request it. In the meantime, if you want to run your apps as a non-root user (any account in the gpio group), my fork is here: https://github.com/LukeL99/rpi-gpio.js

I’m literally working on the exact same thing (I think running as sudo was causing weird file lock issue, that was also causing the file watcher to fail). My fork is here: https://github.com/brandonmartinez/rpi-gpio.js/blob/master/rpi-gpio.js
From: LukeL99<EMAIL_ADDRESS>Reply: JamesBarwell/rpi-gpio.js<EMAIL_ADDRESS>Date: February 11, 2015 at 7:10:14 PM
To: JamesBarwell/rpi-gpio.js<EMAIL_ADDRESS>Subject:  [rpi-gpio.js] Any interest in support for gpio-admin support? (#15)
I forked your code and changed it to use gpio-admin so you don't have to run your application as root. If there's enough interest, I'll go ahead and add it as a configurable option and pull request it. In the meantime, if you want to run your apps as a non-root user (any account in the gpio group), my fork is here: https://github.com/LukeL99/rpi-gpio.js
—
Reply to this email directly or view it on GitHub.

Haha, yup, it's basically the exact same commit with the functions in different places.

 I’m getting weird file-in-use errors with gpio-admin.
Sincerely,
Brandon Martinez
(231) 233-3976
<EMAIL_ADDRESS>http://www.brandonmartinez.com/
From: LukeL99<EMAIL_ADDRESS>Reply: JamesBarwell/rpi-gpio.js<EMAIL_ADDRESS>Date: February 11, 2015 at 7:56:04 PM
To: JamesBarwell/rpi-gpio.js<EMAIL_ADDRESS>Cc: Brandon Martinez<EMAIL_ADDRESS>Subject:  Re: [rpi-gpio.js] Any interest in support for gpio-admin support? (#15)
Haha, yup, it's basically the exact same commit with the functions in different places.
—
Reply to this email directly or view it on GitHub.

I haven't tested input yet (I'm just controlling relays), so no, I haven't checked. I do know outputs are functioning properly, but this could be related to #2. I'm going to check into it at some point, but I'm not at the point where I need to yet. Next phase of the project, I'll be bit-banging SPI so I'll definitely need input then.

There was also a previous pull request here that seemed to achieve this in a slightly different way: https://github.com/JamesBarwell/rpi-gpio.js/pull/10
It was closed by the author however, and I was never sure whether it was ever fully working. The timing method it used didn't look entirely reliable, and there were no tests to prove it.
I'd really like a solution for running this module without root. It would be nice not to have to depend on gpio-admin, but if that's the only/best way to do it then yes there certainly would be interest in having a switch to allow users that choice.
@LukeL99: Looking at your patch, it would be nice to use the debug module for the output as well rather than console.log, just so that users have full control over this module's output.

Seems like @brandonmartinez and I are doing a lot of the same work in parallel. Let's put together a strategy for some of these design decisions and @JamesBarwell can decide what he wants or doesn't want to merge.

@JamesBarwell, how attached to your indentation standards are you? I have been trying to stick to them as closely as possible, but it looks like #17 has changed it around to his indentation preferences.

API structure - I'm trying to change the API as little as possible. My first thought for adding config to the module was to have the user invoke the library like: var gpio = require('rpi-gpio')({gpioAdmin: true});, however this requires the version without gpio-admin to be initialized like so: var gpio = require('rpi-gpio')(), which would break existing applications. I thought about exporting an additional constructor that could be initialized like var gpio = require('rpi-gpio').gpioAdmin(). This would work without breaking existing applications. The third option is the one @brandonmartinez is using, where you set the GPIO library. I like this option, however it seems as though an option that you should never change once you set it should be set on initialization, not afterwards. It may be our best bet, however.

Testing - I'd say @brandonmartinez seems closer to finishing this feature addition than I do, but I think it should be resubmitted with the testing added for new features and passing on Travis. Besides that, good work. Looking forward to using this library in more rpi projects in the future.

As an additional note, I haven't been able to get it working with a normal install of gpio-admin. It looks like the edge mode needs to be set to properly monitor for changes, so Wiring Pi works a lot better. gpio-admin can still be use, but we'd have to manually add in writing to the /edge file.

Also, I'll see if I can get tests passing in my codebase later this week

@Luke99, Regarding coding standards I think the best strategy (with any project) is to respect and stay consistent with what's already there (unless there's a good reason to change). I can sort out pull-requests to match if need be however.
With regard to setting options, I see your point, but for now I would just set them after the module has been instantiated, similar to the existing setMode method (which I would presume people would only ever call once). I think this is simple for users, keeps it similar to most other modules, and maintains backwards-compatibility.
Apologies if I'm slow with responses at the moment. I'm in the middle of a large project launch so don't have the time I'd like to devote to side projects. If people choose to fork then I will look to unify changes back in the future.

As a note, I probably won't be submitting any additional pull requests after the one I've already submitted. Feel free to still use it, but I've taken this project in a different direction from the original purpose (almost a blend of this and onoff's approach, object-oriented style and what-not).
I definitely plan on crediting you, @JamesBarwell, but I may end up making this its own library since the overall idea is different now.

That's fine, thanks for the contribution anyway.

A new version 0.8.1 has been released which no longer requires root permissions, so I will finally close this issue as there's now no need to support gpio-admin. Cheers.


Origin of MS-DOS programs?

Hello,
May I please know the origin of some of the MSDOS programs in the "MS-DOS 6.22" image file?
Specifically the seemingly impossible "jumper.com" game, and all of the demos (ones I'm most interested in is "when.com" and "ll.com")
Thanks in advance.

The demos are from https://www.pouet.net: https://www.pouet.net/prod.php?which=58722 https://www.pouet.net/prod.php?which=59007 https://www.pouet.net/prod.php?which=58423, etc. although I can't find when.
The games, IIRC were from https://www.freedos.org/software/, although it only seems to have invaders. I found the tetris here, but can't find jumper right now (did you know you can use the numpad arrows to double-jump?).

I tried to find others demoscenes (thanks copy for post above) and made a list:

demos\lebhaft.com: https://www.pouet.net/prod.php?which=58722
demos\when.com: https://www.pouet.net/prod.php?which=59256
demos\LL.com: https://www.pouet.net/prod.php?which=59007
demos\knead.com: https://www.pouet.net/prod.php?which=58423
demos\manderbrot.com: https://www.pouet.net/prod.php?which=63349
demos\misplace.com: https://www.pouet.net/prod.php?which=58780
demos\dawn.com: https://www.pouet.net/prod.php?which=59001
demos\cluster.com: not found :(


Add com.marketo/event/jsonschema/1-0-0

JSON schema for marketo event with all possible fields. Test payloads sent through unpopulated fields as empty strings not nulls. Two fields with format "date". Many fields couldn't be populated so the string length is long (255 and 512) for the vast majority of fields. Marketo only has the one webhook so 3 custom fields are included ("name", "description, "step") to further differentiate the event.

Is there some associated documentation / a PR on how to use this?

@alexanderdean do you mean snowplow/snowplow#3677 ?

Ace! Haven't got to that one in my email yet 🐌

@misterpig has signed the Software Grant and Corporate Contributor License Agreement

@alexanderdean We'll be putting together some documentation on how to get this setup in Marketo this week. The webhook integration is a little odd in that there's only one event that's ever sent (with a customisable payload) but that event can be triggered in multiple steps within a Marketo flow.
This schema represents a superset of these fields with the intention that a customer would likely customise this schema and host in their local Iglu repository rather than relying on this superschema in Iglu Central.

I just wanted to remind that you can enforce this schema in adaptor. In other words, this schema should validate not input of adaptor, but output. So if you think this is necessary (I think empty strings instead of null isn't a very good idea) we can make this schema much more stricter.

@chuwy - What would be your advice on this one? Some fields may be sent through correctly as empty strings (which should be stored accordingly) whereas there may also be instances where an empty string should be NULL but is set to the webhook as an empty string. Unfortunately the Marketo documentation doesn't provide information about which fields are nullable.

@miike if empty strings are valid values and we have no way to distinguish empty-string-as-nulls and valid-empty-strings - I think @misterpig's approach is the correct one.

@chuwy what is missing for your green tick?

Scheduling!


Figma Salt 1 & Salt Next - Banner should have the same Optional Title prop as System Status

https://www.figma.com/design/YVs0akocogiev3kZuqKZDW/System-Status?node-id=87-3211&t=u7sy5jHRJ1G0DYCx-0#848023029
### Tasks
- [x] Salt Next (Ben)
- [ ] Salt 1 Light/Dark (Yun)

@bhoppers2008  we can treat these two banner issues as the same priority for Cortado

This work is done. Ready for @yunjungyeh to review and merge.

Cortado Goal:
Salt 1 light and dark updated

Aug 12 - haven't started


Cyclic dependency where I didn't expect one

Hi, I've got a cyclic dependency exception but I would have thought I shouldn't get one.
Take this pseudo code:
        // EventPublisher expected by `events` implements PublishesMessages, but  have specifically declared it here
        $this->injector->define(RegisterUserHandler::class, [
            ':events' => new EventPublisher(new InMemoryMessageSubscriberCollection(new Set($this->createInstances($this->eventHandlers, $this->injector))))
        ]);

        // Here is a delegate for the more abstract PublishesMessages for use elsewhere
        $this->injector->delegate(PublishesMessages::class, function () {
            return new CommandPublisher(new InMemoryMessageSubscriberCollection(new Set($this->createInstances($this->commandHandlers, $this->injector))));
        });

Inside the abstract delegate for PublishesMessages, the createInstances call creates an instance of RegisterUserHandler declared above, and causes a cyclic dependency because it is trying to create another instance of PublishesMessages even though I have specifically told it not to above.
I know this is a little complex, but should this be happening?

No wait, it was my fault (idiot)


perf: publish site assets - Find a more efficient way to check whether a KV namespace already exists

Currently, when we want to upload assets to a KV namespace, we ask for the complete list of namespaces for the current account.
We should work with the back to allow us to query for a namespace with a specific title (given that we don't yet know its namespace-id.

Closing for now, since this requires internal changes that aren't likely to happen any time soon. Convergence will also make this code path less relevant going forward.


Unable to open quiz detail view

Used the pip install terminal-leetcode. Using a 64bit Ubuntu 16.04 machine.
Login works correctly, but when I try to enter any of the quiz detail view, I get either this error:

I double checked all the dependencies as well, please let me know if I missed out on something.

Leetcode has changed its way to generate web content, I'm working on it, but need to take some time.

Fix it. You can use pip install --upgrade terminal-leetcode to install update. Thanks.

Great! Thanks.


Fix procman script

Fix a bug in procman script

Looks fine, but since this is updating the procman config anyway can we also change the simulator to use the new MBP simulator?

Looks good to me, but since this is updating the procman config anyway can we also change the simulator to use the new MBP simulator?

I replaced run_simple_sim with multibody_sim, but there is a incompatibility in the case of fixed-based Cassie. I didn't dig into what caused the error, but the bug doesn't seem to exist in Michael's current PR. I also noticed that either case doesn't have lcmt_cassie_out in multibody_sim, so maybe we should just wait for Michael's PR being merged into master before I make the change

Agree--we cannot fully replace the simulation yet. We still need MBP IMU sensors #37 or https://github.com/RobotLocomotion/drake/issues/13457


add cni deep dive part 1 to blog

@xmulligan There are build failures, can you please check?

@liquidat should be good now


Geopy 407

so let's see if this comment passes! Seems a good test with something "special" characters *@ and {{more}}

trying another PR


[SR-11943] Outdated documentation for numericCast(_:)

Previous ID
SR-11943

Radar
rdar://problem/57888487

Original Reporter
bzamayo (JIRA User)

Type
Improvement

Additional Detail from JIRA

Votes
0

Component/s
Standard Library

Labels
Improvement, StarterBug, StarterDocs

Assignee
@natecook1000

Priority
Medium

md5: e13604a2bc1f0808504231367a9bedab

Issue Description:
The documentation for this standard library could be improved in a few ways. Discussion of modern constructor syntax for type conversions should be included (like `UInt32(value)` or `Int(value)` or whatever), as generally that is the preferred Swift language idiom over calling `numericCast`.
However, my main reason for filing the bug is the example code is outdated:
func random(in range: Range<Int>) -> Int {
    return numericCast(arc4random_uniform(numericCast(range.count)))
        + range.lowerBound
}

It uses `numericCast` twice in the context of creating a random number generation function. Clearly, this example was written before the standard library incorporated native random APIs. This example should be changed to something outside of the random number domain, as inventing `random(in🙂` functions ad-hoc (and especially calls to `arc4random_uniform`) from Swift should no longer be encouraged as good practice.

Hi @beccadax! This seems to be already fixed here

Yup. Fixed by #31464.


Announcing the Kong Summit Hackathon September 21-28 2021 :tada:

Announcing the Kong Summit Hackathon 2021
We're excited to share our inaugural virtual hackathon in conjunction with Kong Summit 2021 with you all! :tada:
It runs from the 21st-28th of September and we've got 6 different categories for you, ranging from best docs contribution all the way through to best presented demo.
Every submission will earn a limited edition Kong t-shirt. The winners of each category will take home a $250 gift card. and the best submission overall will win a $500 gift card!
Register now - we can't wait to see what ideas you come up with!

The Summit Hackathon 2021 is officially over! Thank you to everyone who participated.


chore(codemod): bump nuxt versions

📚 Description

🔗 Linked Issue

🧪 Test Plan

📄 Documentation to Update

Closing as out-of-date. Codemods are currently bumped and relevant metadata has been added.


Restores the working directory

Running WBT tools with the Python API will change the current working directory due to the use of os.chdir(self.exe_path) in whitebox_tools.py. This is causing issues for other packages that use the working directory. I would suggest restoring the working directory after running WBT tools. I just submitted a PR to whitebox-python with a temporal fix (https://github.com/giswqs/whitebox-python/pull/43), but it would be better if this can be fixed in the whitebox_tools.py released along with the binaries. In this way, I don't have to update the whitebox python package manually in every new releases.
try:
    work_dir = os.getcwd()
    os.chdir(self.exe_path)
    # ...
except (OSError, ValueError, CalledProcessError) as err:
    callback(str(err))
    return 1
finally:
    os.chdir(work_dir)

Note that os.chdir(self.exe_path) is used 10 times in whitebox_tools.py, so changes need to be made to those 10 occurrences.


Spawn gun scale issues

If you holster the spawn gun and pull it back out it sometimes is the wrong size

Fixed with 9605ebb


ci.yaml validation hung

On several of my PRs, they are stuck at the cy.yaml validation step, and aren't scheduling all of the LUCI jobs.
For example:

https://github.com/flutter/flutter/pull/132353
https://github.com/flutter/flutter/pull/130842

I've rebased to HEAD and pushed new updates a couple of times with no luck.

Maybe related: I got notification about job failure on one of those PRs referenced above for this job:
https://cirrus-ci.com/task/4898504850538496
It seemed to fail trying to find Flutter.

Looking into this

Perhaps this might be because of problems related to GitHub's webhooks outage?
https://www.githubstatus.com/incidents/ljhhhw2tplqp

Will continue monitoring since the updated message from Github status is that they have started to process a backlog of webhooks

This is related to the Github degradation of their Webhooks service.

Looks resolved this morning and I see the noted jobs have scheduled and passed


[Feature request] Support for serializing Path/PathBuf

Would it be possible to implement Encoder/Decoder for Rust's Path/Pathbuf types?
I'm currently working on a project where I own all the types in a complex struct, but because the standard library's Path/PathBuf can't be serialized over to Elixir, it's forcing me to create wrapper types. This would be a huge ergonomic benefit.
Happy to contribute a PR if this is straightforward.
Thanks for all your work on Rustler ❤

If all you are looking for is Path(Buf) <-> binary string, I don't see a problem with that.

Yup that's fine by me 👍 The Elixir Path module just works on binary strings, so this seems reasonable.
I'll try to contribute a PR for this in the coming days/weeks.


C++ documentation for prepared statements

I don't know how to write prepared statements in C++ the same as in C API. The C++ API has a lot of //TO DO blocks in the example section. Please complete the example section in C++
I tried this but it throws expected body of lambda expression
duckdb::DuckDB db(nullptr);
duckdb::Connection con(db);

// Rest of the code block
.....
// Rest of the code block

string name = "Mark2";
int id = 1;

// error here: expected body of lambda expression
con.Prepare("UPDATE people SET name = ? WHERE id = ?", [name, id]);

The error thrown is not from us, but rather from the C++ compiler. The bracket operator [] indicates the start of a lambda function (e.g. [](int a, int b) {return a + b}). The error states that the system expects the rest of the lambda expression. Read more about it here.
I think what you are trying to do here is:
con.Execute("UPDATE people SET name = ? WHERE id = ?", name, id);

The Prepare method returns a prepared statement object that can be executed, e.g.:
auto prepared = con.Prepare("UPDATE people SET name = ? WHERE id = ?");
prepared->Execute(name, id);

See test/api/test_prepared_api.cpp for some more examples.

Thanks @Mytherin .
My bad and I should not have mentioned my compiler-specific error here.

Hi @Mytherin, I think there is an issue in the prepared->Execute(name, id) statement. It seems, the parameters are not accepted in the order they are mentioned.
I get the desired result only when I write prepared->Execute(id, name). Can you check this issue?

That's a good point, thanks for the report! Indeed the unmarked parameters should be resolved in the order that they appear in the query. You can circumvent this issue by explicitly marking the prepared statement parameters with their id (e.g. UPDATE people SET name = $1 WHERE id = $2).


lxd: fix starting container with missing optional disk

This PR should to fix #5281 for lxd 3.0 (e.g. works on my machine).

This pull request didn't trigger Jenkins as its author isn't in the whitelist.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"

Closing in favor of https://github.com/lxc/lxd/pull/5283 as this branch is missing a DCO sign-off (so can't be reviewed) and is targeted to 3.0 rather than master.
Once the other branch is merged, this fix will find its way into stable-3.0 through the normal bugfix cherry-pick process and will land in 3.0.3.


Fixed value error bug #31

#31 solved
now for any input other than integer it suggests you to enter value again

This issue has already been resolved

Yaa, fine
On Sat, 1 Oct, 2022, 01:20 prabhav, @.***> wrote:

This issue has already been resolved
—
Reply to this email directly, view it on GitHub
https://github.com/csivitu/ArcadeGames/pull/53#issuecomment-1263960296,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AV5UIBDVVOCG2PHH4GRNGZTWA477PANCNFSM6AAAAAAQ2B4AKQ
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


Use monkey patch to on built-in types

I have been working on rearranging the python modules. Currently the design is in the following structure:
mspasspy
	ccore
	db
		Client(pymongo.MongoClient)
		Database(pymongo.database.Database)
			load3C
			save3C
			_save_elog
			_save_data3C_to_dfile
			_save_data3C_to_gridfs
			_read_data3C_from_gridfs
			normalize_site
			normalize_source
			_unique_sites
			_unique_sources
		_sync_metadata
		_tmatrix_from_md
	io
		seispp
			index_data: dbsave_indexdata
			load: calls index_data, normalize_site, normalize_source
		converter
			toTimeSeries
			toSeismogram
			toMetadata
			toTrace
			toStream

The changes in db module is pretty much done. As I am working through the io module, I realized something unexpected in my previous design. So, the idea of mspasspy.io.converter is to not only provide a series of functions to convert between all different data types, but also use a feature of Python called "monkey patch" to add those toXXX methods to certain objects. For example, we can call ts=trace.toTimeSeries() to convert a Trace object in ObsPy into TimeSeries. This will be equivalent to ts=Trace2TimeSeries(trace). This can be done with just one line when the Trace2TimeSeries is defined:
Trace.toTimeSeries= Trace2TimeSeries

However, when implementing this, I found out that the built-in types cannot be monkey patched like this, so we cannot provide dict.toMetadata through the same trick.
Further looking into the issue, I found that there is a package that enables monkey patch with built-in types. This, however, seems to be pretty hacky and not recommended by some people (the name of the package is absolutely a strong indication). So, I just want to hear your opinion on this before moving forward on this.

Doesn't strike me as that hard to implement wrappers that would be most convenient to do that kind of thing.  That depends on the number of wrapper functions that would need to be written, however, and I don't have a feel how many functions that might be.   Also not that sure that using the object form is adds that much functionality or usability.   I began life, however, as a procedural programmer so my view may be skewed.

I decide not to use monkey patch on the built-in types.


Add the option to persist Entity Instances as JSON

Currently entity instances are persisted as XML. The Data Hub Framework gives users the option to persist as XML or JSON. We would like to see this feature added to Entity Services too.

@grechaw Let’s figure out how this might shake out and how it prioritizes with other stuff on the plates of dev, QA, and docs. We should do it. I just don't know where it fits in terms of size and timing.

One way we could do this:
ad
es:instance-to-canonical-json($instance)
es:instance-to-envelope($instance, "json")

Let’s start with a sketch of the the dev, QA, and docs scope. On the face of it, it sounds too big for 9.0-1.

This issue is very important for an early decision.  Justin will consider this issue among the others, and see whether or not it is containable.

I can't believe we didn't consider and scope this out early in the project. Has anything changed since then?

This was an intentional decision. We knew we'd want to support JSON eventually, but wanted to go deep on the use cases first and then broaden outside of that core. We've received feedback that JSON is important. This is the process of beginning to prioritize that among the other things in 9.0-1.

Do you mean prioritizing feedback for 9.0-2, or did you really mean 9.0-1?

Probably 9.0-2 given what else we have in 9.0-1. But that's the assessment we need to do. Given the feedback, is this more important than the other stuff already scheduled for 9.0-1 and will it not introduce risk we can't accommodate?

@DavidGorbet You're right in that we did indeed cut this scope early on.  Paxton is voting for it as an important enhancement, so we gave it a good look.  I submit that @paxtonhare design a JSON envelope and implement the functions for it within the data hub.  I suspect the design will be straightforward and we will be able to incorporate his work into a future iteration of Entity Services.

Ok let's make sure this comes up in the Program Review. Thx.

This enhancement is covered now by issue #291


Support removeDuplicates() for Defaults publishers

Support removeDuplicates() combine operator for  Defaults  publishers #43
	Defaults
	   .publisher(key, options: [])
	   .removeDuplicates()

IssueHunt Summary

Referenced issues
This pull request has been submitted to:

#43: Add removeDuplicates option to Defaults.publisher(keys...) and Defaults.publisherAll()

@sindresorhus please review. Failing test case is not related to the change
/Users/runner/work/Defaults/Defaults/Tests/DefaultsTests/DefaultsTests.swift:607: error: -[DefaultsTests.DefaultsTests testObservePreventPropagationMultipleThreads] : Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "No infinite recursion".

@sindresorhus do you have a spare minute to review the PR?


Feature/69404 say yes to the address

Partially implements AB#65336 and AB#60471
Checklist

[x] Includes tests
[x] Update documentation

Changes proposed in this pull request:
Creates a new address lookup component, and updates the trustee and in-house administrator cards to use it. Removes the old address lookup components in those cards.
Reviewers should focus on:
Re-usability. This should work in any context, not only within the trustee and in-house administrator cards.

For some reason when launching the docz app, the FFSelect component is not rendering correctly all values. (At least for me) I can only see the first value.

Maybe merging the latest develop with this branch can fix the issue.

I have fixed the bug with FFSelect - good spot.

This branch seems to not have the latest version of develop. Try merging develop first to confirm all works fine and tests pass correctly.


fix(ci): no js source only types shared-data/.npmignore

Overview

The wiring up in webpack when js/ is included does not work and tries to point at the included *.ts files which I am guessing is why this was ignored in shared-data/.npmignore in the first place.

shared-data
components

0.1.2-alpha.1
Import trace for requested module:
<EMAIL_ADDRESS><EMAIL_ADDRESS>
<EMAIL_ADDRESS>Module parse failed: Unexpected token (3:7)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import errorDefinitions from '../errors/definitions/1/errors.json'
|
> export type ErrorCodes = keyof typeof errorDefinitions.codes
| export type ErrorCategories = keyof typeof errorDefinitions.categories
|

Test Plan

[ ] Tag an alpha on this branch and see if it works.

Changelog

ignore source js/ in shared-data/.npmignore
do not ignore lib/js/ in shared-data/.npmignore

Risk assessment
None to any functional code.  CI only change to what webpack uses and what gets packed and pushed to npm.

This fixed it!
@b-cooper approve merge and tag non alpha 😊