Preflight request Authentication - OPTIONS

As one can see from here:
https://serverfault.com/questions/684855/disable-authentication-for-http-options-method-preflight-request
For CORS, the preflight would be a problem - it needs to be Authenticated, which will not work.
Apache2 solves the problem by putting
<LimitExcept OPTIONS>
  Require valid-user
</LimitExcept>

More insight came up - it seems the fix is avoid Auth in OPTIONS.
https://stackoverflow.com/questions/40722700/add-authentication-to-options-request

Yep. This will happen for every API that is to be consumed on web. Therefore, I propose the following solution.
In the yaml file, add a cors section like so:
cors:
  origin: https://foo.example # sets Access-Control-Allow-Origin
  methods: POST, GET, OPTIONS # sets Access-Control-Allow-Methods
  headers: X-PINGOTHER, Content-Type # Access-Control-Allow-Headers
  age: 86400 #sets Access-Control-Max-Age

In cors at least one of the above 4 should be set. If a field is not set, that header will not be set. If cors exist in yaml file, it will be as if some one added a route:
options:
  "*": _/cors.zm

Where cors.zm sets the appropriate headers.

In the other hand - we can easily solve the problem w/o any code in here:
https://stackoverflow.com/questions/29954037/why-is-an-options-request-sent-and-can-i-disable-it

@nmondal suggested a brilliant idea. Using the finally filter. We can use it to modify response if need be.
Here is a zoomba file that works:
if (req.requestMethod == "OPTIONS") {
    resp.header("Access-Control-Allow-Origin", "*")
    resp.body('')
    resp.status(200)
}

Marking as closed as this can be worked around using filters as shown in above code


Add amtool in README.md

This PR will add a small doc about amtool (alertmanager tool)

This information is all available within amtool itself:
# ./amtool --help
View and modify the current Alertmanager state.

[Config File]

The alertmanger tool will read a config file from the --config cli argument, AMTOOL_CONFIG environment variable,
$HOME/.amtool.yml or /etc/amtool.yml the options are as follows

	alertmanager.url
		Set a default alertmanager url for each request

	author
		Set a default author value for new silences. If this argument is not specified then the username will be used

	comment_required
		Require a comment on silence creation

	output
		Set a default output type. Options are (simple, extended, json)

Usage:
  amtool [command]

Available Commands:
  alert       View and search through current alerts
  config      View the running config
  silence     Manage silences

Flags:
      --alertmanager.url string   Alertmanager to talk to
      --config string             config file (default is $HOME/.amtool.yml)
  -o, --output string             Output formatter (simple, extended, json) (default "simple")
  -v, --verbose                   Verbose running information

Use "amtool [command] --help" for more information about a command.

@stuartnelson3 how would you suggest we link to the amtool --help for users who do not yet have it installed?


Missing offset property on Popup

I think Popup class is missing offset property. It doesn't work when I put that a value.

.mapboxgl-popup {

    top: -35px!important;
    left: -35px!important;

}

it was helped me

@Altiano version 0.16.1 integrate the popup offset.


Fix a Python 2 compatibility issue

PR #133 introduces the usage of `http` module for checking the status
code for `GONE` HTTP status. However, this doesn't work in Python 2.7.

This commit checks if the interpreter is Python 2 and imports the
status code from `httplib` module instead and unifies the approach
to the checks.

/assign @roycaihw @yliaog

thanks for the fix
/lgtm
/approve


Animation Loader cleanups

This is a series of code clean ups that doesn't (or shouldn't) change any behavior. This builds toward two goals in the long term, although the main ClassicUO project may never get to either of these:

Support compressed texture formats. In particular, BC1 is a great match for UO art and is very, very small. But BC1, like the native UO art, does not support alpha.
Support loading assets, such as animations, from alternate file formats

This PR can be reviewed as a set of individual patches, patch by patch. Each patch along the way is fully functional.

I've reduced this to the first two commits. We can work in smaller increments.

I've made it so _data starts off as null and only gets allocated if a thread tries to read textures at least once.


Question: Explain .blueprint format

I would like to make small changes to one of my .blueprint files in order to align some pieces which I am not able to do while building.
Could you please give a short explaination of the fileformat?
something like
#SnapPoints:
X;Y;Z
#Pieces
piece_name;Hammerbuildtabname;X;Y;Z;rotation;a;b;c

And: are the numbers relative to the "center marker"?
Thanks in advance

I created a wiki page and explained the format a bit. https://github.com/sirskunkalot/PlanBuild/wiki/Blueprint-File-Format

Closing this for now, if you have further question just comment again.


Question

What's the what way to Kill the ghosts the fastest with the most kits etc with the poltergust?

It's explained in the training room:

flash the ghost with your flashlight
Attack the ghost with the poltergust
(once they start fleeing) move away from the ghost to harm it
(this is missing in the training room's current version but will be added/mentioned in it in the next version; that said, it does already work) constantly switch between sneaking and standing to deal damage at an accelerated rate

I know to move away to harm it, but if I'm in a corner, what would I do then?

That's the trick, think ahead of time to avoid corners, if needed, move to the ghost and get out of the corner, and move away again as quickly as possible
In the next update, if you don't move away from it for 1/4th of a second, it counts as a player error, 10 errors and the ghost escapes.

Also for the white grabbing ghost, how exactly do I get them off of me?

Creating as much distance in  tick as possible (try jumping). This alao is improved in rhe next version. 😁

Is it possible to quit without saving? Like reload my save?

You can talk to E. Gadd to load old save data. :)

As for the boos, is there a way to check how many I got so far?

No, sorry, even in the development versions it is not visible yet. I'm not sure where/how to show it to the players.

For the map in the game boy horror, is it possible to zoom in or no?

No; next version will zoom in/out on map when collecting a key, but no option to zoom in still

Idk why but I only got 2 out of 3 skeleton ghosts before the graveyard boss.

It may be you're standing in the exact spot the ghost wants to appear, or that the you didn't get close enough and look away from the ghost.
Or do you mean you only caught 2 and bogmire was ready?

Like 2 appeared and got them but after I got them the 3rd one never appeared. I tried hitting/vacuuming the gravestone again and the last one didn't come out anymore. In the end I chose to kill myself to reset it and after that they all appeared.

If you run into this issue again, make a new github issue and provide me a download of your world so I can investigate it.

Also the boos kinda hack or a little buggy.

Known issue that has been resolved for v1.4

So someone already catched that bug?

I had been aware of it for a while, there were 3 things wrong:

Boos can trigger attack while fleeing
Boos get pulled with you by the poltergust when you collide with them
Small invulnerability timer

Fixed the first (but they can still chose to go into another direction (different target room to flee to)) and added knockback, during which you cannot use the poltergust, and get pushed back, fixing the second and third.

As for the twins room, is there a tip for guessing their hiding spot?

See Neville's Child-Care Diary; no visible shaking or sound, so uses particles.

Do I have to look away or it doesn't matter?

No, it doesn't matter, initial appearing (mobiel) is just spinning it for long enough, hide and seek is opening chest

Well nothings happening (particles etc) xD

It's a circular pattern on the floor at the chest, same kind as the poltergust, so you need to check closely. If you checked them all and can't find 2 of them giving particles (assuming you didn't open any chest yet; if you did, and it was wrong, leave the room), please provide me a download of the world you use (and say which mansion).

I didn't open any yet

Could you record a video of you using the poltergust on every chest (around a second per chest so the particles have time to be properly visible), and with particles turned on?

Well I found out one thing. If I use the poltergust on 1 chest, it's blank. If I try a different one, I see a ring of particles around it. Is that what you mean?

Yes, it is.

Well the map is broken now. I skipped the e-gad talk after the boos go round on the balcony and then I left to e-gad's underground lab and when I reloaded the save, I tried to enter the mansion and now I can't enter anymore. The door is stick like it's locked

Go to the mansion again, via E. Gadd, see if that corrects the map.
For bug tracking reasons, could you tell me what the last moment you saved was?

Before the boos fight. I tried the mansion option and the old save option as well as relogging the map

Please send me data/scoreboard.dat and data/command_storage_luigis_mansion.dat

Ok here's the files
https://www.mediafire.com/folder/09oy5euxe3s5t/Files+for+map+dev

Ok, I found the issue, seems you got into the lab while the blackout was active, the blackout prevents opening the boo woods-foyer door.
I'll fix it for the next version (it's not something you'll have happen often), for now, you can fix your data by running /tag @s remove blackout

As for the toads, is there any on the 2 floor and 3rd?

Toads match the locations in the original games, foyer, balcony (2F), washroom (1F), courtyard, telephone room (first/second phone, blackout only, no saving)

As for the blackout, is there 2 or 3 lightning strikes?

One of each side of the mansion (left and right), and finally one striking the rooftop.
Due to how lightning works in minecraft, they only stay a random time between 0 and 1 seconds.

As for the golden mouse in the sealed room, how exactly do I make it appear? Like the best technique

It's a 1 in 5 chance when the room loads, sucks, but that's how it works in the game.

So I have to leave the room and enter it over and over till it works?

Yeah...

Ok the mouse finally appeared but I don't see it anywhere 🤔

It starts next to the fireplace, and goes to the mirror; when it reaches the mirror, it vanishes again. It will try spawning again on new room load

What exactly do you mean by new room?

new room load, as in the room needs to be reset again, and loading in the room again will try to spawn it again until you catch it, or light up the room

Like the same room?

I'm confused what you mean xD

The same as before: The mouse will (sometimes) reappear on room re-entry if you didn't catch it

Well the mouse appears and as soon as I get close to it to get it, it's gone (like it's too fast or a bug)

