feat: use initialization page and providers

🙌 What's Done

Use initialization page/providers

Overview
(Japanese)
https://www.figma.com/deck/WoqYolvCzNzWTMycHssSci/Riverpodでプロバイダ初期化方法?node-id=0-1&t=QO9h1wkgdR4tnIxS-1
✍ What's Not Done

🤼 Desired Review Method

[ ] Correction Commit
[ ] Pair programming

[!NOTE]
It is possible that a reviewer's will may cause a method to be implemented that is not selected.

📝 Additional Notes

Pre-launch Checklist

[x] I have reviewed my own code.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I updated/added relevant documentation (doc comments with ///).

@riscait
I’m sorry, but the Figma link you provided keeps loading and doesn’t open for me. Would it be possible to share a screenshot or something similar instead? 🙇🏻♀

@k-nkmr
I was able to open it in a browser incognito window, so it doesn't seem to be a problem with the URL or my account.
It's a lot of work to take screenshots of all the pages...
But the slides are what I shared at the study session the other day👌


[Languages]Discrete wavelet transform based spread-spectrum watermarking for grayscale images in Matlab

Topic Suggestion
Discrete wavelet transform based spread-spectrum watermarking for grayscale images in Matlab
Discrete wavelet transform based spread-spectrum watermarking for grayscale images in Matlab
Introduction
The discrete wavelet transform(DWT) implements the wavelet transform using a discrete set of the wavelet scales and translations, obeying some defined rules. In other words, this transform decomposes the signal into a mutually orthogonal set of wavelets. Watermarking is the process of hiding digital information in a carrier signal; the hidden information should, but does not need to, contain a relation to the carrier signal. We can add a watermark to an image using DWT.
This tutorial will look at watermarking grayscale images using Discrete Wavelet Transform (DWT). The proposed watermarking scheme is based on spread spectrum watermarking. It is known to be robust against several watermarking methods. We will see the watermarking algorithms and Matlab code to perform these operations.
Key takeaways

What is image watermarking?
Types of watermarking and challenges in image watermarking
DWT based spread-spectrum watermarking for grayscale images.
Watermark embedding and watermark extraction algorithms.
Performance evaluation parameters.
MATLAB Code to implement watermarking.
Result analysis.

Article quality
This article covers in detail how to perform the watermarking of the greyscale images.

Hi @jumapaul
It seems this article has been covered a lot by other scholars on the internet. Due to this, we cannot move forward with this article. You are welcome to explore other topics.


swipe back on iOS and onTap to select

here i have two issue with the plugin, immediately i apply the plugin the swipe back to the previous page did not work on the page
my onTap to select is not working until i long press any first item before the ontap to select will start working

here i have two issue with the plugin, immediately i apply the plugin the swipe back to the previous page did not work on the page.

This happens because, internally, we're using WillPopScope. This widget prevents swipe back from working. To fix that, we must instead add an entry to the local history.

my onTap to select is not working until i long press any first item before the ontap to select will start working

I'm not sure I understand what you mean. Would you mind further elaborating? Maybe an example can help.

This happens because, internally, we're using WillPopScope. This widget prevents swipe back from working. To fix that, we must instead add an entry to the local history.
can you explain how to fix this....

so let me explain better,
if i first ontap any item in the view, the select is not working. so i long press any one item in the view then the select start working with the rest item with the ontap..

so let assume i have 5 itmes in the view, so i ontap item 1 to change the bgcolor to identify that is selected, the ontap will not work meaning it will not select, even if i select item 3 or 2 or 4, it will not select. until i long press any item from 1-5 then the bgcolor of the item i selected will change then the ontap for rest item will start working,
that means after the first long press the ontop to select will start working

can you explain how to fix this....

Don't worry about it, I'll sort it out soon ;)

if i first ontap any item in the view, the select is not working. so i long press any one item in the view then the select start working with the rest item with the ontap..

That's the intended behavior. The reason is I must give the library user the opportunity to handle the regular tap. Imagine this library is used in a gallery app, just like Google Photos. When the user taps a photo, it must show the picture in another screen. If we were to start the selection without long-press, this would not be possible.
Your request is valid, though. In fact, there's a PR to add a flag so it's possible to start selection without long-press. Check https://github.com/hcbpassos/drag_select_grid_view/pull/18 out.

thanks so much. please as soon you made changes let me know, so that i can give my boss date to fix it...

Fixed by 3a995c9122e4db5ce35276300f1908cdba72c4bb.


Rolling the globe with rotate via hotkeys is jumpy

Shift+left and shift+right will rotate, shift+up and shift+down will roll.  When used together alternating between the two, the globe roll will jump significantly. Alternate 5-10 on rotate, then a 1-3 roll, repeat several times.
globe roll.mp4.zip
In this video clip, look for the significant roll shift at the 4 second mark.  All inputs via hotkeys.

The issue here is that we do not have programmatic access to the function which Cesium uses to do its tilt internally on mouse actions: tilt3D in Scene/ScreenSpaceCameraController.js.
The gist of that function is that it sets the transform for the camera such that it rotates around the point on the ellipsoid/terrain rather than around the center of the ellipsoid. We might be able to  copy it and cover all of the edge cases in the ellipsoid path, but the terrain path is way worse.
That being said, both our implementation of roll and tilt from the keyboard is incorrect (roll is just somewhat less drastically different). I vote we remove it entirely if it can't be matched up reasonably with the mouse action.


Fix hostnames with a dash getting rejected

Coverage remained the same at 94.893% when pulling f3e6a8099c7eb8104371a936fba05804e0e76572 on Yepoleb:hostname into 709cbaa3b6dfe8839d6204efa4d965e9511cf59f on maphy-psd:master.

Yeah this regex should be removed. It's horseshit.


Remove redundant MacOS 14 image in CI

Removes duplicated MacOS 14 Arm image in CI and now keeps only macos-latest. This change was introduced in https://github.com/qiskit-community/qiskit-machine-learning/pull/779.
Closes https://github.com/qiskit-community/qiskit-machine-learning/issues/801
Closes https://github.com/OkuyanBoga/hc-qiskit-machine-learning/issues/50

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 91.681%

Totals

Change from base Build<PHONE_NUMBER>3:
0.0%

Covered Lines:
4640

Relevant Lines:
5061

💛  - Coveralls

Referring to this comment https://github.com/qiskit-community/qiskit-machine-learning/issues/801#issuecomment-2115178170  in the issue this closes
I guess you decided, at least for now, just to do CI on ARM rather than switch one of the pair over to X86 - we did both X86 and ARM in the past as we had seen issues on one platform not the other. But with things changing around the image naming both became ARM versions as they were named/given in CI, but as that comment notes there is still a X86 image that has largest as part of its name - see https://github.com/actions/runner-images?tab=readme-ov-file so if wanted that could be used.
Anyway its always something that could be added later if/as needed/wanted so I approved this.

In this case, I think it makes sense to add the large and continue to test with it. I'll update the yml right away.

Oups! macos-latest-large returns this error:

Interesting! I'll undo the last commit https://github.com/qiskit-community/qiskit-machine-learning/pull/841/commits/14f945e3f0c8eaf39195fed81bc6e55ce077735f and only keep macos-latest then.


Share extension app can not run twice in one app(ios).

In IOS, the share extension cannot run twice, because it does not exit in the close method.
RCT_EXPORT_METHOD(close) {
    [extensionContext completeRequestReturningItems:nil
                                  completionHandler:nil];
}

What should i do if i wanna run it twice in one app? Would it be possible to append "exit(0);" to the method?

@EnochL Please elaborate on what you mean by "run twice in one app." Perhaps you can explain in further detail your use case.

I'm seeing the same thing. @EnochL correct me if I'm wrong, what I think you mean by run twice is

enter safari
tap on share extension
share extension works as expected
tap on share extension again
failure

Here are what my device logs look like for two of associated crashes 1) on exit and 2) on launch

Any ideas for how to resolve this bug?

@AndrewHenderson i mean "run again".

here is a way to fix it.
RCT_EXPORT_METHOD(close) {
    [extensionContext completeRequestReturningItems:nil
                                  completionHandler:nil];
}

change to
RCT_EXPORT_METHOD(close) {
    [extensionContext completeRequestReturningItems:nil
                                  completionHandler:nil];
    exit(0);
}

creating a native module to execute “exit(0);” is another way to fix it without changing the code of "react-native-share-extension"

@EnochL Nice fix!
I only began experiencing this bug after upgrading my iPhone to iOS 11.3.1.
Submit a PR! 😄

@EnochL I'm finding that this sometimes crashes my Photos app. I receive a black screen on the simulators and then can't reopen the Photos app. @alinz mentioned that this is a "hard exit and could cause a memory leak.".

@alinz Everything I've found tells me that the share extension is being closed properly without @EnochL's suggested change.
My current hypothesis is that the React app is not being properly unmounted. So when a user attempts to reopen the Share Extension, the React app crashes, not the extension itself.
Currently exploring this idea.

I just noticed that everything is working properly for me in Release Mode. It's only in Debug Mode that the app crashes on reopen in iOS 11.3.1.
It seems like the index.js is called from the Metro Bundler a second time and then the React Share App crashes. I see that as a very minor issue, if everything works properly in Release Mode.

Be careful about using exit(0); in your code. It was causing the extension to close before the JavaScript code was run but only when the app was archived.

Hi, I'm experiencing the same behaviour... at this moment only in the simulator.
Any solution?

I am experience this issue on a real device, any idea how to solve this?

I still believe it is due to the JS module needing to be unmounted on the JS thread. I believe the cause of the crash is due to the Native Module attempting to remount it second time. After it crashes, the user is able to launch on the third attempt.
I'm researching how this can be done. I'm not an Objective-C developer, so anyone will more experience, please chime in.

@AndrewHenderson This my temporary workaround for the problem:
I am using react-native-exit-app which provides me a bridging to "exit(0)" and I used in
componentWillUnmount(){
RNExitApp.exitApp();
}
and not as addition to the Close method which was causing my js to end before time

@i25878427 You're saying the following did not work for you?
componentWillUnmount(){
  ShareExtension.close();
}

@i25878427 This works for me:
RCT_EXPORT_METHOD(close) {
  [extensionContext completeRequestReturningItems:nil
    completionHandler:nil];
  exit(0);
}

