GH-4950 LMDB: extensible ID scheme

Implement an extensible ID scheme for the LmdbStore that also allows to embed values into IDs.
GitHub issue resolved: #4950
Briefly describe the changes proposed in this PR:
Use a binary encoding for IDs that allows to represent the value type, if the value itself is embedded within the id and the embedded value itself.

PR Author Checklist (see the contributor guidelines for more details):

[x] my pull request is self-contained
[x] I've added tests for the changes I made
[x] I've applied code formatting (you can use mvn process-resources to format from the command line)
[x] I've squashed my commits where necessary
[x] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

The failing integration tests: It's a test that is marked as disabled, but has somehow started to run again. Not sure how that happened.

@hmottestad It would be good to have this in 5.0.0 as it is a breaking change but I am not sure if I can finish the whole logic.

Sorry. I've already published the M3 milestone build and we now have a feature freeze until the final release. The LMDB Store is experimental, so you should be able to make breaking changes for 5.1.0. Might be better too, since then users can upgrade to 5.0.0 and get all the fixes and enhancements without any major breaking changes.

PS: The develop branch is now 5.1.0 so you can merge into the develop branch without affecting the 5.0.0 release.


Core: Remove Validation#get

Error prone, unsafe and unused (at least in Gatling).
Because of implicit conversion, some people end up writing:
val session: Session = ???
session.get("foo").as[T]

It "worked" in Gatling 2 because:

Session doesn't have a get method, but Validation does, so it gets lifted into Validation[Session]
Validation[Session]#get returns the original Session (there and back again)
("foo") calls apply method

The proper way is and has always been session("foo").as[T]

hello ,
I just upgraded my galting version to <IP_ADDRESS> and scala version to 2.12 but suddenly I got an issue with this part of my code  ,

I was wondering is there any change that has been brought to validation function?


CMakeSettings vs CMakePresets confusion

I think these two things are confusing at first glance. It took a lot of digging and reading to find out that CMakePresets is the new favored way of setting common options as outlined in this blog: https://devblogs.microsoft.com/cppblog/cmake-presets-integration-in-visual-studio-and-visual-studio-code/
At the very least I'd like to see a 'warning' box slapped on any mention of CMakeSettings with a reference to the new recommendation.  But long term I think any mention of CMakeSettings should be replaced with CMakePresets. And maybe even a conversion guide.

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

ID: 781298c5-3bb4-0bd4-06ca-b09517a76ebc
Version Independent ID: acb60102-701d-ccb2-d138-2ceb35813292
Content: CMake projects in Visual Studio
Content Source: docs/build/cmake-projects-in-visual-studio.md
Product: visual-cpp
Technology: cpp-tools
GitHub Login: @corob-msft
Microsoft Alias: corob

We are in the process of moving away from GitHub issues for C++ documentation (we still accept pull requests). For details, please see Announcing a new way to give feedback on Microsoft Learn This issue will be closed after it is copied to an internal tracking system.


NPE with multiple flavor dimensions

I get this exception with 1.0.0 in a project with multiple flavor dimensions. It seems that the variant which is looked up by name is null.
Caused by: java.lang.NullPointerException: Cannot get property 'name' on null object
        at org.robolectric.gradle.RobolectricPlugin$_apply_closure1.doCall(RobolectricPlugin.groovy:29)

Could you share the relevant bits of your configuration so I can try to reproduce it?

Sorry about the double log, I had to rebase stuff. It's been tested with the following configuration:
  flavorDimensions "pack", "speed"
    productFlavors {
        fast {
            minSdkVersion 21
            flavorDimension "speed"
        }
        normal {
            flavorDimension "speed"
        }
        light {
            flavorDimension "pack"
        }
        embed {
            flavorDimension "pack"
        }
    }


updating the notify API description

This pull request updates the API description for the 'notify' helper function.
The corresponding PR in the hyper branch is: https://github.com/zeit/hyper/pull/2955

Thank you!

Absolutely! Thanks @timothyis .


Psd 2710 ux review changes

Applied changes to the UI/UX for the product create view > Upload file component.
Description
Updated the file upload control to ensure the layout and functionality meet the design reviews.
Screen-shots or screen-capture of UI changes

Review apps
Checklist:

[X] Have you documented your changes in the pull request description?
[ ] Does the change present any security considerations?
[ ] Is any gem functionality overloaded? Eg: Devise controller methods being overloaded.
[X] Has acceptance criteria been tested by a peer?

General testing (author)

[X] Test without JavaScript
[X] Test on small screen

Accessibility testing (author)

[X] Reviewed by Designer (if required)
[X] Works keyboard only
[X] Tested with one screen reader
[X] Zoom page to 400% - content still visible
[X] Disable CSS - does content make sense and appear in a logical order?

PR closed for now as this is blocked and the ticket is now on the backlog (PSD-2555).

@tahir-khalid wasn't this work was sorted by @meeravnagesh ?

@alan-at-work this was split into two tickets if I recall @meeravnagesh any updates on this

This PR is not needed anymore as we have merged the changes as a part of another PR raised by me


If no FFT filters are registered, then nullptr is returned from New causing segmentation faults.

The FFTFilters' New method may return a nullptr if the FFT factory is empty. This causes segmentation faults. It is not standard practice in C++ and ITK to check if a new fails to return an object.
An exception should be thrown if an object can not be allocated and constructed.

@dzenanz @tbirdso

I think this is reasonable and would certainly help with debugging. @dzenanz could you assign this one to me?


MudTd/MudTh: Add ability to toggle visibility of columns

Description
Adds the ability to toggle Table columns by changing the Visible property of MudTh and MudTd
How Has This Been Tested?
unit & visually
I created a new Unit test in TableTests that ensure table cells have a style of display: none; when Visible is set to false
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Video showing functionality in Docs

Checklist:

[X] The PR is submitted to the correct branch (dev).
[X] My code follows the code style of this project.
[X] I've added relevant tests.

Adding inline styles would overwrite <style></style> defined by a user in their component. Wouldn't it be more convenient to add d-none class instead of an inline style?

Adding inline styles would overwrite <style></style> defined by a user in their component. Wouldn't it be more convenient to add d-none class instead of an inline style?

I could've solved it by adding that class. Then it would override classes written by the user and you'd have the same problem but with classes. Either way, I accounted for this issue in my solution. If you take a look at MudTh and MudTd you will see that they don't use Style from MudComponentBase for their styling. They use ThStyle and TdStyle respectively which is constructed like so private string T(d/h)Style => new StyleBuilder().AddStyle("display", "none", !Visible).AddStyle(Style).Build();. That way, user defined styles are still present.

Has this feature been released?

Can you please share when this becomes available in NuGet?


Live Coding Examples

Prerequisites

[x] Checked that your issue hasn't already been filed by cross-referencing issues with the faq label
[x] Checked next-gen ES issues and syntax problems by using the same environment and/or transpiler configuration without Mocha to ensure it isn't just a feature that actually isn't supported in the environment in question or a bug in your code.
[x] 'Smoke tested' the code to be tested by running it outside the real test suite to get a better sense of whether the problem is in the code under test, your usage of Mocha, or Mocha itself
[x] Ensured that there is no discrepancy between the locally and globally installed versions of Mocha. You can find them with: node node_modules/.bin/mocha --version(Local) and mocha --version(Global). We recommend avoiding the use of globally installed Mocha.

Description
Mocha should provide live coding examples on its website to show both successfully executing constructs, and those that fail.  This would reduce the number of frequency asked questions and add depth to the documentation.

see mocha-examples.


feat(): Try monad