I intent to go over all ghost health one more time somewhere this update, so they should become easier to catch.

Closing this now. I just enabled the discussions tab, so feel free to use that in the future.

Is the 1.5 the new improved version?

1.4 was the improved version, 1.5 fixed some bugs in it

Is 1.18.1 or 18.2 the version I should use?

1.18.2

All this time I was using 18.1

For the table cloth in the breaker room, what's the best way to suck it up?

Cloth only prevents searching furniture if there's a boo insaid furniture, not any other ghost.

Cause I wait for like 30 secs sucking it in multiple angles etc and nothings happening

2 seconds should be enough, and you should get forced to look at it once you grab it.
Did you get the pop sound (poltergust 3000 swallows subtitle)? Which mansion did this happen in, normal, hidden or 3DS hidden?

Normal and I didn't hear the pop

Here's a video recording of it
https://streamable.com/jnzsls

Hmm, seems like it does grab, just never fully vacuum.
I'll take a look at what's different here.

Found the cause, and created #56 for it.
For further discussion, please use the discussion created for version 1.4/1.5, rather than this issue.

Let me know when the bugs are fixed

What bug fixes is in v1.6?

I can't say for certain which were development only, and which were in the release, but you can check the last 10 commit descriptions on the master branch to get a decent idea what got fixed. As well as the closed reports which were set to v1.6.

You need to install them if you want to use them; how to is explained in the download.

What exactly does each addon do?

Oh wow, I didn't realize this wasn't explained anywhere, I'll make sure to correct that.
3DS Remake: Makes the map match the 3DS version of Luigi's Mansion, adding the new gallery, changing the hidden mansion, and a couple AI and dialog changes.
Extensive Training: Adds 2 more training room programs to help hone your skills; also adds tasks and an amiibo.

Map meaning the map I enter to scroll and check the rooms etc if they're open or locked?

The world.

Is there a screenshot you can share comparing the 2 (with 3DS and without it)?


Remove deprecated methods in InetUtils

InetUtils is new in 1.1.0 so it can't really have deprecated methods.

Thanks, I left them in so the builds of the other projects wouldn't break in the interim.


sample: added --smiles and --save_json options

--smiles can be used to encode smiles strings that are not
in the dataset. The dataset is still used to do the charset
one-hot encoding correctly.
--save_json was also added as an alternate output format

I've been thinking about this PR and I'm not a big fan of the direction it takes us. Do we add parallel json handling next to h5 in all of the other scripts? Do we let the interfaces skew? This adds global-sounding flags but which are only relevant for the encoder target.
I'd much rather keep hfd5 as the serialization scheme here (json becomes really problematic on larger datasets) and add a script for working between hdf5 and json if needed.
As for --smiles, I'd rather that read from stdin which is a better non-data-file interface.

Hi, sorry for the delay responding. I'll remove --save_json and update --smiles to use stdin. Longer thoughts below.
The main contribution here is --smiles. It was slightly tricky to get this logic right, but I think it's valuable to reuse a trained model on data not in the original training set is valuable - which means encoding the new smiles string against an existing charset. I've done some experiments and it is working well for me with the model_500k.h5 provided trained model. I agree that using stdin would be a good alternative and can make this change.
The --save_json was just added as a small afterthought to make this library compatible with my own plat library. It's only a few lines of code and thought it provided a slightly cleaner output than the default savetxt. But I'm happy to remove it since it's fairly trivial to take the savetxt output and transform it into this json form.

I think it's valuable to reuse a trained model on data not in the original training set is valuable - which means encoding the new smiles string against an existing charset.

Yes, I definitely agree with this. I think the bigger thing that's wrong here is there's no reason to store the charset with the data to operate on at any given time. I've been thinking about pulling out a --charset or even as a required parameter for a while but it seemed like extra work. What do you think of that instead of extra specifying new data?
cc @dakoner

Yep, I'd want a --charset charset.h5
This would work even with legacy files that have the 'charset' data in them (model, encoder output).

Sure, I think --charset is a great idea. I can introduce that when I refactor this pull request.

@dribnet You might like to take a look at my PR #43, which hard codes a charset, and provides a helper object for decoding and encoding strings given that charset. We can refactor your --smiles flag to provide a file-like object that streams in SMILES strings, which get converted on the fly to one-hot-matrices and then encoded/autoencoded.
Is this what you were thinking of / is that what is useful?

I've been a little out of this the last week as my GPU rig is down and I've been traveling so unable to get to it to fix things. I've landed #43 though so that should simplify the charset questions here.


input access.log json

Hi,
Is it possible to read the access file in json format?
Thanks

If each request is on a single line, it is certainly possible.

Closing this. Feel free to reopen it if needed.


What's the correct way to uninstall jetson-inference

I follow this way to build jetson-inference:
sudo apt-get update
sudo apt-get install git cmake libpython3-dev python3-numpy
git clone --recursive https://github.com/dusty-nv/jetson-inference
cd jetson-inference
mkdir build
cd build
cmake ../
make -j$(nproc)
sudo make install
sudo ldconfig

And how can I completely uninstall it?

@jet-c-21 you have to sudo rm the relevant files from:

/usr/local/bin
/usr/local/include
/usr/lib/python3.8/dist-packages  (or python3.6 if you're on JetPack 4)

@jet-c-21 you have to sudo rm the relevant files from:

/usr/local/bin
/usr/local/include
/usr/lib/python3.8/dist-packages  (or python3.6 if you're on JetPack 4)

relevant files is? or delect all files?


Title Change of Code Lab

Existing Title - Firebase code labs facilitated by Free Code Camp advocates
New Title - Interactive Google Maps code labs facilitated by Free Code Camp advocates

Hold on for a second... so it won't be Firebase? We need to change the track name then

Fixed, too, not deployed yet though


feat(stubs): render function props deterministically, fix #975

Since @briwa 's PR languished and we haven't heard from them, I'm re-opening the same. Tests are working fine for me.
Closes #975 and #1209.

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[x] Yes
[ ] No

If yes, please describe the impact and migration path for existing applications:
Applications with shallow mounted snapshot testing of components that pass functions to child components should update their snapshots.
The PR fulfills these requirements:

[x] It's submitted to the dev branch.
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] All tests are passing: https://github.com/vuejs/vue-test-utils/blob/dev/.github/CONTRIBUTING.md#development-setup
[x] New/updated tests are included

If adding a new feature, the PR's description includes:

[x] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

Yes, that's true. This will break any shallow mounted snapshots that pass a function to a child property. So definitely a breaking change, but in our repo with 2601 tests, only four had this problem. If you look at the linked issues, most folks are simply skipping testing or coverage on these problem areas, because the snapshots are completely non-deterministic between environments.

Alright, good to know. The next release will be a minor (1.2.0) release in this case. Thanks!

@MitchLillie it's out. Can you give it a test in your prod code base and let me know if we missed anything, or you have any unexpected breakages?

@lmiller1990 Just tested, looks good on our end. We had 7 total snapshots that needed updating, out of 39 total. That's more than the original 4 because 3 were referencing mocked functions, which were already ignored in test coverage, so didn't have this issue.

It has resolved most issues that i have had with rendering snapshots deterministically, however i have still 1 failing scenario (i am using Vuetify) for 1.2.0 version.
The html of the component that it fails to render deterministically is actually my custom component DatePickerMenu, which is a wrapper for vuetify DatePicker.
The problem is related with vuetify DatePicker property 'allowed_dates' which then in snapshot tests produce incorrect results, the errors look like this, for instance:
                <div                   allowed_dates="() => {                   /* istanbul ignore next */     -             cov_1o1cojjd49().f[12]++;     -             cov_1o1cojjd49().s[34]++;     +             cov_kawvohiv4().f[12]++;     +             cov_kawvohiv4().s[34]++;                   return true;                 }"                   class="DatePickerMenu-stub"                   label="common:created_from"                 />
Implementation of DatePickerMenu looks like this:
`

<VDatePicker
:value="value"
no-title
:allowed-dates="allowed_dates"
@change="update_value($event)"
>

<VBtn
text
color="primary"
@click="clear()"
>
Clear

`
Usage of DatePickerMenu looks like this:
<VCol class="pt-2 align-self-center" cols="12" sm="4" lg="2">      <DatePickerMenu           :value.sync="created_to"           :allowed_dates="allowed_dates_to"           :label="$t('common:created_to')"       /> </VCol>
My snapshot tests look like this:
`
test('empty matches snapshot', async() => {
const options = {
stubs: {
'DatePickerMenu': DatePickerMenuStub,
},
mocks: {
$notify: jest.fn(),
},
}
    wrapper = initWrapper(MessageList, options)

    await flushPromises()
    expect(wrapper.element).toMatchSnapshot()
})

test('messages matches snapshot', async() => {
const options = {
data() {
return {
results_loading: true,
}
},
propsData: {
init_recipients<EMAIL_ADDRESS>init_types: ['warning'],
},
stubs: {
'DatePickerMenu': DatePickerMenuStub,
},
mocks: {
$notify: jest.fn(),
},
}
    wrapper = initWrapper(MessageList, options)

    await flushPromises()
    expect(wrapper.element).toMatchSnapshot()
})

`

Version 1.2.0 has resolved most of the issues that i have had with rendering snapshots deterministically, however i have still one failing scenario.
I am using Vuetify and the snapshot test fails for the prop allowed-dates which Vuetify DatePicker exposes. This prop seems to produce unexpected results in snapshot tests, the failure looks like this, for example:
                <div
                  allowed_dates="() => {
                  /* istanbul ignore next */
    -             cov_1o1cojjd49().f[12]++;
    -             cov_1o1cojjd49().s[34]++;
    +             cov_kawvohiv4().f[12]++;
    +             cov_kawvohiv4().s[34]++;
                  return true;
                }"
                  class="DatePickerMenu-stub"
                  label="common:created_from"
                />

