💎🅾🅼🅶 Free Xbox Gift Cards Xbox ☑ Free Gift Card Codes 2024☄Free Xbox Gift Card Codes ☑

Hey there, Xbox fans!  We've got something special in store for you - introducing the Xbox Gift Card Generator 2024! That's right, we're bringing you the latest and greatest way to score free Xbox gift cards and elevate your gaming adventures.With the Xbox Gift Card Generator, you can say goodbye to spending your hard-earned cash on game purchases.
✅🎁CLICK HERE TO GET FREE NOW✔🎁
✅🎁CLICK HERE TO GET FREE NOW✔🎁
Our innovative tool allows you to generate free Xbox gift card codes, giving you access to a world of thrilling games, add-ons, and more, without breaking the bank.
But wait, there's more! We're not just stopping at the Xbox Gift Card Generator - we're also hosting epic Xbox Gift Card Giveaways! Get ready to participate in exciting contests and sweepstakes for a chance to win free Xbox gift cards and unlock a treasure trove of gaming goodness.
And that's not all - we understand the value of in-game currency, which is why we've introduced the Xbox Money Generator. Say hello to a hassle-free way of earning free Xbox money to power up your gaming experience. Whether it's purchasing in-game items or expanding your gaming library, the Xbox Money Generator has got you covered.
For those of you looking for the ultimate gaming treat, the Xbox Free Gift Card is here to make your day. Yes, you heard that right - free gift cards for the Xbox community! It's our way of showing appreciation to our dedicated gamers and making sure you have all the resources you need to conquer new gaming challenges.
Redeeming your Xbox gift cards has never been easier, thanks to the Xbox Gift Card Redeem feature.
Simply enter your gift card code and unlock a world of gaming possibilities. Whether you're a seasoned gamer or new to the Xbox universe, the Xbox Gift Card Redeem feature is designed to make your gaming journey seamless and enjoyable.
So, what are you waiting for? Dive into the excitement of the Xbox Gift Card Generator 2024 and elevate your gaming experience like never before. With free gift cards, giveaways, and a money generator at your fingertips, the possibilities are endless. Get ready to level up and unleash the full potential of your gaming adventures with Xbox!

kys


Resolve old dependency PRs: Snyk alerts

Overview
Snyk has been discontinued in Chayn and can no longer interact with the dependency alert pull requests it previously opened. Resolve the dependencies alerted by Snyk and close these PRs so we can clean up our PR dashboard and update our depenendencies.
Action Items

[ ] Identify all PRs opened by Snyk.
[ ] If access to the Snyk dashboard for Chayn is granted, we can briefly reenable Snyk again to use the automated processes to resolve these PRs. Make sure to disable Snyk in all organizational settings in GitHub after you're done.
[ ] If we cannot access the Synk dashboard, ie: if the admin is out of office, we can create separate pull requests for updating the dependencies independently and open new PRs ourselves, then close the PRs opened by Snyk. Focus primarily on high and critical severity level PRs. Approve their workflow runs and resolve any merge conflicts. If they pass all tests, merge these PRs. If the tests don't pass, please keep the pull request open for reference. If there are repeat PRs for the same dependency, try to merge the highest version possible and close the rest. Note: there is a workflow from Snyk called security/snyk (chaynteam) that is required for merging, please bypass this requirement this will be removed in another issue.

Resources

Closing as incomplete because it's evolved into a duplicate for issue: https://github.com/chaynHQ/ysm/issues/226


BlockMerkleRootRule - clarify leaves maximum

Hi,
I've been reading BlockMerkleRootRule.cs and I have encountered the following line: https://github.com/stratisproject/StratisBitcoinFullNode/blob/master/src/Stratis.Bitcoin.Features.Consensus/Rules/CommonRules/BlockMerkleRootRule.cs#L73 containing:
/// <remarks>This implements a constant-space merkle root/path calculator, limited to 2^32 leaves.</remarks>

The remark is misleading because leaves input parameter of the function:
public static uint256 ComputeMerkleRoot(List<uint256> leaves, out bool mutated)

is limited to Int32.MaxValue elements which is actually lower, i.e. 2^31 - 1. So the implementation can handle rather Int32.MaxValue leaves and not 2^32 leaves.

I think this is mostly correct, but 0 can be a leaf too. So the maximum is Int32.MaxValue + 1 = 2^31.


fix files with ' or " by using arg lists instead of strings

Now things are a lot more readable and secure. No shell early quote ends.
Also replaced all uses of Popen and communicate
May also fix the kindlegen from kp3 error, haven't replicated.

@axu2
Master branch

your PR:

This doesn't seem to work

Whoops, didn't notice since that error got bypassed on mac due to unar
I'll also improve the error logging.


App fingerprinting finetuning/polish

Using this basic app for a case study https://github.com/savannahostrowski/cinest
Updates we should make...
Before 9/20

[ ] The standard .gitignore for Python automatically adds lib/ as this is a subdirectory in venv. We should update our lib/ in infra/ to not conflict with this naming
[ ] Consider adding common troubleshooting at the top of next-steps.md:

[ ]  Call out that the ports may need to be updated
[ ] Env variables used in api.bicep need to match the app right away)
[ ] Needed to update paths for API requests in front-end to use back-end container URL (a bit of a chicken and egg problem)

