Designs: Backcountry/PRDT inventory management

Description:
This ticket is to build out designs for backcountry inventory management. Note: designs will reflect additional offerings - broader than just backcountry.
Acceptance Criteria:

[ ] Designs are in figma and linked here

Development Checklist:

[ ] ...
[ ] ...
[ ] ...

Dependencies

Blocked by
Blocking

Relevant documentation as reference
Definition of Ready

[ ] Acceptance criteria are included
[ ] Wireframes are included (if applicable)
[ ] Design / Solution is accepted by Product Owner (if applicable)
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

Definition of Done

In progress:

[ ] Acceptance criteria are tested (Functionality meets the acceptance criteria defined in the ticket)
[ ] UI meets accessibility requirements
[ ] Unit tests are written
[ ] Work is traceable in GitHub
[ ] PR linked to ticket number
[ ] If needed/required - Dev adds flag/label to highlight any migration steps necessary prior to PROD deployment

Code review:

[ ] Code is peer reviewed and has passed CI/CD tests

QA:

[ ] Acceptance criteria are tested (Functionality meets the acceptance criteria defined in the ticket)
[ ] Code is potentially shippable to the production environment
[ ] Functional features have been tested and passed by QA
[ ] UI components tested by designer
[ ] Code is deployed to PROD when moved to 'done' column (unless requested otherwise by PO)

PO Review:

[ ] Acceptance criteria are tested (Functionality meets the acceptance criteria defined in the ticket)
[ ] Reviewed and approved by Product Owner

Notes:

@pavelcreates FYI on inventory management ticket

Pavel to continue when he is back from vacay. Adding to blocked

Pavel to split this - designs that are done can be part of the discovery.
Inventory management (selecting park and site and adding to cart) as part of this ticket.
New ticket for permit applications section.
Sending to Done; @pavelcreates  to create new ticket.

Thank you for all your work on these designs @pavelcreates ! Looking forward to the next stages :)


bug: Getting error :global(...) must contain a single selector

