More on getindex/setindex in at-batch

This is a follow-up on #14.
julia> using Pkg; Pkg.status("CheapThreads")
      Status `~/.julia/environments/v1.6/Project.toml`
  [b630d9fa] CheapThreads v0.1.9

julia> using CheapThreads

julia> Threads.nthreads()
2

julia> function bar!(dest, src)
           @batch for i in eachindex(src)
               dest.src[i] = src[i]
           end
       end
bar! (generic function with 1 method)

julia> src = rand(100); dest = (; src = similar(src));

julia> bar!(dest, src)
ERROR: UndefVarError: src not defined
Stacktrace:
 [1] macro expansion
   @ ~/.julia/packages/CheapThreads/G9ro0/src/closure.jl:154 [inlined]
 [2] (::CheapThreads.Closure{CheapThreads.Expression{:for, (CheapThreads.Expression{:(=), (:i, CheapThreads.Expression{:call, (Colon(), Symbol("##LOOPSTART##"), Symbol("##LOOP_STEP##"), Symbol("##LOOP_STOP##"))}())}(), CheapThreads.Expression{:block, (nothing, CheapThreads.Expression{:(=), (CheapThreads.Expression{:ref, (CheapThreads.Expression{:., (:dest, :src)}(), :i)}(), CheapThreads.Expression{:ref, (:src, :i)}())}())}())}(), (Symbol("##LOOPOFFSET##"), Symbol("##LOOP_STEP##"), :dest)})(args##::Tuple{Static.StaticInt{0}, Static.StaticInt{1}, NamedTuple{(:src,), Tuple{Vector{Float64}}}}, SUBSTART##::Int64, SUBSTOP##::Int64)
   @ CheapThreads ~/.julia/packages/CheapThreads/G9ro0/src/closure.jl:143
 [3] macro expansion
   @ ~/.julia/packages/CheapThreads/G9ro0/src/batch.jl:74 [inlined]
 [4] _batch_no_reserve(::CheapThreads.Closure{CheapThreads.Expression{:for, (CheapThreads.Expression{:(=), (:i, CheapThreads.Expression{:call, (Colon(), Symbol("##LOOPSTART##"), Symbol("##LOOP_STEP##"), Symbol("##LOOP_STOP##"))}())}(), CheapThreads.Expression{:block, (nothing, CheapThreads.Expression{:(=), (CheapThreads.Expression{:ref, (CheapThreads.Expression{:., (:dest, :src)}(), :i)}(), CheapThreads.Expression{:ref, (:src, :i)}())}())}())}(), (Symbol("##LOOPOFFSET##"), Symbol("##LOOP_STEP##"), :dest)}, ::UInt8, ::UInt32, ::UInt8, ::UInt64, ::UInt64, ::UInt64, ::Static.StaticInt{0}, ::Static.StaticInt{1}, ::NamedTuple{(:src,), Tuple{Vector{Float64}}})
   @ CheapThreads ~/.julia/packages/CheapThreads/G9ro0/src/batch.jl:50
 [5] batch(::CheapThreads.Closure{CheapThreads.Expression{:for, (CheapThreads.Expression{:(=), (:i, CheapThreads.Expression{:call, (Colon(), Symbol("##LOOPSTART##"), Symbol("##LOOP_STEP##"), Symbol("##LOOP_STOP##"))}())}(), CheapThreads.Expression{:block, (nothing, CheapThreads.Expression{:(=), (CheapThreads.Expression{:ref, (CheapThreads.Expression{:., (:dest, :src)}(), :i)}(), CheapThreads.Expression{:ref, (:src, :i)}())}())}())}(), (Symbol("##LOOPOFFSET##"), Symbol("##LOOP_STEP##"), :dest)}, ::Tuple{Int64, Int64}, ::Static.StaticInt{0}, ::Static.StaticInt{1}, ::NamedTuple{(:src,), Tuple{Vector{Float64}}})
   @ CheapThreads ~/.julia/packages/CheapThreads/G9ro0/src/batch.jl:178
 [6] macro expansion
   @ ~/.julia/packages/CheapThreads/G9ro0/src/closure.jl:3 [inlined]
 [7] bar!(dest::NamedTuple{(:src,), Tuple{Vector{Float64}}}, src::Vector{Float64})
   @ Main ./REPL[4]:2
 [8] top-level scope
   @ REPL[6]:1

Looks like I'm really stressing this macro while trying to use it for Trixi.jl. I hope that's okay for you, @chriselrod, and does not become annoying.

I hope that's okay for you, @chriselrod, and does not become annoying.

Maybe it'll encourage me to write less buggy code. ;)
I appreciate all the easy to reproduce issues and your willingness to take the plunge into a relatively experimental package.
I'd like it to become robust eventually, and this is the easiest way to get it there.

Great! Then I will continue to test CheapThreads.jl and ping you whenever something is not working as expected. I guess we will have quite a good coverage of for loops (for numerical PDE algorithms) to stress @batch


1.1.1 斐波那契数列 | Computer Cookbook School Recruitment

https://school-recruitment.grayson.top/public/docs/algorithm/1算法框架/1.1-动态规划/1.1.1-斐波那契数列/

测试


Add validations to workload

What type of PR is this?
/kind feature

What this PR does / why we need it:
Which issue(s) this PR fixes:

Part of https://github.com/kubernetes-sigs/kueue/issues/171
Special notes for your reviewer:

still a draft?

Updated.

/lgtm
/approve


Doesn't work on iOS14.1 | Xcode 12.1 | WatchOs 7.0.1

It's very weird. These codes is everything work on my simulator but doesn't work on my device.

Yeah, I wrote it 2 years ago and just never got around to updating it. Apple may have changed how they handle this process on the devices. I'll look into getting you an answer by this weekend.

Yeah, I wrote it 2 years ago and just never got around to updating it. Apple may have changed how they handle this process on the devices. I'll look into getting you an answer by this weekend.

Thank for your reply , I've solve the problem last night. Maybe it's bug of Xcode 12.1  , It's work when I switch project's build configuration  from debug to release mode.


Roll Flutter Engine from c838a1b05924 to 45c2cf5fa00d (5 revisions)

https://github.com/flutter/engine/compare/c838a1b05924...45c2cf5fa00d
2023-06-03<EMAIL_ADDRESS>Roll Skia from 98da8d7a299d to 0e80a97ccee3 (1 revision) (flutter/engine#42541)
2023-06-03<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from VtLnfLmVda1_h1AtM... to Bb9z8SjSCzRN6SVee... (flutter/engine#42538)
2023-06-03<EMAIL_ADDRESS>Roll Skia from 656de7fc6994 to 98da8d7a299d (1 revision) (flutter/engine#42537)
2023-06-03<EMAIL_ADDRESS>Roll Fuchsia Mac SDK from gcm-vsCu6IPUZZnN0... to vVgQ12wNh2DIT_hV7... (flutter/engine#42536)
2023-06-03<EMAIL_ADDRESS>Manual roll Dart SDK from d198f84f5e4e to d00a370c1fd3 (3 revisions) (flutter/engine#42535)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from VtLnfLmVda1_ to Bb9z8SjSCzRN
fuchsia/sdk/core/mac-amd64 from gcm-vsCu6IPU to vVgQ12wNh2DI
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


fix: Fix log import issues

There are three files that not set log alias correctly, which lead to throw static typecheck errors from GitHub.

Btw, this pull request addressed import alias issues in the issue #499. However, other type errors seem to be due to problems with the GitHub type checker, so I suggest to ignore them.


The user guide is too old

I tried to read the user guide, but found that many functions do not exist, can you provide a new user guide, or different versions of the modification instructions
such as from neuralop.models.spectral_convolution import FactorizedSpectralConv
from neuralop.data.datasets import load_darcy_flow_small

User guide doesn't agree with release docs as mentioned in another issue. Perhaps a versioned user guide is what we need ?

Hi @James-F1dev , 0.3.0 is not the most current version of neuraloperator - please retry with the new 1.0.0 release!

Closing as updated in 1.0.0


issue

File "/home/zpf/anaconda3/envs/humannorm/lib/python3.8/site-packages/transformers/models/clip/modeling_clip.py", line 185, in forward
patch_embeds = self.patch_embedding(pixel_values.to(dtype=target_dtype))  # shape = [*, width, grid, grid]
File "/home/zpf/anaconda3/envs/humannorm/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/zpf/桌面/humanPF/memsave_torch/memsave_torch/nn/Conv2d.py", line 67, in forward
return conv2dMemSave(
File "/home/zpf/桌面/humanPF/memsave_torch/memsave_torch/nn/functional/Conv.py", line 115, in conv2dMemSave
return _MemSaveConv.apply(input, weight, bias, stride, padding, dilation, groups)
TypeError: forward() takes 7 positional arguments but 8 were given

Hi, could you please provide the code to reproduce this?
Are you using the provided converter memsave_torch.nn.convert_to_memory_saving() or directly using one of the layer classes?


 Videos aren't responsive.

Can you share some examples of the ones that are not responsive? I can work
to make the responsive CSS more aware of these cases.
Since the "fancypants" theme uses Bootstrap as its core HTML and CSS
markup, the Bootstrap guide shows some handy tricks for ensuring that
images and videos will be responsive.
for images: http://getbootstrap.com/css/#images
for videos: http://getbootstrap.com/components/#responsive-embed
These methods ought to work just fine wherever you use them on the site.
Let me know if you have trouble with them. Meanwhile, I'll take a look at
any examples of what's not currently working and add provisions for those
sorts of things.

Thanks for those links, I'll check out the knowledge base.
The most recent Eat Read (sorry I'm on my phone so no link) is
interesting-- it has a responsive and not responsive image in it.
All the comics are responsive, I think.
The Scene Report is not responsive.
In general, they aren't. I'm always pleasantly surprised when they are.
Let me know if you need more, and I'll read those links.
On Saturday, January 17, 2015, Dylan Kinnett<EMAIL_ADDRESS>wrote:

Can you share some examples of the ones that are not responsive? I can work
to make the responsive CSS more aware of these cases.
Since the "fancypants" theme uses Bootstrap as its core HTML and CSS
markup, the Bootstrap guide shows some handy tricks for ensuring that
images and videos will be responsive.
for images: http://getbootstrap.com/css/#images
for videos: http://getbootstrap.com/components/#responsive-embed
These methods ought to work just fine wherever you use them on the site.
Let me know if you have trouble with them. Meanwhile, I'll take a look at
any examples of what's not currently working and add provisions for those
sorts of things.
—
Reply to this email directly or view it on GitHub
https://github.com/real-pants/Real-Pants/issues/73#issuecomment-70386616
.

Starting with the first example, the most recent Eat Read...
The author entered a caption for the first (responsive) image, but not for the (unresponsive) second. This causes Wordpress to use different markup, for the different cases. The theme was built to prefer images that have captions, so I'll add a provision for what to do if a caption is not included with an image. I suspect the fix for this will apply likewise to the other examples you gave.

Images should be fixed by the last commit, but you also mentioned videos.


Password Reset Emails don't come if Authenticated via Python Social Auth

All the emails that are registered through python-social-auth backend do not have any passwords set in their account.
If the same users try to reset their password from the from, they do not get email in their mailbox, the users who registered via django backend receive the email properly.
How do we sort out this issue? I do not want to ask users for password when they are registering.

Hello,
Look at https://github.com/django/django/blob/master/django/contrib/auth/forms.py#L235. Django in it's default password reset form filters out users who do not have set usable password. The problem is users registered via python-social-auth does not.
You can fix this by overriding get_users method from default form and deleting that part of code.

Thanks!

Hello,
Look at https://github.com/django/django/blob/master/django/contrib/auth/forms.py#L235. Django in it's default password reset form filters out users who do not have set usable password. The problem is users registered via python-social-auth does not.
You can fix this by overriding get_users method from default form and deleting that part of code.

Hi dear can you please guide with the comprehensive code required to do so instead of referring to the link any help is highly appreciated


Add notificationArn to a Cdk Stack

This doesn't apply to a Stack type (Stack cannot be cast to software.amazon.awscdk.CfnResource).
How can I add notificationArns to a Cdk Stack?
I see that this can be set on a CfnStack but it isn't clear whether to convert between the two or something else. I might be missing something obvious.

CfnStack represents a nested stack while Stack currently only represents a top-level stack. You can only define notificationArns on nested stacks.


Dropdown widget value don't  immediately reflected in Template

Technical
WATT / VSC
Description
Dropdown widget don't  immediately reflected in Template after change the value.
Steps to reproduce

Create a new project in Design Editor
Drag&Drop the DropDown widget
Attribute -> Element -> Add items

Expected behaviour
Immediately reflected in Template if change the value before Preview or Save
In case of Graph widget, if you change the "Graph X label"," Graph Y label" it apply in the Template.
Actual behaviour
Dropdown widget don't  immediately reflected in Template

All changes have been already merged. I think the issue can be close.

It's good working.
Thanks


a way to trigger "Edit metadata" interface in "read-only" (no Save) mode

For the purpose of establishing testing and timing of the web ui  we need to be able to trigger "Edit metadata" by dandibot user.  Ref:
I would feel insecure to grant that user full admin privileges.
We need some way, even if ad-hoc/hardcoded to work only for dandibot,  on web ui end to enable that.

transferring info from https://github.com/dandi/dandiarchive/issues/627

three options (in order of preference):

change to view metadata and make it completely readonly (i believe there is an option in the component to do this)
change to download metadata (and link to the metadata returned by the api)
disable this.

3 was implemented, but we should really consider 1.

Thanks @satra !  FWIW, I am not sure what "3. disable this" means exactly, and what I see is that "Edit metadata" is disabled for dandibot while in e.g. 000003:

disable is what has been implemented as a fix. it's not available except for an owner of the dandiset.

ideally for a non-owner it should become view metadata. the underlying component i believe can be made fully readonly.

For completeness, it seems like a "view metadata" button could always be there, with an "edit metadata" appearing only for those authorized to do so.
On the other hand, it would be simpler to just have one always-on button that switches from "view" to "edit" with authorization level.

To not waste space, I like "view" to "edit" switching button idea.


In-memory engine: add cross check task for data consistency verification

What is changed and how it works?

Issue Number: Ref #16141

What's Changed:
add cross check task for data consistency verification

This PR introduces cross check mechanism between in-memory engine and rocks engine to check data consistency periodically in a background worker.
To turn on it, modify cross-check-interval in range-cache-engine config to set the check interval.
It should not be turned on in a production environment as it has negative impact on performance.
Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

[x] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Release note

None

/retest-required

/test pull-unit-test

/retest-required

I think the overall check logic is correct but very complex. So of the complexity is due to handle safe_point change and I think to acquire a snapshot with target safe_point to avoid this dynamic changes.
BTW, not sure following check algorithm is doable: wrap both ime and rock iterator and filter all MVCC keys that is under safe_point, that both iterator should produce the same result. This should apply to both write and lock cf. For default cf, I think due to compact filter, there may be outdated KVs that should have been removed, so default cf should still be checked with write cf.

Using safe_point could be much easier. But it's a edge case, leading the check unable to discover some cases. BTW, it discovered a bug of safe point changes.

/retest-required

/retest


cindex equal 0

File "/home/corolth1/torchsurv/src/torchsurv/metrics/cindex.py", line 568, in _p_value_noether
raise ValueError(
ValueError: The standard error of concordance index must be a positive value.

Hi @tcoroller ,
I don't think the edits proposed are correct because it would lead to a division by 0 (https://github.com/Novartis/torchsurv/blob/57845ede441df4c20ea9dba3cd6c75f09376e981/src/torchsurv/metrics/cindex.py#L590).
The se should not be 0. Do you want to give me a reproducible code so I can check the error you got?

Sounds good, let me try to do a reproducible example

Unless we can do something like:
 (self.cindex - null_value) / (cindex_se  + eps) ?

I mean intuitively the c-index standard error should never be 0. I'm curious to know what can can lead to this!


Prepare Docker build context & other fixes

Prepare Docker build context
Fix cloudName in runK8()
Fix typo in README
Add index to docker build task name

But there is a problem with displaying K8s stages: only nodeLabel tasks are displayed in Jenkins. Will discuss it privately.

merged in diff pr

merged in diff pr


CL-545 | Add ECSTasks module

This PR includes a new module to handle ECS Tasks. While most ECS Tasks are handled through other dependent resources, there still exists an opportunity for an unhandled task to error out the AWS Nuke cleanup process. Details below.
Task Coverage

✅ When a task is launched within an ECS Cluster containing EC2 container instances, it will be cleaned up when the EC2 instance is removed from the cluster. While just removing the instance does not stop the task itself, its assumed that the EC2 instance will be promptly shut down, thus, eliminating the task.
✅ When a task is launched via an ECS Fargate Service, the task is removed by the cleanup of the ECS Service.
❌ When a task is launched as a standalone ECS Fargate task, outside of a service, it remains unhandled by AWS Nuke. This new module resolves this scenario.

Testing
Tests were performed to cover both existing handled tasks and those that have been found to be unhandled.
First, a standalone Fargate task was launched within a new cluster and the existing AWS Nuke was used to clean these resources up. A failure was thrown with a message about the running task:
ERRO[0036] There are resources in failed state, but none are ready for deletion, anymore.

us-east-1 - ECSCluster - arn:aws:ecs:us-east-1:008516074183:cluster/ecs-cluster-1682378325 - failed
ERRO[0036] ClusterContainsTasksException: The Cluster cannot be deleted while Tasks are active.
Error: failed

Then, using this new module, AWS Nuke was run again and it found the task and handled it as expected:
us-east-1 - ECSCluster - arn:aws:ecs:us-east-1:008516074183:cluster/ecs-cluster-1682379196 - would remove
us-east-1 - ECSTask - arn:aws:ecs:us-east-1:008516074183:task/ecs-cluster-1682379196/72e8dfd81f524b378034958b06d58ca8 -> arn:aws:ecs:us-east-1:008516074183:cluster/ecs-cluster-1682379196 - [ClusterARN: "arn:aws:ecs:us-east-1:008516074183:cluster/ecs-cluster-1682379196", TaskARN: "arn:aws:ecs:us-east-1:008516074183:task/ecs-cluster-1682379196/72e8dfd81f524b378034958b06d58ca8"] - would remove

Setup code
The following code was used to launch a standalone Fargate task. This code will be added to the infractl tests.
# Get default VPC ID
echo "getting default VPC ID"
VPC_ID=$(aws ec2 describe-vpcs --filters Name=isDefault,Values=true --query 'Vpcs[0].VpcId' --output text)

# Get default subnets as comma separated string
echo "getting default subnets"
SUBNETS=$(aws ec2 describe-subnets --filters Name=vpc-id,Values=$VPC_ID --query 'Subnets[*].SubnetId' --output text | tr '\t' ',')

# Get default security group
echo "getting default security group"
SECURITY_GROUP=$(aws ec2 describe-security-groups --filters Name=vpc-id,Values=$VPC_ID --query 'SecurityGroups[0].GroupId' --output text)

# Create an ECS cluster
echo "creating ECS cluster"
CLUSTER_NAME="ecs-cluster-$(date +%s)"
aws ecs create-cluster --cluster-name $CLUSTER_NAME
aws ecs list-clusters

echo "creating ECS task definition"
TASK_DEFINITION_NAME="ecs-task-$(date +%s)"
cat <<EOF > task-definition.json
{
  "family": "$TASK_DEFINITION_NAME",
  "networkMode": "awsvpc",
  "containerDefinitions": [
    {
      "name": "sleep",
      "image": "alpine",
      "cpu": 10,
      "memory": 128,
      "essential": true,
      "command": [
          "sleep", "360"
      ]
    }
  ],
  "requiresCompatibilities": [
    "FARGATE"
  ],
  "cpu": "256",
  "memory": "512"
}
EOF

aws ecs register-task-definition --cli-input-json file://task-definition.json
echo "listing ECS task definitions"
aws ecs list-task-definitions

# Run the task
echo "running ECS task"
aws ecs run-task --cluster $CLUSTER_NAME --task-definition $TASK_DEFINITION_NAME --launch-type FARGATE --network-configuration "awsvpcConfiguration={subnets=[$SUBNETS],securityGroups=[$SECURITY_GROUP],assignPublicIp=ENABLED}"

echo "listing ECS tasks"
aws ecs list-tasks --cluster $CLUSTER_NAME

@sstoops This worked for me as well.  No more errors while the task was running.


feat: global styles styled components

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Fixed issues (PRs without this will not be accepted)

Fixes #215

Changes

Moved global styles in base.css to base.ts using global styles of styled components

PR Checklist

[ ] Does your PR contain relevant tests that pass?
[ ] Is your code linted? yarn lint or yarn lint:fix
[ ] Does your code build correctly in ALL projects? yarn build

@tristanMatthias , @YagoMackay needs this so I'd appreciate if you could take a look soon and merge if ok.


[Help] Getting Unexpected Error - on Demo Notebook

I was running this notebook -
https://colab.research.google.com/github/dllllb/pytorch-lifestream/blob/master/demo/coles-emb.ipynb

I tried replacing it with the same given in the documentation and that leads to another Error -
Getting this error when trying to run the Demo, can someone help ?
Since the model params are saved in this notebook, I am not being able to explore the other notebooks either

Hello. This error is because of torch 2.x
ptls currently don't support it.
Please install torch<2
Some linked libraries may be also downgraded

Any chances to upgrade ptls for torch 2.x soon?

I wasn't able to downgrade all the packages on the colab environment, hence ran it in my local machine. It worked.
Thanks

A highlight, I want able to implement GPU acceleration in MacOS - via MPS
I tried this -


Loading Images Over HTTPS

I'm using parse-server to back a Swift iOS application and I'm getting 404 errors when trying to load images from a class.
My server is running behind https:// but the image URLs being produced are http://, resulting in a 404 being thrown in the logs when I attempt to load the image.
Can you please advise how I can get the URLs to correctly use https:// instead?

AFAIK https for images is not supported yet, or did I miss something? I tried to set publicServerURL to https, but no joy, images are loaded with http only (Parse Server 2.2.7, Android SDK 1.13.0)

@drew-gross seemed to stop the error, however the images still wouldn't work. I've now added a workaround that using the URL of the file and loading with NSData(contentsOfURL: url).
Whilst not ideal, it resolves this issue.


Support for Gemini Ai models

⚠ Please check that this feature request hasn't been suggested before.

[X] I searched previous Ideas in Discussions didn't find any similar feature requests.
[X] I searched previous Issues didn't find any similar feature requests.

🔖 Feature description
Very competitive pricing and multi modal ability makes gemini models a must have in the agent building process.
Hoping to test workflows and multi agent setup with gemini models, if this integration is added to the language model section.

https://aistudio.google.com/ the users can get an api key
Acknowledgements

[X] My issue title is concise and descriptive.
[X] I have searched the existing issues to make sure this feature has not been requested yet.
[X] I have provided enough information for the maintainers to understand and evaluate this request.

https://twitter.com/minimaxir/status/1796232299652251712?t=DRbA1p-Bfes3L6jLFRQC0Q&s=19
JSON mode with gemini models

sorry to keep coming back.
but this could be useful to integrate gemin modelsi:
https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/call-gemini-using-openai-library#call-chat-completions-api


Show additional download stats details in the release history view of the app center portal

Currently the portal only shows total downloads (and total unique users) since the release was published.  I want to be be able to dig down just a bit more into the download numbers from the portal page:
I want to see a daily/monthly trending graph (or at least numbers) of downloads for a given release.
I want to be able to view # downloads by selected date range (e.g., filter by date range)
I want to see # downloads by device segmentation (e.g., iphone 8, iphone 10, iphone 11, etc.)
I don't want to have to integrate analytics SDK into my app just for these simple stats (e.g., should be universally available vie app center portal)
Would be nice to be able to export/feed download data details into a PowerBI report.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Thanks @stiefelkater for the feedback. We are definitely considering this request and I will share more details with you once there is an update.


Build issue: Sporth - paulstretch.c

Paul,
I successfully built the dev branch of Soundpipe, installed and tested it with test.wav output.
When I try to make Sport, it bombs on paulstretch.c as follows:
cc -O3 -fPIC -I/usr/local/include -Wall -DBUILD_LADSPA -Iugens/ladspa/ -I ugens/ling/ -g -c -Ih -I. ugens/paulstretch.c -o ugens/paulstretch.o ugens/paulstretch.c: In function ‘sporth_paulstretch’: ugens/paulstretch.c:12:5: error: unknown type name ‘sp_paulstretch’      sp_paulstretch *paulstretch;      ^ ugens/paulstretch.c:21:13: warning: implicit declaration of function ‘sp_paulstretch_create’ [-Wimplicit-function-declaration]              sp_paulstretch_create(&paulstretch);              ^
I am not enough of a build/make guy to understand the issue. I went to line 12:5 and I don't see the issue in the naming or the C code. Any ideas?
I really am looking forward to playing with Sporth again! Thanks.
Rob

It looks like it's not recognizing the new module sp_paulstretch in soundpipe. Try git-pulling again on the dev branch of soundpipe?

I originally did this: git clone -b dev https://github.com/PaulBatchelor/Soundpipe.git
And since tblrec.c is not in Master, but is in Dev, and I see it in my local git, doesn't that mean I did pull and build the Dev branch?
git branch -r shows I have Dev locally too.
:~/Soundpipe$ git branch -r   origin/HEAD -> origin/master   origin/dev   origin/master   origin/wpkorg35
I'll go ahead and do it again, since it doesn't take too long anyway, and get back to you. Thanks!

Thanks, Paul!
It all works. I must have messed something up with my Gitfu. Strange, because git branch said 'dev' and tblrec.lua was in there, and it is not in the master file list, only dev? Time to brush up on Git.
I just wiped the directory and did the following. I'll close this now, thanks:
git clone https://github.com/PaulBatchelor/Soundpipe.git  cd  Soundpipe  git branch  *master  git checkout -b dev origin/dev  git branch *dev


Errors from further along a pipeline showing up in earlier steps when stepping

If an invalid timestamp is generated by an XSLT and a later XSLT within the pipeline expects that timestamp to be valid, then the later XSLT causes a popup alert within the first XSLT, stopping any further stepping.
For example, output of XSLT1:
<TimeCreated>notAValidTime</TimeCreated>
Content of XSLT2:
<xsl:if test="xs:dateTime(TimeCreated > current-dateTime())">    ...
Probably related to #2511

Fixed #2511 and believe this is also fixed as a result


Preinstall packages to speed up booting

Hi,
I’d love if you could pre-install rsync on the image at image creation time, so that it isn’t needed to be done every time the job is run. This also saves electricity, which is a plus in these times!
This really affects all vmactions, but the Solaris one is the slowest.
You could at the same time fix #33 by also pre-installing gcc5core and gcc5g++ so it’s not the only VM without a compiler, and installing that takes ¼h or so already (ouch).
This currently precludes me from just letting GHA run the vmactions jobs CI-style instead of running them manually occasionally.

I will fix it

Hi !
Maybe also installing automake, autoconf and libtool, as they are often used (we use it for instance on the PPP project).
Thank you for your VMs !

@RICCIARDI-Adrien
Here are 2 opertunities to install packages:

if the pkg can be installed by pkgutil, you can just added a VM_PRE_INSTALL_PKGS item, in the conf file: "https://github.com/vmactions/solaris-builder/blob/main/conf/solaris-11.4.conf"
Example:
https://github.com/vmactions/netbsd-builder/blob/main/conf/netbsd-9.3.conf#L16C1-L16C20

Otherwise, you can install it in the hooks/postBuild.sh,  this scrip will be executed in the vm as soon as it's built successully.
Example:
https://github.com/vmactions/freebsd-builder/blob/main/hooks/postBuild.sh

Please clone and send PR. I can include it in next release.

Is the PR https://github.com/vmactions/solaris-builder/pull/2 OK for both of you @mirabilos and @Neilpang ?

@RICCIARDI-Adrien if it does what it says then yes ;-) thank you <3

the image size is doubled,  see my comments:
https://github.com/vmactions/solaris-builder/pull/2
what do you think?

That’s to be expected. But do:

look at caches that can be removed
see whether a Linux host can safely access the filesystems, and if so, run something like zerofree on it afterwards
and, finally, compact the qcow2 file

unfortunately, the only way I’ve found is to use qemu-img to copy the qcow2 file to another qcow2 file in which the now-zero-filled blocks will not be present any more: qemu-img convert -O qcow2 original_image.qcow2 deduplicated_image.qcow2

if you then compress that, it will be smaller

qcow2 can also do compression but it uses zlib and isn’t very useful later on when the VM runs, so keep xzing it, I suppose

Seeing that zerofree is for ext{2,3,4} only and Solaris uses… what? UFS?, you’ll have to find another tool. If none exists, the “wood hammer” method would be:

mount the filesystems from the image
run dd if=/dev/zero of=/mnt/tmpf1 bs=1048576 followed by dd if=/dev/zero of=/mnt/tmpf2, dd if=/dev/zero of=/mnt/tmpf3, … (to free up subblocks) until the last /mnt/tmpfn has zero size, sync, then delete the tmpf* files again and umount the filesystems

From the above-linked StackExchange post, virt-sparsify might work if installing libguestfs-tools and libguestfs-zfs. Best try this locally first, I suppose?

The cleaning the caches can be done in the VM (e.g. in postBuild.sh) or after the VM was shut down and its filesystems mounted in the Linux builder host (which has the benefits that you can also clear out /tmp, /var/tmp, perhaps reduce the size of syslog files to 0 while keeping them (with uid/gid/perms intact) with e.g. : >/mnt/var/log/messages, etc.).
Everything else (zeroïng, compacting) must be done with the VM shat off. For the final compacting step, it must also be umounted and otherwise completely disengaged from the builder host again.

can anyone figure out which of the packages is the largest?

You need to zero out the empty blocks in the filesystem first,
of course. Only these can be made sparse.
bye,
//mirabilos
Gestern Nacht ist mein IRC-Netzwerk explodiert. Ich hatte nicht damit
gerechnet, darum bin ich blutverschmiert… wer konnte ahnen, daß SIE so
reagier’n… gestern Nacht ist mein IRC-Netzwerk explodiert~~~
(as of 2021-06-15 The MirOS Project temporarily reconvenes on OFTC)

Dixi quod…

You need to zero out the empty blocks in the filesystem first,

And before that, delete not-needed files so the blocks become
empty/unused of course ☻
bye,
//mirabilos
Gestern Nacht ist mein IRC-Netzwerk explodiert. Ich hatte nicht damit
gerechnet, darum bin ich blutverschmiert… wer konnte ahnen, daß SIE so
reagier’n… gestern Nacht ist mein IRC-Netzwerk explodiert~~~
(as of 2021-06-15 The MirOS Project temporarily reconvenes on OFTC)

@Neilpang I think that the biggest packages are gcc and g++, I will try without installing them to see if there is a significant change on the VM image size.

Adrien RICCIARDI dixit:

@Neilpang I think that the biggest packages are gcc and g++, I will try
@without installing them to see if there is a significant change on the
@VM image size.

Without them, the whole thing makes no sense, though.
You cannot even reasonably use autoconf and friends without.

@mirabilos Indeed, but it would be a trade-off : you would still need to install less dependencies, like rsync in your case.

Adrien RICCIARDI dixit:

@mirabilos Indeed, but it would be a trade-off : you would still need
@to install less dependencies, like rsync in your case.

Yes, that saves 30 seconds off 12 minutes or so…

Without gcc and g++ :
Changing to init state 5 - please wait
Exporting solaris-11.4.qcow2
total 9.4G
drwxr-xr-x 6 runner       docker 4.0K Dec  8 12:03 .
drwxr-xr-x 3 runner       docker 4.0K Dec  8 11:13 ..
drwxr-xr-x 8 runner       docker 4.0K Dec  8 11:13 .git
drwxr-xr-x 3 runner       docker 4.0K Dec  8 11:13 .github
-rw-r--r-- 1 runner       docker 1.1K Dec  8 11:13 LICENSE
-rw-r--r-- 1 runner       docker   17 Dec  8 11:13 README.md
-rw-r--r-- 1 runner       docker 4.0K Dec  8 11:13 build.sh
drwxr-xr-x 2 runner       docker 4.0K Dec  8 11:13 conf
-rw-r--r-- 1 runner       docker 1.9K Dec  8 11:51 enablessh.local
-rw-r--r-- 1 runner       docker  396 Dec  8 11:13 enablessh.txt
drwxr-xr-x 2 runner       docker 4.0K Dec  8 11:13 hooks
-rw-r--r-- 1 runner       docker 2.1K Dec  8 11:57 index.html
-rw-rw-rw- 1 runner       docker  44K Dec  8 11:57 screen.png
-rw-r--r-- 1 runner       docker 1.9K Dec  8 11:57 screen.txt
-rw------- 1 runner       docker 2.6K Dec  8 12:03 solaris-11.4-host.id_rsa
-rw-r--r-- 1 runner       docker  394 Dec  8 11:55 solaris-11.4-id_rsa.pub
-rw-r--r-- 1 root         root   3.9G Dec  8 11:58 solaris-11.4.qcow2
-rw-r--r-- 1 root         root   947M Dec  8 11:58 solaris-11.4.qcow2.xz
-rw-r--r-- 1 libvirt-qemu kvm    708M Dec  8 11:14 solaris.iso
-rw-r--r-- 1 runner       docker 3.9G Dec  8 11:57 solaris.qcow2
-rwxr-xr-x 1 runner       docker  13K Dec  8 11:13 vbox.sh

how about g++ only or  gcc only?

I agree with @mirabilos that the most important packages are indeed gcc and g++. So there are two choices left :

Do not install gcc and g++ and just install the "light" packages, this will save a really little percentage of CI execution time.
Try to make room in the VM image after gcc and g++ have been installed.
Do we investigate the second solution with the clues given by @mirabilos ? I don't know Solaris, @mirabilos would you like to try to make space in the image ?

With gcc only :
Exporting solaris-11.4.qcow2
total 16G
drwxr-xr-x 6 runner       docker 4.0K Dec  8 14:08 .
drwxr-xr-x 3 runner       docker 4.0K Dec  8 13:10 ..
drwxr-xr-x 8 runner       docker 4.0K Dec  8 13:10 .git
drwxr-xr-x 3 runner       docker 4.0K Dec  8 13:10 .github
-rw-r--r-- 1 runner       docker 1.1K Dec  8 13:10 LICENSE
-rw-r--r-- 1 runner       docker   17 Dec  8 13:10 README.md
-rw-r--r-- 1 runner       docker 4.0K Dec  8 13:10 build.sh
drwxr-xr-x 2 runner       docker 4.0K Dec  8 13:10 conf
-rw-r--r-- 1 runner       docker 1.9K Dec  8 13:46 enablessh.local
-rw-r--r-- 1 runner       docker  396 Dec  8 13:10 enablessh.txt
drwxr-xr-x 2 runner       docker 4.0K Dec  8 13:10 hooks
-rw-r--r-- 1 runner       docker 2.2K Dec  8 13:56 index.html
-rw-rw-rw- 1 runner       docker  40K Dec  8 13:56 screen.png
-rw-r--r-- 1 runner       docker 1.9K Dec  8 13:56 screen.txt
-rw------- 1 runner       docker 2.6K Dec  8 14:08 solaris-11.4-host.id_rsa
-rw-r--r-- 1 runner       docker  394 Dec  8 13:50 solaris-11.4-id_rsa.pub
-rw-r--r-- 1 root         root   6.6G Dec  8 13:57 solaris-11.4.qcow2
-rw-r--r-- 1 root         root   1.7G Dec  8 13:57 solaris-11.4.qcow2.xz
-rw-r--r-- 1 libvirt-qemu kvm    708M Dec  8 13:12 solaris.iso
-rw-r--r-- 1 runner       docker 6.6G Dec  8 13:56 solaris.qcow2
-rwxr-xr-x 1 runner       docker  13K Dec  8 13:11 vbox.sh

did you try to remove the temp files?

neil dixit:

how about g++ only or  gcc only?

g++ is just a small addon package to gcc and depends on the latter,
of course.
Adrien RICCIARDI dixit:

Do we investigate the second solution with the clues given by
@mirabilos ? I don't know Solaris, @mirabilos would you like to try to
make space in the image ?

Please do.
I don’t know Solaris either, I just shared my usual methods for
cleaning up disc images.
Adrien RICCIARDI dixit:

As expected, gcc is quite fat.

No, it has many dependencies.
tbh, I’d be happy with SUNWcc instead of GCC, but that’s apparently
not likely to happen. ☹
neil dixit:

did you try to remove the temp files?

And package downloads and probably even package indicēs and so on…
bye,
//mirabilos
21:12⎜ sogar bei opensolaris haben die von der community so
ziemlich jeden mist eingebaut │ man sollte unices nich so machen das
desktopuser zuviel intresse kriegen │ das macht die code base kaputt
21:13⎜Vutral:#MirBSD linux war früher auch mal besser :D

I just added a new tag for gcc. please use:
with:
    release: "11.4-gcc"

thanks.

@Neilpang This is a nice solution to create a dedicated tag for the gcc version.
I just tested it and it works well, decreasing the action execution time from about 6min 40sec to about 5min 15sec.
Thank you !

neil dixit:

I just added a new tag for gcc. please use:
with:
   release: "11.4-gcc"

thanks.

Thank you❣ This works.
Is the OCR stuff (tesseract, vnc…) still needed? (If not, don’t
even install it when preparing host.)
Can the VM image download reasonably be cached (by the action)?
(I don’t know GHA’s size limits for these things, and when I have
a workflow for each VM, the sizes would accumulate, so I don’t know
if that’s possible/sensible.)
bye,
//mirabilos
«MyISAM tables -will- get corrupted eventually. This is a fact of life. »
“mysql is about as much database as ms access” – “MSSQL at least descends
from a database” “it's a rebranded SyBase” “MySQL however was born from a
flatfile and went downhill from there” – “at least jetDB doesn’t claim to
be a database”	‣‣‣ Please, http://deb.li/mysql and MariaDB, finally die!


-Include the correct FreeRTOS Cortex files in the EFR32 makefiles cor…

Problem

In the example project EFR32/lock-app, a FreeRTOS API Assert fails. The assert is in file port.c
line 755 configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
The FreeRTOS api call that cause the assert is called from a bluetooth callback implemented for FreeRTOS adaptation BluetoothLLCallback()
A IRQ implemented in GECKO radio sdk uses the default priority 0 (Highest). This is not accepted by FreeRTOS API, and IRQ cannot be of higher or equivalent priority than the kernel.
Summary of Changes
-Include the correct FreeRTOS Cortex files in the EFR32 makefiles correspoding to the defined MCU family (MG12 vs MG21)
-Init all IRQs priority to a lower priority valid for FreeRTOS API. An IRQ in the gecko radio libs
with the default priority 0 (highest) was causing a assert failure in FreeRTOS
fixes #1844

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


Link to arcsynthesis on OpenGL state machine is dead

The link on the Readme about binding and unbinding objects leads to a parked domain website.

I think you can close this issue, @kvark. #1240 fixed it.

Thanks @ama0 !


network policy module added

What this PR does / why we need it:
This PR was created to support network policy feature that has been recently released in EKS.
Which issue(s) this PR fixes:
Support network policy in EKS.
Fixes #
Added a new workshop module
create a new create infrastrcuture script that has support to use shell script and beta endpoint url
Change the shell.sh to support MAC ARN processor envs and build images accordingly
Quality checks

[ X] My content adheres to the style guidelines
[ X] I ran make test or make e2e-test and it was successful

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Network policy support requires EKS 1.26+ to avoid AMI changes. We've started the process of upgrading the workshop to EKS 1.27 and will merge this once that testing is complete.

Thanks @mahasiva-amazon !


Allow configuration of setup.py location via variable PYTHON_DIST_SETUP_PATH

Closed in favor of #37

Closed in favor of https://github.com/mintel/build-harness/pull/34


Fix priority of CoffeeScript modules

Currently, using Gulp with a gulpfile.coffee generates output like this on startup (at least for me, with module coffeescript in my package.json):
[17:56:40] Failed to load external module coffee-script/register
[17:56:40] Failed to load external module coffee-script
[17:56:40] Requiring external module coffeescript/register
[17:56:48] Using gulpfile ~/Sites/coffeescript-gulp/gulpfile.coffee
[17:56:48] Starting 'default'...

This is because the lookup order of CoffeeScript modules is currently 'coffee-script/register', 'coffee-script', 'coffeescript/register', 'coffeescript'.
With coffeescript (no hyphen) now the recommended primary module, it should come first. Also, /register has been required since version 1.7.0, released in January 2014. Both modules’ /register variants should precede the non-/register ones.
With the changes from this PR, Gulp finds the right module on the first try:
[18:28:24] Requiring external module coffeescript/register
[18:28:25] Using gulpfile ~/Sites/coffeescript-gulp/gulpfile.coffee
[18:28:25] Starting 'default'...

And people with coffee-script installed would get the errors I saw above, though it would still work (like it currently works for me). But they would get a hint that they should npm uninstall coffee-script && npm install coffeescript. 😄
See also #44.

Looks good.

Published as 1.0.4 - Thanks for submitting this.

Weird. I think it's still an issue even though Webpack is using<EMAIL_ADDRESS>and still throw an error:
/Users/chen/repo/mvc-works/coworkflow/webpack.dev.coffee:1
(function (exports, require, module, __filename, __dirname) { path = require 'path'
                                                                             ^^^^^^

SyntaxError: Unexpected string
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:588:28)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at requireConfig (/Users/chen/repo/mvc-works/coworkflow/node_modules/webpack/bin/convert-argv.js:97:18)

Do we have to update on Webpack too?


Saving of updated secrets to file system fails at renaming

It seems that renaming temporary file fails.
Traceback (most recent call last):
  File "/usr/local/bin/azkv", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/azkv/main.py", line 73, in main
    app.run()
  File "/usr/local/lib/python3.7/site-packages/cement/core/foundation.py", line 916, in run
    return_val = self.controller._dispatch()
  File "/usr/local/lib/python3.7/site-packages/cement/ext/ext_argparse.py", line 808, in _dispatch
    return func()
  File "/usr/local/lib/python3.7/site-packages/azkv/controllers/secrets.py", line 331, in save
    file_path_secret_tmp.rename(file_path_secret.name)
  File "/usr/local/lib/python3.7/pathlib.py", line 1329, in rename
    self._accessor.rename(self, target)
OSError: [Errno 18] Invalid cross-device link: '/home/azkv/secret.tmp' -> 'secret'

On the surface, it is because of the cross-device link (rename fails when source and target are at different mount points). But further investigation shows that the new file is attempted to be saved in the root file system. Apparently, only the file name and not the full path to the secret file is used.

the issue seems to be fixed on AzKV 0.1.0rc6 version


new JAX solver based on IDAKLU for parameter inference

Description
The existing pybamm JAX solver is useful for incorporation into ML libraries for parameter estimation, but it is not as fast or stable as the casadi or idaklu solvers.
This issue proposes writting a C++ JAX wrapper around the new IDAKLU solver so that this solver can also be used, see https://dfm.io/posts/extending-jax/
This allows for a powerful solver to be incorporated into libraries such as Tensorflow (probability) for parameter inference (@brosaplanella).
Note the existing problem that jax does not support sparse matrices. However, the problem can be posed with the jacobian implicit, but defining a jacobian action function (J * a), which can then be passed to the idaklu solver and used.
Motivation
No response
Possible Implementation
No response
Additional context
No response

actually, you could keep pybamm.convert_to_format = 'casadi', and so the individual functions are still called by casadi, so you can still use a sparse explicit jacobian


The link for pre-trained models is expired

The link for pre-trained models is expired. Could you kindly provide a new link for the pre-trained models? Thanks!

Sorry for the expired link! I have updated the link in README. Since the OneDrive shared link is only valid for 30 days, I will next look for another cloud service to store checkpoints.

Close the inactive issue. Feel free to reopen it if you still have problems.


Using scss in compose multiplatform

I'm starting to use compose multiplatform, but I have a concern. Is it possible to reference a scss style file and inherit it in the elements' attributes when using material design?

Compose Multiplatform doesn't use HTML elements. It draws on a canvas via SKIA. So, the answer is no.
But you may take a look at community frameworks like https://kobweb.varabyte.com/

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Yarn

Hi David, are you planning to add support install package for yarn?

After installing the package through yarn, it does not work. Errors occur "h.transition". If install through npm, package correct work.

Could you share the complete scenario and the callstack of the error please?

https://github.com/David-Desmaisons/Vue.D3.tree/issues/31
In this release, demo errors and mentions yarn.

Found a solution for using vued3tree with Yarn: https://github.com/d3/d3-selection/issues/185
Steps to solve:

Add to package.json:

    "resolutions": {
        "d3-selection": "1.3.0"
    }

Remove yarn.lock
Run yarn

@Lexanimus thanks for documenting this work-around.


Model Academic Term

Create an AcademicTerm.cs class to model database information.

Sample File: https://github.com/fhtc-cpd/render/blob/dev/web-application/Models/Data/User.cs

@blaineplatt35 committed b17677dde433dbf74244a1f6796ec1ea1c8b80e4 Fixed a few issues with commit fdf7d83ab94868300dba86f4f0d0aca8cf17648f
Most of this resolved mapping except for relationships that have not been defined. Need to open for relationship hookups.


[models] Fixed loading OBJ models with no materials.

Just quick fix to update matFace to the correct value when no materials are present on the mesh.

@MrDiver thanks for the review! 👍😄

Unless I am mistaken this fix is incorrect and will re-introduce issue #1809 where a model has more materials than it does meshes resulting in a crash when attempting to render the mesh.


Support opentelemetry 0.22

Opentelemetry 0.22 is released.
Once https://github.com/tokio-rs/tracing-opentelemetry/pull/100
is into a release (presumably 0.23), then this PR should pass CI and be mergable.

This is now ready - tracing-opentelemetry 0.23 is released.

@eopb ❤


Concept versus Class

In § What is a conceptual model? You are quick to substitute the notion of Concept with the notion of Class. It would maybe be good to explain that Classes are a sort of extension of Concepts, by adding things like attributes to further describe the characteristics of instances of some Concept.

I read carefully the above mentioned section, and I don't think we are conflating the notion of Concept with that of the Class.
When we talk about concepts (and we mostly talk about concepts in this section - the word Class is mentioned only in the context of UML elements that are recommended to be used, along with other UML elements such as connectors, etc), we mean not only classes by them, but any the "concept" that help with the conceptualization and representation of a given domain.
So, a "concept" in the conceptual model can be seen more like an OWL entity (which can be not only class, but also individual, property, dataype, etc), rathr than an OWL class. The statements in this section all make sense with this interpretation.
So, a "concept" is not the same as a "class", and talking about them like that would be inaccurate. Saying something like
"Classes are specific type of Concepts, extending them by adding things like attributes to further describe the characteristics of instances of some Concept." would make sense, in principle. However, if we say this, then we need to describe the other type of concepts as well (that are not to be interpreted as classes), and that would add just too much unnecessary detail, irrelevant at this part of the guide, which would likely be incomplete, and someone else would complain about that later.
I would close this issue unless there is disagreement or further comments from @GeertThijs @costezki or other contributors.


Can not load 'webpack' - issue with v2.1.0

I'm submitting a bug report
Webpack version:
"webpack": "2.2.0-rc.1"
Webpack Karma version:
"karma-webpack": "1.8.0"
Karma version:
0.13.x/1.x
Env
OSX 10.x - Chrome Version 55.0.2883.95 (64-bit)
Current behavior:
Test runner fails out before getting to run step. Issue says 'Can not load "webpack"'
Project configuration:
Currently using
    "karma": "1.4.0",
    "karma-chrome-launcher": "2.0.0",
    "karma-coverage": "1.1.1",
    "karma-jasmine": "1.1.0",
    "karma-mocha-reporter": "2.2.1",
    "karma-phantomjs-launcher": "1.0.2",
    "karma-remap-coverage": "0.1.4",
    "karma-source-map-support": "1.2.0",
    "karma-sourcemap-loader": "0.3.7",
    "karma-webpack": "2.0.1"

with Webpack version specified above. Failing as follows:
keywords if/then/else require v5 option
18 01 2017 15:11:14.083:ERROR [preprocess]: Can not load "webpack"!
  Error
    at webpack (/Users/j/Developer/AspNetCoreSpa/node_modules/webpack/lib/webpack.js:17:9)
    at new Plugin (/Users/j/Developer/AspNetCoreSpa/node_modules/karma-webpack/lib/karma-webpack.js:65:18)
    at invoke (/Users/j/Developer/AspNetCoreSpa/node_modules/di/lib/injector.js:75:15)
    at Array.instantiate (/Users/j/Developer/AspNetCoreSpa/node_modules/di/lib/injector.js:59:20)
    at get (/Users/j/Developer/AspNetCoreSpa/node_modules/di/lib/injector.js:48:43)
    at /Users/j/Developer/AspNetCoreSpa/node_modules/di/lib/injector.js:71:14
    at Array.map (native)
    at Array.invoke (/Users/j/Developer/AspNetCoreSpa/node_modules/di/lib/injector.js:70:31)
    at Injector.get (/Users/j/Developer/AspNetCoreSpa/node_modules/di/lib/injector.js:48:43)
    at instantiatePreprocessor (/Users/j/Developer/AspNetCoreSpa/node_modules/karma/lib/preprocessor.js:55:20)
    at Array.forEach (native)
    at createPreprocessor (/Users/j/Developer/AspNetCoreSpa/node_modules/karma/lib/preprocessor.js:74:20)
    at Array.invoke (/Users/j/Developer/AspNetCoreSpa/node_modules/di/lib/injector.js:75:15)
    at get (/Users/j/Developer/AspNetCoreSpa/node_modules/di/lib/injector.js:48:43)
    at /Users/j/Developer/AspNetCoreSpa/node_modules/di/lib/injector.js:71:14
    at Array.map (native)

START:
18 01 2017 15:11:14.154:INFO [karma]: Karma v1.4.0 server started at http://<IP_ADDRESS>:9876/
18 01 2017 15:11:14.154:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
18 01 2017 15:11:14.155:ERROR [karma]: Found 1 load error

npm ERR! Darwin 16.3.0
npm ERR! argv "/Users/j/.nvm/versions/node/v7.4.0/bin/node" "/Users/j/.nvm/versions/node/v7.4.0/bin/npm" "run" "test"
npm ERR! node v7.4.0
npm ERR! npm  v4.0.5
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>test: `karma start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>test script 'karma start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the aspnetnetcore package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     karma start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs aspnetnetcore
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls aspnetnetcore
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/j/Developer/AspNetCoreSpa/npm-debug.log

Reverted to "karma-webpack": "1.8.0", tests successfully run without warning.

Please try the same using Webpack 2.2.0 and we can go from there. IIRC that was an issue that went away with rc.3

I'm getting the issue with webpack 2.2.0 final:
with a debugger:
(function (exports, require, module, __filename, __dirname) { /*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
"use strict";

const Compiler = require("./Compiler");
const MultiCompiler = require("./MultiCompiler");
const NodeEnvironmentPlugin = require("./node/NodeEnvironmentPlugin");
const WebpackOptionsApply = require("./WebpackOptionsApply");
const WebpackOptionsDefaulter = require("./WebpackOptionsDefaulter");
const validateSchema = require("./validateSchema");
const WebpackOptionsValidationError = require("./WebpackOptionsValidationError");
const webpackOptionsSchema = require("../schemas/webpackOptionsSchema.json");

function webpack(options, callback) {
	const webpackOptionsValidationErrors = validateSchema(webpackOptionsSchema, options);
	if(webpackOptionsValidationErrors.length) {
                debugger;
		throw new WebpackOptionsValidationError(webpackOptionsValidationErrors);
	}

and console.log(JSON.stringify(webpackOptionsValidationErrors));
I get:
[{
	"keyword": "oneOf",
	"dataPath": ".entry",
	"schemaPath": "#/oneOf",
	"params": {},
	"message": "should match exactly one schema in oneOf",
	"schema": [{
		"minProperties": 1,
		"additionalProperties": {
			"oneOf": [{
				"description": "The string is resolved to a module which is loaded upon startup.",
				"minLength": 1,
				"type": "string"
			}, {
				"description": "All modules are loaded upon startup. The last one is exported.",
				"$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
			}]
		},
		"description": "Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.",
		"type": "object"
	}, {
		"description": "The string is resolved to a module which is loaded upon startup.",
		"minLength": 1,
		"type": "string"
	}, {
		"allOf": [{
			"$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
		}],
		"description": "All modules are loaded upon startup. The last one is exported."
	}, {
		"description": "function returning an entry object or a promise.",
		"instanceof": "Function"
	}],
	"parentSchema": {
		"description": "The entry point(s) of the compilation.",
		"oneOf": [{
			"minProperties": 1,
			"additionalProperties": {
				"oneOf": [{
					"description": "The string is resolved to a module which is loaded upon startup.",
					"minLength": 1,
					"type": "string"
				}, {
					"description": "All modules are loaded upon startup. The last one is exported.",
					"$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
				}]
			},
			"description": "Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.",
			"type": "object"
		}, {
			"description": "The string is resolved to a module which is loaded upon startup.",
			"minLength": 1,
			"type": "string"
		}, {
			"allOf": [{
				"$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
			}],
			"description": "All modules are loaded upon startup. The last one is exported."
		}, {
			"description": "function returning an entry object or a promise.",
			"instanceof": "Function"
		}]
	},
	"data": {},
	"children": [{
		"keyword": "minProperties",
		"dataPath": ".entry",
		"schemaPath": "#/oneOf/0/minProperties",
		"params": {
			"limit": 1
		},
		"message": "should NOT have less than 1 properties",
		"schema": 1,
		"parentSchema": {
			"minProperties": 1,
			"additionalProperties": {
				"oneOf": [{
					"description": "The string is resolved to a module which is loaded upon startup.",
					"minLength": 1,
					"type": "string"
				}, {
					"description": "All modules are loaded upon startup. The last one is exported.",
					"$ref": "#/definitions/common.nonEmptyArrayOfUniqueStringValues"
				}]
			},
			"description": "Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.",
			"type": "object"
		},
		"data": {}
	}, {
		"keyword": "type",
		"dataPath": ".entry",
		"schemaPath": "#/oneOf/1/type",
		"params": {
			"type": "string"
		},
		"message": "should be string",
		"schema": "string",
		"parentSchema": {
			"description": "The string is resolved to a module which is loaded upon startup.",
			"minLength": 1,
			"type": "string"
		},
		"data": {}
	}, {
		"keyword": "type",
		"dataPath": ".entry",
		"schemaPath": "#/definitions/common.nonEmptyArrayOfUniqueStringValues/type",
		"params": {
			"type": "array"
		},
		"message": "should be array",
		"schema": "array",
		"parentSchema": {
			"items": {
				"minLength": 1,
				"type": "string"
			},
			"minItems": 1,
			"type": "array",
			"uniqueItems": true
		},
		"data": {}
	}, {
		"keyword": "instanceof",
		"dataPath": ".entry",
		"schemaPath": "#/oneOf/3/instanceof",
		"params": {
			"keyword": "instanceof"
		},
		"message": "should pass \"instanceof\" keyword validation",
		"schema": "Function",
		"parentSchema": {
			"description": "function returning an entry object or a promise.",
			"instanceof": "Function"
		},
		"data": {}
	}]
}]

@d3viant0ne it looks like it's to do with:
When updating to "webpack": "2.2.0-rc.4" & "karma-webpack": "1.8.2" you have to pull the entry property if it's set to an empty object so it defaults to a function within karma-webpack
what does pull mean? Do you mean delete? in my config I don't have the entry property, but by the time it gets to the validate part it has gained a entry: {} property.

my bad, I was running karma-webpack 1.8 by mistake

@graingert - For webpack 2.2.0-rc.4 and beyond, config schema is strictly enforced and will error if it's missing something required.
As part of the schema enforcement, in you webpack configuration you can't pass webpackConfig.entry and empty object. Historically this has been a common practice in many test configs.
You can on the other hand pass webpackConfig.entry a function. So in the case where people were using entry: {} they simply need to remove it. For those that don't need / have an entry target in their config, removing it allows karma-webpack to use it's default which under the hood assigns a function that returns entry: {} to webpackConfig.entry.

@d3viant0ne yeah I know. I stepped through the code manually and found I was on the wrong code.

For the sake of clarity, are you good now or do we still have an issue that needs to be worked out with webpack 2.2.0 / karma-webpack 2.0.1 ?

@d3viant0ne good to go. The documentation about "pull"ing .entry is not clear though. The versions are a bit out of date and "pull" isn't really the right term.

@graingert - I've updated the release notes: https://github.com/webpack/karma-webpack/releases/tag/v2.0.0
I'll get the same in the change log shortly

👍  Thanks!

I have the same issue and i can not find any entry: {} in my config files.
I downgraded to<EMAIL_ADDRESS>and<EMAIL_ADDRESS>but nothing changed.
In my webpack config there is this entry:
entry: {
    app: [ path.resolve(rootDir, 'src', 'bootstrap') ],
    vendor: [ path.resolve(rootDir, 'src', 'vendor') ]
},

...is this breaking it?

I downgraded to<EMAIL_ADDRESS>and<EMAIL_ADDRESS>but nothing
changed.
In my webpack config there is this entry:
entry: {
app: [ path.resolve(rootDir, 'src', 'bootstrap') ],
vendor: [ path.resolve(rootDir, 'src', 'vendor') ]
},
...is this breaking it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/webpack-contrib/karma-webpack/issues/210#issuecomment-279214255,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZQTF24uc7Kz14gr_6Ibe3jc_Do_K0Cks5rbva7gaJpZM4LnbH4
.

My fault. I was in the wrong config file. My webpack test config file has no entry: :/

same issue :taxi:

Same issue here,
"webpack": "^2.2.1",
"karma-webpack": "^2.0.2",
Downgrade my node from v7.7.2 to v6.10.0 gives me more info in console, so I see
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.module has an unknown property 'preLoaders'. These properties are valid:

After commenting out the preLoaders overwrite it works fine. Now I need to figure out how to get correct coverage report in webpack 2.0 ...

I am getting the same issue with webpack 2.20 and karma-webpack 2.0.1:
13 03 2017 16:17:44.469:ERROR [preprocess]: Can not load "webpack"!   Error     at webpack (C:\Spa.Client\node_modules\webpack\lib\webpack.js:19:9)     at new Plugin (C:\Spa.Client\node_modules\karma-webpack\lib\karma-webpack.js:65:18)     at invoke (C:\Spa.Client\node_modules\di\lib\injector.js:75:15)     at Array.instantiate (C:\Spa.Client\node_modules\di\lib\injector.js:59:20)     at get (C:\Spa.Client\node_modules\di\lib\injector.js:48:43)     at C:\Spa.Client\node_modules\di\lib\injector.js:71:14     at Array.map (native)     at Array.invoke (C:\Spa.Client\node_modules\di\lib\injector.js:70:31)     at Injector.get (C:\Spa.Client\node_modules\di\lib\injector.js:48:43)     at instantiatePreprocessor (C:\Spa.Client\node_modules\karma\lib\preprocessor.js:55:20)     at Array.forEach (native)     at createPreprocessor (C:\Spa.Client\node_modules\karma\lib\preprocessor.js:74:20)     at Array.invoke (C:\Spa.Client\node_modules\di\lib\injector.js:75:15)     at get (C:\Spa.Client\node_modules\di\lib\injector.js:48:43)     at C:\Spa.Client\node_modules\di\lib\injector.js:71:14     at Array.map (native) 13 03 2017 16:17:44.514:INFO [karma]: Karma v1.5.0 server started at http://<IP_ADDRESS>:9876/ 13 03 2017 16:17:44.517:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency 13 03 2017 16:17:44.518:ERROR [karma]: Found 1 load error

Nevermind this was related to the other issue open hiding details of the webpack configuration errors rather than writing them to the console.

@napalm684 , how can you diagnose what were the issues in the webpack configuration?

Add some console by editing node modules one by one :)

@gkohen  go into the file for karma webpack add a try catch block around the webpack load and output errors to console in catch block.

Line 65 karma-webpack.js of current master branch.

Thanks folks. Ended up being, as expected a problem in my webpack config. It's a shame we can't turn on or propagate the errors to console from karma-webpack without editing the code.

@gkohen - I'm working on the karma-webpack eating errors problem now, should have most of the spots fixed in 2.0.4

@d3viant0ne , wicked cool. Thanks for this great component.

karma problem to install: ERROR
bpack-2.0.3.tgz"}},"2.0.4":{"name":"karma-webpack","version":"2.0.4" ,
To solve this error following command is useful for it. Its Solve for me...
npm cache clean --force


Fixed markdown headings

You need a space between the # and text like this: # Heading

Thanks @Hum4n01d !

Sure!


Implemented advanced log in CRFSlotFiller inference

Description:
Implemented advanced debugging logs for the CRFSlotFiller.
Until now debugging the CRFSlotFiller decisions was pretty obscure unless you put breakpoints in the code and used some pretty advanced tricks.
I added a log activated in debug level which prints token per token:

The incoming transitions weights (to the current token label)
The outgoing transitions weights (from the current token label)
The token feature weights
The list of feature extracted from the tokens but which are not in the CRFSlotFiller state features (likely not seen at train time)

Codecov Report

Merging #776 into develop will increase coverage by <.01%.
The diff coverage is 93.33%.

@@             Coverage Diff             @@
##           develop     #776      +/-   ##
===========================================
+ Coverage    88.08%   88.08%   +<.01%
===========================================
  Files           76       76
  Lines         4497     4540      +43
  Branches       855      870      +15
===========================================
+ Hits          3961     3999      +38
- Misses         401      403       +2
- Partials       135      138       +3


Where are added entries saved?

When an entry is added with addToMemory (REST), where in the directory tree is it saved?

the entry added by a user is inserted in the portion of the database reserved to that user,
and cannot be directly accessed by anyone.

The reason I ask is for back-up purposes. I'm not intending to edit anything. Thanks in advance!

To be more precise, all entries added are stored in the memory inside the database specified through the REST API. These entries live in the memory until the memory lives the database.
Hence, the only way to remove these data is the deletion of the entire memory; for details see https://modernmt.github.io/enterprise-api/apis/api-delete-memory-content.html. Please note that the operation is un-recoverable.

the issue has been closed by mistake

Long story short:
if you need to backup you engine (supposing it's the default one), you can do as following:
./mmt stop
cp -rp engines/default /your/backup/folder/
./mmt start

Simple as that :)

Hi @davidecaroselli and @nicolabertoldi ,
Sorry for re-opening the issue. I hope it's all well with you.
Say, I have one engine that I use myself and I keep adding single translations to memory 1 for example. Is there a way I can export the parallel text out of this memory to a text file? My goal is to keep track of what I have added and maybe use this data later when I need to train a new engine. Is this possible?
Thanks,
Mohamed

Everything I add to ModernMT, I also add to a MySQL database. Still, I'm curious too.

Thanks @davidecaroselli ! It's very useful to learn about both ways.
One last question:
Your command above to back up the engine cp -rp engines/default /your/backup/folder/, won't include the data that is being added to the engine through import, right?
I am asking because I am afraid if something goes wrong with the engine for some reason, I would basically lose all this manually added data. A backup in this case would be the plain base model.
Another scenario is for example connecting to MMT through a tool like MateCat or maybe a Trados plugin that will send all new translations to MMT through a PUT call for example after saving each segment. Using that command won't back up these segments, right? If this is the case, then it won't be possible to migrate a particular engine with all its data "initial training model +  added memories".  Am I right about this or am I missing something here?
Thanks again!

MMT system stores not only the original model an data, but also the new data imported in it, although the data are processed and filtered as remarked by Davide in his final note.
Hence, the "hacky" way suggested by Davide provides a backup of the last "status" of the engine,
but it does not allow to reconstruct the very original text imported.
Regarding the "migration" of a particular engine with all its data "initial training model + added memories", the hacky way allows exactly what you intend to do.

Hi @mzeidhassan
By copying the engine folder, you copy everything: both baseline models and data added.
In fact the engine folder holds also the Kafka queue, so that is the right way to backup entirely your data!

Thanks @davidecaroselli  and @nicolabertoldi. Glad that everything will be backed up. Thanks again for your amazing support. You may close the issue.

Hi @davidecaroselli ,
I looked at the files under models/context/storage and as far as I can tell, it contains English strings only. I don't see any target strings. Any idea where I can find the target strings?
Thanks!

Hi @mzeidhassan
In theory, you should find pairs of files   NAME_SL_TL and     NAME_TL_SL
There are the "parallel" files   for the memory NAME; the first contains the text in language SL, the second the text in TL.
For instance, I have in my engine these two files "10940_en_de" and "10940_de_en", with English and German, respectively.

Hi!
What Nicola said is correct, but only if your engine supports German > English too. This is because the Context Analyzer works only with the source part of a document. If you support also DE > EN then it will store also the target side that can be used for the reversed language pair.

Thanks @nicolabertoldi and @davidecaroselli !
Unfortunately, my engine was EN>AR only. So, I am only seeing English files, no Arabic files.

I will try to re-create your conditions,
and report asap
Could just confirm that you train the system using  a command like
mmt create en ar training_dir

or even better could you provide  the exact command you run for training your system?

@mzeidhassan this is totally  expected: context analyzer only create index and store the source part of your content, that is English.

Thanks @davidecaroselli ! Good to know and I will keep backups of the data I keep adding from now on until I figure out a way to retrieve the data from Kafka. You may close this issue if you wish.


Hide input fields that are already used from autocomplete

for example, description should not be shown here.

Its because of https://github.com/graphql/graphql-language-service/blob/master/packages/interface/src/getAutocompleteSuggestions.js#L86 ignore current query string


feat: Adds service virtualization for GitLab Integration Tests

This PR brings service virtualization based on Hoverfly to set us free from 3rd party calls during tests (in this case GitLab).

That's awesome @dipak-pawar! Thank you!
One question: Do you think we could make the GithubServiceIT lighter as this test case is (not using Arquillian)?
Mind providing another PR with that?

Do you think we could make the GithubServiceIT lighter as this test case is (not using Arquillian)?

In GitHubServiceIT we are using arquillian, which is executing all tests inside wildfly swarm container as same like production environment. So I would keep it the same.

Yes, but to be honest I don't see much difference from the Gitlab implementation, but that's ok.

Retest this please

Can one of the admins verify this patch?

Restest this please

Retest this please

add to whitelist

Retest this please


Negative offsets on icon objects on styles do not work in Safari

Describe the bug
The title pretty much sums it up but I have negative offsets set for an icon and it works great in all browsers except for Safari for some reason.
To Reproduce
Steps to reproduce the behavior:

Set negative offset for Icon
It no work

Code sandebox example (OL v7.2.1): https://codesandbox.io/s/modify-icon-forked-j9ecis (Based on example https://openlayers.org/en/latest/examples/modify-icon.html)
Red square in example has positive offset, yellow has negative offset.
Chrome (expected result):

Safari (buggy result):

Expected behavior
Should be offset negatively.

There is a known browser inconsistency which can be patched with a polyfill https://gist.github.com/Kaiido/ca9c837382d89b9d0061e96181d1d862

Thank you, this polyfill did the trick. Much appreciated!


TASK: [DEPRECATED] Migrate Filters component to TypeScript

Task Description
We need to convert FilterPill and all related components from @cloudoperators/juno-ui-components to TypeScript
List of potential dependencies

Check files that used with FilterPill, Filters, FilterInput (deprecated, don't migrate)

Sub-tasks

[ ] change the name to .tsx of all related components
[ ] Change the stories to .tsx and all related componetns
[ ] fix all errors related to npm run typecheck
[ ] Transfer all related tests to vitests from jest
[ ] Check if npm run build is working and prove the working parts in storybook or example app
[ ] Check that npm run lint is working correctly and fix all tslint errors

Related Issues

#168

Additional Context
Please check this online codemode editor to change the PropTypes to a proper Ts interfaces
https://github.com/mskelton/ratchet
Online editor: https://ratchet.mskelton.dev/
We need to be pretty concious about migration to ts cause it could create a potential breaking changes. Also if there will be too much changes at once maybe consider to split up the task again. Also some dependencies could be hidden and only discovered while executing the migration, could also lead to potential reconsidering the order of task execution.

This component is deprecated? Should we treat it as DataList and not migrate?

Will be addressed in ticket https://github.com/cloudoperators/juno/issues/662, closing.


Add Test::Quattor::Doc for documentation testing

Would be nice to have in a new release and all pom.xml bumped for 15.4 (that way people can start using them by 15.6)

Are there any tests for invalid pod?

no, because Test::POD runs the tests (unless i mock the Test framework, hmmmm, actually,... i'll try to to just that later today)

@jrha unittest for invalid pod files added

Nice.

LGTM


DateRangePicker and moment v 2.1.0

There is a big problem with the version of moment.js in daterangepicker plugin. We need to update it at least at 2.9 for the .locale() function by example because its resulting of some conflict if you use bootstrap daterange picker and moment.js in the same page.
Or maybe use moment.js as a complete library in the theme.

moment.js is only used when the daterangepicker plugin is used so I don't think it would be beneficial to use it all over the template. However, I will update the version we are using to solve this issue. Thank you for reporting this. I will report back here once the updates have been made.

Updated daterangepicker plugin. Changes are now available in master.

Thanks :+1: !


[ISSUE-254] CSI: ReservationHelper: duplicate metrics collector registration attempted

Purpose
Issue https://github.com/dell/csi-baremetal/issues/254
implement same logic as in metrics/common/...
PR checklist

[x] Add link to the issue
[x] Choose PR label
[ ] New unit tests added
[ ] Modified code has meaningful comments
[ ] All TODOs are linked with the issues
[ ] All comments are resolved

Testing
Link to custom CI build

Please add more detailed description to the PR.


Enable 1ESPT pipelines

This is required for compliance.

@mshoho / @ling1726  Could you help us merge this PR?


Fails to compile on Apple Silicon when running cargo install just

Am trying to use as a dep elsewhere, but am unable to install :(
error[E0308]: mismatched types
   --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.3/src/platform/unix/mod.rs:50:33
    |
50  | ...   .and_then(|_| fcntl(pipe.0, FcntlArg::F_SETFD(FdFlag::FD_CLOEXEC)))
    |                     ----- ^^^^^^ expected `i32`, found `OwnedFd`
    |                     |
    |                     arguments to this function are incorrect
    |
note: function defined here
   --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.28.0/src/fcntl.rs:600:8
    |
600 | pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> {
    |        ^^^^^

error[E0308]: mismatched types
   --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.3/src/platform/unix/mod.rs:51:33
    |
51  | ...   .and_then(|_| fcntl(pipe.1, FcntlArg::F_SETFD(FdFlag::FD_CLOEXEC)));
    |                     ----- ^^^^^^ expected `i32`, found `OwnedFd`
    |                     |
    |                     arguments to this function are incorrect
    |
note: function defined here
   --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.28.0/src/fcntl.rs:600:8
    |
600 | pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> {
    |        ^^^^^

error[E0308]: mismatched types
   --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.3/src/platform/unix/mod.rs:56:33
    |
56  | ...   .and_then(|_| fcntl(pipe.0, FcntlArg::F_SETFL(OFlag::O_NONBLOCK)))
    |                     ----- ^^^^^^ expected `i32`, found `OwnedFd`
    |                     |
    |                     arguments to this function are incorrect
    |
note: function defined here
   --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.28.0/src/fcntl.rs:600:8
    |
600 | pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> {
    |        ^^^^^

error[E0308]: mismatched types
   --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.3/src/platform/unix/mod.rs:57:33
    |
57  | ...   .and_then(|_| fcntl(pipe.1, FcntlArg::F_SETFL(OFlag::O_NONBLOCK)));
    |                     ----- ^^^^^^ expected `i32`, found `OwnedFd`
    |                     |
    |                     arguments to this function are incorrect
    |
note: function defined here
   --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.28.0/src/fcntl.rs:600:8
    |
600 | pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> {
    |        ^^^^^

error[E0308]: mismatched types
   --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.3/src/platform/unix/mod.rs:61:21
    |
61  |         Ok(_) => Ok(pipe),
    |                  -- ^^^^ expected `(i32, i32)`, found `(OwnedFd, OwnedFd)`
    |                  |
    |                  arguments to this enum variant are incorrect
    |
    = note: expected tuple `(i32, i32)`
               found tuple `(OwnedFd, OwnedFd)`
help: the type constructed contains `(OwnedFd, OwnedFd)` due to the type of the argument passed
   --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.3/src/platform/unix/mod.rs:61:18
    |
61  |         Ok(_) => Ok(pipe),
    |                  ^^^----^
    |                     |
    |                     this argument influences the type of `Ok`
note: tuple variant defined here
   --> /Users/jamiepond/.rustup/toolchains/nightly-2023-10-26-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/result.rs:506:5
    |
506 |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
    |     ^^

error[E0308]: mismatched types
    --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.3/src/platform/unix/mod.rs:63:35
     |
63   |             let _ = unistd::close(pipe.0);
     |                     ------------- ^^^^^^ expected `i32`, found `OwnedFd`
     |                     |
     |                     arguments to this function are incorrect
     |
note: function defined here
    --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.28.0/src/unistd.rs:1087:8
     |
1087 | pub fn close(fd: RawFd) -> Result<()> {
     |        ^^^^^

error[E0308]: mismatched types
    --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.3/src/platform/unix/mod.rs:64:35
     |
64   |             let _ = unistd::close(pipe.1);
     |                     ------------- ^^^^^^ expected `i32`, found `OwnedFd`
     |                     |
     |                     arguments to this function are incorrect
     |
note: function defined here
    --> /Users/jamiepond/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.28.0/src/unistd.rs:1087:8
     |
1087 | pub fn close(fd: RawFd) -> Result<()> {
     |        ^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `ctrlc` (lib) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...

Try cargo install --locked just. I think this is a dependency issue. cargo install ignores the lockfile, and uses the latest semver compatible version of dependencies, and those can introduce a compilation error.

✅ works for me!

Fixed in the latest version by pinning ctrl to 3.1.1, so you should now be able to do cargo install just, although cargo install --locked just will still be more reliable, if this problem reoccurs.


Killing a query in windows 1 affects query running in window 2

Description
Hi,
I had a long running update statement running in dbeaver using the sqlite driver.  I opened a second window to connect to the same sqlite db on disk and run a select statement.  The select statement was taking a long time so I cancelled it, but it also terminated the query running in the other window as well.
I feel like this is probably not the expected behavior. I certainly didn't expect it. Close issue if I am mistaken.
DBeaver Version
22.2.5
Operating System
Monterey
Database and driver
SQLite using sqlisupport 1.0.143 ? I don't know the driver for sure. I am using the jdbc:sqlite// connection string.
Steps to reproduce

Connect` to demo.db sqlite databae.
Create a long-running update statement
Go to Window -> New window
Connect to the same demo.db
Perform a long running select statement
Cancel the select query
You will see the update statement in the original window also gets terminated

Additional context
No response

Hello @ivym1ke,
Could you try changing this option?

I'd also suggest to run queries in different sql editors (or you could open SQL Console for this purpose), because with the above option new connection will be created per editor.

It's a long time since no update on this issue. If it's still actual, please, let me know.


Still using deprecated rollup option key

The entrykey should be changed to input since<EMAIL_ADDRESS>Setting the rollup dependency version to >=0.45.x making new installations to get the 0.48.x versions, thus causing breaking changes.
https://github.com/jlmakes/karma-rollup-preprocessor/blob/56f48f7500acd147d88108166481de61d7c36308/lib/index.js#L37

Still running into issues unfortunately.

Still running into some issues…

@jlmakes What kind of issues? I just checked the master branch on one of my project and it seems good.

❌ Rollup 0.48.2 / Legacy Config / Preprocessor 4.0.3

Unexpected key 'moduleName' found

❌ Rollup 0.48.2 / Legacy Config / Preprocessor master

Unexpected key 'moduleName' found

❌ Rollup 0.48.2 / New Config / Preprocessor 4.0.3

options.entry is deprecated, use options.input

✅ Rollup 0.48.2 / New Config / preprocessor master

Contrary to Rich Harris’ tweet suggesting there shouldn’t be much breakage—this doesn’t look very backwards compatible.
I’m wondering if preprocessor 4.x should be legacy format (i.e. rollup < 0.48.0)
and a new preprocessor 5.x would support the new format (i.e. rollup >= 0.48.0)
Thoughts?

Your errors seems related to the configuration in your project since the preprocessor does not set/get any moduleName option.
I don't think this is the responsibility of the karma-rollup-preprocessor to patch the configuration to the new (or old format) for keys that are not read or set by the preprocessor. Instead each project should use a rollup configuration which is compatible with the version of rollup installed in the project, but maybe I'm wrong.

The complete abandon of semantic versioning for Rollup is frustrating

Well... Until a version 1.0.0 is released, semantic versioning allow breaking changes between versions. But that's frustrating, I agree :)

So, if developers run into errors or warnings because the preprocessor installed a different version of Rollup—it’s up to the developer to update their configuration… not the preprocessor to continue to work with their existing configuration?

@jlmakes Maybe, rollup should be a peer dependencies, not a direct dependencies?
Doing this will force developers to choose what version of rollup to install, and so use a configuration compatible with the version that is installed (for example, karma-webpack define webpack as a peer dependency too). That said, doing this will be a breaking change.

I’m not sure I see a path that doesn’t involve a breaking change in the preprocessor... and that sounds better than managing what version of Rollup is installed.
So what about preprocessor 4.0.4 with 0.45 <= rollup < 0.48 to damage control broken legacy configuration objects (since v4 does manage rollup dep version)...
And a preprocessor 5.0.0 that doesn’t manage dep version with with peer rollup >= 0.45

So what about a preprocessor bump to 4.0.4 with 0.45 <= rollup < 0.48 to damage control broken legacy configs... and a preprocessor 5.0.0 with peer rollup >= 0.48?

That seems good 👌


Sending invalid keys doesn't return error

Version - 2.1.2 - rc5 & master
Steps to reproduce (least amount of steps as possible):

Create a EKS cluster with a session token
Delete cluster
Fill out Access, Secret keys and token with invalid information
Click on Delete Cluster

Result:  Nothing happens.  We should show the error that the keys are invalid.

Version - 2.1.2 rc8
Verified fixed


fix: offer suggestions for unresolved metadata types

What does this PR do?
In the past, a misspelled metadata file would fall back to EmailServicesFunction because that is the default for the .xml suffix. This change will prevent that incorrect resolved type and also offer suggestions to try similar metadata types.
Step 1 - Validation

Create and bootstrap Dreamhouse
Run sfdx project generate manifest --source-dir force-app

Note that the package.xml has the following Layout entry

<types>
    <members>Broker__c-Broker Layout</members>
    <members>Property__c-Property Layout</members>
    <name>Layout</name>
</types>

Step 2 - Reproduce bug

Rename the Property layout to have a capital L on .Layout-meta.xml

Run mv force-app/main/default/layouts/Property__c-Property\ Layout.layout-meta.xml force-app/main/default/layouts/Property__c-Property\ Layout.Layout-meta.xml

Run sfdx project generate manifest --source-dir force-app
Note that the generated manifest

Completes "successfully"
The Label type no longer contains Property__c-Property\ Layout
There is an incorrect entry for EmailServicesFunction

<types>
    <members>Property__c-Property Layout</members>
    <name>EmailServicesFunction</name>
</types>

This is because this lookup is using the .xml filename suffix which was claimed by EmailServicesFunction here

Step 3 - Testing Changes

Pull this branch
Run yarn link
cd to plugin-deploy-retrieve
Run yarn link @salesforce/source-deploy-retrieve
Run sfdx plugins link
Run sfdx plugins to confirm plugin is linked
Run sfdx project generate manifest --source-dir force-app
Confirm that you see a message like:

Note that this is not specific to case. You can misspell a metadata type and it will try to find the closest match.

Try renaming the layout to lyout-meta.xml

What issues does this PR fix or reference?
@W-12731813@

QA:
using SDR linked into PDR
✅ got the following suggestions, along with the expected header/footer
-- Did you mean ".ai-meta.xml" instead for the "AIApplication" metadata type?
-- Did you mean ".apt-meta.xml" instead for the "ActionPlanTemplate" metadata type?
-- Did you mean ".scf-meta.xml" instead for the "Scontrol" metadata type?
-- Did you mean ".app-meta.xml" instead for the "CustomApplication" metadata type?
-- Did you mean ".eca-meta.xml" instead for the "ExternalClientApplication" metadata type?
-- Did you mean ".aq-meta.xml" instead for the "AssessmentQuestion" metadata type?
-- Did you mean ".aqs-meta.xml" instead for the "AssessmentQuestionSet" metadata type?

fileUtilities.cls => fileUtilities.CLS
✅ 🤷🏻 seems to convert just fine!
fileUtilities.cls-meta.xml => fileUtilities.cLS-meta.xml
✅ 🏆 great suggestion: -- Did you mean ".cls-meta.xml" instead for the "ApexClass" metadata type?
fileUtilities.cls-meta.xml => fileUtilities.cLS-meta.xmz
✅ 🏆 great suggestion: -- Did you mean ".cls-meta.xml" instead for the "ApexClass" metadata type?
prompts/Property.prompt-meta.xml => property.xml
👎🏻 doesn't convert, silents omits it from the output.  I think this is being treated as "oh, then it's probably a package.xml."  I'm not sure what can be done about it, though, without opening the file and peeking inside.  Open to suggestions!
prompts/Property.prom-meta.xml => property.xml
✅  A search for the ".prom-meta.xml" metadata suffix found the following close matches:
-- Did you mean ".prompt-meta.xml" instead for the "Prompt" metadata type?
putting a bad extension on a listView (child of custom object)
Error (1): Unexpected child metadata [/Users/shane.mclaughlin/eng/plugin-deploy-retrieve/testProj/force-app/main/default/objects/Broker__c/listViews/All.lstvu-meta.xml] found for parent type [CustomObject]
➕ I'm still happy we have good error messages from all that strict-mode work.  I think this is potentially another place we could provide suggestions into this "Unexpected child metadata" error.  Doesn't have to be now.

all of these are not changed ⬇
🤷🏻  "converts" it by keeping the same error.  Not in the scope of this PR, they'll get an error at deploy time.  It's ok.

/staticresources/sample_data_brokers.resource-meta.xml => sample_data_brokers.xml
/staticresources/sample_data_brokers.resource-meta.xml => sample_data_brokers.resources-meta.xml
auraPropertyListMap.cmp-meta.xml => auraPropertyListMap.comp-meta.xml
fileUtilities.cls-meta.xml => fileUtilities.cLS-meta.

@mshanemc I was not able to figure out how to get readFileSync working with with the ZipTreeContainer. However, I think what I've added here will detect manifests most of the time. Also related to this QA feedback

prompts/Property.prompt-meta.xml => property.xml
👎🏻 doesn't convert, silents omits it from the output. I think this is being treated as "oh, then it's probably a package.xml." I'm not sure what can be done about it, though, without opening the file and peeking inside. Open to suggestions!

This is how this currently works prior to these changes. Unlink plugin-delpoy-retrieve and run this test ^ A property.xml file is silently ignored. At least now we get a warning about it


Cocoapods Spec Uses the Wrong Repo For Pluralize

While the podspec on this repo references joshualat/Pluralize.swift, the one that you get by doing pod 'Pluralize.swift' is actually @sammy-SC's fork, which hasn't been updated for a while and is still using Swift 1.2.
I'm not quite sure what the process is for fixing that at the moment, just figured I'd log it here.

Yes, wonderful. For others coming across this you can specify the repo in your Podfile like this:
pod 'Pluralize.swift',
  git: 'git@github.com:joshualat/Pluralize.swift.git',
  branch: 'master'

@joshualat @sammy-SC Can you push an update to cocoapods?

@paulnicholson This repo appears to be abandoned. Best bet is to clone it and maintain yourself or simply grab the Pluralize.swift source file and drop it into your own project.

@DavidLari Using this repo in the podfile like pod 'Pluralize.swift', git: 'git@github.com:joshualat/Pluralize.swift.git', branch: 'master' works just fine. The podspec in the official cocoapods repo points to @sammy-SC's fork which is outdated.

That's true, but the 'maintainer' has shown no interest in responding to any issues, thus I would consider it abandoned and plan accordingly. In my case, I just copied the relevant source file into my project and edit as needed.

Hello @DavidLari @paulnicholson ,
I apologize for late response.
I believe the project has been abandoned and I recommend the same thing as @DavidLari


feat: bump golangci-lint to v1.55.2

Problem:
The golangci-lint version before v1.51.0 may have OOM issue with golang v1.20.
Solution:
Bump golangci-lint to a version after v1.51.0.
Related Issue:
https://github.com/harvester/harvester/issues/4938

@mergifyio backport v1.2


Can navigate from native screen to particular scene in react native?

Moving from react native scene to native is possible but how to navigate from native screen to particular scene in react native?
For example from Scene A (React Native) I am navigating to Screen B (Native Screen). I need to navigate from Screen B (Native Screen) to Scene C (React Native)

Sorry no one's been able to suggest a solution @brainahdev
I'll close this one, but if you did find a solution - it'd be awesome if you commented back here to help others.


Azure endpoints require a different header

Hi there,
This project is awesome, thanks for all your work on this.
Just FYI, it works with Azure OpenAI endpoints, just with a slight tweak to the header.
https://github.com/C-Loftus/talon-ai-tools/blob/e98c2d0577ddfbe3f210bcb60de6fcc38bd2e8c0/lib/modelHelpers.py#L138
needs to become
"api-key": TOKEN,

Not sure if that's something you want to do dynamically or if just leaving this issue for other people to find and tweak themselves is enough :) I imagine supporting every single model end point would be a lot of work

Thanks for filing this, I think this is totally reasonable to support. Just curious since I'm not super familiar with Azure, do you use this for work or is it just your preferred model endpoint?
I think the proper way to do this would be to just check the value of the model setting and if it contains azure in the URL, we just use an if statement to switch the api key format. If you wanted to submit a PR for that I would be happy to merge. I am a bit busy so may not do this myself at the moment.

@zilch42 This issue couldn't have come more timely manner. I was driving myself crazy trying to figure this out yesterday! Thank you so much.
And yes I agree this project is awesome. 😃

On a separate note I made the following change to my personal fork, happy to make the pull request myself but don't want to steal the credit from @zilch42.
https://github.com/C-Loftus/talon-ai-tools/blob/e98c2d0577ddfbe3f210bcb60de6fcc38bd2e8c0/lib/modelHelpers.py#L136-L139
to
headers = {
    "Content-Type": "application/json"
    }

    # If the model endpoint is Azure, we need to use a different header
    if "azure.com" in settings.get("user.model_endpoint"):
        headers["api-key"] = TOKEN
    else:
        headers["Authorization"] = f"Bearer {TOKEN}"

Thanks, that change looks good, whichever of you wish to send the PR feel free!

I'll make the PR tomorrow morning if we don't hear back from @zilch42.

Thanks both @Max-FM I'm happy for you to do the PR if you are!
Just noting it will probably have to be applied here as well
https://github.com/C-Loftus/talon-ai-tools/blob/e98c2d0577ddfbe3f210bcb60de6fcc38bd2e8c0/Images/ai-images.py#L20

Just curious since I'm not super familiar with Azure, do you use this for work or is it just your preferred model endpoint?

Yeah for work

Thanks both @Max-FM I'm happy for you to do the PR if you are!

Cheers @zilch42. I will go ahead and publish the PR.

Just noting it will probably have to be applied here as well
https://github.com/C-Loftus/talon-ai-tools/blob/e98c2d0577ddfbe3f210bcb60de6fcc38bd2e8c0/Images/ai-images.py#L20

Thanks for the heads up. I also noticed this file uses a hardcoded OpenAI endpoint, which will have to be modified dynamically for Azure. I will apply the header fix but will leave the URL modification for a future PR and open up a new issue. I will try to work on this myself if I can find the time.
https://github.com/C-Loftus/talon-ai-tools/blob/e98c2d0577ddfbe3f210bcb60de6fcc38bd2e8c0/Images/ai-images.py#L16


Update the organisation to optics.dev

A few people asked me if we are going to update the organisation name. Monocle 3 is definitely the best time to do it.
I haven't created a sonatype account for ages, I am not sure what the process is. If anyone has links or would like to pick up the task, that would be awesome!

I created a ticket to sonatype https://issues.sonatype.org/browse/OSSRH-69548

If you created a new Sonatype account, it might be using their new domain s01.oss.sonatype.org. So you need to specify this in the build.sbt:
sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"

@armanbilge Cheers, I tried that but it seems that it doesn't update the publication. Maybe I need to put those settings somewhere else?
https://github.com/optics-dev/Monocle/blob/master/build.sbt#L14-L15

Fixed thanks


Vape: Create vape without settings and so and extract it into drawer for later

This will create a workflow: create a vape (fill atomizer, taste the thing, setup parameters, ...) and later on make rating.

-cib

/cib

Done.


Updating CSS to work with AdSense ads recall pill.

This was a mistake on my part, should have been updated in the initial pull request.

LGTM