expose hold, unhold and blind transfer

about https://github.com/flowroute/jssip_client/issues/13

I tried to make a few tests using the demo numbers (the ones available on the app by npm start) but I couldn't... the hold fails and cancels the call, while the transfer says that REFER is not allowed.

Hi @Mazuh I found a problem where hangup is not working anymore in index.html
You can reproduce by calling Freeswitch and trying to hangup
stable :
https://demo.webrtc.flowroute.com/fr.html?cache_invalidate=xxx
this branch :
https://demo.webrtc.flowroute.com/dev.html?cache_invalidate=xxx

When I try to hangup, are you not facing the same problem ?
I copied index.html
dev.html?cache_invalidate=xxx:141 Uncaught TypeError: Cannot read property 'call_id' of null
    at FlowrouteClient.handleCallAction [as onCallAction] (dev.html?cache_invalidate=xxx:141)
    at RTCSession.eval (FlowrouteClient.js:477)
    at RTCSession.emit (events.js:146)
    at RTCSession._ended (RTCSession.js:3442)
    at RTCSession.terminate (RTCSession.js:929)
    at FlowrouteClient.hangup (FlowrouteClient.js:250)
    at HTMLButtonElement.doHangup (dev.html?cache_invalidate=xxx:86)

I confirm the error

@Mazuh sorry I did not notice that you where having hard time to test on our servers.
We may need another server in staging.

@Mazuh is you can fix the problem with hangup @prinze77 could test the feature, I will simply test that there is not regression, we will most likely not support REFER in the near future.
Does this makes sense to you guys ?

Testing the feature

Looks like blind transfer, mute and unmute works perfect.
@jchavanton what you mean you will stop the support of REFER then how
I finished the first stable version UI https://github.com/prinze77/react-softphone
If we implement attended transfer and call queue of hold 3 calls i will use this lib in https://github.com/prinze77/react-softphone.

What I meant is that our provided server side infrastructure is not and that we will not support it soon enough to validate the new features on it.
However, we want to make sure existing features are still working well before merging.
Thanks for your testing, hopefully this feature will be in soon.
Thanks for sharing you UI


Unexpected escaping within code blocks