When I run my share extension directly from Xcode, the debug logs show that the rootTag for my React Native share extension is 1. This is what we want.
When I close the extension and reopen it, the root tag is 11. This is NOT what we want. It tells me that the JS Thread was not killed and the first version of the app is still in memory — that React's bookkeeper has the app on file.
2018-10-23 17:18:00.216 [info][tid:main][RCTRootView.m:293] Running application ShareToSnap ({
    initialProps =     {
    };
    rootTag = 11;
})

When I adding exit(0), no matter how many times I close and reopen the extension, the rootTag is always 1 — this is what we want, since it is the root of the app.
Theory
When the code is run to initialize the app a second time, it's attempting to register using a name that has already been used. Therefore, the app is unable to mount properly and the app crashes.
Sidenote
According to Apple's Docs on Share Extensions, we shouldn't need exit(0). There is no mention of it.
@alinz Maybe you can shed some light on this thread.

@isaachinman Have you experienced this bug? It seems like a noteworthy issue.

@AndrewHenderson Sorry for the delayed response - I have not seen this bug. My iOS apps are working as expected and can be launched as many times as desired.

@AndrewHenderson @rbscott  Thanks, your solution works for me, but I have my own approach.

I'm using share bridge
I call RNExitApp.exitApp() (from react-native-exit-app) right after call ShareExtension.close()

That solution works for me.

Thanks @RZulfikri that worked perfectly for me


Table of contents E2E Tests

@karam-qaoud are we still working on this? Can we close it out for now?

Closing since it's inactive


Fix disablePrepareDataQuery option

Codecov Report
Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.64%. Comparing base (380404d) to head (43dc11f).

Files with missing lines
Patch %
Lines

...rc/main/java/tech/ydb/jdbc/context/YdbContext.java
33.33%
0 Missing and 2 partials :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #84      +/-   ##
============================================
+ Coverage     79.62%   79.64%   +0.01%
  Complexity     2063     2063
============================================
  Files            61       61
  Lines          5614     5614
  Branches        657      657
============================================
+ Hits           4470     4471       +1
  Misses          864      864
+ Partials        280      279       -1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


CCDB GE/054 - Section A.2