Hello,
First, thanks for the work you've done. It's a great lib with many good implementations 👍( message from a VAVR fan !)
But, I would like to know if you plan to integrate some concept like the Try which is very useful for some pattern of code in Javascript. (like this one)
In our case, we want to avoid some kind of code, the most common is the following :
function extract(foo) {
  if (foo && foo.bar && foo.bar.another && foo.bar.another.and && foo.bar.another.and.again) {
    return foo.bar.another.and.again;
  }
  return null;

By doing this kind of thing:
function extract(foo) {
  return Try.of(() => foo.bar.another.and.again).getOrElse(null);

Or even better, simply return the monad and let the caller decide if null is a good candidate (which is not often the case)
So, do you plan to integrate this kind of element? Are you open to PR about this evolution?
/cc @neonox31 @yann29

Hello, thanks for the feedback, I'm happy that you like the library!
Regarding Try, you're not the first to ask, I am slowly writing a blog post on that topic, that would cover Try and Validation. But in brief, I think that Either is enough in the case of prelude.ts (for both Either and Validation), and that we don't gain anything by adding Try and Validation (because we don't have a "do notation" like haskell or "for comprehensions" like scala). However, I definitely can be wrong, and I'm interested in counter-arguments.
Actually in your case, I think Option would be a better fit than Try or Either, because you're not interested in any "failure" data.
This should work out of the box (untested), using Function1.liftOption:
// extract takes a foo, returns Option<T>
const extract = Function1.liftOption((foo:Foo) => foo.bar.another.and.again);
// extract1 takes a foo, returns T|null
const extract1 = Function1.liftOption((foo:Foo) => foo.bar.another.and.again)
    .andThen(o => o.getOrElse(null));

But otherwise it would be nicer (but potentially cannot be achieved if it's an external or a legacy API), that foo is an Option, bar is an Option field of foo, and so on. Then you could do:
return foo
    .flatMap(f => f.bar)
    .flatMap(b => b.another)
    ..
    .getOrElse(null); // or even better would be to just return the `Option`

That would be much more idiomatic I think.
And if you actually want the failure value, then you'd want a Either, you could use Function1.liftEither instead of Function1.liftOption.
So that's what we have now. I think having Try.of instead of Function1.liftEither or Function0.liftEither is probably not worth adding a new toplevel type, but I'm interested in feedback for sure. And if we keep it as it is today in prelude.ts, for sure I need to document this better, that's why I'm planning that blog post.
Let me know what you think!

I released version 0.7.4 which added also Option.getOrNull. But let me know what you think about the main point of your bug!

Thanks a lot for your answer.
I've used some of your answer to build this code:
const Try = (doThis) => prelude_ts.Function1.liftNullable(doThis)();

const badValue = null;
const result = Try(() => badValue.bar.another.and.again).getOrElse(5);
console.log("result", result);

const rightValue = {bar: { another: { and: { again: 12 }}}};
const another = Try(() => rightValue.bar.another.and.again).getOrElse(5);
console.log("another", another);

It's doing the job for us ! The alias Try is very usefull to simplify reading the code
Thanks for the release which add the getOrNull 👍
I want your point of view about this answer, so I let the issue open. You can close it if you think this is all good

First, just a little nitpick, for your use-case you should use Function0 instead of Function1, since you work with parameterless functions. But no big deal, and as you noticed, Function1 does the job too (that would be a compile error in typescript though).
That said, I think you make very good points that the existing lift* functions, besides not being very discoverable, are also not very concise if you have many such cases. So I've now added a couple of new functions. Here are some examples:
Option.try_(Math.random);
=> Option.of(0.49884723907769635)

Option.tryNull(()=>null);
=> Option.none()

Either.try_(Math.random, {} as string); // second parameter is needed only if you use typescript
=> Either.right(0.49884723907769635)

I didn't release yet a new version with this change, let me know what you think!

(I picked try_ instead of try since try is a javascript keyword and Try gives the impression that there is a Try type)

Thanks for the tips about Function0 instead of Function1 !
And yes, modifications you've made are, for us, a great improvement. From my point of view, Option.try_ won't be very useful, because many API we use can (sadly) return null value. So, we will end up using Option.tryNull function.
Thanks for this modification !

I'm thinking about renaming tryNull to tryNullable. I'm going to add also Option.mapNullable, which is needed for your situations and not present yet.

So I finally released version 0.7.5 which includes the various try-like functions we discussed (and also Option.mapNullable), so I'm closing this bug. Thanks for the discussion & suggestions!

Thanks you 💪
Le jeu. 17 mai 2018 à 19:09, emmanueltouzery<EMAIL_ADDRESS>a
écrit :

Closed #5 https://github.com/emmanueltouzery/prelude.ts/issues/5.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/emmanueltouzery/prelude.ts/issues/5#event-1632499765,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB4S6jine7MUHJvDK_AA0zwrcd_xGq6Hks5tza7ggaJpZM4Tp0I9
.


fix: SfSearchbar and SfInput on safari

Related issue
#963
Scope of work
fix input search and searchbar on safari (remove native layout)
can be tested on https://zeit.co/adampawlinski/storybook-static/lm6xawdda
Screenshots of visual changes
Checklist

[x] No commented blocks of code left
[ ] Run tests and docs
[x] Self code-reviewed

If applicable:

[ ] I followed composition rules for my component
[ ] I tested the component in most common device sizes (can be tested in Storybook from viewport addon in top menu)
[ ] I accept Individual Contributor License Agreement

Input search and searchbar fixed. Number validation added on safari. To do that input type is changed from number to text (only on safari).
TO DO:  regex doesn't work properly on Safari (comma and dot do not pass)


Rendering issue

I just got this error whenever i am enter in storyboard...after some time it disappears...but  it gives slow performance error...how  to get rid of this
    error: IB Designables: Failed to render instance of FloatRatingView: Rendering the view took longer than 200 ms. Your drawing code may suffer from slow performance.

Sorry for the late reply! I never see this error. What version of Xcode are you using?

xcode 6.3.1


Issue #8: Added yml file for testing and to get coverage report using github actions

I've set up a GitHub Actions workflow in our repository to automate testing and generate coverage reports for our Python project (github/workflows/python-test-coverage.yml). This is how I interpreted the changes necessary to address issue #8. Here's how it works and what you need to do to see it in action:

Triggering the Workflow: The workflow automatically runs whenever someone pushes changes to the main branch or creates a pull request against it. You don't need to do anything special to trigger it.

What the Workflow Does:

Sets up Python: Prepares the Python environment using the version we specify.
Installs Dependencies: Installs all required dependencies, including pytest and pytest-cov for running tests and generating coverage reports.
Runs Tests: Executes our project's tests located in the tests/ directory and collects coverage data from the src/ directory.
Generates Coverage Report: Produces a coverage report in XML format. This helps us understand which parts of our code are not being tested.
Uploads Coverage to Codecov: Optionally, if we decide to use Codecov, the workflow will upload the coverage report there for easy viewing and analysis.

Viewing Results:

To see the outcome of these steps, go to the Actions tab on our GitHub repository page. Here, you'll find a list of workflow runs.
Click on a specific run to see detailed information, including whether the tests passed and the coverage report was successfully generated and uploaded.

Hopefully, with any necessary further adjustments by anyone else, this setup will ensure our code is tested automatically, making our development process more efficient and our codebase more reliable. Thanks :)

Let's try using this instead for the coverage workflow. I've had success in the past and doesn't require too many permissions.
https://github.com/irongut/CodeCoverageSummary
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install coverage flake8 pytest
        pip install -r requirements.txt
    - name: Run tests and generate coverage
      run: |
        coverage run -m pytest tests
        coverage xml -o coverage/coverage.xml
    - name: Code Coverage Report
      uses<EMAIL_ADDRESS>      with:
        filename: coverage/coverage.xml
        badge: true
        fail_below_min: true
        format: markdown
        hide_branch_rate: false
        hide_complexity: true
        indicators: true
        output: both
        thresholds: '50 80'


How to encrypt data using private key

I am making an ETEE chat app. For a receiver to verify that the sender has a private key for their public key, the sender needs to encrypt a hash using their private key, so the receiver can decrypt it with the senders public key.
However, the rsa::RsaPrivateKey does not implement the encrypt method. Is there a solution for this or is it still Work In Progress?

Complete error message here:
error[E0599]: no method named `encrypt` found for struct `rsa::RsaPrivateKey` in the current scope
  --> src/server/main.rs:55:18
   |
54 |               encrypted_checksum: sender_private_key
   |  _________________________________-
55 | |                 .encrypt(
   | |                 -^^^^^^^ help: there is a method with a similar name: `decrypt`
   | |_________________|
   |

For more information about this error, try `rustc --explain E0599`.
error: could not compile `secure-chat` (bin "server") due to previous error

This is a somewhat similar use case to #231. We've been somewhat reluctant to support these use cases without higher-level protocols due to misuse potential.
Is this a completely ad hoc protocol, or is it an implementation of a particular digital signature algorithm?

This isn't for a particular algorithm, I am just inventing my own simplistic protocol for a chat app

Is the process of encrypting with a public key the same as encrypting with a private key? If so, I could cast the private key to a public key, so I can use the encrypt method. Or, if that would be the case, it would be much easier for you to copy/paste the encrypt/decrypt methods.

I am just inventing my own minimalistic protocol for a chat app

Perhaps instead you could use either the RSASSA-PKCS#1v15 or RSASSA-PSS signature algorithms, which are standardized digital signature algorithms, rather than trying to roll your own digital signature algorithm.

Is the process of encrypting with a public key the same as encrypting with a private key? If so, I could cast the private key to a public key, so I can use the encrypt method.

Yes and no. The core algorithm is the same (modular exponentiation), however the data structures for a public and private key are quite different and not interchangeable.

Or, if that would be the case, it would be much easier for you to copy/paste the encrypt/decrypt methods.

It would be much easier for you to use standard algorithms that solve this particular problem.

You said I could use PKCS 1v15 to create signatures, but in the docs for the rsa library, the verifying by it derived from the singing by which is derived from the private key which the receiver does not have. How does this actually work?

Please see #231

Please see #231

I couldn't find an answer there. Is Signcryption already possible? I couldn't find any mentions of it in the docs

We don't currently implement it, no. However, that is a construction that actually has the properties you are asking about.

You said I could use PKCS 1v15 to create signatures, but in the docs for the rsa library, the verifying key is derived from the singing by which is derived from the private key which the receiver does not have. How does this actually work?

How do I solve this issue? Could you link something that explains how this works? It's not obvious from the docs

I'm not sure what about "we don't currently implement it" is unclear. You are asking for a feature we don't have yet.
The solution is for someone to implement #231. Until that happens, the feature doesn't exist, and if it does't exist you can't use it yet.

@Antosser I wrote up why a simple repurposing of PKCS#1v1.5 with the encryption and decryption roles reversed is insecure in this comment: https://github.com/RustCrypto/RSA/issues/231#issuecomment-1666307754


feat: miner stats

:tada: This PR is included in version 1.6.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


java.lang.IllegalArgumentException: Directory  is not absolute

Hello,
I'am using the Xpipe portable version 1.7.11 and I encountered this error :
java.lang.IllegalArgumentException: Directory  is not absolute
at io.xpipe.app.browser.FileSystemHelper.resolveDirectoryPath(FileSystemHelper.java:83)
at io.xpipe.app.browser.OpenFileSystemModel.cdSyncOrRetry(OpenFileSystemModel.java:184)
at io.xpipe.app.browser.BrowserNavBar.lambda$createSimple$3(BrowserNavBar.java:52)
at io.xpipe.app.util.BooleanScope.executeExclusive(BooleanScope.java:17)
at io.xpipe.app.browser.BrowserNavBar.lambda$createSimple$4(BrowserNavBar.java:51)
at io.xpipe.app.util.ThreadHelper.lambda$runFailableAsync$1(ThreadHelper.java:40)
at io.xpipe.app.util.ThreadHelper.lambda$wrap$0(ThreadHelper.java:19)
at java.lang.VirtualThread.run(VirtualThread.java:309)
It appears when I want to use the browser on my local machine. I cannot access to my local machine.

Does that happen for every path that you input into the navigation bar?
Also, what OS is this?

OS : Windows 10
Yes it's happen even I just use "C:"

That is very odd. I, and many other users, use Windows 10 so that shouldn't be an issue. The absolute check it's just a very rudimentary check to not feed malformed paths into the shell and should not fail for "C:": https://github.com/xpipe-io/xpipex/blob/998ffddd61c88999c1055c8e491f2cec8e6a5a6c/core/src/main/java/io/xpipe/core/store/FileNames.java#L111
Does that also happen after a restart? And are there maybe some special characters that somehow ended up in the navigation bar?
What happens if you input a variable instead like this:

Yes even a restart, it happens. I think no special characters ended up in the navigation bar. Even using variable it doesn't work.

Hmm also the roots don't show up there, so I think there is a more general problem. What system language are you using? I had some weird issues with cmd and languages before

The system language is French.

I just changed in English, restart and that doesn't work either.

If you clicked on search for connections automatically, it should also have added a local PowerShell instance somewhere. Can you try whether that works? If it does, we can narrow it down to cmd.
I'm currently trying to set up french user account on my PC. There's usually a little bit more involved than just the display language, e.g. codepages and other stuff.

Alright, I'm not able to reproduce this on a proper french setup, so it must be something else.
You can try launching xpipe in debug mode under Settings -> Troubleshoot -> Launch in debug mode and see what the output is when you enter a path

Yes I think it is restriction on this machine because I clicked on "search for connections" and it had an error from Policy :
Process did not start up properly and had to be killed:
Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by
a policy defined at a more specific scope.  Due to the override, your shell will retain its current effective.
Otherwise, I tried on other machine in French when I have the full administrator access and It work well.

Yes it is really because I have restriction on this machine. I will try this app on the other one. This app seems to be very useful ! I think we can close this issue.

That is good to know, I haven't really evaluated the effects of powershell being blocked from executing arbitrary scripts, this might cause that problem. I can add that to my to do list


Paymaster Templates

NFT-based paymaster access

some sort of rate limiting (gas use / month)
Look into Uniswap rate limiting?
User can spend x gas / month (paymaster bal)

/cib

add paymaster contract to the contracts folder and add tests


Serializers are now configurable via Bundle

I've implemented a POC for overriding or configuring the serializers. Why?
I'd love to get some feedback on the current implementation.

thank you, @ricbra !


Version Packages

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
<EMAIL_ADDRESS>Patch Changes

#400 2ed33de Thanks @threepointone! - pin dependencies

<EMAIL_ADDRESS>Patch Changes

#400 2ed33de Thanks @threepointone! - pin dependencies

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


fix failing examples

🐛 Bug
We have uncommented PL examples in #4551 but two of them turned to be failing and shall be fixed:
FAILED pl_examples/test_examples.py::test_examples_dp_image_classifier[\n--max_epochs 1 --batch_size 32 --limit_train_batches 2 --limit_val_batches 2 --gpus 2 --distributed_backend dp --precision 16 ]
FAILED pl_examples/test_examples.py::test_examples_dp_autoencoder[\n--max_epochs 1 --batch_size 32 --limit_train_batches 2 --limit_val_batches 2 --gpus 2 --distributed_backend dp --precision 16 ]

To Reproduce
uncomment two remaining examples with TODO comment
Environment
Drone Multi-GPU testing
Additional context
get back full example testing...

TODO: add doctest so we can verify that the API is up tp date

TODO: add doctest so we can verify that the API is up tp date

adding doctests in #5079 #5083 #5085

Atm considering adding ddp examples only for master as they take quite some time to run, see #4995 (which shall be the last one from fixing sequence)

Atm considering adding ddp examples only for master as they take quite some time to run, see #4995 (which shall be the last one from fixing sequence)


wrong population size (EA202) for Koreans (Ed1)

https://d-place.org/society/Ed1
the value for this variable is 200, based on the population of a specific island in 1947. Surely this should be modified (it was more around 20 million around that time...)

Similar issue for Brazilians (Cf4), population size (EA202) equals 2700 presumably since this is the population of a village near Sao Paulo in the ethnographic source. Clearly should be larger (also, EA031 is 50000+).
There appear to be more with a similar problem - here are more ea_id's for which EA031 is 50000+ but population size is smaller:
Ca7
Ch1
Ch5
Ea13
Ed6
Ef11
Eg10

Thanks Dor, these look like something we should check in more detail. I'll add it to the to-do list

I looked in the EA to check these values.
According to the Murdock (1967). Ethnographic atlas: a summary, the population sizes are:
Koreans (Ed1): 30,000,000
Amhara (Ca7): 2,000,000
Bulgarians (Ch5): 7,000,000
Other population data I found:
Brazilians (Cf4): 2,700 in Cruz das Almas in 1940. SOURCE: Ethnology 1963, Vol. 2, No. 1
Uttar Pradesh (Ef11): 1,400 in 1941 (the village of Madhopur or Senapur). SOURCE: Ethnology 1971, Vol. 10, No. 1.
For Serbs (Ch1), Punjabi (Ea13), Min Chinese (Ed6) and Telugu (Eg10), I found no population data in EA.
@SimonGreenhill Do you know what the (other) sources were used for this variable?

I suspect the number recorded here is for this subcase i.e. Kanghwa Island. Perhaps we should think about renaming these cases to e.g. Korean (Kanghwa Island)?

I looked at the description of EA202 variable and this is probably not a bug, but a feature:
"Population of ethnic group as a whole, unless otherwise noted in Comments. Note that source differs by society; EA bibliography is source where possible, otherwise Ember (1992)."
https://d-place.org/parameters/EA202#1/30/152
So I'd leave it as it is. As long as the culture in question has a disclaimer that the values relate to a specific location.
What could theoretically be done is to split this variable into two: "Population of ethnic group" and "Population of subcase". Each would have a bunch of NAs, but it wouldn't be as confusing.

I'd recommend signaling these exceptions more clearly to researchers. Generally speaking, I don't think it's a good idea for one variable to refer to two things, and one can't expect all researchers to review each datapoint.

I agree that a variable being interpreted differently for different
datapoints is generally bad. But since d-place only aggregates data from
existing sources, the question becomes whether this is something the
editors can/should change or whether we simply document this issue in the
variable description.
dorshilton @.***> schrieb am Mi., 22. Nov. 2023, 10:34:

I'd recommend signaling these exceptions more clearly to researchers.
Generally speaking, I don't think it's a good idea for one variable to
refer to two things, and one can't expect all researchers to review each
datapoint.
—
Reply to this email directly, view it on GitHub
https://github.com/D-PLACE/dplace-data/issues/321#issuecomment-1822410292,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGUOKEBAKOO7BIZPFPO353YFXBLJAVCNFSM6AAAAAARUB44U6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSGQYTAMRZGI
.
You are receiving this because you commented.Message ID:
@.***>


URI encode jsonGraph payload

Given I run the command:
falcor.setValue(['somethingById', 'abc123', 'name'], 'This & That').then(something);

The JSON payload that is set to the server looks like:

And an error is caused on the backend:
 SyntaxError: Unexpected end of input
     at Object.parse (native)
     at /app/node_modules/falcor-express/src/requestToContext.js:21:37
     at Array.forEach (native)
     at requestToContext (/app/node_modules/falcor-express/src/requestToContext.js:18:31
     at /app/node_modules/falcor-express/src/index.js:14:23
     ...

It seems that falcor should URI encode its jsonGraph payload before posting.

hmmm.
This should be an easy fix.  I am surprised by this.  Could you move this to https://github.com/Netflix/falcor-http-datasource/issues?  It does the actual HTTP requesting (DataSource is a contract in falcor, not an implementation).

Will do!

Moved to https://github.com/Netflix/falcor-http-datasource/issues/31


Notify investor signature signed

I am gonna push and release @DavidGershony can you review and any issue we will fix in a new PR


Use @Nullable annotation

We should start to use @Nullable annotation etc in netty 5 to make it easier for users to understand what to expect.

@normanmaurer Hi, as far as I know, there are many libraries provide annotations like Nullable. which library will netty5 choose.
Thanks for your reply :)

javax.annotation.Nullable etc

Hello All.
I'm interested in this issue.
May I make some PRs that applies the JetBrains annotations mentioned above?

@jchrys yes please :) We love contributions

Thanks very much for your reply. Let me create PRs. 👍


Time format without seconds? 09:00

Is it possible to format a time without having to specify the seconds?
Like 09:30?
It is not specified in the docs.

+1

Yeah +1... found this issue today too. Tried 00:00[:00] but it doesn't work.

+1

+1

+1, just in case

+1 XD

Do we have format for this?

+1

Or you can just make a wrapper, which removes hours:
const toNiceDuration = (x) => numeral(x).format('0:0').split(':').slice(1).join(':');


httpForward doesn't work

On mockserver-node v5.3.0 and mockserver-client v5.3.0, the reverse proxy example under examples folder doesn't work. It dumps errors like this:
java.lang.IllegalArgumentException: 1 error:
 - oneOf of the following must be specified "httpResponseTemplate" "httpForwardTemplate" "httpClassCallback" "httpError" "httpObjectCallback"
	at org.mockserver.client.serialization.ExpectationSerializer.deserializeArray(ExpectationSerializer.java:110) ~[mockserver-netty-5.3.0-jar-with-dependencies.jar:na]

For the time being, is there any way to workaround that with httpForwardTemplate property?

This issue must be related to https://github.com/jamesdbloom/mockserver/issues/437


Added Dutch translation

:-)

@Vistaus
Thanks for your contribution, as I don't know Dutch, could you please double check the translation and let me know if it is OK?


Migrating a running app to sound nnbd doesn't change mode

If I have a flutter app running in mixed mode while I'm migrating, and I land changes to get into sound mode, hot restart/reload doesn't appear to do the right thing.
On my first try, hot restart / web got stuck.
After, I added // @dart=2.10 to the app entry file, relaunched, removed the line, and did a hot restart/reload.  On Web and iOS, the app restarts fine but silently stays in unsound mode.  I need to stop and relaunch to get sound mode.
It'd nice to either:

switch modes
print an error and fail, suggesting a restart (this happens when you're in sound mode and add a // @dart=2.10 line).
at least print a warning

Not sure if that would be in the CFE or flutter tool?
@mit-mit @johnniwinther @jonahwilliams

cc @jensjoha

I think staying in unsound mode is the best we're going to do for web, given that we need to provide a specific platform dill and serve a specific prebuilt SDK.

Getting stuck isn't great, but the soundness is a setting in the options - and the options doesn't change on reload.
Can you provide example code of it getting stuck? I can certainly look into that, but I don't think that dynamically shifting to sound mode is something we're going to get.

Getting stuck only happened once.  I'll see if I can repro and file a separate bug if I can.  It may also be web specific.
I don't think we need dynamic shifting of modes.  I'm also not sure this is high priority - depends if folks commonly have the app running in debug mode while they migrate.  If they do, an error may be better than silently staying in unsound mode.
An easy repro on not changing modes:

Open the the flutter hello app (examples/hello_world) - I'm on the current dev channel (Flutter 1.24.0-10.1.pre / Dart 2.12.0 (build 2.12.0-29.7.beta)).
Run it in debug mode - I'm using the iOS emulator on a Mac.
Change main.dart to

void main() => runApp(Center(
    child: Text('Sound mode is ${[1, null] is! List<int>}',
        key: const Key('title'), textDirection: TextDirection.ltr)));

Hot restart (reload won't re-render title)
Change the pubspec.yaml SDK lower bound to: >=2.12.0-0.0
The app should be immediately null safe (ignore tests) - hot restart.
Will still see "Sound mode is false"
Stop app and restart.  Will see "Sound mode is true".
Change the pubspec.yaml back to the original value.  No change on hot restart.
Add // @dart=2.10 to main.dart - will see compilation error (I think this is good.)
Stop app and restart.  Will see "Sound mode is false".

If I recall correctly there is some auto detect thing in play when starting up... When you launch first it concludes it's not sound and sets those settings; shutting down and starting up again re-does that and concludes that it is sound and sets those settings...

I'm seeing some pretty confusing behavoir around steps 5-9. Specifically this set of steps:

Open the the flutter hello app (examples/hello_world)
Change the pubspec.yaml SDK lower bound to: >=2.12.0-0.0 to opt-in
flutter run
Add // @dart=2.10 to main.dart
Hit 'hot reload'

=>
Performing hot reload...
Reloaded 1 of 364 libraries in 213ms.

lib/main.dart:5:1: Error: A library can't opt out of null safety by default, when using sound null safety.
<EMAIL_ADDRESS>^^^^^^^^^^^
Performing hot reload...
Try again after fixing the above error(s).

If you quit and restart, it works as expected (runs in unsound null safety).
This is especially confusing as our docs recommend this approach (using a 2.9 language marker in the entry point) to enable unsound null safety.
Can we detect when this happens during a reload, and throw a more explicit error?

Closing this issue as we are moving to sound null safety by default.


UIAPPS-104 Create a UI Extensions react package

Motivation

Jira Issue: https://datadoghq.atlassian.net/browse/UIAPPS-104
We want to make it easier to use UI Extensions with react.

Changes
There's a lot here, but it's mostly infrastructure changes.

We make it so any package that starts with @datadog/ui-extensions- gets locked together with the same version. This took some extra work to make changesets still work the way we want. Hopefully if https://github.com/changesets/changesets/pull/690 merges, it'll mean we can remove a lot of this behavior.
There's also a patch that we had to do to the @changesets/assemble-release-plan package that we should ask about.
We make a react package that provides a hook for using the context. The context is one of those things that can solve a lot of problems, but using it is not that straight-forward. Hopefully by providing a hook that does all the hard work, we can push more people toward using it.
Also, we should be able to build upon it to make other aspects of UI Extensions easier as well.
Finally, we actually use the new package in the examples. This dogfooding should help guide the direction of this new package, while also showing its usefulness.

Testing

Mostly, take a look at the examples and see if they make sense.

Releases

Choose one:

[ ] No release is necessary.
If you're only updating examples/documentation, this is likely what you want.
[x] All packages that need a release have a changeset.

📦 Published PR as canary version: Canary Versions

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS>npm install<EMAIL_ADDRESS>npm install<EMAIL_ADDRESS>npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>yarn add<EMAIL_ADDRESS>yarn add<EMAIL_ADDRESS>yarn add<EMAIL_ADDRESS>

Maybe the react api patterns being debated here can be an engineering sync topic?

Thanks for the multiple reviews and helping figure out things!


Additional functions for Index.list and Pinecone.Builder

Is this your first time submitting a feature request?

[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing functionality

Describe the feature
Hi guys,
For Pinecone.Builder, I want to specify my own custom PineconeConfig with a custom managed channel:
i.e.
val builder = Pinecone.Builder(pineconeConfig.apiKey)
builder.setPineconeConfig(pineconeConfig)
The reason is we use customManagedChannel for the PineconeConfig with some additional configuration.

For Index.list api, we want to call list with a paginationToken, but not a prefix.
That's currently not possible from what I'm seeing in your Index.java.
    public ListResponse list(String namespace) {
        this.validateListEndpointParameters(namespace, (String)null, (String)null, (Integer)null, true, false, false, false);
        ListRequest listRequest = ListRequest.newBuilder().setNamespace(namespace).build();
        return this.blockingStub.list(listRequest);
    }

    public ListResponse list(String namespace, int limit) {
        this.validateListEndpointParameters(namespace, (String)null, (String)null, limit, true, false, false, true);
        ListRequest listRequest = ListRequest.newBuilder().setNamespace(namespace).setLimit(limit).build();
        return this.blockingStub.list(listRequest);
    }

However, it is possible if I just use your RESTful apis.
Describe alternatives you've considered

Who will this benefit?
Those who want more control.
Are you interested in contributing this feature?
Sure
Anything else?

I can submit these changes if you'd like?

PR to address my first point;
https://github.com/pinecone-io/pinecone-java-client/pull/129

Sorry I was out for a few days and I misled you before but for custom Managed gRPC channel, we instantiate the PineconeConfig class followed by PineconeConnection class and finally the Index or AsyncIndex class depending on the stub you'll like to use. So the code will look something like this:
import io.grpc.ManagedChannel;
import io.pinecone.clients.Index;
import io.pinecone.configs.PineconeConfig;
import io.pinecone.configs.PineconeConnection;
import io.grpc.netty.GrpcSslContexts;
import io.grpc.netty.NegotiationType;
import io.grpc.netty.NettyChannelBuilder;
import io.pinecone.exceptions.PineconeException;

import javax.net.ssl.SSLException;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;

public class Example {
    public static void main(String[] args) {
        // Instantiate PineconeConfig object to set customManagedChannel
        PineconeConfig config = new PineconeConfig("PINECONE_API_KEY");

        // Endpoint: format the endpoint by removing https://
        // https://github.com/pinecone-io/pinecone-java-client/blob/main/src/main/java/io/pinecone/configs/PineconeConnection.java#L170
        String endpoint = "indexName-abcd123.svc.abcd-1234-a12b.pinecone.io";
        NettyChannelBuilder builder = NettyChannelBuilder.forTarget(endpoint);
        // Create custom channel
        try {
            builder = builder.overrideAuthority(endpoint)
                    .negotiationType(NegotiationType.TLS)
                    .keepAliveTimeout(5, TimeUnit.SECONDS)
                    .sslContext(GrpcSslContexts.forClient().build());
        } catch (SSLException e) {
            throw new PineconeException("SSL error opening gRPC channel", e);
        }

        // Build the managed channel with the configured options
        ManagedChannel channel = builder.build();
        config.setCustomManagedChannel(channel);

        // Instantiate the PienconeConnection object
        PineconeConnection connection = new PineconeConnection(config);
        Index index = new Index(connection, "serve1");
        // Data plane operations
        // 1. Upsert data
        System.out.println(index.upsert("v1", Arrays.asList(1F, 2F, 3F)));
        // 2. Describe index stats
        System.out.println(index.describeIndexStats());
    }
}

Seems to work.
Thanks!!

We appreciate you guys being open to contributions. :)


When I type something in the textfield, sometimes it get the following error

════════ Exception caught by services library ══════════════════════════════════
The following assertion was thrown during a platform message callback:
'package:flutter/src/widgets/shortcuts.dart': Failed assertion: line 78 pos 16: 'keys.isNotEmpty': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack
#2      new KeySet.fromSet
package:flutter/…/widgets/shortcuts.dart:78
#3      new _LogicalKeySet&KeySet&Diagnosticable.fromSet (package:flutter/src/widgets/shortcuts.dart)
#4      new LogicalKeySet.fromSet
package:flutter/…/widgets/shortcuts.dart:187
#5      ShortcutManager.handleKeypress
package:flutter/…/widgets/shortcuts.dart:321
#6      _ShortcutsState._handleOnKey
package:flutter/…/widgets/shortcuts.dart:490
...
════════════════════════════════════════════════════════════════════════════════

Hi @lrthorhammer007
Can you please provide your flutter doctor -v your flutter run --verbose and a complete reproducible minimal code sample
Thank you

Hi @lrthorhammer007
Can you please provide your flutter doctor -v your flutter run --verbose and a complete reproducible minimal code sample
Thank you

I have put the code in the attachment. It will show how the problem occurs.
DEMO.zip

Hi @lrthorhammer007
Can you please try Android Emulator or physical to reproduce this issue?  Looks like you're running on gaming emulator which is not supported by Flutter. Also please upgrade to the latest stable 1.20.4
Running your project on API 29 Android Studio emulator, no issues

logs
Launching lib\main.dart on Android SDK built for x86 in debug mode...
✓ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Connecting to VM Service at ws://<IP_ADDRESS>:53471/yMffXII7jZI=/ws
D/EGL_emulation(15759): eglMakeCurrent: 0xd795f0c0: ver 2 0 (tinfo 0xd797f4b0)
D/eglCodecCommon(15759): setVertexArrayObject: set vao to 0 (0) 1 0
W/IInputConnectionWrapper(15759): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper(15759): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(15759): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper(15759): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper(15759): endBatchEdit on inactive InputConnection
W/IInputConnectionWrapper(15759): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper(15759): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(15759): getTextAfterCursor on inactive InputConnection
W/IInputConnectionWrapper(15759): beginBatchEdit on inactive InputConnection
W/IInputConnectionWrapper(15759): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper(15759): endBatchEdit on inactive InputConnection
W/IInputConnectionWrapper(15759): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper(15759): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(15759): getTextAfterCursor on inactive InputConnection

flutter doctor -v
[✓] Flutter (Channel stable, 1.20.4, on Microsoft Windows [Version 10.0.19041.508], locale en-US)
    • Flutter version 1.20.4 at C:\Code\flutter_stable
    • Framework revision fba99f6cf9 (10 days ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Code\sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = C:\Code\sdk
    • Java binary at: C:\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Code\android-studio
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.49.1)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.14.1

[✓] Connected device (1 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

• No issues found!

Hi @lrthorhammer007
Can you please try Android Emulator or physical to reproduce this issue? Looks like you're running on gaming emulator which is not supported by Flutter. Also please upgrade to the latest stable 1.20.4
Running your project on API 29 Android Studio emulator, no issues
logs
flutter doctor -v

Okay, I'm going to run it on the real machine

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Injecting helper-objects into POJO-rules

Hey!
I have one more question.
Imagine the case I need some utility-object (f.e. for db-access) in my POJO-rule. Is there any other way to inject this object into the rule than injecting it as a fact?
Because this feels kind of wrong to me, because the object is not really a fact which is needed to handle my business-rules, it's more a helper-object... I guess you know what I mean.
In a spring-context f.e. it would be cool if something like that would work (I mean the dao-field in the middle):
@Rule( name = "SimpleRule")
public class SimpleRule {
    @Given("status")
    private int status;
    @Given("object")
    private Object object;
    @Result
    private String result;

    @Autowired
    private Dao dao;

    @When
    public boolean when() {
        return true;
    }

    @Then
    public RuleState then() {
        dao.iWantToLoadSomethingToFigureOutWhatToDoNow();
        result = "Rule was triggered with status=" + status + " and object=" + object;
        return  RuleState.NEXT;
    }
}

Do you have any suggestion how to do this by not injecting this as a Fact?
Regards,
Peter

Right now, I think it would need to be fact. But I like where you are going with this. I think there would be some value in having rules be container aware for Spring and maybe Weld too.
The RuleBookRunner takes care of instantiating the POJO Rules and RuleAdapter takes care of adapting POJO rules to the Rule interface. So, you could modify RuleAdapter or create another Spring container-aware RuleBookRunner that did allow for @Autowire to work. I'd probably do the latter.
Thanks for the suggestion. I'll add it to a future release. Or if you want to try to bite it off yourself, and submit a PR, that would be cool too.

I should say i am in the similar context in my working project:
e.g. my RuleBook need to call other services (rpc) to get a list of POJO (templates) which is the skeleton of building my output result regarding to different business rules defined in my rule book.
Will also try have a look on this.

I'd be happy to help out. But before I'd start coding I would give it some more thoughts. I'm pretty sure that there is some value in having the possibility to inject utility-objects into rules, especially in a bit more complex applications I think it's is a very likely necessity.
But to keep the API of rulebook clean I would not just consider this in a spring (or weld, guice whatever) context. I would also make it possible for "plain" rulebook users, by adding an annotation like "@Utility" ore something, so you don't have to "abuse" facts for that. I think this is even more important than having is possible in Spring. Because otherwise you would make the framework (or at least some nice features of it) kind of dependend to Spring etc.
What's your opinion?

@pjotre86, I like how you are thinking about not wanting to be tied into one specific container. But I also think there is value in using the syntax that developers are used to. There is also a JSR standard for injecting resources that Spring supports (not sure about Guice tho). But regardless, the implementation is going to be a little different for each provider.
I would say, start with Spring and allow for @Autowired and @Inject, @Inject being the standard that works outside of Spring. RuleBook will have to be the one actually facilitating the injection via a RuleBookRunner implementation, like RuleBookSpringRunner; it will be a facade on top of the spring container. And it will have to be bound to Spring. Why? Because POJO rule instances aren't created until RuleBookRunner is run. You could do this as a decorator, perhaps. Play with it and see what you can do that could be used in place of the standard RuleBookRunner without ricocheting across a bunch of RuleBook classes and done in a relatively simple fashion.
You could do this either in rulebook-spring and take all the Spring stuff outside of RuleBook or you could do it inside of rulebook-core and then folks who aren't using Spring can just exclude the Spring dependencies (kind of a pain, but do-able). Either way, we'll move things around if we need to.

All right, sounds like a plan to me!
I have to say I'm not a spring-expert, but I will use this gain some experience/knowledge there. My schedule is abit tight, as I also have a job + a new girlfriend ;-) but I think latest on friday I'll find some time to look into it.

I don't know many people who do this stuff as a full-time gig. It's just about learning, having fun and giving a little back as time allows. If you have questions, feel free to post on here or the gitter channel. And if you find that you don't have the time to allocate for completion, post that too and someone else can pick it up.

Use SpringRuleBook and @RuleBean.  Create the rulebook as a SpringRuleBook and a new bean for your POJO.  Annotate your POJO with @RuleBean.  Your POJO now supports @Autowire.

@ekoon Can you provide an example of the use of @rulebean ?

@joannbrereton, the examples for using @Rule and @RuleBean do not seem to work with Spring Boot apps. However, if you annotate your rule with both annotations things seem to work as shown in the examples.

I was able to get dependencies autowired into the rules by adding both Rule and RuleBean annotations to the rule class. It appears that RuleBean does not implement the Rule interface so the reflection query does not pick them up.

What's the stage of this? I'm currently trying to get my rules to get @components injected and there's no way.
Is there an example somewhere to get this to work?
thanks

No PRs for this fix. I am cleaning up a few outstanding bugs at the moment. Once that's done, the focus will be Spring enhancements, including this feature.

@Panthro actually, there is an update in v0.11-SNAPSHOT that allows components to be @Autowired inside of Rules. Check out the com.deliveredtechnologies.rulebook.spring.SpringAwareRuleBookRunnerTest. I think that might be what you are looking for. There is currently nothing available for Weld, however.

I put an very trivial example here: https://github.com/rulebook-rules/rulebook#5-using-rulebook-with-spring. But it demonstrates the use.

This was a pretty recent contribution from @rizroj. So, it's only in the 0.11-SNAPSHOT until the next release (within the next week). Up until that contribution, rulebook- spring didn't really offer much beyond a few things for convenience. Now, with SpringAwareRuleBookRunner, rulebook- spring is needed to have Spring injectable rules. Sorry for the confusion. I updated the Spring section in the readme on the develop branch with a trivial example that shows how to have Spring inject components into rules.


Loading resource error

Hi, I'm trying heaps and get an error while loading an image.
Target flash, Haxe 3.4.0-rc.1, heaps latest git version.
Error: Error #1009: Cannot access a property or method of a null object reference.
It looks like Loader is null.

Building an example from the samples folder works well, so it looks like I'm doing some-thing wrong.

It was my mistake, I did not call hxd.Res.initEmbed();


Adds some consistency + fixes a couple of typos

There's no need to have a name of the website in the beginning of the description because it's already on its left.
One typo where Markdown link wasn't properly closed.
One typo in which the was a space between [..] and (...) in a Markdown link.
Removes unnecessary capitalization from one description.
Removes span.description in one of the links for which I presume were added there by copying something over from somewhere.

@aleksandar-todorovic hehe fair enough, nice set of changes thank you :)


Max-width utilities use 'width'

Example: .max-width-33pct evaluates to width: 33.33%;

Fixed by this commit


Can't process my data

Hi, sorry for my dumb question but i'm a newbie.
I'm trying to use your algorithm with my Gps data, but i keep getting error message: "unsupported operand type(s) for -: 'GPXTrackSegment' and 'float'"
How can i correctly implement it?
Polo_match.txt

Hi. You should probably start by figuring out how to get your input data, which seems to be XML, into a matrix of observations, something like
[
    [latitude1, longitude1],
    [latitude2, longitude2],
    [latitude3, longitude3],
    ...
]

see, for example https://stackoverflow.com/questions/1912434/how-do-i-parse-xml-in-python
Then you can start designing your Kalman filter. Also transforming the GPS coordinates (in degrees) to a metric coordinate system may be a good idea at some point.
I'm closing this as the topic is general data wrangling and Kalman filter design, not this library.


MediaIoBaseDownload: Handle unknown media length

Some media download APIs does not support partial downloads and do not return a 'Content-length' or 'Content-range' header and is therefore never considered done.
This change is to consider responses where the media length is unknown to be done.
This commit could potentially break media downloads where the API supports partial download and only returns a 'Content-length' header when the entire file has been served/read.
This commit fixes issue #15

How is this a fix? Doesn't it mean that if I rely on the done flag, I'll ever only get the first chunk of the file?

@YBadiss only if the server does not respond with a content-length or content-range header which AFAIK it does for all APIs supporting chunked downloads.


[TwitchBridge] Add new bridge

Adding a bridge for Twitch VODs again. There was one before but it was removed (c0df82c) when the Twitch API started requiring a client ID to use it. For now this uses the client ID that the twitch.tv website itself uses since that seems to be mostly static. Ideally administrators should set their own client ID.
This also uses the older "kraken" API so it can include some goodies like a list of games that were played during the video. The older API is supposed to be discontinued at some point in favor of the newer "helix" API, but since that has been found to be a bit incomplete "kraken" is still kept around for now, so we can use that until it's discontinued.

Thanks for the PR !


Can't connect to a plugin in Firefox

Describe the bug
Metamask can't connect to a locally hosted plugin in Firefox:
MetaMask - RPC Error: Problem loading plugin http://localhost:8081/package.json: NetworkError when attempting to fetch resource.
{…}
code: -32603
data: Object { originalError: {} }
message: "Problem loading plugin http://localhost:8081/package.json: NetworkError when attempting to fetch resource."
stack: "_add@moz-extension://c34e7a7b-b3cb-40de-98b9-058c052ca5d2/background.js:1:51840\n"
<prototype>: Object { … }

To Reproduce

Build Firefox extension from develop branch.
Create a new 'Hello World' plugin with Snaps CLI.
Open plugin page in Firefox, press 'Connect' button.
Press 'Submit' in popup window.

Expected behavior
Metamask should connect to a plugin.
Browser details (please complete the following information):

OS: Arch Linux
Browser: Firefox
MetaMask Version: develop branch

Additional context
I solved it by adding http://localhost/* to the manifest.json:permissions array.

@xuhcc, thank you for bringing this to our attention. We're deploying a fix, here: https://github.com/MetaMask/metamask-snaps-beta/pull/109


avoiding out of index exception Fixes #294

small change in threadsafe inline histogram

It just occurred to me that revising the index could bias the frequency upward. If we think about the max as the upper bin limit which is excluded from a given bin (so bin min <= x < bin max) then the bin max would be included in the next bin, which has a frequency of zero. So maybe we return zero instead of changing the index?


Allow customisation of caret visibility criteria and blink rate.

I have run into issue #144 (to make the caret visible on non-editable controls), and also I wish to be able to configure the rate of blinking.  (Some users must disable blinking cursors for accessibility reasons, so to hardcode the blink rate is problematic.)
So I have attempted to modify StyledTextArea to make this behavior customisable.  This seems to be working well in my application, but I would rather not maintain my own branch forever :)
I don't know whether you will agree with the implementation, as this is the first time I tried to write code using ReactFX, so I would appreciate your comments if there is a better way to do this!  Also I have not tried to expose these options in CSS, although perhaps that should be done?

...this is the first time I tried to write code using ReactFX, so I would appreciate your comments if there is a better way to do this!

I don't personally see any issues with the code you wrote. I also don't see any harm in implementing this. If Tomas approves of it, the CSS options should be included IMO.

Thanks for the PR! The code itself looks good. The question is, will these 4 modes (ALWAYS, WHEN_EDITABLE, WHEN_ENABLED, NEVER) cover everyone's needs?

The question is, will these 4 modes (ALWAYS, WHEN_EDITABLE, WHEN_ENABLED, NEVER) cover everyone's needs?

Why don't we just allow customization of showCaret?
ObjectProperty<BooleanBinding> showCaret = // creation code;

EventStream<Boolean> blinkCaret = EventStreams.valuesOf(showCaretProperty())
                                              .map(BooleanBinding::get)

Then one adjust it for whatever their use case is:
Node someOtherNode = // creation code;
StyledTextArea<PS, S> area = // creation code;
area.setShowCaret(area.focusedProperty()
                 .and(area.editableProperty()
                 .and(area.disabledProperty().not())
                 .and(someOtherNode.editableProperty())
                 .and(someOtherNode.disabledProperty().not())
)

Why don't we just allow customization of showCaret?

That's a good idea. Though the implementation you sketched would not work.

Though the implementation you sketched would not work.

:smile: I don't know why it wouldn't off the top of my head. However, I wouldn't be surprised since the implementation was thrown together real quick

EventStream<Boolean> blinkCaret = EventStreams.valuesOf(showCaretProperty())
                                              .map(BooleanBinding::get)

With map, you will only be calling get when showCaretProperty() changes. Which will be once in most cases ;).

With map, you will only be calling get when showCaretProperty() changes. Which will be once in most cases ;).

Dah! I should have known! facepalm...

How about this?
EventStream<Boolean> blinkCaret = EventStreams.valuesOf(showCaretProperty())
        .flatMap(showCaret -> Val.map(showCaret, Function.identity()).values());

EventStream<Duration> blinkRates = EventStreams.valuesOf(blinkRateProperty());

// whether or not to animate the caret
caretVisible = EventStreams.combine(blinkCaret, blinkRates)
        .flatMap(tuple -> {
            boolean showCaret = tuple.get1();
            Duration rate = tuple.get2();
            if (showCaret) {
                return rate.isZero()
                        ? Val.constant(true).values()
                        : booleanPulse(rate, caretDirty);
            } else {
                return Val.constant(false).values();
            }
        })
        .toBinding(false);
manageBinding(caretVisible);

One other minor improvement could be using a private static EventStream for the false and true eventstreams. Otherwise, each additional area is creating an unneeded EventStream.
Note: when I tested the above code out with the following code:
@Override
public void start(Stage primaryStage) {

    InlineCssTextArea area = new InlineCssTextArea("Some text");
    VBox box = new VBox(area, new TextArea());

    Scene scene = new Scene(box, 500, 500);
    primaryStage.setScene(scene);
    primaryStage.show();

    FxTimer.runLater(Duration.ofMillis(2000), () -> {
        System.out.println("Caret should show when area does not have focus");
        area.setShowCaret(area.disabledProperty().not());
    });

    FxTimer.runLater(Duration.ofMillis(6000), () -> {
        System.out.println("Caret should show when not have focus and is editable");
        area.setShowCaret(area.disabledProperty().not().and(area.editableProperty()));
    });

    FxTimer.runLater(Duration.ofMillis(10000),() -> {
        System.out.println("Make area no longer editable; caret should no longer show");
        area.setEditable(false);
    });
}

and clicked in the Rich text area and soon thereafter clicked in the second text area, the two carets were blinking at different rates. Not sure if that'll be annoying or not...

Val.map(showCaret, Function.identity())

this map by identity is redundant and equivalent to just showCaret.
Anyway, ObjectProperty<BooleanBinding> is kind of cumbersome, especially when Property<Boolean> would do just as well (the user can just bind it).
Still, I would like to preserve the default behavior, so at least a three-valued type would be necessary, like  enum { ON, OFF, AUTO } or Optional<Boolean>.

this map by identity is redundant and equivalent to just showCaret.

Yeah.  I tried Val.wrap(showCaret) but there was a type incompatibility or something like that. map was more of a bad way to get around that because I wasn't sure how else to get around it.

Anyway, ObjectProperty is kind of cumbersome, especially when Property would do just as well (the user can just bind it).
Still, I would like to preserve the default behavior, so at least a three-valued type would be necessary, such as enum { ON, OFF, AUTO } or Optional.

So would ON be the current conditions (focused, editable, not disabled), OFF would not show it at all, and AUTO would be the value that Property<Boolean> returns when the developer binds it to something else?

I meant AUTO to be the current behavior, ON to always show, OFF to never show. No additional Property<Boolean>, just Property<CaretVisibility>. If someone wanted to bind it to an ObservableValue<Boolean>, they could do it like this
ObservableValue<Boolean> p = ???;

area.showCaretProperty().bind(Val.map(p, b -> b ? ON : OFF));

So, blinkrate would be the only CSS to implement in this PR, right?

CSS would be nice, but I don't mind if that's not included in this PR.

@shoaniki can you update your PR to take into account the comments we've made above?

@TomasMikula If we did implement the CSS for the blink rate, the StyleConverter.getDurationInstance() returns back a javafx.util.Duration, not ReactFX's expected java.time.Duration. This leads to a conversion step in booleanPulse.

The conversion needs to be done just once per CSS change, so I don't find it a problem. Alternatively, one could always implement a converter that returns java.time.Duration.

Alternatively, one could always implement a converter that returns java.time.Duration.

I thought about doing that, but it felt like copyright since I'd only be replacing the Duration class and using a long instead of a double


Encode percent character, add test

Fixes #414.

I'm afraid, that to get your test to pass, you need to make a VCR recording, as specified in the docs. I can handle this, but it will take me some time to get to.

@martindurant, thanks for finishing this up for me!
Sorry I wasn't able to get the recordings updated, I spent some time working on it, but so far was unable to get them working properly, and haven't had as much time as I'd like to dig in further.
I really appreciate your support and contributions to the community.

No worries, and thanks for not getting impatient :)


DRILL-5319: Refactor "contexts" for unit testing

This PR is purely a refactoring: no functionality is added or changed.
The refactoring splits various context and related classes into a set
of new interfaces with needed for operator-level unit tests. The other,
Drillbit-related methods are left in the original interfaces. Most code
need not change.
The changes here allow operator-level unit tests to mock up the
exec-time methods so we can use them without firing up a Drillbit (or
using mocking libraries).
A later PR will provide the sub-operator test framework that uses this
refactoring.
Changes include:

The OptionManager is split, with read-only methods moving to a new
OptionSet interface.
The FragmentContext is split, with an exec-only FragmentExecContext
proving low-level methods.
OperatorStats is split, with a new OperatorStatReceiver class
providing write-only support to operators.
Several places that accepted an OperatorContext or FragmentContext,
but needed only an allocator, are changed to accept the allocator
directly.

Thanks for the detailed and clear comments.
+1 LGTM

Please squash commits and resolve conflict.

Done.


Subscriptions api

I've got this working here.
I've not tested the delete or update calls yet, but can't see any reason they won't work.
I'll be testing them later today

Codecov Report

Merging #67 into develop will decrease coverage by 3.27%.
The diff coverage is 19.64%.

@@             Coverage Diff             @@
##           develop      #67      +/-   ##
===========================================
- Coverage       79%   75.72%   -3.28%
===========================================
  Files           18       18
  Lines          824      861      +37
  Branches        78       89      +11
===========================================
+ Hits           651      652       +1
- Misses         165      201      +36
  Partials         8        8

Impacted Files
Coverage Δ

mws/apis/subscriptions.py
25.8% <19.64%> (-34.2%)
: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 77d3ea7...24a6c41. Read the comment docs.

all calls tested and working on my production environment

Great was able to fire some requests.
Worked fine, only get_subscription i wasn't able to run.
The parameter delivery_channel="SQS", could be removed or used as last parameter?

Good point there. If we want to leave delivery_channel as its default, we have to do this on each call:
subscriptions_api = Subscriptions(...)
subscriptions_api.register_destination(marketplace_id, attributes={...})

If delivery_channel is moved to the end of the argument list, then using attributes as a keyword argument becomes optional:
subscription_api.register_destination(marketplace_id, {...})

The above call with current code would pass {...} to the delivery_channel argument, which doesn't work.

Likely best if we ask users to use keyword arguments all the time, but changing the method signature now just makes it a bit simpler, especially since delivery channel is unlikely to change:
def register_destination(self, marketplace_id, attributes=None, delivery_channel='SQS'):

@elcolumbio let me go check on the get_subscription call and report back.

fixed

@elcolumbio @GriceTurrble for the delivery_channel I chose to default it to SQS as it was the only option. I'll move it to the end to make it more user friendly


feat: ✨ syn-input: ng-wrapper

Description:
As a user, I want to be able to use the text-field in Angular, the same way a native ng component is used.
Best would be to generate it via the CEM

duplicate


Parse version string out of last git tag

I cant seem to re-open #1115 so I've once again created a brand new PR.
See #1115 for details.

Ok i'm really confused here.  I just did the following:
git clone https://github.com/fastlane/fastlane.git ftl
cd ftl
bundle install
bundle exec fastlane test

And its not passing - so that says to me the master branch is broken.

Any updates on getting this merged - did you guys fix the CI issues?

Hey @jeeftor, could you rebase master and squash the commits? We fixed the CI issue, so once you merge master into your branch it should be good to go :+1:

Are we good now?

Hey @jeeftor - thanks for putting this together. I'm sorry that this PR has sat so long in limbo.
We've talked this over and we're not sure this is a great fit with how we'd like to manage version information. For Apple projects, right now we believe that the info.plist is the canonical place to store and manipulate version info. We don't have a solid strategy for Android yet, but we believe that we'd like to have a similar strategy that stores/retrieves the info from a file in repository rather than the repository's metadata.
Again, apologies for not getting this feedback to you more quickly, but we really appreciate it! :+1:

So I do want to point something out - before we set this PR to rest.  The reason this PR came about is that we are using git-flow internally as our branching strategy and this IS how git-flow does versioning.  When you make a new release to the master branch it gets a new version tag.  Internally on both android and iOS we use this action to ensure that our app version matches the branch release version.
In many ways we've found its easier and more consistent to use branch tagging to drive version numbers than manually updating the version number.  Build number is easy to auto-increment but in order to boost the version number you need to make manual changes.
Subsequently, you also have an action that pulls the versioning from the number of commits -which is a little wonky because you can rewrite history with git and change the number of commits - which would lead to all sorts of disasters i think.
In any case - what we do internally (when there is a new commit to master with a new release tag)

Pull the latest branch tag
Update the info-plist version to match the branch tag
Depending on configuration bump the version number or zero it out.

The reason I pushed for this PR is that internally we have 5 different projects all using this strategy - and we've found it to be better than the old one which is "try to remember to update the version number when you make a new official release"
:)

