#111 App Scan non-Serialized Datamatrix Code

Extra error message on mobile app screen when serial  number is left blank.

Hi @rite2bala, can you please attach a print screen with this Extra error message and steps to reproduce ?

@adiganga2002 @rite2bala when producing a non-serialized batch then the Datamatrix code would have GTIN (AI01), Batch (AI10)Number, Expiry Date (AI17). The code would not have the serial Number (AI21). A code that I saw had AI21 and it had a value of 0. This is incorrect as AI21 should not be in the code at all. If clarification is needed then please reach out to me.

Hello @adiganga2002
Please ignore the issue regarding extra error message for now. I am unable to reproduce the error.
As per the comments mentioned in the  https://github.com/PharmaLedger-IMI/epi-workspace/issues/111 . There are three data matrices in the description. All three of the data matrices, do not have AI21 Serial number.
I created a sample code using the app on epiqa and scanned using gs1 data matrix scanner

Result:
Raw output:
010897767123573921010ZK219117210324
Interpretation:
GS1 identifiers
01	GTIN<PHONE_NUMBER>5739
10	BATCH/LOT		ZK2191
21	SERIAL		0
17	USE BY OR EXPIRY		2021-03-24
Equivalent identifiers
Human-readable AI syntax	(01)08977671235739(17)210324(10)ZK2191(21)0
Native AI syntax<PHONE_NUMBER>2357391721032410ZK2191210
GS1 Digital Link URI	https://id.gs1.org/01/08977671235739/10/ZK2191/21/0?17=210324
The Serial Number must not be a part of the code.

Just noticed that Patrick has also posted similar screenshot on the story #111
https://user-images.githubusercontent.com/58995303/109262928-a5b06280-7802-11eb-9298-b7447e2d2d34.png
"It also seem to cause the App to crash but I could not re-create this. I am not reporting this as a bug because the system was only designed to ready serialized Datamatrix codes.

Hello @adiganga2002 @skutner
I was able to reproduce the error by scanning the above datamatrix code.
This was an old code created prior to the deployment.
The error appears differently in iOS and in Android .
Could you please check?
cc: @nhrishi

I tested this today again for the below code in eqiqa environment. I got the same error for the new product and batch.
https://barcode.tec-it.com/en/DataMatrix?data=(01)28888388884889(17)210430(10)KB9261

@nhrishi that Datamatrix code you gave the link to is not encoded correctly.

I created a similar code as Hrishikesh and observed that I do not receive the error:
https://barcode.tec-it.com/en/DataMatrix?data=(01)23332255466678(17)210430(10)RL0137

Hi @nhrishi @rite2bala . Is this still a bug or we can close this issue?

Just tested for the Scandit library, it works as expected for all above mentioned codes(the ones in comments included)

@rite2bala this issue shall be resolved soon - can we close it already? if there are any more problems with it please create a new bug from it and lets tackle it separately thank you

Current understanding: A non-serialized batch is one where valid serial numbers are not uploaded. It is not any explicit setting to indicate batch is non-serialized.
Case 1

Since we are testing a non-serialized batch. We created a batch where serial number check was disabled.

We created a 2d matrix without serial number i.e. without (21) tag:
https://barcode.tec-it.com/en/DataMatrix?data=(01)09812376129473(17)240524(10)RV5163

When the above code is scanned – an error appears on the mobile app and ePI is not displayed.

Case 2

For a non-serialised batch – We create a 2d matrix with test serial number (any number after 21 tag)
https://barcode.tec-it.com/en/DataMatrix?data=(01)09812376129473(17)240524(10)RV5163(21)1231

It works fine - because the serial number check is disabled and we are supplying an invalid serial number.

Observation:
The current scanner is unable to interpret data matrix without 21 tag.

@mppub  This issue will have to remain in QA testing as it is not resolved yet.
Please let me know if you are able to reproduce the error or you see any discrepancy in my approach.
Thank you.

hi @mppub We were able to test only now because we got a stable interface without critical errors.
This error would have to remain in QA stack until fixed.
Please do let me know if you were able to reproduce the error or need any additional explanation or would like to correct my testing approach.
Thank you.

Create a non serialised batch

Scan the data matrix -
Result: Data matrix doesn't contain serial number

Add valid serial number to the same batch

View data matrix
Result: Data matrix contains the updated serial number

Update the batch and remove all updated serial numbers

Scan data matrix generated from the tool -
Result:  Data matrix code generated by the enterprise wallet still contains serial number (Bug)?
When the above code (with the serial number) is scanned , the serial number check fails (and that is the expected behaviour)

Scan the code generated on step 2.
Result: Serial number error still shows up (Bug!)
Expected output at step 7-
When valid serial numbers are cleared, and a data matrix without serial numbers are scanned - it must not show


Prevent Personalize ranking processor from being created as part of an ad hoc pipeline

In https://github.com/opensearch-project/OpenSearch/issues/8163, we made a change to pass the pipeline creation context to a processor factory, so the factory can take appropriate action depending on how it's being called.
For the Personalize ranking processor, we should fail if invoked as part of a search request (i.e. in an ad hoc pipeline), to make sure that we're not creating a new AWS Personalize client on every search request. This requires a check in the Personalize processor factory.

We will create the new release candidate <IP_ADDRESS> for this fix.

updated the artifact link here


Error running the demo

python main.py input output
/Users/jli/miniconda3/envs/simage/lib/python3.7/site-packages/sklearn/base.py:318: UserWarning: Trying to unpickle estimator LinearSVC from version 0.23.1 when using version 0.22.2.post1. This might lead to breaking code or invalid results. Use at your own risk.