Para 670
Comment:
"If the developer and evaluator agree that the flaw is exploitable only above Basic Attack Potential, but it is deemed critical to fix because of technology-specific or cPP-specific aspects such as typical use cases or operational environments, then a change is made by the developer, and the resulting resolution is agreed by the evaluator and noted as part of the evaluation report.":  What exactly does "technology-specific" mean?   Isn`t every IT product "technology-specific"?  I fear the above paragraph can be used to force a fix because of "technology-specific" reasons.  Seems like a catch-all argument to me.
Proposal:
Priority: 1

It can be a simple fix by removing "technology-specific".

Can move to v1.1 and remove the term.


[Improvement] Better visibility of POI popup

I think, a few points could be improved for the visibility of the POI popups.

Popups with a lot of data is very big and often not fully visible. Maybe you could add a scroll bar to its content.
Sometimes they open to the top and sometimes they open to the bottom even if that direction does not make much sense (close to the boarder), because the opposite direction has much more space.

is now fixed.

For 1., there is an issue with the ScrollArea component that I am using: it doesn't work with max-height at the moment (see https://github.com/melt-ui/melt-ui/issues/1202).
The default CSS scroll behavior shows an ugly bar even when the content is small enough so I am not satisfied with it.


Need the number of ovary samples for 2016

data table ovary-samples.csv

Melissa Head has verbally agreed to provide values. I will email her to make a specific request.
Have there been ovaries collected from Canada that should also be included in this table?

No ovaries have been collected in Canada so far. I need to make this happen on this year's survey.

Table is now larger to reflect more detail on time of sampling thanks to Melissa Head. Also, a "Total" row has been added that may need to be set apart with a horizontal line or something like that. I'll leave issue open until any needed formatting is sorted out.

Finished and closinng. See commit cc4969bb96103be7d0a3acf42b654b49cdf5ec87


Support a common version variable as clusterAPI, controlPlane and Kubeadm provider versions are usually the same.

User Story
As a user I would like to use a common provider version variable as capi, controlPlane and Kubeadm provider versions are usually the same.
Detailed Description
As a user, I have to pass the same version(Eg. 1.6.1) in 3 places to install a specific version of core, controlplane, kubeadm providers. Usually, all 3 provider versions are the same.
CAPI Operator Helm chart should support a common version that all 3 providers can use. If a common version is not found, provider-specific versions can take precedence.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
/kind feature

/triage accepted


Get bond data from .cube file

References #35
Be able to extract the bond data from the cube file in a format that will be applicable for rendering bonds between atoms. (Ipyvolume lines)

Figured out how the Cube class generates the adjacency list for atoms and the bond list, and calculated start and end points for future line graphing. Created PR.
[t:115]


Fix ConstanceForm validation

Account for cases where CONSTANCE_CONFIG_FIELDSETS is not set at all in ConstanceForm validation.

Thank you.


Incorrect optimization for keyof Mapped type

I have this Mapped type which creates a type with just those fields of T that are extended by B. It seems to work.
type FieldsExtendedBy<T,B> = {[K in keyof T as (B extends T[K] ? K :never)] : T[K]};
But this one, to extract the keys of those fields, doesn't:
type KeysExtendedByFails<T,B> = keyof {[K in keyof T as (B extends T[K] ? K :never)] : T[K]};
KeysExtendedByFails always includes all or none of the keys of the original T. I've setup a playground here, and hovering over the use of KeysExtendedByFails in the function bad in the playground example shows the definition has been incorrectly transformed to:
type KeysExtendedByFails<T, B> = B extends T[keyof T] ? keyof T : never
which is obviously wrong.
I have another definition,
type KeysExtendedByWorks<T,B> = keyof {[K in keyof T as (T[K] extends unknown ? (B extends T[K] ? K :never): never)] : T[K]};
which works - although T[K] extends unknown is pretty much a no op.
Also applying keyof to FieldsExtendedBy seems to work in the playground (versions 4.1.5 and later), but fails for me with 4.2.3. I assume there's a setting which is affecting whether it works or not.

This issues the same errors in the commandline as it does in the Playground for me.
I'm not sure about "obviously wrong" here? Is the bug that the definition isn't what you expect (please clarify), or that you're not getting the same errors in the playground?

Thanks for looking.
The "obviously wrong" comment was referring to keyof {[K in keyof T as (B extends T[K] ? K :never)] : T[K]} being "optimized" to B extends T[keyof T] ? keyof T : never - which seems to be what's going on, based on hovering over KeysExtendedByFails in the definition of bad, and on the behavior of KeysExtendedByFails (and its obviously wrong because the latter type always has all the keys of T, or selects never, while the former could select (almost) any subset, but can never produce never).
It also seems obviously wrong that KeysExtendedByFails behaves differently from keyof FieldsExtendedBy (and that it behaves differently from KeysExtendedByWorks for that matter, since T[K] always extends unknown)
Also, the fact that bad accepts all three keys of M, when only two of them should be accepted (since FieldsExtendedBy<M,B> only has fields b and c) seems wrong to me.
So to be as clear as possible: bad should not accept the key 'a', since its not a member of the underlying mapped type that keyof is being applied to.
Finally, yes, you're right, if I compile the playground example from the cli, it behaves exactly the same as the playground (ie KeysExtendedByFails gives incorrect results, KeysExtendedByWorks gives correct results, and keyof FieldsExtendedBy also gives correct results.
However, if I plug those definitions into my full project, KeysExtendedByFails gives incorrect results, keyof FieldsExtendedBy also gives (the same) incorrect results, and KeysExtendedByWorks gives correct results (but FieldsExtendedBy not qualified by keyof creates a mapped type with the correct fields). I've not yet managed to produce a cut down example that behaves that way in the playground.

I've found the problem code:
        // Ordinarily we reduce a keyof M, where M is a mapped type { [P in K as N<P>]: X }, to simply N<K>. This however presumes
        // that N distributes over union types, i.e. that N<A | B | C> is equivalent to N<A> | N<B> | N<C>. That presumption may not
        // be true when N is a non-distributive conditional type or an instantiable type with a non-distributive conditional type as
        // a constituent. In those cases, we cannot reduce keyof M and need to preserve it as is.
        function maybeNonDistributiveNameType(type: Type | undefined): boolean {
            return !!(type && (
                type.flags & TypeFlags.Conditional && (!(<ConditionalType>type).root.isDistributive || maybeNonDistributiveNameType((<ConditionalType>type).checkType)) ||
                type.flags & (TypeFlags.UnionOrIntersection | TypeFlags.TemplateLiteral) && some((<UnionOrIntersectionType | TemplateLiteralType>type).types, maybeNonDistributiveNameType) ||
                type.flags & (TypeFlags.Index | TypeFlags.StringMapping) && maybeNonDistributiveNameType((<IndexType | StringMappingType>type).type) ||
                type.flags & TypeFlags.IndexedAccess && maybeNonDistributiveNameType((<IndexedAccessType>type).indexType) ||
                type.flags & TypeFlags.Substitution && maybeNonDistributiveNameType((<SubstitutionType>type).substitute)));
        }

In this case, N is B extends T[K] ? K : never, and it clearly doesn't distribute over union types. But maybeNonDistributiveNameType returns false because type.root.isDistributive is true (its true whenever the checked type is a template parameter, and B is one), and then maybeNonDistributiveNameType((type).checkType)) is also false, since its just looking at B again.
This explains why my workaround works: In the workaround, we have T[K] extends unknown ? ..., and so type.root.isDistributive is false.
I'd never looked at the typescript source before yesterday, so its not really clear to me what the correct fix is; but it seems like it must at least involve checking type.extendsType in addition to type.checkType. Perhaps root.isDistributive should only be true if both type.checkType and type.extendsType are template parameters - but maybe that misses valid cases too; or maybe there are other uses of isDistributive that really don't care about the extendsType - in which case the fix should be in maybeNonDistributiveNameType itself.

One more observation... the fix has to also include checking the true and false types (presumably via additional recursive calls in maybeNonDistributiveNameType. Consider:
type KeysExtendedBy<T,B,P1,P2> = keyof {[K in keyof T as P1 extends P2 ? (B extends T[K] ? K : never) : never] : T[K]};

Now both checkType and extendsType are template parameters, but N still doesn't distribute over unions (at least, in the case where P1 extends P2).

And here's a new playground example that shows keyof FieldsExtendedBy failing.
In the original example, the B in B extends T[K] was no longer a type parameter by the time maybeNonDistributiveNameType was called (it was the actual class named B), and so type.root.isDistributed was false, and everything worked. By wrapping bad in a parameterized class, we can make it fail the exact same was as KeysExtendedByFails.
Again, wrapping the conditional in T[K] extends unknown ? ... : never (a no op) fixes it.

Here's my stab at a fix
If this looks like its on the right track I'm happy to add test cases and turn it into a pull request.


fix type error

It's hard to reproduce, but I get this error in docker with debian 10, ocaml 4.12 + flambda:
Step #11 - "docker-build--base-build": # error[E0277]: no implementation for `i64 | i32`
Step #11 - "docker-build--base-build": #   --> /home/opam/.opam/4.12/.opam-switch/build/batsat.0.7/vendor/ocaml-interop/src/conv/to_ocaml.rs:51:46
Step #11 - "docker-build--base-build": #    |
Step #11 - "docker-build--base-build": # 51 |         unsafe { OCaml::new(cr, ((self << 1) | 1) as RawOCaml) }
Step #11 - "docker-build--base-build": #    |                                              ^ no implementation for `i64 | i32`
Step #11 - "docker-build--base-build": #    |
Step #11 - "docker-build--base-build": #    = help: the trait `std::ops::BitOr<i32>` is not implemented for `i64`
Step #11 - "docker-build--base-build": #
Step #11 - "docker-build--base-build": # error: aborting due to previous error

of course it doesn't fail outside of it. I'm having trouble checking that this patch fixes it in the failing environment because opam + cargo-vendor is a pure nightmare, but this is still worth discussing?

@c-cube interesting, what version of rust are you using?

it should be the latest since it's using rustup, but tbh it's very deep inside a docker pipeline and it's super frustrating to understand why, for example, it fails on debian 10, but not on ubuntu 21 :scream:

@c-cube ok, I will produce a new release with this patch merged tomorrow (or maybe later today).

@c-cube if I make a new release with this patch will you be able to confirm if this fixes the issue?

yeah, I can try. I don't think the patch has any downside anyway.

No, of course not, it is just about being sure it solved the issue. Merging and triggering a new release now.

@c-cube I just published v0.8.8 with this change.

Yeah, seems to work!! Thank you!


Xz/luxor tensor plot

Add the viz tool LuxorTensorPlot as an extension of the OMEinsumContractionOrders.
Two function have been provided, viz_eins plots the tensor network, and viz_contraction generate videos of an contraction order.
For more detailed usage, see the revised README.md.

Please add some tests.

Added some dependency for the functions defined in src/visualization.jl and making sure they throw ArgumentError if the extension LuxorTensorPlot not loaded.

It is strange the the CodeCov seems not working correctly, the revised results are not uploaded properly.
{'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 2376s.', code='throttled')}

I made a few updates, please confirm the changes are reasonable.

Thanks a lot for your help, I think all changes are reasonable and greatly simplified the code.

Nice, I just made a minor release here: https://github.com/JuliaRegistries/General/pull/112375


Functions with different arities

Currying all functions restrict access to some functionalities. For example zipObject is no logger "The inverse of _.pairs":
_.zipObject([['fred', 30], ['barney', 40]]);
// => { [Function: wrapper] ...

Any way get that functinality back?

Yap, your suggested mapping looks more correct.


Snap fixes, Guidelines, and Gridlines

Hello,
This is the L.Draw half of a compound PR I'm sending to L.Draw and
L.Snap. The changes to L.Snap require the changes to L.Draw, but the
changes to L.Draw does not require the changes to L.Snap.
Notes:

I don't have a touch-capable device available until at least
Christmas, so if anyone can help check these changes w/ touch that would
be great.
I folded in the changes to L.Snap in Leaflet-Draw/docs/examples/libs,
so you can see all this stuff as
Leaflet-Draw/docs/examples/crssimple_snapping.html
I had intended to add write some real documentation for all this, but
this kiddo just won't sleep and I already had to merge all the changes
after 0.4.3 by hand, so I figure I better send this in now before I get
even more out of sync. I will send another PR with some actual words if
there's interest in this PR.

Changelist:
L.Draw

Bugfix that forces L.Draw to respect a map's maxbounds
very important for using L.Draw with L.CRS.Simple
only does anything if map.options.maxbounds is not null
new drawn layers (for all shape types) must be inside the max bounds
edited layers (for both move and resize, for all shape types) are
forced to stay inside the maxbounds
Some bugfixes to allow L.Snap to work in editmode with Leaflet 1.0
Various L.Draw events now pass much more information in the event
object. (needed for undo/redo)
Undo/Redo implemented as L.Draw.UndoManager
works with all draw and edit shape types
bound to ctrl-z/ctrl-y by default, but customizable
Bugfixed Poly self-intersection logic for draw and edit

L.Snap

Various bugfixes to allow it to work with L.Draw for Leaflet 1.0
Various bugfixes in L.Snap logic
Snap now works for all shape types (i.e. polymove, rect, circle, and
marker, not just polyline/polygon)
a new L.Draw.Guidelines class, which extends orthogonal lines to all
sides of a bounding box during draw/edit for all rectangles and circles
in drawnLayers
requires a bounding box, either a maxbounds on the map or passed in
options
works with snap
a new L.Draw.Gridlines class, which draws a grid
requires a bounding box, either a maxbounds on the map or passed in
options
can be set by either describing spacing or number of lines in the box,
in either latlng or pixels
works with snap
snap will always prefer to snap to drawn features (or their vertices,
if snapToVerticies is enabled) over Guidelines or Gridlines

Any news on this? I'm working with Leaflet1.0 and need snapping functionalitiy. I edited the GeometryUtil myself to enable snapping for polygons in Leaflet1.0, but still it only works for new Polylines and Polygons. Editing doesn't work at all.

@germanjoey We decided to fork this repo and leaflet.draw as well, because we really need the features and your fixes. If this is ok for you, I try to help to fix conflicts and any errors. What do you think @germanjoey ?

Sure. For the snap changes, I've split my grid and guideline changes into
its own module. Are you still interested in that, or are you just
interested in the fixes for L.Snap that make it work with L.Draw?
Joe
On Tue, Jun 27, 2017 at 1:54 AM, Vinzenz Rosenkranz <
<EMAIL_ADDRESS>wrote:

@germanjoey https://github.com/germanjoey We decided to fork this repo
and leaflet.draw as well, because we really need the features and your
fixes. If this is ok for you, I try to help to fix conflicts and any
errors. What do you think @germanjoey https://github.com/germanjoey ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/makinacorpus/Leaflet.Snap/pull/40#issuecomment-311296006,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAzNEofFH18WM3n295XVJ8O5m_48iF0-ks5sIMMsgaJpZM4LJpd-
.

Thanks for your reply!
What do your changes include? :wink:
We need at least a working L.Snap and L.Draw. If your module has any new features this may be a good addition for our project, depending on the features.

Any chance this PR gets merged @makinacorpus ?

Thanks you for your support


IllegalStateException: ... already opened with different schema version.

Hello,
I have an issue opening Realm-Kotlin database after an automatic migration on iOS application which uses also RealmSwift.
I can't provide the logs tested on the live app.
Context:

We have an android app using Realm-Java.
We have an iOS app using RealmSwift.
We want to migrate both apps to Realm-Kotlin, but it's not possible to do it in one shot.

We have a situation where the Property for the same Schema is a bit different between platforms, this example simulates our case:
Android
class Sample : RealmObject {

    @PrimaryKey
    var id: String? = null

    var name: String? = null

    var street: String? = null
}

iOS
final class Sample: Object {

    @objc dynamic var id: String = ""
    override public static func primaryKey() -> String? {
        return "id"
    }

    @objc dynamic var name: String?

    @objc dynamic var address: String?
}

We can see the difference is street and address in the Sample Schema.
What I chose to do is "manually" merge the Schema for the shared KMM Schema to be "compatible" with both platforms:
KMM
class Sample : RealmObject {

    @PrimaryKey
    var id: String? = null

    var name: String? = null

    var street: String? = null

    var address: String? = null
}

after this, I Incremented the Schema Version when opening the Realm-Kotlin / platform.

On Android, the automatic migration is triggered and the "Shared" database can be opened and queried.
On iOS after the migration we have IllegalStateException: .... already opened with different schema version. (Trimmed the log).

I checked and according to the official documentation of RealmSwift, the database is kept open until ARC handles it.
I am unsure if this is the correct approach and if there is a way to handle this correctly. I could not find information about it.
The realm versions that were used is to have the same RealmCore version (different issue on iOS):

realm-swift-sdk: 10.35.0
realm-kotlin-sdk: io.realm.kotlin:library-base:1.7.0-SNAPSHOT

It seems that RealmSwift has opened the realm file before Realm-Kotlin, and both SDKs use a configuration with a different schema version.
Aligning the version number should allow opening the Realm. However, we don't recommend opening the same file with two different SDKs. Depending on the SDK version they might be using a different core version that might lead to corruption, and we don't guarantee that notifications on data change as it has not been tested.

@clementetb,
yes, you are right that there is a difference in version number, I tried to explain that because of inconsistency between the Schemas, I am migrating to a "common" Schema that can be used by both platforms.
On Android side, this is working because we close the "file" after the transactions, but on the iOS part is not because the previous one remains open.
I am sure that we don't live in an "ideal" world and this case should not be unique 😿 , so for the existing applications which want to migrate to KMM with Realm-Kotlin and used the "native" SDKs of realm before... I don't see a good solution at the moment on how to do the "extraction".
The workaround that I tried is using expect/actual and it works, but it brings a big overhead.

However, we don't https://github.com/realm/realm-kotlin/issues/1278#issuecomment-1425866709 opening the same file with two different SDKs.

I did understand it before but unfortunately, we can't avoid it 🥲 .
Thank you for the quick reply.


Add data migration to reformat old policies.

[x] Product signoff
[x] Final copy signoff
[ ] Code signoff

This takes the old policies with their verbose content of supporting pages and attachments, and merges them into a single policy paper for each policy.
The original policies will be replaced with equivalents in the new policy format.
The main content of the new policy paper appears as an HTML attachment.
Supporting page content is appended to the HTML attachment as appendices, with their headers indented by one notch.
Attachments orderings are reset when they're merged together.  They have never been manually ordered.
Inline attachments in supporting pages are injected appropriately into the HTML attachment.
Notices are injected into the HTML attachment indicating the provenance of the content.
More information here: https://trello.com/c/TId1MPNH/120-convert-existing-policy-pages-into-html-attachments-to-new-publications
Policy paper:

[..cut attachments..]

HTML attachment:

[..cut..]

[..cut..]

Happy with this on the basis that subsequent discussions with content may require changes to the detail of the policy paper splash page and the introductory notice on the HTML attachment itself.

Updated policy paper body as per https://trello.com/c/TId1MPNH/120-convert-existing-policy-pages-into-html-attachments-to-new-publications
Now only needs code signoff.

The story on trello seems to indicate that the documents should be scheduled for publication. As this migration stands, it only creates the new publications as draft documents with no scheduling. Is the story correct or the code?

This migration could include the scheduling but I'd like to do that separately and closer to the time, as I'd rather not have to reschedule them later.

:+1:


Need python3 to build latest docker image

Hi,
building the platformatic:latest image on docker file require the Python3 .gyp  and g++ to build better-sqlite3 package.
But I don't use sqlite3.  Why I need to install python3 to build my platformatic project ?
This is my docker file, can be it optimized ?
FROM platformatic/platformatic:latest
USER root
RUN corepack enable && corepack prepare pnpm@latest --activate
RUN apk add --no-cache --virtual .gyp python3 make g++
WORKDIR /app
COPY . .
RUN pnpm install --fix-lockfile --frozen-lockfile && \
    pnpm run build && \
    apk del .gyp
EXPOSE 5011
CMD ["platformatic", "start"]
#ENTRYPOINT ["tail", "-f", "/dev/null"] // Allows developers to exec bash command to debug container internals

We are aware of this problem and we plan to fix it in v2.

When it is planned the v2 ?

Likely after Fastify v5 comes out, sometimes between July and September (likely September).


Publishing changes from within view updates is not allowed, this will cause undefined behavior.

getting purple warning in Xcode 14
Publishing changes from within view updates is not allowed, this will cause undefined behavior.

Seeing this as well.

After Xcode and iOS 16 update

Same issue for Xcode 14 and iOS 16

+1

You can take a look at #222 and #225.

Thank you for looking into this. I am seeing this affect our app when iOS 16 was released.

Please have a try with v2.1.0

Thanks :)


support ipython 3 and nbformat v4

Presently notedown requires ipython 1 or 2 to work. Version 3 uses a new
notebook format (the v4 notebook) that I haven't got around to implementing.

:+1: !!! =(

Now using (and requiring) ipython 3 and using the v4 notebook format. Can still read any older notebook format, but all notebooks written out will be v4.

:+1:


Can I use vgpu-scheduler-extender only？

1. Issue or feature description
Hi, I am still using Kubernetes version 1.11 in the production environment.
After research, I found that the HAMi project's GPU scheduling and compute/memory isolation modules meet our needs. I would like to inquire if it is possible to tailor the HAMi project to exclude the hami-scheduler for global unified scheduling, and instead only handle the GPU scheduling part( combined the vgpu-scheduler-extender with our kube-scheduler 1.11). If feasible, I hope to get your response and some suggestions for furthe custom development.
Waiting for your reply.

@lengrongfu @archlitchi

Can you describe your needs in detail?
Currently, HAMi extends the second kube-scheduler through the scheduler-extender method. If you do not need an additional scheduler, you can also add a sidecar extension to the existing kube-scheduler.

Can you describe your needs in detail?
Currently, HAMi extends the second kube-scheduler through the scheduler-extender method. If you do not need an additional scheduler, you can also add a sidecar extension to the existing kube-scheduler.

get it


If no 'agreements' item, do not generate 'Accept terms of use' title in wizards

Changed resource-deployment so that an 'Accept terms of use' title will not be generated if no agreements item is in place.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 4 (0.0%)  changed or added relevant lines in 1 file are covered.
5 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.007%) to 42.246%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/resource-deployment/src/ui/toolsAndEulaSettingsPage.ts
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

extensions/resource-deployment/src/ui/toolsAndEulaSettingsPage.ts
1
2.96%

extensions/notebook/src/common/ports.ts
4
74.14%

Totals

Change from base Build<PHONE_NUMBER>:
0.007%

Covered Lines:
28181

Relevant Lines:
62340

💛  - Coveralls


mention the ami region as us-west-2

Added a note on ami region.
Closes #64

Thanks for adding this note!


fails to install with stackage lts-3.0 / ghc 7.10

This package looks useful, thanks. stack install failed for me:
$ stack install htoml
unbounded-delays-<IP_ADDRESS>: configure
logict-<IP_ADDRESS>: download
regex-tdfa-rc-<IP_ADDRESS>: download
unbounded-delays-<IP_ADDRESS>: build
logict-<IP_ADDRESS>: configure
logict-<IP_ADDRESS>: build
regex-tdfa-rc-<IP_ADDRESS>: configure
unbounded-delays-<IP_ADDRESS>: install
regex-tdfa-rc-<IP_ADDRESS>: build
logict-<IP_ADDRESS>: install
smallcheck-1.1.1: download
smallcheck-1.1.1: configure
smallcheck-1.1.1: build
smallcheck-1.1.1: install
regex-tdfa-rc-<IP_ADDRESS>: install
tasty-<IP_ADDRESS>: download
tasty-<IP_ADDRESS>: configure
tasty-<IP_ADDRESS>: build
tasty-<IP_ADDRESS>: install
tasty-hunit-0.9.2: download
tasty-hunit-0.9.2: configure
tasty-quickcheck-<IP_ADDRESS>: download
tasty-smallcheck-<IP_ADDRESS>: download
tasty-hunit-0.9.2: build
tasty-quickcheck-<IP_ADDRESS>: configure
tasty-hunit-0.9.2: install
tasty-quickcheck-<IP_ADDRESS>: build
tasty-smallcheck-<IP_ADDRESS>: configure
tasty-smallcheck-<IP_ADDRESS>: build
tasty-quickcheck-<IP_ADDRESS>: install
tasty-smallcheck-<IP_ADDRESS>: install
tasty-hspec-1.1: download
tasty-hspec-1.1: configure
tasty-hspec-1.1: build
tasty-hspec-1.1: install
htoml-<IP_ADDRESS>: download
htoml-<IP_ADDRESS>: configure
htoml-<IP_ADDRESS>: build
Completed all 10 actions.

--  While building package htoml-<IP_ADDRESS> using:
      /Users/simon/.stack/setup-exe-cache/setup-Simple-Cabal-<IP_ADDRESS>-x86_64-osx-ghc-7.10.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-<IP_ADDRESS>/ build --ghc-options  -ddump-hi -ddump-to-file
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/simon/src/hledger/.stack-work/logs/htoml-<IP_ADDRESS>.log

    Configuring htoml-<IP_ADDRESS>...
    Building htoml-<IP_ADDRESS>...
    Preprocessing library htoml-<IP_ADDRESS>...
    [1 of 3] Compiling Text.Toml.Types  ( src/Text/Toml/Types.hs, .stack-work/dist/x86_64-osx/Cabal-<IP_ADDRESS>/build/Text/Toml/Types.o )
    [2 of 3] Compiling Text.Toml.Parser ( src/Text/Toml/Parser.hs, .stack-work/dist/x86_64-osx/Cabal-<IP_ADDRESS>/build/Text/Toml/Parser.o )

    src/Text/Toml/Parser.hs:83:5:
        Non type-variable argument in the constraint: Stream s m Char
        (Use FlexibleContexts to permit this)
        When checking that ‘twoChar’ has the inferred type
          twoChar :: forall s u (m :: * -> *).
                     Stream s m Char =>
                     Char -> ParsecT s u m [Char]
        In an equation for ‘tableArrayHeader’:
            tableArrayHeader
              = between (twoChar '[') (twoChar ']') headerValue
              where
                  twoChar c = count 2 (char c)

    src/Text/Toml/Parser.hs:177:25:
        Couldn't match expected type ‘time-<IP_ADDRESS>:Data.Time.Format.Locale.TimeLocale’
                    with actual type ‘System.Locale.TimeLocale’
        NB: ‘time-<IP_ADDRESS>:Data.Time.Format.Locale.TimeLocale’
              is defined in ‘Data.Time.Format.Locale’ in package ‘time-<IP_ADDRESS>’
            ‘System.Locale.TimeLocale’
              is defined in ‘System.Locale’ in package ‘old-locale-<IP_ADDRESS>’
        In the first argument of ‘parseTime’, namely ‘defaultTimeLocale’
        In the expression:
          parseTime defaultTimeLocale (iso8601DateFormat $ Just "%X") d

Just ran into the same thing.  It looks like master fixes this.  To work around this using stack I:
Forked this version: https://github.com/HuwCampbell/htoml.
Made a dir in my project called "forks"
Cloned my fork into it.
Merged the toml4 branch into master
Added 'forks/toml' to the packages list in stack.yaml
Building works.  I haven't tested it throrougly enough to say if anything is broken but it seems to be handling my simple use cases.

@cies any chance of a hackage upload for <IP_ADDRESS>?

Sorry guys for not replying earlier. I totally must have forgotten about the <IP_ADDRESS> release, I'll upload it to Hackage soon.
I'm also much interested in bringing the changes of @HuwCampbell back into master. @HuwCampbell, could you please elaborate on the state of your toml4 branch?

Hackage upload is done: https://hackage.haskell.org/package/htoml

thanks @cies!


feat(docker): speed up docker build.

As title. See the ref: https://semaphoreci.com/docs/docker/docker-layer-caching.html
before
Build time: 02:14 Link
after
Build time: 01:31 Link

Codecov Report

Merging #6159 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6159      +/-   ##
==========================================
- Coverage   38.83%   38.81%   -0.02%
==========================================
  Files         354      354
  Lines       50174    50174
==========================================
- Hits        19485    19477       -8
- Misses      27866    27875       +9
+ Partials     2823     2822       -1

Impacted Files
Coverage Δ

models/unit.go
0% <0%> (-14.29%)
:arrow_down:

models/repo_list.go
66.84% <0%> (-1.06%)
:arrow_down:

routers/repo/view.go
41.08% <0%> (-1%)
:arrow_down:

Continue to review full report at Codecov.

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


[WIP] Add initial CircleCI configuration

Signed-off-by: Ian Campbell<EMAIL_ADDRESS>

Would it make sense to build these in alpine not stretch?

Possibly the wrong place to ask but are issues meant to be turned off in this repo?
If so, a note in the readme would be helpful :)

slack would have been better.
issues are off until we a ready to cut over.

@justincormack some of the circle stuff (such as the mechanisms for setting $PATH) rely on /bin/sh being bash not busybox, it could probably be made to work, but for now the path of least resistance is to stick with Debian instead of alpine.

OK, this adds a reasonable enough baseline (builds all the packages and checks the yml files are up to date). Please review so we can merge this and I will add image building and other improvements in one or more followups.
/cc @rn @justincormack

Ok. The circleci config is looking a bit too much like a Makefile for my taste, can we move stuff into the actual Makefile?


IE11 error "unable to get property '_lightChildren' when component is just a  tag

If you create a component such as:
<link rel="import" href="../bower_components/polymer/polymer.html" />

<dom-module id="test-component">
    <template>
        <content></content>
    </template>
</dom-module>

IE11 will throw an error when the page is rendered.  It seems the page renders OK, but if you use "unresolved" on the body of your page, it will never resolve.
If you add an html tag around <content> such as a

<link rel="import" href="../bower_components/polymer/polymer.html" />

<dom-module id="test-component">
    <template>

            <content></content>

    </template>
</dom-module>

Then it works just fine.  If you use a paper-material in your page and "unresolved" it will never be removed in IE11, since paper-material's template is just <content></content>.

@rictic Since we've discovered this is a webcomponentsjs issue, can you close this in favor of that one when it's filed? Thanks.


Fetcher testing

Motivation for this change
Make maintenance easier on the fetchers and avoid problems.
The packageTests attribute will serve two purposes:

for ofborg: allow it to build tests in a __functor attrset like fetchgit
for hydra, potentially, build the package tests. Enabling these is not part of this PR.

Closes #133739
Refs #128749 #135881 or really all of topic: fetch
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Not picked up automatically by ofborg, as expected. So,
@GrahamcOfBorg build packageTests.fetchgit

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/593

probably needs documentation in doc/builders/fetchers.chapter.md?

can't get this to work
diff --git a/pkgs/build-support/fetchfirefoxaddon/tests.nix b/pkgs/build-support/fetchfirefoxaddon/tests.nix
new file mode 100644
index<PHONE_NUMBER>0..05ee43aba29
--- /dev/null
+++ b/pkgs/build-support/fetchfirefoxaddon/tests.nix
@@ -0,0 +1,10 @@
+{ invalidateFetcherByDrvHash, fetchFirefoxAddon, ... }:
+
+{
+  simple = invalidateFetcherByDrvHash fetchFirefoxAddon {
+    name = "image-search-options";
+    # Chosen because its only 147KB
+    url = "https://addons.mozilla.org/firefox/downloads/file/3059971/image_search_options-3.0.12-fx.xpi";
+    sha256 = "1h768ljlh3pi23l27qp961v1hd0nbj2vasgy11bmcrlqp40zgvnr";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 161c48a3d48..d14a587eb11 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -516,7 +516,10 @@ with pkgs;

   fetchhg = callPackage ../build-support/fetchhg { };

-  fetchFirefoxAddon = callPackage ../build-support/fetchfirefoxaddon {};
+  fetchFirefoxAddon = callPackage ../build-support/fetchfirefoxaddon { }
+    // {
+      tests = callPackages ../build-support/fetchfirefoxaddon/tests.nix;
+  };

   # `fetchurl' downloads a file from the network.
   fetchurl = if stdenv.buildPlatform != stdenv.hostPlatform