Hey @jeeftor - thanks for that explanation! It was super helpful to get a picture of what you are going for. For my part, I'll definitely try to ask for this kind of clarification earlier in the future.
I suspect you are aware, but I just wanted to mention the extensions capability for using custom actions locally. It doesn't make it easier to share across projects, though, which was part of your point 😀
We'll keep an eye out for more demand for this strategy! :+1:


Issue about getting pic from bebop2

@N-Bz
Hi,
We need a new function on bebop2 that we hope it could take a photo and transmit the photo to the controller side through Wi-Fi. However, I found that the bebop2 could only take photo and save it in the storage of the UAV. Is there a solution about this?
THX!
Shiyu

Hi,
This issue is not directly related to bybop, and such would be more suited for the official developer forum.
If you want to get back the pictures from the drone during flight, you'll have to download them by FTP.
The full process can be split into the following steps:

Take a picture: send the PictureV2 command to the drone (in bybop this would be done with drone.send_data('ardrone3', 'MediaRecord', 'PictureV2'))
Wait for the drone answer: The drone will send the PictureTaken event, hopefully with taken as its first argument (again, in bybop: drone.wait_answer('ardrone3.MediaRecordEvent.PictureEventChanged') to wait for the event (if necessary), then success = (drone.get_state(copy=False).get_value('ardrone3.MediaRecordEvent.PictureEventChanged')['event'] == 0)
Download the picture from the drone internal memory: You can connect to the drone by FTP (port 21). All medias will be available in the /internal_000/Bebop_2/media/ folder, with the following name pattern: Drone_Model_Year-Month-DayTHourMinutesSeconds+Timezone_FlightId.jpg where the flight id part is optional (i.e. name can be Bebop_2_2017-04-06T095047+0000_XXXXXX.jpg if the picture was taken during a flight or a recording  or Bebop_2_2017-04-06T095047+0000_.jpg otherwise)

All ftp-related parts won't be integrated into bybop (you can do it with other tools)

Thanks for your reply! Really helpful to me!


feat: forge doc

Component
Forge
Describe the feature you would like
This feature request is a tracker for forge doc subcommand that, given the solidity source files, generates an mdbook-like documentation with an option to serve it.
Tasks:

[ ] create a doc crate with sample doc output struct
[ ] reuse fmt's Visitor for parsing source files
[ ] create default templates
[ ] render the doc output into templates

References:

docs.rs
solidity-codegen
mdBook

Additional context
No response

another (better imo) reference: https://github.com/primitivefinance/primitive-dodoc

nice find! including into the list

taking a look at this, currently working on a proof of concept, will send PR when ready

https://github.com/ZeframLou/foundry-docgen

See my comment here on ideas I had for forge doc: https://github.com/foundry-rs/foundry/issues/1410#issuecomment-1109824780
I've closed that issue to roll it up into this one

Outstanding items for #2701:

[ ] Render top level funcs/structs/events. Currently, forge doc renders only contracts and all it's children items as the output. Provide a way to handle other top level items.
[ ] Test coverage for DocParser & DocBuilder
[ ] Merge DocConfig with foundry config
[ ] Add contributor docs to the doc crate (that's on me)

+1. Would really like to use this feature.
In the meantime, I'm using https://github.com/OpenZeppelin/solidity-docgen combined with https://book.getfoundry.sh/config/hardhat, but it would be nice not to have to pollute our project with hardhat stuff only for generating documentation.


Conditional Formatting using calculated date fields?

Category

[* ] Question
[ ] Bug
[ ] Enhancement

Expected or Desired Behavior
I want to set the background colour of a status column based on the values in two calculated columns in the list.  The calculated columns are set to output in Date/Time format (date only).
The calculated columns are "Warning Date" and "Expiry Date" and are based on a Date/Time column called "BaseDate"
The formula for "Warning Date" is =[BaseDate]+2
The formula for "Expiry Date" is =[BaseDate]+5
The Idea is that if Expiry Date is less than or equal to now the status background should be set to Red, else, if the Warning Date is less than or equal to now the status background should be set to Amber, otherwise the status background should be set to Green.
Here is the column formatting code for the status column. If I use this code with actual date columns instead of calculated fields it works fine but with calculated fields the status is always Green. Can anyone tell me how to make this work with calculated dates please?
{
    "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json ",
    "elmType": "div",
    "txtContent": "",
    "style": {
        "background-color": {
            "operator": "?",
            "operands": [
                {
                    "operator": "<=",
                    "operands": [
                        "[$Expiry_x0020_Date]",
                        "@now"
                        ]
                },
                "#ff4d4d",
                {
                    "operator": "?",
                    "operands": [
                        {
                            "operator": "<=",
                            "operands": [
                                "[$Warning_x0020_Date]",
                                "@now"
                                ]
                        },
                        "#ffb84d",
                        "#70db70"
                        ]
                }
            ]
        }
    }
}

Unfortunately, Calculated Column values are not yet supported in Column Formatting. However, you can do some of these calculations yourself like this:
{
  "$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
  "elmType": "div",
  "style": {
    "background-color": "=if(Date(Number([$BaseDate])+5*24*60*60*1000)<=@now,'#ff4d4d',if(Date(Number([$BaseDate])+2*24*60*60*1000)<=@now,'#ffb84d','#70db70'))"
  }
}

If you want to use the official UI Fabric colors instead, you could adapt the above like this:
{
  "$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
  "elmType": "div",
  "attributes": {
    "class": "=if(Date(Number([$BaseDate])+5*24*60*60*1000)<=@now,'ms-bgColor-red',if(Date(Number([$BaseDate])+2*24*60*60*1000)<=@now,'ms-bgColor-yellowLight','ms-bgColor-greenLight'))"
  }
}

I tried to alter this method to suit my needs in setting up a Kanban List View inside SharePoint, and formatting a "Days In Progress" field to highlight (in red/orange) whenever the days in progress reaches a certain threshold.
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"elmType": "div",
"attributes": {
"class": "=if(Number([$Days In Progress]))<=20,'ms-bgColor-red',if(Number([$Days In Progress]))<=10,'ms-bgColor-yellowLight','ms-bgColor-greenLight'"
}
}
I tried applying your method to the scenario, however the field showed as blank after attempting this formatting statement. Would appreciate any suggestions.

The field reference uses the internal name of a field. If you created it with spaces, then the internal name will be Days_x0020_In_x0020_Progress:
{
  "$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
  "elmType": "div",
  "attributes": {
    "class": "=if(Number([$Days_x0020_In_x0020_Progress]))<=20,'ms-bgColor-red',if(Number([$Days_x0020_In_x0020_Progress]))<=10,'ms-bgColor-yellowLight','ms-bgColor-greenLight'"
  }
}

Thank you a million @thechriskent This helped! Here is the code I used, and had a question about a bug .
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"elmType": "div",
"style": {
"background-color": "=if(Date(Number([$Lastreviewdate])+52460601000)<=@now,'#ff4d4d',     if(Date(Number([$Lastreviewdate])+22460601000)<=@now,'#ffb84d','#70db70'))"
}
}
it seems to work, I have 2 test rows, and they are orange and red, so its working, but the date is not being displayed anymore. I checked with the developers tools on Chrome, and the divs are empty. I tried modifying the JSON to update the Color instead of background color, and the field returns empty again, and when I added in any text with the chrome developer tools, the text is the right colors, orange and red.
do you have any insight on why the date may not be returning?