First of all: this is an amazing library! I love the anchor links auto-generated in headings. Fantastic 🎉
That said, there are some unexpected results when parsing code blocks. Here’s an example from Redux’s README:
  /**
-  * This is a reducer, a pure function with (state, action) => state signature.
+  * This is a reducer, a pure function with (state, action) => state signature.

 …

- store.subscribe(() => console.log(store.getState()))
+ store.subscribe(() => console.log(store.getState()))

This results in (caused mostly by the syntax highlighting library):

Expected behavior would be to not HTML escape anything within those code blocks.
I don’t know of a README with an actual lesser-than comparison (e.g. x < y -> x < y), but I’d suspect a similar behavior with that, too.
If desired, I could make an attempt at a PR (but be warned—I’m a C n00b).

I think I understand. Let me repeat your concern, phrased in a different way to see if I get it.
So, given this markdown source code:
```
a => b
```

You expect the following HTML output:

a => b

If this is correct then that is not going to work since > is a special character in HTML (as I'm sure you know.) I.e. if you instead consider this markdown:
```
<script>alert(document.cookies)</script>
```

You would get the HTML output:

This would be bad.

It seems to me that your end goal here is to process the code through a syntax highlighter. There may be better ways to go about that.
Option 1: you could use a syntax highlighter that works with HTML-escaped code, like highlight.js
Option 2: you could run the syntax highlighter on the markdown text, before you pass it on to markdown-wasm. However, if you do this, you won't be able to set NO_HTML_BLOCKS or NO_HTML_INLINE flags, which can be used to strengthen the safety of markdown-wasm, i.e. to avoid XSS issues.
Option 3: we could consider adding a feature to markdown-wasm where you set a flag, like for example CDATA_CODE_BLOCKS that, when set, outputs code blocks with verbatim code wrapped in <![CDATA[...]]>.

I've enabled highlight.js on the markdown-wasm website so you can try it out: https://rsms.me/markdown-wasm/#code-poetry
Try something like this and look at the HTML using your browser's web inspector:
```js
const f = () => {}
```

That’s a fair point about injection. You’re right that things between  do need to be escaped sometimes; I was more-or-less wondering if => specifically needed to be escaped. I was comparing the output to remark-html which leaves as-is, but you have a good point in that => should be essentially the same.
I agree that probably the responsibility lies in the highlighting library and not this parser. Maybe it’s just a fluke/bug remark-html doesn’t escape => in certain scenarios.
Thanks for responding!


Fix focus issue with multi-step quick input sample

This should fix the issue found in #164 where some focus stealing is causing subsequent inputs to hide immediately after being shown.

@Borvik Thanks for the PR, I still need to take a closer look at the cause of the issue. Ideally a fix wouldn't depend on setTimeout, that tends to make things less predictable.


Room validation

Each requested room should validate.
Alternative a fluent validation.

What exactly are we validating?

If hashIds that is requesting with does match with any of rooms and also if there is a room with this Id.

This should be done in middleware pipeline.

For that thought, we can implement a mapper that contains that conversion.
The point of the middleware pipeline will be that it runs before the request hits the handler. Then it will be no need to waste the resources.

How would this mapper work?

A combination of a validator with a mapper.

Alright, that looks very interesting!
Let's go with that 👍

Finished in #58


[filebeat][metricbeat] increase memory limit for goss tests

This commit increase the memory limit for Filebeat and Metricbeat goss
tests. This should help with the regular Error 137 during goss tests.
Indeed Error 137 seems to be related to OOM. As beats pods default
memory limit is really small (200Mb), it seems that injecting goss
inside the pods to run the test can reach the memory limit regularly.
Also remove the biggest test in the default config test examples to make
goss use less memory because we can't override default values for these
tests.

All Filebeat and Metricbeat tests are ✅


Mobs Arent Spawning

Ive been using the Starting help and been at it for over an hour and have jumped hundreds of times, ive tried both hard and normal difficulty and have even turned the game rule for mobspawning on. am i missing something or just really unlucky?

Assuming you've downloaded version 1.0.0, it it almost definitely luck. Make sure to wait until you stop falling and see the smoke particles before pressing the respawn button as that's part of the time that mobs can spawn. It was found that it takes an average of 400 jumps for a single mob, so the rates are still pretty low even with the buff.

Thanks Mate, i was comparing it to pinu's youtube video and they got a mob in 18 jumps. good to know that was really quick
i summoned a zombie since i thought it might have been broken and i found that after you get the shovel the spawn chances of a shovel go back to quite low. just want to confirm that thats not a bug, makes sense if thats how its supposed to work

Yeah, once you get your first shovel the rates return to normal and it starts up the second phase of snowing until you've placed 24 snow blocks.

you should start a subreddit or something so people can talk about rates and strategy outside of the issues page


test case "go install -v all" failures hard to diagnose

--- FAIL: TestServer (13.80s)
    --- FAIL: TestServer/unexpected_paths (0.78s)
        langserver_test.go:1308: exit status 1
[...]

This is sort of opaque.

Fixed via https://github.com/sourcegraph/go-langserver/pull/260


docker cleanup and GOPROXY removed

removed dep step
removed GOPROXY

Changes applied manually during the work on another problem.


Release 20

Changed

remove the use of slip in the all conditions met task
references to Legal advisers office become Legal Adviser's Office
the sponsored route is only applied to a project where a directive academy order has been issued
the new project form no longer asks 'Is the school joining a Sponsor trust?'

Added

New views at /projects/regional/in-progress and /projects/regional/completed to show projects NOT assigned to Regional caseworker services
New views at /projects/regional/:region/in-progress and /projects/regional/:region/completed to show projects NOT assigned to Regional caseworker services, filtered by region

Changes
Add a summary of the changes in this pull request
Checklist

[x] Attach this pull request to the appropriate card in Trello.
[x] Update the CHANGELOG.md if needed.

 Release 20


Fix anthropicApi visibility in AnthropicChatModel

Thank you for taking time to contribute this pull request!
You might have already read the [contributor guide][1], but as a reminder, please make sure to:

Sign the contributor license agreement ✅
Rebase your changes on the latest main branch and squash your commits ✅
Add/Update unit tests as needed ✅
Run a build and make sure all tests pass prior to submission ✅

I updated the AnthropicChatModel by changing the anthropicApi field from public to private.

Ensures consistency since all other major variables are private
Aligns with how other AI provider models handle their APIs
Verified that anthropicApi is only used internally, avoiding external issues

Thank you for reviewing this contribution.

thanks, merged in e12372171ba7f9d98d7c38cb50557689011ac03e


--upgrade-deps doesn't work with python 3.8

Describe the bug
--upgrade-deps doesn't work with python 3.8
To reproduce
Please provide an Short, Self Contained, Correct (Compilable), Example by creating a gist using devenv.nix, devenv.yaml, and optionally devenv.lock.
Make sure to include full logs and what you expected to happen.
Version
Paste the output of $ devenv version here or tell us if you're using flakes.

I think the flag was introduced in python > 3.8, adding a conditional should handle this.


Add options to customise datepicker popup with user defined class

This options will be extremely useful when there is a need to have 2 date pickers with different styles on one page (like different styles for date range pickers). That way it is possible to override bootstrap styles not globally, but only for specific page/usage.

Also add info for docs and add test cases.

@YuraDubensky Can you add the docs for this option and a test?

Yep, I will try to do so. Currently setuping git, as I don't typically work with it.

Have added test and updated docs.

Can you the class option to the $.fn.datepicker.defaults array and use $.noop as default value

Not sure if I did "rebase" in a correct way...

@YuraDubensky I think something went wrong during the rebase. Can you apply your changes to a new (up-to-date) branch and and open a new pr with that branch? Thanks!


progressive loading

@khaosdoctor, I'm thinking to add a progressive loader to mn-image, so, while image load, we can display the image blurred like medium/instragram

I think it'd be really cool to have this feature, but I think this should be a property, you know, nothing obligatory because sometimes we don't need previews.
The other option maybe is to add a fade in effect when loaded as the default behavior, this way it'd be possible to have a smoother animation.
But I have no idea on how to do either of them :cold_sweat:

I agree with "sometimes we don't need previews", but I think this just to circular loading
today, while image loading, the render is up to down, like gif below

and the problem is, we have a shadow below of image, is very ugly
my idea is make a progressive loading

so shadow dont be displayed without image front, and with a blur, have a good aspect
exactly like medium
https://jmperezperez.com/assets/images/posts/medium-progressive-loading.mp4
I have a little idea about progressive loading, If I dont mistake, has an attribute html to make this, or I'm crazy, rs, but I believe have see it a long time ago.
and of course, we have a class javascript where we can listen for the load event, etc

you guess stranger add the progressive loading / blurred by default, without attribute?

Yes a bit, because sometimes blurred loading just don't fit with the site design, it fits well in medium and other stuff like instagram, but imagine a newspaper website like Reuters. I don't think it would be visually pretty.
However we can do like a progressive attribute, to set if this behavior will take place, otherwise we can display a preloader (can be a custom preloader chosen by the user) and when the loading is done instead of just showing the image we have can add a fade in effect

Fade in is aways pretty

humm, I understood. Set a progressive attribute looks be a better approach.
as design, I'm thinking much about that, and I wish/believe in that actually

each component can have a minimalist design
release modules to set theme or document how overwrite and use a custom identity

the blur, can be part of component, once time that is part of minimalist design of that component, but if user, or us, do themes for that, we can disable blur (is just a css 3 filter)
the magic really is add an option to progressive load, from an attribute used, I like too, and visual is just css, by having a default, and can be overwited
you agree?

as to fade, I think it's worth a test yes, it's the kind of thing that only feeling, experiencing can reach a opnion which of the two is better, or we support both

I'm looking for progressive, and try understand this article https://blog.codinghorror.com/progressive-image-rendering/

There's nothing much about minimalist design in this component because it is just an image tag, it'll show the user the image he/she described. I believe the usability for the programmer should be the best case in this project

yep, the usability for programmer is a primary specification of each component, but, the design is important too, is a premise for this project, have a minimalis design, where there can be overwrited in a theme, or just in sass

Yes, but how we will implement a design onto an image? Components like inputs and such have ways of implementing the design and changing the appearance but images are just images, unless we put a border or something

the design at moment is
mn-image

border-radius
two shadows to img, one very clean bottom, and one to simulate a border thin, useful to imgs with white color predominant

a:hover mn-image // only in desktop

change scale, and 3d perspective
change the size of drop shadow

and finally, the loading
mn-image.loading

img blurred
a circular loading
no drop-shadow

a preview of all

Pretty cool man! Just on theloading bit, I think it shouldn't be circular preloader, but a bar instead, just a simple loading bar in the middle

loading bar have a problem, they generate insatisfaction, because that give a precise feedback (10%, 25%, 90%, "travou")
now circular bar, is for ansious people, imagine a circular bar with animation a little fast, this generate a psicological satisfaction, the people fell more fast

Hum, yeah didn't think about it, maybe you're kinda right. So we can just put something linear to match the style like an endless preloader or an animation like these:
http://preloaders.net/en/horizontal (example only) or
http://cssload.net/en/horizontal-bars
Just to give a clean look


Update all webdrivers

Need to make sure all the web drivers for all operating systems are up to date and those version are clearly documented in the Readme by operating system.

Once this ticket and #66 are complete (and tested with sentinel.example), the drivers can be removed from sentinel.example.


release for dashing

[x] Add industrial_ci GitHub Actions settings (#2, 8ab8b2afabcd79e97db9d59791612a38ad1ed063)
[x] Rename Package (c72f606f2f2d3f7e6ebef3eb25dc91726f7240d7, 9177c7a7aab30aa3b83206b636a59752131e612a)
[x] Add omni-directional mode (a9ab09d448af60acfef85451c1b6f56b79532bf4)
[x] Edit package.xml (757f9c7d0987669ec99375e581f3a37e5c1e9586)
[x] Create release (#12)

https://github.com/Tiryoh/omni_turtlesim_ros2/releases/tag/2.0.0


README Dependencies

List all dependencies is README.

Hope you're making good progress on this. I'm currently wondering how I could use angular-hal without having to install content-type and/or how to add content-type lib without using npm nor bower.

I advise you to use bower or npm. Best would be a system like webpack or browserify.
You can however download this file: https://github.com/maennchen/content-type/blob/master/index.js
Then you can include it via a script tag directly in your html. (Before angular-hal)

Ah right, I see the stuff to make it work
if(typeof exports !== 'undefined') {
  exports.format = format
  exports.parse = parse
} else {
  window.contentType = {
    format: format,
    parse: parse,
  };
}

Thank you, will take a look back at browserify.

Regarding README again, looks like there is another modification to make (or something else went wrong on my side).
$rootScope.foo = apiRoot.$request().$get('foo') can't really work since it returns:
d {}
    $$state: Object
    error: function (a)
    success: function (a)

And doing this:
apiRoot.$request().$get('foo').success(function() {
    // arguments: [undefined, undefined, undefined, Object]
});

And returned object at arguments[3]:
Object
    data: null
    headers: Object
    method: "GET"
    paramSerializer: function (a)
    transformRequest: Array[1]
    transformResponse: Array[1]
    url: "http://localhost:8080/api-1.0/foo"

@skol-pro: That doesn't belong to this issue. If the problem persists, open a new one.

@maennchen Ok thank you. I switched to the latest stable 1.x version.


Fix ClassNotFoundException with spaces in TIKA_PATH

Tika fails to start when TIKA_PATH contains spaces. A common case would be applications storing the tika jar in Application Support on macOS – iscc-cli is an example for this:
https://github.com/iscc/iscc-cli/blob/ad466c3/iscc_cli/__init__.py#L8-L10
Tika server log will contain this (please excuse the german content, should be clear anyway):
Fehler: Hauptklasse Support.iscc-cli.tika-server.jar konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: Support.iscc-cli.tika-server.jar
The TIKA_PATH set by iscc-cli: /Users/strayer/Library/Application Support/iscc-cli

Coverage remained the same at 47.573% when pulling 58199a5f29b39ed200354afaf2bf8d774755cb2f on Strayer:patch-1 into 178a33b9338cfb0f29f3c12062e92bd26221c9e4 on chrismattmann:master.

thanks @Strayer this looks good to me!


Geolake

Get this error when the request is searching a Canadian zipcode:
Traceback (most recent call last):
    loc = geolocator.geocode("H1W 0B4")
  File "C:\Python27\lib\site-packages\geopy\geocoders\geolake.py", line 153, in geocode
    self._call_geocoder(url, timeout=timeout), exactly_one
  File "C:\Python27\lib\site-packages\geopy\geocoders\geolake.py", line 166, in _parse_json
    address = ", ".join([place['city'], place['countryCode']])
KeyError: 'city'

Found that GeoLake API: https://api.geolake.com/v1/geocode?api_key=my_key&zipcode=H1W 0B4 return no city atribute, here is the sample response:
{"success":true,"latitude":45.544952,"longitude":-73.546694,"accuracyType":"zipcode","typoCorrected":false,"place":{"countryCode":"CA","countryName":"Canada","currencyCode":"CAD","tld":".ca","languages":"en-CA,fr-CA,iu"}}
So in this case instead of having an error, the geopy library should return None or empty string!
Fix that issue by modifying line 167 of geolake.py by:
address = ", ".join([place.get('city',''), place.get('countryCode','')])

Good catch! Would you like to open a PR with the fix?


Has anyone tried running LIME on an LSTM network for text classification?

LIME is model-agnostic, it doesn't really care what the model is. I have used LIME to explain the predictions of multiple LSTMs for text classification with no problem. If you have any issues with it, please be more specific.


SapiEmitter should emit also duplicate headers

What steps will reproduce the problem?
$response
    ->withHeader('X-Test', '1')
    ->withAddedHeader('X-Test', '2')
    ->withAddedHeader('X-Test', '3; 3.5')
    ->withAddedHeader('X-Test', '4');
$emitter->emit($response);

What is the expected result?
Headers:
X-Test: 1
X-Test: 2
X-Test: 3; 3.5
X-Test: 4

What do you get instead?
Headers:
X-Test: 4

In addition, we should decide whether to use header_remove() before sending ResponseInterface headers.

In addition, we should decide whether to use header_remove() before sending ResponseInterface headers.

I think we should use it because we should emit what's in response object, nothing more.

I am talking about cases where the user in his code (or in the extension code) used header() instead of $ response-> withHeader()
Emitter will emit only Response instance headers

Yes. Correct.

Fixed by #175


Two Months side by side

Is it possible to create a calendar with 14 columns? e.g. two months side by side?

@roarapps yes

Have you looked at the Common questions section in the documentation?
If this fixes your issue then you can close this one :]

Yes thanks, was going through the documentation trying to figure it out 👍

@roarapps nice :]
I think the first one should solve the problem

Also, if you like the library. Dont forget to leave a star rating! It will be much appreciated.
If you have any further questions, you can open a new issue request.


MultiZarrToZarr for non-spatial HDF5 files

My dataset is a bit different than the usual use case, I believe. It is a number of HDF5 files structured as e.g.
snap_099.0.hdf5
snap_099.1.hdf5
snap_099.2.hdf5

where
$ h5ls -r snap_099.0.hdf5
/PartType0               Group
/PartType0/Coordinates   Dataset {1728468, 3}
/PartType0/Density       Dataset {1728468}

$ h5ls -r snap_099.1.hdf5
/PartType0               Group
/PartType0/Coordinates   Dataset {1670262, 3}
/PartType0/Density       Dataset {1670262}

$ h5ls -r snap_099.2.hdf5
/PartType0               Group
/PartType0/Coordinates   Dataset {1671632, 3}
/PartType0/Density       Dataset {1671632}

In this example the three files are simply splitting up the two large datasets for convenience. The complete datasets would have shapes and are loadable as:
Coordinates = np.zeros((5070362,3), dtype='float64')
Density = np.zeros(5070362, dtype='float32')

offset = 0
for i in range(3):
    with h5py.File('snap_099.%d.hdf5' % i, 'r') as f:
        len = f['PartType0/Coordinates'].shape[0]
        Coordinates[offset:offset+len] = f['PartType0/Coordinates'][()]
        Density[offset:offset+len] = f['PartType0/Density'][()]
    offset += len

Coordinates.shape = [5070362, 3]
Density.shape = [5070362]

I have gotten Kerchunk working with a zarr load:
h5chunks = SingleHdf5ToZarr('snap_099.0.hdf5', '', inline_threshold=300)
with open('snap_099.0.json','wb') as f:
    f.write(ujson.dumps(h5chunks.translate()).encode())

snapshot = zarr.load(fsspec.filesystem("reference", fo="snap_099.0.hdf5.json").get_mapper(""))
snapshot['PartType0/Density']
Out[9]:
array([2.1692520e-06, 2.0380169e-06, 1.7883651e-06, ..., 3.3942027e-07,
       1.8411392e-07, 4.2490501e-07], dtype=float32)

(very cool!)
But I do not see how/if MultiZarrToZarr can be applied in this case. Does any of the existing functionality of coo_map apply?

In principle,  you can stitch together your datasets into any pattern that makes sense. In this case, that appears to be "axis 0". However, this is not a netCDF-style layout, I think, so kerchunk won't be able to automatically know how to lay out your chunks, and MutiZarrToZarr probably can't do the right thing.
There is an option in coo_map to get the concatenation coordinate(s) from an arbitrary function which is passed all the details of the chunk being considered, including filename and the dataset itself so that you can extract values or attributes. Maybe it can be made to work
Alternatively, the references' structure is pretty simple. In the JSON of each file, you will have keys like "/PartType0/Coordinates/i.0", and the three of these from the three datasets would map to "/PartType0/Coordinates/i.0", "/PartType0/Coordinates/(x+i).0", "/PartType0/Coordinates/(x+y+i).0" where x is the number of chunks in the first dataset and y is the number of chunks in the second. You would also need to update the .zarray to the total shape of the final output.
All of this assumes that the chunks in the three datasets are compatible: all the same shape and (first the first two files) complete. Unfortunately, zarr is not able to loosen this restriction yet ( https://github.com/zarr-developers/zeps/blob/main/draft/ZEP0003.md ).

Yes "axis 0 stacking" is essentially what I am after.
Just to clarify your large two paragraphs: when you say 'dataset' do you mean 'file' (of which there are 3 in my example) or 'dataset' (of which there are 2: Coordinates and Density)?
Does the structure above satisfy the requirements you describe? In my case, in a given file, every dataset has exactly the same axis 0 size. But this size differs from file to file.
I would be happy if, on the zarr side, there were "no chunks". But, am I understanding correctly that the whole Kerchunk concept requires that a dataset from each original HDF5 file be represented as exactly one chunk of a zarr dataset? (Thus my use case would need to wait for ZEP3?)

that the whole Kerchunk concept requires that a dataset from each original HDF5 file be represented as exactly one chunk of a zarr dataset?

No, in most cases and certainly for HDF, each native chunk of the original data becomes one chunk in the zarr virtual dataset. It is this internal chunk size that matters. Zarr will be able to tell you what this chunking is for each of the kerchunked reference sets.

In my case, all the original HDF5 datasets are always unchunked.

Oh OK - so that says you have chunks that are the same size as the whole array, and so mismatched between the files. Indeed, we cannot combine these without ZEP003.

Yes I see, many thanks for the clarifications! We will be looking forward to this in the future for sure.


Duplicate code exists for the default provider and legacy APIs

Hi, I have a question.
The provider mechanism is added to OpenSSL 3.0. Is the algorithm implementation in the default provider new code or reuses the previous algorithm implementation? Why is the code duplicate with the legacy API?

Why is the code duplicate with the legacy API?

Backward compatibility.  See https://www.openssl.org/blog/blog/2019/02/13/FIPS-update/, where we say, among others:

Of course support will be maintained for existing APIs so applications don’t need to use the new APIs if they don’t want to.

We do and continue to deprecate the old APIs, which means they will be removed at some point in the future.  However, this does allow existing applications to transition to the new OpenSSL without having to be rewritten too much in one go.

We're reusing old code.  There is no duplication, the default provider is linked with libcrypto.

@levitte

We do and continue to deprecate the old APIs, which means they will be removed at some point in the future. However, this does allow existing applications to transition to the new OpenSSL without having to be rewritten too much in one go.

Can I understand that the old APIs are retained at the current stage, and the old and new sets of code exist at the same time during the development of new provider code?
Will the old APIs be completely removed in a later version?

Can I understand that the old APIs are retained at the current stage, and the old and new sets of code exist at the same time during the development of new provider code?

Yes, the old APIs are retained and exist at the same time as the newer EVP alternatives. In fact this has been the case for a long time (way before OpenSSL 3.0). The provider code is mainly a restructuring of how the EVP APIs work. There are some new EVP functions, but a lot of the API functions existed even in older versions of OpenSSL.

Will the old APIs be completely removed in a later version?

Yes. They are all deprecated with an intention that they will be eventually removed.

I took the question to be why is the same code in default and FIPS providers.  If I'm correct, it wasn't answered.

We're reusing old code. There is no duplication, the default provider is linked with libcrypto.

During reconstruction, whether some functions are duplicated?
At least the alpha phase

@richsalz

I took the question to be why is the same code in default and FIPS providers. If I'm correct, it wasn't answered.

I want to understand the relationship between the default provider and legacy APIs because they are build_in.

@mattcaswell

Yes. They are all deprecated with an intention that they will be eventually removed.

I can take this as a change point of OpenSSL 3.0, which means that users need to replace all old APIs.

I can take this as a change point of OpenSSL 3.0, which means that users need to replace all old APIs.

Ideally, yes - you should replace all use of the old APIs if possible.

I can take this as a change point of OpenSSL 3.0, which means that users need to replace all old APIs.

Ideally, yes - you should replace all use of the old APIs if possible.

Does it not exist or not allow external use? I understand that they are used to encapsulate new Envision Video Platform interfaces. Is there any way I can keep using them?

Does it not exist or not allow external use?

The old APIs still exist and you may continue to use them. It is recommended to replace them because they will eventually be removed - but you don't have to. It will be some while before a release that actually removes them comes along. If you do use the deprecated APIs then you may see compilation warnings saying that the functions have been deprecated.

I believe all the questions were answered. Closing the issue.


[Feature Request] Add support for nested folders in library

I tend to organize manga based on artist / writer and other tags, so my folder structure looks like this:
Library

Artist

Ken Akamatsu

Love Hina
A.I. Love You
Shimoku Kio
Genshiken
Genshiken Nidaime
Mags
NewType
[Range of folders with timestamps for monthly releases]
Other
Sort
[Random assortment of stuff, including pdfs]
etc.

So I would like Mango to be able to scan the subfolders of its library, and present it as subfolders / containers / whatever you wanna call it. This is actually an issue I have with Komga, as it can read subfolders, but treats the last containing folder as the "Series" for its contents. This isnt bad, but with no metadata support it makes it hard to use for me as it combines all these last folder names into one list that is displayed to the end user, so you would see stuff like this:

Love Hina
A.I. Love You
Genshiken
Genshiken Nidaime
[NewType Timestamp]
[NewType Timestamp]
[Other Mag Timestamp]
[Other Other Mag Timestamp]
[Random Book]
[Random Book]

Not sure why github made two of these issues. Closing.


Add dependency on net-http gem

As described in https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/, Ruby
3.0.0 promoted net-http from stdlib. Adding this as a dependency avoids
"already initialized constant errors" if net-imap or some other gem is
included. See https://github.com/ruby/net-imap/issues/16#issuecomment-803086765 for
more details.

Could we get this one merge please.
Thank you @stanhu @JanDintel @iMacTia @olleolleolle @tricknotes

Thanks @stanhu for bringing this to our attention and apologies for the delay in getting back! For some reason this repo was not on my watchlist, so I was only notified thanks to @rizalmuthi-ap comment 😅
I had a quick look and I'm not sure on how to progress with this, because it seems to me as if it's impossible to make this work "out-of-the-box" without removing support for Ruby 2.5:

If we simply add the dependency to the gemspec, it will work just fine, but it will break Ruby 2.5
If we add it as a development dependency, I believe it will "break" again on production deployments?
If we do nothing people encountering this issue

Since I'd like to keep supporting Ruby 2.5, it's hard to pick one or the other option.
To add more on that, I understand this issue only affects Ruby 3.0 users, and to be honest I'm also surprised we have this issue in the first place 🤔. Looking at the linked comment:

When the faraday-net_http gem is required, it then requires net/http.
Then the stdlib version of net/http is loaded, since bundler doesn't know net-http is a gem dependency, so it doesn't add the gemified version to to the $LOAD_PATH.

I'm wonderig why that's the case? Why would the stdlib version of the library be loaded when you're running Ruby 3? Shouldn't ruby be smart enough to know that for versions <3 it needs to load the stdlib one, and for version 3+ the default gem? Why would they push this responsibility to the developer? It doesn't make sense honestly.
Looking at how default gems work I'm surprised we're having this issue at all and I suspect it might be due to the fact that net-imap is explicitly added to the Gemfile. That should not be necessary from what I understand, because that's also a default gem? Why would that be necessary?
In short: I believe this is outside of the responsibility of this library and we should delegate to Ruby the selection of the right library. If the developer needs to add net-imap for whatever reason, then they can simply add net-http as well to fix the warnings.
I'd prefer not to drop Ruby 2.5 compatibility to solve what seems like an unlikely scenario.
Sorry for the long comment, most of this was new to me so I might have misunderstood something 😄. Feel free to point that out if that's the case

I'm wonderig why that's the case? Why would the stdlib version of the library be loaded when you're running Ruby 3? Shouldn't ruby be smart enough to know that for versions <3 it needs to load the stdlib one, and for version 3+ the default gem? Why would they push this responsibility to the developer? It doesn't make sense honestly.

From what I understand the issue does not occur on Ruby 3 (where the code is loaded from the net-http gem, whether it's implicit or not) but on earlier versions, and the issue occurs when the project explicitly depends on the net-protocol gem (either directly or through another dependency) and faraday-net_http without also explicitly depending on net-http, in which case faraday-net_http will load the net/http code and thus the net/protocol code from Ruby's stdlib and also load the net-protocol gem.
I'm not sure where the responsibility stands here, I'd say if net-protocol is a default gem, maybe it should not get explicitly required by the project (or its dependencies) in the first place. Explicitly depending on net-http as in this PR would also solve the issue but at the cost of Ruby 2.5 support.

The issue here is that mail_room has explicitly added net-imap to their gemspec, impacting the default behaviour of using the internal stdlib in older ruby versions and breaking compatibility with Ruby 2.5.
I don't think explicitly adding the dependency on net-http is a good idea here, first because we'd drop compatibility with Ruby 2.5, and second because we might cause similar issues upstream for other gems. There's also the fact that Faraday is a development_dependency for mail_room.
What I think should happen instead, is any of the following:

mail_room should remove net-imap from their gemspec
mail_room should add net-http as a development_dependency
Ruby should be smart enough to load the gemified version when available, rather than the stdlib 🤔 (still surprised this is not the case already)

Note that in Mastodon we had a similar issue with a dependency pulling net-ftp, and faraday-net_http using the stdlib net/http. This has been resolved for us by our dependency dropping net-ftp.

I mean, if it wasn't that simple we wouldn't have this double-load issue would we 😅 .
I guess my wish would be that Ruby would be smart enough to understand that if I have a gem specified in my Gemfile or any of my dependencies, it should load that one. If there's no gem specified, then the stdlib/standard gem is fine.
Right now it's a mess because it load one AND the other under certain circumstances


How to exclude package.json files from appearing in NPM scripts explorer (ref: npm.scriptExplorerExclude or npm.exclude)

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.69.0
OS Version: Windows_NT x64 10.0.19044

Background:

NO ACTION NEEDED AT THIS TIME
I am only logging this ticket because the documentation is confusing for my desired behavior
I've struggled to perform the desired behavior in the past and believe this is a sufficient location for my experience and steps to resolve

Solution
Example directory structure:
* .gen
  * temp
    * package.json
* package.json

Desired Behavior:

I have multiple package.json files in my workspace
One of them is not used regularly, or in my current use case it's a temporary set of files (i.e. generator code that creates new solutions and creates new package.json files)
Using the example directory structure, I want to exclude .gen/temp/package.json (or any package.json below .gen)

Settings change

Edit .vscode/settings.json (or create it if it doesn't exist)
Add "npm.exclude": "**/.gen/**"

Screenshots
Before adding settings.json entry

After adding settings.json entry

Research References
I did some Google searches on the query vscode settings.json npm.scriptExplorerExclude and found

https://code.visualstudio.com/docs/getstarted/settings
https://stackoverflow.com/questions/50219684/visual-studio-code-exclude-npm-scripts-in-explorer

I also did some searches in this repo (microsoft/vscode) with query npm.scriptExplorerExclude:

After typing up this response, I also ran the query npm.exclude and found better results although none were exactly what I typed up.

it looks like what you described is working? can you pls clarify what you expect vs what is happening?

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Integrate Casdoor with Spring Security OAuth 2

Env:

springboot 1.5.17.RELEASE

@Abingcbc plz take a look as next step


cURL error 60: SSL certificate problem: certificate has expired

This is a duplicate of https://github.com/platformsh/platformsh-cli/issues/1079 but with new insights.
TL;DR: please enable non-ECDHE ciphers on api.platform.sh
While helping ppl migrate from SymfonyCloud to Platform.sh, I saw MANY ppl having this issue, "certificate has expired".
This happens on both Windows and Mac, and the reason is an outdated openssl lib.
Ppl using SymfonyCloud don't have this issue because the symfony binary embeds it's own SSL routines.
But ppl that use the platform binary use the system's openssl, and :boom:
While we might dream of telling ppl to upgrade, it's out of reach from a DX perspective.
The current situation gives a terrible experience to those ppl.
I dig a bit more to understand the root cause and here it is:
First, I reproduced the issue on a wsl on Windows 10.
Then, I realized that composer doesn't have the issue, which means that php is able to connect to both packagist.org and github.com.
Here is why: api.platform.sh supports only ECDHE ciphers, while packagist and github both also allow non-ECDHE ciphers. See below for details.
The solution is then simple: the TLS endpoint serving api.platform.sh should be reconfigured to allow the same ciphers as github.
A workaround in the platform client could be to use openssl_get_cipher_methods() to disable SSL verification if php doesn't support ECDHE ciphers. But it'd be a shame to go this way.
$> nmap --script ssl-enum-ciphers -p 443 api.platform.sh
[...]
]| ssl-enum-ciphers:
|   TLSv1.2:
|     ciphers:
|       TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (ecdh_x25519) - A
|     compressors:
|       NULL
|     cipher preference: server
|_  least strength: A

$> nmap --script ssl-enum-ciphers -p 443 api.github.com
[...]
]| ssl-enum-ciphers:
|   TLSv1.2:
|     ciphers:
|       TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (ecdh_x25519) - A
|       TLS_RSA_WITH_AES_128_GCM_SHA256 (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_GCM_SHA384 (rsa 2048) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA256 (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA256 (rsa 2048) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
|     compressors:
|       NULL
|     cipher preference: server
|_  least strength: A

It sounds like a CA bundle problem not a cipher problem, and the difference may be that we use Let's Encrypt certificates (who did have a root expiring last year) widely, and presumably packagist and GitHub don't?
We could probably be more insistent about the packaged CA bundle on certain systems.

Actually can you please run some api command with debug output on, eg
platform pro:info -vvv

It should (with the latest version) print composer's debug output regarding CA bundle paths

This is not sufficiently documented yet in the CLI, but like in Composer, you can provide a different CA bundle path with any of these config options:
https://github.com/composer/ca-bundle/blob/4c679186f2aca4ab6a0f1b0b9cf9252decb44d0b/src/CaBundle.php#L74-L83

You can trust me on this one, this is not related to the cabundle. I spent enough hours on it 😉

About Let's encrypt, it's unrelated, here is the proof: the certificate chain for packagist.org also uses let's encrypt, and if you compare it with api.platform.sh's one, you'll see both certificates are exactly the same. Yet, packagist.org is reachable with those php binaries while api.platforh.sh is not. I also confirm that I already tried the various cabundles (system and composer/ca-bundle), this makes no difference (as should be obivous per the previous sentence).
For reference, I ran the nmap command on symfony.com, aka on certificates that YOU (PSH) generate, and they don't have the issue! (it'd be great to remove the C-level TLSv1 ciphers btw.)
nmap --script ssl-enum-ciphers -p 443 symfony.com
[...]
| ssl-enum-ciphers:
|   TLSv1.0:
|     ciphers:
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (ecdh_x25519) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (ecdh_x25519) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_3DES_EDE_CBC_SHA (rsa 2048) - C
|     compressors:
|       NULL
|     cipher preference: server
|     warnings:
|       64-bit block cipher 3DES vulnerable to SWEET32 attack
|   TLSv1.1:
|     ciphers:
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (ecdh_x25519) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (ecdh_x25519) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
|     compressors:
|       NULL
|     cipher preference: server
|   TLSv1.2:
|     ciphers:
|       TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256-draft (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256-draft (ecdh_x25519) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA256 (rsa 2048) - A
|       TLS_RSA_WITH_AES_128_GCM_SHA256 (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA256 (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_GCM_SHA384 (rsa 2048) - A
|     compressors:
|       NULL
|     cipher preference: client
|_  least strength: C

For reference, I'm running various binaries from https://windows.php.net/downloads/releases/archives/ in WSL.
With those binaries, forcing the fallback cert.pem from composer/ca-bundle and using fopen():

for api.platform.sh: works around the issue on PHP 5.6.11 but fails on PHP 5.6.10
for repo.packagist.org: works around the issue on PHP 5.6.11 works too on PHP 5.6.10

Using the native php binary provided by my wsl, which is based on Ubuntu trusty, PHP 5.5.9:

using fopen(): works for both api.platform.sh and repo.packagist.org, using either the system or the fallback ca-bundles

The only difference I can spot between api.platform.sh and repo.packagist.org is the list of ciphers.
My conclusion is thus that with the current cipher list, both the ca-bundle and the version of php/openssl play a role.
And that with packagist's cipher list (and github's), the ca-bundle and the version of php/openssl don't play a role anymore - things always work.

For reference also, here is the script I played with (commenting/uncommenting line 4/7).
<?php

$url = 'https://api.platform.sh';
$url = 'https://repo.packagist.org';

$otherLocations = [
    __DIR__.'/Downloads/composer/vendor/composer/ca-bundle/res/cacert.pem',
    '/etc/pki/tls/certs/ca-bundle.crt', // Fedora, RHEL, CentOS (ca-certificates package)
    '/etc/ssl/certs/ca-certificates.crt', // Debian, Ubuntu, Gentoo, Arch Linux (ca-certificates package)
    '/etc/ssl/ca-bundle.pem', // SUSE, openSUSE (ca-certificates package)
    '/usr/local/share/certs/ca-root-nss.crt', // FreeBSD (ca_root_nss_package)
    '/usr/ssl/certs/ca-bundle.crt', // Cygwin
    '/opt/local/share/curl/curl-ca-bundle.crt', // OS X macports, curl-ca-bundle package
    '/usr/local/share/curl/curl-ca-bundle.crt', // Default cURL CA bunde path (without --with-ca-bundle option)
    '/usr/share/ssl/certs/ca-bundle.crt', // Really old RedHat?
    '/etc/ssl/cert.pem', // OpenBSD
    '/usr/local/etc/ssl/cert.pem', // FreeBSD 10.x
    '/usr/local/etc/openssl/cert.pem', // OS X homebrew, openssl package
<EMAIL_ADDRESS>// OS X homebrew<EMAIL_ADDRESS>package
];

foreach ($otherLocations as $cert) {
    if (file_exists($cert)) {
        break;
    }
}

$h = fopen($url, 'r', false, $c = stream_context_create([
    'ssl' => [
        'SNI_enabled' => true,
        'capture_peer_cert_chain' => true,
        'capture_session_meta' => true,
        'verify_peer' => true,
        'cafile' => $cert,
    ],
]));

print_r(stream_context_get_options($c));
print_r(stream_get_meta_data($h));

$h = curl_init();
curl_setopt($h, CURLOPT_URL, $url);
curl_setopt($h, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($h, CURLOPT_CAINFO, $cert);
curl_exec($h);

Looks like I was wrong about the cipher lists.
There is another difference, which is that packagist is using the "alternate chain" from Let'sencrypt while api.platform.sh is using the default chain.
See eg https://community.letsencrypt.org/t/long-default-and-short-alternate-certificate-chains-explained/162526 for some details about the difference.
The solution could then be to use the alt chain for api.platform.sh also.

Using the alternate chain from LE definitely helps!
Now, curl is always able to connect to the host \o/
There is still a situation that doesn't work: on older versions of PHP (before June 2015), disabling curl (aka using fopen() ) makes the call to stg fail, while packagist works (with latest ca-bundle.)

fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Could be worth trying the ciphers idea now, since that's the only diff that remains.


Running BNN on a PYNQ-Z2 board

Hi,
I have run BNN-PYNQ on a PYNQ-Z2 board. But there is an error:
Complete output from command python setup.py egg_info:
Only supported on a Pynq Z1 Board
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-7068xha9-build/
What should I do ?
Thanks.

I solved it.
Modify the "Zynq-Z1" to "Zynq-Z2" in line 39 of setup.py
or set the environment variable "BOARD"  to "Zynq-Z1"


DocsArchive-<IP_ADDRESS>Auto archive content

Auto archive content from https://github.com/VSC-Service-Account/docs-archive-test-source.git

Docs Build status updates of commit 112437d:
:clock10: Pending: waiting for processors (22 builds ahead of you)
:warning: Docs Build is busy, currently there are 22 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 112437d:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-ServiceAccountCannotAccessRepository] Your repository https://github.com/VSC-Service-Account/docs-archive-test-target has enabled Docs Build service account. It seems that at least one of the accounts, e2ebd3, does not have Read permission to the repo. Please ask your repo admin to grant correct permission to service accounts (refer to this document: https://review.docs.microsoft.com/en-us/engineering/projects/ops/engdocs/how-to-grant-service-account-permission-in-your-repository?branch=master) and then retry the build.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Convert line paths to curves

Initial tests to smooth the strokes captured by raphael-sketchpad at runtime proved to be very slow and were abandoned.

https://github.com/Jam3/chaikin-smooth/blob/master/index.js
https://github.com/aaronland/fingerprint/blob/main/www/javascript/raphael.sketchpad.js#L725-L746

See also:

https://francoisromain.medium.com/smooth-a-svg-path-with-cubic-bezier-curves-e37b49d46c74
https://medium.com/@bragg/cubic-bezier-curves-with-svg-paths-a326bb09616f

https://github.com/jimnewpower/line-smoothing
https://medium.com/phcacique/chaikins-algorithm-for-drawing-curves-7d19b2e0e209

Investigate https://github.com/steveruizok/perfect-freehand

Investigate: https://github.com/ajstarks/giocanvas/tree/master/bezsketch

https://www.sitepoint.com/html5-svg-quadratic-curves/
https://www.sitepoint.com/html5-svg-cubic-curves/
https://svg-path-visualizer.netlify.app/bezier-curve/
https://www.summbit.com/blog/bezier-curve-guide/

https://github.com/volkerp/fitCurves

http://mourner.github.io/simplify-js/

https://www.nan.fyi/svg-paths


Fix text encoding in glTF exporter

Fixes #7030
Before change:

After change:

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

cherry picked to main_v1


Provisioning error: [reconcile] - node without reachable Kubernetes API endpoint in the cluster

Rancher Server Setup

Rancher version: v2.6-head 3df76e4
Installation option (Docker install/Helm Chart):

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): RKE1

Proxy/Cert Details:

Information about the Cluster

Kubernetes version: v1.23.4
Cluster Type (Local/Downstream):

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):

AWS node driver cluster
User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)

If custom, define the set of permissions:
Standard user

Describe the bug

Cluster is successfully created but there are errors in the provisioning log stating there are nodes without reachable Kubernetes API endpoint in the cluster

[ERROR] [reconcile] host [<address>] is a control plane node without reachable Kubernetes API endpoint in the cluster
[INFO ] Successfully Deployed local admin kubeconfig at [management-state/rke/rke-1337472248/kube_config_cluster.yml]
[ERROR] [reconcile] host [<address>] is a control plane node without reachable Kubernetes API endpoint in the cluster
[INFO ] Successfully Deployed local admin kubeconfig at [management-state/rke/rke-1337472248/kube_config_cluster.yml]
[ERROR] [reconcile] host [<address>] is a control plane node without reachable Kubernetes API endpoint in the cluster
[ERROR] [reconcile] no control plane node with reachable Kubernetes API endpoint in the cluster found

Could this error be turned into a warning or maybe increase the timeout for this error to be triggered?
To Reproduce

Create RKE aws node driver cluster

Result

Provisioning is successful but with errors

Expected Result

There should be no errors in the log.

related https://github.com/rancher/rancher/issues/36830

I see the same error when I update the cluster config


Reporting a tier based on the rank of the gpu doesn't seem like the best idea

Why use the rank of the GPUs, rather than an actual benchmark score ? With that technique, if you have two GPUs with identical performance, but the separation between two tiers falls between the two, one will have a lower tier, despite having the same performance.
I imagine, the rank is a quick and easy way to get a more or less viable tier, but I would envision something more accurate where you could say "I want tier 2 to be all GPUS with performance above an Nvidia GTX 1050, tier 3 to be any GPU with performance above GTX 1080", etc. Of course, this could kinda work with the rank system

Thanks for your comment. I think your described approach would work, I just haven't found the need for that kind of detail yet. Feel free to open a PR with your proposed changes and we can discuss it then. I would like to avoid increasing the GZIP size of the bundle if possible.

One of the problems with the benchmarks in that the scores change (as they are relative) see: https://github.com/TimvanScherpenzeel/detect-gpu/commit/0e796a69a66aaf9aa3573c341c2c9516c0cf881c#diff-75b92df9186609196c5e0f2a027f9021

@SBRK in #29 we are looking into using the benchmark FPS (with screen resolution taken into account). If you would like you can join the conversation, perhaps there are things we haven't taken into account yet.

Included in release 2.0.0: https://www.npmjs.com/package/detect-gpu/v/2.0.0
Thanks for your input 👍


Failed to compute args for tool: "cpptools-lmtool-configuration"

Type: Bug
I type "#cpp" and it gives "Failed to compute args for tool: "cpptools-lmtool-configuration". It only repros with certain workspace folders (I don't know what triggers it).

The GitHub Copilot Chat logging window says "[error] Request Failed: 400 {"error":{"message":"prompt token limit exceeded","param":"","code":"","type":""}}" before the previously mentioned failure, so it seems like that's the root cause.

@benmcmorran The bug still repros with the latest C/C++ and GitHub Copilot extension:

The GitHub Copilot Chat logging window says "[error] Request Failed: 400 {"error":{"message":"prompt token limit exceeded","param":"","code":"","type":""}}" before the previously mentioned failure, so it seems like that's the root cause.

Is this in an existing chat conversation with a lot of history? It's possible we're not counting tokens correctly for the tool call

@roblourens Yes, it's an existing chat conversation with a lot of history.

I just hit this error in our TypeScript repo, so it's unrelated to the #cpp mentioned in the original issue (although that might be a different repro).
2024-10-03 13:04:05.722 [error] Request Failed: 400 {"error":{"message":"prompt token count of 19378 exceeds the limit of 12288","param":"","code":"","type":""}}
2024-10-03 13:04:05.724 [error] Error: Failed to compute args for tool: "cpptools-lmtool-configuration"

It worked when I asked it to try again.

Have you seen this again? I think it should be gone now

We saw this once in #websearch and haven't seen it since. I'll mark this as verified.


[Enhancement] skip max_continuous_version check when tablet isn't in running state

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #19575
Problem Summary(Required) ：

Currently, we will check the max_continuous_version between version_graph and rs_meta in tablet when call Tablet::max_continuous_version(). But when alter tablet happen, they can't be equal, because all state aren't inital.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

run starrocks_be_unittest

run all

https://github.com/Mergifyio rebase main

@mergify rebase main

@Mergifyio backport branch-3.0

https://github.com/Mergifyio backport branch-2.5


mat-select seems to be broken in iOS safari

What is the expected behavior?
mat-select should be working in iOS safari as it does in other browsers
What is the current behavior?
Drop-down selection is not functional and also produces erroneous dropdown overlay

What are the steps to reproduce?

Go to mat-select documentation page using Safari browser in iPad
Scroll down to the "Basic select" demo section and click on the mat-select
Try selecting the value from the dropdown
Try clicking the mat-select again and try another selection (if it works fine the first time)

Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Latest versions as used in the material docs site:
Material: 7.3.0
Angular: 7.1.4
Browser: iOS Safari
Is there anything else we should know?
Used a physical device to reproduce this.
Device details:
iPad
iOS version [11.4.1]

I wasn't able to reproduce it on an iPad with iOS 12.1.

It's also ok with a laptop running 12.1 safari.

Seems to be working fine after the iOS update. Sorry for the distraction. We can go ahead and close this issue. Thanks for your time @crisbeto @julianobrasil


Add a login page with authentication

Is your feature request related to a problem? Please describe.
awesome-panel allows building real web apps with Python - which is a huge deal! Any modern app usually requires a login/authentication mechanism.
Describe the solution you'd like
Add optional support for creating a login page with username and password / Oauth2

Good idea. Thanks

Good idea. Thanks

Just for reference the OAuth is described here https://panel.holoviz.org/user_guide/Authentication.html. I've not tried using it yet.

Just for reference the OAuth is described here https://panel.holoviz.org/user_guide/Authentication.html. I've not tried using it yet.

I am trying to enable OAuth2 authentication (based on Panel docs), but aside from redirecting to /login it's not working. Bokeh is still popping out the message:
INFO:bokeh.server.tornado:User authentication hooks NOT provided (default user enabled)

Can suggest where should I continue digging?
Thanks

I am trying to enable OAuth2 authentication (based on Panel docs), but aside from redirecting to /login it's not working. Bokeh is still popping out the message:
INFO:bokeh.server.tornado:User authentication hooks NOT provided (default user enabled)

Can suggest where should I continue digging?
Thanks

Ok, have some progress - you should replace:
in modifications/_server.py you should replace:
    if config.oauth_provider:
        from panel.auth import OAuthProvider

        opts["auth_provider"] = OAuthProvider()
    if oauth_provider:
        config.oauth_provider = oauth_provider

with
    if oauth_provider:
        from panel.auth import OAuthProvider
        config.oauth_provider = oauth_provider
        opts["auth_provider"] = OAuthProvider()

Otherwise, the code is meaningless

Ok, have some progress - you should replace:
in modifications/_server.py you should replace:
    if config.oauth_provider:
        from panel.auth import OAuthProvider

        opts["auth_provider"] = OAuthProvider()
    if oauth_provider:
        config.oauth_provider = oauth_provider

with
    if oauth_provider:
        from panel.auth import OAuthProvider
        config.oauth_provider = oauth_provider
        opts["auth_provider"] = OAuthProvider()

Otherwise, the code is meaningless

The whole part of overriding server.py is highly problematic (in terms of panel upgrades and compatibility).... Maybe it makes sense to make the fixes more generic and request to merge them into the panel core?

The whole part of overriding server.py is highly problematic (in terms of panel upgrades and compatibility).... Maybe it makes sense to make the fixes more generic and request to merge them into the panel core?

I tested the setup with Auth0 and it works!
Here is an Auth0 implementation I added  - https://github.com/holoviz/panel/pull/1934
I can also create a PR for my changes in your code if you want

I tested the setup with Auth0 and it works!
Here is an Auth0 implementation I added  - https://github.com/holoviz/panel/pull/1934
I can also create a PR for my changes in your code if you want

Hi @cloud-rocket
Regarding the Auth0 the best thing would to get it released in Panel. If I could get a contribution of a log in page that uses the Panel functionality, then we could showcase to Philipp that it works, is used and needed. That would help him I think get it into Panel I think. The alternative of contributing it here and removing it when it's released with Panel is also fine with me. What do you think?
Regarding the custom server implementation I agree it's problematic. And it is on my todo list to contribute the improvement to Panel. I will put that at the top of my todo list now. Thanks for reminding me.

Hi @cloud-rocket
Regarding the Auth0 the best thing would to get it released in Panel. If I could get a contribution of a log in page that uses the Panel functionality, then we could showcase to Philipp that it works, is used and needed. That would help him I think get it into Panel I think. The alternative of contributing it here and removing it when it's released with Panel is also fine with me. What do you think?
Regarding the custom server implementation I agree it's problematic. And it is on my todo list to contribute the improvement to Panel. I will put that at the top of my todo list now. Thanks for reminding me.

Hi @cloud-rocket
I've contributed a PR to Panel for the get_server function.

FR: https://github.com/holoviz/panel/issues/1938
PR: https://github.com/holoviz/panel/pull/1939

Please comment or upvote the FR. That might help get the improvements in. Thanks.

Hi @cloud-rocket
I've contributed a PR to Panel for the get_server function.

FR: https://github.com/holoviz/panel/issues/1938
PR: https://github.com/holoviz/panel/pull/1939

Please comment or upvote the FR. That might help get the improvements in. Thanks.

Hi @cloud-rocket
I've contributed a PR to Panel for the get_server function.

FR: holoviz/panel#1938
PR: holoviz/panel#1939

Please comment or upvote the FR. That might help get the improvements in. Thanks.

Cool! I'll take a look.
Auth0 is merged to Panel also.
Thanks!

Hi @cloud-rocket
I've contributed a PR to Panel for the get_server function.

FR: holoviz/panel#1938
PR: holoviz/panel#1939

Please comment or upvote the FR. That might help get the improvements in. Thanks.

Cool! I'll take a look.
Auth0 is merged to Panel also.
Thanks!

HI @cloud-rocket .  Could you give an example on how you got it running with Auth0?
I get an error page from auth0 saying that my client-id is an unknown client.  Would be cool to see how you did it.  Cheers


No documentation / source code

I see no documentation nor sources in Android Studio (3.2.1), just the compiled .class files. Maybe the wrong artifacts are being uploaded to whatever online repo?
I looked into the Gradle cache (where the JARs are stored) and it does include the sources.jar file, but it is empty:
$ jar -tf ~/.gradle/caches/modules-2/files-2.1/ru.gildor.coroutines/kotlin-coroutines-retrofit/1.0.0/3380d25eb4f4e54022fbe59ba7261a9d05780177/kotlin-coroutines-retrofit-1.0.0-sources.jar

META-INF/
META-INF/MANIFEST.MF
ru/
ru/gildor/
ru/gildor/coroutines/
ru/gildor/coroutines/retrofit/

These are all the files in the JAR: just directories, no files.
It seems there's something wrong with your source artifact packaging!

I've made a fix, opening a PR in a minute.


Release timeline for v34

Hi thanks for this wonderful library, and I am looking forward to using the new self-hosted runner group API where the support has been merged in #1804.
Is there a release to include this feature any time soon? Since the latest release v33 dated back in Dec 2020.

Hi @billjh - as of #1280, all releases (major, minor, and patch) are on-demand.
We had one other request just this morning, so this afternoon I will be working on a new major release (v34). Hopefully it will be read to use tonight or early tomorrow morning.

Hi @billjh - https://github.com/google/go-github/releases/tag/v34.0.0 has been released.


Add token logo for Moon Credits (Base chain)

Token Name: Moon Credits
Contract Address: 0x663Ca4A6608ba72b07Badc02148E1E55f7Cdb51a
Network: Base Chain
This pull request adds the logo for the Moon Credits token, which is built on the Base chain. The token's logo is in the correct 256x256 PNG format as required by Uniswap.

Hello Team,
I hope this message finds you well! I wanted to kindly follow up on the status of my pull request (#74) regarding the addition of the Moon Credits token logo. It looks like the workflows are awaiting approval for completion.
Would it be possible for someone with the necessary permissions to review and approve the pending workflows? I’d greatly appreciate your help in moving this forward.
Thank you in advance for your time and assistance!
Best regards,
RexStarwalker


TextEditor.getScrollTop is deprecated.

This is now a view method. Call TextEditorElement::getScrollTop instead.
TextEditor.getScrollTop (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:3489:12)
atom-preview-editor.renderPreviewWithRenderer (/Users/joseptrevuelta/.atom/packages/preview/lib/preview-view.coffee:298:23)
atom-preview-editor.renderPreview (/Users/joseptrevuelta/.atom/packages/preview/lib/preview-view.coffee:279:19)
later (/Users/joseptrevuelta/.atom/packages/preview/node_modules/underscore/underscore.js:724:25)

Why is this happening???

Any update on this?


[Bug]: Adding a button causes all commander buttons to go to bottom of ribbon

Describe the bug
If I add a new button to my ribbon, all of the other commander buttons (icons) are moved to the bottom of the ribbon list.
Relevant errors (if available)
No response
Steps to reproduce

Add a command to the ribbon.
Use the Ribbon menu in the "Appearance" to move the command to the top of the ribbon
Add a second command to the ribbon.
Both commands are now on the bottom of the ribbon buttons.

Expected Behavior
The new command could go to the bottom.  The existing command(s) should stay put
Additional context
No response
Operating system
Windows

I should add that if there were multiple commands when you created the new command, the existing commands return to the order they were created (and show in the commander options dialog).  So, not only do they go the bottom but they also reorder themselves based on the order they were created (which is different from the order I specified in the Appearance/ribbon menu dialog.

I get this a lot too. Exiting obsidian and letting it reload the workspace often fixes it.


Fixes issue #6

Added the missing bootstrap minified js file that was expected to
be in ./static/bootstrap/3.3.2/js
Moved the bootstrap.min.css file to the ./static/bootstrap/3.3.2/css
directory.

thanks!


Fix Asciidoc syntax highlight

Description
This pull request improves the way in which code listing blocks in extra file objects are matched.
In the result, listings in extra file objects written in AsciiDoc are now properly enriched with YARD: the syntax is highlighted, and the identifiers are linked with their respective documentation.
Fixes #1239 (went with option 2).
Details
The regular expression used for code blocks detection has been significantly relaxed. The updated one makes no assumptions on what HTML attributes can be set on <pre> or <code> element, allowing everything. It still requires that the listing's outermost element is <pre>, but this seems to be a reasonable limitation.
The programming language detection still considers the values of class and lang HTML attributes. Moreover, data-lang attribute, which is produced by AsciiDoctor markup processor, is also supported now.
Finally, this pull request properly ensures that code blocks produced from Ruby source files are not highlighted twice. It wasn't a problem before only because of a very lucky situation that code blocks produced by html_markup_ruby have a slightly different attributes, and that was preventing them from being erroneously double-highlighted.
Completed Tasks

[x] I have read the Contributing Guide.
[x] The pull request is complete (implemented / written).
[x] Git commits have been cleaned up (squash WIP / revert commits).
[x] I wrote tests and ran bundle exec rake locally (if code is attached to PR).

Coverage increased (+0.04%) to 93.808% when pulling c7975eb026d69a01ca08e25caad9f31084bc8f51 on skalee:asciidoc-syntax-highlight into 890d4ad5f714856a138a5e2aae3b226255e74137 on lsegal:master.

Sorry for the delay here. Thanks for this!

@lsegal Any chance for release? There are some gems which will benefit from this one, e.g. https://rubydoc.info/gems/enmail.


Error capture Camera

Error when capture photo on realme 3 using camera 0.8.1+2
flutter doctor :

flutter doctor -v
[√] Flutter (Channel stable, 2.0.6, on Microsoft Windows [Version 10.0.19041.985], locale en-ID)
    • Flutter version 2.0.6 at C:\Users\1087\Downloads\flutter
    • Framework revision 1d9032c7e1 (5 weeks ago), 2021-04-29 17:37:58 -0700
    • Engine revision 05e680e202
    • Dart version 2.12.3

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\1087\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.56.2)
    • VS Code at C:\Users\1087\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.22.0

[√] Connected device (3 available)
    • RMX1821 (mobile) • Y5ZD8LMFHYF6I7JF • android-arm64  • Android 10 (API 29)
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 90.0.4430.212
    • Edge (web)       • edge             • web-javascript • Microsoft Edge 91.0.864.37

! Doctor found issues in 1 category.

Hi @joharputr
I see there's an open issue addressing the case you described.
Please follow up on that issue, Closing as duplicate of https://github.com/flutter/flutter/issues/76305
If you disagree, please write in the comments and I will reopen it.
Thank you


Merge maui-linux into maui-main

Plan to merge
https://github.com/jsuarezruiz/maui-linux/tree/main-linux
with
https://github.com/dotnet/maui main
GtkSharp-Workload
a GtkSharp-Workload is needed
this should happen upstream in https://github.com/GtkSharp/
see also: tizen-workload https://github.com/Samsung/Tizen.NET
Microsoft.Maui.Graphics
make a recent GtkSharp-Version of
https://github.com/dotnet/Microsoft.Maui.Graphics
get https://github.com/dotnet/maui main to compile on linux
currently, the build.cake is windows-specific and broken on linux:
https://github.com/dotnet/maui/blob/main/build.cake
merge
main problem will be the build-scripts & build-variables
and, of cause, all the files cluttered with
platform-specific preprocessor-directives
here, merge all lines as is main-linux in you find with
#elif GTK
and
#if GTK
update api changes
it's not so hard, as it looks at the first glance.
general, look at maui-tizen as a reference
see eg. https://github.com/dotnet/maui/tree/main/src/Core/src/Platform/Tizen

it should be migrated to net6 and, the TFM will be net6.0-Gkt (not linux! Gtk runs on more than linux)

Yes, that was what I expected. Also Linux doesn't guarantee to have GTK installed so making it net6.0-linux to access GTK does not make much sense.

no, no plans for supporting net5.
I was not asking for net5 support. net5 seems to be a hack the MAUI for GTK devs were using to get a TFM specialized for GTK.

the TFM will be net6.0-Gkt
You mean net6.0-gtk right? If that's the case, do we actually have to modify the SDK to add a new TFM.

Furthermore, other existing TFMs for .NET seems to represent environments, such as windows, android, maccatalyst, and the proposed but dropped, browser. gtk doesn't seem to be a legal runtime environment on its own, just an UI framework.

You mean net6.0-gtk right?
yes
Also Linux doesn't guarantee to have GTK installed
the workload is responsible for provide all dependencies to get GtkSharp running. So it has to install all packages (on linux) or provide the installer for Gtk (on windows) or call brew ... (on mac)
and ..
so, if we take -linux, we know nothing. also android is a linux, but with a special Ui-Framework (=android)

so, if we take -linux, we know nothing. also android is a linux, but with a special Ui-Framework (=android)

Ok I get it. Thanks!
Any pointers on where to start for the workload? It seems that the GtkSharp project already has adequate scripts to ensure dependencies are installed on the machine, the workload just need to register it somehow...

GtkSharp related stuff should happen upstream.
See https://github.com/GtkSharp/GtkSharp/issues/349

started to merge: https://github.com/jsuarezruiz/maui-linux/pull/37

State
Controls.Samples.Gtk  running

on net 8.0 now


[iRonCub3] add wholeBodyDynamics files and iRonCub3 FT

cc @HosameldinMohamed

I'll remove iRonCub-Mk3-FT and install it as a duplicate by CMake, following https://github.com/ami-iit/robots-configuration/pull/13

I'll remove iRonCub-Mk3-FT and install it as a duplicate by CMake, following #13

Done in https://github.com/ami-iit/robots-configuration/pull/32/commits/b7489c5b65149f883b012eff20f5cf2d9ce3953d
Ready for review!

Merged! Thanks!


[Fix Accessibility Bug] Refactor code.js to improve syntax highlighting colors

WHAT
This pull request introduces a new function to handle custom token styling in the Code component and refactors the existing code to utilize this new function. The most important changes include the addition of the getCustomTokenStyle function and the refactoring of the Code component to use this function for token styling.
Styling improvements:

src/mdx/code.js: Added the getCustomTokenStyle function to handle custom token styles based on their class names.

Code refactoring:

src/mdx/code.js: Refactored the Code component to use the getCustomTokenStyle function for determining the style of each token, simplifying the code and improving maintainability.

WHY
BEFORE

AFTER

Isn't this the kind of thing css styles is designed to solve?  Can we not set this color based on the class in css?


Fix log level to avoid javascript errors showing up in the console

Add this to your modules\eset_register.py after Line 20:
        driver_options.add_argument("--log-level=3")
Afterwards it looks like:
        driver_options.add_experimental_option('excludeSwitches', ['enable-logging'])
        driver_options.add_argument("--log-level=3")
This avoids all javscript errors happening on the ESET Website (At the moment for example a cookiebar error).

i mean this error (highlighted in big font):
[  INFO  ] [EMAIL] Register page loading...
[   OK   ] [EMAIL] Register page is loaded!
[1117/145704.357:INFO:CONSOLE(1140)] "[cookiebar] DIV element #cookiebar is not available!", source: webpack-internal:///2 (1140)
[  INFO  ] [PASSWD] Register page loading...
[   OK   ] [PASSWD] Register page is loaded!
when you add the --log-level=3 option to the chromedriver, this error is not shown anymore.

I've never seen that before. So I didn't add log-level 3.

I give you permission to make a fork and add your code that I will accept it.

you'll be on the list of contributors

I've created a pull request for this.

I've created a pull request for this.

New v<IP_ADDRESS><PHONE_NUMBER>) release comes with your code.


How to use my own dataset to generate layer NPZ files？

I used the DJI M30T drone to collect infrared and visible light images, and I am preparing to use the dataset I collected to generate NPZ files. Do you have the code to generate NPZ files?

Have anyone can solved it?

Unfortunately, there is no explicit code available to generate NPZ files containing ground-truth poses and camera parameters. As mentioned in our paper, ground-truth poses were recovered using offline systems such as COLMAP  and HLOC  methods with RGB images. Since our cameras are autofocus, we obtained ground-truth (GT) camera parameters for both cameras using COLMAP in the same modality, supplemented by distortion parameter estimation using a calibration pattern.
If your cameras support fixed focus, you can try to retrieve all camera parameters and poses directly using COLMAP, HLOC, or similar tools. However, for more reliable ground-truth data, especially in the presence of significant camera distortion, I recommend using a calibration pattern.
Once you’ve completed this process, you can store the GT poses and parameters in an NPZ file using NumPy. Our NPZ file format closely follows LoFTR's format. To better understand it, you can load one of our NPZ files in a Python script and inspect its structure.

@OnderT

Okay, can you explain the meanings of these parameters in the npz file? 'intrinsics', ' distortion_coefs', 'poses', 'pair_infos'


Slashes in the id are not escaped when requesting a thread

Describe the bug
If a thread id contains a “/”, it is not escaped when querying a single thread and a "Unrecognized request URL" error is returned.
To Reproduce
Query a single thread via the SDK where the id contains a “/”
Expected behavior
The id is fully escaped on request, the thread data is returned
SDK Version:
2.5.0

If i can add something else, the same problem occur when trying to fetch for a folder with id containing "/", seems like the the ids are simply encoded but the "/" are not replaced by most basics encoding function, they need to be replace manually
account.getId().replaceAll("/", "%2F") worked for me as a temporally solution but could be a really good add to the sdk

I‘ve also tried to replace the slashes before, but the ‚%‘  is replaced by the escaping mechanism of the sdk afterwards. Which leads to ‚%252F‘.
A workaround for me was to wrap these ids by some strings like ‚blabla()blabla and add an Interceptor to the underlying okhttp requester. This interceptor unwraps the id and adjusts the HttpUrl accordingly - and replaces the slashes within the id.


Parser incorrectly generates a column on the wrong table when a column is not fully qualified in a SQL query

Example SQL text:
SELECT CAST(qsp.plan_id AS NVARCHAR(16)) AS PlanId,
'0x' + CONVERT(NVARCHAR(MAX), deqs.plan_handle, 2) AS PlanHandle
FROM sys.query_store_plan qsp WITH (NOLOCK)
JOIN sys.dm_exec_query_stats deqs WITH (NOLOCK) ON (qsp.query_plan_hash = deqs.query_plan_hash)
WHERE qsp.query_id = @QUERY_ID AND
qsp.last_execution_time > DATEADD(MINUTE, -15, GETUTCDATE()) AND
plan_forcing_type_desc != 'AUTO'
Actual Result: When parsing this object, the parser is thinking plan_forcing_type_desc is on BOTH sys.query_store_plan and sys.dm_exec_query_stats. The column only exists on sys.query_store_plan, but the resulting parsed file generates invalid syntax where plan_forcing_type_desc exists on both sys.query_store_plan and sys.dm_exec_query_stats.
Expected result: the parser should generate a resulting xml that only has plan_forcing_type_desc on sys.query_store_plan.

Can you share your actual code that you use to parse, and which node is invalid?
The parser would have no way to know which table each column belongs to, unless it is fully qualified (eg. sys.query_store_plan.plan_forcing_type_desc).

Hey @Clement,
Please work with @Leila @.>, @Neha @.> and @Naman @.***> on this issue - they are looking to get a repro with more details.
Thanks,
Chris
From: Clement Gutel @.>
Sent: Tuesday, November 21, 2023 12:54 PM
To: microsoft/SqlScriptDOM @.>
Cc: Chris Lewis (DATAVERSE) @.>; Author @.>
Subject: Re: [microsoft/SqlScriptDOM] Parser incorrectly generates a column on the wrong table when a column is not fully qualified in a SQL query (Issue #62)
Can you share your actual code that you use to parse, and which node is invalid?
The parser would have no way to know which table each column belongs to, unless it is fully qualified (eg. sys.query_store_plan.plan_forcing_type_desc).

Reply to this email directly, view it on GitHubhttps://github.com/microsoft/SqlScriptDOM/issues/62#issuecomment-1821662763, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BEFFAURYT3B4JUD3A3IEPNDYFUIF3AVCNFSM6AAAAAA7VATKVWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGY3DENZWGM.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

this is not a bug in parser. I originally thought it might be, but I was wrong. when there's reference to a column in function, parser doesn't do anything with which object it's coming from. it would parser the column as is and doesn't apply objects if they are not specified.


beat Snap don't work and zooming a more then 1/24 crash the game

Describe your bug here.
when i try using beat snap in chart edtore don't work and when i zoom a lot a got this msg

Crash Log or logcat logs (if existing)
Null Object Reference
states/editors/ChartingState.reloadGridLayer() [line 2314]
states/editors/ChartingState.updateZoom() [line 2298]
states/editors/ChartingState.update() [line 1950]
flixel/FlxState.tryUpdate() [line 239]
flixel/FlxGame.update() [line 750]
flixel/FlxGame.step() [line 680]
flixel/FlxGame.onEnterFrame() [line 559]
openfl/events/EventDispatcher.__dispatchEvent() [line 426]
openfl/display/DisplayObject.__dispatch() [line 1398]

Are you modding a build from source or with Lua?
Lua
Have you open preload state?
No
What is your build target?
Desktop (Linux, Windows or Mac)
Did you edit anything in this build? If so, mention or summarize your changes.
no

The editor will be fixed in the future, but it will not be released at this time


Update jawn-fs2 to 0.15.0-M2

Updates org.http4s:jawn-fs2 from 0.15.0-M1 to 0.15.0-M2.
Release Notes/Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s", artifactId = "jawn-fs2" } ]

labels: semver-pre-release

0.15.0 is on the way.


Duplicate line when you use text to speech on iOS

Description
Provide relevant details according to the context:

iOS 12.4
Safari

How to reproduce?
if you use text to speech of the iOS keyboard and add a new line with speech, when you dismiss the keyboard, the last line a duplicate into the editor.

Hum. I can't reproduce. On simulator on macOS, I can't write anything after adding a new line...
That's really strange, needs more investigations. Maybe it's related to semantic option.
It's not a priority for me, as I'm working on v3 and it's a specific usecase that I can't test with a real iOS device :/


[version] bump to v0.8.38

@logan-markewich looks like the release GHA failed when this was merged, fyi: https://github.com/run-llama/llama_index/actions/runs/6383864303/job/17325342560

@jamesbraza good call out. I wonder if this is because the repo was transfered to a new owner?


Mentioned RBAC in docs

Role Based Access reference, description and examples are missing from docs.  Perhaps a good location is https://www.cockroachlabs.com/docs/stable/roles.html to start or start new https://www.cockroachlabs.com/docs/stable/rbac.html
RFC https://github.com/cockroachdb/cockroach/blob/master/docs/RFCS/20171220_sql_role_based_access_control.md

This should be covered in https://github.com/cockroachdb/docs/issues/3549.

Assigning this to myself to handle in conjunction with #3549 as per @jseldess's comment. @lhirata Please feel free to reassign to yourself if you prefer it that way.

Reviewed authorization and overall security. The Content is good for on-boarding customers.


issue with step2

Follow the instructions in Sideload Outlook add-ins for testing to sideload the add-in in Outlook. is not working for me ...the File>Manage Addins button opens web Outlook but neither shows anything allowing me to add the manifest plugin created in previous steps..

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

ID: 930ce4fc-c8b8-f756-f03f-a716f1ef7883
Version Independent ID: 753a2e38-9430-25bb-5409-b7eed9c88e47
Content: Build your first Outlook add-in - Office Add-ins
Content Source: docs/quickstarts/outlook-quickstart.md
Product: outlook
Technology: add-ins
GitHub Login: @o365devx
Microsoft Alias: o365devx

@stephane0007 Sorry you're getting this behavior. Can you look through the sideloading article to see if this helps your situation?
Thanks.

@stephane0007 Does that mean you're seeing the classic UI when you open Outlook in a browser and you're following the instructions in the Sideload an add-in in classic Outlook on the web section? Can you share a screenshot of what you're seeing?
Thanks.

Hello Elizabeth, i have actually solved this issue we can close this.

@stephane0007 Glad to hear that. Do let us know if there's any we can make clearer in the docs.
Thanks.


doc & version: added BlackBIRDS reference and updated version

Thank you so much for helping with that, @vincentberenz!


Fine-grained ignore rules

It should be possible to ignore rules on a per-file and per-line basis.

[ ] To ignore rules per file, will need to add project-wide settings file first (https://github.com/PlasmaFAIR/fortitude/issues/5). It will be easier to handle this via a settings file or the command line than to parse comments in the files themselves.
[ ] Per-line ignores could be done the same way as flake8/ruff: search for a comment ! noqa at the end of a line. The regex !\w*noqa\w*$ should do it.

After gathering rule violations for a file, check the returned line numbers, and search for ! noqa on those lines. Discard violations wherever it's found.
Could also have fine-grained ignores, such as ! ignore: E123.
Things will get trickier if we also aim to account for line continuations with &.

Adding a +1 for the option to ignore rules on a file-by-file basis.

This is next up on our priorities list, and we've been giving the per-line ignores some more thought.

We're thinking about going for something like ! allow(all) as a general 'nolint' statement, and e.g. ! allow(line-too-long) for specific allowances.
This should go on the line before the offending line(s). We probably won't have an inline equivalent in the first instance.
To implement this, we should find all comments that match the required format, and if a violation is raised within the range of the next AST sibling, it should be discarded.

This will allow you to put the comment at the top of a function/module to ignore all issues within it!


Table improvements

Switch around ID and loginname columns
Default sort by last name

I have switched around the columns. The first column is now last name (default sort).


Updating snapToOffsets property of FlatList causes app crash on Android

Description
Android app crashes when updating snapToOffsets prop.

Error while updating property 'snapToOffsets' of a view managed by: AndroidHorizontalScrollView Value for snapToOffsets cannot be cast from Double to ReadableArray

React Native version:
System:
OS: macOS 11.0.1
CPU: (4) x64 Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
Memory: 86.06 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 13.12.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.6 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.0 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1
Android SDK: Not Found
IDEs:
Android Studio: 4.0 AI-193.69<IP_ADDRESS>26763
Xcode: 12.2/12B45b - /usr/bin/xcodebuild
Languages:
Java: 11.0.9 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.3 => 0.63.3
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps To Reproduce

Render a component: <FlatList snapToOffsets={isSnap ? items.map((_, index) => index * itemWidth) : undefined} />. The isSnap value is true.
Change isSnap value to false.

Expected Results
FlatList re-renders correctly and there is no snap behavior anymore.
Snack, code example, screenshot, or link to a repository:

I'm experiencing this crash as well when updating snapToOffsets from a defined array to undefined.

I'm experiencing this crash as well when updating snapToOffsets from a defined array to undefined.

👋 PR #31681 fixes this issue.

Why is this closed?


RLS: 0.19.0

Issue to track the progress towards the 0.19.0 release.
cc @jreback @shoyer @sinhrks @TomAugspurger @wesm

I think it would be nice to try to target a release candidate by the end of this month / last week of August (although that is approaching fast). That would mean stopping with merging larger features in master for now.
There are currently still 166 open issues tagged with 0.19.0 (https://github.com/pydata/pandas/issues?page=6&q=is%3Aopen+is%3Aissue+milestone%3A0.19.0). I will go through them and push some of the issues to 0.20 / 'Next major release' milestones (starting with the minor enhancement requests and non-critical bugs).
If there are any issues you would really like to see in 0.19.0, maybe comment on those issues (or here).
Sounds OK / remarks ?

@sinhrks Your work on Periods adding a period type is maybe one of the discussion points .. (#13755, #13941 et al). Personally, it feels a bit too close to the deadline to me if we want to meet the end of august deadline. But of course, we could also postpone the release a bit.

I think we should include the period change
will merge all of this next week

End of August sounds good. I'll be a bit busy prepping talks for PyData Chicago that weekend and getting this side project off the ground, but I'll help review as much as I can.

personally it is nice to include #13941 at least, as it allows broaden index cleanup based on dtype (not index specific logic like freq comparison, etc).

#13767, #13854, #13755, #13660 should be merged before we do a RC1. we can push #13755 if needed (but then would want an RC2).

#13755 seems to be little hard (there are some issues related to coercion / ops should be fixed prior to it). Do you have re-scheduled date considering remaining?

the remaining are ready to go I think just need s bit of review - ideally like to like to do asap

Yes, that seem the blocking PRs for a release candidate(maybe also #14127). Personally, if we want #13755 in 0.19.0, I think we should have it the release candidate.
I further trimmed down the number of issues tagged with 0.19.0 to 30 (of which half or so will be closed by an open PR for 0.19.0).
As I would like to keep some of those issues tagged without them being a blocker (just to find them easier), I quickly created a 0.19.0rc milestone to track the blockers (after th rc we can just rename them back to 0.19 and remove the milestone).

Maybe this is a radical idea and too late for 0.19, but thoughts on deprecating .ix either now or in 0.20 / 1.0?

Yes, we should do this (probably too late for 0.19, though).
On Thu, Sep 1, 2016 at 6:10 AM, Wes McKinney<EMAIL_ADDRESS>wrote:

Maybe this is a radical idea and too late for 0.19, but thoughts on
deprecating .ix either now or in 0.20 / 1.0?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pydata/pandas/issues/13991#issuecomment-244073492,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABKS1kJqCotwlJxQz7qOyIb4CsaTz0qGks5qls6wgaJpZM4JjrpT
.

We need another major release, 0.20.0, to complete deprecations I think. Even though 0.19.0 has a lot, we need to push thru almost everything remaining big ones in another release. Further we should do this and NOT call it 1.0.

That seems OK as long as we are throttling back on new features / API changes. Let's start making a master list of desired deprecations in 0.20 and 1.0?

I am planning on doing the rc release on Wednesday.
So that will probably mean #13755 (the Period Block) will not make it for the rc.
OK for everybody? (If there are other pressing issues for an rc, time to speak up :-))

Release candidate is out! Just sent the announcement, and there are both conda packages and wheels to test

thanks @jorisvandenbossche!

and @jreback !

@jreback pushed the remaining issues for 0.19.0 to 0.19.1 or later, so the queue is clear.
Are there any objections to releasing the current state as final 0.19.0?
I don't think there were any major reports warranting a second release candidate.
I would like to start testing the approach with a 0.19.x branch for a 0.19.1 release, so we can start with deprecations/breaking changes for 0.20/1.0 in master.

@jorisvandenbossche sure, let's release!
and certainly could test the backports if you'd like.
So IIUC.
you then want to also create a 0.19.x branch. master is then effectively 0.20.0 at this point. and will selectively backport?

prob need a script to make sure we don't miss any bug fixes. E.g. as soon as something is merged to master it needs to be considered for 0.19.x.
Further need to make sure travis/appveyor is testing that branch as well.

I will do the release tomorrow

Website and docs are updated, source and windows/mac/linux wheels are on PyPI and conda-forge packages are built as well!
Will do the announcement shortly


Error: implicit declaration of function 'wc_HKDF'

Hello!
I'm using GNU toolchain (Windows)
After compiling and creating libwolfcrypt.a there is an error:
hkc.c: In function 'crypto_setup5':
hkc.c:1931:17: error: implicit declaration of function 'wc_HKDF' [-Werror=implicit-function-declaration]
             r = wc_HKDF(SHA512, srp.key, srp.keySz, esalt, esaltSz, einfo, einfoSz,
                 ^

Can in my case it is necessary to include any define?

It seems that not connected header files from the folder "include"

Success!

Added
#include <wolfssl/wolfcrypt/hmac.h>
to the file hkc.h