I was able to solve that error by installing the proper version of scikit-learn. `pip install skikit-learn==0.23.1 in your case. Unfortunately there is no requirements.txt provided which would solve this error.


ndk: Rework media error types

CC @paxbun

Clean up the names: we're already in the ndk crate so no need to repeat that in the type name;
Make the types available outside the media module, so that they can be used in AMidi bindings which are not located inside libmediandk.so (but libamidi.so);
Add documentation comments;
Guard dead_code helper functions with the right feature bound.

Thinking of doing the same little tweaks to BitmapResult and friends.

LGTM! By the way, construct or construct_never_null emit unused warnings when both media or midi are not enabled. Is that okay? IIRC, I tried to put some #[cfg(...)] to remove those warnings, but we kept it unchanged because of this rewriting.

Yes indeed. It has bothered me too, but not enough to come up with a more restrictive cfg bound. Those are generally error-prone and would require extensive checking of all media, api-level-24, and later midi combinations of features in the CI.
With this PR MediaError::from_status() is also added to the list, fwiw :)

I'm considering at least constraining this with media, then you can add midi to it in https://github.com/rust-mobile/ndk/pull/353.

@paxbun done, moved and fixed the cfg feature bounds. You'll have to add midi to the top-level #![cfg(feature = "media")] -> #![cfg(any(feature = "media", feature = "midi")] but can hopefully leave the other cfgs intact as they automatically get enabled via "midi" -> "api-level-29" -> "api-level-24".
Though as you don't use construct_never_null(), this might need yet another bound :(

Otherwise I might as well switch back to #[allow(dead_code)] (while still guarding the module as a whole) and document that the cfgs are nontrivial and would be hard to test and maintain all combinations.

Though as you don't use construct_never_null(), this might need yet another bound :(

Yup it does :(

I also think guarding the whole module with cfg and adding #[allow(dead_code)] to each function is the best now. This would be the case where we should use explicit allow.


Add: LaunchPad Lab

Company
LaunchPad Lab
Description
LaunchPad Lab is a web development studio focused on growing businesses. We are highly skilled and focused on success. We design with reason, impress users with the best web experience, and write exceptional code. We measure ourselves by the success of our clients.
Link
https://launchpadlab.com/careers/
Location
Chicago, IL
This entry was submitted by the form on the site

Please include this link in our description as well: https://launchpadlab.com/blog/apprenticeships-how-we-approach-this-old-new-trend/
Thanks!

Bump :)

Or is this resolved?

I believe it has not been resolved. I'll take a look at adding this tonight :) I've been wanting to update some stylings anyway.

Any update on this?


Tons of warnings in CUDA 10.2

Hi all,
Seems that GSL gives tons of warnings in the headers when compiling CUDA. For convenience, here are all of them:
/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1130): warning: __host__ annotation is ignored on a function("~not_null") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1130): warning: __device__ annotation is ignored on a function("~not_null") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1131): warning: __host__ annotation is ignored on a function("not_null") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1131): warning: __device__ annotation is ignored on a function("not_null") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1132): warning: __host__ annotation is ignored on a function("not_null") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1132): warning: __device__ annotation is ignored on a function("not_null") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1133): warning: __host__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1133): warning: __device__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1134): warning: __host__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1134): warning: __device__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1696): warning: __host__ annotation is ignored on a function("span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1696): warning: __device__ annotation is ignored on a function("span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1697): warning: __host__ annotation is ignored on a function("span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1697): warning: __device__ annotation is ignored on a function("span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1712): warning: __host__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1712): warning: __device__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1713): warning: __host__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(1713): warning: __device__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2225): warning: __host__ annotation is ignored on a function("basic_string_span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2225): warning: __device__ annotation is ignored on a function("basic_string_span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2332): warning: __host__ annotation is ignored on a function("basic_string_span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2332): warning: __device__ annotation is ignored on a function("basic_string_span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2334): warning: __host__ annotation is ignored on a function("basic_string_span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2334): warning: __device__ annotation is ignored on a function("basic_string_span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2371): warning: __host__ annotation is ignored on a function("~basic_string_span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2371): warning: __device__ annotation is ignored on a function("~basic_string_span") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2373): warning: __host__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2373): warning: __device__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2375): warning: __host__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2375): warning: __device__ annotation is ignored on a function("operator=") that is explicitly defaulted on its first declaration

Thank you for the report. Would you mind issuing a PR that removes the offending gsl_api declarations?
We kind of support CUDA in gsl-lite but we have neither dedicated tests nor any CI for it currently. Issues like this one or that one will keep creeping in until we do something about it.
My co-worker uses gsl-lite with CUDA; I hope we'll find the time to address this soon.

sure thing! Would you want CI for CUDA set up too? There is another project I’ve worked on so i may explore both at once.

Yes, I definitely appreciate any input on that front :)

OK, so, this seems to have gone away after some commit done after release 0.34 (which I was using). However, the most current version of gsl-lite.hpp does seem to have a few warnings:
/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2682): warning: pointless comparison of unsigned integer with zero

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2688): warning: pointless comparison of unsigned integer with zero

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2694): warning: pointless comparison of unsigned integer with zero

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2700): warning: pointless comparison of unsigned integer with zero

/home/gavin/code/openmc/vendor/gsl/include/gsl/gsl-lite.hpp(2700): warning: pointless comparison of unsigned integer with zero

However, these warnings may be good to not remove considering that index_type is typedef'd depending on the compiler. It's hard to imagine any reason why std::size_t would ever be <= 0, so perhaps those checks done in the lines mentioned above are indeed pointless.
Would you like me to take that out?
BTW, there is this useful CUDA+travis example available:
https://github.com/jeremad/cuda-travis
Please let me know if you'd like me to make a PR to add that to your testing setup.

span<>::index_type is user-configurable:
https://github.com/martinmoene/gsl-lite/blob/26da1e6a38a39f04dfddd4848ccacd04d259e06d/include/gsl/gsl-lite.hpp#L2430
The comparison against 0 is required if a signed type such as std::ptrdiff_t is used for gsl_CONFIG_SPAN_INDEX_TYPE.
One way to avoid both the comparison and the warning without losing the check for negative signed numbers would be to cast both comparands to std::size_t, taking advantage of the fact that a negative signed number will turn into an unsigned number larger than the largest representable number in gsl_CONFIG_SPAN_INDEX_TYPE:
    gsl_api gsl_constexpr14 span first( index_type count ) const
    {
        Expects( std::size_t( count ) <= std::size_t( this->size() ) );
        return span( this->data(), count );
    }

This assumes that signed integers use two's complement representation, which is probably fine (it was observed that all relevant implementations use two's complement, so C++20 will explicitly require it). It also assumes that sizeof( std::size_t ) >= sizeof( gsl_CONFIG_SPAN_INDEX_TYPE ). We could either make that a requirement for the configuration switch (which is reasonable, although it precludes 64-bit index types in 32-bit targets), or instead use std::make_unsigned<gsl_CONFIG_SPAN_INDEX_TYPE>::type (in which case we'd need a version of std::make_unsigned<> for pre-C++11).
Alternatively we could try to suppress the warning for NVCC (cf. https://stackoverflow.com/questions/14831051/how-to-disable-a-specific-nvcc-compiler-warnings).

Yes, I would appreciate a PR adding CI for CUDA. The example you posted might be a good starting point.

We now have CI for CUDA, so this shouldn't go unnoticed in the future.


fix: typo error

download archive command was not working because of a typo. It was 'dowloadArchive' missing an 'n'.

Thanks!


Rename court_jurisdiction to court_type and add jurisdiction field

court_jurisdiction looks to be a court category from a dictionary, so let's rename that to court_type, and add a "jurisdiction" field for wherever CL stores the actual jurisdiction -- should be the name of a state, territory, etc.

For now let's generate the jurisdiction field from
courtlistener_inferred_jurisidictions.csv, since it seems like it'll be some time until CourtListener exposes this directly.


[charts/gateway] Add disklessConfig property

Description of the change
Introduce disklessConfig property to configmap.yaml to pass DISKLESS_CONFIG environment variable to Gateway container.
TODO: Describe node.properties and how to set it up
Benefits
As this is a required environment variable, it's better for visibility and more appropriate to have its own property, as the way Gateway is configured is very different depending on the value.
Existing way to set DISKLESS_CONFIG is via additionalEnv, but I feel this is for more optional variables, not for an integral setting for Gateway configuration:
additionalEnv:
  DISKLESS_CONFIG: false

Drawbacks

Applicable issues

fixes #

Additional information
Checklist

[] Chart version bumped in Chart.yaml according to semver.
[] Variables are documented in the README.md
[] Title of the PR starts with chart name (e.g. [charts/gateway])
[] If the chart contains a values-production.yaml apart from values.yaml, ensure that you implement the changes in both files

@jennarddy , Gateway version need to incremented to 3.0.29 https://github.com/jennarddy/apim-charts/blob/diskless-config/charts/gateway/Chart.yaml#L5

There's still a fair bit missing for this feature. Is that intended?

Yeah, it's still in progress. I added label.

[TestRun : ] (https://testrail.apim.broadcom.net/index.php?/runs/view/102664&group_by=cases:section_id&group_order=asc) - Passed
Included the upgrade scenario also


fix(telescope): add enums and consts to search symbols

I've been wondering for a while why I could never find my enums when writing Rust, so this should fix this. Also included constants for good measure.

Thanks!


Enable code analyzers in ExtractorUtils.Test

Why do we actually need this?

The original form was indeed not necessary and probably would not have worked either. I've salvaged the parts that can be considered an improvement.


Due date wrong

the day value of the due dates seem to be incorrect

date parser was using .getDay(), which gets the day of the week rather than the day of the month.

af1138a8b3b15ac19fb4316cfa884859c6ebd381


Check that the correct number of bound values are provided

 Here is an overview of what got changed by this pull request:

Clones added
============
- persistence-cassandra-4.0/src/main/java/io/stargate/db/cassandra/impl/CassandraPersistence.java  1
- persistence-cassandra-3.11/src/main/java/io/stargate/db/cassandra/impl/CassandraPersistence.java  1

See the complete overview on Codacy

I fixed this as part of https://github.com/stargate/stargate/pull/190

Side note: no change needed for DSE, it worked already.

@mpenick ah, no worries. I thought bound statement unset values would follow a different path, I should have checked your PR first. At least it looks like our fixes are similar :)


Move the merkle package to a go.mod that doesn't import tendermint/core

We don't plan on modifying the crypto/merkle package, however that package needs to have its own go module so that users can import it without needing the rest of tendermint.
That could involve moving that package into the pkg here, or just adding a go module to that package in core. The issue with adding a go module in core is that the module's path would have to be celestiaorg/celestia-core unless we wait for upstream to do this. If we wanted to get the benefits of not copying code, we'd have also change all of the references to that code to also point to the new module.
for now, I'm planning on just moving the package here in our pkg directory, but this will likely change in an upcoming refactor to the module in pkg #2570

I think this was completed when go-square was extracted. See https://github.com/celestiaorg/go-square/tree/main/merkle
@cmwaters please re-open if that's not the case.


Get rid of tslink.toml configuration file

Configuration can be moved into Cargo.toml directly under section [tslink]

#4


Journal/Tutorial Update Outlines

Haha!  1997 chessboard!  Awesome MFing website if you ask me!!!  :+1:

Great additions :sunglasses: !  One consideration, is that Sass is a preprocessor.  It's late so I'm sure that is just a typo but figured I'd save you an edit later.  Looking forward to the finished product :+1:


Add typescript example

this looks awesome but I also really like TypeScript.
is there any way to integrate typescript into the workflow?

Custom webpack config would make this happen: #40

You don't need a custom webpack config (althouh it would be nice). There's nothing preventing you from using typescript as-is. For example:

tsconfig.json:
{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es5",
        "jsx": "react",
        "noImplicitAny": false,
        "sourceMap": false
    }
}

As I don't think next.js has any typings (yet), you might need a next.d.ts file in the typings folder to define some things:
next.d.ts:

wow @rossipedia i have been doing literally this exact thing locally, and it works!
it occurred to me moments after i opened this issue that it should be quite possible to layer tsc -p . on top of next, and of course it's that easy. typings are proving a little more insidious than that because the library injects props.url into pages and treats getInitialProps slightly differently. so i'm still trying to figure out how to correctly type those.

Hope it's all good.  Give it to the COPs.  They r the real hero's!  Bedtime
;)
On Oct 29, 2016 00:58, "Gilad Gray"<EMAIL_ADDRESS>wrote:

wow @rossipedia i have been doing literally this exact thing locally, and
it works!
it occurred to me moments after i opened this issue that it should be
quite possible to layer tsc -p . on top of next, and of course it's that
easy. typings are proving a little more insidious than that because the
library injects props.url into pages and treats getInitialProps slightly
differently. so i'm still trying to figure out how to correctly type those.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

When we add custom babel / webpack config, I would love to have a TypeScript example and a Flow example. @rossipedia thanks a lot for the temporary workaround. If you'd be up for documenting the temporary solution in the Wiki, I think a lot of people would appreciate it!

If you are using VSCode it is also possible to hide derived JS file.

@rauchg I'm traveling this weekend, but if nobody else gets to it I'd be happy to add a page to the wiki, I can whip it up during my flight tomorrow

trying to get running with typescript - things were going great until I decided to configure the page header...
import Head from "next/head";
...
render() {
        return (

                    <title>Yo!</title>

unicorn

        );
    }

React.createElement starts complaining that the element shouldn't be null.  It appears that the default export from "next/head" is null:

anyone else seeing this in a typescript project?

Have you tried
const Head = require('next/head')

?

Of course
On Nov 5, 2016, 6:10 AM -0700, Giacomo Rebonato<EMAIL_ADDRESS>wrote:

Have you tried
const Head = require('next/head')
?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub (https://github.com/zeit/next.js/issues/96#issuecomment-258610479), or mute the thread (https://github.com/notifications/unsubscribe-auth/AEJIOpmnMfMDjoRYN9vMy5QR940DTmxJks5q7IAygaJpZM4KhdeG).

Ok, if you write it like this, it will work
const Head = require('next/head').default

I found it pretty easy to just edit the gulpfile to also compile .ts files.
https://github.com/zeit/next.js/blob/master/gulpfile.js#L123
Why not compile .ts files with typescript and .js files with babel by default?

With Webpack you mean?
I like TypeScript and I will be happy enough when we can customise the Webpack configuration.

@skhavari your issue is a known module interop issue and adding '.default' is not needed.
Try telling TypeScript to emit 'es6' code (which webpack will pick up) and use 'node' modules resolution:
{
  "compilerOptions": {
    "target": "es6",
    "moduleResolution": "node",
    "jsx": "react"
  },
  "filesGlob": [
    "pages/**/*.tsx"
  ]
}

I also add 'tsc' in my scripts like so:
...
    "dev": "tsc && next",
    "build": "tsc && next build",
    "start": "tsc && next start"
...

@rossipedia I think the same can be achieve by having your own gulp file that compiles ts files and move them to the page dir where next picks them up and reloads them right?

@gozes I don't see why not. I've rarely used gulp, but from what I know of it that seems like a fairly standard use case.

So here's my attempt https://github.com/jagreehal/next-typescript
It works fine apart from the page reloading twice as I don't think there is a way to configure files NOT to be watched by the hot-reloader.
If additional ignore entries could be added here via next.config.js then a solution like this might work.

@jagreehal That's really cool 💯 I'll have a look into adding the ignore config option in next.config.js.

I made a PR to @jagreehal example to separate the ts and js. Now the ts is in src but is there a way to point next to a different folder than the root? Then the output folder for tsc could be dist instead which would make the folder structure look much cleaner!

@timneutkens thanks. Let me know if I can help adding config option in next.config.js.

@jagreehal https://github.com/zeit/next.js/pull/823

I have created a PR with a TypeScript example that works with just running npm run dev.
Any suggestions is appreciated.
https://github.com/zeit/next.js/pull/845

@giacomorebonato awesome stuff! left you some review comments 🍰

Any suggestion on how to use TS with custom server? I wanted to use Express and have some trouble. Basically doing import next from "next" fails with server.ts(2,18): error TS2307: Cannot find module 'next'. so I guess I'm missing some typings, right?

With TS 2.1 and above (if I remember correct) you no longer need the typings, if it's in node_modules it can always be imported as any.


Added new school to NL list.

@Yawmm Pull request merged. Thank you!

@Yawmm Pull request merged. Thank you!


Content Streaming trait

Images currently use the filesystem response utility to retrieve the file from storage. We need to use the same strategy for videos to reduce the queries to storage and improved the response time. We will likely need to adjust attributes for Video and Image to fulfill a common contract that we can use in a trait to make the optimized solution in VideoController reusable.

Extracted StreamsContent from VideoController for ImageController and added Streamable contract for Video and Image. Closing.


Attach click event to disabled dates

Hello,
First of all, thank you for that wonderful library. I am looking for a way to attach a click event to disabled dates. I know by design disabled dates shouldn't be clickable but here's my use case:

A user selects a place
A place can only have one event per date
When a place is selected, I fetch all the dates that already have an event and I add them to the disabled dates
Needed: When the user click a disabled date, I would like to show him which event is already set for that date

Do you know any way to do this with this library? Thank you!

Hi @Meshz, you can target all .flatpickr-day.disabled (.flatpickr-day.flatpickr-disabled in the next version) and just add click listeners like you would normally do within your app. In jQuery it would be something like $(.flatpickr-day.disabled).on('click', handler);


Allow disabling of specific input type tracking

Objective
Allow disabling of specific input type tracking.
This can be especially useful if users encounter conflicts with input handling from other crates not currently integrated yet.
Solution
Add a new resource called TrackingInputType, which includes flags for enabling specific input type tracking.
Additionally, introduce the InputManagerSystem::PreUpdate SystemSet to allow for the temporary disabling of input tracking before updating the ActionState, and all flags of TrackingInputType will be re-enabled after handling all conflicting inputs.
Furthermore, add run conditions that are active when the TrackingInputType is enabled for specific input types.
Changelog

Added TrackingInputType Resource
Added InputManagerSystem::PreUpdate SystemSet
Exported new items into the prelude module
Extracted prioritize_ui_input and prioritize_egui_input systems from update_action_state
Integrated new systems into InputManagerPlugin
InputStreams now take Option for gamepad values

@alice-i-cecile This isn't related to #185, but could you take a look at the parts about configure_sets? I'm not sure if it's going to work like I expect.

Okay, I definitely think this is a useful tool, and I really like the notion of having a way to keep track of which input streams we're subscribed to.
However, I don't want to add more complexity/features to the code until #321 is solved. I think that this is helpful to shape that sort of design though.

Blocked until the new architecture is implemented

Closing: this will be easier to redo.


Setting up redis integration

What
This PR seeks to integrate Redis Search into vectorflow.
Why
Currently vectorflow doesn't have Redis integration yet.
Usage
First we have to create a vector index on redis that follows the vectorflow schema standard as defined here.
import redis
from redis.commands.search.field import NumericField, VectorField, TextField
from redis.commands.search.indexDefinition import IndexDefinition, IndexType

INDEX_NAME = "vectorflow_idx" # Vector Index Name
DOC_PREFIX = "vec:"

r = redis.from_url(url = 'redis://your-redis-host:your-redis-port', password="your-redis-password", decode_responses=True)

def create_index(vector_dimensions: int):
    try:
        # check to see if index exists
        r.ft(INDEX_NAME).info()
        print("Index already exists!")
    except:
        # schema
        schema = (
            TextField("source_data"),
            VectorField("embeddings",              # Vector Field Name
                "HNSW", {                          # Vector Index Type: FLAT or HNSW
                    "TYPE": "FLOAT32",             # FLOAT32 or FLOAT64
                    "DIM": vector_dimensions,      # Number of Vector Dimensions
                    "DISTANCE_METRIC": "COSINE",   # Vector Search Distance Metric
                }
            ),
        )

        # index Definition
        definition = IndexDefinition(prefix=[DOC_PREFIX], index_type=IndexType.HASH)

        # create Index
        r.ft(INDEX_NAME).create_index(fields=schema, definition=definition)

        print("Index successfuly created")

# define vector dimensions
VECTOR_DIMENSIONS = 1536

# create the index
create_index(vector_dimensions=VECTOR_DIMENSIONS)

Sample curl request:
curl -X POST -H 'Content-Type: multipart/form-data' -H "Authorization: my-internal-api-key" -H "X-EmbeddingAPI-Key: your-embeding-key" -H "X-VectorDB-Key: your-redis-password" -F 'EmbeddingsMetadata={"embeddings_type": "OPEN_AI", "chunk_size": 256, "chunk_overlap": 128}' -F<EMAIL_ADDRESS>-F 'VectorDBMetadata={"vector_db_type": "REDIS", "index_name": "vectorflow_idx", "environment": "redis://your-redis-host:your-redis-port", "collection": "vect" }'  http://localhost:8000/embed

Verification
Request to vectorflow:

Confirm that keys have been uploaded:

Looks great so far!

Great work! Please rebase and make the requested changes, then it should be ready to go

Okay I will rebase to fix the conflict


[FLINK-20277] Fix that ContinuousFileMonitoringFunction cannot restore from failure

What is the purpose of the change
In 1.11, HiveTableSource uses ContinuousFileMonitoringFunction with given globalModificationTime, while in ContinuousFileMonitoringFunction#initializeState the state restore logic always checks whether globalModificationTime is equal to Long.MIN_VALUE. The correct logic should be checking whether the globalModificationTime is equal to the initialized globalModificationTime.
Brief change log

Check whether the globalModificationTime is equal to the initialized  globalModificationTime

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

Extended ContinuousFileProcessingTest to verify the bug

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

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

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

My private azure is success, https://dev.azure.com/godfreyhe/godfreyhe-flink/_build/results?buildId=82&view=results. I will merge this


add EmbeddingBagOffsetsSum op and tests

Some test cases need more discussion and clarification. Please see inline comments.

Should this be reverted or should I just open a new PR for revision?
By the way, I wonder how I can use op::slice in the way shown below:
auto I_gathered = gather(I, indices);
std::vector<edsl::Tensor> Os;

for (uint32_t i = 0; i < batch; ++i) {
  Tensor slice = op::slice(I_gathered).add_dim(offsets[i], offsets[i + 1])
        .add_dim()
        .add_dim()
        ...;    ----> The rank of I_gathered is variadic though.
  auto reduced = op::sum(slice, edsl::make_tuple(0));
  Os.push_back(reduced);
}

auto O = op::concatenate(Os, 0);
return edsl::make_tuple(O);

Doesn't op::slice support slicing just on a specific dimension using just one add_dim and leaving the rest as is (i.e. seems we must provide as many add_dims as the number of rank)? Now I use edsl::Contraction but it looks not that concise. Please check this commit. Thanks!

I don't think a reversion is necessary; opening a new PR with revisions should be sufficient.
I'll get back to you on your other comments once I have a chance to look more carefully.


Constructor function not explained before ES6

Describe your problem and - if possible - how to reproduce it
'ES6: Use class Syntax to Define a Constructor Function' talks about class syntax without we knowing anything about constructor functions, but I think, it's important to know about constructor functions first.
Add a Link to the page with the problem
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/use-class-syntax-to-define-a-constructor-function

It's just mentioned as an aside, but sure, it couldn't hurt to have a separate challenge somewhere.

We have function constructor challenges in OOP section. I suppose we can add a note saying where they could learn more about it?

@ezioda004 Sounds like a plan.

@RandellDawson I want to work on this


With laravel breeze and react ,Inertia.js not working after installing the package

Bug description
I recently installed the Laravel Breeze authentication package in Laravel application, which includes Inertia.js and React. Subsequently, I integrated the multitenancy feature using the package . However, after this integration, I encountered an issue where Inertia.js stopped working when attempting to navigate to the login URL.

Steps to reproduce
Install Laravel Breeze: composer require laravel/breeze --dev
Setup Laravel Breeze authentication: php artisan breeze:install
Integrate laravel-tenancy package: composer require stancl/tenancy
Attempt to navigate to the login URL.
Expected behavior
Inertia.js should function normally and allow navigation to the login URL after integrating laravel-tenancy package.
Laravel version
10.10
stancl/tenancy version
3.8

For support questions, use our Discord.


[bug] are buy a tp scroll/spend gold reminders working

Yep, this was a problem with the library parsing canCast as can_cast incorrectly.
Fixed in:
https://github.com/cannawen/node-gsi/commit/4e0ca206efe214b0a3809f27da190fe6dede0339
https://github.com/cannawen/dota-gsi-discord-bot/commit/bdb49c4d3242522445363ad9cede4970b43c209f

Broken Aug 9th (9 days ago) from this commit - 45bbf581eb9f48a0a5880053cf192853dc1f945b
Took quite a while to realize there was a bug (after playing and realizing I didn't have a tp scroll, wtf, why didn't my bot warn me?!) ... is there some better process that can be implemented to improve this bug discovery? Do refactors need to be more thoroughly tested before pushing to master?
There were tests, but the tests were not reflective of reality. If we ran the integration test scenario (npm run dig-canna) it would have caught the problem. Gotta be more careful next time!


Element never fires drop event

I have two Sortable lists with the same group. When you drag from one list to the other, sometimes the element gets stuck in the "drag" state.
You can see this on the demo page when you drag quickly from List A to List B. http://rubaxa.github.io/Sortable/

For me this happens whenever the user "lets go" outside of the browser window.


Fix periodicity bug in the rad-hydro-shell simulation

Removed duplicate and incorrect state variable initialization, and fixed the incorrect periodicity set in the problem parameter file.

Can you get rid of the unrelated changes?


Raspberry pi 4 support possible?

Hey,
Is there a possibility that there will be support for the raspberry pi 4?

hi,
in theory it should work (as Raspberry Pi is Linux system). I just gave it a quick try on my Raspberry Pi 3b. The first difference is in prereqs:
sudo apt-get update
sudo apt-get install clang build-essential libssl1.0.2 libasound2 wget
sudo apt-get install libclang1-3.9

i.e. different version of libssl lib + I had to install libclang1-3.9
Then I tried to compile and got this error:
pi@raspberrypi:~/cognitive-services-speech-sdk-rs $ cargo build
   Compiling cognitive-services-speech-sdk-rs v0.1.2 (/home/pi/cognitive-services-speech-sdk-rs)
error[E0308]: mismatched types
   --> src/audio/pull_audio_input_stream.rs:191:25
    |
191 |                         value as *mut i8,
    |                         ^^^^^^^^^^^^^^^^ expected `u8`, found `i8`
    |
    = note: expected raw pointer `*mut u8`
               found raw pointer `*mut i8`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: could not compile `cognitive-services-speech-sdk-rs`

To learn more, run the command again with --verbose.
pi@raspberrypi:~/cognitive-services-speech-sdk-rs $ ^C

All it took to compile was really to change the line https://github.com/jabber-tools/cognitive-services-speech-sdk-rs/blob/main/src/audio/pull_audio_input_stream.rs#L191
I changed i8 to u8. No comments on that yet, I need to investigate more why this is needed. Anyway then it compiled.
When I try to compile the examples though, it fails (not during compilation but during linking) :
pi@raspberrypi:~/cognitive-services-speech-sdk-rs $ cargo run --example recognizer
   Compiling cognitive-services-speech-sdk-rs v0.1.2 (/home/pi/cognitive-services-speech-sdk-rs)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-L" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.0.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.1.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.10.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.11.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.12.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.13.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.14.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.15.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.2.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.3.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.4.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.5.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.6.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.7.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.8.rcgu.o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.recognizer.5bkkhskd-cgu.9.rcgu.o" "-o" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/examples/recognizer-4f3b5c58e8f96487.r0ueaxrm11irf6g.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps" "-L" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/build/cognitive-services-speech-sdk-rs-1194593321c53af6/out/SpeechSDK/linux/lib/x64" "-L" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "-Wl,-Bstatic" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libenv_logger-beb2484e44a15bb5.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libatty-6379ac8f780e365c.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libtermcolor-a305625d34e35270.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libhumantime-7e978838208ce956.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libregex-32c5482bb00e1c70.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libregex_syntax-4f1a25c1a9a2163a.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libaho_corasick-995d1499d505f3e3.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libcognitive_services_speech_sdk_rs-3653471aedb81b13.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libtokio-392ebbbf898672dc.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libsignal_hook_registry-d36a526090fe44ee.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libnum_cpus-134da4bdb3e11751.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libmemchr-196babfb663d0582.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libonce_cell-a213c076f00811ee.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libbytes-fc1a83c319c049b5.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libmio-4880ac575d448f3d.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libpin_project_lite-b91e8539804b0703.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libparking_lot-b76cdab12ea71e6f.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libparking_lot_core-22da37e3c86ef3fc.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/liblibc-3bf16083963a3615.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libsmallvec-dc5df693e963ab44.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/liblock_api-c34d421b07472ca8.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libscopeguard-87a7faa7f6125051.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libinstant-b7a0ec56d72f1a12.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/liblog-3d1d491ac4d350ef.rlib" "/home/pi/cognitive-services-speech-sdk-rs/target/debug/deps/libcfg_if-bb6f2256888cea0c.rlib" "-Wl,--start-group" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libstd-85737748b88fdb0c.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libpanic_unwind-5f30322e02cdba81.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libminiz_oxide-66e6453c2c9f3133.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libadler-89ef23770d36ddae.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libobject-f370ec13ab09536f.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libaddr2line-6025682b9782653b.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libgimli-4c4d80e5d0e6d364.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_demangle-12d79adf0a84df87.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libhashbrown-2be7398cd27b971e.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_std_workspace_alloc-14eb01f327f4faf1.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libunwind-0ecf14c724bd27c7.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcfg_if-85d17447bbfdc6e3.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liblibc-c098ab12ade5141a.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liballoc-5e9abecb59bcebc8.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/librustc_std_workspace_core-8a8905ab7c778227.rlib" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcore-c6377c18ec6480a5.rlib" "-Wl,--end-group" "/home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/libcompiler_builtins-253133ce567fc061.rlib" "-Wl,-Bdynamic" "-lMicrosoft.CognitiveServices.Speech.core" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc"
  = note: /home/pi/cognitive-services-speech-sdk-rs/target/debug/build/cognitive-services-speech-sdk-rs-1194593321c53af6/out/SpeechSDK/linux/lib/x64/libMicrosoft.CognitiveServices.Speech.core.so: file not recognized: File format not recognized
          collect2: error: ld returned 1 exit status

error: aborting due to previous error

error: could not compile `cognitive-services-speech-sdk-rs`

To learn more, run the command again with --verbose.
pi@raspberrypi:~/cognitive-services-speech-sdk-rs $

It seems there is some issue with linking MS speech libraries (libMicrosoft.CognitiveServices.Speech.core.so), for now I did not undertake any further investigation. Do you feel like helping with this? I think the issue is this shared library is simply not indented for ARM, not sure whether MS Speech SDK libraries are available for ARM, this must be checked.

based on this it does not relally see ARM is supported: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/speech-sdk?tabs=windows%2Cubuntu%2Cios-xcode%2Cmac-xcode%2Candroid-studio

closing as ARM is not supported by underlying Speech SDK hence we cannot really support it.


[<3] Good Work!

Overall, this seems to be a great teamwork.  Although there is room for improvement the software is functioning well.

This isn't an issue.


SideMenu component not rendering

Hi,
I am trying to integrate the side menu in my app but whenever I am trying to render a SideMenu component I'm getting a white screen. Here's my component:
import React, {Component} from 'react';
import {
    AppRegistry,
    View,
    Text
} from 'react-native';

import SideMenu from 'react-native-side-menu';
import Menu from './../Menu/Menu';
import Styles from './Styles';
const styles = Styles;

module.exports = class Sample extends Component {
    state = {
        isOpen: false,
        selectedItem: 'PeopleList',
    }
    render() {
        const menu = <Menu onItemSelected={this.onMenuItemSelected} />;
        return(
            <SideMenu
                menu={menu}
                isOpen={this.state.isOpen}
                onChange={(isOpen) => this.updateMenuState(isOpen)}>
                <View>
                    <Text style={styles.title}>Sample Component</Text>
                </View>
            </SideMenu>
        );
    }

    toggle() {
        this.setState({
        isOpen: !this.state.isOpen,
        });
    }

    updateMenuState(isOpen) {
        this.setState({ isOpen, });
    }

    onMenuItemSelected = (item) => {
        this.setState({
        isOpen: false,
        selectedItem: item,
        });
    }
}

If I remove the SideMenu component and just render the View it works fine.
The starting point for my app was the Basic example (which worked fine), then the only thing I did was creating directories for my components... I don't know what's going on.

I am not sure I am getting how this works, can anyone provide an example with a few pages routed in the menu ?

Hi @clementino36! I think our examples/Basic project will be a good place to start. Please, consider taking a look and ask me if you have any questions after that.


Suppress unknown files warning when building the ePub docs

As per https://github.com/wagtail/wagtail/pull/12502#discussion_r1822733154.
Will merge soon so our RTD build is fixed. There are errors in the generated ePub, but the changes are more involved so I'll open a separate PR for those.

Thanks @laymonage  & @joelwilliam2005

Cherry picked to 6.3 f1ee2f5c73056095cdfb9b1a6c72f936619bbe8c & parents
Fix for #12484


update globalnode status using Patch

What type of PR is this?
/kind bug

What does this PR do?
update globalnode status using Patch

Which issue(s) does this PR fix?

Fixes #
Special notes for your reviewer:

Does this PR introduce a user-facing change?

/lgtm
/approve


Use girder mount to work with non-filesystem assetstore files.

Support and start FUSE as part of the main HistomicsTK container.

@dgutman With this PR (and building the appropriate docker), things will work "out of the box" with S3 assetstores.

Thanks!  I'll need some info when I test this later in the week..
On Mon, Jun 25, 2018, 4:41 PM David Manthey<EMAIL_ADDRESS>wrote:

@dgutman https://github.com/dgutman With this PR (and building the
appropriate docker), things will work "out of the box" with S3 assetstores.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DigitalSlideArchive/HistomicsTK/pull/506#issuecomment-400088409,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AArhziEzzGp1E0OKMhfMgoIzJN-sHEalks5uAUsHgaJpZM4U20Ug
.

If we build and push docker images with it, you should just be able to run them and have it work.  I can push new docker images with it to dockerhub, or build them locally and transfer them to somewhere you can grab them.


Better error handling

As what I have pointed out in #91, I think it may be better if we could choose not to use putRevolve in adding a crew's link to the flight, because it may not make logical sense.

Similar issues for other link commands should also be investigated.

Replace putrevolve with just put and let the shape handle the case where number of crew being added exceeds the number of crew specified in shape


I can't input any char in vscode after use Command+Q,except backspace and ctrl

It happend very suddenly,I use vscode this afternoon,and I don't remember  I have any strange operation
Now I can't input any char in vscode,but I can use keyboard to select or copy text,and I can use backspace or delete to delete char
Any input place can't input any char,include command panel and search panel

VSCode Version:1.17.2

OS Version: MacOS 10.12.6

Steps to Reproduce:

I can reproduce it:open some file and use command+Q to quit it,and now,files which is just open can't edit,and after that,other file open is still can't edit too.
It can continuous reproduce,if you close or command+Q with these file can't edit,and reopen or restart your computer.To resolve it ,close all file in workspace,and open some file which never open

Reproduces without extensions: Yes, I start code without extensions,and this issue is still reproduce
I upgrade to 1.17.2,it still can reproduce

@chrmarti hello,I can reproduce in 1.17.2,it should be a bug in this release version too

@zjjott Are you certain you have disabled all extensions? VSCode must be restarted after disabling all the extensions in the extensions viewlet.
Can you share your keybindings.json ? Does typing work in other areas of our UI ? like e.g. in the search viewlet ?


Laravel Echo Auth With multiple user tables

Hello,
We have implemented Laravel-echo and tested with public channel it is working perfectly. Using with the private channel it works fine with the default users table. But we need to authenticate the private channel with a different table having different set of users with different table name.
When using default table as users table it gives and broadcast works perfectly:

vt563_4DlitmeC5vAAAH joined channel: private-YoThisIsChannel

If we want to authenticate the users of the different table for the channel it gives:

Bs3mfFYrKjnO06_7AAAC left channel: private-YoThisIsChannel
null
Could not send authentication request.

Broadcastserviceprovider.php
Broadcast::routes( [ 'middleware' => [ 'api', 'jwt.auth' ] ] );

        Broadcast::channel('YoThisIsChannel', function ($user) {
            // return (int) $user->id === (int) $userId;
            return $user;
        });

This seems like something that needs to be handled in your Laravel app. This server has no recollection of the application auth mechanism being used besides a the response that comes back from the Laravel app to verify authentication.

@tlaverdure can you help to right directions what needs to be done in terms of laravel side

If you are trying to use a different table for users, the auth guard that you are using needs to be setup to use a different user provider.
https://laravel.com/docs/5.4/authentication#adding-custom-user-providers

@tlaverdure thanks for your fast reply, actually my mistake that I have not able to describe my question properly.
So I have the below auth guards that is defined for my app admins, users, other
and I want every guard to have his own private channel.
So I am defining it in my channel.php  with multiple entries for each like below
Broadcast::channel('private.admins.{id}', function ($admin, $id) {
    Log::info(class_basename($admin));
    //return (int) $user->id === (int) $id;
});

But this is always binding with User model class so my question is how do I tell that to use Admin model or different model instead of User
I am unable to find it anywhere. So can you point me in to right direction


Limit Goroutines Spawned in execSelections

We recently ran into a problem with large amounts of go routines being spawned and overwhelming the memory of the machine leading to a shutdown. After receiving tens of thousands of records from the DB, they were converted into resolvers, and then execSelections was called. execSelections appears to spawn a go routine for each field within this list, which means that the amount of goroutines will be proportional to the amount of fields in the list.
However, the execution is limited within execSelectionSet by the size of the limiter channel - so there's only 10 goroutines allowed to execute at any point in time. Instead of creating the goroutines and limiting the execution of them, it would be preferable to just limit the amount of goroutines being created and letting them run.
I agree that we should be limiting the records we retrieve from the DB, but this should manifest as slowness rather than system instability.
There are a few proposed solutions:

Add the ability to limit the amount of fields in execList. This would be a SchemaOpt + a check that would add a runtime error if the list of the fields is too large. This would prevent too many goroutines from being spawned.
Refactor the code (likely a significant refactor) such that each execSelectionSet/execSelection is run in a separate goroutine thereby allowing the parent goroutine to complete. This would require introducing something else to manage state since children goroutines would no longer be able to just update a local variable within the parent goroutine.
This is very similar to the above idea, but with another change to make it breadth first: https://github.com/graph-gophers/graphql-go/pull/372/files

We have encountered this problem as well, when returning a substantial set of structured data in a single query. We are also interested in finding ways to control the number of goroutines spawned.

At Sourcegraph this has been a problem for us as well. We implemented a small change which helps to bound the number of goroutines, and it is working well for us. https://github.com/graph-gophers/graphql-go/pull/400

Closing this issue since #400 takes care of it.


[Discuss] How to create a simple message system

we use eventsystems like delegates,
how to use it with R3 then,
I need a very basic example please.

use Subject instead of event


Remove deadmeme command

deadmeme command referenced file test.txt not found in repository. Alternatively test.txt could be added to the repo.
In all seriousness though. How can I best contribute? I understand the focus right now is reliability over speed optimizations.

test.txt is just a text file that I read from to test out the sign placing task (or, BeeMovieTask whose name I should probably refactor huh). Just there for testing. Removing it is valid, but I'd rather save that for a big refactor/code cleanup later down the road.
As for contributing, I am down to discuss over discord or something. Here are some issues that pop into my mind. Many of these I'm ignoring for now since they're not critical, but I'll have to address them eventually.

Making the "Mob Defense" system much more reliable.  I think that's a baritone problem that I'd need to fix/investigate.
If you try collecting a bunch of diamonds, the bot often breaks all of its pickaxes while deep underground and then gets stuck underground. There should be a system or option in Settings.java to prevent this. (This is the reason why in BeatMinecraftTask, I tell the bot to collect 3 iron pickaxes and 3 diamond pickaxes so this can't happen. That's not a good long term solution though.)
Getting a 1.12 Forge port

Please hit me up if you have any questions! Thanks for taking an interest in this, I never thought I'd get another pair of eyes on this.


How can I edit multipartData in GatewayFilter?

Mono<MultiValueMap<String, Part>> multiValueMapMono = exchange.getMultipartData().flatMap(part -> {
            for (String key : part.keySet()) {
               // verify parameter
            }
            MultiValueMap<String, Part> newMultiValueMap = new LinkedMultiValueMap<>();
            // add...
            Mono.just(newMultiValueMap);
}

how can I mutate the exchange?

I dont think we do out of the box right now. @spencergibb can you confirm?  Seems like a nice enhancement.

Has this question resulted?

@ryanjbaxter
Has this question resulted?


sameTree.java

Plz accept my PR with hacktoberfest2021 ASAP

@prasantbajpai007  add more information about the program, closing the pr , create an issue first then make pull request .
Don't worry will accept .


 Their routes need to be fixed up. Preferably ITween should also be removed and replaced with a less resource intensive alternative.

Please also keep the old version of the AI as a difficulty option.

Why would you ever want to play with half-broken, resource intensive AI?

Because they race terribly.

Well it wouldn't be hard to have them race terribly without using obsolete code :p

Perhaps this could be used as a replacement for ITween
https://www.assetstore.unity3d.com/en/#!/content/23569


Missing space in failure result

Just a minor issue, but there is a space missing in the failure result.
Now: : trueReceived: false
Should be : true Received: false

Anyway, thanks for a nice plugin ;-)

Weird, I specifically had code for this: https://github.com/orta/vscode-jest/blob/master/src/lib/test_reconciler.ts#L113

Just updated to the latest version. Now I don't see the Jest plugin any more..
When I run the Start Jest Runner command, then I get the error message: command 'io.orta.jest.start' not found
Something looks wrong...

With 1.6.1?

Works like a charm now ;-)

I have this issue with the latest version of the plugin (1.6.4): http://take.ms/Qi5FC

Aye, me too, I think we can get some more tests in jest-test-support to make better single-lined errors once https://github.com/facebook/jest/pull/2192 is merged

Yeah, this look fixed now 👍


Enum Support

Does Ormar natively support sqlalchemy enums and the Pydantic counterparts?
Something like:
class ThingType(str, Enum):
    ONE = "ONE"
    TWO = "TWO"
    THREE = "THREE"

class Thing(BaseModel):
    class Meta(ormar.ModelMeta):
        tablename = "things"

    thing_type: ThingType = ormar.StringEnum(
        ThingType,
        default=ThingType.ONE
    )

They're nicely validated by FastAPI + Pydantic, I'd imagine in the meantime you could create the inputs yourself, but Ormar seems tooled around reducing work, so I think it'd be a cool feature if it doesn't exist already.
EDIT: I noticed the choices array (can be inserted as choices=list(ThingType) above), which validates during database processing, but I'm hoping we can bubble it up to Pydantic.

Actually it's the other way around. It's used in pydantic only, but since you cannot set the value on ormar model you cannot save it in database thorough ormar.
Choices adds pydantic validator to the model and that's why it should work with fastapi too (don't remember if tested this specifically).

Actually it's the other way around. It's used in pydantic only, but since you cannot set the value on ormar model you cannot save it in database thorough ormar.
Choices adds pydantic validator to the model and that's why it should work with fastapi too (don't remember if tested this specifically).

AFAICT, I don't see the enum options in FastAPI's OpenAPI spec when I provide a choices list. The choices validator does fire after submitting a payload. It's also possible I'm just using it wrong - do you happen to have a working case with FastAPI?
Making use of Pydantic enums fed to FastAPI does a good job of informing the frontend of available options. So it would be really great to have this as feature.

AFAICT, I don't see the enum options in FastAPI's OpenAPI spec when I provide a choices list. The choices validator does fire after submitting a payload. It's also possible I'm just using it wrong - do you happen to have a working case with FastAPI?
Making use of Pydantic enums fed to FastAPI does a good job of informing the frontend of available options. So it would be really great to have this as feature.

Ah, yeah forgot about the schema, will check how to add this info with choices and if/how support enum field. Thanks for the idea!

Ah, yeah forgot about the schema, will check how to add this info with choices and if/how support enum field. Thanks for the idea!

Added in 0.9.1 with #93
As for now choices appear in schema and in OpenApi schema - it's easier than defining all variants of Enums (depending on the field type) and it's more intuitive to use in my opinion.
You can always use Enum and pass it to choices as you already described. Updated the docs in this regard.
choices use the same schema options as actual Enum so should be intuitive and easy to use by API consumers in fastapi.


food and water issue

status of food and water is not displayin on hud no error on console

No solution?


NEST - TypeExists ignores default index

When using a TypeExists method without specifying an Index, the DefaultIndex defined in the ElasticClient is ignored and exception "Index() is not specified" is thrown

Thanks for reporting this @mif007
Most IndexTypePaths are typed and default to inferring the index from there. TypeExists uses an untyped version, I've submitted a PR to make this untyped version smarter.
It will now use the T provided to Type<T>() as well to infer the indexname if not indexname has been explicitly provided.


Add platform error codes

Description
Add error codes for the platform module, to be used by
the setup \ terminate API, as suggested in https://github.com/ARMmbed/mbed-os/pull/7099#discussion_r192698898
Status
READY
Requires Backporting
NO

There are already two reviews with a couple of minor rework suggestions. I will remove the 'needs review' label and add 'needs rework' to highlight that these should be considered (either by code change or replying to the comments) before further review and approval.

@sbutcher-arm @Patater I addressed your comments.
Please review

@sbutcher-arm I addressed your comments.
I don't quite follow you want to reserve 0x0080, since it is not used

I was suggesting to mark 0x0080 to be reserved because we had already used it in Mbed OS, but then had removed it's usage. Technically the value had never been properly allocated, but there was still some risk of collision if someone picked up that transient version of Mbed OS.
It's not a big deal, and if we mark the value as reserved in a year's time no one will remember what for or why, so best left as it is I think.


Feature request: Connection error handling

Currently racecar will not call error handler when can not connect to kafka (dns error, host not reachable, open connection error, etc...)
Temporary monkey patch:
Racecar::Runner.class_eval do
  alias_method :run_origin, :run

  def run
    run_origin
  rescue Kafka::ConnectionError => error
    config.error_handler.call(error)
    raise error
  end
end

Do you have a monitoring solution set up in addition to your exception tracker? Connection errors are not exceptional in Kafka, so typically you want to use metrics based alerts rather than exception trackers.

Do you have a monitoring solution set up in addition to your exception tracker?

Not yet, still thinking how to make it right. The only option I can think of is detecting if process/container exit with error code too often

Connection errors are not exceptional in Kafka

I got some kafka related errors too, e.g. Kafka::NoPartitionsAssignedError, it can connect to port on remote server, but can not start receiving data

@paxa the no partition error occurs when you have more consumers than partitions in a topic.

I would recommend using e.g. Datadog or Librato with Statsd to track metrics. Connection errors is one metric published by ruby-kafka.

@dasch Thank you!


Enrich IP fixtures to specify exact requested models

This allows specifying exact models that are expected to have been created during TAPI request, as opposed to just specifying a number of models.

@bot-gradle merge


rviz_ogre_vendor malformed patch error

Not sure if I'm asking in the right place, but hoping I could get some guidance on how to resolve this.
I'm following this guide to setup ROS 2 on MacOS 13.0: https://docs.ros.org/en/humble/Installation/Alternatives/macOS-Development-Setup.html
Running colcon build --symlink-install --packages-skip-by-dep python_qt_binding gives me this error so the build fails:
patch: **** malformed patch at line 1817:
make[2]: *** [ogre-v1.12.1-prefix/src/ogre-v1.12.1-stamp/ogre-v1.12.1-patch] Error 2
make[1]: *** [CMakeFiles/ogre-v1.12.1.dir/all] Error 2
make: *** [all] Error 2

I still get the same error, even after removing the build and install dirs

Same here. The problem remains even after removing the build and install dirs.
It happens both with the latest and an old (~6m old) Humble source trees.
It started happening after MacOS (and XCode) were updated.

@clalancette , PTAL

Will this be backported to humble?


GH-321 Persist For Each node's "with break" status

Fixes #321

Applied to main (=2.1) and branch 2.0.


Placing a Take Profit order for a Multileg Option position Iron Fly is not possible

Expected Behavior
I open a Iron Fly position using the ComboMarketOrder() method, which results in a position being short a Put and a Call at the ShortStrike and being Long Call and a Put 35 points away from it. This Combo Order gets filled as expected.
When they're filled I want to place a take profit order using CombLimitOrder(this.orderLegs, -1, tpPrice), which means use the same legs as for the opening order but with quantity -1 which would reverse the quantities of the legs.
Actual Behavior
Looking at the backtest result, I can see that there are 4 orders submitted, but the orders are the same as for opening the position and not reversed as expected.
Potential Solution
Alternatively I tried to reverse the quantities of the leg myself in the coding and use quantity 1 for the combo:
foreach(var leg in this.orderLegs) {
leg.Quantity = leg.Quantity * -1;
}
var tickets = ComboLimitOrder(this.orderLegs, 1, tpPrice);
But this results in the following error: Backtest Handled Error: Order Error: id: 8, Error executing margin models: Unable to create group for orders: [5,6,7,8]
Reproducing the Problem
Here is the code for reproducing this error:
#region imports
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Linq;
    using System.Globalization;
    using System.Drawing;
    using QuantConnect;
    using QuantConnect.Algorithm.Framework;
    using QuantConnect.Algorithm.Framework.Selection;
    using QuantConnect.Algorithm.Framework.Alphas;
    using QuantConnect.Algorithm.Framework.Portfolio;
    using QuantConnect.Algorithm.Framework.Execution;
    using QuantConnect.Algorithm.Framework.Risk;
    using QuantConnect.Parameters;
    using QuantConnect.Benchmarks;
    using QuantConnect.Brokerages;
    using QuantConnect.Util;
    using QuantConnect.Interfaces;
    using QuantConnect.Algorithm;
    using QuantConnect.Indicators;
    using QuantConnect.Data;
    using QuantConnect.Data.Consolidators;
    using QuantConnect.Data.Custom;
    using QuantConnect.DataSource;
    using QuantConnect.Data.Fundamental;
    using QuantConnect.Data.Market;
    using QuantConnect.Data.UniverseSelection;
    using QuantConnect.Notifications;
    using QuantConnect.Orders;
    using QuantConnect.Orders.Fees;
    using QuantConnect.Orders.Fills;
    using QuantConnect.Orders.Slippage;
    using QuantConnect.Scheduling;
    using QuantConnect.Securities;
    using QuantConnect.Securities.Equity;
    using QuantConnect.Securities.Future;
    using QuantConnect.Securities.Option;
    using QuantConnect.Securities.Forex;
    using QuantConnect.Securities.Crypto;
    using QuantConnect.Securities.Interfaces;
    using QuantConnect.Storage;
    using QuantConnect.Data.Custom.AlphaStreams;
    using QCAlgorithmFramework = QuantConnect.Algorithm.QCAlgorithm;
    using QCAlgorithmFrameworkBridge = QuantConnect.Algorithm.QCAlgorithm;
#endregion
namespace QuantConnect.Algorithm.CSharp
{
    public class IronFly : QCAlgorithm
    {
        private Symbol symbol;
        private Option option;
        private List<Leg> orderLegs;
        private TradeBarConsolidator consolidator;

        private AverageTrueRange atr;

        private decimal ifShortStrike;
        private decimal ifPutLongStrike;
        private decimal ifCallLongStrike;
        private decimal wingSize = 35;
        private decimal entryFillPrice;
        private bool doSubmitEntryOrder;
        private bool doSubmitTPOrder;
        private bool tpOrderSubmitted;
        private bool waitForEntryOrderFill;
        private readonly List<OrderTicket> openEntryOrders = new();

        public override void Initialize()
        {
            SetStartDate(2023, 1, 3);  //Set Start Date
            SetCash(100000);             //Set Strategy Cash
            SetEndDate(2023, 1, 3);

            this.symbol = AddIndex("SPX", Resolution.Minute).Symbol;
            this.option = AddIndexOption(this.symbol, "SPXW");
            this.option.SetFilter(optionFilterUniverse => optionFilterUniverse.IncludeWeeklys().Strikes(-10,10).Expiration(0,0));

            var atrWindow  = new RollingWindow<IndicatorDataPoint>(5);

            // ATR Indicator
            this.atr = new AverageTrueRange("AvgTrueRange", 9);
            this.atr.Updated += (sender, updated) => atrWindow.Add(updated);

            // Create a 5 min. Consolidator
            this.consolidator = new TradeBarConsolidator(TimeSpan.FromMinutes(5));
            this.consolidator.DataConsolidated += FiveMinuteBarHandler;
            this.consolidator.DataConsolidated += (_, bar) => atr.Update(bar);
            SubscriptionManager.AddConsolidator(this.symbol, this.consolidator);
        }

        /// OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.
        /// Slice object keyed by symbol containing the stock data
        public override void OnData(Slice data)
        {
            if (doSubmitEntryOrder == true) {
                doSubmitEntryOrder = false;
                var chain = data.OptionChains.GetValue(this.option.Symbol);
                if (chain == null)
                {
                    Debug("ERROR: No Option Chain not found!");
                } else {
                    this.SubmitEntryOrder(chain);
                }
                return;
            } else if (waitForEntryOrderFill == true) {
                if (CheckComboOrderForFills(this.openEntryOrders))
                {
                    this.waitForEntryOrderFill = false;
                    this.entryFillPrice = GetComboOrderFillPrice(this.openEntryOrders);
                    Debug("Entry Order filled at " + this.entryFillPrice);
                    var tpPrice = this.entryFillPrice * -1 - 1;
                    Debug(data.Time + ": Submitting Take Profit Order now");
                    var tickets = ComboLimitOrder(this.orderLegs, -1, tpPrice);
                }
            }
        }

        private bool CheckComboOrderForFills(List<OrderTicket> orderTickets) {
            if (orderTickets.All(ticket => ticket.Status == OrderStatus.Filled))
                return true;
            else
                return false;
        }

        private decimal GetComboOrderFillPrice(List<OrderTicket> orderTickets) {
            decimal comboFillPrice = 0;
            foreach (var ticket in orderTickets) {
                if (ticket.Status != OrderStatus.Filled)
                    return 0;
                else
                    comboFillPrice += ticket.AverageFillPrice * ticket.Quantity;
            }
            return comboFillPrice;
        }
        private void SubmitEntryOrder(OptionChain chain) {
            Debug("Short Strike: " + this.ifShortStrike + " Long Put Strike: " + this.ifPutLongStrike + " Long Call Strike: " + this.ifCallLongStrike);
            //callContracts = [contract for contract in chain if contract.Right == OptionRight.Call]
            this.orderLegs = new List<Leg>();
            foreach (var entry in chain.Contracts) {
                var contract = entry.Value;
                if (contract.Right == OptionRight.Put && contract.Strike == this.ifShortStrike) {
                    var leg = Leg.Create(contract.Symbol, -1);
                    this.orderLegs.Add(leg);
                } else if (contract.Right == OptionRight.Call && contract.Strike == this.ifShortStrike) {
                    var leg = Leg.Create(contract.Symbol, -1);
                    this.orderLegs.Add(leg);
                } else if (contract.Right == OptionRight.Put && contract.Strike == this.ifPutLongStrike) {
                    var leg = Leg.Create(contract.Symbol, 1);
                    this.orderLegs.Add(leg);
                } else if (contract.Right == OptionRight.Call && contract.Strike == this.ifCallLongStrike) {
                    var leg = Leg.Create(contract.Symbol, 1);
                    this.orderLegs.Add(leg);
                }
            }
            if (this.orderLegs.Count < 4) {
                Debug("ERROR: 4 Legs are required!");
                return;
            }
            var tickets = ComboMarketOrder(this.orderLegs, 1);
            this.openEntryOrders.AddRange(tickets);
            this.waitForEntryOrderFill = true;
            Debug("INFO: Entry Order submitted.");
        }

        /// <summary>
        /// Called at every 5 Minute Bar
        /// </summary>
        private void FiveMinuteBarHandler(object sender, TradeBar bar)
        {
            if (!this.atr.IsReady) {
                Debug(bar.EndTime + ": ATR not ready");
                return;
            }

            if (!this.Portfolio.Invested && this.Transactions.OrdersCount == 0) {
                this.ifShortStrike = this.CalculateStrike(bar.Close);
                this.ifPutLongStrike = this.ifShortStrike - this.wingSize;
                this.ifCallLongStrike = this.ifShortStrike + this.wingSize;
                Debug(bar.EndTime + ": Short Strike " + this.ifShortStrike);

                this.doSubmitEntryOrder = true;
            }
        }

        private decimal CalculateStrike(decimal price, decimal basis = 5) {
            return basis * Math.Round(price/basis);
        }
    }
}

System Information
Ran in QuantConnect Cloud
Checklist

[ X] I have completely filled out this template
[ X] I have confirmed that this issue exists on the current master branch
[ X] I have confirmed that this is not a duplicate issue by searching issues

[ X] I have provided detailed steps to reproduce the issue

Hello Martin,
thank your for the answer. You're right that the inversion of the price is not correct and the Combo would never get a fill.
I tried your adjusted code. Anyway it is working wrong, because it is not creating orders which would close the Iron Fly position at the Limit price, but it would open another Iron Fly position. Looking in the Orders tab in the backtest results, you can see that the placed orders are the same as for the entry instead of being reversed.

Hey @heikohaensel!
Thanks for the clarification, your right it's failing to process the second fill, we will solve this ASAP
2023-03-09T13:51:59.7976265Z ERROR:: SecurityPortfolioModel.ProcessFill():  System.DivideByZeroException: Attempted to divide by zero.
   at System.Decimal.DecCalc.VarDecDiv(DecCalc& d1, DecCalc& d2)
   at System.Decimal.op_Division(Decimal d1, Decimal d2)
   at QuantConnect.Securities.SecurityPortfolioModel.ProcessFill(SecurityPortfolioManager portfolio, Security security, OrderEvent fill) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Securities/SecurityPortfolioModel.cs:line 172


Bug: generateMarkdown's alias parameter has no effect for non-markdown files

Steps to reproduce:

In the sandbox vault, turn off "use [[wikilinks]]".
Add an attachment file such as PNG or PDF, say file.png.
Open the dev console and run the following:const file = app.vault.getAbstractFileByPath('file.png');
console.log(app.fileManager.generateMarkdownLink(file, '', undefined, 'Display text'));

Expected result:
![Display text](file.png)
Actual result:
![](file.png)
The alias parameter has no effect.

Now I read the source code from the dev tool, and it seems like it's intended.
I guess this design is because generateMarkdownLink generates an embed link for attachment files and display text is not important for embeds.
However, generateMarkdownLink is also used to generate a non-embed link like so:
app.fileManager.generateMarkdownLink(...).slice(1)

I personally do this for generating links for PDF files, and even Obsidian itself does the same thing in many places.
So I believe it will be beneficial to let alias work for attachments.

For example, if I turn on "Use [[Wikilinks]]" and copy a link to a PDF annotation, this becomes problematic:
https://github.com/obsidianmd/obsidian-api/assets/72342591/736b51c0-8919-43f0-a17d-59d2a28f54dd

Thanks, this will be fixed in v1.7


handle keyboard selection

currently, keyboard selection of tree item doesn't trigger the connection change event, use proper tree event for it, also redefined the view's external event to make it more business logic focused.

Pull Request Test Coverage Report for Build 338662969

3 of 16 (18.75%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 39.561%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/sql/workbench/services/connection/browser/connectionDialogWidget.ts
1
2
50.0%

src/sql/workbench/services/connection/browser/connectionBrowseTab.ts
2
14
14.29%

Totals

Change from base Build 338526806:
0.01%

Covered Lines:
20680

Relevant Lines:
48007

💛  - Coveralls

the changes are very scoped, I have tested it thoroughly and all checks passed, I want to get it in before Nov release branch is forked. I am merging this PR directly.


image entrypoint documentation

I'm trying to run a local container that has been created as a lambda dotnet 5 image following an Amazon template.
In other words, I have a dotnet 5 project with a AWS lambda function which I have created with
dotnet new -i Amazon.Lambda.Templates
dotnet new serverless.image.AspNetCoreWebAPI -n LambdaDotNet5
dotnet build -c Release
dotnet publish -c Release

This creates a dotnet project with a simple Dockerfile (notice there is no entry point or anything) and compiles it and publishes its artifacts in a folder.
FROM public.ecr.aws/lambda/dotnet:5.0
WORKDIR /var/task
COPY "bin/Release/net5.0/publish"  .

Notice by default this line was COPY "bin/Release/net5.0/linux-x64/publish"  . but my dotnet publish -c Release places it under publish folder, without the linux-x64 part.
Now I follow the instructions described and I can build a docker image locally
docker build -t diegosasw/my-project .

Using a git-bash linux-like terminal in Windows I run
mkdir -p ~/.aws-lambda-rie && curl -Lo ~/.aws-lambda-rie/aws-lambda-rie https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie && chmod +x ~/.aws-lambda-rie/aws-lambda-rie

and I can see the emulator properly downloaded
ls -la ~/.aws-lambda-rie/aws-lambda-rie
-rw-r--r-- 1 diego.martin 1049089 8155136 Feb 22 13:32 /c/Users/diego.martin/.aws-lambda-rie/aws-lambda-rie

Now I want to run the emulator with my container, so here's where I'm not sure what am I doing or what may be the problem
docker run -d -v ~/.aws-lambda-rie:/aws-lambda -p 9000:8080 --entrypoint /aws-lambda/aws-lambda-rie lambda-dotnet:latest

Notice I don't specify any entrypoint because I don't have any in my image. So the output is
54b355026ba16fc12d5884b38ff4f9cb481e007ac1cdbc222f17666891c9aa94
docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "C:/Users/diego.martin/AppData/Local/Programs/Git/aws-lambda/aws-lambda-rie": stat C:/Users/diego.martin/AppData/Local/Programs/Git/aws-lambda/aws-lambda-rie: no such file or directory: unknown.

What am I missing and what would be the command to run the RIE with my lambda container?

I've created a repo to reproduce it https://gitlab.com/sunnyatticsoftware/sandbox/lambda-dotnet5-webapi

Hey @diegosasw - thanks for reaching out.
Lambda base images already include the RIC and provide a seamless local experience by abstracting away most of it behind the predefined /lambda-entrypoint.sh ENTRYPOINT script of these base images. The AWS docs on Testing Lambda container images locally describe how you can run and invoke your Lambda function container image locally. For the .NET base images, this is also documented on the public gallery page for the Lambda .NET base images' repository (https://gallery.ecr.aws/lambda/dotnet) under the Usage tab.
Essentially in your case, you should also define the CMD directive in your Dockerfile as your function handler, eg:
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile)
CMD [ "MyProject::MyFunction.Function::FunctionHandler" ]

If the CMD is defined in your container image, you can run your function locally through the embedded RIE in the base images as such:
docker run -p 9000:8080 diegosasw/my-project

Otherwise if you'd rather not define the handler in your Dockerfile, this can be passed in as a function override if running in Lambda, or as a parameter in the docker run command if running locally, eg:
docker run -p 9000:8080 diegosasw/my-project "MyProject::MyFunction.Function::FunctionHandler"

After your container is started, in a separate terminal, you can then locally invoke the function using cURL:
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"payload":"hello world!"}'

Regardless of whether the RIE is included in the base image or not, you should also be able to mount it and use it as you've described (and how it is documented in this project's README).
From your snippets, I can see that the RIE binary does not have the x (executable) permission flags set:
ls -la ~/.aws-lambda-rie/aws-lambda-rie
-rw-r--r-- 1 myusername 1049089 8155136 Feb 22 13:32 /c/Users/myusername /.aws-lambda-rie/aws-lambda-rie

An executable file is one that has the x flag set (eg. -rwxr-xr-x).
Seeing as you're running the correct command to set the executable flag (ie. chmod +x ~/.aws-lambda-rie/aws-lambda-rie), I suspect this might have something to do with the format of your Windows drive. Quoting the Cygwin documentation on File permissions:

On FAT or FAT32 filesystems, files are always readable [...]
On NTFS, file permissions are evaluated using the Access Control Lists (ACLs) attached to a file. This can be switched off by using the "noacl" option to the respective mount point in the /etc/fstab or /etc/fstab.d/$USER file.

So I'd look at the drive format on your Windows host and see how the Linux-like terminal that you're using handles file permissions for that format. Alternatively, you can do this to your Dockerfile as documented in the AWS docs section about Build RIE into your base image.

Brilliant! I updated my repo with the instructions as per your explanation and it's all working perfectly.
Haven't tested it by mounting it but I also suspect it has something to do with the Windows git-bash console (not really a linux file system). I'll give it a try later with a WSL2 linux distro though.


ESP Cam can make this useful

if we cam to openai vision. that will be nice

That is a very interesting proposition, so... are you thinking one of the ESP-32-EYE boards or similar and then forward a frame grab from the cam to the new gpt-4 with vision?
That would make a super cheap robotics with vision base.

yea


New Sqlite3 driver

This PR introduces a driver for Sqlite3. It relies on sqlite3-ocaml to stay as low level as possible.
It requires #2 to be merged to support this new driver.

Thanks @maiste!
I tried to run the driver on example migrations (that I pushed to the example/ directory) and I have the following error:
dune exec omigrate -- setup --source ./example --database sqlite3://./db.sqlite3
omigrate: internal error, uncaught exception:
          Sqlite3.Error("error opening database: unable to open database file")

Do you know what's going wrong?

I replicate the issue: it seems to struggle with relative path. If you put an absolute path, it will work. Investigate on a way to fix that.

Thanks @maiste! Sorry for the noise, I thought it was supported, but if the RFC is explicit about not supporting it, we shouldn't either!
I still have an error running the migrations though. After cleaning the SQL bits from the migrations that are not supported by sqlite3, I have the following error:
dune exec omigrate -- setup -d "sqlite3://$PWD/my_db.db" -s "./example"
omigrate: internal error, uncaught exception:
          Sqlite3.Error("Sqlite3.prepare: near \"(\": syntax error")

I was pushing some code to update the codebase. The README is not supposed to be in the migration repository, which triggers the bug. To clarify the structure, I've split example into two subdirectories, postgres and sqlite3. This way, you can run the example with the following :
dune exec omigrate -- setup -d "sqlite3://$PWD/my_db.db" -s "./example/sqlite3"

As postgres and sqlite3 doesn't support the same set of features, the sqlite3 are the same as in go-migrate.


[CARBONDATA-1429] Add a value based compression for decimal data type when decimal is stored as Int or Long

Added a value based compression for decimal data type when decimal is stored as Int or Long

When decimal precision is <= 9, decimal values are stored in 4 bytes but they are not compressed further based on min and max values as compared with other primitive data type compression. Therefore now based on min and max value decimal data falling in Integer range will be further compressed as byte or short.
When decimal precision is <= 18, decimal values are stored in 8 bytes but they are not compressed further based on min and max values as compared with other primitive data type compression. Therefore now based on min and max value decimal data falling in Long range will be further compressed as byte, short or int.

Advantage: This will reduce the storage space thereby decreasing the IO time while decompressing the data.

SDV Build Failed with Spark 2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/304/

SDV Build Failed with Spark 2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/308/

SDV Build Failed with Spark 2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/328/

SDV Build Failed with Spark 2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/330/

ok to test

SDV Build Failed with Spark 2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/340/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3431/

ok to test

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3432/

SDV Build Success with Spark 2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/348/

@ravipesala please review

Build Success with Spark 1.6, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/828/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/16/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/113/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/114/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/118/

Build Success with Spark 1.6, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/15/

Build Success with Spark 1.6, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/17/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/741/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/743/

retest this please

@jackylk ..handled review comments

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/775/

Build Success with Spark 1.6, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/27/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/779/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/164/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/793/

Build Success with Spark 1.6, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/43/

LGTM


Missing file?

Hi
Did you forget to push your code?
I'm interested in your project.

Hey, yes sorry, I forgot to commit (many) changes both offline and online. I'll try to commit later tonight or tomorrow, but about half of the functionality is there. If you happened to have an HTML file I have a version that works for that also on my github :)


build occasionally

Reviewer checklist

[ ] Ensure relevant issues are linked (description should include text like "Fixes #")
[ ] Ensure any appropriate documentation has been added or amended

Coverage remained the same at 94.007% when pulling e892d106f55462a56efc52e68ee720677cf4e422 on build into 32eba062264bef33e5dfc8e73ac17948ef0d5bd6 on main.


Gradel uses FLUTTER_HOME but should use FLUTTER_ROOT

It looks like FLUTTER_HOME is a typo:
https://github.com/flutter/flutter/search?utf8=✓&q=FLUTTER_HOME&type=
and should be FLUTTER_ROOT like all the rest:
https://github.com/flutter/flutter/search?utf8=✓&q=FLUTTER_ROOT&type=
Thanks to @dantup for the report.

Fixed in https://github.com/flutter/flutter/issues/10100


Adds variadic template for oneOf, allOf and anyOf

This allows passing many schemas into oneOf (which I do a lot), without losing the type. The workaround before has been to use fromJsonSchema.

Hi Joel,
Thanks for your PR.
That's a great idea. I'm just back from vacation so I'll review your code in the next few days and merge it after that.


Add CN/EU/US selection

There should be an option to choose between CN/EU/US cloud storage servers.
Probably some option in config.ini will be enough.

region
URL

CN
send2boox.com

US
push.boox.com

EUR
eur.boox.com


Exception & Logging

[x] create exception handling
[x] create logging

Exception & Logging created and tested


Help

it would be nice uf u make a video tutorial cuz everytime i tried doesn't work tried about 5times today

it would help so many people


Linux Matter bridge app that supports Wi-Fi without Thread #18782

Problem
Unable to create a Linux Matter bridge app that supports Wi-Fi without Thread.
Change overview
Build.gn: Check for Thread support and only include it if it’s enabled.
src/platform/Linux/ConnectivityManagerImpl.cpp: Add include of "platform/Linux/GlibTypeDeleter.h".
Testing

Successfully build Linux Matter bridge app that supports Wi-Fi without Thread.

 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.


create Pickle.json

The Pull Request resolves Issue #[1159] 🎉
Description:
Add Pickle.json for words starting with letter "P"

You made the PR to your own repository!