just have to do a little more digging, and I got it to work,
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"elmType": "div",
"style": {
"background-color": "=if(Date(Number([$Lastreviewdate])+52460601000)<=@now,'#ff4d4d',     if(Date(Number([$Lastreviewdate])+22460601000)<=@now,'#ffb84d','#70db70'))"
},
"txtContent": "@currentField"
}
I found that txtContent tag here: https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting


Cannot install YAP 4.2.8

after filling out the https://freestatena.org/yap-4.2.8/admin/installer.php table
i create the config.php file in the root folder and I get a
Error: SQLSTATE[42S21]: Column already Exists: 1060 Duplicate Column name 'type'
What version are you running?
trying to run upgrade yap 4.2.8 on PHP 8.0+

Email a database dump to<EMAIL_ADDRESS>

emailed the dump

A couple of notes here:

Do not use the installer, copy the config.php over only.  I know you said you did that originally.  There is no need to use the installer if you are already using Yap.
Did you send the right database dump?  I don't see anywhere where the type column exists in this database.


demos\checkbox issues

When 'with JS' boxes are clicked
panic: vecty: Rerender invoked on Component that has never been rendered
wasm_exec.js:51
wasm_exec.js:51 goroutine 6 [running]:
wasm_exec.js:51 github.com/hexops/vecty.Rerender({0x44390, 0x460180})
wasm_exec.js:51 	~/go/pkg/mod/github.com/hexops/vecty@v0.6.0/dom.go:810 +0x10
wasm_exec.js:51 main.makeIndeterminateButton.func1(0x460680, 0x431e80)
wasm_exec.js:51 	~/workspace/material/demos/checkbox/checkbox_demo.go:296 +0x4
wasm_exec.js:51 github.com/vecty-material/material/button.(*B).onClick(...)
wasm_exec.js:51 	~/workspace/material/button/button.go:88
wasm_exec.js:51 github.com/hexops/vecty.(*HTML).reconcileProperties.func1({0x45398, 0x496650}, {0x496630, 0x1, 0x1})
wasm_exec.js:51 	~/go/pkg/mod/github.com/hexops/vecty@v0.6.0/dom.go:246 +0x1f
wasm_exec.js:51 github.com/hexops/vecty.funcOf.func1({{}, 0x7ff8000100000128, 0x4928b0}, {0x496620, 0x1, 0x1})
wasm_exec.js:51 	~/go/pkg/mod/github.com/hexops/vecty@v0.6.0/dom_js.go:60 +0x10
wasm_exec.js:51 syscall/js.handleEvent()
wasm_exec.js:51 	C:/Program Files/Go/src/syscall/js/func.go:96 +0x27

