Prepare rest api

We should create rest api to integrate with our wrappers/adapters. As a library, my recommendation is to use fastify (@soanvig used it in puppeteer-service and told that is very easy and has a built-in validator).
Endpoints to create:
POST /image/metadata
POST /video/metadata
POST /image/:adapter/crop
POST /image/:adapter/resize
POST /video/:adapter/resize
adapter param should be validated, available values will be defined in some const.
TODO:

Setup fastify
Register first handlers (at this point simply throw some "Not implemented" error)
Create Dockerfile

POST /image/:adapter/cut -> crop I guess

POST /image/:adapter/cut -> crop I guess

Updated


Alphabetize the .lsar list(s)

Would it be possible, (if not already) to have the list(s) that output using the ".lsar" show in an alphabetized order since it can become quite a task if those list(s) are long?

Assuming this is a feature.
We submit features only trough the feathub. The link is in announcements.
If I misunderstood your question you don’t have to close the issue.

Thanks for the fast reply there, sorry for the vague question/statement in the initial issue.
I was first wanting to know if, when using the ".lsar", was it supposed to already be alphabetized, then if not could we add that in there. (At which point I will submit the request on feathub)

Ofcours it can be added in to make it alphabetized!
There are two ways you can do this.
You make this yourself (knowing how to ofc).
Or submit trough feathub (if you already find the excisting feature, upvote so it has more chance to be seen by kwoth).
If you however know how to make this yourself, you can submit a pull to nadeko and kwoth can decide to add your changes for everyone to use.


Overriding test results so maven build works

I think you need to merge master into this branch, the diff is here is showing all kinds of changes which are already in master so it's hard to see what exactly has changed for just this fix. Can you do that please and then I'll take another look?

I think you need to merge master into this branch, the diff is here is showing all kinds of changes which are already in master so it's hard to see what exactly has changed for just this fix. Can you do that please and then I'll take another look?


chore/github-actions: bump go version to v1.22 and fix CI

What type of PR is this?

/kind chore

What does this PR do / why we need it:
This PR bumps go version to 1.22 and fixes the CI pipeline.
Which issue(s) this PR fixes:
Fixes #16
How to test changes / Special notes to the reviewer:

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 9.27%. Comparing base (fa8d4d9) to head (9d718fc).
Report is 1 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff            @@
##            main     #20      +/-   ##
========================================
+ Coverage   0.00%   9.27%   +9.27%
========================================
  Files          2       6       +4
  Lines        118     291     +173
========================================
+ Hits           0      27      +27
- Misses       118     262     +144
- Partials       0       2       +2

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


Security Vulnerabilities - Black Duck Scan - Pulsar v.2.3.1

Issue
Black Duck, a product by Synopsys that scans for open source security threats, uncovered a few issues with dependencies for the Pulsar 2.3.1 binaries. Just posting the results here to make the community aware for future releases, I know this stuff is like a moving target.
Apache Commons Compress - 1.15

CVE-2018-11771
CVE-2018-1324

Apache Maven 2 - 3.0.4

CVE-2013-0253
CVE-2016-4469
CVE-2016-5005
CVE-2017-5657

AsyncHttpClient - 1.6.5

CVE-2013-7397
CVE-2013-7398

Guava: Google Core Libraries for Java - 21.0

CVE-2018-10237

Guava: Google Core Libraries for Java - 24.1-jre

CVE-2018-10237

jackson-databind - <IP_ADDRESS>

CVE-2018-1000873
CVE-2018-14719
CVE-2018-14720
CVE-2018-14721
CVE-2018-19360
CVE-2018-19361
CVE-2018-19362

Jetty: Java based HTTP, Servlet, SPDY, WebSocket Server - 9.4.11.v20180605

CVE-2017-9735
CVE-2018-12545

jQuery - 2.2.3

CVE-2011-4969

jQuery UI - 1.11.4

CVE-2016-7103

Netty Project - 3.10.1.Final

CVE-2015-2156

Netty Project - 3.6.2.Final

CVE-2015-2156
CVE-2014-0193

It looks like upgrading to the latest versions of each of these dependencies might patch things, but I am not certain.
Thanks!

Hello,
I wanted to confirm if the correct binaries (without the known vulnerabilities) are already present in the current builds of Pulsar.
If not, what is the timeline of getting these incorporated?

Hi all (@one70six , @merlimat , @sijie ),
Would you know if this issue is resolved in 2.4.0 (and any update over that)? The InfoSec teams at various companies look at this kind of defects and suggest that we get this fixed before choosing to use Apache Pulsar in production.
So, all updates would help.
Best regards
Anand Sinha


Add a TLS_Server property to apply a hostname list to the SSL forward proxy bypass option

Is your feature request related to a problem? Please describe.
The client SSL profile declaration (TLS_Server) has the option to enable/disable SSL forward proxy bypass, but it does not have the option to apply a list of hostnames to bypass (as far as I can tell from the documentation). This is an option in the GUI.
Describe the solution you'd like
Add the option to apply a datagroup containing a list of hostnames to bypass
Describe alternatives you've considered
We have traffic for multiple applications flowing into a single HTTPS virtual server. I looked for iRules, but I didn't find one doing exactly what I need. The alternative seems to be overhauling our current solution.
Additional context

Thank you for your feedback. This has been added to our internal product backlog as AUTOTOOL-2240.


Partial functions have wrong values

It looks like partial functions are sharing variable names / overwriting values which means when they are called they get the last value:
let log a b = printf "a = %s, b = %s" a b
let items = [log "First Message"; log "Second Message"]
items |> List.iter(fun x -> x "From List Iter")

Expected ouput:
a = First Message, b = From List Iter
a = Second Message, b = From List Iter

Actual output:
a = Second Message, b = From List Iter
a = Second Message, b = From List Iter

A second example without the list:
let log a b = printf "a = %s, b = %s" a b
let item1 = log "item1"
let item2 = log "item2"
item1 "item1"

Expected ouput:
a = item1, b = item1

Actual output:
a = item2, b = item1

As always, thanks a lot for checking the code generated by Fable so thoroughly and providing such detailed feedback, @davidtme! This proved to be trickier than I thought. The problem here is the second closure is overriding the variable of the first one, so when this is called the variable (the partially applied argument) retains the last value.
I tried to use let instead of var to declare the variables, however this was causing some unidentified problems with Babel and I had no other than way patching the problem. In any case, it seems to work. If it doesn't for you, just tell me.


Inquiring about the default value of the output query param as TXT instead of JSON

We recently performed an upgrade to the latest version, which resulted in a disruption. Upon investigation, we discovered that the default response format is no longer JSON as it used to be a few months ago. Upon reviewing the code, we observed that the default value for the output query parameter is set to txt, instead of json.
We have made the necessary adjustments on our end to accommodate this change. However, we would appreciate clarification regarding the reasoning behind this modification. Considering that JSON is typically the expected response format for REST APIs, we are curious to understand the rationale behind the shift to TXT.

The default was json until this commit in February. We will look into changing the defaults, but for now please specify the output format you would like. Thank you.


Review section 11

Mostly formatting. I add a quick note about try-with-resource with scope earlier in the document.

LGTM. Thank you!


update PHP manual link

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Tests pass?
❌

Fixed issues
https://github.com/yiisoft/yii2/issues/18903

👍🏻


Express V5 or 4.21.0???

What is the correct version?
YouTubers and others say Express V5 is out, but GitHub, and the official webpage have not confirmed.
On GitHub, it says: 4.21.0 release today
On commit says 5.0.0 3 day ago
On the website, it says: 4.19.2 and Express V5 beta
So, What is  correct?

I was working on a blog post today, it just is not finished. For now I would not worry about updating to v5, we have a lot of work to do before it moves from next to latest. But it is published so you can try it out if you like with npm i express@next.


how do i fix clear tracking on the dll

im using the newest version of spt so i have to use the dll version of this trainer and all the fixes i see i cannot figure out for the dll version of the trainer. the only things i can track through walls is gphones using the loot tab with R.Alt so i have tried and looked but i cant seem to fix the clear tracking issue that everyone else seems to have on the nlog version

The fix was merged yesterday : https://github.com/sailro/EscapeFromTarkov-Trainer/pull/335
So make sure you re-run the installer to compile the latest sources.
bepinex/nlog loader is just a detail for loading, it is the exact same trainer code.


Make custom discord widget using widget.json

https://discordapp.com/api/guilds/207281932214599682/widget.json

I could add this:

Or we could use someone else's custom code like this (https://github.com/valendres/react-discord-widget):

Or we could use the JSON to create something with our own look and feel. I think that maybe it's better to look like discord so that (some) people instantly recognize what it is?
Not sure.

As far as the Discord logo is there, I think there's no problem to change the look and feel to be closer to ours.


Allow custom images on iterative_cml_runner resource

Could close #231 if merged

Are there non-systemd images that could be selected(are there any popular non-systemd distros anymore)? That would definitely break, or consider that too much of archaic possibility to be concerned about?

Are there non-systemd images that could be selected [...] ?

Of course! Custom images may use any other init system.

[...] are there any popular non-systemd distros anymore.

Alpine, which uses OpenRC. 🤷🏼 Although its popularity for containers is — by far — greater than for virtual machines.

That would definitely break, or consider that too much of archaic possibility to be concerned about?

We consider systemd as a hard dependency. 🙉 It's included on all the popular virtual machine images, so relying on it is relatively safe.

Are there non-systemd images that could be selected [...] ?

Of course! Custom images may use any other init system.

Yeah I realized this was a silly question :giraffe:

Not really; that's an excellent addition to the documentation. I believe that users with custom images will also wonder what the minimum requirements are.

Not really; that's an excellent addition to the documentation. I believe that users with custom images will also wonder what the minimum requirements are.

we could add another FROM line midway through https://github.com/iterative/cml/blob/master/Dockerfile to distinguish optional deps from essential ones?

Container images only require tar and coreutils. This is about machine images.

don't we need terraform, node & cml too?

Yes, for the iterative_cml_runner resource

Im missing a check of terraform in the setup script to fail in case its not present.
If not the runner resource is going to destroy itself after timeout without an apparent reason.

Despite not being set as computed in the schema, the startup_script argument is being overridden always by the runner installation script.
https://github.com/iterative/terraform-provider-iterative/blob/550c698677b94644a80fa019fab6f62b26787543/iterative/resource_runner.go#L149-L155
https://github.com/iterative/terraform-provider-iterative/blob/550c698677b94644a80fa019fab6f62b26787543/iterative/resource_runner.go#L201
While the current startup_script behavior might not be as sensible as one could desire, it doesn't seem to be related to this pull request. 🤔

Despite not being set as computed in the schema, the startup_script argument is being overridden always by the runner installation script.