nix-repl> packageTests.fetchgit
{ recurseForDerivations = true; simple = «derivation /nix/store/5rl9by8nifg2k25rzp3yw5fdj303r6qn-nix-source-salted-v839ywjgprrp.drv»; }

nix-repl> packageTests.fetchFirefoxAddon
error: value is a function while a set was expected

Diffception.

-+      tests = callPackages ../build-support/fetchfirefoxaddon/tests.nix;
++      tests = callPackages ../build-support/fetchfirefoxaddon/tests.nix { };

I also fall into this trap every now and then, fwiw.

documentation

yes.

will having all the expressions in packageTests.X slow something(eval?) down
would it be possible to only have the ones that have tests be there
~is packageTests even needed since
nix build ".#fetchgit.tests.simple" works?~
stable nix doesn't work like thatnix-build -A fetchgit.tests.simple

will having all the expressions in packageTests.X slow something(eval?) down

This adds about as much overhead as a package would. In most use cases it would go unnoticed like any other package. In cases where the whole of Nixpkgs is traversed, those traversals look for the recurseForDerivations attribute, which is unset inside packageTests, causing it to be skipped. This works for nix-build (which shouldn't be used on all of Nixpkgs anyway) and it works for Hydra/release.nix. In this case, the attribute names are copied into memory once more, but this is still insignificant and the same happens for pkgsStatic etc.

@ofborg eval

How would one run all the packageTests?

@Artturin you generally would, if you mean literally all.
@GrahamcOfBorg build packageTests.fetchgit

Not sure if I tested this or just assumed it still uses nix-build and suffers from its functor problem.
@GrahamcOfBorg build fetchgit.tests

Confirmed. Ofborg tries to autocall the functor instead of using the attribute.
Cannot nix-instantiate `fetchgit.tests' because:
error: cannot auto-call a function that has an argument without a default value ('url')

I'll leave ofborg out of scope for now and merge this when ofborg is done.


Cython extension not building on Windows

In the process of getting PyAbel on conda-forge, I noticed that the Cython extensions were failing on AppVeyor. It looks like some of our attempts to supress the warnings from the C-compiler may be causing problems: https://ci.appveyor.com/project/DanHickstein/pyabel/build/1.0.493
C:\Miniconda3\envs\abel-env\Scripts\gcc.bat -mdll -O -Wall -IC:\Miniconda3\envs\abel-env\lib\site-packages\numpy\core\include -IC:\Miniconda3\envs\abel-env\include -IC:\Miniconda3\envs\abel-env\include -c abel\lib\direct.c -o build\temp.win32-3.4\Release\abel\lib\direct.o -Wunused-function -Wunneeded-internal-declaration -Wno-#warnings
gcc.exe: error: unrecognized command line option '-Wunneeded-internal-declaration'
**************************************************
WARNING: Cython extensions failed to build (used in abel.direct).
Typical reasons for this problem are:
  - a C compiler is not installed or not found
  - issues using mingw compiler on Windows 64bit (experimental support for now)
This only means that the abel.direct C implementation will not be available.

Perhaps we should simple remove these flags and accept that fact that the C-compiler will spam us with lots of warnings during install?

@DanHickstein Do you think it's related to https://github.com/PyAbel/PyAbel/issues/125 ? if so I can look into it this tomorrow.
I'm +1 on removing those custom warning related flags in setup.py (as they are compiler specific): if we want to remove them from the install stdout, a better way IMO would be fix the corresponding code in Cuython rather than hiding the warning.

Yeah, it's likely that we broke things by trying to make the install process less verbose. If you have time to fix the Cython, then this would be great! Otherwise, we should probably remove all of the warning suppressions from the compiler arguments, since we are seeing that they cause problems for different compilers.

In the process of submitting PR https://github.com/PyAbel/PyAbel/pull/184, I noticed that PyAbel fails the AppVeyor build, with an error relating to the Cython code: https://ci.appveyor.com/project/DanHickstein/pyabel/build/1.0.495
So, it seems that we are not doing a perfect job of allowing the C-compile to fail while successfully installing the rest of PyAbel. Also, we are down to just one AppVeyor build (Py2.7 on 32-bit). It would be nice to see if we can re-enable to rest of the tests on windows, even if we cannot get the Cython to work in all cases.

Okay, to summarize, we removed all of the "warning suppression" flags from the compiler, which seems like a good long-term decision to avoid problems.
We were able to get the Cython extensions to build on AppVeyor, but only when it uses the MSVC 2015 compiler, which is does only for Py3. For Py2 builds, AppVeyor uses MSVC 2008, which doesn't have the acosh function, and fails. Attempts to substitute acosh with it's mathematical formula acosh(x) = ln(1 + sqrt(x**2-1)) mysteriously didn't produce the same results and failed the unit test.
Current status is that we are not building the Cython extensions on AppVeyor for Py2.

@rth, Judging from the conda-forge builds, it looks like AppVeyer uses MSVC 2008 for Py3.4 as well. Could you add also disable Cython extensions for Py3.4 as well?
https://ci.appveyor.com/project/conda-forge/staged-recipes/build/1.0.10470/job/7hq5dj95vqvbq694

No doubt a typo above, but:  acosh(x) = ln(x + sqrt(x**2-1)). However, I wonder what happens when x <0.

Attempts to substitute acosh with it's mathematical formula acosh(x) = ln(1 + sqrt(x**2-1)) mysteriously didn't produce the same results and failed the unit test

Py3.4  uses Microsoft Visual Studio 10.0 / 2010, which seems to have the same issue.  I'll give another shot at replacing acosh by it's definition..

Yeah, that was a typo above. Acosh is only defined above 1. But, np.sqrt returns nan for values less than 0, so I think that @rth's code should have worked fine.

Oh, I think I see the issue. In @rth's previous attempt, he used:
 +cdef inline double acosh(double x) nogil:
 +    return log(x + sqrt(x**2 + 1))

which is actually asinh. acosh swaps the last + for a -.

Checking the direct.py code, I see that arccosh is only used for correction = True and

correction : boolean

   if False integration is performed with the Simpson rule,
    the pixel where the weighting function has a singular value is ignored
    if True in addition to the integration with the Simpson rule,
    integration near the singular value is done analytically,
    assuming a piecewise linear data.

So, in principle a C preprocessing statement could ignore the acosh for the compiler, providing an implicit correction = False for the crummy MSVC.

Good catch @DanHickstein , feels like there is a type in every other message / commit these last few days.
I won't be able to make a commit fixing it today, but feel free to do so. Just adding that corrected function to the cython file  and removing the acosh cimport should fix it (the setup.py should be fine as it is now)...
@stggh yes, but it's C, so the linker is still looking to find references to all functions mentioned in the code and that one is missing...

P.S: but if that's the problem I'm rather  worried about Travis CI tests still passing even with such error https://travis-ci.org/rth/PyAbel/jobs/189767399

@rth, I meant as a preprocessor directive, #ifdef XXX dependent on the compiler. The compiler would then not see the acosh code. Although, I must admit I am not sure how this is done.

@stggh Aww, right, sorry I misread your message.  This might be relevant then (I have never tried doing preprocessing directives from Cython either)...

Neat! Cython makes available UNAME_SYSNAME, UNAME_NODENAME, UNAME_RELEASE, UNAME_VERSION, UNAME_MACHINE. It all depends on what these variables look like for MSVC < 2015?  Then in direct.pyx add, above line 70:
               if UNAME_XXX != whatever corresponds to old MSVC:
                   if j < N1 - 1 and correction == 1:

I am still guessing here ;-)
For Travis CI, many of the direct tests are skipped. I presume @DanHickstein and @rth are looking into this?

Note that our acosh function definition eliminates every system from using the inbuilt function, if available. In the longer term, if applicable, the if UNAME_XXX approach may be better.

@stggh, Are you assuming that our acosh function is going to be considerably slower than the built-in one? My guess is that it's not going to make a huge difference, but I could be wrong. If it is much slower, then it's probably worth it to include some if-statements to change the compiler preferences.

Yes, but you are probably usually right. ;-)

Closing this issue, since it seems like we have the Cython code building with the new acosh function.


Misc UI Cleanup

Ensure that spacing is consistent across Mobile/Desktop forms. Create related issues if scope is not small.

@kyleboe Can you add more detail to this ticket so we can triage? We're not sure what the issue is. Thank you!

Yeah, this issue is too broad. I think it was a placeholder for @kyleboe to follow up directly. I'm going to close it and we can open issues for specific tasks.


Update SCHEMA_OVERVIEW_DOC.md

@bradh thanks much for the submission. Good call on the plurals, but we actually do support APP-6 and MIL-STD-2525. I'll fix that.

There was an earlier commit that took the APP-6 support out. Maybe treating them as the same standard with different labels (as of -2525D / -6(D) at least) might make it easier.


tests: add time command in vagrant_up.sh

monitor how long it takes to get all VMs up and running
Signed-off-by: Guillaume Abrioux<EMAIL_ADDRESS>

jenkins test centos-container-all_daemons

jenkins test centos-container-all_daemons

jenkins test centos-container-all_daemons


Blackmagic Hyperdeck REC Feedback

Describe the feature
Is it possible to have a feedback from hyperdeck? Would be nice to have the chance to change button color while recording!
Usecases
Well if you have your hyperdeck in another room or anyway you can't turn to watch the red rec button, would be great to be able to check the recording status

Duplicate of #3


Add Brunei Darussalam holidays

Useful links:

https://en.wikipedia.org/wiki/Public_holidays_in_Brunei
https://www.timeanddate.com/holidays/brunei/

I'm working on this at the moment, though I've yet to find the relevant legal clause on in-lieu holidays being observed on the following Monday yet based on ASEAN's 2022 and 2023 calendar.

Gonna move the to-do codes here for possible #1168 extensions should anyone be up for it:
# Former Holidays
# This section is here should we extend our calendar coverage later on.

# Good Friday
# Good Friday
# Status: No longer observed post-Independence.

# Freedom Day
# Hari Kebebasan
# Status: No longer observed.
# Commemorating the landing of the Allies in Muara to liberate Brunei
#   on June 10, 1945. Presumed to be observed from 1946-1983.

# Queen Elizabeth II's Birthday
# Hari Lahir Queen
# Status: No longer observed.
# Observed on June, 12 from 1952-1983.

# Sultan Omar Ali Saifuddien III's Birthday
# Hari Lahir Duli Yang Maha Mulia
# Status: No longer observed.
# Observed on September, 23 from 1950-1967.

# Safar Bath
# Mandi Safar
# Status: No longer observed.
# Observed on last Wednesday on the month of Safar until around 1963.

Implemented in #1168.


chore: enable noImplicitAny

This was fairly painful.  It ain't perfect, but it gives us a good starting point to improve the typing now as we move along.  Resolves #69.

Codecov Report

Merging #101 into master will decrease coverage by 0.24%.
The diff coverage is 95.49%.

@@            Coverage Diff             @@
##           master     #101      +/-   ##
==========================================
- Coverage   98.46%   98.22%   -0.25%
==========================================
  Files          15       15
  Lines        2807     2816       +9
  Branches      161      166       +5
==========================================
+ Hits         2764     2766       +2
- Misses         24       26       +2
- Partials       19       24       +5

Impacted Files
Coverage Δ

test/operation.ts
99.44% <100%> (-0.01%)
:arrow_down:

test/service.ts
99.57% <100%> (ø)
:arrow_up:

test/logger.ts
100% <100%> (ø)
:arrow_up:

src/service.ts
93.22% <100%> (ø)
:arrow_up:

src/service-object.ts
98.36% <100%> (ø)
:arrow_up:

test/paginator.ts
100% <100%> (ø)
:arrow_up:

src/paginator.ts
100% <100%> (ø)
:arrow_up:

test/service-object.ts
97.87% <83.72%> (-1.17%)
:arrow_down:

src/util.ts
95.91% <90.32%> (-0.64%)
:arrow_down:

test/util.ts
97.9% <99.18%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Train on other language

Hello, this is amazing.
I want to ask is it can be trained in other languages, or even if can be trained in multiple languages at the same time.

Hi, thanks for your attention.
StreamSpeech architecture can support multilingual speech-to-speech translation, which we have also explored above. Since multilingual is not the core highlight of this work, we did not cover it in our paper.
If you want to train a multilingual StreamSpeech on CVSS-C, you only need to modify the data processing part. The training part is the same.

Change lang in preprocess_scripts/preprocess.sh into 'all'
Appropriately adjust vocab-size in preprocess_scripts/7.prep_cvss_c_multitask_asr_data.sh to support multilingual vocabulary.

Hope these can help you.

Hi, how much memory does the model need for training? How long did the training take for 4 NVIDIA RTX 3090 GPUs?
Thanks!

Hi, what changes should be made for speech translation to a language other than English, what parts need to be modified apart from data processing?
Thanks!

@thetushargoyal
Hi, the training takes less than 1 day on 8 NVIDIA 3090 GPUs.

Hi, thanks for your attention. StreamSpeech architecture can support multilingual speech-to-speech translation, which we have also explored above. Since multilingual is not the core highlight of this work, we did not cover it in our paper.
If you want to train a multilingual StreamSpeech on CVSS-C, you only need to modify the data processing part. The training part is the same.

Change lang in preprocess_scripts/preprocess.sh into 'all'
Appropriately adjust vocab-size in preprocess_scripts/7.prep_cvss_c_multitask_asr_data.sh to support multilingual vocabulary.

Hope these can help you.

Thanks for this information. Ihave the following questions?

How can we train with our data?
Is it possible to use some Hugging face pre-trained model on something like En-ar, if Yes? How can I do that.
Thank you for answering.


POKEDEX- An API based -pokemon searching app using react.js

@Ayush-Vish okay add this one also update in index.html

@ianshulx  Sure.


Generate Documentation(Probably Swagger) for auto generated Endpoints

Implemented in this PR https://github.com/BdVade/DjangoRestAdmin/pull/15


Add configuration file

A simple .ini to allow some settings to be persistent on start (background color, aliasing, window size, etc.)

This one I actually like quite a bit..
Do you think it should automatically save the most recent configuration? Either way, I'd do the config file in plain text, so you can edit it manually..


Use ParseInt to replace stoul, stoull, atoi and stoi

Use parseint to replace stoul, stoull, atoi and stoi.

@tanruixiang , you can also replace atol and atoll and other sto* or ato* in this PR. They belong to one function series.

Hi @tanruixiang , you can also replace atol, atoll and other sto* or ato* in this PR if you like.
They belong to one function series, you can check cppreference to ensure all functions in this series are included.

Thank you very much. All of these I found have been replaced(After checking it did miss one), and not all of them are written in the title.

I'm very sorry, this pr was closed due to misoperation. Moved here.


Enhancements for api.pandorabots.com

now support:
botkey functionalities

Oh I just realized this branch still has none of the commits on master...
Closing this one - I'll help you fix.


Parse quoted names in qualified names

As I alluded to in #40679, the real root cause of #40152 is that we can't even reference the type-side of the non-identifier enum members via a type reference, because the reference syntax has no allowances for non-identifier names. This PR allows the type-side of non-identifier exports to be referenced within the type system via references of the form NS."string name". Meaning you can now have code like this:
// @filename: export.js
exports["a thing"] = class {
    a;
    b;
}
// @filename: usage.ts
import * as ns from "./export";

export const instance: ns."a thing" = new ns["a thing"]();

Or like this:
// @filename: a.ts
export enum Foo {
    "1-1",
    "1-2"
}
// @filename: b.ts
import {Foo} from "./a";

export type FooFirst = Foo."1-1";

If we want to take this (and I think we do, between current enum and js exports and upcoming wasm exports), we probably want to do it after master has swapped to 4.2, since the 4.1 beta has been cut - so there's not much time pressure to look into this yet - I just wanted to have this ready and available for consideration and discussion. We may also want to pair it with additional syntax on the declaration side to allow the declaration of non-identifier export names in ambient contexts (eg, export const "a thing": Type;) - so js files (and upcoming wasm files) can be better represented with a declaration file.

@typescript-bot pack this

Unfortunately, we never finished reviewing this PR. It is pretty old now, so I'm going to close it to reduce the number of open PRs.


IndexError: index 1 is out of bounds for axis 0 with size 1

def _predict_proba(self, phrases):
    features = [self._compose_feature(phrase) for phrase in phrases]
    pos_probs = [prob[1] for prob in self.classifier.predict_proba(features)] (**prob[1] in this line**)
    pairs = [(phrase, prob) for phrase, prob in zip(phrases, pos_probs)]
    return pairs

the problem have been submitted


Fix/typing

:tada: This PR is included in version 1.1.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Profile Sidebar keeps open after navbar select

Is there an existing issue?

[X] I have searched the existing issues

What happened?
desktop

mobile

Please reproduce in steps

Expected Behavior

What browsers are you seeing the problem on?
No response
At which address did you encounter bug?
No response
Are you logged in?
None
Which wallet you are using?
No response
At which chain did you encounter bug?
No response
Screenshots

Wallet Address & Transaction hash
No response
Relevant log output
No response
Payment link for reward
https://canary.kodadot.xyz/dot/transfer/?target=<My_Polkadot_Address_check_https://github.com/kodadot/nft-gallery/blob/main/REWARDS.md#creating-your-dot-address>
Code of Conduct

[X] I agree to follow this project's Code of Conduct

👋


Sorting structural variants by length doesn't work

Currently sorting structural variants by variant length does not work. Clicking the table column header does nothing.

Not reproducible. This possibly was fixed with the pagination issue (#1268). Closing


Web development - Table categorized #70

Fixes Issue
Closes: #70
Description:
Categorize the resources in tutorials section into different section: Front End, Back End, and Full Stack Development for improved user navigation and added h4 for headings
Checklist:
Before submitting your pull request, ensure that you have completed the following tasks:

[x] I have carefully reviewed and adhered to the contributing guidelines before creating this pull request.
[ ] I followed the prescribed PR title template. (Check this if you're adding a resource)

Thanks @jfmartinz

Hey @jfmartinz, can you please add the hacktoberfest label as well

Hey @jfmartinz, can you please add the hacktoberfest label as well

Done. Thanks!


Allow Projects/Categories to use the standard Hugo content

I really like this theme.  And its 1 page simplicity.
However, I wonder if it would be possible to allow a more detailed content page in markdown be developed that would be linked to from the model view?  Same for categories - each project has one but it doesn't link anywhere?

Hi @kellington,

However, I wonder if it would be possible to allow a more detailed content page in markdown be developed that would be linked to from the model view?

What do you mean with "model view"? Do you want to create a whole new page for the services or the categories?

Same for categories - each project has one but it doesn't link anywhere?

The category links in the project modals are maybe obsolete but I left first of all them because they are part of the original.
It would be great if you could clarify my questions from above :smiley:
Cheers,
Digitalcraftsman

Any updates here? Otherwise I'll close this issue.


Introduction App should actually work

So, I just copied and pasted the app from the introduction,and it didn't work. Because About and Inbox were undefined. I have no idea how to make this work, and this is basically my starting point for creating a react app. It would be really great if the first sample actually worked, so I had something that worked to start from and build off of.

Dupe https://github.com/rackt/react-router/issues/2933.
Though I should note that the introduction to React Router is just that – an introduction to React Router, not an introduction to React. And we have plenty of fully worked out, runnable examples.

Where are they?

And yeah, I've read an introduction to react and get the concept, but I wanted to make an app using react with your software. So, it would make sense to have a working example of how React works with your software.

I'm going to spend a lot of this weekend writing docs for react-router so we're in a better place when 2.0 lands. rc6 should be the last one before that happens.


[FLINK-27769][sql-gateway]Introduce the REST endpoint framework

What is the purpose of the change
Introduce the REST endpoint framework based on Endpoint API.
Brief change log

Introduce the RestEndpointFactory based on FactoryUtils
Introduce the Rest Endpoint
Introduce some test utils for Rest API

Verifying this change
This change added tests and can be verified as follows:

Added tests to verify the rest endpoint works well with mocked handlers.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no )
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (yes)
If yes, how is the feature documented?


Readd GoBGP to test-bgp-router in a platform-agnostic way

We removed GoBGP when getting cross-platform packages to work. But this means that running test-bgp-router on non-amd64 clusters results in zero peers to peer with.

I think I've decided that GoBGP is not worth supporting. It introduces way too many headaches, and doesn't get us any interop benefits compared to just testing quagga and BIRD.


Utf8GraphQLReader doesn't unescape properly

Is there an existing issue for this?

[X] I have searched the existing issues

Product
Hot Chocolate
Describe the bug
When deserializing a GraphQL request containing emojis, it works when the request was serialized using Newtonsoft but fails when serialized using System.Text.Json. The reason is that they escape the emoji differently.
Steps to reproduce
This unit test passes
[Fact]
   public void EmojiSuccess()
   {
       // This test uses Newtonsoft to encode the string, which doesn't escape the emoji.
       var emojiString = Newtonsoft.Json.JsonConvert.SerializeObject("😀");
       var reader = new Utf8GraphQLReader(Encoding.UTF8.GetBytes(emojiString));
       Assert.True(reader.Read());
       Assert.Equal("😀", reader.GetString());
   }

while this unit test fails
    [Fact]
    public void EmojiFail()
    {
        // This test uses System.Text.Json to encode the string, which does escape the emoji.
        var emojiBytes = System.Text.Json.JsonSerializer.SerializeToUtf8Bytes("😀");
        var reader = new Utf8GraphQLReader(emojiBytes);
        Assert.True(reader.Read());
        Assert.Equal("😀", reader.GetString());
    }

Relevant log output
The output of the failing test is this

Xunit.Sdk.EqualException
Assert.Equal() Failure
          ↓ (pos 0)
Expected: 😀
Actual:   ������
          ↑ (pos 0)

Additional Context?
No response
Version
13.4.0

Thanks for the tests ... I did not handle the UTF8 surrogate pairs correctly ... this is now done and I have integrated it into:
https://github.com/ChilliCream/graphql-platform/releases/tag/13.6.0-preview.5

Thanks for your persistence on this one @rickardp !


Subject wise rank (multiselect checkbox)

Hey, thanks for the PR, Sumon. This repo isn't being maintained any longer. I would request you to fork the repo and go ahead with that. :)

Sorry to bother you @AgarwalPragy , I had mistakenly opened this PR. I have closed it (could not delete it :/ ) and opened a PR to the appropriate repo. :)


Logo isn't displayed in the left ribbon in Safari/Firefox

Steps to reproduce

Login to Zafira (Admin) in Safari/Firefox
Click on Project icon
Click "Upload new logo"
Upload image

Actual behavior
Image isn't displayed in the left ribbon.
**Expected behavior **
Image is displayed in the left ribbon.
Environment
ui v.1.287-SNAPSHOT | server v.4.1.80 | client v.4.1.64
Attachments

Additional context
The same issue with Profile logo

Fixed on UI from v. 1.332-SNAPSHOT

Verified in ui v.1.332-SNAPSHOT | server v.1.507-SNAPSHOT | client v.1.0-SNAPSHOT


Test grid images with/without MKL

Lets create a branch on HMCExamples that supports MKL.
To do that;

[x] do an ]add MKL on it to update the manifest
[x] At the top of each of the bin/* files put in using MKL

in fact, you will probably just need to uncomment those in https://github.com/HighDimensionalEconLab/HMCExamples.jl/blob/main/bin/fit_FVGQ_1_joint.jl

[x] I would try it locally on your machine to make sure it runs

Then lets do the following matrx of runs, all with a single-chain

With MKL: t2.xlarge vs. t2.2xlarge and t3.xlarge  and Without MKL: t2.xlarge and t3.xlarge  (with all of them, set the cpus accordingly)
rbc_kalman with 5000 draws, rbc_joint with 5000 draws, rbc_joint_second with 5000 draws

(last, if fvgq_joint_1 ended up giving non-garbage results lets add that in there as well, but probably not 5000 draws).
=================
What do we want to see here for that 5 x 3 experiments?

[ ] I think we want to just see what the ESS/s look like from that output css file.  They should all be pretty proportional so we probably can just pick one and see if it matters.   We don't want this in a table in the paper, so raw is fine.
[ ] Last, run one of them with mkl and without on your laptop and compare to the better ones of these.  They may not be faster but lets make sure they aren't way slower.

But note that there were numerical errors in t3xl-wo so it can be ignored.

Summary: for RBC the t2.xlarge instance with MKL seems the most dependable.  Slightly faster for kalman+rbc without MKL, but not worth the trouble to keep separate.


Device Request - [Tuya Zigbee Humidity & Temperature Sensor] - [	_TZ3000_xr3htd96] / [TS0201]

Prerequisites:

Before requesting a device addition, please ensure there is not already a request for the device among the open issues.
Make sure your Homey is upgraded to firmware v5 or higher.
You need a physical example of the device.

Device Information

Device Name: Tuya Zigbee Smart Temperature Humidity Sensor
Device Model: TS0201
Device Description: New Temperature and Humidity sensor not squared like others but more rectangle/long
Link to device image: https://ae01.alicdn.com/kf/Sf0217b2ec69e4e7d82b934275f55b67eZ.jpg

Device Interview
{
    [
  "ids": {
    "modelId": "TS0201",
    "manufacturerName": "_TZ3000_xr3htd96"
  },
  "endpoints": {
    "ieeeAddress": "a4:c1:38:7c:56:6d:3e:19",
    "networkAddress": 18577,
    "modelId": "TS0201",
    "manufacturerName": "_TZ3000_xr3htd96",
    "endpointDescriptors": [
      {
        "status": "SUCCESS",
        "nwkAddrOfInterest": 18577,
        "_reserved": 24,
        "endpointId": 1,
        "applicationProfileId": 260,
        "applicationDeviceId": 770,
        "applicationDeviceVersion": 0,
        "_reserved1": 1,
        "inputClusters": [
          1,
          3,
          1026,
          1029,
          0
        ],
        "outputClusters": [
          3,
          25,
          10
        ]
      }
    ],
    "deviceType": "enddevice",
    "receiveWhenIdle": false,
    "capabilities": {
      "alternatePANCoordinator": false,
      "deviceType": false,
      "powerSourceMains": false,
      "receiveWhenIdle": false,
      "security": false,
      "allocateAddress": true
    },
    "extendedEndpointDescriptors": {
      "1": {
        "clusters": {
          "powerConfiguration": {
            "attributes": [
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 0,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 32,
                "name": "batteryVoltage",
                "value": 26,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 33,
                "name": "batteryPercentageRemaining",
                "value": 42,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65533,
                "name": "clusterRevision",
                "value": 1,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              }
            ]
          },
          "identify": {
            "attributes": []
          },
          "temperatureMeasurement": {
            "attributes": [
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 0,
                "name": "measuredValue",
                "value": 2493,
                "reportingConfiguration": {
                  "direction": "reported",
                  "attributeDataType": 41,
                  "minInterval": 0,
                  "maxInterval": 1800,
                  "minChange": 100,
                  "status": "SUCCESS"
                }
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 1,
                "name": "minMeasuredValue",
                "value": 1656,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 2,
                "name": "maxMeasuredValue",
                "value": 3194,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65533,
                "name": "clusterRevision",
                "value": 2,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              }
            ]
          },
          "relativeHumidity": {
            "attributes": [
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 0,
                "name": "measuredValue",
                "value": 6156,
                "reportingConfiguration": {
                  "direction": "reported",
                  "attributeDataType": 33,
                  "minInterval": 0,
                  "maxInterval": 21600,
                  "minChange": 500,
                  "status": "SUCCESS"
                }
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 1,
                "name": "minMeasuredValue",
                "value": 2780,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 2,
                "name": "maxMeasuredValue",
                "value": 6422,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65533,
                "name": "clusterRevision",
                "value": 2,
                "reportingConfiguration": {
                  "status": "NOT_FOUND",
                  "direction": "reported"
                }
              }
            ]
          },
          "basic": {
            "attributes": [
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 0,
                "name": "zclVersion",
                "value": 3
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 1,
                "name": "appVersion",
                "value": 70
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 2,
                "name": "stackVersion",
                "value": 0
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 3,
                "name": "hwVersion",
                "value": 1
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 4,
                "name": "manufacturerName",
                "value": "_TZ3000_xr3htd96"
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 5,
                "name": "modelId",
                "value": "TS0201"
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 6,
                "name": "dateCode",
                "value": ""
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 7,
                "name": "powerSource",
                "value": "battery"
              },
              {
                "acl": [
                  "readable",
                  "writable",
                  "reportable"
                ],
                "id": 65502
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65533,
                "name": "clusterRevision",
                "value": 2
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65534,
                "name": "attributeReportingStatus",
                "value": "PENDING"
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65506
              },
              {
                "acl": [
                  "readable",
                  "reportable"
                ],
                "id": 65507
              }
            ]
          }
        },
        "bindings": {
          "identify": {
            "attributes": []
          },
          "ota": {},
          "time": {}
        }
      }
    }
  }]
}

Additional Comments:
https://www.aliexpress.com/item/1005004704942595.html?spm=a2g0o.order_list.order_list_main.5.6ebe5e5bLsL8Ra&gatewayAdapt=glo2fra
Description:
Product name: Temperature and humidity sensor
Battery type:2*AAA(NOT INCLUDE)
Product parameter:DC3V LR03
Quiescent current:≤10uA
Alarm current:≤15mA
Low voltage and undervoltage:≤2.6V
Wireless Technology:ZigBee
Detection temperature:-10℃~ 60℃
Detection humidity:0-100%RH
Working temperature:-10℃~ 50℃
Working humidity:maximum 95%RH
Specifications:
1.Tuya Smart ZigBee Temperature and Humidity Sensor:Requires Tuya ZigBee Wireless Gateway Hub.
2.Real-time perception of temperature and humidity changes , support Smart Life / Tuya App.
3.New ZigBee technology with low power consumption microprocessor for long standby.
4.Smart scene linkage to your air conditioning and humidifier,offering your house with the most comfortable temperature and humidity.
5.Widely used in various places and easily stick it to the wall with the sticker for simple installation.
6.Can be used with Alexa and Google home
Package Included:
1*Temperature humidity sensor
1*User Manual
1*Accessories package
Notes:
This product needs to be used with Tuya zigbee3.0 gateway

Note: Provide any other relevant information or requests related to the device. Link to where you bought the device can be of help

How to interview a device

Add the device as a generic Zigbee device in Homey
Navigate to https://developer.athom.com/tools/zigbee.
Interview the device, the button for this is to the right of the device in the list of Zigbee units.
Click the copy button/icon to capture the device information.
Paste the copied information above.

Note: To be able to add more devices to the Tuya Zigbee app, we rely on community members like you to provide interviews of the devices you want to be added. Thank you for your contribution!

Hi, found a solution by myself: https://github.com/JohanBendz/com.tuya.zigbee/issues/663


Automatically generate a thumbnail for mod.io using the IconFile

First off, check if Preview.png already exists. If so, don't bother with the rest of this.
Regex this part in the Index.ini file to get the path to the IconFile:
IconFile = ContentFile\n<whitespace>Path = (.*)\n
Note: IconFiles can be any size, they don't even have to be rectangular!

Get the color of the top-left pixel in the image and use that color to fill the left and right sides.
Assuming you have a 23x23 px one, it could be scaled by a factor of 9 in the width and height to get a 207x207 image.
By then making the canvas the width of the image * 16 / 9, the new width of the canvas becomes 368x207. This is a perfect 16:9 ratio, which is what mod.io recommends.
Now fill in the left and right sides with the color gotten before and save the image as Preview.png to the converted mod's folder.

Closing old issues.


Cassandra-web behind reverse-proxy and kong

Hi,
my installation of cassandra-web is in kubernetes-cluster and use kong like api-gateway. If I call directly cassandra-web (ip and port) I can view the database content, but  if I call the api endpoint like http://cassandra-web.dnsname I don't view anything.
Any idea?

In case you are still searching for a solution. this worked for me behind a nginx reverse proxy:
https://stackoverflow.com/questions/13672743/eventsource-server-sent-events-through-nginx


connection hanging and ssl issue?

[06/15/17 14:44:19] [ERROR] CConnection::CConnection - establishing connection to MySQL database failed: #2026 'SSL connection error: socket layer receive error'
[05/10/17 01:16:22] [ERROR] CConnection::CConnection - establishing connection to MySQL database failed: #2026 'SSL connection error: protocol version mismatch'
[05/10/17 01:19:52] [ERROR] CConnection::CConnection - establishing connection to MySQL database failed: #2026 'SSL connection error: protocol version mismatch'
That is happening every few days. I don't use SSL?
My connection is hanging here;
[06/16/17 14:11:06] [INFO] changed log level from 'warning, error' to 'debug, info, warning, error'
[06/16/17 14:11:06] [DEBUG] mysql_init_options() (D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:38867 -> D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:8987 -> D:\Documents\SAMP\SAMP-GM\pawno\include\mapfix.inc:42)
[06/16/17 14:11:06] [INFO] Options instance with id '1' successfully created.
[06/16/17 14:11:06] [DEBUG] mysql_init_options: return value: '1' (D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:38867 -> D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:8987 -> D:\Documents\SAMP\SAMP-GM\pawno\include\mapfix.inc:42)
[06/16/17 14:11:06] [DEBUG] mysql_set_option(1, 0) (D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:38868 -> D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:8987 -> D:\Documents\SAMP\SAMP-GM\pawno\include\mapfix.inc:42)
[06/16/17 14:11:06] [DEBUG] mysql_set_option: return value: '1' (D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:38868 -> D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:8987 -> D:\Documents\SAMP\SAMP-GM\pawno\include\mapfix.inc:42)
[06/16/17 14:11:06] [DEBUG] mysql_set_option(1, 2) (D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:38869 -> D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:8987 -> D:\Documents\SAMP\SAMP-GM\pawno\include\mapfix.inc:42)
[06/16/17 14:11:06] [DEBUG] mysql_set_option: return value: '1' (D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:38869 -> D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:8987 -> D:\Documents\SAMP\SAMP-GM\pawno\include\mapfix.inc:42)
[06/16/17 14:11:06] [DEBUG] mysql_connect("HOST", "LOL", "*****", "GM", 1) (D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:38870 -> D:\Documents\SAMP\SAMP-GM\gamemodes\GM.pwn:8987 -> D:\Documents\SAMP\SAMP-GM\pawno\include\mapfix.inc:42)
[06/16/17 14:11:06] [DEBUG] CHandleManager::Create(this=0x8b179f8, host='HOST', user='LOL', pass='****', db='GM', options=0x8b17f50)
[06/16/17 14:11:06] [INFO] Creating new connection handle...
[06/16/17 14:11:06] [DEBUG] CConnection::CConnection(this=0x8b17a20, host='HOST', user='LOL', passw='****', db='GM', options=0x8b17f50)

Also what what is the line stuff?
initialiseMySQL(bool:restart = false)
{
	if(MYSQL_CONNECTED_STATUS == true) return;
	mysql_log(ALL);
	new startTick = GetTickCount(), errorId, MySQLOpt:options = mysql_init_options();
	mysql_set_option(options, AUTO_RECONNECT, false);
	mysql_set_option(options, POOL_SIZE, 3);
	mysqlConnHandle = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB, options);
	errorId = mysql_errno();
	MYSQL_CONNECTED_STATUS = !!(errorId == 0);
	if(MYSQL_CONNECTED_STATUS && mysqlConnHandle != MYSQL_INVALID_HANDLE) {
		printf("[MySQL Connection:: tick: %d (%s)]: PASSED (mysqlConnHandle: %d)!", GetTimeDistance(GetTickCount(), startTick), MYSQL_HOST, _:mysqlConnHandle);
		mysql_global_options(DUPLICATE_CONNECTIONS, false);
		mysql_tquery(mysqlConnHandle, "SET SESSION binlog_format = 'ROW';");
		mysql_tquery(mysqlConnHandle, "SET SESSION sql_mode = 'NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';");
		if(restart) {
			messageKCNRAdmins(_, "[MySQL]: Restart successful.");
			IRC_GroupSay(ircGroupChatID, ADMIN_IRC_CHANNEL, "09[MySQL]: Restart successful.");
		}
	} else {
		printf("[MySQL Connection:: tick: %d (%s)]: FAILED. Please check the mysql_connect or the database (mysqlConnHandle: %d. errorId: %d)!", GetTimeDistance(GetTickCount(), startTick), MYSQL_HOST, _:mysqlConnHandle);
		if(restart) {
			messageKCNRAdmins(_, "[MySQL]: Restart failed.");
			IRC_GroupSay(ircGroupChatID, ADMIN_IRC_CHANNEL, "09[MySQL]: Restart failed.");
		}
	}
	return; // Make sure no ONLY_FULL_GROUP_BY or strict tables
}

I made added some debug logging to it in https://github.com/karimcambridge/SA-MP-MySQL/commit/915538b6197f35dabafdb704d8a139e60a0a3514
It's stopping at [06/16/17 15:10:52] [DEBUG] CConnection::CConnection - Connecting to MySQL
So the actual mysql_real_connect is hanging.. .. damnit

Lol, I downgraded from streamer 2.9.1 to 2.8.2 and not its starting fine. Wtf. Gonna check over the next 3 days and see if it still is starting properly.


Make the coordMap pointer in Compute2DCoordParameters const

I don't see any particular reason why it shouldn't be const, so we might as well set it that way.
This also allows the swig wrappers to build.

Thank you @greglandrum! That is a simpler fix than I expected

Thank you @greglandrum! That is a simpler fix than I expected

Yeah, I was initially afraid that it was going to be tricky... one never knows with SWIG.

Thank you @greglandrum! That is a simpler fix than I expected

Yeah, I was initially afraid that it was going to be tricky... one never knows with SWIG.