I started looking at the checkbox demo and couldn't work out where the problem was. I'm a bit busy over the next week or 2 but after that I have time to take a look at some issues.

I reworked the demos to be compatible with my development tool, which significantly speeds up development. Feedback welcome, and you should now have write access to this repository (master is protected, so no force push). Don't hesitate to merge  something that you think makes sense.

Actually, checkbox is now working completely (fixed in #42). There is an issue with button though currently suppressed by these lines (again, see in #42):
		// todo: enable this for all paths
		if js.Global().Get("window").Get("location").Get("pathname").String() == "/checkbox" {
			return vecty.MarkupIf(rootMarkup != nil, *rootMarkup)
		}

See the button issue (#27) for the problem; it needs to be fixed.

Thanks, I take a look. I'm relatively new to working with git/github so I appoligize in advance if it takes me a while to figure out how to work with this.

working


Questionnaire schedule generation from protocols

Add additional implementation of questionnaire schedule generation based on aRMT protocols (similar logic here)
An aRMT protocol currently has:

repeatProtocol (how often to repeat the whole protocol)
repeatQuestionnaire (how to schedule the tasks within the repeatProtocol)
reminders

Schedule DTO attributes

List of AssessmentSchedules
User object

AssessmentSchedule DTO attributes

Assessment name
Reference timestamp to base whole schedule generation on
List of Reference timestamps (generated from repeatProtocol offsets)
List of Tasks (generated from reference timestamps + repeatQuestionnaire offsets)

Task entity

Same as aRMT task (has name, timestamp, completion window, etc)

ProtocolHandler interface

Takes in an AssessmentSchedule, Assessment, and User and outputs a partially filled AssessmentSchedule
RepeatProtocol, RepeatQuestionnaire, NotificationHandlers implement the same ProtocolHandler interface (because they all take in an assessment schedule object, assessment, user, then do something with the current assessment schedule)

ScheduleGeneratorService interface

Generate schedule for user
Here, we iterate through each assessment in the protocol and generate an AssessmentSchedule for each Assessment (resulting in a list of assessment schedules), which belong to the Schedule object
In each Assessment Schedule generation, we have a ProtocolHandlerRunner to run each protocol handler (e.g. -> SimpleProtocolHandler -> SimpleRepeatProtocolHandler -> SimpleRepeatQuestionnaireHandler -> SimpleNotificationHandler)

ProtocolHandlerRunner (could be named better?)

Here we can add multiple protocol handlers
runProtocolHandlers() then runs each Protocol Handler in order of addition

QuestionnaireScheduleGeneratorService

Implements ScheduleGeneratorService
Adds the implementation of getting all protocol handlers from all the factories (based on aRMT scheduling: e.g. -> Protocol -> RepeatProtocol -> RepeatQuestionnaire -> Notification)

QuestionnaireScheduleService and Controller

Handles getting, generating, and deleting schedule
Task entities are stored in the database

Protocol Handlers

SimpleProtocolHandler/Protocol Handler (first Protocol Handler) - initialises an AssessmentSchedule with referenceTimestamp and assessment name
RepeatProtocolHandler - generates a list of reference timestamps based on the initial reference timestamp
RepeatQuestionnaireHandler - generates a list of tasks based on the list of reference timestamps and saves the task entities
NotificationHandler - generates a list of notifications based on the list of tasks and saves the notification entities
Currently has Simple implementation for each, and RandomRepeatQuestionnaireHandler

Aims to solve #70

@yatharthranjan Not sure what to do with Codacy issues? The factories should have Util/Helper in the name?


Implement AST nodes

Implemented the hierarchy of the AST.
Added unit tests for the individual nodes.

Btw, is there a special command required to update the test snapshots?

yes, to update them I would do this npm test -- -u which would get tranformed to jest --config jestconfig.json -u. Should i add that in the list of scripts?

Btw, is there a special command required to update the test snapshots?

yes, to update them I would do this npm test -- -u which would get tranformed to jest --config jestconfig.json -u. Should i add that in the list of scripts?

yes please! let's add to package.json


Using the formula option in the toolbar throws error

When I add the formula tab to the toolbar and click on it, it pops up a mini editor to add math equations. After adding a valid equation, it throws this error:
Uncaught TypeError: Cannot read properties of undefined (reading 'render')
On looking into it, the property that is undefined is window.katex. Is katex supposed to be added as an external property to use the formula option?

This issue is stale because it has been open for 60 days with no activity.

This issue was closed because it has been inactive for 7 days since being marked as stale.


How to convert speech into text using SpecAugment?

Is it possible to use this algorithm to input an audio file and get the text as an output (speech to text)?

This repository is a method of data augmentation in speech recognition.
For speech to text(STT), check out projects like deep speech.


Fineract 1012:Spring Security OAuth 2.x to Spring Security 5.2.x

Description
Describe the changes made and why they were made. Ignore if these details are present on the associated Jira ticket
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!

[x] Commit message starts with the issue number from https://issues.apache.org/jira/projects/FINERACT/. Ex: FINERACT-646 Pockets API.

[x] Coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions have been followed.

[ ] API documentation at fineract-provider/src/main/resources/static/api-docs/apiLive.htm has been updated with details of any API changes.

[ ] Integration tests have been created/updated for verifying the changes made.

[ ] All Integrations tests are passing with the new commits.

[ ] Submission is not a "code dump".  (Large changes can be made "in repository" via a branch.  Ask on the list.)

Our guidelines for code reviews is at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide

Hi @Wandji69 . Thanks for the PR. It looks like you modified the embedded Gradle Wrapper ( gradlew ) in a way that made this PR to fail on Travis as seen here: https://travis-ci.org/github/apache/fineract/builds/701349450 throwing a class not found exception.
Is this a new error?
Also try to squash your PRs in to 1 commit when possible so we have a clean commit history.

I’m looking into this but have not push. I will also squash.

Are @durrantk  and @Wandji69  paring on this PR? if so make sure to use the Co-Author feature for Git and Github. See: https://help.github.com/en/github/committing-changes-to-your-project/creating-a-commit-with-multiple-authors

But it will be easier for one person to get this work done..instead of 2. Is this really that complicated or you all are just learning?


fix mypy error

Because mypy is smart enough to see the None check in the function, but not smart enough to crawl other functions and see the None check.


CustomLinkedList

Александр Елыков

Coverage increased (+12.9%) to 73.077% when pulling 62c9b41815ab76bbb89ce5324877cb4402174691 on Russiancold:lecture03 into 354e59d14c8207f1a4977555c3526c00fb22514d on rybalkinsd:lecture03.

Coverage increased (+12.9%) to 73.077% when pulling d1a3f1426d78fb75bac3882d3f2d1f79e7d9cd70 on Russiancold:lecture03 into 354e59d14c8207f1a4977555c3526c00fb22514d on rybalkinsd:lecture03.

Coverage increased (+12.9%) to 73.077% when pulling ed608eea1206076b9140ba2c16fe05bf32cfc053 on Russiancold:lecture03 into 354e59d14c8207f1a4977555c3526c00fb22514d on rybalkinsd:lecture03.

Coverage increased (+14.3%) to 74.432% when pulling c2acd6f4e10abdad3752e9875e1734d4f863ea87 on Russiancold:lecture03 into 354e59d14c8207f1a4977555c3526c00fb22514d on rybalkinsd:lecture03.


Split message option attempts to send too many messages

When specifying { split: true } as a message option, the request rejects with Cannot send empty message.  This seems to be the result of the split message option attempting to send more messages than necessary, as the entire text does get sent but an error is still thrown.

@GusCaplan changed the split messages logic in v11, which could very well be the cause of this issue. What content triggers this specifically?

It's my help command: here's a pastebin.

Yes, it is not a very optimized command.

Note: this is on indev-prism.  I haven't tested on master.

I have had some issues with split too, like on the first message it throws a bad request and stops. I made my own split function, but then it throws errors even though the messages send :/


Fixed improper allignment in the source code related to UdtTypeName p…

…roperty

@zscn : Thanks for your contribution! The author, @rothja, has been notified to review your proposed change.

@zscn Thank you. I'm not sure how the formatting got so bad, but appreciate the fix!

#sign-off


Use time picker alike number picker for number of meditation periods

It would be easier to pick a number from a circle than to scroll through the spinner.

Either to come or to be designed completely different with #68.


Translate Notifications

Allows to translate notifications from userlog service.
Based on https://github.com/owncloud/ocis/pull/5699
~DO NOT MERGE BEFORE BASE IS MERGED~

:boom: Acceptance test Web-Tests-ocis-smoke-ocis-storage-2 failed. Further test are cancelled...

@mmattel could you do your magic with the readme extension and the new envvar?


Missing beginning Application tag in code example

@docjay : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thanks for your contribution.  I've merged your changes and they should be live soon.


doc: Add side input docs

This file also needs to be added to mkdocs.yml.

Is it side input or side inputs, plural? we need to standardize it.

@vigith At this point we seem to be using both in different places!
If we're going with just one, in that case we should update in code and documentation both then.


No close and hide functions.

This is a good plugin, However, there is no close and toggle hide functionality.

Hy, @albay13! Thanks for your feedback.
I didn't implement this functionality yet because I'd like to let the component behave either with or without a toggle button. However, in a future implementation I will create a new component with this feature, e.g. ''.

I agree.

That's not the point, the point is there is a button but no prop/event for the close button (at least documented)

Hi, @Tofandel! That is really a problem. Thanks for your feedback.
I forgot to implement a way of passing an event to the closing button (that one with an 'X'). However, I will fix this problem as you suggest:

Changing the slot to scoped
Adding an event prop for the button
About the problem with feather lib, I dont know yet if it's really necessary remove it, because in future implementations other icons can be needed.

Feels free to fork this project and implement those fixes.

I already did https://github.com/MatheusrdSantos/vue-quick-chat/pull/4 ;)
You can have a look at the test index.html I edited it

I accepted your pull request.
I guess the problem was solved, so I will close this issue.
@Tofandel, Thanks again!


Out of memory error when loading big collada file

Crash during import of 50 megabyte collada file, 4 Gb of RAM is not enough. Looks like because of inefficient XML reading.

Fixed in 1ee158f3c5c4b6fd68dbdb90b49ae86b8385915a by using xml-conduit instead of xml.


iOS deployment target issue

Please refer to https://github.com/Carthage/Carthage/issues/1951

Looks like the library does support iOS 8 in its podspec: https://github.com/duemunk/Async/blob/2.0.3/AsyncSwift.podspec#L10 but the generated Xcode project by swift package generate-xcodeproj does not. So please file an issue on that repository.

Is it related to #121?