Any ideas how to get this to work?

I am not sure why coverage is even showing up in the snapshots. My guess is this needs to be explored in vue-jest probably - not sure there is something to be done here 🤔
I have not much experience with code coverage, but happy to help investigate if you are interested in doing so. Can you reproduce this easily with a fresh Vue cli project + some config?


readme: make 'brew' a one-liner

brew tap isn't really necessary, brew is going to tap it if it doesn't find the tap anyway. 🙂

Codecov Report

Merging #48 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master     #48   +/-   ##
======================================
  Coverage    85.5%   85.5%
======================================
  Files           8       8
  Lines         407     407
======================================
  Hits          348     348
  Misses         30      30
  Partials       29      29

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 b1d27a1...7bbf382. Read the comment docs.

Sorry for the really, really late review but seems like brew install mkchoi212/fac/fac does not work :(
I'm getting the below error
~ brew install mkchoi212/fac/fac
==> Tapping mkchoi212/fac
Cloning into '/usr/local/Homebrew/Library/Taps/mkchoi212/homebrew-fac'...
remote: Repository not found.
fatal: repository 'https://github.com/mkchoi212/homebrew-fac/' not found
Error: Failure while executing; `git clone https://github.com/mkchoi212/homebrew-fac /usr/local/Homebrew/Library/Taps/mkchoi212/homebrew-fac --depth=1` exited with 128.

Ahh... Nevermind, this won’t work since the repo containing the formula isn’t named “homebrew-fac” 😅
I guess we can close then, sorry for that!


add more angular version compatibility to all libraries

Might it be possible for you to declare a more permissive version range on peerDependencies?  Otherwise, it's a problem for a project that isn't on the exact same version of angular to depend on your component.
For example...
https://github.com/umutyerebakmaz/ngx-bio-components/blob/3ea6354a64ac8037dc7341fab9c4ecde07bb7ce2/libs/button/package.json#L21
Could it depend on something like ^15  rather than an exact version?  Is that syntax supported at that point in the package.json?
Currently, I must use npm install -f , or fork your project.
Thanks

Hi @umutyerebakmaz,
Thanks so much for making a release.  However, while mostly fixed, there's still a pegged version.  You can see on
https://www.npmjs.com/package/@ngx-bio-components/button?activeTab=code -> package.json -> line 24
that while @angular/core and @angular/common are now fixed, it still references @angular/cdk to "15.2.8" instead of "^15.2.8"
I looked at the code in the repo, and it all seems correct, but somehow the produced output is not correct.  Could be something in the build cache that needs to be cleared out and fully rebuilt?
Thanks again

Hi @ddurham2 , I'll look at it as soon as possible, I've been very busy lately. Thank you for your return.


OPC Publisher configuration for one message per node per 300 ms

Hi Team,
We are trying to get data from OPC Server (Kepserver) on IoT Edge via OPC Publisher module (mcr.microsoft.com/iotedge/opc-publisher:linux-amd64).
There are some 800 ~ 1000 tags/sensors and they generate data at max once every 300 ms. But we do not know how many of those tags will generate data every 300 ms and hence we don't know how exactly we can batch these messages. Our requirement is that we must get exactly one message per node per 300 ms on OPC Publisher from Kepserver. Can you please guide us what OPC Publisher configuration should we use for this?
Thanks!

@mandar-opc I was told that this is a duplicate of issue #667. I will close this issue and we will get back through 667. Sorry for the long delay.


Fix codeowners

codeowners team reference needs an @ mention

@damacus or @Xorima can you merge this?

try @tas50


does it support for indexing a n-dimension float vector?

hi,
thanks for making it open source.
I wanna use it index many n-dim float vectors.
does it support ?

Floats themselves I don't think would work as indexes since they have non-linear representation. Are you just looking to cast/transmute between integers and floats? Or am I misunderstanding? Could you provide a code example of your use case or something else to better explain?

Hi @kauppie ,
thanks for your reply.
is it possible to provice interface to index float coordiantes like [1.19,0.287,0.35]?

You could probably do it like this:
pub fn index_of_f32<const N: usize>(array: [f32; N]) -> <u32 as Interleave<N>>::Output
where
    u32: Interleave<N>,
{
    let int_array = array.map(f32::to_bits);
    util::generic_index_of(int_array, Interleave::interleave)
}

pub fn index_of_f64<const N: usize>(array: [f64; N]) -> <u64 as Interleave<N>>::Output
where
    u64: Interleave<N>,
{
    let int_array = array.map(f64::to_bits);
    util::generic_index_of(int_array, Interleave::interleave)
}

I'm hesitant to bring functions like this into zorder, since they don't really form any Z-order curve structure due to their non-linearity. In other words, coordinates close in XYZ space are not close in the index space, which is the purpose of using Z-order curves for optimizations.
But you're free to use the example above in your own code if it satisfies you.

thanks for providing code examples.
I am not familiar with the math under the space filling curves.
why a float coordinates close in XYZ space are not close in the index space ?

another question is that the code seems unable to handle 10-D vector?
let index = index_of([255u32, 255u32, 255u32,267426u32,0u32,76u32,3675u32,34573u32,37583u32,37853u32]);
    |                 ^^^^^^^^ the trait `InterleaveOutput<10>` is not implemented for `u32`

thanks for providing code examples.
I am not familiar with the math under the space filling curves.
why a float coordinates close in XYZ space are not close in the index space ?

After playing with this editor I'm not so sure about the linearity thing anymore, because that was mostly based on a hunch. You'll just have to find out if it works for you. I also haven't seen Z-order curve being used directly transmuted floats, as they are almost always integers.

another question is that the code seems unable to handle 10-D vector?

That's because it won't fit in u128, which is the largest integer type. For u32 max would be 4D vector.

thanks for your explanation.
is it possible to use num_bigint::BigInt in the future to support higher dimension  ?

Maybe, but I'd rather use something which has statically allocated numbers for performance reasons.
What's your application for this crate anyway? Is performance your priority?

I aim to use zorder to index a feature vector borrowed from a neural network.
currently peformance is not considered as the first issue


Disappearing Chest

Turning on FlipinArrows and clicking a double chest makes the chest disappear including all the stuff in it.

flippinArrows will no longer interact with doublechests.


using Renderer2

please consider replacing usage of Renderer with Renderer2, so it would be compatible with angular 9 since it has removed the deprecated Renderer

[9.1.7 ]  angular version

It has been done in this PR
have you installed to v2.4.1?

yes- I have v2.4.1 installed but it seems it's been missed in 2 of package files

can you please create a PR?

sure- done that. #128

thanks. check v2.4.2.


Could not load type 'OpenCvSharp.Mat' from assembly 'OpenCvSharp 。。。

Summary of your issue

Environment
.Net 5 ,Reference OpencvSharp4.Win from Nuget
What did you do when you faced the problem?
I just Read a picture by use type : Mat
Example code:
Mat src = new Mat(@"G:\picture\liuyifei.jpg", ImreadModes.Grayscale);
Output:

paste your output
```Throw me a exception like this:
System.TypeLoadException:“Could not load type 'OpenCvSharp.Mat' from assembly 'OpenCvSharp, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.”
And I found OpencvSharp.dll ,OpenCvSharp.WpfExtensions.dll in my debug directory,seems no problem for lib files.

## What did you intend to be?

I goted  , Only support to net core 3.0


How does allowedMethods work?

I have a file routes.js with this content:
import Router from 'koa-router'

function routes(components) {
  const router = new Router()
  router.get('/home', components.home)
  return router
}

export default routes

And i call it by const router = routes(components).
But when i do this:
server.use(router.routes())
server.use(router.allowedMethods())

Seems like allowedMethods is not working because even if i use POST or PATCH, i'm getting the response anyway. Why i'm not getting 405 Method Not Allowed or 501 Not Implemented ?
Thanks

const router = require('koa-router')()
router.get('/health', async (ctx) => {
ctx.body = {
status: 'UP'
}
})

like this


Make cursor creation optional

By default the cursor wont be created, If the user wants then the "enable-cursor" option can be added as true in weston config file.

description in https://github.com/GENIVI/wayland-ivi-extension/pull/111/commits/0018840646098fcd07df51de0abc6b1a898a9027 please add a proper description in the commit how to use the option, e.g. mention weston.ini, section and values...

please merge the commits https://github.com/GENIVI/wayland-ivi-extension/pull/111/commits/643836f41b8c9a097a7613dcc6065a84f63b4c0c and https://github.com/GENIVI/wayland-ivi-extension/pull/111/commits/000189a2678b4f3702a65828ceaf9d92d32dd541 into https://github.com/GENIVI/wayland-ivi-extension/pull/111/commits/0e5007255662d72eac4a5602aee6744b0925b995, so we would have the option disable from the beginning...

@efriedrich: Addressed the review comments.

@rajendraprasadkj thanks looks good now merging


Dependabot

FYI, this only takes effect after it's been merged into master.

merges to the alpha branch

merges to the alpha branch

Not an accident. I already checked all the package references a couple days ago.


Bump version of dragonmantank/cron-expression too 2.3.0 or higher

https://ctankersley.com/2017/10/12/cron-expression-update/
It would be great if this could be changed!

Thanks you ❤


Add BUFF_STACKS_GTE criteria check

Added the opposite of BUFF_STACKS_LTE. At the moment this has a use case with Shadow Weaving stacks for trinket / ability usage.

@marisa-ashkandi Thanks for review and catch there, should be good now.


Connection refused error on backend connecting to Whatsapp

After the API connected yo the backend, the backend tries to connect to Whatsapp, then I get "[Errno 111] Connection refused" and the following output:

This is my first time trying to use the project.
Has anyone run into the same problem?

Change https://github.com/sigalor/whatsapp-web-reveng/blob/master/backend/whatsapp.py line 221 to wss: //web.whatsapp.com/ws

@Romerito007 Have made the change and it's working now. Thanks.


⚠ ClamAV has degraded performance

In 7645d80, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 193 ms

Resolved: ClamAV performance has improved in 5ff1931.


Send message and disconnect without delay causes merge of message on server

Hi, I'm in trouble with a particular case.
If my client sends a message to the server and immediatly closes the connection the server receives the message containing sended data and also the header of the "closing" message.
here below my output:
Server listening on port 23456. press enter to close
Client connected: <IP_ADDRESS>:34746
Message received from <IP_ADDRESS>:34746: ciao{"Status":"Disconnecting","SyncRequest":false,"SyncResponse":false,"Compression":"None","ContentLength":0,"Metadata":{}}

Client DISCONNECTED: <IP_ADDRESS>:34746

If I put a delay of 200ms between send and dispose my message is correct and contains only my data:
Client connected: <IP_ADDRESS>:34751
Message received from <IP_ADDRESS>:34751: ciao
Client DISCONNECTED: <IP_ADDRESS>:34751

Here the server code:
class Program
{
    static string clientIpPort;
    static WatsonTcpServer srv;

    static void Main(string[] args)
    {
        srv = new WatsonTcpServer("", 23456);
        srv.ClientConnected += Srv_ClientConnected;
        srv.ClientDisconnected += Srv_ClientDisconnected;
        srv.MessageReceived += Srv_MessageReceived;
        srv.SyncRequestReceived = SyncRequestReceived;

        srv.Start();
        Console.WriteLine("Server listening on port 23456. press enter to close");
        Console.ReadLine();

    }

    private static void Srv_MessageReceived(object sender, MessageReceivedFromClientEventArgs e)
    {
        Console.WriteLine($"Message received from {e.IpPort}: {Encoding.UTF8.GetString(e.Data)}");
    }

    private static void Srv_ClientDisconnected(object sender, ClientDisconnectedEventArgs e)
    {
        clientIpPort = null;
        Console.WriteLine($"Client DISCONNECTED: {e.IpPort}");
    }

    private static SyncResponse SyncRequestReceived(SyncRequest req)
    {
        Console.WriteLine($"Syncrequest received from {req.IpPort}: {Encoding.UTF8.GetString(req.Data)}");
        SyncResponse ret;

        System.Threading.Thread.Sleep(5000);
        ret = new SyncResponse(req, "Long work done :-)");

        Console.WriteLine("Syncrequest completed");
        return ret;
    }

    private static void Srv_ClientConnected(object sender, ClientConnectedEventArgs e)
    {
        clientIpPort = e.IpPort;
        Console.WriteLine($"Client connected: {e.IpPort}");
    }
}

And here the client code:
class Program
{
    static void Main(string[] args)
    {

        Console.WriteLine("press enter to connect, send message and disconnect");
        Console.ReadLine();

        WatsonTcpClient cli = new WatsonTcpClient("localhost", 23456);
        cli.ServerConnected += Cli_ServerConnected;
        cli.MessageReceived += Cli_MessageReceived;
        cli.DebugMessages = true;
        cli.Logger = log;
        cli.Start();

        cli.Send("ciao");
        //System.Threading.Thread.Sleep(200); without this the server receives a wrong message
        cli.Dispose();
        cli = null;

        Console.WriteLine("press enter to close");
        Console.ReadLine();
    }

    private static void log(string txt)
    {
        Console.WriteLine(DateTime.Now.ToString("HH:mm:ss.fff") + " --> " + txt);
    }

    private static void Cli_MessageReceived(object sender, MessageReceivedFromServerEventArgs e)
    {
        Console.WriteLine($"Message received from server: {Encoding.UTF8.GetString(e.Data)}");
    }

    private static void Cli_ServerConnected(object sender, EventArgs e)
    {
        Console.WriteLine($"Connected to server");
    }
}

Maybe the disconnect don't wait the completion of last send?
Thanks so much
Michele (ozrecsec)

Hi Michele, message received and I will see if I can reproduce and fix this today!

Reproduced.

Seems like a .Flush issue somewhere.  Working on this now.

Found in WatsonMessage.cs

I recall having to make this change because of something with SSL and compression.  Testing the fix.

Ok, yes, there is an issue with SSL and compression that caused me to read the stream fully.  It appears the compression stream for some reason is not advancing when read.  It will take me a while to dive into this.  If you're not using SSL, you can switch the line of code as above and be fine.  Sorry you encountered this!  I'll get it resolved ASAP.

Testing a version to commit and publish to NuGet.

Update: I can't get around the compression bug when SSL is used.  However this is more a corner case, and the fix for the broader use cases is more important.  Going to publish this version, and release note the issue.

Hi @ozrecsec I just pushed v4.1.1 to NuGet and everything works great except compression with SSL (@developervariety please be aware of this since it was an enhancement you requested)
Please confirm the fix and close the issue.
NuGet: https://www.nuget.org/packages/WatsonTcp/4.1.1
Commit: https://github.com/jchristn/WatsonTcp/commit/aa24fce5b5a4b71caf3a7cdeb2863190ee747947
Thanks for letting me know about this issue!  Cheers, Joel


Exporting a table that has a TEXT[] column to SQL creates an invalid SQL insert query

System information:

Operating system (distribution) and version

Windows 10

DBeaver version

7.2.0

Additional extensions

None

Connection specification:

Database name and version

PostgreSQL 12.4

Driver name

PostgreSQL standard driver

Do you use tunnels or proxies (SSH, SOCKS, etc)?

No

Describe the problem you're observing:
I tried exporting a table to SQL, and executing the query to insert into another database. The query failed because the array values were malformed.
Steps to reproduce, if exist:

Create a SQL table that has at least 1 column of type TEXT[].
Populate the table with data.
Right click on the table in the Database Navigator, and click Export Data.
Select SQL.
Hit Next until getting to the Output page
Select "Copy to clipboard"
Paste the copied query into a psql prompt

Include any warning/errors/backtraces from the logs

ERROR:  malformed array literal: <the array value here>

I believe the issue is that values are not being placed between double quotes. The documentation shows TEXT[]s being inserted with double quotes around each value: https://www.postgresql.org/docs/current/arrays.html#ARRAYS-INPUT

Thank you for the report. DBeaver recognizes the generated SQL as correct:
INSERT INTO public.testttable (column1,column2,column3,"text") VALUES
('a',3,'q','{1,2}')
,('a',4,'q','{1,2}')
;

We must put string literals in double quotes in INSERT queries.
Fixed

Multi-dimensional arrays support added.

verified


[Panpress] Easier install

For now, you need to install Pandoc prior to run Panpress.
Adding some more ways to install & run Panpress would lead to a better DX.
Some ideas :

[ ] Docker
[ ] Pandoc npm wrapper

Solved by @daucus/pandoc (soon)

Solved by @daucus/pandoc (soon)


Add a command that accepts a notification's default action

@meganrogge -- Very recently, I encountered accessibility issue with merge editor when trying to sync my VSCode setting conflicts between local and remote ones. It would be so nice if this editor could provide similar experience to the diff editor audio cues, etc.

It would be even nicer if some frequently used buttons, such as Accept, had their default accelerator shortcut key (e.g., Alt+A) so that users can quickly activate the buttons without having to leave their current editor focus.
Originally posted by @jooyoungseo in https://github.com/microsoft/vscode/issues/159029#issuecomment-1437504899

To clarify, this is accelerators for notification actions, not a command? Are accelerators in the menu bar (anywhere else?) accessible currently? I'm curious how Windows natively does this if at all.

From @bpasero ,

We could add a command that simply triggers the primary button.

Have we ever considered having a tag or something for commands so they could be filtered?


Refactor template to use flexbox

This is a slight re-factor of our HTML layout. The end-result should be nearly the same, but hopefully with a slightly more sensible layout that is based on flexbox and uses less hard-coded positions and such. The goal is to make the theme behave a bit more predictably, especially for folks that are sub-theming it.
Not quite ready yet, I think there are some more tweaks to make.

The contents sidebar's a bit messed up. 😅

Scrolling to the bottom of the page, results in a weird movement of the "contents" in the top bar.
It doesn't have content on some pages. (https://sphinx-book-theme--415.org.readthedocs.build/en/415/)
It clips into prose on other pages. (https://sphinx-book-theme--415.org.readthedocs.build/en/415/tutorials/get-started.html)

The sidebar collapse button doesn't change to an arrow when expanded (I think I like this PR's behaviour more).

welp, I am a bit stuck on this one - for some reason the main container block is wider than the screen in some circumstances. If I collapse the sidebar on a narrow-ish screen, then the button to open the sidebar back up disappears off the screen completely:

I'm not sure how to solve this one and I've used up my hacking time this weekend on this :-( if anybody else has a pointer I would appreciate any advice.

I'm gonna close this as I don't have the development time to push it through, and got stuck on getting the CSS to work :-/


kazoo sdist tarball is missing docs/

At least in kazoo-2.2.1.tar.gz, also reproducible in fresh git checkout:
$ git clone git://github.com/python-zk/kazoo
$ cd kazoo
$ python ./setup.py sdist
$ tar ztvf dist/kazoo*tar.gz|grep docs
$

Hmmm, that's no cool, where the docs go.

kazoo-2.0.zip is the last release on pypi which included docs but recreating sdist on 2.0 tag produces both zip or tar.gz without docs...

Ya, its interesting since it seems like https://github.com/python-zk/kazoo/commits/master/MANIFEST.in has never included the docs dir.

https://github.com/python-zk/kazoo/pull/380 might be all that is needed to fix this.

#380 fixes this, any plans for 2.2.2 new release?


Enter should add new task

Currently (in latest Github master version) pressing enter creates a newline in the task entry. Would be nice if either shift+enter was designated to creating a newline, and enter would add the entered task, or if ctrl+enter was designated to add the task. Thanks!

Works well! Thank you! Of course, pressing enter twice really fast adds another empty task, but that's just Gnome being slow I guess :D

The second time you hit enter you are already in the default view where the Add Task button is in focus. Maybe that is causing it to happen?
I just pushed a little commit; can you see whether it helps.

Damn, that did fix it! Works like a charm! :)


Feature/redo walk

Codecov Report

Merging #95 (388d2b8) into main (56f798a) will increase coverage by 1.04%.
The diff coverage is 25.30%.

@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   32.01%   33.06%   +1.04%
==========================================
  Files          15       19       +4
  Lines         631      738     +107
==========================================
+ Hits          202      244      +42
- Misses        429      494      +65

Impacted Files
Coverage Δ

splunk_connect_for_snmp_poller/manager/poller.py
0.00% <0.00%> (ø)

...onnect_for_snmp_poller/manager/poller_utilities.py
0.00% <0.00%> (ø)

splunk_connect_for_snmp_poller/mongo.py
0.00% <0.00%> (ø)

splunk_connect_for_snmp_poller/utilities.py
27.45% <14.28%> (-2.10%)
:arrow_down:

...for_snmp_poller/manager/realtime/real_time_data.py
88.46% <88.46%> (ø)

...t_for_snmp_poller/manager/realtime/oid_constant.py
100.00% <100.00%> (ø)

tests/test_real_time_data.py
100.00% <100.00%> (ø)

... and 1 more

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 56f798a...388d2b8. Read the comment docs.

I have read the Code of Conduct and I hereby accept the Terms

:tada: This PR is included in version 1.5.0-develop.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[BUG]

Before you begin

This is NOT Forlax's mod or any other mod. If you have issues related to those versions DO NOT post them here as they will be closed and disregarded immediately.
Do NOT post any form of illegal content (e.g. screenshots of you cracking a website with stolen credentials) and do NOT ask for Configs for websites. Doing that will result in a report to the GitHub security team and a permanent ban from posting to this repository.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to 'Proxies'
Click on 'Import'
Add working proxies
Run a config with its default for proxies true or setting proxies true.
Will always keep retrying with error messages

Expected behavior
Should be good or bad not only retires
Screenshots
If applicable, add screenshots to help explain your problem.
Version

Version Newest as of this post

Additional context
Will constantly do errors in block request when using proxies. Without using proxies with any config works fine but with just breaks.

Are you 100% sure your proxies are working fine on other programs? They might also be banned on the site you are trying to scrape. Please test further before blaming it on the program itself. Reopen when you have a more accurate description of the error.


[api] Fixes NDArrayAdapter toDevice() and toType() behavior

Change-Id: Iaf90c609a832f3f7bc2a863bdb44cfc7df34dbae
Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report

Merging #1839 (d1e58e3) into master (bb5073f) will decrease coverage by 2.37%.
The diff coverage is 64.45%.

@@             Coverage Diff              @@
##             master    #1839      +/-   ##
============================================
- Coverage     72.08%   69.71%   -2.38%
- Complexity     5126     5524     +398
============================================
  Files           473      526      +53
  Lines         21970    24431    +2461
  Branches       2351     2662     +311
============================================
+ Hits          15838    17033    +1195
- Misses         4925     6087    +1162
- Partials       1207     1311     +104

Impacted Files
Coverage Δ

api/src/main/java/ai/djl/modality/cv/Image.java
69.23% <ø> (-4.11%)
:arrow_down:

...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java
76.00% <ø> (ø)

...rc/main/java/ai/djl/modality/cv/output/Joints.java
71.42% <ø> (ø)

.../main/java/ai/djl/modality/cv/output/Landmark.java
100.00% <ø> (ø)

...main/java/ai/djl/modality/cv/output/Rectangle.java
72.41% <0.00%> (ø)

...i/djl/modality/cv/translator/BigGANTranslator.java
21.42% <0.00%> (-5.24%)
:arrow_down:

...odality/cv/translator/BigGANTranslatorFactory.java
33.33% <0.00%> (+8.33%)
:arrow_up:

...nslator/InstanceSegmentationTranslatorFactory.java
14.28% <0.00%> (-3.90%)
:arrow_down:

.../cv/translator/SemanticSegmentationTranslator.java
0.00% <0.00%> (ø)

.../cv/translator/StyleTransferTranslatorFactory.java
40.00% <ø> (ø)

... and 420 more

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 404c733...d1e58e3. Read the comment docs.


PolylineDecorator.getBounds() throws error

I've run into an issue when trying to find the bounds of a PolylineDecorator.
Since PolylineDecorator is a FeatureGroup, it has getBounds method.
That method will try to iterate all of its layers and call getBounds or getLatLng on those.
But because the child layers are instances of LayerGroup, they do not have either method, and so a TypeError: e.getLatLng is not a function error is thrown.
Since the 1.3.0 release the bounds of the child layers would not even be the real bounds of a PolylineDecorator - the closest we could get now is the bound of its paths.
These changes work for my use-case, I could make a PR of them, if it would get merged:
L.PolylineDecorator = L.FeatureGroup.extend({
    /* ... */

    setPaths: function(paths) {
        /* ... */
        this._bounds = this._initBounds();
    },

    initialize: function(paths, options) {
        /* ... */
        this._bounds = this._initBounds();
    },

    _initBounds: function () {
        var bounds = L.latLngBounds(this._paths[0]);
        for (var i = 1; i < this._paths.length; ++i) {
            bounds.extends(L.latLngBounds(this._paths[i]))
        }
        return bounds;
    },

    getBounds: function () {
      return this._bounds;
    }
});

Same issue with getLatLng?


All releases after 3.24.0 broken with Azure? Getting "Invalid API version. Ensure a valid x-ms-version header value is passed."

We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.

Describe the bug
We are using the latest release of the nuget 3.26.1, it sets a version header:
x-ms-version: 2019-10-14
This works with the emulator but when using a newly-created cosmos account from Azure, it fails with an error:
exited with exit code: -532462766 Unhandled exception.
Microsoft.Azure.Cosmos.CosmosException : Response status code does not indicate success: BadRequest (400); Substatus:
0; ActivityId: 3482fde7-db22-4fc3-a1ee-377363428346; Reason: (Invalid API version. Ensure a valid x-ms-version header
value is passed. Please update to the latest version of Azure Cosmos DB SDK.

CategoryInfo : NotSpecified: (2022-05-03 21:5... Cosmos DB SDK.:String) [], RemoteException
FullyQualifiedErrorId : NativeCommandError

ActivityId: 3482fde7-db22-4fc3-a1ee-377363428346,
Microsoft.Azure.Documents.Common/2.14.0, Windows/10.0.17763 cosmos-netstandard-sdk/3.24.1);
at
Microsoft.Azure.Cosmos.GatewayStoreClient.ParseResponseAsync(HttpResponseMessage responseMessage,
JsonSerializerSettings serializerSettings, DocumentServiceRequest request)
at
Microsoft.Azure.Cosmos.GatewayAccountReader.GetDatabaseAccountAsync(Uri serviceEndpoint)
at
Microsoft.Azure.Cosmos.Routing.GlobalEndpointManager.GetAccountPropertiesHelper.GetAndUpdateAccountPropertiesAsync(Uri
endpoint)
The support page indicates this is not a supported version with Azure:
https://docs.microsoft.com/en-us/rest/api/cosmos-db/#supported-rest-api-versions

Version
Change introduced
Retirement date

2018-12-31
Partitioned collections automatic migration

2018-09-17
Composite and additional spatial indexing

2018-08-31
Dynamic collection scaling improvements

2018-06-18
Multi-region write support

2017-11-15
Multi-region Strong Consistency

2017-05-03
Large partition key

2017-02-22
Consistent prefix

2017-01-19
Lowered minimum throughput for partitioned collections to 2500 RU/s

2016-07-11
Change feed

2015-12-16
Partitioned collections

2015-08-06
Upsert

2015-06-03
Order By support

2015-04-08
DocumentDB general availability (now part of Azure Cosmos DB)

2014-08-21
DocumentDB public preview (now part of Azure Cosmos DB)
February 29th, 2016

To Reproduce
Steps to reproduce the behavior. If you can include code snippets or links to repositories containing a repro of the issue that can helps us in detecting the scenario it would speed up the resolution.
Expected behavior
A clear and concise description of what you expected to happen.
Actual behavior
Provide a description of the actual behavior observed.
Environment summary
SDK Version:
OS Version (e.g. Windows, Linux, MacOSX)
Additional context
Add any other context about the problem here (for example, complete stack traces or logs).

I am seeing all the recent releases of the SDK are using this version, so not sure why it's being rejected by Azure cosmos DB we just created. Is there some configuration somewhere that sets the allowed version?

I see this commit is what introduced the change?
https://github.com/Azure/azure-cosmos-dotnet-v3/pull/3015

I have confirmed that release 3.24.0 is working with Azure! It sets the version header as "x-ms-version: 2018-12-31" which is working!

This was tested against a newly-created cosmosDB in Azure. Is there something to configure to allow it to support the newer "2019-10-14" version?

Investigating more, "x-ms-version: 2019-10-14" should be working with Azure. Likely issue with stale binaries / config routing to emulator that was rejecting the newer version. Will re-open if repro.


move Dream templates to separate files

I have attempted to solve this. See the branch "template-files" and the project in the directory "dream_demo".\
@mooreryan Do you see what I'm doing wrong that branch?

(See #2)


Symmetry designation

Is symmetry designation enough? There are different types of symmetries (e.g., one type of symmetry for front and back of monolithic glazing layers, but different for BSDF, where only half of hemisphere is measured in PGII)

If you don't agree that this issue was solved, please reopen it!


Question about Adaptive propagation.

Hi, First of all thanks for your great efforts on this research.
I have a question about adaptive propagation.
In model/patchmatch.py at line from 79 to 82.
         propogate_depth_sample = F.grid_sample(depth_sample[:, num_depth // 2,:,:].unsqueeze(1),                                      grid,                                      mode='bilinear',                                     padding_mode='border')
Is there have any intuition or knowledge about num_depth//2 ?
I guessed that num//depth2 is the center of hypothesis planes that is equivalent to zero depth.
I cannot understand this part, clearly.
Could you explain for me ?
Thank you for sharing the research results !

Hi,
For each pixel, the input of propagation is the set of hypotheses that are sampled around the estimation d from previous iteration. The index "num_depth//2" corresponds to this estimation d, the other indices correspond to the new samples around d.


[Figma] Lead space search

On hold until additional lead space changes are made to prepare for Contentful
Add the Lead space search component to Figma kit. Remember we are only building variants for xlg, md, and sm.
Design spec
Website
Must haves:

[ ] This component uses a fluid type token for the heading. If this is not created already, create a base to help swap the header type based on breakpoint size. See Content group in the library. This should be tested with for Cards.
[ ] Use components from Lead space where able.
[ ] Include all states for the search field, including the typeahead modal. Include this as an item available to designers (see Masthead).
[ ] Build the search field as an item that can be used separately.
[ ] In the Storybook, there are options under "Knob" for Adjacent theme. These should be variant options.

Default

with background image

Resources

C4IBM.com Component checklist is available in the Read Me 👀 page of the Figma library
Bases demo from the Figma Fridays (Episode 23)
Reference the best practices from Figma guild
Info on auto layout

Duplicate


Call to external API

Hello,
I'm trying to call an external API but I'm getting the error:
Response for preflight has invalid HTTP status code 404
Request Method:OPTIONS
Status Code:404 Not Found
This happens with all externals API's. I tested using the Angular template form VS2017 and it works.
Do you have any idea what could be happening with your template? Or I missing something?

@mayorquin , send me screenshot of the error you get. I suspect this could around the security middlewares added in the project.

Thanks for your response... It was an error related with http headers.


Linear Form Integrators

Hello :)
In my equation that I solve, I have a source term alpha.
I would like to use a linear domain integrator, with the following continue form: lambda*d(alpha)/dx. Is it possible ?
Best,
LS

Does alpha have a derivative you can compute by hand? That would obviously be your best option.
Otherwise, I'm not sure I understand the question. In general space, this would be something like grad(alpha) which is a vector quantity. Maybe you need something like a DomainLFGradIntegrator and an inner-product?

Hello, yes you are right ! I will solve grad(alpha), thank you !! Huum, DomainLFGradIntegrator calculate the divergence of alpha no ?

DomainLFGradIntegerator evaluates the integral

where  is a VectorCoefficient and  is a GridFunction that you are solving for.
What is the form of alpha? Is it a GridFunction? A Coefficient? Is alpha scalar valued or vector valued?

alpha is a Gridfunction and it is a scalar. I'm not sure to understand, f is the test function ?

Sorry for the confusion. Yes,

Why wouldn't I use VectorDomainLFIntegrator instead? :
LinearForm lf{/*fespace*/};
GridFunction alpha{/*fespace*/};
GradientGridFunctionCoefficient grad_alpha_coeff{&alpha};
lf.AddDomainIntegrator(new VectorDomainLFIntegrator{grad_alpha_coeff});

VectorDomainLFIntegrator would be for a vector test function. You would have vdim > 1 when declaring the FiniteElementSpace.

DomainLFGradIntegrator would be for integrating the gradient of the test function. This would be if both alpha and your FiniteElementSpace are scalars.

Ok, my unknown is a vector, so I'm working with a vector space, so I have to use VectorDomainLFIntegrator no ?

Sounds like it but it really depends on what you're trying to calculate.
Your weak form either has a derivative on the test function or not.

Is unrelated to the original question but you can see how VectorDivergenceIntegrator is used in the Navier miniapp in miniapps/navier/navier_solver.cpp. You need to use a MixedBilinearForm as the trial and test functions are in different spaces. If you have other questions, you can open a new issue.

Thank you for you help ! :)


Rails capstone project - Budget app

This is my RonR Capstone project. in this project, users can Add categories and transactions. they can also Edit, Update and Delete.
Build with:

RonR.
Tailwind CSS.
RSpec.
Capybara
Devise
Cancancan

Learning objectives
Use ruby gems as software packages system.
Install Ruby on Rails framework.
Understand Rails RESTful design and router.
Use controllers to handle requests and render empty views.
Use params from browser request in a safe way.
Use preprocessed html file with embedded Ruby code.
Use layouts and templates for shared content.
Use database migration files to maintain database schema.
Use validations for models.
Secure app from n+1 problems.
Understand what ORM is.
Write SQL queries with ActiveRecord.
Set up associations between models.
Build a webapp that requires the user to log in.
Use devise gem for authentication.
Limit access to webapp resources based on authorization rules.
Analyze in writing why you have made a coding choice using one structure over another.

@emmanuellekamwa
Thanks for the review.


trans:name dynamic property not working with PutMarklogic

trans:name which can be added as a dynamic parameter to pass to the transform module in PutMarklogic processor is not being evaluated properly, its being sent as empty string if we specify a el expression ${mscNumber}, if however a hardcoded string is used, it is sent across properly.

Hi @rishabh208gupta - the expression should work if "mscNumber" is defined in the NiFi variable registry. It will not be evaluated against FlowFile attributes, per the documentation (available via "View Usage" on PutMarkLogic):

The reason for this is that the transform object is built once when PutMarkLogic is started, and thus it can only use the variables in the NiFi registry. It's not possible to then modify it for each FlowFile.
Do you have a need for values to be sent to the transform for each FlowFile?

Hi @rjrudin , sorry my bad, yeah I get it now. My requirement is to sent a value from FlowFile attributes, so a different value for each FlowFile. Is there anything that can be done for this, thanks.

Could you add those attributes to the body of the FlowFile instead? For example, if the FlowFiles you're sending to PutMarkLogic contain JSON which is then written as a JSON document to MarkLogic, you could use an ExecuteScript processor to add the attribute values as new keys to your JSON document. Your REST transform would then have access to that data and could do whatever it needs to with it.

The FlowFile is a binary file, it could be .mp4, .png, .pdf, etc

Got it - and are you looking to include metadata about the binary file that either gets persisted as document properties or metadata or as a separate document?

The requirement is to pass in a parameter to the transform module which is different for each file, in the transform module we are using that param to be used in a separate document that we are creating and ingesting in the transform module itself. Its like a log we are creating about the metadata of the incoming Flowfile, this meta data file needs to have the param as one of its fields.

Could you use a meta: or property: attribute to stash the document-specific value as a metadata key or a document property to achieve the same effect? It at least allows you to get that value to MarkLogic. I don't think the REST transform gives you access to the metadata for a document, but a technique I've used in the past is a pre-commit trigger, which will have access to all parts of the URI. At that point, you could write a little bit of trigger code to fetch the document metadata keys or properties from the URI (the binary you're writing) and use them to insert another document.

Hi @rjrudin, we wouldn't want the performance implications and the additional complexity of including a pre-commit trigger. Is there any reason why trans: was made only to read variables from the variable registry and not from expression language? Wouldn't it be better if it was made to read from both?

The issue is that PutMarkLogic uses MarkLogic's WriteBatcher component for writing batches of documents in multiple threads, and WriteBatcher requires a ServerTransform to be configured on it before it begins. That transform is then applied to all documents in all batches. It's a good fit for when the same transform (with the same parameters) is intended to be applied against all documents, but that doesn't meet your requirements.
I am wondering if it might be simpler to just use NiFi's InvokeHttp processor to access MarkLogic's /v1/documents endpoint directly. The advantage with that is you can specify a transform and transform parameters specific to the document you're ingesting. The downside of not having the multi-threaded batch support of PutMarkLogic can likely be mitigated by configuring InvokeHttp itself to run with multiple threads.


Ci for documentation

Description

Fixes # (issue)
Checklist:

[x] I have run ./ci/run_stable_checks.sh
[x] I have reviewed my own code
[x] I have added tests

This is really helpful, thanks for adding!


Remove Unused other Button in Language page

There's a other button in the Language page UI that currently serves no purpose and should be removed. Its presence can confuse users and clutter the interface unnecessarily. Let's clean up the UI by removing this button, improving the overall user experience and ensuring that interface elements are relevant and functional.

Hello,
Hope you're doing well.
I would like to work on this issue.
As per the requirement, I made sure that the Other button is no more visible in the languages page.
So for now, it looks something like this:

The grid structure, however, looks a little off I guess.
So how about we make the buttons look something like this instead?

I tried to center the 2nd row's two options (Java & Python), but since the code has grid structure being used via css, I wasn't able to do that.
If at all you have suggestions for fixing the same, then do let me know.
Or else, please let me know if either of the above screenshots would meet the requirements.
Sincere apologies for causing any mistakes or inconsistencies if you find any from my end.
Thanks and Regards,
Mohit Kambli


Use epoch count instead of last epoch

Hi, I've started working on this PR to address #1340.
I hope I'm on the right track. I'm quite new to this project and Rust in general so I'll be very grateful for any feedback :)

When working on PRs, I never merge, only git fetch upstream && git rebase -i upstream/master. Dealing with merge commits is a pain, only useful when the structure of the changes needs to be preserved (e.g. commit signatures, or just the whole history). In a PR that's almost never the case.

When working on PRs, I never merge

Ah OK. I was planning to rebase (and squash commits) at the end once all the discussion had been finalized. I can rebase now. Shall I also squash all commits now or only once PR has been approved?

Thanks for your review of the draft PR, @dpc, and your helpful comments. I've now squashed and rebased my commits and marked this as Ready for Review.

Shall I also squash all commits now or only once PR has been approved

Personally, I don't care, but some reviewers might like to have each fix in a different commit and a final squash.
Generally, it's best to keep changes small so it doesn't matter. I think this one is small enough to just be one piece.


chef-client cookbook now fails with this driver

As of the latest Chef-workstation release. The chef-client cookbook fails to run when using this drive. I have also tested with the vagrant and dokken drivers. It will work with the vagrant driver. Below is the error I see.
Relevant File Content:
/opt/kitchen/cache/cookbooks/chef-client/recipes/service.rb:
30:    systemd
31:    upstart
32:    windows
33:  )
34:
35:  init_style = node['chef_client']['init_style']
36:
37>> raise "The init style specified at node['chef_client']['init_style'] is not supported by the chef-client cookbook. Supported values are: #{supported_init_styles.join(',')}." unless supported_init_styles.include?(init_style)
38:
39:  include_recipe "chef-client::#{init_style}_service"
40:

I got the same problem. It works with vagrant but not docker.


Fix docs link post docs.helium.com switchover

We have some links 404'ing from the old dev docs url.
https://explorer.helium.com/market
Oracle, DC Price, and HNT / DC links need fixing. New links are:

https://docs.helium.com/blockchain/oracles
https://docs.helium.com/blockchain/helium-token/#data-credits-and-burn-and-mint-economics

fixed by #208 :)


RUN-2219: temporary files are not deleted

small refactor to capture exceptions in the main method to ensure temporary files be deleted
adding test

moved to https://github.com/rundeck-plugins/ansible-plugin/pull/352


Changed rm -rf to rimraf for Windows 10 support

Coverage remained the same at 82.767% when pulling bd106ea03f09da57daed22412ae63ff119bd9c67 on bugs/Win10Support into 203f79e6a309d379424c44a22918dd5f0174ba62 on development.


footer added

i added footer but it does not appears because of the buttons (add a card , home , and other )

Not useful.


fix: named export to allow re-export

To enable the re-export of the module internally, it should use a named export.
This allows for the following:
import TrackPlayer from "@5stones/react-native-track-player";

export * from "@5stones/react-native-track-player";
export default TrackPlayer;

Without this change, you'll end up with this error:
index.js:623 Uncaught TypeError: Cannot read properties of undefined (reading 'data')
    at eval (index.js:3:23)
    at eval (index.js:3:23)
    at<EMAIL_ADDRESS>(_app.js?ts=1694771869986:13323:1)

@hirbod could you please update or recreate this PR now that I've done the rebase? The diff seems to include things not relevant to your modification.
Thanks!


iOS upload to appstore faild: ERROR ITMS-90171

Affected version
0.14.3
Flutter versions
3.7.12
No same issues found.

[X] Yes, I search all issues but not found.

Steps to Reproduce
ERROR ITMS-90171 : "Invalid Bundle Structure - The binary file '' is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."
Code example
ERROR ITMS-90171 : "Invalid Bundle Structure - The binary file '' is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."
Expected results

Actual results

Remove the quickjs.framework/quickjs and webf_bridge.framework/webf_bridge manually.
https://github.com/openwebf/webf/issues/386

delete this page


Feature ge mapobject model

MapObject model and its related classes.

 (0)PR Feature ge mapobject model


can't deploy the project

I can't deploy any project to Heroku. It shows me Error Message

See #132, #128, #109 and #98.


Devs SBAT develop smart contracts without worrying about running over the bytecode limit

Expected Behavior
There is a buffer between current bytecode size and the max limit.
Current Behavior
Several contracts are right under the max limit making it difficult to make even small changes.

Fixed by https://github.com/celo-org/celo-blockchain/pull/421


Initial version of SPLOM for sensors

closes
Prerequisites:

[ ] Unless it is a hotfix it should be merged against the dev branch
[ ] Branch is up-to-date with the branch to be merged with, i.e. dev
[ ] Build is successful
[ ] Code is cleaned up and formatted

Summary
Creating a matrix of scatter charts (a SPLOM) across sensors.

Are you prototyping under the Region Details tabs?  It looks like there's currently an error being thrown:

Yes, it is on the Region Details tab, and you have to click the + button to add the first sensor.  The error is due to trying to run the visualization without the first sensor having been selected, so that won't be an issue once we decide which sensors should be selected by default.  Need at least 2 to do a comparison.

Here is what it looks like with histograms along the diagonal.

I can't easily get rid of the common axis titles (vega-lite doesn't make it easy at all), but I'll replace the sensor ids with the names.

I think it would be reasonable to do correlations with the same sensor and two locations.  So maybe the x axis has a location and a list of sensors, and the y axis has a location (possibly the same) and a list of sensors (possibly the same).

Here it only compares with the default indicator, which comes from the "primary" indicator used in other pages.

The Histogram is shown for that same one indicator, but it is probably not useful when displayed this way.

Have you experimented yet with investigating the temporal nature of the correlation plots, e.g. snake plots or otherwise adding a time dimension to the plots?

With a moving average trail, this helps to figure out which way the data is moving:

Here is the list of all indicators compared to the one selected from the map overview page:

And for one indicator, here are the plots with various lag amounts, from -14 to +14 days.  One of the lags is selected to display in more detail on the right, though it is not sized or positioned correctly yet.

Another major restructuring to allow better display of the lag list, and the detail view:

After a few more updates:

Latest version:

Latest version:

Left some feedback here: https://jam.dev/jelly/worst-rat-3824?jam&invite=depressed-raven-1518&jamid=worst-rat-3824
Happy to discuss in the UX review :)

Thanks Raph.  Going to th jam, I get:
Something went wrongSorry, Jam is unable to load your website. It’s a bug,
and we’d love to know about it so we can fix it. Please let us know by
emailing: @.***
On Thu, Mar 18, 2021 at 4:20 PM raphael hyde @.***>
wrote:

Left some feedback here:
https://jam.dev/jelly/worst-rat-3824?jam&invite=depressed-raven-1518&jamid=worst-rat-3824
Happy to discuss in the UX review :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cmu-delphi/www-covidcast/pull/749#issuecomment-802262234,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAELGDPXZC2G2FLNRRDB6D3TEJOCVANCNFSM4XW2AIVQ
.

--
• Daniel LaLiberte
• SWE
• Cambridge MA
•<EMAIL_ADDRESS>@.***>

Investigated issue with moving average when data is invalid, resulting in 0 average.  Apparently there is an open bug in Vega regarding this:   https://github.com/vega/vega/issues/1404


Remove :flynoclip

:fly already noclips you by default (unless stated otherwise)

while we are at it lets remove :flyspeed too

Let's keep :flyspeed and instead of deleting :flynoclip we disable it and add its commands to the :fly commands

i disapprove with these changes

Let's keep :flyspeed and instead of deleting :flynoclip we disable it and add its commands to the :fly commands

:fly literally has both functions of flyspeed and flynoclip.
Theres no point in having these commands anymore since they already exist in the main command

You can check for yourself
:fly  <speed (optional)> <noclip (default: true)>

copy hd admin and put flyspeed as a gui that takes 1/4 of your screen

How about just make everything a gui
Way better idea

Simply replace :flynoclip with :flyclip since :fly already noclips you by default

Or make it an alias for the fly command.

It already is an alias lol. All :flynoclip does is run the :fly command with some preset args

Nvm

I thought this was merged now lol


Docs are unclear about file_size fields

file_size fields of PhotoSize, Animation, Audio, Document, Video, VideoNote, Voice, Sticker, PassportFile and File are optional. However, I couldn't find anywhere in the docs why are these field optional, when are they not present, etc. Could you please clarify this (here, but also in docs, if possible)?
And while we are at it, can file_size in PhotoSize, Sticker, VideoNote and PassportFile always fit in 32 bit integer? (the documentation for these two fields doesn't mention need for 52 bits)

However, I couldn't find anywhere in the docs why are these field optional, when are they not present, etc.

You have already asked this in https://github.com/tdlib/telegram-bot-api/issues/192.

And while we are at it, can file_size in PhotoSize, Sticker, VideoNote and PassportFile always fit in 32 bit integer?

Photos, stickers, video notes and passport files are at most 12 MB now, so their size is very far from exceeding 32-bit.

But the classes can be used in some other places, where file size is unknown.

What are these places?

I don't think that such places are already exposed by Bot API. The only such place is ChatPhoto, but it doesn't use any of the mentioned classes.

Why are the fields marked as optional then, if API never exposes them as such?
And while we are at it, is file_path field of the File also always present?

Why are the fields marked as optional then, if API never exposes them as such?

Because they can be generally unknown. It is almost impossible to assure that they are always known for the current use cases.

And while we are at it, is file_path field of the File also always present?

Definitely, no. Since Bot API 6.1 File is used for Sticker.premium_animation, which definitely has no file_path.

Because they can be generally unknown. It is almost impossible to assure that they are always known for the current use cases.

I do not understand what you mean, your words seem to contradict themselves.
This:

For files inside messages file_size should be always known. But the classes can be used in some other places, where file size is unknown.

And this:

I don't think that such places are already exposed by Bot API.

Implies that the size is always known, so it's unclear what means that the size is "generally unknown" and how it's "impossible to assure that they are always known for the current use cases" if in all places where file_size is exposed in bot API it is known.

Definitely, no. Since Bot API 6.1 File is used for Sticker.premium_animation, which definitely has no file_path.

Is it safe to assume that file_path is always present when File is returned from get_file and never present otherwise?

The classes are used in a lot of places in TDLib and in Telegram API. In a lot of these places file size can be unknown. Luckily, Bot API exposes these classes only in already sent messages, and so file_size should always present there, But this can change any time.

The classes are used in a lot of places in TDLib and in Telegram API. In a lot of these places file size can be unknown. Luckily, Bot API exposes these classes only in already sent messages, and so file_size should always present there, But this can change any time.

But bot API is not TDLib, it shouldn't necessarily expose its implementation details. If need be for file_size to be optional in some cases a new type can be introduced for this purpose, there is no reason to "poison" all current cases where it is in fact non-optional. At least a clarification in docs that it's currently always present would be nice.
Other than that, my questions are answered, so closing the issue.

At least a clarification in docs that it's currently always present would be nice.

Documentation of the field as optional is correct. It should be present all the time for files in server messages, but it can be missed even now. For example. if the server will send an invalid file size.


[ResizeSensor] cancelAnimationFrame for reset when detach is called to prevent infinite loop and memory leak

In ResizeSensor, we use requestAnimationFrame for reset. However, if an element is added to DOM and removed from DOM very quickly (even before the first reset happens), the reset itself will stuck in an infinite loop. It also causes memory leak because the reset function holds the element forever.

Good catch, thanks!

@marcj Would you please do a minor version update on NPM? The tests of my project are very unstable due to the bug. I am replying on this fix to save the whole tests.

Sure, v1.2.2 is released.

Sure, v1.2.2 is released.

 Thank you. @marcj

@marcj & @gaoruhao Version 1.2.2 broke our website resizing.
I haven't had chance to debug the issue, but when I reviewed the changes between 1.2.1 and 1.2.2 the below code seems to be incorrect to me.
// clean up the unfinished animation frame to prevent a potential endless requestAnimationFrame of reset
if (!lastAnimationFrame) {
  window.cancelAnimationFrame(lastAnimationFrame);
  lastAnimationFrame = 0;
}

Shouldn't it instead be (notice the if (lastAnimationFrame))?
// clean up the unfinished animation frame to prevent a potential endless requestAnimationFrame of reset
if (lastAnimationFrame) {
  window.cancelAnimationFrame(lastAnimationFrame);
  lastAnimationFrame = 0;
}

Indeed, that's incorrect, good catch! But it shouldn't break anything since its additional code that due to the bug isn't executed at all. What errors do you get?

@marcj We don't get script error but with this change, the ResizeSensor handler won't get called. Our html5 app is quite simple so I'd expect this problem to be for most of the people.
            this.handleResize(size);
        });

I had a quick look and narrowed the issue down to the below change:

The lastAnimationFrame variable is used in reset function so something must have gone wrong there?

@marcj Should I raise new issue for the above?

I am also having the same issue as mKlus with v1.2.2.

@mathias999us @mKlus Fixed in v1.2.3

I am still having this issue with reset getting into infinite loop.


Issue installing 6.2.2 to official Kibana docker container

Hi @clamarque,
I'm trying to install the plugin inside the docker container in elastic's official kibana docker images (using: docker.elastic.co/kibana/kibana-oss:6.2.2)
After running this inside the container
kibana-plugin install https://github.com/clamarque/kibana_health_metric_vis/releases/download/v6.2/kibana_health_metric_vis-6.2.2.zip
Attempting to transfer from https://github.com/clamarque/kibana_health_metric_vis/releases/download/v6.2/kibana_health_metric_vis-6.2.2.zip
Transferring 601240 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Killed

But after that it errors out:

Not sure if this is related to Elasticsearch's official docker container or the install itself.

Hi @bwaang, sorry but I don't know how it works with docker. I had never tried this: /. I will have to search on this subject.

No worries, hoping that it's just their container & their next release will work, I had an issue with the the 5 containers so I couldn't backport, so I to my own build.  I feel like their docker development isn't too stable yet :(
🤞 next version it'll just work

Happy for you. don't hesitate to post a issue or another question and thank you for using my plugin;) (Close this issue)


[Schemas] Use configured schema service in Avro processors

With schema support in Conduit, we come to the questions:

Should the Avro processors be able to use Conduit's schema service?
If yes, how?

Comment by @lovromazgon:

Not for this PR, but I'll mention it before I forget. I realized that having a builtin schema registry could create the expectation that the avro.decode and avro.encode processors would be able to use the internal schema registry. It would be a bit strange if we had to configure Conduit to point to a schema registry and then again supply the URL to the processors separately. So ideally the processors should use this service to create and get schemas. Not sure if this was included in the design or not.

https://github.com/ConduitIO/conduit/pull/1605#discussion_r1635023006