What version of daisyUI are you using?
v3.5.1
Describe your issue
So I was adding daisyUI to a svelte app (using rollup)
Tailwind was installed using postcss, it works fine but as soon as I add daisyUI plugin inside the tailwind.config the build fails.
[!] (plugin svelte) ValidationError: :global(...) must contain a single selector
src/App.svelte
1966:   border-radius: var(--rounded-btn, 0.5rem);
1967: }
1968:   :global(.table) :global(:where(th), :global(td)) {
                        ^
1969:   padding-left: 1rem;
1970:   padding-right: 1rem;
ValidationError: :global(...) must contain a single selector

I think it might be due to nesting of global in my app.svelte
<style global lang="postcss">
  @tailwind base;
  @tailwind components;
  @tailwind utilities;
</style>

I tried moving the @tailwind things to a separate .css file and importing it to app.svelte but tailwind stopped working this way (no errors were coming though)
What browsers are you seeing the problem on?
No response
Reproduction URL
No response

I tried moving the @tailwind things to a separate .css file and importing it to app.svelte but tailwind stopped working this way (no errors were coming though)

Make sure you are importing the CSS file in your .svelte file.
The example StackBlitz link of SvelteKit here can help you:
https://daisyui.com/docs/install/
Putting the whole Tailwind inside <style global lang="postcss"> is not recommend because it adds another layer of CSS processing which is unnecessary and it forces SvelteKit to add :global to the selectors for no reason.
Let me know if you have any questions


Composer satis report an error

Reading composer.json of league/climate (version-4-wip)                               Skipped branch version-4-wip, "5d91f515d5fc2fec53d26312535fd15539c3da5f:composer.json" does not contain valid JSON
Parse error on line 27:
...am": "^1.4"        "overtrue/phplint":
---------------------^
Expected one of: 'EOF', '}', ':', ',', ']'

HI @jmt33, that's not a problem, the branch is a work in progress and is not expected to be fully functioning, or even installable in this case. Satis is just warning you that it couldn't load that branch


Duplicate Targetframework attribute

Not sure if this is an issue of the template or of dotnet.
Error description
I'm trying to run the application under Ubuntu 16.04 and am getting the following error when building the application the second time. I tried deleting the obj and bin folders, but the error persists.
When building and running the first time all works fine. The error doesn't occur on windows at all only on ubuntu.
/tmp/.NETCoreApp,Version=v2.0.AssemblyAttributes.cs(4,12): error CS0579: `Duplicate attribute "global::System.Runtime.Versioning.TargetFrameworkAttribute". [/var/www/test2/test2.csproj]

Steps to reproduce

dotnet new vuejs
dotnet restore
npm install
npm run install
dotnet run
dotnet run (second time)

Environment
Running dotnet --info:
.NET-Befehlszeilentools (2.1.4)

Product Information:
 Version:            2.1.4
 Commit SHA-1 hash:  5e8add2190

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64
 Base Path:   /usr/share/dotnet/sdk/2.1.4/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.5
  Build    : 17373eb129b3b05aa18ece963f8795d65ef8ea54

Can you give it a shot with the latest published dotnet template (1.0.2)
dotnet new -i aspnetcore-vuejs (should be 1.0.2 now), this one has dotnet 2.1x SDK, that might be what's causing the issue!


update typescript

Adding a language

[X] The code displays "Hello World"
[ ] I have updated the readme to include the new language
[ ] I have incremented the language count in the readme
[ ] I have no association with the language
[X] There are no copyright issues with this code
[X] The language has not been added prior to this pull request

Link to programming language:

Not really necessary


Scale down does not works

After changing of spec.size: 3 to spec.size: 1. Nothing happens and in logs I see multiple error related changing of size.
{"level":"info","ts":1594734771.368397,"logger":"reconciliation_handler","msg":"too many replicas","requestNamespace":"default","requestName":"dc1","loopID":"9d1dd86b-f276-4819-a51b-d0710a2744bc","reason":"ReconcileFailed","eventType":"Warning"}
{"level":"info","ts":1594734771.3684974,"logger":"reconciliation_handler","msg":"Reconcile loop completed","requestNamespace":"default","requestName":"dc1","loopID":"9d1dd86b-f276-4819-a51b-d0710a2744bc","duration":0.030700324}
{"level":"error","ts":1594734771.3685787,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"cassandradatacenter-controller","request":"default/dc1","error":"too many replicas","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.5.2/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.17.4/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/apimachinery@v0.17.4/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/go/pkg/mod/k8s.io/apimachinery@v0.17.4/pkg/util/wait/wait.go:88"}

Thank for you for the issue report. Our docs should call out that automated scaling down isn't supported / implemented, yet. (It is technically possible with some hackery using kubectl exec and management API requests or nodetool to do removenode / decommission.)
I also thought we had a bit of logic in our validating webhook to prevent lowering the size, so you'd get a friendly message that lowering the size isn't allowed, but this particular check is missing. We'll add it!

@jimdickinson Thanks for information


refmt removes punning when record field is prefixed by a module name

Reason 1.13.7:
$ echo 'fun {M.x, y} => x + y' | refmt
fun {M.x: x, y} => x + y;

Fixing


Various Fixes

Description
Multiple things have been fixed: Proper redirect when note that is currently viewed in StackView is stacked or deleted by another user, removed deprecated tooltip attribute and un-reversed reversed component sequence. Closes #2509
Changelog

When a user has a note open in stack view, and another user moves that note to another stack, the first user is redirected to the new stack and informed about it via toast. On Deletion, the user is redirected to the board.
The striped background of hidden columns now uses the accent color of the column, so that it is easier to differentiate between adjacent hidden columns
Some instances of the tooltip component used deprecated attributes. This has been fixed
The order of the column header and noteinput where reversed in jsx and using css flex-direction: column; un-reversed. This has been fixed as well
some comments to better explain the different useEffects in StackView

Checklist

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] The light- and dark-theme are both supported and tested
[x] The design was implemented and is responsive for all devices and screen sizes
[x] The application was tested in the most commonly used browsers (e.g. Chrome, Firefox, Safari)

I've noticed that the striped background using the accent color of hidden columns is quite hard to see for some colors (e.g. poker purple, lean lilac, planning pink). At first sight, I thought it was a bug that for some columns the background isn't stripped.

Also, since you've removed the spacer on the left and right sides, columns are now of different widths.

@brandstetterm plz have a l00k


docs: scaffolding with docusaurus

This scaffolds the initial site using docusaurus. And it includes GHA workflows to publish to GitHub Pages.

Thanks for the review @nunix.


$project_id is pre-set in /etc/profile.d/bosh.sh

https://github.com/cloudfoundry-incubator/bosh-google-cpi-release/blob/master/docs/bosh/main.tf#L170

@johnsonj I've rebased this to develop too


Firefox shows no blocks at all

ran from the gihub.io page

to add to this.. while running still firefox but from the complied version...

to note is that the same file on edge works as expected

Still happens... so i'm reopening

Please reopen.
Github doesn't allow me to open issues a collaborator has closed so you'll have to do it yourself
(and yes I pulled the newest branch to test)

Also now same effect replicable in the new Edge browser

So apparently the CORS policy (that a lot of browsers follow) disallows loading local files from the browser, which is why no image files show up in-game.
The way to get around this is to put 5bHTML into a web server, and then open the index.html file.
npm run watch will do this for you, but it will instead build a development version, which is basically just the production version without obfuscation.
I'll update the README about this soon.


Reduce the use of programs, default to p7zip on unix

As the title suggests, most operations can be done using the 7z command. Archiving as zip, or tar doesn't require those commands.
E.g.
# compress into tar
7z a -ttar test.tar test_1.toml test_2.toml ...

# compress into zip
7z a -ttar test.zip test_1.toml test_2.toml ...

Let me know if there's a specific reason, or cons to this approach. Otherwise I'm happy to contribute a PR.

I think the code can be simplified using this approach. Features such as password-protected archives will be easier to implement, though at the expense of creating an additional dependency for Unix users. If possible, consider keeping the initial Unix options as a backup for those who do not have p7zip installed. We can fully deprecate them at a later stage. Thanks.


Error occured while copying node

After recording the business flow using the Correlation Recorder plugin, when we cut the any recorded element, JMeter is throwing below error.
Version: JMeter 5.3

Hello,
Thanks for reaching out! I apologize for the trouble you are having while using Correlation Recorder.
We have already added your issue to our backlog in order to be included in our next release.
In the meantime, I would suggest deleting the one you want to cut and then create a new one.
Remember that if you have any rules added in the Correlation Recorder element, it is possible by clicking the save button to create a template, then you have access to that template whenever you want from all Correlation Recorder elements.
Best regards

Thanks @Baraujo25 for the update.

Hello, @QAInsights
Hope you are doing amazing!
Recently we released a new version of the plugin that handles the issue of copy/cutting/pasting elements within the Test Plan when the Correlation Recorder is loaded on it.
Could you give it a try and see if this fixed the issue you were having?
Hope to hear from you soon,

Hello @QAInsights ,
Just like other issues that were fixed on our last release, I'll be closing this issue due to a lack of activity.
Feel free to reopen it if you see the problem persist,
Have a nice day


[1Password] Exclude Vaults

Extension
https://www.raycast.com/khasbilegt/1password
Description
Hi, would it be possible to include/exclude the vaults that should show up in the search? Now it searches all my 6 vaults, and they are both private and work vaults so it would be super to be able to choose which vaults it should search.
Who will benefit from this feature?
All using multiple vaults.
Anything else?
Adding snapshots from how the Alfred workflow solves this

duplicate of #4744
@raycastbot close this issue


panic on go 1.15

as some subcomponent of the media-repo is using a old version of https://github.com/lucas-clemente/quic-go  the media-repo panics at the start when compiled with go 1.15 with the following error:
panic: qtls.ConnectionState not compatible with tls.ConnectionState
goroutine 1 [running]:
github.com/lucas-clemente/quic-go/internal/handshake.init.1()
/opt/matrix/matrix-media-repo/go/pkg/mod/github.com/lucas-clemente/quic-go@v0.13.1/internal/handshake/unsafe.go:17 +0x12e

The issue on the quic-go side is https://github.com/lucas-clemente/quic-go/issues/2614

Ipfs needs to publish a release.


iOS: ‘NaN’ text is shown with ‘Subtotal’ or ‘Celo Gold’ on ‘Buy GLD’ screen when user has 0 dollar & 0 gold in Wallet

Frequency: 100%
iOS App version: iOS Testflight build : v1.7.1 (28)
Repro on iOS device: iPhone 11 Pro (13.3)
Testing account:<PHONE_NUMBER>/Backup key
Prerequisite: User should have 0 dollar & 0 gold
Repro Steps:

Launch the app and Login with test account
Navigate to ‘Gold’ tab and Make sure only ‘Buy’ button is shown
Tap on ‘Buy’ button and Observe

Current Behavior: ‘NaN’ text is shown with ‘Subtotal’ or ‘Celo Gold’ on ‘Buy GLD’ screen
Expected Behavior: Respective gold amount should be shown on ‘Bug GLD’ screen
Investigation: Issue does not reproduce in Android
Attachment: iOS_NaN is shown at subtotal (Observe the issue between 0:10 to 0:13 secs)

@i1skn has this been closed with the Gold redesign?

Verified with IOS Test flight Celo interation build v1.9.1 (41)  and observed issue is still reproduced
Attachment: NAn&InfinityIssue.mp4

Verified with IOS Test flight Celo interation build v1.9.1 (41) and observed issue is Fixed
Device Used: iPhone 6(12.4.7)

Verified with latest IOS test flight build v1.9.1(41) and observed that issue is still Repro

‘NaN’ text is shown with ‘Subtotal’ or ‘Celo Gold’ on ‘Buy GLD’ screen when user has 0 dollar & 0 gold in Wallet
Device Used: iPhone 6(12.47)
Attachment: Nan&InfinityIssue.MP4

@Lss-Ankit v1.9.1(41) is 11 days old, so we will see the fix only in the next build. Also you can check recent mainnet build Valora 1.0.0(5), which has this fix already.

Hi @i1skn thanks for the update!.
In test flight currenly, i can see only Celo integraion build v1.9.1(41), also i have checked in App store celo application is not shown it may be alfajores network reset.
Can you please do the needful so i can get the latest Valora app v1.0.0(5).
Thanks!

Verified with latest IOS test flight build v1.0.0(4) and observed that issue is still Repro

‘NaN’ text is shown with ‘Subtotal’ or ‘Celo Gold’ on ‘Buy GLD’ screen when user has 0 dollar & 0 gold in Wallet
Device Used: iPhone 11(14.0)

Verified with latest IOS test flight Valora build v1.0.0(6) and observed that issue is Fixed

Device Used: iPhone 6(12.4.7)


py-evm backend ignores fork setup

What was wrong?
As of alpha 26, there is no clean way to define the VM configuration at runtime. MainnetTesterChain.configure_forks is broken: it sets the configuration on the vm instance, and then get_vm_class_for_block_number ignores vm_configuration on the instance, using the class's vm_configuration instead.
How can it be fixed?
No one noticed that fork choice stuff isn't working. Maybe just neuter the API to officially make it do nothing, and we can re-add the functionality when it's requested.
Also, probably remove MainnetTesterChain.configure_forks from py-evm since it's described as "footgun" and isn't working anyway.

I was going to leave a feature request to be able to configure the VM class (not suggesting to allow multiple, just define at genesis), but it sounds like based on your original comment that this was not intended to work? I think it would be a nice feature to have for working with applications deployed with legacy VM rules e.g. ETC or just any dapp deployed before a major fork that has continuous testing.

I think the most straightforward thing to do (and the ultimate plan) would be to support configuration via genesis json. That option wasn't available before, and now all it needs is for the utility to move from trinity to py-evm

That sounds perfect. I think any use case that needs to use multiple VM versions can just run their test suite under different genesis configurations

To give an example, Vyper may end up supporting 1-3 EVM versions at some point, so our test suite would need to be run under different configurations, but we still wouldn't test upgrades because that would be too complex.


Upgrade kcp to v0.8.2

Signed-off-by: Romain Arnaud<EMAIL_ADDRESS>

@Roming22

The PR needs to be rebased as the config file with the kcp version parameter is introduced now.
Frederic had raised this point to upgrade to 0.8.2 in my PR which I raised to upgrade to 0.8.0 but I said that the next PR that I would create for automating the upgrade process would take care of this.
If 238 looks good and is ready to be merged, it will save you the time and manual effort to make the changes on this PR :)

#238 will take care of the update through automation


Updated German language strings

I updated the German language strings as some of the translation strings were quite uncommon in Germany 😎
I did not stick exactly to the original English string – if this is a must I can adjust them accordingly.

Sehr gern :-)


capture dbt cli submitted command in run_results.json

Describe the feature
capture dbt cli submitted command in run_results.json,
this is to help with logging/auditing, where we need some way to identify various runs.
Describe alternatives you've considered
no proper alternative, all the workarounds are fragile and short living at best, examples:

if this invocation contains some specific marketing model then this is a marketing dbt run
if the only tag that is present in my run is equal to 'hourly' then this is the hourly dbt run (depends on a strict set up of tags)

Additional context
cross databases feature.
Who will this benefit?
hopefully all dbt users, but main audience is dbt users trying to audit/investigate/optimize their runs

I'm super supportive of this feature - thanks for opening it @younescha! I added this to the milestone for our next release, dev/marian-anderson.


[Bug]: _InactiveRPCError (Permission Denied on resource project) when running gemini_inference(<prompt input>)

File Name
generative-ai/gemini/use-cases/retrieval-augmented-generation/small_to_big_rag/small_to_big_rag.ipynb
What happened?
As a workaround from https://github.com/GoogleCloudPlatform/generative-ai/issues/621, I removed the chat arg and tried to run it with prompt only, but get the following error. Please let me know if I need to provide additional logging or how I can get unblocked, thanks

Relevant log output
{
	"name": "PermissionDenied",
	"message": "403 Permission denied on resource project YOUR-PROJECT-ID. [links {
  description: \"Google developers console\"
  url: \"https://console.developers.google.com\"
}
, reason: \"CONSUMER_INVALID\"
domain: \"googleapis.com\"
metadata {
  key: \"service\"
  value: \"aiplatform.googleapis.com\"
}
metadata {
  key: \"consumer\"
  value: \"projects/YOUR-PROJECT-ID\"
}
]",
	"stack": "---------------------------------------------------------------------------
_InactiveRpcError                         Traceback (most recent call last)
File ~/.pyenv/versions/3.11.6/lib/python3.11/site-packages/google/api_core/grpc_helpers.py:76, in _wrap_unary_errors.<locals>.error_remapped_callable(*args, **kwargs)
     75 try:
---> 76     return callable_(*args, **kwargs)
     77 except grpc.RpcError as exc:

File ~/.pyenv/versions/3.11.6/lib/python3.11/site-packages/grpc/_channel.py:1176, in _UnaryUnaryMultiCallable.__call__(self, request, timeout, metadata, credentials, wait_for_ready, compression)
   1170 (
   1171     state,
   1172     call,
   1173 ) = self._blocking(
   1174     request, timeout, metadata, credentials, wait_for_ready, compression
   1175 )
-> 1176 return _end_unary_response_blocking(state, call, False, None)

File ~/.pyenv/versions/3.11.6/lib/python3.11/site-packages/grpc/_channel.py:1005, in _end_unary_response_blocking(state, call, with_call, deadline)
   1004 else:
-> 1005     raise _InactiveRpcError(state)

_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
\tstatus = StatusCode.PERMISSION_DENIED
\tdetails = \"Permission denied on resource project YOUR-PROJECT-ID.\"
\tdebug_error_string = \"UNKNOWN:Error received from peer ipv4:<IP_ADDRESS>:443 {created_time:\"2024-04-25T12:04:50.733881-04:00\", grpc_status:7, grpc_message:\"Permission denied on resource project YOUR-PROJECT-ID.\"}\"
>

The above exception was the direct cause of the following exception:

PermissionDenied                          Traceback (most recent call last)
Cell In[9], line 1
----> 1 gemini_inference(\"hello world!\")

Cell In[8], line 2, in gemini_inference(prompt)
      1 def gemini_inference(prompt: str) -> str:
----> 2     text_response = model.generate_content(prompt)
      3     return text_response.text

File ~/.pyenv/versions/3.11.6/lib/python3.11/site-packages/vertexai/generative_models/_generative_models.py:405, in _GenerativeModel.generate_content(self, contents, generation_config, safety_settings, tools, tool_config, stream)
    397     return self._generate_content_streaming(
    398         contents=contents,
    399         generation_config=generation_config,
   (...)
    402         tool_config=tool_config,
    403     )
    404 else:
--> 405     return self._generate_content(
    406         contents=contents,
    407         generation_config=generation_config,
    408         safety_settings=safety_settings,
    409         tools=tools,
    410         tool_config=tool_config,
    411     )

File ~/.pyenv/versions/3.11.6/lib/python3.11/site-packages/vertexai/generative_models/_generative_models.py:494, in _GenerativeModel._generate_content(self, contents, generation_config, safety_settings, tools, tool_config)
    469 \"\"\"Generates content.
    470
    471 Args:
   (...)
    485     A single GenerationResponse object
    486 \"\"\"
    487 request = self._prepare_request(
    488     contents=contents,
    489     generation_config=generation_config,
   (...)
    492     tool_config=tool_config,
    493 )
--> 494 gapic_response = self._prediction_client.generate_content(request=request)
    495 return self._parse_response(gapic_response)

File ~/.pyenv/versions/3.11.6/lib/python3.11/site-packages/google/cloud/aiplatform_v1beta1/services/prediction_service/client.py:2102, in PredictionServiceClient.generate_content(self, request, model, contents, retry, timeout, metadata)
   2099 self._validate_universe_domain()
   2101 # Send the request.
-> 2102 response = rpc(
   2103     request,
   2104     retry=retry,
   2105     timeout=timeout,
   2106     metadata=metadata,
   2107 )
   2109 # Done; return the response.
   2110 return response

File ~/.pyenv/versions/3.11.6/lib/python3.11/site-packages/google/api_core/gapic_v1/method.py:131, in _GapicCallable.__call__(self, timeout, retry, compression, *args, **kwargs)
    128 if self._compression is not None:
    129     kwargs[\"compression\"] = compression
--> 131 return wrapped_func(*args, **kwargs)

File ~/.pyenv/versions/3.11.6/lib/python3.11/site-packages/google/api_core/grpc_helpers.py:78, in _wrap_unary_errors.<locals>.error_remapped_callable(*args, **kwargs)
     76     return callable_(*args, **kwargs)
     77 except grpc.RpcError as exc:
---> 78     raise exceptions.from_grpc_error(exc) from exc

PermissionDenied: 403 Permission denied on resource project YOUR-PROJECT-ID. [links {
  description: \"Google developers console\"
  url: \"https://console.developers.google.com\"
}
, reason: \"CONSUMER_INVALID\"
domain: \"googleapis.com\"
metadata {
  key: \"service\"
  value: \"aiplatform.googleapis.com\"
}
metadata {
  key: \"consumer\"
  value: \"projects/YOUR-PROJECT-ID\"
}
]"
}

Code of Conduct

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

Based on the log output:
 "403 Permission denied on resource project YOUR-PROJECT-ID.

It looks like you didn't input your own Project ID and left the placeholder in.


Use swoval source formatting plugin

This switches from using the combination of the scalameta sbt-scalafmt and
the swoval sbt-java-format plugins to just using the swoval
sbt-jvm-format plugin. The jvm format plugin has a pair of nice
features:

It provides a command jvmfmtAll (and jvmfmtCheckAll) which
effectively formats all of the java, scala and sbt source files in the
project, including those files that comprise the sbt build definition.
It integrates with supershell so that the user can see which files
are currently being formatted (the number of formatting tasks is
configurable but defaults to the number of available processors divided
by 2).

The api of the swoval scalafmt plugin is very similar to the scalameta
plugin. It also auto-updates by parsing the scalafmt version from the
scalafmt.conf file and uses coursier to fetch the jars needed to perform
formatting for the given version.

I'm going to close this since it isn't strictly necessary and has been stagnant.


createMockStore is not a function

When running with ES Module mode, we have to:
import reduxMockStorePkg  from 'redux-mock-store'
const createMockStore = (reduxMockStorePkg as any).default

The above code will violate the Typing system (must use as any), but it works for the final code.
To be investigated.

Solution
use
import * as MOCK_STORE    from 'redux-mock-store'
const createMockStore = MOCK_STORE.default


Create export.py (or something similar) for exporting models from PyTorch -> CoreML

Could have multiple export types as well:

PyTorch -> CoreML (for iOS)
PyTorch -> ONNX Web Runtime (for web)

More:

[ ]  Should be able to run python export.py for a model of multiple kinds to be created somewhere
[ ]  See here for exporting models — https://coremltools.readme.io/docs/convert-a-torchvision-model-from-pytorch
[ ]  See here for reference — https://github.com/ultralytics/yolov5/blob/master/export.py
[ ]  See also here — https://github.com/ultralytics/yolov5/issues/251
[ ]  See here for converting to CoreML and preparing the image for PyTorch — https://coremltools.readme.io/docs/image-inputs#preprocessing-for-torch
[ ]  Write tests for comparing the CoreML model to the original PyTorch model and see how they perform compared to each other
[ ]  Read this on compressing ML Program Weights (make the model smaller for better loading) — https://coremltools.readme.io/docs/compressing-ml-program-weights

See this notebook for an example conversion: https://github.com/mrdbourke/nutrify/blob/main/foodvision/notebooks/06_export_model.ipynb
Note: Prediction/evaluation can only take place on macOS with CoreML, should setup some code to make a prediction over ~100 images with CoreML & PyTorch for a sanity check on how the model is performing.


json schema ci checks

can you separate the build from the schema check? Since most of CI depends on build but not on schemas we can have a separate action for checking the schemas that doesn't delay the rest

yeah I was thinking of that as well. feels like wasm optimizer steps can also sit in a different job as wasms are not relevant to regular unit testing. will just need to set up caching so that it doesn't rebuild stuff unnecessarily.

yeah I was thinking of that as well. feels like wasm optimizer steps can also sit in a different job as wasms are not relevant to regular unit testing. will just need to set up caching so that it doesn't rebuild stuff unnecessarily.

they are used for test-tube tests

yeah sorry by "regular unit tests" i meant the non-integration ones


chore(operator-yaml): fix timeout duration for bd-time-out flag

Signed-off-by: Niladri Halder<EMAIL_ADDRESS>12 is the correct number of retries for a timeout duration >= 60s

Codecov Report

Merging #84 (c5860b0) into develop (5a2b82f) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head c5860b0 differs from pull request most recent head 2acc4f1. Consider uploading reports for the commit 2acc4f1 to get more accurate results

@@           Coverage Diff            @@
##           develop      #84   +/-   ##
========================================
  Coverage    33.99%   33.99%
========================================
  Files           29       29
  Lines         2518     2518
========================================
  Hits           856      856
  Misses        1618     1618
  Partials        44       44

Continue to review full report at Codecov.

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


Improvement for k8s.io/docs/tutorials/stateless-application/guestbook/

if we do not use Minicube, it is not clear how to get the URL.
When we access the guestbook from browser, one page will be displayed,  one sample page can be provided.

Thanks for the feedback
/language en

/priority backlog
/kind feature


fix(base): resolve the correct key on insertion error

wasn't this merged?

this PR removea the package-lock.json changes from the merged commit but since I can not overwrite the main branch, opened a new PR. aavash will fix it up


DX: Place i18n behind a feature flag.

I'm currently not interested in i18n support, and I'm writing an application where that binary size should be kept as small as possible.
Took a quick look at the crates.io metadata size and the dependency tree, and saw that the metrics were 1.42 MiB and 30% related to i18n respectively, both of which are a lot 🙈
Would such a change be viable?

Hmm, this would be tricky to do, and would not drop all the translation dependencies.
I use Fluent for translations because it is much easier to work with than gettext (.po files), but one of the reasons it's easier is that all translation strings have dedicated IDs, and the "source language" is just another translation file. gettext translations use the source language translation strings as the IDs, which causes a bunch of issues for creating translations, but one advantage is you can disable translations by just replacing the translator function with a pass-through (that just returns the source string).
I will not be moving away from Fluent, so that means there is a minimum required amount of machinery to take the single desired source language and hook it into the binary. It might be possible to remove a bunch of unnecessary translation code, but that would require changes to my upstream dependencies if they don't already have this functionality.
One thing that might be more feasible, is to feature flag off support for more than one language. That would remove other languages from the binary, at least reducing the binary size that way. If someone wanted to investigate this, it would be interesting to see how it could be done in a maintainable way.

Hey, thanks for the thoughtful response :)
I like the idea of instead placing languages behind features flags. I should say though, (knowing nothing about i18n in rust), that feature flags should be additive. Cargo is very clear about this: https://doc.rust-lang.org/cargo/reference/features.html#feature-unification

[..] features should be additive. That is, enabling a feature should not disable functionality.

I'm up for taking a look at this once it becomes relevant to the project I'm working on ✌.

Indeed, so the way it would be done (if even possible) is a default-enabled "all languages" flag, which depends on various per-language flags. Then someone can disable default features and re-enable whichever languages they want (though at least one must be present).


ORDER BY Column not found

I want to get all the data, but I want the id 31 to be the last item in the list. So this is working on SQL Program;
select id,name
from sector
order by id=31 ASC

but it's not working in Yii2. Is there any solve for this?
$var['sectorList'] = Sector::find()
->select(['id', 'name'])
->orderBy(['id=31' => SORT_ASC, 'name' => SORT_ASC])
// or this ->orderBy("id=31 ASC")
->asArray()->all();

$var['sectorList'] = Sector::find()
->select(['id', 'name'])
->orderBy([new \yii\db\Expresion('id=31 ASC'), 'name' => SORT_ASC])
// or this ->orderBy("id=31 ASC")
->asArray()->all();


Cleanup and add GameWindow class

This PR creates a window class that handles all of the window creation.  Also did some cleaning up.
Wait before you merge, I want to test the build on your Debian machine.

👀


Warn user when consul configuration fails.

It may happen that we cannot read configuration from consul, in such
cases (server is down / unreachable / etc.) log a warning to inform the
user of the issue.
This happened to me on my first deployment, and I was startled at why
the controller was unable to pull its configuration from consul.
I have sent a signed CLA as is asked int CONTRIBUTING.md

Merged as https://github.com/openwhisk/openwhisk/commit/8efa1f96876af05f25f7e7ea2a5dace5bcac3054.
Thank you for the fix and contribution.


rubocop: Fix Style violations

cherry-picked from https://github.com/voxpupuli/beaker-hostgenerator/pull/291


Examples for 'design goals' under PPS section

On this page we list what PPS is designed for.
Those are reasonably common use cases, so it would be nice to provide examples / walk throughs on each.

Irrelevant until PPS/PFS docs are brought back to life.  Tracked here: https://github.com/pachyderm/pachyderm/issues/1869


Variables in LESS imports.

I've just noticed mini-asset won't find dependencies declared with an import that uses a variable in LESS.
I must say I don't really need this to work since the files I'm importing are vendor files that I won't change. Touching my files is enough to rebuild it. Just noticed it and thought I would report about it.
This will be hard to fully resolve. A possible workaround would be to have an option to disable incremental building or a configurable path to check for changes on any file inside it.

Could you give an example/sample of problematic files? Are you using node LESS, or the PHP implementations?

This is a simple example:
@root-dir: vendor/twbs/bootstrap/less;
@import<EMAIL_ADDRESS>
I'm using node LESS. Compilation works well, it's only that the incremental builds fail to see changes on files imported in this way. Since this imports have to be resolved at compile time I guess it would be hard to know the extact dependencies before compiling.

Ah ok. Resolving those variable imports will be nigh on impossible without a sophisticated CSS parser. While the code you have could be solved, other cases like
// variables.less
@rootdir: some/path

// app.less
@import 'variables.less';
@import<EMAIL_ADDRESS>
Will not be handled as easily.

I came across this issue while trying to work around issue #21. I don't really need it. Given the complexity of a proper fix, and because it's only affecting the incremental builds, I think this could wait. One easy way to deal with filter dependencies that are hard to solve like this one would be using the workarounds I proposed in my first message or something alike.


Fix MinCapacity & MaxCapacity allowed values

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

test


autopsy: init at 4.21.0

Description of changes
This PR adds autopsy, a digital forensics platform and graphical interface to The Sleuth Kit and other digital forensics tools. It can be used to investigate what happened on a computer. You can even use it to recover photos from your camera's memory card.
fixes: #173227
related to: #81418
This package was originally based on the autopsy package from nix-security. That one builds openjfx and sleuthkit from scratch, they were not in nixpkgs at the time. However, the latest version of autopsy is compatible with sleuthkit and openjfx from nixpkgs.
This package is built from the github release of autopsy. Autopsy contains a lot of vendored java dependencies, getting rid of them seems unfeasible.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested with package tests
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Java? It vendors them as JARs, right? (so we can also mark provenance in terms of downloading compiled code)

I marked sourceProvenance for binaryNativeCode. While most dependencies are JAR files with precompiled bytecode, the release also contains some precompiled native binaries, mostly for windows, but also some ELF files for linux (listed below). I suspect some of the jar files to also contain compiled native code.
platform/modules/lib/amd64/linux/libjnidispatch-nb.so
autopsy/markmckinnon/Export_Srudb_Linux
autopsy/markmckinnon/parse_prefetch_linux
autopsy/modules/lib/amd64/libheifconvert.so
autopsy/modules/lib/x86_64/libheifconvert.so


feat(llm): handle 'island nodes' extraction in 2-step graph queries and add asynchronous methods to the four types of generation functions in the rag web demo.

Fix some bugs and prompts.
Add two-stage query to get more information in graph rag query.
Add optional parameters for keyword matching vid.
Add asynchronous methods to the four types of generation functions in the rag web demo.

Some modification about options:


First pass at a stubzones bugfix

This PR addresses the following issue.
Say you have 2 stubzones registered in etcd the following way:
/skydns/com/test/dns/stub/com/othertest/a/stubzone1/a    <IP_ADDRESS>
/skydns/com/test/dns/stub/com/othertest/a/stubzone1/b    <IP_ADDRESS>
/skydns/com/test/dns/stub/com/othertest/stubzone2/b       <IP_ADDRESS>
/skydns/com/test/dns/stub/com/othertest/stubzone2/a       <IP_ADDRESS>

Current implementation will consider these records duplicate and one of the stubzones will not be available.
To avoid this when we are looking up stubzone records we keep track of the subdomain in this case stubzone1.a.othertest.com and stubzone2.othertest.com and dedup records only inside the same subdomian.
I am not sure if this should be behind the flag stub or this can work as a general implementation.

This is the first pass if the implementation looks reasonable I will add same logics to etcd3 backend.


Port test in subqueries.rs from rust to sqllogictest

Which issue does this PR close?

Closes #6668.
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

CI failed relate with #6676

@jiangzhx
In the original UTs, there are some comments to explain why the plan is like this,
For example:
exists_subquery_with_limit, in_correlated_subquery_with_limit
In some cases the limit is removed and the subquery is de-correlated, in some cases it is not.
Could you please add the comments back to the slt file ?

@jiangzhx In the original UTs, there are some comments to explain why the plan is like this, For example:
exists_subquery_with_limit, in_correlated_subquery_with_limit
In some cases the limit is removed and the subquery is de-correlated, in some cases it is not.
Could you please add the comments back to the slt file ?

@mingmwang  Following your suggestion, I have already made the changes. I hope you have time to help me review it again. thanks for your help.


Array of objects for tokens don't work

Hi!
I want to use bootstrap-tokenfield with an array of objects like this:
["{\"value\":1,\"label\":\"Project\"}", "{\"value\":2,\"label\":\"Task\"}"]

But this don't work as explained in http://sliptree.github.io/bootstrap-tokenfield/#options in option tokens. The plugin splits the string value like this:

token 1 -  ["{\"value\":1
token 2 - \"label\":\"Project\"}"
token 3 - "{\"value\":2
token 4 - \"label\":\"Task\"}"]

Also this string value don't work:
[{value:1,label:"Project"},{value:2,label:"Task"}]

The delimiter "," don't respects the objects in "{...}".

It's not an array of objects, but strings. Before passing as token, parsing each of them must solve this. Try JSON.parse()

OK, so you mean to do: [JSON.parse("{\"value\":1,\"label\":\"Project\"}", "{\"value\":2,\"label\":\"Task\"}")]

Assuming you have this array-of-strings like:
var mySource = ["{\"value\":1,\"label\":\"Project\"}", "{\"value\":2,\"label\":\"Task\"}"]

The shorthest way I can imagine to turn this into an array-of-objects is Array.map():
var parsedSource = mySource.map(function (source) {
  return JSON.parse(source)
})


ValueError: invalid literal for int() with base 10: 'CCA'

Hi,
I am training a model on multiple individuals. At step 8-create-splited-binaries-using-the-tensor2bin-submodule, I get the error ValueError: invalid literal for int() with base 10: 'CCA'.
error code:
8. Create splitted binaries using the Tensor2Bin submodule

Loading the dataset ...
Traceback (most recent call last):
  File "/home/kewinogink/anaconda3/envs/clair-env/bin/clair.py", line 94, in <module>
    main()
  File "/home/kewinogink/anaconda3/envs/clair-env/bin/clair.py", line 88, in main
    submodule.main()
  File "/home/kewinogink/anaconda3/envs/clair-env/bin/dataPrepScripts/Tensor2Bin.py", line 63, in main
    Run(args)
  File "/home/kewinogink/anaconda3/envs/clair-env/bin/dataPrepScripts/Tensor2Bin.py", line 25, in Run
    is_allow_duplicate_chr_pos=args.allow_duplicate_chr_pos
  File "/home/kewinogink/anaconda3/envs/clair-env/bin/clair/utils.py", line 138, in get_training_array
    Y = variant_map_from(var_fn, tree, is_tree_empty)
  File "/home/kewinogink/anaconda3/envs/clair-env/bin/clair/utils.py", line 127, in variant_map_from
    Y[key] = output_labels_from_vcf_columns(columns)
  File "/home/kewinogink/anaconda3/envs/clair-env/bin/clair/task/main.py", line 53, in output_labels_from_vcf_columns
    genotype_1, genotype_2 = int(columns[4]), int(columns[5])
ValueError: invalid literal for int() with base 10: 'CCA'

I have checked and it is due to that in the all_var_prefixed file there are 7 columns instead of 6 when training only on 1 sample: the random prefix is now the first column, followed by the other 6 ones.
one sample
gzip -fdc all_var_prefixed | head -5
CHR1 18 ACC CCA 1 1
CHR1 83 AGC AC 1 1
CHR1 109 G C 0 1
CHR1 115 C G 0 1
CHR1 136 G A 1 1

multiple samples
gzip -fdc train_clair_output/var/all_var_prefixed | head -5
xtBOD CHR1 485 TCA CCA 0 0
xtBOD CHR1 501 CTC CC 0 0
xtBOD CHR1 509 G A 0 0
xtBOD CHR1 519 C T 0 0
xtBOD CHR1 530 A G 1 1

My question is what I should do. Did I somehow make a mistake with these prefixes? What should the all_var_prefixed look like?
Best,
Kewin

I changed the prefix to a 1-letter prefix and that solved the problem


feat(pkg/nar/reader_test.go): also test closing the NAR reader

https://pkg.go.dev/os#File.Close

Close will return an error if it has already been called.

Seems in line with the File behavior.

… and archive/tar returns nil on subsequent closures :shrug:. I guess the best thing to do is just check it doesn't panic ;-)


Add macOS and Windows to github actions

Currently our CI runs checks only on Linux.
We need to add macOS and Windows to the matrix of "build" and "examples" jobs, and fix possible issues.

hi @gavv i want to try this one, assign me please

@AnandaIlyasa Welcome, thanks!

Hi, @gavv Is this in progress or shall I take it up? Thank you 🚀

@gavv does somebody already work on this issue or i can pick it ?

Fixed in #426


Feature/pipelines

Big changes in this PR are breaking out the observable API so the model side has a different API from the EventProcessor side. This allows for more specific delegates for event observable and allows for the APIs to evolve independently (i.e. different extensions methods).
Other work includes the beginnings of cleaner integration for async tasks. You can do all this out of the box today with the 'work item' pattern however that can be wrapped into some extension methods that do the heavy lifting and produce cleaner code. I've wrapped all this async code in compilation constraints as I've just not had time to write decent test coverage. There are loads of cases around what happens when esp streams are disposed, when IObservable streams error/complete that need to be properly thought through.

I didn't properly rebase Richards changes initially (I hadn't merged my local master with origin after a fetch). However I did this after I preformed the rebase then remerged the feature branch back into it (git said Merge made by the 'recursive' strategy). Basically I shot myself in the foot and screwed the history. However the head of this branch appears correct.


Better Installation description

I tried to get it to work but I couldn't make it. Also the instructions at ycmd did not help at all because I don't use vim and for windows there are so many vim references.

I also developed and tested this extension on windows 10. It works the same as Linux.
For windows installation instruction, you may see this: https://github.com/Valloric/YouCompleteMe/blob/master/README.md#windows
The vim related part can easily be skipped.
Which means you clone ycmd, update submodules. Then follow the instructions to install dependencies and run python install.py with parameters you needed.

I tried that but I always got the error message that the path is not correct

What's the exact error message?
Did you set your ycmd and python correct?

[Ycm] Invalid ycm global extra config path
I only installed the tern-completer
my path is
"C:\Users\USERNAMER\vimfiles\bundle\YouCompleteMe\third_party\ycmd"

That means you forget to specify the global extra config path. It's ycmd.global_extra_config
You can see: https://github.com/Valloric/YouCompleteMe/blob/master/README.md#the-gycm_global_ycm_extra_conf-option

Where should it point at?

I think it might not be an error. I'll fix it today. Due to you may not provide global conf file, just use your local's.

I don't have a conf file at all I think.

The conf file (.ycm_extra_conf.py) is needed by ycmd backend.
You can see explanation here: https://github.com/Valloric/YouCompleteMe/blob/master/README.md#c-family-semantic-completion

I better stick to intellisense. This is way to complicated.


[BEAM-59] Move GcsFileSystem to gcp-core

It is used by both runner and IO, so should be in core.
R: @lukecwik
CC: @vikkyrk

LGTM, thanks.

LGTM
Is there a plan to move over GcsUtil/GcsPathValidator/... into the org.apache.beam.sdk.extensions.gcp.storage?

Coverage increased (+0.06%) to 69.915% when pulling 54cd51a1a26b5439ce3c761a18ec95426d9d0b1f on dhalperi:move-gcs-filesystem into 4c3174b80f4f359d4bb6f5c23011b811e0689895 on apache:master.

Changes Unknown when pulling e99a1598e03e86d29a7a9ce3b4bcdaca6a495742 on dhalperi:move-gcs-filesystem into ** on apache:master**.


Create permanent classNames for carousel arrows, accordion buttons, logo on pages and search page

We need permanent class names to avoid having to update after each deploy. See discussion on Slack: https://equinor.slack.com/archives/C01MU3H6G0Y/p1693298389503569

Class names
Unchanged
accordion buttons :  chakra-accordion__button
Newly added :
Equinor logo:  logo
Carousel arrows: carousel-arrow

@padms - how can I test this?

@meols On right click and inspecting logo, carousel arrows, the new classnames will appear.
Private Zenhub Image
Private Zenhub Image
These class names are permanent and will not change for every deploy.

Thanks @padms - this is approved


[TRY] Separate Meta-box Integration

Context

Summary

Relevant Technical Choices

To-do

User-facing changes

Testing Instructions

[ ] This is a non-user-facing change and requires no QA

This PR can be tested by following these steps:

Reviews
Does this PR have a security-related impact?

Does this PR change what data or activity we track or use?

Does this PR have a legal-related impact?

Checklist

[ ] This PR addresses an existing issue and I have linked this PR to it in ZenHub
[ ] I have tested this code to the best of my abilities
[ ] I have verified accessibility to the best of my abilities (docs)
[ ] I have verified i18n and l10n (translation, right-to-left layout) to the best of my abilities
[ ] This code is covered by automated tests (unit, integration, and/or e2e) to verify it works as intended (docs)
[ ] I have added documentation where necessary
[ ] I have added a matching Type: XYZ label to the PR

Fixes #

How can we move useSaveMetaBoxes too?

How can we move useSaveMetaBoxes too?

@swissspidy I have been trying to move useSaveMetaBoxes for a couple of days but it's tricky, lets discuss that today.


add snow ecr to docker login

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/retest

/close


Merge master branch to release branch to enable pipe launch support needed for Docker debugging

Need to merge dev branch to master to include the work for pipe launch options support (https://github.com/OmniSharp/omnisharp-vscode/pull/415)  in official release. This is needed for docker debugging support.

Updated title as we now release CSharp extension from release branch...

This is now complete.


Rendering mappings

Updating, if anyone has any further feedback on this please open an issue or a new PR.


Nuget 3.0.0 package doesnt work for Android

Installing version 3.0.0 nuget package gives the following error on Android:
The type or namespace name 'Android' does not exist in the namespace 'Octane.Xamarin.Forms.VideoPlayer' (are you missing an assembly reference?)

This should be resolved with 3.1.0.


Modifying GeoVector to support GLM.

I'm unsure if this is even beneficial for us at this point but I've recently discovered GLM exists.
GLM is the official OpenGL maths library
Any thoughts on whether we should refactor to use it? Its probably faster than our own implementation but it may hurt our support for DX and Vulkan in the future.

It might be beneficial to have GeoVector wrap it for certain functionality. Then it is easily swappable without taking a direct dependency (in the public surface area).

I think Tanner's idea would be good here. That, and GLM wouldn't hinder a Vulkan implementation as Vulkan has no linear algebra operations (glm is actually recommended in this case), but it'd be useless for a DX implementation if i recall correctly.

Ok, so then the question is, how much of a priority is it? Things are working as of PR #23 so I'd argue this isn't an immediate essential as we have other concerns such as text to implement.

This should be lower priority IMO. If we can get the basic implementation done without needing to wrap GeoVector or modify it much, then we should be okay to push it back.
However, if there comes time where you will need to start adding a lot more to GeoVector and glm would assist with this, then we'd revisit. (This part I admit I'm unsure of since I'm not as familiar with gfx programming)

Due to this being now required it has already been added to the codebase in #26 . Closing.


create a plugin or enhance the fabric8-maven-plugin to add a 'funktion' packaging type to maven to auto-create the docker image + k8s resources

turns out the spring-boot support in fabric8-maven-plugin was totally enough ;)


[Tabs] Example code incorrect

Example code below doesn't work:
http://foundation.zurb.com/sites/docs/tabs.html

Tab 1

Tab 2

Second href is #/tabs/panel2
Tabs don't work.
Change it to #panel2 and it works.

Solved in #10364


When Policy based auth will included ? :)

Hi,
What are you referring to exactly by policy based auth? This is a complete implementation of the Microsoft spec as far as I know except for the IQueryableUserStore.

Yes, you are right... I am a little bit confused... Thanks for this great library :)


Firefish Github action error

Run python find_posts.py --lock-hours=0 --access-token=*** -c="./config.json"
Traceback (most recent call last):
2023-09-13 12:50:27.033317 UTC: Starting FediFetcher
2023-09-13 12:50:27.659332 UTC: Job failed after 0:00:00.626002.
  File "/home/runner/work/FediFetcher/FediFetcher/find_posts.py", line 1362, in <module>
    reply_toots = get_all_reply_toots(
  File "/home/runner/work/FediFetcher/FediFetcher/find_posts.py", line 410, in get_all_reply_toots
    reply_toots = list(
  File "/home/runner/work/FediFetcher/FediFetcher/find_posts.py", line 411, in <genexpr>
    itertools.chain.from_iterable(
  File "/home/runner/work/FediFetcher/FediFetcher/find_posts.py", line 400, in get_active_user_ids
    raise Exception(
Exception: Error getting user IDs on server firefish.place. Status code: 404

Problem
config.json referenced:
{
    "server": "...",
    "home-timeline-length": 40,
    "max-bookmarks": 40,
    "max-favourites": 40,
    "max-followings": 40,
    "max-followers": 40,
    "max-follow-requests": 40,
    "from-notifications": 7,
    "reply-interval-in-hours": 72,
    "remember-users-for-hours": 12,
    "log-level": 10
}

Because reply_interval_in_hours > 0, FediFetcher is attempting to get replies for users using get_reply_toots(), which expects a Mastodon API compatible user ID, fetched from the Mastodon accounts admin endpoint /api/v1/admin/accounts.
However, Firefish does not appear to implement this endpoint -- at the very least, it returns status code 404.

In particular, this endpoint is needed because by default it provides a list of all local users, their Mastodon-compatible ID, and the date of their last status post.
Firefish has a similar API endpoint at /api/admin/show-users, which you can provide { "origin": "local" } to and get a similar result:

However, to use Firefish's Mastodon-compatible API at /api/v1/accounts/:id/statuses for get_reply_toots(), a Mastodon-compatible ID for the user must be provided (numeric), and not their native Firefish database user ID (alphanumeric). It's possible to obtain these by using Firefish's Mastodon-compatible /api/v2/search endpoint...

...but this is starting to multiply requests for something that at this point would need to be solved individually for Firefish, possibly within its own API.
Solutions?
Set reply_interval_in_hours = 0. This will disable this particular feature, which currently relies on a Mastodon API not implemented by Firefish.
FediFetcher could do for more robust error handling that catches a 404 here and continues with execution.
A Firefish-specific implementation of FediFetcher might be able to circumvent this limitation.

@Teqed so should we make a firefish issue for that?

 You'll need to issue a new workflow run, which should default to your latest commit.

so should we make a firefish issue for that?

Currently the recommended value for reply-interval-in-hours in the README.md is zero (disabled), but if you are personally motivated to make use of this feature, you could submit a PR to the Misskey family that implements the missing Mastodon API endpoint. I believe the Mastodon API implementation was done by the upstream Misskey project, but the Firefish project may also be interested in working on improving their Mastodon API.

@Teqed ah yeah thank you. sorry that was dumb.
@nanos my instance is a firefish instance

Thanks @Y0ngg4n
In that case I'd like to point you to #72 - FediFetcher doesn't currently have Firefish support, simply because I don't have a firefish instance. I'd happily accept PRs that fix this, though.
I'll therefore close this issue now, but feel free to continue discussion with @Teqed  here, for as long as you feel it's helpful.
One final comment:

FediFetcher could do for more robust error handling that catches a 404 here and continues with execution.

IMO it's better to fail, so that users know there is a problem, than to continue as though there was no problem, and then leave people wondering why their replies aren't being fetched.

Now i get this errors: Y0ngg4n/FediFetcher/actions/runs/6183764988/job/16786123104

Looking at the logs here, it appears that FediFetcher is successfully adding context URLs up until it suddenly starts returning status code 401 (Unauthorized). This looks like a rate limit (429) that is incorrectly returning unauthorized (401). Sorry to say that this re-confirms the original issue described on #72.

@Teqed hm yeah thats a bummer. maybe because i am using the release version on the server and not the one from the development branch.

FediFetcher could do for more robust error handling that catches a 404 here and continues with execution.

IMO it's better to fail, so that users know there is a problem, than to continue as though there was no problem, and then leave people wondering why their replies aren't being fetched.

Another way to tackle this design would be to catch exceptions at each feature module, and then exit with a failure status code if any of the modules returned an error. This would still alert users to problems without causing other working features from functioning, which may be useful in scenarios where one of our API calls gets an unexpected response from downstream Mastodon servers. -- But in this instance I agree that it's fine the way it is.

@Teqed hm yeah thats a bummer. maybe because i am using the release version on the server and not the one from the development branch.

Firefish's default branch is develop, unless you deliberately checked out the main or beta branches.
Misskey / Firefish seems to return the status codes in the message body, and I believe the status code I saw earlier was actually from the body and not the actual status code.

@Teqed yeah but maybe they did not made a release of the develop branch to the docker containers.


[Metrics] Shouldn't use AppInsights in strings

Do not use AppInsights in new strings used in metrics pre-aggregations

cc: @macrogreg

https://github.com/Microsoft/ApplicationInsights-dotnet/pull/517


Unconditionally add ExceptT and Backwards instances using transformers-compat

This is needed to allow reverse-dependencies of this package to migrate to ExceptT while keeping backwards compatibility for older versions of transformers.
Also see https://github.com/fpco/stackage/issues/439
I also removed CPP for the Backwards instance for the same purpose.

The upper version bound probably needs to be bumped to < 0.6 since transformers-compat-0.5 is out now.

I can pick up this pull request and fix it up


Configurable DATE_FORMAT

This PR supersedes #461, resolving merge conflicts.
refs #188

Thanks to @russell for the contribution. 🎁

Current coverage is 65.48% (diff: 100%)

Merging #1633 into master will increase coverage by 0.01%

@@             master      #1633   diff @@
==========================================
  Files            52         52
  Lines          5923       5925     +2
  Methods           0          0
  Messages          0          0
  Branches       1163       1163
==========================================
+ Hits           3878       3880     +2
  Misses         1838       1838
  Partials        207        207

Powered by Codecov. Last update 577765e...2e88083

@obfuscurity - Was reverting #1305 intentional?

Definitely not. Thanks for catching that, I'll fix it now.


feat: race a http gateway with p2p in iroh-one's content loader

This adds to iroh-one a new optional configuration item: resolver_gateway
If resolver_gateway is set, the resolver will race the p2p node with fetching a raw block from the gateway.
A new source is also introduced to classify blocks coming from a gateway out from those fetched from p2p or store. Hits from the gateway are considered as not cached for telemetry purposes.
ping @b5

Looks good, can we get the rustfmt in order and I can merge then.

fixed in latest push.


iPhone can't read Send transaction QR code

User reports:
Creating Transaction:
Starting a send transaction on the iPhone, confirming on Android - successful.
Starting a send transaction on Android, confirming on iPhone - Getting ERROR saying "Wrong Vault or Pair Device".
Definitely have the right vault selected.

This could because IOS is not on the latest version

this has been fixed in https://github.com/vultisig/vultisig-android/pull/269


Cast int to double [-Wnarrowing]

Only to get rid of compiler warnings.

How are you building to trigger this?  With g++?

How are you building to trigger this?  With g++?

Right, g++.

Right, g++.

Why?
(This change is fine, and I imagine it works because of the MSVC build which is in C++, but I don't actually test this and wonder why you'd build a C library with g++ / if it should be covered / etc)

Why?
(This change is fine, and I imagine it works because of the MSVC build which is in C++, but I don't actually test this and wonder why you'd build a C library with g++ / if it should be covered / etc)

Ping! I got your point. Pugl should now be build as a library, only. No backpacking anymore (you told you wanted to get rid of this). Then you are right. g++ compiling doesn't make any sense.
However, I still use pugl in the "old way". Backpacked to my projects. Like the most pugl using developers still do.  We had a discussion about this on last weekend on irc#lad (in your absence).

Ping! I got your point. Pugl should now be build as a library, only. No backpacking anymore (you told you wanted to get rid of this). Then you are right. g++ compiling doesn't make any sense.
However, I still use pugl in the "old way". Backpacked to my projects. Like the most pugl using developers still do.  We had a discussion about this on last weekend on irc#lad (in your absence).

I see.  That's fine, you can link C and C++ objects together without issue, even if Pugl is vendored.
Whatever I suppose, since Pugl happens to be written in the subset of C and C++ this is fine, but in general it's strange.  C is not a subset of C++, and most C code is not capable of this.

I see.  That's fine, you can link C and C++ objects together without issue, even if Pugl is vendored.
Whatever I suppose, since Pugl happens to be written in the subset of C and C++ this is fine, but in general it's strange.  C is not a subset of C++, and most C code is not capable of this.

FYI your name and email address is not configured in git.  Do you really want<EMAIL_ADDRESS>in git history?
In this case it's trivial so whatever, but in general I don't think I'm comfortable merging commits without proper attribution.

FYI your name and email address is not configured in git.  Do you really want<EMAIL_ADDRESS>in git history?
In this case it's trivial so whatever, but in general I don't think I'm comfortable merging commits without proper attribution.

Effectively equivalent fix committed as e497eea68ca704f62d3a65f1bbe787167cd3ae3e, thanks.

Effectively equivalent fix committed as e497eea68ca704f62d3a65f1bbe787167cd3ae3e, thanks.


build: add Linux support

Hi! I've tested minigin on Linux and made some changes to ensure it builds.
List of changes:

use find_package with modern FindSDL2* modules to find SDL2 and co.
enable -Wall -Wextra -Wpedantic -Werror on non-MSVC compilers, inc. Emscripten
fix new build errors due to unused member m_size and a missing struct member in a SDL_color initialization (previously not an issue because -Werror was only enabled for MSVC)

Hi, I think it's not possible to use binaries of SDL for Linux, due to the many different platforms and architectures. It is possible to use FetchContent for it and compile SDL at build-time. It doesn't extend the time too much (and only for Linux builds anyway), so it's an option.
Note that the Copyright.txt file for this only applies to the modules, and explicitly allows redistribution. It does not affect the Minigine project itself.

I have switched it to use FetchContent for all dependencies. This ups the initial build time (first time takes a few minutes) but subsequent builds are still almost instant.
This removes the dependency on vendored CMake modules, so I have removed them.


Add missing component declaration in shared library

closes #294

Missing signed commit for this PR. Will recreate with appropriate commit signing.


Does FluentFTP Work in Blazor WASM?

Hello, I am trying to connect to my FTP server remotely with a Blazor WASM app. The following error appears in the browser:
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: System.Security.Cryptography.X509Certificates is not supported on this platform.
System.PlatformNotSupportedException: System.Security.Cryptography.X509Certificates is not supported on this platform.
at System.Security.Cryptography.X509Certificates.X509CertificateCollection..ctor()
at FluentFTP.FtpConfig..ctor()
at FluentFTP.Client.BaseClient.BaseFtpClient..ctor(FtpConfig config)
at FluentFTP.FtpClient..ctor(String host, String user, String pass, Int32 port, FtpConfig config, IFtpLogger logger)
Is there any work around to this yet or can you tell me how/whether what I want to do is possible, please?
Thanks!

We have no plans to support Blazor/WASM.


Errors when mocking method with keyword parameters in Ruby 3.0

In Ruby 3.0 there are a bunch of errors for wrong number of arguments when mocking methods that take keyword parameters. This should be fixed for Ruby 3.0 compatibility.

This is likely because of just taking *args and not **kwargs when redefining the method. It will be easier to handle this if we drop support for Ruby 2.6 and below... 🤔


Suggest: indexing PSR's by type in php-fig.org/psr

PSR 0 Autoloading Standard
PSR 4 Autoloading Standard

PSR 1 Basic Coding Standard
PSR 2  Coding Style Guide
PSR 12 Extended Coding Style Guide
PSR 5 PHPDoc Standard

PSR 6 Caching Interface
PSR 16 Simple Cache

PSR 7 HTTP Message Interface
PSR 15 HTTP Middlewares
PSR 17 HTTP Factories

PSR 3 Logger Interface
PSR 11 Container Interface
PSR 8 Huggable Interface

...

Good idea; it needs some Sculpin-fu, though, so that we can drop the inclusion of the raw index.md file from fig-standards repo and use a dynamic table view.
Anyone feel free to pick this up, atm I don't have much time.


ERROR in<EMAIL_ADDRESS>

After updating from Angular 7 to 8 and deleting rxjs-combat this error appears.
ERROR in<EMAIL_ADDRESS>Module not found: Error: Can't resolve '@progress/kendo-angular-common' in 'C:\Users\user\Git\chat\client\node_modules\@progress\kendo-angular-popup\dist\fesm5'

that a kendo deps that you should install too

@aitboudad what is kendo deps?

the new version of kendo require installing the following dependencies:
npm install --save @progress/kendo-angular-common @progress/kendo-angular-popup


Use require.resolve to serve livereload-js

The previous implementation depended on livereload-js being installed into the 'node_modules' directory of this project.
On more complex projects with multiple dependencies that depend on livereload-js, NPM will install livereload-js to the root node_modules directory, resulting in the fixed path used here to be incorrect.
Node supplies require.resolve as a method to determine the location of a dependency script.  This PR replaces the hard-coded path with require.resolve to ensure we load the script from wherever it is installed.
This should resolve this issue

Beat you to it 😉 #142

Beaten to the punch by https://github.com/napcs/node-livereload/pull/142


Objects need a speed cap

At the moment you can end up with thrown items bouncing around at insane speeds, fast enough they're jumping from one part of the screen to another.

Added to physics megathread #3464 - Closing.


llama-cpp: 2105 -> b2130

Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

all builds failed. version is wrong, and llama-cpp will get an auto-update request soon, similar to: https://github.com/NixOS/nixpkgs/pull/287359 and i think that leaving this open can prevent the bot from submitting an update.
https://ryantm.github.io/nixpkgs-update/nixpkgs-maintainer-faq/#nixpkgs-maintainer-faq


Fixes #1807

@justinedelson not sure why I had to include google.commons all of a sudden to get the bundle to start in 6.4 (sp3).  Thoughts?

Pull Request Test Coverage Report for Build 4104

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

Totals

Change from base Build 4102:
0.0%

Covered Lines:
12766

Relevant Lines:
24944

💛  - Coveralls

This is weird indeed. We use this for ages.
com.adobe.acs.commons.* as private package? Won't we block off all references then?

My guess is that this is a regression introduced by the shade plugin. Would probably be better to revert that instead of introducing a workaround on top of it. I can look more on Monday.

I think #1815 is a more idiomatic solution to this.


Change the scale factor when clicking on the + button?

How do I change how much the pdf is scaled up when you zoom in with the + button?
Thanks a lot!

You will need to modify DEFAULT_SCALE_DELTA, see https://github.com/mozilla/pdf.js/blob/4aac324558829e26020c0fa4d56efb37b8599ad5/web/app.js#L102 and https://github.com/mozilla/pdf.js/blob/4aac324558829e26020c0fa4d56efb37b8599ad5/web/app.js#L343-L351.
Closing as answered.

Ok, great. Thanks a lot Jonas!
----- Original Message -----
From: Jonas Jenwald
To: mozilla/pdf.js
Cc: Manmade ; Author
Sent: Friday, April 22, 2016 6:32 PM
Subject: Re: [mozilla/pdf.js] Change the scale factor when clicking on the + button? (#7238)
You will need to modify DEFAULT_SCALE_DELTA, see https://github.com/mozilla/pdf.js/blob/4aac324558829e26020c0fa4d56efb37b8599ad5/web/app.js#L102 and https://github.com/mozilla/pdf.js/blob/4aac324558829e26020c0fa4d56efb37b8599ad5/web/app.js#L343-L351.
Closing as answered.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub


Usability: Hide checkbox when irrelevant

The "Use multiple testing correction" checkbox is visible and enabled by default. Confusingly, this checkbox has no effect at all unless the user clicks "Add another group" to append 2nd variation.
This change hides the checkbox in scenarios where it does not affect the calculation (<=1 variation).

Thanks for fixing that!


enable orders of reproductions with framing / mounting

English translations for Christmas warnings
If you wish a reproduction with a passe-partout or a frame to be ready before Christmas, make sure to place your order before December 8th.
For a reproduction without a frame or a passe-partout to be ready before Christmas, place an order before December 15th.


'selection' and 'rowSelect' properties don't work with Ajax

'selection' and 'rowSelect' properties don't work with Ajax
settings:
$("#grid-basic").bootgrid({
ajax: true,
url: "response.php",
selection: true,
multiSelect: true,
rowSelect: true
});

putting data-type to 'string' in the identifier column solved the issue
ID


More io-queue metrics

Adds metrics for:

io-sink queue length
io-queue: Number of times dispatch was throttled by per-tick dispatch limit
io-queue: Number of times dispatch was throttled by the tokenbucket

Most patches intentionally kept rather simple (also in regards to upstreaming). The last commit (differentiating between disk feedback driven throttling and rate based throttling) could be dropped though I think it's useful.

Looks like half of this is already out of date because of https://github.com/scylladb/seastar/pull/1766/files
I will probably remove the parts that we'd just have to remove later again (24.1).

See also https://github.com/redpanda-data/redpanda/issues/13824#issuecomment-1936780971

Closing this. Will need rework for new io scheduler.


PR to Zeek for the UUID/Endpoint Mapping

First great work! This is awesome.
Have you all thought about creating a PR to Zeek for the UUID & Endpoint mappings you all have in this project?
The BZAR project adds 144 more Microsoft DCE-RPC Interface UUIDs (a.k.a. "endpoints") to the Bro/Zeek DCE_RPC::uuid_endpoint_map.

The BZAR project also adds 1,145 Microsoft DCE-RPC Interface Methods (a.k.a. "operations") to the Bro/Zeek DCE_RPC::operations.

reference:
https://github.com/mitre-attack/bzar#additional-dce-rpc-interfaces-and-methods
reference added things:
https://github.com/mitre-attack/bzar/blob/4be8432b43445b79e00e5a52144ed44486a4aefd/scripts/bzar_dce-rpc_consts.bro#L261
https://github.com/mitre-attack/bzar/blob/4be8432b43445b79e00e5a52144ed44486a4aefd/scripts/bzar_dce-rpc_consts.bro#L420

Totally agree here — Mark, those mappings are a terrific contribution, and the open-source project would love to adopt them if you're up for that.

https://github.com/zeek/zeek/issues/953

@mfrndz would it be okay for that code to be redistributed under the Zeek BSD license ?

Thank you very much for the feedback and the compliments.  We are looking into it.  I think it should be ok, just need to confirm with corporate.  Hope to respond soon.

@l0x-c0d3z I changed the license from Apache to BSD.  You should be good to go to redistribute under the Zeek BSD license.

Thanks a lot !

My PR over at Zeek has been merged: https://github.com/zeek/zeek/pull/954
I think we can close this. Thanks again.


The predict results using java and python is different

My graph contains the following statements:
tf.contrib.layers.batch_norm(incoming, is_training=is_training, scale=True, decay=0.99)
 tf.contrib.layers.dropout(incoming, keep_prob=keep_prob, is_training=is_training)
When the variable is_training is set to True, the saved model give the same result using Java and Python. The result is right.
But, when the variable is_training is set to False, the saved model give different result using Java and Python.  Java give a wrong result.
Why does this happen?
Tensorflow:1.2.0
OS: centos7
Java:Sun jdk <IP_ADDRESS>
Python:3.4.5

That's interesting. Do you happen to have a full repro case?

@Kitter : Is there any more information you can provide?  A more complete example to help reproduce the problem will help. Can you share the saved model and the code you're using to load and execute it in Java and/or Python?

@asimshankar :
python code:
encoder_size = 64
decoder_size = 17
model_file='/test/model.pb'
with tf.gfile.FastGFile(model_file, 'rb') as f:
    graph_def = tf.GraphDef()
    graph_def.ParseFromString(f.read())
    _ = tf.import_graph_def(graph_def, name='')

with tf.Session() as sess:
    input_feed={}
    file_name = "/test/test.png"
    img = Image.open(file_name)
    im = img.convert('L')
    im = np.asarray(im, dtype=np.uint8)
    imdata = np.array([[im]], dtype=int)
    input_feed['img_data:0']= imdata
    input_feed['zero_paddings:0']= np.zeros(shape=[1, 1, 512], dtype=float)
    for l in range(int(encoder_size) - 1):
        input_feed['encoder_mask'+str(l)+':0'] = np.array([[1]], dtype=float)
    input_feed['encoder_mask'+str(int(encoder_size) - 1)+':0'] = np.array([[0]], dtype=float)
    input_feed['decoder0:0'] = np.array([1], dtype=int)
    outputs= []
    decoders = []
    for l in range(int(decoder_size)):
        if l == 0:
            decoder = sess.graph.get_tensor_by_name('model_with_buckets/embedding_attention_decoder_3/attention_decoder/AttnOutputProjection/AttnOutputProjection/BiasAdd:0')
        else:
            decoder = sess.graph.get_tensor_by_name('model_with_buckets/embedding_attention_decoder_3/attention_decoder/AttnOutputProjection_' + str(l) + '/AttnOutputProjection/BiasAdd:0')
        decoders.append(decoder)
    decoders=sess.run(decoders,input_feed)
    decoders=np.argmax(decoders, 2)
    for output in decoders:
        outputs.append(output[0])
    print(outputs)

Java code:
   private static final int DECODER_SIZE = 17;
   private static float[][][][] convertImageToArray(BufferedImage bf) {
        int width = bf.getWidth();
        int height = bf.getHeight();
        int[] data = new int[width * height];
        bf.getRGB(0, 0, width, height, data, 0, width);
        float[][][][] rgbArray = new float[1][1][height][width];
        for (int i = 0; i < height; i++) {
            for (int j = 0; j < width; j++) {
                rgbArray[0][0][i][j] = data[i * width + j];
            }
        }
        return rgbArray;
   }

   String imageFilePath = "/test/test.png";
   String modelDir="/test/model.pb";
   byte[] graphDef = Files.readAllBytes(Paths.get(modelDir));
   File imageFile = new File(imageFilePath);
   BufferedImage im = ImageIO.read(imageFile);
   float[][][][] imgData = convertImageToArray(im);
   Graph g = new Graph();
   g.importGraphDef(graphDef);
   Session s = new Session(g);
   String imageData = "img_data";
   String decodeName = "decoder0";
   int encoderSize = 64;
   String zeroPaddingName = "zero_paddings";
   Runner runner = s.runner().feed(imageData, Tensor.create(imgData));
   runner = runner.feed(decodeName, Tensor.create(new int[]{1}));
   runner = runner.feed(zeroPaddingName,  Tensor.create(new float[1][1][512]));
   for(int index = 0; index < encoderSize; index++){
        float[][] encoderMask = new float[1][1];
        encoderMask[0][0] = 1;
        if(index == encoderSize - 1) encoderMask[0][0] = 0;
        String encoderMaskName = "encoder_mask" + index;
        runner = runner.feed(encoderMaskName, Tensor.create(encoderMask));
    }
   String outputName;
   int[] encodes = new int[DECODER_SIZE];
   String prefix = "model_with_buckets/embedding_attention_decoder_3/attention_decoder/AttnOutputProjection";
   for(int index = 0; index < DECODER_SIZE; index++){
       if(index == 0){
           outputName = prefix + "/AttnOutputProjection/BiasAdd";
       } else {
           outputName = prefix + "_" + index + "/AttnOutputProjection/BiasAdd";
       }
       runner.fetch(outputName);
    }
   List<Tensor> tensorList = runner.runAndFetchMetadata().outputs;
   s.close();
   for(Tensor result : tensorList){
      final long[] rshape = result.shape();
      if (result.numDimensions() != 2 || rshape[0] != 1) {
          throw new RuntimeException(String.format(
              "Expected model to produce a [1 N] shaped tensor where N is the number of labels, instead it produced one with shape %s",
              Arrays.toString(rshape)));
      }
      int charNum = (int) rshape[1];
      float[] outputs = result.copyTo(new float[1][charNum])[0];
      int bestLabelIdx = maxIndex(outputs);
      int index = tensorList.indexOf(result);
      encodes[index] = bestLabelIdx;
   }

saved model

@Kitter still working on my first coffee, so forgive me if this first blush is wrong, but it looks like your Python code is converting the image data to grayscale (im = img.convert('L')) whereas i don't see any color space affectation in the Java code.
If that blush is wrong, does everything look equal if you dump the Python generated pixel array data and compare it to a dump of the Java generated pixel array data?
Also, purely out of curiosity, why choose PIL operations instead of the TF image operations?

@quaeler  I add converting of image grayscale  in Java code, the result is the same as before. There is no improvement.

@Kitter can you put your test.png some place from where it can be downloaded; also, could you post the code with which you did the Java BI grayscale conversion? Also, also, did you do a pixel array dump from each Python and Java and compare the values?

@quaeler
Java BI grayscale conversion code:
	BufferedImage grayImage = new BufferedImage(width, height, BufferedImage.TYPE_BYTE_GRAY);
	for (int i = 0; i < width; i++) {
		for (int j = 0; j < height; j++) {
			int rgb = bf.getRGB(i, j);
			grayImage.setRGB(i, j, rgb);
		}
	}

image file :test.png
It is strange that Java and Python use  the model_true.pb (is_training is set to True),  the result is same.

Thanks for the assets.
I'm sorry to be hung up on this, but we're on board with the pixel values being used in Python and Java being wholly different - ya? (The values in the Python ndarray are nicely in the 0-255 range however the Java values being returned from BI are bitwise'd 8-bit R, G, B (and probably A since this is a PNG) resulting in the 'float' values being in the general region of -1.4E7 range.)
(I'm spinning down for the day - will try to look at the saved models tomorrow.)

@quaeler
Thanks for your help.
This is my fault.I tried using tensorflow‘s API to read the picture file. I got the right result.

@Kitter
Could you please tell me which tensorflow's API you use to read the picture file in java? Thank you!


Kanban board setup

There are 3 people in our team project as follows:

Team member 1 is @mhnazary
Team member 2 is @BenMKT
Team member 3 is @SnakyMz

Link to the project

STATUS: APPROVED 🟢 ✔
Hi team 👋,
Your project is complete!  There is nothing else to say other than... it's time to start building :shipit:
Congratulations! 🎉

Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


no module named transforms3d.quaterions

i got this issue when i run demo.sh without compiles the optional part. is it must be  installed？

Install transforms3d by "pip install transforms3d"

Thanks a lot!


[WIP] Crop Image before upload

**Added crop image activity after images are selected for upload **
Fixes #1192 Option to edit the image within the app
Progress till now

Added the cropping library https://github.com/ArthurHub/Android-Image-Cropper
Implemented the feature in case of single image
Update Uri of uploaded item in case of image cropped
Created a grid view activity in case of editing multiple images
CropImage activity also implemented for multiple images

Change's yet to be made

A better UI for Image list in case of multiple images
Effective way for retrieving Uri of each cropped image in case of multiple images
Updating the UploadItem object with the Uri of cropped image effectively so as not to hamper the functioning of other code (in case of multiple images)

Screenshot for edit icon in Upload Activity:

Crop Image

Codecov Report

Merging #2542 into master will decrease coverage by 0.04%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #2542      +/-   ##
=========================================
- Coverage    5.89%   5.85%   -0.05%
=========================================
  Files         258     260       +2
  Lines       12306   12398      +92
  Branches     1103    1113      +10
=========================================
  Hits          726     726
- Misses      11521   11613      +92
  Partials       59      59

Impacted Files
Coverage Δ

...ava/fr/free/nrw/commons/upload/UploadActivity.java
0% <0%> (ø)
:arrow_up:

...va/fr/free/nrw/commons/upload/UploadPresenter.java
10.36% <0%> (-0.63%)
:arrow_down:

.../java/fr/free/nrw/commons/upload/ImageAdapter.java
0% <0%> (ø)

...n/java/fr/free/nrw/commons/upload/UploadModel.java
31.11% <0%> (-0.71%)
:arrow_down:

...fr/free/nrw/commons/upload/EditUploadActivity.java
0% <0%> (ø)

Continue to review full report at Codecov.

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

@maskaravivek @nicolas-raoul @ujjwalagrawal17 Can you please review the current changes :)
Once these changes seem satisfactory I'll continue the work ahead to complete this PR :)

Looks good so far :-)

@nicolas-raoul I have updated the PR for multiple images. Here is a report of the progress so far.
Work Completed

Cropping image for single upload
Directing to a new activity (to display list of images) in case of multiple upload
Selecting images for crop and Cropping activity

Work yet to be completed

Improve UI of Image GridView
Finalise the position of Edit Icon in upload activity

Screenshots showing the change

Crop works perfectly for me.
@vanshikaarora Was there a discussion about putting the edit icon in the bottom sheet view? I thought initially we agreed about putting it in the middle view which contains a map icon.
@nicolas-raoul Should the cropped image contain the original EXIF?

I think the cropped image should contain the original EXIF, yes.

I don't think there was a discussion about it, but personally I love the edit icon in the bottom sheet view :-)
The right side map component could be put there too, in order to hide the image less.

I think the cropped image should contain the original EXIF, yes.

@vanshikaarora  Can you check if original EXIF is being persisted.
You can either use any EXIF viewer android app.

I don't think there was a discussion about it, but personally I love the edit icon in the bottom sheet view :-)

Okay cool.
The right side map component could be put there too, in order to hide the image less.
This can be picked as a separate issue.

Can you check if original EXIF is being persisted.

I'll do that :+1:

This can be picked as a separate issue.

@maskaravivek @nicolas-raoul Shall I create a separate issue for that?

Shall I create a separate issue for that?

Yes thanks no need to ask :-)

@vanshikaarora Can you check if original EXIF is being persisted.

@maskaravivek @nicolas-raoul I just verified the code and found that the EXIF data isn't persisted in the image.
Since we need to check for EXIF we can call the function validate image the very first time image was uploaded.
Shall I update the code this way or you have other opinion in mind. Please share your opinion :)

The EXIF is important for the future after the image, even years after it has been uploaded.
This might give some hints: https://stackoverflow.com/questions/8972357/manipulate-an-image-without-deleting-its-exif-data

The EXIF is important for the future after the image, even years after it has been uploaded.
This might give some hints: https://stackoverflow.com/questions/8972357/manipulate-an-image-without-deleting-its-exif-data

@nicolas-raoul I have gone through the code I think it would be better to add the functions inside the ReadEXIF.java class. It would be good if #2581 is merged before I work upon exif changes here. Can you please review that PR :)

@nicolas-raoul Also for adding this feature i need to add a new library org.apache.commons.imaging. Do you have any other alternative or should I proceed forward with this?

@nicolas-raoul Also for adding this feature i need to add a new library org.apache.commons.imaging. Do you have any other alternative or should I proceed forward with this?

Can you elaborate on why the library would be needed?

@maskaravivek https://github.com/apache/commons-imaging here is the library that needs to be imported

commons-imaging is used by the second solution at https://stackoverflow.com/a/36675321/226958 but the author of that second solution wrotes that the first solution is more memory-efficient, and the first solution does not seem to require any extra library, relying only on standard java libraries apparently.

Thanks @nicolas-raoul. I'll use the first solution :+1:

@nicolas-raoul the first solution uses ImageIO which is not a part of the java standard library :(
Shall I add the ImageIO library to the project?

Isn't it this standard Java library?
https://docs.oracle.com/javase/7/docs/api/javax/imageio/ImageIO.html

Isn't it this standard Java library?
https://docs.oracle.com/javase/7/docs/api/javax/imageio/ImageIO.html

No, I can't import this.
Also the answer at stack overflow https://stackoverflow.com/a/16813721/10595971

Oh :-/
I guess we have no choice but to use the second solution then?
The JAR is 690KB.
https://repo.adobe.com/nexus/content/repositories/public/org/apache/commons/commons-imaging/1.0-R1401825/commons-imaging-1.0-R1401825.jar
On Mon, Mar 18, 2019 at 7:15 PM Vanshika Arora<EMAIL_ADDRESS>wrote:

Isn't it this standard Java library?
https://docs.oracle.com/javase/7/docs/api/javax/imageio/ImageIO.html
No, I can't import this.
Also the answer at stack overflow
https://stackoverflow.com/a/16813721/10595971
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/commons-app/apps-android-commons/pull/2542#issuecomment-473849452,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGFBpeKjs01KjUKm-Ght6X_Zw-cFaxjks5vX2c2gaJpZM4bfEH9
.

@nicolas-raoul For either of the solutions we need to download the jar file. So we can continue with the second solution

Hey @maskaravivek this PR works perfectly for me. However travis-ci fails because of migration to androidx and android.enableJetifier=true do you have any solution for this?

Hey @maskaravivek @nicolas-raoul, the present Issues with this PR is
android.useAndroidX=true
android.enableJetifier=true

in gradle.properties
I tried to blacklist it using the comment 9 here https://issuetracker.google.com/issues/119135578#comment9
But that couldn't resolve it
WARNING: The option setting 'android.jetifier.blacklist=commons-imaging-1.0-R1401825.jar' is experimental and unsupported.

Can you please look into this?

Seems like we are a lot late to merge this perfectly working and quite complex pull request. This requires somonel to fix te conflix and should be retested again. But overall it is very ready to be merged.

@vanshikaarora Let us know if you are still working on this.

@vanshikaarora Let us know if you are still working on this.

Closing for now, please feel free to reopen :)

Closing for now, please feel free to reopen :)


Transfer files from Project 1 to Project 2. Update file paths.

Update file paths (anything that starts with "./") in main.handlebars and homepage.handlebars

Update README

completed issue.


Add broadcast_min to config.json

A minimal amount that can be send.
Normal peer won't forward block if amount is under the minimum.
Voting peers won't vote for it or will vote negative.

Recieve minimum is enough IMO
Divisibility is one of coin features

There is already the POW requirement for every tx.


How to know the custom component's position in a scollView?

I want to adjust the position of textInput when the keyboard appear.  While in Objective-C, there are many ways to do. But here in React Native, I could not found the API that similar to Objective-C。So, i wander if anyone who figure it out and please tell me .

I want to adjust the position of textInput when the keyboard appear.  While in Objective-C, there are many ways to do. But here in React Native, I could not found the API that similar to Objective-C。So, i wander if anyone who figure it out and please tell me .

Try using the onLayout prop on your component. The information should be there.


Next month button does not work if the date selection on previous month is greater than today's date

Usecase:
I am using svelte-calendar with a cap of end date as today.
import { InlineCalendar } from 'svelte-calendar';
<InlineCalendar end={new Date()} />
Output:
The next month button on calendar does not work if the date selection on previous month is greater than today's date.
Steps to replicate:
Step 1: Go to previous month.
Step 2: Select a date on previous month (say 11 April) with is greater than today's date number (10 May)
Step 3: Click on the next button.
Step 5: Calendar will not allow you to go to next month.
Step 6: Change the date to a lesser date than todays or same date number (say 10th April).
Step 7: Click on the next button. Calendar will allow you to got to next date.
Expected:
Calendar should allow to go to next date
https://github.com/6eDesign/svelte-calendar/assets/54344612/77d70c21-3e41-4e41-90ef-8664c1795c8b

Same issue here with $store.start = today; using Datepicker but for the previous month.


List index out of range fix, remove default QR message if text files are available and file housekeeping

Hello!
I'm planning on taking my Badger2040 to an event soon and in doing so, needed to update the QR codes that were available for display in qrgen.py. In setting up the new files, I ended up with one fewer file than I had previously uploaded and so when trying to display the QR codes from the launcher, instead of seeing the first QR code, I received a warning saying "List index out of range".
After some debugging, I discovered that this was because the state/qrcodes.json file had remembered the last QR code viewed and that the index of this was now higher than the count of text files in the qrcodes folder.
Commit eb7eaae loads the state, checks to see if the last viewed index is in range and if the index isn't, set it in range. Finally, saving the state back.
It is a little annoying for the demo QR code to show, regardless of whether QR code files have been uploaded, so commit  77ee234 checks to see if there are any QR code text files in the qrcodes directory and only create the demo screen file if there aren't any.
I also noticed that files are being opened on screen refresh but not closed. I don't know if micropython automatically closes these file handles after a set period (like garbage collection) but commit 9aedf16 closes them explicitly, in case these aren't tidied up automatically.

I probably should have created this in a separate branch (or multiple branches), so will wait for review.

This looks like a great set of changes, thank you! A set of clean commits in a single branch is perfect. (Though, yes, for your own purposes you might want to work on a feature branch, but it doesn't make a lick of difference to me.)
Few little things-

First check the results of the Python linting, Thonny has a habit of spamming whitespace everywhere and that needs to be removed to pass
newQRcodeFilename should be new_qr_code_filename since snake_case is the convention for variable names in Python
File paths should be prefixed with / - I know we don't do this everywhere, but this tripped me up while working on Badger 2040W since Thonny will do something like os.chdir when you browse the filesystem and really trip up examples with relative paths. Eg open("qrcodes/{}"... should be open("/qrcodes/{}"...
You can use f-strings in lieu of format, eg: text = open("qrcodes/{}".format(newQRcodeFilename), "w") can be text = open(f"qrcodes/{newQRcodeFilename}", "w")

Thank you!

Thank you @Gadgetoid for your feedback!
I've installed flake8 on my dev machine and have fixed up (or attempted to!) the warnings that it presented. I've also made the changes in your feedback. :)

Great stuff, thank you! Just got a chance to test and it works nicely.