[ ] Explore how we can better direct users to update package.json or similar in their app to add what Oryx expects (e.g. a start script is needed and there's no Google-able results for users to debug this). At the very least, we should add to the top of next-steps.md
[ ] Consider updating to check for asyncpg for Postgres DB detection

By Ignite:

[ ] Advance to preview + advance buildpacks (to be discussed)
[ ] Improve the pattern for configuring environment variables (e.g. API keys) as today it's pretty convoluted --> e.g. copy the contents of your .env into the .azure/<env name>/.env file, add them to main.parameters.json, add params for the keys in main.bicep, pass params into api.bicep module and use in api.bicep secrets.
[ ] Can we make educated guesses on ports and provide suggestions here?
[ ] After setting up azd in CI, I am seeing a 403 error when trying to use azd locally --> "does not have secrets get permission on key vault"; can no longer reprovision from local enviroment after trying to set up

Post Ignite:

[ ] Support for managed add-ons - e.g. Redis running in container
[ ] Support for overriding recommended services

Typing on mobile since home internet isn't working, apologies for the conciseness and simplistic formatting:

Ports and DB. We may consider prompting early on for the desired values, as this is more aligned with progressive disclosure than the alternative. In dotnet, we can safely provide a default. If we want this experience to be better, we'd also want to offer different types of variable settings. A single psql connection string or discrete db properties.
Back-end reference: We do provide an env var for the front end to reference the backend in the form of API_BASE_URL. This could be also exported to local env and have instructions in nextsteps.md on how to consume.
Oryx treatment of static front-ends: this needs discussion with Oryx team. The current flow is not idiomatic and actually goes against most dev expectations.
KeyVault CI/CD: may be able to adjust the bicep to PATCH instead of PUT. I suspect the same issue currently exists with other todo apps that uses secretOrRandomPassword.
Secrets: there's two pathways, one is storing in CI provider and referencing via env var as done above. Alternative is to add it to the KeyVault. There's an overarching question here on whether azd's over-simplistic assumption that you can provision secrets and app in a single bicep deployment is the way to go long term. This may deserve it's own write-up.


Support for M1 Mac

Describe the bug
I am building a framework using Starscream as a dependency. The framework is built successfully and I am able to use it in the demo project.
But on M1 MacBook, I get the following error when building / running on simulator.

Steps to Reproduce

Build a framework, use Starscream as a dependency
Generate the framework and integrate in a demo app
Selected simulator target and run the project using M1 mac

Expected behavior

The project should work for simulators on M1 Macs also

Environment:

MacBook: M1 Mac running macOS Big Sur 11.4
OS/Version: iOS 14.5
Starscream Version: 4.0.4
Xcode version: 12.5

same issue here, any news?

Same issue on M2 Mac. Has anyone figured out a fix?

Any luck here?

4.0.5 release should build on m1/m2 now


Question on tinygrad flux + MCTS optimization

I tried optimizing flux in tinygrad on H100.
https://github.com/anthony0727/flux-tinygrad-opt
The inference time measure of raw flux seems to be too slow.
Could you give me a hint if I'm missing something?

Optimization Method
Time (ms)

RAW
201654.093

HC
7989.641

TC
6317.517

BEAM
594.451

MCTS
825.108

hcopt is there for a reason, raw time looks correct

Trying to compare with torch.compile, which gave ~40% speed up compared to original raw flux,
but above observation shows ~300 times speed up with beam search.
I found this quite doubtful, but if I implemented correctly, this is interesting.

torch.compile isn't the same thing as our beam search or mcts search. our raw kernels are not the same as torch raw kernels.


the repo does seems to work with current version of stan

the interface to stan has been changed. Yet, the requirements.txt file does not state versions so it is hard to find which version was used. For example, now you import stan rather than import pystan. Moreover, the interface to StanModel has changed to model.Model etc.

I have added the pystan version to the environment.yaml file. Instructions on how to install have been added to the README.md as well.


Added entries_name option to page_entries_info

Often when I used the helper method page_entries_info, I had the problem, that the paginated model used a name, which was irregular or I used a different language.
So I have added another option, to override the plural form of the noun.

will address another related and open issue and request again


Tensorflow Recurrent Neural Networks (RNN) with Keras colab (rnn.ipynb) Fail to find the dnn implementation. [Op:CudnnRNN]

After running the colab file from the official documentation, I saw an error appearing after applying a LSTM layer on input data, only when running on either GPU offered by Google Colab.
!nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03    Driver Version: 460.32.03    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla T4            Off  | 00000000:00:04.0 Off |                    0 |
| N/A   72C    P0    32W /  70W |    468MiB / 15109MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

Import packages:
import numpy as np
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers

Instantiate LSTM layer:
lstm_layer = layers.LSTM(64, stateful=True)
Create input data:
paragraph1 = np.random.random((20, 10, 50)).astype(np.float32)
paragraph2 = np.random.random((20, 10, 50)).astype(np.float32)
paragraph3 = np.random.random((20, 10, 50)).astype(np.float32)

Pass paragraph1 on lstm_layer and generate the output:
output = lstm_layer(paragraph1)
Error:
---------------------------------------------------------------------------
UnknownError                              Traceback (most recent call last)
[<ipython-input-6-9442751be8e1>](https://localhost:8080/#) in <module>
      4
      5 lstm_layer = layers.LSTM(64, stateful=True)
----> 6 output = lstm_layer(paragraph1)
      7 output = lstm_layer(paragraph2)
      8 output = lstm_layer(paragraph3)

2 frames
[/usr/local/lib/python3.7/dist-packages/tensorflow/python/eager/execute.py](https://localhost:8080/#) in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
     53     ctx.ensure_initialized()
     54     tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
---> 55                                         inputs, attrs, num_outputs)
     56   except core._NotOkStatusException as e:
     57     if name is not None:

UnknownError: Exception encountered when calling layer "lstm_1" (type LSTM).

Fail to find the dnn implementation. [Op:CudnnRNN]

Call arguments received by layer "lstm_1" (type LSTM):
  • inputs=tf.Tensor(shape=(20, 10, 50), dtype=float32)
  • mask=None
  • training=None
  • initial_state=None

The same code runs on CPU.

This bug is being reported in Google Colab issues 6 times, since the last 8 hours.
https://github.com/googlecolab/colabtools/issues

Hi,
Thanks for reporting the bug.
I'm able to run the example successfully in TensorFlow 2.13, could you please verify here https://gist.github.com/sachinprasadhs/5f58c80b81f4f171fe6b3dbfffb946df and close the issue. Thanks!


fix: migrate melos to 3.0

- What I did
Melos needs a pubspec and has some formatting changes in melos.yaml.
Added pubspec_overrides.yaml to .gitignore
- How I did it
- How to verify it
- Description for the changelog
migrate melos from 2.0 to 3.0

Yeah, some repos use /** which will recursively select everything (which is fine for most repos), however some repos (like at_app) need to be more specific and use /*


Docker error running postgres tests

Running make test I see the following error on the github.com/clockworksoul/gort/dataaccess/postgres package.
     base_test.go:53:
         	Error Trace:	base_test.go:53
         	Error:      	Received unexpected error:
         	            	Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
         	Test:       	TestMain
         	Messages:   	failed to start database container

I'm running Docker Desktop 3.3.3 on MacOS (docker engine version 20.10.6).

After some work getting Gort working locally, it turns out this was because I was using the new Big Sur virtualization framework.
If anyone else sees this, they can disable that setting under "Preferences" -> "Experimental" by un-checking "Use new virtualization framework".

Seeing a separate error now, but closing this issue and will open a separate one for that.

Thought I had a solution to this, but was mistaken, seemed to work once and then failed again. Something else afoot! Will keep digging.

Can give the following a try?
export DOCKER_API_VERSION="$(docker version | grep 'API version' | head -n
1 | awk '{print $3}')"
On Mon, May 31, 2021 at 7:19 PM Tom Elliott @.***>
wrote:

Thought I had a solution to this, but was mistaken, seemed to work once
and then failed again. Something else afoot! Will keep digging.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/clockworksoul/gort/issues/1#issuecomment-851714313,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACKZ2P3HJY63UCCGMJCSYOLTQQKR7ANCNFSM453JCIMQ
.

Same error, unfortunately. Should I have run that in the terminal where I was running make test or adding it to the Makefile?

Actually... it just occurred to me.
make test runs in a container, but the tests try to use a Docker socket. That won't work at all!
The Makefile should actually be updated to run a "go test -v ./..." instead of using the test phase of the dockerfile.

Makes sense, I was thinking there was some trickery going on to expose the Docker socket inside the container.
Would there also be value in having a "short" version of the tests that can be run inside a container?

No, I'm afraid I'm not that clever.
That's a good question. I'm not sure there really is... I'm thinking that either a container test should be supported, or not. So the question is: is there significant value for containerized testing relative to non-containerized testing?

There's an argument for reproducibility, but that's probably better achieved through CI (GitHub Actions, etc). Anyone running tests to contribute probably has the right dependencies installed anyway.

That's kind of what I was thinking.
Maybe we could include a meta-test to make sure that Docker's installed? That's really the only test dependency right now.

I'm think I'm going to have the Postgres steps get skipped (via the go test -short functionality) in the Docker build.
The side-effect is that database DAL tests won't be run in the containerized mode, but I think that's fine as long as we're sure to run the full suite of tests when we make changes to that code (I tend to run the tests explicitly via go test -v ./... anyway).

Made make test work by applying the solution described above.


[fastlane_core] add codesign partition ID to keychain when importing

From my research I found that adding the codesign partition ID to the keychain partition list helps with errors like:
errSecInternalComponent
Command /usr/bin/codesign failed with exit code

or
error: The specified item could not be found in the keychain.

@jakubgs Hey 👋  Do you mind signing the CLA when you get a chance? Can't merge without it 🤷♂

I'm not really interested in reading or accepting any CLA. Maybe I should just open an issue instead?

@jakubgs If you want to open an issue that would be great! Sorry about the CLA 😔  Not something we are able to get around at the moment.

Sure thing, there you go: https://github.com/fastlane/fastlane/discussions/16903

@jakubgs Thank you! ❤


Update debugging_protected_audience_api_services.md

Updated the data flow diagram.
Added how to enable the consented debugging.
Added two screenshots.

LGTM.
@akshaypundle Would you be able to LGTM here as well? Thanks.


Regexp compilation error (Windows)

When running this project, an "Error" popup occurs at startup saying
Regexp compilation error : this version of PCRE2 does not have Unicode support in ^(\w+?)://([\w\.+)(:(\d+))?(/.*)?$

My installation went as follows:

Downloaded this repo
Ran git clone https://github.com/Kode/Kha.git
Ran node Kha/make --run on Windows

I'm using the latest version of Kha, Windows 11, and Haxe v4.3.3

Hi! Haven't seen that before unfortunately, and developing this on Linux so it's tricky for me to reproduce what seems likely to be a Windows specific issue.
I had an unrelated native Linux build issue that went away on updating Kha, but that was at the C++ build stage, not runtime. I'm pretty sure I'm not doing anything regex related in this project, but Haxe certainly uses PCRE. I'm on Haxe v4.3.4.
Have other Kha projects build without issue? You could also trying a debug build and running in a debugger.
Finally, you could try HTML5. That works for me (just remember to start the server with node server/main.js).

An empty Kha project compiles normally for me. I think I tried HTML5, but could be wrong. And yeah, the PCRE thing seems like an internal Haxe issue? Just wanted to bring it up, if it can't be replicated no biggie, I'll try again later. 😅


iOS 17 Update

I hope there will be an ios 17 emojis soon. There's kind of a lot of new emojis added.

+1

+1

I'm hoping we can get 17.x.x emojis as well

+1

Check latest release


Use Codecov

Codecov is coverage report hosting service.
Example

Site
Badge

How to use

Sign up https://codecov.io
Integration shishamo repository
Get repository upload token
Add CODECOV_TOKEN  environment variables to CircleCI

SonarQubeを使う予定だったのでclose


Documentation on how CONFIG dictionary is built.

The current logic to override giftless default configuration with the custom one in the .yaml file overrides the default configuration dictionary only if the same key exist in the .yaml file. Is that the desired behaviour or a buggy one?
For example if I have a .yaml file with the following config spec:
PRE_AUTHORIZED_ACTION_PROVIDER:
 options:
   private_key: my-new-private-key

The final config will be:
"PRE_AUTHORIZED_ACTION_PROVIDER": {
 'factory': 'giftless.auth.jwt:factory',
 'options': {
 'algorithm': 'HS256',
 'private_key': 'my-new-private-key',
 'private_key_file': None,
 'public_key': None,
 'public_key_file': None,
 'default_lifetime': 60, # 60 seconds for default actions
 'key_id': 'giftless-internal-jwt-key',
 }
 },

I may expect (IMHO), the options element to be identical as the one in my .yaml file and not a mix of both since it is not clear why all the other values are there (for example key_id).

It's the expected behavior right now, although it may not be perfect and we can discuss it.
Basically, configuration is merged on top of the default config (and on top of that, additional sources such as ENV vars or command line arguments may be merged). Dictionaries are merged and not replaced, unless the base config explicitly expects it. This is based on an old 3rd party config management library I wrote called figcan but TBH I never felt it was a perfect solution (just a very simplistic one, which is good until proven otherwise).
About this specific case, I'm not convinced it's a problem. All the default keys that are there are "for internal use", I don't think users should be bothered about them. We can improve it in some ways, e.g. by making the base  value for PRE_AUTHORIZED_ACTION_PROVIDER.options and factory be empty, and have "fallback" mechanism to use a 2nd set of options only if the 1st one has not been defined. But that means, that users will need to set things like algorithm and key_id (which is required, you just normally don't care about it's value). So I'm not sure this is a bad thing to keep it as is.

It's the expected behavior right now, although it may not be perfect and we can discuss it.
Basically, configuration is merged on top of the default config (and on top of that, additional sources such as ENV vars or command line arguments may be merged). Dictionaries are merged and not replaced, unless the base config explicitly expects it. This is based on an old 3rd party config management library I wrote called figcan but TBH I never felt it was a perfect solution (just a very simplistic one, which is good until proven otherwise).
About this specific case, I'm not convinced it's a problem. All the default keys that are there are "for internal use", I don't think users should be bothered about them. We can improve it in some ways, e.g. by making the base  value for PRE_AUTHORIZED_ACTION_PROVIDER.options and factory be empty, and have "fallback" mechanism to use a 2nd set of options only if the 1st one has not been defined. But that means, that users will need to set things like algorithm and key_id (which is required, you just normally don't care about it's value). So I'm not sure this is a bad thing to keep it as is.

I've updated the configuration section in the docs with more info. I'm not sure how to document this specific behavior, but since I've answered the question I'm going to close this ticket for now.


Document that .form-inline & .form-horizontal work fine on non-s too

Fixes #15555.

@mdo LGTY?

Yup!


PyVLM is doubling the Vertical Stabilizer area

When LEME becomes relevant, this should be solved.

PyVLM is now deprecated.
Closing.


Create fiap.txt

www.fiap.com.br

you've mentioned fiap.com.br while committed http://www.fiap.br/ - could you please confirm, that this domain also belongs to university? Thanks!

only the domain "fiap.com.br", the "fiap.br" does not belong to university
,
thanks!

I've added the correct domain manually.


NP deprecations

np.int etc are now deprecated. Definitely crashing as of np 1.24.2.
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Also nibabel get_fdata() in favour of get_data()


Use confd for nginx config; add vars for buffers

Large header sizes, which occur when Drupal (or Islandora) add dozens of
link relations to http headers, cause the rather small default header
buffers in nginx to fill, resulting in 502 errors.  This brings nginx
config under the purview of confd, and adds configuration variables for
the buffers:

DRUPAL_FASTCGI_BUFFERS_NUMBER
DRUPAL_FASTCGI_BUFFERS_SIZE
DRUPAL_FASTCGI_BUFFER_SIZE

(named after the nginx param name:  fastcgi_buffers, fastcgi_buffer_size)
To Test
I pushed images to tag upstream-20200824-f8d1e8e-19-g9ae11c8.

Go to idc-isle-dc, set TAG=upstream-20200824-f8d1e8e-19-g9ae11c8 in .env,
Do make docker-compose.yml.

For Bethany:
Do make up,  Once up, create an object that used to provoke the 502 error, with lots of entity references.  Notice that an object that used to fail, doesn't fail any more out of the box
For Derek:

Edit docker-compose.yml, in the drupal service, add environment variables such as:
DRUPAL_FASTCGI_BUFFERS_SIZE: 1k
DRUPAL_FASTCGI_BUFFER_SIZE: 1k

do make up
once up, hop into the Drupal container, and look at /etc/nginx/conf.d/default.conf.  Find the fastcgi param values you just set.

Resulves #28

@birkland  - do you have a sense of these getting added because of Drupal or do you think it's something Islandora is doing?   Is it worth pursuing?

@bseeger I don't know where they're coming from, but created an issue: https://github.com/jhu-idc/idc-isle-dc/issues/75

I set the buffer sizes to 64k and successfully saw the changes in the nginx configuration.
bash-5.0# env | grep DRUPAL_FASTCGI
DRUPAL_FASTCGI_BUFFERS_SIZE=64k
DRUPAL_FASTCGI_BUFFER_SIZE=64k
bash-5.0# cat /etc/nginx/conf.d/default.conf | grep fastcgi_buff
	    fastcgi_buffers 8  64k;
	    fastcgi_buffer_size  64k;

Looks good to me


[datastore] Undefined method `value_type' for #Hash:0x007fea54bdc180

Hi i've been trying to do a queries to the data store on ruby with this corresponding code
query = dataset.query('builder-callout-extensions')                                                                          .where('language', '=', language)                                                                          .where('vertical', '=', vertical)                 dataset.run query
but i've got this corresponding error
undefined method `value_type' for #<Hash:0x007fea54bdc180>
is there something wrong with my code or is there any mistake that i made?
thanks

I don't get that error. What version of google-cloud-datastore are you using? What version of ruby are you using? What platform are you using?

Hi @blowmage thanks for the reply
i don't know why but when i delete the gemfile.lock and redoing the bundle install, everything works fine 😄

Glad to hear it resolved itself!  If you have any other problems please open another issue.


Contribution Image auto/manual refresh if fetching fails

Description
Fixes #1332
Swipe refresh layout addition for contribution fragment list to allow manual refresh of images
Tests performed
Tested with all states of contribution fragment list. Eg - while uploading image

Why this is closed? Please explain the problem before closing @devaar100 :)

@neslihanturan I made a mistake with this pull request
So I closed this and made the new, correct pull request


Adding a contract to deployment section when using flowkit.AddContract

Closes #1201
Description
When adding a Contract it is added to the contracts state but not to deployments if the deployment network does not exist already.

For contributor use:

[x] Targeted PR against master branch
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[x] Code follows the standards mentioned here
[x] Updated relevant documentation
[x] Re-reviewed Files changed in the Github PR explorer
[x] Added appropriate labels

Not quite sure why my editor (nvim) deletes these lines, if you want me to i can add them back once the logic is approved.

@bjartek looks like tests are failing

@chasefleming tests should work now.

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

Comparison is base (4edd362) 38.65% compared to head (bf00858) 40.79%.
Report is 23 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1247      +/-   ##
==========================================
+ Coverage   38.65%   40.79%   +2.14%
==========================================
  Files          38       38
  Lines        1948     1978      +30
==========================================
+ Hits          753      807      +54
+ Misses       1107     1082      -25
- Partials       88       89       +1

Flag
Coverage Δ

unittests
40.79% <ø> (+2.14%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.
see 2 files with indirect coverage changes

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


Optimize KV (cosmos and dynamoDB) seekGE by reducing query calls

Closing alternative implemented to fix the issue was merged (#6983)


BCP135: Scope "resource" is not valid for Microsoft.Insights/diagnosticSettings

Bicep version
Bicep CLI version 0.3.255 (589f0375df)
Describe the bug
Trying to enable diagnosticSettings for the Microsoft.ApiManagement/service, it won't build with a scope set to the APIM resource, error message is:

Error BCP135: Scope "resource" is not valid for this resource type. Permitted scopes: "managementGroup".

I've always tried to use a module and the reference scope, so I'm pretty sure it isn't tied to the Microsoft.ApiManagement/service resource specifically but something with the Microsoft.Insights/diagnosticSettings resource type.
To Reproduce
param resourceId string
param workspaceId string

var resource = reference(resourceId)

resource diagnosticSettings 'Microsoft.Insights/diagnosticSettings@2020-01-01-preview' = {
  scope: resource
  name: 'diagnostic-settings-to-log-analytics'
  properties: {
    workspaceId: workspaceId
    logs: [
      {
        category: 'GatewayLogs'
        enabled: true
        retentionPolicy: {
          enabled: true
          days: 0
        }
      }
    ]
  }
}

Additional context
The full/old way of doing it works but bicep complains about it and suggests to use the scope feature instead.

Switching the version to 2017-05-01-preview seems to resolve this. Intellisense is giving back the 2020-01-01-preview version which I just selected the most recent.

@anthony-c-martin - I think you answered a similar question yesterday. Looks like in their most recent swagger they changed the valid scopes where this could be deployed. Anthony - did we open an issue in the swagger repo?

Related to #2327. I'm not 100% clear whether this should be a Bicep fix or a swagger fix (or both). Seems like we could do a better job with the error message, and it's also perfectly valid (although perhaps unusual) to only increment the API version for a resource at a particular scope...

it's also perfectly valid (although perhaps unusual) to only increment the API version for a resource at a particular scope...

Good point - should we somehow union all the scopes that are valid for all api versions?

Going to close this and track with #2327. We will reach out to the Diagnostics team to see if this was an intentional change or is a bug.


Set proper content type for REST API responses

Using Jax-ws (Jersey) client to access uniqush REST API and it fails to automatically map the response to a Java object because of the content type "text/plain". This change solves this issue

The master branch of Interactive3G/uniqush-push has changed since this PR was created, adding unrelated changes.
Also, I plan on doing this later, as part of #55 (rewriting this as a restful API alongside the old API, e.g. /v2/). If text/plain breaks some applications, it's possible that changing it to application/json may break some other applications which already have workarounds. (E.g. if they call jsondecode((String)payload))
Also, some of the responses aren't yet guaranteed to be JSON (Version?), and I'd personally do this closer


[SMALLFIX] Use static imports for standard test utilities in UnderFil…

…eSystemConfigurationTest.java

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/16945/
Test PASSed.


Build error on Ubuntu 16.04.2 LTS

The following errors are reported  when I try to build cpp-netlib-0.11.2-final on Ubuntu 16.04.2 LTS with boost 1.60.0 and gcc 5.4.0 20160609.
/home/dev/cots/open-ssl/lib/libcrypto.a(dso_dlfcn.o): In functiondlfcn_globallookup':
dso_dlfcn.c:(.text+0x11): undefined reference to dlopen' dso_dlfcn.c:(.text+0x24): undefined reference to dlsym'
dso_dlfcn.c:(.text+0x2f): undefined reference to dlclose' /home/dev/cots/open-ssl/lib/libcrypto.a(dso_dlfcn.o): In function dlfcn_bind_func':
dso_dlfcn.c:(.text+0x334): undefined reference to dlsym' dso_dlfcn.c:(.text+0x3db): undefined reference to dlerror'
/home/dev/cots/open-ssl/lib/libcrypto.a(dso_dlfcn.o): In function dlfcn_bind_var': dso_dlfcn.c:(.text+0x454): undefined reference to dlsym'
dso_dlfcn.c:(.text+0x4fb): undefined reference to dlerror' /home/dev/cots/open-ssl/lib/libcrypto.a(dso_dlfcn.o): In function dlfcn_load':
dso_dlfcn.c:(.text+0x569): undefined reference to dlopen' dso_dlfcn.c:(.text+0x5cb): undefined reference to dlclose'
dso_dlfcn.c:(.text+0x603): undefined reference to dlerror' /home/dev/cots/open-ssl/lib/libcrypto.a(dso_dlfcn.o): In function dlfcn_pathbyaddr':
dso_dlfcn.c:(.text+0x69f): undefined reference to dladdr' dso_dlfcn.c:(.text+0x709): undefined reference to dlerror'
/home/dev/cots/open-ssl/lib/libcrypto.a(dso_dlfcn.o): In function dlfcn_unload': dso_dlfcn.c:(.text+0x762): undefined reference to dlclose'
collect2: error: ld returned 1 exit status
libs/network/test/CMakeFiles/cpp-netlib-message_test.dir/build.make:110: recipe for target 'tests/cpp-netlib-message_test' failed
make[2]: *** [tests/cpp-netlib-message_test] Error 1
make[2]: Leaving directory '/home/dev/cots/cpp-netlib/build'
CMakeFiles/Makefile2:230: recipe for target 'libs/network/test/CMakeFiles/cpp-netlib-message_test.dir/all' failed
make[1]: *** [libs/network/test/CMakeFiles/cpp-netlib-message_test.dir/all] Error 2
make[1]: Leaving directory '/home/dev/cots/cpp-netlib/build'
Makefile:141: recipe for target 'all' failed
make: *** [all] Error 2
`

@ksl67 can use 0.13-release branch unless there is a compelling reason to use 0.11.2 branch? IIRC, lots of bug fixes went into 0.13

0.13-release is no good to me. There are changes to the response, changes to how POST requests are handled (see https://github.com/cpp-netlib/cpp-netlib/issues/823). Very little to non-existent documentation or examples. I'll be dumping this library as soon as I get the chance to schedule looking at alternatives.

I'll be dumping this library as soon as I get the chance to schedule looking at alternatives.

cpp-netlib development is essentially dead. @glynos is MIA and @deanberris's availability is mostly limited to popping in from time to time to review and merge PRs. Issues are piling up and the occasional contributor only PR's a few lines here and there for unrelated issues.
Boost.Beast is a promising solution. @vinniefalco is actively developing the library.

Boost.Beast is a promising solution.

Yes, it is. Yet that is a lower-level lib - it takes quite a bit of code to implement a simple embedded server (there are ample examples though).

I'm really sorry about the lack of availability on this @ksl67.
I'd appreciate your candid feedback on how we can do better aside from being more active on the development of the library.


IDE is reporting a lot of errors while playing with Colorado COVID example

Discord username
No response
What type of issue is this?
Transient – Occurring only once
Is this issue blocking you from using Enso?

[ ] Yes, I can't use Enso because of this issue.

Is this a regression?

[ ] Yes, previous version of Enso did not have this issue.

What issue are you facing?
I opened an empty project, went back to the dashboard and opened Covid example from templates. The console was flooded with errors -mostly about visualizations, but few of them were concerning. I am attaching a video and screens from the console.
Expected behaviour
No errors in the console.
How we can reproduce it?
No response
Screenshots or screencasts

video:
https://drive.google.com/file/d/1JATn8h3Vjz4i9qE3IMeUSSV-GMO3s_yW/view?usp=share_link
Logs
No response
Enso Version
Nightly 31.05
Browser or standalone distribution
Standalone distribution (local project)
Browser Version or standalone distribution
standalone
Operating System
MacOS
Operating System Version
No response
Hardware you are using
No response

Partially a duplicate of https://github.com/enso-org/enso/issues/6871

I think this one has extra error "already borrowed: BorrowMutError"

The "already borrowed: BorrowMutError" are actually an echo of the first panic (the panic does not leave borrows, and next frames work on borrowed data).

Can't reproduce locally with IDE commit d44b1250b705f846846a476636b16ffaf308fb52 and engine 5.31. @sylwiabr could you confirm if the issue still happens for you?

can't reproduce on new package


Make pg-related edits to get views to identically render

I rule and have completed some work on Case Manager that's ready for review!
No promises about behavior yet, but this PR aims to get the views a) working and b) in agreement with a fresh seed.
(We'll do archivedpatient last.)
This pull request makes the following changes:

mostly small place changes to get stuff to properly render

no view changes, hopefully! (screencaps TK)
It relates to the following issue #s:

Bumps #2072

For reviewer:

Adjust the title to explain what it does for the notification email to the listserv.
Tag this PR:

feature if it contains a feature, fix, or similar. This is anything that contains a user-facing fix in some way, such as frontend changes, alterations to backend behavior, or bug fixes.
dependencies if it contains library upgrades or similar. This is anything that upgrades any dependency, such as a Gemfile update or npm package upgrade.

If it contains neither, no need to tag this PR.

Views mostly identically render now, with three exceptions (one of which doesn't really count yet):

changelog - mongoid and created_at are showing up
changelog - fund_pledged_at is showing up with full
export - errors, but I think it's because archived patient isn't ported, so not dealing with that yet

I'll fix the first two and then punt this up.

(There are a couple minor differences like ordering differences but I think that's more because of migrate_to_pg than it is actual logic changes.)


Get VQF working

Vqf (sorta) works. It has test cases (not all pass) and documentation. It has most (not batch update) features of the c++ version. Some are not implemented yet, just a stub

Just gonna stamp this. Did not review. Trusting you did it right.
Woe is the life of a maintainer without any time 😢


[BUG] supportedExprs file is missing SQL Func values for some rows

Describe the bug
In supportedExprs.csv, Several entries with corresponding Spark-Sql-function have empty "SQL Func" column (i.e., promotePrecision).
This affects the correctness of the tools mistakenly considering an expression as unsupported.
An example of a bug filed against the tools is https://github.com/NVIDIA/spark-rapids-tools/issues/517 as promote_precision is not recognized.
While the files can be fixed in the tools repo, it will be nice to:

Fix supportedExprs.csv as it is the source of truth.
Revisit the metadata of the expressions and make sure that any corresponding Sparl-SQL func is listed correctly.
Consider a label/tag that helps the committer/code-reviewer to recognize that the expression must have non-empty "SQL Func" value. This will prevent us from dealing with such bugs in the future.

After looking further into this, I don't think we should make this change in the plugin side.
The file supportedExpr.csv's "SQL func" column is generated based on a map called [expressions](https://github.com/apache/spark/blob/28961a6ce001e0c25c780a39a726fdd825542cee/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala#L357) in FunctionRegistry.scala in the Apache Spark Github repo, which is a mapping from expressions to SQL functions. Since we rely on this map as the ground truth for the "SQL func" column, we should not modify the meaning of this map by adding more entries into it.
For instance, promote_precision is not a SQL function and therefore it should not have a "SQL func" column by definition. In order for the tools repo to recognize supported expressions correctly, one approach would be to add another file/column to store the expressions and their corresponding names (that show up in event logs), instead of changing the "SQL func" column.
cc: @mattahrens


create docker container for utk-web

utk-web seems very useful, but after spending 4 hours trying to get it set up properly, I gave up.  A docker container configured to run utk-web would be very helpful.  Just a suggestion.  Thank you!

Hi, and thank you!
The current project is really just at a prototyping level and there is no back-end that could be running in Docker since it's a pure in-browser app.
The build scripts only generate fixtures and static HTML pages that can be served statically through a web server. I have a bunch of existing fixtures in here already for development / reference since I need real-world examples.
Can you describe what issue(s) you ran into? The build instructions are currently missing the submodule, so I will add that. I can also set up GitHub CI to create release tarballs that contain the same that you can currently preview at https://hostile.education/utk-web (where I currently just rsync my local builds which may contain some goodies not (yet) meant for the public. ;-)
My plan is to compile utk and MFT to WASM and then have and in-browser back-end. I.e., your firmware images will never land on any server and only be processed locally. You can then also build and host it yourself to ensure that the binaries stem from a trusted source (given you trust the Go compiler and all the other beautiful software we depend on etc).

Hello! I think the project could still benefit from a docker container that does not have any server-side functionality.  There are a lot of dependencies that have to be installed for the build scripts to work properly - having all of those bundled into a docker container could make it easier to generate the static HTML.  That's just my $0.02, you are welcome to close this ticket if you disagree!
As for problems setting it up, I think I ran into issues with installed some of the libraries necessary for the build scripts, but I cannot be more specific than that.  If I can find some time, I'll try to go through the set up process again and detail more accurately what my specific pain points are.
Thanks again, this is a really cool project!

Ah, gotcha... so here is a possible solution:

add a Dockerfile based on https://hub.docker.com/layers/node/library/node/lts-alpine/images/sha256-c8f745d79647398912f9d9a1bc7161656c7cf60b3b6813bf9cb4ff682c9b784c?context=explore
copy over package.json and package-lock.json
run npm install
declare node_modules/.bin/next as the entry point

Could you do that and create a PR? :)

yeah man, I'll give it a shot this weekend.

Oh look https://github.com/orangecms/utk-web/pull/25 is already starting that :)

I see that initial docker support was merged; I am going to look at this tonight. What remains to be implemented? Thanks!

The docs currently only cover the development mode.
See that you can pass the build and export sub commands, which will generate static HTML pages that can be served from a simple web server - like this one, for example:
#!/bin/sh

python3 -m http.server --directory "./$1" $PORT

Another thing is generating new fixtures and pages now. @pietrushnic suggested dockerizing the necessary utilities as well, if I understood correctly. The easiest to start with would be those from Fiano, which can be built with the golang images provided from upstream:
FROM golang
go install github.com/linuxboot/fiano/cmds/fmap

FROM golang
go install github.com/linuxboot/fiano/cmds/utk

With those two, you can generate a utk page; check the genfixtures.sh and genpages.sh scripts for reference.

Thanks; I’ll take a crack at it in a few hours. Appreciate the guidance!


move the optional flag in paramters outside quotes

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 82.916%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2572

Relevant Lines:
3171

💛  - Coveralls


Signature verification failing for Stripe events

I have been using smee client to forward stripe webhook events to my local app. However, signature verification keeps on failing, I am suspecting is it due to the JSON.stringify done here that might change the payload a bit ?

This is definetly possible.

We have introduced a rawbody parameter in the recent iterations of the code to help with these kinds of issues.
The smee.io instance isn't controlled by us active maintainers. We'll have to reach out to get it updated.
Once the website is updated, this won't be an issue.

Thanks @Uzlopak and @wolfy1339 for quick response.
It would be great to get it fixed on smee.io. Anyways, we can host our own smee.io as well but I don't see smee-client accepting and forwarding the parameter since https://github.com/probot/smee.io/pull/55 is merged.


Correction for raw affiliation Department of Anesthesia and Intensive Care; Narbonne general Hospital

Correction needed for raw affiliation Department of Anesthesia and Intensive Care; Narbonne general Hospital
raw_affiliation_name: Department of Anesthesia and Intensive Care; Narbonne general Hospital
new_rors:
previous_rors: 022m8c549
works_examples: W2946635507;W3094409940
contact: e351687893877d0b776e7f4aa80150ec:aff8f473ec326219a1f279b9b09eddf29607 @ inrae.fr

This issue was accepted and ingested by the OpenAlex team on 2024-10-09. The new affiliations should be visible within the next 7 days.


lilypond-unstable: init at 2.19.24

Motivation for this change
In my personal projects I require some 2.19.x features.
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Thanks!

Thanks for merging!
I'm seeing the following error message, but everything works fine for me...
Initializing FontConfig...Fontconfig error: Cannot load default config file

Adding font directory: /nix/store/yhgqp5gnvwp3b6lvzmd6h04qckscs442-lilypond-2.19.24/share/lilypond/2.19.24/fonts/otf
Adding fontconfig configuration file: /nix/store/yhgqp5gnvwp3b6lvzmd6h04qckscs442-lilypond-2.19.24/share/lilypond/2.19.24/fonts/lilypond-fonts.conf
Building font database...


Local emojis are not shown on Mastodon

It is correctly shown on Takahe:

But Mastodon .... again:

Did I miss something in setting?

The AP message generated for emojis was broken for parts of yesterday. I've tested it with the current main and it is working from Takahe -> Fosstodon.

Hmm ... strange. I'm running on the latest main, but got this behavior with writing.exchange and c.im 🤔

Do you know what versions of Mastodon those two sites are running? Maybe they're a variant?

Both are running latest 4.0.2

Very odd. They're working on my 4.0.2 installs as well, so the only thing I can think of is that those specific remote emoji are somehow disabled on the Mastodon side?

I've often seen remote emojis, so I don't think, that they're disabled.

Do you have an account I can follow with my Mastodon server, so you can try again and see if I get them?

I've followed<EMAIL_ADDRESS>- try doing it again

Let's see how you see https://tavern.drow.be/<EMAIL_ADDRESS>

Well I don't know what's doing it:

I've added a new "To ap tag:" entry on the emoji admin in the most recent commit - could you get what it says for this emoji?

It says: {'id': 'https://tavern.drow.be/emoji/103/', 'type': 'toot:Emoji', 'name': 'takahe', 'icon': {'type': 'Image', 'mediaType': 'image/png', 'url': 'https://mws.bka.li:443/takahe/emoji/_default/takahe.png'}}

There we go - your emoji URL is returning the status 418 I'm A Teapot rather than the image

Only, because you used the clear curl UserAgent. When you set the agent in curl with -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0" it should work as expected.

Mastodon sets its own special user agent - do you see it trying to get your image in the access logs successfully?

Mastodon is definitely able to download files from my Minio service:

I don't know what to do, then - there must be something Mastodon doesn't like about your minio responses. Everything else is the same as the stuff on my side that works correctly.
For reference, here is a response from my server that works:
HTTP/2 200
cache-control: private, max-age=0
content-disposition: inline; filename="takahe.png"
content-type: image/png
cross-origin-opener-policy: same-origin
date: Sat, 17 Dec 2022 19:32:27 GMT
last-modified: Thu, 15 Dec 2022 08:22:10 GMT
referrer-policy: same-origin
server: WSGIServer/0.2 CPython/3.10.6
vary: Cookie, Origin
x-content-type-options: nosniff
x-frame-options: DENY
content-length: 1633

and here is one from yours that Mastodon presumably doesn't like:
HTTP/2 200
server: nginx
date: Sat, 17 Dec 2022 19:32:53 GMT
content-type: image/png
content-length: 1633
accept-ranges: bytes
content-security-policy: block-all-mixed-content
etag: "9a139b51b9cfde42848dc308988db011"
last-modified: Sat, 17 Dec 2022 14:19:23 GMT
strict-transport-security: max-age=31536000; includeSubDomains
vary: Origin
vary: Accept-Encoding
x-amz-bucket-region: de-west-0
x-amz-object-lock-mode: COMPLIANCE
x-amz-object-lock-retain-until-date: 2023-06-15T14:19:23.302Z
x-amz-request-id: 1731AB90622816DC
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-amz-expiration: expiry-date="Fri, 16 Jun 2023 00:00:00 GMT", rule-id="ce59bldo7pr840vsthhg"
x-amz-version-id: 98f8fdc8-80fb-4786-ae20-28012064dd41
expires: Thu, 31 Dec 2037 23:55:55 GMT
cache-control: max-age=315360000
access-control-allow-origin: *
x-cache: MISS

Strange. I have absolutely no hit in my logs, that Mastodon even tries to download the emoji 🤔

OK, next interesting thing:

Now that's very curious. Is it correct on the non-boost, or missing on both?

Also on non boost, when I open the post on Mastodon:

Aha! A new emoji also doesn't work from my server, the good one must have been cached. Let me try to fix this.

OK, this should be fixed by b6a8737

Can confirm, that it's fixed:

Now they're fetched, as expected:

Lovely, thanks for bearing with me through this!


Remove Unmaintained Description

Hi @jeromegn, are you able to remove Unmaintained from the description please? I've got a v2 Alpha released for testing.
Cheers,
Scott

Done!

Awesome cheers 👍


feat: expose generate_temporary_column_name

What type of PR is this? (check all applicable)

[ ] 💾 Refactor
[x] ✨ Feature
[ ] 🐛 Bug Fix
[ ] 🔧 Optimization
[ ] 📝 Documentation
[ ] ✅ Test
[ ] 🐳 Other

Related issues

Closes #1237

Checklist

[x] Code follows style guide (ruff)
[x] Tests added
[x] Documented the changes

If you have comments or can explain your changes, please do so below.

Merging as Marimo failure seems unrelated


UTY-290 Add a document to describe test running

Contributions: We are not currently taking public contributions - see our contributions policy. However, we are accepting issues and we do want your feedback.

Description
This is part 1 of UTY-290 to describe how to run tests
Primary reviewers
@oblm @ElleEss

Closing to remake it with context of other documents


feat: adds system info (cpu and memory) to Docker CmdWrapper

Aims to address several resource related issues (#34, #91, #128). Not done yet.

Maybe we can get the missing information using psutil. I am anyway not sure if we should use "docker info", since we can use psutil to get cpu and memory information too.
https://www.thepythoncode.com/article/get-hardware-system-information-python

I guess we need both. For example: if the system has 16GB RAM but the docker daemon is only allowed to use 1GB :D


[feature] Code Review Explorer: Add Comment

🧩 Feature
Description
Add a "+" Button on the top of the explorer that trigger the "add comment" command.
-> Button should just be visible once a selection in the active editor was made.

Steps:

watch / subscribe for active editor selections
change a configuration flag
use when clause in contribution for button in view

In the same way an add button could be added to the welcomes screen. Then the welcome screen can be toggled depending on weather a selection has been made or not.

closed by https://github.com/d-koppenhagen/vscode-code-review/commit/af500fd18275ca52f08b4858b9c46df12a1f3af1


EVCC.io support

Pretty cool software, plug-in for Home Assistant is available
https://docs.evcc.io/docs/Home
Don't know if hard to support :)

Why would you use yet another piece of software, if you can interface directly with Home Assistant via the REST API:
`sensor:

platform: rest
resource: http://SmartEVSE-51446.lan/settings
name: smartevse
scan_interval: 300
timeout: 20
json_attributes:

mode

- mode_id
  - car_connected
  - evse
  - settings
  - ev_meter
  - mains_meter
  - phase_currents
value_template: "OK"

`

You can do all that in Homeassistant. I have an automation that charges up until a nr of kms or % of range it reaches, because my vehicle doesn't support it (reliably). And you can pit any timer on it you want.
And it can never communicate in more detail with the vehicle itself than SmartEVSE, since it has to get the data either from the EVSE or from the API of the manufacturer.
It positions itself as a  information broker, just like Homeassistant. But Homeassistant has a much bigger user base and much more interfaces to other components.
But if you like it, build an interface and put it in a PR....
fluppie @.***> schreef op 9 juli 2022 20:27:37 CEST:

I do have that running for a long time via HTTP REST.
But this one can communicate in more detail with the vehicle itself. So you could set charging to 80% and even though my EV doesn't support that through their app, I can only limit it in the car. I can now easily change that every day depending where I have to go the next day. It also looks good. The basics of the SmartEVSE are great, like the solar and load-balancing. But you could also for example let it calculate the lowest possible charging current based of the needed SoC by a certain hour. That way in Belgium you could potentially reduce your "capaciteitstarief" which is based on quarter peaks you pull from the grid. Because they want us to spread our consumption as much as possible.
--
Reply to this email directly or view it on GitHub:
https://github.com/serkri/SmartEVSE-3/issues/33#issuecomment-1179586256
You are receiving this because you commented.
Message ID: @.***>


Updated template

Pulled in latest template changes
Resolved merge conflict
Added svgs and changed tutorials to use those svgs
Removed extra png image in the tutorials

Looks all good except for one extra file from the template merge:
docs/_tutorials/tutorial-1.md
Can you delete and then I'll merge this.


Implement API validation

This commit completes the implementation of a new validator that tests whether Google Cloud APIs required by the blueprint are actually enabled within the projects used by the blueprint.
An edge case to consider:

if the project exists and the Compute Engine API is disabled, then validators for [ test_project_exists, test_region_exists, test_zone_exists, test_zone_in_region] will all fail because they use the Compute Engine API in their implementation
if the project does not exist then test_apis_enabled will fail because one cannot queries for the enabled APIs within a non-existent project

Thus both test_project_exists and and test_apis_enabled have some claim to being run first since they can both detect essentially the same problem. I have resolved this by electing to run test_project_exists first and reporting a special error when it fails due to the Compute Engine API itself being disabled. There is no way to determine that a project exists but you don't have access to it (hopefully obvious security reasons behind this).
Likewise, test_apis_enabled must report specially when either

the Service Usage API is disabled (it queries this API to know which APIs are enabled)
the project wasn't found or doesn't exist

If test_project_exists fails, all further validation if it fails (a current behavior that I have not changed). If the project wasn't found, then there isn't a lot to be done except print a message indicating that the project either doesn't exist or the user doesn't have permission. Thus, a user in the "maximally bad" scenario when validating a blueprint an in existing project will encounter:

A warning indicating that they need to enable the Compute Engine API (test_project_exists fails)
A warning indicating that they need to enable the Service Usage API (test_project_exists succeeds, but now test_apis_enabled fails in its attempt to query the enabled APIs)
Potential warnings indicating further APIs to enable based upon the blueprint's requirements
Potential warnings about region / zone global variables

Submission Checklist

[X] Have you installed and run this change against pre-commit? (pre-commit install)
[X] Are all tests passing? (make tests)
[X] Have you written unit tests to cover this change?
[X] Is unit test coverage still above 80%?
[X] Have you updated all applicable documentation?
[X] Have you followed the guidelines in our Contributing document?

I will not merge this until an upcoming PR updating the README is also approved.

Sorry for the force pushes, I noticed that a new function was silently modifying one of its inputs (sorting it). It would have no impact on functionality in its current use, but could have been a debugging headache if it were put to other purposes down the road.

I addressed one comment and also modified the implementation of automatically imputing required_apis to use $(vars.project_id) syntax because expand will now properly convert it to internal ((x.y)) format. I prefer that the automated solution look more like the user's manual approach.


coverflow effect not work correctly

I have a swiper instance inside my wordpress menù that use the coverflow effect. The menù will open sliding from left to right and will place the swiper on the right column of it, this is the expected layout, but I've noticed that the coverflow effect will not work until I change the height of the browser window, an example is when I attach the chrome console under the window. I'm not sure if the swiper is initialized correctly before the menù open or if this issue is because the swiper will load after the menù is opened. Is there any fix? PS: I've used the code provided into the example of the coverflow demo code

Your issue is closed because it is not filled correctly. Before you open an issue please review the contributing guideline.
Please fill the issue template correctly and:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with isssue

It will save a lot of time for other contributors to check your issue and fix it.


sqlc instead of ent

I would like to know your opinion on using sqlc instead of Ent as the database layer. Do you think there is a good way to add it as an optional or interchangeable option alongside Ent, or should we consider creating a separate fork for it

I think a separate fork would be best. The main principle of this project is that it's a starter kit and everything should be somewhat easy to swap in and out. If anything were to be introduced or changed within this project, I would want to focus on making the swaps easy, rather than providing out of the box integration with various other things (like sqlc). I wanted to make everything in the container more of a generic interface to make swapping easier, but I assume whoever uses this project will make so many changes that none of those interfaces would provide much value and would be removed at some point.
There's also endless options for everything, so it would be difficult to maintain if we included everything that anyone wanted. It's also hard to then decide what gets included and what doesn't.
If you do work on a fork with sqlc, please do share it here. And if you come across anything in this project that can be improved to make swapping easier, please let me know.
Thanks


Documentation

-in line documentation for functions

For each function that you write documentation for, it will be value added to explain what inputs the function is expecting, and what it is outputting or doing as a side effect. For example, if we have a function that accepts a 'coordinates' object as input, we should explain that this refers to an object with longitude and latitude.
For each class or react component that we write documentation for, we should talk about what it does and what props it expects / accepts.

@jake-shasteen :heavy_check_mark: fixed! Thanks!

Please refactor the pre-class and pre-function comments for those things that we discussed in person ( referenced here ).

I'm going to close this, since after reading the comments I've decided to do a more extensive documenting. I'll submit another PR when I'm ready!


patch: Accept 429 HTTP codes using config file

The issue https://github.com/lycheeverse/lychee/issues/644 has been resolved. Hence, specifying the correct HTTP status codes in the config file.
Signed-off-by: Vipul Gupta (@vipulgupta2048) <EMAIL_ADDRESS>

Please make sure to read the CONTRIBUTING document before opening the PR for relevant information on contributing to the documentation. Thanks!

@balena-ci rebase

@balena-ci rebase

@balena-ci I self-certify!


[Clock] Format doesn't respect locale

Describe the bug
Format doesn't change based on locale. The calendar popup uses the correct locale, however.
To Reproduce
LANG=ja_JP.UTF-8 ironbar

Expected behavior
Correct locale should be used
System information:

Distro: NixOS
Compositor: Hyprland
Ironbar version: https://github.com/JakeStanger/ironbar/commit/7f4a816379cfd991aa8b9fe23f1a6917ccc387fc

Configuration
{
  "type": "clock",
  "format": "%c"
}

Thanks for reporting! Once the above is merged, LC_TIME and LOCALE should be respected, or you can manually set in the config.


Can't find custom folder on linux xubuntu

Hello friends!
I downloaded mechvibes via the command "sudo snap install mechvibes"
It runs but none of the keyboard profiles are there and I could not find the custom folder :<

checking my Mechvibes file in my home directory only shows 3 folders: "1" "common" "current"

Fixed #250


Chat component

Hi,
attempting to see documentation for Chat component :
TypeError: aDays[nDay] is undefined at metro.js:2118:13

I don't see an error

Ok, thanks, I found bug

fixed


New DndProvider multiple HTML5 backends issue

Describe the bug
Since using the new DndProvider I get an Cannot have two HTML5 backends at the same time. error after re-rendering the component where DndProvider is set.
According to the documentation the DndProvider should be at the very top of the application but only one re-render will break the whole app. Also when using the react-router it's not the best idea to always place it at the top.
To Reproduce
Steps to reproduce the behavior:

Place the DndProvider in a component
Cause a re-render e.g. with useState
Application will break

Expected behavior
The DndProvider should use the already created backend.
Example
https://codesandbox.io/s/gs988
Additional context
The legacy HOC DragDropContext didn't have this issue.

When I go through the official tutorial, it happens to me.

use DragDropContext insteam of DndProvider, and keep other code intact.
The problem is resolved.

If you put the DndProvider at the top part of your tree where it won't be rerendered, that will work as a workaround. I'll look into making it more resistant to rerenders

Fixed in https://github.com/react-dnd/react-dnd/pull/1422, which will be released in the next patch version

Describe the bug
Since using the new DndProvider I get an Cannot have two HTML5 backends at the same time. error after re-rendering the component where DndProvider is set.
According to the documentation the DndProvider should be at the very top of the application but only one re-render will break the whole app. Also when using the react-router it's not the best idea to always place it at the top.
To Reproduce
Steps to reproduce the behavior:

Place the DndProvider in a component
Cause a re-render e.g. with useState
Application will break

Expected behavior
The DndProvider should use the already created backend.
Example
https://codesandbox.io/s/gs988
Additional context
The legacy HOC DragDropContext didn't have this issue.
@Nico142
Yeap, I agree with you, but I viewed the page that you provided, it happen again.
Here's what I did with the different versions.
=8.0 :https://codesandbox.io/s/react-dnd-backend-issue-forked-uyf8z?file=/src/index.js
<8.0 :https://codesandbox.io/s/react-dnd-backend-issue-forked-bccjz?file=/src/index.js


Use CoffeeScript syntax in generators

Related to #30 / a33fd6bb68b04cf6071f3a28d5955b21bc0526ef this replaces this. with @ in the generators.

I just pushed up most of these changes. I'm not a fan of the @$ syntax so that isn't included.


screen shaders

ability to hv a custom shader file apply to certain/all layers

eg: a grayscale shader that removes all color from screen

As an nvidia user (yeah yeah, I know) - it will certainly be nice to have an ability to apply a blue light filter (even if it's going to be a custom shader).

added in 7b020ffa84e64d0734709b2489e1da5463689e61
See an example in examples/screenShader.frag

Thanks!
One thing I noticed is that if I:

...set the shader
reload config (it'll apply as expected)
then comment out the screen_shader variable to unset it
and again reload config
...the screen will be compressed to a small line at the bottom of the monitor, the rest will be black.

(Just reloading to replace the shader works fine).

Log after reload (nothing seems to be abnormal)
[LOG] Reloading the config!
[LOG] Created a bezier curve, baked 200 points, mem usage: 3.20kB, time to bake: 28.12µs. Estimated average calc time: 0.01µs.
[LOG] ApplyConfigToKeyboard for "Power Button", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Power Button"
[LOG] ApplyConfigToKeyboard for "Power Button", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Power Button"
[LOG] ApplyConfigToKeyboard for "Logitech USB Keyboard", hasconfig: 1
[LOG] Attempting to create a keymap for layout us,ru with variant  (rules: , model: , options: caps:escape,grp:toggle)
[LOG] Set the keyboard layout to us,ru and variant to  for keyboard "Logitech USB Keyboard"
[LOG] ApplyConfigToKeyboard for "Logitech USB Keyboard Consumer Control", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Logitech USB Keyboard Consumer Control"
[LOG] ApplyConfigToKeyboard for "Logitech USB Keyboard System Control", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Logitech USB Keyboard System Control"
[LOG] ApplyConfigToKeyboard for "Eee PC WMI hotkeys", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Eee PC WMI hotkeys"
[LOG] Applied config to mouse Razer Razer DeathAdder, sens 0.00
[LOG] Applied config to mouse Logitech USB Keyboard Consumer Control, sens 0.00
[WARN] No rule found for DP-1, trying to use the first.
[WARN] No rule found for DP-1, trying to use the first.
[WARN] No rule found for DP-1, trying to use the first.
[LOG] Applying monitor rule for DP-1
[LOG] Setting preferred mode for DP-1
[LOG] Monitor DP-1 -> destroyed all render data
[LOG] LayerSurface ffba3f30 arranged: x: 0 y: 1396 w: 2560 h: 44 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] LayerSurface 82f60 arranged: x: 0 y: 0 w: 2560 h: 1440 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] Monitor DP-1 layers arranged: reserved: 0.000000 0.000000 0.000000 44.000000
[ERR] Error in getMonitorFromString: no such monitor
[LOG] LayerSurface ffba3f30 arranged: x: 0 y: 1396 w: 2560 h: 44 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] LayerSurface 82f60 arranged: x: 0 y: 0 w: 2560 h: 1440 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] Monitor DP-1 layers arranged: reserved: 0.000000 0.000000 0.000000 44.000000
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Allocated texture for BGTex
[LOG] Background created for monitor DP-1
[LOG] Shaders initialized successfully.
[LOG] Framebuffer created, status 36053
[LOG] Cleanup: destroyed a layersurface

BTW, if anyone is looking for something closer to f.lux - I am quite pleased with this:
// vim: set ft=glsl:
// blue light filter shader
// values from https://reshade.me/forum/shader-discussion/3673-blue-light-filter-similar-to-f-lux

precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;

void main() {

    vec4 pixColor = texture2D(tex, v_texcoord);

    // green
    pixColor[1] *= 0.855;

    // blue
    pixColor[2] *= 0.725;

    gl_FragColor = pixColor;
}

Blue light filter with variable color temperature:
precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;

const float temperature = 2600.0;
const float temperatureStrength = 1.0;

#define WithQuickAndDirtyLuminancePreservation
const float LuminancePreservationFactor = 1.0;

// function from https://www.shadertoy.com/view/4sc3D7
// valid from 1000 to 40000 K (and additionally 0 for pure full white)
vec3 colorTemperatureToRGB(const in float temperature){
    // values from: http://blenderartists.org/forum/showthread.php?270332-OSL-Goodness&p=2268693&viewfull=1#post2268693
    mat3 m = (temperature <= 6500.0) ? mat3(vec3(0.0, -2902.1955373783176, -8257.7997278925690),
                                            vec3(0.0, 1669.5803561666639, 2575.2827530017594),
                                            vec3(1.0, 1.3302673723350029, 1.8993753891711275)) :
                                       mat3(vec3(1745.0425298314172, 1216.6168361476490, -8257.7997278925690),
                                            vec3(-2666.3474220535695, -2173.1012343082230, 2575.2827530017594),
                                            vec3(0.55995389139931482, 0.70381203140554553, 1.8993753891711275));
    return mix(
        clamp(vec3(m[0] / (vec3(clamp(temperature, 1000.0, 40000.0)) + m[1]) + m[2]), vec3(0.0), vec3(1.0)),
        vec3(1.0),
        smoothstep(1000.0, 0.0, temperature)
    );
}

void main() {
    vec4 pixColor = texture2D(tex, v_texcoord);

    // RGB
    vec3 color = vec3(pixColor[0], pixColor[1], pixColor[2]);

#ifdef WithQuickAndDirtyLuminancePreservation
    color *= mix(1.0,
                 dot(color, vec3(0.2126, 0.7152, 0.0722)) / max(dot(color, vec3(0.2126, 0.7152, 0.0722)), 1e-5),
                 LuminancePreservationFactor);
#endif

    color = mix(color, color * colorTemperatureToRGB(temperature), temperatureStrength);

    vec4 outCol = vec4(color, pixColor[3]);

    gl_FragColor = outCol;
}

could you make a shader for grayscale?

@jiiiijiij
`//
// Example grayscale shader.
//
precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;
void main() {
vec4 pixColor = texture2D(tex, v_texcoord);
gl_FragColor = vec4(
    pixColor[0] * 0.299 + pixColor[1] * 0.587 + pixColor[2] * 0.114,
    pixColor[0] * 0.299 + pixColor[1] * 0.587 + pixColor[2] * 0.114,
    pixColor[0] * 0.299 + pixColor[1] * 0.587 + pixColor[2] * 0.114,
    pixColor[3]
);

}
`

@ulziibuyan thank you, you save me eyes

Does anybody have vibrance shader file? I tried to make vibrance shader file from kwin-effect-shaders but I cant get it to work. Here's the code
`
#if VIBRANCE_ENABLED == 1
/**
Vibrance
by Christian Cann Schuldt Jensen ~ CeeJay.dk
Vibrance intelligently boosts the saturation of pixels so pixels that had little color get a larger boost than pixels that had a lot.
This avoids oversaturation of pixels that were already very saturated.
History:
Version 1.0 by Ceejay.dk

Original
Version 1.1 by CeeJay.dk
Introduced RBG balance to help colorblind users
Version 1.1.1
Minor UI improvements for Reshade 3.x

Ported to glsl by kevinlekiller - 2022
/
/
The MIT License (MIT)
Copyright (c) 2014 CeeJayDK

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

 IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

*/
#if VIB_LUMA == 1
vec3 VIB_coefLuma = vec3(0.333333, 0.333334, 0.333333);
#else
vec3 VIB_coefLuma = vec3(0.212656, 0.715158, 0.072186);
#endif
vec3 VIB_coeffVibrance = vec3(VIB_RGB_BALANCE * -VIB_VIBRANCE);
void shader_vibrance() {
float luma = dot(VIB_coefLuma, g_Color.rgb);
float max_color = max(g_Color.r, max(g_Color.g, g_Color.b));
float min_color = min(g_Color.r, min(g_Color.g, g_Color.b));
float color_saturation = max_color - min_color;
vec3 p_col = vec3(vec3(vec3(vec3(sign(VIB_coeffVibrance) * color_saturation) - 1.0) * VIB_coeffVibrance) + 1.0);
g_Color.r = mix(luma, g_Color.r, p_col.r);
g_Color.g = mix(luma, g_Color.g, p_col.g);
g_Color.b = mix(luma, g_Color.b, p_col.b);
}
#endif // VIBRANCE_ENABLED
`

@MahouShoujoMivutilde Thank you!

I read all this but couldnt understand it was an option in "decoration" until I stumbled across another thread. How do you all know? I read the wiki too.

It is under the "Decoration" section in the wiki.

It is under the "Decoration" section in the wiki.

Is there any way to toggle it with a keybind?

Yes, but it doesn't work perfectly.
The intuitive thing is to write a script that uses hyprctl keyword decoration:screen_shader to set and unset the shader, and hyprctl getoption decoration:screen_shader -j to learn the current value.
This works:
hyprctl keyword decoration:screen_shader ~/.config/hypr/temperature.glsl

This also works:
❯ hyprctl keyword decoration:screen_shader ''
ok

and unsets the shader.
But now this does not:
❯ hyprctl keyword decoration:screen_shader ~/.config/hypr/temperature.glsl
ok

~

(Nothing changes despite ok).
So it breaks after unset to an empty string.
But the workaround is easy:
Here is a blank.glsl shader
// blank shader

precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;

void main() {
    vec4 pixColor = texture2D(tex, v_texcoord);
    gl_FragColor = pixColor;
}

Which does absolutely nothing, but actually let's toggle without breaking anything.
So, the final script is:

#!/usr/bin/env bash

set -e

cfg=~/.config/hypr

blank="blank.glsl"
alt="temperature.glsl"

current="$(hyprctl getoption decoration:screen_shader -j | gojq -r '.str')"

if [[ "$current" =~ (blank|EMPTY) ]] || [[ "$current" == "" ]]; then
    hyprctl keyword decoration:screen_shader "$cfg/$alt"
    echo set $alt
else
    hyprctl keyword decoration:screen_shader "$cfg/$blank"
    echo set $blank
fi

Is there a way we can pass variables down to the shader @vaxerski ? I would love to able to automate color temp change but without being able to pass variables down or measure time inside the .frag, but until I can do that I'm not sure how to get what I'm after.

you cannot

I wrote a script inspired by this thread that automates screen shader switching on a schedule, toggling, switching off, etc: https://github.com/loqusion/hyprshade.

@loqusion Perfect! Thank you

A bit late to the party but I wrote these dmenu script to toggle between shaders under a certain folder.
To unset any shader just run the script and  escape (ESC) without picking any option.
#!/bin/bash
shadersPath=~/.config/hypr/shaders

shader="$(find $shadersPath -type f -printf '%f\n' | dmenu -i -p 'Shader: ' -sb '#D96E1F')"

if [[ ! $shader -eq "" ]]; then
	hyprctl keyword decoration:screen_shader "$shadersPath/$shader"
else
	hyprctl keyword decoration:screen_shader "[[EMPTY]]"
fi

FYI for Nvidia users:
gammastep works since 545 driver which finally implemented GAMMA_LUT

Here

you cannot

Well, you can, here's an example:
// CRT like monitor shaders for hyprland (thanks to https://www.shadertoy.com/user/sprash3)

precision mediump float;
varying vec2 v_texcoord;
uniform sampler2D tex;
uniform float time;

const float DENSITY = 1.3;
const float S_OPASITY = 0.3;
const float N_OPASITY = 0.2;
const float FLICKERING = 0.03;
const float WIDTH = 0.90;
const float HEIGHT = 0.5;
const float CURVE = 3.0;
const float SMOOTH = 0.004;
const float SHINE = 0.12;

const vec2 RESOLUTION = vec2(2240, 1400);

const vec3 BEZEL_COL = vec3(0.8, 0.8, 0.6);

// Function to calculate curved surface.
vec2 curvedSurface(vec2 uv, float r)
{
    return r * uv/sqrt(r * r - dot(uv, uv));
}

// Function to calculate CRT curve.
vec2 crtCurve(vec2 uv, float r, bool content, bool shine)
{
    r = CURVE * r;
    uv = (uv / RESOLUTION - 0.5) / vec2(RESOLUTION.y/RESOLUTION.x, 1.) * 2.0;
    uv = curvedSurface(uv, r);
    if(content) uv *= 0.5 / vec2(WIDTH, HEIGHT);
    uv = (uv / 2.0) + 0.5;

    return uv;
}

float random(vec2 st)
{
    return fract(sin(dot(st.xy, vec2(12.9898, 78.233))) * 43758.5453123);
}

float blend(const in float x, const in float y)
{
    return (x < 0.5) ? (2.0 * x * y) : (1.0 - 2.0 * (1.0 - x) * (1.0 - y));
}

vec3 blend(const in vec3 x, const in vec3 y, const in float opacity)
{
    vec3 z = vec3(blend(x.r, y.r), blend(x.g, y.g), blend(x.b, y.b));
    return z * opacity + x * (1.0 - opacity);
}

float roundSquare(vec2 p, vec2 b, float r)
{
    return length(max(abs(p)-b,0.0))-r;
}

float stdRS(vec2 uv, float r)
{
    return roundSquare(uv - 0.5, vec2(WIDTH, HEIGHT) + r, 0.05);
}

void main()
{
    vec3 content = vec3(0.0, 0.0, 0.0);
    vec3 gloss = vec3(0.0, 0.0, 0.0);

    vec2 uvContent = crtCurve(gl_FragCoord.xy, 1., true, false);
    vec2 uvScreen = crtCurve(gl_FragCoord.xy, 1., false, false);
    vec2 uvEnclosure = crtCurve(gl_FragCoord.xy, 1.25, false, false);
    vec2 uvShine = crtCurve(gl_FragCoord.xy, 1., false, true);

    float count = 1400.0 * DENSITY;
    vec2 sl = vec2(sin(uvContent.y * count), cos(uvContent.y * count));
    vec3 scanlines = vec3(sl.x, sl.y, sl.x);

    const float HHW = 0.5 * HEIGHT/WIDTH;

    content += BEZEL_COL * SHINE * 0.7 *
        smoothstep(-SMOOTH, SMOOTH, stdRS(uvScreen, 0.0)) *
        smoothstep(SMOOTH, -SMOOTH, stdRS(uvEnclosure, 0.05));

    content -= (BEZEL_COL) *
        smoothstep(-SMOOTH*2.0, SMOOTH*10.0, stdRS(uvEnclosure, 0.05)) *
        smoothstep(SMOOTH*2.0, -SMOOTH*2.0, stdRS(uvEnclosure, 0.05));

    content += max(0.0, SHINE - 0.3*distance(uvScreen, vec2(0.5,0.5))) *
            smoothstep(SMOOTH, -SMOOTH, stdRS(uvScreen, 0.0));

    vec3 col = texture2D(tex, uvContent).xyz;
    if (uvContent.x > 0. && uvContent.x < 1. && uvContent.y > 0. && uvContent.y < 1.)
    {
        col += col * scanlines * S_OPASITY;
        col += col * vec3(random(uvContent * time)) * N_OPASITY;
        col += col * sin(110.0 * time) * FLICKERING;
        content += col;
    }

    gl_FragColor = vec4(content, 1.0);
}

that's not what the person asked for. They asked for variables passed from hyprland (via config) to the shader, as far as I understand

P.S.A.: If you're late to the party and reach this thread around/after February 2024, note that you may want to modify the provided code snippets in this thread to use precision highp float.
Reference:

https://github.com/hyprwm/Hyprland/commit/fbf5ba87ce57752653f3bebf6e2be090c702836e
https://github.com/loqusion/hyprshade/pull/23


DDLC Jetbrains Theme Plugin fails to load.

Summary
Error on restarting the IDE after plugin installation.
...
Expected behavior
The plugin should be enabled and working as per intention.
...
Actual behavior
The IDE throws an error on restarting after plugin installation, followed by shutting down completely. On manual start, thereafter, the IDE decides to disable the plugin to allow the IDE to start without issues.
...
Steps to reproduce (if needed)

Open Jetbrains GoLand IDE with the following version:

Install DDLC Jetbrains Theme plugin.

Restart IDE.

The IDE shows the following error:

The IDE then closes down and has to be started manually with DDLC Theme Plugin being automatically disabled.

Environment

Windows 10 Home 64bit
GoLand 2018.2 Build #GO-182.3684.99, built on July 24, 2018
JRE: 1.8.2_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by Jetbrains s.r.o

Edit: I didn't read that this was a "Fork" of Material UI, no wonder it wouldn't work with Material UI still installed.
Solution for anyone else having this issue: Uninstalled Material UI and install this after, it works as intended.
Thank you.


Tag Class and Related Test

This PR is for CFM_65_SS.
I added a Tag class to db.py and a test in the unit folder.

The code looks good to me :). Going to test locally before approval


feat: update favicon for journeys

Description
Added feature - Update favicon to the user avatar, when they visit their journey page. If the page is not journey page the favicon is set to default icon.
Live Preview
LIVE

Sorry, for creating wrong PR. I am closing it.


Use spark-mllib_3.3 specification

spark 3.2 will be deprecated so we need to use spark 3.3 specification while creating the model in the notebook.
Tracker --> https://github.ibm.com/aiopenscale/tracker/issues/29377

@ravichamarthy @arsuryan - Can you review please?


fix add sentinel mark when do compaction

Proposed changes
Tablet::calc_compaction_output_rowset_delete_bitmap may introduce new rowset and we should also add sentinel mark In delete bitmap
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.79 seconds
stream load tsv:          547 seconds loaded<PHONE_NUMBER>9 Bytes, about 130 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size:<PHONE_NUMBER>4 Bytes


Ensure ARTEMIS config file is not clobbered on pod restart

Description of PR
Previously when the backend pod restarted it would overwrite the config file in persistent storage with the one from the configmap (i.e., the default). The -u option to cp doesn't seem to be enough to prevent an overwrite (presumably the modification time of the file from the configmap cannot be trusted). Using both -u and the -n (no-clobber) option seems to work and prevent the persisted config file from being overwritten.
What component(s) does this PR affect?

[ ] Back-End (Database, Microservices, Containers, etc)
[ ] Front-End (Flask, API, etc)
[ ] Docs
[X] Build System

Does the PR require changes on other components? If yes, please mark the components:

[ ] Back-End (Database, Microservices, Containers, etc)
[ ] Front-End (Flask, API, etc)
[ ] Docs
[ ] Build System

Related Issue

Resolves #
Solution

Type

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Docs update
[ ] None of the above

Checklist:

[X] I have read the contributing guide and my code conforms to the guidelines.
[ ] This change requires a change in the documentation.
[ ] I have updated the documentation accordingly.

@slowr which file(s) do you want to change behavior for in the monitor deployment template? i wasn't aware that the system can modify files other than the config.

@alistairking not yet but we might make logging.yaml modifiable as well to add/remove loggers through GUI (for slack, etc)

@slowr gotcha, ok so then how about i just add -i to all these cp commands so that all files installed in the PVC are not touched by pod restarts/upgrades

@slowr done


Await task worker rpc init

Without this, we cannot be sure that the task worker has finished initializing before returning from the main
runtime initialize function

I probably don't have enough context, but looks alright to me 🙃


[Feature Suggestion] Thoughts on changing the return value of .text() to return end coordinates?

Thank you for submitting an issue to jsPDF. Please read carefully.
Are you using the latest version of jsPDF?
Yes, as of 11/30/18 (1.4.1)
When adding text, and using the maxWidth option to allow the text to wordwrap, is there currently any way to determine the vertical coordinate of the last entered text item?
If not, what do you think about making the function return {x: #, y: #} instead of returning the pdf object. As far as I can tell, if someone called this function, they more than likely already have the pdf object available to them, so it's less than useful. (if there is a need for this to return a PDF object, we could attach it under a 'pdf' attribute, or just add the x: # and y: # to the returned pdf object.)
if nothing else, I'll just have to add a "getMultiLineStringHeight" method, or something.

This would be changing the API-behaviour. Some people would probably compain then.
We have the method splitTextToSize which will give you an array of lines you can use as input for the method getTextDimensions.

yea, that's what i was thinking. In testing the return values in the .text() function, the values don't seem to add up quite the same way as I thought they would.

Wait, does "getTextDimensions" return a vertical value as well?

awesome, it works!

Glad I could help. Closing Issue :)

Just, as an aside, the getTextDimensions() seems to be wrong? At a certain point(like if I doubled the same paragraph twice) it would start to overlap the table under it. Luckily for me, I enjoy bootstrap too much, and created a bootstrap-like column system for my pdf, where each col/row is 12px (creating a grid of 12x12 squares). Do this allowed me to determine the height, by stating:
rowHeightUnits * splitText.length This, kind of assumes that each row is 12px, but as the font is being set to 12, i think that should work out. For others, if your font size varies, you may want to multiply the fontsize by the length of the split.

Hmm. I modified few weeks ago getTextDimensions.
https://github.com/MrRio/jsPDF/commit/ccb45192372db74a4df10d5267b6e480cf9a04ae#diff-70f14edadc93a40c00a54d31644084ae
It should actually provide the width and height correctly. But you have anyway to add your own margin to the text, or else they overlap, because unlike html, the position of text is not top left corner of the text-box but the baseline left of the text-box.

The modification to getTextDimensions is not released yet.


[Bug]: MI need to restart when a CApp deployment failed

Description
Environment: Windows
Noticed that MI failed to recover from certain faulty Capps. For an example, CApp deployment failure like below has happened.
2024-03-21 23:42:32,985] [] : mi : ERROR {org.apache.synapse.config.SynapseConfiguration} - Duplicate swagger definition by the name: pnc-paperlessjwt-api
[2024-03-21 23:42:32,985] [] : mi : ERROR {org.wso2.micro.integrator.initializer.deployment.application.deployer.CappDeployer} - Error while deploying carbon application /home/wso2carbon/wso2mi-4.2.0/repository/deployment/server/carbonapps/pnc-paperlessjwt-papiCompositeExporter_1.0.0.car org.apache.synapse.SynapseException: Duplicate swagger definition by the name: pnc-paperlessjwt-api|     at org.apache.synapse.config.SynapseConfiguration.handleException(SynapseConfiguration.java:1800)|        at org.apache.synapse.config.SynapseConfiguration.addSwaggerDefinition(SynapseConfiguration.java:484)|  at org.wso2.micro.integrator.initializer.deployment.application.deployer.CappDeployer.searchArtifacts(CappDeployer.java:482)|     at org.wso2.micro.integrator.initializer.deployment.application.deployer.CappDeployer.deployCarbonApps(CappDeployer.java:182)|    at org.wso2.micro.integrator.initializer.deployment.application.deployer.CappDeployer.deploy(CappDeployer.java:145)|    at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)|    at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)|    at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:153)|    at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)|  at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)|   at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)|     at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)|  at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)|        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)|   at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)|    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)|    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)|     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)|   at java.base/java.lang.Thread.run(Thread.java:833)

Then we fixed the issue and redeployed. Still the same CApp (that was failing before) was deploying and failing. We were getting the same error. MI did not cover with the modified until a restart is done. It kept giving above error.
Does MI keep failed CApps in a cache and try to do deployments? Why MI did not pick up the CApp that was updated?
Steps to Reproduce
No response
Affected Version(s)
MI 4.2.0
Related issue(s) (optional)
Transferred from https://github.com/wso2-enterprise/wso2-mi-internal/issues/658

Hi folks,
I experience a very similar behavior, in my case I cannot assure that changes are not taken from the deployment, but after a JBDC connection problem with a database during deployment, I removed the faulty application, fixed the db connection problem, and then try to redeploy the CAPP.
The CAPP does not deploy with the following errors in log file:
[2024-11-19 17:43:46,084]  INFO {CappDeployer} - Undeploying Faulty Carbon Application On : /home/wso2carbon/wso2mi-4.2.0/repository/deployment/server/carbonapps/test-CompositeExporter_1.0.0-SNAPSHOT.car
[2024-11-19 17:43:46,201] ERROR {SynapseConfiguration} - Duplicate swagger definition by the name: api_test
[2024-11-19 17:43:46,201] ERROR {CappDeployer} - Error while deploying carbon application /home/wso2carbon/wso2mi-4.2.0/repository/deployment/server/carbonapps/test-CompositeExporter_1.0.0-SNAPSHOT.car org.apache.synapse.SynapseException: Duplicate swagger definition by the name: api_test

The only way we've found so far to get rid of the error once it is present is to restart the server, which is very annoying when we encounter the problem in a production environment.
I'm using MI 4.2.0-99
I would greatly appreciate any help.
Regards


[Feature Request] Critical CSS Generation

React-snap (an alternative approach to static site generation) allows for automated critical css generation (https://github.com/stereobooster/react-snap#inline-css). It uses a combination of https://github.com/peterbe/minimalcss and https://github.com/filamentgroup/loadCSS.
Other critical css generation tools include:

https://github.com/addyosmani/critical
https://github.com/pocketjoso/penthouse

This was discussed briefly here: https://github.com/nozzle/react-static/issues/118, but wanted to point to some other examples of critical css generation being done in an automated way.

Mh, the idea intrigues me. Though it is important to know, that automatic critical css optimisations require a perfect css AST. Access already exists for such optimisations via the renderToHTML hock, as per the documentation:

Configuration (static.config.js)
A static.config.js file is required at your project root to configure react-static. It must export a default object with the following interface:
export default {
  // ...

  // An optional function to customize the server rendering logic. Receives:
  // - render: renders the JSX to and html string
  // - Component: the final react component to be rendered to HTML
  // - meta, a MUTABLE object that is exposed to the optional Document component as a prop
  // Expected to return an HTML string
  // This is the perfect place for css-in-js integration (see styled-components and glamorous examples for more information)
  renderToHtml: (render, Component, meta) => {
    meta.hello = 'world'
    return render(<Component />)
  },

  // ...
}

One could throw an async function in there that fires up any optimisation by parsing the final component to HTML -> optimiser and adjust the meta information before calling the final render.
Given that, I am not in the position to estimate the impact / value of this (we use styled components and one stylesheet). So I guess when a prototype of this exists, we can all take a look at it. And for that, to me it seems no changes to the code are necessary.

Yeah, I agree with @D1no. The current api technically allows you to implement some level of this on your own, give you have access to the raw HTML and styles that will get written out to disk beforehand in an async function.
Most implementations of critical css right now also rely on actually rendering the page content in a browser, detecting on screen elements, and then extracting out the css for those elements. Though I'm very intrigued by this possibility, the current implementations available right now would significantly increase build times (need to render the page in something like puppeteer) and I wouldn't feel comfortable including something like this in the core just yet.
When things settle down in that arena, and a clear leader emerges, then we could look at some official bindings or built-in options.  For now, I suggest playing around with the configs renderToHtml: async (render, Comp, meta) => {...} function. You can really get your hands dirty there without much work :)