Thats weird. startup_script argument should be executed within the runner's script
{- if not .container}}
{{- if .setup}}{{.setup}}{{- end}}
sudo npm config set user 0 && sudo npm install --global @dvcorg/cml
{{- end}}

{{- if .runner_startup_script}}
{{.runner_startup_script}}
{{- end}}

{{- if not .container}}
sudo tee /usr/bin/cml.sh << 'EOF'
#!/bin/sh
{{- end}}

@iterative/cml, can we merge this?


Allow bazel test //... to run out-of-the-box

Update to gazelle 0.39.1
Wrap generate_imported_dylib.sh in genrules

What type of PR is this?
Bug fix
What does this PR do? Why is it needed?
This PR fixes 3 issues which caused an invocation of
bazel test //... in a clean checkout of the repository to fail
depending on potential contributor's development environment.

Contributors needed to know to run generate_imported_dylib.sh
Contributors needed to have $JAVA_HOME set
Contributors needed NOT to have go env GOTOOLCHAIN set

For 1, this PR wraps the generate_imported_dylib.sh in genrules so
that the build will just automatically create the dynamic libraries
appropriate for the platform.
For 2, the PR adds a --java_runtime_version=remotejdk_21 argument to
the one test in lcov_coverage_test.go that needs to be able to build
a Java rule.
For 3, the PR upgrades gazellle to version 0.39.1 and updates the
excludes lists in the popular_repos.py file to handle the latest
versions of those popular repos. This upgrade addresses the problem
because https://github.com/bazel-contrib/bazel-gazelle/issues/1858 is
fixed in that version of gazelle.
BONUS: Also, there were a few TODOs left in the WORKSPACE and
.bazelrc files which were addressed by upgrading to the latest
gazelle version. So, this PR cleans those up at the same time.
Which issues(s) does this PR fix?
Fixes #4149
Other notes for review
I have tested this on the following two machines:
macos (M3 arm64)
linux (amd64)
In both cases, I can clone the repository into an fresh directory hop
onto the build-fixes branch and run:
❯ bazel test -j 8 //...

And, it actually has all 452 tests passing within 30 minutes or so.
On both machines, go env GOTOOLCHAIN is go1.23.2 and $JAVA_HOME
is not set on either machine.

Amazing PR. Thanks so much 🙏


Animation support

Since basically every 3d software can export FBX format, let's use it in Cervus as well.
The MORPH component could probably be used in here, but further research is required
to confirm that.
Questions & concerns

Maybe md5 would be easier to work with?
The easiest would probably be simple JSON model format from this Online 3D Converter, it exports FBX animations and bones to JSON (tested on Mixamo models)

Old description

Clean up the voxel animation code
Add support for multiframe animations from Magica
remove the mesh builder and leave just the parser (as a module maybe?)
optimize animations (diff between frames?)

I feel like this ticket should be divided into two - one for Animation component, and second one for the model loader that converts Assimp2Json format to the one expected by our shaders.


Learn X in Y Minutes

Would be nice to have a succinct tutorial up on https://learnxinyminutes.com. There are already guides for Forth and Factor that might be relevant to get inspiration from.

I'd love to!
I think it might bring an audience if I do this, and so I plan to wait until I get some bigger issues addressed, at the least #1 and #68


Update Dockerfile and pyproject.toml

improved dockerfile

[!IMPORTANT]
Improve Dockerfile by reducing image size with --no-cache-dir and clarifying comments.

Dockerfile Improvements:

Add --no-cache-dir option to pip install poetry to reduce image size.
Update comments for clarity: specify global Poetry installation and entire project directory copy.

This description was created by  for 9de0cf68bc2cd4dca1b60e53ad5f8e28d3d8ff9b. It will automatically update as commits are pushed.

@creatorrr

Although adding --no-cache-dir reduces the image size, it increases the build time. We can't take this trade off right now, so closing.


Messageformat 1.0.2 released

Are you planning to update messageformat to 1.0.2?

In principle, yes. More so, now that I have a large-ish test suite. I hope the API hasn't changed much and there are not many breaking changes!

Hey, apparently it wasn't that hard. Could you please check out #8? It seems to be OK, but maybe you find some edge cases I haven't considered.
In any case, I will keep on testing this upgrade. I will probably release this as a major upgrade, since I've seen some formatters (e.g. number) that seem not to be supported anymore, so this could be a breaking change.

Wow that was fast 👍  . I will certainly give it a try. Not sure how useful I am as a tester though, just started using this library...

OK, I'm merging #8 now since I'm moving over to another issue and want to keep a linear history.
I'm also going to close this, but keep me posted and feel free to re-open if you detect any problem. I couldn't find anything strange during my testing of this upgrade.


Is there a plan to support graphQL directives like @flatten and @first?

Do you want to submit a request for change, improve documentation, or ask a question?
If asking a question, please attach the 'Question' label
If reporting a bug, please answer the following at minimum and add any additional information you think may be helpful
What is the current behavior?
What is the expected behavior?
What are the steps to reproduce?
What OS are you using and what version of node.js and @asymmetrik/graphql-fhir are you running?

It's not on our immediate roadmap but is something we are aware of and may have added in the near future. We are of course always accepting pull requests if anyone has time to help in adding support for that feature in the meantime. Custom directives are nice and support in graphql-js does seem to exist, but there is not a lot of documentation on them.  We are not using Apollo or other tools, so if we want to add directives, we will need to implement them with graphql-js.

Can you provide the internal tool mentioned in README to generate the FHIR profiles ? This is needed as many countries are having their own versions of the FHIR profiles. For example US has their own core profile Datasets, India has their own, that I know of. Access to the tool would help reuse the tool, and minimize errors


fix chef provisoning script

remove unused secgroup_id
remove "sudo" command, cloud init already run on root privilege
add -y option to yum command, yum will fail to install when no user interaction

Tested on openstack liberty

:metal: thanks!


[NFC] Add a regression test for SR-12432

This key path bug was fixed somewhat recently - this PR just adds a regression test.
Resolves: rdar://problem/59590959
Resolves: SR-12432

@swift-ci please smoke test


Migrating storage admin console panel to declarative

Summary
Migrating storage admin console panel to declarative.
Checklist

[x] Ran make check-style to check for style errors (required for all pull requests)
[x] Ran make test to ensure unit and component tests passed

@hmhealey I don't know if the declarative implementation needs any thing with the new "environment settings" feature.

@jespino Nope, it doesn't need anything else. It just needs the key set to the full path for the setting in the config, and it should just work.

Is this for 4.10 or can it wait for 5.0?

Yes, exactly, it goes better in 4.11


In the "Update Version DB" PRs, add a note that the user must close a nd reopen the PR to trigger CI

We probably don't need to run CI on these PRs, they are really just a data file update. But still, the message can't hurt.


Find References documentation is a bit ambiguous

The Find References section in protocol specification is a little ambiguous at the moment.
Here's what it says at the moment:

The references request is sent from the client to the server to resolve project-wide references for the symbol denoted by the given text document position.

Changed: In 2.0 the request uses TextDocumentPositionParams with proper textDocument and position properties. In 1.0 the uri of the referenced text document was inlined into the params object.

Request

method: 'textDocument/references'
param: ReferenceParams defined as follows:

interface ReferenceParams extends TextDocumentPositionParams {
context: ReferenceContext
}
> ```typescript
interface ReferenceContext {
	/**
	 * Include the declaration of the current symbol.
	 */
	includeDeclaration: boolean;
}

error: code and message set in case an exception happens during the reference request.

It is unclear to me whether ReferenceParams is a parameter to 'textDocument/references' request or it is a response param.
It seems to me that this section is missing a Response subsection with a description of the response params, but I can not tell for sure...

Good catch. It was missing the result section. Fixed it.


Add some missing files to LLM directory

There was a large output text file when originally uploading the LLM directory, which caused upload to stop mid-process. Some files might have been left out; check and add them.

Uploaded. LLM_Interactor.py was missing.


re adds the dbt compile command

fixes https://github.com/fishtown-analytics/dbt/issues/390
The dbt output could use some work. Currently looks like this:
16:10:46 ~/fishtown/clients/test $ dbt compile
Found 1 models, 0 tests, 0 archives, 0 analyses, 10 macros
Concurrency: 2 threads (target='dev')
Done.

[wip]

I merged #408 , you should pull development


[Languages] Understanding and working with JavaScript objects

Proposed title of article
[Languages] Understanding and working with JavaScript objects
Proposed article introduction
An object in JavaScript has attributes and a type. Like a cup, for example. A cup is a property. A cup has a color, a pattern, a weight, and a material. Objects in JavaScript may also have properties that determine their attributes.
Objects are composed of attributes or properties and functions/methods. Object properties describe the object while objects methods are functions that manipulates an object.
Key takeaways
In this article, we will learn about:

How to create an object
Array objects
String objects
Math objects
date objects
A project to demonstrate the use of the JavaScript objects.

Article quality
To make my article unique, I will create a project to show how to use the above JavaScript objects.
References
N/A

Thank you for your response and we thank you for submitting your topic. After some careful consideration it struck us that this topic may be a bit over saturated throughout other blog sites and official documentations as previously mentioned on your topic form by our content moderator.
We typically refrain from publishing content that is covered widely on the net or other blogs. As we're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
We believe this is the best way for students to build a great portfolio (for potential employers) is by building what does not exist and what can provide the most value.
You are more than welcome to pursue another more in depth topic


Re-installed client app retrieves SOH snapshot from server

Scenario: Querying the server for current information
Given the server has "5" items of type "A"
When I re-install the app on the tablet
Then the SOH shown on the tablet for item of type "A" is "5" for my clinic

@garymabin Is this currently in place? Can you point me to the test that proves this?

@egwuma: Do we want a snapshot of SOH or history also?
If history is needed, how far in the past do you want the server to go?
It only a snapshot is retrieved, then it's much simpler, but a newly installed app will not be able to generate historical reports.

@ Bin/ Itamar, we really do not need historical data of the SOH on re-installation of the app, a snap shot of the last SOH synced to the server will suffice to kick start the app. Yes this feature is currently in place.
Egwuma

@egwuma, There are all kinds of Monthly reports in the "Reports" category, Doesn't we need them to be correctly presented after the app's re-installation? I mean the activities about all the commodities is retrieved every time the app started.

Currently the system is set up to only retrieve the SOH on re-installation, history of activities are not retrieved.

Perfect.
Thanks,
Itamar
On Oct 9, 2015, 9:06 AM -0400<EMAIL_ADDRESS>wrote:

Currently the system is set up to only retrieve the SOH on re-installation, history of activities are not retrieved.
—
Reply to this email directly orview it on GitHub(https://github.com/clintonhealthaccess/chailmis-android/issues/257#issuecomment-146866282).

Egwuma says: "Currently the system is set up to only retrieve the SOH on re-installation, history of activities are not retrieved."
But Bin Ma says: "I mean the activities about all the commodities is retrieved every time the app started for now."
So it seems there is a difference between the desired and actual behavior. I am also a bit surprised however that only the SOH is supposed to be pulled over, I believe there is other data needed by the app at startup.

I saw a message that said that a reinstalled tablet does not need the history records, so I am assuming that it would need to only set SOH from the server's snapshots. OR get all the translations from the server and calculate current SOH as it's receiving number from the server (I hope that's not the case, I'd rather have a snapshot retrieval API on the server).
@egwuma - please weigh in.

@egwuma - what is the URL in QA for the API that returns SOH snapshot without the history records?

Note: I don't think Egwuma knows specific rest end points. I think the QA
URL more generally is in the github readme.
Karl Brown
ThoughtWorks
On Oct 9, 2015, at 22:33, Itamar Hassin<EMAIL_ADDRESS>wrote:
@egwuma - what is the URL in QA for the API that returns SOH snapshot
without the history records?
—
Reply to this email directly or view it on GitHub
https://github.com/clintonhealthaccess/chailmis-android/issues/257#issuecomment-147023910
.

Cc:ing Itamar... Sorry Egwuma for the spam...
Karl Brown
ThoughtWorks
On Oct 9, 2015, at 22:34, Karl Brown<EMAIL_ADDRESS>wrote:
Note: I don't think Egwuma knows specific rest end points. I think the QA
URL more generally is in the github readme.
Karl Brown
ThoughtWorks
On Oct 9, 2015, at 22:33, Itamar Hassin<EMAIL_ADDRESS>wrote:
@egwuma - what is the URL in QA for the API that returns SOH snapshot
without the history records?
—
Reply to this email directly or view it on GitHub
https://github.com/clintonhealthaccess/chailmis-android/issues/257#issuecomment-147023910
.

@all - we have the URL in #256. No need to answer this question anymore.

As egwuma commented, We will only get the lasted SOH snapshot every time the app starts. And I will check whether the App saves the latest SOH snapshot correctly, then we can calculate the new SOH based on the previous one.

@garymabin please commence work on this while we wait for QA to compete on the others. Thanks!

[update] I confirm that the app will save the latest SOH snapshot when starting, so the SOH will be calculated based on a right values, even if it is reinstalled

Excellent!

On Oct 12, 2015, at 21:49, Bin Ma<EMAIL_ADDRESS>wrote:
[update] I confirm that the app will save the latest SOH snapshot when starting, so the SOH will be calculated based on a right values, even if it is reinstalled
—
Reply to this email directly or view it on GitHub https://github.com/clintonhealthaccess/chailmis-android/issues/257#issuecomment-147571324.

can only test this when the server side "carry forward" function is complete

Why can’t we confirm:
Scenario: Querying the server for current information
Given the server has "5" items of type "A"
When I re-install the app on the tablet
Then the SOH shown on the tablet for item of type "A" is "5" for my clinic
For this story, I am not worried about the validity of the server’s A’s stock value of 5. Just that it gets transmitted to the app upon re-install.
What do you think?
Itamar

On Oct 13, 2015, at 05:13, chai-lmis<EMAIL_ADDRESS>wrote:
can only test this when the server side "carry forward" function is complete
—
Reply to this email directly or view it on GitHub https://github.com/clintonhealthaccess/chailmis-android/issues/257#issuecomment-147657590.

When you uninstall and re-install the app, the SOH data is retrieved from the server (based on the data synced from the app), however if the data is not carried forward to the next day (when the re-install is done) then the SOH data on the server is 0 for all unchanged SOH values.
HISP NG is working on completing this feature tomorrow, so we should be able to do an end to end test then.

@chai-lmis We should still be able to test it same day right? I.e. wait for the sync, uninstall and reinstall within say 30 mins. It should pick up that value from the server.

Tested: Not OK. App when uninstalled and reinstalled, all commodities SOH are zero, though there are SOH values on the server.

Thanks Egwuma. We'll look into it. @bin: please insert logs that show the problem and paste them here prior to trying to fix this.
Thanks,
Itamar
On Oct 19, 2015, 5:55 AM -0400<EMAIL_ADDRESS>wrote:

Tested: Not OK. App when uninstalled and reinstalled, all commodities SOH are zero, though there are SOH values on the server.
—
Reply to this email directly orview it on GitHub(https://github.com/clintonhealthaccess/chailmis-android/issues/257#issuecomment-149170861).

I will wait for the server to update from tonight's transactions and will reinstall once that is done and verify correct values

Reinstalled app. All quantities were zero. Clicked on 'sync', got success message, yet all quantities stayed at zero.

This is blocked from being tested till #251 is completed

tested ok: installed apk and values on the server synced to the client


Wrong transformation of multiple value css properties (missing space)

Hey, after updating to 3.1, the following happend:
border-left: 13px solid color-mod(#000 alpha(0.5));
is transformed to:
border-left: 13px solidrgba(0, 0, 0, 0.5)
(see the missing space)

So, this is definitely caused by the postcss-color-mod-function module.
I've created an issue over there jonathantneal/postcss-color-mod-function#5.

Thanks for reporting this @martinkutter, and thanks for finding the source of the issue, @leesdolphin

Thanks for the quick merge, Would it be possible to bump the postcss-preset-env version to 3.x to take advantage of that fix?

Thank you very much!

Patched in 3.1.1. Thanks @leesdolphin !


Plugin initialization bug

Someone already reported that issue, but closed it after reverting to previous version of the plugin.
When I try to use the plugin i'm getting this:
Unhandled rejection Error: (SystemJS) Error: key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?
From my observations it looks like configure method is not being called and plugin is not initialised properly. My code is the same as README samples. Using version 1.0.12.
I can also confirm that version 1.0.11 seems to work fine.

I got the same message after upgrading my aurelia dependencies from 1.0.0rc to 1.0.0
1.0.11 works fine

+1 same here

Yeah I've reverted to 1.0.11 as well.

This is fixed in release 1.0.13. Thanks and sorry guys.

This is still broken for me in 1.0.13


[UPDATE BONUS GUIDE] Lightning Terminal v0.9.1

What
Updates the bonus guide "Lightning Terminal" to v0.9.1.
v0.9.1 requires LND version 0.16.0 (!)
Why
New version, new features (autofees).
How
Following release docs: https://github.com/lightninglabs/lightning-terminal/releases/tag/v0.9.1-alpha
Scope

[ ] significant change to core configuration
[x] independent bonus guide
[ ] simple bug fix

Not sure I understand what adjust to your alias means here, maybe unclear?

Not sure I understand what adjust to your alias means, maybe unclear?

You're right. It's unclear what that refers to. I removed that part.

Could update version number to be assigned by variable (e.g., "VERSION="0.9.0") to make future updates a little easier. If you decide to do this I'd add it on line 66 before "cd /tmp". Just need to make sure if you do this you only replace the version in the user commands with "$VERSION" and not the outputs (e.g. lines 77, 92, 113, 513)

Tested ACK

@kristapsk ready to merge?

Updated PR to v0.9.1

Please approve and merge this PR as it has been tested by at least 2 users (3 including myself).
@twofaktor @kristapsk

This section overwrites the aliases bonus guide:
https://github.com/raspibolt/raspibolt/blob/ff6fc610c9c9ce159abf7473319e1361185797bb/guide/bonus/lightning/lightning-terminal.md?plain=1#L388
Aliases bonus guide: https://raspibolt.org/guide/bonus/raspberry-pi/aliases.html

This section overwrites the existing aliases bonus guide:
https://github.com/raspibolt/raspibolt/blob/ff6fc610c9c9ce159abf7473319e1361185797bb/guide/bonus/lightning/lightning-terminal.md?plain=1#L388
Aliases bonus guide: https://raspibolt.org/guide/bonus/raspberry-pi/aliases.html

This section is not part of the update. We should consolidate this in a separate PR.

Where is the Nginx reverse proxy section to access through the SSL connection?
https://github.com/raspibolt/raspibolt/pull/1257/files#diff-71518fc2f631644b3c17b9a9a9b3eb3fbfbf2214ba1eb102c4f108c15c701c24L261
Should be add Tor section in other PR?

Where is the Nginx reverse proxy section to access through the SSL connection?
https://github.com/raspibolt/raspibolt/pull/1257/files#diff-71518fc2f631644b3c17b9a9a9b3eb3fbfbf2214ba1eb102c4f108c15c701c24L261
Should we add the Tor section in other PR?

Added nginx section. For remote administration there's the official lightning terminal website that is connected to your node via LNC.

For remote administration there's the official lightning terminal website that is connected to your node via LNC.

Could be useful to mention steps to get this in a new little section called "Remote access"? in this same PR? or on a separate PR?

For remote administration there's the official lightning terminal website that is connected to your node via LNC.

Could be useful to mention steps to get this in a new little section called "Remote access"? in this same PR? or on a separate PR? wdyt?
https://terminal.lightning.engineering/connect/pair/

The steps required to connect the node to Terminal Lightning are described in chapter "How to connect": https://raspibolt.org/guide/bonus/lightning/lightning-terminal.html#how-to-connect


Error:Could not get unknown property 'assembleDebug' for project ':photofilterssdk' of type org.gradle.api.Project.

Same problem here.

Hello Guys,
I resolved that issue by following steps. Hope will be helpfull for others.
Step 1: To find the line, put your project in "Project" mod in Android Studio
Step 2: Right click on the Root folder, find in path, type "assembleDebug". It is in the quality.gradle for me
Step 3: Replace assembleDebug with "assembleDebug" (Actually, we just need to put double quotes to assembleDebug keyword because of gradle version 2.2.0.) and rebuild the project.
Enjoy.
Sachin.

Great, Thanks Sachin, marking this as closed for now.


pylance import

 Environment data

Language Server version: 2021.5.3
OS and version: darwin x64
Python version (and distribution if applicable, e.g. Anaconda):
python.analysis.indexing: undefined
python.analysis.typeCheckingMode: off

 Expected behaviour
XXX
 Actual behaviour
XXX
 Logs

Python Language Server Log
XXX 'Please paste the output from your clipboard'

 Code Snippet / Additional information

XXX

You haven't filled out the template, so I'm going to close this. If you can provide the info requested in our template, I can reopen this to take a look, but as it is now, there's nothing actionable.


Event Type information would be great

This is a really nice overview of events associated with ipsec. It would be great, if the event type (like success or failure) information would be added to the event ids.
Best Regards

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

ID: 2c4bff2b-72b1-930d-565d-48404424baf5
Version Independent ID: a1b1eddb-96e4-f212-b6f5-cdf13a05753e
Content: Audit IPsec Quick Mode (Windows 10)
Content Source: windows/security/threat-protection/auditing/audit-ipsec-quick-mode.md
Product: w10
GitHub Login: @Mir0sh
Microsoft Alias: justinha

@Jonathan0Doe Thanks for the suggestion. I added S and F to IPSec events


rpc: Include interest-bearing configuration for UI amount calculation

Problem
The token UI  amount reported by RPC does not include any consideration for the interest-bearing extension from token-2022, which means that the UI amount is incorrect when compared with amount_to_ui_amount from the token-2022 program.
Summary of Changes
Update all token parsing take into account any interest-bearing configuration on the mint.
This is best read through commit-by-commit.

first commit: updates the Option<u8> in AccountAdditionalData to an Option<SplTokenAdditionalData>. Essentially this plumbs through a new type, but does not use it anywhere yet, so this is mostly a refactor. Feel free to suggest a better name!
second commit: calculate the UI amount with interest
third commit: populate the interest bearing config in AccountAdditionalData
fourth commit: test RPC

There's a couple of lingering issues to be aware of:

the "supply" reported for mints currently doesn't take decimals into account, so with this PR there's no change to the reported supply. Would it be ok to fix this in a separate PR?
the instruction parsers in transaction-status don't have access to account data, which means we can't do the amount calculation. So with this PR the reported amounts are unchanged

Fixes #

Ah darn, I didn't realize parse_token was being used downstream. Are you ok with deprecating it and create a new version, like parse_token_with_additional_data?

Have you considered the implications for transactions and values in the past? Parsing the UI value of a transaction a month ago will show its current value not its value at that time.
Currently there's not even an effective way to evaluate the past value of an interest bearing token if the desired time is previous to the most recent rate change.

I've pushed two commits -- one which only updates parse_token -> parse_token_v2, and surprisingly passes downstream CI. and the second updates parse_account_data -> parse_account_data_v2.


Add ETP Token

官方公告(已更新)：
https://gz19468862.icoc.vc/nd.jsp?id=4#_np=106_400
团队背景：
ETP团队是一群不把利润最大化当作首要目标，且以社会公益事业为主要追求目标的社会组织，团队在哈撒丁大象基金会（Hutsadin Elephant Foundation）的帮助下开始呼吁全球人保护大象，爱护环境，并通过融合区块链的方式更好的让人们对大象和它们赖以生存的环境引起更多的重视。
ETP team is a group of maximizing profit not as a primary goal, and the social public welfare undertakings as the main goal of social organization, team in Sardinia Elephant Foundation (Hutsadin Elephant Foundation), with the help of began calling for people to protect elephants in the world, take good care of the environment, and through the way of integration block chain better on environment to the survival of elephants, and they cause more attention.
项目基本情况：
ETP（elephant token pro）是由哈撒丁大象基金会（Hutsadin Elephant Foundation）发行的一款具有公益性质的token, 目的是为了通过区块链呼吁人们为大象的救援提供更多的公益性保护活动，目前将以免费的形式发放ETP，引起更多的人去关注大象，爱护环境。
ETP (elephant token pro) is a token of public welfare issued by Hutsadin elephant Foundation. The purpose of ETP is to appeal people to provide more public welfare protection activities for elephant rescue through block chain. At present, ETP will be distributed in the form of free so as to attract more people to pay attention to elephants and care for the environment.
官网: https://gz19468862.icoc.vc/
转账所需 Gas Limit（对 ERC-20 项目方）：60000

json中官网无法访问


QAGenerationChain.run often ends in JSONDecodeError

The QAGenerationChain as it is currently written is prone to a JSONDecodeError, as mentioned in https://github.com/langchain-ai/langchain/pull/9503. That was my naive attempt to fix the problem I was having, but as I explained in closing the PR, I think a PydanticOutputParser with a more instructive prompt or an auto-fixing parser would be more robust. Plus, I think the successful runs after implementing my fix were just luck. 🤣
In QAGenerationChain._call, after generation, json.loads frequently raises a JSONDecodeError. This is usually because the response is wrapped in Markdown code tags or prefaced with a message, as seen in the following traces:

ChatOpenAI gpt-3.5-turbo: successful trace
ChatOpenAI gpt-4: JSONDecodeError due to Markdown formatting
ChatAnthropic Claude 2: JSONDecodeError due to message before the JSON + Markdown formatting
ChatAnyscale llama 2 70b: successful trace
ChatAnyscale llama 2 70b: JSONDecodeError due to message before the JSON + Markdown formatting

Each of these models had a mix of successful and failed runs. I probably should have lowered the temperature and tried non-chat models as well.

I would like to help however I could on this, I just want to be sure my fix aligns with the greater vision for this chain since it seems particularly useful. :)
System Info
Version info from LangSmith:
RUNTIME
langchain_version: "0.0.268"
library: "langchain"
library_version: "0.0.268"
platform: "Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.36"
runtime: "python"
runtime_version: "3.11.4"
sdk_version: "0.0.25"

Who can help?
No response
Information

[X] The official example notebooks/scripts
[X] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[X] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[X] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
from langchain.chains import QAGenerationChain

# tested with gpt-3.5-turbo, gpt-4, claude 2, and llama 2 70b

qagen = QAGenerationChain.from_llm(llm=llm)

question = qagen.run(docs[0].page_content)

# JSONDecodeError (sometimes)

The error is inconsistent, as seen in the screenshot above. This is for reasons we're all familiar with: perhaps the output is wrapped in Markdown code formatting with triple-backticks, maybe it's prefaced with a "sure, here's your JSON", etc.
Relevant examples from LangSmith:

ChatOpenAI gpt-3.5-turbo: successful trace
ChatOpenAI gpt-4: JSONDecodeError due to Markdown formatting
ChatAnthropic Claude 2: JSONDecodeError due to message before the JSON + Markdown formatting
ChatAnyscale llama 2 70b: successful trace
ChatAnyscale llama 2 70b: JSONDecodeError due to message before the JSON + Markdown formatting

Expected behavior
QAGenerationChain.run should return its expected output with no JSONDecodeError. I realize there's only so much we can do for the chain's default settings, and an LLM call can be inherently predictable, but some parsing and error handling would be nice. :)

🤖

Hi there,
Thank you for bringing this issue to our attention and for your detailed report. It seems like you're encountering a JSONDecodeError when the output from the language model is wrapped in Markdown code tags or prefaced with a message. This is indeed a known issue and we've had a similar problem reported in the past (issue #8357).
The solution to that issue was to modify the regular expression used for parsing the JSON output to be greedy, which helped in cases where the output was wrapped in Markdown code blocks. However, it seems like this solution might not be sufficient for your case, especially when the output is prefaced with a message.
One way to handle this could be to modify the _call method in the QAGenerationChain class to use the parse_json_markdown function from the json.py file in the output_parsers directory. This function is designed to parse a JSON string from a Markdown string. Here's how you can modify the _call method:
from langchain.output_parsers.json import parse_json_markdown

def _call(
    self,
    inputs: Dict[str, Any],
    run_manager: Optional[CallbackManagerForChainRun] = None,
) -> Dict[str, List]:
    docs = self.text_splitter.create_documents([inputs[self.input_key]])
    results = self.llm_chain.generate(
        [{"text": d.page_content} for d in docs], run_manager=run_manager
    )
    qa = []
    for res in results.generations:
        try:
            qa.append(parse_json_markdown(res[0].text))
        except JSONDecodeError:
            # Handle the exception here, for example, by skipping this item
            pass
    return {self.output_key: qa}

In this modified version of the _call method, if parse_json_markdown(res[0].text) raises a JSONDecodeError, the exception is caught and the current item is skipped. This should prevent the JSONDecodeError from stopping the execution of the program. However, you might want to add some additional handling for this case, such as logging the error or the problematic text.
Please note that this is a workaround and might not be the best solution. We're always open to contributions and if you have a better solution, feel free to open a pull request. We appreciate your help in improving LangChain!
Let me know if this helps or if you have any other questions.
Sources

LLM output parsing error for answers including code sections.
libs/langchain/langchain/chains/qa_generation/base.py
libs/langchain/langchain/output_parsers/json.py

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.

I do not dislike this approach, but shouldn't that kind of logic be placed in the relevant output parser instead of in _call?

In my fork, I've edited prompt.py: https://github.com/joshuasundance-swca/langchain/blob/4817f46388e9ed46b136d003c185eeb5ea832846/libs/langchain/langchain/chains/qa_generation/prompt.py
and base.py: https://github.com/joshuasundance-swca/langchain/blob/4817f46388e9ed46b136d003c185eeb5ea832846/libs/langchain/langchain/chains/qa_generation/base.py
But I think it may be too tightly coupled and/or not structured in a way that aligns with the rest of the repo.
Here's what a chain run currently looks like:
https://smith.langchain.com/public/33b4f72d-212b-476d-a45d-16b737ea47a6/r
# ...

qagen = QAGenerationChain.from_llm(llm=chat, k=3)  # also implements `k`

chain_output = [
    qagen.run(pages[p].page_content)
    for p in (1, 5, 11)
]

chain_output

[[QuestionAnswerPairList(QuestionAnswerPairs=[QuestionAnswerPair(question='What are rivers critical sources of for animals?', answer='food, water, shelter, and other necessary resources'), QuestionAnswerPair(question='What is the focus of this study?', answer='population structure and social organization in birds of the Southwestern desert riparian woodland'), QuestionAnswerPair(question='What is the objective of this study?', answer='to determine the relationship between vegetation structure of the habitats and population structure of the avian communities')])],
 [QuestionAnswerPairList(QuestionAnswerPairs=[QuestionAnswerPair(question='What is the main drainage of the Verde Valley?', answer='The main drainage of the Verde Valley is the Verde River.'), QuestionAnswerPair(question='What are the tree species found in the mixed deciduous areas?', answer='The tree species found in the mixed deciduous areas include Arizona sycamore, cottonwood, Arizona ash, Arizona cypress, junipers, net-leaf hackberry, Arizona walnut, and Arizona alder.'), QuestionAnswerPair(question='Which study area had the highest tree density per hectare?', answer='Study area M3 had the highest tree density per hectare.')])],
 [QuestionAnswerPairList(QuestionAnswerPairs=[QuestionAnswerPair(question='What are the weight classes of birds mentioned in the text?', answer='The weight classes mentioned in the text are 35-40 g, 45-50 g, 75-80 g, and 130-135 g.'), QuestionAnswerPair(question="What percentage of species and pairs exhibited 'class A' territories on the homogeneous cottonwood areas?", answer="Only 36% of the species and 22% of the pairs exhibited 'class A' territories on the homogeneous cottonwood areas."), QuestionAnswerPair(question='What is the relationship between colonial nesting and proximity to food supplies?', answer='Lack (1968) found that colonial nesting is closely linked to proximity to adequate food supplies.')])]]

@joshuasundance-swca
Thanks for sharing this. I was having a similar issue when using GPT-4.
I've updated the prompt adding the following:
"Do not provide additional commentary and do not wrap your response in Markdown formatting. Return RAW, VALID JSON."
And it worked.


Documentation: Clarify Keymap

At the current state of the documentation it is unclear what strings to specify to address specific keys. Does this follow the same standard as xmodmap, how to specify only one key (e.g. w) to toggle.

@tionis The documentation is not mature yet, I'm working on adding the KeyMap as well. I plan to keep this really simple and easy for the users, they should be able to toggle a key with many keycodes, for example: "enter", "return", "next"...etc should be considered as "enter". This makes it easy for users to write programs as they won't have to refer to the docs for getting the exact keycode.

The keymap is added to the docs.


Fixing really bad issue with -it arg...

Short Description: Fixing really ugly issues and some minor mistakes/typos
Fixes:

Changing default max_steps to 5
Fixed documentation where necessary
Re-adding pokeball count back to output

Let me read code here.

Of course.  Please do. :)  It's mostly fixing typos and re-adding some previously overwritten changes.


Tutorial prominently mentions weight decay, but does not implement it

This heading in optax-101.ipynb is misleading since weight decay is not actually used anywhere in the example AFAICT.

I think the "weight decay" here is referring to the use of adamw:
https://optax.readthedocs.io/en/latest/api.html#adamw
instead of adam
Perhaps it's a bit subtle indeed though! - Would you prefer to see an explicit example of adding a weight decay term in the chain, or would it be enough to highlight this more?

Ahhh I see. I was looking for something like
tx = optax.chain(optax.add_decayed_weights(5e-4), optax.sgd(lr_schedule, momentum=0.9))

Perhaps it's a bit subtle indeed though! - Would you prefer to see an explicit example of adding a weight decay term in the chain, or would it be enough to highlight this more?

Personally speaking I like the idea of making it explicit, if for no other reason than that it lets you showcase another feature of optax, opted.chain.

Hi,
is there something similar to the example of @samuela in optax, as I need to use weight decay together with SGD?
Perhaps using the optax.chain style as mentioned above?
In Pytorch there is a parameter to add weight decay to SGD and I am currently looking for something similar.
Thanks in advance.


tests: Update posix common test for Xtensa

Updates the posix common test so that it will pass on Xtensa SMP boards such as intel_adsp_ace15_mtpm. This involves ensuring that a newly created thread does not attempt access/modify the stack of a thread that is currently running on a different CPU.

What is going on with twister-build (5) failing?

What is going on with twister-build (5) failing?

Not sure sometimes they seem to get canceled out of the blue. I re-ran that one


Allow config so that a right-click paste emits a ctrl+v (or other user defined key sequence) instead

Description of the new feature/enhancement
Per https://github.com/PowerShell/PSReadLine/issues/579 PSReadLine (which handles the interactive experience for PowerShell) cannot tell that the text is typed or pasted and can only treat it as typed.  So newlines gets the input executed which can fail if the content is a multi-line script, for example:
if ($true -eq $false)
{
  'true'
}
else
{
  'false'
}

In this case, PowerShell will accept the individual lines for the if clause, but since else is optional, will execute the if part and then treats else as a command which fails.  However, PSReadLine can handle pasting from the clipboard as it knows the entire content of the clipboard rather than seeing it character by character.
So instead of having Ctrl+v or Ctrl+Shift+v bound to terminal paste, let the shell handle it, but have the terminal emit a ctrl+v (or whatever user binding has been defined) on right-click of the mouse.

Wouldn't bracketed paste mode help with this? Because that would improve the experience across all terminals (at least those that support the mode, but that probably includes most modern terminals).

Okay so this sounds like a part of #1553 to me, allowing a user to bind right mouse to a sendInput("^V") action.
Actually now after reading @j4james comment, yea I think bracketed paste would be more general purpose here. That would work regardless of how the text was pasted. Think also of the future world where there's an (optional) right-click context menu in the Terminal, that lets the user paste from that menu. That would also have to be rebound, should the user want to do that.
I'll leave this open, but this really feels like a dup of https://github.com/PowerShell/PSReadLine/issues/1471#issuecomment-779403823 to me.


Integration and validation tests with b=0 only

Two low-hanging fruit tests using only a b=0:

Validation:

[x] Unit tests of the TrivialB0Model implementation
[ ] Unit tests of ANTs' config for b=0.

Integration:

[ ] Introduce a series of transforms (e.g., copy them from another dataset) and resample the b=0 through that motion series. Then run the whole estimator and check the proximity of the estimated transforms.

Okay, I've tried to set up some basics, and implemented a unit-test for the TrivialB0Model sketching what we intend to do here:
https://github.com/nipreps/eddymotion/blob/152e0d4aeb6917965ed1821ea1507fb68630fa3b/eddymotion/tests/test_model.py#L29-L42

Unit tests of ANTs' config for b=0.

I see this implemented in test_estimator.py. To do so:

[ ] Upload an example B0 map (3D)
[ ] Apply random (and small) rotations and translations on the image. These can be generated with nibabel.eulerangles.euler2mat (e.g., https://github.com/poldracklab/nitransforms/blob/master/nitransforms/tests/test_linear.py#L107). For the resampling, I would use nitransforms.linear.Affine.resample().
[ ] Run the registration interface loading the parameters from config
[ ] Check that the error of the affine is below some threshold when transforming points scattered across the volume.

Introduce a series of transforms (e.g., copy them from another dataset) and resample the b=0 through that motion series. Then run the whole estimator and check the proximity of the estimated transforms.

I see this implemented in test_integration.py. To do so:

[ ] Upload an example B0 map (3D) - or reuse from the previous test
[ ] Generate a series of moved B0's with the realignment matrices from another, real dataset.
[ ] Initiate the TrivialB0Model with this B0 map and feed the dwi object with the moved data (simulate perhaps several transforms).

Hi there! I've uploaded some data under https://github.com/nipreps/eddymotion/tree/main/eddymotion/tests/data, generated by @dPys with FiberFox.

@oesteban I am progressing! For now, I managed to:

extract the b0 volume from the sub-01_dwi.nii.gz provided by Céline.
run AFNI 3dvolreg on the fmri of the first run, first subject of ds000005 (240 time frames) on openneuro with the middle frame as reference. This gives me a text file where one line corresponds to the motion parameters for one time frame.
make 20 copies of the b0 where I applied the motion parameters from the last 20 frames (with nitransforms), saved in temporary niftis.
save a unique 4D nifti image that concatenate the original and the moving b0s

I haven't opened a PR yet but here is a quick preview of the motion introduced

What do think?

This looks so awesome.


No scenery available for download

Describe the bug
I downloaded and opened AutoOrtho, configured everything on setup, clicked save, and switcht to the scenery tab, which is empty.
To Reproduce
Steps to reproduce the behavior:

Download AutoOrtho 0.7.0
Configure everything on setup, scenery dir <install_folder>/X-Plane 12/Custom Scenery, X-Plane Install dir <install_folder>/X-Plane 12/, Map Type Override to "BI"
Press save and switch to Scenery tab

Expected behavior
I see default scenery to download
Screenshots

(please complete the following information):

OS: Fedora 38
XPlane Version: Steam - XP12 12.07
AutoOrtho Version: 0.7.0
Filesystem type: ext4

Console log:
Config file found /home/rinma/.autoortho reading...
Found sceneries: []
[]
Saving config ...
Wrote config file: /home/rinma/.autoortho
INFO:__main__:Setup logs: /home/rinma/.autoortho-data/logs, log level: 20
INFO:autoortho:AutoOrtho version: 0.7.0
INFO:aostats:Creating stats object
INFO:flighttrack:Start flighttracker...
INFO:aostats:Starting stats thread
WARNING:werkzeug:WebSocket transport not available. Install simple-websocket for improved performance.
INFO:autoortho:Running CFG UI
 * Serving Flask app 'flighttrack'
 * Debug mode: off
INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (<IP_ADDRESS>)
 * Running on http://<IP_ADDRESS>:5000
 * Running on http://<IP_ADDRESS>:5000
INFO:werkzeug:Press CTRL+C to quit
Transparent color not supported on this platform (windows only)
INFO:downloader:Looking for available regions ...
INFO:downloader:Check for updates ...
WARNING:downloader:Couldn't update release info <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>.
INFO:downloader:Using scenery dir /mnt/08FE24B30A13BD6B/steamapps/common/X-Plane 12/Custom Scenery
INFO:aostats:STATS: ID: {}
INFO:aostats:STATS: ID: {}
INFO:aostats:STATS: ID: {}
INFO:aostats:STATS: ID: {}
INFO:aostats:STATS: ID: {}
INFO:aostats:STATS: ID: {}

I cloned the repo and started it locally with the main branch from my IDE, it works like expected.
Console output
Config file found /home/rinma/.autoortho reading...
Found sceneries: []
[]
Saving config ...
Wrote config file: /home/rinma/.autoortho
INFO:__main__:Setup logs: /home/rinma/.autoortho-data/logs, log level: 20
INFO:autoortho:AutoOrtho version: unknown
INFO:aostats:Creating stats object
INFO:flighttrack:Start flighttracker...
INFO:aostats:Starting stats thread
INFO:autoortho:Running CFG UI
Transparent color not supported on this platform (windows only)
INFO:downloader:Looking for available regions ...
INFO:downloader:Check for updates ...
INFO:downloader:Using scenery dir /mnt/08FE24B30A13BD6B/steamapps/common/X-Plane 12/Custom Scenery
INFO:downloader:Checking installed releases for na
INFO:downloader:Checking installed releases for sa
INFO:downloader:Checking installed releases for eur
INFO:downloader:Checking installed releases for afr
INFO:downloader:Checking installed releases for asi
INFO:downloader:Checking installed releases for aus_pac
INFO:downloader:Begin parsing info_dict for na
INFO:downloader:Begin parsing info_dict for sa
INFO:downloader:Begin parsing info_dict for eur
INFO:downloader:Begin parsing info_dict for afr
INFO:downloader:Begin parsing info_dict for asi
INFO:downloader:Begin parsing info_dict for aus_pac
INFO:aostats:STATS: ID: {}
INFO:aostats:STATS: ID: {}

Hey, I also have this issue. What file did you end up running?

Huh, turns out this is covered in the documentation FAQ:

When using the binary release on Linux I get an 'SSL: CERTIFICATE_VERIFY_FAILED' error
You may need to specify the SSL_CERT_DIR your particular operating system uses. For example:
SSL_CERT_DIR=/etc/ssl/certs ./autoortho_lin.bin

Setting the SSL_CERT_DIR helped. Thanks :smile:


feat: Add semantic release

Demo repo: https://github.com/ErikQQY/qqy-js-sdk
Demo release npm package: https://www.npmjs.com/package/qqy-js-sdk
Signed-off-by: ErikQQY<EMAIL_ADDRESS>

After I install the demo package using npm, the package is working fine


chore: Configure semantic-release

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


How to render novel views that deviate from the training path?

Hi, your paper mentions that local-nerf can render a novel view image that deviates from the original path, I want to ask how can I achieve the synthesis of the novel view image?
Thank you!!

Hi,
Added --render_from_file argument to load camera poses and render from them.
It follows NeRF synthetic's format, but only uses transform_matrix. Rendered images and videos should be written to ${LOG_DIR}/<render_from_file file basename>/.
Once the model is optimized, you can render with poses from ${POSE_FILE} using:
python localTensoRF/train.py --datadir ${SCENE_DIR} --logdir ${LOG_DIR} --render_only 1 --render_test 0 --render_path 0 --render_from_file ${POSE_FILE}

Thank you very much for your answer!
I have tried to render image after rotating the camera poses  60 degrees based on the original path（Left-multiply a rotation matrix  by the R matrix in transform_matrix).
As shown in the figure below, the left image is rendered according to the original path, and the right image is rendered by rotating the camera by 60 degrees around the y-axis

The rendered image on the right looks as if it has a large distortion.  Do you know how to fix it?
thank you !

I would like to check on my end. Is this the first spline pose rotated 60° to the right?

It is the fifth spline pose.
The changes I made in train.py are shown in the following image, and the rendered images suffer from large distortion. please let me know if I'm going about this the wrong way.

Hi,
Using 0:2 does not get all vectors of the rotation matrix.
To rotate all views, you should use something like:
        c2ws[..., :3, :3] = torch.matmul(ro_M, c2ws[..., :3, :3])

Hi! It worked! Thank you very much for helping me solve this problem!!
But I found another problem, when i rotated the camera pose, the occlusion relationship between objects with different depths doesn't seem to change. It looks more like that all the objects seem to have just undergone an equal translation.
As shown in the pic, the right is the result after rotation.

Hi,
With rotation only and the camera location unchanged, we should not observe parallax.

Did I understand your question correctly?

I understand !! Thank you very very much !!

python localTensoRF/train.py --datadir ${SCENE_DIR} --logdir ${LOG_DIR} --render_only 1 --render_test 0 --render_path 0 --render_from_file ${POSE_FILE} The result is jpg is it? I want a mesh or obj file as a result. How can I get that result?

We do not provide a way to export a mesh.


[REQ][python] get user's mypy check passing with warn_redundant_casts turned on

Is your feature request related to a problem? Please describe.
I tried to run mypy on code generated by this project and got around 30 errors. The same happens when running mypy on the provided samples. There was an issue about that one year ago #1, is this a regression ?
Some errors I get on my project :
nethsm/client/components/schema/provision_request_data.py:76: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:83: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/paths/keys_generate/post/responses/response_201/__init__.py:19: error: Attributes without a default cannot follow attributes with one  [misc]
nethsm/client/paths/keys/post/responses/response_201/__init__.py:19: error: Attributes without a default cannot follow attributes with one  [misc]
nethsm/client/components/schema/public_key.py:78: error: Incompatible types in assignment (expression has type "str", variable has type "Union[Mapping[str, Union[dict[Any, Any], immutabledict[Any, Any], Mapping[str, object], list[Any], tuple[Any, ...], float, int, str, date, datetime, UUID, bool, None, bytes, io.FileIO, BufferedReader, nethsm.client.schemas.schema.FileIO]], KeyPublicDataDict, Unset]")  [assignment]

Describe the solution you'd like
That the generated code doesn't emit any type error with mypy.
Describe alternatives you've considered
I disabled type checking for the folder containing the generated code in my pyproject.toml :
[[tool.mypy.overrides]]
module = "nethsm.client.*"
ignore_errors = true

Can you please provide your spec and the 30 errors? Mypy is successfully passing on the petstore sample in CI.

What are the 30 errors you get on your project? I only get 6:
python3 -m venv venv
source venv/bin/activate
python -m pip install .
pip install mypy
# I passed in --additional-properties packageName=some_api
mypy src/some_api

-->
src/some_api/paths/keys_generate/post/responses/response_201/__init__.py:19: error: Attributes without a default cannot follow attributes with one  [misc]
src/some_api/paths/keys/post/responses/response_201/__init__.py:19: error: Attributes without a default cannot follow attributes with one  [misc]
src/some_api/components/schema/public_key.py:78: error: Incompatible types in assignment (expression has type "str", variable has type "Union[Mapping[str, Union[Dict[Any, Any], immutabledict[Any, Any], Mapping[str, object], List[Any], Tuple[Any, ...], float, int, str, date, datetime, UUID, bool, None, bytes, io.FileIO, BufferedReader, some_api.schemas.schema.FileIO]], KeyPublicDataDict, Unset]")  [assignment]
src/some_api/components/schema/public_key.py:83: error: Invalid index type "Union[Mapping[str, Union[Dict[Any, Any], immutabledict[Any, Any], Mapping[str, object], List[Any], Tuple[Any, ...], float, int, str, date, datetime, UUID, bool, None, bytes, io.FileIO, BufferedReader, some_api.schemas.schema.FileIO]], KeyPublicDataDict, Unset]" for "Dict[str, Any]"; expected type "str"  [index]
src/some_api/components/schema/private_key.py:73: error: Incompatible types in assignment (expression has type "str", variable has type "Union[Mapping[str, Union[Dict[Any, Any], immutabledict[Any, Any], Mapping[str, object], List[Any], Tuple[Any, ...], float, int, str, date, datetime, UUID, bool, None, bytes, io.FileIO, BufferedReader, some_api.schemas.schema.FileIO]], KeyPrivateDataDict]")  [assignment]
src/some_api/components/schema/private_key.py:78: error: Invalid index type "Union[Mapping[str, Union[Dict[Any, Any], immutabledict[Any, Any], Mapping[str, object], List[Any], Tuple[Any, ...], float, int, str, date, datetime, UUID, bool, None, bytes, io.FileIO, BufferedReader, some_api.schemas.schema.FileIO]], KeyPrivateDataDict]" for "Dict[str, Any]"; expected type "str"  [index]
Found 6 errors in 4 files (checked 1004 source files)

@nponsard my merged PR should resolve this issue. Can you please verify that?
Local verification with your client passed. Petstore with added component response and schema with the same root causes as yours passsed mypy check in CI.

I still have some errors :
nethsm/client/servers/server_0.py:74: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/servers/server_0.py:81: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/time_config.py:59: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/system_update_data.py:56: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/random_request_data.py:67: error: Redundant cast to "int"  [redundant-cast]
nethsm/client/components/schema/network_config.py:66: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/network_config.py:73: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/network_config.py:80: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/info_data.py:61: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/info_data.py:68: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/distinguished_name.py:109: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/distinguished_name.py:119: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/distinguished_name.py:129: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/distinguished_name.py:139: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/distinguished_name.py:149: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/distinguished_name.py:159: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/distinguished_name.py:169: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/tls_key_generate_request_data.py:98: error: Redundant cast to "int"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:69: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:76: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:83: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/public_key.py:107: error: Redundant cast to "int"  [redundant-cast]

It's weird that you don't have these ones reported.

Please provide the steps to reproduce your output. My steps in the root of the generate client are:
python3 -m venv venv
source venv/bin/activate
python -m pip install .
pip install mypy
# I passed in --additional-properties packageName=some_api
mypy src/some_api

Here's what I've done
git clone git@github.com:Nitrokey/nethsm-sdk-py.git
cd nethsm-sdk-py
make init
source venv/bin/activate
mypy nethsm

This is happening because you have:
[tool.mypy]
warn_redundant_casts = true

turned on in your pyproject.toml

@nponsard I just merged in a commit that should eliminate your redundant casts issue. Can you verify it on your side? Locally it eliminated all redundant casts issues when mypy was run against the petstore client with warn_redundant_casts turned on.

@spacether Thanks for the fix!
To provide some context on why we set warn_redundant_casts:  nethsm-sdk-py was extracted from a bigger library, pynitrokey.  In this library, we wanted to enable some basic checks for legacy code and strict checks for new code.  Unfortunately, mypy’s strict option only works globally.  So we manually set the options for the new modules that strict would set, see https://github.com/Nitrokey/pynitrokey/pull/444.  warn_unused_configs and warn_redundant_casts are the only strict options that can only be set globally, not on a per-module level.
Ideally, the OpenAPI generated code would also pass strict checks, but passing warn_unused_configs and warn_redundant_casts would already be a big improvement because it would allow us to manually enable the strict lints for other modules.
Now back to this issue:  I’ve re-generated the code with the latest Docker image (sha256:efb6f7530bd2e6aaf1d6a6ece9a5bf0e045a47581e9e2d36a70eaf99195ead40).  I still get some redundant-cast errors for the generated code:
nethsm/client/components/schema/time_config.py:59: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/random_request_data.py:67: error: Redundant cast to "int"  [redundant-cast]
nethsm/client/components/schema/tls_key_generate_request_data.py:98: error: Redundant cast to "int"  [redundant-cast]                       nethsm/client/components/schema/provision_request_data.py:69: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:76: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:83: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/public_key.py:107: error: Redundant cast to "int"  [redundant-cast]

Unfortunately it looks like the changes cause a different problem.  Consider this snippet from nethsm/__init__.py:503-504:
response = self.get_api().users_get()
return [str(item["user"]) for item in response.body]

response is correctly typed as a client.paths.users.get.responses.response_200.ApiResponse.  But response.body is not typed as application_json_schema.user_list.UserListTuple but the generic Union[Unset, OUTPUT_BASE_TYPES] from api_response.ApiResponse.  I see this problem both with mypy 1.4.1 and mypy 1.6.  Did you run into similar problems?  Do you have an idea how to fix it?

I can't tell what the root cause is from the trace that you posted. Does your repo include the latest update? It does not look like it does. Can you please post a repo or branch that demonstrates the current problems that I can look at. I have not run into similar problems.

Based on the additional context that you provided, you are expected strict mode options to pass when running mypy. mypy strict mode checks are not yet working on the client. When one runs mypy with the default options, not the additional ones that you specify in toy toml file, it passed. Because of this, I am changing this to a feature request to get mypy passing with the warn_redundant_casts turned on.

I’ve created a draft PR with the updated client code that causes both the redundant-cast warnings and the response body issue: https://github.com/Nitrokey/nethsm-sdk-py/pull/42

Thanks, I am also working on this in: https://github.com/spacether/nethsm-sdk-py/pull/1 but I am running into issues where the ApiResponse.body types are not correctly seen by mypy. I am seeing errors like:
nethsm/__init__.py:722: error: Value of type "Union[Unset, OUTPUT_BASE_TYPES]" is not indexable  [index]
nethsm/__init__.py:722: error: No overload variant of "__getitem__" of "tuple" matches argument type "str"  [call-overload]
nethsm/__init__.py:722: note: Possible overload variants:
nethsm/__init__.py:722: note:     def __getitem__(self, SupportsIndex, /) -> OUTPUT_BASE_TYPES
nethsm/__init__.py:722: note:     def __getitem__(self, slice, /) -> tuple[OUTPUT_BASE_TYPES, ...]

I think this is the same problem that I mentioned here (in the last paragraph).  Here’s the full list of errors that I get with our setup: https://github.com/Nitrokey/nethsm-sdk-py/actions/runs/6499415750/job/17652723428?pr=42

So I just converted my ApiResponse classes back to dataclasses and removed default values in all except apiresponsewithout deserialization. The I rebuilt your client with it here:
https://github.com/spacether/nethsm-sdk-py/pull/1
In it, mypy runs without issue:
justinblack@Justins-MacBook-Air nethsm-sdk-py % venv/bin/python3 -m mypy nethsm/
Success: no issues found in 1092 source files

Please verify that my new code solves your mypy issues. I have not been able to replicate your lingering casting issues.

I’ve updated the draft PR https://github.com/Nitrokey/nethsm-sdk-py/pull/42 using https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/pull/252/commits/d2d1d8b00011476d684498472f2f53f96d2935d9.  The request body issues are now fixed, but I still get the redundant cast warnings:
nethsm/client/components/schema/time_config.py:59: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/random_request_data.py:67: error: Redundant cast to "int"  [redundant-cast]
nethsm/client/components/schema/tls_key_generate_request_data.py:98: error: Redundant cast to "int"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:69: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:76: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:83: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/public_key.py:107: error: Redundant cast to "int"  [redundant-cast]

I’m using Python 3.9.2 and mypy 1.6.0.  It also fails in the CI, so it is not limited to my environment: https://github.com/Nitrokey/nethsm-sdk-py/actions/runs/6507023981/job/17673671662.  And it also happens with Python 3.10.13: https://github.com/Nitrokey/nethsm-sdk-py/actions/runs/6507070669/job/17673794274  What mypy version do you use?

So I grabbed your branch and ran it locally. In it, I needed to pin to python 3.9 because my system default python is 3.8.
I did that in this branch: https://github.com/spacether/nethsm-sdk-py/tree/update-openapi_py39anchor
And when I ran it locally I got the redundant cast errors:
(venv) justinblack@Justins-MacBook-Air nethsm-sdk-py % mypy nethsm
nethsm/client/components/schema/time_config.py:59: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/random_request_data.py:67: error: Redundant cast to "int"  [redundant-cast]
nethsm/client/components/schema/tls_key_generate_request_data.py:98: error: Redundant cast to "int"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:69: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:76: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/provision_request_data.py:83: error: Redundant cast to "str"  [redundant-cast]
nethsm/client/components/schema/public_key.py:107: error: Redundant cast to "int"  [redundant-cast]
Found 7 errors in 5 files (checked 1092 source files)

My python is:
Python 3.9.18 (main, Aug 24 2023, 21:37:44)
[Clang 14.0.0 (clang-14<IP_ADDRESS>)] on darwin

Any my mypy is: 1.6.0
However your branch is anchored on my 3.1.0 release so it will always have that issue.
I am not understanding why my new branch is not generating the redundant casts issue:
https://github.com/spacether/nethsm-sdk-py/tree/feat_jblack_python_fix
mypy passes on it
(venv) justinblack@Justins-MacBook-Air nethsm-sdk-py % mypy nethsm
Success: no issues found in 1092 source files

Can you please please pull my branch feat_jblack_python_fix and run mypy in a new venv without regenerating the client? Do you still get the redundant casts issue?

For the https://github.com/Nitrokey/nethsm-sdk-py/pull/42 branch, I built the Docker image locally from Git (https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/commit/d2d1d8b00011476d684498472f2f53f96d2935d9) and re-generated the client code so it should be up to date and not from 3.1.0.
Your branch on https://github.com/spacether/nethsm-sdk-py/commit/ea8e8919d9308c26c8a84ff03b4b294067cfc94d still has ignore_errors = true for nethsm.client.* in pyproject.toml.  If I remove that, I only get one error:
nethsm/client/servers/server_0.py:132: error: Incompatible types in assignment (expression has type "VariablesDict", base class "ServerWithVariables" defined the type as "immutabledict[str, str]")  [assignment]

I’ve updated my https://github.com/Nitrokey/nethsm-sdk-py/pull/42  branch using https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/pull/252/commits/24c9e46c6064649c4138439aea9df6f321acd26e and I think all issues are fixed now. :tada:

Glad to hear it. I will add some tests to https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/pull/252 before I merge it in. Glad to hear that it solved your issues.
Note: if you want the object output classes type hints to only contain values from known properties, you must set additionalProperties to false, or a schema value. By default, unset additionalProperties allows any type in, which is why most object based classes will inherit from: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

@robin-nitrokey today I released v3.1.1 which includes the fixes needed by this issue. Please use it to resolve this warn_redundant_casts mypy issue. Thank you for reporting this issue and providing more info and context on the causes.

@spacether Great!  Thank you for working on this issue and for publishing the fix!  I’ve update my PR to use the released version.  https://github.com/Nitrokey/nethsm-sdk-py/pull/42

You're welcome 🙂

I’ve now enabled strict checks for our own code and it works nicely with the generated code. :)  Only one small issue remains:  ApiClient.close is untyped.  But I can just ignore that error.

Feel free to submit PRs to the generator to fix any issues that you find.


Optional tools not being displayed.

I'm trying to configure the sticker tool and the text tool into the menu, but I don't see them displayed. I exclude some tools and change the ordering of others and that seems to work. Is there anything else I need to do?
CLImageEditor *editor = [[CLImageEditor alloc] initWithImage:image];
CLImageToolInfo *text_tool = [editor.toolInfo subToolInfoWithToolName:@"CLTextTool" recursive:NO];
text_tool.available = YES;
CLImageToolInfo *sticker_tool = [editor.toolInfo subToolInfoWithToolName:@"CLStickerTool" recursive:NO];
sticker_tool.optionalInfo[@"stickerPath"] = @"stickers.bundle";
sticker_tool.available = YES;

How did you install this library? If cocoapods, you need to add following lines.
pod 'CLImageEditor/StickerTool'
pod 'CLImageEditor/TextTool'

No I did not. Thanks, that worked.

:+1:


Adds support for apps key in config file, throws if length is > 1

Current coverage is 91.42%

Merging #979 into master will not affect coverage as of bb04c79

@@            master    #979   diff @@
======================================
  Files           73      73
  Stmts         4384    4384
  Branches       876     876
  Methods          0       0
======================================
  Hit           4008    4008
  Partial         10      10
  Missed         366     366

Review entire Coverage Diff as of bb04c79

Powered by Codecov. Updated on successful CI builds.


feat(EditorialQuote): Port EditorialQuote from monolith

To be merged after rv-editorial-image
Create EditorialQuote used for Editorial layouts
Editorial Quote:
A pull quote for use in an editorial page.
Editorial Molecules?
These molecules are used to build editorial layouts, such as Articles, Listicles, or Learner Story pages.
Current Monolith Use example

Storybook example

Merging your changes
When you are ready to merge to master and publish your changes, use the "squash and merge" button in GitHub, and follow the PR Title Guide to format your PR title and write your PR merge description.
IMPORTANT: If your PR contains breaking changes, please remember to follow the instructions for breaking changes!

📬Published Alpha Packages<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://5ea98cff507922bd889f723d--codecademy-styleguide.netlify.appDeploy Logs

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.5 out of 6 committers have signed the CLA.:white_check_mark: rogervera:white_check_mark: jakemhiller:white_check_mark: borisonr:white_check_mark: codecaaron:white_check_mark: JoshuaKGoldberg:x: codecademy-devYou have signed the CLA already but the status is still pending? Let us recheck it.

📬Published Alpha Packages<EMAIL_ADDRESS>
📬Published Alpha Packages<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://5eac1398c03268d4065a4ea9--codecademy-styleguide.netlify.appDeploy Logs

📬Published Alpha Packages<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://5eb02658e0d614258c3ed589--codecademy-styleguide.netlify.appDeploy Logs


Build system fix for default CFStream

#17599 made corresponding build system changes to BUILD but not build.yaml. This PR fixes that problem.
Fixes #18787

Basic Tests Windows [opt] - #18637


Use google translation

Hi, I am total newbie with tika but I got the basics running properly.
I am curious to know how I could use this client to do a translation that use the Google translate API ?
thanks,
-seb

and fwiw, I cannot use the default translation with lingo42

I'll respond shortly sorry. You have to add your config file and custom start tika server with translation property file info

hey @sebgoa so this works fine.
Start the Tika server with Classpath pointing to your language keys
Use Tika-Python
LMC-053601:tika1.15 mattmann$ java -cp ./language-keys:tika-server/target/tika-server-1.15-SNAPSHOT.jar org.apache.tika.server.TikaServerCli
Mar 21, 2017 9:17:19 PM org.apache.tika.parser.image.ImageParser <clinit>
WARNING: JBIG2ImageReader not loaded. jbig2 files will be ignored
Mar 21, 2017 9:17:19 PM org.apache.tika.server.TikaServerCli main
INFO: Starting Apache Tika 1.15-SNAPSHOT server
Mar 21, 2017 9:17:20 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be http://localhost:9998/
Mar 21, 2017 9:17:20 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: jetty-8.y.z-SNAPSHOT
Mar 21, 2017 9:17:20 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: Started SelectChannelConnector@localhost:9998
Mar 21, 2017 9:17:20 PM org.apache.tika.server.TikaServerCli main
INFO: Started

here is the structure of language-keys:
$ tree language-keys
./language-keys
└── org
    └── apache
        └── tika
            └── language
                └── translate
                    ├── translator.google.properties
                    ├── translator.lingo24.properties
                    └── translator.microsoft.properties

5 directories, 3 files

Each of the properties files has your associated keys, e.g., as shown here:

translator.google.properties
translator.lingo24.properties
translator.microsoft.properties

$ python2.7
Python 2.7.11 (default, Apr 14 2016, 22:11:07)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from tika import translate
>>> translate.from_buffer('bonjour mon ami!', 'fr', 'en')
u'Hello, my friend!'
>>>

Thanks Chris for the detailed answer. FWIW we are packaging Tika as a Kubernetes Chart here:
https://github.com/bitnami/charts/tree/tika-server/incubator/tika-server

anytime @sebgoa thank you for packaging Tika! Really appreciate it.

@sebgoa added a link here: http://wiki.apache.org/tika/API Bindings for Tika


[WIP] Fix TypedPredictor formatting with list output values

Fixes #1567

Thank you so much @dbczumar ! This looks great to me. I realized I had made a mistake in discussing the if statement that decides between formatting options. I corrected my error in there and updated the comments to reflect this.
Here's the new snippet:
if dspy_field_type == "input" or field_info.annotation is str:
    # If the field is an input field or has no special type reqs, format as a numbered list
    # so it's organized in a way suitable for presenting long context, i.e. not JSON.
    return format_input_list_field_value(value)
else:
    # If the field is an output field that has strict parsing reqs, format the value as
    # a stringified JSON Array. This ensures that downstream routines can parse the
    # field value correctly using methods from the `ujson` or `json` packages.
    return json.dumps(value)

I would happily merge at this point but looks like we have plenty of failing tests. The tests failing are quite new (from #1595 cc @mikeedjones) so maybe we're learning something useful here about the changes that I missed in my review or about the tests.

Thank you so much @dbczumar ! This looks great to me. I realized I had made a mistake in discussing the if statement that decides between formatting options. I corrected my error in there and updated the comments to reflect this.
Here's the new snippet:
if dspy_field_type == "input" or field_info.annotation is str:
    # If the field is an input field or has no special type reqs, format as a numbered list
    # so it's organized in a way suitable for presenting long context, i.e. not JSON.
    return format_input_list_field_value(value)
else:
    # If the field is an output field that has strict parsing reqs, format the value as
    # a stringified JSON Array. This ensures that downstream routines can parse the
    # field value correctly using methods from the `ujson` or `json` packages.
    return json.dumps(value)

tl;dr All inputs can safely be formatted as numbered lists, since parsing is not a concern. Outputs with no parsing requirements (i.e., outputs that are specified as strings) also fall under that, i.e. format as numbered lists. Otherwise, we use JSON.

Thanks @okhat ! I've incorporated your edit :)

I would happily merge at this point but looks like we have plenty of failing tests. The tests failing are quite new (from #1595 cc @mikeedjones) so maybe we're learning something useful here about the changes that I missed in my review or about the tests.

I think the test issues are caused by a bug in my change to DummyLM, which should hopefully be fixed in my latest couple of commits. Fingers crossed! :D
Before merge, I'd like to introduce some test coverage to catch similar regressions in the future.


Uncaught TypeError: Cannot read property 'clientHeight' of null

Getting this when scrolling to the top most or bottom element on clientHeight evaluation:
key: "isElementAtBottom",
value: function isElementAtBottom(target) {
            var scrollThreshold = arguments.length <= 1 || arguments[1] === undefined ? 0.8 : arguments[1];
            var clientHeight = target === document.body || target === document.documentElement ? window.screen.availHeight : target.clientHeight;

Any idea why?

Can you give me a repro? A github repository or codesandbox link?

Can't reproduce in a new repo and can't catch the error when debugging. Build might be changing code

@ankeetmaini
Still getting this, when would the target be null here?
`  onScrollListener = (event: MouseEvent) => {
if (typeof this.props.onScroll === 'function') {
// Execute this callback in next tick so that it does not affect the
// functionality of the library.
setTimeout(() => this.props.onScroll && this.props.onScroll(event), 0);
}
const **target** =
  this.props.height || this._scrollableNode
    ? (event.target as HTMLElement)
    : document.documentElement.scrollTop
    ? document.documentElement
    : document.body;

// return immediately if the action has already been triggered,
// prevents multiple triggers.
if (this.actionTriggered) return;

const atBottom = this.isElementAtBottom(target, this.props.scrollThreshold);

// call the `next` function in the props to trigger the next data fetch
if (atBottom && this.props.hasMore) {
  this.actionTriggered = true;
  this.setState({ showLoader: true });
  this.props.next && this.props.next();
}

this.lastScrollTop = target.scrollTop;

};`

I have this error too when I want scroll bottom with a fixed height on InfiniteScroll props.


Model Aliases and Asset Browser

Model Aliases
Adds in "Model Aliases", which acts like as a name and tag reference for the various types of assets.

Supports a reference name and tags for Chr, Obj/AEG, Part and Map Piece assets.
Supports all of the gametypes that Paramdex supports.
Mod-specific names and tags are supported. These are loaded and saved within a mod local version of the ModelAlias folder.

Asset Browser
Added in a Map Editor version of the Asset Browser.

Both asset browsers now displays the referenced name and tags.
The Map Editor browser will update the currently selected entity to the chosen model, as well as updating the entity's name too.
Updating mod local names and tags can be done via a right-click context menu.

What are people's thoughts on this? Personally I'd like this to be added, and since the Model Aliases are a collaborative resource, it would be nice to have the feature implemented sooner rather than later. However, if there are objections, then I'd like to know them too.

I'm absolutely in favor of this sort of system, definitely something that would be very nice to have.


Remove lombok from edc tests

This PR is the first one of the story #150 lombok for the DR  #143 .
The main target of this pr is the edc-tests modules. In particular the edc-tests:cucumber one.
Linked Issue(s)
Closes #151

LGTM so far (haven't tested it)
One question. It seems we are using different formatter. Can we align on one? => Discussion for our daily

We aligned us already. Please have a look here: https://github.com/eclipse-tractusx/tractusx-edc/blob/develop/styleguide.md
PS: I will try to review this PR by end of the day 😉

@florianrusch-zf can we merge this?

I hadn't time to look into it. I would trust @wolf4ood @ndr-brt & @stephanbcbauer and our test pipeline and simply hit the merge button 🙈
@paullatzelsperger WDYT?


Run Operation based on the result of previous operation

Hi @sroze ,
I have a use case where I need to insert an element in a database based on a previous condition, for example :
I have an API endpoint that receives events from a website (GoogleAnalyticsTagManager events).
For the same page load I can receive multiple events with roughly the same data (for example I can receive events when the user is scrolling the page with additional data likes elements shown on his page area).
This endpoint will just dispatch the event data to RabbitMQ.
On the other side I have a RMQ worker, which will read and process the event messages. In the current scenario, I can have 5 or 6 messages in sequence that will represent actions on the same website page. I am only interested in inserting 1 click event in my database.
My current application checks whether the last clicked page id (in the database) is the same as the event data page id, if no, then I write the new click into the database. We are not using Tolerance right now but we are investigating it a lot for a data ingestion platform.
So, the current need is to only perform the ClickInsert operation only if the CheckLastVisitedPropertyIsNotSameAsCurrent operation returns true.
I'm aware Tolerance doesn't have such OperationRunners right now and I would like to know your advise about this need and your current vision of Tolerance's architecture about this need as we would definitely be happy to contribute back the created runners if you find them generic enough.
I see multiple ways of achieving it, one of them is based on other needs which would need another ticket on this topic.
Plan A)
This would basically be a kind of BufferedOperationRunner where operations have to be run in sequence, however you would be able to pass PreflightOperations that should all return true in order to run the normal Operations.
Plan B)
There could be a ChainedOperationRunner (actually your current ChainOperationRunner doesn't have the meaning I have in mind for chains) where every operation would have to return another Operation, something like :
$nextOperation = $this->operation;
do {
  $nextOperation = $nextOperation->run();
} while ($nextOperation instanceof Operation);

Do you have other ideas in mind ?
Thanks for your thoughts on this and thanks for making this library.

Closing as per the pull-request. Hope you were able to solve your problem @ikwattro :)


Simple streaming text sink with windowing

mvn exec:java -Dexec.mainClass=org.apache.beam.examples.WordCount -Dexec.args="--output=./streaming-output-0 --runner=DirectRunner"
It reads from unbounded counting source, groups inputs to one minute window, and writes each window to a file under ./streaming-output-0 .

Closing
I was trying to share this code, and shouldn't actually create this PR.


Decrease requested memory to a reasonable value

104 GB will work both on milou and bianca

Sounds like a good idea


Prepare for 0.9.0 release

Prepares versions for 0.9.0 release. Also removes the version number on the examples crate since it's a non-published crate, it doesn't need to be versioned

Replacing this with #395
Also, note sure why the whatsapp-kt-auditor test failed. Ran it locally:
[00:00:10] Loaded epochs between (1) and (47140), inclusively.
[00:00:11] Successfully downloaded proof for epoch 47140.
[00:02:20] Audit proof for epoch 47140 has verified successfully!

Maybe a temporary network issue?


Version conflicts for k2 & torchaudio & torch

Hi,
When I want to try rnn-t, I have to upgrade torchaudio to at least 0.10.0 for rnn-t loss. However k2 requires torch 1.8.1. When I upgrade torch to 1.10.0, and torchaudio to 0.10.0, I got this error.
>>> import torch
>>> import torchaudio
>>> import k2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/path/to/miniconda3/lib/python3.8/site-packages/k2/__init__.py", line 2, in <module>
    from _k2 import DeterminizeWeightPushingType
ImportError: /path/to/miniconda3/lib/python3.8/site-packages/libk2context.so: undefined symbol: _ZNK2at6Tensor7is_cudaEv

Can you share versions of packages in the environment?
Note: I also checked conda search and couldn't find corresponding k2 vesion for torch1.10.0.
...
k2                   1.11.dev20211209 cuda11.1_py3.7_torch1.8.0  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.7_torch1.8.1  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.7_torch1.9.0  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.7_torch1.9.1  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.8_torch1.8.0  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.8_torch1.8.1  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.8_torch1.9.0  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.8_torch1.9.1  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.9_torch1.8.0  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.9_torch1.8.1  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.9_torch1.9.0  k2-fsa
k2                   1.11.dev20211209 cuda11.1_py3.9_torch1.9.1  k2-fsa

As an alternative, please install k2 from source.
Will upload a version supporting torch 1.10 to conda later today or tomorrow.

Fangjun, my feeling is that eventually we can use our own RNN-T loss that Kangwei is working with; we could integrate that into k2 as it's faster than the torch one (except for very small inputs).  That will give more flexibility regarding torch versions.  But of course it's good to have the standard one there for now so we can verify they work the same.
@pkufool let's try to have our own RNN-T loss setup ready quite soon, e.g. the next few days.  I think in order to avoid too many things to compile, it might be easiest to just add the code to k2 rather than using the separate repository.

Ok, I will try to integrate our RNN-T loss to k2 in the following days.

When I tried to install k2 from source, It works. Thank you.

Please also have a look at https://github.com/k2-fsa/icefall/pull/162
It does not need torchaudio 0.10.0

Thank you.